@mx-cartographer/experiences 6.25.0-alpha.sms1 → 6.25.0-alpha.sms3

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 F from "@mui/material/Divider";
6
6
  import ie from "@mui/material/List";
7
7
  import Ot from "@mui/material/ListSubheader";
8
8
  import Re from "@mui/system/Stack";
9
- import { AccountsIcon as xl, P as _e, Icon as K, useTokens as yt, Text as C, H2 as sn, CategoryIcon as Mt, DialogHeader as Il, DialogFooter as wl, Drawer as vl, Footer as Nl, DateRangePicker as Fo, H3 as rt, H1 as $t, TextField as yn, IconWeight as At, MerchantLogo as on, CategoryIconList as Dl, CategoryIconVariants as _s, InstitutionLogo as ft, ChevronRightIcon as hs, THEMES as Wo } from "@mxenabled/mxui";
9
+ import { AccountsIcon as xl, P as _e, Icon as K, useTokens as yt, Text as C, H2 as cn, CategoryIcon as Mt, DialogHeader as Il, DialogFooter as wl, Drawer as vl, Footer as Nl, DateRangePicker as Fo, H3 as rt, H1 as $t, TextField as En, IconWeight as At, MerchantLogo as on, CategoryIconList as Dl, CategoryIconVariants as _s, InstitutionLogo as ft, ChevronRightIcon as hs, THEMES as Wo } from "@mxenabled/mxui";
10
10
  import Rl from "bowser";
11
11
  import { getUnixTime as Pe } from "date-fns/getUnixTime";
12
12
  import { intlFormat as Ll } from "date-fns/intlFormat";
@@ -32,10 +32,10 @@ import ae from "@mui/material/ListItemText";
32
32
  import ms from "@mui/material/Popover";
33
33
  import b from "@mui/material/Stack";
34
34
  import zi from "@mui/material/Checkbox";
35
- import { alpha as Ml, lighten as Uo, darken as Vo, Stack as xe, Box as xn, useTheme as cn, Card as aa, CardContent as kl, Button as Gl } from "@mui/material";
35
+ import { alpha as Ml, lighten as Uo, darken as Vo, Stack as xe, Box as xn, useTheme as ln, Card as aa, CardContent as kl, Button as Gl } from "@mui/material";
36
36
  import pe from "@mui/material/styles/useTheme";
37
37
  import rn from "@mui/material/useMediaQuery";
38
- import { css as ln, keyframes as Bl } from "@mxenabled/cssinjs";
38
+ import { css as dn, keyframes as Bl } from "@mxenabled/cssinjs";
39
39
  import { addDays as Rn } from "date-fns/addDays";
40
40
  import { eachDayOfInterval as Hl } from "date-fns/eachDayOfInterval";
41
41
  import { eachWeekOfInterval as Pl } from "date-fns/eachWeekOfInterval";
@@ -56,7 +56,7 @@ import bt from "@mui/material/Card";
56
56
  import kt from "@mui/material/CardContent";
57
57
  import it from "@mui/material/Grid";
58
58
  import { differenceInCalendarDays as hd } from "date-fns/differenceInCalendarDays";
59
- import { endOfToday as En } from "date-fns/endOfToday";
59
+ import { endOfToday as sn } from "date-fns/endOfToday";
60
60
  import { endOfYear as Ko } from "date-fns/endOfYear";
61
61
  import { startOfYear as Yo } from "date-fns/startOfYear";
62
62
  import { subDays as It } from "date-fns/subDays";
@@ -68,7 +68,7 @@ import Vn from "@mui/material/ToggleButton";
68
68
  import ti from "@mui/material/ToggleButtonGroup";
69
69
  import md from "@mui/material/Dialog";
70
70
  import xs from "@mui/material/DialogContent";
71
- import dn from "@mui/material/CardHeader";
71
+ import un from "@mui/material/CardHeader";
72
72
  import { ConnectWidget as pd, ConnectionsWidget as Cd } from "@mxenabled/web-widget-sdk";
73
73
  import qa from "@mui/material/CircularProgress";
74
74
  import { v4 as fd } from "uuid";
@@ -94,7 +94,7 @@ import { AdapterDateFns as ni } from "@mui/x-date-pickers/AdapterDateFnsV3";
94
94
  import { DatePicker as Qa } from "@mui/x-date-pickers";
95
95
  import { LocalizationProvider as Ti } from "@mui/x-date-pickers/LocalizationProvider";
96
96
  import ii from "@mui/material/Collapse";
97
- import gn from "@mui/material/Skeleton";
97
+ import mn from "@mui/material/Skeleton";
98
98
  import { isAfter as tn } from "date-fns/isAfter";
99
99
  import { parseISO as Md } from "date-fns/parseISO";
100
100
  import { subQuarters as ws } from "date-fns/subQuarters";
@@ -115,7 +115,7 @@ import { getWeeksInMonth as qo } from "date-fns/getWeeksInMonth";
115
115
  import { DateCalendar as eo } from "@mui/x-date-pickers/DateCalendar";
116
116
  import Ls from "@mui/material/Badge";
117
117
  import { PickersDay as Fd } from "@mui/x-date-pickers/PickersDay";
118
- import fn from "@mui/material/Unstable_Grid2";
118
+ import bn from "@mui/material/Unstable_Grid2";
119
119
  import { formatDistanceToNow as Os } from "date-fns/formatDistanceToNow";
120
120
  import xi from "@mui/material/Accordion";
121
121
  import Ii from "@mui/material/AccordionDetails";
@@ -1274,7 +1274,7 @@ const xa = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
1274
1274
  globalStore: n,
1275
1275
  onEvent: i,
1276
1276
  onPageView: a
1277
- }) => /* @__PURE__ */ t(
1277
+ }) => (console.log("globalStore", n.accountStore.accounts), /* @__PURE__ */ t(
1278
1278
  Yn.Provider,
1279
1279
  {
1280
1280
  value: {
@@ -1285,7 +1285,7 @@ const xa = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
1285
1285
  },
1286
1286
  children: e
1287
1287
  }
1288
- ), Ys = g.createContext(null), co = ({ children: e, availableHeight: n, availableWidth: i }) => /* @__PURE__ */ t(
1288
+ )), Ys = g.createContext(null), co = ({ children: e, availableHeight: n, availableWidth: i }) => /* @__PURE__ */ t(
1289
1289
  Ys.Provider,
1290
1290
  {
1291
1291
  value: {
@@ -1653,7 +1653,7 @@ const Ou = (e, n) => {
1653
1653
  ] }),
1654
1654
  /* @__PURE__ */ t(C, { variant: "XSmall", children: n })
1655
1655
  ] });
1656
- }, Gu = (e, n) => ln({
1656
+ }, Gu = (e, n) => dn({
1657
1657
  alignItems: "center",
1658
1658
  display: "flex",
1659
1659
  gap: e.Spacing.XSmall,
@@ -1720,7 +1720,7 @@ const Ou = (e, n) => {
1720
1720
  ] });
1721
1721
  }, Bu = (e, n, i) => {
1722
1722
  const a = `expandBar-${Math.round(i)}`, o = Bl(a, { from: { height: 0 }, to: { height: i } });
1723
- return ln({
1723
+ return dn({
1724
1724
  display: "flex",
1725
1725
  flexDirection: "column",
1726
1726
  justifyContent: "flex-end",
@@ -1804,7 +1804,7 @@ const Ou = (e, n) => {
1804
1804
  }
1805
1805
  )
1806
1806
  ] });
1807
- }, Hu = (e, n) => ln({
1807
+ }, Hu = (e, n) => dn({
1808
1808
  display: "flex",
1809
1809
  flexDirection: "column",
1810
1810
  flexGrow: n === void 0 ? 1 : 0,
@@ -1883,7 +1883,7 @@ const Ou = (e, n) => {
1883
1883
  ] }),
1884
1884
  /* @__PURE__ */ t(ku, { color: i, labelAverage: r, labelMain: s })
1885
1885
  ] });
1886
- }, Vu = (e) => ln({
1886
+ }, Vu = (e) => dn({
1887
1887
  "& .mx-cmn-chart-container": {
1888
1888
  alignItems: "flex-end",
1889
1889
  display: "flex",
@@ -1894,13 +1894,13 @@ const Ou = (e, n) => {
1894
1894
  }), Ku = ({ copy: e, date: n, onNextClick: i, onPreviousClick: a }) => {
1895
1895
  const o = yt(), r = Yu(o);
1896
1896
  return /* @__PURE__ */ l("div", { className: `mx-cmn-calendar-header ${r}`, children: [
1897
- /* @__PURE__ */ t(sn, { className: "mx-cmn-calendar-header-title", variant: "H3", children: oe(n, ee.MONTH_YEAR) }),
1897
+ /* @__PURE__ */ t(cn, { className: "mx-cmn-calendar-header-title", variant: "H3", children: oe(n, ee.MONTH_YEAR) }),
1898
1898
  /* @__PURE__ */ l("div", { className: "mx-cmn-calendar-header-button-container", children: [
1899
1899
  /* @__PURE__ */ t(Q, { "aria-label": e.prevAria, onClick: a, children: /* @__PURE__ */ t(ps, { size: 24 }) }),
1900
1900
  /* @__PURE__ */ t(Q, { "aria-label": e.nextAria, onClick: i, children: /* @__PURE__ */ t(Qe, { size: 24 }) })
1901
1901
  ] })
1902
1902
  ] });
1903
- }, Yu = (e) => ln({
1903
+ }, Yu = (e) => dn({
1904
1904
  alignItems: "center",
1905
1905
  display: "flex",
1906
1906
  marginBottom: e.Spacing.Medium,
@@ -1950,7 +1950,7 @@ const Ou = (e, n) => {
1950
1950
  )
1951
1951
  }
1952
1952
  );
1953
- }, ju = (e) => ln({
1953
+ }, ju = (e) => dn({
1954
1954
  height: mi,
1955
1955
  width: mi,
1956
1956
  display: "flex",
@@ -2059,7 +2059,7 @@ const Xu = ({
2059
2059
  )) }, `w-${w}`)),
2060
2060
  /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-today-container", children: /* @__PURE__ */ t(Q, { onClick: y, size: "small", variant: "text", children: e.today }) })
2061
2061
  ] }) });
