@mx-cartographer/experiences 5.3.1-alpha.mega13 → 5.3.1-alpha.mega15
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 +273 -273
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as e, jsxs as s, Fragment as Z } from "react/jsx-runtime";
|
|
2
|
-
import h, { useMemo as
|
|
2
|
+
import h, { useMemo as oa, useRef as Xo, useEffect as Ht, useState as Fe } from "react";
|
|
3
3
|
import { observer as C } from "mobx-react-lite";
|
|
4
4
|
import L from "@mui/material/Box";
|
|
5
5
|
import G from "@mui/material/Divider";
|
|
6
6
|
import rA from "@mui/material/List";
|
|
7
7
|
import me from "@mui/material/ListSubheader";
|
|
8
8
|
import rr from "@mui/system/Stack";
|
|
9
|
-
import { AccountsIcon as Ia, P as HA, Icon as q, useTokens as KA, Text as R, H2 as lt, CategoryIcon as be, DialogHeader as aa, DialogFooter as sa, Drawer as ca, Footer as fa, DateRangePicker as or, H3 as ne, H1 as it, TextField as dt, IconWeight as ae, MerchantLogo as vt, CategoryIconVariants as
|
|
9
|
+
import { AccountsIcon as Ia, P as HA, Icon as q, useTokens as KA, Text as R, H2 as lt, CategoryIcon as be, DialogHeader as aa, DialogFooter as sa, Drawer as ca, Footer as fa, DateRangePicker as or, H3 as ne, H1 as it, TextField as dt, IconWeight as ae, MerchantLogo as vt, CategoryIconVariants as po, InstitutionLogo as Oe, ChevronRightIcon as da, THEMES as Ir, createMXTheme as Ea } from "@mxenabled/mxui";
|
|
10
10
|
import ha from "bowser";
|
|
11
11
|
import { getUnixTime as gA } from "date-fns/getUnixTime";
|
|
12
12
|
import { intlFormat as la } from "date-fns/intlFormat";
|
|
@@ -19,7 +19,7 @@ import sn from "@mui/material/FormControlLabel";
|
|
|
19
19
|
import W from "@mui/material/ListItem";
|
|
20
20
|
import aA from "@mui/material/ListItemButton";
|
|
21
21
|
import eA from "@mui/material/ListItemText";
|
|
22
|
-
import
|
|
22
|
+
import wo from "@mui/material/Popover";
|
|
23
23
|
import P from "@mui/material/Stack";
|
|
24
24
|
import li from "@mui/material/Checkbox";
|
|
25
25
|
import { addMonths as Re } from "date-fns/addMonths";
|
|
@@ -51,7 +51,7 @@ import { isWithinInterval as mt } from "date-fns/isWithinInterval";
|
|
|
51
51
|
import * as ue from "d3";
|
|
52
52
|
import { selectAll as za, interpolateString as Ca, arc as ga } from "d3";
|
|
53
53
|
import { useTheme as oe, keyframes as Xa, ThemeProvider as pa } from "@mui/material/styles";
|
|
54
|
-
import { ResponsiveChartContainer as wa, AreaPlot as ya, LinePlot as xa, MarkPlot as Da, BarPlot as ja, ChartsXAxis as ma, ChartsYAxis as Oa, ChartsReferenceLine as La, ChartsLegend as Qa, LineChart as
|
|
54
|
+
import { ResponsiveChartContainer as wa, AreaPlot as ya, LinePlot as xa, MarkPlot as Da, BarPlot as ja, ChartsXAxis as ma, ChartsYAxis as Oa, ChartsReferenceLine as La, ChartsLegend as Qa, LineChart as yo } from "@mui/x-charts";
|
|
55
55
|
import { Stack as EA, Box as Me, useTheme as nt, Card as yi, CardContent as qa, Button as Ga, List as Ma, Divider as Na } from "@mui/material";
|
|
56
56
|
import ze from "@mui/material/Card";
|
|
57
57
|
import Ce from "@mui/material/CardContent";
|
|
@@ -66,9 +66,9 @@ import Ya from "@mui/material/ButtonGroup";
|
|
|
66
66
|
import GA from "@mui/material/Tab";
|
|
67
67
|
import Se from "@mui/material/Tabs";
|
|
68
68
|
import gn from "@mui/material/ToggleButton";
|
|
69
|
-
import
|
|
69
|
+
import xo from "@mui/material/ToggleButtonGroup";
|
|
70
70
|
import Va from "@mui/material/Dialog";
|
|
71
|
-
import
|
|
71
|
+
import Do from "@mui/material/DialogContent";
|
|
72
72
|
import Ba from "@mui/icons-material/ArrowBackOutlined";
|
|
73
73
|
import rt from "@mui/material/CardHeader";
|
|
74
74
|
import { ConnectWidget as Sa, ConnectionsWidget as Ua } from "@mxenabled/web-widget-sdk";
|
|
@@ -79,7 +79,7 @@ import Wa from "@mui/material/Radio";
|
|
|
79
79
|
import Qe from "@mui/material/Avatar";
|
|
80
80
|
import xA from "@mui/material/ListItemAvatar";
|
|
81
81
|
import re from "@mui/material/ListItemIcon";
|
|
82
|
-
import { AccountBalance as ka, ChevronRight as ce, Payments as Ka, NoteStack as Za, Person as Ja, CheckCircle as _a, Icon as dn, ExpandLess as $a, ExpandMore as As, AddBox as
|
|
82
|
+
import { AccountBalance as ka, ChevronRight as ce, Payments as Ka, NoteStack as Za, Person as Ja, CheckCircle as _a, Icon as dn, ExpandLess as $a, ExpandMore as As, AddBox as jo, Star as es } from "@mxenabled/mx-icons";
|
|
83
83
|
import xi from "@mui/material/Switch";
|
|
84
84
|
import { makeAutoObservable as DA, runInAction as F, reaction as ts, observable as is } from "mobx";
|
|
85
85
|
import { differenceInDays as ns } from "date-fns/differenceInDays";
|
|
@@ -90,8 +90,8 @@ import { intervalToDuration as rs, formatDuration as os, getDate as dr, fromUnix
|
|
|
90
90
|
import { getMonth as Dt } from "date-fns/getMonth";
|
|
91
91
|
import Et from "@mui/material/Alert";
|
|
92
92
|
import ri from "@mui/material/Snackbar";
|
|
93
|
-
import { useVirtualizer as
|
|
94
|
-
import { parseISO as
|
|
93
|
+
import { useVirtualizer as mo } from "@tanstack/react-virtual";
|
|
94
|
+
import { parseISO as Oo } from "date-fns/parseISO";
|
|
95
95
|
import _e from "@mui/material/Skeleton";
|
|
96
96
|
import { isAfter as Ot } from "date-fns/isAfter";
|
|
97
97
|
import { subWeeks as hr } from "date-fns/subWeeks";
|
|
@@ -101,7 +101,7 @@ import { DatePicker as wn } from "@mui/x-date-pickers";
|
|
|
101
101
|
import { LocalizationProvider as Mt } from "@mui/x-date-pickers/LocalizationProvider";
|
|
102
102
|
import $A from "@mui/material/TextField";
|
|
103
103
|
import { DateCalendar as mi } from "@mui/x-date-pickers/DateCalendar";
|
|
104
|
-
import { formatDistanceToNow as
|
|
104
|
+
import { formatDistanceToNow as Lo } from "date-fns/formatDistanceToNow";
|
|
105
105
|
import yn from "@mui/material/Accordion";
|
|
106
106
|
import xn from "@mui/material/AccordionDetails";
|
|
107
107
|
import Dn from "@mui/material/AccordionSummary";
|
|
@@ -117,16 +117,16 @@ import us from "@mui/material/FormGroup";
|
|
|
117
117
|
import Ps from "@mui/icons-material/FlagOutlined";
|
|
118
118
|
import bs from "@mui/icons-material/ReceiptOutlined";
|
|
119
119
|
import { getWeeksInMonth as lr } from "date-fns/getWeeksInMonth";
|
|
120
|
-
import
|
|
120
|
+
import Qo from "@mui/material/Badge";
|
|
121
121
|
import { PickersDay as Hs } from "@mui/x-date-pickers/PickersDay";
|
|
122
122
|
import zs from "@mui/icons-material/AccessTimeFilled";
|
|
123
123
|
import Cs from "@mui/icons-material/MonetizationOn";
|
|
124
124
|
import Oi from "@mui/icons-material/CheckCircle";
|
|
125
125
|
import { getDate as Kt } from "date-fns/getDate";
|
|
126
|
-
import { isValid as
|
|
126
|
+
import { isValid as qo } from "date-fns/isValid";
|
|
127
127
|
import tt from "@mui/material/Unstable_Grid2";
|
|
128
128
|
import Li from "@mui/material/Collapse";
|
|
129
|
-
import
|
|
129
|
+
import Go from "@mui/material/CardActionArea";
|
|
130
130
|
import gs from "@mui/icons-material/DragHandle";
|
|
131
131
|
import En from "@mui/material/AlertTitle";
|
|
132
132
|
import Qi from "@mui/icons-material/Error";
|
|
@@ -140,9 +140,9 @@ import Ds from "@mui/material/FormControl";
|
|
|
140
140
|
import js from "@mui/material/InputLabel";
|
|
141
141
|
import { LocalizationProvider as ms } from "@mui/x-date-pickers-pro";
|
|
142
142
|
import Os from "@mui/material/Select";
|
|
143
|
-
import
|
|
143
|
+
import Mo from "@mui/material/Link";
|
|
144
144
|
import Ls from "@mui/material/ListItemSecondaryAction";
|
|
145
|
-
import { useInView as
|
|
145
|
+
import { useInView as No } from "react-intersection-observer";
|
|
146
146
|
import Qs from "@mui/material/CardActions";
|
|
147
147
|
import qs from "@mui/icons-material/ChevronLeft";
|
|
148
148
|
import vr from "@mui/material/Typography";
|
|
@@ -358,17 +358,17 @@ const Ns = async (A, t, i = "1.0.0", n = "Experiences") => {
|
|
|
358
358
|
year: "numeric"
|
|
359
359
|
}
|
|
360
360
|
}, nA = (A, t) => la(new Date(A), Object.assign(t), { locale: ht() });
|
|
361
|
-
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))(_ || {}), Ys = /* @__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))(Ys || {}),
|
|
361
|
+
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))(_ || {}), Ys = /* @__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))(Ys || {}), To = /* @__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))(To || {}), ie = /* @__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))(ie || {});
|
|
362
362
|
const Vs = [
|
|
363
363
|
0,
|
|
364
364
|
15,
|
|
365
365
|
18
|
|
366
366
|
/* RESUMED */
|
|
367
|
-
],
|
|
367
|
+
], Yo = [
|
|
368
368
|
3,
|
|
369
369
|
4
|
|
370
370
|
/* REJECTED */
|
|
371
|
-
],
|
|
371
|
+
], Vo = [
|
|
372
372
|
1,
|
|
373
373
|
2,
|
|
374
374
|
5,
|
|
@@ -384,7 +384,7 @@ const Vs = [
|
|
|
384
384
|
19,
|
|
385
385
|
20
|
|
386
386
|
/* IMPAIRED */
|
|
387
|
-
],
|
|
387
|
+
], Bo = [...Vo, ...Yo];
|
|
388
388
|
var bt = /* @__PURE__ */ ((A) => (A.Connected = "Connected", A.Error = "Error", A.Processing = "Processing", A.RequiresMfa = "RequiresMfa", A))(bt || {});
|
|
389
389
|
const aP = {
|
|
390
390
|
3: "Challenged",
|
|
@@ -418,7 +418,7 @@ const aP = {
|
|
|
418
418
|
11: "Prepaid",
|
|
419
419
|
8: "Property",
|
|
420
420
|
2: "Savings"
|
|
421
|
-
},
|
|
421
|
+
}, So = {
|
|
422
422
|
0: "account_balance",
|
|
423
423
|
9: "monetization_on",
|
|
424
424
|
1: "checkbook",
|
|
@@ -791,7 +791,7 @@ const cP = [
|
|
|
791
791
|
SUCCESS: "SUCCESS"
|
|
792
792
|
};
|
|
793
793
|
var Fs = /* @__PURE__ */ ((A) => (A[A.SpendingPlan = 0] = "SpendingPlan", A[A.Budgets = 1] = "Budgets", A))(Fs || {}), Ws = /* @__PURE__ */ ((A) => (A[A.RecurringExpense = 0] = "RecurringExpense", A[A.PlannedExpense = 1] = "PlannedExpense", A[A.Other = 2] = "Other", A[A.Income = 3] = "Income", A))(Ws || {});
|
|
794
|
-
const
|
|
794
|
+
const Uo = 48, Fo = 4;
|
|
795
795
|
var ks = /* @__PURE__ */ ((A) => (A.Small = "small", A.Medium = "medium", A.Large = "large", A))(ks || {});
|
|
796
796
|
const Bt = 44, br = (A, t) => A.find((i) => i.guid === t), Ks = (A, t) => A.find((i) => i.guid === t), Zs = (A, t) => {
|
|
797
797
|
const i = A.find((n) => n.subCategories.find((r) => r.guid === t));
|
|
@@ -922,7 +922,7 @@ const M = (A, t, i) => {
|
|
|
922
922
|
style: "percent",
|
|
923
923
|
minimumFractionDigits: 2,
|
|
924
924
|
maximumFractionDigits: 2
|
|
925
|
-
}, Gi = (A, t = $s) => hn(A) ? new Intl.NumberFormat(ht(), t).format(Number(A)) : A, Ac = (A) => new Intl.PluralRules(ht(), A),
|
|
925
|
+
}, Gi = (A, t = $s) => hn(A) ? new Intl.NumberFormat(ht(), t).format(Number(A)) : A, Ac = (A) => new Intl.PluralRules(ht(), A), Wo = (A, t = { type: "ordinal" }, i = {
|
|
926
926
|
one: "st",
|
|
927
927
|
two: "nd",
|
|
928
928
|
few: "rd",
|
|
@@ -947,18 +947,18 @@ const M = (A, t, i) => {
|
|
|
947
947
|
}, tc = (A) => {
|
|
948
948
|
const t = Gn(A);
|
|
949
949
|
return Re(t, 1);
|
|
950
|
-
},
|
|
950
|
+
}, ko = (A) => {
|
|
951
951
|
let t = Pt(A, 1);
|
|
952
952
|
for (; mA(t, fA()); )
|
|
953
953
|
t = Pt(t, 1);
|
|
954
954
|
return t;
|
|
955
955
|
}, ic = (A) => {
|
|
956
|
-
const t =
|
|
956
|
+
const t = ko(A);
|
|
957
957
|
return Pt(t, 1);
|
|
958
958
|
}, nc = (A) => _t(A, 1), Zt = (A) => {
|
|
959
959
|
const t = yA(A);
|
|
960
960
|
return new Date(t.getUTCFullYear(), t.getUTCMonth(), t.getUTCDate());
|
|
961
|
-
}, Mi = (A) => nA(yA(A), AA.DAY_OF_WEEK_MONTH_DAY),
|
|
961
|
+
}, Mi = (A) => nA(yA(A), AA.DAY_OF_WEEK_MONTH_DAY), Ko = (A) => A ? nA(yA(A), AA.MONTH_YEAR) : "";
|
|
962
962
|
class rc {
|
|
963
963
|
fetchInstance;
|
|
964
964
|
constructor(t, i) {
|
|
@@ -1115,7 +1115,7 @@ const $i = (A, t) => A.reduce((i, n) => (i[n.guid] = t?.includes(n.guid), i), {}
|
|
|
1115
1115
|
guid: i.guid
|
|
1116
1116
|
};
|
|
1117
1117
|
return Object.prototype.hasOwnProperty.call(t, n) ? t[n] = t[n].concat(r) : t[n] = [r], t;
|
|
1118
|
-
}, {}),
|
|
1118
|
+
}, {}), Zo = ({
|
|
1119
1119
|
accounts: A,
|
|
1120
1120
|
accountFilterButtonEl: t,
|
|
1121
1121
|
copy: i,
|
|
@@ -1129,9 +1129,9 @@ const $i = (A, t) => A.reduce((i, n) => (i[n.guid] = t?.includes(n.guid), i), {}
|
|
|
1129
1129
|
handleClose: f,
|
|
1130
1130
|
showAccountNumbers: E
|
|
1131
1131
|
}) => {
|
|
1132
|
-
const l =
|
|
1132
|
+
const l = oa(() => oc(A), [A]), v = A.length < 1, u = !!t, H = Object.values(c).every((b) => !!b);
|
|
1133
1133
|
return /* @__PURE__ */ e(
|
|
1134
|
-
|
|
1134
|
+
wo,
|
|
1135
1135
|
{
|
|
1136
1136
|
anchorEl: t,
|
|
1137
1137
|
anchorOrigin: {
|
|
@@ -1314,7 +1314,7 @@ const $i = (A, t) => A.reduce((i, n) => (i[n.guid] = t?.includes(n.guid), i), {}
|
|
|
1314
1314
|
}
|
|
1315
1315
|
);
|
|
1316
1316
|
};
|
|
1317
|
-
|
|
1317
|
+
Zo.displayName = "AccountFilterOptions";
|
|
1318
1318
|
const Ic = (A, t) => {
|
|
1319
1319
|
const { session: i } = t, n = Object.values(t).reduce((o, I) => i && I?.onAnalyticEvent && typeof I?.onAnalyticEvent == "function" ? [...o, I.onAnalyticEvent] : o, []), r = [...A, ...n];
|
|
1320
1320
|
return h.useMemo(() => (o) => {
|
|
@@ -1343,11 +1343,11 @@ const Ic = (A, t) => {
|
|
|
1343
1343
|
// Between 768 and 1200
|
|
1344
1344
|
isTablet: wt(RA().breakpoints.between("md", "xl"))
|
|
1345
1345
|
}), vP = (A) => {
|
|
1346
|
-
const t =
|
|
1346
|
+
const t = Xo();
|
|
1347
1347
|
return Ht(() => {
|
|
1348
1348
|
t.current = A;
|
|
1349
1349
|
}, [A]), t.current;
|
|
1350
|
-
},
|
|
1350
|
+
}, Jo = ({
|
|
1351
1351
|
accounts: A,
|
|
1352
1352
|
copy: t,
|
|
1353
1353
|
onFilterClick: i,
|
|
@@ -1393,7 +1393,7 @@ const Ic = (A, t) => {
|
|
|
1393
1393
|
}
|
|
1394
1394
|
),
|
|
1395
1395
|
/* @__PURE__ */ e(
|
|
1396
|
-
|
|
1396
|
+
Zo,
|
|
1397
1397
|
{
|
|
1398
1398
|
accountFilterButtonEl: d,
|
|
1399
1399
|
accounts: A,
|
|
@@ -1776,7 +1776,7 @@ const Ic = (A, t) => {
|
|
|
1776
1776
|
}
|
|
1777
1777
|
}
|
|
1778
1778
|
}), zc = 340, Jt = 44;
|
|
1779
|
-
var
|
|
1779
|
+
var _o = /* @__PURE__ */ ((A) => (A.None = "None", A.Single = "Single", A.Range = "Range", A))(_o || {});
|
|
1780
1780
|
const Cc = ({
|
|
1781
1781
|
copy: A,
|
|
1782
1782
|
beginDate: t = void 0,
|
|
@@ -2159,8 +2159,8 @@ const Cc = ({
|
|
|
2159
2159
|
},
|
|
2160
2160
|
children: A
|
|
2161
2161
|
}
|
|
2162
|
-
),
|
|
2163
|
-
|
|
2162
|
+
), $o = h.createContext(null), AI = ({ children: A, availableHeight: t, availableWidth: i }) => /* @__PURE__ */ e(
|
|
2163
|
+
$o.Provider,
|
|
2164
2164
|
{
|
|
2165
2165
|
value: {
|
|
2166
2166
|
availableHeight: t,
|
|
@@ -2174,12 +2174,12 @@ const Cc = ({
|
|
|
2174
2174
|
if (!t)
|
|
2175
2175
|
throw new Error(`${A}() must be used within the GlobalDataContext`);
|
|
2176
2176
|
return t;
|
|
2177
|
-
}, CA = () => UA("useAccountStore").globalStore.accountStore,
|
|
2178
|
-
const t = h.useContext(
|
|
2177
|
+
}, CA = () => UA("useAccountStore").globalStore.accountStore, eI = () => UA("useAppConfig").globalStore.appDataStore.appConfig, te = () => UA("useBudgetsStore").globalStore.budgetsStore, Nn = () => UA("useCashflowStore").globalStore.cashflowStore, qA = () => UA("useCategoryStore").globalStore.categoryStore, tI = () => UA("useConnectStore").globalStore.connectStore, Ni = () => UA("useDebtsStore").globalStore.debtsStore, oi = () => UA("useGlobalStore").globalStore, pA = () => UA("useGlobalUiStore").globalStore.globalUiStore, X = () => UA("globalCopyStore").globalStore.copyStore.copy, FA = () => UA("useGoalStore").globalStore.goalStore, Tn = () => UA("useHelpStore").globalStore.helpStore, Oc = () => UA("useMerchantStore").globalStore.merchantStore, Lc = () => UA("useNetWorthStore").globalStore.netWorthStore, iI = () => UA("useNotificationStore").globalStore.notificationStore, ZA = () => UA("useRecurringActivityStore").globalStore.recurringActivityStore, ge = () => UA("useSettingsStore").globalStore.settingsStore, PA = () => UA("useTransactionStore").globalStore.transactionStore, Ue = () => UA("useUserStore").globalStore.userStore, K = () => ({ onEvent: UA().onEvent }), PP = () => ({ onPageView: UA().onPageView }), Qc = (A = "useWidgetContainerContext") => {
|
|
2178
|
+
const t = h.useContext($o);
|
|
2179
2179
|
if (!t)
|
|
2180
2180
|
throw new Error(`${A}() must be used within the WidgetContainerContext`);
|
|
2181
2181
|
return t;
|
|
2182
|
-
}, Xt = () => Qc(),
|
|
2182
|
+
}, Xt = () => Qc(), nI = ({ categoryGuid: A, topLevelCategoryGuid: t }) => {
|
|
2183
2183
|
const { categories: i } = X(), { getCategoryName: n } = qA(), r = n(A);
|
|
2184
2184
|
return /* @__PURE__ */ s(P, { alignItems: "center", direction: "column", gap: "8", justifyContent: "center", mb: 4, children: [
|
|
2185
2185
|
/* @__PURE__ */ e(
|
|
@@ -2212,7 +2212,7 @@ const Cc = ({
|
|
|
2212
2212
|
cursorPosition: n,
|
|
2213
2213
|
chartContainerRef: r
|
|
2214
2214
|
}) => {
|
|
2215
|
-
const o = oe(), I =
|
|
2215
|
+
const o = oe(), I = Xo(null), [a, c] = Fe({ x: n.x, y: n.y });
|
|
2216
2216
|
if (Ht(() => {
|
|
2217
2217
|
(() => {
|
|
2218
2218
|
const E = I.current, l = r.current;
|
|
@@ -2236,7 +2236,7 @@ const Cc = ({
|
|
|
2236
2236
|
},
|
|
2237
2237
|
children: /* @__PURE__ */ s(Ce, { children: [
|
|
2238
2238
|
/* @__PURE__ */ s(L, { alignItems: "center", display: "flex", flexDirection: "column", children: [
|
|
2239
|
-
/* @__PURE__ */ e(
|
|
2239
|
+
/* @__PURE__ */ e(nI, { categoryGuid: A, topLevelCategoryGuid: t }),
|
|
2240
2240
|
/* @__PURE__ */ e(R, { variant: "Small", children: `${i.length}-month total` }),
|
|
2241
2241
|
/* @__PURE__ */ e(OA, { amount: d, bold: !0, formatString: "0,0", variant: "body2" })
|
|
2242
2242
|
] }),
|
|
@@ -2267,7 +2267,7 @@ const Cc = ({
|
|
|
2267
2267
|
}) => {
|
|
2268
2268
|
const o = nt(), I = n.data[i], a = r[i];
|
|
2269
2269
|
return I === void 0 || !a ? null : /* @__PURE__ */ e(yi, { sx: { pt: 4, px: 8 }, children: /* @__PURE__ */ e(qa, { children: /* @__PURE__ */ s(Me, { alignItems: "center", display: "flex", flexDirection: "column", children: [
|
|
2270
|
-
/* @__PURE__ */ e(
|
|
2270
|
+
/* @__PURE__ */ e(nI, { categoryGuid: A, topLevelCategoryGuid: t }),
|
|
2271
2271
|
/* @__PURE__ */ e(R, { color: o.palette.text.secondary, variant: "Small", children: nA(a, AA.MONTH_SHORT_YEAR) }),
|
|
2272
2272
|
/* @__PURE__ */ e(OA, { amount: String(I), bold: !0, formatString: "0,0", variant: "Body" })
|
|
2273
2273
|
] }) }) });
|
|
@@ -2447,7 +2447,7 @@ const Cc = ({
|
|
|
2447
2447
|
sx: { width: "100%", position: "relative" },
|
|
2448
2448
|
children: [
|
|
2449
2449
|
/* @__PURE__ */ e(
|
|
2450
|
-
|
|
2450
|
+
yo,
|
|
2451
2451
|
{
|
|
2452
2452
|
height: I || 400,
|
|
2453
2453
|
margin: { bottom: 50 },
|
|
@@ -2584,7 +2584,7 @@ const Cc = ({
|
|
|
2584
2584
|
style: { boxSizing: "border-box" }
|
|
2585
2585
|
}
|
|
2586
2586
|
),
|
|
2587
|
-
/* @__PURE__ */ e(
|
|
2587
|
+
/* @__PURE__ */ e(Do, { sx: { lineHeight: 1.5 }, children: E }),
|
|
2588
2588
|
/* @__PURE__ */ e(
|
|
2589
2589
|
sa,
|
|
2590
2590
|
{
|
|
@@ -2845,7 +2845,7 @@ const Cc = ({
|
|
|
2845
2845
|
}
|
|
2846
2846
|
),
|
|
2847
2847
|
I === "timeframebuttons" && /* @__PURE__ */ e(
|
|
2848
|
-
|
|
2848
|
+
xo,
|
|
2849
2849
|
{
|
|
2850
2850
|
color: t,
|
|
2851
2851
|
exclusive: !0,
|
|
@@ -2968,8 +2968,8 @@ const Cc = ({
|
|
|
2968
2968
|
}, bP = ({
|
|
2969
2969
|
hasGap: A = !1,
|
|
2970
2970
|
segments: t,
|
|
2971
|
-
size: i =
|
|
2972
|
-
strokeWidth: n =
|
|
2971
|
+
size: i = Uo,
|
|
2972
|
+
strokeWidth: n = Fo,
|
|
2973
2973
|
children: r
|
|
2974
2974
|
}) => {
|
|
2975
2975
|
const o = KA(), I = Vc(o, i), a = (i - n) / 2, c = i / 2;
|
|
@@ -3017,11 +3017,11 @@ const Cc = ({
|
|
|
3017
3017
|
top: "50%",
|
|
3018
3018
|
transform: "translate(-50%, -50%)"
|
|
3019
3019
|
}
|
|
3020
|
-
}),
|
|
3020
|
+
}), rI = ({
|
|
3021
3021
|
color: A = "",
|
|
3022
3022
|
percent: t = 0,
|
|
3023
|
-
size: i =
|
|
3024
|
-
strokeWidth: n =
|
|
3023
|
+
size: i = Uo,
|
|
3024
|
+
strokeWidth: n = Fo,
|
|
3025
3025
|
children: r
|
|
3026
3026
|
}) => {
|
|
3027
3027
|
const o = RA(), I = (i - n) / 2, a = -90, c = t > 100 ? 100 : t, d = 2 * Math.PI * I * (1 - c / 100), f = i / 2;
|
|
@@ -3084,7 +3084,7 @@ const Cc = ({
|
|
|
3084
3084
|
}, t);
|
|
3085
3085
|
};
|
|
3086
3086
|
}, [A, t]);
|
|
3087
|
-
function
|
|
3087
|
+
function oI(A = 100) {
|
|
3088
3088
|
const [t, i] = h.useState({
|
|
3089
3089
|
width: 0,
|
|
3090
3090
|
height: 0
|
|
@@ -3117,7 +3117,7 @@ const pt = ({
|
|
|
3117
3117
|
sx: o = {},
|
|
3118
3118
|
title: I = ""
|
|
3119
3119
|
}) => {
|
|
3120
|
-
const [a, { height: c, width: d }] =
|
|
3120
|
+
const [a, { height: c, width: d }] = oI();
|
|
3121
3121
|
return /* @__PURE__ */ s(ze, { className: A, sx: { borderRadius: "8px", ...o }, children: [
|
|
3122
3122
|
/* @__PURE__ */ e(
|
|
3123
3123
|
rt,
|
|
@@ -3136,7 +3136,7 @@ const pt = ({
|
|
|
3136
3136
|
title: I ? /* @__PURE__ */ e(ne, { sx: { pb: 4 }, children: I }) : null
|
|
3137
3137
|
}
|
|
3138
3138
|
),
|
|
3139
|
-
/* @__PURE__ */ e(Ce, { ref: a, sx: { p: 0 }, children: /* @__PURE__ */ e(
|
|
3139
|
+
/* @__PURE__ */ e(Ce, { ref: a, sx: { p: 0 }, children: /* @__PURE__ */ e(AI, { availableHeight: c, availableWidth: d, children: t }) })
|
|
3140
3140
|
] });
|
|
3141
3141
|
}, Sc = ({
|
|
3142
3142
|
accountOptions: A,
|
|
@@ -3153,7 +3153,7 @@ const pt = ({
|
|
|
3153
3153
|
sx: E = {},
|
|
3154
3154
|
title: l = ""
|
|
3155
3155
|
}) => {
|
|
3156
|
-
const [v, { height: u, width: H }] =
|
|
3156
|
+
const [v, { height: u, width: H }] = oI(), { onEvent: b } = K(), { isDesktop: p, isLargeDesktop: y, isMobile: x, isTablet: w } = zA(), { displayedDateRange: D, selectedAccountGuids: j, setSelectedAccountGuids: m } = pA(), { common: O } = X(), T = () => {
|
|
3157
3157
|
c && (c(), b(V.WIDGET_BACK_CLICK));
|
|
3158
3158
|
}, tA = {
|
|
3159
3159
|
accountFilterOptionsCopy: {
|
|
@@ -3220,7 +3220,7 @@ const pt = ({
|
|
|
3220
3220
|
}
|
|
3221
3221
|
) }),
|
|
3222
3222
|
A && /* @__PURE__ */ e(
|
|
3223
|
-
|
|
3223
|
+
Jo,
|
|
3224
3224
|
{
|
|
3225
3225
|
accounts: A,
|
|
3226
3226
|
copy: tA,
|
|
@@ -3294,7 +3294,7 @@ const pt = ({
|
|
|
3294
3294
|
}
|
|
3295
3295
|
)
|
|
3296
3296
|
] }),
|
|
3297
|
-
/* @__PURE__ */ e(Ce, { ref: v, sx: { p: 0 }, children: /* @__PURE__ */ e(
|
|
3297
|
+
/* @__PURE__ */ e(Ce, { ref: v, sx: { p: 0 }, children: /* @__PURE__ */ e(AI, { availableHeight: u, availableWidth: H, children: n }) })
|
|
3298
3298
|
]
|
|
3299
3299
|
}
|
|
3300
3300
|
);
|
|
@@ -3332,7 +3332,7 @@ const jr = "connect_widget", mr = "connections_widget", Fc = ({
|
|
|
3332
3332
|
title: n
|
|
3333
3333
|
}) => {
|
|
3334
3334
|
let r;
|
|
3335
|
-
const { refreshAccounts: o } = CA(), { loadWidget: I } =
|
|
3335
|
+
const { refreshAccounts: o } = CA(), { loadWidget: I } = tI(), { connect: a } = X(), [c, d] = h.useState(!1), [f, E] = h.useState(!1), {
|
|
3336
3336
|
palette: { mode: l }
|
|
3337
3337
|
} = RA();
|
|
3338
3338
|
return h.useEffect(() => (i ? (d(!0), I({ mode: l, ...A }).then((v) => {
|
|
@@ -3647,8 +3647,8 @@ const jr = "connect_widget", mr = "connections_widget", Fc = ({
|
|
|
3647
3647
|
}
|
|
3648
3648
|
)
|
|
3649
3649
|
}
|
|
3650
|
-
),
|
|
3651
|
-
const { config: n } =
|
|
3650
|
+
), II = ({ description: A, label: t, title: i }) => {
|
|
3651
|
+
const { config: n } = eI(), [r, o] = h.useState(!1);
|
|
3652
3652
|
if (n.show_connections_widget_in_master)
|
|
3653
3653
|
return /* @__PURE__ */ s(h.Fragment, { children: [
|
|
3654
3654
|
/* @__PURE__ */ s(ze, { sx: { m: 24 }, children: [
|
|
@@ -4472,7 +4472,7 @@ const cf = [
|
|
|
4472
4472
|
ON_TRANSACTION_UNHIDE_CANCEL_CLICK: "onTransactionUnHideCancelClick",
|
|
4473
4473
|
ON_TRANSACTION_UNSPLIT: "onTransactionUnsplit",
|
|
4474
4474
|
ON_TRANSACTION_UNSPLIT_CANCEL: "onTransactionUnsplitCancel"
|
|
4475
|
-
},
|
|
4475
|
+
}, aI = {
|
|
4476
4476
|
ASC: "ASC",
|
|
4477
4477
|
DESC: "DESC",
|
|
4478
4478
|
DIRECTION: {
|
|
@@ -4797,13 +4797,13 @@ const cf = [
|
|
|
4797
4797
|
}, Rf = (A, t, i) => [...A].sort((n, r) => {
|
|
4798
4798
|
const o = t, I = (n[o] || "") > (r[o] || "");
|
|
4799
4799
|
let a = I ? -1 : 1, c = I ? 1 : -1;
|
|
4800
|
-
return (t === Rn.DATE || t === Rn.AMOUNT) && (a = I ? 1 : -1, c = I ? -1 : 1), i ===
|
|
4800
|
+
return (t === Rn.DATE || t === Rn.AMOUNT) && (a = I ? 1 : -1, c = I ? -1 : 1), i === aI.ASC ? a : c;
|
|
4801
4801
|
}), pe = (A, t) => {
|
|
4802
4802
|
const i = A.toLowerCase().split(" "), n = t?.toString().toLowerCase() ?? "";
|
|
4803
4803
|
return i.every((r) => n.indexOf(r) > -1);
|
|
4804
4804
|
};
|
|
4805
4805
|
var TA = /* @__PURE__ */ ((A) => (A[A.Expense = 0] = "Expense", A[A.Income = 1] = "Income", A))(TA || {}), SA = /* @__PURE__ */ ((A) => (A[A.Paid = 0] = "Paid", A[A.Missed = 1] = "Missed", A[A.Upcoming = 2] = "Upcoming", A))(SA || {}), uf = /* @__PURE__ */ ((A) => (A[A.UNKNOWN = 0] = "UNKNOWN", A[A.CORRECT = 1] = "CORRECT", A[A.INCORRECT = 2] = "INCORRECT", A))(uf || {}), Pf = /* @__PURE__ */ ((A) => (A.Missed = "Missed", A.Paid = "Paid", A.Upcoming = "Upcoming expense", A.Income = "Income", A))(Pf || {}), bf = /* @__PURE__ */ ((A) => (A[A.Unknown = 0] = "Unknown", A[A.Subscription = 1] = "Subscription", A[A.Bill = 2] = "Bill", A))(bf || {}), B = /* @__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))(B || {}), un = /* @__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))(un || {}), he = /* @__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))(he || {}), LA = /* @__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))(LA || {}), se = /* @__PURE__ */ ((A) => (A[A.CREDIT = 1] = "CREDIT", A[A.DEBIT = 2] = "DEBIT", A))(se || {}), Vn = /* @__PURE__ */ ((A) => (A[A.POSTED = 1] = "POSTED", A[A.PENDING = 2] = "PENDING", A))(Vn || {}), Hf = /* @__PURE__ */ ((A) => (A.Desktop = "Desktop", A.Mobile = "Mobile", A))(Hf || {});
|
|
4806
|
-
const
|
|
4806
|
+
const sI = {
|
|
4807
4807
|
account_guid: "",
|
|
4808
4808
|
amount: 0,
|
|
4809
4809
|
currency_code: "",
|
|
@@ -4842,7 +4842,7 @@ let zf = class {
|
|
|
4842
4842
|
shouldDisableDrawerScroll = !1;
|
|
4843
4843
|
searchValue = "";
|
|
4844
4844
|
selectedAccountGuids = [];
|
|
4845
|
-
manualTransaction =
|
|
4845
|
+
manualTransaction = sI;
|
|
4846
4846
|
isAmountValid = !1;
|
|
4847
4847
|
showInsights = !1;
|
|
4848
4848
|
constructor() {
|
|
@@ -4884,7 +4884,7 @@ class Cf {
|
|
|
4884
4884
|
cachedStartDate = Ve(fA(), 90);
|
|
4885
4885
|
onAnalyticEvent = Ef;
|
|
4886
4886
|
sortColumn = Rn.DATE;
|
|
4887
|
-
sortDirection =
|
|
4887
|
+
sortDirection = aI.DESC;
|
|
4888
4888
|
filter = {};
|
|
4889
4889
|
constructor(t) {
|
|
4890
4890
|
this.globalStore = t, this.uiStore = new zf(), DA(this);
|
|
@@ -5067,7 +5067,7 @@ const Pe = () => {
|
|
|
5067
5067
|
if (!h.useContext(gt))
|
|
5068
5068
|
throw new Error("useTransactionsUiStore() must be used within the GlobalDataContext");
|
|
5069
5069
|
return PA().uiStore;
|
|
5070
|
-
},
|
|
5070
|
+
}, cI = (A, t) => {
|
|
5071
5071
|
const i = Xf(gf(A, t)), n = encodeURIComponent(i), r = document.createElement("a");
|
|
5072
5072
|
r.href = `data:attachment/csv;charset=utf-8,${n}`, r.download = "transactions.csv", document.body.appendChild(r), r.click(), document.body.removeChild(r);
|
|
5073
5073
|
}, gf = (A, t) => A.map((i) => ({
|
|
@@ -5168,7 +5168,7 @@ const Pe = () => {
|
|
|
5168
5168
|
width: a = "100%",
|
|
5169
5169
|
zeroState: c = /* @__PURE__ */ e(Df, {})
|
|
5170
5170
|
}) => {
|
|
5171
|
-
const { isLoading: d, sortedTransactions: f } = PA(), E =
|
|
5171
|
+
const { isLoading: d, sortedTransactions: f } = PA(), E = h.useMemo(() => r ? f : f.filter((y) => !y.accountIsClosed), [r, f]);
|
|
5172
5172
|
console.log(r, JSON.parse(JSON.stringify(E)));
|
|
5173
5173
|
const { setShowInsights: l, toggleSplit: v } = Pe(), { onEvent: u } = K(), H = (y) => {
|
|
5174
5174
|
const x = E.find((w) => w.guid === y);
|
|
@@ -5180,13 +5180,13 @@ const Pe = () => {
|
|
|
5180
5180
|
account_guid: x?.account_guid,
|
|
5181
5181
|
transaction_guid: y
|
|
5182
5182
|
}), n?.(y);
|
|
5183
|
-
}, b = h.useRef(null), p =
|
|
5183
|
+
}, b = h.useRef(null), p = mo({
|
|
5184
5184
|
count: E.length,
|
|
5185
5185
|
getScrollElement: () => b.current,
|
|
5186
5186
|
estimateSize: (y) => Tr + (Nr(y, E) ? Yr : 0),
|
|
5187
5187
|
overscan: 5
|
|
5188
5188
|
});
|
|
5189
|
-
return h.useEffect(() => p.measure
|
|
5189
|
+
return h.useEffect(() => p.measure, [E, r]), h.useEffect(() => l(o), [o]), console.log(p.getVirtualItems().length), /* @__PURE__ */ e(rA, { children: /* @__PURE__ */ e(L, { height: t, overflow: "auto", ref: b, width: a, children: /* @__PURE__ */ s(
|
|
5190
5190
|
L,
|
|
5191
5191
|
{
|
|
5192
5192
|
height: p.getVirtualItems().length === 0 ? "auto" : p.getTotalSize(),
|
|
@@ -5424,7 +5424,7 @@ const Bf = ({
|
|
|
5424
5424
|
onPrimaryAction: () => {
|
|
5425
5425
|
c(!1), i(o);
|
|
5426
5426
|
},
|
|
5427
|
-
children: /* @__PURE__ */ e(
|
|
5427
|
+
children: /* @__PURE__ */ e(Do, { children: E ? /* @__PURE__ */ e(R, { children: f }) : /* @__PURE__ */ e(
|
|
5428
5428
|
dt,
|
|
5429
5429
|
{
|
|
5430
5430
|
"aria-label": r === "edit" ? a.edit_subcategory_aria : a.add_subcategory_aria,
|
|
@@ -5644,7 +5644,7 @@ const Bf = ({
|
|
|
5644
5644
|
/* @__PURE__ */ e(G, { sx: { ml: 58 } }),
|
|
5645
5645
|
/* @__PURE__ */ e($f, { categories: t, parentCategory: A })
|
|
5646
5646
|
] });
|
|
5647
|
-
},
|
|
5647
|
+
}, fI = C(Ad), ed = () => {
|
|
5648
5648
|
const { categories: A } = qA(), { searchValue: t } = ot(), { categories: i } = X(), r = ((o, I = "") => o.reduce((a, c) => {
|
|
5649
5649
|
if (c.parent_guid === null) {
|
|
5650
5650
|
const f = [
|
|
@@ -5663,7 +5663,7 @@ const Bf = ({
|
|
|
5663
5663
|
return a;
|
|
5664
5664
|
}, []))(A, t);
|
|
5665
5665
|
return /* @__PURE__ */ e(De, { className: "mx-cat-category-list", sx: { boxShadow: "none" }, children: /* @__PURE__ */ e(rA, { children: r.map((o) => /* @__PURE__ */ e(
|
|
5666
|
-
|
|
5666
|
+
fI,
|
|
5667
5667
|
{
|
|
5668
5668
|
category: o.category,
|
|
5669
5669
|
subCategories: o.children
|
|
@@ -5730,13 +5730,13 @@ const Bf = ({
|
|
|
5730
5730
|
}
|
|
5731
5731
|
);
|
|
5732
5732
|
}, Vi = C(od), Id = 3, Vr = 12, ad = (A, t, i) => A.filter((n) => !n.parent_guid).map(
|
|
5733
|
-
(n) =>
|
|
5733
|
+
(n) => dI(
|
|
5734
5734
|
n,
|
|
5735
5735
|
t,
|
|
5736
5736
|
i,
|
|
5737
5737
|
A.filter((r) => r.parent_guid === n.guid)
|
|
5738
5738
|
)
|
|
5739
|
-
),
|
|
5739
|
+
), dI = (A, t, i, n = []) => {
|
|
5740
5740
|
const r = A.guid, o = A.parent_guid || r, I = r === o, a = t.find((l) => l.category_guid === r)?.total || 0, c = Sr(
|
|
5741
5741
|
i.filter((l) => l.category_guid === r)
|
|
5742
5742
|
), d = Sr(
|
|
@@ -5744,7 +5744,7 @@ const Bf = ({
|
|
|
5744
5744
|
(l) => l.category_guid === r || l.top_level_category_guid === r
|
|
5745
5745
|
)
|
|
5746
5746
|
), f = n.map(
|
|
5747
|
-
(l) =>
|
|
5747
|
+
(l) => dI(l, t, i)
|
|
5748
5748
|
), E = f.reduce(
|
|
5749
5749
|
(l, v) => l + v.currentAmount,
|
|
5750
5750
|
a
|
|
@@ -5925,7 +5925,7 @@ class cd {
|
|
|
5925
5925
|
// TODO: Remove this after refactoring Trends components to use detailedCategories
|
|
5926
5926
|
getCategoryName = (t) => this.categories.find((n) => n.guid === t)?.name ?? qi[t];
|
|
5927
5927
|
}
|
|
5928
|
-
const
|
|
5928
|
+
const EI = ({ transaction: A }) => {
|
|
5929
5929
|
const { addOrUpdateTransactionRule: t, updateTransaction: i } = PA(), { categories: n } = qA(), { onEvent: r } = K(), { setShouldDisableDrawerScroll: o, updateManualTransaction: I } = Pe(), { transactions: a } = X(), [c, d] = h.useState(!1), [f, E] = h.useState(""), l = async (b) => {
|
|
5930
5930
|
await i({ ...A, category_guid: f }), b && await t(f, A), E(""), r(V.TRANSACTION_DETAILS_CLICK_CATEGORY, {
|
|
5931
5931
|
transaction_guid: A.guid
|
|
@@ -5962,7 +5962,7 @@ const hI = ({ transaction: A }) => {
|
|
|
5962
5962
|
categoryGuid: A.top_level_category_guid,
|
|
5963
5963
|
size: 24,
|
|
5964
5964
|
sx: { color: "text.primary" },
|
|
5965
|
-
variant:
|
|
5965
|
+
variant: po.Transparent
|
|
5966
5966
|
}
|
|
5967
5967
|
) }) }),
|
|
5968
5968
|
/* @__PURE__ */ e(
|
|
@@ -6010,7 +6010,7 @@ const hI = ({ transaction: A }) => {
|
|
|
6010
6010
|
}
|
|
6011
6011
|
)
|
|
6012
6012
|
] });
|
|
6013
|
-
},
|
|
6013
|
+
}, hI = ({ transaction: A }) => {
|
|
6014
6014
|
const t = KA(), { onEvent: i } = K(), { updateTransaction: n } = PA(), { updateManualTransaction: r } = Pe(), { common: o, transactions: I } = X(), [a, c] = h.useState(!1), [d, f] = h.useState(A.date), E = (v) => {
|
|
6015
6015
|
f(gA(v));
|
|
6016
6016
|
}, l = async () => {
|
|
@@ -6061,7 +6061,7 @@ const hI = ({ transaction: A }) => {
|
|
|
6061
6061
|
today: o.date_range_picker.today
|
|
6062
6062
|
},
|
|
6063
6063
|
onDateSelected: E,
|
|
6064
|
-
selectionType:
|
|
6064
|
+
selectionType: _o.Single
|
|
6065
6065
|
}
|
|
6066
6066
|
) })
|
|
6067
6067
|
}
|
|
@@ -6217,7 +6217,7 @@ const hI = ({ transaction: A }) => {
|
|
|
6217
6217
|
}
|
|
6218
6218
|
)
|
|
6219
6219
|
] });
|
|
6220
|
-
}, vd = C(ld),
|
|
6220
|
+
}, vd = C(ld), lI = ({ transaction: A }) => {
|
|
6221
6221
|
const { amount: t, description: i, isIncome: n, merchant_guid: r, payee: o, top_level_category_guid: I } = A;
|
|
6222
6222
|
return /* @__PURE__ */ s(P, { className: "mx-txn-amount-header", direction: "row", gap: 12, px: 16, py: 24, children: [
|
|
6223
6223
|
/* @__PURE__ */ e(
|
|
@@ -6286,7 +6286,7 @@ const hI = ({ transaction: A }) => {
|
|
|
6286
6286
|
onPrimaryAction: f,
|
|
6287
6287
|
title: o.memo_title,
|
|
6288
6288
|
children: [
|
|
6289
|
-
/* @__PURE__ */ e(
|
|
6289
|
+
/* @__PURE__ */ e(lI, { transaction: A }),
|
|
6290
6290
|
/* @__PURE__ */ e(
|
|
6291
6291
|
$A,
|
|
6292
6292
|
{
|
|
@@ -6306,7 +6306,7 @@ const hI = ({ transaction: A }) => {
|
|
|
6306
6306
|
}
|
|
6307
6307
|
)
|
|
6308
6308
|
] });
|
|
6309
|
-
},
|
|
6309
|
+
}, vI = C(Rd), ud = ({
|
|
6310
6310
|
index: A,
|
|
6311
6311
|
onDeleteRow: t,
|
|
6312
6312
|
onCategoryChanged: i,
|
|
@@ -6543,7 +6543,7 @@ const hI = ({ transaction: A }) => {
|
|
|
6543
6543
|
secondaryText: r.cancel_button,
|
|
6544
6544
|
title: o.split_transaction_title,
|
|
6545
6545
|
children: [
|
|
6546
|
-
/* @__PURE__ */ e(
|
|
6546
|
+
/* @__PURE__ */ e(lI, { transaction: A }),
|
|
6547
6547
|
/* @__PURE__ */ e(
|
|
6548
6548
|
Hd,
|
|
6549
6549
|
{
|
|
@@ -6833,7 +6833,7 @@ const hI = ({ transaction: A }) => {
|
|
|
6833
6833
|
}
|
|
6834
6834
|
)
|
|
6835
6835
|
] });
|
|
6836
|
-
},
|
|
6836
|
+
}, RI = C(md), Od = ({ transaction: A }) => {
|
|
6837
6837
|
const { updateTransaction: t } = PA(), { common: i, transactions: n } = X(), { onEvent: r } = K(), [o, I] = h.useState(!1), [a, c] = h.useState(""), d = h.useRef(null);
|
|
6838
6838
|
h.useEffect(() => {
|
|
6839
6839
|
o && (c(A.description), d?.current?.focus());
|
|
@@ -6959,10 +6959,10 @@ const hI = ({ transaction: A }) => {
|
|
|
6959
6959
|
)
|
|
6960
6960
|
] }),
|
|
6961
6961
|
/* @__PURE__ */ e(De, { square: !0, sx: { boxShadow: "none" }, children: /* @__PURE__ */ e(rA, { children: t.map((I, a) => /* @__PURE__ */ s(h.Fragment, { children: [
|
|
6962
|
-
I === Wt.Category && /* @__PURE__ */ e(
|
|
6963
|
-
I === Wt.Date && /* @__PURE__ */ e(
|
|
6964
|
-
I === Wt.Memo && /* @__PURE__ */ e(
|
|
6965
|
-
I === Wt.Tags && /* @__PURE__ */ e(
|
|
6962
|
+
I === Wt.Category && /* @__PURE__ */ e(EI, { transaction: i }),
|
|
6963
|
+
I === Wt.Date && /* @__PURE__ */ e(hI, { transaction: i }),
|
|
6964
|
+
I === Wt.Memo && /* @__PURE__ */ e(vI, { transaction: i }),
|
|
6965
|
+
I === Wt.Tags && /* @__PURE__ */ e(RI, { transaction: i }),
|
|
6966
6966
|
/* @__PURE__ */ e(G, { variant: a < t.length - 1 ? "inset" : "fullWidth" })
|
|
6967
6967
|
] }, I)) }) }),
|
|
6968
6968
|
/* @__PURE__ */ e(R, { bold: !0, mb: 8, ml: 26, mt: 16, variant: "Body", children: "Actions" }),
|
|
@@ -7087,10 +7087,10 @@ const hI = ({ transaction: A }) => {
|
|
|
7087
7087
|
] }),
|
|
7088
7088
|
/* @__PURE__ */ e(G, { light: !0 }),
|
|
7089
7089
|
/* @__PURE__ */ s(L, { bgcolor: "background.paper", children: [
|
|
7090
|
+
/* @__PURE__ */ e(EI, { transaction: n }),
|
|
7090
7091
|
/* @__PURE__ */ e(hI, { transaction: n }),
|
|
7091
|
-
/* @__PURE__ */ e(
|
|
7092
|
-
/* @__PURE__ */ e(RI, { transaction: n })
|
|
7093
|
-
/* @__PURE__ */ e(uI, { transaction: n })
|
|
7092
|
+
/* @__PURE__ */ e(vI, { transaction: n }),
|
|
7093
|
+
/* @__PURE__ */ e(RI, { transaction: n })
|
|
7094
7094
|
] })
|
|
7095
7095
|
] });
|
|
7096
7096
|
}, Yd = C(Td), Vd = ({ onClose: A, transaction: t }) => {
|
|
@@ -7169,7 +7169,7 @@ const hI = ({ transaction: A }) => {
|
|
|
7169
7169
|
const kA = QA(fA()), nr = BA(fA());
|
|
7170
7170
|
iA(kA, nr), b({
|
|
7171
7171
|
dateRange: { start: kA, end: nr },
|
|
7172
|
-
accounts: Y.map((
|
|
7172
|
+
accounts: Y.map((ra) => ra.guid)
|
|
7173
7173
|
}), Ke(!0), m(V.TRANSACTIONS_VIEW);
|
|
7174
7174
|
}, []), h.useEffect(() => {
|
|
7175
7175
|
JA && (b({
|
|
@@ -7191,10 +7191,10 @@ const hI = ({ transaction: A }) => {
|
|
|
7191
7191
|
searchTerm: kA
|
|
7192
7192
|
}), m(V.TRANSACTIONS_CLICK_SEARCH, { search_term: kA });
|
|
7193
7193
|
}, Ki = () => {
|
|
7194
|
-
|
|
7194
|
+
cI(y, p), m(V.TRANSACTIONS_CLICK_EXPORT);
|
|
7195
7195
|
}, Zi = () => {
|
|
7196
7196
|
Yt.length > 0 ? (l({
|
|
7197
|
-
...
|
|
7197
|
+
...sI,
|
|
7198
7198
|
date: gA(fA()),
|
|
7199
7199
|
user_guid: j?.user_guid || ""
|
|
7200
7200
|
}), uA(
|
|
@@ -7344,7 +7344,7 @@ const hI = ({ transaction: A }) => {
|
|
|
7344
7344
|
]
|
|
7345
7345
|
}
|
|
7346
7346
|
);
|
|
7347
|
-
}, XP = C(Sd),
|
|
7347
|
+
}, XP = C(Sd), uI = (A, t) => {
|
|
7348
7348
|
const i = {
|
|
7349
7349
|
...t,
|
|
7350
7350
|
repeat_day: null,
|
|
@@ -7371,7 +7371,7 @@ const hI = ({ transaction: A }) => {
|
|
|
7371
7371
|
break;
|
|
7372
7372
|
}
|
|
7373
7373
|
return i;
|
|
7374
|
-
},
|
|
7374
|
+
}, PI = (A, t) => ({
|
|
7375
7375
|
...t,
|
|
7376
7376
|
occurs_on: pn(A.expectedDate, { representation: "date" }),
|
|
7377
7377
|
recurrence_type: A.recurrenceType
|
|
@@ -7388,10 +7388,10 @@ const hI = ({ transaction: A }) => {
|
|
|
7388
7388
|
const H = { ...A, recurrenceType: u };
|
|
7389
7389
|
if (A.activityType === TA.Expense) {
|
|
7390
7390
|
const b = n.find((p) => p.guid === A.scheduledPaymentGuid);
|
|
7391
|
-
b && await o(
|
|
7391
|
+
b && await o(PI(H, b));
|
|
7392
7392
|
} else {
|
|
7393
7393
|
const b = i.find((p) => p.guid === A.sequenceGuid);
|
|
7394
|
-
b && await r(
|
|
7394
|
+
b && await r(uI(H, b));
|
|
7395
7395
|
}
|
|
7396
7396
|
c(!1);
|
|
7397
7397
|
}, l = () => {
|
|
@@ -7453,10 +7453,10 @@ const hI = ({ transaction: A }) => {
|
|
|
7453
7453
|
const u = { ...A, expectedDate: d };
|
|
7454
7454
|
if (A.activityType === TA.Expense) {
|
|
7455
7455
|
const H = n.find((b) => b.guid === A.scheduledPaymentGuid);
|
|
7456
|
-
H && await o(
|
|
7456
|
+
H && await o(PI(u, H));
|
|
7457
7457
|
} else {
|
|
7458
7458
|
const H = i.find((b) => b.guid === A.sequenceGuid);
|
|
7459
|
-
H && await r(
|
|
7459
|
+
H && await r(uI(u, H));
|
|
7460
7460
|
}
|
|
7461
7461
|
c(!1);
|
|
7462
7462
|
};
|
|
@@ -7607,7 +7607,7 @@ const hI = ({ transaction: A }) => {
|
|
|
7607
7607
|
gridColumn: 1,
|
|
7608
7608
|
zIndex: 2
|
|
7609
7609
|
}, Si = (A) => A ? { margin: "0 0 -6px -4px" } : void 0, Fn = ({ isOffset: A = !1, size: t = 16 }) => /* @__PURE__ */ e(ft, { size: t, sx: { ...Si(A) }, children: /* @__PURE__ */ e(zs, { color: "primary", sx: { fontSize: t, ...Bi } }) }), Wn = ({ isOffset: A = !1, size: t = 16 }) => /* @__PURE__ */ e(ft, { size: t, sx: { ...Si(A) }, children: /* @__PURE__ */ e(Cs, { sx: { color: "categories.income", fontSize: t, ...Bi } }) }), kn = ({ isOffset: A = !1, size: t = 16 }) => /* @__PURE__ */ e(ft, { size: t, sx: { ...Si(A) }, children: /* @__PURE__ */ e(Ri, { color: "error", sx: { fontSize: t, ...Bi } }) }), Kn = ({ isOffset: A = !1, size: t = 16 }) => /* @__PURE__ */ e(ft, { size: t, sx: { ...Si(A) }, children: /* @__PURE__ */ e(Oi, { color: "success", sx: { fontSize: t, ...Bi } }) }), Fr = ({ copy: A, date: t, type: i }) => {
|
|
7610
|
-
let n = t &&
|
|
7610
|
+
let n = t && qo(t) ? z(A.monthly_ordinal, le(t, "do")) : A.monthly;
|
|
7611
7611
|
switch (i) {
|
|
7612
7612
|
case U.EveryQuarter:
|
|
7613
7613
|
n = t ? z(A.quarterly_ordinal, le(t, "do")) : A.quarterly;
|
|
@@ -7760,7 +7760,7 @@ const hI = ({ transaction: A }) => {
|
|
|
7760
7760
|
}
|
|
7761
7761
|
)
|
|
7762
7762
|
] });
|
|
7763
|
-
}, Xi = C($d),
|
|
7763
|
+
}, Xi = C($d), bI = (A, t, i) => {
|
|
7764
7764
|
const n = {
|
|
7765
7765
|
account_guid: A.account_guid,
|
|
7766
7766
|
amount: A.amount,
|
|
@@ -7794,7 +7794,7 @@ const hI = ({ transaction: A }) => {
|
|
|
7794
7794
|
break;
|
|
7795
7795
|
}
|
|
7796
7796
|
return n;
|
|
7797
|
-
},
|
|
7797
|
+
}, HI = (A, t) => ({
|
|
7798
7798
|
amount: t.amount,
|
|
7799
7799
|
cashflow_sequence_guid: A.guid,
|
|
7800
7800
|
category_guid: t.category_guid,
|
|
@@ -7851,7 +7851,7 @@ const hI = ({ transaction: A }) => {
|
|
|
7851
7851
|
),
|
|
7852
7852
|
/* @__PURE__ */ e(Rt, { bgcolor: A, height: "auto", onClick: n, showLoader: !1 })
|
|
7853
7853
|
] });
|
|
7854
|
-
},
|
|
7854
|
+
}, zI = C(eE), tE = ({
|
|
7855
7855
|
bgcolor: A = "background.default",
|
|
7856
7856
|
frequency: t,
|
|
7857
7857
|
isIncome: i,
|
|
@@ -7889,7 +7889,7 @@ const hI = ({ transaction: A }) => {
|
|
|
7889
7889
|
o(tc(E));
|
|
7890
7890
|
break;
|
|
7891
7891
|
case U.EveryQuarter:
|
|
7892
|
-
o(
|
|
7892
|
+
o(ko(E));
|
|
7893
7893
|
break;
|
|
7894
7894
|
case U.EveryOtherQuarter:
|
|
7895
7895
|
o(ic(E));
|
|
@@ -7934,7 +7934,7 @@ const hI = ({ transaction: A }) => {
|
|
|
7934
7934
|
}
|
|
7935
7935
|
) })
|
|
7936
7936
|
] });
|
|
7937
|
-
},
|
|
7937
|
+
}, CI = C(tE), Pn = (A) => A.top_level_category_guid !== g.INCOME && A.transaction_type === se.DEBIT, iE = (A, t) => Pn(A) ? A.payee?.toLowerCase().includes(t.toLowerCase()) || A.description.toLowerCase().includes(t.toLowerCase()) || A.feed_description.toLowerCase().includes(t.toLowerCase()) : !1, ii = (A) => A.top_level_category_guid === g.INCOME || A.top_level_category_guid === g.TRANSFER && A.transaction_type === se.CREDIT, gI = (A, t) => ii(A) ? A.payee?.toLowerCase().includes(t.toLowerCase()) || A.description?.toLowerCase().includes(t.toLowerCase()) || A.feed_description?.toLowerCase().includes(t.toLowerCase()) : !1, nE = ({
|
|
7938
7938
|
isIncome: A = !1,
|
|
7939
7939
|
label: t,
|
|
7940
7940
|
onAddActivity: i = () => null
|
|
@@ -7950,9 +7950,9 @@ const hI = ({ transaction: A }) => {
|
|
|
7950
7950
|
return;
|
|
7951
7951
|
}
|
|
7952
7952
|
if (A) {
|
|
7953
|
-
const j =
|
|
7953
|
+
const j = bI(y, u, b), m = await o(j);
|
|
7954
7954
|
if (m) {
|
|
7955
|
-
const O =
|
|
7955
|
+
const O = HI(m, y);
|
|
7956
7956
|
await r(O);
|
|
7957
7957
|
}
|
|
7958
7958
|
} else {
|
|
@@ -7980,13 +7980,13 @@ const hI = ({ transaction: A }) => {
|
|
|
7980
7980
|
onClose: () => E(!1),
|
|
7981
7981
|
title: t,
|
|
7982
7982
|
children: /* @__PURE__ */ e(
|
|
7983
|
-
|
|
7983
|
+
zI,
|
|
7984
7984
|
{
|
|
7985
7985
|
description: A ? n.add_income_description : n.add_expense_description,
|
|
7986
7986
|
onSearch: (j) => {
|
|
7987
7987
|
c({
|
|
7988
7988
|
...a,
|
|
7989
|
-
custom: (m) => A ? j ?
|
|
7989
|
+
custom: (m) => A ? j ? gI(m, j) : ii(m) : j ? iE(m, j) : Pn(m)
|
|
7990
7990
|
});
|
|
7991
7991
|
},
|
|
7992
7992
|
onSelected: (j) => v(j)
|
|
@@ -8003,7 +8003,7 @@ const hI = ({ transaction: A }) => {
|
|
|
8003
8003
|
onPrimaryAction: w,
|
|
8004
8004
|
title: A ? n.income_details : n.expense_details,
|
|
8005
8005
|
children: y && /* @__PURE__ */ e(
|
|
8006
|
-
|
|
8006
|
+
CI,
|
|
8007
8007
|
{
|
|
8008
8008
|
frequency: u,
|
|
8009
8009
|
isIncome: A,
|
|
@@ -8016,14 +8016,14 @@ const hI = ({ transaction: A }) => {
|
|
|
8016
8016
|
}
|
|
8017
8017
|
)
|
|
8018
8018
|
] });
|
|
8019
|
-
},
|
|
8019
|
+
}, XI = C(nE), rE = (A, t, i) => t.map((n) => {
|
|
8020
8020
|
const r = i.find((I) => I.scheduled_payment_guid === n.guid), o = A.find((I) => I.guid === r?.account_guid);
|
|
8021
8021
|
return {
|
|
8022
8022
|
activityStatus: SA.Upcoming,
|
|
8023
8023
|
activityType: TA.Expense,
|
|
8024
8024
|
amount: n.amount,
|
|
8025
8025
|
categoryGuid: r?.category_guid,
|
|
8026
|
-
expectedDate:
|
|
8026
|
+
expectedDate: Oo(n.occurs_on),
|
|
8027
8027
|
name: n.description,
|
|
8028
8028
|
institution: o?.user_name,
|
|
8029
8029
|
institutionGuid: o?.institution_guid,
|
|
@@ -8045,7 +8045,7 @@ const hI = ({ transaction: A }) => {
|
|
|
8045
8045
|
/* @__PURE__ */ e(Xi, { activity: c, onActivityClick: I, showOrdinal: !0 }),
|
|
8046
8046
|
/* @__PURE__ */ e(G, { variant: d < o.length - 1 ? "inset" : "fullWidth" })
|
|
8047
8047
|
] }, c.scheduledPaymentGuid)),
|
|
8048
|
-
/* @__PURE__ */ e(
|
|
8048
|
+
/* @__PURE__ */ e(XI, { label: A.add_expense, onAddActivity: a })
|
|
8049
8049
|
] });
|
|
8050
8050
|
}, IE = C(oE), bn = (A) => {
|
|
8051
8051
|
let t = A.user_name || A.feed_name || "";
|
|
@@ -8110,7 +8110,7 @@ const hI = ({ transaction: A }) => {
|
|
|
8110
8110
|
}, sE = (A, t, i) => {
|
|
8111
8111
|
const n = [], r = i.find((v) => v.scheduled_payment_guid === t.guid);
|
|
8112
8112
|
if (!r) return [];
|
|
8113
|
-
const o = A.find((v) => v.guid === r?.account_guid), I =
|
|
8113
|
+
const o = A.find((v) => v.guid === r?.account_guid), I = Oo(t.occurs_on), a = {
|
|
8114
8114
|
accountGuid: o?.guid,
|
|
8115
8115
|
activityStatus: SA.Upcoming,
|
|
8116
8116
|
activityType: TA.Expense,
|
|
@@ -8246,7 +8246,7 @@ const hI = ({ transaction: A }) => {
|
|
|
8246
8246
|
/* @__PURE__ */ e(Xi, { activity: f, onActivityClick: c, showOrdinal: !0 }),
|
|
8247
8247
|
/* @__PURE__ */ e(G, { variant: E < a.length - 1 ? "inset" : "fullWidth" })
|
|
8248
8248
|
] }, f.sequenceGuid)),
|
|
8249
|
-
/* @__PURE__ */ e(
|
|
8249
|
+
/* @__PURE__ */ e(XI, { isIncome: !0, label: A.add_income, onAddActivity: d })
|
|
8250
8250
|
] });
|
|
8251
8251
|
}, Zn = C(fE), dE = () => {
|
|
8252
8252
|
const [A, t] = h.useState(0), { onEvent: i } = K(), { recurring: n } = X();
|
|
@@ -8271,7 +8271,7 @@ const hI = ({ transaction: A }) => {
|
|
|
8271
8271
|
A === 0 && /* @__PURE__ */ e(IE, {}),
|
|
8272
8272
|
A === 1 && /* @__PURE__ */ e(Zn, {})
|
|
8273
8273
|
] });
|
|
8274
|
-
},
|
|
8274
|
+
}, pI = C(dE), Ut = (A, t) => A + t.amount, An = (A) => A.activityType === TA.Income && mt(A.expectedDate, {
|
|
8275
8275
|
start: QA(fA()),
|
|
8276
8276
|
end: BA(fA())
|
|
8277
8277
|
}), di = (A) => A.activityType === TA.Expense && mt(A.expectedDate, {
|
|
@@ -8297,7 +8297,7 @@ const hI = ({ transaction: A }) => {
|
|
|
8297
8297
|
(u) => u.activityType === TA.Expense && u.activityStatus === SA.Paid
|
|
8298
8298
|
), l = c.some((u) => u.activityType === TA.Income), v = (d ? 1 : 0) + (f ? 1 : 0) + (E ? 1 : 0) + (l ? 1 : 0);
|
|
8299
8299
|
return /* @__PURE__ */ e(
|
|
8300
|
-
|
|
8300
|
+
Qo,
|
|
8301
8301
|
{
|
|
8302
8302
|
badgeContent: c.length > 0 && /* @__PURE__ */ s(Z, { children: [
|
|
8303
8303
|
f && /* @__PURE__ */ e(kn, { isOffset: !0 }),
|
|
@@ -8414,7 +8414,7 @@ const hI = ({ transaction: A }) => {
|
|
|
8414
8414
|
!i && I,
|
|
8415
8415
|
/* @__PURE__ */ e(vE, {})
|
|
8416
8416
|
] }) });
|
|
8417
|
-
},
|
|
8417
|
+
}, wI = C(RE), uE = (A) => A.reduce((t, i) => {
|
|
8418
8418
|
const n = i.expectedDate.toISOString().split("T")[0], r = t.find(
|
|
8419
8419
|
(o) => o.expectedDate.toString() === i.expectedDate.toString()
|
|
8420
8420
|
);
|
|
@@ -8582,7 +8582,7 @@ const hI = ({ transaction: A }) => {
|
|
|
8582
8582
|
] })
|
|
8583
8583
|
] }) }),
|
|
8584
8584
|
!i && !t && /* @__PURE__ */ e(tt, { sx: { minWidth: 450 }, xs: "auto", children: /* @__PURE__ */ s(P, { gap: 35, children: [
|
|
8585
|
-
/* @__PURE__ */ e(
|
|
8585
|
+
/* @__PURE__ */ e(wI, {}),
|
|
8586
8586
|
/* @__PURE__ */ e(
|
|
8587
8587
|
kt,
|
|
8588
8588
|
{
|
|
@@ -8639,7 +8639,7 @@ const hI = ({ transaction: A }) => {
|
|
|
8639
8639
|
onClose: () => E(!1),
|
|
8640
8640
|
shouldShowHeaderBorders: !1,
|
|
8641
8641
|
title: n.settings,
|
|
8642
|
-
children: /* @__PURE__ */ e(
|
|
8642
|
+
children: /* @__PURE__ */ e(pI, {})
|
|
8643
8643
|
}
|
|
8644
8644
|
)
|
|
8645
8645
|
]
|
|
@@ -8653,7 +8653,7 @@ const hI = ({ transaction: A }) => {
|
|
|
8653
8653
|
[t, o]
|
|
8654
8654
|
), { availableWidth: a } = Xt(), c = a < 750;
|
|
8655
8655
|
return /* @__PURE__ */ s(P, { flexDirection: c ? "column" : "row", width: "100%", children: [
|
|
8656
|
-
/* @__PURE__ */ e(
|
|
8656
|
+
/* @__PURE__ */ e(wI, {}),
|
|
8657
8657
|
!c && /* @__PURE__ */ e(G, { flexItem: !0, orientation: "vertical", sx: { my: 16, ml: 16 } }),
|
|
8658
8658
|
/* @__PURE__ */ e(
|
|
8659
8659
|
kt,
|
|
@@ -8917,7 +8917,7 @@ const yE = {
|
|
|
8917
8917
|
const n = Object.keys(_).filter((r) => Number(r)).map((r) => ({
|
|
8918
8918
|
label: t.account_types[r],
|
|
8919
8919
|
value: Number(r),
|
|
8920
|
-
icon: /* @__PURE__ */ e(q, { name:
|
|
8920
|
+
icon: /* @__PURE__ */ e(q, { name: So[r] })
|
|
8921
8921
|
}));
|
|
8922
8922
|
i.push({
|
|
8923
8923
|
label: t.account_type,
|
|
@@ -8929,7 +8929,7 @@ const yE = {
|
|
|
8929
8929
|
});
|
|
8930
8930
|
}
|
|
8931
8931
|
if (A.account_type === _.PROPERTY) {
|
|
8932
|
-
const n = Object.keys(
|
|
8932
|
+
const n = Object.keys(To).filter((r) => Number(r)).map((r) => ({
|
|
8933
8933
|
label: t.property_types[r],
|
|
8934
8934
|
value: Number(r),
|
|
8935
8935
|
icon: /* @__PURE__ */ e(q, { name: Ss[r] })
|
|
@@ -8976,7 +8976,7 @@ const yE = {
|
|
|
8976
8976
|
type: de.Date,
|
|
8977
8977
|
valueFormatter: (n) => z(
|
|
8978
8978
|
t.day_of_every_month,
|
|
8979
|
-
|
|
8979
|
+
Wo(n <= 31 ? n : new Date(n).getDate())
|
|
8980
8980
|
)
|
|
8981
8981
|
})), jE(A) && i.push({
|
|
8982
8982
|
label: t.credit_limit,
|
|
@@ -8992,7 +8992,7 @@ const yE = {
|
|
|
8992
8992
|
type: de.Currency,
|
|
8993
8993
|
valueFormatter: (n) => M(n, "0,0.00")
|
|
8994
8994
|
}), i;
|
|
8995
|
-
},
|
|
8995
|
+
}, yI = (A, t) => {
|
|
8996
8996
|
let i = "", n = null, r = null, o = null, I = !1;
|
|
8997
8997
|
switch (A.account_type) {
|
|
8998
8998
|
case 1:
|
|
@@ -9023,7 +9023,7 @@ const yE = {
|
|
|
9023
9023
|
listItemProps: i,
|
|
9024
9024
|
shouldShowConnectionStatus: n = !1
|
|
9025
9025
|
}) => {
|
|
9026
|
-
const { accounts: r } = X(), { firstSubtitle: o, firstValue: I, secondSubtitle: a, secondValue: c } =
|
|
9026
|
+
const { accounts: r } = X(), { firstSubtitle: o, firstValue: I, secondSubtitle: a, secondValue: c } = yI(
|
|
9027
9027
|
A,
|
|
9028
9028
|
r
|
|
9029
9029
|
);
|
|
@@ -9031,7 +9031,7 @@ const yE = {
|
|
|
9031
9031
|
(A.connectionStatus === bt.Error || A.connectionStatus === bt.RequiresMfa) && (d = /* @__PURE__ */ e(xE, { size: 16 }));
|
|
9032
9032
|
const f = /* @__PURE__ */ s(Z, { children: [
|
|
9033
9033
|
/* @__PURE__ */ e(xA, { children: /* @__PURE__ */ e(
|
|
9034
|
-
|
|
9034
|
+
Qo,
|
|
9035
9035
|
{
|
|
9036
9036
|
badgeContent: n ? d : void 0,
|
|
9037
9037
|
sx: {
|
|
@@ -9697,13 +9697,13 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9697
9697
|
if (!(m.length < 1)) {
|
|
9698
9698
|
y(!0);
|
|
9699
9699
|
for (let cA = 0; cA < m.length; cA++) {
|
|
9700
|
-
const jA = m[cA], WA =
|
|
9700
|
+
const jA = m[cA], WA = bI(
|
|
9701
9701
|
jA,
|
|
9702
9702
|
jA.frequency,
|
|
9703
9703
|
jA.nextDate
|
|
9704
9704
|
), fe = await t(WA);
|
|
9705
9705
|
if (fe) {
|
|
9706
|
-
const Ie =
|
|
9706
|
+
const Ie = HI(fe, jA);
|
|
9707
9707
|
await A(Ie);
|
|
9708
9708
|
}
|
|
9709
9709
|
}
|
|
@@ -9772,12 +9772,12 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9772
9772
|
] })
|
|
9773
9773
|
] }),
|
|
9774
9774
|
uA && /* @__PURE__ */ e(
|
|
9775
|
-
|
|
9775
|
+
zI,
|
|
9776
9776
|
{
|
|
9777
9777
|
bgcolor: "background.paper",
|
|
9778
9778
|
onSearch: (cA) => f({
|
|
9779
9779
|
...d,
|
|
9780
|
-
custom: (jA) => cA ?
|
|
9780
|
+
custom: (jA) => cA ? gI(jA, cA) : ii(jA)
|
|
9781
9781
|
}),
|
|
9782
9782
|
onSelected: (cA) => {
|
|
9783
9783
|
tA(cA), u(!1);
|
|
@@ -9787,7 +9787,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9787
9787
|
!iA && I && /* @__PURE__ */ e(HA, { color: "error", mt: 16, children: n.confirm_error }),
|
|
9788
9788
|
Y && /* @__PURE__ */ s(Z, { children: [
|
|
9789
9789
|
/* @__PURE__ */ e(
|
|
9790
|
-
|
|
9790
|
+
CI,
|
|
9791
9791
|
{
|
|
9792
9792
|
bgcolor: "background.paper",
|
|
9793
9793
|
frequency: H,
|
|
@@ -9902,7 +9902,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9902
9902
|
onClose: () => H(!1),
|
|
9903
9903
|
shouldShowHeaderBorders: !1,
|
|
9904
9904
|
title: v.cashflow_settings,
|
|
9905
|
-
children: /* @__PURE__ */ e(
|
|
9905
|
+
children: /* @__PURE__ */ e(pI, {})
|
|
9906
9906
|
}
|
|
9907
9907
|
)
|
|
9908
9908
|
]
|
|
@@ -9993,7 +9993,7 @@ class rh {
|
|
|
9993
9993
|
});
|
|
9994
9994
|
}
|
|
9995
9995
|
var Te = /* @__PURE__ */ ((A) => (A[A.HIGHEST_INTEREST = 1] = "HIGHEST_INTEREST", A[A.LOWEST_BALANCE = 2] = "LOWEST_BALANCE", A[A.HIGHEST_BALANCE = 3] = "HIGHEST_BALANCE", A))(Te || {});
|
|
9996
|
-
const
|
|
9996
|
+
const xI = (A, t) => {
|
|
9997
9997
|
const i = A.filter((r) => !r.is_paid_off && !r.is_impossible), n = A.filter((r) => r.is_paid_off || r.is_impossible);
|
|
9998
9998
|
switch (t) {
|
|
9999
9999
|
case Te.HIGHEST_INTEREST:
|
|
@@ -10014,7 +10014,7 @@ function oh(A, t, i = 0) {
|
|
|
10014
10014
|
const n = A.map((f) => ({ ...f })).filter(
|
|
10015
10015
|
(f) => f.interest_rate !== void 0 && f.monthly_payment !== void 0 && !f.is_paid_off
|
|
10016
10016
|
);
|
|
10017
|
-
|
|
10017
|
+
xI(n, t);
|
|
10018
10018
|
let r = 0, o = 0;
|
|
10019
10019
|
const I = /* @__PURE__ */ new Date(), a = /* @__PURE__ */ new Date();
|
|
10020
10020
|
for (; n.some((f) => f.balance >= 0.01 && !f.is_impossible); ) {
|
|
@@ -10462,7 +10462,7 @@ const ke = () => {
|
|
|
10462
10462
|
if (!h.useContext(gt))
|
|
10463
10463
|
throw new Error("useCategoryUiStore() must be used within the GlobalDataContext");
|
|
10464
10464
|
return CA().uiStore;
|
|
10465
|
-
}, Fi = (A) => A.top_level_category_guid === g.INCOME || A.category_guid === g.INCOME, fh = (A) => !Fi(A) && !
|
|
10465
|
+
}, Fi = (A) => A.top_level_category_guid === g.INCOME || A.category_guid === g.INCOME, fh = (A) => !Fi(A) && !jI(A), DI = (A) => ur.includes(A.top_level_category_guid) || ur.includes(A.category_guid), jI = (A) => A.top_level_category_guid === g.TRANSFER || A.category_guid === g.TRANSFER, dh = (A) => !Fi(A) && !DI(A) && !jI(A), Eh = (A) => A.filter((t) => t.category_guid === t.top_level_category_guid), _n = (A, t) => {
|
|
10466
10466
|
const i = [];
|
|
10467
10467
|
let n = QA(Ne(/* @__PURE__ */ new Date(), 5));
|
|
10468
10468
|
const r = /* @__PURE__ */ new Date();
|
|
@@ -10476,7 +10476,7 @@ const ke = () => {
|
|
|
10476
10476
|
const i = A.filter(Fi);
|
|
10477
10477
|
return _n(i).map((n) => ({ ...n, y: Math.abs(n.y) }));
|
|
10478
10478
|
}, lh = (A, t) => {
|
|
10479
|
-
const i = A.filter(
|
|
10479
|
+
const i = A.filter(DI);
|
|
10480
10480
|
return _n(i).map((n) => ({ ...n, y: Math.abs(n.y) }));
|
|
10481
10481
|
}, vh = (A, t) => {
|
|
10482
10482
|
const i = A.filter(dh);
|
|
@@ -10552,7 +10552,7 @@ const ke = () => {
|
|
|
10552
10552
|
}
|
|
10553
10553
|
);
|
|
10554
10554
|
}, Ch = C(zh), gh = ({ customDetailsChart: A }) => {
|
|
10555
|
-
const { institutions: t } = CA(), { selectedAccount: i } = Xe(), { accounts: n } = X(), { firstSubtitle: r, firstValue: o, hasAvailableBalance: I, secondSubtitle: a, secondValue: c } =
|
|
10555
|
+
const { institutions: t } = CA(), { selectedAccount: i } = Xe(), { accounts: n } = X(), { firstSubtitle: r, firstValue: o, hasAvailableBalance: I, secondSubtitle: a, secondValue: c } = yI(i, n), d = t.find(
|
|
10556
10556
|
(E) => E.guid === i?.institution_guid
|
|
10557
10557
|
), f = [
|
|
10558
10558
|
...Ln,
|
|
@@ -10593,7 +10593,7 @@ function ph(A, t) {
|
|
|
10593
10593
|
];
|
|
10594
10594
|
return `rgb(${o[0]}, ${o[1]}, ${o[2]})`;
|
|
10595
10595
|
}
|
|
10596
|
-
const
|
|
10596
|
+
const mI = ({
|
|
10597
10597
|
sx: A,
|
|
10598
10598
|
height: t = 500,
|
|
10599
10599
|
width: i,
|
|
@@ -10648,7 +10648,7 @@ const OI = ({
|
|
|
10648
10648
|
});
|
|
10649
10649
|
const p = (w) => b.findIndex((D) => D?.guid === w);
|
|
10650
10650
|
return /* @__PURE__ */ e(
|
|
10651
|
-
|
|
10651
|
+
yo,
|
|
10652
10652
|
{
|
|
10653
10653
|
axisHighlight: { x: "none" },
|
|
10654
10654
|
disableLineItemHighlight: !0,
|
|
@@ -10729,7 +10729,7 @@ const OI = ({
|
|
|
10729
10729
|
},
|
|
10730
10730
|
children: [
|
|
10731
10731
|
/* @__PURE__ */ e(rt, { sx: { pb: 0 }, title: /* @__PURE__ */ e(ne, { sx: { pb: 4 }, children: t.details_chart_title }) }),
|
|
10732
|
-
/* @__PURE__ */ e(Ce, { sx: { p: 0 }, children: /* @__PURE__ */ e(
|
|
10732
|
+
/* @__PURE__ */ e(Ce, { sx: { p: 0 }, children: /* @__PURE__ */ e(mI, { debts: [i], height: 250 }) })
|
|
10733
10733
|
]
|
|
10734
10734
|
}
|
|
10735
10735
|
),
|
|
@@ -10807,7 +10807,7 @@ const OI = ({
|
|
|
10807
10807
|
}
|
|
10808
10808
|
) })
|
|
10809
10809
|
] }) });
|
|
10810
|
-
}, Dh = C(xh),
|
|
10810
|
+
}, Dh = C(xh), OI = C(({ goal: A }) => {
|
|
10811
10811
|
const { goals: t } = X(), { setAlert: i, setSelectedGoal: n, updateGoal: r } = FA(), [o, I] = h.useState(A.interest_rate ?? 0), a = !A.guid, c = o < 0, d = async () => {
|
|
10812
10812
|
const E = { ...A, interest_rate: o };
|
|
10813
10813
|
A.interest_rate = o, a ? n(E) : (await r(E), i(t.alert_goal_updated_interest_rate));
|
|
@@ -10840,7 +10840,7 @@ const OI = ({
|
|
|
10840
10840
|
)
|
|
10841
10841
|
}
|
|
10842
10842
|
);
|
|
10843
|
-
}),
|
|
10843
|
+
}), LI = C(({ goal: A }) => {
|
|
10844
10844
|
const { goals: t } = X(), { setAlert: i, setSelectedGoal: n, updateGoal: r } = FA(), [o, I] = h.useState(A.monthly_payment ?? 0), a = !A.guid, c = o < 0 || o > 9999999999e-2, d = async () => {
|
|
10845
10845
|
const E = { ...A, monthly_payment: o };
|
|
10846
10846
|
A.monthly_payment = o, a ? n(E) : (await r({ ...A, monthly_payment: o }), i(t.alert_goal_updated_payment));
|
|
@@ -10874,7 +10874,7 @@ const OI = ({
|
|
|
10874
10874
|
)
|
|
10875
10875
|
}
|
|
10876
10876
|
);
|
|
10877
|
-
}),
|
|
10877
|
+
}), QI = C(({ goal: A }) => {
|
|
10878
10878
|
const { goals: t } = X(), { setAlert: i, setSelectedGoal: n, updateGoal: r } = FA(), [o, I] = h.useState(A.initial_amount), a = !A.guid, c = o < 0 || o > 9999999999e-2, d = async () => {
|
|
10879
10879
|
const E = { ...A, initial_amount: o };
|
|
10880
10880
|
A.initial_amount = o, a ? n(E) : (await r({ ...A, initial_amount: o }), i(t.alert_goal_updated_balance));
|
|
@@ -11006,11 +11006,11 @@ const OI = ({
|
|
|
11006
11006
|
const { onEvent: A } = K(), { selectedDebtChartData: t } = ke();
|
|
11007
11007
|
return h.useEffect(() => A(V.DEBT_DETAILS_VIEW), []), /* @__PURE__ */ s(P, { bgcolor: "background.paper", children: [
|
|
11008
11008
|
t?.goal && /* @__PURE__ */ s(Z, { children: [
|
|
11009
|
-
/* @__PURE__ */ e(QI, { goal: t.goal }),
|
|
11010
|
-
/* @__PURE__ */ e(G, {}),
|
|
11011
11009
|
/* @__PURE__ */ e(LI, { goal: t.goal }),
|
|
11012
11010
|
/* @__PURE__ */ e(G, {}),
|
|
11013
|
-
/* @__PURE__ */ e(
|
|
11011
|
+
/* @__PURE__ */ e(OI, { goal: t.goal }),
|
|
11012
|
+
/* @__PURE__ */ e(G, {}),
|
|
11013
|
+
/* @__PURE__ */ e(QI, { goal: t.goal }),
|
|
11014
11014
|
/* @__PURE__ */ e(G, {})
|
|
11015
11015
|
] }),
|
|
11016
11016
|
!t?.goal && t?.account && /* @__PURE__ */ s(Z, { children: [
|
|
@@ -11435,7 +11435,7 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
|
|
|
11435
11435
|
o(d), i(V.DEBTS_CLICK_PRIORITY, { debts_priority: d });
|
|
11436
11436
|
};
|
|
11437
11437
|
return /* @__PURE__ */ e(
|
|
11438
|
-
|
|
11438
|
+
wo,
|
|
11439
11439
|
{
|
|
11440
11440
|
anchorEl: A,
|
|
11441
11441
|
anchorOrigin: {
|
|
@@ -11492,7 +11492,7 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
|
|
|
11492
11492
|
] });
|
|
11493
11493
|
}), Al = (A, t, i = 0) => {
|
|
11494
11494
|
const n = A.map((c) => ({ ...c }));
|
|
11495
|
-
|
|
11495
|
+
xI(n, t);
|
|
11496
11496
|
const r = /* @__PURE__ */ new Date(), o = [];
|
|
11497
11497
|
let I = 0, a = 1;
|
|
11498
11498
|
for (const c of n)
|
|
@@ -11585,7 +11585,7 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
|
|
|
11585
11585
|
},
|
|
11586
11586
|
children: [
|
|
11587
11587
|
/* @__PURE__ */ e(
|
|
11588
|
-
|
|
11588
|
+
mI,
|
|
11589
11589
|
{
|
|
11590
11590
|
debts: m,
|
|
11591
11591
|
height: E ? 250 : void 0,
|
|
@@ -11840,7 +11840,7 @@ const cl = (A, t) => {
|
|
|
11840
11840
|
}, fl = (A, t) => t ? M(A, A < 1e3 ? "0" : "0.00a").replace(
|
|
11841
11841
|
/(\d+)(?:\.0+|(\.\d*?[1-9])0*)([a-zA-Z]* ?\$?)/g,
|
|
11842
11842
|
"$1$2$3"
|
|
11843
|
-
) : M(A, "0,0.00"),
|
|
11843
|
+
) : M(A, "0,0.00"), qI = C(
|
|
11844
11844
|
({ goal: A, isInDrawer: t = !1, onClick: i }) => {
|
|
11845
11845
|
const { goals: n } = X(), { isMobile: r, isTablet: o } = zA(), I = r || o, {
|
|
11846
11846
|
backgroundColor: a,
|
|
@@ -11855,7 +11855,7 @@ const cl = (A, t) => {
|
|
|
11855
11855
|
}
|
|
11856
11856
|
];
|
|
11857
11857
|
let u = /* @__PURE__ */ e(Ka, {});
|
|
11858
|
-
return A.track_type === B.DEBT_TRACK ? u = /* @__PURE__ */ e(Za, {}) : A.track_type === B.RETIREMENT_TRACK && (u = /* @__PURE__ */ e(Ja, {})), /* @__PURE__ */ e(ze, { elevation: 2, sx: { borderRadius: 2 }, children: /* @__PURE__ */ s(
|
|
11858
|
+
return A.track_type === B.DEBT_TRACK ? u = /* @__PURE__ */ e(Za, {}) : A.track_type === B.RETIREMENT_TRACK && (u = /* @__PURE__ */ e(Ja, {})), /* @__PURE__ */ e(ze, { elevation: 2, sx: { borderRadius: 2 }, children: /* @__PURE__ */ s(Go, { disabled: !i, onClick: i, children: [
|
|
11859
11859
|
/* @__PURE__ */ e(
|
|
11860
11860
|
rt,
|
|
11861
11861
|
{
|
|
@@ -12122,7 +12122,7 @@ const cl = (A, t) => {
|
|
|
12122
12122
|
] }),
|
|
12123
12123
|
a.length > 0 ? /* @__PURE__ */ e(tt, { container: !0, spacing: 24, children: a.map((f, E, l) => (
|
|
12124
12124
|
// Goal should be full width in mobile or if it's the first goal (unless there are 2)
|
|
12125
|
-
/* @__PURE__ */ e(tt, { xs: i || E === 0 && l.length !== 2 ? 12 : 6, children: /* @__PURE__ */ e(
|
|
12125
|
+
/* @__PURE__ */ e(tt, { xs: i || E === 0 && l.length !== 2 ? 12 : 6, children: /* @__PURE__ */ e(qI, { goal: f, onClick: () => o(f) }, f.guid) }, E)
|
|
12126
12126
|
)) }) : /* @__PURE__ */ s(
|
|
12127
12127
|
P,
|
|
12128
12128
|
{
|
|
@@ -12141,7 +12141,7 @@ const cl = (A, t) => {
|
|
|
12141
12141
|
A !== B.RETIREMENT_TRACK && /* @__PURE__ */ s(P, { gap: 16, mt: 48, children: [
|
|
12142
12142
|
/* @__PURE__ */ e(R, { color: "text.secondary", variant: "Small", children: n.complete_title }),
|
|
12143
12143
|
c.length === 0 && /* @__PURE__ */ e(P, { alignItems: "center", bgcolor: "background.default", borderRadius: 2, py: 18, children: /* @__PURE__ */ e(HA, { sx: { color: "text.secondary" }, variant: "Small", children: d }) }),
|
|
12144
|
-
c.map((f) => /* @__PURE__ */ e(ze, { elevation: 2, sx: { borderRadius: 2 }, children: /* @__PURE__ */ e(
|
|
12144
|
+
c.map((f) => /* @__PURE__ */ e(ze, { elevation: 2, sx: { borderRadius: 2 }, children: /* @__PURE__ */ e(Go, { onClick: () => o(f), children: /* @__PURE__ */ e(Ce, { sx: { ":last-child": { pb: 16 } }, children: /* @__PURE__ */ s(P, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
12145
12145
|
/* @__PURE__ */ s(P, { alignItems: "center", direction: "row", gap: 6, children: [
|
|
12146
12146
|
/* @__PURE__ */ e(q, { color: "success", fill: !0, name: "check_circle", size: 20 }),
|
|
12147
12147
|
/* @__PURE__ */ e(R, { color: "text.secondary", variant: "Body", children: f.name })
|
|
@@ -12182,7 +12182,7 @@ const cl = (A, t) => {
|
|
|
12182
12182
|
/* @__PURE__ */ e(ce, {})
|
|
12183
12183
|
] }) }, v)) }) })
|
|
12184
12184
|
] }) });
|
|
12185
|
-
},
|
|
12185
|
+
}, GI = ({
|
|
12186
12186
|
accounts: A,
|
|
12187
12187
|
isOpen: t,
|
|
12188
12188
|
onClose: i,
|
|
@@ -12227,7 +12227,7 @@ const cl = (A, t) => {
|
|
|
12227
12227
|
] }, f.guid))
|
|
12228
12228
|
] }),
|
|
12229
12229
|
/* @__PURE__ */ e(
|
|
12230
|
-
|
|
12230
|
+
II,
|
|
12231
12231
|
{
|
|
12232
12232
|
description: o.connect_description,
|
|
12233
12233
|
label: o.connect_button,
|
|
@@ -12269,7 +12269,7 @@ const cl = (A, t) => {
|
|
|
12269
12269
|
return /* @__PURE__ */ s(P, { children: [
|
|
12270
12270
|
/* @__PURE__ */ e(rA, { sx: { bgcolor: "background.paper" }, children: d.map((l, v) => /* @__PURE__ */ e(Rl, { goalType: l, onClick: f }, v)) }),
|
|
12271
12271
|
/* @__PURE__ */ e(
|
|
12272
|
-
|
|
12272
|
+
GI,
|
|
12273
12273
|
{
|
|
12274
12274
|
accounts: I.filter((l) => !n.find((v) => v.account_guid === l.guid)),
|
|
12275
12275
|
isOpen: a,
|
|
@@ -12279,7 +12279,7 @@ const cl = (A, t) => {
|
|
|
12279
12279
|
}
|
|
12280
12280
|
)
|
|
12281
12281
|
] });
|
|
12282
|
-
},
|
|
12282
|
+
}, MI = ({ account: A }) => {
|
|
12283
12283
|
const { accounts: t } = X(), { setSelectedAccount: i } = Xe(), [n, r] = h.useState(!1);
|
|
12284
12284
|
return /* @__PURE__ */ s(W, { sx: { bgcolor: "background.paper" }, children: [
|
|
12285
12285
|
/* @__PURE__ */ s(aA, { onClick: () => {
|
|
@@ -12303,7 +12303,7 @@ const cl = (A, t) => {
|
|
|
12303
12303
|
] }),
|
|
12304
12304
|
/* @__PURE__ */ e(IA, { isOpen: n, onClose: () => r(!1), title: t.account_details, children: /* @__PURE__ */ s(P, { children: [
|
|
12305
12305
|
/* @__PURE__ */ e($n, {}),
|
|
12306
|
-
/* @__PURE__ */ e(
|
|
12306
|
+
/* @__PURE__ */ e(SI, {})
|
|
12307
12307
|
] }) })
|
|
12308
12308
|
] });
|
|
12309
12309
|
}, Pl = C(({ goal: A }) => {
|
|
@@ -12348,7 +12348,7 @@ const cl = (A, t) => {
|
|
|
12348
12348
|
return /* @__PURE__ */ s(P, { children: [
|
|
12349
12349
|
c ? /* @__PURE__ */ e(W, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ s(aA, { onClick: () => f(!0), children: [
|
|
12350
12350
|
/* @__PURE__ */ e(eA, { children: /* @__PURE__ */ s(P, { alignItems: "center", color: "action.active", direction: "row", gap: 8, children: [
|
|
12351
|
-
/* @__PURE__ */ e(
|
|
12351
|
+
/* @__PURE__ */ e(jo, { filled: !0 }),
|
|
12352
12352
|
r.details_add_account
|
|
12353
12353
|
] }) }),
|
|
12354
12354
|
/* @__PURE__ */ e(ce, { color: "primary" })
|
|
@@ -12402,7 +12402,7 @@ const cl = (A, t) => {
|
|
|
12402
12402
|
/* @__PURE__ */ e(ce, {})
|
|
12403
12403
|
] }) }, l.guid)) }),
|
|
12404
12404
|
/* @__PURE__ */ e(
|
|
12405
|
-
|
|
12405
|
+
II,
|
|
12406
12406
|
{
|
|
12407
12407
|
description: r.connect_description,
|
|
12408
12408
|
label: r.connect_button,
|
|
@@ -12478,7 +12478,7 @@ const cl = (A, t) => {
|
|
|
12478
12478
|
);
|
|
12479
12479
|
}, Cl = C(({ goal: A }) => {
|
|
12480
12480
|
const { goals: t } = X(), { user: i, updateUser: n } = Ue(), { setAlert: r } = FA(), [o, I] = h.useState(yA(i.birthday ?? 0)), [a, c] = h.useState(null), d = A.is_complete, f = async () => {
|
|
12481
|
-
o &&
|
|
12481
|
+
o && qo(o) && (await n({ ...i, birthday: gA(o) }), r(t.alert_goal_updated_birthday));
|
|
12482
12482
|
};
|
|
12483
12483
|
return /* @__PURE__ */ e(
|
|
12484
12484
|
Ge,
|
|
@@ -12527,18 +12527,18 @@ const cl = (A, t) => {
|
|
|
12527
12527
|
};
|
|
12528
12528
|
return /* @__PURE__ */ s(P, { children: [
|
|
12529
12529
|
E.map((u) => /* @__PURE__ */ s(P, { children: [
|
|
12530
|
-
/* @__PURE__ */ e(
|
|
12530
|
+
/* @__PURE__ */ e(MI, { account: u }),
|
|
12531
12531
|
/* @__PURE__ */ e(G, {})
|
|
12532
12532
|
] }, u.guid)),
|
|
12533
12533
|
/* @__PURE__ */ e(W, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ s(aA, { onClick: () => d(!0), children: [
|
|
12534
12534
|
/* @__PURE__ */ e(eA, { children: /* @__PURE__ */ s(P, { alignItems: "center", color: "action.active", direction: "row", gap: 8, children: [
|
|
12535
|
-
/* @__PURE__ */ e(
|
|
12535
|
+
/* @__PURE__ */ e(jo, { filled: !0 }),
|
|
12536
12536
|
t.details_add_account
|
|
12537
12537
|
] }) }),
|
|
12538
12538
|
/* @__PURE__ */ e(ce, { color: "primary" })
|
|
12539
12539
|
] }) }),
|
|
12540
12540
|
/* @__PURE__ */ e(
|
|
12541
|
-
|
|
12541
|
+
GI,
|
|
12542
12542
|
{
|
|
12543
12543
|
accounts: l,
|
|
12544
12544
|
isOpen: c,
|
|
@@ -12557,7 +12557,7 @@ const cl = (A, t) => {
|
|
|
12557
12557
|
return A.track_type === B.DEBT_TRACK ? o = t.details_debt_title : A.track_type === B.RETIREMENT_TRACK && (o = t.details_retirement_title), /* @__PURE__ */ s(P, { children: [
|
|
12558
12558
|
/* @__PURE__ */ s(P, { mx: 24, children: [
|
|
12559
12559
|
/* @__PURE__ */ e(R, { color: "text.secondary", sx: { mb: 4, mt: 24 }, variant: "XSmall", children: o }),
|
|
12560
|
-
/* @__PURE__ */ e(
|
|
12560
|
+
/* @__PURE__ */ e(qI, { goal: A, isInDrawer: !0 }),
|
|
12561
12561
|
/* @__PURE__ */ e(R, { color: "text.secondary", sx: { mb: 4, mt: 24 }, variant: "XSmall", children: t.details_title })
|
|
12562
12562
|
] }),
|
|
12563
12563
|
/* @__PURE__ */ s(rA, { sx: { bgcolor: "background.paper" }, children: [
|
|
@@ -12568,11 +12568,11 @@ const cl = (A, t) => {
|
|
|
12568
12568
|
/* @__PURE__ */ e(G, { sx: { ml: r === B.RETIREMENT_TRACK ? 24 : 0 } })
|
|
12569
12569
|
] }),
|
|
12570
12570
|
A.track_type === B.DEBT_TRACK && /* @__PURE__ */ s(Z, { children: [
|
|
12571
|
-
/* @__PURE__ */ e(QI, { goal: A }),
|
|
12572
|
-
/* @__PURE__ */ e(G, { sx: { ml: 24 } }),
|
|
12573
12571
|
/* @__PURE__ */ e(LI, { goal: A }),
|
|
12574
12572
|
/* @__PURE__ */ e(G, { sx: { ml: 24 } }),
|
|
12575
|
-
/* @__PURE__ */ e(
|
|
12573
|
+
/* @__PURE__ */ e(OI, { goal: A }),
|
|
12574
|
+
/* @__PURE__ */ e(G, { sx: { ml: 24 } }),
|
|
12575
|
+
/* @__PURE__ */ e(QI, { goal: A }),
|
|
12576
12576
|
/* @__PURE__ */ e(G, { variant: "fullWidth" })
|
|
12577
12577
|
] }),
|
|
12578
12578
|
A.track_type === B.RETIREMENT_TRACK && /* @__PURE__ */ s(Z, { children: [
|
|
@@ -12584,7 +12584,7 @@ const cl = (A, t) => {
|
|
|
12584
12584
|
] }),
|
|
12585
12585
|
/* @__PURE__ */ e(R, { color: "text.secondary", sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: A.track_type === B.RETIREMENT_TRACK ? t.details_accounts : t.details_account }),
|
|
12586
12586
|
A.track_type !== B.RETIREMENT_TRACK && n && /* @__PURE__ */ s(Z, { children: [
|
|
12587
|
-
/* @__PURE__ */ e(
|
|
12587
|
+
/* @__PURE__ */ e(MI, { account: n }),
|
|
12588
12588
|
/* @__PURE__ */ e(G, {})
|
|
12589
12589
|
] }),
|
|
12590
12590
|
A.track_type === B.RETIREMENT_TRACK && /* @__PURE__ */ s(Z, { children: [
|
|
@@ -12651,7 +12651,7 @@ const cl = (A, t) => {
|
|
|
12651
12651
|
}
|
|
12652
12652
|
)
|
|
12653
12653
|
] });
|
|
12654
|
-
}),
|
|
12654
|
+
}), NI = ({
|
|
12655
12655
|
buttonText: A,
|
|
12656
12656
|
header: t,
|
|
12657
12657
|
icon: i,
|
|
@@ -12756,7 +12756,7 @@ const cl = (A, t) => {
|
|
|
12756
12756
|
}
|
|
12757
12757
|
),
|
|
12758
12758
|
iA ? /* @__PURE__ */ e(
|
|
12759
|
-
|
|
12759
|
+
NI,
|
|
12760
12760
|
{
|
|
12761
12761
|
buttonText: a.add_goals_button,
|
|
12762
12762
|
header: a.create_goals_header,
|
|
@@ -13242,7 +13242,7 @@ const ml = /^[ a-zA-ZÀ-ÿ0-9]+$/, Ol = 50, io = 65, Ll = ({
|
|
|
13242
13242
|
t(l);
|
|
13243
13243
|
}, d = async (l) => {
|
|
13244
13244
|
(!l || ml.test(l)) && l.length <= Ol && (a(l), await r(l));
|
|
13245
|
-
}, f = h.useRef(null), E =
|
|
13245
|
+
}, f = h.useRef(null), E = mo({
|
|
13246
13246
|
count: n.length,
|
|
13247
13247
|
getScrollElement: () => f.current,
|
|
13248
13248
|
estimateSize: () => io,
|
|
@@ -13321,13 +13321,13 @@ class Ql {
|
|
|
13321
13321
|
F(() => this.merchant = i);
|
|
13322
13322
|
};
|
|
13323
13323
|
}
|
|
13324
|
-
const
|
|
13324
|
+
const TI = 13, ql = (A, t) => A.filter((i) => {
|
|
13325
13325
|
const { is_closed: n, is_deleted: r, is_hidden: o, is_manual: I } = i;
|
|
13326
13326
|
return n || r || o ? !1 : I || !i.guid ? !0 : t.some((a) => A.some((c) => a.guid === c.member_guid));
|
|
13327
13327
|
}), Gl = (A, t) => [...A, ...t], ro = (A) => {
|
|
13328
13328
|
if (A && A.length > 0)
|
|
13329
13329
|
return A[A.length - 1];
|
|
13330
|
-
}, Ml = (A, t) => A.year_month - t.year_month, Nl = () => Array.from({ length:
|
|
13330
|
+
}, Ml = (A, t) => A.year_month - t.year_month, Nl = () => Array.from({ length: TI }, (A, t) => Math.floor(QA(Ne(/* @__PURE__ */ new Date(), t)).getTime() / 1e3)).sort(), Tl = (A, t, i) => !A.length || !t.length ? [] : Nl().reduceRight((r, o) => {
|
|
13331
13331
|
const I = t.filter(
|
|
13332
13332
|
({ year_month: f }) => f === parseInt(le(yA(o), "yyyyMM"))
|
|
13333
13333
|
), a = A.map((f) => {
|
|
@@ -13371,7 +13371,7 @@ const YI = 13, ql = (A, t) => A.filter((i) => {
|
|
|
13371
13371
|
},
|
|
13372
13372
|
...r
|
|
13373
13373
|
];
|
|
13374
|
-
}, []).slice(
|
|
13374
|
+
}, []).slice(TI - i), Yl = (A) => {
|
|
13375
13375
|
const t = [], i = [];
|
|
13376
13376
|
let n = 0, r = 0;
|
|
13377
13377
|
return A?.accounts.forEach((o) => {
|
|
@@ -13395,7 +13395,7 @@ const YI = 13, ql = (A, t) => A.filter((i) => {
|
|
|
13395
13395
|
return i[r] || (i[r] = []), i[r].push(n), i;
|
|
13396
13396
|
}, {});
|
|
13397
13397
|
return Object.entries(t).map(([i, n]) => ({
|
|
13398
|
-
icon: Bs[+i] ||
|
|
13398
|
+
icon: Bs[+i] || So[+i],
|
|
13399
13399
|
name: On[+i],
|
|
13400
13400
|
accounts: n
|
|
13401
13401
|
}));
|
|
@@ -13527,7 +13527,7 @@ const Sl = ({
|
|
|
13527
13527
|
eA,
|
|
13528
13528
|
{
|
|
13529
13529
|
primary: /* @__PURE__ */ s(P, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
|
|
13530
|
-
/* @__PURE__ */ e(R, { variant: "Body", children:
|
|
13530
|
+
/* @__PURE__ */ e(R, { variant: "Body", children: Ko(A.x) }),
|
|
13531
13531
|
/* @__PURE__ */ e(OA, { amount: A.y, sx: { color: "inherit" }, variant: "Body" })
|
|
13532
13532
|
] })
|
|
13533
13533
|
}
|
|
@@ -13708,7 +13708,7 @@ const Sl = ({
|
|
|
13708
13708
|
const { net_worth: o } = X(), I = RA();
|
|
13709
13709
|
return /* @__PURE__ */ s(Z, { children: [
|
|
13710
13710
|
/* @__PURE__ */ s(P, { alignItems: "center", justifyContent: "space-between", mb: 8, pt: 24, children: [
|
|
13711
|
-
/* @__PURE__ */ e(R, { variant: "Small", children:
|
|
13711
|
+
/* @__PURE__ */ e(R, { variant: "Small", children: Ko(A?.x) }),
|
|
13712
13712
|
/* @__PURE__ */ e(R, { variant: "Body", children: o.total_change }),
|
|
13713
13713
|
A && /* @__PURE__ */ e(Ar, { currencyVariant: "H1", iconSize: 32, netWorth: A, theme: I })
|
|
13714
13714
|
] }),
|
|
@@ -13779,7 +13779,7 @@ const Sl = ({
|
|
|
13779
13779
|
title: i
|
|
13780
13780
|
}) => {
|
|
13781
13781
|
let n;
|
|
13782
|
-
const { refreshAccounts: r } = CA(), { loadWidget: o } =
|
|
13782
|
+
const { refreshAccounts: r } = CA(), { loadWidget: o } = tI(), { connect: I } = X(), a = oe(), [c, d] = h.useState(!1), [f, E] = h.useState(!1);
|
|
13783
13783
|
return h.useEffect(() => (t ? (d(!0), o({ widget: "connections_widget", mode: a.palette.mode }).then((l) => {
|
|
13784
13784
|
n = new Ua({
|
|
13785
13785
|
container: `#${mr}`,
|
|
@@ -13813,7 +13813,7 @@ const Sl = ({
|
|
|
13813
13813
|
] })
|
|
13814
13814
|
}
|
|
13815
13815
|
);
|
|
13816
|
-
},
|
|
13816
|
+
}, YI = C(n9), OP = C(({ onBackClick: A }) => {
|
|
13817
13817
|
const { isInitialized: t, selectedAccounts: i, setSelectedAccounts: n } = pA(), { accounts: r, net_worth: o } = X(), { accounts: I } = CA(), {
|
|
13818
13818
|
assetsLiabilities: a,
|
|
13819
13819
|
gainsLosses: c,
|
|
@@ -13887,7 +13887,7 @@ const Sl = ({
|
|
|
13887
13887
|
}
|
|
13888
13888
|
)
|
|
13889
13889
|
] }) : /* @__PURE__ */ e(
|
|
13890
|
-
|
|
13890
|
+
NI,
|
|
13891
13891
|
{
|
|
13892
13892
|
buttonText: o.empty_widget_button,
|
|
13893
13893
|
header: o.empty_widget_header,
|
|
@@ -13897,7 +13897,7 @@ const Sl = ({
|
|
|
13897
13897
|
}
|
|
13898
13898
|
),
|
|
13899
13899
|
/* @__PURE__ */ e(
|
|
13900
|
-
|
|
13900
|
+
YI,
|
|
13901
13901
|
{
|
|
13902
13902
|
onClose: () => Y(!1),
|
|
13903
13903
|
showConnectionsWidget: tA,
|
|
@@ -14009,7 +14009,7 @@ const I9 = (A, t) => {
|
|
|
14009
14009
|
}
|
|
14010
14010
|
) }) : /* @__PURE__ */ e("div", { style: a.badge, children: /* @__PURE__ */ e(be, { categoryGuid: o?.category_guid, size: 36 }) });
|
|
14011
14011
|
}, s9 = C(a9), c9 = ({ notification: A, onClick: t }) => {
|
|
14012
|
-
const { updateNotification: i } =
|
|
14012
|
+
const { updateNotification: i } = iI(), n = nt(), r = {
|
|
14013
14013
|
card: {
|
|
14014
14014
|
alignItems: "center",
|
|
14015
14015
|
borderRadius: 2,
|
|
@@ -14043,7 +14043,7 @@ const I9 = (A, t) => {
|
|
|
14043
14043
|
/* @__PURE__ */ e(R, { bold: !A.has_been_viewed, truncate: !1, variant: "Small", children: A.content })
|
|
14044
14044
|
] });
|
|
14045
14045
|
}, f9 = ({ date: A }) => /* @__PURE__ */ e(L, { sx: { display: "flex", justifyContent: "center", mt: 12, py: 8 }, children: /* @__PURE__ */ e(R, { bold: !0, variant: "Small", children: Mi(A) }) }), d9 = ({ onClick: A }) => {
|
|
14046
|
-
const { isLoading: t, recentNotifications: i, markAllAsViewed: n } =
|
|
14046
|
+
const { isLoading: t, recentNotifications: i, markAllAsViewed: n } = iI(), { notifications: r } = X(), o = (I) => {
|
|
14047
14047
|
A?.(I);
|
|
14048
14048
|
};
|
|
14049
14049
|
return Ht(() => () => {
|
|
@@ -17154,7 +17154,7 @@ const u9 = ({
|
|
|
17154
17154
|
}
|
|
17155
17155
|
),
|
|
17156
17156
|
/* @__PURE__ */ e(re, { children: /* @__PURE__ */ e(ce, {}) })
|
|
17157
|
-
] }) }),
|
|
17157
|
+
] }) }), VI = ({ list: A, onClick: t, sx: i }) => /* @__PURE__ */ e(L, { sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ e(rA, { sx: { "& .MuiDivider-root:last-child": { ml: 0 } }, children: A.map(({ name: n, guid: r, subtitle: o, type: I }, a) => /* @__PURE__ */ s(h.Fragment, { children: [
|
|
17158
17158
|
/* @__PURE__ */ e(
|
|
17159
17159
|
yv,
|
|
17160
17160
|
{
|
|
@@ -17211,7 +17211,7 @@ const u9 = ({
|
|
|
17211
17211
|
children: A.request_support_institution_topic_label
|
|
17212
17212
|
}
|
|
17213
17213
|
),
|
|
17214
|
-
/* @__PURE__ */ e(
|
|
17214
|
+
/* @__PURE__ */ e(VI, { list: a, onClick: i, sx: { fontWeight: 600 } })
|
|
17215
17215
|
] }) });
|
|
17216
17216
|
}, jv = ({ copy: A, onButtonClick: t }) => {
|
|
17217
17217
|
const i = mv();
|
|
@@ -17371,7 +17371,7 @@ const u9 = ({
|
|
|
17371
17371
|
}
|
|
17372
17372
|
),
|
|
17373
17373
|
/* @__PURE__ */ e(
|
|
17374
|
-
|
|
17374
|
+
VI,
|
|
17375
17375
|
{
|
|
17376
17376
|
list: p,
|
|
17377
17377
|
onClick: w,
|
|
@@ -17798,7 +17798,7 @@ const Bv = ({
|
|
|
17798
17798
|
field: "created_at",
|
|
17799
17799
|
headerName: r.mobile_devices_column_added,
|
|
17800
17800
|
renderHeader: we,
|
|
17801
|
-
valueFormatter: (a) =>
|
|
17801
|
+
valueFormatter: (a) => Lo(yA(a), { addSuffix: !0 }),
|
|
17802
17802
|
sortable: !0,
|
|
17803
17803
|
hideSortIcons: !1,
|
|
17804
17804
|
flex: 1,
|
|
@@ -17893,7 +17893,7 @@ const Bv = ({
|
|
|
17893
17893
|
children: /* @__PURE__ */ s(P, { gap: 4, children: [
|
|
17894
17894
|
/* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: c.name }),
|
|
17895
17895
|
/* @__PURE__ */ e(R, { color: n.palette.text.secondary, variant: "Small", children: `${c.make} ${c.model}` }),
|
|
17896
|
-
/* @__PURE__ */ e(R, { color: n.palette.text.secondary, variant: "Small", children:
|
|
17896
|
+
/* @__PURE__ */ e(R, { color: n.palette.text.secondary, variant: "Small", children: Lo(yA(c.created_at), { addSuffix: !0 }) })
|
|
17897
17897
|
] })
|
|
17898
17898
|
}
|
|
17899
17899
|
),
|
|
@@ -18364,7 +18364,7 @@ const Bv = ({
|
|
|
18364
18364
|
t.account?.day_payment_is_due || 0
|
|
18365
18365
|
), l = t.account?.name || t.account?.feed_name || "", v = t.account?.day_payment_is_due ? z(
|
|
18366
18366
|
n.notification_debt_payment_date,
|
|
18367
|
-
|
|
18367
|
+
Wo(t.account?.day_payment_is_due)
|
|
18368
18368
|
) : n.notification_debt_payment_zero_state, u = o ? v : M(t.threshold ?? 0, "0,0"), H = async () => {
|
|
18369
18369
|
o && t.account ? await r({ ...t.account, day_payment_is_due: f }) : A({ ...t, threshold: c });
|
|
18370
18370
|
};
|
|
@@ -18909,7 +18909,7 @@ const on = ({
|
|
|
18909
18909
|
}
|
|
18910
18910
|
)
|
|
18911
18911
|
] });
|
|
18912
|
-
}, aR = C(IR),
|
|
18912
|
+
}, aR = C(IR), BI = (A, t) => {
|
|
18913
18913
|
const { connection_messages: i } = t;
|
|
18914
18914
|
switch (A.connection_status) {
|
|
18915
18915
|
case ie.CHALLENGED:
|
|
@@ -19070,7 +19070,7 @@ const on = ({
|
|
|
19070
19070
|
}, sR = () => {
|
|
19071
19071
|
const [A, t] = h.useState(!1), {
|
|
19072
19072
|
palette: { mode: i }
|
|
19073
|
-
} = RA(), { selectedMember: n } = Xe(), { accounts: r, connect: o } = X(), I =
|
|
19073
|
+
} = RA(), { selectedMember: n } = Xe(), { accounts: r, connect: o } = X(), I = BI(n, o), a = Bo.includes(n.connection_status) ? {
|
|
19074
19074
|
color: "error.main",
|
|
19075
19075
|
ctaCopy: I.cta ?? "",
|
|
19076
19076
|
icon: /* @__PURE__ */ e(Qi, { sx: { ...In } }),
|
|
@@ -19275,11 +19275,11 @@ const on = ({
|
|
|
19275
19275
|
/* @__PURE__ */ e(aR, {})
|
|
19276
19276
|
] });
|
|
19277
19277
|
}, vR = C(lR), RR = ({ setTabValue: A }) => {
|
|
19278
|
-
const [t, i] = h.useState(!1), { selectedMember: n } = Xe(), { accounts: r, connect: o } = X(), I = n.connection_status &&
|
|
19278
|
+
const [t, i] = h.useState(!1), { selectedMember: n } = Xe(), { accounts: r, connect: o } = X(), I = n.connection_status && Bo.includes(n.connection_status);
|
|
19279
19279
|
if (h.useEffect(() => {
|
|
19280
19280
|
I && A(1);
|
|
19281
19281
|
}, [I]), !I) return;
|
|
19282
|
-
const a =
|
|
19282
|
+
const a = BI(n, o);
|
|
19283
19283
|
return /* @__PURE__ */ s(Z, { children: [
|
|
19284
19284
|
/* @__PURE__ */ e(
|
|
19285
19285
|
De,
|
|
@@ -19308,7 +19308,7 @@ const on = ({
|
|
|
19308
19308
|
a.title && /* @__PURE__ */ e(En, { sx: { fontWeight: 600, marginTop: 2 }, variant: "Body", children: a.title }),
|
|
19309
19309
|
/* @__PURE__ */ e(R, { component: "p", sx: { whiteSpace: "wrap" }, variant: "ParagraphSmall", children: a.main }),
|
|
19310
19310
|
a.cta && /* @__PURE__ */ e(
|
|
19311
|
-
|
|
19311
|
+
Mo,
|
|
19312
19312
|
{
|
|
19313
19313
|
onClick: () => i(!0),
|
|
19314
19314
|
sx: { fontSize: 15, fontWeight: 600, ml: 0 },
|
|
@@ -19385,7 +19385,7 @@ const on = ({
|
|
|
19385
19385
|
/* @__PURE__ */ e(Qt, { index: 0, name: "transaction-details", value: A, children: /* @__PURE__ */ e(bR, {}) }),
|
|
19386
19386
|
/* @__PURE__ */ e(Qt, { index: 1, name: "account-details", value: A, children: /* @__PURE__ */ e(vR, {}) })
|
|
19387
19387
|
] });
|
|
19388
|
-
},
|
|
19388
|
+
}, SI = C(HR), zR = () => {
|
|
19389
19389
|
const [A, t] = h.useState(""), { accounts: i } = X(), { selectedAccounts: n } = pA(), { setSelectedAccount: r, setSelectedMember: o } = Xe(), { members: I } = CA(), { onEvent: a } = K(), c = [...new Set(n.map((f) => f.account_type))], d = n.find((f) => A === f.guid);
|
|
19390
19390
|
return h.useEffect(() => {
|
|
19391
19391
|
if (d) {
|
|
@@ -19455,13 +19455,13 @@ const on = ({
|
|
|
19455
19455
|
title: i.account_details,
|
|
19456
19456
|
children: [
|
|
19457
19457
|
/* @__PURE__ */ e($n, {}),
|
|
19458
|
-
/* @__PURE__ */ e(
|
|
19458
|
+
/* @__PURE__ */ e(SI, {})
|
|
19459
19459
|
]
|
|
19460
19460
|
}
|
|
19461
19461
|
)
|
|
19462
19462
|
] });
|
|
19463
19463
|
}, CR = C(zR), gR = ({ onBackClick: A, sx: t = {} }) => {
|
|
19464
|
-
const [i, n] = h.useState(!1), [r, o] = h.useState(!1), { config: I } =
|
|
19464
|
+
const [i, n] = h.useState(!1), [r, o] = h.useState(!1), { config: I } = eI(), { accounts: a, refreshMembers: c } = CA(), { accounts: d } = X(), { setSelectedAccounts: f, selectedAccountGuids: E } = pA(), { isDesktop: l } = zA(), { onEvent: v } = K();
|
|
19465
19465
|
h.useEffect(() => {
|
|
19466
19466
|
f(a);
|
|
19467
19467
|
}, [a]);
|
|
@@ -19498,7 +19498,7 @@ const on = ({
|
|
|
19498
19498
|
/* @__PURE__ */ e(CR, {})
|
|
19499
19499
|
] }),
|
|
19500
19500
|
/* @__PURE__ */ e(
|
|
19501
|
-
|
|
19501
|
+
YI,
|
|
19502
19502
|
{
|
|
19503
19503
|
onClose: () => n(!1),
|
|
19504
19504
|
showConnectionsWidget: i,
|
|
@@ -20104,7 +20104,7 @@ class mR {
|
|
|
20104
20104
|
if (r > -1) {
|
|
20105
20105
|
let o = bt.Connected;
|
|
20106
20106
|
const I = this.members[r];
|
|
20107
|
-
|
|
20107
|
+
Vo.includes(I.connection_status) ? o = bt.Error : Vs.includes(I.connection_status) ? o = bt.Processing : Yo.includes(I.connection_status) && (o = bt.RequiresMfa), i.push({
|
|
20108
20108
|
...n,
|
|
20109
20109
|
memberName: I.name,
|
|
20110
20110
|
connectionStatus: o
|
|
@@ -20389,7 +20389,7 @@ const SR = ({
|
|
|
20389
20389
|
/* @__PURE__ */ e(R, { bold: !0, variant: "Paragraph", children: A.zero_state_title }),
|
|
20390
20390
|
/* @__PURE__ */ e(R, { sx: { whiteSpace: "wrap" }, variant: "Paragraph", children: A.zero_state_description })
|
|
20391
20391
|
] });
|
|
20392
|
-
},
|
|
20392
|
+
}, UI = C(
|
|
20393
20393
|
({ height: A, isDraggable: t = !1, shouldShowZeroState: i, unavailableWidth: n = 24 }) => {
|
|
20394
20394
|
const { onEvent: r } = K(), { setSelectedBudget: o } = te(), { isLoadingCategoryTotals: I } = qA(), { isInitialized: a } = pA(), { availableWidth: c } = Xt(), { isMobile: d } = zA(), f = h.useMemo(() => c - n, [c]), E = (l) => {
|
|
20395
20395
|
o(l), r(V.BUDGETS_CLICK_BUDGET_CATEGORY, {
|
|
@@ -20418,7 +20418,7 @@ const SR = ({
|
|
|
20418
20418
|
title: o.budgets_title,
|
|
20419
20419
|
...A,
|
|
20420
20420
|
children: /* @__PURE__ */ s(P, { height: 450, mt: 32, children: [
|
|
20421
|
-
/* @__PURE__ */ e(
|
|
20421
|
+
/* @__PURE__ */ e(UI, { height: 370, shouldShowZeroState: a }),
|
|
20422
20422
|
!a && /* @__PURE__ */ s(L, { ml: 16, children: [
|
|
20423
20423
|
/* @__PURE__ */ e(R, { bold: !0, color: I < 0 ? "error.main" : "success.main", children: M(Math.abs(I), "0,0") }),
|
|
20424
20424
|
/* @__PURE__ */ e(R, { children: I < 0 ? o.overspent_in_budgets : o.left_in_budgets })
|
|
@@ -20437,7 +20437,7 @@ const SR = ({
|
|
|
20437
20437
|
transaction_total: d
|
|
20438
20438
|
} = A;
|
|
20439
20439
|
return /* @__PURE__ */ e(W, { children: /* @__PURE__ */ s(aA, { onClick: () => t?.(A), children: [
|
|
20440
|
-
/* @__PURE__ */ e(xA, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ e(
|
|
20440
|
+
/* @__PURE__ */ e(xA, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ e(rI, { color: n, percent: a, size: 40, children: /* @__PURE__ */ e(be, { categoryGuid: o, variant: "basic" }) }) }),
|
|
20441
20441
|
/* @__PURE__ */ e(
|
|
20442
20442
|
eA,
|
|
20443
20443
|
{
|
|
@@ -20680,7 +20680,7 @@ const SR = ({
|
|
|
20680
20680
|
)) }) }),
|
|
20681
20681
|
/* @__PURE__ */ e($R, { onRecalculateBudgets: A })
|
|
20682
20682
|
] });
|
|
20683
|
-
}),
|
|
20683
|
+
}), FI = ({ budget: A }) => {
|
|
20684
20684
|
const {
|
|
20685
20685
|
amount: t,
|
|
20686
20686
|
budgetColors: { background: i },
|
|
@@ -20716,7 +20716,7 @@ const SR = ({
|
|
|
20716
20716
|
transaction_total: o
|
|
20717
20717
|
} = A, { setSelectedSubBudget: I } = te();
|
|
20718
20718
|
return /* @__PURE__ */ e(W, { children: /* @__PURE__ */ s(aA, { onClick: () => I(A), children: [
|
|
20719
|
-
/* @__PURE__ */ e(xA, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ e(
|
|
20719
|
+
/* @__PURE__ */ e(xA, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ e(rI, { color: i, percent: r, size: 40, children: /* @__PURE__ */ e(be, { categoryGuid: n.parent_guid, variant: "basic" }) }) }),
|
|
20720
20720
|
/* @__PURE__ */ e(
|
|
20721
20721
|
eA,
|
|
20722
20722
|
{
|
|
@@ -20757,7 +20757,7 @@ const SR = ({
|
|
|
20757
20757
|
isOpen: a,
|
|
20758
20758
|
onClose: () => c(!1),
|
|
20759
20759
|
title: i.add_sub_budget_title,
|
|
20760
|
-
children: /* @__PURE__ */ e(rA, { children: /* @__PURE__ */ e(
|
|
20760
|
+
children: /* @__PURE__ */ e(rA, { children: /* @__PURE__ */ e(fI, { category: A, subCategories: A.subCategories }) })
|
|
20761
20761
|
}
|
|
20762
20762
|
),
|
|
20763
20763
|
/* @__PURE__ */ e(
|
|
@@ -20821,7 +20821,7 @@ const SR = ({
|
|
|
20821
20821
|
secondaryText: n.details_delete_button,
|
|
20822
20822
|
title: n.details_title,
|
|
20823
20823
|
children: I && /* @__PURE__ */ s(P, { gap: 24, children: [
|
|
20824
|
-
/* @__PURE__ */ e(
|
|
20824
|
+
/* @__PURE__ */ e(FI, { budget: I }),
|
|
20825
20825
|
/* @__PURE__ */ e(Rt, { height: "100%" })
|
|
20826
20826
|
] })
|
|
20827
20827
|
}
|
|
@@ -20868,10 +20868,10 @@ const SR = ({
|
|
|
20868
20868
|
), l = (u, H) => {
|
|
20869
20869
|
c(H);
|
|
20870
20870
|
}, v = () => {
|
|
20871
|
-
|
|
20871
|
+
cI(o, I), r(t.alert_csv_downloaded);
|
|
20872
20872
|
};
|
|
20873
20873
|
return /* @__PURE__ */ s(P, { gap: 24, children: [
|
|
20874
|
-
/* @__PURE__ */ e(
|
|
20874
|
+
/* @__PURE__ */ e(FI, { budget: A }),
|
|
20875
20875
|
/* @__PURE__ */ s(P, { children: [
|
|
20876
20876
|
/* @__PURE__ */ s(
|
|
20877
20877
|
Se,
|
|
@@ -21029,7 +21029,7 @@ const SR = ({
|
|
|
21029
21029
|
(!a || !D) && /* @__PURE__ */ e(ee, {}),
|
|
21030
21030
|
a && D && /* @__PURE__ */ s(P, { direction: y || x ? "row" : "column", height: "100%", width: "100%", children: [
|
|
21031
21031
|
/* @__PURE__ */ e(P, { height: y || x ? "calc(100dvh - 150px)" : 450, children: /* @__PURE__ */ e(
|
|
21032
|
-
|
|
21032
|
+
UI,
|
|
21033
21033
|
{
|
|
21034
21034
|
height: y || x ? 800 : 450,
|
|
21035
21035
|
isDraggable: !0,
|
|
@@ -21139,7 +21139,7 @@ const a3 = C(() => {
|
|
|
21139
21139
|
/* @__PURE__ */ e(R, { color: "text.secondary", sx: { fontSize: 15 }, children: r.heres_your_spending_overview })
|
|
21140
21140
|
] }),
|
|
21141
21141
|
/* @__PURE__ */ e(
|
|
21142
|
-
|
|
21142
|
+
Jo,
|
|
21143
21143
|
{
|
|
21144
21144
|
accounts: A,
|
|
21145
21145
|
copy: o,
|
|
@@ -21232,10 +21232,10 @@ const tr = {
|
|
|
21232
21232
|
MonthlySpendToIncomeComparison: "MonthlySpendToIncomeComparison"
|
|
21233
21233
|
}, ye = window?.app?.clientConfig?.microwidget_instance_id || "", Ro = {
|
|
21234
21234
|
INSIGHTS_MICRO_WIDGET: "/micro-insights-carousel"
|
|
21235
|
-
},
|
|
21235
|
+
}, WI = (A) => `on${A}Click`, kI = (A) => `on${A}View`, KI = (A) => `on${A}ViewFirstTime`, ir = (A) => A.replace(/([a-z])([A-Z])/g, "$1 $2"), E3 = () => Object.values(tr).reduce(
|
|
21236
21236
|
(A, t) => ({
|
|
21237
21237
|
...A,
|
|
21238
|
-
[
|
|
21238
|
+
[WI(t)]: {
|
|
21239
21239
|
action: et.MICRO_BEAT_CLICKED,
|
|
21240
21240
|
category: At.BEAT_INTERACTION,
|
|
21241
21241
|
label: ir(t),
|
|
@@ -21246,7 +21246,7 @@ const tr = {
|
|
|
21246
21246
|
), h3 = () => Object.values(tr).reduce(
|
|
21247
21247
|
(A, t) => ({
|
|
21248
21248
|
...A,
|
|
21249
|
-
[
|
|
21249
|
+
[kI(t)]: {
|
|
21250
21250
|
action: et.MICRO_BEAT_DISPLAYED,
|
|
21251
21251
|
category: At.BEAT_INTERACTION,
|
|
21252
21252
|
label: ir(t),
|
|
@@ -21257,7 +21257,7 @@ const tr = {
|
|
|
21257
21257
|
), l3 = () => Object.values(tr).reduce(
|
|
21258
21258
|
(A, t) => ({
|
|
21259
21259
|
...A,
|
|
21260
|
-
[
|
|
21260
|
+
[KI(t)]: {
|
|
21261
21261
|
action: et.MICRO_BEAT_DISPLAYED_FIRST_TIME,
|
|
21262
21262
|
category: At.BEAT_INTERACTION,
|
|
21263
21263
|
label: ir(t),
|
|
@@ -21280,7 +21280,7 @@ const tr = {
|
|
|
21280
21280
|
ON_CAROUSEL_FORWARD_SWIPE: "onCarouselForwardSwipe",
|
|
21281
21281
|
ON_NO_RELEVANT_INSIGHTS_CLICKED: "onNoRelevantInsightsClicked",
|
|
21282
21282
|
ON_VIEW_MORE_CLICKED: "onViewMoreClicked"
|
|
21283
|
-
},
|
|
21283
|
+
}, ZI = {
|
|
21284
21284
|
ON_VIEW_MORE_VIEWED: "onViewMoreCardView"
|
|
21285
21285
|
}, et = {
|
|
21286
21286
|
CONTROL_BACKWARD: "Control Backward",
|
|
@@ -21348,7 +21348,7 @@ const tr = {
|
|
|
21348
21348
|
label: $e.VIEW_MORE,
|
|
21349
21349
|
value: ye
|
|
21350
21350
|
},
|
|
21351
|
-
[
|
|
21351
|
+
[ZI.ON_VIEW_MORE_VIEWED]: {
|
|
21352
21352
|
action: et.MICRO_BEAT_DISPLAYED,
|
|
21353
21353
|
category: At.BEAT_INTERACTION,
|
|
21354
21354
|
label: $e.VIEW_MORE,
|
|
@@ -21583,7 +21583,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
21583
21583
|
}, p3 = ({ beat: A }) => {
|
|
21584
21584
|
const t = KA(), i = X3(A.data_series, t);
|
|
21585
21585
|
return /* @__PURE__ */ e(q, { name: "bar_chart", sx: { color: i } });
|
|
21586
|
-
},
|
|
21586
|
+
}, JI = () => /* @__PURE__ */ s("svg", { fill: "none", height: "36", viewBox: "0 0 40 36", width: "40", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
21587
21587
|
/* @__PURE__ */ e(
|
|
21588
21588
|
"path",
|
|
21589
21589
|
{
|
|
@@ -22393,17 +22393,17 @@ const si = h.createContext(null), u3 = ({
|
|
|
22393
22393
|
if (!A)
|
|
22394
22394
|
throw new Error("useEvent() must be used within the InsightsMicroWidgetDataProvider");
|
|
22395
22395
|
return { onEvent: A.onEvent };
|
|
22396
|
-
},
|
|
22396
|
+
}, _I = () => {
|
|
22397
22397
|
const A = h.useContext(si);
|
|
22398
22398
|
if (!A)
|
|
22399
22399
|
throw new Error("usePageview() must be used within the InsightsMicroWidgetDataProvider");
|
|
22400
22400
|
return { onPageview: A.onPageview };
|
|
22401
|
-
},
|
|
22401
|
+
}, $I = {
|
|
22402
22402
|
LARGE: 180,
|
|
22403
22403
|
STANDARD: 154,
|
|
22404
22404
|
XLARGE: 200,
|
|
22405
22405
|
XXLARGE: 248
|
|
22406
|
-
}, y3 = 50,
|
|
22406
|
+
}, y3 = 50, Aa = 1, x3 = ({
|
|
22407
22407
|
ariaLabel: A,
|
|
22408
22408
|
backgroundColor: t,
|
|
22409
22409
|
beat: i,
|
|
@@ -22418,17 +22418,17 @@ const si = h.createContext(null), u3 = ({
|
|
|
22418
22418
|
variant: E,
|
|
22419
22419
|
widthOverrides: l
|
|
22420
22420
|
}) => {
|
|
22421
|
-
const { ref: v, inView: u } =
|
|
22422
|
-
threshold:
|
|
22421
|
+
const { ref: v, inView: u } = No({
|
|
22422
|
+
threshold: Aa
|
|
22423
22423
|
}), { cardsCopy: H } = ut(), { onEvent: b } = ci(), { updateBeat: p, updateOffer: y } = w3();
|
|
22424
22424
|
Ht(() => {
|
|
22425
|
-
u && (i.has_been_displayed ? b(
|
|
22425
|
+
u && (i.has_been_displayed ? b(kI(i.template)) : (i.guid.startsWith("OFR") ? y({
|
|
22426
22426
|
...i,
|
|
22427
22427
|
has_been_displayed: !0
|
|
22428
22428
|
}) : p({
|
|
22429
22429
|
...i,
|
|
22430
22430
|
has_been_displayed: !0
|
|
22431
|
-
}), b(
|
|
22431
|
+
}), b(KI(i.template))));
|
|
22432
22432
|
}, [u]), Ht(() => {
|
|
22433
22433
|
u && i && d?.capture("viewed_insight", {
|
|
22434
22434
|
beat_guid: i.guid,
|
|
@@ -22437,7 +22437,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22437
22437
|
});
|
|
22438
22438
|
}, [i, I, u]);
|
|
22439
22439
|
const x = () => {
|
|
22440
|
-
c && c(i), b(
|
|
22440
|
+
c && c(i), b(WI(i.template)), d?.capture("clicked_insight", {
|
|
22441
22441
|
beat_guid: i.guid,
|
|
22442
22442
|
template: i.template,
|
|
22443
22443
|
position: I
|
|
@@ -22713,7 +22713,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22713
22713
|
}
|
|
22714
22714
|
),
|
|
22715
22715
|
/* @__PURE__ */ s(
|
|
22716
|
-
|
|
22716
|
+
Mo,
|
|
22717
22717
|
{
|
|
22718
22718
|
onClick: I,
|
|
22719
22719
|
sx: {
|
|
@@ -22769,7 +22769,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22769
22769
|
children: i
|
|
22770
22770
|
}
|
|
22771
22771
|
);
|
|
22772
|
-
},
|
|
22772
|
+
}, ea = ({
|
|
22773
22773
|
ariaLabel: A,
|
|
22774
22774
|
carouselSize: t,
|
|
22775
22775
|
clientColorScheme: i,
|
|
@@ -22781,7 +22781,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22781
22781
|
variant: c,
|
|
22782
22782
|
widthOverrides: d
|
|
22783
22783
|
}) => {
|
|
22784
|
-
const { cardsCopy: f } = ut(), { onEvent: E } = ci(), { onPageview: l } =
|
|
22784
|
+
const { cardsCopy: f } = ut(), { onEvent: E } = ci(), { onPageview: l } = _I();
|
|
22785
22785
|
h.useEffect(() => {
|
|
22786
22786
|
l(at.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS);
|
|
22787
22787
|
}, []);
|
|
@@ -22798,7 +22798,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22798
22798
|
description: f.no_relevant_insights_card_description,
|
|
22799
22799
|
fontColors: { buttonColor: i?.primary_300 },
|
|
22800
22800
|
heightOverrides: n,
|
|
22801
|
-
icon: /* @__PURE__ */ e(
|
|
22801
|
+
icon: /* @__PURE__ */ e(JI, {}),
|
|
22802
22802
|
isZeroState: !0,
|
|
22803
22803
|
onCardClick: v,
|
|
22804
22804
|
posthog: o,
|
|
@@ -22806,7 +22806,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22806
22806
|
style: {
|
|
22807
22807
|
cardStyle: {
|
|
22808
22808
|
card: {
|
|
22809
|
-
height: `calc(${
|
|
22809
|
+
height: `calc(${$I[t]}px - 44px)`,
|
|
22810
22810
|
margin: "0 auto",
|
|
22811
22811
|
width: a ? "calc(100% - 32px)" : "100%"
|
|
22812
22812
|
},
|
|
@@ -22823,7 +22823,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22823
22823
|
widthOverrides: d
|
|
22824
22824
|
}
|
|
22825
22825
|
);
|
|
22826
|
-
}, SP = C(
|
|
22826
|
+
}, SP = C(ea), ta = ({
|
|
22827
22827
|
ariaLabel: A,
|
|
22828
22828
|
carouselSize: t,
|
|
22829
22829
|
heightOverrides: i,
|
|
@@ -22834,7 +22834,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22834
22834
|
variant: a,
|
|
22835
22835
|
widthOverrides: c
|
|
22836
22836
|
}) => {
|
|
22837
|
-
const { onPageview: d } =
|
|
22837
|
+
const { onPageview: d } = _I(), { zeroStateCopy: f } = ut();
|
|
22838
22838
|
return h.useEffect(() => {
|
|
22839
22839
|
d(at.MICRO_WIDGET_CAROUSEL_ZERO_STATE);
|
|
22840
22840
|
}, []), /* @__PURE__ */ e(
|
|
@@ -22843,7 +22843,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22843
22843
|
ariaLabel: A,
|
|
22844
22844
|
description: f.carousel_zero_state_description,
|
|
22845
22845
|
heightOverrides: i,
|
|
22846
|
-
icon: /* @__PURE__ */ e(
|
|
22846
|
+
icon: /* @__PURE__ */ e(JI, {}),
|
|
22847
22847
|
isZeroState: !0,
|
|
22848
22848
|
onCardClick: n,
|
|
22849
22849
|
posthog: r,
|
|
@@ -22851,7 +22851,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22851
22851
|
style: {
|
|
22852
22852
|
cardStyle: {
|
|
22853
22853
|
card: {
|
|
22854
|
-
height: `calc(${
|
|
22854
|
+
height: `calc(${$I[t]}px - 44px)`,
|
|
22855
22855
|
margin: "0 auto",
|
|
22856
22856
|
width: I ? "calc(100% - 32px)" : "100%"
|
|
22857
22857
|
},
|
|
@@ -22865,7 +22865,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22865
22865
|
widthOverrides: c
|
|
22866
22866
|
}
|
|
22867
22867
|
);
|
|
22868
|
-
}, UP = C(
|
|
22868
|
+
}, UP = C(ta), M3 = () => /* @__PURE__ */ e(
|
|
22869
22869
|
L,
|
|
22870
22870
|
{
|
|
22871
22871
|
sx: {
|
|
@@ -22953,8 +22953,8 @@ const si = h.createContext(null), u3 = ({
|
|
|
22953
22953
|
...Y
|
|
22954
22954
|
}
|
|
22955
22955
|
),
|
|
22956
|
-
m && !t.length && y && /* @__PURE__ */ e(
|
|
22957
|
-
m && !t.length && !y && /* @__PURE__ */ e(
|
|
22956
|
+
m && !t.length && y && /* @__PURE__ */ e(ea, { clientColorScheme: i, ...iA }),
|
|
22957
|
+
m && !t.length && !y && /* @__PURE__ */ e(ta, { ...iA })
|
|
22958
22958
|
] }) })
|
|
22959
22959
|
] })
|
|
22960
22960
|
);
|
|
@@ -22969,11 +22969,11 @@ const si = h.createContext(null), u3 = ({
|
|
|
22969
22969
|
variant: a,
|
|
22970
22970
|
widthOverrides: c
|
|
22971
22971
|
}) => {
|
|
22972
|
-
const d = KA(), { ref: f, inView: E } =
|
|
22973
|
-
threshold:
|
|
22972
|
+
const d = KA(), { ref: f, inView: E } = No({
|
|
22973
|
+
threshold: Aa
|
|
22974
22974
|
}), { cardsCopy: l } = ut(), { onEvent: v } = ci();
|
|
22975
22975
|
Ht(() => {
|
|
22976
|
-
E && (v(
|
|
22976
|
+
E && (v(ZI.ON_VIEW_MORE_VIEWED), o?.capture("viewed_insight", {
|
|
22977
22977
|
template: "view_more_card"
|
|
22978
22978
|
}));
|
|
22979
22979
|
}, [E]);
|
|
@@ -23027,7 +23027,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
23027
23027
|
});
|
|
23028
23028
|
}
|
|
23029
23029
|
return i;
|
|
23030
|
-
}, []),
|
|
23030
|
+
}, []), ia = (A, t) => {
|
|
23031
23031
|
const i = V3(A, t), n = i.filter((c) => c.guid !== g.INCOME && c.guid !== g.TRANSFER).sort((c, d) => d.amount - c.amount), r = n.reduce(
|
|
23032
23032
|
(c, d) => c + d.amount,
|
|
23033
23033
|
0
|
|
@@ -23064,7 +23064,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
23064
23064
|
donutData: a,
|
|
23065
23065
|
totalAmount: r
|
|
23066
23066
|
};
|
|
23067
|
-
},
|
|
23067
|
+
}, na = (A, t, i) => {
|
|
23068
23068
|
const n = A.filter(
|
|
23069
23069
|
(a) => a.parent_guid === g.INCOME
|
|
23070
23070
|
), r = t.filter((a) => n.some((c) => c.guid === a.category_guid)).sort((a, c) => a.total - c.total).map((a, c) => ({
|
|
@@ -23121,7 +23121,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
23121
23121
|
{
|
|
23122
23122
|
categoryGuid: t ? g.INCOME : E.guid,
|
|
23123
23123
|
size: a === "mini" ? 24 : u,
|
|
23124
|
-
variant:
|
|
23124
|
+
variant: po.Transparent
|
|
23125
23125
|
}
|
|
23126
23126
|
),
|
|
23127
23127
|
/* @__PURE__ */ e(R, { color: "secondary", noWrap: !0, variant: a === "mini" ? "Tiny" : "Body", children: E ? E.name : I })
|
|
@@ -23180,10 +23180,10 @@ const si = h.createContext(null), u3 = ({
|
|
|
23180
23180
|
).finally();
|
|
23181
23181
|
}, [i]);
|
|
23182
23182
|
const [a, c] = h.useState(""), [d, f] = h.useState(0), E = h.useMemo(
|
|
23183
|
-
() =>
|
|
23183
|
+
() => ia(r, o),
|
|
23184
23184
|
[r, o]
|
|
23185
23185
|
), l = h.useMemo(
|
|
23186
|
-
() =>
|
|
23186
|
+
() => na(r, o, n),
|
|
23187
23187
|
[r, o, n]
|
|
23188
23188
|
), v = (H, b) => {
|
|
23189
23189
|
f(b), c("");
|
|
@@ -23409,10 +23409,10 @@ const si = h.createContext(null), u3 = ({
|
|
|
23409
23409
|
).finally();
|
|
23410
23410
|
}, [I, o]);
|
|
23411
23411
|
const y = h.useMemo(
|
|
23412
|
-
() =>
|
|
23412
|
+
() => ia(t, i),
|
|
23413
23413
|
[t, i]
|
|
23414
23414
|
), x = h.useMemo(
|
|
23415
|
-
() =>
|
|
23415
|
+
() => na(t, i, Z3(A)),
|
|
23416
23416
|
[t, i]
|
|
23417
23417
|
), w = h.useMemo(
|
|
23418
23418
|
() => d.find((O) => O.guid === u),
|
|
@@ -23810,7 +23810,7 @@ const i7 = (A) => A.reduce((i, n) => {
|
|
|
23810
23810
|
/* @__PURE__ */ e(R, { variant: r ? "Body" : "Small", children: iA })
|
|
23811
23811
|
] }),
|
|
23812
23812
|
/* @__PURE__ */ e(
|
|
23813
|
-
|
|
23813
|
+
xo,
|
|
23814
23814
|
{
|
|
23815
23815
|
exclusive: !0,
|
|
23816
23816
|
onChange: oA,
|
|
@@ -23932,10 +23932,10 @@ const i7 = (A) => A.reduce((i, n) => {
|
|
|
23932
23932
|
export {
|
|
23933
23933
|
V as ANALYTICS_EVENTS,
|
|
23934
23934
|
fo as AccountApi,
|
|
23935
|
-
|
|
23935
|
+
SI as AccountDetailsContent,
|
|
23936
23936
|
$n as AccountDetailsHeader,
|
|
23937
|
-
|
|
23938
|
-
|
|
23937
|
+
Jo as AccountFilter,
|
|
23938
|
+
So as AccountIcon,
|
|
23939
23939
|
Bs as AccountIconVariants,
|
|
23940
23940
|
mR as AccountStore,
|
|
23941
23941
|
Ys as AccountSubType,
|
|
@@ -23943,7 +23943,7 @@ export {
|
|
|
23943
23943
|
On as AccountTypeName,
|
|
23944
23944
|
NP as AccountsMiniWidget,
|
|
23945
23945
|
MP as AccountsWidget,
|
|
23946
|
-
|
|
23946
|
+
pI as ActivitySettings,
|
|
23947
23947
|
SA as ActivityStatus,
|
|
23948
23948
|
TA as ActivityType,
|
|
23949
23949
|
Nd as AddAccountModal,
|
|
@@ -23958,7 +23958,7 @@ export {
|
|
|
23958
23958
|
YP as BubbleBudgetsMiniWidget,
|
|
23959
23959
|
VP as BubbleBudgetsWidget,
|
|
23960
23960
|
Cc as Calendar,
|
|
23961
|
-
|
|
23961
|
+
_o as CalendarSelectionTypes,
|
|
23962
23962
|
q3 as CarouselHeader,
|
|
23963
23963
|
$r as CashflowApi,
|
|
23964
23964
|
zP as CashflowMiniWidget,
|
|
@@ -23970,12 +23970,12 @@ export {
|
|
|
23970
23970
|
qi as CategoryGuidToName,
|
|
23971
23971
|
g as CategoryGuids,
|
|
23972
23972
|
Us as CategoryIcon,
|
|
23973
|
-
|
|
23973
|
+
fI as CategoryRow,
|
|
23974
23974
|
rd as CategorySelector,
|
|
23975
23975
|
Vi as CategorySelectorDrawer,
|
|
23976
23976
|
cd as CategoryStore,
|
|
23977
23977
|
C3 as ChartFilledIcon,
|
|
23978
|
-
|
|
23978
|
+
II as ConnectCard,
|
|
23979
23979
|
Ii as ConnectDrawer,
|
|
23980
23980
|
TP as ConnectMiniWidget,
|
|
23981
23981
|
bt as ConnectionStatus,
|
|
@@ -23984,13 +23984,13 @@ export {
|
|
|
23984
23984
|
qe as CurrencyInput,
|
|
23985
23985
|
OA as CurrencyText,
|
|
23986
23986
|
AA as DATE_FORMATS_INTL,
|
|
23987
|
-
|
|
23988
|
-
|
|
23987
|
+
Uo as DEFAULT_DONUT_SIZE,
|
|
23988
|
+
Fo as DEFAULT_STROKE_WIDTH,
|
|
23989
23989
|
BP as Dashboard,
|
|
23990
23990
|
Cn as DashboardLocation,
|
|
23991
23991
|
zi as DataRow,
|
|
23992
23992
|
Dr as DateRangeSelector,
|
|
23993
|
-
|
|
23993
|
+
mI as DebtsChart,
|
|
23994
23994
|
ol as DebtsStore,
|
|
23995
23995
|
Zh as DebtsTable,
|
|
23996
23996
|
DP as DebtsWidget,
|
|
@@ -23998,7 +23998,7 @@ export {
|
|
|
23998
23998
|
XA as Dialog,
|
|
23999
23999
|
yc as Donut,
|
|
24000
24000
|
IA as Drawer,
|
|
24001
|
-
|
|
24001
|
+
Vo as ErrorStatuses,
|
|
24002
24002
|
Pf as ExpenseStatus,
|
|
24003
24003
|
Ae as Fetch,
|
|
24004
24004
|
de as FieldType,
|
|
@@ -24031,7 +24031,7 @@ export {
|
|
|
24031
24031
|
mP as MerchantLookup,
|
|
24032
24032
|
Ql as MerchantStore,
|
|
24033
24033
|
he as MetaType,
|
|
24034
|
-
|
|
24034
|
+
Yo as MfaStatuses,
|
|
24035
24035
|
O3 as MicroBeatCarousel,
|
|
24036
24036
|
ki as MicroInsightCard,
|
|
24037
24037
|
pt as MiniWidgetContainer,
|
|
@@ -24043,7 +24043,7 @@ export {
|
|
|
24043
24043
|
_l as NetWorthSummary,
|
|
24044
24044
|
OP as NetWorthWidget,
|
|
24045
24045
|
SP as NoRelevantInsightsCard,
|
|
24046
|
-
|
|
24046
|
+
Bo as NonConnectedStatuses,
|
|
24047
24047
|
Cr as NotificationApi,
|
|
24048
24048
|
QP as NotificationList,
|
|
24049
24049
|
iR as NotificationSettings,
|
|
@@ -24056,7 +24056,7 @@ export {
|
|
|
24056
24056
|
Fs as PlanTypes,
|
|
24057
24057
|
Vs as ProcessingStatuses,
|
|
24058
24058
|
Vv as ProfileTab,
|
|
24059
|
-
|
|
24059
|
+
To as PropertyType,
|
|
24060
24060
|
sP as PropertyTypeName,
|
|
24061
24061
|
cP as RECURRENCE_COPY,
|
|
24062
24062
|
U as RecurrenceTypes,
|
|
@@ -24073,7 +24073,7 @@ export {
|
|
|
24073
24073
|
ao as SettingsApi,
|
|
24074
24074
|
l9 as SettingsStore,
|
|
24075
24075
|
qP as SettingsWidget,
|
|
24076
|
-
|
|
24076
|
+
rI as SingleSegmentDonut,
|
|
24077
24077
|
ks as Sizes,
|
|
24078
24078
|
WP as SpendingMiniWidget,
|
|
24079
24079
|
kP as SpendingWidget,
|
|
@@ -24105,20 +24105,20 @@ export {
|
|
|
24105
24105
|
Y3 as ViewMoreMicroCard,
|
|
24106
24106
|
pr as WidgetApi,
|
|
24107
24107
|
Le as WidgetContainer,
|
|
24108
|
-
|
|
24109
|
-
|
|
24108
|
+
$o as WidgetContainerContext,
|
|
24109
|
+
AI as WidgetContainerProvider,
|
|
24110
24110
|
UP as ZeroStateCard,
|
|
24111
|
-
|
|
24111
|
+
JI as ZeroStateIcon,
|
|
24112
24112
|
Ns as analyticsSession,
|
|
24113
24113
|
z as buildDynamicCopy,
|
|
24114
24114
|
hP as buildPluralCopy,
|
|
24115
|
-
|
|
24115
|
+
cI as exportTransactionsToCSV,
|
|
24116
24116
|
M as formatCurrency,
|
|
24117
24117
|
nA as formatDate,
|
|
24118
|
-
|
|
24118
|
+
Wo as formatOrdinal,
|
|
24119
24119
|
Gi as formatPercentage,
|
|
24120
|
-
|
|
24121
|
-
|
|
24120
|
+
Ko as fromTimestampToMonthYear,
|
|
24121
|
+
yI as getAccountBalanceDetails,
|
|
24122
24122
|
LE as getAccountDetailFields,
|
|
24123
24123
|
br as getCategory,
|
|
24124
24124
|
dP as getCategoryTotalsByParent,
|
|
@@ -24131,7 +24131,7 @@ export {
|
|
|
24131
24131
|
hn as isValidNumber,
|
|
24132
24132
|
CA as useAccountStore,
|
|
24133
24133
|
Xe as useAccountUiStore,
|
|
24134
|
-
|
|
24134
|
+
eI as useAppConfig,
|
|
24135
24135
|
te as useBudgetsStore,
|
|
24136
24136
|
Nn as useCashflowStore,
|
|
24137
24137
|
qA as useCategoryStore,
|
|
@@ -24148,7 +24148,7 @@ export {
|
|
|
24148
24148
|
Tn as useHelpStore,
|
|
24149
24149
|
Oc as useMerchantStore,
|
|
24150
24150
|
Lc as useNetWorthStore,
|
|
24151
|
-
|
|
24151
|
+
iI as useNotificationStore,
|
|
24152
24152
|
PP as usePageView,
|
|
24153
24153
|
vP as usePrevious,
|
|
24154
24154
|
ZA as useRecurringActivityStore,
|