@mx-cartographer/experiences 6.2.3 → 6.2.4-alpha.al0

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
@@ -6,7 +6,7 @@ import G from "@mui/material/Divider";
6
6
  import ae from "@mui/material/List";
7
7
  import Rt from "@mui/material/ListSubheader";
8
8
  import Ee from "@mui/system/Stack";
9
- import { AccountsIcon as rl, P as Le, Icon as P, useTokens as ft, Text as p, H2 as Hn, CategoryIcon as kt, DialogHeader as ol, DialogFooter as sl, Drawer as cl, Footer as ll, DateRangePicker as Vr, H3 as mt, H1 as cn, TextField as An, IconWeight as bt, MerchantLogo as ln, CategoryIconVariants as Cs, InstitutionLogo as pt, ChevronRightIcon as dl, THEMES as Kr } from "@mxenabled/mxui";
9
+ import { AccountsIcon as rl, P as Le, Icon as H, useTokens as ft, Text as p, H2 as Hn, CategoryIcon as kt, DialogHeader as ol, DialogFooter as sl, Drawer as cl, Footer as ll, DateRangePicker as Vr, H3 as mt, H1 as cn, TextField as An, IconWeight as bt, MerchantLogo as ln, CategoryIconVariants as Cs, InstitutionLogo as pt, ChevronRightIcon as dl, THEMES as Kr } from "@mxenabled/mxui";
10
10
  import ul from "bowser";
11
11
  import { getUnixTime as Oe } from "date-fns/getUnixTime";
12
12
  import { intlFormat as _l } from "date-fns/intlFormat";
@@ -19,7 +19,7 @@ import { isBefore as ve } from "date-fns/isBefore";
19
19
  import { nextDay as Ei } from "date-fns/nextDay";
20
20
  import { setDate as Ki } from "date-fns/setDate";
21
21
  import { startOfToday as le } from "date-fns/startOfToday";
22
- import { fromUnixTime as Me } from "date-fns/fromUnixTime";
22
+ import { fromUnixTime as ke } from "date-fns/fromUnixTime";
23
23
  import { Honeybadger as Pi } from "@honeybadger-io/react";
24
24
  import zr from "numeral";
25
25
  import ee from "@mui/material/Button";
@@ -63,7 +63,7 @@ import { startOfYear as qr } from "date-fns/startOfYear";
63
63
  import { subDays as ut } from "date-fns/subDays";
64
64
  import { subYears as Za } from "date-fns/subYears";
65
65
  import Hl from "@mui/material/ButtonGroup";
66
- import ke from "@mui/material/Tab";
66
+ import Me from "@mui/material/Tab";
67
67
  import Lt from "@mui/material/Tabs";
68
68
  import ra from "@mui/material/ToggleButton";
69
69
  import lr from "@mui/material/ToggleButtonGroup";
@@ -861,9 +861,9 @@ const hn = 44, ro = (e, n) => e.find((i) => i.guid === n), Xd = (e, n) => e.find
861
861
  const n = fr(e);
862
862
  return Sn(n, 1);
863
863
  }, $s = (e) => ei(e, 1), Ci = (e) => {
864
- const n = Me(e);
864
+ const n = ke(e);
865
865
  return new Date(n.getUTCFullYear(), n.getUTCMonth(), n.getUTCDate());
866
- }, Oi = (e) => ie(Me(e), te.DAY_OF_WEEK_MONTH_DAY), Fs = (e) => e ? ie(Me(e), te.MONTH_YEAR) : "", Zd = /(?<static>.*?)(?<dynamic>(?:_\d+{(?:.*?)}))|(?<staticEnd>.+)/g, S = (e, ...n) => {
866
+ }, Oi = (e) => ie(ke(e), te.DAY_OF_WEEK_MONTH_DAY), Fs = (e) => e ? ie(ke(e), te.MONTH_YEAR) : "", Zd = /(?<static>.*?)(?<dynamic>(?:_\d+{(?:.*?)}))|(?<staticEnd>.+)/g, S = (e, ...n) => {
867
867
  if (!e) return "";
868
868
  const i = n.some((o) => typeof o != "string"), r = [...e.matchAll(Zd)].reduce(
869
869
  (o, s, c) => {
@@ -948,7 +948,7 @@ class rt {
948
948
  });
949
949
  };
950
950
  }
951
- const B = (e, n, i) => {
951
+ const P = (e, n, i) => {
952
952
  switch (Bn()) {
953
953
  case "fr-ca":
954
954
  return zr(e).format(`${n} $`, i);
@@ -1456,7 +1456,7 @@ const iu = (e, n) => {
1456
1456
  color: "primary",
1457
1457
  onClick: C,
1458
1458
  sx: { p: 12 },
1459
- children: /* @__PURE__ */ t(P, { name: "filter_alt", size: 24 })
1459
+ children: /* @__PURE__ */ t(H, { name: "filter_alt", size: 24 })
1460
1460
  }
1461
1461
  ) }) : /* @__PURE__ */ t(
1462
1462
  ee,
@@ -1465,7 +1465,7 @@ const iu = (e, n) => {
1465
1465
  "aria-haspopup": !0,
1466
1466
  "aria-label": n.title,
1467
1467
  onClick: C,
1468
- startIcon: /* @__PURE__ */ t(P, { name: "filter_alt", size: 24 }),
1468
+ startIcon: /* @__PURE__ */ t(H, { name: "filter_alt", size: 24 }),
1469
1469
  sx: { p: 12 },
1470
1470
  variant: c,
1471
1471
  children: n.title
@@ -2013,7 +2013,7 @@ const bu = ({
2013
2013
  style: { fontSize: n.typography.Small?.fontSize },
2014
2014
  x: r - 5,
2015
2015
  y: o - 15,
2016
- children: B(e.yData[e.dataIndex], "0,0")
2016
+ children: P(e.yData[e.dataIndex], "0,0")
2017
2017
  }
2018
2018
  ),
2019
2019
  /* @__PURE__ */ t(
@@ -2086,7 +2086,7 @@ const bu = ({
2086
2086
  /* @__PURE__ */ l(p, { variant: "Small", children: [
2087
2087
  a.average,
2088
2088
  " ",
2089
- /* @__PURE__ */ t(p, { bold: !0, variant: "Small", children: B(n, "0,0") })
2089
+ /* @__PURE__ */ t(p, { bold: !0, variant: "Small", children: P(n, "0,0") })
2090
2090
  ] })
2091
2091
  ] })
2092
2092
  ] });
@@ -2116,7 +2116,7 @@ const bu = ({
2116
2116
  baseline: e,
2117
2117
  showMark: !0,
2118
2118
  label: r[$],
2119
- valueFormatter: (O) => B(O || 0, C)
2119
+ valueFormatter: (O) => P(O || 0, C)
2120
2120
  }));
