@mx-cartographer/experiences 3.8.0 → 3.8.1-alpha.sms2

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.es.js CHANGED
@@ -6,7 +6,7 @@ import X from "@mui/material/Divider";
6
6
  import oA from "@mui/material/List";
7
7
  import Ve from "@mui/material/ListSubheader";
8
8
  import tr from "@mui/system/Stack";
9
- import { AccountsIcon as Ri, P as fA, Icon as N, useTokens as yA, Text as y, H2 as Kt, CategoryIcon as De, DialogHeader as Hi, DialogFooter as zi, Drawer as qi, Footer as Ki, DateRangePicker as nr, H3 as sa, H1 as fe, TextField as Ie, IconWeight as qA, MerchantLogo as Oe, CategoryIconVariants as ca, InstitutionLogo as ve, THEMES as rr, createMXTheme as Ct } from "@kyper/mui";
9
+ import { AccountsIcon as Ri, P as fA, Icon as P, useTokens as yA, Text as y, H2 as Kt, CategoryIcon as De, DialogHeader as Hi, DialogFooter as zi, Drawer as qi, Footer as Ki, DateRangePicker as nr, H3 as sa, H1 as fe, TextField as Ie, IconWeight as qA, MerchantLogo as Oe, CategoryIconVariants as ca, InstitutionLogo as ve, THEMES as rr, createMXTheme as Ct } from "@kyper/mui";
10
10
  import Bi from "bowser";
11
11
  import { getUnixTime as gA } from "date-fns/getUnixTime";
12
12
  import { Honeybadger as yt } from "@honeybadger-io/react";
@@ -16,7 +16,7 @@ import iA from "@mui/material/Button";
16
16
  import ft from "@mui/material/Tooltip";
17
17
  import RA from "@mui/material/IconButton";
18
18
  import cn from "@mui/material/FormControlLabel";
19
- import Z from "@mui/material/ListItem";
19
+ import J from "@mui/material/ListItem";
20
20
  import dA from "@mui/material/ListItemButton";
21
21
  import lA from "@mui/material/ListItemText";
22
22
  import ki from "@mui/material/Popover";
@@ -34,7 +34,7 @@ import { format as JA } from "date-fns/format";
34
34
  import { isBefore as hA } from "date-fns/isBefore";
35
35
  import { isSameMonth as Fi } from "date-fns/isSameMonth";
36
36
  import { startOfMonth as EA } from "date-fns/startOfMonth";
37
- import { startOfToday as $ } from "date-fns/startOfToday";
37
+ import { startOfToday as Z } from "date-fns/startOfToday";
38
38
  import { subMonths as Ce } from "date-fns/subMonths";
39
39
  import oe from "@mui/material/Paper";
40
40
  import ji from "@mui/icons-material/KeyboardArrowLeftRounded";
@@ -68,7 +68,7 @@ import go from "@mui/material/Radio";
68
68
  import me from "@mui/material/Avatar";
69
69
  import PA from "@mui/material/ListItemAvatar";
70
70
  import re from "@mui/material/ListItemIcon";
71
- import { makeAutoObservable as wA, runInAction as nA, observable as Co } from "mobx";
71
+ import { makeAutoObservable as wA, runInAction as tA, observable as Co } from "mobx";
72
72
  import { differenceInDays as fo } from "date-fns/differenceInDays";
73
73
  import { getMonth as Qe } from "date-fns/getMonth";
74
74
  import { useVirtualizer as ga } from "@tanstack/react-virtual";
@@ -392,7 +392,7 @@ const H = {
392
392
  day: "numeric",
393
393
  year: "numeric"
394
394
  }
