@mx-cartographer/experiences 6.0.20-alpha.sms8 → 6.0.20-alpha.sms9

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
@@ -1,7 +1,7 @@
1
1
  import { jsx as e, jsxs as I, Fragment as AA } from "react/jsx-runtime";
2
2
  import h, { useMemo as fs, useRef as jo, useEffect as zt, useState as We } from "react";
3
3
  import { observer as g } from "mobx-react-lite";
4
- import L from "@mui/material/Box";
4
+ import O from "@mui/material/Box";
5
5
  import G from "@mui/material/Divider";
6
6
  import nA from "@mui/material/List";
7
7
  import He from "@mui/material/ListSubheader";
@@ -1372,7 +1372,7 @@ const hc = (A, t) => {
1372
1372
  }, u = () => {
1373
1373
  d(null);
1374
1374
  };
1375
- return /* @__PURE__ */ I(L, { className: "mx-cmn-account-filter", m: 4, sx: { ...a }, children: [
1375
+ return /* @__PURE__ */ I(O, { className: "mx-cmn-account-filter", m: 4, sx: { ...a }, children: [
1376
1376
  c ? /* @__PURE__ */ e(Gt, { id: "filter-accounts", placement: "bottom", title: t.title, children: /* @__PURE__ */ e(
1377
1377
  TA,
1378
1378
  {
@@ -1644,15 +1644,15 @@ const hc = (A, t) => {
1644
1644
  return /* @__PURE__ */ I("div", { className: `mx-cmn-bar-chart ${f}`, children: [
1645
1645
  /* @__PURE__ */ I("div", { className: "mx-cmn-chart-container", children: [
1646
1646
  /* @__PURE__ */ e(q, {}),
1647
- n.map((m, O) => /* @__PURE__ */ I(h.Fragment, { children: [
1647
+ n.map((m, L) => /* @__PURE__ */ I(h.Fragment, { children: [
1648
1648
  /* @__PURE__ */ e(
1649
1649
  mr,
1650
1650
  {
1651
1651
  ariaLabel: m.ariaLabel,
1652
1652
  averageLineHeight: j,
1653
1653
  bottomHeight: w,
1654
- color: D(O),
1655
- index: O,
1654
+ color: D(L),
1655
+ index: L,
1656
1656
  onClick: s,
1657
1657
  range: P,
1658
1658
  selectedIndex: c,
@@ -1664,7 +1664,7 @@ const hc = (A, t) => {
1664
1664
  }
1665
1665
  ),
1666
1666
  /* @__PURE__ */ e(q, {})
1667
- ] }, `column-${O}`))
1667
+ ] }, `column-${L}`))
1668
1668
  ] }),
1669
1669
  /* @__PURE__ */ e(vc, { color: i, labelAverage: o, labelMain: a })
1670
1670
  ] });
@@ -1799,8 +1799,8 @@ const Dc = ({
1799
1799
  const x = gs({ start: MA(c), end: BA(c) }), w = [];
1800
1800
  for (let j = 0; j < x.length; j++) {
1801
1801
  const D = x[j], q = Cs({ start: D, end: ke(D, 6) }), m = [];
1802
- for (let O = 0; O < q.length; O++)
1803
- m.push(q[O]);
1802
+ for (let L = 0; L < q.length; L++)
1803
+ m.push(q[L]);
1804
1804
  w.push(m);
1805
1805
  }
1806
1806
  return w;
@@ -1895,8 +1895,8 @@ const Dc = ({
1895
1895
  let o = 0;
1896
1896
  return h.useEffect(() => {
1897
1897
  ys(".arc-outer").transition("roll").duration(500).attrTween("transform", () => xs("rotate(0)", "rotate(360)"));
1898
- }, []), /* @__PURE__ */ I(L, { height: n, position: "relative", width: n, children: [
1899
- /* @__PURE__ */ e(L, { height: "100%", padding: n / 3.75, width: "100%", children: r }),
1898
+ }, []), /* @__PURE__ */ I(O, { height: n, position: "relative", width: n, children: [
1899
+ /* @__PURE__ */ e(O, { height: "100%", padding: n / 3.75, width: "100%", children: r }),
1900
1900
  /* @__PURE__ */ e(
1901
1901
  "svg",
1902
1902
  {
@@ -2188,7 +2188,7 @@ const Dc = ({
2188
2188
  const { categories: i } = p(), { getCategoryName: n } = QA(), r = n(A);
2189
2189
  return /* @__PURE__ */ I(b, { alignItems: "center", direction: "column", gap: "8", justifyContent: "center", mb: 4, children: [
2190
2190
  /* @__PURE__ */ e(
2191
- L,
2191
+ O,
2192
2192
  {
2193
2193
  "aria-label": z(i.category_icon_label_aria, r),
2194
2194
  mb: 4,
@@ -2240,7 +2240,7 @@ const Dc = ({
2240
2240
  pointerEvents: "none"
2241
2241
  },
2242
2242
  children: /* @__PURE__ */ I(Xe, { children: [
2243
- /* @__PURE__ */ I(L, { alignItems: "center", display: "flex", flexDirection: "column", children: [
2243
+ /* @__PURE__ */ I(O, { alignItems: "center", display: "flex", flexDirection: "column", children: [
2244
2244
  /* @__PURE__ */ e(ca, { categoryGuid: A, topLevelCategoryGuid: t }),
2245
2245
  /* @__PURE__ */ e(R, { variant: "Small", children: `${i.length}-month total` }),
2246
2246
  /* @__PURE__ */ e(GA, { amount: E, bold: !0, formatString: "0,0", variant: "body2" })
@@ -2248,7 +2248,7 @@ const Dc = ({
2248
2248
  /* @__PURE__ */ e(G, { sx: { my: 16, width: "100%" } }),
2249
2249
  /* @__PURE__ */ e(UA, { container: !0, children: i.map((d, f) => /* @__PURE__ */ I(h.Fragment, { children: [
2250
2250
  f > 0 && f % 3 === 0 && /* @__PURE__ */ e(G, { sx: { my: 16, width: "100%" } }),
2251
- /* @__PURE__ */ e(UA, { item: !0, xs: 4, children: /* @__PURE__ */ I(L, { alignItems: "center", display: "flex", flexDirection: "column", children: [
2251
+ /* @__PURE__ */ e(UA, { item: !0, xs: 4, children: /* @__PURE__ */ I(O, { alignItems: "center", display: "flex", flexDirection: "column", children: [
2252
2252
  /* @__PURE__ */ e(R, { color: o.palette.text.secondary, variant: "XSmall", children: d.x }),
2253
2253
  /* @__PURE__ */ e(
2254
2254
  GA,
@@ -2305,7 +2305,7 @@ const Dc = ({
2305
2305
  },
2306
2306
  children: [
2307
2307
  /* @__PURE__ */ e(
2308
- L,
2308
+ O,
2309
2309
  {
2310
2310
  sx: {
2311
2311
  width: 16,
@@ -2337,9 +2337,9 @@ const Dc = ({
2337
2337
  hoveredAreaData: null,
2338
2338
  isAreaHovered: !1,
2339
2339
  cursorPos: { x: 0, y: 0 }
2340
- }), { hoveredSeriesId: H, hoveredAreaData: P, isAreaHovered: C, cursorPos: y } = v, x = C && H && P, w = !x, j = [...r, ...o], D = j[0]?.dataset.length ?? 0, q = j.flatMap((iA) => iA.dataset.map((pA) => pA.x)), m = j.flatMap((iA) => iA.dataset.map((pA) => pA.y)), O = r[0]?.dataset?.map(
2340
+ }), { hoveredSeriesId: H, hoveredAreaData: P, isAreaHovered: C, cursorPos: y } = v, x = C && H && P, w = !x, j = [...r, ...o], D = j[0]?.dataset.length ?? 0, q = j.flatMap((iA) => iA.dataset.map((pA) => pA.x)), m = j.flatMap((iA) => iA.dataset.map((pA) => pA.y)), L = r[0]?.dataset?.map(
2341
2341
  (iA, pA) => r.reduce((VA, Je) => VA + Je.dataset[pA]?.y || 0, 0)
2342
- ) ?? [0], K = Math.max(...O), B = Math.max(
2342
+ ) ?? [0], K = Math.max(...L), B = Math.max(
2343
2343
  ...o.flatMap((iA) => iA.dataset.map((pA) => pA.y))
2344
2344
  ), Z = Math.floor(Math.min(...m) / 100) * 100, fA = Math.ceil(Math.max(K, B) / 100) * 100, aA = r.map((iA, pA) => ({
2345
2345
  id: `stacked-${pA}`,
@@ -2444,7 +2444,7 @@ const Dc = ({
2444
2444
  }, iA;
2445
2445
  }, {})
2446
2446
  };
2447
- return /* @__PURE__ */ e(L, { onMouseMove: ne, ref: d, style: { position: "relative" }, children: /* @__PURE__ */ I(
2447
+ return /* @__PURE__ */ e(O, { onMouseMove: ne, ref: d, style: { position: "relative" }, children: /* @__PURE__ */ I(
2448
2448
  b,
2449
2449
  {
2450
2450
  direction: { xs: "column", md: "column" },
@@ -2534,7 +2534,7 @@ const Dc = ({
2534
2534
  height: t,
2535
2535
  width: "100%",
2536
2536
  children: A.map((n, r) => /* @__PURE__ */ e(
2537
- L,
2537
+ O,
2538
2538
  {
2539
2539
  bgcolor: n.color,
2540
2540
  borderRadius: i,
@@ -2634,7 +2634,7 @@ const Dc = ({
2634
2634
  children: [
2635
2635
  /* @__PURE__ */ e(TA, { "aria-label": A, color: "primary", onClick: t, children: /* @__PURE__ */ e(Ks, { color: "primary", sx: { fontSize: 22 } }) }),
2636
2636
  /* @__PURE__ */ e(
2637
- L,
2637
+ O,
2638
2638
  {
2639
2639
  sx: {
2640
2640
  flexGrow: 1,
@@ -2644,7 +2644,7 @@ const Dc = ({
2644
2644
  children: /* @__PURE__ */ e(vt, { bold: !0, variant: "Body", children: r })
2645
2645
  }
2646
2646
  ),
2647
- /* @__PURE__ */ e(L, { width: "44px" })
2647
+ /* @__PURE__ */ e(O, { width: "44px" })
2648
2648
  ]
2649
2649
  }
2650
2650
  ), oA = ({
@@ -2692,7 +2692,7 @@ const Dc = ({
2692
2692
  title: H
2693
2693
  }
2694
2694
  ),
2695
- /* @__PURE__ */ e(L, { height: "100%", overflow: "auto", children: t }),
2695
+ /* @__PURE__ */ e(O, { height: "100%", overflow: "auto", children: t }),
2696
2696
  s && /* @__PURE__ */ e(
2697
2697
  Rs,
2698
2698
  {
@@ -2750,14 +2750,14 @@ const Dc = ({
2750
2750
  Z[0] = B === "previous" ? Se(fA, gA) : ke(fA, gA), Z[1] = B === "previous" ? Se(aA, gA) : ke(aA, gA);
2751
2751
  }
2752
2752
  f(Z), A.onRangeChanged(Z);
2753
- }, O = () => {
2753
+ }, L = () => {
2754
2754
  f(u), x(
2755
2755
  l === i.dateRangePickerCopy.dateRangeThisMonth || l === i.dateRangePickerCopy.dateRangeLastMonth
2756
2756
  ), A.onRangeChanged(u);
2757
2757
  }, K = (B) => {
2758
2758
  j(B);
2759
2759
  };
2760
- return /* @__PURE__ */ I(L, { className: "mx-cmn-date-range-selector", m: 4, children: [
2760
+ return /* @__PURE__ */ I(O, { className: "mx-cmn-date-range-selector", m: 4, children: [
2761
2761
  /* @__PURE__ */ e(
2762
2762
  Gt,
2763
2763
  {
@@ -2777,7 +2777,7 @@ const Dc = ({
2777
2777
  }
2778
2778
  ),
2779
2779
  /* @__PURE__ */ I(
2780
- L,
2780
+ O,
2781
2781
  {
2782
2782
  sx: {
2783
2783
  [s.breakpoints.down("sm")]: {
@@ -2919,7 +2919,7 @@ const Dc = ({
2919
2919
  isOpen: P,
2920
2920
  onClose: () => C(!1),
2921
2921
  onPrimaryAction: () => {
2922
- O(), C(!1);
2922
+ L(), C(!1);
2923
2923
  },
2924
2924
  primaryText: i.dateRangeEditApply,
2925
2925
  title: i.dateRangeEditTitle,
@@ -2943,7 +2943,7 @@ const Dc = ({
2943
2943
  copy: { title: i.dateRangeEditTitle },
2944
2944
  isOpen: !0,
2945
2945
  onClose: () => C(!1),
2946
- onPrimaryAction: () => O(),
2946
+ onPrimaryAction: () => L(),
2947
2947
  primaryText: i.dateRangeEditApply,
2948
2948
  sx: {
2949
2949
  "& .MuiDialogContent-root": {
@@ -3031,7 +3031,7 @@ const Dc = ({
3031
3031
  }) => {
3032
3032
  const o = RA(), a = (i - n) / 2, s = -90, c = t > 100 ? 100 : t, E = 2 * Math.PI * a * (1 - c / 100), d = i / 2;
3033
3033
  return /* @__PURE__ */ I(
3034
- L,
3034
+ O,
3035
3035
  {
3036
3036
  className: "mx-cmn-single-segment-donut",
3037
3037
  height: i,
@@ -3067,7 +3067,7 @@ const Dc = ({
3067
3067
  )
3068
3068
  ] }),
3069
3069
  /* @__PURE__ */ e(
3070
- L,
3070
+ O,
3071
3071
  {
3072
3072
  className: "mx-cmn-single-segment-donut-children",
3073
3073
  left: "50%",
@@ -3164,43 +3164,43 @@ const wt = ({
3164
3164
  sx: f = {},
3165
3165
  title: l = ""
3166
3166
  }) => {
3167
- const [v, { height: u, width: H }] = fa(), { onEvent: P } = J(), { isDesktop: C, isLargeDesktop: y, isMobile: x, isTablet: w } = HA(), { displayedDateRange: j, isCopyLoaded: D, selectedAccountGuids: q, setSelectedAccountGuids: m } = cA(), { common: O } = p(), K = () => {
3167
+ const [v, { height: u, width: H }] = fa(), { onEvent: P } = J(), { isDesktop: C, isLargeDesktop: y, isMobile: x, isTablet: w } = HA(), { displayedDateRange: j, isCopyLoaded: D, selectedAccountGuids: q, setSelectedAccountGuids: m } = cA(), { common: L } = p(), K = () => {
3168
3168
  c && (c(), P(Y.WIDGET_BACK_CLICK));
3169
3169
  };
3170
3170
  if (!D)
3171
3171
  return /* @__PURE__ */ e(IA, {});
3172
3172
  const B = {
3173
3173
  accountFilterOptionsCopy: {
3174
- accountTypeAccounts: O.account_filter.account_type_accounts,
3175
- cancelButton: O.cancel_button,
3176
- filterButton: O.filter_button,
3177
- filterButtonAria: O.account_filter.filter_button_generic_aria,
3178
- selectAllAccounts: O.account_filter.select_all_accounts,
3179
- toggleAccountTypeAccounts: O.account_filter.toggle_account_type_accounts,
3180
- unselectAllAccounts: O.account_filter.unselect_all_accounts,
3181
- zeroStateButton: O.account_filter.zero_state_button,
3182
- zeroStateDescription: O.account_filter.zero_state_description,
3183
- zeroStateTitle: O.account_filter.zero_state_title
3174
+ accountTypeAccounts: L.account_filter.account_type_accounts,
3175
+ cancelButton: L.cancel_button,
3176
+ filterButton: L.filter_button,
3177
+ filterButtonAria: L.account_filter.filter_button_generic_aria,
3178
+ selectAllAccounts: L.account_filter.select_all_accounts,
3179
+ toggleAccountTypeAccounts: L.account_filter.toggle_account_type_accounts,
3180
+ unselectAllAccounts: L.account_filter.unselect_all_accounts,
3181
+ zeroStateButton: L.account_filter.zero_state_button,
3182
+ zeroStateDescription: L.account_filter.zero_state_description,
3183
+ zeroStateTitle: L.account_filter.zero_state_title
3184
3184
  },
3185
- title: O.account_filter.title
3185
+ title: L.account_filter.title
3186
3186
  }, Z = {
3187
3187
  dateRangePickerCopy: {
3188
- dateRangeFrom: O.date_range_picker.from,
3189
- dateRangeTo: O.date_range_picker.to,
3190
- dateRangeCustom: O.date_range_picker.custom,
3191
- dateRangeSelectARange: O.date_range_picker.select_range,
3192
- dateRangeThisMonth: O.date_range_picker.this_month,
3193
- dateRangeLastMonth: O.date_range_picker.last_month,
3194
- dateRangeLast30Days: O.date_range_picker.last_30_days,
3195
- dateRangeLast90Days: O.date_range_picker.last_90_days,
3196
- dateRangeYTD: O.date_range_picker.ytd,
3197
- dateRangeLastYear: O.date_range_picker.last_year,
3198
- dateRangeSelect: O.date_range_picker.select
3188
+ dateRangeFrom: L.date_range_picker.from,
3189
+ dateRangeTo: L.date_range_picker.to,
3190
+ dateRangeCustom: L.date_range_picker.custom,
3191
+ dateRangeSelectARange: L.date_range_picker.select_range,
3192
+ dateRangeThisMonth: L.date_range_picker.this_month,
3193
+ dateRangeLastMonth: L.date_range_picker.last_month,
3194
+ dateRangeLast30Days: L.date_range_picker.last_30_days,
3195
+ dateRangeLast90Days: L.date_range_picker.last_90_days,
3196
+ dateRangeYTD: L.date_range_picker.ytd,
3197
+ dateRangeLastYear: L.date_range_picker.last_year,
3198
+ dateRangeSelect: L.date_range_picker.select
3199
3199
  },
3200
- dateRangeEditApply: O.date_range_picker.edit_apply,
3201
- dateRangeEditTitle: O.date_range_picker.edit_title,
3202
- dateRangeNextAria: O.date_range_picker.next_aria,
3203
- dateRangePreviousAria: O.date_range_picker.previous_aria
3200
+ dateRangeEditApply: L.date_range_picker.edit_apply,
3201
+ dateRangeEditTitle: L.date_range_picker.edit_title,
3202
+ dateRangeNextAria: L.date_range_picker.next_aria,
3203
+ dateRangePreviousAria: L.date_range_picker.previous_aria
3204
3204
  }, fA = r ? r.start : j.start, aA = r ? r.end : j.end, lA = t?.length > 1;
3205
3205
  return /* @__PURE__ */ I(
3206
3206
  ge,
@@ -3223,7 +3223,7 @@ const wt = ({
3223
3223
  ot,
3224
3224
  {
3225
3225
  action: /* @__PURE__ */ I(b, { alignItems: "center", flexDirection: "row", children: [
3226
- C && i && /* @__PURE__ */ e(L, { sx: { flexGrow: 1 }, children: /* @__PURE__ */ e(
3226
+ C && i && /* @__PURE__ */ e(O, { sx: { flexGrow: 1 }, children: /* @__PURE__ */ e(
3227
3227
  Or,
3228
3228
  {
3229
3229
  calendarActions: i,
@@ -3285,7 +3285,7 @@ const wt = ({
3285
3285
  x && c && /* @__PURE__ */ e(
3286
3286
  TA,
3287
3287
  {
3288
- "aria-label": O.back_to_dashboard,
3288
+ "aria-label": L.back_to_dashboard,
3289
3289
  onClick: K,
3290
3290
  sx: { p: 12, mr: 4 },
3291
3291
  children: /* @__PURE__ */ e(M, { name: "arrow_back", size: 24 })
@@ -3316,7 +3316,7 @@ const wt = ({
3316
3316
  }, ze = g(_c), $c = ({ status: A = dt.Loading }) => {
3317
3317
  const { connect: t } = p();
3318
3318
  return /* @__PURE__ */ e(
3319
- L,
3319
+ O,
3320
3320
  {
3321
3321
  sx: {
3322
3322
  height: "calc(100% - 62px)",
@@ -3506,7 +3506,7 @@ const Qr = "connect_widget", qr = "connections_widget", Ad = ({
3506
3506
  children: /* @__PURE__ */ e(M, { name: "cancel", size: 24 })
3507
3507
  }
3508
3508
  );
3509
- return /* @__PURE__ */ e(L, { className: "mx-cmn-search-box", px: o.Spacing.Large, py: o.Spacing.Medium, children: /* @__PURE__ */ e(
3509
+ return /* @__PURE__ */ e(O, { className: "mx-cmn-search-box", px: o.Spacing.Large, py: o.Spacing.Medium, children: /* @__PURE__ */ e(
3510
3510
  Et,
3511
3511
  {
3512
3512
  InputProps: {
@@ -3530,7 +3530,7 @@ const Qr = "connect_widget", qr = "connections_widget", Ad = ({
3530
3530
  }) => {
3531
3531
  const o = RA(), a = o.palette.mode === "light" ? o.palette.grey[400] : o.palette.grey[700], s = A ? o.palette.action.active : a;
3532
3532
  return /* @__PURE__ */ e(
3533
- L,
3533
+ O,
3534
3534
  {
3535
3535
  bgcolor: "background.paper",
3536
3536
  border: `${A ? 3 : 1}px solid`,
@@ -3592,7 +3592,7 @@ const Qr = "connect_widget", qr = "connections_widget", Ad = ({
3592
3592
  children: [
3593
3593
  t,
3594
3594
  /* @__PURE__ */ e(
3595
- L,
3595
+ O,
3596
3596
  {
3597
3597
  sx: {
3598
3598
  backgroundColor: "common.white",
@@ -4194,7 +4194,7 @@ const Tt = () => {
4194
4194
  const { cashflow: t } = p();
4195
4195
  return /* @__PURE__ */ I(AA, { children: [
4196
4196
  /* @__PURE__ */ e(
4197
- L,
4197
+ O,
4198
4198
  {
4199
4199
  sx: {
4200
4200
  borderRadius: "1px",
@@ -4233,7 +4233,7 @@ const Tt = () => {
4233
4233
  () => y - x,
4234
4234
  [y, x]
4235
4235
  ), j = c?.has_completed_cash_flow_onboarding && !!A;
4236
- return H ? /* @__PURE__ */ e(L, { className: "mx-cashflow", pl: 16, pr: 16, pt: 16, children: i > 610 ? /* @__PURE__ */ I(
4236
+ return H ? /* @__PURE__ */ e(O, { className: "mx-cashflow", pl: 16, pr: 16, pt: 16, children: i > 610 ? /* @__PURE__ */ I(
4237
4237
  b,
4238
4238
  {
4239
4239
  border: `1px solid ${t.palette.border.light}`,
@@ -5166,7 +5166,7 @@ const be = () => {
5166
5166
  }, Wn = g(Od), kn = ({
5167
5167
  bgcolor: A = "background.default",
5168
5168
  children: t
5169
- }) => /* @__PURE__ */ e(L, { display: "inline-block", pb: 4, pl: 24, pt: 4, sx: { bgcolor: A, width: "100%" }, children: /* @__PURE__ */ e(R, { bold: !0, variant: "XSmall", children: t }) }), Qd = ({ showIcon: A = !0, showSubtitle: t = !0 }) => {
5169
+ }) => /* @__PURE__ */ e(O, { display: "inline-block", pb: 4, pl: 24, pt: 4, sx: { bgcolor: A, width: "100%" }, children: /* @__PURE__ */ e(R, { bold: !0, variant: "XSmall", children: t }) }), Qd = ({ showIcon: A = !0, showSubtitle: t = !0 }) => {
5170
5170
  const i = Ae(), { transactions: n } = p();
5171
5171
  return /* @__PURE__ */ I(b, { alignItems: "center", gap: i.Spacing.Small, height: "auto", mt: i.Spacing.Large, children: [
5172
5172
  A && /* @__PURE__ */ e(wI, { color: "secondary", sx: { fontSize: 32 } }),
@@ -5206,8 +5206,8 @@ const be = () => {
5206
5206
  estimateSize: (y) => Br + (Vr(y, f) ? Sr : 0),
5207
5207
  overscan: 5
5208
5208
  });
5209
- return h.useEffect(() => C.measure(), [f]), h.useEffect(() => l(r), [r]), /* @__PURE__ */ e(nA, { children: /* @__PURE__ */ e(L, { height: t, overflow: "auto", ref: P, width: s, children: /* @__PURE__ */ I(
5210
- L,
5209
+ return h.useEffect(() => C.measure(), [f]), h.useEffect(() => l(r), [r]), /* @__PURE__ */ e(nA, { children: /* @__PURE__ */ e(O, { height: t, overflow: "auto", ref: P, width: s, children: /* @__PURE__ */ I(
5210
+ O,
5211
5211
  {
5212
5212
  height: (
5213
5213
  // set the height to auto when there are no transactions so the zero state isn't set to 0
@@ -5221,7 +5221,7 @@ const be = () => {
5221
5221
  !E && !o && C.getVirtualItems().length > 0 && C.getVirtualItems().map((y) => {
5222
5222
  const x = f[y.index], w = Vr(y.index, f), j = Gd(y.index, f), D = Br + (w ? Sr : 0);
5223
5223
  return /* @__PURE__ */ I(
5224
- L,
5224
+ O,
5225
5225
  {
5226
5226
  sx: {
5227
5227
  height: D,
@@ -5275,7 +5275,7 @@ const be = () => {
5275
5275
  }, Vd = g(Yd), Bd = (A) => /* @__PURE__ */ e(R, { tabIndex: A.tabIndex, variant: "Small", children: rA(jA(A.row.date), eA.MONTH_DAY) }), Sd = (A) => {
5276
5276
  const t = te(), { transactions: i } = p(), { is_flagged: n, is_hidden: r, has_been_viewed: o, parent_guid: a } = A.row, c = !o && !!!a;
5277
5277
  return /* @__PURE__ */ I(
5278
- L,
5278
+ O,
5279
5279
  {
5280
5280
  "aria-label": r ? i.is_hidden : i.is_flagged,
5281
5281
  tabIndex: A.tabIndex,
@@ -5570,7 +5570,7 @@ const Kd = ({
5570
5570
  ]
5571
5571
  }
5572
5572
  ),
5573
- H && /* @__PURE__ */ I(L, { className: "mx-cat-subcategory-edit-container", sx: { marginRight: 24 }, children: [
5573
+ H && /* @__PURE__ */ I(O, { className: "mx-cat-subcategory-edit-container", sx: { marginRight: 24 }, children: [
5574
5574
  /* @__PURE__ */ e(
5575
5575
  TA,
5576
5576
  {
@@ -6041,7 +6041,7 @@ const Pa = ({ transaction: A }) => {
6041
6041
  }
6042
6042
  await n({ ...A, date: E }), i(Y.TRANSACTION_DETAILS_CLICK_DATE, { transaction_guid: A.guid }), c(!1);
6043
6043
  };
6044
- return /* @__PURE__ */ I(L, { className: "mx-txn-date-action", children: [
6044
+ return /* @__PURE__ */ I(O, { className: "mx-txn-date-action", children: [
6045
6045
  /* @__PURE__ */ e(W, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ I(
6046
6046
  sA,
6047
6047
  {
@@ -6092,7 +6092,7 @@ const Pa = ({ transaction: A }) => {
6092
6092
  const { onEvent: t } = J(), { removeTransaction: i } = zA(), { setShouldDisableDrawerScroll: n } = be(), { common: r, transactions: o } = p(), [a, s] = h.useState(!1), c = async () => {
6093
6093
  await i(A.guid), t(S.ON_TRANSACTION_DELETE_DELETED);
6094
6094
  };
6095
- return /* @__PURE__ */ I(L, { className: "mx-txn-delete", children: [
6095
+ return /* @__PURE__ */ I(O, { className: "mx-txn-delete", children: [
6096
6096
  A && /* @__PURE__ */ e(W, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ I(
6097
6097
  sA,
6098
6098
  {
@@ -6134,7 +6134,7 @@ const Pa = ({ transaction: A }) => {
6134
6134
  transaction_guid: A.guid
6135
6135
  });
6136
6136
  };
6137
- return /* @__PURE__ */ I(L, { className: "mx-txn-delete-logo", children: [
6137
+ return /* @__PURE__ */ I(O, { className: "mx-txn-delete-logo", children: [
6138
6138
  A && /* @__PURE__ */ e(W, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ I(
6139
6139
  sA,
6140
6140
  {
@@ -6174,7 +6174,7 @@ const Pa = ({ transaction: A }) => {
6174
6174
  c ? S.ON_TRANSACTION_UNHIDDEN : S.ON_TRANSACTION_HIDDEN
6175
6175
  );
6176
6176
  };
6177
- return /* @__PURE__ */ I(L, { className: "mx-txn-hide-transaction", children: [
6177
+ return /* @__PURE__ */ I(O, { className: "mx-txn-hide-transaction", children: [
6178
6178
  A && /* @__PURE__ */ e(W, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ I(
6179
6179
  sA,
6180
6180
  {
@@ -6338,7 +6338,7 @@ const Pa = ({ transaction: A }) => {
6338
6338
  isNaN(Number(u)) || (E(u), n(A, Number(u)));
6339
6339
  };
6340
6340
  return /* @__PURE__ */ I(
6341
- L,
6341
+ O,
6342
6342
  {
6343
6343
  bgcolor: "background.paper",
6344
6344
  className: "mx-txn-split-manager-row",
@@ -6357,7 +6357,7 @@ const Pa = ({ transaction: A }) => {
6357
6357
  children: r.category
6358
6358
  }
6359
6359
  ),
6360
- /* @__PURE__ */ e(L, { children: !r.category_guid && /* @__PURE__ */ I(
6360
+ /* @__PURE__ */ e(O, { children: !r.category_guid && /* @__PURE__ */ I(
6361
6361
  b,
6362
6362
  {
6363
6363
  color: "error.main",
@@ -6444,7 +6444,7 @@ const Pa = ({ transaction: A }) => {
6444
6444
  N(o.amount, "0,0.00")
6445
6445
  ) : ""
6446
6446
  );
6447
- }, [r]), /* @__PURE__ */ I(L, { className: "mx-txn-split-manager", children: [
6447
+ }, [r]), /* @__PURE__ */ I(O, { className: "mx-txn-split-manager", children: [
6448
6448
  r.map((f, l) => /* @__PURE__ */ e(
6449
6449
  Xf,
6450
6450
  {
@@ -6469,7 +6469,7 @@ const Pa = ({ transaction: A }) => {
6469
6469
  ]
6470
6470
  }
6471
6471
  ),
6472
- /* @__PURE__ */ e(L, { p: a.Spacing.Medium, children: /* @__PURE__ */ e(
6472
+ /* @__PURE__ */ e(O, { p: a.Spacing.Medium, children: /* @__PURE__ */ e(
6473
6473
  _,
6474
6474
  {
6475
6475
  "aria-label": s.split_transaction_add_split_btn,
@@ -6497,23 +6497,23 @@ const Pa = ({ transaction: A }) => {
6497
6497
  parent_guid: A.guid,
6498
6498
  top_level_category_guid: void 0
6499
6499
  }, [d, f] = h.useState(!1), [l, v] = h.useState(!1), [u, H] = h.useState([]), P = () => {
6500
- const O = [...u];
6501
- O.push({ ...E }), O[0].amount -= 1, H(O);
6502
- }, C = (O) => {
6503
- if (O > 0) {
6504
- const K = u[O], B = [...u];
6505
- B.splice(O, 1), B[0].amount += K.amount, H(B);
6506
- }
6507
- }, y = (O, K) => {
6500
+ const L = [...u];
6501
+ L.push({ ...E }), L[0].amount -= 1, H(L);
6502
+ }, C = (L) => {
6503
+ if (L > 0) {
6504
+ const K = u[L], B = [...u];
6505
+ B.splice(L, 1), B[0].amount += K.amount, H(B);
6506
+ }
6507
+ }, y = (L, K) => {
6508
6508
  const B = [...u];
6509
- B[O].amount = K, B[0].amount = A.amount - B.reduce(
6509
+ B[L].amount = K, B[0].amount = A.amount - B.reduce(
6510
6510
  (Z, fA, aA) => Z + (aA !== 0 ? fA.amount : 0),
6511
6511
  0
6512
6512
  ), H(B);
6513
- }, x = (O, K) => {
6513
+ }, x = (L, K) => {
6514
6514
  const B = [...u], Z = s.find((fA) => fA.guid === K);
6515
- Z && (B[O] = {
6516
- ...B[O],
6515
+ Z && (B[L] = {
6516
+ ...B[L],
6517
6517
  category_guid: K,
6518
6518
  category: Z.name,
6519
6519
  top_level_category_guid: Z.parent_guid || K
@@ -6534,11 +6534,11 @@ const Pa = ({ transaction: A }) => {
6534
6534
  t(Y.TRANSACTION_DETAILS_CLICK_UNSPLIT, {
6535
6535
  transaction_guid: A.guid
6536
6536
  });
6537
- const O = A.parent_guid ?? A.guid;
6538
- await n(O);
6537
+ const L = A.parent_guid ?? A.guid;
6538
+ await n(L);
6539
6539
  }, m = h.useMemo(() => {
6540
- const O = u.some((B) => !B.category_guid), K = u.some((B) => B.amount <= 0);
6541
- return O || K;
6540
+ const L = u.some((B) => !B.category_guid), K = u.some((B) => B.amount <= 0);
6541
+ return L || K;
6542
6542
  }, [u]);
6543
6543
  return /* @__PURE__ */ I(h.Fragment, { children: [
6544
6544
  A && /* @__PURE__ */ e(W, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ I(sA, { onClick: w, children: [
@@ -6614,7 +6614,7 @@ const Pa = ({ transaction: A }) => {
6614
6614
  };
6615
6615
  return h.useEffect(() => {
6616
6616
  E(a.length > 40 ? n.tags_error_name_must_be_40_chars : "");
6617
- }, [a]), /* @__PURE__ */ I(L, { className: "mx-txn-tag-manager-header", children: [
6617
+ }, [a]), /* @__PURE__ */ I(O, { className: "mx-txn-tag-manager-header", children: [
6618
6618
  /* @__PURE__ */ I(
6619
6619
  b,
6620
6620
  {
@@ -6672,7 +6672,7 @@ const Pa = ({ transaction: A }) => {
6672
6672
  children: /* @__PURE__ */ e(zI, {})
6673
6673
  }
6674
6674
  );
6675
- return /* @__PURE__ */ e(L, { className: "mx-txn-tag-manager-search", px: r.Spacing.Large, py: r.Spacing.Medium, children: /* @__PURE__ */ e(
6675
+ return /* @__PURE__ */ e(O, { className: "mx-txn-tag-manager-search", px: r.Spacing.Large, py: r.Spacing.Medium, children: /* @__PURE__ */ e(
6676
6676
  Et,
6677
6677
  {
6678
6678
  InputProps: {
@@ -6864,7 +6864,7 @@ const Pa = ({ transaction: A }) => {
6864
6864
  transaction_guid: A.guid
6865
6865
  }), await t({ ...A, description: s }), a(!1);
6866
6866
  };
6867
- return /* @__PURE__ */ e(L, { className: "mx-txn-transaction-description", children: o ? /* @__PURE__ */ I(XI, { row: !0, children: [
6867
+ return /* @__PURE__ */ e(O, { className: "mx-txn-transaction-description", children: o ? /* @__PURE__ */ I(XI, { row: !0, children: [
6868
6868
  /* @__PURE__ */ e(
6869
6869
  $A,
6870
6870
  {
@@ -6946,7 +6946,7 @@ const Pa = ({ transaction: A }) => {
6946
6946
  return h.useEffect(
6947
6947
  () => o(Y.TRANSACTION_DETAILS_VIEW, { transaction_guid: i.guid }),
6948
6948
  []
6949
- ), n ? /* @__PURE__ */ e(L, { className: "mx-txn-transaction-details", width: "100%", children: i && /* @__PURE__ */ I(b, { children: [
6949
+ ), n ? /* @__PURE__ */ e(O, { className: "mx-txn-transaction-details", width: "100%", children: i && /* @__PURE__ */ I(b, { children: [
6950
6950
  /* @__PURE__ */ I(b, { gap: 12, p: 24, children: [
6951
6951
  /* @__PURE__ */ e(me, { elevation: 2, sx: { borderRadius: "12px", width: 64 }, children: /* @__PURE__ */ e(
6952
6952
  Rt,
@@ -7028,7 +7028,7 @@ const Pa = ({ transaction: A }) => {
7028
7028
  }, H = (P) => {
7029
7029
  o({ ...n, account_guid: P });
7030
7030
  };
7031
- return /* @__PURE__ */ I(L, { className: "mx-txn-manual-transaction-details", children: [
7031
+ return /* @__PURE__ */ I(O, { className: "mx-txn-manual-transaction-details", children: [
7032
7032
  /* @__PURE__ */ I(b, { gap: 40, mx: 24, my: 32, children: [
7033
7033
  /* @__PURE__ */ I(
7034
7034
  b,
@@ -7098,7 +7098,7 @@ const Pa = ({ transaction: A }) => {
7098
7098
  )
7099
7099
  ] }),
7100
7100
  /* @__PURE__ */ e(G, { light: !0 }),
7101
- /* @__PURE__ */ I(L, { bgcolor: "background.paper", children: [
7101
+ /* @__PURE__ */ I(O, { bgcolor: "background.paper", children: [
7102
7102
  /* @__PURE__ */ e(Pa, { transaction: n }),
7103
7103
  /* @__PURE__ */ e(ba, { transaction: n }),
7104
7104
  /* @__PURE__ */ e(za, { transaction: n }),
@@ -7112,7 +7112,7 @@ const Pa = ({ transaction: A }) => {
7112
7112
  ), E = async (d) => {
7113
7113
  await n({ ...t, category_guid: a }), d && await i(a, t), s(""), A();
7114
7114
  };
7115
- return /* @__PURE__ */ I(L, { className: "mx-txn-edit-category-action", children: [
7115
+ return /* @__PURE__ */ I(O, { className: "mx-txn-edit-category-action", children: [
7116
7116
  /* @__PURE__ */ e(
7117
7117
  Si,
7118
7118
  {
@@ -7169,7 +7169,7 @@ const Pa = ({ transaction: A }) => {
7169
7169
  updateTransaction: x
7170
7170
  } = zA(), { common: w, transactions: j } = p(), { userProfile: D } = Fe(), { onEvent: q } = J(), {
7171
7171
  displayedDateRange: m,
7172
- isCopyLoaded: O,
7172
+ isCopyLoaded: L,
7173
7173
  isInitialized: K,
7174
7174
  selectedAccountGuids: B,
7175
7175
  selectedAccounts: Z,
@@ -7224,7 +7224,7 @@ const Pa = ({ transaction: A }) => {
7224
7224
  }, ds = async () => {
7225
7225
  pA && !pA.has_been_viewed && await x({ ...pA, has_been_viewed: !0 }), gA("");
7226
7226
  };
7227
- return !O || !K || !ne ? /* @__PURE__ */ e(IA, {}) : /* @__PURE__ */ I(
7227
+ return !L || !K || !ne ? /* @__PURE__ */ e(IA, {}) : /* @__PURE__ */ I(
7228
7228
  ze,
7229
7229
  {
7230
7230
  accountOptions: r,
@@ -7248,7 +7248,7 @@ const Pa = ({ transaction: A }) => {
7248
7248
  sx: n,
7249
7249
  title: j.transactions_title,
7250
7250
  children: [
7251
- /* @__PURE__ */ e(L, { mt: 16, children: /* @__PURE__ */ e(
7251
+ /* @__PURE__ */ e(O, { mt: 16, children: /* @__PURE__ */ e(
7252
7252
  Vi,
7253
7253
  {
7254
7254
  onChange: Zi,
@@ -7257,7 +7257,7 @@ const Pa = ({ transaction: A }) => {
7257
7257
  }
7258
7258
  ) }),
7259
7259
  /* @__PURE__ */ e(
7260
- L,
7260
+ O,
7261
7261
  {
7262
7262
  sx: {
7263
7263
  [a.breakpoints.down("md")]: { display: "none" },
@@ -7284,7 +7284,7 @@ const Pa = ({ transaction: A }) => {
7284
7284
  }
7285
7285
  ),
7286
7286
  /* @__PURE__ */ e(
7287
- L,
7287
+ O,
7288
7288
  {
7289
7289
  sx: {
7290
7290
  [a.breakpoints.down("md")]: { display: "block" },
@@ -7978,7 +7978,7 @@ const Pa = ({ transaction: A }) => {
7978
7978
  }, j = () => {
7979
7979
  v(""), f(!1);
7980
7980
  };
7981
- return /* @__PURE__ */ I(L, { children: [
7981
+ return /* @__PURE__ */ I(O, { children: [
7982
7982
  /* @__PURE__ */ e(W, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ e(sA, { onClick: x, children: /* @__PURE__ */ e(tA, { children: /* @__PURE__ */ I(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
7983
7983
  /* @__PURE__ */ I(b, { alignItems: "center", direction: "row", gap: 8, children: [
7984
7984
  /* @__PURE__ */ e(M, { fill: !0, name: "add_box", size: 24, sx: { color: "action.active" } }),
@@ -8265,7 +8265,7 @@ const Pa = ({ transaction: A }) => {
8265
8265
  ] });
8266
8266
  }, Ar = g(RE), uE = () => {
8267
8267
  const [A, t] = h.useState(0), { onEvent: i } = J(), { recurring: n } = p();
8268
- return /* @__PURE__ */ I(L, { bgcolor: "background.default", height: "100%", children: [
8268
+ return /* @__PURE__ */ I(O, { bgcolor: "background.default", height: "100%", children: [
8269
8269
  /* @__PURE__ */ I(
8270
8270
  qe,
8271
8271
  {
@@ -8501,9 +8501,9 @@ const Pa = ({ transaction: A }) => {
8501
8501
  const E = [{ color: s.palette.success.main, percentage: `${i / t}` }];
8502
8502
  return n && E.push({ color: s.palette.error.main, percentage: `${n / t}` }), E;
8503
8503
  }, [i, t, n]);
8504
- return /* @__PURE__ */ I(L, { px: 24, children: [
8504
+ return /* @__PURE__ */ I(O, { px: 24, children: [
8505
8505
  /* @__PURE__ */ I(b, { direction: "row", justifyContent: "space-between", children: [
8506
- /* @__PURE__ */ I(L, { children: [
8506
+ /* @__PURE__ */ I(O, { children: [
8507
8507
  /* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: `${r} ${A}` }),
8508
8508
  /* @__PURE__ */ I(b, { direction: "row", gap: 2, mb: 8, children: [
8509
8509
  /* @__PURE__ */ e(R, { bold: !0, variant: "XSmall", children: N(i, "0,0.00") }),
@@ -8537,7 +8537,7 @@ const Pa = ({ transaction: A }) => {
8537
8537
  l(Y.RECURRING_ACTIVITY_CLICK_UPCOMING, {
8538
8538
  transaction_guid: K.transactionGuid
8539
8539
  });
8540
- }, O = (K) => {
8540
+ }, L = (K) => {
8541
8541
  l(Y.RECURRING_ACTIVITY_CLICK_PAID, {
8542
8542
  transaction_guid: K.transactionGuid
8543
8543
  });
@@ -8571,7 +8571,7 @@ const Pa = ({ transaction: A }) => {
8571
8571
  title: A.upcoming_activity
8572
8572
  }
8573
8573
  ),
8574
- (i || t) && /* @__PURE__ */ I(L, { children: [
8574
+ (i || t) && /* @__PURE__ */ I(O, { children: [
8575
8575
  /* @__PURE__ */ I(qe, { onChange: q, value: d, variant: "fullWidth", children: [
8576
8576
  /* @__PURE__ */ e(
8577
8577
  OA,
@@ -8593,7 +8593,7 @@ const Pa = ({ transaction: A }) => {
8593
8593
  onActivityClick: m
8594
8594
  }
8595
8595
  ),
8596
- d === 1 && /* @__PURE__ */ e(kt, { activities: u, onActivityClick: O })
8596
+ d === 1 && /* @__PURE__ */ e(kt, { activities: u, onActivityClick: L })
8597
8597
  ] })
8598
8598
  ] }) }),
8599
8599
  !i && !t && /* @__PURE__ */ e(it, { sx: { minWidth: 450 }, xs: "auto", children: /* @__PURE__ */ I(b, { gap: 35, children: [
@@ -8602,7 +8602,7 @@ const Pa = ({ transaction: A }) => {
8602
8602
  kt,
8603
8603
  {
8604
8604
  activities: s || u,
8605
- onActivityClick: O,
8605
+ onActivityClick: L,
8606
8606
  onResetClick: a ? () => c(a) : void 0,
8607
8607
  title: a ? z(
8608
8608
  A.day_transactions,
@@ -9084,11 +9084,11 @@ const OE = {
9084
9084
  }
9085
9085
  ),
9086
9086
  secondary: /* @__PURE__ */ I(AA, { children: [
9087
- /* @__PURE__ */ I(L, { sx: { alignItems: "center", display: "flex", justifyContent: "space-between" }, children: [
9087
+ /* @__PURE__ */ I(O, { sx: { alignItems: "center", display: "flex", justifyContent: "space-between" }, children: [
9088
9088
  /* @__PURE__ */ e(R, { variant: "XSmall", children: a }),
9089
9089
  /* @__PURE__ */ e(R, { bold: !0, variant: "Small", children: N(s, "0,0.00") })
9090
9090
  ] }),
9091
- /* @__PURE__ */ I(L, { sx: { alignItems: "center", display: "flex", justifyContent: "space-between" }, children: [
9091
+ /* @__PURE__ */ I(O, { sx: { alignItems: "center", display: "flex", justifyContent: "space-between" }, children: [
9092
9092
  /* @__PURE__ */ e(R, { variant: "XSmall", children: c }),
9093
9093
  /* @__PURE__ */ e(R, { ml: "auto", variant: "XSmall", children: E })
9094
9094
  ] })
@@ -9307,7 +9307,7 @@ const BE = ({ activity: A }) => /* @__PURE__ */ I(AA, { children: [
9307
9307
  };
9308
9308
  }), [a, n, r]);
9309
9309
  return /* @__PURE__ */ I(
9310
- L,
9310
+ O,
9311
9311
  {
9312
9312
  sx: {
9313
9313
  width: "100%"
@@ -9462,7 +9462,7 @@ const BE = ({ activity: A }) => /* @__PURE__ */ I(AA, { children: [
9462
9462
  };
9463
9463
  return h.useEffect(() => {
9464
9464
  i(n === 0 ? "cash_flow_summary" : "cash_flow_details");
9465
- }, [n]), /* @__PURE__ */ I(L, { children: [
9465
+ }, [n]), /* @__PURE__ */ I(O, { children: [
9466
9466
  /* @__PURE__ */ I(
9467
9467
  qe,
9468
9468
  {
@@ -9493,9 +9493,9 @@ const BE = ({ activity: A }) => /* @__PURE__ */ I(AA, { children: [
9493
9493
  ]
9494
9494
  }
9495
9495
  ),
9496
- /* @__PURE__ */ e(L, { sx: { mb: 32 } }),
9497
- /* @__PURE__ */ e(qt, { index: 0, name: "cashflow", value: n, children: /* @__PURE__ */ e(L, { sx: { m: t ? 48 : 16 }, children: /* @__PURE__ */ e(kE, {}) }) }),
9498
- /* @__PURE__ */ e(qt, { index: 1, name: "cashflow", value: n, children: /* @__PURE__ */ e(L, { sx: { m: t ? 48 : 16 }, children: /* @__PURE__ */ e(FE, {}) }) })
9496
+ /* @__PURE__ */ e(O, { sx: { mb: 32 } }),
9497
+ /* @__PURE__ */ e(qt, { index: 0, name: "cashflow", value: n, children: /* @__PURE__ */ e(O, { sx: { m: t ? 48 : 16 }, children: /* @__PURE__ */ e(kE, {}) }) }),
9498
+ /* @__PURE__ */ e(qt, { index: 1, name: "cashflow", value: n, children: /* @__PURE__ */ e(O, { sx: { m: t ? 48 : 16 }, children: /* @__PURE__ */ e(FE, {}) }) })
9499
9499
  ] });
9500
9500
  }, ZE = g(KE), st = ({
9501
9501
  amount: A,
@@ -9655,7 +9655,7 @@ const BE = ({ activity: A }) => /* @__PURE__ */ I(AA, { children: [
9655
9655
  /* @__PURE__ */ I(b, { direction: "column", mb: 32, spacing: 32, children: [
9656
9656
  /* @__PURE__ */ I(wA, { sx: { display: "flex", alignItems: "center", fontSize: 18 }, children: [
9657
9657
  /* @__PURE__ */ e(
9658
- L,
9658
+ O,
9659
9659
  {
9660
9660
  bgcolor: n.palette.primary.lighter,
9661
9661
  borderRadius: 1,
@@ -9671,7 +9671,7 @@ const BE = ({ activity: A }) => /* @__PURE__ */ I(AA, { children: [
9671
9671
  ] }),
9672
9672
  /* @__PURE__ */ I(wA, { sx: { display: "flex", alignItems: "center", fontSize: 18 }, children: [
9673
9673
  /* @__PURE__ */ e(
9674
- L,
9674
+ O,
9675
9675
  {
9676
9676
  bgcolor: n.palette.primary.lighter,
9677
9677
  borderRadius: 1,
@@ -9687,7 +9687,7 @@ const BE = ({ activity: A }) => /* @__PURE__ */ I(AA, { children: [
9687
9687
  ] }),
9688
9688
  /* @__PURE__ */ I(wA, { sx: { display: "flex", alignItems: "center", fontSize: 18 }, children: [
9689
9689
  /* @__PURE__ */ e(
9690
- L,
9690
+ O,
9691
9691
  {
9692
9692
  bgcolor: n.palette.primary.lighter,
9693
9693
  borderRadius: 1,
@@ -9722,7 +9722,7 @@ const BE = ({ activity: A }) => /* @__PURE__ */ I(AA, { children: [
9722
9722
  transform: rotate(360deg);
9723
9723
  }
9724
9724
  `, oh = () => {
9725
- const { addCashflowEvent: A, addCashflowSequence: t, cashflowSequences: i } = kA(), { cashflow: n, common: r } = p(), { completeOnboarding: o } = Bn(), { isDirty: a } = Tt(), { isMobile: s } = HA(), { isCopyLoaded: c, setDisplayedDate: E } = cA(), { filter: d, setFilter: f, transactions: l } = zA(), v = RA(), [u, H] = We(!0), [P, C] = h.useState(F.EveryMonth), [y, x] = We(!1), [w, j] = h.useState(null), [D, q] = We(1), [m, O] = We([]), [K, B] = We(""), Z = h.useMemo(
9725
+ const { addCashflowEvent: A, addCashflowSequence: t, cashflowSequences: i } = kA(), { cashflow: n, common: r } = p(), { completeOnboarding: o } = Bn(), { isDirty: a } = Tt(), { isMobile: s } = HA(), { isCopyLoaded: c, setDisplayedDate: E } = cA(), { filter: d, setFilter: f, transactions: l } = zA(), v = RA(), [u, H] = We(!0), [P, C] = h.useState(F.EveryMonth), [y, x] = We(!1), [w, j] = h.useState(null), [D, q] = We(1), [m, L] = We([]), [K, B] = We(""), Z = h.useMemo(
9726
9726
  () => l.find((hA) => hA.guid === K),
9727
9727
  [K]
9728
9728
  ), fA = !!i.length, aA = async () => {
@@ -9749,7 +9749,7 @@ const BE = ({ activity: A }) => /* @__PURE__ */ I(AA, { children: [
9749
9749
  }
9750
9750
  }, gA = !Z && u || !Z && m.length < 1;
9751
9751
  return c ? /* @__PURE__ */ I(
9752
- L,
9752
+ O,
9753
9753
  {
9754
9754
  sx: {
9755
9755
  display: "flex",
@@ -9763,7 +9763,7 @@ const BE = ({ activity: A }) => /* @__PURE__ */ I(AA, { children: [
9763
9763
  },
9764
9764
  children: [
9765
9765
  D === 1 && /* @__PURE__ */ e(
9766
- L,
9766
+ O,
9767
9767
  {
9768
9768
  sx: {
9769
9769
  ...s ? { display: "flex", flexDirection: "column", maxWidth: "100%", padding: "0 16px" } : { maxWidth: 590, ml: "40%", mr: 90 }
@@ -9772,7 +9772,7 @@ const BE = ({ activity: A }) => /* @__PURE__ */ I(AA, { children: [
9772
9772
  }
9773
9773
  ),
9774
9774
  D === 2 && /* @__PURE__ */ e(
9775
- L,
9775
+ O,
9776
9776
  {
9777
9777
  sx: {
9778
9778
  ...s ? { display: "flex", flexDirection: "column", maxWidth: "100%", padding: "0 16px" } : { maxWidth: 590, ml: "40%", mr: 90 }
@@ -9781,7 +9781,7 @@ const BE = ({ activity: A }) => /* @__PURE__ */ I(AA, { children: [
9781
9781
  }
9782
9782
  ),
9783
9783
  D === 3 && /* @__PURE__ */ I(
9784
- L,
9784
+ O,
9785
9785
  {
9786
9786
  sx: {
9787
9787
  ...s ? { display: "flex", flexDirection: "column", maxWidth: "100%", padding: "0 16px" } : { maxWidth: 590, ml: "40%", mr: 90 }
@@ -9843,7 +9843,7 @@ const BE = ({ activity: A }) => /* @__PURE__ */ I(AA, { children: [
9843
9843
  "aria-disabled": !Z || !w,
9844
9844
  onClick: () => {
9845
9845
  const hA = [...m];
9846
- hA.push({ ...Z, nextDate: w, frequency: P }), O(hA), B("");
9846
+ hA.push({ ...Z, nextDate: w, frequency: P }), L(hA), B("");
9847
9847
  },
9848
9848
  variant: "contained",
9849
9849
  children: r.confirm_button
@@ -10637,8 +10637,8 @@ const Ma = ({
10637
10637
  const j = new Map(w.dataset.map((m) => [new Date(m.x).getTime(), m.y]));
10638
10638
  let D = j.get(d[0].getTime()) ?? 0;
10639
10639
  const q = d.map((m) => {
10640
- const O = j.get(m.getTime()) ?? D;
10641
- return D = O, { x: m, y: O };
10640
+ const L = j.get(m.getTime()) ?? D;
10641
+ return D = L, { x: m, y: L };
10642
10642
  });
10643
10643
  return { ...w, dataset: q };
10644
10644
  }), l = f.reduce(
@@ -11233,7 +11233,7 @@ const xe = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
11233
11233
  }, $h = (A) => {
11234
11234
  const t = String(A.formattedValue), i = _h(t);
11235
11235
  return /* @__PURE__ */ e(
11236
- L,
11236
+ O,
11237
11237
  {
11238
11238
  sx: {
11239
11239
  display: "flex",
@@ -11375,7 +11375,7 @@ const xe = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
11375
11375
  n?.(w?.guid ?? "");
11376
11376
  }, H = (P) => v.find((C) => C.guid === P)?.id;
11377
11377
  return /* @__PURE__ */ e(
11378
- L,
11378
+ O,
11379
11379
  {
11380
11380
  sx: {
11381
11381
  height: "100dvh",
@@ -11569,7 +11569,7 @@ const xe = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
11569
11569
  }
11570
11570
  );
11571
11571
  }), al = ({ onBackClick: A, sx: t }) => {
11572
- const [i, n] = h.useState(!1), [r, o] = h.useState(!1), [a, s] = h.useState(!1), [c, E] = h.useState(""), { isDesktop: d, isMobile: f } = HA(), { debts: l } = p(), { onEvent: v } = J(), { isCopyLoaded: u, isInitialized: H, setSelectedAccounts: P } = cA(), { setSelectedAccount: C } = we(), { selectedDebtPriority: y, setSelectedDebtChartData: x } = Ke(), { visibleDebtAccounts: w } = CA(), { goalsLoaded: j, loadGoals: D, monthlyCashFlowProfile: q } = KA(), { debts: m } = Ti(), O = h.useMemo(() => {
11572
+ const [i, n] = h.useState(!1), [r, o] = h.useState(!1), [a, s] = h.useState(!1), [c, E] = h.useState(""), { isDesktop: d, isMobile: f } = HA(), { debts: l } = p(), { onEvent: v } = J(), { isCopyLoaded: u, isInitialized: H, setSelectedAccounts: P } = cA(), { setSelectedAccount: C } = we(), { selectedDebtPriority: y, setSelectedDebtChartData: x } = Ke(), { visibleDebtAccounts: w } = CA(), { goalsLoaded: j, loadGoals: D, monthlyCashFlowProfile: q } = KA(), { debts: m } = Ti(), L = h.useMemo(() => {
11573
11573
  const lA = q?.extra_payment ?? 0;
11574
11574
  return rl(m, y, lA);
11575
11575
  }, [m, y, q]);
@@ -11581,7 +11581,7 @@ const xe = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
11581
11581
  H && D().finally();
11582
11582
  }, [H]);
11583
11583
  const K = (lA) => E(lA), B = () => {
11584
- const lA = w.find((hA) => hA.guid === c), gA = O.find((hA) => hA.guid === c);
11584
+ const lA = w.find((hA) => hA.guid === c), gA = L.find((hA) => hA.guid === c);
11585
11585
  lA && C(lA), gA && x(gA), n(!0);
11586
11586
  }, Z = () => v(Y.DEBTS_CLICK_FILTER), fA = () => {
11587
11587
  s(!0), v(Y.DEBTS_CLICK_SNOWBALL_CTA);
@@ -11614,7 +11614,7 @@ const xe = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
11614
11614
  /* @__PURE__ */ e(
11615
11615
  Ma,
11616
11616
  {
11617
- debts: O,
11617
+ debts: L,
11618
11618
  height: f ? 250 : void 0,
11619
11619
  hoveredDebtGuid: c,
11620
11620
  onClickArea: B,
@@ -11625,7 +11625,7 @@ const xe = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
11625
11625
  /* @__PURE__ */ e(
11626
11626
  Eh,
11627
11627
  {
11628
- debts: O,
11628
+ debts: L,
11629
11629
  onClickCta: fA,
11630
11630
  sx: { mb: f ? "0px" : "64px" }
11631
11631
  }
@@ -11636,7 +11636,7 @@ const xe = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
11636
11636
  /* @__PURE__ */ e(b, { sx: { mx: f ? "-24px" : 0 }, children: /* @__PURE__ */ e(
11637
11637
  el,
11638
11638
  {
11639
- debts: O,
11639
+ debts: L,
11640
11640
  hoveredDebtGuid: c,
11641
11641
  onClickRow: B,
11642
11642
  onHoverRow: K
@@ -12665,7 +12665,7 @@ const hl = (A, t) => {
12665
12665
  const { onEvent: i } = J(), { isMobile: n } = HA(), { visibleAccounts: r } = CA(), { isCopyLoaded: o, isInitialized: a, setSelectedAccounts: s } = cA(), { goals: c, common: E } = p(), { alert: d, goals: f, goalsLoaded: l, loadGoals: v, monthlyCashFlowProfile: u, setAlert: H, retirmentGoals: P } = KA(), [C, y] = h.useState(0), [x, w] = h.useState(!1), j = u?.amount_allocated_for_savings_goals || 0, D = u?.amount_allocated_for_debt_goals || 0, q = u?.amount_allocated_for_retirement_goals || 0, m = o ? z(
12666
12666
  n ? c.tab_subtitle_mobile : c.tab_subtitle,
12667
12667
  N(j, "0,0")
12668
- ) : "", O = o ? z(
12668
+ ) : "", L = o ? z(
12669
12669
  n ? c.tab_subtitle_mobile : c.tab_subtitle,
12670
12670
  N(D, "0,0")
12671
12671
  ) : "", K = o ? z(
@@ -12723,7 +12723,7 @@ const hl = (A, t) => {
12723
12723
  OA,
12724
12724
  {
12725
12725
  disabled: aA,
12726
- label: /* @__PURE__ */ e(on, { subtitle: O, title: c.tab_debt_title })
12726
+ label: /* @__PURE__ */ e(on, { subtitle: L, title: c.tab_debt_title })
12727
12727
  }
12728
12728
  ),
12729
12729
  /* @__PURE__ */ e(
@@ -13266,13 +13266,13 @@ const Gl = /^[ a-zA-ZÀ-ÿ0-9]+$/, Ml = 50, ao = 65, Nl = ({
13266
13266
  searchValue: s
13267
13267
  }
13268
13268
  ),
13269
- /* @__PURE__ */ e(me, { sx: { boxShadow: "none" }, children: /* @__PURE__ */ e(nA, { children: /* @__PURE__ */ I(L, { height: A, overflow: "auto", ref: f, children: [
13270
- /* @__PURE__ */ I(L, { height: l.getTotalSize(), position: "relative", children: [
13269
+ /* @__PURE__ */ e(me, { sx: { boxShadow: "none" }, children: /* @__PURE__ */ e(nA, { children: /* @__PURE__ */ I(O, { height: A, overflow: "auto", ref: f, children: [
13270
+ /* @__PURE__ */ I(O, { height: l.getTotalSize(), position: "relative", children: [
13271
13271
  i && /* @__PURE__ */ e(IA, { label: "Loading...", size: 32 }),
13272
13272
  !i && l.getVirtualItems().length > 0 && l.getVirtualItems().map((v) => {
13273
13273
  const u = n[v.index];
13274
13274
  return /* @__PURE__ */ I(
13275
- L,
13275
+ O,
13276
13276
  {
13277
13277
  height: ao,
13278
13278
  position: "absolute",
@@ -13695,7 +13695,7 @@ const Kl = ({
13695
13695
  const { net_worth: o } = p(), a = RA();
13696
13696
  return /* @__PURE__ */ I(AA, { children: [
13697
13697
  /* @__PURE__ */ I(
13698
- L,
13698
+ O,
13699
13699
  {
13700
13700
  sx: {
13701
13701
  alignItems: "center",
@@ -13829,7 +13829,7 @@ const Kl = ({
13829
13829
  selectedData: u,
13830
13830
  setHoveredData: H,
13831
13831
  setSelectedData: P
13832
- } = Vc(), { isMobile: C } = HA(), { onEvent: y } = J(), [x, w] = h.useState(!1), [j, D] = h.useState(6), [q, m] = h.useState(!1), [O, K] = h.useState(!1), [B, Z] = h.useState(!1), fA = async () => {
13832
+ } = Vc(), { isMobile: C } = HA(), { onEvent: y } = J(), [x, w] = h.useState(!1), [j, D] = h.useState(6), [q, m] = h.useState(!1), [L, K] = h.useState(!1), [B, Z] = h.useState(!1), fA = async () => {
13833
13833
  await l(n), await f(j), w(!0);
13834
13834
  };
13835
13835
  h.useEffect(() => {
@@ -13903,7 +13903,7 @@ const Kl = ({
13903
13903
  ]
13904
13904
  }
13905
13905
  )
13906
- ] }) : /* @__PURE__ */ e(L, { sx: { justifyItems: "center" }, children: /* @__PURE__ */ e(
13906
+ ] }) : /* @__PURE__ */ e(O, { sx: { justifyItems: "center" }, children: /* @__PURE__ */ e(
13907
13907
  $t,
13908
13908
  {
13909
13909
  header: a.empty_widget_header,
@@ -13943,7 +13943,7 @@ const Kl = ({
13943
13943
  oA,
13944
13944
  {
13945
13945
  ariaLabelClose: "Close",
13946
- isOpen: O,
13946
+ isOpen: L,
13947
13947
  onClose: () => K(!1),
13948
13948
  shouldShowHeaderBorders: !1,
13949
13949
  shouldShowHeaderShadow: !0,
@@ -14064,7 +14064,7 @@ const fv = (A, t) => {
14064
14064
  /* @__PURE__ */ e(hv, { notification: A }),
14065
14065
  /* @__PURE__ */ e(R, { bold: !A.has_been_viewed, truncate: !1, variant: "Small", children: A.content })
14066
14066
  ] });
14067
- }, vv = ({ date: A }) => /* @__PURE__ */ e(L, { sx: { display: "flex", justifyContent: "center", mt: 12, py: 8 }, children: /* @__PURE__ */ e(R, { bold: !0, variant: "Small", children: Ni(A) }) }), Rv = ({ onClick: A }) => {
14067
+ }, vv = ({ date: A }) => /* @__PURE__ */ e(O, { sx: { display: "flex", justifyContent: "center", mt: 12, py: 8 }, children: /* @__PURE__ */ e(R, { bold: !0, variant: "Small", children: Ni(A) }) }), Rv = ({ onClick: A }) => {
14068
14068
  const { isLoading: t, loadNotifications: i, recentNotifications: n, markAllAsViewed: r } = Ia(), { notifications: o } = p(), { isCopyLoaded: a } = cA(), s = (c) => {
14069
14069
  A?.(c);
14070
14070
  };
@@ -14396,7 +14396,7 @@ const gv = ({
14396
14396
  }) => {
14397
14397
  const a = te();
14398
14398
  return /* @__PURE__ */ I(h.Fragment, { children: [
14399
- /* @__PURE__ */ e(L, { sx: { pb: 48, ...o }, children: /* @__PURE__ */ I(UA, { container: !0, rowSpacing: 24, children: [
14399
+ /* @__PURE__ */ e(O, { sx: { pb: 48, ...o }, children: /* @__PURE__ */ I(UA, { container: !0, rowSpacing: 24, children: [
14400
14400
  /* @__PURE__ */ e(UA, { item: !0, lg: 12, md: 12, sm: 12, xs: 12, children: t }),
14401
14401
  /* @__PURE__ */ e(
14402
14402
  UA,
@@ -14436,7 +14436,7 @@ const gv = ({
14436
14436
  }) => {
14437
14437
  const a = te();
14438
14438
  return /* @__PURE__ */ I(h.Fragment, { children: [
14439
- /* @__PURE__ */ e(L, { sx: { pb: 48, ...o }, children: /* @__PURE__ */ I(UA, { container: !0, spacing: 24, sx: { alignItems: "flex-start" }, children: [
14439
+ /* @__PURE__ */ e(O, { sx: { pb: 48, ...o }, children: /* @__PURE__ */ I(UA, { container: !0, spacing: 24, sx: { alignItems: "flex-start" }, children: [
14440
14440
  /* @__PURE__ */ e(
14441
14441
  UA,
14442
14442
  {
@@ -14471,7 +14471,7 @@ const gv = ({
14471
14471
  hasDivider: t = !0,
14472
14472
  sx: i
14473
14473
  }) => /* @__PURE__ */ I(AA, { children: [
14474
- /* @__PURE__ */ e(L, { sx: { pb: 48, ...i }, children: A }),
14474
+ /* @__PURE__ */ e(O, { sx: { pb: 48, ...i }, children: A }),
14475
14475
  t && /* @__PURE__ */ e(G, {})
14476
14476
  ] }), Be = ({
14477
14477
  altImage: A,
@@ -14483,7 +14483,7 @@ const gv = ({
14483
14483
  }) => {
14484
14484
  const a = te();
14485
14485
  return /* @__PURE__ */ I(h.Fragment, { children: [
14486
- /* @__PURE__ */ e(L, { sx: { pb: 48, ...o }, children: /* @__PURE__ */ I(UA, { container: !0, spacing: 24, sx: { alignItems: "flex-start" }, children: [
14486
+ /* @__PURE__ */ e(O, { sx: { pb: 48, ...o }, children: /* @__PURE__ */ I(UA, { container: !0, spacing: 24, sx: { alignItems: "flex-start" }, children: [
14487
14487
  /* @__PURE__ */ e(UA, { item: !0, lg: 12 - r, md: 12, sm: 12, xs: 12, children: t }),
14488
14488
  /* @__PURE__ */ e(
14489
14489
  UA,
@@ -14521,7 +14521,7 @@ const gv = ({
14521
14521
  }) => {
14522
14522
  const a = te();
14523
14523
  return /* @__PURE__ */ I(h.Fragment, { children: [
14524
- /* @__PURE__ */ e(L, { sx: { pb: 48, ...o }, children: /* @__PURE__ */ I(UA, { container: !0, rowSpacing: 24, children: [
14524
+ /* @__PURE__ */ e(O, { sx: { pb: 48, ...o }, children: /* @__PURE__ */ I(UA, { container: !0, rowSpacing: 24, children: [
14525
14525
  /* @__PURE__ */ e(
14526
14526
  UA,
14527
14527
  {
@@ -14559,7 +14559,7 @@ const gv = ({
14559
14559
  subListType: r = "ol"
14560
14560
  }) => {
14561
14561
  const o = t, a = r;
14562
- return /* @__PURE__ */ e(L, { sx: { [t]: { m: 0, p: 0, pl: 16, "& li::marker": { fontSize: 15 } } }, children: /* @__PURE__ */ e(o, { children: A.map((s, c) => /* @__PURE__ */ I("li", { children: [
14562
+ return /* @__PURE__ */ e(O, { sx: { [t]: { m: 0, p: 0, pl: 16, "& li::marker": { fontSize: 15 } } }, children: /* @__PURE__ */ e(o, { children: A.map((s, c) => /* @__PURE__ */ I("li", { children: [
14563
14563
  /* @__PURE__ */ e(T, { content: s, sx: { py: 1 } }),
14564
14564
  i === c ? /* @__PURE__ */ e(a, { ...r === "ol" && { type: "a" }, children: n.map((E, d) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(T, { content: E, sx: { py: 1 } }) }, d)) }) : null
14565
14565
  ] }, c)) }) });
@@ -16910,7 +16910,7 @@ const gv = ({
16910
16910
  flexDirection: n ? "column-reverse" : "column"
16911
16911
  },
16912
16912
  children: [
16913
- /* @__PURE__ */ I(L, { children: [
16913
+ /* @__PURE__ */ I(O, { children: [
16914
16914
  /* @__PURE__ */ I(b, { gap: 4, sx: { alignItems: "center", flexDirection: "row" }, children: [
16915
16915
  t && /* @__PURE__ */ e(M, { name: "help", size: 20, sx: { color: "text.primary" } }),
16916
16916
  /* @__PURE__ */ e(R, { color: "text.primary", variant: "H3", children: o })
@@ -16959,7 +16959,7 @@ const gv = ({
16959
16959
  title: E
16960
16960
  }
16961
16961
  ),
16962
- /* @__PURE__ */ e(L, { sx: { px: 24 }, children: /* @__PURE__ */ e(
16962
+ /* @__PURE__ */ e(O, { sx: { px: 24 }, children: /* @__PURE__ */ e(
16963
16963
  $A,
16964
16964
  {
16965
16965
  InputLabelProps: { shrink: !0 },
@@ -16980,7 +16980,7 @@ const gv = ({
16980
16980
  variant: "outlined"
16981
16981
  }
16982
16982
  ) }),
16983
- /* @__PURE__ */ e(L, { sx: { p: "12px 24px 64px" }, children: /* @__PURE__ */ e(
16983
+ /* @__PURE__ */ e(O, { sx: { p: "12px 24px 64px" }, children: /* @__PURE__ */ e(
16984
16984
  R,
16985
16985
  {
16986
16986
  color: "secondary",
@@ -17173,7 +17173,7 @@ const gv = ({
17173
17173
  }
17174
17174
  ),
17175
17175
  /* @__PURE__ */ e(ae, { children: /* @__PURE__ */ e(de, {}) })
17176
- ] }) }), Fa = ({ list: A, onClick: t, sx: i }) => /* @__PURE__ */ e(L, { sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ e(nA, { sx: { "& .MuiDivider-root:last-child": { ml: 0 } }, children: A.map(({ name: n, guid: r, subtitle: o, type: a }, s) => /* @__PURE__ */ I(h.Fragment, { children: [
17176
+ ] }) }), Fa = ({ list: A, onClick: t, sx: i }) => /* @__PURE__ */ e(O, { sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ e(nA, { sx: { "& .MuiDivider-root:last-child": { ml: 0 } }, children: A.map(({ name: n, guid: r, subtitle: o, type: a }, s) => /* @__PURE__ */ I(h.Fragment, { children: [
17177
17177
  /* @__PURE__ */ e(
17178
17178
  O9,
17179
17179
  {
@@ -17271,7 +17271,7 @@ const gv = ({
17271
17271
  }
17272
17272
  ),
17273
17273
  /* @__PURE__ */ I(
17274
- L,
17274
+ O,
17275
17275
  {
17276
17276
  sx: {
17277
17277
  bgcolor: "background.paper",
@@ -17320,7 +17320,7 @@ const gv = ({
17320
17320
  onClose: r
17321
17321
  }) => {
17322
17322
  const { common: o } = p();
17323
- return /* @__PURE__ */ e(oA, { isOpen: i, onClose: r, title: A.request_support, children: /* @__PURE__ */ I(L, { sx: { px: 24 }, children: [
17323
+ return /* @__PURE__ */ e(oA, { isOpen: i, onClose: r, title: A.request_support, children: /* @__PURE__ */ I(O, { sx: { px: 24 }, children: [
17324
17324
  /* @__PURE__ */ e(b, { sx: { alignItems: "center", pb: 24, pt: 80 }, children: /* @__PURE__ */ e(M, { color: "success", fill: !0, name: "check_circle", size: 64 }) }),
17325
17325
  /* @__PURE__ */ I(b, { sx: { alignItems: "center", gap: 16, pb: 48 }, children: [
17326
17326
  /* @__PURE__ */ e(vt, { children: A.request_support_success }),
@@ -17339,13 +17339,13 @@ const gv = ({
17339
17339
  }), C = y9.map((m) => ({
17340
17340
  ...m,
17341
17341
  title: A.help_by_category_list[m.guid].label,
17342
- topics: m.topics.map(({ type: O }, K) => ({
17343
- type: O,
17342
+ topics: m.topics.map(({ type: L }, K) => ({
17343
+ type: L,
17344
17344
  label: A.help_by_category_list[m.guid].topics[K]
17345
17345
  }))
17346
- })), y = Object.keys(A.popular_topics_list).map((m, O) => ({
17346
+ })), y = Object.keys(A.popular_topics_list).map((m, L) => ({
17347
17347
  name: A.popular_topics_list[m],
17348
- type: x9[O].type
17348
+ type: x9[L].type
17349
17349
  })), x = () => {
17350
17350
  d(""), P({ isOpen: !1, topic: "", type: void 0 });
17351
17351
  }, w = (m) => {
@@ -17354,8 +17354,8 @@ const gv = ({
17354
17354
  message: E ? `Institution: ${E}, ${m}` : m,
17355
17355
  title: H.topic || "Contact Support"
17356
17356
  });
17357
- }, j = (m, O) => {
17358
- O === "other" ? u(!0) : P({ isOpen: !0, topic: m, type: O });
17357
+ }, j = (m, L) => {
17358
+ L === "other" ? u(!0) : P({ isOpen: !0, topic: m, type: L });
17359
17359
  }, D = () => {
17360
17360
  a(""), l(!1), u(!1), x();
17361
17361
  }, q = (m) => {
@@ -17415,7 +17415,7 @@ const gv = ({
17415
17415
  onClick: j
17416
17416
  }
17417
17417
  ),
17418
- /* @__PURE__ */ e(L, { sx: { p: 24 }, children: /* @__PURE__ */ e(
17418
+ /* @__PURE__ */ e(O, { sx: { p: 24 }, children: /* @__PURE__ */ e(
17419
17419
  G9,
17420
17420
  {
17421
17421
  copy: A,
@@ -17488,7 +17488,7 @@ const gv = ({
17488
17488
  }
17489
17489
  ), V9 = ({ sx: A }) => {
17490
17490
  const [t, i] = h.useState(!1), [n, r] = h.useState(null), { help: o } = p(), { isCopyLoaded: a, isInitialized: s } = cA(), { helpCategories: c } = Sn(), { isMobile: E } = HA(), d = window.app?.config, f = () => i(!0), l = (v) => r(v);
17491
- return !a || !s ? /* @__PURE__ */ e(IA, {}) : /* @__PURE__ */ I(L, { sx: { pt: 24, px: E ? 24 : 0, ...A }, children: [
17491
+ return !a || !s ? /* @__PURE__ */ e(IA, {}) : /* @__PURE__ */ I(O, { sx: { pt: 24, px: E ? 24 : 0, ...A }, children: [
17492
17492
  n ? /* @__PURE__ */ e(
17493
17493
  p9,
17494
17494
  {
@@ -17660,7 +17660,7 @@ const gv = ({
17660
17660
  ] });
17661
17661
  }), W9 = () => {
17662
17662
  const { common: A, settings: t } = p(), { isDesktop: i, isMobile: n, isSmallMobile: r, isTablet: o } = HA(), { updateUser: a } = pe(), { user: s } = Fe(), [c, E] = h.useState(s.first_name), [d, f] = h.useState(s.last_name), [l, v] = h.useState(s.email), [u, H] = h.useState(s.phone), [P, C] = h.useState(s.postal_code), [y, x] = h.useState(s.credit_score), [w, j] = h.useState(jA(s.birthday ?? 0)), D = l && !s.email_is_verified, q = u && !s.phone_is_verified, m = async () => {
17663
- const O = {
17663
+ const L = {
17664
17664
  ...s,
17665
17665
  first_name: c,
17666
17666
  last_name: d,
@@ -17670,10 +17670,10 @@ const gv = ({
17670
17670
  postal_code: P,
17671
17671
  credit_score: y
17672
17672
  };
17673
- await a(O);
17673
+ await a(L);
17674
17674
  };
17675
17675
  return /* @__PURE__ */ I(
17676
- L,
17676
+ O,
17677
17677
  {
17678
17678
  component: "form",
17679
17679
  sx: {
@@ -17699,7 +17699,7 @@ const gv = ({
17699
17699
  {
17700
17700
  defaultValue: c,
17701
17701
  label: t.first_name,
17702
- onChange: (O) => E(O.target.value)
17702
+ onChange: (L) => E(L.target.value)
17703
17703
  }
17704
17704
  ),
17705
17705
  /* @__PURE__ */ e(
@@ -17707,7 +17707,7 @@ const gv = ({
17707
17707
  {
17708
17708
  defaultValue: d,
17709
17709
  label: t.last_name,
17710
- onChange: (O) => f(O.target.value)
17710
+ onChange: (L) => f(L.target.value)
17711
17711
  }
17712
17712
  )
17713
17713
  ]
@@ -17720,7 +17720,7 @@ const gv = ({
17720
17720
  {
17721
17721
  defaultValue: l,
17722
17722
  label: t.email_address,
17723
- onChange: (O) => v(O.target.value)
17723
+ onChange: (L) => v(L.target.value)
17724
17724
  }
17725
17725
  ),
17726
17726
  D && /* @__PURE__ */ e(S9, {})
@@ -17731,7 +17731,7 @@ const gv = ({
17731
17731
  {
17732
17732
  defaultValue: u,
17733
17733
  label: t.mobile_number,
17734
- onChange: (O) => H(O.target.value),
17734
+ onChange: (L) => H(L.target.value),
17735
17735
  type: "tel"
17736
17736
  }
17737
17737
  ),
@@ -17753,7 +17753,7 @@ const gv = ({
17753
17753
  {
17754
17754
  defaultValue: P,
17755
17755
  label: t.zip_code,
17756
- onChange: (O) => C(O.target.value)
17756
+ onChange: (L) => C(L.target.value)
17757
17757
  }
17758
17758
  )
17759
17759
  ] }),
@@ -17763,7 +17763,7 @@ const gv = ({
17763
17763
  {
17764
17764
  defaultValue: y,
17765
17765
  label: t.credit_score,
17766
- onChange: (O) => x(Number(O.target.value)),
17766
+ onChange: (L) => x(Number(L.target.value)),
17767
17767
  sx: { mb: 44 }
17768
17768
  }
17769
17769
  ),
@@ -17841,7 +17841,7 @@ const K9 = ({
17841
17841
  ...s,
17842
17842
  device_type: `${s.make} ${s.model}`
17843
17843
  })), [A]);
17844
- return /* @__PURE__ */ e(L, { sx: { width: "100%" }, children: /* @__PURE__ */ e(
17844
+ return /* @__PURE__ */ e(O, { sx: { width: "100%" }, children: /* @__PURE__ */ e(
17845
17845
  Mt,
17846
17846
  {
17847
17847
  columns: o,
@@ -17856,7 +17856,7 @@ const K9 = ({
17856
17856
  },
17857
17857
  slots: {
17858
17858
  footer: () => /* @__PURE__ */ e(
17859
- L,
17859
+ O,
17860
17860
  {
17861
17861
  sx: {
17862
17862
  backgroundColor: n.palette.background.default,
@@ -17963,7 +17963,7 @@ const K9 = ({
17963
17963
  c.guid
17964
17964
  )),
17965
17965
  /* @__PURE__ */ e(
17966
- L,
17966
+ O,
17967
17967
  {
17968
17968
  sx: {
17969
17969
  backgroundColor: n.palette.background.default,
@@ -18575,7 +18575,7 @@ const K9 = ({
18575
18575
  ]
18576
18576
  }
18577
18577
  ),
18578
- /* @__PURE__ */ e(L, { sx: { borderBottom: 2, borderColor: "divider", mt: -2 } }),
18578
+ /* @__PURE__ */ e(O, { sx: { borderBottom: 2, borderColor: "divider", mt: -2 } }),
18579
18579
  c === 0 && (r ? /* @__PURE__ */ e(k9, {}) : /* @__PURE__ */ e(IA, {})),
18580
18580
  c === 1 && /* @__PURE__ */ e($9, {}),
18581
18581
  c === 2 && /* @__PURE__ */ e(Wa, {}),
@@ -19571,7 +19571,7 @@ const In = ({
19571
19571
  });
19572
19572
  }, H = (P) => {
19573
19573
  const C = P === "hidden" ? d : f, y = P === "hidden" ? l : v, x = P === "hidden" ? i.account_hidden : i.account_closed;
19574
- return /* @__PURE__ */ e(L, { children: /* @__PURE__ */ e(
19574
+ return /* @__PURE__ */ e(O, { children: /* @__PURE__ */ e(
19575
19575
  nA,
19576
19576
  {
19577
19577
  "aria-label": x,
@@ -19620,7 +19620,7 @@ const In = ({
19620
19620
  }
19621
19621
  ) });
19622
19622
  };
19623
- return /* @__PURE__ */ I(L, { sx: { pt: 24 }, children: [
19623
+ return /* @__PURE__ */ I(O, { sx: { pt: 24 }, children: [
19624
19624
  c.map((P) => {
19625
19625
  const C = n.filter(
19626
19626
  (x) => x.account_type === P && !x.is_closed && !x.is_hidden
@@ -19719,7 +19719,7 @@ const In = ({
19719
19719
  sx: t,
19720
19720
  title: E.title,
19721
19721
  children: !f || r ? /* @__PURE__ */ e(IA, {}) : /* @__PURE__ */ I(AA, { children: [
19722
- /* @__PURE__ */ I(L, { sx: { px: u ? 24 : 12 }, children: [
19722
+ /* @__PURE__ */ I(O, { sx: { px: u ? 24 : 12 }, children: [
19723
19723
  v.length < 1 && /* @__PURE__ */ e(R, { display: "flex", justifyContent: "center", my: 24, children: E.no_accounts }),
19724
19724
  /* @__PURE__ */ e(DR, {})
19725
19725
  ] }),
@@ -20722,7 +20722,7 @@ const ZR = ({
20722
20722
  }, P = () => {
20723
20723
  v(!0), o(Y.ACCOUNTS_CLICK_CONNECT);
20724
20724
  };
20725
- return s ? /* @__PURE__ */ e(b, { alignItems: "center", height: t, justifyContent: "center", width: Math.abs(u), children: /* @__PURE__ */ e(IA, {}) }) : /* @__PURE__ */ I(L, { ml: n || f ? 0 : 24, sx: { alignSelf: "center" }, children: [
20725
+ return s ? /* @__PURE__ */ e(b, { alignItems: "center", height: t, justifyContent: "center", width: Math.abs(u), children: /* @__PURE__ */ e(IA, {}) }) : /* @__PURE__ */ I(O, { ml: n || f ? 0 : 24, sx: { alignSelf: "center" }, children: [
20726
20726
  n || !c ? /* @__PURE__ */ e(
20727
20727
  _R,
20728
20728
  {
@@ -20764,7 +20764,7 @@ const ZR = ({
20764
20764
  ...A,
20765
20765
  children: r ? /* @__PURE__ */ I(b, { height: 450, mt: 32, children: [
20766
20766
  /* @__PURE__ */ e(Za, { height: 370, shouldShowZeroState: l }),
20767
- !l && /* @__PURE__ */ I(L, { ml: 16, children: [
20767
+ !l && /* @__PURE__ */ I(O, { ml: 16, children: [
20768
20768
  /* @__PURE__ */ e(R, { bold: !0, color: f < 0 ? "error.main" : "success.main", children: N(Math.abs(f), "0,0") }),
20769
20769
  /* @__PURE__ */ e(R, { children: f < 0 ? s.overspent_in_budgets : s.left_in_budgets })
20770
20770
  ] })
@@ -20823,7 +20823,7 @@ const ZR = ({
20823
20823
  /* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: t.recalculate_description_top }),
20824
20824
  /* @__PURE__ */ e(R, { variant: "ParagraphSmall", children: t.recalculate_description_bottom })
20825
20825
  ] }),
20826
- /* @__PURE__ */ e(L, { bgcolor: "background.paper", children: /* @__PURE__ */ e(nA, { children: c.map((d) => /* @__PURE__ */ e(e3, { category: d }, d.guid)) }) })
20826
+ /* @__PURE__ */ e(O, { bgcolor: "background.paper", children: /* @__PURE__ */ e(nA, { children: c.map((d) => /* @__PURE__ */ e(e3, { category: d }, d.guid)) }) })
20827
20827
  ] })
20828
20828
  }
20829
20829
  )
@@ -20889,7 +20889,7 @@ const ZR = ({
20889
20889
  };
20890
20890
  return /* @__PURE__ */ I(b, { children: [
20891
20891
  /* @__PURE__ */ e(A3, {}),
20892
- /* @__PURE__ */ e(L, { bgcolor: "background.paper", children: /* @__PURE__ */ e(nA, { children: r.map((a) => /* @__PURE__ */ e(
20892
+ /* @__PURE__ */ e(O, { bgcolor: "background.paper", children: /* @__PURE__ */ e(nA, { children: r.map((a) => /* @__PURE__ */ e(
20893
20893
  i3,
20894
20894
  {
20895
20895
  category: a,
@@ -20960,7 +20960,7 @@ const ZR = ({
20960
20960
  }, P = async () => {
20961
20961
  v && Number(f) > 0 && (await a(v, Number(f), t.guid), d(!1), c(!1), u(void 0));
20962
20962
  };
20963
- return /* @__PURE__ */ I(L, { children: [
20963
+ return /* @__PURE__ */ I(O, { children: [
20964
20964
  /* @__PURE__ */ e(W, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ e(sA, { onClick: H, children: /* @__PURE__ */ e(tA, { children: /* @__PURE__ */ I(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
20965
20965
  /* @__PURE__ */ I(b, { alignItems: "center", direction: "row", gap: 8, children: [
20966
20966
  /* @__PURE__ */ e(M, { fill: !0, name: "add_box", size: 24, sx: { color: "action.active" } }),
@@ -21346,7 +21346,7 @@ const ZR = ({
21346
21346
  setAlert: C,
21347
21347
  setTheme: y,
21348
21348
  budgets: x
21349
- } = ee(), { loadActivity: w } = kA(), { isDesktop: j, isTablet: D } = HA(), { reloadCategoryTotals: q } = QA(), [m, O] = h.useState(!1);
21349
+ } = ee(), { loadActivity: w } = kA(), { isDesktop: j, isTablet: D } = HA(), { reloadCategoryTotals: q } = QA(), [m, L] = h.useState(!1);
21350
21350
  h.useEffect(() => {
21351
21351
  y(i), f(r), d(v.start, v.end), n(Y.BUDGETS_VIEW);
21352
21352
  }, []), h.useEffect(() => {
@@ -21359,9 +21359,9 @@ const ZR = ({
21359
21359
  }, B = () => {
21360
21360
  n(Y.BUDGETS_CLICK_FILTER);
21361
21361
  }, Z = () => {
21362
- O(!0), n(Y.BUDGETS_CLICK_ADD);
21362
+ L(!0), n(Y.BUDGETS_CLICK_ADD);
21363
21363
  }, fA = () => {
21364
- O(!1);
21364
+ L(!1);
21365
21365
  }, aA = Ot(v.end, MA(/* @__PURE__ */ new Date()));
21366
21366
  return !s || !c || !u ? /* @__PURE__ */ e(IA, {}) : /* @__PURE__ */ I(
21367
21367
  ze,
@@ -21421,7 +21421,7 @@ const ZR = ({
21421
21421
  {
21422
21422
  ariaLabelClose: a.close_aria,
21423
21423
  isOpen: m,
21424
- onClose: () => O(!1),
21424
+ onClose: () => L(!1),
21425
21425
  title: o.add_new_title,
21426
21426
  children: /* @__PURE__ */ e(n3, { onRecalculateBudgets: fA })
21427
21427
  }
@@ -21844,11 +21844,11 @@ const di = h.createContext(null), w3 = ({
21844
21844
  variant: u,
21845
21845
  widthOverrides: H
21846
21846
  }, P) {
21847
- const [C, y] = h.useState(2);
21847
+ const [C, y] = h.useState(2), [x, w] = h.useState(!1);
21848
21848
  h.useEffect(() => {
21849
21849
  H && H <= 325 && y(3);
21850
21850
  }, [H]);
21851
- const { cardStyle: x, linkTextStyle: w } = f, j = u ? x : { border: "none", boxShadow: "none", ...x }, D = /* @__PURE__ */ e(
21851
+ const { cardStyle: j, linkTextStyle: D } = f, q = u ? j : { border: "none", boxShadow: "none", ...j }, m = /* @__PURE__ */ e(
21852
21852
  wA,
21853
21853
  {
21854
21854
  className: "mx-micro-card-description",
@@ -21873,14 +21873,17 @@ const di = h.createContext(null), w3 = ({
21873
21873
  "aria-hidden": !s,
21874
21874
  "aria-label": i,
21875
21875
  onClick: () => E(),
21876
+ onKeyUp: () => w(!0),
21876
21877
  ref: P,
21877
21878
  role: "button",
21878
21879
  style: {
21879
21880
  height: "100%",
21880
21881
  listStyleType: "none",
21881
21882
  userSelect: "none",
21882
- minWidth: "100%"
21883
+ minWidth: "100%",
21884
+ boxShadow: x ? "0px 0px 0px 2px rgba(82, 138, 224, 0.8)" : void 0
21883
21885
  },
21886
+ tabIndex: s ? 0 : -1,
21884
21887
  children: /* @__PURE__ */ e(
21885
21888
  ge,
21886
21889
  {
@@ -21893,13 +21896,10 @@ const di = h.createContext(null), w3 = ({
21893
21896
  cursor: "pointer",
21894
21897
  height: o ? "100%" : 124,
21895
21898
  p: 16,
21896
- ...j,
21899
+ ...q,
21897
21900
  "& .MuiCardHeader-avatar": {
21898
21901
  color: l.iconColor,
21899
21902
  mr: "8px"
21900
- },
21901
- "&.Mui-focusVisible !important": {
21902
- boxShadow: "0px 0px 0px 2px rgba(82, 138, 224, 0.8)"
21903
21903
  }
21904
21904
  },
21905
21905
  variant: u,
@@ -21915,23 +21915,23 @@ const di = h.createContext(null), w3 = ({
21915
21915
  ot,
21916
21916
  {
21917
21917
  avatar: d && a,
21918
- subheader: c && D,
21918
+ subheader: c && m,
21919
21919
  sx: { color: l.headerColor, p: 0 },
21920
21920
  title: v,
21921
21921
  titleTypographyProps: { fontSize: 15, fontWeight: 600, variant: "h3" }
21922
21922
  }
21923
21923
  ),
21924
- /* @__PURE__ */ e(Xe, { sx: { p: 0 }, children: !c && D }),
21924
+ /* @__PURE__ */ e(Xe, { sx: { p: 0 }, children: !c && m }),
21925
21925
  !!t && /* @__PURE__ */ e(VI, { sx: { padding: 0 }, children: /* @__PURE__ */ e(
21926
- L,
21926
+ O,
21927
21927
  {
21928
- sx: (q) => ({
21929
- color: l.buttonColor ? l.buttonColor : q.palette.primary.main,
21928
+ sx: (L) => ({
21929
+ color: l.buttonColor ? l.buttonColor : L.palette.primary.main,
21930
21930
  // TODO: Per Cameron the theme package in @mxenabled/mxui will be getting a big update and this will be theme.palette.primary_main
21931
21931
  fontSize: 14,
21932
21932
  fontWeight: "bold",
21933
21933
  px: 28,
21934
- ...w
21934
+ ...D
21935
21935
  }),
21936
21936
  children: t
21937
21937
  }
@@ -22918,7 +22918,7 @@ const di = h.createContext(null), w3 = ({
22918
22918
  scrollX: a
22919
22919
  }) => {
22920
22920
  const s = T3(), c = te(), { carouselCopy: E } = Pt(), d = Math.floor(a) > o || t === 0, f = a < 0 || i - 1 === t, l = c.palette.grey[500], v = A?.primary_300 ? A?.primary_300 : "#2D64EF";
22921
- return /* @__PURE__ */ I(L, { className: s, children: [
22921
+ return /* @__PURE__ */ I(O, { className: s, children: [
22922
22922
  /* @__PURE__ */ e(
22923
22923
  TA,
22924
22924
  {
@@ -23014,7 +23014,7 @@ const di = h.createContext(null), w3 = ({
23014
23014
  }, m = () => {
23015
23015
  if (!C || !H) return;
23016
23016
  C - H > G3 ? w(je.ON_CAROUSEL_FORWARD_SWIPE) : w(je.ON_CAROUSEL_BACK_SWIPE);
23017
- }, O = (aA) => {
23017
+ }, L = (aA) => {
23018
23018
  P(aA.targetTouches[0].clientX);
23019
23019
  }, K = (aA) => {
23020
23020
  P(null), y(aA.targetTouches[0].clientX);
@@ -23041,7 +23041,7 @@ const di = h.createContext(null), w3 = ({
23041
23041
  className: "mx-insights-micro-carousel-container",
23042
23042
  onScroll: q,
23043
23043
  onTouchEnd: m,
23044
- onTouchMove: O,
23044
+ onTouchMove: L,
23045
23045
  onTouchStart: K,
23046
23046
  ref: l,
23047
23047
  children: [
@@ -23191,7 +23191,7 @@ const di = h.createContext(null), w3 = ({
23191
23191
  }) => {
23192
23192
  const { carouselCopy: n } = Pt();
23193
23193
  return /* @__PURE__ */ e(
23194
- L,
23194
+ O,
23195
23195
  {
23196
23196
  "aria-label": n?.carousel_title,
23197
23197
  "aria-roledescription": "carousel",
@@ -23302,7 +23302,7 @@ const di = h.createContext(null), w3 = ({
23302
23302
  }
23303
23303
  );
23304
23304
  }, e6 = g(as), W3 = () => /* @__PURE__ */ e(
23305
- L,
23305
+ O,
23306
23306
  {
23307
23307
  sx: {
23308
23308
  alignItems: "center",
@@ -23341,7 +23341,7 @@ const di = h.createContext(null), w3 = ({
23341
23341
  variant: x,
23342
23342
  widthOverrides: w
23343
23343
  }) => {
23344
- const [j, D] = We("STANDARD"), [q, m] = We(!1), O = hc([c], _e), K = lc([E], _e);
23344
+ const [j, D] = We("STANDARD"), [q, m] = We(!1), L = hc([c], _e), K = lc([E], _e);
23345
23345
  h.useEffect(() => {
23346
23346
  _e.isInitialized || _e.initialize(r, P, a);
23347
23347
  }, [r, P, a, _e.isInitialized]), h.useEffect(() => {
@@ -23368,7 +23368,7 @@ const di = h.createContext(null), w3 = ({
23368
23368
  // The Theme provider must wrap the component so that the styles don't break when imported into other applications.
23369
23369
  /* @__PURE__ */ I(ms, { theme: Ps(C ? "dark" : "light"), children: [
23370
23370
  /* @__PURE__ */ e(SI, {}),
23371
- /* @__PURE__ */ e(w3, { onEvent: O, onPageview: K, store: _e, children: /* @__PURE__ */ I(F3, { heightOverrides: o, widthOverrides: w, children: [
23371
+ /* @__PURE__ */ e(w3, { onEvent: L, onPageview: K, store: _e, children: /* @__PURE__ */ I(F3, { heightOverrides: o, widthOverrides: w, children: [
23372
23372
  (A || !_e.isInitialized) && /* @__PURE__ */ e(W3, {}),
23373
23373
  q && v && /* @__PURE__ */ e(
23374
23374
  U3,
@@ -23591,7 +23591,7 @@ const di = h.createContext(null), w3 = ({
23591
23591
  role: "button",
23592
23592
  sx: { cursor: "pointer" },
23593
23593
  children: [
23594
- /* @__PURE__ */ e(L, { borderRadius: 4, height: 8, sx: { backgroundColor: n.color }, width: 8 }),
23594
+ /* @__PURE__ */ e(O, { borderRadius: 4, height: 8, sx: { backgroundColor: n.color }, width: 8 }),
23595
23595
  /* @__PURE__ */ e(R, { bold: n.guid === i, variant: "XSmall", children: n.name })
23596
23596
  ]
23597
23597
  },
@@ -23631,7 +23631,7 @@ const di = h.createContext(null), w3 = ({
23631
23631
  }, H = (P) => {
23632
23632
  E(c === P ? "" : P);
23633
23633
  };
23634
- return o ? /* @__PURE__ */ I(L, { width: "100%", children: [
23634
+ return o ? /* @__PURE__ */ I(O, { width: "100%", children: [
23635
23635
  /* @__PURE__ */ I(qe, { onChange: u, value: d, variant: "fullWidth", children: [
23636
23636
  /* @__PURE__ */ e(
23637
23637
  OA,
@@ -23658,7 +23658,7 @@ const di = h.createContext(null), w3 = ({
23658
23658
  }
23659
23659
  )
23660
23660
  ] }),
23661
- d === 0 && /* @__PURE__ */ e(L, { children: /* @__PURE__ */ I(b, { direction: "row", gap: 16, justifyContent: "center", p: 24, children: [
23661
+ d === 0 && /* @__PURE__ */ e(O, { children: /* @__PURE__ */ I(b, { direction: "row", gap: 16, justifyContent: "center", p: 24, children: [
23662
23662
  /* @__PURE__ */ e(
23663
23663
  yi,
23664
23664
  {
@@ -23677,7 +23677,7 @@ const di = h.createContext(null), w3 = ({
23677
23677
  }
23678
23678
  )
23679
23679
  ] }) }),
23680
- d === 1 && /* @__PURE__ */ e(L, { children: /* @__PURE__ */ I(b, { direction: "row", gap: 16, justifyContent: "center", p: 24, children: [
23680
+ d === 1 && /* @__PURE__ */ e(O, { children: /* @__PURE__ */ I(b, { direction: "row", gap: 16, justifyContent: "center", p: 24, children: [
23681
23681
  /* @__PURE__ */ e(
23682
23682
  yi,
23683
23683
  {
@@ -23731,7 +23731,7 @@ const di = h.createContext(null), w3 = ({
23731
23731
  sx: { minHeight: 44, px: 8, py: 0 },
23732
23732
  children: [
23733
23733
  /* @__PURE__ */ e(
23734
- L,
23734
+ O,
23735
23735
  {
23736
23736
  borderRadius: 4,
23737
23737
  flexShrink: 0,
@@ -23858,12 +23858,12 @@ const di = h.createContext(null), w3 = ({
23858
23858
  ), w = h.useMemo(
23859
23859
  () => E.find((m) => m.guid === u),
23860
23860
  [u]
23861
- ), j = (m, O) => {
23862
- v(O), f("");
23861
+ ), j = (m, L) => {
23862
+ v(L), f("");
23863
23863
  }, D = (m) => {
23864
23864
  f(d === m || m === "0" ? "" : m);
23865
23865
  }, q = (m) => {
23866
- const O = {
23866
+ const L = {
23867
23867
  accounts: s,
23868
23868
  dateRange: o
23869
23869
  };
@@ -23871,22 +23871,22 @@ const di = h.createContext(null), w3 = ({
23871
23871
  if (m === "other") {
23872
23872
  const K = y.categoryData.find((B) => B.guid === "other");
23873
23873
  c({
23874
- ...O,
23874
+ ...L,
23875
23875
  custom: (B) => !!K?.categoryTotals?.find((Z) => Z.guid === B.top_level_category_guid)
23876
23876
  });
23877
23877
  } else
23878
23878
  c({
23879
- ...O,
23879
+ ...L,
23880
23880
  custom: (K) => m ? K.top_level_category_guid === m : K.top_level_category_guid !== X.INCOME
23881
23881
  });
23882
23882
  else
23883
23883
  c({
23884
- ...O,
23884
+ ...L,
23885
23885
  custom: (K) => m ? K.category_guid === m : K.top_level_category_guid === X.INCOME
23886
23886
  });
23887
23887
  C(!0);
23888
23888
  };
23889
- return /* @__PURE__ */ I(L, { children: [
23889
+ return /* @__PURE__ */ I(O, { children: [
23890
23890
  /* @__PURE__ */ I(qe, { onChange: j, value: l, variant: "fullWidth", children: [
23891
23891
  /* @__PURE__ */ e(
23892
23892
  OA,
@@ -23973,7 +23973,7 @@ const di = h.createContext(null), w3 = ({
23973
23973
  onBackClick: A,
23974
23974
  sx: t,
23975
23975
  title: n.title,
23976
- children: /* @__PURE__ */ e(L, { height: "calc(100dvh - 150px)", overflow: "scroll", width: "100%", children: /* @__PURE__ */ e(a7, {}) })
23976
+ children: /* @__PURE__ */ e(O, { height: "calc(100dvh - 150px)", overflow: "scroll", width: "100%", children: /* @__PURE__ */ e(a7, {}) })
23977
23977
  }
23978
23978
  );
23979
23979
  }, n6 = g(s7), I7 = (A) => ct[A] ?? ct.default, c7 = (A) => Gi[A];
@@ -24018,7 +24018,7 @@ const f7 = (A) => A.reduce((i, n) => {
24018
24018
  const { categories: i } = p(), n = Gi[A];
24019
24019
  return /* @__PURE__ */ I(b, { alignItems: "center", direction: "row", justifyContent: "center", children: [
24020
24020
  /* @__PURE__ */ e(
24021
- L,
24021
+ O,
24022
24022
  {
24023
24023
  "aria-label": z(i.category_icon_label_aria, n),
24024
24024
  role: "img",
@@ -24094,7 +24094,7 @@ const f7 = (A) => A.reduce((i, n) => {
24094
24094
  );
24095
24095
  return Object.values(u);
24096
24096
  }, [A, i]);
24097
- return /* @__PURE__ */ e(L, { sx: { height: r, width: "100%", overflowX: "auto", boxShadow: "none", ...o }, children: /* @__PURE__ */ e(
24097
+ return /* @__PURE__ */ e(O, { sx: { height: r, width: "100%", overflowX: "auto", boxShadow: "none", ...o }, children: /* @__PURE__ */ e(
24098
24098
  Mt,
24099
24099
  {
24100
24100
  columns: f,
@@ -24149,7 +24149,7 @@ const f7 = (A) => A.reduce((i, n) => {
24149
24149
  }, z7 = g(H7), C7 = {
24150
24150
  view_transactions: "View Transactions"
24151
24151
  }, g7 = ({ onBackClick: A, sx: t }) => {
24152
- const i = te(), { onEvent: n } = J(), { isDesktop: r, isTablet: o, isMobile: a } = HA(), { visibleAccounts: s } = CA(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: E, getCategoryName: d } = QA(), { sortedTransactions: f } = zA(), { isCopyLoaded: l, isInitialized: v, selectedAccounts: u, setSelectedAccounts: H } = cA(), { trends: P } = p(), C = i.palette.mode === "dark", [y, x] = h.useState(!1), [w, j] = h.useState(!1), [D, q] = h.useState("Chart"), [m, O] = h.useState(""), [K, B] = h.useState({
24152
+ const i = te(), { onEvent: n } = J(), { isDesktop: r, isTablet: o, isMobile: a } = HA(), { visibleAccounts: s } = CA(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: E, getCategoryName: d } = QA(), { sortedTransactions: f } = zA(), { isCopyLoaded: l, isInitialized: v, selectedAccounts: u, setSelectedAccounts: H } = cA(), { trends: P } = p(), C = i.palette.mode === "dark", [y, x] = h.useState(!1), [w, j] = h.useState(!1), [D, q] = h.useState("Chart"), [m, L] = h.useState(""), [K, B] = h.useState({
24153
24153
  start: Hr(BA(Ye(/* @__PURE__ */ new Date(), 6)), 1),
24154
24154
  end: BA(/* @__PURE__ */ new Date())
24155
24155
  });
@@ -24196,9 +24196,9 @@ const f7 = (A) => A.reduce((i, n) => {
24196
24196
  }, gA = () => {
24197
24197
  n(Y.TRENDS_CLICK_FILTER);
24198
24198
  }, hA = (XA) => {
24199
- O(XA);
24199
+ L(XA);
24200
24200
  }, DA = (XA) => {
24201
- O(XA), n(Y.TRENDS_CLICK_LEGEND, { category: d(XA) });
24201
+ L(XA), n(Y.TRENDS_CLICK_LEGEND, { category: d(XA) });
24202
24202
  }, ie = (XA) => {
24203
24203
  n(Y.TRENDS_HOVER_LEGEND, { category: d(XA) });
24204
24204
  }, fe = (XA) => {
@@ -24233,7 +24233,7 @@ const f7 = (A) => A.reduce((i, n) => {
24233
24233
  justifyContent: "space-between",
24234
24234
  sx: { pb: a ? 12 : 24, pt: a ? 24 : 48 },
24235
24235
  children: [
24236
- /* @__PURE__ */ I(L, { sx: { mr: 10, minWidth: "60%" }, children: [
24236
+ /* @__PURE__ */ I(O, { sx: { mr: 10, minWidth: "60%" }, children: [
24237
24237
  /* @__PURE__ */ e(
24238
24238
  R,
24239
24239
  {
@@ -24293,13 +24293,13 @@ const f7 = (A) => A.reduce((i, n) => {
24293
24293
  }
24294
24294
  ),
24295
24295
  /* @__PURE__ */ I(b, { alignItems: "center", flexDirection: "row", width: "100%", children: [
24296
- /* @__PURE__ */ e(L, { flexGrow: 1, children: m && /* @__PURE__ */ I(_, { onClick: () => O(""), sx: { p: 0, pr: 5 }, children: [
24296
+ /* @__PURE__ */ e(O, { flexGrow: 1, children: m && /* @__PURE__ */ I(_, { onClick: () => L(""), sx: { p: 0, pr: 5 }, children: [
24297
24297
  /* @__PURE__ */ e(M, { name: "arrow_back" }),
24298
24298
  P.all_categories
24299
24299
  ] }) }),
24300
24300
  /* @__PURE__ */ e(_, { onClick: () => j(!0), sx: { px: 5 }, children: `${C7.view_transactions} (${f.length})` })
24301
24301
  ] }),
24302
- /* @__PURE__ */ I(L, { children: [
24302
+ /* @__PURE__ */ I(O, { children: [
24303
24303
  D === "Chart" && /* @__PURE__ */ e(
24304
24304
  kc,
24305
24305
  {