@mx-cartographer/experiences 6.3.11-alpha.sms3 → 6.3.11-alpha.sms4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { jsx as t, jsxs as l, Fragment as X } from "react/jsx-runtime";
2
- import g, { useMemo as Sl, useRef as Is, useEffect as Yn, useState as Tt } from "react";
2
+ import g, { useMemo as Sl, useRef as xs, useEffect as Yn, useState as Tt } from "react";
3
3
  import { observer as A } from "mobx-react-lite";
4
4
  import L from "@mui/material/Box";
5
5
  import k from "@mui/material/Divider";
6
6
  import ie from "@mui/material/List";
7
7
  import Lt from "@mui/material/ListSubheader";
8
8
  import Se from "@mui/system/Stack";
9
- import { AccountsIcon as Tl, P as Oe, Icon as P, useTokens as Et, Text as p, H2 as Wn, CategoryIcon as Bt, DialogHeader as Al, DialogFooter as Il, Drawer as xl, Footer as vl, DateRangePicker as er, H3 as ft, H1 as en, TextField as xn, IconWeight as St, MerchantLogo as _n, CategoryIconVariants as xs, InstitutionLogo as bt, ChevronRightIcon as wl, THEMES as tr } from "@mxenabled/mxui";
9
+ import { AccountsIcon as Tl, P as Oe, Icon as P, useTokens as Et, Text as p, H2 as Wn, CategoryIcon as Bt, DialogHeader as Al, DialogFooter as Il, Drawer as xl, Footer as vl, DateRangePicker as tr, H3 as ft, H1 as en, TextField as xn, IconWeight as St, MerchantLogo as _n, CategoryIconVariants as vs, InstitutionLogo as bt, ChevronRightIcon as wl, THEMES as nr } from "@mxenabled/mxui";
10
10
  import Nl from "bowser";
11
11
  import { getUnixTime as Me } from "date-fns/getUnixTime";
12
12
  import { intlFormat as Dl } from "date-fns/intlFormat";
@@ -29,10 +29,10 @@ import io from "@mui/material/FormControlLabel";
29
29
  import Y from "@mui/material/ListItem";
30
30
  import he from "@mui/material/ListItemButton";
31
31
  import se from "@mui/material/ListItemText";
32
- import vs from "@mui/material/Popover";
32
+ import ws from "@mui/material/Popover";
33
33
  import y from "@mui/material/Stack";
34
34
  import aa from "@mui/material/Checkbox";
35
- import { alpha as Rl, lighten as nr, darken as ir, Stack as be, Box as kn, useTheme as wn, Card as pa, CardContent as Ol, Button as Ll } from "@mui/material";
35
+ import { alpha as Rl, lighten as ir, darken as ar, Stack as be, Box as kn, useTheme as wn, Card as pa, CardContent as Ol, Button as Ll } from "@mui/material";
36
36
  import me from "@mui/material/styles/useTheme";
37
37
  import yn from "@mui/material/useMediaQuery";
38
38
  import { css as tn, keyframes as Ml } from "@mxenabled/cssinjs";
@@ -52,14 +52,14 @@ import { isWithinInterval as ri } from "date-fns/isWithinInterval";
52
52
  import * as Ot from "d3";
53
53
  import { selectAll as $l, interpolateString as Fl, arc as Wl } from "d3";
54
54
  import { useTheme as it, alpha as In, keyframes as Ul, ThemeProvider as Vl } from "@mui/material/styles";
55
- import { ResponsiveChartContainer as Kl, AreaPlot as zl, LinePlot as Yl, MarkPlot as jl, BarPlot as Xl, ChartsXAxis as ql, ChartsYAxis as Zl, ChartsReferenceLine as Ql, ChartsLegend as Jl, LineChart as ws } from "@mui/x-charts";
55
+ import { ResponsiveChartContainer as Kl, AreaPlot as zl, LinePlot as Yl, MarkPlot as jl, BarPlot as Xl, ChartsXAxis as ql, ChartsYAxis as Zl, ChartsReferenceLine as Ql, ChartsLegend as Jl, LineChart as Ns } from "@mui/x-charts";
56
56
  import Pt from "@mui/material/Card";
57
57
  import Ht from "@mui/material/CardContent";
58
58
  import tt from "@mui/material/Grid";
59
59
  import { differenceInCalendarDays as ed } from "date-fns/differenceInCalendarDays";
60
60
  import { endOfToday as gn } from "date-fns/endOfToday";
61
- import { endOfYear as ar } from "date-fns/endOfYear";
62
- import { startOfYear as or } from "date-fns/startOfYear";
61
+ import { endOfYear as or } from "date-fns/endOfYear";
62
+ import { startOfYear as rr } from "date-fns/startOfYear";
63
63
  import { subDays as _t } from "date-fns/subDays";
64
64
  import { subYears as ao } from "date-fns/subYears";
65
65
  import td from "@mui/material/ButtonGroup";
@@ -68,10 +68,10 @@ import kt from "@mui/material/Tabs";
68
68
  import di from "@mui/material/ToggleButton";
69
69
  import ki from "@mui/material/ToggleButtonGroup";
70
70
  import nd from "@mui/material/Dialog";
71
- import Ns from "@mui/material/DialogContent";
71
+ import Ds from "@mui/material/DialogContent";
72
72
  import id from "@mui/icons-material/ArrowBackOutlined";
73
73
  import Nn from "@mui/material/CardHeader";
74
- import { Icon as pt, AccountBalance as ad, ChevronRight as xt, Payments as od, NoteStack as rd, Person as sd, CheckCircle as Ca, ExpandLess as cd, ExpandMore as ld, AddBox as Ds, Star as dd, Settings as ud, Delete as _d, Schedule as hd, MonetizationOn as gd, Cancel as Rs, Add as md } from "@mxenabled/mx-icons";
74
+ import { Icon as pt, AccountBalance as ad, ChevronRight as xt, Payments as od, NoteStack as rd, Person as sd, CheckCircle as Ca, ExpandLess as cd, ExpandMore as ld, AddBox as Rs, Star as dd, Settings as ud, Delete as _d, Schedule as hd, MonetizationOn as gd, Cancel as Os, Add as md } from "@mxenabled/mx-icons";
75
75
  import { ConnectWidget as pd, ConnectionsWidget as Cd } from "@mxenabled/web-widget-sdk";
76
76
  import Co from "@mui/material/CircularProgress";
77
77
  import { v4 as fd } from "uuid";
@@ -82,29 +82,29 @@ import He from "@mui/material/ListItemAvatar";
82
82
  import yt from "@mui/material/ListItemIcon";
83
83
  import fa from "@mui/material/Switch";
84
84
  import { makeAutoObservable as $e, runInAction as z, reaction as yd, observable as Ed } from "mobx";
85
- import Sd, { SurveyQuestionType as rr } from "posthog-js";
85
+ import Sd, { SurveyQuestionType as sr } from "posthog-js";
86
86
  import { differenceInDays as Td } from "date-fns/differenceInDays";
87
87
  import ba from "@mui/icons-material/ChevronRight";
88
88
  import ya from "@mui/icons-material/ExpandMore";
89
89
  import { DataGridPro as Xn } from "@mui/x-data-grid-pro";
90
- import { intervalToDuration as Ad, formatDuration as Id, getDate as sr, fromUnixTime as Ni, startOfMonth as cr, format as Ln, differenceInMonths as xd, isSameDay as vd, subDays as wd, startOfToday as Nd, endOfToday as Dd } from "date-fns";
90
+ import { intervalToDuration as Ad, formatDuration as Id, getDate as cr, fromUnixTime as Ni, startOfMonth as lr, format as Ln, differenceInMonths as xd, isSameDay as vd, subDays as wd, startOfToday as Nd, endOfToday as Dd } from "date-fns";
91
91
  import vn from "@mui/material/Alert";
92
92
  import Gi from "@mui/material/Snackbar";
93
- import { useVirtualizer as Os } from "@tanstack/react-virtual";
93
+ import { useVirtualizer as Ls } from "@tanstack/react-virtual";
94
94
  import { parseISO as Bi } from "date-fns/parseISO";
95
95
  import Vt from "@mui/material/Skeleton";
96
96
  import { isAfter as Jt } from "date-fns/isAfter";
97
- import { subWeeks as lr } from "date-fns/subWeeks";
97
+ import { subWeeks as dr } from "date-fns/subWeeks";
98
98
  import { formatISO as ui } from "date-fns/formatISO";
99
99
  import { AdapterDateFns as mn } from "@mui/x-date-pickers/AdapterDateFnsV3";
100
100
  import { DatePicker as Ea } from "@mui/x-date-pickers";
101
101
  import { LocalizationProvider as Dn } from "@mui/x-date-pickers/LocalizationProvider";
102
102
  import rt from "@mui/material/TextField";
103
103
  import { isValid as fo } from "date-fns/isValid";
104
- import { subQuarters as Ls } from "date-fns/subQuarters";
104
+ import { subQuarters as Ms } from "date-fns/subQuarters";
105
105
  import { getMonth as ti } from "date-fns/getMonth";
106
106
  import { DateCalendar as _i } from "@mui/x-date-pickers/DateCalendar";
107
- import { formatDistanceToNow as Ms } from "date-fns/formatDistanceToNow";
107
+ import { formatDistanceToNow as ks } from "date-fns/formatDistanceToNow";
108
108
  import Pi from "@mui/material/Accordion";
109
109
  import Hi from "@mui/material/AccordionDetails";
110
110
  import $i from "@mui/material/AccordionSummary";
@@ -121,14 +121,14 @@ import Bd from "@mui/icons-material/FlagOutlined";
121
121
  import Pd from "@mui/icons-material/ReceiptOutlined";
122
122
  import { getWeeksInMonth as sa } from "date-fns/getWeeksInMonth";
123
123
  import bo from "@mui/material/Badge";
124
- import { PickersDay as ks } from "@mui/x-date-pickers/PickersDay";
124
+ import { PickersDay as Gs } from "@mui/x-date-pickers/PickersDay";
125
125
  import Hd from "@mui/icons-material/AccessTimeFilled";
126
126
  import $d from "@mui/icons-material/MonetizationOn";
127
127
  import Ta from "@mui/icons-material/CheckCircle";
128
128
  import { getDate as ni } from "date-fns/getDate";
129
129
  import jt from "@mui/material/Unstable_Grid2";
130
130
  import Fi from "@mui/material/Collapse";
131
- import Gs from "@mui/material/CardActionArea";
131
+ import Bs from "@mui/material/CardActionArea";
132
132
  import Fd from "@mui/icons-material/DragHandle";
133
133
  import oo from "@mui/material/AlertTitle";
134
134
  import Aa from "@mui/icons-material/Error";
@@ -142,14 +142,14 @@ import Yd from "@mui/material/FormControl";
142
142
  import jd from "@mui/material/InputLabel";
143
143
  import { LocalizationProvider as Xd } from "@mui/x-date-pickers-pro";
144
144
  import qd from "@mui/material/Select";
145
- import Bs from "@mui/material/Link";
145
+ import Ps from "@mui/material/Link";
146
146
  import Zd from "@mui/material/ListItemSecondaryAction";
147
- import { useInView as Ps } from "react-intersection-observer";
147
+ import { useInView as Hs } from "react-intersection-observer";
148
148
  import Qd from "@mui/material/CardActions";
149
149
  import Jd from "@mui/icons-material/ChevronLeft";
150
- import dr from "@mui/material/Typography";
150
+ import ur from "@mui/material/Typography";
151
151
  import eu from "@mui/material/CssBaseline";
152
- import { addSeconds as ur } from "date-fns/addSeconds";
152
+ import { addSeconds as _r } from "date-fns/addSeconds";
153
153
  import { differenceInCalendarMonths as tu } from "date-fns/differenceInCalendarMonths";
154
154
  const nu = async (e, n, i = "1.0.0", a = "Experiences") => {
155
155
  const o = new Cu(e, n), { analytics_session: r } = await o.initializeAnalyticsSession(
@@ -376,17 +376,17 @@ const nu = async (e, n, i = "1.0.0", a = "Experiences") => {
376
376
  year: "numeric"
377
377
  }
378
378
  }, re = (e, n) => Dl(new Date(e), Object.assign(n), { locale: $n() });
379
- var de = /* @__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))(de || {}), iu = /* @__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))(iu || {}), Hs = /* @__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))(Hs || {}), mt = /* @__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))(mt || {});
379
+ var de = /* @__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))(de || {}), iu = /* @__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))(iu || {}), $s = /* @__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))($s || {}), mt = /* @__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))(mt || {});
380
380
  const au = [
381
381
  0,
382
382
  15,
383
383
  18
384
384
  /* RESUMED */
385
- ], $s = [
385
+ ], Fs = [
386
386
  3,
387
387
  4
388
388
  /* REJECTED */
389
- ], Fs = [
389
+ ], Ws = [
390
390
  1,
391
391
  2,
392
392
  5,
@@ -402,7 +402,7 @@ const au = [
402
402
  19,
403
403
  20
404
404
  /* IMPAIRED */
405
- ], Ws = [...Fs, ...$s];
405
+ ], Us = [...Ws, ...Fs];
406
406
  var zn = /* @__PURE__ */ ((e) => (e.Connected = "Connected", e.Error = "Error", e.Processing = "Processing", e.RequiresMfa = "RequiresMfa", e))(zn || {});
407
407
  const H2 = {
408
408
  3: "Challenged",
@@ -436,7 +436,7 @@ const H2 = {
436
436
  11: "Prepaid",
437
437
  8: "Property",
438
438
  2: "Savings"
439
- }, Us = {
439
+ }, Vs = {
440
440
  0: "account_balance",
441
441
  9: "monetization_on",
442
442
  1: "checkbook",
@@ -621,7 +621,7 @@ const H2 = {
621
621
  DENTIST: "CAT-ee48b740-c981-778b-3c02-04540dec0262",
622
622
  BONUS: "CAT-f52f2a88-2cb6-04e4-e36a-58f7b7c6a798",
623
623
  PET_FOOD_SUPPLIES: "CAT-fbcdb437-2533-2857-1d1a-0624c9d9e1dc"
624
- }, _r = [
624
+ }, hr = [
625
625
  w.CREDIT_CARD_PAYMENT,
626
626
  w.MORTGAGE_PAYMENT,
627
627
  w.AUTO_PAYMENT
@@ -792,7 +792,7 @@ const H2 = {
792
792
  [w.TRAVEL]: "airplane_ticket",
793
793
  [w.UNCATEGORIZED]: "category",
794
794
  UNKNOWN: "help"
795
- }, hr = 9999999999e-2;
795
+ }, gr = 9999999999e-2;
796
796
  var ca = /* @__PURE__ */ ((e) => (e.CAD = "CAD", e.USD = "USD", e))(ca || {}), ee = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.EveryWeek = 1] = "EveryWeek", e[e.EveryOtherWeek = 2] = "EveryOtherWeek", e[e.EveryMonth = 3] = "EveryMonth", e[e.EveryOtherMonth = 4] = "EveryOtherMonth", e[e.EveryQuarter = 5] = "EveryQuarter", e[e.EveryOtherQuarter = 6] = "EveryOtherQuarter", e[e.EveryYear = 7] = "EveryYear", e))(ee || {});