2121
2121
  return /* @__PURE__ */ l("div", { style: { position: "relative" }, children: [
2122
2122
  /* @__PURE__ */ l(
@@ -2147,7 +2147,7 @@ const bu = ({
2147
2147
  max: x,
2148
2148
  color: [E.palette.background.paper, n[0] ?? E.palette.primary.main]
2149
2149
  } : void 0,
2150
- valueFormatter: (D) => B(D, C)
2150
+ valueFormatter: (D) => P(D, C)
2151
2151
  }
2152
2152
  ],
2153
2153
  children: [
@@ -2284,7 +2284,7 @@ const bu = ({
2284
2284
  ...d
2285
2285
  }) => /* @__PURE__ */ l(p, { bold: i, color: a || (e ? "success.main" : "text.primary"), sx: o, variant: c, ...d, children: [
2286
2286
  s && s,
2287
- B(Number(n), r ?? "0,0.00")
2287
+ P(Number(n), r ?? "0,0.00")
2288
2288
  ] }), Ou = ({
2289
2289
  categoryGuids: { guid: e, topLevelGuid: n },
2290
2290
  hoveredAreaData: i,
@@ -2413,9 +2413,9 @@ const bu = ({
2413
2413
  cursorPos: { x: 0, y: 0 }
2414
2414
  }), { hoveredSeriesId: E, hoveredAreaData: y, isAreaHovered: T, cursorPos: w } = C, N = T && E && y, x = !N, R = [...r, ...o], D = R[0]?.dataset.length ?? 0, $ = R.flatMap((se) => se.dataset.map(($e) => $e.x)), O = R.flatMap((se) => se.dataset.map(($e) => $e.y)), L = r[0]?.dataset?.map(
2415
2415
  (se, $e) => r.reduce((We, _n) => We + _n.dataset[$e]?.y || 0, 0)
2416
- ) ?? [0], U = Math.max(...L), H = Math.max(
2416
+ ) ?? [0], U = Math.max(...L), B = Math.max(
2417
2417
  ...o.flatMap((se) => se.dataset.map(($e) => $e.y))
2418
- ), j = Math.floor(Math.min(...O) / 100) * 100, me = Math.ceil(Math.max(U, H) / 100) * 100, V = r.map((se, $e) => ({
2418
+ ), j = Math.floor(Math.min(...O) / 100) * 100, he = Math.ceil(Math.max(U, B) / 100) * 100, V = r.map((se, $e) => ({
2419
2419
  id: `stacked-${$e}`,
2420
2420
  guid: se.category_guid,
2421
2421
  top_level_guid: se.top_level_category_guid,
@@ -2426,7 +2426,7 @@ const bu = ({
2426
2426
  stack: "total",
2427
2427
  type: "line",
2428
2428
  highlightScope: { highlight: "item" },
2429
- valueFormatter: (We) => B(We, "0,0")
2429
+ valueFormatter: (We) => P(We, "0,0")
2430
2430
  })), Ce = o.map((se, $e) => ({
2431
2431
  id: `unstacked-${$e}`,
2432
2432
  guid: se.category_guid,
@@ -2436,8 +2436,8 @@ const bu = ({
2436
2436
  data: se.dataset.map((We) => We.y),
2437
2437
  label: se.category_name,
2438
2438
  type: "line",
2439
- valueFormatter: (We) => B(We, "0,0")
2440
- })), ge = [...V, ...Ce], _e = [
2439
+ valueFormatter: (We) => P(We, "0,0")
2440
+ })), me = [...V, ...Ce], _e = [
2441
2441
  ...V.map(({ guid: se, top_level_guid: $e }) => ({
2442
2442
  guid: se,
2443
2443
  top_level_guid: $e
@@ -2452,7 +2452,7 @@ const bu = ({
2452
2452
  guid: We?.category_guid,
2453
2453
  topLevelGuid: We?.top_level_category_guid
2454
2454
  };
2455
- }, he = (se) => {
2455
+ }, ge = (se) => {
2456
2456
  m(se), i?.(se ?? "");
2457
2457
  }, Ke = (se) => {
2458
2458
  a?.(se ?? "");
@@ -2460,7 +2460,7 @@ const bu = ({
2460
2460
  const se = He(String(E)).guid;
2461
2461
  se && a?.(se);
2462
2462
  }, Te = (se) => {
2463
- const $e = String(se?.seriesId), We = He($e).guid, _n = ge.find((di) => di.id === $e), La = _n && se?.dataIndex !== void 0, Ma = _n && se?.dataIndex === void 0;
2463
+ const $e = String(se?.seriesId), We = He($e).guid, _n = me.find((di) => di.id === $e), La = _n && se?.dataIndex !== void 0, Ma = _n && se?.dataIndex === void 0;
2464
2464
  if (La)
2465
2465
  f({
2466
2466
  hoveredSeriesId: $e,
@@ -2532,7 +2532,7 @@ const bu = ({
2532
2532
  margin: { bottom: 50 },
2533
2533
  onAreaClick: je,
2534
2534
  onHighlightChange: Te,
2535
- series: ge,
2535
+ series: me,
2536
2536
  skipAnimation: !0,
2537
2537
  slotProps: {
2538
2538
  legend: {
@@ -2566,7 +2566,7 @@ const bu = ({
2566
2566
  yAxis: [
2567
2567
  {
2568
2568
  min: j,
2569
- max: me || 100
2569
+ max: he || 100
2570
2570
  }
2571
2571
  ]
2572
2572
  }
@@ -2577,7 +2577,7 @@ const bu = ({
2577
2577
  categoryGuids: _e,
2578
2578
  hoveredLegend: h,
2579
2579
  onClickLegend: Ke,
2580
- onHoverLegend: he,
2580
+ onHoverLegend: ge,
2581
2581
  sx: { px: _ ? 0 : 24 }
2582
2582
  }
2583
2583
  ),
@@ -2811,25 +2811,25 @@ const bu = ({
2811
2811
  (s === "timeframebuttons" || s === "timeframetabs") && e.onRangeChanged($());
2812
2812
  }, [x]);
2813
2813
  const $ = () => {
2814
- const H = Xe(In());
2815
- return [Xe(jt(H, x)), H];
2816
- }, O = (H) => {
2817
- const j = [...u], me = u[0], V = u[1], Ce = H === "previous";
2814
+ const B = Xe(In());
2815
+ return [Xe(jt(B, x)), B];
2816
+ }, O = (B) => {
2817
+ const j = [...u], he = u[0], V = u[1], Ce = B === "previous";
2818
2818
  if (m === i.dateRangePickerCopy.dateRangeThisMonth)
2819
- j[0] = Ce ? jt(me, 1) : gt(me, 1), j[1] = Xe(Ce ? jt(V, 1) : gt(V, 1));
2819
+ j[0] = Ce ? jt(he, 1) : gt(he, 1), j[1] = Xe(Ce ? jt(V, 1) : gt(V, 1));
2820
2820
  else if (m === i.dateRangePickerCopy.dateRangeYTD || m === i.dateRangePickerCopy.dateRangeLastYear)
2821
- j[0] = Ce ? Za(qr(me), 1) : ei(qr(me), 1), j[1] = Ce ? Za(Xr(me), 1) : ei(Xr(me), 1);
2821
+ j[0] = Ce ? Za(qr(he), 1) : ei(qr(he), 1), j[1] = Ce ? Za(Xr(he), 1) : ei(Xr(he), 1);
2822
2822
  else {
2823
- const ge = Pl(V, me);
2824
- j[0] = H === "previous" ? ut(me, ge) : Mt(me, ge), j[1] = H === "previous" ? ut(V, ge) : Mt(V, ge);
2823
+ const me = Pl(V, he);
2824
+ j[0] = B === "previous" ? ut(he, me) : Mt(he, me), j[1] = B === "previous" ? ut(V, me) : Mt(V, me);
2825
2825
  }
2826
2826
  h(j), e.onRangeChanged(j);
2827
2827
  }, L = () => {
2828
2828
  h(f), N(
2829
2829
  m === i.dateRangePickerCopy.dateRangeThisMonth || m === i.dateRangePickerCopy.dateRangeLastMonth
2830
2830
  ), e.onRangeChanged(f);
2831
- }, U = (H) => {
2832
- R(H);
2831
+ }, U = (B) => {
2832
+ R(B);
2833
2833
  };
2834
2834
  return /* @__PURE__ */ l(M, { className: "mx-cmn-date-range-selector", m: 4, children: [
2835
2835
  /* @__PURE__ */ t(
@@ -2845,7 +2845,7 @@ const bu = ({
2845
2845
  "aria-describedby": "select-date",
2846
2846
  "aria-label": "Select a date",
2847
2847
  onClick: () => T(!0),
2848
- children: /* @__PURE__ */ t(P, { name: "calendar_month" })
2848
+ children: /* @__PURE__ */ t(H, { name: "calendar_month" })
2849
2849
  }
2850
2850
  )
2851
2851
  }
@@ -2862,9 +2862,9 @@ const bu = ({
2862
2862
  },
2863
2863
  children: [
2864
2864
  s === "readonly" && /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 8, children: [
2865
- /* @__PURE__ */ t(P, { name: "calendar_month", size: 24 }),
2865
+ /* @__PURE__ */ t(H, { name: "calendar_month", size: 24 }),
2866
2866
  /* @__PURE__ */ t(p, { bold: !0, children: ie(f[0], te.MONTH_DAY) }),
2867
- /* @__PURE__ */ t(P, { name: "remove" }),
2867
+ /* @__PURE__ */ t(H, { name: "remove" }),
2868
2868
  /* @__PURE__ */ t(p, { bold: !0, children: ie(f[1], te.MONTH_DAY_YEAR) })
2869
2869
  ] }),
2870
2870
  s !== "readonly" && s !== "timeframebuttons" && s !== "timeframetabs" && /* @__PURE__ */ l(
@@ -2889,7 +2889,7 @@ const bu = ({
2889
2889
  "aria-label": i.dateRangePreviousAria,
2890
2890
  color: e.shouldDisablePrevious ? "secondary" : "primary",
2891
2891
  onClick: () => e.shouldDisablePrevious ? null : O("previous"),
2892
- children: /* @__PURE__ */ t(P, { name: "chevron_left", size: 20 })
2892
+ children: /* @__PURE__ */ t(H, { name: "chevron_left", size: 20 })
2893
2893
  }
2894
2894
  ),
2895
2895
  /* @__PURE__ */ t(
@@ -2898,7 +2898,7 @@ const bu = ({
2898
2898
  "aria-disabled": e.shouldDisablePicker,
2899
2899
  color: n,
2900
2900
  onClick: () => e.shouldDisablePicker ? null : T(!0),
2901
- startIcon: /* @__PURE__ */ t(P, { name: "calendar_month", size: 20 }),
2901
+ startIcon: /* @__PURE__ */ t(H, { name: "calendar_month", size: 20 }),
2902
2902
  sx: {
2903
2903
  p: _ ? 0 : 8
2904
2904
  },
@@ -2917,7 +2917,7 @@ const bu = ({
2917
2917
  "aria-label": i.dateRangeNextAria,
2918
2918
  color: e.shouldDisableNext ? "secondary" : "primary",
2919
2919
  onClick: () => e.shouldDisableNext ? null : O("next"),
2920
- children: /* @__PURE__ */ t(P, { name: "chevron_right", size: 20 })
2920
+ children: /* @__PURE__ */ t(H, { name: "chevron_right", size: 20 })
2921
2921
  }
2922
2922
  )
2923
2923
  ]
@@ -2930,10 +2930,10 @@ const bu = ({
2930
2930
  exclusive: !0,
2931
2931
  orientation: "horizontal",
2932
2932
  value: x,
2933
- children: D.buttons.map((H) => /* @__PURE__ */ t(
2933
+ children: D.buttons.map((B) => /* @__PURE__ */ t(
2934
2934
  ra,
2935
2935
  {
2936
- onClick: () => U(H.value),
2936
+ onClick: () => U(B.value),
2937
2937
  sx: {
2938
2938
  fontSize: 15,
2939
2939
  fontWeight: 600,
@@ -2957,10 +2957,10 @@ const bu = ({
2957
2957
  color: c.palette.grey[500]
2958
2958
  }
2959
2959
  },
2960
- value: H.value,
2961
- children: H.label
2960
+ value: B.value,
2961
+ children: B.label
2962
2962
  },
2963
- H.label
2963
+ B.label
2964
2964
  ))
2965
2965
  }
2966
2966
  ),
@@ -2968,18 +2968,18 @@ const bu = ({
2968
2968
  Lt,
2969
2969
  {
2970
2970
  indicatorColor: "primary",
2971
- onChange: (H, j) => U(j),
2971
+ onChange: (B, j) => U(j),
2972
2972
  textColor: "primary",
2973
2973
  value: x,
2974
2974
  variant: "fullWidth",
2975
- children: D.tabs.map((H) => /* @__PURE__ */ t(
2976
- ke,
2975
+ children: D.tabs.map((B) => /* @__PURE__ */ t(
2976
+ Me,
2977
2977
  {
2978
- label: /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: H.label }),
2978
+ label: /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: B.label }),
2979
2979
  sx: { minWidth: 80 },
2980
- value: H.value
2980
+ value: B.value
2981
2981
  },
2982
- H.label
2982
+ B.label
2983
2983
  ))
2984
2984
  }
2985
2985
  )
@@ -3002,8 +3002,8 @@ const bu = ({
3002
3002
  {
3003
3003
  copy: i.dateRangePickerCopy,
3004
3004
  dateRange: f,
3005
- onRangeChanged: (H, j) => {
3006
- E(H), C(j);
3005
+ onRangeChanged: (B, j) => {
3006
+ E(B), C(j);
3007
3007
  },
3008
3008
  selectedShortcut: m,
3009
3009
  sx: { p: 16 }
@@ -3029,8 +3029,8 @@ const bu = ({
3029
3029
  {
3030
3030
  copy: i.dateRangePickerCopy,
3031
3031
  dateRange: f,
3032
- onRangeChanged: (H, j) => {
3033
- E(H), C(j);
3032
+ onRangeChanged: (B, j) => {
3033
+ E(B), C(j);
3034
3034
  },
3035
3035
  selectedShortcut: m,
3036
3036
  sx: {
@@ -3245,7 +3245,7 @@ const Dn = ({
3245
3245
  };
3246
3246
  if (!D)
3247
3247
  return /* @__PURE__ */ t(ue, {});
3248
- const H = {
3248
+ const B = {
3249
3249
  accountFilterOptionsCopy: {
3250
3250
  accountTypeAccounts: L.account_filter.account_type_accounts,
3251
3251
  cancelButton: L.cancel_button,
@@ -3277,7 +3277,7 @@ const Dn = ({
3277
3277
  dateRangeEditTitle: L.date_range_picker.edit_title,
3278
3278
  dateRangeNextAria: L.date_range_picker.next_aria,
3279
3279
  dateRangePreviousAria: L.date_range_picker.previous_aria
3280
- }, me = r ? r.start : R.start, V = r ? r.end : R.end, Ce = n?.length > 1;
3280
+ }, he = r ? r.start : R.start, V = r ? r.end : R.end, Ce = n?.length > 1;
3281
3281
  return /* @__PURE__ */ l(
3282
3282
  Gt,
3283
3283
  {
@@ -3304,7 +3304,7 @@ const Dn = ({
3304
3304
  {
3305
3305
  calendarActions: i,
3306
3306
  copy: j,
3307
- range: [me, V],
3307
+ range: [he, V],
3308
3308
  shouldShrinkToIcon: !1,
3309
3309
  variant: o
3310
3310
  }
@@ -3313,37 +3313,37 @@ const Dn = ({
3313
3313
  Vs,
3314
3314
  {
3315
3315
  accounts: e,
3316
- copy: H,
3317
- onFilterClick: (ge) => {
3318
- O(ge), _?.();
3316
+ copy: B,
3317
+ onFilterClick: (me) => {
3318
+ O(me), _?.();
3319
3319
  },
3320
3320
  selectedAccountGuids: $,
3321
3321
  showAccountNumbers: !1,
3322
3322
  variant: "text"
3323
3323
  }
3324
3324
  ),
3325
- n?.map((ge) => {
3326
- if (g.isValidElement(ge)) return ge;
3327
- const { iconName: _e, onClick: He, label: he } = ge;
3325
+ n?.map((me) => {
3326
+ if (g.isValidElement(me)) return me;
3327
+ const { iconName: _e, onClick: He, label: ge } = me;
3328
3328
  return Ce ? w ? /* @__PURE__ */ t(
3329
3329
  ee,
3330
3330
  {
3331
3331
  onClick: He,
3332
- startIcon: /* @__PURE__ */ t(P, { color: "primary", name: _e }),
3332
+ startIcon: /* @__PURE__ */ t(H, { color: "primary", name: _e }),
3333
3333
  sx: { my: 4 },
3334
- children: he
3334
+ children: ge
3335
3335
  },
3336
3336
  _e
3337
- ) : /* @__PURE__ */ t(Ye, { "aria-label": he, color: "primary", onClick: He, children: /* @__PURE__ */ t(P, { name: _e }) }, _e) : T || x ? /* @__PURE__ */ t(
3337
+ ) : /* @__PURE__ */ t(Ye, { "aria-label": ge, color: "primary", onClick: He, children: /* @__PURE__ */ t(H, { name: _e }) }, _e) : T || x ? /* @__PURE__ */ t(
3338
3338
  ee,
3339
3339
  {
3340
3340
  onClick: He,
3341
- startIcon: /* @__PURE__ */ t(P, { name: _e }),
3341
+ startIcon: /* @__PURE__ */ t(H, { name: _e }),
3342
3342
  sx: { my: 4 },
3343
- children: he
3343
+ children: ge
3344
3344
  },
3345
3345
  _e
3346
- ) : /* @__PURE__ */ t(Ye, { "aria-label": he, color: "primary", onClick: He, children: /* @__PURE__ */ t(P, { name: _e }) }, _e);
3346
+ ) : /* @__PURE__ */ t(Ye, { "aria-label": ge, color: "primary", onClick: He, children: /* @__PURE__ */ t(H, { name: _e }) }, _e);
3347
3347
  })
3348
3348
  ] }),
3349
3349
  sx: {
@@ -3364,7 +3364,7 @@ const Dn = ({
3364
3364
  "aria-label": L.back_to_dashboard,
3365
3365
  onClick: U,
3366
3366
  sx: { p: 12, mr: 4 },
3367
- children: /* @__PURE__ */ t(P, { name: "arrow_back", size: 24 })
3367
+ children: /* @__PURE__ */ t(H, { name: "arrow_back", size: 24 })
3368
3368
  }
3369
3369
  ),
3370
3370
  /* @__PURE__ */ t(mt, { children: m })
@@ -3379,7 +3379,7 @@ const Dn = ({
3379
3379
  {
3380
3380
  calendarActions: i,
3381
3381
  copy: j,
3382
- range: [me, V],
3382
+ range: [he, V],
3383
3383
  shouldShrinkToIcon: !1,
3384
3384
  variant: o
3385
3385
  }
@@ -3495,12 +3495,12 @@ const po = "connect_widget", Co = "connections_widget", Wu = ({
3495
3495
  !a && (O === "" || O === "." || O === ",") ? (C(""), u?.(!1)) : Number(O) < d ? (C(
3496
3496
  S(
3497
3497
  E.error_amount_must_be_equal_to,
3498
- B(d, "0")
3498
+ P(d, "0")
3499
3499
  )
3500
3500
  ), u?.(!1)) : Number(O) > ao ? (C(
3501
3501
  S(
3502
3502
  E.error_amount_must_be_less_than_or_equal_to,
3503
- B(ao, e ? "0,0.00" : "0,0", Math.floor)
3503
+ P(ao, e ? "0,0.00" : "0,0", Math.floor)
3504
3504
  )
3505
3505
  ), u?.(!1)) : O.toString().match(R) ? o() ? (C(""), u?.(!0)) : (C(s), u?.(!1)) : (C(E.error_amount_is_invalid), u?.(!1)), _(O.toString());
3506
3506
  };
@@ -3580,14 +3580,14 @@ const po = "connect_widget", Co = "connections_widget", Wu = ({
3580
3580
  className: "mx-cat-cancel-search-button",
3581
3581
  color: "primary",
3582
3582
  onClick: () => i(""),
3583
- children: /* @__PURE__ */ t(P, { name: "cancel", size: 24 })
3583
+ children: /* @__PURE__ */ t(H, { name: "cancel", size: 24 })
3584
3584
  }
3585
3585
  );
3586
3586
  return /* @__PURE__ */ t(M, { className: "mx-cmn-search-box", px: o.Spacing.Large, py: o.Spacing.Medium, children: /* @__PURE__ */ t(
3587
3587
  An,
3588
3588
  {
3589
3589
  InputProps: {
3590
- startAdornment: /* @__PURE__ */ t(Yi, { position: "start", children: /* @__PURE__ */ t(P, { color: "disabled", name: "search", size: 26 }) }),
3590
+ startAdornment: /* @__PURE__ */ t(Yi, { position: "start", children: /* @__PURE__ */ t(H, { color: "disabled", name: "search", size: 26 }) }),
3591
3591
  endAdornment: /* @__PURE__ */ t(Yi, { position: "end", sx: { p: 0 }, children: r ? s : null })
3592
3592
  },
3593
3593
  "aria-label": e,
@@ -3686,7 +3686,7 @@ const po = "connect_widget", Co = "connections_widget", Wu = ({
3686
3686
  }
3687
3687
  ), Pn = ({ iconName: e, label: n, onClick: i, value: a }) => {
3688
3688
  const r = /* @__PURE__ */ l(Z, { children: [
3689
- /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Jt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(P, { name: e, sx: { color: "text.primary" }, weight: bt.Dark }) }) }),
3689
+ /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Jt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(H, { name: e, sx: { color: "text.primary" }, weight: bt.Dark }) }) }),
3690
3690
  /* @__PURE__ */ t(
3691
3691
  re,
3692
3692
  {
@@ -3699,7 +3699,7 @@ const po = "connect_widget", Co = "connections_widget", Wu = ({
3699
3699
  ] });
3700
3700
  return i ? /* @__PURE__ */ t(q, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(de, { onClick: i, children: [
3701
3701
  r,
3702
- /* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t(P, { name: "chevron_right", size: 24 }) })
3702
+ /* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t(H, { name: "chevron_right", size: 24 }) })
3703
3703
  ] }) }) : /* @__PURE__ */ t(q, { disableGutters: !1, disablePadding: !1, children: r });
3704
3704
  }, Ji = ({
3705
3705
  body: e,
@@ -3723,7 +3723,7 @@ const po = "connect_widget", Co = "connections_widget", Wu = ({
3723
3723
  p: 0
3724
3724
  },
3725
3725
  children: /* @__PURE__ */ t(
3726
- P,
3726
+ H,
3727
3727
  {
3728
3728
  name: n,
3729
3729
  sx: { color: "primary.light", fontSize: 16 },
@@ -4162,7 +4162,7 @@ const yo = (e, n) => !e && !n ? 0 : !e && n ? 101 : n / e * 100, Eo = (e, n) =>
4162
4162
  category: s,
4163
4163
  description: S(
4164
4164
  _ < 0 ? i.budget_remaining_over : i.budget_remaining_left,
4165
- B(Math.abs(_), "0,0")
4165
+ P(Math.abs(_), "0,0")
4166
4166
  ),
4167
4167
  percentage: d,
4168
4168
  subBudgets: [],
@@ -4181,7 +4181,7 @@ const yo = (e, n) => !e && !n ? 0 : !e && n ? 101 : n / e * 100, Eo = (e, n) =>
4181
4181
  category: s,
4182
4182
  description: S(
4183
4183
  _ < 0 ? i.budget_remaining_over : i.budget_remaining_left,
4184
- B(Math.abs(_), "0,0")
4184
+ P(Math.abs(_), "0,0")
4185
4185
  ),
4186
4186
  percentage: u,
4187
4187
  subBudgets: [],
@@ -4375,12 +4375,12 @@ const li = () => {
4375
4375
  h.length
4376
4376
  ) })
4377
4377
  ] }),
4378
- /* @__PURE__ */ t(b, { pt: 18, children: /* @__PURE__ */ t(P, { name: "remove" }) }),
4378
+ /* @__PURE__ */ t(b, { pt: 18, children: /* @__PURE__ */ t(H, { name: "remove" }) }),
4379
4379
  /* @__PURE__ */ l(b, { pb: 14, pt: 12, children: [
4380
4380
  /* @__PURE__ */ t(ze, { amount: N, variant: "H2" }),
4381
4381
  /* @__PURE__ */ t(Le, { variant: "XSmall", whiteSpace: "nowrap", children: S(c.expenses_due, u.length) })
4382
4382
  ] }),
4383
- /* @__PURE__ */ t(b, { pt: 18, children: /* @__PURE__ */ t(P, { name: "equals" }) }),
4383
+ /* @__PURE__ */ t(b, { pt: 18, children: /* @__PURE__ */ t(H, { name: "equals" }) }),
4384
4384
  /* @__PURE__ */ l(b, { pb: 14, pr: 24, pt: 12, children: [
4385
4385
  /* @__PURE__ */ t(ze, { amount: x, variant: "H2" }),
4386
4386
  /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 8, children: [
@@ -4395,7 +4395,7 @@ const li = () => {
4395
4395
  ee,
4396
4396
  {
4397
4397
  onClick: e,
4398
- startIcon: /* @__PURE__ */ t(P, { name: "add" }),
4398
+ startIcon: /* @__PURE__ */ t(H, { name: "add" }),
4399
4399
  sx: { fontSize: 13, lineHeight: "initial" },
4400
4400
  children: c.add_income
4401
4401
  }
@@ -4449,7 +4449,7 @@ const li = () => {
4449
4449
  ee,
4450
4450
  {
4451
4451
  onClick: e,
4452
- startIcon: /* @__PURE__ */ t(P, { name: "add" }),
4452
+ startIcon: /* @__PURE__ */ t(H, { name: "add" }),
4453
4453
  sx: { fontSize: 13 },
4454
4454
  children: c.add_income
4455
4455
  }
@@ -4932,7 +4932,7 @@ const r_ = [
4932
4932
  return !0;
4933
4933
  const _ = c.tags.some(
4934
4934
  (h) => Ft(s, n.find((m) => m.guid === h)?.name)
4935
- ), u = Me(c.date);
4935
+ ), u = ke(c.date);
4936
4936
  return Ft(s, c.payee) || Ft(s, c.feed_description) || Ft(s, c.category) || Ft(s, ie(u, te.MONTH)) || Ft(s, ie(u, te.DAY)) || Ft(s, ie(u, te.FULL_MONTH_DAY)) || Ft(s, ie(u, te.MONTH_DAY_YEAR)) || Ft(s, vt(u, Ln)) || Ft(s, c.account) || Ft(s, `${c.amount}`) || Ft(s, c.memo) || _;
4937
4937
  });
4938
4938
  }, __ = (e, n, i) => [...e].sort((a, r) => {
@@ -5122,7 +5122,7 @@ class f_ {
5122
5122
  loadTransactionsByDateRange = async (n, i) => {
5123
5123
  console.warn("DEPRECATED: loadTransactionsByDateRange will be removed"), this.setFilter({
5124
5124
  ...this.filter,
5125
- dateRange: { start: Me(i), end: Me(n) }
5125
+ dateRange: { start: ke(i), end: ke(n) }
5126
5126
  });
5127
5127
  };
5128
5128
  modifyTransactionByAccountGuid = (n, i) => {
@@ -5219,7 +5219,7 @@ const At = () => {
5219
5219
  const i = y_(b_(e, n)), a = encodeURIComponent(i), r = document.createElement("a");
5220
5220
  r.href = `data:attachment/csv;charset=utf-8,${a}`, r.download = "transactions.csv", document.body.appendChild(r), r.click(), document.body.removeChild(r);
5221
5221
  }, b_ = (e, n) => e.map((i) => ({
5222
- Date: ie(Me(i.date), te.YEAR_MONTH_DAY),
5222
+ Date: ie(ke(i.date), te.YEAR_MONTH_DAY),
5223
5223
  Description: E_(i),
5224
5224
  "Original Description": i.feed_description,
5225
5225
  Amount: `${i.amount}`,
@@ -5258,9 +5258,9 @@ const At = () => {
5258
5258
  disableTypography: !0,
5259
5259
  secondary: /* @__PURE__ */ l(b, { direction: "row", justifyContent: "space-between", children: [
5260
5260
  /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 4, children: [
5261
- e.is_flagged && /* @__PURE__ */ t(P, { fill: !0, name: "flag", size: 16, sx: { color: "warning.dark" } }),
5262
- e.is_hidden && /* @__PURE__ */ t(P, { name: "visibility_off", size: 16 }),
5263
- e.has_been_split && /* @__PURE__ */ t(P, { name: "call_split", size: 16 }),
5261
+ e.is_flagged && /* @__PURE__ */ t(H, { fill: !0, name: "flag", size: 16, sx: { color: "warning.dark" } }),
5262
+ e.is_hidden && /* @__PURE__ */ t(H, { name: "visibility_off", size: 16 }),
5263
+ e.has_been_split && /* @__PURE__ */ t(H, { name: "call_split", size: 16 }),
5264
5264
  /* @__PURE__ */ t(p, { variant: "XSmall", children: e.has_been_split ? a.split_transaction_category_label : e.category })
5265
5265
  ] }),
5266
5266
  s && r && /* @__PURE__ */ t(p, { bold: !0, color: "action.active", variant: "XSmall", children: s.short_title })
@@ -5279,7 +5279,7 @@ const At = () => {
5279
5279
  variant: "Body",
5280
5280
  children: [
5281
5281
  o ? "+" : "",
5282
- B(e.amount, "0,0.00")
5282
+ P(e.amount, "0,0.00")
5283
5283
  ]
5284
5284
  }
5285
5285
  )
@@ -5300,10 +5300,10 @@ const At = () => {
5300
5300
  n && /* @__PURE__ */ t(p, { color: "secondary", variant: "XSmall", children: a.zero_state_there_are_no_transactions })
5301
5301
  ] });
5302
5302
  }, I_ = A(A_), To = (e, n) => {
5303
- const i = Me(n[e].date), a = Me(n[e - 1]?.date);
5303
+ const i = ke(n[e].date), a = ke(n[e - 1]?.date);
5304
5304
  return !dt(i, a);
5305
5305
  }, x_ = (e, n) => {
5306
- const i = Me(n[e].date), a = Me(n[e + 1]?.date);
5306
+ const i = ke(n[e].date), a = ke(n[e + 1]?.date);
5307
5307
  return dt(i, a);
5308
5308
  }, Ao = 65, Io = 34, v_ = ({
5309
5309
  bgcolor: e,
@@ -5375,7 +5375,7 @@ const At = () => {
5375
5375
  return /* @__PURE__ */ l(b, { alignItems: "flex-end", tabIndex: e.tabIndex, children: [
5376
5376
  /* @__PURE__ */ l(p, { color: s ? "success.main" : "text.primary", variant: "Small", children: [
5377
5377
  s ? "+" : "",
5378
- B(a, "0,0.00")
5378
+ P(a, "0,0.00")
5379
5379
  ] }),
5380
5380
  o && i && /* @__PURE__ */ t(p, { bold: !0, color: "primary.light", variant: "XSmall", children: o.short_title })
5381
5381
  ] });
@@ -5392,13 +5392,13 @@ const At = () => {
5392
5392
  onMouseLeave: () => a(!1),
5393
5393
  width: "100%",
5394
5394
  children: [
5395
- e.row.has_been_split && /* @__PURE__ */ t(P, { name: "call_split", size: 16 }),
5395
+ e.row.has_been_split && /* @__PURE__ */ t(H, { name: "call_split", size: 16 }),
5396
5396
  /* @__PURE__ */ t(p, { tabIndex: e.tabIndex, variant: "Small", children: e.row.has_been_split ? n.split_transaction_category_label : e.row.category }),
5397
- !e.row.has_been_split && i && /* @__PURE__ */ t(P, { name: "edit", sx: { color: "action.active" } })
5397
+ !e.row.has_been_split && i && /* @__PURE__ */ t(H, { name: "edit", sx: { color: "action.active" } })
5398
5398
  ]
5399
5399
  }
5400
5400
  );
5401
- }, R_ = A(D_), O_ = (e) => /* @__PURE__ */ t(p, { tabIndex: e.tabIndex, variant: "Small", children: ie(Me(e.row.date), te.MONTH_DAY) }), L_ = (e) => {
5401
+ }, R_ = A(D_), O_ = (e) => /* @__PURE__ */ t(p, { tabIndex: e.tabIndex, variant: "Small", children: ie(ke(e.row.date), te.MONTH_DAY) }), L_ = (e) => {
5402
5402
  const n = at(), { transactions: i } = I(), { is_flagged: a, is_hidden: r, has_been_viewed: o, parent_guid: s } = e.row, d = !o && !!!s;
5403
5403
  return /* @__PURE__ */ l(
5404
5404
  M,
@@ -5406,8 +5406,8 @@ const At = () => {
5406
5406
  "aria-label": r ? i.is_hidden : i.is_flagged,
5407
5407
  tabIndex: e.tabIndex,
5408
5408
  children: [
5409
- a && /* @__PURE__ */ t(P, { fill: !0, name: "flag", size: 16, sx: { color: "warning.dark" } }),
5410
- !a && r && /* @__PURE__ */ t(P, { name: "visibility_off", size: 16 }),
5409
+ a && /* @__PURE__ */ t(H, { fill: !0, name: "flag", size: 16, sx: { color: "warning.dark" } }),
5410
+ !a && r && /* @__PURE__ */ t(H, { name: "visibility_off", size: 16 }),
5411
5411
  d && /* @__PURE__ */ t(
5412
5412
  "svg",
5413
5413
  {
@@ -6120,7 +6120,7 @@ const rc = ({ transaction: e }) => {
6120
6120
  secondary: /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e.category ?? c.actions_select_a_category })
6121
6121
  }
6122
6122
  ),
6123
- /* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t(P, { name: "chevron_right", weight: bt.Dark }) })
6123
+ /* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t(H, { name: "chevron_right", weight: bt.Dark }) })
6124
6124
  ]
6125
6125
  }
6126
6126
  ) }),
@@ -6175,16 +6175,16 @@ const rc = ({ transaction: e }) => {
6175
6175
  i(X.ON_TRANSACTION_DATE_CLICK), d(!0);
6176
6176
  },
6177
6177
  children: [
6178
- /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Jt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(P, { name: "calendar_month", sx: { color: "text.primary" }, weight: bt.Dark }) }) }),
6178
+ /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Jt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(H, { name: "calendar_month", sx: { color: "text.primary" }, weight: bt.Dark }) }) }),
6179
6179
  /* @__PURE__ */ t(
6180
6180
  re,
6181
6181
  {
6182
6182
  primary: s.date_title,
6183
6183
  primaryTypographyProps: { variant: "XSmall" },
6184
- secondary: /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: ie(Me(e.date), te.YEAR_MONTH_DAY) })
6184
+ secondary: /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: ie(ke(e.date), te.YEAR_MONTH_DAY) })
6185
6185
  }
6186
6186
  ),
6187
- /* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t(P, { name: "chevron_right", weight: bt.Dark }) })
6187
+ /* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t(H, { name: "chevron_right", weight: bt.Dark }) })
6188
6188
  ]
6189
6189
  }
6190
6190
  ) }),
@@ -6201,7 +6201,7 @@ const rc = ({ transaction: e }) => {
6201
6201
  children: /* @__PURE__ */ t(b, { alignItems: "center", mt: n.Spacing.XXLarge, children: /* @__PURE__ */ t(
6202
6202
  bu,
6203
6203
  {
6204
- beginDate: Me(_),
6204
+ beginDate: ke(_),
6205
6205
  copy: {
6206
6206
  nextAria: s.date_next_aria,
6207
6207
  prevAria: s.date_prev_aria,
@@ -6268,9 +6268,9 @@ const rc = ({ transaction: e }) => {
6268
6268
  n(X.ON_TRANSACTION_DELETE_LOGO_CLICK), c(!0);
6269
6269
  },
6270
6270
  children: [
6271
- /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Jt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(P, { name: "delete", sx: { color: "text.primary" }, weight: bt.Dark }) }) }),
6271
+ /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Jt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(H, { name: "delete", sx: { color: "text.primary" }, weight: bt.Dark }) }) }),
6272
6272
  /* @__PURE__ */ t(re, { primary: o.merchant_logo_title, secondary: o.merchant_logo_desc }),
6273
- /* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t(P, { name: "chevron_right", weight: bt.Dark }) })
6273
+ /* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t(H, { name: "chevron_right", weight: bt.Dark }) })
6274
6274
  ]
6275
6275
  }
6276
6276
  ) }),
@@ -6318,13 +6318,13 @@ const rc = ({ transaction: e }) => {
6318
6318
  role: "switch",
6319
6319
  children: [
6320
6320
  /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Jt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: d ? /* @__PURE__ */ t(
6321
- P,
6321
+ H,
6322
6322
  {
6323
6323
  name: "visibilityOff",
6324
6324
  sx: { color: "text.primary" },
6325
6325
  weight: bt.Dark
6326
6326
  }
6327
- ) : /* @__PURE__ */ t(P, { name: "visibility", sx: { color: "text.primary" }, weight: bt.Dark }) }) }),
6327
+ ) : /* @__PURE__ */ t(H, { name: "visibility", sx: { color: "text.primary" }, weight: bt.Dark }) }) }),
6328
6328
  /* @__PURE__ */ t(
6329
6329
  re,
6330
6330
  {
@@ -6379,7 +6379,7 @@ const rc = ({ transaction: e }) => {
6379
6379
  /* @__PURE__ */ t(p, { bold: !0, mb: 4, truncate: !0, variant: "Body", children: i || o }),
6380
6380
  /* @__PURE__ */ l(cn, { color: a ? "success.main" : "text.primary", truncate: !0, children: [
6381
6381
  a ? "+" : "",
6382
- B(n, "0,0.00")
6382
+ P(n, "0,0.00")
6383
6383
  ] })
6384
6384
  ] })
6385
6385
  ] });
@@ -6403,7 +6403,7 @@ const rc = ({ transaction: e }) => {
6403
6403
  n(X.ON_TRANSACTION_MEMO_CLICK), c(!0);
6404
6404
  },
6405
6405
  children: [
6406
- /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Jt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(P, { name: "article", sx: { color: "text.primary" }, weight: bt.Dark }) }) }),
6406
+ /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Jt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(H, { name: "article", sx: { color: "text.primary" }, weight: bt.Dark }) }) }),
6407
6407
  /* @__PURE__ */ t(
6408
6408
  re,
6409
6409
  {
@@ -6420,7 +6420,7 @@ const rc = ({ transaction: e }) => {
6420
6420
  )
6421
6421
  }
6422
6422
  ),
6423
- /* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t(P, { name: "chevron_right", weight: bt.Dark }) })
6423
+ /* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t(H, { name: "chevron_right", weight: bt.Dark }) })
6424
6424
  ]
6425
6425
  }
6426
6426
  ) }),
@@ -6497,7 +6497,7 @@ const rc = ({ transaction: e }) => {
6497
6497
  }
6498
6498
  ) })
6499
6499
  ] }) }),
6500
- /* @__PURE__ */ t(Je, { item: !0, xs: 5, children: m ? /* @__PURE__ */ t("div", { className: "mx-txn-split-manager-row-top-container", children: /* @__PURE__ */ t(p, { children: B(r.amount, "0,0.00") }) }) : /* @__PURE__ */ l(b, { alignItems: "start", children: [
6500
+ /* @__PURE__ */ t(Je, { item: !0, xs: 5, children: m ? /* @__PURE__ */ t("div", { className: "mx-txn-split-manager-row-top-container", children: /* @__PURE__ */ t(p, { children: P(r.amount, "0,0.00") }) }) : /* @__PURE__ */ l(b, { alignItems: "start", children: [
6501
6501
  /* @__PURE__ */ l(b, { alignItems: "start", direction: "row", gap: o.Spacing.XSmall, children: [
6502
6502
  /* @__PURE__ */ t(
6503
6503
  en,
@@ -6567,7 +6567,7 @@ const rc = ({ transaction: e }) => {
6567
6567
  u(r.length <= 1 ? c.split_transaction_errors_min_splits : ""), u(
6568
6568
  r[0].amount < 0 ? S(
6569
6569
  c.split_transaction_errors_totals_must_equal_amount,
6570
- B(o.amount, "0,0.00")
6570
+ P(o.amount, "0,0.00")
6571
6571
  ) : ""
6572
6572
  );
6573
6573
  }, [r]), /* @__PURE__ */ l(M, { className: "mx-txn-split-manager", children: [
@@ -6627,23 +6627,23 @@ const rc = ({ transaction: e }) => {
6627
6627
  L.push({ ..._ }), L[0].amount -= 1, E(L);
6628
6628
  }, T = (L) => {
6629
6629
  if (L > 0) {
6630
- const U = f[L], H = [...f];
6631
- H.splice(L, 1), H[0].amount += U.amount, E(H);
6630
+ const U = f[L], B = [...f];
6631
+ B.splice(L, 1), B[0].amount += U.amount, E(B);
6632
6632
  }
6633
6633
  }, w = (L, U) => {
6634
- const H = [...f];
6635
- H[L].amount = U, H[0].amount = e.amount - H.reduce(
6636
- (j, me, V) => j + (V !== 0 ? me.amount : 0),
6634
+ const B = [...f];
6635
+ B[L].amount = U, B[0].amount = e.amount - B.reduce(
6636
+ (j, he, V) => j + (V !== 0 ? he.amount : 0),
6637
6637
  0
6638
- ), E(H);
6638
+ ), E(B);
6639
6639
  }, N = (L, U) => {
6640
- const H = [...f], j = c.find((me) => me.guid === U);
6641
- j && (H[L] = {
6642
- ...H[L],
6640
+ const B = [...f], j = c.find((he) => he.guid === U);
6641
+ j && (B[L] = {
6642
+ ...B[L],
6643
6643
  category_guid: U,
6644
6644
  category: j.name,
6645
6645
  top_level_category_guid: j.parent_guid || U
6646
- }, E(H));
6646
+ }, E(B));
6647
6647
  }, x = () => {
6648
6648
  if (e.parent_guid || e.has_been_split) {
6649
6649
  C(!0);
@@ -6663,12 +6663,12 @@ const rc = ({ transaction: e }) => {
6663
6663
  const L = e.parent_guid ?? e.guid;
6664
6664
  await a(L);
6665
6665
  }, O = g.useMemo(() => {
6666
- const L = f.some((H) => !H.category_guid), U = f.some((H) => H.amount <= 0);
6666
+ const L = f.some((B) => !B.category_guid), U = f.some((B) => B.amount <= 0);
6667
6667
  return L || U;
6668
6668
  }, [f]);
6669
6669
  return /* @__PURE__ */ l(g.Fragment, { children: [
6670
6670
  e && /* @__PURE__ */ t(q, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(de, { onClick: x, children: [
6671
- /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Jt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(P, { name: "call_split", sx: { color: "text.primary" }, weight: bt.Dark }) }) }),
6671
+ /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Jt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(H, { name: "call_split", sx: { color: "text.primary" }, weight: bt.Dark }) }) }),
6672
6672
  /* @__PURE__ */ t(
6673
6673
  re,
6674
6674
  {
@@ -6676,7 +6676,7 @@ const rc = ({ transaction: e }) => {
6676
6676
  secondary: e.has_been_split || e.parent_guid ? o.split_transaction_unsplit_subtitle : o.split_transaction_desc
6677
6677
  }
6678
6678
  ),
6679
- /* @__PURE__ */ t(Ct, { children: e.has_been_split || e.parent_guid ? /* @__PURE__ */ t(P, { name: "delete", weight: bt.Dark }) : /* @__PURE__ */ t(P, { name: "chevron_right", weight: bt.Dark }) })
6679
+ /* @__PURE__ */ t(Ct, { children: e.has_been_split || e.parent_guid ? /* @__PURE__ */ t(H, { name: "delete", weight: bt.Dark }) : /* @__PURE__ */ t(H, { name: "chevron_right", weight: bt.Dark }) })
6680
6680
  ] }) }),
6681
6681
  /* @__PURE__ */ l(
6682
6682
  ne,
@@ -6953,7 +6953,7 @@ const rc = ({ transaction: e }) => {
6953
6953
  n(X.ON_TRANSACTION_TAGS_CLICK), _(!0);
6954
6954
  },
6955
6955
  children: [
6956
- /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Jt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(P, { name: "local_offer", sx: { color: "text.primary" }, weight: bt.Dark }) }) }),
6956
+ /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Jt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(H, { name: "local_offer", sx: { color: "text.primary" }, weight: bt.Dark }) }) }),
6957
6957
  /* @__PURE__ */ t(
6958
6958
  re,
6959
6959
  {
@@ -6962,7 +6962,7 @@ const rc = ({ transaction: e }) => {
6962
6962
  secondary: /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e.tags?.length > 0 ? f : s.tags_desc })
6963
6963
  }
6964
6964
  ),
6965
- /* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t(P, { name: "chevron_right", weight: bt.Dark }) })
6965
+ /* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t(H, { name: "chevron_right", weight: bt.Dark }) })
6966
6966
  ]
6967
6967
  }
6968
6968
  ) }),
@@ -7027,7 +7027,7 @@ const rc = ({ transaction: e }) => {
7027
7027
  s(!0), r(X.ON_TRANSACTION_DESCRIPTION_EDIT_CLICK);
7028
7028
  },
7029
7029
  sx: { color: "action.active" },
7030
- children: /* @__PURE__ */ t(P, { name: "create", size: 22 })
7030
+ children: /* @__PURE__ */ t(H, { name: "create", size: 22 })
7031
7031
  }
7032
7032
  )
7033
7033
  ] }) });
@@ -7086,7 +7086,7 @@ const rc = ({ transaction: e }) => {
7086
7086
  /* @__PURE__ */ l(b, { direction: "row", justifyContent: "space-between", children: [
7087
7087
  /* @__PURE__ */ l(cn, { color: i.isIncome ? "success.main" : "text.primary", children: [
7088
7088
  i.isIncome ? "+" : "",
7089
- B(i.amount, "0,0.00")
7089
+ P(i.amount, "0,0.00")
7090
7090
  ] }),
7091
7091
  /* @__PURE__ */ t(Dh, { transaction: i })
7092
7092
  ] }),
@@ -7138,7 +7138,7 @@ const rc = ({ transaction: e }) => {
7138
7138
  () => e.filter((y) => y.is_manual),
7139
7139
  [e]
7140
7140
  ).map((y) => ({
7141
- label: `${y.name} | ${B(y.balance, "0,0.00")}`,
7141
+ label: `${y.name} | ${P(y.balance, "0,0.00")}`,
7142
7142
  value: y.guid
7143
7143
  })), h = {
7144
7144
  error_amount_is_invalid: n.currency_input.error_amount_is_invalid,
@@ -7296,19 +7296,19 @@ const rc = ({ transaction: e }) => {
7296
7296
  } = Se(), { common: R, transactions: D } = I(), { userProfile: $ } = dn(), { onEvent: O } = z(), {
7297
7297
  displayedDateRange: L,
7298
7298
  isCopyLoaded: U,
7299
- isInitialized: H,
7299
+ isInitialized: B,
7300
7300
  selectedAccountGuids: j,
7301
- selectedAccounts: me,
7301
+ selectedAccounts: he,
7302
7302
  setDisplayedDate: V,
7303
7303
  setSelectedAccounts: Ce
7304
- } = ce(), [ge, _e] = g.useState(""), [He, he] = g.useState(""), [Ke, je] = g.useState(!1), [Te, _t] = g.useState(!1), [un, se] = g.useState(!1);
7304
+ } = ce(), [me, _e] = g.useState(""), [He, ge] = g.useState(""), [Ke, je] = g.useState(!1), [Te, _t] = g.useState(!1), [un, se] = g.useState(!1);
7305
7305
  g.useEffect(() => {
7306
7306
  Ce(r);
7307
7307
  }, [r]), g.useEffect(() => {
7308
7308
  const st = Fe(le()), Ur = Xe(le());
7309
7309
  V(st, Ur), T({
7310
7310
  dateRange: { start: st, end: Ur },
7311
- accounts: me.map((Ba) => Ba.guid),
7311
+ accounts: he.map((Ba) => Ba.guid),
7312
7312
  custom: (Ba) => !Ba.accountIsClosed
7313
7313
  }), se(!0), O(W.TRANSACTIONS_VIEW);
7314
7314
  }, []), g.useEffect(() => {
@@ -7350,7 +7350,7 @@ const rc = ({ transaction: e }) => {
7350
7350
  }, il = async () => {
7351
7351
  We && !We.has_been_viewed && await x({ ...We, has_been_viewed: !0 }), _e("");
7352
7352
  };
7353
- return !U || !H || !un ? /* @__PURE__ */ t(ue, {}) : /* @__PURE__ */ l(
7353
+ return !U || !B || !un ? /* @__PURE__ */ t(ue, {}) : /* @__PURE__ */ l(
7354
7354
  Ot,
7355
7355
  {
7356
7356
  accountOptions: r,
@@ -7394,13 +7394,13 @@ const rc = ({ transaction: e }) => {
7394
7394
  {
7395
7395
  height: `calc(${n} - ${No}px)`,
7396
7396
  onCategoryClick: (st) => {
7397
- he(st), _e(
7397
+ ge(st), _e(
7398
7398
  "category"
7399
7399
  /* Category */
7400
7400
  );
7401
7401
  },
7402
7402
  onRowClick: (st) => {
7403
- he(st), _e(
7403
+ ge(st), _e(
7404
7404
  "transaction"
7405
7405
  /* Transaction */
7406
7406
  ), O(W.TRANSACTIONS_CLICK_DETAILS, { transaction_guid: st });
@@ -7421,7 +7421,7 @@ const rc = ({ transaction: e }) => {
7421
7421
  {
7422
7422
  height: `calc(${n} - ${No}px)`,
7423
7423
  onClick: (st) => {
7424
- he(st), _e(
7424
+ ge(st), _e(
7425
7425
  "transaction"
7426
7426
  /* Transaction */
7427
7427
  );
@@ -7436,17 +7436,17 @@ const rc = ({ transaction: e }) => {
7436
7436
  ne,
7437
7437
  {
7438
7438
  ariaLabelClose: R.close_aria,
7439
- isOpen: ge === "transaction",
7439
+ isOpen: me === "transaction",
7440
7440
  onClose: il,
7441
7441
  title: D.details_title,
7442
7442
  children: We && /* @__PURE__ */ t(Yn, { transaction: We })
7443
7443
  }
7444
7444
  ),
7445
- We && ge === "category" && /* @__PURE__ */ t(
7445
+ We && me === "category" && /* @__PURE__ */ t(
7446
7446
  Bh,
7447
7447
  {
7448
7448
  onClose: () => {
7449
- c(""), _e(""), he("");
7449
+ c(""), _e(""), ge("");
7450
7450
  },
7451
7451
  transaction: We
7452
7452
  }
@@ -7455,7 +7455,7 @@ const rc = ({ transaction: e }) => {
7455
7455
  ne,
7456
7456
  {
7457
7457
  ariaLabelClose: R.close_aria,
7458
- isOpen: ge === "addTransaction",
7458
+ isOpen: me === "addTransaction",
7459
7459
  isPrimaryDisabled: !_n,
7460
7460
  onClose: () => _e(""),
7461
7461
  onPrimaryAction: Ga,
@@ -7575,7 +7575,7 @@ const rc = ({ transaction: e }) => {
7575
7575
  primaryTypographyProps: { fontWeight: 400 }
7576
7576
  }
7577
7577
  ),
7578
- e.recurrenceType === f.id && /* @__PURE__ */ t(P, { color: "primary", fill: !0, name: "check_circle", size: 24 })
7578
+ e.recurrenceType === f.id && /* @__PURE__ */ t(H, { color: "primary", fill: !0, name: "check_circle", size: 24 })
7579
7579
  ] }) }, f.id),
7580
7580
  /* @__PURE__ */ t(G, {})
7581
7581
  ] }, f.id)) })
@@ -7686,7 +7686,7 @@ const rc = ({ transaction: e }) => {
7686
7686
  /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e.name }),
7687
7687
  /* @__PURE__ */ l(cn, { color: T ? "success.main" : "text.primary", children: [
7688
7688
  T ? "+" : "",
7689
- B(e.amount, "0,0.00")
7689
+ P(e.amount, "0,0.00")
7690
7690
  ] })
7691
7691
  ] }),
7692
7692
  /* @__PURE__ */ l(ae, { sx: { bgcolor: "background.paper" }, children: [
@@ -7722,7 +7722,7 @@ const rc = ({ transaction: e }) => {
7722
7722
  {
7723
7723
  color: "error",
7724
7724
  onClick: x,
7725
- startIcon: /* @__PURE__ */ t(P, { name: "delete" }),
7725
+ startIcon: /* @__PURE__ */ t(H, { name: "delete" }),
7726
7726
  sx: { mx: 24, my: 16 },
7727
7727
  variant: "text",
7728
7728
  children: T ? i.delete_income_title : i.delete_expense_title
@@ -7876,7 +7876,7 @@ const rc = ({ transaction: e }) => {
7876
7876
  children: /* @__PURE__ */ l(b, { alignItems: "flex-end", width: "100%", children: [
7877
7877
  /* @__PURE__ */ l(p, { bold: !0, color: c ? "success.main" : "text.primary", variant: "Body", children: [
7878
7878
  c ? "+" : "",
7879
- B(e.amount, "0,0.00")
7879
+ P(e.amount, "0,0.00")
7880
7880
  ] }),
7881
7881
  !n && /* @__PURE__ */ l(
7882
7882
  b,
@@ -7888,8 +7888,8 @@ const rc = ({ transaction: e }) => {
7888
7888
  textTransform: "uppercase",
7889
7889
  width: "100%",
7890
7890
  children: [
7891
- d && /* @__PURE__ */ t(P, { color: "success", fill: !0, name: "check_circle", size: 12 }),
7892
- _ && /* @__PURE__ */ t(P, { color: "error", fill: !0, name: "cancel", size: 12 }),
7891
+ d && /* @__PURE__ */ t(H, { color: "success", fill: !0, name: "check_circle", size: 12 }),
7892
+ _ && /* @__PURE__ */ t(H, { color: "error", fill: !0, name: "cancel", size: 12 }),
7893
7893
  /* @__PURE__ */ t(p, { bold: !0, color: "secondary.light", variant: "XSmall", children: h })
7894
7894
  ]
7895
7895
  }
@@ -8022,11 +8022,11 @@ const rc = ({ transaction: e }) => {
8022
8022
  { id: Q.EveryYear, label: c.frequency_every_year }
8023
8023
  ];
8024
8024
  g.useEffect(() => {
8025
- const u = Me(s.date);
8025
+ const u = ke(s.date);
8026
8026
  o(Zi(u)), r(Q.EveryMonth);
8027
8027
  }, [s]);
8028
8028
  const _ = (u) => {
8029
- const h = Me(s.date);
8029
+ const h = ke(s.date);
8030
8030
  switch (Number(u.target.value)) {
8031
8031
  case Q.EveryWeek:
8032
8032
  o(pa(h));
@@ -8063,7 +8063,7 @@ const rc = ({ transaction: e }) => {
8063
8063
  {
8064
8064
  InputLabelProps: { shrink: !0 },
8065
8065
  SelectProps: {
8066
- IconComponent: (u) => /* @__PURE__ */ t(P, { fill: !1, name: "expand_more", size: 20, sx: { mr: 4 }, ...u })
8066
+ IconComponent: (u) => /* @__PURE__ */ t(H, { fill: !1, name: "expand_more", size: 20, sx: { mr: 4 }, ...u })
8067
8067
  },
8068
8068
  defaultValue: 0,
8069
8069
  label: c.frequency,
@@ -8118,10 +8118,10 @@ const rc = ({ transaction: e }) => {
8118
8118
  return /* @__PURE__ */ l(M, { children: [
8119
8119
  /* @__PURE__ */ t(q, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(de, { onClick: N, children: /* @__PURE__ */ t(re, { children: /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
8120
8120
  /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 8, children: [
8121
- /* @__PURE__ */ t(P, { fill: !0, name: "add_box", size: 24, sx: { color: "primary.light" } }),
8121
+ /* @__PURE__ */ t(H, { fill: !0, name: "add_box", size: 24, sx: { color: "primary.light" } }),
8122
8122
  /* @__PURE__ */ t(p, { bold: !0, sx: { color: "primary.light" }, variant: "Body", children: n })
8123
8123
  ] }),
8124
- /* @__PURE__ */ t(P, { name: "chevron_right", size: 24, sx: { color: "primary.light" } })
8124
+ /* @__PURE__ */ t(H, { name: "chevron_right", size: 24, sx: { color: "primary.light" } })
8125
8125
  ] }) }) }) }),
8126
8126
  /* @__PURE__ */ t(G, {}),
8127
8127
  /* @__PURE__ */ t(
@@ -8226,7 +8226,7 @@ const rc = ({ transaction: e }) => {
8226
8226
  transactionGuid: u.transaction_guid
8227
8227
  };
8228
8228
  }), c = a.filter(
8229
- (u) => ni(Me(u.expected_date), {
8229
+ (u) => ni(ke(u.expected_date), {
8230
8230
  start: Fe(le()),
8231
8231
  end: Mt(le(), 30)
8232
8232
  })
@@ -8360,7 +8360,7 @@ const rc = ({ transaction: e }) => {
8360
8360
  const f = i.find(
8361
8361
  (E) => E.scheduled_payment_guid === C.scheduledPaymentGuid && E.date > Oe(ut(C.expectedDate, 3)) && E.date < Oe(Mt(C.expectedDate, 3))
8362
8362
  );
8363
- f ? (C.transactionGuid = f.guid, C.occurredOnDate = Me(f.date), C.activityStatus = et.Paid) : ve(C.expectedDate, ut(_, 3)) && (C.activityStatus = et.Missed);
8363
+ f ? (C.transactionGuid = f.guid, C.occurredOnDate = ke(f.date), C.activityStatus = et.Paid) : ve(C.expectedDate, ut(_, 3)) && (C.activityStatus = et.Missed);
8364
8364
  }), a;
8365
8365
  }, ig = (e, n, i, a, r) => a.map((o) => {
8366
8366
  const s = n.find((h) => h.cashflow_sequence_guid === o.guid), c = i.find((h) => h.cashflow_sequence_guid === o.guid), d = r.find((h) => h.guid === s?.transaction_guid), _ = e.find((h) => h.guid === d?.account_guid);
@@ -8416,14 +8416,14 @@ const rc = ({ transaction: e }) => {
8416
8416
  variant: "fullWidth",
8417
8417
  children: [
8418
8418
  /* @__PURE__ */ t(
8419
- ke,
8419
+ Me,
8420
8420
  {
8421
8421
  label: a.manage_expenses,
8422
8422
  sx: { "&.Mui-selected": { color: "primary.light" } }
8423
8423
  }
8424
8424
  ),
8425
8425
  /* @__PURE__ */ t(
8426
- ke,
8426
+ Me,
8427
8427
  {
8428
8428
  label: a.manage_income,
8429
8429
  sx: { "&.Mui-selected": { color: "primary.light" } }
@@ -8664,19 +8664,19 @@ const rc = ({ transaction: e }) => {
8664
8664
  /* @__PURE__ */ l(M, { children: [
8665
8665
  /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: `${r} ${e}` }),
8666
8666
  /* @__PURE__ */ l(b, { direction: "row", gap: 2, mb: 8, children: [
8667
- /* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: B(i, "0,0.00") }),
8667
+ /* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: P(i, "0,0.00") }),
8668
8668
  /* @__PURE__ */ t(p, { variant: "XSmall", children: s.paid?.toLowerCase() }),
8669
8669
  a !== void 0 && /* @__PURE__ */ l(Z, { children: [
8670
8670
  /* @__PURE__ */ t(p, { variant: "XSmall", children: "/" }),
8671
- /* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: B(a, "0,0.00") }),
8671
+ /* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: P(a, "0,0.00") }),
8672
8672
  /* @__PURE__ */ t(p, { variant: "XSmall", children: s.missed?.toLowerCase() })
8673
8673
  ] }),
8674
8674
  /* @__PURE__ */ t(p, { variant: "XSmall", children: "/" }),
8675
- /* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: B(n, "0,0.00") }),
8675
+ /* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: P(n, "0,0.00") }),
8676
8676
  /* @__PURE__ */ t(p, { variant: "XSmall", children: s.expected })
8677
8677
  ] })
8678
8678
  ] }),
8679
- o && /* @__PURE__ */ t(ee, { onClick: o, startIcon: /* @__PURE__ */ t(P, { name: "add" }), variant: "text", children: s.add_new })
8679
+ o && /* @__PURE__ */ t(ee, { onClick: o, startIcon: /* @__PURE__ */ t(H, { name: "add" }), variant: "text", children: s.add_new })
8680
8680
  ] }),
8681
8681
  /* @__PURE__ */ t(ai, { data: d })
8682
8682
  ] });
@@ -8689,8 +8689,8 @@ const rc = ({ transaction: e }) => {
8689
8689
  selectedDayActivities: c,
8690
8690
  setSelectedDay: d,
8691
8691
  upcomingActivities: _
8692
- } = tt(), [u, h] = g.useState(0), { onEvent: m } = z(), C = a.filter(Fa), f = o.filter(Fa), E = r.filter(Fa), y = C.filter(Hi).reduce(_i, 0), T = f.filter(Hi).reduce(_i, 0), w = E.filter(Hi).reduce(_i, 0), N = C.filter(Hi).length, x = C.filter($a).reduce(_i, 0), R = f.filter($a).reduce(_i, 0), D = C.filter($a).length, $ = (U, H) => {
8693
- h(H);
8692
+ } = tt(), [u, h] = g.useState(0), { onEvent: m } = z(), C = a.filter(Fa), f = o.filter(Fa), E = r.filter(Fa), y = C.filter(Hi).reduce(_i, 0), T = f.filter(Hi).reduce(_i, 0), w = E.filter(Hi).reduce(_i, 0), N = C.filter(Hi).length, x = C.filter($a).reduce(_i, 0), R = f.filter($a).reduce(_i, 0), D = C.filter($a).length, $ = (U, B) => {
8693
+ h(B);
8694
8694
  }, O = (U) => {
8695
8695
  m(W.RECURRING_ACTIVITY_CLICK_UPCOMING, {
8696
8696
  transaction_guid: U.transactionGuid
@@ -8732,13 +8732,13 @@ const rc = ({ transaction: e }) => {
8732
8732
  (i || n) && /* @__PURE__ */ l(M, { children: [
8733
8733
  /* @__PURE__ */ l(Lt, { onChange: $, value: u, variant: "fullWidth", children: [
8734
8734
  /* @__PURE__ */ t(
8735
- ke,
8735
+ Me,
8736
8736
  {
8737
8737
  label: /* @__PURE__ */ t(p, { bold: !0, sx: { textTransform: "none" }, variant: "Body", children: e.upcoming })
8738
8738
  }
8739
8739
  ),
8740
8740
  /* @__PURE__ */ t(
8741
- ke,
8741
+ Me,
8742
8742
  {
8743
8743
  label: /* @__PURE__ */ t(p, { bold: !0, sx: { textTransform: "none" }, variant: "Body", children: e.paid })
8744
8744
  }
@@ -9092,12 +9092,12 @@ const Eg = {
9092
9092
  name: "balance",
9093
9093
  placeholder: S(n.enter_value, n.account_balance),
9094
9094
  type: It.Currency,
9095
- valueFormatter: (r) => B(r, "0,0.00")
9095
+ valueFormatter: (r) => P(r, "0,0.00")
9096
9096
  });
9097
9097
  const a = Object.keys(oe).filter((r) => Number(r)).map((r) => ({
9098
9098
  label: n.account_types[r],
9099
9099
  value: Number(r),
9100
- icon: /* @__PURE__ */ t(P, { name: Ms[r] })
9100
+ icon: /* @__PURE__ */ t(H, { name: Ms[r] })
9101
9101
  }));
9102
9102
  i.push({
9103
9103
  label: n.account_type,
@@ -9112,7 +9112,7 @@ const Eg = {
9112
9112
  const a = Object.keys(Ds).filter((r) => Number(r)).map((r) => ({
9113
9113
  label: n.property_types[r],
9114
9114
  value: Number(r),
9115
- icon: /* @__PURE__ */ t(P, { name: Vd[r] })
9115
+ icon: /* @__PURE__ */ t(H, { name: Vd[r] })
9116
9116
  }));
9117
9117
  i.push({
9118
9118
  label: n.property_type,
@@ -9140,7 +9140,7 @@ const Eg = {
9140
9140
  name: "minimum_payment",
9141
9141
  placeholder: S(n.enter_value, n.minimum_payment),
9142
9142
  type: It.Currency,
9143
- valueFormatter: (a) => B(a, "0,0.00")
9143
+ valueFormatter: (a) => P(a, "0,0.00")
9144
9144
  }), e.payment_due_at ? i.push({
9145
9145
  label: n.next_payment,
9146
9146
  name: "payment_due_at",
@@ -9163,21 +9163,21 @@ const Eg = {
9163
9163
  name: "credit_limit",
9164
9164
  placeholder: S(n.enter_value, n.credit_limit),
9165
9165
  type: It.Currency,
9166
- valueFormatter: (a) => B(a, "0,0.00")
9166
+ valueFormatter: (a) => P(a, "0,0.00")
9167
9167
  }), xg(e) && i.push({
9168
9168
  label: n.original_balance,
9169
9169
  minAmount: 1,
9170
9170
  name: "original_balance",
9171
9171
  placeholder: S(n.enter_value, n.original_balance),
9172
9172
  type: It.Currency,
9173
- valueFormatter: (a) => B(a, "0,0.00")
9173
+ valueFormatter: (a) => P(a, "0,0.00")
9174
9174
  }), i;
9175
9175
  }, yc = (e, n) => {
9176
9176
  let i = "", a = null, r = null, o = null, s = !1;
9177
9177
  switch (e.account_type) {
9178
9178
  case 1:
9179
9179
  case 2: {
9180
- e.available_balance ? (i = n.available_balance, a = e.available_balance, r = e.available_balance ? n.current_balance : null, o = B(e.balance, "0,0.00"), s = !0) : (i = n.current_balance, a = e.balance);
9180
+ e.available_balance ? (i = n.available_balance, a = e.available_balance, r = e.available_balance ? n.current_balance : null, o = P(e.balance, "0,0.00"), s = !0) : (i = n.current_balance, a = e.balance);
9181
9181
  break;
9182
9182
  }
9183
9183
  default:
@@ -9185,10 +9185,10 @@ const Eg = {
9185
9185
  const c = typeof e.payment_due_at == "number" ? new Date(e.payment_due_at * 1e3) : e.payment_due_at;
9186
9186
  r = /* @__PURE__ */ t(p, { component: "strong", variant: "XSmall", children: S(
9187
9187
  n.payment_due_on,
9188
- B(e.minimum_payment, "0,0.00"),
9188
+ P(e.minimum_payment, "0,0.00"),
9189
9189
  ie(c, te.FULL_MONTH_DAY)
9190
9190
  ) });
9191
- } else e.credit_limit && (r = n.available_credit, o = B(e.credit_limit, "0,0.00"));
9191
+ } else e.credit_limit && (r = n.available_credit, o = P(e.credit_limit, "0,0.00"));
9192
9192
  }
9193
9193
  return {
9194
9194
  firstSubtitle: i,
@@ -9244,7 +9244,7 @@ const Eg = {
9244
9244
  secondary: /* @__PURE__ */ l(Z, { children: [
9245
9245
  /* @__PURE__ */ l(M, { sx: { alignItems: "center", display: "flex", justifyContent: "space-between" }, children: [
9246
9246
  /* @__PURE__ */ t(p, { variant: "XSmall", children: s }),
9247
- /* @__PURE__ */ t(p, { bold: !0, variant: "Small", children: B(c, "0,0.00") })
9247
+ /* @__PURE__ */ t(p, { bold: !0, variant: "Small", children: P(c, "0,0.00") })
9248
9248
  ] }),
9249
9249
  /* @__PURE__ */ l(M, { sx: { alignItems: "center", display: "flex", justifyContent: "space-between" }, children: [
9250
9250
  /* @__PURE__ */ t(p, { variant: "XSmall", children: d }),
@@ -9315,7 +9315,7 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
9315
9315
  /* @__PURE__ */ t(p, { bold: !0, sx: { fontSize: 12 }, children: n === xi.EXPENSE ? i.expenses : i.income }),
9316
9316
  /* @__PURE__ */ l(p, { bold: !0, sx: { fontSize: 13 }, children: [
9317
9317
  n === xi.EXPENSE ? "-" : "+",
9318
- B(e, "0,0.00")
9318
+ P(e, "0,0.00")
9319
9319
  ] })
9320
9320
  ]
9321
9321
  }
@@ -9420,21 +9420,21 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
9420
9420
  flex: 1,
9421
9421
  headerName: i.balance,
9422
9422
  type: "number",
9423
- renderCell: (_) => B(_.value, "0,0.00")
9423
+ renderCell: (_) => P(_.value, "0,0.00")
9424
9424
  },
9425
9425
  {
9426
9426
  field: "income",
9427
9427
  flex: 1,
9428
9428
  headerName: i.projected_income,
9429
9429
  type: "number",
9430
- renderCell: (_) => `+${B(_.value, "0,0.00")}`
9430
+ renderCell: (_) => `+${P(_.value, "0,0.00")}`
9431
9431
  },
9432
9432
  {
9433
9433
  field: "expenses",
9434
9434
  flex: 1.1,
9435
9435
  headerName: i.projected_expenses,
9436
9436
  type: "number",
9437
- renderCell: (_) => `-${B(_.value, "0,0.00")}`
9437
+ renderCell: (_) => `-${P(_.value, "0,0.00")}`
9438
9438
  },
9439
9439
  {
9440
9440
  field: "remaining",
@@ -9448,7 +9448,7 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
9448
9448
  {
9449
9449
  color: Math.sign(u) === -1 ? n.palette.error.main : n.palette.text.primary,
9450
9450
  variant: "Small",
9451
- children: B(u, "0,0.00")
9451
+ children: P(u, "0,0.00")
9452
9452
  }
9453
9453
  );
9454
9454
  }
@@ -9640,7 +9640,7 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
9640
9640
  variant: "fullWidth",
9641
9641
  children: [
9642
9642
  /* @__PURE__ */ t(
9643
- ke,
9643
+ Me,
9644
9644
  {
9645
9645
  "aria-controls": "cashflow-tabpanel-0",
9646
9646
  id: "cashflow-tab-0",
@@ -9649,7 +9649,7 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
9649
9649
  }
9650
9650
  ),
9651
9651
  /* @__PURE__ */ t(
9652
- ke,
9652
+ Me,
9653
9653
  {
9654
9654
  "aria-controls": "cashflow-tabpanel-1",
9655
9655
  id: "cashflow-tab-1",
@@ -9722,7 +9722,7 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
9722
9722
  ee,
9723
9723
  {
9724
9724
  onClick: () => n(!0),
9725
- startIcon: /* @__PURE__ */ t(P, { name: "add" }),
9725
+ startIcon: /* @__PURE__ */ t(H, { name: "add" }),
9726
9726
  sx: { fontSize: 13 },
9727
9727
  children: a.add_income
9728
9728
  }
@@ -9769,7 +9769,7 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
9769
9769
  ee,
9770
9770
  {
9771
9771
  onClick: () => n(!0),
9772
- startIcon: /* @__PURE__ */ t(P, { name: "add" }),
9772
+ startIcon: /* @__PURE__ */ t(H, { name: "add" }),
9773
9773
  sx: { fontSize: 13 },
9774
9774
  children: a.add_income
9775
9775
  }
@@ -9831,7 +9831,7 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
9831
9831
  mr: 24,
9832
9832
  sx: { display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0 },
9833
9833
  width: 44,
9834
- children: /* @__PURE__ */ t(P, { color: "primary", name: "currency_exchange" })
9834
+ children: /* @__PURE__ */ t(H, { color: "primary", name: "currency_exchange" })
9835
9835
  }
9836
9836
  ),
9837
9837
  i.bullet_one
@@ -9847,7 +9847,7 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
9847
9847
  mr: 24,
9848
9848
  sx: { display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0 },
9849
9849
  width: 44,
9850
- children: /* @__PURE__ */ t(P, { color: "primary", name: "cardiology" })
9850
+ children: /* @__PURE__ */ t(H, { color: "primary", name: "cardiology" })
9851
9851
  }
9852
9852
  ),
9853
9853
  i.bullet_two
@@ -9863,7 +9863,7 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
9863
9863
  mr: 24,
9864
9864
  sx: { display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0 },
9865
9865
  width: 44,
9866
- children: /* @__PURE__ */ t(P, { color: "primary", name: "flare" })
9866
+ children: /* @__PURE__ */ t(H, { color: "primary", name: "flare" })
9867
9867
  }
9868
9868
  ),
9869
9869
  i.bullet_three
@@ -9892,10 +9892,10 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
9892
9892
  transform: rotate(360deg);
9893
9893
  }
9894
9894
  `, Kg = () => {
9895
- const { addCashflowEvent: e, addCashflowSequence: n, cashflowSequences: i } = tt(), { cashflow: a, common: r } = I(), { completeOnboarding: o } = Er(), { isDirty: s } = li(), { isMobile: c } = De(), { isCopyLoaded: d, setDisplayedDate: _ } = ce(), { filter: u, setFilter: h, transactions: m } = Se(), C = pe(), [f, E] = yt(!0), [y, T] = g.useState(Q.EveryMonth), [w, N] = yt(!1), [x, R] = g.useState(null), [D, $] = yt(1), [O, L] = yt([]), [U, H] = yt(""), j = g.useMemo(
9895
+ const { addCashflowEvent: e, addCashflowSequence: n, cashflowSequences: i } = tt(), { cashflow: a, common: r } = I(), { completeOnboarding: o } = Er(), { isDirty: s } = li(), { isMobile: c } = De(), { isCopyLoaded: d, setDisplayedDate: _ } = ce(), { filter: u, setFilter: h, transactions: m } = Se(), C = pe(), [f, E] = yt(!0), [y, T] = g.useState(Q.EveryMonth), [w, N] = yt(!1), [x, R] = g.useState(null), [D, $] = yt(1), [O, L] = yt([]), [U, B] = yt(""), j = g.useMemo(
9896
9896
  () => m.find((_e) => _e.guid === U),
9897
9897
  [U]
9898
- ), me = !!i.length, V = async () => {
9898
+ ), he = !!i.length, V = async () => {
9899
9899
  $(2), _(
9900
9900
  // Beginning of the month, 90 days before today
9901
9901
  Fe(ut(le(), 90)),
@@ -9905,11 +9905,11 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
9905
9905
  if (!(O.length < 1)) {
9906
9906
  N(!0);
9907
9907
  for (let _e = 0; _e < O.length; _e++) {
9908
- const He = O[_e], he = _c(
9908
+ const He = O[_e], ge = _c(
9909
9909
  He,
9910
9910
  He.frequency,
9911
9911
  He.nextDate
9912
- ), Ke = await n(he);
9912
+ ), Ke = await n(ge);
9913
9913
  if (Ke) {
9914
9914
  const je = hc(Ke, He);
9915
9915
  await e(je);
@@ -9917,7 +9917,7 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
9917
9917
  }
9918
9918
  await o();
9919
9919
  }
9920
- }, ge = !j && f || !j && O.length < 1;
9920
+ }, me = !j && f || !j && O.length < 1;
9921
9921
  return d ? /* @__PURE__ */ l(
9922
9922
  M,
9923
9923
  {
@@ -9973,13 +9973,13 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
9973
9973
  ee,
9974
9974
  {
9975
9975
  onClick: () => E(!0),
9976
- startIcon: /* @__PURE__ */ t(P, { name: "add", size: 20 }),
9976
+ startIcon: /* @__PURE__ */ t(H, { name: "add", size: 20 }),
9977
9977
  children: a.add_additional_income_button
9978
9978
  }
9979
9979
  )
9980
9980
  ] })
9981
9981
  ] }),
9982
- ge && /* @__PURE__ */ t(
9982
+ me && /* @__PURE__ */ t(
9983
9983
  gc,
9984
9984
  {
9985
9985
  bgcolor: "background.paper",
@@ -9988,11 +9988,11 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
9988
9988
  custom: (He) => _e ? Dr(He, _e) : Vn(He)
9989
9989
  }),
9990
9990
  onSelected: (_e) => {
9991
- H(_e), E(!1);
9991
+ B(_e), E(!1);
9992
9992
  }
9993
9993
  }
9994
9994
  ),
9995
- !me && s && /* @__PURE__ */ t(Le, { color: "error", mt: 16, children: a.confirm_error }),
9995
+ !he && s && /* @__PURE__ */ t(Le, { color: "error", mt: 16, children: a.confirm_error }),
9996
9996
  j && /* @__PURE__ */ l(Z, { children: [
9997
9997
  /* @__PURE__ */ t(
9998
9998
  mc,
@@ -10013,7 +10013,7 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
10013
10013
  "aria-disabled": !j || !x,
10014
10014
  onClick: () => {
10015
10015
  const _e = [...O];
10016
- _e.push({ ...j, nextDate: x, frequency: y }), L(_e), H("");
10016
+ _e.push({ ...j, nextDate: x, frequency: y }), L(_e), B("");
10017
10017
  },
10018
10018
  variant: "contained",
10019
10019
  children: r.confirm_button
@@ -10023,7 +10023,7 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
10023
10023
  ee,
10024
10024
  {
10025
10025
  onClick: () => {
10026
- H(""), E(!0), V();
10026
+ B(""), E(!0), V();
10027
10027
  },
10028
10028
  variant: "outlined",
10029
10029
  children: r.cancel_button
@@ -10038,7 +10038,7 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
10038
10038
  "aria-disabled": O.length < 1 || w,
10039
10039
  onClick: Ce,
10040
10040
  startIcon: w ? /* @__PURE__ */ t(
10041
- P,
10041
+ H,
10042
10042
  {
10043
10043
  name: "progress_activity",
10044
10044
  sx: {
@@ -10232,7 +10232,7 @@ function qg(e, n, i = 0) {
10232
10232
  }
10233
10233
  const d = a.some((u) => u.is_impossible && u.balance > 0), _ = cd({ start: s, end: c });
10234
10234
  return {
10235
- payoffSavings: d ? "N/A" : B(r, "0,0.00"),
10235
+ payoffSavings: d ? "N/A" : P(r, "0,0.00"),
10236
10236
  payoffDate: d ? "Never" : ie(c, te.MONTH_YEAR),
10237
10237
  payoffDuration: d ? "Stagnant" : ld(_, { format: ["years", "months"] }) || "0 months"
10238
10238
  };
@@ -10696,14 +10696,14 @@ const Cn = () => {
10696
10696
  }, lm = (e, n, i) => {
10697
10697
  const [a, r] = e, o = a, s = r ?? a, c = [];
10698
10698
  if (o && s && mr.includes(n)) {
10699
- const d = B(o[o.length - 1].y, "0,0");
10699
+ const d = P(o[o.length - 1].y, "0,0");
10700
10700
  c.push(`${i.income_label} ${d}`);
10701
10701
  } else if (pr.includes(n)) {
10702
- const d = B(o[o.length - 1].y, "0,0");
10702
+ const d = P(o[o.length - 1].y, "0,0");
10703
10703
  c.push(`${i.payments_label} ${d}`);
10704
10704
  }
10705
10705
  if (s && Cr.includes(n)) {
10706
- const d = B(s[s.length - 1].y, "0,0");
10706
+ const d = P(s[s.length - 1].y, "0,0");
10707
10707
  c.push(`${i.spending_label} ${d}`);
10708
10708
  }
10709
10709
  return c;
@@ -10772,7 +10772,7 @@ const Cn = () => {
10772
10772
  /* @__PURE__ */ t(Hn, { children: i.name || i.feed_name }),
10773
10773
  /* @__PURE__ */ l(b, { direction: "row", justifyContent: "space-between", children: [
10774
10774
  /* @__PURE__ */ t(p, { bold: s, variant: "Body", children: r }),
10775
- /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: B(o, "0,0.00") })
10775
+ /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: P(o, "0,0.00") })
10776
10776
  ] }),
10777
10777
  /* @__PURE__ */ l(b, { direction: "row", justifyContent: "space-between", children: [
10778
10778
  /* @__PURE__ */ t(p, { variant: "Small", children: c }),
@@ -10907,7 +10907,7 @@ const Ic = ({
10907
10907
  min: 0,
10908
10908
  max: f,
10909
10909
  disableTicks: !0,
10910
- valueFormatter: (x) => B(x, "0a")
10910
+ valueFormatter: (x) => P(x, "0a")
10911
10911
  }
10912
10912
  ]
10913
10913
  }
@@ -10972,7 +10972,7 @@ const Ic = ({
10972
10972
  /* @__PURE__ */ t(p, { color: e.palette.secondary.main, variant: "XSmall", children: i.schedule_month_label })
10973
10973
  ] }),
10974
10974
  /* @__PURE__ */ l(b, { children: [
10975
- /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: B(c, "0,0.00") }),
10975
+ /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: P(c, "0,0.00") }),
10976
10976
  /* @__PURE__ */ t(
10977
10977
  p,
10978
10978
  {
@@ -10980,7 +10980,7 @@ const Ic = ({
10980
10980
  color: e.palette.success.main,
10981
10981
  textAlign: "end",
10982
10982
  variant: "Tiny",
10983
- children: `+${B(d, "0,0")}`
10983
+ children: `+${P(d, "0,0")}`
10984
10984
  }
10985
10985
  )
10986
10986
  ] })
@@ -11055,7 +11055,7 @@ const Ic = ({
11055
11055
  onCancel: u,
11056
11056
  onSave: _,
11057
11057
  primaryText: n.details_monthly_payment,
11058
- secondaryText: B(e.monthly_payment, "0,0"),
11058
+ secondaryText: P(e.monthly_payment, "0,0"),
11059
11059
  zeroStateText: e.monthly_payment ? void 0 : n.add_monthly_payment,
11060
11060
  children: /* @__PURE__ */ t(
11061
11061
  en,
@@ -11089,7 +11089,7 @@ const Ic = ({
11089
11089
  onCancel: u,
11090
11090
  onSave: _,
11091
11091
  primaryText: n.details_original_balance,
11092
- secondaryText: B(e.initial_amount, "0,0"),
11092
+ secondaryText: P(e.initial_amount, "0,0"),
11093
11093
  zeroStateText: !e.initial_amount && !e.is_complete ? n.add_original_balance : void 0,
11094
11094
  children: /* @__PURE__ */ t(
11095
11095
  en,
@@ -11151,7 +11151,7 @@ const Ic = ({
11151
11151
  onCancel: d,
11152
11152
  onSave: c,
11153
11153
  primaryText: n.details_monthly_payment,
11154
- secondaryText: B(e.monthly_payment, "0,0"),
11154
+ secondaryText: P(e.monthly_payment, "0,0"),
11155
11155
  zeroStateText: e.monthly_payment ? void 0 : n.add_monthly_payment,
11156
11156
  children: /* @__PURE__ */ t(
11157
11157
  en,
@@ -11183,7 +11183,7 @@ const Ic = ({
11183
11183
  onCancel: d,
11184
11184
  onSave: c,
11185
11185
  primaryText: n.details_original_balance,
11186
- secondaryText: B(e.original_balance, "0,0"),
11186
+ secondaryText: P(e.original_balance, "0,0"),
11187
11187
  zeroStateText: e.original_balance ? void 0 : n.add_original_balance,
11188
11188
  children: /* @__PURE__ */ t(
11189
11189
  en,
@@ -11278,7 +11278,7 @@ const Ic = ({
11278
11278
  variant: "fullWidth",
11279
11279
  children: [
11280
11280
  /* @__PURE__ */ t(
11281
- ke,
11281
+ Me,
11282
11282
  {
11283
11283
  "aria-controls": "debt-schedule-tabpanel-0",
11284
11284
  id: "debt-schedule-tab-0",
@@ -11287,7 +11287,7 @@ const Ic = ({
11287
11287
  }
11288
11288
  ),
11289
11289
  /* @__PURE__ */ t(
11290
- ke,
11290
+ Me,
11291
11291
  {
11292
11292
  "aria-controls": "debt-details-tabpanel-1",
11293
11293
  id: "debt-details-tab-1",
@@ -11335,7 +11335,7 @@ const Ic = ({
11335
11335
  onCancel: d,
11336
11336
  onSave: c,
11337
11337
  primaryText: e.paydown_drawer_extra_payment,
11338
- secondaryText: B(n?.extra_payment, "0,0"),
11338
+ secondaryText: P(n?.extra_payment, "0,0"),
11339
11339
  zeroStateText: n?.extra_payment ? void 0 : e.add_extra_payment,
11340
11340
  children: /* @__PURE__ */ t(
11341
11341
  en,
@@ -11357,7 +11357,7 @@ const Ic = ({
11357
11357
  /* @__PURE__ */ l(b, { p: 24, children: [
11358
11358
  /* @__PURE__ */ l(b, { alignItems: "center", gap: 4, mb: 24, children: [
11359
11359
  /* @__PURE__ */ t(p, { variant: "Body", children: e.paydown_drawer_mimimum_label }),
11360
- /* @__PURE__ */ t(p, { bold: !0, variant: "H1", children: B(n, "0,0") }),
11360
+ /* @__PURE__ */ t(p, { bold: !0, variant: "H1", children: P(n, "0,0") }),
11361
11361
  /* @__PURE__ */ t(p, { textAlign: "center", truncate: !1, variant: "Small", width: 208, children: e.paydown_drawer_minimum_info })
11362
11362
  ] }),
11363
11363
  /* @__PURE__ */ l(b, { children: [
@@ -11368,7 +11368,7 @@ const Ic = ({
11368
11368
  /* @__PURE__ */ t(b, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ t(Rm, {}) }),
11369
11369
  /* @__PURE__ */ t(b, { flexDirection: "row-reverse", px: 24, py: 12, children: /* @__PURE__ */ l(b, { gap: 4, children: [
11370
11370
  /* @__PURE__ */ t(p, { variant: "Small", children: e.paydown_drawer_total_payment }),
11371
- /* @__PURE__ */ t(p, { bold: !0, textAlign: "right", variant: "Body", children: B(a, "0,0") })
11371
+ /* @__PURE__ */ t(p, { bold: !0, textAlign: "right", variant: "Body", children: P(a, "0,0") })
11372
11372
  ] }) })
11373
11373
  ] });
11374
11374
  }, Lm = A(Om), Mm = ({ isOpen: e, onClose: n, sx: i }) => {
@@ -11476,7 +11476,7 @@ const Ut = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
11476
11476
  field: "balance",
11477
11477
  headerName: d.table_column_balance,
11478
11478
  renderHeader: Ut,
11479
- valueFormatter: (y) => B(y, "0,0"),
11479
+ valueFormatter: (y) => P(y, "0,0"),
11480
11480
  sortable: !0,
11481
11481
  hideSortIcons: c,
11482
11482
  type: "number",
@@ -11515,7 +11515,7 @@ const Ut = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
11515
11515
  field: "monthly_payment",
11516
11516
  headerName: d.table_column_amount_due,
11517
11517
  renderHeader: Ut,
11518
- valueFormatter: (y) => typeof y == "number" ? B(y, "0,0") : "---",
11518
+ valueFormatter: (y) => typeof y == "number" ? P(y, "0,0") : "---",
11519
11519
  sortable: !0,
11520
11520
  hideSortIcons: c,
11521
11521
  type: "number",
@@ -11530,7 +11530,7 @@ const Ut = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
11530
11530
  field: "chevron",
11531
11531
  headerName: "",
11532
11532
  renderHeader: void 0,
11533
- renderCell: () => /* @__PURE__ */ t(P, { name: "chevron_right'" }),
11533
+ renderCell: () => /* @__PURE__ */ t(H, { name: "chevron_right'" }),
11534
11534
  sortable: !0,
11535
11535
  hideSortIcons: !0,
11536
11536
  type: "custom",
@@ -11601,7 +11601,7 @@ const Ut = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
11601
11601
  "aria-haspopup": !0,
11602
11602
  "aria-label": "prioritize-debts",
11603
11603
  onClick: i,
11604
- startIcon: /* @__PURE__ */ t(P, { name: o }),
11604
+ startIcon: /* @__PURE__ */ t(H, { name: o }),
11605
11605
  sx: { justifyContent: "start", minWidth: 214, mx: 4 },
11606
11606
  children: e
11607
11607
  }
@@ -11613,7 +11613,7 @@ const Ut = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
11613
11613
  "aria-haspopup": !0,
11614
11614
  "aria-label": "prioritize-debts",
11615
11615
  onClick: i,
11616
- children: /* @__PURE__ */ t(P, { name: o })
11616
+ children: /* @__PURE__ */ t(H, { name: o })
11617
11617
  }
11618
11618
  );
11619
11619
  }, Wm = A(({ buttonEl: e, onClose: n }) => {
@@ -11737,7 +11737,7 @@ const Ut = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
11737
11737
  "aria-label": "extra-paydown",
11738
11738
  onClick: e,
11739
11739
  sx: { justifyContent: "start", minWidth: 100, mx: 4 },
11740
- children: S(s, B(o, "0,0"))
11740
+ children: S(s, P(o, "0,0"))
11741
11741
  }
11742
11742
  );
11743
11743
  }), zm = ({ onBackClick: e, sx: n }) => {
@@ -11752,10 +11752,10 @@ const Ut = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
11752
11752
  }, [x]), g.useEffect(() => {
11753
11753
  E && D().finally();
11754
11754
  }, [E]);
11755
- const U = (Ce) => _(Ce), H = () => {
11756
- const Ce = x.find((_e) => _e.guid === d), ge = L.find((_e) => _e.guid === d);
11757
- Ce && T(Ce), ge && N(ge), a(!0);
11758
- }, j = () => C(W.DEBTS_CLICK_FILTER), me = () => {
11755
+ const U = (Ce) => _(Ce), B = () => {
11756
+ const Ce = x.find((_e) => _e.guid === d), me = L.find((_e) => _e.guid === d);
11757
+ Ce && T(Ce), me && N(me), a(!0);
11758
+ }, j = () => C(W.DEBTS_CLICK_FILTER), he = () => {
11759
11759
  c(!0), C(W.DEBTS_CLICK_SNOWBALL_CTA);
11760
11760
  }, V = () => {
11761
11761
  o(!0), C(W.DEBTS_CLICK_PAYDOWN);
@@ -11789,7 +11789,7 @@ const Ut = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
11789
11789
  debts: L,
11790
11790
  height: h ? 250 : void 0,
11791
11791
  hoveredDebtGuid: d,
11792
- onClickArea: H,
11792
+ onClickArea: B,
11793
11793
  onHoverArea: U,
11794
11794
  sx: { mr: h ? "4px" : "-48px" }
11795
11795
  }
@@ -11798,7 +11798,7 @@ const Ut = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
11798
11798
  Qg,
11799
11799
  {
11800
11800
  debts: L,
11801
- onClickCta: me,
11801
+ onClickCta: he,
11802
11802
  sx: { mb: h ? "0px" : "64px" }
11803
11803
  }
11804
11804
  )
@@ -11810,7 +11810,7 @@ const Ut = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
11810
11810
  {
11811
11811
  debts: L,
11812
11812
  hoveredDebtGuid: d,
11813
- onClickRow: H,
11813
+ onClickRow: B,
11814
11814
  onHoverRow: U
11815
11815
  }
11816
11816
  ) })
@@ -11916,7 +11916,7 @@ function Zm(e, n) {
11916
11916
  style: "percent",
11917
11917
  minimumFractionDigits: 0,
11918
11918
  maximumFractionDigits: 0
11919
- }, c = n.is_complete ? n.completed_at : n.projected_to_complete_at, d = c ? Me(c) : /* @__PURE__ */ new Date(), _ = S(
11919
+ }, c = n.is_complete ? n.completed_at : n.projected_to_complete_at, d = c ? ke(c) : /* @__PURE__ */ new Date(), _ = S(
11920
11920
  e.goal_percentage,
11921
11921
  Ca(a, s)
11922
11922
  ), u = S(
@@ -11993,10 +11993,10 @@ const Jm = (e, n) => {
11993
11993
  default:
11994
11994
  return S(n.zero_state_ongoing, "retirement");
11995
11995
  }
11996
- }, ep = (e, n) => n ? B(e, e < 1e3 ? "0" : "0.00a").replace(
11996
+ }, ep = (e, n) => n ? P(e, e < 1e3 ? "0" : "0.00a").replace(
11997
11997
  /(\d+)(?:\.0+|(\.\d*?[1-9])0*)([a-zA-Z]* ?\$?)/g,
11998
11998
  "$1$2$3"
11999
- ) : B(e, "0,0.00"), Nc = A(
11999
+ ) : P(e, "0,0.00"), Nc = A(
12000
12000
  ({ goal: e, isInDrawer: n = !1, onClick: i }) => {
12001
12001
  const { goals: a } = I(), { isMobile: r, isTablet: o } = De(), s = r || o, {
12002
12002
  backgroundColor: c,
@@ -12016,7 +12016,7 @@ const Jm = (e, n) => {
12016
12016
  wn,
12017
12017
  {
12018
12018
  avatar: /* @__PURE__ */ t(Jt, { sx: { bgcolor: c, color: d, height: 48, width: 48 }, variant: "rounded", children: f }),
12019
- subheader: /* @__PURE__ */ t(p, { variant: n || s ? "H3" : "H2", children: `${B(e.current_amount, s ? "0,0" : "0,0.00")} / ${ep(
12019
+ subheader: /* @__PURE__ */ t(p, { variant: n || s ? "H3" : "H2", children: `${P(e.current_amount, s ? "0,0" : "0,0.00")} / ${ep(
12020
12020
  m,
12021
12021
  s
12022
12022
  )}` }),
@@ -12050,7 +12050,7 @@ const Jm = (e, n) => {
12050
12050
  onCancel: () => c(o),
12051
12051
  onSave: d,
12052
12052
  primaryText: n.contribution_label,
12053
- secondaryText: B(o, "0,0.00"),
12053
+ secondaryText: P(o, "0,0.00"),
12054
12054
  children: /* @__PURE__ */ t(
12055
12055
  en,
12056
12056
  {
@@ -12081,7 +12081,7 @@ const Jm = (e, n) => {
12081
12081
  /* @__PURE__ */ t(p, { variant: "XSmall", children: S(
12082
12082
  n.goal_projection,
12083
12083
  ie(
12084
- Me(f.projected_to_complete_at || 0),
12084
+ ke(f.projected_to_complete_at || 0),
12085
12085
  te.MONTH_SHORT_YEAR
12086
12086
  )
12087
12087
  ) })
@@ -12095,7 +12095,7 @@ const Jm = (e, n) => {
12095
12095
  minWidth: 140,
12096
12096
  renderCell: (C) => {
12097
12097
  const f = C.row;
12098
- return /* @__PURE__ */ t(p, { bold: !0, sx: { mr: 12 }, variant: "Body", children: B(f.amount, "0,0.00") });
12098
+ return /* @__PURE__ */ t(p, { bold: !0, sx: { mr: 12 }, variant: "Body", children: P(f.amount, "0,0.00") });
12099
12099
  },
12100
12100
  sortable: !1
12101
12101
  }
@@ -12184,12 +12184,12 @@ const Jm = (e, n) => {
12184
12184
  /* @__PURE__ */ t(p, { variant: "XSmall", children: S(
12185
12185
  i.goal_projection,
12186
12186
  ie(
12187
- Me(e.projected_to_complete_at || 0),
12187
+ ke(e.projected_to_complete_at || 0),
12188
12188
  te.MONTH_SHORT_YEAR
12189
12189
  )
12190
12190
  ) })
12191
12191
  ] }),
12192
- /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: B(e.amount, "0,0.00") })
12192
+ /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: P(e.amount, "0,0.00") })
12193
12193
  ] }) })
12194
12194
  ] }) });
12195
12195
  }, ap = ({ goal: e }) => {
@@ -12202,12 +12202,12 @@ const Jm = (e, n) => {
12202
12202
  /* @__PURE__ */ t(p, { variant: "XSmall", children: S(
12203
12203
  n.completed_label,
12204
12204
  ie(
12205
- Me(e.completed_at || 0),
12205
+ ke(e.completed_at || 0),
12206
12206
  te.MONTH_SHORT_YEAR
12207
12207
  )
12208
12208
  ) })
12209
12209
  ] }),
12210
- /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: B(e.amount, "0,0.00") })
12210
+ /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: P(e.amount, "0,0.00") })
12211
12211
  ] }) })
12212
12212
  ] }) }, e.guid);
12213
12213
  }, rp = ({ trackType: e }) => {
@@ -12325,10 +12325,10 @@ const Jm = (e, n) => {
12325
12325
  ) }),
12326
12326
  d.map((u) => /* @__PURE__ */ t(Gt, { elevation: 2, sx: { borderRadius: 2 }, children: /* @__PURE__ */ t(vs, { onClick: () => o(u), children: /* @__PURE__ */ t(Bt, { sx: { ":last-child": { pb: 16 } }, children: /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
12327
12327
  /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 6, children: [
12328
- /* @__PURE__ */ t(P, { color: "success", fill: !0, name: "check_circle", size: 20 }),
12328
+ /* @__PURE__ */ t(H, { color: "success", fill: !0, name: "check_circle", size: 20 }),
12329
12329
  /* @__PURE__ */ t(p, { color: "text.secondary", variant: "Body", children: u.name })
12330
12330
  ] }),
12331
- /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: B(u.amount, "0,0.00") })
12331
+ /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: P(u.amount, "0,0.00") })
12332
12332
  ] }) }) }) }, u.guid))
12333
12333
  ] })
12334
12334
  ] });
@@ -12400,7 +12400,7 @@ const Jm = (e, n) => {
12400
12400
  re,
12401
12401
  {
12402
12402
  primary: u.name || u.feed_name,
12403
- secondary: B(u.balance || 0, "0,0.00")
12403
+ secondary: P(u.balance || 0, "0,0.00")
12404
12404
  }
12405
12405
  ),
12406
12406
  /* @__PURE__ */ t(zi, { checked: c.some((m) => m.guid === u.guid) })
@@ -12478,7 +12478,7 @@ const Jm = (e, n) => {
12478
12478
  re,
12479
12479
  {
12480
12480
  primary: e.name || e.feed_name,
12481
- secondary: B(e.balance || 0, "0,0.00")
12481
+ secondary: P(e.balance || 0, "0,0.00")
12482
12482
  }
12483
12483
  ),
12484
12484
  /* @__PURE__ */ t(Tt, {})
@@ -12506,7 +12506,7 @@ const Jm = (e, n) => {
12506
12506
  onCancel: h,
12507
12507
  onSave: u,
12508
12508
  primaryText: n.details_amount_to_save,
12509
- secondaryText: B(e.amount, "0,0"),
12509
+ secondaryText: P(e.amount, "0,0"),
12510
12510
  zeroStateText: c && e.amount === 0 ? n.add_amount : void 0,
12511
12511
  children: /* @__PURE__ */ t(
12512
12512
  en,
@@ -12560,7 +12560,7 @@ const Jm = (e, n) => {
12560
12560
  re,
12561
12561
  {
12562
12562
  primary: m?.name || m?.feed_name,
12563
- secondary: B(m?.balance || 0, "0,0.00")
12563
+ secondary: P(m?.balance || 0, "0,0.00")
12564
12564
  }
12565
12565
  ),
12566
12566
  /* @__PURE__ */ t(Tt, {})
@@ -12578,7 +12578,7 @@ const Jm = (e, n) => {
12578
12578
  re,
12579
12579
  {
12580
12580
  primary: m?.name || m?.feed_name,
12581
- secondary: B(m?.balance || 0, "0,0.00")
12581
+ secondary: P(m?.balance || 0, "0,0.00")
12582
12582
  }
12583
12583
  ),
12584
12584
  /* @__PURE__ */ t(Tt, {})
@@ -12659,7 +12659,7 @@ const Jm = (e, n) => {
12659
12659
  }
12660
12660
  );
12661
12661
  }, _p = A(({ goal: e }) => {
12662
- const { goals: n } = I(), { user: i, updateUser: a } = dn(), { setAlert: r } = ot(), [o, s] = g.useState(Me(i.birthday ?? 0)), [c, d] = g.useState(null), _ = e.is_complete, u = async () => {
12662
+ const { goals: n } = I(), { user: i, updateUser: a } = dn(), { setAlert: r } = ot(), [o, s] = g.useState(ke(i.birthday ?? 0)), [c, d] = g.useState(null), _ = e.is_complete, u = async () => {
12663
12663
  o && ur(o) && (await a({ ...i, birthday: Oe(o) }), r(n.alert_goal_updated_birthday));
12664
12664
  };
12665
12665
  return /* @__PURE__ */ t(
@@ -12670,7 +12670,7 @@ const Jm = (e, n) => {
12670
12670
  label: n.details_birthday,
12671
12671
  onSave: u,
12672
12672
  primaryText: n.details_birthday,
12673
- secondaryText: `${ie(Me(i.birthday ?? 0), te.MONTH_DAY_YEAR)}`,
12673
+ secondaryText: `${ie(ke(i.birthday ?? 0), te.MONTH_DAY_YEAR)}`,
12674
12674
  zeroStateText: !e.guid && !i.birthday ? n.add_birthday : void 0,
12675
12675
  children: /* @__PURE__ */ t(Nn, { dateAdapter: gn, children: /* @__PURE__ */ t(
12676
12676
  da,
@@ -12836,24 +12836,24 @@ const Jm = (e, n) => {
12836
12836
  }), SE = A(({ onBackClick: e, sx: n }) => {
12837
12837
  const { onEvent: i } = z(), { isMobile: a } = De(), { visibleAccounts: r } = Re(), { isCopyLoaded: o, isInitialized: s, setSelectedAccounts: c } = ce(), { goals: d, common: _ } = I(), { alert: u, goals: h, goalsLoaded: m, loadGoals: C, monthlyCashFlowProfile: f, setAlert: E, retirmentGoals: y } = ot(), [T, w] = g.useState(0), [N, x] = g.useState(!1), R = f?.amount_allocated_for_savings_goals || 0, D = f?.amount_allocated_for_debt_goals || 0, $ = f?.amount_allocated_for_retirement_goals || 0, O = o ? S(
12838
12838
  a ? d.tab_subtitle_mobile : d.tab_subtitle,
12839
- B(R, "0,0")
12839
+ P(R, "0,0")
12840
12840
  ) : "", L = o ? S(
12841
12841
  a ? d.tab_subtitle_mobile : d.tab_subtitle,
12842
- B(D, "0,0")
12842
+ P(D, "0,0")
12843
12843
  ) : "", U = o ? S(
12844
12844
  a ? d.tab_subtitle_mobile : d.tab_subtitle,
12845
- B($, "0,0")
12845
+ P($, "0,0")
12846
12846
  ) : "";
12847
12847
  g.useEffect(() => {
12848
12848
  c(r), i(W.GOALS_VIEW);
12849
12849
  }, []), g.useEffect(() => {
12850
12850
  s && C().finally();
12851
12851
  }, [s, R, D, $]);
12852
- const H = () => {
12852
+ const B = () => {
12853
12853
  i(W.GOALS_CLICK_FILTER);
12854
12854
  }, j = () => {
12855
12855
  x(!0), i(W.GOALS_CLICK_ADD);
12856
- }, me = (Ce) => {
12856
+ }, he = (Ce) => {
12857
12857
  x(!1), Ce === K.SAVINGS_TRACK ? w(0) : Ce === K.DEBT_TRACK ? w(1) : Ce === K.RETIREMENT_TRACK && w(2);
12858
12858
  }, V = g.useMemo(
12859
12859
  () => m && (h.length === 0 || h.every(({ track_type: Ce }) => !Ce) && y.length === 0),
@@ -12870,7 +12870,7 @@ const Jm = (e, n) => {
12870
12870
  onClick: j
12871
12871
  }
12872
12872
  ],
12873
- onAccountsFilterClick: H,
12873
+ onAccountsFilterClick: B,
12874
12874
  onBackClick: e,
12875
12875
  sx: n,
12876
12876
  title: d.title,
@@ -12879,13 +12879,13 @@ const Jm = (e, n) => {
12879
12879
  /* @__PURE__ */ l(
12880
12880
  Lt,
12881
12881
  {
12882
- onChange: (Ce, ge) => w(ge),
12882
+ onChange: (Ce, me) => w(me),
12883
12883
  sx: { bgcolor: "background.paper" },
12884
12884
  value: V ? !1 : T,
12885
12885
  variant: "fullWidth",
12886
12886
  children: [
12887
12887
  /* @__PURE__ */ t(
12888
- ke,
12888
+ Me,
12889
12889
  {
12890
12890
  disabled: V,
12891
12891
  label: /* @__PURE__ */ t(Wa, { subtitle: O, title: d.tab_saving_title }),
@@ -12893,7 +12893,7 @@ const Jm = (e, n) => {
12893
12893
  }
12894
12894
  ),
12895
12895
  /* @__PURE__ */ t(
12896
- ke,
12896
+ Me,
12897
12897
  {
12898
12898
  disabled: V,
12899
12899
  label: /* @__PURE__ */ t(Wa, { subtitle: L, title: d.tab_debt_title }),
@@ -12901,7 +12901,7 @@ const Jm = (e, n) => {
12901
12901
  }
12902
12902
  ),
12903
12903
  /* @__PURE__ */ t(
12904
- ke,
12904
+ Me,
12905
12905
  {
12906
12906
  disabled: V,
12907
12907
  label: /* @__PURE__ */ t(Wa, { subtitle: U, title: d.tab_retirement_title }),
@@ -12932,7 +12932,7 @@ const Jm = (e, n) => {
12932
12932
  T === 2 && /* @__PURE__ */ t(Ua, { onAddGoals: j, trackType: K.RETIREMENT_TRACK })
12933
12933
  ] })
12934
12934
  ] }),
12935
- /* @__PURE__ */ t(mp, { onClose: me }),
12935
+ /* @__PURE__ */ t(mp, { onClose: he }),
12936
12936
  /* @__PURE__ */ t(
12937
12937
  ne,
12938
12938
  {
@@ -12940,7 +12940,7 @@ const Jm = (e, n) => {
12940
12940
  isOpen: N,
12941
12941
  onClose: () => x(!1),
12942
12942
  title: d.add_goal_title,
12943
- children: /* @__PURE__ */ t(sp, { onClose: me })
12943
+ children: /* @__PURE__ */ t(sp, { onClose: he })
12944
12944
  }
12945
12945
  ),
12946
12946
  /* @__PURE__ */ t(
@@ -13524,7 +13524,7 @@ const Oc = 13, xp = (e, n) => e.filter((i) => {
13524
13524
  return e[e.length - 1];
13525
13525
  }, wp = (e, n) => e.year_month - n.year_month, Np = () => Array.from({ length: Oc }, (e, n) => Math.floor(Fe(jt(/* @__PURE__ */ new Date(), n)).getTime() / 1e3)).sort(), Dp = (e, n, i) => !e.length || !n.length ? [] : Np().reduceRight((r, o) => {
13526
13526
  const s = n.filter(
13527
- ({ year_month: u }) => u === parseInt(vt(Me(o), "yyyyMM"))
13527
+ ({ year_month: u }) => u === parseInt(vt(ke(o), "yyyyMM"))
13528
13528
  ), c = e.map((u) => {
13529
13529
  const h = s.find((C) => C.account_guid === u.guid), m = {
13530
13530
  change: 0,
@@ -13664,7 +13664,7 @@ const Mp = ({
13664
13664
  selectedData: o
13665
13665
  }) => {
13666
13666
  const { isMobile: s } = De(), { availableWidth: c } = $n(), d = at(), _ = c - 320, u = e.map((f) => ({
13667
- x: vt(Me(f.x), "MMM"),
13667
+ x: vt(ke(f.x), "MMM"),
13668
13668
  y: f.y
13669
13669
  })), h = o ? { index: e.findIndex((f) => f.x === o.x) } : void 0, m = n ? { index: e.findIndex((f) => f.x === n.x) } : void 0, C = (f) => ({
13670
13670
  fill: f === h?.index ? d.palette.success.main : "",
@@ -13788,7 +13788,7 @@ const Mp = ({
13788
13788
  let o = r.palette.secondary.main, s = r.palette.secondary.main, c = "trending_flat";
13789
13789
  return a.change < 0 ? c = "trending_down" : a.change > 0 && (o = r.palette.success.main, s = r.palette.success.main, c = "trending_up"), /* @__PURE__ */ l(ye, { alignItems: "center", direction: "row", spacing: 4, children: [
13790
13790
  /* @__PURE__ */ t(
13791
- P,
13791
+ H,
13792
13792
  {
13793
13793
  name: c,
13794
13794
  size: i,
@@ -13851,14 +13851,14 @@ const Mp = ({
13851
13851
  const [a, r] = g.useState(!1);
13852
13852
  return /* @__PURE__ */ l(Z, { children: [
13853
13853
  /* @__PURE__ */ t(q, { sx: (o) => ({ backgroundColor: o.palette.background.paper }), children: /* @__PURE__ */ l(de, { onClick: () => r(!a), children: [
13854
- i && /* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t(P, { name: i, size: 24, sx: { mr: 12 } }) }),
13854
+ i && /* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t(H, { name: i, size: 24, sx: { mr: 12 } }) }),
13855
13855
  /* @__PURE__ */ t(
13856
13856
  re,
13857
13857
  {
13858
13858
  primary: /* @__PURE__ */ t(p, { sx: { fontWeight: 700 }, variant: "Body", children: n })
13859
13859
  }
13860
13860
  ),
13861
- /* @__PURE__ */ t(Ct, { children: a ? /* @__PURE__ */ t(P, { name: "expand_less", size: 24 }) : /* @__PURE__ */ t(P, { name: "expand_more", size: 24 }) })
13861
+ /* @__PURE__ */ t(Ct, { children: a ? /* @__PURE__ */ t(H, { name: "expand_less", size: 24 }) : /* @__PURE__ */ t(H, { name: "expand_more", size: 24 }) })
13862
13862
  ] }) }),
13863
13863
  /* @__PURE__ */ t(G, {}),
13864
13864
  /* @__PURE__ */ t(ha, { in: a, timeout: "auto", unmountOnExit: !0, children: e.map((o, s) => /* @__PURE__ */ l(ae, { children: [
@@ -14019,7 +14019,7 @@ const Mp = ({
14019
14019
  selectedData: f,
14020
14020
  setHoveredData: E,
14021
14021
  setSelectedData: y
14022
- } = Du(), { isMobile: T } = De(), { onEvent: w } = z(), [N, x] = g.useState(!1), [R, D] = g.useState(6), [$, O] = g.useState(!1), [L, U] = g.useState(!1), [H, j] = g.useState(!1), me = async () => {
14022
+ } = Du(), { isMobile: T } = De(), { onEvent: w } = z(), [N, x] = g.useState(!1), [R, D] = g.useState(6), [$, O] = g.useState(!1), [L, U] = g.useState(!1), [B, j] = g.useState(!1), he = async () => {
14023
14023
  await m(a), await h(R), x(!0);
14024
14024
  };
14025
14025
  g.useEffect(() => {
@@ -14027,7 +14027,7 @@ const Mp = ({
14027
14027
  }, []), g.useEffect(() => {
14028
14028
  r(c);
14029
14029
  }, [c]), g.useEffect(() => {
14030
- i && me().finally();
14030
+ i && he().finally();
14031
14031
  }, [i, a]), g.useEffect(() => {
14032
14032
  w(W.NET_WORTH_WIDGET_CLICK_TIMEFRAME, { time_period: R + "M" }), h(R).finally();
14033
14033
  }, [R]);
@@ -14035,20 +14035,20 @@ const Mp = ({
14035
14035
  y(Te), je.currentTarget instanceof HTMLDivElement && O(!0);
14036
14036
  }, Ce = (je) => {
14037
14037
  E(je);
14038
- }, ge = () => {
14038
+ }, me = () => {
14039
14039
  E(null);
14040
14040
  }, _e = () => {
14041
14041
  w(W.NET_WORTH_WIDGET_CLICK_ASSETS_LIABILITIES), U(!0);
14042
14042
  }, He = async (je) => {
14043
14043
  const Te = je[0], _t = je[1];
14044
14044
  Te && _t && D(dd(_t, Te));
14045
- }, he = {
14045
+ }, ge = {
14046
14046
  chartData: C,
14047
14047
  hoveredData: u,
14048
14048
  onButtonClick: _e,
14049
14049
  onDataClick: V,
14050
14050
  onMouseEnter: Ce,
14051
- onMouseLeave: ge,
14051
+ onMouseLeave: me,
14052
14052
  selectedData: f
14053
14053
  }, Ke = () => {
14054
14054
  j(!0), w(W.ACCOUNTS_CLICK_CONNECT);
@@ -14088,8 +14088,8 @@ const Mp = ({
14088
14088
  direction: T ? "column" : "row",
14089
14089
  spacing: T ? 0 : 48,
14090
14090
  children: [
14091
- /* @__PURE__ */ t(kp, { ...he }),
14092
- /* @__PURE__ */ t(Hp, { ...he })
14091
+ /* @__PURE__ */ t(kp, { ...ge }),
14092
+ /* @__PURE__ */ t(Hp, { ...ge })
14093
14093
  ]
14094
14094
  }
14095
14095
  )
@@ -14113,7 +14113,7 @@ const Mp = ({
14113
14113
  wa,
14114
14114
  {
14115
14115
  onClose: () => j(!1),
14116
- showConnectionsWidget: H,
14116
+ showConnectionsWidget: B,
14117
14117
  title: o.manage_connections
14118
14118
  }
14119
14119
  ),
@@ -16997,7 +16997,7 @@ const l1 = ({
16997
16997
  expandIcon: /* @__PURE__ */ t(la, { sx: { color: "text.primary" } }),
16998
16998
  sx: { height: 64, p: "14px 24px" },
16999
16999
  children: /* @__PURE__ */ l(b, { sx: { alignItems: "center", flexDirection: "row", gap: 12 }, children: [
17000
- /* @__PURE__ */ t(P, { name: E, size: 24 }),
17000
+ /* @__PURE__ */ t(H, { name: E, size: 24 }),
17001
17001
  /* @__PURE__ */ t(p, { variant: "Body", children: T })
17002
17002
  ] })
17003
17003
  }
@@ -17146,7 +17146,7 @@ const l1 = ({
17146
17146
  children: [
17147
17147
  /* @__PURE__ */ l(M, { children: [
17148
17148
  /* @__PURE__ */ l(b, { gap: 4, sx: { alignItems: "center", flexDirection: "row" }, children: [
17149
- n && /* @__PURE__ */ t(P, { name: "help", size: 20, sx: { color: "text.primary" } }),
17149
+ n && /* @__PURE__ */ t(H, { name: "help", size: 20, sx: { color: "text.primary" } }),
17150
17150
  /* @__PURE__ */ t(p, { color: "text.primary", variant: "H3", children: o })
17151
17151
  ] }),
17152
17152
  i && /* @__PURE__ */ t(p, { color: "text.primary", variant: "H3", children: i })
@@ -17262,7 +17262,7 @@ const l1 = ({
17262
17262
  expandIcon: /* @__PURE__ */ t(la, { sx: { color: "text.primary" } }),
17263
17263
  sx: { p: "14px 24px", height: 64 },
17264
17264
  children: /* @__PURE__ */ l(b, { sx: { alignItems: "center", flexDirection: "row", gap: 12 }, children: [
17265
- /* @__PURE__ */ t(P, { name: r, size: 24 }),
17265
+ /* @__PURE__ */ t(H, { name: r, size: 24 }),
17266
17266
  /* @__PURE__ */ t(p, { variant: "Body", children: s })
17267
17267
  ] })
17268
17268
  }
@@ -17555,7 +17555,7 @@ const l1 = ({
17555
17555
  }) => {
17556
17556
  const { common: o } = I();
17557
17557
  return /* @__PURE__ */ t(ne, { isOpen: i, onClose: r, title: e.request_support, children: /* @__PURE__ */ l(M, { sx: { px: 24 }, children: [
17558
- /* @__PURE__ */ t(b, { sx: { alignItems: "center", pb: 24, pt: 80 }, children: /* @__PURE__ */ t(P, { color: "success", fill: !0, name: "check_circle", size: 64 }) }),
17558
+ /* @__PURE__ */ t(b, { sx: { alignItems: "center", pb: 24, pt: 80 }, children: /* @__PURE__ */ t(H, { color: "success", fill: !0, name: "check_circle", size: 64 }) }),
17559
17559
  /* @__PURE__ */ l(b, { sx: { alignItems: "center", gap: 16, pb: 48 }, children: [
17560
17560
  /* @__PURE__ */ t(Hn, { children: e.request_support_success }),
17561
17561
  /* @__PURE__ */ t(Le, { align: "center", variant: "Body", children: e.request_support_submit_success_message }),
@@ -17893,8 +17893,15 @@ const l1 = ({
17893
17893
  )
17894
17894
  ] });
17895
17895
  }), Y1 = () => {
17896
- const e = at(), { common: n, settings: i } = I(), { isDesktop: a, isMobile: r, isSmallMobile: o, isTablet: s } = De(), { config: c } = fa(), { updateUser: d } = Ht(), { user: _ } = dn(), [u, h] = g.useState(_.first_name), [m, C] = g.useState(_.last_name), [f, E] = g.useState(_.email), [y, T] = g.useState(_.phone), [w, N] = g.useState(_.postal_code), [x, R] = g.useState(_.credit_score), [D, $] = g.useState(Me(_.birthday ?? 0)), O = f && !_.email_is_verified, L = y && !_.phone_is_verified, U = async () => {
17897
- const H = {
17896
+ const e = at(), { common: n, settings: i } = I(), { isDesktop: a, isMobile: r, isSmallMobile: o, isTablet: s } = De(), { config: c } = fa(), { updateUser: d } = Ht(), { user: _ } = dn(), [u, h] = g.useState(_.first_name), [m, C] = g.useState(_.last_name), [f, E] = g.useState(_.email), [y, T] = g.useState(_.phone), [w, N] = g.useState(_.postal_code), [x, R] = g.useState(_.credit_score), [D, $] = g.useState(null), O = f && !_.email_is_verified, L = y && !_.phone_is_verified;
17897
+ g.useEffect(() => {
17898
+ if (_.birthday) {
17899
+ const B = new Date(_.birthday * 1e3), j = B.getUTCFullYear(), he = B.getUTCMonth(), V = B.getUTCDate();
17900
+ $(new Date(j, he, V));
17901
+ }
17902
+ }, [_]);
17903
+ const U = async () => {
17904
+ const B = {
17898
17905
  ..._,
17899
17906
  first_name: u,
17900
17907
  last_name: m,
@@ -17904,7 +17911,7 @@ const l1 = ({
17904
17911
  postal_code: w,
17905
17912
  credit_score: x
17906
17913
  };
17907
- await d(H);
17914
+ await d(B);
17908
17915
  };
17909
17916
  return /* @__PURE__ */ l(
17910
17917
  M,
@@ -17933,7 +17940,7 @@ const l1 = ({
17933
17940
  {
17934
17941
  defaultValue: u,
17935
17942
  label: i.first_name,
17936
- onChange: (H) => h(H.target.value)
17943
+ onChange: (B) => h(B.target.value)
17937
17944
  }
17938
17945
  ),
17939
17946
  /* @__PURE__ */ t(
@@ -17941,7 +17948,7 @@ const l1 = ({
17941
17948
  {
17942
17949
  defaultValue: m,
17943
17950
  label: i.last_name,
17944
- onChange: (H) => C(H.target.value)
17951
+ onChange: (B) => C(B.target.value)
17945
17952
  }
17946
17953
  )
17947
17954
  ]
@@ -17954,7 +17961,7 @@ const l1 = ({
17954
17961
  {
17955
17962
  defaultValue: f,
17956
17963
  label: i.email_address,
17957
- onChange: (H) => E(H.target.value)
17964
+ onChange: (B) => E(B.target.value)
17958
17965
  }
17959
17966
  ),
17960
17967
  O && /* @__PURE__ */ t(V1, {})
@@ -17965,7 +17972,7 @@ const l1 = ({
17965
17972
  {
17966
17973
  defaultValue: y,
17967
17974
  label: i.mobile_number,
17968
- onChange: (H) => T(H.target.value),
17975
+ onChange: (B) => T(B.target.value),
17969
17976
  type: "tel"
17970
17977
  }
17971
17978
  ),
@@ -18007,7 +18014,7 @@ const l1 = ({
18007
18014
  {
18008
18015
  defaultValue: w,
18009
18016
  label: i.zip_code,
18010
- onChange: (H) => N(H.target.value)
18017
+ onChange: (B) => N(B.target.value)
18011
18018
  }
18012
18019
  )
18013
18020
  ] }),
@@ -18017,7 +18024,7 @@ const l1 = ({
18017
18024
  {
18018
18025
  defaultValue: x,
18019
18026
  label: i.credit_score,
18020
- onChange: (H) => R(Number(H.target.value)),
18027
+ onChange: (B) => R(Number(B.target.value)),
18021
18028
  sx: { mb: 44 }
18022
18029
  }
18023
18030
  ),
@@ -18046,7 +18053,7 @@ const X1 = ({
18046
18053
  "aria-label": r.mobile_devices_edit_label,
18047
18054
  color: "secondary",
18048
18055
  onClick: () => n(c.row),
18049
- children: /* @__PURE__ */ t(P, { name: "edit" })
18056
+ children: /* @__PURE__ */ t(H, { name: "edit" })
18050
18057
  }
18051
18058
  )
18052
18059
  ] }),
@@ -18067,7 +18074,7 @@ const X1 = ({
18067
18074
  field: "created_at",
18068
18075
  headerName: r.mobile_devices_column_added,
18069
18076
  renderHeader: Ut,
18070
- valueFormatter: (c) => Is(Me(c), { addSuffix: !0 }),
18077
+ valueFormatter: (c) => Is(ke(c), { addSuffix: !0 }),
18071
18078
  sortable: !0,
18072
18079
  hideSortIcons: !1,
18073
18080
  flex: 1,
@@ -18083,7 +18090,7 @@ const X1 = ({
18083
18090
  "aria-label": r.mobile_devices_delete_label,
18084
18091
  color: "secondary",
18085
18092
  onClick: () => i(c.row),
18086
- children: /* @__PURE__ */ t(P, { name: "delete" })
18093
+ children: /* @__PURE__ */ t(H, { name: "delete" })
18087
18094
  }
18088
18095
  ) }),
18089
18096
  sortable: !1,
@@ -18162,7 +18169,7 @@ const X1 = ({
18162
18169
  /* @__PURE__ */ t(
18163
18170
  Ri,
18164
18171
  {
18165
- expandIcon: /* @__PURE__ */ t(P, { color: "secondary", name: "keyboard_arrow_down", size: 24 }),
18172
+ expandIcon: /* @__PURE__ */ t(H, { color: "secondary", name: "keyboard_arrow_down", size: 24 }),
18166
18173
  sx: {
18167
18174
  padding: "14px 24px",
18168
18175
  borderBottom: "1px solid",
@@ -18171,7 +18178,7 @@ const X1 = ({
18171
18178
  children: /* @__PURE__ */ l(b, { gap: 4, children: [
18172
18179
  /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: d.name }),
18173
18180
  /* @__PURE__ */ t(p, { color: a.palette.text.secondary, variant: "Small", children: `${d.make} ${d.model}` }),
18174
- /* @__PURE__ */ t(p, { color: a.palette.text.secondary, variant: "Small", children: Is(Me(d.created_at), { addSuffix: !0 }) })
18181
+ /* @__PURE__ */ t(p, { color: a.palette.text.secondary, variant: "Small", children: Is(ke(d.created_at), { addSuffix: !0 }) })
18175
18182
  ] })
18176
18183
  }
18177
18184
  ),
@@ -18195,7 +18202,7 @@ const X1 = ({
18195
18202
  borderColor: a.palette.border.light
18196
18203
  },
18197
18204
  children: [
18198
- /* @__PURE__ */ t(Ye, { "aria-label": r.mobile_devices_edit_label, color: "secondary", children: /* @__PURE__ */ t(P, { name: "edit" }) }),
18205
+ /* @__PURE__ */ t(Ye, { "aria-label": r.mobile_devices_edit_label, color: "secondary", children: /* @__PURE__ */ t(H, { name: "edit" }) }),
18199
18206
  /* @__PURE__ */ t(p, { variant: "Body", children: r.mobile_devices_edit_label })
18200
18207
  ]
18201
18208
  }
@@ -18213,7 +18220,7 @@ const X1 = ({
18213
18220
  cursor: "pointer"
18214
18221
  },
18215
18222
  children: [
18216
- /* @__PURE__ */ t(Ye, { "aria-label": r.mobile_devices_delete_label, color: "secondary", children: /* @__PURE__ */ t(P, { name: "delete" }) }),
18223
+ /* @__PURE__ */ t(Ye, { "aria-label": r.mobile_devices_delete_label, color: "secondary", children: /* @__PURE__ */ t(H, { name: "delete" }) }),
18217
18224
  /* @__PURE__ */ t(p, { variant: "Body", children: r.mobile_devices_delete_label })
18218
18225
  ]
18219
18226
  }
@@ -18643,7 +18650,7 @@ const X1 = ({
18643
18650
  ), m = n.account?.name || n.account?.feed_name || "", C = n.account?.day_payment_is_due ? S(
18644
18651
  a.notification_debt_payment_date,
18645
18652
  Ws(n.account?.day_payment_is_due)
18646
- ) : a.notification_debt_payment_zero_state, f = o ? C : B(n.threshold ?? 0, "0,0"), E = async () => {
18653
+ ) : a.notification_debt_payment_zero_state, f = o ? C : P(n.threshold ?? 0, "0,0"), E = async () => {
18647
18654
  o && n.account ? await r({ ...n.account, day_payment_is_due: u }) : e({ ...n, threshold: d });
18648
18655
  };
18649
18656
  return /* @__PURE__ */ l(b, { children: [
@@ -18857,7 +18864,7 @@ const X1 = ({
18857
18864
  variant: "scrollable",
18858
18865
  children: [
18859
18866
  _ && /* @__PURE__ */ t(
18860
- ke,
18867
+ Me,
18861
18868
  {
18862
18869
  label: i.profile_label,
18863
18870
  sx: { "&.Mui-selected": { color: "primary.light" } },
@@ -18865,7 +18872,7 @@ const X1 = ({
18865
18872
  }
18866
18873
  ),
18867
18874
  u && /* @__PURE__ */ t(
18868
- ke,
18875
+ Me,
18869
18876
  {
18870
18877
  label: i.mobile_devices_label,
18871
18878
  sx: { "&.Mui-selected": { color: "primary.light" } },
@@ -18873,7 +18880,7 @@ const X1 = ({
18873
18880
  }
18874
18881
  ),
18875
18882
  h && /* @__PURE__ */ t(
18876
- ke,
18883
+ Me,
18877
18884
  {
18878
18885
  label: i.notifications_label,
18879
18886
  sx: { "&.Mui-selected": { color: "primary.light" } },
@@ -18881,7 +18888,7 @@ const X1 = ({
18881
18888
  }
18882
18889
  ),
18883
18890
  m && /* @__PURE__ */ t(
18884
- ke,
18891
+ Me,
18885
18892
  {
18886
18893
  label: i.transaction_rules_label,
18887
18894
  sx: { "&.Mui-selected": { color: "primary.light" } },
@@ -18889,7 +18896,7 @@ const X1 = ({
18889
18896
  }
18890
18897
  ),
18891
18898
  C && /* @__PURE__ */ t(
18892
- ke,
18899
+ Me,
18893
18900
  {
18894
18901
  label: i.help_label,
18895
18902
  sx: { "&.Mui-selected": { color: "primary.light" } },
@@ -19123,7 +19130,7 @@ const lC = (e) => {
19123
19130
  const d = e.transactions.find(
19124
19131
  (_) => _.repeating_transaction_guid === e.guid && _.date > Oe(ut(c.expectedDate, 5)) && _.date < Oe(Mt(c.expectedDate, 5))
19125
19132
  );
19126
- d ? (c.transaction = d, c.status = it.Paid, c.occurredOnDate = Me(d.date)) : ve(c.expectedDate, ut(le(), 3)) && (c.status = it.Missed);
19133
+ d ? (c.transaction = d, c.status = it.Paid, c.occurredOnDate = ke(d.date)) : ve(c.expectedDate, ut(le(), 3)) && (c.status = it.Missed);
19127
19134
  }
19128
19135
  return n;
19129
19136
  }, uC = (e, n, i) => {
@@ -19625,7 +19632,7 @@ const za = ({
19625
19632
  },
19626
19633
  primaryText: d.is_closed ? h.mark_as_open : h.mark_as_closed,
19627
19634
  secondaryText: d.is_closed ? h.this_will_set_the_closed_account : h.this_will_set_the_account_balance_to_0,
19628
- children: /* @__PURE__ */ t(P, { name: "chevron_right" })
19635
+ children: /* @__PURE__ */ t(H, { name: "chevron_right" })
19629
19636
  }
19630
19637
  ),
19631
19638
  m.length > 0 && /* @__PURE__ */ t(
@@ -19639,7 +19646,7 @@ const za = ({
19639
19646
  },
19640
19647
  primaryText: h.mark_as_duplicate,
19641
19648
  secondaryText: h.if_a_connected_account_is_showing_up_twice,
19642
- children: /* @__PURE__ */ t(P, { name: "chevron_right" })
19649
+ children: /* @__PURE__ */ t(H, { name: "chevron_right" })
19643
19650
  }
19644
19651
  ),
19645
19652
  /* @__PURE__ */ t(
@@ -19842,7 +19849,7 @@ const za = ({
19842
19849
  };
19843
19850
  default: {
19844
19851
  const a = () => {
19845
- const r = e.successfully_aggregated_at ? Me(e.successfully_aggregated_at) : void 0, o = r && ie(r, te.TIME_STAMP_HOUR_MINUTE);
19852
+ const r = e.successfully_aggregated_at ? ke(e.successfully_aggregated_at) : void 0, o = r && ie(r, te.TIME_STAMP_HOUR_MINUTE);
19846
19853
  if (o)
19847
19854
  return hr(r) ? S(n.last_updated_at, n.today, o) : Dd(r) ? S(n.last_updated_at, n.yesterday, o) : S(
19848
19855
  n.last_updated_at,
@@ -19896,7 +19903,7 @@ const za = ({
19896
19903
  ] })
19897
19904
  }
19898
19905
  ),
19899
- /* @__PURE__ */ t(P, { name: "chevron_right" })
19906
+ /* @__PURE__ */ t(H, { name: "chevron_right" })
19900
19907
  ] }) }),
19901
19908
  /* @__PURE__ */ t(G, { sx: { ml: a.is_manual || !a.institution_url ? 0 : 24 } }),
19902
19909
  !a.is_manual && a.institution_url && /* @__PURE__ */ l(Z, { children: [
@@ -19921,7 +19928,7 @@ const za = ({
19921
19928
  }
19922
19929
  ) }),
19923
19930
  /* @__PURE__ */ t(re, { primary: a.name, secondary: a.institution_url }),
19924
- /* @__PURE__ */ t(P, { name: "launch" })
19931
+ /* @__PURE__ */ t(H, { name: "launch" })
19925
19932
  ] }) }),
19926
19933
  /* @__PURE__ */ t(G, {})
19927
19934
  ] }),
@@ -20055,7 +20062,7 @@ const za = ({
20055
20062
  },
20056
20063
  children: [
20057
20064
  f,
20058
- /* @__PURE__ */ t(P, { name: "chevron_right" })
20065
+ /* @__PURE__ */ t(H, { name: "chevron_right" })
20059
20066
  ]
20060
20067
  }
20061
20068
  ) }),
@@ -20171,7 +20178,7 @@ const za = ({
20171
20178
  variant: "fullWidth",
20172
20179
  children: [
20173
20180
  /* @__PURE__ */ t(
20174
- ke,
20181
+ Me,
20175
20182
  {
20176
20183
  "aria-controls": "transaction-details-tabpanel-0",
20177
20184
  id: "transaction-details-tab-0",
@@ -20180,7 +20187,7 @@ const za = ({
20180
20187
  }
20181
20188
  ),
20182
20189
  /* @__PURE__ */ t(
20183
- ke,
20190
+ Me,
20184
20191
  {
20185
20192
  "aria-controls": "account-details-tabpanel-1",
20186
20193
  id: "account-details-tab-1",
@@ -20234,7 +20241,7 @@ const za = ({
20234
20241
  sx: { justifyContent: "space-between", color: "grey.700" },
20235
20242
  children: [
20236
20243
  /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: N }),
20237
- /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: B(w, "0,0.00") })
20244
+ /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: P(w, "0,0.00") })
20238
20245
  ]
20239
20246
  }
20240
20247
  ) }),
@@ -20291,7 +20298,7 @@ const za = ({
20291
20298
  sx: { display: "flex", justifyContent: "space-between" },
20292
20299
  children: [
20293
20300
  /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: i.account_types[y] }),
20294
- /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: B(w, "0,0.00") })
20301
+ /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: P(w, "0,0.00") })
20295
20302
  ]
20296
20303
  }
20297
20304
  ) }),
@@ -21375,7 +21382,7 @@ function hf({ bubble: e, isDraggable: n, onClick: i = () => {
21375
21382
  }
21376
21383
  ),
21377
21384
  /* @__PURE__ */ t(
21378
- P,
21385
+ H,
21379
21386
  {
21380
21387
  className: `icon-${c}`,
21381
21388
  component: "text",
@@ -21583,7 +21590,7 @@ const gf = ({
21583
21590
  }
21584
21591
  ),
21585
21592
  !m && /* @__PURE__ */ l(M, { ml: 16, children: [
21586
- /* @__PURE__ */ t(p, { bold: !0, color: h < 0 ? "error.main" : "success.main", children: B(Math.abs(h), "0,0") }),
21593
+ /* @__PURE__ */ t(p, { bold: !0, color: h < 0 ? "error.main" : "success.main", children: P(Math.abs(h), "0,0") }),
21587
21594
  /* @__PURE__ */ t(p, { children: h < 0 ? c.overspent_in_budgets : c.left_in_budgets })
21588
21595
  ] })
21589
21596
  ] }) : /* @__PURE__ */ t(ue, {})
@@ -21593,24 +21600,24 @@ const gf = ({
21593
21600
  const { budgets: e } = I(), { totalBudgeted: n } = lt(), { projectedIncome: i } = tt(), a = i - n;
21594
21601
  return /* @__PURE__ */ l(b, { direction: "row", justifyContent: "center", my: 16, spacing: 20, children: [
21595
21602
  /* @__PURE__ */ l(b, { alignItems: "center", children: [
21596
- /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: B(i, "0,0") }),
21603
+ /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: P(i, "0,0") }),
21597
21604
  /* @__PURE__ */ t(p, { color: "secondary", variant: "Small", children: e.projected_income })
21598
21605
  ] }),
21599
21606
  /* @__PURE__ */ t(p, { bold: !0, justifyContent: "center", variant: "Body", children: "-" }),
21600
21607
  /* @__PURE__ */ l(b, { alignItems: "center", children: [
21601
- /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: B(n, "0,0") }),
21608
+ /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: P(n, "0,0") }),
21602
21609
  /* @__PURE__ */ t(p, { color: "secondary", variant: "Small", children: e.budgeted })
21603
21610
  ] }),
21604
21611
  /* @__PURE__ */ t(p, { bold: !0, justifyContent: "center", variant: "Body", children: "=" }),
21605
21612
  /* @__PURE__ */ l(b, { alignItems: "center", children: [
21606
- /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: B(a, "0,0") }),
21613
+ /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: P(a, "0,0") }),
21607
21614
  /* @__PURE__ */ t(p, { color: "secondary", variant: "Small", children: e.remaining })
21608
21615
  ] })
21609
21616
  ] });
21610
21617
  }), bf = A(
21611
21618
  ({ category: e }) => {
21612
21619
  const { budgets: n } = I(), { budgets: i } = lt(), a = g.useMemo(() => {
21613
- const r = i.find((c) => c.category_guid === e.guid), o = B(e.totalAverageAmount, "0,0"), s = r ? S(n.recalculate_previous_budget, B(r.amount, "0,0")) : n.recalculate_new_budget;
21620
+ const r = i.find((c) => c.category_guid === e.guid), o = P(e.totalAverageAmount, "0,0"), s = r ? S(n.recalculate_previous_budget, P(r.amount, "0,0")) : n.recalculate_new_budget;
21614
21621
  return `${o} - ${s}`;
21615
21622
  }, [n, i]);
21616
21623
  return /* @__PURE__ */ l(g.Fragment, { children: [
@@ -21656,7 +21663,7 @@ const gf = ({
21656
21663
  /* @__PURE__ */ l(b, { children: [
21657
21664
  /* @__PURE__ */ t(p, { children: S(
21658
21665
  a.add_description_top,
21659
- B(s, "0,0")
21666
+ P(s, "0,0")
21660
21667
  ) }),
21661
21668
  /* @__PURE__ */ t(p, { children: S(a.add_description_bottom, n) })
21662
21669
  ] }),
@@ -21683,10 +21690,10 @@ const gf = ({
21683
21690
  re,
21684
21691
  {
21685
21692
  primary: e.name,
21686
- secondary: B(e.totalAmount, "0,0")
21693
+ secondary: P(e.totalAmount, "0,0")
21687
21694
  }
21688
21695
  ),
21689
- /* @__PURE__ */ t(kd, { children: /* @__PURE__ */ t(P, { name: "add", size: 20 }) })
21696
+ /* @__PURE__ */ t(kd, { children: /* @__PURE__ */ t(H, { name: "add", size: 20 }) })
21690
21697
  ] }) }, e.guid),
21691
21698
  /* @__PURE__ */ t(
21692
21699
  Ge,
@@ -21733,14 +21740,14 @@ const gf = ({
21733
21740
  ];
21734
21741
  return /* @__PURE__ */ t(Gt, { sx: { mt: 24, mx: 24 }, children: /* @__PURE__ */ t(Bt, { children: /* @__PURE__ */ l(b, { alignItems: "center", gap: 16, children: [
21735
21742
  /* @__PURE__ */ t(kt, { categoryGuid: r, size: 56 }),
21736
- /* @__PURE__ */ t(cn, { children: `${B(s, "0,0")} / ${B(n, "0,0")}` }),
21743
+ /* @__PURE__ */ t(cn, { children: `${P(s, "0,0")} / ${P(n, "0,0")}` }),
21737
21744
  /* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: a }),
21738
21745
  /* @__PURE__ */ t(ai, { data: c, height: 10 })
21739
21746
  ] }) }) });
21740
21747
  }, Tf = A(() => {
21741
21748
  const { budgets: e } = I();
21742
21749
  return /* @__PURE__ */ l(b, { alignItems: "center", gap: 12, height: "auto", mb: 24, mt: 24, children: [
21743
- /* @__PURE__ */ t(P, { color: "secondary", name: "bubble_chart", sx: { fontSize: 32 } }),
21750
+ /* @__PURE__ */ t(H, { color: "secondary", name: "bubble_chart", sx: { fontSize: 32 } }),
21744
21751
  /* @__PURE__ */ t(p, { bold: !0, color: "secondary", variant: "Small", children: e.zero_state_no_sub_budgets }),
21745
21752
  /* @__PURE__ */ t(p, { color: "text.secondary", variant: "XSmall", children: e.zero_state_no_sub_budgets_description })
21746
21753
  ] });
@@ -21759,8 +21766,8 @@ const gf = ({
21759
21766
  {
21760
21767
  primary: /* @__PURE__ */ t(b, { component: "span", direction: "row", justifyContent: "space-between", children: /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e.category.name }) }),
21761
21768
  secondary: /* @__PURE__ */ t(b, { component: "span", direction: "row", justifyContent: "space-between", children: /* @__PURE__ */ t(p, { fontWeight: 400, variant: "Body", children: `
21762
- ${B(o, "0,0")} /
21763
- ${B(n, "0,0")}
21769
+ ${P(o, "0,0")} /
21770
+ ${P(n, "0,0")}
21764
21771
  ` }) })
21765
21772
  }
21766
21773
  )
@@ -21781,10 +21788,10 @@ const gf = ({
21781
21788
  return /* @__PURE__ */ l(M, { children: [
21782
21789
  /* @__PURE__ */ t(q, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ t(de, { onClick: E, children: /* @__PURE__ */ t(re, { children: /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
21783
21790
  /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 8, children: [
21784
- /* @__PURE__ */ t(P, { fill: !0, name: "add_box", size: 24, sx: { color: "primary.light" } }),
21791
+ /* @__PURE__ */ t(H, { fill: !0, name: "add_box", size: 24, sx: { color: "primary.light" } }),
21785
21792
  /* @__PURE__ */ t(p, { bold: !0, sx: { color: "primary.light" }, variant: "Body", children: i.add_sub_budget_button })
21786
21793
  ] }),
21787
- /* @__PURE__ */ t(P, { name: "chevron_right", size: 24, sx: { color: "primary.light" } })
21794
+ /* @__PURE__ */ t(H, { name: "chevron_right", size: 24, sx: { color: "primary.light" } })
21788
21795
  ] }) }) }) }),
21789
21796
  /* @__PURE__ */ t(G, {}),
21790
21797
  /* @__PURE__ */ t(
@@ -21919,14 +21926,14 @@ const gf = ({
21919
21926
  variant: "fullWidth",
21920
21927
  children: [
21921
21928
  /* @__PURE__ */ t(
21922
- ke,
21929
+ Me,
21923
21930
  {
21924
21931
  label: n.details_transactions_tab,
21925
21932
  sx: { "&.Mui-selected": { color: "primary.light" } }
21926
21933
  }
21927
21934
  ),
21928
21935
  /* @__PURE__ */ t(
21929
- ke,
21936
+ Me,
21930
21937
  {
21931
21938
  label: n.details_subbudgets_tab,
21932
21939
  sx: { "&.Mui-selected": { color: "primary.light" } }
@@ -21940,7 +21947,7 @@ const gf = ({
21940
21947
  ee,
21941
21948
  {
21942
21949
  onClick: C,
21943
- startIcon: /* @__PURE__ */ t(P, { name: "ios_share" }),
21950
+ startIcon: /* @__PURE__ */ t(H, { name: "ios_share" }),
21944
21951
  variant: "text",
21945
21952
  children: a.export_csv_btn
21946
21953
  }
@@ -22058,8 +22065,8 @@ const gf = ({
22058
22065
  primary: /* @__PURE__ */ l(b, { component: "span", direction: "row", justifyContent: "space-between", children: [
22059
22066
  /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e.category.name }),
22060
22067
  /* @__PURE__ */ t(p, { fontWeight: 400, variant: "Body", children: `
22061
- ${B(_, "0,0")} /
22062
- ${B(i, "0,0")}
22068
+ ${P(_, "0,0")} /
22069
+ ${P(i, "0,0")}
22063
22070
  ` })
22064
22071
  ] }),
22065
22072
  secondary: /* @__PURE__ */ l(b, { component: "span", direction: "row", justifyContent: "space-between", children: [
@@ -22127,8 +22134,8 @@ const gf = ({
22127
22134
  /* @__PURE__ */ t(ai, { data: E, height: 16 }),
22128
22135
  /* @__PURE__ */ t(p, { variant: "Small", children: S(
22129
22136
  a.spending_description,
22130
- B(f, "0,0"),
22131
- B(_, "0,0")
22137
+ P(f, "0,0"),
22138
+ P(_, "0,0")
22132
22139
  ) })
22133
22140
  ] }),
22134
22141
  /* @__PURE__ */ l(b, { gap: 8, children: [
@@ -22140,15 +22147,15 @@ const gf = ({
22140
22147
  "aria-label": o.manage_income,
22141
22148
  onClick: w,
22142
22149
  sx: { p: 0 },
22143
- children: /* @__PURE__ */ t(P, { color: "primary", name: "edit" })
22150
+ children: /* @__PURE__ */ t(H, { color: "primary", name: "edit" })
22144
22151
  }
22145
22152
  )
22146
22153
  ] }),
22147
22154
  /* @__PURE__ */ t(ai, { data: T, height: 16 }),
22148
22155
  /* @__PURE__ */ t(p, { variant: "Small", children: S(
22149
22156
  a.income_description,
22150
- B(y, "0,0"),
22151
- B(u, "0,0")
22157
+ P(y, "0,0"),
22158
+ P(u, "0,0")
22152
22159
  ) })
22153
22160
  ] })
22154
22161
  ] }) }),
@@ -22186,11 +22193,11 @@ const gf = ({
22186
22193
  }, [d, _, C]);
22187
22194
  const U = (Ce) => {
22188
22195
  y({ start: Ce[0] || /* @__PURE__ */ new Date(), end: Ce[1] || /* @__PURE__ */ new Date() });
22189
- }, H = () => {
22196
+ }, B = () => {
22190
22197
  a(W.BUDGETS_CLICK_FILTER);
22191
22198
  }, j = () => {
22192
22199
  L(!0), a(W.BUDGETS_CLICK_ADD);
22193
- }, me = () => {
22200
+ }, he = () => {
22194
22201
  L(!1);
22195
22202
  }, V = Zt(C.end, Fe(/* @__PURE__ */ new Date()));
22196
22203
  return !c || !d || !f ? /* @__PURE__ */ t(ue, {}) : /* @__PURE__ */ l(
@@ -22205,7 +22212,7 @@ const gf = ({
22205
22212
  }
22206
22213
  ],
22207
22214
  calendarActions: { onRangeChanged: U, shouldDisableNext: V },
22208
- onAccountsFilterClick: H,
22215
+ onAccountsFilterClick: B,
22209
22216
  onBackClick: e,
22210
22217
  sx: n,
22211
22218
  title: o.budgets_title,
@@ -22253,7 +22260,7 @@ const gf = ({
22253
22260
  isOpen: O,
22254
22261
  onClose: () => L(!1),
22255
22262
  title: o.add_new_title,
22256
- children: /* @__PURE__ */ t(Sf, { onRecalculateBudgets: me })
22263
+ children: /* @__PURE__ */ t(Sf, { onRecalculateBudgets: he })
22257
22264
  }
22258
22265
  ),
22259
22266
  /* @__PURE__ */ t(
@@ -22638,22 +22645,22 @@ const kf = ({ widgets: e, isLoading: n }) => {
22638
22645
  holdings: [],
22639
22646
  members: []
22640
22647
  }), { accounts: C, investments: f } = I(), E = ({ data: O }) => {
22641
- const { isCopyLoaded: L } = ce(), [U, H] = yt(null), [j, me] = yt("");
22648
+ const { isCopyLoaded: L } = ce(), [U, B] = yt(null), [j, he] = yt("");
22642
22649
  if (!L || !d)
22643
22650
  return /* @__PURE__ */ t(ue, {});
22644
- const V = (he, Ke) => {
22645
- H(he), me(Ke.toFixed(2));
22646
- }, Ce = (he) => {
22647
- const Ke = he.target.value;
22648
- /^\d*\.?\d*$/.test(Ke) && me(Ke);
22649
- }, ge = (he, Ke) => {
22650
- if (he.key === "Enter") {
22651
+ const V = (ge, Ke) => {
22652
+ B(ge), he(Ke.toFixed(2));
22653
+ }, Ce = (ge) => {
22654
+ const Ke = ge.target.value;
22655
+ /^\d*\.?\d*$/.test(Ke) && he(Ke);
22656
+ }, me = (ge, Ke) => {
22657
+ if (ge.key === "Enter") {
22651
22658
  const je = s.find(({ guid: Te }) => Te === Ke);
22652
- c({ ...je, cost_basis: Number(j) }), H(null);
22653
- } else he.key === "Escape" && H(null);
22654
- }, _e = (he) => {
22655
- const Ke = s.find(({ guid: je }) => je === he);
22656
- c({ ...Ke, cost_basis: Number(j) }), H(null);
22659
+ c({ ...je, cost_basis: Number(j) }), B(null);
22660
+ } else ge.key === "Escape" && B(null);
22661
+ }, _e = (ge) => {
22662
+ const Ke = s.find(({ guid: je }) => je === ge);
22663
+ c({ ...Ke, cost_basis: Number(j) }), B(null);
22657
22664
  }, He = [
22658
22665
  {
22659
22666
  field: "qty",
@@ -22668,9 +22675,9 @@ const kf = ({ widgets: e, isLoading: n }) => {
22668
22675
  headerName: f.overview.holding_header,
22669
22676
  flex: 1,
22670
22677
  renderHeader: Fi,
22671
- renderCell: (he) => /* @__PURE__ */ t(Ee, { sx: { alignItems: "center", gap: 16, flexDirection: "row" }, children: /* @__PURE__ */ l(Ee, { children: [
22672
- /* @__PURE__ */ t(p, { sx: { color: "text.primary", fontWeight: 700 }, children: he.row.holding }),
22673
- /* @__PURE__ */ t(p, { sx: { color: "text.secondary", fontWeight: 400 }, variant: "tiny", children: he.row.description })
22678
+ renderCell: (ge) => /* @__PURE__ */ t(Ee, { sx: { alignItems: "center", gap: 16, flexDirection: "row" }, children: /* @__PURE__ */ l(Ee, { children: [
22679
+ /* @__PURE__ */ t(p, { sx: { color: "text.primary", fontWeight: 700 }, children: ge.row.holding }),
22680
+ /* @__PURE__ */ t(p, { sx: { color: "text.secondary", fontWeight: 400 }, variant: "tiny", children: ge.row.description })
22674
22681
  ] }) })
22675
22682
  },
22676
22683
  {
@@ -22678,16 +22685,16 @@ const kf = ({ widgets: e, isLoading: n }) => {
22678
22685
  headerName: f.overview.cost_basis_header,
22679
22686
  width: 132,
22680
22687
  renderHeader: Fi,
22681
- renderCell: (he) => {
22682
- const Ke = U === he.row.id;
22688
+ renderCell: (ge) => {
22689
+ const Ke = U === ge.row.id;
22683
22690
  return /* @__PURE__ */ l(Ee, { sx: { alignItems: "center", flexDirection: "row", gap: 4 }, children: [
22684
22691
  Ke ? /* @__PURE__ */ t(
22685
22692
  nt,
22686
22693
  {
22687
22694
  autoFocus: !0,
22688
- onBlur: () => _e(he.row.id),
22695
+ onBlur: () => _e(ge.row.id),
22689
22696
  onChange: Ce,
22690
- onKeyDown: (je) => ge(je, he.row.id),
22697
+ onKeyDown: (je) => me(je, ge.row.id),
22691
22698
  size: "small",
22692
22699
  sx: {
22693
22700
  fontSize: 14,
@@ -22704,7 +22711,7 @@ const kf = ({ widgets: e, isLoading: n }) => {
22704
22711
  },
22705
22712
  value: j
22706
22713
  }
22707
- ) : /* @__PURE__ */ t(p, { sx: { fontSize: 14 }, variant: "Small", children: he.value?.toLocaleString("en-US", {
22714
+ ) : /* @__PURE__ */ t(p, { sx: { fontSize: 14 }, variant: "Small", children: ge.value?.toLocaleString("en-US", {
22708
22715
  currency: "USD",
22709
22716
  maximumFractionDigits: 2,
22710
22717
  minimumFractionDigits: 2,
@@ -22713,7 +22720,7 @@ const kf = ({ widgets: e, isLoading: n }) => {
22713
22720
  /* @__PURE__ */ t(
22714
22721
  Ye,
22715
22722
  {
22716
- onClick: () => V(he.row.id, he.row.costBasis),
22723
+ onClick: () => V(ge.row.id, ge.row.costBasis),
22717
22724
  sx: { minWidth: 12, minHeight: 12 },
22718
22725
  children: /* @__PURE__ */ t(wt, { name: "stylus", size: 12, sx: { color: "#49505A" } })
22719
22726
  }
@@ -22728,20 +22735,20 @@ const kf = ({ widgets: e, isLoading: n }) => {
22728
22735
  headerName: f.overview.total_gain_loss_header,
22729
22736
  width: 196,
22730
22737
  renderHeader: Fi,
22731
- renderCell: (he) => {
22732
- const Ke = he.row.costBasis, je = Ke ? he.row.totalGainLoss / Ke * 100 : 0, Te = he.value <= 0 ? "text.secondary" : "#0AC295";
22738
+ renderCell: (ge) => {
22739
+ const Ke = ge.row.costBasis, je = Ke ? ge.row.totalGainLoss / Ke * 100 : 0, Te = ge.value <= 0 ? "text.secondary" : "#0AC295";
22733
22740
  return /* @__PURE__ */ l(Ee, { sx: { alignItems: "center", flexDirection: "row", gap: 2 }, children: [
22734
- he.value !== 0 && /* @__PURE__ */ t(
22741
+ ge.value !== 0 && /* @__PURE__ */ t(
22735
22742
  wt,
22736
22743
  {
22737
- name: he.value > 0 ? "trending_up" : "trending_down",
22744
+ name: ge.value > 0 ? "trending_up" : "trending_down",
22738
22745
  size: 16,
22739
22746
  sx: { color: Te, mr: 1, verticalAlign: "middle" }
22740
22747
  }
22741
22748
  ),
22742
22749
  /* @__PURE__ */ t(p, { sx: { color: Te, fontWeight: 700 }, variant: "Small", children: Ke ? `${je.toFixed(2)}%` : "0.00%" }),
22743
22750
  /* @__PURE__ */ t(p, { sx: { color: "text.secondary" }, variant: "XSmall", children: "|" }),
22744
- /* @__PURE__ */ t(p, { sx: { color: Te, fontWeight: 700 }, variant: "Small", children: Math.abs(he.value).toLocaleString("en-US", {
22751
+ /* @__PURE__ */ t(p, { sx: { color: Te, fontWeight: 700 }, variant: "Small", children: Math.abs(ge.value).toLocaleString("en-US", {
22745
22752
  currency: "USD",
22746
22753
  maximumFractionDigits: 2,
22747
22754
  minimumFractionDigits: 2,
@@ -22758,7 +22765,7 @@ const kf = ({ widgets: e, isLoading: n }) => {
22758
22765
  headerName: f.overview.market_value_header,
22759
22766
  width: 132,
22760
22767
  renderHeader: Fi,
22761
- renderCell: (he) => /* @__PURE__ */ t(p, { sx: { fontWeight: 700 }, variant: "Small", children: he.value?.toLocaleString("en-US", {
22768
+ renderCell: (ge) => /* @__PURE__ */ t(p, { sx: { fontWeight: 700 }, variant: "Small", children: ge.value?.toLocaleString("en-US", {
22762
22769
  currency: "USD",
22763
22770
  maximumFractionDigits: 2,
22764
22771
  minimumFractionDigits: 2,
@@ -22782,8 +22789,8 @@ const kf = ({ widgets: e, isLoading: n }) => {
22782
22789
  }, y = () => {
22783
22790
  u(!0), n(W.ACCOUNTS_CLICK_CONNECT);
22784
22791
  }, T = (O) => (L, U) => {
22785
- a((H) => ({
22786
- ...H,
22792
+ a((B) => ({
22793
+ ...B,
22787
22794
  [O]: U
22788
22795
  }));
22789
22796
  }, { holdings: w } = er(), { visibleInvestmentAccounts: N, members: x } = Re(), R = N.reduce((O, L) => O + (L.balance || 0), 0), D = w.reduce((O, L) => {
@@ -22828,24 +22835,24 @@ const kf = ({ widgets: e, isLoading: n }) => {
22828
22835
  x.map((O) => {
22829
22836
  const L = N.filter((U) => U.member_guid === O.guid);
22830
22837
  return /* @__PURE__ */ t(g.Fragment, { children: L.map((U) => {
22831
- const H = w.filter((ge) => ge.account_guid === U.guid).map((ge) => ({
22832
- id: ge.guid,
22833
- qty: ge.shares || 0,
22834
- holding: ge.symbol || ge.description || "Unknown",
22835
- costBasis: ge.cost_basis || 0,
22836
- totalGainLoss: ge.market_value ? ge.market_value - (ge.cost_basis || 0) : 0,
22837
- marketValue: ge.market_value || 0,
22838
- description: ge.description || ""
22839
- })), j = H.length > 0, me = U.balance, V = H.reduce(
22840
- (ge, _e) => _e.totalGainLoss + ge,
22838
+ const B = w.filter((me) => me.account_guid === U.guid).map((me) => ({
22839
+ id: me.guid,
22840
+ qty: me.shares || 0,
22841
+ holding: me.symbol || me.description || "Unknown",
22842
+ costBasis: me.cost_basis || 0,
22843
+ totalGainLoss: me.market_value ? me.market_value - (me.cost_basis || 0) : 0,
22844
+ marketValue: me.market_value || 0,
22845
+ description: me.description || ""
22846
+ })), j = B.length > 0, he = U.balance, V = B.reduce(
22847
+ (me, _e) => _e.totalGainLoss + me,
22841
22848
  0
22842
- ), Ce = me ? V / me * 100 : 0;
22849
+ ), Ce = he ? V / he * 100 : 0;
22843
22850
  return e ? /* @__PURE__ */ t(
22844
22851
  St,
22845
22852
  {
22846
- onClick: H.length ? () => {
22853
+ onClick: B.length ? () => {
22847
22854
  o(!0), m({
22848
- holdings: H,
22855
+ holdings: B,
22849
22856
  accounts: U,
22850
22857
  members: O
22851
22858
  });
@@ -22991,7 +22998,7 @@ const kf = ({ widgets: e, isLoading: n }) => {
22991
22998
  },
22992
22999
  children: [
22993
23000
  /* @__PURE__ */ t(p, { sx: { color: "text.secondary" }, variant: "XSmall", children: f.overview.total_value }),
22994
- /* @__PURE__ */ t(p, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: me?.toLocaleString("en-US", {
23001
+ /* @__PURE__ */ t(p, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: he?.toLocaleString("en-US", {
22995
23002
  currency: "USD",
22996
23003
  maximumFractionDigits: 2,
22997
23004
  minimumFractionDigits: 2,
@@ -23049,7 +23056,7 @@ const kf = ({ widgets: e, isLoading: n }) => {
23049
23056
  {
23050
23057
  name: "expand_more",
23051
23058
  size: 20,
23052
- sx: { color: H.length ? "#121417" : "#CDD3DD" }
23059
+ sx: { color: B.length ? "#121417" : "#CDD3DD" }
23053
23060
  }
23054
23061
  ),
23055
23062
  /* @__PURE__ */ t(
@@ -23129,7 +23136,7 @@ const kf = ({ widgets: e, isLoading: n }) => {
23129
23136
  sx: { alignItems: "flex-end", gap: 12, pb: 14, pl: 16, pr: 16, pt: 14 },
23130
23137
  children: /* @__PURE__ */ l(Ee, { sx: { alignItems: "flex-end" }, children: [
23131
23138
  /* @__PURE__ */ t(p, { sx: { color: "text.secondary" }, variant: "XSmall", children: f.overview.total_value }),
23132
- /* @__PURE__ */ t(p, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: me?.toLocaleString("en-US", {
23139
+ /* @__PURE__ */ t(p, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: he?.toLocaleString("en-US", {
23133
23140
  currency: "USD",
23134
23141
  maximumFractionDigits: 2,
23135
23142
  minimumFractionDigits: 2,
@@ -23142,7 +23149,7 @@ const kf = ({ widgets: e, isLoading: n }) => {
23142
23149
  ]
23143
23150
  }
23144
23151
  ),
23145
- /* @__PURE__ */ t(Di, { sx: { background: "background.default", p: 12 }, children: /* @__PURE__ */ t(St, { sx: { border: 1, borderColor: "border.light" }, children: /* @__PURE__ */ t(E, { data: H }) }) })
23152
+ /* @__PURE__ */ t(Di, { sx: { background: "background.default", p: 12 }, children: /* @__PURE__ */ t(St, { sx: { border: 1, borderColor: "border.light" }, children: /* @__PURE__ */ t(E, { data: B }) }) })
23146
23153
  ]
23147
23154
  },
23148
23155
  U.guid
@@ -23199,21 +23206,21 @@ const kf = ({ widgets: e, isLoading: n }) => {
23199
23206
  variant: "fullWidth",
23200
23207
  children: [
23201
23208
  /* @__PURE__ */ t(
23202
- ke,
23209
+ Me,
23203
23210
  {
23204
23211
  label: /* @__PURE__ */ t(ja, { title: o.tab_overview_title }),
23205
23212
  sx: { "&.Mui-selected": { color: "primary.light" } }
23206
23213
  }
23207
23214
  ),
23208
23215
  /* @__PURE__ */ t(
23209
- ke,
23216
+ Me,
23210
23217
  {
23211
23218
  label: /* @__PURE__ */ t(ja, { title: o.tab_allocation_title }),
23212
23219
  sx: { "&.Mui-selected": { color: "primary.light" } }
23213
23220
  }
23214
23221
  ),
23215
23222
  /* @__PURE__ */ t(
23216
- ke,
23223
+ Me,
23217
23224
  {
23218
23225
  label: /* @__PURE__ */ t(ja, { title: o.tab_analysis_title }),
23219
23226
  sx: { "&.Mui-selected": { color: "primary.light" } }
@@ -23643,7 +23650,7 @@ const Gi = g.createContext(null), Yf = ({
23643
23650
  return !r.length || !o.length ? n.Color.Primary300 : r[0].amount > o[0].amount ? n.Color.Error300 : r[0].amount < o[0].amount ? n.Color.Success300 : n.Color.Primary300;
23644
23651
  }, t0 = ({ beat: e }) => {
23645
23652
  const n = ft(), i = e0(e.data_series, n);
23646
- return /* @__PURE__ */ t(P, { name: "bar_chart", sx: { color: i } });
23653
+ return /* @__PURE__ */ t(H, { name: "bar_chart", sx: { color: i } });
23647
23654
  }, Uc = () => /* @__PURE__ */ l("svg", { fill: "none", height: "36", viewBox: "0 0 40 36", width: "40", xmlns: "http://www.w3.org/2000/svg", children: [
23648
23655
  /* @__PURE__ */ t(
23649
23656
  "path",
@@ -24427,8 +24434,8 @@ const Gi = g.createContext(null), Yf = ({
24427
24434
  ] })
24428
24435
  ] }), ds = ({ beat: e, clientColorScheme: n, color: i, type: a }) => {
24429
24436
  const r = pe(), o = n?.primary_300 ? n.primary_300 : r.palette.primary.main;
24430
- return a === 0 ? /* @__PURE__ */ t(P, { fill: !0, name: "error", sx: { color: i || o } }) : a === 1 && e ? /* @__PURE__ */ t(jf, { beat: e }) : a === 2 && e ? /* @__PURE__ */ t(Zf, { beat: e }) : a === 3 && e ? /* @__PURE__ */ t(t0, { beat: e }) : a === 5 && e ? /* @__PURE__ */ t(P, { name: "campaign" }) : /* @__PURE__ */ t(
24431
- P,
24437
+ return a === 0 ? /* @__PURE__ */ t(H, { fill: !0, name: "error", sx: { color: i || o } }) : a === 1 && e ? /* @__PURE__ */ t(jf, { beat: e }) : a === 2 && e ? /* @__PURE__ */ t(Zf, { beat: e }) : a === 3 && e ? /* @__PURE__ */ t(t0, { beat: e }) : a === 5 && e ? /* @__PURE__ */ t(H, { name: "campaign" }) : /* @__PURE__ */ t(
24438
+ H,
24432
24439
  {
24433
24440
  fill: !0,
24434
24441
  name: "info",
@@ -24660,7 +24667,7 @@ const Gi = g.createContext(null), Yf = ({
24660
24667
  y(V.targetTouches[0].clientX);
24661
24668
  }, U = (V) => {
24662
24669
  y(null), w(V.targetTouches[0].clientX);
24663
- }, H = {
24670
+ }, B = {
24664
24671
  clientColorScheme: n,
24665
24672
  showCTAColocatedWithText: i,
24666
24673
  heightOverrides: a,
@@ -24668,7 +24675,7 @@ const Gi = g.createContext(null), Yf = ({
24668
24675
  showIcon: c,
24669
24676
  variant: _,
24670
24677
  widthOverrides: u
24671
- }, j = m.current && m.current.offsetWidth ? Math.round(C / m.current.offsetWidth) : 0, me = m.current ? m.current.scrollWidth - m.current.offsetWidth : 0;
24678
+ }, j = m.current && m.current.offsetWidth ? Math.round(C / m.current.offsetWidth) : 0, he = m.current ? m.current.scrollWidth - m.current.offsetWidth : 0;
24672
24679
  return /* @__PURE__ */ l(
24673
24680
  "div",
24674
24681
  {
@@ -24688,11 +24695,11 @@ const Gi = g.createContext(null), Yf = ({
24688
24695
  ref: m,
24689
24696
  children: [
24690
24697
  e.map((V, Ce) => {
24691
- const ge = Ce + 1, _e = e.length + 1, He = S(
24698
+ const me = Ce + 1, _e = e.length + 1, He = S(
24692
24699
  N.card_position_in_carousel_aria,
24693
- ge.toString(),
24700
+ me.toString(),
24694
24701
  _e.toString()
24695
- ), he = V.micro_title && V.micro_title.length > 0, Ke = V.micro_description && V.micro_description.length > 0, je = he ? V.micro_title : V.title, Te = Ke ? V.micro_description : V.description;
24702
+ ), ge = V.micro_title && V.micro_title.length > 0, Ke = V.micro_description && V.micro_description.length > 0, je = ge ? V.micro_title : V.title, Te = Ke ? V.micro_description : V.description;
24696
24703
  return /* @__PURE__ */ t(
24697
24704
  a0,
24698
24705
  {
@@ -24701,7 +24708,7 @@ const Gi = g.createContext(null), Yf = ({
24701
24708
  index: Ce,
24702
24709
  isActiveCard: Ce === j,
24703
24710
  onCardClick: r,
24704
- ...H
24711
+ ...B
24705
24712
  },
24706
24713
  `${V.guid} ${Ce}`
24707
24714
  );
@@ -24711,7 +24718,7 @@ const Gi = g.createContext(null), Yf = ({
24711
24718
  {
24712
24719
  isActiveCard: j === e.length,
24713
24720
  onCardClick: r,
24714
- ...H
24721
+ ...B
24715
24722
  }
24716
24723
  )
24717
24724
  ]
@@ -24725,7 +24732,7 @@ const Gi = g.createContext(null), Yf = ({
24725
24732
  numBeats: e.length + 1,
24726
24733
  onNextClick: R,
24727
24734
  onPreviousClick: D,
24728
- scrollRightBoundary: me,
24735
+ scrollRightBoundary: he,
24729
24736
  scrollX: C
24730
24737
  }
24731
24738
  )
@@ -24983,7 +24990,7 @@ const Gi = g.createContext(null), Yf = ({
24983
24990
  variant: N,
24984
24991
  widthOverrides: x
24985
24992
  }) => {
24986
- const R = at(), [D, $] = yt("STANDARD"), [O, L] = yt(!1), U = iu([d], fn), H = au([_], fn);
24993
+ const R = at(), [D, $] = yt("STANDARD"), [O, L] = yt(!1), U = iu([d], fn), B = au([_], fn);
24987
24994
  g.useEffect(() => {
24988
24995
  fn.isInitialized || fn.initialize(r, y, s);
24989
24996
  }, [r, y, s, fn.isInitialized]), g.useEffect(() => {
@@ -25001,7 +25008,7 @@ const Gi = g.createContext(null), Yf = ({
25001
25008
  showWithMargin: E,
25002
25009
  useDarkMode: T,
25003
25010
  widthOverrides: x
25004
- }, me = {
25011
+ }, he = {
25005
25012
  carouselSize: D,
25006
25013
  variant: N,
25007
25014
  ...j
@@ -25010,7 +25017,7 @@ const Gi = g.createContext(null), Yf = ({
25010
25017
  // The Theme provider must wrap the component so that the styles don't break when imported into other applications.
25011
25018
  /* @__PURE__ */ l(wl, { theme: R, children: [
25012
25019
  /* @__PURE__ */ t(Pd, {}),
25013
- /* @__PURE__ */ t(Yf, { onEvent: U, onPageview: H, store: fn, children: /* @__PURE__ */ l(_0, { heightOverrides: o, widthOverrides: x, children: [
25020
+ /* @__PURE__ */ t(Yf, { onEvent: U, onPageview: B, store: fn, children: /* @__PURE__ */ l(_0, { heightOverrides: o, widthOverrides: x, children: [
25014
25021
  (e || !fn.isInitialized) && /* @__PURE__ */ t(h0, {}),
25015
25022
  O && C && /* @__PURE__ */ t(
25016
25023
  u0,
@@ -25031,8 +25038,8 @@ const Gi = g.createContext(null), Yf = ({
25031
25038
  ...j
25032
25039
  }
25033
25040
  ),
25034
- O && !n.length && w && /* @__PURE__ */ t(Yc, { clientColorScheme: i, ...me }),
25035
- O && !n.length && !w && /* @__PURE__ */ t(jc, { ...me })
25041
+ O && !n.length && w && /* @__PURE__ */ t(Yc, { clientColorScheme: i, ...he }),
25042
+ O && !n.length && !w && /* @__PURE__ */ t(jc, { ...he })
25036
25043
  ] }) })
25037
25044
  ] })
25038
25045
  );
@@ -25213,7 +25220,7 @@ const Gi = g.createContext(null), Yf = ({
25213
25220
  /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: d }),
25214
25221
  /* @__PURE__ */ l(cn, { color: E ? "success.main" : "text.primary", children: [
25215
25222
  E ? "+" : "",
25216
- B(c, "0,0.00")
25223
+ P(c, "0,0.00")
25217
25224
  ] })
25218
25225
  ] }),
25219
25226
  /* @__PURE__ */ l(ae, { sx: { bgcolor: "background.paper" }, children: [
@@ -25334,7 +25341,7 @@ const Gi = g.createContext(null), Yf = ({
25334
25341
  variant: "body1",
25335
25342
  children: [
25336
25343
  c ? "+" : "",
25337
- B(n.amount, "0,0.00")
25344
+ P(n.amount, "0,0.00")
25338
25345
  ]
25339
25346
  }
25340
25347
  ),
@@ -25420,11 +25427,11 @@ const Gi = g.createContext(null), Yf = ({
25420
25427
  { id: we.EveryYear, label: c.frequency_every_year }
25421
25428
  ];
25422
25429
  g.useEffect(() => {
25423
- const u = Me(s.date);
25430
+ const u = ke(s.date);
25424
25431
  o(Zi(u)), r(we.EveryMonth);
25425
25432
  }, [s]);
25426
25433
  const _ = (u) => {
25427
- const h = Me(s.date);
25434
+ const h = ke(s.date);
25428
25435
  switch (Number(u.target.value)) {
25429
25436
  case we.EveryWeek:
25430
25437
  o(pa(h));
@@ -25461,7 +25468,7 @@ const Gi = g.createContext(null), Yf = ({
25461
25468
  {
25462
25469
  InputLabelProps: { shrink: !0 },
25463
25470
  SelectProps: {
25464
- IconComponent: (u) => /* @__PURE__ */ t(P, { fill: !1, name: "expand_more", size: 20, sx: { mr: 4 }, ...u })
25471
+ IconComponent: (u) => /* @__PURE__ */ t(H, { fill: !1, name: "expand_more", size: 20, sx: { mr: 4 }, ...u })
25465
25472
  },
25466
25473
  defaultValue: 0,
25467
25474
  label: c.frequency,
@@ -25520,10 +25527,10 @@ const Gi = g.createContext(null), Yf = ({
25520
25527
  return /* @__PURE__ */ l(M, { children: [
25521
25528
  /* @__PURE__ */ t(q, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(de, { onClick: T, children: /* @__PURE__ */ t(re, { children: /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
25522
25529
  /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 8, children: [
25523
- /* @__PURE__ */ t(P, { fill: !0, name: "add_box", size: 24, sx: { color: "primary.light" } }),
25530
+ /* @__PURE__ */ t(H, { fill: !0, name: "add_box", size: 24, sx: { color: "primary.light" } }),
25524
25531
  /* @__PURE__ */ t(p, { bold: !0, sx: { color: "primary.light" }, variant: "Body", children: n })
25525
25532
  ] }),
25526
- /* @__PURE__ */ t(P, { name: "chevron_right", size: 24, sx: { color: "primary.light" } })
25533
+ /* @__PURE__ */ t(H, { name: "chevron_right", size: 24, sx: { color: "primary.light" } })
25527
25534
  ] }) }) }) }),
25528
25535
  /* @__PURE__ */ t(G, {}),
25529
25536
  /* @__PURE__ */ t(
@@ -25623,8 +25630,8 @@ const Gi = g.createContext(null), Yf = ({
25623
25630
  value: e,
25624
25631
  variant: "fullWidth",
25625
25632
  children: [
25626
- /* @__PURE__ */ t(ke, { label: a.manage_expenses }),
25627
- /* @__PURE__ */ t(ke, { label: a.manage_income })
25633
+ /* @__PURE__ */ t(Me, { label: a.manage_expenses }),
25634
+ /* @__PURE__ */ t(Me, { label: a.manage_income })
25628
25635
  ]
25629
25636
  }
25630
25637
  ),
@@ -25858,7 +25865,7 @@ const Gi = g.createContext(null), Yf = ({
25858
25865
  /* @__PURE__ */ l(b, { alignItems: "flex-end", width: "100%", children: [
25859
25866
  /* @__PURE__ */ l(p, { bold: !0, color: _ ? "success.main" : "text.primary", variant: "body1", children: [
25860
25867
  _ ? "+" : "",
25861
- B(e.amount, "0,0.00")
25868
+ P(e.amount, "0,0.00")
25862
25869
  ] }),
25863
25870
  !n && /* @__PURE__ */ l(
25864
25871
  b,
@@ -25962,15 +25969,15 @@ const Gi = g.createContext(null), Yf = ({
25962
25969
  /* @__PURE__ */ l(b, { children: [
25963
25970
  /* @__PURE__ */ t(p, { bold: !0, variant: "body1", children: `${r} ${e}` }),
25964
25971
  /* @__PURE__ */ l(b, { direction: "row", gap: 2, mb: 8, children: [
25965
- /* @__PURE__ */ t(p, { bold: !0, variant: "caption", children: B(i, "0,0.00") }),
25972
+ /* @__PURE__ */ t(p, { bold: !0, variant: "caption", children: P(i, "0,0.00") }),
25966
25973
  /* @__PURE__ */ t(p, { variant: "caption", children: c.paid?.toLowerCase() }),
25967
25974
  a !== void 0 && /* @__PURE__ */ l(Z, { children: [
25968
25975
  /* @__PURE__ */ t(p, { variant: "caption", children: "/" }),
25969
- /* @__PURE__ */ t(p, { bold: !0, variant: "caption", children: B(a, "0,0.00") }),
25976
+ /* @__PURE__ */ t(p, { bold: !0, variant: "caption", children: P(a, "0,0.00") }),
25970
25977
  /* @__PURE__ */ t(p, { variant: "caption", children: c.missed?.toLowerCase() })
25971
25978
  ] }),
25972
25979
  /* @__PURE__ */ t(p, { variant: "caption", children: "/" }),
25973
- /* @__PURE__ */ t(p, { bold: !0, variant: "caption", children: B(n, "0,0.00") }),
25980
+ /* @__PURE__ */ t(p, { bold: !0, variant: "caption", children: P(n, "0,0.00") }),
25974
25981
  /* @__PURE__ */ t(p, { variant: "caption", children: c.expected })
25975
25982
  ] })
25976
25983
  ] }),
@@ -26035,13 +26042,13 @@ const Gi = g.createContext(null), Yf = ({
26035
26042
  (i || n) && /* @__PURE__ */ l(b, { children: [
26036
26043
  /* @__PURE__ */ l(Lt, { onChange: T, value: E, variant: "fullWidth", children: [
26037
26044
  /* @__PURE__ */ t(
26038
- ke,
26045
+ Me,
26039
26046
  {
26040
26047
  label: /* @__PURE__ */ t(p, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: e.upcoming })
26041
26048
  }
26042
26049
  ),
26043
26050
  /* @__PURE__ */ t(
26044
- ke,
26051
+ Me,
26045
26052
  {
26046
26053
  label: /* @__PURE__ */ t(p, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: e.paid })
26047
26054
  }
@@ -26249,7 +26256,7 @@ const Gi = g.createContext(null), Yf = ({
26249
26256
  };
26250
26257
  }, na = ({ amount: e, label: n }) => /* @__PURE__ */ l(b, { direction: "column", children: [
26251
26258
  /* @__PURE__ */ t(p, { bold: !0, sx: { textTransform: "none" }, variant: "Body", children: n }),
26252
- /* @__PURE__ */ t(p, { variant: "XSmall", children: B(e, "0,0") })
26259
+ /* @__PURE__ */ t(p, { variant: "XSmall", children: P(e, "0,0") })
26253
26260
  ] }), R0 = ({
26254
26261
  data: e,
26255
26262
  isIncome: n = !1,
@@ -26289,7 +26296,7 @@ const Gi = g.createContext(null), Yf = ({
26289
26296
  }
26290
26297
  ),
26291
26298
  !h && c === "full" && /* @__PURE__ */ t(p, { bold: !0, color: "secondary", sx: { mb: { xs: 4, xl: 8 } }, children: s }),
26292
- /* @__PURE__ */ t(p, { variant: c === "mini" ? "H2" : "H1", children: B(h ? h.amount : e.totalAmount, "0,0") }),
26299
+ /* @__PURE__ */ t(p, { variant: c === "mini" ? "H2" : "H1", children: P(h ? h.amount : e.totalAmount, "0,0") }),
26293
26300
  !h && c === "mini" && /* @__PURE__ */ t(p, { color: "secondary", noWrap: !0, variant: "Tiny", children: s }),
26294
26301
  c === "full" && /* @__PURE__ */ t(
26295
26302
  ee,
@@ -26358,7 +26365,7 @@ const Gi = g.createContext(null), Yf = ({
26358
26365
  return o ? /* @__PURE__ */ l(M, { width: "100%", children: [
26359
26366
  /* @__PURE__ */ l(Lt, { onChange: f, value: u, variant: "fullWidth", children: [
26360
26367
  /* @__PURE__ */ t(
26361
- ke,
26368
+ Me,
26362
26369
  {
26363
26370
  label: /* @__PURE__ */ t(
26364
26371
  na,
@@ -26371,7 +26378,7 @@ const Gi = g.createContext(null), Yf = ({
26371
26378
  }
26372
26379
  ),
26373
26380
  /* @__PURE__ */ t(
26374
- ke,
26381
+ Me,
26375
26382
  {
26376
26383
  label: /* @__PURE__ */ t(
26377
26384
  na,
@@ -26475,7 +26482,7 @@ const Gi = g.createContext(null), Yf = ({
26475
26482
  width: "100%",
26476
26483
  children: [
26477
26484
  /* @__PURE__ */ t(p, { bold: i === s.guid, children: s.name }),
26478
- /* @__PURE__ */ t(p, { bold: i === s.guid, variant: "Body", children: B(s.amount, "0,0") })
26485
+ /* @__PURE__ */ t(p, { bold: i === s.guid, variant: "Body", children: P(s.amount, "0,0") })
26479
26486
  ]
26480
26487
  }
26481
26488
  )
@@ -26499,7 +26506,7 @@ const Gi = g.createContext(null), Yf = ({
26499
26506
  c.name,
26500
26507
  " "
26501
26508
  ] }),
26502
- /* @__PURE__ */ t(p, { children: B(c.amount, "0,0") })
26509
+ /* @__PURE__ */ t(p, { children: P(c.amount, "0,0") })
26503
26510
  ] })
26504
26511
  },
26505
26512
  c.guid
@@ -26507,7 +26514,7 @@ const Gi = g.createContext(null), Yf = ({
26507
26514
  /* @__PURE__ */ t(G, {})
26508
26515
  ] }) })
26509
26516
  ] }, s.guid)) }),
26510
- /* @__PURE__ */ t(p, { bold: !0, sx: { mt: 12, pr: 8, textAlign: "right" }, children: `${r.total}: ${B(e.totalAmount, "0,0")}` })
26517
+ /* @__PURE__ */ t(p, { bold: !0, sx: { mt: 12, pr: 8, textAlign: "right" }, children: `${r.total}: ${P(e.totalAmount, "0,0")}` })
26511
26518
  ] });
26512
26519
  }, G0 = A(k0), B0 = ({
26513
26520
  data: e,
@@ -26595,10 +26602,10 @@ const Gi = g.createContext(null), Yf = ({
26595
26602
  };
26596
26603
  if (m === 0)
26597
26604
  if (O === "other") {
26598
- const U = w.categoryData.find((H) => H.guid === "other");
26605
+ const U = w.categoryData.find((B) => B.guid === "other");
26599
26606
  d({
26600
26607
  ...L,
26601
- custom: (H) => !!U?.categoryTotals?.find((j) => j.guid === H.top_level_category_guid)
26608
+ custom: (B) => !!U?.categoryTotals?.find((j) => j.guid === B.top_level_category_guid)
26602
26609
  });
26603
26610
  } else
26604
26611
  d({
@@ -26615,7 +26622,7 @@ const Gi = g.createContext(null), Yf = ({
26615
26622
  return /* @__PURE__ */ l(M, { children: [
26616
26623
  /* @__PURE__ */ l(Lt, { onChange: R, value: m, variant: "fullWidth", children: [
26617
26624
  /* @__PURE__ */ t(
26618
- ke,
26625
+ Me,
26619
26626
  {
26620
26627
  label: /* @__PURE__ */ t(
26621
26628
  na,
@@ -26628,7 +26635,7 @@ const Gi = g.createContext(null), Yf = ({
26628
26635
  }
26629
26636
  ),
26630
26637
  /* @__PURE__ */ t(
26631
- ke,
26638
+ Me,
26632
26639
  {
26633
26640
  label: /* @__PURE__ */ t(
26634
26641
  na,
@@ -26877,7 +26884,7 @@ const K0 = (e) => e.reduce((i, a) => {
26877
26884
  }, tb = A(eb), nb = {
26878
26885
  view_transactions: "View Transactions"
26879
26886
  }, ib = ({ onBackClick: e, sx: n }) => {
26880
- const i = at(), { onEvent: a } = z(), { isDesktop: r, isTablet: o, isMobile: s } = De(), { visibleAccounts: c } = Re(), { loadMonthlyCategoryTotals: d, monthlyCategoryTotals: _, getCategoryName: u } = Ve(), { sortedTransactions: h } = Se(), { isCopyLoaded: m, isInitialized: C, selectedAccounts: f, setSelectedAccounts: E } = ce(), { trends: y } = I(), T = i.palette.mode === "dark", [w, N] = g.useState(!1), [x, R] = g.useState(!1), [D, $] = g.useState("Chart"), [O, L] = g.useState(""), [U, H] = g.useState({
26887
+ const i = at(), { onEvent: a } = z(), { isDesktop: r, isTablet: o, isMobile: s } = De(), { visibleAccounts: c } = Re(), { loadMonthlyCategoryTotals: d, monthlyCategoryTotals: _, getCategoryName: u } = Ve(), { sortedTransactions: h } = Se(), { isCopyLoaded: m, isInitialized: C, selectedAccounts: f, setSelectedAccounts: E } = ce(), { trends: y } = I(), T = i.palette.mode === "dark", [w, N] = g.useState(!1), [x, R] = g.useState(!1), [D, $] = g.useState("Chart"), [O, L] = g.useState(""), [U, B] = g.useState({
26881
26888
  start: no(Xe(jt(/* @__PURE__ */ new Date(), 6)), 1),
26882
26889
  end: Xe(/* @__PURE__ */ new Date())
26883
26890
  });
@@ -26905,7 +26912,7 @@ const K0 = (e) => e.reduce((i, a) => {
26905
26912
  stackedDatasets: _t.filter(tm),
26906
26913
  unstackedDatasets: _t.filter(va)
26907
26914
  };
26908
- }, [_, O, U]), me = g.useMemo(() => {
26915
+ }, [_, O, U]), he = g.useMemo(() => {
26909
26916
  const Te = ie(
26910
26917
  U.start,
26911
26918
  s ? te.MONTH_SHORT_YEAR : te.MONTH_YEAR
@@ -26918,16 +26925,16 @@ const K0 = (e) => e.reduce((i, a) => {
26918
26925
  $(_t ?? D), a(W.TRENDS_CLICK_TOGGLE);
26919
26926
  }, Ce = (Te) => {
26920
26927
  const _t = no(Te?.[0], 1), un = Te?.[1], se = Hd(un, _t);
26921
- H({ start: _t, end: un }), a(W.TRENDS_CLICK_DATE, {
26928
+ B({ start: _t, end: un }), a(W.TRENDS_CLICK_DATE, {
26922
26929
  time_period: se + "M"
26923
26930
  });
26924
- }, ge = () => {
26931
+ }, me = () => {
26925
26932
  a(W.TRENDS_CLICK_FILTER);
26926
26933
  }, _e = (Te) => {
26927
26934
  L(Te);
26928
26935
  }, He = (Te) => {
26929
26936
  L(Te), a(W.TRENDS_CLICK_LEGEND, { category: u(Te) });
26930
- }, he = (Te) => {
26937
+ }, ge = (Te) => {
26931
26938
  a(W.TRENDS_HOVER_LEGEND, { category: u(Te) });
26932
26939
  }, Ke = (Te) => {
26933
26940
  a(W.TRENDS_HOVER_AREA, { category: Te });
@@ -26941,7 +26948,7 @@ const K0 = (e) => e.reduce((i, a) => {
26941
26948
  calendarActions: { onRangeChanged: Ce },
26942
26949
  dateRange: U,
26943
26950
  dateRangeVariant: "timeframebuttons",
26944
- onAccountsFilterClick: ge,
26951
+ onAccountsFilterClick: me,
26945
26952
  onBackClick: e,
26946
26953
  sx: n,
26947
26954
  title: y.title,
@@ -26976,7 +26983,7 @@ const K0 = (e) => e.reduce((i, a) => {
26976
26983
  children: u(O) || y.sub_title
26977
26984
  }
26978
26985
  ),
26979
- /* @__PURE__ */ t(p, { variant: r ? "Body" : "Small", children: me })
26986
+ /* @__PURE__ */ t(p, { variant: r ? "Body" : "Small", children: he })
26980
26987
  ] }),
26981
26988
  /* @__PURE__ */ t(
26982
26989
  lr,
@@ -27011,7 +27018,7 @@ const K0 = (e) => e.reduce((i, a) => {
27011
27018
  }
27012
27019
  },
27013
27020
  value: Te,
27014
- children: Te === "Chart" ? /* @__PURE__ */ t(P, { name: "table_chart_view" }) : /* @__PURE__ */ t(P, { name: "format_list_bulleted" })
27021
+ children: Te === "Chart" ? /* @__PURE__ */ t(H, { name: "table_chart_view" }) : /* @__PURE__ */ t(H, { name: "format_list_bulleted" })
27015
27022
  },
27016
27023
  Te
27017
27024
  ))
@@ -27022,7 +27029,7 @@ const K0 = (e) => e.reduce((i, a) => {
27022
27029
  ),
27023
27030
  /* @__PURE__ */ l(b, { alignItems: "center", flexDirection: "row", width: "100%", children: [
27024
27031
  /* @__PURE__ */ t(M, { flexGrow: 1, children: O && /* @__PURE__ */ l(ee, { onClick: () => L(""), sx: { p: 0, pr: 5 }, children: [
27025
- /* @__PURE__ */ t(P, { name: "arrow_back" }),
27032
+ /* @__PURE__ */ t(H, { name: "arrow_back" }),
27026
27033
  y.all_categories
27027
27034
  ] }) }),
27028
27035
  /* @__PURE__ */ t(ee, { onClick: () => R(!0), sx: { px: 5 }, children: `${nb.view_transactions} (${h.length})` })
@@ -27033,7 +27040,7 @@ const K0 = (e) => e.reduce((i, a) => {
27033
27040
  {
27034
27041
  onClickLegend: He,
27035
27042
  onHoverArea: Ke,
27036
- onHoverLegend: he,
27043
+ onHoverLegend: ge,
27037
27044
  onHoverPoint: je,
27038
27045
  stackedDatasets: j.stackedDatasets,
27039
27046
  unstackedDatasets: j.unstackedDatasets
@@ -27291,7 +27298,7 @@ export {
27291
27298
  S as buildDynamicCopy,
27292
27299
  aE as buildPluralCopy,
27293
27300
  nc as exportTransactionsToCSV,
27294
- B as formatCurrency,
27301
+ P as formatCurrency,
27295
27302
  ie as formatDate,
27296
27303
  Ws as formatOrdinal,
27297
27304
  Ca as formatPercentage,