@mx-cartographer/experiences 4.0.2-alpha.al0 → 4.0.2

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
@@ -2,7 +2,7 @@ import { jsx as t, jsxs as l, Fragment as eA } from "react/jsx-runtime";
2
2
  import g, { useMemo as ao, useRef as Ra, useEffect as me, useState as Ce, createContext as io, useContext as oo } from "react";
3
3
  import { observer as T } from "mobx-react-lite";
4
4
  import O from "@mui/material/Box";
5
- import k from "@mui/material/Divider";
5
+ import q from "@mui/material/Divider";
6
6
  import nA from "@mui/material/List";
7
7
  import le from "@mui/material/ListSubheader";
8
8
  import wr from "@mui/system/Stack";
@@ -205,7 +205,7 @@ const Ks = async (A, e, n = "1.0.0", r = "Experiences") => {
205
205
  TRANSACTIONS: "transactions",
206
206
  USER_PROFILES: "user_profiles",
207
207
  WIDGET_URLS: "widget_urls"
208
- }, G = {
208
+ }, k = {
209
209
  ACCOUNTS_CLICK_SYNC: "accounts_widget_click_sync",
210
210
  ACCOUNTS_CLICK_CONNECT: "accounts_widget_click_connect_accounts",
211
211
  ACCOUNTS_CLICK_FILTER: "accounts_widget_click_filter_accounts",
@@ -746,7 +746,7 @@ const N7 = {
746
746
  [b.UNCATEGORIZED]: "category",
747
747
  UNKNOWN: "help"
748
748
  }, _r = 9999999999e-2;
749
- var Ft = /* @__PURE__ */ ((A) => (A.CAD = "CAD", A.USD = "USD", A))(Ft || {}), F = /* @__PURE__ */ ((A) => (A[A.Unknown = 0] = "Unknown", A[A.EveryWeek = 1] = "EveryWeek", A[A.EveryOtherWeek = 2] = "EveryOtherWeek", A[A.EveryMonth = 3] = "EveryMonth", A[A.EveryOtherMonth = 4] = "EveryOtherMonth", A[A.EveryQuarter = 5] = "EveryQuarter", A[A.EveryOtherQuarter = 6] = "EveryOtherQuarter", A[A.EveryYear = 7] = "EveryYear", A))(F || {});
749
+ var Ft = /* @__PURE__ */ ((A) => (A.CAD = "CAD", A.USD = "USD", A))(Ft || {}), G = /* @__PURE__ */ ((A) => (A[A.Unknown = 0] = "Unknown", A[A.EveryWeek = 1] = "EveryWeek", A[A.EveryOtherWeek = 2] = "EveryOtherWeek", A[A.EveryMonth = 3] = "EveryMonth", A[A.EveryOtherMonth = 4] = "EveryOtherMonth", A[A.EveryQuarter = 5] = "EveryQuarter", A[A.EveryOtherQuarter = 6] = "EveryOtherQuarter", A[A.EveryYear = 7] = "EveryYear", A))(G || {});
750
750
  const _7 = [
751
751
  { id: 0, copy: "frequency_unknown" },
752
752
  { id: 1, copy: "frequency_every_week" },
@@ -792,7 +792,7 @@ const ut = 44, Rr = (A, e) => A.find((n) => n.guid === e), Ys = (A, e) => A.find
792
792
  }, Js = (A, e) => {
793
793
  const n = A.find((r) => r.guid === e);
794
794
  return n ? n.guid === b.INCOME || n.parent_guid === b.INCOME : !1;
795
- }, Zs = /(?<static>.*?)(?<dynamic>(?:_\d+{(?:.*?)}))|(?<staticEnd>.+)/g, R = (A, ...e) => {
795
+ }, Zs = /(?<static>.*?)(?<dynamic>(?:_\d+{(?:.*?)}))|(?<staticEnd>.+)/g, _ = (A, ...e) => {
796
796
  if (!A) return "";
797
797
  const n = e.some((i) => typeof i != "string"), a = [...A.matchAll(Zs)].reduce(
798
798
  (i, o, s) => {
@@ -812,7 +812,7 @@ const ut = 44, Rr = (A, e) => A.find((n) => n.guid === e), Ys = (A, e) => A.find
812
812
  []
813
813
  );
814
814
  return n ? a : a.join("");
815
- }, z7 = (A, e, n, ...r) => !A || !e ? "" : R(n === 1 ? A : e, ...r), qe = () => (window?.app?.options?.language || document.querySelector("html")?.getAttribute("lang") || "en-US").toLowerCase();
815
+ }, z7 = (A, e, n, ...r) => !A || !e ? "" : _(n === 1 ? A : e, ...r), qe = () => (window?.app?.options?.language || document.querySelector("html")?.getAttribute("lang") || "en-US").toLowerCase();
816
816
  class UA {
817
817
  endpoint = "/";
818
818
  headers = {};
@@ -1166,13 +1166,13 @@ const yn = (A, e) => A.reduce((n, r) => (n[r.guid] = e?.includes(r.guid), n), {}
1166
1166
  return /* @__PURE__ */ t(Y, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(
1167
1167
  nA,
1168
1168
  {
1169
- "aria-label": R(n.accountTypeAccounts, E),
1169
+ "aria-label": _(n.accountTypeAccounts, E),
1170
1170
  className: "mx-cmn-account-options-group",
1171
1171
  dense: !0,
1172
1172
  subheader: /* @__PURE__ */ t(le, { disableGutters: !0, children: /* @__PURE__ */ t(
1173
1173
  dA,
1174
1174
  {
1175
- "aria-label": R(n.toggleAccountTypeAccounts, E),
1175
+ "aria-label": _(n.toggleAccountTypeAccounts, E),
1176
1176
  "aria-pressed": L,
1177
1177
  disableGutters: !0,
1178
1178
  onClick: () => a(
@@ -1561,7 +1561,7 @@ const cc = (A, e) => {
1561
1561
  selectedIndex: c,
1562
1562
  valueFormatter: h = (d) => `${d}`
1563
1563
  }) => {
1564
- const d = RA(), u = vc(d), C = r.reduce(mc, []), f = A !== void 0 ? A : C.reduce(Cc, 0) / C.length, m = Math.max(...C), v = Math.min(...C), E = C.reduce(fc, 0), S = m >= 0, L = v < 0, w = Fr(S, L, a), D = Fr(L, S, a), P = pc(f, m, v, w || D), _ = (N) => c === void 0 || N === c ? n : `${n}80`, x = () => /* @__PURE__ */ t(
1564
+ const d = RA(), u = vc(d), C = r.reduce(mc, []), f = A !== void 0 ? A : C.reduce(Cc, 0) / C.length, m = Math.max(...C), v = Math.min(...C), E = C.reduce(fc, 0), S = m >= 0, L = v < 0, w = Fr(S, L, a), D = Fr(L, S, a), P = pc(f, m, v, w || D), N = (R) => c === void 0 || R === c ? n : `${n}80`, x = () => /* @__PURE__ */ t(
1565
1565
  Gr,
1566
1566
  {
1567
1567
  averageLineHeight: P,
@@ -1576,27 +1576,27 @@ const cc = (A, e) => {
1576
1576
  return /* @__PURE__ */ l("div", { className: `mx-cmn-bar-chart ${u}`, children: [
1577
1577
  /* @__PURE__ */ l("div", { className: "mx-cmn-chart-container", children: [
1578
1578
  /* @__PURE__ */ t(x, {}),
1579
- r.map((N, X) => /* @__PURE__ */ l(g.Fragment, { children: [
1579
+ r.map((R, j) => /* @__PURE__ */ l(g.Fragment, { children: [
1580
1580
  /* @__PURE__ */ t(
1581
1581
  Gr,
1582
1582
  {
1583
- ariaLabel: N.ariaLabel,
1583
+ ariaLabel: R.ariaLabel,
1584
1584
  averageLineHeight: P,
1585
1585
  bottomHeight: D,
1586
- color: _(X),
1587
- index: X,
1586
+ color: N(j),
1587
+ index: j,
1588
1588
  onClick: s,
1589
1589
  range: E,
1590
1590
  selectedIndex: c,
1591
1591
  topHeight: w,
1592
- value: N.value,
1593
- valueLabel: h(N.value),
1592
+ value: R.value,
1593
+ valueLabel: h(R.value),
1594
1594
  width: e,
1595
- xAxisLabel: N.label
1595
+ xAxisLabel: R.label
1596
1596
  }
1597
1597
  ),
1598
1598
  /* @__PURE__ */ t(x, {})
1599
- ] }, `column-${X}`))
1599
+ ] }, `column-${j}`))
1600
1600
  ] }),
1601
1601
  /* @__PURE__ */ t(dc, { color: n, labelAverage: i, labelMain: o })
1602
1602
  ] });
@@ -1730,10 +1730,10 @@ const Tc = ({
1730
1730
  const m = g.useMemo(() => {
1731
1731
  const w = Eo({ start: yA(c), end: NA(c) }), D = [];
1732
1732
  for (let P = 0; P < w.length; P++) {
1733
- const _ = w[P], x = vo({ start: _, end: pe(_, 6) }), N = [];
1734
- for (let X = 0; X < x.length; X++)
1735
- N.push(x[X]);
1736
- D.push(N);
1733
+ const N = w[P], x = vo({ start: N, end: pe(N, 6) }), R = [];
1734
+ for (let j = 0; j < x.length; j++)
1735
+ R.push(x[j]);
1736
+ D.push(R);
1737
1737
  }
1738
1738
  return D;
1739
1739
  }, [c]), v = (w) => {
@@ -1763,7 +1763,7 @@ const Tc = ({
1763
1763
  }
1764
1764
  ),
1765
1765
  /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-header-row", children: m[0].map((w, D) => /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-header-cell", children: /* @__PURE__ */ t(p, { bold: !0, variant: "Small", children: XA(w, "EEEEE") }) }, D)) }),
1766
- m.map((w, D) => /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-week", children: w.map((P, _) => /* @__PURE__ */ t(
1766
+ m.map((w, D) => /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-week", children: w.map((P, N) => /* @__PURE__ */ t(
1767
1767
  bc,
1768
1768
  {
1769
1769
  beginDate: d,
@@ -1772,7 +1772,7 @@ const Tc = ({
1772
1772
  isInMonth: yo(P, c),
1773
1773
  onClick: v
1774
1774
  },
1775
- _
1775
+ N
1776
1776
  )) }, `w-${D}`)),
1777
1777
  /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-today-container", children: /* @__PURE__ */ t(sA, { onClick: E, size: "small", variant: "text", children: A.today }) })
1778
1778
  ] }) });
@@ -1965,16 +1965,16 @@ const Tc = ({
1965
1965
  valueFormatterString: f = "0,0",
1966
1966
  width: m
1967
1967
  }) => {
1968
- const v = re(), E = n.flat().map((N) => N.x), S = n.flat().map((N) => N.y), L = Math.round(S.reduce((N, X) => X + N, 0) / S.length), w = Math.floor(Math.min(...S) / 100) * 100, D = Math.ceil(Math.max(...S) / 100) * 100, P = w >= 0 ? w * 0.95 : w * 1.05, _ = D >= 0 ? D * 2 : D * 0.95, x = n.map((N, X) => ({
1968
+ const v = re(), E = n.flat().map((N) => N.x), S = n.flat().map((N) => N.y), L = Math.round(S.reduce((N, x) => x + N, 0) / S.length), w = Math.floor(Math.min(...S) / 100) * 100, D = Math.ceil(Math.max(...S) / 100) * 100, P = n.map((N, x) => ({
1969
1969
  type: c ? "bar" : "line",
1970
1970
  curve: "linear",
1971
- color: c ? v.palette.chart?.chart6 : e[X] ?? v.palette.primary.main,
1972
- data: N.map((q) => q.y),
1971
+ color: c ? v.palette.chart?.chart6 : e[x] ?? v.palette.primary.main,
1972
+ data: N.map((R) => R.y),
1973
1973
  area: h,
1974
1974
  baseline: A,
1975
1975
  showMark: !0,
1976
- label: a[X],
1977
- valueFormatter: (q) => z(q || 0, f)
1976
+ label: a[x],
1977
+ valueFormatter: (R) => z(R || 0, f)
1978
1978
  }));
1979
1979
  return /* @__PURE__ */ l("div", { style: { position: "relative" }, children: [
1980
1980
  /* @__PURE__ */ l(
@@ -1982,12 +1982,15 @@ const Tc = ({
1982
1982
  {
1983
1983
  height: r,
1984
1984
  margin: i,
1985
- series: x,
1985
+ series: P,
1986
1986
  sx: {
1987
1987
  p: 4,
1988
1988
  "& .MuiBarLabel-root": {
1989
1989
  fontSize: 10,
1990
1990
  fontWeight: 600
1991
+ },
1992
+ "& .MuiAreaElement-root": {
1993
+ opacity: 0.15
1991
1994
  }
1992
1995
  },
1993
1996
  width: m,
@@ -1998,8 +2001,8 @@ const Tc = ({
1998
2001
  max: D || 100,
1999
2002
  colorMap: h ? {
2000
2003
  type: "continuous",
2001
- min: P,
2002
- max: _,
2004
+ min: w,
2005
+ max: D,
2003
2006
  color: [v.palette.background.paper, e[0] ?? v.palette.primary.main]
2004
2007
  } : void 0,
2005
2008
  valueFormatter: (N) => z(N, f)
@@ -2010,7 +2013,7 @@ const Tc = ({
2010
2013
  /* @__PURE__ */ t(
2011
2014
  Po,
2012
2015
  {
2013
- slots: h && x.length < 2 ? {
2016
+ slots: h && P.length < 2 ? {
2014
2017
  line: (N) => /* @__PURE__ */ t(Nc, { ...N, lineColor: e[0] ?? v.palette.primary.main })
2015
2018
  } : void 0
2016
2019
  }
@@ -2072,7 +2075,7 @@ const Tc = ({
2072
2075
  _c,
2073
2076
  {
2074
2077
  average: L,
2075
- series: x,
2078
+ series: P,
2076
2079
  style: { position: "absolute", top: 16, left: 16 }
2077
2080
  }
2078
2081
  )
@@ -2119,7 +2122,7 @@ const Tc = ({
2119
2122
  /* @__PURE__ */ t(
2120
2123
  O,
2121
2124
  {
2122
- "aria-label": R(n.category_icon_label_aria, r),
2125
+ "aria-label": _(n.category_icon_label_aria, r),
2123
2126
  mb: 4,
2124
2127
  role: "img",
2125
2128
  children: /* @__PURE__ */ t(ne, { categoryGuid: e })
@@ -2174,9 +2177,9 @@ const Tc = ({
2174
2177
  /* @__PURE__ */ t(p, { variant: "Small", children: i.six_month_total }),
2175
2178
  /* @__PURE__ */ t(wA, { amount: d, bold: !0, formatString: "0,0", variant: "body2" })
2176
2179
  ] }),
2177
- /* @__PURE__ */ t(k, { sx: { my: 16, width: "100%" } }),
2180
+ /* @__PURE__ */ t(q, { sx: { my: 16, width: "100%" } }),
2178
2181
  /* @__PURE__ */ t(vt, { container: !0, children: n.map((u, C) => /* @__PURE__ */ l(g.Fragment, { children: [
2179
- C > 0 && C % 3 === 0 && /* @__PURE__ */ t(k, { sx: { my: 16, width: "100%" } }),
2182
+ C > 0 && C % 3 === 0 && /* @__PURE__ */ t(q, { sx: { my: 16, width: "100%" } }),
2180
2183
  /* @__PURE__ */ t(vt, { item: !0, xs: 4, children: /* @__PURE__ */ l(O, { alignItems: "center", display: "flex", flexDirection: "column", children: [
2181
2184
  /* @__PURE__ */ t(p, { color: o.palette.text.secondary, variant: "XSmall", children: $(String(u.x), Z.MONTH_SHORT) }),
2182
2185
  /* @__PURE__ */ t(
@@ -2266,11 +2269,11 @@ const Tc = ({
2266
2269
  hoveredAreaData: null,
2267
2270
  isAreaHovered: !1,
2268
2271
  cursorPos: { x: 0, y: 0 }
2269
- }), { hoveredSeriesId: v, hoveredAreaData: E, isAreaHovered: S, cursorPos: L } = f, w = S && v && E, D = !w, P = [...a, ...i], _ = P[0]?.dataset.length ?? 0, x = P.flatMap((K) => K.dataset.map((hA) => hA.x)), N = P.flatMap((K) => K.dataset.map((hA) => hA.y)), X = a[0]?.dataset?.map(
2272
+ }), { hoveredSeriesId: v, hoveredAreaData: E, isAreaHovered: S, cursorPos: L } = f, w = S && v && E, D = !w, P = [...a, ...i], N = P[0]?.dataset.length ?? 0, x = P.flatMap((K) => K.dataset.map((hA) => hA.x)), R = P.flatMap((K) => K.dataset.map((hA) => hA.y)), j = a[0]?.dataset?.map(
2270
2273
  (K, hA) => a.reduce((EA, Ee) => EA + Ee.dataset[hA]?.y || 0, 0)
2271
- ) ?? [0], q = Math.max(...X), j = Math.max(
2274
+ ) ?? [0], F = Math.max(...j), X = Math.max(
2272
2275
  ...i.flatMap((K) => K.dataset.map((hA) => hA.y))
2273
- ), Q = Math.floor(Math.min(...N) / 100) * 100, U = Math.ceil(Math.max(q, j) / 100) * 100, rA = a.map((K, hA) => ({
2276
+ ), Q = Math.floor(Math.min(...R) / 100) * 100, U = Math.ceil(Math.max(F, X) / 100) * 100, rA = a.map((K, hA) => ({
2274
2277
  id: `stacked-${hA}`,
2275
2278
  guid: K.category_guid,
2276
2279
  top_level_guid: K.top_level_category_guid,
@@ -2414,7 +2417,7 @@ const Tc = ({
2414
2417
  data: x,
2415
2418
  scaleType: "time",
2416
2419
  valueFormatter: (K) => $(K, Z.MONTH_SHORT_YEAR),
2417
- tickNumber: _
2420
+ tickNumber: N
2418
2421
  // How many ticks to show on the x-axis
2419
2422
  }
2420
2423
  ],
@@ -2644,7 +2647,7 @@ const Tc = ({
2644
2647
  toolTipContent: i = "",
2645
2648
  variant: o = "outlined"
2646
2649
  }) => {
2647
- const s = CA(), c = s.palette.mode === "dark", { isDesktop: h, isMobile: d } = MA(), [u, C] = g.useState(r), [f, m] = g.useState(n.dateRangePickerCopy.dateRangeThisMonth), [v, E] = g.useState(u), [S, L] = g.useState(!1), [w, D] = g.useState(!0), [P, _] = g.useState(6), x = {
2650
+ const s = CA(), c = s.palette.mode === "dark", { isDesktop: h, isMobile: d } = MA(), [u, C] = g.useState(r), [f, m] = g.useState(n.dateRangePickerCopy.dateRangeThisMonth), [v, E] = g.useState(u), [S, L] = g.useState(!1), [w, D] = g.useState(!0), [P, N] = g.useState(6), x = {
2648
2651
  buttons: [
2649
2652
  { label: "3M", value: 3 },
2650
2653
  { label: "6M", value: 6 },
@@ -2661,12 +2664,12 @@ const Tc = ({
2661
2664
  g.useEffect(() => {
2662
2665
  E(r);
2663
2666
  }, [r]), g.useEffect(() => {
2664
- (o === "timeframebuttons" || o === "timeframetabs") && A.onRangeChanged(N());
2667
+ (o === "timeframebuttons" || o === "timeframetabs") && A.onRangeChanged(R());
2665
2668
  }, [P]);
2666
- const N = () => {
2669
+ const R = () => {
2667
2670
  const Q = NA(Ue());
2668
2671
  return [NA(ce(Q, P)), Q];
2669
- }, X = (Q) => {
2672
+ }, j = (Q) => {
2670
2673
  const U = [...u], rA = u[0], gA = u[1], cA = Q === "previous";
2671
2674
  if (f === n.dateRangePickerCopy.dateRangeThisMonth)
2672
2675
  U[0] = cA ? ce(rA, 1) : ee(rA, 1), U[1] = NA(cA ? ce(gA, 1) : ee(gA, 1));
@@ -2677,12 +2680,12 @@ const Tc = ({
2677
2680
  U[0] = Q === "previous" ? de(rA, vA) : pe(rA, vA), U[1] = Q === "previous" ? de(gA, vA) : pe(gA, vA);
2678
2681
  }
2679
2682
  C(U), A.onRangeChanged(U);
2680
- }, q = () => {
2683
+ }, F = () => {
2681
2684
  C(v), D(
2682
2685
  f === n.dateRangePickerCopy.dateRangeThisMonth || f === n.dateRangePickerCopy.dateRangeLastMonth
2683
2686
  ), A.onRangeChanged(v);
2684
- }, j = (Q) => {
2685
- _(Q);
2687
+ }, X = (Q) => {
2688
+ N(Q);
2686
2689
  };
2687
2690
  return /* @__PURE__ */ l(O, { className: "mx-cmn-date-range-selector", m: 4, children: [
2688
2691
  /* @__PURE__ */ t(
@@ -2738,7 +2741,7 @@ const Tc = ({
2738
2741
  "aria-disabled": A.shouldDisablePrevious,
2739
2742
  "aria-label": n.dateRangePreviousAria,
2740
2743
  color: A.shouldDisablePrevious ? "secondary" : "primary",
2741
- onClick: () => A.shouldDisablePrevious ? null : X("previous"),
2744
+ onClick: () => A.shouldDisablePrevious ? null : j("previous"),
2742
2745
  children: /* @__PURE__ */ t(M, { name: "chevron_left", size: 28 })
2743
2746
  }
2744
2747
  ),
@@ -2767,7 +2770,7 @@ const Tc = ({
2767
2770
  "aria-disabled": A.shouldDisableNext,
2768
2771
  "aria-label": n.dateRangeNextAria,
2769
2772
  color: A.shouldDisableNext ? "secondary" : "primary",
2770
- onClick: () => A.shouldDisableNext ? null : X("next"),
2773
+ onClick: () => A.shouldDisableNext ? null : j("next"),
2771
2774
  children: /* @__PURE__ */ t(M, { name: "chevron_right", size: 28 })
2772
2775
  }
2773
2776
  )
@@ -2784,7 +2787,7 @@ const Tc = ({
2784
2787
  children: x.buttons.map((Q) => /* @__PURE__ */ t(
2785
2788
  Kn,
2786
2789
  {
2787
- onClick: () => j(Q.value),
2790
+ onClick: () => X(Q.value),
2788
2791
  sx: {
2789
2792
  fontSize: 15,
2790
2793
  fontWeight: 600,
@@ -2819,7 +2822,7 @@ const Tc = ({
2819
2822
  Oe,
2820
2823
  {
2821
2824
  indicatorColor: "primary",
2822
- onChange: (Q, U) => j(U),
2825
+ onChange: (Q, U) => X(U),
2823
2826
  textColor: "primary",
2824
2827
  value: P,
2825
2828
  variant: "fullWidth",
@@ -2844,7 +2847,7 @@ const Tc = ({
2844
2847
  isOpen: S,
2845
2848
  onClose: () => L(!1),
2846
2849
  onPrimaryAction: () => {
2847
- q(), L(!1);
2850
+ F(), L(!1);
2848
2851
  },
2849
2852
  primaryText: n.dateRangeEditApply,
2850
2853
  title: n.dateRangeEditTitle,
@@ -2868,7 +2871,7 @@ const Tc = ({
2868
2871
  copy: { title: n.dateRangeEditTitle },
2869
2872
  isOpen: !0,
2870
2873
  onClose: () => L(!1),
2871
- onPrimaryAction: () => q(),
2874
+ onPrimaryAction: () => F(),
2872
2875
  primaryText: n.dateRangeEditApply,
2873
2876
  sx: {
2874
2877
  "& .MuiDialogContent-root": {
@@ -3083,9 +3086,9 @@ const Ye = ({
3083
3086
  sx: u = {},
3084
3087
  title: C = ""
3085
3088
  }) => {
3086
- const [f, { height: m, width: v }] = fi(), { onEvent: E } = V(), { isDesktop: S, isMobile: L, isTablet: w } = MA(), { displayedDateRange: D, selectedAccountGuids: P, setSelectedAccountGuids: _ } = fA(), { common: x } = I(), N = () => {
3087
- c && (c(), E(G.WIDGET_BACK_CLICK));
3088
- }, X = {
3089
+ const [f, { height: m, width: v }] = fi(), { onEvent: E } = V(), { isDesktop: S, isMobile: L, isTablet: w } = MA(), { displayedDateRange: D, selectedAccountGuids: P, setSelectedAccountGuids: N } = fA(), { common: x } = I(), R = () => {
3090
+ c && (c(), E(k.WIDGET_BACK_CLICK));
3091
+ }, j = {
3089
3092
  accountFilterOptionsCopy: {
3090
3093
  accountTypeAccounts: x.account_filter.account_type_accounts,
3091
3094
  cancelButton: x.cancel_button,
@@ -3099,7 +3102,7 @@ const Ye = ({
3099
3102
  zeroStateTitle: x.account_filter.zero_state_title
3100
3103
  },
3101
3104
  title: x.account_filter.title
3102
- }, q = {
3105
+ }, F = {
3103
3106
  dateRangePickerCopy: {
3104
3107
  dateRangeFrom: x.date_range_picker.from,
3105
3108
  dateRangeTo: x.date_range_picker.to,
@@ -3117,7 +3120,7 @@ const Ye = ({
3117
3120
  dateRangeEditTitle: x.date_range_picker.edit_title,
3118
3121
  dateRangeNextAria: x.date_range_picker.next_aria,
3119
3122
  dateRangePreviousAria: x.date_range_picker.previous_aria
3120
- }, j = a ? a.start : D.start, Q = a ? a.end : D.end;
3123
+ }, X = a ? a.start : D.start, Q = a ? a.end : D.end;
3121
3124
  return /* @__PURE__ */ l(
3122
3125
  ve,
3123
3126
  {
@@ -3143,8 +3146,8 @@ const Ye = ({
3143
3146
  Xr,
3144
3147
  {
3145
3148
  calendarActions: n,
3146
- copy: q,
3147
- range: [j, Q],
3149
+ copy: F,
3150
+ range: [X, Q],
3148
3151
  shouldShrinkToIcon: !1,
3149
3152
  variant: i
3150
3153
  }
@@ -3153,10 +3156,10 @@ const Ye = ({
3153
3156
  si,
3154
3157
  {
3155
3158
  accounts: A,
3156
- copy: X,
3159
+ copy: j,
3157
3160
  onFilterClick: (U) => {
3158
3161
  const rA = A.filter((gA) => U.includes(gA.guid)).map((gA) => gA.guid);
3159
- _(rA), h?.();
3162
+ N(rA), h?.();
3160
3163
  },
3161
3164
  selectedAccountGuids: P,
3162
3165
  showAccountNumbers: !1,
@@ -3200,7 +3203,7 @@ const Ye = ({
3200
3203
  KA,
3201
3204
  {
3202
3205
  "aria-label": x.back_to_dashboard,
3203
- onClick: N,
3206
+ onClick: R,
3204
3207
  sx: { ml: -16, mr: 16 },
3205
3208
  children: /* @__PURE__ */ t(M, { name: "arrow_back" })
3206
3209
  }
@@ -3209,15 +3212,15 @@ const Ye = ({
3209
3212
  ] })
3210
3213
  }
3211
3214
  ),
3212
- s && /* @__PURE__ */ t(k, { sx: { mt: S ? 48 : 24 } }),
3215
+ s && /* @__PURE__ */ t(q, { sx: { mt: S ? 48 : 24 } }),
3213
3216
  n && (L || w) && /* @__PURE__ */ l(y, { gap: 24, justifyContent: "center", sx: { mt: 16 }, children: [
3214
- d && /* @__PURE__ */ t(k, {}),
3217
+ d && /* @__PURE__ */ t(q, {}),
3215
3218
  /* @__PURE__ */ t(
3216
3219
  Xr,
3217
3220
  {
3218
3221
  calendarActions: n,
3219
- copy: q,
3220
- range: [j, Q],
3222
+ copy: F,
3223
+ range: [X, Q],
3221
3224
  shouldShrinkToIcon: !1,
3222
3225
  variant: i
3223
3226
  }
@@ -3314,7 +3317,7 @@ const jr = "connect_widget", Qr = "connections_widget", Yc = ({
3314
3317
  }) => {
3315
3318
  const [C, f] = g.useState(""), { common: m } = I(), v = a || m.currency_input, E = RA(), S = Vc(E), L = /^[0-9]*$/, w = /^(\d)*(\,)?([0-9]{1,2})?$/, D = /^(\d)*(\.)?([0-9]{1,2})?$/;
3316
3319
  let P;
3317
- const _ = g.useRef(Wo());
3320
+ const N = g.useRef(Wo());
3318
3321
  if (A)
3319
3322
  switch ($s()) {
3320
3323
  case Ft.CAD:
@@ -3329,18 +3332,18 @@ const jr = "connect_widget", Qr = "connections_widget", Yc = ({
3329
3332
  g.useEffect(() => {
3330
3333
  x(n);
3331
3334
  }, [n]);
3332
- const x = (N) => {
3333
- !r && (N === "" || N === "." || N === ",") ? (f(""), d?.(!1)) : Number(N) < c ? (f(
3334
- R(
3335
+ const x = (R) => {
3336
+ !r && (R === "" || R === "." || R === ",") ? (f(""), d?.(!1)) : Number(R) < c ? (f(
3337
+ _(
3335
3338
  v.error_amount_must_be_equal_to,
3336
3339
  z(c, "0")
3337
3340
  )
3338
- ), d?.(!1)) : Number(N) > _r ? (f(
3339
- R(
3341
+ ), d?.(!1)) : Number(R) > _r ? (f(
3342
+ _(
3340
3343
  v.error_amount_must_be_less_than_or_equal_to,
3341
3344
  z(_r, A ? "0,0.00" : "0,0", Math.floor)
3342
3345
  )
3343
- ), d?.(!1)) : N.toString().match(P) ? i() ? (f(""), d?.(!0)) : (f(o), d?.(!1)) : (f(v.error_amount_is_invalid), d?.(!1)), h(N.toString());
3346
+ ), d?.(!1)) : R.toString().match(P) ? i() ? (f(""), d?.(!0)) : (f(o), d?.(!1)) : (f(v.error_amount_is_invalid), d?.(!1)), h(R.toString());
3344
3347
  };
3345
3348
  return /* @__PURE__ */ t(
3346
3349
  Be,
@@ -3359,8 +3362,8 @@ const jr = "connect_widget", Qr = "connections_widget", Yc = ({
3359
3362
  pattern: "[0-9]*"
3360
3363
  },
3361
3364
  label: s,
3362
- name: `currency-input-${_.current}`,
3363
- onChange: (N) => x(N.target.value),
3365
+ name: `currency-input-${N.current}`,
3366
+ onChange: (R) => x(R.target.value),
3364
3367
  value: n,
3365
3368
  ...u
3366
3369
  }
@@ -3669,7 +3672,7 @@ const Yr = (A, e) => !A && !e ? 0 : !A && e ? 101 : e / A * 100, Vr = (A, e) =>
3669
3672
  ...i,
3670
3673
  budgetColors: Vr(c, r),
3671
3674
  category: o,
3672
- description: R(
3675
+ description: _(
3673
3676
  h < 0 ? n.budget_remaining_over : n.budget_remaining_left,
3674
3677
  z(Math.abs(h), "0,0")
3675
3678
  ),
@@ -3688,7 +3691,7 @@ const Yr = (A, e) => !A && !e ? 0 : !A && e ? 101 : e / A * 100, Vr = (A, e) =>
3688
3691
  ...i,
3689
3692
  budgetColors: Vr(d, r),
3690
3693
  category: o,
3691
- description: R(
3694
+ description: _(
3692
3695
  h < 0 ? n.budget_remaining_over : n.budget_remaining_left,
3693
3696
  z(Math.abs(h), "0,0")
3694
3697
  ),
@@ -3872,7 +3875,7 @@ const st = () => {
3872
3875
  children: [
3873
3876
  /* @__PURE__ */ l(y, { pb: 14, pt: 12, children: [
3874
3877
  /* @__PURE__ */ t(wA, { amount: E, variant: "H2" }),
3875
- /* @__PURE__ */ t(zA, { variant: "XSmall", whiteSpace: "nowrap", children: R(
3878
+ /* @__PURE__ */ t(zA, { variant: "XSmall", whiteSpace: "nowrap", children: _(
3876
3879
  o.total_cash_accounts,
3877
3880
  d.length
3878
3881
  ) })
@@ -3880,7 +3883,7 @@ const st = () => {
3880
3883
  /* @__PURE__ */ t(y, { pt: 18, children: /* @__PURE__ */ t(M, { name: "remove" }) }),
3881
3884
  /* @__PURE__ */ l(y, { pb: 14, pt: 12, children: [
3882
3885
  /* @__PURE__ */ t(wA, { amount: S, variant: "H2" }),
3883
- /* @__PURE__ */ t(zA, { variant: "XSmall", whiteSpace: "nowrap", children: R(o.expenses_due, h.length) })
3886
+ /* @__PURE__ */ t(zA, { variant: "XSmall", whiteSpace: "nowrap", children: _(o.expenses_due, h.length) })
3884
3887
  ] }),
3885
3888
  /* @__PURE__ */ t(y, { pt: 18, children: /* @__PURE__ */ t(M, { name: "equals" }) }),
3886
3889
  /* @__PURE__ */ l(y, { pb: 14, pr: 24, pt: 12, children: [
@@ -3891,7 +3894,7 @@ const st = () => {
3891
3894
  ] })
3892
3895
  ] }),
3893
3896
  /* @__PURE__ */ t(y, { borderLeft: `1px solid ${e.palette.border.light}`, pb: 12, pl: 24, pt: 12, children: w ? /* @__PURE__ */ l(eA, { children: [
3894
- /* @__PURE__ */ t(p, { variant: "H2", children: R(o.days, c) }),
3897
+ /* @__PURE__ */ t(p, { variant: "H2", children: _(o.days, c) }),
3895
3898
  /* @__PURE__ */ t(zA, { variant: "XSmall", whiteSpace: "nowrap", children: o.next_paycheck })
3896
3899
  ] }) : /* @__PURE__ */ t(
3897
3900
  sA,
@@ -3906,18 +3909,18 @@ const st = () => {
3906
3909
  }
3907
3910
  ) : /* @__PURE__ */ l(y, { border: `1px solid ${e.palette.border.light}`, borderRadius: 1, children: [
3908
3911
  /* @__PURE__ */ l(y, { direction: "row", justifyContent: "space-between", p: 16, children: [
3909
- /* @__PURE__ */ t(p, { variant: "Small", children: R(
3912
+ /* @__PURE__ */ t(p, { variant: "Small", children: _(
3910
3913
  o.total_cash_accounts,
3911
3914
  d.length
3912
3915
  ) }),
3913
3916
  /* @__PURE__ */ t(wA, { amount: a, bold: !0, variant: "XSmall" })
3914
3917
  ] }),
3915
- /* @__PURE__ */ t(k, {}),
3918
+ /* @__PURE__ */ t(q, {}),
3916
3919
  /* @__PURE__ */ l(y, { direction: "row", justifyContent: "space-between", p: 16, children: [
3917
- /* @__PURE__ */ t(p, { variant: "Small", children: R(o.expenses_due, h.length) }),
3920
+ /* @__PURE__ */ t(p, { variant: "Small", children: _(o.expenses_due, h.length) }),
3918
3921
  /* @__PURE__ */ t(wA, { amount: S, bold: !0, symbol: "-", variant: "XSmall" })
3919
3922
  ] }),
3920
- /* @__PURE__ */ t(k, {}),
3923
+ /* @__PURE__ */ t(q, {}),
3921
3924
  /* @__PURE__ */ t(
3922
3925
  y,
3923
3926
  {
@@ -3932,10 +3935,10 @@ const st = () => {
3932
3935
  children: /* @__PURE__ */ t(ar, { remaining: L })
3933
3936
  }
3934
3937
  ),
3935
- /* @__PURE__ */ t(k, {}),
3938
+ /* @__PURE__ */ t(q, {}),
3936
3939
  w ? /* @__PURE__ */ l(y, { direction: "row", justifyContent: "space-between", p: 16, children: [
3937
3940
  /* @__PURE__ */ t(p, { variant: "Small", children: o.next_paycheck }),
3938
- /* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: R(o.days, c) })
3941
+ /* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: _(o.days, c) })
3939
3942
  ] }) : /* @__PURE__ */ l(
3940
3943
  y,
3941
3944
  {
@@ -4804,7 +4807,7 @@ const ZA = () => {
4804
4807
  u(S.guid);
4805
4808
  return;
4806
4809
  }
4807
- C(G.ACCOUNT_DETAILS_CLICK_TRANSACTION, {
4810
+ C(k.ACCOUNT_DETAILS_CLICK_TRANSACTION, {
4808
4811
  account_guid: S?.account_guid,
4809
4812
  transaction_guid: E
4810
4813
  }), r?.(E);
@@ -4840,7 +4843,7 @@ const ZA = () => {
4840
4843
  children: [
4841
4844
  L && /* @__PURE__ */ t(sr, { bgcolor: A, children: rn(S.date) }),
4842
4845
  /* @__PURE__ */ t(or, { onClick: f, transaction: S }),
4843
- /* @__PURE__ */ t(k, { sx: { ml: w ? 24 : 0 } })
4846
+ /* @__PURE__ */ t(q, { sx: { ml: w ? 24 : 0 } })
4844
4847
  ]
4845
4848
  },
4846
4849
  S.guid
@@ -5032,12 +5035,12 @@ const Gl = ({
5032
5035
  h = s.add_subcategory_title;
5033
5036
  break;
5034
5037
  case "edit":
5035
- h = R(s.edit_subcategory_title, A);
5038
+ h = _(s.edit_subcategory_title, A);
5036
5039
  break;
5037
5040
  case "delete":
5038
- h = s.delete_subcategory_heading, d = R(
5041
+ h = s.delete_subcategory_heading, d = _(
5039
5042
  s.all_transactions_in_this_subcategory,
5040
- /* @__PURE__ */ t(p, { bold: !0, children: R(s.all_parent_category, A) })
5043
+ /* @__PURE__ */ t(p, { bold: !0, children: _(s.all_parent_category, A) })
5041
5044
  );
5042
5045
  break;
5043
5046
  }
@@ -5179,7 +5182,7 @@ const Gl = ({
5179
5182
  /* @__PURE__ */ t(
5180
5183
  KA,
5181
5184
  {
5182
- "aria-label": R(h.edit_subcategory_aria, e.name),
5185
+ "aria-label": _(h.edit_subcategory_aria, e.name),
5183
5186
  onClick: () => {
5184
5187
  C(!0), i(!0), d(se.ON_SUBCATEGORY_EDIT_CLICK);
5185
5188
  },
@@ -5189,7 +5192,7 @@ const Gl = ({
5189
5192
  /* @__PURE__ */ t(
5190
5193
  KA,
5191
5194
  {
5192
- "aria-label": R(h.delete_subcategory_aria, e.name),
5195
+ "aria-label": _(h.delete_subcategory_aria, e.name),
5193
5196
  edge: "end",
5194
5197
  onClick: () => {
5195
5198
  m(!0), i(!0), d(se.ON_SUBCATEGORY_DELETE_CLICK);
@@ -5236,7 +5239,7 @@ const Gl = ({
5236
5239
  children: [
5237
5240
  A.map((o) => /* @__PURE__ */ l(g.Fragment, { children: [
5238
5241
  /* @__PURE__ */ t(Vl, { parentCategory: e, subCategory: o }),
5239
- /* @__PURE__ */ t(k, { sx: { ml: 58 } })
5242
+ /* @__PURE__ */ t(q, { sx: { ml: 58 } })
5240
5243
  ] }, o.guid)),
5241
5244
  !i && /* @__PURE__ */ t(Xl, { parentCategory: e })
5242
5245
  ]
@@ -5272,7 +5275,7 @@ const Gl = ({
5272
5275
  },
5273
5276
  A.guid
5274
5277
  ) }),
5275
- /* @__PURE__ */ t(k, { sx: { ml: 58 } }),
5278
+ /* @__PURE__ */ t(q, { sx: { ml: 58 } }),
5276
5279
  /* @__PURE__ */ t(Zl, { categories: e, parentCategory: A })
5277
5280
  ] });
5278
5281
  }, Ei = T($l), Ad = () => {
@@ -5281,7 +5284,7 @@ const Gl = ({
5281
5284
  const d = [
5282
5285
  {
5283
5286
  ...c,
5284
- name: R(n.all_parent_category, c.name),
5287
+ name: _(n.all_parent_category, c.name),
5285
5288
  parent_guid: c.guid
5286
5289
  },
5287
5290
  ...i
@@ -5556,7 +5559,7 @@ class cd {
5556
5559
  }
5557
5560
  const bi = ({ transaction: A }) => {
5558
5561
  const { addOrUpdateTransactionRule: e, updateTransaction: n } = uA(), { categories: r } = PA(), { onEvent: a } = V(), { setShouldDisableDrawerScroll: i, updateManualTransaction: o } = ZA(), { transactions: s } = I(), [c, h] = g.useState(!1), [d, u] = g.useState(""), C = async (E) => {
5559
- await n({ ...A, category_guid: d }), E && await e(d, A), u(""), a(G.TRANSACTION_DETAILS_CLICK_CATEGORY, {
5562
+ await n({ ...A, category_guid: d }), E && await e(d, A), u(""), a(k.TRANSACTION_DETAILS_CLICK_CATEGORY, {
5560
5563
  transaction_guid: A.guid
5561
5564
  });
5562
5565
  }, f = (E) => {
@@ -5620,7 +5623,7 @@ const bi = ({ transaction: A }) => {
5620
5623
  DA,
5621
5624
  {
5622
5625
  copy: {
5623
- title: R(
5626
+ title: _(
5624
5627
  s.actions_apply_to_all_transaction_types,
5625
5628
  A.description
5626
5629
  )
@@ -5631,7 +5634,7 @@ const bi = ({ transaction: A }) => {
5631
5634
  onSecondaryAction: () => C(!1),
5632
5635
  primaryText: s.actions_apply_to_all,
5633
5636
  secondaryText: s.actions_this_time_only,
5634
- children: /* @__PURE__ */ t(p, { children: R(
5637
+ children: /* @__PURE__ */ t(p, { children: _(
5635
5638
  s.actions_all_past_and_future,
5636
5639
  A.description,
5637
5640
  v?.name
@@ -5647,7 +5650,7 @@ const bi = ({ transaction: A }) => {
5647
5650
  a({ ...A, date: h }), c(!1);
5648
5651
  return;
5649
5652
  }
5650
- await r({ ...A, date: h }), n(G.TRANSACTION_DETAILS_CLICK_DATE, { transaction_guid: A.guid }), c(!1);
5653
+ await r({ ...A, date: h }), n(k.TRANSACTION_DETAILS_CLICK_DATE, { transaction_guid: A.guid }), c(!1);
5651
5654
  };
5652
5655
  return /* @__PURE__ */ l(O, { className: "mx-txn-date-action", children: [
5653
5656
  /* @__PURE__ */ t(Y, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
@@ -5738,7 +5741,7 @@ const bi = ({ transaction: A }) => {
5738
5741
  ] });
5739
5742
  }, dd = T(ld), ud = ({ transaction: A }) => {
5740
5743
  const { onEvent: e } = V(), { updateTransaction: n } = uA(), { setShouldDisableDrawerScroll: r } = ZA(), { common: a, transactions: i } = I(), [o, s] = g.useState(!1), c = async () => {
5741
- await n({ ...A, merchant_guid: "" }), e(G.TRANSACTION_DETAILS_CLICK_DELETE_LOGO, {
5744
+ await n({ ...A, merchant_guid: "" }), e(k.TRANSACTION_DETAILS_CLICK_DELETE_LOGO, {
5742
5745
  transaction_guid: A.guid
5743
5746
  });
5744
5747
  };
@@ -5875,7 +5878,7 @@ const bi = ({ transaction: A }) => {
5875
5878
  r({ ...A, memo: c }), s(!1);
5876
5879
  return;
5877
5880
  }
5878
- await n({ ...A, memo: c }), e(G.TRANSACTION_DETAILS_CLICK_MEMO, { transaction_guid: A.guid }), s(!1);
5881
+ await n({ ...A, memo: c }), e(k.TRANSACTION_DETAILS_CLICK_MEMO, { transaction_guid: A.guid }), s(!1);
5879
5882
  };
5880
5883
  return /* @__PURE__ */ l("div", { className: "mx-txn-memo-action", children: [
5881
5884
  /* @__PURE__ */ t(Y, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
@@ -6038,7 +6041,7 @@ const bi = ({ transaction: A }) => {
6038
6041
  const o = RA(), { transactions: s } = I(), { onEvent: c } = V(), [h, d] = g.useState("");
6039
6042
  return g.useEffect(() => {
6040
6043
  d(a.length <= 1 ? s.split_transaction_errors_min_splits : ""), d(
6041
- a[0].amount < 0 ? R(
6044
+ a[0].amount < 0 ? _(
6042
6045
  s.split_transaction_errors_totals_must_equal_amount,
6043
6046
  z(i.amount, "0,0.00")
6044
6047
  ) : ""
@@ -6096,48 +6099,48 @@ const bi = ({ transaction: A }) => {
6096
6099
  parent_guid: A.guid,
6097
6100
  top_level_category_guid: void 0
6098
6101
  }, [d, u] = g.useState(!1), [C, f] = g.useState(!1), [m, v] = g.useState([]), E = () => {
6099
- const X = [...m];
6100
- X.push({ ...h }), X[0].amount -= 1, v(X);
6101
- }, S = (X) => {
6102
- if (X > 0) {
6103
- const q = m[X], j = [...m];
6104
- j.splice(X, 1), j[0].amount += q.amount, v(j);
6105
- }
6106
- }, L = (X, q) => {
6107
6102
  const j = [...m];
6108
- j[X].amount = q, j[0].amount = A.amount - j.reduce(
6103
+ j.push({ ...h }), j[0].amount -= 1, v(j);
6104
+ }, S = (j) => {
6105
+ if (j > 0) {
6106
+ const F = m[j], X = [...m];
6107
+ X.splice(j, 1), X[0].amount += F.amount, v(X);
6108
+ }
6109
+ }, L = (j, F) => {
6110
+ const X = [...m];
6111
+ X[j].amount = F, X[0].amount = A.amount - X.reduce(
6109
6112
  (Q, U, rA) => Q + (rA !== 0 ? U.amount : 0),
6110
6113
  0
6111
- ), v(j);
6112
- }, w = (X, q) => {
6113
- const j = [...m], Q = s.find((U) => U.guid === q);
6114
- Q && (j[X] = {
6115
- ...j[X],
6116
- category_guid: q,
6114
+ ), v(X);
6115
+ }, w = (j, F) => {
6116
+ const X = [...m], Q = s.find((U) => U.guid === F);
6117
+ Q && (X[j] = {
6118
+ ...X[j],
6119
+ category_guid: F,
6117
6120
  category: Q.name,
6118
- top_level_category_guid: Q.parent_guid || q
6119
- }, v(j));
6121
+ top_level_category_guid: Q.parent_guid || F
6122
+ }, v(X));
6120
6123
  }, D = () => {
6121
6124
  if (A.parent_guid || A.has_been_split) {
6122
6125
  f(!0);
6123
6126
  return;
6124
6127
  }
6125
- v([{ ...c }, { ...h }]), e(G.TRANSACTION_DETAILS_CLICK_SPLIT, {
6128
+ v([{ ...c }, { ...h }]), e(k.TRANSACTION_DETAILS_CLICK_SPLIT, {
6126
6129
  transaction_guid: A.guid
6127
6130
  }), u(!0);
6128
6131
  }, P = async () => {
6129
6132
  e(B.ON_TRANSACTION_SPLIT_SAVE_CLICK), await n({ ...A, has_been_split: !0 }, m), u(!1);
6130
- }, _ = async () => {
6133
+ }, N = async () => {
6131
6134
  e(B.ON_TRANSACTION_SPLIT_CANCEL_CLICK), v([{ ...c }, { ...h }]), u(!1);
6132
6135
  }, x = async () => {
6133
- e(G.TRANSACTION_DETAILS_CLICK_UNSPLIT, {
6136
+ e(k.TRANSACTION_DETAILS_CLICK_UNSPLIT, {
6134
6137
  transaction_guid: A.guid
6135
6138
  });
6136
- const X = A.parent_guid ?? A.guid;
6137
- await r(X);
6138
- }, N = g.useMemo(() => {
6139
- const X = m.some((j) => !j.category_guid), q = m.some((j) => j.amount <= 0);
6140
- return X || q;
6139
+ const j = A.parent_guid ?? A.guid;
6140
+ await r(j);
6141
+ }, R = g.useMemo(() => {
6142
+ const j = m.some((X) => !X.category_guid), F = m.some((X) => X.amount <= 0);
6143
+ return j || F;
6141
6144
  }, [m]);
6142
6145
  return /* @__PURE__ */ l(g.Fragment, { children: [
6143
6146
  A && /* @__PURE__ */ t(Y, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(dA, { onClick: D, children: [
@@ -6156,8 +6159,8 @@ const bi = ({ transaction: A }) => {
6156
6159
  {
6157
6160
  ariaLabelClose: a.close_aria,
6158
6161
  isOpen: d,
6159
- isPrimaryDisabled: N,
6160
- onClose: _,
6162
+ isPrimaryDisabled: R,
6163
+ onClose: N,
6161
6164
  onPrimaryAction: P,
6162
6165
  primaryText: a.save_button,
6163
6166
  secondaryText: a.cancel_button,
@@ -6192,7 +6195,7 @@ const bi = ({ transaction: A }) => {
6192
6195
  },
6193
6196
  primaryText: a.delete_button,
6194
6197
  secondaryText: a.cancel_button,
6195
- children: /* @__PURE__ */ t(p, { variant: "Paragraph", children: R(
6198
+ children: /* @__PURE__ */ t(p, { variant: "Paragraph", children: _(
6196
6199
  i.split_transaction_unsplit_description,
6197
6200
  A.description
6198
6201
  ) })
@@ -6395,7 +6398,7 @@ const bi = ({ transaction: A }) => {
6395
6398
  /* @__PURE__ */ t(Sd, {}),
6396
6399
  /* @__PURE__ */ t(fe, { sx: { boxShadow: "none" }, children: /* @__PURE__ */ t(nA, { children: i.map((o) => /* @__PURE__ */ l(g.Fragment, { children: [
6397
6400
  /* @__PURE__ */ t(Dd, { onTagChecked: e, selectedTags: A, tag: o }),
6398
- /* @__PURE__ */ t(k, { sx: { ml: 24 } })
6401
+ /* @__PURE__ */ t(q, { sx: { ml: 24 } })
6399
6402
  ] }, o.guid)) }) })
6400
6403
  ] });
6401
6404
  }, xd = T(Od), Pd = ({ transaction: A }) => {
@@ -6411,7 +6414,7 @@ const bi = ({ transaction: A }) => {
6411
6414
  s({ ...A, tags: d }), h(!1);
6412
6415
  return;
6413
6416
  }
6414
- await r(d, A.guid), await a({ ...A }), e(G.TRANSACTION_DETAILS_CLICK_TAGS, { transaction_guid: A.guid }), h(!1);
6417
+ await r(d, A.guid), await a({ ...A }), e(k.TRANSACTION_DETAILS_CLICK_TAGS, { transaction_guid: A.guid }), h(!1);
6415
6418
  }, m = g.useMemo(
6416
6419
  () => A.tags.map(
6417
6420
  (v, E, S) => `${n.find((L) => L.guid === v)?.name}${E < S.length - 1 ? " / " : ""}`
@@ -6459,7 +6462,7 @@ const bi = ({ transaction: A }) => {
6459
6462
  i && (c(A.description), h?.current?.focus());
6460
6463
  }, [i]);
6461
6464
  const d = async () => {
6462
- a(G.TRANSACTION_DETAILS_CLICK_DESCRIPTION, {
6465
+ a(k.TRANSACTION_DETAILS_CLICK_DESCRIPTION, {
6463
6466
  transaction_guid: A.guid
6464
6467
  }), await e({ ...A, description: s }), o(!1);
6465
6468
  };
@@ -6506,7 +6509,7 @@ const bi = ({ transaction: A }) => {
6506
6509
  ] }) });
6507
6510
  }, Md = T(Nd), _d = ({ transaction: A }) => {
6508
6511
  const { updateTransaction: e } = uA(), { transactions: n } = I(), { onEvent: r } = V(), a = CA(), i = async () => {
6509
- r(G.TRANSACTION_DETAILS_CLICK_FLAG, { transaction_guid: A.guid }), await e({ ...A, is_flagged: !A.is_flagged });
6512
+ r(k.TRANSACTION_DETAILS_CLICK_FLAG, { transaction_guid: A.guid }), await e({ ...A, is_flagged: !A.is_flagged });
6510
6513
  };
6511
6514
  return /* @__PURE__ */ t("div", { className: "mx-txn-transaction-flag", children: /* @__PURE__ */ t(
6512
6515
  Kn,
@@ -6543,7 +6546,7 @@ const bi = ({ transaction: A }) => {
6543
6546
  }) => {
6544
6547
  const r = RA(), a = n?.number && n.number.length > 4, { onEvent: i } = V();
6545
6548
  return g.useEffect(
6546
- () => i(G.TRANSACTION_DETAILS_VIEW, { transaction_guid: n.guid }),
6549
+ () => i(k.TRANSACTION_DETAILS_VIEW, { transaction_guid: n.guid }),
6547
6550
  []
6548
6551
  ), /* @__PURE__ */ t(O, { className: "mx-txn-transaction-details", width: "100%", children: n && /* @__PURE__ */ l(y, { children: [
6549
6552
  /* @__PURE__ */ l(y, { gap: r.Spacing.Small, p: r.Spacing.Large, children: [
@@ -6583,7 +6586,7 @@ const bi = ({ transaction: A }) => {
6583
6586
  o === ft.Date && /* @__PURE__ */ t(wi, { transaction: n }),
6584
6587
  o === ft.Memo && /* @__PURE__ */ t(Ti, { transaction: n }),
6585
6588
  o === ft.Tags && /* @__PURE__ */ t(Li, { transaction: n }),
6586
- /* @__PURE__ */ t(k, { variant: s < e.length - 1 ? "inset" : "fullWidth" })
6589
+ /* @__PURE__ */ t(q, { variant: s < e.length - 1 ? "inset" : "fullWidth" })
6587
6590
  ] }, o)) }) }),
6588
6591
  /* @__PURE__ */ t(p, { bold: !0, mb: 8, ml: 26, mt: 16, variant: "Body", children: "Actions" }),
6589
6592
  /* @__PURE__ */ t(fe, { square: !0, sx: { boxShadow: "none" }, children: /* @__PURE__ */ l(nA, { children: [
@@ -6591,7 +6594,7 @@ const bi = ({ transaction: A }) => {
6591
6594
  o === Bt.SplitTransaction && /* @__PURE__ */ t(bd, { transaction: n }),
6592
6595
  o === Bt.HideTransaction && /* @__PURE__ */ t(Cd, { transaction: n }),
6593
6596
  o === Bt.MerchantLogo && /* @__PURE__ */ t(hd, { transaction: n }),
6594
- /* @__PURE__ */ t(k, { variant: s < A.length - 1 ? "inset" : "fullWidth" })
6597
+ /* @__PURE__ */ t(q, { variant: s < A.length - 1 ? "inset" : "fullWidth" })
6595
6598
  ] }, o)),
6596
6599
  n.is_manual && /* @__PURE__ */ t(dd, { transaction: n })
6597
6600
  ] }) })
@@ -6705,7 +6708,7 @@ const bi = ({ transaction: A }) => {
6705
6708
  }
6706
6709
  )
6707
6710
  ] }),
6708
- /* @__PURE__ */ t(k, { light: !0 }),
6711
+ /* @__PURE__ */ t(q, { light: !0 }),
6709
6712
  /* @__PURE__ */ l(O, { bgcolor: "background.paper", children: [
6710
6713
  /* @__PURE__ */ t(bi, { transaction: r }),
6711
6714
  /* @__PURE__ */ t(wi, { transaction: r }),
@@ -6735,7 +6738,7 @@ const bi = ({ transaction: A }) => {
6735
6738
  DA,
6736
6739
  {
6737
6740
  copy: {
6738
- title: R(
6741
+ title: _(
6739
6742
  a.actions_apply_to_all_transaction_types,
6740
6743
  e.description
6741
6744
  )
@@ -6746,7 +6749,7 @@ const bi = ({ transaction: A }) => {
6746
6749
  onSecondaryAction: () => h(!1),
6747
6750
  primaryText: a.actions_apply_to_all,
6748
6751
  secondaryText: a.actions_this_time_only,
6749
- children: /* @__PURE__ */ t(p, { children: R(
6752
+ children: /* @__PURE__ */ t(p, { children: _(
6750
6753
  a.actions_all_past_and_future,
6751
6754
  e.description,
6752
6755
  c?.name
@@ -6775,11 +6778,11 @@ const bi = ({ transaction: A }) => {
6775
6778
  tags: S,
6776
6779
  transactions: L,
6777
6780
  updateTransaction: w
6778
- } = uA(), { common: D, transactions: P } = I(), { userProfile: _ } = an(), { onEvent: x } = V(), {
6779
- displayedDateRange: N,
6780
- isInitialized: X,
6781
- selectedAccountGuids: q,
6782
- selectedAccounts: j,
6781
+ } = uA(), { common: D, transactions: P } = I(), { userProfile: N } = an(), { onEvent: x } = V(), {
6782
+ displayedDateRange: R,
6783
+ isInitialized: j,
6784
+ selectedAccountGuids: F,
6785
+ selectedAccounts: X,
6783
6786
  setDisplayedDate: Q,
6784
6787
  setSelectedAccounts: U
6785
6788
  } = fA(), [rA, gA] = g.useState(""), [cA, vA] = g.useState(""), [$A, ge] = g.useState(!1), [Xe, Je] = g.useState(!1), [Ze, lt] = g.useState(!1);
@@ -6789,15 +6792,15 @@ const bi = ({ transaction: A }) => {
6789
6792
  const _A = yA(AA()), br = NA(AA());
6790
6793
  Q(_A, br), E({
6791
6794
  dateRange: { start: _A, end: br },
6792
- accounts: j.map((ro) => ro.guid)
6793
- }), lt(!0), x(G.TRANSACTIONS_VIEW);
6795
+ accounts: X.map((ro) => ro.guid)
6796
+ }), lt(!0), x(k.TRANSACTIONS_VIEW);
6794
6797
  }, []), g.useEffect(() => {
6795
6798
  Ze && (E({
6796
6799
  ...m,
6797
- dateRange: { start: N.start, end: N.end },
6798
- accounts: q
6799
- }), v(N.start));
6800
- }, [N, q]), g.useEffect(() => {
6800
+ dateRange: { start: R.start, end: R.end },
6801
+ accounts: F
6802
+ }), v(R.start));
6803
+ }, [R, F]), g.useEffect(() => {
6801
6804
  u(n);
6802
6805
  }, [n]);
6803
6806
  const pA = g.useMemo(
@@ -6809,18 +6812,18 @@ const bi = ({ transaction: A }) => {
6809
6812
  d(_A), E({
6810
6813
  ...m,
6811
6814
  searchTerm: _A
6812
- }), x(G.TRANSACTIONS_CLICK_SEARCH, { search_term: _A });
6815
+ }), x(k.TRANSACTIONS_CLICK_SEARCH, { search_term: _A });
6813
6816
  }, mn = () => {
6814
- vi(L, S), x(G.TRANSACTIONS_CLICK_EXPORT);
6817
+ vi(L, S), x(k.TRANSACTIONS_CLICK_EXPORT);
6815
6818
  }, pn = () => {
6816
6819
  pA.length > 0 ? (C({
6817
6820
  ...pi,
6818
6821
  date: mA(AA()),
6819
- user_guid: _?.user_guid || ""
6822
+ user_guid: N?.user_guid || ""
6820
6823
  }), gA(
6821
6824
  "addTransaction"
6822
6825
  /* AddTransaction */
6823
- ), x(G.TRANSACTIONS_CLICK_ADD)) : (ge(!0), x(G.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
6826
+ ), x(k.TRANSACTIONS_CLICK_ADD)) : (ge(!0), x(k.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
6824
6827
  }, dt = async () => {
6825
6828
  hA && await f(s), gA("");
6826
6829
  }, vn = () => {
@@ -6828,7 +6831,7 @@ const bi = ({ transaction: A }) => {
6828
6831
  }, En = () => {
6829
6832
  Je(!1), i();
6830
6833
  };
6831
- return !X || !Ze ? /* @__PURE__ */ t(QA, {}) : /* @__PURE__ */ l(
6834
+ return !j || !Ze ? /* @__PURE__ */ t(QA, {}) : /* @__PURE__ */ l(
6832
6835
  ue,
6833
6836
  {
6834
6837
  accountOptions: a,
@@ -6847,7 +6850,7 @@ const bi = ({ transaction: A }) => {
6847
6850
  calendarActions: {
6848
6851
  onRangeChanged: EA
6849
6852
  },
6850
- onAccountsFilterClick: () => x(G.ACCOUNTS_CLICK_FILTER),
6853
+ onAccountsFilterClick: () => x(k.ACCOUNTS_CLICK_FILTER),
6851
6854
  onBackClick: A,
6852
6855
  sx: r,
6853
6856
  title: P.transactions_title,
@@ -6881,7 +6884,7 @@ const bi = ({ transaction: A }) => {
6881
6884
  vA(_A), gA(
6882
6885
  "transaction"
6883
6886
  /* Transaction */
6884
- ), x(G.TRANSACTIONS_CLICK_DETAILS, { transaction_guid: _A });
6887
+ ), x(k.TRANSACTIONS_CLICK_DETAILS, { transaction_guid: _A });
6885
6888
  }
6886
6889
  }
6887
6890
  )
@@ -6974,19 +6977,19 @@ const bi = ({ transaction: A }) => {
6974
6977
  start_date: mA(A.expectedDate)
6975
6978
  }, r = `${Et(A.expectedDate)}`, a = `${et(A.expectedDate)}`, i = `${St(A.expectedDate)}`;
6976
6979
  switch (A.recurrenceType) {
6977
- case F.EveryWeek:
6980
+ case G.EveryWeek:
6978
6981
  n.repeat_interval = "1", n.repeat_weekday = i;
6979
6982
  break;
6980
- case F.EveryOtherWeek:
6983
+ case G.EveryOtherWeek:
6981
6984
  n.repeat_interval = "2", n.repeat_weekday = i;
6982
6985
  break;
6983
- case F.EveryMonth:
6986
+ case G.EveryMonth:
6984
6987
  n.repeat_day = r;
6985
6988
  break;
6986
- case F.EveryQuarter:
6989
+ case G.EveryQuarter:
6987
6990
  n.repeat_day = r, n.repeat_interval = "3";
6988
6991
  break;
6989
- case F.EveryYear:
6992
+ case G.EveryYear:
6990
6993
  n.repeat_day = r, n.repeat_month = a;
6991
6994
  break;
6992
6995
  }
@@ -6997,13 +7000,13 @@ const bi = ({ transaction: A }) => {
6997
7000
  recurrence_type: A.recurrenceType
6998
7001
  }), Xd = ({ activity: A }) => {
6999
7002
  const { recurring: e } = I(), { cashflowSequences: n, scheduledPayments: r, updateCashflowSequence: a, updateScheduledPayment: i } = HA(), { onEvent: o } = V(), [s, c] = g.useState(!1), h = A.activityType === LA.Income, d = [
7000
- { id: F.EveryWeek, label: e.frequency_every_week },
7001
- { id: F.EveryOtherWeek, label: e.frequency_every_other_week },
7002
- { id: F.EveryMonth, label: e.frequency_every_month },
7003
- { id: F.EveryOtherMonth, label: e.frequency_every_other_month },
7004
- { id: F.EveryQuarter, label: e.frequency_every_quarter },
7005
- { id: F.EveryOtherQuarter, label: e.frequency_every_other_quarter },
7006
- { id: F.EveryYear, label: e.frequency_every_year }
7003
+ { id: G.EveryWeek, label: e.frequency_every_week },
7004
+ { id: G.EveryOtherWeek, label: e.frequency_every_other_week },
7005
+ { id: G.EveryMonth, label: e.frequency_every_month },
7006
+ { id: G.EveryOtherMonth, label: e.frequency_every_other_month },
7007
+ { id: G.EveryQuarter, label: e.frequency_every_quarter },
7008
+ { id: G.EveryOtherQuarter, label: e.frequency_every_other_quarter },
7009
+ { id: G.EveryYear, label: e.frequency_every_year }
7007
7010
  ], u = async (m) => {
7008
7011
  const v = { ...A, recurrenceType: m };
7009
7012
  if (A.activityType === LA.Expense) {
@@ -7043,7 +7046,7 @@ const bi = ({ transaction: A }) => {
7043
7046
  (m) => (
7044
7047
  // Filter out every other month and every other quarter when income since cashflow
7045
7048
  // sequence doesn't support them
7046
- A.activityType === LA.Expense || m.id !== F.EveryOtherMonth && m.id !== F.EveryOtherQuarter
7049
+ A.activityType === LA.Expense || m.id !== G.EveryOtherMonth && m.id !== G.EveryOtherQuarter
7047
7050
  )
7048
7051
  ).map((m) => /* @__PURE__ */ l(g.Fragment, { children: [
7049
7052
  /* @__PURE__ */ t(Y, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(dA, { onClick: () => u(m.id), children: [
@@ -7056,7 +7059,7 @@ const bi = ({ transaction: A }) => {
7056
7059
  ),
7057
7060
  A.recurrenceType === m.id && /* @__PURE__ */ t(M, { color: "primary", fill: !0, name: "check_circle", size: 24 })
7058
7061
  ] }) }, m.id),
7059
- /* @__PURE__ */ t(k, {})
7062
+ /* @__PURE__ */ t(q, {})
7060
7063
  ] }, m.id)) })
7061
7064
  }
7062
7065
  )
@@ -7121,10 +7124,10 @@ const bi = ({ transaction: A }) => {
7121
7124
  });
7122
7125
  }, []), g.useEffect(() => {
7123
7126
  if (S && A.sequenceGuid) {
7124
- const P = o.filter((_) => _.sequenceGuid === A.sequenceGuid).map((_) => _.transactionGuid);
7127
+ const P = o.filter((N) => N.sequenceGuid === A.sequenceGuid).map((N) => N.transactionGuid);
7125
7128
  c({
7126
7129
  ...s,
7127
- custom: (_) => !!P.find((x) => _.guid === x)
7130
+ custom: (N) => !!P.find((x) => N.guid === x)
7128
7131
  });
7129
7132
  } else !S && A.scheduledPaymentGuid && c({
7130
7133
  ...s,
@@ -7167,7 +7170,7 @@ const bi = ({ transaction: A }) => {
7167
7170
  value: A.institution
7168
7171
  }
7169
7172
  ),
7170
- /* @__PURE__ */ t(k, { color: "secondary", variant: "inset" })
7173
+ /* @__PURE__ */ t(q, { color: "secondary", variant: "inset" })
7171
7174
  ] }),
7172
7175
  E && /* @__PURE__ */ l(eA, { children: [
7173
7176
  /* @__PURE__ */ t(
@@ -7178,12 +7181,12 @@ const bi = ({ transaction: A }) => {
7178
7181
  value: E.name
7179
7182
  }
7180
7183
  ),
7181
- /* @__PURE__ */ t(k, { color: "secondary", variant: "inset" })
7184
+ /* @__PURE__ */ t(q, { color: "secondary", variant: "inset" })
7182
7185
  ] }),
7183
7186
  /* @__PURE__ */ t(jd, { activity: A }),
7184
- /* @__PURE__ */ t(k, { color: "secondary", variant: "inset" }),
7187
+ /* @__PURE__ */ t(q, { color: "secondary", variant: "inset" }),
7185
7188
  /* @__PURE__ */ t(Ud, { activity: A }),
7186
- /* @__PURE__ */ t(k, { color: "secondary" })
7189
+ /* @__PURE__ */ t(q, { color: "secondary" })
7187
7190
  ] }),
7188
7191
  /* @__PURE__ */ t(
7189
7192
  sA,
@@ -7227,42 +7230,42 @@ const bi = ({ transaction: A }) => {
7227
7230
  gridColumn: 1,
7228
7231
  zIndex: 2
7229
7232
  }, un = (A) => A ? { margin: "0 0 -6px -4px" } : void 0, dr = ({ isOffset: A = !1, size: e = 16 }) => /* @__PURE__ */ t(ze, { size: e, sx: { ...un(A) }, children: /* @__PURE__ */ t(Cs, { color: "primary", sx: { fontSize: e, ...dn } }) }), ur = ({ isOffset: A = !1, size: e = 16 }) => /* @__PURE__ */ t(ze, { size: e, sx: { ...un(A) }, children: /* @__PURE__ */ t(fs, { sx: { color: "categories.income", fontSize: e, ...dn } }) }), hr = ({ isOffset: A = !1, size: e = 16 }) => /* @__PURE__ */ t(ze, { size: e, sx: { ...un(A) }, children: /* @__PURE__ */ t(Gt, { color: "error", sx: { fontSize: e, ...dn } }) }), gr = ({ isOffset: A = !1, size: e = 16 }) => /* @__PURE__ */ t(ze, { size: e, sx: { ...un(A) }, children: /* @__PURE__ */ t(ja, { color: "success", sx: { fontSize: e, ...dn } }) }), ia = ({ copy: A, date: e, type: n }) => {
7230
- let r = e && ms(e) ? R(A.monthly_ordinal, XA(e, "do")) : A.monthly;
7233
+ let r = e && ms(e) ? _(A.monthly_ordinal, XA(e, "do")) : A.monthly;
7231
7234
  switch (n) {
7232
- case F.EveryQuarter:
7233
- r = e ? R(A.quarterly_ordinal, XA(e, "do")) : A.quarterly;
7235
+ case G.EveryQuarter:
7236
+ r = e ? _(A.quarterly_ordinal, XA(e, "do")) : A.quarterly;
7234
7237
  break;
7235
- case F.EveryWeek:
7236
- r = e ? R(A.weekly_ordinal, XA(e, "do")) : A.weekly;
7238
+ case G.EveryWeek:
7239
+ r = e ? _(A.weekly_ordinal, XA(e, "do")) : A.weekly;
7237
7240
  break;
7238
- case F.EveryYear:
7239
- r = e ? R(A.anually_ordinal, XA(e, "do")) : A.anually;
7241
+ case G.EveryYear:
7242
+ r = e ? _(A.anually_ordinal, XA(e, "do")) : A.anually;
7240
7243
  break;
7241
- case F.EveryOtherWeek:
7242
- r = e ? R(A.every_other_week_ordinal, XA(e, "do")) : A.every_other_week;
7244
+ case G.EveryOtherWeek:
7245
+ r = e ? _(A.every_other_week_ordinal, XA(e, "do")) : A.every_other_week;
7243
7246
  break;
7244
- case F.EveryOtherMonth:
7245
- r = e ? R(A.every_other_month_ordinal, XA(e, "do")) : A.every_other_month;
7247
+ case G.EveryOtherMonth:
7248
+ r = e ? _(A.every_other_month_ordinal, XA(e, "do")) : A.every_other_month;
7246
7249
  break;
7247
- case F.EveryOtherQuarter:
7248
- r = e ? R(A.every_other_quarter_ordinal, XA(e, "do")) : A.every_other_quarter;
7250
+ case G.EveryOtherQuarter:
7251
+ r = e ? _(A.every_other_quarter_ordinal, XA(e, "do")) : A.every_other_quarter;
7249
7252
  break;
7250
7253
  }
7251
7254
  return r;
7252
7255
  }, Vd = (A, e) => {
7253
7256
  switch (A.activityStatus) {
7254
7257
  case xA.Paid:
7255
- return A.occurredOnDate ? R(
7258
+ return A.occurredOnDate ? _(
7256
7259
  e.paid_on,
7257
7260
  $(A.occurredOnDate, Z.MONTH_DAY)
7258
7261
  ) : e.paid;
7259
7262
  case xA.Missed:
7260
- return R(
7263
+ return _(
7261
7264
  e.missed_on,
7262
7265
  $(A.expectedDate, Z.MONTH_DAY)
7263
7266
  );
7264
7267
  case xA.Upcoming:
7265
- return R(
7268
+ return _(
7266
7269
  e.upcoming_on,
7267
7270
  $(A.expectedDate, Z.MONTH_DAY)
7268
7271
  );
@@ -7373,19 +7376,19 @@ const bi = ({ transaction: A }) => {
7373
7376
  transaction_type: A.transaction_type
7374
7377
  };
7375
7378
  switch (e) {
7376
- case F.EveryWeek:
7379
+ case G.EveryWeek:
7377
7380
  r.repeat_interval = "1", r.repeat_weekday = `${St(n)}`;
7378
7381
  break;
7379
- case F.EveryOtherWeek:
7382
+ case G.EveryOtherWeek:
7380
7383
  r.repeat_interval = "2", r.repeat_weekday = `${St(n)}`;
7381
7384
  break;
7382
- case F.EveryMonth:
7385
+ case G.EveryMonth:
7383
7386
  r.repeat_day = `${Et(n)}`;
7384
7387
  break;
7385
- case F.EveryQuarter:
7388
+ case G.EveryQuarter:
7386
7389
  r.repeat_interval = "3", r.repeat_day = `${Et(n)}`;
7387
7390
  break;
7388
- case F.EveryYear:
7391
+ case G.EveryYear:
7389
7392
  r.repeat_day = `${Et(n)}`, r.repeat_month = `${et(n)}`;
7390
7393
  break;
7391
7394
  }
@@ -7408,18 +7411,18 @@ const bi = ({ transaction: A }) => {
7408
7411
  merchant_guid: A.merchant_guid,
7409
7412
  occurs_on: kn(n, { representation: "date" }),
7410
7413
  recurrence_day: 0,
7411
- recurrence_type: F.EveryMonth
7414
+ recurrence_type: G.EveryMonth
7412
7415
  };
7413
7416
  switch (e) {
7414
- case F.EveryWeek:
7415
- case F.EveryOtherWeek:
7417
+ case G.EveryWeek:
7418
+ case G.EveryOtherWeek:
7416
7419
  r.recurrence_day = St(n);
7417
7420
  break;
7418
- case F.EveryMonth:
7419
- case F.EveryOtherMonth:
7420
- case F.EveryQuarter:
7421
- case F.EveryOtherQuarter:
7422
- case F.EveryYear:
7421
+ case G.EveryMonth:
7422
+ case G.EveryOtherMonth:
7423
+ case G.EveryQuarter:
7424
+ case G.EveryOtherQuarter:
7425
+ case G.EveryYear:
7423
7426
  r.recurrence_day = Et(n);
7424
7427
  break;
7425
7428
  }
@@ -7457,40 +7460,40 @@ const bi = ({ transaction: A }) => {
7457
7460
  transaction: o
7458
7461
  }) => {
7459
7462
  const { recurring: s } = I(), c = [
7460
- { id: F.EveryWeek, label: s.frequency_every_week },
7461
- { id: F.EveryOtherWeek, label: s.frequency_every_other_week },
7462
- { id: F.EveryMonth, label: s.frequency_every_month },
7463
- { id: F.EveryOtherMonth, label: s.frequency_every_other_month },
7464
- { id: F.EveryQuarter, label: s.frequency_every_quarter },
7465
- { id: F.EveryOtherQuarter, label: s.frequency_every_other_quarter },
7466
- { id: F.EveryYear, label: s.frequency_every_year }
7463
+ { id: G.EveryWeek, label: s.frequency_every_week },
7464
+ { id: G.EveryOtherWeek, label: s.frequency_every_other_week },
7465
+ { id: G.EveryMonth, label: s.frequency_every_month },
7466
+ { id: G.EveryOtherMonth, label: s.frequency_every_other_month },
7467
+ { id: G.EveryQuarter, label: s.frequency_every_quarter },
7468
+ { id: G.EveryOtherQuarter, label: s.frequency_every_other_quarter },
7469
+ { id: G.EveryYear, label: s.frequency_every_year }
7467
7470
  ];
7468
7471
  g.useEffect(() => {
7469
7472
  const d = IA(o.date);
7470
- i(Hr(d)), a(F.EveryMonth);
7473
+ i(Hr(d)), a(G.EveryMonth);
7471
7474
  }, [o]);
7472
7475
  const h = (d) => {
7473
7476
  const u = IA(o.date);
7474
7477
  switch (Number(d.target.value)) {
7475
- case F.EveryWeek:
7478
+ case G.EveryWeek:
7476
7479
  i(Ar(u));
7477
7480
  break;
7478
- case F.EveryOtherWeek:
7481
+ case G.EveryOtherWeek:
7479
7482
  i(nc(u));
7480
7483
  break;
7481
- case F.EveryMonth:
7484
+ case G.EveryMonth:
7482
7485
  i(Hr(u));
7483
7486
  break;
7484
- case F.EveryOtherMonth:
7487
+ case G.EveryOtherMonth:
7485
7488
  i(rc(u));
7486
7489
  break;
7487
- case F.EveryQuarter:
7490
+ case G.EveryQuarter:
7488
7491
  i(ri(u));
7489
7492
  break;
7490
- case F.EveryOtherQuarter:
7493
+ case G.EveryOtherQuarter:
7491
7494
  i(ac(u));
7492
7495
  break;
7493
- case F.EveryYear:
7496
+ case G.EveryYear:
7494
7497
  i(ic(u));
7495
7498
  break;
7496
7499
  }
@@ -7535,8 +7538,8 @@ const bi = ({ transaction: A }) => {
7535
7538
  label: e,
7536
7539
  onAddActivity: n = () => null
7537
7540
  }) => {
7538
- const { recurring: r } = I(), { addCashflowEvent: a, addCashflowSequence: i, addScheduledPayment: o } = HA(), { filter: s, setFilter: c, transactions: h } = uA(), [d, u] = g.useState(!1), [C, f] = g.useState(""), [m, v] = g.useState(F.EveryMonth), [E, S] = g.useState(null), L = g.useMemo(
7539
- () => h.find((_) => _.guid === C),
7541
+ const { recurring: r } = I(), { addCashflowEvent: a, addCashflowSequence: i, addScheduledPayment: o } = HA(), { filter: s, setFilter: c, transactions: h } = uA(), [d, u] = g.useState(!1), [C, f] = g.useState(""), [m, v] = g.useState(G.EveryMonth), [E, S] = g.useState(null), L = g.useMemo(
7542
+ () => h.find((N) => N.guid === C),
7540
7543
  [C]
7541
7544
  ), w = () => {
7542
7545
  u(!0), c(A ? { ...s, custom: It } : { ...s, custom: Rn });
@@ -7546,14 +7549,14 @@ const bi = ({ transaction: A }) => {
7546
7549
  return;
7547
7550
  }
7548
7551
  if (A) {
7549
- const _ = Oi(L, m, E), x = await i(_);
7552
+ const N = Oi(L, m, E), x = await i(N);
7550
7553
  if (x) {
7551
- const N = xi(x, L);
7552
- await a(N);
7554
+ const R = xi(x, L);
7555
+ await a(R);
7553
7556
  }
7554
7557
  } else {
7555
- const _ = $d(L, m, E);
7556
- await o(_, L);
7558
+ const N = $d(L, m, E);
7559
+ await o(N, L);
7557
7560
  }
7558
7561
  P();
7559
7562
  }, P = () => {
@@ -7567,7 +7570,7 @@ const bi = ({ transaction: A }) => {
7567
7570
  ] }),
7568
7571
  /* @__PURE__ */ t(M, { name: "chevron_right", size: 24, sx: { color: "primary.light" } })
7569
7572
  ] }) }) }) }),
7570
- /* @__PURE__ */ t(k, {}),
7573
+ /* @__PURE__ */ t(q, {}),
7571
7574
  /* @__PURE__ */ t(
7572
7575
  lA,
7573
7576
  {
@@ -7579,13 +7582,13 @@ const bi = ({ transaction: A }) => {
7579
7582
  Pi,
7580
7583
  {
7581
7584
  description: A ? r.add_income_description : r.add_expense_description,
7582
- onSearch: (_) => {
7585
+ onSearch: (N) => {
7583
7586
  c({
7584
7587
  ...s,
7585
- custom: (x) => A ? _ ? Mi(x, _) : It(x) : _ ? tu(x, _) : Rn(x)
7588
+ custom: (x) => A ? N ? Mi(x, N) : It(x) : N ? tu(x, N) : Rn(x)
7586
7589
  });
7587
7590
  },
7588
- onSelected: (_) => f(_)
7591
+ onSelected: (N) => f(N)
7589
7592
  }
7590
7593
  )
7591
7594
  }
@@ -7630,23 +7633,23 @@ const bi = ({ transaction: A }) => {
7630
7633
  };
7631
7634
  }), au = () => {
7632
7635
  const { recurring: A } = I(), { scheduledPayments: e } = HA(), { transactions: n } = uA(), { selectedAccounts: r } = fA(), { onEvent: a } = V(), i = ru(r, e, n), o = (c) => {
7633
- a(G.RECURRING_ACTIVITY_CLICK_EXPENSE, {
7636
+ a(k.RECURRING_ACTIVITY_CLICK_EXPENSE, {
7634
7637
  transaction_guid: c.transactionGuid
7635
7638
  });
7636
7639
  }, s = () => {
7637
- a(G.RECURRING_ACTIVITY_CLICK_ADD_EXPENSE);
7640
+ a(k.RECURRING_ACTIVITY_CLICK_ADD_EXPENSE);
7638
7641
  };
7639
7642
  return /* @__PURE__ */ l(nA, { sx: { bgcolor: "background.paper" }, children: [
7640
7643
  i.map((c, h) => /* @__PURE__ */ l(g.Fragment, { children: [
7641
7644
  /* @__PURE__ */ t(Vt, { activity: c, onActivityClick: o, showOrdinal: !0 }),
7642
- /* @__PURE__ */ t(k, { variant: h < i.length - 1 ? "inset" : "fullWidth" })
7645
+ /* @__PURE__ */ t(q, { variant: h < i.length - 1 ? "inset" : "fullWidth" })
7643
7646
  ] }, c.scheduledPaymentGuid)),
7644
7647
  /* @__PURE__ */ t(_i, { label: A.add_expense, onAddActivity: s })
7645
7648
  ] });
7646
7649
  }, iu = T(au), Hn = (A) => {
7647
7650
  let e = A.user_name || A.feed_name || "";
7648
7651
  return A.account_number && (e = `${e} *${A.account_number}`), e;
7649
- }, zn = (A) => A ? A.repeat_interval === "1" ? F.EveryWeek : A.repeat_interval === "2" ? F.EveryOtherWeek : A.repeat_day && !A.repeat_month && !A.repeat_interval ? F.EveryMonth : A.repeat_day && A.repeat_interval === "3" ? F.EveryQuarter : A.repeat_day && A.repeat_month ? F.EveryYear : F.Unknown : F.Unknown, ou = (A, e, n, r, a, i) => {
7652
+ }, zn = (A) => A ? A.repeat_interval === "1" ? G.EveryWeek : A.repeat_interval === "2" ? G.EveryOtherWeek : A.repeat_day && !A.repeat_month && !A.repeat_interval ? G.EveryMonth : A.repeat_day && A.repeat_interval === "3" ? G.EveryQuarter : A.repeat_day && A.repeat_month ? G.EveryYear : G.Unknown : G.Unknown, ou = (A, e, n, r, a, i) => {
7650
7653
  const o = e.filter((d) => {
7651
7654
  const u = a.find((f) => f.guid === d.cashflow_sequence_guid), C = i.find((f) => f.guid === d.transaction_guid);
7652
7655
  return u?.end_date === null && C;
@@ -7724,14 +7727,14 @@ const bi = ({ transaction: A }) => {
7724
7727
  }, c = e.recurrence_day, h = AA(), d = yA(AA()), u = pe(AA(), 30);
7725
7728
  let C = d;
7726
7729
  switch (e.recurrence_type) {
7727
- case F.EveryWeek:
7730
+ case G.EveryWeek:
7728
7731
  for (C = xn(C, c); bA(C, u); )
7729
7732
  r.push({
7730
7733
  ...s,
7731
7734
  expectedDate: C
7732
7735
  }), C = xn(C, c);
7733
7736
  break;
7734
- case F.EveryOtherWeek:
7737
+ case G.EveryOtherWeek:
7735
7738
  if (bA(o, d))
7736
7739
  for (C = At(o, 2); bA(C, u); )
7737
7740
  nt(C, d) && r.push({
@@ -7754,7 +7757,7 @@ const bi = ({ transaction: A }) => {
7754
7757
  }), C = At(C, 2);
7755
7758
  }
7756
7759
  break;
7757
- case F.EveryMonth:
7760
+ case G.EveryMonth:
7758
7761
  r.push({
7759
7762
  ...s,
7760
7763
  expectedDate: Pn(C, c)
@@ -7763,7 +7766,7 @@ const bi = ({ transaction: A }) => {
7763
7766
  expectedDate: ee(Pn(C, c), 1)
7764
7767
  });
7765
7768
  break;
7766
- case F.EveryOtherMonth:
7769
+ case G.EveryOtherMonth:
7767
7770
  bA(o, d) ? bA(ee(o, 2), u) && r.push({
7768
7771
  ...s,
7769
7772
  expectedDate: ee(o, 2)
@@ -7772,7 +7775,7 @@ const bi = ({ transaction: A }) => {
7772
7775
  expectedDate: o
7773
7776
  });
7774
7777
  break;
7775
- case F.EveryQuarter:
7778
+ case G.EveryQuarter:
7776
7779
  bA(o, d) ? bA(je(o, 1), u) && r.push({
7777
7780
  ...s,
7778
7781
  expectedDate: je(o, 1)
@@ -7781,7 +7784,7 @@ const bi = ({ transaction: A }) => {
7781
7784
  expectedDate: o
7782
7785
  });
7783
7786
  break;
7784
- case F.EveryOtherQuarter:
7787
+ case G.EveryOtherQuarter:
7785
7788
  bA(o, d) ? bA(je(o, 2), u) && r.push({
7786
7789
  ...s,
7787
7790
  expectedDate: je(o, 2)
@@ -7790,7 +7793,7 @@ const bi = ({ transaction: A }) => {
7790
7793
  expectedDate: o
7791
7794
  });
7792
7795
  break;
7793
- case F.EveryYear:
7796
+ case G.EveryYear:
7794
7797
  bA(o, d) ? bA(wt(o, 1), u) && r.push({
7795
7798
  ...s,
7796
7799
  expectedDate: wt(o, 1)
@@ -7831,16 +7834,16 @@ const bi = ({ transaction: A }) => {
7831
7834
  r.filter((d) => !d.end_date),
7832
7835
  i
7833
7836
  ), c = (d) => {
7834
- o(G.RECURRING_ACTIVITY_CLICK_INCOME, {
7837
+ o(k.RECURRING_ACTIVITY_CLICK_INCOME, {
7835
7838
  transaction_guid: d.transactionGuid
7836
7839
  });
7837
7840
  }, h = () => {
7838
- o(G.RECURRING_ACTIVITY_CLICK_ADD_INCOME);
7841
+ o(k.RECURRING_ACTIVITY_CLICK_ADD_INCOME);
7839
7842
  };
7840
7843
  return /* @__PURE__ */ l(nA, { sx: { bgcolor: "background.paper" }, children: [
7841
7844
  s.map((d, u) => /* @__PURE__ */ l(g.Fragment, { children: [
7842
7845
  /* @__PURE__ */ t(Vt, { activity: d, onActivityClick: c, showOrdinal: !0 }),
7843
- /* @__PURE__ */ t(k, { variant: u < s.length - 1 ? "inset" : "fullWidth" })
7846
+ /* @__PURE__ */ t(q, { variant: u < s.length - 1 ? "inset" : "fullWidth" })
7844
7847
  ] }, d.sequenceGuid)),
7845
7848
  /* @__PURE__ */ t(_i, { isIncome: !0, label: A.add_income, onAddActivity: h })
7846
7849
  ] });
@@ -7958,7 +7961,7 @@ const bi = ({ transaction: A }) => {
7958
7961
  const A = CA(), { onEvent: e } = V(), { selectedDay: n } = HA(), [r, a] = g.useState(
7959
7962
  Pr(/* @__PURE__ */ new Date()) * ut + oa
7960
7963
  ), i = (s) => {
7961
- a(Pr(s) * ut + oa), e(G.RECURRING_ACTIVITY_CLICK_CALENDAR_RIGHT);
7964
+ a(Pr(s) * ut + oa), e(k.RECURRING_ACTIVITY_CLICK_CALENDAR_RIGHT);
7962
7965
  }, o = /* @__PURE__ */ t(
7963
7966
  Xn,
7964
7967
  {
@@ -8043,7 +8046,7 @@ const bi = ({ transaction: A }) => {
8043
8046
  },
8044
8047
  c.expectedDate.toString() + h
8045
8048
  ),
8046
- /* @__PURE__ */ t(k, { sx: { mx: 24 } })
8049
+ /* @__PURE__ */ t(q, { sx: { mx: 24 } })
8047
8050
  ] })) : s.map((c) => /* @__PURE__ */ l(eA, { children: [
8048
8051
  /* @__PURE__ */ t(Y, { children: /* @__PURE__ */ t(
8049
8052
  nA,
@@ -8063,11 +8066,11 @@ const bi = ({ transaction: A }) => {
8063
8066
  },
8064
8067
  h.expectedDate.toString() + d
8065
8068
  ),
8066
- d !== c.activities.length - 1 && /* @__PURE__ */ t(k, { sx: { ml: 64, mr: 24 } })
8069
+ d !== c.activities.length - 1 && /* @__PURE__ */ t(q, { sx: { ml: 64, mr: 24 } })
8067
8070
  ] }))
8068
8071
  }
8069
8072
  ) }, c.id),
8070
- /* @__PURE__ */ t(k, { sx: { mx: 24 } })
8073
+ /* @__PURE__ */ t(q, { sx: { mx: 24 } })
8071
8074
  ] })) })
8072
8075
  ] });
8073
8076
  }, mt = T(pu), vu = ({
@@ -8112,15 +8115,15 @@ const bi = ({ transaction: A }) => {
8112
8115
  selectedDayActivities: o,
8113
8116
  setSelectedDay: s,
8114
8117
  upcomingActivities: c
8115
- } = HA(), [h, d] = g.useState(0), { onEvent: u } = V(), C = n.filter(wn), f = a.filter(wn), m = r.filter(wn), v = C.filter(Rt).reduce(gt, 0), E = f.filter(Rt).reduce(gt, 0), S = m.filter(Rt).reduce(gt, 0), L = C.filter(Rt).length, w = C.filter(bn).reduce(gt, 0), D = f.filter(bn).reduce(gt, 0), P = C.filter(bn).length, _ = (X, q) => {
8116
- d(q);
8117
- }, x = (X) => {
8118
- u(G.RECURRING_ACTIVITY_CLICK_UPCOMING, {
8119
- transaction_guid: X.transactionGuid
8118
+ } = HA(), [h, d] = g.useState(0), { onEvent: u } = V(), C = n.filter(wn), f = a.filter(wn), m = r.filter(wn), v = C.filter(Rt).reduce(gt, 0), E = f.filter(Rt).reduce(gt, 0), S = m.filter(Rt).reduce(gt, 0), L = C.filter(Rt).length, w = C.filter(bn).reduce(gt, 0), D = f.filter(bn).reduce(gt, 0), P = C.filter(bn).length, N = (j, F) => {
8119
+ d(F);
8120
+ }, x = (j) => {
8121
+ u(k.RECURRING_ACTIVITY_CLICK_UPCOMING, {
8122
+ transaction_guid: j.transactionGuid
8120
8123
  });
8121
- }, N = (X) => {
8122
- u(G.RECURRING_ACTIVITY_CLICK_PAID, {
8123
- transaction_guid: X.transactionGuid
8124
+ }, R = (j) => {
8125
+ u(k.RECURRING_ACTIVITY_CLICK_PAID, {
8126
+ transaction_guid: j.transactionGuid
8124
8127
  });
8125
8128
  };
8126
8129
  return /* @__PURE__ */ l(Le, { container: !0, pt: 16, px: 24, spacing: 24, children: [
@@ -8153,7 +8156,7 @@ const bi = ({ transaction: A }) => {
8153
8156
  }
8154
8157
  ),
8155
8158
  e && /* @__PURE__ */ l(O, { children: [
8156
- /* @__PURE__ */ l(Oe, { onChange: _, value: h, variant: "fullWidth", children: [
8159
+ /* @__PURE__ */ l(Oe, { onChange: N, value: h, variant: "fullWidth", children: [
8157
8160
  /* @__PURE__ */ t(
8158
8161
  BA,
8159
8162
  {
@@ -8174,7 +8177,7 @@ const bi = ({ transaction: A }) => {
8174
8177
  onActivityClick: x
8175
8178
  }
8176
8179
  ),
8177
- h === 1 && /* @__PURE__ */ t(mt, { activities: f, onActivityClick: N })
8180
+ h === 1 && /* @__PURE__ */ t(mt, { activities: f, onActivityClick: R })
8178
8181
  ] })
8179
8182
  ] }) }),
8180
8183
  !e && /* @__PURE__ */ t(Le, { sx: { minWidth: 450 }, xs: "auto", children: /* @__PURE__ */ l(y, { gap: 35, children: [
@@ -8183,9 +8186,9 @@ const bi = ({ transaction: A }) => {
8183
8186
  mt,
8184
8187
  {
8185
8188
  activities: o || f,
8186
- onActivityClick: N,
8189
+ onActivityClick: R,
8187
8190
  onResetClick: i ? () => s(i) : void 0,
8188
- title: i ? R(
8191
+ title: i ? _(
8189
8192
  A.day_transactions,
8190
8193
  $(i, Z.MONTH_DAY)
8191
8194
  ) : A.paid_activity
@@ -8213,11 +8216,11 @@ const bi = ({ transaction: A }) => {
8213
8216
  label: r.settings,
8214
8217
  iconName: "settings",
8215
8218
  onClick: () => {
8216
- u(!0), h(G.RECURRING_ACTIVITY_CLICK_SETTINGS);
8219
+ u(!0), h(k.RECURRING_ACTIVITY_CLICK_SETTINGS);
8217
8220
  }
8218
8221
  }
8219
8222
  ],
8220
- onAccountsFilterClick: () => h(G.RECURRING_ACTIVITY_CLICK_FILTER),
8223
+ onAccountsFilterClick: () => h(k.RECURRING_ACTIVITY_CLICK_FILTER),
8221
8224
  onBackClick: A,
8222
8225
  sx: e,
8223
8226
  title: r.title,
@@ -8250,7 +8253,7 @@ const bi = ({ transaction: A }) => {
8250
8253
  ), { availableWidth: s } = ot(), c = s < 750;
8251
8254
  return /* @__PURE__ */ l(y, { flexDirection: c ? "column" : "row", width: "100%", children: [
8252
8255
  /* @__PURE__ */ t(Hi, {}),
8253
- !c && /* @__PURE__ */ t(k, { flexItem: !0, orientation: "vertical", sx: { my: 16, ml: 16 } }),
8256
+ !c && /* @__PURE__ */ t(q, { flexItem: !0, orientation: "vertical", sx: { my: 16, ml: 16 } }),
8254
8257
  /* @__PURE__ */ t(
8255
8258
  mt,
8256
8259
  {
@@ -8258,7 +8261,7 @@ const bi = ({ transaction: A }) => {
8258
8261
  isMini: !0,
8259
8262
  onResetClick: n ? () => a(n) : void 0,
8260
8263
  sx: { width: c ? "100%" : "calc(100% - 336px)", mt: 12 },
8261
- title: n ? R(
8264
+ title: n ? _(
8262
8265
  A.day_transactions,
8263
8266
  $(n, Z.MONTH_DAY)
8264
8267
  ) : A.upcoming_activity
@@ -8497,9 +8500,9 @@ const Iu = {
8497
8500
  event: "account_details_click_account_name",
8498
8501
  label: e.account_name,
8499
8502
  name: "user_name",
8500
- placeholder: R(e.enter_value, e.account_name),
8503
+ placeholder: _(e.enter_value, e.account_name),
8501
8504
  type: WA.Input,
8502
- validation: (r) => r ? "" : R(e.field_is_required, e.account_name),
8505
+ validation: (r) => r ? "" : _(e.field_is_required, e.account_name),
8503
8506
  valueFormatter: (r) => r
8504
8507
  }
8505
8508
  ];
@@ -8507,7 +8510,7 @@ const Iu = {
8507
8510
  n.unshift({
8508
8511
  label: e.account_balance,
8509
8512
  name: "balance",
8510
- placeholder: R(e.enter_value, e.account_balance),
8513
+ placeholder: _(e.enter_value, e.account_balance),
8511
8514
  type: WA.Currency,
8512
8515
  valueFormatter: (a) => z(a, "0,0.00")
8513
8516
  });
@@ -8520,7 +8523,7 @@ const Iu = {
8520
8523
  label: e.account_type,
8521
8524
  name: "account_type",
8522
8525
  options: r,
8523
- placeholder: R(e.select_value, e.account_type),
8526
+ placeholder: _(e.select_value, e.account_type),
8524
8527
  type: WA.Select,
8525
8528
  valueFormatter: (a) => r.find((i) => i.value === a)?.label
8526
8529
  });
@@ -8535,7 +8538,7 @@ const Iu = {
8535
8538
  label: e.property_type,
8536
8539
  name: "property_type",
8537
8540
  options: r,
8538
- placeholder: R(e.select_value, e.property_type),
8541
+ placeholder: _(e.select_value, e.property_type),
8539
8542
  type: WA.Select,
8540
8543
  valueFormatter: (a) => r.find((i) => i.value === a)?.label
8541
8544
  });
@@ -8546,7 +8549,7 @@ const Iu = {
8546
8549
  event: "account_details_click_interest_rate",
8547
8550
  label: r,
8548
8551
  name: a,
8549
- placeholder: R(e.enter_value, r),
8552
+ placeholder: _(e.enter_value, r),
8550
8553
  type: WA.Input,
8551
8554
  validation: (i) => Nn(i) ? "" : e.error_amount_is_invalid,
8552
8555
  valueFormatter: (i) => Nn(i) ? ni(i / 100) : i
@@ -8555,7 +8558,7 @@ const Iu = {
8555
8558
  return fr(A) && (n.push({
8556
8559
  label: e.minimum_payment,
8557
8560
  name: "minimum_payment",
8558
- placeholder: R(e.enter_value, e.minimum_payment),
8561
+ placeholder: _(e.enter_value, e.minimum_payment),
8559
8562
  type: WA.Currency,
8560
8563
  valueFormatter: (r) => z(r, "0,0.00")
8561
8564
  }), A.payment_due_at ? n.push({
@@ -8569,23 +8572,23 @@ const Iu = {
8569
8572
  }) : n.push({
8570
8573
  label: e.day_payment_due,
8571
8574
  name: "day_payment_is_due",
8572
- placeholder: R(e.enter_value, e.day_payment_due),
8575
+ placeholder: _(e.enter_value, e.day_payment_due),
8573
8576
  type: WA.Date,
8574
- valueFormatter: (r) => R(
8577
+ valueFormatter: (r) => _(
8575
8578
  e.day_of_every_month,
8576
8579
  tc(r <= 31 ? r : new Date(r).getDate())
8577
8580
  )
8578
8581
  })), xu(A) && n.push({
8579
8582
  label: e.credit_limit,
8580
8583
  name: "credit_limit",
8581
- placeholder: R(e.enter_value, e.credit_limit),
8584
+ placeholder: _(e.enter_value, e.credit_limit),
8582
8585
  type: WA.Currency,
8583
8586
  valueFormatter: (r) => z(r, "0,0.00")
8584
8587
  }), Nu(A) && n.push({
8585
8588
  label: e.original_balance,
8586
8589
  minAmount: 1,
8587
8590
  name: "original_balance",
8588
- placeholder: R(e.enter_value, e.original_balance),
8591
+ placeholder: _(e.enter_value, e.original_balance),
8589
8592
  type: WA.Currency,
8590
8593
  valueFormatter: (r) => z(r, "0,0.00")
8591
8594
  }), n;
@@ -8600,7 +8603,7 @@ const Iu = {
8600
8603
  default:
8601
8604
  if (n = e.current_balance, r = A.balance, A.minimum_payment && A.payment_due_at) {
8602
8605
  const s = typeof A.payment_due_at == "number" ? new Date(A.payment_due_at * 1e3) : A.payment_due_at;
8603
- a = /* @__PURE__ */ t(p, { component: "strong", variant: "XSmall", children: R(
8606
+ a = /* @__PURE__ */ t(p, { component: "strong", variant: "XSmall", children: _(
8604
8607
  e.payment_due_on,
8605
8608
  z(A.minimum_payment, "0,0.00"),
8606
8609
  $(s, Z.FULL_MONTH_DAY)
@@ -8696,7 +8699,7 @@ const Hu = ({ activity: A }) => /* @__PURE__ */ l(eA, { children: [
8696
8699
  }
8697
8700
  )
8698
8701
  ] }),
8699
- /* @__PURE__ */ t(k, {})
8702
+ /* @__PURE__ */ t(q, {})
8700
8703
  ] }), ca = T(Hu), zu = ({ total: A, type: e }) => {
8701
8704
  const { cashflow: n } = I();
8702
8705
  return /* @__PURE__ */ l(eA, { children: [
@@ -8721,7 +8724,7 @@ const Hu = ({ activity: A }) => /* @__PURE__ */ l(eA, { children: [
8721
8724
  ]
8722
8725
  }
8723
8726
  ),
8724
- /* @__PURE__ */ t(k, {})
8727
+ /* @__PURE__ */ t(q, {})
8725
8728
  ] });
8726
8729
  }, la = T(zu), da = (A, e) => (n) => n.accountGuid === A.guid && (Wn(n.expectedDate) || nt(n.expectedDate, e.start)) && bA(n.expectedDate, e.end), Bu = () => {
8727
8730
  const { cashflow: A } = I(), { upcomingExpenses: e, upcomingIncome: n } = HA(), { dateRange: r, selectedCashAccounts: a } = st();
@@ -8766,7 +8769,7 @@ const Hu = ({ activity: A }) => /* @__PURE__ */ l(eA, { children: [
8766
8769
  }
8767
8770
  }
8768
8771
  ),
8769
- /* @__PURE__ */ t(k, {}),
8772
+ /* @__PURE__ */ t(q, {}),
8770
8773
  o.length > 0 && /* @__PURE__ */ t(Y, { children: /* @__PURE__ */ t(
8771
8774
  nA,
8772
8775
  {
@@ -8944,7 +8947,7 @@ const Hu = ({ activity: A }) => /* @__PURE__ */ l(eA, { children: [
8944
8947
  ]
8945
8948
  }
8946
8949
  ),
8947
- /* @__PURE__ */ t(k, { sx: { width: "100%" } }),
8950
+ /* @__PURE__ */ t(q, { sx: { width: "100%" } }),
8948
8951
  /* @__PURE__ */ l(
8949
8952
  y,
8950
8953
  {
@@ -8959,7 +8962,7 @@ const Hu = ({ activity: A }) => /* @__PURE__ */ l(eA, { children: [
8959
8962
  ]
8960
8963
  }
8961
8964
  ),
8962
- /* @__PURE__ */ t(k, { sx: { width: "100%" } }),
8965
+ /* @__PURE__ */ t(q, { sx: { width: "100%" } }),
8963
8966
  /* @__PURE__ */ l(
8964
8967
  y,
8965
8968
  {
@@ -8974,7 +8977,7 @@ const Hu = ({ activity: A }) => /* @__PURE__ */ l(eA, { children: [
8974
8977
  ]
8975
8978
  }
8976
8979
  ),
8977
- /* @__PURE__ */ t(k, { sx: { width: "100%" } }),
8980
+ /* @__PURE__ */ t(q, { sx: { width: "100%" } }),
8978
8981
  /* @__PURE__ */ t(
8979
8982
  y,
8980
8983
  {
@@ -9083,7 +9086,7 @@ const Hu = ({ activity: A }) => /* @__PURE__ */ l(eA, { children: [
9083
9086
  label: r.cash_and_bank
9084
9087
  }
9085
9088
  ),
9086
- /* @__PURE__ */ t(k, {}),
9089
+ /* @__PURE__ */ t(q, {}),
9087
9090
  E ? /* @__PURE__ */ t(
9088
9091
  Pe,
9089
9092
  {
@@ -9101,7 +9104,7 @@ const Hu = ({ activity: A }) => /* @__PURE__ */ l(eA, { children: [
9101
9104
  children: r.add_income
9102
9105
  }
9103
9106
  ),
9104
- /* @__PURE__ */ t(k, {}),
9107
+ /* @__PURE__ */ t(q, {}),
9105
9108
  /* @__PURE__ */ t(
9106
9109
  Pe,
9107
9110
  {
@@ -9111,7 +9114,7 @@ const Hu = ({ activity: A }) => /* @__PURE__ */ l(eA, { children: [
9111
9114
  symbol: "-"
9112
9115
  }
9113
9116
  ),
9114
- /* @__PURE__ */ t(k, {}),
9117
+ /* @__PURE__ */ t(q, {}),
9115
9118
  /* @__PURE__ */ t(
9116
9119
  Pe,
9117
9120
  {
@@ -9263,15 +9266,15 @@ const Hu = ({ activity: A }) => /* @__PURE__ */ l(eA, { children: [
9263
9266
  transform: rotate(360deg);
9264
9267
  }
9265
9268
  `, $u = () => {
9266
- const { addCashflowEvent: A, addCashflowSequence: e, cashflowSequences: n } = HA(), { cashflow: r, common: a } = I(), { completeOnboarding: i } = tr(), { isDirty: o } = st(), { isMobile: s } = MA(), { setDisplayedDate: c } = fA(), { filter: h, setFilter: d, transactions: u } = uA(), C = CA(), [f, m] = Ce(!0), [v, E] = g.useState(F.EveryMonth), [S, L] = Ce(!1), [w, D] = g.useState(null), [P, _] = Ce(1), [x, N] = Ce([]), [X, q] = Ce(""), j = g.useMemo(
9267
- () => u.find((cA) => cA.guid === X),
9268
- [X]
9269
+ const { addCashflowEvent: A, addCashflowSequence: e, cashflowSequences: n } = HA(), { cashflow: r, common: a } = I(), { completeOnboarding: i } = tr(), { isDirty: o } = st(), { isMobile: s } = MA(), { setDisplayedDate: c } = fA(), { filter: h, setFilter: d, transactions: u } = uA(), C = CA(), [f, m] = Ce(!0), [v, E] = g.useState(G.EveryMonth), [S, L] = Ce(!1), [w, D] = g.useState(null), [P, N] = Ce(1), [x, R] = Ce([]), [j, F] = Ce(""), X = g.useMemo(
9270
+ () => u.find((cA) => cA.guid === j),
9271
+ [j]
9269
9272
  ), Q = !!n.length, U = async () => {
9270
- _(2), c(
9273
+ N(2), c(
9271
9274
  // Beginning of the month, 90 days before today
9272
9275
  yA(de(AA(), 90)),
9273
9276
  AA()
9274
- ), d({ ...h, custom: It }), _(3);
9277
+ ), d({ ...h, custom: It }), N(3);
9275
9278
  }, rA = async () => {
9276
9279
  if (!(x.length < 1)) {
9277
9280
  L(!0);
@@ -9288,7 +9291,7 @@ const Hu = ({ activity: A }) => /* @__PURE__ */ l(eA, { children: [
9288
9291
  }
9289
9292
  i();
9290
9293
  }
9291
- }, gA = !j && f || !j && x.length < 1;
9294
+ }, gA = !X && f || !X && x.length < 1;
9292
9295
  return /* @__PURE__ */ l(
9293
9296
  O,
9294
9297
  {
@@ -9330,16 +9333,16 @@ const Hu = ({ activity: A }) => /* @__PURE__ */ l(eA, { children: [
9330
9333
  children: [
9331
9334
  /* @__PURE__ */ t(Ie, { pb: 12, children: r.add_income_title }),
9332
9335
  /* @__PURE__ */ t(zA, { mb: 24, children: r.add_income_description }),
9333
- x.length > 0 && !j && /* @__PURE__ */ l(eA, { children: [
9336
+ x.length > 0 && !X && /* @__PURE__ */ l(eA, { children: [
9334
9337
  /* @__PURE__ */ t(nA, { children: x.map((cA, vA) => /* @__PURE__ */ l(g.Fragment, { children: [
9335
9338
  /* @__PURE__ */ t(sr, { bgcolor: "background.paper", children: rn(
9336
9339
  mA(cA.nextDate || cA.date)
9337
9340
  ) }),
9338
9341
  /* @__PURE__ */ t(or, { transaction: cA }),
9339
- vA !== x.length - 1 && /* @__PURE__ */ t(k, {})
9342
+ vA !== x.length - 1 && /* @__PURE__ */ t(q, {})
9340
9343
  ] }, cA.guid)) }),
9341
9344
  /* @__PURE__ */ l(y, { alignItems: "center", direction: "row", children: [
9342
- /* @__PURE__ */ t(k, { sx: { flexGrow: 1 } }),
9345
+ /* @__PURE__ */ t(q, { sx: { flexGrow: 1 } }),
9343
9346
  /* @__PURE__ */ t(
9344
9347
  sA,
9345
9348
  {
@@ -9359,12 +9362,12 @@ const Hu = ({ activity: A }) => /* @__PURE__ */ l(eA, { children: [
9359
9362
  custom: (vA) => cA ? Mi(vA, cA) : It(vA)
9360
9363
  }),
9361
9364
  onSelected: (cA) => {
9362
- q(cA), m(!1);
9365
+ F(cA), m(!1);
9363
9366
  }
9364
9367
  }
9365
9368
  ),
9366
9369
  !Q && o && /* @__PURE__ */ t(zA, { color: "error", mt: 16, children: r.confirm_error }),
9367
- j && /* @__PURE__ */ l(eA, { children: [
9370
+ X && /* @__PURE__ */ l(eA, { children: [
9368
9371
  /* @__PURE__ */ t(
9369
9372
  Ni,
9370
9373
  {
@@ -9374,17 +9377,17 @@ const Hu = ({ activity: A }) => /* @__PURE__ */ l(eA, { children: [
9374
9377
  nextDate: w,
9375
9378
  onFrequencyChange: E,
9376
9379
  onNextDateChange: D,
9377
- transaction: j
9380
+ transaction: X
9378
9381
  }
9379
9382
  ),
9380
9383
  /* @__PURE__ */ l(y, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
9381
9384
  /* @__PURE__ */ t(
9382
9385
  sA,
9383
9386
  {
9384
- "aria-disabled": !j || !w,
9387
+ "aria-disabled": !X || !w,
9385
9388
  onClick: () => {
9386
9389
  const cA = [...x];
9387
- cA.push({ ...j, nextDate: w, frequency: v }), N(cA), q("");
9390
+ cA.push({ ...X, nextDate: w, frequency: v }), R(cA), F("");
9388
9391
  },
9389
9392
  variant: "contained",
9390
9393
  children: a.confirm_button
@@ -9394,7 +9397,7 @@ const Hu = ({ activity: A }) => /* @__PURE__ */ l(eA, { children: [
9394
9397
  sA,
9395
9398
  {
9396
9399
  onClick: () => {
9397
- q(""), m(!0), U();
9400
+ F(""), m(!0), U();
9398
9401
  },
9399
9402
  variant: "outlined",
9400
9403
  children: a.cancel_button
@@ -9402,7 +9405,7 @@ const Hu = ({ activity: A }) => /* @__PURE__ */ l(eA, { children: [
9402
9405
  )
9403
9406
  ] })
9404
9407
  ] }),
9405
- x.length > 0 && !j && /* @__PURE__ */ l(y, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
9408
+ x.length > 0 && !X && /* @__PURE__ */ l(y, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
9406
9409
  /* @__PURE__ */ t(
9407
9410
  sA,
9408
9411
  {
@@ -9453,7 +9456,7 @@ const Hu = ({ activity: A }) => /* @__PURE__ */ l(eA, { children: [
9453
9456
  label: f.cashflow_settings,
9454
9457
  iconName: "settings",
9455
9458
  onClick: () => {
9456
- v(!0), s(G.CASH_FLOW_CLICK_SETTINGS);
9459
+ v(!0), s(k.CASH_FLOW_CLICK_SETTINGS);
9457
9460
  }
9458
9461
  }
9459
9462
  ],
@@ -9466,7 +9469,7 @@ const Hu = ({ activity: A }) => /* @__PURE__ */ l(eA, { children: [
9466
9469
  },
9467
9470
  dateRange: u,
9468
9471
  dateRangeVariant: "readonly",
9469
- onAccountsFilterClick: () => s(G.CASH_FLOW_CLICK_FILTER),
9472
+ onAccountsFilterClick: () => s(k.CASH_FLOW_CLICK_FILTER),
9470
9473
  onBackClick: A,
9471
9474
  sx: e,
9472
9475
  title: f.title,
@@ -9822,10 +9825,10 @@ const uh = ({
9822
9825
  hideFooter: !0,
9823
9826
  initialState: { sorting: { sortModel: a } },
9824
9827
  onRowClick: (c) => {
9825
- e?.(c.row.category), r(G.TRENDS_CLICK_TABLE_ROW);
9828
+ e?.(c.row.category), r(k.TRENDS_CLICK_TABLE_ROW);
9826
9829
  },
9827
9830
  onSortModelChange: (c) => {
9828
- i(c), r(G.TRENDS_CLICK_TABLE_SORT);
9831
+ i(c), r(k.TRENDS_CLICK_TABLE_SORT);
9829
9832
  },
9830
9833
  rows: s,
9831
9834
  slotProps: { baseIconButton: { color: "secondary", sx: { ml: 8 } } },
@@ -9969,10 +9972,10 @@ function Eh(A, e) {
9969
9972
  style: "percent",
9970
9973
  minimumFractionDigits: 0,
9971
9974
  maximumFractionDigits: 0
9972
- }, i = e.projected_to_complete_at ? IA(e.projected_to_complete_at) : /* @__PURE__ */ new Date(), o = R(
9975
+ }, i = e.projected_to_complete_at ? IA(e.projected_to_complete_at) : /* @__PURE__ */ new Date(), o = _(
9973
9976
  A.goal_percentage,
9974
9977
  ni(n, a)
9975
- ), s = R(
9978
+ ), s = _(
9976
9979
  A.goal_projection,
9977
9980
  $(i, Z.MONTH_SHORT_YEAR)
9978
9981
  );
@@ -10036,25 +10039,25 @@ const yh = T(({ goal: A }) => {
10036
10039
  ] })
10037
10040
  ] });
10038
10041
  }), $7 = T(({ onBackClick: A, sx: e }) => {
10039
- const { onEvent: n } = V(), { isMobile: r } = MA(), { accounts: a } = TA(), { isInitialized: i, setSelectedAccounts: o } = fA(), { goals: s } = I(), { loadGoals: c } = rr(), [h, d] = g.useState(0), u = 400, C = 205, f = 624, m = R(
10042
+ const { onEvent: n } = V(), { isMobile: r } = MA(), { accounts: a } = TA(), { isInitialized: i, setSelectedAccounts: o } = fA(), { goals: s } = I(), { loadGoals: c } = rr(), [h, d] = g.useState(0), u = 400, C = 205, f = 624, m = _(
10040
10043
  r ? s.tab_subtitle_mobile : s.tab_subtitle,
10041
10044
  z(u, "0,0")
10042
- ), v = R(
10045
+ ), v = _(
10043
10046
  r ? s.tab_subtitle_mobile : s.tab_subtitle,
10044
10047
  z(C, "0,0")
10045
- ), E = R(
10048
+ ), E = _(
10046
10049
  r ? s.tab_subtitle_mobile : s.tab_subtitle,
10047
10050
  z(f, "0,0")
10048
10051
  );
10049
10052
  g.useEffect(() => {
10050
- o(a), n(G.GOALS_VIEW);
10053
+ o(a), n(k.GOALS_VIEW);
10051
10054
  }, []), g.useEffect(() => {
10052
10055
  i && c().finally();
10053
10056
  }, [i]);
10054
10057
  const S = () => {
10055
- n(G.GOALS_CLICK_FILTER);
10058
+ n(k.GOALS_CLICK_FILTER);
10056
10059
  }, L = () => {
10057
- n(G.GOALS_CLICK_ADD);
10060
+ n(k.GOALS_CLICK_ADD);
10058
10061
  };
10059
10062
  return /* @__PURE__ */ l(
10060
10063
  ue,
@@ -10191,7 +10194,7 @@ const wh = /^[ a-zA-ZÀ-ÿ0-9]+$/, Sh = 50, fa = 65, Th = ({
10191
10194
  /* @__PURE__ */ t(OA, { children: /* @__PURE__ */ t(ke, { categoryGuid: "", merchantGuid: f.guid }) }),
10192
10195
  /* @__PURE__ */ t(tA, { primary: f.name })
10193
10196
  ] }) }),
10194
- /* @__PURE__ */ t(k, { sx: { ml: 24 } })
10197
+ /* @__PURE__ */ t(q, { sx: { ml: 24 } })
10195
10198
  ]
10196
10199
  },
10197
10200
  f.guid
@@ -10451,7 +10454,7 @@ const Rh = ({
10451
10454
  )
10452
10455
  }
10453
10456
  ),
10454
- /* @__PURE__ */ t(k, {})
10457
+ /* @__PURE__ */ t(q, {})
10455
10458
  ] }, A.x);
10456
10459
  }, Bh = T(zh), Kh = ({
10457
10460
  chartData: A,
@@ -10474,7 +10477,7 @@ const Rh = ({
10474
10477
  return /* @__PURE__ */ l(y, { direction: "column", width: 320, children: [
10475
10478
  /* @__PURE__ */ l(nA, { children: [
10476
10479
  /* @__PURE__ */ t(le, { sx: { backgroundColor: "transparent", mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(p, { bold: !0, component: "h2", variant: "Body", children: s.monthly_totals }) }),
10477
- /* @__PURE__ */ t(k, {}),
10480
+ /* @__PURE__ */ t(q, {}),
10478
10481
  A.map((d, u) => /* @__PURE__ */ t(
10479
10482
  Bh,
10480
10483
  {
@@ -10541,7 +10544,7 @@ const Rh = ({
10541
10544
  ),
10542
10545
  /* @__PURE__ */ t(te, { children: r ? /* @__PURE__ */ t(M, { name: "expand_less", size: 24 }) : /* @__PURE__ */ t(M, { name: "expand_more", size: 24 }) })
10543
10546
  ] }) }),
10544
- /* @__PURE__ */ t(k, {}),
10547
+ /* @__PURE__ */ t(q, {}),
10545
10548
  /* @__PURE__ */ t(Qn, { in: r, timeout: "auto", unmountOnExit: !0, children: A.map((i, o) => /* @__PURE__ */ l(nA, { children: [
10546
10549
  /* @__PURE__ */ t(Y, { sx: () => ({ py: 14 }), children: /* @__PURE__ */ t(
10547
10550
  tA,
@@ -10553,7 +10556,7 @@ const Rh = ({
10553
10556
  sx: { pl: 72, pr: 16 }
10554
10557
  }
10555
10558
  ) }),
10556
- o < A.length - 1 ? /* @__PURE__ */ t(k, { variant: "inset" }) : /* @__PURE__ */ t(k, {})
10559
+ o < A.length - 1 ? /* @__PURE__ */ t(q, { variant: "inset" }) : /* @__PURE__ */ t(q, {})
10557
10560
  ] }, i.accountName)) })
10558
10561
  ] });
10559
10562
  }, Ea = ({ groupedAccounts: A }) => /* @__PURE__ */ t(eA, { children: A.map(({ accounts: e, icon: n, name: r }) => /* @__PURE__ */ t(Xh, { accounts: e, icon: n, name: r }, r)) }), jh = ({
@@ -10656,7 +10659,7 @@ const Rh = ({
10656
10659
  sx: { px: 16 }
10657
10660
  }
10658
10661
  ) }),
10659
- /* @__PURE__ */ t(k, {})
10662
+ /* @__PURE__ */ t(q, {})
10660
10663
  ] }, s.accountName)),
10661
10664
  /* @__PURE__ */ t(le, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(
10662
10665
  tA,
@@ -10685,7 +10688,7 @@ const Rh = ({
10685
10688
  },
10686
10689
  s.accountName
10687
10690
  ),
10688
- /* @__PURE__ */ t(k, {})
10691
+ /* @__PURE__ */ t(q, {})
10689
10692
  ] }))
10690
10693
  ] })
10691
10694
  ] });
@@ -10700,24 +10703,24 @@ const Rh = ({
10700
10703
  selectedData: C,
10701
10704
  setHoveredData: f,
10702
10705
  setSelectedData: m
10703
- } = zc(), { isMobile: v } = MA(), { onEvent: E } = V(), [S, L] = g.useState(!1), [w, D] = g.useState(6), [P, _] = g.useState(!1), [x, N] = g.useState(!1), X = async () => {
10706
+ } = zc(), { isMobile: v } = MA(), { onEvent: E } = V(), [S, L] = g.useState(!1), [w, D] = g.useState(6), [P, N] = g.useState(!1), [x, R] = g.useState(!1), j = async () => {
10704
10707
  await d(n), await h(w), L(!0);
10705
10708
  };
10706
10709
  g.useEffect(() => {
10707
- E(G.NET_WORTH_VIEW), r(i);
10710
+ E(k.NET_WORTH_VIEW), r(i);
10708
10711
  }, []), g.useEffect(() => {
10709
- e && X();
10712
+ e && j();
10710
10713
  }, [e, n]), g.useEffect(() => {
10711
- E(G.NET_WORTH_WIDGET_CLICK_TIMEFRAME, { time_period: w + "M" }), h(w);
10714
+ E(k.NET_WORTH_WIDGET_CLICK_TIMEFRAME, { time_period: w + "M" }), h(w);
10712
10715
  }, [w]);
10713
- const q = (cA, vA) => {
10714
- m(vA), cA.currentTarget instanceof HTMLDivElement && _(!0);
10715
- }, j = (cA) => {
10716
+ const F = (cA, vA) => {
10717
+ m(vA), cA.currentTarget instanceof HTMLDivElement && N(!0);
10718
+ }, X = (cA) => {
10716
10719
  f(cA);
10717
10720
  }, Q = () => {
10718
10721
  f(null);
10719
10722
  }, U = () => {
10720
- E(G.NET_WORTH_WIDGET_CLICK_ASSETS_LIABILITIES), N(!0);
10723
+ E(k.NET_WORTH_WIDGET_CLICK_ASSETS_LIABILITIES), R(!0);
10721
10724
  }, rA = async (cA) => {
10722
10725
  const vA = cA[0], $A = cA[1];
10723
10726
  vA && $A && D(ts($A, vA));
@@ -10725,8 +10728,8 @@ const Rh = ({
10725
10728
  chartData: u,
10726
10729
  hoveredData: c,
10727
10730
  onButtonClick: U,
10728
- onDataClick: q,
10729
- onMouseEnter: j,
10731
+ onDataClick: F,
10732
+ onMouseEnter: X,
10730
10733
  onMouseLeave: Q,
10731
10734
  selectedData: C
10732
10735
  };
@@ -10738,7 +10741,7 @@ const Rh = ({
10738
10741
  onRangeChanged: rA
10739
10742
  },
10740
10743
  dateRangeVariant: v ? "timeframetabs" : "timeframebuttons",
10741
- onAccountsFilterClick: () => E(G.NET_WORTH_WIDGET_CLICK_FILTER),
10744
+ onAccountsFilterClick: () => E(k.NET_WORTH_WIDGET_CLICK_FILTER),
10742
10745
  onBackClick: A,
10743
10746
  showDividerAboveDateSelector: !1,
10744
10747
  sx: { p: v ? 0 : 48 },
@@ -10762,7 +10765,7 @@ const Rh = ({
10762
10765
  {
10763
10766
  ariaLabelClose: "Close",
10764
10767
  isOpen: P,
10765
- onClose: () => _(!1),
10768
+ onClose: () => N(!1),
10766
10769
  shouldShowHeaderBorders: !1,
10767
10770
  shouldShowHeaderShadow: !0,
10768
10771
  title: a.gains_and_losses,
@@ -10774,7 +10777,7 @@ const Rh = ({
10774
10777
  {
10775
10778
  ariaLabelClose: "Close",
10776
10779
  isOpen: x,
10777
- onClose: () => N(!1),
10780
+ onClose: () => R(!1),
10778
10781
  shouldShowHeaderBorders: !1,
10779
10782
  shouldShowHeaderShadow: !0,
10780
10783
  title: a.assets_and_liabilities,
@@ -10998,7 +11001,7 @@ const Ln = ({
10998
11001
  /* @__PURE__ */ t(tA, { primary: r, secondary: a }),
10999
11002
  A
11000
11003
  ] }) }),
11001
- /* @__PURE__ */ t(k, { sx: { ml: e ? 0 : 24 } })
11004
+ /* @__PURE__ */ t(q, { sx: { ml: e ? 0 : 24 } })
11002
11005
  ] }), he = () => {
11003
11006
  if (!g.useContext(it))
11004
11007
  throw new Error("useCategoryUiStore() must be used within the GlobalDataContext");
@@ -11025,7 +11028,7 @@ const Ln = ({
11025
11028
  Ln,
11026
11029
  {
11027
11030
  onClick: () => {
11028
- m({ is_hidden: !c.is_hidden }), f(G.ACCOUNT_DETAILS_CLICK_HIDE, { account_guid: c.guid });
11031
+ m({ is_hidden: !c.is_hidden }), f(k.ACCOUNT_DETAILS_CLICK_HIDE, { account_guid: c.guid });
11029
11032
  },
11030
11033
  primaryText: c.is_hidden ? u.unhide_account : u.hide_Account,
11031
11034
  secondaryText: c.is_hidden ? u.include_this_account : u.exclude_this_account,
@@ -11036,7 +11039,7 @@ const Ln = ({
11036
11039
  Ln,
11037
11040
  {
11038
11041
  onClick: () => {
11039
- e(!0), f(G.ACCOUNT_DETAILS_CLICK_MARK_CLOSED, {
11042
+ e(!0), f(k.ACCOUNT_DETAILS_CLICK_MARK_CLOSED, {
11040
11043
  account_guid: c.guid
11041
11044
  });
11042
11045
  },
@@ -11050,7 +11053,7 @@ const Ln = ({
11050
11053
  {
11051
11054
  isLast: !0,
11052
11055
  onClick: () => {
11053
- r(!0), f(G.ACCOUNT_DETAILS_CLICK_MARK_DUPLICATE, {
11056
+ r(!0), f(k.ACCOUNT_DETAILS_CLICK_MARK_DUPLICATE, {
11054
11057
  account_guid: c.guid
11055
11058
  });
11056
11059
  },
@@ -11071,7 +11074,7 @@ const Ln = ({
11071
11074
  e(!1);
11072
11075
  },
11073
11076
  onPrimaryAction: () => m({ is_closed: !c.is_closed }),
11074
- children: R(
11077
+ children: _(
11075
11078
  c.is_closed ? u.this_will_resume_updating_the_balance : u.this_will_set_the_balance_of_your_account,
11076
11079
  c.name
11077
11080
  )
@@ -11112,7 +11115,7 @@ const Ln = ({
11112
11115
  onClose: () => i(!1),
11113
11116
  onPrimaryAction: v,
11114
11117
  children: [
11115
- R(
11118
+ _(
11116
11119
  u.this_means_accounts_will_be_merged,
11117
11120
  c.name,
11118
11121
  o.name
@@ -11128,7 +11131,7 @@ const Ln = ({
11128
11131
  case GA.CHALLENGED:
11129
11132
  return {
11130
11133
  cta: n.challenged_cta,
11131
- main: R(
11134
+ main: _(
11132
11135
  n.challenged_connection_description,
11133
11136
  A.name
11134
11137
  ),
@@ -11149,7 +11152,7 @@ const Ln = ({
11149
11152
  };
11150
11153
  case GA.DELAYED:
11151
11154
  return {
11152
- main: R(
11155
+ main: _(
11153
11156
  n.delayed_connection_description,
11154
11157
  A.name
11155
11158
  ),
@@ -11159,7 +11162,7 @@ const Ln = ({
11159
11162
  case GA.DENIED:
11160
11163
  return {
11161
11164
  cta: n.denied_cta,
11162
- main: R(
11165
+ main: _(
11163
11166
  n.denied_connection_description,
11164
11167
  A.name
11165
11168
  ),
@@ -11174,7 +11177,7 @@ const Ln = ({
11174
11177
  };
11175
11178
  case GA.DISCONNECTED:
11176
11179
  return {
11177
- main: R(
11180
+ main: _(
11178
11181
  n.disconnected_connection_description,
11179
11182
  A.name
11180
11183
  ),
@@ -11196,7 +11199,7 @@ const Ln = ({
11196
11199
  };
11197
11200
  case GA.FAILED:
11198
11201
  return {
11199
- main: R(
11202
+ main: _(
11200
11203
  n.failed_connection_description,
11201
11204
  A.name
11202
11205
  ),
@@ -11206,7 +11209,7 @@ const Ln = ({
11206
11209
  case GA.IMPAIRED:
11207
11210
  return {
11208
11211
  cta: n.impaired_cta,
11209
- main: R(
11212
+ main: _(
11210
11213
  n.impaired_connection_description,
11211
11214
  A.name
11212
11215
  ),
@@ -11215,7 +11218,7 @@ const Ln = ({
11215
11218
  };
11216
11219
  case GA.IMPEDED:
11217
11220
  return {
11218
- main: R(
11221
+ main: _(
11219
11222
  n.impeded_connection_description,
11220
11223
  A.name,
11221
11224
  A.name
@@ -11226,7 +11229,7 @@ const Ln = ({
11226
11229
  case GA.IMPORTED:
11227
11230
  return {
11228
11231
  cta: n.imported_cta,
11229
- main: R(
11232
+ main: _(
11230
11233
  n.imported_connection_description,
11231
11234
  A.name
11232
11235
  ),
@@ -11236,7 +11239,7 @@ const Ln = ({
11236
11239
  case GA.LOCKED:
11237
11240
  return {
11238
11241
  cta: n.locked_cta,
11239
- main: R(
11242
+ main: _(
11240
11243
  n.locked_connection_description,
11241
11244
  A.name
11242
11245
  ),
@@ -11261,7 +11264,7 @@ const Ln = ({
11261
11264
  const r = () => {
11262
11265
  const a = A.successfully_aggregated_at ? IA(A.successfully_aggregated_at) : void 0, i = a && $(a, Z.TIME_STAMP_HOUR_MINUTE);
11263
11266
  if (i)
11264
- return Wn(a) ? R(e.last_updated_at, e.today, i) : ws(a) ? R(e.last_updated_at, e.yesterday, i) : R(
11267
+ return Wn(a) ? _(e.last_updated_at, e.today, i) : ws(a) ? _(e.last_updated_at, e.yesterday, i) : _(
11265
11268
  e.last_updated_at,
11266
11269
  $(a, Z.MONTH_DAY_YEAR),
11267
11270
  i
@@ -11315,7 +11318,7 @@ const Ln = ({
11315
11318
  ),
11316
11319
  /* @__PURE__ */ t(M, { name: "chevron_right" })
11317
11320
  ] }) }),
11318
- /* @__PURE__ */ t(k, { sx: { ml: r.is_manual || !r.institution_url ? 0 : 24 } }),
11321
+ /* @__PURE__ */ t(q, { sx: { ml: r.is_manual || !r.institution_url ? 0 : 24 } }),
11319
11322
  !r.is_manual && r.institution_url && /* @__PURE__ */ l(eA, { children: [
11320
11323
  /* @__PURE__ */ t(Y, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ l(dA, { component: "a", href: r.institution_url, target: "_blank", children: [
11321
11324
  /* @__PURE__ */ t(OA, { children: /* @__PURE__ */ t(
@@ -11340,7 +11343,7 @@ const Ln = ({
11340
11343
  /* @__PURE__ */ t(tA, { primary: r.name, secondary: r.institution_url }),
11341
11344
  /* @__PURE__ */ t(M, { name: "launch" })
11342
11345
  ] }) }),
11343
- /* @__PURE__ */ t(k, {})
11346
+ /* @__PURE__ */ t(q, {})
11344
11347
  ] }),
11345
11348
  A && /* @__PURE__ */ t(
11346
11349
  on,
@@ -11428,7 +11431,7 @@ const Ln = ({
11428
11431
  {
11429
11432
  copy: {
11430
11433
  close_aria: i.close_aria,
11431
- title: R(i.edit_field, A.label)
11434
+ title: _(i.edit_field, A.label)
11432
11435
  },
11433
11436
  disablePrimaryButton: !!c || !d,
11434
11437
  isOpen: e,
@@ -11465,10 +11468,10 @@ const Ln = ({
11465
11468
  ]
11466
11469
  }
11467
11470
  ) }),
11468
- /* @__PURE__ */ t(k, { sx: { ml: f ? 0 : 24 } })
11471
+ /* @__PURE__ */ t(q, { sx: { ml: f ? 0 : 24 } })
11469
11472
  ] }) : C && /* @__PURE__ */ l(eA, { children: [
11470
11473
  /* @__PURE__ */ t(Y, { sx: { backgroundColor: "background.paper", px: 24 }, children: m }),
11471
- /* @__PURE__ */ t(k, { sx: { ml: f ? 0 : 24 } })
11474
+ /* @__PURE__ */ t(q, { sx: { ml: f ? 0 : 24 } })
11472
11475
  ] }) }, u.name);
11473
11476
  }),
11474
11477
  o && c && /* @__PURE__ */ t(
@@ -11482,7 +11485,7 @@ const Ln = ({
11482
11485
  ] });
11483
11486
  }, u1 = T(d1), h1 = () => {
11484
11487
  const { onEvent: A } = V();
11485
- return g.useEffect(() => A(G.ACCOUNT_DETAILS_VIEW), []), /* @__PURE__ */ l(nA, { children: [
11488
+ return g.useEffect(() => A(k.ACCOUNT_DETAILS_VIEW), []), /* @__PURE__ */ l(nA, { children: [
11486
11489
  /* @__PURE__ */ t(u1, {}),
11487
11490
  /* @__PURE__ */ t(s1, {}),
11488
11491
  /* @__PURE__ */ t(i1, {})
@@ -11550,7 +11553,7 @@ const Ln = ({
11550
11553
  dateRange: { start: rs(as(), 90), end: is() },
11551
11554
  accounts: [r.guid]
11552
11555
  });
11553
- }, [r]), g.useEffect(() => n(G.ACCOUNT_DETAILS_VIEW_TRANSACTIONS), []), /* @__PURE__ */ l(eA, { children: [
11556
+ }, [r]), g.useEffect(() => n(k.ACCOUNT_DETAILS_VIEW_TRANSACTIONS), []), /* @__PURE__ */ l(eA, { children: [
11554
11557
  /* @__PURE__ */ t(Ge, { onClick: e }),
11555
11558
  s && /* @__PURE__ */ t(
11556
11559
  lA,
@@ -11722,7 +11725,7 @@ const Ln = ({
11722
11725
  (m, v) => (v.available_balance || v.balance || 0) + m,
11723
11726
  0
11724
11727
  ), f = (m) => {
11725
- e(m.guid), s(G.ACCOUNTS_CLICK_ACCOUNT, {
11728
+ e(m.guid), s(k.ACCOUNTS_CLICK_ACCOUNT, {
11726
11729
  account_guid: m.guid,
11727
11730
  account_type: m.account_type
11728
11731
  });
@@ -11755,7 +11758,7 @@ const Ln = ({
11755
11758
  }
11756
11759
  ),
11757
11760
  !v && /* @__PURE__ */ t(
11758
- k,
11761
+ q,
11759
11762
  {
11760
11763
  sx: {
11761
11764
  mb: E ? 24 : 4,
@@ -11831,9 +11834,9 @@ const Ln = ({
11831
11834
  const f = () => {
11832
11835
  i(!0), s().finally(() => {
11833
11836
  i(!1);
11834
- }), C(G.ACCOUNTS_CLICK_SYNC);
11837
+ }), C(k.ACCOUNTS_CLICK_SYNC);
11835
11838
  }, m = () => {
11836
- r(!0), C(G.ACCOUNTS_CLICK_CONNECT);
11839
+ r(!0), C(k.ACCOUNTS_CLICK_CONNECT);
11837
11840
  };
11838
11841
  return /* @__PURE__ */ t(
11839
11842
  ue,
@@ -11851,7 +11854,7 @@ const Ln = ({
11851
11854
  onClick: f
11852
11855
  }
11853
11856
  ],
11854
- onAccountsFilterClick: () => C(G.ACCOUNTS_CLICK_FILTER),
11857
+ onAccountsFilterClick: () => C(k.ACCOUNTS_CLICK_FILTER),
11855
11858
  onBackClick: A,
11856
11859
  sx: e,
11857
11860
  title: c.title,
@@ -11896,7 +11899,7 @@ const Ln = ({
11896
11899
  shouldShowConnectionStatus: !0
11897
11900
  }
11898
11901
  ),
11899
- !h && /* @__PURE__ */ t(k, { "aria-hidden": "true", variant: "inset" })
11902
+ !h && /* @__PURE__ */ t(q, { "aria-hidden": "true", variant: "inset" })
11900
11903
  ] }, `account-item${c}`);
11901
11904
  })
11902
11905
  ] })
@@ -12731,7 +12734,7 @@ const ag = ({
12731
12734
  }, Gi = T(
12732
12735
  ({ height: A, isDraggable: e = !1, shouldShowZeroState: n, unavailableWidth: r = 24 }) => {
12733
12736
  const { onEvent: a } = V(), { setSelectedBudget: i } = kA(), { isLoadingCategoryTotals: o } = PA(), { isInitialized: s } = fA(), { availableWidth: c } = ot(), { isMobile: h } = MA(), d = g.useMemo(() => c - r, [c]), u = (C) => {
12734
- i(C), a(G.BUDGETS_CLICK_BUDGET_CATEGORY, {
12737
+ i(C), a(k.BUDGETS_CLICK_BUDGET_CATEGORY, {
12735
12738
  budget_category: C.category.name,
12736
12739
  click_type: "bubble"
12737
12740
  });
@@ -12796,7 +12799,7 @@ const ag = ({
12796
12799
  ] }) });
12797
12800
  }, lg = T(() => {
12798
12801
  const { onEvent: A } = V(), { budgets: e } = I(), { detailedBudgets: n, setSelectedBudget: r } = kA(), a = (i) => {
12799
- r(i), A(G.BUDGETS_CLICK_BUDGET_CATEGORY, {
12802
+ r(i), A(k.BUDGETS_CLICK_BUDGET_CATEGORY, {
12800
12803
  budget_category: i.category.name,
12801
12804
  click_type: "list"
12802
12805
  });
@@ -12805,26 +12808,26 @@ const ag = ({
12805
12808
  /* @__PURE__ */ t(We, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ t(xt, { children: e.budget_categories_title }) }),
12806
12809
  /* @__PURE__ */ t(De, { sx: { p: 0, ":last-child": { p: 0 } }, children: /* @__PURE__ */ t(nA, { children: n.map((i) => /* @__PURE__ */ l(g.Fragment, { children: [
12807
12810
  /* @__PURE__ */ t(cg, { budget: i, onClick: a }),
12808
- /* @__PURE__ */ t(k, {})
12811
+ /* @__PURE__ */ t(q, {})
12809
12812
  ] }, i.guid)) }) })
12810
12813
  ] });
12811
12814
  }), dg = T(() => {
12812
12815
  const A = CA(), { onEvent: e } = V(), { accounts: n } = TA(), { budgets: r, common: a, recurring: i } = I(), { incomeCategories: o, spendCategories: s } = PA(), { detailedBudgets: c, totalBudgeted: h } = kA(), { projectedIncome: d } = HA(), { setFilter: u } = uA(), [C, f] = g.useState(!1), [m, v] = g.useMemo(() => {
12813
- const w = s.reduce((x, N) => x + N.totalAmount, 0);
12816
+ const w = s.reduce((x, R) => x + R.totalAmount, 0);
12814
12817
  let D = w / h;
12815
12818
  D > 1 && (D = 1);
12816
12819
  let P = A.palette.success.main;
12817
12820
  D > 0.8 && D < 1 ? P = A.palette.warning.main : D >= 1 && (P = A.palette.error.main);
12818
- const _ = [
12821
+ const N = [
12819
12822
  {
12820
12823
  color: P,
12821
12824
  percentage: `${D}`
12822
12825
  }
12823
12826
  ];
12824
- return [w, _];
12827
+ return [w, N];
12825
12828
  }, [c, s]), [E, S] = g.useMemo(() => {
12826
12829
  const w = Math.abs(
12827
- o.reduce((_, x) => _ + x.totalAmount, 0)
12830
+ o.reduce((N, x) => N + x.totalAmount, 0)
12828
12831
  );
12829
12832
  let D = w / d;
12830
12833
  D > 1 && (D = 1);
@@ -12842,7 +12845,7 @@ const ag = ({
12842
12845
  start: de(/* @__PURE__ */ new Date(), 90),
12843
12846
  end: /* @__PURE__ */ new Date()
12844
12847
  }
12845
- }), f(!0), e(G.BUDGETS_CLICK_EDIT_INCOME);
12848
+ }), f(!0), e(k.BUDGETS_CLICK_EDIT_INCOME);
12846
12849
  };
12847
12850
  return /* @__PURE__ */ l(ve, { elevation: 2, sx: { overflow: "visible", borderRadius: 2 }, children: [
12848
12851
  /* @__PURE__ */ t(We, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ t(xt, { children: r.overview_title }) }),
@@ -12850,7 +12853,7 @@ const ag = ({
12850
12853
  /* @__PURE__ */ l(y, { gap: 8, children: [
12851
12854
  /* @__PURE__ */ t(p, { bold: !0, sx: { mb: 8 }, variant: "Body", children: r.spending_title }),
12852
12855
  /* @__PURE__ */ t(Lt, { data: v, height: 16 }),
12853
- /* @__PURE__ */ t(p, { variant: "Small", children: R(
12856
+ /* @__PURE__ */ t(p, { variant: "Small", children: _(
12854
12857
  r.spending_description,
12855
12858
  z(m, "0,0"),
12856
12859
  z(h, "0,0")
@@ -12870,7 +12873,7 @@ const ag = ({
12870
12873
  )
12871
12874
  ] }),
12872
12875
  /* @__PURE__ */ t(Lt, { data: S, height: 16 }),
12873
- /* @__PURE__ */ t(p, { variant: "Small", children: R(
12876
+ /* @__PURE__ */ t(p, { variant: "Small", children: _(
12874
12877
  r.income_description,
12875
12878
  z(E, "0,0"),
12876
12879
  z(d, "0,0")
@@ -12912,7 +12915,7 @@ const ag = ({
12912
12915
  }), hg = T(
12913
12916
  ({ category: A }) => {
12914
12917
  const { budgets: e } = I(), { budgets: n } = kA(), r = g.useMemo(() => {
12915
- const a = n.find((s) => s.category_guid === A.guid), i = z(A.totalAverageAmount, "0,0"), o = a ? R(e.recalculate_previous_budget, z(a.amount, "0,0")) : e.recalculate_new_budget;
12918
+ const a = n.find((s) => s.category_guid === A.guid), i = z(A.totalAverageAmount, "0,0"), o = a ? _(e.recalculate_previous_budget, z(a.amount, "0,0")) : e.recalculate_new_budget;
12916
12919
  return `${i} - ${o}`;
12917
12920
  }, [e, n]);
12918
12921
  return /* @__PURE__ */ l(g.Fragment, { children: [
@@ -12920,7 +12923,7 @@ const ag = ({
12920
12923
  /* @__PURE__ */ t(OA, { children: /* @__PURE__ */ t(ne, { categoryGuid: A.guid, variant: "filled" }) }),
12921
12924
  /* @__PURE__ */ t(tA, { primary: A.name, secondary: r })
12922
12925
  ] }) }),
12923
- /* @__PURE__ */ t(k, {})
12926
+ /* @__PURE__ */ t(q, {})
12924
12927
  ] }, A.guid);
12925
12928
  }
12926
12929
  ), gg = ({ onRecalculateBudgets: A }) => {
@@ -12956,11 +12959,11 @@ const ag = ({
12956
12959
  const { budgets: r } = I(), { totalBudgeted: a } = kA(), { projectedIncome: i } = HA(), o = i - a;
12957
12960
  return /* @__PURE__ */ l(y, { gap: 16, children: [
12958
12961
  /* @__PURE__ */ l(y, { children: [
12959
- /* @__PURE__ */ t(p, { children: R(
12962
+ /* @__PURE__ */ t(p, { children: _(
12960
12963
  r.add_description_top,
12961
12964
  z(o, "0,0")
12962
12965
  ) }),
12963
- /* @__PURE__ */ t(p, { children: R(r.add_description_bottom, e) })
12966
+ /* @__PURE__ */ t(p, { children: _(r.add_description_bottom, e) })
12964
12967
  ] }),
12965
12968
  /* @__PURE__ */ t(
12966
12969
  sn,
@@ -13005,7 +13008,7 @@ const ag = ({
13005
13008
  ] });
13006
13009
  }), fg = T(({ onRecalculateBudgets: A }) => {
13007
13010
  const { budgets: e } = I(), { addBudget: n, setAlert: r, unbudgetedCategories: a } = kA(), i = async (o, s) => {
13008
- await n(o, s), r(R(e.alert_budget_created, o.name));
13011
+ await n(o, s), r(_(e.alert_budget_created, o.name));
13009
13012
  };
13010
13013
  return /* @__PURE__ */ l(y, { children: [
13011
13014
  /* @__PURE__ */ t(ug, {}),
@@ -13088,7 +13091,7 @@ const ag = ({
13088
13091
  ] }),
13089
13092
  /* @__PURE__ */ t(M, { name: "chevron_right", size: 24, sx: { color: "primary.light" } })
13090
13093
  ] }) }) }) }),
13091
- /* @__PURE__ */ t(k, {}),
13094
+ /* @__PURE__ */ t(q, {}),
13092
13095
  /* @__PURE__ */ t(
13093
13096
  lA,
13094
13097
  {
@@ -13144,7 +13147,7 @@ const ag = ({
13144
13147
  /* @__PURE__ */ l(nA, { sx: { bgcolor: "background.paper" }, children: [
13145
13148
  n.length === 0 ? /* @__PURE__ */ t(mg, {}) : n.map((D) => /* @__PURE__ */ l(g.Fragment, { children: [
13146
13149
  /* @__PURE__ */ t(pg, { budget: D }),
13147
- /* @__PURE__ */ t(k, {})
13150
+ /* @__PURE__ */ t(q, {})
13148
13151
  ] }, D.guid)),
13149
13152
  /* @__PURE__ */ t(vg, { category: e, parentBudget: A })
13150
13153
  ] }),
@@ -13195,7 +13198,7 @@ const ag = ({
13195
13198
  primaryColor: "error",
13196
13199
  primaryText: "Delete",
13197
13200
  secondaryColor: "secondary",
13198
- children: /* @__PURE__ */ t(p, { variant: "Paragraph", children: R(r.delete_description, o.category.name) })
13201
+ children: /* @__PURE__ */ t(p, { variant: "Paragraph", children: _(r.delete_description, o.category.name) })
13199
13202
  }
13200
13203
  )
13201
13204
  ] })
@@ -13264,7 +13267,7 @@ const ag = ({
13264
13267
  i && !o && (L(`${i.amount}`), C(!0), d({
13265
13268
  accounts: A,
13266
13269
  dateRange: r,
13267
- custom: (_) => _.category_guid === i.category_guid || _.top_level_category_guid === i.category_guid
13270
+ custom: (N) => N.category_guid === i.category_guid || N.top_level_category_guid === i.category_guid
13268
13271
  }));
13269
13272
  }, [i]);
13270
13273
  const w = async () => {
@@ -13272,9 +13275,9 @@ const ag = ({
13272
13275
  ...i,
13273
13276
  amount: Number(S),
13274
13277
  percentage: i.category.totalAmount / Number(S) * 100
13275
- }), s(R(e.alert_budget_updated, i.category.name)));
13278
+ }), s(_(e.alert_budget_updated, i.category.name)));
13276
13279
  }, D = async () => {
13277
- i && (await a(i.guid), s(R(e.alert_budget_deleted, i.category.name))), E(!1), P();
13280
+ i && (await a(i.guid), s(_(e.alert_budget_deleted, i.category.name))), E(!1), P();
13278
13281
  }, P = () => {
13279
13282
  C(!1), setTimeout(() => {
13280
13283
  c(void 0);
@@ -13326,25 +13329,25 @@ const ag = ({
13326
13329
  primaryColor: "error",
13327
13330
  primaryText: e.details_delete_button,
13328
13331
  secondaryColor: "secondary",
13329
- children: /* @__PURE__ */ t(p, { variant: "Paragraph", children: R(e.delete_description, i.category.name) })
13332
+ children: /* @__PURE__ */ t(p, { variant: "Paragraph", children: _(e.delete_description, i.category.name) })
13330
13333
  }
13331
13334
  )
13332
13335
  ] });
13333
13336
  }), Ta = 480, lf = T(({ onBackClick: A, sx: e }) => {
13334
- const n = CA(), { onEvent: r } = V(), { accounts: a } = TA(), { budgets: i, common: o } = I(), { isInitialized: s, selectedAccounts: c, setDisplayedDate: h, setSelectedAccounts: d } = fA(), { alert: u, dateRange: C, loadBudgets: f, setDateRange: m, setAlert: v, setTheme: E } = kA(), { loadCashflowSequences: S } = HA(), { isDesktop: L, isTablet: w } = MA(), { reloadCategoryTotals: D } = PA(), [P, _] = g.useState(!1), [x, N] = g.useState(!1);
13337
+ const n = CA(), { onEvent: r } = V(), { accounts: a } = TA(), { budgets: i, common: o } = I(), { isInitialized: s, selectedAccounts: c, setDisplayedDate: h, setSelectedAccounts: d } = fA(), { alert: u, dateRange: C, loadBudgets: f, setDateRange: m, setAlert: v, setTheme: E } = kA(), { loadCashflowSequences: S } = HA(), { isDesktop: L, isTablet: w } = MA(), { reloadCategoryTotals: D } = PA(), [P, N] = g.useState(!1), [x, R] = g.useState(!1);
13335
13338
  g.useEffect(() => {
13336
- E(n), d(a), h(C.start, C.end), r(G.BUDGETS_VIEW);
13339
+ E(n), d(a), h(C.start, C.end), r(k.BUDGETS_VIEW);
13337
13340
  }, []), g.useEffect(() => {
13338
- s && (D(c, C.start, C.end).finally(), P || (S().finally(), f().finally(() => _(!0))));
13341
+ s && (D(c, C.start, C.end).finally(), P || (S().finally(), f().finally(() => N(!0))));
13339
13342
  }, [s, c, C]);
13340
- const X = (rA) => {
13343
+ const j = (rA) => {
13341
13344
  m({ start: rA[0] || /* @__PURE__ */ new Date(), end: rA[1] || /* @__PURE__ */ new Date() });
13342
- }, q = () => {
13343
- r(G.BUDGETS_CLICK_FILTER);
13344
- }, j = () => {
13345
- N(!0), r(G.BUDGETS_CLICK_ADD);
13345
+ }, F = () => {
13346
+ r(k.BUDGETS_CLICK_FILTER);
13347
+ }, X = () => {
13348
+ R(!0), r(k.BUDGETS_CLICK_ADD);
13346
13349
  }, Q = () => {
13347
- N(!1);
13350
+ R(!1);
13348
13351
  }, U = nt(C.end, yA(/* @__PURE__ */ new Date()));
13349
13352
  return !s || !P ? /* @__PURE__ */ t(QA, {}) : /* @__PURE__ */ l(
13350
13353
  ue,
@@ -13354,11 +13357,11 @@ const ag = ({
13354
13357
  {
13355
13358
  iconName: "add",
13356
13359
  label: i.add_title,
13357
- onClick: j
13360
+ onClick: X
13358
13361
  }
13359
13362
  ],
13360
- calendarActions: { onRangeChanged: X, shouldDisableNext: U },
13361
- onAccountsFilterClick: q,
13363
+ calendarActions: { onRangeChanged: j, shouldDisableNext: U },
13364
+ onAccountsFilterClick: F,
13362
13365
  onBackClick: A,
13363
13366
  sx: e,
13364
13367
  title: i.budgets_title,
@@ -13394,7 +13397,7 @@ const ag = ({
13394
13397
  {
13395
13398
  ariaLabelClose: o.close_aria,
13396
13399
  isOpen: x,
13397
- onClose: () => N(!1),
13400
+ onClose: () => R(!1),
13398
13401
  title: i.add_new_title,
13399
13402
  children: /* @__PURE__ */ t(fg, { onRecalculateBudgets: Q })
13400
13403
  }
@@ -13544,7 +13547,7 @@ const wg = () => {
13544
13547
  ),
13545
13548
  /* @__PURE__ */ t(Fn, { checked: !u.is_hidden })
13546
13549
  ] }) }),
13547
- /* @__PURE__ */ t(k, { sx: { ml: C < A.length - 1 ? 24 : 0 } })
13550
+ /* @__PURE__ */ t(q, { sx: { ml: C < A.length - 1 ? 24 : 0 } })
13548
13551
  ] }, u.guid)),
13549
13552
  /* @__PURE__ */ l(
13550
13553
  DA,
@@ -13597,7 +13600,7 @@ const wg = () => {
13597
13600
  ),
13598
13601
  /* @__PURE__ */ t(Ps, { sx: { fontSize: 22 } })
13599
13602
  ] }) }),
13600
- /* @__PURE__ */ t(k, {})
13603
+ /* @__PURE__ */ t(q, {})
13601
13604
  ] });
13602
13605
  }, uf = ({ content: A, manageAccountsStore: e }) => {
13603
13606
  const { groupedAccounts: n, toggleAccount: r } = e, [a, i] = g.useState(!1);
@@ -13628,7 +13631,7 @@ const wg = () => {
13628
13631
  },
13629
13632
  title: A.manage_accounts,
13630
13633
  children: [
13631
- /* @__PURE__ */ t(k, {}),
13634
+ /* @__PURE__ */ t(q, {}),
13632
13635
  /* @__PURE__ */ t(nA, { sx: { height: "100%" }, children: n.map(({ accountType: o, accounts: s, title: c }) => /* @__PURE__ */ t(
13633
13636
  Lg,
13634
13637
  {
@@ -13775,8 +13778,8 @@ const Ui = ({
13775
13778
  }, [f, a, c, d]);
13776
13779
  const m = (w) => {
13777
13780
  const { name: D, checked: P } = w.target;
13778
- d((_) => ({
13779
- ..._,
13781
+ d((N) => ({
13782
+ ...N,
13780
13783
  [D]: P
13781
13784
  }));
13782
13785
  }, v = Object.values(h).filter(Boolean).length, E = () => {
@@ -13811,7 +13814,7 @@ const Ui = ({
13811
13814
  },
13812
13815
  title: o.replace(/&amp;/g, "&"),
13813
13816
  children: [
13814
- /* @__PURE__ */ t(k, {}),
13817
+ /* @__PURE__ */ t(q, {}),
13815
13818
  /* @__PURE__ */ t(O, { px: 24, py: 16, children: /* @__PURE__ */ t(
13816
13819
  p,
13817
13820
  {
@@ -13824,7 +13827,7 @@ const Ui = ({
13824
13827
  children: A.select_insights_for_feed
13825
13828
  }
13826
13829
  ) }),
13827
- /* @__PURE__ */ t(k, {}),
13830
+ /* @__PURE__ */ t(q, {}),
13828
13831
  /* @__PURE__ */ l(y, { height: "calc(100vh - 142px)", children: [
13829
13832
  /* @__PURE__ */ t(
13830
13833
  nA,
@@ -13895,7 +13898,7 @@ const Ui = ({
13895
13898
  ]
13896
13899
  }
13897
13900
  ) }),
13898
- /* @__PURE__ */ t(k, { sx: { ml: D < e.length - 1 ? 24 : 0 } })
13901
+ /* @__PURE__ */ t(q, { sx: { ml: D < e.length - 1 ? 24 : 0 } })
13899
13902
  ] }, D))
13900
13903
  }
13901
13904
  ),
@@ -14021,16 +14024,16 @@ const Ui = ({
14021
14024
  me(() => {
14022
14025
  P && !i && (a ? d(A.something_went_wrong, "error") : d(void 0, "success"));
14023
14026
  }, [P, a]);
14024
- const _ = () => {
14027
+ const N = () => {
14025
14028
  C(
14026
14029
  n.length > 1 ? A.insights_unhidden : A.insight_unhidden
14027
- ), r(n.map((q) => q.name));
14028
- }, x = (q, j) => {
14029
- E(!0), L(q), D(j);
14030
- }, N = () => {
14030
+ ), r(n.map((F) => F.name));
14031
+ }, x = (F, X) => {
14032
+ E(!0), L(F), D(X);
14033
+ }, R = () => {
14031
14034
  E(!1), D(""), L("");
14032
- }, X = (q, j) => {
14033
- r(q), j && E(!1), C(q.length > 1 ? A.insights_unhidden : A.insight_unhidden);
14035
+ }, j = (F, X) => {
14036
+ r(F), X && E(!1), C(F.length > 1 ? A.insights_unhidden : A.insight_unhidden);
14034
14037
  };
14035
14038
  return /* @__PURE__ */ l(eA, { children: [
14036
14039
  /* @__PURE__ */ t(
@@ -14056,31 +14059,31 @@ const Ui = ({
14056
14059
  },
14057
14060
  title: A.manage_hidden_insights,
14058
14061
  children: [
14059
- /* @__PURE__ */ t(k, {}),
14062
+ /* @__PURE__ */ t(q, {}),
14060
14063
  /* @__PURE__ */ l(y, { height: "calc(100vh - 61px)", children: [
14061
14064
  n.length > 0 ? /* @__PURE__ */ t(nA, { sx: { height: "100%" }, children: o.map(
14062
- (q) => s[q.key] !== "" && /* @__PURE__ */ t(
14065
+ (F) => s[F.key] !== "" && /* @__PURE__ */ t(
14063
14066
  nA,
14064
14067
  {
14065
- subheader: /* @__PURE__ */ t(vr, { children: s[q.key] }),
14066
- children: q.subcategories.map(
14067
- (j, Q) => j.beats.length > 0 && /* @__PURE__ */ l(O, { children: [
14068
+ subheader: /* @__PURE__ */ t(vr, { children: s[F.key] }),
14069
+ children: F.subcategories.map(
14070
+ (X, Q) => X.beats.length > 0 && /* @__PURE__ */ l(O, { children: [
14068
14071
  /* @__PURE__ */ t(Y, { disablePadding: !0, children: /* @__PURE__ */ l(
14069
14072
  dA,
14070
14073
  {
14071
- onClick: () => x(q.key, j.key),
14074
+ onClick: () => x(F.key, X.key),
14072
14075
  children: [
14073
14076
  /* @__PURE__ */ t(
14074
14077
  tA,
14075
14078
  {
14076
- primary: c[j.key].replace(
14079
+ primary: c[X.key].replace(
14077
14080
  /&amp;/g,
14078
14081
  "&"
14079
14082
  ),
14080
14083
  secondary: /* @__PURE__ */ l(g.Fragment, { children: [
14081
- j.beats.length,
14084
+ X.beats.length,
14082
14085
  " ",
14083
- j.beats.length > 1 ? A.insights_hidden : A.insight_hidden
14086
+ X.beats.length > 1 ? A.insights_hidden : A.insight_hidden
14084
14087
  ] })
14085
14088
  }
14086
14089
  ),
@@ -14089,15 +14092,15 @@ const Ui = ({
14089
14092
  }
14090
14093
  ) }),
14091
14094
  /* @__PURE__ */ t(
14092
- k,
14095
+ q,
14093
14096
  {
14094
- sx: { ml: Q < q.subcategories.length - 1 ? 24 : 0 }
14097
+ sx: { ml: Q < F.subcategories.length - 1 ? 24 : 0 }
14095
14098
  }
14096
14099
  )
14097
- ] }, j.key)
14100
+ ] }, X.key)
14098
14101
  )
14099
14102
  },
14100
- q.key
14103
+ F.key
14101
14104
  )
14102
14105
  ) }) : /* @__PURE__ */ t(xg, { content: A }),
14103
14106
  /* @__PURE__ */ l(O, { boxSizing: "border-box", pb: 32, pt: 24, px: 24, children: [
@@ -14107,7 +14110,7 @@ const Ui = ({
14107
14110
  color: "primary",
14108
14111
  fullWidth: !0,
14109
14112
  loading: i,
14110
- onClick: _,
14113
+ onClick: N,
14111
14114
  variant: "contained",
14112
14115
  children: A.show_all_hidden_insights
14113
14116
  }
@@ -14132,11 +14135,11 @@ const Ui = ({
14132
14135
  Pg,
14133
14136
  {
14134
14137
  content: A,
14135
- disabledBeatTemplates: w !== "" ? o.filter((q) => q.key === S)[0].subcategories.filter((q) => q.key === w)[0].beats : [],
14136
- handleEnableBeatTemplates: X,
14138
+ disabledBeatTemplates: w !== "" ? o.filter((F) => F.key === S)[0].subcategories.filter((F) => F.key === w)[0].beats : [],
14139
+ handleEnableBeatTemplates: j,
14137
14140
  isOpen: v,
14138
14141
  isUpdateLoading: i,
14139
- onClose: N,
14142
+ onClose: R,
14140
14143
  translatedSubCatetgory: c[w]
14141
14144
  }
14142
14145
  )
@@ -14168,7 +14171,7 @@ const Ui = ({
14168
14171
  shouldShowHeaderBorders: !1,
14169
14172
  title: e.settings,
14170
14173
  children: /* @__PURE__ */ l(nA, { children: [
14171
- /* @__PURE__ */ t(k, {}),
14174
+ /* @__PURE__ */ t(q, {}),
14172
14175
  A
14173
14176
  ] })
14174
14177
  }
@@ -15430,7 +15433,7 @@ const Pt = g.createContext(null), Gg = ({
15430
15433
  top: 0,
15431
15434
  behavior: "smooth"
15432
15435
  });
15433
- }, _ = () => {
15436
+ }, N = () => {
15434
15437
  D(oe.ON_CAROUSEL_BACK_CLICK), C.current && C.current.scrollTo({
15435
15438
  left: (C.current.offsetWidth + 8) * (Math.floor(f / (C.current.offsetWidth + 8)) - 1),
15436
15439
  top: 0,
@@ -15438,14 +15441,14 @@ const Pt = g.createContext(null), Gg = ({
15438
15441
  });
15439
15442
  }, x = () => {
15440
15443
  C.current && m(C.current.scrollLeft);
15441
- }, N = () => {
15444
+ }, R = () => {
15442
15445
  if (!S || !v) return;
15443
15446
  S - v > Jg ? D(oe.ON_CAROUSEL_FORWARD_SWIPE) : D(oe.ON_CAROUSEL_BACK_SWIPE);
15444
- }, X = (rA) => {
15447
+ }, j = (rA) => {
15445
15448
  E(rA.targetTouches[0].clientX);
15446
- }, q = (rA) => {
15449
+ }, F = (rA) => {
15447
15450
  E(null), L(rA.targetTouches[0].clientX);
15448
- }, j = {
15451
+ }, X = {
15449
15452
  clientColorScheme: e,
15450
15453
  showCTAColocatedWithText: n,
15451
15454
  heightOverrides: r,
@@ -15459,15 +15462,15 @@ const Pt = g.createContext(null), Gg = ({
15459
15462
  {
15460
15463
  className: "mx-insights-micro-carousel-container",
15461
15464
  onScroll: x,
15462
- onTouchEnd: N,
15463
- onTouchMove: X,
15464
- onTouchStart: q,
15465
+ onTouchEnd: R,
15466
+ onTouchMove: j,
15467
+ onTouchStart: F,
15465
15468
  ref: C,
15466
15469
  children: [
15467
15470
  A.map((rA, gA) => /* @__PURE__ */ t(
15468
15471
  $g,
15469
15472
  {
15470
- ariaLabel: R(
15473
+ ariaLabel: _(
15471
15474
  w.card_position_in_carousel_aria,
15472
15475
  gA + 1,
15473
15476
  A.length + 1
@@ -15477,7 +15480,7 @@ const Pt = g.createContext(null), Gg = ({
15477
15480
  isActiveCard: gA === Q,
15478
15481
  onCardClick: a,
15479
15482
  posthog: i,
15480
- ...j
15483
+ ...X
15481
15484
  },
15482
15485
  `${rA.guid} ${gA}`
15483
15486
  )),
@@ -15486,7 +15489,7 @@ const Pt = g.createContext(null), Gg = ({
15486
15489
  {
15487
15490
  isActiveCard: Q === A.length,
15488
15491
  onCardClick: a,
15489
- ...j
15492
+ ...X
15490
15493
  }
15491
15494
  )
15492
15495
  ]
@@ -15499,7 +15502,7 @@ const Pt = g.createContext(null), Gg = ({
15499
15502
  currentBeatIndex: Q,
15500
15503
  numBeats: A.length + 1,
15501
15504
  onNextClick: P,
15502
- onPreviousClick: _,
15505
+ onPreviousClick: N,
15503
15506
  scrollRightBoundary: U,
15504
15507
  scrollX: f
15505
15508
  }
@@ -15553,7 +15556,7 @@ const Pt = g.createContext(null), Gg = ({
15553
15556
  g.useEffect(() => {
15554
15557
  v && v <= 325 && L(3), v && v > 325 && L(2);
15555
15558
  }, [v]);
15556
- const { cardStyle: w, linkTextStyle: D } = u, P = m ? w : { border: "none", boxShadow: "none", ...w }, _ = aC(
15559
+ const { cardStyle: w, linkTextStyle: D } = u, P = m ? w : { border: "none", boxShadow: "none", ...w }, N = aC(
15557
15560
  P,
15558
15561
  a,
15559
15562
  C,
@@ -15565,7 +15568,7 @@ const Pt = g.createContext(null), Gg = ({
15565
15568
  "li",
15566
15569
  {
15567
15570
  "aria-hidden": !c,
15568
- className: _,
15571
+ className: N,
15569
15572
  onClick: () => h(),
15570
15573
  ref: E,
15571
15574
  role: "button",
@@ -15763,16 +15766,16 @@ const Pt = g.createContext(null), Gg = ({
15763
15766
  variant: w,
15764
15767
  widthOverrides: D
15765
15768
  }) => {
15766
- const [P, _] = Ce("STANDARD"), [x, N] = Ce(!1), X = cc([c], ye), q = lc([h], ye);
15769
+ const [P, N] = Ce("STANDARD"), [x, R] = Ce(!1), j = cc([c], ye), F = lc([h], ye);
15767
15770
  g.useEffect(() => {
15768
15771
  ye.isInitialized || ye.initialize(a, E, o);
15769
15772
  }, [a, E, o, ye.isInitialized]), g.useEffect(() => {
15770
15773
  const U = window.innerHeight;
15771
- U < 180 ? _("STANDARD") : U >= 180 && U < 200 ? _("LARGE") : U >= 200 && U < 248 ? _("XLARGE") : U >= 248 && _("XXLARGE");
15774
+ U < 180 ? N("STANDARD") : U >= 180 && U < 200 ? N("LARGE") : U >= 200 && U < 248 ? N("XLARGE") : U >= 248 && N("XXLARGE");
15772
15775
  }, [window.innerHeight]), g.useEffect(() => {
15773
- N(!A && ye.isInitialized);
15776
+ R(!A && ye.isInitialized);
15774
15777
  }, [A, ye.isInitialized]);
15775
- const j = {
15778
+ const X = {
15776
15779
  showCTAColocatedWithText: r,
15777
15780
  heightOverrides: i,
15778
15781
  onCardClick: s,
@@ -15784,13 +15787,13 @@ const Pt = g.createContext(null), Gg = ({
15784
15787
  carouselSize: P,
15785
15788
  posthog: d,
15786
15789
  variant: w,
15787
- ...j
15790
+ ...X
15788
15791
  };
15789
15792
  return (
15790
15793
  // The Theme provider must wrap the component so that the styles don't break when imported into other applications.
15791
15794
  /* @__PURE__ */ l(Do, { theme: go(S ? "dark" : "light"), children: [
15792
15795
  /* @__PURE__ */ t(zs, {}),
15793
- /* @__PURE__ */ t(Gg, { onEvent: X, onPageview: q, store: ye, children: /* @__PURE__ */ l(
15796
+ /* @__PURE__ */ t(Gg, { onEvent: j, onPageview: F, store: ye, children: /* @__PURE__ */ l(
15794
15797
  O,
15795
15798
  {
15796
15799
  sx: {
@@ -15817,7 +15820,7 @@ const Pt = g.createContext(null), Gg = ({
15817
15820
  clientColorScheme: n,
15818
15821
  showCarouselControls: C,
15819
15822
  variant: u ? w : void 0,
15820
- ...j
15823
+ ...X
15821
15824
  }
15822
15825
  ),
15823
15826
  x && !e.length && L && /* @__PURE__ */ t(dC, { clientColorScheme: n, ...Q }),
@@ -16236,7 +16239,7 @@ const Pt = g.createContext(null), Gg = ({
16236
16239
  const { spending: a } = I(), i = A.categoryData.find((o) => o.guid === n);
16237
16240
  return /* @__PURE__ */ l(y, { direction: "column", justifyContent: "center", maxWidth: 400, minWidth: 275, width: "100%", children: [
16238
16241
  /* @__PURE__ */ t(p, { bold: !0, sx: { py: 12 }, children: `${r} ${a.by_category}` }),
16239
- /* @__PURE__ */ t(k, { "aria-hidden": "true" }),
16242
+ /* @__PURE__ */ t(q, { "aria-hidden": "true" }),
16240
16243
  /* @__PURE__ */ t(nA, { children: A.categoryData.map((o) => /* @__PURE__ */ l(g.Fragment, { children: [
16241
16244
  /* @__PURE__ */ t(
16242
16245
  Y,
@@ -16281,7 +16284,7 @@ const Pt = g.createContext(null), Gg = ({
16281
16284
  )
16282
16285
  }
16283
16286
  ),
16284
- /* @__PURE__ */ t(k, {}),
16287
+ /* @__PURE__ */ t(q, {}),
16285
16288
  o.categoryTotals && o.categoryTotals.length > 0 && /* @__PURE__ */ t(Qn, { in: i?.guid === o.guid, unmountOnExit: !0, children: /* @__PURE__ */ l(nA, { children: [
16286
16289
  i?.categoryTotals?.map((s) => /* @__PURE__ */ t(
16287
16290
  Y,
@@ -16301,7 +16304,7 @@ const Pt = g.createContext(null), Gg = ({
16301
16304
  },
16302
16305
  s.guid
16303
16306
  )),
16304
- /* @__PURE__ */ t(k, {})
16307
+ /* @__PURE__ */ t(q, {})
16305
16308
  ] }) })
16306
16309
  ] }, o.guid)) }),
16307
16310
  /* @__PURE__ */ t(p, { bold: !0, sx: { mt: 12, pr: 8, textAlign: "right" }, children: `${a.total}: ${z(A.totalAmount, "0,0")}` })
@@ -16379,33 +16382,33 @@ const Pt = g.createContext(null), Gg = ({
16379
16382
  () => no(e, n, SC(A)),
16380
16383
  [e, n]
16381
16384
  ), D = g.useMemo(
16382
- () => h.find((N) => N.guid === m),
16385
+ () => h.find((R) => R.guid === m),
16383
16386
  [m]
16384
- ), P = (N, X) => {
16385
- f(X), u("");
16386
- }, _ = (N) => {
16387
- u(d === N || N === "0" ? "" : N);
16388
- }, x = (N) => {
16389
- const X = {
16387
+ ), P = (R, j) => {
16388
+ f(j), u("");
16389
+ }, N = (R) => {
16390
+ u(d === R || R === "0" ? "" : R);
16391
+ }, x = (R) => {
16392
+ const j = {
16390
16393
  accounts: s,
16391
16394
  dateRange: i
16392
16395
  };
16393
16396
  if (C === 0)
16394
- if (N === "other") {
16395
- const q = L.categoryData.find((j) => j.guid === "other");
16397
+ if (R === "other") {
16398
+ const F = L.categoryData.find((X) => X.guid === "other");
16396
16399
  c({
16397
- ...X,
16398
- custom: (j) => !!q?.categoryTotals?.find((Q) => Q.guid === j.top_level_category_guid)
16400
+ ...j,
16401
+ custom: (X) => !!F?.categoryTotals?.find((Q) => Q.guid === X.top_level_category_guid)
16399
16402
  });
16400
16403
  } else
16401
16404
  c({
16402
- ...X,
16403
- custom: (q) => N ? q.top_level_category_guid === N : q.top_level_category_guid !== b.INCOME
16405
+ ...j,
16406
+ custom: (F) => R ? F.top_level_category_guid === R : F.top_level_category_guid !== b.INCOME
16404
16407
  });
16405
16408
  else
16406
16409
  c({
16407
- ...X,
16408
- custom: (q) => N ? q.category_guid === N : q.top_level_category_guid === b.INCOME
16410
+ ...j,
16411
+ custom: (F) => R ? F.category_guid === R : F.top_level_category_guid === b.INCOME
16409
16412
  });
16410
16413
  S(!0);
16411
16414
  };
@@ -16440,7 +16443,7 @@ const Pt = g.createContext(null), Gg = ({
16440
16443
  Ma,
16441
16444
  {
16442
16445
  data: L,
16443
- onSelected: _,
16446
+ onSelected: N,
16444
16447
  onViewTransactions: x,
16445
16448
  selectedId: d,
16446
16449
  title: a.spend_tab_title
@@ -16450,7 +16453,7 @@ const Pt = g.createContext(null), Gg = ({
16450
16453
  Ma,
16451
16454
  {
16452
16455
  data: w,
16453
- onSelected: _,
16456
+ onSelected: N,
16454
16457
  onViewTransactions: x,
16455
16458
  selectedId: d,
16456
16459
  title: a.income_tab_title
@@ -16482,7 +16485,7 @@ const Pt = g.createContext(null), Gg = ({
16482
16485
  g.useEffect(() => {
16483
16486
  o(n);
16484
16487
  }, [n]), g.useEffect(() => {
16485
- i(yA(AA()), NA(AA())), h(!0), s(G.SPENDING_VIEW);
16488
+ i(yA(AA()), NA(AA())), h(!0), s(k.SPENDING_VIEW);
16486
16489
  }, []);
16487
16490
  const d = (u) => {
16488
16491
  i(u[0], u[1]);
@@ -16492,7 +16495,7 @@ const Pt = g.createContext(null), Gg = ({
16492
16495
  {
16493
16496
  accountOptions: n,
16494
16497
  calendarActions: { onRangeChanged: d },
16495
- onAccountsFilterClick: () => s(G.SPENDING_CLICK_FILTER),
16498
+ onAccountsFilterClick: () => s(k.SPENDING_CLICK_FILTER),
16496
16499
  onBackClick: A,
16497
16500
  sx: e,
16498
16501
  title: r.title,
@@ -16543,7 +16546,7 @@ const Pt = g.createContext(null), Gg = ({
16543
16546
  /* @__PURE__ */ t(
16544
16547
  O,
16545
16548
  {
16546
- "aria-label": R(n.category_icon_label_aria, r),
16549
+ "aria-label": _(n.category_icon_label_aria, r),
16547
16550
  role: "img",
16548
16551
  children: /* @__PURE__ */ t(ne, { categoryGuid: e })
16549
16552
  }
@@ -16611,8 +16614,8 @@ const Pt = g.createContext(null), Gg = ({
16611
16614
  category_guid: E,
16612
16615
  top_level_category_guid: S
16613
16616
  });
16614
- const _ = $(new Date(D, L, 1), Z.MONTH_SHORT);
16615
- return m[P][_] = w, m;
16617
+ const N = $(new Date(D, L, 1), Z.MONTH_SHORT);
16618
+ return m[P][N] = w, m;
16616
16619
  },
16617
16620
  {}
16618
16621
  );
@@ -16627,10 +16630,10 @@ const Pt = g.createContext(null), Gg = ({
16627
16630
  hideFooter: !0,
16628
16631
  initialState: { sorting: { sortModel: s } },
16629
16632
  onRowClick: (C) => {
16630
- n?.(C.row.category), i(G.TRENDS_CLICK_TABLE_ROW);
16633
+ n?.(C.row.category), i(k.TRENDS_CLICK_TABLE_ROW);
16631
16634
  },
16632
16635
  onSortModelChange: (C) => {
16633
- c(C), i(G.TRENDS_CLICK_TABLE_SORT);
16636
+ c(C), i(k.TRENDS_CLICK_TABLE_SORT);
16634
16637
  },
16635
16638
  rows: u,
16636
16639
  slotProps: { baseIconButton: { color: "secondary", sx: { ml: 8 } } },
@@ -16653,7 +16656,7 @@ const Pt = g.createContext(null), Gg = ({
16653
16656
  dateRange: e,
16654
16657
  custom: (f) => A === "" || A === f.category_guid || A === f.top_level_category_guid
16655
16658
  });
16656
- }, [i, A, e]), g.useEffect(() => a(G.TRENDS_VIEW_TRANSACTIONS), []);
16659
+ }, [i, A, e]), g.useEffect(() => a(k.TRENDS_VIEW_TRANSACTIONS), []);
16657
16660
  const C = () => {
16658
16661
  d(""), r();
16659
16662
  };
@@ -16673,79 +16676,79 @@ const Pt = g.createContext(null), Gg = ({
16673
16676
  }, KC = T(BC), qC = {
16674
16677
  view_transactions: "View Transactions"
16675
16678
  }, kC = ({ onBackClick: A, sx: e }) => {
16676
- const n = re(), { onEvent: r } = V(), { isDesktop: a, isTablet: i, isMobile: o } = MA(), { accounts: s } = TA(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: h } = PA(), { sortedTransactions: d } = uA(), { isInitialized: u, selectedAccounts: C, setSelectedAccounts: f } = fA(), { trends: m } = I(), v = n.palette.mode === "dark", [E, S] = g.useState(!1), [L, w] = g.useState(!1), [D, P] = g.useState("Chart"), [_, x] = g.useState(""), [N, X] = g.useState({
16679
+ const n = re(), { onEvent: r } = V(), { isDesktop: a, isTablet: i, isMobile: o } = MA(), { accounts: s } = TA(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: h } = PA(), { sortedTransactions: d } = uA(), { isInitialized: u, selectedAccounts: C, setSelectedAccounts: f } = fA(), { trends: m } = I(), v = n.palette.mode === "dark", [E, S] = g.useState(!1), [L, w] = g.useState(!1), [D, P] = g.useState("Chart"), [N, x] = g.useState(""), [R, j] = g.useState({
16677
16680
  start: yA(ce(/* @__PURE__ */ new Date(), 5)),
16678
16681
  end: NA(/* @__PURE__ */ new Date())
16679
- }), [q, j] = g.useState(6);
16682
+ }), [F, X] = g.useState(6);
16680
16683
  g.useEffect(() => {
16681
16684
  f(s);
16682
16685
  }, [s]), g.useEffect(() => {
16683
16686
  u && c(
16684
16687
  C,
16685
- N.start,
16686
- N.end
16688
+ R.start,
16689
+ R.end
16687
16690
  ).finally(() => {
16688
16691
  S(!0);
16689
16692
  });
16690
- }, [u, C, N]);
16693
+ }, [u, C, R]);
16691
16694
  const Q = g.useMemo(
16692
16695
  () => PC(h),
16693
16696
  [h]
16694
16697
  ), U = g.useMemo(() => {
16695
- const pA = _.length ? Q.filter(
16696
- (EA) => EA.top_level_category_guid === _ || EA.category_guid === _
16698
+ const pA = N.length ? Q.filter(
16699
+ (EA) => EA.top_level_category_guid === N || EA.category_guid === N
16697
16700
  ) : w1(Q), K = pA.filter(y1), hA = pA.filter(gn);
16698
16701
  return {
16699
16702
  stackedDatasets: K,
16700
16703
  unstackedDatasets: hA
16701
16704
  };
16702
- }, [Q, _]), rA = g.useMemo(() => {
16705
+ }, [Q, N]), rA = g.useMemo(() => {
16703
16706
  const pA = _a(
16704
16707
  U.stackedDatasets,
16705
- q
16708
+ F
16706
16709
  ), K = _a(
16707
16710
  U.unstackedDatasets,
16708
- q
16711
+ F
16709
16712
  );
16710
16713
  return {
16711
16714
  stackedDatasets: pA,
16712
16715
  unstackedDatasets: K
16713
16716
  };
16714
- }, [U, q]), gA = g.useMemo(() => {
16717
+ }, [U, F]), gA = g.useMemo(() => {
16715
16718
  const pA = $(
16716
- N.start,
16719
+ R.start,
16717
16720
  o ? Z.MONTH_SHORT_YEAR : Z.MONTH_YEAR
16718
16721
  ), K = $(
16719
- N.end,
16722
+ R.end,
16720
16723
  o ? Z.MONTH_SHORT_YEAR : Z.MONTH_YEAR
16721
16724
  );
16722
16725
  return `${pA} - ${K}`;
16723
- }, [N, o]), cA = (pA, K) => {
16724
- P(K ?? D), r(G.TRENDS_CLICK_TOGGLE);
16726
+ }, [R, o]), cA = (pA, K) => {
16727
+ P(K ?? D), r(k.TRENDS_CLICK_TOGGLE);
16725
16728
  }, vA = (pA) => {
16726
16729
  const K = pA?.[0], hA = pA?.[1], EA = Bs(hA, K);
16727
- X({ start: K, end: hA }), r(G.TRENDS_CLICK_DATE, {
16730
+ j({ start: K, end: hA }), r(k.TRENDS_CLICK_DATE, {
16728
16731
  time_period: EA + "M"
16729
- }), j(EA);
16732
+ }), X(EA);
16730
16733
  }, $A = () => {
16731
- r(G.TRENDS_CLICK_FILTER);
16734
+ r(k.TRENDS_CLICK_FILTER);
16732
16735
  }, ge = (pA) => {
16733
16736
  x(pA);
16734
16737
  }, Xe = (pA) => {
16735
- x(pA), r(G.TRENDS_CLICK_LEGEND, { category: _e[pA] });
16738
+ x(pA), r(k.TRENDS_CLICK_LEGEND, { category: _e[pA] });
16736
16739
  }, Je = (pA) => {
16737
- r(G.TRENDS_HOVER_LEGEND, { category: _e[pA] });
16740
+ r(k.TRENDS_HOVER_LEGEND, { category: _e[pA] });
16738
16741
  }, Ze = (pA) => {
16739
- r(G.TRENDS_HOVER_AREA, { category: pA });
16742
+ r(k.TRENDS_HOVER_AREA, { category: pA });
16740
16743
  }, lt = (pA) => {
16741
- r(G.TRENDS_HOVER_POINT, { category: pA });
16744
+ r(k.TRENDS_HOVER_POINT, { category: pA });
16742
16745
  };
16743
16746
  return !u || !E ? /* @__PURE__ */ t(QA, {}) : /* @__PURE__ */ l(
16744
16747
  ue,
16745
16748
  {
16746
16749
  accountOptions: s,
16747
16750
  calendarActions: { onRangeChanged: vA },
16748
- dateRange: N,
16751
+ dateRange: R,
16749
16752
  dateRangeVariant: "timeframebuttons",
16750
16753
  onAccountsFilterClick: $A,
16751
16754
  onBackClick: A,
@@ -16779,7 +16782,7 @@ const Pt = g.createContext(null), Gg = ({
16779
16782
  textOverflow: "unset"
16780
16783
  },
16781
16784
  variant: a ? "H3" : "Body",
16782
- children: _e[_] || m.sub_title
16785
+ children: _e[N] || m.sub_title
16783
16786
  }
16784
16787
  ),
16785
16788
  /* @__PURE__ */ t(p, { variant: a ? "Body" : "Small", children: gA })
@@ -16827,7 +16830,7 @@ const Pt = g.createContext(null), Gg = ({
16827
16830
  }
16828
16831
  ),
16829
16832
  /* @__PURE__ */ l(y, { alignItems: "center", flexDirection: "row", width: "100%", children: [
16830
- /* @__PURE__ */ t(O, { flexGrow: 1, children: _ && /* @__PURE__ */ l(sA, { onClick: () => x(""), sx: { p: 0, pr: 5 }, children: [
16833
+ /* @__PURE__ */ t(O, { flexGrow: 1, children: N && /* @__PURE__ */ l(sA, { onClick: () => x(""), sx: { p: 0, pr: 5 }, children: [
16831
16834
  /* @__PURE__ */ t(M, { name: "arrow_back" }),
16832
16835
  m.all_categories
16833
16836
  ] }) }),
@@ -16850,7 +16853,7 @@ const Pt = g.createContext(null), Gg = ({
16850
16853
  {
16851
16854
  monthlyCategoryTotals: h,
16852
16855
  onClickRow: ge,
16853
- selectedCategory: _
16856
+ selectedCategory: N
16854
16857
  }
16855
16858
  )
16856
16859
  ] })
@@ -16860,8 +16863,8 @@ const Pt = g.createContext(null), Gg = ({
16860
16863
  /* @__PURE__ */ t(
16861
16864
  KC,
16862
16865
  {
16863
- categoryGuid: _,
16864
- dateRange: N,
16866
+ categoryGuid: N,
16867
+ dateRange: R,
16865
16868
  isOpen: L,
16866
16869
  onClose: () => w(!1)
16867
16870
  }
@@ -16915,7 +16918,7 @@ const Pt = g.createContext(null), Gg = ({
16915
16918
  );
16916
16919
  }, vf = T(jC);
16917
16920
  export {
16918
- G as ANALYTICS_EVENTS,
16921
+ k as ANALYTICS_EVENTS,
16919
16922
  ya as AccountApi,
16920
16923
  si as AccountFilter,
16921
16924
  Ai as AccountIcon,
@@ -17031,7 +17034,7 @@ export {
17031
17034
  Va as PropertyType,
17032
17035
  M7 as PropertyTypeName,
17033
17036
  _7 as RECURRENCE_COPY,
17034
- F as RecurrenceTypes,
17037
+ G as RecurrenceTypes,
17035
17038
  Y7 as RecurringActivityMiniWidget,
17036
17039
  Lu as RecurringActivityStore,
17037
17040
  W7 as RecurringActivityWidget,
@@ -17077,7 +17080,7 @@ export {
17077
17080
  CC as ZeroStateCard,
17078
17081
  Zi as ZeroStateIcon,
17079
17082
  Ks as analyticsSession,
17080
- R as buildDynamicCopy,
17083
+ _ as buildDynamicCopy,
17081
17084
  z7 as buildPluralCopy,
17082
17085
  vi as exportTransactionsToCSV,
17083
17086
  z as formatCurrency,