@mx-cartographer/experiences 2.34.0 → 2.34.2

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.es.js CHANGED
@@ -6,7 +6,7 @@ import W from "@mui/material/Divider";
6
6
  import dA from "@mui/material/List";
7
7
  import Dn from "@mui/material/ListSubheader";
8
8
  import aa from "@mui/system/Stack";
9
- import { useTokens as cA, AccountsIcon as Oi, P as mA, Icon as R, Text as y, H2 as it, DialogHeader as _i, DialogFooter as xi, Drawer as Ni, Footer as Mi, DateRangePicker as ra, H3 as Hi, H1 as ve, TextField as pe, IconWeight as ur, MerchantLogo as Ee, CategoryIcon as ze, CategoryIconVariants as hr, InstitutionLogo as ot, THEMES as ia, createMXTheme as Ri } from "@kyper/mui";
9
+ import { useTokens as cA, AccountsIcon as Oi, P as mA, Icon as H, Text as y, H2 as it, DialogHeader as _i, DialogFooter as xi, Drawer as Ni, Footer as Mi, DateRangePicker as ra, H3 as Hi, H1 as ve, TextField as pe, IconWeight as ur, MerchantLogo as Ee, CategoryIcon as ze, CategoryIconVariants as hr, InstitutionLogo as ot, THEMES as ia, createMXTheme as Ri } from "@kyper/mui";
10
10
  import qi from "bowser";
11
11
  import { getUnixTime as eA } from "date-fns/getUnixTime";
12
12
  import { Honeybadger as ht } from "@honeybadger-io/react";
@@ -192,7 +192,7 @@ const ns = async (A, e, n = "1.0.0", a = "Experiences") => {
192
192
  []
193
193
  );
194
194
  return n ? r : r.join("");