395
- }, J = (A, e) => _i(new Date(A), Object.assign(e), { locale: be() });
395
+ }, V = (A, e) => _i(new Date(A), Object.assign(e), { locale: be() });
396
396
  var j = /* @__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))(j || {}), ns = /* @__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))(ns || {}), Ta = /* @__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))(Ta || {}), MA = /* @__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))(MA || {});
397
397
  const rs = [
398
398
  0,
@@ -1055,7 +1055,7 @@ const tn = (A, e) => A.reduce((n, r) => (n[r.guid] = e?.includes(r.guid), n), {}
1055
1055
  }
1056
1056
  },
1057
1057
  children: [
1058
- /* @__PURE__ */ t(Z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(
1058
+ /* @__PURE__ */ t(J, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(
1059
1059
  cn,
1060
1060
  {
1061
1061
  control: /* @__PURE__ */ t(
@@ -1086,7 +1086,7 @@ const tn = (A, e) => A.reduce((n, r) => (n[r.guid] = e?.includes(r.guid), n), {}
1086
1086
  const T = C[E], S = T.every(
1087
1087
  (L) => c[L.guid]
1088
1088
  );
1089
- return /* @__PURE__ */ t(Z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(
1089
+ return /* @__PURE__ */ t(J, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(
1090
1090
  oA,
1091
1091
  {
1092
1092
  "aria-label": z(n.accountTypeAccounts, E),
@@ -1119,9 +1119,9 @@ const tn = (A, e) => A.reduce((n, r) => (n[r.guid] = e?.includes(r.guid), n), {}
1119
1119
  ) }),
1120
1120
  sx: { overflow: "auto", width: "100%" },
1121
1121
  children: T.map((L) => {
1122
- const O = c[L.guid], M = `${L.name}${h && L.accountNumber ? ` *${L.accountNumber.slice(-4)}` : ""}`;
1122
+ const O = c[L.guid], N = `${L.name}${h && L.accountNumber ? ` *${L.accountNumber.slice(-4)}` : ""}`;
1123
1123
  return /* @__PURE__ */ t(
1124
- Z,
1124
+ J,
1125
1125
  {
1126
1126
  className: "mx-cmn-account-options-container",
1127
1127
  disableGutters: !0,
@@ -1148,7 +1148,7 @@ const tn = (A, e) => A.reduce((n, r) => (n[r.guid] = e?.includes(r.guid), n), {}
1148
1148
  }
1149
1149
  }
1150
1150
  ),
1151
- label: M
1151
+ label: N
1152
1152
  }
1153
1153
  )
1154
1154
  },
@@ -1238,7 +1238,7 @@ const ms = (A, e) => {
1238
1238
  "aria-haspopup": !0,
1239
1239
  "aria-label": e.title,
1240
1240
  onClick: f,
1241
- children: /* @__PURE__ */ t(N, { name: "filter_alt" })
1241
+ children: /* @__PURE__ */ t(P, { name: "filter_alt" })
1242
1242
  }
1243
1243
  ) }) : /* @__PURE__ */ t(
1244
1244
  iA,
@@ -1247,7 +1247,7 @@ const ms = (A, e) => {
1247
1247
  "aria-haspopup": !0,
1248
1248
  "aria-label": e.title,
1249
1249
  onClick: f,
1250
- startIcon: /* @__PURE__ */ t(N, { name: "filter_alt" }),
1250
+ startIcon: /* @__PURE__ */ t(P, { name: "filter_alt" }),
1251
1251
  variant: s,
1252
1252
  children: e.title
1253
1253
  }
@@ -1484,10 +1484,10 @@ const ms = (A, e) => {
1484
1484
  selectedIndex: c,
1485
1485
  valueFormatter: u = (l) => `${l}`
1486
1486
  }) => {
1487
- const l = yA(), h = Ds(l), C = r.reduce(Is, []), f = A !== void 0 ? A : C.reduce(Ts, 0) / C.length, v = Math.max(...C), p = Math.min(...C), E = C.reduce(Ss, 0), T = v >= 0, S = p < 0, L = Lr(T, S, a), O = Lr(S, T, a), M = bs(f, v, p, L || O), x = (B) => c === void 0 || B === c ? n : `${n}80`, K = () => /* @__PURE__ */ t(
1487
+ const l = yA(), h = Ds(l), C = r.reduce(Is, []), f = A !== void 0 ? A : C.reduce(Ts, 0) / C.length, v = Math.max(...C), p = Math.min(...C), E = C.reduce(Ss, 0), T = v >= 0, S = p < 0, L = Lr(T, S, a), O = Lr(S, T, a), N = bs(f, v, p, L || O), x = (B) => c === void 0 || B === c ? n : `${n}80`, K = () => /* @__PURE__ */ t(
1488
1488
  wr,
1489
1489
  {
1490
- averageLineHeight: M,
1490
+ averageLineHeight: N,
1491
1491
  bottomHeight: O,
1492
1492
  color: "",
1493
1493
  range: E,
@@ -1504,7 +1504,7 @@ const ms = (A, e) => {
1504
1504
  wr,
1505
1505
  {
1506
1506
  ariaLabel: B.ariaLabel,
1507
- averageLineHeight: M,
1507
+ averageLineHeight: N,
1508
1508
  bottomHeight: O,
1509
1509
  color: x(_),
1510
1510
  index: _,
@@ -1534,7 +1534,7 @@ const ms = (A, e) => {
1534
1534
  }), Os = ({ copy: A, date: e, onNextClick: n, onPreviousClick: r }) => {
1535
1535
  const a = yA(), i = xs(a);
1536
1536
  return /* @__PURE__ */ d("div", { className: `mx-cmn-calendar-header ${i}`, children: [
1537
- /* @__PURE__ */ t(Kt, { className: "mx-cmn-calendar-header-title", variant: "H3", children: J(e, U.MONTH_YEAR) }),
1537
+ /* @__PURE__ */ t(Kt, { className: "mx-cmn-calendar-header-title", variant: "H3", children: V(e, U.MONTH_YEAR) }),
1538
1538
  /* @__PURE__ */ d("div", { className: "mx-cmn-calendar-header-button-container", children: [
1539
1539
  /* @__PURE__ */ t(iA, { "aria-label": A.prevAria, onClick: r, children: /* @__PURE__ */ t(ji, {}) }),
1540
1540
  /* @__PURE__ */ t(iA, { "aria-label": A.nextAria, onClick: n, children: /* @__PURE__ */ t(Ui, {}) })
@@ -1554,7 +1554,7 @@ const ms = (A, e) => {
1554
1554
  gap: 4
1555
1555
  }
1556
1556
  }), Ps = ({ beginDate: A, date: e, endDate: n, isInMonth: r, onClick: a }) => {
1557
- const i = CA(), o = yA(), s = Ns(o, i), c = A && n && We(e, { start: A, end: n }) && !GA(e, A) && !GA(e, n), u = A && n && GA(A, e) && !GA(A, n), l = n && A && GA(n, e) && !GA(A, n), h = A && GA(A, e) || n && GA(n, e), C = GA(e, $());
1557
+ const i = CA(), o = yA(), s = Ns(o, i), c = A && n && We(e, { start: A, end: n }) && !GA(e, A) && !GA(e, n), u = A && n && GA(A, e) && !GA(A, n), l = n && A && GA(n, e) && !GA(A, n), h = A && GA(A, e) || n && GA(n, e), C = GA(e, Z());
1558
1558
  return /* @__PURE__ */ t(
1559
1559
  "div",
1560
1560
  {
@@ -1646,14 +1646,14 @@ const Rs = ({
1646
1646
  selectionType: i = "Single"
1647
1647
  /* Single */
1648
1648
  }) => {
1649
- const o = yA(), s = Hs(o), [c, u] = g.useState($), [l, h] = g.useState(e), [C, f] = g.useState(n);
1649
+ const o = yA(), s = Hs(o), [c, u] = g.useState(Z), [l, h] = g.useState(e), [C, f] = g.useState(n);
1650
1650
  g.useEffect(() => {
1651
1651
  h(e), f(n), e && u(e);
1652
1652
  }, [e, n]);
1653
1653
  const v = g.useMemo(() => {
1654
1654
  const L = Qi({ start: EA(c), end: DA(c) }), O = [];
1655
- for (let M = 0; M < L.length; M++) {
1656
- const x = L[M], K = Xi({ start: x, end: ce(x, 6) }), B = [];
1655
+ for (let N = 0; N < L.length; N++) {
1656
+ const x = L[N], K = Xi({ start: x, end: ce(x, 6) }), B = [];
1657
1657
  for (let _ = 0; _ < K.length; _++)
1658
1658
  B.push(K[_]);
1659
1659
  O.push(B);
@@ -1668,7 +1668,7 @@ const Rs = ({
1668
1668
  !l || C ? (h(L), f(void 0)) : hA(L, l) ? (f(l), h(L), a?.(L, l)) : (f(L), a?.(l, L));
1669
1669
  }
1670
1670
  }, E = () => {
1671
- const L = $();
1671
+ const L = Z();
1672
1672
  u(L), i !== "None" && (h(L), i === "Single" ? r?.(L) : (f(L), a?.(L, L)));
1673
1673
  }, T = () => {
1674
1674
  u(YA(c, 1));
@@ -1686,13 +1686,13 @@ const Rs = ({
1686
1686
  }
1687
1687
  ),
1688
1688
  /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-header-row", children: v[0].map((L, O) => /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-header-cell", children: /* @__PURE__ */ t(y, { bold: !0, variant: "Small", children: JA(L, "EEEEE") }) }, O)) }),
1689
- v.map((L, O) => /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-week", children: L.map((M, x) => /* @__PURE__ */ t(
1689
+ v.map((L, O) => /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-week", children: L.map((N, x) => /* @__PURE__ */ t(
1690
1690
  Ps,
1691
1691
  {
1692
1692
  beginDate: l,
1693
- date: M,
1693
+ date: N,
1694
1694
  endDate: C,
1695
- isInMonth: Fi(M, c),
1695
+ isInMonth: Fi(N, c),
1696
1696
  onClick: p
1697
1697
  },
1698
1698
  x
@@ -2002,7 +2002,7 @@ const Rs = ({
2002
2002
  if (!e)
2003
2003
  throw new Error(`${A}() must be used within the GlobalDataContext`);
2004
2004
  return e;
2005
- }, OA = () => _A("useAccountStore").globalStore.accountStore, Xt = () => _A("useBudgetsStore").globalStore.budgetsStore, Hn = () => _A("useCashflowStore").globalStore.cashflowStore, xA = () => _A("useCategoryStore").globalStore.categoryStore, Ka = () => _A("useConnectStore").globalStore.connectStore, zn = () => _A("useGlobalStore").globalStore, vA = () => _A("useGlobalUiStore").globalStore.globalUiStore, b = () => _A("globalCopyStore").globalStore.copyStore.copy, Qs = () => _A("useMerchantStore").globalStore.merchantStore, Ba = () => _A("useNotificationStore").globalStore.notificationStore, KA = () => _A("useRecurringActivityStore").globalStore.recurringActivityStore, cA = () => _A("useTransactionStore").globalStore.transactionStore, Qt = () => _A("useUserStore").globalStore.userStore, V = () => ({ onEvent: _A().onEvent }), Gg = () => ({ onPageView: _A().onPageView }), Fs = (A = "useWidgetContainerContext") => {
2005
+ }, OA = () => _A("useAccountStore").globalStore.accountStore, Xt = () => _A("useBudgetsStore").globalStore.budgetsStore, Hn = () => _A("useCashflowStore").globalStore.cashflowStore, xA = () => _A("useCategoryStore").globalStore.categoryStore, Ka = () => _A("useConnectStore").globalStore.connectStore, zn = () => _A("useGlobalStore").globalStore, vA = () => _A("useGlobalUiStore").globalStore.globalUiStore, b = () => _A("globalCopyStore").globalStore.copyStore.copy, Qs = () => _A("useMerchantStore").globalStore.merchantStore, Ba = () => _A("useNotificationStore").globalStore.notificationStore, KA = () => _A("useRecurringActivityStore").globalStore.recurringActivityStore, cA = () => _A("useTransactionStore").globalStore.transactionStore, Qt = () => _A("useUserStore").globalStore.userStore, Y = () => ({ onEvent: _A().onEvent }), Gg = () => ({ onPageView: _A().onPageView }), Fs = (A = "useWidgetContainerContext") => {
2006
2006
  const e = g.useContext(za);
2007
2007
  if (!e)
2008
2008
  throw new Error(`${A}() must be used within the WidgetContainerContext`);
@@ -2067,7 +2067,7 @@ const Rs = ({
2067
2067
  /* @__PURE__ */ t(ir, { container: !0, children: e.map((l, h) => /* @__PURE__ */ d(g.Fragment, { children: [
2068
2068
  h > 0 && h % 3 === 0 && /* @__PURE__ */ t(ln, { sx: { my: 16, width: "100%" } }),
2069
2069
  /* @__PURE__ */ t(ir, { item: !0, xs: 4, children: /* @__PURE__ */ d(te, { alignItems: "center", display: "flex", flexDirection: "column", children: [
2070
- /* @__PURE__ */ t(y, { color: i.palette.text.secondary, variant: "XSmall", children: J(String(l.x), U.MONTH_SHORT) }),
2070
+ /* @__PURE__ */ t(y, { color: i.palette.text.secondary, variant: "XSmall", children: V(String(l.x), U.MONTH_SHORT) }),
2071
2071
  /* @__PURE__ */ t(
2072
2072
  zA,
2073
2073
  {
@@ -2090,7 +2090,7 @@ const Rs = ({
2090
2090
  const r = Je(), a = n?.[e];
2091
2091
  return a === void 0 ? null : /* @__PURE__ */ t(pn, { sx: { pt: 4, px: 8 }, children: /* @__PURE__ */ t(da, { children: /* @__PURE__ */ d(te, { alignItems: "center", display: "flex", flexDirection: "column", children: [
2092
2092
  /* @__PURE__ */ t(_a, { categoryGuid: A }),
2093
- /* @__PURE__ */ t(y, { color: r.palette.text.secondary, variant: "Small", children: J(String(e), U.MONTH_SHORT_YEAR) }),
2093
+ /* @__PURE__ */ t(y, { color: r.palette.text.secondary, variant: "Small", children: V(String(e), U.MONTH_SHORT_YEAR) }),
2094
2094
  /* @__PURE__ */ t(zA, { amount: a ?? "", bold: !0, formatString: "0,0", variant: "Body" })
2095
2095
  ] }) }) });
2096
2096
  }, Ys = ({
@@ -2165,42 +2165,42 @@ const Rs = ({
2165
2165
  hoveredAreaData: null,
2166
2166
  isAreaHovered: !1,
2167
2167
  cursorPos: { x: 0, y: 0 }
2168
- }), { hoveredSeriesId: S, hoveredAreaData: L, isAreaHovered: O, cursorPos: M } = E, x = O && S && L, K = !x, B = [...a, ...s], _ = B.flat().map((Y) => Y.x), G = B.flat().map((Y) => Y.y), k = Math.floor(Math.min(...G) / 100) * 100, P = B.reduce((Y, LA) => {
2168
+ }), { hoveredSeriesId: S, hoveredAreaData: L, isAreaHovered: O, cursorPos: N } = E, x = O && S && L, K = !x, B = [...a, ...s], _ = B.flat().map((W) => W.x), k = B.flat().map((W) => W.y), G = Math.floor(Math.min(...k) / 100) * 100, M = B.reduce((W, LA) => {
2169
2169
  const TA = LA.reduce((WA, Ee) => WA + Ee.y, 0);
2170
- return TA > Y ? TA : Y;
2171
- }, 0), W = i.map((Y) => Le[Y]), rA = a.map((Y, LA) => ({
2170
+ return TA > W ? TA : W;
2171
+ }, 0), nA = i.map((W) => Le[W]), rA = a.map((W, LA) => ({
2172
2172
  id: `stacked-${LA}`,
2173
2173
  area: !0,
2174
2174
  color: r[LA] ?? h.palette.primary.main,
2175
- data: Y.map((TA) => TA.y),
2176
- label: W[LA],
2175
+ data: W.map((TA) => TA.y),
2176
+ label: nA[LA],
2177
2177
  stack: "total",
2178
2178
  type: "line",
2179
2179
  highlightScope: {
2180
2180
  highlight: "item"
2181
2181
  },
2182
2182
  valueFormatter: (TA) => F(TA, "0,0")
2183
- })), IA = c.map((Y) => Le[Y]), sA = s.map((Y, LA) => ({
2183
+ })), IA = c.map((W) => Le[W]), sA = s.map((W, LA) => ({
2184
2184
  id: `unstacked-${LA}`,
2185
2185
  area: !1,
2186
2186
  color: o[LA],
2187
- data: Y.map((TA) => TA.y),
2187
+ data: W.map((TA) => TA.y),
2188
2188
  label: IA[LA],
2189
2189
  type: "line",
2190
2190
  valueFormatter: (TA) => F(TA, "0,0")
2191
- })), bA = [...rA, ...sA], xe = [...W, ...IA], le = (Y) => Y.startsWith("stacked-") ? i[parseInt(Y.split("-")[1])] : c[parseInt(Y.split("-")[1])], Ge = (Y) => {
2192
- p(Y), n?.(Y ?? "");
2191
+ })), bA = [...rA, ...sA], xe = [...nA, ...IA], le = (W) => W.startsWith("stacked-") ? i[parseInt(W.split("-")[1])] : c[parseInt(W.split("-")[1])], Ge = (W) => {
2192
+ p(W), n?.(W ?? "");
2193
2193
  };
2194
2194
  return /* @__PURE__ */ t(
2195
2195
  te,
2196
2196
  {
2197
- onMouseMove: (Y) => {
2198
- const LA = Y.currentTarget.getBoundingClientRect();
2197
+ onMouseMove: (W) => {
2198
+ const LA = W.currentTarget.getBoundingClientRect();
2199
2199
  T((TA) => ({
2200
2200
  ...TA,
2201
2201
  cursorPos: {
2202
- x: Y.clientX - LA.left,
2203
- y: Y.clientY - LA.top
2202
+ x: W.clientX - LA.left,
2203
+ y: W.clientY - LA.top
2204
2204
  }
2205
2205
  }));
2206
2206
  },
@@ -2218,16 +2218,16 @@ const Rs = ({
2218
2218
  {
2219
2219
  height: u || 400,
2220
2220
  margin: { bottom: 50 },
2221
- onHighlightChange: (Y) => {
2222
- const LA = Y?.seriesId && bA.find((Ee) => Ee.id === Y.seriesId), TA = LA && Y?.dataIndex !== void 0, WA = LA && Y?.dataIndex === void 0;
2221
+ onHighlightChange: (W) => {
2222
+ const LA = W?.seriesId && bA.find((Ee) => Ee.id === W.seriesId), TA = LA && W?.dataIndex !== void 0, WA = LA && W?.dataIndex === void 0;
2223
2223
  if (TA)
2224
2224
  T({
2225
- hoveredSeriesId: String(Y.seriesId),
2225
+ hoveredSeriesId: String(W.seriesId),
2226
2226
  hoveredAreaData: null,
2227
2227
  isAreaHovered: !1,
2228
- cursorPos: M
2228
+ cursorPos: N
2229
2229
  }), e?.(
2230
- Le[le(String(Y.seriesId))]
2230
+ Le[le(String(W.seriesId))]
2231
2231
  );
2232
2232
  else if (WA) {
2233
2233
  const Ee = LA?.data.map(($t, An) => ({
@@ -2235,19 +2235,19 @@ const Rs = ({
2235
2235
  y: $t
2236
2236
  })) ?? [];
2237
2237
  T({
2238
- hoveredSeriesId: String(Y.seriesId),
2238
+ hoveredSeriesId: String(W.seriesId),
2239
2239
  hoveredAreaData: Ee,
2240
2240
  isAreaHovered: !0,
2241
- cursorPos: M
2241
+ cursorPos: N
2242
2242
  }), A?.(
2243
- Le[le(String(Y.seriesId))]
2243
+ Le[le(String(W.seriesId))]
2244
2244
  );
2245
2245
  } else
2246
2246
  T({
2247
2247
  hoveredSeriesId: null,
2248
2248
  hoveredAreaData: null,
2249
2249
  isAreaHovered: !1,
2250
- cursorPos: M
2250
+ cursorPos: N
2251
2251
  });
2252
2252
  },
2253
2253
  series: bA,
@@ -2257,11 +2257,11 @@ const Rs = ({
2257
2257
  }
2258
2258
  },
2259
2259
  slots: {
2260
- itemContent: (Y) => K && S ? /* @__PURE__ */ t(
2260
+ itemContent: (W) => K && S ? /* @__PURE__ */ t(
2261
2261
  Ws,
2262
2262
  {
2263
2263
  categoryGuid: le(S),
2264
- ...Y
2264
+ ...W
2265
2265
  }
2266
2266
  ) : null
2267
2267
  },
@@ -2281,11 +2281,11 @@ const Rs = ({
2281
2281
  '& [class*="MuiLineElement-series-unstacked-"]': {
2282
2282
  strokeWidth: 3
2283
2283
  },
2284
- ...v && rA.reduce((Y, LA, TA) => {
2284
+ ...v && rA.reduce((W, LA, TA) => {
2285
2285
  const WA = `.MuiAreaElement-series-stacked-${TA}`;
2286
- return Y[WA] = {
2287
- opacity: W[TA] === v ? 0.9 : 0.2
2288
- }, Y;
2286
+ return W[WA] = {
2287
+ opacity: nA[TA] === v ? 0.9 : 0.2
2288
+ }, W;
2289
2289
  }, {})
2290
2290
  },
2291
2291
  tooltip: {
@@ -2296,13 +2296,13 @@ const Rs = ({
2296
2296
  {
2297
2297
  data: _,
2298
2298
  scaleType: "point",
2299
- valueFormatter: (Y) => J(Y, U.MONTH_SHORT_YEAR)
2299
+ valueFormatter: (W) => V(W, U.MONTH_SHORT_YEAR)
2300
2300
  }
2301
2301
  ],
2302
2302
  yAxis: [
2303
2303
  {
2304
- min: k,
2305
- max: P || 100
2304
+ min: G,
2305
+ max: M || 100
2306
2306
  }
2307
2307
  ]
2308
2308
  }
@@ -2314,7 +2314,7 @@ const Rs = ({
2314
2314
  labels: xe,
2315
2315
  setHoveredLegend: Ge,
2316
2316
  stackedColors: r,
2317
- stackedLabels: W,
2317
+ stackedLabels: nA,
2318
2318
  sx: { px: C ? 0 : 24 },
2319
2319
  unstackedColors: o,
2320
2320
  unstackedLabels: IA
@@ -2325,7 +2325,7 @@ const Rs = ({
2325
2325
  {
2326
2326
  categoryGuid: le(S),
2327
2327
  chartContainerRef: f,
2328
- cursorPosition: M,
2328
+ cursorPosition: N,
2329
2329
  hoveredAreaData: L
2330
2330
  }
2331
2331
  )
@@ -2431,7 +2431,7 @@ const Rs = ({
2431
2431
  padding: "8px 20px 8px 8px"
2432
2432
  },
2433
2433
  children: [
2434
- /* @__PURE__ */ t(RA, { "aria-label": A, onClick: e, children: /* @__PURE__ */ t(N, { name: "west" }) }),
2434
+ /* @__PURE__ */ t(RA, { "aria-label": A, onClick: e, children: /* @__PURE__ */ t(P, { name: "west" }) }),
2435
2435
  /* @__PURE__ */ t(
2436
2436
  D,
2437
2437
  {
@@ -2490,12 +2490,12 @@ const Rs = ({
2490
2490
  calendarActions: A,
2491
2491
  color: e = "primary",
2492
2492
  copy: n,
2493
- range: r = [EA($()), DA(ze())],
2493
+ range: r = [EA(Z()), DA(ze())],
2494
2494
  shouldShrinkToIcon: a = !0,
2495
2495
  toolTipContent: i = "",
2496
2496
  variant: o = "outlined"
2497
2497
  }) => {
2498
- const s = CA(), c = s.palette.mode === "dark", { isDesktop: u, isMobile: l } = jA(), [h, C] = g.useState(r), [f, v] = g.useState(n.dateRangePickerCopy.dateRangeThisMonth), [p, E] = g.useState(h), [T, S] = g.useState(!1), [L, O] = g.useState(!0), [M, x] = g.useState(6), K = [
2498
+ const s = CA(), c = s.palette.mode === "dark", { isDesktop: u, isMobile: l } = jA(), [h, C] = g.useState(r), [f, v] = g.useState(n.dateRangePickerCopy.dateRangeThisMonth), [p, E] = g.useState(h), [T, S] = g.useState(!1), [L, O] = g.useState(!0), [N, x] = g.useState(6), K = [
2499
2499
  { label: "3M", value: 3 },
2500
2500
  { label: "6M", value: 6 },
2501
2501
  { label: "9M", value: 9 },
@@ -2505,27 +2505,27 @@ const Rs = ({
2505
2505
  E(r);
2506
2506
  }, [r]), g.useEffect(() => {
2507
2507
  A.onRangeChanged(B());
2508
- }, [M]);
2508
+ }, [N]);
2509
2509
  const B = () => {
2510
- const P = DA(ze());
2511
- return [DA(Ce(P, M)), P];
2512
- }, _ = (P) => {
2513
- const W = [...h], rA = h[0], IA = h[1], sA = P === "previous";
2510
+ const M = DA(ze());
2511
+ return [DA(Ce(M, N)), M];
2512
+ }, _ = (M) => {
2513
+ const nA = [...h], rA = h[0], IA = h[1], sA = M === "previous";
2514
2514
  if (f === n.dateRangePickerCopy.dateRangeThisMonth)
2515
- W[0] = sA ? Ce(rA, 1) : YA(rA, 1), W[1] = DA(sA ? Ce(IA, 1) : YA(IA, 1));
2515
+ nA[0] = sA ? Ce(rA, 1) : YA(rA, 1), nA[1] = DA(sA ? Ce(IA, 1) : YA(IA, 1));
2516
2516
  else if (f === n.dateRangePickerCopy.dateRangeYTD || f === n.dateRangePickerCopy.dateRangeLastYear)
2517
- W[0] = sA ? cr(sr(rA), 1) : ct(sr(rA), 1), W[1] = sA ? cr(or(rA), 1) : ct(or(rA), 1);
2517
+ nA[0] = sA ? cr(sr(rA), 1) : ct(sr(rA), 1), nA[1] = sA ? cr(or(rA), 1) : ct(or(rA), 1);
2518
2518
  else {
2519
2519
  const bA = co(IA, rA);
2520
- W[0] = P === "previous" ? ne(rA, bA) : ce(rA, bA), W[1] = P === "previous" ? ne(IA, bA) : ce(IA, bA);
2520
+ nA[0] = M === "previous" ? ne(rA, bA) : ce(rA, bA), nA[1] = M === "previous" ? ne(IA, bA) : ce(IA, bA);
2521
2521
  }
2522
- C(W), A.onRangeChanged(W);
2523
- }, G = () => {
2522
+ C(nA), A.onRangeChanged(nA);
2523
+ }, k = () => {
2524
2524
  C(p), O(
2525
2525
  f === n.dateRangePickerCopy.dateRangeThisMonth || f === n.dateRangePickerCopy.dateRangeLastMonth
2526
2526
  ), A.onRangeChanged(p);
2527
- }, k = (P) => {
2528
- x(P);
2527
+ }, G = (M) => {
2528
+ x(M);
2529
2529
  };
2530
2530
  return /* @__PURE__ */ d(D, { className: "mx-cmn-date-range-selector", m: 4, children: [
2531
2531
  /* @__PURE__ */ t(
@@ -2541,7 +2541,7 @@ const Rs = ({
2541
2541
  "aria-describedby": "select-date",
2542
2542
  "aria-label": "Select a date",
2543
2543
  onClick: () => S(!0),
2544
- children: /* @__PURE__ */ t(N, { name: "calendar_month" })
2544
+ children: /* @__PURE__ */ t(P, { name: "calendar_month" })
2545
2545
  }
2546
2546
  )
2547
2547
  }
@@ -2558,10 +2558,10 @@ const Rs = ({
2558
2558
  },
2559
2559
  children: [
2560
2560
  o === "readonly" && /* @__PURE__ */ d(w, { alignItems: "center", direction: "row", gap: 8, children: [
2561
- /* @__PURE__ */ t(N, { name: "calendar_month", size: 24 }),
2562
- /* @__PURE__ */ t(y, { bold: !0, children: J(p[0], U.MONTH_DAY) }),
2563
- /* @__PURE__ */ t(N, { name: "remove" }),
2564
- /* @__PURE__ */ t(y, { bold: !0, children: J(p[1], U.MONTH_DAY_YEAR) })
2561
+ /* @__PURE__ */ t(P, { name: "calendar_month", size: 24 }),
2562
+ /* @__PURE__ */ t(y, { bold: !0, children: V(p[0], U.MONTH_DAY) }),
2563
+ /* @__PURE__ */ t(P, { name: "remove" }),
2564
+ /* @__PURE__ */ t(y, { bold: !0, children: V(p[1], U.MONTH_DAY_YEAR) })
2565
2565
  ] }),
2566
2566
  o !== "readonly" && o !== "timeframebuttons" && /* @__PURE__ */ d(
2567
2567
  lo,
@@ -2582,7 +2582,7 @@ const Rs = ({
2582
2582
  "aria-label": n.dateRangePreviousAria,
2583
2583
  color: A.shouldDisablePrevious ? "secondary" : "primary",
2584
2584
  onClick: () => A.shouldDisablePrevious ? null : _("previous"),
2585
- children: /* @__PURE__ */ t(N, { name: "chevron_left", size: 28 })
2585
+ children: /* @__PURE__ */ t(P, { name: "chevron_left", size: 28 })
2586
2586
  }
2587
2587
  ),
2588
2588
  /* @__PURE__ */ t(
@@ -2591,16 +2591,16 @@ const Rs = ({
2591
2591
  "aria-disabled": A.shouldDisablePicker,
2592
2592
  color: e,
2593
2593
  onClick: () => A.shouldDisablePicker ? null : S(!0),
2594
- startIcon: /* @__PURE__ */ t(N, { name: "calendar_month", size: 20 }),
2594
+ startIcon: /* @__PURE__ */ t(P, { name: "calendar_month", size: 20 }),
2595
2595
  sx: {
2596
2596
  p: l ? 0 : 8,
2597
2597
  width: u ? 280 : 232
2598
2598
  },
2599
- children: L ? J(h[0], U.MONTH_YEAR) : /* @__PURE__ */ d("span", { children: [
2600
- J(h[0], U.MONTH_DAY_YEAR),
2599
+ children: L ? V(h[0], U.MONTH_YEAR) : /* @__PURE__ */ d("span", { children: [
2600
+ V(h[0], U.MONTH_DAY_YEAR),
2601
2601
  " -",
2602
2602
  " ",
2603
- J(h[1], U.MONTH_DAY_YEAR)
2603
+ V(h[1], U.MONTH_DAY_YEAR)
2604
2604
  ] })
2605
2605
  }
2606
2606
  ),
@@ -2611,7 +2611,7 @@ const Rs = ({
2611
2611
  "aria-label": n.dateRangeNextAria,
2612
2612
  color: A.shouldDisableNext ? "secondary" : "primary",
2613
2613
  onClick: () => A.shouldDisableNext ? null : _("next"),
2614
- children: /* @__PURE__ */ t(N, { name: "chevron_right", size: 28 })
2614
+ children: /* @__PURE__ */ t(P, { name: "chevron_right", size: 28 })
2615
2615
  }
2616
2616
  )
2617
2617
  ]
@@ -2623,11 +2623,11 @@ const Rs = ({
2623
2623
  color: e,
2624
2624
  exclusive: !0,
2625
2625
  orientation: "horizontal",
2626
- value: M,
2627
- children: K?.map((P) => /* @__PURE__ */ t(
2626
+ value: N,
2627
+ children: K?.map((M) => /* @__PURE__ */ t(
2628
2628
  En,
2629
2629
  {
2630
- onClick: () => k(P.value),
2630
+ onClick: () => G(M.value),
2631
2631
  sx: {
2632
2632
  fontSize: 15,
2633
2633
  fontWeight: 600,
@@ -2651,10 +2651,10 @@ const Rs = ({
2651
2651
  color: s.palette.grey[500]
2652
2652
  }
2653
2653
  },
2654
- value: P.value,
2655
- children: P.label
2654
+ value: M.value,
2655
+ children: M.label
2656
2656
  },
2657
- P.label
2657
+ M.label
2658
2658
  ))
2659
2659
  }
2660
2660
  )
@@ -2668,7 +2668,7 @@ const Rs = ({
2668
2668
  isOpen: T,
2669
2669
  onClose: () => S(!1),
2670
2670
  onPrimaryAction: () => {
2671
- G(), S(!1);
2671
+ k(), S(!1);
2672
2672
  },
2673
2673
  primaryText: n.dateRangeEditApply,
2674
2674
  title: n.dateRangeEditTitle,
@@ -2677,8 +2677,8 @@ const Rs = ({
2677
2677
  {
2678
2678
  copy: n.dateRangePickerCopy,
2679
2679
  dateRange: p,
2680
- onRangeChanged: (P, W) => {
2681
- E(P), v(W);
2680
+ onRangeChanged: (M, nA) => {
2681
+ E(M), v(nA);
2682
2682
  },
2683
2683
  selectedShortcut: f,
2684
2684
  sx: { p: 16 }
@@ -2692,7 +2692,7 @@ const Rs = ({
2692
2692
  copy: { title: n.dateRangeEditTitle },
2693
2693
  isOpen: !0,
2694
2694
  onClose: () => S(!1),
2695
- onPrimaryAction: () => G(),
2695
+ onPrimaryAction: () => k(),
2696
2696
  primaryText: n.dateRangeEditApply,
2697
2697
  sx: {
2698
2698
  "& .MuiDialogContent-root": {
@@ -2704,8 +2704,8 @@ const Rs = ({
2704
2704
  {
2705
2705
  copy: n.dateRangePickerCopy,
2706
2706
  dateRange: p,
2707
- onRangeChanged: (P, W) => {
2708
- E(P), v(W);
2707
+ onRangeChanged: (M, nA) => {
2708
+ E(M), v(nA);
2709
2709
  },
2710
2710
  selectedShortcut: f,
2711
2711
  sx: {
@@ -2870,7 +2870,7 @@ const Be = ({
2870
2870
  action: n && /* @__PURE__ */ t(
2871
2871
  iA,
2872
2872
  {
2873
- endIcon: /* @__PURE__ */ t(N, { name: "keyboard_arrow_right_rounded" }),
2873
+ endIcon: /* @__PURE__ */ t(P, { name: "keyboard_arrow_right_rounded" }),
2874
2874
  onClick: n,
2875
2875
  children: /* @__PURE__ */ t(y, { bold: !0, variant: "Small", children: r })
2876
2876
  }
@@ -2897,7 +2897,7 @@ const Be = ({
2897
2897
  sx: l = {},
2898
2898
  title: h = ""
2899
2899
  }) => {
2900
- const [C, { height: f, width: v }] = ka(), { onEvent: p } = V(), { isDesktop: E, isMobile: T, isTablet: S } = jA(), { displayedDateRange: L, selectedAccountGuids: O, setSelectedAccountGuids: M } = vA(), { common: x } = b(), K = () => {
2900
+ const [C, { height: f, width: v }] = ka(), { onEvent: p } = Y(), { isDesktop: E, isMobile: T, isTablet: S } = jA(), { displayedDateRange: L, selectedAccountGuids: O, setSelectedAccountGuids: N } = vA(), { common: x } = b(), K = () => {
2901
2901
  c && (c(), p(Q.WIDGET_BACK_CLICK));
2902
2902
  }, B = {
2903
2903
  accountFilterOptionsCopy: {
@@ -2931,7 +2931,7 @@ const Be = ({
2931
2931
  dateRangeEditTitle: x.date_range_picker.edit_title,
2932
2932
  dateRangeNextAria: x.date_range_picker.next_aria,
2933
2933
  dateRangePreviousAria: x.date_range_picker.previous_aria
2934
- }, G = a ? a.start : L.start, k = a ? a.end : L.end;
2934
+ }, k = a ? a.start : L.start, G = a ? a.end : L.end;
2935
2935
  return /* @__PURE__ */ d(
2936
2936
  He,
2937
2937
  {
@@ -2958,7 +2958,7 @@ const Be = ({
2958
2958
  {
2959
2959
  calendarActions: n,
2960
2960
  copy: _,
2961
- range: [G, k],
2961
+ range: [k, G],
2962
2962
  shouldShrinkToIcon: !1,
2963
2963
  variant: i
2964
2964
  }
@@ -2968,9 +2968,9 @@ const Be = ({
2968
2968
  {
2969
2969
  accounts: A,
2970
2970
  copy: B,
2971
- onFilterClick: (P) => {
2972
- const W = A.filter((rA) => P.includes(rA.guid)).map((rA) => rA.guid);
2973
- M(W), u?.();
2971
+ onFilterClick: (M) => {
2972
+ const nA = A.filter((rA) => M.includes(rA.guid)).map((rA) => rA.guid);
2973
+ N(nA), u?.();
2974
2974
  },
2975
2975
  selectedAccountGuids: O,
2976
2976
  showAccountNumbers: !1,
@@ -2979,23 +2979,23 @@ const Be = ({
2979
2979
  }
2980
2980
  ),
2981
2981
  e.map(
2982
- (P) => E || S ? /* @__PURE__ */ t(
2982
+ (M) => E || S ? /* @__PURE__ */ t(
2983
2983
  iA,
2984
2984
  {
2985
- onClick: P.onClick,
2986
- startIcon: /* @__PURE__ */ t(N, { name: P.iconName }),
2985
+ onClick: M.onClick,
2986
+ startIcon: /* @__PURE__ */ t(P, { name: M.iconName }),
2987
2987
  sx: { mx: 4 },
2988
- children: P.label
2988
+ children: M.label
2989
2989
  },
2990
- P.iconName
2990
+ M.iconName
2991
2991
  ) : /* @__PURE__ */ t(
2992
2992
  RA,
2993
2993
  {
2994
- "aria-label": P.label,
2995
- onClick: P.onClick,
2996
- children: /* @__PURE__ */ t(N, { name: P.iconName })
2994
+ "aria-label": M.label,
2995
+ onClick: M.onClick,
2996
+ children: /* @__PURE__ */ t(P, { name: M.iconName })
2997
2997
  },
2998
- P.iconName
2998
+ M.iconName
2999
2999
  )
3000
3000
  )
3001
3001
  ] }),
@@ -3016,7 +3016,7 @@ const Be = ({
3016
3016
  "aria-label": x.back_to_dashboard,
3017
3017
  onClick: K,
3018
3018
  sx: { ml: -16, mr: 16 },
3019
- children: /* @__PURE__ */ t(N, { name: "arrow_back" })
3019
+ children: /* @__PURE__ */ t(P, { name: "arrow_back" })
3020
3020
  }
3021
3021
  ),
3022
3022
  /* @__PURE__ */ t(fe, { variant: "H3", children: h })
@@ -3031,7 +3031,7 @@ const Be = ({
3031
3031
  {
3032
3032
  calendarActions: n,
3033
3033
  copy: _,
3034
- range: [G, k],
3034
+ range: [k, G],
3035
3035
  shouldShrinkToIcon: !1,
3036
3036
  variant: i
3037
3037
  }
@@ -3056,19 +3056,19 @@ const Be = ({
3056
3056
  ...h
3057
3057
  }) => {
3058
3058
  const [C, f] = g.useState(""), { common: v } = b(), p = a || v.currency_input, E = yA(), T = nc(E), S = /^[0-9]*$/, L = /^(\d)*(\,)?([0-9]{1,2})?$/, O = /^(\d)*(\.)?([0-9]{1,2})?$/;
3059
- let M;
3059
+ let N;
3060
3060
  const x = g.useRef(ho());
3061
3061
  if (A)
3062
3062
  switch (ds()) {
3063
3063
  case Ot.CAD:
3064
- M = L;
3064
+ N = L;
3065
3065
  break;
3066
3066
  default:
3067
- M = O;
3067
+ N = O;
3068
3068
  break;
3069
3069
  }
3070
3070
  else
3071
- M = S;
3071
+ N = S;
3072
3072
  g.useEffect(() => {
3073
3073
  K(n);
3074
3074
  }, [n]);
@@ -3083,7 +3083,7 @@ const Be = ({
3083
3083
  p.error_amount_must_be_less_than_or_equal_to,
3084
3084
  F(Cr, A ? "0,0.00" : "0,0", Math.floor)
3085
3085
  )
3086
- ), l?.(!1)) : B.toString().match(M) ? i() ? (f(""), l?.(!0)) : (f(o), l?.(!1)) : (f(p.error_amount_is_invalid), l?.(!1)), u(B.toString());
3086
+ ), l?.(!1)) : B.toString().match(N) ? i() ? (f(""), l?.(!0)) : (f(o), l?.(!1)) : (f(p.error_amount_is_invalid), l?.(!1)), u(B.toString());
3087
3087
  };
3088
3088
  return /* @__PURE__ */ t(
3089
3089
  Ie,
@@ -3166,14 +3166,14 @@ const Be = ({
3166
3166
  "aria-label": e,
3167
3167
  className: "mx-cat-cancel-search-button",
3168
3168
  onClick: () => n(""),
3169
- children: /* @__PURE__ */ t(N, { name: "cancel", size: 24 })
3169
+ children: /* @__PURE__ */ t(P, { name: "cancel", size: 24 })
3170
3170
  }
3171
3171
  );
3172
3172
  return /* @__PURE__ */ t(D, { className: "mx-cmn-search-box", px: i.Spacing.Large, py: i.Spacing.Medium, children: /* @__PURE__ */ t(
3173
3173
  Ie,
3174
3174
  {
3175
3175
  InputProps: {
3176
- startAdornment: /* @__PURE__ */ t(bt, { position: "start", children: /* @__PURE__ */ t(N, { color: "disabled", name: "search", size: 26 }) }),
3176
+ startAdornment: /* @__PURE__ */ t(bt, { position: "start", children: /* @__PURE__ */ t(P, { color: "disabled", name: "search", size: 26 }) }),
3177
3177
  endAdornment: /* @__PURE__ */ t(bt, { position: "end", sx: { p: 0 }, children: a ? o : null })
3178
3178
  },
3179
3179
  "aria-label": A,
@@ -3272,7 +3272,7 @@ const Be = ({
3272
3272
  }
3273
3273
  ), Nt = ({ iconName: A, label: e, onClick: n, value: r }) => {
3274
3274
  const a = /* @__PURE__ */ d(aA, { children: [
3275
- /* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(me, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(N, { name: A, sx: { color: "text.primary" }, weight: qA.Dark }) }) }),
3275
+ /* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(me, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(P, { name: A, sx: { color: "text.primary" }, weight: qA.Dark }) }) }),
3276
3276
  /* @__PURE__ */ t(
3277
3277
  lA,
3278
3278
  {
@@ -3283,10 +3283,10 @@ const Be = ({
3283
3283
  }
3284
3284
  )
3285
3285
  ] });
3286
- return n ? /* @__PURE__ */ t(Z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(dA, { onClick: n, children: [
3286
+ return n ? /* @__PURE__ */ t(J, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(dA, { onClick: n, children: [
3287
3287
  a,
3288
- /* @__PURE__ */ t(re, { children: /* @__PURE__ */ t(N, { name: "chevron_right", size: 24 }) })
3289
- ] }) }) : /* @__PURE__ */ t(Z, { disableGutters: !1, disablePadding: !1, children: a });
3288
+ /* @__PURE__ */ t(re, { children: /* @__PURE__ */ t(P, { name: "chevron_right", size: 24 }) })
3289
+ ] }) }) : /* @__PURE__ */ t(J, { disableGutters: !1, disablePadding: !1, children: a });
3290
3290
  }, Mt = ({
3291
3291
  body: A,
3292
3292
  iconName: e = "info",
@@ -3299,7 +3299,7 @@ const Be = ({
3299
3299
  /* @__PURE__ */ t(y, { sx: { whiteSpace: "unset" }, variant: "Small", children: A })
3300
3300
  ] }),
3301
3301
  children: /* @__PURE__ */ t(RA, { "aria-label": n, sx: { minHeight: 0, minWidth: 0, p: 0 }, children: /* @__PURE__ */ t(
3302
- N,
3302
+ P,
3303
3303
  {
3304
3304
  name: e,
3305
3305
  sx: { color: "action.active", fontSize: 16 },
@@ -3313,8 +3313,8 @@ const Be = ({
3313
3313
  onClick: n,
3314
3314
  sx: r = {}
3315
3315
  }) => {
3316
- const { onEvent: a } = V();
3317
- return n ? /* @__PURE__ */ t(Z, { sx: { bgcolor: "background.paper", ...r }, children: /* @__PURE__ */ t(
3316
+ const { onEvent: a } = Y();
3317
+ return n ? /* @__PURE__ */ t(J, { sx: { bgcolor: "background.paper", ...r }, children: /* @__PURE__ */ t(
3318
3318
  dA,
3319
3319
  {
3320
3320
  onClick: () => {
@@ -3323,7 +3323,7 @@ const Be = ({
3323
3323
  children: A
3324
3324
  }
3325
3325
  ) }) : /* @__PURE__ */ t(
3326
- Z,
3326
+ J,
3327
3327
  {
3328
3328
  disableGutters: !1,
3329
3329
  disablePadding: !1,
@@ -3341,14 +3341,14 @@ class ic {
3341
3341
  wA(this);
3342
3342
  }
3343
3343
  initialize = async (e, n) => {
3344
- this.api = new xt(e, n), await this.getCopy(this.featureNamespace), nA(() => {
3344
+ this.api = new xt(e, n), await this.getCopy(this.featureNamespace), tA(() => {
3345
3345
  this.isInitialized = !0;
3346
3346
  });
3347
3347
  };
3348
3348
  getCopy = async (e, n = "") => {
3349
3349
  try {
3350
3350
  const r = await this.api.getGlobalCopy(e, n);
3351
- nA(() => {
3351
+ tA(() => {
3352
3352
  this.copy = r[e];
3353
3353
  });
3354
3354
  } catch (r) {
@@ -3367,7 +3367,7 @@ class oc {
3367
3367
  };
3368
3368
  loadBeats = async () => {
3369
3369
  const e = await this.api.getBeats();
3370
- nA(() => {
3370
+ tA(() => {
3371
3371
  this.beats = e;
3372
3372
  });
3373
3373
  };
@@ -3394,7 +3394,7 @@ class sc {
3394
3394
  loadBudgets = async () => {
3395
3395
  try {
3396
3396
  const e = await this.api.getBudgets();
3397
- nA(() => {
3397
+ tA(() => {
3398
3398
  this.budgets = e.filter(
3399
3399
  (n) => n.category_guid !== m.INCOME && n.category_guid !== m.TRANSFER
3400
3400
  );
@@ -3442,10 +3442,10 @@ const At = () => {
3442
3442
  v && h(v), f(p);
3443
3443
  }, [v, p]);
3444
3444
  const E = g.useMemo(
3445
- () => r.filter((O) => i.includes(O.guid)).reduce((O, M) => O + (M?.balance || 0), 0),
3445
+ () => r.filter((O) => i.includes(O.guid)).reduce((O, N) => O + (N?.balance || 0), 0),
3446
3446
  [i, p]
3447
3447
  ), T = g.useMemo(
3448
- () => u.filter((O) => i.includes(O.accountGuid || "")).reduce((O, M) => O + M.amount, 0),
3448
+ () => u.filter((O) => i.includes(O.accountGuid || "")).reduce((O, N) => O + N.amount, 0),
3449
3449
  [i, u]
3450
3450
  ), S = g.useMemo(
3451
3451
  () => E - T,
@@ -3467,12 +3467,12 @@ const At = () => {
3467
3467
  l.length
3468
3468
  ) })
3469
3469
  ] }),
3470
- /* @__PURE__ */ t(w, { pt: 18, children: /* @__PURE__ */ t(N, { name: "remove" }) }),
3470
+ /* @__PURE__ */ t(w, { pt: 18, children: /* @__PURE__ */ t(P, { name: "remove" }) }),
3471
3471
  /* @__PURE__ */ d(w, { pb: 14, pt: 12, children: [
3472
3472
  /* @__PURE__ */ t(zA, { amount: T, variant: "H2" }),
3473
3473
  /* @__PURE__ */ t(fA, { variant: "XSmall", whiteSpace: "nowrap", children: z(o.expenses_due, u.length) })
3474
3474
  ] }),
3475
- /* @__PURE__ */ t(w, { pt: 18, children: /* @__PURE__ */ t(N, { name: "equals" }) }),
3475
+ /* @__PURE__ */ t(w, { pt: 18, children: /* @__PURE__ */ t(P, { name: "equals" }) }),
3476
3476
  /* @__PURE__ */ d(w, { pb: 14, pr: 24, pt: 12, children: [
3477
3477
  /* @__PURE__ */ t(zA, { amount: S, variant: "H2" }),
3478
3478
  /* @__PURE__ */ d(w, { alignItems: "center", direction: "row", gap: 8, children: [
@@ -3487,7 +3487,7 @@ const At = () => {
3487
3487
  iA,
3488
3488
  {
3489
3489
  onClick: A,
3490
- startIcon: /* @__PURE__ */ t(N, { name: "add" }),
3490
+ startIcon: /* @__PURE__ */ t(P, { name: "add" }),
3491
3491
  sx: { fontSize: 13, lineHeight: "initial" },
3492
3492
  children: o.add_income
3493
3493
  }
@@ -3541,7 +3541,7 @@ const At = () => {
3541
3541
  iA,
3542
3542
  {
3543
3543
  onClick: A,
3544
- startIcon: /* @__PURE__ */ t(N, { name: "add" }),
3544
+ startIcon: /* @__PURE__ */ t(P, { name: "add" }),
3545
3545
  sx: { fontSize: 13 },
3546
3546
  children: o.add_income
3547
3547
  }
@@ -3743,7 +3743,7 @@ const hc = [
3743
3743
  tags: l
3744
3744
  };
3745
3745
  });
3746
- }, AA = {
3746
+ }, $ = {
3747
3747
  ADD: "Add",
3748
3748
  ADD_CATEGORY: "Add Category",
3749
3749
  CHANGE_CATEGORY: "Change Category",
@@ -3757,11 +3757,11 @@ const hc = [
3757
3757
  SELECT: "Select",
3758
3758
  UNHIDE: "Unhide",
3759
3759
  UNSPLIT: "Unsplit"
3760
- }, eA = {
3760
+ }, AA = {
3761
3761
  TRANSACTION_DETAILS: "Transaction Details",
3762
3762
  TRANSACTIONS_LIST: "Transactions List",
3763
3763
  TRANSACTIONS_WIDGET: "Transactions Widget"
3764
- }, tA = {
3764
+ }, eA = {
3765
3765
  ADD_TRANSACTION: "Manual Transaction",
3766
3766
  CATEGORY: "Category",
3767
3767
  DATE: "Date",
@@ -3783,216 +3783,216 @@ const hc = [
3783
3783
  }, Dr = {
3784
3784
  // splits
3785
3785
  [R.ON_TRANSACTION_SPLIT_CLICK]: {
3786
- action: AA.SELECT,
3787
- category: eA.TRANSACTION_DETAILS,
3788
- label: tA.SPLITS
3786
+ action: $.SELECT,
3787
+ category: AA.TRANSACTION_DETAILS,
3788
+ label: eA.SPLITS
3789
3789
  },
3790
3790
  [R.ON_TRANSACTION_SPLIT_CATEGORY_CLICK]: {
3791
- action: AA.ADD_CATEGORY,
3792
- category: eA.TRANSACTION_DETAILS,
3793
- label: tA.SPLITS
3791
+ action: $.ADD_CATEGORY,
3792
+ category: AA.TRANSACTION_DETAILS,
3793
+ label: eA.SPLITS
3794
3794
  },
3795
3795
  [R.ON_TRANSACTION_SPLIT_DELETE_CLICK]: {
3796
- action: AA.DELETE,
3797
- category: eA.TRANSACTION_DETAILS,
3798
- label: tA.SPLITS
3796
+ action: $.DELETE,
3797
+ category: AA.TRANSACTION_DETAILS,
3798
+ label: eA.SPLITS
3799
3799
  },
3800
3800
  [R.ON_TRANSACTION_SPLIT_SAVE_CLICK]: {
3801
- action: AA.SPLIT,
3802
- category: eA.TRANSACTION_DETAILS,
3803
- label: tA.SPLITS
3801
+ action: $.SPLIT,
3802
+ category: AA.TRANSACTION_DETAILS,
3803
+ label: eA.SPLITS
3804
3804
  },
3805
3805
  [R.ON_TRANSACTION_UNSPLIT]: {
3806
- action: AA.UNSPLIT,
3807
- category: eA.TRANSACTION_DETAILS,
3808
- label: tA.SPLITS
3806
+ action: $.UNSPLIT,
3807
+ category: AA.TRANSACTION_DETAILS,
3808
+ label: eA.SPLITS
3809
3809
  },
3810
3810
  // category
3811
3811
  [R.ON_TRANSACTION_CATEGORY_CLICK]: {
3812
- action: AA.SELECT,
3813
- category: eA.TRANSACTIONS_LIST,
3814
- label: tA.CATEGORY
3812
+ action: $.SELECT,
3813
+ category: AA.TRANSACTIONS_LIST,
3814
+ label: eA.CATEGORY
3815
3815
  },
3816
3816
  [R.ON_TRANSACTION_CATEGORY_CHANGED]: {
3817
- action: AA.CHANGE_CATEGORY,
3818
- category: eA.TRANSACTION_DETAILS,
3819
- label: tA.CATEGORY
3817
+ action: $.CHANGE_CATEGORY,
3818
+ category: AA.TRANSACTION_DETAILS,
3819
+ label: eA.CATEGORY
3820
3820
  },
3821
3821
  // date
3822
3822
  [R.ON_TRANSACTION_DATE_CHANGED]: {
3823
- action: AA.SAVE,
3824
- category: eA.TRANSACTION_DETAILS,
3825
- label: tA.DATE
3823
+ action: $.SAVE,
3824
+ category: AA.TRANSACTION_DETAILS,
3825
+ label: eA.DATE
3826
3826
  },
3827
3827
  [R.ON_TRANSACTION_DATE_CLICK]: {
3828
- action: AA.SELECT,
3829
- category: eA.TRANSACTION_DETAILS,
3830
- label: tA.DATE
3828
+ action: $.SELECT,
3829
+ category: AA.TRANSACTION_DETAILS,
3830
+ label: eA.DATE
3831
3831
  },
3832
3832
  // merchant logo
3833
3833
  [R.ON_TRANSACTION_DELETE_LOGO_CANCEL]: {
3834
- action: AA.CLOSE,
3835
- category: eA.TRANSACTION_DETAILS,
3836
- label: tA.DELETE_MERCHANT_LOGO
3834
+ action: $.CLOSE,
3835
+ category: AA.TRANSACTION_DETAILS,
3836
+ label: eA.DELETE_MERCHANT_LOGO
3837
3837
  },
3838
3838
  [R.ON_TRANSACTION_DELETE_LOGO_CLICK]: {
3839
- action: AA.SELECT,
3840
- category: eA.TRANSACTION_DETAILS,
3841
- label: tA.DELETE_MERCHANT_LOGO
3839
+ action: $.SELECT,
3840
+ category: AA.TRANSACTION_DETAILS,
3841
+ label: eA.DELETE_MERCHANT_LOGO
3842
3842
  },
3843
3843
  [R.ON_TRANSACTION_DELETE_LOGO_DELETED]: {
3844
- action: AA.DELETE,
3845
- category: eA.TRANSACTION_DETAILS,
3846
- label: tA.DELETE_MERCHANT_LOGO
3844
+ action: $.DELETE,
3845
+ category: AA.TRANSACTION_DETAILS,
3846
+ label: eA.DELETE_MERCHANT_LOGO
3847
3847
  },
3848
3848
  // description
3849
3849
  [R.ON_TRANSACTION_DESCRIPTION_EDIT_CLICK]: {
3850
- action: AA.EDIT,
3851
- category: eA.TRANSACTION_DETAILS,
3852
- label: tA.DESCRIPTION
3850
+ action: $.EDIT,
3851
+ category: AA.TRANSACTION_DETAILS,
3852
+ label: eA.DESCRIPTION
3853
3853
  },
3854
3854
  [R.ON_TRANSACTION_DESCRIPTION_SAVE_CLICK]: {
3855
- action: AA.SAVE,
3856
- category: eA.TRANSACTION_DETAILS,
3857
- label: tA.DESCRIPTION
3855
+ action: $.SAVE,
3856
+ category: AA.TRANSACTION_DETAILS,
3857
+ label: eA.DESCRIPTION
3858
3858
  },
3859
3859
  // hide transactions
3860
3860
  [R.ON_TRANSACTION_HIDDEN]: {
3861
- action: AA.SAVE,
3862
- category: eA.TRANSACTION_DETAILS,
3863
- label: tA.HIDE_TRANSACTION
3861
+ action: $.SAVE,
3862
+ category: AA.TRANSACTION_DETAILS,
3863
+ label: eA.HIDE_TRANSACTION
3864
3864
  },
3865
3865
  [R.ON_TRANSACTION_HIDE_CLICK]: {
3866
- action: AA.SELECT,
3867
- category: eA.TRANSACTION_DETAILS,
3868
- label: tA.HIDE_TRANSACTION
3866
+ action: $.SELECT,
3867
+ category: AA.TRANSACTION_DETAILS,
3868
+ label: eA.HIDE_TRANSACTION
3869
3869
  },
3870
3870
  [R.ON_TRANSACTION_HIDE_CANCEL_CLICK]: {
3871
- action: AA.CLOSE,
3872
- category: eA.TRANSACTION_DETAILS,
3873
- label: tA.HIDE_TRANSACTION
3871
+ action: $.CLOSE,
3872
+ category: AA.TRANSACTION_DETAILS,
3873
+ label: eA.HIDE_TRANSACTION
3874
3874
  },
3875
3875
  // transaction list
3876
3876
  [R.ON_TRANSACTION_LIST_ITEM_CLICK]: {
3877
- action: AA.SELECT,
3878
- category: eA.TRANSACTIONS_LIST,
3879
- label: tA.TRANSACTION
3877
+ action: $.SELECT,
3878
+ category: AA.TRANSACTIONS_LIST,
3879
+ label: eA.TRANSACTION
3880
3880
  },
3881
3881
  // memo
3882
3882
  [R.ON_TRANSACTION_MEMO_CHANGED]: {
3883
- action: AA.SAVE,
3884
- category: eA.TRANSACTION_DETAILS,
3885
- label: tA.MEMO
3883
+ action: $.SAVE,
3884
+ category: AA.TRANSACTION_DETAILS,
3885
+ label: eA.MEMO
3886
3886
  },
3887
3887
  [R.ON_TRANSACTION_MEMO_CLICK]: {
3888
- action: AA.SELECT,
3889
- category: eA.TRANSACTION_DETAILS,
3890
- label: tA.MEMO
3888
+ action: $.SELECT,
3889
+ category: AA.TRANSACTION_DETAILS,
3890
+ label: eA.MEMO
3891
3891
  },
3892
3892
  // tags
3893
3893
  [R.ON_TRANSACTION_TAGS_CHANGED]: {
3894
- action: AA.SAVE,
3895
- category: eA.TRANSACTION_DETAILS,
3896
- label: tA.TAGS
3894
+ action: $.SAVE,
3895
+ category: AA.TRANSACTION_DETAILS,
3896
+ label: eA.TAGS
3897
3897
  },
3898
3898
  [R.ON_TRANSACTION_TAGS_CLICK]: {
3899
- action: AA.SELECT,
3900
- category: eA.TRANSACTION_DETAILS,
3901
- label: tA.TAGS
3899
+ action: $.SELECT,
3900
+ category: AA.TRANSACTION_DETAILS,
3901
+ label: eA.TAGS
3902
3902
  },
3903
3903
  [R.ON_TRANSACTION_TAGS_TAG_ADD_CANCEL_CLICK]: {
3904
- action: AA.CLOSE,
3905
- category: eA.TRANSACTION_DETAILS,
3906
- label: tA.TAGS
3904
+ action: $.CLOSE,
3905
+ category: AA.TRANSACTION_DETAILS,
3906
+ label: eA.TAGS
3907
3907
  },
3908
3908
  [R.ON_TRANSACTION_TAGS_TAG_ADD_CLICK]: {
3909
- action: AA.ADD,
3910
- category: eA.TRANSACTION_DETAILS,
3911
- label: tA.TAG_ADD
3909
+ action: $.ADD,
3910
+ category: AA.TRANSACTION_DETAILS,
3911
+ label: eA.TAG_ADD
3912
3912
  },
3913
3913
  [R.ON_TRANSACTION_TAGS_TAG_ADDED]: {
3914
- action: AA.SAVE,
3915
- category: eA.TRANSACTION_DETAILS,
3916
- label: tA.TAG_ADD
3914
+ action: $.SAVE,
3915
+ category: AA.TRANSACTION_DETAILS,
3916
+ label: eA.TAG_ADD
3917
3917
  },
3918
3918
  [R.ON_TRANSACTION_TAGS_TAG_DELETE_CLICK]: {
3919
- action: AA.SELECT,
3920
- category: eA.TRANSACTION_DETAILS,
3921
- label: tA.TAG_DELETE
3919
+ action: $.SELECT,
3920
+ category: AA.TRANSACTION_DETAILS,
3921
+ label: eA.TAG_DELETE
3922
3922
  },
3923
3923
  [R.ON_TRANSACTION_TAGS_TAG_DELETE_CANCEL_CLICK]: {
3924
- action: AA.CLOSE,
3925
- category: eA.TRANSACTION_DETAILS,
3926
- label: tA.TAG_DELETE
3924
+ action: $.CLOSE,
3925
+ category: AA.TRANSACTION_DETAILS,
3926
+ label: eA.TAG_DELETE
3927
3927
  },
3928
3928
  [R.ON_TRANSACTION_TAGS_TAG_DELETED]: {
3929
- action: AA.SAVE,
3930
- category: eA.TRANSACTION_DETAILS,
3931
- label: tA.TAG_DELETE
3929
+ action: $.SAVE,
3930
+ category: AA.TRANSACTION_DETAILS,
3931
+ label: eA.TAG_DELETE
3932
3932
  },
3933
3933
  [R.ON_TRANSACTION_TAGS_TAG_EDIT_CLICK]: {
3934
- action: AA.EDIT,
3935
- category: eA.TRANSACTION_DETAILS,
3936
- label: tA.TAG_EDIT
3934
+ action: $.EDIT,
3935
+ category: AA.TRANSACTION_DETAILS,
3936
+ label: eA.TAG_EDIT
3937
3937
  },
3938
3938
  [R.ON_TRANSACTION_TAGS_TAG_EDIT_SAVED]: {
3939
- action: AA.SAVE,
3940
- category: eA.TRANSACTION_DETAILS,
3941
- label: tA.TAG_EDIT
3939
+ action: $.SAVE,
3940
+ category: AA.TRANSACTION_DETAILS,
3941
+ label: eA.TAG_EDIT
3942
3942
  },
3943
3943
  // flag
3944
3944
  [R.ON_TRANSACTION_TOGGLE_FLAG_CLICK]: {
3945
- action: AA.SELECT,
3946
- category: eA.TRANSACTION_DETAILS,
3947
- label: tA.FLAG
3945
+ action: $.SELECT,
3946
+ category: AA.TRANSACTION_DETAILS,
3947
+ label: eA.FLAG
3948
3948
  },
3949
3949
  // hide
3950
3950
  [R.ON_TRANSACTION_UNHIDDEN]: {
3951
- action: AA.SAVE,
3952
- category: eA.TRANSACTION_DETAILS,
3953
- label: tA.UNHIDE_TRANSACTION
3951
+ action: $.SAVE,
3952
+ category: AA.TRANSACTION_DETAILS,
3953
+ label: eA.UNHIDE_TRANSACTION
3954
3954
  },
3955
3955
  [R.ON_TRANSACTION_UNHIDE_CLICK]: {
3956
- action: AA.SELECT,
3957
- category: eA.TRANSACTION_DETAILS,
3958
- label: tA.UNHIDE_TRANSACTION
3956
+ action: $.SELECT,
3957
+ category: AA.TRANSACTION_DETAILS,
3958
+ label: eA.UNHIDE_TRANSACTION
3959
3959
  },
3960
3960
  [R.ON_TRANSACTION_UNHIDE_CANCEL_CLICK]: {
3961
- action: AA.CLOSE,
3962
- category: eA.TRANSACTION_DETAILS,
3963
- label: tA.UNHIDE_TRANSACTION
3961
+ action: $.CLOSE,
3962
+ category: AA.TRANSACTION_DETAILS,
3963
+ label: eA.UNHIDE_TRANSACTION
3964
3964
  },
3965
3965
  // export CSV
3966
3966
  [R.ON_TRANSACTION_EXPORT_CSV_CLICK]: {
3967
- action: AA.SELECT,
3968
- category: eA.TRANSACTIONS_WIDGET,
3969
- label: tA.EXPORT_CSV
3967
+ action: $.SELECT,
3968
+ category: AA.TRANSACTIONS_WIDGET,
3969
+ label: eA.EXPORT_CSV
3970
3970
  },
3971
3971
  // add transaction
3972
3972
  [R.ON_TRANSACTION_MANUAL_ADD_CLICK]: {
3973
- action: AA.SELECT,
3974
- category: eA.TRANSACTIONS_WIDGET,
3975
- label: tA.ADD_TRANSACTION
3973
+ action: $.SELECT,
3974
+ category: AA.TRANSACTIONS_WIDGET,
3975
+ label: eA.ADD_TRANSACTION
3976
3976
  },
3977
3977
  [R.ON_TRANSACTION_MANUAL_ADD_ADDED]: {
3978
- action: AA.ADD,
3979
- category: eA.TRANSACTIONS_WIDGET,
3980
- label: tA.ADD_TRANSACTION
3978
+ action: $.ADD,
3979
+ category: AA.TRANSACTIONS_WIDGET,
3980
+ label: eA.ADD_TRANSACTION
3981
3981
  },
3982
3982
  [R.ON_TRANSACTION_DELETE_CLICK]: {
3983
- action: AA.SELECT,
3984
- category: eA.TRANSACTIONS_WIDGET,
3985
- label: tA.DELETE_TRANSACTION
3983
+ action: $.SELECT,
3984
+ category: AA.TRANSACTIONS_WIDGET,
3985
+ label: eA.DELETE_TRANSACTION
3986
3986
  },
3987
3987
  [R.ON_TRANSACTION_DELETE_CANCEL]: {
3988
- action: AA.CLOSE,
3989
- category: eA.TRANSACTIONS_WIDGET,
3990
- label: tA.DELETE_TRANSACTION
3988
+ action: $.CLOSE,
3989
+ category: AA.TRANSACTIONS_WIDGET,
3990
+ label: eA.DELETE_TRANSACTION
3991
3991
  },
3992
3992
  [R.ON_TRANSACTION_DELETE_DELETED]: {
3993
- action: AA.DELETE,
3994
- category: eA.TRANSACTIONS_WIDGET,
3995
- label: tA.DELETE_TRANSACTION
3993
+ action: $.DELETE,
3994
+ category: AA.TRANSACTIONS_WIDGET,
3995
+ label: eA.DELETE_TRANSACTION
3996
3996
  }
3997
3997
  }, fc = async (A, e) => !e || !Dr[A] ? null : e.sendAnalyticEvent(Dr[A]), gn = {
3998
3998
  FLAG: "flag",
@@ -4010,7 +4010,7 @@ const hc = [
4010
4010
  }, pc = (A, e, n) => {
4011
4011
  const {
4012
4012
  accounts: r = [],
4013
- dateRange: a = { start: ne($(), 90), end: ze() },
4013
+ dateRange: a = { start: ne(Z(), 90), end: ze() },
4014
4014
  custom: i = () => !0,
4015
4015
  searchTerm: o = ""
4016
4016
  } = A;
@@ -4022,7 +4022,7 @@ const hc = [
4022
4022
  const u = s.tags.some(
4023
4023
  (h) => VA(o, e.find((C) => C.guid === h)?.name)
4024
4024
  ), l = NA(s.date);
4025
- return VA(o, s.payee) || VA(o, s.feed_description) || VA(o, s.category) || VA(o, J(l, U.MONTH)) || VA(o, J(l, U.DAY)) || VA(o, J(l, U.FULL_MONTH_DAY)) || VA(o, J(l, U.MONTH_DAY_YEAR)) || VA(o, JA(l, ts)) || VA(o, s.account) || VA(o, `${s.amount}`) || VA(o, s.memo) || u;
4025
+ return VA(o, s.payee) || VA(o, s.feed_description) || VA(o, s.category) || VA(o, V(l, U.MONTH)) || VA(o, V(l, U.DAY)) || VA(o, V(l, U.FULL_MONTH_DAY)) || VA(o, V(l, U.MONTH_DAY_YEAR)) || VA(o, JA(l, ts)) || VA(o, s.account) || VA(o, `${s.amount}`) || VA(o, s.memo) || u;
4026
4026
  });
4027
4027
  }, Ec = (A, e, n) => [...A].sort((r, a) => {
4028
4028
  const i = e, o = (r[i] || "") > (a[i] || "");
@@ -4111,7 +4111,7 @@ class Ic {
4111
4111
  transactionRules = [];
4112
4112
  transactions = [];
4113
4113
  associatedBeats = [];
4114
- cachedStartDate = ne($(), 90);
4114
+ cachedStartDate = ne(Z(), 90);
4115
4115
  onAnalyticEvent = fc;
4116
4116
  sortColumn = gn.DATE;
4117
4117
  sortDirection = Ga.DESC;
@@ -4164,7 +4164,7 @@ class Ic {
4164
4164
  };
4165
4165
  addTransaction = async (e) => {
4166
4166
  const n = await this.api.addTransaction(e);
4167
- n && nA(
4167
+ n && tA(
4168
4168
  () => this.transactions = this.augmentTransactions([n, ...this.transactions])
4169
4169
  );
4170
4170
  };
@@ -4176,19 +4176,19 @@ class Ic {
4176
4176
  );
4177
4177
  loadAssociatedBeats = async (e) => {
4178
4178
  const n = e ? Ln(e, { representation: "date" }) : void 0, r = await this.beatApi.getBeatsWithAssociatedTransaction(n);
4179
- nA(() => this.associatedBeats = r);
4179
+ tA(() => this.associatedBeats = r);
4180
4180
  };
4181
4181
  loadTags = async () => {
4182
4182
  const e = await this.api.getTags();
4183
- nA(() => this.tags = e);
4183
+ tA(() => this.tags = e);
4184
4184
  };
4185
4185
  loadTaggings = async () => {
4186
4186
  const e = await this.api.getTaggings();
4187
- nA(() => this.taggings = e);
4187
+ tA(() => this.taggings = e);
4188
4188
  };
4189
4189
  loadTransactionRules = async () => {
4190
4190
  const e = await this.api.getTransactionRules();
4191
- nA(() => this.transactionRules = e);
4191
+ tA(() => this.transactionRules = e);
4192
4192
  };
4193
4193
  loadTransactions = async (e = this.cachedStartDate, n = ze()) => {
4194
4194
  this.setIsLoading(!0), this.transactions = [];
@@ -4197,7 +4197,7 @@ class Ic {
4197
4197
  gA(e),
4198
4198
  gA(n)
4199
4199
  );
4200
- nA(() => {
4200
+ tA(() => {
4201
4201
  this.transactions = this.augmentTransactions(r);
4202
4202
  });
4203
4203
  } catch (r) {
@@ -4223,7 +4223,7 @@ class Ic {
4223
4223
  const n = this.transactions.findIndex((r) => r.guid === e);
4224
4224
  if (n >= 0) {
4225
4225
  const r = [...this.transactions];
4226
- r.splice(n, 1), nA(() => this.transactions = r);
4226
+ r.splice(n, 1), tA(() => this.transactions = r);
4227
4227
  }
4228
4228
  };
4229
4229
  setFilter = (e) => {
@@ -4242,7 +4242,7 @@ class Ic {
4242
4242
  a.push(s);
4243
4243
  }
4244
4244
  const i = this.transactions.findIndex((o) => o.guid === e.guid);
4245
- i >= 0 && nA(
4245
+ i >= 0 && tA(
4246
4246
  () => this.transactions = this.augmentTransactions([
4247
4247
  ...this.transactions.slice(0, i),
4248
4248
  r,
@@ -4260,7 +4260,7 @@ class Ic {
4260
4260
  s >= 0 && r.splice(s, 1);
4261
4261
  });
4262
4262
  const a = r.findIndex((o) => o.guid === e), i = r[a];
4263
- i.has_been_split = !1, a >= 0 && nA(
4263
+ i.has_been_split = !1, a >= 0 && tA(
4264
4264
  () => this.transactions = [
4265
4265
  ...r.slice(0, a),
4266
4266
  i,
@@ -4284,7 +4284,7 @@ class Ic {
4284
4284
  };
4285
4285
  updateTransaction = async (e) => {
4286
4286
  const n = await this.api.updateTransaction(e), r = this.transactions.findIndex((a) => a.guid === e.guid);
4287
- r >= 0 && nA(
4287
+ r >= 0 && tA(
4288
4288
  () => this.transactions = this.augmentTransactions([
4289
4289
  ...this.transactions.slice(0, r),
4290
4290
  n,
@@ -4318,9 +4318,9 @@ const UA = () => {
4318
4318
  disableTypography: !0,
4319
4319
  secondary: /* @__PURE__ */ d(w, { direction: "row", justifyContent: "space-between", children: [
4320
4320
  /* @__PURE__ */ d(w, { alignItems: "center", direction: "row", gap: 4, children: [
4321
- A.is_flagged && /* @__PURE__ */ t(N, { fill: !0, name: "flag", size: 16, sx: { color: "warning.dark" } }),
4322
- A.is_hidden && /* @__PURE__ */ t(N, { name: "visibility_off", size: 16 }),
4323
- A.has_been_split && /* @__PURE__ */ t(N, { name: "call_split", size: 16 }),
4321
+ A.is_flagged && /* @__PURE__ */ t(P, { fill: !0, name: "flag", size: 16, sx: { color: "warning.dark" } }),
4322
+ A.is_hidden && /* @__PURE__ */ t(P, { name: "visibility_off", size: 16 }),
4323
+ A.has_been_split && /* @__PURE__ */ t(P, { name: "call_split", size: 16 }),
4324
4324
  /* @__PURE__ */ t(y, { variant: "XSmall", children: A.has_been_split ? r.split_transaction_category_label : A.category })
4325
4325
  ] }),
4326
4326
  o && a && /* @__PURE__ */ t(y, { bold: !0, color: "action.active", variant: "XSmall", children: o.short_title })
@@ -4359,15 +4359,15 @@ const UA = () => {
4359
4359
  }, Gn = (A) => {
4360
4360
  const e = dt(A);
4361
4361
  let n = dn(A, e);
4362
- for (; hA(n, $()); )
4362
+ for (; hA(n, Z()); )
4363
4363
  n = Fe(n, 1);
4364
4364
  return n;
4365
4365
  }, Pc = (A) => {
4366
4366
  const e = Gn(A);
4367
4367
  return Fe(e, 1);
4368
4368
  }, xr = (A) => {
4369
- let e = un($(), A.getDate());
4370
- for (; hA(e, $()); )
4369
+ let e = un(Z(), A.getDate());
4370
+ for (; hA(e, Z()); )
4371
4371
  e = YA(e, 1);
4372
4372
  return e;
4373
4373
  }, Nc = (A) => {
@@ -4375,7 +4375,7 @@ const UA = () => {
4375
4375
  return YA(e, 1);
4376
4376
  }, Qa = (A) => {
4377
4377
  let e = Ne(A, 1);
4378
- for (; hA(e, $()); )
4378
+ for (; hA(e, Z()); )
4379
4379
  e = Ne(e, 1);
4380
4380
  return e;
4381
4381
  }, Mc = (A) => {
@@ -4384,7 +4384,7 @@ const UA = () => {
4384
4384
  }, Rc = (A) => ct(A, 1), st = (A) => {
4385
4385
  const e = NA(A);
4386
4386
  return new Date(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate());
4387
- }, jt = (A) => J(NA(A), U.DAY_OF_WEEK_MONTH_DAY), Pr = 65, Nr = 34, Hc = ({
4387
+ }, jt = (A) => V(NA(A), U.DAY_OF_WEEK_MONTH_DAY), Pr = 65, Nr = 34, Hc = ({
4388
4388
  bgcolor: A,
4389
4389
  height: e = "calc(100dvh - 36px)",
4390
4390
  loader: n = /* @__PURE__ */ t(pe, { label: "Loading", size: 40 }),
@@ -4394,7 +4394,7 @@ const UA = () => {
4394
4394
  width: o = "100%",
4395
4395
  zeroState: s = /* @__PURE__ */ t(Oc, {})
4396
4396
  }) => {
4397
- const { isLoading: c, sortedTransactions: u } = cA(), { setShowInsights: l, toggleSplit: h } = UA(), { onEvent: C } = V(), f = (E) => {
4397
+ const { isLoading: c, sortedTransactions: u } = cA(), { setShowInsights: l, toggleSplit: h } = UA(), { onEvent: C } = Y(), f = (E) => {
4398
4398
  const T = u.find((S) => S.guid === E);
4399
4399
  if (T?.has_been_split) {
4400
4400
  h(T.guid);
@@ -4470,13 +4470,13 @@ const UA = () => {
4470
4470
  onMouseLeave: () => r(!1),
4471
4471
  width: "100%",
4472
4472
  children: [
4473
- A.row.has_been_split && /* @__PURE__ */ t(N, { name: "call_split", size: 16 }),
4473
+ A.row.has_been_split && /* @__PURE__ */ t(P, { name: "call_split", size: 16 }),
4474
4474
  /* @__PURE__ */ t(y, { tabIndex: A.tabIndex, variant: "Small", children: A.row.has_been_split ? e.split_transaction_category_label : A.row.category }),
4475
- !A.row.has_been_split && n && /* @__PURE__ */ t(N, { name: "edit", sx: { color: "action.active" } })
4475
+ !A.row.has_been_split && n && /* @__PURE__ */ t(P, { name: "edit", sx: { color: "action.active" } })
4476
4476
  ]
4477
4477
  }
4478
4478
  );
4479
- }, Bc = I(Kc), _c = (A) => /* @__PURE__ */ t(y, { tabIndex: A.tabIndex, variant: "Small", children: J(NA(A.row.date), U.MONTH_DAY) }), kc = (A) => {
4479
+ }, Bc = I(Kc), _c = (A) => /* @__PURE__ */ t(y, { tabIndex: A.tabIndex, variant: "Small", children: V(NA(A.row.date), U.MONTH_DAY) }), kc = (A) => {
4480
4480
  const e = Ke(), { transactions: n } = b(), { is_flagged: r, is_hidden: a, has_been_viewed: i, parent_guid: o } = A.row, c = !i && !!!o;
4481
4481
  return /* @__PURE__ */ d(
4482
4482
  D,
@@ -4484,8 +4484,8 @@ const UA = () => {
4484
4484
  "aria-label": a ? n.is_hidden : n.is_flagged,
4485
4485
  tabIndex: A.tabIndex,
4486
4486
  children: [
4487
- r && /* @__PURE__ */ t(N, { fill: !0, name: "flag", size: 16, sx: { color: "warning.dark" } }),
4488
- !r && a && /* @__PURE__ */ t(N, { name: "visibility_off", size: 16 }),
4487
+ r && /* @__PURE__ */ t(P, { fill: !0, name: "flag", size: 16, sx: { color: "warning.dark" } }),
4488
+ !r && a && /* @__PURE__ */ t(P, { name: "visibility_off", size: 16 }),
4489
4489
  c && /* @__PURE__ */ t(
4490
4490
  "svg",
4491
4491
  {
@@ -4665,14 +4665,14 @@ const jc = ({
4665
4665
  }
4666
4666
  );
4667
4667
  }, Xn = I(jc), Uc = ({ parentCategory: A }) => {
4668
- const [e, n] = g.useState(!1), { addCategory: r } = xA(), { categories: a } = b(), { onEvent: i } = V(), { setShouldDisableDrawerScroll: o } = _e(), s = async (l) => {
4668
+ const [e, n] = g.useState(!1), { addCategory: r } = xA(), { categories: a } = b(), { onEvent: i } = Y(), { setShouldDisableDrawerScroll: o } = _e(), s = async (l) => {
4669
4669
  await r(l.trim(), A.guid), i(Ae.ON_SUBCATEGORY_ADDED), n(!1);
4670
4670
  }, c = async () => {
4671
4671
  i(Ae.ON_SUBCATEGORY_ADD_CLICK), o(!0), n(!0);
4672
4672
  }, u = () => {
4673
4673
  n(!1), i(Ae.ON_SUBCATEGORY_ADD_CANCEL_CLICK);
4674
4674
  };
4675
- return /* @__PURE__ */ d(Z, { disableGutters: !0, disablePadding: !0, children: [
4675
+ return /* @__PURE__ */ d(J, { disableGutters: !0, disablePadding: !0, children: [
4676
4676
  /* @__PURE__ */ t(dA, { onClick: c, sx: { ml: 60 }, children: /* @__PURE__ */ t(
4677
4677
  lA,
4678
4678
  {
@@ -4695,7 +4695,7 @@ const jc = ({
4695
4695
  subCategory: e,
4696
4696
  showRename: n
4697
4697
  }) => {
4698
- const { updateCategory: r } = xA(), { onEvent: a } = V(), i = async (s) => {
4698
+ const { updateCategory: r } = xA(), { onEvent: a } = Y(), i = async (s) => {
4699
4699
  await r({ ...e, name: s }), a(Ae.ON_SUBCATEGORY_SAVED), A(!1);
4700
4700
  }, o = () => {
4701
4701
  A(!1), a(Ae.ON_SUBCATEGORY_EDIT_CANCEL_CLICK);
@@ -4716,7 +4716,7 @@ const jc = ({
4716
4716
  setShowDelete: n,
4717
4717
  subCategory: r
4718
4718
  }) => {
4719
- const { onEvent: a } = V(), { removeCategory: i } = xA(), o = () => {
4719
+ const { onEvent: a } = Y(), { removeCategory: i } = xA(), o = () => {
4720
4720
  n(!1), a(Ae.ON_SUBCATEGORY_DELETE_CLICK);
4721
4721
  }, s = async () => {
4722
4722
  a(Ae.ON_SUBCATEGORY_DELETED), await i(r.guid), n(!1);
@@ -4740,9 +4740,9 @@ const jc = ({
4740
4740
  showSelected: o,
4741
4741
  unselectable: s,
4742
4742
  unselectableText: c
4743
- } = _e(), { categories: u } = b(), { onEvent: l } = V(), [h, C] = g.useState(!1), [f, v] = g.useState(!1), p = !!e.revision, E = e.guid === r, T = !s.some((L) => L === e.guid);
4743
+ } = _e(), { categories: u } = b(), { onEvent: l } = Y(), [h, C] = g.useState(!1), [f, v] = g.useState(!1), p = !!e.revision, E = e.guid === r, T = !s.some((L) => L === e.guid);
4744
4744
  return /* @__PURE__ */ d(
4745
- Z,
4745
+ J,
4746
4746
  {
4747
4747
  className: "mx-cat-subcategory-row",
4748
4748
  disableGutters: !0,
@@ -4841,12 +4841,12 @@ const jc = ({
4841
4841
  }
4842
4842
  );
4843
4843
  }, tl = I(el), nl = ({ category: A, subCategories: e }) => {
4844
- const { expandedGuid: n, searchValue: r, setExpandedGuid: a } = _e(), { onEvent: i } = V(), o = A.guid === n, s = () => {
4844
+ const { expandedGuid: n, searchValue: r, setExpandedGuid: a } = _e(), { onEvent: i } = Y(), o = A.guid === n, s = () => {
4845
4845
  const c = A.guid !== n ? A.guid : null;
4846
4846
  a(c), i(c ? Ae.ON_CATEGORY_EXPANDED : Ae.ON_CATEGORY_COLLAPSED);
4847
4847
  };
4848
4848
  return /* @__PURE__ */ d(g.Fragment, { children: [
4849
- /* @__PURE__ */ t(Z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(
4849
+ /* @__PURE__ */ t(J, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(
4850
4850
  dA,
4851
4851
  {
4852
4852
  "aria-controls": `subcategories-${A.guid}`,
@@ -5037,7 +5037,7 @@ class ul {
5037
5037
  const s = Ce(n, o), c = Number(JA(s, "yyyyMM"));
5038
5038
  i.push({
5039
5039
  timestamp: gA(s),
5040
- label: J(s, U.MONTH_YEAR),
5040
+ label: V(s, U.MONTH_YEAR),
5041
5041
  total: a[c] !== void 0 ? a[c].reduce((u, l) => u + l.total, 0) : 0
5042
5042
  });
5043
5043
  }
@@ -5046,7 +5046,7 @@ class ul {
5046
5046
  loadCategories = async () => {
5047
5047
  try {
5048
5048
  const e = await this.api.getCategories(), { default_categories: n } = this.globalStore.copyStore.copy.categories;
5049
- nA(() => {
5049
+ tA(() => {
5050
5050
  this.categories = e.map((r) => ({
5051
5051
  ...r,
5052
5052
  name: n[r.guid] ? n[r.guid].replace(/&amp;/g, "&") : r.name
@@ -5064,7 +5064,7 @@ class ul {
5064
5064
  gA(r),
5065
5065
  e
5066
5066
  );
5067
- nA(() => {
5067
+ tA(() => {
5068
5068
  this.dateRangeCategoryTotals = a, this.detailedCategories = this.augmentCategories(), this.setIsLoadingCategoryTotals(!1);
5069
5069
  });
5070
5070
  } catch (a) {
@@ -5075,7 +5075,7 @@ class ul {
5075
5075
  const a = gA(EA(n ?? Ce(/* @__PURE__ */ new Date(), 5))), i = gA(DA(r ?? /* @__PURE__ */ new Date()));
5076
5076
  try {
5077
5077
  const o = await this.api.getMonthlyCategoryTotals(a, i, e);
5078
- nA(() => {
5078
+ tA(() => {
5079
5079
  this.monthlyCategoryTotals = o, this.detailedCategories = this.augmentCategories();
5080
5080
  });
5081
5081
  } catch (o) {
@@ -5101,7 +5101,7 @@ class ul {
5101
5101
  };
5102
5102
  }
5103
5103
  const Fa = ({ transaction: A }) => {
5104
- const { addOrUpdateTransactionRule: e, updateTransaction: n } = cA(), { categories: r } = xA(), { onEvent: a } = V(), { setShouldDisableDrawerScroll: i, updateManualTransaction: o } = UA(), { transactions: s } = b(), [c, u] = g.useState(!1), [l, h] = g.useState(""), C = async (E) => {
5104
+ const { addOrUpdateTransactionRule: e, updateTransaction: n } = cA(), { categories: r } = xA(), { onEvent: a } = Y(), { setShouldDisableDrawerScroll: i, updateManualTransaction: o } = UA(), { transactions: s } = b(), [c, u] = g.useState(!1), [l, h] = g.useState(""), C = async (E) => {
5105
5105
  await n({ ...A, category_guid: l }), E && await e(l, A), h(""), a(Q.TRANSACTION_DETAILS_CLICK_CATEGORY, {
5106
5106
  transaction_guid: A.guid
5107
5107
  });
@@ -5124,7 +5124,7 @@ const Fa = ({ transaction: A }) => {
5124
5124
  [l]
5125
5125
  );
5126
5126
  return /* @__PURE__ */ d(g.Fragment, { children: [
5127
- /* @__PURE__ */ t(Z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(
5127
+ /* @__PURE__ */ t(J, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(
5128
5128
  dA,
5129
5129
  {
5130
5130
  onClick: () => {
@@ -5148,7 +5148,7 @@ const Fa = ({ transaction: A }) => {
5148
5148
  secondary: /* @__PURE__ */ t(y, { bold: !0, variant: "Body", children: A.category ?? s.actions_select_a_category })
5149
5149
  }
5150
5150
  ),
5151
- /* @__PURE__ */ t(re, { children: /* @__PURE__ */ t(N, { name: "chevron_right", weight: qA.Dark }) })
5151
+ /* @__PURE__ */ t(re, { children: /* @__PURE__ */ t(P, { name: "chevron_right", weight: qA.Dark }) })
5152
5152
  ]
5153
5153
  }
5154
5154
  ) }),
@@ -5186,7 +5186,7 @@ const Fa = ({ transaction: A }) => {
5186
5186
  )
5187
5187
  ] });
5188
5188
  }, ja = ({ transaction: A }) => {
5189
- const e = yA(), { onEvent: n } = V(), { updateTransaction: r } = cA(), { updateManualTransaction: a } = UA(), { common: i, transactions: o } = b(), [s, c] = g.useState(!1), [u, l] = g.useState(A.date), h = (f) => {
5189
+ const e = yA(), { onEvent: n } = Y(), { updateTransaction: r } = cA(), { updateManualTransaction: a } = UA(), { common: i, transactions: o } = b(), [s, c] = g.useState(!1), [u, l] = g.useState(A.date), h = (f) => {
5190
5190
  l(gA(f));
5191
5191
  }, C = async () => {
5192
5192
  if (A.is_manual && !A.guid) {
@@ -5196,23 +5196,23 @@ const Fa = ({ transaction: A }) => {
5196
5196
  await r({ ...A, date: u }), n(Q.TRANSACTION_DETAILS_CLICK_DATE, { transaction_guid: A.guid }), c(!1);
5197
5197
  };
5198
5198
  return /* @__PURE__ */ d(D, { className: "mx-txn-date-action", children: [
5199
- /* @__PURE__ */ t(Z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(
5199
+ /* @__PURE__ */ t(J, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(
5200
5200
  dA,
5201
5201
  {
5202
5202
  onClick: () => {
5203
5203
  n(R.ON_TRANSACTION_DATE_CLICK), c(!0);
5204
5204
  },
5205
5205
  children: [
5206
- /* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(me, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(N, { name: "calendar_month", sx: { color: "text.primary" }, weight: qA.Dark }) }) }),
5206
+ /* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(me, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(P, { name: "calendar_month", sx: { color: "text.primary" }, weight: qA.Dark }) }) }),
5207
5207
  /* @__PURE__ */ t(
5208
5208
  lA,
5209
5209
  {
5210
5210
  primary: o.date_title,
5211
5211
  primaryTypographyProps: { variant: "XSmall" },
5212
- secondary: /* @__PURE__ */ t(y, { bold: !0, variant: "Body", children: J(NA(A.date), U.YEAR_MONTH_DAY) })
5212
+ secondary: /* @__PURE__ */ t(y, { bold: !0, variant: "Body", children: V(NA(A.date), U.YEAR_MONTH_DAY) })
5213
5213
  }
5214
5214
  ),
5215
- /* @__PURE__ */ t(re, { children: /* @__PURE__ */ t(N, { name: "chevron_right", weight: qA.Dark }) })
5215
+ /* @__PURE__ */ t(re, { children: /* @__PURE__ */ t(P, { name: "chevron_right", weight: qA.Dark }) })
5216
5216
  ]
5217
5217
  }
5218
5218
  ) }),
@@ -5243,11 +5243,11 @@ const Fa = ({ transaction: A }) => {
5243
5243
  )
5244
5244
  ] });
5245
5245
  }, hl = ({ transaction: A }) => {
5246
- const { onEvent: e } = V(), { removeTransaction: n } = cA(), { setShouldDisableDrawerScroll: r } = UA(), { common: a, transactions: i } = b(), [o, s] = g.useState(!1), c = async () => {
5246
+ const { onEvent: e } = Y(), { removeTransaction: n } = cA(), { setShouldDisableDrawerScroll: r } = UA(), { common: a, transactions: i } = b(), [o, s] = g.useState(!1), c = async () => {
5247
5247
  await n(A.guid), e(R.ON_TRANSACTION_DELETE_DELETED);
5248
5248
  };
5249
5249
  return /* @__PURE__ */ d(D, { className: "mx-txn-delete", children: [
5250
- A && /* @__PURE__ */ t(Z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(
5250
+ A && /* @__PURE__ */ t(J, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(
5251
5251
  dA,
5252
5252
  {
5253
5253
  onClick: () => {
@@ -5283,22 +5283,22 @@ const Fa = ({ transaction: A }) => {
5283
5283
  )
5284
5284
  ] });
5285
5285
  }, gl = I(hl), Cl = ({ transaction: A }) => {
5286
- const { onEvent: e } = V(), { updateTransaction: n } = cA(), { setShouldDisableDrawerScroll: r } = UA(), { common: a, transactions: i } = b(), [o, s] = g.useState(!1), c = async () => {
5286
+ const { onEvent: e } = Y(), { updateTransaction: n } = cA(), { setShouldDisableDrawerScroll: r } = UA(), { common: a, transactions: i } = b(), [o, s] = g.useState(!1), c = async () => {
5287
5287
  await n({ ...A, merchant_guid: "" }), e(Q.TRANSACTION_DETAILS_CLICK_DELETE_LOGO, {
5288
5288
  transaction_guid: A.guid
5289
5289
  });
5290
5290
  };
5291
5291
  return /* @__PURE__ */ d(D, { className: "mx-txn-delete-logo", children: [
5292
- A && /* @__PURE__ */ t(Z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(
5292
+ A && /* @__PURE__ */ t(J, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(
5293
5293
  dA,
5294
5294
  {
5295
5295
  onClick: () => {
5296
5296
  e(R.ON_TRANSACTION_DELETE_LOGO_CLICK), s(!0);
5297
5297
  },
5298
5298
  children: [
5299
- /* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(me, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(N, { name: "delete", sx: { color: "text.primary" }, weight: qA.Dark }) }) }),
5299
+ /* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(me, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(P, { name: "delete", sx: { color: "text.primary" }, weight: qA.Dark }) }) }),
5300
5300
  /* @__PURE__ */ t(lA, { primary: i.merchant_logo_title, secondary: i.merchant_logo_desc }),
5301
- /* @__PURE__ */ t(re, { children: /* @__PURE__ */ t(N, { name: "chevron_right", weight: qA.Dark }) })
5301
+ /* @__PURE__ */ t(re, { children: /* @__PURE__ */ t(P, { name: "chevron_right", weight: qA.Dark }) })
5302
5302
  ]
5303
5303
  }
5304
5304
  ) }),
@@ -5323,13 +5323,13 @@ const Fa = ({ transaction: A }) => {
5323
5323
  )
5324
5324
  ] });
5325
5325
  }, fl = I(Cl), vl = ({ transaction: A }) => {
5326
- const { onEvent: e } = V(), { updateTransaction: n } = cA(), { setShouldDisableDrawerScroll: r } = UA(), { common: a, transactions: i } = b(), [o, s] = g.useState(!1), c = A.is_hidden, u = async () => {
5326
+ const { onEvent: e } = Y(), { updateTransaction: n } = cA(), { setShouldDisableDrawerScroll: r } = UA(), { common: a, transactions: i } = b(), [o, s] = g.useState(!1), c = A.is_hidden, u = async () => {
5327
5327
  await n({ ...A, is_hidden: !A.is_hidden }), e(
5328
5328
  c ? R.ON_TRANSACTION_UNHIDDEN : R.ON_TRANSACTION_HIDDEN
5329
5329
  );
5330
5330
  };
5331
5331
  return /* @__PURE__ */ d(D, { className: "mx-txn-hide-transaction", children: [
5332
- A && /* @__PURE__ */ t(Z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(
5332
+ A && /* @__PURE__ */ t(J, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(
5333
5333
  dA,
5334
5334
  {
5335
5335
  "aria-checked": c,
@@ -5346,13 +5346,13 @@ const Fa = ({ transaction: A }) => {
5346
5346
  role: "switch",
5347
5347
  children: [
5348
5348
  /* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(me, { sx: { bgcolor: "border.light" }, variant: "rounded", children: c ? /* @__PURE__ */ t(
5349
- N,
5349
+ P,
5350
5350
  {
5351
5351
  name: "visibilityOff",
5352
5352
  sx: { color: "text.primary" },
5353
5353
  weight: qA.Dark
5354
5354
  }
5355
- ) : /* @__PURE__ */ t(N, { name: "visibility", sx: { color: "text.primary" }, weight: qA.Dark }) }) }),
5355
+ ) : /* @__PURE__ */ t(P, { name: "visibility", sx: { color: "text.primary" }, weight: qA.Dark }) }) }),
5356
5356
  /* @__PURE__ */ t(
5357
5357
  lA,
5358
5358
  {
@@ -5412,7 +5412,7 @@ const Fa = ({ transaction: A }) => {
5412
5412
  ] })
5413
5413
  ] });
5414
5414
  }, pl = ({ transaction: A }) => {
5415
- const { onEvent: e } = V(), { updateTransaction: n } = cA(), { updateManualTransaction: r } = UA(), { common: a, transactions: i } = b(), [o, s] = g.useState(!1), [c, u] = g.useState("");
5415
+ const { onEvent: e } = Y(), { updateTransaction: n } = cA(), { updateManualTransaction: r } = UA(), { common: a, transactions: i } = b(), [o, s] = g.useState(!1), [c, u] = g.useState("");
5416
5416
  g.useEffect(() => {
5417
5417
  o && u(A.memo ? A.memo : "");
5418
5418
  }, [o]);
@@ -5424,14 +5424,14 @@ const Fa = ({ transaction: A }) => {
5424
5424
  await n({ ...A, memo: c }), e(Q.TRANSACTION_DETAILS_CLICK_MEMO, { transaction_guid: A.guid }), s(!1);
5425
5425
  };
5426
5426
  return /* @__PURE__ */ d("div", { className: "mx-txn-memo-action", children: [
5427
- /* @__PURE__ */ t(Z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(
5427
+ /* @__PURE__ */ t(J, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(
5428
5428
  dA,
5429
5429
  {
5430
5430
  onClick: () => {
5431
5431
  e(R.ON_TRANSACTION_MEMO_CLICK), s(!0);
5432
5432
  },
5433
5433
  children: [
5434
- /* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(me, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(N, { name: "article", sx: { color: "text.primary" }, weight: qA.Dark }) }) }),
5434
+ /* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(me, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(P, { name: "article", sx: { color: "text.primary" }, weight: qA.Dark }) }) }),
5435
5435
  /* @__PURE__ */ t(
5436
5436
  lA,
5437
5437
  {
@@ -5440,7 +5440,7 @@ const Fa = ({ transaction: A }) => {
5440
5440
  secondary: /* @__PURE__ */ t(y, { bold: !0, variant: "Body", children: A.memo ? A.memo : i.memo_desc })
5441
5441
  }
5442
5442
  ),
5443
- /* @__PURE__ */ t(re, { children: /* @__PURE__ */ t(N, { name: "chevron_right", weight: qA.Dark }) })
5443
+ /* @__PURE__ */ t(re, { children: /* @__PURE__ */ t(P, { name: "chevron_right", weight: qA.Dark }) })
5444
5444
  ]
5445
5445
  }
5446
5446
  ) }),
@@ -5479,7 +5479,7 @@ const Fa = ({ transaction: A }) => {
5479
5479
  onUpdateAmount: r,
5480
5480
  split: a
5481
5481
  }) => {
5482
- const i = yA(), { onEvent: o } = V(), { transactions: s } = b(), [c, u] = g.useState(`${a.amount}`), [l, h] = g.useState(!1), C = A === 0, f = (v) => {
5482
+ const i = yA(), { onEvent: o } = Y(), { transactions: s } = b(), [c, u] = g.useState(`${a.amount}`), [l, h] = g.useState(!1), C = A === 0, f = (v) => {
5483
5483
  isNaN(Number(v)) || (u(v), r(A, Number(v)));
5484
5484
  };
5485
5485
  return /* @__PURE__ */ d(
@@ -5581,7 +5581,7 @@ const Fa = ({ transaction: A }) => {
5581
5581
  splits: a,
5582
5582
  transaction: i
5583
5583
  }) => {
5584
- const o = yA(), { transactions: s } = b(), { onEvent: c } = V(), [u, l] = g.useState("");
5584
+ const o = yA(), { transactions: s } = b(), { onEvent: c } = Y(), [u, l] = g.useState("");
5585
5585
  return g.useEffect(() => {
5586
5586
  l(a.length <= 1 ? s.split_transaction_errors_min_splits : ""), l(
5587
5587
  a[0].amount < 0 ? z(
@@ -5626,7 +5626,7 @@ const Fa = ({ transaction: A }) => {
5626
5626
  ) })
5627
5627
  ] });
5628
5628
  }, Ll = I(wl), Tl = ({ transaction: A }) => {
5629
- const { onEvent: e } = V(), { splitTransaction: n, unSplitTransaction: r } = cA(), { common: a, transactions: i } = b(), { setShouldDisableDrawerScroll: o } = UA(), { categories: s } = xA(), c = {
5629
+ const { onEvent: e } = Y(), { splitTransaction: n, unSplitTransaction: r } = cA(), { common: a, transactions: i } = b(), { setShouldDisableDrawerScroll: o } = UA(), { categories: s } = xA(), c = {
5630
5630
  ...A,
5631
5631
  amount: A.amount - 1,
5632
5632
  guid: "",
@@ -5646,23 +5646,23 @@ const Fa = ({ transaction: A }) => {
5646
5646
  _.push({ ...u }), _[0].amount -= 1, p(_);
5647
5647
  }, T = (_) => {
5648
5648
  if (_ > 0) {
5649
- const G = v[_], k = [...v];
5650
- k.splice(_, 1), k[0].amount += G.amount, p(k);
5649
+ const k = v[_], G = [...v];
5650
+ G.splice(_, 1), G[0].amount += k.amount, p(G);
5651
5651
  }
5652
- }, S = (_, G) => {
5653
- const k = [...v];
5654
- k[_].amount = G, k[0].amount = A.amount - k.reduce(
5655
- (P, W, rA) => P + (rA !== 0 ? W.amount : 0),
5652
+ }, S = (_, k) => {
5653
+ const G = [...v];
5654
+ G[_].amount = k, G[0].amount = A.amount - G.reduce(
5655
+ (M, nA, rA) => M + (rA !== 0 ? nA.amount : 0),
5656
5656
  0
5657
- ), p(k);
5658
- }, L = (_, G) => {
5659
- const k = [...v], P = s.find((W) => W.guid === G);
5660
- P && (k[_] = {
5661
- ...k[_],
5662
- category_guid: G,
5663
- category: P.name,
5664
- top_level_category_guid: P.parent_guid || G
5665
- }, p(k));
5657
+ ), p(G);
5658
+ }, L = (_, k) => {
5659
+ const G = [...v], M = s.find((nA) => nA.guid === k);
5660
+ M && (G[_] = {
5661
+ ...G[_],
5662
+ category_guid: k,
5663
+ category: M.name,
5664
+ top_level_category_guid: M.parent_guid || k
5665
+ }, p(G));
5666
5666
  }, O = () => {
5667
5667
  if (A.parent_guid || A.has_been_split) {
5668
5668
  f(!0);
@@ -5671,7 +5671,7 @@ const Fa = ({ transaction: A }) => {
5671
5671
  p([{ ...c }, { ...u }]), e(Q.TRANSACTION_DETAILS_CLICK_SPLIT, {
5672
5672
  transaction_guid: A.guid
5673
5673
  }), h(!0);
5674
- }, M = async () => {
5674
+ }, N = async () => {
5675
5675
  e(R.ON_TRANSACTION_SPLIT_SAVE_CLICK), await n({ ...A, has_been_split: !0 }, v), h(!1);
5676
5676
  }, x = async () => {
5677
5677
  e(R.ON_TRANSACTION_SPLIT_CANCEL_CLICK), p([{ ...c }, { ...u }]), h(!1);
@@ -5682,12 +5682,12 @@ const Fa = ({ transaction: A }) => {
5682
5682
  const _ = A.parent_guid ?? A.guid;
5683
5683
  await r(_);
5684
5684
  }, B = g.useMemo(() => {
5685
- const _ = v.some((k) => !k.category_guid), G = v.some((k) => k.amount <= 0);
5686
- return _ || G;
5685
+ const _ = v.some((G) => !G.category_guid), k = v.some((G) => G.amount <= 0);
5686
+ return _ || k;
5687
5687
  }, [v]);
5688
5688
  return /* @__PURE__ */ d(g.Fragment, { children: [
5689
- A && /* @__PURE__ */ t(Z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(dA, { onClick: O, children: [
5690
- /* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(me, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(N, { name: "call_split", sx: { color: "text.primary" }, weight: qA.Dark }) }) }),
5689
+ A && /* @__PURE__ */ t(J, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(dA, { onClick: O, children: [
5690
+ /* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(me, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(P, { name: "call_split", sx: { color: "text.primary" }, weight: qA.Dark }) }) }),
5691
5691
  /* @__PURE__ */ t(
5692
5692
  lA,
5693
5693
  {
@@ -5695,7 +5695,7 @@ const Fa = ({ transaction: A }) => {
5695
5695
  secondary: A.has_been_split || A.parent_guid ? i.split_transaction_unsplit_subtitle : i.split_transaction_desc
5696
5696
  }
5697
5697
  ),
5698
- /* @__PURE__ */ t(re, { children: A.has_been_split || A.parent_guid ? /* @__PURE__ */ t(N, { name: "delete", weight: qA.Dark }) : /* @__PURE__ */ t(N, { name: "chevron_right", weight: qA.Dark }) })
5698
+ /* @__PURE__ */ t(re, { children: A.has_been_split || A.parent_guid ? /* @__PURE__ */ t(P, { name: "delete", weight: qA.Dark }) : /* @__PURE__ */ t(P, { name: "chevron_right", weight: qA.Dark }) })
5699
5699
  ] }) }),
5700
5700
  /* @__PURE__ */ d(
5701
5701
  uA,
@@ -5704,7 +5704,7 @@ const Fa = ({ transaction: A }) => {
5704
5704
  isOpen: l,
5705
5705
  isPrimaryDisabled: B,
5706
5706
  onClose: x,
5707
- onPrimaryAction: M,
5707
+ onPrimaryAction: N,
5708
5708
  primaryText: a.save_button,
5709
5709
  secondaryText: a.cancel_button,
5710
5710
  title: i.split_transaction_title,
@@ -5746,7 +5746,7 @@ const Fa = ({ transaction: A }) => {
5746
5746
  )
5747
5747
  ] });
5748
5748
  }, Sl = I(Tl), Il = () => {
5749
- const A = CA(), { onEvent: e } = V(), { addTag: n } = cA(), { transactions: r } = b(), [a, i] = g.useState(!1), [o, s] = g.useState(""), [c, u] = g.useState(""), l = g.useRef(null);
5749
+ const A = CA(), { onEvent: e } = Y(), { addTag: n } = cA(), { transactions: r } = b(), [a, i] = g.useState(!1), [o, s] = g.useState(""), [c, u] = g.useState(""), l = g.useRef(null);
5750
5750
  g.useEffect(() => {
5751
5751
  a && l?.current?.focus();
5752
5752
  }, [a]);
@@ -5833,7 +5833,7 @@ const Fa = ({ transaction: A }) => {
5833
5833
  }
5834
5834
  ) });
5835
5835
  }, Ol = I(Dl), xl = ({ onTagChecked: A, selectedTags: e, tag: n }) => {
5836
- const { onEvent: r } = V(), { removeTag: a, updateTag: i } = cA(), { common: o, transactions: s } = b(), [c, u] = g.useState(!1), [l, h] = g.useState(!1), [C, f] = g.useState(""), [v, p] = g.useState(""), E = async () => {
5836
+ const { onEvent: r } = Y(), { removeTag: a, updateTag: i } = cA(), { common: o, transactions: s } = b(), [c, u] = g.useState(!1), [l, h] = g.useState(!1), [C, f] = g.useState(""), [v, p] = g.useState(""), E = async () => {
5837
5837
  r(R.ON_TRANSACTION_TAGS_TAG_EDIT_SAVED), n && await i({ ...n, name: C }), u(!1);
5838
5838
  }, T = async () => {
5839
5839
  r(R.ON_TRANSACTION_TAGS_TAG_DELETED), await a(n.guid), h(!1);
@@ -5847,7 +5847,7 @@ const Fa = ({ transaction: A }) => {
5847
5847
  r(R.ON_TRANSACTION_TAGS_TAG_DELETE_CLICK), h(!0);
5848
5848
  };
5849
5849
  return /* @__PURE__ */ d(
5850
- Z,
5850
+ J,
5851
5851
  {
5852
5852
  className: "mx-txn-transaction-manager-row",
5853
5853
  disableGutters: !0,
@@ -5945,7 +5945,7 @@ const Fa = ({ transaction: A }) => {
5945
5945
  ] }, o.guid)) }) })
5946
5946
  ] });
5947
5947
  }, Ml = I(Nl), Rl = ({ transaction: A }) => {
5948
- const { onEvent: e } = V(), { tags: n, updateTaggings: r, updateTransaction: a } = cA(), { common: i, transactions: o } = b(), { updateManualTransaction: s } = UA(), [c, u] = g.useState(!1), [l, h] = g.useState(A.tags);
5948
+ const { onEvent: e } = Y(), { tags: n, updateTaggings: r, updateTransaction: a } = cA(), { common: i, transactions: o } = b(), { updateManualTransaction: s } = UA(), [c, u] = g.useState(!1), [l, h] = g.useState(A.tags);
5949
5949
  g.useEffect(() => {
5950
5950
  h(A.tags);
5951
5951
  }, [c, A]);
@@ -5965,14 +5965,14 @@ const Fa = ({ transaction: A }) => {
5965
5965
  [n, A]
5966
5966
  );
5967
5967
  return /* @__PURE__ */ d(g.Fragment, { children: [
5968
- /* @__PURE__ */ t(Z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(
5968
+ /* @__PURE__ */ t(J, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(
5969
5969
  dA,
5970
5970
  {
5971
5971
  onClick: () => {
5972
5972
  e(R.ON_TRANSACTION_TAGS_CLICK), u(!0);
5973
5973
  },
5974
5974
  children: [
5975
- /* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(me, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(N, { name: "local_offer", sx: { color: "text.primary" }, weight: qA.Dark }) }) }),
5975
+ /* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(me, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(P, { name: "local_offer", sx: { color: "text.primary" }, weight: qA.Dark }) }) }),
5976
5976
  /* @__PURE__ */ t(
5977
5977
  lA,
5978
5978
  {
@@ -5981,7 +5981,7 @@ const Fa = ({ transaction: A }) => {
5981
5981
  secondary: /* @__PURE__ */ t(y, { bold: !0, variant: "Body", children: A.tags?.length > 0 ? v : o.tags_desc })
5982
5982
  }
5983
5983
  ),
5984
- /* @__PURE__ */ t(re, { children: /* @__PURE__ */ t(N, { name: "chevron_right", weight: qA.Dark }) })
5984
+ /* @__PURE__ */ t(re, { children: /* @__PURE__ */ t(P, { name: "chevron_right", weight: qA.Dark }) })
5985
5985
  ]
5986
5986
  }
5987
5987
  ) }),
@@ -6000,7 +6000,7 @@ const Fa = ({ transaction: A }) => {
6000
6000
  )
6001
6001
  ] });
6002
6002
  }, Ya = I(Rl), Hl = ({ transaction: A }) => {
6003
- const { updateTransaction: e } = cA(), { common: n, transactions: r } = b(), { onEvent: a } = V(), [i, o] = g.useState(!1), [s, c] = g.useState(""), u = g.useRef(null);
6003
+ const { updateTransaction: e } = cA(), { common: n, transactions: r } = b(), { onEvent: a } = Y(), [i, o] = g.useState(!1), [s, c] = g.useState(""), u = g.useRef(null);
6004
6004
  g.useEffect(() => {
6005
6005
  i && (c(A.description), u?.current?.focus());
6006
6006
  }, [i]);
@@ -6046,12 +6046,12 @@ const Fa = ({ transaction: A }) => {
6046
6046
  o(!0), a(R.ON_TRANSACTION_DESCRIPTION_EDIT_CLICK);
6047
6047
  },
6048
6048
  sx: { color: "action.active" },
6049
- children: /* @__PURE__ */ t(N, { name: "create", size: 22 })
6049
+ children: /* @__PURE__ */ t(P, { name: "create", size: 22 })
6050
6050
  }
6051
6051
  )
6052
6052
  ] }) });
6053
6053
  }, zl = I(Hl), ql = ({ transaction: A }) => {
6054
- const { updateTransaction: e } = cA(), { transactions: n } = b(), { onEvent: r } = V(), a = CA(), i = async () => {
6054
+ const { updateTransaction: e } = cA(), { transactions: n } = b(), { onEvent: r } = Y(), a = CA(), i = async () => {
6055
6055
  r(Q.TRANSACTION_DETAILS_CLICK_FLAG, { transaction_guid: A.guid }), await e({ ...A, is_flagged: !A.is_flagged });
6056
6056
  };
6057
6057
  return /* @__PURE__ */ t("div", { className: "mx-txn-transaction-flag", children: /* @__PURE__ */ t(
@@ -6087,7 +6087,7 @@ const Fa = ({ transaction: A }) => {
6087
6087
  topActions: e = hc,
6088
6088
  transaction: n
6089
6089
  }) => {
6090
- const r = yA(), a = n?.number && n.number.length > 4, { onEvent: i } = V();
6090
+ const r = yA(), a = n?.number && n.number.length > 4, { onEvent: i } = Y();
6091
6091
  return g.useEffect(
6092
6092
  () => i(Q.TRANSACTION_DETAILS_VIEW, { transaction_guid: n.guid }),
6093
6093
  []
@@ -6406,24 +6406,24 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
6406
6406
  setSearchValue: l,
6407
6407
  setShowInsights: h,
6408
6408
  updateManualTransaction: C
6409
- } = UA(), { addTransaction: f, filter: v, setFilter: p, tags: E, transactions: T, updateTransaction: S } = cA(), { common: L, transactions: O } = b(), { userProfile: M } = Qt(), { onEvent: x } = V(), {
6409
+ } = UA(), { addTransaction: f, filter: v, setFilter: p, tags: E, transactions: T, updateTransaction: S } = cA(), { common: L, transactions: O } = b(), { userProfile: N } = Qt(), { onEvent: x } = Y(), {
6410
6410
  displayedDateRange: K,
6411
6411
  isInitialized: B,
6412
6412
  selectedAccountGuids: _,
6413
- selectedAccounts: G,
6414
- setDisplayedDate: k,
6415
- setSelectedAccounts: P
6416
- } = vA(), [W, rA] = g.useState(""), [IA, sA] = g.useState(""), [bA, xe] = g.useState(!1), [le, Ge] = g.useState(!1), [Y, LA] = g.useState(!1);
6413
+ selectedAccounts: k,
6414
+ setDisplayedDate: G,
6415
+ setSelectedAccounts: M
6416
+ } = vA(), [nA, rA] = g.useState(""), [IA, sA] = g.useState(""), [bA, xe] = g.useState(!1), [le, Ge] = g.useState(!1), [W, LA] = g.useState(!1);
6417
6417
  g.useEffect(() => {
6418
- P(a);
6418
+ M(a);
6419
6419
  }, [a]), g.useEffect(() => {
6420
- const SA = EA($()), er = DA($());
6421
- k(SA, er), p({
6420
+ const SA = EA(Z()), er = DA(Z());
6421
+ G(SA, er), p({
6422
6422
  dateRange: { start: SA, end: er },
6423
- accounts: G.map((xi) => xi.guid)
6423
+ accounts: k.map((xi) => xi.guid)
6424
6424
  }), LA(!0), x(Q.TRANSACTIONS_VIEW);
6425
6425
  }, []), g.useEffect(() => {
6426
- Y && p({
6426
+ W && p({
6427
6427
  ...v,
6428
6428
  dateRange: { start: K.start, end: K.end },
6429
6429
  accounts: _
@@ -6435,7 +6435,7 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
6435
6435
  () => a.filter((SA) => SA.is_manual),
6436
6436
  [a]
6437
6437
  ), WA = IA ? T.find((SA) => SA.guid === IA) : void 0, Ee = c && !!s.payee && !!s.account_guid && !!s.category_guid, $t = (SA) => {
6438
- k(SA[0], SA[1]);
6438
+ G(SA[0], SA[1]);
6439
6439
  }, An = (SA) => {
6440
6440
  l(SA), p({
6441
6441
  ...v,
@@ -6446,8 +6446,8 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
6446
6446
  }, Ii = () => {
6447
6447
  TA.length > 0 ? (C({
6448
6448
  ...Xa,
6449
- date: gA($()),
6450
- user_guid: M?.user_guid || ""
6449
+ date: gA(Z()),
6450
+ user_guid: N?.user_guid || ""
6451
6451
  }), rA(
6452
6452
  "addTransaction"
6453
6453
  /* AddTransaction */
@@ -6459,7 +6459,7 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
6459
6459
  }, Oi = () => {
6460
6460
  Ge(!1), i();
6461
6461
  };
6462
- return !B || !Y ? /* @__PURE__ */ t(pe, {}) : /* @__PURE__ */ d(
6462
+ return !B || !W ? /* @__PURE__ */ t(pe, {}) : /* @__PURE__ */ d(
6463
6463
  qe,
6464
6464
  {
6465
6465
  accountOptions: a,
@@ -6543,7 +6543,7 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
6543
6543
  uA,
6544
6544
  {
6545
6545
  ariaLabelClose: L.close_aria,
6546
- isOpen: W === "transaction",
6546
+ isOpen: nA === "transaction",
6547
6547
  onClose: () => {
6548
6548
  WA && !WA.has_been_viewed && S({ ...WA, has_been_viewed: !0 }), rA("");
6549
6549
  },
@@ -6551,7 +6551,7 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
6551
6551
  children: WA && /* @__PURE__ */ t(Wt, { transaction: WA })
6552
6552
  }
6553
6553
  ),
6554
- WA && W === "category" && /* @__PURE__ */ t(
6554
+ WA && nA === "category" && /* @__PURE__ */ t(
6555
6555
  Zl,
6556
6556
  {
6557
6557
  onClose: () => {
@@ -6564,7 +6564,7 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
6564
6564
  uA,
6565
6565
  {
6566
6566
  ariaLabelClose: L.close_aria,
6567
- isOpen: W === "addTransaction",
6567
+ isOpen: nA === "addTransaction",
6568
6568
  isPrimaryDisabled: !Ee,
6569
6569
  onClose: () => rA(""),
6570
6570
  onPrimaryAction: bi,
@@ -6626,7 +6626,7 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
6626
6626
  occurs_on: Ln(A.expectedDate, { representation: "date" }),
6627
6627
  recurrence_type: A.recurrenceType
6628
6628
  }), Ad = ({ activity: A }) => {
6629
- const { recurring: e } = b(), { cashflowSequences: n, scheduledPayments: r, updateCashflowSequence: a, updateScheduledPayment: i } = KA(), { onEvent: o } = V(), [s, c] = g.useState(!1), u = A.activityType === mA.Income, l = [
6629
+ const { recurring: e } = b(), { cashflowSequences: n, scheduledPayments: r, updateCashflowSequence: a, updateScheduledPayment: i } = KA(), { onEvent: o } = Y(), [s, c] = g.useState(!1), u = A.activityType === mA.Income, l = [
6630
6630
  { id: q.EveryWeek, label: e.frequency_every_week },
6631
6631
  { id: q.EveryOtherWeek, label: e.frequency_every_other_week },
6632
6632
  { id: q.EveryMonth, label: e.frequency_every_month },
@@ -6676,7 +6676,7 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
6676
6676
  A.activityType === mA.Expense || v.id !== q.EveryOtherMonth && v.id !== q.EveryOtherQuarter
6677
6677
  )
6678
6678
  ).map((v) => /* @__PURE__ */ d(g.Fragment, { children: [
6679
- /* @__PURE__ */ t(Z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(dA, { onClick: () => h(v.id), children: [
6679
+ /* @__PURE__ */ t(J, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(dA, { onClick: () => h(v.id), children: [
6680
6680
  /* @__PURE__ */ t(
6681
6681
  lA,
6682
6682
  {
@@ -6684,7 +6684,7 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
6684
6684
  primaryTypographyProps: { fontWeight: 400 }
6685
6685
  }
6686
6686
  ),
6687
- A.recurrenceType === v.id && /* @__PURE__ */ t(N, { color: "primary", fill: !0, name: "check_circle", size: 24 })
6687
+ A.recurrenceType === v.id && /* @__PURE__ */ t(P, { color: "primary", fill: !0, name: "check_circle", size: 24 })
6688
6688
  ] }) }, v.id),
6689
6689
  /* @__PURE__ */ t(X, {})
6690
6690
  ] }, v.id)) })
@@ -6692,7 +6692,7 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
6692
6692
  )
6693
6693
  ] });
6694
6694
  }, ed = I(Ad), td = ({ activity: A }) => {
6695
- const { recurring: e } = b(), { cashflowSequences: n, scheduledPayments: r, updateCashflowSequence: a, updateScheduledPayment: i } = KA(), { onEvent: o } = V(), [s, c] = g.useState(!1), [u, l] = g.useState(A.expectedDate), h = A.activityType === mA.Income, C = () => {
6695
+ const { recurring: e } = b(), { cashflowSequences: n, scheduledPayments: r, updateCashflowSequence: a, updateScheduledPayment: i } = KA(), { onEvent: o } = Y(), [s, c] = g.useState(!1), [u, l] = g.useState(A.expectedDate), h = A.activityType === mA.Income, C = () => {
6696
6696
  l(A.expectedDate), c(!0), o(
6697
6697
  h ? "recurring_transactions_widget_income_details_click_next_payment_due" : "recurring_transactions_widget_expense_details_click_next_payment_due",
6698
6698
  {
@@ -6717,7 +6717,7 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
6717
6717
  iconName: "calendar_month",
6718
6718
  label: e.activity_payment_date,
6719
6719
  onClick: C,
6720
- value: J(A.expectedDate, U.MONTH_DAY_YEAR)
6720
+ value: V(A.expectedDate, U.MONTH_DAY_YEAR)
6721
6721
  }
6722
6722
  ),
6723
6723
  /* @__PURE__ */ t(
@@ -6731,7 +6731,7 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
6731
6731
  children: /* @__PURE__ */ t(Dn, { dateAdapter: Gt, children: /* @__PURE__ */ t(
6732
6732
  bn,
6733
6733
  {
6734
- minDate: $(),
6734
+ minDate: Z(),
6735
6735
  onChange: (v) => l(v),
6736
6736
  value: u
6737
6737
  }
@@ -6740,25 +6740,25 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
6740
6740
  )
6741
6741
  ] });
6742
6742
  }, nd = I(td), rd = ({ activity: A, onDeleted: e }) => {
6743
- const { recurring: n } = b(), { categories: r } = xA(), { deleteCashflowSequence: a, deleteScheduledPayment: i, paidActivities: o } = KA(), { filter: s, setFilter: c, transactions: u } = cA(), { selectedAccountGuids: l } = vA(), { onEvent: h } = V(), [C, f] = g.useState(!1), [v, p] = g.useState(""), E = r.find((M) => M.guid === A.categoryGuid), T = A.activityType === mA.Income, S = g.useMemo(
6744
- () => u.find((M) => M.guid === v),
6743
+ const { recurring: n } = b(), { categories: r } = xA(), { deleteCashflowSequence: a, deleteScheduledPayment: i, paidActivities: o } = KA(), { filter: s, setFilter: c, transactions: u } = cA(), { selectedAccountGuids: l } = vA(), { onEvent: h } = Y(), [C, f] = g.useState(!1), [v, p] = g.useState(""), E = r.find((N) => N.guid === A.categoryGuid), T = A.activityType === mA.Income, S = g.useMemo(
6744
+ () => u.find((N) => N.guid === v),
6745
6745
  [v]
6746
6746
  );
6747
6747
  g.useEffect(() => {
6748
6748
  c({
6749
6749
  accounts: l,
6750
- dateRange: { start: ne($(), 90), end: DA($()) }
6750
+ dateRange: { start: ne(Z(), 90), end: DA(Z()) }
6751
6751
  });
6752
6752
  }, []), g.useEffect(() => {
6753
6753
  if (T && A.sequenceGuid) {
6754
- const M = o.filter((x) => x.sequenceGuid === A.sequenceGuid).map((x) => x.transactionGuid);
6754
+ const N = o.filter((x) => x.sequenceGuid === A.sequenceGuid).map((x) => x.transactionGuid);
6755
6755
  c({
6756
6756
  ...s,
6757
- custom: (x) => !!M.find((K) => x.guid === K)
6757
+ custom: (x) => !!N.find((K) => x.guid === K)
6758
6758
  });
6759
6759
  } else !T && A.scheduledPaymentGuid && c({
6760
6760
  ...s,
6761
- custom: (M) => M.scheduled_payment_guid === A.scheduledPaymentGuid
6761
+ custom: (N) => N.scheduled_payment_guid === A.scheduledPaymentGuid
6762
6762
  });
6763
6763
  }, [A]);
6764
6764
  const L = async () => {
@@ -6820,7 +6820,7 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
6820
6820
  {
6821
6821
  color: "error",
6822
6822
  onClick: O,
6823
- startIcon: /* @__PURE__ */ t(N, { name: "delete" }),
6823
+ startIcon: /* @__PURE__ */ t(P, { name: "delete" }),
6824
6824
  sx: { mx: 24, my: 16 },
6825
6825
  variant: "text",
6826
6826
  children: T ? n.delete_income_title : n.delete_expense_title
@@ -6884,17 +6884,17 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
6884
6884
  case pA.Paid:
6885
6885
  return A.occurredOnDate ? z(
6886
6886
  e.paid_on,
6887
- J(A.occurredOnDate, U.MONTH_DAY)
6887
+ V(A.occurredOnDate, U.MONTH_DAY)
6888
6888
  ) : e.paid;
6889
6889
  case pA.Missed:
6890
6890
  return z(
6891
6891
  e.missed_on,
6892
- J(A.expectedDate, U.MONTH_DAY)
6892
+ V(A.expectedDate, U.MONTH_DAY)
6893
6893
  );
6894
6894
  case pA.Upcoming:
6895
6895
  return z(
6896
6896
  e.upcoming_on,
6897
- J(A.expectedDate, U.MONTH_DAY)
6897
+ V(A.expectedDate, U.MONTH_DAY)
6898
6898
  );
6899
6899
  default:
6900
6900
  return e.unknown;
@@ -6923,7 +6923,7 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
6923
6923
  copy: a,
6924
6924
  date: A.expectedDate,
6925
6925
  type: A.recurrenceType
6926
- } : { copy: a, date: null, type: A.recurrenceType })), /* @__PURE__ */ d(Z, { disableGutters: !0, disablePadding: !0, children: [
6926
+ } : { copy: a, date: null, type: A.recurrenceType })), /* @__PURE__ */ d(J, { disableGutters: !0, disablePadding: !0, children: [
6927
6927
  /* @__PURE__ */ d(dA, { onClick: () => {
6928
6928
  o(A.sequenceGuid || A.scheduledPaymentGuid || ""), n(A);
6929
6929
  }, children: [
@@ -6966,8 +6966,8 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
6966
6966
  F(A.amount, "0,0.00")
6967
6967
  ] }),
6968
6968
  !e && /* @__PURE__ */ d(w, { alignItems: "center", direction: "row", gap: 6, textTransform: "uppercase", children: [
6969
- c && /* @__PURE__ */ t(N, { color: "success", fill: !0, name: "check_circle", size: 12 }),
6970
- u && /* @__PURE__ */ t(N, { color: "error", fill: !0, name: "cancel", size: 12 }),
6969
+ c && /* @__PURE__ */ t(P, { color: "success", fill: !0, name: "check_circle", size: 12 }),
6970
+ u && /* @__PURE__ */ t(P, { color: "error", fill: !0, name: "cancel", size: 12 }),
6971
6971
  /* @__PURE__ */ t(y, { bold: !0, color: "secondary.light", variant: "XSmall", children: h })
6972
6972
  ] })
6973
6973
  ] })
@@ -7137,7 +7137,7 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
7137
7137
  {
7138
7138
  InputLabelProps: { shrink: !0 },
7139
7139
  SelectProps: {
7140
- IconComponent: (l) => /* @__PURE__ */ t(N, { fill: !1, name: "expand_more", size: 20, sx: { mr: 4 }, ...l })
7140
+ IconComponent: (l) => /* @__PURE__ */ t(P, { fill: !1, name: "expand_more", size: 20, sx: { mr: 4 }, ...l })
7141
7141
  },
7142
7142
  defaultValue: 0,
7143
7143
  label: s.frequency,
@@ -7172,7 +7172,7 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
7172
7172
  h(!0), c(A ? { ...s, custom: ht } : { ...s, custom: Cn });
7173
7173
  }, O = async () => {
7174
7174
  if (n(), !S || !E) {
7175
- M();
7175
+ N();
7176
7176
  return;
7177
7177
  }
7178
7178
  if (A) {
@@ -7185,17 +7185,17 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
7185
7185
  const x = cd(S, v, E);
7186
7186
  await o(x, S);
7187
7187
  }
7188
- M();
7189
- }, M = () => {
7188
+ N();
7189
+ }, N = () => {
7190
7190
  f(""), h(!1);
7191
7191
  };
7192
7192
  return /* @__PURE__ */ d(D, { children: [
7193
- /* @__PURE__ */ t(Z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(dA, { onClick: L, children: /* @__PURE__ */ t(lA, { children: /* @__PURE__ */ d(w, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
7193
+ /* @__PURE__ */ t(J, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(dA, { onClick: L, children: /* @__PURE__ */ t(lA, { children: /* @__PURE__ */ d(w, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
7194
7194
  /* @__PURE__ */ d(w, { alignItems: "center", direction: "row", gap: 8, children: [
7195
- /* @__PURE__ */ t(N, { fill: !0, name: "add_box", size: 24, sx: { color: "action.active" } }),
7195
+ /* @__PURE__ */ t(P, { fill: !0, name: "add_box", size: 24, sx: { color: "action.active" } }),
7196
7196
  /* @__PURE__ */ t(y, { bold: !0, sx: { color: "action.active" }, variant: "Body", children: e })
7197
7197
  ] }),
7198
- /* @__PURE__ */ t(N, { name: "chevron_right", size: 24, sx: { color: "primary.light" } })
7198
+ /* @__PURE__ */ t(P, { name: "chevron_right", size: 24, sx: { color: "primary.light" } })
7199
7199
  ] }) }) }) }),
7200
7200
  /* @__PURE__ */ t(X, {}),
7201
7201
  /* @__PURE__ */ t(
@@ -7259,7 +7259,7 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
7259
7259
  scheduledPaymentGuid: r.guid
7260
7260
  };
7261
7261
  }), Cd = () => {
7262
- const { recurring: A } = b(), { scheduledPayments: e } = KA(), { transactions: n } = cA(), { selectedAccounts: r } = vA(), { onEvent: a } = V(), i = gd(r, e, n), o = (c) => {
7262
+ const { recurring: A } = b(), { scheduledPayments: e } = KA(), { transactions: n } = cA(), { selectedAccounts: r } = vA(), { onEvent: a } = Y(), i = gd(r, e, n), o = (c) => {
7263
7263
  a(Q.RECURRING_ACTIVITY_CLICK_EXPENSE, {
7264
7264
  transaction_guid: c.transactionGuid
7265
7265
  });
@@ -7301,8 +7301,8 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
7301
7301
  };
7302
7302
  }), s = r.filter(
7303
7303
  (l) => We(NA(l.expected_date), {
7304
- start: EA($()),
7305
- end: ce($(), 30)
7304
+ start: EA(Z()),
7305
+ end: ce(Z(), 30)
7306
7306
  })
7307
7307
  ).filter((l) => {
7308
7308
  const h = a.find((f) => f.guid === l.cashflow_sequence_guid), C = e.find(
@@ -7351,7 +7351,7 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
7351
7351
  recurrenceDay: e.recurrence_day,
7352
7352
  scheduledPaymentGuid: e.guid,
7353
7353
  transactionGuid: ""
7354
- }, c = e.recurrence_day, u = $(), l = EA($()), h = ce($(), 30);
7354
+ }, c = e.recurrence_day, u = Z(), l = EA(Z()), h = ce(Z(), 30);
7355
7355
  let C = l;
7356
7356
  switch (e.recurrence_type) {
7357
7357
  case q.EveryWeek:
@@ -7454,7 +7454,7 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
7454
7454
  sequenceGuid: i.guid
7455
7455
  };
7456
7456
  }), Ed = () => {
7457
- const { recurring: A } = b(), { selectedAccounts: e } = vA(), { cashflowEvents: n, cashflowSequences: r, projectedEvents: a } = KA(), { transactions: i } = cA(), { onEvent: o } = V(), s = pd(
7457
+ const { recurring: A } = b(), { selectedAccounts: e } = vA(), { cashflowEvents: n, cashflowSequences: r, projectedEvents: a } = KA(), { transactions: i } = cA(), { onEvent: o } = Y(), s = pd(
7458
7458
  e,
7459
7459
  n,
7460
7460
  a,
@@ -7475,7 +7475,7 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
7475
7475
  /* @__PURE__ */ t(ni, { isIncome: !0, label: A.add_income, onAddActivity: u })
7476
7476
  ] });
7477
7477
  }, ri = I(Ed), yd = () => {
7478
- const [A, e] = g.useState(0), { onEvent: n } = V(), { recurring: r } = b();
7478
+ const [A, e] = g.useState(0), { onEvent: n } = Y(), { recurring: r } = b();
7479
7479
  return /* @__PURE__ */ d(D, { bgcolor: "background.default", height: "100%", children: [
7480
7480
  /* @__PURE__ */ d(
7481
7481
  Ze,
@@ -7498,17 +7498,17 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
7498
7498
  A === 1 && /* @__PURE__ */ t(ri, {})
7499
7499
  ] });
7500
7500
  }, ai = I(yd), nt = (A, e) => A + e.amount, nn = (A) => A.activityType === mA.Income && We(A.expectedDate, {
7501
- start: EA($()),
7502
- end: DA($())
7501
+ start: EA(Z()),
7502
+ end: DA(Z())
7503
7503
  }), Lt = (A) => A.activityType === mA.Expense && We(A.expectedDate, {
7504
- start: EA($()),
7505
- end: DA($())
7504
+ start: EA(Z()),
7505
+ end: DA(Z())
7506
7506
  }), rn = (A) => A.occurredOnDate && We(A.occurredOnDate, {
7507
7507
  start: EA(/* @__PURE__ */ new Date()),
7508
- end: ce($(), 30)
7508
+ end: ce(Z(), 30)
7509
7509
  }) || We(A.expectedDate, {
7510
7510
  start: EA(/* @__PURE__ */ new Date()),
7511
- end: ce($(), 30)
7511
+ end: ce(Z(), 30)
7512
7512
  }), wd = ({ day: A, outsideCurrentMonth: e, ...n }) => {
7513
7513
  const { recurring: r } = b(), { selectedAccountGuids: a } = vA(), { activities: i, setSelectedDay: o } = KA(), c = g.useMemo(
7514
7514
  () => i.filter((v) => a.includes(v.accountGuid || "")),
@@ -7585,7 +7585,7 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
7585
7585
  }
7586
7586
  );
7587
7587
  }, Sd = I(Td), qr = 58, Id = () => {
7588
- const A = CA(), { onEvent: e } = V(), { selectedDay: n } = KA(), [r, a] = g.useState(
7588
+ const A = CA(), { onEvent: e } = Y(), { selectedDay: n } = KA(), [r, a] = g.useState(
7589
7589
  ur(/* @__PURE__ */ new Date()) * et + qr
7590
7590
  ), i = (s) => {
7591
7591
  a(ur(s) * et + qr), e(Q.RECURRING_ACTIVITY_CLICK_CALENDAR_RIGHT);
@@ -7675,10 +7675,10 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
7675
7675
  ),
7676
7676
  /* @__PURE__ */ t(X, { sx: { mx: 24 } })
7677
7677
  ] })) : s.map((c) => /* @__PURE__ */ d(aA, { children: [
7678
- /* @__PURE__ */ t(Z, { children: /* @__PURE__ */ t(
7678
+ /* @__PURE__ */ t(J, { children: /* @__PURE__ */ t(
7679
7679
  oA,
7680
7680
  {
7681
- subheader: /* @__PURE__ */ t(Ve, { sx: { bgcolor: "background.paper", ml: 8, pb: 4, pt: 12 }, children: /* @__PURE__ */ t(y, { bold: !0, variant: "XSmall", children: J(
7681
+ subheader: /* @__PURE__ */ t(Ve, { sx: { bgcolor: "background.paper", ml: 8, pb: 4, pt: 12 }, children: /* @__PURE__ */ t(y, { bold: !0, variant: "XSmall", children: V(
7682
7682
  c.activities[0].occurredOnDate || c.activities[0].expectedDate,
7683
7683
  U.DAY_OF_WEEK_MONTH_DAY
7684
7684
  ) }) }),
@@ -7729,7 +7729,7 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
7729
7729
  /* @__PURE__ */ t(y, { variant: "XSmall", children: o.expected })
7730
7730
  ] })
7731
7731
  ] }),
7732
- i && /* @__PURE__ */ t(iA, { onClick: i, startIcon: /* @__PURE__ */ t(N, { name: "add" }), variant: "text", children: o.add_new })
7732
+ i && /* @__PURE__ */ t(iA, { onClick: i, startIcon: /* @__PURE__ */ t(P, { name: "add" }), variant: "text", children: o.add_new })
7733
7733
  ] }),
7734
7734
  /* @__PURE__ */ t(Js, { data: c })
7735
7735
  ] });
@@ -7742,8 +7742,8 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
7742
7742
  selectedDayActivities: o,
7743
7743
  setSelectedDay: s,
7744
7744
  upcomingActivities: c
7745
- } = KA(), [u, l] = g.useState(0), { onEvent: h } = V(), C = n.filter(rn), f = a.filter(rn), v = r.filter(rn), p = C.filter(Lt).reduce(nt, 0), E = f.filter(Lt).reduce(nt, 0), T = v.filter(Lt).reduce(nt, 0), S = C.filter(Lt).length, L = C.filter(nn).reduce(nt, 0), O = f.filter(nn).reduce(nt, 0), M = C.filter(nn).length, x = (_, G) => {
7746
- l(G);
7745
+ } = KA(), [u, l] = g.useState(0), { onEvent: h } = Y(), C = n.filter(rn), f = a.filter(rn), v = r.filter(rn), p = C.filter(Lt).reduce(nt, 0), E = f.filter(Lt).reduce(nt, 0), T = v.filter(Lt).reduce(nt, 0), S = C.filter(Lt).length, L = C.filter(nn).reduce(nt, 0), O = f.filter(nn).reduce(nt, 0), N = C.filter(nn).length, x = (_, k) => {
7746
+ l(k);
7747
7747
  }, K = (_) => {
7748
7748
  h(Q.RECURRING_ACTIVITY_CLICK_UPCOMING, {
7749
7749
  transaction_guid: _.transactionGuid
@@ -7771,7 +7771,7 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
7771
7771
  expected: L,
7772
7772
  paid: O,
7773
7773
  title: A.deposits,
7774
- total: M
7774
+ total: N
7775
7775
  }
7776
7776
  ),
7777
7777
  !e && /* @__PURE__ */ t(
@@ -7817,19 +7817,19 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
7817
7817
  onResetClick: i ? () => s(i) : void 0,
7818
7818
  title: i ? z(
7819
7819
  A.day_transactions,
7820
- J(i, U.MONTH_DAY)
7820
+ V(i, U.MONTH_DAY)
7821
7821
  ) : A.paid_activity
7822
7822
  }
7823
7823
  )
7824
7824
  ] }) })
7825
7825
  ] });
7826
7826
  }, Pd = I(xd), Nd = ({ onBackClick: A, sx: e = {} }) => {
7827
- const { accounts: n } = OA(), { recurring: r } = b(), { isInitialized: a, selectedAccountGuids: i, setSelectedAccounts: o } = vA(), { setFilter: s } = cA(), { isLoading: c } = KA(), { onEvent: u } = V();
7827
+ const { accounts: n } = OA(), { recurring: r } = b(), { isInitialized: a, selectedAccountGuids: i, setSelectedAccounts: o } = vA(), { setFilter: s } = cA(), { isLoading: c } = KA(), { onEvent: u } = Y();
7828
7828
  g.useEffect(() => {
7829
7829
  o(n);
7830
7830
  }, [n]), g.useEffect(() => {
7831
7831
  a && s({
7832
- dateRange: { start: ne($(), 90), end: ze() },
7832
+ dateRange: { start: ne(Z(), 90), end: ze() },
7833
7833
  accounts: i
7834
7834
  });
7835
7835
  }, [a, i]);
@@ -7890,7 +7890,7 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
7890
7890
  sx: { width: c ? "100%" : "calc(100% - 336px)", mt: 12 },
7891
7891
  title: n ? z(
7892
7892
  A.day_transactions,
7893
- J(n, U.MONTH_DAY)
7893
+ V(n, U.MONTH_DAY)
7894
7894
  ) : A.upcoming_activity
7895
7895
  }
7896
7896
  )
@@ -7899,7 +7899,7 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
7899
7899
  const { recurring: n } = b(), { isInitialized: r, selectedAccountGuids: a } = vA(), { setFilter: i } = cA();
7900
7900
  return g.useEffect(() => {
7901
7901
  r && i({
7902
- dateRange: { start: ne($(), 90), end: ze() },
7902
+ dateRange: { start: ne(Z(), 90), end: ze() },
7903
7903
  accounts: a
7904
7904
  });
7905
7905
  }, [r, a]), /* @__PURE__ */ t(
@@ -7958,7 +7958,7 @@ class zd {
7958
7958
  return this.upcomingActivities.filter((e) => e.activityType === mA.Income);
7959
7959
  }
7960
7960
  get nextIncomeActivity() {
7961
- return this.upcomingIncome.find((e) => lt(e.expectedDate, $()));
7961
+ return this.upcomingIncome.find((e) => lt(e.expectedDate, Z()));
7962
7962
  }
7963
7963
  get selectedDayActivities() {
7964
7964
  return this.selectedDay && this.activities.filter(
@@ -7968,7 +7968,7 @@ class zd {
7968
7968
  addCashflowEvent = async (e) => {
7969
7969
  try {
7970
7970
  const n = await this.cashflowApi.addCashflowEvent(e);
7971
- nA(() => {
7971
+ tA(() => {
7972
7972
  this.cashflowEvents = [...this.cashflowEvents, n];
7973
7973
  });
7974
7974
  } catch (n) {
@@ -7989,7 +7989,7 @@ class zd {
7989
7989
  await this.globalStore.transactionStore.updateTransaction({
7990
7990
  ...n,
7991
7991
  scheduled_payment_guid: r.guid
7992
- }), nA(() => {
7992
+ }), tA(() => {
7993
7993
  this.scheduledPayments = [...this.scheduledPayments, r];
7994
7994
  });
7995
7995
  } catch (r) {
@@ -8005,7 +8005,7 @@ class zd {
8005
8005
  };
8006
8006
  deleteScheduledPayment = async (e) => {
8007
8007
  try {
8008
- await this.api.deleteScheduledPayment(e), nA(() => {
8008
+ await this.api.deleteScheduledPayment(e), tA(() => {
8009
8009
  const n = this.scheduledPayments.findIndex((r) => r.guid === e);
8010
8010
  n >= 0 && this.scheduledPayments.splice(n, 1);
8011
8011
  });
@@ -8015,7 +8015,7 @@ class zd {
8015
8015
  };
8016
8016
  loadActivity = () => {
8017
8017
  this.isLoading = !0, Promise.all([this.loadExpenseActivity(), this.loadIncomeActivity()]).finally(
8018
- () => nA(() => {
8018
+ () => tA(() => {
8019
8019
  this.isLoading = !1;
8020
8020
  })
8021
8021
  );
@@ -8028,7 +8028,7 @@ class zd {
8028
8028
  };
8029
8029
  loadCashflowSequences = async () => {
8030
8030
  const e = await this.cashflowApi.getCashflowSequences();
8031
- nA(() => {
8031
+ tA(() => {
8032
8032
  this.cashflowSequences = e.filter(
8033
8033
  (n) => n.transaction_type === QA.CREDIT
8034
8034
  );
@@ -8037,10 +8037,10 @@ class zd {
8037
8037
  loadExpectedEvents = async () => {
8038
8038
  try {
8039
8039
  const e = await this.cashflowApi.getProjectedCashflowEvents(
8040
- EA($()),
8041
- ce($(), 30)
8040
+ EA(Z()),
8041
+ ce(Z(), 30)
8042
8042
  );
8043
- nA(() => {
8043
+ tA(() => {
8044
8044
  this.projectedEvents = e.filter(
8045
8045
  (n) => n.transaction_type === QA.CREDIT
8046
8046
  );
@@ -8052,10 +8052,10 @@ class zd {
8052
8052
  loadPaidEvents = async () => {
8053
8053
  try {
8054
8054
  const e = await this.cashflowApi.getCashflowEventsByDateRange(
8055
- ne($(), 90),
8056
- DA($())
8055
+ ne(Z(), 90),
8056
+ DA(Z())
8057
8057
  );
8058
- nA(() => {
8058
+ tA(() => {
8059
8059
  this.cashflowEvents = e.filter(
8060
8060
  (n) => n.transaction_type === QA.CREDIT
8061
8061
  );
@@ -8067,7 +8067,7 @@ class zd {
8067
8067
  loadScheduledPayments = async () => {
8068
8068
  try {
8069
8069
  const e = await this.api.getScheduledPayments();
8070
- nA(() => {
8070
+ tA(() => {
8071
8071
  this.scheduledPayments = e;
8072
8072
  });
8073
8073
  } catch (e) {
@@ -8101,7 +8101,7 @@ class zd {
8101
8101
  try {
8102
8102
  const n = await this.api.updateScheduledPayment(e), r = this.scheduledPayments.findIndex((a) => a.guid === e.guid);
8103
8103
  if (r < 0) return;
8104
- nA(() => {
8104
+ tA(() => {
8105
8105
  this.scheduledPayments = [
8106
8106
  ...this.scheduledPayments.slice(0, r),
8107
8107
  n,
@@ -8140,7 +8140,7 @@ const qd = {
8140
8140
  const r = Object.keys(j).filter((a) => Number(a)).map((a) => ({
8141
8141
  label: e.account_types[a],
8142
8142
  value: Number(a),
8143
- icon: /* @__PURE__ */ t(N, { name: is[a] })
8143
+ icon: /* @__PURE__ */ t(P, { name: is[a] })
8144
8144
  }));
8145
8145
  n.push({
8146
8146
  label: e.account_type,
@@ -8155,7 +8155,7 @@ const qd = {
8155
8155
  const r = Object.keys(Ta).filter((a) => Number(a)).map((a) => ({
8156
8156
  label: e.property_types[a],
8157
8157
  value: Number(a),
8158
- icon: /* @__PURE__ */ t(N, { name: os[a] })
8158
+ icon: /* @__PURE__ */ t(P, { name: os[a] })
8159
8159
  }));
8160
8160
  n.push({
8161
8161
  label: e.property_type,
@@ -8190,7 +8190,7 @@ const qd = {
8190
8190
  type: kA.Date,
8191
8191
  valueFormatter: (r) => {
8192
8192
  const a = typeof r == "number" ? new Date(r * 1e3) : r;
8193
- return J(a, U.MED_MONTH_SHORT_DAY_FULL_YEAR);
8193
+ return V(a, U.MED_MONTH_SHORT_DAY_FULL_YEAR);
8194
8194
  }
8195
8195
  }) : n.push({
8196
8196
  label: e.day_payment_due,
@@ -8229,7 +8229,7 @@ const qd = {
8229
8229
  a = /* @__PURE__ */ t(y, { component: "strong", variant: "XSmall", children: z(
8230
8230
  e.payment_due_on,
8231
8231
  F(A.minimum_payment, "0,0.00"),
8232
- J(s, U.FULL_MONTH_DAY)
8232
+ V(s, U.FULL_MONTH_DAY)
8233
8233
  ) });
8234
8234
  } else A.credit_limit && (a = e.available_credit, i = F(A.credit_limit, "0,0.00"));
8235
8235
  }
@@ -8288,9 +8288,9 @@ const qd = {
8288
8288
  }
8289
8289
  )
8290
8290
  ] });
8291
- return /* @__PURE__ */ t(Z, { sx: { backgroundColor: "background.paper" }, ...n, children: e ? /* @__PURE__ */ t(dA, { alignItems: "flex-start", onClick: e, sx: { px: 24 }, children: l }) : l });
8291
+ 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 });
8292
8292
  }, Jt = I(Fd), jd = ({ remaining: A }) => /* @__PURE__ */ t(
8293
- Z,
8293
+ J,
8294
8294
  {
8295
8295
  sx: {
8296
8296
  alignItems: "center",
@@ -8307,10 +8307,10 @@ const qd = {
8307
8307
  );
8308
8308
  var gt = /* @__PURE__ */ ((A) => (A.EXPENSE = "expense", A.INCOME = "income", A))(gt || {});
8309
8309
  const Ud = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
8310
- /* @__PURE__ */ d(Z, { sx: { display: "flex", alignItems: "center", gap: 16, px: 24, py: 12 }, children: [
8310
+ /* @__PURE__ */ d(J, { sx: { display: "flex", alignItems: "center", gap: 16, px: 24, py: 12 }, children: [
8311
8311
  /* @__PURE__ */ d(w, { alignItems: "center", height: 32, width: 32, children: [
8312
- /* @__PURE__ */ t(y, { bold: !0, sx: { fontSize: 11 }, children: J(A.expectedDate, U.MONTH) }),
8313
- /* @__PURE__ */ t(y, { bold: !0, sx: { fontSize: 11 }, children: J(A.expectedDate, U.DAY) })
8312
+ /* @__PURE__ */ t(y, { bold: !0, sx: { fontSize: 11 }, children: V(A.expectedDate, U.MONTH) }),
8313
+ /* @__PURE__ */ t(y, { bold: !0, sx: { fontSize: 11 }, children: V(A.expectedDate, U.DAY) })
8314
8314
  ] }),
8315
8315
  /* @__PURE__ */ t(y, { sx: { flexGrow: 1, fontSize: 13 }, children: A.name }),
8316
8316
  /* @__PURE__ */ t(
@@ -8355,10 +8355,10 @@ const Ud = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
8355
8355
  /* @__PURE__ */ d(w, { flexDirection: "row", justifyContent: "space-between", children: [
8356
8356
  /* @__PURE__ */ t(y, { bold: !0, sx: { fontSize: 15, mb: 12 }, children: A.accounts_breakdown }),
8357
8357
  /* @__PURE__ */ d(y, { bold: !0, sx: { fontSize: 15, mb: 12 }, children: [
8358
- J(r.start, U.FULL_MONTH_DAY),
8358
+ V(r.start, U.FULL_MONTH_DAY),
8359
8359
  " -",
8360
8360
  " ",
8361
- J(r.end, U.FULL_MONTH_DAY)
8361
+ V(r.end, U.FULL_MONTH_DAY)
8362
8362
  ] })
8363
8363
  ] }),
8364
8364
  /* @__PURE__ */ t(w, { children: a.map((i) => {
@@ -8393,7 +8393,7 @@ const Ud = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
8393
8393
  }
8394
8394
  ),
8395
8395
  /* @__PURE__ */ t(X, {}),
8396
- o.length > 0 && /* @__PURE__ */ t(Z, { children: /* @__PURE__ */ t(
8396
+ o.length > 0 && /* @__PURE__ */ t(J, { children: /* @__PURE__ */ t(
8397
8397
  oA,
8398
8398
  {
8399
8399
  subheader: /* @__PURE__ */ t(_r, { total: c, type: gt.INCOME }),
@@ -8401,7 +8401,7 @@ const Ud = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
8401
8401
  children: o.map((l) => /* @__PURE__ */ t(Br, { activity: l }, l.sequenceGuid))
8402
8402
  }
8403
8403
  ) }),
8404
- s.length > 0 && /* @__PURE__ */ t(Z, { children: /* @__PURE__ */ t(
8404
+ s.length > 0 && /* @__PURE__ */ t(J, { children: /* @__PURE__ */ t(
8405
8405
  oA,
8406
8406
  {
8407
8407
  subheader: /* @__PURE__ */ t(_r, { total: u, type: gt.EXPENSE }),
@@ -8510,10 +8510,10 @@ const Ud = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
8510
8510
  )
8511
8511
  ] }),
8512
8512
  /* @__PURE__ */ d(y, { bold: !0, sx: { fontSize: 15 }, children: [
8513
- J(i.start, U.FULL_MONTH_DAY),
8513
+ V(i.start, U.FULL_MONTH_DAY),
8514
8514
  " -",
8515
8515
  " ",
8516
- J(i.end, U.FULL_MONTH_DAY)
8516
+ V(i.end, U.FULL_MONTH_DAY)
8517
8517
  ] })
8518
8518
  ] }),
8519
8519
  A > 650 ? /* @__PURE__ */ t(
@@ -8545,7 +8545,7 @@ const Ud = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
8545
8545
  borderRadius: 1,
8546
8546
  marginBottom: 24
8547
8547
  },
8548
- children: /* @__PURE__ */ t(Z, { sx: { minHeight: "auto" }, children: /* @__PURE__ */ d(w, { width: "100%", children: [
8548
+ children: /* @__PURE__ */ t(J, { sx: { minHeight: "auto" }, children: /* @__PURE__ */ d(w, { width: "100%", children: [
8549
8549
  /* @__PURE__ */ d(
8550
8550
  w,
8551
8551
  {
@@ -8624,7 +8624,7 @@ const Ud = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
8624
8624
  }
8625
8625
  );
8626
8626
  }, Zd = I(Jd), $d = () => {
8627
- const { cashflow: A } = b(), { isDesktop: e } = jA(), { onEvent: n } = V(), [r, a] = g.useState(0), i = (o, s) => {
8627
+ const { cashflow: A } = b(), { isDesktop: e } = jA(), { onEvent: n } = Y(), [r, a] = g.useState(0), i = (o, s) => {
8628
8628
  a(s);
8629
8629
  };
8630
8630
  return g.useEffect(() => {
@@ -8722,7 +8722,7 @@ const Ud = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
8722
8722
  iA,
8723
8723
  {
8724
8724
  onClick: () => e(!0),
8725
- startIcon: /* @__PURE__ */ t(N, { name: "add" }),
8725
+ startIcon: /* @__PURE__ */ t(P, { name: "add" }),
8726
8726
  sx: { fontSize: 13 },
8727
8727
  children: r.add_income
8728
8728
  }
@@ -8769,7 +8769,7 @@ const Ud = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
8769
8769
  iA,
8770
8770
  {
8771
8771
  onClick: () => e(!0),
8772
- startIcon: /* @__PURE__ */ t(N, { name: "add" }),
8772
+ startIcon: /* @__PURE__ */ t(P, { name: "add" }),
8773
8773
  sx: { fontSize: 13 },
8774
8774
  children: r.add_income
8775
8775
  }
@@ -8831,7 +8831,7 @@ const Ud = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
8831
8831
  mr: 24,
8832
8832
  sx: { display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0 },
8833
8833
  width: 44,
8834
- children: /* @__PURE__ */ t(N, { color: "primary", name: "currency_exchange" })
8834
+ children: /* @__PURE__ */ t(P, { color: "primary", name: "currency_exchange" })
8835
8835
  }
8836
8836
  ),
8837
8837
  n.bullet_one
@@ -8847,7 +8847,7 @@ const Ud = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
8847
8847
  mr: 24,
8848
8848
  sx: { display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0 },
8849
8849
  width: 44,
8850
- children: /* @__PURE__ */ t(N, { color: "primary", name: "cardiology" })
8850
+ children: /* @__PURE__ */ t(P, { color: "primary", name: "cardiology" })
8851
8851
  }
8852
8852
  ),
8853
8853
  n.bullet_two
@@ -8863,7 +8863,7 @@ const Ud = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
8863
8863
  mr: 24,
8864
8864
  sx: { display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0 },
8865
8865
  width: 44,
8866
- children: /* @__PURE__ */ t(N, { color: "primary", name: "flare" })
8866
+ children: /* @__PURE__ */ t(P, { color: "primary", name: "flare" })
8867
8867
  }
8868
8868
  ),
8869
8869
  n.bullet_three
@@ -8889,14 +8889,14 @@ const Ud = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
8889
8889
  transform: rotate(360deg);
8890
8890
  }
8891
8891
  `, lu = () => {
8892
- const { addCashflowEvent: A, addCashflowSequence: e, cashflowSequences: n } = KA(), { cashflow: r, common: a } = b(), { completeOnboarding: i } = Hn(), { isDirty: o } = At(), { isMobile: s } = jA(), { setDisplayedDate: c } = vA(), { filter: u, setFilter: l, transactions: h } = cA(), C = CA(), [f, v] = ie(!0), [p, E] = g.useState(q.EveryMonth), [T, S] = ie(!1), [L, O] = g.useState(null), [M, x] = ie(1), [K, B] = ie([]), [_, G] = ie(""), k = g.useMemo(
8892
+ const { addCashflowEvent: A, addCashflowSequence: e, cashflowSequences: n } = KA(), { cashflow: r, common: a } = b(), { completeOnboarding: i } = Hn(), { isDirty: o } = At(), { isMobile: s } = jA(), { setDisplayedDate: c } = vA(), { filter: u, setFilter: l, transactions: h } = cA(), C = CA(), [f, v] = ie(!0), [p, E] = g.useState(q.EveryMonth), [T, S] = ie(!1), [L, O] = g.useState(null), [N, x] = ie(1), [K, B] = ie([]), [_, k] = ie(""), G = g.useMemo(
8893
8893
  () => h.find((sA) => sA.guid === _),
8894
8894
  [_]
8895
- ), P = !!n.length, W = async () => {
8895
+ ), M = !!n.length, nA = async () => {
8896
8896
  x(2), c(
8897
8897
  // Beginning of the month, 90 days before today
8898
- EA(ne($(), 90)),
8899
- $()
8898
+ EA(ne(Z(), 90)),
8899
+ Z()
8900
8900
  ), l({ ...u, custom: ht }), x(3);
8901
8901
  }, rA = async () => {
8902
8902
  if (!(K.length < 1)) {
@@ -8914,7 +8914,7 @@ const Ud = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
8914
8914
  }
8915
8915
  i();
8916
8916
  }
8917
- }, IA = !k && f || !k && K.length < 1;
8917
+ }, IA = !G && f || !G && K.length < 1;
8918
8918
  return /* @__PURE__ */ d(
8919
8919
  D,
8920
8920
  {
@@ -8929,16 +8929,16 @@ const Ud = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
8929
8929
  py: 24
8930
8930
  },
8931
8931
  children: [
8932
- M === 1 && /* @__PURE__ */ t(
8932
+ N === 1 && /* @__PURE__ */ t(
8933
8933
  D,
8934
8934
  {
8935
8935
  sx: {
8936
8936
  ...s ? { display: "flex", flexDirection: "column", maxWidth: "100%", padding: "0 16px" } : { maxWidth: 590, ml: "40%", mr: 90 }
8937
8937
  },
8938
- children: /* @__PURE__ */ t(ru, { handleNextStep: W })
8938
+ children: /* @__PURE__ */ t(ru, { handleNextStep: nA })
8939
8939
  }
8940
8940
  ),
8941
- M === 2 && /* @__PURE__ */ t(
8941
+ N === 2 && /* @__PURE__ */ t(
8942
8942
  D,
8943
8943
  {
8944
8944
  sx: {
@@ -8947,7 +8947,7 @@ const Ud = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
8947
8947
  children: /* @__PURE__ */ t(ou, {})
8948
8948
  }
8949
8949
  ),
8950
- M === 3 && /* @__PURE__ */ d(
8950
+ N === 3 && /* @__PURE__ */ d(
8951
8951
  D,
8952
8952
  {
8953
8953
  sx: {
@@ -8956,7 +8956,7 @@ const Ud = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
8956
8956
  children: [
8957
8957
  /* @__PURE__ */ t(fe, { pb: 12, children: r.add_income_title }),
8958
8958
  /* @__PURE__ */ t(fA, { mb: 24, children: r.add_income_description }),
8959
- K.length > 0 && !k && /* @__PURE__ */ d(aA, { children: [
8959
+ K.length > 0 && !G && /* @__PURE__ */ d(aA, { children: [
8960
8960
  /* @__PURE__ */ t(oA, { children: K.map((sA, bA) => /* @__PURE__ */ d(g.Fragment, { children: [
8961
8961
  /* @__PURE__ */ t(kn, { bgcolor: "background.paper", children: jt(
8962
8962
  gA(sA.nextDate || sA.date)
@@ -8970,7 +8970,7 @@ const Ud = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
8970
8970
  iA,
8971
8971
  {
8972
8972
  onClick: () => v(!0),
8973
- startIcon: /* @__PURE__ */ t(N, { name: "add", size: 20 }),
8973
+ startIcon: /* @__PURE__ */ t(P, { name: "add", size: 20 }),
8974
8974
  children: r.add_additional_income_button
8975
8975
  }
8976
8976
  )
@@ -8985,12 +8985,12 @@ const Ud = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
8985
8985
  custom: (bA) => sA ? ti(bA, sA) : ht(bA)
8986
8986
  }),
8987
8987
  onSelected: (sA) => {
8988
- G(sA), v(!1);
8988
+ k(sA), v(!1);
8989
8989
  }
8990
8990
  }
8991
8991
  ),
8992
- !P && o && /* @__PURE__ */ t(fA, { color: "error", mt: 16, children: r.confirm_error }),
8993
- k && /* @__PURE__ */ d(aA, { children: [
8992
+ !M && o && /* @__PURE__ */ t(fA, { color: "error", mt: 16, children: r.confirm_error }),
8993
+ G && /* @__PURE__ */ d(aA, { children: [
8994
8994
  /* @__PURE__ */ t(
8995
8995
  ei,
8996
8996
  {
@@ -9000,17 +9000,17 @@ const Ud = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
9000
9000
  nextDate: L,
9001
9001
  onFrequencyChange: E,
9002
9002
  onNextDateChange: O,
9003
- transaction: k
9003
+ transaction: G
9004
9004
  }
9005
9005
  ),
9006
9006
  /* @__PURE__ */ d(w, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
9007
9007
  /* @__PURE__ */ t(
9008
9008
  iA,
9009
9009
  {
9010
- "aria-disabled": !k || !L,
9010
+ "aria-disabled": !G || !L,
9011
9011
  onClick: () => {
9012
9012
  const sA = [...K];
9013
- sA.push({ ...k, nextDate: L, frequency: p }), B(sA), G("");
9013
+ sA.push({ ...G, nextDate: L, frequency: p }), B(sA), k("");
9014
9014
  },
9015
9015
  variant: "contained",
9016
9016
  children: a.confirm_button
@@ -9020,7 +9020,7 @@ const Ud = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
9020
9020
  iA,
9021
9021
  {
9022
9022
  onClick: () => {
9023
- G(""), v(!0), W();
9023
+ k(""), v(!0), nA();
9024
9024
  },
9025
9025
  variant: "outlined",
9026
9026
  children: a.cancel_button
@@ -9028,14 +9028,14 @@ const Ud = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
9028
9028
  )
9029
9029
  ] })
9030
9030
  ] }),
9031
- K.length > 0 && !k && /* @__PURE__ */ d(w, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
9031
+ K.length > 0 && !G && /* @__PURE__ */ d(w, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
9032
9032
  /* @__PURE__ */ t(
9033
9033
  iA,
9034
9034
  {
9035
9035
  "aria-disabled": K.length < 1 || T,
9036
9036
  onClick: rA,
9037
9037
  startIcon: T ? /* @__PURE__ */ t(
9038
- N,
9038
+ P,
9039
9039
  {
9040
9040
  name: "progress_activity",
9041
9041
  sx: {
@@ -9062,7 +9062,7 @@ const Ud = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
9062
9062
  setSelectedAccounts: a,
9063
9063
  shouldDisableNextDate: i,
9064
9064
  shouldDisablePrevDate: o
9065
- } = vA(), { onEvent: s } = V(), { cashAccounts: c } = OA(), { setFilter: u } = cA(), { userProfile: l } = Qt(), { dateRange: h, setSelectedCashAccounts: C } = At(), { cashflow: f } = b(), [v, p] = g.useState(!1);
9065
+ } = vA(), { onEvent: s } = Y(), { cashAccounts: c } = OA(), { setFilter: u } = cA(), { userProfile: l } = Qt(), { dateRange: h, setSelectedCashAccounts: C } = At(), { cashflow: f } = b(), [v, p] = g.useState(!1);
9066
9066
  return g.useEffect(() => {
9067
9067
  a(c);
9068
9068
  }, [c]), g.useEffect(() => {
@@ -9143,7 +9143,7 @@ class Xr {
9143
9143
  }
9144
9144
  let hu = class {
9145
9145
  // Cashflow is hard-coded to display 30 days starting from today
9146
- dateRange = { start: $(), end: ce($(), 30) };
9146
+ dateRange = { start: Z(), end: ce(Z(), 30) };
9147
9147
  isDirty = !1;
9148
9148
  nextIncome = void 0;
9149
9149
  upcomingExpenses = [];
@@ -9153,7 +9153,7 @@ let hu = class {
9153
9153
  }
9154
9154
  // Returns the number of days until the next income activity or 0 if there is no income activity
9155
9155
  get daysUntilNextIncome() {
9156
- return this.nextIncome ? Math.abs(fo($(), this.nextIncome.expectedDate)) : 0;
9156
+ return this.nextIncome ? Math.abs(fo(Z(), this.nextIncome.expectedDate)) : 0;
9157
9157
  }
9158
9158
  // Returns the expenses (Activities) until the next income activity or the end of the month
9159
9159
  // if there is no income activity
@@ -9279,7 +9279,7 @@ const vu = /^[ a-zA-ZÀ-ÿ0-9]+$/, mu = 50, Qr = 65, pu = ({
9279
9279
  sx: { transform: `translateY(${C.start}px)` },
9280
9280
  width: "100%",
9281
9281
  children: [
9282
- /* @__PURE__ */ t(Z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(dA, { onClick: () => c(f.guid), children: [
9282
+ /* @__PURE__ */ t(J, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(dA, { onClick: () => c(f.guid), children: [
9283
9283
  /* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(Oe, { categoryGuid: "", merchantGuid: f.guid }) }),
9284
9284
  /* @__PURE__ */ t(lA, { primary: f.name })
9285
9285
  ] }) }),
@@ -9319,13 +9319,13 @@ class Eu {
9319
9319
  loadMerchants = async (e = "") => {
9320
9320
  this.isLoading = !0;
9321
9321
  const n = await this.api.getMerchants([e]);
9322
- nA(() => {
9322
+ tA(() => {
9323
9323
  this.merchants = n, this.isLoading = !1;
9324
9324
  });
9325
9325
  };
9326
9326
  loadMerchantByGuid = async (e) => {
9327
9327
  const n = await this.api.getMerchantByGuid(e);
9328
- nA(() => this.merchant = n);
9328
+ tA(() => this.merchant = n);
9329
9329
  };
9330
9330
  }
9331
9331
  const eC = (A) => {
@@ -9372,7 +9372,7 @@ class wu {
9372
9372
  try {
9373
9373
  this.isLoading = !0;
9374
9374
  const e = await this.api.getNotifications();
9375
- nA(() => {
9375
+ tA(() => {
9376
9376
  this.notifications = e, this.recentNotifications = yu(e), this.isLoading = !1;
9377
9377
  });
9378
9378
  } catch (e) {
@@ -9474,7 +9474,7 @@ class Ou {
9474
9474
  loadUserProfile = async () => {
9475
9475
  try {
9476
9476
  const e = await this.api.getUserProfile();
9477
- nA(() => {
9477
+ tA(() => {
9478
9478
  this.userProfile = e;
9479
9479
  });
9480
9480
  } catch (e) {
@@ -9484,7 +9484,7 @@ class Ou {
9484
9484
  updateUserProfile = async (e) => {
9485
9485
  try {
9486
9486
  const n = await this.api.updateUserProfile(e);
9487
- nA(() => {
9487
+ tA(() => {
9488
9488
  this.userProfile = n;
9489
9489
  });
9490
9490
  } catch (n) {
@@ -9534,7 +9534,7 @@ const an = ({
9534
9534
  primaryText: r,
9535
9535
  secondaryText: a
9536
9536
  }) => /* @__PURE__ */ d(aA, { children: [
9537
- /* @__PURE__ */ t(Z, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ d(dA, { onClick: n, children: [
9537
+ /* @__PURE__ */ t(J, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ d(dA, { onClick: n, children: [
9538
9538
  /* @__PURE__ */ t(lA, { primary: r, secondary: a }),
9539
9539
  A
9540
9540
  ] }) }),
@@ -9549,7 +9549,7 @@ const an = ({
9549
9549
  (r) => r.member_guid === n.guid && n.successfully_aggregated_at && r.guid !== e.guid
9550
9550
  );
9551
9551
  }, Pu = () => {
9552
- const [A, e] = g.useState(!1), [n, r] = g.useState(!1), [a, i] = g.useState(!1), [o, s] = g.useState({}), { selectedAccount: c } = ae(), { mergeAccounts: u, updateAccount: l } = OA(), { accounts: h } = b(), C = xu(), { onEvent: f } = V(), v = (E) => {
9552
+ const [A, e] = g.useState(!1), [n, r] = g.useState(!1), [a, i] = g.useState(!1), [o, s] = g.useState({}), { selectedAccount: c } = ae(), { mergeAccounts: u, updateAccount: l } = OA(), { accounts: h } = b(), C = xu(), { onEvent: f } = Y(), v = (E) => {
9553
9553
  l({
9554
9554
  ...c,
9555
9555
  ...E
@@ -9582,7 +9582,7 @@ const an = ({
9582
9582
  },
9583
9583
  primaryText: c.is_closed ? h.mark_as_open : h.mark_as_closed,
9584
9584
  secondaryText: h.this_will_set_the_account_balance_to_0,
9585
- children: /* @__PURE__ */ t(N, { name: "chevron_right" })
9585
+ children: /* @__PURE__ */ t(P, { name: "chevron_right" })
9586
9586
  }
9587
9587
  ),
9588
9588
  C.length > 0 && /* @__PURE__ */ t(
@@ -9596,7 +9596,7 @@ const an = ({
9596
9596
  },
9597
9597
  primaryText: h.mark_as_duplicate,
9598
9598
  secondaryText: h.if_a_connected_account_is_showing_up_twice,
9599
- children: /* @__PURE__ */ t(N, { name: "chevron_right" })
9599
+ children: /* @__PURE__ */ t(P, { name: "chevron_right" })
9600
9600
  }
9601
9601
  ),
9602
9602
  /* @__PURE__ */ t(
@@ -9799,11 +9799,11 @@ const an = ({
9799
9799
  };
9800
9800
  default: {
9801
9801
  const r = () => {
9802
- const a = A.successfully_aggregated_at ? NA(A.successfully_aggregated_at) : void 0, i = a && J(a, U.TIME_STAMP_HOUR_MINUTE);
9802
+ const a = A.successfully_aggregated_at ? NA(A.successfully_aggregated_at) : void 0, i = a && V(a, U.TIME_STAMP_HOUR_MINUTE);
9803
9803
  if (i)
9804
9804
  return xn(a) ? z(e.last_updated_at, e.today, i) : _o(a) ? z(e.last_updated_at, e.yesterday, i) : z(
9805
9805
  e.last_updated_at,
9806
- J(a, U.MONTH_DAY_YEAR),
9806
+ V(a, U.MONTH_DAY_YEAR),
9807
9807
  i
9808
9808
  );
9809
9809
  };
@@ -9837,7 +9837,7 @@ const an = ({
9837
9837
  };
9838
9838
  return /* @__PURE__ */ d(aA, { children: [
9839
9839
  /* @__PURE__ */ t(Ve, { sx: { mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(y, { bold: !0, component: "h2", variant: "XSmall", children: a.connection_status }) }),
9840
- /* @__PURE__ */ t(Z, { sx: { backgroundColor: "background.paper" }, children: r.is_manual || !s.ctaCopy ? /* @__PURE__ */ d(w, { alignItems: "center", direction: "row", px: 24, py: 12, children: [
9840
+ /* @__PURE__ */ t(J, { sx: { backgroundColor: "background.paper" }, children: r.is_manual || !s.ctaCopy ? /* @__PURE__ */ d(w, { alignItems: "center", direction: "row", px: 24, py: 12, children: [
9841
9841
  /* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(Te, { backingSx: { backgroundColor: s.color, borderRadius: 1 }, size: 32, children: s.icon }) }),
9842
9842
  /* @__PURE__ */ t(lA, { primary: s.mainMessage, secondary: s.secondaryMessage })
9843
9843
  ] }) : /* @__PURE__ */ d(dA, { onClick: () => e(!0), children: [
@@ -9853,11 +9853,11 @@ const an = ({
9853
9853
  ] })
9854
9854
  }
9855
9855
  ),
9856
- /* @__PURE__ */ t(N, { name: "chevron_right" })
9856
+ /* @__PURE__ */ t(P, { name: "chevron_right" })
9857
9857
  ] }) }),
9858
9858
  /* @__PURE__ */ t(X, { sx: { ml: r.is_manual || !r.institution_url ? 0 : 24 } }),
9859
9859
  !r.is_manual && r.institution_url && /* @__PURE__ */ d(aA, { children: [
9860
- /* @__PURE__ */ t(Z, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ d(dA, { component: "a", href: r.institution_url, target: "_blank", children: [
9860
+ /* @__PURE__ */ t(J, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ d(dA, { component: "a", href: r.institution_url, target: "_blank", children: [
9861
9861
  /* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(
9862
9862
  Te,
9863
9863
  {
@@ -9878,7 +9878,7 @@ const an = ({
9878
9878
  }
9879
9879
  ) }),
9880
9880
  /* @__PURE__ */ t(lA, { primary: r.name, secondary: r.institution_url }),
9881
- /* @__PURE__ */ t(N, { name: "launch" })
9881
+ /* @__PURE__ */ t(P, { name: "launch" })
9882
9882
  ] }) }),
9883
9883
  /* @__PURE__ */ t(X, {})
9884
9884
  ] }),
@@ -9979,7 +9979,7 @@ const an = ({
9979
9979
  }
9980
9980
  );
9981
9981
  }, zu = I(Hu), qu = () => {
9982
- const A = window.app?.config, { onEvent: e } = V(), { selectedAccount: n } = ae(), { accounts: r } = b(), a = Qd(n, r), i = n.member_is_managed_by_user || !n.member_is_managed_by_user && A.enable_renaming_home_accounts, [o, s] = g.useState(!1), [c, u] = g.useState(a[0]), l = a.filter(
9982
+ const A = window.app?.config, { onEvent: e } = Y(), { selectedAccount: n } = ae(), { accounts: r } = b(), a = Qd(n, r), i = n.member_is_managed_by_user || !n.member_is_managed_by_user && A.enable_renaming_home_accounts, [o, s] = g.useState(!1), [c, u] = g.useState(a[0]), l = a.filter(
9983
9983
  (h) => i || n[h.name] || n[h.name] === 0
9984
9984
  );
9985
9985
  return /* @__PURE__ */ d(aA, { children: [
@@ -9993,7 +9993,7 @@ const an = ({
9993
9993
  }
9994
9994
  );
9995
9995
  return /* @__PURE__ */ t(g.Fragment, { children: i ? /* @__PURE__ */ d(aA, { children: [
9996
- /* @__PURE__ */ t(Z, { sx: { backgroundColor: "background.paper", px: 0 }, children: /* @__PURE__ */ d(
9996
+ /* @__PURE__ */ t(J, { sx: { backgroundColor: "background.paper", px: 0 }, children: /* @__PURE__ */ d(
9997
9997
  dA,
9998
9998
  {
9999
9999
  onClick: () => {
@@ -10001,13 +10001,13 @@ const an = ({
10001
10001
  },
10002
10002
  children: [
10003
10003
  v,
10004
- /* @__PURE__ */ t(N, { name: "chevron_right" })
10004
+ /* @__PURE__ */ t(P, { name: "chevron_right" })
10005
10005
  ]
10006
10006
  }
10007
10007
  ) }),
10008
10008
  /* @__PURE__ */ t(X, { sx: { ml: f ? 0 : 24 } })
10009
10009
  ] }) : C && /* @__PURE__ */ d(aA, { children: [
10010
- /* @__PURE__ */ t(Z, { sx: { backgroundColor: "background.paper", px: 24 }, children: v }),
10010
+ /* @__PURE__ */ t(J, { sx: { backgroundColor: "background.paper", px: 24 }, children: v }),
10011
10011
  /* @__PURE__ */ t(X, { sx: { ml: f ? 0 : 24 } })
10012
10012
  ] }) }, h.name);
10013
10013
  }),
@@ -10021,7 +10021,7 @@ const an = ({
10021
10021
  )
10022
10022
  ] });
10023
10023
  }, Ku = I(qu), Bu = () => {
10024
- const { onEvent: A } = V();
10024
+ const { onEvent: A } = Y();
10025
10025
  return g.useEffect(() => A(Q.ACCOUNT_DETAILS_VIEW), []), /* @__PURE__ */ d(oA, { children: [
10026
10026
  /* @__PURE__ */ t(Ku, {}),
10027
10027
  /* @__PURE__ */ t(Ru, {}),
@@ -10084,7 +10084,7 @@ const an = ({
10084
10084
  )
10085
10085
  ] });
10086
10086
  }, Gu = I(ku), Xu = () => {
10087
- const [A, e] = g.useState(""), { onEvent: n } = V(), { selectedAccount: r } = ae(), { accounts: a } = b(), { setFilter: i, sortedTransactions: o } = cA(), s = g.useMemo(() => o.find((c) => c.guid === A), [A]);
10087
+ const [A, e] = g.useState(""), { onEvent: n } = Y(), { selectedAccount: r } = ae(), { accounts: a } = b(), { setFilter: i, sortedTransactions: o } = cA(), s = g.useMemo(() => o.find((c) => c.guid === A), [A]);
10088
10088
  return g.useEffect(() => {
10089
10089
  i({
10090
10090
  dateRange: { start: mo(po(), 90), end: Eo() },
@@ -10139,7 +10139,7 @@ const an = ({
10139
10139
  /* @__PURE__ */ t(Pt, { index: 1, name: "account-details", value: A, children: /* @__PURE__ */ t(_u, {}) })
10140
10140
  ] });
10141
10141
  }, ju = I(Fu), Vn = (A) => A.top_level_category_guid === m.INCOME || A.category_guid === m.INCOME, ci = (A) => gr.includes(A.top_level_category_guid) || gr.includes(A.category_guid), Uu = (A) => A.top_level_category_guid === m.TRANSFER || A.category_guid === m.TRANSFER, li = (A) => !Vn(A) && !ci(A) && !Uu(A), jr = (A) => [...new Set(A.map((n) => n.category_guid))].map((n) => A.filter((r) => r.category_guid === n).map((r) => ({
10142
- x: J(new Date(r.year, r.month), U.MONTH_SHORT_YEAR),
10142
+ x: V(new Date(r.year, r.month), U.MONTH_SHORT_YEAR),
10143
10143
  y: r.total
10144
10144
  }))), Jn = (A, e) => {
10145
10145
  const n = [];
@@ -10147,7 +10147,7 @@ const an = ({
10147
10147
  const a = /* @__PURE__ */ new Date();
10148
10148
  for (; hA(r, a); )
10149
10149
  n.push({
10150
- x: J(r, U.MONTH_SHORT),
10150
+ x: V(r, U.MONTH_SHORT),
10151
10151
  y: A.filter((i) => i.year === r.getFullYear() && i.month === r.getMonth() + 1).reduce((i, o) => i + o.total, 0)
10152
10152
  }), r = YA(r, 1);
10153
10153
  return n;
@@ -10214,7 +10214,7 @@ const an = ({
10214
10214
  Bt,
10215
10215
  {
10216
10216
  sx: { pb: 0 },
10217
- title: /* @__PURE__ */ t(sa, { sx: { pb: 4 }, children: J(/* @__PURE__ */ new Date(), U.MONTH_LONG) })
10217
+ title: /* @__PURE__ */ t(sa, { sx: { pb: 4 }, children: V(/* @__PURE__ */ new Date(), U.MONTH_LONG) })
10218
10218
  }
10219
10219
  ),
10220
10220
  /* @__PURE__ */ t(yn, { sx: { p: 0 }, children: /* @__PURE__ */ t(t1, {}) })
@@ -10255,7 +10255,7 @@ const an = ({
10255
10255
  u && /* @__PURE__ */ t(w, { children: /* @__PURE__ */ t(r1, {}) })
10256
10256
  ] });
10257
10257
  }, i1 = I(a1), o1 = () => {
10258
- const [A, e] = g.useState(""), { accounts: n } = b(), { selectedAccounts: r } = vA(), { setSelectedAccount: a, setSelectedMember: i } = ae(), { members: o } = OA(), { onEvent: s } = V(), c = [...new Set(r.map((l) => l.account_type))], u = r.find((l) => A === l.guid);
10258
+ const [A, e] = g.useState(""), { accounts: n } = b(), { selectedAccounts: r } = vA(), { setSelectedAccount: a, setSelectedMember: i } = ae(), { members: o } = OA(), { onEvent: s } = Y(), c = [...new Set(r.map((l) => l.account_type))], u = r.find((l) => A === l.guid);
10259
10259
  return g.useEffect(() => {
10260
10260
  if (u) {
10261
10261
  a(u);
@@ -10370,7 +10370,7 @@ const an = ({
10370
10370
  }
10371
10371
  );
10372
10372
  }, l1 = I(c1), d1 = ({ onBackClick: A, sx: e = {} }) => {
10373
- const [n, r] = g.useState(!1), [a, i] = g.useState(!1), { accounts: o, refreshMembers: s } = OA(), { accounts: c } = b(), { setSelectedAccounts: u, selectedAccountGuids: l } = vA(), { isDesktop: h } = jA(), { onEvent: C } = V();
10373
+ const [n, r] = g.useState(!1), [a, i] = g.useState(!1), { accounts: o, refreshMembers: s } = OA(), { accounts: c } = b(), { setSelectedAccounts: u, selectedAccountGuids: l } = vA(), { isDesktop: h } = jA(), { onEvent: C } = Y();
10374
10374
  g.useEffect(() => {
10375
10375
  u(o);
10376
10376
  }, [o]);
@@ -10430,7 +10430,7 @@ const an = ({
10430
10430
  sx: e,
10431
10431
  title: r.mini_title,
10432
10432
  children: /* @__PURE__ */ d(oA, { children: [
10433
- i.length < 1 && /* @__PURE__ */ t(Z, { sx: { justifyContent: "center" }, children: r.no_accounts }),
10433
+ i.length < 1 && /* @__PURE__ */ t(J, { sx: { justifyContent: "center" }, children: r.no_accounts }),
10434
10434
  i.map((s, c) => {
10435
10435
  const u = i.indexOf(s) === i.length - 1;
10436
10436
  return /* @__PURE__ */ d(g.Fragment, { children: [
@@ -10964,7 +10964,7 @@ class v1 {
10964
10964
  addAccount = async (e) => {
10965
10965
  try {
10966
10966
  const n = await this.api.createAccount(e);
10967
- nA(() => {
10967
+ tA(() => {
10968
10968
  this.accounts = [...this.accounts, n];
10969
10969
  });
10970
10970
  } catch (n) {
@@ -10992,7 +10992,7 @@ class v1 {
10992
10992
  await this.loadMembers();
10993
10993
  try {
10994
10994
  const e = await this.api.getAccounts();
10995
- nA(() => {
10995
+ tA(() => {
10996
10996
  this.accounts = this.sortAccounts(this.augmentAccounts(e));
10997
10997
  });
10998
10998
  } catch (e) {
@@ -11002,7 +11002,7 @@ class v1 {
11002
11002
  loadInstitutions = async () => {
11003
11003
  try {
11004
11004
  const e = await this.api.getInstitutions();
11005
- nA(() => {
11005
+ tA(() => {
11006
11006
  this.institutions = e;
11007
11007
  });
11008
11008
  } catch (e) {
@@ -11012,7 +11012,7 @@ class v1 {
11012
11012
  loadMembers = async () => {
11013
11013
  try {
11014
11014
  const e = await this.api.getMembers();
11015
- nA(() => {
11015
+ tA(() => {
11016
11016
  this.members = e;
11017
11017
  });
11018
11018
  } catch (e) {
@@ -11022,7 +11022,7 @@ class v1 {
11022
11022
  mergeAccounts = async (e) => {
11023
11023
  try {
11024
11024
  const n = await this.api.mergeAccounts(e), r = n[Object.keys(n)[0]];
11025
- nA(() => {
11025
+ tA(() => {
11026
11026
  const a = this.accounts.findIndex((o) => o.guid === e[1]);
11027
11027
  this.accounts.splice(a, 1);
11028
11028
  const i = this.accounts.findIndex((o) => o.guid === e[0]);
@@ -11045,7 +11045,7 @@ class v1 {
11045
11045
  };
11046
11046
  removeAccount = async (e) => {
11047
11047
  try {
11048
- await this.api.deleteAccount(e), nA(() => {
11048
+ await this.api.deleteAccount(e), tA(() => {
11049
11049
  const n = this.accounts.findIndex((r) => r.guid === e);
11050
11050
  this.accounts.splice(n, 1);
11051
11051
  });
@@ -11056,7 +11056,7 @@ class v1 {
11056
11056
  updateAccount = async (e) => {
11057
11057
  try {
11058
11058
  const n = await this.api.updateAccount(e);
11059
- nA(() => {
11059
+ tA(() => {
11060
11060
  const r = this.accounts.findIndex(
11061
11061
  (a) => a.guid === n.guid
11062
11062
  );
@@ -11259,7 +11259,7 @@ const m1 = (A, e) => !A && !e ? 0 : !A && e ? 101 : e / A * 100, p1 = (A, e, n)
11259
11259
  }, N1 = () => {
11260
11260
  const { budgets: A } = b();
11261
11261
  return /* @__PURE__ */ d(w, { alignItems: "center", gap: 12, sx: { mx: 24, textAlign: "center" }, children: [
11262
- /* @__PURE__ */ t(N, { name: "bubble_chart", size: 48 }),
11262
+ /* @__PURE__ */ t(P, { name: "bubble_chart", size: 48 }),
11263
11263
  /* @__PURE__ */ t(y, { bold: !0, variant: "Paragraph", children: A.zero_state_title }),
11264
11264
  /* @__PURE__ */ t(y, { sx: { whiteSpace: "wrap" }, variant: "Paragraph", children: A.zero_state_description })
11265
11265
  ] });
@@ -11421,7 +11421,7 @@ const z1 = () => {
11421
11421
  return /* @__PURE__ */ d(D, { children: [
11422
11422
  /* @__PURE__ */ t(Zn, { children: r }),
11423
11423
  A.map((h, C) => /* @__PURE__ */ d(D, { children: [
11424
- /* @__PURE__ */ t(Z, { children: /* @__PURE__ */ d(dA, { onClick: () => c(h), children: [
11424
+ /* @__PURE__ */ t(J, { children: /* @__PURE__ */ d(dA, { onClick: () => c(h), children: [
11425
11425
  /* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(
11426
11426
  ve,
11427
11427
  {
@@ -11463,8 +11463,8 @@ const z1 = () => {
11463
11463
  }, di = ({ iconName: A, label: e, onClick: n, itemCount: r }) => {
11464
11464
  const a = CA();
11465
11465
  return /* @__PURE__ */ d(aA, { children: [
11466
- /* @__PURE__ */ t(Z, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ d(dA, { onClick: n, children: [
11467
- /* @__PURE__ */ t(N, { name: A, size: 24, sx: { marginRight: 16 } }),
11466
+ /* @__PURE__ */ t(J, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ d(dA, { onClick: n, children: [
11467
+ /* @__PURE__ */ t(P, { name: A, size: 24, sx: { marginRight: 16 } }),
11468
11468
  /* @__PURE__ */ t(
11469
11469
  lA,
11470
11470
  {
@@ -11489,7 +11489,7 @@ const z1 = () => {
11489
11489
  children: r
11490
11490
  }
11491
11491
  ),
11492
- /* @__PURE__ */ t(N, { name: "chevron_right", size: 24 })
11492
+ /* @__PURE__ */ t(P, { name: "chevron_right", size: 24 })
11493
11493
  ] }) }),
11494
11494
  /* @__PURE__ */ t(X, {})
11495
11495
  ] });
@@ -11672,18 +11672,18 @@ const gi = ({
11672
11672
  f && !a && l(c);
11673
11673
  }, [f, a, c, l]);
11674
11674
  const v = (L) => {
11675
- const { name: O, checked: M } = L.target;
11675
+ const { name: O, checked: N } = L.target;
11676
11676
  l((x) => ({
11677
11677
  ...x,
11678
- [O]: M
11678
+ [O]: N
11679
11679
  }));
11680
11680
  }, p = Object.values(u).filter(Boolean).length, E = () => {
11681
11681
  l(c), i();
11682
11682
  }, T = () => {
11683
11683
  const L = e.reduce(
11684
- (O, M) => ({
11684
+ (O, N) => ({
11685
11685
  ...O,
11686
- [M.name]: p !== e.length
11686
+ [N.name]: p !== e.length
11687
11687
  }),
11688
11688
  {}
11689
11689
  );
@@ -11760,12 +11760,12 @@ const gi = ({
11760
11760
  ) }),
11761
11761
  sx: { height: "100%" },
11762
11762
  children: e.sort((L, O) => L.name < O.name ? -1 : 1).map((L, O) => /* @__PURE__ */ d(D, { children: [
11763
- /* @__PURE__ */ t(Z, { disablePadding: !0, children: /* @__PURE__ */ d(
11763
+ /* @__PURE__ */ t(J, { disablePadding: !0, children: /* @__PURE__ */ d(
11764
11764
  dA,
11765
11765
  {
11766
- onClick: () => l((M) => ({
11767
- ...M,
11768
- [L.name]: !M[L.name]
11766
+ onClick: () => l((N) => ({
11767
+ ...N,
11768
+ [L.name]: !N[L.name]
11769
11769
  })),
11770
11770
  children: [
11771
11771
  /* @__PURE__ */ t(
@@ -11913,20 +11913,20 @@ const gi = ({
11913
11913
  update: r,
11914
11914
  isUpdateError: a,
11915
11915
  isUpdateLoading: i
11916
- } = e, [o, s, c] = U1(n), { toastState: u, showToast: l, hideToast: h, setMessage: C } = hi(), [f, v] = g.useState(!1), [p, E] = g.useState(!1), [T, S] = g.useState(""), [L, O] = g.useState(""), M = Na(i);
11916
+ } = e, [o, s, c] = U1(n), { toastState: u, showToast: l, hideToast: h, setMessage: C } = hi(), [f, v] = g.useState(!1), [p, E] = g.useState(!1), [T, S] = g.useState(""), [L, O] = g.useState(""), N = Na(i);
11917
11917
  se(() => {
11918
- M && !i && (a ? l(A.something_went_wrong, "error") : l(void 0, "success"));
11919
- }, [M, a]);
11918
+ N && !i && (a ? l(A.something_went_wrong, "error") : l(void 0, "success"));
11919
+ }, [N, a]);
11920
11920
  const x = () => {
11921
11921
  C(
11922
11922
  n.length > 1 ? A.insights_unhidden : A.insight_unhidden
11923
- ), r(n.map((G) => G.name));
11924
- }, K = (G, k) => {
11925
- E(!0), S(G), O(k);
11923
+ ), r(n.map((k) => k.name));
11924
+ }, K = (k, G) => {
11925
+ E(!0), S(k), O(G);
11926
11926
  }, B = () => {
11927
11927
  E(!1), O(""), S("");
11928
- }, _ = (G, k) => {
11929
- r(G), k && E(!1), C(G.length > 1 ? A.insights_unhidden : A.insight_unhidden);
11928
+ }, _ = (k, G) => {
11929
+ r(k), G && E(!1), C(k.length > 1 ? A.insights_unhidden : A.insight_unhidden);
11930
11930
  };
11931
11931
  return /* @__PURE__ */ d(aA, { children: [
11932
11932
  /* @__PURE__ */ t(
@@ -11954,40 +11954,40 @@ const gi = ({
11954
11954
  children: [
11955
11955
  /* @__PURE__ */ t(X, {}),
11956
11956
  n.length > 0 ? /* @__PURE__ */ t(oA, { sx: { height: "100%" }, children: o.map(
11957
- (G) => s[G.key] !== "" && /* @__PURE__ */ t(
11957
+ (k) => s[k.key] !== "" && /* @__PURE__ */ t(
11958
11958
  oA,
11959
11959
  {
11960
- subheader: /* @__PURE__ */ t(Zn, { children: s[G.key] }),
11961
- children: G.subcategories.map(
11962
- (k, P) => k.beats.length > 0 && /* @__PURE__ */ d(D, { children: [
11963
- /* @__PURE__ */ t(Z, { disablePadding: !0, children: /* @__PURE__ */ d(
11960
+ subheader: /* @__PURE__ */ t(Zn, { children: s[k.key] }),
11961
+ children: k.subcategories.map(
11962
+ (G, M) => G.beats.length > 0 && /* @__PURE__ */ d(D, { children: [
11963
+ /* @__PURE__ */ t(J, { disablePadding: !0, children: /* @__PURE__ */ d(
11964
11964
  dA,
11965
11965
  {
11966
- onClick: () => K(G.key, k.key),
11966
+ onClick: () => K(k.key, G.key),
11967
11967
  children: [
11968
11968
  /* @__PURE__ */ t(
11969
11969
  lA,
11970
11970
  {
11971
- primary: c[k.key].replace(
11971
+ primary: c[G.key].replace(
11972
11972
  /&amp;/g,
11973
11973
  "&"
11974
11974
  ),
11975
11975
  secondary: /* @__PURE__ */ d(g.Fragment, { children: [
11976
- k.beats.length,
11976
+ G.beats.length,
11977
11977
  " ",
11978
- k.beats.length > 1 ? A.insights_hidden : A.insight_hidden
11978
+ G.beats.length > 1 ? A.insights_hidden : A.insight_hidden
11979
11979
  ] })
11980
11980
  }
11981
11981
  ),
11982
- /* @__PURE__ */ t(N, { name: "chevron_right", size: 24 })
11982
+ /* @__PURE__ */ t(P, { name: "chevron_right", size: 24 })
11983
11983
  ]
11984
11984
  }
11985
11985
  ) }),
11986
- /* @__PURE__ */ t(X, { sx: { ml: P < G.subcategories.length - 1 ? 24 : 0 } })
11987
- ] }, k.key)
11986
+ /* @__PURE__ */ t(X, { sx: { ml: M < k.subcategories.length - 1 ? 24 : 0 } })
11987
+ ] }, G.key)
11988
11988
  )
11989
11989
  },
11990
- G.key
11990
+ k.key
11991
11991
  )
11992
11992
  ) }) : /* @__PURE__ */ t(X1, { content: A }),
11993
11993
  /* @__PURE__ */ d(D, { boxSizing: "border-box", pb: 32, pt: 24, px: 24, children: [
@@ -12021,7 +12021,7 @@ const gi = ({
12021
12021
  Q1,
12022
12022
  {
12023
12023
  content: A,
12024
- disabledBeatTemplates: L !== "" ? o.filter((G) => G.key === T)[0].subcategories.filter((G) => G.key === L)[0].beats : [],
12024
+ disabledBeatTemplates: L !== "" ? o.filter((k) => k.key === T)[0].subcategories.filter((k) => k.key === L)[0].beats : [],
12025
12025
  handleEnableBeatTemplates: _,
12026
12026
  isOpen: p,
12027
12027
  isUpdateLoading: i,
@@ -12281,7 +12281,7 @@ class V1 {
12281
12281
  };
12282
12282
  loadCopy = async () => {
12283
12283
  const e = await this.copyApi.getGlobalCopy(this.namespace, this.translationKey);
12284
- nA(() => {
12284
+ tA(() => {
12285
12285
  this.copyObject = e[this.translationKey];
12286
12286
  });
12287
12287
  };
@@ -12477,7 +12477,7 @@ class eh {
12477
12477
  this.copyStore = new V1(), this.insightsMicroWidgetStore = new Ah(), wA(this);
12478
12478
  }
12479
12479
  initialize = async (e, n, r) => {
12480
- await this.copyStore.initialize(e, n), await this.insightsMicroWidgetStore.initialize(e, n, r), this.session = await As(e, n, "1.0.0", "Micro Insights Carousel"), nA(() => {
12480
+ console.log("Experiences > microinsights initialize"), await this.copyStore.initialize(e, n), await this.insightsMicroWidgetStore.initialize(e, n, r), this.session = await As(e, n, "1.0.0", "Micro Insights Carousel"), tA(() => {
12481
12481
  this.isInitialized = !0;
12482
12482
  });
12483
12483
  };
@@ -12544,7 +12544,7 @@ const pt = g.createContext(null), th = ({
12544
12544
  return !a.length || !i.length ? e.Color.Primary300 : a[0].amount > i[0].amount ? e.Color.Error300 : a[0].amount < i[0].amount ? e.Color.Success300 : e.Color.Primary300;
12545
12545
  }, lh = ({ beat: A }) => {
12546
12546
  const e = yA(), n = ch(A.data_series, e);
12547
- return /* @__PURE__ */ t(N, { name: "bar_chart", sx: { color: n } });
12547
+ return /* @__PURE__ */ t(P, { name: "bar_chart", sx: { color: n } });
12548
12548
  }, pi = () => /* @__PURE__ */ d("svg", { fill: "none", height: "36", viewBox: "0 0 40 36", width: "40", xmlns: "http://www.w3.org/2000/svg", children: [
12549
12549
  /* @__PURE__ */ t(
12550
12550
  "path",
@@ -13328,8 +13328,8 @@ const pt = g.createContext(null), th = ({
13328
13328
  ] })
13329
13329
  ] }), na = ({ beat: A, clientColorScheme: e, color: n, type: r }) => {
13330
13330
  const a = CA(), i = e?.primary_300 ? e.primary_300 : a.palette.primary.main;
13331
- return r === 0 ? /* @__PURE__ */ t(N, { fill: !0, name: "error", sx: { color: n || i } }) : r === 1 && A ? /* @__PURE__ */ t(nh, { beat: A }) : r === 2 && A ? /* @__PURE__ */ t(ih, { beat: A }) : r === 3 && A ? /* @__PURE__ */ t(lh, { beat: A }) : /* @__PURE__ */ t(
13332
- N,
13331
+ return r === 0 ? /* @__PURE__ */ t(P, { fill: !0, name: "error", sx: { color: n || i } }) : r === 1 && A ? /* @__PURE__ */ t(nh, { beat: A }) : r === 2 && A ? /* @__PURE__ */ t(ih, { beat: A }) : r === 3 && A ? /* @__PURE__ */ t(lh, { beat: A }) : /* @__PURE__ */ t(
13332
+ P,
13333
13333
  {
13334
13334
  fill: !0,
13335
13335
  name: "info",
@@ -13516,7 +13516,7 @@ const pt = g.createContext(null), th = ({
13516
13516
  variant: u,
13517
13517
  widthOverrides: l
13518
13518
  }) => {
13519
- const h = mh(r, c, l), C = g.useRef(null), [f, v] = g.useState(0), [p, E] = g.useState(null), [T, S] = g.useState(null), { carouselCopy: L } = ke(), { onEvent: O } = Et(), M = () => {
13519
+ const h = mh(r, c, l), C = g.useRef(null), [f, v] = g.useState(0), [p, E] = g.useState(null), [T, S] = g.useState(null), { carouselCopy: L } = ke(), { onEvent: O } = Et(), N = () => {
13520
13520
  O($A.ON_CAROUSEL_FORWARD_CLICK), C.current && C.current.scrollTo({
13521
13521
  left: (
13522
13522
  // Adds the flex gap to the carousel ulRef's width
@@ -13538,16 +13538,16 @@ const pt = g.createContext(null), th = ({
13538
13538
  T - p > dh ? O($A.ON_CAROUSEL_FORWARD_SWIPE) : O($A.ON_CAROUSEL_BACK_SWIPE);
13539
13539
  }, _ = (rA) => {
13540
13540
  E(rA.targetTouches[0].clientX);
13541
- }, G = (rA) => {
13541
+ }, k = (rA) => {
13542
13542
  E(null), S(rA.targetTouches[0].clientX);
13543
- }, k = {
13543
+ }, G = {
13544
13544
  clientColorScheme: e,
13545
13545
  showCTAColocatedWithText: n,
13546
13546
  heightOverrides: r,
13547
13547
  showIcon: s,
13548
13548
  variant: u,
13549
13549
  widthOverrides: l
13550
- }, P = C.current && C.current.offsetWidth ? Math.round(f / C.current.offsetWidth) : 0, W = C.current ? C.current.scrollWidth - C.current.offsetWidth : 0;
13550
+ }, M = C.current && C.current.offsetWidth ? Math.round(f / C.current.offsetWidth) : 0, nA = C.current ? C.current.scrollWidth - C.current.offsetWidth : 0;
13551
13551
  return /* @__PURE__ */ d("div", { className: h, children: [
13552
13552
  /* @__PURE__ */ d(
13553
13553
  "ul",
@@ -13556,7 +13556,7 @@ const pt = g.createContext(null), th = ({
13556
13556
  onScroll: K,
13557
13557
  onTouchEnd: B,
13558
13558
  onTouchMove: _,
13559
- onTouchStart: G,
13559
+ onTouchStart: k,
13560
13560
  ref: C,
13561
13561
  children: [
13562
13562
  A.map((rA, IA) => /* @__PURE__ */ t(
@@ -13569,19 +13569,19 @@ const pt = g.createContext(null), th = ({
13569
13569
  ),
13570
13570
  beat: rA,
13571
13571
  index: IA,
13572
- isActiveCard: IA === P,
13572
+ isActiveCard: IA === M,
13573
13573
  onCardClick: a,
13574
13574
  posthog: i,
13575
- ...k
13575
+ ...G
13576
13576
  },
13577
13577
  `${rA.guid} ${IA}`
13578
13578
  )),
13579
13579
  /* @__PURE__ */ t(
13580
13580
  bh,
13581
13581
  {
13582
- isActiveCard: P === A.length,
13582
+ isActiveCard: M === A.length,
13583
13583
  onCardClick: a,
13584
- ...k
13584
+ ...G
13585
13585
  }
13586
13586
  )
13587
13587
  ]
@@ -13591,11 +13591,11 @@ const pt = g.createContext(null), th = ({
13591
13591
  gh,
13592
13592
  {
13593
13593
  clientColorScheme: e,
13594
- currentBeatIndex: P,
13594
+ currentBeatIndex: M,
13595
13595
  numBeats: A.length + 1,
13596
- onNextClick: M,
13596
+ onNextClick: N,
13597
13597
  onPreviousClick: x,
13598
- scrollRightBoundary: W,
13598
+ scrollRightBoundary: nA,
13599
13599
  scrollX: f
13600
13600
  }
13601
13601
  )
@@ -13648,8 +13648,8 @@ const pt = g.createContext(null), th = ({
13648
13648
  g.useEffect(() => {
13649
13649
  p && p <= 325 && S(3), p && p > 325 && S(2);
13650
13650
  }, [p]);
13651
- const { cardStyle: L, linkTextStyle: O } = h, M = v ? L : { border: "none", boxShadow: "none", ...L }, x = ph(
13652
- M,
13651
+ const { cardStyle: L, linkTextStyle: O } = h, N = v ? L : { border: "none", boxShadow: "none", ...L }, x = ph(
13652
+ N,
13653
13653
  a,
13654
13654
  C,
13655
13655
  T,
@@ -13858,14 +13858,11 @@ const pt = g.createContext(null), th = ({
13858
13858
  variant: L,
13859
13859
  widthOverrides: O
13860
13860
  }) => {
13861
- const [M, x] = ie("STANDARD"), [K, B] = ie(!1), _ = ms([c], Pe), G = ps([u], Pe);
13861
+ const [N] = ie("STANDARD"), [x, K] = ie(!1), B = ms([c], Pe), _ = ps([u], Pe);
13862
13862
  g.useEffect(() => {
13863
13863
  Pe.initialize(a, E, o);
13864
13864
  }, [a, E, o]), g.useEffect(() => {
13865
- const W = window.innerHeight;
13866
- W < 180 ? x("STANDARD") : W >= 180 && W < 200 ? x("LARGE") : W >= 200 && W < 248 ? x("XLARGE") : W >= 248 && x("XXLARGE");
13867
- }, []), g.useEffect(() => {
13868
- B(!A && Pe.isInitialized);
13865
+ K(!A && Pe.isInitialized);
13869
13866
  }, [A, Pe.isInitialized]);
13870
13867
  const k = {
13871
13868
  showCTAColocatedWithText: r,
@@ -13875,8 +13872,8 @@ const pt = g.createContext(null), th = ({
13875
13872
  showWithMargin: p,
13876
13873
  useDarkMode: T,
13877
13874
  widthOverrides: O
13878
- }, P = {
13879
- carouselSize: M,
13875
+ }, G = {
13876
+ carouselSize: N,
13880
13877
  posthog: l,
13881
13878
  variant: L,
13882
13879
  ...k
@@ -13885,7 +13882,7 @@ const pt = g.createContext(null), th = ({
13885
13882
  // The Theme provider must wrap the component so that the styles don't break when imported into other applications.
13886
13883
  /* @__PURE__ */ d(la, { theme: Ct(T ? "dark" : "light"), children: [
13887
13884
  /* @__PURE__ */ t($o, {}),
13888
- /* @__PURE__ */ t(th, { onEvent: _, onPageview: G, store: Pe, children: /* @__PURE__ */ d(
13885
+ /* @__PURE__ */ t(th, { onEvent: B, onPageview: _, store: Pe, children: /* @__PURE__ */ d(
13889
13886
  D,
13890
13887
  {
13891
13888
  sx: {
@@ -13896,7 +13893,7 @@ const pt = g.createContext(null), th = ({
13896
13893
  },
13897
13894
  children: [
13898
13895
  (A || !Pe.isInitialized) && /* @__PURE__ */ t(wh, {}),
13899
- K && f && /* @__PURE__ */ t(
13896
+ x && f && /* @__PURE__ */ t(
13900
13897
  yh,
13901
13898
  {
13902
13899
  clientColorScheme: n,
@@ -13905,7 +13902,7 @@ const pt = g.createContext(null), th = ({
13905
13902
  widthOverrides: O
13906
13903
  }
13907
13904
  ),
13908
- K && !!e.length && /* @__PURE__ */ t(
13905
+ x && !!e.length && /* @__PURE__ */ t(
13909
13906
  vh,
13910
13907
  {
13911
13908
  beats: e,
@@ -13915,8 +13912,8 @@ const pt = g.createContext(null), th = ({
13915
13912
  ...k
13916
13913
  }
13917
13914
  ),
13918
- K && !e.length && S && /* @__PURE__ */ t(Sh, { clientColorScheme: n, ...P }),
13919
- K && !e.length && !S && /* @__PURE__ */ t(Oh, { ...P })
13915
+ x && !e.length && S && /* @__PURE__ */ t(Sh, { clientColorScheme: n, ...G }),
13916
+ x && !e.length && !S && /* @__PURE__ */ t(Oh, { ...G })
13920
13917
  ]
13921
13918
  }
13922
13919
  ) })
@@ -14335,7 +14332,7 @@ const pt = g.createContext(null), th = ({
14335
14332
  /* @__PURE__ */ t(X, { "aria-hidden": "true" }),
14336
14333
  /* @__PURE__ */ t(oA, { children: A.categoryData.map((o) => /* @__PURE__ */ d(g.Fragment, { children: [
14337
14334
  /* @__PURE__ */ t(
14338
- Z,
14335
+ J,
14339
14336
  {
14340
14337
  disableGutters: !0,
14341
14338
  disablePadding: !0,
@@ -14380,7 +14377,7 @@ const pt = g.createContext(null), th = ({
14380
14377
  /* @__PURE__ */ t(X, {}),
14381
14378
  o.categoryTotals && o.categoryTotals.length > 0 && /* @__PURE__ */ t(pa, { in: i?.guid === o.guid, unmountOnExit: !0, children: /* @__PURE__ */ d(oA, { children: [
14382
14379
  i?.categoryTotals?.map((s) => /* @__PURE__ */ t(
14383
- Z,
14380
+ J,
14384
14381
  {
14385
14382
  sx: {
14386
14383
  pl: 24,
@@ -14477,7 +14474,7 @@ const pt = g.createContext(null), th = ({
14477
14474
  ), O = g.useMemo(
14478
14475
  () => u.find((B) => B.guid === v),
14479
14476
  [v]
14480
- ), M = (B, _) => {
14477
+ ), N = (B, _) => {
14481
14478
  f(_), h("");
14482
14479
  }, x = (B) => {
14483
14480
  h(l === B || B === "0" ? "" : B);
@@ -14488,25 +14485,25 @@ const pt = g.createContext(null), th = ({
14488
14485
  };
14489
14486
  if (C === 0)
14490
14487
  if (B === "other") {
14491
- const G = S.categoryData.find((k) => k.guid === "other");
14488
+ const k = S.categoryData.find((G) => G.guid === "other");
14492
14489
  c({
14493
14490
  ..._,
14494
- custom: (k) => !!G?.categoryTotals?.find((P) => P.guid === k.top_level_category_guid)
14491
+ custom: (G) => !!k?.categoryTotals?.find((M) => M.guid === G.top_level_category_guid)
14495
14492
  });
14496
14493
  } else
14497
14494
  c({
14498
14495
  ..._,
14499
- custom: (G) => B ? G.top_level_category_guid === B : G.top_level_category_guid !== m.INCOME
14496
+ custom: (k) => B ? k.top_level_category_guid === B : k.top_level_category_guid !== m.INCOME
14500
14497
  });
14501
14498
  else
14502
14499
  c({
14503
14500
  ..._,
14504
- custom: (G) => B ? G.category_guid === B : G.top_level_category_guid === m.INCOME
14501
+ custom: (k) => B ? k.category_guid === B : k.top_level_category_guid === m.INCOME
14505
14502
  });
14506
14503
  T(!0);
14507
14504
  };
14508
14505
  return /* @__PURE__ */ d(D, { children: [
14509
- /* @__PURE__ */ d(Ze, { onChange: M, value: C, variant: "fullWidth", children: [
14506
+ /* @__PURE__ */ d(Ze, { onChange: N, value: C, variant: "fullWidth", children: [
14510
14507
  /* @__PURE__ */ t(
14511
14508
  ee,
14512
14509
  {
@@ -14574,11 +14571,11 @@ const pt = g.createContext(null), th = ({
14574
14571
  )
14575
14572
  ] });
14576
14573
  }, _h = I(Bh), kh = ({ onBackClick: A, sx: e = {} }) => {
14577
- const { accounts: n } = OA(), { spending: r } = b(), { isInitialized: a, setDisplayedDate: i, setSelectedAccounts: o } = vA(), { onEvent: s } = V(), [c, u] = g.useState(!1);
14574
+ const { accounts: n } = OA(), { spending: r } = b(), { isInitialized: a, setDisplayedDate: i, setSelectedAccounts: o } = vA(), { onEvent: s } = Y(), [c, u] = g.useState(!1);
14578
14575
  g.useEffect(() => {
14579
14576
  o(n);
14580
14577
  }, [n]), g.useEffect(() => {
14581
- i(EA($()), DA($())), u(!0), s(Q.SPENDING_VIEW);
14578
+ i(EA(Z()), DA(Z())), u(!0), s(Q.SPENDING_VIEW);
14582
14579
  }, []);
14583
14580
  const l = (h) => {
14584
14581
  i(h[0], h[1]);
@@ -14616,9 +14613,9 @@ const pt = g.createContext(null), th = ({
14616
14613
  height: e = "100dvh",
14617
14614
  sx: n = {}
14618
14615
  }) => {
14619
- const { onEvent: r } = V(), a = J(/* @__PURE__ */ new Date(), U.MONTH_SHORT), [i, o] = g.useState([
14616
+ const { onEvent: r } = Y(), a = V(/* @__PURE__ */ new Date(), U.MONTH_SHORT), [i, o] = g.useState([
14620
14617
  { field: a, sort: "desc" }
14621
- ]), s = A.reduce((l, h) => (l[h.month] || (l[h.month] = J(
14618
+ ]), s = A.reduce((l, h) => (l[h.month] || (l[h.month] = V(
14622
14619
  new Date(h.year, h.month, 1),
14623
14620
  U.MONTH
14624
14621
  )), l), []).filter(Boolean), c = [
@@ -14652,7 +14649,7 @@ const pt = g.createContext(null), th = ({
14652
14649
  const { category_guid: f, top_level_category_guid: v, month: p, total: E, year: T } = C;
14653
14650
  if (f === v) {
14654
14651
  h[f] || (h[f] = { id: f, category: f });
14655
- const S = J(new Date(T, p, 1), U.MONTH_SHORT);
14652
+ const S = V(new Date(T, p, 1), U.MONTH_SHORT);
14656
14653
  h[f][S] = E;
14657
14654
  }
14658
14655
  return h;
@@ -14680,11 +14677,11 @@ const pt = g.createContext(null), th = ({
14680
14677
  }
14681
14678
  ) });
14682
14679
  }, jh = ({ onBackClick: A, sx: e }) => {
14683
- const n = Ke(), { onEvent: r } = V(), { isDesktop: a, isTablet: i, isMobile: o } = jA(), { accounts: s } = OA(), { categories: c, loadMonthlyCategoryTotals: u, monthlyCategoryTotals: l } = xA(), { isInitialized: h, selectedAccounts: C, setSelectedAccounts: f } = vA(), { trends: v } = b(), p = n.palette.mode === "dark", [E, T] = g.useState(!1), [S, L] = g.useState("Chart"), [O, M] = g.useState({
14680
+ const n = Ke(), { onEvent: r } = Y(), { isDesktop: a, isTablet: i, isMobile: o } = jA(), { accounts: s } = OA(), { categories: c, loadMonthlyCategoryTotals: u, monthlyCategoryTotals: l } = xA(), { isInitialized: h, selectedAccounts: C, setSelectedAccounts: f } = vA(), { trends: v } = b(), p = n.palette.mode === "dark", [E, T] = g.useState(!1), [S, L] = g.useState("Chart"), [O, N] = g.useState({
14684
14681
  start: EA(Ce(/* @__PURE__ */ new Date(), 5)),
14685
14682
  end: DA(/* @__PURE__ */ new Date())
14686
- }), x = (P, W) => {
14687
- L(W ?? S), r(Q.TRENDS_CLICK_TOGGLE);
14683
+ }), x = (M, nA) => {
14684
+ L(nA ?? S), r(Q.TRENDS_CLICK_TOGGLE);
14688
14685
  };
14689
14686
  g.useEffect(() => {
14690
14687
  f(s);
@@ -14696,20 +14693,20 @@ const pt = g.createContext(null), th = ({
14696
14693
  ).finally(() => {
14697
14694
  T(!0);
14698
14695
  });
14699
- }, [c, h, C, M]);
14696
+ }, [c, h, C, N]);
14700
14697
  const K = g.useMemo(
14701
- () => Ju(l).sort((P, W) => P.month - W.month),
14698
+ () => Ju(l).sort((M, nA) => M.month - nA.month),
14702
14699
  [l]
14703
14700
  ), B = g.useMemo(
14704
14701
  () => jr(K.filter(li)),
14705
14702
  [c, l]
14706
14703
  ), _ = g.useMemo(
14707
- () => K.map((P) => Ue[P.category_guid] ?? Ue.default),
14708
- [c, l]
14709
- ), G = g.useMemo(
14710
- () => [...new Set(K.map((P) => P.category_guid))],
14704
+ () => K.map((M) => Ue[M.category_guid] ?? Ue.default),
14711
14705
  [c, l]
14712
14706
  ), k = g.useMemo(
14707
+ () => [...new Set(K.map((M) => M.category_guid))],
14708
+ [c, l]
14709
+ ), G = g.useMemo(
14713
14710
  () => jr(K.filter(Vn)),
14714
14711
  [c, l]
14715
14712
  );
@@ -14718,16 +14715,16 @@ const pt = g.createContext(null), th = ({
14718
14715
  {
14719
14716
  accountOptions: s,
14720
14717
  calendarActions: {
14721
- onRangeChanged(P) {
14718
+ onRangeChanged(M) {
14722
14719
  u(
14723
14720
  C,
14724
- P?.[0],
14725
- P?.[1]
14726
- ), M({
14727
- start: P?.[0],
14728
- end: P?.[1]
14721
+ M?.[0],
14722
+ M?.[1]
14723
+ ), N({
14724
+ start: M?.[0],
14725
+ end: M?.[1]
14729
14726
  }), r(Q.TRENDS_CLICK_DATE, {
14730
- time_period: yo(P?.[1], P?.[0]) + "M"
14727
+ time_period: yo(M?.[1], M?.[0]) + "M"
14731
14728
  });
14732
14729
  }
14733
14730
  },
@@ -14768,14 +14765,14 @@ const pt = g.createContext(null), th = ({
14768
14765
  }
14769
14766
  ),
14770
14767
  /* @__PURE__ */ d(y, { variant: a ? "Body" : "Small", children: [
14771
- J(
14768
+ V(
14772
14769
  O.start,
14773
14770
  o ? U.MONTH_SHORT_YEAR : U.MONTH_YEAR
14774
14771
  ),
14775
14772
  " ",
14776
14773
  "-",
14777
14774
  " ",
14778
- J(
14775
+ V(
14779
14776
  O.end,
14780
14777
  o ? U.MONTH_SHORT_YEAR : U.MONTH_YEAR
14781
14778
  )
@@ -14788,7 +14785,7 @@ const pt = g.createContext(null), th = ({
14788
14785
  onChange: x,
14789
14786
  orientation: "horizontal",
14790
14787
  value: S,
14791
- children: ["Chart", "Table"].map((P) => /* @__PURE__ */ t(
14788
+ children: ["Chart", "Table"].map((M) => /* @__PURE__ */ t(
14792
14789
  En,
14793
14790
  {
14794
14791
  sx: {
@@ -14813,10 +14810,10 @@ const pt = g.createContext(null), th = ({
14813
14810
  color: n.palette.grey[500]
14814
14811
  }
14815
14812
  },
14816
- value: P,
14817
- children: P === "Chart" ? /* @__PURE__ */ t(N, { name: "table_chart_view" }) : /* @__PURE__ */ t(N, { name: "format_list_bulleted" })
14813
+ value: M,
14814
+ children: M === "Chart" ? /* @__PURE__ */ t(P, { name: "table_chart_view" }) : /* @__PURE__ */ t(P, { name: "format_list_bulleted" })
14818
14815
  },
14819
- P
14816
+ M
14820
14817
  ))
14821
14818
  }
14822
14819
  )
@@ -14827,21 +14824,21 @@ const pt = g.createContext(null), th = ({
14827
14824
  S === "Chart" && /* @__PURE__ */ t(
14828
14825
  Vs,
14829
14826
  {
14830
- onHoverArea: (P) => r(Q.TRENDS_HOVER_AREA, {
14831
- category: P
14827
+ onHoverArea: (M) => r(Q.TRENDS_HOVER_AREA, {
14828
+ category: M
14832
14829
  }),
14833
- onHoverLegend: (P) => r(Q.TRENDS_HOVER_LEGEND, {
14834
- category: P
14830
+ onHoverLegend: (M) => r(Q.TRENDS_HOVER_LEGEND, {
14831
+ category: M
14835
14832
  }),
14836
- onHoverPoint: (P) => r(Q.TRENDS_HOVER_POINT, {
14837
- category: P
14833
+ onHoverPoint: (M) => r(Q.TRENDS_HOVER_POINT, {
14834
+ category: M
14838
14835
  }),
14839
- stackedCategoryGuids: G,
14836
+ stackedCategoryGuids: k,
14840
14837
  stackedColors: _,
14841
14838
  stackedDatasets: B,
14842
14839
  unstackedCategoryGuids: [m.INCOME],
14843
14840
  unstackedColors: [Ue[m.INCOME]],
14844
- unstackedDatasets: k
14841
+ unstackedDatasets: G
14845
14842
  }
14846
14843
  ),
14847
14844
  S === "Table" && /* @__PURE__ */ t(Fh, { monthlyCategoryTotals: l, sx: {} })
@@ -14859,7 +14856,7 @@ const pt = g.createContext(null), th = ({
14859
14856
  const a = DA(/* @__PURE__ */ new Date());
14860
14857
  for (; hA(r, a); )
14861
14858
  e.push({
14862
- x: J(r, U.MONTH_SHORT),
14859
+ x: V(r, U.MONTH_SHORT),
14863
14860
  y: n.filter((i) => i.year === r.getFullYear() && i.month === r.getMonth() + 1).reduce((i, o) => i + o.total, 0)
14864
14861
  }), r = YA(r, 1);
14865
14862
  return e;
@@ -15045,7 +15042,7 @@ export {
15045
15042
  z as buildDynamicCopy,
15046
15043
  Mg as buildPluralCopy,
15047
15044
  F as formatCurrency,
15048
- J as formatDate,
15045
+ V as formatDate,
15049
15046
  Cs as formatOrdinal,
15050
15047
  hs as formatPercentage,
15051
15048
  oi as getAccountBalanceDetails,
@@ -15061,7 +15058,7 @@ export {
15061
15058
  _e as useCategoryUiStore,
15062
15059
  ms as useCombineEvents,
15063
15060
  ps as useCombinePageviews,
15064
- V as useEvent,
15061
+ Y as useEvent,
15065
15062
  xu as useGetMergeableAccounts,
15066
15063
  b as useGlobalCopyStore,
15067
15064
  zn as useGlobalStore,