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

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 Vi } 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 qa } 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 aa 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), Oa = _n && se?.dataIndex !== void 0, La = _n && se?.dataIndex === void 0;
2463
+ const $e = String(se?.seriesId), We = He($e).guid, _n = me.find((di) => di.id === $e), Oa = _n && se?.dataIndex !== void 0, La = _n && se?.dataIndex === void 0;
2464
2464
  if (Oa)
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 ? qa(qr(me), 1) : ei(qr(me), 1), j[1] = Ce ? qa(Xr(me), 1) : ei(Xr(me), 1);
2821
+ j[0] = Ce ? qa(qr(he), 1) : ei(qr(he), 1), j[1] = Ce ? qa(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
  aa,
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(zi, { position: "start", children: /* @__PURE__ */ t(P, { color: "disabled", name: "search", size: 26 }) }),
3590
+ startAdornment: /* @__PURE__ */ t(zi, { position: "start", children: /* @__PURE__ */ t(H, { color: "disabled", name: "search", size: 26 }) }),
3591
3591
  endAdornment: /* @__PURE__ */ t(zi, { 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
  }, Qi = ({
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((Ga) => Ga.guid),
7311
+ accounts: he.map((Ga) => Ga.guid),
7312
7312
  custom: (Ga) => !Ga.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: ka,
@@ -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(qi(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(ma(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($a), f = o.filter($a), E = r.filter($a), 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(Ha).reduce(_i, 0), R = f.filter(Ha).reduce(_i, 0), D = C.filter(Ha).length, $ = (U, H) => {
8693
- h(H);
8692
+ } = tt(), [u, h] = g.useState(0), { onEvent: m } = z(), C = a.filter($a), f = o.filter($a), E = r.filter($a), 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(Ha).reduce(_i, 0), R = f.filter(Ha).reduce(_i, 0), D = C.filter(Ha).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
  pa(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(Ki, { 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
  la,
@@ -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(Fa, { 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(Fa, { 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(Fa, { subtitle: U, title: d.tab_retirement_title }),
@@ -12932,7 +12932,7 @@ const Jm = (e, n) => {
12932
12932
  T === 2 && /* @__PURE__ */ t(Wa, { 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(_a, { 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
  va,
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(ca, { 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(ca, { 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,14 +17893,19 @@ 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 } = Ca(), { 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;
17896
+ const e = at(), { common: n, settings: i } = I(), { isDesktop: a, isMobile: r, isSmallMobile: o, isTablet: s } = De(), { config: c } = Ca(), { 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
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
+ } else
17902
+ $(null);
17898
17903
  console.log("user birthday at first is ", _.birthday);
17899
17904
  }, [_]), g.useEffect(() => {
17900
- console.log("birthday changed, is ", D);
17905
+ console.log(D);
17901
17906
  }, [D]);
17902
17907
  const U = async () => {
17903
- const H = {
17908
+ const B = {
17904
17909
  ..._,
17905
17910
  first_name: u,
17906
17911
  last_name: m,
@@ -17910,7 +17915,7 @@ const l1 = ({
17910
17915
  postal_code: w,
17911
17916
  credit_score: x
17912
17917
  };
17913
- await d(H);
17918
+ await d(B);
17914
17919
  };
17915
17920
  return /* @__PURE__ */ l(
17916
17921
  M,
@@ -17939,7 +17944,7 @@ const l1 = ({
17939
17944
  {
17940
17945
  defaultValue: u,
17941
17946
  label: i.first_name,
17942
- onChange: (H) => h(H.target.value)
17947
+ onChange: (B) => h(B.target.value)
17943
17948
  }
17944
17949
  ),
17945
17950
  /* @__PURE__ */ t(
@@ -17947,7 +17952,7 @@ const l1 = ({
17947
17952
  {
17948
17953
  defaultValue: m,
17949
17954
  label: i.last_name,
17950
- onChange: (H) => C(H.target.value)
17955
+ onChange: (B) => C(B.target.value)
17951
17956
  }
17952
17957
  )
17953
17958
  ]
@@ -17960,7 +17965,7 @@ const l1 = ({
17960
17965
  {
17961
17966
  defaultValue: f,
17962
17967
  label: i.email_address,
17963
- onChange: (H) => E(H.target.value)
17968
+ onChange: (B) => E(B.target.value)
17964
17969
  }
17965
17970
  ),
17966
17971
  O && /* @__PURE__ */ t(V1, {})
@@ -17971,7 +17976,7 @@ const l1 = ({
17971
17976
  {
17972
17977
  defaultValue: y,
17973
17978
  label: i.mobile_number,
17974
- onChange: (H) => T(H.target.value),
17979
+ onChange: (B) => T(B.target.value),
17975
17980
  type: "tel"
17976
17981
  }
17977
17982
  ),
@@ -18013,7 +18018,7 @@ const l1 = ({
18013
18018
  {
18014
18019
  defaultValue: w,
18015
18020
  label: i.zip_code,
18016
- onChange: (H) => N(H.target.value)
18021
+ onChange: (B) => N(B.target.value)
18017
18022
  }
18018
18023
  )
18019
18024
  ] }),
@@ -18023,7 +18028,7 @@ const l1 = ({
18023
18028
  {
18024
18029
  defaultValue: x,
18025
18030
  label: i.credit_score,
18026
- onChange: (H) => R(Number(H.target.value)),
18031
+ onChange: (B) => R(Number(B.target.value)),
18027
18032
  sx: { mb: 44 }
18028
18033
  }
18029
18034
  ),
@@ -18052,7 +18057,7 @@ const X1 = ({
18052
18057
  "aria-label": r.mobile_devices_edit_label,
18053
18058
  color: "secondary",
18054
18059
  onClick: () => n(c.row),
18055
- children: /* @__PURE__ */ t(P, { name: "edit" })
18060
+ children: /* @__PURE__ */ t(H, { name: "edit" })
18056
18061
  }
18057
18062
  )
18058
18063
  ] }),
@@ -18073,7 +18078,7 @@ const X1 = ({
18073
18078
  field: "created_at",
18074
18079
  headerName: r.mobile_devices_column_added,
18075
18080
  renderHeader: Ut,
18076
- valueFormatter: (c) => Is(Me(c), { addSuffix: !0 }),
18081
+ valueFormatter: (c) => Is(ke(c), { addSuffix: !0 }),
18077
18082
  sortable: !0,
18078
18083
  hideSortIcons: !1,
18079
18084
  flex: 1,
@@ -18089,7 +18094,7 @@ const X1 = ({
18089
18094
  "aria-label": r.mobile_devices_delete_label,
18090
18095
  color: "secondary",
18091
18096
  onClick: () => i(c.row),
18092
- children: /* @__PURE__ */ t(P, { name: "delete" })
18097
+ children: /* @__PURE__ */ t(H, { name: "delete" })
18093
18098
  }
18094
18099
  ) }),
18095
18100
  sortable: !1,
@@ -18168,7 +18173,7 @@ const X1 = ({
18168
18173
  /* @__PURE__ */ t(
18169
18174
  Ri,
18170
18175
  {
18171
- expandIcon: /* @__PURE__ */ t(P, { color: "secondary", name: "keyboard_arrow_down", size: 24 }),
18176
+ expandIcon: /* @__PURE__ */ t(H, { color: "secondary", name: "keyboard_arrow_down", size: 24 }),
18172
18177
  sx: {
18173
18178
  padding: "14px 24px",
18174
18179
  borderBottom: "1px solid",
@@ -18177,7 +18182,7 @@ const X1 = ({
18177
18182
  children: /* @__PURE__ */ l(b, { gap: 4, children: [
18178
18183
  /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: d.name }),
18179
18184
  /* @__PURE__ */ t(p, { color: a.palette.text.secondary, variant: "Small", children: `${d.make} ${d.model}` }),
18180
- /* @__PURE__ */ t(p, { color: a.palette.text.secondary, variant: "Small", children: Is(Me(d.created_at), { addSuffix: !0 }) })
18185
+ /* @__PURE__ */ t(p, { color: a.palette.text.secondary, variant: "Small", children: Is(ke(d.created_at), { addSuffix: !0 }) })
18181
18186
  ] })
18182
18187
  }
18183
18188
  ),
@@ -18201,7 +18206,7 @@ const X1 = ({
18201
18206
  borderColor: a.palette.border.light
18202
18207
  },
18203
18208
  children: [
18204
- /* @__PURE__ */ t(Ye, { "aria-label": r.mobile_devices_edit_label, color: "secondary", children: /* @__PURE__ */ t(P, { name: "edit" }) }),
18209
+ /* @__PURE__ */ t(Ye, { "aria-label": r.mobile_devices_edit_label, color: "secondary", children: /* @__PURE__ */ t(H, { name: "edit" }) }),
18205
18210
  /* @__PURE__ */ t(p, { variant: "Body", children: r.mobile_devices_edit_label })
18206
18211
  ]
18207
18212
  }
@@ -18219,7 +18224,7 @@ const X1 = ({
18219
18224
  cursor: "pointer"
18220
18225
  },
18221
18226
  children: [
18222
- /* @__PURE__ */ t(Ye, { "aria-label": r.mobile_devices_delete_label, color: "secondary", children: /* @__PURE__ */ t(P, { name: "delete" }) }),
18227
+ /* @__PURE__ */ t(Ye, { "aria-label": r.mobile_devices_delete_label, color: "secondary", children: /* @__PURE__ */ t(H, { name: "delete" }) }),
18223
18228
  /* @__PURE__ */ t(p, { variant: "Body", children: r.mobile_devices_delete_label })
18224
18229
  ]
18225
18230
  }
@@ -18649,7 +18654,7 @@ const X1 = ({
18649
18654
  ), m = n.account?.name || n.account?.feed_name || "", C = n.account?.day_payment_is_due ? S(
18650
18655
  a.notification_debt_payment_date,
18651
18656
  Ws(n.account?.day_payment_is_due)
18652
- ) : a.notification_debt_payment_zero_state, f = o ? C : B(n.threshold ?? 0, "0,0"), E = async () => {
18657
+ ) : a.notification_debt_payment_zero_state, f = o ? C : P(n.threshold ?? 0, "0,0"), E = async () => {
18653
18658
  o && n.account ? await r({ ...n.account, day_payment_is_due: u }) : e({ ...n, threshold: d });
18654
18659
  };
18655
18660
  return /* @__PURE__ */ l(b, { children: [
@@ -18863,7 +18868,7 @@ const X1 = ({
18863
18868
  variant: "scrollable",
18864
18869
  children: [
18865
18870
  _ && /* @__PURE__ */ t(
18866
- ke,
18871
+ Me,
18867
18872
  {
18868
18873
  label: i.profile_label,
18869
18874
  sx: { "&.Mui-selected": { color: "primary.light" } },
@@ -18871,7 +18876,7 @@ const X1 = ({
18871
18876
  }
18872
18877
  ),
18873
18878
  u && /* @__PURE__ */ t(
18874
- ke,
18879
+ Me,
18875
18880
  {
18876
18881
  label: i.mobile_devices_label,
18877
18882
  sx: { "&.Mui-selected": { color: "primary.light" } },
@@ -18879,7 +18884,7 @@ const X1 = ({
18879
18884
  }
18880
18885
  ),
18881
18886
  h && /* @__PURE__ */ t(
18882
- ke,
18887
+ Me,
18883
18888
  {
18884
18889
  label: i.notifications_label,
18885
18890
  sx: { "&.Mui-selected": { color: "primary.light" } },
@@ -18887,7 +18892,7 @@ const X1 = ({
18887
18892
  }
18888
18893
  ),
18889
18894
  m && /* @__PURE__ */ t(
18890
- ke,
18895
+ Me,
18891
18896
  {
18892
18897
  label: i.transaction_rules_label,
18893
18898
  sx: { "&.Mui-selected": { color: "primary.light" } },
@@ -18895,7 +18900,7 @@ const X1 = ({
18895
18900
  }
18896
18901
  ),
18897
18902
  C && /* @__PURE__ */ t(
18898
- ke,
18903
+ Me,
18899
18904
  {
18900
18905
  label: i.help_label,
18901
18906
  sx: { "&.Mui-selected": { color: "primary.light" } },
@@ -19129,7 +19134,7 @@ const lC = (e) => {
19129
19134
  const d = e.transactions.find(
19130
19135
  (_) => _.repeating_transaction_guid === e.guid && _.date > Oe(ut(c.expectedDate, 5)) && _.date < Oe(Mt(c.expectedDate, 5))
19131
19136
  );
19132
- d ? (c.transaction = d, c.status = it.Paid, c.occurredOnDate = Me(d.date)) : ve(c.expectedDate, ut(le(), 3)) && (c.status = it.Missed);
19137
+ d ? (c.transaction = d, c.status = it.Paid, c.occurredOnDate = ke(d.date)) : ve(c.expectedDate, ut(le(), 3)) && (c.status = it.Missed);
19133
19138
  }
19134
19139
  return n;
19135
19140
  }, uC = (e, n, i) => {
@@ -19631,7 +19636,7 @@ const Ka = ({
19631
19636
  },
19632
19637
  primaryText: d.is_closed ? h.mark_as_open : h.mark_as_closed,
19633
19638
  secondaryText: d.is_closed ? h.this_will_set_the_closed_account : h.this_will_set_the_account_balance_to_0,
19634
- children: /* @__PURE__ */ t(P, { name: "chevron_right" })
19639
+ children: /* @__PURE__ */ t(H, { name: "chevron_right" })
19635
19640
  }
19636
19641
  ),
19637
19642
  m.length > 0 && /* @__PURE__ */ t(
@@ -19645,7 +19650,7 @@ const Ka = ({
19645
19650
  },
19646
19651
  primaryText: h.mark_as_duplicate,
19647
19652
  secondaryText: h.if_a_connected_account_is_showing_up_twice,
19648
- children: /* @__PURE__ */ t(P, { name: "chevron_right" })
19653
+ children: /* @__PURE__ */ t(H, { name: "chevron_right" })
19649
19654
  }
19650
19655
  ),
19651
19656
  /* @__PURE__ */ t(
@@ -19848,7 +19853,7 @@ const Ka = ({
19848
19853
  };
19849
19854
  default: {
19850
19855
  const a = () => {
19851
- const r = e.successfully_aggregated_at ? Me(e.successfully_aggregated_at) : void 0, o = r && ie(r, te.TIME_STAMP_HOUR_MINUTE);
19856
+ const r = e.successfully_aggregated_at ? ke(e.successfully_aggregated_at) : void 0, o = r && ie(r, te.TIME_STAMP_HOUR_MINUTE);
19852
19857
  if (o)
19853
19858
  return hr(r) ? S(n.last_updated_at, n.today, o) : Dd(r) ? S(n.last_updated_at, n.yesterday, o) : S(
19854
19859
  n.last_updated_at,
@@ -19902,7 +19907,7 @@ const Ka = ({
19902
19907
  ] })
19903
19908
  }
19904
19909
  ),
19905
- /* @__PURE__ */ t(P, { name: "chevron_right" })
19910
+ /* @__PURE__ */ t(H, { name: "chevron_right" })
19906
19911
  ] }) }),
19907
19912
  /* @__PURE__ */ t(G, { sx: { ml: a.is_manual || !a.institution_url ? 0 : 24 } }),
19908
19913
  !a.is_manual && a.institution_url && /* @__PURE__ */ l(Z, { children: [
@@ -19927,7 +19932,7 @@ const Ka = ({
19927
19932
  }
19928
19933
  ) }),
19929
19934
  /* @__PURE__ */ t(re, { primary: a.name, secondary: a.institution_url }),
19930
- /* @__PURE__ */ t(P, { name: "launch" })
19935
+ /* @__PURE__ */ t(H, { name: "launch" })
19931
19936
  ] }) }),
19932
19937
  /* @__PURE__ */ t(G, {})
19933
19938
  ] }),
@@ -20061,7 +20066,7 @@ const Ka = ({
20061
20066
  },
20062
20067
  children: [
20063
20068
  f,
20064
- /* @__PURE__ */ t(P, { name: "chevron_right" })
20069
+ /* @__PURE__ */ t(H, { name: "chevron_right" })
20065
20070
  ]
20066
20071
  }
20067
20072
  ) }),
@@ -20177,7 +20182,7 @@ const Ka = ({
20177
20182
  variant: "fullWidth",
20178
20183
  children: [
20179
20184
  /* @__PURE__ */ t(
20180
- ke,
20185
+ Me,
20181
20186
  {
20182
20187
  "aria-controls": "transaction-details-tabpanel-0",
20183
20188
  id: "transaction-details-tab-0",
@@ -20186,7 +20191,7 @@ const Ka = ({
20186
20191
  }
20187
20192
  ),
20188
20193
  /* @__PURE__ */ t(
20189
- ke,
20194
+ Me,
20190
20195
  {
20191
20196
  "aria-controls": "account-details-tabpanel-1",
20192
20197
  id: "account-details-tab-1",
@@ -20240,7 +20245,7 @@ const Ka = ({
20240
20245
  sx: { justifyContent: "space-between", color: "grey.700" },
20241
20246
  children: [
20242
20247
  /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: N }),
20243
- /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: B(w, "0,0.00") })
20248
+ /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: P(w, "0,0.00") })
20244
20249
  ]
20245
20250
  }
20246
20251
  ) }),
@@ -20297,7 +20302,7 @@ const Ka = ({
20297
20302
  sx: { display: "flex", justifyContent: "space-between" },
20298
20303
  children: [
20299
20304
  /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: i.account_types[y] }),
20300
- /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: B(w, "0,0.00") })
20305
+ /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: P(w, "0,0.00") })
20301
20306
  ]
20302
20307
  }
20303
20308
  ) }),
@@ -21381,7 +21386,7 @@ function hf({ bubble: e, isDraggable: n, onClick: i = () => {
21381
21386
  }
21382
21387
  ),
21383
21388
  /* @__PURE__ */ t(
21384
- P,
21389
+ H,
21385
21390
  {
21386
21391
  className: `icon-${c}`,
21387
21392
  component: "text",
@@ -21589,7 +21594,7 @@ const gf = ({
21589
21594
  }
21590
21595
  ),
21591
21596
  !m && /* @__PURE__ */ l(M, { ml: 16, children: [
21592
- /* @__PURE__ */ t(p, { bold: !0, color: h < 0 ? "error.main" : "success.main", children: B(Math.abs(h), "0,0") }),
21597
+ /* @__PURE__ */ t(p, { bold: !0, color: h < 0 ? "error.main" : "success.main", children: P(Math.abs(h), "0,0") }),
21593
21598
  /* @__PURE__ */ t(p, { children: h < 0 ? c.overspent_in_budgets : c.left_in_budgets })
21594
21599
  ] })
21595
21600
  ] }) : /* @__PURE__ */ t(ue, {})
@@ -21599,24 +21604,24 @@ const gf = ({
21599
21604
  const { budgets: e } = I(), { totalBudgeted: n } = lt(), { projectedIncome: i } = tt(), a = i - n;
21600
21605
  return /* @__PURE__ */ l(b, { direction: "row", justifyContent: "center", my: 16, spacing: 20, children: [
21601
21606
  /* @__PURE__ */ l(b, { alignItems: "center", children: [
21602
- /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: B(i, "0,0") }),
21607
+ /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: P(i, "0,0") }),
21603
21608
  /* @__PURE__ */ t(p, { color: "secondary", variant: "Small", children: e.projected_income })
21604
21609
  ] }),
21605
21610
  /* @__PURE__ */ t(p, { bold: !0, justifyContent: "center", variant: "Body", children: "-" }),
21606
21611
  /* @__PURE__ */ l(b, { alignItems: "center", children: [
21607
- /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: B(n, "0,0") }),
21612
+ /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: P(n, "0,0") }),
21608
21613
  /* @__PURE__ */ t(p, { color: "secondary", variant: "Small", children: e.budgeted })
21609
21614
  ] }),
21610
21615
  /* @__PURE__ */ t(p, { bold: !0, justifyContent: "center", variant: "Body", children: "=" }),
21611
21616
  /* @__PURE__ */ l(b, { alignItems: "center", children: [
21612
- /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: B(a, "0,0") }),
21617
+ /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: P(a, "0,0") }),
21613
21618
  /* @__PURE__ */ t(p, { color: "secondary", variant: "Small", children: e.remaining })
21614
21619
  ] })
21615
21620
  ] });
21616
21621
  }), bf = A(
21617
21622
  ({ category: e }) => {
21618
21623
  const { budgets: n } = I(), { budgets: i } = lt(), a = g.useMemo(() => {
21619
- 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;
21624
+ 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;
21620
21625
  return `${o} - ${s}`;
21621
21626
  }, [n, i]);
21622
21627
  return /* @__PURE__ */ l(g.Fragment, { children: [
@@ -21662,7 +21667,7 @@ const gf = ({
21662
21667
  /* @__PURE__ */ l(b, { children: [
21663
21668
  /* @__PURE__ */ t(p, { children: S(
21664
21669
  a.add_description_top,
21665
- B(s, "0,0")
21670
+ P(s, "0,0")
21666
21671
  ) }),
21667
21672
  /* @__PURE__ */ t(p, { children: S(a.add_description_bottom, n) })
21668
21673
  ] }),
@@ -21689,10 +21694,10 @@ const gf = ({
21689
21694
  re,
21690
21695
  {
21691
21696
  primary: e.name,
21692
- secondary: B(e.totalAmount, "0,0")
21697
+ secondary: P(e.totalAmount, "0,0")
21693
21698
  }
21694
21699
  ),
21695
- /* @__PURE__ */ t(kd, { children: /* @__PURE__ */ t(P, { name: "add", size: 20 }) })
21700
+ /* @__PURE__ */ t(kd, { children: /* @__PURE__ */ t(H, { name: "add", size: 20 }) })
21696
21701
  ] }) }, e.guid),
21697
21702
  /* @__PURE__ */ t(
21698
21703
  Ge,
@@ -21739,14 +21744,14 @@ const gf = ({
21739
21744
  ];
21740
21745
  return /* @__PURE__ */ t(Gt, { sx: { mt: 24, mx: 24 }, children: /* @__PURE__ */ t(Bt, { children: /* @__PURE__ */ l(b, { alignItems: "center", gap: 16, children: [
21741
21746
  /* @__PURE__ */ t(kt, { categoryGuid: r, size: 56 }),
21742
- /* @__PURE__ */ t(cn, { children: `${B(s, "0,0")} / ${B(n, "0,0")}` }),
21747
+ /* @__PURE__ */ t(cn, { children: `${P(s, "0,0")} / ${P(n, "0,0")}` }),
21743
21748
  /* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: a }),
21744
21749
  /* @__PURE__ */ t(ai, { data: c, height: 10 })
21745
21750
  ] }) }) });
21746
21751
  }, Tf = A(() => {
21747
21752
  const { budgets: e } = I();
21748
21753
  return /* @__PURE__ */ l(b, { alignItems: "center", gap: 12, height: "auto", mb: 24, mt: 24, children: [
21749
- /* @__PURE__ */ t(P, { color: "secondary", name: "bubble_chart", sx: { fontSize: 32 } }),
21754
+ /* @__PURE__ */ t(H, { color: "secondary", name: "bubble_chart", sx: { fontSize: 32 } }),
21750
21755
  /* @__PURE__ */ t(p, { bold: !0, color: "secondary", variant: "Small", children: e.zero_state_no_sub_budgets }),
21751
21756
  /* @__PURE__ */ t(p, { color: "text.secondary", variant: "XSmall", children: e.zero_state_no_sub_budgets_description })
21752
21757
  ] });
@@ -21765,8 +21770,8 @@ const gf = ({
21765
21770
  {
21766
21771
  primary: /* @__PURE__ */ t(b, { component: "span", direction: "row", justifyContent: "space-between", children: /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e.category.name }) }),
21767
21772
  secondary: /* @__PURE__ */ t(b, { component: "span", direction: "row", justifyContent: "space-between", children: /* @__PURE__ */ t(p, { fontWeight: 400, variant: "Body", children: `
21768
- ${B(o, "0,0")} /
21769
- ${B(n, "0,0")}
21773
+ ${P(o, "0,0")} /
21774
+ ${P(n, "0,0")}
21770
21775
  ` }) })
21771
21776
  }
21772
21777
  )
@@ -21787,10 +21792,10 @@ const gf = ({
21787
21792
  return /* @__PURE__ */ l(M, { children: [
21788
21793
  /* @__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: [
21789
21794
  /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 8, children: [
21790
- /* @__PURE__ */ t(P, { fill: !0, name: "add_box", size: 24, sx: { color: "primary.light" } }),
21795
+ /* @__PURE__ */ t(H, { fill: !0, name: "add_box", size: 24, sx: { color: "primary.light" } }),
21791
21796
  /* @__PURE__ */ t(p, { bold: !0, sx: { color: "primary.light" }, variant: "Body", children: i.add_sub_budget_button })
21792
21797
  ] }),
21793
- /* @__PURE__ */ t(P, { name: "chevron_right", size: 24, sx: { color: "primary.light" } })
21798
+ /* @__PURE__ */ t(H, { name: "chevron_right", size: 24, sx: { color: "primary.light" } })
21794
21799
  ] }) }) }) }),
21795
21800
  /* @__PURE__ */ t(G, {}),
21796
21801
  /* @__PURE__ */ t(
@@ -21925,14 +21930,14 @@ const gf = ({
21925
21930
  variant: "fullWidth",
21926
21931
  children: [
21927
21932
  /* @__PURE__ */ t(
21928
- ke,
21933
+ Me,
21929
21934
  {
21930
21935
  label: n.details_transactions_tab,
21931
21936
  sx: { "&.Mui-selected": { color: "primary.light" } }
21932
21937
  }
21933
21938
  ),
21934
21939
  /* @__PURE__ */ t(
21935
- ke,
21940
+ Me,
21936
21941
  {
21937
21942
  label: n.details_subbudgets_tab,
21938
21943
  sx: { "&.Mui-selected": { color: "primary.light" } }
@@ -21946,7 +21951,7 @@ const gf = ({
21946
21951
  ee,
21947
21952
  {
21948
21953
  onClick: C,
21949
- startIcon: /* @__PURE__ */ t(P, { name: "ios_share" }),
21954
+ startIcon: /* @__PURE__ */ t(H, { name: "ios_share" }),
21950
21955
  variant: "text",
21951
21956
  children: a.export_csv_btn
21952
21957
  }
@@ -22064,8 +22069,8 @@ const gf = ({
22064
22069
  primary: /* @__PURE__ */ l(b, { component: "span", direction: "row", justifyContent: "space-between", children: [
22065
22070
  /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e.category.name }),
22066
22071
  /* @__PURE__ */ t(p, { fontWeight: 400, variant: "Body", children: `
22067
- ${B(_, "0,0")} /
22068
- ${B(i, "0,0")}
22072
+ ${P(_, "0,0")} /
22073
+ ${P(i, "0,0")}
22069
22074
  ` })
22070
22075
  ] }),
22071
22076
  secondary: /* @__PURE__ */ l(b, { component: "span", direction: "row", justifyContent: "space-between", children: [
@@ -22133,8 +22138,8 @@ const gf = ({
22133
22138
  /* @__PURE__ */ t(ai, { data: E, height: 16 }),
22134
22139
  /* @__PURE__ */ t(p, { variant: "Small", children: S(
22135
22140
  a.spending_description,
22136
- B(f, "0,0"),
22137
- B(_, "0,0")
22141
+ P(f, "0,0"),
22142
+ P(_, "0,0")
22138
22143
  ) })
22139
22144
  ] }),
22140
22145
  /* @__PURE__ */ l(b, { gap: 8, children: [
@@ -22146,15 +22151,15 @@ const gf = ({
22146
22151
  "aria-label": o.manage_income,
22147
22152
  onClick: w,
22148
22153
  sx: { p: 0 },
22149
- children: /* @__PURE__ */ t(P, { color: "primary", name: "edit" })
22154
+ children: /* @__PURE__ */ t(H, { color: "primary", name: "edit" })
22150
22155
  }
22151
22156
  )
22152
22157
  ] }),
22153
22158
  /* @__PURE__ */ t(ai, { data: T, height: 16 }),
22154
22159
  /* @__PURE__ */ t(p, { variant: "Small", children: S(
22155
22160
  a.income_description,
22156
- B(y, "0,0"),
22157
- B(u, "0,0")
22161
+ P(y, "0,0"),
22162
+ P(u, "0,0")
22158
22163
  ) })
22159
22164
  ] })
22160
22165
  ] }) }),
@@ -22192,11 +22197,11 @@ const gf = ({
22192
22197
  }, [d, _, C]);
22193
22198
  const U = (Ce) => {
22194
22199
  y({ start: Ce[0] || /* @__PURE__ */ new Date(), end: Ce[1] || /* @__PURE__ */ new Date() });
22195
- }, H = () => {
22200
+ }, B = () => {
22196
22201
  a(W.BUDGETS_CLICK_FILTER);
22197
22202
  }, j = () => {
22198
22203
  L(!0), a(W.BUDGETS_CLICK_ADD);
22199
- }, me = () => {
22204
+ }, he = () => {
22200
22205
  L(!1);
22201
22206
  }, V = Zt(C.end, Fe(/* @__PURE__ */ new Date()));
22202
22207
  return !c || !d || !f ? /* @__PURE__ */ t(ue, {}) : /* @__PURE__ */ l(
@@ -22211,7 +22216,7 @@ const gf = ({
22211
22216
  }
22212
22217
  ],
22213
22218
  calendarActions: { onRangeChanged: U, shouldDisableNext: V },
22214
- onAccountsFilterClick: H,
22219
+ onAccountsFilterClick: B,
22215
22220
  onBackClick: e,
22216
22221
  sx: n,
22217
22222
  title: o.budgets_title,
@@ -22259,7 +22264,7 @@ const gf = ({
22259
22264
  isOpen: O,
22260
22265
  onClose: () => L(!1),
22261
22266
  title: o.add_new_title,
22262
- children: /* @__PURE__ */ t(Sf, { onRecalculateBudgets: me })
22267
+ children: /* @__PURE__ */ t(Sf, { onRecalculateBudgets: he })
22263
22268
  }
22264
22269
  ),
22265
22270
  /* @__PURE__ */ t(
@@ -22644,22 +22649,22 @@ const kf = ({ widgets: e, isLoading: n }) => {
22644
22649
  holdings: [],
22645
22650
  members: []
22646
22651
  }), { accounts: C, investments: f } = I(), E = ({ data: O }) => {
22647
- const { isCopyLoaded: L } = ce(), [U, H] = yt(null), [j, me] = yt("");
22652
+ const { isCopyLoaded: L } = ce(), [U, B] = yt(null), [j, he] = yt("");
22648
22653
  if (!L || !d)
22649
22654
  return /* @__PURE__ */ t(ue, {});
22650
- const V = (he, Ke) => {
22651
- H(he), me(Ke.toFixed(2));
22652
- }, Ce = (he) => {
22653
- const Ke = he.target.value;
22654
- /^\d*\.?\d*$/.test(Ke) && me(Ke);
22655
- }, ge = (he, Ke) => {
22656
- if (he.key === "Enter") {
22655
+ const V = (ge, Ke) => {
22656
+ B(ge), he(Ke.toFixed(2));
22657
+ }, Ce = (ge) => {
22658
+ const Ke = ge.target.value;
22659
+ /^\d*\.?\d*$/.test(Ke) && he(Ke);
22660
+ }, me = (ge, Ke) => {
22661
+ if (ge.key === "Enter") {
22657
22662
  const je = s.find(({ guid: Te }) => Te === Ke);
22658
- c({ ...je, cost_basis: Number(j) }), H(null);
22659
- } else he.key === "Escape" && H(null);
22660
- }, _e = (he) => {
22661
- const Ke = s.find(({ guid: je }) => je === he);
22662
- c({ ...Ke, cost_basis: Number(j) }), H(null);
22663
+ c({ ...je, cost_basis: Number(j) }), B(null);
22664
+ } else ge.key === "Escape" && B(null);
22665
+ }, _e = (ge) => {
22666
+ const Ke = s.find(({ guid: je }) => je === ge);
22667
+ c({ ...Ke, cost_basis: Number(j) }), B(null);
22663
22668
  }, He = [
22664
22669
  {
22665
22670
  field: "qty",
@@ -22674,9 +22679,9 @@ const kf = ({ widgets: e, isLoading: n }) => {
22674
22679
  headerName: f.overview.holding_header,
22675
22680
  flex: 1,
22676
22681
  renderHeader: Fi,
22677
- renderCell: (he) => /* @__PURE__ */ t(Ee, { sx: { alignItems: "center", gap: 16, flexDirection: "row" }, children: /* @__PURE__ */ l(Ee, { children: [
22678
- /* @__PURE__ */ t(p, { sx: { color: "text.primary", fontWeight: 700 }, children: he.row.holding }),
22679
- /* @__PURE__ */ t(p, { sx: { color: "text.secondary", fontWeight: 400 }, variant: "tiny", children: he.row.description })
22682
+ renderCell: (ge) => /* @__PURE__ */ t(Ee, { sx: { alignItems: "center", gap: 16, flexDirection: "row" }, children: /* @__PURE__ */ l(Ee, { children: [
22683
+ /* @__PURE__ */ t(p, { sx: { color: "text.primary", fontWeight: 700 }, children: ge.row.holding }),
22684
+ /* @__PURE__ */ t(p, { sx: { color: "text.secondary", fontWeight: 400 }, variant: "tiny", children: ge.row.description })
22680
22685
  ] }) })
22681
22686
  },
22682
22687
  {
@@ -22684,16 +22689,16 @@ const kf = ({ widgets: e, isLoading: n }) => {
22684
22689
  headerName: f.overview.cost_basis_header,
22685
22690
  width: 132,
22686
22691
  renderHeader: Fi,
22687
- renderCell: (he) => {
22688
- const Ke = U === he.row.id;
22692
+ renderCell: (ge) => {
22693
+ const Ke = U === ge.row.id;
22689
22694
  return /* @__PURE__ */ l(Ee, { sx: { alignItems: "center", flexDirection: "row", gap: 4 }, children: [
22690
22695
  Ke ? /* @__PURE__ */ t(
22691
22696
  nt,
22692
22697
  {
22693
22698
  autoFocus: !0,
22694
- onBlur: () => _e(he.row.id),
22699
+ onBlur: () => _e(ge.row.id),
22695
22700
  onChange: Ce,
22696
- onKeyDown: (je) => ge(je, he.row.id),
22701
+ onKeyDown: (je) => me(je, ge.row.id),
22697
22702
  size: "small",
22698
22703
  sx: {
22699
22704
  fontSize: 14,
@@ -22710,7 +22715,7 @@ const kf = ({ widgets: e, isLoading: n }) => {
22710
22715
  },
22711
22716
  value: j
22712
22717
  }
22713
- ) : /* @__PURE__ */ t(p, { sx: { fontSize: 14 }, variant: "Small", children: he.value?.toLocaleString("en-US", {
22718
+ ) : /* @__PURE__ */ t(p, { sx: { fontSize: 14 }, variant: "Small", children: ge.value?.toLocaleString("en-US", {
22714
22719
  currency: "USD",
22715
22720
  maximumFractionDigits: 2,
22716
22721
  minimumFractionDigits: 2,
@@ -22719,7 +22724,7 @@ const kf = ({ widgets: e, isLoading: n }) => {
22719
22724
  /* @__PURE__ */ t(
22720
22725
  Ye,
22721
22726
  {
22722
- onClick: () => V(he.row.id, he.row.costBasis),
22727
+ onClick: () => V(ge.row.id, ge.row.costBasis),
22723
22728
  sx: { minWidth: 12, minHeight: 12 },
22724
22729
  children: /* @__PURE__ */ t(wt, { name: "stylus", size: 12, sx: { color: "#49505A" } })
22725
22730
  }
@@ -22734,20 +22739,20 @@ const kf = ({ widgets: e, isLoading: n }) => {
22734
22739
  headerName: f.overview.total_gain_loss_header,
22735
22740
  width: 196,
22736
22741
  renderHeader: Fi,
22737
- renderCell: (he) => {
22738
- const Ke = he.row.costBasis, je = Ke ? he.row.totalGainLoss / Ke * 100 : 0, Te = he.value <= 0 ? "text.secondary" : "#0AC295";
22742
+ renderCell: (ge) => {
22743
+ const Ke = ge.row.costBasis, je = Ke ? ge.row.totalGainLoss / Ke * 100 : 0, Te = ge.value <= 0 ? "text.secondary" : "#0AC295";
22739
22744
  return /* @__PURE__ */ l(Ee, { sx: { alignItems: "center", flexDirection: "row", gap: 2 }, children: [
22740
- he.value !== 0 && /* @__PURE__ */ t(
22745
+ ge.value !== 0 && /* @__PURE__ */ t(
22741
22746
  wt,
22742
22747
  {
22743
- name: he.value > 0 ? "trending_up" : "trending_down",
22748
+ name: ge.value > 0 ? "trending_up" : "trending_down",
22744
22749
  size: 16,
22745
22750
  sx: { color: Te, mr: 1, verticalAlign: "middle" }
22746
22751
  }
22747
22752
  ),
22748
22753
  /* @__PURE__ */ t(p, { sx: { color: Te, fontWeight: 700 }, variant: "Small", children: Ke ? `${je.toFixed(2)}%` : "0.00%" }),
22749
22754
  /* @__PURE__ */ t(p, { sx: { color: "text.secondary" }, variant: "XSmall", children: "|" }),
22750
- /* @__PURE__ */ t(p, { sx: { color: Te, fontWeight: 700 }, variant: "Small", children: Math.abs(he.value).toLocaleString("en-US", {
22755
+ /* @__PURE__ */ t(p, { sx: { color: Te, fontWeight: 700 }, variant: "Small", children: Math.abs(ge.value).toLocaleString("en-US", {
22751
22756
  currency: "USD",
22752
22757
  maximumFractionDigits: 2,
22753
22758
  minimumFractionDigits: 2,
@@ -22764,7 +22769,7 @@ const kf = ({ widgets: e, isLoading: n }) => {
22764
22769
  headerName: f.overview.market_value_header,
22765
22770
  width: 132,
22766
22771
  renderHeader: Fi,
22767
- renderCell: (he) => /* @__PURE__ */ t(p, { sx: { fontWeight: 700 }, variant: "Small", children: he.value?.toLocaleString("en-US", {
22772
+ renderCell: (ge) => /* @__PURE__ */ t(p, { sx: { fontWeight: 700 }, variant: "Small", children: ge.value?.toLocaleString("en-US", {
22768
22773
  currency: "USD",
22769
22774
  maximumFractionDigits: 2,
22770
22775
  minimumFractionDigits: 2,
@@ -22788,8 +22793,8 @@ const kf = ({ widgets: e, isLoading: n }) => {
22788
22793
  }, y = () => {
22789
22794
  u(!0), n(W.ACCOUNTS_CLICK_CONNECT);
22790
22795
  }, T = (O) => (L, U) => {
22791
- a((H) => ({
22792
- ...H,
22796
+ a((B) => ({
22797
+ ...B,
22793
22798
  [O]: U
22794
22799
  }));
22795
22800
  }, { holdings: w } = Ja(), { visibleInvestmentAccounts: N, members: x } = Re(), R = N.reduce((O, L) => O + (L.balance || 0), 0), D = w.reduce((O, L) => {
@@ -22834,24 +22839,24 @@ const kf = ({ widgets: e, isLoading: n }) => {
22834
22839
  x.map((O) => {
22835
22840
  const L = N.filter((U) => U.member_guid === O.guid);
22836
22841
  return /* @__PURE__ */ t(g.Fragment, { children: L.map((U) => {
22837
- const H = w.filter((ge) => ge.account_guid === U.guid).map((ge) => ({
22838
- id: ge.guid,
22839
- qty: ge.shares || 0,
22840
- holding: ge.symbol || ge.description || "Unknown",
22841
- costBasis: ge.cost_basis || 0,
22842
- totalGainLoss: ge.market_value ? ge.market_value - (ge.cost_basis || 0) : 0,
22843
- marketValue: ge.market_value || 0,
22844
- description: ge.description || ""
22845
- })), j = H.length > 0, me = U.balance, V = H.reduce(
22846
- (ge, _e) => _e.totalGainLoss + ge,
22842
+ const B = w.filter((me) => me.account_guid === U.guid).map((me) => ({
22843
+ id: me.guid,
22844
+ qty: me.shares || 0,
22845
+ holding: me.symbol || me.description || "Unknown",
22846
+ costBasis: me.cost_basis || 0,
22847
+ totalGainLoss: me.market_value ? me.market_value - (me.cost_basis || 0) : 0,
22848
+ marketValue: me.market_value || 0,
22849
+ description: me.description || ""
22850
+ })), j = B.length > 0, he = U.balance, V = B.reduce(
22851
+ (me, _e) => _e.totalGainLoss + me,
22847
22852
  0
22848
- ), Ce = me ? V / me * 100 : 0;
22853
+ ), Ce = he ? V / he * 100 : 0;
22849
22854
  return e ? /* @__PURE__ */ t(
22850
22855
  St,
22851
22856
  {
22852
- onClick: H.length ? () => {
22857
+ onClick: B.length ? () => {
22853
22858
  o(!0), m({
22854
- holdings: H,
22859
+ holdings: B,
22855
22860
  accounts: U,
22856
22861
  members: O
22857
22862
  });
@@ -22997,7 +23002,7 @@ const kf = ({ widgets: e, isLoading: n }) => {
22997
23002
  },
22998
23003
  children: [
22999
23004
  /* @__PURE__ */ t(p, { sx: { color: "text.secondary" }, variant: "XSmall", children: f.overview.total_value }),
23000
- /* @__PURE__ */ t(p, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: me?.toLocaleString("en-US", {
23005
+ /* @__PURE__ */ t(p, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: he?.toLocaleString("en-US", {
23001
23006
  currency: "USD",
23002
23007
  maximumFractionDigits: 2,
23003
23008
  minimumFractionDigits: 2,
@@ -23055,7 +23060,7 @@ const kf = ({ widgets: e, isLoading: n }) => {
23055
23060
  {
23056
23061
  name: "expand_more",
23057
23062
  size: 20,
23058
- sx: { color: H.length ? "#121417" : "#CDD3DD" }
23063
+ sx: { color: B.length ? "#121417" : "#CDD3DD" }
23059
23064
  }
23060
23065
  ),
23061
23066
  /* @__PURE__ */ t(
@@ -23135,7 +23140,7 @@ const kf = ({ widgets: e, isLoading: n }) => {
23135
23140
  sx: { alignItems: "flex-end", gap: 12, pb: 14, pl: 16, pr: 16, pt: 14 },
23136
23141
  children: /* @__PURE__ */ l(Ee, { sx: { alignItems: "flex-end" }, children: [
23137
23142
  /* @__PURE__ */ t(p, { sx: { color: "text.secondary" }, variant: "XSmall", children: f.overview.total_value }),
23138
- /* @__PURE__ */ t(p, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: me?.toLocaleString("en-US", {
23143
+ /* @__PURE__ */ t(p, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: he?.toLocaleString("en-US", {
23139
23144
  currency: "USD",
23140
23145
  maximumFractionDigits: 2,
23141
23146
  minimumFractionDigits: 2,
@@ -23148,7 +23153,7 @@ const kf = ({ widgets: e, isLoading: n }) => {
23148
23153
  ]
23149
23154
  }
23150
23155
  ),
23151
- /* @__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 }) }) })
23156
+ /* @__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 }) }) })
23152
23157
  ]
23153
23158
  },
23154
23159
  U.guid
@@ -23205,21 +23210,21 @@ const kf = ({ widgets: e, isLoading: n }) => {
23205
23210
  variant: "fullWidth",
23206
23211
  children: [
23207
23212
  /* @__PURE__ */ t(
23208
- ke,
23213
+ Me,
23209
23214
  {
23210
23215
  label: /* @__PURE__ */ t(Ya, { title: o.tab_overview_title }),
23211
23216
  sx: { "&.Mui-selected": { color: "primary.light" } }
23212
23217
  }
23213
23218
  ),
23214
23219
  /* @__PURE__ */ t(
23215
- ke,
23220
+ Me,
23216
23221
  {
23217
23222
  label: /* @__PURE__ */ t(Ya, { title: o.tab_allocation_title }),
23218
23223
  sx: { "&.Mui-selected": { color: "primary.light" } }
23219
23224
  }
23220
23225
  ),
23221
23226
  /* @__PURE__ */ t(
23222
- ke,
23227
+ Me,
23223
23228
  {
23224
23229
  label: /* @__PURE__ */ t(Ya, { title: o.tab_analysis_title }),
23225
23230
  sx: { "&.Mui-selected": { color: "primary.light" } }
@@ -23649,7 +23654,7 @@ const Gi = g.createContext(null), Yf = ({
23649
23654
  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;
23650
23655
  }, t0 = ({ beat: e }) => {
23651
23656
  const n = ft(), i = e0(e.data_series, n);
23652
- return /* @__PURE__ */ t(P, { name: "bar_chart", sx: { color: i } });
23657
+ return /* @__PURE__ */ t(H, { name: "bar_chart", sx: { color: i } });
23653
23658
  }, Uc = () => /* @__PURE__ */ l("svg", { fill: "none", height: "36", viewBox: "0 0 40 36", width: "40", xmlns: "http://www.w3.org/2000/svg", children: [
23654
23659
  /* @__PURE__ */ t(
23655
23660
  "path",
@@ -24433,8 +24438,8 @@ const Gi = g.createContext(null), Yf = ({
24433
24438
  ] })
24434
24439
  ] }), ds = ({ beat: e, clientColorScheme: n, color: i, type: a }) => {
24435
24440
  const r = pe(), o = n?.primary_300 ? n.primary_300 : r.palette.primary.main;
24436
- 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(
24437
- P,
24441
+ 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(
24442
+ H,
24438
24443
  {
24439
24444
  fill: !0,
24440
24445
  name: "info",
@@ -24666,7 +24671,7 @@ const Gi = g.createContext(null), Yf = ({
24666
24671
  y(V.targetTouches[0].clientX);
24667
24672
  }, U = (V) => {
24668
24673
  y(null), w(V.targetTouches[0].clientX);
24669
- }, H = {
24674
+ }, B = {
24670
24675
  clientColorScheme: n,
24671
24676
  showCTAColocatedWithText: i,
24672
24677
  heightOverrides: a,
@@ -24674,7 +24679,7 @@ const Gi = g.createContext(null), Yf = ({
24674
24679
  showIcon: c,
24675
24680
  variant: _,
24676
24681
  widthOverrides: u
24677
- }, j = m.current && m.current.offsetWidth ? Math.round(C / m.current.offsetWidth) : 0, me = m.current ? m.current.scrollWidth - m.current.offsetWidth : 0;
24682
+ }, j = m.current && m.current.offsetWidth ? Math.round(C / m.current.offsetWidth) : 0, he = m.current ? m.current.scrollWidth - m.current.offsetWidth : 0;
24678
24683
  return /* @__PURE__ */ l(
24679
24684
  "div",
24680
24685
  {
@@ -24694,11 +24699,11 @@ const Gi = g.createContext(null), Yf = ({
24694
24699
  ref: m,
24695
24700
  children: [
24696
24701
  e.map((V, Ce) => {
24697
- const ge = Ce + 1, _e = e.length + 1, He = S(
24702
+ const me = Ce + 1, _e = e.length + 1, He = S(
24698
24703
  N.card_position_in_carousel_aria,
24699
- ge.toString(),
24704
+ me.toString(),
24700
24705
  _e.toString()
24701
- ), 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;
24706
+ ), 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;
24702
24707
  return /* @__PURE__ */ t(
24703
24708
  a0,
24704
24709
  {
@@ -24707,7 +24712,7 @@ const Gi = g.createContext(null), Yf = ({
24707
24712
  index: Ce,
24708
24713
  isActiveCard: Ce === j,
24709
24714
  onCardClick: r,
24710
- ...H
24715
+ ...B
24711
24716
  },
24712
24717
  `${V.guid} ${Ce}`
24713
24718
  );
@@ -24717,7 +24722,7 @@ const Gi = g.createContext(null), Yf = ({
24717
24722
  {
24718
24723
  isActiveCard: j === e.length,
24719
24724
  onCardClick: r,
24720
- ...H
24725
+ ...B
24721
24726
  }
24722
24727
  )
24723
24728
  ]
@@ -24731,7 +24736,7 @@ const Gi = g.createContext(null), Yf = ({
24731
24736
  numBeats: e.length + 1,
24732
24737
  onNextClick: R,
24733
24738
  onPreviousClick: D,
24734
- scrollRightBoundary: me,
24739
+ scrollRightBoundary: he,
24735
24740
  scrollX: C
24736
24741
  }
24737
24742
  )
@@ -24989,7 +24994,7 @@ const Gi = g.createContext(null), Yf = ({
24989
24994
  variant: N,
24990
24995
  widthOverrides: x
24991
24996
  }) => {
24992
- const R = at(), [D, $] = yt("STANDARD"), [O, L] = yt(!1), U = iu([d], fn), H = au([_], fn);
24997
+ const R = at(), [D, $] = yt("STANDARD"), [O, L] = yt(!1), U = iu([d], fn), B = au([_], fn);
24993
24998
  g.useEffect(() => {
24994
24999
  fn.isInitialized || fn.initialize(r, y, s);
24995
25000
  }, [r, y, s, fn.isInitialized]), g.useEffect(() => {
@@ -25007,7 +25012,7 @@ const Gi = g.createContext(null), Yf = ({
25007
25012
  showWithMargin: E,
25008
25013
  useDarkMode: T,
25009
25014
  widthOverrides: x
25010
- }, me = {
25015
+ }, he = {
25011
25016
  carouselSize: D,
25012
25017
  variant: N,
25013
25018
  ...j
@@ -25016,7 +25021,7 @@ const Gi = g.createContext(null), Yf = ({
25016
25021
  // The Theme provider must wrap the component so that the styles don't break when imported into other applications.
25017
25022
  /* @__PURE__ */ l(wl, { theme: R, children: [
25018
25023
  /* @__PURE__ */ t(Pd, {}),
25019
- /* @__PURE__ */ t(Yf, { onEvent: U, onPageview: H, store: fn, children: /* @__PURE__ */ l(_0, { heightOverrides: o, widthOverrides: x, children: [
25024
+ /* @__PURE__ */ t(Yf, { onEvent: U, onPageview: B, store: fn, children: /* @__PURE__ */ l(_0, { heightOverrides: o, widthOverrides: x, children: [
25020
25025
  (e || !fn.isInitialized) && /* @__PURE__ */ t(h0, {}),
25021
25026
  O && C && /* @__PURE__ */ t(
25022
25027
  u0,
@@ -25037,8 +25042,8 @@ const Gi = g.createContext(null), Yf = ({
25037
25042
  ...j
25038
25043
  }
25039
25044
  ),
25040
- O && !n.length && w && /* @__PURE__ */ t(Yc, { clientColorScheme: i, ...me }),
25041
- O && !n.length && !w && /* @__PURE__ */ t(jc, { ...me })
25045
+ O && !n.length && w && /* @__PURE__ */ t(Yc, { clientColorScheme: i, ...he }),
25046
+ O && !n.length && !w && /* @__PURE__ */ t(jc, { ...he })
25042
25047
  ] }) })
25043
25048
  ] })
25044
25049
  );
@@ -25219,7 +25224,7 @@ const Gi = g.createContext(null), Yf = ({
25219
25224
  /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: d }),
25220
25225
  /* @__PURE__ */ l(cn, { color: E ? "success.main" : "text.primary", children: [
25221
25226
  E ? "+" : "",
25222
- B(c, "0,0.00")
25227
+ P(c, "0,0.00")
25223
25228
  ] })
25224
25229
  ] }),
25225
25230
  /* @__PURE__ */ l(ae, { sx: { bgcolor: "background.paper" }, children: [
@@ -25340,7 +25345,7 @@ const Gi = g.createContext(null), Yf = ({
25340
25345
  variant: "body1",
25341
25346
  children: [
25342
25347
  c ? "+" : "",
25343
- B(n.amount, "0,0.00")
25348
+ P(n.amount, "0,0.00")
25344
25349
  ]
25345
25350
  }
25346
25351
  ),
@@ -25426,11 +25431,11 @@ const Gi = g.createContext(null), Yf = ({
25426
25431
  { id: we.EveryYear, label: c.frequency_every_year }
25427
25432
  ];
25428
25433
  g.useEffect(() => {
25429
- const u = Me(s.date);
25434
+ const u = ke(s.date);
25430
25435
  o(qi(u)), r(we.EveryMonth);
25431
25436
  }, [s]);
25432
25437
  const _ = (u) => {
25433
- const h = Me(s.date);
25438
+ const h = ke(s.date);
25434
25439
  switch (Number(u.target.value)) {
25435
25440
  case we.EveryWeek:
25436
25441
  o(ma(h));
@@ -25467,7 +25472,7 @@ const Gi = g.createContext(null), Yf = ({
25467
25472
  {
25468
25473
  InputLabelProps: { shrink: !0 },
25469
25474
  SelectProps: {
25470
- IconComponent: (u) => /* @__PURE__ */ t(P, { fill: !1, name: "expand_more", size: 20, sx: { mr: 4 }, ...u })
25475
+ IconComponent: (u) => /* @__PURE__ */ t(H, { fill: !1, name: "expand_more", size: 20, sx: { mr: 4 }, ...u })
25471
25476
  },
25472
25477
  defaultValue: 0,
25473
25478
  label: c.frequency,
@@ -25526,10 +25531,10 @@ const Gi = g.createContext(null), Yf = ({
25526
25531
  return /* @__PURE__ */ l(M, { children: [
25527
25532
  /* @__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: [
25528
25533
  /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 8, children: [
25529
- /* @__PURE__ */ t(P, { fill: !0, name: "add_box", size: 24, sx: { color: "primary.light" } }),
25534
+ /* @__PURE__ */ t(H, { fill: !0, name: "add_box", size: 24, sx: { color: "primary.light" } }),
25530
25535
  /* @__PURE__ */ t(p, { bold: !0, sx: { color: "primary.light" }, variant: "Body", children: n })
25531
25536
  ] }),
25532
- /* @__PURE__ */ t(P, { name: "chevron_right", size: 24, sx: { color: "primary.light" } })
25537
+ /* @__PURE__ */ t(H, { name: "chevron_right", size: 24, sx: { color: "primary.light" } })
25533
25538
  ] }) }) }) }),
25534
25539
  /* @__PURE__ */ t(G, {}),
25535
25540
  /* @__PURE__ */ t(
@@ -25629,8 +25634,8 @@ const Gi = g.createContext(null), Yf = ({
25629
25634
  value: e,
25630
25635
  variant: "fullWidth",
25631
25636
  children: [
25632
- /* @__PURE__ */ t(ke, { label: a.manage_expenses }),
25633
- /* @__PURE__ */ t(ke, { label: a.manage_income })
25637
+ /* @__PURE__ */ t(Me, { label: a.manage_expenses }),
25638
+ /* @__PURE__ */ t(Me, { label: a.manage_income })
25634
25639
  ]
25635
25640
  }
25636
25641
  ),
@@ -25864,7 +25869,7 @@ const Gi = g.createContext(null), Yf = ({
25864
25869
  /* @__PURE__ */ l(b, { alignItems: "flex-end", width: "100%", children: [
25865
25870
  /* @__PURE__ */ l(p, { bold: !0, color: _ ? "success.main" : "text.primary", variant: "body1", children: [
25866
25871
  _ ? "+" : "",
25867
- B(e.amount, "0,0.00")
25872
+ P(e.amount, "0,0.00")
25868
25873
  ] }),
25869
25874
  !n && /* @__PURE__ */ l(
25870
25875
  b,
@@ -25968,15 +25973,15 @@ const Gi = g.createContext(null), Yf = ({
25968
25973
  /* @__PURE__ */ l(b, { children: [
25969
25974
  /* @__PURE__ */ t(p, { bold: !0, variant: "body1", children: `${r} ${e}` }),
25970
25975
  /* @__PURE__ */ l(b, { direction: "row", gap: 2, mb: 8, children: [
25971
- /* @__PURE__ */ t(p, { bold: !0, variant: "caption", children: B(i, "0,0.00") }),
25976
+ /* @__PURE__ */ t(p, { bold: !0, variant: "caption", children: P(i, "0,0.00") }),
25972
25977
  /* @__PURE__ */ t(p, { variant: "caption", children: c.paid?.toLowerCase() }),
25973
25978
  a !== void 0 && /* @__PURE__ */ l(Z, { children: [
25974
25979
  /* @__PURE__ */ t(p, { variant: "caption", children: "/" }),
25975
- /* @__PURE__ */ t(p, { bold: !0, variant: "caption", children: B(a, "0,0.00") }),
25980
+ /* @__PURE__ */ t(p, { bold: !0, variant: "caption", children: P(a, "0,0.00") }),
25976
25981
  /* @__PURE__ */ t(p, { variant: "caption", children: c.missed?.toLowerCase() })
25977
25982
  ] }),
25978
25983
  /* @__PURE__ */ t(p, { variant: "caption", children: "/" }),
25979
- /* @__PURE__ */ t(p, { bold: !0, variant: "caption", children: B(n, "0,0.00") }),
25984
+ /* @__PURE__ */ t(p, { bold: !0, variant: "caption", children: P(n, "0,0.00") }),
25980
25985
  /* @__PURE__ */ t(p, { variant: "caption", children: c.expected })
25981
25986
  ] })
25982
25987
  ] }),
@@ -26041,13 +26046,13 @@ const Gi = g.createContext(null), Yf = ({
26041
26046
  (i || n) && /* @__PURE__ */ l(b, { children: [
26042
26047
  /* @__PURE__ */ l(Lt, { onChange: T, value: E, variant: "fullWidth", children: [
26043
26048
  /* @__PURE__ */ t(
26044
- ke,
26049
+ Me,
26045
26050
  {
26046
26051
  label: /* @__PURE__ */ t(p, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: e.upcoming })
26047
26052
  }
26048
26053
  ),
26049
26054
  /* @__PURE__ */ t(
26050
- ke,
26055
+ Me,
26051
26056
  {
26052
26057
  label: /* @__PURE__ */ t(p, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: e.paid })
26053
26058
  }
@@ -26255,7 +26260,7 @@ const Gi = g.createContext(null), Yf = ({
26255
26260
  };
26256
26261
  }, ta = ({ amount: e, label: n }) => /* @__PURE__ */ l(b, { direction: "column", children: [
26257
26262
  /* @__PURE__ */ t(p, { bold: !0, sx: { textTransform: "none" }, variant: "Body", children: n }),
26258
- /* @__PURE__ */ t(p, { variant: "XSmall", children: B(e, "0,0") })
26263
+ /* @__PURE__ */ t(p, { variant: "XSmall", children: P(e, "0,0") })
26259
26264
  ] }), R0 = ({
26260
26265
  data: e,
26261
26266
  isIncome: n = !1,
@@ -26295,7 +26300,7 @@ const Gi = g.createContext(null), Yf = ({
26295
26300
  }
26296
26301
  ),
26297
26302
  !h && c === "full" && /* @__PURE__ */ t(p, { bold: !0, color: "secondary", sx: { mb: { xs: 4, xl: 8 } }, children: s }),
26298
- /* @__PURE__ */ t(p, { variant: c === "mini" ? "H2" : "H1", children: B(h ? h.amount : e.totalAmount, "0,0") }),
26303
+ /* @__PURE__ */ t(p, { variant: c === "mini" ? "H2" : "H1", children: P(h ? h.amount : e.totalAmount, "0,0") }),
26299
26304
  !h && c === "mini" && /* @__PURE__ */ t(p, { color: "secondary", noWrap: !0, variant: "Tiny", children: s }),
26300
26305
  c === "full" && /* @__PURE__ */ t(
26301
26306
  ee,
@@ -26364,7 +26369,7 @@ const Gi = g.createContext(null), Yf = ({
26364
26369
  return o ? /* @__PURE__ */ l(M, { width: "100%", children: [
26365
26370
  /* @__PURE__ */ l(Lt, { onChange: f, value: u, variant: "fullWidth", children: [
26366
26371
  /* @__PURE__ */ t(
26367
- ke,
26372
+ Me,
26368
26373
  {
26369
26374
  label: /* @__PURE__ */ t(
26370
26375
  ta,
@@ -26377,7 +26382,7 @@ const Gi = g.createContext(null), Yf = ({
26377
26382
  }
26378
26383
  ),
26379
26384
  /* @__PURE__ */ t(
26380
- ke,
26385
+ Me,
26381
26386
  {
26382
26387
  label: /* @__PURE__ */ t(
26383
26388
  ta,
@@ -26481,7 +26486,7 @@ const Gi = g.createContext(null), Yf = ({
26481
26486
  width: "100%",
26482
26487
  children: [
26483
26488
  /* @__PURE__ */ t(p, { bold: i === s.guid, children: s.name }),
26484
- /* @__PURE__ */ t(p, { bold: i === s.guid, variant: "Body", children: B(s.amount, "0,0") })
26489
+ /* @__PURE__ */ t(p, { bold: i === s.guid, variant: "Body", children: P(s.amount, "0,0") })
26485
26490
  ]
26486
26491
  }
26487
26492
  )
@@ -26505,7 +26510,7 @@ const Gi = g.createContext(null), Yf = ({
26505
26510
  c.name,
26506
26511
  " "
26507
26512
  ] }),
26508
- /* @__PURE__ */ t(p, { children: B(c.amount, "0,0") })
26513
+ /* @__PURE__ */ t(p, { children: P(c.amount, "0,0") })
26509
26514
  ] })
26510
26515
  },
26511
26516
  c.guid
@@ -26513,7 +26518,7 @@ const Gi = g.createContext(null), Yf = ({
26513
26518
  /* @__PURE__ */ t(G, {})
26514
26519
  ] }) })
26515
26520
  ] }, s.guid)) }),
26516
- /* @__PURE__ */ t(p, { bold: !0, sx: { mt: 12, pr: 8, textAlign: "right" }, children: `${r.total}: ${B(e.totalAmount, "0,0")}` })
26521
+ /* @__PURE__ */ t(p, { bold: !0, sx: { mt: 12, pr: 8, textAlign: "right" }, children: `${r.total}: ${P(e.totalAmount, "0,0")}` })
26517
26522
  ] });
26518
26523
  }, G0 = A(k0), B0 = ({
26519
26524
  data: e,
@@ -26601,10 +26606,10 @@ const Gi = g.createContext(null), Yf = ({
26601
26606
  };
26602
26607
  if (m === 0)
26603
26608
  if (O === "other") {
26604
- const U = w.categoryData.find((H) => H.guid === "other");
26609
+ const U = w.categoryData.find((B) => B.guid === "other");
26605
26610
  d({
26606
26611
  ...L,
26607
- custom: (H) => !!U?.categoryTotals?.find((j) => j.guid === H.top_level_category_guid)
26612
+ custom: (B) => !!U?.categoryTotals?.find((j) => j.guid === B.top_level_category_guid)
26608
26613
  });
26609
26614
  } else
26610
26615
  d({
@@ -26621,7 +26626,7 @@ const Gi = g.createContext(null), Yf = ({
26621
26626
  return /* @__PURE__ */ l(M, { children: [
26622
26627
  /* @__PURE__ */ l(Lt, { onChange: R, value: m, variant: "fullWidth", children: [
26623
26628
  /* @__PURE__ */ t(
26624
- ke,
26629
+ Me,
26625
26630
  {
26626
26631
  label: /* @__PURE__ */ t(
26627
26632
  ta,
@@ -26634,7 +26639,7 @@ const Gi = g.createContext(null), Yf = ({
26634
26639
  }
26635
26640
  ),
26636
26641
  /* @__PURE__ */ t(
26637
- ke,
26642
+ Me,
26638
26643
  {
26639
26644
  label: /* @__PURE__ */ t(
26640
26645
  ta,
@@ -26883,7 +26888,7 @@ const K0 = (e) => e.reduce((i, a) => {
26883
26888
  }, tb = A(eb), nb = {
26884
26889
  view_transactions: "View Transactions"
26885
26890
  }, ib = ({ onBackClick: e, sx: n }) => {
26886
- 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({
26891
+ 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({
26887
26892
  start: no(Xe(jt(/* @__PURE__ */ new Date(), 6)), 1),
26888
26893
  end: Xe(/* @__PURE__ */ new Date())
26889
26894
  });
@@ -26911,7 +26916,7 @@ const K0 = (e) => e.reduce((i, a) => {
26911
26916
  stackedDatasets: _t.filter(tm),
26912
26917
  unstackedDatasets: _t.filter(xa)
26913
26918
  };
26914
- }, [_, O, U]), me = g.useMemo(() => {
26919
+ }, [_, O, U]), he = g.useMemo(() => {
26915
26920
  const Te = ie(
26916
26921
  U.start,
26917
26922
  s ? te.MONTH_SHORT_YEAR : te.MONTH_YEAR
@@ -26924,16 +26929,16 @@ const K0 = (e) => e.reduce((i, a) => {
26924
26929
  $(_t ?? D), a(W.TRENDS_CLICK_TOGGLE);
26925
26930
  }, Ce = (Te) => {
26926
26931
  const _t = no(Te?.[0], 1), un = Te?.[1], se = Hd(un, _t);
26927
- H({ start: _t, end: un }), a(W.TRENDS_CLICK_DATE, {
26932
+ B({ start: _t, end: un }), a(W.TRENDS_CLICK_DATE, {
26928
26933
  time_period: se + "M"
26929
26934
  });
26930
- }, ge = () => {
26935
+ }, me = () => {
26931
26936
  a(W.TRENDS_CLICK_FILTER);
26932
26937
  }, _e = (Te) => {
26933
26938
  L(Te);
26934
26939
  }, He = (Te) => {
26935
26940
  L(Te), a(W.TRENDS_CLICK_LEGEND, { category: u(Te) });
26936
- }, he = (Te) => {
26941
+ }, ge = (Te) => {
26937
26942
  a(W.TRENDS_HOVER_LEGEND, { category: u(Te) });
26938
26943
  }, Ke = (Te) => {
26939
26944
  a(W.TRENDS_HOVER_AREA, { category: Te });
@@ -26947,7 +26952,7 @@ const K0 = (e) => e.reduce((i, a) => {
26947
26952
  calendarActions: { onRangeChanged: Ce },
26948
26953
  dateRange: U,
26949
26954
  dateRangeVariant: "timeframebuttons",
26950
- onAccountsFilterClick: ge,
26955
+ onAccountsFilterClick: me,
26951
26956
  onBackClick: e,
26952
26957
  sx: n,
26953
26958
  title: y.title,
@@ -26982,7 +26987,7 @@ const K0 = (e) => e.reduce((i, a) => {
26982
26987
  children: u(O) || y.sub_title
26983
26988
  }
26984
26989
  ),
26985
- /* @__PURE__ */ t(p, { variant: r ? "Body" : "Small", children: me })
26990
+ /* @__PURE__ */ t(p, { variant: r ? "Body" : "Small", children: he })
26986
26991
  ] }),
26987
26992
  /* @__PURE__ */ t(
26988
26993
  lr,
@@ -27017,7 +27022,7 @@ const K0 = (e) => e.reduce((i, a) => {
27017
27022
  }
27018
27023
  },
27019
27024
  value: Te,
27020
- children: Te === "Chart" ? /* @__PURE__ */ t(P, { name: "table_chart_view" }) : /* @__PURE__ */ t(P, { name: "format_list_bulleted" })
27025
+ children: Te === "Chart" ? /* @__PURE__ */ t(H, { name: "table_chart_view" }) : /* @__PURE__ */ t(H, { name: "format_list_bulleted" })
27021
27026
  },
27022
27027
  Te
27023
27028
  ))
@@ -27028,7 +27033,7 @@ const K0 = (e) => e.reduce((i, a) => {
27028
27033
  ),
27029
27034
  /* @__PURE__ */ l(b, { alignItems: "center", flexDirection: "row", width: "100%", children: [
27030
27035
  /* @__PURE__ */ t(M, { flexGrow: 1, children: O && /* @__PURE__ */ l(ee, { onClick: () => L(""), sx: { p: 0, pr: 5 }, children: [
27031
- /* @__PURE__ */ t(P, { name: "arrow_back" }),
27036
+ /* @__PURE__ */ t(H, { name: "arrow_back" }),
27032
27037
  y.all_categories
27033
27038
  ] }) }),
27034
27039
  /* @__PURE__ */ t(ee, { onClick: () => R(!0), sx: { px: 5 }, children: `${nb.view_transactions} (${h.length})` })
@@ -27039,7 +27044,7 @@ const K0 = (e) => e.reduce((i, a) => {
27039
27044
  {
27040
27045
  onClickLegend: He,
27041
27046
  onHoverArea: Ke,
27042
- onHoverLegend: he,
27047
+ onHoverLegend: ge,
27043
27048
  onHoverPoint: je,
27044
27049
  stackedDatasets: j.stackedDatasets,
27045
27050
  unstackedDatasets: j.unstackedDatasets
@@ -27297,7 +27302,7 @@ export {
27297
27302
  S as buildDynamicCopy,
27298
27303
  aE as buildPluralCopy,
27299
27304
  nc as exportTransactionsToCSV,
27300
- B as formatCurrency,
27305
+ P as formatCurrency,
27301
27306
  ie as formatDate,
27302
27307
  Ws as formatOrdinal,
27303
27308
  pa as formatPercentage,