@mx-cartographer/experiences 6.2.6-alpha.al1 → 6.2.6-alpha.al2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -6,7 +6,7 @@ import G from "@mui/material/Divider";
6
6
  import ie from "@mui/material/List";
7
7
  import Rt from "@mui/material/ListSubheader";
8
8
  import Ee from "@mui/system/Stack";
9
- import { AccountsIcon as yl, P as Oe, Icon as H, useTokens as ft, Text as p, H2 as Fn, CategoryIcon as kt, DialogHeader as El, DialogFooter as Sl, Drawer as Tl, Footer as Al, DateRangePicker as Xr, H3 as mt, H1 as cn, TextField as An, IconWeight as bt, MerchantLogo as ln, CategoryIconVariants as Is, InstitutionLogo as pt, ChevronRightIcon as Il, THEMES as qr } from "@mxenabled/mxui";
9
+ import { AccountsIcon as yl, P as Oe, Icon as H, useTokens as ft, Text as p, H2 as $n, CategoryIcon as kt, DialogHeader as El, DialogFooter as Sl, Drawer as Tl, Footer as Al, DateRangePicker as Xr, H3 as mt, H1 as cn, TextField as An, IconWeight as bt, MerchantLogo as ln, CategoryIconVariants as Is, InstitutionLogo as pt, ChevronRightIcon as Il, THEMES as qr } from "@mxenabled/mxui";
10
10
  import xl from "bowser";
11
11
  import { getUnixTime as Le } from "date-fns/getUnixTime";
12
12
  import { intlFormat as vl } from "date-fns/intlFormat";
@@ -23,7 +23,7 @@ import { fromUnixTime as Me } from "date-fns/fromUnixTime";
23
23
  import { Honeybadger as $i } from "@honeybadger-io/react";
24
24
  import Ja from "numeral";
25
25
  import ee from "@mui/material/Button";
26
- import Wn from "@mui/material/Tooltip";
26
+ import Fn from "@mui/material/Tooltip";
27
27
  import $e from "@mui/material/IconButton";
28
28
  import er from "@mui/material/FormControlLabel";
29
29
  import X from "@mui/material/ListItem";
@@ -34,7 +34,7 @@ import b from "@mui/material/Stack";
34
34
  import ji from "@mui/material/Checkbox";
35
35
  import { alpha as wl, lighten as Zr, darken as Qr, Stack as ye, Box as nn, useTheme as vn, Card as sa, CardContent as Nl, Button as Dl, List as Rl, Divider as Ol } from "@mui/material";
36
36
  import pe from "@mui/material/styles/useTheme";
37
- import Mn from "@mui/material/useMediaQuery";
37
+ import Vn from "@mui/material/useMediaQuery";
38
38
  import { css as Qt, keyframes as Ll } from "@mxenabled/cssinjs";
39
39
  import { addDays as Mt } from "date-fns/addDays";
40
40
  import { eachDayOfInterval as Ml } from "date-fns/eachDayOfInterval";
@@ -371,7 +371,7 @@ const tu = async (e, n, i = "1.0.0", a = "Experiences") => {
371
371
  day: "numeric",
372
372
  year: "numeric"
373
373
  }
374
- }, ae = (e, n) => vl(new Date(e), Object.assign(n), { locale: Hn() });
374
+ }, ae = (e, n) => vl(new Date(e), Object.assign(n), { locale: Pn() });
375
375
  var oe = /* @__PURE__ */ ((e) => (e[e.ANY = 0] = "ANY", e[e.CHECKING = 1] = "CHECKING", e[e.SAVINGS = 2] = "SAVINGS", e[e.LOAN = 3] = "LOAN", e[e.CREDIT_CARD = 4] = "CREDIT_CARD", e[e.INVESTMENT = 5] = "INVESTMENT", e[e.LINE_OF_CREDIT = 6] = "LINE_OF_CREDIT", e[e.MORTGAGE = 7] = "MORTGAGE", e[e.PROPERTY = 8] = "PROPERTY", e[e.CASH = 9] = "CASH", e[e.INSURANCE = 10] = "INSURANCE", e[e.PREPAID = 11] = "PREPAID", e[e.CHECKING_LINE_OF_CREDIT = 12] = "CHECKING_LINE_OF_CREDIT", e[e.DIGITAL_WALLET = 13] = "DIGITAL_WALLET", e))(oe || {}), nu = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.MONEY_MARKET = 1] = "MONEY_MARKET", e[e.CERTIFICATE_OF_DEPOSIT = 2] = "CERTIFICATE_OF_DEPOSIT", e[e.AUTO = 3] = "AUTO", e[e.STUDENT = 4] = "STUDENT", e[e.SMALL_BUSINESS = 5] = "SMALL_BUSINESS", e[e.PERSONAL = 6] = "PERSONAL", e[e.PERSONAL_WITH_COLLATERAL = 7] = "PERSONAL_WITH_COLLATERAL", e[e.HOME_EQUITY = 8] = "HOME_EQUITY", e[e.PLAN_401_K = 9] = "PLAN_401_K", e[e.PLAN_403_B = 10] = "PLAN_403_B", e[e.PLAN_529 = 11] = "PLAN_529", e[e.IRA = 12] = "IRA", e[e.ROLLOVER_IRA = 13] = "ROLLOVER_IRA", e[e.ROTH_IRA = 14] = "ROTH_IRA", e[e.TAXABLE = 15] = "TAXABLE", e[e.NON_TAXABLE = 16] = "NON_TAXABLE", e[e.BROKERAGE = 17] = "BROKERAGE", e[e.TRUST = 18] = "TRUST", e[e.UNIFORM_GIFTS_TO_MINORS_ACT = 19] = "UNIFORM_GIFTS_TO_MINORS_ACT", e[e.PLAN_457 = 20] = "PLAN_457", e[e.PENSION = 21] = "PENSION", e[e.EMPLOYEE_STOCK_OWNERSHIP_PLAN = 22] = "EMPLOYEE_STOCK_OWNERSHIP_PLAN", e[e.SIMPLIFIED_EMPLOYEE_PENSION = 23] = "SIMPLIFIED_EMPLOYEE_PENSION", e[e.SIMPLE_IRA = 24] = "SIMPLE_IRA", e[e.BOAT = 25] = "BOAT", e[e.POWERSPORTS = 26] = "POWERSPORTS", e[e.RV = 27] = "RV", e[e.HELOC = 28] = "HELOC", e[e.PLAN_ROTH_401_K = 29] = "PLAN_ROTH_401_K", e[e.FIXED_ANNUITY = 30] = "FIXED_ANNUITY", e[e.VARIABLE_ANNUITY = 31] = "VARIABLE_ANNUITY", e[e.VEHICLE_INSURANCE = 32] = "VEHICLE_INSURANCE", e[e.DISABILITY = 33] = "DISABILITY", e[e.HEALTH = 34] = "HEALTH", e[e.LONG_TERM_CARE = 35] = "LONG_TERM_CARE", e[e.PROPERTY_AND_CASUALTY = 36] = "PROPERTY_AND_CASUALTY", e[e.UNIVERSAL_LIFE = 37] = "UNIVERSAL_LIFE", e[e.TERM_LIFE = 38] = "TERM_LIFE", e[e.WHOLE_LIFE = 39] = "WHOLE_LIFE", e[e.ACCIDENTAL_DEATH_AND_DISMEMBERMENT = 40] = "ACCIDENTAL_DEATH_AND_DISMEMBERMENT", e[e.VARIABLE_UNIVERSAL_LIFE = 41] = "VARIABLE_UNIVERSAL_LIFE", e[e.HSA = 42] = "HSA", e[e.TAX_FREE_SAVINGS_ACCOUNT = 43] = "TAX_FREE_SAVINGS_ACCOUNT", e[e.INDIVIDUAL = 44] = "INDIVIDUAL", e[e.REGISTERED_RETIREMENT_INCOME_FUND = 45] = "REGISTERED_RETIREMENT_INCOME_FUND", e[e.CASH_MANAGEMENT_ACCOUNT = 46] = "CASH_MANAGEMENT_ACCOUNT", e[e.EMPLOYEE_STOCK_PURCHASE_PLAN = 47] = "EMPLOYEE_STOCK_PURCHASE_PLAN", e[e.REGISTERED_EDUCATION_SAVINGS_PLAN = 48] = "REGISTERED_EDUCATION_SAVINGS_PLAN", e[e.PROFIT_SHARING_PLAN = 49] = "PROFIT_SHARING_PLAN", e[e.UNIFORM_TRANSFER_TO_MINORS_ACT = 50] = "UNIFORM_TRANSFER_TO_MINORS_ACT", e[e.PLAN_401_A = 51] = "PLAN_401_A", e[e.SARSEP_IRA = 52] = "SARSEP_IRA", e[e.FIXED_ANNUITY_TRADITIONAL_IRA = 53] = "FIXED_ANNUITY_TRADITIONAL_IRA", e[e.VARIABLE_ANNUITY_TRADITIONAL_IRA = 54] = "VARIABLE_ANNUITY_TRADITIONAL_IRA", e[e.SEPP_IRA = 55] = "SEPP_IRA", e[e.INHERITED_TRADITIONAL_IRA = 56] = "INHERITED_TRADITIONAL_IRA", e[e.FIXED_ANNUITY_ROTH_IRA = 57] = "FIXED_ANNUITY_ROTH_IRA", e[e.VARIABLE_ANNUITY_ROTH_IRA = 58] = "VARIABLE_ANNUITY_ROTH_IRA", e[e.INHERITED_ROTH_IRA = 59] = "INHERITED_ROTH_IRA", e[e.COVERDELL = 60] = "COVERDELL", e[e.ADVISORY_ACCOUNT = 61] = "ADVISORY_ACCOUNT", e[e.BROKERAGE_MARGIN = 62] = "BROKERAGE_MARGIN", e[e.CHARITABLE_GIFT_ACCOUNT = 63] = "CHARITABLE_GIFT_ACCOUNT", e[e.CHURCH_ACCOUNT = 64] = "CHURCH_ACCOUNT", e[e.CONSERVATORSHIP = 65] = "CONSERVATORSHIP", e[e.CUSTODIAL = 66] = "CUSTODIAL", e[e.DEFINED_BENEFIT_PLAN = 67] = "DEFINED_BENEFIT_PLAN", e[e.DEFINED_CONTRIBUTION_PLAN = 68] = "DEFINED_CONTRIBUTION_PLAN", e[e.EDUCATIONAL = 69] = "EDUCATIONAL", e[e.ESTATE = 70] = "ESTATE", e[e.EXECUTOR = 71] = "EXECUTOR", e[e.GROUP_RETIREMENT_SAVINGS_PLAN = 72] = "GROUP_RETIREMENT_SAVINGS_PLAN", e[e.GUARANTEED_INVESTMENT_CERTIFICATE = 73] = "GUARANTEED_INVESTMENT_CERTIFICATE", e[e.HRA = 74] = "HRA", e[e.INDEXED_ANNUITY = 75] = "INDEXED_ANNUITY", e[e.INVESTMENT_CLUB = 76] = "INVESTMENT_CLUB", e[e.IRREVOCABLE_TRUST = 77] = "IRREVOCABLE_TRUST", e[e.JOINT_TENANTS_BY_ENTIRITY = 78] = "JOINT_TENANTS_BY_ENTIRITY", e[e.JOINT_TENANTS_COMMUNITY_PROPERTY = 79] = "JOINT_TENANTS_COMMUNITY_PROPERTY", e[e.JOINT_TENANTS_IN_COMMON = 80] = "JOINT_TENANTS_IN_COMMON", e[e.JOINT_TENANTS_WITH_RIGHTS_OF_SURVIVORSHIP = 81] = "JOINT_TENANTS_WITH_RIGHTS_OF_SURVIVORSHIP", e[e.KEOUGH_PLAN = 82] = "KEOUGH_PLAN", e[e.LIFE_INCOME_FUND = 83] = "LIFE_INCOME_FUND", e[e.LIVING_TRUST = 84] = "LIVING_TRUST", e[e.LOCKED_IN_RETIREMENT_ACCOUNT = 85] = "LOCKED_IN_RETIREMENT_ACCOUNT", e[e.LOCKED_IN_RETIREMENT_INVESTMENT_FUND = 86] = "LOCKED_IN_RETIREMENT_INVESTMENT_FUND", e[e.LOCKED_IN_RETIREMENT_SAVINGS_ACCOUNT = 87] = "LOCKED_IN_RETIREMENT_SAVINGS_ACCOUNT", e[e.MONEY_PURCHASE_PLAN = 88] = "MONEY_PURCHASE_PLAN", e[e.PARTNERSHIP = 89] = "PARTNERSHIP", e[e.PLAN_409_A = 90] = "PLAN_409_A", e[e.PLAN_ROTH_403_B = 91] = "PLAN_ROTH_403_B", e[e.REGISTERED_DISABILITY_SAVINGS_PLAN = 92] = "REGISTERED_DISABILITY_SAVINGS_PLAN", e[e.REGISTERED_LOCKED_IN_SAVINGS_PLAN = 93] = "REGISTERED_LOCKED_IN_SAVINGS_PLAN", e[e.REGISTERED_PENSION_PLAN = 94] = "REGISTERED_PENSION_PLAN", e[e.REGISTERED_RETIREMENT_SAVINGS_PLAN = 95] = "REGISTERED_RETIREMENT_SAVINGS_PLAN", e[e.REVOCABLE_TRUST = 96] = "REVOCABLE_TRUST", e[e.ROTH_CONVERSION = 97] = "ROTH_CONVERSION", e[e.SOLE_PROPRIETORSHIP = 98] = "SOLE_PROPRIETORSHIP", e[e.SPOUSAL_IRA = 99] = "SPOUSAL_IRA", e[e.SPOUSAL_ROTH_IRA = 100] = "SPOUSAL_ROTH_IRA", e[e.TESTAMENTARY_TRUST = 101] = "TESTAMENTARY_TRUST", e[e.THRIFT_SAVINGS_PLAN = 102] = "THRIFT_SAVINGS_PLAN", e[e.INHERITED_ANNUITY = 103] = "INHERITED_ANNUITY", e[e.CORPORATE_ACCOUNT = 104] = "CORPORATE_ACCOUNT", e[e.LIMITED_LIABILITY_ACCOUNT = 105] = "LIMITED_LIABILITY_ACCOUNT", e[e.HSA_SAVINGS = 106] = "HSA_SAVINGS", e[e.HSA_CHECKING = 107] = "HSA_CHECKING", e))(nu || {}), Ps = /* @__PURE__ */ ((e) => (e[e.REAL_ESTATE = 0] = "REAL_ESTATE", e[e.VEHICLE = 1] = "VEHICLE", e[e.ART = 2] = "ART", e[e.JEWELRY = 3] = "JEWELRY", e[e.FURNITURE = 4] = "FURNITURE", e[e.APPLIANCES = 5] = "APPLIANCES", e[e.COMPUTER = 6] = "COMPUTER", e[e.ELECTRONICS = 7] = "ELECTRONICS", e[e.SPORTS_EQUIPMENT = 8] = "SPORTS_EQUIPMENT", e[e.MISCELLANEOUS = 9] = "MISCELLANEOUS", e))(Ps || {}), ht = /* @__PURE__ */ ((e) => (e[e.CREATED = 0] = "CREATED", e[e.PREVENTED = 1] = "PREVENTED", e[e.DENIED = 2] = "DENIED", e[e.CHALLENGED = 3] = "CHALLENGED", e[e.REJECTED = 4] = "REJECTED", e[e.LOCKED = 5] = "LOCKED", e[e.CONNECTED = 6] = "CONNECTED", e[e.IMPEDED = 7] = "IMPEDED", e[e.RECONNECTED = 8] = "RECONNECTED", e[e.DEGRADED = 9] = "DEGRADED", e[e.DISCONNECTED = 10] = "DISCONNECTED", e[e.DISCONTINUED = 11] = "DISCONTINUED", e[e.CLOSED = 12] = "CLOSED", e[e.DELAYED = 13] = "DELAYED", e[e.FAILED = 14] = "FAILED", e[e.UPDATED = 15] = "UPDATED", e[e.DISABLED = 16] = "DISABLED", e[e.IMPORTED = 17] = "IMPORTED", e[e.RESUMED = 18] = "RESUMED", e[e.EXPIRED = 19] = "EXPIRED", e[e.IMPAIRED = 20] = "IMPAIRED", e[e.PENDING = 21] = "PENDING", e))(ht || {});
