@mx-cartographer/experiences 6.10.1-alpha.mega3 → 6.10.1-alpha.mega4

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
@@ -1373,7 +1373,7 @@ const bi = (e, n) => e.reduce((a, i) => (a[i.guid] = n?.includes(i.guid), a), {}
1373
1373
  ) }),
1374
1374
  Object.keys(m).map((b) => {
1375
1375
  const S = m[b], A = S.every(
1376
- (v) => d[v.guid]
1376
+ (w) => d[w.guid]
1377
1377
  );
1378
1378
  return /* @__PURE__ */ t(Y, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(
1379
1379
  ae,
@@ -1407,8 +1407,8 @@ const bi = (e, n) => e.reduce((a, i) => (a[i.guid] = n?.includes(i.guid), a), {}
1407
1407
  }
1408
1408
  ) }),
1409
1409
  sx: { overflow: "auto", width: "100%" },
1410
- children: S.map((v) => {
1411
- const w = d[v.guid], R = `${v.name}${g && v.accountNumber ? ` *${v.accountNumber.slice(-4)}` : ""}`;
1410
+ children: S.map((w) => {
1411
+ const v = d[w.guid], R = `${w.name}${g && w.accountNumber ? ` *${w.accountNumber.slice(-4)}` : ""}`;
1412
1412
  return /* @__PURE__ */ t(
1413
1413
  Y,
1414
1414
  {
@@ -1421,12 +1421,12 @@ const bi = (e, n) => e.reduce((a, i) => (a[i.guid] = n?.includes(i.guid), a), {}
1421
1421
  control: /* @__PURE__ */ t(
1422
1422
  Wa,
1423
1423
  {
1424
- checked: w,
1425
- "data-ui-test": `checked-${w}`,
1424
+ checked: v,
1425
+ "data-ui-test": `checked-${v}`,
1426
1426
  disableRipple: !0,
1427
- id: v.guid,
1427
+ id: w.guid,
1428
1428
  onChange: () => {
1429
- i(v);
1429
+ i(w);
1430
1430
  },
1431
1431
  size: "small",
1432
1432
  sx: {
@@ -1441,7 +1441,7 @@ const bi = (e, n) => e.reduce((a, i) => (a[i.guid] = n?.includes(i.guid), a), {}
1441
1441
  }
1442
1442
  )
1443
1443
  },
1444
- v.guid
1444
+ w.guid
1445
1445
  );
1446
1446
  })
1447
1447
  }
@@ -1576,8 +1576,8 @@ const Qd = (e, n) => {
1576
1576
  },
1577
1577
  onAccountGroupClick: (E, b, S) => {
1578
1578
  const A = { ...g };
1579
- b[E].forEach((v) => {
1580
- A[v.guid] = !S;
1579
+ b[E].forEach((w) => {
1580
+ A[w.guid] = !S;
1581
1581
  }), m(A);
1582
1582
  },
1583
1583
  onCancelClick: () => {
@@ -1798,14 +1798,14 @@ const Qd = (e, n) => {
1798
1798
  selectedIndex: d,
1799
1799
  valueFormatter: _ = (u) => `${u}`
1800
1800
  }) => {
1801
- const u = pt(), g = c_(u), m = i.reduce(r_, []), C = e !== void 0 ? e : m.reduce(i_, 0) / m.length, f = Math.max(...m), E = Math.min(...m), b = m.reduce(o_, 0), S = f >= 0, A = E < 0, v = Qo(S, A, o), w = Qo(A, S, o), R = s_(C, f, E, v || w), L = (D) => d === void 0 || D === d ? a : `${a}80`, B = () => /* @__PURE__ */ t(
1801
+ const u = pt(), g = c_(u), m = i.reduce(r_, []), C = e !== void 0 ? e : m.reduce(i_, 0) / m.length, f = Math.max(...m), E = Math.min(...m), b = m.reduce(o_, 0), S = f >= 0, A = E < 0, w = Qo(S, A, o), v = Qo(A, S, o), R = s_(C, f, E, w || v), L = (D) => d === void 0 || D === d ? a : `${a}80`, B = () => /* @__PURE__ */ t(
1802
1802
  qo,
1803
1803
  {
1804
1804
  averageLineHeight: R,
1805
- bottomHeight: w,
1805
+ bottomHeight: v,
1806
1806
  color: "",
1807
1807
  range: b,
1808
- topHeight: v,
1808
+ topHeight: w,
1809
1809
  value: 0,
1810
1810
  width: void 0
1811
1811
  }
@@ -1819,13 +1819,13 @@ const Qd = (e, n) => {
1819
1819
  {
1820
1820
  ariaLabel: D.ariaLabel,
1821
1821
  averageLineHeight: R,
1822
- bottomHeight: w,
1822
+ bottomHeight: v,
1823
1823
  color: L(G),
1824
1824
  index: G,
1825
1825
  onClick: c,
1826
1826
  range: b,
1827
1827
  selectedIndex: d,
1828
- topHeight: v,
1828
+ topHeight: w,
1829
1829
  value: D.value,
1830
1830
  valueLabel: _(D.value),
1831
1831
  width: n,
@@ -1965,25 +1965,25 @@ const g_ = ({
1965
1965
  g(n), C(a), n && _(n);
1966
1966
  }, [n, a]);
1967
1967
  const f = h.useMemo(() => {
1968
- const v = ol({ start: et(d), end: Qe(d) }), w = [];
1969
- for (let R = 0; R < v.length; R++) {
1970
- const L = v[R], B = il({ start: L, end: rn(L, 6) }), D = [];
1968
+ const w = ol({ start: et(d), end: Qe(d) }), v = [];
1969
+ for (let R = 0; R < w.length; R++) {
1970
+ const L = w[R], B = il({ start: L, end: rn(L, 6) }), D = [];
1971
1971
  for (let G = 0; G < B.length; G++)
1972
1972
  D.push(B[G]);
1973
- w.push(D);
1973
+ v.push(D);
1974
1974
  }
1975
- return w;
1976
- }, [d]), E = (v) => {
1975
+ return v;
1976
+ }, [d]), E = (w) => {
1977
1977
  if (r !== "None") {
1978
1978
  if (r === "Single") {
1979
- g(v), i?.(v);
1979
+ g(w), i?.(w);
1980
1980
  return;
1981
1981
  }
1982
- !u || m ? (g(v), C(void 0)) : je(v, u) ? (C(u), g(v), o?.(v, u)) : (C(v), o?.(u, v));
1982
+ !u || m ? (g(w), C(void 0)) : je(w, u) ? (C(u), g(w), o?.(w, u)) : (C(w), o?.(u, w));
1983
1983
  }
1984
1984
  }, b = () => {
1985
- const v = ue();
1986
- _(v), r !== "None" && (g(v), r === "Single" ? i?.(v) : (C(v), o?.(v, v)));
1985
+ const w = ue();
1986
+ _(w), r !== "None" && (g(w), r === "Single" ? i?.(w) : (C(w), o?.(w, w)));
1987
1987
  }, S = () => {
1988
1988
  _(bt(d, 1));
1989
1989
  }, A = () => {
@@ -1999,8 +1999,8 @@ const g_ = ({
1999
1999
  onPreviousClick: A
2000
2000
  }
2001
2001
  ),
2002
- /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-header-row", children: f[0].map((v, w) => /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-header-cell", children: /* @__PURE__ */ t(p, { bold: !0, variant: "Small", children: kn(v, "EEEEE") }) }, w)) }),
2003
- f.map((v, w) => /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-week", children: v.map((R, L) => /* @__PURE__ */ t(
2002
+ /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-header-row", children: f[0].map((w, v) => /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-header-cell", children: /* @__PURE__ */ t(p, { bold: !0, variant: "Small", children: kn(w, "EEEEE") }) }, v)) }),
2003
+ f.map((w, v) => /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-week", children: w.map((R, L) => /* @__PURE__ */ t(
2004
2004
  __,
2005
2005
  {
2006
2006
  beginDate: u,
@@ -2010,7 +2010,7 @@ const g_ = ({
2010
2010
  onClick: E
2011
2011
  },
2012
2012
  L
2013
- )) }, `w-${w}`)),
2013
+ )) }, `w-${v}`)),
2014
2014
  /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-today-container", children: /* @__PURE__ */ t(J, { onClick: b, size: "small", variant: "text", children: e.today }) })
2015
2015
  ] }) });