797
797
  const F2 = [
798
798
  { id: 0, copy: "frequency_unknown" },
@@ -809,18 +809,18 @@ const F2 = [
809
809
  SUCCESS: "SUCCESS"
810
810
  };
811
811
  var cu = /* @__PURE__ */ ((e) => (e[e.SpendingPlan = 0] = "SpendingPlan", e[e.Budgets = 1] = "Budgets", e))(cu || {}), lu = /* @__PURE__ */ ((e) => (e[e.RecurringExpense = 0] = "RecurringExpense", e[e.PlannedExpense = 1] = "PlannedExpense", e[e.Other = 2] = "Other", e[e.Income = 3] = "Income", e))(lu || {});
812
- const Vs = 48, Ks = 4;
812
+ const Ks = 48, zs = 4;
813
813
  var du = /* @__PURE__ */ ((e) => (e.Small = "small", e.Medium = "medium", e.Large = "large", e))(du || {});
814
- const hn = 44, gr = (e, n) => e.find((i) => i.guid === n), uu = (e, n) => e.find((i) => i.guid === n), _u = (e, n) => {
814
+ const hn = 44, mr = (e, n) => e.find((i) => i.guid === n), uu = (e, n) => e.find((i) => i.guid === n), _u = (e, n) => {
815
815
  const i = e.find((a) => a.subCategories.find((o) => o.guid === n));
816
816
  if (i)
817
817
  return i.subCategories.find((a) => a.guid === n);
818
818
  }, U2 = (e, n) => {
819
819
  const i = [];
820
820
  for (const a of n) {
821
- const o = gr(e, a.category_guid);
821
+ const o = mr(e, a.category_guid);
822
822
  if (!o) continue;
823
- const r = o.parent_guid ?? o.guid, s = gr(e, r);
823
+ const r = o.parent_guid ?? o.guid, s = mr(e, r);
824
824
  if (!s) continue;
825
825
  const c = {
826
826
  amount: a.total,
@@ -845,7 +845,7 @@ const hn = 44, gr = (e, n) => e.find((i) => i.guid === n), uu = (e, n) => e.find
845
845
  for (; we(i, _e()); )
846
846
  i = ei(i, 1);
847
847
  return i;
848
- }, zs = (e) => {
848
+ }, Ys = (e) => {
849
849
  const n = xa(e);
850
850
  return ei(n, 1);
851
851
  }, la = (e) => {
@@ -853,7 +853,7 @@ const hn = 44, gr = (e, n) => e.find((i) => i.guid === n), uu = (e, n) => e.find
853
853
  for (; we(n, _e()); )
854
854
  n = Ct(n, 1);
855
855
  return n;
856
- }, Ys = (e) => {
856
+ }, js = (e) => {
857
857
  const n = xa(e);
858
858
  return Ct(n, 1);
859
859
  }, Io = (e) => {
@@ -861,13 +861,13 @@ const hn = 44, gr = (e, n) => e.find((i) => i.guid === n), uu = (e, n) => e.find
861
861
  for (; we(n, _e()); )
862
862
  n = An(n, 1);
863
863
  return n;
864
- }, js = (e) => {
864
+ }, Xs = (e) => {
865
865
  const n = Io(e);
866
866
  return An(n, 1);
867
- }, Xs = (e) => ai(e, 1), Ti = (e) => {
867
+ }, qs = (e) => ai(e, 1), Ti = (e) => {
868
868
  const n = Ge(e);
869
869
  return new Date(n.getUTCFullYear(), n.getUTCMonth(), n.getUTCDate());
870
- }, Wi = (e) => re(Ge(e), ae.DAY_OF_WEEK_MONTH_DAY), qs = (e) => e ? re(Ge(e), ae.MONTH_YEAR) : "", hu = /(?<static>.*?)(?<dynamic>(?:_\d+{(?:.*?)}))|(?<staticEnd>.+)/g, T = (e, ...n) => {
870
+ }, Wi = (e) => re(Ge(e), ae.DAY_OF_WEEK_MONTH_DAY), Zs = (e) => e ? re(Ge(e), ae.MONTH_YEAR) : "", hu = /(?<static>.*?)(?<dynamic>(?:_\d+{(?:.*?)}))|(?<staticEnd>.+)/g, T = (e, ...n) => {
871
871
  if (!e) return "";
872
872
  const i = n.some((r) => typeof r != "string"), o = [...e.matchAll(hu)].reduce(
873
873
  (r, s, c) => {
@@ -970,7 +970,7 @@ const B = (e, n, i) => {
970
970
  style: "percent",
971
971
  minimumFractionDigits: 2,
972
972
  maximumFractionDigits: 2
973
- }, Ui = (e, n = mu) => ro(e) ? new Intl.NumberFormat($n(), n).format(Number(e)) : e, pu = (e) => new Intl.PluralRules($n(), e), Zs = (e, n = { type: "ordinal" }, i = {
973
+ }, Ui = (e, n = mu) => ro(e) ? new Intl.NumberFormat($n(), n).format(Number(e)) : e, pu = (e) => new Intl.PluralRules($n(), e), Qs = (e, n = { type: "ordinal" }, i = {
974
974
  one: "st",
975
975
  two: "nd",
976
976
  few: "rd",
@@ -982,11 +982,11 @@ const B = (e, n, i) => {
982
982
  const i = e.palette.mode === "dark", a = (s, c) => {
983
983
  const d = n?.[s];
984
984
  return {
985
- lighter: d ? nr(d, 0.5) : c.lighter,
986
- light: d ? nr(d, 0.25) : c.light,
985
+ lighter: d ? ir(d, 0.5) : c.lighter,
986
+ light: d ? ir(d, 0.25) : c.light,
987
987
  main: d || c.main,
988
- dark: d ? ir(d, 0.25) : c.dark,
989
- darker: d ? ir(d, 0.5) : c.darker
988
+ dark: d ? ar(d, 0.25) : c.dark,
989
+ darker: d ? ar(d, 0.5) : c.darker
990
990
  };
991
991
  }, o = {
992
992
  primary: a(i ? "primary_color_dark" : "primary_color", e.palette.primary),
@@ -1068,7 +1068,7 @@ class Cu {
1068
1068
  throw i;
1069
1069
  });
1070
1070
  }
1071
- class mr {
1071
+ class pr {
1072
1072
  fetchInstance;
1073
1073
  constructor(n) {
1074
1074
  this.fetchInstance = new ct(n, "", {
@@ -1102,7 +1102,7 @@ class si {
1102
1102
  updateBeat = async (n) => this.fetchInstance.put(`${G.BEATS}/${n.guid}`, n).then((i) => i.beat);
1103
1103
  updateOffer = async (n) => this.fetchInstance.put(`${G.OFFERS}/${n.guid}`, n).then((i) => i.beat);
1104
1104
  }
1105
- class pr {
1105
+ class Cr {
1106
1106
  fetchInstance;
1107
1107
  constructor(n, i) {
1108
1108
  this.fetchInstance = new ct(n, i);
@@ -1142,7 +1142,7 @@ class Y2 {
1142
1142
  getLocalizedCopy = async (n) => this.fetchInstance.post(G.LOCALIZED_COPY, n).then((i) => i);
1143
1143
  getLocalizedContent = async (n) => this.fetchInstance.post(`${G.LOCALIZED_CONTENT}/${n}`).then((i) => i);
1144
1144
  }
1145
- class Cr {
1145
+ class fr {
1146
1146
  fetchInstance;
1147
1147
  constructor(n, i) {
1148
1148
  this.fetchInstance = new ct(n, i);
@@ -1158,7 +1158,7 @@ class Cr {
1158
1158
  // A bug ticket has been filed to fix it, but should not require any changes here.
1159
1159
  markAllAsViewed = (n) => this.fetchInstance.put(`${G.NOTIFICATIONS}/mark_all_as_viewed`, { channel: n }).finally();
1160
1160
  }
1161
- class fr {
1161
+ class br {
1162
1162
  fetchInstance;
1163
1163
  constructor(n, i) {
1164
1164
  this.fetchInstance = new ct(n, i);
@@ -1181,7 +1181,7 @@ class Va {
1181
1181
  updateUser = async (n) => this.fetchInstance.put(G.USER, n).then((i) => i.user);
1182
1182
  updateUserProfile = async (n) => this.fetchInstance.put(`${G.USER_PROFILES}/${n.guid}`, n).then((i) => i.user_profile);
1183
1183
  }
1184
- class br {
1184
+ class yr {
1185
1185
  fetchInstance;
1186
1186
  constructor(n, i) {
1187
1187
  this.fetchInstance = new ct(n, i);
@@ -1195,7 +1195,7 @@ const Ka = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
1195
1195
  guid: i.guid
1196
1196
  };
1197
1197
  return Object.prototype.hasOwnProperty.call(n, a) ? n[a] = n[a].concat(o) : n[a] = [o], n;
1198
- }, {}), Qs = ({
1198
+ }, {}), Js = ({
1199
1199
  accounts: e,
1200
1200
  accountFilterButtonEl: n,
1201
1201
  copy: i,
@@ -1211,7 +1211,7 @@ const Ka = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
1211
1211
  }) => {
1212
1212
  const m = Sl(() => fu(e), [e]), C = e.length < 1, f = !!n, b = Object.values(d).every((E) => !!E);
1213
1213
  return /* @__PURE__ */ t(
1214
- vs,
1214
+ ws,
1215
1215
  {
1216
1216
  anchorEl: n,
1217
1217
  anchorOrigin: {
@@ -1394,7 +1394,7 @@ const Ka = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
1394
1394
  }
1395
1395
  );
1396
1396
  };
1397
- Qs.displayName = "AccountFilterOptions";
1397
+ Js.displayName = "AccountFilterOptions";
1398
1398
  const bu = (e, n) => {
1399
1399
  const { session: i } = n, a = Object.values(n).reduce((r, s) => i && s?.onAnalyticEvent && typeof s?.onAnalyticEvent == "function" ? [...r, s.onAnalyticEvent] : r, []), o = [...e, ...a];
1400
1400
  return g.useMemo(() => (r) => {
@@ -1423,11 +1423,11 @@ const bu = (e, n) => {
1423
1423
  // Between 600 and 1200
1424
1424
  isTablet: yn(me().breakpoints.between("sm", "lg"))
1425
1425
  }), j2 = (e) => {
1426
- const n = Is();
1426
+ const n = xs();
1427
1427
  return Yn(() => {
1428
1428
  n.current = e;
1429
1429
  }, [e]), n.current;
1430
- }, Js = ({
1430
+ }, ec = ({
1431
1431
  accounts: e,
1432
1432
  copy: n,
1433
1433
  onFilterClick: i,
@@ -1476,7 +1476,7 @@ const bu = (e, n) => {
1476
1476
  }
1477
1477
  ),
1478
1478
  /* @__PURE__ */ t(
1479
- Qs,
1479
+ Js,
1480
1480
  {
1481
1481
  accountFilterButtonEl: _,
1482
1482
  accounts: e,
@@ -1542,7 +1542,7 @@ const bu = (e, n) => {
1542
1542
  "& > .kyper-text": {
1543
1543
  marginRight: e.Spacing.XSmall
1544
1544
  }
1545
- }), yr = ({
1545
+ }), Er = ({
1546
1546
  ariaLabel: e,
1547
1547
  color: n,
1548
1548
  height: i,
@@ -1614,7 +1614,7 @@ const bu = (e, n) => {
1614
1614
  width: "100%"
1615
1615
  }
1616
1616
  });
1617
- }, Er = ({
1617
+ }, Sr = ({
1618
1618
  ariaLabel: e,
1619
1619
  averageLineHeight: n,
1620
1620
  bottomHeight: i,
@@ -1632,7 +1632,7 @@ const bu = (e, n) => {
1632
1632
  const C = Et(), f = Au(C, h), b = _ / s * d, E = Math.abs(_) / s * i, S = c === void 0 || c === o ? "primary" : "secondary";
1633
1633
  return /* @__PURE__ */ l("div", { className: `mx-cmn-barchart-bar-column ${f}`, children: [
1634
1634
  /* @__PURE__ */ t("div", { style: { height: d }, children: _ >= 0 && /* @__PURE__ */ t(
1635
- yr,
1635
+ Er,
1636
1636
  {
1637
1637
  ariaLabel: e,
1638
1638
  color: a,
@@ -1647,7 +1647,7 @@ const bu = (e, n) => {
1647
1647
  /* @__PURE__ */ t("div", { className: "mx-cmn-zero-line" }),
1648
1648
  n !== 0 && /* @__PURE__ */ t("div", { className: "mx-cmn-chart-average", style: { bottom: n } }),
1649
1649
  /* @__PURE__ */ t("div", { style: { height: i }, children: _ < 0 && /* @__PURE__ */ t(
1650
- yr,
1650
+ Er,
1651
1651
  {
1652
1652
  ariaLabel: e,
1653
1653
  color: a,
@@ -1692,7 +1692,7 @@ const bu = (e, n) => {
1692
1692
  "& .mx-cmn-clickable": {
1693
1693
  cursor: "pointer"
1694
1694
  }
1695
- }), Iu = (e, n) => e + n, xu = (e, n) => Math.abs(n) > e ? Math.abs(n) : e, vu = (e, n) => [...e, n.value], Sr = (e, n, i) => {
1695
+ }), Iu = (e, n) => e + n, xu = (e, n) => Math.abs(n) > e ? Math.abs(n) : e, vu = (e, n) => [...e, n.value], Tr = (e, n, i) => {
1696
1696
  const a = e && n ? i / 2 : i;
1697
1697
  return e ? a : 0;
1698
1698
  }, wu = (e, n, i, a) => e / (n < 0 ? -i : n) * a || 0, X2 = ({
@@ -1707,8 +1707,8 @@ const bu = (e, n) => {
1707
1707
  selectedIndex: d,
1708
1708
  valueFormatter: _ = (u) => `${u}`
1709
1709
  }) => {
1710
- const u = Et(), h = Nu(u), m = a.reduce(vu, []), C = e !== void 0 ? e : m.reduce(Iu, 0) / m.length, f = Math.max(...m), b = Math.min(...m), E = m.reduce(xu, 0), S = f >= 0, v = b < 0, N = Sr(S, v, o), x = Sr(v, S, o), R = wu(C, f, b, N || x), D = (O) => d === void 0 || O === d ? i : `${i}80`, H = () => /* @__PURE__ */ t(
1711
- Er,
1710
+ const u = Et(), h = Nu(u), m = a.reduce(vu, []), C = e !== void 0 ? e : m.reduce(Iu, 0) / m.length, f = Math.max(...m), b = Math.min(...m), E = m.reduce(xu, 0), S = f >= 0, v = b < 0, N = Tr(S, v, o), x = Tr(v, S, o), R = wu(C, f, b, N || x), D = (O) => d === void 0 || O === d ? i : `${i}80`, H = () => /* @__PURE__ */ t(
1711
+ Sr,
1712
1712
  {
1713
1713
  averageLineHeight: R,
1714
1714
  bottomHeight: x,
@@ -1724,7 +1724,7 @@ const bu = (e, n) => {
1724
1724
  /* @__PURE__ */ t(H, {}),
1725
1725
  a.map((O, M) => /* @__PURE__ */ l(g.Fragment, { children: [
1726
1726
  /* @__PURE__ */ t(
1727
- Er,
1727
+ Sr,
1728
1728
  {
1729
1729
  ariaLabel: O.ariaLabel,
1730
1730
  averageLineHeight: R,
@@ -1859,7 +1859,7 @@ const bu = (e, n) => {
1859
1859
  }
1860
1860
  }
1861
1861
  }), Mu = 340, Ii = 44;
1862
- var ec = /* @__PURE__ */ ((e) => (e.None = "None", e.Single = "Single", e.Range = "Range", e))(ec || {});
1862
+ var tc = /* @__PURE__ */ ((e) => (e.None = "None", e.Single = "Single", e.Range = "Range", e))(tc || {});
1863
1863
  const ku = ({
1864
1864
  copy: e,
1865
1865
  beginDate: n = void 0,
@@ -1963,7 +1963,7 @@ const ku = ({
1963
1963
  marginRight: "auto"
1964
1964
  }
1965
1965
  }
1966
- }), Bu = 100, Pu = 140, Hu = 10, tc = ({
1966
+ }), Bu = 100, Pu = 140, Hu = 10, nc = ({
1967
1967
  data: e,
1968
1968
  hoveredId: n,
1969
1969
  onClick: i,
@@ -2247,8 +2247,8 @@ const ku = ({
2247
2247
  },
2248
2248
  children: e
2249
2249
  }
2250
- ), nc = g.createContext(null), ic = ({ children: e, availableHeight: n, availableWidth: i }) => /* @__PURE__ */ t(
2251
- nc.Provider,
2250
+ ), ic = g.createContext(null), ac = ({ children: e, availableHeight: n, availableWidth: i }) => /* @__PURE__ */ t(
2251
+ ic.Provider,
2252
2252
  {
2253
2253
  value: {
2254
2254
  availableHeight: n,
@@ -2262,12 +2262,12 @@ const ku = ({
2262
2262
  if (!n)
2263
2263
  throw new Error(`${e}() must be used within the GlobalDataContext`);
2264
2264
  return n;
2265
- }, ve = () => Je("useAccountStore").globalStore.accountStore, Vi = () => Je("useAppConfig").globalStore.appDataStore.appConfig, vo = () => Je("useAnalyticsStore").globalStore.analyticsStore, ht = () => Je("useBudgetsStore").globalStore.budgetsStore, wo = () => Je("useCashflowStore").globalStore.cashflowStore, ze = () => Je("useCategoryStore").globalStore.categoryStore, ac = () => Je("useConnectStore").globalStore.connectStore, va = () => Je("useDebtsStore").globalStore.debtsStore, wa = () => Je("useGlobalStore").globalStore, ue = () => Je("useGlobalUiStore").globalStore.globalUiStore, I = () => Je("globalCopyStore").globalStore.copyStore.copy, lt = () => Je("useGoalStore").globalStore.goalStore, No = () => Je("useHelpStore").globalStore.helpStore, Ri = () => Je("useHoldingStore").globalStore.holdingStore, Vu = () => Je("useMerchantStore").globalStore.merchantStore, Ku = () => Je("useNetWorthStore").globalStore.netWorthStore, oc = () => Je("useNotificationStore").globalStore.notificationStore, at = () => Je("useRecurringActivityStore").globalStore.recurringActivityStore, $t = () => Je("useRecurringTransactionsStore").globalStore.recurringTransactionsStore, Ft = () => Je("useSettingsStore").globalStore.settingsStore, Te = () => Je("useTransactionStore").globalStore.transactionStore, an = () => Je("useUserStore").globalStore.userStore, K = () => ({ onEvent: Je().onEvent }), Z2 = () => ({ onPageView: Je().onPageView }), zu = (e = "useWidgetContainerContext") => {
2266
- const n = g.useContext(nc);
2265
+ }, ve = () => Je("useAccountStore").globalStore.accountStore, Vi = () => Je("useAppConfig").globalStore.appDataStore.appConfig, vo = () => Je("useAnalyticsStore").globalStore.analyticsStore, ht = () => Je("useBudgetsStore").globalStore.budgetsStore, wo = () => Je("useCashflowStore").globalStore.cashflowStore, ze = () => Je("useCategoryStore").globalStore.categoryStore, oc = () => Je("useConnectStore").globalStore.connectStore, va = () => Je("useDebtsStore").globalStore.debtsStore, wa = () => Je("useGlobalStore").globalStore, ue = () => Je("useGlobalUiStore").globalStore.globalUiStore, I = () => Je("globalCopyStore").globalStore.copyStore.copy, lt = () => Je("useGoalStore").globalStore.goalStore, No = () => Je("useHelpStore").globalStore.helpStore, Ri = () => Je("useHoldingStore").globalStore.holdingStore, Vu = () => Je("useMerchantStore").globalStore.merchantStore, Ku = () => Je("useNetWorthStore").globalStore.netWorthStore, rc = () => Je("useNotificationStore").globalStore.notificationStore, at = () => Je("useRecurringActivityStore").globalStore.recurringActivityStore, $t = () => Je("useRecurringTransactionsStore").globalStore.recurringTransactionsStore, Ft = () => Je("useSettingsStore").globalStore.settingsStore, Te = () => Je("useTransactionStore").globalStore.transactionStore, an = () => Je("useUserStore").globalStore.userStore, K = () => ({ onEvent: Je().onEvent }), Z2 = () => ({ onPageView: Je().onPageView }), zu = (e = "useWidgetContainerContext") => {
2266
+ const n = g.useContext(ic);
2267
2267
  if (!n)
2268
2268
  throw new Error(`${e}() must be used within the WidgetContainerContext`);
2269
2269
  return n;
2270
- }, Vn = () => zu(), rc = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
2270
+ }, Vn = () => zu(), sc = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
2271
2271
  const { categories: i } = I(), { getCategoryName: a } = ze(), o = a(e);
2272
2272
  return /* @__PURE__ */ l(y, { alignItems: "center", direction: "column", gap: "8", justifyContent: "center", mb: 4, children: [
2273
2273
  /* @__PURE__ */ t(
@@ -2300,7 +2300,7 @@ const ku = ({
2300
2300
  cursorPosition: a,
2301
2301
  chartContainerRef: o
2302
2302
  }) => {
2303
- const r = it(), s = Is(null), [c, d] = Tt({ x: a.x, y: a.y });
2303
+ const r = it(), s = xs(null), [c, d] = Tt({ x: a.x, y: a.y });
2304
2304
  if (Yn(() => {
2305
2305
  (() => {
2306
2306
  const h = s.current, m = o.current;
@@ -2324,7 +2324,7 @@ const ku = ({
2324
2324
  },
2325
2325
  children: /* @__PURE__ */ l(Ht, { children: [
2326
2326
  /* @__PURE__ */ l(L, { alignItems: "center", display: "flex", flexDirection: "column", children: [
2327
- /* @__PURE__ */ t(rc, { categoryGuid: e, topLevelCategoryGuid: n }),
2327
+ /* @__PURE__ */ t(sc, { categoryGuid: e, topLevelCategoryGuid: n }),
2328
2328
  /* @__PURE__ */ t(p, { variant: "Small", children: `${i.length}-month total` }),
2329
2329
  /* @__PURE__ */ t(je, { amount: _, bold: !0, formatString: "0,0", variant: "body2" })
2330
2330
  ] }),
@@ -2355,7 +2355,7 @@ const ku = ({
2355
2355
  }) => {
2356
2356
  const r = wn(), s = a.data[i], c = o[i];
2357
2357
  return s === void 0 || !c ? null : /* @__PURE__ */ t(pa, { sx: { pt: 4, px: 8 }, children: /* @__PURE__ */ t(Ol, { children: /* @__PURE__ */ l(kn, { alignItems: "center", display: "flex", flexDirection: "column", children: [
2358
- /* @__PURE__ */ t(rc, { categoryGuid: e, topLevelCategoryGuid: n }),
2358
+ /* @__PURE__ */ t(sc, { categoryGuid: e, topLevelCategoryGuid: n }),
2359
2359
  /* @__PURE__ */ t(p, { color: r.palette.text.secondary, variant: "Small", children: re(c, ae.MONTH_SHORT_YEAR) }),
2360
2360
  /* @__PURE__ */ t(je, { amount: String(s), bold: !0, formatString: "0,0", variant: "Body" })
2361
2361
  ] }) }) });
@@ -2535,7 +2535,7 @@ const ku = ({
2535
2535
  sx: { width: "100%", position: "relative" },
2536
2536
  children: [
2537
2537
  /* @__PURE__ */ t(
2538
- ws,
2538
+ Ns,
2539
2539
  {
2540
2540
  height: s || 400,
2541
2541
  margin: { bottom: 50 },
@@ -2672,7 +2672,7 @@ const ku = ({
2672
2672
  style: { boxSizing: "border-box" }
2673
2673
  }
2674
2674
  ),
2675
- /* @__PURE__ */ t(Ns, { sx: { lineHeight: 1.5 }, children: h }),
2675
+ /* @__PURE__ */ t(Ds, { sx: { lineHeight: 1.5 }, children: h }),
2676
2676
  /* @__PURE__ */ t(
2677
2677
  Il,
2678
2678
  {
@@ -2791,7 +2791,7 @@ const ku = ({
2791
2791
  )
2792
2792
  ] })
2793
2793
  }
2794
- ), Tr = ({
2794
+ ), Ar = ({
2795
2795
  calendarActions: e,
2796
2796
  color: n = "primary",
2797
2797
  copy: i,
@@ -2827,7 +2827,7 @@ const ku = ({
2827
2827
  if (m === i.dateRangePickerCopy.dateRangeThisMonth)
2828
2828
  W[0] = pe ? qt(Ee, 1) : Ct(Ee, 1), W[1] = qe(pe ? qt(J, 1) : Ct(J, 1));
2829
2829
  else if (m === i.dateRangePickerCopy.dateRangeYTD || m === i.dateRangePickerCopy.dateRangeLastYear)
2830
- W[0] = pe ? ao(or(Ee), 1) : ai(or(Ee), 1), W[1] = pe ? ao(ar(Ee), 1) : ai(ar(Ee), 1);
2830
+ W[0] = pe ? ao(rr(Ee), 1) : ai(rr(Ee), 1), W[1] = pe ? ao(or(Ee), 1) : ai(or(Ee), 1);
2831
2831
  else {
2832
2832
  const Z = ed(J, Ee);
2833
2833
  W[0] = U === "previous" ? _t(Ee, Z) : Gt(Ee, Z), W[1] = U === "previous" ? _t(J, Z) : Gt(J, Z);
@@ -3007,7 +3007,7 @@ const ku = ({
3007
3007
  primaryText: i.dateRangeEditApply,
3008
3008
  title: i.dateRangeEditTitle,
3009
3009
  children: /* @__PURE__ */ t(
3010
- er,
3010
+ tr,
3011
3011
  {
3012
3012
  copy: i.dateRangePickerCopy,
3013
3013
  dateRange: f,
@@ -3034,7 +3034,7 @@ const ku = ({
3034
3034
  }
3035
3035
  },
3036
3036
  children: /* @__PURE__ */ t(
3037
- er,
3037
+ tr,
3038
3038
  {
3039
3039
  copy: i.dateRangePickerCopy,
3040
3040
  dateRange: f,
@@ -3056,8 +3056,8 @@ const ku = ({
3056
3056
  }, Q2 = ({
3057
3057
  hasGap: e = !1,
3058
3058
  segments: n,
3059
- size: i = Vs,
3060
- strokeWidth: a = Ks,
3059
+ size: i = Ks,
3060
+ strokeWidth: a = zs,
3061
3061
  children: o
3062
3062
  }) => {
3063
3063
  const r = Et(), s = Ju(r, i), c = (i - a) / 2, d = i / 2;
@@ -3105,11 +3105,11 @@ const ku = ({
3105
3105
  top: "50%",
3106
3106
  transform: "translate(-50%, -50%)"
3107
3107
  }
3108
- }), sc = ({
3108
+ }), cc = ({
3109
3109
  color: e = "",
3110
3110
  percent: n = 0,
3111
- size: i = Vs,
3112
- strokeWidth: a = Ks,
3111
+ size: i = Ks,
3112
+ strokeWidth: a = zs,
3113
3113
  children: o
3114
3114
  }) => {
3115
3115
  const r = me(), s = (i - a) / 2, c = -90, d = n > 100 ? 100 : n, _ = 2 * Math.PI * s * (1 - d / 100), u = i / 2;
@@ -3172,7 +3172,7 @@ const ku = ({
3172
3172
  }, n);
3173
3173
  };
3174
3174
  }, [e, n]);
3175
- function cc(e = 100) {
3175
+ function Do(e = 100) {
3176
3176
  const [n, i] = g.useState({
3177
3177
  width: 0,
3178
3178
  height: 0
@@ -3207,7 +3207,7 @@ const Rn = ({
3207
3207
  sx: c = {},
3208
3208
  title: d = ""
3209
3209
  }) => {
3210
- const [_, { height: u, width: h }] = cc();
3210
+ const [_, { height: u, width: h }] = Do();
3211
3211
  return /* @__PURE__ */ l(Pt, { className: e, sx: { borderRadius: "8px", ...c }, children: [
3212
3212
  /* @__PURE__ */ t(
3213
3213
  Nn,
@@ -3226,7 +3226,7 @@ const Rn = ({
3226
3226
  title: d ? /* @__PURE__ */ t(ft, { sx: { pb: 4 }, children: d }) : null
3227
3227
  }
3228
3228
  ),
3229
- /* @__PURE__ */ t(Ht, { ref: _, sx: { p: 0 }, children: /* @__PURE__ */ t(ic, { availableHeight: u, availableWidth: h, children: i }) })
3229
+ /* @__PURE__ */ t(Ht, { ref: _, sx: { p: 0 }, children: /* @__PURE__ */ t(ac, { availableHeight: u, availableWidth: h, children: i }) })
3230
3230
  ] });
3231
3231
  }, ge = ({ height: e = 250, label: n = "", size: i = 32 }) => {
3232
3232
  const a = Et();
@@ -3249,7 +3249,7 @@ const Rn = ({
3249
3249
  sx: h = {},
3250
3250
  title: m = ""
3251
3251
  }) => {
3252
- const [C, { height: f, width: b }] = cc(), { onEvent: E } = K(), { isDesktop: S, isLargeDesktop: v, isMobile: N, isTablet: x } = ye(), { displayedDateRange: R, isCopyLoaded: D, selectedAccountGuids: H, setSelectedAccountGuids: O } = ue(), { common: M } = I(), q = () => {
3252
+ const [C, { height: f, width: b }] = Do(), { onEvent: E } = K(), { isDesktop: S, isLargeDesktop: v, isMobile: N, isTablet: x } = ye(), { displayedDateRange: R, isCopyLoaded: D, selectedAccountGuids: H, setSelectedAccountGuids: O } = ue(), { common: M } = I(), q = () => {
3253
3253
  d && (d(), E($.WIDGET_BACK_CLICK));
3254
3254
  };
3255
3255
  if (!D)
@@ -3309,7 +3309,7 @@ const Rn = ({
3309
3309
  {
3310
3310
  action: /* @__PURE__ */ l(y, { alignItems: "center", flexDirection: "row", children: [
3311
3311
  S && i && /* @__PURE__ */ t(L, { sx: { flexGrow: 1 }, children: /* @__PURE__ */ t(
3312
- Tr,
3312
+ Ar,
3313
3313
  {
3314
3314
  calendarActions: i,
3315
3315
  copy: W,
@@ -3319,7 +3319,7 @@ const Rn = ({
3319
3319
  }
3320
3320
  ) }),
3321
3321
  e && /* @__PURE__ */ t(
3322
- Js,
3322
+ ec,
3323
3323
  {
3324
3324
  accounts: e,
3325
3325
  copy: U,
@@ -3384,7 +3384,7 @@ const Rn = ({
3384
3384
  i && (N || x) && /* @__PURE__ */ l(y, { gap: 24, justifyContent: "center", sx: { mt: N ? 0 : 16 }, children: [
3385
3385
  u && /* @__PURE__ */ t(k, {}),
3386
3386
  /* @__PURE__ */ t(
3387
- Tr,
3387
+ Ar,
3388
3388
  {
3389
3389
  calendarActions: i,
3390
3390
  copy: W,
@@ -3394,7 +3394,7 @@ const Rn = ({
3394
3394
  }
3395
3395
  )
3396
3396
  ] }),
3397
- /* @__PURE__ */ t(Ht, { ref: C, sx: { p: 0 }, children: /* @__PURE__ */ t(ic, { availableHeight: f, availableWidth: b, children: a }) })
3397
+ /* @__PURE__ */ t(Ht, { ref: C, sx: { p: 0 }, children: /* @__PURE__ */ t(ac, { availableHeight: f, availableWidth: b, children: a }) })
3398
3398
  ]
3399
3399
  }
3400
3400
  );
@@ -3425,19 +3425,19 @@ const Rn = ({
3425
3425
  );
3426
3426
  }, da = A(n_);
3427
3427
  var Pn = /* @__PURE__ */ ((e) => (e.Loading = "loading", e.Error = "error", e))(Pn || {}), wt = /* @__PURE__ */ ((e) => (e.Currency = "currency", e.Date = "date", e.Input = "input", e.Select = "select", e))(wt || {});
3428
- const Ar = "connect_widget", Ir = "connections_widget", i_ = ({
3428
+ const Ir = "connect_widget", xr = "connections_widget", i_ = ({
3429
3429
  loadWidgetProps: e,
3430
3430
  onClose: n,
3431
3431
  showConnectWidget: i,
3432
3432
  title: a
3433
3433
  }) => {
3434
3434
  let o;
3435
- const { refreshAccounts: r } = ve(), { loadWidget: s } = ac(), { connect: c } = I(), [d, _] = g.useState(!1), [u, h] = g.useState(!1), {
3435
+ const { refreshAccounts: r } = ve(), { loadWidget: s } = oc(), { connect: c } = I(), [d, _] = g.useState(!1), [u, h] = g.useState(!1), {
3436
3436
  palette: { mode: m }
3437
3437
  } = me();
3438
3438
  return g.useEffect(() => (i ? (_(!0), s({ mode: m, ...e }).then((C) => {
3439
3439
  o = new pd({
3440
- container: `#${Ar}`,
3440
+ container: `#${Ir}`,
3441
3441
  style: {
3442
3442
  height: "calc(100% - 62px)",
3443
3443
  maxWidth: "450px",
@@ -3463,7 +3463,7 @@ const Ar = "connect_widget", Ir = "connections_widget", i_ = ({
3463
3463
  n(), r();
3464
3464
  },
3465
3465
  title: a,
3466
- children: /* @__PURE__ */ l("div", { id: Ar, children: [
3466
+ children: /* @__PURE__ */ l("div", { id: Ir, children: [
3467
3467
  u && /* @__PURE__ */ t(da, { status: Pn.Error }),
3468
3468
  d && /* @__PURE__ */ t(da, { status: Pn.Loading })
3469
3469
  ] })
@@ -3506,10 +3506,10 @@ const Ar = "connect_widget", Ir = "connections_widget", i_ = ({
3506
3506
  b.error_amount_must_be_equal_to,
3507
3507
  B(d, "0")
3508
3508
  )
3509
- ), u?.(!1)) : Number(O) > hr ? (C(
3509
+ ), u?.(!1)) : Number(O) > gr ? (C(
3510
3510
  T(
3511
3511
  b.error_amount_must_be_less_than_or_equal_to,
3512
- B(hr, e ? "0,0.00" : "0,0", Math.floor)
3512
+ B(gr, e ? "0,0.00" : "0,0", Math.floor)
3513
3513
  )
3514
3514
  ), u?.(!1)) : O.toString().match(R) ? r() ? (C(""), u?.(!0)) : (C(s), u?.(!1)) : (C(b.error_amount_is_invalid), u?.(!1)), _(O.toString());
3515
3515
  };
@@ -3607,7 +3607,7 @@ const Ar = "connect_widget", Ir = "connections_widget", i_ = ({
3607
3607
  value: o
3608
3608
  }
3609
3609
  ) });
3610
- }, Ki = A(o_), xr = ({
3610
+ }, Ki = A(o_), vr = ({
3611
3611
  checked: e = !1,
3612
3612
  label: n,
3613
3613
  sx: i = {},
@@ -4113,7 +4113,7 @@ class u_ {
4113
4113
  });
4114
4114
  };
4115
4115
  }
4116
- class vr {
4116
+ class wr {
4117
4117
  fetchInstance;
4118
4118
  constructor(n, i) {
4119
4119
  this.fetchInstance = new ct(n, i);
@@ -4134,7 +4134,7 @@ class vr {
4134
4134
  throw i;
4135
4135
  });
4136
4136
  }
4137
- const wr = (e, n) => !e && !n ? 0 : !e && n ? 101 : n / e * 100, Nr = (e, n) => {
4137
+ const Nr = (e, n) => !e && !n ? 0 : !e && n ? 101 : n / e * 100, Dr = (e, n) => {
4138
4138
  const i = {
4139
4139
  background: n.palette.success.main,
4140
4140
  description: e <= 100 ? n.palette.text.secondary : n.palette.error.main,
@@ -4153,10 +4153,10 @@ const wr = (e, n) => !e && !n ? 0 : !e && n ? 101 : n / e * 100, Nr = (e, n) =>
4153
4153
  for (const r of e) {
4154
4154
  const s = uu(n, r.category_guid);
4155
4155
  if (!s) continue;
4156
- const c = s.totalAmount, d = wr(r.amount, c), _ = r.amount - c;
4156
+ const c = s.totalAmount, d = Nr(r.amount, c), _ = r.amount - c;
4157
4157
  o.push({
4158
4158
  ...r,
4159
- budgetColors: Nr(d, a),
4159
+ budgetColors: Dr(d, a),
4160
4160
  category: s,
4161
4161
  description: T(
4162
4162
  _ < 0 ? i.budget_remaining_over : i.budget_remaining_left,
@@ -4172,10 +4172,10 @@ const wr = (e, n) => !e && !n ? 0 : !e && n ? 101 : n / e * 100, Nr = (e, n) =>
4172
4172
  if (!s) continue;
4173
4173
  const c = s.currentAmount, d = o.find((h) => h.category_guid === s.parent_guid);
4174
4174
  if (!d) continue;
4175
- const _ = r.amount - c, u = wr(r.amount, c);
4175
+ const _ = r.amount - c, u = Nr(r.amount, c);
4176
4176
  d && d.subBudgets.push({
4177
4177
  ...r,
4178
- budgetColors: Nr(u, a),
4178
+ budgetColors: Dr(u, a),
4179
4179
  category: s,
4180
4180
  description: T(
4181
4181
  _ < 0 ? i.budget_remaining_over : i.budget_remaining_left,
@@ -4193,7 +4193,7 @@ const wr = (e, n) => !e && !n ? 0 : !e && n ? 101 : n / e * 100, Nr = (e, n) =>
4193
4193
  return co(a.subBudgets, n);
4194
4194
  };
4195
4195
  class m_ {
4196
- api = new vr("/", "");
4196
+ api = new wr("/", "");
4197
4197
  globalStore;
4198
4198
  alert = "";
4199
4199
  dateRange = { start: Ve(_e()), end: qe(_e()) };
@@ -4203,7 +4203,7 @@ class m_ {
4203
4203
  isDataLoaded = !1;
4204
4204
  theme = {};
4205
4205
  constructor(n) {
4206
- this.globalStore = n, this.api = new vr(n.endpoint, n.sessionToken), $e(this);
4206
+ this.globalStore = n, this.api = new wr(n.endpoint, n.sessionToken), $e(this);
4207
4207
  }
4208
4208
  loadBudgetData = async () => {
4209
4209
  await this.loadBudgets(), yd(
@@ -4331,7 +4331,7 @@ const gi = () => {
4331
4331
  /* @__PURE__ */ t(p, { bold: !0, sx: { flexGrow: 1, fontSize: 12 }, children: n.remaining_cash }),
4332
4332
  /* @__PURE__ */ t(je, { amount: e, bold: !0, sx: { fontSize: 12 } })
4333
4333
  ] });
4334
- }, Do = A(p_), C_ = ({ onAddIncomeClick: e }) => {
4334
+ }, Ro = A(p_), C_ = ({ onAddIncomeClick: e }) => {
4335
4335
  const n = me(), { availableWidth: i } = Vn(), { isMobile: a } = ye(), { visibleCashAccounts: o, visibleCashBalance: r } = ve(), { selectedAccountGuids: s } = ue(), { cashflow: c } = I(), { userProfile: d } = an(), {
4336
4336
  daysUntilNextIncome: _,
4337
4337
  expensesTilNextIncome: u,
@@ -4425,7 +4425,7 @@ const gi = () => {
4425
4425
  justifyContent: "space-between",
4426
4426
  px: 16,
4427
4427
  sx: { borderBottomLeftRadius: 4, borderBottomRightRadius: 4 },
4428
- children: /* @__PURE__ */ t(Do, { remaining: x })
4428
+ children: /* @__PURE__ */ t(Ro, { remaining: x })
4429
4429
  }
4430
4430
  ),
4431
4431
  /* @__PURE__ */ t(k, {}),
@@ -4646,7 +4646,7 @@ const y_ = [
4646
4646
  accountIsHidden: d?.is_hidden,
4647
4647
  category: _?.name || "Uncategorized",
4648
4648
  isIncome: c.top_level_category_guid === w.INCOME,
4649
- isPending: c.feed_status === Ro.PENDING,
4649
+ isPending: c.feed_status === Oo.PENDING,
4650
4650
  number: d?.account_number || "",
4651
4651
  payee: c.description,
4652
4652
  tags: u
@@ -4689,7 +4689,7 @@ const y_ = [
4689
4689
  TRANSACTION: "Transaction",
4690
4690
  TRANSACTIONS_LIST: "Transactions List",
4691
4691
  UNHIDE_TRANSACTION: "Unhide Transaction"
4692
- }, Dr = {
4692
+ }, Rr = {
4693
4693
  // splits
4694
4694
  [j.ON_TRANSACTION_SPLIT_CLICK]: {
4695
4695
  action: Ae.SELECT,
@@ -4903,7 +4903,7 @@ const y_ = [
4903
4903
  category: Ie.TRANSACTIONS_WIDGET,
4904
4904
  label: xe.DELETE_TRANSACTION
4905
4905
  }
4906
- }, T_ = async (e, n) => !n || !Dr[e] ? null : n.sendAnalyticEvent(Dr[e]), lo = {
4906
+ }, T_ = async (e, n) => !n || !Rr[e] ? null : n.sendAnalyticEvent(Rr[e]), lo = {
4907
4907
  FLAG: "flag",
4908
4908
  DATE: "date",
4909
4909
  PAYEE: "payee",
@@ -4941,7 +4941,7 @@ const y_ = [
4941
4941
  const i = e.toLowerCase().split(" "), a = n?.toString().toLowerCase() ?? "";
4942
4942
  return i.every((o) => a.indexOf(o) > -1);
4943
4943
  };
4944
- var et = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(et || {}), nt = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(nt || {}), w_ = /* @__PURE__ */ ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.CORRECT = 1] = "CORRECT", e[e.INCORRECT = 2] = "INCORRECT", e))(w_ || {}), N_ = /* @__PURE__ */ ((e) => (e.Missed = "Missed", e.Paid = "Paid", e.Upcoming = "Upcoming expense", e.Income = "Income", e))(N_ || {}), D_ = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e))(D_ || {}), V = /* @__PURE__ */ ((e) => (e[e.DEBT_TRACK = 1] = "DEBT_TRACK", e[e.SAVINGS_TRACK = 2] = "SAVINGS_TRACK", e[e.RETIREMENT_TRACK = 3] = "RETIREMENT_TRACK", e[e.EMERGENCY_FUND_TRACK = 4] = "EMERGENCY_FUND_TRACK", e))(V || {}), uo = /* @__PURE__ */ ((e) => (e[e.SAVE_AMOUNT = 1] = "SAVE_AMOUNT", e[e.KEEP_BALANCE_BELOW = 2] = "KEEP_BALANCE_BELOW", e[e.KEEP_BALANCE_ABOVE = 3] = "KEEP_BALANCE_ABOVE", e[e.ACTION = 4] = "ACTION", e))(uo || {}), Nt = /* @__PURE__ */ ((e) => (e[e.AUTOMOBILE = 1] = "AUTOMOBILE", e[e.COLLEGE = 2] = "COLLEGE", e[e.HOUSE = 3] = "HOUSE", e[e.RECREATIONAL_VEHICLE = 4] = "RECREATIONAL_VEHICLE", e[e.VACATION = 5] = "VACATION", e[e.ELECTRONIC = 6] = "ELECTRONIC", e[e.OTHER = 7] = "OTHER", e[e.RETIREMENT = 8] = "RETIREMENT", e[e.EMERGENCY_FUND = 9] = "EMERGENCY_FUND", e[e.SETUP_BUDGETS = 10] = "SETUP_BUDGETS", e[e.START_MONEY_MANAGEMENT = 11] = "START_MONEY_MANAGEMENT", e[e.CREDIT_CARD = 12] = "CREDIT_CARD", e[e.LINE_OF_CREDIT = 13] = "LINE_OF_CREDIT", e[e.LOANS = 14] = "LOANS", e))(Nt || {}), We = /* @__PURE__ */ ((e) => (e[e.BudgetExceeded = 1] = "BudgetExceeded", e[e.BudgetOffTarget = 2] = "BudgetOffTarget", e[e.DebtPaymentReminder = 3] = "DebtPaymentReminder", e[e.AccountBalanceLow = 6] = "AccountBalanceLow", e[e.AccountDepositLarge = 7] = "AccountDepositLarge", e[e.TransactionExpenseLarge = 8] = "TransactionExpenseLarge", e[e.TransactionFeeCharge = 9] = "TransactionFeeCharge", e[e.InternationalTransaction = 23] = "InternationalTransaction", e[e.AccountDepositLargePosted = 48] = "AccountDepositLargePosted", e))(We || {}), At = /* @__PURE__ */ ((e) => (e[e.CREDIT = 1] = "CREDIT", e[e.DEBIT = 2] = "DEBIT", e))(At || {}), Ro = /* @__PURE__ */ ((e) => (e[e.POSTED = 1] = "POSTED", e[e.PENDING = 2] = "PENDING", e))(Ro || {}), R_ = /* @__PURE__ */ ((e) => (e.Desktop = "Desktop", e.Mobile = "Mobile", e))(R_ || {}), Ne = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.EveryWeek = 1] = "EveryWeek", e[e.EveryOtherWeek = 2] = "EveryOtherWeek", e[e.EveryMonth = 3] = "EveryMonth", e[e.EveryOtherMonth = 4] = "EveryOtherMonth", e[e.EveryQuarter = 5] = "EveryQuarter", e[e.EveryOtherQuarter = 6] = "EveryOtherQuarter", e[e.EveryYear = 7] = "EveryYear", e))(Ne || {}), st = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(st || {}), Xt = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(Xt || {}), dn = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e[e.Income = 3] = "Income", e[e.Transfer = 4] = "Transfer", e))(dn || {});
4944
+ var et = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(et || {}), nt = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(nt || {}), w_ = /* @__PURE__ */ ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.CORRECT = 1] = "CORRECT", e[e.INCORRECT = 2] = "INCORRECT", e))(w_ || {}), N_ = /* @__PURE__ */ ((e) => (e.Missed = "Missed", e.Paid = "Paid", e.Upcoming = "Upcoming expense", e.Income = "Income", e))(N_ || {}), D_ = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e))(D_ || {}), V = /* @__PURE__ */ ((e) => (e[e.DEBT_TRACK = 1] = "DEBT_TRACK", e[e.SAVINGS_TRACK = 2] = "SAVINGS_TRACK", e[e.RETIREMENT_TRACK = 3] = "RETIREMENT_TRACK", e[e.EMERGENCY_FUND_TRACK = 4] = "EMERGENCY_FUND_TRACK", e))(V || {}), uo = /* @__PURE__ */ ((e) => (e[e.SAVE_AMOUNT = 1] = "SAVE_AMOUNT", e[e.KEEP_BALANCE_BELOW = 2] = "KEEP_BALANCE_BELOW", e[e.KEEP_BALANCE_ABOVE = 3] = "KEEP_BALANCE_ABOVE", e[e.ACTION = 4] = "ACTION", e))(uo || {}), Nt = /* @__PURE__ */ ((e) => (e[e.AUTOMOBILE = 1] = "AUTOMOBILE", e[e.COLLEGE = 2] = "COLLEGE", e[e.HOUSE = 3] = "HOUSE", e[e.RECREATIONAL_VEHICLE = 4] = "RECREATIONAL_VEHICLE", e[e.VACATION = 5] = "VACATION", e[e.ELECTRONIC = 6] = "ELECTRONIC", e[e.OTHER = 7] = "OTHER", e[e.RETIREMENT = 8] = "RETIREMENT", e[e.EMERGENCY_FUND = 9] = "EMERGENCY_FUND", e[e.SETUP_BUDGETS = 10] = "SETUP_BUDGETS", e[e.START_MONEY_MANAGEMENT = 11] = "START_MONEY_MANAGEMENT", e[e.CREDIT_CARD = 12] = "CREDIT_CARD", e[e.LINE_OF_CREDIT = 13] = "LINE_OF_CREDIT", e[e.LOANS = 14] = "LOANS", e))(Nt || {}), We = /* @__PURE__ */ ((e) => (e[e.BudgetExceeded = 1] = "BudgetExceeded", e[e.BudgetOffTarget = 2] = "BudgetOffTarget", e[e.DebtPaymentReminder = 3] = "DebtPaymentReminder", e[e.AccountBalanceLow = 6] = "AccountBalanceLow", e[e.AccountDepositLarge = 7] = "AccountDepositLarge", e[e.TransactionExpenseLarge = 8] = "TransactionExpenseLarge", e[e.TransactionFeeCharge = 9] = "TransactionFeeCharge", e[e.InternationalTransaction = 23] = "InternationalTransaction", e[e.AccountDepositLargePosted = 48] = "AccountDepositLargePosted", e))(We || {}), At = /* @__PURE__ */ ((e) => (e[e.CREDIT = 1] = "CREDIT", e[e.DEBIT = 2] = "DEBIT", e))(At || {}), Oo = /* @__PURE__ */ ((e) => (e[e.POSTED = 1] = "POSTED", e[e.PENDING = 2] = "PENDING", e))(Oo || {}), R_ = /* @__PURE__ */ ((e) => (e.Desktop = "Desktop", e.Mobile = "Mobile", e))(R_ || {}), Ne = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.EveryWeek = 1] = "EveryWeek", e[e.EveryOtherWeek = 2] = "EveryOtherWeek", e[e.EveryMonth = 3] = "EveryMonth", e[e.EveryOtherMonth = 4] = "EveryOtherMonth", e[e.EveryQuarter = 5] = "EveryQuarter", e[e.EveryOtherQuarter = 6] = "EveryOtherQuarter", e[e.EveryYear = 7] = "EveryYear", e))(Ne || {}), st = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(st || {}), Xt = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(Xt || {}), dn = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e[e.Income = 3] = "Income", e[e.Transfer = 4] = "Transfer", e))(dn || {});
4945
4945
  const uc = {
4946
4946
  account_guid: "",
4947
4947
  amount: 0,
@@ -4950,7 +4950,7 @@ const uc = {
4950
4950
  description: "",
4951
4951
  duplicate: !1,
4952
4952
  feed_description: "",
4953
- feed_status: Ro.POSTED,
4953
+ feed_status: Oo.POSTED,
4954
4954
  feed_transaction_date: 0,
4955
4955
  has_been_split: !1,
4956
4956
  has_been_viewed: !1,
@@ -5297,13 +5297,13 @@ const vt = () => {
5297
5297
  /* @__PURE__ */ t(p, { bold: !0, color: "secondary", variant: "Small", children: a.zero_state_no_transactions }),
5298
5298
  n && /* @__PURE__ */ t(p, { color: "secondary", variant: "XSmall", children: a.zero_state_there_are_no_transactions })
5299
5299
  ] });
5300
- }, $_ = A(H_), Rr = (e, n) => {
5300
+ }, $_ = A(H_), Or = (e, n) => {
5301
5301
  const i = Ge(n[e].date), a = Ge(n[e - 1]?.date);
5302
5302
  return !gt(i, a);
5303
5303
  }, F_ = (e, n) => {
5304
5304
  const i = Ge(n[e].date), a = Ge(n[e + 1]?.date);
5305
5305
  return gt(i, a);
5306
- }, Or = 65, Lr = 34, W_ = ({
5306
+ }, Lr = 65, Mr = 34, W_ = ({
5307
5307
  bgcolor: e,
5308
5308
  height: n = "calc(100dvh - 36px)",
5309
5309
  loader: i = /* @__PURE__ */ t(ge, { label: "Loading", size: 40 }),
@@ -5324,10 +5324,10 @@ const vt = () => {
5324
5324
  account_guid: N?.account_guid,
5325
5325
  transaction_guid: v
5326
5326
  }), a?.(v);
5327
- }, E = g.useRef(null), S = Os({
5327
+ }, E = g.useRef(null), S = Ls({
5328
5328
  count: h.length,
5329
5329
  getScrollElement: () => E.current,
5330
- estimateSize: (v) => Or + (Rr(v, h) ? Lr : 0),
5330
+ estimateSize: (v) => Lr + (Or(v, h) ? Mr : 0),
5331
5331
  overscan: 5
5332
5332
  });
5333
5333
  return g.useEffect(() => S.measure(), [h]), g.useEffect(() => m(o), [o]), /* @__PURE__ */ t(ie, { children: /* @__PURE__ */ t(L, { height: n, overflow: "auto", ref: E, width: c, children: /* @__PURE__ */ l(
@@ -5343,7 +5343,7 @@ const vt = () => {
5343
5343
  (_ || r) && i,
5344
5344
  !_ && !r && S.getVirtualItems().length === 0 && d,
5345
5345
  !_ && !r && S.getVirtualItems().length > 0 && S.getVirtualItems().map((v) => {
5346
- const N = h[v.index], x = Rr(v.index, h), R = F_(v.index, h), D = Or + (x ? Lr : 0);
5346
+ const N = h[v.index], x = Or(v.index, h), R = F_(v.index, h), D = Lr + (x ? Mr : 0);
5347
5347
  return /* @__PURE__ */ l(
5348
5348
  L,
5349
5349
  {
@@ -5574,7 +5574,7 @@ const J_ = ({
5574
5574
  onPrimaryAction: () => {
5575
5575
  d(!1), i(r);
5576
5576
  },
5577
- children: /* @__PURE__ */ t(Ns, { children: h ? /* @__PURE__ */ t(p, { children: u }) : /* @__PURE__ */ t(
5577
+ children: /* @__PURE__ */ t(Ds, { children: h ? /* @__PURE__ */ t(p, { children: u }) : /* @__PURE__ */ t(
5578
5578
  xn,
5579
5579
  {
5580
5580
  "aria-label": o === "edit" ? c.edit_subcategory_aria : c.add_subcategory_aria,
@@ -5587,7 +5587,7 @@ const J_ = ({
5587
5587
  ) })
5588
5588
  }
5589
5589
  );
5590
- }, Oo = A(J_), eh = ({ parentCategory: e }) => {
5590
+ }, Lo = A(J_), eh = ({ parentCategory: e }) => {
5591
5591
  const [n, i] = g.useState(!1), { addCategory: a } = ze(), { categories: o } = I(), { onEvent: r } = K(), { setShouldDisableDrawerScroll: s } = Cn(), c = async (u) => {
5592
5592
  await a(u.trim(), e.guid), r(Qt.ON_SUBCATEGORY_ADDED), i(!1);
5593
5593
  }, d = async () => {
@@ -5604,7 +5604,7 @@ const J_ = ({
5604
5604
  }
5605
5605
  ) }),
5606
5606
  n && /* @__PURE__ */ t(
5607
- Oo,
5607
+ Lo,
5608
5608
  {
5609
5609
  isOpen: n,
5610
5610
  onClose: _,
@@ -5624,7 +5624,7 @@ const J_ = ({
5624
5624
  e(!1), o(Qt.ON_SUBCATEGORY_EDIT_CANCEL_CLICK);
5625
5625
  };
5626
5626
  return /* @__PURE__ */ t(
5627
- Oo,
5627
+ Lo,
5628
5628
  {
5629
5629
  categoryName: n.name,
5630
5630
  isOpen: i,
@@ -5645,7 +5645,7 @@ const J_ = ({
5645
5645
  o(Qt.ON_SUBCATEGORY_DELETED), await r(a.guid), i(!1);
5646
5646
  };
5647
5647
  return /* @__PURE__ */ t(
5648
- Oo,
5648
+ Lo,
5649
5649
  {
5650
5650
  categoryName: e.name,
5651
5651
  isOpen: n,
@@ -5875,7 +5875,7 @@ const J_ = ({
5875
5875
  children: /* @__PURE__ */ t(gh, { ...o })
5876
5876
  }
5877
5877
  ) : /* @__PURE__ */ t(ge, {});
5878
- }, Oa = A(mh), ph = 3, Mr = 12, Ch = (e, n, i) => e.filter((a) => !a.parent_guid).map(
5878
+ }, Oa = A(mh), ph = 3, kr = 12, Ch = (e, n, i) => e.filter((a) => !a.parent_guid).map(
5879
5879
  (a) => gc(
5880
5880
  a,
5881
5881
  n,
@@ -5883,9 +5883,9 @@ const J_ = ({
5883
5883
  e.filter((o) => o.parent_guid === a.guid)
5884
5884
  )
5885
5885
  ), gc = (e, n, i, a = []) => {
5886
- const o = e.guid, r = e.parent_guid || o, s = o === r, c = n.find((m) => m.category_guid === o)?.total || 0, d = Gr(
5886
+ const o = e.guid, r = e.parent_guid || o, s = o === r, c = n.find((m) => m.category_guid === o)?.total || 0, d = Br(
5887
5887
  i.filter((m) => m.category_guid === o)
5888
- ), _ = Gr(
5888
+ ), _ = Br(
5889
5889
  i.filter(
5890
5890
  (m) => m.category_guid === o || m.top_level_category_guid === o
5891
5891
  )
@@ -5898,17 +5898,17 @@ const J_ = ({
5898
5898
  return {
5899
5899
  ...e,
5900
5900
  currentAmount: c,
5901
- averageAmount: kr(d),
5901
+ averageAmount: Gr(d),
5902
5902
  color: Bn[r],
5903
5903
  icon: su[r],
5904
5904
  isTransfer: r === w.TRANSFER,
5905
5905
  monthlyAmounts: d,
5906
5906
  subCategories: u,
5907
5907
  totalAmount: s ? h : 0,
5908
- totalAverageAmount: kr(_),
5908
+ totalAverageAmount: Gr(_),
5909
5909
  totalMonthlyAmounts: s ? _ : []
5910
5910
  };
5911
- }, kr = (e, n = ph) => {
5911
+ }, Gr = (e, n = ph) => {
5912
5912
  const i = n > history.length ? history.length : n;
5913
5913
  return Math.ceil(
5914
5914
  Math.max(
@@ -5916,10 +5916,10 @@ const J_ = ({
5916
5916
  e.slice(-i).reduce((a, o) => a + o.amount, 0) / i
5917
5917
  )
5918
5918
  );
5919
- }, Gr = (e) => {
5919
+ }, Br = (e) => {
5920
5920
  const n = [], i = _e();
5921
- for (let a = 0; a <= Mr; a++) {
5922
- const o = Ve(qt(i, Mr - a)), s = e.filter(
5921
+ for (let a = 0; a <= kr; a++) {
5922
+ const o = Ve(qt(i, kr - a)), s = e.filter(
5923
5923
  (c) => c.year_month === Number(Dt(o, "yyyyMM"))
5924
5924
  ).reduce((c, d) => c + d.total, 0);
5925
5925
  n.push({
@@ -5956,7 +5956,7 @@ let fh = class {
5956
5956
  class bh {
5957
5957
  globalStore;
5958
5958
  uiStore;
5959
- api = new pr("/", "");
5959
+ api = new Cr("/", "");
5960
5960
  categories = [];
5961
5961
  dateRangeCategoryTotals = [];
5962
5962
  monthlyCategoryTotals = [];
@@ -5964,7 +5964,7 @@ class bh {
5964
5964
  isLoadingCategoryTotals = !1;
5965
5965
  monthlyTotalsLoaded = !1;
5966
5966
  constructor(n) {
5967
- this.globalStore = n, this.uiStore = new fh(), this.api = new pr(n.endpoint, n.sessionToken), $e(this);
5967
+ this.globalStore = n, this.uiStore = new fh(), this.api = new Cr(n.endpoint, n.sessionToken), $e(this);
5968
5968
  }
5969
5969
  get detailedCategories() {
5970
5970
  return Ch(
@@ -6107,7 +6107,7 @@ const mc = ({ transaction: e }) => {
6107
6107
  categoryGuid: e.top_level_category_guid,
6108
6108
  size: 24,
6109
6109
  sx: { color: "text.primary" },
6110
- variant: xs.Transparent
6110
+ variant: vs.Transparent
6111
6111
  }
6112
6112
  ) }) }),
6113
6113
  /* @__PURE__ */ t(
@@ -6206,7 +6206,7 @@ const mc = ({ transaction: e }) => {
6206
6206
  today: r.date_range_picker.today
6207
6207
  },
6208
6208
  onDateSelected: h,
6209
- selectionType: ec.Single
6209
+ selectionType: tc.Single
6210
6210
  }
6211
6211
  ) })
6212
6212
  }
@@ -7175,7 +7175,7 @@ const mc = ({ transaction: e }) => {
7175
7175
  ),
7176
7176
  /* @__PURE__ */ t(Od, { name: "TransactionType", onChange: C, row: !0, children: /* @__PURE__ */ l(y, { alignItems: "center", direction: "row", children: [
7177
7177
  /* @__PURE__ */ t(
7178
- xr,
7178
+ vr,
7179
7179
  {
7180
7180
  checked: a.transaction_type === At.CREDIT,
7181
7181
  label: i.manual_transaction_credit_button_label,
@@ -7185,7 +7185,7 @@ const mc = ({ transaction: e }) => {
7185
7185
  }
7186
7186
  ),
7187
7187
  /* @__PURE__ */ t(
7188
- xr,
7188
+ vr,
7189
7189
  {
7190
7190
  checked: a.transaction_type === At.DEBIT,
7191
7191
  label: i.manual_transaction_debit_button_label,
@@ -7270,7 +7270,7 @@ const mc = ({ transaction: e }) => {
7270
7270
  }
7271
7271
  )
7272
7272
  ] });
7273
- }, Qh = A(Zh), Br = 120, Jh = ({
7273
+ }, Qh = A(Zh), Pr = 120, Jh = ({
7274
7274
  onBackClick: e,
7275
7275
  height: n = "100dvh",
7276
7276
  showInsights: i = !1,
@@ -7303,9 +7303,9 @@ const mc = ({ transaction: e }) => {
7303
7303
  g.useEffect(() => {
7304
7304
  pe(o);
7305
7305
  }, [o]), g.useEffect(() => {
7306
- const dt = Ve(_e()), Jo = qe(_e());
7307
- J(dt, Jo), S({
7308
- dateRange: { start: dt, end: Jo },
7306
+ const dt = Ve(_e()), er = qe(_e());
7307
+ J(dt, er), S({
7308
+ dateRange: { start: dt, end: er },
7309
7309
  accounts: Ee.map((Ua) => Ua.guid),
7310
7310
  custom: (Ua) => !Ua.accountIsClosed
7311
7311
  }), ce(!0), O($.TRANSACTIONS_VIEW);
@@ -7390,7 +7390,7 @@ const mc = ({ transaction: e }) => {
7390
7390
  children: /* @__PURE__ */ t(
7391
7391
  Q_,
7392
7392
  {
7393
- height: `calc(${n} - ${Br}px)`,
7393
+ height: `calc(${n} - ${Pr}px)`,
7394
7394
  onCategoryClick: (dt) => {
7395
7395
  ke(dt), Q(
7396
7396
  "category"
@@ -7417,7 +7417,7 @@ const mc = ({ transaction: e }) => {
7417
7417
  children: /* @__PURE__ */ t(
7418
7418
  pn,
7419
7419
  {
7420
- height: `calc(${n} - ${Br}px)`,
7420
+ height: `calc(${n} - ${Pr}px)`,
7421
7421
  onClick: (dt) => {
7422
7422
  ke(dt), Q(
7423
7423
  "transaction"
@@ -7756,7 +7756,7 @@ const mc = ({ transaction: e }) => {
7756
7756
  gridRow: 1,
7757
7757
  gridColumn: 1,
7758
7758
  zIndex: 2
7759
- }, Ma = (e) => e ? { margin: "0 0 -6px -4px" } : void 0, Lo = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Zt, { size: n, sx: { ...Ma(e) }, children: /* @__PURE__ */ t(Hd, { color: "primary", sx: { fontSize: n, ...La } }) }), Mo = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Zt, { size: n, sx: { ...Ma(e) }, children: /* @__PURE__ */ t($d, { sx: { color: "categories.income", fontSize: n, ...La } }) }), ko = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Zt, { size: n, sx: { ...Ma(e) }, children: /* @__PURE__ */ t(ra, { color: "error", sx: { fontSize: n, ...La } }) }), Go = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Zt, { size: n, sx: { ...Ma(e) }, children: /* @__PURE__ */ t(Ta, { color: "success", sx: { fontSize: n, ...La } }) }), Pr = ({ copy: e, date: n, type: i }) => {
7759
+ }, Ma = (e) => e ? { margin: "0 0 -6px -4px" } : void 0, Mo = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Zt, { size: n, sx: { ...Ma(e) }, children: /* @__PURE__ */ t(Hd, { color: "primary", sx: { fontSize: n, ...La } }) }), ko = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Zt, { size: n, sx: { ...Ma(e) }, children: /* @__PURE__ */ t($d, { sx: { color: "categories.income", fontSize: n, ...La } }) }), Go = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Zt, { size: n, sx: { ...Ma(e) }, children: /* @__PURE__ */ t(ra, { color: "error", sx: { fontSize: n, ...La } }) }), Bo = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Zt, { size: n, sx: { ...Ma(e) }, children: /* @__PURE__ */ t(Ta, { color: "success", sx: { fontSize: n, ...La } }) }), Hr = ({ copy: e, date: n, type: i }) => {
7760
7760
  let a = n && fo(n) ? T(e.monthly_ordinal, Dt(n, "do")) : e.monthly;
7761
7761
  switch (i) {
7762
7762
  case ee.EveryQuarter:
@@ -7801,14 +7801,14 @@ const mc = ({ transaction: e }) => {
7801
7801
  }
7802
7802
  }, sg = (e) => {
7803
7803
  if (e.activityType === et.Income)
7804
- return /* @__PURE__ */ t(Mo, {});
7804
+ return /* @__PURE__ */ t(ko, {});
7805
7805
  switch (e.activityStatus) {
7806
7806
  case nt.Missed:
7807
- return /* @__PURE__ */ t(ko, {});
7808
- case nt.Paid:
7809
7807
  return /* @__PURE__ */ t(Go, {});
7808
+ case nt.Paid:
7809
+ return /* @__PURE__ */ t(Bo, {});
7810
7810
  default:
7811
- return /* @__PURE__ */ t(Lo, {});
7811
+ return /* @__PURE__ */ t(Mo, {});
7812
7812
  }
7813
7813
  }, cg = ({
7814
7814
  activity: e,
@@ -7819,7 +7819,7 @@ const mc = ({ transaction: e }) => {
7819
7819
  }) => {
7820
7820
  const { recurring: o } = I(), [r, s] = g.useState(""), c = e.activityType === et.Income, d = e.activityStatus === nt.Paid, _ = e.activityStatus === nt.Missed, u = e.activityStatus === nt.Upcoming;
7821
7821
  let h = o.paid?.toLowerCase();
7822
- return _ ? h = o.missed?.toLowerCase() : u && (h = Pr(a ? {
7822
+ return _ ? h = o.missed?.toLowerCase() : u && (h = Hr(a ? {
7823
7823
  copy: o,
7824
7824
  date: e.expectedDate,
7825
7825
  type: e.recurrenceType
@@ -8030,22 +8030,22 @@ const mc = ({ transaction: e }) => {
8030
8030
  r(xa(h));
8031
8031
  break;
8032
8032
  case ee.EveryOtherWeek:
8033
- r(zs(h));
8033
+ r(Ys(h));
8034
8034
  break;
8035
8035
  case ee.EveryMonth:
8036
8036
  r(la(h));
8037
8037
  break;
8038
8038
  case ee.EveryOtherMonth:
8039
- r(Ys(h));
8039
+ r(js(h));
8040
8040
  break;
8041
8041
  case ee.EveryQuarter:
8042
8042
  r(Io(h));
8043
8043
  break;
8044
8044
  case ee.EveryOtherQuarter:
8045
- r(js(h));
8045
+ r(Xs(h));
8046
8046
  break;
8047
8047
  case ee.EveryYear:
8048
- r(Xs(h));
8048
+ r(qs(h));
8049
8049
  break;
8050
8050
  }
8051
8051
  o(Number(u.target.value));
@@ -8084,7 +8084,7 @@ const mc = ({ transaction: e }) => {
8084
8084
  }
8085
8085
  ) })
8086
8086
  ] });
8087
- }, Ic = A(ug), Oi = (e) => e.top_level_category_guid !== w.INCOME && e.transaction_type === At.DEBIT, xc = (e, n) => Oi(e) ? e.payee?.toLowerCase().includes(n.toLowerCase()) || e.description.toLowerCase().includes(n.toLowerCase()) || e.feed_description.toLowerCase().includes(n.toLowerCase()) : !1, jn = (e) => e.top_level_category_guid === w.INCOME || e.top_level_category_guid === w.TRANSFER && e.transaction_type === At.CREDIT, Bo = (e, n) => jn(e) ? e.payee?.toLowerCase().includes(n.toLowerCase()) || e.description?.toLowerCase().includes(n.toLowerCase()) || e.feed_description?.toLowerCase().includes(n.toLowerCase()) : !1, _g = ({
8087
+ }, Ic = A(ug), Oi = (e) => e.top_level_category_guid !== w.INCOME && e.transaction_type === At.DEBIT, xc = (e, n) => Oi(e) ? e.payee?.toLowerCase().includes(n.toLowerCase()) || e.description.toLowerCase().includes(n.toLowerCase()) || e.feed_description.toLowerCase().includes(n.toLowerCase()) : !1, jn = (e) => e.top_level_category_guid === w.INCOME || e.top_level_category_guid === w.TRANSFER && e.transaction_type === At.CREDIT, Po = (e, n) => jn(e) ? e.payee?.toLowerCase().includes(n.toLowerCase()) || e.description?.toLowerCase().includes(n.toLowerCase()) || e.feed_description?.toLowerCase().includes(n.toLowerCase()) : !1, _g = ({
8088
8088
  isIncome: e = !1,
8089
8089
  label: n,
8090
8090
  onAddActivity: i = () => null
@@ -8136,7 +8136,7 @@ const mc = ({ transaction: e }) => {
8136
8136
  onSearch: (D) => {
8137
8137
  d({
8138
8138
  ...c,
8139
- custom: (H) => e ? D ? Bo(H, D) : jn(H) : D ? xc(H, D) : Oi(H)
8139
+ custom: (H) => e ? D ? Po(H, D) : jn(H) : D ? xc(H, D) : Oi(H)
8140
8140
  });
8141
8141
  },
8142
8142
  onSelected: (D) => C(D)
@@ -8296,11 +8296,11 @@ const mc = ({ transaction: e }) => {
8296
8296
  for (a.push({
8297
8297
  ...c,
8298
8298
  expectedDate: s
8299
- }), m = lr(s, 2); Jt(m, u); )
8299
+ }), m = dr(s, 2); Jt(m, u); )
8300
8300
  a.push({
8301
8301
  ...c,
8302
8302
  expectedDate: m
8303
- }), m = lr(m, 2);
8303
+ }), m = dr(m, 2);
8304
8304
  for (m = ei(s, 2); we(m, h); )
8305
8305
  a.push({
8306
8306
  ...c,
@@ -8398,7 +8398,7 @@ const mc = ({ transaction: e }) => {
8398
8398
  ] }, u.sequenceGuid)),
8399
8399
  /* @__PURE__ */ t(vc, { isIncome: !0, label: e.add_income, onAddActivity: _ })
8400
8400
  ] });
8401
- }, Po = A(bg), yg = () => {
8401
+ }, Ho = A(bg), yg = () => {
8402
8402
  const [e, n] = g.useState(0), { onEvent: i } = K(), { recurring: a } = I();
8403
8403
  return /* @__PURE__ */ l(L, { bgcolor: "background.default", height: "100%", children: [
8404
8404
  /* @__PURE__ */ l(
@@ -8431,7 +8431,7 @@ const mc = ({ transaction: e }) => {
8431
8431
  }
8432
8432
  ),
8433
8433
  e === 0 && /* @__PURE__ */ t(mg, {}),
8434
- e === 1 && /* @__PURE__ */ t(Po, {})
8434
+ e === 1 && /* @__PURE__ */ t(Ho, {})
8435
8435
  ] });
8436
8436
  }, wc = A(yg), fi = (e, n) => e + n.amount, za = (e) => e.activityType === et.Income && ri(e.expectedDate, {
8437
8437
  start: Ve(_e()),
@@ -8462,10 +8462,10 @@ const mc = ({ transaction: e }) => {
8462
8462
  bo,
8463
8463
  {
8464
8464
  badgeContent: d.length > 0 && /* @__PURE__ */ l(X, { children: [
8465
- u && /* @__PURE__ */ t(ko, { isOffset: !0 }),
8466
- h && /* @__PURE__ */ t(Go, { isOffset: !0 }),
8467
- _ && /* @__PURE__ */ t(Lo, { isOffset: !0 }),
8468
- m && /* @__PURE__ */ t(Mo, { isOffset: !0 })
8465
+ u && /* @__PURE__ */ t(Go, { isOffset: !0 }),
8466
+ h && /* @__PURE__ */ t(Bo, { isOffset: !0 }),
8467
+ _ && /* @__PURE__ */ t(Mo, { isOffset: !0 }),
8468
+ m && /* @__PURE__ */ t(ko, { isOffset: !0 })
8469
8469
  ] }),
8470
8470
  overlap: "circular",
8471
8471
  sx: {
@@ -8476,7 +8476,7 @@ const mc = ({ transaction: e }) => {
8476
8476
  }
8477
8477
  },
8478
8478
  children: /* @__PURE__ */ t(
8479
- ks,
8479
+ Gs,
8480
8480
  {
8481
8481
  "aria-label": `
8482
8482
  ${h && a.paid},
@@ -8513,18 +8513,18 @@ const mc = ({ transaction: e }) => {
8513
8513
  justifyContent: "center",
8514
8514
  mt: 12,
8515
8515
  children: [
8516
- /* @__PURE__ */ t(Zi, { icon: Lo, label: e.expense }),
8517
- /* @__PURE__ */ t(Zi, { icon: Mo, label: e.income }),
8518
- /* @__PURE__ */ t(Zi, { icon: ko, label: e.missed }),
8519
- /* @__PURE__ */ t(Zi, { icon: Go, label: e.paid })
8516
+ /* @__PURE__ */ t(Zi, { icon: Mo, label: e.expense }),
8517
+ /* @__PURE__ */ t(Zi, { icon: ko, label: e.income }),
8518
+ /* @__PURE__ */ t(Zi, { icon: Go, label: e.missed }),
8519
+ /* @__PURE__ */ t(Zi, { icon: Bo, label: e.paid })
8520
8520
  ]
8521
8521
  }
8522
8522
  );
8523
- }, Ag = A(Tg), Hr = 58, Ig = () => {
8523
+ }, Ag = A(Tg), $r = 58, Ig = () => {
8524
8524
  const e = it(), { onEvent: n } = K(), { selectedDay: i } = at(), [a, o] = g.useState(
8525
- sa(/* @__PURE__ */ new Date()) * hn + Hr
8525
+ sa(/* @__PURE__ */ new Date()) * hn + $r
8526
8526
  ), r = (c) => {
8527
- o(sa(c) * hn + Hr), n($.RECURRING_ACTIVITY_CLICK_CALENDAR_RIGHT);
8527
+ o(sa(c) * hn + $r), n($.RECURRING_ACTIVITY_CLICK_CALENDAR_RIGHT);
8528
8528
  }, s = /* @__PURE__ */ t(
8529
8529
  _i,
8530
8530
  {
@@ -8678,7 +8678,7 @@ const mc = ({ transaction: e }) => {
8678
8678
  ] }),
8679
8679
  /* @__PURE__ */ t(ci, { data: d })
8680
8680
  ] });
8681
- }, $r = A(wg), Ng = () => {
8681
+ }, Fr = A(wg), Ng = () => {
8682
8682
  const { recurring: e } = I(), { isMobile: n, isSmallTablet: i } = ye(), {
8683
8683
  activities: a,
8684
8684
  missedActivities: o,
@@ -8701,7 +8701,7 @@ const mc = ({ transaction: e }) => {
8701
8701
  return /* @__PURE__ */ l(jt, { container: !0, pt: 16, px: 24, spacing: 24, children: [
8702
8702
  /* @__PURE__ */ t(jt, { md: !0, sm: 12, width: "100%", children: /* @__PURE__ */ l(y, { gap: 24, children: [
8703
8703
  /* @__PURE__ */ t(
8704
- $r,
8704
+ Fr,
8705
8705
  {
8706
8706
  expected: E,
8707
8707
  missed: v,
@@ -8711,7 +8711,7 @@ const mc = ({ transaction: e }) => {
8711
8711
  }
8712
8712
  ),
8713
8713
  /* @__PURE__ */ t(
8714
- $r,
8714
+ Fr,
8715
8715
  {
8716
8716
  expected: x,
8717
8717
  paid: R,
@@ -8872,8 +8872,8 @@ const mc = ({ transaction: e }) => {
8872
8872
  }, o4 = A(Mg);
8873
8873
  class kg {
8874
8874
  globalStore;
8875
- api = new fr("/", "");
8876
- cashflowApi = new zr("/", "");
8875
+ api = new br("/", "");
8876
+ cashflowApi = new Yr("/", "");
8877
8877
  cashflowSequences = [];
8878
8878
  cashflowEvents = [];
8879
8879
  projectedEvents = [];
@@ -8882,7 +8882,7 @@ class kg {
8882
8882
  selectedDay;
8883
8883
  isDataLoaded = !1;
8884
8884
  constructor(n) {
8885
- this.globalStore = n, this.api = new fr(n.endpoint, n.sessionToken), this.cashflowApi = new zr(n.endpoint, n.sessionToken), $e(this);
8885
+ this.globalStore = n, this.api = new br(n.endpoint, n.sessionToken), this.cashflowApi = new Yr(n.endpoint, n.sessionToken), $e(this);
8886
8886
  }
8887
8887
  get activities() {
8888
8888
  return pg(
@@ -9072,7 +9072,7 @@ const Gg = {
9072
9072
  gridRow: 1,
9073
9073
  gridColumn: 1,
9074
9074
  zIndex: 2
9075
- }, Bg = ({ size: e = 20 }) => /* @__PURE__ */ t(Zt, { size: e, children: /* @__PURE__ */ t(Aa, { color: "error", sx: { fontSize: e, ...Gg } }) }), Ho = (e) => e && (e.account_type === de.CREDIT_CARD || e.account_type === de.LOAN || e.account_type === de.MORTGAGE || e.account_type === de.LINE_OF_CREDIT || e.account_type === de.CHECKING_LINE_OF_CREDIT), Pg = (e) => e.is_manual || !e.guid, Hg = (e) => e.account_type === de.LINE_OF_CREDIT || e.account_type === de.CREDIT_CARD || e.account_type === de.CHECKING_LINE_OF_CREDIT, $g = (e) => e.account_type === de.SAVINGS || e.account_type === de.CHECKING || e.account_type === de.LINE_OF_CREDIT || e.account_type === de.CREDIT_CARD || e.account_type === de.LOAN || e.account_type === de.MORTGAGE, Fg = (e) => e.account_type === de.LOAN || e.account_type === de.MORTGAGE, Wg = (e, n) => {
9075
+ }, Bg = ({ size: e = 20 }) => /* @__PURE__ */ t(Zt, { size: e, children: /* @__PURE__ */ t(Aa, { color: "error", sx: { fontSize: e, ...Gg } }) }), $o = (e) => e && (e.account_type === de.CREDIT_CARD || e.account_type === de.LOAN || e.account_type === de.MORTGAGE || e.account_type === de.LINE_OF_CREDIT || e.account_type === de.CHECKING_LINE_OF_CREDIT), Pg = (e) => e.is_manual || !e.guid, Hg = (e) => e.account_type === de.LINE_OF_CREDIT || e.account_type === de.CREDIT_CARD || e.account_type === de.CHECKING_LINE_OF_CREDIT, $g = (e) => e.account_type === de.SAVINGS || e.account_type === de.CHECKING || e.account_type === de.LINE_OF_CREDIT || e.account_type === de.CREDIT_CARD || e.account_type === de.LOAN || e.account_type === de.MORTGAGE, Fg = (e) => e.account_type === de.LOAN || e.account_type === de.MORTGAGE, Wg = (e, n) => {
9076
9076
  const i = [
9077
9077
  {
9078
9078
  event: "account_details_click_account_name",
@@ -9095,7 +9095,7 @@ const Gg = {
9095
9095
  const a = Object.keys(de).filter((o) => Number(o)).map((o) => ({
9096
9096
  label: n.account_types[o],
9097
9097
  value: Number(o),
9098
- icon: /* @__PURE__ */ t(P, { name: Us[o] })
9098
+ icon: /* @__PURE__ */ t(P, { name: Vs[o] })
9099
9099
  }));
9100
9100
  i.push({
9101
9101
  label: n.account_type,
@@ -9107,7 +9107,7 @@ const Gg = {
9107
9107
  });
9108
9108
  }
9109
9109
  if (e.account_type === de.PROPERTY) {
9110
- const a = Object.keys(Hs).filter((o) => Number(o)).map((o) => ({
9110
+ const a = Object.keys($s).filter((o) => Number(o)).map((o) => ({
9111
9111
  label: n.property_types[o],
9112
9112
  value: Number(o),
9113
9113
  icon: /* @__PURE__ */ t(P, { name: ru[o] })
@@ -9133,7 +9133,7 @@ const Gg = {
9133
9133
  valueFormatter: (r) => ro(r) ? Ui(r / 100) : r
9134
9134
  });
9135
9135
  }
9136
- return Ho(e) && (i.push({
9136
+ return $o(e) && (i.push({
9137
9137
  label: n.minimum_payment,
9138
9138
  name: "minimum_payment",
9139
9139
  placeholder: T(n.enter_value, n.minimum_payment),
@@ -9154,7 +9154,7 @@ const Gg = {
9154
9154
  type: wt.Date,
9155
9155
  valueFormatter: (a) => T(
9156
9156
  n.day_of_every_month,
9157
- Zs(a <= 31 ? a : new Date(a).getDate())
9157
+ Qs(a <= 31 ? a : new Date(a).getDate())
9158
9158
  )
9159
9159
  })), Hg(e) && i.push({
9160
9160
  label: n.credit_limit,
@@ -9273,7 +9273,7 @@ const Gg = {
9273
9273
  borderBottomRightRadius: "3px",
9274
9274
  minHeight: "auto"
9275
9275
  },
9276
- children: /* @__PURE__ */ t(Do, { remaining: e })
9276
+ children: /* @__PURE__ */ t(Ro, { remaining: e })
9277
9277
  }
9278
9278
  );
9279
9279
  var Mi = /* @__PURE__ */ ((e) => (e.EXPENSE = "expense", e.INCOME = "income", e))(Mi || {});
@@ -9294,7 +9294,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(X, { children: [
9294
9294
  )
9295
9295
  ] }),
9296
9296
  /* @__PURE__ */ t(k, {})
9297
- ] }), Fr = A(Kg), zg = ({ total: e, type: n }) => {
9297
+ ] }), Wr = A(Kg), zg = ({ total: e, type: n }) => {
9298
9298
  const { cashflow: i } = I();
9299
9299
  return /* @__PURE__ */ l(X, { children: [
9300
9300
  /* @__PURE__ */ l(
@@ -9320,7 +9320,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(X, { children: [
9320
9320
  ),
9321
9321
  /* @__PURE__ */ t(k, {})
9322
9322
  ] });
9323
- }, Wr = A(zg), Ur = (e, n) => (i) => i.accountGuid === e.guid && (yo(i.expectedDate) || Jt(i.expectedDate, n.start)) && we(i.expectedDate, n.end), Yg = () => {
9323
+ }, Ur = A(zg), Vr = (e, n) => (i) => i.accountGuid === e.guid && (yo(i.expectedDate) || Jt(i.expectedDate, n.start)) && we(i.expectedDate, n.end), Yg = () => {
9324
9324
  const { availableWidth: e } = Vn(), { cashflow: n } = I(), { upcomingExpenses: i, upcomingIncome: a } = at(), { dateRange: o, selectedCashAccounts: r } = gi();
9325
9325
  return /* @__PURE__ */ l(y, { children: [
9326
9326
  /* @__PURE__ */ l(y, { direction: e < 400 ? "column" : "row", justifyContent: "space-between", children: [
@@ -9333,8 +9333,8 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(X, { children: [
9333
9333
  ] })
9334
9334
  ] }),
9335
9335
  /* @__PURE__ */ t(y, { children: r.map((s) => {
9336
- const c = a.filter(Ur(s, o)).sort((h, m) => Me(h.expectedDate) - Me(m.expectedDate)), d = i.filter(
9337
- Ur(s, o)
9336
+ const c = a.filter(Vr(s, o)).sort((h, m) => Me(h.expectedDate) - Me(m.expectedDate)), d = i.filter(
9337
+ Vr(s, o)
9338
9338
  ), _ = c.reduce(
9339
9339
  (h, m) => h + m.amount,
9340
9340
  0
@@ -9367,17 +9367,17 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(X, { children: [
9367
9367
  c.length > 0 && /* @__PURE__ */ t(Y, { children: /* @__PURE__ */ t(
9368
9368
  ie,
9369
9369
  {
9370
- subheader: /* @__PURE__ */ t(Wr, { total: _, type: Mi.INCOME }),
9370
+ subheader: /* @__PURE__ */ t(Ur, { total: _, type: Mi.INCOME }),
9371
9371
  sx: { width: "100%" },
9372
- children: c.map((h) => /* @__PURE__ */ t(Fr, { activity: h }, h.sequenceGuid))
9372
+ children: c.map((h) => /* @__PURE__ */ t(Wr, { activity: h }, h.sequenceGuid))
9373
9373
  }
9374
9374
  ) }),
9375
9375
  d.length > 0 && /* @__PURE__ */ t(Y, { children: /* @__PURE__ */ t(
9376
9376
  ie,
9377
9377
  {
9378
- subheader: /* @__PURE__ */ t(Wr, { total: u, type: Mi.EXPENSE }),
9378
+ subheader: /* @__PURE__ */ t(Ur, { total: u, type: Mi.EXPENSE }),
9379
9379
  sx: { width: "100%" },
9380
- children: d.map((h) => /* @__PURE__ */ t(Fr, { activity: h }, h.scheduledPaymentGuid))
9380
+ children: d.map((h) => /* @__PURE__ */ t(Wr, { activity: h }, h.scheduledPaymentGuid))
9381
9381
  }
9382
9382
  ) }),
9383
9383
  /* @__PURE__ */ t(
@@ -9610,7 +9610,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(X, { children: [
9610
9610
  px: 16,
9611
9611
  py: 12,
9612
9612
  sx: { borderBottomLeftRadius: "4px", borderBottomRightRadius: "4px" },
9613
- children: /* @__PURE__ */ t(Do, { remaining: _.remaining })
9613
+ children: /* @__PURE__ */ t(Ro, { remaining: _.remaining })
9614
9614
  }
9615
9615
  )
9616
9616
  ] }) })
@@ -9686,12 +9686,12 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(X, { children: [
9686
9686
  n && /* @__PURE__ */ t(je, { amount: e, component: "h2", symbol: o, variant: "Small" })
9687
9687
  ]
9688
9688
  }
9689
- ), Vr = (e, n) => (i) => i.accountGuid && e.includes(i.accountGuid) && (yo(i.expectedDate) || Jt(i.expectedDate, n.start)) && we(i.expectedDate, n.end), Jg = () => {
9689
+ ), Kr = (e, n) => (i) => i.accountGuid && e.includes(i.accountGuid) && (yo(i.expectedDate) || Jt(i.expectedDate, n.start)) && we(i.expectedDate, n.end), Jg = () => {
9690
9690
  const [e, n] = g.useState(!1), { availableWidth: i } = Vn(), { cashflow: a } = I(), { upcomingExpenses: o, upcomingIncome: r } = at(), { selectedAccountGuids: s } = ue(), { dateRange: c, selectedCashAccounts: d } = gi(), { userProfile: _ } = an(), u = g.useMemo(
9691
- () => o.filter(Vr(s, c)),
9691
+ () => o.filter(Kr(s, c)),
9692
9692
  [c, s, o]
9693
9693
  ), h = g.useMemo(
9694
- () => r.filter(Vr(s, c)),
9694
+ () => r.filter(Kr(s, c)),
9695
9695
  [c, s, r]
9696
9696
  ), m = g.useMemo(
9697
9697
  () => d.reduce((v, N) => v + (N?.balance || 0), 0),
@@ -9798,7 +9798,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(X, { children: [
9798
9798
  onClose: () => n(!1),
9799
9799
  shouldShowHeaderBorders: !1,
9800
9800
  title: a.manage_income,
9801
- children: /* @__PURE__ */ t(Po, {})
9801
+ children: /* @__PURE__ */ t(Ho, {})
9802
9802
  }
9803
9803
  )
9804
9804
  ] });
@@ -9872,9 +9872,9 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(X, { children: [
9872
9872
  /* @__PURE__ */ t(te, { onClick: n, variant: "outlined", children: i.skip_button })
9873
9873
  ] })
9874
9874
  ] });
9875
- }, nm = A(tm), Kr = "https://content.moneydesktop.com/storage/MD_Assets/md/cashflow", Rc = {
9876
- CASHFLOW_ONBOARDING: `${Kr}/cashflow-onboarding.png`,
9877
- CASHFLOW_LOADING_ANIMATION: `${Kr}/loading-animation.gif`
9875
+ }, nm = A(tm), zr = "https://content.moneydesktop.com/storage/MD_Assets/md/cashflow", Rc = {
9876
+ CASHFLOW_ONBOARDING: `${zr}/cashflow-onboarding.png`,
9877
+ CASHFLOW_LOADING_ANIMATION: `${zr}/loading-animation.gif`
9878
9878
  }, im = () => {
9879
9879
  const { cashflow: e } = I();
9880
9880
  return /* @__PURE__ */ l(g.Fragment, { children: [
@@ -9983,7 +9983,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(X, { children: [
9983
9983
  bgcolor: "background.paper",
9984
9984
  onSearch: (Q) => h({
9985
9985
  ...u,
9986
- custom: (Le) => Q ? Bo(Le, Q) : jn(Le)
9986
+ custom: (Le) => Q ? Po(Le, Q) : jn(Le)
9987
9987
  }),
9988
9988
  onSelected: (Q) => {
9989
9989
  U(Q), b(!1);
@@ -10128,7 +10128,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(X, { children: [
10128
10128
  }
10129
10129
  );
10130
10130
  }, r4 = A(cm);
10131
- class zr {
10131
+ class Yr {
10132
10132
  fetchInstance;
10133
10133
  constructor(n, i) {
10134
10134
  this.fetchInstance = new ct(n, i);
@@ -10660,7 +10660,7 @@ const fn = () => {
10660
10660
  if (!g.useContext(qn))
10661
10661
  throw new Error("useCategoryUiStore() must be used within the GlobalDataContext");
10662
10662
  return ve().uiStore;
10663
- }, ka = (e) => e.top_level_category_guid === w.INCOME || e.category_guid === w.INCOME, pm = (e) => !ka(e) && !Mc(e), Lc = (e) => _r.includes(e.top_level_category_guid) || _r.includes(e.category_guid), Mc = (e) => e.top_level_category_guid === w.TRANSFER || e.category_guid === w.TRANSFER, Cm = (e) => !ka(e) && !Lc(e) && !Mc(e), fm = (e) => e.filter((n) => n.category_guid === n.top_level_category_guid), $o = (e, n) => {
10663
+ }, ka = (e) => e.top_level_category_guid === w.INCOME || e.category_guid === w.INCOME, pm = (e) => !ka(e) && !Mc(e), Lc = (e) => hr.includes(e.top_level_category_guid) || hr.includes(e.category_guid), Mc = (e) => e.top_level_category_guid === w.TRANSFER || e.category_guid === w.TRANSFER, Cm = (e) => !ka(e) && !Lc(e) && !Mc(e), fm = (e) => e.filter((n) => n.category_guid === n.top_level_category_guid), Fo = (e, n) => {
10664
10664
  const i = [];
10665
10665
  let a = Ve(qt(/* @__PURE__ */ new Date(), 5));
10666
10666
  const o = /* @__PURE__ */ new Date();
@@ -10672,13 +10672,13 @@ const fn = () => {
10672
10672
  return i;
10673
10673
  }, bm = (e, n) => {
10674
10674
  const i = e.filter(ka);
10675
- return $o(i).map((a) => ({ ...a, y: Math.abs(a.y) }));
10675
+ return Fo(i).map((a) => ({ ...a, y: Math.abs(a.y) }));
10676
10676
  }, ym = (e, n) => {
10677
10677
  const i = e.filter(Lc);
10678
- return $o(i).map((a) => ({ ...a, y: Math.abs(a.y) }));
10678
+ return Fo(i).map((a) => ({ ...a, y: Math.abs(a.y) }));
10679
10679
  }, Em = (e, n) => {
10680
10680
  const i = e.filter(Cm);
10681
- return $o(i);
10681
+ return Fo(i);
10682
10682
  }, Sm = (e) => {
10683
10683
  const n = [], i = e.filter(
10684
10684
  (r) => r.top_level_category_guid !== w.INCOME && r.top_level_category_guid !== w.TRANSFER && r.total > 0
@@ -10782,7 +10782,7 @@ const fn = () => {
10782
10782
  ] }),
10783
10783
  u && /* @__PURE__ */ t(y, { children: e || /* @__PURE__ */ t(wm, {}) })
10784
10784
  ] });
10785
- }, Fo = A(Nm), Dm = "#FF7B08";
10785
+ }, Wo = A(Nm), Dm = "#FF7B08";
10786
10786
  function Rm(e, n) {
10787
10787
  const [i, a, o] = e.replace(/^#/, "").match(/.{1,2}/g).map((s) => parseInt(s, 16)), r = [
10788
10788
  Math.max(0, Math.min(255, Math.round(i * n))),
@@ -10846,7 +10846,7 @@ const kc = ({
10846
10846
  });
10847
10847
  const S = (x) => E.findIndex((R) => R?.guid === x);
10848
10848
  return /* @__PURE__ */ t(
10849
- ws,
10849
+ Ns,
10850
10850
  {
10851
10851
  axisHighlight: { x: "none" },
10852
10852
  disableLineItemHighlight: !0,
@@ -11313,7 +11313,7 @@ const kc = ({
11313
11313
  sx: { ...i },
11314
11314
  title: a.details_title,
11315
11315
  children: /* @__PURE__ */ l(y, { bgcolor: "background.default", children: [
11316
- /* @__PURE__ */ t(Fo, { customDetailsChart: s }),
11316
+ /* @__PURE__ */ t(Wo, { customDetailsChart: s }),
11317
11317
  /* @__PURE__ */ t(Vm, {})
11318
11318
  ] })
11319
11319
  }
@@ -11635,7 +11635,7 @@ const Kt = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
11635
11635
  r(_), i($.DEBTS_CLICK_PRIORITY, { debts_priority: _ });
11636
11636
  };
11637
11637
  return /* @__PURE__ */ t(
11638
- vs,
11638
+ ws,
11639
11639
  {
11640
11640
  anchorEl: e,
11641
11641
  anchorOrigin: {
@@ -11833,17 +11833,17 @@ const Kt = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
11833
11833
  };
11834
11834
  function lp(e, n) {
11835
11835
  const i = e.filter((r) => r.account_type === de.CHECKING_LINE_OF_CREDIT ? Number(r.balance) <= 0 : r.is_excluded_from_debts !== !0), a = n.filter((r) => i.some((s) => s.guid === r.account_guid)).map(
11836
- (r) => Yr(i.find((s) => s.guid === r.account_guid), r)
11837
- ), o = i.filter((r) => !a.some((s) => s.account.guid === r.guid)).map((r) => Yr(r));
11836
+ (r) => jr(i.find((s) => s.guid === r.account_guid), r)
11837
+ ), o = i.filter((r) => !a.some((s) => s.account.guid === r.guid)).map((r) => jr(r));
11838
11838
  return [...a, ...o];
11839
11839
  }
11840
- function Yr(e, n) {
11840
+ function jr(e, n) {
11841
11841
  const i = { account: e, goal: n, guid: e.guid };
11842
11842
  if (n) {
11843
- const a = n.payment_due_at ? sr(Ni(n.payment_due_at)) : 1, o = cr(/* @__PURE__ */ new Date()).setDate(a);
11843
+ const a = n.payment_due_at ? cr(Ni(n.payment_due_at)) : 1, o = lr(/* @__PURE__ */ new Date()).setDate(a);
11844
11844
  i.balance = Math.abs(n.amount - n.current_amount), i.interest_rate = n.interest_rate, i.is_paid_off = n.is_complete, i.monthly_payment = n.monthly_payment, i.name = n.name, i.original_balance = n.initial_amount, i.payment_due_date = o;
11845
11845
  } else {
11846
- const a = e.payment_due_at ? sr(Ni(e.payment_due_at)) : 1, o = cr(/* @__PURE__ */ new Date()).setDate(a), r = Math.abs(e.available_balance ?? e.balance ?? 0), s = e.minimum_payment ?? void 0, c = e.interest_rate ?? e.apr ?? e.apy;
11846
+ const a = e.payment_due_at ? cr(Ni(e.payment_due_at)) : 1, o = lr(/* @__PURE__ */ new Date()).setDate(a), r = Math.abs(e.available_balance ?? e.balance ?? 0), s = e.minimum_payment ?? void 0, c = e.interest_rate ?? e.apr ?? e.apy;
11847
11847
  i.balance = Math.abs(r), i.interest_rate = c, i.is_paid_off = r === 0, i.monthly_payment = s, i.name = e?.name ?? cp.unnamed_label, i.original_balance = e.original_balance, i.payment_due_date = o;
11848
11848
  }
11849
11849
  return i.is_impossible = !1, i.priority = void 0, i.projected_payoff_date = void 0, i;
@@ -11880,7 +11880,7 @@ class up {
11880
11880
  return this.debts.map((i) => Number(i.monthly_payment)).filter((i) => !isNaN(i)).reduce((i, a) => i + a, 0);
11881
11881
  }
11882
11882
  }
11883
- class jr {
11883
+ class Xr {
11884
11884
  fetchInstance;
11885
11885
  constructor(n, i) {
11886
11886
  this.fetchInstance = new ct(n, i);
@@ -12012,7 +12012,7 @@ const gp = (e, n) => {
12012
12012
  }
12013
12013
  ];
12014
12014
  let f = /* @__PURE__ */ t(od, {});
12015
- return e.track_type === V.DEBT_TRACK ? f = /* @__PURE__ */ t(rd, {}) : e.track_type === V.RETIREMENT_TRACK && (f = /* @__PURE__ */ t(sd, {})), /* @__PURE__ */ t(Pt, { elevation: 2, sx: { borderRadius: 2 }, children: /* @__PURE__ */ l(Gs, { disabled: !i, onClick: i, children: [
12015
+ return e.track_type === V.DEBT_TRACK ? f = /* @__PURE__ */ t(rd, {}) : e.track_type === V.RETIREMENT_TRACK && (f = /* @__PURE__ */ t(sd, {})), /* @__PURE__ */ t(Pt, { elevation: 2, sx: { borderRadius: 2 }, children: /* @__PURE__ */ l(Bs, { disabled: !i, onClick: i, children: [
12016
12016
  /* @__PURE__ */ t(
12017
12017
  Nn,
12018
12018
  {
@@ -12324,7 +12324,7 @@ const gp = (e, n) => {
12324
12324
  children: _
12325
12325
  }
12326
12326
  ) }),
12327
- d.map((u) => /* @__PURE__ */ t(Pt, { elevation: 2, sx: { borderRadius: 2 }, children: /* @__PURE__ */ t(Gs, { onClick: () => r(u), children: /* @__PURE__ */ t(Ht, { sx: { ":last-child": { pb: 16 } }, children: /* @__PURE__ */ l(y, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
12327
+ d.map((u) => /* @__PURE__ */ t(Pt, { elevation: 2, sx: { borderRadius: 2 }, children: /* @__PURE__ */ t(Bs, { onClick: () => r(u), children: /* @__PURE__ */ t(Ht, { sx: { ":last-child": { pb: 16 } }, children: /* @__PURE__ */ l(y, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
12328
12328
  /* @__PURE__ */ l(y, { alignItems: "center", direction: "row", gap: 6, children: [
12329
12329
  /* @__PURE__ */ t(P, { color: "success", fill: !0, name: "check_circle", size: 20 }),
12330
12330
  /* @__PURE__ */ t(p, { color: "text.secondary", variant: "Body", children: u.name })
@@ -12485,7 +12485,7 @@ const gp = (e, n) => {
12485
12485
  /* @__PURE__ */ t(xt, {})
12486
12486
  ] }),
12487
12487
  /* @__PURE__ */ t(oe, { isOpen: a, onClose: () => o(!1), title: n.account_details, children: /* @__PURE__ */ l(y, { children: [
12488
- /* @__PURE__ */ t(Fo, {}),
12488
+ /* @__PURE__ */ t(Wo, {}),
12489
12489
  /* @__PURE__ */ t(el, {})
12490
12490
  ] }) })
12491
12491
  ] });
@@ -12531,7 +12531,7 @@ const gp = (e, n) => {
12531
12531
  return /* @__PURE__ */ l(y, { children: [
12532
12532
  d ? /* @__PURE__ */ t(Y, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ l(he, { onClick: () => u(!0), children: [
12533
12533
  /* @__PURE__ */ t(se, { children: /* @__PURE__ */ l(y, { alignItems: "center", color: "action.active", direction: "row", gap: 8, children: [
12534
- /* @__PURE__ */ t(Ds, { filled: !0 }),
12534
+ /* @__PURE__ */ t(Rs, { filled: !0 }),
12535
12535
  o.details_add_account
12536
12536
  ] }) }),
12537
12537
  /* @__PURE__ */ t(xt, { color: "primary" })
@@ -12715,7 +12715,7 @@ const gp = (e, n) => {
12715
12715
  ] }, f.guid)),
12716
12716
  /* @__PURE__ */ t(Y, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ l(he, { onClick: () => _(!0), children: [
12717
12717
  /* @__PURE__ */ t(se, { children: /* @__PURE__ */ l(y, { alignItems: "center", color: "action.active", direction: "row", gap: 8, children: [
12718
- /* @__PURE__ */ t(Ds, { filled: !0 }),
12718
+ /* @__PURE__ */ t(Rs, { filled: !0 }),
12719
12719
  n.details_add_account
12720
12720
  ] }) }),
12721
12721
  /* @__PURE__ */ t(xt, { color: "primary" })
@@ -12960,7 +12960,7 @@ const gp = (e, n) => {
12960
12960
  });
12961
12961
  class Rp {
12962
12962
  globalStore;
12963
- api = new jr("/", "");
12963
+ api = new Xr("/", "");
12964
12964
  alert = "";
12965
12965
  goals = [];
12966
12966
  retirementGoalAccounts = [];
@@ -12969,7 +12969,7 @@ class Rp {
12969
12969
  monthlyCashFlowProfile = void 0;
12970
12970
  goalsLoaded = !1;
12971
12971
  constructor(n) {
12972
- this.globalStore = n, this.api = new jr(n.endpoint, n.sessionToken), $e(this);
12972
+ this.globalStore = n, this.api = new Xr(n.endpoint, n.sessionToken), $e(this);
12973
12973
  }
12974
12974
  get orderedGoals() {
12975
12975
  return this.goals.slice().sort((n, i) => n.position - i.position);
@@ -13123,7 +13123,7 @@ class Rp {
13123
13123
  }
13124
13124
  };
13125
13125
  }
13126
- class Xr {
13126
+ class qr {
13127
13127
  fetchInstance;
13128
13128
  constructor(n, i) {
13129
13129
  this.fetchInstance = new ct(n, i);
@@ -13353,12 +13353,12 @@ const Op = [
13353
13353
  };
13354
13354
  class kp {
13355
13355
  alert = { message: "", severity: void 0 };
13356
- api = new Xr("/", "");
13356
+ api = new qr("/", "");
13357
13357
  appConfig;
13358
13358
  globalStore;
13359
13359
  isLoading = !1;
13360
13360
  constructor(n) {
13361
- this.globalStore = n, this.api = new Xr(n.endpoint, n.sessionToken), $e(this);
13361
+ this.globalStore = n, this.api = new qr(n.endpoint, n.sessionToken), $e(this);
13362
13362
  }
13363
13363
  createSupportTicket = async (n) => {
13364
13364
  try {
@@ -13387,7 +13387,7 @@ class kp {
13387
13387
  );
13388
13388
  }
13389
13389
  }
13390
- class qr {
13390
+ class Zr {
13391
13391
  fetchInstance;
13392
13392
  constructor(n, i) {
13393
13393
  this.fetchInstance = new ct(n, i);
@@ -13407,7 +13407,7 @@ const Gp = {
13407
13407
  SMALL_VALUE: 7,
13408
13408
  SMALL_CORE: 8,
13409
13409
  SMALL_GROWTH: 9
13410
- }, Wo = {
13410
+ }, Uo = {
13411
13411
  0: "UNKNOWN",
13412
13412
  1: "LARGE_VALUE",
13413
13413
  2: "LARGE_CORE",
@@ -13429,7 +13429,7 @@ const Gp = {
13429
13429
  LOW_LIMITED: 7,
13430
13430
  LOW_MODERATE: 8,
13431
13431
  LOW_EXTENSIVE: 9
13432
- }, Uo = {
13432
+ }, Vo = {
13433
13433
  0: "UNKNOWN",
13434
13434
  1: "HIGH_LIMITED",
13435
13435
  2: "HIGH_MODERATE",
@@ -13445,8 +13445,8 @@ const Gp = {
13445
13445
  for (let o = 0; o < i.length; o += n)
13446
13446
  a.push(i.slice(o, o + n).map((r) => e[r]));
13447
13447
  return a;
13448
- }, Pp = Wc(Uo), Hp = Wc(Wo), $p = (e) => {
13449
- const n = Zr(e, zc), i = Zr(e, Vc), a = (r, s) => {
13448
+ }, Pp = Wc(Vo), Hp = Wc(Uo), $p = (e) => {
13449
+ const n = Qr(e, zc), i = Qr(e, Vc), a = (r, s) => {
13450
13450
  const c = r.reduce((_, u) => _ + jc(u), 0), d = r.reduce((_, u) => {
13451
13451
  const h = s(u);
13452
13452
  return Object.keys(h).forEach((m) => _[m] = (_[m] || 0) + h[m]), _;
@@ -13472,12 +13472,12 @@ const Gp = {
13472
13472
  };
13473
13473
  }, Wp = (e, n) => Object.fromEntries(
13474
13474
  Object.entries(e).map(([i, a]) => [i, a * n / 100])
13475
- ), Uc = (e) => Yc(e, Vc, Uo), Vc = (e) => {
13475
+ ), Uc = (e) => Yc(e, Vc, Vo), Vc = (e) => {
13476
13476
  const n = e.fixed_income_classification;
13477
13477
  return {
13478
- [Uo[n]]: 100
13478
+ [Vo[n]]: 100
13479
13479
  };
13480
- }, Kc = (e) => Yc(e, zc, Wo), zc = (e) => {
13480
+ }, Kc = (e) => Yc(e, zc, Uo), zc = (e) => {
13481
13481
  const {
13482
13482
  large_core_weight: n,
13483
13483
  large_growth_weight: i,
@@ -13502,10 +13502,10 @@ const Gp = {
13502
13502
  SMALL_VALUE: _ ?? 0,
13503
13503
  UNKNOWN: u ?? 0
13504
13504
  };
13505
- return Vo(m) === 0 && h !== void 0 ? { [Wo[h]]: 100 } : m;
13505
+ return Ko(m) === 0 && h !== void 0 ? { [Uo[h]]: 100 } : m;
13506
13506
  }, Yc = (e, n, i) => {
13507
13507
  const a = n(e), o = jc(e), r = Wp(a, o);
13508
- if (Vo(r) === 0) {
13508
+ if (Ko(r) === 0) {
13509
13509
  const s = String(
13510
13510
  e.equity_classification ?? e.fixed_income_classification
13511
13511
  );
@@ -13514,21 +13514,21 @@ const Gp = {
13514
13514
  return { [i[s]]: o };
13515
13515
  }
13516
13516
  return r;
13517
- }, Up = (e) => e.split("_").map((n) => n.charAt(0).toUpperCase() + n.slice(1).toLowerCase()).join(" "), Vp = (e) => e >= 1 ? `${no(e).format("0")}%` : "< 1%", jc = (e) => e.calculated_market_value ?? e.market_value, Zr = (e, n) => e.filter((i) => {
13518
- const a = n(i), o = Vo(a);
13517
+ }, Up = (e) => e.split("_").map((n) => n.charAt(0).toUpperCase() + n.slice(1).toLowerCase()).join(" "), Vp = (e) => e >= 1 ? `${no(e).format("0")}%` : "< 1%", jc = (e) => e.calculated_market_value ?? e.market_value, Qr = (e, n) => e.filter((i) => {
13518
+ const a = n(i), o = Ko(a);
13519
13519
  return o > 80 && o < 120;
13520
13520
  }), Kp = (e, n) => {
13521
13521
  const i = n === Hn.Stocks ? Hp : Pp, a = e[n];
13522
13522
  return !a || !a || Object.keys(a).length === 0 ? i.map((o) => o.map(() => "0%")) : i.map((o) => o.map((r) => Vp(a[r] ?? 0)));
13523
- }, Vo = (e) => Object.values(e).reduce((n, i) => n + i, 0);
13523
+ }, Ko = (e) => Object.values(e).reduce((n, i) => n + i, 0);
13524
13524
  class zp {
13525
13525
  analysisType = Hn.Stocks;
13526
- api = new qr("/", "");
13526
+ api = new Zr("/", "");
13527
13527
  holdings = [];
13528
13528
  holdingsLoaded = !1;
13529
13529
  globalStore;
13530
13530
  constructor(n) {
13531
- this.globalStore = n, this.api = new qr(n.endpoint, n.sessionToken), $e(this);
13531
+ this.globalStore = n, this.api = new Zr(n.endpoint, n.sessionToken), $e(this);
13532
13532
  }
13533
13533
  get analysisChartData() {
13534
13534
  return Kp($p(this.visibleHoldings), this.analysisType);
@@ -13569,7 +13569,7 @@ class zp {
13569
13569
  }
13570
13570
  };
13571
13571
  }
13572
- const Yp = /^[ a-zA-ZÀ-ÿ0-9]+$/, jp = 50, Qr = 65, Xp = ({
13572
+ const Yp = /^[ a-zA-ZÀ-ÿ0-9]+$/, jp = 50, Jr = 65, Xp = ({
13573
13573
  height: e = "calc(100dvh - 120px)",
13574
13574
  onSelect: n
13575
13575
  }) => {
@@ -13581,10 +13581,10 @@ const Yp = /^[ a-zA-ZÀ-ÿ0-9]+$/, jp = 50, Qr = 65, Xp = ({
13581
13581
  n(C);
13582
13582
  }, u = async (C) => {
13583
13583
  (!C || Yp.test(C)) && C.length <= jp && (d(C), await o(C));
13584
- }, h = g.useRef(null), m = Os({
13584
+ }, h = g.useRef(null), m = Ls({
13585
13585
  count: a.length,
13586
13586
  getScrollElement: () => h.current,
13587
- estimateSize: () => Qr,
13587
+ estimateSize: () => Jr,
13588
13588
  overscan: 5
13589
13589
  });
13590
13590
  return g.useEffect(() => m.measure(), [a]), s ? /* @__PURE__ */ l(y, { className: "mx-mrt-lookup", children: [
@@ -13606,7 +13606,7 @@ const Yp = /^[ a-zA-ZÀ-ÿ0-9]+$/, jp = 50, Qr = 65, Xp = ({
13606
13606
  return /* @__PURE__ */ l(
13607
13607
  L,
13608
13608
  {
13609
- height: Qr,
13609
+ height: Jr,
13610
13610
  position: "absolute",
13611
13611
  sx: { transform: `translateY(${C.start}px)` },
13612
13612
  width: "100%",
@@ -13626,7 +13626,7 @@ const Yp = /^[ a-zA-ZÀ-ÿ0-9]+$/, jp = 50, Qr = 65, Xp = ({
13626
13626
  ] }) }) })
13627
13627
  ] }) : /* @__PURE__ */ t(ge, {});
13628
13628
  }, d4 = A(Xp);
13629
- class Jr {
13629
+ class es {
13630
13630
  fetchInstance;
13631
13631
  constructor(n, i) {
13632
13632
  this.fetchInstance = new ct(n, i);
@@ -13639,12 +13639,12 @@ class Jr {
13639
13639
  }
13640
13640
  class qp {
13641
13641
  globalStore;
13642
- api = new Jr("/", "");
13642
+ api = new es("/", "");
13643
13643
  merchant = null;
13644
13644
  merchants = [];
13645
13645
  isLoading = !1;
13646
13646
  constructor(n) {
13647
- this.globalStore = n, this.api = new Jr(n.endpoint, n.sessionToken), $e(this);
13647
+ this.globalStore = n, this.api = new es(n.endpoint, n.sessionToken), $e(this);
13648
13648
  }
13649
13649
  loadMerchants = async (n = "") => {
13650
13650
  this.isLoading = !0;
@@ -13661,7 +13661,7 @@ class qp {
13661
13661
  const Xc = 13, Zp = (e, n) => e.filter((i) => {
13662
13662
  const { is_closed: a, is_deleted: o, is_hidden: r, is_manual: s } = i;
13663
13663
  return a || o || r ? !1 : s || !i.guid ? !0 : n.some((c) => e.some((d) => c.guid === d.member_guid));
13664
- }), Qp = (e, n) => [...e, ...n], es = (e) => {
13664
+ }), Qp = (e, n) => [...e, ...n], ts = (e) => {
13665
13665
  if (e && e.length > 0)
13666
13666
  return e[e.length - 1];
13667
13667
  }, Jp = (e, n) => e.year_month - n.year_month, e1 = () => Array.from({ length: Xc }, (e, n) => Math.floor(Ve(qt(/* @__PURE__ */ new Date(), n)).getTime() / 1e3)).sort(), t1 = (e, n, i) => !e.length || !n.length ? [] : e1().reduceRight((o, r) => {
@@ -13679,7 +13679,7 @@ const Xc = 13, Zp = (e, n) => e.filter((i) => {
13679
13679
  if (!h && o.length === 0)
13680
13680
  return {
13681
13681
  ...m,
13682
- value: Ho(u) ? -(u.balance ?? 0) : u.balance ?? 0
13682
+ value: $o(u) ? -(u.balance ?? 0) : u.balance ?? 0
13683
13683
  };
13684
13684
  if (!h) {
13685
13685
  const C = o[0].accounts.find((f) => f.guid === u.guid);
@@ -13718,7 +13718,7 @@ const Xc = 13, Zp = (e, n) => e.filter((i) => {
13718
13718
  const n = [], i = [];
13719
13719
  let a = 0, o = 0;
13720
13720
  return e.forEach((r) => {
13721
- if (Ho(r)) {
13721
+ if ($o(r)) {
13722
13722
  const s = r.balance ?? 0;
13723
13723
  i.push({ accountName: r.name, accountType: r.account_type, balance: s }), o += s;
13724
13724
  } else {
@@ -13726,13 +13726,13 @@ const Xc = 13, Zp = (e, n) => e.filter((i) => {
13726
13726
  n.push({ accountName: r.name, accountType: r.account_type, balance: s }), a += s;
13727
13727
  }
13728
13728
  }), { assets: n, liabilities: i, totalAssets: a, totalLiabilities: o };
13729
- }, ts = (e) => {
13729
+ }, ns = (e) => {
13730
13730
  const n = e.reduce((i, a) => {
13731
13731
  const o = a.accountType;
13732
13732
  return i[o] || (i[o] = []), i[o].push(a), i;
13733
13733
  }, {});
13734
13734
  return Object.entries(n).map(([i, a]) => ({
13735
- icon: ou[+i] || Us[+i],
13735
+ icon: ou[+i] || Vs[+i],
13736
13736
  name: Eo[+i],
13737
13737
  accounts: a
13738
13738
  }));
@@ -13763,7 +13763,7 @@ class a1 {
13763
13763
  };
13764
13764
  loadChartData = async (n) => {
13765
13765
  try {
13766
- const { accounts: i, monthlyAccountBalances: a } = this.netWorthData, o = await t1(i, a, n), r = es(o);
13766
+ const { accounts: i, monthlyAccountBalances: a } = this.netWorthData, o = await t1(i, a, n), r = ts(o);
13767
13767
  z(() => {
13768
13768
  this.netWorthChartData = o, this.selectedData = r;
13769
13769
  });
@@ -13779,7 +13779,7 @@ class a1 {
13779
13779
  this.netWorthData.accounts
13780
13780
  );
13781
13781
  return {
13782
- netWorth: es(this.netWorthChartData),
13782
+ netWorth: ts(this.netWorthChartData),
13783
13783
  assets: n,
13784
13784
  liabilities: i,
13785
13785
  totalAssets: a,
@@ -13864,7 +13864,7 @@ const o1 = ({
13864
13864
  se,
13865
13865
  {
13866
13866
  primary: /* @__PURE__ */ l(y, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
13867
- /* @__PURE__ */ t(p, { variant: "Body", children: qs(e.x) }),
13867
+ /* @__PURE__ */ t(p, { variant: "Body", children: Zs(e.x) }),
13868
13868
  /* @__PURE__ */ t(je, { amount: e.y, sx: { color: "inherit" }, variant: "Body" })
13869
13869
  ] })
13870
13870
  }
@@ -13942,12 +13942,12 @@ const o1 = ({
13942
13942
  /* @__PURE__ */ t(je, { amount: a.change, color: s, variant: n }),
13943
13943
  /* @__PURE__ */ t(p, { variant: "Small", children: e })
13944
13944
  ] });
13945
- }, Ko = A(u1), _1 = ({ hoveredData: e, selectedData: n }) => {
13945
+ }, zo = A(u1), _1 = ({ hoveredData: e, selectedData: n }) => {
13946
13946
  const { net_worth: i } = I(), a = it(), o = e || n, r = Ln(Ni(o.x), "MMMM");
13947
13947
  return /* @__PURE__ */ l(y, { alignItems: "center", direction: "column", m: 24, children: [
13948
13948
  /* @__PURE__ */ t(p, { color: a.palette.secondary.main, variant: "Small", children: `${r} ${i.net_worth}` }),
13949
13949
  /* @__PURE__ */ t(je, { amount: o.y, variant: "H2" }),
13950
- /* @__PURE__ */ t(Ko, { currencyLabel: i.this_month, netWorth: o, theme: a })
13950
+ /* @__PURE__ */ t(zo, { currencyLabel: i.this_month, netWorth: o, theme: a })
13951
13951
  ] });
13952
13952
  }, h1 = A(_1), g1 = ({
13953
13953
  onClose: e,
@@ -13955,10 +13955,10 @@ const o1 = ({
13955
13955
  title: i
13956
13956
  }) => {
13957
13957
  let a;
13958
- const { refreshAccounts: o } = ve(), { loadWidget: r } = ac(), { connect: s } = I(), c = it(), [d, _] = g.useState(!1), [u, h] = g.useState(!1);
13958
+ const { refreshAccounts: o } = ve(), { loadWidget: r } = oc(), { connect: s } = I(), c = it(), [d, _] = g.useState(!1), [u, h] = g.useState(!1);
13959
13959
  return g.useEffect(() => (n ? (_(!0), r({ widget: "connections_widget", mode: c.palette.mode }).then((m) => {
13960
13960
  a = new Cd({
13961
- container: `#${Ir}`,
13961
+ container: `#${xr}`,
13962
13962
  style: {
13963
13963
  height: "calc(100% - 62px)",
13964
13964
  width: "100%",
@@ -13983,7 +13983,7 @@ const o1 = ({
13983
13983
  e(), o();
13984
13984
  },
13985
13985
  title: i,
13986
- children: /* @__PURE__ */ l("div", { id: Ir, children: [
13986
+ children: /* @__PURE__ */ l("div", { id: xr, children: [
13987
13987
  u && /* @__PURE__ */ t(da, { status: Pn.Error }),
13988
13988
  d && /* @__PURE__ */ t(da, { status: Pn.Loading })
13989
13989
  ] })
@@ -14017,7 +14017,7 @@ const o1 = ({
14017
14017
  s < e.length - 1 ? /* @__PURE__ */ t(k, { variant: "inset" }) : /* @__PURE__ */ t(k, {})
14018
14018
  ] }, r.accountName)) })
14019
14019
  ] });
14020
- }, ns = ({ groupedAccounts: e }) => /* @__PURE__ */ t(X, { children: e.map(({ accounts: n, icon: i, name: a }) => /* @__PURE__ */ t(m1, { accounts: n, icon: i, name: a }, a)) }), p1 = ({
14020
+ }, is = ({ groupedAccounts: e }) => /* @__PURE__ */ t(X, { children: e.map(({ accounts: n, icon: i, name: a }) => /* @__PURE__ */ t(m1, { accounts: n, icon: i, name: a }, a)) }), p1 = ({
14021
14021
  netWorth: e,
14022
14022
  assets: n,
14023
14023
  liabilities: i,
@@ -14041,7 +14041,7 @@ const o1 = ({
14041
14041
  /* @__PURE__ */ t(p, { variant: "Body", children: r.current_net_worth }),
14042
14042
  /* @__PURE__ */ t(je, { amount: e?.y ?? 0, variant: "H1" }),
14043
14043
  e && /* @__PURE__ */ t(
14044
- Ko,
14044
+ zo,
14045
14045
  {
14046
14046
  currencyLabel: r.this_month,
14047
14047
  iconSize: 20,
@@ -14062,7 +14062,7 @@ const o1 = ({
14062
14062
  ] })
14063
14063
  }
14064
14064
  ) }),
14065
- /* @__PURE__ */ t(ns, { groupedAccounts: ts(n) }),
14065
+ /* @__PURE__ */ t(is, { groupedAccounts: ns(n) }),
14066
14066
  /* @__PURE__ */ t(Lt, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(
14067
14067
  se,
14068
14068
  {
@@ -14072,7 +14072,7 @@ const o1 = ({
14072
14072
  ] })
14073
14073
  }
14074
14074
  ) }),
14075
- /* @__PURE__ */ t(ns, { groupedAccounts: ts(i) })
14075
+ /* @__PURE__ */ t(is, { groupedAccounts: ns(i) })
14076
14076
  ] })
14077
14077
  ] });
14078
14078
  }, C1 = A(p1), f1 = ({
@@ -14085,9 +14085,9 @@ const o1 = ({
14085
14085
  const { net_worth: r } = I(), s = me();
14086
14086
  return /* @__PURE__ */ l(X, { children: [
14087
14087
  /* @__PURE__ */ l(y, { alignItems: "center", justifyContent: "space-between", mb: 8, pt: 24, children: [
14088
- /* @__PURE__ */ t(p, { variant: "Small", children: qs(e?.x) }),
14088
+ /* @__PURE__ */ t(p, { variant: "Small", children: Zs(e?.x) }),
14089
14089
  /* @__PURE__ */ t(p, { variant: "Body", children: r.total_change }),
14090
- e && /* @__PURE__ */ t(Ko, { currencyVariant: "H1", iconSize: 32, netWorth: e, theme: s })
14090
+ e && /* @__PURE__ */ t(zo, { currencyVariant: "H1", iconSize: 32, netWorth: e, theme: s })
14091
14091
  ] }),
14092
14092
  /* @__PURE__ */ l(ie, { children: [
14093
14093
  /* @__PURE__ */ t(Lt, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(
@@ -14312,12 +14312,12 @@ function y1(e) {
14312
14312
  }
14313
14313
  class E1 {
14314
14314
  globalStore;
14315
- api = new Cr("/", "");
14315
+ api = new fr("/", "");
14316
14316
  isLoading = !0;
14317
14317
  notifications = [];
14318
14318
  recentNotifications = [];
14319
14319
  constructor(n) {
14320
- this.globalStore = n, this.api = new Cr(n.endpoint, n.sessionToken), $e(this, { notifications: Ed });
14320
+ this.globalStore = n, this.api = new fr(n.endpoint, n.sessionToken), $e(this, { notifications: Ed });
14321
14321
  }
14322
14322
  // Used in Money Dashboard
14323
14323
  get newNotifications() {
@@ -14363,7 +14363,7 @@ const S1 = (e, n) => {
14363
14363
  }
14364
14364
  ) }) : /* @__PURE__ */ t("div", { style: c.badge, children: /* @__PURE__ */ t(Bt, { categoryGuid: r?.category_guid, size: 36 }) });
14365
14365
  }, I1 = A(A1), x1 = ({ notification: e, onClick: n }) => {
14366
- const { updateNotification: i } = oc(), a = wn(), o = {
14366
+ const { updateNotification: i } = rc(), a = wn(), o = {
14367
14367
  card: {
14368
14368
  alignItems: "center",
14369
14369
  borderRadius: 2,
@@ -14420,7 +14420,7 @@ const S1 = (e, n) => {
14420
14420
  ] });
14421
14421
  }
14422
14422
  ), w1 = ({ onClick: e, onManageNotifications: n }) => {
14423
- const { isLoading: i, loadNotifications: a, recentNotifications: o, markAllAsViewed: r } = oc(), { notifications: s } = I(), { isCopyLoaded: c } = ue(), d = (_) => {
14423
+ const { isLoading: i, loadNotifications: a, recentNotifications: o, markAllAsViewed: r } = rc(), { notifications: s } = I(), { isCopyLoaded: c } = ue(), d = (_) => {
14424
14424
  e?.(_);
14425
14425
  };
14426
14426
  return Yn(() => (a().finally(), () => {
@@ -14440,7 +14440,7 @@ const S1 = (e, n) => {
14440
14440
  }) })
14441
14441
  ] });
14442
14442
  }, N1 = A(w1);
14443
- class is {
14443
+ class as {
14444
14444
  fetchInstance;
14445
14445
  constructor(n, i) {
14446
14446
  this.fetchInstance = new ct(n, i);
@@ -14456,7 +14456,7 @@ class is {
14456
14456
  updateDevice = async (n) => this.fetchInstance.put(`${G.DEVICES}/${n.guid}`, n).then((i) => i.device);
14457
14457
  updateNotificationProfile = async (n) => this.fetchInstance.put(`${G.NOTIFICATION_PROFILES}/${n.guid}`, n).then((i) => i.notification_profile);
14458
14458
  }
14459
- const as = "PARENT-ENTITY", D1 = (e, n) => {
14459
+ const os = "PARENT-ENTITY", D1 = (e, n) => {
14460
14460
  switch (e) {
14461
14461
  case We.BudgetExceeded:
14462
14462
  return n.notification_budget_exceeded;
@@ -14488,9 +14488,9 @@ const as = "PARENT-ENTITY", D1 = (e, n) => {
14488
14488
  opted_out_of_sms_notifications: u,
14489
14489
  opted_out_of_push_notifications: h
14490
14490
  } = o;
14491
- for (const m of a.filter((C) => C.entity_guid === as)) {
14491
+ for (const m of a.filter((C) => C.entity_guid === os)) {
14492
14492
  const C = D1(m.notification_type, i), f = a.filter(
14493
- (E) => E.entity_guid !== as && E.notification_type === m.notification_type && e.some((S) => S.guid === E.entity_guid)
14493
+ (E) => E.entity_guid !== os && E.notification_type === m.notification_type && e.some((S) => S.guid === E.entity_guid)
14494
14494
  ), b = [];
14495
14495
  s && !_ && m.email_channel && b.push(i.delivery_method_email_label), c && !u && m.sms_channel && b.push(i.delivery_method_sms_label), d && !h && m.push_channel && b.push(i.delivery_method_push_label), r.push({
14496
14496
  ...m,
@@ -14507,7 +14507,7 @@ const as = "PARENT-ENTITY", D1 = (e, n) => {
14507
14507
  };
14508
14508
  class O1 {
14509
14509
  globalStore;
14510
- api = new is("/", "");
14510
+ api = new as("/", "");
14511
14511
  transactionApi = new _a("/", "");
14512
14512
  alert = { message: "", severity: void 0 };
14513
14513
  devices = [];
@@ -14515,7 +14515,7 @@ class O1 {
14515
14515
  selectedRule = void 0;
14516
14516
  transactionRules = [];
14517
14517
  constructor(n) {
14518
- this.globalStore = n, this.api = new is(n.endpoint, n.sessionToken), this.transactionApi = new _a(n.endpoint, n.sessionToken), $e(this);
14518
+ this.globalStore = n, this.api = new as(n.endpoint, n.sessionToken), this.transactionApi = new _a(n.endpoint, n.sessionToken), $e(this);
14519
14519
  }
14520
14520
  get accountProfiles() {
14521
14521
  return this.detailedNotificationProfiles.filter(
@@ -17473,7 +17473,7 @@ const k1 = ({
17473
17473
  borderBottomLeftRadius: 8,
17474
17474
  borderBottomRightRadius: 8
17475
17475
  }
17476
- }), os = {
17476
+ }), rs = {
17477
17477
  institutionName: "",
17478
17478
  institutionWebsite: ""
17479
17479
  }, qa = {
@@ -17482,7 +17482,7 @@ const k1 = ({
17482
17482
  institutionWebsite: ""
17483
17483
  }, oC = A(
17484
17484
  ({ copy: e, isOpen: n, onClose: i, onSave: a }) => {
17485
- const { alert: o, isLoading: r, setAlert: s } = No(), [c, d] = g.useState(os), [_, u] = g.useState(qa), h = [
17485
+ const { alert: o, isLoading: r, setAlert: s } = No(), [c, d] = g.useState(rs), [_, u] = g.useState(qa), h = [
17486
17486
  { name: "institutionName", required: !0 },
17487
17487
  { name: "institutionWebsite", required: !0 },
17488
17488
  { name: "institutionLoginPage", required: !1 }
@@ -17490,7 +17490,7 @@ const k1 = ({
17490
17490
  ...b,
17491
17491
  label: e.popular_topics_missing_institution_fields[E.toString()]
17492
17492
  })), m = () => {
17493
- d(os), u(qa), i();
17493
+ d(rs), u(qa), i();
17494
17494
  }, C = (b) => {
17495
17495
  const {
17496
17496
  target: { name: E, value: S }
@@ -18058,9 +18058,7 @@ const k1 = ({
18058
18058
  )
18059
18059
  ] });
18060
18060
  }), bC = () => {
18061
- const e = it(), { common: n, settings: i } = I(), { isDesktop: a, isMobile: o, isSmallMobile: r, isTablet: s } = ye();
18062
- console.log("isDesktop, isMobile, isSmallMobile, isTablet", a, o, r, s);
18063
- const { config: c } = Vi(), { updateUser: d } = Ft(), { user: _ } = an(), [u, h] = g.useState(_.first_name), [m, C] = g.useState(_.last_name), [f, b] = g.useState(_.email), [E, S] = g.useState(_.phone), [v, N] = g.useState(_.postal_code), [x, R] = g.useState(_.credit_score), [D, H] = g.useState(null), O = f && !_.email_is_verified, M = E && !_.phone_is_verified;
18061
+ const e = it(), { common: n, settings: i } = I(), { isDesktop: a, isMobile: o, isSmallMobile: r, isTablet: s } = ye(), { config: c } = Vi(), { updateUser: d } = Ft(), { user: _ } = an(), [u, h] = g.useState(_.first_name), [m, C] = g.useState(_.last_name), [f, b] = g.useState(_.email), [E, S] = g.useState(_.phone), [v, N] = g.useState(_.postal_code), [x, R] = g.useState(_.credit_score), [D, H] = g.useState(null), O = f && !_.email_is_verified, M = E && !_.phone_is_verified;
18064
18062
  g.useEffect(() => {
18065
18063
  if (_.birthday) {
18066
18064
  const W = new Date(_.birthday * 1e3), Ee = W.getUTCFullYear(), J = W.getUTCMonth(), pe = W.getUTCDate();
@@ -18079,17 +18077,17 @@ const k1 = ({
18079
18077
  credit_score: x
18080
18078
  };
18081
18079
  await d(W);
18082
- }, U = s || o;
18083
- return /* @__PURE__ */ l(
18080
+ }, U = Do(100);
18081
+ return console.log("dimensions", U), /* @__PURE__ */ l(
18084
18082
  L,
18085
18083
  {
18086
18084
  component: "form",
18087
18085
  sx: {
18088
18086
  backgroundColor: "background.paper",
18089
- padding: U ? "24px 24px 48px 24px" : "24px 0px 48px 0px",
18090
- width: r ? 320 : U ? 680 : a ? 990 : 400,
18087
+ padding: o ? "24px 24px 48px 24px" : "24px 0px 48px 0px",
18088
+ width: r ? 320 : s ? 680 : a ? 990 : 400,
18091
18089
  "& .MuiTextField-root": {
18092
- width: r ? 272 : U ? 328 : a ? 483 : 352
18090
+ width: r ? 272 : s ? 328 : a ? 483 : 352
18093
18091
  }
18094
18092
  },
18095
18093
  children: [
@@ -18098,8 +18096,8 @@ const k1 = ({
18098
18096
  /* @__PURE__ */ l(
18099
18097
  y,
18100
18098
  {
18101
- direction: U ? "column" : "row",
18102
- spacing: U ? 44 : 24,
18099
+ direction: o ? "column" : "row",
18100
+ spacing: o ? 44 : 24,
18103
18101
  sx: { mb: 44, pt: 32 },
18104
18102
  children: [
18105
18103
  /* @__PURE__ */ t(
@@ -18121,8 +18119,8 @@ const k1 = ({
18121
18119
  ]
18122
18120
  }
18123
18121
  ),
18124
- /* @__PURE__ */ l(y, { direction: U ? "column" : "row", children: [
18125
- c.display_email_edit_field_in_settings && /* @__PURE__ */ l(y, { sx: { mb: O ? 20 : 44, mr: U ? 0 : 24 }, children: [
18122
+ /* @__PURE__ */ l(y, { direction: o ? "column" : "row", children: [
18123
+ c.display_email_edit_field_in_settings && /* @__PURE__ */ l(y, { sx: { mb: O ? 20 : 44, mr: o ? 0 : 24 }, children: [
18126
18124
  /* @__PURE__ */ t(
18127
18125
  rt,
18128
18126
  {
@@ -18146,53 +18144,45 @@ const k1 = ({
18146
18144
  M && /* @__PURE__ */ t(fC, {})
18147
18145
  ] })
18148
18146
  ] }),
18149
- /* @__PURE__ */ l(
18150
- y,
18151
- {
18152
- direction: U ? "column" : "row",
18153
- spacing: U ? 44 : 24,
18154
- sx: { mb: 44 },
18155
- children: [
18156
- /* @__PURE__ */ t(Dn, { dateAdapter: mn, children: /* @__PURE__ */ t(
18157
- Ea,
18158
- {
18159
- label: i.birthdate,
18160
- onChange: H,
18161
- slotProps: {
18162
- nextIconButton: {
18163
- sx: {
18164
- color: "primary.main",
18165
- "&:hover": { backgroundColor: In(e.palette.primary.light, 0.1) }
18166
- }
18167
- },
18168
- previousIconButton: {
18169
- sx: {
18170
- color: "primary.main",
18171
- "&:hover": { backgroundColor: In(e.palette.primary.light, 0.1) }
18172
- }
18173
- }
18174
- },
18147
+ /* @__PURE__ */ l(y, { direction: o ? "column" : "row", spacing: o ? 44 : 24, sx: { mb: 44 }, children: [
18148
+ /* @__PURE__ */ t(Dn, { dateAdapter: mn, children: /* @__PURE__ */ t(
18149
+ Ea,
18150
+ {
18151
+ label: i.birthdate,
18152
+ onChange: H,
18153
+ slotProps: {
18154
+ nextIconButton: {
18175
18155
  sx: {
18176
- width: "100%",
18177
- "& .MuiIconButton-edgeEnd": {
18178
- color: "primary.main",
18179
- "&:hover": { backgroundColor: In(e.palette.primary.light, 0.1) }
18180
- }
18181
- },
18182
- value: D
18156
+ color: "primary.main",
18157
+ "&:hover": { backgroundColor: In(e.palette.primary.light, 0.1) }
18158
+ }
18159
+ },
18160
+ previousIconButton: {
18161
+ sx: {
18162
+ color: "primary.main",
18163
+ "&:hover": { backgroundColor: In(e.palette.primary.light, 0.1) }
18164
+ }
18183
18165
  }
18184
- ) }),
18185
- /* @__PURE__ */ t(
18186
- rt,
18187
- {
18188
- defaultValue: v,
18189
- label: i.zip_code,
18190
- onChange: (W) => N(W.target.value)
18166
+ },
18167
+ sx: {
18168
+ width: "100%",
18169
+ "& .MuiIconButton-edgeEnd": {
18170
+ color: "primary.main",
18171
+ "&:hover": { backgroundColor: In(e.palette.primary.light, 0.1) }
18191
18172
  }
18192
- )
18193
- ]
18194
- }
18195
- ),
18173
+ },
18174
+ value: D
18175
+ }
18176
+ ) }),
18177
+ /* @__PURE__ */ t(
18178
+ rt,
18179
+ {
18180
+ defaultValue: v,
18181
+ label: i.zip_code,
18182
+ onChange: (W) => N(W.target.value)
18183
+ }
18184
+ )
18185
+ ] }),
18196
18186
  /* @__PURE__ */ l(y, { children: [
18197
18187
  /* @__PURE__ */ t(
18198
18188
  rt,
@@ -18249,7 +18239,7 @@ const EC = ({
18249
18239
  field: "created_at",
18250
18240
  headerName: o.mobile_devices_column_added,
18251
18241
  renderHeader: Kt,
18252
- valueFormatter: (c) => Ms(Ge(c), { addSuffix: !0 }),
18242
+ valueFormatter: (c) => ks(Ge(c), { addSuffix: !0 }),
18253
18243
  sortable: !0,
18254
18244
  hideSortIcons: !1,
18255
18245
  flex: 1,
@@ -18353,7 +18343,7 @@ const EC = ({
18353
18343
  children: /* @__PURE__ */ l(y, { gap: 4, children: [
18354
18344
  /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: d.name }),
18355
18345
  /* @__PURE__ */ t(p, { color: a.palette.text.secondary, variant: "Small", children: `${d.make} ${d.model}` }),
18356
- /* @__PURE__ */ t(p, { color: a.palette.text.secondary, variant: "Small", children: Ms(Ge(d.created_at), { addSuffix: !0 }) })
18346
+ /* @__PURE__ */ t(p, { color: a.palette.text.secondary, variant: "Small", children: ks(Ge(d.created_at), { addSuffix: !0 }) })
18357
18347
  ] })
18358
18348
  }
18359
18349
  ),
@@ -18599,7 +18589,7 @@ const EC = ({
18599
18589
  ]
18600
18590
  }
18601
18591
  );
18602
- }), zo = A(
18592
+ }), Yo = A(
18603
18593
  ({ onClick: e, primaryText: n, secondaryText: i, sx: a }) => {
18604
18594
  const o = me();
18605
18595
  return /* @__PURE__ */ t(Y, { sx: { bgcolor: o.palette.background.paper }, children: /* @__PURE__ */ l(he, { alignItems: "flex-start", onClick: e, sx: a, children: [
@@ -18617,7 +18607,7 @@ const EC = ({
18617
18607
  };
18618
18608
  return /* @__PURE__ */ l(g.Fragment, { children: [
18619
18609
  /* @__PURE__ */ t(
18620
- zo,
18610
+ Yo,
18621
18611
  {
18622
18612
  onClick: c,
18623
18613
  primaryText: i?.category_guid ? d(i.category_guid) : "",
@@ -18643,7 +18633,7 @@ const EC = ({
18643
18633
  };
18644
18634
  return /* @__PURE__ */ l(g.Fragment, { children: [
18645
18635
  /* @__PURE__ */ t(
18646
- zo,
18636
+ Yo,
18647
18637
  {
18648
18638
  onClick: u,
18649
18639
  primaryText: c,
@@ -18745,7 +18735,7 @@ const EC = ({
18745
18735
  }, m = (C) => n.find((f) => f.guid === C)?.name;
18746
18736
  return /* @__PURE__ */ l(g.Fragment, { children: [
18747
18737
  /* @__PURE__ */ t(
18748
- zo,
18738
+ Yo,
18749
18739
  {
18750
18740
  onClick: h,
18751
18741
  primaryText: e.description ? e.description : e.match_description,
@@ -18834,7 +18824,7 @@ const EC = ({
18834
18824
  n.account?.day_payment_is_due || 0
18835
18825
  ), m = n.account?.name || n.account?.feed_name || "", C = n.account?.day_payment_is_due ? T(
18836
18826
  a.notification_debt_payment_date,
18837
- Zs(n.account?.day_payment_is_due)
18827
+ Qs(n.account?.day_payment_is_due)
18838
18828
  ) : a.notification_debt_payment_zero_state, f = r ? C : B(n.threshold ?? 0, "0,0"), b = async () => {
18839
18829
  r && n.account ? await o({ ...n.account, day_payment_is_due: u }) : e({ ...n, threshold: d });
18840
18830
  };
@@ -19164,7 +19154,7 @@ const h4 = A(({ onBackClick: e, sx: n }) => {
19164
19154
  }
19165
19155
  ) : /* @__PURE__ */ t(ge, {});
19166
19156
  }
19167
- ), rs = {
19157
+ ), ss = {
19168
19158
  clientStyleProfile: {},
19169
19159
  config: {
19170
19160
  assets_prefix: "/assets",
@@ -19265,7 +19255,7 @@ const h4 = A(({ onBackClick: e, sx: n }) => {
19265
19255
  postHogPublicKey: "phc_1fVYJICC69TpW4wagp9o2XqQ8E7X98cAmcR5psSpfkE",
19266
19256
  userFeatures: []
19267
19257
  };
19268
- class ss {
19258
+ class cs {
19269
19259
  fetchInstance;
19270
19260
  constructor(n, i) {
19271
19261
  this.fetchInstance = new ct(n, i);
@@ -19360,13 +19350,13 @@ const GC = (e) => {
19360
19350
  return a;
19361
19351
  }, WC = (e, n, i) => {
19362
19352
  const a = [], o = e.expectedDate;
19363
- let r = we(o, i) ? o : Ls(o, 1);
19353
+ let r = we(o, i) ? o : Ms(o, 1);
19364
19354
  for (; we(r, i); )
19365
19355
  Jt(r, n) && a.push({ ...e, expectedDate: r }), r = An(r, 1);
19366
19356
  return a;
19367
19357
  }, UC = (e, n, i) => {
19368
19358
  const a = [], o = e.expectedDate;
19369
- let r = we(o, i) ? o : Ls(o, 2);
19359
+ let r = we(o, i) ? o : Ms(o, 2);
19370
19360
  for (; we(r, i); )
19371
19361
  Jt(r, n) && a.push({ ...e, expectedDate: r }), r = An(r, 2);
19372
19362
  return a;
@@ -19433,13 +19423,13 @@ const GC = (e) => {
19433
19423
  };
19434
19424
  class YC {
19435
19425
  globalStore;
19436
- api = new ss("/", "");
19426
+ api = new cs("/", "");
19437
19427
  transactions = [];
19438
19428
  repeatingTransactions = [];
19439
19429
  selectedDay;
19440
19430
  isDataLoaded = !1;
19441
19431
  constructor(n) {
19442
- this.globalStore = n, this.api = new ss(n.endpoint, n.sessionToken), $e(this);
19432
+ this.globalStore = n, this.api = new cs(n.endpoint, n.sessionToken), $e(this);
19443
19433
  }
19444
19434
  get recurrences() {
19445
19435
  return KC(this.repeatingTransactions);
@@ -19577,7 +19567,7 @@ class YC {
19577
19567
  }
19578
19568
  };
19579
19569
  }
19580
- class cs {
19570
+ class ls {
19581
19571
  fetchInstance;
19582
19572
  constructor(n, i) {
19583
19573
  this.fetchInstance = new ct(n, i);
@@ -19586,12 +19576,12 @@ class cs {
19586
19576
  }
19587
19577
  class jC {
19588
19578
  globalStore;
19589
- api = new cs("/", "");
19590
- bannerApi = new mr("/");
19579
+ api = new ls("/", "");
19580
+ bannerApi = new pr("/");
19591
19581
  appData = {};
19592
19582
  banner = {};
19593
19583
  constructor(n) {
19594
- this.globalStore = n, this.api = new cs(n.endpoint, n.sessionToken), $e(this);
19584
+ this.globalStore = n, this.api = new ls(n.endpoint, n.sessionToken), $e(this);
19595
19585
  }
19596
19586
  get appConfig() {
19597
19587
  return this.globalStore.appConfig;
@@ -19612,7 +19602,7 @@ class jC {
19612
19602
  try {
19613
19603
  const n = await this.api.getAppData();
19614
19604
  z(() => {
19615
- this.appData = n, this.bannerApi = new mr(n.address?.bullseye || "/");
19605
+ this.appData = n, this.bannerApi = new pr(n.address?.bullseye || "/");
19616
19606
  });
19617
19607
  } catch (n) {
19618
19608
  console.error(`Error loading app data: ${n}`);
@@ -19634,9 +19624,9 @@ class jC {
19634
19624
  }
19635
19625
  class XC {
19636
19626
  globalStore;
19637
- widgetApi = new br("/", "");
19627
+ widgetApi = new yr("/", "");
19638
19628
  constructor(n) {
19639
- this.globalStore = n, this.widgetApi = new br(n.endpoint, n.sessionToken), $e(this);
19629
+ this.globalStore = n, this.widgetApi = new yr(n.endpoint, n.sessionToken), $e(this);
19640
19630
  }
19641
19631
  loadWidget = async ({ widget: n = "connect_widget", mode: i = "light", ...a }) => await this.widgetApi.requestWidgetUrl({
19642
19632
  widget_url: { widget_type: n, color_scheme: i, ...a }
@@ -19735,7 +19725,7 @@ class ZC {
19735
19725
  }
19736
19726
  class m4 {
19737
19727
  // Global properties
19738
- appConfig = rs;
19728
+ appConfig = ss;
19739
19729
  endpoint = "/";
19740
19730
  sessionToken = "";
19741
19731
  // Data Stores
@@ -19762,7 +19752,7 @@ class m4 {
19762
19752
  userStore;
19763
19753
  // UI Stores
19764
19754
  globalUiStore;
19765
- constructor(n = rs, i = "/") {
19755
+ constructor(n = ss, i = "/") {
19766
19756
  this.appConfig = n, this.endpoint = i, this.sessionToken = n.options.session_token ?? "", this.accountStore = new Af(this), this.appDataStore = new jC(this), this.analyticsStore = new c_(this), this.beatStore = new u_(this), this.budgetsStore = new m_(this), this.cashflowStore = new dm(this), this.categoryStore = new bh(this), this.connectStore = new XC(this), this.copyStore = new s_(this), this.debtsStore = new up(this), this.goalStore = new Rp(this), this.helpStore = new kp(this), this.holdingStore = new zp(this), this.merchantStore = new qp(this), this.netWorthStore = new a1(this), this.notificationStore = new E1(this), this.recurringActivityStore = new kg(this), this.recurringTransactionsStore = new YC(this), this.settingsStore = new O1(this), this.transactionStore = new L_(this), this.userStore = new ZC(this), this.globalUiStore = new qC(this), $e(this);
19767
19757
  }
19768
19758
  get isInitialized() {
@@ -20073,7 +20063,7 @@ const Qa = ({
20073
20063
  }, tf = () => {
20074
20064
  const [e, n] = g.useState(!1), {
20075
20065
  palette: { mode: i }
20076
- } = me(), { selectedMember: a } = Wt(), { accounts: o, connect: r } = I(), s = Jc(a, r), c = Ws.includes(a.connection_status) ? {
20066
+ } = me(), { selectedMember: a } = Wt(), { accounts: o, connect: r } = I(), s = Jc(a, r), c = Us.includes(a.connection_status) ? {
20077
20067
  color: "error.main",
20078
20068
  ctaCopy: s.cta ?? "",
20079
20069
  icon: /* @__PURE__ */ t(Aa, { sx: { ...Ja } }),
@@ -20112,7 +20102,7 @@ const Qa = ({
20112
20102
  Zt,
20113
20103
  {
20114
20104
  backingSx: {
20115
- backgroundColor: i === tr.LIGHT ? "grey.300" : "grey.700",
20105
+ backgroundColor: i === nr.LIGHT ? "grey.300" : "grey.700",
20116
20106
  borderRadius: 1
20117
20107
  },
20118
20108
  size: 32,
@@ -20121,7 +20111,7 @@ const Qa = ({
20121
20111
  {
20122
20112
  sx: {
20123
20113
  ...Ja,
20124
- color: i === tr.LIGHT ? "grey.900" : "common.white"
20114
+ color: i === nr.LIGHT ? "grey.900" : "common.white"
20125
20115
  }
20126
20116
  }
20127
20117
  )
@@ -20289,7 +20279,7 @@ const Qa = ({
20289
20279
  /* @__PURE__ */ t(ef, {})
20290
20280
  ] });
20291
20281
  }, lf = A(cf), df = ({ setTabValue: e }) => {
20292
- const [n, i] = g.useState(!1), { selectedMember: a } = Wt(), { accounts: o, connect: r } = I(), s = a.connection_status && Ws.includes(a.connection_status);
20282
+ const [n, i] = g.useState(!1), { selectedMember: a } = Wt(), { accounts: o, connect: r } = I(), s = a.connection_status && Us.includes(a.connection_status);
20293
20283
  if (g.useEffect(() => {
20294
20284
  s && e(1);
20295
20285
  }, [s]), !s) return;
@@ -20322,7 +20312,7 @@ const Qa = ({
20322
20312
  c.title && /* @__PURE__ */ t(oo, { sx: { fontWeight: 600, marginTop: 2 }, variant: "Body", children: c.title }),
20323
20313
  /* @__PURE__ */ t(p, { component: "p", sx: { whiteSpace: "wrap" }, variant: "ParagraphSmall", children: c.main }),
20324
20314
  c.cta && /* @__PURE__ */ t(
20325
- Bs,
20315
+ Ps,
20326
20316
  {
20327
20317
  onClick: () => i(!0),
20328
20318
  sx: { fontSize: 15, fontWeight: 600, ml: 0 },
@@ -20538,7 +20528,7 @@ const Qa = ({
20538
20528
  onClose: () => n(""),
20539
20529
  title: i.account_details,
20540
20530
  children: [
20541
- /* @__PURE__ */ t(Fo, {}),
20531
+ /* @__PURE__ */ t(Wo, {}),
20542
20532
  /* @__PURE__ */ t(el, {})
20543
20533
  ]
20544
20534
  }
@@ -21109,7 +21099,7 @@ const Qa = ({
21109
21099
  }
21110
21100
  ) : /* @__PURE__ */ t(ge, {});
21111
21101
  }, f4 = A(Sf);
21112
- class ls {
21102
+ class ds {
21113
21103
  fetchInstance;
21114
21104
  constructor(n, i) {
21115
21105
  this.fetchInstance = new ct(n, i);
@@ -21137,13 +21127,13 @@ class Tf {
21137
21127
  }
21138
21128
  class Af {
21139
21129
  globalStore;
21140
- api = new ls("/", "");
21130
+ api = new ds("/", "");
21141
21131
  accounts = [];
21142
21132
  institutions = [];
21143
21133
  members = [];
21144
21134
  uiStore;
21145
21135
  constructor(n) {
21146
- this.globalStore = n, this.uiStore = new Tf(), this.api = new ls(n.endpoint, n.sessionToken), $e(this);
21136
+ this.globalStore = n, this.uiStore = new Tf(), this.api = new ds(n.endpoint, n.sessionToken), $e(this);
21147
21137
  }
21148
21138
  loadAccountData = async () => {
21149
21139
  await Promise.all([this.loadAccounts(), this.loadInstitutions()]);
@@ -21212,7 +21202,7 @@ class Af {
21212
21202
  if (o > -1) {
21213
21203
  let r = zn.Connected;
21214
21204
  const s = this.members[o];
21215
- Fs.includes(s.connection_status) ? r = zn.Error : au.includes(s.connection_status) ? r = zn.Processing : $s.includes(s.connection_status) && (r = zn.RequiresMfa);
21205
+ Ws.includes(s.connection_status) ? r = zn.Error : au.includes(s.connection_status) ? r = zn.Processing : Fs.includes(s.connection_status) && (r = zn.RequiresMfa);
21216
21206
  let c = a.user_name || a.feed_name || "";
21217
21207
  a.account_number && (c = `${c} *${a.account_number}`), i.push({
21218
21208
  ...a,
@@ -21440,8 +21430,8 @@ const If = () => {
21440
21430
  /* @__PURE__ */ t(p, { variant: "XSmall", children: c })
21441
21431
  ] }),
21442
21432
  /* @__PURE__ */ l(y, { sx: { gap: 6, px: 24, pb: 8 }, children: [
21443
- a.type === rr.Rating && /* @__PURE__ */ t(xf, {}),
21444
- a.type === rr.Open && /* @__PURE__ */ t(wf, {})
21433
+ a.type === sr.Rating && /* @__PURE__ */ t(xf, {}),
21434
+ a.type === sr.Open && /* @__PURE__ */ t(wf, {})
21445
21435
  ] }),
21446
21436
  /* @__PURE__ */ t(y, { sx: { px: 24, py: 16 }, children: /* @__PURE__ */ t(
21447
21437
  te,
@@ -21469,7 +21459,7 @@ const If = () => {
21469
21459
  ]
21470
21460
  }
21471
21461
  ) : /* @__PURE__ */ t(ge, {});
21472
- }, b4 = A(Nf), ds = 5, Df = 100, Rf = 25, Of = (e) => {
21462
+ }, b4 = A(Nf), us = 5, Df = 100, Rf = 25, Of = (e) => {
21473
21463
  const n = (o) => {
21474
21464
  o.active || e.alphaTarget(0.3).restart(), o.subject.fx = o.subject.x, o.subject.fy = o.subject.y;
21475
21465
  }, i = (o) => {
@@ -21481,7 +21471,7 @@ const If = () => {
21481
21471
  }, Lf = (e) => {
21482
21472
  let n = e.transaction_total / e.amount;
21483
21473
  n < 0 ? n = 0 : n > 1 && (n = 1);
21484
- const i = n * 2 * Math.PI, a = Ot.interpolate(0, i), o = Ot.arc().cornerRadius(5).innerRadius(e.radius - ds * 2).outerRadius(e.radius - ds).startAngle(0).endAngle(0);
21474
+ const i = n * 2 * Math.PI, a = Ot.interpolate(0, i), o = Ot.arc().cornerRadius(5).innerRadius(e.radius - us * 2).outerRadius(e.radius - us).startAngle(0).endAngle(0);
21485
21475
  return (r) => (o.endAngle(a(r)), o(e) || "");
21486
21476
  }, Mf = (e) => {
21487
21477
  Ot.selectAll(".bubble").call(Of(e));
@@ -21510,7 +21500,7 @@ const If = () => {
21510
21500
  return Ot.forceSimulation(o).velocityDecay(0.05).force("collide", Ot.forceCollide((r) => r.radius + 2).strength(0.5)).on("tick", () => {
21511
21501
  Ot.selectAll(".bubble").data(o).attr("transform", (r) => `translate(${r.x},${r.y})`);
21512
21502
  });
21513
- }, us = 5, Pf = 2e3;
21503
+ }, _s = 5, Pf = 2e3;
21514
21504
  function Hf({ bubble: e }) {
21515
21505
  const n = me(), {
21516
21506
  guid: i,
@@ -21520,7 +21510,7 @@ function Hf({ bubble: e }) {
21520
21510
  g.useEffect(() => {
21521
21511
  Ot.select(`.${r}`).selectAll(".status").remove(), Ot.select(`.${r}`).append("path").transition().duration(Pf).delay(0).attr("class", "status").attr("style", `fill: ${a}; fill-opacity: 1;`).attrTween("d", () => Lf(e));
21522
21512
  }, [e]);
21523
- const s = Ot.arc().innerRadius((c) => c - 2 * us).outerRadius((c) => c - us).startAngle(0).endAngle(2 * Math.PI);
21513
+ const s = Ot.arc().innerRadius((c) => c - 2 * _s).outerRadius((c) => c - _s).startAngle(0).endAngle(2 * Math.PI);
21524
21514
  return /* @__PURE__ */ t("g", { className: r, children: /* @__PURE__ */ t(
21525
21515
  "path",
21526
21516
  {
@@ -21529,7 +21519,7 @@ function Hf({ bubble: e }) {
21529
21519
  }
21530
21520
  ) });
21531
21521
  }
21532
- const Qn = 75, _s = 50;
21522
+ const Qn = 75, hs = 50;
21533
21523
  function $f({ bubble: e, isDraggable: n, onClick: i = () => {
21534
21524
  } }) {
21535
21525
  const [a, o] = g.useState(!1);
@@ -21606,7 +21596,7 @@ function $f({ bubble: e, isDraggable: n, onClick: i = () => {
21606
21596
  children: d
21607
21597
  }
21608
21598
  ),
21609
- h > _s && /* @__PURE__ */ t(
21599
+ h > hs && /* @__PURE__ */ t(
21610
21600
  p,
21611
21601
  {
21612
21602
  bold: !0,
@@ -21618,7 +21608,7 @@ function $f({ bubble: e, isDraggable: n, onClick: i = () => {
21618
21608
  children: h <= Qn ? u.split(" ")[0] : u
21619
21609
  }
21620
21610
  ),
21621
- h <= Qn && h > _s && /* @__PURE__ */ t(
21611
+ h <= Qn && h > hs && /* @__PURE__ */ t(
21622
21612
  p,
21623
21613
  {
21624
21614
  component: "text",
@@ -21960,7 +21950,7 @@ const Ff = ({
21960
21950
  transaction_total: r
21961
21951
  } = e, { setSelectedSubBudget: s } = ht();
21962
21952
  return /* @__PURE__ */ t(Y, { children: /* @__PURE__ */ l(he, { onClick: () => s(e), children: [
21963
- /* @__PURE__ */ t(He, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ t(sc, { color: i, percent: o, size: 40, children: /* @__PURE__ */ t(Bt, { categoryGuid: a.parent_guid, variant: "basic" }) }) }),
21953
+ /* @__PURE__ */ t(He, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ t(cc, { color: i, percent: o, size: 40, children: /* @__PURE__ */ t(Bt, { categoryGuid: a.parent_guid, variant: "basic" }) }) }),
21964
21954
  /* @__PURE__ */ t(
21965
21955
  se,
21966
21956
  {
@@ -22258,7 +22248,7 @@ const Ff = ({
22258
22248
  transaction_total: _
22259
22249
  } = e;
22260
22250
  return /* @__PURE__ */ t(Y, { children: /* @__PURE__ */ l(he, { onClick: () => n?.(e), children: [
22261
- /* @__PURE__ */ t(He, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ t(sc, { color: a, percent: c, size: 40, children: /* @__PURE__ */ t(Bt, { categoryGuid: r, variant: "basic" }) }) }),
22251
+ /* @__PURE__ */ t(He, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ t(cc, { color: a, percent: c, size: 40, children: /* @__PURE__ */ t(Bt, { categoryGuid: r, variant: "basic" }) }) }),
22262
22252
  /* @__PURE__ */ t(
22263
22253
  se,
22264
22254
  {
@@ -22368,12 +22358,12 @@ const Ff = ({
22368
22358
  title: r.manage_income,
22369
22359
  children: /* @__PURE__ */ l(y, { gap: 4, children: [
22370
22360
  /* @__PURE__ */ t(p, { bold: !0, sx: { mt: 12, mx: 24 }, variant: "Small", children: a.income_title }),
22371
- /* @__PURE__ */ t(Po, {})
22361
+ /* @__PURE__ */ t(Ho, {})
22372
22362
  ] })
22373
22363
  }
22374
22364
  )
22375
22365
  ] });
22376
- }), hs = 480, E4 = A(({ onBackClick: e, sx: n }) => {
22366
+ }), gs = 480, E4 = A(({ onBackClick: e, sx: n }) => {
22377
22367
  const i = me(), { onEvent: a } = K(), { visibleAccounts: o } = ve(), { budgets: r, common: s } = I(), { isCopyLoaded: c, isInitialized: d, selectedAccounts: _, setDisplayedDate: u, setSelectedAccounts: h } = ue(), {
22378
22368
  alert: m,
22379
22369
  dateRange: C,
@@ -22433,7 +22423,7 @@ const Ff = ({
22433
22423
  height: R || D ? 800 : 450,
22434
22424
  isDraggable: !0,
22435
22425
  shouldShowZeroState: N.length === 0,
22436
- unavailableWidth: R || D ? hs : 0
22426
+ unavailableWidth: R || D ? gs : 0
22437
22427
  }
22438
22428
  ) }),
22439
22429
  N.length !== 0 && /* @__PURE__ */ l(
@@ -22442,7 +22432,7 @@ const Ff = ({
22442
22432
  gap: 24,
22443
22433
  height: "100%",
22444
22434
  sx: { mr: 24, mt: 48 },
22445
- width: R || D ? hs : "100%",
22435
+ width: R || D ? gs : "100%",
22446
22436
  children: [
22447
22437
  /* @__PURE__ */ t(a0, {}),
22448
22438
  /* @__PURE__ */ t(i0, {})
@@ -22596,7 +22586,7 @@ const Ff = ({
22596
22586
  /* @__PURE__ */ l(y, { flexDirection: "row", children: [
22597
22587
  o.show_connections_widget_in_master && /* @__PURE__ */ t(s0, {}),
22598
22588
  /* @__PURE__ */ t(
22599
- Js,
22589
+ ec,
22600
22590
  {
22601
22591
  accounts: e,
22602
22592
  copy: s,
@@ -22911,7 +22901,7 @@ const d0 = ({ widgets: e, isLoading: n }) => {
22911
22901
  investments: { allocation: m }
22912
22902
  } = I(), C = g.useMemo(() => e.donutData.length > 0 ? e.donutData : [{ id: "0", color: _.palette.border.light, value: 100 }], [e, _]), f = u ? "#0AC295" : "#09A57F", b = u ? "grey.300" : "grey.700", E = () => h ? m.pie_chart_centered_click_for_details : i ? po(e.totalGainLossPercentage) : vi(e.totalGainLoss), S = e.totalGainLoss >= 0 ? f : b;
22913
22903
  return /* @__PURE__ */ t(
22914
- tc,
22904
+ nc,
22915
22905
  {
22916
22906
  data: C,
22917
22907
  hoveredId: n,
@@ -24116,7 +24106,7 @@ class w0 {
24116
24106
  return this.copyObject.zero_state;
24117
24107
  }
24118
24108
  }
24119
- const Yo = {
24109
+ const jo = {
24120
24110
  BillAmountNotStandard: "BillAmountNotStandard",
24121
24111
  CanadianUpcomingDeadlineAlert: "CanadianUpcomingDeadlineAlert",
24122
24112
  DuplicatePaymentV2: "DuplicatePaymentV2",
@@ -24133,37 +24123,37 @@ const Yo = {
24133
24123
  WeeklyNewMerchantsV2: "WeeklyNewMerchantsV2",
24134
24124
  MonthlySpendComparison: "MonthlySpendComparison",
24135
24125
  MonthlySpendToIncomeComparison: "MonthlySpendToIncomeComparison"
24136
- }, zt = window?.app?.clientConfig?.microwidget_instance_id || "", gs = {
24126
+ }, zt = window?.app?.clientConfig?.microwidget_instance_id || "", ms = {
24137
24127
  INSIGHTS_MICRO_WIDGET: "/micro-insights-carousel"
24138
- }, il = (e) => `on${e}Click`, al = (e) => `on${e}View`, ol = (e) => `on${e}ViewFirstTime`, jo = (e) => e.replace(/([a-z])([A-Z])/g, "$1 $2"), N0 = () => Object.values(Yo).reduce(
24128
+ }, il = (e) => `on${e}Click`, al = (e) => `on${e}View`, ol = (e) => `on${e}ViewFirstTime`, Xo = (e) => e.replace(/([a-z])([A-Z])/g, "$1 $2"), N0 = () => Object.values(jo).reduce(
24139
24129
  (e, n) => ({
24140
24130
  ...e,
24141
24131
  [il(n)]: {
24142
24132
  action: Tn.MICRO_BEAT_CLICKED,
24143
24133
  category: Sn.BEAT_INTERACTION,
24144
- label: jo(n),
24134
+ label: Xo(n),
24145
24135
  value: zt
24146
24136
  }
24147
24137
  }),
24148
24138
  {}
24149
- ), D0 = () => Object.values(Yo).reduce(
24139
+ ), D0 = () => Object.values(jo).reduce(
24150
24140
  (e, n) => ({
24151
24141
  ...e,
24152
24142
  [al(n)]: {
24153
24143
  action: Tn.MICRO_BEAT_DISPLAYED,
24154
24144
  category: Sn.BEAT_INTERACTION,
24155
- label: jo(n),
24145
+ label: Xo(n),
24156
24146
  value: zt
24157
24147
  }
24158
24148
  }),
24159
24149
  {}
24160
- ), R0 = () => Object.values(Yo).reduce(
24150
+ ), R0 = () => Object.values(jo).reduce(
24161
24151
  (e, n) => ({
24162
24152
  ...e,
24163
24153
  [ol(n)]: {
24164
24154
  action: Tn.MICRO_BEAT_DISPLAYED_FIRST_TIME,
24165
24155
  category: Sn.BEAT_INTERACTION,
24166
- label: jo(n),
24156
+ label: Xo(n),
24167
24157
  value: zt
24168
24158
  }
24169
24159
  }),
@@ -24197,18 +24187,18 @@ const Yo = {
24197
24187
  MICRO_WIDGET_CAROUSEL: "Micro Widget Carousel",
24198
24188
  MICRO_WIDGET_CAROUSEL_ZERO_STATE: "Micro Widget Carousel Zero State",
24199
24189
  MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS: "Micro Widget Carousel No Relevant Insights"
24200
- }, ms = {
24190
+ }, ps = {
24201
24191
  [Gn.MICRO_WIDGET_CAROUSEL]: {
24202
24192
  label: En.MICRO_WIDGET,
24203
24193
  name: Gn.MICRO_WIDGET_CAROUSEL,
24204
- path: gs.INSIGHTS_MICRO_WIDGET,
24194
+ path: ms.INSIGHTS_MICRO_WIDGET,
24205
24195
  value: zt
24206
24196
  },
24207
24197
  // zero state
24208
24198
  [Gn.MICRO_WIDGET_CAROUSEL_ZERO_STATE]: {
24209
24199
  label: En.MICRO_WIDGET,
24210
24200
  name: Gn.MICRO_WIDGET_CAROUSEL_ZERO_STATE,
24211
- path: gs.INSIGHTS_MICRO_WIDGET,
24201
+ path: ms.INSIGHTS_MICRO_WIDGET,
24212
24202
  value: zt
24213
24203
  },
24214
24204
  // no relevant cards
@@ -24218,7 +24208,7 @@ const Yo = {
24218
24208
  path: "/micro-widget",
24219
24209
  value: zt
24220
24210
  }
24221
- }, ps = {
24211
+ }, Cs = {
24222
24212
  // carousel control interaction events - clicks and swipes
24223
24213
  [Yt.ON_CAROUSEL_BACK_CLICK]: {
24224
24214
  action: Tn.CONTROL_BACKWARD,
@@ -24260,25 +24250,25 @@ const Yo = {
24260
24250
  ...N0(),
24261
24251
  ...D0(),
24262
24252
  ...R0()
24263
- }, Cs = async (e, n) => !n || !ps[e] ? null : n.sendAnalyticEvent(ps[e]).then((i) => i).catch((i) => {
24253
+ }, fs = async (e, n) => !n || !Cs[e] ? null : n.sendAnalyticEvent(Cs[e]).then((i) => i).catch((i) => {
24264
24254
  throw i;
24265
- }), fs = async (e, n) => !n || !ms[e] ? null : n.sendAnalyticsPageview(ms[e]).then((i) => i).catch((i) => {
24255
+ }), bs = async (e, n) => !n || !ps[e] ? null : n.sendAnalyticsPageview(ps[e]).then((i) => i).catch((i) => {
24266
24256
  throw i;
24267
24257
  });
24268
24258
  class O0 {
24269
- onAnalyticEvent = Cs;
24270
- onAnalyticPageView = fs;
24259
+ onAnalyticEvent = fs;
24260
+ onAnalyticPageView = bs;
24271
24261
  beatApi = new si("/", "");
24272
24262
  constructor() {
24273
24263
  $e(this);
24274
24264
  }
24275
24265
  initialize = async (n, i, a) => {
24276
24266
  this.onAnalyticEvent = (o, r) => {
24277
- Cs(o, r).then((s) => s).catch((s) => {
24267
+ fs(o, r).then((s) => s).catch((s) => {
24278
24268
  throw s.status === 401 && a(), s;
24279
24269
  });
24280
24270
  }, this.onAnalyticPageView = (o, r) => {
24281
- fs(o, r).then((s) => s).catch((s) => {
24271
+ bs(o, r).then((s) => s).catch((s) => {
24282
24272
  throw s.status === 401 && a(), s;
24283
24273
  });
24284
24274
  }, this.beatApi = new si(n, i);
@@ -25285,7 +25275,7 @@ const Yi = g.createContext(null), M0 = ({
25285
25275
  }
25286
25276
  )
25287
25277
  ] })
25288
- ] }), bs = ({ beat: e, clientColorScheme: n, color: i, type: a }) => {
25278
+ ] }), ys = ({ beat: e, clientColorScheme: n, color: i, type: a }) => {
25289
25279
  const o = me(), r = n?.primary_300 ? n.primary_300 : o.palette.primary.main;
25290
25280
  return a === 0 ? /* @__PURE__ */ t(P, { fill: !0, name: "error", sx: { color: i || r } }) : a === 1 && e ? /* @__PURE__ */ t(k0, { beat: e }) : a === 2 && e ? /* @__PURE__ */ t(P0, { beat: e }) : a === 3 && e ? /* @__PURE__ */ t(W0, { beat: e }) : a === 5 && e ? /* @__PURE__ */ t(P, { name: "campaign" }) : /* @__PURE__ */ t(
25291
25281
  P,
@@ -25339,7 +25329,7 @@ const Yi = g.createContext(null), M0 = ({
25339
25329
  variant: h,
25340
25330
  widthOverrides: m
25341
25331
  }) => {
25342
- const { ref: C, inView: f } = Ps({
25332
+ const { ref: C, inView: f } = Hs({
25343
25333
  threshold: dl
25344
25334
  }), { cardsCopy: b } = Kn(), { onEvent: E } = ji(), { updateBeat: S, updateOffer: v } = U0();
25345
25335
  Yn(() => {
@@ -25390,8 +25380,8 @@ const Yi = g.createContext(null), M0 = ({
25390
25380
  description: i?.html_micro_description && i?.html_micro_description.length > 0 ? i.html_micro_description : i.html_description,
25391
25381
  fontColors: { buttonColor: a?.primary_300 },
25392
25382
  heightOverrides: r,
25393
- icon: bs && /* @__PURE__ */ t(
25394
- bs,
25383
+ icon: ys && /* @__PURE__ */ t(
25384
+ ys,
25395
25385
  {
25396
25386
  beat: i,
25397
25387
  clientColorScheme: a,
@@ -25639,7 +25629,7 @@ const Yi = g.createContext(null), M0 = ({
25639
25629
  },
25640
25630
  children: [
25641
25631
  /* @__PURE__ */ t(
25642
- dr,
25632
+ ur,
25643
25633
  {
25644
25634
  sx: {
25645
25635
  fontSize: 18,
@@ -25651,7 +25641,7 @@ const Yi = g.createContext(null), M0 = ({
25651
25641
  }
25652
25642
  ),
25653
25643
  /* @__PURE__ */ l(
25654
- Bs,
25644
+ Ps,
25655
25645
  {
25656
25646
  onClick: s,
25657
25647
  sx: {
@@ -25667,7 +25657,7 @@ const Yi = g.createContext(null), M0 = ({
25667
25657
  underline: "none",
25668
25658
  children: [
25669
25659
  /* @__PURE__ */ t(
25670
- dr,
25660
+ ur,
25671
25661
  {
25672
25662
  sx: {
25673
25663
  color: e?.primary_300,
@@ -25907,7 +25897,7 @@ const Yi = g.createContext(null), M0 = ({
25907
25897
  variant: c,
25908
25898
  widthOverrides: d
25909
25899
  }) => {
25910
- const _ = me(), { ref: u, inView: h } = Ps({
25900
+ const _ = me(), { ref: u, inView: h } = Hs({
25911
25901
  threshold: dl
25912
25902
  }), { cardsCopy: m } = Kn(), { onEvent: C } = ji();
25913
25903
  Yn(() => {
@@ -26290,22 +26280,22 @@ const Yi = g.createContext(null), M0 = ({
26290
26280
  r(xa(h));
26291
26281
  break;
26292
26282
  case Ne.EveryOtherWeek:
26293
- r(zs(h));
26283
+ r(Ys(h));
26294
26284
  break;
26295
26285
  case Ne.EveryMonth:
26296
26286
  r(la(h));
26297
26287
  break;
26298
26288
  case Ne.EveryOtherMonth:
26299
- r(Ys(h));
26289
+ r(js(h));
26300
26290
  break;
26301
26291
  case Ne.EveryQuarter:
26302
26292
  r(Io(h));
26303
26293
  break;
26304
26294
  case Ne.EveryOtherQuarter:
26305
- r(js(h));
26295
+ r(Xs(h));
26306
26296
  break;
26307
26297
  case Ne.EveryYear:
26308
- r(Xs(h));
26298
+ r(qs(h));
26309
26299
  break;
26310
26300
  }
26311
26301
  o(Number(u.target.value));
@@ -26400,7 +26390,7 @@ const Yi = g.createContext(null), M0 = ({
26400
26390
  onSearch: (x) => {
26401
26391
  r({
26402
26392
  ...o,
26403
- custom: (R) => e ? x ? Bo(R, x) : jn(R) : x ? xc(R, x) : Oi(R)
26393
+ custom: (R) => e ? x ? Po(R, x) : jn(R) : x ? xc(R, x) : Oi(R)
26404
26394
  });
26405
26395
  },
26406
26396
  onSelected: (x) => h(x)
@@ -26495,13 +26485,13 @@ const Yi = g.createContext(null), M0 = ({
26495
26485
  gridRow: 1,
26496
26486
  gridColumn: 1,
26497
26487
  zIndex: 2
26498
- }, $a = (e) => e ? { margin: "0 0 -6px -4px" } : void 0, Xo = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Zt, { size: n, sx: { ...$a(e) }, children: /* @__PURE__ */ t(hd, { color: "primary", filled: !0, sx: { fontSize: n, ...Ha } }) }), qo = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Zt, { size: n, sx: { ...$a(e) }, children: /* @__PURE__ */ t(
26488
+ }, $a = (e) => e ? { margin: "0 0 -6px -4px" } : void 0, qo = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Zt, { size: n, sx: { ...$a(e) }, children: /* @__PURE__ */ t(hd, { color: "primary", filled: !0, sx: { fontSize: n, ...Ha } }) }), Zo = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Zt, { size: n, sx: { ...$a(e) }, children: /* @__PURE__ */ t(
26499
26489
  gd,
26500
26490
  {
26501
26491
  filled: !0,
26502
26492
  sx: { color: "categories.income", fontSize: n, ...Ha }
26503
26493
  }
26504
- ) }), Zo = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Zt, { size: n, sx: { ...$a(e) }, children: /* @__PURE__ */ t(Rs, { color: "error", filled: !0, sx: { fontSize: n, ...Ha } }) }), Qo = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Zt, { size: n, sx: { ...$a(e) }, children: /* @__PURE__ */ t(Ca, { color: "success", filled: !0, sx: { fontSize: n, ...Ha } }) }), ub = A(
26494
+ ) }), Qo = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Zt, { size: n, sx: { ...$a(e) }, children: /* @__PURE__ */ t(Os, { color: "error", filled: !0, sx: { fontSize: n, ...Ha } }) }), Jo = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Zt, { size: n, sx: { ...$a(e) }, children: /* @__PURE__ */ t(Ca, { color: "success", filled: !0, sx: { fontSize: n, ...Ha } }) }), ub = A(
26505
26495
  ({ day: e, outsideCurrentMonth: n, ...i }) => {
26506
26496
  const { recurring: a } = I(), { selectedAccountGuids: o } = ue(), { recurrences: r, setSelectedDay: s } = $t(), d = g.useMemo(
26507
26497
  () => r.filter((f) => o.includes(f.accountGuid)),
@@ -26519,10 +26509,10 @@ const Yi = g.createContext(null), M0 = ({
26519
26509
  bo,
26520
26510
  {
26521
26511
  badgeContent: d.length > 0 && /* @__PURE__ */ l(X, { children: [
26522
- u && /* @__PURE__ */ t(Zo, { isOffset: !0 }),
26523
- h && /* @__PURE__ */ t(Qo, { isOffset: !0 }),
26524
- _ && /* @__PURE__ */ t(Xo, { isOffset: !0 }),
26525
- m && /* @__PURE__ */ t(qo, { isOffset: !0 })
26512
+ u && /* @__PURE__ */ t(Qo, { isOffset: !0 }),
26513
+ h && /* @__PURE__ */ t(Jo, { isOffset: !0 }),
26514
+ _ && /* @__PURE__ */ t(qo, { isOffset: !0 }),
26515
+ m && /* @__PURE__ */ t(Zo, { isOffset: !0 })
26526
26516
  ] }),
26527
26517
  overlap: "circular",
26528
26518
  sx: {
@@ -26533,7 +26523,7 @@ const Yi = g.createContext(null), M0 = ({
26533
26523
  }
26534
26524
  },
26535
26525
  children: /* @__PURE__ */ t(
26536
- ks,
26526
+ Gs,
26537
26527
  {
26538
26528
  "aria-label": `
26539
26529
  ${h && a.paid},
@@ -26571,18 +26561,18 @@ const Yi = g.createContext(null), M0 = ({
26571
26561
  justifyContent: "center",
26572
26562
  mt: 12,
26573
26563
  children: [
26574
- /* @__PURE__ */ t(Ji, { icon: Xo, label: e.expense }),
26575
- /* @__PURE__ */ t(Ji, { icon: qo, label: e.income }),
26576
- /* @__PURE__ */ t(Ji, { icon: Zo, label: e.missed }),
26577
- /* @__PURE__ */ t(Ji, { icon: Qo, label: e.paid })
26564
+ /* @__PURE__ */ t(Ji, { icon: qo, label: e.expense }),
26565
+ /* @__PURE__ */ t(Ji, { icon: Zo, label: e.income }),
26566
+ /* @__PURE__ */ t(Ji, { icon: Qo, label: e.missed }),
26567
+ /* @__PURE__ */ t(Ji, { icon: Jo, label: e.paid })
26578
26568
  ]
26579
26569
  }
26580
26570
  );
26581
- }), ys = 58, pl = A(() => {
26571
+ }), Es = 58, pl = A(() => {
26582
26572
  const e = me(), { onEvent: n } = K(), { selectedDay: i } = $t(), [a, o] = g.useState(
26583
- sa(/* @__PURE__ */ new Date()) * hn + ys
26573
+ sa(/* @__PURE__ */ new Date()) * hn + Es
26584
26574
  ), r = (c) => {
26585
- o(sa(c) * hn + ys), n($.RECURRING_TRANSACTIONS_CLICK_CALENDAR_RIGHT);
26575
+ o(sa(c) * hn + Es), n($.RECURRING_TRANSACTIONS_CLICK_CALENDAR_RIGHT);
26586
26576
  }, s = /* @__PURE__ */ t(
26587
26577
  _i,
26588
26578
  {
@@ -26636,14 +26626,14 @@ const Yi = g.createContext(null), M0 = ({
26636
26626
  ] }) });
26637
26627
  }), hb = (e) => {
26638
26628
  if (e.type === Xt.Income)
26639
- return /* @__PURE__ */ t(qo, {});
26629
+ return /* @__PURE__ */ t(Zo, {});
26640
26630
  switch (e.status) {
26641
26631
  case st.Missed:
26642
- return /* @__PURE__ */ t(Zo, {});
26643
- case st.Paid:
26644
26632
  return /* @__PURE__ */ t(Qo, {});
26633
+ case st.Paid:
26634
+ return /* @__PURE__ */ t(Jo, {});
26645
26635
  default:
26646
- return /* @__PURE__ */ t(Xo, {});
26636
+ return /* @__PURE__ */ t(qo, {});
26647
26637
  }
26648
26638
  }, gb = (e, n) => {
26649
26639
  switch (e.status) {
@@ -26668,7 +26658,7 @@ const Yi = g.createContext(null), M0 = ({
26668
26658
  default:
26669
26659
  return n.unknown;
26670
26660
  }
26671
- }, Es = ({
26661
+ }, Ss = ({
26672
26662
  recurrence: e,
26673
26663
  isMini: n = !1,
26674
26664
  onRecurrenceClick: i = () => {
@@ -26733,7 +26723,7 @@ const Yi = g.createContext(null), M0 = ({
26733
26723
  },
26734
26724
  children: [
26735
26725
  u && /* @__PURE__ */ t(Ca, { color: "success", filled: !0, size: 12 }),
26736
- h && /* @__PURE__ */ t(Rs, { color: "error", filled: !0, size: 12 }),
26726
+ h && /* @__PURE__ */ t(Os, { color: "error", filled: !0, size: 12 }),
26737
26727
  /* @__PURE__ */ t(p, { bold: !0, color: "text.secondary", variant: "caption", children: C })
26738
26728
  ]
26739
26729
  }
@@ -26783,7 +26773,7 @@ const Yi = g.createContext(null), M0 = ({
26783
26773
  ),
26784
26774
  e.length === 0 ? /* @__PURE__ */ t(p, { fontStyle: "italic", sx: { py: 24, textAlign: "center" }, children: s.no_activities }) : /* @__PURE__ */ t(ie, { children: n ? e.map((d, _) => /* @__PURE__ */ l(g.Fragment, { children: [
26785
26775
  /* @__PURE__ */ t(
26786
- Es,
26776
+ Ss,
26787
26777
  {
26788
26778
  isMini: n,
26789
26779
  onRecurrenceClick: a,
@@ -26798,7 +26788,7 @@ const Yi = g.createContext(null), M0 = ({
26798
26788
  subheader: /* @__PURE__ */ t(Lt, { sx: { bgcolor: "background.paper", ml: 8, pb: 4, pt: 12 }, children: /* @__PURE__ */ t(p, { bold: !0, variant: "caption", children: re(d.date, ae.DAY_OF_WEEK_MONTH_DAY) }) }),
26799
26789
  sx: { width: "100%" },
26800
26790
  children: d.recurrences.map((u, h) => /* @__PURE__ */ t(g.Fragment, { children: /* @__PURE__ */ t(
26801
- Es,
26791
+ Ss,
26802
26792
  {
26803
26793
  isMini: n,
26804
26794
  onRecurrenceClick: a,
@@ -26811,7 +26801,7 @@ const Yi = g.createContext(null), M0 = ({
26811
26801
  ] }, `recurrence-${_}`)) })
26812
26802
  ] });
26813
26803
  }
26814
- ), Ss = A(
26804
+ ), Ts = A(
26815
26805
  ({ title: e, expected: n, paid: i, missed: a, total: o, onNewClick: r }) => {
26816
26806
  const s = me(), { recurring: c } = I(), d = g.useMemo(() => {
26817
26807
  const _ = [{ color: s.palette.success.main, percentage: `${i / n}` }];
@@ -26866,7 +26856,7 @@ const Yi = g.createContext(null), M0 = ({
26866
26856
  return /* @__PURE__ */ l(jt, { container: !0, sx: { pt: 16, px: 24, spacing: 24 }, children: [
26867
26857
  /* @__PURE__ */ t(jt, { md: !0, sm: 12, width: "100%", children: /* @__PURE__ */ l(y, { gap: 24, children: [
26868
26858
  /* @__PURE__ */ t(
26869
- Ss,
26859
+ Ts,
26870
26860
  {
26871
26861
  expected: r,
26872
26862
  missed: d,
@@ -26876,7 +26866,7 @@ const Yi = g.createContext(null), M0 = ({
26876
26866
  }
26877
26867
  ),
26878
26868
  /* @__PURE__ */ t(
26879
- Ss,
26869
+ Ts,
26880
26870
  {
26881
26871
  expected: c,
26882
26872
  paid: h,
@@ -27126,7 +27116,7 @@ const Yi = g.createContext(null), M0 = ({
27126
27116
  ), m = g.useMemo(() => e.donutData.length > 0 ? e.donutData : [{ id: "0", color: _.palette.border.light, value: 100 }], [e, _]), C = () => {
27127
27117
  a?.(o);
27128
27118
  }, f = u ? 32 : 48;
27129
- return /* @__PURE__ */ t(tc, { data: m, onClick: i, selectedId: o, size: r, children: /* @__PURE__ */ t(y, { alignItems: "center", height: "100%", justifyContent: "center", width: "100%", children: /* @__PURE__ */ l(y, { alignItems: "center", justifyContent: "center", minHeight: r, minWidth: r, children: [
27119
+ return /* @__PURE__ */ t(nc, { data: m, onClick: i, selectedId: o, size: r, children: /* @__PURE__ */ t(y, { alignItems: "center", height: "100%", justifyContent: "center", width: "100%", children: /* @__PURE__ */ l(y, { alignItems: "center", justifyContent: "center", minHeight: r, minWidth: r, children: [
27130
27120
  h && /* @__PURE__ */ l(
27131
27121
  y,
27132
27122
  {
@@ -27141,7 +27131,7 @@ const Yi = g.createContext(null), M0 = ({
27141
27131
  {
27142
27132
  categoryGuid: n ? w.INCOME : h.guid,
27143
27133
  size: c === "mini" ? 24 : f,
27144
- variant: xs.Transparent
27134
+ variant: vs.Transparent
27145
27135
  }
27146
27136
  ),
27147
27137
  /* @__PURE__ */ t(p, { color: "secondary", noWrap: !0, variant: c === "mini" ? "Tiny" : "Body", children: h ? h.name : s })
@@ -27163,7 +27153,7 @@ const Yi = g.createContext(null), M0 = ({
27163
27153
  }
27164
27154
  )
27165
27155
  ] }) }) });
27166
- }, ma = A(fb), Ts = ({ data: e, onSelected: n, selectedId: i }) => /* @__PURE__ */ t(y, { gap: 8, height: "100%", justifyContent: "center", my: "auto", children: e.categoryData.map((a) => /* @__PURE__ */ l(
27156
+ }, ma = A(fb), As = ({ data: e, onSelected: n, selectedId: i }) => /* @__PURE__ */ t(y, { gap: 8, height: "100%", justifyContent: "center", my: "auto", children: e.categoryData.map((a) => /* @__PURE__ */ l(
27167
27157
  y,
27168
27158
  {
27169
27159
  alignItems: "center",
@@ -27255,7 +27245,7 @@ const Yi = g.createContext(null), M0 = ({
27255
27245
  }
27256
27246
  ),
27257
27247
  /* @__PURE__ */ t(
27258
- Ts,
27248
+ As,
27259
27249
  {
27260
27250
  data: m,
27261
27251
  onSelected: b,
@@ -27274,7 +27264,7 @@ const Yi = g.createContext(null), M0 = ({
27274
27264
  totalLabel: n.total_income
27275
27265
  }
27276
27266
  ),
27277
- /* @__PURE__ */ t(Ts, { data: C, onSelected: b, selectedId: d })
27267
+ /* @__PURE__ */ t(As, { data: C, onSelected: b, selectedId: d })
27278
27268
  ] }) })
27279
27269
  ] }) : /* @__PURE__ */ t(ge, { height: 250 });
27280
27270
  }, yb = A(bb), Eb = ({ onPrimaryCtaClick: e, sx: n = {} }) => {
@@ -27419,7 +27409,7 @@ const Yi = g.createContext(null), M0 = ({
27419
27409
  ]
27420
27410
  }
27421
27411
  );
27422
- }, As = A(Ab), Ib = (e) => [
27412
+ }, Is = A(Ab), Ib = (e) => [
27423
27413
  e.palette.chartMono.chartMono5,
27424
27414
  e.palette.chartMono.chartMono4,
27425
27415
  e.palette.chartMono.chartMono3,
@@ -27502,7 +27492,7 @@ const Yi = g.createContext(null), M0 = ({
27502
27492
  )
27503
27493
  ] }),
27504
27494
  m === 0 && /* @__PURE__ */ t(
27505
- As,
27495
+ Is,
27506
27496
  {
27507
27497
  data: v,
27508
27498
  onSelected: D,
@@ -27512,7 +27502,7 @@ const Yi = g.createContext(null), M0 = ({
27512
27502
  }
27513
27503
  ),
27514
27504
  m === 1 && /* @__PURE__ */ t(
27515
- As,
27505
+ Is,
27516
27506
  {
27517
27507
  data: N,
27518
27508
  onSelected: D,
@@ -27738,7 +27728,7 @@ const Ob = (e) => e.reduce((i, a) => {
27738
27728
  view_transactions: "View Transactions"
27739
27729
  }, Vb = ({ onBackClick: e, sx: n }) => {
27740
27730
  const i = it(), { onEvent: a } = K(), { isDesktop: o, isTablet: r, isMobile: s } = ye(), { visibleAccounts: c } = ve(), { loadMonthlyCategoryTotals: d, monthlyCategoryTotals: _, getCategoryName: u } = ze(), { sortedTransactions: h } = Te(), { isCopyLoaded: m, isInitialized: C, selectedAccounts: f, setSelectedAccounts: b } = ue(), { trends: E } = I(), S = i.palette.mode === "dark", [v, N] = g.useState(!1), [x, R] = g.useState(!1), [D, H] = g.useState("Chart"), [O, M] = g.useState(""), [q, U] = g.useState({
27741
- start: ur(qe(qt(/* @__PURE__ */ new Date(), 6)), 1),
27731
+ start: _r(qe(qt(/* @__PURE__ */ new Date(), 6)), 1),
27742
27732
  end: qe(/* @__PURE__ */ new Date())
27743
27733
  });
27744
27734
  g.useEffect(() => {
@@ -27777,7 +27767,7 @@ const Ob = (e) => e.reduce((i, a) => {
27777
27767
  }, [q, s]), J = (Re, ot) => {
27778
27768
  H(ot ?? D), a($.TRENDS_CLICK_TOGGLE);
27779
27769
  }, pe = (Re) => {
27780
- const ot = ur(Re?.[0], 1), Ye = Re?.[1], ce = tu(Ye, ot);
27770
+ const ot = _r(Re?.[0], 1), Ye = Re?.[1], ce = tu(Ye, ot);
27781
27771
  U({ start: ot, end: Ye }), a($.TRENDS_CLICK_DATE, {
27782
27772
  time_period: ce + "M"
27783
27773
  });
@@ -27958,11 +27948,11 @@ const Ob = (e) => e.reduce((i, a) => {
27958
27948
  }, O4 = A(Yb);
27959
27949
  export {
27960
27950
  $ as ANALYTICS_EVENTS,
27961
- ls as AccountApi,
27951
+ ds as AccountApi,
27962
27952
  el as AccountDetailsContent,
27963
- Fo as AccountDetailsHeader,
27964
- Js as AccountFilter,
27965
- Us as AccountIcon,
27953
+ Wo as AccountDetailsHeader,
27954
+ ec as AccountFilter,
27955
+ Vs as AccountIcon,
27966
27956
  ou as AccountIconVariants,
27967
27957
  Af as AccountStore,
27968
27958
  iu as AccountSubType,
@@ -27977,7 +27967,7 @@ export {
27977
27967
  Cu as AnalyticsApi,
27978
27968
  G as ApiEndpoints,
27979
27969
  L0 as AppStore,
27980
- mr as BannerApi,
27970
+ pr as BannerApi,
27981
27971
  X2 as BarChart,
27982
27972
  si as BeatApi,
27983
27973
  K0 as BeatCard,
@@ -27985,14 +27975,14 @@ export {
27985
27975
  y4 as BubbleBudgetsMiniWidget,
27986
27976
  E4 as BubbleBudgetsWidget,
27987
27977
  ku as Calendar,
27988
- ec as CalendarSelectionTypes,
27978
+ tc as CalendarSelectionTypes,
27989
27979
  Q0 as CarouselHeader,
27990
- zr as CashflowApi,
27980
+ Yr as CashflowApi,
27991
27981
  e4 as CashflowMiniWidget,
27992
27982
  sm as CashflowOnboarding,
27993
27983
  dm as CashflowStore,
27994
27984
  r4 as CashflowWidget,
27995
- pr as CategoryApi,
27985
+ Cr as CategoryApi,
27996
27986
  Bn as CategoryColors,
27997
27987
  Ia as CategoryGuidToName,
27998
27988
  w as CategoryGuids,
@@ -28011,22 +28001,22 @@ export {
28011
28001
  on as CurrencyInput,
28012
28002
  je as CurrencyText,
28013
28003
  ae as DATE_FORMATS_INTL,
28014
- Vs as DEFAULT_DONUT_SIZE,
28015
- Ks as DEFAULT_STROKE_WIDTH,
28004
+ Ks as DEFAULT_DONUT_SIZE,
28005
+ zs as DEFAULT_STROKE_WIDTH,
28016
28006
  S4 as Dashboard,
28017
28007
  ta as DashboardLocation,
28018
28008
  Fn as DataRow,
28019
- Tr as DateRangeSelector,
28009
+ Ar as DateRangeSelector,
28020
28010
  kc as DebtsChart,
28021
28011
  up as DebtsStore,
28022
28012
  tp as DebtsTable,
28023
28013
  c4 as DebtsWidget,
28024
28014
  IC as DeviceTab,
28025
28015
  Be as Dialog,
28026
- tc as Donut,
28016
+ nc as Donut,
28027
28017
  oe as Drawer,
28028
28018
  xi as EmptyState,
28029
- Fs as ErrorStatuses,
28019
+ Ws as ErrorStatuses,
28030
28020
  N_ as ExpenseStatus,
28031
28021
  ct as Fetch,
28032
28022
  wt as FieldType,
@@ -28036,7 +28026,7 @@ export {
28036
28026
  qn as GlobalDataContext,
28037
28027
  q2 as GlobalDataProvider,
28038
28028
  m4 as GlobalStore,
28039
- jr as GoalApi,
28029
+ Xr as GoalApi,
28040
28030
  Rp as GoalStore,
28041
28031
  uo as GoalType,
28042
28032
  l4 as GoalsWidget,
@@ -28056,12 +28046,12 @@ export {
28056
28046
  r_ as ListItemWrapper,
28057
28047
  ge as Loader,
28058
28048
  Y2 as LocalizedCopyApi,
28059
- Po as ManageIncome,
28049
+ Ho as ManageIncome,
28060
28050
  Pn as MemberConnectionStatus,
28061
28051
  d4 as MerchantLookup,
28062
28052
  qp as MerchantStore,
28063
28053
  Nt as MetaType,
28064
- $s as MfaStatuses,
28054
+ Fs as MfaStatuses,
28065
28055
  X0 as MicroBeatCarousel,
28066
28056
  Pa as MicroInsightCard,
28067
28057
  Rn as MiniWidgetContainer,
@@ -28073,8 +28063,8 @@ export {
28073
28063
  h1 as NetWorthSummary,
28074
28064
  u4 as NetWorthWidget,
28075
28065
  A4 as NoRelevantInsightsCard,
28076
- Ws as NonConnectedStatuses,
28077
- Cr as NotificationApi,
28066
+ Us as NonConnectedStatuses,
28067
+ fr as NotificationApi,
28078
28068
  g4 as NotificationDrawer,
28079
28069
  N1 as NotificationList,
28080
28070
  Qc as NotificationSettings,
@@ -28083,11 +28073,11 @@ export {
28083
28073
  Mn as ORDINAL_DATE_FORMAT,
28084
28074
  P2 as ORDINAL_MONTH_DAY_YEAR_FORMAT,
28085
28075
  To as PAYMENT_ACCOUNT_TYPES,
28086
- _r as PaymentCategories,
28076
+ hr as PaymentCategories,
28087
28077
  cu as PlanTypes,
28088
28078
  au as ProcessingStatuses,
28089
28079
  yC as ProfileTab,
28090
- Hs as PropertyType,
28080
+ $s as PropertyType,
28091
28081
  $2 as PropertyTypeName,
28092
28082
  F2 as RECURRENCE_COPY,
28093
28083
  st as RecurrenceStatus,
@@ -28103,16 +28093,16 @@ export {
28103
28093
  J2 as ResponsiveButton,
28104
28094
  Ao as SPENDING_ACCOUNT_TYPES,
28105
28095
  D_ as ScheduledPaymentTypes,
28106
- fr as ScheduledPaymentsApi,
28096
+ br as ScheduledPaymentsApi,
28107
28097
  R_ as ScreenSize,
28108
28098
  Ki as SearchBox,
28109
- xr as SelectionBox,
28110
- is as SettingsApi,
28099
+ vr as SelectionBox,
28100
+ as as SettingsApi,
28111
28101
  O1 as SettingsStore,
28112
28102
  Jn as SettingsTabs,
28113
28103
  h4 as SettingsWidget,
28114
28104
  kC as SettingsWidgetContents,
28115
- sc as SingleSegmentDonut,
28105
+ cc as SingleSegmentDonut,
28116
28106
  du as Sizes,
28117
28107
  N4 as SpendingMiniWidget,
28118
28108
  D4 as SpendingWidget,
@@ -28132,7 +28122,7 @@ export {
28132
28122
  pn as TransactionList,
28133
28123
  Na as TransactionRow,
28134
28124
  RC as TransactionRulesTab,
28135
- Ro as TransactionStatus,
28125
+ Oo as TransactionStatus,
28136
28126
  L_ as TransactionStore,
28137
28127
  Q_ as TransactionTable,
28138
28128
  At as TransactionType,
@@ -28143,10 +28133,10 @@ export {
28143
28133
  ZC as UserStore,
28144
28134
  w_ as UserVerification,
28145
28135
  ib as ViewMoreMicroCard,
28146
- br as WidgetApi,
28136
+ yr as WidgetApi,
28147
28137
  Mt as WidgetContainer,
28148
- nc as WidgetContainerContext,
28149
- ic as WidgetContainerProvider,
28138
+ ic as WidgetContainerContext,
28139
+ ac as WidgetContainerProvider,
28150
28140
  I4 as ZeroStateCard,
28151
28141
  sl as ZeroStateIcon,
28152
28142
  nu as analyticsSession,
@@ -28155,12 +28145,12 @@ export {
28155
28145
  _c as exportTransactionsToCSV,
28156
28146
  B as formatCurrency,
28157
28147
  re as formatDate,
28158
- Zs as formatOrdinal,
28148
+ Qs as formatOrdinal,
28159
28149
  Ui as formatPercentage,
28160
- qs as fromTimestampToMonthYear,
28150
+ Zs as fromTimestampToMonthYear,
28161
28151
  Dc as getAccountBalanceDetails,
28162
28152
  Wg as getAccountDetailFields,
28163
- gr as getCategory,
28153
+ mr as getCategory,
28164
28154
  U2 as getCategoryTotalsByParent,
28165
28155
  z2 as getClientTheme,
28166
28156
  gu as getCurrencyCodes,
@@ -28190,7 +28180,7 @@ export {
28190
28180
  Ri as useHoldingStore,
28191
28181
  Vu as useMerchantStore,
28192
28182
  Ku as useNetWorthStore,
28193
- oc as useNotificationStore,
28183
+ rc as useNotificationStore,
28194
28184
  Z2 as usePageView,
28195
28185
  j2 as usePrevious,
28196
28186
  at as useRecurringActivityStore,