195
- }, $h = (A, e, n, ...a) => !A || !e ? "" : N(n === 1 ? A : e, ...a), ye = () => (window?.app?.options?.language || document.querySelector("html")?.getAttribute("lang") || "en-US").toLowerCase(), Ct = [500, 502, 503, 504], ft = "";
195
+ }, $3 = (A, e, n, ...a) => !A || !e ? "" : N(n === 1 ? A : e, ...a), ye = () => (window?.app?.options?.language || document.querySelector("html")?.getAttribute("lang") || "en-US").toLowerCase(), Ct = [500, 502, 503, 504], ft = "";
196
196
  class KA {
197
197
  endpoint = "/";
198
198
  headers = {};
@@ -1138,14 +1138,14 @@ const ws = (A, e) => {
1138
1138
  v(null);
1139
1139
  };
1140
1140
  return /* @__PURE__ */ l(L, { className: "mx-cmn-account-filter", m: 4, sx: { ...s }, children: [
1141
- u && /* @__PURE__ */ t(st, { id: "filter-accounts", placement: "bottom", title: e.title, children: /* @__PURE__ */ t(TA, { "aria-describedby": "filter-accounts", "aria-label": e.title, onClick: T, children: /* @__PURE__ */ t(R, { name: "filter_alt" }) }) }),
1141
+ u && /* @__PURE__ */ t(st, { id: "filter-accounts", placement: "bottom", title: e.title, children: /* @__PURE__ */ t(TA, { "aria-describedby": "filter-accounts", "aria-label": e.title, onClick: T, children: /* @__PURE__ */ t(H, { name: "filter_alt" }) }) }),
1142
1142
  (d || h) && /* @__PURE__ */ t(
1143
1143
  Z,
1144
1144
  {
1145
1145
  "aria-label": e.title,
1146
- endIcon: o ? /* @__PURE__ */ t(R, { name: "expand_more" }) : void 0,
1146
+ endIcon: o ? /* @__PURE__ */ t(H, { name: "expand_more" }) : void 0,
1147
1147
  onClick: T,
1148
- startIcon: /* @__PURE__ */ t(R, { name: "filter_alt" }),
1148
+ startIcon: /* @__PURE__ */ t(H, { name: "filter_alt" }),
1149
1149
  variant: c,
1150
1150
  children: e.title
1151
1151
  }
@@ -1381,7 +1381,7 @@ const ws = (A, e) => {
1381
1381
  selectedIndex: c,
1382
1382
  valueFormatter: d = (u) => `${u}`
1383
1383
  }) => {
1384
- const u = cA(), h = xs(u), g = a.reduce(Os, []), v = A !== void 0 ? A : g.reduce(bs, 0) / g.length, m = Math.max(...g), p = Math.min(...g), T = g.reduce(Ps, 0), w = m >= 0, I = p < 0, S = La(w, I, r), x = La(I, w, r), M = _s(v, m, p, S || x), P = (H) => c === void 0 || H === c ? n : `${n}80`, q = () => /* @__PURE__ */ t(
1384
+ const u = cA(), h = xs(u), g = a.reduce(Os, []), v = A !== void 0 ? A : g.reduce(bs, 0) / g.length, m = Math.max(...g), p = Math.min(...g), T = g.reduce(Ps, 0), w = m >= 0, I = p < 0, S = La(w, I, r), x = La(I, w, r), M = _s(v, m, p, S || x), P = (R) => c === void 0 || R === c ? n : `${n}80`, q = () => /* @__PURE__ */ t(
1385
1385
  wa,
1386
1386
  {
1387
1387
  averageLineHeight: M,
@@ -1396,11 +1396,11 @@ const ws = (A, e) => {
1396
1396
  return /* @__PURE__ */ l("div", { className: `mx-cmn-bar-chart ${h}`, children: [
1397
1397
  /* @__PURE__ */ l("div", { className: "mx-cmn-chart-container", children: [
1398
1398
  /* @__PURE__ */ t(q, {}),
1399
- a.map((H, K) => /* @__PURE__ */ l(C.Fragment, { children: [
1399
+ a.map((R, K) => /* @__PURE__ */ l(C.Fragment, { children: [
1400
1400
  /* @__PURE__ */ t(
1401
1401
  wa,
1402
1402
  {
1403
- ariaLabel: H.ariaLabel,
1403
+ ariaLabel: R.ariaLabel,
1404
1404
  averageLineHeight: M,
1405
1405
  bottomHeight: x,
1406
1406
  color: P(K),
@@ -1409,10 +1409,10 @@ const ws = (A, e) => {
1409
1409
  range: T,
1410
1410
  selectedIndex: c,
1411
1411
  topHeight: S,
1412
- value: H.value,
1413
- valueLabel: d(H.value),
1412
+ value: R.value,
1413
+ valueLabel: d(R.value),
1414
1414
  width: e,
1415
- xAxisLabel: H.label
1415
+ xAxisLabel: R.label
1416
1416
  }
1417
1417
  ),
1418
1418
  /* @__PURE__ */ t(q, {})
@@ -1550,10 +1550,10 @@ const zs = ({
1550
1550
  const m = C.useMemo(() => {
1551
1551
  const S = Gi({ start: gA(c), end: bA(c) }), x = [];
1552
1552
  for (let M = 0; M < S.length; M++) {
1553
- const P = S[M], q = ki({ start: P, end: te(P, 6) }), H = [];
1553
+ const P = S[M], q = ki({ start: P, end: te(P, 6) }), R = [];
1554
1554
  for (let K = 0; K < q.length; K++)
1555
- H.push(q[K]);
1556
- x.push(H);
1555
+ R.push(q[K]);
1556
+ x.push(R);
1557
1557
  }
1558
1558
  return x;
1559
1559
  }, [c]), p = (S) => {
@@ -1903,7 +1903,7 @@ const zs = ({
1903
1903
  padding: "8px 20px 8px 8px"
1904
1904
  },
1905
1905
  children: [
1906
- /* @__PURE__ */ t(TA, { "aria-label": A, onClick: e, children: /* @__PURE__ */ t(R, { name: "west" }) }),
1906
+ /* @__PURE__ */ t(TA, { "aria-label": A, onClick: e, children: /* @__PURE__ */ t(H, { name: "west" }) }),
1907
1907
  /* @__PURE__ */ t(
1908
1908
  L,
1909
1909
  {
@@ -1972,14 +1972,14 @@ const zs = ({
1972
1972
  p(u);
1973
1973
  }, [u]);
1974
1974
  const x = (P) => {
1975
- const q = [...u], H = u[0], K = u[1], B = P === "previous";
1975
+ const q = [...u], R = u[0], K = u[1], B = P === "previous";
1976
1976
  if (g === n.dateRangePickerCopy.dateRangeThisMonth)
1977
- q[0] = B ? be(H, 1) : RA(H, 1), q[1] = bA(B ? be(K, 1) : RA(K, 1));
1977
+ q[0] = B ? be(R, 1) : RA(R, 1), q[1] = bA(B ? be(K, 1) : RA(K, 1));
1978
1978
  else if (g === n.dateRangePickerCopy.dateRangeYTD || g === n.dateRangePickerCopy.dateRangeLastYear)
1979
- q[0] = B ? la(ca(H), 1) : At(ca(H), 1), q[1] = B ? la(sa(H), 1) : At(sa(H), 1);
1979
+ q[0] = B ? la(ca(R), 1) : At(ca(R), 1), q[1] = B ? la(sa(R), 1) : At(sa(R), 1);
1980
1980
  else {
1981
- const aA = ro(K, H);
1982
- q[0] = P === "previous" ? qA(H, aA) : te(H, aA), q[1] = P === "previous" ? qA(K, aA) : te(K, aA);
1981
+ const aA = ro(K, R);
1982
+ q[0] = P === "previous" ? qA(R, aA) : te(R, aA), q[1] = P === "previous" ? qA(K, aA) : te(K, aA);
1983
1983
  }
1984
1984
  h(q), A.onRangeChanged(q);
1985
1985
  }, M = () => {
@@ -2001,7 +2001,7 @@ const zs = ({
2001
2001
  "aria-describedby": "select-date",
2002
2002
  "aria-label": "Select a date",
2003
2003
  onClick: () => w(!0),
2004
- children: /* @__PURE__ */ t(R, { name: "calendar_month" })
2004
+ children: /* @__PURE__ */ t(H, { name: "calendar_month" })
2005
2005
  }
2006
2006
  )
2007
2007
  }
@@ -2018,9 +2018,9 @@ const zs = ({
2018
2018
  },
2019
2019
  children: [
2020
2020
  o === "readonly" && /* @__PURE__ */ l(E, { alignItems: "center", direction: "row", gap: 8, children: [
2021
- /* @__PURE__ */ t(R, { name: "calendar_month", size: 24 }),
2021
+ /* @__PURE__ */ t(H, { name: "calendar_month", size: 24 }),
2022
2022
  /* @__PURE__ */ t(y, { bold: !0, children: J(u[0], V.MONTH_DAY) }),
2023
- /* @__PURE__ */ t(R, { name: "remove" }),
2023
+ /* @__PURE__ */ t(H, { name: "remove" }),
2024
2024
  /* @__PURE__ */ t(y, { bold: !0, children: J(u[1], V.MONTH_DAY_YEAR) })
2025
2025
  ] }),
2026
2026
  o !== "readonly" && /* @__PURE__ */ l(
@@ -2042,7 +2042,7 @@ const zs = ({
2042
2042
  "aria-label": n.dateRangePreviousAria,
2043
2043
  color: A.shouldDisablePrevious ? "secondary" : "primary",
2044
2044
  onClick: () => A.shouldDisablePrevious ? null : x("previous"),
2045
- children: /* @__PURE__ */ t(R, { name: "chevron_left", size: 28 })
2045
+ children: /* @__PURE__ */ t(H, { name: "chevron_left", size: 28 })
2046
2046
  }
2047
2047
  ),
2048
2048
  /* @__PURE__ */ t(
@@ -2051,7 +2051,7 @@ const zs = ({
2051
2051
  "aria-disabled": A.shouldDisablePicker,
2052
2052
  color: e,
2053
2053
  onClick: () => A.shouldDisablePicker ? null : w(!0),
2054
- startIcon: /* @__PURE__ */ t(R, { name: "calendar_month", size: 20 }),
2054
+ startIcon: /* @__PURE__ */ t(H, { name: "calendar_month", size: 20 }),
2055
2055
  sx: {
2056
2056
  p: d ? 0 : 8,
2057
2057
  width: c ? 280 : 232
@@ -2071,7 +2071,7 @@ const zs = ({
2071
2071
  "aria-label": n.dateRangeNextAria,
2072
2072
  color: A.shouldDisableNext ? "secondary" : "primary",
2073
2073
  onClick: () => A.shouldDisableNext ? null : x("next"),
2074
- children: /* @__PURE__ */ t(R, { name: "chevron_right", size: 28 })
2074
+ children: /* @__PURE__ */ t(H, { name: "chevron_right", size: 28 })
2075
2075
  }
2076
2076
  )
2077
2077
  ]
@@ -2303,7 +2303,7 @@ const zs = ({
2303
2303
  action: n && /* @__PURE__ */ t(
2304
2304
  Z,
2305
2305
  {
2306
- endIcon: /* @__PURE__ */ t(R, { name: "keyboard_arrow_right_rounded" }),
2306
+ endIcon: /* @__PURE__ */ t(H, { name: "keyboard_arrow_right_rounded" }),
2307
2307
  onClick: n,
2308
2308
  children: /* @__PURE__ */ t(y, { bold: !0, variant: "Small", children: a })
2309
2309
  }
@@ -2400,7 +2400,7 @@ const zs = ({
2400
2400
  accounts: A,
2401
2401
  copy: Qr,
2402
2402
  onFilterClick: (P) => {
2403
- const q = A.filter((H) => P.includes(H.guid));
2403
+ const q = A.filter((R) => P.includes(R.guid));
2404
2404
  x(P), M(q);
2405
2405
  },
2406
2406
  selectedAccounts: S,
@@ -2415,7 +2415,7 @@ const zs = ({
2415
2415
  Z,
2416
2416
  {
2417
2417
  onClick: P.onClick,
2418
- startIcon: /* @__PURE__ */ t(R, { name: P.iconName }),
2418
+ startIcon: /* @__PURE__ */ t(H, { name: P.iconName }),
2419
2419
  sx: { mx: 4 },
2420
2420
  children: P.label
2421
2421
  },
@@ -2425,7 +2425,7 @@ const zs = ({
2425
2425
  {
2426
2426
  "aria-label": P.label,
2427
2427
  onClick: P.onClick,
2428
- children: /* @__PURE__ */ t(R, { name: P.iconName })
2428
+ children: /* @__PURE__ */ t(H, { name: P.iconName })
2429
2429
  },
2430
2430
  P.iconName
2431
2431
  )
@@ -2442,7 +2442,7 @@ const zs = ({
2442
2442
  pb: 0
2443
2443
  },
2444
2444
  title: p ? /* @__PURE__ */ t(ve, { children: d }) : /* @__PURE__ */ l(E, { alignItems: "center", flexDirection: "row", children: [
2445
- T && /* @__PURE__ */ t(TA, { onClick: s, sx: { ml: -16, mr: 16 }, children: /* @__PURE__ */ t(R, { name: "arrow_back" }) }),
2445
+ T && /* @__PURE__ */ t(TA, { onClick: s, sx: { ml: -16, mr: 16 }, children: /* @__PURE__ */ t(H, { name: "arrow_back" }) }),
2446
2446
  /* @__PURE__ */ t(ve, { variant: "H3", children: d })
2447
2447
  ] })
2448
2448
  }
@@ -2595,14 +2595,14 @@ const zs = ({
2595
2595
  "aria-label": e,
2596
2596
  className: "mx-cat-cancel-search-button",
2597
2597
  onClick: () => n(""),
2598
- children: /* @__PURE__ */ t(R, { name: "cancel", size: 24 })
2598
+ children: /* @__PURE__ */ t(H, { name: "cancel", size: 24 })
2599
2599
  }
2600
2600
  );
2601
2601
  return /* @__PURE__ */ t(L, { className: "mx-cmn-search-box", px: i.Spacing.Large, py: i.Spacing.Medium, children: /* @__PURE__ */ t(
2602
2602
  pe,
2603
2603
  {
2604
2604
  InputProps: {
2605
- startAdornment: /* @__PURE__ */ t(Dt, { position: "start", children: /* @__PURE__ */ t(R, { color: "disabled", name: "search", size: 26 }) }),
2605
+ startAdornment: /* @__PURE__ */ t(Dt, { position: "start", children: /* @__PURE__ */ t(H, { color: "disabled", name: "search", size: 26 }) }),
2606
2606
  endAdornment: /* @__PURE__ */ t(Dt, { position: "end", sx: { p: 0 }, children: r ? o : null })
2607
2607
  },
2608
2608
  "aria-label": A,
@@ -2701,7 +2701,7 @@ const zs = ({
2701
2701
  }
2702
2702
  ), Nt = ({ iconName: A, label: e, onClick: n, value: a }) => {
2703
2703
  const r = /* @__PURE__ */ l(AA, { children: [
2704
- /* @__PURE__ */ t(SA, { children: /* @__PURE__ */ t(ce, { variant: "rounded", children: /* @__PURE__ */ t(R, { name: A, sx: { color: "text.primary" }, weight: ur.Dark }) }) }),
2704
+ /* @__PURE__ */ t(SA, { children: /* @__PURE__ */ t(ce, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(H, { name: A, sx: { color: "text.primary" }, weight: ur.Dark }) }) }),
2705
2705
  /* @__PURE__ */ t(
2706
2706
  rA,
2707
2707
  {
@@ -2714,7 +2714,7 @@ const zs = ({
2714
2714
  ] });
2715
2715
  return n ? /* @__PURE__ */ t($, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(nA, { onClick: n, children: [
2716
2716
  r,
2717
- /* @__PURE__ */ t($A, { children: /* @__PURE__ */ t(R, { name: "chevron_right", size: 24 }) })
2717
+ /* @__PURE__ */ t($A, { children: /* @__PURE__ */ t(H, { name: "chevron_right", size: 24 }) })
2718
2718
  ] }) }) : /* @__PURE__ */ t($, { disableGutters: !1, disablePadding: !1, children: r });
2719
2719
  }, Gn = ({
2720
2720
  body: A,
@@ -2727,8 +2727,8 @@ const zs = ({
2727
2727
  /* @__PURE__ */ t(y, { bold: !0, variant: "Body", children: n }),
2728
2728
  /* @__PURE__ */ t(y, { sx: { whiteSpace: "unset" }, variant: "Small", children: A })
2729
2729
  ] }),
2730
- children: /* @__PURE__ */ t(TA, { "aria-label": n, sx: { minHeight: 0, minWidth: 0, p: 0 }, children: /* @__PURE__ */ t(
2731
- R,
2730
+ children: /* @__PURE__ */ t(TA, { sx: { minHeight: 0, minWidth: 0, p: 0 }, children: /* @__PURE__ */ t(
2731
+ H,
2732
2732
  {
2733
2733
  name: e,
2734
2734
  sx: { color: "action.active", fontSize: 16 },
@@ -2853,12 +2853,12 @@ const Ge = () => {
2853
2853
  c.length
2854
2854
  ) })
2855
2855
  ] }),
2856
- /* @__PURE__ */ t(E, { pt: 18, children: /* @__PURE__ */ t(R, { name: "remove" }) }),
2856
+ /* @__PURE__ */ t(E, { pt: 18, children: /* @__PURE__ */ t(H, { name: "remove" }) }),
2857
2857
  /* @__PURE__ */ l(E, { pb: 14, pt: 12, children: [
2858
2858
  /* @__PURE__ */ t(y, { variant: "H2", children: z(v, "0,0.00") }),
2859
2859
  /* @__PURE__ */ t(mA, { variant: "XSmall", whiteSpace: "nowrap", children: N(a.expenses_due, s.length) })
2860
2860
  ] }),
2861
- /* @__PURE__ */ t(E, { pt: 18, children: /* @__PURE__ */ t(R, { name: "equals" }) }),
2861
+ /* @__PURE__ */ t(E, { pt: 18, children: /* @__PURE__ */ t(H, { name: "equals" }) }),
2862
2862
  /* @__PURE__ */ l(E, { pb: 14, pr: 24, pt: 12, children: [
2863
2863
  /* @__PURE__ */ t(y, { variant: "H2", children: z(m, "0,0.00") }),
2864
2864
  /* @__PURE__ */ l(E, { alignItems: "center", direction: "row", gap: 8, children: [
@@ -2870,7 +2870,7 @@ const Ge = () => {
2870
2870
  Z,
2871
2871
  {
2872
2872
  onClick: A,
2873
- startIcon: /* @__PURE__ */ t(R, { name: "add" }),
2873
+ startIcon: /* @__PURE__ */ t(H, { name: "add" }),
2874
2874
  sx: { fontSize: 13, lineHeight: "initial" },
2875
2875
  children: vt.add_income
2876
2876
  }
@@ -2915,7 +2915,7 @@ const Ge = () => {
2915
2915
  {
2916
2916
  fullWidth: !0,
2917
2917
  onClick: A,
2918
- startIcon: /* @__PURE__ */ t(R, { name: "add" }),
2918
+ startIcon: /* @__PURE__ */ t(H, { name: "add" }),
2919
2919
  sx: { fontSize: 13 },
2920
2920
  children: vt.add_income
2921
2921
  }
@@ -3843,9 +3843,9 @@ const HA = () => {
3843
3843
  disableTypography: !0,
3844
3844
  secondary: /* @__PURE__ */ l(E, { direction: "row", justifyContent: "space-between", children: [
3845
3845
  /* @__PURE__ */ l(E, { alignItems: "center", direction: "row", gap: 4, children: [
3846
- A.is_flagged && /* @__PURE__ */ t(R, { fill: !0, name: "flag", size: 16, sx: { color: "warning.dark" } }),
3847
- A.is_hidden && /* @__PURE__ */ t(R, { name: "visibility_off", size: 16 }),
3848
- A.has_been_split && /* @__PURE__ */ t(R, { name: "call_split", size: 16 }),
3846
+ A.is_flagged && /* @__PURE__ */ t(H, { fill: !0, name: "flag", size: 16, sx: { color: "warning.dark" } }),
3847
+ A.is_hidden && /* @__PURE__ */ t(H, { name: "visibility_off", size: 16 }),
3848
+ A.has_been_split && /* @__PURE__ */ t(H, { name: "call_split", size: 16 }),
3849
3849
  /* @__PURE__ */ t(y, { variant: "XSmall", children: A.has_been_split ? a.split_transaction_category_label : A.category })
3850
3850
  ] }),
3851
3851
  o && r && /* @__PURE__ */ t(y, { bold: !0, color: "action.active", variant: "XSmall", children: o.short_title })
@@ -3990,17 +3990,17 @@ const HA = () => {
3990
3990
  onMouseEnter: () => a(!0),
3991
3991
  onMouseLeave: () => a(!1),
3992
3992
  children: [
3993
- A.row.has_been_split && /* @__PURE__ */ t(R, { name: "call_split", size: 16 }),
3993
+ A.row.has_been_split && /* @__PURE__ */ t(H, { name: "call_split", size: 16 }),
3994
3994
  /* @__PURE__ */ t(y, { tabIndex: A.tabIndex, variant: "Small", children: A.row.has_been_split ? e.split_transaction_category_label : A.row.category }),
3995
- !A.row.has_been_split && n && /* @__PURE__ */ t(R, { name: "edit", sx: { color: "action.active" } })
3995
+ !A.row.has_been_split && n && /* @__PURE__ */ t(H, { name: "edit", sx: { color: "action.active" } })
3996
3996
  ]
3997
3997
  }
3998
3998
  );
3999
3999
  }, Rc = (A) => /* @__PURE__ */ t(y, { tabIndex: A.tabIndex, variant: "Small", children: J(wA(A.row.date), V.MONTH_DAY) }), qc = (A) => {
4000
4000
  const { is_flagged: e, is_hidden: n } = A.row;
4001
4001
  return /* @__PURE__ */ l(L, { tabIndex: A.tabIndex, children: [
4002
- e && /* @__PURE__ */ t(R, { fill: !0, name: "flag", size: 16, sx: { color: "warning.dark" } }),
4003
- !e && n && /* @__PURE__ */ t(R, { name: "visibility_off", size: 16 })
4002
+ e && /* @__PURE__ */ t(H, { fill: !0, name: "flag", size: 16, sx: { color: "warning.dark" } }),
4003
+ !e && n && /* @__PURE__ */ t(H, { name: "visibility_off", size: 16 })
4004
4004
  ] });
4005
4005
  }, Ue = (A) => /* @__PURE__ */ t(y, { fontFamily: "InterSemibold", variant: "Small", children: A.colDef.headerName }), zc = (A) => /* @__PURE__ */ l(E, { alignItems: "center", direction: "row", gap: 8, children: [
4006
4006
  /* @__PURE__ */ t(
@@ -5192,23 +5192,23 @@ const Wr = ({ transaction: A }) => {
5192
5192
  parent_guid: A.guid,
5193
5193
  top_level_category_guid: void 0
5194
5194
  }, [d, u] = C.useState(!1), [h, g] = C.useState(!1), [v, m] = C.useState([]), p = () => {
5195
- const H = [...v];
5196
- H.push({ ...c }), H[0].amount -= 1, m(H);
5197
- }, T = (H) => {
5198
- if (H > 0) {
5199
- const K = v[H], B = [...v];
5200
- B.splice(H, 1), B[0].amount += K.amount, m(B);
5201
- }
5202
- }, w = (H, K) => {
5195
+ const R = [...v];
5196
+ R.push({ ...c }), R[0].amount -= 1, m(R);
5197
+ }, T = (R) => {
5198
+ if (R > 0) {
5199
+ const K = v[R], B = [...v];
5200
+ B.splice(R, 1), B[0].amount += K.amount, m(B);
5201
+ }
5202
+ }, w = (R, K) => {
5203
5203
  const B = [...v];
5204
- B[H].amount = K, B[0].amount = A.amount - B.reduce(
5204
+ B[R].amount = K, B[0].amount = A.amount - B.reduce(
5205
5205
  (aA, OA, de) => aA + (de !== 0 ? OA.amount : 0),
5206
5206
  0
5207
5207
  ), m(B);
5208
- }, I = (H, K) => {
5208
+ }, I = (R, K) => {
5209
5209
  const B = [...v], aA = o.find((OA) => OA.guid === K);
5210
- aA && (B[H] = {
5211
- ...B[H],
5210
+ aA && (B[R] = {
5211
+ ...B[R],
5212
5212
  category_guid: K,
5213
5213
  category: aA.name,
5214
5214
  top_level_category_guid: aA.parent_guid || K
@@ -5225,11 +5225,11 @@ const Wr = ({ transaction: A }) => {
5225
5225
  e(D.ON_TRANSACTION_SPLIT_CANCEL_CLICK), m([{ ...s }, { ...c }]), u(!1);
5226
5226
  }, P = async () => {
5227
5227
  e(D.ON_TRANSACTION_UNSPLIT);
5228
- const H = A.parent_guid ?? A.guid;
5229
- await r(H);
5228
+ const R = A.parent_guid ?? A.guid;
5229
+ await r(R);
5230
5230
  }, q = C.useMemo(() => {
5231
- const H = v.some((B) => !B.category_guid), K = v.some((B) => B.amount <= 0);
5232
- return H || K;
5231
+ const R = v.some((B) => !B.category_guid), K = v.some((B) => B.amount <= 0);
5232
+ return R || K;
5233
5233
  }, [v]);
5234
5234
  return /* @__PURE__ */ l(C.Fragment, { children: [
5235
5235
  A && /* @__PURE__ */ t($, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(nA, { onClick: S, children: [
@@ -5859,7 +5859,7 @@ const Wr = ({ transaction: A }) => {
5859
5859
  selectedAccountGuids: S,
5860
5860
  selectedAccounts: x,
5861
5861
  setDisplayedDate: M
5862
- } = fA(), [P, q] = C.useState(""), [H, K] = C.useState(""), [B, aA] = C.useState(!1);
5862
+ } = fA(), [P, q] = C.useState(""), [R, K] = C.useState(""), [B, aA] = C.useState(!1);
5863
5863
  C.useEffect(() => {
5864
5864
  const yA = gA(G()), na = bA(G());
5865
5865
  M(yA, na), v({
@@ -5875,7 +5875,7 @@ const Wr = ({ transaction: A }) => {
5875
5875
  }, [w, S]), C.useEffect(() => {
5876
5876
  c(e);
5877
5877
  }, [e]);
5878
- const OA = H ? p.find((yA) => yA.guid === H) : void 0, de = i && !!r.payee && !!r.account_guid && !!r.category_guid, JA = (yA) => {
5878
+ const OA = R ? p.find((yA) => yA.guid === R) : void 0, de = i && !!r.payee && !!r.account_guid && !!r.category_guid, JA = (yA) => {
5879
5879
  M(yA[0], yA[1]);
5880
5880
  }, iA = (yA) => {
5881
5881
  s(yA), v({
@@ -6101,7 +6101,7 @@ const Wr = ({ transaction: A }) => {
6101
6101
  primaryTypographyProps: { fontWeight: 400 }
6102
6102
  }
6103
6103
  ),
6104
- A.recurrenceType === u.id && /* @__PURE__ */ t(R, { color: "primary", fill: !0, name: "check_circle", size: 24 })
6104
+ A.recurrenceType === u.id && /* @__PURE__ */ t(H, { color: "primary", fill: !0, name: "check_circle", size: 24 })
6105
6105
  ] }) }, u.id),
6106
6106
  /* @__PURE__ */ t(W, {})
6107
6107
  ] }, u.id)) })
@@ -6206,7 +6206,6 @@ const Wr = ({ transaction: A }) => {
6206
6206
  ] })
6207
6207
  ] }),
6208
6208
  /* @__PURE__ */ l(dA, { sx: { bgcolor: "background.paper" }, children: [
6209
- /* @__PURE__ */ t(W, { color: "secondary" }),
6210
6209
  A.institution && /* @__PURE__ */ l(AA, { children: [
6211
6210
  /* @__PURE__ */ t(
6212
6211
  Nt,
@@ -6239,7 +6238,7 @@ const Wr = ({ transaction: A }) => {
6239
6238
  {
6240
6239
  color: "error",
6241
6240
  onClick: () => h(!0),
6242
- startIcon: /* @__PURE__ */ t(R, { name: "delete" }),
6241
+ startIcon: /* @__PURE__ */ t(H, { name: "delete" }),
6243
6242
  sx: { mx: 24, my: 16 },
6244
6243
  variant: "text",
6245
6244
  children: p ? GA.activity_delete_income_title : GA.activity_delete_expense_title
@@ -6410,8 +6409,8 @@ const Wr = ({ transaction: A }) => {
6410
6409
  z(A.amount, "0,0.00")
6411
6410
  ] }),
6412
6411
  !e && /* @__PURE__ */ l(E, { alignItems: "center", direction: "row", gap: 6, textTransform: "uppercase", children: [
6413
- s && /* @__PURE__ */ t(R, { color: "success", fill: !0, name: "check_circle", size: 12 }),
6414
- c && /* @__PURE__ */ t(R, { color: "error", fill: !0, name: "cancel", size: 12 }),
6412
+ s && /* @__PURE__ */ t(H, { color: "success", fill: !0, name: "check_circle", size: 12 }),
6413
+ c && /* @__PURE__ */ t(H, { color: "error", fill: !0, name: "cancel", size: 12 }),
6415
6414
  /* @__PURE__ */ t(y, { bold: !0, color: "secondary.light", variant: "XSmall", children: u })
6416
6415
  ] })
6417
6416
  ] })
@@ -6601,7 +6600,7 @@ const Wr = ({ transaction: A }) => {
6601
6600
  {
6602
6601
  InputLabelProps: { shrink: !0 },
6603
6602
  SelectProps: {
6604
- IconComponent: (d) => /* @__PURE__ */ t(R, { fill: !1, name: "expand_more", size: 20, sx: { mr: 4 }, ...d })
6603
+ IconComponent: (d) => /* @__PURE__ */ t(H, { fill: !1, name: "expand_more", size: 20, sx: { mr: 4 }, ...d })
6605
6604
  },
6606
6605
  defaultValue: 0,
6607
6606
  label: QA.frequency,
@@ -6658,9 +6657,12 @@ const Wr = ({ transaction: A }) => {
6658
6657
  g(""), u(!1);
6659
6658
  };
6660
6659
  return /* @__PURE__ */ l(L, { children: [
6661
- /* @__PURE__ */ t($, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(nA, { onClick: I, children: /* @__PURE__ */ t(rA, { children: /* @__PURE__ */ l(E, { alignItems: "center", direction: "row", gap: 8, children: [
6662
- /* @__PURE__ */ t(R, { fill: !0, name: "add_box", size: 24, sx: { color: "action.active" } }),
6663
- /* @__PURE__ */ t(y, { bold: !0, sx: { color: "action.active" }, variant: "Body", children: e })
6660
+ /* @__PURE__ */ t($, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(nA, { onClick: I, children: /* @__PURE__ */ t(rA, { children: /* @__PURE__ */ l(E, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
6661
+ /* @__PURE__ */ l(E, { alignItems: "center", direction: "row", gap: 8, children: [
6662
+ /* @__PURE__ */ t(H, { fill: !0, name: "add_box", size: 24, sx: { color: "action.active" } }),
6663
+ /* @__PURE__ */ t(y, { bold: !0, sx: { color: "action.active" }, variant: "Body", children: e })
6664
+ ] }),
6665
+ /* @__PURE__ */ t(H, { name: "chevron_right", size: 24, sx: { color: "primary.light" } })
6664
6666
  ] }) }) }) }),
6665
6667
  /* @__PURE__ */ t(W, {}),
6666
6668
  /* @__PURE__ */ t(
@@ -6719,7 +6721,7 @@ const Wr = ({ transaction: A }) => {
6719
6721
  expectedDate: mr(a.occurs_on),
6720
6722
  name: a.description,
6721
6723
  institution: i?.user_name,
6722
- institutionGuid: i?.guid,
6724
+ institutionGuid: i?.institution_guid,
6723
6725
  merchantGuid: a.merchant_guid,
6724
6726
  recurrenceType: a.recurrence_type,
6725
6727
  recurrenceDay: a.recurrence_day,
@@ -6728,9 +6730,9 @@ const Wr = ({ transaction: A }) => {
6728
6730
  }), Vl = () => {
6729
6731
  const { scheduledPayments: A } = PA(), { transactions: e } = Y(), { selectedAccounts: n } = fA(), a = Yl(n, A, e);
6730
6732
  return /* @__PURE__ */ l(dA, { sx: { bgcolor: "background.paper" }, children: [
6731
- a.map((r) => /* @__PURE__ */ l(C.Fragment, { children: [
6733
+ a.map((r, i) => /* @__PURE__ */ l(C.Fragment, { children: [
6732
6734
  /* @__PURE__ */ t($n, { activity: r, showOrdinal: !0 }),
6733
- /* @__PURE__ */ t(W, {})
6735
+ /* @__PURE__ */ t(W, { variant: i < a.length - 1 ? "inset" : "fullWidth" })
6734
6736
  ] }, r.scheduledPaymentGuid)),
6735
6737
  /* @__PURE__ */ t(ii, { label: Wl.manage_expenses_label })
6736
6738
  ] });
@@ -6899,7 +6901,7 @@ const Wr = ({ transaction: A }) => {
6899
6901
  expectedDate: u,
6900
6902
  name: i.name,
6901
6903
  institution: d?.user_name,
6902
- institutionGuid: d?.guid,
6904
+ institutionGuid: d?.institution_guid,
6903
6905
  merchantGuid: c?.merchant_guid,
6904
6906
  recurrenceType: Tn(i),
6905
6907
  recurrenceDay: Number(i.repeat_day),
@@ -6914,9 +6916,9 @@ const Wr = ({ transaction: A }) => {
6914
6916
  r
6915
6917
  );
6916
6918
  return /* @__PURE__ */ l(dA, { sx: { bgcolor: "background.paper" }, children: [
6917
- i.map((o) => /* @__PURE__ */ l(C.Fragment, { children: [
6919
+ i.map((o, s) => /* @__PURE__ */ l(C.Fragment, { children: [
6918
6920
  /* @__PURE__ */ t($n, { activity: o, showOrdinal: !0 }),
6919
- /* @__PURE__ */ t(W, {})
6921
+ /* @__PURE__ */ t(W, { variant: s < i.length - 1 ? "inset" : "fullWidth" })
6920
6922
  ] }, o.sequenceGuid)),
6921
6923
  /* @__PURE__ */ t(ii, { isIncome: !0, label: Ad.manage_income_add })
6922
6924
  ] });
@@ -7144,7 +7146,7 @@ const Wr = ({ transaction: A }) => {
7144
7146
  /* @__PURE__ */ t(y, { variant: "XSmall", children: s.activity_expected })
7145
7147
  ] })
7146
7148
  ] }),
7147
- i && /* @__PURE__ */ t(Z, { onClick: i, startIcon: /* @__PURE__ */ t(R, { name: "add" }), variant: "text", children: s.activity_add_new })
7149
+ i && /* @__PURE__ */ t(Z, { onClick: i, startIcon: /* @__PURE__ */ t(H, { name: "add" }), variant: "text", children: s.activity_add_new })
7148
7150
  ] }),
7149
7151
  /* @__PURE__ */ t(Fs, { data: c })
7150
7152
  ] });
@@ -7565,7 +7567,7 @@ const F = {
7565
7567
  const n = Object.keys(k).filter((a) => Number(a)).map((a) => ({
7566
7568
  label: Ot[a],
7567
7569
  value: Number(a),
7568
- icon: /* @__PURE__ */ t(R, { name: ss[a] })
7570
+ icon: /* @__PURE__ */ t(H, { name: ss[a] })
7569
7571
  }));
7570
7572
  e.push({
7571
7573
  label: F.account_type,
@@ -7580,7 +7582,7 @@ const F = {
7580
7582
  const n = Object.keys(br).filter((a) => Number(a)).map((a) => ({
7581
7583
  label: cs[a],
7582
7584
  value: Number(a),
7583
- icon: /* @__PURE__ */ t(R, { name: ls[a] })
7585
+ icon: /* @__PURE__ */ t(H, { name: ls[a] })
7584
7586
  }));
7585
7587
  e.push({
7586
7588
  label: F.property_type,
@@ -8048,7 +8050,7 @@ const Sd = ({ activity: A }) => {
8048
8050
  Z,
8049
8051
  {
8050
8052
  onClick: () => e(!0),
8051
- startIcon: /* @__PURE__ */ t(R, { name: "add" }),
8053
+ startIcon: /* @__PURE__ */ t(H, { name: "add" }),
8052
8054
  sx: { fontSize: 13 },
8053
8055
  children: Xe.add_income
8054
8056
  }
@@ -8103,7 +8105,7 @@ const Sd = ({ activity: A }) => {
8103
8105
  mr: 24,
8104
8106
  sx: { display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0 },
8105
8107
  width: 44,
8106
- children: /* @__PURE__ */ t(R, { color: "primary", name: "currency_exchange" })
8108
+ children: /* @__PURE__ */ t(H, { color: "primary", name: "currency_exchange" })
8107
8109
  }
8108
8110
  ),
8109
8111
  n.bullet_one
@@ -8119,7 +8121,7 @@ const Sd = ({ activity: A }) => {
8119
8121
  mr: 24,
8120
8122
  sx: { display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0 },
8121
8123
  width: 44,
8122
- children: /* @__PURE__ */ t(R, { color: "primary", name: "cardiology" })
8124
+ children: /* @__PURE__ */ t(H, { color: "primary", name: "cardiology" })
8123
8125
  }
8124
8126
  ),
8125
8127
  n.bullet_two
@@ -8135,7 +8137,7 @@ const Sd = ({ activity: A }) => {
8135
8137
  mr: 24,
8136
8138
  sx: { display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0 },
8137
8139
  width: 44,
8138
- children: /* @__PURE__ */ t(R, { color: "primary", name: "flare" })
8140
+ children: /* @__PURE__ */ t(H, { color: "primary", name: "flare" })
8139
8141
  }
8140
8142
  ),
8141
8143
  n.bullet_three
@@ -8169,9 +8171,9 @@ const Sd = ({ activity: A }) => {
8169
8171
  `, Gd = () => {
8170
8172
  const { addCashflowEvent: A, addCashflowSequence: e, cashflowSequences: n } = PA(), {
8171
8173
  copy: { onboarding: a }
8172
- } = zA(), { completeOnboarding: r } = zA(), { isDirty: i } = Ge(), { isMobile: o } = Ae(), { setDisplayedDate: s } = fA(), { filter: c, setFilter: d, transactions: u } = Y(), h = tA(), [g, v] = oe(!0), [m, p] = C.useState(_.EveryMonth), [T, w] = oe(!1), [I, S] = C.useState(null), [x, M] = oe(1), [P, q] = oe([]), [H, K] = oe(""), B = C.useMemo(
8173
- () => u.find((iA) => iA.guid === H),
8174
- [H]
8174
+ } = zA(), { completeOnboarding: r } = zA(), { isDirty: i } = Ge(), { isMobile: o } = Ae(), { setDisplayedDate: s } = fA(), { filter: c, setFilter: d, transactions: u } = Y(), h = tA(), [g, v] = oe(!0), [m, p] = C.useState(_.EveryMonth), [T, w] = oe(!1), [I, S] = C.useState(null), [x, M] = oe(1), [P, q] = oe([]), [R, K] = oe(""), B = C.useMemo(
8175
+ () => u.find((iA) => iA.guid === R),
8176
+ [R]
8175
8177
  ), aA = !!n.length, OA = async () => {
8176
8178
  M(2), s(
8177
8179
  // Beginning of the month, 90 days before today
@@ -8250,7 +8252,7 @@ const Sd = ({ activity: A }) => {
8250
8252
  Z,
8251
8253
  {
8252
8254
  onClick: () => v(!0),
8253
- startIcon: /* @__PURE__ */ t(R, { name: "add", size: 20 }),
8255
+ startIcon: /* @__PURE__ */ t(H, { name: "add", size: 20 }),
8254
8256
  children: rn.add_additional_income_button
8255
8257
  }
8256
8258
  )
@@ -8315,7 +8317,7 @@ const Sd = ({ activity: A }) => {
8315
8317
  "aria-disabled": P.length < 1 || T,
8316
8318
  onClick: de,
8317
8319
  startIcon: T ? /* @__PURE__ */ t(
8318
- R,
8320
+ H,
8319
8321
  {
8320
8322
  name: "progress_activity",
8321
8323
  sx: {
@@ -8995,7 +8997,7 @@ const on = ({
8995
8997
  onClick: () => e(!0),
8996
8998
  primaryText: c.is_closed ? uA.mark_as_open : uA.mark_as_closed,
8997
8999
  secondaryText: uA.this_will_set_the_account_balance_to_0,
8998
- children: /* @__PURE__ */ t(R, { name: "chevron_right" })
9000
+ children: /* @__PURE__ */ t(H, { name: "chevron_right" })
8999
9001
  }
9000
9002
  ),
9001
9003
  h.length > 0 && /* @__PURE__ */ t(
@@ -9005,7 +9007,7 @@ const on = ({
9005
9007
  onClick: () => a(!0),
9006
9008
  primaryText: uA.mark_as_duplicate,
9007
9009
  secondaryText: uA.if_a_connected_account_is_showing_up_twice,
9008
- children: /* @__PURE__ */ t(R, { name: "chevron_right" })
9010
+ children: /* @__PURE__ */ t(H, { name: "chevron_right" })
9009
9011
  }
9010
9012
  ),
9011
9013
  /* @__PURE__ */ t(
@@ -9326,7 +9328,7 @@ const on = ({
9326
9328
  ] })
9327
9329
  }
9328
9330
  ),
9329
- /* @__PURE__ */ t(R, { name: "chevron_right" })
9331
+ /* @__PURE__ */ t(H, { name: "chevron_right" })
9330
9332
  ] }) }),
9331
9333
  /* @__PURE__ */ t(W, { sx: { ml: a.is_manual || !a.institution_url ? 0 : 24 } }),
9332
9334
  !a.is_manual && a.institution_url && /* @__PURE__ */ l(AA, { children: [
@@ -9351,7 +9353,7 @@ const on = ({
9351
9353
  }
9352
9354
  ) }),
9353
9355
  /* @__PURE__ */ t(rA, { primary: a.name, secondary: a.institution_url }),
9354
- /* @__PURE__ */ t(R, { name: "launch" })
9356
+ /* @__PURE__ */ t(H, { name: "launch" })
9355
9357
  ] }) }),
9356
9358
  /* @__PURE__ */ t(W, {})
9357
9359
  ] }),
@@ -9481,7 +9483,7 @@ const on = ({
9481
9483
  },
9482
9484
  children: [
9483
9485
  g,
9484
- /* @__PURE__ */ t(R, { name: "chevron_right" })
9486
+ /* @__PURE__ */ t(H, { name: "chevron_right" })
9485
9487
  ]
9486
9488
  }
9487
9489
  ) }),
@@ -10700,7 +10702,7 @@ const er = {
10700
10702
  simplify_your_budgets_zero_state_title: "Simplify Your Budgets",
10701
10703
  every_transaction_is_automatically_zero_state_copy: "Every transaction is automatically categorized and put in a budget to help you stay on track."
10702
10704
  }, h1 = () => /* @__PURE__ */ l(E, { alignItems: "center", gap: 12, sx: { mx: 24, textAlign: "center" }, children: [
10703
- /* @__PURE__ */ t(R, { name: "bubble_chart", size: 48 }),
10705
+ /* @__PURE__ */ t(H, { name: "bubble_chart", size: 48 }),
10704
10706
  /* @__PURE__ */ t(y, { bold: !0, children: nr.simplify_your_budgets_zero_state_title }),
10705
10707
  /* @__PURE__ */ t(y, { sx: { whiteSpace: "wrap" }, children: nr.every_transaction_is_automatically_zero_state_copy })
10706
10708
  ] }), g1 = ({
@@ -10825,7 +10827,7 @@ const Lt = {
10825
10827
  children: /* @__PURE__ */ l(dA, { children: [
10826
10828
  /* @__PURE__ */ t(W, {}),
10827
10829
  /* @__PURE__ */ t($, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ l(nA, { onClick: () => null, children: [
10828
- /* @__PURE__ */ t(R, { name: "visibility_off_outlined", size: 24, sx: { marginRight: 12 } }),
10830
+ /* @__PURE__ */ t(H, { name: "visibility_off_outlined", size: 24, sx: { marginRight: 12 } }),
10829
10831
  /* @__PURE__ */ t(
10830
10832
  rA,
10831
10833
  {
@@ -10835,7 +10837,7 @@ const Lt = {
10835
10837
  }
10836
10838
  ),
10837
10839
  A.hiddenInsights && /* @__PURE__ */ t(y, { sx: { marginRight: 24 }, children: A.hiddenInsights.length }),
10838
- /* @__PURE__ */ t(R, { name: "chevron_right", size: 24 })
10840
+ /* @__PURE__ */ t(H, { name: "chevron_right", size: 24 })
10839
10841
  ] }) }),
10840
10842
  /* @__PURE__ */ t(W, {})
10841
10843
  ] })
@@ -11118,7 +11120,7 @@ const lt = C.createContext(null), b1 = ({
11118
11120
  return !r.length || !i.length ? e.Color.Primary300 : r[0].amount > i[0].amount ? e.Color.Error300 : r[0].amount < i[0].amount ? e.Color.Success300 : e.Color.Primary300;
11119
11121
  }, R1 = ({ beat: A }) => {
11120
11122
  const e = cA(), n = H1(A.data_series, e);
11121
- return /* @__PURE__ */ t(R, { name: "bar_chart", sx: { color: n } });
11123
+ return /* @__PURE__ */ t(H, { name: "bar_chart", sx: { color: n } });
11122
11124
  }, Ei = () => /* @__PURE__ */ l("svg", { fill: "none", height: "36", viewBox: "0 0 40 36", width: "40", xmlns: "http://www.w3.org/2000/svg", children: [
11123
11125
  /* @__PURE__ */ t(
11124
11126
  "path",
@@ -11902,8 +11904,8 @@ const lt = C.createContext(null), b1 = ({
11902
11904
  ] })
11903
11905
  ] }), or = ({ beat: A, clientColorScheme: e, color: n, type: a }) => {
11904
11906
  const r = tA(), i = e?.primary_300 ? e.primary_300 : r.palette.primary.main;
11905
- return a === 0 ? /* @__PURE__ */ t(R, { fill: !0, name: "error", sx: { color: n || i } }) : a === 1 && A ? /* @__PURE__ */ t(P1, { beat: A }) : a === 2 && A ? /* @__PURE__ */ t(x1, { beat: A }) : a === 3 && A ? /* @__PURE__ */ t(R1, { beat: A }) : /* @__PURE__ */ t(
11906
- R,
11907
+ return a === 0 ? /* @__PURE__ */ t(H, { fill: !0, name: "error", sx: { color: n || i } }) : a === 1 && A ? /* @__PURE__ */ t(P1, { beat: A }) : a === 2 && A ? /* @__PURE__ */ t(x1, { beat: A }) : a === 3 && A ? /* @__PURE__ */ t(R1, { beat: A }) : /* @__PURE__ */ t(
11908
+ H,
11907
11909
  {
11908
11910
  fill: !0,
11909
11911
  name: "info",
@@ -12107,7 +12109,7 @@ const lt = C.createContext(null), b1 = ({
12107
12109
  });
12108
12110
  }, q = () => {
12109
12111
  g.current && m(g.current.scrollLeft);
12110
- }, H = () => {
12112
+ }, R = () => {
12111
12113
  if (!w || !p) return;
12112
12114
  w - p > q1 ? x(FA.ON_CAROUSEL_FORWARD_SWIPE) : x(FA.ON_CAROUSEL_BACK_SWIPE);
12113
12115
  }, K = (JA) => {
@@ -12128,7 +12130,7 @@ const lt = C.createContext(null), b1 = ({
12128
12130
  {
12129
12131
  className: "mx-insights-micro-carousel-container",
12130
12132
  onScroll: q,
12131
- onTouchEnd: H,
12133
+ onTouchEnd: R,
12132
12134
  onTouchMove: K,
12133
12135
  onTouchStart: B,
12134
12136
  ref: g,
@@ -12438,7 +12440,7 @@ const lt = C.createContext(null), b1 = ({
12438
12440
  const aA = window.innerHeight;
12439
12441
  aA < 180 ? M("STANDARD") : aA >= 180 && aA < 200 ? M("LARGE") : aA >= 200 && aA < 248 ? M("XLARGE") : aA >= 248 && M("XXLARGE");
12440
12442
  }, []);
12441
- const H = {
12443
+ const R = {
12442
12444
  showCTAColocatedWithText: a,
12443
12445
  heightOverrides: i,
12444
12446
  onCardClick: o,
@@ -12450,7 +12452,7 @@ const lt = C.createContext(null), b1 = ({
12450
12452
  carouselSize: x,
12451
12453
  posthog: d,
12452
12454
  variant: I,
12453
- ...H
12455
+ ...R
12454
12456
  }, B = !A && xe.isInitialized;
12455
12457
  return (
12456
12458
  // The Theme provider must wrap the component so that the styles don't break when imported into other applications.
@@ -12483,7 +12485,7 @@ const lt = C.createContext(null), b1 = ({
12483
12485
  clientColorScheme: n,
12484
12486
  showCarouselControls: h,
12485
12487
  variant: u ? I : void 0,
12486
- ...H
12488
+ ...R
12487
12489
  }
12488
12490
  ),
12489
12491
  B && !e.length && w && /* @__PURE__ */ t(V1, { clientColorScheme: n, ...K }),
@@ -13042,12 +13044,12 @@ const lt = C.createContext(null), b1 = ({
13042
13044
  ), S = C.useMemo(
13043
13045
  () => c.find((q) => q.guid === v),
13044
13046
  [v]
13045
- ), x = (q, H) => {
13046
- g(H), u("");
13047
+ ), x = (q, R) => {
13048
+ g(R), u("");
13047
13049
  }, M = (q) => {
13048
13050
  u(d === q || q === "0" ? "" : q);
13049
13051
  }, P = (q) => {
13050
- const H = {
13052
+ const R = {
13051
13053
  accounts: r,
13052
13054
  dateRange: i
13053
13055
  };
@@ -13055,17 +13057,17 @@ const lt = C.createContext(null), b1 = ({
13055
13057
  if (q === "other") {
13056
13058
  const K = w.categoryData.find((B) => B.guid === "other");
13057
13059
  s({
13058
- ...H,
13060
+ ...R,
13059
13061
  custom: (B) => !!K?.categoryTotals?.find((aA) => aA.guid === B.top_level_category_guid)
13060
13062
  });
13061
13063
  } else
13062
13064
  s({
13063
- ...H,
13065
+ ...R,
13064
13066
  custom: (K) => q ? K.top_level_category_guid === q : K.top_level_category_guid !== f.INCOME
13065
13067
  });
13066
13068
  else
13067
13069
  s({
13068
- ...H,
13070
+ ...R,
13069
13071
  custom: (K) => q ? K.category_guid === q : K.top_level_category_guid === f.INCOME
13070
13072
  });
13071
13073
  T(!0);
@@ -13337,7 +13339,7 @@ export {
13337
13339
  Ei as ZeroStateIcon,
13338
13340
  ns as analyticsSession,
13339
13341
  N as buildDynamicCopy,
13340
- $h as buildPluralCopy,
13342
+ $3 as buildPluralCopy,
13341
13343
  z as formatCurrency,
13342
13344
  J as formatDate,
13343
13345
  ps as formatOrdinal,