2016
2016
  }, m_ = (e) => Yt({
@@ -2209,7 +2209,7 @@ const g_ = ({
2209
2209
  valueFormatterString: C = "0,0",
2210
2210
  width: f
2211
2211
  }) => {
2212
- const E = at(), b = a.flat().map((D) => D.x), S = a.flat().map((D) => D.y), A = Math.round(S.reduce((D, G) => G + D, 0) / S.length), v = Math.floor(Math.min(...S) / 100) * 100, w = Math.ceil(Math.max(...S) / 100) * 100, R = a.map((D, G) => ({
2212
+ const E = at(), b = a.flat().map((D) => D.x), S = a.flat().map((D) => D.y), A = Math.round(S.reduce((D, G) => G + D, 0) / S.length), w = Math.floor(Math.min(...S) / 100) * 100, v = Math.ceil(Math.max(...S) / 100) * 100, R = a.map((D, G) => ({
2213
2213
  type: d ? "bar" : "line",
2214
2214
  curve: "linear",
2215
2215
  color: d ? E.palette.chart?.chart6 : n[G] ?? E.palette.primary.main,
@@ -2249,12 +2249,12 @@ const g_ = ({
2249
2249
  xAxis: [{ data: b, scaleType: d ? "band" : "point" }],
2250
2250
  yAxis: [
2251
2251
  {
2252
- min: v,
2253
- max: w || 100,
2252
+ min: w,
2253
+ max: v || 100,
2254
2254
  colorMap: _ ? {
2255
2255
  type: "continuous",
2256
- min: v,
2257
- max: w,
2256
+ min: w,
2257
+ max: v,
2258
2258
  color: [E.palette.background.paper, n[0] ?? E.palette.primary.main]
2259
2259
  } : void 0,
2260
2260
  valueFormatter: (D) => H(D, C)
@@ -2521,7 +2521,7 @@ const g_ = ({
2521
2521
  hoveredAreaData: null,
2522
2522
  isAreaHovered: !1,
2523
2523
  cursorPos: { x: 0, y: 0 }
2524
- }), { hoveredSeriesId: E, hoveredAreaData: b, isAreaHovered: S, cursorPos: A } = C, v = S && E && b, w = !v, R = [...o, ...r], L = R[0]?.dataset.length ?? 0, B = R.flatMap((V) => V.dataset.map((Me) => Me.x)), D = R.flatMap((V) => V.dataset.map((Me) => Me.y)), G = o[0]?.dataset?.map(
2524
+ }), { hoveredSeriesId: E, hoveredAreaData: b, isAreaHovered: S, cursorPos: A } = C, w = S && E && b, v = !w, R = [...o, ...r], L = R[0]?.dataset.length ?? 0, B = R.flatMap((V) => V.dataset.map((Me) => Me.x)), D = R.flatMap((V) => V.dataset.map((Me) => Me.y)), G = o[0]?.dataset?.map(
2525
2525
  (V, Me) => o.reduce((Ge, Bt) => Ge + Bt.dataset[Me]?.y || 0, 0)
2526
2526
  ) ?? [0], k = Math.max(...G), U = Math.max(
2527
2527
  ...r.flatMap((V) => V.dataset.map((Me) => Me.y))
@@ -2650,7 +2650,7 @@ const g_ = ({
2650
2650
  }
2651
2651
  },
2652
2652
  slots: {
2653
- itemContent: (V) => w && E ? /* @__PURE__ */ t(
2653
+ itemContent: (V) => v && E ? /* @__PURE__ */ t(
2654
2654
  v_,
2655
2655
  {
2656
2656
  categoryGuids: Se(E),
@@ -2661,7 +2661,7 @@ const g_ = ({
2661
2661
  },
2662
2662
  sx: tt,
2663
2663
  tooltip: {
2664
- trigger: w ? "item" : "none"
2664
+ trigger: v ? "item" : "none"
2665
2665
  },
2666
2666
  width: c,
2667
2667
  xAxis: [
@@ -2691,7 +2691,7 @@ const g_ = ({
2691
2691
  sx: { px: _ ? 0 : 24 }
2692
2692
  }
2693
2693
  ),
2694
- v && /* @__PURE__ */ t(
2694
+ w && /* @__PURE__ */ t(
2695
2695
  x_,
2696
2696
  {
2697
2697
  categoryGuids: Se(E),
@@ -2901,7 +2901,7 @@ const g_ = ({
2901
2901
  shouldShrinkToIcon: o = !0,
2902
2902
  variant: r = "outlined"
2903
2903
  }) => {
2904
- const s = fe(), c = s.palette.mode === "dark", { isMobile: d } = Ce(), [_, u] = h.useState(i), [g, m] = h.useState(a.dateRangePickerCopy.dateRangeThisMonth), [C, f] = h.useState(_), [E, b] = h.useState(!1), [S, A] = h.useState(!0), [v, w] = h.useState(6), R = {
2904
+ const s = fe(), c = s.palette.mode === "dark", { isMobile: d } = Ce(), [_, u] = h.useState(i), [g, m] = h.useState(a.dateRangePickerCopy.dateRangeThisMonth), [C, f] = h.useState(_), [E, b] = h.useState(!1), [S, A] = h.useState(!0), [w, v] = h.useState(6), R = {
2905
2905
  buttons: [
2906
2906
  { label: "3M", value: 3 },
2907
2907
  { label: "6M", value: 6 },
@@ -2919,10 +2919,10 @@ const g_ = ({
2919
2919
  f(i);
2920
2920
  }, [i]), h.useEffect(() => {
2921
2921
  (r === "timeframebuttons" || r === "timeframetabs") && e.onRangeChanged(L());
2922
- }, [v]);
2922
+ }, [w]);
2923
2923
  const L = () => {
2924
2924
  const k = Qe(xn());
2925
- return [Qe(Vt(k, v)), k];
2925
+ return [Qe(Vt(k, w)), k];
2926
2926
  }, B = (k) => {
2927
2927
  const U = [..._], oe = _[0], me = _[1], te = k === "previous";
2928
2928
  if (g === a.dateRangePickerCopy.dateRangeThisMonth)
@@ -2939,7 +2939,7 @@ const g_ = ({
2939
2939
  g === a.dateRangePickerCopy.dateRangeThisMonth || g === a.dateRangePickerCopy.dateRangeLastMonth
2940
2940
  ), e.onRangeChanged(C);
2941
2941
  }, G = (k) => {
2942
- w(k);
2942
+ v(k);
2943
2943
  };
2944
2944
  return /* @__PURE__ */ l(O, { className: "mx-cmn-date-range-selector", m: 4, children: [
2945
2945
  /* @__PURE__ */ l(
@@ -3021,7 +3021,7 @@ const g_ = ({
3021
3021
  color: n,
3022
3022
  exclusive: !0,
3023
3023
  orientation: "horizontal",
3024
- value: v,
3024
+ value: w,
3025
3025
  children: R.buttons.map((k) => /* @__PURE__ */ t(
3026
3026
  Yn,
3027
3027
  {
@@ -3062,7 +3062,7 @@ const g_ = ({
3062
3062
  indicatorColor: "primary",
3063
3063
  onChange: (k, U) => G(U),
3064
3064
  textColor: "primary",
3065
- value: v,
3065
+ value: w,
3066
3066
  variant: "fullWidth",
3067
3067
  children: R.tabs.map((k) => /* @__PURE__ */ t(
3068
3068
  Je,
@@ -3377,7 +3377,7 @@ const Nn = ({
3377
3377
  sx: g = {},
3378
3378
  title: m = ""
3379
3379
  }) => {
3380
- const [C, { height: f, width: E }] = Ms(), { onEvent: b } = j(), { isDesktop: S, isMobile: A, isTablet: v } = Ce(E), { displayedDateRange: w, isCopyLoaded: R, selectedAccountGuids: L, setSelectedAccountGuids: B } = le(), { common: D } = I(), G = () => {
3380
+ const [C, { height: f, width: E }] = Ms(), { onEvent: b } = j(), { isDesktop: S, isMobile: A, isTablet: w } = Ce(E), { displayedDateRange: v, isCopyLoaded: R, selectedAccountGuids: L, setSelectedAccountGuids: B } = le(), { common: D } = I(), G = () => {
3381
3381
  d && (d(), b(W.WIDGET_BACK_CLICK));
3382
3382
  };
3383
3383
  if (!R)
@@ -3414,7 +3414,7 @@ const Nn = ({
3414
3414
  dateRangeEditTitle: D.date_range_picker.edit_title,
3415
3415
  dateRangeNextAria: D.date_range_picker.next_aria,
3416
3416
  dateRangePreviousAria: D.date_range_picker.previous_aria
3417
- }, oe = o ? o.start : w.start, me = o ? o.end : w.end, te = n?.length > 1;
3417
+ }, oe = o ? o.start : v.start, me = o ? o.end : v.end, te = n?.length > 1;
3418
3418
  return /* @__PURE__ */ l(
3419
3419
  Nt,
3420
3420
  {
@@ -3422,7 +3422,7 @@ const Nn = ({
3422
3422
  sx: {
3423
3423
  ...A && { px: 4 },
3424
3424
  "& .mx-cmn-date-range-selector": {
3425
- ...(A || v) && { textAlign: "center" }
3425
+ ...(A || w) && { textAlign: "center" }
3426
3426
  },
3427
3427
  ...g
3428
3428
  },
@@ -3466,7 +3466,7 @@ const Nn = ({
3466
3466
  children: Se
3467
3467
  },
3468
3468
  Re
3469
- ) : /* @__PURE__ */ t($e, { "aria-label": Se, onClick: Oe, children: /* @__PURE__ */ t($, { name: Re, size: 24 }) }, Re) : S || v ? /* @__PURE__ */ t(
3469
+ ) : /* @__PURE__ */ t($e, { "aria-label": Se, onClick: Oe, children: /* @__PURE__ */ t($, { name: Re, size: 24 }) }, Re) : S || w ? /* @__PURE__ */ t(
3470
3470
  J,
3471
3471
  {
3472
3472
  onClick: Oe,
@@ -3481,13 +3481,13 @@ const Nn = ({
3481
3481
  sx: {
3482
3482
  "& .MuiCardHeader-action": {
3483
3483
  ...a && S && { flexGrow: 1 },
3484
- ...(A || v) && { alignSelf: "center" },
3484
+ ...(A || w) && { alignSelf: "center" },
3485
3485
  mr: 0
3486
3486
  },
3487
3487
  p: S ? 48 : 24,
3488
3488
  pb: 0
3489
3489
  },
3490
- title: S || v ? /* @__PURE__ */ t(zt, { children: m }) : /* @__PURE__ */ l(y, { alignItems: "center", flexDirection: "row", children: [
3490
+ title: S || w ? /* @__PURE__ */ t(zt, { children: m }) : /* @__PURE__ */ l(y, { alignItems: "center", flexDirection: "row", children: [
3491
3491
  A && d && /* @__PURE__ */ t(
3492
3492
  $e,
3493
3493
  {
@@ -3502,7 +3502,7 @@ const Nn = ({
3502
3502
  }
3503
3503
  ),
3504
3504
  c && /* @__PURE__ */ t(P, { sx: { mt: S ? 48 : 24 } }),
3505
- a && (A || v) && /* @__PURE__ */ l(y, { gap: 24, justifyContent: "center", sx: { mt: A ? 0 : 16 }, children: [
3505
+ a && (A || w) && /* @__PURE__ */ l(y, { gap: 24, justifyContent: "center", sx: { mt: A ? 0 : 16 }, children: [
3506
3506
  u && /* @__PURE__ */ t(P, {}),
3507
3507
  /* @__PURE__ */ t(
3508
3508
  Jo,
@@ -3604,16 +3604,16 @@ const er = "connect_widget", tr = "connections_widget", P_ = ({
3604
3604
  setHasValidInput: u,
3605
3605
  ...g
3606
3606
  }) => {
3607
- const [m, C] = h.useState(""), { common: f } = I(), E = o || f.currency_input, b = pt(), S = H_(b), A = /^[0-9]*$/, v = /^(\d)*(\,)?([0-9]{1,2})?$/, w = /^(\d)*(\.)?([0-9]{1,2})?$/;
3607
+ const [m, C] = h.useState(""), { common: f } = I(), E = o || f.currency_input, b = pt(), S = H_(b), A = /^[0-9]*$/, w = /^(\d)*(\,)?([0-9]{1,2})?$/, v = /^(\d)*(\.)?([0-9]{1,2})?$/;
3608
3608
  let R;
3609
3609
  const L = h.useRef(Fl());
3610
3610
  if (e)
3611
3611
  switch (Yd()) {
3612
3612
  case Va.CAD:
3613
- R = v;
3613
+ R = w;
3614
3614
  break;
3615
3615
  default:
3616
- R = w;
3616
+ R = v;
3617
3617
  break;
3618
3618
  }
3619
3619
  else
@@ -4488,12 +4488,12 @@ const Jn = () => {
4488
4488
  const A = h.useMemo(
4489
4489
  () => o.filter((L) => s.includes(L.guid)).reduce((L, B) => L + (B?.balance || 0), 0),
4490
4490
  [s, S]
4491
- ), v = h.useMemo(
4491
+ ), w = h.useMemo(
4492
4492
  () => u.filter((L) => s.includes(L.accountGuid || "")).reduce((L, B) => L + B.amount, 0),
4493
4493
  [s, u]
4494
- ), w = h.useMemo(
4495
- () => A - v,
4496
- [A, v]
4494
+ ), v = h.useMemo(
4495
+ () => A - w,
4496
+ [A, w]
4497
4497
  ), R = d?.has_completed_cash_flow_onboarding && !!e;
4498
4498
  return E ? /* @__PURE__ */ t(O, { className: "mx-cashflow", pl: 16, pr: 16, pt: 16, children: a > 610 ? /* @__PURE__ */ l(
4499
4499
  y,
@@ -4513,12 +4513,12 @@ const Jn = () => {
4513
4513
  ] }),
4514
4514
  /* @__PURE__ */ t(y, { pt: 18, children: /* @__PURE__ */ t($, { name: "remove" }) }),
4515
4515
  /* @__PURE__ */ l(y, { pb: 14, pt: 12, children: [
4516
- /* @__PURE__ */ t(Ue, { amount: v, variant: "H2" }),
4516
+ /* @__PURE__ */ t(Ue, { amount: w, variant: "H2" }),
4517
4517
  /* @__PURE__ */ t(Ne, { variant: "XSmall", whiteSpace: "nowrap", children: T(c.expenses_due, u.length) })
4518
4518
  ] }),
4519
4519
  /* @__PURE__ */ t(y, { pt: 18, children: /* @__PURE__ */ t($, { name: "equals" }) }),
4520
4520
  /* @__PURE__ */ l(y, { pb: 14, pr: 24, pt: 12, children: [
4521
- /* @__PURE__ */ t(Ue, { amount: w, variant: "H2" }),
4521
+ /* @__PURE__ */ t(Ue, { amount: v, variant: "H2" }),
4522
4522
  /* @__PURE__ */ l(y, { alignItems: "center", direction: "row", gap: 8, children: [
4523
4523
  /* @__PURE__ */ t(Ne, { variant: "XSmall", whiteSpace: "nowrap", children: c.available_to_spend }),
4524
4524
  /* @__PURE__ */ t(ro, { body: c.tooltip_body, title: c.tooltip_title })
@@ -4549,7 +4549,7 @@ const Jn = () => {
4549
4549
  /* @__PURE__ */ t(P, {}),
4550
4550
  /* @__PURE__ */ l(y, { direction: "row", justifyContent: "space-between", p: 16, children: [
4551
4551
  /* @__PURE__ */ t(p, { variant: "Small", children: T(c.expenses_due, u.length) }),
4552
- /* @__PURE__ */ t(Ue, { amount: v, bold: !0, symbol: "-", variant: "XSmall" })
4552
+ /* @__PURE__ */ t(Ue, { amount: w, bold: !0, symbol: "-", variant: "XSmall" })
4553
4553
  ] }),
4554
4554
  /* @__PURE__ */ t(P, {}),
4555
4555
  /* @__PURE__ */ t(
@@ -4563,7 +4563,7 @@ const Jn = () => {
4563
4563
  justifyContent: "space-between",
4564
4564
  px: 16,
4565
4565
  sx: { borderBottomLeftRadius: 4, borderBottomRightRadius: 4 },
4566
- children: /* @__PURE__ */ t(so, { remaining: w })
4566
+ children: /* @__PURE__ */ t(so, { remaining: v })
4567
4567
  }
4568
4568
  ),
4569
4569
  /* @__PURE__ */ t(P, {}),
@@ -5677,13 +5677,13 @@ const Mu = ({ transaction: e, onClick: n }) => {
5677
5677
  zeroState: d = /* @__PURE__ */ t(Gu, {})
5678
5678
  }) => {
5679
5679
  const { isLoading: _, sortedTransactions: u } = De(), g = h.useMemo(() => s ? u : u.filter((A) => !A.is_hidden), [u, s]), { setShowInsights: m, toggleSplit: C } = Ot(), { onEvent: f } = j(), E = (A) => {
5680
- const v = g.find((w) => w.guid === A);
5681
- if (v?.has_been_split) {
5682
- C(v.guid);
5680
+ const w = g.find((v) => v.guid === A);
5681
+ if (w?.has_been_split) {
5682
+ C(w.guid);
5683
5683
  return;
5684
5684
  }
5685
5685
  f(W.ACCOUNT_DETAILS_CLICK_TRANSACTION, {
5686
- account_guid: v?.account_guid,
5686
+ account_guid: w?.account_guid,
5687
5687
  transaction_guid: A
5688
5688
  }), i?.(A);
5689
5689
  }, b = h.useRef(null), S = rs({
@@ -5705,7 +5705,7 @@ const Mu = ({ transaction: e, onClick: n }) => {
5705
5705
  (_ || r) && a,
5706
5706
  !_ && !r && S.getVirtualItems().length === 0 && d,
5707
5707
  !_ && !r && S.getVirtualItems().length > 0 && S.getVirtualItems().map((A) => {
5708
- const v = g[A.index], w = sr(A.index, g), R = Bu(A.index, g), L = cr + (w ? lr : 0);
5708
+ const w = g[A.index], v = sr(A.index, g), R = Bu(A.index, g), L = cr + (v ? lr : 0);
5709
5709
  return /* @__PURE__ */ l(
5710
5710
  O,
5711
5711
  {
@@ -5716,12 +5716,12 @@ const Mu = ({ transaction: e, onClick: n }) => {
5716
5716
  width: "100%"
5717
5717
  },
5718
5718
  children: [
5719
- w && /* @__PURE__ */ t(_o, { bgcolor: e, children: ii(v.date) }),
5720
- /* @__PURE__ */ t(lo, { onClick: E, transaction: v }),
5719
+ v && /* @__PURE__ */ t(_o, { bgcolor: e, children: ii(w.date) }),
5720
+ /* @__PURE__ */ t(lo, { onClick: E, transaction: w }),
5721
5721
  /* @__PURE__ */ t(P, { sx: { ml: R ? 24 : 0 } })
5722
5722
  ]
5723
5723
  },
5724
- v.guid
5724
+ w.guid
5725
5725
  );
5726
5726
  })
5727
5727
  ]
@@ -6025,7 +6025,7 @@ const Xu = ({
6025
6025
  showSelected: s,
6026
6026
  unselectable: c,
6027
6027
  unselectableText: d
6028
- } = ln(), { categories: _ } = I(), { onEvent: u } = j(), [g, m] = h.useState(!1), [C, f] = h.useState(!1), E = !!n.revision, b = n.guid === i, S = !c.some((v) => v === n.guid);
6028
+ } = ln(), { categories: _ } = I(), { onEvent: u } = j(), [g, m] = h.useState(!1), [C, f] = h.useState(!1), E = !!n.revision, b = n.guid === i, S = !c.some((w) => w === n.guid);
6029
6029
  return /* @__PURE__ */ l(
6030
6030
  Y,
6031
6031
  {
@@ -6996,7 +6996,7 @@ const $s = ({ transaction: e }) => {
6996
6996
  (oe, me, te) => oe + (te !== 0 ? me.amount : 0),
6997
6997
  0
6998
6998
  ), E(U);
6999
- }, v = (G, k) => {
6999
+ }, w = (G, k) => {
7000
7000
  const U = [...f], oe = c.find((me) => me.guid === k);
7001
7001
  oe && (U[G] = {
7002
7002
  ...U[G],
@@ -7004,7 +7004,7 @@ const $s = ({ transaction: e }) => {
7004
7004
  category: oe.name,
7005
7005
  top_level_category_guid: oe.parent_guid || k
7006
7006
  }, E(U));
7007
- }, w = () => {
7007
+ }, v = () => {
7008
7008
  if (e.parent_guid || e.has_been_split) {
7009
7009
  C(!0);
7010
7010
  return;
@@ -7027,7 +7027,7 @@ const $s = ({ transaction: e }) => {
7027
7027
  return G || k;
7028
7028
  }, [f]);
7029
7029
  return /* @__PURE__ */ l(h.Fragment, { children: [
7030
- e && /* @__PURE__ */ t(Y, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(_e, { onClick: w, children: [
7030
+ e && /* @__PURE__ */ t(Y, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(_e, { onClick: v, children: [
7031
7031
  /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Xt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t($, { name: "call_split", sx: { color: "text.primary" }, weight: Ct.Dark }) }) }),
7032
7032
  /* @__PURE__ */ t(
7033
7033
  se,
@@ -7055,7 +7055,7 @@ const $s = ({ transaction: e }) => {
7055
7055
  xh,
7056
7056
  {
7057
7057
  onAddSplit: b,
7058
- onCategoryChanged: v,
7058
+ onCategoryChanged: w,
7059
7059
  onDeleteSplit: S,
7060
7060
  onUpdateAmount: A,
7061
7061
  splits: f,
@@ -7184,7 +7184,7 @@ const $s = ({ transaction: e }) => {
7184
7184
  }, [m]);
7185
7185
  const A = () => {
7186
7186
  i(z.ON_TRANSACTION_TAGS_TAG_EDIT_CLICK), C(a.name), _(!0);
7187
- }, v = () => {
7187
+ }, w = () => {
7188
7188
  i(z.ON_TRANSACTION_TAGS_TAG_DELETE_CLICK), g(!0);
7189
7189
  };
7190
7190
  return /* @__PURE__ */ l(
@@ -7208,7 +7208,7 @@ const $s = ({ transaction: e }) => {
7208
7208
  {
7209
7209
  "aria-label": `Delete ${a.name} tag`,
7210
7210
  color: "secondary",
7211
- onClick: v,
7211
+ onClick: w,
7212
7212
  children: /* @__PURE__ */ t(ga, { color: "secondary" })
7213
7213
  }
7214
7214
  )
@@ -7241,7 +7241,7 @@ const $s = ({ transaction: e }) => {
7241
7241
  "aria-describedby": f ? "update-tag-error" : void 0,
7242
7242
  "aria-label": c.tags_update_the_tag_name,
7243
7243
  name: "update-tag",
7244
- onChange: (w) => C(w.target.value),
7244
+ onChange: (v) => C(v.target.value),
7245
7245
  placeholder: "Tag name",
7246
7246
  sx: { width: "100%" },
7247
7247
  value: m
@@ -7651,8 +7651,8 @@ const $s = ({ transaction: e }) => {
7651
7651
  loadAssociatedBeats: b,
7652
7652
  setFilter: S,
7653
7653
  tags: A,
7654
- transactions: v,
7655
- updateTransaction: w
7654
+ transactions: w,
7655
+ updateTransaction: v
7656
7656
  } = De(), { common: R, transactions: L } = I(), { userProfile: B } = kt(), { onEvent: D } = j(), {
7657
7657
  displayedDateRange: G,
7658
7658
  isCopyLoaded: k,
@@ -7683,7 +7683,7 @@ const $s = ({ transaction: e }) => {
7683
7683
  const Me = h.useMemo(
7684
7684
  () => o.filter((rt) => rt.is_manual),
7685
7685
  [o]
7686
- ), Ge = Se ? v.find((rt) => rt.guid === Se) : void 0, Bt = _ && !!d.payee && !!d.account_guid && !!d.category_guid, ut = (rt) => {
7686
+ ), Ge = Se ? w.find((rt) => rt.guid === Se) : void 0, Bt = _ && !!d.payee && !!d.account_guid && !!d.category_guid, ut = (rt) => {
7687
7687
  te(rt[0], rt[1]);
7688
7688
  }, ta = (rt) => {
7689
7689
  g(rt), S({
@@ -7691,7 +7691,7 @@ const $s = ({ transaction: e }) => {
7691
7691
  searchTerm: rt
7692
7692
  }), D(W.TRANSACTIONS_CLICK_SEARCH, { search_term: rt });
7693
7693
  }, na = () => {
7694
- Ps(v, A), D(W.TRANSACTIONS_CLICK_EXPORT);
7694
+ Ps(w, A), D(W.TRANSACTIONS_CLICK_EXPORT);
7695
7695
  }, mi = () => {
7696
7696
  Me.length > 0 ? (C({
7697
7697
  ...Bs,
@@ -7708,7 +7708,7 @@ const $s = ({ transaction: e }) => {
7708
7708
  }, Wc = async () => {
7709
7709
  Ke(!1), await r();
7710
7710
  }, Uc = async () => {
7711
- Ge && !Ge.has_been_viewed && await w({ ...Ge, has_been_viewed: !0 }), Oe("");
7711
+ Ge && !Ge.has_been_viewed && await v({ ...Ge, has_been_viewed: !0 }), Oe("");
7712
7712
  };
7713
7713
  return !k || !U || !tt ? /* @__PURE__ */ t(de, {}) : /* @__PURE__ */ l(
7714
7714
  yt,
@@ -8225,38 +8225,38 @@ const $s = ({ transaction: e }) => {
8225
8225
  label: n,
8226
8226
  onAddRecurringTransaction: a = () => null
8227
8227
  }) => {
8228
- const { recurring: i } = I(), { filter: o, setFilter: r, transactions: s } = De(), { addRepeatingTransaction: c } = Ze(), { user: d } = kt(), [_, u] = h.useState(!1), [g, m] = h.useState(""), [C, f] = h.useState(pe.EveryMonth), [E, b] = h.useState(1), [S, A] = h.useState(15), v = h.useMemo(
8228
+ const { recurring: i } = I(), { filter: o, setFilter: r, transactions: s } = De(), { addRepeatingTransaction: c } = Ze(), { user: d } = kt(), [_, u] = h.useState(!1), [g, m] = h.useState(""), [C, f] = h.useState(pe.EveryMonth), [E, b] = h.useState(1), [S, A] = h.useState(15), w = h.useMemo(
8229
8229
  () => s.find((B) => B.guid === g),
8230
8230
  [g]
8231
- ), w = () => {
8231
+ ), v = () => {
8232
8232
  u(!0), r(e ? { ...o, custom: Ca } : { ...o, custom: Hi });
8233
8233
  }, R = async () => {
8234
- if (!v) {
8234
+ if (!w) {
8235
8235
  L();
8236
8236
  return;
8237
8237
  }
8238
8238
  a();
8239
- const B = Gi(C, We(v.date)), D = {
8240
- account_guid: v.account_guid,
8241
- amount: v.amount,
8239
+ const B = Gi(C, We(w.date)), D = {
8240
+ account_guid: w.account_guid,
8241
+ amount: w.amount,
8242
8242
  created_by: 0,
8243
8243
  // User
8244
- merchant_guid: v.merchant_guid,
8245
- description: v.payee || v.description || v.feed_description,
8244
+ merchant_guid: w.merchant_guid,
8245
+ description: w.payee || w.description || w.feed_description,
8246
8246
  predicted_occurs_on: Ja(B, { representation: "date" }),
8247
8247
  recurrence_day: E,
8248
8248
  recurrence_type: C,
8249
8249
  repeating_transaction_type: e ? tn.Income : tn.Bill,
8250
8250
  second_recurrence_day: S,
8251
- transaction_type: v.transaction_type,
8251
+ transaction_type: w.transaction_type,
8252
8252
  user_guid: d.guid
8253
8253
  };
8254
- await c(D, v), L();
8254
+ await c(D, w), L();
8255
8255
  }, L = () => {
8256
8256
  m(""), u(!1);
8257
8257
  };
8258
8258
  return /* @__PURE__ */ l(O, { children: [
8259
- /* @__PURE__ */ t(Y, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(_e, { onClick: w, children: /* @__PURE__ */ t(se, { children: /* @__PURE__ */ l(y, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
8259
+ /* @__PURE__ */ t(Y, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(_e, { onClick: v, children: /* @__PURE__ */ t(se, { children: /* @__PURE__ */ l(y, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
8260
8260
  /* @__PURE__ */ l(y, { alignItems: "center", direction: "row", gap: 8, children: [
8261
8261
  /* @__PURE__ */ t($, { fill: !0, name: "add_box", size: 24, sx: { color: "primary.light" } }),
8262
8262
  /* @__PURE__ */ t(p, { bold: !0, sx: { color: "primary.light" }, variant: "Body", children: n })
@@ -8294,7 +8294,7 @@ const $s = ({ transaction: e }) => {
8294
8294
  onClose: () => m(""),
8295
8295
  onPrimaryAction: R,
8296
8296
  title: e ? i.income_details : i.expense_details,
8297
- children: v && /* @__PURE__ */ t(
8297
+ children: w && /* @__PURE__ */ t(
8298
8298
  Zs,
8299
8299
  {
8300
8300
  firstDay: E,
@@ -8303,7 +8303,7 @@ const $s = ({ transaction: e }) => {
8303
8303
  onFrequencyChange: f,
8304
8304
  onSecondDayChange: A,
8305
8305
  secondDay: S,
8306
- transaction: v
8306
+ transaction: w
8307
8307
  }
8308
8308
  )
8309
8309
  }
@@ -8735,15 +8735,15 @@ const $s = ({ transaction: e }) => {
8735
8735
  selectedDay: m,
8736
8736
  selectedDayRecurrences: C,
8737
8737
  upcomingRecurrences: f
8738
- } = Ze(), [E, b] = h.useState(0), S = (w, R) => {
8738
+ } = Ze(), [E, b] = h.useState(0), S = (v, R) => {
8739
8739
  b(R);
8740
- }, A = (w) => {
8740
+ }, A = (v) => {
8741
8741
  i(W.RECURRING_TRANSACTIONS_CLICK_UPCOMING, {
8742
- transaction_guid: w.transaction?.guid
8742
+ transaction_guid: v.transaction?.guid
8743
8743
  });
8744
- }, v = (w) => {
8744
+ }, w = (v) => {
8745
8745
  i(W.RECURRING_TRANSACTIONS_CLICK_PAID, {
8746
- transaction_guid: w.transaction?.guid
8746
+ transaction_guid: v.transaction?.guid
8747
8747
  });
8748
8748
  };
8749
8749
  return /* @__PURE__ */ l(pn, { container: !0, sx: { pt: 16, px: 24, spacing: 24 }, children: [
@@ -8800,7 +8800,7 @@ const $s = ({ transaction: e }) => {
8800
8800
  E === 1 && /* @__PURE__ */ t(
8801
8801
  ca,
8802
8802
  {
8803
- onRecurrenceClick: v,
8803
+ onRecurrenceClick: w,
8804
8804
  recurrences: _
8805
8805
  }
8806
8806
  )
@@ -8811,7 +8811,7 @@ const $s = ({ transaction: e }) => {
8811
8811
  /* @__PURE__ */ t(
8812
8812
  ca,
8813
8813
  {
8814
- onRecurrenceClick: v,
8814
+ onRecurrenceClick: w,
8815
8815
  recurrences: C || _,
8816
8816
  title: m ? T(
8817
8817
  e.day_transactions,
@@ -9956,7 +9956,7 @@ const mg = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
9956
9956
  transform: rotate(360deg);
9957
9957
  }
9958
9958
  `, Dg = () => {
9959
- const { addRepeatingTransaction: e, repeatingTransactions: n } = Ze(), { cashflow: a, common: i } = I(), { completeOnboarding: o } = io(), { isDirty: r } = Jn(), { isMobile: s } = Ce(), { isCopyLoaded: c, setDisplayedDate: d } = le(), { filter: _, setFilter: u, transactions: g } = De(), m = fe(), [C, f] = St(!0), [E, b] = h.useState(pe.EveryMonth), [S, A] = h.useState(1), [v, w] = h.useState(15), [R, L] = St(!1), [B, D] = St(1), [G, k] = St([]), [U, oe] = St(""), me = h.useMemo(
9959
+ const { addRepeatingTransaction: e, repeatingTransactions: n } = Ze(), { cashflow: a, common: i } = I(), { completeOnboarding: o } = io(), { isDirty: r } = Jn(), { isMobile: s } = Ce(), { isCopyLoaded: c, setDisplayedDate: d } = le(), { filter: _, setFilter: u, transactions: g } = De(), m = fe(), [C, f] = St(!0), [E, b] = h.useState(pe.EveryMonth), [S, A] = h.useState(1), [w, v] = h.useState(15), [R, L] = St(!1), [B, D] = St(1), [G, k] = St([]), [U, oe] = St(""), me = h.useMemo(
9960
9960
  () => g.find((Se) => Se.guid === U),
9961
9961
  [U]
9962
9962
  ), te = !!n.filter(
@@ -10071,8 +10071,8 @@ const mg = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
10071
10071
  frequency: E,
10072
10072
  onFirstDayChange: A,
10073
10073
  onFrequencyChange: b,
10074
- onSecondDayChange: w,
10075
- secondDay: v,
10074
+ onSecondDayChange: v,
10075
+ secondDay: w,
10076
10076
  transaction: me
10077
10077
  }
10078
10078
  ),
@@ -10145,12 +10145,12 @@ const mg = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
10145
10145
  }, [b]), h.useEffect(() => {
10146
10146
  o(d);
10147
10147
  }, [d]), h.useEffect(() => {
10148
- const v = d.map((R) => R.guid), w = a.filter(
10149
- (R) => i.includes(R.guid) && v.includes(R.guid)
10148
+ const w = d.map((R) => R.guid), v = a.filter(
10149
+ (R) => i.includes(R.guid) && w.includes(R.guid)
10150
10150
  );
10151
- m(w), _({
10151
+ m(v), _({
10152
10152
  dateRange: { start: wt(ue(), 90), end: xn() },
10153
- accounts: w.map((R) => R.guid)
10153
+ accounts: v.map((R) => R.guid)
10154
10154
  });
10155
10155
  }, [d, a]), !E || !b ? /* @__PURE__ */ t(de, {}) : u?.has_completed_cash_flow_onboarding ? /* @__PURE__ */ l(
10156
10156
  yt,
@@ -10875,31 +10875,31 @@ const rc = ({
10875
10875
  onClickArea: r,
10876
10876
  onHoverArea: s
10877
10877
  }) => {
10878
- const c = at(), { onEvent: d } = j(), _ = i.filter((w) => !w.is_impossible), u = [
10878
+ const c = at(), { onEvent: d } = j(), _ = i.filter((v) => !v.is_impossible), u = [
10879
10879
  ...new Set(
10880
- _.flatMap((w) => w.dataset.map((R) => new Date(R.x).getTime()))
10880
+ _.flatMap((v) => v.dataset.map((R) => new Date(R.x).getTime()))
10881
10881
  )
10882
- ].sort((w, R) => w - R).map((w) => new Date(w)), g = _.map((w) => {
10883
- const R = new Map(w.dataset.map((D) => [new Date(D.x).getTime(), D.y]));
10882
+ ].sort((v, R) => v - R).map((v) => new Date(v)), g = _.map((v) => {
10883
+ const R = new Map(v.dataset.map((D) => [new Date(D.x).getTime(), D.y]));
10884
10884
  let L = R.get(u[0].getTime()) ?? 0;
10885
10885
  const B = u.map((D) => {
10886
10886
  const G = R.get(D.getTime()) ?? L;
10887
10887
  return L = G, { x: D, y: G };
10888
10888
  });
10889
- return { ...w, dataset: B };
10889
+ return { ...v, dataset: B };
10890
10890
  }), m = g.reduce(
10891
- (w, R) => w + (R.dataset[0]?.y ?? 0),
10891
+ (v, R) => v + (R.dataset[0]?.y ?? 0),
10892
10892
  0
10893
- ), C = u.map((w, R) => {
10893
+ ), C = u.map((v, R) => {
10894
10894
  const L = R / (u.length - 1), B = m * (1 - L);
10895
- return { x: w, y: B };
10896
- }), f = Math.ceil(m / 100) * 100, E = u, b = g.map((w, R) => {
10895
+ return { x: v, y: B };
10896
+ }), f = Math.ceil(m / 100) * 100, E = u, b = g.map((v, R) => {
10897
10897
  const L = 1 - R / g.length * 0.5, B = tm(em, L);
10898
10898
  return {
10899
10899
  id: `debt-${R}`,
10900
- guid: w.guid,
10901
- label: w.name,
10902
- data: w.dataset.map((D) => D.y),
10900
+ guid: v.guid,
10901
+ label: v.name,
10902
+ data: v.dataset.map((D) => D.y),
10903
10903
  color: B,
10904
10904
  curve: "linear",
10905
10905
  type: "line",
@@ -10911,7 +10911,7 @@ const rc = ({
10911
10911
  b.push({
10912
10912
  id: "payoff-line",
10913
10913
  label: "Payoff Line",
10914
- data: C.map((w) => w.y),
10914
+ data: C.map((v) => v.y),
10915
10915
  color: c.palette.grey[700],
10916
10916
  curve: "linear",
10917
10917
  type: "line",
@@ -10919,20 +10919,20 @@ const rc = ({
10919
10919
  showMark: !1,
10920
10920
  disableHighlight: !0
10921
10921
  });
10922
- const S = (w) => b.findIndex((R) => R?.guid === w);
10922
+ const S = (v) => b.findIndex((R) => R?.guid === v);
10923
10923
  return /* @__PURE__ */ t(
10924
10924
  ns,
10925
10925
  {
10926
10926
  axisHighlight: { x: "none" },
10927
10927
  disableLineItemHighlight: !0,
10928
10928
  height: n,
10929
- onAreaClick: (w, R) => {
10929
+ onAreaClick: (v, R) => {
10930
10930
  r?.();
10931
10931
  const L = b.find((B) => B.id === R.seriesId);
10932
10932
  d(W.DEBTS_CLICK_CHART_AREA, { account_guid: L?.guid });
10933
10933
  },
10934
- onHighlightChange: (w) => {
10935
- const R = b.find((L) => L.id === w?.seriesId)?.guid;
10934
+ onHighlightChange: (v) => {
10935
+ const R = b.find((L) => L.id === v?.seriesId)?.guid;
10936
10936
  s?.(R ?? "");
10937
10937
  },
10938
10938
  series: b,
@@ -10975,7 +10975,7 @@ const rc = ({
10975
10975
  scaleType: "time",
10976
10976
  min: u[0],
10977
10977
  disableTicks: !0,
10978
- valueFormatter: (w) => re(w, ne.MONTH_SHORT_YEAR)
10978
+ valueFormatter: (v) => re(v, ne.MONTH_SHORT_YEAR)
10979
10979
  }
10980
10980
  ],
10981
10981
  yAxis: [
@@ -10983,7 +10983,7 @@ const rc = ({
10983
10983
  min: 0,
10984
10984
  max: f,
10985
10985
  disableTicks: !0,
10986
- valueFormatter: (w) => H(w, "0a")
10986
+ valueFormatter: (v) => H(v, "0a")
10987
10987
  }
10988
10988
  ]
10989
10989
  }
@@ -11617,8 +11617,8 @@ const Ht = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
11617
11617
  id: S,
11618
11618
  priority: Em(b)
11619
11619
  })), [n]), f = (b) => {
11620
- const v = b.target.closest("[data-id]")?.getAttribute("data-id"), w = n[Number(v)];
11621
- i?.(w?.guid ?? "");
11620
+ const w = b.target.closest("[data-id]")?.getAttribute("data-id"), v = n[Number(w)];
11621
+ i?.(v?.guid ?? "");
11622
11622
  }, E = (b) => C.find((S) => S.guid === b)?.id;
11623
11623
  return /* @__PURE__ */ t(
11624
11624
  O,
@@ -11815,20 +11815,20 @@ const Ht = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
11815
11815
  }
11816
11816
  );
11817
11817
  }), Rm = ({ onBackClick: e, sx: n }) => {
11818
- const [a, i] = h.useState(!1), [o, r] = h.useState(!1), [s, c] = h.useState(!1), [d, _] = h.useState(""), { isDesktop: u, isMobile: g } = Ce(), { debts: m } = I(), { onEvent: C } = j(), { isCopyLoaded: f, isInitialized: E, setSelectedAccounts: b } = le(), { setSelectedAccount: S } = Gt(), { selectedDebtPriority: A, setSelectedDebtChartData: v } = dn(), { visibleDebtAccounts: w } = ve(), { goalsLoaded: R, loadGoals: L, monthlyCashFlowProfile: B } = ot(), { debts: D } = oi(), G = h.useMemo(() => {
11818
+ const [a, i] = h.useState(!1), [o, r] = h.useState(!1), [s, c] = h.useState(!1), [d, _] = h.useState(""), { isDesktop: u, isMobile: g } = Ce(), { debts: m } = I(), { onEvent: C } = j(), { isCopyLoaded: f, isInitialized: E, setSelectedAccounts: b } = le(), { setSelectedAccount: S } = Gt(), { selectedDebtPriority: A, setSelectedDebtChartData: w } = dn(), { visibleDebtAccounts: v } = ve(), { goalsLoaded: R, loadGoals: L, monthlyCashFlowProfile: B } = ot(), { debts: D } = oi(), G = h.useMemo(() => {
11819
11819
  const he = B?.extra_payment ?? 0;
11820
11820
  return Nm(D, A, he);
11821
11821
  }, [D, A, B]);
11822
11822
  h.useEffect(() => {
11823
- b(w), C(W.DEBTS_VIEW);
11823
+ b(v), C(W.DEBTS_VIEW);
11824
11824
  }, []), h.useEffect(() => {
11825
- b(w);
11826
- }, [w]), h.useEffect(() => {
11825
+ b(v);
11826
+ }, [v]), h.useEffect(() => {
11827
11827
  E && L().finally();
11828
11828
  }, [E]);
11829
11829
  const k = (he) => _(he), U = () => {
11830
- const he = w.find((Oe) => Oe.guid === d), Re = G.find((Oe) => Oe.guid === d);
11831
- he && S(he), Re && v(Re), i(!0);
11830
+ const he = v.find((Oe) => Oe.guid === d), Re = G.find((Oe) => Oe.guid === d);
11831
+ he && S(he), Re && w(Re), i(!0);
11832
11832
  }, oe = () => C(W.DEBTS_CLICK_FILTER), me = () => {
11833
11833
  c(!0), C(W.DEBTS_CLICK_SNOWBALL_CTA);
11834
11834
  }, te = () => {
@@ -11837,7 +11837,7 @@ const Ht = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
11837
11837
  return !R || !f || !E ? /* @__PURE__ */ t(de, {}) : /* @__PURE__ */ l(
11838
11838
  yt,
11839
11839
  {
11840
- accountOptions: w,
11840
+ accountOptions: v,
11841
11841
  actions: [
11842
11842
  /* @__PURE__ */ t(wm, {}, "prioritize-debts"),
11843
11843
  /* @__PURE__ */ t(Dm, { onClick: te }, "extra-paydown")
@@ -12861,13 +12861,13 @@ const Pm = (e, n) => {
12861
12861
  updateGoal: u
12862
12862
  } = ot(), { user: g } = kt(), [m, C] = h.useState(!1), f = !c?.guid, E = c?.track_type === K.SAVINGS_TRACK && c.is_complete && !c.has_been_spent, b = h.useMemo(() => !c || !c.account_guid ? !1 : c.track_type === K.SAVINGS_TRACK ? !!c.name && !!c.amount : c.track_type === K.DEBT_TRACK ? !0 : c.track_type === K.RETIREMENT_TRACK ? !!c.name && !!c.amount && !!c.retirement_age && !!g.birthday : !0, [c]);
12863
12863
  let S = a.delete_button, A = () => C(!0);
12864
- f ? (A = () => v(), S = a.save_button) : E && (A = () => R(), S = n.mark_as_complete_button);
12865
- const v = async () => {
12864
+ f ? (A = () => w(), S = a.save_button) : E && (A = () => R(), S = n.mark_as_complete_button);
12865
+ const w = async () => {
12866
12866
  if (c) {
12867
12867
  const L = c.track_type;
12868
12868
  L !== K.RETIREMENT_TRACK ? await i(c) : L === K.RETIREMENT_TRACK && await o({ ...c, target_amount: c.amount }), d(n.alert_goal_added), _(void 0), L && e?.(L);
12869
12869
  }
12870
- }, w = async () => {
12870
+ }, v = async () => {
12871
12871
  c && (c.track_type !== K.RETIREMENT_TRACK ? await r(c.guid) : c.track_type === K.RETIREMENT_TRACK && await s(c), d(n.alert_goal_deleted), _(void 0));
12872
12872
  }, R = async () => {
12873
12873
  const L = {
@@ -12900,7 +12900,7 @@ const Pm = (e, n) => {
12900
12900
  isOpen: m,
12901
12901
  maxWidth: "xs",
12902
12902
  onClose: () => C(!1),
12903
- onPrimaryAction: w,
12903
+ onPrimaryAction: v,
12904
12904
  primaryColor: "error",
12905
12905
  primaryText: a.delete_button,
12906
12906
  children: /* @__PURE__ */ t(p, { sx: { textWrap: "wrap" }, variant: "Paragraph", children: T(n.delete_description, c?.name || "") })
@@ -12908,7 +12908,7 @@ const Pm = (e, n) => {
12908
12908
  )
12909
12909
  ] });
12910
12910
  }), hE = x(({ onBackClick: e, sx: n }) => {
12911
- const { onEvent: a } = j(), { isMobile: i } = Ce(), { visibleAccounts: o } = ve(), { isCopyLoaded: r, isInitialized: s, setSelectedAccounts: c } = le(), { goals: d, common: _ } = I(), { alert: u, goals: g, goalsLoaded: m, loadGoals: C, monthlyCashFlowProfile: f, setAlert: E, retirmentGoals: b } = ot(), [S, A] = h.useState(0), [v, w] = h.useState(!1), R = f?.amount_allocated_for_savings_goals || 0, L = f?.amount_allocated_for_debt_goals || 0, B = f?.amount_allocated_for_retirement_goals || 0, D = r ? T(
12911
+ const { onEvent: a } = j(), { isMobile: i } = Ce(), { visibleAccounts: o } = ve(), { isCopyLoaded: r, isInitialized: s, setSelectedAccounts: c } = le(), { goals: d, common: _ } = I(), { alert: u, goals: g, goalsLoaded: m, loadGoals: C, monthlyCashFlowProfile: f, setAlert: E, retirmentGoals: b } = ot(), [S, A] = h.useState(0), [w, v] = h.useState(!1), R = f?.amount_allocated_for_savings_goals || 0, L = f?.amount_allocated_for_debt_goals || 0, B = f?.amount_allocated_for_retirement_goals || 0, D = r ? T(
12912
12912
  i ? d.tab_subtitle_mobile : d.tab_subtitle,
12913
12913
  H(R, "0,0")
12914
12914
  ) : "", G = r ? T(
@@ -12926,9 +12926,9 @@ const Pm = (e, n) => {
12926
12926
  const U = () => {
12927
12927
  a(W.GOALS_CLICK_FILTER);
12928
12928
  }, oe = () => {
12929
- w(!0), a(W.GOALS_CLICK_ADD);
12929
+ v(!0), a(W.GOALS_CLICK_ADD);
12930
12930
  }, me = (he) => {
12931
- w(!1), he === K.SAVINGS_TRACK ? A(0) : he === K.DEBT_TRACK ? A(1) : he === K.RETIREMENT_TRACK && A(2);
12931
+ v(!1), he === K.SAVINGS_TRACK ? A(0) : he === K.DEBT_TRACK ? A(1) : he === K.RETIREMENT_TRACK && A(2);
12932
12932
  }, te = h.useMemo(
12933
12933
  () => m && (g.length === 0 || g.every(({ track_type: he }) => !he) && b.length === 0),
12934
12934
  [g, m, b]
@@ -13009,8 +13009,8 @@ const Pm = (e, n) => {
13009
13009
  ce,
13010
13010
  {
13011
13011
  ariaLabelClose: _.close_aria,
13012
- isOpen: v,
13013
- onClose: () => w(!1),
13012
+ isOpen: w,
13013
+ onClose: () => v(!1),
13014
13014
  title: d.add_goal_title,
13015
13015
  children: /* @__PURE__ */ t(zm, { onClose: me })
13016
13016
  }
@@ -14383,8 +14383,8 @@ const $p = ({ amount: e, copy: n, trendValue: a }) => {
14383
14383
  selectedData: f,
14384
14384
  setHoveredData: E,
14385
14385
  setSelectedData: b
14386
- } = Ds(), { isMobile: S } = Ce(), { onEvent: A } = j(), [v, w] = h.useState(!1), [R, L] = h.useState(6), [B, D] = h.useState(!1), [G, k] = h.useState(!1), [U, oe] = h.useState(!1), me = async () => {
14387
- await m(i), await g(R), w(!0);
14386
+ } = Ds(), { isMobile: S } = Ce(), { onEvent: A } = j(), [w, v] = h.useState(!1), [R, L] = h.useState(6), [B, D] = h.useState(!1), [G, k] = h.useState(!1), [U, oe] = h.useState(!1), me = async () => {
14387
+ await m(i), await g(R), v(!0);
14388
14388
  };
14389
14389
  h.useEffect(() => {
14390
14390
  A(W.NET_WORTH_VIEW);
@@ -14442,7 +14442,7 @@ const $p = ({ amount: e, copy: n, trendValue: a }) => {
14442
14442
  }
14443
14443
  },
14444
14444
  title: s.net_worth,
14445
- children: v ? /* @__PURE__ */ l(Z, { children: [
14445
+ children: w ? /* @__PURE__ */ l(Z, { children: [
14446
14446
  C.length ? /* @__PURE__ */ l(Z, { children: [
14447
14447
  f && /* @__PURE__ */ t(Op, { hoveredData: u, selectedData: f }),
14448
14448
  /* @__PURE__ */ l(
@@ -15134,7 +15134,7 @@ const l1 = x(() => {
15134
15134
  birthday: g.birthday,
15135
15135
  postal_code: g.postal_code,
15136
15136
  credit_score: g.credit_score
15137
- }), [f, E] = h.useState(!1), [b, S] = h.useState(!1), A = h.useRef(null), v = m.email && !g.email_is_verified && !f, w = m.phone && !g.phone_is_verified && !f;
15137
+ }), [f, E] = h.useState(!1), [b, S] = h.useState(!1), A = h.useRef(null), w = m.email && !g.email_is_verified && !f, v = m.phone && !g.phone_is_verified && !f;
15138
15138
  h.useEffect(() => {
15139
15139
  if (n) {
15140
15140
  const k = (U) => {
@@ -15207,7 +15207,7 @@ const l1 = x(() => {
15207
15207
  }
15208
15208
  ),
15209
15209
  /* @__PURE__ */ l(y, { direction: s ? "column" : "row", children: [
15210
- _.display_email_edit_field_in_settings && /* @__PURE__ */ l(y, { sx: { mb: v ? 20 : 44, mr: s ? 0 : 24 }, children: [
15210
+ _.display_email_edit_field_in_settings && /* @__PURE__ */ l(y, { sx: { mb: w ? 20 : 44, mr: s ? 0 : 24 }, children: [
15211
15211
  /* @__PURE__ */ t(
15212
15212
  nt,
15213
15213
  {
@@ -15216,9 +15216,9 @@ const l1 = x(() => {
15216
15216
  onChange: (k) => G({ email: k.target.value })
15217
15217
  }
15218
15218
  ),
15219
- v && /* @__PURE__ */ t(l1, {})
15219
+ w && /* @__PURE__ */ t(l1, {})
15220
15220
  ] }),
15221
- _.display_sms_edit_field_in_settings && /* @__PURE__ */ l(y, { sx: { mb: w ? 20 : 44 }, children: [
15221
+ _.display_sms_edit_field_in_settings && /* @__PURE__ */ l(y, { sx: { mb: v ? 20 : 44 }, children: [
15222
15222
  /* @__PURE__ */ t(
15223
15223
  nt,
15224
15224
  {
@@ -15228,7 +15228,7 @@ const l1 = x(() => {
15228
15228
  type: "tel"
15229
15229
  }
15230
15230
  ),
15231
- w && /* @__PURE__ */ t(_1, {})
15231
+ v && /* @__PURE__ */ t(_1, {})
15232
15232
  ] })
15233
15233
  ] }),
15234
15234
  /* @__PURE__ */ l(y, { direction: s ? "column" : "row", spacing: s ? 44 : 24, sx: { mb: 44 }, children: [
@@ -16167,35 +16167,35 @@ const l1 = x(() => {
16167
16167
  h.useEffect(() => {
16168
16168
  g().finally(), u().finally();
16169
16169
  }, []), h.useEffect(() => {
16170
- C && f(d.find((S) => S.guid === C.guid));
16170
+ C && f(d.find((A) => A.guid === C.guid));
16171
16171
  }, [r]);
16172
- const E = async (S) => {
16173
- await m(S);
16174
- }, b = (S) => {
16175
- const A = {
16176
- ...S,
16177
- is_enabled: !S.is_enabled
16172
+ const E = async (A) => {
16173
+ await m(A);
16174
+ }, b = (A) => {
16175
+ const w = {
16176
+ ...A,
16177
+ is_enabled: !A.is_enabled
16178
16178
  };
16179
16179
  if (n) {
16180
- const v = He[S.notification_type] || "Unknown";
16181
- A.is_enabled ? n("opt_in_notification_insight", { notificationType: v }) : n("opt_out_notification_insight", {
16180
+ const v = He[A.notification_type] || "Unknown";
16181
+ w.is_enabled ? n("opt_in_notification_insight", { notificationType: v }) : n("opt_out_notification_insight", {
16182
16182
  notificationType: v
16183
16183
  });
16184
16184
  }
16185
- E(A);
16186
- };
16185
+ E(w);
16186
+ }, S = c.email_notifications_enabled || c.sms_notifications_enabled || c.push_notifications_enabled;
16187
16187
  return /* @__PURE__ */ l(y, { sx: { px: o ? 24 : 0 }, children: [
16188
16188
  e.includes(
16189
16189
  "delivery"
16190
16190
  /* Delivery */
16191
- ) && (c.email_notifications_enabled || c.sms_notifications_enabled || c.push_notifications_enabled) && /* @__PURE__ */ l(Z, { children: [
16191
+ ) && S && /* @__PURE__ */ l(Z, { children: [
16192
16192
  /* @__PURE__ */ t(A1, {}),
16193
16193
  /* @__PURE__ */ t(P, { sx: { my: 24 } })
16194
16194
  ] }),
16195
16195
  e.includes(
16196
16196
  "insights"
16197
16197
  /* Insights */
16198
- ) && _.length > 0 && /* @__PURE__ */ l(Z, { children: [
16198
+ ) && _.length > 0 && /* @__PURE__ */ l(y, { sx: { mt: S ? 0 : 24 }, children: [
16199
16199
  /* @__PURE__ */ t(v1, {}),
16200
16200
  /* @__PURE__ */ t(P, { sx: { mb: 24, mt: 0 } })
16201
16201
  ] }),
@@ -16204,17 +16204,17 @@ const l1 = x(() => {
16204
16204
  /* Accounts */
16205
16205
  ) && /* @__PURE__ */ l(Z, { children: [
16206
16206
  /* @__PURE__ */ t(dt, { mb: 24, children: i.accounts_title }),
16207
- r.map((S) => /* @__PURE__ */ t(
16207
+ r.map((A) => /* @__PURE__ */ t(
16208
16208
  Mi,
16209
16209
  {
16210
- isChecked: S.is_enabled,
16211
- isDisabled: !S.is_enabled,
16212
- onClick: () => f(S),
16213
- onToggle: () => b(S),
16214
- primaryText: S.label,
16215
- secondaryText: S.is_enabled ? S.deliveryMethodsLabel : void 0
16210
+ isChecked: A.is_enabled,
16211
+ isDisabled: !A.is_enabled,
16212
+ onClick: () => f(A),
16213
+ onToggle: () => b(A),
16214
+ primaryText: A.label,
16215
+ secondaryText: A.is_enabled ? A.deliveryMethodsLabel : void 0
16216
16216
  },
16217
- S.guid
16217
+ A.guid
16218
16218
  )),
16219
16219
  /* @__PURE__ */ t(P, { sx: { my: 24 } })
16220
16220
  ] }),
@@ -16223,17 +16223,17 @@ const l1 = x(() => {
16223
16223
  /* Budgets */
16224
16224
  ) && /* @__PURE__ */ l(Z, { children: [
16225
16225
  /* @__PURE__ */ t(dt, { mb: 24, children: i.budgets_title }),
16226
- s.map((S) => /* @__PURE__ */ t(
16226
+ s.map((A) => /* @__PURE__ */ t(
16227
16227
  Mi,
16228
16228
  {
16229
- isChecked: S.is_enabled,
16230
- isDisabled: !S.is_enabled,
16231
- onClick: () => f(S),
16232
- onToggle: () => b(S),
16233
- primaryText: S.label,
16234
- secondaryText: S.is_enabled ? S.deliveryMethodsLabel : void 0
16229
+ isChecked: A.is_enabled,
16230
+ isDisabled: !A.is_enabled,
16231
+ onClick: () => f(A),
16232
+ onToggle: () => b(A),
16233
+ primaryText: A.label,
16234
+ secondaryText: A.is_enabled ? A.deliveryMethodsLabel : void 0
16235
16235
  },
16236
- S.guid
16236
+ A.guid
16237
16237
  ))
16238
16238
  ] }),
16239
16239
  /* @__PURE__ */ t(
@@ -16283,15 +16283,15 @@ const l1 = x(() => {
16283
16283
  /* @__PURE__ */ t(y, { sx: { flexDirection: { xs: "column", md: "row" }, gap: 12 }, children: [0, 1].map((u) => {
16284
16284
  const g = u === 0 ? 0 : _, m = u === 0 ? _ : a.length, C = a.slice(g, m);
16285
16285
  return /* @__PURE__ */ t(y, { sx: { flex: 1, gap: 12, maxWidth: { md: "calc(50% - 6px)" } }, children: C.map(({ guid: f, icon: E, topics: b, title: S }, A) => {
16286
- const v = A + g;
16286
+ const w = A + g;
16287
16287
  return /* @__PURE__ */ l(
16288
16288
  Xn,
16289
16289
  {
16290
16290
  disableGutters: !0,
16291
- expanded: v === c,
16292
- onChange: (w, R) => d(R ? v : null),
16293
- sx: (w) => ({
16294
- border: `1px solid ${w.palette.border?.light}`,
16291
+ expanded: w === c,
16292
+ onChange: (v, R) => d(R ? w : null),
16293
+ sx: (v) => ({
16294
+ border: `1px solid ${v.palette.border?.light}`,
16295
16295
  borderRadius: "8px !important",
16296
16296
  "&:before": {
16297
16297
  opacity: 0
@@ -16322,12 +16322,12 @@ const l1 = x(() => {
16322
16322
  ml: 56,
16323
16323
  p: 0
16324
16324
  },
16325
- children: /* @__PURE__ */ t(ae, { disablePadding: !0, children: b.map(({ label: w, topicKey: R }) => /* @__PURE__ */ t(
16325
+ children: /* @__PURE__ */ t(ae, { disablePadding: !0, children: b.map(({ label: v, topicKey: R }) => /* @__PURE__ */ t(
16326
16326
  _e,
16327
16327
  {
16328
- "aria-label": w,
16328
+ "aria-label": v,
16329
16329
  divider: !0,
16330
- onClick: () => s({ guid: f, category: S, pageTitle: w, topicKey: R }),
16330
+ onClick: () => s({ guid: f, category: S, pageTitle: v, topicKey: R }),
16331
16331
  sx: {
16332
16332
  pl: "6px !important",
16333
16333
  borderColor: "border.light",
@@ -16336,7 +16336,7 @@ const l1 = x(() => {
16336
16336
  borderBottomRightRadius: 7
16337
16337
  }
16338
16338
  },
16339
- children: /* @__PURE__ */ t(p, { color: "secondary", variant: "Small", children: w })
16339
+ children: /* @__PURE__ */ t(p, { color: "secondary", variant: "Small", children: v })
16340
16340
  },
16341
16341
  R
16342
16342
  )) })
@@ -18976,9 +18976,9 @@ const l1 = x(() => {
18976
18976
  onPrimaryAction: () => {
18977
18977
  const E = {};
18978
18978
  let b = !0;
18979
- g.forEach(({ label: S, name: A, required: v }) => {
18980
- const w = _[A];
18981
- v && !w && (E[A] = `${S} ${e.request_support_required_message}`, b = !1), (A === "institutionWebsite" || A === "institutionLoginPage") && w && !/(.+)\.(.{2,})/g.test(w) && (E[A] = e.request_support_valid_url_message, b = !1);
18979
+ g.forEach(({ label: S, name: A, required: w }) => {
18980
+ const v = _[A];
18981
+ w && !v && (E[A] = `${S} ${e.request_support_required_message}`, b = !1), (A === "institutionWebsite" || A === "institutionLoginPage") && v && !/(.+)\.(.{2,})/g.test(v) && (E[A] = e.request_support_valid_url_message, b = !1);
18982
18982
  }), d(E), b && (i(_), u(Ti));
18983
18983
  },
18984
18984
  secondaryColor: "primary",
@@ -19203,9 +19203,9 @@ const l1 = x(() => {
19203
19203
  })), A = Object.keys(e.popular_topics_list).map((D, G) => ({
19204
19204
  name: e.popular_topics_list[D],
19205
19205
  type: ip[G].type
19206
- })), v = () => {
19206
+ })), w = () => {
19207
19207
  u(""), b({ isOpen: !1, topic: "", type: void 0 });
19208
- }, w = (D) => {
19208
+ }, v = (D) => {
19209
19209
  c.email && o({
19210
19210
  email: c.email,
19211
19211
  message: _ ? `Institution: ${_}, ${D}` : D,
@@ -19214,7 +19214,7 @@ const l1 = x(() => {
19214
19214
  }, R = (D, G) => {
19215
19215
  G === "other" ? f(!0) : b({ isOpen: !0, topic: D, type: G });
19216
19216
  }, L = () => {
19217
- s(""), m(!1), f(!1), v();
19217
+ s(""), m(!1), f(!1), w();
19218
19218
  }, B = (D) => {
19219
19219
  if (!c.email) {
19220
19220
  s(e.request_support_email_not_exists_message, "error");
@@ -19292,7 +19292,7 @@ const l1 = x(() => {
19292
19292
  onClose: () => {
19293
19293
  m(!1), u("");
19294
19294
  },
19295
- onSubmit: w,
19295
+ onSubmit: v,
19296
19296
  setAlert: s,
19297
19297
  topic: E.topic || e.contact_support
19298
19298
  }
@@ -19314,7 +19314,7 @@ const l1 = x(() => {
19314
19314
  onClick: (D) => {
19315
19315
  u(D), E.type === "internal" && m(!0);
19316
19316
  },
19317
- onClose: v,
19317
+ onClose: w,
19318
19318
  topic: E.topic
19319
19319
  }
19320
19320
  ),
@@ -19337,7 +19337,7 @@ const l1 = x(() => {
19337
19337
  institution: _,
19338
19338
  isOpen: !!_ && E.type === "external",
19339
19339
  onClose: () => u(""),
19340
- popularTopicsDrawerOnClose: v,
19340
+ popularTopicsDrawerOnClose: w,
19341
19341
  title: E.topic
19342
19342
  }
19343
19343
  )
@@ -20440,11 +20440,11 @@ const Ai = ({
20440
20440
  account_type: b.account_type
20441
20441
  });
20442
20442
  }, E = (b) => {
20443
- const S = b === "hidden" ? u : g, A = b === "hidden" ? m : C, v = b === "hidden" ? a.account_hidden : a.account_closed;
20443
+ const S = b === "hidden" ? u : g, A = b === "hidden" ? m : C, w = b === "hidden" ? a.account_hidden : a.account_closed;
20444
20444
  return /* @__PURE__ */ t(O, { children: /* @__PURE__ */ t(
20445
20445
  ae,
20446
20446
  {
20447
- "aria-label": v,
20447
+ "aria-label": w,
20448
20448
  subheader: /* @__PURE__ */ t(Lt, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ l(
20449
20449
  we,
20450
20450
  {
@@ -20452,19 +20452,19 @@ const Ai = ({
20452
20452
  direction: "row",
20453
20453
  sx: { justifyContent: "space-between", color: "grey.700" },
20454
20454
  children: [
20455
- /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: v }),
20455
+ /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: w }),
20456
20456
  /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: H(A, "0,0.00") })
20457
20457
  ]
20458
20458
  }
20459
20459
  ) }),
20460
- children: /* @__PURE__ */ t(we, { children: S.map((w, R, L) => {
20460
+ children: /* @__PURE__ */ t(we, { children: S.map((v, R, L) => {
20461
20461
  const B = R === L.length - 1;
20462
20462
  return /* @__PURE__ */ l(h.Fragment, { children: [
20463
20463
  /* @__PURE__ */ t(
20464
20464
  fa,
20465
20465
  {
20466
- account: w,
20467
- onRowClick: () => f(w),
20466
+ account: v,
20467
+ onRowClick: () => f(v),
20468
20468
  shouldShowConnectionStatus: !0
20469
20469
  }
20470
20470
  ),
@@ -20485,7 +20485,7 @@ const Ai = ({
20485
20485
  }
20486
20486
  }
20487
20487
  )
20488
- ] }, w.guid);
20488
+ ] }, v.guid);
20489
20489
  }) })
20490
20490
  }
20491
20491
  ) });
@@ -20493,9 +20493,9 @@ const Ai = ({
20493
20493
  return /* @__PURE__ */ l(O, { sx: { pt: 24 }, children: [
20494
20494
  d.map((b) => {
20495
20495
  const S = i.filter(
20496
- (v) => v.account_type === b && !v.is_closed && !v.is_hidden
20496
+ (w) => w.account_type === b && !w.is_closed && !w.is_hidden
20497
20497
  ), A = S.reduce(
20498
- (v, w) => (w.available_balance || w.balance || 0) + v,
20498
+ (w, v) => (v.available_balance || v.balance || 0) + w,
20499
20499
  0
20500
20500
  );
20501
20501
  return /* @__PURE__ */ t(
@@ -20514,18 +20514,18 @@ const Ai = ({
20514
20514
  ]
20515
20515
  }
20516
20516
  ) }),
20517
- children: /* @__PURE__ */ t(we, { children: S.map((v) => {
20518
- const w = i.indexOf(v) === i.length - 1, R = S.indexOf(v) === S.length - 1;
20517
+ children: /* @__PURE__ */ t(we, { children: S.map((w) => {
20518
+ const v = i.indexOf(w) === i.length - 1, R = S.indexOf(w) === S.length - 1;
20519
20519
  return /* @__PURE__ */ l(h.Fragment, { children: [
20520
20520
  /* @__PURE__ */ t(
20521
20521
  fa,
20522
20522
  {
20523
- account: v,
20524
- onRowClick: () => f(v),
20523
+ account: w,
20524
+ onRowClick: () => f(w),
20525
20525
  shouldShowConnectionStatus: !0
20526
20526
  }
20527
20527
  ),
20528
- (!w || g.length > 0 || u.length > 0) && /* @__PURE__ */ t(
20528
+ (!v || g.length > 0 || u.length > 0) && /* @__PURE__ */ t(
20529
20529
  P,
20530
20530
  {
20531
20531
  sx: {
@@ -20534,7 +20534,7 @@ const Ai = ({
20534
20534
  }
20535
20535
  }
20536
20536
  )
20537
- ] }, v.guid);
20537
+ ] }, w.guid);
20538
20538
  }) })
20539
20539
  },
20540
20540
  b
@@ -21423,9 +21423,9 @@ const kC = () => {
21423
21423
  e("survey dismissed", {
21424
21424
  $survey_id: a
21425
21425
  }), u(), S(!1);
21426
- }, v = () => {
21427
- r();
21428
21426
  }, w = () => {
21427
+ r();
21428
+ }, v = () => {
21429
21429
  e("survey sent", _), u(), S(!0);
21430
21430
  };
21431
21431
  return f ? !i && !b ? null : /* @__PURE__ */ l(
@@ -21461,7 +21461,7 @@ const kC = () => {
21461
21461
  J,
21462
21462
  {
21463
21463
  disabled: !o && !d,
21464
- onClick: o ? w : v,
21464
+ onClick: o ? v : w,
21465
21465
  sx: {
21466
21466
  borderColor: n.palette.border.light,
21467
21467
  "&:hover": {
@@ -22022,7 +22022,7 @@ const JC = ({
22022
22022
  const { budgets: a, common: i } = I(), { setExpandedGuid: o, setOnSelect: r } = ln(), { addBudget: s } = _t(), [c, d] = h.useState(!1), [_, u] = h.useState(!1), [g, m] = h.useState(""), [C, f] = h.useState(void 0);
22023
22023
  h.useEffect(() => {
22024
22024
  r((S) => {
22025
- const A = e.subCategories.find((v) => v.guid === S);
22025
+ const A = e.subCategories.find((w) => w.guid === S);
22026
22026
  A && (f(A), m(`${A.currentAmount === 0 ? "" : A.currentAmount}`), u(!0));
22027
22027
  });
22028
22028
  }, []);
@@ -22075,7 +22075,7 @@ const JC = ({
22075
22075
  h.useEffect(() => {
22076
22076
  s && (b(`${s.amount}`), u({
22077
22077
  ..._,
22078
- custom: (w) => w.category_guid === s.category_guid
22078
+ custom: (v) => v.category_guid === s.category_guid
22079
22079
  }));
22080
22080
  }, [s]);
22081
22081
  const S = async () => {
@@ -22084,19 +22084,19 @@ const JC = ({
22084
22084
  amount: Number(E)
22085
22085
  });
22086
22086
  }, A = async () => {
22087
- s && await r(s.guid), f(!1), v();
22088
- }, v = () => {
22087
+ s && await r(s.guid), f(!1), w();
22088
+ }, w = () => {
22089
22089
  u({
22090
22090
  ..._,
22091
- custom: (w) => w.category_guid === e.category_guid || w.top_level_category_guid === e.category_guid
22091
+ custom: (v) => v.category_guid === e.category_guid || v.top_level_category_guid === e.category_guid
22092
22092
  }), c(void 0);
22093
22093
  };
22094
22094
  return /* @__PURE__ */ l(h.Fragment, { children: [
22095
22095
  /* @__PURE__ */ l(ae, { sx: { bgcolor: "background.paper" }, children: [
22096
- a.length === 0 ? /* @__PURE__ */ t(c0, {}) : a.map((w) => /* @__PURE__ */ l(h.Fragment, { children: [
22097
- /* @__PURE__ */ t(l0, { budget: w }),
22096
+ a.length === 0 ? /* @__PURE__ */ t(c0, {}) : a.map((v) => /* @__PURE__ */ l(h.Fragment, { children: [
22097
+ /* @__PURE__ */ t(l0, { budget: v }),
22098
22098
  /* @__PURE__ */ t(P, {})
22099
- ] }, w.guid)),
22099
+ ] }, v.guid)),
22100
22100
  /* @__PURE__ */ t(d0, { category: n, parentBudget: e })
22101
22101
  ] }),
22102
22102
  /* @__PURE__ */ t(
@@ -22104,7 +22104,7 @@ const JC = ({
22104
22104
  {
22105
22105
  ariaLabelClose: o.close_aria,
22106
22106
  isOpen: !!s,
22107
- onClose: v,
22107
+ onClose: w,
22108
22108
  onPrimaryAction: () => m(!0),
22109
22109
  onSecondaryAction: () => f(!0),
22110
22110
  primaryText: i.details_edit_button,
@@ -22219,13 +22219,13 @@ const JC = ({
22219
22219
  custom: (L) => L.category_guid === r.category_guid || L.top_level_category_guid === r.category_guid
22220
22220
  }));
22221
22221
  }, [r]);
22222
- const v = async () => {
22222
+ const w = async () => {
22223
22223
  r && (await _({
22224
22224
  ...r,
22225
22225
  amount: Number(S),
22226
22226
  percentage: r.category.totalAmount / Number(S) * 100
22227
22227
  }), c(T(n.alert_budget_updated, r.category.name)));
22228
- }, w = async () => {
22228
+ }, v = async () => {
22229
22229
  r && (await o(r.guid), c(T(n.alert_budget_deleted, r.category.name))), b(!1), R();
22230
22230
  }, R = () => {
22231
22231
  m(!1), setTimeout(() => {
@@ -22256,7 +22256,7 @@ const JC = ({
22256
22256
  disablePrimaryButton: Number(S) <= 0,
22257
22257
  isOpen: C,
22258
22258
  onClose: () => f(!1),
22259
- onPrimaryAction: v,
22259
+ onPrimaryAction: w,
22260
22260
  primaryText: n.edit_save_button,
22261
22261
  children: /* @__PURE__ */ t(
22262
22262
  hi,
@@ -22274,7 +22274,7 @@ const JC = ({
22274
22274
  copy: { close_aria: a.close_aria, title: n.delete_title },
22275
22275
  isOpen: E,
22276
22276
  onClose: () => b(!1),
22277
- onPrimaryAction: w,
22277
+ onPrimaryAction: v,
22278
22278
  primaryColor: "error",
22279
22279
  primaryText: n.details_delete_button,
22280
22280
  secondaryColor: "secondary",
@@ -22327,34 +22327,34 @@ const JC = ({
22327
22327
  ] });
22328
22328
  }), p0 = x(() => {
22329
22329
  const e = fe(), { onEvent: n } = j(), { visibleAccounts: a } = ve(), { budgets: i, common: o, recurring: r } = I(), { incomeCategories: s, spendCategories: c } = Ve(), { detailedBudgets: d, totalBudgeted: _ } = _t(), { projectedIncome: u } = Ze(), { setFilter: g } = De(), [m, C] = h.useState(!1), [f, E] = h.useMemo(() => {
22330
- const v = c.reduce((B, D) => B + D.totalAmount, 0);
22331
- let w = v / _;
22332
- w > 1 && (w = 1);
22330
+ const w = c.reduce((B, D) => B + D.totalAmount, 0);
22331
+ let v = w / _;
22332
+ v > 1 && (v = 1);
22333
22333
  let R = e.palette.success.main;
22334
- w > 0.8 && w < 1 ? R = e.palette.warning.main : w >= 1 && (R = e.palette.error.main);
22334
+ v > 0.8 && v < 1 ? R = e.palette.warning.main : v >= 1 && (R = e.palette.error.main);
22335
22335
  const L = [
22336
22336
  {
22337
22337
  color: R,
22338
- percentage: `${w}`
22338
+ percentage: `${v}`
22339
22339
  }
22340
22340
  ];
22341
- return [v, L];
22341
+ return [w, L];
22342
22342
  }, [d, c]), [b, S] = h.useMemo(() => {
22343
- const v = Math.abs(
22343
+ const w = Math.abs(
22344
22344
  s.reduce((L, B) => L + B.totalAmount, 0)
22345
22345
  );
22346
- let w = v / u;
22347
- w > 1 && (w = 1);
22346
+ let v = w / u;
22347
+ v > 1 && (v = 1);
22348
22348
  const R = [
22349
22349
  {
22350
22350
  color: e.palette.secondary.main,
22351
- percentage: `${w}`
22351
+ percentage: `${v}`
22352
22352
  }
22353
22353
  ];
22354
- return [v, R];
22354
+ return [w, R];
22355
22355
  }, [s, u]), A = () => {
22356
22356
  g({
22357
- accounts: a.map((v) => v.guid),
22357
+ accounts: a.map((w) => w.guid),
22358
22358
  dateRange: {
22359
22359
  start: wt(/* @__PURE__ */ new Date(), 90),
22360
22360
  end: /* @__PURE__ */ new Date()
@@ -22417,14 +22417,14 @@ const JC = ({
22417
22417
  setDateRange: b,
22418
22418
  setAlert: S,
22419
22419
  setTheme: A,
22420
- budgets: v
22421
- } = _t(), { loadRepeatingTransactions: w } = Ze(), { reloadCategoryTotals: R } = Ve(), { isSmallTablet: L, isMobile: B, isSmallMobile: D } = Ce(), G = L || B || D, [k, U] = h.useState(!1);
22420
+ budgets: w
22421
+ } = _t(), { loadRepeatingTransactions: v } = Ze(), { reloadCategoryTotals: R } = Ve(), { isSmallTablet: L, isMobile: B, isSmallMobile: D } = Ce(), G = L || B || D, [k, U] = h.useState(!1);
22422
22422
  h.useEffect(() => {
22423
22423
  A(a), g(o), u(C.start, C.end), i(W.BUDGETS_VIEW);
22424
22424
  }, []), h.useEffect(() => {
22425
22425
  g(o);
22426
22426
  }, [o]), h.useEffect(() => {
22427
- d && (R(_, C.start, C.end).finally(), f || (w().finally(), E().finally()));
22427
+ d && (R(_, C.start, C.end).finally(), f || (v().finally(), E().finally()));
22428
22428
  }, [d, _, C]);
22429
22429
  const oe = (Oe) => {
22430
22430
  b({ start: Oe[0] || /* @__PURE__ */ new Date(), end: Oe[1] || /* @__PURE__ */ new Date() });
@@ -22467,11 +22467,11 @@ const JC = ({
22467
22467
  createBudgetOnClick: te,
22468
22468
  height: G ? 450 : 800,
22469
22469
  isDraggable: !0,
22470
- shouldShowZeroState: v.length === 0,
22470
+ shouldShowZeroState: w.length === 0,
22471
22471
  unavailableWidth: G ? 0 : Ur
22472
22472
  }
22473
22473
  ) }),
22474
- v.length !== 0 && /* @__PURE__ */ l(
22474
+ w.length !== 0 && /* @__PURE__ */ l(
22475
22475
  y,
22476
22476
  {
22477
22477
  gap: 24,
@@ -22803,10 +22803,10 @@ const S0 = ({ widgets: e, isLoading: n }) => {
22803
22803
  ), m = u + d;
22804
22804
  A0.forEach((f, E) => {
22805
22805
  const b = c.filter(
22806
- (v) => !!v[f.name]
22806
+ (w) => !!w[f.name]
22807
22807
  );
22808
22808
  let S = b.reduce(
22809
- (v, w) => v + Pa(w) * w[f.name] / 100,
22809
+ (w, v) => w + Pa(v) * v[f.name] / 100,
22810
22810
  0
22811
22811
  );
22812
22812
  const A = x0(
@@ -22816,13 +22816,13 @@ const S0 = ({ widgets: e, isLoading: n }) => {
22816
22816
  );
22817
22817
  if (f.name === "allocations_cash" && d > 0) {
22818
22818
  S += d;
22819
- const v = {
22819
+ const w = {
22820
22820
  displayName: n.cash_balance_display_name,
22821
22821
  name: "allocations_name",
22822
22822
  value: d,
22823
22823
  percentage: d / m
22824
22824
  };
22825
- A.push(v);
22825
+ A.push(w);
22826
22826
  }
22827
22827
  S > 0 && (o.push({
22828
22828
  name: f.name,
@@ -23281,16 +23281,16 @@ const S0 = ({ widgets: e, isLoading: n }) => {
23281
23281
  }
23282
23282
  ),
23283
23283
  n.map((C, f, E) => /* @__PURE__ */ t(y, { sx: { flexDirection: "row", gap: 4 }, children: C.map((b, S) => {
23284
- const A = f === 0, v = f === E.length - 1, w = S === 0, R = S === C.length - 1, L = Number(b.replace("%", "")) >= 25;
23284
+ const A = f === 0, w = f === E.length - 1, v = S === 0, R = S === C.length - 1, L = Number(b.replace("%", "")) >= 25;
23285
23285
  let B = "grey.200", D = "grey.900";
23286
23286
  return d ? (B = L ? "grey.200" : "grey.700", D = L ? "grey.900" : "common.white") : (B = L ? "grey.700" : "grey.200", D = L ? "common.white" : "grey.900"), /* @__PURE__ */ t(
23287
23287
  y,
23288
23288
  {
23289
23289
  sx: {
23290
23290
  ...{
23291
- borderBottomLeftRadius: v && w ? 4 : 0,
23292
- borderBottomRightRadius: v && R ? 4 : 0,
23293
- borderTopLeftRadius: A && w ? 4 : 0,
23291
+ borderBottomLeftRadius: w && v ? 4 : 0,
23292
+ borderBottomRightRadius: w && R ? 4 : 0,
23293
+ borderTopLeftRadius: A && v ? 4 : 0,
23294
23294
  borderTopRightRadius: A && R ? 4 : 0
23295
23295
  },
23296
23296
  alignItems: "center",
@@ -23824,7 +23824,7 @@ const S0 = ({ widgets: e, isLoading: n }) => {
23824
23824
  const { isMobile: e } = Ce(), [n, a] = St({}), [i, o] = St(!1), { selectedAccountGuids: r } = le(), { visibleHoldings: s, updateHoldings: c } = Gn(), [d, _] = h.useState(!1), [u, g] = St({
23825
23825
  accounts: [],
23826
23826
  holdings: []
23827
- }), { accounts: m, investments: C } = I(), { isCopyLoaded: f } = le(), [E, b] = St(null), [S, A] = St(""), w = fe().palette.mode === "dark", R = w ? "#0AC295" : "#09A57F", L = w ? "grey.300" : "grey.700", B = (Q, ee = "lesserThan") => ee === "greaterThan" ? Q >= 0 ? R : L : Q <= 0 ? L : R, D = (Q, ee) => {
23827
+ }), { accounts: m, investments: C } = I(), { isCopyLoaded: f } = le(), [E, b] = St(null), [S, A] = St(""), v = fe().palette.mode === "dark", R = v ? "#0AC295" : "#09A57F", L = v ? "grey.300" : "grey.700", B = (Q, ee = "lesserThan") => ee === "greaterThan" ? Q >= 0 ? R : L : Q <= 0 ? L : R, D = (Q, ee) => {
23828
23828
  b(Q), A(ee.toFixed(2));
23829
23829
  }, G = (Q) => {
23830
23830
  const ee = Q.target.value;
@@ -24075,7 +24075,7 @@ const S0 = ({ widgets: e, isLoading: n }) => {
24075
24075
  },
24076
24076
  Q.guid
24077
24077
  );
24078
- const Ge = w ? "grey.700" : "grey.400", Bt = ee.length ? "text.primary" : Ge;
24078
+ const Ge = v ? "grey.700" : "grey.400", Bt = ee.length ? "text.primary" : Ge;
24079
24079
  return /* @__PURE__ */ l(
24080
24080
  Xn,
24081
24081
  {
@@ -24258,7 +24258,7 @@ const S0 = ({ widgets: e, isLoading: n }) => {
24258
24258
  W.INVESTMENT_WIDGET_DETAILS_CLICK,
24259
24259
  W.INVESTMENT_WIDGET_ALLOCATION_CLICK,
24260
24260
  W.INVESTMENT_WIDGET_ANALYSIS_CLICK
24261
- ], A = o.length === 0 && r.length === 0, v = [
24261
+ ], A = o.length === 0 && r.length === 0, w = [
24262
24262
  d.tab_overview_title,
24263
24263
  d.tab_allocation_title,
24264
24264
  d.tab_analysis_title
@@ -24276,14 +24276,14 @@ const S0 = ({ widgets: e, isLoading: n }) => {
24276
24276
  /* @__PURE__ */ t(
24277
24277
  jt,
24278
24278
  {
24279
- onChange: (w, R) => {
24279
+ onChange: (v, R) => {
24280
24280
  f(R), a(S[R]);
24281
24281
  },
24282
24282
  sx: { bgcolor: "background.paper" },
24283
24283
  textColor: "primary",
24284
24284
  value: A ? -1 : C,
24285
24285
  variant: "fullWidth",
24286
- children: v.map((w) => /* @__PURE__ */ t(Je, { disabled: A, label: /* @__PURE__ */ t(W0, { title: w }) }, w))
24286
+ children: w.map((v) => /* @__PURE__ */ t(Je, { disabled: A, label: /* @__PURE__ */ t(W0, { title: v }) }, v))
24287
24287
  }
24288
24288
  ),
24289
24289
  A ? /* @__PURE__ */ t(
@@ -24569,7 +24569,7 @@ const va = h.createContext(null), X0 = ({
24569
24569
  variant: f,
24570
24570
  widthOverrides: E
24571
24571
  }, b) {
24572
- const [S, A] = h.useState(2), [v, w] = h.useState(!1);
24572
+ const [S, A] = h.useState(2), [w, v] = h.useState(!1);
24573
24573
  h.useEffect(() => {
24574
24574
  E && E <= 325 && A(3);
24575
24575
  }, [E]);
@@ -24612,13 +24612,13 @@ const va = h.createContext(null), X0 = ({
24612
24612
  "aria-label": a,
24613
24613
  id: "divButton",
24614
24614
  onClick: () => _(),
24615
- onKeyDown: () => w(!1),
24616
- onKeyUp: () => w(!0),
24615
+ onKeyDown: () => v(!1),
24616
+ onKeyUp: () => v(!0),
24617
24617
  ref: b,
24618
24618
  role: "button",
24619
24619
  style: {
24620
24620
  borderRadius: "8px",
24621
- border: v ? "1px solid rgba(82, 138, 224, 0.8)" : void 0
24621
+ border: w ? "1px solid rgba(82, 138, 224, 0.8)" : void 0
24622
24622
  },
24623
24623
  tabIndex: c ? 0 : -1,
24624
24624
  children: /* @__PURE__ */ t(
@@ -25589,11 +25589,11 @@ const va = h.createContext(null), X0 = ({
25589
25589
  }, [f]), Mn(() => {
25590
25590
  if (f && a)
25591
25591
  if (a.template === "MarketingOffer") {
25592
- const w = a;
25592
+ const v = a;
25593
25593
  _?.capture("viewed_messaging_insight", {
25594
25594
  template: a.template,
25595
- campaign_guid: w.campaign_guid,
25596
- campaign_name: w.pulse_campaign_name
25595
+ campaign_guid: v.campaign_guid,
25596
+ campaign_name: v.pulse_campaign_name
25597
25597
  });
25598
25598
  } else
25599
25599
  _?.capture("viewed_insight", {
@@ -25602,13 +25602,13 @@ const va = h.createContext(null), X0 = ({
25602
25602
  position: s
25603
25603
  });
25604
25604
  }, [a, s, f]);
25605
- const v = () => {
25605
+ const w = () => {
25606
25606
  if (d && d(a), b(Nc(a.template)), a.template === "MarketingOffer") {
25607
- const w = a;
25607
+ const v = a;
25608
25608
  _?.capture("clicked_messaging_insight", {
25609
25609
  template: a.template,
25610
- campaign_guid: w.campaign_guid,
25611
- campaign_name: w.pulse_campaign_name
25610
+ campaign_guid: v.campaign_guid,
25611
+ campaign_name: v.pulse_campaign_name
25612
25612
  });
25613
25613
  } else
25614
25614
  _?.capture("clicked_insight", {
@@ -25636,7 +25636,7 @@ const va = h.createContext(null), X0 = ({
25636
25636
  }
25637
25637
  ),
25638
25638
  isActiveCard: c,
25639
- onCardClick: v,
25639
+ onCardClick: w,
25640
25640
  posthog: _,
25641
25641
  ref: C,
25642
25642
  showCTAColocatedWithText: o,
@@ -25732,8 +25732,8 @@ const va = h.createContext(null), X0 = ({
25732
25732
  variant: _,
25733
25733
  widthOverrides: u
25734
25734
  }) => {
25735
- const g = uf(i, d, u), m = h.useRef(null), [C, f] = h.useState(0), [E, b] = h.useState(null), [S, A] = h.useState(null), { carouselCopy: v } = Rn(), { onEvent: w } = wa(), R = () => {
25736
- w($t.ON_CAROUSEL_FORWARD_CLICK), m.current && m.current.scrollTo({
25735
+ const g = uf(i, d, u), m = h.useRef(null), [C, f] = h.useState(0), [E, b] = h.useState(null), [S, A] = h.useState(null), { carouselCopy: w } = Rn(), { onEvent: v } = wa(), R = () => {
25736
+ v($t.ON_CAROUSEL_FORWARD_CLICK), m.current && m.current.scrollTo({
25737
25737
  left: (
25738
25738
  // Adds the flex gap to the carousel ref's width
25739
25739
  (m.current.offsetWidth + 8) * (Math.floor(C / (m.current.offsetWidth + 8)) + 1)
@@ -25742,7 +25742,7 @@ const va = h.createContext(null), X0 = ({
25742
25742
  behavior: "smooth"
25743
25743
  });
25744
25744
  }, L = () => {
25745
- w($t.ON_CAROUSEL_BACK_CLICK), m.current && m.current.scrollTo({
25745
+ v($t.ON_CAROUSEL_BACK_CLICK), m.current && m.current.scrollTo({
25746
25746
  left: (m.current.offsetWidth + 8) * (Math.floor(C / (m.current.offsetWidth + 8)) - 1),
25747
25747
  top: 0,
25748
25748
  behavior: "smooth"
@@ -25751,7 +25751,7 @@ const va = h.createContext(null), X0 = ({
25751
25751
  m.current && f(m.current.scrollLeft);
25752
25752
  }, D = () => {
25753
25753
  if (!S || !E) return;
25754
- S - E > rf ? w($t.ON_CAROUSEL_FORWARD_SWIPE) : w($t.ON_CAROUSEL_BACK_SWIPE);
25754
+ S - E > rf ? v($t.ON_CAROUSEL_FORWARD_SWIPE) : v($t.ON_CAROUSEL_BACK_SWIPE);
25755
25755
  }, G = (te) => {
25756
25756
  b(te.targetTouches[0].clientX);
25757
25757
  }, k = (te) => {
@@ -25768,7 +25768,7 @@ const va = h.createContext(null), X0 = ({
25768
25768
  return /* @__PURE__ */ l(
25769
25769
  "div",
25770
25770
  {
25771
- "aria-label": v.carousel_title,
25771
+ "aria-label": w.carousel_title,
25772
25772
  "aria-roledescription": "carousel",
25773
25773
  className: g,
25774
25774
  role: "group/region",
@@ -25785,7 +25785,7 @@ const va = h.createContext(null), X0 = ({
25785
25785
  children: [
25786
25786
  e.map((te, he) => {
25787
25787
  const Re = he + 1, Oe = e.length + 1, Se = T(
25788
- v.card_position_in_carousel_aria,
25788
+ w.card_position_in_carousel_aria,
25789
25789
  Re.toString(),
25790
25790
  Oe.toString()
25791
25791
  ), Le = te.micro_title && te.micro_title.length > 0, At = te.micro_description && te.micro_description.length > 0, Q = Le ? te.micro_title : te.title, ee = At ? te.micro_description : te.description;
@@ -26076,8 +26076,8 @@ const va = h.createContext(null), X0 = ({
26076
26076
  token: b = "",
26077
26077
  useDarkMode: S,
26078
26078
  userHasFullInsightFeedBeats: A,
26079
- variant: v,
26080
- widthOverrides: w
26079
+ variant: w,
26080
+ widthOverrides: v
26081
26081
  }) => {
26082
26082
  const R = at(), [L, B] = St("STANDARD"), [D, G] = St(!1), k = Qd([d], _n), U = Jd([_], _n);
26083
26083
  h.useEffect(() => {
@@ -26096,17 +26096,17 @@ const va = h.createContext(null), X0 = ({
26096
26096
  showIcon: f,
26097
26097
  showWithMargin: E,
26098
26098
  useDarkMode: S,
26099
- widthOverrides: w
26099
+ widthOverrides: v
26100
26100
  }, me = {
26101
26101
  carouselSize: L,
26102
- variant: v,
26102
+ variant: w,
26103
26103
  ...oe
26104
26104
  };
26105
26105
  return (
26106
26106
  // The Theme provider must wrap the component so that the styles don't break when imported into other applications.
26107
26107
  /* @__PURE__ */ l(hl, { theme: R, children: [
26108
26108
  /* @__PURE__ */ t(xd, {}),
26109
- /* @__PURE__ */ t(X0, { onEvent: k, onPageview: U, store: _n, children: /* @__PURE__ */ l(mf, { heightOverrides: r, widthOverrides: w, children: [
26109
+ /* @__PURE__ */ t(X0, { onEvent: k, onPageview: U, store: _n, children: /* @__PURE__ */ l(mf, { heightOverrides: r, widthOverrides: v, children: [
26110
26110
  (e || !_n.isInitialized) && /* @__PURE__ */ t(pf, {}),
26111
26111
  D && C && /* @__PURE__ */ t(
26112
26112
  gf,
@@ -26114,7 +26114,7 @@ const va = h.createContext(null), X0 = ({
26114
26114
  clientColorScheme: a,
26115
26115
  onCardClick: c,
26116
26116
  posthog: u,
26117
- widthOverrides: w
26117
+ widthOverrides: v
26118
26118
  }
26119
26119
  ),
26120
26120
  D && !!n.length && /* @__PURE__ */ t(
@@ -26123,7 +26123,7 @@ const va = h.createContext(null), X0 = ({
26123
26123
  beats: n,
26124
26124
  clientColorScheme: a,
26125
26125
  showCarouselControls: m,
26126
- variant: g ? v : void 0,
26126
+ variant: g ? w : void 0,
26127
26127
  ...oe
26128
26128
  }
26129
26129
  ),
@@ -26585,10 +26585,10 @@ const va = h.createContext(null), X0 = ({
26585
26585
  const A = h.useMemo(
26586
26586
  () => Hc(n, a),
26587
26587
  [n, a]
26588
- ), v = h.useMemo(
26588
+ ), w = h.useMemo(
26589
26589
  () => Fc(n, a, wf(e)),
26590
26590
  [n, a]
26591
- ), w = h.useMemo(
26591
+ ), v = h.useMemo(
26592
26592
  () => _.find((D) => D.guid === f),
26593
26593
  [f]
26594
26594
  ), R = (D, G) => {
@@ -26639,7 +26639,7 @@ const va = h.createContext(null), X0 = ({
26639
26639
  label: /* @__PURE__ */ t(
26640
26640
  Xa,
26641
26641
  {
26642
- amount: v.totalAmount,
26642
+ amount: w.totalAmount,
26643
26643
  label: o.income_tab_title
26644
26644
  }
26645
26645
  )
@@ -26659,7 +26659,7 @@ const va = h.createContext(null), X0 = ({
26659
26659
  m === 1 && /* @__PURE__ */ t(
26660
26660
  qr,
26661
26661
  {
26662
- data: v,
26662
+ data: w,
26663
26663
  onSelected: L,
26664
26664
  onViewTransactions: B,
26665
26665
  selectedId: u,
@@ -26680,10 +26680,10 @@ const va = h.createContext(null), X0 = ({
26680
26680
  ce,
26681
26681
  {
26682
26682
  ariaLabelClose: o.close_drawer_aria,
26683
- isOpen: !!w,
26683
+ isOpen: !!v,
26684
26684
  onClose: () => E(""),
26685
26685
  title: o.transaction_details_drawer_title,
26686
- children: w && /* @__PURE__ */ t(ea, { transaction: w })
26686
+ children: v && /* @__PURE__ */ t(ea, { transaction: v })
26687
26687
  }
26688
26688
  )
26689
26689
  ] });
@@ -26813,15 +26813,15 @@ const kf = (e) => e.reduce((a, i) => {
26813
26813
  (E) => E.category_guid === a || E.top_level_category_guid === a
26814
26814
  ) : e).reduce(
26815
26815
  (E, b) => {
26816
- const { category_guid: S, top_level_category_guid: A, month: v, total: w, year: R } = b, L = a ? S : A;
26816
+ const { category_guid: S, top_level_category_guid: A, month: w, total: v, year: R } = b, L = a ? S : A;
26817
26817
  E[L] || (E[L] = {
26818
26818
  id: L,
26819
26819
  category: L,
26820
26820
  category_guid: S,
26821
26821
  top_level_category_guid: A
26822
26822
  });
26823
- const B = re(new Date(R, v - 1), ne.MONTH_SHORT);
26824
- return E[L][B] || (E[L][B] = 0), E[L][B] = E[L][B] + w, E;
26823
+ const B = re(new Date(R, w - 1), ne.MONTH_SHORT);
26824
+ return E[L][B] || (E[L][B] = 0), E[L][B] = E[L][B] + v, E;
26825
26825
  },
26826
26826
  {}
26827
26827
  );
@@ -26882,7 +26882,7 @@ const kf = (e) => e.reduce((a, i) => {
26882
26882
  }, Kf = x(Vf), zf = {
26883
26883
  view_transactions: "View Transactions"
26884
26884
  }, Yf = ({ onBackClick: e, sx: n }) => {
26885
- const a = at(), { onEvent: i } = j(), { isDesktop: o, isTablet: r, isMobile: s } = Ce(), { visibleAccounts: c } = ve(), { loadMonthlyCategoryTotals: d, monthlyCategoryTotals: _, getCategoryName: u } = Ve(), { sortedTransactions: g } = De(), { isCopyLoaded: m, isInitialized: C, selectedAccounts: f, setSelectedAccounts: E } = le(), { trends: b } = I(), S = a.palette.mode === "dark", [A, v] = h.useState(!1), [w, R] = h.useState(!1), [L, B] = h.useState("Chart"), [D, G] = h.useState(""), [k, U] = h.useState({
26885
+ const a = at(), { onEvent: i } = j(), { isDesktop: o, isTablet: r, isMobile: s } = Ce(), { visibleAccounts: c } = ve(), { loadMonthlyCategoryTotals: d, monthlyCategoryTotals: _, getCategoryName: u } = Ve(), { sortedTransactions: g } = De(), { isCopyLoaded: m, isInitialized: C, selectedAccounts: f, setSelectedAccounts: E } = le(), { trends: b } = I(), S = a.palette.mode === "dark", [A, w] = h.useState(!1), [v, R] = h.useState(!1), [L, B] = h.useState("Chart"), [D, G] = h.useState(""), [k, U] = h.useState({
26886
26886
  start: Wo(Qe(Vt(/* @__PURE__ */ new Date(), 6)), 1),
26887
26887
  end: Qe(/* @__PURE__ */ new Date())
26888
26888
  });
@@ -26894,7 +26894,7 @@ const kf = (e) => e.reduce((a, i) => {
26894
26894
  k.start,
26895
26895
  k.end
26896
26896
  ).finally(() => {
26897
- v(!0);
26897
+ w(!0);
26898
26898
  });
26899
26899
  }, [C, f, k]);
26900
26900
  const oe = h.useMemo(() => {
@@ -27062,7 +27062,7 @@ const kf = (e) => e.reduce((a, i) => {
27062
27062
  {
27063
27063
  categoryGuid: D,
27064
27064
  dateRange: k,
27065
- isOpen: w,
27065
+ isOpen: v,
27066
27066
  onClose: () => R(!1)
27067
27067
  }
27068
27068
  )