@mx-cartographer/experiences 3.7.0-alpha.al16 → 3.7.0-alpha.al18

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
@@ -1,10 +1,10 @@
1
- import { jsx as t, jsxs as u, Fragment as aA } from "react/jsx-runtime";
1
+ import { jsx as t, jsxs as u, Fragment as nA } from "react/jsx-runtime";
2
2
  import g, { useMemo as Co, useRef as Gr, useEffect as he, useState as de, createContext as fo, useContext as mo } from "react";
3
3
  import { observer as x } from "mobx-react-lite";
4
4
  import S from "@mui/material/Box";
5
5
  import q from "@mui/material/Divider";
6
6
  import oA from "@mui/material/List";
7
- import nt from "@mui/material/ListSubheader";
7
+ import Fe from "@mui/material/ListSubheader";
8
8
  import Ia from "@mui/system/Stack";
9
9
  import { AccountsIcon as vo, P as vA, Icon as P, useTokens as SA, Text as y, H2 as $t, CategoryIcon as _e, DialogHeader as po, DialogFooter as yo, Drawer as Eo, Footer as wo, DateRangePicker as Da, H3 as To, H1 as Ee, TextField as Ne, IconWeight as BA, MerchantLogo as He, CategoryIconVariants as Xr, InstitutionLogo as we, THEMES as Oa, createMXTheme as Lt } from "@kyper/mui";
10
10
  import Lo from "bowser";
@@ -16,9 +16,9 @@ import iA from "@mui/material/Button";
16
16
  import St from "@mui/material/Tooltip";
17
17
  import HA from "@mui/material/IconButton";
18
18
  import Nn from "@mui/material/FormControlLabel";
19
- import U from "@mui/material/ListItem";
19
+ import j from "@mui/material/ListItem";
20
20
  import dA from "@mui/material/ListItemButton";
21
- import cA from "@mui/material/ListItemText";
21
+ import lA from "@mui/material/ListItemText";
22
22
  import bo from "@mui/material/Popover";
23
23
  import T from "@mui/material/Stack";
24
24
  import Bt from "@mui/material/Checkbox";
@@ -40,12 +40,12 @@ import ue from "@mui/material/Paper";
40
40
  import Po from "@mui/icons-material/KeyboardArrowLeftRounded";
41
41
  import No from "@mui/icons-material/KeyboardArrowRightRounded";
42
42
  import { isSameDay as FA } from "date-fns/isSameDay";
43
- import { isWithinInterval as At } from "date-fns/isWithinInterval";
43
+ import { isWithinInterval as et } from "date-fns/isWithinInterval";
44
44
  import * as Ae from "d3";
45
45
  import { selectAll as Mo, interpolateString as Ro, arc as _o } from "d3";
46
46
  import { useTheme as ze, keyframes as Ho, ThemeProvider as Qr } from "@mui/material/styles";
47
47
  import { ResponsiveChartContainer as zo, AreaPlot as qo, LinePlot as Bo, MarkPlot as Ko, BarPlot as ko, ChartsXAxis as Go, ChartsYAxis as Xo, ChartsReferenceLine as Qo, ChartsLegend as Fo, LineChart as Uo } from "@mui/x-charts";
48
- import { Stack as Ve, Box as re, useTheme as at, Card as Gn, CardContent as Fr, Divider as Mn, Grid as Pa, List as jo } from "@mui/material";
48
+ import { Stack as Je, Box as re, useTheme as at, Card as Gn, CardContent as Fr, Divider as Mn, Grid as Pa, List as jo } from "@mui/material";
49
49
  import { addYears as vt } from "date-fns/addYears";
50
50
  import { differenceInCalendarDays as Wo } from "date-fns/differenceInCalendarDays";
51
51
  import { endOfToday as Qe } from "date-fns/endOfToday";
@@ -58,7 +58,7 @@ import Xn from "@mui/material/ToggleButton";
58
58
  import Ur from "@mui/material/ToggleButtonGroup";
59
59
  import Vo from "@mui/material/Dialog";
60
60
  import jr from "@mui/material/DialogContent";
61
- import Je from "@mui/material/Card";
61
+ import Ze from "@mui/material/Card";
62
62
  import Qn from "@mui/material/CardHeader";
63
63
  import Wr from "@mui/material/CardContent";
64
64
  import { v4 as Jo } from "uuid";
@@ -70,11 +70,11 @@ import PA from "@mui/material/ListItemAvatar";
70
70
  import oe from "@mui/material/ListItemIcon";
71
71
  import { makeAutoObservable as bA, runInAction as Y, observable as $o } from "mobx";
72
72
  import { differenceInDays as As } from "date-fns/differenceInDays";
73
- import { getMonth as We } from "date-fns/getMonth";
73
+ import { getMonth as Ye } from "date-fns/getMonth";
74
74
  import { useVirtualizer as Yr } from "@tanstack/react-virtual";
75
75
  import { fromUnixTime as _a, isSameDay as es, format as Vr, subDays as ts, startOfToday as ns, endOfToday as as } from "date-fns";
76
76
  import { addQuarters as Ge } from "date-fns/addQuarters";
77
- import { addWeeks as Ye } from "date-fns/addWeeks";
77
+ import { addWeeks as Ve } from "date-fns/addWeeks";
78
78
  import { getDay as pt } from "date-fns/getDay";
79
79
  import { nextDay as Rn } from "date-fns/nextDay";
80
80
  import { setDate as _n } from "date-fns/setDate";
@@ -388,7 +388,7 @@ const N = {
388
388
  day: "numeric",
389
389
  year: "numeric"
390
390
  }
391
- }, j = (A, e) => So(new Date(A), Object.assign(e), { locale: Me() });
391
+ }, U = (A, e) => So(new Date(A), Object.assign(e), { locale: Me() });
392
392
  var Q = /* @__PURE__ */ ((A) => (A[A.ANY = 0] = "ANY", A[A.CHECKING = 1] = "CHECKING", A[A.SAVINGS = 2] = "SAVINGS", A[A.LOAN = 3] = "LOAN", A[A.CREDIT_CARD = 4] = "CREDIT_CARD", A[A.INVESTMENT = 5] = "INVESTMENT", A[A.LINE_OF_CREDIT = 6] = "LINE_OF_CREDIT", A[A.MORTGAGE = 7] = "MORTGAGE", A[A.PROPERTY = 8] = "PROPERTY", A[A.CASH = 9] = "CASH", A[A.INSURANCE = 10] = "INSURANCE", A[A.PREPAID = 11] = "PREPAID", A[A.CHECKING_LINE_OF_CREDIT = 12] = "CHECKING_LINE_OF_CREDIT", A[A.DIGITAL_WALLET = 13] = "DIGITAL_WALLET", A))(Q || {}), Ks = /* @__PURE__ */ ((A) => (A[A.NONE = 0] = "NONE", A[A.MONEY_MARKET = 1] = "MONEY_MARKET", A[A.CERTIFICATE_OF_DEPOSIT = 2] = "CERTIFICATE_OF_DEPOSIT", A[A.AUTO = 3] = "AUTO", A[A.STUDENT = 4] = "STUDENT", A[A.SMALL_BUSINESS = 5] = "SMALL_BUSINESS", A[A.PERSONAL = 6] = "PERSONAL", A[A.PERSONAL_WITH_COLLATERAL = 7] = "PERSONAL_WITH_COLLATERAL", A[A.HOME_EQUITY = 8] = "HOME_EQUITY", A[A.PLAN_401_K = 9] = "PLAN_401_K", A[A.PLAN_403_B = 10] = "PLAN_403_B", A[A.PLAN_529 = 11] = "PLAN_529", A[A.IRA = 12] = "IRA", A[A.ROLLOVER_IRA = 13] = "ROLLOVER_IRA", A[A.ROTH_IRA = 14] = "ROTH_IRA", A[A.TAXABLE = 15] = "TAXABLE", A[A.NON_TAXABLE = 16] = "NON_TAXABLE", A[A.BROKERAGE = 17] = "BROKERAGE", A[A.TRUST = 18] = "TRUST", A[A.UNIFORM_GIFTS_TO_MINORS_ACT = 19] = "UNIFORM_GIFTS_TO_MINORS_ACT", A[A.PLAN_457 = 20] = "PLAN_457", A[A.PENSION = 21] = "PENSION", A[A.EMPLOYEE_STOCK_OWNERSHIP_PLAN = 22] = "EMPLOYEE_STOCK_OWNERSHIP_PLAN", A[A.SIMPLIFIED_EMPLOYEE_PENSION = 23] = "SIMPLIFIED_EMPLOYEE_PENSION", A[A.SIMPLE_IRA = 24] = "SIMPLE_IRA", A[A.BOAT = 25] = "BOAT", A[A.POWERSPORTS = 26] = "POWERSPORTS", A[A.RV = 27] = "RV", A[A.HELOC = 28] = "HELOC", A[A.PLAN_ROTH_401_K = 29] = "PLAN_ROTH_401_K", A[A.FIXED_ANNUITY = 30] = "FIXED_ANNUITY", A[A.VARIABLE_ANNUITY = 31] = "VARIABLE_ANNUITY", A[A.VEHICLE_INSURANCE = 32] = "VEHICLE_INSURANCE", A[A.DISABILITY = 33] = "DISABILITY", A[A.HEALTH = 34] = "HEALTH", A[A.LONG_TERM_CARE = 35] = "LONG_TERM_CARE", A[A.PROPERTY_AND_CASUALTY = 36] = "PROPERTY_AND_CASUALTY", A[A.UNIVERSAL_LIFE = 37] = "UNIVERSAL_LIFE", A[A.TERM_LIFE = 38] = "TERM_LIFE", A[A.WHOLE_LIFE = 39] = "WHOLE_LIFE", A[A.ACCIDENTAL_DEATH_AND_DISMEMBERMENT = 40] = "ACCIDENTAL_DEATH_AND_DISMEMBERMENT", A[A.VARIABLE_UNIVERSAL_LIFE = 41] = "VARIABLE_UNIVERSAL_LIFE", A[A.HSA = 42] = "HSA", A[A.TAX_FREE_SAVINGS_ACCOUNT = 43] = "TAX_FREE_SAVINGS_ACCOUNT", A[A.INDIVIDUAL = 44] = "INDIVIDUAL", A[A.REGISTERED_RETIREMENT_INCOME_FUND = 45] = "REGISTERED_RETIREMENT_INCOME_FUND", A[A.CASH_MANAGEMENT_ACCOUNT = 46] = "CASH_MANAGEMENT_ACCOUNT", A[A.EMPLOYEE_STOCK_PURCHASE_PLAN = 47] = "EMPLOYEE_STOCK_PURCHASE_PLAN", A[A.REGISTERED_EDUCATION_SAVINGS_PLAN = 48] = "REGISTERED_EDUCATION_SAVINGS_PLAN", A[A.PROFIT_SHARING_PLAN = 49] = "PROFIT_SHARING_PLAN", A[A.UNIFORM_TRANSFER_TO_MINORS_ACT = 50] = "UNIFORM_TRANSFER_TO_MINORS_ACT", A[A.PLAN_401_A = 51] = "PLAN_401_A", A[A.SARSEP_IRA = 52] = "SARSEP_IRA", A[A.FIXED_ANNUITY_TRADITIONAL_IRA = 53] = "FIXED_ANNUITY_TRADITIONAL_IRA", A[A.VARIABLE_ANNUITY_TRADITIONAL_IRA = 54] = "VARIABLE_ANNUITY_TRADITIONAL_IRA", A[A.SEPP_IRA = 55] = "SEPP_IRA", A[A.INHERITED_TRADITIONAL_IRA = 56] = "INHERITED_TRADITIONAL_IRA", A[A.FIXED_ANNUITY_ROTH_IRA = 57] = "FIXED_ANNUITY_ROTH_IRA", A[A.VARIABLE_ANNUITY_ROTH_IRA = 58] = "VARIABLE_ANNUITY_ROTH_IRA", A[A.INHERITED_ROTH_IRA = 59] = "INHERITED_ROTH_IRA", A[A.COVERDELL = 60] = "COVERDELL", A[A.ADVISORY_ACCOUNT = 61] = "ADVISORY_ACCOUNT", A[A.BROKERAGE_MARGIN = 62] = "BROKERAGE_MARGIN", A[A.CHARITABLE_GIFT_ACCOUNT = 63] = "CHARITABLE_GIFT_ACCOUNT", A[A.CHURCH_ACCOUNT = 64] = "CHURCH_ACCOUNT", A[A.CONSERVATORSHIP = 65] = "CONSERVATORSHIP", A[A.CUSTODIAL = 66] = "CUSTODIAL", A[A.DEFINED_BENEFIT_PLAN = 67] = "DEFINED_BENEFIT_PLAN", A[A.DEFINED_CONTRIBUTION_PLAN = 68] = "DEFINED_CONTRIBUTION_PLAN", A[A.EDUCATIONAL = 69] = "EDUCATIONAL", A[A.ESTATE = 70] = "ESTATE", A[A.EXECUTOR = 71] = "EXECUTOR", A[A.GROUP_RETIREMENT_SAVINGS_PLAN = 72] = "GROUP_RETIREMENT_SAVINGS_PLAN", A[A.GUARANTEED_INVESTMENT_CERTIFICATE = 73] = "GUARANTEED_INVESTMENT_CERTIFICATE", A[A.HRA = 74] = "HRA", A[A.INDEXED_ANNUITY = 75] = "INDEXED_ANNUITY", A[A.INVESTMENT_CLUB = 76] = "INVESTMENT_CLUB", A[A.IRREVOCABLE_TRUST = 77] = "IRREVOCABLE_TRUST", A[A.JOINT_TENANTS_BY_ENTIRITY = 78] = "JOINT_TENANTS_BY_ENTIRITY", A[A.JOINT_TENANTS_COMMUNITY_PROPERTY = 79] = "JOINT_TENANTS_COMMUNITY_PROPERTY", A[A.JOINT_TENANTS_IN_COMMON = 80] = "JOINT_TENANTS_IN_COMMON", A[A.JOINT_TENANTS_WITH_RIGHTS_OF_SURVIVORSHIP = 81] = "JOINT_TENANTS_WITH_RIGHTS_OF_SURVIVORSHIP", A[A.KEOUGH_PLAN = 82] = "KEOUGH_PLAN", A[A.LIFE_INCOME_FUND = 83] = "LIFE_INCOME_FUND", A[A.LIVING_TRUST = 84] = "LIVING_TRUST", A[A.LOCKED_IN_RETIREMENT_ACCOUNT = 85] = "LOCKED_IN_RETIREMENT_ACCOUNT", A[A.LOCKED_IN_RETIREMENT_INVESTMENT_FUND = 86] = "LOCKED_IN_RETIREMENT_INVESTMENT_FUND", A[A.LOCKED_IN_RETIREMENT_SAVINGS_ACCOUNT = 87] = "LOCKED_IN_RETIREMENT_SAVINGS_ACCOUNT", A[A.MONEY_PURCHASE_PLAN = 88] = "MONEY_PURCHASE_PLAN", A[A.PARTNERSHIP = 89] = "PARTNERSHIP", A[A.PLAN_409_A = 90] = "PLAN_409_A", A[A.PLAN_ROTH_403_B = 91] = "PLAN_ROTH_403_B", A[A.REGISTERED_DISABILITY_SAVINGS_PLAN = 92] = "REGISTERED_DISABILITY_SAVINGS_PLAN", A[A.REGISTERED_LOCKED_IN_SAVINGS_PLAN = 93] = "REGISTERED_LOCKED_IN_SAVINGS_PLAN", A[A.REGISTERED_PENSION_PLAN = 94] = "REGISTERED_PENSION_PLAN", A[A.REGISTERED_RETIREMENT_SAVINGS_PLAN = 95] = "REGISTERED_RETIREMENT_SAVINGS_PLAN", A[A.REVOCABLE_TRUST = 96] = "REVOCABLE_TRUST", A[A.ROTH_CONVERSION = 97] = "ROTH_CONVERSION", A[A.SOLE_PROPRIETORSHIP = 98] = "SOLE_PROPRIETORSHIP", A[A.SPOUSAL_IRA = 99] = "SPOUSAL_IRA", A[A.SPOUSAL_ROTH_IRA = 100] = "SPOUSAL_ROTH_IRA", A[A.TESTAMENTARY_TRUST = 101] = "TESTAMENTARY_TRUST", A[A.THRIFT_SAVINGS_PLAN = 102] = "THRIFT_SAVINGS_PLAN", A[A.INHERITED_ANNUITY = 103] = "INHERITED_ANNUITY", A[A.CORPORATE_ACCOUNT = 104] = "CORPORATE_ACCOUNT", A[A.LIMITED_LIABILITY_ACCOUNT = 105] = "LIMITED_LIABILITY_ACCOUNT", A[A.HSA_SAVINGS = 106] = "HSA_SAVINGS", A[A.HSA_CHECKING = 107] = "HSA_CHECKING", A))(Ks || {}), ii = /* @__PURE__ */ ((A) => (A[A.REAL_ESTATE = 0] = "REAL_ESTATE", A[A.VEHICLE = 1] = "VEHICLE", A[A.ART = 2] = "ART", A[A.JEWELRY = 3] = "JEWELRY", A[A.FURNITURE = 4] = "FURNITURE", A[A.APPLIANCES = 5] = "APPLIANCES", A[A.COMPUTER = 6] = "COMPUTER", A[A.ELECTRONICS = 7] = "ELECTRONICS", A[A.SPORTS_EQUIPMENT = 8] = "SPORTS_EQUIPMENT", A[A.MISCELLANEOUS = 9] = "MISCELLANEOUS", A))(ii || {}), RA = /* @__PURE__ */ ((A) => (A[A.CREATED = 0] = "CREATED", A[A.PREVENTED = 1] = "PREVENTED", A[A.DENIED = 2] = "DENIED", A[A.CHALLENGED = 3] = "CHALLENGED", A[A.REJECTED = 4] = "REJECTED", A[A.LOCKED = 5] = "LOCKED", A[A.CONNECTED = 6] = "CONNECTED", A[A.IMPEDED = 7] = "IMPEDED", A[A.RECONNECTED = 8] = "RECONNECTED", A[A.DEGRADED = 9] = "DEGRADED", A[A.DISCONNECTED = 10] = "DISCONNECTED", A[A.DISCONTINUED = 11] = "DISCONTINUED", A[A.CLOSED = 12] = "CLOSED", A[A.DELAYED = 13] = "DELAYED", A[A.FAILED = 14] = "FAILED", A[A.UPDATED = 15] = "UPDATED", A[A.DISABLED = 16] = "DISABLED", A[A.IMPORTED = 17] = "IMPORTED", A[A.RESUMED = 18] = "RESUMED", A[A.EXPIRED = 19] = "EXPIRED", A[A.IMPAIRED = 20] = "IMPAIRED", A[A.PENDING = 21] = "PENDING", A))(RA || {});
