@mx-cartographer/experiences 6.1.0-alpha.al20 → 6.1.0-alpha.al22
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 +381 -381
- package/dist/index.es.js.map +1 -1
- package/package.json +2 -1
package/dist/index.es.js
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
import { jsx as e, jsxs as I, Fragment as AA } from "react/jsx-runtime";
|
2
|
-
import h, { useMemo as ha, useRef as
|
2
|
+
import h, { useMemo as ha, useRef as Qo, useEffect as Ct, useState as We } from "react";
|
3
3
|
import { observer as g } from "mobx-react-lite";
|
4
4
|
import L from "@mui/material/Box";
|
5
5
|
import M from "@mui/material/Divider";
|
6
6
|
import nA from "@mui/material/List";
|
7
7
|
import He from "@mui/material/ListSubheader";
|
8
8
|
import hi from "@mui/system/Stack";
|
9
|
-
import { AccountsIcon as la, P as wA, Icon as G, useTokens as Ae, Text as R, H2 as vt, CategoryIcon as Ce, DialogHeader as va, DialogFooter as Ra, Drawer as ua, Footer as Pa, DateRangePicker as
|
9
|
+
import { AccountsIcon as la, P as wA, Icon as G, useTokens as Ae, Text as R, H2 as vt, CategoryIcon as Ce, DialogHeader as va, DialogFooter as Ra, Drawer as ua, Footer as Pa, DateRangePicker as hr, H3 as re, H1 as rt, TextField as nt, IconWeight as Ie, MerchantLogo as Rt, CategoryIconVariants as qo, InstitutionLogo as Oe, ChevronRightIcon as ba, THEMES as lr, createMXTheme as Ha } from "@mxenabled/mxui";
|
10
10
|
import za from "bowser";
|
11
11
|
import { getUnixTime as yA } from "date-fns/getUnixTime";
|
12
12
|
import { intlFormat as Ca } from "date-fns/intlFormat";
|
13
13
|
import { Honeybadger as li } from "@honeybadger-io/react";
|
14
|
-
import
|
14
|
+
import vr from "numeral";
|
15
15
|
import _ from "@mui/material/Button";
|
16
16
|
import Gt from "@mui/material/Tooltip";
|
17
17
|
import TA from "@mui/material/IconButton";
|
@@ -19,7 +19,7 @@ import vn from "@mui/material/FormControlLabel";
|
|
19
19
|
import W from "@mui/material/ListItem";
|
20
20
|
import aA from "@mui/material/ListItemButton";
|
21
21
|
import tA from "@mui/material/ListItemText";
|
22
|
-
import
|
22
|
+
import Go from "@mui/material/Popover";
|
23
23
|
import b from "@mui/material/Stack";
|
24
24
|
import Pi from "@mui/material/Checkbox";
|
25
25
|
import { addMonths as ue } from "date-fns/addMonths";
|
@@ -51,24 +51,24 @@ import { isWithinInterval as Lt } from "date-fns/isWithinInterval";
|
|
51
51
|
import * as Pe from "d3";
|
52
52
|
import { selectAll as Da, interpolateString as ja, arc as ma } from "d3";
|
53
53
|
import { useTheme as se, keyframes as La, ThemeProvider as Oa } from "@mui/material/styles";
|
54
|
-
import { ResponsiveChartContainer as Qa, AreaPlot as qa, LinePlot as Ga, MarkPlot as Ma, BarPlot as Na, ChartsXAxis as Ta, ChartsYAxis as Ya, ChartsReferenceLine as Va, ChartsLegend as Ba, LineChart as
|
54
|
+
import { ResponsiveChartContainer as Qa, AreaPlot as qa, LinePlot as Ga, MarkPlot as Ma, BarPlot as Na, ChartsXAxis as Ta, ChartsYAxis as Ya, ChartsReferenceLine as Va, ChartsLegend as Ba, LineChart as Mo } from "@mui/x-charts";
|
55
55
|
import { Stack as vA, Box as Te, useTheme as ot, Card as Di, CardContent as Sa, Button as Ua, List as Fa, Divider as Wa } from "@mui/material";
|
56
56
|
import ge from "@mui/material/Card";
|
57
57
|
import Xe from "@mui/material/CardContent";
|
58
58
|
import UA from "@mui/material/Grid";
|
59
59
|
import { differenceInCalendarDays as ka } from "date-fns/differenceInCalendarDays";
|
60
60
|
import { endOfToday as gt } from "date-fns/endOfToday";
|
61
|
-
import { endOfYear as
|
62
|
-
import { startOfYear as
|
61
|
+
import { endOfYear as Rr } from "date-fns/endOfYear";
|
62
|
+
import { startOfYear as ur } from "date-fns/startOfYear";
|
63
63
|
import { subDays as Se } from "date-fns/subDays";
|
64
|
-
import { subYears as
|
64
|
+
import { subYears as Pr } from "date-fns/subYears";
|
65
65
|
import Ka from "@mui/material/ButtonGroup";
|
66
66
|
import OA from "@mui/material/Tab";
|
67
67
|
import qe from "@mui/material/Tabs";
|
68
68
|
import ji from "@mui/material/ToggleButton";
|
69
69
|
import jn from "@mui/material/ToggleButtonGroup";
|
70
70
|
import Za from "@mui/material/Dialog";
|
71
|
-
import
|
71
|
+
import No from "@mui/material/DialogContent";
|
72
72
|
import Ja from "@mui/icons-material/ArrowBackOutlined";
|
73
73
|
import st from "@mui/material/CardHeader";
|
74
74
|
import { ConnectWidget as _a, ConnectionsWidget as $a } from "@mxenabled/web-widget-sdk";
|
@@ -79,21 +79,21 @@ import eI from "@mui/material/Radio";
|
|
79
79
|
import Ge from "@mui/material/Avatar";
|
80
80
|
import mA from "@mui/material/ListItemAvatar";
|
81
81
|
import oe from "@mui/material/ListItemIcon";
|
82
|
-
import { AccountBalance as tI, ChevronRight as de, Icon as Pn, Payments as iI, NoteStack as nI, Person as rI, CheckCircle as oI, ExpandLess as sI, ExpandMore as aI, AddBox as
|
82
|
+
import { AccountBalance as tI, ChevronRight as de, Icon as Pn, Payments as iI, NoteStack as nI, Person as rI, CheckCircle as oI, ExpandLess as sI, ExpandMore as aI, AddBox as To, Star as II, Settings as cI } from "@mxenabled/mx-icons";
|
83
83
|
import mi from "@mui/material/Switch";
|
84
84
|
import { makeAutoObservable as LA, runInAction as U, reaction as dI, observable as fI } from "mobx";
|
85
85
|
import { differenceInDays as EI } from "date-fns/differenceInDays";
|
86
86
|
import Li from "@mui/icons-material/ChevronRight";
|
87
87
|
import Oi from "@mui/icons-material/ExpandMore";
|
88
88
|
import { DataGridPro as Mt } from "@mui/x-data-grid-pro";
|
89
|
-
import { intervalToDuration as hI, formatDuration as lI, getDate as
|
89
|
+
import { intervalToDuration as hI, formatDuration as lI, getDate as br, fromUnixTime as ii, startOfMonth as Hr, format as vI, differenceInMonths as RI, isSameDay as uI, subDays as PI, startOfToday as bI, endOfToday as HI } from "date-fns";
|
90
90
|
import ht from "@mui/material/Alert";
|
91
91
|
import Ii from "@mui/material/Snackbar";
|
92
|
-
import { useVirtualizer as
|
93
|
-
import { parseISO as
|
92
|
+
import { useVirtualizer as Yo } from "@tanstack/react-virtual";
|
93
|
+
import { parseISO as Vo } from "date-fns/parseISO";
|
94
94
|
import $e from "@mui/material/Skeleton";
|
95
95
|
import { isAfter as Ot } from "date-fns/isAfter";
|
96
|
-
import { subWeeks as
|
96
|
+
import { subWeeks as zr } from "date-fns/subWeeks";
|
97
97
|
import { formatISO as Ln } from "date-fns/formatISO";
|
98
98
|
import { AdapterDateFns as Xt } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
99
99
|
import { DatePicker as On } from "@mui/x-date-pickers";
|
@@ -101,7 +101,7 @@ import { LocalizationProvider as Nt } from "@mui/x-date-pickers/LocalizationProv
|
|
101
101
|
import $A from "@mui/material/TextField";
|
102
102
|
import { getMonth as jt } from "date-fns/getMonth";
|
103
103
|
import { DateCalendar as Qi } from "@mui/x-date-pickers/DateCalendar";
|
104
|
-
import { formatDistanceToNow as
|
104
|
+
import { formatDistanceToNow as Bo } from "date-fns/formatDistanceToNow";
|
105
105
|
import Qn from "@mui/material/Accordion";
|
106
106
|
import qn from "@mui/material/AccordionDetails";
|
107
107
|
import Gn from "@mui/material/AccordionSummary";
|
@@ -116,17 +116,17 @@ import pI from "@mui/icons-material/Edit";
|
|
116
116
|
import wI from "@mui/material/FormGroup";
|
117
117
|
import yI from "@mui/icons-material/FlagOutlined";
|
118
118
|
import xI from "@mui/icons-material/ReceiptOutlined";
|
119
|
-
import { getWeeksInMonth as
|
120
|
-
import
|
119
|
+
import { getWeeksInMonth as Cr } from "date-fns/getWeeksInMonth";
|
120
|
+
import So from "@mui/material/Badge";
|
121
121
|
import { PickersDay as DI } from "@mui/x-date-pickers/PickersDay";
|
122
122
|
import jI from "@mui/icons-material/AccessTimeFilled";
|
123
123
|
import mI from "@mui/icons-material/MonetizationOn";
|
124
124
|
import qi from "@mui/icons-material/CheckCircle";
|
125
125
|
import { getDate as Zt } from "date-fns/getDate";
|
126
|
-
import { isValid as
|
126
|
+
import { isValid as Uo } from "date-fns/isValid";
|
127
127
|
import it from "@mui/material/Unstable_Grid2";
|
128
128
|
import Gi from "@mui/material/Collapse";
|
129
|
-
import
|
129
|
+
import Fo from "@mui/material/CardActionArea";
|
130
130
|
import LI from "@mui/icons-material/DragHandle";
|
131
131
|
import bn from "@mui/material/AlertTitle";
|
132
132
|
import Mi from "@mui/icons-material/Error";
|
@@ -140,15 +140,15 @@ import NI from "@mui/material/FormControl";
|
|
140
140
|
import TI from "@mui/material/InputLabel";
|
141
141
|
import { LocalizationProvider as YI } from "@mui/x-date-pickers-pro";
|
142
142
|
import VI from "@mui/material/Select";
|
143
|
-
import
|
143
|
+
import Wo from "@mui/material/Link";
|
144
144
|
import BI from "@mui/material/ListItemSecondaryAction";
|
145
145
|
import Bt from "posthog-js";
|
146
|
-
import { useInView as
|
146
|
+
import { useInView as ko } from "react-intersection-observer";
|
147
147
|
import SI from "@mui/material/CardActions";
|
148
148
|
import UI from "@mui/icons-material/ChevronLeft";
|
149
|
-
import
|
149
|
+
import gr from "@mui/material/Typography";
|
150
150
|
import FI from "@mui/material/CssBaseline";
|
151
|
-
import { addSeconds as
|
151
|
+
import { addSeconds as Xr } from "date-fns/addSeconds";
|
152
152
|
import { differenceInCalendarMonths as WI } from "date-fns/differenceInCalendarMonths";
|
153
153
|
const kI = async (A, t, i = "1.0.0", n = "Experiences") => {
|
154
154
|
const r = new hc(A, t), { analytics_session: o } = await r.initializeAnalyticsSession(
|
@@ -361,17 +361,17 @@ const kI = async (A, t, i = "1.0.0", n = "Experiences") => {
|
|
361
361
|
year: "numeric"
|
362
362
|
}
|
363
363
|
}, rA = (A, t) => Ca(new Date(A), Object.assign(t), { locale: lt() });
|
364
|
-
var $ = /* @__PURE__ */ ((A) => (A[A.ANY = 0] = "ANY", A[A.CHECKING = 1] = "CHECKING", A[A.SAVINGS = 2] = "SAVINGS", A[A.LOAN = 3] = "LOAN", A[A.CREDIT_CARD = 4] = "CREDIT_CARD", A[A.INVESTMENT = 5] = "INVESTMENT", A[A.LINE_OF_CREDIT = 6] = "LINE_OF_CREDIT", A[A.MORTGAGE = 7] = "MORTGAGE", A[A.PROPERTY = 8] = "PROPERTY", A[A.CASH = 9] = "CASH", A[A.INSURANCE = 10] = "INSURANCE", A[A.PREPAID = 11] = "PREPAID", A[A.CHECKING_LINE_OF_CREDIT = 12] = "CHECKING_LINE_OF_CREDIT", A[A.DIGITAL_WALLET = 13] = "DIGITAL_WALLET", A))($ || {}), ZI = /* @__PURE__ */ ((A) => (A[A.NONE = 0] = "NONE", A[A.MONEY_MARKET = 1] = "MONEY_MARKET", A[A.CERTIFICATE_OF_DEPOSIT = 2] = "CERTIFICATE_OF_DEPOSIT", A[A.AUTO = 3] = "AUTO", A[A.STUDENT = 4] = "STUDENT", A[A.SMALL_BUSINESS = 5] = "SMALL_BUSINESS", A[A.PERSONAL = 6] = "PERSONAL", A[A.PERSONAL_WITH_COLLATERAL = 7] = "PERSONAL_WITH_COLLATERAL", A[A.HOME_EQUITY = 8] = "HOME_EQUITY", A[A.PLAN_401_K = 9] = "PLAN_401_K", A[A.PLAN_403_B = 10] = "PLAN_403_B", A[A.PLAN_529 = 11] = "PLAN_529", A[A.IRA = 12] = "IRA", A[A.ROLLOVER_IRA = 13] = "ROLLOVER_IRA", A[A.ROTH_IRA = 14] = "ROTH_IRA", A[A.TAXABLE = 15] = "TAXABLE", A[A.NON_TAXABLE = 16] = "NON_TAXABLE", A[A.BROKERAGE = 17] = "BROKERAGE", A[A.TRUST = 18] = "TRUST", A[A.UNIFORM_GIFTS_TO_MINORS_ACT = 19] = "UNIFORM_GIFTS_TO_MINORS_ACT", A[A.PLAN_457 = 20] = "PLAN_457", A[A.PENSION = 21] = "PENSION", A[A.EMPLOYEE_STOCK_OWNERSHIP_PLAN = 22] = "EMPLOYEE_STOCK_OWNERSHIP_PLAN", A[A.SIMPLIFIED_EMPLOYEE_PENSION = 23] = "SIMPLIFIED_EMPLOYEE_PENSION", A[A.SIMPLE_IRA = 24] = "SIMPLE_IRA", A[A.BOAT = 25] = "BOAT", A[A.POWERSPORTS = 26] = "POWERSPORTS", A[A.RV = 27] = "RV", A[A.HELOC = 28] = "HELOC", A[A.PLAN_ROTH_401_K = 29] = "PLAN_ROTH_401_K", A[A.FIXED_ANNUITY = 30] = "FIXED_ANNUITY", A[A.VARIABLE_ANNUITY = 31] = "VARIABLE_ANNUITY", A[A.VEHICLE_INSURANCE = 32] = "VEHICLE_INSURANCE", A[A.DISABILITY = 33] = "DISABILITY", A[A.HEALTH = 34] = "HEALTH", A[A.LONG_TERM_CARE = 35] = "LONG_TERM_CARE", A[A.PROPERTY_AND_CASUALTY = 36] = "PROPERTY_AND_CASUALTY", A[A.UNIVERSAL_LIFE = 37] = "UNIVERSAL_LIFE", A[A.TERM_LIFE = 38] = "TERM_LIFE", A[A.WHOLE_LIFE = 39] = "WHOLE_LIFE", A[A.ACCIDENTAL_DEATH_AND_DISMEMBERMENT = 40] = "ACCIDENTAL_DEATH_AND_DISMEMBERMENT", A[A.VARIABLE_UNIVERSAL_LIFE = 41] = "VARIABLE_UNIVERSAL_LIFE", A[A.HSA = 42] = "HSA", A[A.TAX_FREE_SAVINGS_ACCOUNT = 43] = "TAX_FREE_SAVINGS_ACCOUNT", A[A.INDIVIDUAL = 44] = "INDIVIDUAL", A[A.REGISTERED_RETIREMENT_INCOME_FUND = 45] = "REGISTERED_RETIREMENT_INCOME_FUND", A[A.CASH_MANAGEMENT_ACCOUNT = 46] = "CASH_MANAGEMENT_ACCOUNT", A[A.EMPLOYEE_STOCK_PURCHASE_PLAN = 47] = "EMPLOYEE_STOCK_PURCHASE_PLAN", A[A.REGISTERED_EDUCATION_SAVINGS_PLAN = 48] = "REGISTERED_EDUCATION_SAVINGS_PLAN", A[A.PROFIT_SHARING_PLAN = 49] = "PROFIT_SHARING_PLAN", A[A.UNIFORM_TRANSFER_TO_MINORS_ACT = 50] = "UNIFORM_TRANSFER_TO_MINORS_ACT", A[A.PLAN_401_A = 51] = "PLAN_401_A", A[A.SARSEP_IRA = 52] = "SARSEP_IRA", A[A.FIXED_ANNUITY_TRADITIONAL_IRA = 53] = "FIXED_ANNUITY_TRADITIONAL_IRA", A[A.VARIABLE_ANNUITY_TRADITIONAL_IRA = 54] = "VARIABLE_ANNUITY_TRADITIONAL_IRA", A[A.SEPP_IRA = 55] = "SEPP_IRA", A[A.INHERITED_TRADITIONAL_IRA = 56] = "INHERITED_TRADITIONAL_IRA", A[A.FIXED_ANNUITY_ROTH_IRA = 57] = "FIXED_ANNUITY_ROTH_IRA", A[A.VARIABLE_ANNUITY_ROTH_IRA = 58] = "VARIABLE_ANNUITY_ROTH_IRA", A[A.INHERITED_ROTH_IRA = 59] = "INHERITED_ROTH_IRA", A[A.COVERDELL = 60] = "COVERDELL", A[A.ADVISORY_ACCOUNT = 61] = "ADVISORY_ACCOUNT", A[A.BROKERAGE_MARGIN = 62] = "BROKERAGE_MARGIN", A[A.CHARITABLE_GIFT_ACCOUNT = 63] = "CHARITABLE_GIFT_ACCOUNT", A[A.CHURCH_ACCOUNT = 64] = "CHURCH_ACCOUNT", A[A.CONSERVATORSHIP = 65] = "CONSERVATORSHIP", A[A.CUSTODIAL = 66] = "CUSTODIAL", A[A.DEFINED_BENEFIT_PLAN = 67] = "DEFINED_BENEFIT_PLAN", A[A.DEFINED_CONTRIBUTION_PLAN = 68] = "DEFINED_CONTRIBUTION_PLAN", A[A.EDUCATIONAL = 69] = "EDUCATIONAL", A[A.ESTATE = 70] = "ESTATE", A[A.EXECUTOR = 71] = "EXECUTOR", A[A.GROUP_RETIREMENT_SAVINGS_PLAN = 72] = "GROUP_RETIREMENT_SAVINGS_PLAN", A[A.GUARANTEED_INVESTMENT_CERTIFICATE = 73] = "GUARANTEED_INVESTMENT_CERTIFICATE", A[A.HRA = 74] = "HRA", A[A.INDEXED_ANNUITY = 75] = "INDEXED_ANNUITY", A[A.INVESTMENT_CLUB = 76] = "INVESTMENT_CLUB", A[A.IRREVOCABLE_TRUST = 77] = "IRREVOCABLE_TRUST", A[A.JOINT_TENANTS_BY_ENTIRITY = 78] = "JOINT_TENANTS_BY_ENTIRITY", A[A.JOINT_TENANTS_COMMUNITY_PROPERTY = 79] = "JOINT_TENANTS_COMMUNITY_PROPERTY", A[A.JOINT_TENANTS_IN_COMMON = 80] = "JOINT_TENANTS_IN_COMMON", A[A.JOINT_TENANTS_WITH_RIGHTS_OF_SURVIVORSHIP = 81] = "JOINT_TENANTS_WITH_RIGHTS_OF_SURVIVORSHIP", A[A.KEOUGH_PLAN = 82] = "KEOUGH_PLAN", A[A.LIFE_INCOME_FUND = 83] = "LIFE_INCOME_FUND", A[A.LIVING_TRUST = 84] = "LIVING_TRUST", A[A.LOCKED_IN_RETIREMENT_ACCOUNT = 85] = "LOCKED_IN_RETIREMENT_ACCOUNT", A[A.LOCKED_IN_RETIREMENT_INVESTMENT_FUND = 86] = "LOCKED_IN_RETIREMENT_INVESTMENT_FUND", A[A.LOCKED_IN_RETIREMENT_SAVINGS_ACCOUNT = 87] = "LOCKED_IN_RETIREMENT_SAVINGS_ACCOUNT", A[A.MONEY_PURCHASE_PLAN = 88] = "MONEY_PURCHASE_PLAN", A[A.PARTNERSHIP = 89] = "PARTNERSHIP", A[A.PLAN_409_A = 90] = "PLAN_409_A", A[A.PLAN_ROTH_403_B = 91] = "PLAN_ROTH_403_B", A[A.REGISTERED_DISABILITY_SAVINGS_PLAN = 92] = "REGISTERED_DISABILITY_SAVINGS_PLAN", A[A.REGISTERED_LOCKED_IN_SAVINGS_PLAN = 93] = "REGISTERED_LOCKED_IN_SAVINGS_PLAN", A[A.REGISTERED_PENSION_PLAN = 94] = "REGISTERED_PENSION_PLAN", A[A.REGISTERED_RETIREMENT_SAVINGS_PLAN = 95] = "REGISTERED_RETIREMENT_SAVINGS_PLAN", A[A.REVOCABLE_TRUST = 96] = "REVOCABLE_TRUST", A[A.ROTH_CONVERSION = 97] = "ROTH_CONVERSION", A[A.SOLE_PROPRIETORSHIP = 98] = "SOLE_PROPRIETORSHIP", A[A.SPOUSAL_IRA = 99] = "SPOUSAL_IRA", A[A.SPOUSAL_ROTH_IRA = 100] = "SPOUSAL_ROTH_IRA", A[A.TESTAMENTARY_TRUST = 101] = "TESTAMENTARY_TRUST", A[A.THRIFT_SAVINGS_PLAN = 102] = "THRIFT_SAVINGS_PLAN", A[A.INHERITED_ANNUITY = 103] = "INHERITED_ANNUITY", A[A.CORPORATE_ACCOUNT = 104] = "CORPORATE_ACCOUNT", A[A.LIMITED_LIABILITY_ACCOUNT = 105] = "LIMITED_LIABILITY_ACCOUNT", A[A.HSA_SAVINGS = 106] = "HSA_SAVINGS", A[A.HSA_CHECKING = 107] = "HSA_CHECKING", A))(ZI || {}),
|
364
|
+
var $ = /* @__PURE__ */ ((A) => (A[A.ANY = 0] = "ANY", A[A.CHECKING = 1] = "CHECKING", A[A.SAVINGS = 2] = "SAVINGS", A[A.LOAN = 3] = "LOAN", A[A.CREDIT_CARD = 4] = "CREDIT_CARD", A[A.INVESTMENT = 5] = "INVESTMENT", A[A.LINE_OF_CREDIT = 6] = "LINE_OF_CREDIT", A[A.MORTGAGE = 7] = "MORTGAGE", A[A.PROPERTY = 8] = "PROPERTY", A[A.CASH = 9] = "CASH", A[A.INSURANCE = 10] = "INSURANCE", A[A.PREPAID = 11] = "PREPAID", A[A.CHECKING_LINE_OF_CREDIT = 12] = "CHECKING_LINE_OF_CREDIT", A[A.DIGITAL_WALLET = 13] = "DIGITAL_WALLET", A))($ || {}), ZI = /* @__PURE__ */ ((A) => (A[A.NONE = 0] = "NONE", A[A.MONEY_MARKET = 1] = "MONEY_MARKET", A[A.CERTIFICATE_OF_DEPOSIT = 2] = "CERTIFICATE_OF_DEPOSIT", A[A.AUTO = 3] = "AUTO", A[A.STUDENT = 4] = "STUDENT", A[A.SMALL_BUSINESS = 5] = "SMALL_BUSINESS", A[A.PERSONAL = 6] = "PERSONAL", A[A.PERSONAL_WITH_COLLATERAL = 7] = "PERSONAL_WITH_COLLATERAL", A[A.HOME_EQUITY = 8] = "HOME_EQUITY", A[A.PLAN_401_K = 9] = "PLAN_401_K", A[A.PLAN_403_B = 10] = "PLAN_403_B", A[A.PLAN_529 = 11] = "PLAN_529", A[A.IRA = 12] = "IRA", A[A.ROLLOVER_IRA = 13] = "ROLLOVER_IRA", A[A.ROTH_IRA = 14] = "ROTH_IRA", A[A.TAXABLE = 15] = "TAXABLE", A[A.NON_TAXABLE = 16] = "NON_TAXABLE", A[A.BROKERAGE = 17] = "BROKERAGE", A[A.TRUST = 18] = "TRUST", A[A.UNIFORM_GIFTS_TO_MINORS_ACT = 19] = "UNIFORM_GIFTS_TO_MINORS_ACT", A[A.PLAN_457 = 20] = "PLAN_457", A[A.PENSION = 21] = "PENSION", A[A.EMPLOYEE_STOCK_OWNERSHIP_PLAN = 22] = "EMPLOYEE_STOCK_OWNERSHIP_PLAN", A[A.SIMPLIFIED_EMPLOYEE_PENSION = 23] = "SIMPLIFIED_EMPLOYEE_PENSION", A[A.SIMPLE_IRA = 24] = "SIMPLE_IRA", A[A.BOAT = 25] = "BOAT", A[A.POWERSPORTS = 26] = "POWERSPORTS", A[A.RV = 27] = "RV", A[A.HELOC = 28] = "HELOC", A[A.PLAN_ROTH_401_K = 29] = "PLAN_ROTH_401_K", A[A.FIXED_ANNUITY = 30] = "FIXED_ANNUITY", A[A.VARIABLE_ANNUITY = 31] = "VARIABLE_ANNUITY", A[A.VEHICLE_INSURANCE = 32] = "VEHICLE_INSURANCE", A[A.DISABILITY = 33] = "DISABILITY", A[A.HEALTH = 34] = "HEALTH", A[A.LONG_TERM_CARE = 35] = "LONG_TERM_CARE", A[A.PROPERTY_AND_CASUALTY = 36] = "PROPERTY_AND_CASUALTY", A[A.UNIVERSAL_LIFE = 37] = "UNIVERSAL_LIFE", A[A.TERM_LIFE = 38] = "TERM_LIFE", A[A.WHOLE_LIFE = 39] = "WHOLE_LIFE", A[A.ACCIDENTAL_DEATH_AND_DISMEMBERMENT = 40] = "ACCIDENTAL_DEATH_AND_DISMEMBERMENT", A[A.VARIABLE_UNIVERSAL_LIFE = 41] = "VARIABLE_UNIVERSAL_LIFE", A[A.HSA = 42] = "HSA", A[A.TAX_FREE_SAVINGS_ACCOUNT = 43] = "TAX_FREE_SAVINGS_ACCOUNT", A[A.INDIVIDUAL = 44] = "INDIVIDUAL", A[A.REGISTERED_RETIREMENT_INCOME_FUND = 45] = "REGISTERED_RETIREMENT_INCOME_FUND", A[A.CASH_MANAGEMENT_ACCOUNT = 46] = "CASH_MANAGEMENT_ACCOUNT", A[A.EMPLOYEE_STOCK_PURCHASE_PLAN = 47] = "EMPLOYEE_STOCK_PURCHASE_PLAN", A[A.REGISTERED_EDUCATION_SAVINGS_PLAN = 48] = "REGISTERED_EDUCATION_SAVINGS_PLAN", A[A.PROFIT_SHARING_PLAN = 49] = "PROFIT_SHARING_PLAN", A[A.UNIFORM_TRANSFER_TO_MINORS_ACT = 50] = "UNIFORM_TRANSFER_TO_MINORS_ACT", A[A.PLAN_401_A = 51] = "PLAN_401_A", A[A.SARSEP_IRA = 52] = "SARSEP_IRA", A[A.FIXED_ANNUITY_TRADITIONAL_IRA = 53] = "FIXED_ANNUITY_TRADITIONAL_IRA", A[A.VARIABLE_ANNUITY_TRADITIONAL_IRA = 54] = "VARIABLE_ANNUITY_TRADITIONAL_IRA", A[A.SEPP_IRA = 55] = "SEPP_IRA", A[A.INHERITED_TRADITIONAL_IRA = 56] = "INHERITED_TRADITIONAL_IRA", A[A.FIXED_ANNUITY_ROTH_IRA = 57] = "FIXED_ANNUITY_ROTH_IRA", A[A.VARIABLE_ANNUITY_ROTH_IRA = 58] = "VARIABLE_ANNUITY_ROTH_IRA", A[A.INHERITED_ROTH_IRA = 59] = "INHERITED_ROTH_IRA", A[A.COVERDELL = 60] = "COVERDELL", A[A.ADVISORY_ACCOUNT = 61] = "ADVISORY_ACCOUNT", A[A.BROKERAGE_MARGIN = 62] = "BROKERAGE_MARGIN", A[A.CHARITABLE_GIFT_ACCOUNT = 63] = "CHARITABLE_GIFT_ACCOUNT", A[A.CHURCH_ACCOUNT = 64] = "CHURCH_ACCOUNT", A[A.CONSERVATORSHIP = 65] = "CONSERVATORSHIP", A[A.CUSTODIAL = 66] = "CUSTODIAL", A[A.DEFINED_BENEFIT_PLAN = 67] = "DEFINED_BENEFIT_PLAN", A[A.DEFINED_CONTRIBUTION_PLAN = 68] = "DEFINED_CONTRIBUTION_PLAN", A[A.EDUCATIONAL = 69] = "EDUCATIONAL", A[A.ESTATE = 70] = "ESTATE", A[A.EXECUTOR = 71] = "EXECUTOR", A[A.GROUP_RETIREMENT_SAVINGS_PLAN = 72] = "GROUP_RETIREMENT_SAVINGS_PLAN", A[A.GUARANTEED_INVESTMENT_CERTIFICATE = 73] = "GUARANTEED_INVESTMENT_CERTIFICATE", A[A.HRA = 74] = "HRA", A[A.INDEXED_ANNUITY = 75] = "INDEXED_ANNUITY", A[A.INVESTMENT_CLUB = 76] = "INVESTMENT_CLUB", A[A.IRREVOCABLE_TRUST = 77] = "IRREVOCABLE_TRUST", A[A.JOINT_TENANTS_BY_ENTIRITY = 78] = "JOINT_TENANTS_BY_ENTIRITY", A[A.JOINT_TENANTS_COMMUNITY_PROPERTY = 79] = "JOINT_TENANTS_COMMUNITY_PROPERTY", A[A.JOINT_TENANTS_IN_COMMON = 80] = "JOINT_TENANTS_IN_COMMON", A[A.JOINT_TENANTS_WITH_RIGHTS_OF_SURVIVORSHIP = 81] = "JOINT_TENANTS_WITH_RIGHTS_OF_SURVIVORSHIP", A[A.KEOUGH_PLAN = 82] = "KEOUGH_PLAN", A[A.LIFE_INCOME_FUND = 83] = "LIFE_INCOME_FUND", A[A.LIVING_TRUST = 84] = "LIVING_TRUST", A[A.LOCKED_IN_RETIREMENT_ACCOUNT = 85] = "LOCKED_IN_RETIREMENT_ACCOUNT", A[A.LOCKED_IN_RETIREMENT_INVESTMENT_FUND = 86] = "LOCKED_IN_RETIREMENT_INVESTMENT_FUND", A[A.LOCKED_IN_RETIREMENT_SAVINGS_ACCOUNT = 87] = "LOCKED_IN_RETIREMENT_SAVINGS_ACCOUNT", A[A.MONEY_PURCHASE_PLAN = 88] = "MONEY_PURCHASE_PLAN", A[A.PARTNERSHIP = 89] = "PARTNERSHIP", A[A.PLAN_409_A = 90] = "PLAN_409_A", A[A.PLAN_ROTH_403_B = 91] = "PLAN_ROTH_403_B", A[A.REGISTERED_DISABILITY_SAVINGS_PLAN = 92] = "REGISTERED_DISABILITY_SAVINGS_PLAN", A[A.REGISTERED_LOCKED_IN_SAVINGS_PLAN = 93] = "REGISTERED_LOCKED_IN_SAVINGS_PLAN", A[A.REGISTERED_PENSION_PLAN = 94] = "REGISTERED_PENSION_PLAN", A[A.REGISTERED_RETIREMENT_SAVINGS_PLAN = 95] = "REGISTERED_RETIREMENT_SAVINGS_PLAN", A[A.REVOCABLE_TRUST = 96] = "REVOCABLE_TRUST", A[A.ROTH_CONVERSION = 97] = "ROTH_CONVERSION", A[A.SOLE_PROPRIETORSHIP = 98] = "SOLE_PROPRIETORSHIP", A[A.SPOUSAL_IRA = 99] = "SPOUSAL_IRA", A[A.SPOUSAL_ROTH_IRA = 100] = "SPOUSAL_ROTH_IRA", A[A.TESTAMENTARY_TRUST = 101] = "TESTAMENTARY_TRUST", A[A.THRIFT_SAVINGS_PLAN = 102] = "THRIFT_SAVINGS_PLAN", A[A.INHERITED_ANNUITY = 103] = "INHERITED_ANNUITY", A[A.CORPORATE_ACCOUNT = 104] = "CORPORATE_ACCOUNT", A[A.LIMITED_LIABILITY_ACCOUNT = 105] = "LIMITED_LIABILITY_ACCOUNT", A[A.HSA_SAVINGS = 106] = "HSA_SAVINGS", A[A.HSA_CHECKING = 107] = "HSA_CHECKING", A))(ZI || {}), Ko = /* @__PURE__ */ ((A) => (A[A.REAL_ESTATE = 0] = "REAL_ESTATE", A[A.VEHICLE = 1] = "VEHICLE", A[A.ART = 2] = "ART", A[A.JEWELRY = 3] = "JEWELRY", A[A.FURNITURE = 4] = "FURNITURE", A[A.APPLIANCES = 5] = "APPLIANCES", A[A.COMPUTER = 6] = "COMPUTER", A[A.ELECTRONICS = 7] = "ELECTRONICS", A[A.SPORTS_EQUIPMENT = 8] = "SPORTS_EQUIPMENT", A[A.MISCELLANEOUS = 9] = "MISCELLANEOUS", A))(Ko || {}), ne = /* @__PURE__ */ ((A) => (A[A.CREATED = 0] = "CREATED", A[A.PREVENTED = 1] = "PREVENTED", A[A.DENIED = 2] = "DENIED", A[A.CHALLENGED = 3] = "CHALLENGED", A[A.REJECTED = 4] = "REJECTED", A[A.LOCKED = 5] = "LOCKED", A[A.CONNECTED = 6] = "CONNECTED", A[A.IMPEDED = 7] = "IMPEDED", A[A.RECONNECTED = 8] = "RECONNECTED", A[A.DEGRADED = 9] = "DEGRADED", A[A.DISCONNECTED = 10] = "DISCONNECTED", A[A.DISCONTINUED = 11] = "DISCONTINUED", A[A.CLOSED = 12] = "CLOSED", A[A.DELAYED = 13] = "DELAYED", A[A.FAILED = 14] = "FAILED", A[A.UPDATED = 15] = "UPDATED", A[A.DISABLED = 16] = "DISABLED", A[A.IMPORTED = 17] = "IMPORTED", A[A.RESUMED = 18] = "RESUMED", A[A.EXPIRED = 19] = "EXPIRED", A[A.IMPAIRED = 20] = "IMPAIRED", A[A.PENDING = 21] = "PENDING", A))(ne || {});
|
365
365
|
const JI = [
|
366
366
|
0,
|
367
367
|
15,
|
368
368
|
18
|
369
369
|
/* RESUMED */
|
370
|
-
],
|
370
|
+
], Zo = [
|
371
371
|
3,
|
372
372
|
4
|
373
373
|
/* REJECTED */
|
374
|
-
],
|
374
|
+
], Jo = [
|
375
375
|
1,
|
376
376
|
2,
|
377
377
|
5,
|
@@ -387,7 +387,7 @@ const JI = [
|
|
387
387
|
19,
|
388
388
|
20
|
389
389
|
/* IMPAIRED */
|
390
|
-
],
|
390
|
+
], _o = [...Jo, ...Zo];
|
391
391
|
var zt = /* @__PURE__ */ ((A) => (A.Connected = "Connected", A.Error = "Error", A.Processing = "Processing", A.RequiresMfa = "RequiresMfa", A))(zt || {});
|
392
392
|
const zP = {
|
393
393
|
3: "Challenged",
|
@@ -421,7 +421,7 @@ const zP = {
|
|
421
421
|
11: "Prepaid",
|
422
422
|
8: "Property",
|
423
423
|
2: "Savings"
|
424
|
-
},
|
424
|
+
}, $o = {
|
425
425
|
0: "account_balance",
|
426
426
|
9: "monetization_on",
|
427
427
|
1: "checkbook",
|
@@ -606,7 +606,7 @@ const zP = {
|
|
606
606
|
DENTIST: "CAT-ee48b740-c981-778b-3c02-04540dec0262",
|
607
607
|
BONUS: "CAT-f52f2a88-2cb6-04e4-e36a-58f7b7c6a798",
|
608
608
|
PET_FOOD_SUPPLIES: "CAT-fbcdb437-2533-2857-1d1a-0624c9d9e1dc"
|
609
|
-
},
|
609
|
+
}, pr = [
|
610
610
|
p.CREDIT_CARD_PAYMENT,
|
611
611
|
p.MORTGAGE_PAYMENT,
|
612
612
|
p.AUTO_PAYMENT
|
@@ -777,7 +777,7 @@ const zP = {
|
|
777
777
|
[p.TRAVEL]: "airplane_ticket",
|
778
778
|
[p.UNCATEGORIZED]: "category",
|
779
779
|
UNKNOWN: "help"
|
780
|
-
},
|
780
|
+
}, wr = 9999999999e-2;
|
781
781
|
var zi = /* @__PURE__ */ ((A) => (A.CAD = "CAD", A.USD = "USD", A))(zi || {}), F = /* @__PURE__ */ ((A) => (A[A.Unknown = 0] = "Unknown", A[A.EveryWeek = 1] = "EveryWeek", A[A.EveryOtherWeek = 2] = "EveryOtherWeek", A[A.EveryMonth = 3] = "EveryMonth", A[A.EveryOtherMonth = 4] = "EveryOtherMonth", A[A.EveryQuarter = 5] = "EveryQuarter", A[A.EveryOtherQuarter = 6] = "EveryOtherQuarter", A[A.EveryYear = 7] = "EveryYear", A))(F || {});
|
782
782
|
const gP = [
|
783
783
|
{ id: 0, copy: "frequency_unknown" },
|
@@ -794,18 +794,18 @@ const gP = [
|
|
794
794
|
SUCCESS: "SUCCESS"
|
795
795
|
};
|
796
796
|
var ec = /* @__PURE__ */ ((A) => (A[A.SpendingPlan = 0] = "SpendingPlan", A[A.Budgets = 1] = "Budgets", A))(ec || {}), tc = /* @__PURE__ */ ((A) => (A[A.RecurringExpense = 0] = "RecurringExpense", A[A.PlannedExpense = 1] = "PlannedExpense", A[A.Other = 2] = "Other", A[A.Income = 3] = "Income", A))(tc || {});
|
797
|
-
const
|
797
|
+
const As = 48, es = 4;
|
798
798
|
var ic = /* @__PURE__ */ ((A) => (A.Small = "small", A.Medium = "medium", A.Large = "large", A))(ic || {});
|
799
|
-
const St = 44,
|
799
|
+
const St = 44, yr = (A, t) => A.find((i) => i.guid === t), nc = (A, t) => A.find((i) => i.guid === t), rc = (A, t) => {
|
800
800
|
const i = A.find((n) => n.subCategories.find((r) => r.guid === t));
|
801
801
|
if (i)
|
802
802
|
return i.subCategories.find((n) => n.guid === t);
|
803
803
|
}, pP = (A, t) => {
|
804
804
|
const i = [];
|
805
805
|
for (const n of t) {
|
806
|
-
const r =
|
806
|
+
const r = yr(A, n.category_guid);
|
807
807
|
if (!r) continue;
|
808
|
-
const o = r.parent_guid ?? r.guid, s =
|
808
|
+
const o = r.parent_guid ?? r.guid, s = yr(A, o);
|
809
809
|
if (!s) continue;
|
810
810
|
const a = {
|
811
811
|
amount: n.total,
|
@@ -912,9 +912,9 @@ class JA {
|
|
912
912
|
const N = (A, t, i) => {
|
913
913
|
switch (lt()) {
|
914
914
|
case "fr-ca":
|
915
|
-
return
|
915
|
+
return vr(A).format(`${t} $`, i);
|
916
916
|
default:
|
917
|
-
return
|
917
|
+
return vr(A).format(`$${t}`, i);
|
918
918
|
}
|
919
919
|
}, sc = () => {
|
920
920
|
switch (lt()) {
|
@@ -927,7 +927,7 @@ const N = (A, t, i) => {
|
|
927
927
|
style: "percent",
|
928
928
|
minimumFractionDigits: 2,
|
929
929
|
maximumFractionDigits: 2
|
930
|
-
}, Ti = (A, t = ac) => Hn(A) ? new Intl.NumberFormat(lt(), t).format(Number(A)) : A, Ic = (A) => new Intl.PluralRules(lt(), A),
|
930
|
+
}, Ti = (A, t = ac) => Hn(A) ? new Intl.NumberFormat(lt(), t).format(Number(A)) : A, Ic = (A) => new Intl.PluralRules(lt(), A), ts = (A, t = { type: "ordinal" }, i = {
|
931
931
|
one: "st",
|
932
932
|
two: "nd",
|
933
933
|
few: "rd",
|
@@ -944,7 +944,7 @@ const N = (A, t, i) => {
|
|
944
944
|
}, cc = (A) => {
|
945
945
|
const t = Sn(A);
|
946
946
|
return Dt(t, 1);
|
947
|
-
},
|
947
|
+
}, xr = (A) => {
|
948
948
|
let t = un(dA(), A.getDate());
|
949
949
|
for (; qA(t, dA()); )
|
950
950
|
t = ue(t, 1);
|
@@ -952,18 +952,18 @@ const N = (A, t, i) => {
|
|
952
952
|
}, dc = (A) => {
|
953
953
|
const t = Sn(A);
|
954
954
|
return ue(t, 1);
|
955
|
-
},
|
955
|
+
}, is = (A) => {
|
956
956
|
let t = Ht(A, 1);
|
957
957
|
for (; qA(t, dA()); )
|
958
958
|
t = Ht(t, 1);
|
959
959
|
return t;
|
960
960
|
}, fc = (A) => {
|
961
|
-
const t =
|
961
|
+
const t = is(A);
|
962
962
|
return Ht(t, 1);
|
963
963
|
}, Ec = (A) => ei(A, 1), Jt = (A) => {
|
964
964
|
const t = jA(A);
|
965
965
|
return new Date(t.getUTCFullYear(), t.getUTCMonth(), t.getUTCDate());
|
966
|
-
}, Yi = (A) => rA(jA(A), eA.DAY_OF_WEEK_MONTH_DAY),
|
966
|
+
}, Yi = (A) => rA(jA(A), eA.DAY_OF_WEEK_MONTH_DAY), ns = (A) => A ? rA(jA(A), eA.MONTH_YEAR) : "";
|
967
967
|
class hc {
|
968
968
|
fetchInstance;
|
969
969
|
constructor(t, i) {
|
@@ -992,7 +992,7 @@ class hc {
|
|
992
992
|
throw i;
|
993
993
|
});
|
994
994
|
}
|
995
|
-
class
|
995
|
+
class Dr {
|
996
996
|
fetchInstance;
|
997
997
|
constructor(t) {
|
998
998
|
this.fetchInstance = new JA(t, "", {
|
@@ -1026,7 +1026,7 @@ class Qt {
|
|
1026
1026
|
updateBeat = async (t) => this.fetchInstance.put(`${Q.BEATS}/${t.guid}`, t).then((i) => i.beat);
|
1027
1027
|
updateOffer = async (t) => this.fetchInstance.put(`${Q.OFFERS}/${t.guid}`, t).then((i) => i.beat);
|
1028
1028
|
}
|
1029
|
-
class
|
1029
|
+
class jr {
|
1030
1030
|
fetchInstance;
|
1031
1031
|
constructor(t, i) {
|
1032
1032
|
this.fetchInstance = new JA(t, i);
|
@@ -1066,7 +1066,7 @@ class xP {
|
|
1066
1066
|
getLocalizedCopy = async (t) => this.fetchInstance.post(Q.LOCALIZED_COPY, t).then((i) => i);
|
1067
1067
|
getLocalizedContent = async (t) => this.fetchInstance.post(`${Q.LOCALIZED_CONTENT}/${t}`).then((i) => i);
|
1068
1068
|
}
|
1069
|
-
class
|
1069
|
+
class mr {
|
1070
1070
|
fetchInstance;
|
1071
1071
|
constructor(t, i) {
|
1072
1072
|
this.fetchInstance = new JA(t, i);
|
@@ -1082,7 +1082,7 @@ class jr {
|
|
1082
1082
|
// A bug ticket has been filed to fix it, but should not require any changes here.
|
1083
1083
|
markAllAsViewed = (t) => this.fetchInstance.put(`${Q.NOTIFICATIONS}/mark_all_as_viewed`, { channel: t }).finally();
|
1084
1084
|
}
|
1085
|
-
class
|
1085
|
+
class Lr {
|
1086
1086
|
fetchInstance;
|
1087
1087
|
constructor(t, i) {
|
1088
1088
|
this.fetchInstance = new JA(t, i);
|
@@ -1105,7 +1105,7 @@ class nn {
|
|
1105
1105
|
updateUser = async (t) => this.fetchInstance.put(Q.USER, t).then((i) => i.user);
|
1106
1106
|
updateUserProfile = async (t) => this.fetchInstance.put(`${Q.USER_PROFILES}/${t.guid}`, t).then((i) => i.user_profile);
|
1107
1107
|
}
|
1108
|
-
class
|
1108
|
+
class Or {
|
1109
1109
|
fetchInstance;
|
1110
1110
|
constructor(t, i) {
|
1111
1111
|
this.fetchInstance = new JA(t, i);
|
@@ -1119,7 +1119,7 @@ const rn = (A, t) => A.reduce((i, n) => (i[n.guid] = t?.includes(n.guid), i), {}
|
|
1119
1119
|
guid: i.guid
|
1120
1120
|
};
|
1121
1121
|
return Object.prototype.hasOwnProperty.call(t, n) ? t[n] = t[n].concat(r) : t[n] = [r], t;
|
1122
|
-
}, {}),
|
1122
|
+
}, {}), rs = ({
|
1123
1123
|
accounts: A,
|
1124
1124
|
accountFilterButtonEl: t,
|
1125
1125
|
copy: i,
|
@@ -1135,7 +1135,7 @@ const rn = (A, t) => A.reduce((i, n) => (i[n.guid] = t?.includes(n.guid), i), {}
|
|
1135
1135
|
}) => {
|
1136
1136
|
const l = ha(() => lc(A), [A]), v = A.length < 1, u = !!t, H = Object.values(c).every((P) => !!P);
|
1137
1137
|
return /* @__PURE__ */ e(
|
1138
|
-
|
1138
|
+
Go,
|
1139
1139
|
{
|
1140
1140
|
anchorEl: t,
|
1141
1141
|
anchorOrigin: {
|
@@ -1318,7 +1318,7 @@ const rn = (A, t) => A.reduce((i, n) => (i[n.guid] = t?.includes(n.guid), i), {}
|
|
1318
1318
|
}
|
1319
1319
|
);
|
1320
1320
|
};
|
1321
|
-
|
1321
|
+
rs.displayName = "AccountFilterOptions";
|
1322
1322
|
const vc = (A, t) => {
|
1323
1323
|
const { session: i } = t, n = Object.values(t).reduce((o, s) => i && s?.onAnalyticEvent && typeof s?.onAnalyticEvent == "function" ? [...o, s.onAnalyticEvent] : o, []), r = [...A, ...n];
|
1324
1324
|
return h.useMemo(() => (o) => {
|
@@ -1347,11 +1347,11 @@ const vc = (A, t) => {
|
|
1347
1347
|
// Between 768 and 1200
|
1348
1348
|
isTablet: yt(RA().breakpoints.between("sm", "lg"))
|
1349
1349
|
}), DP = (A) => {
|
1350
|
-
const t =
|
1350
|
+
const t = Qo();
|
1351
1351
|
return Ct(() => {
|
1352
1352
|
t.current = A;
|
1353
1353
|
}, [A]), t.current;
|
1354
|
-
},
|
1354
|
+
}, os = ({
|
1355
1355
|
accounts: A,
|
1356
1356
|
copy: t,
|
1357
1357
|
onFilterClick: i,
|
@@ -1399,7 +1399,7 @@ const vc = (A, t) => {
|
|
1399
1399
|
}
|
1400
1400
|
),
|
1401
1401
|
/* @__PURE__ */ e(
|
1402
|
-
|
1402
|
+
rs,
|
1403
1403
|
{
|
1404
1404
|
accountFilterButtonEl: E,
|
1405
1405
|
accounts: A,
|
@@ -1465,7 +1465,7 @@ const vc = (A, t) => {
|
|
1465
1465
|
"& > .kyper-text": {
|
1466
1466
|
marginRight: A.Spacing.XSmall
|
1467
1467
|
}
|
1468
|
-
}),
|
1468
|
+
}), Qr = ({
|
1469
1469
|
ariaLabel: A,
|
1470
1470
|
color: t,
|
1471
1471
|
height: i,
|
@@ -1537,7 +1537,7 @@ const vc = (A, t) => {
|
|
1537
1537
|
width: "100%"
|
1538
1538
|
}
|
1539
1539
|
});
|
1540
|
-
},
|
1540
|
+
}, qr = ({
|
1541
1541
|
ariaLabel: A,
|
1542
1542
|
averageLineHeight: t,
|
1543
1543
|
bottomHeight: i,
|
@@ -1555,7 +1555,7 @@ const vc = (A, t) => {
|
|
1555
1555
|
const v = Ae(), u = Hc(v, f), H = E / s * c, P = Math.abs(E) / s * i, z = a === void 0 || a === r ? "primary" : "secondary";
|
1556
1556
|
return /* @__PURE__ */ I("div", { className: `mx-cmn-barchart-bar-column ${u}`, children: [
|
1557
1557
|
/* @__PURE__ */ e("div", { style: { height: c }, children: E >= 0 && /* @__PURE__ */ e(
|
1558
|
-
|
1558
|
+
Qr,
|
1559
1559
|
{
|
1560
1560
|
ariaLabel: A,
|
1561
1561
|
color: n,
|
@@ -1570,7 +1570,7 @@ const vc = (A, t) => {
|
|
1570
1570
|
/* @__PURE__ */ e("div", { className: "mx-cmn-zero-line" }),
|
1571
1571
|
t !== 0 && /* @__PURE__ */ e("div", { className: "mx-cmn-chart-average", style: { bottom: t } }),
|
1572
1572
|
/* @__PURE__ */ e("div", { style: { height: i }, children: E < 0 && /* @__PURE__ */ e(
|
1573
|
-
|
1573
|
+
Qr,
|
1574
1574
|
{
|
1575
1575
|
ariaLabel: A,
|
1576
1576
|
color: n,
|
@@ -1615,7 +1615,7 @@ const vc = (A, t) => {
|
|
1615
1615
|
"& .mx-cmn-clickable": {
|
1616
1616
|
cursor: "pointer"
|
1617
1617
|
}
|
1618
|
-
}), zc = (A, t) => A + t, Cc = (A, t) => Math.abs(t) > A ? Math.abs(t) : A, gc = (A, t) => [...A, t.value],
|
1618
|
+
}), zc = (A, t) => A + t, Cc = (A, t) => Math.abs(t) > A ? Math.abs(t) : A, gc = (A, t) => [...A, t.value], Gr = (A, t, i) => {
|
1619
1619
|
const n = A && t ? i / 2 : i;
|
1620
1620
|
return A ? n : 0;
|
1621
1621
|
}, Xc = (A, t, i, n) => A / (t < 0 ? -i : t) * n || 0, jP = ({
|
@@ -1630,8 +1630,8 @@ const vc = (A, t) => {
|
|
1630
1630
|
selectedIndex: c,
|
1631
1631
|
valueFormatter: E = (d) => `${d}`
|
1632
1632
|
}) => {
|
1633
|
-
const d = Ae(), f = pc(d), l = n.reduce(gc, []), v = A !== void 0 ? A : l.reduce(zc, 0) / l.length, u = Math.max(...l), H = Math.min(...l), P = l.reduce(Cc, 0), z = u >= 0, X = H < 0, x =
|
1634
|
-
|
1633
|
+
const d = Ae(), f = pc(d), l = n.reduce(gc, []), v = A !== void 0 ? A : l.reduce(zc, 0) / l.length, u = Math.max(...l), H = Math.min(...l), P = l.reduce(Cc, 0), z = u >= 0, X = H < 0, x = Gr(z, X, r), y = Gr(X, z, r), j = Xc(v, u, H, x || y), D = (m) => c === void 0 || m === c ? i : `${i}80`, q = () => /* @__PURE__ */ e(
|
1634
|
+
qr,
|
1635
1635
|
{
|
1636
1636
|
averageLineHeight: j,
|
1637
1637
|
bottomHeight: y,
|
@@ -1647,7 +1647,7 @@ const vc = (A, t) => {
|
|
1647
1647
|
/* @__PURE__ */ e(q, {}),
|
1648
1648
|
n.map((m, O) => /* @__PURE__ */ I(h.Fragment, { children: [
|
1649
1649
|
/* @__PURE__ */ e(
|
1650
|
-
|
1650
|
+
qr,
|
1651
1651
|
{
|
1652
1652
|
ariaLabel: m.ariaLabel,
|
1653
1653
|
averageLineHeight: j,
|
@@ -1782,7 +1782,7 @@ const vc = (A, t) => {
|
|
1782
1782
|
}
|
1783
1783
|
}
|
1784
1784
|
}), jc = 340, $t = 44;
|
1785
|
-
var
|
1785
|
+
var ss = /* @__PURE__ */ ((A) => (A.None = "None", A.Single = "Single", A.Range = "Range", A))(ss || {});
|
1786
1786
|
const mc = ({
|
1787
1787
|
copy: A,
|
1788
1788
|
beginDate: t = void 0,
|
@@ -2165,8 +2165,8 @@ const mc = ({
|
|
2165
2165
|
},
|
2166
2166
|
children: A
|
2167
2167
|
}
|
2168
|
-
),
|
2169
|
-
|
2168
|
+
), as = h.createContext(null), Is = ({ children: A, availableHeight: t, availableWidth: i }) => /* @__PURE__ */ e(
|
2169
|
+
as.Provider,
|
2170
2170
|
{
|
2171
2171
|
value: {
|
2172
2172
|
availableHeight: t,
|
@@ -2180,8 +2180,8 @@ const mc = ({
|
|
2180
2180
|
if (!t)
|
2181
2181
|
throw new Error(`${A}() must be used within the GlobalDataContext`);
|
2182
2182
|
return t;
|
2183
|
-
}, CA = () => WA("useAccountStore").globalStore.accountStore,
|
2184
|
-
const t = h.useContext(
|
2183
|
+
}, CA = () => WA("useAccountStore").globalStore.accountStore, Fn = () => WA("useAppConfig").globalStore.appDataStore.appConfig, ee = () => WA("useBudgetsStore").globalStore.budgetsStore, Wn = () => WA("useCashflowStore").globalStore.cashflowStore, QA = () => WA("useCategoryStore").globalStore.categoryStore, cs = () => WA("useConnectStore").globalStore.connectStore, Vi = () => WA("useDebtsStore").globalStore.debtsStore, Bi = () => WA("useGlobalStore").globalStore, cA = () => WA("useGlobalUiStore").globalStore.globalUiStore, w = () => WA("globalCopyStore").globalStore.copyStore.copy, KA = () => WA("useGoalStore").globalStore.goalStore, kn = () => WA("useHelpStore").globalStore.helpStore, Vc = () => WA("useHoldingStore").globalStore.holdingStore, Bc = () => WA("useMerchantStore").globalStore.merchantStore, Sc = () => WA("useNetWorthStore").globalStore.netWorthStore, ds = () => WA("useNotificationStore").globalStore.notificationStore, kA = () => WA("useRecurringActivityStore").globalStore.recurringActivityStore, pe = () => WA("useSettingsStore").globalStore.settingsStore, zA = () => WA("useTransactionStore").globalStore.transactionStore, Fe = () => WA("useUserStore").globalStore.userStore, J = () => ({ onEvent: WA().onEvent }), LP = () => ({ onPageView: WA().onPageView }), Uc = (A = "useWidgetContainerContext") => {
|
2184
|
+
const t = h.useContext(as);
|
2185
2185
|
if (!t)
|
2186
2186
|
throw new Error(`${A}() must be used within the WidgetContainerContext`);
|
2187
2187
|
return t;
|
@@ -2218,7 +2218,7 @@ const mc = ({
|
|
2218
2218
|
cursorPosition: n,
|
2219
2219
|
chartContainerRef: r
|
2220
2220
|
}) => {
|
2221
|
-
const o = se(), s =
|
2221
|
+
const o = se(), s = Qo(null), [a, c] = We({ x: n.x, y: n.y });
|
2222
2222
|
if (Ct(() => {
|
2223
2223
|
(() => {
|
2224
2224
|
const f = s.current, l = r.current;
|
@@ -2453,7 +2453,7 @@ const mc = ({
|
|
2453
2453
|
sx: { width: "100%", position: "relative" },
|
2454
2454
|
children: [
|
2455
2455
|
/* @__PURE__ */ e(
|
2456
|
-
|
2456
|
+
Mo,
|
2457
2457
|
{
|
2458
2458
|
height: s || 400,
|
2459
2459
|
margin: { bottom: 50 },
|
@@ -2590,7 +2590,7 @@ const mc = ({
|
|
2590
2590
|
style: { boxSizing: "border-box" }
|
2591
2591
|
}
|
2592
2592
|
),
|
2593
|
-
/* @__PURE__ */ e(
|
2593
|
+
/* @__PURE__ */ e(No, { sx: { lineHeight: 1.5 }, children: f }),
|
2594
2594
|
/* @__PURE__ */ e(
|
2595
2595
|
Ra,
|
2596
2596
|
{
|
@@ -2709,7 +2709,7 @@ const mc = ({
|
|
2709
2709
|
)
|
2710
2710
|
] })
|
2711
2711
|
}
|
2712
|
-
),
|
2712
|
+
), Mr = ({
|
2713
2713
|
calendarActions: A,
|
2714
2714
|
color: t = "primary",
|
2715
2715
|
copy: i,
|
@@ -2745,7 +2745,7 @@ const mc = ({
|
|
2745
2745
|
if (l === i.dateRangePickerCopy.dateRangeThisMonth)
|
2746
2746
|
Z[0] = lA ? Ye(fA, 1) : ue(fA, 1), Z[1] = BA(lA ? Ye(sA, 1) : ue(sA, 1));
|
2747
2747
|
else if (l === i.dateRangePickerCopy.dateRangeYTD || l === i.dateRangePickerCopy.dateRangeLastYear)
|
2748
|
-
Z[0] = lA ? ur(
|
2748
|
+
Z[0] = lA ? Pr(ur(fA), 1) : ei(ur(fA), 1), Z[1] = lA ? Pr(Rr(fA), 1) : ei(Rr(fA), 1);
|
2749
2749
|
else {
|
2750
2750
|
const gA = ka(sA, fA);
|
2751
2751
|
Z[0] = B === "previous" ? Se(fA, gA) : ke(fA, gA), Z[1] = B === "previous" ? Se(sA, gA) : ke(sA, gA);
|
@@ -2925,7 +2925,7 @@ const mc = ({
|
|
2925
2925
|
primaryText: i.dateRangeEditApply,
|
2926
2926
|
title: i.dateRangeEditTitle,
|
2927
2927
|
children: /* @__PURE__ */ e(
|
2928
|
-
|
2928
|
+
hr,
|
2929
2929
|
{
|
2930
2930
|
copy: i.dateRangePickerCopy,
|
2931
2931
|
dateRange: u,
|
@@ -2952,7 +2952,7 @@ const mc = ({
|
|
2952
2952
|
}
|
2953
2953
|
},
|
2954
2954
|
children: /* @__PURE__ */ e(
|
2955
|
-
|
2955
|
+
hr,
|
2956
2956
|
{
|
2957
2957
|
copy: i.dateRangePickerCopy,
|
2958
2958
|
dateRange: u,
|
@@ -2974,8 +2974,8 @@ const mc = ({
|
|
2974
2974
|
}, OP = ({
|
2975
2975
|
hasGap: A = !1,
|
2976
2976
|
segments: t,
|
2977
|
-
size: i =
|
2978
|
-
strokeWidth: n =
|
2977
|
+
size: i = As,
|
2978
|
+
strokeWidth: n = es,
|
2979
2979
|
children: r
|
2980
2980
|
}) => {
|
2981
2981
|
const o = Ae(), s = _c(o, i), a = (i - n) / 2, c = i / 2;
|
@@ -3026,8 +3026,8 @@ const mc = ({
|
|
3026
3026
|
}), Es = ({
|
3027
3027
|
color: A = "",
|
3028
3028
|
percent: t = 0,
|
3029
|
-
size: i =
|
3030
|
-
strokeWidth: n =
|
3029
|
+
size: i = As,
|
3030
|
+
strokeWidth: n = es,
|
3031
3031
|
children: r
|
3032
3032
|
}) => {
|
3033
3033
|
const o = RA(), s = (i - n) / 2, a = -90, c = t > 100 ? 100 : t, E = 2 * Math.PI * s * (1 - c / 100), d = i / 2;
|
@@ -3144,7 +3144,7 @@ const ut = ({
|
|
3144
3144
|
title: c ? /* @__PURE__ */ e(re, { sx: { pb: 4 }, children: c }) : null
|
3145
3145
|
}
|
3146
3146
|
),
|
3147
|
-
/* @__PURE__ */ e(Xe, { ref: E, sx: { p: 0 }, children: /* @__PURE__ */ e(
|
3147
|
+
/* @__PURE__ */ e(Xe, { ref: E, sx: { p: 0 }, children: /* @__PURE__ */ e(Is, { availableHeight: d, availableWidth: f, children: t }) })
|
3148
3148
|
] });
|
3149
3149
|
}, IA = ({ height: A = 250, label: t = "", size: i = 32 }) => {
|
3150
3150
|
const n = Ae();
|
@@ -3227,7 +3227,7 @@ const ut = ({
|
|
3227
3227
|
{
|
3228
3228
|
action: /* @__PURE__ */ I(b, { alignItems: "center", flexDirection: "row", children: [
|
3229
3229
|
z && i && /* @__PURE__ */ e(L, { sx: { flexGrow: 1 }, children: /* @__PURE__ */ e(
|
3230
|
-
|
3230
|
+
Mr,
|
3231
3231
|
{
|
3232
3232
|
calendarActions: i,
|
3233
3233
|
copy: Z,
|
@@ -3237,7 +3237,7 @@ const ut = ({
|
|
3237
3237
|
}
|
3238
3238
|
) }),
|
3239
3239
|
A && /* @__PURE__ */ e(
|
3240
|
-
|
3240
|
+
os,
|
3241
3241
|
{
|
3242
3242
|
accounts: A,
|
3243
3243
|
copy: B,
|
@@ -3302,7 +3302,7 @@ const ut = ({
|
|
3302
3302
|
i && (x || y) && /* @__PURE__ */ I(b, { gap: 24, justifyContent: "center", sx: { mt: x ? 0 : 16 }, children: [
|
3303
3303
|
d && /* @__PURE__ */ e(M, {}),
|
3304
3304
|
/* @__PURE__ */ e(
|
3305
|
-
|
3305
|
+
Mr,
|
3306
3306
|
{
|
3307
3307
|
calendarActions: i,
|
3308
3308
|
copy: Z,
|
@@ -3312,7 +3312,7 @@ const ut = ({
|
|
3312
3312
|
}
|
3313
3313
|
)
|
3314
3314
|
] }),
|
3315
|
-
/* @__PURE__ */ e(Xe, { ref: v, sx: { p: 0 }, children: /* @__PURE__ */ e(
|
3315
|
+
/* @__PURE__ */ e(Xe, { ref: v, sx: { p: 0 }, children: /* @__PURE__ */ e(Is, { availableHeight: u, availableWidth: H, children: n }) })
|
3316
3316
|
]
|
3317
3317
|
}
|
3318
3318
|
);
|
@@ -3343,7 +3343,7 @@ const ut = ({
|
|
3343
3343
|
);
|
3344
3344
|
}, Ci = g(ed);
|
3345
3345
|
var ft = /* @__PURE__ */ ((A) => (A.Loading = "loading", A.Error = "error", A))(ft || {}), Ee = /* @__PURE__ */ ((A) => (A.Currency = "currency", A.Date = "date", A.Input = "input", A.Select = "select", A))(Ee || {});
|
3346
|
-
const
|
3346
|
+
const Nr = "connect_widget", Tr = "connections_widget", td = ({
|
3347
3347
|
loadWidgetProps: A,
|
3348
3348
|
onClose: t,
|
3349
3349
|
showConnectWidget: i,
|
@@ -3355,7 +3355,7 @@ const Mr = "connect_widget", Nr = "connections_widget", td = ({
|
|
3355
3355
|
} = RA();
|
3356
3356
|
return h.useEffect(() => (i ? (E(!0), s({ mode: l, ...A }).then((v) => {
|
3357
3357
|
r = new _a({
|
3358
|
-
container: `#${
|
3358
|
+
container: `#${Nr}`,
|
3359
3359
|
style: {
|
3360
3360
|
height: "calc(100% - 62px)",
|
3361
3361
|
maxWidth: "450px",
|
@@ -3381,7 +3381,7 @@ const Mr = "connect_widget", Nr = "connections_widget", td = ({
|
|
3381
3381
|
t(), o();
|
3382
3382
|
},
|
3383
3383
|
title: n,
|
3384
|
-
children: /* @__PURE__ */ I("div", { id:
|
3384
|
+
children: /* @__PURE__ */ I("div", { id: Nr, children: [
|
3385
3385
|
d && /* @__PURE__ */ e(Ci, { status: ft.Error }),
|
3386
3386
|
c && /* @__PURE__ */ e(Ci, { status: ft.Loading })
|
3387
3387
|
] })
|
@@ -3424,10 +3424,10 @@ const Mr = "connect_widget", Nr = "connections_widget", td = ({
|
|
3424
3424
|
H.error_amount_must_be_equal_to,
|
3425
3425
|
N(c, "0")
|
3426
3426
|
)
|
3427
|
-
), d?.(!1)) : Number(m) >
|
3427
|
+
), d?.(!1)) : Number(m) > wr ? (v(
|
3428
3428
|
C(
|
3429
3429
|
H.error_amount_must_be_less_than_or_equal_to,
|
3430
|
-
N(
|
3430
|
+
N(wr, A ? "0,0.00" : "0,0", Math.floor)
|
3431
3431
|
)
|
3432
3432
|
), d?.(!1)) : m.toString().match(j) ? o() ? (v(""), d?.(!0)) : (v(s), d?.(!1)) : (v(H.error_amount_is_invalid), d?.(!1)), E(m.toString());
|
3433
3433
|
};
|
@@ -3524,7 +3524,7 @@ const Mr = "connect_widget", Nr = "connections_widget", td = ({
|
|
3524
3524
|
value: r
|
3525
3525
|
}
|
3526
3526
|
) });
|
3527
|
-
}, Si = g(nd),
|
3527
|
+
}, Si = g(nd), Yr = ({
|
3528
3528
|
checked: A = !1,
|
3529
3529
|
label: t,
|
3530
3530
|
sx: i = {},
|
@@ -3660,7 +3660,7 @@ const Mr = "connect_widget", Nr = "connections_widget", td = ({
|
|
3660
3660
|
)
|
3661
3661
|
}
|
3662
3662
|
), ls = ({ description: A, label: t, title: i }) => {
|
3663
|
-
const { config: n } =
|
3663
|
+
const { config: n } = Fn(), [r, o] = h.useState(!1);
|
3664
3664
|
if (n.show_connections_widget_in_master)
|
3665
3665
|
return /* @__PURE__ */ I(h.Fragment, { children: [
|
3666
3666
|
/* @__PURE__ */ I(ge, { sx: { m: 24 }, children: [
|
@@ -3992,7 +3992,7 @@ class Id {
|
|
3992
3992
|
});
|
3993
3993
|
};
|
3994
3994
|
}
|
3995
|
-
class
|
3995
|
+
class Vr {
|
3996
3996
|
fetchInstance;
|
3997
3997
|
constructor(t, i) {
|
3998
3998
|
this.fetchInstance = new JA(t, i);
|
@@ -4013,7 +4013,7 @@ class Yr {
|
|
4013
4013
|
throw i;
|
4014
4014
|
});
|
4015
4015
|
}
|
4016
|
-
const
|
4016
|
+
const Br = (A, t) => !A && !t ? 0 : !A && t ? 101 : t / A * 100, Sr = (A, t) => {
|
4017
4017
|
const i = {
|
4018
4018
|
background: t.palette.success.main,
|
4019
4019
|
description: A <= 100 ? t.palette.text.secondary : t.palette.error.main,
|
@@ -4032,10 +4032,10 @@ const Vr = (A, t) => !A && !t ? 0 : !A && t ? 101 : t / A * 100, Br = (A, t) =>
|
|
4032
4032
|
for (const o of A) {
|
4033
4033
|
const s = nc(t, o.category_guid);
|
4034
4034
|
if (!s) continue;
|
4035
|
-
const a = s.totalAmount, c =
|
4035
|
+
const a = s.totalAmount, c = Br(o.amount, a), E = o.amount - a;
|
4036
4036
|
r.push({
|
4037
4037
|
...o,
|
4038
|
-
budgetColors:
|
4038
|
+
budgetColors: Sr(c, n),
|
4039
4039
|
category: s,
|
4040
4040
|
description: C(
|
4041
4041
|
E < 0 ? i.budget_remaining_over : i.budget_remaining_left,
|
@@ -4051,10 +4051,10 @@ const Vr = (A, t) => !A && !t ? 0 : !A && t ? 101 : t / A * 100, Br = (A, t) =>
|
|
4051
4051
|
if (!s) continue;
|
4052
4052
|
const a = s.currentAmount, c = r.find((f) => f.category_guid === s.parent_guid);
|
4053
4053
|
if (!c) continue;
|
4054
|
-
const E = o.amount - a, d =
|
4054
|
+
const E = o.amount - a, d = Br(o.amount, a);
|
4055
4055
|
c && c.subBudgets.push({
|
4056
4056
|
...o,
|
4057
|
-
budgetColors:
|
4057
|
+
budgetColors: Sr(d, n),
|
4058
4058
|
category: s,
|
4059
4059
|
description: C(
|
4060
4060
|
E < 0 ? i.budget_remaining_over : i.budget_remaining_left,
|
@@ -4072,7 +4072,7 @@ const Vr = (A, t) => !A && !t ? 0 : !A && t ? 101 : t / A * 100, Br = (A, t) =>
|
|
4072
4072
|
return Cn(n.subBudgets, t);
|
4073
4073
|
};
|
4074
4074
|
class Ed {
|
4075
|
-
api = new
|
4075
|
+
api = new Vr("/", "");
|
4076
4076
|
globalStore;
|
4077
4077
|
alert = "";
|
4078
4078
|
dateRange = { start: MA(dA()), end: BA(dA()) };
|
@@ -4082,7 +4082,7 @@ class Ed {
|
|
4082
4082
|
isDataLoaded = !1;
|
4083
4083
|
theme = {};
|
4084
4084
|
constructor(t) {
|
4085
|
-
this.globalStore = t, this.api = new
|
4085
|
+
this.globalStore = t, this.api = new Vr(t.endpoint, t.sessionToken), LA(this);
|
4086
4086
|
}
|
4087
4087
|
loadBudgetData = async () => {
|
4088
4088
|
await this.loadBudgets(), dI(
|
@@ -4192,7 +4192,7 @@ class Ed {
|
|
4192
4192
|
const Tt = () => {
|
4193
4193
|
if (!h.useContext(pt))
|
4194
4194
|
throw new Error("useCashflowUiStore() must be used within the GlobalDataContext");
|
4195
|
-
return
|
4195
|
+
return Wn().uiStore;
|
4196
4196
|
}, hd = ({ remaining: A }) => {
|
4197
4197
|
const { cashflow: t } = w();
|
4198
4198
|
return /* @__PURE__ */ I(AA, { children: [
|
@@ -4210,7 +4210,7 @@ const Tt = () => {
|
|
4210
4210
|
/* @__PURE__ */ e(R, { bold: !0, sx: { flexGrow: 1, fontSize: 12 }, children: t.remaining_cash }),
|
4211
4211
|
/* @__PURE__ */ e(GA, { amount: A, bold: !0, sx: { fontSize: 12 } })
|
4212
4212
|
] });
|
4213
|
-
},
|
4213
|
+
}, Kn = g(hd), ld = ({ onAddIncomeClick: A }) => {
|
4214
4214
|
const t = RA(), { availableWidth: i } = wt(), { isMobile: n } = HA(), { visibleCashAccounts: r, visibleCashBalance: o } = CA(), { selectedAccountGuids: s } = cA(), { cashflow: a } = w(), { userProfile: c } = Fe(), {
|
4215
4215
|
daysUntilNextIncome: E,
|
4216
4216
|
expensesTilNextIncome: d,
|
@@ -4304,7 +4304,7 @@ const Tt = () => {
|
|
4304
4304
|
justifyContent: "space-between",
|
4305
4305
|
px: 16,
|
4306
4306
|
sx: { borderBottomLeftRadius: 4, borderBottomRightRadius: 4 },
|
4307
|
-
children: /* @__PURE__ */ e(
|
4307
|
+
children: /* @__PURE__ */ e(Kn, { remaining: y })
|
4308
4308
|
}
|
4309
4309
|
),
|
4310
4310
|
/* @__PURE__ */ e(M, {}),
|
@@ -4525,7 +4525,7 @@ const ud = [
|
|
4525
4525
|
accountIsHidden: c?.is_hidden,
|
4526
4526
|
category: E?.name || "Uncategorized",
|
4527
4527
|
isIncome: a.top_level_category_guid === p.INCOME,
|
4528
|
-
isPending: a.feed_status ===
|
4528
|
+
isPending: a.feed_status === Zn.PENDING,
|
4529
4529
|
number: c?.account_number || "",
|
4530
4530
|
payee: a.description,
|
4531
4531
|
tags: d
|
@@ -4568,7 +4568,7 @@ const ud = [
|
|
4568
4568
|
TRANSACTION: "Transaction",
|
4569
4569
|
TRANSACTIONS_LIST: "Transactions List",
|
4570
4570
|
UNHIDE_TRANSACTION: "Unhide Transaction"
|
4571
|
-
},
|
4571
|
+
}, Ur = {
|
4572
4572
|
// splits
|
4573
4573
|
[S.ON_TRANSACTION_SPLIT_CLICK]: {
|
4574
4574
|
action: uA.SELECT,
|
@@ -4782,7 +4782,7 @@ const ud = [
|
|
4782
4782
|
category: PA.TRANSACTIONS_WIDGET,
|
4783
4783
|
label: bA.DELETE_TRANSACTION
|
4784
4784
|
}
|
4785
|
-
}, Hd = async (A, t) => !t || !
|
4785
|
+
}, Hd = async (A, t) => !t || !Ur[A] ? null : t.sendAnalyticEvent(Ur[A]), gn = {
|
4786
4786
|
FLAG: "flag",
|
4787
4787
|
DATE: "date",
|
4788
4788
|
PAYEE: "payee",
|
@@ -4820,7 +4820,7 @@ const ud = [
|
|
4820
4820
|
const i = A.toLowerCase().split(" "), n = t?.toString().toLowerCase() ?? "";
|
4821
4821
|
return i.every((r) => n.indexOf(r) > -1);
|
4822
4822
|
};
|
4823
|
-
var SA = /* @__PURE__ */ ((A) => (A[A.Expense = 0] = "Expense", A[A.Income = 1] = "Income", A))(SA || {}), FA = /* @__PURE__ */ ((A) => (A[A.Paid = 0] = "Paid", A[A.Missed = 1] = "Missed", A[A.Upcoming = 2] = "Upcoming", A))(FA || {}), pd = /* @__PURE__ */ ((A) => (A[A.UNKNOWN = 0] = "UNKNOWN", A[A.CORRECT = 1] = "CORRECT", A[A.INCORRECT = 2] = "INCORRECT", A))(pd || {}), wd = /* @__PURE__ */ ((A) => (A.Missed = "Missed", A.Paid = "Paid", A.Upcoming = "Upcoming expense", A.Income = "Income", A))(wd || {}), yd = /* @__PURE__ */ ((A) => (A[A.Unknown = 0] = "Unknown", A[A.Subscription = 1] = "Subscription", A[A.Bill = 2] = "Bill", A))(yd || {}), V = /* @__PURE__ */ ((A) => (A[A.DEBT_TRACK = 1] = "DEBT_TRACK", A[A.SAVINGS_TRACK = 2] = "SAVINGS_TRACK", A[A.RETIREMENT_TRACK = 3] = "RETIREMENT_TRACK", A[A.EMERGENCY_FUND_TRACK = 4] = "EMERGENCY_FUND_TRACK", A))(V || {}), Xn = /* @__PURE__ */ ((A) => (A[A.SAVE_AMOUNT = 1] = "SAVE_AMOUNT", A[A.KEEP_BALANCE_BELOW = 2] = "KEEP_BALANCE_BELOW", A[A.KEEP_BALANCE_ABOVE = 3] = "KEEP_BALANCE_ABOVE", A[A.ACTION = 4] = "ACTION", A))(Xn || {}), le = /* @__PURE__ */ ((A) => (A[A.AUTOMOBILE = 1] = "AUTOMOBILE", A[A.COLLEGE = 2] = "COLLEGE", A[A.HOUSE = 3] = "HOUSE", A[A.RECREATIONAL_VEHICLE = 4] = "RECREATIONAL_VEHICLE", A[A.VACATION = 5] = "VACATION", A[A.ELECTRONIC = 6] = "ELECTRONIC", A[A.OTHER = 7] = "OTHER", A[A.RETIREMENT = 8] = "RETIREMENT", A[A.EMERGENCY_FUND = 9] = "EMERGENCY_FUND", A[A.SETUP_BUDGETS = 10] = "SETUP_BUDGETS", A[A.START_MONEY_MANAGEMENT = 11] = "START_MONEY_MANAGEMENT", A[A.CREDIT_CARD = 12] = "CREDIT_CARD", A[A.LINE_OF_CREDIT = 13] = "LINE_OF_CREDIT", A[A.LOANS = 14] = "LOANS", A))(le || {}), NA = /* @__PURE__ */ ((A) => (A[A.BudgetExceeded = 1] = "BudgetExceeded", A[A.BudgetOffTarget = 2] = "BudgetOffTarget", A[A.DebtPaymentReminder = 3] = "DebtPaymentReminder", A[A.AccountBalanceLow = 6] = "AccountBalanceLow", A[A.AccountDepositLarge = 7] = "AccountDepositLarge", A[A.TransactionExpenseLarge = 8] = "TransactionExpenseLarge", A[A.TransactionFeeCharge = 9] = "TransactionFeeCharge", A[A.InternationalTransaction = 23] = "InternationalTransaction", A))(NA || {}), ce = /* @__PURE__ */ ((A) => (A[A.CREDIT = 1] = "CREDIT", A[A.DEBIT = 2] = "DEBIT", A))(ce || {}),
|
4823
|
+
var SA = /* @__PURE__ */ ((A) => (A[A.Expense = 0] = "Expense", A[A.Income = 1] = "Income", A))(SA || {}), FA = /* @__PURE__ */ ((A) => (A[A.Paid = 0] = "Paid", A[A.Missed = 1] = "Missed", A[A.Upcoming = 2] = "Upcoming", A))(FA || {}), pd = /* @__PURE__ */ ((A) => (A[A.UNKNOWN = 0] = "UNKNOWN", A[A.CORRECT = 1] = "CORRECT", A[A.INCORRECT = 2] = "INCORRECT", A))(pd || {}), wd = /* @__PURE__ */ ((A) => (A.Missed = "Missed", A.Paid = "Paid", A.Upcoming = "Upcoming expense", A.Income = "Income", A))(wd || {}), yd = /* @__PURE__ */ ((A) => (A[A.Unknown = 0] = "Unknown", A[A.Subscription = 1] = "Subscription", A[A.Bill = 2] = "Bill", A))(yd || {}), V = /* @__PURE__ */ ((A) => (A[A.DEBT_TRACK = 1] = "DEBT_TRACK", A[A.SAVINGS_TRACK = 2] = "SAVINGS_TRACK", A[A.RETIREMENT_TRACK = 3] = "RETIREMENT_TRACK", A[A.EMERGENCY_FUND_TRACK = 4] = "EMERGENCY_FUND_TRACK", A))(V || {}), Xn = /* @__PURE__ */ ((A) => (A[A.SAVE_AMOUNT = 1] = "SAVE_AMOUNT", A[A.KEEP_BALANCE_BELOW = 2] = "KEEP_BALANCE_BELOW", A[A.KEEP_BALANCE_ABOVE = 3] = "KEEP_BALANCE_ABOVE", A[A.ACTION = 4] = "ACTION", A))(Xn || {}), le = /* @__PURE__ */ ((A) => (A[A.AUTOMOBILE = 1] = "AUTOMOBILE", A[A.COLLEGE = 2] = "COLLEGE", A[A.HOUSE = 3] = "HOUSE", A[A.RECREATIONAL_VEHICLE = 4] = "RECREATIONAL_VEHICLE", A[A.VACATION = 5] = "VACATION", A[A.ELECTRONIC = 6] = "ELECTRONIC", A[A.OTHER = 7] = "OTHER", A[A.RETIREMENT = 8] = "RETIREMENT", A[A.EMERGENCY_FUND = 9] = "EMERGENCY_FUND", A[A.SETUP_BUDGETS = 10] = "SETUP_BUDGETS", A[A.START_MONEY_MANAGEMENT = 11] = "START_MONEY_MANAGEMENT", A[A.CREDIT_CARD = 12] = "CREDIT_CARD", A[A.LINE_OF_CREDIT = 13] = "LINE_OF_CREDIT", A[A.LOANS = 14] = "LOANS", A))(le || {}), NA = /* @__PURE__ */ ((A) => (A[A.BudgetExceeded = 1] = "BudgetExceeded", A[A.BudgetOffTarget = 2] = "BudgetOffTarget", A[A.DebtPaymentReminder = 3] = "DebtPaymentReminder", A[A.AccountBalanceLow = 6] = "AccountBalanceLow", A[A.AccountDepositLarge = 7] = "AccountDepositLarge", A[A.TransactionExpenseLarge = 8] = "TransactionExpenseLarge", A[A.TransactionFeeCharge = 9] = "TransactionFeeCharge", A[A.InternationalTransaction = 23] = "InternationalTransaction", A))(NA || {}), ce = /* @__PURE__ */ ((A) => (A[A.CREDIT = 1] = "CREDIT", A[A.DEBIT = 2] = "DEBIT", A))(ce || {}), Zn = /* @__PURE__ */ ((A) => (A[A.POSTED = 1] = "POSTED", A[A.PENDING = 2] = "PENDING", A))(Zn || {}), xd = /* @__PURE__ */ ((A) => (A.Desktop = "Desktop", A.Mobile = "Mobile", A))(xd || {});
|
4824
4824
|
const Rs = {
|
4825
4825
|
account_guid: "",
|
4826
4826
|
amount: 0,
|
@@ -4829,7 +4829,7 @@ const Rs = {
|
|
4829
4829
|
description: "",
|
4830
4830
|
duplicate: !1,
|
4831
4831
|
feed_description: "",
|
4832
|
-
feed_status:
|
4832
|
+
feed_status: Zn.POSTED,
|
4833
4833
|
feed_transaction_date: 0,
|
4834
4834
|
has_been_split: !1,
|
4835
4835
|
has_been_viewed: !1,
|
@@ -5166,7 +5166,7 @@ const be = () => {
|
|
5166
5166
|
]
|
5167
5167
|
}
|
5168
5168
|
);
|
5169
|
-
},
|
5169
|
+
}, Jn = g(qd), _n = ({
|
5170
5170
|
bgcolor: A = "background.default",
|
5171
5171
|
children: t
|
5172
5172
|
}) => /* @__PURE__ */ e(L, { display: "inline-block", pb: 4, pl: 24, pt: 4, sx: { bgcolor: A, width: "100%" }, children: /* @__PURE__ */ e(R, { bold: !0, variant: "XSmall", children: t }) }), Gd = ({ showIcon: A = !0, showSubtitle: t = !0 }) => {
|
@@ -5176,13 +5176,13 @@ const be = () => {
|
|
5176
5176
|
/* @__PURE__ */ e(R, { bold: !0, color: "secondary", variant: "Small", children: n.zero_state_no_transactions }),
|
5177
5177
|
t && /* @__PURE__ */ e(R, { color: "secondary", variant: "XSmall", children: n.zero_state_there_are_no_transactions })
|
5178
5178
|
] });
|
5179
|
-
}, Md = g(Gd),
|
5179
|
+
}, Md = g(Gd), Fr = (A, t) => {
|
5180
5180
|
const i = jA(t[A].date), n = jA(t[A - 1]?.date);
|
5181
5181
|
return !he(i, n);
|
5182
5182
|
}, Nd = (A, t) => {
|
5183
5183
|
const i = jA(t[A].date), n = jA(t[A + 1]?.date);
|
5184
5184
|
return he(i, n);
|
5185
|
-
},
|
5185
|
+
}, Wr = 65, kr = 34, Td = ({
|
5186
5186
|
bgcolor: A,
|
5187
5187
|
height: t = "calc(100dvh - 36px)",
|
5188
5188
|
loader: i = /* @__PURE__ */ e(IA, { label: "Loading", size: 40 }),
|
@@ -5203,10 +5203,10 @@ const be = () => {
|
|
5203
5203
|
account_guid: x?.account_guid,
|
5204
5204
|
transaction_guid: X
|
5205
5205
|
}), n?.(X);
|
5206
|
-
}, P = h.useRef(null), z =
|
5206
|
+
}, P = h.useRef(null), z = Yo({
|
5207
5207
|
count: f.length,
|
5208
5208
|
getScrollElement: () => P.current,
|
5209
|
-
estimateSize: (X) =>
|
5209
|
+
estimateSize: (X) => Wr + (Fr(X, f) ? kr : 0),
|
5210
5210
|
overscan: 5
|
5211
5211
|
});
|
5212
5212
|
return h.useEffect(() => z.measure(), [f]), h.useEffect(() => l(r), [r]), /* @__PURE__ */ e(nA, { children: /* @__PURE__ */ e(L, { height: t, overflow: "auto", ref: P, width: a, children: /* @__PURE__ */ I(
|
@@ -5222,7 +5222,7 @@ const be = () => {
|
|
5222
5222
|
(E || o) && i,
|
5223
5223
|
!E && !o && z.getVirtualItems().length === 0 && c,
|
5224
5224
|
!E && !o && z.getVirtualItems().length > 0 && z.getVirtualItems().map((X) => {
|
5225
|
-
const x = f[X.index], y =
|
5225
|
+
const x = f[X.index], y = Fr(X.index, f), j = Nd(X.index, f), D = Wr + (y ? kr : 0);
|
5226
5226
|
return /* @__PURE__ */ I(
|
5227
5227
|
L,
|
5228
5228
|
{
|
@@ -5233,8 +5233,8 @@ const be = () => {
|
|
5233
5233
|
width: "100%"
|
5234
5234
|
},
|
5235
5235
|
children: [
|
5236
|
-
y && /* @__PURE__ */ e(
|
5237
|
-
/* @__PURE__ */ e(
|
5236
|
+
y && /* @__PURE__ */ e(_n, { bgcolor: A, children: Yi(x.date) }),
|
5237
|
+
/* @__PURE__ */ e(Jn, { onClick: H, transaction: x }),
|
5238
5238
|
/* @__PURE__ */ e(M, { sx: { ml: j ? 24 : 0 } })
|
5239
5239
|
]
|
5240
5240
|
},
|
@@ -5453,7 +5453,7 @@ const Jd = ({
|
|
5453
5453
|
onPrimaryAction: () => {
|
5454
5454
|
c(!1), i(o);
|
5455
5455
|
},
|
5456
|
-
children: /* @__PURE__ */ e(
|
5456
|
+
children: /* @__PURE__ */ e(No, { children: f ? /* @__PURE__ */ e(R, { children: d }) : /* @__PURE__ */ e(
|
5457
5457
|
nt,
|
5458
5458
|
{
|
5459
5459
|
"aria-label": r === "edit" ? a.edit_subcategory_aria : a.add_subcategory_aria,
|
@@ -5466,7 +5466,7 @@ const Jd = ({
|
|
5466
5466
|
) })
|
5467
5467
|
}
|
5468
5468
|
);
|
5469
|
-
},
|
5469
|
+
}, $n = g(Jd), _d = ({ parentCategory: A }) => {
|
5470
5470
|
const [t, i] = h.useState(!1), { addCategory: n } = QA(), { categories: r } = w(), { onEvent: o } = J(), { setShouldDisableDrawerScroll: s } = at(), a = async (d) => {
|
5471
5471
|
await n(d.trim(), A.guid), o(Le.ON_SUBCATEGORY_ADDED), i(!1);
|
5472
5472
|
}, c = async () => {
|
@@ -5483,7 +5483,7 @@ const Jd = ({
|
|
5483
5483
|
}
|
5484
5484
|
) }),
|
5485
5485
|
t && /* @__PURE__ */ e(
|
5486
|
-
|
5486
|
+
$n,
|
5487
5487
|
{
|
5488
5488
|
isOpen: t,
|
5489
5489
|
onClose: E,
|
@@ -5503,7 +5503,7 @@ const Jd = ({
|
|
5503
5503
|
A(!1), r(Le.ON_SUBCATEGORY_EDIT_CANCEL_CLICK);
|
5504
5504
|
};
|
5505
5505
|
return /* @__PURE__ */ e(
|
5506
|
-
|
5506
|
+
$n,
|
5507
5507
|
{
|
5508
5508
|
categoryName: t.name,
|
5509
5509
|
isOpen: i,
|
@@ -5524,7 +5524,7 @@ const Jd = ({
|
|
5524
5524
|
r(Le.ON_SUBCATEGORY_DELETED), await o(n.guid), i(!1);
|
5525
5525
|
};
|
5526
5526
|
return /* @__PURE__ */ e(
|
5527
|
-
|
5527
|
+
$n,
|
5528
5528
|
{
|
5529
5529
|
categoryName: A.name,
|
5530
5530
|
isOpen: t,
|
@@ -5754,7 +5754,7 @@ const Jd = ({
|
|
5754
5754
|
children: /* @__PURE__ */ e(Ef, { ...r })
|
5755
5755
|
}
|
5756
5756
|
) : /* @__PURE__ */ e(IA, {});
|
5757
|
-
}, Fi = g(hf), lf = 3,
|
5757
|
+
}, Fi = g(hf), lf = 3, Kr = 12, vf = (A, t, i) => A.filter((n) => !n.parent_guid).map(
|
5758
5758
|
(n) => bs(
|
5759
5759
|
n,
|
5760
5760
|
t,
|
@@ -5762,9 +5762,9 @@ const Jd = ({
|
|
5762
5762
|
A.filter((r) => r.parent_guid === n.guid)
|
5763
5763
|
)
|
5764
5764
|
), bs = (A, t, i, n = []) => {
|
5765
|
-
const r = A.guid, o = A.parent_guid || r, s = r === o, a = t.find((l) => l.category_guid === r)?.total || 0, c =
|
5765
|
+
const r = A.guid, o = A.parent_guid || r, s = r === o, a = t.find((l) => l.category_guid === r)?.total || 0, c = Jr(
|
5766
5766
|
i.filter((l) => l.category_guid === r)
|
5767
|
-
), E =
|
5767
|
+
), E = Jr(
|
5768
5768
|
i.filter(
|
5769
5769
|
(l) => l.category_guid === r || l.top_level_category_guid === r
|
5770
5770
|
)
|
@@ -5777,17 +5777,17 @@ const Jd = ({
|
|
5777
5777
|
return {
|
5778
5778
|
...A,
|
5779
5779
|
currentAmount: a,
|
5780
|
-
averageAmount:
|
5780
|
+
averageAmount: Zr(c),
|
5781
5781
|
color: dt[o],
|
5782
5782
|
icon: Ac[o],
|
5783
5783
|
isTransfer: o === p.TRANSFER,
|
5784
5784
|
monthlyAmounts: c,
|
5785
5785
|
subCategories: d,
|
5786
5786
|
totalAmount: s ? f : 0,
|
5787
|
-
totalAverageAmount:
|
5787
|
+
totalAverageAmount: Zr(E),
|
5788
5788
|
totalMonthlyAmounts: s ? E : []
|
5789
5789
|
};
|
5790
|
-
},
|
5790
|
+
}, Zr = (A, t = lf) => {
|
5791
5791
|
const i = t > history.length ? history.length : t;
|
5792
5792
|
return Math.ceil(
|
5793
5793
|
Math.max(
|
@@ -5795,10 +5795,10 @@ const Jd = ({
|
|
5795
5795
|
A.slice(-i).reduce((n, r) => n + r.amount, 0) / i
|
5796
5796
|
)
|
5797
5797
|
);
|
5798
|
-
},
|
5798
|
+
}, Jr = (A) => {
|
5799
5799
|
const t = [], i = dA();
|
5800
|
-
for (let n = 0; n <=
|
5801
|
-
const r = MA(Ye(i,
|
5800
|
+
for (let n = 0; n <= Kr; n++) {
|
5801
|
+
const r = MA(Ye(i, Kr - n)), s = A.filter(
|
5802
5802
|
(a) => a.year_month === Number(ve(r, "yyyyMM"))
|
5803
5803
|
).reduce((a, c) => a + c.total, 0);
|
5804
5804
|
t.push({
|
@@ -5835,7 +5835,7 @@ let Rf = class {
|
|
5835
5835
|
class uf {
|
5836
5836
|
globalStore;
|
5837
5837
|
uiStore;
|
5838
|
-
api = new
|
5838
|
+
api = new jr("/", "");
|
5839
5839
|
categories = [];
|
5840
5840
|
dateRangeCategoryTotals = [];
|
5841
5841
|
monthlyCategoryTotals = [];
|
@@ -5843,7 +5843,7 @@ class uf {
|
|
5843
5843
|
isLoadingCategoryTotals = !1;
|
5844
5844
|
monthlyTotalsLoaded = !1;
|
5845
5845
|
constructor(t) {
|
5846
|
-
this.globalStore = t, this.uiStore = new Rf(), this.api = new
|
5846
|
+
this.globalStore = t, this.uiStore = new Rf(), this.api = new jr(t.endpoint, t.sessionToken), LA(this);
|
5847
5847
|
}
|
5848
5848
|
get detailedCategories() {
|
5849
5849
|
return vf(
|
@@ -5986,7 +5986,7 @@ const Hs = ({ transaction: A }) => {
|
|
5986
5986
|
categoryGuid: A.top_level_category_guid,
|
5987
5987
|
size: 24,
|
5988
5988
|
sx: { color: "text.primary" },
|
5989
|
-
variant:
|
5989
|
+
variant: qo.Transparent
|
5990
5990
|
}
|
5991
5991
|
) }) }),
|
5992
5992
|
/* @__PURE__ */ e(
|
@@ -6085,7 +6085,7 @@ const Hs = ({ transaction: A }) => {
|
|
6085
6085
|
today: o.date_range_picker.today
|
6086
6086
|
},
|
6087
6087
|
onDateSelected: f,
|
6088
|
-
selectionType:
|
6088
|
+
selectionType: ss.Single
|
6089
6089
|
}
|
6090
6090
|
) })
|
6091
6091
|
}
|
@@ -7054,7 +7054,7 @@ const Hs = ({ transaction: A }) => {
|
|
7054
7054
|
),
|
7055
7055
|
/* @__PURE__ */ e(CI, { name: "TransactionType", onChange: v, row: !0, children: /* @__PURE__ */ I(b, { alignItems: "center", direction: "row", children: [
|
7056
7056
|
/* @__PURE__ */ e(
|
7057
|
-
|
7057
|
+
Yr,
|
7058
7058
|
{
|
7059
7059
|
checked: n.transaction_type === ce.CREDIT,
|
7060
7060
|
label: i.manual_transaction_credit_button_label,
|
@@ -7064,7 +7064,7 @@ const Hs = ({ transaction: A }) => {
|
|
7064
7064
|
}
|
7065
7065
|
),
|
7066
7066
|
/* @__PURE__ */ e(
|
7067
|
-
|
7067
|
+
Yr,
|
7068
7068
|
{
|
7069
7069
|
checked: n.transaction_type === ce.DEBIT,
|
7070
7070
|
label: i.manual_transaction_debit_button_label,
|
@@ -7149,7 +7149,7 @@ const Hs = ({ transaction: A }) => {
|
|
7149
7149
|
}
|
7150
7150
|
)
|
7151
7151
|
] });
|
7152
|
-
}, Jf = g(Zf),
|
7152
|
+
}, Jf = g(Zf), _r = 120, _f = ({
|
7153
7153
|
onBackClick: A,
|
7154
7154
|
height: t = "100dvh",
|
7155
7155
|
showInsights: i = !1,
|
@@ -7182,9 +7182,9 @@ const Hs = ({ transaction: A }) => {
|
|
7182
7182
|
h.useEffect(() => {
|
7183
7183
|
sA(r);
|
7184
7184
|
}, [r]), h.useEffect(() => {
|
7185
|
-
const ZA = MA(dA()),
|
7186
|
-
fA(ZA,
|
7187
|
-
dateRange: { start: ZA, end:
|
7185
|
+
const ZA = MA(dA()), Er = BA(dA());
|
7186
|
+
fA(ZA, Er), P({
|
7187
|
+
dateRange: { start: ZA, end: Er },
|
7188
7188
|
accounts: Z.map((tn) => tn.guid),
|
7189
7189
|
custom: (tn) => !tn.accountIsClosed
|
7190
7190
|
}), Ze(!0), q(Y.TRANSACTIONS_VIEW);
|
@@ -7269,7 +7269,7 @@ const Hs = ({ transaction: A }) => {
|
|
7269
7269
|
children: /* @__PURE__ */ e(
|
7270
7270
|
Zd,
|
7271
7271
|
{
|
7272
|
-
height: `calc(${t} - ${
|
7272
|
+
height: `calc(${t} - ${_r}px)`,
|
7273
7273
|
onCategoryClick: (ZA) => {
|
7274
7274
|
DA(ZA), gA(
|
7275
7275
|
"category"
|
@@ -7296,7 +7296,7 @@ const Hs = ({ transaction: A }) => {
|
|
7296
7296
|
children: /* @__PURE__ */ e(
|
7297
7297
|
Pt,
|
7298
7298
|
{
|
7299
|
-
height: `calc(${t} - ${
|
7299
|
+
height: `calc(${t} - ${_r}px)`,
|
7300
7300
|
onClick: (ZA) => {
|
7301
7301
|
DA(ZA), gA(
|
7302
7302
|
"transaction"
|
@@ -7624,8 +7624,8 @@ const Hs = ({ transaction: A }) => {
|
|
7624
7624
|
gridRow: 1,
|
7625
7625
|
gridColumn: 1,
|
7626
7626
|
zIndex: 2
|
7627
|
-
}, ki = (A) => A ? { margin: "0 0 -6px -4px" } : void 0,
|
7628
|
-
let n = t &&
|
7627
|
+
}, ki = (A) => A ? { margin: "0 0 -6px -4px" } : void 0, Ar = ({ isOffset: A = !1, size: t = 16 }) => /* @__PURE__ */ e(Et, { size: t, sx: { ...ki(A) }, children: /* @__PURE__ */ e(jI, { color: "primary", sx: { fontSize: t, ...Wi } }) }), er = ({ isOffset: A = !1, size: t = 16 }) => /* @__PURE__ */ e(Et, { size: t, sx: { ...ki(A) }, children: /* @__PURE__ */ e(mI, { sx: { color: "categories.income", fontSize: t, ...Wi } }) }), tr = ({ isOffset: A = !1, size: t = 16 }) => /* @__PURE__ */ e(Et, { size: t, sx: { ...ki(A) }, children: /* @__PURE__ */ e(Hi, { color: "error", sx: { fontSize: t, ...Wi } }) }), ir = ({ isOffset: A = !1, size: t = 16 }) => /* @__PURE__ */ e(Et, { size: t, sx: { ...ki(A) }, children: /* @__PURE__ */ e(qi, { color: "success", sx: { fontSize: t, ...Wi } }) }), $r = ({ copy: A, date: t, type: i }) => {
|
7628
|
+
let n = t && Uo(t) ? C(A.monthly_ordinal, ve(t, "do")) : A.monthly;
|
7629
7629
|
switch (i) {
|
7630
7630
|
case F.EveryQuarter:
|
7631
7631
|
n = t ? C(A.quarterly_ordinal, ve(t, "do")) : A.quarterly;
|
@@ -7669,14 +7669,14 @@ const Hs = ({ transaction: A }) => {
|
|
7669
7669
|
}
|
7670
7670
|
}, oE = (A) => {
|
7671
7671
|
if (A.activityType === SA.Income)
|
7672
|
-
return /* @__PURE__ */ e(
|
7672
|
+
return /* @__PURE__ */ e(er, {});
|
7673
7673
|
switch (A.activityStatus) {
|
7674
7674
|
case FA.Missed:
|
7675
|
-
return /* @__PURE__ */ e(er, {});
|
7676
|
-
case FA.Paid:
|
7677
7675
|
return /* @__PURE__ */ e(tr, {});
|
7676
|
+
case FA.Paid:
|
7677
|
+
return /* @__PURE__ */ e(ir, {});
|
7678
7678
|
default:
|
7679
|
-
return /* @__PURE__ */ e(
|
7679
|
+
return /* @__PURE__ */ e(Ar, {});
|
7680
7680
|
}
|
7681
7681
|
}, sE = ({
|
7682
7682
|
activity: A,
|
@@ -7687,7 +7687,7 @@ const Hs = ({ transaction: A }) => {
|
|
7687
7687
|
}) => {
|
7688
7688
|
const { recurring: r } = w(), [o, s] = h.useState(""), a = A.activityType === SA.Income, c = A.activityStatus === FA.Paid, E = A.activityStatus === FA.Missed, d = A.activityStatus === FA.Upcoming;
|
7689
7689
|
let f = r.paid?.toLowerCase();
|
7690
|
-
return E ? f = r.missed?.toLowerCase() : d && (f =
|
7690
|
+
return E ? f = r.missed?.toLowerCase() : d && (f = $r(n ? {
|
7691
7691
|
copy: r,
|
7692
7692
|
date: A.expectedDate,
|
7693
7693
|
type: A.recurrenceType
|
@@ -7889,7 +7889,7 @@ const Hs = ({ transaction: A }) => {
|
|
7889
7889
|
];
|
7890
7890
|
h.useEffect(() => {
|
7891
7891
|
const d = jA(s.date);
|
7892
|
-
o(
|
7892
|
+
o(xr(d)), r(F.EveryMonth);
|
7893
7893
|
}, [s]);
|
7894
7894
|
const E = (d) => {
|
7895
7895
|
const f = jA(s.date);
|
@@ -7901,13 +7901,13 @@ const Hs = ({ transaction: A }) => {
|
|
7901
7901
|
o(cc(f));
|
7902
7902
|
break;
|
7903
7903
|
case F.EveryMonth:
|
7904
|
-
o(
|
7904
|
+
o(xr(f));
|
7905
7905
|
break;
|
7906
7906
|
case F.EveryOtherMonth:
|
7907
7907
|
o(dc(f));
|
7908
7908
|
break;
|
7909
7909
|
case F.EveryQuarter:
|
7910
|
-
o(
|
7910
|
+
o(is(f));
|
7911
7911
|
break;
|
7912
7912
|
case F.EveryOtherQuarter:
|
7913
7913
|
o(fc(f));
|
@@ -7920,8 +7920,8 @@ const Hs = ({ transaction: A }) => {
|
|
7920
7920
|
};
|
7921
7921
|
return /* @__PURE__ */ I(b, { bgcolor: A, gap: 24, height: "100%", children: [
|
7922
7922
|
/* @__PURE__ */ I(b, { children: [
|
7923
|
-
/* @__PURE__ */ e(
|
7924
|
-
/* @__PURE__ */ e(
|
7923
|
+
/* @__PURE__ */ e(_n, { bgcolor: A, children: Yi(s.date) }),
|
7924
|
+
/* @__PURE__ */ e(Jn, { transaction: s })
|
7925
7925
|
] }),
|
7926
7926
|
/* @__PURE__ */ e(R, { bold: !0, sx: { mx: 24 }, variant: "Body", children: i ? a.income_schedule : a.expense_schedule }),
|
7927
7927
|
/* @__PURE__ */ e(
|
@@ -8041,7 +8041,7 @@ const Hs = ({ transaction: A }) => {
|
|
8041
8041
|
activityType: SA.Expense,
|
8042
8042
|
amount: n.amount,
|
8043
8043
|
categoryGuid: r?.category_guid,
|
8044
|
-
expectedDate:
|
8044
|
+
expectedDate: Vo(n.occurs_on),
|
8045
8045
|
name: n.description,
|
8046
8046
|
institution: o?.user_name,
|
8047
8047
|
institutionGuid: o?.institution_guid,
|
@@ -8128,7 +8128,7 @@ const Hs = ({ transaction: A }) => {
|
|
8128
8128
|
}, RE = (A, t, i) => {
|
8129
8129
|
const n = [], r = i.find((v) => v.scheduled_payment_guid === t.guid);
|
8130
8130
|
if (!r) return [];
|
8131
|
-
const o = A.find((v) => v.guid === r?.account_guid), s =
|
8131
|
+
const o = A.find((v) => v.guid === r?.account_guid), s = Vo(t.occurs_on), a = {
|
8132
8132
|
accountGuid: o?.guid,
|
8133
8133
|
activityStatus: FA.Upcoming,
|
8134
8134
|
activityType: SA.Expense,
|
@@ -8164,11 +8164,11 @@ const Hs = ({ transaction: A }) => {
|
|
8164
8164
|
for (n.push({
|
8165
8165
|
...a,
|
8166
8166
|
expectedDate: s
|
8167
|
-
}), l =
|
8167
|
+
}), l = zr(s, 2); Ot(l, d); )
|
8168
8168
|
n.push({
|
8169
8169
|
...a,
|
8170
8170
|
expectedDate: l
|
8171
|
-
}), l =
|
8171
|
+
}), l = zr(l, 2);
|
8172
8172
|
for (l = Dt(s, 2); qA(l, f); )
|
8173
8173
|
n.push({
|
8174
8174
|
...a,
|
@@ -8266,7 +8266,7 @@ const Hs = ({ transaction: A }) => {
|
|
8266
8266
|
] }, d.sequenceGuid)),
|
8267
8267
|
/* @__PURE__ */ e(Ls, { isIncome: !0, label: A.add_income, onAddActivity: E })
|
8268
8268
|
] });
|
8269
|
-
},
|
8269
|
+
}, nr = g(PE), bE = () => {
|
8270
8270
|
const [A, t] = h.useState(0), { onEvent: i } = J(), { recurring: n } = w();
|
8271
8271
|
return /* @__PURE__ */ I(L, { bgcolor: "background.default", height: "100%", children: [
|
8272
8272
|
/* @__PURE__ */ I(
|
@@ -8287,7 +8287,7 @@ const Hs = ({ transaction: A }) => {
|
|
8287
8287
|
}
|
8288
8288
|
),
|
8289
8289
|
A === 0 && /* @__PURE__ */ e(lE, {}),
|
8290
|
-
A === 1 && /* @__PURE__ */ e(
|
8290
|
+
A === 1 && /* @__PURE__ */ e(nr, {})
|
8291
8291
|
] });
|
8292
8292
|
}, Os = g(bE), Ft = (A, t) => A + t.amount, on = (A) => A.activityType === SA.Income && Lt(A.expectedDate, {
|
8293
8293
|
start: MA(dA()),
|
@@ -8315,13 +8315,13 @@ const Hs = ({ transaction: A }) => {
|
|
8315
8315
|
(u) => u.activityType === SA.Expense && u.activityStatus === FA.Paid
|
8316
8316
|
), l = c.some((u) => u.activityType === SA.Income), v = (E ? 1 : 0) + (d ? 1 : 0) + (f ? 1 : 0) + (l ? 1 : 0);
|
8317
8317
|
return /* @__PURE__ */ e(
|
8318
|
-
|
8318
|
+
So,
|
8319
8319
|
{
|
8320
8320
|
badgeContent: c.length > 0 && /* @__PURE__ */ I(AA, { children: [
|
8321
|
-
d && /* @__PURE__ */ e(
|
8322
|
-
f && /* @__PURE__ */ e(
|
8323
|
-
E && /* @__PURE__ */ e(
|
8324
|
-
l && /* @__PURE__ */ e(
|
8321
|
+
d && /* @__PURE__ */ e(tr, { isOffset: !0 }),
|
8322
|
+
f && /* @__PURE__ */ e(ir, { isOffset: !0 }),
|
8323
|
+
E && /* @__PURE__ */ e(Ar, { isOffset: !0 }),
|
8324
|
+
l && /* @__PURE__ */ e(er, { isOffset: !0 })
|
8325
8325
|
] }),
|
8326
8326
|
overlap: "circular",
|
8327
8327
|
sx: {
|
@@ -8369,18 +8369,18 @@ const Hs = ({ transaction: A }) => {
|
|
8369
8369
|
justifyContent: "center",
|
8370
8370
|
mt: 12,
|
8371
8371
|
children: [
|
8372
|
-
/* @__PURE__ */ e(Ri, { icon:
|
8373
|
-
/* @__PURE__ */ e(Ri, { icon:
|
8374
|
-
/* @__PURE__ */ e(Ri, { icon:
|
8375
|
-
/* @__PURE__ */ e(Ri, { icon:
|
8372
|
+
/* @__PURE__ */ e(Ri, { icon: Ar, label: A.expense }),
|
8373
|
+
/* @__PURE__ */ e(Ri, { icon: er, label: A.income }),
|
8374
|
+
/* @__PURE__ */ e(Ri, { icon: tr, label: A.missed }),
|
8375
|
+
/* @__PURE__ */ e(Ri, { icon: ir, label: A.paid })
|
8376
8376
|
]
|
8377
8377
|
}
|
8378
8378
|
);
|
8379
|
-
}, gE = g(CE),
|
8379
|
+
}, gE = g(CE), Ao = 58, XE = () => {
|
8380
8380
|
const A = RA(), { onEvent: t } = J(), { selectedDay: i } = kA(), [n, r] = h.useState(
|
8381
|
-
|
8381
|
+
Cr(/* @__PURE__ */ new Date()) * St + Ao
|
8382
8382
|
), o = (a) => {
|
8383
|
-
r(
|
8383
|
+
r(Cr(a) * St + Ao), t(Y.RECURRING_ACTIVITY_CLICK_CALENDAR_RIGHT);
|
8384
8384
|
}, s = /* @__PURE__ */ e(
|
8385
8385
|
Qi,
|
8386
8386
|
{
|
@@ -8525,7 +8525,7 @@ const Hs = ({ transaction: A }) => {
|
|
8525
8525
|
] }),
|
8526
8526
|
/* @__PURE__ */ e(ri, { data: c })
|
8527
8527
|
] });
|
8528
|
-
},
|
8528
|
+
}, eo = g(yE), xE = () => {
|
8529
8529
|
const { recurring: A } = w(), { isMobile: t, isSmallTablet: i } = HA(), {
|
8530
8530
|
activities: n,
|
8531
8531
|
missedActivities: r,
|
@@ -8548,7 +8548,7 @@ const Hs = ({ transaction: A }) => {
|
|
8548
8548
|
return /* @__PURE__ */ I(it, { container: !0, pt: 16, px: 24, spacing: 24, children: [
|
8549
8549
|
/* @__PURE__ */ e(it, { md: !0, sm: 12, width: "100%", children: /* @__PURE__ */ I(b, { gap: 24, children: [
|
8550
8550
|
/* @__PURE__ */ e(
|
8551
|
-
|
8551
|
+
eo,
|
8552
8552
|
{
|
8553
8553
|
expected: P,
|
8554
8554
|
missed: X,
|
@@ -8558,7 +8558,7 @@ const Hs = ({ transaction: A }) => {
|
|
8558
8558
|
}
|
8559
8559
|
),
|
8560
8560
|
/* @__PURE__ */ e(
|
8561
|
-
|
8561
|
+
eo,
|
8562
8562
|
{
|
8563
8563
|
expected: y,
|
8564
8564
|
paid: j,
|
@@ -8719,8 +8719,8 @@ const Hs = ({ transaction: A }) => {
|
|
8719
8719
|
}, YP = g(OE);
|
8720
8720
|
class QE {
|
8721
8721
|
globalStore;
|
8722
|
-
api = new
|
8723
|
-
cashflowApi = new
|
8722
|
+
api = new Lr("/", "");
|
8723
|
+
cashflowApi = new oo("/", "");
|
8724
8724
|
cashflowSequences = [];
|
8725
8725
|
cashflowEvents = [];
|
8726
8726
|
projectedEvents = [];
|
@@ -8729,7 +8729,7 @@ class QE {
|
|
8729
8729
|
selectedDay;
|
8730
8730
|
isDataLoaded = !1;
|
8731
8731
|
constructor(t) {
|
8732
|
-
this.globalStore = t, this.api = new
|
8732
|
+
this.globalStore = t, this.api = new Lr(t.endpoint, t.sessionToken), this.cashflowApi = new oo(t.endpoint, t.sessionToken), LA(this);
|
8733
8733
|
}
|
8734
8734
|
get activities() {
|
8735
8735
|
return vE(
|
@@ -8919,7 +8919,7 @@ const qE = {
|
|
8919
8919
|
gridRow: 1,
|
8920
8920
|
gridColumn: 1,
|
8921
8921
|
zIndex: 2
|
8922
|
-
}, GE = ({ size: A = 20 }) => /* @__PURE__ */ e(Et, { size: A, children: /* @__PURE__ */ e(Mi, { color: "error", sx: { fontSize: A, ...qE } }) }),
|
8922
|
+
}, GE = ({ size: A = 20 }) => /* @__PURE__ */ e(Et, { size: A, children: /* @__PURE__ */ e(Mi, { color: "error", sx: { fontSize: A, ...qE } }) }), rr = (A) => A && (A.account_type === $.CREDIT_CARD || A.account_type === $.LOAN || A.account_type === $.MORTGAGE || A.account_type === $.LINE_OF_CREDIT || A.account_type === $.CHECKING_LINE_OF_CREDIT), ME = (A) => A.is_manual || !A.guid, NE = (A) => A.account_type === $.LINE_OF_CREDIT || A.account_type === $.CREDIT_CARD || A.account_type === $.CHECKING_LINE_OF_CREDIT, TE = (A) => A.account_type === $.SAVINGS || A.account_type === $.CHECKING || A.account_type === $.LINE_OF_CREDIT || A.account_type === $.CREDIT_CARD || A.account_type === $.LOAN || A.account_type === $.MORTGAGE, YE = (A) => A.account_type === $.LOAN || A.account_type === $.MORTGAGE, VE = (A, t) => {
|
8923
8923
|
const i = [
|
8924
8924
|
{
|
8925
8925
|
event: "account_details_click_account_name",
|
@@ -8942,7 +8942,7 @@ const qE = {
|
|
8942
8942
|
const n = Object.keys($).filter((r) => Number(r)).map((r) => ({
|
8943
8943
|
label: t.account_types[r],
|
8944
8944
|
value: Number(r),
|
8945
|
-
icon: /* @__PURE__ */ e(G, { name:
|
8945
|
+
icon: /* @__PURE__ */ e(G, { name: $o[r] })
|
8946
8946
|
}));
|
8947
8947
|
i.push({
|
8948
8948
|
label: t.account_type,
|
@@ -8954,7 +8954,7 @@ const qE = {
|
|
8954
8954
|
});
|
8955
8955
|
}
|
8956
8956
|
if (A.account_type === $.PROPERTY) {
|
8957
|
-
const n = Object.keys(
|
8957
|
+
const n = Object.keys(Ko).filter((r) => Number(r)).map((r) => ({
|
8958
8958
|
label: t.property_types[r],
|
8959
8959
|
value: Number(r),
|
8960
8960
|
icon: /* @__PURE__ */ e(G, { name: $I[r] })
|
@@ -8980,7 +8980,7 @@ const qE = {
|
|
8980
8980
|
valueFormatter: (o) => Hn(o) ? Ti(o / 100) : o
|
8981
8981
|
});
|
8982
8982
|
}
|
8983
|
-
return
|
8983
|
+
return rr(A) && (i.push({
|
8984
8984
|
label: t.minimum_payment,
|
8985
8985
|
name: "minimum_payment",
|
8986
8986
|
placeholder: C(t.enter_value, t.minimum_payment),
|
@@ -9001,7 +9001,7 @@ const qE = {
|
|
9001
9001
|
type: Ee.Date,
|
9002
9002
|
valueFormatter: (n) => C(
|
9003
9003
|
t.day_of_every_month,
|
9004
|
-
|
9004
|
+
ts(n <= 31 ? n : new Date(n).getDate())
|
9005
9005
|
)
|
9006
9006
|
})), NE(A) && i.push({
|
9007
9007
|
label: t.credit_limit,
|
@@ -9056,7 +9056,7 @@ const qE = {
|
|
9056
9056
|
(A.connectionStatus === zt.Error || A.connectionStatus === zt.RequiresMfa) && (d = /* @__PURE__ */ e(GE, { size: 16 }));
|
9057
9057
|
const f = /* @__PURE__ */ I(AA, { children: [
|
9058
9058
|
/* @__PURE__ */ e(mA, { children: /* @__PURE__ */ e(
|
9059
|
-
|
9059
|
+
So,
|
9060
9060
|
{
|
9061
9061
|
badgeContent: n ? d : void 0,
|
9062
9062
|
sx: {
|
@@ -9120,7 +9120,7 @@ const qE = {
|
|
9120
9120
|
borderBottomRightRadius: "3px",
|
9121
9121
|
minHeight: "auto"
|
9122
9122
|
},
|
9123
|
-
children: /* @__PURE__ */ e(
|
9123
|
+
children: /* @__PURE__ */ e(Kn, { remaining: A })
|
9124
9124
|
}
|
9125
9125
|
);
|
9126
9126
|
var ai = /* @__PURE__ */ ((A) => (A.EXPENSE = "expense", A.INCOME = "income", A))(ai || {});
|
@@ -9141,7 +9141,7 @@ const UE = ({ activity: A }) => /* @__PURE__ */ I(AA, { children: [
|
|
9141
9141
|
)
|
9142
9142
|
] }),
|
9143
9143
|
/* @__PURE__ */ e(M, {})
|
9144
|
-
] }),
|
9144
|
+
] }), to = g(UE), FE = ({ total: A, type: t }) => {
|
9145
9145
|
const { cashflow: i } = w();
|
9146
9146
|
return /* @__PURE__ */ I(AA, { children: [
|
9147
9147
|
/* @__PURE__ */ I(
|
@@ -9167,7 +9167,7 @@ const UE = ({ activity: A }) => /* @__PURE__ */ I(AA, { children: [
|
|
9167
9167
|
),
|
9168
9168
|
/* @__PURE__ */ e(M, {})
|
9169
9169
|
] });
|
9170
|
-
},
|
9170
|
+
}, io = g(FE), no = (A, t) => (i) => i.accountGuid === A.guid && (Nn(i.expectedDate) || Ot(i.expectedDate, t.start)) && qA(i.expectedDate, t.end), WE = () => {
|
9171
9171
|
const { availableWidth: A } = wt(), { cashflow: t } = w(), { upcomingExpenses: i, upcomingIncome: n } = kA(), { dateRange: r, selectedCashAccounts: o } = Tt();
|
9172
9172
|
return /* @__PURE__ */ I(b, { children: [
|
9173
9173
|
/* @__PURE__ */ I(b, { direction: A < 400 ? "column" : "row", justifyContent: "space-between", children: [
|
@@ -9180,8 +9180,8 @@ const UE = ({ activity: A }) => /* @__PURE__ */ I(AA, { children: [
|
|
9180
9180
|
] })
|
9181
9181
|
] }),
|
9182
9182
|
/* @__PURE__ */ e(b, { children: o.map((s) => {
|
9183
|
-
const a = n.filter(
|
9184
|
-
|
9183
|
+
const a = n.filter(no(s, r)).sort((f, l) => yA(f.expectedDate) - yA(l.expectedDate)), c = i.filter(
|
9184
|
+
no(s, r)
|
9185
9185
|
), E = a.reduce(
|
9186
9186
|
(f, l) => f + l.amount,
|
9187
9187
|
0
|
@@ -9214,17 +9214,17 @@ const UE = ({ activity: A }) => /* @__PURE__ */ I(AA, { children: [
|
|
9214
9214
|
a.length > 0 && /* @__PURE__ */ e(W, { children: /* @__PURE__ */ e(
|
9215
9215
|
nA,
|
9216
9216
|
{
|
9217
|
-
subheader: /* @__PURE__ */ e(
|
9217
|
+
subheader: /* @__PURE__ */ e(io, { total: E, type: ai.INCOME }),
|
9218
9218
|
sx: { width: "100%" },
|
9219
|
-
children: a.map((f) => /* @__PURE__ */ e(
|
9219
|
+
children: a.map((f) => /* @__PURE__ */ e(to, { activity: f }, f.sequenceGuid))
|
9220
9220
|
}
|
9221
9221
|
) }),
|
9222
9222
|
c.length > 0 && /* @__PURE__ */ e(W, { children: /* @__PURE__ */ e(
|
9223
9223
|
nA,
|
9224
9224
|
{
|
9225
|
-
subheader: /* @__PURE__ */ e(
|
9225
|
+
subheader: /* @__PURE__ */ e(io, { total: d, type: ai.EXPENSE }),
|
9226
9226
|
sx: { width: "100%" },
|
9227
|
-
children: c.map((f) => /* @__PURE__ */ e(
|
9227
|
+
children: c.map((f) => /* @__PURE__ */ e(to, { activity: f }, f.scheduledPaymentGuid))
|
9228
9228
|
}
|
9229
9229
|
) }),
|
9230
9230
|
/* @__PURE__ */ e(
|
@@ -9448,7 +9448,7 @@ const UE = ({ activity: A }) => /* @__PURE__ */ I(AA, { children: [
|
|
9448
9448
|
px: 16,
|
9449
9449
|
py: 12,
|
9450
9450
|
sx: { borderBottomLeftRadius: "4px", borderBottomRightRadius: "4px" },
|
9451
|
-
children: /* @__PURE__ */ e(
|
9451
|
+
children: /* @__PURE__ */ e(Kn, { remaining: E.remaining })
|
9452
9452
|
}
|
9453
9453
|
)
|
9454
9454
|
] }) })
|
@@ -9524,12 +9524,12 @@ const UE = ({ activity: A }) => /* @__PURE__ */ I(AA, { children: [
|
|
9524
9524
|
t && /* @__PURE__ */ e(GA, { amount: A, component: "h2", symbol: r, variant: "Small" })
|
9525
9525
|
]
|
9526
9526
|
}
|
9527
|
-
),
|
9527
|
+
), ro = (A, t) => (i) => i.accountGuid && A.includes(i.accountGuid) && (Nn(i.expectedDate) || Ot(i.expectedDate, t.start)) && qA(i.expectedDate, t.end), $E = () => {
|
9528
9528
|
const [A, t] = h.useState(!1), { availableWidth: i } = wt(), { cashflow: n } = w(), { upcomingExpenses: r, upcomingIncome: o } = kA(), { selectedAccountGuids: s } = cA(), { dateRange: a, selectedCashAccounts: c } = Tt(), { userProfile: E } = Fe(), d = h.useMemo(
|
9529
|
-
() => r.filter(
|
9529
|
+
() => r.filter(ro(s, a)),
|
9530
9530
|
[a, s, r]
|
9531
9531
|
), f = h.useMemo(
|
9532
|
-
() => o.filter(
|
9532
|
+
() => o.filter(ro(s, a)),
|
9533
9533
|
[a, s, o]
|
9534
9534
|
), l = h.useMemo(
|
9535
9535
|
() => c.reduce((X, x) => X + (x?.balance || 0), 0),
|
@@ -9636,12 +9636,12 @@ const UE = ({ activity: A }) => /* @__PURE__ */ I(AA, { children: [
|
|
9636
9636
|
onClose: () => t(!1),
|
9637
9637
|
shouldShowHeaderBorders: !1,
|
9638
9638
|
title: n.manage_income,
|
9639
|
-
children: /* @__PURE__ */ e(
|
9639
|
+
children: /* @__PURE__ */ e(nr, {})
|
9640
9640
|
}
|
9641
9641
|
)
|
9642
9642
|
] });
|
9643
9643
|
}, Ah = g($E), eh = ({ handleNextStep: A }) => {
|
9644
|
-
const { completeOnboarding: t } =
|
9644
|
+
const { completeOnboarding: t } = Wn(), { cashflow: i } = w(), n = RA();
|
9645
9645
|
return /* @__PURE__ */ I(b, { children: [
|
9646
9646
|
/* @__PURE__ */ e(rt, { pb: 12, children: i.welcome_title }),
|
9647
9647
|
/* @__PURE__ */ e(
|
@@ -9725,7 +9725,7 @@ const UE = ({ activity: A }) => /* @__PURE__ */ I(AA, { children: [
|
|
9725
9725
|
transform: rotate(360deg);
|
9726
9726
|
}
|
9727
9727
|
`, ah = () => {
|
9728
|
-
const { addCashflowEvent: A, addCashflowSequence: t, cashflowSequences: i } = kA(), { cashflow: n, common: r } = w(), { completeOnboarding: o } =
|
9728
|
+
const { addCashflowEvent: A, addCashflowSequence: t, cashflowSequences: i } = kA(), { cashflow: n, common: r } = w(), { completeOnboarding: o } = Wn(), { isDirty: s } = Tt(), { isMobile: a } = HA(), { isCopyLoaded: c, setDisplayedDate: E } = cA(), { filter: d, setFilter: f, transactions: l } = zA(), v = RA(), [u, H] = We(!0), [P, z] = h.useState(F.EveryMonth), [X, x] = We(!1), [y, j] = h.useState(null), [D, q] = We(1), [m, O] = We([]), [K, B] = We(""), Z = h.useMemo(
|
9729
9729
|
() => l.find((hA) => hA.guid === K),
|
9730
9730
|
[K]
|
9731
9731
|
), fA = !!i.length, sA = async () => {
|
@@ -9794,10 +9794,10 @@ const UE = ({ activity: A }) => /* @__PURE__ */ I(AA, { children: [
|
|
9794
9794
|
/* @__PURE__ */ e(wA, { mb: 24, children: n.add_income_description }),
|
9795
9795
|
m.length > 0 && !Z && /* @__PURE__ */ I(AA, { children: [
|
9796
9796
|
/* @__PURE__ */ e(nA, { children: m.map((hA, DA) => /* @__PURE__ */ I(h.Fragment, { children: [
|
9797
|
-
/* @__PURE__ */ e(
|
9797
|
+
/* @__PURE__ */ e(_n, { bgcolor: "background.paper", children: Yi(
|
9798
9798
|
yA(hA.nextDate || hA.date)
|
9799
9799
|
) }),
|
9800
|
-
/* @__PURE__ */ e(
|
9800
|
+
/* @__PURE__ */ e(Jn, { transaction: hA }),
|
9801
9801
|
DA !== m.length - 1 && /* @__PURE__ */ e(M, {})
|
9802
9802
|
] }, hA.guid)) }),
|
9803
9803
|
/* @__PURE__ */ I(b, { alignItems: "center", direction: "row", children: [
|
@@ -9960,7 +9960,7 @@ const UE = ({ activity: A }) => /* @__PURE__ */ I(AA, { children: [
|
|
9960
9960
|
}
|
9961
9961
|
);
|
9962
9962
|
}, VP = g(ch);
|
9963
|
-
class
|
9963
|
+
class oo {
|
9964
9964
|
fetchInstance;
|
9965
9965
|
constructor(t, i) {
|
9966
9966
|
this.fetchInstance = new JA(t, i);
|
@@ -10492,7 +10492,7 @@ const Ke = () => {
|
|
10492
10492
|
if (!h.useContext(pt))
|
10493
10493
|
throw new Error("useCategoryUiStore() must be used within the GlobalDataContext");
|
10494
10494
|
return CA().uiStore;
|
10495
|
-
}, Ki = (A) => A.top_level_category_guid === p.INCOME || A.category_guid === p.INCOME, uh = (A) => !Ki(A) && !Ns(A), Ms = (A) =>
|
10495
|
+
}, Ki = (A) => A.top_level_category_guid === p.INCOME || A.category_guid === p.INCOME, uh = (A) => !Ki(A) && !Ns(A), Ms = (A) => pr.includes(A.top_level_category_guid) || pr.includes(A.category_guid), Ns = (A) => A.top_level_category_guid === p.TRANSFER || A.category_guid === p.TRANSFER, Ph = (A) => !Ki(A) && !Ms(A) && !Ns(A), bh = (A) => A.filter((t) => t.category_guid === t.top_level_category_guid), or = (A, t) => {
|
10496
10496
|
const i = [];
|
10497
10497
|
let n = MA(Ye(/* @__PURE__ */ new Date(), 5));
|
10498
10498
|
const r = /* @__PURE__ */ new Date();
|
@@ -10504,13 +10504,13 @@ const Ke = () => {
|
|
10504
10504
|
return i;
|
10505
10505
|
}, Hh = (A, t) => {
|
10506
10506
|
const i = A.filter(Ki);
|
10507
|
-
return
|
10507
|
+
return or(i).map((n) => ({ ...n, y: Math.abs(n.y) }));
|
10508
10508
|
}, zh = (A, t) => {
|
10509
10509
|
const i = A.filter(Ms);
|
10510
|
-
return
|
10510
|
+
return or(i).map((n) => ({ ...n, y: Math.abs(n.y) }));
|
10511
10511
|
}, Ch = (A, t) => {
|
10512
10512
|
const i = A.filter(Ph);
|
10513
|
-
return
|
10513
|
+
return or(i);
|
10514
10514
|
}, gh = (A) => {
|
10515
10515
|
const t = [], i = A.filter(
|
10516
10516
|
(o) => o.top_level_category_guid !== p.INCOME && o.top_level_category_guid !== p.TRANSFER && o.total > 0
|
@@ -10614,7 +10614,7 @@ const Ke = () => {
|
|
10614
10614
|
] }),
|
10615
10615
|
d && /* @__PURE__ */ e(b, { children: A || /* @__PURE__ */ e(Dh, {}) })
|
10616
10616
|
] });
|
10617
|
-
},
|
10617
|
+
}, sr = g(jh), mh = "#FF7B08";
|
10618
10618
|
function Lh(A, t) {
|
10619
10619
|
const [i, n, r] = A.replace(/^#/, "").match(/.{1,2}/g).map((s) => parseInt(s, 16)), o = [
|
10620
10620
|
Math.max(0, Math.min(255, Math.round(i * t))),
|
@@ -10678,7 +10678,7 @@ const Ts = ({
|
|
10678
10678
|
});
|
10679
10679
|
const z = (y) => P.findIndex((j) => j?.guid === y);
|
10680
10680
|
return /* @__PURE__ */ e(
|
10681
|
-
|
10681
|
+
Mo,
|
10682
10682
|
{
|
10683
10683
|
axisHighlight: { x: "none" },
|
10684
10684
|
disableLineItemHighlight: !0,
|
@@ -11143,7 +11143,7 @@ const Ts = ({
|
|
11143
11143
|
sx: { ...i },
|
11144
11144
|
title: n.details_title,
|
11145
11145
|
children: /* @__PURE__ */ I(b, { bgcolor: "background.default", children: [
|
11146
|
-
/* @__PURE__ */ e(
|
11146
|
+
/* @__PURE__ */ e(sr, { customDetailsChart: s }),
|
11147
11147
|
/* @__PURE__ */ e(Fh, {})
|
11148
11148
|
] })
|
11149
11149
|
}
|
@@ -11465,7 +11465,7 @@ const xe = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
|
|
11465
11465
|
o(E), i(Y.DEBTS_CLICK_PRIORITY, { debts_priority: E });
|
11466
11466
|
};
|
11467
11467
|
return /* @__PURE__ */ e(
|
11468
|
-
|
11468
|
+
Go,
|
11469
11469
|
{
|
11470
11470
|
anchorEl: A,
|
11471
11471
|
anchorOrigin: {
|
@@ -11663,17 +11663,17 @@ const xe = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
|
|
11663
11663
|
};
|
11664
11664
|
function dl(A, t) {
|
11665
11665
|
const i = A.filter((o) => o.account_type === $.CHECKING_LINE_OF_CREDIT ? Number(o.balance) <= 0 : o.is_excluded_from_debts !== !0), n = t.filter((o) => i.some((s) => s.guid === o.account_guid)).map(
|
11666
|
-
(o) =>
|
11667
|
-
), r = i.filter((o) => !n.some((s) => s.account.guid === o.guid)).map((o) =>
|
11666
|
+
(o) => so(i.find((s) => s.guid === o.account_guid), o)
|
11667
|
+
), r = i.filter((o) => !n.some((s) => s.account.guid === o.guid)).map((o) => so(o));
|
11668
11668
|
return [...n, ...r];
|
11669
11669
|
}
|
11670
|
-
function
|
11670
|
+
function so(A, t) {
|
11671
11671
|
const i = { account: A, goal: t, guid: A.guid };
|
11672
11672
|
if (t) {
|
11673
|
-
const n = t.payment_due_at ?
|
11673
|
+
const n = t.payment_due_at ? br(ii(t.payment_due_at)) : 1, r = Hr(/* @__PURE__ */ new Date()).setDate(n);
|
11674
11674
|
i.balance = Math.abs(t.amount - t.current_amount), i.interest_rate = t.interest_rate, i.is_paid_off = t.is_complete, i.monthly_payment = t.monthly_payment, i.name = t.name, i.original_balance = t.initial_amount, i.payment_due_date = r;
|
11675
11675
|
} else {
|
11676
|
-
const n = A.payment_due_at ?
|
11676
|
+
const n = A.payment_due_at ? br(ii(A.payment_due_at)) : 1, r = Hr(/* @__PURE__ */ new Date()).setDate(n), o = Math.abs(A.available_balance ?? A.balance ?? 0), s = A.minimum_payment ?? void 0, a = A.interest_rate ?? A.apr ?? A.apy;
|
11677
11677
|
i.balance = Math.abs(o), i.interest_rate = a, i.is_paid_off = o === 0, i.monthly_payment = s, i.name = A?.name ?? cl.unnamed_label, i.original_balance = A.original_balance, i.payment_due_date = r;
|
11678
11678
|
}
|
11679
11679
|
return i.is_impossible = !1, i.priority = void 0, i.projected_payoff_date = void 0, i;
|
@@ -11710,7 +11710,7 @@ class El {
|
|
11710
11710
|
return this.debts.map((i) => Number(i.monthly_payment)).filter((i) => !isNaN(i)).reduce((i, n) => i + n, 0);
|
11711
11711
|
}
|
11712
11712
|
}
|
11713
|
-
class
|
11713
|
+
class ao {
|
11714
11714
|
fetchInstance;
|
11715
11715
|
constructor(t, i) {
|
11716
11716
|
this.fetchInstance = new JA(t, i);
|
@@ -11842,7 +11842,7 @@ const vl = (A, t) => {
|
|
11842
11842
|
}
|
11843
11843
|
];
|
11844
11844
|
let u = /* @__PURE__ */ e(iI, {});
|
11845
|
-
return A.track_type === V.DEBT_TRACK ? u = /* @__PURE__ */ e(nI, {}) : A.track_type === V.RETIREMENT_TRACK && (u = /* @__PURE__ */ e(rI, {})), /* @__PURE__ */ e(ge, { elevation: 2, sx: { borderRadius: 2 }, children: /* @__PURE__ */ I(
|
11845
|
+
return A.track_type === V.DEBT_TRACK ? u = /* @__PURE__ */ e(nI, {}) : A.track_type === V.RETIREMENT_TRACK && (u = /* @__PURE__ */ e(rI, {})), /* @__PURE__ */ e(ge, { elevation: 2, sx: { borderRadius: 2 }, children: /* @__PURE__ */ I(Fo, { disabled: !i, onClick: i, children: [
|
11846
11846
|
/* @__PURE__ */ e(
|
11847
11847
|
st,
|
11848
11848
|
{
|
@@ -12154,7 +12154,7 @@ const vl = (A, t) => {
|
|
12154
12154
|
children: E
|
12155
12155
|
}
|
12156
12156
|
) }),
|
12157
|
-
c.map((d) => /* @__PURE__ */ e(ge, { elevation: 2, sx: { borderRadius: 2 }, children: /* @__PURE__ */ e(
|
12157
|
+
c.map((d) => /* @__PURE__ */ e(ge, { elevation: 2, sx: { borderRadius: 2 }, children: /* @__PURE__ */ e(Fo, { onClick: () => o(d), children: /* @__PURE__ */ e(Xe, { sx: { ":last-child": { pb: 16 } }, children: /* @__PURE__ */ I(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
12158
12158
|
/* @__PURE__ */ I(b, { alignItems: "center", direction: "row", gap: 6, children: [
|
12159
12159
|
/* @__PURE__ */ e(G, { color: "success", fill: !0, name: "check_circle", size: 20 }),
|
12160
12160
|
/* @__PURE__ */ e(R, { color: "text.secondary", variant: "Body", children: d.name })
|
@@ -12315,7 +12315,7 @@ const vl = (A, t) => {
|
|
12315
12315
|
/* @__PURE__ */ e(de, {})
|
12316
12316
|
] }),
|
12317
12317
|
/* @__PURE__ */ e(oA, { isOpen: n, onClose: () => r(!1), title: t.account_details, children: /* @__PURE__ */ I(b, { children: [
|
12318
|
-
/* @__PURE__ */ e(
|
12318
|
+
/* @__PURE__ */ e(sr, {}),
|
12319
12319
|
/* @__PURE__ */ e(Js, {})
|
12320
12320
|
] }) })
|
12321
12321
|
] });
|
@@ -12361,7 +12361,7 @@ const vl = (A, t) => {
|
|
12361
12361
|
return /* @__PURE__ */ I(b, { children: [
|
12362
12362
|
c ? /* @__PURE__ */ e(W, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ I(aA, { onClick: () => d(!0), children: [
|
12363
12363
|
/* @__PURE__ */ e(tA, { children: /* @__PURE__ */ I(b, { alignItems: "center", color: "action.active", direction: "row", gap: 8, children: [
|
12364
|
-
/* @__PURE__ */ e(
|
12364
|
+
/* @__PURE__ */ e(To, { filled: !0 }),
|
12365
12365
|
r.details_add_account
|
12366
12366
|
] }) }),
|
12367
12367
|
/* @__PURE__ */ e(de, { color: "primary" })
|
@@ -12491,7 +12491,7 @@ const vl = (A, t) => {
|
|
12491
12491
|
);
|
12492
12492
|
}, xl = g(({ goal: A }) => {
|
12493
12493
|
const { goals: t } = w(), { user: i, updateUser: n } = Fe(), { setAlert: r } = KA(), [o, s] = h.useState(jA(i.birthday ?? 0)), [a, c] = h.useState(null), E = A.is_complete, d = async () => {
|
12494
|
-
o &&
|
12494
|
+
o && Uo(o) && (await n({ ...i, birthday: yA(o) }), r(t.alert_goal_updated_birthday));
|
12495
12495
|
};
|
12496
12496
|
return /* @__PURE__ */ e(
|
12497
12497
|
Ne,
|
@@ -12545,7 +12545,7 @@ const vl = (A, t) => {
|
|
12545
12545
|
] }, u.guid)),
|
12546
12546
|
/* @__PURE__ */ e(W, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ I(aA, { onClick: () => E(!0), children: [
|
12547
12547
|
/* @__PURE__ */ e(tA, { children: /* @__PURE__ */ I(b, { alignItems: "center", color: "action.active", direction: "row", gap: 8, children: [
|
12548
|
-
/* @__PURE__ */ e(
|
12548
|
+
/* @__PURE__ */ e(To, { filled: !0 }),
|
12549
12549
|
t.details_add_account
|
12550
12550
|
] }) }),
|
12551
12551
|
/* @__PURE__ */ e(de, { color: "primary" })
|
@@ -12787,7 +12787,7 @@ const vl = (A, t) => {
|
|
12787
12787
|
});
|
12788
12788
|
class Ll {
|
12789
12789
|
globalStore;
|
12790
|
-
api = new
|
12790
|
+
api = new ao("/", "");
|
12791
12791
|
alert = "";
|
12792
12792
|
goals = [];
|
12793
12793
|
retirementGoalAccounts = [];
|
@@ -12796,7 +12796,7 @@ class Ll {
|
|
12796
12796
|
monthlyCashFlowProfile = void 0;
|
12797
12797
|
goalsLoaded = !1;
|
12798
12798
|
constructor(t) {
|
12799
|
-
this.globalStore = t, this.api = new
|
12799
|
+
this.globalStore = t, this.api = new ao(t.endpoint, t.sessionToken), LA(this);
|
12800
12800
|
}
|
12801
12801
|
get orderedGoals() {
|
12802
12802
|
return this.goals.slice().sort((t, i) => t.position - i.position);
|
@@ -12950,7 +12950,7 @@ class Ll {
|
|
12950
12950
|
}
|
12951
12951
|
};
|
12952
12952
|
}
|
12953
|
-
class
|
12953
|
+
class Io {
|
12954
12954
|
fetchInstance;
|
12955
12955
|
constructor(t, i) {
|
12956
12956
|
this.fetchInstance = new JA(t, i);
|
@@ -13180,12 +13180,12 @@ const Ol = [
|
|
13180
13180
|
};
|
13181
13181
|
class Gl {
|
13182
13182
|
alert = { message: "", severity: void 0 };
|
13183
|
-
api = new
|
13183
|
+
api = new Io("/", "");
|
13184
13184
|
appConfig;
|
13185
13185
|
globalStore;
|
13186
13186
|
isLoading = !1;
|
13187
13187
|
constructor(t) {
|
13188
|
-
this.globalStore = t, this.api = new
|
13188
|
+
this.globalStore = t, this.api = new Io(t.endpoint, t.sessionToken), LA(this);
|
13189
13189
|
}
|
13190
13190
|
createSupportTicket = async (t) => {
|
13191
13191
|
try {
|
@@ -13214,7 +13214,7 @@ class Gl {
|
|
13214
13214
|
);
|
13215
13215
|
}
|
13216
13216
|
}
|
13217
|
-
class
|
13217
|
+
class co {
|
13218
13218
|
fetchInstance;
|
13219
13219
|
constructor(t, i) {
|
13220
13220
|
this.fetchInstance = new JA(t, i);
|
@@ -13223,11 +13223,11 @@ class Io {
|
|
13223
13223
|
}
|
13224
13224
|
class Ml {
|
13225
13225
|
globalStore;
|
13226
|
-
api = new
|
13226
|
+
api = new co("/", "");
|
13227
13227
|
holdings = [];
|
13228
13228
|
holdingsLoaded = !1;
|
13229
13229
|
constructor(t) {
|
13230
|
-
this.globalStore = t, this.api = new
|
13230
|
+
this.globalStore = t, this.api = new co(t.endpoint, t.sessionToken), LA(this);
|
13231
13231
|
}
|
13232
13232
|
loadHoldings = async () => {
|
13233
13233
|
try {
|
@@ -13240,7 +13240,7 @@ class Ml {
|
|
13240
13240
|
}
|
13241
13241
|
};
|
13242
13242
|
}
|
13243
|
-
const Nl = /^[ a-zA-ZÀ-ÿ0-9]+$/, Tl = 50,
|
13243
|
+
const Nl = /^[ a-zA-ZÀ-ÿ0-9]+$/, Tl = 50, fo = 65, Yl = ({
|
13244
13244
|
height: A = "calc(100dvh - 120px)",
|
13245
13245
|
onSelect: t
|
13246
13246
|
}) => {
|
@@ -13252,10 +13252,10 @@ const Nl = /^[ a-zA-ZÀ-ÿ0-9]+$/, Tl = 50, co = 65, Yl = ({
|
|
13252
13252
|
t(v);
|
13253
13253
|
}, d = async (v) => {
|
13254
13254
|
(!v || Nl.test(v)) && v.length <= Tl && (c(v), await r(v));
|
13255
|
-
}, f = h.useRef(null), l =
|
13255
|
+
}, f = h.useRef(null), l = Yo({
|
13256
13256
|
count: n.length,
|
13257
13257
|
getScrollElement: () => f.current,
|
13258
|
-
estimateSize: () =>
|
13258
|
+
estimateSize: () => fo,
|
13259
13259
|
overscan: 5
|
13260
13260
|
});
|
13261
13261
|
return h.useEffect(() => l.measure(), [n]), s ? /* @__PURE__ */ I(b, { className: "mx-mrt-lookup", children: [
|
@@ -13277,7 +13277,7 @@ const Nl = /^[ a-zA-ZÀ-ÿ0-9]+$/, Tl = 50, co = 65, Yl = ({
|
|
13277
13277
|
return /* @__PURE__ */ I(
|
13278
13278
|
L,
|
13279
13279
|
{
|
13280
|
-
height:
|
13280
|
+
height: fo,
|
13281
13281
|
position: "absolute",
|
13282
13282
|
sx: { transform: `translateY(${v.start}px)` },
|
13283
13283
|
width: "100%",
|
@@ -13297,7 +13297,7 @@ const Nl = /^[ a-zA-ZÀ-ÿ0-9]+$/, Tl = 50, co = 65, Yl = ({
|
|
13297
13297
|
] }) }) })
|
13298
13298
|
] }) : /* @__PURE__ */ e(IA, {});
|
13299
13299
|
}, FP = g(Yl);
|
13300
|
-
class
|
13300
|
+
class Eo {
|
13301
13301
|
fetchInstance;
|
13302
13302
|
constructor(t, i) {
|
13303
13303
|
this.fetchInstance = new JA(t, i);
|
@@ -13310,12 +13310,12 @@ class fo {
|
|
13310
13310
|
}
|
13311
13311
|
class Vl {
|
13312
13312
|
globalStore;
|
13313
|
-
api = new
|
13313
|
+
api = new Eo("/", "");
|
13314
13314
|
merchant = null;
|
13315
13315
|
merchants = [];
|
13316
13316
|
isLoading = !1;
|
13317
13317
|
constructor(t) {
|
13318
|
-
this.globalStore = t, this.api = new
|
13318
|
+
this.globalStore = t, this.api = new Eo(t.endpoint, t.sessionToken), LA(this);
|
13319
13319
|
}
|
13320
13320
|
loadMerchants = async (t = "") => {
|
13321
13321
|
this.isLoading = !0;
|
@@ -13332,7 +13332,7 @@ class Vl {
|
|
13332
13332
|
const Ws = 13, Bl = (A, t) => A.filter((i) => {
|
13333
13333
|
const { is_closed: n, is_deleted: r, is_hidden: o, is_manual: s } = i;
|
13334
13334
|
return n || r || o ? !1 : s || !i.guid ? !0 : t.some((a) => A.some((c) => a.guid === c.member_guid));
|
13335
|
-
}), Sl = (A, t) => [...A, ...t],
|
13335
|
+
}), Sl = (A, t) => [...A, ...t], ho = (A) => {
|
13336
13336
|
if (A && A.length > 0)
|
13337
13337
|
return A[A.length - 1];
|
13338
13338
|
}, Ul = (A, t) => A.year_month - t.year_month, Fl = () => Array.from({ length: Ws }, (A, t) => Math.floor(MA(Ye(/* @__PURE__ */ new Date(), t)).getTime() / 1e3)).sort(), Wl = (A, t, i) => !A.length || !t.length ? [] : Fl().reduceRight((r, o) => {
|
@@ -13350,7 +13350,7 @@ const Ws = 13, Bl = (A, t) => A.filter((i) => {
|
|
13350
13350
|
if (!f && r.length === 0)
|
13351
13351
|
return {
|
13352
13352
|
...l,
|
13353
|
-
value:
|
13353
|
+
value: rr(d) ? -(d.balance ?? 0) : d.balance ?? 0
|
13354
13354
|
};
|
13355
13355
|
if (!f) {
|
13356
13356
|
const v = r[0].accounts.find((u) => u.guid === d.guid);
|
@@ -13389,7 +13389,7 @@ const Ws = 13, Bl = (A, t) => A.filter((i) => {
|
|
13389
13389
|
const t = [], i = [];
|
13390
13390
|
let n = 0, r = 0;
|
13391
13391
|
return A.forEach((o) => {
|
13392
|
-
if (
|
13392
|
+
if (rr(o)) {
|
13393
13393
|
const s = o.balance ?? 0;
|
13394
13394
|
i.push({ accountName: o.name, accountType: o.account_type, balance: s }), r += s;
|
13395
13395
|
} else {
|
@@ -13397,13 +13397,13 @@ const Ws = 13, Bl = (A, t) => A.filter((i) => {
|
|
13397
13397
|
t.push({ accountName: o.name, accountType: o.account_type, balance: s }), n += s;
|
13398
13398
|
}
|
13399
13399
|
}), { assets: t, liabilities: i, totalAssets: n, totalLiabilities: r };
|
13400
|
-
},
|
13400
|
+
}, lo = (A) => {
|
13401
13401
|
const t = A.reduce((i, n) => {
|
13402
13402
|
const r = n.accountType;
|
13403
13403
|
return i[r] || (i[r] = []), i[r].push(n), i;
|
13404
13404
|
}, {});
|
13405
13405
|
return Object.entries(t).map(([i, n]) => ({
|
13406
|
-
icon: _I[+i] ||
|
13406
|
+
icon: _I[+i] || $o[+i],
|
13407
13407
|
name: Tn[+i],
|
13408
13408
|
accounts: n
|
13409
13409
|
}));
|
@@ -13434,7 +13434,7 @@ class Zl {
|
|
13434
13434
|
};
|
13435
13435
|
loadChartData = async (t) => {
|
13436
13436
|
try {
|
13437
|
-
const { accounts: i, monthlyAccountBalances: n } = this.netWorthData, r = await Wl(i, n, t), o =
|
13437
|
+
const { accounts: i, monthlyAccountBalances: n } = this.netWorthData, r = await Wl(i, n, t), o = ho(r);
|
13438
13438
|
U(() => {
|
13439
13439
|
this.netWorthChartData = r, this.selectedData = o;
|
13440
13440
|
});
|
@@ -13450,7 +13450,7 @@ class Zl {
|
|
13450
13450
|
this.netWorthData.accounts
|
13451
13451
|
);
|
13452
13452
|
return {
|
13453
|
-
netWorth:
|
13453
|
+
netWorth: ho(this.netWorthChartData),
|
13454
13454
|
assets: t,
|
13455
13455
|
liabilities: i,
|
13456
13456
|
totalAssets: n,
|
@@ -13535,7 +13535,7 @@ const Jl = ({
|
|
13535
13535
|
tA,
|
13536
13536
|
{
|
13537
13537
|
primary: /* @__PURE__ */ I(b, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
|
13538
|
-
/* @__PURE__ */ e(R, { variant: "Body", children:
|
13538
|
+
/* @__PURE__ */ e(R, { variant: "Body", children: ns(A.x) }),
|
13539
13539
|
/* @__PURE__ */ e(GA, { amount: A.y, sx: { color: "inherit" }, variant: "Body" })
|
13540
13540
|
] })
|
13541
13541
|
}
|
@@ -13613,12 +13613,12 @@ const Jl = ({
|
|
13613
13613
|
/* @__PURE__ */ e(GA, { amount: n.change, color: s, variant: t }),
|
13614
13614
|
/* @__PURE__ */ e(R, { variant: "Small", children: A })
|
13615
13615
|
] });
|
13616
|
-
},
|
13616
|
+
}, ar = g(iv), nv = ({ hoveredData: A, selectedData: t }) => {
|
13617
13617
|
const { net_worth: i } = w(), n = se(), r = A || t, o = vI(ii(r.x), "MMMM");
|
13618
13618
|
return /* @__PURE__ */ I(b, { alignItems: "center", direction: "column", m: 24, children: [
|
13619
13619
|
/* @__PURE__ */ e(R, { color: n.palette.secondary.main, variant: "Small", children: `${o} ${i.net_worth}` }),
|
13620
13620
|
/* @__PURE__ */ e(GA, { amount: r.y, variant: "H2" }),
|
13621
|
-
/* @__PURE__ */ e(
|
13621
|
+
/* @__PURE__ */ e(ar, { currencyLabel: i.this_month, netWorth: r, theme: n })
|
13622
13622
|
] });
|
13623
13623
|
}, rv = g(nv), ov = ({
|
13624
13624
|
onClose: A,
|
@@ -13629,7 +13629,7 @@ const Jl = ({
|
|
13629
13629
|
const { refreshAccounts: r } = CA(), { loadWidget: o } = cs(), { connect: s } = w(), a = se(), [c, E] = h.useState(!1), [d, f] = h.useState(!1);
|
13630
13630
|
return h.useEffect(() => (t ? (E(!0), o({ widget: "connections_widget", mode: a.palette.mode }).then((l) => {
|
13631
13631
|
n = new $a({
|
13632
|
-
container: `#${
|
13632
|
+
container: `#${Tr}`,
|
13633
13633
|
style: {
|
13634
13634
|
height: "calc(100% - 62px)",
|
13635
13635
|
width: "100%",
|
@@ -13654,13 +13654,13 @@ const Jl = ({
|
|
13654
13654
|
A(), r();
|
13655
13655
|
},
|
13656
13656
|
title: i,
|
13657
|
-
children: /* @__PURE__ */ I("div", { id:
|
13657
|
+
children: /* @__PURE__ */ I("div", { id: Tr, children: [
|
13658
13658
|
d && /* @__PURE__ */ e(Ci, { status: ft.Error }),
|
13659
13659
|
c && /* @__PURE__ */ e(Ci, { status: ft.Loading })
|
13660
13660
|
] })
|
13661
13661
|
}
|
13662
13662
|
);
|
13663
|
-
},
|
13663
|
+
}, Ir = g(ov), sv = ({ accounts: A, name: t, icon: i }) => {
|
13664
13664
|
const [n, r] = h.useState(!1);
|
13665
13665
|
return /* @__PURE__ */ I(AA, { children: [
|
13666
13666
|
/* @__PURE__ */ e(W, { sx: (o) => ({ backgroundColor: o.palette.background.paper }), children: /* @__PURE__ */ I(aA, { onClick: () => r(!n), children: [
|
@@ -13688,7 +13688,7 @@ const Jl = ({
|
|
13688
13688
|
s < A.length - 1 ? /* @__PURE__ */ e(M, { variant: "inset" }) : /* @__PURE__ */ e(M, {})
|
13689
13689
|
] }, o.accountName)) })
|
13690
13690
|
] });
|
13691
|
-
},
|
13691
|
+
}, vo = ({ groupedAccounts: A }) => /* @__PURE__ */ e(AA, { children: A.map(({ accounts: t, icon: i, name: n }) => /* @__PURE__ */ e(sv, { accounts: t, icon: i, name: n }, n)) }), av = ({
|
13692
13692
|
netWorth: A,
|
13693
13693
|
assets: t,
|
13694
13694
|
liabilities: i,
|
@@ -13712,7 +13712,7 @@ const Jl = ({
|
|
13712
13712
|
/* @__PURE__ */ e(R, { variant: "Body", children: o.current_net_worth }),
|
13713
13713
|
/* @__PURE__ */ e(GA, { amount: A?.y ?? 0, variant: "H1" }),
|
13714
13714
|
A && /* @__PURE__ */ e(
|
13715
|
-
|
13715
|
+
ar,
|
13716
13716
|
{
|
13717
13717
|
currencyLabel: o.this_month,
|
13718
13718
|
iconSize: 20,
|
@@ -13733,7 +13733,7 @@ const Jl = ({
|
|
13733
13733
|
] })
|
13734
13734
|
}
|
13735
13735
|
) }),
|
13736
|
-
/* @__PURE__ */ e(
|
13736
|
+
/* @__PURE__ */ e(vo, { groupedAccounts: lo(t) }),
|
13737
13737
|
/* @__PURE__ */ e(He, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(
|
13738
13738
|
tA,
|
13739
13739
|
{
|
@@ -13743,7 +13743,7 @@ const Jl = ({
|
|
13743
13743
|
] })
|
13744
13744
|
}
|
13745
13745
|
) }),
|
13746
|
-
/* @__PURE__ */ e(
|
13746
|
+
/* @__PURE__ */ e(vo, { groupedAccounts: lo(i) })
|
13747
13747
|
] })
|
13748
13748
|
] });
|
13749
13749
|
}, Iv = g(av), cv = ({
|
@@ -13756,9 +13756,9 @@ const Jl = ({
|
|
13756
13756
|
const { net_worth: o } = w(), s = RA();
|
13757
13757
|
return /* @__PURE__ */ I(AA, { children: [
|
13758
13758
|
/* @__PURE__ */ I(b, { alignItems: "center", justifyContent: "space-between", mb: 8, pt: 24, children: [
|
13759
|
-
/* @__PURE__ */ e(R, { variant: "Small", children:
|
13759
|
+
/* @__PURE__ */ e(R, { variant: "Small", children: ns(A?.x) }),
|
13760
13760
|
/* @__PURE__ */ e(R, { variant: "Body", children: o.total_change }),
|
13761
|
-
A && /* @__PURE__ */ e(
|
13761
|
+
A && /* @__PURE__ */ e(ar, { currencyVariant: "H1", iconSize: 32, netWorth: A, theme: s })
|
13762
13762
|
] }),
|
13763
13763
|
/* @__PURE__ */ I(nA, { children: [
|
13764
13764
|
/* @__PURE__ */ e(He, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(
|
@@ -13923,7 +13923,7 @@ const Jl = ({
|
|
13923
13923
|
}
|
13924
13924
|
) }),
|
13925
13925
|
/* @__PURE__ */ e(
|
13926
|
-
|
13926
|
+
Ir,
|
13927
13927
|
{
|
13928
13928
|
onClose: () => Z(!1),
|
13929
13929
|
showConnectionsWidget: B,
|
@@ -13983,12 +13983,12 @@ function fv(A) {
|
|
13983
13983
|
}
|
13984
13984
|
class Ev {
|
13985
13985
|
globalStore;
|
13986
|
-
api = new
|
13986
|
+
api = new mr("/", "");
|
13987
13987
|
isLoading = !0;
|
13988
13988
|
notifications = [];
|
13989
13989
|
recentNotifications = [];
|
13990
13990
|
constructor(t) {
|
13991
|
-
this.globalStore = t, this.api = new
|
13991
|
+
this.globalStore = t, this.api = new mr(t.endpoint, t.sessionToken), LA(this, { notifications: fI });
|
13992
13992
|
}
|
13993
13993
|
// Used in Money Dashboard
|
13994
13994
|
get newNotifications() {
|
@@ -14088,7 +14088,7 @@ const hv = (A, t) => {
|
|
14088
14088
|
})
|
14089
14089
|
] });
|
14090
14090
|
}, bv = g(Pv);
|
14091
|
-
class
|
14091
|
+
class Ro {
|
14092
14092
|
fetchInstance;
|
14093
14093
|
constructor(t, i) {
|
14094
14094
|
this.fetchInstance = new JA(t, i);
|
@@ -14104,7 +14104,7 @@ class vo {
|
|
14104
14104
|
updateDevice = async (t) => this.fetchInstance.put(`${Q.DEVICES}/${t.guid}`, t).then((i) => i.device);
|
14105
14105
|
updateNotificationProfile = async (t) => this.fetchInstance.put(`${Q.NOTIFICATION_PROFILES}/${t.guid}`, t).then((i) => i.notification_profile);
|
14106
14106
|
}
|
14107
|
-
const
|
14107
|
+
const uo = "PARENT-ENTITY", Hv = (A, t) => {
|
14108
14108
|
switch (A) {
|
14109
14109
|
case NA.BudgetExceeded:
|
14110
14110
|
return t.notification_budget_exceeded;
|
@@ -14135,9 +14135,9 @@ const Ro = "PARENT-ENTITY", Hv = (A, t) => {
|
|
14135
14135
|
opted_out_of_sms_notifications: d,
|
14136
14136
|
opted_out_of_push_notifications: f
|
14137
14137
|
} = r;
|
14138
|
-
for (const l of n.filter((v) => v.entity_guid ===
|
14138
|
+
for (const l of n.filter((v) => v.entity_guid === uo)) {
|
14139
14139
|
const v = Hv(l.notification_type, i), u = n.filter(
|
14140
|
-
(P) => P.entity_guid !==
|
14140
|
+
(P) => P.entity_guid !== uo && P.notification_type === l.notification_type && A.some((z) => z.guid === P.entity_guid)
|
14141
14141
|
), H = [];
|
14142
14142
|
s && !E && l.email_channel && H.push(i.delivery_method_email_label), a && !d && l.sms_channel && H.push(i.delivery_method_sms_label), c && !f && l.push_channel && H.push(i.delivery_method_push_label), o.push({
|
14143
14143
|
...l,
|
@@ -14154,7 +14154,7 @@ const Ro = "PARENT-ENTITY", Hv = (A, t) => {
|
|
14154
14154
|
};
|
14155
14155
|
class Cv {
|
14156
14156
|
globalStore;
|
14157
|
-
api = new
|
14157
|
+
api = new Ro("/", "");
|
14158
14158
|
transactionApi = new pi("/", "");
|
14159
14159
|
alert = { message: "", severity: void 0 };
|
14160
14160
|
devices = [];
|
@@ -14162,7 +14162,7 @@ class Cv {
|
|
14162
14162
|
selectedRule = void 0;
|
14163
14163
|
transactionRules = [];
|
14164
14164
|
constructor(t) {
|
14165
|
-
this.globalStore = t, this.api = new
|
14165
|
+
this.globalStore = t, this.api = new Ro(t.endpoint, t.sessionToken), this.transactionApi = new pi(t.endpoint, t.sessionToken), LA(this);
|
14166
14166
|
}
|
14167
14167
|
get accountProfiles() {
|
14168
14168
|
return this.detailedNotificationProfiles.filter(
|
@@ -17077,7 +17077,7 @@ const pv = ({
|
|
17077
17077
|
borderBottomLeftRadius: 8,
|
17078
17078
|
borderBottomRightRadius: 8
|
17079
17079
|
}
|
17080
|
-
}),
|
17080
|
+
}), Po = {
|
17081
17081
|
institutionName: "",
|
17082
17082
|
institutionWebsite: ""
|
17083
17083
|
}, cn = {
|
@@ -17086,7 +17086,7 @@ const pv = ({
|
|
17086
17086
|
institutionWebsite: ""
|
17087
17087
|
}, Q9 = g(
|
17088
17088
|
({ copy: A, isOpen: t, onClose: i, onSave: n }) => {
|
17089
|
-
const { alert: r, isLoading: o, setAlert: s } =
|
17089
|
+
const { alert: r, isLoading: o, setAlert: s } = kn(), [a, c] = h.useState(Po), [E, d] = h.useState(cn), f = [
|
17090
17090
|
{ name: "institutionName", required: !0 },
|
17091
17091
|
{ name: "institutionWebsite", required: !0 },
|
17092
17092
|
{ name: "institutionLoginPage", required: !1 }
|
@@ -17094,7 +17094,7 @@ const pv = ({
|
|
17094
17094
|
...H,
|
17095
17095
|
label: A.popular_topics_missing_institution_fields[P.toString()]
|
17096
17096
|
})), l = () => {
|
17097
|
-
c(
|
17097
|
+
c(Po), d(cn), i();
|
17098
17098
|
}, v = (H) => {
|
17099
17099
|
const {
|
17100
17100
|
target: { name: P, value: z }
|
@@ -17335,7 +17335,7 @@ const pv = ({
|
|
17335
17335
|
] }) });
|
17336
17336
|
}, B9 = g(
|
17337
17337
|
({ copy: A, isOpen: t, onClose: i }) => {
|
17338
|
-
const { alert: n, createSupportTicket: r, isLoading: o, setAlert: s } =
|
17338
|
+
const { alert: n, createSupportTicket: r, isLoading: o, setAlert: s } = kn(), { user: a } = Fe(), { isInitialized: c } = cA(), [E, d] = h.useState(""), [f, l] = h.useState(!1), [v, u] = h.useState(!1), [H, P] = h.useState({
|
17339
17339
|
isOpen: !1,
|
17340
17340
|
topic: "",
|
17341
17341
|
type: void 0
|
@@ -17490,7 +17490,7 @@ const pv = ({
|
|
17490
17490
|
] }) });
|
17491
17491
|
}
|
17492
17492
|
), S9 = ({ sx: A }) => {
|
17493
|
-
const [t, i] = h.useState(!1), [n, r] = h.useState(null), { help: o } = w(), { isCopyLoaded: s, isInitialized: a } = cA(), { helpCategories: c } =
|
17493
|
+
const [t, i] = h.useState(!1), [n, r] = h.useState(null), { help: o } = w(), { isCopyLoaded: s, isInitialized: a } = cA(), { helpCategories: c } = kn(), { isMobile: E } = HA(), d = window.app?.config, f = () => i(!0), l = (v) => r(v);
|
17494
17494
|
return !s || !a ? /* @__PURE__ */ e(IA, {}) : /* @__PURE__ */ I(L, { sx: { pt: 24, px: E ? 24 : 0, ...A }, children: [
|
17495
17495
|
n ? /* @__PURE__ */ e(
|
17496
17496
|
y9,
|
@@ -17816,7 +17816,7 @@ const J9 = ({
|
|
17816
17816
|
field: "created_at",
|
17817
17817
|
headerName: r.mobile_devices_column_added,
|
17818
17818
|
renderHeader: xe,
|
17819
|
-
valueFormatter: (a) =>
|
17819
|
+
valueFormatter: (a) => Bo(jA(a), { addSuffix: !0 }),
|
17820
17820
|
sortable: !0,
|
17821
17821
|
hideSortIcons: !1,
|
17822
17822
|
flex: 1,
|
@@ -17911,7 +17911,7 @@ const J9 = ({
|
|
17911
17911
|
children: /* @__PURE__ */ I(b, { gap: 4, children: [
|
17912
17912
|
/* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: c.name }),
|
17913
17913
|
/* @__PURE__ */ e(R, { color: n.palette.text.secondary, variant: "Small", children: `${c.make} ${c.model}` }),
|
17914
|
-
/* @__PURE__ */ e(R, { color: n.palette.text.secondary, variant: "Small", children:
|
17914
|
+
/* @__PURE__ */ e(R, { color: n.palette.text.secondary, variant: "Small", children: Bo(jA(c.created_at), { addSuffix: !0 }) })
|
17915
17915
|
] })
|
17916
17916
|
}
|
17917
17917
|
),
|
@@ -18157,7 +18157,7 @@ const J9 = ({
|
|
18157
18157
|
]
|
18158
18158
|
}
|
18159
18159
|
);
|
18160
|
-
}),
|
18160
|
+
}), cr = g(
|
18161
18161
|
({ onClick: A, primaryText: t, secondaryText: i, sx: n }) => {
|
18162
18162
|
const r = RA();
|
18163
18163
|
return /* @__PURE__ */ e(W, { sx: { bgcolor: r.palette.background.paper }, children: /* @__PURE__ */ I(aA, { alignItems: "flex-start", onClick: A, sx: n, children: [
|
@@ -18175,7 +18175,7 @@ const J9 = ({
|
|
18175
18175
|
};
|
18176
18176
|
return /* @__PURE__ */ I(h.Fragment, { children: [
|
18177
18177
|
/* @__PURE__ */ e(
|
18178
|
-
|
18178
|
+
cr,
|
18179
18179
|
{
|
18180
18180
|
onClick: a,
|
18181
18181
|
primaryText: i?.category_guid ? c(i.category_guid) : "",
|
@@ -18201,7 +18201,7 @@ const J9 = ({
|
|
18201
18201
|
};
|
18202
18202
|
return /* @__PURE__ */ I(h.Fragment, { children: [
|
18203
18203
|
/* @__PURE__ */ e(
|
18204
|
-
|
18204
|
+
cr,
|
18205
18205
|
{
|
18206
18206
|
onClick: d,
|
18207
18207
|
primaryText: a,
|
@@ -18303,7 +18303,7 @@ const J9 = ({
|
|
18303
18303
|
}, l = (v) => t.find((u) => u.guid === v)?.name;
|
18304
18304
|
return /* @__PURE__ */ I(h.Fragment, { children: [
|
18305
18305
|
/* @__PURE__ */ e(
|
18306
|
-
|
18306
|
+
cr,
|
18307
18307
|
{
|
18308
18308
|
onClick: f,
|
18309
18309
|
primaryText: A.description ? A.description : A.match_description,
|
@@ -18382,7 +18382,7 @@ const J9 = ({
|
|
18382
18382
|
t.account?.day_payment_is_due || 0
|
18383
18383
|
), l = t.account?.name || t.account?.feed_name || "", v = t.account?.day_payment_is_due ? C(
|
18384
18384
|
n.notification_debt_payment_date,
|
18385
|
-
|
18385
|
+
ts(t.account?.day_payment_is_due)
|
18386
18386
|
) : n.notification_debt_payment_zero_state, u = o ? v : N(t.threshold ?? 0, "0,0"), H = async () => {
|
18387
18387
|
o && t.account ? await r({ ...t.account, day_payment_is_due: d }) : A({ ...t, threshold: c });
|
18388
18388
|
};
|
@@ -18636,7 +18636,7 @@ const J9 = ({
|
|
18636
18636
|
}
|
18637
18637
|
) : /* @__PURE__ */ e(IA, {});
|
18638
18638
|
}
|
18639
|
-
),
|
18639
|
+
), bo = {
|
18640
18640
|
clientStyleProfile: {},
|
18641
18641
|
config: {
|
18642
18642
|
assets_prefix: "/assets",
|
@@ -18737,7 +18737,7 @@ const J9 = ({
|
|
18737
18737
|
postHogPublicKey: "",
|
18738
18738
|
userFeatures: []
|
18739
18739
|
};
|
18740
|
-
class
|
18740
|
+
class Ho {
|
18741
18741
|
fetchInstance;
|
18742
18742
|
constructor(t, i) {
|
18743
18743
|
this.fetchInstance = new JA(t, i);
|
@@ -18746,12 +18746,12 @@ class bo {
|
|
18746
18746
|
}
|
18747
18747
|
class dR {
|
18748
18748
|
globalStore;
|
18749
|
-
api = new
|
18750
|
-
bannerApi = new
|
18749
|
+
api = new Ho("/", "");
|
18750
|
+
bannerApi = new Dr("/");
|
18751
18751
|
appData = {};
|
18752
18752
|
banner = {};
|
18753
18753
|
constructor(t) {
|
18754
|
-
this.globalStore = t, this.api = new
|
18754
|
+
this.globalStore = t, this.api = new Ho(t.endpoint, t.sessionToken), LA(this);
|
18755
18755
|
}
|
18756
18756
|
get appConfig() {
|
18757
18757
|
return this.globalStore.appConfig;
|
@@ -18772,7 +18772,7 @@ class dR {
|
|
18772
18772
|
try {
|
18773
18773
|
const t = await this.api.getAppData();
|
18774
18774
|
U(() => {
|
18775
|
-
this.appData = t, this.bannerApi = new
|
18775
|
+
this.appData = t, this.bannerApi = new Dr(t.address?.bullseye || "/");
|
18776
18776
|
});
|
18777
18777
|
} catch (t) {
|
18778
18778
|
console.error(`Error loading app data: ${t}`);
|
@@ -18794,9 +18794,9 @@ class dR {
|
|
18794
18794
|
}
|
18795
18795
|
class fR {
|
18796
18796
|
globalStore;
|
18797
|
-
widgetApi = new
|
18797
|
+
widgetApi = new Or("/", "");
|
18798
18798
|
constructor(t) {
|
18799
|
-
this.globalStore = t, this.widgetApi = new
|
18799
|
+
this.globalStore = t, this.widgetApi = new Or(t.endpoint, t.sessionToken), LA(this);
|
18800
18800
|
}
|
18801
18801
|
loadWidget = async ({ widget: t = "connect_widget", mode: i = "light", ...n }) => await this.widgetApi.requestWidgetUrl({
|
18802
18802
|
widget_url: { widget_type: t, color_scheme: i, ...n }
|
@@ -18895,7 +18895,7 @@ class hR {
|
|
18895
18895
|
}
|
18896
18896
|
class JP {
|
18897
18897
|
// Global properties
|
18898
|
-
appConfig =
|
18898
|
+
appConfig = bo;
|
18899
18899
|
endpoint = "/";
|
18900
18900
|
sessionToken = "";
|
18901
18901
|
// Data Stores
|
@@ -18920,7 +18920,7 @@ class JP {
|
|
18920
18920
|
userStore;
|
18921
18921
|
// UI Stores
|
18922
18922
|
globalUiStore;
|
18923
|
-
constructor(t =
|
18923
|
+
constructor(t = bo, i = "/") {
|
18924
18924
|
this.appConfig = t, this.endpoint = i, this.sessionToken = t.options.session_token ?? "", this.accountStore = new TR(this), this.appDataStore = new dR(this), this.beatStore = new Id(this), this.budgetsStore = new Ed(this), this.cashflowStore = new fh(this), this.categoryStore = new uf(this), this.connectStore = new fR(this), this.copyStore = new od(this), this.debtsStore = new El(this), this.goalStore = new Ll(this), this.helpStore = new Gl(this), this.holdingStore = new Ml(this), this.merchantStore = new Vl(this), this.netWorthStore = new Zl(this), this.notificationStore = new Ev(this), this.recurringActivityStore = new QE(this), this.settingsStore = new Cv(this), this.transactionStore = new jd(this), this.userStore = new hR(this), this.globalUiStore = new ER(this), LA(this);
|
18925
18925
|
}
|
18926
18926
|
get isInitialized() {
|
@@ -19231,7 +19231,7 @@ const dn = ({
|
|
19231
19231
|
}, uR = () => {
|
19232
19232
|
const [A, t] = h.useState(!1), {
|
19233
19233
|
palette: { mode: i }
|
19234
|
-
} = RA(), { selectedMember: n } = we(), { accounts: r, connect: o } = w(), s = Zs(n, o), a =
|
19234
|
+
} = RA(), { selectedMember: n } = we(), { accounts: r, connect: o } = w(), s = Zs(n, o), a = _o.includes(n.connection_status) ? {
|
19235
19235
|
color: "error.main",
|
19236
19236
|
ctaCopy: s.cta ?? "",
|
19237
19237
|
icon: /* @__PURE__ */ e(Mi, { sx: { ...fn } }),
|
@@ -19270,7 +19270,7 @@ const dn = ({
|
|
19270
19270
|
Et,
|
19271
19271
|
{
|
19272
19272
|
backingSx: {
|
19273
|
-
backgroundColor: i ===
|
19273
|
+
backgroundColor: i === lr.LIGHT ? "grey.300" : "grey.700",
|
19274
19274
|
borderRadius: 1
|
19275
19275
|
},
|
19276
19276
|
size: 32,
|
@@ -19279,7 +19279,7 @@ const dn = ({
|
|
19279
19279
|
{
|
19280
19280
|
sx: {
|
19281
19281
|
...fn,
|
19282
|
-
color: i ===
|
19282
|
+
color: i === lr.LIGHT ? "grey.900" : "common.white"
|
19283
19283
|
}
|
19284
19284
|
}
|
19285
19285
|
)
|
@@ -19436,7 +19436,7 @@ const dn = ({
|
|
19436
19436
|
/* @__PURE__ */ e(RR, {})
|
19437
19437
|
] });
|
19438
19438
|
}, XR = g(gR), pR = ({ setTabValue: A }) => {
|
19439
|
-
const [t, i] = h.useState(!1), { selectedMember: n } = we(), { accounts: r, connect: o } = w(), s = n.connection_status &&
|
19439
|
+
const [t, i] = h.useState(!1), { selectedMember: n } = we(), { accounts: r, connect: o } = w(), s = n.connection_status && _o.includes(n.connection_status);
|
19440
19440
|
if (h.useEffect(() => {
|
19441
19441
|
s && A(1);
|
19442
19442
|
}, [s]), !s) return;
|
@@ -19469,7 +19469,7 @@ const dn = ({
|
|
19469
19469
|
a.title && /* @__PURE__ */ e(bn, { sx: { fontWeight: 600, marginTop: 2 }, variant: "Body", children: a.title }),
|
19470
19470
|
/* @__PURE__ */ e(R, { component: "p", sx: { whiteSpace: "wrap" }, variant: "ParagraphSmall", children: a.main }),
|
19471
19471
|
a.cta && /* @__PURE__ */ e(
|
19472
|
-
|
19472
|
+
Wo,
|
19473
19473
|
{
|
19474
19474
|
onClick: () => i(!0),
|
19475
19475
|
sx: { fontSize: 15, fontWeight: 600, ml: 0 },
|
@@ -19683,14 +19683,14 @@ const dn = ({
|
|
19683
19683
|
onClose: () => t(""),
|
19684
19684
|
title: i.account_details,
|
19685
19685
|
children: [
|
19686
|
-
/* @__PURE__ */ e(
|
19686
|
+
/* @__PURE__ */ e(sr, {}),
|
19687
19687
|
/* @__PURE__ */ e(Js, {})
|
19688
19688
|
]
|
19689
19689
|
}
|
19690
19690
|
)
|
19691
19691
|
] });
|
19692
19692
|
}, mR = g(jR), LR = ({ onBackClick: A, sx: t = {} }) => {
|
19693
|
-
const [i, n] = h.useState(!1), [r, o] = h.useState(!1), { config: s } =
|
19693
|
+
const [i, n] = h.useState(!1), [r, o] = h.useState(!1), { config: s } = Fn(), { accounts: a, refreshMembers: c } = CA(), { accounts: E } = w(), { isCopyLoaded: d, isInitialized: f, setSelectedAccounts: l, selectedAccountGuids: v } = cA(), { isDesktop: u } = HA(), { onEvent: H } = J();
|
19694
19694
|
h.useEffect(() => {
|
19695
19695
|
l(a);
|
19696
19696
|
}, [a]);
|
@@ -19727,7 +19727,7 @@ const dn = ({
|
|
19727
19727
|
/* @__PURE__ */ e(mR, {})
|
19728
19728
|
] }),
|
19729
19729
|
/* @__PURE__ */ e(
|
19730
|
-
|
19730
|
+
Ir,
|
19731
19731
|
{
|
19732
19732
|
onClose: () => n(!1),
|
19733
19733
|
showConnectionsWidget: i,
|
@@ -20254,7 +20254,7 @@ const dn = ({
|
|
20254
20254
|
}
|
20255
20255
|
) : /* @__PURE__ */ e(IA, {});
|
20256
20256
|
}, A6 = g(MR);
|
20257
|
-
class
|
20257
|
+
class zo {
|
20258
20258
|
fetchInstance;
|
20259
20259
|
constructor(t, i) {
|
20260
20260
|
this.fetchInstance = new JA(t, i);
|
@@ -20282,13 +20282,13 @@ class NR {
|
|
20282
20282
|
}
|
20283
20283
|
class TR {
|
20284
20284
|
globalStore;
|
20285
|
-
api = new
|
20285
|
+
api = new zo("/", "");
|
20286
20286
|
accounts = [];
|
20287
20287
|
institutions = [];
|
20288
20288
|
members = [];
|
20289
20289
|
uiStore;
|
20290
20290
|
constructor(t) {
|
20291
|
-
this.globalStore = t, this.uiStore = new NR(), this.api = new
|
20291
|
+
this.globalStore = t, this.uiStore = new NR(), this.api = new zo(t.endpoint, t.sessionToken), LA(this);
|
20292
20292
|
}
|
20293
20293
|
loadAccountData = async () => {
|
20294
20294
|
await Promise.all([this.loadAccounts(), this.loadInstitutions()]);
|
@@ -20357,7 +20357,7 @@ class TR {
|
|
20357
20357
|
if (r > -1) {
|
20358
20358
|
let o = zt.Connected;
|
20359
20359
|
const s = this.members[r];
|
20360
|
-
|
20360
|
+
Jo.includes(s.connection_status) ? o = zt.Error : JI.includes(s.connection_status) ? o = zt.Processing : Zo.includes(s.connection_status) && (o = zt.RequiresMfa), i.push({
|
20361
20361
|
...n,
|
20362
20362
|
memberName: s.name,
|
20363
20363
|
connectionStatus: o
|
@@ -20457,7 +20457,7 @@ class TR {
|
|
20457
20457
|
}
|
20458
20458
|
};
|
20459
20459
|
}
|
20460
|
-
const
|
20460
|
+
const Co = 5, YR = 100, VR = 25, BR = (A) => {
|
20461
20461
|
const t = (r) => {
|
20462
20462
|
r.active || A.alphaTarget(0.3).restart(), r.subject.fx = r.subject.x, r.subject.fy = r.subject.y;
|
20463
20463
|
}, i = (r) => {
|
@@ -20469,7 +20469,7 @@ const zo = 5, YR = 100, VR = 25, BR = (A) => {
|
|
20469
20469
|
}, SR = (A) => {
|
20470
20470
|
let t = A.transaction_total / A.amount;
|
20471
20471
|
t < 0 ? t = 0 : t > 1 && (t = 1);
|
20472
|
-
const i = t * 2 * Math.PI, n = Pe.interpolate(0, i), r = Pe.arc().cornerRadius(5).innerRadius(A.radius -
|
20472
|
+
const i = t * 2 * Math.PI, n = Pe.interpolate(0, i), r = Pe.arc().cornerRadius(5).innerRadius(A.radius - Co * 2).outerRadius(A.radius - Co).startAngle(0).endAngle(0);
|
20473
20473
|
return (o) => (r.endAngle(n(o)), r(A) || "");
|
20474
20474
|
}, UR = (A) => {
|
20475
20475
|
Pe.selectAll(".bubble").call(BR(A));
|
@@ -20498,7 +20498,7 @@ const zo = 5, YR = 100, VR = 25, BR = (A) => {
|
|
20498
20498
|
return Pe.forceSimulation(r).velocityDecay(0.05).force("collide", Pe.forceCollide((o) => o.radius + 2).strength(0.5)).on("tick", () => {
|
20499
20499
|
Pe.selectAll(".bubble").data(r).attr("transform", (o) => `translate(${o.x},${o.y})`);
|
20500
20500
|
});
|
20501
|
-
},
|
20501
|
+
}, go = 5, KR = 2e3;
|
20502
20502
|
function ZR({ bubble: A }) {
|
20503
20503
|
const t = RA(), {
|
20504
20504
|
guid: i,
|
@@ -20508,7 +20508,7 @@ function ZR({ bubble: A }) {
|
|
20508
20508
|
h.useEffect(() => {
|
20509
20509
|
Pe.select(`.${o}`).selectAll(".status").remove(), Pe.select(`.${o}`).append("path").transition().duration(KR).delay(0).attr("class", "status").attr("style", `fill: ${n}; fill-opacity: 1;`).attrTween("d", () => SR(A));
|
20510
20510
|
}, [A]);
|
20511
|
-
const s = Pe.arc().innerRadius((a) => a - 2 *
|
20511
|
+
const s = Pe.arc().innerRadius((a) => a - 2 * go).outerRadius((a) => a - go).startAngle(0).endAngle(2 * Math.PI);
|
20512
20512
|
return /* @__PURE__ */ e("g", { className: o, children: /* @__PURE__ */ e(
|
20513
20513
|
"path",
|
20514
20514
|
{
|
@@ -20517,7 +20517,7 @@ function ZR({ bubble: A }) {
|
|
20517
20517
|
}
|
20518
20518
|
) });
|
20519
20519
|
}
|
20520
|
-
const xt = 75,
|
20520
|
+
const xt = 75, Xo = 50;
|
20521
20521
|
function JR({ bubble: A, isDraggable: t, onClick: i = () => {
|
20522
20522
|
} }) {
|
20523
20523
|
const [n, r] = h.useState(!1);
|
@@ -20594,7 +20594,7 @@ function JR({ bubble: A, isDraggable: t, onClick: i = () => {
|
|
20594
20594
|
children: c
|
20595
20595
|
}
|
20596
20596
|
),
|
20597
|
-
f >
|
20597
|
+
f > Xo && /* @__PURE__ */ e(
|
20598
20598
|
R,
|
20599
20599
|
{
|
20600
20600
|
bold: !0,
|
@@ -20606,7 +20606,7 @@ function JR({ bubble: A, isDraggable: t, onClick: i = () => {
|
|
20606
20606
|
children: f <= xt ? d.split(" ")[0] : d
|
20607
20607
|
}
|
20608
20608
|
),
|
20609
|
-
f <= xt && f >
|
20609
|
+
f <= xt && f > Xo && /* @__PURE__ */ e(
|
20610
20610
|
R,
|
20611
20611
|
{
|
20612
20612
|
component: "text",
|
@@ -20732,7 +20732,7 @@ const _R = ({
|
|
20732
20732
|
}
|
20733
20733
|
),
|
20734
20734
|
/* @__PURE__ */ e(
|
20735
|
-
|
20735
|
+
Ir,
|
20736
20736
|
{
|
20737
20737
|
onClose: () => v(!1),
|
20738
20738
|
showConnectionsWidget: l,
|
@@ -21324,12 +21324,12 @@ const _R = ({
|
|
21324
21324
|
title: o.manage_income,
|
21325
21325
|
children: /* @__PURE__ */ I(b, { gap: 4, children: [
|
21326
21326
|
/* @__PURE__ */ e(R, { bold: !0, sx: { mt: 12, mx: 24 }, variant: "Small", children: n.income_title }),
|
21327
|
-
/* @__PURE__ */ e(
|
21327
|
+
/* @__PURE__ */ e(nr, {})
|
21328
21328
|
] })
|
21329
21329
|
}
|
21330
21330
|
)
|
21331
21331
|
] });
|
21332
|
-
}),
|
21332
|
+
}), po = 480, t6 = g(({ onBackClick: A, sx: t }) => {
|
21333
21333
|
const i = RA(), { onEvent: n } = J(), { visibleAccounts: r } = CA(), { budgets: o, common: s } = w(), { isCopyLoaded: a, isInitialized: c, selectedAccounts: E, setDisplayedDate: d, setSelectedAccounts: f } = cA(), {
|
21334
21334
|
alert: l,
|
21335
21335
|
dateRange: v,
|
@@ -21389,7 +21389,7 @@ const _R = ({
|
|
21389
21389
|
height: j || D ? 800 : 450,
|
21390
21390
|
isDraggable: !0,
|
21391
21391
|
shouldShowZeroState: x.length === 0,
|
21392
|
-
unavailableWidth: j || D ?
|
21392
|
+
unavailableWidth: j || D ? po : 0
|
21393
21393
|
}
|
21394
21394
|
) }),
|
21395
21395
|
x.length !== 0 && /* @__PURE__ */ I(
|
@@ -21398,7 +21398,7 @@ const _R = ({
|
|
21398
21398
|
gap: 24,
|
21399
21399
|
height: "100%",
|
21400
21400
|
sx: { mr: 24, mt: 48 },
|
21401
|
-
width: j || D ?
|
21401
|
+
width: j || D ? po : "100%",
|
21402
21402
|
children: [
|
21403
21403
|
/* @__PURE__ */ e(l3, {}),
|
21404
21404
|
/* @__PURE__ */ e(h3, {})
|
@@ -21508,7 +21508,7 @@ const _R = ({
|
|
21508
21508
|
/* @__PURE__ */ e(R, { color: "text.secondary", sx: { fontSize: 15 }, children: r.heres_your_spending_overview })
|
21509
21509
|
] }),
|
21510
21510
|
/* @__PURE__ */ e(
|
21511
|
-
|
21511
|
+
os,
|
21512
21512
|
{
|
21513
21513
|
accounts: A,
|
21514
21514
|
copy: o,
|
@@ -21541,12 +21541,12 @@ const P3 = ({
|
|
21541
21541
|
}, P = () => {
|
21542
21542
|
f.type === "rating" && a !== null && (d((X) => ({
|
21543
21543
|
...X,
|
21544
|
-
[
|
21544
|
+
[`$survey_response_${f.id}`]: a
|
21545
21545
|
})), c(null)), n < i.length - 1 && r((X) => X + 1);
|
21546
21546
|
}, z = () => {
|
21547
21547
|
f.type === "open" && d((X) => ({
|
21548
21548
|
...X,
|
21549
|
-
[
|
21549
|
+
[`$survey_response_${f.id}`]: o
|
21550
21550
|
})), t(E);
|
21551
21551
|
};
|
21552
21552
|
return /* @__PURE__ */ I(
|
@@ -21653,7 +21653,7 @@ const P3 = ({
|
|
21653
21653
|
}
|
21654
21654
|
);
|
21655
21655
|
}, b3 = g(P3), En = "0196a6b0-ccde-0000-b980-0b84ea2fef4a", H3 = ({ widgets: A, isLoading: t }) => {
|
21656
|
-
const { isDesktop: i, isMobile: n } = HA(), {
|
21656
|
+
const { isDesktop: i, isMobile: n } = HA(), { config: r } = Fn(), { copyStore: o } = Bi(), { setSelectedAccounts: s } = cA(), { visibleAccounts: a } = CA(), [c, E] = h.useState(A), d = (z = "en-US") => ({
|
21657
21657
|
"en-US": En,
|
21658
21658
|
"es-ES": null,
|
21659
21659
|
"fr-CA": null
|
@@ -21667,7 +21667,7 @@ const P3 = ({
|
|
21667
21667
|
$survey_id: En
|
21668
21668
|
});
|
21669
21669
|
}, v = () => {
|
21670
|
-
const z = d(r.
|
21670
|
+
const z = d(r.language);
|
21671
21671
|
z && (console.log("surveyid is", z), Bt.getActiveMatchingSurveys((X) => {
|
21672
21672
|
if (console.log("surveys are ", X), X.length) {
|
21673
21673
|
const x = X.find((y) => y.id === z);
|
@@ -21789,7 +21789,7 @@ class X3 {
|
|
21789
21789
|
return this.copyObject.zero_state;
|
21790
21790
|
}
|
21791
21791
|
}
|
21792
|
-
const
|
21792
|
+
const dr = {
|
21793
21793
|
BillAmountNotStandard: "BillAmountNotStandard",
|
21794
21794
|
CanadianUpcomingDeadlineAlert: "CanadianUpcomingDeadlineAlert",
|
21795
21795
|
DuplicatePaymentV2: "DuplicatePaymentV2",
|
@@ -21806,37 +21806,37 @@ const cr = {
|
|
21806
21806
|
WeeklyNewMerchantsV2: "WeeklyNewMerchantsV2",
|
21807
21807
|
MonthlySpendComparison: "MonthlySpendComparison",
|
21808
21808
|
MonthlySpendToIncomeComparison: "MonthlySpendToIncomeComparison"
|
21809
|
-
}, De = window?.app?.clientConfig?.microwidget_instance_id || "",
|
21809
|
+
}, De = window?.app?.clientConfig?.microwidget_instance_id || "", wo = {
|
21810
21810
|
INSIGHTS_MICRO_WIDGET: "/micro-insights-carousel"
|
21811
|
-
}, Aa = (A) => `on${A}Click`, ea = (A) => `on${A}View`, ta = (A) => `on${A}ViewFirstTime`,
|
21811
|
+
}, Aa = (A) => `on${A}Click`, ea = (A) => `on${A}View`, ta = (A) => `on${A}ViewFirstTime`, fr = (A) => A.replace(/([a-z])([A-Z])/g, "$1 $2"), p3 = () => Object.values(dr).reduce(
|
21812
21812
|
(A, t) => ({
|
21813
21813
|
...A,
|
21814
21814
|
[Aa(t)]: {
|
21815
21815
|
action: tt.MICRO_BEAT_CLICKED,
|
21816
21816
|
category: et.BEAT_INTERACTION,
|
21817
|
-
label:
|
21817
|
+
label: fr(t),
|
21818
21818
|
value: De
|
21819
21819
|
}
|
21820
21820
|
}),
|
21821
21821
|
{}
|
21822
|
-
), w3 = () => Object.values(
|
21822
|
+
), w3 = () => Object.values(dr).reduce(
|
21823
21823
|
(A, t) => ({
|
21824
21824
|
...A,
|
21825
21825
|
[ea(t)]: {
|
21826
21826
|
action: tt.MICRO_BEAT_DISPLAYED,
|
21827
21827
|
category: et.BEAT_INTERACTION,
|
21828
|
-
label:
|
21828
|
+
label: fr(t),
|
21829
21829
|
value: De
|
21830
21830
|
}
|
21831
21831
|
}),
|
21832
21832
|
{}
|
21833
|
-
), y3 = () => Object.values(
|
21833
|
+
), y3 = () => Object.values(dr).reduce(
|
21834
21834
|
(A, t) => ({
|
21835
21835
|
...A,
|
21836
21836
|
[ta(t)]: {
|
21837
21837
|
action: tt.MICRO_BEAT_DISPLAYED_FIRST_TIME,
|
21838
21838
|
category: et.BEAT_INTERACTION,
|
21839
|
-
label:
|
21839
|
+
label: fr(t),
|
21840
21840
|
value: De
|
21841
21841
|
}
|
21842
21842
|
}),
|
@@ -21870,18 +21870,18 @@ const cr = {
|
|
21870
21870
|
MICRO_WIDGET_CAROUSEL: "Micro Widget Carousel",
|
21871
21871
|
MICRO_WIDGET_CAROUSEL_ZERO_STATE: "Micro Widget Carousel Zero State",
|
21872
21872
|
MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS: "Micro Widget Carousel No Relevant Insights"
|
21873
|
-
},
|
21873
|
+
}, yo = {
|
21874
21874
|
[ct.MICRO_WIDGET_CAROUSEL]: {
|
21875
21875
|
label: At.MICRO_WIDGET,
|
21876
21876
|
name: ct.MICRO_WIDGET_CAROUSEL,
|
21877
|
-
path:
|
21877
|
+
path: wo.INSIGHTS_MICRO_WIDGET,
|
21878
21878
|
value: De
|
21879
21879
|
},
|
21880
21880
|
// zero state
|
21881
21881
|
[ct.MICRO_WIDGET_CAROUSEL_ZERO_STATE]: {
|
21882
21882
|
label: At.MICRO_WIDGET,
|
21883
21883
|
name: ct.MICRO_WIDGET_CAROUSEL_ZERO_STATE,
|
21884
|
-
path:
|
21884
|
+
path: wo.INSIGHTS_MICRO_WIDGET,
|
21885
21885
|
value: De
|
21886
21886
|
},
|
21887
21887
|
// no relevant cards
|
@@ -21891,7 +21891,7 @@ const cr = {
|
|
21891
21891
|
path: "/micro-widget",
|
21892
21892
|
value: De
|
21893
21893
|
}
|
21894
|
-
},
|
21894
|
+
}, xo = {
|
21895
21895
|
// carousel control interaction events - clicks and swipes
|
21896
21896
|
[je.ON_CAROUSEL_BACK_CLICK]: {
|
21897
21897
|
action: tt.CONTROL_BACKWARD,
|
@@ -21933,25 +21933,25 @@ const cr = {
|
|
21933
21933
|
...p3(),
|
21934
21934
|
...w3(),
|
21935
21935
|
...y3()
|
21936
|
-
},
|
21936
|
+
}, Do = async (A, t) => !t || !xo[A] ? null : t.sendAnalyticEvent(xo[A]).then((i) => i).catch((i) => {
|
21937
21937
|
throw i;
|
21938
|
-
}),
|
21938
|
+
}), jo = async (A, t) => !t || !yo[A] ? null : t.sendAnalyticsPageview(yo[A]).then((i) => i).catch((i) => {
|
21939
21939
|
throw i;
|
21940
21940
|
});
|
21941
21941
|
class x3 {
|
21942
|
-
onAnalyticEvent =
|
21943
|
-
onAnalyticPageView =
|
21942
|
+
onAnalyticEvent = Do;
|
21943
|
+
onAnalyticPageView = jo;
|
21944
21944
|
beatApi = new Qt("/", "");
|
21945
21945
|
constructor() {
|
21946
21946
|
LA(this);
|
21947
21947
|
}
|
21948
21948
|
initialize = async (t, i, n) => {
|
21949
21949
|
this.onAnalyticEvent = (r, o) => {
|
21950
|
-
|
21950
|
+
Do(r, o).then((s) => s).catch((s) => {
|
21951
21951
|
throw s.status === 401 && n(), s;
|
21952
21952
|
});
|
21953
21953
|
}, this.onAnalyticPageView = (r, o) => {
|
21954
|
-
|
21954
|
+
jo(r, o).then((s) => s).catch((s) => {
|
21955
21955
|
throw s.status === 401 && n(), s;
|
21956
21956
|
});
|
21957
21957
|
}, this.beatApi = new Qt(t, i);
|
@@ -22942,7 +22942,7 @@ const fi = h.createContext(null), j3 = ({
|
|
22942
22942
|
}
|
22943
22943
|
)
|
22944
22944
|
] })
|
22945
|
-
] }),
|
22945
|
+
] }), mo = ({ beat: A, clientColorScheme: t, color: i, type: n }) => {
|
22946
22946
|
const r = RA(), o = t?.primary_300 ? t.primary_300 : r.palette.primary.main;
|
22947
22947
|
return n === 0 ? /* @__PURE__ */ e(G, { fill: !0, name: "error", sx: { color: i || o } }) : n === 1 && A ? /* @__PURE__ */ e(m3, { beat: A }) : n === 2 && A ? /* @__PURE__ */ e(Q3, { beat: A }) : n === 3 && A ? /* @__PURE__ */ e(N3, { beat: A }) : n === 5 && A ? /* @__PURE__ */ e(G, { name: "campaign" }) : /* @__PURE__ */ e(
|
22948
22948
|
G,
|
@@ -22996,7 +22996,7 @@ const fi = h.createContext(null), j3 = ({
|
|
22996
22996
|
variant: f,
|
22997
22997
|
widthOverrides: l
|
22998
22998
|
}) => {
|
22999
|
-
const { ref: v, inView: u } =
|
22999
|
+
const { ref: v, inView: u } = ko({
|
23000
23000
|
threshold: sa
|
23001
23001
|
}), { cardsCopy: H } = bt(), { onEvent: P } = Ei(), { updateBeat: z, updateOffer: X } = T3();
|
23002
23002
|
Ct(() => {
|
@@ -23047,8 +23047,8 @@ const fi = h.createContext(null), j3 = ({
|
|
23047
23047
|
description: i?.html_micro_description && i?.html_micro_description.length > 0 ? i.html_micro_description : i.html_description,
|
23048
23048
|
fontColors: { buttonColor: n?.primary_300 },
|
23049
23049
|
heightOverrides: o,
|
23050
|
-
icon:
|
23051
|
-
|
23050
|
+
icon: mo && /* @__PURE__ */ e(
|
23051
|
+
mo,
|
23052
23052
|
{
|
23053
23053
|
beat: i,
|
23054
23054
|
clientColorScheme: n,
|
@@ -23296,7 +23296,7 @@ const fi = h.createContext(null), j3 = ({
|
|
23296
23296
|
},
|
23297
23297
|
children: [
|
23298
23298
|
/* @__PURE__ */ e(
|
23299
|
-
|
23299
|
+
gr,
|
23300
23300
|
{
|
23301
23301
|
sx: {
|
23302
23302
|
fontSize: 18,
|
@@ -23308,7 +23308,7 @@ const fi = h.createContext(null), j3 = ({
|
|
23308
23308
|
}
|
23309
23309
|
),
|
23310
23310
|
/* @__PURE__ */ I(
|
23311
|
-
|
23311
|
+
Wo,
|
23312
23312
|
{
|
23313
23313
|
onClick: s,
|
23314
23314
|
sx: {
|
@@ -23324,7 +23324,7 @@ const fi = h.createContext(null), j3 = ({
|
|
23324
23324
|
underline: "none",
|
23325
23325
|
children: [
|
23326
23326
|
/* @__PURE__ */ e(
|
23327
|
-
|
23327
|
+
gr,
|
23328
23328
|
{
|
23329
23329
|
sx: {
|
23330
23330
|
color: A?.primary_300,
|
@@ -23564,7 +23564,7 @@ const fi = h.createContext(null), j3 = ({
|
|
23564
23564
|
variant: a,
|
23565
23565
|
widthOverrides: c
|
23566
23566
|
}) => {
|
23567
|
-
const E = Ae(), { ref: d, inView: f } =
|
23567
|
+
const E = Ae(), { ref: d, inView: f } = ko({
|
23568
23568
|
threshold: sa
|
23569
23569
|
}), { cardsCopy: l } = bt(), { onEvent: v } = Ei();
|
23570
23570
|
Ct(() => {
|
@@ -23716,7 +23716,7 @@ const fi = h.createContext(null), j3 = ({
|
|
23716
23716
|
{
|
23717
23717
|
categoryGuid: t ? p.INCOME : f.guid,
|
23718
23718
|
size: a === "mini" ? 24 : u,
|
23719
|
-
variant:
|
23719
|
+
variant: qo.Transparent
|
23720
23720
|
}
|
23721
23721
|
),
|
23722
23722
|
/* @__PURE__ */ e(R, { color: "secondary", noWrap: !0, variant: a === "mini" ? "Tiny" : "Body", children: f ? f.name : s })
|
@@ -23738,7 +23738,7 @@ const fi = h.createContext(null), j3 = ({
|
|
23738
23738
|
}
|
23739
23739
|
)
|
23740
23740
|
] }) }) });
|
23741
|
-
}, xi = g(tu),
|
23741
|
+
}, xi = g(tu), Lo = ({ data: A, onSelected: t, selectedId: i }) => /* @__PURE__ */ e(b, { gap: 8, height: "100%", justifyContent: "center", my: "auto", children: A.categoryData.map((n) => /* @__PURE__ */ I(
|
23742
23742
|
b,
|
23743
23743
|
{
|
23744
23744
|
alignItems: "center",
|
@@ -23828,7 +23828,7 @@ const fi = h.createContext(null), j3 = ({
|
|
23828
23828
|
}
|
23829
23829
|
),
|
23830
23830
|
/* @__PURE__ */ e(
|
23831
|
-
|
23831
|
+
Lo,
|
23832
23832
|
{
|
23833
23833
|
data: l,
|
23834
23834
|
onSelected: H,
|
@@ -23847,7 +23847,7 @@ const fi = h.createContext(null), j3 = ({
|
|
23847
23847
|
totalLabel: t.total_income
|
23848
23848
|
}
|
23849
23849
|
),
|
23850
|
-
/* @__PURE__ */ e(
|
23850
|
+
/* @__PURE__ */ e(Lo, { data: v, onSelected: H, selectedId: c })
|
23851
23851
|
] }) })
|
23852
23852
|
] }) : /* @__PURE__ */ e(IA, { height: 250 });
|
23853
23853
|
}, nu = g(iu), ru = ({ onPrimaryCtaClick: A, sx: t = {} }) => {
|
@@ -23992,7 +23992,7 @@ const fi = h.createContext(null), j3 = ({
|
|
23992
23992
|
]
|
23993
23993
|
}
|
23994
23994
|
);
|
23995
|
-
},
|
23995
|
+
}, Oo = g(au), Iu = (A) => [
|
23996
23996
|
A.palette.chartMono.chartMono5,
|
23997
23997
|
A.palette.chartMono.chartMono4,
|
23998
23998
|
A.palette.chartMono.chartMono3,
|
@@ -24073,7 +24073,7 @@ const fi = h.createContext(null), j3 = ({
|
|
24073
24073
|
)
|
24074
24074
|
] }),
|
24075
24075
|
l === 0 && /* @__PURE__ */ e(
|
24076
|
-
|
24076
|
+
Oo,
|
24077
24077
|
{
|
24078
24078
|
data: X,
|
24079
24079
|
onSelected: D,
|
@@ -24083,7 +24083,7 @@ const fi = h.createContext(null), j3 = ({
|
|
24083
24083
|
}
|
24084
24084
|
),
|
24085
24085
|
l === 1 && /* @__PURE__ */ e(
|
24086
|
-
|
24086
|
+
Oo,
|
24087
24087
|
{
|
24088
24088
|
data: x,
|
24089
24089
|
onSelected: D,
|
@@ -24309,7 +24309,7 @@ const vu = (A) => A.reduce((i, n) => {
|
|
24309
24309
|
view_transactions: "View Transactions"
|
24310
24310
|
}, yu = ({ onBackClick: A, sx: t }) => {
|
24311
24311
|
const i = se(), { onEvent: n } = J(), { isDesktop: r, isTablet: o, isMobile: s } = HA(), { visibleAccounts: a } = CA(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: E, getCategoryName: d } = QA(), { sortedTransactions: f } = zA(), { isCopyLoaded: l, isInitialized: v, selectedAccounts: u, setSelectedAccounts: H } = cA(), { trends: P } = w(), z = i.palette.mode === "dark", [X, x] = h.useState(!1), [y, j] = h.useState(!1), [D, q] = h.useState("Chart"), [m, O] = h.useState(""), [K, B] = h.useState({
|
24312
|
-
start:
|
24312
|
+
start: Xr(BA(Ye(/* @__PURE__ */ new Date(), 6)), 1),
|
24313
24313
|
end: BA(/* @__PURE__ */ new Date())
|
24314
24314
|
});
|
24315
24315
|
h.useEffect(() => {
|
@@ -24348,7 +24348,7 @@ const vu = (A) => A.reduce((i, n) => {
|
|
24348
24348
|
}, [K, s]), sA = (XA, ie) => {
|
24349
24349
|
q(ie ?? D), n(Y.TRENDS_CLICK_TOGGLE);
|
24350
24350
|
}, lA = (XA) => {
|
24351
|
-
const ie =
|
24351
|
+
const ie = Xr(XA?.[0], 1), Ze = XA?.[1], iA = WI(Ze, ie);
|
24352
24352
|
B({ start: ie, end: Ze }), n(Y.TRENDS_CLICK_DATE, {
|
24353
24353
|
time_period: iA + "M"
|
24354
24354
|
});
|
@@ -24529,11 +24529,11 @@ const vu = (A) => A.reduce((i, n) => {
|
|
24529
24529
|
}, d6 = g(ju);
|
24530
24530
|
export {
|
24531
24531
|
Y as ANALYTICS_EVENTS,
|
24532
|
-
|
24532
|
+
zo as AccountApi,
|
24533
24533
|
Js as AccountDetailsContent,
|
24534
|
-
|
24535
|
-
|
24536
|
-
|
24534
|
+
sr as AccountDetailsHeader,
|
24535
|
+
os as AccountFilter,
|
24536
|
+
$o as AccountIcon,
|
24537
24537
|
_I as AccountIconVariants,
|
24538
24538
|
TR as AccountStore,
|
24539
24539
|
ZI as AccountSubType,
|
@@ -24548,7 +24548,7 @@ export {
|
|
24548
24548
|
hc as AnalyticsApi,
|
24549
24549
|
Q as ApiEndpoints,
|
24550
24550
|
D3 as AppStore,
|
24551
|
-
|
24551
|
+
Dr as BannerApi,
|
24552
24552
|
jP as BarChart,
|
24553
24553
|
Qt as BeatApi,
|
24554
24554
|
V3 as BeatCard,
|
@@ -24556,14 +24556,14 @@ export {
|
|
24556
24556
|
e6 as BubbleBudgetsMiniWidget,
|
24557
24557
|
t6 as BubbleBudgetsWidget,
|
24558
24558
|
mc as Calendar,
|
24559
|
-
|
24559
|
+
ss as CalendarSelectionTypes,
|
24560
24560
|
K3 as CarouselHeader,
|
24561
|
-
|
24561
|
+
oo as CashflowApi,
|
24562
24562
|
qP as CashflowMiniWidget,
|
24563
24563
|
Ih as CashflowOnboarding,
|
24564
24564
|
fh as CashflowStore,
|
24565
24565
|
VP as CashflowWidget,
|
24566
|
-
|
24566
|
+
jr as CategoryApi,
|
24567
24567
|
dt as CategoryColors,
|
24568
24568
|
Ni as CategoryGuidToName,
|
24569
24569
|
p as CategoryGuids,
|
@@ -24582,12 +24582,12 @@ export {
|
|
24582
24582
|
Me as CurrencyInput,
|
24583
24583
|
GA as CurrencyText,
|
24584
24584
|
eA as DATE_FORMATS_INTL,
|
24585
|
-
|
24586
|
-
|
24585
|
+
As as DEFAULT_DONUT_SIZE,
|
24586
|
+
es as DEFAULT_STROKE_WIDTH,
|
24587
24587
|
i6 as Dashboard,
|
24588
24588
|
Dn as DashboardLocation,
|
24589
24589
|
gi as DataRow,
|
24590
|
-
|
24590
|
+
Mr as DateRangeSelector,
|
24591
24591
|
Ts as DebtsChart,
|
24592
24592
|
El as DebtsStore,
|
24593
24593
|
il as DebtsTable,
|
@@ -24597,7 +24597,7 @@ export {
|
|
24597
24597
|
Gc as Donut,
|
24598
24598
|
oA as Drawer,
|
24599
24599
|
Ai as EmptyState,
|
24600
|
-
|
24600
|
+
Jo as ErrorStatuses,
|
24601
24601
|
wd as ExpenseStatus,
|
24602
24602
|
JA as Fetch,
|
24603
24603
|
Ee as FieldType,
|
@@ -24606,7 +24606,7 @@ export {
|
|
24606
24606
|
pt as GlobalDataContext,
|
24607
24607
|
mP as GlobalDataProvider,
|
24608
24608
|
JP as GlobalStore,
|
24609
|
-
|
24609
|
+
ao as GoalApi,
|
24610
24610
|
Ll as GoalStore,
|
24611
24611
|
Xn as GoalType,
|
24612
24612
|
UP as GoalsWidget,
|
@@ -24626,12 +24626,12 @@ export {
|
|
24626
24626
|
rd as ListItemWrapper,
|
24627
24627
|
IA as Loader,
|
24628
24628
|
xP as LocalizedCopyApi,
|
24629
|
-
|
24629
|
+
nr as ManageIncome,
|
24630
24630
|
ft as MemberConnectionStatus,
|
24631
24631
|
FP as MerchantLookup,
|
24632
24632
|
Vl as MerchantStore,
|
24633
24633
|
le as MetaType,
|
24634
|
-
|
24634
|
+
Zo as MfaStatuses,
|
24635
24635
|
F3 as MicroBeatCarousel,
|
24636
24636
|
Ji as MicroInsightCard,
|
24637
24637
|
ut as MiniWidgetContainer,
|
@@ -24643,8 +24643,8 @@ export {
|
|
24643
24643
|
rv as NetWorthSummary,
|
24644
24644
|
WP as NetWorthWidget,
|
24645
24645
|
r6 as NoRelevantInsightsCard,
|
24646
|
-
|
24647
|
-
|
24646
|
+
_o as NonConnectedStatuses,
|
24647
|
+
mr as NotificationApi,
|
24648
24648
|
ZP as NotificationDrawer,
|
24649
24649
|
bv as NotificationList,
|
24650
24650
|
Ks as NotificationSettings,
|
@@ -24653,11 +24653,11 @@ export {
|
|
24653
24653
|
KI as ORDINAL_DATE_FORMAT,
|
24654
24654
|
HP as ORDINAL_MONTH_DAY_YEAR_FORMAT,
|
24655
24655
|
Vn as PAYMENT_ACCOUNT_TYPES,
|
24656
|
-
|
24656
|
+
pr as PaymentCategories,
|
24657
24657
|
ec as PlanTypes,
|
24658
24658
|
JI as ProcessingStatuses,
|
24659
24659
|
Z9 as ProfileTab,
|
24660
|
-
|
24660
|
+
Ko as PropertyType,
|
24661
24661
|
CP as PropertyTypeName,
|
24662
24662
|
gP as RECURRENCE_COPY,
|
24663
24663
|
F as RecurrenceTypes,
|
@@ -24667,11 +24667,11 @@ export {
|
|
24667
24667
|
QP as ResponsiveButton,
|
24668
24668
|
Bn as SPENDING_ACCOUNT_TYPES,
|
24669
24669
|
yd as ScheduledPaymentTypes,
|
24670
|
-
|
24670
|
+
Lr as ScheduledPaymentsApi,
|
24671
24671
|
xd as ScreenSize,
|
24672
24672
|
Si as SearchBox,
|
24673
|
-
|
24674
|
-
|
24673
|
+
Yr as SelectionBox,
|
24674
|
+
Ro as SettingsApi,
|
24675
24675
|
Cv as SettingsStore,
|
24676
24676
|
KP as SettingsWidget,
|
24677
24677
|
Es as SingleSegmentDonut,
|
@@ -24691,9 +24691,9 @@ export {
|
|
24691
24691
|
pi as TransactionApi,
|
24692
24692
|
Yt as TransactionDetails,
|
24693
24693
|
Pt as TransactionList,
|
24694
|
-
|
24694
|
+
Jn as TransactionRow,
|
24695
24695
|
sR as TransactionRulesTab,
|
24696
|
-
|
24696
|
+
Zn as TransactionStatus,
|
24697
24697
|
jd as TransactionStore,
|
24698
24698
|
Zd as TransactionTable,
|
24699
24699
|
ce as TransactionType,
|
@@ -24704,10 +24704,10 @@ export {
|
|
24704
24704
|
hR as UserStore,
|
24705
24705
|
pd as UserVerification,
|
24706
24706
|
Au as ViewMoreMicroCard,
|
24707
|
-
|
24707
|
+
Or as WidgetApi,
|
24708
24708
|
ze as WidgetContainer,
|
24709
|
-
|
24710
|
-
|
24709
|
+
as as WidgetContainerContext,
|
24710
|
+
Is as WidgetContainerProvider,
|
24711
24711
|
o6 as ZeroStateCard,
|
24712
24712
|
na as ZeroStateIcon,
|
24713
24713
|
kI as analyticsSession,
|
@@ -24716,12 +24716,12 @@ export {
|
|
24716
24716
|
us as exportTransactionsToCSV,
|
24717
24717
|
N as formatCurrency,
|
24718
24718
|
rA as formatDate,
|
24719
|
-
|
24719
|
+
ts as formatOrdinal,
|
24720
24720
|
Ti as formatPercentage,
|
24721
|
-
|
24721
|
+
ns as fromTimestampToMonthYear,
|
24722
24722
|
qs as getAccountBalanceDetails,
|
24723
24723
|
VE as getAccountDetailFields,
|
24724
|
-
|
24724
|
+
yr as getCategory,
|
24725
24725
|
pP as getCategoryTotalsByParent,
|
24726
24726
|
sc as getCurrencyCodes,
|
24727
24727
|
nc as getDetailedCategory,
|
@@ -24732,9 +24732,9 @@ export {
|
|
24732
24732
|
Hn as isValidNumber,
|
24733
24733
|
CA as useAccountStore,
|
24734
24734
|
we as useAccountUiStore,
|
24735
|
-
|
24735
|
+
Fn as useAppConfig,
|
24736
24736
|
ee as useBudgetsStore,
|
24737
|
-
|
24737
|
+
Wn as useCashflowStore,
|
24738
24738
|
QA as useCategoryStore,
|
24739
24739
|
at as useCategoryUiStore,
|
24740
24740
|
vc as useCombineEvents,
|
@@ -24746,7 +24746,7 @@ export {
|
|
24746
24746
|
Bi as useGlobalStore,
|
24747
24747
|
cA as useGlobalUiStore,
|
24748
24748
|
KA as useGoalStore,
|
24749
|
-
|
24749
|
+
kn as useHelpStore,
|
24750
24750
|
Vc as useHoldingStore,
|
24751
24751
|
Bc as useMerchantStore,
|
24752
24752
|
Sc as useNetWorthStore,
|