376
376
  const iu = [
377
377
  0,
@@ -743,7 +743,7 @@ const x2 = {
743
743
  [N.DENTIST]: "Dentist",
744
744
  [N.BONUS]: "Bonus",
745
745
  [N.PET_FOOD_SUPPLIES]: "Pet Food & Supplies"
746
- }, Gn = {
746
+ }, kn = {
747
747
  [N.AUTO_AND_TRANSPORT]: "#4B9DBC",
748
748
  [N.BILLS_AND_UTILITIES]: "#EF9B2C",
749
749
  [N.BUSINESS_SERVICES]: "#B3DE8C",
@@ -883,7 +883,7 @@ const hn = 44, lo = (e, n) => e.find((i) => i.guid === n), du = (e, n) => e.find
883
883
  []
884
884
  );
885
885
  return i ? r : r.join("");
886
- }, O2 = (e, n, i, ...a) => !e || !n ? "" : S(i === 1 ? e : n, ...a), Hn = () => (window?.app?.options?.language || document.querySelector("html")?.getAttribute("lang") || "en-US").toLowerCase();
886
+ }, O2 = (e, n, i, ...a) => !e || !n ? "" : S(i === 1 ? e : n, ...a), Pn = () => (window?.app?.options?.language || document.querySelector("html")?.getAttribute("lang") || "en-US").toLowerCase();
887
887
  class rt {
888
888
  endpoint = "/";
889
889
  headers;
@@ -891,7 +891,7 @@ class rt {
891
891
  this.endpoint = n;
892
892
  const r = {
893
893
  Accept: "application/json",
894
- "Accept-Language": Hn(),
894
+ "Accept-Language": Pn(),
895
895
  "Content-Type": "application/json",
896
896
  "MD-Session-Token": i
897
897
  };
@@ -949,14 +949,14 @@ class rt {
949
949
  };
950
950
  }
951
951
  const B = (e, n, i) => {
952
- switch (Hn()) {
952
+ switch (Pn()) {
953
953
  case "fr-ca":
954
954
  return Ja(e).format(`${n} $`, i);
955
955
  default:
956
956
  return Ja(e).format(`$${n}`, i);
957
957
  }
958
958
  }, hu = () => {
959
- switch (Hn()) {
959
+ switch (Pn()) {
960
960
  case "fr-ca":
961
961
  return Qi.CAD;
962
962
  default:
@@ -966,7 +966,7 @@ const B = (e, n, i) => {
966
966
  style: "percent",
967
967
  minimumFractionDigits: 2,
968
968
  maximumFractionDigits: 2
969
- }, ya = (e, n = gu) => ir(e) ? new Intl.NumberFormat(Hn(), n).format(Number(e)) : e, mu = (e) => new Intl.PluralRules(Hn(), e), qs = (e, n = { type: "ordinal" }, i = {
969
+ }, ya = (e, n = gu) => ir(e) ? new Intl.NumberFormat(Pn(), n).format(Number(e)) : e, mu = (e) => new Intl.PluralRules(Pn(), e), qs = (e, n = { type: "ordinal" }, i = {
970
970
  one: "st",
971
971
  two: "nd",
972
972
  few: "rd",
@@ -1405,19 +1405,19 @@ const fu = (e, n) => {
1405
1405
  i ? s(o, i) : s(o);
1406
1406
  });
1407
1407
  }, [e, i]);
1408
- }, ve = () => ({
1408
+ }, Se = () => ({
1409
1409
  // Larger than 1536
1410
- isLargeDesktop: Mn(pe().breakpoints.up("xl")),
1410
+ isLargeDesktop: Vn(pe().breakpoints.up("xl")),
1411
1411
  // Larger than 1200
1412
- isDesktop: Mn(pe().breakpoints.up("lg")),
1412
+ isDesktop: Vn(pe().breakpoints.up("lg")),
1413
1413
  // Smaller than 600
1414
- isMobile: Mn(pe().breakpoints.down("sm")),
1414
+ isMobile: Vn(pe().breakpoints.down("sm")),
1415
1415
  // Smaller than 444
1416
- isSmallMobile: Mn(pe().breakpoints.down("xs")),
1416
+ isSmallMobile: Vn(pe().breakpoints.down("xs")),
1417
1417
  // Between 600 and 900
1418
- isSmallTablet: Mn(pe().breakpoints.between("sm", "md")),
1418
+ isSmallTablet: Vn(pe().breakpoints.between("sm", "md")),
1419
1419
  // Between 600 and 1200
1420
- isTablet: Mn(pe().breakpoints.between("sm", "lg"))
1420
+ isTablet: Vn(pe().breakpoints.between("sm", "lg"))
1421
1421
  }), k2 = (e) => {
1422
1422
  const n = As();
1423
1423
  return zn(() => {
@@ -1434,7 +1434,7 @@ const fu = (e, n) => {
1434
1434
  sx: s = {},
1435
1435
  variant: c = "outlined"
1436
1436
  }) => {
1437
- const { isMobile: d } = ve(), [_, u] = g.useState(null), [h, m] = g.useState(
1437
+ const { isMobile: d } = Se(), [_, u] = g.useState(null), [h, m] = g.useState(
1438
1438
  Wa(e, r)
1439
1439
  );
1440
1440
  g.useEffect(() => {
@@ -1446,7 +1446,7 @@ const fu = (e, n) => {
1446
1446
  u(null);
1447
1447
  };
1448
1448
  return /* @__PURE__ */ l(M, { className: "mx-cmn-account-filter", m: 4, sx: { ...s }, children: [
1449
- d ? /* @__PURE__ */ t(Wn, { id: "filter-accounts", placement: "bottom", title: n.title, children: /* @__PURE__ */ t(
1449
+ d ? /* @__PURE__ */ t(Fn, { id: "filter-accounts", placement: "bottom", title: n.title, children: /* @__PURE__ */ t(
1450
1450
  $e,
1451
1451
  {
1452
1452
  "aria-controls": "filter_accounts",
@@ -1753,7 +1753,7 @@ const fu = (e, n) => {
1753
1753
  }), Nu = ({ copy: e, date: n, onNextClick: i, onPreviousClick: a }) => {
1754
1754
  const r = ft(), o = Du(r);
1755
1755
  return /* @__PURE__ */ l("div", { className: `mx-cmn-calendar-header ${o}`, children: [
1756
- /* @__PURE__ */ t(Fn, { className: "mx-cmn-calendar-header-title", variant: "H3", children: ae(n, te.MONTH_YEAR) }),
1756
+ /* @__PURE__ */ t($n, { className: "mx-cmn-calendar-header-title", variant: "H3", children: ae(n, te.MONTH_YEAR) }),
1757
1757
  /* @__PURE__ */ l("div", { className: "mx-cmn-calendar-header-button-container", children: [
1758
1758
  /* @__PURE__ */ t(ee, { "aria-label": e.prevAria, onClick: a, children: /* @__PURE__ */ t(Bl, {}) }),
1759
1759
  /* @__PURE__ */ t(ee, { "aria-label": e.nextAria, onClick: i, children: /* @__PURE__ */ t(Pl, {}) })
@@ -2253,12 +2253,12 @@ const Mu = ({
2253
2253
  if (!n)
2254
2254
  throw new Error(`${e}() must be used within the GlobalDataContext`);
2255
2255
  return n;
2256
- }, Re = () => Ze("useAccountStore").globalStore.accountStore, Ea = () => Ze("useAppConfig").globalStore.appDataStore.appConfig, Sr = () => Ze("useAnalyticsStore").globalStore.analyticsStore, lt = () => Ze("useBudgetsStore").globalStore.budgetsStore, Tr = () => Ze("useCashflowStore").globalStore.cashflowStore, Ke = () => Ze("useCategoryStore").globalStore.categoryStore, nc = () => Ze("useConnectStore").globalStore.connectStore, Sa = () => Ze("useDebtsStore").globalStore.debtsStore, Ta = () => Ze("useGlobalStore").globalStore, ce = () => Ze("useGlobalUiStore").globalStore.globalUiStore, I = () => Ze("globalCopyStore").globalStore.copyStore.copy, ot = () => Ze("useGoalStore").globalStore.goalStore, Ar = () => Ze("useHelpStore").globalStore.helpStore, ea = () => Ze("useHoldingStore").globalStore.holdingStore, Vu = () => Ze("useMerchantStore").globalStore.merchantStore, Ku = () => Ze("useNetWorthStore").globalStore.netWorthStore, ic = () => Ze("useNotificationStore").globalStore.notificationStore, nt = () => Ze("useRecurringActivityStore").globalStore.recurringActivityStore, Pt = () => Ze("useRecurringTransactionsStore").globalStore.recurringTransactionsStore, Ht = () => Ze("useSettingsStore").globalStore.settingsStore, Se = () => Ze("useTransactionStore").globalStore.transactionStore, dn = () => Ze("useUserStore").globalStore.userStore, z = () => ({ onEvent: Ze().onEvent }), P2 = () => ({ onPageView: Ze().onPageView }), zu = (e = "useWidgetContainerContext") => {
2256
+ }, Re = () => Ze("useAccountStore").globalStore.accountStore, Ea = () => Ze("useAppConfig").globalStore.appDataStore.appConfig, Sr = () => Ze("useAnalyticsStore").globalStore.analyticsStore, lt = () => Ze("useBudgetsStore").globalStore.budgetsStore, Tr = () => Ze("useCashflowStore").globalStore.cashflowStore, Ke = () => Ze("useCategoryStore").globalStore.categoryStore, nc = () => Ze("useConnectStore").globalStore.connectStore, Sa = () => Ze("useDebtsStore").globalStore.debtsStore, Ta = () => Ze("useGlobalStore").globalStore, ce = () => Ze("useGlobalUiStore").globalStore.globalUiStore, I = () => Ze("globalCopyStore").globalStore.copyStore.copy, ot = () => Ze("useGoalStore").globalStore.goalStore, Ar = () => Ze("useHelpStore").globalStore.helpStore, ea = () => Ze("useHoldingStore").globalStore.holdingStore, Vu = () => Ze("useMerchantStore").globalStore.merchantStore, Ku = () => Ze("useNetWorthStore").globalStore.netWorthStore, ic = () => Ze("useNotificationStore").globalStore.notificationStore, nt = () => Ze("useRecurringActivityStore").globalStore.recurringActivityStore, Pt = () => Ze("useRecurringTransactionsStore").globalStore.recurringTransactionsStore, Ht = () => Ze("useSettingsStore").globalStore.settingsStore, Te = () => Ze("useTransactionStore").globalStore.transactionStore, dn = () => Ze("useUserStore").globalStore.userStore, z = () => ({ onEvent: Ze().onEvent }), P2 = () => ({ onPageView: Ze().onPageView }), zu = (e = "useWidgetContainerContext") => {
2257
2257
  const n = g.useContext(ec);
2258
2258
  if (!n)
2259
2259
  throw new Error(`${e}() must be used within the WidgetContainerContext`);
2260
2260
  return n;
2261
- }, Un = () => zu(), ac = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
2261
+ }, Wn = () => zu(), ac = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
2262
2262
  const { categories: i } = I(), { getCategoryName: a } = Ke(), r = a(e);
2263
2263
  return /* @__PURE__ */ l(b, { alignItems: "center", direction: "column", gap: "8", justifyContent: "center", mb: 4, children: [
2264
2264
  /* @__PURE__ */ t(
@@ -2357,9 +2357,9 @@ const Mu = ({
2357
2357
  onHoverLegend: a,
2358
2358
  onClickLegend: r
2359
2359
  }) => {
2360
- const { isMobile: o } = ve(), { getCategoryName: s } = Ke();
2360
+ const { isMobile: o } = Se(), { getCategoryName: s } = Ke();
2361
2361
  return /* @__PURE__ */ t(b, { direction: "row", flexWrap: "wrap", gap: o ? 2 : 6, justifyContent: "start", sx: e, children: n.map(({ guid: c, top_level_guid: d }) => {
2362
- const _ = i === c, u = Gn[c], h = Gn[d], m = u ?? h ?? Gn.default, C = m + "33";
2362
+ const _ = i === c, u = kn[c], h = kn[d], m = u ?? h ?? kn.default, C = m + "33";
2363
2363
  return /* @__PURE__ */ l(
2364
2364
  ee,
2365
2365
  {
@@ -2406,7 +2406,7 @@ const Mu = ({
2406
2406
  height: s,
2407
2407
  width: c
2408
2408
  }) => {
2409
- const d = tt(), { isMobile: _ } = ve(), u = g.useRef(null), [h, m] = g.useState(null), [C, f] = g.useState({
2409
+ const d = tt(), { isMobile: _ } = Se(), u = g.useRef(null), [h, m] = g.useState(null), [C, f] = g.useState({
2410
2410
  hoveredSeriesId: null,
2411
2411
  hoveredAreaData: null,
2412
2412
  isAreaHovered: !1,
@@ -2459,7 +2459,7 @@ const Mu = ({
2459
2459
  }, je = () => {
2460
2460
  const se = Pe(String(E)).guid;
2461
2461
  se && a?.(se);
2462
- }, Te = (se) => {
2462
+ }, Ae = (se) => {
2463
2463
  const He = String(se?.seriesId), We = Pe(He).guid, _n = me.find((_i) => _i.id === He), Ga = _n && se?.dataIndex !== void 0, Ba = _n && se?.dataIndex === void 0;
2464
2464
  if (Ga)
2465
2465
  f({
@@ -2531,7 +2531,7 @@ const Mu = ({
2531
2531
  height: s || 400,
2532
2532
  margin: { bottom: 50 },
2533
2533
  onAreaClick: je,
2534
- onHighlightChange: Te,
2534
+ onHighlightChange: Ae,
2535
2535
  series: me,
2536
2536
  skipAnimation: !0,
2537
2537
  slotProps: {
@@ -2715,7 +2715,7 @@ const Mu = ({
2715
2715
  margin: "auto",
2716
2716
  textAlign: "center"
2717
2717
  },
2718
- children: /* @__PURE__ */ t(Fn, { bold: !0, variant: "Body", children: r })
2718
+ children: /* @__PURE__ */ t($n, { bold: !0, variant: "Body", children: r })
2719
2719
  }
2720
2720
  ),
2721
2721
  /* @__PURE__ */ t(M, { width: "44px" })
@@ -2791,7 +2791,7 @@ const Mu = ({
2791
2791
  toolTipContent: o = "",
2792
2792
  variant: s = "outlined"
2793
2793
  }) => {
2794
- const c = pe(), d = c.palette.mode === "dark", { isMobile: _ } = ve(), [u, h] = g.useState(a), [m, C] = g.useState(i.dateRangePickerCopy.dateRangeThisMonth), [f, E] = g.useState(u), [y, T] = g.useState(!1), [v, w] = g.useState(!0), [x, R] = g.useState(6), D = {
2794
+ const c = pe(), d = c.palette.mode === "dark", { isMobile: _ } = Se(), [u, h] = g.useState(a), [m, C] = g.useState(i.dateRangePickerCopy.dateRangeThisMonth), [f, E] = g.useState(u), [y, T] = g.useState(!1), [v, w] = g.useState(!0), [x, R] = g.useState(6), D = {
2795
2795
  buttons: [
2796
2796
  { label: "3M", value: 3 },
2797
2797
  { label: "6M", value: 6 },
@@ -2833,7 +2833,7 @@ const Mu = ({
2833
2833
  };
2834
2834
  return /* @__PURE__ */ l(M, { className: "mx-cmn-date-range-selector", m: 4, children: [
2835
2835
  /* @__PURE__ */ t(
2836
- Wn,
2836
+ Fn,
2837
2837
  {
2838
2838
  id: "select-date",
2839
2839
  placement: "bottom",
@@ -3240,7 +3240,7 @@ const Dn = ({
3240
3240
  sx: h = {},
3241
3241
  title: m = ""
3242
3242
  }) => {
3243
- const [C, { height: f, width: E }] = oc(), { onEvent: y } = z(), { isDesktop: T, isLargeDesktop: v, isMobile: w, isTablet: x } = ve(), { displayedDateRange: R, isCopyLoaded: D, selectedAccountGuids: $, setSelectedAccountGuids: O } = ce(), { common: L } = I(), U = () => {
3243
+ const [C, { height: f, width: E }] = oc(), { onEvent: y } = z(), { isDesktop: T, isLargeDesktop: v, isMobile: w, isTablet: x } = Se(), { displayedDateRange: R, isCopyLoaded: D, selectedAccountGuids: $, setSelectedAccountGuids: O } = ce(), { common: L } = I(), U = () => {
3244
3244
  d && (d(), y(W.WIDGET_BACK_CLICK));
3245
3245
  };
3246
3246
  if (!D)
@@ -3389,7 +3389,7 @@ const Dn = ({
3389
3389
  ]
3390
3390
  }
3391
3391
  );
3392
- }, Ot = A(t_), n_ = ({ status: e = Bn.Loading }) => {
3392
+ }, Ot = A(t_), n_ = ({ status: e = Gn.Loading }) => {
3393
3393
  const { connect: n } = I();
3394
3394
  return /* @__PURE__ */ t(
3395
3395
  M,
@@ -3400,7 +3400,7 @@ const Dn = ({
3400
3400
  width: "100%"
3401
3401
  },
3402
3402
  children: /* @__PURE__ */ l(b, { alignItems: "center", direction: "column", justifyContent: "center", sx: { height: "100%" }, children: [
3403
- e === Bn.Loading && /* @__PURE__ */ t(_r, { color: "primary", size: 48 }),
3403
+ e === Gn.Loading && /* @__PURE__ */ t(_r, { color: "primary", size: 48 }),
3404
3404
  /* @__PURE__ */ t(
3405
3405
  p,
3406
3406
  {
@@ -3408,14 +3408,14 @@ const Dn = ({
3408
3408
  color: "grey.600",
3409
3409
  marginTop: "16px"
3410
3410
  },
3411
- children: e === Bn.Error ? n.oops : n.loading
3411
+ children: e === Gn.Error ? n.oops : n.loading
3412
3412
  }
3413
3413
  )
3414
3414
  ] })
3415
3415
  }
3416
3416
  );
3417
3417
  }, ta = A(n_);
3418
- var Bn = /* @__PURE__ */ ((e) => (e.Loading = "loading", e.Error = "error", e))(Bn || {}), xt = /* @__PURE__ */ ((e) => (e.Currency = "currency", e.Date = "date", e.Input = "input", e.Select = "select", e))(xt || {});
3418
+ var Gn = /* @__PURE__ */ ((e) => (e.Loading = "loading", e.Error = "error", e))(Gn || {}), xt = /* @__PURE__ */ ((e) => (e.Currency = "currency", e.Date = "date", e.Input = "input", e.Select = "select", e))(xt || {});
3419
3419
  const yo = "connect_widget", Eo = "connections_widget", i_ = ({
3420
3420
  loadWidgetProps: e,
3421
3421
  onClose: n,
@@ -3455,8 +3455,8 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
3455
3455
  },
3456
3456
  title: a,
3457
3457
  children: /* @__PURE__ */ l("div", { id: yo, children: [
3458
- u && /* @__PURE__ */ t(ta, { status: Bn.Error }),
3459
- d && /* @__PURE__ */ t(ta, { status: Bn.Loading })
3458
+ u && /* @__PURE__ */ t(ta, { status: Gn.Error }),
3459
+ d && /* @__PURE__ */ t(ta, { status: Gn.Loading })
3460
3460
  ] })
3461
3461
  }
3462
3462
  );
@@ -3508,8 +3508,8 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
3508
3508
  An,
3509
3509
  {
3510
3510
  InputProps: {
3511
- endAdornment: Hn().includes("fr-ca") ? /* @__PURE__ */ t(Oe, { children: "$" }) : void 0,
3512
- startAdornment: Hn().includes("fr-ca") ? void 0 : /* @__PURE__ */ t(Oe, { children: "$" })
3511
+ endAdornment: Pn().includes("fr-ca") ? /* @__PURE__ */ t(Oe, { children: "$" }) : void 0,
3512
+ startAdornment: Pn().includes("fr-ca") ? void 0 : /* @__PURE__ */ t(Oe, { children: "$" })
3513
3513
  },
3514
3514
  "aria-label": n || E.enter_amount,
3515
3515
  className: `mx-cmn-currency-input ${T}`,
@@ -3556,7 +3556,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
3556
3556
  }
3557
3557
  ),
3558
3558
  /* @__PURE__ */ t(
3559
- Wn,
3559
+ Fn,
3560
3560
  {
3561
3561
  describeChild: !0,
3562
3562
  placement: a,
@@ -3618,7 +3618,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
3618
3618
  pr: 8,
3619
3619
  py: 4,
3620
3620
  sx: { "&:hover": { borderColor: o.palette.action.active }, ...i },
3621
- children: /* @__PURE__ */ t(Wn, { title: a, children: /* @__PURE__ */ t(
3621
+ children: /* @__PURE__ */ t(Fn, { title: a, children: /* @__PURE__ */ t(
3622
3622
  er,
3623
3623
  {
3624
3624
  control: /* @__PURE__ */ t(
@@ -3684,7 +3684,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
3684
3684
  )
3685
3685
  ]
3686
3686
  }
3687
- ), $n = ({ iconName: e, label: n, onClick: i, value: a }) => {
3687
+ ), Hn = ({ iconName: e, label: n, onClick: i, value: a }) => {
3688
3688
  const r = /* @__PURE__ */ l(Z, { children: [
3689
3689
  /* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Jt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(H, { name: e, sx: { color: "text.primary" }, weight: bt.Dark }) }) }),
3690
3690
  /* @__PURE__ */ t(
@@ -3706,7 +3706,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
3706
3706
  iconName: n = "info",
3707
3707
  title: i
3708
3708
  }) => /* @__PURE__ */ t(
3709
- Wn,
3709
+ Fn,
3710
3710
  {
3711
3711
  enterTouchDelay: 500,
3712
3712
  title: /* @__PURE__ */ l(b, { gap: 2, p: 12, sx: { textOverflow: "none" }, children: [
@@ -3794,7 +3794,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
3794
3794
  },
3795
3795
  children: [
3796
3796
  /* @__PURE__ */ t(yt, { name: i, size: 54, sx: { color: e } }),
3797
- /* @__PURE__ */ t(Fn, { color: "text.primary", sx: { textWrap: "wrap", textAlign: "center" }, children: n }),
3797
+ /* @__PURE__ */ t($n, { color: "text.primary", sx: { textWrap: "wrap", textAlign: "center" }, children: n }),
3798
3798
  /* @__PURE__ */ t(
3799
3799
  p,
3800
3800
  {
@@ -3906,7 +3906,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
3906
3906
  primaryText: r,
3907
3907
  secondaryText: o
3908
3908
  }) => {
3909
- const { isMobile: s } = ve();
3909
+ const { isMobile: s } = Se();
3910
3910
  return /* @__PURE__ */ t(
3911
3911
  X,
3912
3912
  {
@@ -3945,7 +3945,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
3945
3945
  primaryText: a,
3946
3946
  secondaryText: r = void 0
3947
3947
  }) => {
3948
- const { isMobile: o } = ve();
3948
+ const { isMobile: o } = Se();
3949
3949
  return /* @__PURE__ */ t(
3950
3950
  X,
3951
3951
  {
@@ -4334,7 +4334,7 @@ const ui = () => {
4334
4334
  /* @__PURE__ */ t(Ye, { amount: e, bold: !0, sx: { fontSize: 12 } })
4335
4335
  ] });
4336
4336
  }, Ir = A(p_), C_ = ({ onAddIncomeClick: e }) => {
4337
- const n = pe(), { availableWidth: i } = Un(), { isMobile: a } = ve(), { visibleCashAccounts: r, visibleCashBalance: o } = Re(), { selectedAccountGuids: s } = ce(), { cashflow: c } = I(), { userProfile: d } = dn(), {
4337
+ const n = pe(), { availableWidth: i } = Wn(), { isMobile: a } = Se(), { visibleCashAccounts: r, visibleCashBalance: o } = Re(), { selectedAccountGuids: s } = ce(), { cashflow: c } = I(), { userProfile: d } = dn(), {
4338
4338
  daysUntilNextIncome: _,
4339
4339
  expensesTilNextIncome: u,
4340
4340
  selectedCashAccounts: h,
@@ -4654,7 +4654,7 @@ const y_ = [
4654
4654
  tags: u
4655
4655
  };
4656
4656
  });
4657
- }, Ae = {
4657
+ }, Ie = {
4658
4658
  ADD: "Add",
4659
4659
  ADD_CATEGORY: "Add Category",
4660
4660
  CHANGE_CATEGORY: "Change Category",
@@ -4668,11 +4668,11 @@ const y_ = [
4668
4668
  SELECT: "Select",
4669
4669
  UNHIDE: "Unhide",
4670
4670
  UNSPLIT: "Unsplit"
4671
- }, Ie = {
4671
+ }, xe = {
4672
4672
  TRANSACTION_DETAILS: "Transaction Details",
4673
4673
  TRANSACTIONS_LIST: "Transactions List",
4674
4674
  TRANSACTIONS_WIDGET: "Transactions Widget"
4675
- }, xe = {
4675
+ }, ve = {
4676
4676
  ADD_TRANSACTION: "Manual Transaction",
4677
4677
  CATEGORY: "Category",
4678
4678
  DATE: "Date",
@@ -4694,216 +4694,216 @@ const y_ = [
4694
4694
  }, xo = {
4695
4695
  // splits
4696
4696
  [q.ON_TRANSACTION_SPLIT_CLICK]: {
4697
- action: Ae.SELECT,
4698
- category: Ie.TRANSACTION_DETAILS,
4699
- label: xe.SPLITS
4697
+ action: Ie.SELECT,
4698
+ category: xe.TRANSACTION_DETAILS,
4699
+ label: ve.SPLITS
4700
4700
  },
4701
4701
  [q.ON_TRANSACTION_SPLIT_CATEGORY_CLICK]: {
4702
- action: Ae.ADD_CATEGORY,
4703
- category: Ie.TRANSACTION_DETAILS,
4704
- label: xe.SPLITS
4702
+ action: Ie.ADD_CATEGORY,
4703
+ category: xe.TRANSACTION_DETAILS,
4704
+ label: ve.SPLITS
4705
4705
  },
4706
4706
  [q.ON_TRANSACTION_SPLIT_DELETE_CLICK]: {
4707
- action: Ae.DELETE,
4708
- category: Ie.TRANSACTION_DETAILS,
4709
- label: xe.SPLITS
4707
+ action: Ie.DELETE,
4708
+ category: xe.TRANSACTION_DETAILS,
4709
+ label: ve.SPLITS
4710
4710
  },
4711
4711
  [q.ON_TRANSACTION_SPLIT_SAVE_CLICK]: {
4712
- action: Ae.SPLIT,
4713
- category: Ie.TRANSACTION_DETAILS,
4714
- label: xe.SPLITS
4712
+ action: Ie.SPLIT,
4713
+ category: xe.TRANSACTION_DETAILS,
4714
+ label: ve.SPLITS
4715
4715
  },
4716
4716
  [q.ON_TRANSACTION_UNSPLIT]: {
4717
- action: Ae.UNSPLIT,
4718
- category: Ie.TRANSACTION_DETAILS,
4719
- label: xe.SPLITS
4717
+ action: Ie.UNSPLIT,
4718
+ category: xe.TRANSACTION_DETAILS,
4719
+ label: ve.SPLITS
4720
4720
  },
4721
4721
  // category
4722
4722
  [q.ON_TRANSACTION_CATEGORY_CLICK]: {
4723
- action: Ae.SELECT,
4724
- category: Ie.TRANSACTIONS_LIST,
4725
- label: xe.CATEGORY
4723
+ action: Ie.SELECT,
4724
+ category: xe.TRANSACTIONS_LIST,
4725
+ label: ve.CATEGORY
4726
4726
  },
4727
4727
  [q.ON_TRANSACTION_CATEGORY_CHANGED]: {
4728
- action: Ae.CHANGE_CATEGORY,
4729
- category: Ie.TRANSACTION_DETAILS,
4730
- label: xe.CATEGORY
4728
+ action: Ie.CHANGE_CATEGORY,
4729
+ category: xe.TRANSACTION_DETAILS,
4730
+ label: ve.CATEGORY
4731
4731
  },
4732
4732
  // date
4733
4733
  [q.ON_TRANSACTION_DATE_CHANGED]: {
4734
- action: Ae.SAVE,
4735
- category: Ie.TRANSACTION_DETAILS,
4736
- label: xe.DATE
4734
+ action: Ie.SAVE,
4735
+ category: xe.TRANSACTION_DETAILS,
4736
+ label: ve.DATE
4737
4737
  },
4738
4738
  [q.ON_TRANSACTION_DATE_CLICK]: {
4739
- action: Ae.SELECT,
4740
- category: Ie.TRANSACTION_DETAILS,
4741
- label: xe.DATE
4739
+ action: Ie.SELECT,
4740
+ category: xe.TRANSACTION_DETAILS,
4741
+ label: ve.DATE
4742
4742
  },
4743
4743
  // merchant logo
4744
4744
  [q.ON_TRANSACTION_DELETE_LOGO_CANCEL]: {
4745
- action: Ae.CLOSE,
4746
- category: Ie.TRANSACTION_DETAILS,
4747
- label: xe.DELETE_MERCHANT_LOGO
4745
+ action: Ie.CLOSE,
4746
+ category: xe.TRANSACTION_DETAILS,
4747
+ label: ve.DELETE_MERCHANT_LOGO
4748
4748
  },
4749
4749
  [q.ON_TRANSACTION_DELETE_LOGO_CLICK]: {
4750
- action: Ae.SELECT,
4751
- category: Ie.TRANSACTION_DETAILS,
4752
- label: xe.DELETE_MERCHANT_LOGO
4750
+ action: Ie.SELECT,
4751
+ category: xe.TRANSACTION_DETAILS,
4752
+ label: ve.DELETE_MERCHANT_LOGO
4753
4753
  },
4754
4754
  [q.ON_TRANSACTION_DELETE_LOGO_DELETED]: {
4755
- action: Ae.DELETE,
4756
- category: Ie.TRANSACTION_DETAILS,
4757
- label: xe.DELETE_MERCHANT_LOGO
4755
+ action: Ie.DELETE,
4756
+ category: xe.TRANSACTION_DETAILS,
4757
+ label: ve.DELETE_MERCHANT_LOGO
4758
4758
  },
4759
4759
  // description
4760
4760
  [q.ON_TRANSACTION_DESCRIPTION_EDIT_CLICK]: {
4761
- action: Ae.EDIT,
4762
- category: Ie.TRANSACTION_DETAILS,
4763
- label: xe.DESCRIPTION
4761
+ action: Ie.EDIT,
4762
+ category: xe.TRANSACTION_DETAILS,
4763
+ label: ve.DESCRIPTION
4764
4764
  },
4765
4765
  [q.ON_TRANSACTION_DESCRIPTION_SAVE_CLICK]: {
4766
- action: Ae.SAVE,
4767
- category: Ie.TRANSACTION_DETAILS,
4768
- label: xe.DESCRIPTION
4766
+ action: Ie.SAVE,
4767
+ category: xe.TRANSACTION_DETAILS,
4768
+ label: ve.DESCRIPTION
4769
4769
  },
4770
4770
  // hide transactions
4771
4771
  [q.ON_TRANSACTION_HIDDEN]: {
4772
- action: Ae.SAVE,
4773
- category: Ie.TRANSACTION_DETAILS,
4774
- label: xe.HIDE_TRANSACTION
4772
+ action: Ie.SAVE,
4773
+ category: xe.TRANSACTION_DETAILS,
4774
+ label: ve.HIDE_TRANSACTION
4775
4775
  },
4776
4776
  [q.ON_TRANSACTION_HIDE_CLICK]: {
4777
- action: Ae.SELECT,
4778
- category: Ie.TRANSACTION_DETAILS,
4779
- label: xe.HIDE_TRANSACTION
4777
+ action: Ie.SELECT,
4778
+ category: xe.TRANSACTION_DETAILS,
4779
+ label: ve.HIDE_TRANSACTION
4780
4780
  },
4781
4781
  [q.ON_TRANSACTION_HIDE_CANCEL_CLICK]: {
4782
- action: Ae.CLOSE,
4783
- category: Ie.TRANSACTION_DETAILS,
4784
- label: xe.HIDE_TRANSACTION
4782
+ action: Ie.CLOSE,
4783
+ category: xe.TRANSACTION_DETAILS,
4784
+ label: ve.HIDE_TRANSACTION
4785
4785
  },
4786
4786
  // transaction list
4787
4787
  [q.ON_TRANSACTION_LIST_ITEM_CLICK]: {
4788
- action: Ae.SELECT,
4789
- category: Ie.TRANSACTIONS_LIST,
4790
- label: xe.TRANSACTION
4788
+ action: Ie.SELECT,
4789
+ category: xe.TRANSACTIONS_LIST,
4790
+ label: ve.TRANSACTION
4791
4791
  },
4792
4792
  // memo
4793
4793
  [q.ON_TRANSACTION_MEMO_CHANGED]: {
4794
- action: Ae.SAVE,
4795
- category: Ie.TRANSACTION_DETAILS,
4796
- label: xe.MEMO
4794
+ action: Ie.SAVE,
4795
+ category: xe.TRANSACTION_DETAILS,
4796
+ label: ve.MEMO
4797
4797
  },
4798
4798
  [q.ON_TRANSACTION_MEMO_CLICK]: {
4799
- action: Ae.SELECT,
4800
- category: Ie.TRANSACTION_DETAILS,
4801
- label: xe.MEMO
4799
+ action: Ie.SELECT,
4800
+ category: xe.TRANSACTION_DETAILS,
4801
+ label: ve.MEMO
4802
4802
  },
4803
4803
  // tags
4804
4804
  [q.ON_TRANSACTION_TAGS_CHANGED]: {
4805
- action: Ae.SAVE,
4806
- category: Ie.TRANSACTION_DETAILS,
4807
- label: xe.TAGS
4805
+ action: Ie.SAVE,
4806
+ category: xe.TRANSACTION_DETAILS,
4807
+ label: ve.TAGS
4808
4808
  },
4809
4809
  [q.ON_TRANSACTION_TAGS_CLICK]: {
4810
- action: Ae.SELECT,
4811
- category: Ie.TRANSACTION_DETAILS,
4812
- label: xe.TAGS
4810
+ action: Ie.SELECT,
4811
+ category: xe.TRANSACTION_DETAILS,
4812
+ label: ve.TAGS
4813
4813
  },
4814
4814
  [q.ON_TRANSACTION_TAGS_TAG_ADD_CANCEL_CLICK]: {
4815
- action: Ae.CLOSE,
4816
- category: Ie.TRANSACTION_DETAILS,
4817
- label: xe.TAGS
4815
+ action: Ie.CLOSE,
4816
+ category: xe.TRANSACTION_DETAILS,
4817
+ label: ve.TAGS
4818
4818
  },
4819
4819
  [q.ON_TRANSACTION_TAGS_TAG_ADD_CLICK]: {
4820
- action: Ae.ADD,
4821
- category: Ie.TRANSACTION_DETAILS,
4822
- label: xe.TAG_ADD
4820
+ action: Ie.ADD,
4821
+ category: xe.TRANSACTION_DETAILS,
4822
+ label: ve.TAG_ADD
4823
4823
  },
4824
4824
  [q.ON_TRANSACTION_TAGS_TAG_ADDED]: {
4825
- action: Ae.SAVE,
4826
- category: Ie.TRANSACTION_DETAILS,
4827
- label: xe.TAG_ADD
4825
+ action: Ie.SAVE,
4826
+ category: xe.TRANSACTION_DETAILS,
4827
+ label: ve.TAG_ADD
4828
4828
  },
4829
4829
  [q.ON_TRANSACTION_TAGS_TAG_DELETE_CLICK]: {
4830
- action: Ae.SELECT,
4831
- category: Ie.TRANSACTION_DETAILS,
4832
- label: xe.TAG_DELETE
4830
+ action: Ie.SELECT,
4831
+ category: xe.TRANSACTION_DETAILS,
4832
+ label: ve.TAG_DELETE
4833
4833
  },
4834
4834
  [q.ON_TRANSACTION_TAGS_TAG_DELETE_CANCEL_CLICK]: {
4835
- action: Ae.CLOSE,
4836
- category: Ie.TRANSACTION_DETAILS,
4837
- label: xe.TAG_DELETE
4835
+ action: Ie.CLOSE,
4836
+ category: xe.TRANSACTION_DETAILS,
4837
+ label: ve.TAG_DELETE
4838
4838
  },
4839
4839
  [q.ON_TRANSACTION_TAGS_TAG_DELETED]: {
4840
- action: Ae.SAVE,
4841
- category: Ie.TRANSACTION_DETAILS,
4842
- label: xe.TAG_DELETE
4840
+ action: Ie.SAVE,
4841
+ category: xe.TRANSACTION_DETAILS,
4842
+ label: ve.TAG_DELETE
4843
4843
  },
4844
4844
  [q.ON_TRANSACTION_TAGS_TAG_EDIT_CLICK]: {
4845
- action: Ae.EDIT,
4846
- category: Ie.TRANSACTION_DETAILS,
4847
- label: xe.TAG_EDIT
4845
+ action: Ie.EDIT,
4846
+ category: xe.TRANSACTION_DETAILS,
4847
+ label: ve.TAG_EDIT
4848
4848
  },
4849
4849
  [q.ON_TRANSACTION_TAGS_TAG_EDIT_SAVED]: {
4850
- action: Ae.SAVE,
4851
- category: Ie.TRANSACTION_DETAILS,
4852
- label: xe.TAG_EDIT
4850
+ action: Ie.SAVE,
4851
+ category: xe.TRANSACTION_DETAILS,
4852
+ label: ve.TAG_EDIT
4853
4853
  },
4854
4854
  // flag
4855
4855
  [q.ON_TRANSACTION_TOGGLE_FLAG_CLICK]: {
4856
- action: Ae.SELECT,
4857
- category: Ie.TRANSACTION_DETAILS,
4858
- label: xe.FLAG
4856
+ action: Ie.SELECT,
4857
+ category: xe.TRANSACTION_DETAILS,
4858
+ label: ve.FLAG
4859
4859
  },
4860
4860
  // hide
4861
4861
  [q.ON_TRANSACTION_UNHIDDEN]: {
4862
- action: Ae.SAVE,
4863
- category: Ie.TRANSACTION_DETAILS,
4864
- label: xe.UNHIDE_TRANSACTION
4862
+ action: Ie.SAVE,
4863
+ category: xe.TRANSACTION_DETAILS,
4864
+ label: ve.UNHIDE_TRANSACTION
4865
4865
  },
4866
4866
  [q.ON_TRANSACTION_UNHIDE_CLICK]: {
4867
- action: Ae.SELECT,
4868
- category: Ie.TRANSACTION_DETAILS,
4869
- label: xe.UNHIDE_TRANSACTION
4867
+ action: Ie.SELECT,
4868
+ category: xe.TRANSACTION_DETAILS,
4869
+ label: ve.UNHIDE_TRANSACTION
4870
4870
  },
4871
4871
  [q.ON_TRANSACTION_UNHIDE_CANCEL_CLICK]: {
4872
- action: Ae.CLOSE,
4873
- category: Ie.TRANSACTION_DETAILS,
4874
- label: xe.UNHIDE_TRANSACTION
4872
+ action: Ie.CLOSE,
4873
+ category: xe.TRANSACTION_DETAILS,
4874
+ label: ve.UNHIDE_TRANSACTION
4875
4875
  },
4876
4876
  // export CSV
4877
4877
  [q.ON_TRANSACTION_EXPORT_CSV_CLICK]: {
4878
- action: Ae.SELECT,
4879
- category: Ie.TRANSACTIONS_WIDGET,
4880
- label: xe.EXPORT_CSV
4878
+ action: Ie.SELECT,
4879
+ category: xe.TRANSACTIONS_WIDGET,
4880
+ label: ve.EXPORT_CSV
4881
4881
  },
4882
4882
  // add transaction
4883
4883
  [q.ON_TRANSACTION_MANUAL_ADD_CLICK]: {
4884
- action: Ae.SELECT,
4885
- category: Ie.TRANSACTIONS_WIDGET,
4886
- label: xe.ADD_TRANSACTION
4884
+ action: Ie.SELECT,
4885
+ category: xe.TRANSACTIONS_WIDGET,
4886
+ label: ve.ADD_TRANSACTION
4887
4887
  },
4888
4888
  [q.ON_TRANSACTION_MANUAL_ADD_ADDED]: {
4889
- action: Ae.ADD,
4890
- category: Ie.TRANSACTIONS_WIDGET,
4891
- label: xe.ADD_TRANSACTION
4889
+ action: Ie.ADD,
4890
+ category: xe.TRANSACTIONS_WIDGET,
4891
+ label: ve.ADD_TRANSACTION
4892
4892
  },
4893
4893
  [q.ON_TRANSACTION_DELETE_CLICK]: {
4894
- action: Ae.SELECT,
4895
- category: Ie.TRANSACTIONS_WIDGET,
4896
- label: xe.DELETE_TRANSACTION
4894
+ action: Ie.SELECT,
4895
+ category: xe.TRANSACTIONS_WIDGET,
4896
+ label: ve.DELETE_TRANSACTION
4897
4897
  },
4898
4898
  [q.ON_TRANSACTION_DELETE_CANCEL]: {
4899
- action: Ae.CLOSE,
4900
- category: Ie.TRANSACTIONS_WIDGET,
4901
- label: xe.DELETE_TRANSACTION
4899
+ action: Ie.CLOSE,
4900
+ category: xe.TRANSACTIONS_WIDGET,
4901
+ label: ve.DELETE_TRANSACTION
4902
4902
  },
4903
4903
  [q.ON_TRANSACTION_DELETE_DELETED]: {
4904
- action: Ae.DELETE,
4905
- category: Ie.TRANSACTIONS_WIDGET,
4906
- label: xe.DELETE_TRANSACTION
4904
+ action: Ie.DELETE,
4905
+ category: xe.TRANSACTIONS_WIDGET,
4906
+ label: ve.DELETE_TRANSACTION
4907
4907
  }
4908
4908
  }, T_ = async (e, n) => !n || !xo[e] ? null : n.sendAnalyticEvent(xo[e]), or = {
4909
4909
  FLAG: "flag",
@@ -5214,7 +5214,7 @@ class L_ {
5214
5214
  const It = () => {
5215
5215
  if (!g.useContext(Xn))
5216
5216
  throw new Error("useTransactionsUiStore() must be used within the GlobalDataContext");
5217
- return Se().uiStore;
5217
+ return Te().uiStore;
5218
5218
  }, dc = (e, n) => {
5219
5219
  const i = k_(M_(e, n)), a = encodeURIComponent(i), r = document.createElement("a");
5220
5220
  r.href = `data:attachment/csv;charset=utf-8,${a}`, r.download = "transactions.csv", document.body.appendChild(r), r.click(), document.body.removeChild(r);
@@ -5238,7 +5238,7 @@ const It = () => {
5238
5238
  let n = e.parent_guid ? "Split: " : "";
5239
5239
  return n += e.is_hidden ? "(Excluded) " : "", n += e.description, n;
5240
5240
  }, B_ = (e, n) => e.tags.map((i) => n.filter((r) => r.guid === i)[0]?.name ?? "").join(" "), P_ = ({ transaction: e, onClick: n }) => {
5241
- const { associatedBeats: i } = Se(), { transactions: a } = I(), { showInsights: r } = It(), o = e.transaction_type === St.CREDIT, s = g.useMemo(() => i.find((c) => c.associated_transaction_guid === e.guid), [i, e]);
5241
+ const { associatedBeats: i } = Te(), { transactions: a } = I(), { showInsights: r } = It(), o = e.transaction_type === St.CREDIT, s = g.useMemo(() => i.find((c) => c.associated_transaction_guid === e.guid), [i, e]);
5242
5242
  return /* @__PURE__ */ l(
5243
5243
  o_,
5244
5244
  {
@@ -5316,7 +5316,7 @@ const It = () => {
5316
5316
  width: c = "100%",
5317
5317
  zeroState: d = /* @__PURE__ */ t($_, {})
5318
5318
  }) => {
5319
- const { isLoading: _, sortedTransactions: u } = Se(), h = g.useMemo(() => s ? u : u.filter((v) => !v.is_hidden), [u, s]), { setShowInsights: m, toggleSplit: C } = It(), { onEvent: f } = z(), E = (v) => {
5319
+ const { isLoading: _, sortedTransactions: u } = Te(), h = g.useMemo(() => s ? u : u.filter((v) => !v.is_hidden), [u, s]), { setShowInsights: m, toggleSplit: C } = It(), { onEvent: f } = z(), E = (v) => {
5320
5320
  const w = h.find((x) => x.guid === v);
5321
5321
  if (w?.has_been_split) {
5322
5322
  C(w.guid);
@@ -5371,7 +5371,7 @@ const It = () => {
5371
5371
  `${e.row.account}`,
5372
5372
  e.row.number && ` | ${e.row.number}`
5373
5373
  ] }), V_ = (e) => {
5374
- const { associatedBeats: n } = Se(), { showInsights: i } = It(), { amount: a, transaction_type: r } = e.row, o = n.find((c) => c.associated_transaction_guid === e.row.guid), s = r === St.CREDIT;
5374
+ const { associatedBeats: n } = Te(), { showInsights: i } = It(), { amount: a, transaction_type: r } = e.row, o = n.find((c) => c.associated_transaction_guid === e.row.guid), s = r === St.CREDIT;
5375
5375
  return /* @__PURE__ */ l(b, { alignItems: "flex-end", tabIndex: e.tabIndex, children: [
5376
5376
  /* @__PURE__ */ l(p, { color: s ? "success.main" : "text.primary", variant: "Small", children: [
5377
5377
  s ? "+" : "",
@@ -5440,7 +5440,7 @@ const It = () => {
5440
5440
  onCategoryClick: n,
5441
5441
  onRowClick: i
5442
5442
  }) => {
5443
- const { isLoading: a, sortedTransactions: r } = Se(), { transactions: o } = I(), { isCopyLoaded: s } = ce(), c = g.useMemo(
5443
+ const { isLoading: a, sortedTransactions: r } = Te(), { transactions: o } = I(), { isCopyLoaded: s } = ce(), c = g.useMemo(
5444
5444
  () => r.map((u) => ({
5445
5445
  id: u.guid,
5446
5446
  isHovering: !1,
@@ -5901,7 +5901,7 @@ const J_ = ({
5901
5901
  ...e,
5902
5902
  currentAmount: c,
5903
5903
  averageAmount: Ro(d),
5904
- color: Gn[o],
5904
+ color: kn[o],
5905
5905
  icon: ou[o],
5906
5906
  isTransfer: o === N.TRANSFER,
5907
5907
  monthlyAmounts: d,
@@ -6073,7 +6073,7 @@ class bh {
6073
6073
  getCategoryName = (n) => this.categories.find((a) => a.guid === n)?.name ?? fa[n];
6074
6074
  }
6075
6075
  const hc = ({ transaction: e }) => {
6076
- const { addOrUpdateTransactionRule: n, updateTransaction: i } = Se(), { categories: a } = Ke(), { onEvent: r } = z(), { setShouldDisableDrawerScroll: o, updateManualTransaction: s } = It(), { transactions: c } = I(), [d, _] = g.useState(!1), [u, h] = g.useState(""), m = async (y) => {
6076
+ const { addOrUpdateTransactionRule: n, updateTransaction: i } = Te(), { categories: a } = Ke(), { onEvent: r } = z(), { setShouldDisableDrawerScroll: o, updateManualTransaction: s } = It(), { transactions: c } = I(), [d, _] = g.useState(!1), [u, h] = g.useState(""), m = async (y) => {
6077
6077
  await i({ ...e, category_guid: u }), y && await n(u, e), h(""), r(W.TRANSACTION_DETAILS_CLICK_CATEGORY, {
6078
6078
  transaction_guid: e.guid
6079
6079
  });
@@ -6158,7 +6158,7 @@ const hc = ({ transaction: e }) => {
6158
6158
  )
6159
6159
  ] });
6160
6160
  }, gc = ({ transaction: e }) => {
6161
- const n = ft(), { onEvent: i } = z(), { updateTransaction: a } = Se(), { updateManualTransaction: r } = It(), { common: o, transactions: s } = I(), [c, d] = g.useState(!1), [_, u] = g.useState(e.date), h = (C) => {
6161
+ const n = ft(), { onEvent: i } = z(), { updateTransaction: a } = Te(), { updateManualTransaction: r } = It(), { common: o, transactions: s } = I(), [c, d] = g.useState(!1), [_, u] = g.useState(e.date), h = (C) => {
6162
6162
  u(Le(C));
6163
6163
  }, m = async () => {
6164
6164
  if (e.is_manual && !e.guid) {
@@ -6215,7 +6215,7 @@ const hc = ({ transaction: e }) => {
6215
6215
  )
6216
6216
  ] });
6217
6217
  }, yh = ({ transaction: e }) => {
6218
- const { onEvent: n } = z(), { removeTransaction: i } = Se(), { setShouldDisableDrawerScroll: a } = It(), { common: r, transactions: o } = I(), [s, c] = g.useState(!1), d = async () => {
6218
+ const { onEvent: n } = z(), { removeTransaction: i } = Te(), { setShouldDisableDrawerScroll: a } = It(), { common: r, transactions: o } = I(), [s, c] = g.useState(!1), d = async () => {
6219
6219
  await i(e.guid), n(q.ON_TRANSACTION_DELETE_DELETED);
6220
6220
  };
6221
6221
  return /* @__PURE__ */ l(M, { className: "mx-txn-delete", children: [
@@ -6255,7 +6255,7 @@ const hc = ({ transaction: e }) => {
6255
6255
  )
6256
6256
  ] });
6257
6257
  }, Eh = A(yh), Sh = ({ transaction: e }) => {
6258
- const { onEvent: n } = z(), { updateTransaction: i } = Se(), { setShouldDisableDrawerScroll: a } = It(), { common: r, transactions: o } = I(), [s, c] = g.useState(!1), d = async () => {
6258
+ const { onEvent: n } = z(), { updateTransaction: i } = Te(), { setShouldDisableDrawerScroll: a } = It(), { common: r, transactions: o } = I(), [s, c] = g.useState(!1), d = async () => {
6259
6259
  await i({ ...e, merchant_guid: "" }), n(W.TRANSACTION_DETAILS_CLICK_DELETE_LOGO, {
6260
6260
  transaction_guid: e.guid
6261
6261
  });
@@ -6295,7 +6295,7 @@ const hc = ({ transaction: e }) => {
6295
6295
  )
6296
6296
  ] });
6297
6297
  }, Th = A(Sh), Ah = ({ transaction: e }) => {
6298
- const { onEvent: n } = z(), { updateTransaction: i } = Se(), { setShouldDisableDrawerScroll: a } = It(), { common: r, transactions: o } = I(), [s, c] = g.useState(!1), d = e.is_hidden, _ = async () => {
6298
+ const { onEvent: n } = z(), { updateTransaction: i } = Te(), { setShouldDisableDrawerScroll: a } = It(), { common: r, transactions: o } = I(), [s, c] = g.useState(!1), d = e.is_hidden, _ = async () => {
6299
6299
  await i({ ...e, is_hidden: !e.is_hidden }), n(
6300
6300
  d ? q.ON_TRANSACTION_UNHIDDEN : q.ON_TRANSACTION_HIDDEN
6301
6301
  );
@@ -6384,7 +6384,7 @@ const hc = ({ transaction: e }) => {
6384
6384
  ] })
6385
6385
  ] });
6386
6386
  }, xh = ({ transaction: e }) => {
6387
- const { onEvent: n } = z(), { updateTransaction: i } = Se(), { updateManualTransaction: a } = It(), { common: r, transactions: o } = I(), [s, c] = g.useState(!1), [d, _] = g.useState("");
6387
+ const { onEvent: n } = z(), { updateTransaction: i } = Te(), { updateManualTransaction: a } = It(), { common: r, transactions: o } = I(), [s, c] = g.useState(!1), [d, _] = g.useState("");
6388
6388
  g.useEffect(() => {
6389
6389
  s && _(e.memo ? e.memo : "");
6390
6390
  }, [s]);
@@ -6607,7 +6607,7 @@ const hc = ({ transaction: e }) => {
6607
6607
  ) })
6608
6608
  ] });
6609
6609
  }, Dh = A(Nh), Rh = ({ transaction: e }) => {
6610
- const { onEvent: n } = z(), { splitTransaction: i, unSplitTransaction: a } = Se(), { common: r, transactions: o } = I(), { setShouldDisableDrawerScroll: s } = It(), { categories: c } = Ke(), d = {
6610
+ const { onEvent: n } = z(), { splitTransaction: i, unSplitTransaction: a } = Te(), { common: r, transactions: o } = I(), { setShouldDisableDrawerScroll: s } = It(), { categories: c } = Ke(), d = {
6611
6611
  ...e,
6612
6612
  amount: e.amount - 1,
6613
6613
  guid: "",
@@ -6727,7 +6727,7 @@ const hc = ({ transaction: e }) => {
6727
6727
  )
6728
6728
  ] });
6729
6729
  }, Oh = A(Rh), Lh = () => {
6730
- const e = pe(), { onEvent: n } = z(), { addTag: i } = Se(), { transactions: a } = I(), [r, o] = g.useState(!1), [s, c] = g.useState(""), [d, _] = g.useState(""), u = g.useRef(null);
6730
+ const e = pe(), { onEvent: n } = z(), { addTag: i } = Te(), { transactions: a } = I(), [r, o] = g.useState(!1), [s, c] = g.useState(""), [d, _] = g.useState(""), u = g.useRef(null);
6731
6731
  g.useEffect(() => {
6732
6732
  r && u?.current?.focus();
6733
6733
  }, [r]);
@@ -6814,7 +6814,7 @@ const hc = ({ transaction: e }) => {
6814
6814
  }
6815
6815
  ) });
6816
6816
  }, Gh = A(kh), Bh = ({ onTagChecked: e, selectedTags: n, tag: i }) => {
6817
- const { onEvent: a } = z(), { removeTag: r, updateTag: o } = Se(), { common: s, transactions: c } = I(), [d, _] = g.useState(!1), [u, h] = g.useState(!1), [m, C] = g.useState(""), [f, E] = g.useState(""), y = async () => {
6817
+ const { onEvent: a } = z(), { removeTag: r, updateTag: o } = Te(), { common: s, transactions: c } = I(), [d, _] = g.useState(!1), [u, h] = g.useState(!1), [m, C] = g.useState(""), [f, E] = g.useState(""), y = async () => {
6818
6818
  a(q.ON_TRANSACTION_TAGS_TAG_EDIT_SAVED), i && await o({ ...i, name: m }), _(!1);
6819
6819
  }, T = async () => {
6820
6820
  a(q.ON_TRANSACTION_TAGS_TAG_DELETED), await r(i.guid), h(!1);
@@ -6908,7 +6908,7 @@ const hc = ({ transaction: e }) => {
6908
6908
  }
6909
6909
  );
6910
6910
  }, Ph = A(Bh), Hh = ({ selectedTags: e, onTagChecked: n }) => {
6911
- const { tags: i } = Se(), [a, r] = g.useState(""), o = i.filter(
6911
+ const { tags: i } = Te(), [a, r] = g.useState(""), o = i.filter(
6912
6912
  (s) => s.name.toLowerCase().includes(a.toLowerCase())
6913
6913
  );
6914
6914
  return /* @__PURE__ */ l("div", { className: "mx-txn-tag-manager", children: [
@@ -6926,7 +6926,7 @@ const hc = ({ transaction: e }) => {
6926
6926
  ] }, s.guid)) }) })
6927
6927
  ] });
6928
6928
  }, $h = A(Hh), Fh = ({ transaction: e }) => {
6929
- const { onEvent: n } = z(), { tags: i, updateTaggings: a, updateTransaction: r } = Se(), { common: o, transactions: s } = I(), { updateManualTransaction: c } = It(), [d, _] = g.useState(!1), [u, h] = g.useState(e.tags);
6929
+ const { onEvent: n } = z(), { tags: i, updateTaggings: a, updateTransaction: r } = Te(), { common: o, transactions: s } = I(), { updateManualTransaction: c } = It(), [d, _] = g.useState(!1), [u, h] = g.useState(e.tags);
6930
6930
  g.useEffect(() => {
6931
6931
  h(e.tags);
6932
6932
  }, [d, e]);
@@ -6981,7 +6981,7 @@ const hc = ({ transaction: e }) => {
6981
6981
  )
6982
6982
  ] });
6983
6983
  }, Cc = A(Fh), Wh = ({ transaction: e }) => {
6984
- const { updateTransaction: n } = Se(), { common: i, transactions: a } = I(), { onEvent: r } = z(), [o, s] = g.useState(!1), [c, d] = g.useState(""), _ = g.useRef(null);
6984
+ const { updateTransaction: n } = Te(), { common: i, transactions: a } = I(), { onEvent: r } = z(), [o, s] = g.useState(!1), [c, d] = g.useState(""), _ = g.useRef(null);
6985
6985
  g.useEffect(() => {
6986
6986
  o && (d(e.description), _?.current?.focus());
6987
6987
  }, [o]);
@@ -7032,7 +7032,7 @@ const hc = ({ transaction: e }) => {
7032
7032
  )
7033
7033
  ] }) });
7034
7034
  }, Uh = A(Wh), Vh = ({ transaction: e }) => {
7035
- const { updateTransaction: n } = Se(), { transactions: i } = I(), { onEvent: a } = z(), r = pe(), o = async () => {
7035
+ const { updateTransaction: n } = Te(), { transactions: i } = I(), { onEvent: a } = z(), r = pe(), o = async () => {
7036
7036
  a(W.TRANSACTION_DETAILS_CLICK_FLAG, { transaction_guid: e.guid }), await n({ ...e, is_flagged: !e.is_flagged });
7037
7037
  };
7038
7038
  return /* @__PURE__ */ t("div", { className: "mx-txn-transaction-flag", children: /* @__PURE__ */ t(
@@ -7232,7 +7232,7 @@ const hc = ({ transaction: e }) => {
7232
7232
  ] })
7233
7233
  ] });
7234
7234
  }, qh = A(Xh), Zh = ({ onClose: e, transaction: n }) => {
7235
- const { addOrUpdateTransactionRule: i, updateTransaction: a } = Se(), { transactions: r } = I(), { categories: o } = Ke(), [s, c] = g.useState(""), d = g.useMemo(
7235
+ const { addOrUpdateTransactionRule: i, updateTransaction: a } = Te(), { transactions: r } = I(), { categories: o } = Ke(), [s, c] = g.useState(""), d = g.useMemo(
7236
7236
  () => o.find((u) => u.guid === s),
7237
7237
  [s]
7238
7238
  ), _ = async (u) => {
@@ -7293,7 +7293,7 @@ const hc = ({ transaction: e }) => {
7293
7293
  tags: v,
7294
7294
  transactions: w,
7295
7295
  updateTransaction: x
7296
- } = Se(), { common: R, transactions: D } = I(), { userProfile: $ } = dn(), { onEvent: O } = z(), {
7296
+ } = Te(), { common: R, transactions: D } = I(), { userProfile: $ } = dn(), { onEvent: O } = z(), {
7297
7297
  displayedDateRange: L,
7298
7298
  isCopyLoaded: U,
7299
7299
  isInitialized: P,
@@ -7301,7 +7301,7 @@ const hc = ({ transaction: e }) => {
7301
7301
  selectedAccounts: he,
7302
7302
  setDisplayedDate: V,
7303
7303
  setSelectedAccounts: Ce
7304
- } = ce(), [me, _e] = g.useState(""), [Pe, ge] = g.useState(""), [ze, je] = g.useState(!1), [Te, _t] = g.useState(!1), [un, se] = g.useState(!1);
7304
+ } = ce(), [me, _e] = g.useState(""), [Pe, ge] = g.useState(""), [ze, je] = g.useState(!1), [Ae, _t] = g.useState(!1), [un, se] = g.useState(!1);
7305
7305
  g.useEffect(() => {
7306
7306
  Ce(r);
7307
7307
  }, [r]), g.useEffect(() => {
@@ -7478,7 +7478,7 @@ const hc = ({ transaction: e }) => {
7478
7478
  di,
7479
7479
  {
7480
7480
  onClose: Cl,
7481
- showConnectWidget: Te,
7481
+ showConnectWidget: Ae,
7482
7482
  title: D.add_manual_account
7483
7483
  }
7484
7484
  )
@@ -7545,7 +7545,7 @@ const hc = ({ transaction: e }) => {
7545
7545
  }, C = u.find((f) => f.id === e.recurrenceType);
7546
7546
  return /* @__PURE__ */ l(Z, { children: [
7547
7547
  /* @__PURE__ */ t(
7548
- $n,
7548
+ Hn,
7549
7549
  {
7550
7550
  iconName: "sync",
7551
7551
  label: n.activity_schedule,
@@ -7603,7 +7603,7 @@ const hc = ({ transaction: e }) => {
7603
7603
  };
7604
7604
  return /* @__PURE__ */ l(Z, { children: [
7605
7605
  /* @__PURE__ */ t(
7606
- $n,
7606
+ Hn,
7607
7607
  {
7608
7608
  iconName: "calendar_month",
7609
7609
  label: n.activity_payment_date,
@@ -7642,7 +7642,7 @@ const hc = ({ transaction: e }) => {
7642
7642
  )
7643
7643
  ] });
7644
7644
  }, ig = A(ng), ag = ({ activity: e, onDeleted: n }) => {
7645
- const { recurring: i } = I(), { categories: a } = Ke(), { deleteCashflowSequence: r, deleteScheduledPayment: o, paidActivities: s } = nt(), { filter: c, setFilter: d, transactions: _ } = Se(), { selectedAccountGuids: u } = ce(), { onEvent: h } = z(), [m, C] = g.useState(!1), [f, E] = g.useState(""), y = a.find((R) => R.guid === e.categoryGuid), T = e.activityType === Qe.Income, v = g.useMemo(
7645
+ const { recurring: i } = I(), { categories: a } = Ke(), { deleteCashflowSequence: r, deleteScheduledPayment: o, paidActivities: s } = nt(), { filter: c, setFilter: d, transactions: _ } = Te(), { selectedAccountGuids: u } = ce(), { onEvent: h } = z(), [m, C] = g.useState(!1), [f, E] = g.useState(""), y = a.find((R) => R.guid === e.categoryGuid), T = e.activityType === Qe.Income, v = g.useMemo(
7646
7646
  () => _.find((R) => R.guid === f),
7647
7647
  [f]
7648
7648
  );
@@ -7692,7 +7692,7 @@ const hc = ({ transaction: e }) => {
7692
7692
  /* @__PURE__ */ l(ie, { sx: { bgcolor: "background.paper" }, children: [
7693
7693
  e.institution && /* @__PURE__ */ l(Z, { children: [
7694
7694
  /* @__PURE__ */ t(
7695
- $n,
7695
+ Hn,
7696
7696
  {
7697
7697
  iconName: "checkbook",
7698
7698
  label: i.account,
@@ -7703,7 +7703,7 @@ const hc = ({ transaction: e }) => {
7703
7703
  ] }),
7704
7704
  y && /* @__PURE__ */ l(Z, { children: [
7705
7705
  /* @__PURE__ */ t(
7706
- $n,
7706
+ Hn,
7707
7707
  {
7708
7708
  iconName: "monetization_on",
7709
7709
  label: i.category,
@@ -8091,7 +8091,7 @@ const hc = ({ transaction: e }) => {
8091
8091
  label: n,
8092
8092
  onAddActivity: i = () => null
8093
8093
  }) => {
8094
- const { recurring: a } = I(), { addCashflowEvent: r, addCashflowSequence: o, addScheduledPayment: s } = nt(), { filter: c, setFilter: d, transactions: _ } = Se(), [u, h] = g.useState(!1), [m, C] = g.useState(""), [f, E] = g.useState(Q.EveryMonth), [y, T] = g.useState(null), v = g.useMemo(
8094
+ const { recurring: a } = I(), { addCashflowEvent: r, addCashflowSequence: o, addScheduledPayment: s } = nt(), { filter: c, setFilter: d, transactions: _ } = Te(), [u, h] = g.useState(!1), [m, C] = g.useState(""), [f, E] = g.useState(Q.EveryMonth), [y, T] = g.useState(null), v = g.useMemo(
8095
8095
  () => _.find((D) => D.guid === m),
8096
8096
  [m]
8097
8097
  ), w = () => {
@@ -8185,7 +8185,7 @@ const hc = ({ transaction: e }) => {
8185
8185
  scheduledPaymentGuid: a.guid
8186
8186
  };
8187
8187
  }), gg = () => {
8188
- const { recurring: e } = I(), { scheduledPayments: n } = nt(), { transactions: i } = Se(), { selectedAccounts: a } = ce(), { onEvent: r } = z(), o = hg(a, n, i), s = (d) => {
8188
+ const { recurring: e } = I(), { scheduledPayments: n } = nt(), { transactions: i } = Te(), { selectedAccounts: a } = ce(), { onEvent: r } = z(), o = hg(a, n, i), s = (d) => {
8189
8189
  r(W.RECURRING_ACTIVITY_CLICK_EXPENSE, {
8190
8190
  transaction_guid: d.transactionGuid
8191
8191
  });
@@ -8380,7 +8380,7 @@ const hc = ({ transaction: e }) => {
8380
8380
  sequenceGuid: o.guid
8381
8381
  };
8382
8382
  }), bg = () => {
8383
- const { recurring: e } = I(), { selectedAccounts: n } = ce(), { cashflowEvents: i, cashflowSequences: a, projectedEvents: r } = nt(), { transactions: o } = Se(), { onEvent: s } = z(), c = fg(
8383
+ const { recurring: e } = I(), { selectedAccounts: n } = ce(), { cashflowEvents: i, cashflowSequences: a, projectedEvents: r } = nt(), { transactions: o } = Te(), { onEvent: s } = z(), c = fg(
8384
8384
  n,
8385
8385
  i,
8386
8386
  r,
@@ -8681,7 +8681,7 @@ const hc = ({ transaction: e }) => {
8681
8681
  /* @__PURE__ */ t(oi, { data: d })
8682
8682
  ] });
8683
8683
  }, Go = A(wg), Ng = () => {
8684
- const { recurring: e } = I(), { isMobile: n, isSmallTablet: i } = ve(), {
8684
+ const { recurring: e } = I(), { isMobile: n, isSmallTablet: i } = Se(), {
8685
8685
  activities: a,
8686
8686
  missedActivities: r,
8687
8687
  paidActivities: o,
@@ -8771,7 +8771,7 @@ const hc = ({ transaction: e }) => {
8771
8771
  ] }) })
8772
8772
  ] });
8773
8773
  }, Dg = A(Ng), Rg = ({ onBackClick: e, sx: n = {} }) => {
8774
- const { visibleAccounts: i } = Re(), { recurring: a } = I(), { isCopyLoaded: r, isInitialized: o, selectedAccountGuids: s, setSelectedAccounts: c } = ce(), { setFilter: d } = Se(), { isDataLoaded: _, loadActivity: u } = nt(), { onEvent: h } = z();
8774
+ const { visibleAccounts: i } = Re(), { recurring: a } = I(), { isCopyLoaded: r, isInitialized: o, selectedAccountGuids: s, setSelectedAccounts: c } = ce(), { setFilter: d } = Te(), { isDataLoaded: _, loadActivity: u } = nt(), { onEvent: h } = z();
8775
8775
  g.useEffect(() => {
8776
8776
  u();
8777
8777
  }, []), g.useEffect(() => {
@@ -8832,7 +8832,7 @@ const hc = ({ transaction: e }) => {
8832
8832
  g.useEffect(() => {
8833
8833
  i();
8834
8834
  }, []);
8835
- const { availableWidth: c } = Un(), d = c < 750;
8835
+ const { availableWidth: c } = Wn(), d = c < 750;
8836
8836
  return n ? /* @__PURE__ */ l(b, { flexDirection: d ? "column" : "row", width: "100%", children: [
8837
8837
  /* @__PURE__ */ t(vc, {}),
8838
8838
  !d && /* @__PURE__ */ t(G, { flexItem: !0, orientation: "vertical", sx: { my: 16, ml: 16 } }),
@@ -8851,7 +8851,7 @@ const hc = ({ transaction: e }) => {
8851
8851
  )
8852
8852
  ] }) : /* @__PURE__ */ t(ue, {});
8853
8853
  }, Lg = A(Og), Mg = ({ onPrimaryCtaClick: e, sx: n }) => {
8854
- const { accounts: i } = Re(), { recurring: a } = I(), { isCopyLoaded: r, isInitialized: o, setSelectedAccounts: s, selectedAccountGuids: c } = ce(), { setFilter: d } = Se();
8854
+ const { accounts: i } = Re(), { recurring: a } = I(), { isCopyLoaded: r, isInitialized: o, setSelectedAccounts: s, selectedAccountGuids: c } = ce(), { setFilter: d } = Te();
8855
8855
  return g.useEffect(() => {
8856
8856
  o && s(i);
8857
8857
  }, [o]), g.useEffect(() => {
@@ -9323,7 +9323,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
9323
9323
  /* @__PURE__ */ t(G, {})
9324
9324
  ] });
9325
9325
  }, Po = A(zg), Ho = (e, n) => (i) => i.accountGuid === e.guid && (mr(i.expectedDate) || Zt(i.expectedDate, n.start)) && we(i.expectedDate, n.end), Yg = () => {
9326
- const { availableWidth: e } = Un(), { cashflow: n } = I(), { upcomingExpenses: i, upcomingIncome: a } = nt(), { dateRange: r, selectedCashAccounts: o } = ui();
9326
+ const { availableWidth: e } = Wn(), { cashflow: n } = I(), { upcomingExpenses: i, upcomingIncome: a } = nt(), { dateRange: r, selectedCashAccounts: o } = ui();
9327
9327
  return /* @__PURE__ */ l(b, { children: [
9328
9328
  /* @__PURE__ */ l(b, { direction: e < 400 ? "column" : "row", justifyContent: "space-between", children: [
9329
9329
  /* @__PURE__ */ t(p, { bold: !0, sx: { fontSize: 15, mb: 12, whiteSpace: "normal" }, children: n.accounts_breakdown }),
@@ -9395,7 +9395,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
9395
9395
  }) })
9396
9396
  ] });
9397
9397
  }, jg = A(Yg), Xg = () => {
9398
- const { availableWidth: e } = Un(), n = pe(), { cashflow: i } = I(), { upcomingExpenses: a, upcomingIncome: r } = nt(), { dateRange: o, selectedCashAccounts: s } = ui(), c = [
9398
+ const { availableWidth: e } = Wn(), n = pe(), { cashflow: i } = I(), { upcomingExpenses: a, upcomingIncome: r } = nt(), { dateRange: o, selectedCashAccounts: s } = ui(), c = [
9399
9399
  {
9400
9400
  field: "account",
9401
9401
  flex: 1.5,
@@ -9624,7 +9624,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
9624
9624
  }
9625
9625
  );
9626
9626
  }, qg = A(Xg), Zg = () => {
9627
- const { cashflow: e } = I(), { isDesktop: n } = ve(), { onEvent: i } = z(), [a, r] = g.useState(0), o = (s, c) => {
9627
+ const { cashflow: e } = I(), { isDesktop: n } = Se(), { onEvent: i } = z(), [a, r] = g.useState(0), o = (s, c) => {
9628
9628
  r(c);
9629
9629
  };
9630
9630
  return g.useEffect(() => {
@@ -9689,7 +9689,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
9689
9689
  ]
9690
9690
  }
9691
9691
  ), $o = (e, n) => (i) => i.accountGuid && e.includes(i.accountGuid) && (mr(i.expectedDate) || Zt(i.expectedDate, n.start)) && we(i.expectedDate, n.end), Jg = () => {
9692
- const [e, n] = g.useState(!1), { availableWidth: i } = Un(), { cashflow: a } = I(), { upcomingExpenses: r, upcomingIncome: o } = nt(), { selectedAccountGuids: s } = ce(), { dateRange: c, selectedCashAccounts: d } = ui(), { userProfile: _ } = dn(), u = g.useMemo(
9692
+ const [e, n] = g.useState(!1), { availableWidth: i } = Wn(), { cashflow: a } = I(), { upcomingExpenses: r, upcomingIncome: o } = nt(), { selectedAccountGuids: s } = ce(), { dateRange: c, selectedCashAccounts: d } = ui(), { userProfile: _ } = dn(), u = g.useMemo(
9693
9693
  () => r.filter($o(s, c)),
9694
9694
  [c, s, r]
9695
9695
  ), h = g.useMemo(
@@ -9809,7 +9809,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
9809
9809
  return /* @__PURE__ */ l(b, { children: [
9810
9810
  /* @__PURE__ */ t(cn, { pb: 12, children: i.welcome_title }),
9811
9811
  /* @__PURE__ */ t(
9812
- Fn,
9812
+ $n,
9813
9813
  {
9814
9814
  color: a.palette.primary.light,
9815
9815
  pb: 8,
@@ -9892,7 +9892,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
9892
9892
  transform: rotate(360deg);
9893
9893
  }
9894
9894
  `, om = () => {
9895
- const { addCashflowEvent: e, addCashflowSequence: n, cashflowSequences: i } = nt(), { cashflow: a, common: r } = I(), { completeOnboarding: o } = Tr(), { isDirty: s } = ui(), { isMobile: c } = ve(), { isCopyLoaded: d, setDisplayedDate: _ } = ce(), { filter: u, setFilter: h, transactions: m } = Se(), C = pe(), [f, E] = Et(!0), [y, T] = g.useState(Q.EveryMonth), [v, w] = Et(!1), [x, R] = g.useState(null), [D, $] = Et(1), [O, L] = Et([]), [U, P] = Et(""), j = g.useMemo(
9895
+ const { addCashflowEvent: e, addCashflowSequence: n, cashflowSequences: i } = nt(), { cashflow: a, common: r } = I(), { completeOnboarding: o } = Tr(), { isDirty: s } = ui(), { isMobile: c } = Se(), { isCopyLoaded: d, setDisplayedDate: _ } = ce(), { filter: u, setFilter: h, transactions: m } = Te(), C = pe(), [f, E] = Et(!0), [y, T] = g.useState(Q.EveryMonth), [v, w] = Et(!1), [x, R] = g.useState(null), [D, $] = Et(1), [O, L] = Et([]), [U, P] = Et(""), j = g.useMemo(
9896
9896
  () => m.find((_e) => _e.guid === U),
9897
9897
  [U]
9898
9898
  ), he = !!i.length, V = async () => {
@@ -10065,7 +10065,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
10065
10065
  setSelectedAccounts: r,
10066
10066
  shouldDisableNextDate: o,
10067
10067
  shouldDisablePrevDate: s
10068
- } = ce(), { onEvent: c } = z(), { visibleCashAccounts: d } = Re(), { setFilter: _ } = Se(), { userProfile: u } = dn(), { dateRange: h, setSelectedCashAccounts: m } = ui(), { loadActivity: C } = nt(), { cashflow: f } = I(), { isCopyLoaded: E, isInitialized: y } = ce(), [T, v] = g.useState(!1);
10068
+ } = ce(), { onEvent: c } = z(), { visibleCashAccounts: d } = Re(), { setFilter: _ } = Te(), { userProfile: u } = dn(), { dateRange: h, setSelectedCashAccounts: m } = ui(), { loadActivity: C } = nt(), { cashflow: f } = I(), { isCopyLoaded: E, isInitialized: y } = ce(), [T, v] = g.useState(!1);
10069
10069
  return g.useEffect(() => {
10070
10070
  y && C();
10071
10071
  }, [y]), g.useEffect(() => {
@@ -10242,7 +10242,7 @@ const Cn = () => {
10242
10242
  throw new Error("useCateUiStore() must be used within the GlobalDataContext");
10243
10243
  return Sa().uiStore;
10244
10244
  }, _m = ({ debts: e, onClickCta: n, sx: i }) => {
10245
- const a = vn(), { isMobile: r } = ve(), { debts: o } = I(), { selectedDebtPriority: s } = Cn(), { monthlyCashFlowProfile: c } = ot(), { payoffDate: d, payoffSavings: _, payoffDuration: u } = g.useMemo(() => {
10245
+ const a = vn(), { isMobile: r } = Se(), { debts: o } = I(), { selectedDebtPriority: s } = Cn(), { monthlyCashFlowProfile: c } = ot(), { payoffDate: d, payoffSavings: _, payoffDuration: u } = g.useMemo(() => {
10246
10246
  const h = c?.extra_payment ?? 0;
10247
10247
  return um(e, s, h);
10248
10248
  }, [e, s, c]);
@@ -10769,7 +10769,7 @@ const Cn = () => {
10769
10769
  /* @__PURE__ */ t(p, { variant: "Small", children: _?.name })
10770
10770
  ] }),
10771
10771
  /* @__PURE__ */ l(b, { gap: 8, mb: 24, mt: 4, children: [
10772
- /* @__PURE__ */ t(Fn, { children: i.name || i.feed_name }),
10772
+ /* @__PURE__ */ t($n, { children: i.name || i.feed_name }),
10773
10773
  /* @__PURE__ */ l(b, { direction: "row", justifyContent: "space-between", children: [
10774
10774
  /* @__PURE__ */ t(p, { bold: s, variant: "Body", children: r }),
10775
10775
  /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: B(o, "0,0.00") })
@@ -11443,7 +11443,7 @@ const Ut = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
11443
11443
  onHoverRow: a,
11444
11444
  onClickRow: r
11445
11445
  }) => {
11446
- const o = vn(), { onEvent: s } = z(), { isMobile: c } = ve(), { debts: d } = I(), [_, u] = g.useState([
11446
+ const o = vn(), { onEvent: s } = z(), { isMobile: c } = Se(), { debts: d } = I(), [_, u] = g.useState([
11447
11447
  { field: "priority", sort: "asc" }
11448
11448
  ]), h = [
11449
11449
  {
@@ -11592,7 +11592,7 @@ const Ut = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
11592
11592
  }
11593
11593
  );
11594
11594
  }, np = ({ buttonText: e, isOpen: n, onClick: i }) => {
11595
- const { isDesktop: a, isTablet: r } = ve(), o = n ? "unfold_less" : "unfold_more";
11595
+ const { isDesktop: a, isTablet: r } = Se(), o = n ? "unfold_less" : "unfold_more";
11596
11596
  return a || r ? /* @__PURE__ */ t(
11597
11597
  ee,
11598
11598
  {
@@ -11727,7 +11727,7 @@ const Ut = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
11727
11727
  d.priority = !d.is_paid_off && !d.is_impossible ? c++ : void 0;
11728
11728
  }), o;
11729
11729
  }, op = A(({ onClick: e }) => {
11730
- const { debts: n } = I(), { isDesktop: i } = ve(), { totalMonthlyPayments: a } = Sa(), { monthlyCashFlowProfile: r } = ot(), o = a + Number(r?.extra_payment), s = i ? n.paydown_button_long : n.paydown_button_short;
11730
+ const { debts: n } = I(), { isDesktop: i } = Se(), { totalMonthlyPayments: a } = Sa(), { monthlyCashFlowProfile: r } = ot(), o = a + Number(r?.extra_payment), s = i ? n.paydown_button_long : n.paydown_button_short;
11731
11731
  return /* @__PURE__ */ t(
11732
11732
  ee,
11733
11733
  {
@@ -11741,7 +11741,7 @@ const Ut = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
11741
11741
  }
11742
11742
  );
11743
11743
  }), sp = ({ onBackClick: e, sx: n }) => {
11744
- const [i, a] = g.useState(!1), [r, o] = g.useState(!1), [s, c] = g.useState(!1), [d, _] = g.useState(""), { isDesktop: u, isMobile: h } = ve(), { debts: m } = I(), { onEvent: C } = z(), { isCopyLoaded: f, isInitialized: E, setSelectedAccounts: y } = ce(), { setSelectedAccount: T } = $t(), { selectedDebtPriority: v, setSelectedDebtChartData: w } = Cn(), { visibleDebtAccounts: x } = Re(), { goalsLoaded: R, loadGoals: D, monthlyCashFlowProfile: $ } = ot(), { debts: O } = Sa(), L = g.useMemo(() => {
11744
+ const [i, a] = g.useState(!1), [r, o] = g.useState(!1), [s, c] = g.useState(!1), [d, _] = g.useState(""), { isDesktop: u, isMobile: h } = Se(), { debts: m } = I(), { onEvent: C } = z(), { isCopyLoaded: f, isInitialized: E, setSelectedAccounts: y } = ce(), { setSelectedAccount: T } = $t(), { selectedDebtPriority: v, setSelectedDebtChartData: w } = Cn(), { visibleDebtAccounts: x } = Re(), { goalsLoaded: R, loadGoals: D, monthlyCashFlowProfile: $ } = ot(), { debts: O } = Sa(), L = g.useMemo(() => {
11745
11745
  const Ce = $?.extra_payment ?? 0;
11746
11746
  return rp(O, v, Ce);
11747
11747
  }, [O, v, $]);
@@ -11998,7 +11998,7 @@ const gp = (e, n) => {
11998
11998
  "$1$2$3"
11999
11999
  ) : B(e, "0,0.00"), Bc = A(
12000
12000
  ({ goal: e, isInDrawer: n = !1, onClick: i }) => {
12001
- const { goals: a } = I(), { isMobile: r, isTablet: o } = ve(), s = r || o, {
12001
+ const { goals: a } = I(), { isMobile: r, isTablet: o } = Se(), s = r || o, {
12002
12002
  backgroundColor: c,
12003
12003
  color: d,
12004
12004
  percentage: _,
@@ -12020,7 +12020,7 @@ const gp = (e, n) => {
12020
12020
  m,
12021
12021
  s
12022
12022
  )}` }),
12023
- title: /* @__PURE__ */ t(Fn, { color: "text.secondary", fontWeight: 400, variant: "Body", children: e.name })
12023
+ title: /* @__PURE__ */ t($n, { color: "text.secondary", fontWeight: 400, variant: "Body", children: e.name })
12024
12024
  }
12025
12025
  ),
12026
12026
  /* @__PURE__ */ t(Bt, { sx: { pt: 0 }, children: /* @__PURE__ */ l(b, { gap: 6, children: [
@@ -12266,7 +12266,7 @@ const gp = (e, n) => {
12266
12266
  )
12267
12267
  ] });
12268
12268
  }, za = A(({ trackType: e, onAddGoals: n }) => {
12269
- const { isMobile: i } = ve(), { goals: a } = I(), { orderedGoals: r, setSelectedGoal: o } = ot(), s = r.filter((u) => u.track_type === e), c = s.filter(
12269
+ const { isMobile: i } = Se(), { goals: a } = I(), { orderedGoals: r, setSelectedGoal: o } = ot(), s = r.filter((u) => u.track_type === e), c = s.filter(
12270
12270
  (u) => u.track_type === K.SAVINGS_TRACK && !u.has_been_spent || u.track_type !== K.SAVINGS_TRACK && !u.is_complete
12271
12271
  ), d = s.filter(
12272
12272
  (u) => u.track_type === K.SAVINGS_TRACK && u.has_been_spent || u.track_type !== K.SAVINGS_TRACK && u.is_complete
@@ -12834,7 +12834,7 @@ const gp = (e, n) => {
12834
12834
  )
12835
12835
  ] });
12836
12836
  }), q2 = A(({ onBackClick: e, sx: n }) => {
12837
- const { onEvent: i } = z(), { isMobile: a } = ve(), { visibleAccounts: r } = Re(), { isCopyLoaded: o, isInitialized: s, setSelectedAccounts: c } = ce(), { goals: d, common: _ } = I(), { alert: u, goals: h, goalsLoaded: m, loadGoals: C, monthlyCashFlowProfile: f, setAlert: E, retirmentGoals: y } = ot(), [T, v] = g.useState(0), [w, x] = g.useState(!1), R = f?.amount_allocated_for_savings_goals || 0, D = f?.amount_allocated_for_debt_goals || 0, $ = f?.amount_allocated_for_retirement_goals || 0, O = o ? S(
12837
+ const { onEvent: i } = z(), { isMobile: a } = Se(), { visibleAccounts: r } = Re(), { isCopyLoaded: o, isInitialized: s, setSelectedAccounts: c } = ce(), { goals: d, common: _ } = I(), { alert: u, goals: h, goalsLoaded: m, loadGoals: C, monthlyCashFlowProfile: f, setAlert: E, retirmentGoals: y } = ot(), [T, v] = g.useState(0), [w, x] = g.useState(!1), R = f?.amount_allocated_for_savings_goals || 0, D = f?.amount_allocated_for_debt_goals || 0, $ = f?.amount_allocated_for_retirement_goals || 0, O = o ? S(
12838
12838
  a ? d.tab_subtitle_mobile : d.tab_subtitle,
12839
12839
  B(R, "0,0")
12840
12840
  ) : "", L = o ? S(
@@ -13394,7 +13394,7 @@ class zo {
13394
13394
  getHoldings = async () => this.fetchInstance.get(k.HOLDINGS).then((n) => n.holdings);
13395
13395
  updateHoldings = async (n) => this.fetchInstance.put(`${k.HOLDINGS}/${n.guid}`, n).then((i) => i.holding);
13396
13396
  }
13397
- var Pn = /* @__PURE__ */ ((e) => (e.Stocks = "stocks", e.Bonds = "bonds", e))(Pn || {});
13397
+ var Bn = /* @__PURE__ */ ((e) => (e.Stocks = "stocks", e.Bonds = "bonds", e))(Bn || {});
13398
13398
  const Gp = {
13399
13399
  UNKNOWN: 0,
13400
13400
  LARGE_VALUE: 1,
@@ -13517,13 +13517,13 @@ const Gp = {
13517
13517
  const a = n(i), r = Hr(a);
13518
13518
  return r > 80 && r < 120;
13519
13519
  }), qo = (e, n) => {
13520
- const i = n === Pn.Stocks ? Hp : Pp, a = e[n];
13520
+ const i = n === Bn.Stocks ? Hp : Pp, a = e[n];
13521
13521
  return !a || !a || Object.keys(a).length === 0 ? i.map((r) => r.map(() => "0%")) : i.map((r) => r.map((o) => Wp(a[o] ?? 0)));
13522
13522
  }, Hr = (e) => Object.values(e).reduce((n, i) => n + i, 0);
13523
13523
  class Up {
13524
13524
  analysisChartData = [];
13525
13525
  analysisDetails = {};
13526
- analysisType = Pn.Stocks;
13526
+ analysisType = Bn.Stocks;
13527
13527
  api = new zo("/", "");
13528
13528
  holdings = [];
13529
13529
  holdingsLoaded = !1;
@@ -13801,7 +13801,7 @@ const n1 = ({
13801
13801
  onMouseLeave: r,
13802
13802
  selectedData: o
13803
13803
  }) => {
13804
- const { isMobile: s } = ve(), { availableWidth: c } = Un(), d = tt(), _ = c - 320, u = e.map((f) => ({
13804
+ const { isMobile: s } = Se(), { availableWidth: c } = Wn(), d = tt(), _ = c - 320, u = e.map((f) => ({
13805
13805
  x: wt(Me(f.x), "MMM"),
13806
13806
  y: f.y
13807
13807
  })), h = o ? { index: e.findIndex((f) => f.x === o.x) } : void 0, m = n ? { index: e.findIndex((f) => f.x === n.x) } : void 0, C = (f) => ({
@@ -13980,8 +13980,8 @@ const n1 = ({
13980
13980
  },
13981
13981
  title: i,
13982
13982
  children: /* @__PURE__ */ l("div", { id: Eo, children: [
13983
- u && /* @__PURE__ */ t(ta, { status: Bn.Error }),
13984
- d && /* @__PURE__ */ t(ta, { status: Bn.Loading })
13983
+ u && /* @__PURE__ */ t(ta, { status: Gn.Error }),
13984
+ d && /* @__PURE__ */ t(ta, { status: Gn.Loading })
13985
13985
  ] })
13986
13986
  }
13987
13987
  );
@@ -14157,7 +14157,7 @@ const n1 = ({
14157
14157
  selectedData: f,
14158
14158
  setHoveredData: E,
14159
14159
  setSelectedData: y
14160
- } = Ku(), { isMobile: T } = ve(), { onEvent: v } = z(), [w, x] = g.useState(!1), [R, D] = g.useState(6), [$, O] = g.useState(!1), [L, U] = g.useState(!1), [P, j] = g.useState(!1), he = async () => {
14160
+ } = Ku(), { isMobile: T } = Se(), { onEvent: v } = z(), [w, x] = g.useState(!1), [R, D] = g.useState(6), [$, O] = g.useState(!1), [L, U] = g.useState(!1), [P, j] = g.useState(!1), he = async () => {
14161
14161
  await m(a), await h(R), x(!0);
14162
14162
  };
14163
14163
  g.useEffect(() => {
@@ -14169,8 +14169,8 @@ const n1 = ({
14169
14169
  }, [i, a]), g.useEffect(() => {
14170
14170
  v(W.NET_WORTH_WIDGET_CLICK_TIMEFRAME, { time_period: R + "M" }), h(R).finally();
14171
14171
  }, [R]);
14172
- const V = (je, Te) => {
14173
- y(Te), je.currentTarget instanceof HTMLDivElement && O(!0);
14172
+ const V = (je, Ae) => {
14173
+ y(Ae), je.currentTarget instanceof HTMLDivElement && O(!0);
14174
14174
  }, Ce = (je) => {
14175
14175
  E(je);
14176
14176
  }, me = () => {
@@ -14178,8 +14178,8 @@ const n1 = ({
14178
14178
  }, _e = () => {
14179
14179
  v(W.NET_WORTH_WIDGET_CLICK_ASSETS_LIABILITIES), U(!0);
14180
14180
  }, Pe = async (je) => {
14181
- const Te = je[0], _t = je[1];
14182
- Te && _t && D(Id(_t, Te));
14181
+ const Ae = je[0], _t = je[1];
14182
+ Ae && _t && D(Id(_t, Ae));
14183
14183
  }, ge = {
14184
14184
  chartData: C,
14185
14185
  hoveredData: u,
@@ -14713,7 +14713,7 @@ const R1 = ({
14713
14713
  }
14714
14714
  )
14715
14715
  ] }),
14716
- /* @__PURE__ */ t(Fn, { color: "text.primary", sx: { mt: 24, whiteSpace: { sm: "nowrap", xs: "wrap" } }, children: o })
14716
+ /* @__PURE__ */ t($n, { color: "text.primary", sx: { mt: 24, whiteSpace: { sm: "nowrap", xs: "wrap" } }, children: o })
14717
14717
  ] });
14718
14718
  }, dr = ({
14719
14719
  altImage: e,
@@ -17695,7 +17695,7 @@ const R1 = ({
17695
17695
  return /* @__PURE__ */ t(ne, { isOpen: i, onClose: r, title: e.request_support, children: /* @__PURE__ */ l(M, { sx: { px: 24 }, children: [
17696
17696
  /* @__PURE__ */ t(b, { sx: { alignItems: "center", pb: 24, pt: 80 }, children: /* @__PURE__ */ t(H, { color: "success", fill: !0, name: "check_circle", size: 64 }) }),
17697
17697
  /* @__PURE__ */ l(b, { sx: { alignItems: "center", gap: 16, pb: 48 }, children: [
17698
- /* @__PURE__ */ t(Fn, { children: e.request_support_success }),
17698
+ /* @__PURE__ */ t($n, { children: e.request_support_success }),
17699
17699
  /* @__PURE__ */ t(Oe, { align: "center", variant: "Body", children: e.request_support_submit_success_message }),
17700
17700
  /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: n })
17701
17701
  ] }),
@@ -17859,7 +17859,7 @@ const R1 = ({
17859
17859
  ] }) });
17860
17860
  }
17861
17861
  ), dC = ({ sx: e }) => {
17862
- const [n, i] = g.useState(!1), [a, r] = g.useState(null), { help: o } = I(), { isCopyLoaded: s, isInitialized: c } = ce(), { helpCategories: d } = Ar(), { isMobile: _ } = ve(), u = window.app?.config, h = () => i(!0), m = (C) => r(C);
17862
+ const [n, i] = g.useState(!1), [a, r] = g.useState(null), { help: o } = I(), { isCopyLoaded: s, isInitialized: c } = ce(), { helpCategories: d } = Ar(), { isMobile: _ } = Se(), u = window.app?.config, h = () => i(!0), m = (C) => r(C);
17863
17863
  return !s || !c ? /* @__PURE__ */ t(ue, {}) : /* @__PURE__ */ l(M, { sx: { pt: 24, px: _ ? 24 : 0, ...e }, children: [
17864
17864
  a ? /* @__PURE__ */ t(
17865
17865
  j1,
@@ -18031,7 +18031,7 @@ const R1 = ({
18031
18031
  )
18032
18032
  ] });
18033
18033
  }), mC = () => {
18034
- const e = tt(), { common: n, settings: i } = I(), { isDesktop: a, isMobile: r, isSmallMobile: o, isTablet: s } = ve(), { config: c } = Ea(), { updateUser: d } = Ht(), { user: _ } = dn(), [u, h] = g.useState(_.first_name), [m, C] = g.useState(_.last_name), [f, E] = g.useState(_.email), [y, T] = g.useState(_.phone), [v, w] = g.useState(_.postal_code), [x, R] = g.useState(_.credit_score), [D, $] = g.useState(null), O = f && !_.email_is_verified, L = y && !_.phone_is_verified;
18034
+ const e = tt(), { common: n, settings: i } = I(), { isDesktop: a, isMobile: r, isSmallMobile: o, isTablet: s } = Se(), { config: c } = Ea(), { updateUser: d } = Ht(), { user: _ } = dn(), [u, h] = g.useState(_.first_name), [m, C] = g.useState(_.last_name), [f, E] = g.useState(_.email), [y, T] = g.useState(_.phone), [v, w] = g.useState(_.postal_code), [x, R] = g.useState(_.credit_score), [D, $] = g.useState(null), O = f && !_.email_is_verified, L = y && !_.phone_is_verified;
18035
18035
  g.useEffect(() => {
18036
18036
  if (_.birthday) {
18037
18037
  const P = new Date(_.birthday * 1e3), j = P.getUTCFullYear(), he = P.getUTCMonth(), V = P.getUTCDate();
@@ -18502,7 +18502,7 @@ const CC = ({
18502
18502
  }
18503
18503
  );
18504
18504
  }, yC = A(bC), EC = A(() => {
18505
- const { isMobile: e } = ve(), { settings: n } = I(), { isCopyLoaded: i, isInitialized: a } = ce(), { setAlert: r, devices: o, loadDevices: s, generateDeviceToken: c } = Ht(), [d, _] = g.useState({ open: !1, type: "" }), [u, h] = g.useState(), [m, C] = g.useState("");
18505
+ const { isMobile: e } = Se(), { settings: n } = I(), { isCopyLoaded: i, isInitialized: a } = ce(), { setAlert: r, devices: o, loadDevices: s, generateDeviceToken: c } = Ht(), [d, _] = g.useState({ open: !1, type: "" }), [u, h] = g.useState(), [m, C] = g.useState("");
18506
18506
  g.useEffect(() => {
18507
18507
  a && s();
18508
18508
  }, [a]);
@@ -18699,7 +18699,7 @@ const CC = ({
18699
18699
  );
18700
18700
  }
18701
18701
  ), xC = A(({ rule: e }) => {
18702
- const { categories: n } = Ke(), { setSelectedGuid: i } = pn(), { deleteTransactionRule: a, setSelectedRule: r } = Ht(), { isDesktop: o, isTablet: s } = ve(), [c, d] = g.useState(!1), _ = () => {
18702
+ const { categories: n } = Ke(), { setSelectedGuid: i } = pn(), { deleteTransactionRule: a, setSelectedRule: r } = Ht(), { isDesktop: o, isTablet: s } = Se(), [c, d] = g.useState(!1), _ = () => {
18703
18703
  d(!1), i(null), r(void 0);
18704
18704
  }, u = async () => {
18705
18705
  await a(), _();
@@ -18720,7 +18720,7 @@ const CC = ({
18720
18720
  /* @__PURE__ */ t(IC, { isOpen: c, onClose: _, onDelete: u })
18721
18721
  ] });
18722
18722
  }), vC = A(() => {
18723
- const { settings: e } = I(), { loadTransactionRules: n, transactionRules: i } = Ht(), { isDesktop: a, isTablet: r } = ve();
18723
+ const { settings: e } = I(), { loadTransactionRules: n, transactionRules: i } = Ht(), { isDesktop: a, isTablet: r } = Se();
18724
18724
  return g.useEffect(() => {
18725
18725
  n();
18726
18726
  }, []), /* @__PURE__ */ l(b, { spacing: 24, sx: { pb: 48, pt: 24 }, children: [
@@ -18913,7 +18913,7 @@ const CC = ({
18913
18913
  ] });
18914
18914
  }
18915
18915
  ), Xc = A(() => {
18916
- const { common: e, settings: n } = I(), { isMobile: i } = ve(), {
18916
+ const { common: e, settings: n } = I(), { isMobile: i } = Se(), {
18917
18917
  accountProfiles: a,
18918
18918
  budgetProfiles: r,
18919
18919
  clientCommunicationProfile: o,
@@ -18979,7 +18979,7 @@ const CC = ({
18979
18979
  )
18980
18980
  ] });
18981
18981
  }), e4 = A(({ onBackClick: e, sx: n }) => {
18982
- const { settings: i } = I(), { isCopyLoaded: a, isInitialized: r } = ce(), { config: o } = Ea(), { alert: s, setAlert: c } = Ht(), { isMobile: d } = ve(), _ = pe(), {
18982
+ const { settings: i } = I(), { isCopyLoaded: a, isInitialized: r } = ce(), { config: o } = Ea(), { alert: s, setAlert: c } = Ht(), { isMobile: d } = Se(), _ = pe(), {
18983
18983
  display_user_profile_in_settings: u,
18984
18984
  display_mobile_devices_in_settings: h,
18985
18985
  display_notification_settings_in_settings: m,
@@ -19716,7 +19716,7 @@ const Xa = ({
19716
19716
  (a) => a.member_guid === i.guid && i.successfully_aggregated_at && a.guid !== n.guid
19717
19717
  );
19718
19718
  }, jC = () => {
19719
- const [e, n] = g.useState(!1), [i, a] = g.useState(!1), [r, o] = g.useState(!1), [s, c] = g.useState({}), { selectedAccount: d } = $t(), { mergeAccounts: _, updateAccount: u } = Re(), { accounts: h } = I(), m = YC(), { onEvent: C } = z(), { modifyTransactionByAccountGuid: f } = Se(), E = async (T) => {
19719
+ const [e, n] = g.useState(!1), [i, a] = g.useState(!1), [r, o] = g.useState(!1), [s, c] = g.useState({}), { selectedAccount: d } = $t(), { mergeAccounts: _, updateAccount: u } = Re(), { accounts: h } = I(), m = YC(), { onEvent: C } = z(), { modifyTransactionByAccountGuid: f } = Te(), E = async (T) => {
19720
19720
  await u({
19721
19721
  ...d,
19722
19722
  ...T
@@ -20262,7 +20262,7 @@ const Xa = ({
20262
20262
  )
20263
20263
  ] });
20264
20264
  }, of = A(rf), sf = () => {
20265
- const [e, n] = g.useState(""), { onEvent: i } = z(), { selectedAccount: a } = $t(), { accounts: r } = I(), { setFilter: o, sortedTransactions: s } = Se(), c = g.useMemo(() => s.find((d) => d.guid === e), [e]);
20265
+ const [e, n] = g.useState(""), { onEvent: i } = z(), { selectedAccount: a } = $t(), { accounts: r } = I(), { setFilter: o, sortedTransactions: s } = Te(), c = g.useMemo(() => s.find((d) => d.guid === e), [e]);
20266
20266
  return g.useEffect(() => {
20267
20267
  o({
20268
20268
  dateRange: { start: vd(wd(), 90), end: Nd() },
@@ -20462,7 +20462,7 @@ const Xa = ({
20462
20462
  )
20463
20463
  ] });
20464
20464
  }, uf = A(df), _f = ({ onBackClick: e, sx: n = {} }) => {
20465
- const [i, a] = g.useState(!1), [r, o] = g.useState(!1), { config: s } = Ea(), { accounts: c, refreshMembers: d } = Re(), { accounts: _ } = I(), { isCopyLoaded: u, isInitialized: h, setSelectedAccounts: m, selectedAccountGuids: C } = ce(), { isDesktop: f } = ve(), { onEvent: E } = z();
20465
+ const [i, a] = g.useState(!1), [r, o] = g.useState(!1), { config: s } = Ea(), { accounts: c, refreshMembers: d } = Re(), { accounts: _ } = I(), { isCopyLoaded: u, isInitialized: h, setSelectedAccounts: m, selectedAccountGuids: C } = ce(), { isDesktop: f } = Se(), { onEvent: E } = z();
20466
20466
  g.useEffect(() => {
20467
20467
  m(c);
20468
20468
  }, [c]);
@@ -21489,7 +21489,7 @@ function kf({ bubble: e, isDraggable: n, onClick: i = () => {
21489
21489
  y: C,
21490
21490
  children: [
21491
21491
  /* @__PURE__ */ t(
21492
- Wn,
21492
+ Fn,
21493
21493
  {
21494
21494
  followCursor: !0,
21495
21495
  open: a,
@@ -21648,7 +21648,7 @@ const Gf = ({
21648
21648
  shouldShowZeroState: r,
21649
21649
  unavailableWidth: o = 24
21650
21650
  }) => {
21651
- const { onEvent: s } = z(), { setSelectedBudget: c } = lt(), { isLoadingCategoryTotals: d } = Ke(), { isInitialized: _ } = ce(), { accounts: u } = I(), { availableWidth: h } = Un(), { isMobile: m } = ve(), [C, f] = g.useState(!1), E = g.useMemo(() => h - o, [h]), y = (v) => {
21651
+ const { onEvent: s } = z(), { setSelectedBudget: c } = lt(), { isLoadingCategoryTotals: d } = Ke(), { isInitialized: _ } = ce(), { accounts: u } = I(), { availableWidth: h } = Wn(), { isMobile: m } = Se(), [C, f] = g.useState(!1), E = g.useMemo(() => h - o, [h]), y = (v) => {
21652
21652
  c(v), s(W.BUDGETS_CLICK_BUDGET_CATEGORY, {
21653
21653
  budget_category: v.category.name,
21654
21654
  click_type: "bubble"
@@ -21942,7 +21942,7 @@ const Gf = ({
21942
21942
  )
21943
21943
  ] });
21944
21944
  }), jf = A(({ budget: e }) => {
21945
- const { category: n, subBudgets: i } = e, { budgets: a, common: r } = I(), { deleteBudget: o, selectedSubBudget: s, setSelectedSubBudget: c, updateBudget: d } = lt(), { filter: _, setFilter: u } = Se(), [h, m] = g.useState(!1), [C, f] = g.useState(!1), [E, y] = g.useState("");
21945
+ const { category: n, subBudgets: i } = e, { budgets: a, common: r } = I(), { deleteBudget: o, selectedSubBudget: s, setSelectedSubBudget: c, updateBudget: d } = lt(), { filter: _, setFilter: u } = Te(), [h, m] = g.useState(!1), [C, f] = g.useState(!1), [E, y] = g.useState("");
21946
21946
  g.useEffect(() => {
21947
21947
  s && (y(`${s.amount}`), u({
21948
21948
  ..._,
@@ -22023,7 +22023,7 @@ const Gf = ({
22023
22023
  ] })
22024
22024
  ] });
22025
22025
  }), Xf = A(({ budget: e }) => {
22026
- const { budgets: n, common: i, transactions: a } = I(), { setAlert: r } = lt(), { sortedTransactions: o, tags: s } = Se(), [c, d] = g.useState(0), [_, u] = g.useState(""), h = g.useMemo(
22026
+ const { budgets: n, common: i, transactions: a } = I(), { setAlert: r } = lt(), { sortedTransactions: o, tags: s } = Te(), [c, d] = g.useState(0), [_, u] = g.useState(""), h = g.useMemo(
22027
22027
  () => o.find((f) => f.guid === _),
22028
22028
  [_]
22029
22029
  ), m = (f, E) => {
@@ -22093,7 +22093,7 @@ const Gf = ({
22093
22093
  setAlert: c,
22094
22094
  setSelectedBudget: d,
22095
22095
  updateBudget: _
22096
- } = lt(), { setFilter: u } = Se(), [h, m] = g.useState(!1), [C, f] = g.useState(!1), [E, y] = g.useState(!1), [T, v] = g.useState("");
22096
+ } = lt(), { setFilter: u } = Te(), [h, m] = g.useState(!1), [C, f] = g.useState(!1), [E, y] = g.useState(!1), [T, v] = g.useState("");
22097
22097
  g.useEffect(() => {
22098
22098
  o && !s && (v(`${o.amount}`), m(!0), u({
22099
22099
  accounts: e,
@@ -22208,7 +22208,7 @@ const Gf = ({
22208
22208
  ] }, o.guid)) }) })
22209
22209
  ] });
22210
22210
  }), Jf = A(() => {
22211
- const e = pe(), { onEvent: n } = z(), { visibleAccounts: i } = Re(), { budgets: a, common: r, recurring: o } = I(), { incomeCategories: s, spendCategories: c } = Ke(), { detailedBudgets: d, totalBudgeted: _ } = lt(), { projectedIncome: u } = nt(), { setFilter: h } = Se(), [m, C] = g.useState(!1), [f, E] = g.useMemo(() => {
22211
+ const e = pe(), { onEvent: n } = z(), { visibleAccounts: i } = Re(), { budgets: a, common: r, recurring: o } = I(), { incomeCategories: s, spendCategories: c } = Ke(), { detailedBudgets: d, totalBudgeted: _ } = lt(), { projectedIncome: u } = nt(), { setFilter: h } = Te(), [m, C] = g.useState(!1), [f, E] = g.useMemo(() => {
22212
22212
  const w = c.reduce(($, O) => $ + O.totalAmount, 0);
22213
22213
  let x = w / _;
22214
22214
  x > 1 && (x = 1);
@@ -22300,7 +22300,7 @@ const Gf = ({
22300
22300
  setAlert: T,
22301
22301
  setTheme: v,
22302
22302
  budgets: w
22303
- } = lt(), { loadActivity: x } = nt(), { isDesktop: R, isTablet: D } = ve(), { reloadCategoryTotals: $ } = Ke(), [O, L] = g.useState(!1);
22303
+ } = lt(), { loadActivity: x } = nt(), { isDesktop: R, isTablet: D } = Se(), { reloadCategoryTotals: $ } = Ke(), [O, L] = g.useState(!1);
22304
22304
  g.useEffect(() => {
22305
22305
  v(i), h(r), u(C.start, C.end), a(W.BUDGETS_VIEW);
22306
22306
  }, []), g.useEffect(() => {
@@ -22445,19 +22445,19 @@ const Gf = ({
22445
22445
  }
22446
22446
  ) : null;
22447
22447
  }), t0 = () => {
22448
- const [e, n] = g.useState(!1), i = Mn("(max-width:700px)"), { common: a, connect: r } = I(), o = () => {
22448
+ const [e, n] = g.useState(!1), { isMobile: i, isSmallTablet: a } = Se(), { common: r, connect: o } = I(), s = () => {
22449
22449
  n(!0);
22450
22450
  };
22451
22451
  return /* @__PURE__ */ l(g.Fragment, { children: [
22452
- /* @__PURE__ */ t(M, { my: 4, children: i ? /* @__PURE__ */ t(Wn, { id: "add-accounts", placement: "bottom", title: a.add_accounts, children: /* @__PURE__ */ t(
22452
+ /* @__PURE__ */ t(M, { my: 4, children: i || a ? /* @__PURE__ */ t(Fn, { id: "add-accounts", placement: "bottom", title: r.add_accounts, children: /* @__PURE__ */ t(
22453
22453
  $e,
22454
22454
  {
22455
22455
  "aria-controls": "add_accounts",
22456
22456
  "aria-describedby": "add-accounts",
22457
22457
  "aria-haspopup": !0,
22458
- "aria-label": a.add_accounts,
22458
+ "aria-label": r.add_accounts,
22459
22459
  color: "primary",
22460
- onClick: o,
22460
+ onClick: s,
22461
22461
  children: /* @__PURE__ */ t(H, { name: "add", size: 24 })
22462
22462
  }
22463
22463
  ) }) : /* @__PURE__ */ t(
@@ -22465,8 +22465,8 @@ const Gf = ({
22465
22465
  {
22466
22466
  "aria-controls": "add_accounts",
22467
22467
  "aria-haspopup": !0,
22468
- "aria-label": a.add_accounts,
22469
- onClick: o,
22468
+ "aria-label": r.add_accounts,
22469
+ onClick: s,
22470
22470
  startIcon: /* @__PURE__ */ t(H, { name: "add", size: 24 }),
22471
22471
  sx: {
22472
22472
  p: 12,
@@ -22475,7 +22475,7 @@ const Gf = ({
22475
22475
  minWidth: "max-content"
22476
22476
  },
22477
22477
  variant: "text",
22478
- children: a.add_accounts
22478
+ children: r.add_accounts
22479
22479
  }
22480
22480
  ) }),
22481
22481
  e && /* @__PURE__ */ t(
@@ -22483,12 +22483,12 @@ const Gf = ({
22483
22483
  {
22484
22484
  onClose: () => n(!1),
22485
22485
  showConnectWidget: e,
22486
- title: r.mini_title
22486
+ title: o.mini_title
22487
22487
  }
22488
22488
  )
22489
22489
  ] });
22490
22490
  }, n0 = A(t0), i0 = () => {
22491
- const { visibleAccounts: e } = Re(), { selectedAccountGuids: n, setSelectedAccountGuids: i } = ce(), { common: a } = I(), { isMobile: r } = ve(), o = {
22491
+ const { visibleAccounts: e } = Re(), { selectedAccountGuids: n, setSelectedAccountGuids: i } = ce(), { common: a } = I(), { isMobile: r } = Se(), o = {
22492
22492
  accountFilterOptionsCopy: {
22493
22493
  accountTypeAccounts: a.account_filter.account_type_accounts,
22494
22494
  cancelButton: a.cancel_button,
@@ -22534,7 +22534,7 @@ const Gf = ({
22534
22534
  }, a0 = A(i0);
22535
22535
  var zi = /* @__PURE__ */ ((e) => (e[e.Main = 0] = "Main", e[e.RightSide = 1] = "RightSide", e[e.Disabled = 2] = "Disabled", e))(zi || {});
22536
22536
  const r0 = ({ widgets: e, isLoading: n }) => {
22537
- const { isDesktop: i, isMobile: a } = ve(), { copyStore: r } = Ta(), { setSelectedAccounts: o } = ce(), { visibleAccounts: s } = Re();
22537
+ const { isDesktop: i, isMobile: a } = Se(), { copyStore: r } = Ta(), { setSelectedAccounts: o } = ce(), { visibleAccounts: s } = Re();
22538
22538
  g.useEffect(() => {
22539
22539
  o(s);
22540
22540
  }, [s]);
@@ -22576,8 +22576,8 @@ const r0 = ({ widgets: e, isLoading: n }) => {
22576
22576
  value: B(e[d], "0,0"),
22577
22577
  formattedKey: Fp(d)
22578
22578
  })), [e]), c = [
22579
- { label: i.equities, value: Pn.Stocks },
22580
- { label: i.bonds, value: Pn.Bonds }
22579
+ { label: i.equities, value: Bn.Stocks },
22580
+ { label: i.bonds, value: Bn.Bonds }
22581
22581
  ];
22582
22582
  return /* @__PURE__ */ l(b, { sx: { gap: 12, width: "100%" }, children: [
22583
22583
  /* @__PURE__ */ t(
@@ -22647,7 +22647,7 @@ const r0 = ({ widgets: e, isLoading: n }) => {
22647
22647
  tooltip_info_body: n,
22648
22648
  tooltip_info_title: i
22649
22649
  }) => /* @__PURE__ */ t(
22650
- Wn,
22650
+ Fn,
22651
22651
  {
22652
22652
  enterTouchDelay: 500,
22653
22653
  placement: e,
@@ -22657,8 +22657,8 @@ const r0 = ({ widgets: e, isLoading: n }) => {
22657
22657
  ), d0 = () => {
22658
22658
  const {
22659
22659
  investments: { analysis: e }
22660
- } = I(), { analysisChartData: n, analysisDetails: i, analysisType: a, setAnalysisType: r } = ea(), o = Mn("(min-width:320px) and (max-width:375px)"), { isMobile: s } = ve(), d = tt().palette.mode === "dark", { cellDimension: _, columns: u, rows: h, textVariant: m } = g.useMemo(() => {
22661
- const C = a === Pn.Stocks, f = Object.values(C ? e.stock_column_labels : e.bond_column_labels), E = Object.values(C ? e.stock_row_labels : e.bond_row_labels);
22660
+ } = I(), { analysisChartData: n, analysisDetails: i, analysisType: a, setAnalysisType: r } = ea(), o = Vn("(min-width:320px) and (max-width:375px)"), { isMobile: s } = Se(), d = tt().palette.mode === "dark", { cellDimension: _, columns: u, rows: h, textVariant: m } = g.useMemo(() => {
22661
+ const C = a === Bn.Stocks, f = Object.values(C ? e.stock_column_labels : e.bond_column_labels), E = Object.values(C ? e.stock_row_labels : e.bond_row_labels);
22662
22662
  return { cellDimension: s ? 72 : 100, columns: f, rows: E, textVariant: s ? "XSmall" : "Body" };
22663
22663
  }, [e, s, a]);
22664
22664
  return /* @__PURE__ */ l(b, { sx: { flexDirection: { md: "row" }, gap: s ? 48 : 64, pt: 48, px: 16 }, children: [
@@ -22684,7 +22684,7 @@ const r0 = ({ widgets: e, isLoading: n }) => {
22684
22684
  writingMode: "vertical-rl"
22685
22685
  },
22686
22686
  children: [
22687
- /* @__PURE__ */ t(Oe, { bold: !0, color: "secondary.main", variant: m, children: a === Pn.Stocks ? e.market_capitalization : e.credit_quality }),
22687
+ /* @__PURE__ */ t(Oe, { bold: !0, color: "secondary.main", variant: m, children: a === Bn.Stocks ? e.market_capitalization : e.credit_quality }),
22688
22688
  /* @__PURE__ */ t(
22689
22689
  b,
22690
22690
  {
@@ -22774,7 +22774,7 @@ const r0 = ({ widgets: e, isLoading: n }) => {
22774
22774
  bold: !0,
22775
22775
  sx: { color: "secondary.main", pt: s ? 4 : 24, textAlign: "center" },
22776
22776
  variant: m,
22777
- children: a === Pn.Stocks ? e.valuation : e.duration
22777
+ children: a === Bn.Stocks ? e.valuation : e.duration
22778
22778
  }
22779
22779
  )
22780
22780
  ] })
@@ -23035,7 +23035,7 @@ const r0 = ({ widgets: e, isLoading: n }) => {
23035
23035
  }
23036
23036
  );
23037
23037
  }, h0 = () => {
23038
- const { isMobile: e } = ve(), { onEvent: n } = z(), [i, a] = Et({}), [r, o] = Et(!1), { holdings: s, updateHoldings: c, holdingsLoaded: d } = ea(), [_, u] = g.useState(!1), [h, m] = Et({
23038
+ const { isMobile: e } = Se(), { onEvent: n } = z(), [i, a] = Et({}), [r, o] = Et(!1), { holdings: s, updateHoldings: c, holdingsLoaded: d } = ea(), [_, u] = g.useState(!1), [h, m] = Et({
23039
23039
  accounts: [],
23040
23040
  holdings: [],
23041
23041
  members: []
@@ -23050,7 +23050,7 @@ const r0 = ({ widgets: e, isLoading: n }) => {
23050
23050
  /^\d*\.?\d*$/.test(ze) && he(ze);
23051
23051
  }, me = (ge, ze) => {
23052
23052
  if (ge.key === "Enter") {
23053
- const je = s.find(({ guid: Te }) => Te === ze);
23053
+ const je = s.find(({ guid: Ae }) => Ae === ze);
23054
23054
  c({ ...je, cost_basis: Number(j) }), P(null);
23055
23055
  } else ge.key === "Escape" && P(null);
23056
23056
  }, _e = (ge) => {
@@ -23131,19 +23131,19 @@ const r0 = ({ widgets: e, isLoading: n }) => {
23131
23131
  width: 196,
23132
23132
  renderHeader: Ui,
23133
23133
  renderCell: (ge) => {
23134
- const ze = ge.row.costBasis, je = ze ? ge.row.totalGainLoss / ze * 100 : 0, Te = ge.value <= 0 ? "text.secondary" : "#0AC295";
23134
+ const ze = ge.row.costBasis, je = ze ? ge.row.totalGainLoss / ze * 100 : 0, Ae = ge.value <= 0 ? "text.secondary" : "#0AC295";
23135
23135
  return /* @__PURE__ */ l(Ee, { sx: { alignItems: "center", flexDirection: "row", gap: 2 }, children: [
23136
23136
  ge.value !== 0 && /* @__PURE__ */ t(
23137
23137
  yt,
23138
23138
  {
23139
23139
  name: ge.value > 0 ? "trending_up" : "trending_down",
23140
23140
  size: 16,
23141
- sx: { color: Te, mr: 1, verticalAlign: "middle" }
23141
+ sx: { color: Ae, mr: 1, verticalAlign: "middle" }
23142
23142
  }
23143
23143
  ),
23144
- /* @__PURE__ */ t(p, { sx: { color: Te, fontWeight: 700 }, variant: "Small", children: ze ? `${je.toFixed(2)}%` : "0.00%" }),
23144
+ /* @__PURE__ */ t(p, { sx: { color: Ae, fontWeight: 700 }, variant: "Small", children: ze ? `${je.toFixed(2)}%` : "0.00%" }),
23145
23145
  /* @__PURE__ */ t(p, { sx: { color: "text.secondary" }, variant: "XSmall", children: "|" }),
23146
- /* @__PURE__ */ t(p, { sx: { color: Te, fontWeight: 700 }, variant: "Small", children: Math.abs(ge.value).toLocaleString("en-US", {
23146
+ /* @__PURE__ */ t(p, { sx: { color: Ae, fontWeight: 700 }, variant: "Small", children: Math.abs(ge.value).toLocaleString("en-US", {
23147
23147
  currency: "USD",
23148
23148
  maximumFractionDigits: 2,
23149
23149
  minimumFractionDigits: 2,
@@ -23576,7 +23576,7 @@ const r0 = ({ widgets: e, isLoading: n }) => {
23576
23576
  )
23577
23577
  ] });
23578
23578
  }, g0 = A(h0), Za = ({ title: e }) => /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e }), d4 = A(({ onBackClick: e, sx: n }) => {
23579
- const { onEvent: i } = z(), { isMobile: a } = ve(), { visibleInvestmentAccounts: r } = Re(), { investments: o } = I(), { isCopyLoaded: s, isInitialized: c } = ce(), [d, _] = g.useState(0), { loadHoldings: u } = ea();
23579
+ const { onEvent: i } = z(), { isMobile: a } = Se(), { visibleInvestmentAccounts: r } = Re(), { investments: o } = I(), { isCopyLoaded: s, isInitialized: c } = ce(), [d, _] = g.useState(0), { loadHoldings: u } = ea();
23580
23580
  g.useEffect(() => {
23581
23581
  c && u().finally();
23582
23582
  }, [c]);
@@ -23735,28 +23735,28 @@ const Wr = {
23735
23735
  MICRO_BEAT_DISPLAYED_FIRST_TIME: "Micro Beat Displayed For First Time",
23736
23736
  SWIPE_BACKWARD: "Swipe Backward",
23737
23737
  SWIPE_FORWARD: "Swipe Forward"
23738
- }, kn = {
23738
+ }, Mn = {
23739
23739
  MICRO_WIDGET_CAROUSEL: "Micro Widget Carousel",
23740
23740
  MICRO_WIDGET_CAROUSEL_ZERO_STATE: "Micro Widget Carousel Zero State",
23741
23741
  MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS: "Micro Widget Carousel No Relevant Insights"
23742
23742
  }, gs = {
23743
- [kn.MICRO_WIDGET_CAROUSEL]: {
23743
+ [Mn.MICRO_WIDGET_CAROUSEL]: {
23744
23744
  label: bn.MICRO_WIDGET,
23745
- name: kn.MICRO_WIDGET_CAROUSEL,
23745
+ name: Mn.MICRO_WIDGET_CAROUSEL,
23746
23746
  path: hs.INSIGHTS_MICRO_WIDGET,
23747
23747
  value: Vt
23748
23748
  },
23749
23749
  // zero state
23750
- [kn.MICRO_WIDGET_CAROUSEL_ZERO_STATE]: {
23750
+ [Mn.MICRO_WIDGET_CAROUSEL_ZERO_STATE]: {
23751
23751
  label: bn.MICRO_WIDGET,
23752
- name: kn.MICRO_WIDGET_CAROUSEL_ZERO_STATE,
23752
+ name: Mn.MICRO_WIDGET_CAROUSEL_ZERO_STATE,
23753
23753
  path: hs.INSIGHTS_MICRO_WIDGET,
23754
23754
  value: Vt
23755
23755
  },
23756
23756
  // no relevant cards
23757
- [kn.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS]: {
23757
+ [Mn.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS]: {
23758
23758
  label: bn.MICRO_WIDGET,
23759
- name: kn.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS,
23759
+ name: Mn.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS,
23760
23760
  path: "/micro-widget",
23761
23761
  value: Vt
23762
23762
  }
@@ -24839,7 +24839,7 @@ const Pi = g.createContext(null), E0 = ({
24839
24839
  }
24840
24840
  }
24841
24841
  );
24842
- }, Vn = () => {
24842
+ }, Un = () => {
24843
24843
  const e = g.useContext(Pi);
24844
24844
  if (!e)
24845
24845
  throw new Error("useCopyStore() must be used within the InsightsMicroWidgetDataProvider");
@@ -24883,7 +24883,7 @@ const Pi = g.createContext(null), E0 = ({
24883
24883
  }) => {
24884
24884
  const { ref: C, inView: f } = Bs({
24885
24885
  threshold: sl
24886
- }), { cardsCopy: E } = Vn(), { onEvent: y } = Hi(), { updateBeat: T, updateOffer: v } = D0();
24886
+ }), { cardsCopy: E } = Un(), { onEvent: y } = Hi(), { updateBeat: T, updateOffer: v } = D0();
24887
24887
  zn(() => {
24888
24888
  f && (i.has_been_displayed ? y(tl(i.template)) : (i.guid.startsWith("OFR") ? v({
24889
24889
  ...i,
@@ -24961,7 +24961,7 @@ const Pi = g.createContext(null), E0 = ({
24961
24961
  scrollRightBoundary: o,
24962
24962
  scrollX: s
24963
24963
  }) => {
24964
- const c = M0(), d = tt(), { carouselCopy: _ } = Vn(), u = Math.floor(s) > o || n === 0, h = s < 0 || i - 1 === n, m = d.palette.grey[500], C = e?.primary_300 ?? d.palette.primary.main;
24964
+ const c = M0(), d = tt(), { carouselCopy: _ } = Un(), u = Math.floor(s) > o || n === 0, h = s < 0 || i - 1 === n, m = d.palette.grey[500], C = e?.primary_300 ?? d.palette.primary.main;
24965
24965
  return /* @__PURE__ */ l(M, { className: c, children: [
24966
24966
  /* @__PURE__ */ t(
24967
24967
  $e,
@@ -25038,7 +25038,7 @@ const Pi = g.createContext(null), E0 = ({
25038
25038
  variant: _,
25039
25039
  widthOverrides: u
25040
25040
  }) => {
25041
- const h = B0(a, d, u), m = g.useRef(null), [C, f] = g.useState(0), [E, y] = g.useState(null), [T, v] = g.useState(null), { carouselCopy: w } = Vn(), { onEvent: x } = Hi(), R = () => {
25041
+ const h = B0(a, d, u), m = g.useRef(null), [C, f] = g.useState(0), [E, y] = g.useState(null), [T, v] = g.useState(null), { carouselCopy: w } = Un(), { onEvent: x } = Hi(), R = () => {
25042
25042
  x(Kt.ON_CAROUSEL_FORWARD_CLICK), m.current && m.current.scrollTo({
25043
25043
  left: (
25044
25044
  // Adds the flex gap to the carousel ref's width
@@ -25094,11 +25094,11 @@ const Pi = g.createContext(null), E0 = ({
25094
25094
  w.card_position_in_carousel_aria,
25095
25095
  me.toString(),
25096
25096
  _e.toString()
25097
- ), ge = V.micro_title && V.micro_title.length > 0, ze = V.micro_description && V.micro_description.length > 0, je = ge ? V.micro_title : V.title, Te = ze ? V.micro_description : V.description;
25097
+ ), ge = V.micro_title && V.micro_title.length > 0, ze = V.micro_description && V.micro_description.length > 0, je = ge ? V.micro_title : V.title, Ae = ze ? V.micro_description : V.description;
25098
25098
  return /* @__PURE__ */ t(
25099
25099
  O0,
25100
25100
  {
25101
- ariaLabel: `${Pe}: ${je}, ${Te}`,
25101
+ ariaLabel: `${Pe}: ${je}, ${Ae}`,
25102
25102
  beat: V,
25103
25103
  index: Ce,
25104
25104
  isActiveCard: Ce === j,
@@ -25165,7 +25165,7 @@ const Pi = g.createContext(null), E0 = ({
25165
25165
  posthog: i,
25166
25166
  widthOverrides: a
25167
25167
  }) => {
25168
- const { carouselCopy: r } = Vn(), { onEvent: o } = Hi(), s = () => {
25168
+ const { carouselCopy: r } = Un(), { onEvent: o } = Hi(), s = () => {
25169
25169
  o && (o(Kt.ON_VIEW_MORE_CLICKED), n(), i?.capture("clicked_view_more"));
25170
25170
  };
25171
25171
  return r ? /* @__PURE__ */ l(
@@ -25233,7 +25233,7 @@ const Pi = g.createContext(null), E0 = ({
25233
25233
  widthOverrides: n,
25234
25234
  children: i
25235
25235
  }) => {
25236
- const { carouselCopy: a } = Vn();
25236
+ const { carouselCopy: a } = Un();
25237
25237
  return /* @__PURE__ */ t(
25238
25238
  M,
25239
25239
  {
@@ -25261,9 +25261,9 @@ const Pi = g.createContext(null), E0 = ({
25261
25261
  variant: d,
25262
25262
  widthOverrides: _
25263
25263
  }) => {
25264
- const { cardsCopy: u } = Vn(), { onEvent: h } = Hi(), { onPageview: m } = rl();
25264
+ const { cardsCopy: u } = Un(), { onEvent: h } = Hi(), { onPageview: m } = rl();
25265
25265
  g.useEffect(() => {
25266
- m(kn.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS);
25266
+ m(Mn.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS);
25267
25267
  }, []);
25268
25268
  const C = () => {
25269
25269
  r && r(), h(Kt.ON_NO_RELEVANT_INSIGHTS_CLICKED), o?.capture("clicked_insight", {
@@ -25314,9 +25314,9 @@ const Pi = g.createContext(null), E0 = ({
25314
25314
  variant: c,
25315
25315
  widthOverrides: d
25316
25316
  }) => {
25317
- const { onPageview: _ } = rl(), { zeroStateCopy: u } = Vn();
25317
+ const { onPageview: _ } = rl(), { zeroStateCopy: u } = Un();
25318
25318
  return g.useEffect(() => {
25319
- _(kn.MICRO_WIDGET_CAROUSEL_ZERO_STATE);
25319
+ _(Mn.MICRO_WIDGET_CAROUSEL_ZERO_STATE);
25320
25320
  }, []), /* @__PURE__ */ t(
25321
25321
  La,
25322
25322
  {
@@ -25451,7 +25451,7 @@ const Pi = g.createContext(null), E0 = ({
25451
25451
  }) => {
25452
25452
  const _ = pe(), { ref: u, inView: h } = Bs({
25453
25453
  threshold: sl
25454
- }), { cardsCopy: m } = Vn(), { onEvent: C } = Hi();
25454
+ }), { cardsCopy: m } = Un(), { onEvent: C } = Hi();
25455
25455
  zn(() => {
25456
25456
  h && (C(il.ON_VIEW_MORE_VIEWED), o?.capture("viewed_insight", {
25457
25457
  template: "view_more_card"
@@ -25505,7 +25505,7 @@ const Pi = g.createContext(null), E0 = ({
25505
25505
  }, u = c.find((h) => h.id === e.recurrence_type);
25506
25506
  return /* @__PURE__ */ l(Z, { children: [
25507
25507
  /* @__PURE__ */ t(
25508
- $n,
25508
+ Hn,
25509
25509
  {
25510
25510
  iconName: "sync",
25511
25511
  label: n.activity_schedule,
@@ -25552,7 +25552,7 @@ const Pi = g.createContext(null), E0 = ({
25552
25552
  };
25553
25553
  return /* @__PURE__ */ l(Z, { children: [
25554
25554
  /* @__PURE__ */ t(
25555
- $n,
25555
+ Hn,
25556
25556
  {
25557
25557
  iconName: "calendar_month",
25558
25558
  label: n.activity_payment_date,
@@ -25581,7 +25581,7 @@ const Pi = g.createContext(null), E0 = ({
25581
25581
  ] });
25582
25582
  }), dl = A(
25583
25583
  ({ onDeleted: e, recurringTransaction: n }) => {
25584
- const { recurring: i } = I(), { selectedAccountGuids: a } = ce(), { onEvent: r } = z(), { deleteRepeatingTransaction: o } = Pt(), { setFilter: s } = Se(), { amount: c, description: d, merchant_guid: _ } = n, [u, h] = g.useState(!1), [m, C] = g.useState("");
25584
+ const { recurring: i } = I(), { selectedAccountGuids: a } = ce(), { onEvent: r } = z(), { deleteRepeatingTransaction: o } = Pt(), { setFilter: s } = Te(), { amount: c, description: d, merchant_guid: _ } = n, [u, h] = g.useState(!1), [m, C] = g.useState("");
25585
25585
  g.useEffect(() => {
25586
25586
  s({
25587
25587
  accounts: a,
@@ -25621,7 +25621,7 @@ const Pi = g.createContext(null), E0 = ({
25621
25621
  /* @__PURE__ */ l(ie, { sx: { bgcolor: "background.paper" }, children: [
25622
25622
  n.account && /* @__PURE__ */ l(Z, { children: [
25623
25623
  /* @__PURE__ */ t(
25624
- $n,
25624
+ Hn,
25625
25625
  {
25626
25626
  iconName: "checkbook",
25627
25627
  label: i.account,
@@ -25632,7 +25632,7 @@ const Pi = g.createContext(null), E0 = ({
25632
25632
  ] }),
25633
25633
  f?.category && /* @__PURE__ */ l(Z, { children: [
25634
25634
  /* @__PURE__ */ t(
25635
- $n,
25635
+ Hn,
25636
25636
  {
25637
25637
  iconName: "monetization_on",
25638
25638
  label: i.category,
@@ -25893,7 +25893,7 @@ const Pi = g.createContext(null), E0 = ({
25893
25893
  label: n,
25894
25894
  onAddRecurringTransaction: i = () => null
25895
25895
  }) => {
25896
- const { recurring: a } = I(), { filter: r, setFilter: o, transactions: s } = Se(), { addRepeatingTransaction: c } = Pt(), [d, _] = g.useState(!1), [u, h] = g.useState(""), [m, C] = g.useState(Ne.EveryMonth), [f, E] = g.useState(null), y = g.useMemo(
25896
+ const { recurring: a } = I(), { filter: r, setFilter: o, transactions: s } = Te(), { addRepeatingTransaction: c } = Pt(), [d, _] = g.useState(!1), [u, h] = g.useState(""), [m, C] = g.useState(Ne.EveryMonth), [f, E] = g.useState(null), y = g.useMemo(
25897
25897
  () => s.find((x) => x.guid === u),
25898
25898
  [u]
25899
25899
  ), T = () => {
@@ -26382,7 +26382,7 @@ const Pi = g.createContext(null), E0 = ({
26382
26382
  ] });
26383
26383
  }
26384
26384
  ), nb = A(() => {
26385
- const { recurring: e } = I(), { isMobile: n, isSmallTablet: i } = ve(), { onEvent: a } = z(), {
26385
+ const { recurring: e } = I(), { isMobile: n, isSmallTablet: i } = Se(), { onEvent: a } = z(), {
26386
26386
  expenses: r,
26387
26387
  expenseTotal: o,
26388
26388
  income: s,
@@ -26481,7 +26481,7 @@ const Pi = g.createContext(null), E0 = ({
26481
26481
  ] }) })
26482
26482
  ] });
26483
26483
  }), g4 = A(({ onBackClick: e, sx: n = {} }) => {
26484
- const { accounts: i } = Re(), { recurring: a } = I(), { isCopyLoaded: r, isInitialized: o, selectedAccountGuids: s, setSelectedAccounts: c } = ce(), { isDataLoaded: d, loadRepeatingTransactions: _ } = Pt(), { setFilter: u } = Se(), { onEvent: h } = z(), [m, C] = g.useState(!1);
26484
+ const { accounts: i } = Re(), { recurring: a } = I(), { isCopyLoaded: r, isInitialized: o, selectedAccountGuids: s, setSelectedAccounts: c } = ce(), { isDataLoaded: d, loadRepeatingTransactions: _ } = Pt(), { setFilter: u } = Te(), { onEvent: h } = z(), [m, C] = g.useState(!1);
26485
26485
  return g.useEffect(() => {
26486
26486
  c(i);
26487
26487
  }, [i]), g.useEffect(() => {
@@ -26527,7 +26527,7 @@ const Pi = g.createContext(null), E0 = ({
26527
26527
  }
26528
26528
  ) : /* @__PURE__ */ t(ue, {});
26529
26529
  }), ib = A(() => {
26530
- const { recurring: e } = I(), { availableWidth: n } = Un(), { selectedDay: i, selectedDayRecurrences: a, setSelectedDay: r, upcomingRecurrences: o } = Pt(), s = n < 750;
26530
+ const { recurring: e } = I(), { availableWidth: n } = Wn(), { selectedDay: i, selectedDayRecurrences: a, setSelectedDay: r, upcomingRecurrences: o } = Pt(), s = n < 750;
26531
26531
  return /* @__PURE__ */ l(b, { flexDirection: s ? "column" : "row", width: "100%", children: [
26532
26532
  /* @__PURE__ */ t(hl, {}),
26533
26533
  !s && /* @__PURE__ */ t(G, { flexItem: !0, orientation: "vertical", sx: { my: 16, ml: 16 } }),
@@ -26547,7 +26547,7 @@ const Pi = g.createContext(null), E0 = ({
26547
26547
  ] });
26548
26548
  }), m4 = A(
26549
26549
  ({ onPrimaryCtaClick: e, sx: n }) => {
26550
- const { accounts: i } = Re(), { recurring: a } = I(), { setFilter: r } = Se(), { isDataLoaded: o, loadRepeatingTransactions: s } = Pt(), { isCopyLoaded: c, isInitialized: d, setSelectedAccounts: _, selectedAccountGuids: u } = ce();
26550
+ const { accounts: i } = Re(), { recurring: a } = I(), { setFilter: r } = Te(), { isDataLoaded: o, loadRepeatingTransactions: s } = Pt(), { isCopyLoaded: c, isInitialized: d, setSelectedAccounts: _, selectedAccountGuids: u } = ce();
26551
26551
  return g.useEffect(() => {
26552
26552
  d && _(i);
26553
26553
  }, [d]), g.useEffect(() => {
@@ -26577,13 +26577,13 @@ const Pi = g.createContext(null), E0 = ({
26577
26577
  const c = {
26578
26578
  guid: r.guid,
26579
26579
  name: r.guid === o ? `General ${r.name}` : r.name,
26580
- color: Gn[s.guid],
26580
+ color: kn[s.guid],
26581
26581
  amount: a.total
26582
26582
  }, d = i.find((_) => _.guid === o);
26583
26583
  d ? (d.amount += a.total, d.categoryTotals?.push(c)) : i.push({
26584
26584
  guid: o,
26585
26585
  name: s.name,
26586
- color: Gn[s.guid],
26586
+ color: kn[s.guid],
26587
26587
  categoryTotals: [c],
26588
26588
  amount: a.total
26589
26589
  });
@@ -26662,7 +26662,7 @@ const Pi = g.createContext(null), E0 = ({
26662
26662
  totalLabel: s,
26663
26663
  variant: c = "mini"
26664
26664
  }) => {
26665
- const { spending: d } = I(), _ = vn(), { isTablet: u } = ve(), h = g.useMemo(
26665
+ const { spending: d } = I(), _ = vn(), { isTablet: u } = Se(), h = g.useMemo(
26666
26666
  () => r ? e.categoryData.find((E) => E.guid === r) : void 0,
26667
26667
  [r]
26668
26668
  ), m = g.useMemo(() => e.donutData.length > 0 ? e.donutData : [{ id: "0", color: _.palette.border.light, value: 100 }], [e, _]), C = () => {
@@ -26918,7 +26918,7 @@ const Pi = g.createContext(null), E0 = ({
26918
26918
  selectedId: a,
26919
26919
  title: r
26920
26920
  }) => {
26921
- const { isDesktop: o, isMobile: s } = ve(), { isLoadingCategoryTotals: c } = Ke(), { spending: d } = I();
26921
+ const { isDesktop: o, isMobile: s } = Se(), { isLoadingCategoryTotals: c } = Ke(), { spending: d } = I();
26922
26922
  return /* @__PURE__ */ l(
26923
26923
  b,
26924
26924
  {
@@ -26969,7 +26969,7 @@ const Pi = g.createContext(null), E0 = ({
26969
26969
  e.palette.chartMono.chartMono1,
26970
26970
  e.palette.chartMono.chartMono6
26971
26971
  ], hb = () => {
26972
- const e = vn(), { categories: n, dateRangeCategoryTotals: i, loadDateRangeCategoryTotals: a } = Ke(), { spending: r } = I(), { displayedDateRange: o, selectedAccounts: s, selectedAccountGuids: c } = ce(), { setFilter: d, sortedTransactions: _ } = Se(), [u, h] = g.useState(""), [m, C] = g.useState(0), [f, E] = g.useState(""), [y, T] = g.useState(!1);
26972
+ const e = vn(), { categories: n, dateRangeCategoryTotals: i, loadDateRangeCategoryTotals: a } = Ke(), { spending: r } = I(), { displayedDateRange: o, selectedAccounts: s, selectedAccountGuids: c } = ce(), { setFilter: d, sortedTransactions: _ } = Te(), [u, h] = g.useState(""), [m, C] = g.useState(0), [f, E] = g.useState(""), [y, T] = g.useState(!1);
26973
26973
  g.useEffect(() => {
26974
26974
  a(
26975
26975
  s,
@@ -27106,7 +27106,7 @@ const Pi = g.createContext(null), E0 = ({
27106
27106
  children: /* @__PURE__ */ t(M, { height: "calc(100dvh - 150px)", overflow: "scroll", width: "100%", children: /* @__PURE__ */ t(gb, {}) })
27107
27107
  }
27108
27108
  );
27109
- }, C4 = A(mb), pb = (e) => Gn[e] ?? Gn.default, Cb = (e) => fa[e];
27109
+ }, C4 = A(mb), pb = (e) => kn[e] ?? kn.default, Cb = (e) => fa[e];
27110
27110
  function fb(e, n) {
27111
27111
  const i = [], a = new Date(e);
27112
27112
  for (; a <= n; ) {
@@ -27252,7 +27252,7 @@ const bb = (e) => e.reduce((i, a) => {
27252
27252
  isOpen: i,
27253
27253
  onClose: a
27254
27254
  }) => {
27255
- const { onEvent: r } = z(), { selectedAccountGuids: o } = ce(), { common: s } = I(), { setFilter: c, sortedTransactions: d } = Se(), [_, u] = g.useState(""), h = g.useMemo(() => d.find((C) => C.guid === _), [_]);
27255
+ const { onEvent: r } = z(), { selectedAccountGuids: o } = ce(), { common: s } = I(), { setFilter: c, sortedTransactions: d } = Te(), [_, u] = g.useState(""), h = g.useMemo(() => d.find((C) => C.guid === _), [_]);
27256
27256
  g.useEffect(() => {
27257
27257
  c({
27258
27258
  accounts: o,
@@ -27279,7 +27279,7 @@ const bb = (e) => e.reduce((i, a) => {
27279
27279
  }, Nb = A(wb), Db = {
27280
27280
  view_transactions: "View Transactions"
27281
27281
  }, Rb = ({ onBackClick: e, sx: n }) => {
27282
- const i = tt(), { onEvent: a } = z(), { isDesktop: r, isTablet: o, isMobile: s } = ve(), { visibleAccounts: c } = Re(), { loadMonthlyCategoryTotals: d, monthlyCategoryTotals: _, getCategoryName: u } = Ke(), { sortedTransactions: h } = Se(), { isCopyLoaded: m, isInitialized: C, selectedAccounts: f, setSelectedAccounts: E } = ce(), { trends: y } = I(), T = i.palette.mode === "dark", [v, w] = g.useState(!1), [x, R] = g.useState(!1), [D, $] = g.useState("Chart"), [O, L] = g.useState(""), [U, P] = g.useState({
27282
+ const i = tt(), { onEvent: a } = z(), { isDesktop: r, isTablet: o, isMobile: s } = Se(), { visibleAccounts: c } = Re(), { loadMonthlyCategoryTotals: d, monthlyCategoryTotals: _, getCategoryName: u } = Ke(), { sortedTransactions: h } = Te(), { isCopyLoaded: m, isInitialized: C, selectedAccounts: f, setSelectedAccounts: E } = ce(), { trends: y } = I(), T = i.palette.mode === "dark", [v, w] = g.useState(!1), [x, R] = g.useState(!1), [D, $] = g.useState("Chart"), [O, L] = g.useState(""), [U, P] = g.useState({
27283
27283
  start: oo(Xe(jt(/* @__PURE__ */ new Date(), 6)), 1),
27284
27284
  end: Xe(/* @__PURE__ */ new Date())
27285
27285
  });
@@ -27296,45 +27296,45 @@ const bb = (e) => e.reduce((i, a) => {
27296
27296
  }, [C, f, U]);
27297
27297
  const j = g.useMemo(() => {
27298
27298
  if (!v) return { stackedDatasets: [], unstackedDatasets: [] };
27299
- const Te = yb(
27299
+ const Ae = yb(
27300
27300
  _,
27301
27301
  U.start,
27302
27302
  U.end
27303
- ), _t = O.length ? Te.filter(
27303
+ ), _t = O.length ? Ae.filter(
27304
27304
  (un) => un.top_level_category_guid === O || un.category_guid === O
27305
- ) : fm(Te);
27305
+ ) : fm(Ae);
27306
27306
  return {
27307
27307
  stackedDatasets: _t.filter(pm),
27308
27308
  unstackedDatasets: _t.filter(Da)
27309
27309
  };
27310
27310
  }, [_, O, U]), he = g.useMemo(() => {
27311
- const Te = ae(
27311
+ const Ae = ae(
27312
27312
  U.start,
27313
27313
  s ? te.MONTH_SHORT_YEAR : te.MONTH_YEAR
27314
27314
  ), _t = ae(
27315
27315
  U.end,
27316
27316
  s ? te.MONTH_SHORT_YEAR : te.MONTH_YEAR
27317
27317
  );
27318
- return `${Te} - ${_t}`;
27319
- }, [U, s]), V = (Te, _t) => {
27318
+ return `${Ae} - ${_t}`;
27319
+ }, [U, s]), V = (Ae, _t) => {
27320
27320
  $(_t ?? D), a(W.TRENDS_CLICK_TOGGLE);
27321
- }, Ce = (Te) => {
27322
- const _t = oo(Te?.[0], 1), un = Te?.[1], se = eu(un, _t);
27321
+ }, Ce = (Ae) => {
27322
+ const _t = oo(Ae?.[0], 1), un = Ae?.[1], se = eu(un, _t);
27323
27323
  P({ start: _t, end: un }), a(W.TRENDS_CLICK_DATE, {
27324
27324
  time_period: se + "M"
27325
27325
  });
27326
27326
  }, me = () => {
27327
27327
  a(W.TRENDS_CLICK_FILTER);
27328
- }, _e = (Te) => {
27329
- L(Te);
27330
- }, Pe = (Te) => {
27331
- L(Te), a(W.TRENDS_CLICK_LEGEND, { category: u(Te) });
27332
- }, ge = (Te) => {
27333
- a(W.TRENDS_HOVER_LEGEND, { category: u(Te) });
27334
- }, ze = (Te) => {
27335
- a(W.TRENDS_HOVER_AREA, { category: Te });
27336
- }, je = (Te) => {
27337
- a(W.TRENDS_HOVER_POINT, { category: Te });
27328
+ }, _e = (Ae) => {
27329
+ L(Ae);
27330
+ }, Pe = (Ae) => {
27331
+ L(Ae), a(W.TRENDS_CLICK_LEGEND, { category: u(Ae) });
27332
+ }, ge = (Ae) => {
27333
+ a(W.TRENDS_HOVER_LEGEND, { category: u(Ae) });
27334
+ }, ze = (Ae) => {
27335
+ a(W.TRENDS_HOVER_AREA, { category: Ae });
27336
+ }, je = (Ae) => {
27337
+ a(W.TRENDS_HOVER_POINT, { category: Ae });
27338
27338
  };
27339
27339
  return !m || !C || !v ? /* @__PURE__ */ t(ue, {}) : /* @__PURE__ */ l(
27340
27340
  Ot,
@@ -27387,7 +27387,7 @@ const bb = (e) => e.reduce((i, a) => {
27387
27387
  onChange: V,
27388
27388
  orientation: "horizontal",
27389
27389
  value: D,
27390
- children: ["Chart", "Table"].map((Te) => /* @__PURE__ */ t(
27390
+ children: ["Chart", "Table"].map((Ae) => /* @__PURE__ */ t(
27391
27391
  Ni,
27392
27392
  {
27393
27393
  sx: {
@@ -27412,10 +27412,10 @@ const bb = (e) => e.reduce((i, a) => {
27412
27412
  color: i.palette.grey[500]
27413
27413
  }
27414
27414
  },
27415
- value: Te,
27416
- children: Te === "Chart" ? /* @__PURE__ */ t(H, { name: "table_chart_view" }) : /* @__PURE__ */ t(H, { name: "format_list_bulleted" })
27415
+ value: Ae,
27416
+ children: Ae === "Chart" ? /* @__PURE__ */ t(H, { name: "table_chart_view" }) : /* @__PURE__ */ t(H, { name: "format_list_bulleted" })
27417
27417
  },
27418
- Te
27418
+ Ae
27419
27419
  ))
27420
27420
  }
27421
27421
  )
@@ -27535,7 +27535,7 @@ export {
27535
27535
  dm as CashflowStore,
27536
27536
  Y2 as CashflowWidget,
27537
27537
  _o as CategoryApi,
27538
- Gn as CategoryColors,
27538
+ kn as CategoryColors,
27539
27539
  fa as CategoryGuidToName,
27540
27540
  N as CategoryGuids,
27541
27541
  ou as CategoryIcon,
@@ -27557,7 +27557,7 @@ export {
27557
27557
  Vs as DEFAULT_STROKE_WIDTH,
27558
27558
  l4 as Dashboard,
27559
27559
  zi as DashboardLocation,
27560
- $n as DataRow,
27560
+ Hn as DataRow,
27561
27561
  bo as DateRangeSelector,
27562
27562
  Lc as DebtsChart,
27563
27563
  up as DebtsStore,
@@ -27599,7 +27599,7 @@ export {
27599
27599
  ue as Loader,
27600
27600
  M2 as LocalizedCopyApi,
27601
27601
  Lr as ManageIncome,
27602
- Bn as MemberConnectionStatus,
27602
+ Gn as MemberConnectionStatus,
27603
27603
  Z2 as MerchantLookup,
27604
27604
  Yp as MerchantStore,
27605
27605
  vt as MetaType,
@@ -27706,7 +27706,7 @@ export {
27706
27706
  hu as getCurrencyCodes,
27707
27707
  du as getDetailedCategory,
27708
27708
  uu as getDetailedSubCategory,
27709
- Hn as getLocale,
27709
+ Pn as getLocale,
27710
27710
  J2 as getNotificationDetailRoute,
27711
27711
  R2 as isIncome,
27712
27712
  ir as isValidNumber,
@@ -27735,11 +27735,11 @@ export {
27735
27735
  k2 as usePrevious,
27736
27736
  nt as useRecurringActivityStore,
27737
27737
  Pt as useRecurringTransactionsStore,
27738
- ve as useScreenSize,
27738
+ Se as useScreenSize,
27739
27739
  Ht as useSettingsStore,
27740
- Se as useTransactionStore,
27740
+ Te as useTransactionStore,
27741
27741
  It as useTransactionsUiStore,
27742
27742
  dn as useUserStore,
27743
- Un as useWidgetContainerProvider
27743
+ Wn as useWidgetContainerProvider
27744
27744
  };
27745
27745
  //# sourceMappingURL=index.es.js.map