393
393
  const ks = [
394
394
  0,
@@ -636,7 +636,7 @@ const qA = {
636
636
  p.CREDIT_CARD_PAYMENT,
637
637
  p.MORTGAGE_PAYMENT,
638
638
  p.AUTO_PAYMENT
639
- ], et = {
639
+ ], tt = {
640
640
  // Top-level categories
641
641
  [p.AUTO_AND_TRANSPORT]: "Auto & Transport",
642
642
  [p.BILLS_AND_UTILITIES]: "Bills & Utilities",
@@ -758,7 +758,7 @@ const qA = {
758
758
  [p.DENTIST]: "Dentist",
759
759
  [p.BONUS]: "Bonus",
760
760
  [p.PET_FOOD_SUPPLIES]: "Pet Food & Supplies"
761
- }, Ze = {
761
+ }, $e = {
762
762
  [p.AUTO_AND_TRANSPORT]: "#4B9DBC",
763
763
  [p.BILLS_AND_UTILITIES]: "#EF9B2C",
764
764
  [p.BUSINESS_SERVICES]: "#B3DE8C",
@@ -875,7 +875,7 @@ class $s {
875
875
  sendAnalyticsPageview = async (e) => this.fetchInstance.post(N.ANALYTICS_PAGEVIEWS, e).catch(() => {
876
876
  });
877
877
  }
878
- class tt {
878
+ class nt {
879
879
  fetchInstance;
880
880
  constructor(e, n) {
881
881
  this.fetchInstance = new XA(e, n);
@@ -1049,7 +1049,7 @@ const vn = (A, e) => A.reduce((n, a) => (n[a.guid] = e?.includes(a.guid), n), {}
1049
1049
  }
1050
1050
  },
1051
1051
  children: [
1052
- /* @__PURE__ */ t(U, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(
1052
+ /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(
1053
1053
  Nn,
1054
1054
  {
1055
1055
  control: /* @__PURE__ */ t(
@@ -1080,13 +1080,13 @@ const vn = (A, e) => A.reduce((n, a) => (n[a.guid] = e?.includes(a.guid), n), {}
1080
1080
  const L = C[E], b = L.every(
1081
1081
  (w) => c[w.guid]
1082
1082
  );
1083
- return /* @__PURE__ */ t(U, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(
1083
+ return /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(
1084
1084
  oA,
1085
1085
  {
1086
1086
  "aria-label": H(n.accountTypeAccounts, E),
1087
1087
  className: "mx-cmn-account-options-group",
1088
1088
  dense: !0,
1089
- subheader: /* @__PURE__ */ t(nt, { disableGutters: !0, children: /* @__PURE__ */ t(
1089
+ subheader: /* @__PURE__ */ t(Fe, { disableGutters: !0, children: /* @__PURE__ */ t(
1090
1090
  dA,
1091
1091
  {
1092
1092
  "aria-label": H(n.toggleAccountTypeAccounts, E),
@@ -1103,7 +1103,7 @@ const vn = (A, e) => A.reduce((n, a) => (n[a.guid] = e?.includes(a.guid), n), {}
1103
1103
  justifyContent: "left"
1104
1104
  },
1105
1105
  children: /* @__PURE__ */ t(
1106
- cA,
1106
+ lA,
1107
1107
  {
1108
1108
  primary: E,
1109
1109
  primaryTypographyProps: { variant: "XSmall", fontWeight: "bold" }
@@ -1115,7 +1115,7 @@ const vn = (A, e) => A.reduce((n, a) => (n[a.guid] = e?.includes(a.guid), n), {}
1115
1115
  children: L.map((w) => {
1116
1116
  const I = c[w.guid], D = `${w.name}${h && w.accountNumber ? ` *${w.accountNumber.slice(-4)}` : ""}`;
1117
1117
  return /* @__PURE__ */ t(
1118
- U,
1118
+ j,
1119
1119
  {
1120
1120
  className: "mx-cmn-account-options-container",
1121
1121
  disableGutters: !0,
@@ -1528,7 +1528,7 @@ const ec = (A, e) => {
1528
1528
  }), uc = ({ copy: A, date: e, onNextClick: n, onPreviousClick: a }) => {
1529
1529
  const r = SA(), i = hc(r);
1530
1530
  return /* @__PURE__ */ u("div", { className: `mx-cmn-calendar-header ${i}`, children: [
1531
- /* @__PURE__ */ t($t, { className: "mx-cmn-calendar-header-title", variant: "H3", children: j(e, F.MONTH_YEAR) }),
1531
+ /* @__PURE__ */ t($t, { className: "mx-cmn-calendar-header-title", variant: "H3", children: U(e, F.MONTH_YEAR) }),
1532
1532
  /* @__PURE__ */ u("div", { className: "mx-cmn-calendar-header-button-container", children: [
1533
1533
  /* @__PURE__ */ t(iA, { "aria-label": A.prevAria, onClick: a, children: /* @__PURE__ */ t(Po, {}) }),
1534
1534
  /* @__PURE__ */ t(iA, { "aria-label": A.nextAria, onClick: n, children: /* @__PURE__ */ t(No, {}) })
@@ -1548,7 +1548,7 @@ const ec = (A, e) => {
1548
1548
  gap: 4
1549
1549
  }
1550
1550
  }), gc = ({ beginDate: A, date: e, endDate: n, isInMonth: a, onClick: r }) => {
1551
- const i = fA(), o = SA(), s = Cc(o, i), c = A && n && At(e, { start: A, end: n }) && !FA(e, A) && !FA(e, n), l = A && n && FA(A, e) && !FA(A, n), d = n && A && FA(n, e) && !FA(A, n), h = A && FA(A, e) || n && FA(n, e), C = FA(e, Z());
1551
+ const i = fA(), o = SA(), s = Cc(o, i), c = A && n && et(e, { start: A, end: n }) && !FA(e, A) && !FA(e, n), l = A && n && FA(A, e) && !FA(A, n), d = n && A && FA(n, e) && !FA(A, n), h = A && FA(A, e) || n && FA(n, e), C = FA(e, Z());
1552
1552
  return /* @__PURE__ */ t(
1553
1553
  "div",
1554
1554
  {
@@ -1780,7 +1780,7 @@ const mc = ({
1780
1780
  ] });
1781
1781
  }, Tc = (A) => {
1782
1782
  const e = ze(), n = Number(A.x), a = Number(A.y);
1783
- return /* @__PURE__ */ u(aA, { children: [
1783
+ return /* @__PURE__ */ u(nA, { children: [
1784
1784
  /* @__PURE__ */ t(
1785
1785
  "text",
1786
1786
  {
@@ -1808,7 +1808,7 @@ const mc = ({
1808
1808
  }
1809
1809
  )
1810
1810
  ] });
1811
- }, Lc = (A) => /* @__PURE__ */ u(aA, { children: [
1811
+ }, Lc = (A) => /* @__PURE__ */ u(nA, { children: [
1812
1812
  /* @__PURE__ */ t("clipPath", { id: A.id, children: /* @__PURE__ */ t("rect", { height: A.height, width: A.width, x: "0", y: "0" }) }),
1813
1813
  /* @__PURE__ */ t("g", { children: /* @__PURE__ */ t(
1814
1814
  "path",
@@ -1829,8 +1829,8 @@ const mc = ({
1829
1829
  series: A,
1830
1830
  average: e,
1831
1831
  style: n
1832
- }) => /* @__PURE__ */ u(Ve, { style: { flexDirection: "row", gap: 25, ...n }, children: [
1833
- A.map((a, r) => /* @__PURE__ */ u(Ve, { style: { alignItems: "center", flexDirection: "row" }, children: [
1832
+ }) => /* @__PURE__ */ u(Je, { style: { flexDirection: "row", gap: 25, ...n }, children: [
1833
+ A.map((a, r) => /* @__PURE__ */ u(Je, { style: { alignItems: "center", flexDirection: "row" }, children: [
1834
1834
  /* @__PURE__ */ t(
1835
1835
  re,
1836
1836
  {
@@ -1844,7 +1844,7 @@ const mc = ({
1844
1844
  ),
1845
1845
  /* @__PURE__ */ t(y, { variant: "Small", children: a.label })
1846
1846
  ] }, r)),
1847
- /* @__PURE__ */ u(Ve, { sx: { alignItems: "center", flexDirection: "row" }, children: [
1847
+ /* @__PURE__ */ u(Je, { sx: { alignItems: "center", flexDirection: "row" }, children: [
1848
1848
  /* @__PURE__ */ t(y, { bold: !0, sx: { marginRight: 8 }, variant: "Small", children: "– –" }),
1849
1849
  /* @__PURE__ */ u(y, { variant: "Small", children: [
1850
1850
  "Average",
@@ -1965,8 +1965,8 @@ const mc = ({
1965
1965
  )
1966
1966
  ] });
1967
1967
  }, fi = ({ categoryGuid: A }) => {
1968
- const e = et[A];
1969
- return /* @__PURE__ */ u(Ve, { alignItems: "center", direction: "column", gap: "8", justifyContent: "center", mb: 4, children: [
1968
+ const e = tt[A];
1969
+ return /* @__PURE__ */ u(Je, { alignItems: "center", direction: "column", gap: "8", justifyContent: "center", mb: 4, children: [
1970
1970
  /* @__PURE__ */ t(re, { "aria-label": `${e} category icon`, mb: 4, role: "img", children: /* @__PURE__ */ t(_e, { categoryGuid: A }) }),
1971
1971
  /* @__PURE__ */ t(y, { variant: "Body", children: e })
1972
1972
  ] });
@@ -2017,7 +2017,7 @@ const mc = ({
2017
2017
  /* @__PURE__ */ t(Pa, { container: !0, children: e.map((l, d) => /* @__PURE__ */ u(g.Fragment, { children: [
2018
2018
  d > 0 && d % 3 === 0 && /* @__PURE__ */ t(Mn, { sx: { my: 16, width: "100%" } }),
2019
2019
  /* @__PURE__ */ t(Pa, { item: !0, xs: 4, children: /* @__PURE__ */ u(re, { alignItems: "center", display: "flex", flexDirection: "column", children: [
2020
- /* @__PURE__ */ t(y, { color: r.palette.text.secondary, variant: "XSmall", children: j(String(l.x), F.MONTH_SHORT) }),
2020
+ /* @__PURE__ */ t(y, { color: r.palette.text.secondary, variant: "XSmall", children: U(String(l.x), F.MONTH_SHORT) }),
2021
2021
  /* @__PURE__ */ t(
2022
2022
  _A,
2023
2023
  {
@@ -2040,7 +2040,7 @@ const mc = ({
2040
2040
  const a = at(), r = n?.[e];
2041
2041
  return r === void 0 ? null : /* @__PURE__ */ t(Gn, { sx: { pt: 4, px: 8 }, children: /* @__PURE__ */ t(Fr, { children: /* @__PURE__ */ u(re, { alignItems: "center", display: "flex", flexDirection: "column", children: [
2042
2042
  /* @__PURE__ */ t(fi, { categoryGuid: A }),
2043
- /* @__PURE__ */ t(y, { color: a.palette.text.secondary, variant: "Small", children: j(String(e), F.MONTH_SHORT_YEAR) }),
2043
+ /* @__PURE__ */ t(y, { color: a.palette.text.secondary, variant: "Small", children: U(String(e), F.MONTH_SHORT_YEAR) }),
2044
2044
  /* @__PURE__ */ t(_A, { amount: r ?? "", bold: !0, formatString: "0,0", variant: "Body" })
2045
2045
  ] }) }) });
2046
2046
  }, Oc = ({
@@ -2054,7 +2054,7 @@ const mc = ({
2054
2054
  setHoveredLegend: s
2055
2055
  }) => {
2056
2056
  const { isMobile: c } = jA();
2057
- return /* @__PURE__ */ t(Ve, { direction: "row", flexWrap: "wrap", gap: c ? 2 : 6, justifyContent: "start", sx: n, children: A.map((l) => /* @__PURE__ */ u(
2057
+ return /* @__PURE__ */ t(Je, { direction: "row", flexWrap: "wrap", gap: c ? 2 : 6, justifyContent: "start", sx: n, children: A.map((l) => /* @__PURE__ */ u(
2058
2058
  re,
2059
2059
  {
2060
2060
  onMouseEnter: () => s(l),
@@ -2115,7 +2115,7 @@ const mc = ({
2115
2115
  }), { hoveredSeriesId: v, hoveredAreaData: E, isAreaHovered: L, cursorPos: b } = f, w = L && v && E, I = !w, D = [...e, ...r], O = D.flat().map((G) => G.x), k = D.flat().map((G) => G.y), $ = Math.floor(Math.min(...k) / 100) * 100, B = D.reduce((G, pA) => {
2116
2116
  const yA = pA.reduce((ce, Le) => ce + Le.y, 0);
2117
2117
  return yA > G ? yA : G;
2118
- }, 0), R = n.map((G) => et[G]), z = e.map((G, pA) => ({
2118
+ }, 0), R = n.map((G) => tt[G]), z = e.map((G, pA) => ({
2119
2119
  id: `stacked-${pA}`,
2120
2120
  area: !0,
2121
2121
  color: A[pA] ?? c.palette.primary.main,
@@ -2127,7 +2127,7 @@ const mc = ({
2127
2127
  highlight: "item"
2128
2128
  },
2129
2129
  valueFormatter: (yA) => X(yA, "0,0")
2130
- })), K = i.map((G) => et[G]), lA = r.map((G, pA) => ({
2130
+ })), K = i.map((G) => tt[G]), cA = r.map((G, pA) => ({
2131
2131
  id: `unstacked-${pA}`,
2132
2132
  area: !1,
2133
2133
  color: a[pA],
@@ -2135,7 +2135,7 @@ const mc = ({
2135
2135
  label: K[pA],
2136
2136
  type: "line",
2137
2137
  valueFormatter: (yA) => X(yA, "0,0")
2138
- })), rA = [...z, ...lA], MA = [...R, ...K], sA = (G) => G.startsWith("stacked-") ? n[parseInt(G.split("-")[1])] : i[parseInt(G.split("-")[1])];
2138
+ })), rA = [...z, ...cA], MA = [...R, ...K], sA = (G) => G.startsWith("stacked-") ? n[parseInt(G.split("-")[1])] : i[parseInt(G.split("-")[1])];
2139
2139
  return /* @__PURE__ */ t(
2140
2140
  re,
2141
2141
  {
@@ -2152,7 +2152,7 @@ const mc = ({
2152
2152
  ref: d,
2153
2153
  style: { position: "relative" },
2154
2154
  children: /* @__PURE__ */ u(
2155
- Ve,
2155
+ Je,
2156
2156
  {
2157
2157
  direction: { xs: "column", md: "column" },
2158
2158
  spacing: { xs: 0, md: 4 },
@@ -2237,7 +2237,7 @@ const mc = ({
2237
2237
  {
2238
2238
  data: O,
2239
2239
  scaleType: "point",
2240
- valueFormatter: (G) => j(G, F.MONTH_SHORT_YEAR)
2240
+ valueFormatter: (G) => U(G, F.MONTH_SHORT_YEAR)
2241
2241
  }
2242
2242
  ],
2243
2243
  yAxis: [
@@ -2451,16 +2451,16 @@ const mc = ({
2451
2451
  const K = OA(Qe());
2452
2452
  return [OA(ye(K, D)), K];
2453
2453
  }, B = (K) => {
2454
- const lA = [...h], rA = h[0], MA = h[1], sA = K === "previous";
2454
+ const cA = [...h], rA = h[0], MA = h[1], sA = K === "previous";
2455
2455
  if (f === n.dateRangePickerCopy.dateRangeThisMonth)
2456
- lA[0] = sA ? ye(rA, 1) : YA(rA, 1), lA[1] = OA(sA ? ye(MA, 1) : YA(MA, 1));
2456
+ cA[0] = sA ? ye(rA, 1) : YA(rA, 1), cA[1] = OA(sA ? ye(MA, 1) : YA(MA, 1));
2457
2457
  else if (f === n.dateRangePickerCopy.dateRangeYTD || f === n.dateRangePickerCopy.dateRangeLastYear)
2458
- lA[0] = sA ? Ra(Ma(rA), 1) : vt(Ma(rA), 1), lA[1] = sA ? Ra(Na(rA), 1) : vt(Na(rA), 1);
2458
+ cA[0] = sA ? Ra(Ma(rA), 1) : vt(Ma(rA), 1), cA[1] = sA ? Ra(Na(rA), 1) : vt(Na(rA), 1);
2459
2459
  else {
2460
2460
  const G = Wo(MA, rA);
2461
- lA[0] = K === "previous" ? ie(rA, G) : ge(rA, G), lA[1] = K === "previous" ? ie(MA, G) : ge(MA, G);
2461
+ cA[0] = K === "previous" ? ie(rA, G) : ge(rA, G), cA[1] = K === "previous" ? ie(MA, G) : ge(MA, G);
2462
2462
  }
2463
- C(lA), A.onRangeChanged(lA);
2463
+ C(cA), A.onRangeChanged(cA);
2464
2464
  }, R = () => {
2465
2465
  C(v), I(
2466
2466
  f === n.dateRangePickerCopy.dateRangeThisMonth || f === n.dateRangePickerCopy.dateRangeLastMonth
@@ -2500,9 +2500,9 @@ const mc = ({
2500
2500
  children: [
2501
2501
  o === "readonly" && /* @__PURE__ */ u(T, { alignItems: "center", direction: "row", gap: 8, children: [
2502
2502
  /* @__PURE__ */ t(P, { name: "calendar_month", size: 24 }),
2503
- /* @__PURE__ */ t(y, { bold: !0, children: j(v[0], F.MONTH_DAY) }),
2503
+ /* @__PURE__ */ t(y, { bold: !0, children: U(v[0], F.MONTH_DAY) }),
2504
2504
  /* @__PURE__ */ t(P, { name: "remove" }),
2505
- /* @__PURE__ */ t(y, { bold: !0, children: j(v[1], F.MONTH_DAY_YEAR) })
2505
+ /* @__PURE__ */ t(y, { bold: !0, children: U(v[1], F.MONTH_DAY_YEAR) })
2506
2506
  ] }),
2507
2507
  o !== "readonly" && o !== "timeframebuttons" && /* @__PURE__ */ u(
2508
2508
  Yo,
@@ -2537,11 +2537,11 @@ const mc = ({
2537
2537
  p: d ? 0 : 8,
2538
2538
  width: l ? 280 : 232
2539
2539
  },
2540
- children: w ? j(h[0], F.MONTH_YEAR) : /* @__PURE__ */ u("span", { children: [
2541
- j(h[0], F.MONTH_DAY_YEAR),
2540
+ children: w ? U(h[0], F.MONTH_YEAR) : /* @__PURE__ */ u("span", { children: [
2541
+ U(h[0], F.MONTH_DAY_YEAR),
2542
2542
  " -",
2543
2543
  " ",
2544
- j(h[1], F.MONTH_DAY_YEAR)
2544
+ U(h[1], F.MONTH_DAY_YEAR)
2545
2545
  ] })
2546
2546
  }
2547
2547
  ),
@@ -2618,8 +2618,8 @@ const mc = ({
2618
2618
  {
2619
2619
  copy: n.dateRangePickerCopy,
2620
2620
  dateRange: v,
2621
- onRangeChanged: (K, lA) => {
2622
- E(K), m(lA);
2621
+ onRangeChanged: (K, cA) => {
2622
+ E(K), m(cA);
2623
2623
  },
2624
2624
  selectedShortcut: f,
2625
2625
  sx: { p: 16 }
@@ -2645,8 +2645,8 @@ const mc = ({
2645
2645
  {
2646
2646
  copy: n.dateRangePickerCopy,
2647
2647
  dateRange: v,
2648
- onRangeChanged: (K, lA) => {
2649
- E(K), m(lA);
2648
+ onRangeChanged: (K, cA) => {
2649
+ E(K), m(cA);
2650
2650
  },
2651
2651
  selectedShortcut: f,
2652
2652
  sx: {
@@ -2840,7 +2840,7 @@ const qe = ({
2840
2840
  title: o = ""
2841
2841
  }) => {
2842
2842
  const [s, { height: c, width: l }] = Ei();
2843
- return /* @__PURE__ */ u(Je, { className: A, sx: { borderRadius: "8px", ...i }, children: [
2843
+ return /* @__PURE__ */ u(Ze, { className: A, sx: { borderRadius: "8px", ...i }, children: [
2844
2844
  /* @__PURE__ */ t(
2845
2845
  Qn,
2846
2846
  {
@@ -2913,7 +2913,7 @@ const qe = ({
2913
2913
  dateRangePreviousAria: O.date_range_picker.previous_aria
2914
2914
  }, R = r ? r.start : w.start, z = r ? r.end : w.end;
2915
2915
  return /* @__PURE__ */ u(
2916
- Je,
2916
+ Ze,
2917
2917
  {
2918
2918
  className: o,
2919
2919
  sx: {
@@ -2949,8 +2949,8 @@ const qe = ({
2949
2949
  accounts: A,
2950
2950
  copy: $,
2951
2951
  onFilterClick: (K) => {
2952
- const lA = A.filter((rA) => K.includes(rA.guid)).map((rA) => rA.guid);
2953
- D(lA), l?.();
2952
+ const cA = A.filter((rA) => K.includes(rA.guid)).map((rA) => rA.guid);
2953
+ D(cA), l?.();
2954
2954
  },
2955
2955
  selectedAccountGuids: I,
2956
2956
  showAccountNumbers: !1,
@@ -3256,10 +3256,10 @@ const qe = ({
3256
3256
  ]
3257
3257
  }
3258
3258
  ), Ut = ({ iconName: A, label: e, onClick: n, value: a }) => {
3259
- const r = /* @__PURE__ */ u(aA, { children: [
3259
+ const r = /* @__PURE__ */ u(nA, { children: [
3260
3260
  /* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(Te, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(P, { name: A, sx: { color: "text.primary" }, weight: BA.Dark }) }) }),
3261
3261
  /* @__PURE__ */ t(
3262
- cA,
3262
+ lA,
3263
3263
  {
3264
3264
  primary: e,
3265
3265
  primaryTypographyProps: { variant: "XSmall" },
@@ -3268,10 +3268,10 @@ const qe = ({
3268
3268
  }
3269
3269
  )
3270
3270
  ] });
3271
- return n ? /* @__PURE__ */ t(U, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ u(dA, { onClick: n, children: [
3271
+ return n ? /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ u(dA, { onClick: n, children: [
3272
3272
  r,
3273
3273
  /* @__PURE__ */ t(oe, { children: /* @__PURE__ */ t(P, { name: "chevron_right", size: 24 }) })
3274
- ] }) }) : /* @__PURE__ */ t(U, { disableGutters: !1, disablePadding: !1, children: r });
3274
+ ] }) }) : /* @__PURE__ */ t(j, { disableGutters: !1, disablePadding: !1, children: r });
3275
3275
  }, jt = ({
3276
3276
  body: A,
3277
3277
  iconName: e = "info",
@@ -3299,7 +3299,7 @@ const qe = ({
3299
3299
  sx: a = {}
3300
3300
  }) => {
3301
3301
  const { onEvent: r } = V();
3302
- return n ? /* @__PURE__ */ t(U, { sx: { bgcolor: "background.paper", ...a }, children: /* @__PURE__ */ t(
3302
+ return n ? /* @__PURE__ */ t(j, { sx: { bgcolor: "background.paper", ...a }, children: /* @__PURE__ */ t(
3303
3303
  dA,
3304
3304
  {
3305
3305
  onClick: () => {
@@ -3308,7 +3308,7 @@ const qe = ({
3308
3308
  children: A
3309
3309
  }
3310
3310
  ) }) : /* @__PURE__ */ t(
3311
- U,
3311
+ j,
3312
3312
  {
3313
3313
  disableGutters: !1,
3314
3314
  disablePadding: !1,
@@ -3343,12 +3343,12 @@ class Qc {
3343
3343
  }
3344
3344
  class Fc {
3345
3345
  beats = [];
3346
- api = new tt("/", "");
3346
+ api = new nt("/", "");
3347
3347
  constructor() {
3348
3348
  bA(this);
3349
3349
  }
3350
3350
  initialize = async (e, n) => {
3351
- this.api = new tt(e, n), await this.loadBeats();
3351
+ this.api = new nt(e, n), await this.loadBeats();
3352
3352
  };
3353
3353
  loadBeats = async () => {
3354
3354
  const e = await this.api.getBeats();
@@ -3395,7 +3395,7 @@ const ot = () => {
3395
3395
  return ia().uiStore;
3396
3396
  }, sa = ({ remaining: A }) => {
3397
3397
  const { cashflow: e } = W();
3398
- return /* @__PURE__ */ u(aA, { children: [
3398
+ return /* @__PURE__ */ u(nA, { children: [
3399
3399
  /* @__PURE__ */ t(
3400
3400
  S,
3401
3401
  {
@@ -3465,7 +3465,7 @@ const ot = () => {
3465
3465
  /* @__PURE__ */ t(jt, { body: o.tooltip_body, title: o.tooltip_title })
3466
3466
  ] })
3467
3467
  ] }),
3468
- /* @__PURE__ */ t(T, { borderLeft: `1px solid ${e.palette.border.light}`, pb: 12, pl: 24, pt: 12, children: w ? /* @__PURE__ */ u(aA, { children: [
3468
+ /* @__PURE__ */ t(T, { borderLeft: `1px solid ${e.palette.border.light}`, pb: 12, pl: 24, pt: 12, children: w ? /* @__PURE__ */ u(nA, { children: [
3469
3469
  /* @__PURE__ */ t(y, { variant: "H2", children: H(o.days, c) }),
3470
3470
  /* @__PURE__ */ t(vA, { variant: "XSmall", whiteSpace: "nowrap", children: o.next_paycheck })
3471
3471
  ] }) : /* @__PURE__ */ t(
@@ -4007,7 +4007,7 @@ const Vc = [
4007
4007
  const l = s.tags.some(
4008
4008
  (h) => VA(o, e.find((C) => C.guid === h)?.name)
4009
4009
  ), d = NA(s.date);
4010
- return VA(o, s.payee) || VA(o, s.feed_description) || VA(o, s.category) || VA(o, j(d, F.MONTH)) || VA(o, j(d, F.DAY)) || VA(o, j(d, F.FULL_MONTH_DAY)) || VA(o, j(d, F.MONTH_DAY_YEAR)) || VA(o, $A(d, Bs)) || VA(o, s.account) || VA(o, `${s.amount}`) || VA(o, s.memo) || l;
4010
+ return VA(o, s.payee) || VA(o, s.feed_description) || VA(o, s.category) || VA(o, U(d, F.MONTH)) || VA(o, U(d, F.DAY)) || VA(o, U(d, F.FULL_MONTH_DAY)) || VA(o, U(d, F.MONTH_DAY_YEAR)) || VA(o, $A(d, Bs)) || VA(o, s.account) || VA(o, `${s.amount}`) || VA(o, s.memo) || l;
4011
4011
  });
4012
4012
  }, nl = (A, e, n) => [...A].sort((a, r) => {
4013
4013
  const i = e, o = (a[i] || "") > (r[i] || "");
@@ -4087,7 +4087,7 @@ let sl = class {
4087
4087
  };
4088
4088
  class cl {
4089
4089
  api = new Za("/", "");
4090
- beatApi = new tt("/", "");
4090
+ beatApi = new nt("/", "");
4091
4091
  globalStore;
4092
4092
  uiStore;
4093
4093
  isLoading = !0;
@@ -4105,7 +4105,7 @@ class cl {
4105
4105
  this.globalStore = e, this.uiStore = new sl(), bA(this);
4106
4106
  }
4107
4107
  initialize = async (e, n) => {
4108
- this.api = new Za(e, n), this.beatApi = new tt(e, n), Promise.all([
4108
+ this.api = new Za(e, n), this.beatApi = new nt(e, n), Promise.all([
4109
4109
  this.loadAssociatedBeats(LA(/* @__PURE__ */ new Date())),
4110
4110
  this.loadTags(),
4111
4111
  this.loadTaggings(),
@@ -4298,7 +4298,7 @@ const WA = () => {
4298
4298
  }
4299
4299
  ) }),
4300
4300
  /* @__PURE__ */ t(
4301
- cA,
4301
+ lA,
4302
4302
  {
4303
4303
  disableTypography: !0,
4304
4304
  secondary: /* @__PURE__ */ u(T, { direction: "row", justifyContent: "space-between", children: [
@@ -4345,11 +4345,11 @@ const WA = () => {
4345
4345
  const e = pt(A);
4346
4346
  let n = Rn(A, e);
4347
4347
  for (; gA(n, Z()); )
4348
- n = Ye(n, 1);
4348
+ n = Ve(n, 1);
4349
4349
  return n;
4350
4350
  }, gl = (A) => {
4351
4351
  const e = ua(A);
4352
- return Ye(e, 1);
4352
+ return Ve(e, 1);
4353
4353
  }, er = (A) => {
4354
4354
  let e = _n(Z(), A.getDate());
4355
4355
  for (; gA(e, Z()); )
@@ -4369,7 +4369,7 @@ const WA = () => {
4369
4369
  }, ml = (A) => vt(A, 1), mt = (A) => {
4370
4370
  const e = NA(A);
4371
4371
  return new Date(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate());
4372
- }, sn = (A) => j(NA(A), F.DAY_OF_WEEK_MONTH_DAY), tr = 65, nr = 34, vl = ({
4372
+ }, sn = (A) => U(NA(A), F.DAY_OF_WEEK_MONTH_DAY), tr = 65, nr = 34, vl = ({
4373
4373
  bgcolor: A,
4374
4374
  height: e = "calc(100dvh - 36px)",
4375
4375
  loader: n = /* @__PURE__ */ t(Ce, { label: "Loading", size: 40 }),
@@ -4461,7 +4461,7 @@ const WA = () => {
4461
4461
  ]
4462
4462
  }
4463
4463
  );
4464
- }, wl = (A) => /* @__PURE__ */ t(y, { tabIndex: A.tabIndex, variant: "Small", children: j(NA(A.row.date), F.MONTH_DAY) }), ar = {
4464
+ }, wl = (A) => /* @__PURE__ */ t(y, { tabIndex: A.tabIndex, variant: "Small", children: U(NA(A.row.date), F.MONTH_DAY) }), ar = {
4465
4465
  is_hidden: "Hidden transaction",
4466
4466
  is_flagged: "Flagged transaction",
4467
4467
  is_new: "New transaction"
@@ -4577,7 +4577,7 @@ const WA = () => {
4577
4577
  slotProps: { baseIconButton: { color: "secondary", sx: { ml: 8 } } }
4578
4578
  }
4579
4579
  ) });
4580
- }, bl = x(Sl), Fe = () => {
4580
+ }, bl = x(Sl), Ue = () => {
4581
4581
  if (!g.useContext(it))
4582
4582
  throw new Error("useCategoryUiStore() must be used within the GlobalDataContext");
4583
4583
  return xA().uiStore;
@@ -4602,7 +4602,7 @@ const Il = ({
4602
4602
  isOpen: a,
4603
4603
  type: r
4604
4604
  }) => {
4605
- const [i, o] = g.useState(A), { categories: s } = W(), { setShouldDisableDrawerScroll: c } = Fe();
4605
+ const [i, o] = g.useState(A), { categories: s } = W(), { setShouldDisableDrawerScroll: c } = Ue();
4606
4606
  let l = "", d = [];
4607
4607
  const h = r === "delete";
4608
4608
  switch (r) {
@@ -4647,16 +4647,16 @@ const Il = ({
4647
4647
  }
4648
4648
  );
4649
4649
  }, ha = x(Il), Dl = ({ parentCategory: A }) => {
4650
- const [e, n] = g.useState(!1), { addCategory: a } = xA(), { categories: r } = W(), { onEvent: i } = V(), { setShouldDisableDrawerScroll: o } = Fe(), s = async (d) => {
4650
+ const [e, n] = g.useState(!1), { addCategory: a } = xA(), { categories: r } = W(), { onEvent: i } = V(), { setShouldDisableDrawerScroll: o } = Ue(), s = async (d) => {
4651
4651
  await a(d.trim(), A.guid), i(ne.ON_SUBCATEGORY_ADDED), n(!1);
4652
4652
  }, c = async () => {
4653
4653
  i(ne.ON_SUBCATEGORY_ADD_CLICK), o(!0), n(!0);
4654
4654
  }, l = () => {
4655
4655
  n(!1), i(ne.ON_SUBCATEGORY_ADD_CANCEL_CLICK);
4656
4656
  };
4657
- return /* @__PURE__ */ u(U, { disableGutters: !0, disablePadding: !0, children: [
4657
+ return /* @__PURE__ */ u(j, { disableGutters: !0, disablePadding: !0, children: [
4658
4658
  /* @__PURE__ */ t(dA, { onClick: c, sx: { ml: 60 }, children: /* @__PURE__ */ t(
4659
- cA,
4659
+ lA,
4660
4660
  {
4661
4661
  primary: r.add_subcategory_button,
4662
4662
  primaryTypographyProps: { color: "primary", fontWeight: "normal", variant: "Body" }
@@ -4722,9 +4722,9 @@ const Il = ({
4722
4722
  showSelected: o,
4723
4723
  unselectable: s,
4724
4724
  unselectableText: c
4725
- } = Fe(), { categories: l } = W(), { onEvent: d } = V(), [h, C] = g.useState(!1), [f, m] = g.useState(!1), v = !!e.revision, E = e.guid === a, L = !s.some((w) => w === e.guid);
4725
+ } = Ue(), { categories: l } = W(), { onEvent: d } = V(), [h, C] = g.useState(!1), [f, m] = g.useState(!1), v = !!e.revision, E = e.guid === a, L = !s.some((w) => w === e.guid);
4726
4726
  return /* @__PURE__ */ u(
4727
- U,
4727
+ j,
4728
4728
  {
4729
4729
  className: "mx-cat-subcategory-row",
4730
4730
  disableGutters: !0,
@@ -4742,7 +4742,7 @@ const Il = ({
4742
4742
  sx: { height: 44 },
4743
4743
  children: [
4744
4744
  /* @__PURE__ */ t(
4745
- cA,
4745
+ lA,
4746
4746
  {
4747
4747
  primary: e.name,
4748
4748
  primaryTypographyProps: { fontWeight: "normal", variant: "Body" }
@@ -4797,7 +4797,7 @@ const Il = ({
4797
4797
  }
4798
4798
  );
4799
4799
  }, _l = x(Rl), Hl = ({ categories: A, parentCategory: e }) => {
4800
- const { expandedGuid: n, searchValue: a } = Fe(), r = e.guid === n, i = !!a;
4800
+ const { expandedGuid: n, searchValue: a } = Ue(), r = e.guid === n, i = !!a;
4801
4801
  return /* @__PURE__ */ t(
4802
4802
  ei,
4803
4803
  {
@@ -4823,12 +4823,12 @@ const Il = ({
4823
4823
  }
4824
4824
  );
4825
4825
  }, zl = x(Hl), ql = ({ category: A, subCategories: e }) => {
4826
- const { expandedGuid: n, searchValue: a, setExpandedGuid: r } = Fe(), { onEvent: i } = V(), o = A.guid === n, s = () => {
4826
+ const { expandedGuid: n, searchValue: a, setExpandedGuid: r } = Ue(), { onEvent: i } = V(), o = A.guid === n, s = () => {
4827
4827
  const c = A.guid !== n ? A.guid : null;
4828
4828
  r(c), i(c ? ne.ON_CATEGORY_EXPANDED : ne.ON_CATEGORY_COLLAPSED);
4829
4829
  };
4830
4830
  return /* @__PURE__ */ u(g.Fragment, { children: [
4831
- /* @__PURE__ */ t(U, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ u(
4831
+ /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ u(
4832
4832
  dA,
4833
4833
  {
4834
4834
  "aria-controls": `subcategories-${A.guid}`,
@@ -4839,7 +4839,7 @@ const Il = ({
4839
4839
  children: [
4840
4840
  /* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(_e, { categoryGuid: A.guid }) }),
4841
4841
  /* @__PURE__ */ t(
4842
- cA,
4842
+ lA,
4843
4843
  {
4844
4844
  primary: A.name,
4845
4845
  primaryTypographyProps: { fontWeight: "normal", variant: "Body" }
@@ -4854,7 +4854,7 @@ const Il = ({
4854
4854
  /* @__PURE__ */ t(zl, { categories: e, parentCategory: A })
4855
4855
  ] });
4856
4856
  }, Bl = x(ql), Kl = () => {
4857
- const { categories: A } = xA(), { searchValue: e } = Fe(), { categories: n } = W(), r = ((i, o = "") => i.reduce((s, c) => {
4857
+ const { categories: A } = xA(), { searchValue: e } = Ue(), { categories: n } = W(), r = ((i, o = "") => i.reduce((s, c) => {
4858
4858
  if (c.parent_guid === null) {
4859
4859
  const d = [
4860
4860
  {
@@ -4894,7 +4894,7 @@ const Il = ({
4894
4894
  setShowSelected: f,
4895
4895
  setUnselectable: m,
4896
4896
  setUnselectableText: v
4897
- } = Fe();
4897
+ } = Ue();
4898
4898
  return g.useEffect(() => {
4899
4899
  e && d(e);
4900
4900
  }), g.useEffect(() => {
@@ -4998,7 +4998,7 @@ class Wl {
4998
4998
  return {
4999
4999
  ...e,
5000
5000
  average: c,
5001
- color: Ze[et[e.parent_guid || e.guid]],
5001
+ color: $e[tt[e.parent_guid || e.guid]],
5002
5002
  generalHistory: s,
5003
5003
  history: o,
5004
5004
  icon: aa[e.parent_guid || e.guid],
@@ -5018,7 +5018,7 @@ class Wl {
5018
5018
  const s = ye(n, o), c = Number($A(s, "yyyyMM"));
5019
5019
  i.push({
5020
5020
  timestamp: CA(s),
5021
- label: j(s, F.MONTH_YEAR),
5021
+ label: U(s, F.MONTH_YEAR),
5022
5022
  total: r[c] !== void 0 ? r[c].reduce((l, d) => l + d.total, 0) : 0
5023
5023
  });
5024
5024
  }
@@ -5105,7 +5105,7 @@ const Si = ({ transaction: A }) => {
5105
5105
  [d]
5106
5106
  );
5107
5107
  return /* @__PURE__ */ u(g.Fragment, { children: [
5108
- /* @__PURE__ */ t(U, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ u(
5108
+ /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ u(
5109
5109
  dA,
5110
5110
  {
5111
5111
  onClick: () => {
@@ -5122,7 +5122,7 @@ const Si = ({ transaction: A }) => {
5122
5122
  }
5123
5123
  ) }) }),
5124
5124
  /* @__PURE__ */ t(
5125
- cA,
5125
+ lA,
5126
5126
  {
5127
5127
  primary: "Category",
5128
5128
  primaryTypographyProps: { variant: "XSmall" },
@@ -5177,7 +5177,7 @@ const Si = ({ transaction: A }) => {
5177
5177
  await a({ ...A, date: l }), n(J.TRANSACTION_DETAILS_CLICK_DATE, { transaction_guid: A.guid }), c(!1);
5178
5178
  };
5179
5179
  return /* @__PURE__ */ u(S, { className: "mx-txn-date-action", children: [
5180
- /* @__PURE__ */ t(U, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ u(
5180
+ /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ u(
5181
5181
  dA,
5182
5182
  {
5183
5183
  onClick: () => {
@@ -5186,11 +5186,11 @@ const Si = ({ transaction: A }) => {
5186
5186
  children: [
5187
5187
  /* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(Te, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(P, { name: "calendar_month", sx: { color: "text.primary" }, weight: BA.Dark }) }) }),
5188
5188
  /* @__PURE__ */ t(
5189
- cA,
5189
+ lA,
5190
5190
  {
5191
5191
  primary: o.date_title,
5192
5192
  primaryTypographyProps: { variant: "XSmall" },
5193
- secondary: /* @__PURE__ */ t(y, { bold: !0, variant: "Body", children: j(NA(A.date), F.YEAR_MONTH_DAY) })
5193
+ secondary: /* @__PURE__ */ t(y, { bold: !0, variant: "Body", children: U(NA(A.date), F.YEAR_MONTH_DAY) })
5194
5194
  }
5195
5195
  ),
5196
5196
  /* @__PURE__ */ t(oe, { children: /* @__PURE__ */ t(P, { name: "chevron_right", weight: BA.Dark }) })
@@ -5228,7 +5228,7 @@ const Si = ({ transaction: A }) => {
5228
5228
  await n(A.guid), e(M.ON_TRANSACTION_DELETE_DELETED);
5229
5229
  };
5230
5230
  return /* @__PURE__ */ u(S, { className: "mx-txn-delete", children: [
5231
- A && /* @__PURE__ */ t(U, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ u(
5231
+ A && /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ u(
5232
5232
  dA,
5233
5233
  {
5234
5234
  onClick: () => {
@@ -5237,7 +5237,7 @@ const Si = ({ transaction: A }) => {
5237
5237
  children: [
5238
5238
  /* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(Te, { variant: "rounded", children: /* @__PURE__ */ t(Et, { color: "secondary", fontSize: "small" }) }) }),
5239
5239
  /* @__PURE__ */ t(
5240
- cA,
5240
+ lA,
5241
5241
  {
5242
5242
  primary: i.manual_transaction_delete_title,
5243
5243
  secondary: i.manual_transaction_delete_subtitle
@@ -5270,7 +5270,7 @@ const Si = ({ transaction: A }) => {
5270
5270
  });
5271
5271
  };
5272
5272
  return /* @__PURE__ */ u(S, { className: "mx-txn-delete-logo", children: [
5273
- A && /* @__PURE__ */ t(U, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ u(
5273
+ A && /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ u(
5274
5274
  dA,
5275
5275
  {
5276
5276
  onClick: () => {
@@ -5278,7 +5278,7 @@ const Si = ({ transaction: A }) => {
5278
5278
  },
5279
5279
  children: [
5280
5280
  /* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(Te, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(P, { name: "delete", sx: { color: "text.primary" }, weight: BA.Dark }) }) }),
5281
- /* @__PURE__ */ t(cA, { primary: i.merchant_logo_title, secondary: i.merchant_logo_desc }),
5281
+ /* @__PURE__ */ t(lA, { primary: i.merchant_logo_title, secondary: i.merchant_logo_desc }),
5282
5282
  /* @__PURE__ */ t(oe, { children: /* @__PURE__ */ t(P, { name: "chevron_right", weight: BA.Dark }) })
5283
5283
  ]
5284
5284
  }
@@ -5310,7 +5310,7 @@ const Si = ({ transaction: A }) => {
5310
5310
  );
5311
5311
  };
5312
5312
  return /* @__PURE__ */ u(S, { className: "mx-txn-hide-transaction", children: [
5313
- A && /* @__PURE__ */ t(U, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ u(
5313
+ A && /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ u(
5314
5314
  dA,
5315
5315
  {
5316
5316
  "aria-checked": c,
@@ -5335,7 +5335,7 @@ const Si = ({ transaction: A }) => {
5335
5335
  }
5336
5336
  ) : /* @__PURE__ */ t(P, { name: "visibility", sx: { color: "text.primary" }, weight: BA.Dark }) }) }),
5337
5337
  /* @__PURE__ */ t(
5338
- cA,
5338
+ lA,
5339
5339
  {
5340
5340
  primary: c ? i.hide_trnx_subtitle_unhide_trnx : i.hide_trnx_subtitle_hide_trnx,
5341
5341
  secondary: c ? i.hide_trnx_desc_unhiding : i.hide_trnx_desc_hiding
@@ -5405,7 +5405,7 @@ const Si = ({ transaction: A }) => {
5405
5405
  await n({ ...A, memo: c }), e(J.TRANSACTION_DETAILS_CLICK_MEMO, { transaction_guid: A.guid }), s(!1);
5406
5406
  };
5407
5407
  return /* @__PURE__ */ u("div", { className: "mx-txn-memo-action", children: [
5408
- /* @__PURE__ */ t(U, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ u(
5408
+ /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ u(
5409
5409
  dA,
5410
5410
  {
5411
5411
  onClick: () => {
@@ -5414,7 +5414,7 @@ const Si = ({ transaction: A }) => {
5414
5414
  children: [
5415
5415
  /* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(Te, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(P, { name: "article", sx: { color: "text.primary" }, weight: BA.Dark }) }) }),
5416
5416
  /* @__PURE__ */ t(
5417
- cA,
5417
+ lA,
5418
5418
  {
5419
5419
  primary: i.memo_title,
5420
5420
  primaryTypographyProps: { variant: "XSmall" },
@@ -5633,11 +5633,11 @@ const Si = ({ transaction: A }) => {
5633
5633
  }, b = (B, R) => {
5634
5634
  const z = [...m];
5635
5635
  z[B].amount = R, z[0].amount = A.amount - z.reduce(
5636
- (K, lA, rA) => K + (rA !== 0 ? lA.amount : 0),
5636
+ (K, cA, rA) => K + (rA !== 0 ? cA.amount : 0),
5637
5637
  0
5638
5638
  ), v(z);
5639
5639
  }, w = (B, R) => {
5640
- const z = [...m], K = s.find((lA) => lA.guid === R);
5640
+ const z = [...m], K = s.find((cA) => cA.guid === R);
5641
5641
  K && (z[B] = {
5642
5642
  ...z[B],
5643
5643
  category_guid: R,
@@ -5667,10 +5667,10 @@ const Si = ({ transaction: A }) => {
5667
5667
  return B || R;
5668
5668
  }, [m]);
5669
5669
  return /* @__PURE__ */ u(g.Fragment, { children: [
5670
- A && /* @__PURE__ */ t(U, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ u(dA, { onClick: I, children: [
5670
+ A && /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ u(dA, { onClick: I, children: [
5671
5671
  /* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(Te, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(P, { name: "call_split", sx: { color: "text.primary" }, weight: BA.Dark }) }) }),
5672
5672
  /* @__PURE__ */ t(
5673
- cA,
5673
+ lA,
5674
5674
  {
5675
5675
  primary: A.has_been_split || A.parent_guid ? i.split_transaction_unsplit_title : i.split_transaction_title,
5676
5676
  secondary: A.has_been_split || A.parent_guid ? i.split_transaction_unsplit_subtitle : i.split_transaction_desc
@@ -5828,7 +5828,7 @@ const Si = ({ transaction: A }) => {
5828
5828
  a(M.ON_TRANSACTION_TAGS_TAG_DELETE_CLICK), h(!0);
5829
5829
  };
5830
5830
  return /* @__PURE__ */ u(
5831
- U,
5831
+ j,
5832
5832
  {
5833
5833
  className: "mx-txn-transaction-manager-row",
5834
5834
  disableGutters: !0,
@@ -5862,7 +5862,7 @@ const Si = ({ transaction: A }) => {
5862
5862
  role: "checkbox",
5863
5863
  children: [
5864
5864
  /* @__PURE__ */ t(oe, { sx: { ml: 0 }, children: /* @__PURE__ */ t(Bt, { checked: e.includes(n.guid), edge: "start", tabIndex: -1 }) }),
5865
- /* @__PURE__ */ t(cA, { children: n.name })
5865
+ /* @__PURE__ */ t(lA, { children: n.name })
5866
5866
  ]
5867
5867
  }
5868
5868
  ),
@@ -5946,7 +5946,7 @@ const Si = ({ transaction: A }) => {
5946
5946
  [n, A]
5947
5947
  );
5948
5948
  return /* @__PURE__ */ u(g.Fragment, { children: [
5949
- /* @__PURE__ */ t(U, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ u(
5949
+ /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ u(
5950
5950
  dA,
5951
5951
  {
5952
5952
  onClick: () => {
@@ -5955,7 +5955,7 @@ const Si = ({ transaction: A }) => {
5955
5955
  children: [
5956
5956
  /* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(Te, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(P, { name: "local_offer", sx: { color: "text.primary" }, weight: BA.Dark }) }) }),
5957
5957
  /* @__PURE__ */ t(
5958
- cA,
5958
+ lA,
5959
5959
  {
5960
5960
  primary: o.tags_title,
5961
5961
  primaryTypographyProps: { variant: "XSmall" },
@@ -6151,7 +6151,7 @@ const Si = ({ transaction: A }) => {
6151
6151
  Description: Cd(n),
6152
6152
  "Original Description": n.feed_description,
6153
6153
  Amount: `${n.amount}`,
6154
- "Parent Category": et[n.top_level_category_guid || ""],
6154
+ "Parent Category": tt[n.top_level_category_guid || ""],
6155
6155
  Category: n.category,
6156
6156
  Account: n.account,
6157
6157
  Tags: fd(n, e),
@@ -6396,7 +6396,7 @@ const ir = "connect_widget", or = "connections_widget", md = {
6396
6396
  selectedAccounts: R,
6397
6397
  setDisplayedDate: z,
6398
6398
  setSelectedAccounts: K
6399
- } = mA(), [lA, rA] = g.useState(""), [MA, sA] = g.useState(""), [G, pA] = g.useState(!1), [yA, ce] = g.useState(!1), [Le, Cn] = g.useState(!1);
6399
+ } = mA(), [cA, rA] = g.useState(""), [MA, sA] = g.useState(""), [G, pA] = g.useState(!1), [yA, ce] = g.useState(!1), [Le, Cn] = g.useState(!1);
6400
6400
  g.useEffect(() => {
6401
6401
  K(r);
6402
6402
  }, [r]), g.useEffect(() => {
@@ -6526,7 +6526,7 @@ const ir = "connect_widget", or = "connections_widget", md = {
6526
6526
  hA,
6527
6527
  {
6528
6528
  ariaLabelClose: w.close_aria,
6529
- isOpen: lA === "transaction",
6529
+ isOpen: cA === "transaction",
6530
6530
  onClose: () => {
6531
6531
  Be && !Be.has_been_viewed && b({ ...Be, has_been_viewed: !0 }), rA("");
6532
6532
  },
@@ -6534,7 +6534,7 @@ const ir = "connect_widget", or = "connections_widget", md = {
6534
6534
  children: Be && /* @__PURE__ */ t(ln, { transaction: Be })
6535
6535
  }
6536
6536
  ),
6537
- Be && lA === "category" && /* @__PURE__ */ t(
6537
+ Be && cA === "category" && /* @__PURE__ */ t(
6538
6538
  Ed,
6539
6539
  {
6540
6540
  onClose: () => {
@@ -6547,7 +6547,7 @@ const ir = "connect_widget", or = "connections_widget", md = {
6547
6547
  hA,
6548
6548
  {
6549
6549
  ariaLabelClose: w.close_aria,
6550
- isOpen: lA === "addTransaction",
6550
+ isOpen: cA === "addTransaction",
6551
6551
  isPrimaryDisabled: !Sa,
6552
6552
  onClose: () => rA(""),
6553
6553
  onPrimaryAction: lo,
@@ -6585,7 +6585,7 @@ const ir = "connect_widget", or = "connections_widget", md = {
6585
6585
  repeat_month: null,
6586
6586
  repeat_weekday: null,
6587
6587
  start_date: CA(A.expectedDate)
6588
- }, a = `${Ct(A.expectedDate)}`, r = `${We(A.expectedDate)}`, i = `${pt(A.expectedDate)}`;
6588
+ }, a = `${Ct(A.expectedDate)}`, r = `${Ye(A.expectedDate)}`, i = `${pt(A.expectedDate)}`;
6589
6589
  switch (A.recurrenceType) {
6590
6590
  case _.EveryWeek:
6591
6591
  n.repeat_interval = "1", n.repeat_weekday = i;
@@ -6646,7 +6646,7 @@ const ir = "connect_widget", or = "connections_widget", md = {
6646
6646
  }
6647
6647
  );
6648
6648
  }, C = l.find((f) => f.id === A.recurrenceType);
6649
- return /* @__PURE__ */ u(aA, { children: [
6649
+ return /* @__PURE__ */ u(nA, { children: [
6650
6650
  /* @__PURE__ */ t(
6651
6651
  Ut,
6652
6652
  {
@@ -6670,9 +6670,9 @@ const ir = "connect_widget", or = "connections_widget", md = {
6670
6670
  A.activityType === EA.Expense || f.id !== _.EveryOtherMonth && f.id !== _.EveryOtherQuarter
6671
6671
  )
6672
6672
  ).map((f) => /* @__PURE__ */ u(g.Fragment, { children: [
6673
- /* @__PURE__ */ t(U, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ u(dA, { onClick: () => d(f.id), children: [
6673
+ /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ u(dA, { onClick: () => d(f.id), children: [
6674
6674
  /* @__PURE__ */ t(
6675
- cA,
6675
+ lA,
6676
6676
  {
6677
6677
  primary: f.label,
6678
6678
  primaryTypographyProps: { fontWeight: 400 }
@@ -6707,14 +6707,14 @@ const ir = "connect_widget", or = "connections_widget", md = {
6707
6707
  }
6708
6708
  s(!1);
6709
6709
  };
6710
- return /* @__PURE__ */ u(aA, { children: [
6710
+ return /* @__PURE__ */ u(nA, { children: [
6711
6711
  /* @__PURE__ */ t(
6712
6712
  Ut,
6713
6713
  {
6714
6714
  iconName: "calendar_month",
6715
6715
  label: pn.activity_payment_date,
6716
6716
  onClick: h,
6717
- value: j(A.expectedDate, F.MONTH_DAY_YEAR)
6717
+ value: U(A.expectedDate, F.MONTH_DAY_YEAR)
6718
6718
  }
6719
6719
  ),
6720
6720
  /* @__PURE__ */ t(
@@ -6795,7 +6795,7 @@ const ir = "connect_widget", or = "connections_widget", md = {
6795
6795
  ] })
6796
6796
  ] }),
6797
6797
  /* @__PURE__ */ u(oA, { sx: { bgcolor: "background.paper" }, children: [
6798
- A.institution && /* @__PURE__ */ u(aA, { children: [
6798
+ A.institution && /* @__PURE__ */ u(nA, { children: [
6799
6799
  /* @__PURE__ */ t(
6800
6800
  Ut,
6801
6801
  {
@@ -6806,7 +6806,7 @@ const ir = "connect_widget", or = "connections_widget", md = {
6806
6806
  ),
6807
6807
  /* @__PURE__ */ t(q, { color: "secondary", variant: "inset" })
6808
6808
  ] }),
6809
- v && /* @__PURE__ */ u(aA, { children: [
6809
+ v && /* @__PURE__ */ u(nA, { children: [
6810
6810
  /* @__PURE__ */ t(
6811
6811
  Ut,
6812
6812
  {
@@ -6925,17 +6925,17 @@ const ir = "connect_widget", or = "connections_widget", md = {
6925
6925
  case wA.Paid:
6926
6926
  return A.occurredOnDate ? H(
6927
6927
  e.paid_on,
6928
- j(A.occurredOnDate, F.MONTH_DAY)
6928
+ U(A.occurredOnDate, F.MONTH_DAY)
6929
6929
  ) : e.paid;
6930
6930
  case wA.Missed:
6931
6931
  return H(
6932
6932
  e.missed_on,
6933
- j(A.expectedDate, F.MONTH_DAY)
6933
+ U(A.expectedDate, F.MONTH_DAY)
6934
6934
  );
6935
6935
  case wA.Upcoming:
6936
6936
  return H(
6937
6937
  e.upcoming_on,
6938
- j(A.expectedDate, F.MONTH_DAY)
6938
+ U(A.expectedDate, F.MONTH_DAY)
6939
6939
  );
6940
6940
  default:
6941
6941
  return e.unknown;
@@ -6955,7 +6955,7 @@ const ir = "connect_widget", or = "connections_widget", md = {
6955
6955
  missed: "missed"
6956
6956
  }, [i, o] = g.useState(""), s = A.activityType === EA.Income, c = A.activityStatus === wA.Paid, l = A.activityStatus === wA.Missed, d = A.activityStatus === wA.Upcoming;
6957
6957
  let h = r.paid;
6958
- return l ? h = r.missed : d && (h = a ? cr(A.recurrenceType, A.expectedDate) : cr(A.recurrenceType)), /* @__PURE__ */ u(U, { disableGutters: !0, disablePadding: !0, children: [
6958
+ return l ? h = r.missed : d && (h = a ? cr(A.recurrenceType, A.expectedDate) : cr(A.recurrenceType)), /* @__PURE__ */ u(j, { disableGutters: !0, disablePadding: !0, children: [
6959
6959
  /* @__PURE__ */ u(dA, { onClick: () => {
6960
6960
  o(A.sequenceGuid || A.scheduledPaymentGuid || ""), n(A);
6961
6961
  }, children: [
@@ -6966,13 +6966,13 @@ const ir = "connect_widget", or = "connections_widget", md = {
6966
6966
  merchantGuid: A.merchantGuid || ""
6967
6967
  }
6968
6968
  ) }),
6969
- /* @__PURE__ */ t(cA, { children: /* @__PURE__ */ u(T, { direction: "row", sx: { textOverflow: "ellipsis", textWrap: "nowrap" }, children: [
6969
+ /* @__PURE__ */ t(lA, { children: /* @__PURE__ */ u(T, { direction: "row", sx: { textOverflow: "ellipsis", textWrap: "nowrap" }, children: [
6970
6970
  /* @__PURE__ */ u(T, { direction: "column", maxWidth: "60%", children: [
6971
6971
  /* @__PURE__ */ t(y, { bold: !0, variant: "Body", children: A.name }),
6972
6972
  /* @__PURE__ */ t(T, { alignItems: "center", direction: "row", gap: 6, children: e ? /* @__PURE__ */ u(T, { direction: "row", gap: 4, children: [
6973
6973
  Od(A),
6974
6974
  /* @__PURE__ */ t(y, { variant: "XSmall", children: xd(A) })
6975
- ] }) : /* @__PURE__ */ u(aA, { children: [
6975
+ ] }) : /* @__PURE__ */ u(nA, { children: [
6976
6976
  A.institutionGuid && /* @__PURE__ */ t(
6977
6977
  we,
6978
6978
  {
@@ -7048,7 +7048,7 @@ const ir = "connect_widget", or = "connections_widget", md = {
7048
7048
  a.repeat_interval = "3", a.repeat_day = `${Ct(n)}`;
7049
7049
  break;
7050
7050
  case _.EveryYear:
7051
- a.repeat_day = `${Ct(n)}`, a.repeat_month = `${We(n)}`;
7051
+ a.repeat_day = `${Ct(n)}`, a.repeat_month = `${Ye(n)}`;
7052
7052
  break;
7053
7053
  }
7054
7054
  return a;
@@ -7210,7 +7210,7 @@ const ir = "connect_widget", or = "connections_widget", md = {
7210
7210
  }
7211
7211
  ) })
7212
7212
  ] });
7213
- }, qn = (A) => A.top_level_category_guid !== p.INCOME && A.transaction_type === UA.DEBIT, Md = (A, e) => qn(A) ? A.payee?.toLowerCase().includes(e.toLowerCase()) || A.description.toLowerCase().includes(e.toLowerCase()) || A.feed_description.toLowerCase().includes(e.toLowerCase()) : !1, wt = (A) => A.top_level_category_guid === p.INCOME || A.top_level_category_guid === p.TRANSFER && A.transaction_type === UA.CREDIT, Hi = (A, e) => wt(A) ? A.payee?.toLowerCase().includes(e.toLowerCase()) || A.description?.toLowerCase().includes(e.toLowerCase()) || A.feed_description?.toLowerCase().includes(e.toLowerCase()) : !1, je = {
7213
+ }, qn = (A) => A.top_level_category_guid !== p.INCOME && A.transaction_type === UA.DEBIT, Md = (A, e) => qn(A) ? A.payee?.toLowerCase().includes(e.toLowerCase()) || A.description.toLowerCase().includes(e.toLowerCase()) || A.feed_description.toLowerCase().includes(e.toLowerCase()) : !1, wt = (A) => A.top_level_category_guid === p.INCOME || A.top_level_category_guid === p.TRANSFER && A.transaction_type === UA.CREDIT, Hi = (A, e) => wt(A) ? A.payee?.toLowerCase().includes(e.toLowerCase()) || A.description?.toLowerCase().includes(e.toLowerCase()) || A.feed_description?.toLowerCase().includes(e.toLowerCase()) : !1, We = {
7214
7214
  add_expense_description: "Here are all your debit transactions for the past 90 days. Choose one to get started on adding a recurring expense.",
7215
7215
  add_income_description: "Here are all your credit transactions for the past 90 days. Choose one to get started on adding recurring income.",
7216
7216
  close_drawer_aria: "Close",
@@ -7248,7 +7248,7 @@ const ir = "connect_widget", or = "connections_widget", md = {
7248
7248
  C(""), d(!1);
7249
7249
  };
7250
7250
  return /* @__PURE__ */ u(S, { children: [
7251
- /* @__PURE__ */ t(U, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(dA, { onClick: b, children: /* @__PURE__ */ t(cA, { children: /* @__PURE__ */ u(T, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
7251
+ /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(dA, { onClick: b, children: /* @__PURE__ */ t(lA, { children: /* @__PURE__ */ u(T, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
7252
7252
  /* @__PURE__ */ u(T, { alignItems: "center", direction: "row", gap: 8, children: [
7253
7253
  /* @__PURE__ */ t(P, { fill: !0, name: "add_box", size: 24, sx: { color: "action.active" } }),
7254
7254
  /* @__PURE__ */ t(y, { bold: !0, sx: { color: "action.active" }, variant: "Body", children: e })
@@ -7259,14 +7259,14 @@ const ir = "connect_widget", or = "connections_widget", md = {
7259
7259
  /* @__PURE__ */ t(
7260
7260
  hA,
7261
7261
  {
7262
- ariaLabelClose: je.close_drawer_aria,
7262
+ ariaLabelClose: We.close_drawer_aria,
7263
7263
  isOpen: l,
7264
7264
  onClose: () => d(!1),
7265
7265
  title: e,
7266
7266
  children: /* @__PURE__ */ t(
7267
7267
  Ri,
7268
7268
  {
7269
- description: A ? je.add_income_description : je.add_expense_description,
7269
+ description: A ? We.add_income_description : We.add_expense_description,
7270
7270
  onSearch: (D) => {
7271
7271
  s({
7272
7272
  ...o,
@@ -7281,11 +7281,11 @@ const ir = "connect_widget", or = "connections_widget", md = {
7281
7281
  /* @__PURE__ */ t(
7282
7282
  hA,
7283
7283
  {
7284
- ariaLabelClose: je.close_drawer_aria,
7284
+ ariaLabelClose: We.close_drawer_aria,
7285
7285
  isOpen: !!h,
7286
7286
  onClose: () => C(""),
7287
7287
  onPrimaryAction: w,
7288
- title: A ? je.income_details : je.expense_details,
7288
+ title: A ? We.income_details : We.expense_details,
7289
7289
  children: L && /* @__PURE__ */ t(
7290
7290
  _i,
7291
7291
  {
@@ -7360,7 +7360,7 @@ const ir = "connect_widget", or = "connections_widget", md = {
7360
7360
  transactionGuid: d.transaction_guid
7361
7361
  };
7362
7362
  }), s = a.filter(
7363
- (d) => At(NA(d.expected_date), {
7363
+ (d) => et(NA(d.expected_date), {
7364
7364
  start: LA(Z()),
7365
7365
  end: ge(Z(), 30)
7366
7366
  })
@@ -7423,11 +7423,11 @@ const ir = "connect_widget", or = "connections_widget", md = {
7423
7423
  break;
7424
7424
  case _.EveryOtherWeek:
7425
7425
  if (gA(o, d))
7426
- for (C = Ye(o, 2); gA(C, h); )
7426
+ for (C = Ve(o, 2); gA(C, h); )
7427
7427
  yt(C, d) && a.push({
7428
7428
  ...s,
7429
7429
  expectedDate: C
7430
- }), C = Ye(C, 2);
7430
+ }), C = Ve(C, 2);
7431
7431
  else {
7432
7432
  for (a.push({
7433
7433
  ...s,
@@ -7437,11 +7437,11 @@ const ir = "connect_widget", or = "connections_widget", md = {
7437
7437
  ...s,
7438
7438
  expectedDate: C
7439
7439
  }), C = Ha(C, 2);
7440
- for (C = Ye(o, 2); gA(C, h); )
7440
+ for (C = Ve(o, 2); gA(C, h); )
7441
7441
  a.push({
7442
7442
  ...s,
7443
7443
  expectedDate: C
7444
- }), C = Ye(C, 2);
7444
+ }), C = Ve(C, 2);
7445
7445
  }
7446
7446
  break;
7447
7447
  case _.EveryMonth:
@@ -7559,16 +7559,16 @@ const ir = "connect_widget", or = "connections_widget", md = {
7559
7559
  A === 0 && /* @__PURE__ */ t(qd, {}),
7560
7560
  A === 1 && /* @__PURE__ */ t(qi, {})
7561
7561
  ] });
7562
- }, lt = (A, e) => A + e.amount, En = (A) => A.activityType === EA.Income && At(A.expectedDate, {
7562
+ }, lt = (A, e) => A + e.amount, En = (A) => A.activityType === EA.Income && et(A.expectedDate, {
7563
7563
  start: LA(Z()),
7564
7564
  end: OA(Z())
7565
- }), Rt = (A) => A.activityType === EA.Expense && At(A.expectedDate, {
7565
+ }), Rt = (A) => A.activityType === EA.Expense && et(A.expectedDate, {
7566
7566
  start: LA(Z()),
7567
7567
  end: OA(Z())
7568
- }), wn = (A) => A.occurredOnDate && At(A.occurredOnDate, {
7568
+ }), wn = (A) => A.occurredOnDate && et(A.occurredOnDate, {
7569
7569
  start: LA(/* @__PURE__ */ new Date()),
7570
7570
  end: ge(Z(), 30)
7571
- }) || At(A.expectedDate, {
7571
+ }) || et(A.expectedDate, {
7572
7572
  start: LA(/* @__PURE__ */ new Date()),
7573
7573
  end: ge(Z(), 30)
7574
7574
  }), Qd = ({ day: A, outsideCurrentMonth: e, ...n }) => {
@@ -7592,7 +7592,7 @@ const ir = "connect_widget", or = "connections_widget", md = {
7592
7592
  return /* @__PURE__ */ t(
7593
7593
  $r,
7594
7594
  {
7595
- badgeContent: c.length > 0 && /* @__PURE__ */ u(aA, { children: [
7595
+ badgeContent: c.length > 0 && /* @__PURE__ */ u(nA, { children: [
7596
7596
  d && /* @__PURE__ */ t(va, { isOffset: !0 }),
7597
7597
  h && /* @__PURE__ */ t(pa, { isOffset: !0 }),
7598
7598
  l && /* @__PURE__ */ t(fa, { isOffset: !0 }),
@@ -7730,7 +7730,7 @@ const ir = "connect_widget", or = "connections_widget", md = {
7730
7730
  /* @__PURE__ */ t(y, { bold: !0, sx: { fontFamily: o.typography.H3.fontFamily }, variant: "Body", children: i }),
7731
7731
  n && /* @__PURE__ */ t(iA, { onClick: n, sx: { mt: -12 }, variant: "text", children: s.reset })
7732
7732
  ] }),
7733
- A.length === 0 ? /* @__PURE__ */ t(y, { fontStyle: "italic", py: 24, sx: { textAlign: "center" }, children: s.no_activities }) : /* @__PURE__ */ t(oA, { children: e ? A.map((l, d) => /* @__PURE__ */ u(aA, { children: [
7733
+ A.length === 0 ? /* @__PURE__ */ t(y, { fontStyle: "italic", py: 24, sx: { textAlign: "center" }, children: s.no_activities }) : /* @__PURE__ */ t(oA, { children: e ? A.map((l, d) => /* @__PURE__ */ u(nA, { children: [
7734
7734
  /* @__PURE__ */ t(
7735
7735
  Yt,
7736
7736
  {
@@ -7741,16 +7741,16 @@ const ir = "connect_widget", or = "connections_widget", md = {
7741
7741
  l.expectedDate.toString() + d
7742
7742
  ),
7743
7743
  /* @__PURE__ */ t(q, { sx: { mx: 24 } })
7744
- ] })) : c.map((l) => /* @__PURE__ */ u(aA, { children: [
7745
- /* @__PURE__ */ t(U, { children: /* @__PURE__ */ t(
7744
+ ] })) : c.map((l) => /* @__PURE__ */ u(nA, { children: [
7745
+ /* @__PURE__ */ t(j, { children: /* @__PURE__ */ t(
7746
7746
  oA,
7747
7747
  {
7748
- subheader: /* @__PURE__ */ t(nt, { sx: { bgcolor: "background.paper", ml: 8, pb: 4, pt: 12 }, children: /* @__PURE__ */ t(y, { bold: !0, variant: "XSmall", children: j(
7748
+ subheader: /* @__PURE__ */ t(Fe, { sx: { bgcolor: "background.paper", ml: 8, pb: 4, pt: 12 }, children: /* @__PURE__ */ t(y, { bold: !0, variant: "XSmall", children: U(
7749
7749
  l.activities[0].occurredOnDate || l.activities[0].expectedDate,
7750
7750
  F.DAY_OF_WEEK_MONTH_DAY
7751
7751
  ) }) }),
7752
7752
  sx: { width: "100%" },
7753
- children: l.activities.map((d, h) => /* @__PURE__ */ u(aA, { children: [
7753
+ children: l.activities.map((d, h) => /* @__PURE__ */ u(nA, { children: [
7754
7754
  /* @__PURE__ */ t(
7755
7755
  Yt,
7756
7756
  {
@@ -7791,7 +7791,7 @@ const ir = "connect_widget", or = "connections_widget", md = {
7791
7791
  /* @__PURE__ */ u(T, { direction: "row", gap: 2, mb: 8, children: [
7792
7792
  /* @__PURE__ */ t(y, { bold: !0, variant: "XSmall", children: X(n, "0,0.00") }),
7793
7793
  /* @__PURE__ */ t(y, { variant: "XSmall", children: s.activity_paid }),
7794
- a !== void 0 && /* @__PURE__ */ u(aA, { children: [
7794
+ a !== void 0 && /* @__PURE__ */ u(nA, { children: [
7795
7795
  /* @__PURE__ */ t(y, { variant: "XSmall", children: "/" }),
7796
7796
  /* @__PURE__ */ t(y, { bold: !0, variant: "XSmall", children: X(a, "0,0.00") }),
7797
7797
  /* @__PURE__ */ t(y, { variant: "XSmall", children: s.activity_missed })
@@ -7895,7 +7895,7 @@ const ir = "connect_widget", or = "connections_widget", md = {
7895
7895
  onResetClick: r ? () => o(r) : void 0,
7896
7896
  title: r ? H(
7897
7897
  Ke.day_transactions,
7898
- j(r, F.MONTH_DAY)
7898
+ U(r, F.MONTH_DAY)
7899
7899
  ) : Ke.recurring_activity_paid_activity
7900
7900
  }
7901
7901
  )
@@ -7975,7 +7975,7 @@ const ir = "connect_widget", or = "connections_widget", md = {
7975
7975
  sx: { width: s ? "100%" : "calc(100% - 336px)", mt: 12 },
7976
7976
  title: e ? H(
7977
7977
  ur.day_transactions,
7978
- j(e, F.MONTH_DAY)
7978
+ U(e, F.MONTH_DAY)
7979
7979
  ) : ur.recurring_activity_upcoming_activity
7980
7980
  }
7981
7981
  )
@@ -8206,7 +8206,7 @@ const tu = {
8206
8206
  gridRow: 1,
8207
8207
  gridColumn: 1,
8208
8208
  zIndex: 2
8209
- }, nu = ({ size: A = 20 }) => /* @__PURE__ */ t(xe, { size: A, children: /* @__PURE__ */ t(Zn, { color: "error", sx: { fontSize: A, ...tu } }) }), au = (A) => A && (A.account_type === Q.CREDIT_CARD || A.account_type === Q.LOAN || A.account_type === Q.MORTGAGE || A.account_type === Q.LINE_OF_CREDIT || A.account_type === Q.CHECKING_LINE_OF_CREDIT), ru = (A) => A.is_manual || !A.guid, iu = (A) => A.account_type === Q.LINE_OF_CREDIT || A.account_type === Q.CREDIT_CARD || A.account_type === Q.CHECKING_LINE_OF_CREDIT, ou = (A) => A.account_type === Q.SAVINGS || A.account_type === Q.CHECKING || A.account_type === Q.LINE_OF_CREDIT || A.account_type === Q.CREDIT_CARD || A.account_type === Q.LOAN || A.account_type === Q.MORTGAGE, su = (A) => A.account_type === Q.LOAN || A.account_type === Q.MORTGAGE, nA = {
8209
+ }, nu = ({ size: A = 20 }) => /* @__PURE__ */ t(xe, { size: A, children: /* @__PURE__ */ t(Zn, { color: "error", sx: { fontSize: A, ...tu } }) }), au = (A) => A && (A.account_type === Q.CREDIT_CARD || A.account_type === Q.LOAN || A.account_type === Q.MORTGAGE || A.account_type === Q.LINE_OF_CREDIT || A.account_type === Q.CHECKING_LINE_OF_CREDIT), ru = (A) => A.is_manual || !A.guid, iu = (A) => A.account_type === Q.LINE_OF_CREDIT || A.account_type === Q.CREDIT_CARD || A.account_type === Q.CHECKING_LINE_OF_CREDIT, ou = (A) => A.account_type === Q.SAVINGS || A.account_type === Q.CHECKING || A.account_type === Q.LINE_OF_CREDIT || A.account_type === Q.CREDIT_CARD || A.account_type === Q.LOAN || A.account_type === Q.MORTGAGE, su = (A) => A.account_type === Q.LOAN || A.account_type === Q.MORTGAGE, aA = {
8210
8210
  account_balance: "Account Balance",
8211
8211
  account_name: "Account Name",
8212
8212
  account_type: "Account Type",
@@ -8232,19 +8232,19 @@ const tu = {
8232
8232
  const e = [
8233
8233
  {
8234
8234
  event: "account_details_click_account_name",
8235
- label: nA.account_name,
8235
+ label: aA.account_name,
8236
8236
  name: "user_name",
8237
- placeholder: H(nA.enter_value, nA.account_name),
8237
+ placeholder: H(aA.enter_value, aA.account_name),
8238
8238
  type: QA.Input,
8239
- validation: (n) => n ? "" : H(nA.field_is_required, nA.account_name),
8239
+ validation: (n) => n ? "" : H(aA.field_is_required, aA.account_name),
8240
8240
  valueFormatter: (n) => n
8241
8241
  }
8242
8242
  ];
8243
8243
  if (ru(A)) {
8244
8244
  e.unshift({
8245
- label: nA.account_balance,
8245
+ label: aA.account_balance,
8246
8246
  name: "balance",
8247
- placeholder: H(nA.enter_value, nA.account_balance),
8247
+ placeholder: H(aA.enter_value, aA.account_balance),
8248
8248
  type: QA.Currency,
8249
8249
  valueFormatter: (a) => X(a, "0,0.00")
8250
8250
  });
@@ -8254,10 +8254,10 @@ const tu = {
8254
8254
  icon: /* @__PURE__ */ t(P, { name: Gs[a] })
8255
8255
  }));
8256
8256
  e.push({
8257
- label: nA.account_type,
8257
+ label: aA.account_type,
8258
8258
  name: "account_type",
8259
8259
  options: n,
8260
- placeholder: H(nA.select_value, nA.account_type),
8260
+ placeholder: H(aA.select_value, aA.account_type),
8261
8261
  type: QA.Select,
8262
8262
  valueFormatter: (a) => n.find((r) => r.value === a)?.label
8263
8263
  });
@@ -8269,60 +8269,60 @@ const tu = {
8269
8269
  icon: /* @__PURE__ */ t(P, { name: Qs[a] })
8270
8270
  }));
8271
8271
  e.push({
8272
- label: nA.property_type,
8272
+ label: aA.property_type,
8273
8273
  name: "property_type",
8274
8274
  options: n,
8275
- placeholder: H(nA.select_value, nA.property_type),
8275
+ placeholder: H(aA.select_value, aA.property_type),
8276
8276
  type: QA.Select,
8277
8277
  valueFormatter: (a) => n.find((r) => r.value === a)?.label
8278
8278
  });
8279
8279
  }
8280
8280
  if (ou(A)) {
8281
- let n = nA.interest_rate, a = "interest_rate";
8282
- A.is_manual || (typeof A.apr == "number" && (n = nA.apr, a = "apr"), typeof A.apy == "number" && (n = nA.apy, a = "apy")), e.push({
8281
+ let n = aA.interest_rate, a = "interest_rate";
8282
+ A.is_manual || (typeof A.apr == "number" && (n = aA.apr, a = "apr"), typeof A.apy == "number" && (n = aA.apy, a = "apy")), e.push({
8283
8283
  event: "account_details_click_interest_rate",
8284
8284
  label: n,
8285
8285
  name: a,
8286
- placeholder: H(nA.enter_value, n),
8286
+ placeholder: H(aA.enter_value, n),
8287
8287
  type: QA.Input,
8288
- validation: (r) => Hn(r) ? "" : nA.error_amount_is_invalid,
8288
+ validation: (r) => Hn(r) ? "" : aA.error_amount_is_invalid,
8289
8289
  valueFormatter: (r) => Hn(r) ? Vs(r / 100) : r
8290
8290
  });
8291
8291
  }
8292
8292
  return au(A) && (e.push({
8293
- label: nA.minimum_payment,
8293
+ label: aA.minimum_payment,
8294
8294
  name: "minimum_payment",
8295
- placeholder: H(nA.enter_value, nA.minimum_payment),
8295
+ placeholder: H(aA.enter_value, aA.minimum_payment),
8296
8296
  type: QA.Currency,
8297
8297
  valueFormatter: (n) => X(n, "0,0.00")
8298
8298
  }), A.payment_due_at ? e.push({
8299
- label: nA.next_payment,
8299
+ label: aA.next_payment,
8300
8300
  name: "payment_due_at",
8301
8301
  type: QA.Date,
8302
8302
  valueFormatter: (n) => {
8303
8303
  const a = typeof n == "number" ? new Date(n * 1e3) : n;
8304
- return j(a, F.MED_MONTH_SHORT_DAY_FULL_YEAR);
8304
+ return U(a, F.MED_MONTH_SHORT_DAY_FULL_YEAR);
8305
8305
  }
8306
8306
  }) : e.push({
8307
- label: nA.day_payment_due,
8307
+ label: aA.day_payment_due,
8308
8308
  name: "day_payment_is_due",
8309
- placeholder: H(nA.enter_value, nA.day_payment_due),
8309
+ placeholder: H(aA.enter_value, aA.day_payment_due),
8310
8310
  type: QA.Date,
8311
8311
  valueFormatter: (n) => H(
8312
- nA.day_of_every_month,
8312
+ aA.day_of_every_month,
8313
8313
  Zs(n <= 31 ? n : new Date(n).getDate())
8314
8314
  )
8315
8315
  })), iu(A) && e.push({
8316
- label: nA.credit_limit,
8316
+ label: aA.credit_limit,
8317
8317
  name: "credit_limit",
8318
- placeholder: H(nA.enter_value, nA.credit_limit),
8318
+ placeholder: H(aA.enter_value, aA.credit_limit),
8319
8319
  type: QA.Currency,
8320
8320
  valueFormatter: (n) => X(n, "0,0.00")
8321
8321
  }), su(A) && e.push({
8322
- label: nA.original_balance,
8322
+ label: aA.original_balance,
8323
8323
  minAmount: 1,
8324
8324
  name: "original_balance",
8325
- placeholder: H(nA.enter_value, nA.original_balance),
8325
+ placeholder: H(aA.enter_value, aA.original_balance),
8326
8326
  type: QA.Currency,
8327
8327
  valueFormatter: (n) => X(n, "0,0.00")
8328
8328
  }), e;
@@ -8331,14 +8331,14 @@ const tu = {
8331
8331
  switch (A.account_type) {
8332
8332
  case 1:
8333
8333
  case 2: {
8334
- A.available_balance ? (e = nA.available_balance, n = A.available_balance, a = A.available_balance ? nA.current_balance : null, r = X(A.balance, "0,0.00"), i = !0) : (e = nA.current_balance, n = A.balance);
8334
+ A.available_balance ? (e = aA.available_balance, n = A.available_balance, a = A.available_balance ? aA.current_balance : null, r = X(A.balance, "0,0.00"), i = !0) : (e = aA.current_balance, n = A.balance);
8335
8335
  break;
8336
8336
  }
8337
8337
  default:
8338
- if (e = nA.current_balance, n = A.balance, A.minimum_payment && A.payment_due_at) {
8338
+ if (e = aA.current_balance, n = A.balance, A.minimum_payment && A.payment_due_at) {
8339
8339
  const o = typeof A.payment_due_at == "number" ? new Date(A.payment_due_at * 1e3) : A.payment_due_at;
8340
- a = /* @__PURE__ */ t("strong", { children: `${X(A.minimum_payment, "0,0.00")} due on ${j(o, F.FULL_MONTH_DAY)}` });
8341
- } else A.credit_limit && (a = nA.available_credit, r = X(A.credit_limit, "0,0.00"));
8340
+ a = /* @__PURE__ */ t("strong", { children: `${X(A.minimum_payment, "0,0.00")} due on ${U(o, F.FULL_MONTH_DAY)}` });
8341
+ } else A.credit_limit && (a = aA.available_credit, r = X(A.credit_limit, "0,0.00"));
8342
8342
  }
8343
8343
  return {
8344
8344
  firstSubtitle: e,
@@ -8359,7 +8359,7 @@ const tu = {
8359
8359
  const { firstSubtitle: r, firstValue: i, secondSubtitle: o, secondValue: s } = ki(A);
8360
8360
  let c;
8361
8361
  (A.connectionStatus === Oe.Error || A.connectionStatus === Oe.RequiresMfa) && (c = /* @__PURE__ */ t(nu, { size: 16 }));
8362
- const l = /* @__PURE__ */ u(aA, { children: [
8362
+ const l = /* @__PURE__ */ u(nA, { children: [
8363
8363
  /* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(
8364
8364
  $r,
8365
8365
  {
@@ -8373,7 +8373,7 @@ const tu = {
8373
8373
  }
8374
8374
  ) }),
8375
8375
  /* @__PURE__ */ t(
8376
- cA,
8376
+ lA,
8377
8377
  {
8378
8378
  disableTypography: !0,
8379
8379
  primary: /* @__PURE__ */ u(y, { bold: !0, variant: "Body", children: [
@@ -8382,7 +8382,7 @@ const tu = {
8382
8382
  A.is_hidden && !A.is_closed && hr.is_hidden,
8383
8383
  A.is_closed && hr.is_closed
8384
8384
  ] }),
8385
- secondary: /* @__PURE__ */ u(aA, { children: [
8385
+ secondary: /* @__PURE__ */ u(nA, { children: [
8386
8386
  /* @__PURE__ */ u(S, { sx: { alignItems: "center", display: "flex", justifyContent: "space-between" }, children: [
8387
8387
  /* @__PURE__ */ t(y, { variant: "XSmall", children: r }),
8388
8388
  /* @__PURE__ */ t(y, { bold: !0, variant: "Small", children: X(i, "0,0.00") })
@@ -8395,9 +8395,9 @@ const tu = {
8395
8395
  }
8396
8396
  )
8397
8397
  ] });
8398
- return /* @__PURE__ */ t(U, { sx: { backgroundColor: "background.paper" }, ...n, children: e ? /* @__PURE__ */ t(dA, { alignItems: "flex-start", onClick: e, sx: { px: 24 }, children: l }) : l });
8398
+ return /* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper" }, ...n, children: e ? /* @__PURE__ */ t(dA, { alignItems: "flex-start", onClick: e, sx: { px: 24 }, children: l }) : l });
8399
8399
  }, hn = x(lu), du = ({ remaining: A }) => /* @__PURE__ */ t(
8400
- U,
8400
+ j,
8401
8401
  {
8402
8402
  sx: {
8403
8403
  alignItems: "center",
@@ -8413,11 +8413,11 @@ const tu = {
8413
8413
  }
8414
8414
  );
8415
8415
  var Tt = /* @__PURE__ */ ((A) => (A.EXPENSE = "expense", A.INCOME = "income", A))(Tt || {});
8416
- const uu = ({ activity: A }) => /* @__PURE__ */ u(aA, { children: [
8417
- /* @__PURE__ */ u(U, { sx: { display: "flex", alignItems: "center", gap: 16, px: 24, py: 12 }, children: [
8416
+ const uu = ({ activity: A }) => /* @__PURE__ */ u(nA, { children: [
8417
+ /* @__PURE__ */ u(j, { sx: { display: "flex", alignItems: "center", gap: 16, px: 24, py: 12 }, children: [
8418
8418
  /* @__PURE__ */ u(T, { alignItems: "center", height: 32, width: 32, children: [
8419
- /* @__PURE__ */ t(y, { bold: !0, sx: { fontSize: 11 }, children: j(A.expectedDate, F.MONTH) }),
8420
- /* @__PURE__ */ t(y, { bold: !0, sx: { fontSize: 11 }, children: j(A.expectedDate, F.DAY) })
8419
+ /* @__PURE__ */ t(y, { bold: !0, sx: { fontSize: 11 }, children: U(A.expectedDate, F.MONTH) }),
8420
+ /* @__PURE__ */ t(y, { bold: !0, sx: { fontSize: 11 }, children: U(A.expectedDate, F.DAY) })
8421
8421
  ] }),
8422
8422
  /* @__PURE__ */ t(y, { sx: { flexGrow: 1, fontSize: 13 }, children: A.name }),
8423
8423
  /* @__PURE__ */ t(
@@ -8432,9 +8432,9 @@ const uu = ({ activity: A }) => /* @__PURE__ */ u(aA, { children: [
8432
8432
  /* @__PURE__ */ t(q, {})
8433
8433
  ] }), gr = x(uu), hu = ({ total: A, type: e }) => {
8434
8434
  const { cashflow: n } = W();
8435
- return /* @__PURE__ */ u(aA, { children: [
8435
+ return /* @__PURE__ */ u(nA, { children: [
8436
8436
  /* @__PURE__ */ u(
8437
- nt,
8437
+ Fe,
8438
8438
  {
8439
8439
  sx: {
8440
8440
  alignItems: "center",
@@ -8462,10 +8462,10 @@ const uu = ({ activity: A }) => /* @__PURE__ */ u(aA, { children: [
8462
8462
  /* @__PURE__ */ u(T, { flexDirection: "row", justifyContent: "space-between", children: [
8463
8463
  /* @__PURE__ */ t(y, { bold: !0, sx: { fontSize: 15, mb: 12 }, children: A.accounts_breakdown }),
8464
8464
  /* @__PURE__ */ u(y, { bold: !0, sx: { fontSize: 15, mb: 12 }, children: [
8465
- j(a.start, F.FULL_MONTH_DAY),
8465
+ U(a.start, F.FULL_MONTH_DAY),
8466
8466
  " -",
8467
8467
  " ",
8468
- j(a.end, F.FULL_MONTH_DAY)
8468
+ U(a.end, F.FULL_MONTH_DAY)
8469
8469
  ] })
8470
8470
  ] }),
8471
8471
  /* @__PURE__ */ t(T, { children: r.map((i) => {
@@ -8500,7 +8500,7 @@ const uu = ({ activity: A }) => /* @__PURE__ */ u(aA, { children: [
8500
8500
  }
8501
8501
  ),
8502
8502
  /* @__PURE__ */ t(q, {}),
8503
- o.length > 0 && /* @__PURE__ */ t(U, { children: /* @__PURE__ */ t(
8503
+ o.length > 0 && /* @__PURE__ */ t(j, { children: /* @__PURE__ */ t(
8504
8504
  oA,
8505
8505
  {
8506
8506
  subheader: /* @__PURE__ */ t(Cr, { total: c, type: Tt.INCOME }),
@@ -8508,7 +8508,7 @@ const uu = ({ activity: A }) => /* @__PURE__ */ u(aA, { children: [
8508
8508
  children: o.map((d) => /* @__PURE__ */ t(gr, { activity: d }, d.sequenceGuid))
8509
8509
  }
8510
8510
  ) }),
8511
- s.length > 0 && /* @__PURE__ */ t(U, { children: /* @__PURE__ */ t(
8511
+ s.length > 0 && /* @__PURE__ */ t(j, { children: /* @__PURE__ */ t(
8512
8512
  oA,
8513
8513
  {
8514
8514
  subheader: /* @__PURE__ */ t(Cr, { total: l, type: Tt.EXPENSE }),
@@ -8614,10 +8614,10 @@ const uu = ({ activity: A }) => /* @__PURE__ */ u(aA, { children: [
8614
8614
  /* @__PURE__ */ t(jt, { body: mr.tooltip_body, title: mr.tooltip_title })
8615
8615
  ] }),
8616
8616
  /* @__PURE__ */ u(y, { bold: !0, sx: { fontSize: 15 }, children: [
8617
- j(i.start, F.FULL_MONTH_DAY),
8617
+ U(i.start, F.FULL_MONTH_DAY),
8618
8618
  " -",
8619
8619
  " ",
8620
- j(i.end, F.FULL_MONTH_DAY)
8620
+ U(i.end, F.FULL_MONTH_DAY)
8621
8621
  ] })
8622
8622
  ] }),
8623
8623
  A > 650 ? /* @__PURE__ */ t(
@@ -8649,7 +8649,7 @@ const uu = ({ activity: A }) => /* @__PURE__ */ u(aA, { children: [
8649
8649
  borderRadius: 1,
8650
8650
  marginBottom: 24
8651
8651
  },
8652
- children: /* @__PURE__ */ t(U, { sx: { minHeight: "auto" }, children: /* @__PURE__ */ u(T, { width: "100%", children: [
8652
+ children: /* @__PURE__ */ t(j, { sx: { minHeight: "auto" }, children: /* @__PURE__ */ u(T, { width: "100%", children: [
8653
8653
  /* @__PURE__ */ u(
8654
8654
  T,
8655
8655
  {
@@ -8864,9 +8864,9 @@ const uu = ({ activity: A }) => /* @__PURE__ */ u(aA, { children: [
8864
8864
  )
8865
8865
  }
8866
8866
  )
8867
- ] }) : /* @__PURE__ */ u(aA, { children: [
8867
+ ] }) : /* @__PURE__ */ u(nA, { children: [
8868
8868
  /* @__PURE__ */ t(Se, { amount: C, label: a.cash_and_bank }),
8869
- E ? /* @__PURE__ */ u(aA, { children: [
8869
+ E ? /* @__PURE__ */ u(nA, { children: [
8870
8870
  /* @__PURE__ */ t(y, { sx: { fontSize: 25, lineHeight: 1 }, children: "+" }),
8871
8871
  /* @__PURE__ */ t(
8872
8872
  Se,
@@ -9002,7 +9002,7 @@ const uu = ({ activity: A }) => /* @__PURE__ */ u(aA, { children: [
9002
9002
  const { addCashflowEvent: A, addCashflowSequence: e, cashflowSequences: n } = kA(), { cashflow: a, common: r } = W(), { completeOnboarding: i } = ia(), { isDirty: o } = ot(), { isMobile: s } = jA(), { setDisplayedDate: c } = mA(), { filter: l, setFilter: d, transactions: h } = uA(), C = fA(), [f, m] = de(!0), [v, E] = g.useState(_.EveryMonth), [L, b] = de(!1), [w, I] = g.useState(null), [D, O] = de(1), [k, $] = de([]), [B, R] = de(""), z = g.useMemo(
9003
9003
  () => h.find((sA) => sA.guid === B),
9004
9004
  [B]
9005
- ), K = !!n.length, lA = async () => {
9005
+ ), K = !!n.length, cA = async () => {
9006
9006
  O(2), c(
9007
9007
  // Beginning of the month, 90 days before today
9008
9008
  LA(ie(Z(), 90)),
@@ -9045,7 +9045,7 @@ const uu = ({ activity: A }) => /* @__PURE__ */ u(aA, { children: [
9045
9045
  sx: {
9046
9046
  ...s ? { display: "flex", flexDirection: "column", maxWidth: "100%", padding: "0 16px" } : { maxWidth: 590, ml: "40%", mr: 90 }
9047
9047
  },
9048
- children: /* @__PURE__ */ t(Tu, { handleNextStep: lA })
9048
+ children: /* @__PURE__ */ t(Tu, { handleNextStep: cA })
9049
9049
  }
9050
9050
  ),
9051
9051
  D === 2 && /* @__PURE__ */ t(
@@ -9066,7 +9066,7 @@ const uu = ({ activity: A }) => /* @__PURE__ */ u(aA, { children: [
9066
9066
  children: [
9067
9067
  /* @__PURE__ */ t(Ee, { pb: 12, children: a.add_income_title }),
9068
9068
  /* @__PURE__ */ t(vA, { mb: 24, children: a.add_income_description }),
9069
- k.length > 0 && !z && /* @__PURE__ */ u(aA, { children: [
9069
+ k.length > 0 && !z && /* @__PURE__ */ u(nA, { children: [
9070
9070
  /* @__PURE__ */ t(oA, { children: k.map((sA, G) => /* @__PURE__ */ u(g.Fragment, { children: [
9071
9071
  /* @__PURE__ */ t(da, { bgcolor: "background.paper", children: sn(
9072
9072
  CA(sA.nextDate || sA.date)
@@ -9100,7 +9100,7 @@ const uu = ({ activity: A }) => /* @__PURE__ */ u(aA, { children: [
9100
9100
  }
9101
9101
  ),
9102
9102
  !K && o && /* @__PURE__ */ t(vA, { color: "error", mt: 16, children: a.confirm_error }),
9103
- z && /* @__PURE__ */ u(aA, { children: [
9103
+ z && /* @__PURE__ */ u(nA, { children: [
9104
9104
  /* @__PURE__ */ t(
9105
9105
  _i,
9106
9106
  {
@@ -9130,7 +9130,7 @@ const uu = ({ activity: A }) => /* @__PURE__ */ u(aA, { children: [
9130
9130
  iA,
9131
9131
  {
9132
9132
  onClick: () => {
9133
- R(""), m(!0), lA();
9133
+ R(""), m(!0), cA();
9134
9134
  },
9135
9135
  variant: "outlined",
9136
9136
  children: r.cancel_button
@@ -9339,11 +9339,11 @@ class _u {
9339
9339
  };
9340
9340
  };
9341
9341
  get shouldDisableNextDate() {
9342
- const e = We(this.displayedDate), n = We(YA(/* @__PURE__ */ new Date(), 1));
9342
+ const e = Ye(this.displayedDate), n = Ye(YA(/* @__PURE__ */ new Date(), 1));
9343
9343
  return e === n;
9344
9344
  }
9345
9345
  get shouldDisablePrevDate() {
9346
- const e = We(this.displayedDate), n = We(/* @__PURE__ */ new Date());
9346
+ const e = Ye(this.displayedDate), n = Ye(/* @__PURE__ */ new Date());
9347
9347
  return e === n;
9348
9348
  }
9349
9349
  }
@@ -9389,9 +9389,9 @@ const Hu = /^[ a-zA-ZÀ-ÿ0-9]+$/, zu = 50, yr = 65, qu = ({
9389
9389
  sx: { transform: `translateY(${C.start}px)` },
9390
9390
  width: "100%",
9391
9391
  children: [
9392
- /* @__PURE__ */ t(U, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ u(dA, { onClick: () => c(f.guid), children: [
9392
+ /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ u(dA, { onClick: () => c(f.guid), children: [
9393
9393
  /* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(He, { categoryGuid: "", merchantGuid: f.guid }) }),
9394
- /* @__PURE__ */ t(cA, { primary: f.name })
9394
+ /* @__PURE__ */ t(lA, { primary: f.name })
9395
9395
  ] }) }),
9396
9396
  /* @__PURE__ */ t(q, { sx: { ml: 24 } })
9397
9397
  ]
@@ -9911,7 +9911,7 @@ class Tr {
9911
9911
  };
9912
9912
  getAccounts = async () => this.fetchInstance.get(N.ACCOUNTS).then((e) => e.accounts).catch((e) => e);
9913
9913
  getMembers = async () => this.fetchInstance.get(N.MEMBERS).then((e) => e.members).catch((e) => e);
9914
- getMonthlyAccountBalances = async (e) => this.fetchInstance.get(`${N.ACCOUNTS}/${e.guid}/monthly_account_balances`).then((n) => n).catch((n) => n);
9914
+ getMonthlyAccountBalances = async (e) => this.fetchInstance.get(`${N.ACCOUNTS}/${e.guid}/monthly_account_balances`).then((n) => n.monthly_account_balances).catch((n) => n);
9915
9915
  getNetWorthChartData = async () => wr.map((n) => ({ x: this.formatMonth(n.x), y: n.y }));
9916
9916
  getNetWorthMonthlyList = async () => wr;
9917
9917
  }
@@ -9924,17 +9924,16 @@ class Yu {
9924
9924
  constructor(e) {
9925
9925
  this.globalStore = e, bA(this);
9926
9926
  }
9927
- initialize = async (e, n) => {
9928
- this.api = new Tr(e, n), await Promise.all([this.loadNetWorthData(), this.loadChartData()]);
9927
+ initialize = (e, n) => {
9928
+ this.api = new Tr(e, n);
9929
9929
  };
9930
- /*eslint-disable no-console*/
9931
9930
  loadNetWorthData = async () => {
9932
9931
  try {
9933
9932
  const e = await this.api.getAccounts(), n = e.map((r) => this.api.getMonthlyAccountBalances(r)), a = await Promise.all(n);
9934
- console.log(a), Y(() => {
9933
+ Y(() => {
9935
9934
  this.netWorthData = {
9936
9935
  accounts: e,
9937
- monthlyAccountBalances: n
9936
+ monthlyAccountBalances: a
9938
9937
  };
9939
9938
  });
9940
9939
  } catch (e) {
@@ -9995,9 +9994,9 @@ const Ln = ({
9995
9994
  onClick: n,
9996
9995
  primaryText: a,
9997
9996
  secondaryText: r
9998
- }) => /* @__PURE__ */ u(aA, { children: [
9999
- /* @__PURE__ */ t(U, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ u(dA, { onClick: n, children: [
10000
- /* @__PURE__ */ t(cA, { primary: a, secondary: r }),
9997
+ }) => /* @__PURE__ */ u(nA, { children: [
9998
+ /* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ u(dA, { onClick: n, children: [
9999
+ /* @__PURE__ */ t(lA, { primary: a, secondary: r }),
10001
10000
  A
10002
10001
  ] }) }),
10003
10002
  /* @__PURE__ */ t(q, { sx: { ml: e ? 0 : 24 } })
@@ -10042,8 +10041,8 @@ const Ln = ({
10042
10041
  () => a(!1)
10043
10042
  );
10044
10043
  };
10045
- return /* @__PURE__ */ u(aA, { children: [
10046
- /* @__PURE__ */ t(nt, { sx: { backgroundColor: "transparent", mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(y, { bold: !0, component: "h2", variant: "XSmall", children: TA.actions }) }),
10044
+ return /* @__PURE__ */ u(nA, { children: [
10045
+ /* @__PURE__ */ t(Fe, { sx: { backgroundColor: "transparent", mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(y, { bold: !0, component: "h2", variant: "XSmall", children: TA.actions }) }),
10047
10046
  /* @__PURE__ */ t(
10048
10047
  Ln,
10049
10048
  {
@@ -10286,11 +10285,11 @@ const Ln = ({
10286
10285
  return {
10287
10286
  statusName: "Connected",
10288
10287
  title: (() => {
10289
- const n = A.successfully_aggregated_at ? NA(A.successfully_aggregated_at) : void 0, a = n && j(n, F.TIME_STAMP_HOUR_MINUTE);
10288
+ const n = A.successfully_aggregated_at ? NA(A.successfully_aggregated_at) : void 0, a = n && U(n, F.TIME_STAMP_HOUR_MINUTE);
10290
10289
  if (a)
10291
10290
  return $n(n) ? H(Sn.last_updated_at, "today", a) : Ts(n) ? H(Sn.last_updated_at, "yesterday", a) : H(
10292
10291
  Sn.last_updated_at,
10293
- j(n, F.MONTH_DAY_YEAR),
10292
+ U(n, F.MONTH_DAY_YEAR),
10294
10293
  a
10295
10294
  );
10296
10295
  })()
@@ -10320,18 +10319,18 @@ const Ln = ({
10320
10319
  mainMessage: r.statusName,
10321
10320
  secondaryMessage: r.title
10322
10321
  };
10323
- return /* @__PURE__ */ u(aA, { children: [
10324
- /* @__PURE__ */ t(nt, { sx: { mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(y, { bold: !0, component: "h2", variant: "XSmall", children: Lr.connection_status }) }),
10325
- /* @__PURE__ */ t(U, { sx: { backgroundColor: "background.paper" }, children: a.is_manual || !i.ctaCopy ? /* @__PURE__ */ u(T, { alignItems: "center", direction: "row", px: 24, py: 12, children: [
10322
+ return /* @__PURE__ */ u(nA, { children: [
10323
+ /* @__PURE__ */ t(Fe, { sx: { mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(y, { bold: !0, component: "h2", variant: "XSmall", children: Lr.connection_status }) }),
10324
+ /* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper" }, children: a.is_manual || !i.ctaCopy ? /* @__PURE__ */ u(T, { alignItems: "center", direction: "row", px: 24, py: 12, children: [
10326
10325
  /* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(xe, { backingSx: { backgroundColor: i.color, borderRadius: 1 }, size: 32, children: i.icon }) }),
10327
- /* @__PURE__ */ t(cA, { primary: i.mainMessage, secondary: i.secondaryMessage })
10326
+ /* @__PURE__ */ t(lA, { primary: i.mainMessage, secondary: i.secondaryMessage })
10328
10327
  ] }) : /* @__PURE__ */ u(dA, { onClick: () => e(!0), children: [
10329
10328
  /* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(xe, { backingSx: { backgroundColor: i.color, borderRadius: 1 }, size: 32, children: i.icon }) }),
10330
10329
  /* @__PURE__ */ t(
10331
- cA,
10330
+ lA,
10332
10331
  {
10333
10332
  primary: i.mainMessage,
10334
- secondary: i.secondaryMessage && /* @__PURE__ */ u(aA, { children: [
10333
+ secondary: i.secondaryMessage && /* @__PURE__ */ u(nA, { children: [
10335
10334
  i.secondaryMessage,
10336
10335
  " ",
10337
10336
  /* @__PURE__ */ t(y, { bold: !0, sx: { color: "action.active" }, variant: "XSmall", children: i.ctaCopy })
@@ -10341,8 +10340,8 @@ const Ln = ({
10341
10340
  /* @__PURE__ */ t(P, { name: "chevron_right" })
10342
10341
  ] }) }),
10343
10342
  /* @__PURE__ */ t(q, { sx: { ml: a.is_manual || !a.institution_url ? 0 : 24 } }),
10344
- !a.is_manual && a.institution_url && /* @__PURE__ */ u(aA, { children: [
10345
- /* @__PURE__ */ t(U, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ u(dA, { component: "a", href: a.institution_url, target: "_blank", children: [
10343
+ !a.is_manual && a.institution_url && /* @__PURE__ */ u(nA, { children: [
10344
+ /* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ u(dA, { component: "a", href: a.institution_url, target: "_blank", children: [
10346
10345
  /* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(
10347
10346
  xe,
10348
10347
  {
@@ -10362,7 +10361,7 @@ const Ln = ({
10362
10361
  )
10363
10362
  }
10364
10363
  ) }),
10365
- /* @__PURE__ */ t(cA, { primary: a.name, secondary: a.institution_url }),
10364
+ /* @__PURE__ */ t(lA, { primary: a.name, secondary: a.institution_url }),
10366
10365
  /* @__PURE__ */ t(P, { name: "launch" })
10367
10366
  ] }) }),
10368
10367
  /* @__PURE__ */ t(q, {})
@@ -10475,18 +10474,18 @@ const Ln = ({
10475
10474
  const A = window.app?.config, { onEvent: e } = V(), { selectedAccount: n } = se(), a = cu(n), r = n.member_is_managed_by_user || !n.member_is_managed_by_user && A.enable_renaming_home_accounts, [i, o] = g.useState(!1), [s, c] = g.useState(a[0]), l = a.filter(
10476
10475
  (d) => r || n[d.name] || n[d.name] === 0
10477
10476
  );
10478
- return /* @__PURE__ */ u(aA, { children: [
10477
+ return /* @__PURE__ */ u(nA, { children: [
10479
10478
  l.map((d) => {
10480
10479
  const h = n[d.name] || n[d.name] === 0, C = l.indexOf(d) === l.length - 1, f = /* @__PURE__ */ t(
10481
- cA,
10480
+ lA,
10482
10481
  {
10483
10482
  disableTypography: !0,
10484
10483
  primary: /* @__PURE__ */ t(y, { sx: { fontSize: 11 }, children: d.label }),
10485
10484
  secondary: /* @__PURE__ */ t(y, { bold: !0, sx: { fontSize: 15 }, children: h ? d.valueFormatter(n[d.name]) : d.placeholder })
10486
10485
  }
10487
10486
  );
10488
- return /* @__PURE__ */ t(g.Fragment, { children: r ? /* @__PURE__ */ u(aA, { children: [
10489
- /* @__PURE__ */ t(U, { sx: { backgroundColor: "background.paper", px: 0 }, children: /* @__PURE__ */ u(
10487
+ return /* @__PURE__ */ t(g.Fragment, { children: r ? /* @__PURE__ */ u(nA, { children: [
10488
+ /* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper", px: 0 }, children: /* @__PURE__ */ u(
10490
10489
  dA,
10491
10490
  {
10492
10491
  onClick: () => {
@@ -10499,8 +10498,8 @@ const Ln = ({
10499
10498
  }
10500
10499
  ) }),
10501
10500
  /* @__PURE__ */ t(q, { sx: { ml: C ? 0 : 24 } })
10502
- ] }) : h && /* @__PURE__ */ u(aA, { children: [
10503
- /* @__PURE__ */ t(U, { sx: { backgroundColor: "background.paper", px: 24 }, children: f }),
10501
+ ] }) : h && /* @__PURE__ */ u(nA, { children: [
10502
+ /* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper", px: 24 }, children: f }),
10504
10503
  /* @__PURE__ */ t(q, { sx: { ml: C ? 0 : 24 } })
10505
10504
  ] }) }, d.name);
10506
10505
  }),
@@ -10528,7 +10527,7 @@ const Ln = ({
10528
10527
  r && A(1);
10529
10528
  }, [r]), !r) return;
10530
10529
  const i = Gi(a);
10531
- return /* @__PURE__ */ u(aA, { children: [
10530
+ return /* @__PURE__ */ u(nA, { children: [
10532
10531
  /* @__PURE__ */ t(
10533
10532
  ue,
10534
10533
  {
@@ -10586,7 +10585,7 @@ const Ln = ({
10586
10585
  dateRange: { start: ts(ns(), 90), end: as() },
10587
10586
  accounts: [a.guid]
10588
10587
  });
10589
- }, [a]), g.useEffect(() => n(J.ACCOUNT_DETAILS_VIEW_TRANSACTIONS), []), /* @__PURE__ */ u(aA, { children: [
10588
+ }, [a]), g.useEffect(() => n(J.ACCOUNT_DETAILS_VIEW_TRANSACTIONS), []), /* @__PURE__ */ u(nA, { children: [
10590
10589
  /* @__PURE__ */ t(It, { onClick: e }),
10591
10590
  o && /* @__PURE__ */ t(
10592
10591
  hA,
@@ -10605,7 +10604,7 @@ const Ln = ({
10605
10604
  transactions_and_details_aria: "Transactions and account details"
10606
10605
  }, d1 = () => {
10607
10606
  const [A, e] = g.useState(0);
10608
- return /* @__PURE__ */ u(aA, { children: [
10607
+ return /* @__PURE__ */ u(nA, { children: [
10609
10608
  /* @__PURE__ */ t(s1, { setTabValue: e }),
10610
10609
  /* @__PURE__ */ u(
10611
10610
  rt,
@@ -10639,7 +10638,7 @@ const Ln = ({
10639
10638
  /* @__PURE__ */ t(Ft, { index: 1, name: "account-details", value: A, children: /* @__PURE__ */ t(r1, {}) })
10640
10639
  ] });
10641
10640
  }, ya = (A) => A.top_level_category_guid === p.INCOME || A.category_guid === p.INCOME, Xi = (A) => Ba.includes(A.top_level_category_guid) || Ba.includes(A.category_guid), u1 = (A) => A.top_level_category_guid === p.TRANSFER || A.category_guid === p.TRANSFER, Qi = (A) => !ya(A) && !Xi(A) && !u1(A), br = (A) => [...new Set(A.map((n) => n.category_guid))].map((n) => A.filter((a) => a.category_guid === n).map((a) => ({
10642
- x: j(new Date(a.year, a.month), F.MONTH_SHORT_YEAR),
10641
+ x: U(new Date(a.year, a.month), F.MONTH_SHORT_YEAR),
10643
10642
  y: a.total
10644
10643
  }))), Ea = (A, e) => {
10645
10644
  const n = [];
@@ -10647,7 +10646,7 @@ const Ln = ({
10647
10646
  const r = /* @__PURE__ */ new Date();
10648
10647
  for (; gA(a, r); )
10649
10648
  n.push({
10650
- x: j(a, F.MONTH_SHORT),
10649
+ x: U(a, F.MONTH_SHORT),
10651
10650
  y: A.filter((i) => i.year === a.getFullYear() && i.month === a.getMonth() + 1).reduce((i, o) => i + o.total, 0)
10652
10651
  }), a = YA(a, 1);
10653
10652
  return n;
@@ -10700,7 +10699,7 @@ const Ln = ({
10700
10699
  }, E1 = x(y1), w1 = ({ sx: A }) => {
10701
10700
  const { loadMonthlyCategoryTotals: e } = xA(), { isInitialized: n } = an(), { selectedAccount: a } = se(), [r, i] = g.useState(!1), o = {
10702
10701
  ctaLabel: "View Trends",
10703
- title: j(/* @__PURE__ */ new Date(), F.MONTH_LONG)
10702
+ title: U(/* @__PURE__ */ new Date(), F.MONTH_LONG)
10704
10703
  };
10705
10704
  return g.useEffect(() => {
10706
10705
  n && e([a]).finally(() => {
@@ -10790,7 +10789,7 @@ const Ln = ({
10790
10789
  oA,
10791
10790
  {
10792
10791
  "aria-label": I1([C]).list_aria,
10793
- subheader: /* @__PURE__ */ t(nt, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ u(
10792
+ subheader: /* @__PURE__ */ t(Fe, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ u(
10794
10793
  Ia,
10795
10794
  {
10796
10795
  component: "span",
@@ -10921,7 +10920,7 @@ const Ln = ({
10921
10920
  onBackClick: A,
10922
10921
  sx: e,
10923
10922
  title: dt.accounts_title,
10924
- children: r ? /* @__PURE__ */ t(Ce, {}) : /* @__PURE__ */ u(aA, { children: [
10923
+ children: r ? /* @__PURE__ */ t(Ce, {}) : /* @__PURE__ */ u(nA, { children: [
10925
10924
  /* @__PURE__ */ u(S, { sx: { px: d ? 24 : 12 }, children: [
10926
10925
  l.length < 1 && /* @__PURE__ */ t(y, { display: "flex", justifyContent: "center", my: 24, children: dt.no_accounts }),
10927
10926
  /* @__PURE__ */ t(O1, {})
@@ -10954,7 +10953,7 @@ const Ln = ({
10954
10953
  sx: e,
10955
10954
  title: o.title,
10956
10955
  children: /* @__PURE__ */ u(oA, { children: [
10957
- r.length < 1 && /* @__PURE__ */ t(U, { sx: { justifyContent: "center" }, children: o.no_accounts }),
10956
+ r.length < 1 && /* @__PURE__ */ t(j, { sx: { justifyContent: "center" }, children: o.no_accounts }),
10958
10957
  r.map((s, c) => {
10959
10958
  const l = r.indexOf(s) === r.length - 1;
10960
10959
  return /* @__PURE__ */ u(g.Fragment, { children: [
@@ -11637,12 +11636,12 @@ const Or = {
11637
11636
  textColor: r.text,
11638
11637
  totalAmount: a.amount
11639
11638
  };
11640
- }), $e = 75, Fi = 50, Vt = 5, G1 = 100, xr = 20, X1 = 5e3, Q1 = (A, e, n, a, r = !1, i = () => {
11639
+ }), At = 75, Fi = 50, Vt = 5, G1 = 100, xr = 20, X1 = 5e3, Q1 = (A, e, n, a, r = !1, i = () => {
11641
11640
  }) => {
11642
11641
  const o = Ae.select(e), s = U1(o, A, r, i), c = $1(A, n, a);
11643
11642
  return j1(s), A.forEach((l, d) => {
11644
11643
  const h = Ae.select(`#node-${d}`);
11645
- W1(h), l.radius > $e && Y1(h), l.radius > Fi && (J1(h), V1(h));
11644
+ W1(h), l.radius > At && Y1(h), l.radius > Fi && (J1(h), V1(h));
11646
11645
  }), [s, c];
11647
11646
  }, F1 = (A) => {
11648
11647
  const e = (r) => {
@@ -11662,13 +11661,13 @@ const Or = {
11662
11661
  (a) => `
11663
11662
  fill: ${a.textColor};
11664
11663
  font-family: MaterialSymbolsRounded;
11665
- font-size: ${a.radius <= $e ? 24 : 32}px;
11664
+ font-size: ${a.radius <= At ? 24 : 32}px;
11666
11665
  `
11667
11666
  ).attr("y", (a) => {
11668
11667
  let r = 13;
11669
- return a.radius > $e ? r = -20 : a.radius > Fi && (r = -6), r;
11668
+ return a.radius > At ? r = -20 : a.radius > Fi && (r = -6), r;
11670
11669
  }).text((a) => a?.icon ?? aa.UNKNOWN), n = e.node()?.getComputedTextLength();
11671
- e.attr("x", (a) => a.radius < $e ? n ? n / 2 - 12 : 12 : n ? n / 2 - 16 : 16);
11670
+ e.attr("x", (a) => a.radius < At ? n ? n / 2 - 12 : 12 : n ? n / 2 - 16 : 16);
11672
11671
  }, Y1 = (A) => {
11673
11672
  A.append("text").attr("id", (e, n) => `budget-text-${n}`).attr(
11674
11673
  "style",
@@ -11684,10 +11683,10 @@ const Or = {
11684
11683
  "style",
11685
11684
  (e) => `
11686
11685
  fill: ${e.textColor};
11687
- font-size: ${e.radius <= $e ? 15 : 19}px;
11686
+ font-size: ${e.radius <= At ? 15 : 19}px;
11688
11687
  font-weight: 400;
11689
11688
  `
11690
- ).attr("x", 0).attr("dy", (e) => e.radius > $e ? 28 : 12).text((e) => e.description);
11689
+ ).attr("x", 0).attr("dy", (e) => e.radius > At ? 28 : 12).text((e) => e.description);
11691
11690
  }, J1 = (A) => {
11692
11691
  A.append("path").attr("style", "fill: white; fill-opacity: 0.35;").attr(
11693
11692
  "d",
@@ -11919,7 +11918,7 @@ const zt = {
11919
11918
  return /* @__PURE__ */ u(S, { children: [
11920
11919
  /* @__PURE__ */ t(wa, { children: a }),
11921
11920
  A.map((h, C) => /* @__PURE__ */ u(S, { children: [
11922
- /* @__PURE__ */ t(U, { children: /* @__PURE__ */ u(dA, { onClick: () => c(h), children: [
11921
+ /* @__PURE__ */ t(j, { children: /* @__PURE__ */ u(dA, { onClick: () => c(h), children: [
11923
11922
  /* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(
11924
11923
  we,
11925
11924
  {
@@ -11928,7 +11927,7 @@ const zt = {
11928
11927
  }
11929
11928
  ) }),
11930
11929
  /* @__PURE__ */ t(
11931
- cA,
11930
+ lA,
11932
11931
  {
11933
11932
  primary: h.truncatedDisplayName,
11934
11933
  secondary: h.institutionName
@@ -11960,11 +11959,11 @@ const zt = {
11960
11959
  ] });
11961
11960
  }, Ui = ({ iconName: A, label: e, onClick: n, itemCount: a }) => {
11962
11961
  const r = fA();
11963
- return /* @__PURE__ */ u(aA, { children: [
11964
- /* @__PURE__ */ t(U, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ u(dA, { onClick: n, children: [
11962
+ return /* @__PURE__ */ u(nA, { children: [
11963
+ /* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ u(dA, { onClick: n, children: [
11965
11964
  /* @__PURE__ */ t(P, { name: A, size: 24, sx: { marginRight: 16 } }),
11966
11965
  /* @__PURE__ */ t(
11967
- cA,
11966
+ lA,
11968
11967
  {
11969
11968
  primary: e,
11970
11969
  primaryTypographyProps: {
@@ -12258,7 +12257,7 @@ const Yi = ({
12258
12257
  ) }),
12259
12258
  sx: { height: "100%" },
12260
12259
  children: e.sort((w, I) => w.name < I.name ? -1 : 1).map((w, I) => /* @__PURE__ */ u(S, { children: [
12261
- /* @__PURE__ */ t(U, { disablePadding: !0, children: /* @__PURE__ */ u(
12260
+ /* @__PURE__ */ t(j, { disablePadding: !0, children: /* @__PURE__ */ u(
12262
12261
  dA,
12263
12262
  {
12264
12263
  onClick: () => d((D) => ({
@@ -12267,7 +12266,7 @@ const Yi = ({
12267
12266
  })),
12268
12267
  children: [
12269
12268
  /* @__PURE__ */ t(
12270
- cA,
12269
+ lA,
12271
12270
  {
12272
12271
  primary: w.title,
12273
12272
  secondary: /* @__PURE__ */ t(g.Fragment, { children: w.description })
@@ -12426,7 +12425,7 @@ const Yi = ({
12426
12425
  }, B = (R, z) => {
12427
12426
  a(R), z && E(!1), C(R.length > 1 ? A.insights_unhidden : A.insight_unhidden);
12428
12427
  };
12429
- return /* @__PURE__ */ u(aA, { children: [
12428
+ return /* @__PURE__ */ u(nA, { children: [
12430
12429
  /* @__PURE__ */ t(
12431
12430
  Ui,
12432
12431
  {
@@ -12458,13 +12457,13 @@ const Yi = ({
12458
12457
  subheader: /* @__PURE__ */ t(wa, { children: s[R.key] }),
12459
12458
  children: R.subcategories.map(
12460
12459
  (z, K) => z.beats.length > 0 && /* @__PURE__ */ u(S, { children: [
12461
- /* @__PURE__ */ t(U, { disablePadding: !0, children: /* @__PURE__ */ u(
12460
+ /* @__PURE__ */ t(j, { disablePadding: !0, children: /* @__PURE__ */ u(
12462
12461
  dA,
12463
12462
  {
12464
12463
  onClick: () => k(R.key, z.key),
12465
12464
  children: [
12466
12465
  /* @__PURE__ */ t(
12467
- cA,
12466
+ lA,
12468
12467
  {
12469
12468
  primary: c[z.key].replace(
12470
12469
  /&amp;/g,
@@ -12666,7 +12665,7 @@ const Yi = ({
12666
12665
  }
12667
12666
  ),
12668
12667
  /* @__PURE__ */ u(
12669
- Je,
12668
+ Ze,
12670
12669
  {
12671
12670
  sx: {
12672
12671
  alignContent: "center",
@@ -12695,7 +12694,7 @@ const Yi = ({
12695
12694
  },
12696
12695
  children: [
12697
12696
  /* @__PURE__ */ u(
12698
- Je,
12697
+ Ze,
12699
12698
  {
12700
12699
  sx: {
12701
12700
  gap: 2,
@@ -12718,7 +12717,7 @@ const Yi = ({
12718
12717
  }
12719
12718
  ),
12720
12719
  /* @__PURE__ */ u(
12721
- Je,
12720
+ Ze,
12722
12721
  {
12723
12722
  sx: {
12724
12723
  backgroundColor: r ? d.palette.success.lighter : "transparent",
@@ -12941,9 +12940,9 @@ const Ta = {
12941
12940
  class Sh {
12942
12941
  onAnalyticEvent = Th;
12943
12942
  onAnalyticPageView = Lh;
12944
- beatApi = new tt("/", "");
12943
+ beatApi = new nt("/", "");
12945
12944
  initialize = async (e, n) => {
12946
- this.beatApi = new tt(e, n);
12945
+ this.beatApi = new nt(e, n);
12947
12946
  };
12948
12947
  updateBeat = async (e) => {
12949
12948
  this.beatApi.updateBeat(e);
@@ -13826,7 +13825,7 @@ const Dt = g.createContext(null), Ih = ({
13826
13825
  STANDARD: 154,
13827
13826
  XLARGE: 200,
13828
13827
  XXLARGE: 248
13829
- }, Hh = 50, to = 1, Ue = () => {
13828
+ }, Hh = 50, to = 1, je = () => {
13830
13829
  const A = g.useContext(Dt);
13831
13830
  if (!A)
13832
13831
  throw new Error("useCopyStore() must be used within the InsightsMicroWidgetDataProvider");
@@ -13865,7 +13864,7 @@ const Dt = g.createContext(null), Ih = ({
13865
13864
  }) => {
13866
13865
  const f = window.app?.config.client_guid, { ref: m, inView: v } = ri({
13867
13866
  threshold: to
13868
- }), { cardsCopy: E } = Ue(), { onEvent: L } = Ot(), { updateBeat: b } = zh();
13867
+ }), { cardsCopy: E } = je(), { onEvent: L } = Ot(), { updateBeat: b } = zh();
13869
13868
  he(() => {
13870
13869
  v && (n.has_been_displayed ? L(Ji(n.template)) : (b({
13871
13870
  ...n,
@@ -13924,7 +13923,7 @@ const Dt = g.createContext(null), Ih = ({
13924
13923
  scrollRightBoundary: i,
13925
13924
  scrollX: o
13926
13925
  }) => {
13927
- const s = Kh(), { carouselCopy: c } = Ue(), l = Math.floor(o) > i || e === 0, d = o < 0 || n - 1 === e, h = "#BBBCBC", C = A?.primary_300 ? A?.primary_300 : "#2D64EF";
13926
+ const s = Kh(), { carouselCopy: c } = je(), l = Math.floor(o) > i || e === 0, d = o < 0 || n - 1 === e, h = "#BBBCBC", C = A?.primary_300 ? A?.primary_300 : "#2D64EF";
13928
13927
  return /* @__PURE__ */ u(S, { className: s, children: [
13929
13928
  /* @__PURE__ */ t(
13930
13929
  HA,
@@ -13999,7 +13998,7 @@ const Dt = g.createContext(null), Ih = ({
13999
13998
  variant: l,
14000
13999
  widthOverrides: d
14001
14000
  }) => {
14002
- const h = Xh(a, c, d), C = g.useRef(null), [f, m] = g.useState(0), [v, E] = g.useState(null), [L, b] = g.useState(null), { carouselCopy: w } = Ue(), { onEvent: I } = Ot(), D = () => {
14001
+ const h = Xh(a, c, d), C = g.useRef(null), [f, m] = g.useState(0), [v, E] = g.useState(null), [L, b] = g.useState(null), { carouselCopy: w } = je(), { onEvent: I } = Ot(), D = () => {
14003
14002
  I(te.ON_CAROUSEL_FORWARD_CLICK), C.current && C.current.scrollTo({
14004
14003
  left: (
14005
14004
  // Adds the flex gap to the carousel ulRef's width
@@ -14030,7 +14029,7 @@ const Dt = g.createContext(null), Ih = ({
14030
14029
  showIcon: s,
14031
14030
  variant: l,
14032
14031
  widthOverrides: d
14033
- }, K = C.current && C.current.offsetWidth ? Math.round(f / C.current.offsetWidth) : 0, lA = C.current ? C.current.scrollWidth - C.current.offsetWidth : 0;
14032
+ }, K = C.current && C.current.offsetWidth ? Math.round(f / C.current.offsetWidth) : 0, cA = C.current ? C.current.scrollWidth - C.current.offsetWidth : 0;
14034
14033
  return /* @__PURE__ */ u("div", { className: h, children: [
14035
14034
  /* @__PURE__ */ u(
14036
14035
  "ul",
@@ -14078,7 +14077,7 @@ const Dt = g.createContext(null), Ih = ({
14078
14077
  numBeats: A.length + 1,
14079
14078
  onNextClick: D,
14080
14079
  onPreviousClick: O,
14081
- scrollRightBoundary: lA,
14080
+ scrollRightBoundary: cA,
14082
14081
  scrollX: f
14083
14082
  }
14084
14083
  )
@@ -14150,7 +14149,7 @@ const Dt = g.createContext(null), Ih = ({
14150
14149
  tabIndex: c ? 0 : -1,
14151
14150
  children: [
14152
14151
  n && /* @__PURE__ */ t("span", { "aria-label": n, style: { visibility: "hidden" } }),
14153
- /* @__PURE__ */ u(Je, { className: "mx-micro-card", sx: { backgroundColor: a }, variant: m, children: [
14152
+ /* @__PURE__ */ u(Ze, { className: "mx-micro-card", sx: { backgroundColor: a }, variant: m, children: [
14154
14153
  /* @__PURE__ */ t(
14155
14154
  Qn,
14156
14155
  {
@@ -14235,7 +14234,7 @@ const Dt = g.createContext(null), Ih = ({
14235
14234
  posthog: n,
14236
14235
  widthOverrides: a
14237
14236
  }) => {
14238
- const { carouselCopy: r } = Ue(), { onEvent: i } = Ot(), o = window.app?.config.client_guid, s = () => {
14237
+ const { carouselCopy: r } = je(), { onEvent: i } = Ot(), o = window.app?.config.client_guid, s = () => {
14239
14238
  i && (i(te.ON_VIEW_MORE_CLICKED), n?.capture && o && (e(), n.capture("micro_widget_clicked_insight", {
14240
14239
  insight_template: "view_all",
14241
14240
  $groups: { client: o }
@@ -14416,7 +14415,7 @@ const Dt = g.createContext(null), Ih = ({
14416
14415
  variant: c,
14417
14416
  widthOverrides: l
14418
14417
  }) => {
14419
- const { cardsCopy: d } = Ue(), { onEvent: h } = Ot(), { onPageview: C } = no(), f = window.app?.config.client_guid;
14418
+ const { cardsCopy: d } = je(), { onEvent: h } = Ot(), { onPageview: C } = no(), f = window.app?.config.client_guid;
14420
14419
  g.useEffect(() => {
14421
14420
  C(De.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS);
14422
14421
  }, []);
@@ -14470,7 +14469,7 @@ const Dt = g.createContext(null), Ih = ({
14470
14469
  }) => {
14471
14470
  const l = SA(), d = window.app?.config.client_guid, { ref: h, inView: C } = ri({
14472
14471
  threshold: to
14473
- }), { cardsCopy: f } = Ue(), { onEvent: m } = Ot();
14472
+ }), { cardsCopy: f } = je(), { onEvent: m } = Ot();
14474
14473
  he(() => {
14475
14474
  C && m($i.ON_VIEW_MORE_VIEWED);
14476
14475
  }, [C]), he(() => {
@@ -14518,7 +14517,7 @@ const Dt = g.createContext(null), Ih = ({
14518
14517
  variant: o,
14519
14518
  widthOverrides: s
14520
14519
  }) => {
14521
- const { onPageview: c } = no(), { zeroStateCopy: l } = Ue();
14520
+ const { onPageview: c } = no(), { zeroStateCopy: l } = je();
14522
14521
  return g.useEffect(() => {
14523
14522
  c(De.MICRO_WIDGET_CAROUSEL_ZERO_STATE);
14524
14523
  }, []), /* @__PURE__ */ t(
@@ -14563,7 +14562,7 @@ const Dt = g.createContext(null), Ih = ({
14563
14562
  }
14564
14563
  );
14565
14564
  }, n3 = x(t3), a3 = ({ month: A, amount: e }) => /* @__PURE__ */ t(dA, { onClick: () => null, children: /* @__PURE__ */ t(
14566
- cA,
14565
+ lA,
14567
14566
  {
14568
14567
  primary: /* @__PURE__ */ u(T, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
14569
14568
  /* @__PURE__ */ t(y, { variant: "Body", children: A }),
@@ -14577,21 +14576,21 @@ const Dt = g.createContext(null), Ih = ({
14577
14576
  const a = new Date(n * 1e3);
14578
14577
  return Vr(a, "MMMM yyyy");
14579
14578
  };
14580
- return /* @__PURE__ */ u(oA, { children: [
14581
- /* @__PURE__ */ t(U, { sx: { paddingLeft: "24px" }, children: /* @__PURE__ */ t(cA, { primary: /* @__PURE__ */ t(y, { variant: "Body", children: i3.monthly_totals }) }) }),
14579
+ return /* @__PURE__ */ u(nA, { children: [
14580
+ /* @__PURE__ */ t(Fe, { sx: { backgroundColor: "transparent", mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(y, { bold: !0, component: "h2", variant: "Body", children: i3.monthly_totals }) }),
14582
14581
  /* @__PURE__ */ t(q, {}),
14583
- A.map((n) => /* @__PURE__ */ u(aA, { children: [
14584
- /* @__PURE__ */ t(U, { children: /* @__PURE__ */ t(r3, { amount: n.y, month: e(n.x) }) }, n.id),
14582
+ /* @__PURE__ */ t(oA, { children: A.map((n) => /* @__PURE__ */ u(nA, { children: [
14583
+ /* @__PURE__ */ t(j, { children: /* @__PURE__ */ t(r3, { amount: n.y, month: e(n.x) }) }, n.id),
14585
14584
  /* @__PURE__ */ t(q, {})
14586
- ] }))
14585
+ ] })) })
14587
14586
  ] });
14588
14587
  }, s3 = x(o3), c3 = ({ onBackClick: A }) => {
14589
- const { accounts: e } = DA(), { isInitialized: n } = an(), { netWorthData: a, netWorthChartData: r, netWorthMonthlyList: i } = Hc(), [o, s] = g.useState(!1);
14588
+ const { accounts: e } = DA(), { isInitialized: n } = an(), { loadNetWorthData: a, loadChartData: r, netWorthData: i, netWorthChartData: o, netWorthMonthlyList: s } = Hc(), [c, l] = g.useState(!1);
14590
14589
  return g.useEffect(() => {
14591
- n && (console.log(`networth in widget is ${JSON.stringify(a)}`), s(!0));
14592
- }, [n, i]), !n || !o ? /* @__PURE__ */ t(Ce, {}) : /* @__PURE__ */ u(Re, { accountOptions: e, onBackClick: A, sx: { px: 16 }, children: [
14593
- /* @__PURE__ */ t(S, { children: /* @__PURE__ */ t(n3, { chartData: r }) }),
14594
- /* @__PURE__ */ t(S, { children: /* @__PURE__ */ t(s3, { netWorthList: i }) })
14590
+ n && (a(), r(), console.log(i), l(!0));
14591
+ }, [n]), !n || !c ? /* @__PURE__ */ t(Ce, {}) : /* @__PURE__ */ u(Re, { accountOptions: e, onBackClick: A, sx: { px: 16 }, children: [
14592
+ /* @__PURE__ */ t(S, { children: /* @__PURE__ */ t(n3, { chartData: o }) }),
14593
+ /* @__PURE__ */ t(S, { children: /* @__PURE__ */ t(s3, { netWorthList: s }) })
14595
14594
  ] });
14596
14595
  }, W7 = x(c3), xn = 5, l3 = (A, e) => e.reduce((n, a) => {
14597
14596
  if (a.total > 0) {
@@ -14602,13 +14601,13 @@ const Dt = g.createContext(null), Ih = ({
14602
14601
  const s = {
14603
14602
  guid: r.guid,
14604
14603
  name: r.guid === i ? `General ${r.name}` : r.name,
14605
- color: Ze[o.guid],
14604
+ color: $e[o.guid],
14606
14605
  amount: a.total
14607
14606
  }, c = n.find((l) => l.guid === i);
14608
14607
  c ? (c.amount += a.total, c.categoryTotals?.push(s)) : n.push({
14609
14608
  guid: i,
14610
14609
  name: o.name,
14611
- color: Ze[o.guid],
14610
+ color: $e[o.guid],
14612
14611
  categoryTotals: [s],
14613
14612
  amount: a.total
14614
14613
  });
@@ -14849,7 +14848,7 @@ const Dt = g.createContext(null), Ih = ({
14849
14848
  /* @__PURE__ */ t(q, { "aria-hidden": "true" }),
14850
14849
  /* @__PURE__ */ t(oA, { children: A.categoryData.map((o) => /* @__PURE__ */ u(g.Fragment, { children: [
14851
14850
  /* @__PURE__ */ t(
14852
- U,
14851
+ j,
14853
14852
  {
14854
14853
  disableGutters: !0,
14855
14854
  disablePadding: !0,
@@ -14894,7 +14893,7 @@ const Dt = g.createContext(null), Ih = ({
14894
14893
  /* @__PURE__ */ t(q, {}),
14895
14894
  o.categoryTotals && o.categoryTotals.length > 0 && /* @__PURE__ */ t(ei, { in: r?.guid === o.guid, unmountOnExit: !0, children: /* @__PURE__ */ u(oA, { children: [
14896
14895
  r?.categoryTotals?.map((s) => /* @__PURE__ */ t(
14897
- U,
14896
+ j,
14898
14897
  {
14899
14898
  sx: {
14900
14899
  pl: 24,
@@ -15111,7 +15110,7 @@ const Dt = g.createContext(null), Ih = ({
15111
15110
  const e = A.row[A.field];
15112
15111
  return /* @__PURE__ */ t(T, { alignItems: "flex-end", tabIndex: A.tabIndex, children: /* @__PURE__ */ t(_A, { amount: e, variant: "Small" }) });
15113
15112
  }, T3 = ({ categoryGuid: A }) => {
15114
- const e = et[A];
15113
+ const e = tt[A];
15115
15114
  return /* @__PURE__ */ u(T, { alignItems: "center", direction: "row", justifyContent: "center", children: [
15116
15115
  /* @__PURE__ */ t(S, { "aria-label": `${e} category icon`, role: "img", children: /* @__PURE__ */ t(_e, { categoryGuid: A }) }),
15117
15116
  /* @__PURE__ */ t(y, { sx: { ml: 12, pb: 6 }, variant: "Small", children: e })
@@ -15121,9 +15120,9 @@ const Dt = g.createContext(null), Ih = ({
15121
15120
  height: e = "100dvh",
15122
15121
  sx: n = {}
15123
15122
  }) => {
15124
- const a = j(/* @__PURE__ */ new Date(), F.MONTH_SHORT), [r, i] = g.useState([
15123
+ const a = U(/* @__PURE__ */ new Date(), F.MONTH_SHORT), [r, i] = g.useState([
15125
15124
  { field: a, sort: "desc" }
15126
- ]), o = A.reduce((l, d) => (l[d.month] || (l[d.month] = j(
15125
+ ]), o = A.reduce((l, d) => (l[d.month] || (l[d.month] = U(
15127
15126
  new Date(d.year, d.month, 1),
15128
15127
  F.MONTH
15129
15128
  )), l), []).filter(Boolean), s = [
@@ -15157,7 +15156,7 @@ const Dt = g.createContext(null), Ih = ({
15157
15156
  const { category_guid: C, top_level_category_guid: f, month: m, total: v, year: E } = h;
15158
15157
  if (C === f) {
15159
15158
  d[C] || (d[C] = { id: C, category: C });
15160
- const L = j(new Date(E, m, 1), F.MONTH_SHORT);
15159
+ const L = U(new Date(E, m, 1), F.MONTH_SHORT);
15161
15160
  d[C][L] = v;
15162
15161
  }
15163
15162
  return d;
@@ -15209,7 +15208,7 @@ const Dt = g.createContext(null), Ih = ({
15209
15208
  () => br(D.filter(Qi)),
15210
15209
  [s, l]
15211
15210
  ), k = g.useMemo(
15212
- () => D.map((R) => Ze[R.category_guid] ?? Ze.default),
15211
+ () => D.map((R) => $e[R.category_guid] ?? $e.default),
15213
15212
  [s, l]
15214
15213
  ), $ = g.useMemo(
15215
15214
  () => [...new Set(D.map((R) => R.category_guid))],
@@ -15270,14 +15269,14 @@ const Dt = g.createContext(null), Ih = ({
15270
15269
  }
15271
15270
  ),
15272
15271
  /* @__PURE__ */ u(y, { variant: a ? "Body" : "Small", children: [
15273
- j(
15272
+ U(
15274
15273
  b.start,
15275
15274
  i ? F.MONTH_SHORT_YEAR : F.MONTH_YEAR
15276
15275
  ),
15277
15276
  " ",
15278
15277
  "-",
15279
15278
  " ",
15280
- j(
15279
+ U(
15281
15280
  b.end,
15282
15281
  i ? F.MONTH_SHORT_YEAR : F.MONTH_YEAR
15283
15282
  )
@@ -15333,7 +15332,7 @@ const Dt = g.createContext(null), Ih = ({
15333
15332
  stackedColors: k,
15334
15333
  stackedDatasets: O,
15335
15334
  unstackedCategoryGuids: [p.INCOME],
15336
- unstackedColors: [Ze[p.INCOME]],
15335
+ unstackedColors: [$e[p.INCOME]],
15337
15336
  unstackedDatasets: B
15338
15337
  }
15339
15338
  ),
@@ -15352,7 +15351,7 @@ const Dt = g.createContext(null), Ih = ({
15352
15351
  const r = OA(/* @__PURE__ */ new Date());
15353
15352
  for (; gA(a, r); )
15354
15353
  e.push({
15355
- x: j(a, F.MONTH_SHORT),
15354
+ x: U(a, F.MONTH_SHORT),
15356
15355
  y: n.filter((i) => i.year === a.getFullYear() && i.month === a.getMonth() + 1).reduce((i, o) => i + o.total, 0)
15357
15356
  }), a = YA(a, 1);
15358
15357
  return e;
@@ -15413,7 +15412,7 @@ export {
15413
15412
  N as ApiEndpoints,
15414
15413
  bh as AppStore,
15415
15414
  p7 as BarChart,
15416
- tt as BeatApi,
15415
+ nt as BeatApi,
15417
15416
  qh as BeatCard,
15418
15417
  qt as BottomActions,
15419
15418
  K7 as BubbleBudgetsMiniWidget,
@@ -15426,8 +15425,8 @@ export {
15426
15425
  Mu as CashflowStore,
15427
15426
  P7 as CashflowWidget,
15428
15427
  ka as CategoryApi,
15429
- Ze as CategoryColors,
15430
- et as CategoryGuidToName,
15428
+ $e as CategoryColors,
15429
+ tt as CategoryGuidToName,
15431
15430
  p as CategoryGuids,
15432
15431
  aa as CategoryIcon,
15433
15432
  Ql as CategorySelector,
@@ -15546,7 +15545,7 @@ export {
15546
15545
  H as buildDynamicCopy,
15547
15546
  g7 as buildPluralCopy,
15548
15547
  X as formatCurrency,
15549
- j as formatDate,
15548
+ U as formatDate,
15550
15549
  Zs as formatOrdinal,
15551
15550
  Vs as formatPercentage,
15552
15551
  ki as getAccountBalanceDetails,
@@ -15559,7 +15558,7 @@ export {
15559
15558
  nn as useBudgetsStore,
15560
15559
  ia as useCashflowStore,
15561
15560
  xA as useCategoryStore,
15562
- Fe as useCategoryUiStore,
15561
+ Ue as useCategoryUiStore,
15563
15562
  ec as useCombineEvents,
15564
15563
  tc as useCombinePageviews,
15565
15564
  V as useEvent,