2062
- }, qu = (e) => ln({
2062
+ }, qu = (e) => dn({
2063
2063
  width: $u,
2064
2064
  "& .MuiPaper-root": {
2065
2065
  paddingLeft: 24,
@@ -2464,7 +2464,7 @@ const Xu = ({
2464
2464
  series: a,
2465
2465
  xData: o
2466
2466
  }) => {
2467
- const r = cn(), s = a.data[i], c = o[i];
2467
+ const r = ln(), s = a.data[i], c = o[i];
2468
2468
  return s === void 0 || !c ? null : /* @__PURE__ */ t(aa, { sx: { pt: 4, px: 8 }, children: /* @__PURE__ */ t(kl, { children: /* @__PURE__ */ l(xn, { alignItems: "center", display: "flex", flexDirection: "column", children: [
2469
2469
  /* @__PURE__ */ t(ec, { categoryGuid: e, topLevelCategoryGuid: n }),
2470
2470
  /* @__PURE__ */ t(C, { color: r.palette.text.secondary, variant: "Small", children: oe(c, ee.MONTH_SHORT_YEAR) }),
@@ -2827,7 +2827,7 @@ const Xu = ({
2827
2827
  margin: "auto",
2828
2828
  textAlign: "center"
2829
2829
  },
2830
- children: /* @__PURE__ */ t(sn, { bold: !0, variant: "Body", children: o })
2830
+ children: /* @__PURE__ */ t(cn, { bold: !0, variant: "Body", children: o })
2831
2831
  }
2832
2832
  ),
2833
2833
  /* @__PURE__ */ t(k, { width: "44px" })
@@ -2899,7 +2899,7 @@ const Xu = ({
2899
2899
  calendarActions: e,
2900
2900
  color: n = "primary",
2901
2901
  copy: i,
2902
- range: a = [Ye(Se()), We(En())],
2902
+ range: a = [Ye(Se()), We(sn())],
2903
2903
  shouldShrinkToIcon: o = !0,
2904
2904
  variant: r = "outlined"
2905
2905
  }) => {
@@ -2923,7 +2923,7 @@ const Xu = ({
2923
2923
  (r === "timeframebuttons" || r === "timeframetabs") && e.onRangeChanged(D());
2924
2924
  }, [I]);
2925
2925
  const D = () => {
2926
- const R = We(En());
2926
+ const R = We(sn());
2927
2927
  return [We(Tt(R, I)), R];
2928
2928
  }, O = (R) => {
2929
2929
  const L = [...d], U = d[0], te = d[1], ue = R === "previous";
@@ -3156,7 +3156,7 @@ const Xu = ({
3156
3156
  ] }),
3157
3157
  /* @__PURE__ */ t("div", { className: "mx-cmn-multi-segment-donut-children", children: o })
3158
3158
  ] });
3159
- }, l_ = (e, n) => ln({
3159
+ }, l_ = (e, n) => dn({
3160
3160
  height: n,
3161
3161
  marginTop: `-${e.Spacing.XSmall}px`,
3162
3162
  position: "relative",
@@ -3289,7 +3289,7 @@ const ha = ({
3289
3289
  }) => {
3290
3290
  const [d, { height: _, width: u }] = vi(), h = /* @__PURE__ */ l(Z, { children: [
3291
3291
  /* @__PURE__ */ t(
3292
- dn,
3292
+ un,
3293
3293
  {
3294
3294
  action: /* @__PURE__ */ t(
3295
3295
  Q,
@@ -3323,7 +3323,7 @@ const ha = ({
3323
3323
  const [_, { height: u, width: h }] = vi();
3324
3324
  return /* @__PURE__ */ l(bt, { className: e, sx: { ...c }, children: [
3325
3325
  /* @__PURE__ */ t(
3326
- dn,
3326
+ un,
3327
3327
  {
3328
3328
  action: a ? /* @__PURE__ */ t(Fe, { "aria-label": n, onClick: a, children: /* @__PURE__ */ t(_t, { name: "close", size: 24 }) }) : o && /* @__PURE__ */ t(Q, { endIcon: /* @__PURE__ */ t(Qe, {}), onClick: o, children: /* @__PURE__ */ t(C, { bold: !0, variant: "Small", children: r }) }),
3329
3329
  subheader: s || null,
@@ -3406,7 +3406,7 @@ const ha = ({
3406
3406
  },
3407
3407
  children: [
3408
3408
  m && /* @__PURE__ */ t(
3409
- dn,
3409
+ un,
3410
3410
  {
3411
3411
  action: /* @__PURE__ */ l(b, { alignItems: "center", flexDirection: "row", children: [
3412
3412
  v && i && /* @__PURE__ */ t(k, { sx: { flexGrow: 1 }, children: /* @__PURE__ */ t(
@@ -3623,7 +3623,7 @@ const cr = "connect_widget", lr = "connections_widget", m_ = ({
3623
3623
  ), u?.(!1)) : M.toString().match(D) ? r() ? (p(""), u?.(!0)) : (p(s), u?.(!1)) : (p(E.error_amount_is_invalid), u?.(!1)), _(M.toString());
3624
3624
  };
3625
3625
  return /* @__PURE__ */ t(
3626
- yn,
3626
+ En,
3627
3627
  {
3628
3628
  InputProps: {
3629
3629
  endAdornment: On().includes("fr-ca") ? /* @__PURE__ */ t(_e, { children: "$" }) : void 0,
@@ -3645,7 +3645,7 @@ const cr = "connect_widget", lr = "connections_widget", m_ = ({
3645
3645
  ...h
3646
3646
  }
3647
3647
  );
3648
- }, p_ = (e) => ln({
3648
+ }, p_ = (e) => dn({
3649
3649
  "& .MuiInputBase-adornedStart > .p": {
3650
3650
  marginRight: e.Spacing.Tiny
3651
3651
  }
@@ -3702,7 +3702,7 @@ const cr = "connect_widget", lr = "connections_widget", m_ = ({
3702
3702
  }
3703
3703
  );
3704
3704
  return /* @__PURE__ */ t(k, { className: "mx-cmn-search-box", px: r.Spacing.Large, py: r.Spacing.Medium, children: /* @__PURE__ */ t(
3705
- yn,
3705
+ En,
3706
3706
  {
3707
3707
  InputProps: {
3708
3708
  startAdornment: /* @__PURE__ */ t(ji, { position: "start", children: /* @__PURE__ */ t(K, { color: "disabled", name: "search", size: 26 }) }),
@@ -3857,7 +3857,7 @@ const cr = "connect_widget", lr = "connections_widget", m_ = ({
3857
3857
  return /* @__PURE__ */ l(g.Fragment, { children: [
3858
3858
  /* @__PURE__ */ l(bt, { sx: { m: 24 }, children: [
3859
3859
  /* @__PURE__ */ t(
3860
- dn,
3860
+ un,
3861
3861
  {
3862
3862
  avatar: /* @__PURE__ */ t(Cs, {}),
3863
3863
  sx: { ".MuiCardHeader-avatar": { mr: 8 } },
@@ -3912,7 +3912,7 @@ const cr = "connect_widget", lr = "connections_widget", m_ = ({
3912
3912
  },
3913
3913
  children: [
3914
3914
  /* @__PURE__ */ t(_t, { name: i, size: 54, sx: { color: e } }),
3915
- /* @__PURE__ */ t(sn, { color: "text.primary", sx: { textWrap: "wrap", textAlign: "center" }, children: n }),
3915
+ /* @__PURE__ */ t(cn, { color: "text.primary", sx: { textWrap: "wrap", textAlign: "center" }, children: n }),
3916
3916
  /* @__PURE__ */ t(
3917
3917
  C,
3918
3918
  {
@@ -4059,7 +4059,7 @@ const cr = "connect_widget", lr = "connections_widget", m_ = ({
4059
4059
  !a && n && /* @__PURE__ */ t(gt, { children: n })
4060
4060
  ] })
4061
4061
  }
4062
- ), bn = ({
4062
+ ), yn = ({
4063
4063
  isChecked: e,
4064
4064
  isDisabled: n = !1,
4065
4065
  onToggle: i,
@@ -5278,7 +5278,7 @@ const ac = (e, n) => {
5278
5278
  }, ih = (e, n, i) => {
5279
5279
  const {
5280
5280
  accounts: a = [],
5281
- dateRange: o = { start: Ye(Se()), end: En() },
5281
+ dateRange: o = { start: Ye(Se()), end: sn() },
5282
5282
  custom: r = () => !0,
5283
5283
  searchTerm: s = ""
5284
5284
  } = e;
@@ -5390,14 +5390,20 @@ class dh {
5390
5390
  constructor(n) {
5391
5391
  this.globalStore = n, this.uiStore = new lh(), this.api = new Ji(n.endpoint, n.sessionToken), this.beatApi = new Qn(n.endpoint, n.sessionToken), He(this);
5392
5392
  }
5393
- loadTransactionData = async () => {
5393
+ loadTransactionData = async ({
5394
+ associatedBeats: n,
5395
+ taggings: i,
5396
+ tags: a,
5397
+ transactionRules: o,
5398
+ transactions: r
5399
+ }) => {
5394
5400
  await Promise.all([
5395
- this.loadAssociatedBeats(Ye(/* @__PURE__ */ new Date())),
5396
- this.loadTags(),
5397
- this.loadTaggings(),
5398
- this.loadTransactionRules(),
5401
+ this.loadAssociatedBeats(Ye(/* @__PURE__ */ new Date()), n),
5402
+ this.loadTags(a),
5403
+ this.loadTaggings(i),
5404
+ this.loadTransactionRules(o),
5399
5405
  // By default loads 90 days of transactions
5400
- this.loadTransactions()
5406
+ this.loadTransactions(this.cachedStartDate, sn(), r)
5401
5407
  ]), q(() => {
5402
5408
  this.uiStore.setIsInitialized(!0);
5403
5409
  });
@@ -5451,34 +5457,35 @@ class dh {
5451
5457
  this.globalStore.categoryStore.categories,
5452
5458
  this.taggings
5453
5459
  );
5454
- loadAssociatedBeats = async (n) => {
5455
- const i = n ? ca(n, { representation: "date" }) : void 0, a = await this.beatApi.getBeatsWithAssociatedTransaction(i);
5456
- q(() => this.associatedBeats = a);
5460
+ getTransactionData = () => ({});
5461
+ loadAssociatedBeats = async (n, i) => {
5462
+ const a = n ? ca(n, { representation: "date" }) : void 0, o = i ?? await this.beatApi.getBeatsWithAssociatedTransaction(a);
5463
+ q(() => this.associatedBeats = o);
5457
5464
  };
5458
- loadTags = async () => {
5459
- const n = await this.api.getTags();
5460
- q(() => this.tags = n);
5465
+ loadTags = async (n) => {
5466
+ const i = n ?? await this.api.getTags();
5467
+ q(() => this.tags = i);
5461
5468
  };
5462
- loadTaggings = async () => {
5463
- const n = await this.api.getTaggings();
5464
- q(() => this.taggings = n);
5469
+ loadTaggings = async (n) => {
5470
+ const i = n ?? await this.api.getTaggings();
5471
+ q(() => this.taggings = i);
5465
5472
  };
5466
- loadTransactionRules = async () => {
5467
- const n = await this.api.getTransactionRules();
5468
- q(() => this.transactionRules = n);
5473
+ loadTransactionRules = async (n) => {
5474
+ const i = n ?? await this.api.getTransactionRules();
5475
+ q(() => this.transactionRules = i);
5469
5476
  };
5470
- loadTransactions = async (n = this.cachedStartDate, i = En()) => {
5477
+ loadTransactions = async (n = this.cachedStartDate, i = sn(), a) => {
5471
5478
  this.setIsLoading(!0), this.rawTransactions = [];
5472
5479
  try {
5473
- const a = await this.api.getTransactionsByDateRange(
5480
+ const o = a ?? await this.api.getTransactionsByDateRange(
5474
5481
  Pe(n),
5475
5482
  Pe(i)
5476
5483
  );
5477
5484
  q(() => {
5478
- this.rawTransactions = a;
5485
+ this.rawTransactions = o;
5479
5486
  });
5480
- } catch (a) {
5481
- console.error(`Error occurred while loading transactions: ${a}`);
5487
+ } catch (o) {
5488
+ console.error(`Error occurred while loading transactions: ${o}`);
5482
5489
  }
5483
5490
  this.setIsLoading(!1);
5484
5491
  };
@@ -5509,7 +5516,7 @@ class dh {
5509
5516
  }
5510
5517
  };
5511
5518
  setFilter = (n) => {
5512
- this.filter = n, n.dateRange && Je(n.dateRange.start, this.cachedStartDate) && this.loadTransactions(n.dateRange.start, En()).then(() => {
5519
+ this.filter = n, n.dateRange && Je(n.dateRange.start, this.cachedStartDate) && this.loadTransactions(n.dateRange.start, sn()).then(() => {
5513
5520
  n.dateRange && (this.cachedStartDate = n.dateRange.start);
5514
5521
  });
5515
5522
  };
@@ -5891,7 +5898,7 @@ const gh = ({ transaction: e, onClick: n }) => {
5891
5898
  }
5892
5899
  }
5893
5900
  ) });
5894
- }, vh = T(wh), un = () => {
5901
+ }, vh = T(wh), _n = () => {
5895
5902
  if (!g.useContext(Yn))
5896
5903
  throw new Error("useCategoryUiStore() must be used within the GlobalDataContext");
5897
5904
  return Ve().uiStore;
@@ -5916,7 +5923,7 @@ const Nh = ({
5916
5923
  isOpen: a,
5917
5924
  type: o
5918
5925
  }) => {
5919
- const [r, s] = g.useState(e), { categories: c } = x(), { setShouldDisableDrawerScroll: d } = un();
5926
+ const [r, s] = g.useState(e), { categories: c } = x(), { setShouldDisableDrawerScroll: d } = _n();
5920
5927
  let _ = "", u = [];
5921
5928
  const h = o === "delete";
5922
5929
  switch (o) {
@@ -5948,7 +5955,7 @@ const Nh = ({
5948
5955
  d(!1), i(r);
5949
5956
  },
5950
5957
  children: /* @__PURE__ */ t(xs, { children: h ? /* @__PURE__ */ t(C, { children: u }) : /* @__PURE__ */ t(
5951
- yn,
5958
+ En,
5952
5959
  {
5953
5960
  "aria-label": o === "edit" ? c.edit_subcategory_aria : c.add_subcategory_aria,
5954
5961
  name: "modify-subcategory",
@@ -5961,7 +5968,7 @@ const Nh = ({
5961
5968
  }
5962
5969
  );
5963
5970
  }, Eo = T(Nh), Dh = ({ parentCategory: e }) => {
5964
- const [n, i] = g.useState(!1), { addCategory: a } = Ve(), { categories: o } = x(), { onEvent: r } = X(), { setShouldDisableDrawerScroll: s } = un(), c = async (u) => {
5971
+ const [n, i] = g.useState(!1), { addCategory: a } = Ve(), { categories: o } = x(), { onEvent: r } = X(), { setShouldDisableDrawerScroll: s } = _n(), c = async (u) => {
5965
5972
  await a(u.trim(), e.guid), r(jt.ON_SUBCATEGORY_ADDED), i(!1);
5966
5973
  }, d = async () => {
5967
5974
  r(jt.ON_SUBCATEGORY_ADD_CLICK), s(!0), i(!0);
@@ -6036,7 +6043,7 @@ const Nh = ({
6036
6043
  showSelected: s,
6037
6044
  unselectable: c,
6038
6045
  unselectableText: d
6039
- } = un(), { categories: _ } = x(), { onEvent: u } = X(), [h, m] = g.useState(!1), [p, f] = g.useState(!1), E = !!n.revision, y = n.guid === a, A = !c.some((v) => v === n.guid);
6046
+ } = _n(), { categories: _ } = x(), { onEvent: u } = X(), [h, m] = g.useState(!1), [p, f] = g.useState(!1), E = !!n.revision, y = n.guid === a, A = !c.some((v) => v === n.guid);
6040
6047
  return /* @__PURE__ */ l(
6041
6048
  j,
6042
6049
  {
@@ -6111,7 +6118,7 @@ const Nh = ({
6111
6118
  }
6112
6119
  );
6113
6120
  }, Bh = T(Gh), Hh = ({ categories: e, parentCategory: n }) => {
6114
- const { expandedGuid: i, searchValue: a } = un(), o = n.guid === i, r = !!a;
6121
+ const { expandedGuid: i, searchValue: a } = _n(), o = n.guid === i, r = !!a;
6115
6122
  return /* @__PURE__ */ t(
6116
6123
  ii,
6117
6124
  {
@@ -6137,7 +6144,7 @@ const Nh = ({
6137
6144
  }
6138
6145
  );
6139
6146
  }, Ph = T(Hh), Fh = ({ category: e, subCategories: n }) => {
6140
- const { expandedGuid: i, searchValue: a, setExpandedGuid: o } = un(), { onEvent: r } = X(), s = e.guid === i, c = () => {
6147
+ const { expandedGuid: i, searchValue: a, setExpandedGuid: o } = _n(), { onEvent: r } = X(), s = e.guid === i, c = () => {
6141
6148
  const d = e.guid !== i ? e.guid : null;
6142
6149
  o(d), r(d ? jt.ON_CATEGORY_EXPANDED : jt.ON_CATEGORY_COLLAPSED);
6143
6150
  };
@@ -6176,7 +6183,7 @@ const Nh = ({
6176
6183
  /* @__PURE__ */ t(Ph, { categories: n, parentCategory: e })
6177
6184
  ] });
6178
6185
  }, rc = T(Fh), Wh = () => {
6179
- const { categories: e } = Ve(), { searchValue: n } = un(), { categories: i } = x(), o = ((r, s = "") => r.reduce((c, d) => {
6186
+ const { categories: e } = Ve(), { searchValue: n } = _n(), { categories: i } = x(), o = ((r, s = "") => r.reduce((c, d) => {
6180
6187
  if (d.parent_guid === null) {
6181
6188
  const u = [
6182
6189
  {
@@ -6216,7 +6223,7 @@ const Nh = ({
6216
6223
  setShowSelected: p,
6217
6224
  setUnselectable: f,
6218
6225
  setUnselectableText: E
6219
- } = un();
6226
+ } = _n();
6220
6227
  return g.useEffect(() => {
6221
6228
  n && u(n);
6222
6229
  }), g.useEffect(() => {
@@ -6376,17 +6383,18 @@ class Xh {
6376
6383
  console.error(`Error occurred while adding category: ${o}`);
6377
6384
  }
6378
6385
  };
6379
- loadCategories = async () => {
6386
+ getCategoryData = () => ({ categories: this.categories });
6387
+ loadCategories = async (n) => {
6380
6388
  try {
6381
- const n = await this.api.getCategories(), { default_categories: i } = this.globalStore.copyStore.copy.categories;
6389
+ const i = n ?? await this.api.getCategories(), { default_categories: a } = this.globalStore.copyStore.copy.categories;
6382
6390
  q(() => {
6383
- this.categories = n.map((a) => ({
6384
- ...a,
6385
- name: i[a.guid] ? i[a.guid].replace(/&/g, "&") : a.name
6391
+ this.categories = i.map((o) => ({
6392
+ ...o,
6393
+ name: a[o.guid] ? a[o.guid].replace(/&/g, "&") : o.name
6386
6394
  }));
6387
6395
  });
6388
- } catch (n) {
6389
- console.error(`Error occurred while getting categories: ${n}`);
6396
+ } catch (i) {
6397
+ console.error(`Error occurred while getting categories: ${i}`);
6390
6398
  }
6391
6399
  };
6392
6400
  loadDateRangeCategoryTotals = async (n, i, a) => {
@@ -7160,7 +7168,7 @@ const cc = ({ transaction: e }) => {
7160
7168
  onSecondaryAction: () => r(!1),
7161
7169
  children: [
7162
7170
  /* @__PURE__ */ t(
7163
- yn,
7171
+ En,
7164
7172
  {
7165
7173
  "aria-label": a.tags_placeholder,
7166
7174
  name: "add-tag",
@@ -7185,7 +7193,7 @@ const cc = ({ transaction: e }) => {
7185
7193
  }
7186
7194
  );
7187
7195
  return /* @__PURE__ */ t(k, { className: "mx-txn-tag-manager-search", px: o.Spacing.Large, py: o.Spacing.Medium, children: /* @__PURE__ */ t(
7188
- yn,
7196
+ En,
7189
7197
  {
7190
7198
  InputProps: {
7191
7199
  startAdornment: /* @__PURE__ */ t(ji, { position: "start", children: /* @__PURE__ */ t(Kd, { color: "disabled" }) }),
@@ -7262,7 +7270,7 @@ const cc = ({ transaction: e }) => {
7262
7270
  onSecondaryAction: () => _(!1),
7263
7271
  children: [
7264
7272
  /* @__PURE__ */ t(
7265
- yn,
7273
+ En,
7266
7274
  {
7267
7275
  "aria-describedby": f ? "update-tag-error" : void 0,
7268
7276
  "aria-label": c.tags_update_the_tag_name,
@@ -7590,7 +7598,7 @@ const cc = ({ transaction: e }) => {
7590
7598
  }
7591
7599
  ),
7592
7600
  /* @__PURE__ */ t(
7593
- yn,
7601
+ En,
7594
7602
  {
7595
7603
  label: i.payee_title,
7596
7604
  name: "payee",
@@ -7600,7 +7608,7 @@ const cc = ({ transaction: e }) => {
7600
7608
  }
7601
7609
  ),
7602
7610
  /* @__PURE__ */ t(
7603
- yn,
7611
+ En,
7604
7612
  {
7605
7613
  InputLabelProps: { shrink: !0 },
7606
7614
  SelectProps: { defaultValue: -1, IconComponent: to },
@@ -7668,7 +7676,7 @@ const cc = ({ transaction: e }) => {
7668
7676
  showInsights: i = !1,
7669
7677
  sx: a = {}
7670
7678
  }) => {
7671
- const { visibleAccounts: o, refreshAccounts: r } = Ce(), { is_mobile_webview: s } = Pt(), { setSearchValue: c } = un(), { onEvent: d } = X(), { common: _, transactions: u } = x(), {
7679
+ const { visibleAccounts: o, refreshAccounts: r } = Ce(), { is_mobile_webview: s } = Pt(), { setSearchValue: c } = _n(), { onEvent: d } = X(), { common: _, transactions: u } = x(), {
7672
7680
  displayedDateRange: h,
7673
7681
  isCopyLoaded: m,
7674
7682
  isInitialized: p,
@@ -8797,8 +8805,8 @@ const cc = ({ transaction: e }) => {
8797
8805
  end: We(U)
8798
8806
  });
8799
8807
  };
8800
- return /* @__PURE__ */ l(fn, { container: !0, sx: { pt: 16, px: 24, spacing: 24 }, children: [
8801
- /* @__PURE__ */ t(fn, { md: !0, sm: 12, width: "100%", children: /* @__PURE__ */ l(b, { sx: { gap: 16 }, children: [
8808
+ return /* @__PURE__ */ l(bn, { container: !0, sx: { pt: 16, px: 24, spacing: 24 }, children: [
8809
+ /* @__PURE__ */ t(bn, { md: !0, sm: 12, width: "100%", children: /* @__PURE__ */ l(b, { sx: { gap: 16 }, children: [
8802
8810
  /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
8803
8811
  /* @__PURE__ */ t(rt, { sx: { px: 24 }, children: S(
8804
8812
  e.header_title,
@@ -8878,7 +8886,7 @@ const cc = ({ transaction: e }) => {
8878
8886
  )
8879
8887
  ] })
8880
8888
  ] }) }),
8881
- n && /* @__PURE__ */ t(fn, { sx: { minWidth: 450 }, xs: "auto", children: /* @__PURE__ */ l(b, { gap: 24, children: [
8889
+ n && /* @__PURE__ */ t(bn, { sx: { minWidth: 450 }, xs: "auto", children: /* @__PURE__ */ l(b, { gap: 24, children: [
8882
8890
  /* @__PURE__ */ t(Ec, {}),
8883
8891
  /* @__PURE__ */ t(
8884
8892
  hi,
@@ -8899,7 +8907,7 @@ const cc = ({ transaction: e }) => {
8899
8907
  c(i);
8900
8908
  }, [i]), g.useEffect(() => {
8901
8909
  r && (h({
8902
- dateRange: { start: It(Se(), 90), end: En() },
8910
+ dateRange: { start: It(Se(), 90), end: sn() },
8903
8911
  accounts: s
8904
8912
  }), u({ start: Ye(/* @__PURE__ */ new Date()), end: We(/* @__PURE__ */ new Date()) }), _().finally());
8905
8913
  }, [r]), o ? /* @__PURE__ */ l(
@@ -8921,9 +8929,9 @@ const cc = ({ transaction: e }) => {
8921
8929
  title: a.title,
8922
8930
  children: [
8923
8931
  r && d ? /* @__PURE__ */ t(Bg, {}) : /* @__PURE__ */ l(b, { direction: "column", p: 48, spacing: 24, children: [
8924
- /* @__PURE__ */ t(gn, { height: 100, variant: "rounded", width: "100%" }),
8925
- /* @__PURE__ */ t(gn, { height: 100, variant: "rounded", width: "100%" }),
8926
- /* @__PURE__ */ t(gn, { height: 600, variant: "rounded", width: "100%" })
8932
+ /* @__PURE__ */ t(mn, { height: 100, variant: "rounded", width: "100%" }),
8933
+ /* @__PURE__ */ t(mn, { height: 100, variant: "rounded", width: "100%" }),
8934
+ /* @__PURE__ */ t(mn, { height: 600, variant: "rounded", width: "100%" })
8927
8935
  ] }),
8928
8936
  /* @__PURE__ */ t(
8929
8937
  ce,
@@ -8965,7 +8973,7 @@ const cc = ({ transaction: e }) => {
8965
8973
  d && _(i);
8966
8974
  }, [d]), g.useEffect(() => {
8967
8975
  u.length > 0 && (o({
8968
- dateRange: { start: It(Se(), 90), end: En() },
8976
+ dateRange: { start: It(Se(), 90), end: sn() },
8969
8977
  accounts: u
8970
8978
  }), s().finally());
8971
8979
  }, [u]), !c || !d ? /* @__PURE__ */ t(le, {}) : /* @__PURE__ */ t(
@@ -9074,7 +9082,7 @@ const cc = ({ transaction: e }) => {
9074
9082
  _(a);
9075
9083
  }, [a]), g.useEffect(() => {
9076
9084
  c && (A({
9077
- dateRange: { start: It(Se(), 90), end: En() },
9085
+ dateRange: { start: It(Se(), 90), end: sn() },
9078
9086
  accounts: d
9079
9087
  }), E({ start: Ye(/* @__PURE__ */ new Date()), end: We(/* @__PURE__ */ new Date()) }), u().finally(), i(!0));
9080
9088
  }, [c]);
@@ -10173,7 +10181,7 @@ const Jg = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
10173
10181
  return /* @__PURE__ */ l(b, { children: [
10174
10182
  /* @__PURE__ */ t($t, { pb: 12, children: i.welcome_title }),
10175
10183
  /* @__PURE__ */ t(
10176
- sn,
10184
+ cn,
10177
10185
  {
10178
10186
  color: a.palette.primary.light,
10179
10187
  pb: 8,
@@ -10449,7 +10457,7 @@ const Jg = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
10449
10457
  (O) => a.includes(O.guid) && w.includes(O.guid)
10450
10458
  );
10451
10459
  m(D), _({
10452
- dateRange: { start: It(Se(), 90), end: En() },
10460
+ dateRange: { start: It(Se(), 90), end: sn() },
10453
10461
  accounts: D.map((O) => O.guid)
10454
10462
  });
10455
10463
  }, [d, i]), !y || !A ? /* @__PURE__ */ t(le, {}) : u?.has_completed_cash_flow_onboarding ? /* @__PURE__ */ l(
@@ -10614,12 +10622,12 @@ function bm(e, n, i = 0) {
10614
10622
  payoffDuration: d ? "Stagnant" : xd(_, { format: ["years", "months"] }) || "0 months"
10615
10623
  };
10616
10624
  }
10617
- const _n = () => {
10625
+ const hn = () => {
10618
10626
  if (!g.useContext(Yn))
10619
10627
  throw new Error("useCateUiStore() must be used within the GlobalDataContext");
10620
10628
  return _a().uiStore;
10621
10629
  }, ym = ({ debts: e, onClickCta: n, sx: i }) => {
10622
- const a = cn(), { isMobile: o } = me(), { debts: r } = x(), { selectedDebtPriority: s } = _n(), { monthlyCashFlowProfile: c } = ct(), { payoffDate: d, payoffSavings: _, payoffDuration: u } = g.useMemo(() => {
10630
+ const a = ln(), { isMobile: o } = me(), { debts: r } = x(), { selectedDebtPriority: s } = hn(), { monthlyCashFlowProfile: c } = ct(), { payoffDate: d, payoffSavings: _, payoffDuration: u } = g.useMemo(() => {
10623
10631
  const h = c?.extra_payment ?? 0;
10624
10632
  return bm(e, s, h);
10625
10633
  }, [e, s, c]);
@@ -10671,7 +10679,7 @@ const _n = () => {
10671
10679
  }
10672
10680
  );
10673
10681
  }, Em = T(ym), Am = ({ isOpen: e, onClose: n, sx: i }) => {
10674
- const a = cn(), { debts: o } = x(), [r, s] = g.useState(!1);
10682
+ const a = ln(), { debts: o } = x(), [r, s] = g.useState(!1);
10675
10683
  return /* @__PURE__ */ t(
10676
10684
  ce,
10677
10685
  {
@@ -11118,7 +11126,7 @@ const _n = () => {
11118
11126
  },
11119
11127
  children: [
11120
11128
  /* @__PURE__ */ t(
11121
- dn,
11129
+ un,
11122
11130
  {
11123
11131
  sx: { pb: 0 },
11124
11132
  title: /* @__PURE__ */ t(rt, { sx: { pb: 4 }, children: oe(/* @__PURE__ */ new Date(), ee.MONTH_LONG) })
@@ -11149,7 +11157,7 @@ const _n = () => {
11149
11157
  /* @__PURE__ */ t(C, { variant: "Small", children: _?.name })
11150
11158
  ] }),
11151
11159
  /* @__PURE__ */ l(b, { gap: 8, mb: 24, mt: 4, children: [
11152
- /* @__PURE__ */ t(sn, { children: i.name || i.feed_name }),
11160
+ /* @__PURE__ */ t(cn, { children: i.name || i.feed_name }),
11153
11161
  /* @__PURE__ */ l(b, { direction: "row", justifyContent: "space-between", children: [
11154
11162
  /* @__PURE__ */ t(C, { bold: s, variant: "Body", children: o }),
11155
11163
  /* @__PURE__ */ t(C, { bold: !0, variant: "Body", children: P(r, "0,0.00") })
@@ -11293,7 +11301,7 @@ const Rc = ({
11293
11301
  }
11294
11302
  );
11295
11303
  }, Gm = () => {
11296
- const e = cn(), { debts: n } = x(), { selectedDebtChartData: i } = _n();
11304
+ const e = ln(), { debts: n } = x(), { selectedDebtChartData: i } = hn();
11297
11305
  return /* @__PURE__ */ l(Z, { children: [
11298
11306
  /* @__PURE__ */ l(
11299
11307
  bt,
@@ -11304,7 +11312,7 @@ const Rc = ({
11304
11312
  }
11305
11313
  },
11306
11314
  children: [
11307
- /* @__PURE__ */ t(dn, { sx: { pb: 0 }, title: /* @__PURE__ */ t(rt, { sx: { pb: 4 }, children: n.details_chart_title }) }),
11315
+ /* @__PURE__ */ t(un, { sx: { pb: 0 }, title: /* @__PURE__ */ t(rt, { sx: { pb: 4 }, children: n.details_chart_title }) }),
11308
11316
  /* @__PURE__ */ t(kt, { sx: { p: 0 }, children: /* @__PURE__ */ t(Rc, { debts: [i], height: 250 }) })
11309
11317
  ]
11310
11318
  }
@@ -11320,7 +11328,7 @@ const Rc = ({
11320
11328
  )
11321
11329
  ] });
11322
11330
  }, Bm = T(Gm), Hm = () => {
11323
- const e = cn(), { onEvent: n } = X(), { debts: i } = x(), { selectedDebtChartData: a, showCompleted: o, showError: r } = _n();
11331
+ const e = ln(), { onEvent: n } = X(), { debts: i } = x(), { selectedDebtChartData: a, showCompleted: o, showError: r } = hn();
11324
11332
  return g.useEffect(() => n(W.DEBT_SCHEDULE_VIEW), []), /* @__PURE__ */ t(ie, { children: r || o ? /* @__PURE__ */ t(
11325
11333
  C,
11326
11334
  {
@@ -11579,7 +11587,7 @@ const Rc = ({
11579
11587
  }
11580
11588
  );
11581
11589
  }), Vm = () => {
11582
- const { onEvent: e } = X(), { selectedDebtChartData: n } = _n();
11590
+ const { onEvent: e } = X(), { selectedDebtChartData: n } = hn();
11583
11591
  return g.useEffect(() => e(W.DEBT_DETAILS_VIEW), []), /* @__PURE__ */ l(b, { bgcolor: "background.paper", children: [
11584
11592
  n?.goal && /* @__PURE__ */ l(Z, { children: [
11585
11593
  /* @__PURE__ */ t(Oc, { goal: n.goal }),
@@ -11599,7 +11607,7 @@ const Rc = ({
11599
11607
  ] })
11600
11608
  ] });
11601
11609
  }, Km = T(Vm), Ym = ({ setTabValue: e, sx: n }) => {
11602
- const { debts: i } = x(), { showError: a, showCompleted: o } = _n();
11610
+ const { debts: i } = x(), { showError: a, showCompleted: o } = hn();
11603
11611
  return g.useEffect(() => {
11604
11612
  a && e(1);
11605
11613
  }, [a]), !a && !o ? /* @__PURE__ */ t(Z, {}) : /* @__PURE__ */ l(xe, { gap: 16, children: [
@@ -11644,7 +11652,7 @@ const Rc = ({
11644
11652
  ) })
11645
11653
  ] });
11646
11654
  }, zm = T(Ym), jm = () => {
11647
- const { debts: e } = x(), { showError: n, showCompleted: i } = _n(), [a, o] = g.useState(0);
11655
+ const { debts: e } = x(), { showError: n, showCompleted: i } = hn(), [a, o] = g.useState(0);
11648
11656
  return /* @__PURE__ */ l(Z, { children: [
11649
11657
  (n || i) && /* @__PURE__ */ t(zm, { setTabValue: o, sx: { mt: -24 } }),
11650
11658
  /* @__PURE__ */ l(
@@ -11680,7 +11688,7 @@ const Rc = ({
11680
11688
  /* @__PURE__ */ t(ei, { index: 1, name: "debt-details", value: a, children: /* @__PURE__ */ t(Km, {}) })
11681
11689
  ] });
11682
11690
  }, $m = T(jm), Xm = ({ isOpen: e, onClose: n, sx: i }) => {
11683
- const { debts: a } = x(), { showError: o, showCompleted: r } = _n(), s = o || r ? /* @__PURE__ */ t(Z, {}) : /* @__PURE__ */ t(Bm, {});
11691
+ const { debts: a } = x(), { showError: o, showCompleted: r } = hn(), s = o || r ? /* @__PURE__ */ t(Z, {}) : /* @__PURE__ */ t(Bm, {});
11684
11692
  return /* @__PURE__ */ t(
11685
11693
  ce,
11686
11694
  {
@@ -11821,7 +11829,7 @@ const Ut = (e) => /* @__PURE__ */ t(C, { fontWeight: 600, variant: "Small", chil
11821
11829
  onHoverRow: a,
11822
11830
  onClickRow: o
11823
11831
  }) => {
11824
- const r = cn(), { onEvent: s } = X(), { isMobile: c } = me(), { debts: d } = x(), [_, u] = g.useState([
11832
+ const r = ln(), { onEvent: s } = X(), { isMobile: c } = me(), { debts: d } = x(), [_, u] = g.useState([
11825
11833
  { field: "priority", sort: "asc" }
11826
11834
  ]), h = [
11827
11835
  {
@@ -11995,7 +12003,7 @@ const Ut = (e) => /* @__PURE__ */ t(C, { fontWeight: 600, variant: "Small", chil
11995
12003
  }
11996
12004
  );
11997
12005
  }, sp = T(({ buttonEl: e, onClose: n }) => {
11998
- const { onEvent: i } = X(), { debts: a } = x(), { selectedDebtPriority: o, setSelectedDebtPriority: r } = _n(), s = !!e, c = [
12006
+ const { onEvent: i } = X(), { debts: a } = x(), { selectedDebtPriority: o, setSelectedDebtPriority: r } = hn(), s = !!e, c = [
11999
12007
  {
12000
12008
  priority: Qt.HIGHEST_INTEREST,
12001
12009
  text: a.priority_sort_highest_interest
@@ -12054,7 +12062,7 @@ const Ut = (e) => /* @__PURE__ */ t(C, { fontWeight: 600, variant: "Small", chil
12054
12062
  }
12055
12063
  );
12056
12064
  }), cp = T(() => {
12057
- const { onEvent: e } = X(), { debts: n } = x(), { selectedDebtPriority: i } = _n(), [a, o] = g.useState(null), r = (_) => {
12065
+ const { onEvent: e } = X(), { debts: n } = x(), { selectedDebtPriority: i } = hn(), [a, o] = g.useState(null), r = (_) => {
12058
12066
  o(_.currentTarget), e(W.DEBTS_CLICK_PRIORITIZE);
12059
12067
  }, s = () => {
12060
12068
  o(null);
@@ -12119,7 +12127,7 @@ const Ut = (e) => /* @__PURE__ */ t(C, { fontWeight: 600, variant: "Small", chil
12119
12127
  }
12120
12128
  );
12121
12129
  }), up = ({ onBackClick: e, sx: n }) => {
12122
- const [i, a] = g.useState(!1), [o, r] = g.useState(!1), [s, c] = g.useState(!1), [d, _] = g.useState(""), { isDesktop: u, isMobile: h } = me(), { debts: m } = x(), { onEvent: p } = X(), { isCopyLoaded: f, isInitialized: E, setSelectedAccounts: y } = se(), { setSelectedAccount: A } = Ft(), { selectedDebtPriority: I, setSelectedDebtChartData: v } = _n(), { visibleDebtAccounts: w } = Ce(), { goalsLoaded: D, loadGoals: O, monthlyCashFlowProfile: G } = ct(), { debts: M } = _a(), R = g.useMemo(() => {
12130
+ const [i, a] = g.useState(!1), [o, r] = g.useState(!1), [s, c] = g.useState(!1), [d, _] = g.useState(""), { isDesktop: u, isMobile: h } = me(), { debts: m } = x(), { onEvent: p } = X(), { isCopyLoaded: f, isInitialized: E, setSelectedAccounts: y } = se(), { setSelectedAccount: A } = Ft(), { selectedDebtPriority: I, setSelectedDebtChartData: v } = hn(), { visibleDebtAccounts: w } = Ce(), { goalsLoaded: D, loadGoals: O, monthlyCashFlowProfile: G } = ct(), { debts: M } = _a(), R = g.useMemo(() => {
12123
12131
  const fe = G?.extra_payment ?? 0;
12124
12132
  return lp(M, I, fe);
12125
12133
  }, [M, I, G]);
@@ -12561,14 +12569,14 @@ const yp = (e, n) => {
12561
12569
  let f = /* @__PURE__ */ t(ys, {});
12562
12570
  return e.track_type === Y.DEBT_TRACK ? f = /* @__PURE__ */ t(Es, {}) : e.track_type === Y.RETIREMENT_TRACK && (f = /* @__PURE__ */ t(As, {})), /* @__PURE__ */ t(bt, { elevation: 2, children: /* @__PURE__ */ l(Ms, { disabled: !i, onClick: i, children: [
12563
12571
  /* @__PURE__ */ t(
12564
- dn,
12572
+ un,
12565
12573
  {
12566
12574
  avatar: /* @__PURE__ */ t(Ht, { sx: { bgcolor: c, color: d, height: 48, width: 48 }, variant: "rounded", children: f }),
12567
12575
  subheader: /* @__PURE__ */ t(C, { variant: n || s ? "H3" : "H2", children: `${P(e.current_amount, s ? "0,0" : "0,0.00")} / ${Ep(
12568
12576
  m,
12569
12577
  s
12570
12578
  )}` }),
12571
- title: /* @__PURE__ */ t(sn, { color: "text.secondary", fontWeight: 400, variant: "Body", children: e.name })
12579
+ title: /* @__PURE__ */ t(cn, { color: "text.secondary", fontWeight: 400, variant: "Body", children: e.name })
12572
12580
  }
12573
12581
  ),
12574
12582
  /* @__PURE__ */ t(kt, { sx: { pt: 0 }, children: /* @__PURE__ */ l(b, { gap: 6, children: [
@@ -12824,9 +12832,9 @@ const yp = (e, n) => {
12824
12832
  /* @__PURE__ */ t(C, { color: "text.secondary", variant: "Small", children: a.ongoing_title }),
12825
12833
  /* @__PURE__ */ t(Ip, { trackType: e })
12826
12834
  ] }),
12827
- c.length > 0 ? /* @__PURE__ */ t(fn, { container: !0, spacing: 24, children: c.map((u, h, m) => (
12835
+ c.length > 0 ? /* @__PURE__ */ t(bn, { container: !0, spacing: 24, children: c.map((u, h, m) => (
12828
12836
  // Goal should be full width in mobile or if it's the first goal (unless there are 2)
12829
- /* @__PURE__ */ t(fn, { xs: i || h === 0 && m.length !== 2 ? 12 : 6, children: /* @__PURE__ */ t(Gc, { goal: u, onClick: () => r(u) }, u.guid) }, h)
12837
+ /* @__PURE__ */ t(bn, { xs: i || h === 0 && m.length !== 2 ? 12 : 6, children: /* @__PURE__ */ t(Gc, { goal: u, onClick: () => r(u) }, u.guid) }, h)
12830
12838
  )) }) : /* @__PURE__ */ l(
12831
12839
  b,
12832
12840
  {
@@ -13697,7 +13705,7 @@ const Hp = T(({ goal: e }) => {
13697
13705
  return e.track_type === Y.DEBT_TRACK ? d = /* @__PURE__ */ t(Es, {}) : e.track_type === Y.RETIREMENT_TRACK && (d = /* @__PURE__ */ t(As, {})), /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", spacing: 12, sx: { py: 12 }, children: [
13698
13706
  /* @__PURE__ */ t(Ht, { sx: { bgcolor: a, color: o, height: 32, width: 32 }, variant: "rounded", children: d }),
13699
13707
  /* @__PURE__ */ l(k, { sx: { width: "100%" }, children: [
13700
- /* @__PURE__ */ t(sn, { fontSize: 15, fontWeight: 600, variant: "body1", children: e.name }),
13708
+ /* @__PURE__ */ t(cn, { fontSize: 15, fontWeight: 600, variant: "body1", children: e.name }),
13701
13709
  e.projected_to_complete_at && /* @__PURE__ */ t(C, { color: "text.secondary", variant: "XSmall", children: s })
13702
13710
  ] }),
13703
13711
  /* @__PURE__ */ t(
@@ -13728,7 +13736,7 @@ const Hp = T(({ goal: e }) => {
13728
13736
  r && /* @__PURE__ */ t(k, { children: /* @__PURE__ */ t("img", { alt: a.create_goals_header, src: c ? Fp : Pp }) }),
13729
13737
  /* @__PURE__ */ l(b, { sx: { alignItems: r ? "flex-start" : "center" }, children: [
13730
13738
  /* @__PURE__ */ t(jl, { size: 32 }),
13731
- /* @__PURE__ */ t(sn, { fontSize: 15, fontWeight: 600, children: e }),
13739
+ /* @__PURE__ */ t(cn, { fontSize: 15, fontWeight: 600, children: e }),
13732
13740
  /* @__PURE__ */ t(
13733
13741
  C,
13734
13742
  {
@@ -15164,7 +15172,7 @@ const H1 = ({ date: e }) => /* @__PURE__ */ t(k, { sx: { display: "flex", justif
15164
15172
  }
15165
15173
  ) }) : /* @__PURE__ */ t("div", { style: c.badge, children: /* @__PURE__ */ t(Mt, { categoryGuid: r?.category_guid, size: 36 }) });
15166
15174
  }, F1 = T(P1), W1 = ({ notification: e, onClick: n }) => {
15167
- const { updateNotification: i } = $s(), a = cn(), o = {
15175
+ const { updateNotification: i } = $s(), a = ln(), o = {
15168
15176
  card: {
15169
15177
  alignItems: "center",
15170
15178
  cursor: "pointer",
@@ -16346,7 +16354,7 @@ const Z1 = ({
16346
16354
  );
16347
16355
  }
16348
16356
  ), rC = T(({ rule: e }) => {
16349
- const { categories: n } = Ve(), { setSelectedGuid: i } = un(), { deleteTransactionRule: a, setSelectedRule: o } = pt(), { isDesktop: r, isTablet: s } = me(), [c, d] = g.useState(!1), _ = () => {
16357
+ const { categories: n } = Ve(), { setSelectedGuid: i } = _n(), { deleteTransactionRule: a, setSelectedRule: o } = pt(), { isDesktop: r, isTablet: s } = me(), [c, d] = g.useState(!1), _ = () => {
16350
16358
  d(!1), i(null), o(void 0);
16351
16359
  }, u = async () => {
16352
16360
  await a(), _();
@@ -16472,7 +16480,7 @@ const Z1 = ({
16472
16480
  /* @__PURE__ */ t(C, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "caption", children: i.delivery_method_title }),
16473
16481
  /* @__PURE__ */ l(ie, { sx: { bgcolor: "background.paper" }, children: [
16474
16482
  h && /* @__PURE__ */ t(b, { sx: { pl: 24 }, children: /* @__PURE__ */ t(
16475
- bn,
16483
+ yn,
16476
16484
  {
16477
16485
  isChecked: !d && n.email_channel && !!a.email,
16478
16486
  isDisabled: d || !a.email,
@@ -16484,7 +16492,7 @@ const Z1 = ({
16484
16492
  ) }),
16485
16493
  h && (p || m) && /* @__PURE__ */ t(F, { sx: { ml: s ? 0 : 24 } }),
16486
16494
  p && /* @__PURE__ */ t(b, { sx: { pl: 24 }, children: /* @__PURE__ */ t(
16487
- bn,
16495
+ yn,
16488
16496
  {
16489
16497
  isChecked: !u && n.sms_channel && !!a.phone,
16490
16498
  isDisabled: u || !a.phone,
@@ -16496,7 +16504,7 @@ const Z1 = ({
16496
16504
  ) }),
16497
16505
  p && m && /* @__PURE__ */ t(F, { sx: { ml: s ? 0 : 24 } }),
16498
16506
  m && /* @__PURE__ */ t(b, { sx: { pl: 24 }, children: /* @__PURE__ */ t(
16499
- bn,
16507
+ yn,
16500
16508
  {
16501
16509
  isChecked: !_ && n.push_channel,
16502
16510
  isDisabled: _,
@@ -16606,7 +16614,7 @@ const Z1 = ({
16606
16614
  ),
16607
16615
  f && /* @__PURE__ */ t(ii, { in: u, children: /* @__PURE__ */ l(ie, { sx: { bgcolor: "background.paper" }, children: [
16608
16616
  i && /* @__PURE__ */ t(
16609
- bn,
16617
+ yn,
16610
16618
  {
16611
16619
  isChecked: !s && e.email_channel && !!_.email,
16612
16620
  isDisabled: s || !_.email,
@@ -16619,7 +16627,7 @@ const Z1 = ({
16619
16627
  ),
16620
16628
  i && (o || a) && /* @__PURE__ */ t(F, { sx: { ml: 48 } }),
16621
16629
  o && /* @__PURE__ */ t(
16622
- bn,
16630
+ yn,
16623
16631
  {
16624
16632
  isChecked: !d && e.sms_channel && !!_.phone,
16625
16633
  isDisabled: d || !_.phone,
@@ -16632,7 +16640,7 @@ const Z1 = ({
16632
16640
  ),
16633
16641
  o && a && /* @__PURE__ */ t(F, { sx: { ml: 48 } }),
16634
16642
  a && /* @__PURE__ */ t(
16635
- bn,
16643
+ yn,
16636
16644
  {
16637
16645
  isChecked: !c && e.push_channel,
16638
16646
  isDisabled: c,
@@ -16666,7 +16674,7 @@ const Z1 = ({
16666
16674
  /* @__PURE__ */ t(rt, { sx: { mt: 24 }, children: n.delivery_method_title }),
16667
16675
  i.email_notifications_enabled && /* @__PURE__ */ l(Z, { children: [
16668
16676
  /* @__PURE__ */ t(
16669
- bn,
16677
+ yn,
16670
16678
  {
16671
16679
  isChecked: !!r.email && !o.opted_out_of_email_notifications,
16672
16680
  isDisabled: !r.email,
@@ -16683,7 +16691,7 @@ const Z1 = ({
16683
16691
  ] }),
16684
16692
  i.sms_notifications_enabled && /* @__PURE__ */ l(Z, { children: [
16685
16693
  /* @__PURE__ */ t(
16686
- bn,
16694
+ yn,
16687
16695
  {
16688
16696
  isChecked: !!r.phone && !o.opted_out_of_sms_notifications,
16689
16697
  isDisabled: !r.phone,
@@ -16696,7 +16704,7 @@ const Z1 = ({
16696
16704
  i.push_notifications_enabled && /* @__PURE__ */ t(F, {})
16697
16705
  ] }),
16698
16706
  i.push_notifications_enabled && /* @__PURE__ */ t(
16699
- bn,
16707
+ yn,
16700
16708
  {
16701
16709
  isChecked: !o.opted_out_of_push_notifications,
16702
16710
  isDisabled: !0,
@@ -17052,7 +17060,7 @@ const Z1 = ({
17052
17060
  }
17053
17061
  )
17054
17062
  ] }),
17055
- /* @__PURE__ */ t(sn, { color: "text.primary", sx: { mt: 24, whiteSpace: { sm: "nowrap", xs: "wrap" } }, children: r })
17063
+ /* @__PURE__ */ t(cn, { color: "text.primary", sx: { mt: 24, whiteSpace: { sm: "nowrap", xs: "wrap" } }, children: r })
17056
17064
  ] });
17057
17065
  }, Lt = ({
17058
17066
  altImage: e,
@@ -19794,7 +19802,7 @@ const Z1 = ({
19794
19802
  return /* @__PURE__ */ t(ce, { isOpen: i, onClose: o, title: e.request_support, children: /* @__PURE__ */ l(k, { sx: { px: 24 }, children: [
19795
19803
  /* @__PURE__ */ t(b, { sx: { alignItems: "center", pb: 24, pt: 80 }, children: /* @__PURE__ */ t(K, { color: "success", fill: !0, name: "check_circle", size: 64 }) }),
19796
19804
  /* @__PURE__ */ l(b, { sx: { alignItems: "center", gap: 16, pb: 48 }, children: [
19797
- /* @__PURE__ */ t(sn, { children: e.request_support_success }),
19805
+ /* @__PURE__ */ t(cn, { children: e.request_support_success }),
19798
19806
  /* @__PURE__ */ t(_e, { align: "center", variant: "Body", children: e.request_support_submit_success_message }),
19799
19807
  /* @__PURE__ */ t(C, { bold: !0, variant: "Body", children: n })
19800
19808
  ] }),
@@ -20843,8 +20851,8 @@ const ko = {
20843
20851
  (e, n) => ({
20844
20852
  ...e,
20845
20853
  [nl(n)]: {
20846
- action: Cn.MICRO_BEAT_CLICKED,
20847
- category: pn.BEAT_INTERACTION,
20854
+ action: fn.MICRO_BEAT_CLICKED,
20855
+ category: Cn.BEAT_INTERACTION,
20848
20856
  label: Go(n),
20849
20857
  value: Vt
20850
20858
  }
@@ -20854,8 +20862,8 @@ const ko = {
20854
20862
  (e, n) => ({
20855
20863
  ...e,
20856
20864
  [il(n)]: {
20857
- action: Cn.MICRO_BEAT_DISPLAYED,
20858
- category: pn.BEAT_INTERACTION,
20865
+ action: fn.MICRO_BEAT_DISPLAYED,
20866
+ category: Cn.BEAT_INTERACTION,
20859
20867
  label: Go(n),
20860
20868
  value: Vt
20861
20869
  }
@@ -20865,19 +20873,19 @@ const ko = {
20865
20873
  (e, n) => ({
20866
20874
  ...e,
20867
20875
  [al(n)]: {
20868
- action: Cn.MICRO_BEAT_DISPLAYED_FIRST_TIME,
20869
- category: pn.BEAT_INTERACTION,
20876
+ action: fn.MICRO_BEAT_DISPLAYED_FIRST_TIME,
20877
+ category: Cn.BEAT_INTERACTION,
20870
20878
  label: Go(n),
20871
20879
  value: Vt
20872
20880
  }
20873
20881
  }),
20874
20882
  {}
20875
- ), mn = {
20883
+ ), pn = {
20876
20884
  CARD: "Card",
20877
20885
  CAROUSEL_CONTROL: "Carousel Control",
20878
20886
  MICRO_WIDGET: "Micro Widget",
20879
20887
  VIEW_MORE: "View More"
20880
- }, pn = {
20888
+ }, Cn = {
20881
20889
  MICRO_WIDGET_INTERACTION: "Micro Widget Interaction",
20882
20890
  BEAT_INTERACTION: "Beat Interaction"
20883
20891
  }, Kt = {
@@ -20889,7 +20897,7 @@ const ko = {
20889
20897
  ON_VIEW_MORE_CLICKED: "onViewMoreClicked"
20890
20898
  }, ol = {
20891
20899
  ON_VIEW_MORE_VIEWED: "onViewMoreCardView"
20892
- }, Cn = {
20900
+ }, fn = {
20893
20901
  CONTROL_BACKWARD: "Control Backward",
20894
20902
  CONTROL_FORWARD: "Control Forward",
20895
20903
  MICRO_BEAT_CLICKED: "Micro Beat Clicked",
@@ -20903,21 +20911,21 @@ const ko = {
20903
20911
  MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS: "Micro Widget Carousel No Relevant Insights"
20904
20912
  }, Jr = {
20905
20913
  [In.MICRO_WIDGET_CAROUSEL]: {
20906
- label: mn.MICRO_WIDGET,
20914
+ label: pn.MICRO_WIDGET,
20907
20915
  name: In.MICRO_WIDGET_CAROUSEL,
20908
20916
  path: Qr.INSIGHTS_MICRO_WIDGET,
20909
20917
  value: Vt
20910
20918
  },
20911
20919
  // zero state
20912
20920
  [In.MICRO_WIDGET_CAROUSEL_ZERO_STATE]: {
20913
- label: mn.MICRO_WIDGET,
20921
+ label: pn.MICRO_WIDGET,
20914
20922
  name: In.MICRO_WIDGET_CAROUSEL_ZERO_STATE,
20915
20923
  path: Qr.INSIGHTS_MICRO_WIDGET,
20916
20924
  value: Vt
20917
20925
  },
20918
20926
  // no relevant cards
20919
20927
  [In.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS]: {
20920
- label: mn.MICRO_WIDGET,
20928
+ label: pn.MICRO_WIDGET,
20921
20929
  name: In.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS,
20922
20930
  path: "/micro-widget",
20923
20931
  value: Vt
@@ -20925,40 +20933,40 @@ const ko = {
20925
20933
  }, es = {
20926
20934
  // carousel control interaction events - clicks and swipes
20927
20935
  [Kt.ON_CAROUSEL_BACK_CLICK]: {
20928
- action: Cn.CONTROL_BACKWARD,
20929
- category: pn.MICRO_WIDGET_INTERACTION,
20930
- label: mn.CAROUSEL_CONTROL,
20936
+ action: fn.CONTROL_BACKWARD,
20937
+ category: Cn.MICRO_WIDGET_INTERACTION,
20938
+ label: pn.CAROUSEL_CONTROL,
20931
20939
  value: Vt
20932
20940
  },
20933
20941
  [Kt.ON_CAROUSEL_FORWARD_CLICK]: {
20934
- action: Cn.CONTROL_FORWARD,
20935
- category: pn.MICRO_WIDGET_INTERACTION,
20936
- label: mn.CAROUSEL_CONTROL,
20942
+ action: fn.CONTROL_FORWARD,
20943
+ category: Cn.MICRO_WIDGET_INTERACTION,
20944
+ label: pn.CAROUSEL_CONTROL,
20937
20945
  value: Vt
20938
20946
  },
20939
20947
  [Kt.ON_CAROUSEL_BACK_SWIPE]: {
20940
- action: Cn.SWIPE_BACKWARD,
20941
- category: pn.MICRO_WIDGET_INTERACTION,
20942
- label: mn.CAROUSEL_CONTROL,
20948
+ action: fn.SWIPE_BACKWARD,
20949
+ category: Cn.MICRO_WIDGET_INTERACTION,
20950
+ label: pn.CAROUSEL_CONTROL,
20943
20951
  value: Vt
20944
20952
  },
20945
20953
  [Kt.ON_CAROUSEL_FORWARD_SWIPE]: {
20946
- action: Cn.SWIPE_FORWARD,
20947
- category: pn.MICRO_WIDGET_INTERACTION,
20948
- label: mn.CAROUSEL_CONTROL,
20954
+ action: fn.SWIPE_FORWARD,
20955
+ category: Cn.MICRO_WIDGET_INTERACTION,
20956
+ label: pn.CAROUSEL_CONTROL,
20949
20957
  value: Vt
20950
20958
  },
20951
20959
  // read more card events
20952
20960
  [Kt.ON_VIEW_MORE_CLICKED]: {
20953
- action: Cn.MICRO_BEAT_CLICKED,
20954
- category: pn.BEAT_INTERACTION,
20955
- label: mn.VIEW_MORE,
20961
+ action: fn.MICRO_BEAT_CLICKED,
20962
+ category: Cn.BEAT_INTERACTION,
20963
+ label: pn.VIEW_MORE,
20956
20964
  value: Vt
20957
20965
  },
20958
20966
  [ol.ON_VIEW_MORE_VIEWED]: {
20959
- action: Cn.MICRO_BEAT_DISPLAYED,
20960
- category: pn.BEAT_INTERACTION,
20961
- label: mn.VIEW_MORE,
20967
+ action: fn.MICRO_BEAT_DISPLAYED,
20968
+ category: Cn.BEAT_INTERACTION,
20969
+ label: pn.VIEW_MORE,
20962
20970
  value: Vt
20963
20971
  },
20964
20972
  ...uf(),
@@ -21113,7 +21121,7 @@ const Li = g.createContext(null), pf = ({
21113
21121
  },
21114
21122
  children: [
21115
21123
  /* @__PURE__ */ t(
21116
- dn,
21124
+ un,
21117
21125
  {
21118
21126
  avatar: u && s,
21119
21127
  subheader: d && O,
@@ -21172,7 +21180,7 @@ const Li = g.createContext(null), pf = ({
21172
21180
  size: 16
21173
21181
  }
21174
21182
  );
21175
- }, bf = (e) => ln({
21183
+ }, bf = (e) => dn({
21176
21184
  marginTop: e.Spacing.XTiny,
21177
21185
  "& .kyper-categoryicon": {
21178
21186
  display: "flex"
@@ -22580,7 +22588,7 @@ const Li = g.createContext(null), pf = ({
22580
22588
  },
22581
22589
  children: /* @__PURE__ */ t(qa, {})
22582
22590
  }
22583
- ), hn = new mf(), kf = ({
22591
+ ), gn = new mf(), kf = ({
22584
22592
  allowSingleCardPeeking: e,
22585
22593
  areBeatsLoading: n,
22586
22594
  beats: i = [],
@@ -22611,15 +22619,15 @@ const Li = g.createContext(null), pf = ({
22611
22619
  visibleCardsCount: O = 1,
22612
22620
  widthOverrides: G
22613
22621
  }) => {
22614
- const M = dt(), [R, L] = Et("STANDARD"), [U, te] = Et(!1), ue = Ou([_], hn), ye = Mu([u], hn);
22622
+ const M = dt(), [R, L] = Et("STANDARD"), [U, te] = Et(!1), ue = Ou([_], gn), ye = Mu([u], gn);
22615
22623
  g.useEffect(() => {
22616
- hn.isInitialized || hn.initialize(r, I, c);
22617
- }, [r, I, c, hn.isInitialized]), g.useEffect(() => {
22624
+ gn.isInitialized || gn.initialize(r, I, c);
22625
+ }, [r, I, c, gn.isInitialized]), g.useEffect(() => {
22618
22626
  const ke = window.innerHeight;
22619
22627
  ke < 180 ? L("STANDARD") : ke >= 180 && ke < 200 ? L("LARGE") : ke >= 200 && ke < 248 ? L("XLARGE") : ke >= 248 && L("XXLARGE");
22620
22628
  }, [window.innerHeight]), g.useEffect(() => {
22621
- te(!n && hn.isInitialized);
22622
- }, [n, hn.isInitialized]);
22629
+ te(!n && gn.isInitialized);
22630
+ }, [n, gn.isInitialized]);
22623
22631
  const fe = {
22624
22632
  showCTAColocatedWithText: o,
22625
22633
  heightOverrides: s,
@@ -22638,8 +22646,8 @@ const Li = g.createContext(null), pf = ({
22638
22646
  // The Theme provider must wrap the component so that the styles don't break when imported into other applications.
22639
22647
  /* @__PURE__ */ l(id, { theme: M, children: [
22640
22648
  /* @__PURE__ */ t(Hd, {}),
22641
- /* @__PURE__ */ t(pf, { onEvent: ue, onPageview: ye, store: hn, children: /* @__PURE__ */ l(Of, { heightOverrides: s, widthOverrides: G, children: [
22642
- (n || !hn.isInitialized) && /* @__PURE__ */ t(Mf, {}),
22649
+ /* @__PURE__ */ t(pf, { onEvent: ue, onPageview: ye, store: gn, children: /* @__PURE__ */ l(Of, { heightOverrides: s, widthOverrides: G, children: [
22650
+ (n || !gn.isInitialized) && /* @__PURE__ */ t(Mf, {}),
22643
22651
  U && E && /* @__PURE__ */ t(
22644
22652
  Lf,
22645
22653
  {
@@ -22711,7 +22719,7 @@ const Li = g.createContext(null), pf = ({
22711
22719
  }
22712
22720
  );
22713
22721
  }, Hf = T(Bf), Pf = () => {
22714
- const e = cn(), { isMobile: n, isDesktop: i, isLargeDesktop: a } = me(), { beatStore: o, endpoint: r, sessionToken: s } = oi(), { isInitialized: c } = se(), { sortedCategoriesList: d } = Xs(), [_, u] = g.useState(!1), h = e.palette.mode === "dark", m = i || a, p = m || n ? 1 : 2;
22722
+ const e = ln(), { isMobile: n, isDesktop: i, isLargeDesktop: a } = me(), { beatStore: o, endpoint: r, sessionToken: s } = oi(), { isInitialized: c } = se(), { sortedCategoriesList: d } = Xs(), [_, u] = g.useState(!1), h = e.palette.mode === "dark", m = i || a, p = m || n ? 1 : 2;
22715
22723
  g.useEffect(() => {
22716
22724
  c && o.loadBeats().finally(() => u(!0));
22717
22725
  }, [c]);
@@ -22983,14 +22991,14 @@ class Kf {
22983
22991
  get userProfile() {
22984
22992
  return this.appData.user_profile;
22985
22993
  }
22986
- loadAppData = async () => {
22994
+ loadAppData = async (n) => {
22987
22995
  try {
22988
- const n = await this.api.getAppData();
22996
+ const i = n ?? await this.api.getAppData();
22989
22997
  q(() => {
22990
- this.appData = n, this.bannerApi = new er(n.address?.bullseye || "/");
22998
+ this.appData = i, this.bannerApi = new er(i.address?.bullseye || "/");
22991
22999
  });
22992
- } catch (n) {
22993
- console.error(`Error loading app data: ${n}`);
23000
+ } catch (i) {
23001
+ console.error(`Error loading app data: ${i}`);
22994
23002
  }
22995
23003
  };
22996
23004
  loadBanner = async () => {
@@ -23081,14 +23089,14 @@ class jf {
23081
23089
  get user() {
23082
23090
  return this.globalStore.appDataStore.user;
23083
23091
  }
23084
- loadUserFeatures = async () => {
23092
+ loadUserFeatures = async (n) => {
23085
23093
  try {
23086
- const n = await this.api.getUserFeatures();
23094
+ const i = n ?? await this.api.getUserFeatures();
23087
23095
  q(() => {
23088
- this.userFeatures = n;
23096
+ this.userFeatures = i;
23089
23097
  });
23090
- } catch (n) {
23091
- console.error(`Error occurred while loading user features: ${n}`);
23098
+ } catch (i) {
23099
+ console.error(`Error occurred while loading user features: ${i}`);
23092
23100
  }
23093
23101
  };
23094
23102
  updateUser = async (n) => {
@@ -23144,17 +23152,35 @@ class C2 {
23144
23152
  get isInitialized() {
23145
23153
  return this.globalUiStore.isInitialized;
23146
23154
  }
23147
- loadData = async () => {
23155
+ loadData = async ({
23156
+ accounts: n,
23157
+ appData: i,
23158
+ associatedBeats: a,
23159
+ categories: o,
23160
+ institutions: r,
23161
+ members: s,
23162
+ taggings: c,
23163
+ tags: d,
23164
+ transactionRules: _,
23165
+ transactions: u,
23166
+ userFeatures: h
23167
+ }) => {
23148
23168
  await Promise.all([
23149
- // Load copy, config and user data
23169
+ // Load copy, config and quser data
23150
23170
  this.copyStore.loadCopy(),
23151
- this.appDataStore.loadAppData(),
23152
- this.userStore.loadUserFeatures()
23153
- ]), await Promise.all([
23154
- // this.accountStore.loadAccountData(),
23155
- this.categoryStore.loadCategories(),
23156
- this.transactionStore.loadTransactionData()
23157
- ]), this.globalUiStore.setInitialized(!0);
23171
+ this.appDataStore.loadAppData(i),
23172
+ this.userStore.loadUserFeatures(h)
23173
+ ]), console.log("accounts1", n), await Promise.all([
23174
+ this.accountStore.loadAccountData({ accounts: n, institutions: r, members: s }),
23175
+ this.categoryStore.loadCategories(o),
23176
+ this.transactionStore.loadTransactionData({
23177
+ associatedBeats: a,
23178
+ taggings: c,
23179
+ tags: d,
23180
+ transactionRules: _,
23181
+ transactions: u
23182
+ })
23183
+ ]);
23158
23184
  };
23159
23185
  }
23160
23186
  const Da = ({
@@ -24525,16 +24551,13 @@ class b0 {
24525
24551
  constructor(n) {
24526
24552
  this.globalStore = n, this.uiStore = new f0(), this.api = new os(n.endpoint, n.sessionToken), He(this);
24527
24553
  }
24528
- loadAccountData = async () => {
24529
- await Promise.all([this.loadAccounts(), this.loadInstitutions()]);
24530
- };
24531
- setAccountData = ({ accounts: n, institutions: i }) => {
24532
- this.accounts = n, this.institutions = i;
24533
- };
24534
24554
  getAccountData = () => ({
24535
24555
  accounts: this.accounts,
24536
24556
  institutions: this.institutions
24537
24557
  });
24558
+ loadAccountData = async ({ accounts: n, institutions: i, members: a }) => {
24559
+ await Promise.all([this.loadAccounts(n, a), this.loadInstitutions(i)]);
24560
+ };
24538
24561
  get cashAccounts() {
24539
24562
  return this.accounts.filter(
24540
24563
  (n) => n.account_type === re.CASH || n.account_type === re.CHECKING || n.account_type === re.PREPAID || n.account_type === re.SAVINGS || n.account_type === re.CHECKING_LINE_OF_CREDIT
@@ -24610,35 +24633,35 @@ class b0 {
24610
24633
  }
24611
24634
  }), i;
24612
24635
  };
24613
- loadAccounts = async () => {
24614
- await this.loadMembers();
24636
+ loadAccounts = async (n, i) => {
24637
+ await this.loadMembers(i);
24615
24638
  try {
24616
- const n = await this.api.getAccounts();
24639
+ const a = n || await this.api.getAccounts();
24617
24640
  q(() => {
24618
- this.accounts = this.sortAccounts(this.augmentAccounts(n));
24641
+ this.accounts = this.sortAccounts(this.augmentAccounts(a));
24619
24642
  });
24620
- } catch (n) {
24621
- console.error(`Error occurred while loading accounts: ${n}`);
24643
+ } catch (a) {
24644
+ console.error(`Error occurred while loading accounts: ${a}`);
24622
24645
  }
24623
24646
  };
24624
- loadInstitutions = async () => {
24647
+ loadInstitutions = async (n) => {
24625
24648
  try {
24626
- const n = await this.api.getInstitutions();
24649
+ const i = n || await this.api.getInstitutions();
24627
24650
  q(() => {
24628
- this.institutions = n;
24651
+ this.institutions = i;
24629
24652
  });
24630
- } catch (n) {
24631
- console.error(`Error occurred while loading institutions: ${n}`);
24653
+ } catch (i) {
24654
+ console.error(`Error occurred while loading institutions: ${i}`);
24632
24655
  }
24633
24656
  };
24634
- loadMembers = async () => {
24657
+ loadMembers = async (n) => {
24635
24658
  try {
24636
- const n = await this.api.getMembers();
24659
+ const i = n || await this.api.getMembers();
24637
24660
  q(() => {
24638
- this.members = n;
24661
+ this.members = i;
24639
24662
  });
24640
- } catch (n) {
24641
- console.error(`Error occurred while loading members: ${n}`);
24663
+ } catch (i) {
24664
+ console.error(`Error occurred while loading members: ${i}`);
24642
24665
  }
24643
24666
  };
24644
24667
  mergeAccounts = async (n) => {
@@ -24760,7 +24783,7 @@ const y0 = () => {
24760
24783
  }, E0 = T(y0), A0 = () => {
24761
24784
  const { response: e, setResponse: n } = lo(), { analytics: i } = x();
24762
24785
  return /* @__PURE__ */ t(
24763
- yn,
24786
+ En,
24764
24787
  {
24765
24788
  label: i.feedback,
24766
24789
  multiline: !0,
@@ -25363,7 +25386,7 @@ const G0 = ({
25363
25386
  )
25364
25387
  ] }) });
25365
25388
  }), z0 = T(({ category: e, parentBudget: n }) => {
25366
- const { budgets: i, common: a } = x(), { setExpandedGuid: o, setOnSelect: r } = un(), { addBudget: s } = ht(), [c, d] = g.useState(!1), [_, u] = g.useState(!1), [h, m] = g.useState(""), [p, f] = g.useState(void 0);
25389
+ const { budgets: i, common: a } = x(), { setExpandedGuid: o, setOnSelect: r } = _n(), { addBudget: s } = ht(), [c, d] = g.useState(!1), [_, u] = g.useState(!1), [h, m] = g.useState(""), [p, f] = g.useState(void 0);
25367
25390
  g.useEffect(() => {
25368
25391
  r((A) => {
25369
25392
  const I = e.subCategories.find((v) => v.guid === A);
@@ -25667,7 +25690,7 @@ const G0 = ({
25667
25690
  });
25668
25691
  };
25669
25692
  return /* @__PURE__ */ l(bt, { elevation: 2, children: [
25670
- /* @__PURE__ */ t(dn, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ t(rt, { children: n.budget_categories_title }) }),
25693
+ /* @__PURE__ */ t(un, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ t(rt, { children: n.budget_categories_title }) }),
25671
25694
  /* @__PURE__ */ t(kt, { sx: { p: 0, ":last-child": { p: 0 } }, children: /* @__PURE__ */ t(ie, { children: i.map((r) => /* @__PURE__ */ l(g.Fragment, { children: [
25672
25695
  /* @__PURE__ */ t(q0, { budget: r, onClick: o }),
25673
25696
  /* @__PURE__ */ t(F, {})
@@ -25710,7 +25733,7 @@ const G0 = ({
25710
25733
  }), p(!0), n(W.BUDGETS_CLICK_EDIT_INCOME);
25711
25734
  };
25712
25735
  return /* @__PURE__ */ l(bt, { elevation: 2, sx: { overflow: "visible" }, children: [
25713
- /* @__PURE__ */ t(dn, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ t(rt, { children: a.overview_title }) }),
25736
+ /* @__PURE__ */ t(un, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ t(rt, { children: a.overview_title }) }),
25714
25737
  /* @__PURE__ */ t(kt, { sx: { pt: 12, px: 24 }, children: /* @__PURE__ */ l(b, { gap: 24, children: [
25715
25738
  /* @__PURE__ */ l(b, { gap: 8, children: [
25716
25739
  /* @__PURE__ */ t(C, { bold: !0, sx: { mb: 8 }, variant: "Body", children: a.spending_title }),
@@ -26012,21 +26035,21 @@ const ab = ({ widgets: e, isLoading: n }) => {
26012
26035
  () => c.filter((u) => u.location === Wi.RightSide),
26013
26036
  [c]
26014
26037
  );
26015
- return /* @__PURE__ */ l(fn, { container: !0, spacing: a ? 0 : 24, sx: { overflow: "scroll" }, children: [
26016
- /* @__PURE__ */ t(fn, { xs: 12, children: o.isInitialized && /* @__PURE__ */ t(ib, {}) }),
26017
- /* @__PURE__ */ l(fn, { lg: 8, xs: 12, children: [
26038
+ return /* @__PURE__ */ l(bn, { container: !0, spacing: a ? 0 : 24, sx: { overflow: "scroll" }, children: [
26039
+ /* @__PURE__ */ t(bn, { xs: 12, children: o.isInitialized && /* @__PURE__ */ t(ib, {}) }),
26040
+ /* @__PURE__ */ l(bn, { lg: 8, xs: 12, children: [
26018
26041
  /* @__PURE__ */ t(J0, {}),
26019
26042
  n && /* @__PURE__ */ l(b, { direction: "column", spacing: 24, children: [
26020
- /* @__PURE__ */ t(gn, { height: 100, variant: "rounded", width: "100%" }),
26021
- /* @__PURE__ */ t(gn, { height: 300, variant: "rounded", width: "100%" }),
26022
- /* @__PURE__ */ t(gn, { height: 300, variant: "rounded", width: "100%" })
26043
+ /* @__PURE__ */ t(mn, { height: 100, variant: "rounded", width: "100%" }),
26044
+ /* @__PURE__ */ t(mn, { height: 300, variant: "rounded", width: "100%" }),
26045
+ /* @__PURE__ */ t(mn, { height: 300, variant: "rounded", width: "100%" })
26023
26046
  ] }),
26024
26047
  !n && /* @__PURE__ */ t(b, { direction: "column", spacing: 24, children: i ? d.map((u) => /* @__PURE__ */ t(g.Fragment, { children: u.component }, u.index)) : c.map((u) => /* @__PURE__ */ t(g.Fragment, { children: u.component }, u.index)) })
26025
26048
  ] }),
26026
- i && /* @__PURE__ */ t(fn, { lg: 4, children: n ? /* @__PURE__ */ l(b, { direction: "column", spacing: 24, children: [
26027
- /* @__PURE__ */ t(gn, { height: 200, variant: "rounded", width: "100%" }),
26028
- /* @__PURE__ */ t(gn, { height: 100, variant: "rounded", width: "100%" }),
26029
- /* @__PURE__ */ t(gn, { height: 300, variant: "rounded", width: "100%" })
26049
+ i && /* @__PURE__ */ t(bn, { lg: 4, children: n ? /* @__PURE__ */ l(b, { direction: "column", spacing: 24, children: [
26050
+ /* @__PURE__ */ t(mn, { height: 200, variant: "rounded", width: "100%" }),
26051
+ /* @__PURE__ */ t(mn, { height: 100, variant: "rounded", width: "100%" }),
26052
+ /* @__PURE__ */ t(mn, { height: 300, variant: "rounded", width: "100%" })
26030
26053
  ] }) : /* @__PURE__ */ t(b, { direction: "column", spacing: 24, children: _.map((u) => /* @__PURE__ */ t(g.Fragment, { children: u.component }, u.index)) }) })
26031
26054
  ] });
26032
26055
  }, T2 = T(ab), Bo = ({ sx: e = {} }) => {
@@ -27712,7 +27735,7 @@ const ab = ({ widgets: e, isLoading: n }) => {
27712
27735
  totalLabel: s,
27713
27736
  variant: c = "mini"
27714
27737
  }) => {
27715
- const { spending: d } = x(), _ = cn(), { isTablet: u } = me(), h = g.useMemo(
27738
+ const { spending: d } = x(), _ = ln(), { isTablet: u } = me(), h = g.useMemo(
27716
27739
  () => o ? e.categoryData.find((E) => E.guid === o) : void 0,
27717
27740
  [o]
27718
27741
  ), m = g.useMemo(() => e.donutData.length > 0 ? e.donutData : [{ id: "0", color: _.palette.divider, value: 100 }], [e, _]), p = () => {
@@ -28019,7 +28042,7 @@ const ab = ({ widgets: e, isLoading: n }) => {
28019
28042
  e.palette.chartMono.chartMono1,
28020
28043
  e.palette.chartMono.chartMono6
28021
28044
  ], Mb = () => {
28022
- const e = cn(), { categories: n, dateRangeCategoryTotals: i, loadDateRangeCategoryTotals: a } = Ve(), { goals: o, spending: r } = x(), { displayedDateRange: s, selectedAccounts: c, selectedAccountGuids: d } = se(), { setFilter: _, sortedTransactions: u } = Le(), [h, m] = g.useState(""), [p, f] = g.useState(0), [E, y] = g.useState(""), [A, I] = g.useState(!1);
28045
+ const e = ln(), { categories: n, dateRangeCategoryTotals: i, loadDateRangeCategoryTotals: a } = Ve(), { goals: o, spending: r } = x(), { displayedDateRange: s, selectedAccounts: c, selectedAccountGuids: d } = se(), { setFilter: _, sortedTransactions: u } = Le(), [h, m] = g.useState(""), [p, f] = g.useState(0), [E, y] = g.useState(""), [A, I] = g.useState(!1);
28023
28046
  g.useEffect(() => {
28024
28047
  a(
28025
28048
  c,
@@ -28336,7 +28359,7 @@ export {
28336
28359
  $ as TRANSACTION_EVENTS,
28337
28360
  ei as TabContentContainer,
28338
28361
  po as ToggleButtonListItem,
28339
- bn as ToggleListItem,
28362
+ yn as ToggleListItem,
28340
28363
  _i as TopActions,
28341
28364
  Y as TrackType,
28342
28365
  Ji as TransactionApi,
@@ -28393,7 +28416,7 @@ export {
28393
28416
  ht as useBudgetsStore,
28394
28417
  uo as useCashflowStore,
28395
28418
  Ve as useCategoryStore,
28396
- un as useCategoryUiStore,
28419
+ _n as useCategoryUiStore,
28397
28420
  Ou as useCombineEvents,
28398
28421
  Mu as useCombinePageviews,
28399
28422
  _a as useDebtStore,