@mx-cartographer/experiences 5.3.1-alpha.mega2 → 5.3.1-alpha.mega21
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 +716 -712
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { jsx as e, jsxs as s, Fragment as Z } from "react/jsx-runtime";
|
|
2
|
-
import h, { useMemo as oa, useRef as
|
|
2
|
+
import h, { useMemo as oa, useRef as po, 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
|
-
import
|
|
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
|
|
8
|
+
import or 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 Ir, H3 as ne, H1 as it, TextField as dt, IconWeight as ae, MerchantLogo as vt, CategoryIconVariants as wo, InstitutionLogo as Oe, ChevronRightIcon as da, THEMES as ar, 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";
|
|
13
13
|
import { Honeybadger as fi } from "@honeybadger-io/react";
|
|
14
|
-
import
|
|
14
|
+
import sr from "numeral";
|
|
15
15
|
import $ from "@mui/material/Button";
|
|
16
16
|
import qt from "@mui/material/Tooltip";
|
|
17
17
|
import NA from "@mui/material/IconButton";
|
|
18
|
-
import
|
|
18
|
+
import cn 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 yo from "@mui/material/Popover";
|
|
23
23
|
import b from "@mui/material/Stack";
|
|
24
24
|
import li from "@mui/material/Checkbox";
|
|
25
25
|
import { addMonths as Re } from "date-fns/addMonths";
|
|
@@ -28,8 +28,8 @@ import { addWeeks as xt } from "date-fns/addWeeks";
|
|
|
28
28
|
import { addYears as _t } from "date-fns/addYears";
|
|
29
29
|
import { getDay as $t } from "date-fns/getDay";
|
|
30
30
|
import { isBefore as mA } from "date-fns/isBefore";
|
|
31
|
-
import { nextDay as
|
|
32
|
-
import { setDate as
|
|
31
|
+
import { nextDay as fn } from "date-fns/nextDay";
|
|
32
|
+
import { setDate as dn } from "date-fns/setDate";
|
|
33
33
|
import { startOfToday as fA } from "date-fns/startOfToday";
|
|
34
34
|
import { fromUnixTime as yA } from "date-fns/fromUnixTime";
|
|
35
35
|
import RA from "@mui/material/styles/useTheme";
|
|
@@ -51,62 +51,62 @@ 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 xo } 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";
|
|
58
58
|
import YA from "@mui/material/Grid";
|
|
59
59
|
import { differenceInCalendarDays as Ta } from "date-fns/differenceInCalendarDays";
|
|
60
60
|
import { endOfToday as zt } from "date-fns/endOfToday";
|
|
61
|
-
import { endOfYear as
|
|
62
|
-
import { startOfYear as
|
|
61
|
+
import { endOfYear as cr } from "date-fns/endOfYear";
|
|
62
|
+
import { startOfYear as fr } from "date-fns/startOfYear";
|
|
63
63
|
import { subDays as Ve } from "date-fns/subDays";
|
|
64
|
-
import { subYears as
|
|
64
|
+
import { subYears as dr } from "date-fns/subYears";
|
|
65
65
|
import Ya from "@mui/material/ButtonGroup";
|
|
66
66
|
import GA from "@mui/material/Tab";
|
|
67
67
|
import Se from "@mui/material/Tabs";
|
|
68
|
-
import
|
|
69
|
-
import
|
|
68
|
+
import Xn from "@mui/material/ToggleButton";
|
|
69
|
+
import Do from "@mui/material/ToggleButtonGroup";
|
|
70
70
|
import Va from "@mui/material/Dialog";
|
|
71
|
-
import
|
|
71
|
+
import jo 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";
|
|
75
|
-
import
|
|
75
|
+
import pn from "@mui/material/CircularProgress";
|
|
76
76
|
import { v4 as Fa } from "uuid";
|
|
77
77
|
import vi from "@mui/material/InputAdornment";
|
|
78
78
|
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
|
|
82
|
+
import { AccountBalance as ka, ChevronRight as ce, Payments as Ka, NoteStack as Za, Person as Ja, CheckCircle as _a, Icon as En, ExpandLess as $a, ExpandMore as As, AddBox as mo, 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";
|
|
86
86
|
import Di from "@mui/icons-material/ChevronRight";
|
|
87
87
|
import ji from "@mui/icons-material/ExpandMore";
|
|
88
88
|
import { DataGridPro as Gt } from "@mui/x-data-grid-pro";
|
|
89
|
-
import { intervalToDuration as rs, formatDuration as os, getDate as
|
|
89
|
+
import { intervalToDuration as rs, formatDuration as os, getDate as Er, fromUnixTime as Ai, startOfMonth as hr, format as Is, differenceInMonths as as, isSameDay as ss, subDays as cs, startOfToday as fs, endOfToday as ds } from "date-fns";
|
|
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 Oo } from "@tanstack/react-virtual";
|
|
94
|
+
import { parseISO as Lo } from "date-fns/parseISO";
|
|
95
95
|
import _e from "@mui/material/Skeleton";
|
|
96
96
|
import { isAfter as Ot } from "date-fns/isAfter";
|
|
97
|
-
import { subWeeks as
|
|
98
|
-
import { formatISO as
|
|
97
|
+
import { subWeeks as lr } from "date-fns/subWeeks";
|
|
98
|
+
import { formatISO as wn } from "date-fns/formatISO";
|
|
99
99
|
import { AdapterDateFns as Ct } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
100
|
-
import { DatePicker as
|
|
100
|
+
import { DatePicker as yn } 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
|
|
105
|
-
import
|
|
106
|
-
import
|
|
107
|
-
import
|
|
104
|
+
import { formatDistanceToNow as Qo } from "date-fns/formatDistanceToNow";
|
|
105
|
+
import xn from "@mui/material/Accordion";
|
|
106
|
+
import Dn from "@mui/material/AccordionDetails";
|
|
107
|
+
import jn from "@mui/material/AccordionSummary";
|
|
108
108
|
import Es from "@mui/material/Breadcrumbs";
|
|
109
|
-
import
|
|
109
|
+
import mn from "@mui/material/MenuItem";
|
|
110
110
|
import hs from "@mui/material/RadioGroup";
|
|
111
111
|
import ei from "@mui/icons-material/DeleteOutlined";
|
|
112
112
|
import Ri from "@mui/icons-material/Cancel";
|
|
@@ -116,23 +116,23 @@ import Rs from "@mui/icons-material/Edit";
|
|
|
116
116
|
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
|
-
import { getWeeksInMonth as
|
|
120
|
-
import
|
|
119
|
+
import { getWeeksInMonth as vr } from "date-fns/getWeeksInMonth";
|
|
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 Go } 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 Mo from "@mui/material/CardActionArea";
|
|
130
130
|
import gs from "@mui/icons-material/DragHandle";
|
|
131
|
-
import
|
|
131
|
+
import hn from "@mui/material/AlertTitle";
|
|
132
132
|
import Qi from "@mui/icons-material/Error";
|
|
133
133
|
import Xs from "@mui/material/Chip";
|
|
134
134
|
import ps from "@mui/icons-material/EditOutlined";
|
|
135
|
-
import { isToday as
|
|
135
|
+
import { isToday as On } from "date-fns/isToday";
|
|
136
136
|
import ws from "@mui/icons-material/CheckCircleRounded";
|
|
137
137
|
import ys from "@mui/icons-material/LanguageRounded";
|
|
138
138
|
import { isYesterday as xs } from "date-fns/isYesterday";
|
|
@@ -140,14 +140,14 @@ 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 No from "@mui/material/Link";
|
|
144
144
|
import Ls from "@mui/material/ListItemSecondaryAction";
|
|
145
|
-
import { useInView as
|
|
145
|
+
import { useInView as To } from "react-intersection-observer";
|
|
146
146
|
import Qs from "@mui/material/CardActions";
|
|
147
147
|
import qs from "@mui/icons-material/ChevronLeft";
|
|
148
|
-
import
|
|
148
|
+
import Rr from "@mui/material/Typography";
|
|
149
149
|
import Gs from "@mui/material/CssBaseline";
|
|
150
|
-
import { addSeconds as
|
|
150
|
+
import { addSeconds as ur } from "date-fns/addSeconds";
|
|
151
151
|
import { differenceInCalendarMonths as Ms } from "date-fns/differenceInCalendarMonths";
|
|
152
152
|
const Ns = async (A, t, i = "1.0.0", n = "Experiences") => {
|
|
153
153
|
const r = new rc(A, t), { analytics_session: o } = await r.initializeAnalyticsSession(
|
|
@@ -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 || {}), Yo = /* @__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))(Yo || {}), 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
|
+
], Vo = [
|
|
368
368
|
3,
|
|
369
369
|
4
|
|
370
370
|
/* REJECTED */
|
|
371
|
-
],
|
|
371
|
+
], Bo = [
|
|
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
|
+
], So = [...Bo, ...Vo];
|
|
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",
|
|
@@ -403,7 +403,7 @@ const aP = {
|
|
|
403
403
|
5: "Locked",
|
|
404
404
|
1: "Prevented",
|
|
405
405
|
4: "Rejected"
|
|
406
|
-
},
|
|
406
|
+
}, Ln = {
|
|
407
407
|
0: "Any",
|
|
408
408
|
9: "Cash",
|
|
409
409
|
1: "Checking",
|
|
@@ -418,7 +418,7 @@ const aP = {
|
|
|
418
418
|
11: "Prepaid",
|
|
419
419
|
8: "Property",
|
|
420
420
|
2: "Savings"
|
|
421
|
-
},
|
|
421
|
+
}, Uo = {
|
|
422
422
|
0: "account_balance",
|
|
423
423
|
9: "monetization_on",
|
|
424
424
|
1: "checkbook",
|
|
@@ -458,20 +458,20 @@ const aP = {
|
|
|
458
458
|
7: "camera_alt",
|
|
459
459
|
8: "sports_baseball",
|
|
460
460
|
9: "monetization_on"
|
|
461
|
-
},
|
|
461
|
+
}, Qn = [
|
|
462
462
|
_.ANY,
|
|
463
463
|
_.CASH,
|
|
464
464
|
_.CHECKING,
|
|
465
465
|
_.DIGITAL_WALLET,
|
|
466
466
|
_.PREPAID,
|
|
467
467
|
_.SAVINGS
|
|
468
|
-
],
|
|
468
|
+
], qn = [
|
|
469
469
|
_.CHECKING_LINE_OF_CREDIT,
|
|
470
470
|
_.CREDIT_CARD,
|
|
471
471
|
_.LINE_OF_CREDIT,
|
|
472
472
|
_.LOAN,
|
|
473
473
|
_.MORTGAGE
|
|
474
|
-
],
|
|
474
|
+
], Gn = [
|
|
475
475
|
_.ANY,
|
|
476
476
|
_.CASH,
|
|
477
477
|
_.CHECKING,
|
|
@@ -603,7 +603,7 @@ const aP = {
|
|
|
603
603
|
DENTIST: "CAT-ee48b740-c981-778b-3c02-04540dec0262",
|
|
604
604
|
BONUS: "CAT-f52f2a88-2cb6-04e4-e36a-58f7b7c6a798",
|
|
605
605
|
PET_FOOD_SUPPLIES: "CAT-fbcdb437-2533-2857-1d1a-0624c9d9e1dc"
|
|
606
|
-
},
|
|
606
|
+
}, Pr = [
|
|
607
607
|
g.CREDIT_CARD_PAYMENT,
|
|
608
608
|
g.MORTGAGE_PAYMENT,
|
|
609
609
|
g.AUTO_PAYMENT
|
|
@@ -774,7 +774,7 @@ const aP = {
|
|
|
774
774
|
[g.TRAVEL]: "airplane_ticket",
|
|
775
775
|
[g.UNCATEGORIZED]: "category",
|
|
776
776
|
UNKNOWN: "help"
|
|
777
|
-
},
|
|
777
|
+
}, br = 9999999999e-2;
|
|
778
778
|
var ui = /* @__PURE__ */ ((A) => (A.CAD = "CAD", A.USD = "USD", A))(ui || {}), U = /* @__PURE__ */ ((A) => (A[A.Unknown = 0] = "Unknown", A[A.EveryWeek = 1] = "EveryWeek", A[A.EveryOtherWeek = 2] = "EveryOtherWeek", A[A.EveryMonth = 3] = "EveryMonth", A[A.EveryOtherMonth = 4] = "EveryOtherMonth", A[A.EveryQuarter = 5] = "EveryQuarter", A[A.EveryOtherQuarter = 6] = "EveryOtherQuarter", A[A.EveryYear = 7] = "EveryYear", A))(U || {});
|
|
779
779
|
const cP = [
|
|
780
780
|
{ id: 0, copy: "frequency_unknown" },
|
|
@@ -791,18 +791,18 @@ 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 Fo = 48, Wo = 4;
|
|
795
795
|
var ks = /* @__PURE__ */ ((A) => (A.Small = "small", A.Medium = "medium", A.Large = "large", A))(ks || {});
|
|
796
|
-
const Bt = 44,
|
|
796
|
+
const Bt = 44, Hr = (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));
|
|
798
798
|
if (i)
|
|
799
799
|
return i.subCategories.find((n) => n.guid === t);
|
|
800
800
|
}, dP = (A, t) => {
|
|
801
801
|
const i = [];
|
|
802
802
|
for (const n of t) {
|
|
803
|
-
const r =
|
|
803
|
+
const r = Hr(A, n.category_guid);
|
|
804
804
|
if (!r) continue;
|
|
805
|
-
const o = r.parent_guid ?? r.guid, I =
|
|
805
|
+
const o = r.parent_guid ?? r.guid, I = Hr(A, o);
|
|
806
806
|
if (!I) continue;
|
|
807
807
|
const a = {
|
|
808
808
|
amount: n.total,
|
|
@@ -907,9 +907,9 @@ class Ae {
|
|
|
907
907
|
const M = (A, t, i) => {
|
|
908
908
|
switch (ht()) {
|
|
909
909
|
case "fr-ca":
|
|
910
|
-
return
|
|
910
|
+
return sr(A).format(`${t} $`, i);
|
|
911
911
|
default:
|
|
912
|
-
return
|
|
912
|
+
return sr(A).format(`$${t}`, i);
|
|
913
913
|
}
|
|
914
914
|
}, _s = () => {
|
|
915
915
|
switch (ht()) {
|
|
@@ -918,11 +918,11 @@ const M = (A, t, i) => {
|
|
|
918
918
|
default:
|
|
919
919
|
return ui.USD;
|
|
920
920
|
}
|
|
921
|
-
},
|
|
921
|
+
}, ln = (A) => A != null && A !== "" && isFinite(A), $s = {
|
|
922
922
|
style: "percent",
|
|
923
923
|
minimumFractionDigits: 2,
|
|
924
924
|
maximumFractionDigits: 2
|
|
925
|
-
}, Gi = (A, t = $s) =>
|
|
925
|
+
}, Gi = (A, t = $s) => ln(A) ? new Intl.NumberFormat(ht(), t).format(Number(A)) : A, Ac = (A) => new Intl.PluralRules(ht(), A), ko = (A, t = { type: "ordinal" }, i = {
|
|
926
926
|
one: "st",
|
|
927
927
|
two: "nd",
|
|
928
928
|
few: "rd",
|
|
@@ -930,35 +930,35 @@ const M = (A, t, i) => {
|
|
|
930
930
|
}) => {
|
|
931
931
|
const n = Ac(t).select(A);
|
|
932
932
|
return `${A}${i[n]}`;
|
|
933
|
-
},
|
|
933
|
+
}, Mn = (A) => {
|
|
934
934
|
const t = $t(A);
|
|
935
|
-
let i =
|
|
935
|
+
let i = fn(A, t);
|
|
936
936
|
for (; mA(i, fA()); )
|
|
937
937
|
i = xt(i, 1);
|
|
938
938
|
return i;
|
|
939
939
|
}, ec = (A) => {
|
|
940
|
-
const t =
|
|
940
|
+
const t = Mn(A);
|
|
941
941
|
return xt(t, 1);
|
|
942
|
-
},
|
|
943
|
-
let t =
|
|
942
|
+
}, zr = (A) => {
|
|
943
|
+
let t = dn(fA(), A.getDate());
|
|
944
944
|
for (; mA(t, fA()); )
|
|
945
945
|
t = Re(t, 1);
|
|
946
946
|
return t;
|
|
947
947
|
}, tc = (A) => {
|
|
948
|
-
const t =
|
|
948
|
+
const t = Mn(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), Zo = (A) => A ? nA(yA(A), AA.MONTH_YEAR) : "";
|
|
962
962
|
class rc {
|
|
963
963
|
fetchInstance;
|
|
964
964
|
constructor(t, i) {
|
|
@@ -987,7 +987,7 @@ class rc {
|
|
|
987
987
|
throw i;
|
|
988
988
|
});
|
|
989
989
|
}
|
|
990
|
-
class
|
|
990
|
+
class Cr {
|
|
991
991
|
fetchInstance;
|
|
992
992
|
constructor(t) {
|
|
993
993
|
if (!t) {
|
|
@@ -1062,7 +1062,7 @@ class lP {
|
|
|
1062
1062
|
getLocalizedCopy = async (t) => this.fetchInstance.post(Q.LOCALIZED_COPY, t).then((i) => i);
|
|
1063
1063
|
getLocalizedContent = async (t) => this.fetchInstance.post(`${Q.LOCALIZED_CONTENT}/${t}`).then((i) => i);
|
|
1064
1064
|
}
|
|
1065
|
-
class
|
|
1065
|
+
class gr {
|
|
1066
1066
|
fetchInstance;
|
|
1067
1067
|
constructor(t, i) {
|
|
1068
1068
|
this.fetchInstance = new Ae(t, i);
|
|
@@ -1078,7 +1078,7 @@ class Cr {
|
|
|
1078
1078
|
// A bug ticket has been filed to fix it, but should not require any changes here.
|
|
1079
1079
|
markAllAsViewed = (t) => this.fetchInstance.put(`${Q.NOTIFICATIONS}/mark_all_as_viewed`, { channel: t }).finally();
|
|
1080
1080
|
}
|
|
1081
|
-
class
|
|
1081
|
+
class Xr {
|
|
1082
1082
|
fetchInstance;
|
|
1083
1083
|
constructor(t, i) {
|
|
1084
1084
|
this.fetchInstance = new Ae(t, i);
|
|
@@ -1092,7 +1092,7 @@ class gr {
|
|
|
1092
1092
|
updateScheduledPayment = async (t) => this.fetchInstance.put(`${Q.SCHEDULED_PAYMENTS}/${t.guid}`, t).then((i) => i.scheduled_payment);
|
|
1093
1093
|
deleteScheduledPayment = async (t) => this.fetchInstance.delete(`${Q.SCHEDULED_PAYMENTS}/${t}`).then((i) => i);
|
|
1094
1094
|
}
|
|
1095
|
-
class
|
|
1095
|
+
class pr {
|
|
1096
1096
|
fetchInstance;
|
|
1097
1097
|
constructor(t, i) {
|
|
1098
1098
|
this.fetchInstance = new Ae(t, i);
|
|
@@ -1101,21 +1101,21 @@ class Xr {
|
|
|
1101
1101
|
updateUser = async (t) => this.fetchInstance.put(Q.USER, t).then((i) => i.user);
|
|
1102
1102
|
updateUserProfile = async (t) => this.fetchInstance.put(`${Q.USER_PROFILES}/${t.guid}`, t).then((i) => i.user_profile);
|
|
1103
1103
|
}
|
|
1104
|
-
class
|
|
1104
|
+
class wr {
|
|
1105
1105
|
fetchInstance;
|
|
1106
1106
|
constructor(t, i) {
|
|
1107
1107
|
this.fetchInstance = new Ae(t, i);
|
|
1108
1108
|
}
|
|
1109
1109
|
requestWidgetUrl = async (t) => this.fetchInstance.post(Q.WIDGET_URLS, t).then((i) => i.widget_url);
|
|
1110
1110
|
}
|
|
1111
|
-
const
|
|
1112
|
-
const n =
|
|
1111
|
+
const An = (A, t) => A.reduce((i, n) => (i[n.guid] = t?.includes(n.guid), i), {}), oc = (A) => A.reduce((t, i) => {
|
|
1112
|
+
const n = Ln[i.account_type], r = {
|
|
1113
1113
|
accountNumber: i.account_number,
|
|
1114
1114
|
name: i.name || i.feed_name,
|
|
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
|
+
}, {}), Jo = ({
|
|
1119
1119
|
accounts: A,
|
|
1120
1120
|
accountFilterButtonEl: t,
|
|
1121
1121
|
copy: i,
|
|
@@ -1131,7 +1131,7 @@ const $i = (A, t) => A.reduce((i, n) => (i[n.guid] = t?.includes(n.guid), i), {}
|
|
|
1131
1131
|
}) => {
|
|
1132
1132
|
const l = oa(() => oc(A), [A]), v = A.length < 1, u = !!t, H = Object.values(c).every((P) => !!P);
|
|
1133
1133
|
return /* @__PURE__ */ e(
|
|
1134
|
-
|
|
1134
|
+
yo,
|
|
1135
1135
|
{
|
|
1136
1136
|
anchorEl: t,
|
|
1137
1137
|
anchorOrigin: {
|
|
@@ -1192,7 +1192,7 @@ const $i = (A, t) => A.reduce((i, n) => (i[n.guid] = t?.includes(n.guid), i), {}
|
|
|
1192
1192
|
},
|
|
1193
1193
|
children: [
|
|
1194
1194
|
/* @__PURE__ */ e(W, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ e(
|
|
1195
|
-
|
|
1195
|
+
cn,
|
|
1196
1196
|
{
|
|
1197
1197
|
control: /* @__PURE__ */ e(
|
|
1198
1198
|
li,
|
|
@@ -1263,7 +1263,7 @@ const $i = (A, t) => A.reduce((i, n) => (i[n.guid] = t?.includes(n.guid), i), {}
|
|
|
1263
1263
|
disableGutters: !0,
|
|
1264
1264
|
disablePadding: !0,
|
|
1265
1265
|
children: /* @__PURE__ */ e(
|
|
1266
|
-
|
|
1266
|
+
cn,
|
|
1267
1267
|
{
|
|
1268
1268
|
control: /* @__PURE__ */ e(
|
|
1269
1269
|
li,
|
|
@@ -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
|
+
Jo.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 = po();
|
|
1347
1347
|
return Ht(() => {
|
|
1348
1348
|
t.current = A;
|
|
1349
1349
|
}, [A]), t.current;
|
|
1350
|
-
},
|
|
1350
|
+
}, _o = ({
|
|
1351
1351
|
accounts: A,
|
|
1352
1352
|
copy: t,
|
|
1353
1353
|
onFilterClick: i,
|
|
@@ -1359,10 +1359,10 @@ const Ic = (A, t) => {
|
|
|
1359
1359
|
variant: a = "outlined"
|
|
1360
1360
|
}) => {
|
|
1361
1361
|
const { isMobile: c } = zA(), [d, f] = h.useState(null), [E, l] = h.useState(
|
|
1362
|
-
|
|
1362
|
+
An(A, r)
|
|
1363
1363
|
);
|
|
1364
1364
|
h.useEffect(() => {
|
|
1365
|
-
l(
|
|
1365
|
+
l(An(A, r));
|
|
1366
1366
|
}, [A, r]);
|
|
1367
1367
|
const v = (H) => {
|
|
1368
1368
|
f(H.currentTarget);
|
|
@@ -1393,7 +1393,7 @@ const Ic = (A, t) => {
|
|
|
1393
1393
|
}
|
|
1394
1394
|
),
|
|
1395
1395
|
/* @__PURE__ */ e(
|
|
1396
|
-
|
|
1396
|
+
Jo,
|
|
1397
1397
|
{
|
|
1398
1398
|
accountFilterButtonEl: d,
|
|
1399
1399
|
accounts: A,
|
|
@@ -1409,7 +1409,7 @@ const Ic = (A, t) => {
|
|
|
1409
1409
|
}), l(y);
|
|
1410
1410
|
},
|
|
1411
1411
|
onCancelClick: () => {
|
|
1412
|
-
l(
|
|
1412
|
+
l(An(A, r)), u();
|
|
1413
1413
|
},
|
|
1414
1414
|
onConnectAccountClick: n,
|
|
1415
1415
|
onFilterClick: () => {
|
|
@@ -1459,7 +1459,7 @@ const Ic = (A, t) => {
|
|
|
1459
1459
|
"& > .kyper-text": {
|
|
1460
1460
|
marginRight: A.Spacing.XSmall
|
|
1461
1461
|
}
|
|
1462
|
-
}),
|
|
1462
|
+
}), yr = ({
|
|
1463
1463
|
ariaLabel: A,
|
|
1464
1464
|
color: t,
|
|
1465
1465
|
height: i,
|
|
@@ -1531,7 +1531,7 @@ const Ic = (A, t) => {
|
|
|
1531
1531
|
width: "100%"
|
|
1532
1532
|
}
|
|
1533
1533
|
});
|
|
1534
|
-
},
|
|
1534
|
+
}, xr = ({
|
|
1535
1535
|
ariaLabel: A,
|
|
1536
1536
|
averageLineHeight: t,
|
|
1537
1537
|
bottomHeight: i,
|
|
@@ -1549,7 +1549,7 @@ const Ic = (A, t) => {
|
|
|
1549
1549
|
const v = KA(), u = dc(v, E), H = d / I * c, P = Math.abs(d) / I * i, p = a === void 0 || a === r ? "primary" : "secondary";
|
|
1550
1550
|
return /* @__PURE__ */ s("div", { className: `mx-cmn-barchart-bar-column ${u}`, children: [
|
|
1551
1551
|
/* @__PURE__ */ e("div", { style: { height: c }, children: d >= 0 && /* @__PURE__ */ e(
|
|
1552
|
-
|
|
1552
|
+
yr,
|
|
1553
1553
|
{
|
|
1554
1554
|
ariaLabel: A,
|
|
1555
1555
|
color: n,
|
|
@@ -1564,7 +1564,7 @@ const Ic = (A, t) => {
|
|
|
1564
1564
|
/* @__PURE__ */ e("div", { className: "mx-cmn-zero-line" }),
|
|
1565
1565
|
t !== 0 && /* @__PURE__ */ e("div", { className: "mx-cmn-chart-average", style: { bottom: t } }),
|
|
1566
1566
|
/* @__PURE__ */ e("div", { style: { height: i }, children: d < 0 && /* @__PURE__ */ e(
|
|
1567
|
-
|
|
1567
|
+
yr,
|
|
1568
1568
|
{
|
|
1569
1569
|
ariaLabel: A,
|
|
1570
1570
|
color: n,
|
|
@@ -1609,7 +1609,7 @@ const Ic = (A, t) => {
|
|
|
1609
1609
|
"& .mx-cmn-clickable": {
|
|
1610
1610
|
cursor: "pointer"
|
|
1611
1611
|
}
|
|
1612
|
-
}), Ec = (A, t) => A + t, hc = (A, t) => Math.abs(t) > A ? Math.abs(t) : A, lc = (A, t) => [...A, t.value],
|
|
1612
|
+
}), Ec = (A, t) => A + t, hc = (A, t) => Math.abs(t) > A ? Math.abs(t) : A, lc = (A, t) => [...A, t.value], Dr = (A, t, i) => {
|
|
1613
1613
|
const n = A && t ? i / 2 : i;
|
|
1614
1614
|
return A ? n : 0;
|
|
1615
1615
|
}, vc = (A, t, i, n) => A / (t < 0 ? -i : t) * n || 0, RP = ({
|
|
@@ -1624,8 +1624,8 @@ const Ic = (A, t) => {
|
|
|
1624
1624
|
selectedIndex: c,
|
|
1625
1625
|
valueFormatter: d = (f) => `${f}`
|
|
1626
1626
|
}) => {
|
|
1627
|
-
const f = KA(), E = Rc(f), l = n.reduce(lc, []), v = A !== void 0 ? A : l.reduce(Ec, 0) / l.length, u = Math.max(...l), H = Math.min(...l), P = l.reduce(hc, 0), p = u >= 0, y = H < 0, x =
|
|
1628
|
-
|
|
1627
|
+
const f = KA(), E = Rc(f), l = n.reduce(lc, []), v = A !== void 0 ? A : l.reduce(Ec, 0) / l.length, u = Math.max(...l), H = Math.min(...l), P = l.reduce(hc, 0), p = u >= 0, y = H < 0, x = Dr(p, y, r), w = Dr(y, p, r), D = vc(v, u, H, x || w), m = (O) => c === void 0 || O === c ? i : `${i}80`, j = () => /* @__PURE__ */ e(
|
|
1628
|
+
xr,
|
|
1629
1629
|
{
|
|
1630
1630
|
averageLineHeight: D,
|
|
1631
1631
|
bottomHeight: w,
|
|
@@ -1641,7 +1641,7 @@ const Ic = (A, t) => {
|
|
|
1641
1641
|
/* @__PURE__ */ e(j, {}),
|
|
1642
1642
|
n.map((O, T) => /* @__PURE__ */ s(h.Fragment, { children: [
|
|
1643
1643
|
/* @__PURE__ */ e(
|
|
1644
|
-
|
|
1644
|
+
xr,
|
|
1645
1645
|
{
|
|
1646
1646
|
ariaLabel: O.ariaLabel,
|
|
1647
1647
|
averageLineHeight: D,
|
|
@@ -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,
|
|
@@ -2011,7 +2011,7 @@ const Cc = ({
|
|
|
2011
2011
|
] })
|
|
2012
2012
|
] })
|
|
2013
2013
|
] });
|
|
2014
|
-
}, mc = C(jc),
|
|
2014
|
+
}, mc = C(jc), Nn = ({
|
|
2015
2015
|
baseline: A = "max",
|
|
2016
2016
|
colors: t,
|
|
2017
2017
|
datasets: i,
|
|
@@ -2159,8 +2159,8 @@ const Cc = ({
|
|
|
2159
2159
|
},
|
|
2160
2160
|
children: A
|
|
2161
2161
|
}
|
|
2162
|
-
),
|
|
2163
|
-
|
|
2162
|
+
), AI = h.createContext(null), eI = ({ children: A, availableHeight: t, availableWidth: i }) => /* @__PURE__ */ e(
|
|
2163
|
+
AI.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, tI = () => UA("useAppConfig").globalStore.appDataStore.appConfig, te = () => UA("useBudgetsStore").globalStore.budgetsStore, Tn = () => UA("useCashflowStore").globalStore.cashflowStore, qA = () => UA("useCategoryStore").globalStore.categoryStore, iI = () => 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, Yn = () => UA("useHelpStore").globalStore.helpStore, Oc = () => UA("useMerchantStore").globalStore.merchantStore, Lc = () => UA("useNetWorthStore").globalStore.netWorthStore, nI = () => 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(AI);
|
|
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(), rI = ({ categoryGuid: A, topLevelCategoryGuid: t }) => {
|
|
2183
2183
|
const { categories: i } = X(), { getCategoryName: n } = qA(), r = n(A);
|
|
2184
2184
|
return /* @__PURE__ */ s(b, { 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 = po(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(rI, { 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(rI, { 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
|
+
xo,
|
|
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(jo, { sx: { lineHeight: 1.5 }, children: E }),
|
|
2588
2588
|
/* @__PURE__ */ e(
|
|
2589
2589
|
sa,
|
|
2590
2590
|
{
|
|
@@ -2703,7 +2703,7 @@ const Cc = ({
|
|
|
2703
2703
|
)
|
|
2704
2704
|
] })
|
|
2705
2705
|
}
|
|
2706
|
-
),
|
|
2706
|
+
), jr = ({
|
|
2707
2707
|
calendarActions: A,
|
|
2708
2708
|
color: t = "primary",
|
|
2709
2709
|
copy: i,
|
|
@@ -2739,7 +2739,7 @@ const Cc = ({
|
|
|
2739
2739
|
if (l === i.dateRangePickerCopy.dateRangeThisMonth)
|
|
2740
2740
|
iA[0] = uA ? Ne(oA, 1) : Re(oA, 1), iA[1] = BA(uA ? Ne(sA, 1) : Re(sA, 1));
|
|
2741
2741
|
else if (l === i.dateRangePickerCopy.dateRangeYTD || l === i.dateRangePickerCopy.dateRangeLastYear)
|
|
2742
|
-
iA[0] = uA ? fr(
|
|
2742
|
+
iA[0] = uA ? dr(fr(oA), 1) : _t(fr(oA), 1), iA[1] = uA ? dr(cr(oA), 1) : _t(cr(oA), 1);
|
|
2743
2743
|
else {
|
|
2744
2744
|
const cA = Ta(sA, oA);
|
|
2745
2745
|
iA[0] = Y === "previous" ? Ve(oA, cA) : We(oA, cA), iA[1] = Y === "previous" ? Ve(sA, cA) : We(sA, cA);
|
|
@@ -2845,14 +2845,14 @@ const Cc = ({
|
|
|
2845
2845
|
}
|
|
2846
2846
|
),
|
|
2847
2847
|
I === "timeframebuttons" && /* @__PURE__ */ e(
|
|
2848
|
-
|
|
2848
|
+
Do,
|
|
2849
2849
|
{
|
|
2850
2850
|
color: t,
|
|
2851
2851
|
exclusive: !0,
|
|
2852
2852
|
orientation: "horizontal",
|
|
2853
2853
|
value: w,
|
|
2854
2854
|
children: m.buttons.map((Y) => /* @__PURE__ */ e(
|
|
2855
|
-
|
|
2855
|
+
Xn,
|
|
2856
2856
|
{
|
|
2857
2857
|
onClick: () => tA(Y.value),
|
|
2858
2858
|
sx: {
|
|
@@ -2919,7 +2919,7 @@ const Cc = ({
|
|
|
2919
2919
|
primaryText: i.dateRangeEditApply,
|
|
2920
2920
|
title: i.dateRangeEditTitle,
|
|
2921
2921
|
children: /* @__PURE__ */ e(
|
|
2922
|
-
|
|
2922
|
+
Ir,
|
|
2923
2923
|
{
|
|
2924
2924
|
copy: i.dateRangePickerCopy,
|
|
2925
2925
|
dateRange: u,
|
|
@@ -2946,7 +2946,7 @@ const Cc = ({
|
|
|
2946
2946
|
}
|
|
2947
2947
|
},
|
|
2948
2948
|
children: /* @__PURE__ */ e(
|
|
2949
|
-
|
|
2949
|
+
Ir,
|
|
2950
2950
|
{
|
|
2951
2951
|
copy: i.dateRangePickerCopy,
|
|
2952
2952
|
dateRange: u,
|
|
@@ -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 = Fo,
|
|
2972
|
+
strokeWidth: n = Wo,
|
|
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
|
+
}), oI = ({
|
|
3021
3021
|
color: A = "",
|
|
3022
3022
|
percent: t = 0,
|
|
3023
|
-
size: i =
|
|
3024
|
-
strokeWidth: n =
|
|
3023
|
+
size: i = Fo,
|
|
3024
|
+
strokeWidth: n = Wo,
|
|
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 II(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 }] = II();
|
|
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(eI, { 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 }] = II(), { onEvent: P } = K(), { isDesktop: p, isLargeDesktop: y, isMobile: x, isTablet: w } = zA(), { displayedDateRange: D, selectedAccountGuids: m, setSelectedAccountGuids: j } = pA(), { common: O } = X(), T = () => {
|
|
3157
3157
|
c && (c(), P(V.WIDGET_BACK_CLICK));
|
|
3158
3158
|
}, tA = {
|
|
3159
3159
|
accountFilterOptionsCopy: {
|
|
@@ -3210,7 +3210,7 @@ const pt = ({
|
|
|
3210
3210
|
{
|
|
3211
3211
|
action: /* @__PURE__ */ s(b, { alignItems: "center", flexDirection: "row", children: [
|
|
3212
3212
|
p && i && /* @__PURE__ */ e(L, { sx: { flexGrow: 1 }, children: /* @__PURE__ */ e(
|
|
3213
|
-
|
|
3213
|
+
jr,
|
|
3214
3214
|
{
|
|
3215
3215
|
calendarActions: i,
|
|
3216
3216
|
copy: Y,
|
|
@@ -3220,7 +3220,7 @@ const pt = ({
|
|
|
3220
3220
|
}
|
|
3221
3221
|
) }),
|
|
3222
3222
|
A && /* @__PURE__ */ e(
|
|
3223
|
-
|
|
3223
|
+
_o,
|
|
3224
3224
|
{
|
|
3225
3225
|
accounts: A,
|
|
3226
3226
|
copy: tA,
|
|
@@ -3284,7 +3284,7 @@ const pt = ({
|
|
|
3284
3284
|
i && (x || w) && /* @__PURE__ */ s(b, { gap: 24, justifyContent: "center", sx: { mt: 16 }, children: [
|
|
3285
3285
|
f && /* @__PURE__ */ e(G, {}),
|
|
3286
3286
|
/* @__PURE__ */ e(
|
|
3287
|
-
|
|
3287
|
+
jr,
|
|
3288
3288
|
{
|
|
3289
3289
|
calendarActions: i,
|
|
3290
3290
|
copy: Y,
|
|
@@ -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(eI, { availableHeight: u, availableWidth: H, children: n }) })
|
|
3298
3298
|
]
|
|
3299
3299
|
}
|
|
3300
3300
|
);
|
|
@@ -3309,7 +3309,7 @@ const pt = ({
|
|
|
3309
3309
|
width: "100%"
|
|
3310
3310
|
},
|
|
3311
3311
|
children: /* @__PURE__ */ s(b, { alignItems: "center", direction: "column", justifyContent: "center", sx: { height: "100%" }, children: [
|
|
3312
|
-
A === ct.Loading && /* @__PURE__ */ e(
|
|
3312
|
+
A === ct.Loading && /* @__PURE__ */ e(pn, { color: "primary", size: 48 }),
|
|
3313
3313
|
/* @__PURE__ */ e(
|
|
3314
3314
|
R,
|
|
3315
3315
|
{
|
|
@@ -3325,19 +3325,19 @@ const pt = ({
|
|
|
3325
3325
|
);
|
|
3326
3326
|
}, Hi = C(Uc);
|
|
3327
3327
|
var ct = /* @__PURE__ */ ((A) => (A.Loading = "loading", A.Error = "error", A))(ct || {}), de = /* @__PURE__ */ ((A) => (A.Currency = "currency", A.Date = "date", A.Input = "input", A.Select = "select", A))(de || {});
|
|
3328
|
-
const
|
|
3328
|
+
const mr = "connect_widget", Or = "connections_widget", Fc = ({
|
|
3329
3329
|
loadWidgetProps: A,
|
|
3330
3330
|
onClose: t,
|
|
3331
3331
|
showConnectWidget: i,
|
|
3332
3332
|
title: n
|
|
3333
3333
|
}) => {
|
|
3334
3334
|
let r;
|
|
3335
|
-
const { refreshAccounts: o } = CA(), { loadWidget: I } =
|
|
3335
|
+
const { refreshAccounts: o } = CA(), { loadWidget: I } = iI(), { 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) => {
|
|
3339
3339
|
r = new Sa({
|
|
3340
|
-
container: `#${
|
|
3340
|
+
container: `#${mr}`,
|
|
3341
3341
|
style: {
|
|
3342
3342
|
height: "calc(100% - 62px)",
|
|
3343
3343
|
maxWidth: "450px",
|
|
@@ -3363,7 +3363,7 @@ const jr = "connect_widget", mr = "connections_widget", Fc = ({
|
|
|
3363
3363
|
t(), o();
|
|
3364
3364
|
},
|
|
3365
3365
|
title: n,
|
|
3366
|
-
children: /* @__PURE__ */ s("div", { id:
|
|
3366
|
+
children: /* @__PURE__ */ s("div", { id: mr, children: [
|
|
3367
3367
|
f && /* @__PURE__ */ e(Hi, { status: ct.Error }),
|
|
3368
3368
|
c && /* @__PURE__ */ e(Hi, { status: ct.Loading })
|
|
3369
3369
|
] })
|
|
@@ -3406,10 +3406,10 @@ const jr = "connect_widget", mr = "connections_widget", Fc = ({
|
|
|
3406
3406
|
H.error_amount_must_be_equal_to,
|
|
3407
3407
|
M(c, "0")
|
|
3408
3408
|
)
|
|
3409
|
-
), f?.(!1)) : Number(O) >
|
|
3409
|
+
), f?.(!1)) : Number(O) > br ? (v(
|
|
3410
3410
|
z(
|
|
3411
3411
|
H.error_amount_must_be_less_than_or_equal_to,
|
|
3412
|
-
M(
|
|
3412
|
+
M(br, A ? "0,0.00" : "0,0", Math.floor)
|
|
3413
3413
|
)
|
|
3414
3414
|
), f?.(!1)) : O.toString().match(D) ? o() ? (v(""), f?.(!0)) : (v(I), f?.(!1)) : (v(H.error_amount_is_invalid), f?.(!1)), d(O.toString());
|
|
3415
3415
|
};
|
|
@@ -3443,7 +3443,7 @@ const jr = "connect_widget", mr = "connections_widget", Fc = ({
|
|
|
3443
3443
|
}), ee = ({ label: A = "", size: t = 32 }) => {
|
|
3444
3444
|
const i = KA();
|
|
3445
3445
|
return /* @__PURE__ */ s(b, { alignItems: "center", gap: i.Spacing.XLarge, height: 450, justifyContent: "center", children: [
|
|
3446
|
-
/* @__PURE__ */ e(
|
|
3446
|
+
/* @__PURE__ */ e(pn, { size: t }),
|
|
3447
3447
|
A && /* @__PURE__ */ e(R, { children: A })
|
|
3448
3448
|
] });
|
|
3449
3449
|
}, HP = ({
|
|
@@ -3512,7 +3512,7 @@ const jr = "connect_widget", mr = "connections_widget", Fc = ({
|
|
|
3512
3512
|
value: r
|
|
3513
3513
|
}
|
|
3514
3514
|
) });
|
|
3515
|
-
}, Ti = C(kc),
|
|
3515
|
+
}, Ti = C(kc), Lr = ({
|
|
3516
3516
|
checked: A = !1,
|
|
3517
3517
|
label: t,
|
|
3518
3518
|
sx: i = {},
|
|
@@ -3533,7 +3533,7 @@ const jr = "connect_widget", mr = "connections_widget", Fc = ({
|
|
|
3533
3533
|
py: 4,
|
|
3534
3534
|
sx: { "&:hover": { borderColor: o.palette.action.active }, ...i },
|
|
3535
3535
|
children: /* @__PURE__ */ e(qt, { title: n, children: /* @__PURE__ */ e(
|
|
3536
|
-
|
|
3536
|
+
cn,
|
|
3537
3537
|
{
|
|
3538
3538
|
control: /* @__PURE__ */ e(
|
|
3539
3539
|
Wa,
|
|
@@ -3647,8 +3647,8 @@ const jr = "connect_widget", mr = "connections_widget", Fc = ({
|
|
|
3647
3647
|
}
|
|
3648
3648
|
)
|
|
3649
3649
|
}
|
|
3650
|
-
),
|
|
3651
|
-
const { config: n } =
|
|
3650
|
+
), aI = ({ description: A, label: t, title: i }) => {
|
|
3651
|
+
const { config: n } = tI(), [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: [
|
|
@@ -3766,7 +3766,7 @@ const jr = "connect_widget", mr = "connections_widget", Fc = ({
|
|
|
3766
3766
|
children: A
|
|
3767
3767
|
}
|
|
3768
3768
|
);
|
|
3769
|
-
},
|
|
3769
|
+
}, vn = ({
|
|
3770
3770
|
isChecked: A,
|
|
3771
3771
|
isDisabled: t = !1,
|
|
3772
3772
|
onClick: i,
|
|
@@ -3867,7 +3867,7 @@ class Zc {
|
|
|
3867
3867
|
}
|
|
3868
3868
|
};
|
|
3869
3869
|
}
|
|
3870
|
-
class
|
|
3870
|
+
class Qr {
|
|
3871
3871
|
fetchInstance;
|
|
3872
3872
|
constructor(t, i) {
|
|
3873
3873
|
this.fetchInstance = new Ae(t, i);
|
|
@@ -3877,14 +3877,14 @@ class Lr {
|
|
|
3877
3877
|
class Jc {
|
|
3878
3878
|
appConfig;
|
|
3879
3879
|
appData = {};
|
|
3880
|
-
api = new
|
|
3880
|
+
api = new Qr("/", "");
|
|
3881
3881
|
banner = {};
|
|
3882
|
-
bannerApi = new
|
|
3882
|
+
bannerApi = new Cr("/");
|
|
3883
3883
|
constructor(t) {
|
|
3884
3884
|
this.appConfig = t, DA(this);
|
|
3885
3885
|
}
|
|
3886
3886
|
initialize = async (t, i) => {
|
|
3887
|
-
this.api = new
|
|
3887
|
+
this.api = new Qr(t, i), await this.loadAppData(), this.bannerApi = new Cr(this.appData.address?.bullseye), await this.loadBanner();
|
|
3888
3888
|
};
|
|
3889
3889
|
get clientCommunicationProfile() {
|
|
3890
3890
|
return this.appData.client_communication_profile;
|
|
@@ -3988,7 +3988,7 @@ class Af {
|
|
|
3988
3988
|
});
|
|
3989
3989
|
};
|
|
3990
3990
|
}
|
|
3991
|
-
class
|
|
3991
|
+
class qr {
|
|
3992
3992
|
fetchInstance;
|
|
3993
3993
|
constructor(t, i) {
|
|
3994
3994
|
this.fetchInstance = new Ae(t, i);
|
|
@@ -4004,7 +4004,7 @@ class Qr {
|
|
|
4004
4004
|
getBudgets = async () => this.fetchInstance.get(Q.BUDGETS).then((t) => t.budgets).catch((t) => t);
|
|
4005
4005
|
updateBudget = async (t) => this.fetchInstance.put(`${Q.BUDGETS}/${t.guid}`, t).then((i) => i.budget).catch((i) => i);
|
|
4006
4006
|
}
|
|
4007
|
-
const
|
|
4007
|
+
const Gr = (A, t) => !A && !t ? 0 : !A && t ? 101 : t / A * 100, Mr = (A, t) => {
|
|
4008
4008
|
const i = {
|
|
4009
4009
|
background: t.palette.success.main,
|
|
4010
4010
|
description: A <= 100 ? t.palette.text.secondary : t.palette.error.main,
|
|
@@ -4023,10 +4023,10 @@ const qr = (A, t) => !A && !t ? 0 : !A && t ? 101 : t / A * 100, Gr = (A, t) =>
|
|
|
4023
4023
|
for (const o of A) {
|
|
4024
4024
|
const I = Ks(t, o.category_guid);
|
|
4025
4025
|
if (!I) continue;
|
|
4026
|
-
const a = I.totalAmount, c =
|
|
4026
|
+
const a = I.totalAmount, c = Gr(o.amount, a), d = o.amount - a;
|
|
4027
4027
|
r.push({
|
|
4028
4028
|
...o,
|
|
4029
|
-
budgetColors:
|
|
4029
|
+
budgetColors: Mr(c, n),
|
|
4030
4030
|
category: I,
|
|
4031
4031
|
description: z(
|
|
4032
4032
|
d < 0 ? i.budget_remaining_over : i.budget_remaining_left,
|
|
@@ -4042,10 +4042,10 @@ const qr = (A, t) => !A && !t ? 0 : !A && t ? 101 : t / A * 100, Gr = (A, t) =>
|
|
|
4042
4042
|
if (!I) continue;
|
|
4043
4043
|
const a = I.currentAmount, c = r.find((E) => E.category_guid === I.parent_guid);
|
|
4044
4044
|
if (!c) continue;
|
|
4045
|
-
const d = o.amount - a, f =
|
|
4045
|
+
const d = o.amount - a, f = Gr(o.amount, a);
|
|
4046
4046
|
c && c.subBudgets.push({
|
|
4047
4047
|
...o,
|
|
4048
|
-
budgetColors:
|
|
4048
|
+
budgetColors: Mr(f, n),
|
|
4049
4049
|
category: I,
|
|
4050
4050
|
description: z(
|
|
4051
4051
|
d < 0 ? i.budget_remaining_over : i.budget_remaining_left,
|
|
@@ -4057,13 +4057,13 @@ const qr = (A, t) => !A && !t ? 0 : !A && t ? 101 : t / A * 100, Gr = (A, t) =>
|
|
|
4057
4057
|
});
|
|
4058
4058
|
}
|
|
4059
4059
|
return r;
|
|
4060
|
-
},
|
|
4061
|
-
const n =
|
|
4060
|
+
}, Rn = (A, t) => A.find((i) => i.guid === t), nf = (A, t, i) => {
|
|
4061
|
+
const n = Rn(A, i);
|
|
4062
4062
|
if (n)
|
|
4063
|
-
return
|
|
4063
|
+
return Rn(n.subBudgets, t);
|
|
4064
4064
|
};
|
|
4065
4065
|
class rf {
|
|
4066
|
-
api = new
|
|
4066
|
+
api = new qr("/", "");
|
|
4067
4067
|
categoryApi = new Pi("/", "");
|
|
4068
4068
|
globalStore;
|
|
4069
4069
|
alert = "";
|
|
@@ -4076,12 +4076,12 @@ class rf {
|
|
|
4076
4076
|
this.globalStore = t, DA(this);
|
|
4077
4077
|
}
|
|
4078
4078
|
initialize = async (t, i) => {
|
|
4079
|
-
this.api = new
|
|
4079
|
+
this.api = new qr(t, i), this.categoryApi = new Pi(t, i), ts(
|
|
4080
4080
|
() => this.detailedBudgets,
|
|
4081
4081
|
(n) => {
|
|
4082
4082
|
if (n) {
|
|
4083
4083
|
const r = this.selectedBudget;
|
|
4084
|
-
r && (this.selectedBudget =
|
|
4084
|
+
r && (this.selectedBudget = Rn(n, r.guid));
|
|
4085
4085
|
const o = this.selectedSubBudget;
|
|
4086
4086
|
o && o.parent_guid && (this.selectedSubBudget = nf(
|
|
4087
4087
|
n,
|
|
@@ -4176,7 +4176,7 @@ class rf {
|
|
|
4176
4176
|
const Nt = () => {
|
|
4177
4177
|
if (!h.useContext(gt))
|
|
4178
4178
|
throw new Error("useCashflowUiStore() must be used within the GlobalDataContext");
|
|
4179
|
-
return
|
|
4179
|
+
return Tn().uiStore;
|
|
4180
4180
|
}, of = ({ remaining: A }) => {
|
|
4181
4181
|
const { cashflow: t } = X();
|
|
4182
4182
|
return /* @__PURE__ */ s(Z, { children: [
|
|
@@ -4194,7 +4194,7 @@ const Nt = () => {
|
|
|
4194
4194
|
/* @__PURE__ */ e(R, { bold: !0, sx: { flexGrow: 1, fontSize: 12 }, children: t.remaining_cash }),
|
|
4195
4195
|
/* @__PURE__ */ e(OA, { amount: A, bold: !0, sx: { fontSize: 12 } })
|
|
4196
4196
|
] });
|
|
4197
|
-
},
|
|
4197
|
+
}, Vn = C(of), If = ({ onAddIncomeClick: A }) => {
|
|
4198
4198
|
const t = RA(), { availableWidth: i } = Xt(), { cashAccounts: n, cashBalance: r } = CA(), { selectedAccountGuids: o } = pA(), { cashflow: I } = X(), { userProfile: a } = Ue(), {
|
|
4199
4199
|
daysUntilNextIncome: c,
|
|
4200
4200
|
expensesTilNextIncome: d,
|
|
@@ -4288,7 +4288,7 @@ const Nt = () => {
|
|
|
4288
4288
|
justifyContent: "space-between",
|
|
4289
4289
|
px: 16,
|
|
4290
4290
|
sx: { borderBottomLeftRadius: 4, borderBottomRightRadius: 4 },
|
|
4291
|
-
children: /* @__PURE__ */ e(
|
|
4291
|
+
children: /* @__PURE__ */ e(Vn, { remaining: y })
|
|
4292
4292
|
}
|
|
4293
4293
|
),
|
|
4294
4294
|
/* @__PURE__ */ e(G, {}),
|
|
@@ -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
|
+
}, sI = {
|
|
4476
4476
|
ASC: "ASC",
|
|
4477
4477
|
DESC: "DESC",
|
|
4478
4478
|
DIRECTION: {
|
|
@@ -4498,7 +4498,7 @@ const cf = [
|
|
|
4498
4498
|
[d]: E
|
|
4499
4499
|
};
|
|
4500
4500
|
}, {});
|
|
4501
|
-
return A.
|
|
4501
|
+
return A.map((a) => {
|
|
4502
4502
|
const c = r[a.account_guid], d = a.category_guid ? o[a.category_guid] : null, f = I[a.guid] ?? [];
|
|
4503
4503
|
return {
|
|
4504
4504
|
...a,
|
|
@@ -4507,7 +4507,7 @@ const cf = [
|
|
|
4507
4507
|
accountIsHidden: c?.is_hidden,
|
|
4508
4508
|
category: d?.name || "Uncategorized",
|
|
4509
4509
|
isIncome: a.top_level_category_guid === g.INCOME,
|
|
4510
|
-
isPending: a.feed_status ===
|
|
4510
|
+
isPending: a.feed_status === Bn.PENDING,
|
|
4511
4511
|
number: c?.account_number || "",
|
|
4512
4512
|
payee: a.description,
|
|
4513
4513
|
tags: f
|
|
@@ -4550,7 +4550,7 @@ const cf = [
|
|
|
4550
4550
|
TRANSACTION: "Transaction",
|
|
4551
4551
|
TRANSACTIONS_LIST: "Transactions List",
|
|
4552
4552
|
UNHIDE_TRANSACTION: "Unhide Transaction"
|
|
4553
|
-
},
|
|
4553
|
+
}, Nr = {
|
|
4554
4554
|
// splits
|
|
4555
4555
|
[S.ON_TRANSACTION_SPLIT_CLICK]: {
|
|
4556
4556
|
action: hA.SELECT,
|
|
@@ -4764,7 +4764,7 @@ const cf = [
|
|
|
4764
4764
|
category: lA.TRANSACTIONS_WIDGET,
|
|
4765
4765
|
label: vA.DELETE_TRANSACTION
|
|
4766
4766
|
}
|
|
4767
|
-
}, Ef = async (A, t) => !t || !
|
|
4767
|
+
}, Ef = async (A, t) => !t || !Nr[A] ? null : t.sendAnalyticEvent(Nr[A]), un = {
|
|
4768
4768
|
FLAG: "flag",
|
|
4769
4769
|
DATE: "date",
|
|
4770
4770
|
PAYEE: "payee",
|
|
@@ -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 ===
|
|
4800
|
+
return (t === un.DATE || t === un.AMOUNT) && (a = I ? 1 : -1, c = I ? -1 : 1), i === sI.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
|
-
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 || {}),
|
|
4806
|
-
const
|
|
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 || {}), Pn = /* @__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))(Pn || {}), 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 || {}), Bn = /* @__PURE__ */ ((A) => (A[A.POSTED = 1] = "POSTED", A[A.PENDING = 2] = "PENDING", A))(Bn || {}), Hf = /* @__PURE__ */ ((A) => (A.Desktop = "Desktop", A.Mobile = "Mobile", A))(Hf || {});
|
|
4806
|
+
const cI = {
|
|
4807
4807
|
account_guid: "",
|
|
4808
4808
|
amount: 0,
|
|
4809
4809
|
currency_code: "",
|
|
@@ -4811,7 +4811,7 @@ const sI = {
|
|
|
4811
4811
|
description: "",
|
|
4812
4812
|
duplicate: !1,
|
|
4813
4813
|
feed_description: "",
|
|
4814
|
-
feed_status:
|
|
4814
|
+
feed_status: Bn.POSTED,
|
|
4815
4815
|
feed_transaction_date: 0,
|
|
4816
4816
|
has_been_split: !1,
|
|
4817
4817
|
has_been_viewed: !1,
|
|
@@ -4842,7 +4842,7 @@ let zf = class {
|
|
|
4842
4842
|
shouldDisableDrawerScroll = !1;
|
|
4843
4843
|
searchValue = "";
|
|
4844
4844
|
selectedAccountGuids = [];
|
|
4845
|
-
manualTransaction =
|
|
4845
|
+
manualTransaction = cI;
|
|
4846
4846
|
isAmountValid = !1;
|
|
4847
4847
|
showInsights = !1;
|
|
4848
4848
|
constructor() {
|
|
@@ -4883,8 +4883,8 @@ class Cf {
|
|
|
4883
4883
|
associatedBeats = [];
|
|
4884
4884
|
cachedStartDate = Ve(fA(), 90);
|
|
4885
4885
|
onAnalyticEvent = Ef;
|
|
4886
|
-
sortColumn =
|
|
4887
|
-
sortDirection =
|
|
4886
|
+
sortColumn = un.DATE;
|
|
4887
|
+
sortDirection = sI.DESC;
|
|
4888
4888
|
filter = {};
|
|
4889
4889
|
constructor(t) {
|
|
4890
4890
|
this.globalStore = t, this.uiStore = new zf(), DA(this);
|
|
@@ -4945,7 +4945,7 @@ class Cf {
|
|
|
4945
4945
|
this.taggings
|
|
4946
4946
|
);
|
|
4947
4947
|
loadAssociatedBeats = async (t) => {
|
|
4948
|
-
const i = t ?
|
|
4948
|
+
const i = t ? wn(t, { representation: "date" }) : void 0, n = await this.beatApi.getBeatsWithAssociatedTransaction(i);
|
|
4949
4949
|
F(() => this.associatedBeats = n);
|
|
4950
4950
|
};
|
|
4951
4951
|
loadTags = async () => {
|
|
@@ -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
|
+
}, fI = (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) => ({
|
|
@@ -5141,7 +5141,7 @@ const Pe = () => {
|
|
|
5141
5141
|
]
|
|
5142
5142
|
}
|
|
5143
5143
|
);
|
|
5144
|
-
},
|
|
5144
|
+
}, Sn = C(yf), Un = ({
|
|
5145
5145
|
bgcolor: A = "background.default",
|
|
5146
5146
|
children: t
|
|
5147
5147
|
}) => /* @__PURE__ */ e(L, { display: "inline-block", pb: 4, pl: 24, pt: 4, sx: { bgcolor: A, width: "100%" }, children: /* @__PURE__ */ e(R, { bold: !0, variant: "XSmall", children: t }) }), xf = ({ showIcon: A = !0, showSubtitle: t = !0 }) => {
|
|
@@ -5151,13 +5151,13 @@ const Pe = () => {
|
|
|
5151
5151
|
/* @__PURE__ */ e(R, { bold: !0, color: "secondary", variant: "Small", children: n.zero_state_no_transactions }),
|
|
5152
5152
|
t && /* @__PURE__ */ e(R, { color: "secondary", variant: "XSmall", children: n.zero_state_there_are_no_transactions })
|
|
5153
5153
|
] });
|
|
5154
|
-
}, Df = C(xf),
|
|
5154
|
+
}, Df = C(xf), Tr = (A, t) => {
|
|
5155
5155
|
const i = yA(t[A].date), n = yA(t[A - 1]?.date);
|
|
5156
5156
|
return !Ee(i, n);
|
|
5157
5157
|
}, jf = (A, t) => {
|
|
5158
5158
|
const i = yA(t[A].date), n = yA(t[A + 1]?.date);
|
|
5159
5159
|
return Ee(i, n);
|
|
5160
|
-
},
|
|
5160
|
+
}, Yr = 65, Vr = 34, mf = ({
|
|
5161
5161
|
bgcolor: A,
|
|
5162
5162
|
height: t = "calc(100dvh - 36px)",
|
|
5163
5163
|
loader: i = /* @__PURE__ */ e(ee, { label: "Loading", size: 40 }),
|
|
@@ -5177,10 +5177,10 @@ const Pe = () => {
|
|
|
5177
5177
|
account_guid: p?.account_guid,
|
|
5178
5178
|
transaction_guid: P
|
|
5179
5179
|
}), n?.(P);
|
|
5180
|
-
}, u = h.useRef(null), H =
|
|
5180
|
+
}, u = h.useRef(null), H = Oo({
|
|
5181
5181
|
count: d.length,
|
|
5182
5182
|
getScrollElement: () => u.current,
|
|
5183
|
-
estimateSize: (P) =>
|
|
5183
|
+
estimateSize: (P) => Yr + (Tr(P, d) ? Vr : 0),
|
|
5184
5184
|
overscan: 5
|
|
5185
5185
|
});
|
|
5186
5186
|
return h.useEffect(() => H.measure(), [d]), h.useEffect(() => f(r), [r]), /* @__PURE__ */ e(rA, { children: /* @__PURE__ */ e(L, { height: t, overflow: "auto", ref: u, width: I, children: /* @__PURE__ */ s(
|
|
@@ -5196,7 +5196,7 @@ const Pe = () => {
|
|
|
5196
5196
|
(c || o) && i,
|
|
5197
5197
|
!c && !o && H.getVirtualItems().length === 0 && a,
|
|
5198
5198
|
!c && !o && H.getVirtualItems().length > 0 && H.getVirtualItems().map((P) => {
|
|
5199
|
-
const p = d[P.index], y =
|
|
5199
|
+
const p = d[P.index], y = Tr(P.index, d), x = jf(P.index, d), w = Yr + (y ? Vr : 0);
|
|
5200
5200
|
return /* @__PURE__ */ s(
|
|
5201
5201
|
L,
|
|
5202
5202
|
{
|
|
@@ -5207,8 +5207,8 @@ const Pe = () => {
|
|
|
5207
5207
|
width: "100%"
|
|
5208
5208
|
},
|
|
5209
5209
|
children: [
|
|
5210
|
-
y && /* @__PURE__ */ e(
|
|
5211
|
-
/* @__PURE__ */ e(
|
|
5210
|
+
y && /* @__PURE__ */ e(Un, { bgcolor: A, children: Mi(p.date) }),
|
|
5211
|
+
/* @__PURE__ */ e(Sn, { onClick: v, transaction: p }),
|
|
5212
5212
|
/* @__PURE__ */ e(G, { sx: { ml: x ? 24 : 0 } })
|
|
5213
5213
|
]
|
|
5214
5214
|
},
|
|
@@ -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(jo, { 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,
|
|
@@ -5437,7 +5437,7 @@ const Bf = ({
|
|
|
5437
5437
|
) })
|
|
5438
5438
|
}
|
|
5439
5439
|
);
|
|
5440
|
-
},
|
|
5440
|
+
}, Fn = C(Bf), Sf = ({ parentCategory: A }) => {
|
|
5441
5441
|
const [t, i] = h.useState(!1), { addCategory: n } = qA(), { categories: r } = X(), { onEvent: o } = K(), { setShouldDisableDrawerScroll: I } = ot(), a = async (f) => {
|
|
5442
5442
|
await n(f.trim(), A.guid), o(je.ON_SUBCATEGORY_ADDED), i(!1);
|
|
5443
5443
|
}, c = async () => {
|
|
@@ -5454,7 +5454,7 @@ const Bf = ({
|
|
|
5454
5454
|
}
|
|
5455
5455
|
) }),
|
|
5456
5456
|
t && /* @__PURE__ */ e(
|
|
5457
|
-
|
|
5457
|
+
Fn,
|
|
5458
5458
|
{
|
|
5459
5459
|
isOpen: t,
|
|
5460
5460
|
onClose: d,
|
|
@@ -5474,7 +5474,7 @@ const Bf = ({
|
|
|
5474
5474
|
A(!1), r(je.ON_SUBCATEGORY_EDIT_CANCEL_CLICK);
|
|
5475
5475
|
};
|
|
5476
5476
|
return /* @__PURE__ */ e(
|
|
5477
|
-
|
|
5477
|
+
Fn,
|
|
5478
5478
|
{
|
|
5479
5479
|
categoryName: t.name,
|
|
5480
5480
|
isOpen: i,
|
|
@@ -5495,7 +5495,7 @@ const Bf = ({
|
|
|
5495
5495
|
r(je.ON_SUBCATEGORY_DELETED), await o(n.guid), i(!1);
|
|
5496
5496
|
};
|
|
5497
5497
|
return /* @__PURE__ */ e(
|
|
5498
|
-
|
|
5498
|
+
Fn,
|
|
5499
5499
|
{
|
|
5500
5500
|
categoryName: A.name,
|
|
5501
5501
|
isOpen: t,
|
|
@@ -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
|
+
}, dI = 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
|
+
dI,
|
|
5667
5667
|
{
|
|
5668
5668
|
category: o.category,
|
|
5669
5669
|
subCategories: o.children
|
|
@@ -5729,22 +5729,22 @@ const Bf = ({
|
|
|
5729
5729
|
children: /* @__PURE__ */ e(rd, { ...r })
|
|
5730
5730
|
}
|
|
5731
5731
|
);
|
|
5732
|
-
}, Vi = C(od), Id = 3,
|
|
5733
|
-
(n) =>
|
|
5732
|
+
}, Vi = C(od), Id = 3, Br = 12, ad = (A, t, i) => A.filter((n) => !n.parent_guid).map(
|
|
5733
|
+
(n) => EI(
|
|
5734
5734
|
n,
|
|
5735
5735
|
t,
|
|
5736
5736
|
i,
|
|
5737
5737
|
A.filter((r) => r.parent_guid === n.guid)
|
|
5738
5738
|
)
|
|
5739
|
-
),
|
|
5740
|
-
const r = A.guid, o = A.parent_guid || r, I = r === o, a = t.find((l) => l.category_guid === r)?.total || 0, c =
|
|
5739
|
+
), EI = (A, t, i, n = []) => {
|
|
5740
|
+
const r = A.guid, o = A.parent_guid || r, I = r === o, a = t.find((l) => l.category_guid === r)?.total || 0, c = Ur(
|
|
5741
5741
|
i.filter((l) => l.category_guid === r)
|
|
5742
|
-
), d =
|
|
5742
|
+
), d = Ur(
|
|
5743
5743
|
i.filter(
|
|
5744
5744
|
(l) => l.category_guid === r || l.top_level_category_guid === r
|
|
5745
5745
|
)
|
|
5746
5746
|
), f = n.map(
|
|
5747
|
-
(l) =>
|
|
5747
|
+
(l) => EI(l, t, i)
|
|
5748
5748
|
), E = f.reduce(
|
|
5749
5749
|
(l, v) => l + v.currentAmount,
|
|
5750
5750
|
a
|
|
@@ -5752,17 +5752,17 @@ const Bf = ({
|
|
|
5752
5752
|
return {
|
|
5753
5753
|
...A,
|
|
5754
5754
|
currentAmount: a,
|
|
5755
|
-
averageAmount:
|
|
5755
|
+
averageAmount: Sr(c),
|
|
5756
5756
|
color: st[o],
|
|
5757
5757
|
icon: Us[o],
|
|
5758
5758
|
isTransfer: o === g.TRANSFER,
|
|
5759
5759
|
monthlyAmounts: c,
|
|
5760
5760
|
subCategories: f,
|
|
5761
5761
|
totalAmount: I ? E : 0,
|
|
5762
|
-
totalAverageAmount:
|
|
5762
|
+
totalAverageAmount: Sr(d),
|
|
5763
5763
|
totalMonthlyAmounts: I ? d : []
|
|
5764
5764
|
};
|
|
5765
|
-
},
|
|
5765
|
+
}, Sr = (A, t = Id) => {
|
|
5766
5766
|
const i = t > history.length ? history.length : t;
|
|
5767
5767
|
return Math.ceil(
|
|
5768
5768
|
Math.max(
|
|
@@ -5770,10 +5770,10 @@ const Bf = ({
|
|
|
5770
5770
|
A.slice(-i).reduce((n, r) => n + r.amount, 0) / i
|
|
5771
5771
|
)
|
|
5772
5772
|
);
|
|
5773
|
-
},
|
|
5773
|
+
}, Ur = (A) => {
|
|
5774
5774
|
const t = [], i = fA();
|
|
5775
|
-
for (let n = 0; n <=
|
|
5776
|
-
const r = QA(Ne(i,
|
|
5775
|
+
for (let n = 0; n <= Br; n++) {
|
|
5776
|
+
const r = QA(Ne(i, Br - n)), I = A.filter(
|
|
5777
5777
|
(a) => a.year_month === Number(le(r, "yyyyMM"))
|
|
5778
5778
|
).reduce((a, c) => a + c.total, 0);
|
|
5779
5779
|
t.push({
|
|
@@ -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 hI = ({ 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 (P) => {
|
|
5930
5930
|
await i({ ...A, category_guid: f }), P && await t(f, A), E(""), r(V.TRANSACTION_DETAILS_CLICK_CATEGORY, {
|
|
5931
5931
|
transaction_guid: A.guid
|
|
@@ -5962,7 +5962,7 @@ const EI = ({ transaction: A }) => {
|
|
|
5962
5962
|
categoryGuid: A.top_level_category_guid,
|
|
5963
5963
|
size: 24,
|
|
5964
5964
|
sx: { color: "text.primary" },
|
|
5965
|
-
variant:
|
|
5965
|
+
variant: wo.Transparent
|
|
5966
5966
|
}
|
|
5967
5967
|
) }) }),
|
|
5968
5968
|
/* @__PURE__ */ e(
|
|
@@ -6010,7 +6010,7 @@ const EI = ({ transaction: A }) => {
|
|
|
6010
6010
|
}
|
|
6011
6011
|
)
|
|
6012
6012
|
] });
|
|
6013
|
-
},
|
|
6013
|
+
}, lI = ({ 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 EI = ({ 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 EI = ({ transaction: A }) => {
|
|
|
6217
6217
|
}
|
|
6218
6218
|
)
|
|
6219
6219
|
] });
|
|
6220
|
-
}, vd = C(ld),
|
|
6220
|
+
}, vd = C(ld), vI = ({ 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(b, { className: "mx-txn-amount-header", direction: "row", gap: 12, px: 16, py: 24, children: [
|
|
6223
6223
|
/* @__PURE__ */ e(
|
|
@@ -6286,7 +6286,7 @@ const EI = ({ transaction: A }) => {
|
|
|
6286
6286
|
onPrimaryAction: f,
|
|
6287
6287
|
title: o.memo_title,
|
|
6288
6288
|
children: [
|
|
6289
|
-
/* @__PURE__ */ e(
|
|
6289
|
+
/* @__PURE__ */ e(vI, { transaction: A }),
|
|
6290
6290
|
/* @__PURE__ */ e(
|
|
6291
6291
|
$A,
|
|
6292
6292
|
{
|
|
@@ -6306,7 +6306,7 @@ const EI = ({ transaction: A }) => {
|
|
|
6306
6306
|
}
|
|
6307
6307
|
)
|
|
6308
6308
|
] });
|
|
6309
|
-
},
|
|
6309
|
+
}, RI = C(Rd), ud = ({
|
|
6310
6310
|
index: A,
|
|
6311
6311
|
onDeleteRow: t,
|
|
6312
6312
|
onCategoryChanged: i,
|
|
@@ -6543,7 +6543,7 @@ const EI = ({ transaction: A }) => {
|
|
|
6543
6543
|
secondaryText: r.cancel_button,
|
|
6544
6544
|
title: o.split_transaction_title,
|
|
6545
6545
|
children: [
|
|
6546
|
-
/* @__PURE__ */ e(
|
|
6546
|
+
/* @__PURE__ */ e(vI, { transaction: A }),
|
|
6547
6547
|
/* @__PURE__ */ e(
|
|
6548
6548
|
Hd,
|
|
6549
6549
|
{
|
|
@@ -6833,7 +6833,7 @@ const EI = ({ transaction: A }) => {
|
|
|
6833
6833
|
}
|
|
6834
6834
|
)
|
|
6835
6835
|
] });
|
|
6836
|
-
},
|
|
6836
|
+
}, uI = 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());
|
|
@@ -6889,7 +6889,7 @@ const EI = ({ transaction: A }) => {
|
|
|
6889
6889
|
n(V.TRANSACTION_DETAILS_CLICK_FLAG, { transaction_guid: A.guid }), await t({ ...A, is_flagged: !A.is_flagged });
|
|
6890
6890
|
};
|
|
6891
6891
|
return /* @__PURE__ */ e("div", { className: "mx-txn-transaction-flag", children: /* @__PURE__ */ e(
|
|
6892
|
-
|
|
6892
|
+
Xn,
|
|
6893
6893
|
{
|
|
6894
6894
|
"aria-label": i.flag_btn_aria,
|
|
6895
6895
|
"aria-pressed": A.is_flagged,
|
|
@@ -6959,10 +6959,10 @@ const EI = ({ 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(hI, { transaction: i }),
|
|
6963
|
+
I === Wt.Date && /* @__PURE__ */ e(lI, { transaction: i }),
|
|
6964
|
+
I === Wt.Memo && /* @__PURE__ */ e(RI, { transaction: i }),
|
|
6965
|
+
I === Wt.Tags && /* @__PURE__ */ e(uI, { 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" }),
|
|
@@ -7039,7 +7039,7 @@ const EI = ({ transaction: A }) => {
|
|
|
7039
7039
|
),
|
|
7040
7040
|
/* @__PURE__ */ e(hs, { name: "TransactionType", onChange: v, row: !0, children: /* @__PURE__ */ s(b, { alignItems: "center", direction: "row", children: [
|
|
7041
7041
|
/* @__PURE__ */ e(
|
|
7042
|
-
|
|
7042
|
+
Lr,
|
|
7043
7043
|
{
|
|
7044
7044
|
checked: n.transaction_type === se.CREDIT,
|
|
7045
7045
|
label: i.manual_transaction_credit_button_label,
|
|
@@ -7049,7 +7049,7 @@ const EI = ({ transaction: A }) => {
|
|
|
7049
7049
|
}
|
|
7050
7050
|
),
|
|
7051
7051
|
/* @__PURE__ */ e(
|
|
7052
|
-
|
|
7052
|
+
Lr,
|
|
7053
7053
|
{
|
|
7054
7054
|
checked: n.transaction_type === se.DEBIT,
|
|
7055
7055
|
label: i.manual_transaction_debit_button_label,
|
|
@@ -7081,16 +7081,16 @@ const EI = ({ transaction: A }) => {
|
|
|
7081
7081
|
placeholder: i.manual_transaction_select,
|
|
7082
7082
|
select: !0,
|
|
7083
7083
|
sx: { bgcolor: "background.paper" },
|
|
7084
|
-
children: f.map((P) => /* @__PURE__ */ e(
|
|
7084
|
+
children: f.map((P) => /* @__PURE__ */ e(mn, { value: P.value, children: P.label }, P.value))
|
|
7085
7085
|
}
|
|
7086
7086
|
)
|
|
7087
7087
|
] }),
|
|
7088
7088
|
/* @__PURE__ */ e(G, { light: !0 }),
|
|
7089
7089
|
/* @__PURE__ */ s(L, { bgcolor: "background.paper", children: [
|
|
7090
|
-
/* @__PURE__ */ e(EI, { transaction: n }),
|
|
7091
7090
|
/* @__PURE__ */ e(hI, { transaction: n }),
|
|
7092
|
-
/* @__PURE__ */ e(
|
|
7093
|
-
/* @__PURE__ */ e(RI, { transaction: n })
|
|
7091
|
+
/* @__PURE__ */ e(lI, { transaction: n }),
|
|
7092
|
+
/* @__PURE__ */ e(RI, { transaction: n }),
|
|
7093
|
+
/* @__PURE__ */ e(uI, { transaction: n })
|
|
7094
7094
|
] })
|
|
7095
7095
|
] });
|
|
7096
7096
|
}, Yd = C(Td), Vd = ({ onClose: A, transaction: t }) => {
|
|
@@ -7134,7 +7134,7 @@ const EI = ({ transaction: A }) => {
|
|
|
7134
7134
|
}
|
|
7135
7135
|
)
|
|
7136
7136
|
] });
|
|
7137
|
-
}, Bd = C(Vd),
|
|
7137
|
+
}, Bd = C(Vd), Fr = 120, Sd = ({
|
|
7138
7138
|
onBackClick: A,
|
|
7139
7139
|
height: t = "100dvh",
|
|
7140
7140
|
showInsights: i = !1,
|
|
@@ -7166,10 +7166,11 @@ const EI = ({ transaction: A }) => {
|
|
|
7166
7166
|
h.useEffect(() => {
|
|
7167
7167
|
oA(r);
|
|
7168
7168
|
}, [r]), h.useEffect(() => {
|
|
7169
|
-
const kA = QA(fA()),
|
|
7170
|
-
iA(kA,
|
|
7171
|
-
dateRange: { start: kA, end:
|
|
7172
|
-
accounts: Y.map((
|
|
7169
|
+
const kA = QA(fA()), rr = BA(fA());
|
|
7170
|
+
iA(kA, rr), P({
|
|
7171
|
+
dateRange: { start: kA, end: rr },
|
|
7172
|
+
accounts: Y.map(($i) => $i.guid),
|
|
7173
|
+
custom: ($i) => !$i.accountIsClosed
|
|
7173
7174
|
}), Ke(!0), j(V.TRANSACTIONS_VIEW);
|
|
7174
7175
|
}, []), h.useEffect(() => {
|
|
7175
7176
|
JA && (P({
|
|
@@ -7191,10 +7192,10 @@ const EI = ({ transaction: A }) => {
|
|
|
7191
7192
|
searchTerm: kA
|
|
7192
7193
|
}), j(V.TRANSACTIONS_CLICK_SEARCH, { search_term: kA });
|
|
7193
7194
|
}, Ki = () => {
|
|
7194
|
-
|
|
7195
|
+
fI(y, p), j(V.TRANSACTIONS_CLICK_EXPORT);
|
|
7195
7196
|
}, Zi = () => {
|
|
7196
7197
|
Yt.length > 0 ? (l({
|
|
7197
|
-
...
|
|
7198
|
+
...cI,
|
|
7198
7199
|
date: gA(fA()),
|
|
7199
7200
|
user_guid: m?.user_guid || ""
|
|
7200
7201
|
}), uA(
|
|
@@ -7250,7 +7251,7 @@ const EI = ({ transaction: A }) => {
|
|
|
7250
7251
|
children: /* @__PURE__ */ e(
|
|
7251
7252
|
Vf,
|
|
7252
7253
|
{
|
|
7253
|
-
height: `calc(${t} - ${
|
|
7254
|
+
height: `calc(${t} - ${Fr}px)`,
|
|
7254
7255
|
onCategoryClick: (kA) => {
|
|
7255
7256
|
jA(kA), uA(
|
|
7256
7257
|
"category"
|
|
@@ -7277,7 +7278,7 @@ const EI = ({ transaction: A }) => {
|
|
|
7277
7278
|
children: /* @__PURE__ */ e(
|
|
7278
7279
|
Rt,
|
|
7279
7280
|
{
|
|
7280
|
-
height: `calc(${t} - ${
|
|
7281
|
+
height: `calc(${t} - ${Fr}px)`,
|
|
7281
7282
|
onClick: (kA) => {
|
|
7282
7283
|
jA(kA), uA(
|
|
7283
7284
|
"transaction"
|
|
@@ -7344,7 +7345,7 @@ const EI = ({ transaction: A }) => {
|
|
|
7344
7345
|
]
|
|
7345
7346
|
}
|
|
7346
7347
|
);
|
|
7347
|
-
}, XP = C(Sd),
|
|
7348
|
+
}, XP = C(Sd), PI = (A, t) => {
|
|
7348
7349
|
const i = {
|
|
7349
7350
|
...t,
|
|
7350
7351
|
repeat_day: null,
|
|
@@ -7371,9 +7372,9 @@ const EI = ({ transaction: A }) => {
|
|
|
7371
7372
|
break;
|
|
7372
7373
|
}
|
|
7373
7374
|
return i;
|
|
7374
|
-
},
|
|
7375
|
+
}, bI = (A, t) => ({
|
|
7375
7376
|
...t,
|
|
7376
|
-
occurs_on:
|
|
7377
|
+
occurs_on: wn(A.expectedDate, { representation: "date" }),
|
|
7377
7378
|
recurrence_type: A.recurrenceType
|
|
7378
7379
|
}), Ud = ({ activity: A }) => {
|
|
7379
7380
|
const { recurring: t } = X(), { cashflowSequences: i, scheduledPayments: n, updateCashflowSequence: r, updateScheduledPayment: o } = ZA(), { onEvent: I } = K(), [a, c] = h.useState(!1), d = A.activityType === TA.Income, f = [
|
|
@@ -7388,10 +7389,10 @@ const EI = ({ transaction: A }) => {
|
|
|
7388
7389
|
const H = { ...A, recurrenceType: u };
|
|
7389
7390
|
if (A.activityType === TA.Expense) {
|
|
7390
7391
|
const P = n.find((p) => p.guid === A.scheduledPaymentGuid);
|
|
7391
|
-
P && await o(
|
|
7392
|
+
P && await o(bI(H, P));
|
|
7392
7393
|
} else {
|
|
7393
7394
|
const P = i.find((p) => p.guid === A.sequenceGuid);
|
|
7394
|
-
P && await r(
|
|
7395
|
+
P && await r(PI(H, P));
|
|
7395
7396
|
}
|
|
7396
7397
|
c(!1);
|
|
7397
7398
|
}, l = () => {
|
|
@@ -7453,10 +7454,10 @@ const EI = ({ transaction: A }) => {
|
|
|
7453
7454
|
const u = { ...A, expectedDate: d };
|
|
7454
7455
|
if (A.activityType === TA.Expense) {
|
|
7455
7456
|
const H = n.find((P) => P.guid === A.scheduledPaymentGuid);
|
|
7456
|
-
H && await o(
|
|
7457
|
+
H && await o(bI(u, H));
|
|
7457
7458
|
} else {
|
|
7458
7459
|
const H = i.find((P) => P.guid === A.sequenceGuid);
|
|
7459
|
-
H && await r(
|
|
7460
|
+
H && await r(PI(u, H));
|
|
7460
7461
|
}
|
|
7461
7462
|
c(!1);
|
|
7462
7463
|
};
|
|
@@ -7606,8 +7607,8 @@ const EI = ({ transaction: A }) => {
|
|
|
7606
7607
|
gridRow: 1,
|
|
7607
7608
|
gridColumn: 1,
|
|
7608
7609
|
zIndex: 2
|
|
7609
|
-
}, Si = (A) => A ? { margin: "0 0 -6px -4px" } : void 0,
|
|
7610
|
-
let n = t &&
|
|
7610
|
+
}, Si = (A) => A ? { margin: "0 0 -6px -4px" } : void 0, Wn = ({ isOffset: A = !1, size: t = 16 }) => /* @__PURE__ */ e(ft, { size: t, sx: { ...Si(A) }, children: /* @__PURE__ */ e(zs, { color: "primary", sx: { fontSize: t, ...Bi } }) }), kn = ({ 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 } }) }), Zn = ({ isOffset: A = !1, size: t = 16 }) => /* @__PURE__ */ e(ft, { size: t, sx: { ...Si(A) }, children: /* @__PURE__ */ e(Oi, { color: "success", sx: { fontSize: t, ...Bi } }) }), Wr = ({ copy: A, date: t, type: i }) => {
|
|
7611
|
+
let n = t && Go(t) ? z(A.monthly_ordinal, le(t, "do")) : A.monthly;
|
|
7611
7612
|
switch (i) {
|
|
7612
7613
|
case U.EveryQuarter:
|
|
7613
7614
|
n = t ? z(A.quarterly_ordinal, le(t, "do")) : A.quarterly;
|
|
@@ -7651,14 +7652,14 @@ const EI = ({ transaction: A }) => {
|
|
|
7651
7652
|
}
|
|
7652
7653
|
}, _d = (A) => {
|
|
7653
7654
|
if (A.activityType === TA.Income)
|
|
7654
|
-
return /* @__PURE__ */ e(
|
|
7655
|
+
return /* @__PURE__ */ e(kn, {});
|
|
7655
7656
|
switch (A.activityStatus) {
|
|
7656
7657
|
case SA.Missed:
|
|
7657
|
-
return /* @__PURE__ */ e(kn, {});
|
|
7658
|
-
case SA.Paid:
|
|
7659
7658
|
return /* @__PURE__ */ e(Kn, {});
|
|
7659
|
+
case SA.Paid:
|
|
7660
|
+
return /* @__PURE__ */ e(Zn, {});
|
|
7660
7661
|
default:
|
|
7661
|
-
return /* @__PURE__ */ e(
|
|
7662
|
+
return /* @__PURE__ */ e(Wn, {});
|
|
7662
7663
|
}
|
|
7663
7664
|
}, $d = ({
|
|
7664
7665
|
activity: A,
|
|
@@ -7669,7 +7670,7 @@ const EI = ({ transaction: A }) => {
|
|
|
7669
7670
|
}) => {
|
|
7670
7671
|
const { recurring: r } = X(), [o, I] = h.useState(""), a = A.activityType === TA.Income, c = A.activityStatus === SA.Paid, d = A.activityStatus === SA.Missed, f = A.activityStatus === SA.Upcoming;
|
|
7671
7672
|
let E = r.paid?.toLowerCase();
|
|
7672
|
-
return d ? E = r.missed?.toLowerCase() : f && (E =
|
|
7673
|
+
return d ? E = r.missed?.toLowerCase() : f && (E = Wr(n ? {
|
|
7673
7674
|
copy: r,
|
|
7674
7675
|
date: A.expectedDate,
|
|
7675
7676
|
type: A.recurrenceType
|
|
@@ -7760,7 +7761,7 @@ const EI = ({ transaction: A }) => {
|
|
|
7760
7761
|
}
|
|
7761
7762
|
)
|
|
7762
7763
|
] });
|
|
7763
|
-
}, Xi = C($d),
|
|
7764
|
+
}, Xi = C($d), HI = (A, t, i) => {
|
|
7764
7765
|
const n = {
|
|
7765
7766
|
account_guid: A.account_guid,
|
|
7766
7767
|
amount: A.amount,
|
|
@@ -7794,7 +7795,7 @@ const EI = ({ transaction: A }) => {
|
|
|
7794
7795
|
break;
|
|
7795
7796
|
}
|
|
7796
7797
|
return n;
|
|
7797
|
-
},
|
|
7798
|
+
}, zI = (A, t) => ({
|
|
7798
7799
|
amount: t.amount,
|
|
7799
7800
|
cashflow_sequence_guid: A.guid,
|
|
7800
7801
|
category_guid: t.category_guid,
|
|
@@ -7810,7 +7811,7 @@ const EI = ({ transaction: A }) => {
|
|
|
7810
7811
|
description: A.feed_description || A.description,
|
|
7811
7812
|
is_tracked_by_user: !0,
|
|
7812
7813
|
merchant_guid: A.merchant_guid,
|
|
7813
|
-
occurs_on:
|
|
7814
|
+
occurs_on: wn(i, { representation: "date" }),
|
|
7814
7815
|
recurrence_day: 0,
|
|
7815
7816
|
recurrence_type: U.EveryMonth
|
|
7816
7817
|
};
|
|
@@ -7851,7 +7852,7 @@ const EI = ({ transaction: A }) => {
|
|
|
7851
7852
|
),
|
|
7852
7853
|
/* @__PURE__ */ e(Rt, { bgcolor: A, height: "auto", onClick: n, showLoader: !1 })
|
|
7853
7854
|
] });
|
|
7854
|
-
},
|
|
7855
|
+
}, CI = C(eE), tE = ({
|
|
7855
7856
|
bgcolor: A = "background.default",
|
|
7856
7857
|
frequency: t,
|
|
7857
7858
|
isIncome: i,
|
|
@@ -7871,25 +7872,25 @@ const EI = ({ transaction: A }) => {
|
|
|
7871
7872
|
];
|
|
7872
7873
|
h.useEffect(() => {
|
|
7873
7874
|
const f = yA(I.date);
|
|
7874
|
-
o(
|
|
7875
|
+
o(zr(f)), r(U.EveryMonth);
|
|
7875
7876
|
}, [I]);
|
|
7876
7877
|
const d = (f) => {
|
|
7877
7878
|
const E = yA(I.date);
|
|
7878
7879
|
switch (Number(f.target.value)) {
|
|
7879
7880
|
case U.EveryWeek:
|
|
7880
|
-
o(
|
|
7881
|
+
o(Mn(E));
|
|
7881
7882
|
break;
|
|
7882
7883
|
case U.EveryOtherWeek:
|
|
7883
7884
|
o(ec(E));
|
|
7884
7885
|
break;
|
|
7885
7886
|
case U.EveryMonth:
|
|
7886
|
-
o(
|
|
7887
|
+
o(zr(E));
|
|
7887
7888
|
break;
|
|
7888
7889
|
case U.EveryOtherMonth:
|
|
7889
7890
|
o(tc(E));
|
|
7890
7891
|
break;
|
|
7891
7892
|
case U.EveryQuarter:
|
|
7892
|
-
o(
|
|
7893
|
+
o(Ko(E));
|
|
7893
7894
|
break;
|
|
7894
7895
|
case U.EveryOtherQuarter:
|
|
7895
7896
|
o(ic(E));
|
|
@@ -7902,8 +7903,8 @@ const EI = ({ transaction: A }) => {
|
|
|
7902
7903
|
};
|
|
7903
7904
|
return /* @__PURE__ */ s(b, { bgcolor: A, gap: 24, height: "100%", children: [
|
|
7904
7905
|
/* @__PURE__ */ s(b, { children: [
|
|
7905
|
-
/* @__PURE__ */ e(
|
|
7906
|
-
/* @__PURE__ */ e(
|
|
7906
|
+
/* @__PURE__ */ e(Un, { bgcolor: A, children: Mi(I.date) }),
|
|
7907
|
+
/* @__PURE__ */ e(Sn, { transaction: I })
|
|
7907
7908
|
] }),
|
|
7908
7909
|
/* @__PURE__ */ e(R, { bold: !0, sx: { mx: 24 }, variant: "Body", children: i ? a.income_schedule : a.expense_schedule }),
|
|
7909
7910
|
/* @__PURE__ */ e(
|
|
@@ -7920,11 +7921,11 @@ const EI = ({ transaction: A }) => {
|
|
|
7920
7921
|
sx: { mx: 24 },
|
|
7921
7922
|
value: t,
|
|
7922
7923
|
variant: "outlined",
|
|
7923
|
-
children: c.map((f) => /* @__PURE__ */ e(
|
|
7924
|
+
children: c.map((f) => /* @__PURE__ */ e(mn, { value: f.id, children: f.label }, f.id))
|
|
7924
7925
|
}
|
|
7925
7926
|
),
|
|
7926
7927
|
/* @__PURE__ */ e(Mt, { dateAdapter: Ct, children: /* @__PURE__ */ e(
|
|
7927
|
-
|
|
7928
|
+
yn,
|
|
7928
7929
|
{
|
|
7929
7930
|
disablePast: !0,
|
|
7930
7931
|
label: i ? a.income_date_label : a.expense_date_label,
|
|
@@ -7934,7 +7935,7 @@ const EI = ({ transaction: A }) => {
|
|
|
7934
7935
|
}
|
|
7935
7936
|
) })
|
|
7936
7937
|
] });
|
|
7937
|
-
},
|
|
7938
|
+
}, gI = C(tE), bn = (A) => A.top_level_category_guid !== g.INCOME && A.transaction_type === se.DEBIT, iE = (A, t) => bn(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, XI = (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
7939
|
isIncome: A = !1,
|
|
7939
7940
|
label: t,
|
|
7940
7941
|
onAddActivity: i = () => null
|
|
@@ -7943,16 +7944,16 @@ const EI = ({ transaction: A }) => {
|
|
|
7943
7944
|
() => d.find((m) => m.guid === l),
|
|
7944
7945
|
[l]
|
|
7945
7946
|
), x = () => {
|
|
7946
|
-
E(!0), c(A ? { ...a, custom: ii } : { ...a, custom:
|
|
7947
|
+
E(!0), c(A ? { ...a, custom: ii } : { ...a, custom: bn });
|
|
7947
7948
|
}, w = async () => {
|
|
7948
7949
|
if (i(), !y || !P) {
|
|
7949
7950
|
D();
|
|
7950
7951
|
return;
|
|
7951
7952
|
}
|
|
7952
7953
|
if (A) {
|
|
7953
|
-
const m =
|
|
7954
|
+
const m = HI(y, u, P), j = await o(m);
|
|
7954
7955
|
if (j) {
|
|
7955
|
-
const O =
|
|
7956
|
+
const O = zI(j, y);
|
|
7956
7957
|
await r(O);
|
|
7957
7958
|
}
|
|
7958
7959
|
} else {
|
|
@@ -7980,13 +7981,13 @@ const EI = ({ transaction: A }) => {
|
|
|
7980
7981
|
onClose: () => E(!1),
|
|
7981
7982
|
title: t,
|
|
7982
7983
|
children: /* @__PURE__ */ e(
|
|
7983
|
-
|
|
7984
|
+
CI,
|
|
7984
7985
|
{
|
|
7985
7986
|
description: A ? n.add_income_description : n.add_expense_description,
|
|
7986
7987
|
onSearch: (m) => {
|
|
7987
7988
|
c({
|
|
7988
7989
|
...a,
|
|
7989
|
-
custom: (j) => A ? m ?
|
|
7990
|
+
custom: (j) => A ? m ? XI(j, m) : ii(j) : m ? iE(j, m) : bn(j)
|
|
7990
7991
|
});
|
|
7991
7992
|
},
|
|
7992
7993
|
onSelected: (m) => v(m)
|
|
@@ -8003,7 +8004,7 @@ const EI = ({ transaction: A }) => {
|
|
|
8003
8004
|
onPrimaryAction: w,
|
|
8004
8005
|
title: A ? n.income_details : n.expense_details,
|
|
8005
8006
|
children: y && /* @__PURE__ */ e(
|
|
8006
|
-
|
|
8007
|
+
gI,
|
|
8007
8008
|
{
|
|
8008
8009
|
frequency: u,
|
|
8009
8010
|
isIncome: A,
|
|
@@ -8016,14 +8017,14 @@ const EI = ({ transaction: A }) => {
|
|
|
8016
8017
|
}
|
|
8017
8018
|
)
|
|
8018
8019
|
] });
|
|
8019
|
-
},
|
|
8020
|
+
}, pI = C(nE), rE = (A, t, i) => t.map((n) => {
|
|
8020
8021
|
const r = i.find((I) => I.scheduled_payment_guid === n.guid), o = A.find((I) => I.guid === r?.account_guid);
|
|
8021
8022
|
return {
|
|
8022
8023
|
activityStatus: SA.Upcoming,
|
|
8023
8024
|
activityType: TA.Expense,
|
|
8024
8025
|
amount: n.amount,
|
|
8025
8026
|
categoryGuid: r?.category_guid,
|
|
8026
|
-
expectedDate:
|
|
8027
|
+
expectedDate: Lo(n.occurs_on),
|
|
8027
8028
|
name: n.description,
|
|
8028
8029
|
institution: o?.user_name,
|
|
8029
8030
|
institutionGuid: o?.institution_guid,
|
|
@@ -8045,12 +8046,12 @@ const EI = ({ transaction: A }) => {
|
|
|
8045
8046
|
/* @__PURE__ */ e(Xi, { activity: c, onActivityClick: I, showOrdinal: !0 }),
|
|
8046
8047
|
/* @__PURE__ */ e(G, { variant: d < o.length - 1 ? "inset" : "fullWidth" })
|
|
8047
8048
|
] }, c.scheduledPaymentGuid)),
|
|
8048
|
-
/* @__PURE__ */ e(
|
|
8049
|
+
/* @__PURE__ */ e(pI, { label: A.add_expense, onAddActivity: a })
|
|
8049
8050
|
] });
|
|
8050
|
-
}, IE = C(oE),
|
|
8051
|
+
}, IE = C(oE), Hn = (A) => {
|
|
8051
8052
|
let t = A.user_name || A.feed_name || "";
|
|
8052
8053
|
return A.account_number && (t = `${t} *${A.account_number}`), t;
|
|
8053
|
-
},
|
|
8054
|
+
}, zn = (A) => A ? A.repeat_interval === "1" ? U.EveryWeek : A.repeat_interval === "2" ? U.EveryOtherWeek : A.repeat_day && !A.repeat_month && !A.repeat_interval ? U.EveryMonth : A.repeat_day && A.repeat_interval === "3" ? U.EveryQuarter : A.repeat_day && A.repeat_month ? U.EveryYear : U.Unknown : U.Unknown, aE = (A, t, i, n, r, o) => {
|
|
8054
8055
|
const I = t.filter((f) => {
|
|
8055
8056
|
const E = r.find((v) => v.guid === f.cashflow_sequence_guid), l = o.find((v) => v.guid === f.transaction_guid);
|
|
8056
8057
|
return E?.end_date === null && l;
|
|
@@ -8065,10 +8066,10 @@ const EI = ({ transaction: A }) => {
|
|
|
8065
8066
|
expectedDate: Zt(f.expected_date),
|
|
8066
8067
|
occurredOnDate: f.occurred_on ? Zt(f.occurred_on) : void 0,
|
|
8067
8068
|
name: f.name,
|
|
8068
|
-
institution: v ?
|
|
8069
|
+
institution: v ? Hn(v) : void 0,
|
|
8069
8070
|
institutionGuid: v?.institution_guid,
|
|
8070
8071
|
merchantGuid: l?.merchant_guid || void 0,
|
|
8071
|
-
recurrenceType:
|
|
8072
|
+
recurrenceType: zn(E),
|
|
8072
8073
|
recurrenceDay: E?.repeat_day ? Number(E?.repeat_day) : void 0,
|
|
8073
8074
|
sequenceGuid: E?.guid,
|
|
8074
8075
|
transactionGuid: f.transaction_guid
|
|
@@ -8095,10 +8096,10 @@ const EI = ({ transaction: A }) => {
|
|
|
8095
8096
|
categoryGuid: f.category_guid,
|
|
8096
8097
|
expectedDate: Zt(f.expected_date),
|
|
8097
8098
|
name: f.name,
|
|
8098
|
-
institution: u ?
|
|
8099
|
+
institution: u ? Hn(u) : void 0,
|
|
8099
8100
|
institutionGuid: u?.institution_guid,
|
|
8100
8101
|
merchantGuid: v?.merchant_guid || void 0,
|
|
8101
|
-
recurrenceType:
|
|
8102
|
+
recurrenceType: zn(E),
|
|
8102
8103
|
recurrenceDay: E?.repeat_day ? Number(E?.repeat_day) : void 0,
|
|
8103
8104
|
sequenceGuid: E?.guid,
|
|
8104
8105
|
transactionGuid: void 0
|
|
@@ -8110,7 +8111,7 @@ const EI = ({ transaction: A }) => {
|
|
|
8110
8111
|
}, sE = (A, t, i) => {
|
|
8111
8112
|
const n = [], r = i.find((v) => v.scheduled_payment_guid === t.guid);
|
|
8112
8113
|
if (!r) return [];
|
|
8113
|
-
const o = A.find((v) => v.guid === r?.account_guid), I =
|
|
8114
|
+
const o = A.find((v) => v.guid === r?.account_guid), I = Lo(t.occurs_on), a = {
|
|
8114
8115
|
accountGuid: o?.guid,
|
|
8115
8116
|
activityStatus: SA.Upcoming,
|
|
8116
8117
|
activityType: TA.Expense,
|
|
@@ -8118,7 +8119,7 @@ const EI = ({ transaction: A }) => {
|
|
|
8118
8119
|
categoryGuid: r?.category_guid,
|
|
8119
8120
|
expectedDate: I,
|
|
8120
8121
|
name: t.description,
|
|
8121
|
-
institution: o ?
|
|
8122
|
+
institution: o ? Hn(o) : void 0,
|
|
8122
8123
|
institutionGuid: o?.institution_guid,
|
|
8123
8124
|
merchantGuid: t.merchant_guid,
|
|
8124
8125
|
recurrenceType: t.recurrence_type,
|
|
@@ -8129,11 +8130,11 @@ const EI = ({ transaction: A }) => {
|
|
|
8129
8130
|
let l = f;
|
|
8130
8131
|
switch (t.recurrence_type) {
|
|
8131
8132
|
case U.EveryWeek:
|
|
8132
|
-
for (l =
|
|
8133
|
+
for (l = fn(l, c); mA(l, E); )
|
|
8133
8134
|
n.push({
|
|
8134
8135
|
...a,
|
|
8135
8136
|
expectedDate: l
|
|
8136
|
-
}), l =
|
|
8137
|
+
}), l = fn(l, c);
|
|
8137
8138
|
break;
|
|
8138
8139
|
case U.EveryOtherWeek:
|
|
8139
8140
|
if (mA(I, f))
|
|
@@ -8146,11 +8147,11 @@ const EI = ({ transaction: A }) => {
|
|
|
8146
8147
|
for (n.push({
|
|
8147
8148
|
...a,
|
|
8148
8149
|
expectedDate: I
|
|
8149
|
-
}), l =
|
|
8150
|
+
}), l = lr(I, 2); Ot(l, f); )
|
|
8150
8151
|
n.push({
|
|
8151
8152
|
...a,
|
|
8152
8153
|
expectedDate: l
|
|
8153
|
-
}), l =
|
|
8154
|
+
}), l = lr(l, 2);
|
|
8154
8155
|
for (l = xt(I, 2); mA(l, E); )
|
|
8155
8156
|
n.push({
|
|
8156
8157
|
...a,
|
|
@@ -8161,10 +8162,10 @@ const EI = ({ transaction: A }) => {
|
|
|
8161
8162
|
case U.EveryMonth:
|
|
8162
8163
|
n.push({
|
|
8163
8164
|
...a,
|
|
8164
|
-
expectedDate:
|
|
8165
|
+
expectedDate: dn(l, c)
|
|
8165
8166
|
}), n.push({
|
|
8166
8167
|
...a,
|
|
8167
|
-
expectedDate: Re(
|
|
8168
|
+
expectedDate: Re(dn(l, c), 1)
|
|
8168
8169
|
});
|
|
8169
8170
|
break;
|
|
8170
8171
|
case U.EveryOtherMonth:
|
|
@@ -8223,7 +8224,7 @@ const EI = ({ transaction: A }) => {
|
|
|
8223
8224
|
institution: d?.user_name,
|
|
8224
8225
|
institutionGuid: d?.institution_guid,
|
|
8225
8226
|
merchantGuid: c?.merchant_guid,
|
|
8226
|
-
recurrenceType:
|
|
8227
|
+
recurrenceType: zn(o),
|
|
8227
8228
|
recurrenceDay: Number(o.repeat_day),
|
|
8228
8229
|
sequenceGuid: o.guid
|
|
8229
8230
|
};
|
|
@@ -8246,9 +8247,9 @@ const EI = ({ transaction: A }) => {
|
|
|
8246
8247
|
/* @__PURE__ */ e(Xi, { activity: f, onActivityClick: c, showOrdinal: !0 }),
|
|
8247
8248
|
/* @__PURE__ */ e(G, { variant: E < a.length - 1 ? "inset" : "fullWidth" })
|
|
8248
8249
|
] }, f.sequenceGuid)),
|
|
8249
|
-
/* @__PURE__ */ e(
|
|
8250
|
+
/* @__PURE__ */ e(pI, { isIncome: !0, label: A.add_income, onAddActivity: d })
|
|
8250
8251
|
] });
|
|
8251
|
-
},
|
|
8252
|
+
}, Jn = C(fE), dE = () => {
|
|
8252
8253
|
const [A, t] = h.useState(0), { onEvent: i } = K(), { recurring: n } = X();
|
|
8253
8254
|
return /* @__PURE__ */ s(L, { bgcolor: "background.default", height: "100%", children: [
|
|
8254
8255
|
/* @__PURE__ */ s(
|
|
@@ -8269,15 +8270,15 @@ const EI = ({ transaction: A }) => {
|
|
|
8269
8270
|
}
|
|
8270
8271
|
),
|
|
8271
8272
|
A === 0 && /* @__PURE__ */ e(IE, {}),
|
|
8272
|
-
A === 1 && /* @__PURE__ */ e(
|
|
8273
|
+
A === 1 && /* @__PURE__ */ e(Jn, {})
|
|
8273
8274
|
] });
|
|
8274
|
-
},
|
|
8275
|
+
}, wI = C(dE), Ut = (A, t) => A + t.amount, en = (A) => A.activityType === TA.Income && mt(A.expectedDate, {
|
|
8275
8276
|
start: QA(fA()),
|
|
8276
8277
|
end: BA(fA())
|
|
8277
8278
|
}), di = (A) => A.activityType === TA.Expense && mt(A.expectedDate, {
|
|
8278
8279
|
start: QA(fA()),
|
|
8279
8280
|
end: BA(fA())
|
|
8280
|
-
}),
|
|
8281
|
+
}), tn = (A) => A.occurredOnDate && mt(A.occurredOnDate, {
|
|
8281
8282
|
start: QA(/* @__PURE__ */ new Date()),
|
|
8282
8283
|
end: We(fA(), 30)
|
|
8283
8284
|
}) || mt(A.expectedDate, {
|
|
@@ -8297,13 +8298,13 @@ const EI = ({ transaction: A }) => {
|
|
|
8297
8298
|
(u) => u.activityType === TA.Expense && u.activityStatus === SA.Paid
|
|
8298
8299
|
), l = c.some((u) => u.activityType === TA.Income), v = (d ? 1 : 0) + (f ? 1 : 0) + (E ? 1 : 0) + (l ? 1 : 0);
|
|
8299
8300
|
return /* @__PURE__ */ e(
|
|
8300
|
-
|
|
8301
|
+
qo,
|
|
8301
8302
|
{
|
|
8302
8303
|
badgeContent: c.length > 0 && /* @__PURE__ */ s(Z, { children: [
|
|
8303
|
-
f && /* @__PURE__ */ e(
|
|
8304
|
-
E && /* @__PURE__ */ e(
|
|
8305
|
-
d && /* @__PURE__ */ e(
|
|
8306
|
-
l && /* @__PURE__ */ e(
|
|
8304
|
+
f && /* @__PURE__ */ e(Kn, { isOffset: !0 }),
|
|
8305
|
+
E && /* @__PURE__ */ e(Zn, { isOffset: !0 }),
|
|
8306
|
+
d && /* @__PURE__ */ e(Wn, { isOffset: !0 }),
|
|
8307
|
+
l && /* @__PURE__ */ e(kn, { isOffset: !0 })
|
|
8307
8308
|
] }),
|
|
8308
8309
|
overlap: "circular",
|
|
8309
8310
|
sx: {
|
|
@@ -8351,18 +8352,18 @@ const EI = ({ transaction: A }) => {
|
|
|
8351
8352
|
justifyContent: "center",
|
|
8352
8353
|
mt: 12,
|
|
8353
8354
|
children: [
|
|
8354
|
-
/* @__PURE__ */ e(Ei, { icon:
|
|
8355
|
-
/* @__PURE__ */ e(Ei, { icon:
|
|
8356
|
-
/* @__PURE__ */ e(Ei, { icon:
|
|
8357
|
-
/* @__PURE__ */ e(Ei, { icon:
|
|
8355
|
+
/* @__PURE__ */ e(Ei, { icon: Wn, label: A.expense }),
|
|
8356
|
+
/* @__PURE__ */ e(Ei, { icon: kn, label: A.income }),
|
|
8357
|
+
/* @__PURE__ */ e(Ei, { icon: Kn, label: A.missed }),
|
|
8358
|
+
/* @__PURE__ */ e(Ei, { icon: Zn, label: A.paid })
|
|
8358
8359
|
]
|
|
8359
8360
|
}
|
|
8360
8361
|
);
|
|
8361
|
-
}, vE = C(lE),
|
|
8362
|
+
}, vE = C(lE), kr = 58, RE = () => {
|
|
8362
8363
|
const A = RA(), { onEvent: t } = K(), { selectedDay: i } = ZA(), [n, r] = h.useState(
|
|
8363
|
-
|
|
8364
|
+
vr(/* @__PURE__ */ new Date()) * Bt + kr
|
|
8364
8365
|
), o = (a) => {
|
|
8365
|
-
r(
|
|
8366
|
+
r(vr(a) * Bt + kr), t(V.RECURRING_ACTIVITY_CLICK_CALENDAR_RIGHT);
|
|
8366
8367
|
}, I = /* @__PURE__ */ e(
|
|
8367
8368
|
mi,
|
|
8368
8369
|
{
|
|
@@ -8414,7 +8415,7 @@ const EI = ({ transaction: A }) => {
|
|
|
8414
8415
|
!i && I,
|
|
8415
8416
|
/* @__PURE__ */ e(vE, {})
|
|
8416
8417
|
] }) });
|
|
8417
|
-
},
|
|
8418
|
+
}, yI = C(RE), uE = (A) => A.reduce((t, i) => {
|
|
8418
8419
|
const n = i.expectedDate.toISOString().split("T")[0], r = t.find(
|
|
8419
8420
|
(o) => o.expectedDate.toString() === i.expectedDate.toString()
|
|
8420
8421
|
);
|
|
@@ -8507,7 +8508,7 @@ const EI = ({ transaction: A }) => {
|
|
|
8507
8508
|
] }),
|
|
8508
8509
|
/* @__PURE__ */ e(ti, { data: c })
|
|
8509
8510
|
] });
|
|
8510
|
-
},
|
|
8511
|
+
}, Kr = C(bE), HE = () => {
|
|
8511
8512
|
const { recurring: A } = X(), { isMobile: t, isSmallTablet: i } = zA(), {
|
|
8512
8513
|
activities: n,
|
|
8513
8514
|
missedActivities: r,
|
|
@@ -8516,7 +8517,7 @@ const EI = ({ transaction: A }) => {
|
|
|
8516
8517
|
selectedDayActivities: a,
|
|
8517
8518
|
setSelectedDay: c,
|
|
8518
8519
|
upcomingActivities: d
|
|
8519
|
-
} = ZA(), [f, E] = h.useState(0), { onEvent: l } = K(), v = n.filter(
|
|
8520
|
+
} = ZA(), [f, E] = h.useState(0), { onEvent: l } = K(), v = n.filter(tn), u = o.filter(tn), H = r.filter(tn), P = v.filter(di).reduce(Ut, 0), p = u.filter(di).reduce(Ut, 0), y = H.filter(di).reduce(Ut, 0), x = v.filter(di).length, w = v.filter(en).reduce(Ut, 0), D = u.filter(en).reduce(Ut, 0), m = v.filter(en).length, j = (tA, Y) => {
|
|
8520
8521
|
E(Y);
|
|
8521
8522
|
}, O = (tA) => {
|
|
8522
8523
|
l(V.RECURRING_ACTIVITY_CLICK_UPCOMING, {
|
|
@@ -8530,7 +8531,7 @@ const EI = ({ transaction: A }) => {
|
|
|
8530
8531
|
return /* @__PURE__ */ s(tt, { container: !0, pt: 16, px: 24, spacing: 24, children: [
|
|
8531
8532
|
/* @__PURE__ */ e(tt, { md: !0, sm: 12, children: /* @__PURE__ */ s(b, { gap: 24, children: [
|
|
8532
8533
|
/* @__PURE__ */ e(
|
|
8533
|
-
|
|
8534
|
+
Kr,
|
|
8534
8535
|
{
|
|
8535
8536
|
expected: P,
|
|
8536
8537
|
missed: y,
|
|
@@ -8540,7 +8541,7 @@ const EI = ({ transaction: A }) => {
|
|
|
8540
8541
|
}
|
|
8541
8542
|
),
|
|
8542
8543
|
/* @__PURE__ */ e(
|
|
8543
|
-
|
|
8544
|
+
Kr,
|
|
8544
8545
|
{
|
|
8545
8546
|
expected: w,
|
|
8546
8547
|
paid: D,
|
|
@@ -8582,7 +8583,7 @@ const EI = ({ transaction: A }) => {
|
|
|
8582
8583
|
] })
|
|
8583
8584
|
] }) }),
|
|
8584
8585
|
!i && !t && /* @__PURE__ */ e(tt, { sx: { minWidth: 450 }, xs: "auto", children: /* @__PURE__ */ s(b, { gap: 35, children: [
|
|
8585
|
-
/* @__PURE__ */ e(
|
|
8586
|
+
/* @__PURE__ */ e(yI, {}),
|
|
8586
8587
|
/* @__PURE__ */ e(
|
|
8587
8588
|
kt,
|
|
8588
8589
|
{
|
|
@@ -8639,7 +8640,7 @@ const EI = ({ transaction: A }) => {
|
|
|
8639
8640
|
onClose: () => E(!1),
|
|
8640
8641
|
shouldShowHeaderBorders: !1,
|
|
8641
8642
|
title: n.settings,
|
|
8642
|
-
children: /* @__PURE__ */ e(
|
|
8643
|
+
children: /* @__PURE__ */ e(wI, {})
|
|
8643
8644
|
}
|
|
8644
8645
|
)
|
|
8645
8646
|
]
|
|
@@ -8653,7 +8654,7 @@ const EI = ({ transaction: A }) => {
|
|
|
8653
8654
|
[t, o]
|
|
8654
8655
|
), { availableWidth: a } = Xt(), c = a < 750;
|
|
8655
8656
|
return /* @__PURE__ */ s(b, { flexDirection: c ? "column" : "row", width: "100%", children: [
|
|
8656
|
-
/* @__PURE__ */ e(
|
|
8657
|
+
/* @__PURE__ */ e(yI, {}),
|
|
8657
8658
|
!c && /* @__PURE__ */ e(G, { flexItem: !0, orientation: "vertical", sx: { my: 16, ml: 16 } }),
|
|
8658
8659
|
/* @__PURE__ */ e(
|
|
8659
8660
|
kt,
|
|
@@ -8691,8 +8692,8 @@ const EI = ({ transaction: A }) => {
|
|
|
8691
8692
|
}, wP = C(pE);
|
|
8692
8693
|
class wE {
|
|
8693
8694
|
globalStore;
|
|
8694
|
-
api = new
|
|
8695
|
-
cashflowApi = new
|
|
8695
|
+
api = new Xr("/", "");
|
|
8696
|
+
cashflowApi = new Ao("/", "");
|
|
8696
8697
|
cashflowSequences = [];
|
|
8697
8698
|
cashflowEvents = [];
|
|
8698
8699
|
projectedEvents = [];
|
|
@@ -8704,7 +8705,7 @@ class wE {
|
|
|
8704
8705
|
this.globalStore = t, DA(this);
|
|
8705
8706
|
}
|
|
8706
8707
|
initialize = async (t, i) => {
|
|
8707
|
-
this.api = new
|
|
8708
|
+
this.api = new Xr(t, i), this.cashflowApi = new Ao(t, i), this.loadActivity();
|
|
8708
8709
|
};
|
|
8709
8710
|
get activities() {
|
|
8710
8711
|
return this.isLoading ? [] : aE(
|
|
@@ -8894,7 +8895,7 @@ const yE = {
|
|
|
8894
8895
|
gridRow: 1,
|
|
8895
8896
|
gridColumn: 1,
|
|
8896
8897
|
zIndex: 2
|
|
8897
|
-
}, xE = ({ size: A = 20 }) => /* @__PURE__ */ e(ft, { size: A, children: /* @__PURE__ */ e(Qi, { color: "error", sx: { fontSize: A, ...yE } }) }),
|
|
8898
|
+
}, xE = ({ size: A = 20 }) => /* @__PURE__ */ e(ft, { size: A, children: /* @__PURE__ */ e(Qi, { color: "error", sx: { fontSize: A, ...yE } }) }), _n = (A) => A && (A.account_type === _.CREDIT_CARD || A.account_type === _.LOAN || A.account_type === _.MORTGAGE || A.account_type === _.LINE_OF_CREDIT || A.account_type === _.CHECKING_LINE_OF_CREDIT), DE = (A) => A.is_manual || !A.guid, jE = (A) => A.account_type === _.LINE_OF_CREDIT || A.account_type === _.CREDIT_CARD || A.account_type === _.CHECKING_LINE_OF_CREDIT, mE = (A) => A.account_type === _.SAVINGS || A.account_type === _.CHECKING || A.account_type === _.LINE_OF_CREDIT || A.account_type === _.CREDIT_CARD || A.account_type === _.LOAN || A.account_type === _.MORTGAGE, OE = (A) => A.account_type === _.LOAN || A.account_type === _.MORTGAGE, LE = (A, t) => {
|
|
8898
8899
|
const i = [
|
|
8899
8900
|
{
|
|
8900
8901
|
event: "account_details_click_account_name",
|
|
@@ -8917,7 +8918,7 @@ const yE = {
|
|
|
8917
8918
|
const n = Object.keys(_).filter((r) => Number(r)).map((r) => ({
|
|
8918
8919
|
label: t.account_types[r],
|
|
8919
8920
|
value: Number(r),
|
|
8920
|
-
icon: /* @__PURE__ */ e(q, { name:
|
|
8921
|
+
icon: /* @__PURE__ */ e(q, { name: Uo[r] })
|
|
8921
8922
|
}));
|
|
8922
8923
|
i.push({
|
|
8923
8924
|
label: t.account_type,
|
|
@@ -8929,7 +8930,7 @@ const yE = {
|
|
|
8929
8930
|
});
|
|
8930
8931
|
}
|
|
8931
8932
|
if (A.account_type === _.PROPERTY) {
|
|
8932
|
-
const n = Object.keys(
|
|
8933
|
+
const n = Object.keys(Yo).filter((r) => Number(r)).map((r) => ({
|
|
8933
8934
|
label: t.property_types[r],
|
|
8934
8935
|
value: Number(r),
|
|
8935
8936
|
icon: /* @__PURE__ */ e(q, { name: Ss[r] })
|
|
@@ -8951,11 +8952,11 @@ const yE = {
|
|
|
8951
8952
|
name: r,
|
|
8952
8953
|
placeholder: z(t.enter_value, n),
|
|
8953
8954
|
type: de.Input,
|
|
8954
|
-
validation: (o) =>
|
|
8955
|
-
valueFormatter: (o) =>
|
|
8955
|
+
validation: (o) => ln(o) ? "" : t.error_amount_is_invalid,
|
|
8956
|
+
valueFormatter: (o) => ln(o) ? Gi(o / 100) : o
|
|
8956
8957
|
});
|
|
8957
8958
|
}
|
|
8958
|
-
return
|
|
8959
|
+
return _n(A) && (i.push({
|
|
8959
8960
|
label: t.minimum_payment,
|
|
8960
8961
|
name: "minimum_payment",
|
|
8961
8962
|
placeholder: z(t.enter_value, t.minimum_payment),
|
|
@@ -8976,7 +8977,7 @@ const yE = {
|
|
|
8976
8977
|
type: de.Date,
|
|
8977
8978
|
valueFormatter: (n) => z(
|
|
8978
8979
|
t.day_of_every_month,
|
|
8979
|
-
|
|
8980
|
+
ko(n <= 31 ? n : new Date(n).getDate())
|
|
8980
8981
|
)
|
|
8981
8982
|
})), jE(A) && i.push({
|
|
8982
8983
|
label: t.credit_limit,
|
|
@@ -8992,7 +8993,7 @@ const yE = {
|
|
|
8992
8993
|
type: de.Currency,
|
|
8993
8994
|
valueFormatter: (n) => M(n, "0,0.00")
|
|
8994
8995
|
}), i;
|
|
8995
|
-
},
|
|
8996
|
+
}, xI = (A, t) => {
|
|
8996
8997
|
let i = "", n = null, r = null, o = null, I = !1;
|
|
8997
8998
|
switch (A.account_type) {
|
|
8998
8999
|
case 1:
|
|
@@ -9023,7 +9024,7 @@ const yE = {
|
|
|
9023
9024
|
listItemProps: i,
|
|
9024
9025
|
shouldShowConnectionStatus: n = !1
|
|
9025
9026
|
}) => {
|
|
9026
|
-
const { accounts: r } = X(), { firstSubtitle: o, firstValue: I, secondSubtitle: a, secondValue: c } =
|
|
9027
|
+
const { accounts: r } = X(), { firstSubtitle: o, firstValue: I, secondSubtitle: a, secondValue: c } = xI(
|
|
9027
9028
|
A,
|
|
9028
9029
|
r
|
|
9029
9030
|
);
|
|
@@ -9031,7 +9032,7 @@ const yE = {
|
|
|
9031
9032
|
(A.connectionStatus === bt.Error || A.connectionStatus === bt.RequiresMfa) && (d = /* @__PURE__ */ e(xE, { size: 16 }));
|
|
9032
9033
|
const f = /* @__PURE__ */ s(Z, { children: [
|
|
9033
9034
|
/* @__PURE__ */ e(xA, { children: /* @__PURE__ */ e(
|
|
9034
|
-
|
|
9035
|
+
qo,
|
|
9035
9036
|
{
|
|
9036
9037
|
badgeContent: n ? d : void 0,
|
|
9037
9038
|
sx: {
|
|
@@ -9079,7 +9080,7 @@ const yE = {
|
|
|
9079
9080
|
borderBottomRightRadius: "3px",
|
|
9080
9081
|
minHeight: "auto"
|
|
9081
9082
|
},
|
|
9082
|
-
children: /* @__PURE__ */ e(
|
|
9083
|
+
children: /* @__PURE__ */ e(Vn, { remaining: A })
|
|
9083
9084
|
}
|
|
9084
9085
|
);
|
|
9085
9086
|
var ni = /* @__PURE__ */ ((A) => (A.EXPENSE = "expense", A.INCOME = "income", A))(ni || {});
|
|
@@ -9100,7 +9101,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9100
9101
|
)
|
|
9101
9102
|
] }),
|
|
9102
9103
|
/* @__PURE__ */ e(G, {})
|
|
9103
|
-
] }),
|
|
9104
|
+
] }), Zr = C(GE), ME = ({ total: A, type: t }) => {
|
|
9104
9105
|
const { cashflow: i } = X();
|
|
9105
9106
|
return /* @__PURE__ */ s(Z, { children: [
|
|
9106
9107
|
/* @__PURE__ */ s(
|
|
@@ -9126,7 +9127,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9126
9127
|
),
|
|
9127
9128
|
/* @__PURE__ */ e(G, {})
|
|
9128
9129
|
] });
|
|
9129
|
-
},
|
|
9130
|
+
}, Jr = C(ME), _r = (A, t) => (i) => i.accountGuid === A.guid && (On(i.expectedDate) || Ot(i.expectedDate, t.start)) && mA(i.expectedDate, t.end), NE = () => {
|
|
9130
9131
|
const { availableWidth: A } = Xt(), { cashflow: t } = X(), { upcomingExpenses: i, upcomingIncome: n } = ZA(), { dateRange: r, selectedCashAccounts: o } = Nt();
|
|
9131
9132
|
return /* @__PURE__ */ s(b, { children: [
|
|
9132
9133
|
/* @__PURE__ */ s(b, { direction: A < 400 ? "column" : "row", justifyContent: "space-between", children: [
|
|
@@ -9139,8 +9140,8 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9139
9140
|
] })
|
|
9140
9141
|
] }),
|
|
9141
9142
|
/* @__PURE__ */ e(b, { children: o.map((I) => {
|
|
9142
|
-
const a = n.filter(
|
|
9143
|
-
|
|
9143
|
+
const a = n.filter(_r(I, r)).sort((E, l) => gA(E.expectedDate) - gA(l.expectedDate)), c = i.filter(
|
|
9144
|
+
_r(I, r)
|
|
9144
9145
|
), d = a.reduce(
|
|
9145
9146
|
(E, l) => E + l.amount,
|
|
9146
9147
|
0
|
|
@@ -9173,17 +9174,17 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9173
9174
|
a.length > 0 && /* @__PURE__ */ e(W, { children: /* @__PURE__ */ e(
|
|
9174
9175
|
rA,
|
|
9175
9176
|
{
|
|
9176
|
-
subheader: /* @__PURE__ */ e(
|
|
9177
|
+
subheader: /* @__PURE__ */ e(Jr, { total: d, type: ni.INCOME }),
|
|
9177
9178
|
sx: { width: "100%" },
|
|
9178
|
-
children: a.map((E) => /* @__PURE__ */ e(
|
|
9179
|
+
children: a.map((E) => /* @__PURE__ */ e(Zr, { activity: E }, E.sequenceGuid))
|
|
9179
9180
|
}
|
|
9180
9181
|
) }),
|
|
9181
9182
|
c.length > 0 && /* @__PURE__ */ e(W, { children: /* @__PURE__ */ e(
|
|
9182
9183
|
rA,
|
|
9183
9184
|
{
|
|
9184
|
-
subheader: /* @__PURE__ */ e(
|
|
9185
|
+
subheader: /* @__PURE__ */ e(Jr, { total: f, type: ni.EXPENSE }),
|
|
9185
9186
|
sx: { width: "100%" },
|
|
9186
|
-
children: c.map((E) => /* @__PURE__ */ e(
|
|
9187
|
+
children: c.map((E) => /* @__PURE__ */ e(Zr, { activity: E }, E.scheduledPaymentGuid))
|
|
9187
9188
|
}
|
|
9188
9189
|
) }),
|
|
9189
9190
|
/* @__PURE__ */ e(
|
|
@@ -9407,7 +9408,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9407
9408
|
px: 16,
|
|
9408
9409
|
py: 12,
|
|
9409
9410
|
sx: { borderBottomLeftRadius: "4px", borderBottomRightRadius: "4px" },
|
|
9410
|
-
children: /* @__PURE__ */ e(
|
|
9411
|
+
children: /* @__PURE__ */ e(Vn, { remaining: d.remaining })
|
|
9411
9412
|
}
|
|
9412
9413
|
)
|
|
9413
9414
|
] }) })
|
|
@@ -9483,12 +9484,12 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9483
9484
|
t && /* @__PURE__ */ e(OA, { amount: A, component: "h2", symbol: r, variant: "Small" })
|
|
9484
9485
|
]
|
|
9485
9486
|
}
|
|
9486
|
-
),
|
|
9487
|
+
), $r = (A, t) => (i) => i.accountGuid && A.includes(i.accountGuid) && (On(i.expectedDate) || Ot(i.expectedDate, t.start)) && mA(i.expectedDate, t.end), UE = () => {
|
|
9487
9488
|
const [A, t] = h.useState(!1), { availableWidth: i } = Xt(), { cashflow: n } = X(), { upcomingExpenses: r, upcomingIncome: o } = ZA(), { selectedAccountGuids: I } = pA(), { dateRange: a, selectedCashAccounts: c } = Nt(), { userProfile: d } = Ue(), f = h.useMemo(
|
|
9488
|
-
() => r.filter(
|
|
9489
|
+
() => r.filter($r(I, a)),
|
|
9489
9490
|
[a, I, r]
|
|
9490
9491
|
), E = h.useMemo(
|
|
9491
|
-
() => o.filter(
|
|
9492
|
+
() => o.filter($r(I, a)),
|
|
9492
9493
|
[a, I, o]
|
|
9493
9494
|
), l = h.useMemo(
|
|
9494
9495
|
() => c.reduce((y, x) => y + (x?.balance || 0), 0),
|
|
@@ -9595,12 +9596,12 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9595
9596
|
onClose: () => t(!1),
|
|
9596
9597
|
shouldShowHeaderBorders: !1,
|
|
9597
9598
|
title: n.manage_income,
|
|
9598
|
-
children: /* @__PURE__ */ e(
|
|
9599
|
+
children: /* @__PURE__ */ e(Jn, {})
|
|
9599
9600
|
}
|
|
9600
9601
|
)
|
|
9601
9602
|
] });
|
|
9602
9603
|
}, FE = C(UE), WE = ({ handleNextStep: A }) => {
|
|
9603
|
-
const { completeOnboarding: t } =
|
|
9604
|
+
const { completeOnboarding: t } = Tn(), { cashflow: i } = X(), n = RA();
|
|
9604
9605
|
return /* @__PURE__ */ s(b, { children: [
|
|
9605
9606
|
/* @__PURE__ */ e(it, { pb: 12, children: i.welcome_title }),
|
|
9606
9607
|
/* @__PURE__ */ e(
|
|
@@ -9684,7 +9685,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9684
9685
|
transform: rotate(360deg);
|
|
9685
9686
|
}
|
|
9686
9687
|
`, Ah = () => {
|
|
9687
|
-
const { addCashflowEvent: A, addCashflowSequence: t, cashflowSequences: i } = ZA(), { cashflow: n, common: r } = X(), { completeOnboarding: o } =
|
|
9688
|
+
const { addCashflowEvent: A, addCashflowSequence: t, cashflowSequences: i } = ZA(), { cashflow: n, common: r } = X(), { completeOnboarding: o } = Tn(), { isDirty: I } = Nt(), { isMobile: a } = zA(), { setDisplayedDate: c } = pA(), { filter: d, setFilter: f, transactions: E } = PA(), l = RA(), [v, u] = Fe(!0), [H, P] = h.useState(U.EveryMonth), [p, y] = Fe(!1), [x, w] = h.useState(null), [D, m] = Fe(1), [j, O] = Fe([]), [T, tA] = Fe(""), Y = h.useMemo(
|
|
9688
9689
|
() => E.find((cA) => cA.guid === T),
|
|
9689
9690
|
[T]
|
|
9690
9691
|
), iA = !!i.length, oA = async () => {
|
|
@@ -9697,13 +9698,13 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9697
9698
|
if (!(j.length < 1)) {
|
|
9698
9699
|
y(!0);
|
|
9699
9700
|
for (let cA = 0; cA < j.length; cA++) {
|
|
9700
|
-
const jA = j[cA], WA =
|
|
9701
|
+
const jA = j[cA], WA = HI(
|
|
9701
9702
|
jA,
|
|
9702
9703
|
jA.frequency,
|
|
9703
9704
|
jA.nextDate
|
|
9704
9705
|
), fe = await t(WA);
|
|
9705
9706
|
if (fe) {
|
|
9706
|
-
const Ie =
|
|
9707
|
+
const Ie = zI(fe, jA);
|
|
9707
9708
|
await A(Ie);
|
|
9708
9709
|
}
|
|
9709
9710
|
}
|
|
@@ -9753,10 +9754,10 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9753
9754
|
/* @__PURE__ */ e(HA, { mb: 24, children: n.add_income_description }),
|
|
9754
9755
|
j.length > 0 && !Y && /* @__PURE__ */ s(Z, { children: [
|
|
9755
9756
|
/* @__PURE__ */ e(rA, { children: j.map((cA, jA) => /* @__PURE__ */ s(h.Fragment, { children: [
|
|
9756
|
-
/* @__PURE__ */ e(
|
|
9757
|
+
/* @__PURE__ */ e(Un, { bgcolor: "background.paper", children: Mi(
|
|
9757
9758
|
gA(cA.nextDate || cA.date)
|
|
9758
9759
|
) }),
|
|
9759
|
-
/* @__PURE__ */ e(
|
|
9760
|
+
/* @__PURE__ */ e(Sn, { transaction: cA }),
|
|
9760
9761
|
jA !== j.length - 1 && /* @__PURE__ */ e(G, {})
|
|
9761
9762
|
] }, cA.guid)) }),
|
|
9762
9763
|
/* @__PURE__ */ s(b, { alignItems: "center", direction: "row", children: [
|
|
@@ -9772,12 +9773,12 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9772
9773
|
] })
|
|
9773
9774
|
] }),
|
|
9774
9775
|
uA && /* @__PURE__ */ e(
|
|
9775
|
-
|
|
9776
|
+
CI,
|
|
9776
9777
|
{
|
|
9777
9778
|
bgcolor: "background.paper",
|
|
9778
9779
|
onSearch: (cA) => f({
|
|
9779
9780
|
...d,
|
|
9780
|
-
custom: (jA) => cA ?
|
|
9781
|
+
custom: (jA) => cA ? XI(jA, cA) : ii(jA)
|
|
9781
9782
|
}),
|
|
9782
9783
|
onSelected: (cA) => {
|
|
9783
9784
|
tA(cA), u(!1);
|
|
@@ -9787,7 +9788,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9787
9788
|
!iA && I && /* @__PURE__ */ e(HA, { color: "error", mt: 16, children: n.confirm_error }),
|
|
9788
9789
|
Y && /* @__PURE__ */ s(Z, { children: [
|
|
9789
9790
|
/* @__PURE__ */ e(
|
|
9790
|
-
|
|
9791
|
+
gI,
|
|
9791
9792
|
{
|
|
9792
9793
|
bgcolor: "background.paper",
|
|
9793
9794
|
frequency: H,
|
|
@@ -9902,7 +9903,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9902
9903
|
onClose: () => H(!1),
|
|
9903
9904
|
shouldShowHeaderBorders: !1,
|
|
9904
9905
|
title: v.cashflow_settings,
|
|
9905
|
-
children: /* @__PURE__ */ e(
|
|
9906
|
+
children: /* @__PURE__ */ e(wI, {})
|
|
9906
9907
|
}
|
|
9907
9908
|
)
|
|
9908
9909
|
]
|
|
@@ -9917,7 +9918,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9917
9918
|
}
|
|
9918
9919
|
);
|
|
9919
9920
|
}, yP = C(th);
|
|
9920
|
-
class
|
|
9921
|
+
class Ao {
|
|
9921
9922
|
fetchInstance;
|
|
9922
9923
|
constructor(t, i) {
|
|
9923
9924
|
this.fetchInstance = new Ae(t, i);
|
|
@@ -9980,20 +9981,20 @@ class nh {
|
|
|
9980
9981
|
};
|
|
9981
9982
|
}
|
|
9982
9983
|
class rh {
|
|
9983
|
-
widgetApi = new
|
|
9984
|
+
widgetApi = new wr("/", "");
|
|
9984
9985
|
globalStore;
|
|
9985
9986
|
constructor(t) {
|
|
9986
9987
|
this.globalStore = t, DA(this);
|
|
9987
9988
|
}
|
|
9988
9989
|
initialize = async (t, i) => {
|
|
9989
|
-
this.widgetApi = new
|
|
9990
|
+
this.widgetApi = new wr(t, i);
|
|
9990
9991
|
};
|
|
9991
9992
|
loadWidget = async ({ widget: t = "connect_widget", mode: i = "light", ...n }) => await this.widgetApi.requestWidgetUrl({
|
|
9992
9993
|
widget_url: { widget_type: t, color_scheme: i, ...n }
|
|
9993
9994
|
});
|
|
9994
9995
|
}
|
|
9995
9996
|
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
|
|
9997
|
+
const DI = (A, t) => {
|
|
9997
9998
|
const i = A.filter((r) => !r.is_paid_off && !r.is_impossible), n = A.filter((r) => r.is_paid_off || r.is_impossible);
|
|
9998
9999
|
switch (t) {
|
|
9999
10000
|
case Te.HIGHEST_INTEREST:
|
|
@@ -10014,7 +10015,7 @@ function oh(A, t, i = 0) {
|
|
|
10014
10015
|
const n = A.map((f) => ({ ...f })).filter(
|
|
10015
10016
|
(f) => f.interest_rate !== void 0 && f.monthly_payment !== void 0 && !f.is_paid_off
|
|
10016
10017
|
);
|
|
10017
|
-
|
|
10018
|
+
DI(n, t);
|
|
10018
10019
|
let r = 0, o = 0;
|
|
10019
10020
|
const I = /* @__PURE__ */ new Date(), a = /* @__PURE__ */ new Date();
|
|
10020
10021
|
for (; n.some((f) => f.balance >= 0.01 && !f.is_impossible); ) {
|
|
@@ -10462,7 +10463,7 @@ const ke = () => {
|
|
|
10462
10463
|
if (!h.useContext(gt))
|
|
10463
10464
|
throw new Error("useCategoryUiStore() must be used within the GlobalDataContext");
|
|
10464
10465
|
return CA().uiStore;
|
|
10465
|
-
}, Fi = (A) => A.top_level_category_guid === g.INCOME || A.category_guid === g.INCOME, fh = (A) => !Fi(A) && !
|
|
10466
|
+
}, Fi = (A) => A.top_level_category_guid === g.INCOME || A.category_guid === g.INCOME, fh = (A) => !Fi(A) && !mI(A), jI = (A) => Pr.includes(A.top_level_category_guid) || Pr.includes(A.category_guid), mI = (A) => A.top_level_category_guid === g.TRANSFER || A.category_guid === g.TRANSFER, dh = (A) => !Fi(A) && !jI(A) && !mI(A), Eh = (A) => A.filter((t) => t.category_guid === t.top_level_category_guid), $n = (A, t) => {
|
|
10466
10467
|
const i = [];
|
|
10467
10468
|
let n = QA(Ne(/* @__PURE__ */ new Date(), 5));
|
|
10468
10469
|
const r = /* @__PURE__ */ new Date();
|
|
@@ -10474,13 +10475,13 @@ const ke = () => {
|
|
|
10474
10475
|
return i;
|
|
10475
10476
|
}, hh = (A, t) => {
|
|
10476
10477
|
const i = A.filter(Fi);
|
|
10477
|
-
return
|
|
10478
|
+
return $n(i).map((n) => ({ ...n, y: Math.abs(n.y) }));
|
|
10478
10479
|
}, lh = (A, t) => {
|
|
10479
|
-
const i = A.filter(
|
|
10480
|
-
return
|
|
10480
|
+
const i = A.filter(jI);
|
|
10481
|
+
return $n(i).map((n) => ({ ...n, y: Math.abs(n.y) }));
|
|
10481
10482
|
}, vh = (A, t) => {
|
|
10482
10483
|
const i = A.filter(dh);
|
|
10483
|
-
return
|
|
10484
|
+
return $n(i);
|
|
10484
10485
|
}, Rh = (A) => {
|
|
10485
10486
|
const t = [], i = A.filter(
|
|
10486
10487
|
(o) => o.top_level_category_guid !== g.INCOME && o.top_level_category_guid !== g.TRANSFER && o.total > 0
|
|
@@ -10494,18 +10495,18 @@ const ke = () => {
|
|
|
10494
10495
|
}), n = Re(n, 1);
|
|
10495
10496
|
return t;
|
|
10496
10497
|
}, uh = (A, t) => {
|
|
10497
|
-
const i =
|
|
10498
|
+
const i = Qn.includes(t) ? hh(A) : [], n = qn.includes(t) ? lh(A) : [], r = Gn.includes(t) ? vh(A) : [];
|
|
10498
10499
|
return [i, n, r].filter((o) => o.length > 0);
|
|
10499
10500
|
}, Ph = (A, t, i) => {
|
|
10500
10501
|
const [n, r] = A, o = n, I = r ?? n, a = [];
|
|
10501
|
-
if (o && I &&
|
|
10502
|
+
if (o && I && Qn.includes(t)) {
|
|
10502
10503
|
const c = M(o[o.length - 1].y, "0,0");
|
|
10503
10504
|
a.push(`${i.income_label} ${c}`);
|
|
10504
|
-
} else if (
|
|
10505
|
+
} else if (qn.includes(t)) {
|
|
10505
10506
|
const c = M(o[o.length - 1].y, "0,0");
|
|
10506
10507
|
a.push(`${i.payments_label} ${c}`);
|
|
10507
10508
|
}
|
|
10508
|
-
if (I &&
|
|
10509
|
+
if (I && Gn.includes(t)) {
|
|
10509
10510
|
const c = M(I[I.length - 1].y, "0,0");
|
|
10510
10511
|
a.push(`${i.spending_label} ${c}`);
|
|
10511
10512
|
}
|
|
@@ -10513,7 +10514,7 @@ const ke = () => {
|
|
|
10513
10514
|
}, bh = () => {
|
|
10514
10515
|
const A = oe(), { selectedAccount: t } = Xe(), { monthlyCategoryTotals: i } = qA(), { trends: n } = X(), r = [A.palette.chart?.chart1, A.palette.chart?.chart2], o = uh(i, t.account_type), I = Ph(o, t.account_type, n), a = [_.LOAN, _.MORTGAGE].includes(t.account_type);
|
|
10515
10516
|
return /* @__PURE__ */ e("div", { "data-testid": "TrendsChart", children: /* @__PURE__ */ e(
|
|
10516
|
-
|
|
10517
|
+
Nn,
|
|
10517
10518
|
{
|
|
10518
10519
|
colors: r,
|
|
10519
10520
|
datasets: o,
|
|
@@ -10552,12 +10553,12 @@ const ke = () => {
|
|
|
10552
10553
|
}
|
|
10553
10554
|
);
|
|
10554
10555
|
}, 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 } =
|
|
10556
|
+
const { institutions: t } = CA(), { selectedAccount: i } = Xe(), { accounts: n } = X(), { firstSubtitle: r, firstValue: o, hasAvailableBalance: I, secondSubtitle: a, secondValue: c } = xI(i, n), d = t.find(
|
|
10556
10557
|
(E) => E.guid === i?.institution_guid
|
|
10557
10558
|
), f = [
|
|
10558
|
-
...Ln,
|
|
10559
10559
|
...Qn,
|
|
10560
|
-
...qn
|
|
10560
|
+
...qn,
|
|
10561
|
+
...Gn
|
|
10561
10562
|
].includes(i.account_type);
|
|
10562
10563
|
return /* @__PURE__ */ s(b, { bgcolor: "background.default", p: 24, children: [
|
|
10563
10564
|
/* @__PURE__ */ s(b, { gap: 12, children: [
|
|
@@ -10584,7 +10585,7 @@ const ke = () => {
|
|
|
10584
10585
|
] }),
|
|
10585
10586
|
f && /* @__PURE__ */ e(b, { children: A || /* @__PURE__ */ e(Ch, {}) })
|
|
10586
10587
|
] });
|
|
10587
|
-
},
|
|
10588
|
+
}, Ar = C(gh), Xh = "#FF7B08";
|
|
10588
10589
|
function ph(A, t) {
|
|
10589
10590
|
const [i, n, r] = A.replace(/^#/, "").match(/.{1,2}/g).map((I) => parseInt(I, 16)), o = [
|
|
10590
10591
|
Math.max(0, Math.min(255, Math.round(i * t))),
|
|
@@ -10593,7 +10594,7 @@ function ph(A, t) {
|
|
|
10593
10594
|
];
|
|
10594
10595
|
return `rgb(${o[0]}, ${o[1]}, ${o[2]})`;
|
|
10595
10596
|
}
|
|
10596
|
-
const
|
|
10597
|
+
const OI = ({
|
|
10597
10598
|
sx: A,
|
|
10598
10599
|
height: t = 500,
|
|
10599
10600
|
width: i,
|
|
@@ -10648,7 +10649,7 @@ const mI = ({
|
|
|
10648
10649
|
});
|
|
10649
10650
|
const p = (w) => P.findIndex((D) => D?.guid === w);
|
|
10650
10651
|
return /* @__PURE__ */ e(
|
|
10651
|
-
|
|
10652
|
+
xo,
|
|
10652
10653
|
{
|
|
10653
10654
|
axisHighlight: { x: "none" },
|
|
10654
10655
|
disableLineItemHighlight: !0,
|
|
@@ -10729,7 +10730,7 @@ const mI = ({
|
|
|
10729
10730
|
},
|
|
10730
10731
|
children: [
|
|
10731
10732
|
/* @__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(
|
|
10733
|
+
/* @__PURE__ */ e(Ce, { sx: { p: 0 }, children: /* @__PURE__ */ e(OI, { debts: [i], height: 250 }) })
|
|
10733
10734
|
]
|
|
10734
10735
|
}
|
|
10735
10736
|
),
|
|
@@ -10807,7 +10808,7 @@ const mI = ({
|
|
|
10807
10808
|
}
|
|
10808
10809
|
) })
|
|
10809
10810
|
] }) });
|
|
10810
|
-
}, Dh = C(xh),
|
|
10811
|
+
}, Dh = C(xh), LI = C(({ goal: A }) => {
|
|
10811
10812
|
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
10813
|
const E = { ...A, interest_rate: o };
|
|
10813
10814
|
A.interest_rate = o, a ? n(E) : (await r(E), i(t.alert_goal_updated_interest_rate));
|
|
@@ -10840,7 +10841,7 @@ const mI = ({
|
|
|
10840
10841
|
)
|
|
10841
10842
|
}
|
|
10842
10843
|
);
|
|
10843
|
-
}),
|
|
10844
|
+
}), QI = C(({ goal: A }) => {
|
|
10844
10845
|
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
10846
|
const E = { ...A, monthly_payment: o };
|
|
10846
10847
|
A.monthly_payment = o, a ? n(E) : (await r({ ...A, monthly_payment: o }), i(t.alert_goal_updated_payment));
|
|
@@ -10874,7 +10875,7 @@ const mI = ({
|
|
|
10874
10875
|
)
|
|
10875
10876
|
}
|
|
10876
10877
|
);
|
|
10877
|
-
}),
|
|
10878
|
+
}), qI = C(({ goal: A }) => {
|
|
10878
10879
|
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
10880
|
const E = { ...A, initial_amount: o };
|
|
10880
10881
|
A.initial_amount = o, a ? n(E) : (await r({ ...A, initial_amount: o }), i(t.alert_goal_updated_balance));
|
|
@@ -11006,11 +11007,11 @@ const mI = ({
|
|
|
11006
11007
|
const { onEvent: A } = K(), { selectedDebtChartData: t } = ke();
|
|
11007
11008
|
return h.useEffect(() => A(V.DEBT_DETAILS_VIEW), []), /* @__PURE__ */ s(b, { bgcolor: "background.paper", children: [
|
|
11008
11009
|
t?.goal && /* @__PURE__ */ s(Z, { children: [
|
|
11009
|
-
/* @__PURE__ */ e(
|
|
11010
|
+
/* @__PURE__ */ e(QI, { goal: t.goal }),
|
|
11010
11011
|
/* @__PURE__ */ e(G, {}),
|
|
11011
|
-
/* @__PURE__ */ e(
|
|
11012
|
+
/* @__PURE__ */ e(LI, { goal: t.goal }),
|
|
11012
11013
|
/* @__PURE__ */ e(G, {}),
|
|
11013
|
-
/* @__PURE__ */ e(
|
|
11014
|
+
/* @__PURE__ */ e(qI, { goal: t.goal }),
|
|
11014
11015
|
/* @__PURE__ */ e(G, {})
|
|
11015
11016
|
] }),
|
|
11016
11017
|
!t?.goal && t?.account && /* @__PURE__ */ s(Z, { children: [
|
|
@@ -11043,7 +11044,7 @@ const mI = ({
|
|
|
11043
11044
|
}
|
|
11044
11045
|
},
|
|
11045
11046
|
children: [
|
|
11046
|
-
/* @__PURE__ */ e(
|
|
11047
|
+
/* @__PURE__ */ e(hn, { sx: { fontWeight: 600, marginTop: 2 }, variant: "Body", children: n ? i.status_error_title : i.status_complete_title }),
|
|
11047
11048
|
/* @__PURE__ */ e(R, { component: "p", sx: { whiteSpace: "wrap" }, variant: "ParagraphSmall", children: n ? i.status_error_description : i.status_complete_description })
|
|
11048
11049
|
]
|
|
11049
11050
|
}
|
|
@@ -11061,7 +11062,7 @@ const mI = ({
|
|
|
11061
11062
|
}
|
|
11062
11063
|
},
|
|
11063
11064
|
children: [
|
|
11064
|
-
/* @__PURE__ */ e(
|
|
11065
|
+
/* @__PURE__ */ e(hn, { sx: { fontWeight: 600, marginTop: 2 }, variant: "Body", children: i.status_info_title }),
|
|
11065
11066
|
/* @__PURE__ */ e(R, { component: "p", sx: { whiteSpace: "wrap" }, variant: "ParagraphSmall", children: i.status_info_description })
|
|
11066
11067
|
]
|
|
11067
11068
|
}
|
|
@@ -11113,7 +11114,7 @@ const mI = ({
|
|
|
11113
11114
|
sx: { ...i },
|
|
11114
11115
|
title: n.details_title,
|
|
11115
11116
|
children: /* @__PURE__ */ s(b, { bgcolor: "background.default", children: [
|
|
11116
|
-
/* @__PURE__ */ e(
|
|
11117
|
+
/* @__PURE__ */ e(Ar, { customDetailsChart: I }),
|
|
11117
11118
|
/* @__PURE__ */ e(Nh, {})
|
|
11118
11119
|
] })
|
|
11119
11120
|
}
|
|
@@ -11223,7 +11224,7 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
|
|
|
11223
11224
|
}
|
|
11224
11225
|
);
|
|
11225
11226
|
}, Kh = (A) => {
|
|
11226
|
-
const t = A.row.account, i =
|
|
11227
|
+
const t = A.row.account, i = Ln[t.account_type];
|
|
11227
11228
|
return /* @__PURE__ */ s(b, { alignItems: "center", flexDirection: "row", children: [
|
|
11228
11229
|
/* @__PURE__ */ e(
|
|
11229
11230
|
Oe,
|
|
@@ -11435,7 +11436,7 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
|
|
|
11435
11436
|
o(d), i(V.DEBTS_CLICK_PRIORITY, { debts_priority: d });
|
|
11436
11437
|
};
|
|
11437
11438
|
return /* @__PURE__ */ e(
|
|
11438
|
-
|
|
11439
|
+
yo,
|
|
11439
11440
|
{
|
|
11440
11441
|
anchorEl: A,
|
|
11441
11442
|
anchorOrigin: {
|
|
@@ -11492,7 +11493,7 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
|
|
|
11492
11493
|
] });
|
|
11493
11494
|
}), Al = (A, t, i = 0) => {
|
|
11494
11495
|
const n = A.map((c) => ({ ...c }));
|
|
11495
|
-
|
|
11496
|
+
DI(n, t);
|
|
11496
11497
|
const r = /* @__PURE__ */ new Date(), o = [];
|
|
11497
11498
|
let I = 0, a = 1;
|
|
11498
11499
|
for (const c of n)
|
|
@@ -11585,7 +11586,7 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
|
|
|
11585
11586
|
},
|
|
11586
11587
|
children: [
|
|
11587
11588
|
/* @__PURE__ */ e(
|
|
11588
|
-
|
|
11589
|
+
OI,
|
|
11589
11590
|
{
|
|
11590
11591
|
debts: j,
|
|
11591
11592
|
height: E ? 250 : void 0,
|
|
@@ -11633,17 +11634,17 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
|
|
|
11633
11634
|
};
|
|
11634
11635
|
function nl(A, t) {
|
|
11635
11636
|
const i = A.filter((o) => o.account_type === _.CHECKING_LINE_OF_CREDIT ? Number(o.balance) <= 0 : o.is_excluded_from_debts !== !0), n = t.filter((o) => i.some((I) => I.guid === o.account_guid)).map(
|
|
11636
|
-
(o) =>
|
|
11637
|
-
), r = i.filter((o) => !n.some((I) => I.account.guid === o.guid)).map((o) =>
|
|
11637
|
+
(o) => eo(i.find((I) => I.guid === o.account_guid), o)
|
|
11638
|
+
), r = i.filter((o) => !n.some((I) => I.account.guid === o.guid)).map((o) => eo(o));
|
|
11638
11639
|
return [...n, ...r];
|
|
11639
11640
|
}
|
|
11640
|
-
function
|
|
11641
|
+
function eo(A, t) {
|
|
11641
11642
|
const i = { account: A, goal: t, guid: A.guid };
|
|
11642
11643
|
if (t) {
|
|
11643
|
-
const n = t.payment_due_at ?
|
|
11644
|
+
const n = t.payment_due_at ? Er(Ai(t.payment_due_at)) : 1, r = hr(/* @__PURE__ */ new Date()).setDate(n);
|
|
11644
11645
|
i.balance = Math.abs(t.amount - t.current_amount), i.interest_rate = t.interest_rate, i.is_paid_off = t.is_complete, i.monthly_payment = t.monthly_payment, i.name = t.name, i.original_balance = t.initial_amount, i.payment_due_date = r;
|
|
11645
11646
|
} else {
|
|
11646
|
-
const n = A.payment_due_at ?
|
|
11647
|
+
const n = A.payment_due_at ? Er(Ai(A.payment_due_at)) : 1, r = hr(/* @__PURE__ */ new Date()).setDate(n), o = Math.abs(A.available_balance ?? A.balance ?? 0), I = A.minimum_payment ?? void 0, a = A.interest_rate ?? A.apr ?? A.apy;
|
|
11647
11648
|
i.balance = Math.abs(o), i.interest_rate = a, i.is_paid_off = o === 0, i.monthly_payment = I, i.name = A?.name ?? il.unnamed_label, i.original_balance = A.original_balance, i.payment_due_date = r;
|
|
11648
11649
|
}
|
|
11649
11650
|
return i.is_impossible = !1, i.priority = void 0, i.projected_payoff_date = void 0, i;
|
|
@@ -11723,7 +11724,7 @@ class Il {
|
|
|
11723
11724
|
return t === i;
|
|
11724
11725
|
}
|
|
11725
11726
|
}
|
|
11726
|
-
class
|
|
11727
|
+
class to {
|
|
11727
11728
|
fetchInstance;
|
|
11728
11729
|
constructor(t, i) {
|
|
11729
11730
|
this.fetchInstance = new Ae(t, i);
|
|
@@ -11744,7 +11745,7 @@ class eo {
|
|
|
11744
11745
|
updateMonthlyCashFlowProfile = async (t) => this.fetchInstance.put(`${Q.MONTHLY_CASH_FLOW_PROFILE}`, t).then((i) => i.monthly_cash_flow_profile);
|
|
11745
11746
|
updateRetirementGoal = async (t) => this.fetchInstance.put(`${Q.RETIREMENT_GOALS}/${t.guid}`, t).then((i) => i.retirement_goal);
|
|
11746
11747
|
}
|
|
11747
|
-
function
|
|
11748
|
+
function nn({ title: A, subtitle: t }) {
|
|
11748
11749
|
return /* @__PURE__ */ s(b, { children: [
|
|
11749
11750
|
/* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: A }),
|
|
11750
11751
|
/* @__PURE__ */ e(R, { sx: { fontWeight: 400 }, variant: "Body", children: t })
|
|
@@ -11840,7 +11841,7 @@ const cl = (A, t) => {
|
|
|
11840
11841
|
}, fl = (A, t) => t ? M(A, A < 1e3 ? "0" : "0.00a").replace(
|
|
11841
11842
|
/(\d+)(?:\.0+|(\.\d*?[1-9])0*)([a-zA-Z]* ?\$?)/g,
|
|
11842
11843
|
"$1$2$3"
|
|
11843
|
-
) : M(A, "0,0.00"),
|
|
11844
|
+
) : M(A, "0,0.00"), GI = C(
|
|
11844
11845
|
({ goal: A, isInDrawer: t = !1, onClick: i }) => {
|
|
11845
11846
|
const { goals: n } = X(), { isMobile: r, isTablet: o } = zA(), I = r || o, {
|
|
11846
11847
|
backgroundColor: a,
|
|
@@ -11855,7 +11856,7 @@ const cl = (A, t) => {
|
|
|
11855
11856
|
}
|
|
11856
11857
|
];
|
|
11857
11858
|
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(
|
|
11859
|
+
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(Mo, { disabled: !i, onClick: i, children: [
|
|
11859
11860
|
/* @__PURE__ */ e(
|
|
11860
11861
|
rt,
|
|
11861
11862
|
{
|
|
@@ -12109,7 +12110,7 @@ const cl = (A, t) => {
|
|
|
12109
12110
|
}
|
|
12110
12111
|
)
|
|
12111
12112
|
] });
|
|
12112
|
-
},
|
|
12113
|
+
}, rn = C(({ trackType: A, onAddGoals: t }) => {
|
|
12113
12114
|
const { isMobile: i } = zA(), { goals: n } = X(), { orderedGoals: r, setSelectedGoal: o } = FA(), I = r.filter((f) => f.track_type === A), a = I.filter(
|
|
12114
12115
|
(f) => f.track_type === B.SAVINGS_TRACK && !f.has_been_spent || f.track_type !== B.SAVINGS_TRACK && !f.is_complete
|
|
12115
12116
|
), c = I.filter(
|
|
@@ -12122,7 +12123,7 @@ const cl = (A, t) => {
|
|
|
12122
12123
|
] }),
|
|
12123
12124
|
a.length > 0 ? /* @__PURE__ */ e(tt, { container: !0, spacing: 24, children: a.map((f, E, l) => (
|
|
12124
12125
|
// 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(
|
|
12126
|
+
/* @__PURE__ */ e(tt, { xs: i || E === 0 && l.length !== 2 ? 12 : 6, children: /* @__PURE__ */ e(GI, { goal: f, onClick: () => o(f) }, f.guid) }, E)
|
|
12126
12127
|
)) }) : /* @__PURE__ */ s(
|
|
12127
12128
|
b,
|
|
12128
12129
|
{
|
|
@@ -12141,7 +12142,7 @@ const cl = (A, t) => {
|
|
|
12141
12142
|
A !== B.RETIREMENT_TRACK && /* @__PURE__ */ s(b, { gap: 16, mt: 48, children: [
|
|
12142
12143
|
/* @__PURE__ */ e(R, { color: "text.secondary", variant: "Small", children: n.complete_title }),
|
|
12143
12144
|
c.length === 0 && /* @__PURE__ */ e(b, { 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(
|
|
12145
|
+
c.map((f) => /* @__PURE__ */ e(ze, { elevation: 2, sx: { borderRadius: 2 }, children: /* @__PURE__ */ e(Mo, { onClick: () => o(f), children: /* @__PURE__ */ e(Ce, { sx: { ":last-child": { pb: 16 } }, children: /* @__PURE__ */ s(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
12145
12146
|
/* @__PURE__ */ s(b, { alignItems: "center", direction: "row", gap: 6, children: [
|
|
12146
12147
|
/* @__PURE__ */ e(q, { color: "success", fill: !0, name: "check_circle", size: 20 }),
|
|
12147
12148
|
/* @__PURE__ */ e(R, { color: "text.secondary", variant: "Body", children: f.name })
|
|
@@ -12162,7 +12163,7 @@ const cl = (A, t) => {
|
|
|
12162
12163
|
c
|
|
12163
12164
|
),
|
|
12164
12165
|
children: [
|
|
12165
|
-
/* @__PURE__ */ e(xA, { children: /* @__PURE__ */ e(Qe, { sx: { bgcolor: n }, variant: "rounded", children: /* @__PURE__ */ e(
|
|
12166
|
+
/* @__PURE__ */ e(xA, { children: /* @__PURE__ */ e(Qe, { sx: { bgcolor: n }, variant: "rounded", children: /* @__PURE__ */ e(En, { name: r, sx: { color: "grey.900" } }) }) }),
|
|
12166
12167
|
/* @__PURE__ */ e(eA, { primary: o, secondary: I, sx: { mr: 24 } }),
|
|
12167
12168
|
!E && /* @__PURE__ */ e(ce, {}),
|
|
12168
12169
|
E && (d ? /* @__PURE__ */ e($a, {}) : /* @__PURE__ */ e(As, {}))
|
|
@@ -12171,7 +12172,7 @@ const cl = (A, t) => {
|
|
|
12171
12172
|
) }),
|
|
12172
12173
|
/* @__PURE__ */ e(G, { variant: "inset" }),
|
|
12173
12174
|
E && /* @__PURE__ */ e(Li, { in: d, children: /* @__PURE__ */ e(rA, { sx: { bgcolor: "background.default" }, children: a.map((l, v) => /* @__PURE__ */ e(W, { sx: { pl: 48 }, children: /* @__PURE__ */ s(aA, { onClick: () => t(l.label, l.metaType, c), children: [
|
|
12174
|
-
/* @__PURE__ */ e(re, { sx: { mr: 8 }, children: /* @__PURE__ */ e(
|
|
12175
|
+
/* @__PURE__ */ e(re, { sx: { mr: 8 }, children: /* @__PURE__ */ e(En, { name: l.icon }) }),
|
|
12175
12176
|
/* @__PURE__ */ e(
|
|
12176
12177
|
eA,
|
|
12177
12178
|
{
|
|
@@ -12182,7 +12183,7 @@ const cl = (A, t) => {
|
|
|
12182
12183
|
/* @__PURE__ */ e(ce, {})
|
|
12183
12184
|
] }) }, v)) }) })
|
|
12184
12185
|
] }) });
|
|
12185
|
-
},
|
|
12186
|
+
}, MI = ({
|
|
12186
12187
|
accounts: A,
|
|
12187
12188
|
isOpen: t,
|
|
12188
12189
|
onClose: i,
|
|
@@ -12227,7 +12228,7 @@ const cl = (A, t) => {
|
|
|
12227
12228
|
] }, f.guid))
|
|
12228
12229
|
] }),
|
|
12229
12230
|
/* @__PURE__ */ e(
|
|
12230
|
-
|
|
12231
|
+
aI,
|
|
12231
12232
|
{
|
|
12232
12233
|
description: o.connect_description,
|
|
12233
12234
|
label: o.connect_button,
|
|
@@ -12242,7 +12243,7 @@ const cl = (A, t) => {
|
|
|
12242
12243
|
u === B.DEBT_TRACK ? c(!0) : o({
|
|
12243
12244
|
amount: 0,
|
|
12244
12245
|
current_amount: 0,
|
|
12245
|
-
goal_type:
|
|
12246
|
+
goal_type: Pn.SAVE_AMOUNT,
|
|
12246
12247
|
initial_amount: 0,
|
|
12247
12248
|
meta_type: v,
|
|
12248
12249
|
name: l,
|
|
@@ -12255,7 +12256,7 @@ const cl = (A, t) => {
|
|
|
12255
12256
|
account_guid: v.guid,
|
|
12256
12257
|
amount: 0,
|
|
12257
12258
|
current_amount: 0,
|
|
12258
|
-
goal_type:
|
|
12259
|
+
goal_type: Pn.KEEP_BALANCE_BELOW,
|
|
12259
12260
|
initial_amount: v.balance || 0,
|
|
12260
12261
|
interest_rate: v.interest_rate || 0,
|
|
12261
12262
|
meta_type: u,
|
|
@@ -12269,7 +12270,7 @@ const cl = (A, t) => {
|
|
|
12269
12270
|
return /* @__PURE__ */ s(b, { children: [
|
|
12270
12271
|
/* @__PURE__ */ e(rA, { sx: { bgcolor: "background.paper" }, children: d.map((l, v) => /* @__PURE__ */ e(Rl, { goalType: l, onClick: f }, v)) }),
|
|
12271
12272
|
/* @__PURE__ */ e(
|
|
12272
|
-
|
|
12273
|
+
MI,
|
|
12273
12274
|
{
|
|
12274
12275
|
accounts: I.filter((l) => !n.find((v) => v.account_guid === l.guid)),
|
|
12275
12276
|
isOpen: a,
|
|
@@ -12279,7 +12280,7 @@ const cl = (A, t) => {
|
|
|
12279
12280
|
}
|
|
12280
12281
|
)
|
|
12281
12282
|
] });
|
|
12282
|
-
},
|
|
12283
|
+
}, NI = ({ account: A }) => {
|
|
12283
12284
|
const { accounts: t } = X(), { setSelectedAccount: i } = Xe(), [n, r] = h.useState(!1);
|
|
12284
12285
|
return /* @__PURE__ */ s(W, { sx: { bgcolor: "background.paper" }, children: [
|
|
12285
12286
|
/* @__PURE__ */ s(aA, { onClick: () => {
|
|
@@ -12302,8 +12303,8 @@ const cl = (A, t) => {
|
|
|
12302
12303
|
/* @__PURE__ */ e(ce, {})
|
|
12303
12304
|
] }),
|
|
12304
12305
|
/* @__PURE__ */ e(IA, { isOpen: n, onClose: () => r(!1), title: t.account_details, children: /* @__PURE__ */ s(b, { children: [
|
|
12305
|
-
/* @__PURE__ */ e(
|
|
12306
|
-
/* @__PURE__ */ e(
|
|
12306
|
+
/* @__PURE__ */ e(Ar, {}),
|
|
12307
|
+
/* @__PURE__ */ e(UI, {})
|
|
12307
12308
|
] }) })
|
|
12308
12309
|
] });
|
|
12309
12310
|
}, Pl = C(({ goal: A }) => {
|
|
@@ -12348,7 +12349,7 @@ const cl = (A, t) => {
|
|
|
12348
12349
|
return /* @__PURE__ */ s(b, { children: [
|
|
12349
12350
|
c ? /* @__PURE__ */ e(W, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ s(aA, { onClick: () => f(!0), children: [
|
|
12350
12351
|
/* @__PURE__ */ e(eA, { children: /* @__PURE__ */ s(b, { alignItems: "center", color: "action.active", direction: "row", gap: 8, children: [
|
|
12351
|
-
/* @__PURE__ */ e(
|
|
12352
|
+
/* @__PURE__ */ e(mo, { filled: !0 }),
|
|
12352
12353
|
r.details_add_account
|
|
12353
12354
|
] }) }),
|
|
12354
12355
|
/* @__PURE__ */ e(ce, { color: "primary" })
|
|
@@ -12402,7 +12403,7 @@ const cl = (A, t) => {
|
|
|
12402
12403
|
/* @__PURE__ */ e(ce, {})
|
|
12403
12404
|
] }) }, l.guid)) }),
|
|
12404
12405
|
/* @__PURE__ */ e(
|
|
12405
|
-
|
|
12406
|
+
aI,
|
|
12406
12407
|
{
|
|
12407
12408
|
description: r.connect_description,
|
|
12408
12409
|
label: r.connect_button,
|
|
@@ -12478,7 +12479,7 @@ const cl = (A, t) => {
|
|
|
12478
12479
|
);
|
|
12479
12480
|
}, Cl = C(({ goal: A }) => {
|
|
12480
12481
|
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 &&
|
|
12482
|
+
o && Go(o) && (await n({ ...i, birthday: gA(o) }), r(t.alert_goal_updated_birthday));
|
|
12482
12483
|
};
|
|
12483
12484
|
return /* @__PURE__ */ e(
|
|
12484
12485
|
Ge,
|
|
@@ -12491,7 +12492,7 @@ const cl = (A, t) => {
|
|
|
12491
12492
|
secondaryText: `${nA(yA(i.birthday ?? 0), AA.MONTH_DAY_YEAR)}`,
|
|
12492
12493
|
zeroStateText: !A.guid && !i.birthday ? t.add_birthday : void 0,
|
|
12493
12494
|
children: /* @__PURE__ */ e(Mt, { dateAdapter: Ct, children: /* @__PURE__ */ e(
|
|
12494
|
-
|
|
12495
|
+
yn,
|
|
12495
12496
|
{
|
|
12496
12497
|
label: t.details_birthday,
|
|
12497
12498
|
onChange: I,
|
|
@@ -12527,18 +12528,18 @@ const cl = (A, t) => {
|
|
|
12527
12528
|
};
|
|
12528
12529
|
return /* @__PURE__ */ s(b, { children: [
|
|
12529
12530
|
E.map((u) => /* @__PURE__ */ s(b, { children: [
|
|
12530
|
-
/* @__PURE__ */ e(
|
|
12531
|
+
/* @__PURE__ */ e(NI, { account: u }),
|
|
12531
12532
|
/* @__PURE__ */ e(G, {})
|
|
12532
12533
|
] }, u.guid)),
|
|
12533
12534
|
/* @__PURE__ */ e(W, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ s(aA, { onClick: () => d(!0), children: [
|
|
12534
12535
|
/* @__PURE__ */ e(eA, { children: /* @__PURE__ */ s(b, { alignItems: "center", color: "action.active", direction: "row", gap: 8, children: [
|
|
12535
|
-
/* @__PURE__ */ e(
|
|
12536
|
+
/* @__PURE__ */ e(mo, { filled: !0 }),
|
|
12536
12537
|
t.details_add_account
|
|
12537
12538
|
] }) }),
|
|
12538
12539
|
/* @__PURE__ */ e(ce, { color: "primary" })
|
|
12539
12540
|
] }) }),
|
|
12540
12541
|
/* @__PURE__ */ e(
|
|
12541
|
-
|
|
12542
|
+
MI,
|
|
12542
12543
|
{
|
|
12543
12544
|
accounts: l,
|
|
12544
12545
|
isOpen: c,
|
|
@@ -12557,7 +12558,7 @@ const cl = (A, t) => {
|
|
|
12557
12558
|
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(b, { children: [
|
|
12558
12559
|
/* @__PURE__ */ s(b, { mx: 24, children: [
|
|
12559
12560
|
/* @__PURE__ */ e(R, { color: "text.secondary", sx: { mb: 4, mt: 24 }, variant: "XSmall", children: o }),
|
|
12560
|
-
/* @__PURE__ */ e(
|
|
12561
|
+
/* @__PURE__ */ e(GI, { goal: A, isInDrawer: !0 }),
|
|
12561
12562
|
/* @__PURE__ */ e(R, { color: "text.secondary", sx: { mb: 4, mt: 24 }, variant: "XSmall", children: t.details_title })
|
|
12562
12563
|
] }),
|
|
12563
12564
|
/* @__PURE__ */ s(rA, { sx: { bgcolor: "background.paper" }, children: [
|
|
@@ -12568,11 +12569,11 @@ const cl = (A, t) => {
|
|
|
12568
12569
|
/* @__PURE__ */ e(G, { sx: { ml: r === B.RETIREMENT_TRACK ? 24 : 0 } })
|
|
12569
12570
|
] }),
|
|
12570
12571
|
A.track_type === B.DEBT_TRACK && /* @__PURE__ */ s(Z, { children: [
|
|
12571
|
-
/* @__PURE__ */ e(
|
|
12572
|
+
/* @__PURE__ */ e(QI, { goal: A }),
|
|
12572
12573
|
/* @__PURE__ */ e(G, { sx: { ml: 24 } }),
|
|
12573
|
-
/* @__PURE__ */ e(
|
|
12574
|
+
/* @__PURE__ */ e(LI, { goal: A }),
|
|
12574
12575
|
/* @__PURE__ */ e(G, { sx: { ml: 24 } }),
|
|
12575
|
-
/* @__PURE__ */ e(
|
|
12576
|
+
/* @__PURE__ */ e(qI, { goal: A }),
|
|
12576
12577
|
/* @__PURE__ */ e(G, { variant: "fullWidth" })
|
|
12577
12578
|
] }),
|
|
12578
12579
|
A.track_type === B.RETIREMENT_TRACK && /* @__PURE__ */ s(Z, { children: [
|
|
@@ -12584,7 +12585,7 @@ const cl = (A, t) => {
|
|
|
12584
12585
|
] }),
|
|
12585
12586
|
/* @__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
12587
|
A.track_type !== B.RETIREMENT_TRACK && n && /* @__PURE__ */ s(Z, { children: [
|
|
12587
|
-
/* @__PURE__ */ e(
|
|
12588
|
+
/* @__PURE__ */ e(NI, { account: n }),
|
|
12588
12589
|
/* @__PURE__ */ e(G, {})
|
|
12589
12590
|
] }),
|
|
12590
12591
|
A.track_type === B.RETIREMENT_TRACK && /* @__PURE__ */ s(Z, { children: [
|
|
@@ -12651,7 +12652,7 @@ const cl = (A, t) => {
|
|
|
12651
12652
|
}
|
|
12652
12653
|
)
|
|
12653
12654
|
] });
|
|
12654
|
-
}),
|
|
12655
|
+
}), TI = ({
|
|
12655
12656
|
buttonText: A,
|
|
12656
12657
|
header: t,
|
|
12657
12658
|
icon: i,
|
|
@@ -12665,7 +12666,7 @@ const cl = (A, t) => {
|
|
|
12665
12666
|
alignItems: "center"
|
|
12666
12667
|
},
|
|
12667
12668
|
children: [
|
|
12668
|
-
/* @__PURE__ */ e(
|
|
12669
|
+
/* @__PURE__ */ e(En, { name: i, size: 54 }),
|
|
12669
12670
|
/* @__PURE__ */ e(lt, { color: "text.primary", children: t }),
|
|
12670
12671
|
/* @__PURE__ */ e(
|
|
12671
12672
|
R,
|
|
@@ -12735,28 +12736,28 @@ const cl = (A, t) => {
|
|
|
12735
12736
|
GA,
|
|
12736
12737
|
{
|
|
12737
12738
|
disabled: iA,
|
|
12738
|
-
label: /* @__PURE__ */ e(
|
|
12739
|
+
label: /* @__PURE__ */ e(nn, { subtitle: m, title: a.tab_saving_title })
|
|
12739
12740
|
}
|
|
12740
12741
|
),
|
|
12741
12742
|
/* @__PURE__ */ e(
|
|
12742
12743
|
GA,
|
|
12743
12744
|
{
|
|
12744
12745
|
disabled: iA,
|
|
12745
|
-
label: /* @__PURE__ */ e(
|
|
12746
|
+
label: /* @__PURE__ */ e(nn, { subtitle: j, title: a.tab_debt_title })
|
|
12746
12747
|
}
|
|
12747
12748
|
),
|
|
12748
12749
|
/* @__PURE__ */ e(
|
|
12749
12750
|
GA,
|
|
12750
12751
|
{
|
|
12751
12752
|
disabled: iA,
|
|
12752
|
-
label: /* @__PURE__ */ e(
|
|
12753
|
+
label: /* @__PURE__ */ e(nn, { subtitle: O, title: a.tab_retirement_title })
|
|
12753
12754
|
}
|
|
12754
12755
|
)
|
|
12755
12756
|
]
|
|
12756
12757
|
}
|
|
12757
12758
|
),
|
|
12758
12759
|
iA ? /* @__PURE__ */ e(
|
|
12759
|
-
|
|
12760
|
+
TI,
|
|
12760
12761
|
{
|
|
12761
12762
|
buttonText: a.add_goals_button,
|
|
12762
12763
|
header: a.create_goals_header,
|
|
@@ -12765,9 +12766,9 @@ const cl = (A, t) => {
|
|
|
12765
12766
|
subText: a.empty_state_subheader
|
|
12766
12767
|
}
|
|
12767
12768
|
) : /* @__PURE__ */ s(Z, { children: [
|
|
12768
|
-
H === 0 && /* @__PURE__ */ e(
|
|
12769
|
-
H === 1 && /* @__PURE__ */ e(
|
|
12770
|
-
H === 2 && /* @__PURE__ */ e(
|
|
12769
|
+
H === 0 && /* @__PURE__ */ e(rn, { onAddGoals: tA, trackType: B.SAVINGS_TRACK }),
|
|
12770
|
+
H === 1 && /* @__PURE__ */ e(rn, { onAddGoals: tA, trackType: B.DEBT_TRACK }),
|
|
12771
|
+
H === 2 && /* @__PURE__ */ e(rn, { onAddGoals: tA, trackType: B.RETIREMENT_TRACK })
|
|
12771
12772
|
] })
|
|
12772
12773
|
] }),
|
|
12773
12774
|
/* @__PURE__ */ e(pl, { onClose: Y }),
|
|
@@ -12796,7 +12797,7 @@ const cl = (A, t) => {
|
|
|
12796
12797
|
);
|
|
12797
12798
|
});
|
|
12798
12799
|
class wl {
|
|
12799
|
-
api = new
|
|
12800
|
+
api = new to("/", "");
|
|
12800
12801
|
globalStore;
|
|
12801
12802
|
alert = "";
|
|
12802
12803
|
goals = [];
|
|
@@ -12808,7 +12809,7 @@ class wl {
|
|
|
12808
12809
|
this.globalStore = t, DA(this);
|
|
12809
12810
|
}
|
|
12810
12811
|
initialize = async (t, i) => {
|
|
12811
|
-
this.api = new
|
|
12812
|
+
this.api = new to(t, i);
|
|
12812
12813
|
};
|
|
12813
12814
|
get orderedGoals() {
|
|
12814
12815
|
return this.goals.slice().sort((t, i) => t.position - i.position);
|
|
@@ -12962,7 +12963,7 @@ class wl {
|
|
|
12962
12963
|
}
|
|
12963
12964
|
};
|
|
12964
12965
|
}
|
|
12965
|
-
class
|
|
12966
|
+
class io {
|
|
12966
12967
|
fetchInstance;
|
|
12967
12968
|
constructor(t, i) {
|
|
12968
12969
|
this.fetchInstance = new Ae(t, i);
|
|
@@ -13192,7 +13193,7 @@ const yl = [
|
|
|
13192
13193
|
};
|
|
13193
13194
|
class jl {
|
|
13194
13195
|
alert = { message: "", severity: void 0 };
|
|
13195
|
-
api = new
|
|
13196
|
+
api = new io("/", "");
|
|
13196
13197
|
appConfig;
|
|
13197
13198
|
globalStore;
|
|
13198
13199
|
isLoading = !1;
|
|
@@ -13200,7 +13201,7 @@ class jl {
|
|
|
13200
13201
|
this.globalStore = t, DA(this);
|
|
13201
13202
|
}
|
|
13202
13203
|
initialize = async (t, i) => {
|
|
13203
|
-
this.api = new
|
|
13204
|
+
this.api = new io(t, i);
|
|
13204
13205
|
};
|
|
13205
13206
|
createSupportTicket = async (t) => {
|
|
13206
13207
|
try {
|
|
@@ -13230,7 +13231,7 @@ class jl {
|
|
|
13230
13231
|
);
|
|
13231
13232
|
}
|
|
13232
13233
|
}
|
|
13233
|
-
const ml = /^[ a-zA-ZÀ-ÿ0-9]+$/, Ol = 50,
|
|
13234
|
+
const ml = /^[ a-zA-ZÀ-ÿ0-9]+$/, Ol = 50, no = 65, Ll = ({
|
|
13234
13235
|
height: A = "calc(100dvh - 120px)",
|
|
13235
13236
|
onSelect: t
|
|
13236
13237
|
}) => {
|
|
@@ -13242,10 +13243,10 @@ const ml = /^[ a-zA-ZÀ-ÿ0-9]+$/, Ol = 50, io = 65, Ll = ({
|
|
|
13242
13243
|
t(l);
|
|
13243
13244
|
}, d = async (l) => {
|
|
13244
13245
|
(!l || ml.test(l)) && l.length <= Ol && (a(l), await r(l));
|
|
13245
|
-
}, f = h.useRef(null), E =
|
|
13246
|
+
}, f = h.useRef(null), E = Oo({
|
|
13246
13247
|
count: n.length,
|
|
13247
13248
|
getScrollElement: () => f.current,
|
|
13248
|
-
estimateSize: () =>
|
|
13249
|
+
estimateSize: () => no,
|
|
13249
13250
|
overscan: 5
|
|
13250
13251
|
});
|
|
13251
13252
|
return h.useEffect(() => E.measure(), [n]), /* @__PURE__ */ s(b, { className: "mx-mrt-lookup", children: [
|
|
@@ -13267,7 +13268,7 @@ const ml = /^[ a-zA-ZÀ-ÿ0-9]+$/, Ol = 50, io = 65, Ll = ({
|
|
|
13267
13268
|
return /* @__PURE__ */ s(
|
|
13268
13269
|
L,
|
|
13269
13270
|
{
|
|
13270
|
-
height:
|
|
13271
|
+
height: no,
|
|
13271
13272
|
position: "absolute",
|
|
13272
13273
|
sx: { transform: `translateY(${l.start}px)` },
|
|
13273
13274
|
width: "100%",
|
|
@@ -13287,7 +13288,7 @@ const ml = /^[ a-zA-ZÀ-ÿ0-9]+$/, Ol = 50, io = 65, Ll = ({
|
|
|
13287
13288
|
] }) }) })
|
|
13288
13289
|
] });
|
|
13289
13290
|
}, mP = C(Ll);
|
|
13290
|
-
class
|
|
13291
|
+
class ro {
|
|
13291
13292
|
fetchInstance;
|
|
13292
13293
|
constructor(t, i) {
|
|
13293
13294
|
this.fetchInstance = new Ae(t, i);
|
|
@@ -13299,7 +13300,7 @@ class no {
|
|
|
13299
13300
|
getMerchantByGuid = async (t) => this.fetchInstance.get(`${Q.MERCHANTS}/${t}`).then((i) => i.merchant);
|
|
13300
13301
|
}
|
|
13301
13302
|
class Ql {
|
|
13302
|
-
api = new
|
|
13303
|
+
api = new ro("/", "");
|
|
13303
13304
|
merchant = null;
|
|
13304
13305
|
merchants = [];
|
|
13305
13306
|
isLoading = !1;
|
|
@@ -13307,7 +13308,7 @@ class Ql {
|
|
|
13307
13308
|
DA(this);
|
|
13308
13309
|
}
|
|
13309
13310
|
initialize = async (t, i) => {
|
|
13310
|
-
this.api = new
|
|
13311
|
+
this.api = new ro(t, i);
|
|
13311
13312
|
};
|
|
13312
13313
|
loadMerchants = async (t = "") => {
|
|
13313
13314
|
this.isLoading = !0;
|
|
@@ -13321,13 +13322,13 @@ class Ql {
|
|
|
13321
13322
|
F(() => this.merchant = i);
|
|
13322
13323
|
};
|
|
13323
13324
|
}
|
|
13324
|
-
const
|
|
13325
|
+
const YI = 13, ql = (A, t) => A.filter((i) => {
|
|
13325
13326
|
const { is_closed: n, is_deleted: r, is_hidden: o, is_manual: I } = i;
|
|
13326
13327
|
return n || r || o ? !1 : I || !i.guid ? !0 : t.some((a) => A.some((c) => a.guid === c.member_guid));
|
|
13327
|
-
}), Gl = (A, t) => [...A, ...t],
|
|
13328
|
+
}), Gl = (A, t) => [...A, ...t], oo = (A) => {
|
|
13328
13329
|
if (A && A.length > 0)
|
|
13329
13330
|
return A[A.length - 1];
|
|
13330
|
-
}, Ml = (A, t) => A.year_month - t.year_month, Nl = () => Array.from({ length:
|
|
13331
|
+
}, Ml = (A, t) => A.year_month - t.year_month, Nl = () => Array.from({ length: YI }, (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
13332
|
const I = t.filter(
|
|
13332
13333
|
({ year_month: f }) => f === parseInt(le(yA(o), "yyyyMM"))
|
|
13333
13334
|
), a = A.map((f) => {
|
|
@@ -13342,7 +13343,7 @@ const TI = 13, ql = (A, t) => A.filter((i) => {
|
|
|
13342
13343
|
if (!E && r.length === 0)
|
|
13343
13344
|
return {
|
|
13344
13345
|
...l,
|
|
13345
|
-
value:
|
|
13346
|
+
value: _n(f) ? -(f.balance ?? 0) : f.balance ?? 0
|
|
13346
13347
|
};
|
|
13347
13348
|
if (!E) {
|
|
13348
13349
|
const v = r[0].accounts.find((u) => u.guid === f.guid);
|
|
@@ -13371,7 +13372,7 @@ const TI = 13, ql = (A, t) => A.filter((i) => {
|
|
|
13371
13372
|
},
|
|
13372
13373
|
...r
|
|
13373
13374
|
];
|
|
13374
|
-
}, []).slice(
|
|
13375
|
+
}, []).slice(YI - i), Yl = (A) => {
|
|
13375
13376
|
const t = [], i = [];
|
|
13376
13377
|
let n = 0, r = 0;
|
|
13377
13378
|
return A?.accounts.forEach((o) => {
|
|
@@ -13381,7 +13382,7 @@ const TI = 13, ql = (A, t) => A.filter((i) => {
|
|
|
13381
13382
|
const t = [], i = [];
|
|
13382
13383
|
let n = 0, r = 0;
|
|
13383
13384
|
return A.forEach((o) => {
|
|
13384
|
-
if (
|
|
13385
|
+
if (_n(o)) {
|
|
13385
13386
|
const I = o.balance ?? 0;
|
|
13386
13387
|
i.push({ accountName: o.name, accountType: o.account_type, balance: I }), r += I;
|
|
13387
13388
|
} else {
|
|
@@ -13389,14 +13390,14 @@ const TI = 13, ql = (A, t) => A.filter((i) => {
|
|
|
13389
13390
|
t.push({ accountName: o.name, accountType: o.account_type, balance: I }), n += I;
|
|
13390
13391
|
}
|
|
13391
13392
|
}), { assets: t, liabilities: i, totalAssets: n, totalLiabilities: r };
|
|
13392
|
-
},
|
|
13393
|
+
}, Io = (A) => {
|
|
13393
13394
|
const t = A.reduce((i, n) => {
|
|
13394
13395
|
const r = n.accountType;
|
|
13395
13396
|
return i[r] || (i[r] = []), i[r].push(n), i;
|
|
13396
13397
|
}, {});
|
|
13397
13398
|
return Object.entries(t).map(([i, n]) => ({
|
|
13398
|
-
icon: Bs[+i] ||
|
|
13399
|
-
name:
|
|
13399
|
+
icon: Bs[+i] || Uo[+i],
|
|
13400
|
+
name: Ln[+i],
|
|
13400
13401
|
accounts: n
|
|
13401
13402
|
}));
|
|
13402
13403
|
};
|
|
@@ -13426,7 +13427,7 @@ class Bl {
|
|
|
13426
13427
|
};
|
|
13427
13428
|
loadChartData = async (t) => {
|
|
13428
13429
|
try {
|
|
13429
|
-
const { accounts: i, monthlyAccountBalances: n } = this.netWorthData, r = await Tl(i, n, t), o =
|
|
13430
|
+
const { accounts: i, monthlyAccountBalances: n } = this.netWorthData, r = await Tl(i, n, t), o = oo(r);
|
|
13430
13431
|
F(() => {
|
|
13431
13432
|
this.netWorthChartData = r, this.selectedData = o;
|
|
13432
13433
|
});
|
|
@@ -13442,7 +13443,7 @@ class Bl {
|
|
|
13442
13443
|
this.netWorthData.accounts
|
|
13443
13444
|
);
|
|
13444
13445
|
return {
|
|
13445
|
-
netWorth:
|
|
13446
|
+
netWorth: oo(this.netWorthChartData),
|
|
13446
13447
|
assets: t,
|
|
13447
13448
|
liabilities: i,
|
|
13448
13449
|
totalAssets: n,
|
|
@@ -13477,7 +13478,7 @@ const Sl = ({
|
|
|
13477
13478
|
stroke: c.palette.success.main
|
|
13478
13479
|
});
|
|
13479
13480
|
return /* @__PURE__ */ e(
|
|
13480
|
-
|
|
13481
|
+
Nn,
|
|
13481
13482
|
{
|
|
13482
13483
|
baseline: "min",
|
|
13483
13484
|
colors: [c.palette.success.main],
|
|
@@ -13527,7 +13528,7 @@ const Sl = ({
|
|
|
13527
13528
|
eA,
|
|
13528
13529
|
{
|
|
13529
13530
|
primary: /* @__PURE__ */ s(b, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
|
|
13530
|
-
/* @__PURE__ */ e(R, { variant: "Body", children:
|
|
13531
|
+
/* @__PURE__ */ e(R, { variant: "Body", children: Zo(A.x) }),
|
|
13531
13532
|
/* @__PURE__ */ e(OA, { amount: A.y, sx: { color: "inherit" }, variant: "Body" })
|
|
13532
13533
|
] })
|
|
13533
13534
|
}
|
|
@@ -13605,12 +13606,12 @@ const Sl = ({
|
|
|
13605
13606
|
/* @__PURE__ */ e(OA, { amount: n.change, color: I, variant: t }),
|
|
13606
13607
|
/* @__PURE__ */ e(R, { variant: "Small", children: A })
|
|
13607
13608
|
] });
|
|
13608
|
-
},
|
|
13609
|
+
}, er = C(Zl), Jl = ({ hoveredData: A, selectedData: t }) => {
|
|
13609
13610
|
const { net_worth: i } = X(), n = oe(), r = A || t, o = Is(Ai(r.x), "MMMM");
|
|
13610
13611
|
return /* @__PURE__ */ s(b, { alignItems: "center", direction: "column", m: 24, children: [
|
|
13611
13612
|
/* @__PURE__ */ e(R, { color: n.palette.secondary.main, variant: "Small", children: `${o} ${i.net_worth}` }),
|
|
13612
13613
|
/* @__PURE__ */ e(OA, { amount: r.y, variant: "H2" }),
|
|
13613
|
-
/* @__PURE__ */ e(
|
|
13614
|
+
/* @__PURE__ */ e(er, { currencyLabel: i.this_month, netWorth: r, theme: n })
|
|
13614
13615
|
] });
|
|
13615
13616
|
}, _l = C(Jl), $l = ({ accounts: A, name: t, icon: i }) => {
|
|
13616
13617
|
const [n, r] = h.useState(!1);
|
|
@@ -13640,7 +13641,7 @@ const Sl = ({
|
|
|
13640
13641
|
I < A.length - 1 ? /* @__PURE__ */ e(G, { variant: "inset" }) : /* @__PURE__ */ e(G, {})
|
|
13641
13642
|
] }, o.accountName)) })
|
|
13642
13643
|
] });
|
|
13643
|
-
},
|
|
13644
|
+
}, ao = ({ groupedAccounts: A }) => /* @__PURE__ */ e(Z, { children: A.map(({ accounts: t, icon: i, name: n }) => /* @__PURE__ */ e($l, { accounts: t, icon: i, name: n }, n)) }), A9 = ({
|
|
13644
13645
|
netWorth: A,
|
|
13645
13646
|
assets: t,
|
|
13646
13647
|
liabilities: i,
|
|
@@ -13664,7 +13665,7 @@ const Sl = ({
|
|
|
13664
13665
|
/* @__PURE__ */ e(R, { variant: "Body", children: o.current_net_worth }),
|
|
13665
13666
|
/* @__PURE__ */ e(OA, { amount: A?.y ?? 0, variant: "H1" }),
|
|
13666
13667
|
A && /* @__PURE__ */ e(
|
|
13667
|
-
|
|
13668
|
+
er,
|
|
13668
13669
|
{
|
|
13669
13670
|
currencyLabel: o.this_month,
|
|
13670
13671
|
iconSize: 20,
|
|
@@ -13685,7 +13686,7 @@ const Sl = ({
|
|
|
13685
13686
|
] })
|
|
13686
13687
|
}
|
|
13687
13688
|
) }),
|
|
13688
|
-
/* @__PURE__ */ e(
|
|
13689
|
+
/* @__PURE__ */ e(ao, { groupedAccounts: Io(t) }),
|
|
13689
13690
|
/* @__PURE__ */ e(me, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(
|
|
13690
13691
|
eA,
|
|
13691
13692
|
{
|
|
@@ -13695,7 +13696,7 @@ const Sl = ({
|
|
|
13695
13696
|
] })
|
|
13696
13697
|
}
|
|
13697
13698
|
) }),
|
|
13698
|
-
/* @__PURE__ */ e(
|
|
13699
|
+
/* @__PURE__ */ e(ao, { groupedAccounts: Io(i) })
|
|
13699
13700
|
] })
|
|
13700
13701
|
] });
|
|
13701
13702
|
}, e9 = C(A9), t9 = ({
|
|
@@ -13708,9 +13709,9 @@ const Sl = ({
|
|
|
13708
13709
|
const { net_worth: o } = X(), I = RA();
|
|
13709
13710
|
return /* @__PURE__ */ s(Z, { children: [
|
|
13710
13711
|
/* @__PURE__ */ s(b, { alignItems: "center", justifyContent: "space-between", mb: 8, pt: 24, children: [
|
|
13711
|
-
/* @__PURE__ */ e(R, { variant: "Small", children:
|
|
13712
|
+
/* @__PURE__ */ e(R, { variant: "Small", children: Zo(A?.x) }),
|
|
13712
13713
|
/* @__PURE__ */ e(R, { variant: "Body", children: o.total_change }),
|
|
13713
|
-
A && /* @__PURE__ */ e(
|
|
13714
|
+
A && /* @__PURE__ */ e(er, { currencyVariant: "H1", iconSize: 32, netWorth: A, theme: I })
|
|
13714
13715
|
] }),
|
|
13715
13716
|
/* @__PURE__ */ s(rA, { children: [
|
|
13716
13717
|
/* @__PURE__ */ e(me, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(
|
|
@@ -13779,10 +13780,10 @@ const Sl = ({
|
|
|
13779
13780
|
title: i
|
|
13780
13781
|
}) => {
|
|
13781
13782
|
let n;
|
|
13782
|
-
const { refreshAccounts: r } = CA(), { loadWidget: o } =
|
|
13783
|
+
const { refreshAccounts: r } = CA(), { loadWidget: o } = iI(), { connect: I } = X(), a = oe(), [c, d] = h.useState(!1), [f, E] = h.useState(!1);
|
|
13783
13784
|
return h.useEffect(() => (t ? (d(!0), o({ widget: "connections_widget", mode: a.palette.mode }).then((l) => {
|
|
13784
13785
|
n = new Ua({
|
|
13785
|
-
container: `#${
|
|
13786
|
+
container: `#${Or}`,
|
|
13786
13787
|
style: {
|
|
13787
13788
|
height: "calc(100% - 62px)",
|
|
13788
13789
|
width: "100%",
|
|
@@ -13807,13 +13808,13 @@ const Sl = ({
|
|
|
13807
13808
|
A(), r();
|
|
13808
13809
|
},
|
|
13809
13810
|
title: i,
|
|
13810
|
-
children: /* @__PURE__ */ s("div", { id:
|
|
13811
|
+
children: /* @__PURE__ */ s("div", { id: Or, children: [
|
|
13811
13812
|
f && /* @__PURE__ */ e(Hi, { status: ct.Error }),
|
|
13812
13813
|
c && /* @__PURE__ */ e(Hi, { status: ct.Loading })
|
|
13813
13814
|
] })
|
|
13814
13815
|
}
|
|
13815
13816
|
);
|
|
13816
|
-
},
|
|
13817
|
+
}, VI = C(n9), OP = C(({ onBackClick: A }) => {
|
|
13817
13818
|
const { isInitialized: t, selectedAccounts: i, setSelectedAccounts: n } = pA(), { accounts: r, net_worth: o } = X(), { accounts: I } = CA(), {
|
|
13818
13819
|
assetsLiabilities: a,
|
|
13819
13820
|
gainsLosses: c,
|
|
@@ -13887,7 +13888,7 @@ const Sl = ({
|
|
|
13887
13888
|
}
|
|
13888
13889
|
)
|
|
13889
13890
|
] }) : /* @__PURE__ */ e(
|
|
13890
|
-
|
|
13891
|
+
TI,
|
|
13891
13892
|
{
|
|
13892
13893
|
buttonText: o.empty_widget_button,
|
|
13893
13894
|
header: o.empty_widget_header,
|
|
@@ -13897,7 +13898,7 @@ const Sl = ({
|
|
|
13897
13898
|
}
|
|
13898
13899
|
),
|
|
13899
13900
|
/* @__PURE__ */ e(
|
|
13900
|
-
|
|
13901
|
+
VI,
|
|
13901
13902
|
{
|
|
13902
13903
|
onClose: () => Y(!1),
|
|
13903
13904
|
showConnectionsWidget: tA,
|
|
@@ -13956,7 +13957,7 @@ function r9(A) {
|
|
|
13956
13957
|
});
|
|
13957
13958
|
}
|
|
13958
13959
|
class o9 {
|
|
13959
|
-
api = new
|
|
13960
|
+
api = new gr("/", "");
|
|
13960
13961
|
isLoading = !0;
|
|
13961
13962
|
notifications = [];
|
|
13962
13963
|
recentNotifications = [];
|
|
@@ -13964,7 +13965,7 @@ class o9 {
|
|
|
13964
13965
|
DA(this, { notifications: is });
|
|
13965
13966
|
}
|
|
13966
13967
|
initialize = async (t, i) => {
|
|
13967
|
-
this.api = new
|
|
13968
|
+
this.api = new gr(t, i), await this.loadNotifications();
|
|
13968
13969
|
};
|
|
13969
13970
|
get newNotifications() {
|
|
13970
13971
|
return this.recentNotifications.filter((t) => !t.has_been_viewed);
|
|
@@ -14009,7 +14010,7 @@ const I9 = (A, t) => {
|
|
|
14009
14010
|
}
|
|
14010
14011
|
) }) : /* @__PURE__ */ e("div", { style: a.badge, children: /* @__PURE__ */ e(be, { categoryGuid: o?.category_guid, size: 36 }) });
|
|
14011
14012
|
}, s9 = C(a9), c9 = ({ notification: A, onClick: t }) => {
|
|
14012
|
-
const { updateNotification: i } =
|
|
14013
|
+
const { updateNotification: i } = nI(), n = nt(), r = {
|
|
14013
14014
|
card: {
|
|
14014
14015
|
alignItems: "center",
|
|
14015
14016
|
borderRadius: 2,
|
|
@@ -14043,7 +14044,7 @@ const I9 = (A, t) => {
|
|
|
14043
14044
|
/* @__PURE__ */ e(R, { bold: !A.has_been_viewed, truncate: !1, variant: "Small", children: A.content })
|
|
14044
14045
|
] });
|
|
14045
14046
|
}, 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 } =
|
|
14047
|
+
const { isLoading: t, recentNotifications: i, markAllAsViewed: n } = nI(), { notifications: r } = X(), o = (I) => {
|
|
14047
14048
|
A?.(I);
|
|
14048
14049
|
};
|
|
14049
14050
|
return Ht(() => () => {
|
|
@@ -14063,7 +14064,7 @@ const I9 = (A, t) => {
|
|
|
14063
14064
|
})
|
|
14064
14065
|
] });
|
|
14065
14066
|
}, QP = C(d9);
|
|
14066
|
-
class
|
|
14067
|
+
class so {
|
|
14067
14068
|
fetchInstance;
|
|
14068
14069
|
constructor(t, i) {
|
|
14069
14070
|
this.fetchInstance = new Ae(t, i);
|
|
@@ -14079,7 +14080,7 @@ class ao {
|
|
|
14079
14080
|
updateDevice = async (t) => this.fetchInstance.put(`${Q.DEVICES}/${t.guid}`, t).then((i) => i.device);
|
|
14080
14081
|
updateNotificationProfile = async (t) => this.fetchInstance.put(`${Q.NOTIFICATION_PROFILES}/${t.guid}`, t).then((i) => i.notification_profile);
|
|
14081
14082
|
}
|
|
14082
|
-
const
|
|
14083
|
+
const co = "PARENT-ENTITY", E9 = (A, t) => {
|
|
14083
14084
|
switch (A) {
|
|
14084
14085
|
case LA.BudgetExceeded:
|
|
14085
14086
|
return t.notification_budget_exceeded;
|
|
@@ -14110,9 +14111,9 @@ const so = "PARENT-ENTITY", E9 = (A, t) => {
|
|
|
14110
14111
|
opted_out_of_sms_notifications: f,
|
|
14111
14112
|
opted_out_of_push_notifications: E
|
|
14112
14113
|
} = r;
|
|
14113
|
-
for (const l of n.filter((v) => v.entity_guid ===
|
|
14114
|
+
for (const l of n.filter((v) => v.entity_guid === co)) {
|
|
14114
14115
|
const v = E9(l.notification_type, i), u = n.filter(
|
|
14115
|
-
(P) => P.entity_guid !==
|
|
14116
|
+
(P) => P.entity_guid !== co && P.notification_type === l.notification_type
|
|
14116
14117
|
), H = [];
|
|
14117
14118
|
I && !d && l.email_channel && H.push(i.delivery_method_email_label), a && !f && l.sms_channel && H.push(i.delivery_method_sms_label), c && !E && l.push_channel && H.push(i.delivery_method_push_label), o.push({
|
|
14118
14119
|
...l,
|
|
@@ -14129,7 +14130,7 @@ const so = "PARENT-ENTITY", E9 = (A, t) => {
|
|
|
14129
14130
|
};
|
|
14130
14131
|
class l9 {
|
|
14131
14132
|
globalStore;
|
|
14132
|
-
api = new
|
|
14133
|
+
api = new so("/", "");
|
|
14133
14134
|
transactionApi = new gi("/", "");
|
|
14134
14135
|
alert = { message: "", severity: void 0 };
|
|
14135
14136
|
devices = [];
|
|
@@ -14140,7 +14141,7 @@ class l9 {
|
|
|
14140
14141
|
this.globalStore = t, DA(this);
|
|
14141
14142
|
}
|
|
14142
14143
|
initialize = async (t, i) => {
|
|
14143
|
-
this.api = new
|
|
14144
|
+
this.api = new so(t, i), this.transactionApi = new gi(t, i);
|
|
14144
14145
|
};
|
|
14145
14146
|
get accountProfiles() {
|
|
14146
14147
|
return this.detailedNotificationProfiles.filter(
|
|
@@ -14367,7 +14368,7 @@ const u9 = ({
|
|
|
14367
14368
|
] }),
|
|
14368
14369
|
/* @__PURE__ */ e(lt, { color: "text.primary", sx: { mt: 24, whiteSpace: { sm: "nowrap", xs: "wrap" } }, children: o })
|
|
14369
14370
|
] });
|
|
14370
|
-
},
|
|
14371
|
+
}, Cn = ({
|
|
14371
14372
|
altImage: A,
|
|
14372
14373
|
content: t,
|
|
14373
14374
|
hasDivider: i = !0,
|
|
@@ -15213,7 +15214,7 @@ const u9 = ({
|
|
|
15213
15214
|
}
|
|
15214
15215
|
),
|
|
15215
15216
|
"why-are-some-of-my-transactions-uncategorized": /* @__PURE__ */ e(
|
|
15216
|
-
|
|
15217
|
+
Cn,
|
|
15217
15218
|
{
|
|
15218
15219
|
altImage: A,
|
|
15219
15220
|
content: /* @__PURE__ */ s(h.Fragment, { children: [
|
|
@@ -16167,7 +16168,7 @@ const u9 = ({
|
|
|
16167
16168
|
}
|
|
16168
16169
|
),
|
|
16169
16170
|
/* @__PURE__ */ e(
|
|
16170
|
-
|
|
16171
|
+
Cn,
|
|
16171
16172
|
{
|
|
16172
16173
|
altImage: A.transactions_widget_overview.categorizing_transactions_alt_image,
|
|
16173
16174
|
content: /* @__PURE__ */ s(h.Fragment, { children: [
|
|
@@ -16210,7 +16211,7 @@ const u9 = ({
|
|
|
16210
16211
|
}
|
|
16211
16212
|
),
|
|
16212
16213
|
/* @__PURE__ */ e(
|
|
16213
|
-
|
|
16214
|
+
Cn,
|
|
16214
16215
|
{
|
|
16215
16216
|
altImage: A.transactions_widget_overview.transaction_rules_alt_image,
|
|
16216
16217
|
content: /* @__PURE__ */ s(h.Fragment, { children: [
|
|
@@ -16720,7 +16721,7 @@ const u9 = ({
|
|
|
16720
16721
|
return /* @__PURE__ */ e(b, { sx: { flex: 1, gap: 12, maxWidth: { md: "calc(50% - 6px)" } }, children: v.map(({ guid: u, icon: H, topics: P, title: p }, y) => {
|
|
16721
16722
|
const x = y + E;
|
|
16722
16723
|
return /* @__PURE__ */ s(
|
|
16723
|
-
|
|
16724
|
+
xn,
|
|
16724
16725
|
{
|
|
16725
16726
|
disableGutters: !0,
|
|
16726
16727
|
expanded: x === a,
|
|
@@ -16739,7 +16740,7 @@ const u9 = ({
|
|
|
16739
16740
|
}),
|
|
16740
16741
|
children: [
|
|
16741
16742
|
/* @__PURE__ */ e(
|
|
16742
|
-
|
|
16743
|
+
jn,
|
|
16743
16744
|
{
|
|
16744
16745
|
expandIcon: /* @__PURE__ */ e(ji, { sx: { color: "text.primary" } }),
|
|
16745
16746
|
sx: { height: 64, p: "14px 24px" },
|
|
@@ -16751,7 +16752,7 @@ const u9 = ({
|
|
|
16751
16752
|
),
|
|
16752
16753
|
/* @__PURE__ */ e(G, {}),
|
|
16753
16754
|
/* @__PURE__ */ e(
|
|
16754
|
-
|
|
16755
|
+
Dn,
|
|
16755
16756
|
{
|
|
16756
16757
|
sx: {
|
|
16757
16758
|
ml: 56,
|
|
@@ -16994,7 +16995,7 @@ const u9 = ({
|
|
|
16994
16995
|
}) => {
|
|
16995
16996
|
const [i, n] = h.useState(null);
|
|
16996
16997
|
return /* @__PURE__ */ e(b, { sx: { flex: 1, gap: 12, p: 12 }, children: A.map(({ icon: r, topics: o, title: I }, a) => /* @__PURE__ */ s(
|
|
16997
|
-
|
|
16998
|
+
xn,
|
|
16998
16999
|
{
|
|
16999
17000
|
disableGutters: !0,
|
|
17000
17001
|
expanded: a === i,
|
|
@@ -17004,7 +17005,7 @@ const u9 = ({
|
|
|
17004
17005
|
sx: pv,
|
|
17005
17006
|
children: [
|
|
17006
17007
|
/* @__PURE__ */ e(
|
|
17007
|
-
|
|
17008
|
+
jn,
|
|
17008
17009
|
{
|
|
17009
17010
|
expandIcon: /* @__PURE__ */ e(ji, { sx: { color: "text.primary" } }),
|
|
17010
17011
|
sx: { p: "14px 24px", height: 64 },
|
|
@@ -17016,7 +17017,7 @@ const u9 = ({
|
|
|
17016
17017
|
),
|
|
17017
17018
|
/* @__PURE__ */ e(G, {}),
|
|
17018
17019
|
/* @__PURE__ */ e(
|
|
17019
|
-
|
|
17020
|
+
Dn,
|
|
17020
17021
|
{
|
|
17021
17022
|
sx: {
|
|
17022
17023
|
ml: 56,
|
|
@@ -17055,16 +17056,16 @@ const u9 = ({
|
|
|
17055
17056
|
borderBottomLeftRadius: 8,
|
|
17056
17057
|
borderBottomRightRadius: 8
|
|
17057
17058
|
}
|
|
17058
|
-
}),
|
|
17059
|
+
}), fo = {
|
|
17059
17060
|
institutionName: "",
|
|
17060
17061
|
institutionWebsite: ""
|
|
17061
|
-
},
|
|
17062
|
+
}, on = {
|
|
17062
17063
|
institutionName: "",
|
|
17063
17064
|
institutionLoginPage: "",
|
|
17064
17065
|
institutionWebsite: ""
|
|
17065
17066
|
}, wv = C(
|
|
17066
17067
|
({ copy: A, isOpen: t, onClose: i, onSave: n }) => {
|
|
17067
|
-
const { alert: r, isLoading: o, setAlert: I } =
|
|
17068
|
+
const { alert: r, isLoading: o, setAlert: I } = Yn(), [a, c] = h.useState(fo), [d, f] = h.useState(on), E = [
|
|
17068
17069
|
{ name: "institutionName", required: !0 },
|
|
17069
17070
|
{ name: "institutionWebsite", required: !0 },
|
|
17070
17071
|
{ name: "institutionLoginPage", required: !1 }
|
|
@@ -17072,7 +17073,7 @@ const u9 = ({
|
|
|
17072
17073
|
...H,
|
|
17073
17074
|
label: A.popular_topics_missing_institution_fields[P.toString()]
|
|
17074
17075
|
})), l = () => {
|
|
17075
|
-
c(
|
|
17076
|
+
c(fo), f(on), i();
|
|
17076
17077
|
}, v = (H) => {
|
|
17077
17078
|
const {
|
|
17078
17079
|
target: { name: P, value: p }
|
|
@@ -17093,7 +17094,7 @@ const u9 = ({
|
|
|
17093
17094
|
E.forEach(({ label: p, name: y, required: x }) => {
|
|
17094
17095
|
const w = d[y];
|
|
17095
17096
|
x && !w && (H[y] = `${p} ${A.request_support_required_message}`, P = !1), (y === "institutionWebsite" || y === "institutionLoginPage") && w && !/(.+)\.(.{2,})/g.test(w) && (H[y] = A.request_support_valid_url_message, P = !1);
|
|
17096
|
-
}), c(H), P && (n(d), f(
|
|
17097
|
+
}), c(H), P && (n(d), f(on));
|
|
17097
17098
|
},
|
|
17098
17099
|
secondaryColor: "primary",
|
|
17099
17100
|
title: A.request_support,
|
|
@@ -17154,7 +17155,7 @@ const u9 = ({
|
|
|
17154
17155
|
}
|
|
17155
17156
|
),
|
|
17156
17157
|
/* @__PURE__ */ e(re, { children: /* @__PURE__ */ e(ce, {}) })
|
|
17157
|
-
] }) }),
|
|
17158
|
+
] }) }), BI = ({ 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
17159
|
/* @__PURE__ */ e(
|
|
17159
17160
|
yv,
|
|
17160
17161
|
{
|
|
@@ -17211,7 +17212,7 @@ const u9 = ({
|
|
|
17211
17212
|
children: A.request_support_institution_topic_label
|
|
17212
17213
|
}
|
|
17213
17214
|
),
|
|
17214
|
-
/* @__PURE__ */ e(
|
|
17215
|
+
/* @__PURE__ */ e(BI, { list: a, onClick: i, sx: { fontWeight: 600 } })
|
|
17215
17216
|
] }) });
|
|
17216
17217
|
}, jv = ({ copy: A, onButtonClick: t }) => {
|
|
17217
17218
|
const i = mv();
|
|
@@ -17313,7 +17314,7 @@ const u9 = ({
|
|
|
17313
17314
|
] }) });
|
|
17314
17315
|
}, Qv = C(
|
|
17315
17316
|
({ copy: A, isOpen: t, onClose: i }) => {
|
|
17316
|
-
const { alert: n, createSupportTicket: r, isLoading: o, setAlert: I } =
|
|
17317
|
+
const { alert: n, createSupportTicket: r, isLoading: o, setAlert: I } = Yn(), { user: a } = Ue(), [c, d] = h.useState(""), [f, E] = h.useState(!1), [l, v] = h.useState(!1), [u, H] = h.useState({
|
|
17317
17318
|
isOpen: !1,
|
|
17318
17319
|
topic: "",
|
|
17319
17320
|
type: void 0
|
|
@@ -17371,7 +17372,7 @@ const u9 = ({
|
|
|
17371
17372
|
}
|
|
17372
17373
|
),
|
|
17373
17374
|
/* @__PURE__ */ e(
|
|
17374
|
-
|
|
17375
|
+
BI,
|
|
17375
17376
|
{
|
|
17376
17377
|
list: p,
|
|
17377
17378
|
onClick: w,
|
|
@@ -17468,7 +17469,7 @@ const u9 = ({
|
|
|
17468
17469
|
] }) });
|
|
17469
17470
|
}
|
|
17470
17471
|
), qv = ({ sx: A }) => {
|
|
17471
|
-
const [t, i] = h.useState(!1), [n, r] = h.useState(null), { help: o } = X(), { isInitialized: I } = oi(), { appConfig: a, helpCategories: c, loadAppConfig: d } =
|
|
17472
|
+
const [t, i] = h.useState(!1), [n, r] = h.useState(null), { help: o } = X(), { isInitialized: I } = oi(), { appConfig: a, helpCategories: c, loadAppConfig: d } = Yn(), { isMobile: f } = zA(), E = window.app?.config;
|
|
17472
17473
|
h.useEffect(() => {
|
|
17473
17474
|
!I || !E || d(E);
|
|
17474
17475
|
}, [I, E]);
|
|
@@ -17725,7 +17726,7 @@ const u9 = ({
|
|
|
17725
17726
|
] }),
|
|
17726
17727
|
/* @__PURE__ */ s(b, { direction: n ? "column" : "row", spacing: n ? 44 : 24, sx: { mb: 44 }, children: [
|
|
17727
17728
|
/* @__PURE__ */ e(Mt, { dateAdapter: Ct, children: /* @__PURE__ */ e(
|
|
17728
|
-
|
|
17729
|
+
yn,
|
|
17729
17730
|
{
|
|
17730
17731
|
label: t.birthdate,
|
|
17731
17732
|
onChange: D,
|
|
@@ -17798,7 +17799,7 @@ const Bv = ({
|
|
|
17798
17799
|
field: "created_at",
|
|
17799
17800
|
headerName: r.mobile_devices_column_added,
|
|
17800
17801
|
renderHeader: we,
|
|
17801
|
-
valueFormatter: (a) =>
|
|
17802
|
+
valueFormatter: (a) => Qo(yA(a), { addSuffix: !0 }),
|
|
17802
17803
|
sortable: !0,
|
|
17803
17804
|
hideSortIcons: !1,
|
|
17804
17805
|
flex: 1,
|
|
@@ -17875,14 +17876,14 @@ const Bv = ({
|
|
|
17875
17876
|
};
|
|
17876
17877
|
return /* @__PURE__ */ s(b, { mx: -28, sx: { "& .MuiAccordion-root": { mb: 0, mt: 0 } }, children: [
|
|
17877
17878
|
A.map((c) => /* @__PURE__ */ s(
|
|
17878
|
-
|
|
17879
|
+
xn,
|
|
17879
17880
|
{
|
|
17880
17881
|
expanded: o === c.guid,
|
|
17881
17882
|
onChange: a(c.guid),
|
|
17882
17883
|
sx: { boxShadow: "none" },
|
|
17883
17884
|
children: [
|
|
17884
17885
|
/* @__PURE__ */ e(
|
|
17885
|
-
|
|
17886
|
+
jn,
|
|
17886
17887
|
{
|
|
17887
17888
|
expandIcon: /* @__PURE__ */ e(q, { color: "secondary", name: "keyboard_arrow_down", size: 24 }),
|
|
17888
17889
|
sx: {
|
|
@@ -17893,12 +17894,12 @@ const Bv = ({
|
|
|
17893
17894
|
children: /* @__PURE__ */ s(b, { gap: 4, children: [
|
|
17894
17895
|
/* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: c.name }),
|
|
17895
17896
|
/* @__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:
|
|
17897
|
+
/* @__PURE__ */ e(R, { color: n.palette.text.secondary, variant: "Small", children: Qo(yA(c.created_at), { addSuffix: !0 }) })
|
|
17897
17898
|
] })
|
|
17898
17899
|
}
|
|
17899
17900
|
),
|
|
17900
17901
|
/* @__PURE__ */ s(
|
|
17901
|
-
|
|
17902
|
+
Dn,
|
|
17902
17903
|
{
|
|
17903
17904
|
sx: { backgroundColor: n.palette.background.default, p: "0 0 0 24px" },
|
|
17904
17905
|
children: [
|
|
@@ -18139,7 +18140,7 @@ const Bv = ({
|
|
|
18139
18140
|
]
|
|
18140
18141
|
}
|
|
18141
18142
|
);
|
|
18142
|
-
}),
|
|
18143
|
+
}), tr = C(
|
|
18143
18144
|
({ onClick: A, primaryText: t, secondaryText: i, sx: n }) => {
|
|
18144
18145
|
const r = RA();
|
|
18145
18146
|
return /* @__PURE__ */ e(W, { sx: { bgcolor: r.palette.background.paper }, children: /* @__PURE__ */ s(aA, { alignItems: "flex-start", onClick: A, sx: n, children: [
|
|
@@ -18157,7 +18158,7 @@ const Bv = ({
|
|
|
18157
18158
|
};
|
|
18158
18159
|
return /* @__PURE__ */ s(h.Fragment, { children: [
|
|
18159
18160
|
/* @__PURE__ */ e(
|
|
18160
|
-
|
|
18161
|
+
tr,
|
|
18161
18162
|
{
|
|
18162
18163
|
onClick: a,
|
|
18163
18164
|
primaryText: i?.category_guid ? c(i.category_guid) : "",
|
|
@@ -18183,7 +18184,7 @@ const Bv = ({
|
|
|
18183
18184
|
};
|
|
18184
18185
|
return /* @__PURE__ */ s(h.Fragment, { children: [
|
|
18185
18186
|
/* @__PURE__ */ e(
|
|
18186
|
-
|
|
18187
|
+
tr,
|
|
18187
18188
|
{
|
|
18188
18189
|
onClick: f,
|
|
18189
18190
|
primaryText: a,
|
|
@@ -18285,7 +18286,7 @@ const Bv = ({
|
|
|
18285
18286
|
}, l = (v) => t.find((u) => u.guid === v)?.name;
|
|
18286
18287
|
return /* @__PURE__ */ s(h.Fragment, { children: [
|
|
18287
18288
|
/* @__PURE__ */ e(
|
|
18288
|
-
|
|
18289
|
+
tr,
|
|
18289
18290
|
{
|
|
18290
18291
|
onClick: E,
|
|
18291
18292
|
primaryText: A.description ? A.description : A.match_description,
|
|
@@ -18364,13 +18365,13 @@ const Bv = ({
|
|
|
18364
18365
|
t.account?.day_payment_is_due || 0
|
|
18365
18366
|
), l = t.account?.name || t.account?.feed_name || "", v = t.account?.day_payment_is_due ? z(
|
|
18366
18367
|
n.notification_debt_payment_date,
|
|
18367
|
-
|
|
18368
|
+
ko(t.account?.day_payment_is_due)
|
|
18368
18369
|
) : n.notification_debt_payment_zero_state, u = o ? v : M(t.threshold ?? 0, "0,0"), H = async () => {
|
|
18369
18370
|
o && t.account ? await r({ ...t.account, day_payment_is_due: f }) : A({ ...t, threshold: c });
|
|
18370
18371
|
};
|
|
18371
18372
|
return /* @__PURE__ */ s(b, { children: [
|
|
18372
18373
|
/* @__PURE__ */ e(
|
|
18373
|
-
|
|
18374
|
+
vn,
|
|
18374
18375
|
{
|
|
18375
18376
|
isChecked: t.is_enabled,
|
|
18376
18377
|
onClick: () => a(!0),
|
|
@@ -18493,7 +18494,7 @@ const Bv = ({
|
|
|
18493
18494
|
/* @__PURE__ */ e(G, { sx: { my: 24 } }),
|
|
18494
18495
|
/* @__PURE__ */ e(ne, { mb: 24, children: t.accounts_title }),
|
|
18495
18496
|
n.map((E) => /* @__PURE__ */ e(
|
|
18496
|
-
|
|
18497
|
+
vn,
|
|
18497
18498
|
{
|
|
18498
18499
|
isChecked: E.is_enabled,
|
|
18499
18500
|
isDisabled: !E.is_enabled,
|
|
@@ -18510,7 +18511,7 @@ const Bv = ({
|
|
|
18510
18511
|
/* @__PURE__ */ e(G, { sx: { my: 24 } }),
|
|
18511
18512
|
/* @__PURE__ */ e(ne, { mb: 24, children: t.budgets_title }),
|
|
18512
18513
|
r.map((E) => /* @__PURE__ */ e(
|
|
18513
|
-
|
|
18514
|
+
vn,
|
|
18514
18515
|
{
|
|
18515
18516
|
isChecked: E.is_enabled,
|
|
18516
18517
|
isDisabled: !E.is_enabled,
|
|
@@ -18593,12 +18594,12 @@ const Bv = ({
|
|
|
18593
18594
|
class nR {
|
|
18594
18595
|
globalStore;
|
|
18595
18596
|
userFeatures = [];
|
|
18596
|
-
api = new
|
|
18597
|
+
api = new pr("/", "");
|
|
18597
18598
|
constructor(t) {
|
|
18598
18599
|
this.globalStore = t, DA(this);
|
|
18599
18600
|
}
|
|
18600
18601
|
initialize = async (t, i) => {
|
|
18601
|
-
this.api = new
|
|
18602
|
+
this.api = new pr(t, i), await this.loadUserFeatures();
|
|
18602
18603
|
};
|
|
18603
18604
|
get userProfile() {
|
|
18604
18605
|
return this.globalStore.appDataStore.userProfile;
|
|
@@ -18778,7 +18779,7 @@ class GP {
|
|
|
18778
18779
|
});
|
|
18779
18780
|
};
|
|
18780
18781
|
}
|
|
18781
|
-
const
|
|
18782
|
+
const In = ({
|
|
18782
18783
|
children: A,
|
|
18783
18784
|
isLast: t = !1,
|
|
18784
18785
|
onClick: i,
|
|
@@ -18796,53 +18797,55 @@ const on = ({
|
|
|
18796
18797
|
(n) => n.member_guid === i.guid && i.successfully_aggregated_at && n.guid !== t.guid
|
|
18797
18798
|
);
|
|
18798
18799
|
}, IR = () => {
|
|
18799
|
-
const [A, t] = h.useState(!1), [i, n] = h.useState(!1), [r, o] = h.useState(!1), [I, a] = h.useState({}), {
|
|
18800
|
-
await
|
|
18801
|
-
...
|
|
18800
|
+
const [A, t] = h.useState(!1), [i, n] = h.useState(!1), [r, o] = h.useState(!1), [I, a] = h.useState({}), { selectedAccount: c } = Xe(), { mergeAccounts: d, updateAccount: f } = CA(), { accounts: E } = X(), l = oR(), { onEvent: v } = K(), { setFilter: u } = PA(), H = async (p) => {
|
|
18801
|
+
await f({
|
|
18802
|
+
...c,
|
|
18802
18803
|
...p
|
|
18803
|
-
}),
|
|
18804
|
+
}), u({
|
|
18805
|
+
custom: (y) => !y.accountIsClosed
|
|
18806
|
+
});
|
|
18804
18807
|
}, P = () => {
|
|
18805
|
-
|
|
18808
|
+
d([c.guid, I.guid]).finally(
|
|
18806
18809
|
() => n(!1)
|
|
18807
18810
|
);
|
|
18808
18811
|
};
|
|
18809
18812
|
return /* @__PURE__ */ s(Z, { children: [
|
|
18810
|
-
/* @__PURE__ */ e(me, { sx: { backgroundColor: "transparent", mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(R, { bold: !0, component: "h2", variant: "XSmall", children:
|
|
18813
|
+
/* @__PURE__ */ e(me, { sx: { backgroundColor: "transparent", mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(R, { bold: !0, component: "h2", variant: "XSmall", children: E.actions }) }),
|
|
18811
18814
|
/* @__PURE__ */ e(
|
|
18812
|
-
|
|
18815
|
+
In,
|
|
18813
18816
|
{
|
|
18814
18817
|
onClick: () => {
|
|
18815
|
-
H({ is_hidden: !
|
|
18818
|
+
H({ is_hidden: !c.is_hidden }), v(V.ACCOUNT_DETAILS_CLICK_HIDE, { account_guid: c.guid });
|
|
18816
18819
|
},
|
|
18817
|
-
primaryText:
|
|
18818
|
-
secondaryText:
|
|
18819
|
-
children: /* @__PURE__ */ e(xi, { checked:
|
|
18820
|
+
primaryText: c.is_hidden ? E.unhide_account : E.hide_Account,
|
|
18821
|
+
secondaryText: c.is_hidden ? E.include_this_account : E.exclude_this_account,
|
|
18822
|
+
children: /* @__PURE__ */ e(xi, { checked: c.is_hidden })
|
|
18820
18823
|
}
|
|
18821
18824
|
),
|
|
18822
18825
|
/* @__PURE__ */ e(
|
|
18823
|
-
|
|
18826
|
+
In,
|
|
18824
18827
|
{
|
|
18825
18828
|
onClick: () => {
|
|
18826
|
-
t(!0),
|
|
18827
|
-
account_guid:
|
|
18829
|
+
t(!0), v(V.ACCOUNT_DETAILS_CLICK_MARK_CLOSED, {
|
|
18830
|
+
account_guid: c.guid
|
|
18828
18831
|
});
|
|
18829
18832
|
},
|
|
18830
|
-
primaryText:
|
|
18831
|
-
secondaryText:
|
|
18833
|
+
primaryText: c.is_closed ? E.mark_as_open : E.mark_as_closed,
|
|
18834
|
+
secondaryText: E.this_will_set_the_account_balance_to_0,
|
|
18832
18835
|
children: /* @__PURE__ */ e(q, { name: "chevron_right" })
|
|
18833
18836
|
}
|
|
18834
18837
|
),
|
|
18835
18838
|
l.length > 0 && /* @__PURE__ */ e(
|
|
18836
|
-
|
|
18839
|
+
In,
|
|
18837
18840
|
{
|
|
18838
18841
|
isLast: !0,
|
|
18839
18842
|
onClick: () => {
|
|
18840
|
-
n(!0),
|
|
18841
|
-
account_guid:
|
|
18843
|
+
n(!0), v(V.ACCOUNT_DETAILS_CLICK_MARK_DUPLICATE, {
|
|
18844
|
+
account_guid: c.guid
|
|
18842
18845
|
});
|
|
18843
18846
|
},
|
|
18844
|
-
primaryText:
|
|
18845
|
-
secondaryText:
|
|
18847
|
+
primaryText: E.mark_as_duplicate,
|
|
18848
|
+
secondaryText: E.if_a_connected_account_is_showing_up_twice,
|
|
18846
18849
|
children: /* @__PURE__ */ e(q, { name: "chevron_right" })
|
|
18847
18850
|
}
|
|
18848
18851
|
),
|
|
@@ -18850,27 +18853,27 @@ const on = ({
|
|
|
18850
18853
|
XA,
|
|
18851
18854
|
{
|
|
18852
18855
|
copy: {
|
|
18853
|
-
close_aria:
|
|
18854
|
-
title:
|
|
18856
|
+
close_aria: E.close_modal,
|
|
18857
|
+
title: c.is_closed ? E.confirm_mark_as_open : E.confirm_mark_closed
|
|
18855
18858
|
},
|
|
18856
18859
|
isOpen: A,
|
|
18857
18860
|
onClose: () => {
|
|
18858
18861
|
t(!1);
|
|
18859
18862
|
},
|
|
18860
|
-
onPrimaryAction: () => H({ is_closed: !
|
|
18863
|
+
onPrimaryAction: () => H({ is_closed: !c.is_closed }),
|
|
18861
18864
|
children: z(
|
|
18862
|
-
|
|
18863
|
-
|
|
18865
|
+
c.is_closed ? E.this_will_resume_updating_the_balance : E.this_will_set_the_balance_of_your_account,
|
|
18866
|
+
c.name
|
|
18864
18867
|
)
|
|
18865
18868
|
}
|
|
18866
18869
|
),
|
|
18867
18870
|
/* @__PURE__ */ e(
|
|
18868
18871
|
IA,
|
|
18869
18872
|
{
|
|
18870
|
-
ariaLabelClose:
|
|
18873
|
+
ariaLabelClose: E.close_drawer,
|
|
18871
18874
|
isOpen: i,
|
|
18872
18875
|
onClose: () => n(!1),
|
|
18873
|
-
title:
|
|
18876
|
+
title: E.mark_as_duplicate,
|
|
18874
18877
|
children: /* @__PURE__ */ e(rA, { children: l.map((p) => {
|
|
18875
18878
|
const y = l.indexOf(p) === l.length - 1;
|
|
18876
18879
|
return /* @__PURE__ */ s(h.Fragment, { children: [
|
|
@@ -18892,24 +18895,24 @@ const on = ({
|
|
|
18892
18895
|
XA,
|
|
18893
18896
|
{
|
|
18894
18897
|
copy: {
|
|
18895
|
-
close_aria:
|
|
18896
|
-
title:
|
|
18898
|
+
close_aria: E.close_modal,
|
|
18899
|
+
title: E.confirm_merge
|
|
18897
18900
|
},
|
|
18898
18901
|
isOpen: r,
|
|
18899
18902
|
onClose: () => o(!1),
|
|
18900
18903
|
onPrimaryAction: P,
|
|
18901
18904
|
children: [
|
|
18902
18905
|
z(
|
|
18903
|
-
|
|
18904
|
-
|
|
18906
|
+
E.this_means_accounts_will_be_merged,
|
|
18907
|
+
c.name,
|
|
18905
18908
|
I.name
|
|
18906
18909
|
),
|
|
18907
|
-
/* @__PURE__ */ e(R, { color: "error", sx: { mt: 24 }, children:
|
|
18910
|
+
/* @__PURE__ */ e(R, { color: "error", sx: { mt: 24 }, children: E.this_action_cannot_be_undone })
|
|
18908
18911
|
]
|
|
18909
18912
|
}
|
|
18910
18913
|
)
|
|
18911
18914
|
] });
|
|
18912
|
-
}, aR = C(IR),
|
|
18915
|
+
}, aR = C(IR), SI = (A, t) => {
|
|
18913
18916
|
const { connection_messages: i } = t;
|
|
18914
18917
|
switch (A.connection_status) {
|
|
18915
18918
|
case ie.CHALLENGED:
|
|
@@ -19048,7 +19051,7 @@ const on = ({
|
|
|
19048
19051
|
const n = () => {
|
|
19049
19052
|
const r = A.successfully_aggregated_at ? yA(A.successfully_aggregated_at) : void 0, o = r && nA(r, AA.TIME_STAMP_HOUR_MINUTE);
|
|
19050
19053
|
if (o)
|
|
19051
|
-
return
|
|
19054
|
+
return On(r) ? z(t.last_updated_at, t.today, o) : xs(r) ? z(t.last_updated_at, t.yesterday, o) : z(
|
|
19052
19055
|
t.last_updated_at,
|
|
19053
19056
|
nA(r, AA.MONTH_DAY_YEAR),
|
|
19054
19057
|
o
|
|
@@ -19061,7 +19064,7 @@ const on = ({
|
|
|
19061
19064
|
};
|
|
19062
19065
|
}
|
|
19063
19066
|
}
|
|
19064
|
-
},
|
|
19067
|
+
}, an = {
|
|
19065
19068
|
color: "background.default",
|
|
19066
19069
|
fontSize: 20,
|
|
19067
19070
|
gridRow: 1,
|
|
@@ -19070,15 +19073,15 @@ const on = ({
|
|
|
19070
19073
|
}, sR = () => {
|
|
19071
19074
|
const [A, t] = h.useState(!1), {
|
|
19072
19075
|
palette: { mode: i }
|
|
19073
|
-
} = RA(), { selectedMember: n } = Xe(), { accounts: r, connect: o } = X(), I =
|
|
19076
|
+
} = RA(), { selectedMember: n } = Xe(), { accounts: r, connect: o } = X(), I = SI(n, o), a = So.includes(n.connection_status) ? {
|
|
19074
19077
|
color: "error.main",
|
|
19075
19078
|
ctaCopy: I.cta ?? "",
|
|
19076
|
-
icon: /* @__PURE__ */ e(Qi, { sx: { ...
|
|
19079
|
+
icon: /* @__PURE__ */ e(Qi, { sx: { ...an } }),
|
|
19077
19080
|
mainMessage: I.statusName,
|
|
19078
19081
|
secondaryMessage: `${I.title}.`
|
|
19079
19082
|
} : {
|
|
19080
19083
|
color: "success.main",
|
|
19081
|
-
icon: /* @__PURE__ */ e(ws, { sx: { ...
|
|
19084
|
+
icon: /* @__PURE__ */ e(ws, { sx: { ...an } }),
|
|
19082
19085
|
mainMessage: I.statusName,
|
|
19083
19086
|
secondaryMessage: I.title
|
|
19084
19087
|
};
|
|
@@ -19109,7 +19112,7 @@ const on = ({
|
|
|
19109
19112
|
ft,
|
|
19110
19113
|
{
|
|
19111
19114
|
backingSx: {
|
|
19112
|
-
backgroundColor: i ===
|
|
19115
|
+
backgroundColor: i === ar.LIGHT ? "grey.300" : "grey.700",
|
|
19113
19116
|
borderRadius: 1
|
|
19114
19117
|
},
|
|
19115
19118
|
size: 32,
|
|
@@ -19117,8 +19120,8 @@ const on = ({
|
|
|
19117
19120
|
ys,
|
|
19118
19121
|
{
|
|
19119
19122
|
sx: {
|
|
19120
|
-
...
|
|
19121
|
-
color: i ===
|
|
19123
|
+
...an,
|
|
19124
|
+
color: i === ar.LIGHT ? "grey.900" : "common.white"
|
|
19122
19125
|
}
|
|
19123
19126
|
}
|
|
19124
19127
|
)
|
|
@@ -19161,7 +19164,7 @@ const on = ({
|
|
|
19161
19164
|
onChange: (P) => a(P.target.value),
|
|
19162
19165
|
placeholder: A.placeholder,
|
|
19163
19166
|
value: I,
|
|
19164
|
-
children: A.options?.map((P) => /* @__PURE__ */ e(
|
|
19167
|
+
children: A.options?.map((P) => /* @__PURE__ */ e(mn, { value: P.value, children: P.label }, P.value))
|
|
19165
19168
|
}
|
|
19166
19169
|
)
|
|
19167
19170
|
] });
|
|
@@ -19275,11 +19278,11 @@ const on = ({
|
|
|
19275
19278
|
/* @__PURE__ */ e(aR, {})
|
|
19276
19279
|
] });
|
|
19277
19280
|
}, 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 &&
|
|
19281
|
+
const [t, i] = h.useState(!1), { selectedMember: n } = Xe(), { accounts: r, connect: o } = X(), I = n.connection_status && So.includes(n.connection_status);
|
|
19279
19282
|
if (h.useEffect(() => {
|
|
19280
19283
|
I && A(1);
|
|
19281
19284
|
}, [I]), !I) return;
|
|
19282
|
-
const a =
|
|
19285
|
+
const a = SI(n, o);
|
|
19283
19286
|
return /* @__PURE__ */ s(Z, { children: [
|
|
19284
19287
|
/* @__PURE__ */ e(
|
|
19285
19288
|
De,
|
|
@@ -19305,10 +19308,10 @@ const on = ({
|
|
|
19305
19308
|
}
|
|
19306
19309
|
},
|
|
19307
19310
|
children: [
|
|
19308
|
-
a.title && /* @__PURE__ */ e(
|
|
19311
|
+
a.title && /* @__PURE__ */ e(hn, { sx: { fontWeight: 600, marginTop: 2 }, variant: "Body", children: a.title }),
|
|
19309
19312
|
/* @__PURE__ */ e(R, { component: "p", sx: { whiteSpace: "wrap" }, variant: "ParagraphSmall", children: a.main }),
|
|
19310
19313
|
a.cta && /* @__PURE__ */ e(
|
|
19311
|
-
|
|
19314
|
+
No,
|
|
19312
19315
|
{
|
|
19313
19316
|
onClick: () => i(!0),
|
|
19314
19317
|
sx: { fontSize: 15, fontWeight: 600, ml: 0 },
|
|
@@ -19335,7 +19338,8 @@ const on = ({
|
|
|
19335
19338
|
return h.useEffect(() => {
|
|
19336
19339
|
o({
|
|
19337
19340
|
dateRange: { start: cs(fs(), 90), end: ds() },
|
|
19338
|
-
accounts: [n.guid]
|
|
19341
|
+
accounts: [n.guid],
|
|
19342
|
+
custom: (c) => c.accountIsClosed === !0 || c.accountIsClosed === !1
|
|
19339
19343
|
});
|
|
19340
19344
|
}, [n]), h.useEffect(() => i(V.ACCOUNT_DETAILS_VIEW_TRANSACTIONS), []), /* @__PURE__ */ s(Z, { children: [
|
|
19341
19345
|
/* @__PURE__ */ e(Rt, { onClick: t }),
|
|
@@ -19385,7 +19389,7 @@ const on = ({
|
|
|
19385
19389
|
/* @__PURE__ */ e(Qt, { index: 0, name: "transaction-details", value: A, children: /* @__PURE__ */ e(bR, {}) }),
|
|
19386
19390
|
/* @__PURE__ */ e(Qt, { index: 1, name: "account-details", value: A, children: /* @__PURE__ */ e(vR, {}) })
|
|
19387
19391
|
] });
|
|
19388
|
-
},
|
|
19392
|
+
}, UI = C(HR), zR = () => {
|
|
19389
19393
|
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
19394
|
return h.useEffect(() => {
|
|
19391
19395
|
if (d) {
|
|
@@ -19409,7 +19413,7 @@ const on = ({
|
|
|
19409
19413
|
{
|
|
19410
19414
|
"aria-label": i.account_type_accounts[E[0].account_type],
|
|
19411
19415
|
subheader: /* @__PURE__ */ e(me, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ s(
|
|
19412
|
-
|
|
19416
|
+
or,
|
|
19413
19417
|
{
|
|
19414
19418
|
component: "span",
|
|
19415
19419
|
direction: "row",
|
|
@@ -19420,7 +19424,7 @@ const on = ({
|
|
|
19420
19424
|
]
|
|
19421
19425
|
}
|
|
19422
19426
|
) }),
|
|
19423
|
-
children: /* @__PURE__ */ e(
|
|
19427
|
+
children: /* @__PURE__ */ e(or, { children: E.map((u) => {
|
|
19424
19428
|
const H = n.indexOf(u) === n.length - 1, P = E.indexOf(u) === E.length - 1;
|
|
19425
19429
|
return /* @__PURE__ */ s(h.Fragment, { children: [
|
|
19426
19430
|
/* @__PURE__ */ e(
|
|
@@ -19454,14 +19458,14 @@ const on = ({
|
|
|
19454
19458
|
onClose: () => t(""),
|
|
19455
19459
|
title: i.account_details,
|
|
19456
19460
|
children: [
|
|
19457
|
-
/* @__PURE__ */ e(
|
|
19458
|
-
/* @__PURE__ */ e(
|
|
19461
|
+
/* @__PURE__ */ e(Ar, {}),
|
|
19462
|
+
/* @__PURE__ */ e(UI, {})
|
|
19459
19463
|
]
|
|
19460
19464
|
}
|
|
19461
19465
|
)
|
|
19462
19466
|
] });
|
|
19463
19467
|
}, CR = C(zR), gR = ({ onBackClick: A, sx: t = {} }) => {
|
|
19464
|
-
const [i, n] = h.useState(!1), [r, o] = h.useState(!1), { config: I } =
|
|
19468
|
+
const [i, n] = h.useState(!1), [r, o] = h.useState(!1), { config: I } = tI(), { accounts: a, refreshMembers: c } = CA(), { accounts: d } = X(), { setSelectedAccounts: f, selectedAccountGuids: E } = pA(), { isDesktop: l } = zA(), { onEvent: v } = K();
|
|
19465
19469
|
h.useEffect(() => {
|
|
19466
19470
|
f(a);
|
|
19467
19471
|
}, [a]);
|
|
@@ -19498,7 +19502,7 @@ const on = ({
|
|
|
19498
19502
|
/* @__PURE__ */ e(CR, {})
|
|
19499
19503
|
] }),
|
|
19500
19504
|
/* @__PURE__ */ e(
|
|
19501
|
-
|
|
19505
|
+
VI,
|
|
19502
19506
|
{
|
|
19503
19507
|
onClose: () => n(!1),
|
|
19504
19508
|
showConnectionsWidget: i,
|
|
@@ -20022,7 +20026,7 @@ const on = ({
|
|
|
20022
20026
|
)
|
|
20023
20027
|
] });
|
|
20024
20028
|
}, TP = C(DR);
|
|
20025
|
-
class
|
|
20029
|
+
class Eo {
|
|
20026
20030
|
fetchInstance;
|
|
20027
20031
|
constructor(t, i) {
|
|
20028
20032
|
this.fetchInstance = new Ae(t, i);
|
|
@@ -20049,7 +20053,7 @@ class jR {
|
|
|
20049
20053
|
setSelectedMember = (t) => this.selectedMember = t;
|
|
20050
20054
|
}
|
|
20051
20055
|
class mR {
|
|
20052
|
-
api = new
|
|
20056
|
+
api = new Eo("/", "");
|
|
20053
20057
|
globalStore;
|
|
20054
20058
|
accounts = [];
|
|
20055
20059
|
institutions = [];
|
|
@@ -20059,7 +20063,7 @@ class mR {
|
|
|
20059
20063
|
this.globalStore = t, this.uiStore = new jR(), DA(this);
|
|
20060
20064
|
}
|
|
20061
20065
|
initialize = async (t, i) => {
|
|
20062
|
-
this.api = new
|
|
20066
|
+
this.api = new Eo(t, i), await Promise.all([this.loadAccounts(), this.loadInstitutions()]);
|
|
20063
20067
|
};
|
|
20064
20068
|
get cashAccounts() {
|
|
20065
20069
|
return this.accounts.filter(
|
|
@@ -20104,7 +20108,7 @@ class mR {
|
|
|
20104
20108
|
if (r > -1) {
|
|
20105
20109
|
let o = bt.Connected;
|
|
20106
20110
|
const I = this.members[r];
|
|
20107
|
-
|
|
20111
|
+
Bo.includes(I.connection_status) ? o = bt.Error : Vs.includes(I.connection_status) ? o = bt.Processing : Vo.includes(I.connection_status) && (o = bt.RequiresMfa), i.push({
|
|
20108
20112
|
...n,
|
|
20109
20113
|
memberName: I.name,
|
|
20110
20114
|
connectionStatus: o
|
|
@@ -20204,7 +20208,7 @@ class mR {
|
|
|
20204
20208
|
}
|
|
20205
20209
|
};
|
|
20206
20210
|
}
|
|
20207
|
-
const
|
|
20211
|
+
const ho = 5, OR = 100, LR = 25, QR = (A) => {
|
|
20208
20212
|
const t = (r) => {
|
|
20209
20213
|
r.active || A.alphaTarget(0.3).restart(), r.subject.fx = r.subject.x, r.subject.fy = r.subject.y;
|
|
20210
20214
|
}, i = (r) => {
|
|
@@ -20216,7 +20220,7 @@ const Eo = 5, OR = 100, LR = 25, QR = (A) => {
|
|
|
20216
20220
|
}, qR = (A) => {
|
|
20217
20221
|
let t = A.transaction_total / A.amount;
|
|
20218
20222
|
t < 0 ? t = 0 : t > 1 && (t = 1);
|
|
20219
|
-
const i = t * 2 * Math.PI, n = ue.interpolate(0, i), r = ue.arc().cornerRadius(5).innerRadius(A.radius -
|
|
20223
|
+
const i = t * 2 * Math.PI, n = ue.interpolate(0, i), r = ue.arc().cornerRadius(5).innerRadius(A.radius - ho * 2).outerRadius(A.radius - ho).startAngle(0).endAngle(0);
|
|
20220
20224
|
return (o) => (r.endAngle(n(o)), r(A) || "");
|
|
20221
20225
|
}, GR = (A) => {
|
|
20222
20226
|
ue.selectAll(".bubble").call(QR(A));
|
|
@@ -20245,7 +20249,7 @@ const Eo = 5, OR = 100, LR = 25, QR = (A) => {
|
|
|
20245
20249
|
return ue.forceSimulation(r).velocityDecay(0.05).force("collide", ue.forceCollide((o) => o.radius + 2).strength(0.5)).on("tick", () => {
|
|
20246
20250
|
ue.selectAll(".bubble").data(r).attr("transform", (o) => `translate(${o.x},${o.y})`);
|
|
20247
20251
|
});
|
|
20248
|
-
},
|
|
20252
|
+
}, lo = 5, YR = 2e3;
|
|
20249
20253
|
function VR({ bubble: A }) {
|
|
20250
20254
|
const t = RA(), {
|
|
20251
20255
|
guid: i,
|
|
@@ -20255,7 +20259,7 @@ function VR({ bubble: A }) {
|
|
|
20255
20259
|
h.useEffect(() => {
|
|
20256
20260
|
ue.select(`.${o}`).selectAll(".status").remove(), ue.select(`.${o}`).append("path").transition().duration(YR).delay(0).attr("class", "status").attr("style", `fill: ${n}; fill-opacity: 1;`).attrTween("d", () => qR(A));
|
|
20257
20261
|
}, [A]);
|
|
20258
|
-
const I = ue.arc().innerRadius((a) => a - 2 *
|
|
20262
|
+
const I = ue.arc().innerRadius((a) => a - 2 * lo).outerRadius((a) => a - lo).startAngle(0).endAngle(2 * Math.PI);
|
|
20259
20263
|
return /* @__PURE__ */ e("g", { className: o, children: /* @__PURE__ */ e(
|
|
20260
20264
|
"path",
|
|
20261
20265
|
{
|
|
@@ -20264,7 +20268,7 @@ function VR({ bubble: A }) {
|
|
|
20264
20268
|
}
|
|
20265
20269
|
) });
|
|
20266
20270
|
}
|
|
20267
|
-
const yt = 75,
|
|
20271
|
+
const yt = 75, vo = 50;
|
|
20268
20272
|
function BR({ bubble: A, isDraggable: t, onClick: i = () => {
|
|
20269
20273
|
} }) {
|
|
20270
20274
|
const [n, r] = h.useState(!1);
|
|
@@ -20341,7 +20345,7 @@ function BR({ bubble: A, isDraggable: t, onClick: i = () => {
|
|
|
20341
20345
|
children: c
|
|
20342
20346
|
}
|
|
20343
20347
|
),
|
|
20344
|
-
E >
|
|
20348
|
+
E > vo && /* @__PURE__ */ e(
|
|
20345
20349
|
R,
|
|
20346
20350
|
{
|
|
20347
20351
|
bold: !0,
|
|
@@ -20353,7 +20357,7 @@ function BR({ bubble: A, isDraggable: t, onClick: i = () => {
|
|
|
20353
20357
|
children: E <= yt ? f.split(" ")[0] : f
|
|
20354
20358
|
}
|
|
20355
20359
|
),
|
|
20356
|
-
E <= yt && E >
|
|
20360
|
+
E <= yt && E > vo && /* @__PURE__ */ e(
|
|
20357
20361
|
R,
|
|
20358
20362
|
{
|
|
20359
20363
|
component: "text",
|
|
@@ -20389,7 +20393,7 @@ const SR = ({
|
|
|
20389
20393
|
/* @__PURE__ */ e(R, { bold: !0, variant: "Paragraph", children: A.zero_state_title }),
|
|
20390
20394
|
/* @__PURE__ */ e(R, { sx: { whiteSpace: "wrap" }, variant: "Paragraph", children: A.zero_state_description })
|
|
20391
20395
|
] });
|
|
20392
|
-
},
|
|
20396
|
+
}, FI = C(
|
|
20393
20397
|
({ height: A, isDraggable: t = !1, shouldShowZeroState: i, unavailableWidth: n = 24 }) => {
|
|
20394
20398
|
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
20399
|
o(l), r(V.BUDGETS_CLICK_BUDGET_CATEGORY, {
|
|
@@ -20418,7 +20422,7 @@ const SR = ({
|
|
|
20418
20422
|
title: o.budgets_title,
|
|
20419
20423
|
...A,
|
|
20420
20424
|
children: /* @__PURE__ */ s(b, { height: 450, mt: 32, children: [
|
|
20421
|
-
/* @__PURE__ */ e(
|
|
20425
|
+
/* @__PURE__ */ e(FI, { height: 370, shouldShowZeroState: a }),
|
|
20422
20426
|
!a && /* @__PURE__ */ s(L, { ml: 16, children: [
|
|
20423
20427
|
/* @__PURE__ */ e(R, { bold: !0, color: I < 0 ? "error.main" : "success.main", children: M(Math.abs(I), "0,0") }),
|
|
20424
20428
|
/* @__PURE__ */ e(R, { children: I < 0 ? o.overspent_in_budgets : o.left_in_budgets })
|
|
@@ -20437,7 +20441,7 @@ const SR = ({
|
|
|
20437
20441
|
transaction_total: d
|
|
20438
20442
|
} = A;
|
|
20439
20443
|
return /* @__PURE__ */ e(W, { children: /* @__PURE__ */ s(aA, { onClick: () => t?.(A), children: [
|
|
20440
|
-
/* @__PURE__ */ e(xA, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ e(
|
|
20444
|
+
/* @__PURE__ */ e(xA, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ e(oI, { color: n, percent: a, size: 40, children: /* @__PURE__ */ e(be, { categoryGuid: o, variant: "basic" }) }) }),
|
|
20441
20445
|
/* @__PURE__ */ e(
|
|
20442
20446
|
eA,
|
|
20443
20447
|
{
|
|
@@ -20547,7 +20551,7 @@ const SR = ({
|
|
|
20547
20551
|
title: o.manage_income,
|
|
20548
20552
|
children: /* @__PURE__ */ s(b, { gap: 4, children: [
|
|
20549
20553
|
/* @__PURE__ */ e(R, { bold: !0, sx: { mt: 12, mx: 24 }, variant: "Small", children: n.income_title }),
|
|
20550
|
-
/* @__PURE__ */ e(
|
|
20554
|
+
/* @__PURE__ */ e(Jn, {})
|
|
20551
20555
|
] })
|
|
20552
20556
|
}
|
|
20553
20557
|
)
|
|
@@ -20680,7 +20684,7 @@ const SR = ({
|
|
|
20680
20684
|
)) }) }),
|
|
20681
20685
|
/* @__PURE__ */ e($R, { onRecalculateBudgets: A })
|
|
20682
20686
|
] });
|
|
20683
|
-
}),
|
|
20687
|
+
}), WI = ({ budget: A }) => {
|
|
20684
20688
|
const {
|
|
20685
20689
|
amount: t,
|
|
20686
20690
|
budgetColors: { background: i },
|
|
@@ -20716,7 +20720,7 @@ const SR = ({
|
|
|
20716
20720
|
transaction_total: o
|
|
20717
20721
|
} = A, { setSelectedSubBudget: I } = te();
|
|
20718
20722
|
return /* @__PURE__ */ e(W, { children: /* @__PURE__ */ s(aA, { onClick: () => I(A), children: [
|
|
20719
|
-
/* @__PURE__ */ e(xA, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ e(
|
|
20723
|
+
/* @__PURE__ */ e(xA, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ e(oI, { color: i, percent: r, size: 40, children: /* @__PURE__ */ e(be, { categoryGuid: n.parent_guid, variant: "basic" }) }) }),
|
|
20720
20724
|
/* @__PURE__ */ e(
|
|
20721
20725
|
eA,
|
|
20722
20726
|
{
|
|
@@ -20757,7 +20761,7 @@ const SR = ({
|
|
|
20757
20761
|
isOpen: a,
|
|
20758
20762
|
onClose: () => c(!1),
|
|
20759
20763
|
title: i.add_sub_budget_title,
|
|
20760
|
-
children: /* @__PURE__ */ e(rA, { children: /* @__PURE__ */ e(
|
|
20764
|
+
children: /* @__PURE__ */ e(rA, { children: /* @__PURE__ */ e(dI, { category: A, subCategories: A.subCategories }) })
|
|
20761
20765
|
}
|
|
20762
20766
|
),
|
|
20763
20767
|
/* @__PURE__ */ e(
|
|
@@ -20821,7 +20825,7 @@ const SR = ({
|
|
|
20821
20825
|
secondaryText: n.details_delete_button,
|
|
20822
20826
|
title: n.details_title,
|
|
20823
20827
|
children: I && /* @__PURE__ */ s(b, { gap: 24, children: [
|
|
20824
|
-
/* @__PURE__ */ e(
|
|
20828
|
+
/* @__PURE__ */ e(WI, { budget: I }),
|
|
20825
20829
|
/* @__PURE__ */ e(Rt, { height: "100%" })
|
|
20826
20830
|
] })
|
|
20827
20831
|
}
|
|
@@ -20868,10 +20872,10 @@ const SR = ({
|
|
|
20868
20872
|
), l = (u, H) => {
|
|
20869
20873
|
c(H);
|
|
20870
20874
|
}, v = () => {
|
|
20871
|
-
|
|
20875
|
+
fI(o, I), r(t.alert_csv_downloaded);
|
|
20872
20876
|
};
|
|
20873
20877
|
return /* @__PURE__ */ s(b, { gap: 24, children: [
|
|
20874
|
-
/* @__PURE__ */ e(
|
|
20878
|
+
/* @__PURE__ */ e(WI, { budget: A }),
|
|
20875
20879
|
/* @__PURE__ */ s(b, { children: [
|
|
20876
20880
|
/* @__PURE__ */ s(
|
|
20877
20881
|
Se,
|
|
@@ -20991,7 +20995,7 @@ const SR = ({
|
|
|
20991
20995
|
}
|
|
20992
20996
|
)
|
|
20993
20997
|
] });
|
|
20994
|
-
}),
|
|
20998
|
+
}), Ro = 480, VP = C(({ onBackClick: A, sx: t }) => {
|
|
20995
20999
|
const i = RA(), { onEvent: n } = K(), { accounts: r } = CA(), { budgets: o, common: I } = X(), { isInitialized: a, selectedAccounts: c, setDisplayedDate: d, setSelectedAccounts: f } = pA(), { alert: E, dateRange: l, loadBudgets: v, setDateRange: u, setAlert: H, setTheme: P } = te(), { loadCashflowSequences: p } = ZA(), { isDesktop: y, isTablet: x } = zA(), { reloadCategoryTotals: w } = qA(), [D, m] = h.useState(!1), [j, O] = h.useState(!1);
|
|
20996
21000
|
h.useEffect(() => {
|
|
20997
21001
|
P(i), f(r), d(l.start, l.end), n(V.BUDGETS_VIEW);
|
|
@@ -21029,12 +21033,12 @@ const SR = ({
|
|
|
21029
21033
|
(!a || !D) && /* @__PURE__ */ e(ee, {}),
|
|
21030
21034
|
a && D && /* @__PURE__ */ s(b, { direction: y || x ? "row" : "column", height: "100%", width: "100%", children: [
|
|
21031
21035
|
/* @__PURE__ */ e(b, { height: y || x ? "calc(100dvh - 150px)" : 450, children: /* @__PURE__ */ e(
|
|
21032
|
-
|
|
21036
|
+
FI,
|
|
21033
21037
|
{
|
|
21034
21038
|
height: y || x ? 800 : 450,
|
|
21035
21039
|
isDraggable: !0,
|
|
21036
21040
|
shouldShowZeroState: !1,
|
|
21037
|
-
unavailableWidth: y || x ?
|
|
21041
|
+
unavailableWidth: y || x ? Ro : 0
|
|
21038
21042
|
}
|
|
21039
21043
|
) }),
|
|
21040
21044
|
/* @__PURE__ */ s(
|
|
@@ -21043,7 +21047,7 @@ const SR = ({
|
|
|
21043
21047
|
gap: 24,
|
|
21044
21048
|
height: "100%",
|
|
21045
21049
|
sx: { mr: 24 },
|
|
21046
|
-
width: y || x ?
|
|
21050
|
+
width: y || x ? Ro : "100%",
|
|
21047
21051
|
children: [
|
|
21048
21052
|
/* @__PURE__ */ e(ZR, {}),
|
|
21049
21053
|
/* @__PURE__ */ e(KR, {})
|
|
@@ -21076,7 +21080,7 @@ const SR = ({
|
|
|
21076
21080
|
}
|
|
21077
21081
|
);
|
|
21078
21082
|
});
|
|
21079
|
-
var
|
|
21083
|
+
var gn = /* @__PURE__ */ ((A) => (A[A.Main = 0] = "Main", A[A.RightSide = 1] = "RightSide", A))(gn || {});
|
|
21080
21084
|
const a3 = C(() => {
|
|
21081
21085
|
const A = RA(), {
|
|
21082
21086
|
appDataStore: { banner: t }
|
|
@@ -21139,7 +21143,7 @@ const a3 = C(() => {
|
|
|
21139
21143
|
/* @__PURE__ */ e(R, { color: "text.secondary", sx: { fontSize: 15 }, children: r.heres_your_spending_overview })
|
|
21140
21144
|
] }),
|
|
21141
21145
|
/* @__PURE__ */ e(
|
|
21142
|
-
|
|
21146
|
+
_o,
|
|
21143
21147
|
{
|
|
21144
21148
|
accounts: A,
|
|
21145
21149
|
copy: o,
|
|
@@ -21162,10 +21166,10 @@ const a3 = C(() => {
|
|
|
21162
21166
|
() => A.sort((f, E) => f.index - E.index),
|
|
21163
21167
|
[A]
|
|
21164
21168
|
), c = h.useMemo(
|
|
21165
|
-
() => a.filter((f) => f.location ===
|
|
21169
|
+
() => a.filter((f) => f.location === gn.Main),
|
|
21166
21170
|
[A]
|
|
21167
21171
|
), d = h.useMemo(
|
|
21168
|
-
() => a.filter((f) => f.location ===
|
|
21172
|
+
() => a.filter((f) => f.location === gn.RightSide),
|
|
21169
21173
|
[A]
|
|
21170
21174
|
);
|
|
21171
21175
|
return /* @__PURE__ */ s(tt, { container: !0, spacing: n ? 0 : 24, sx: { overflow: "scroll" }, children: [
|
|
@@ -21213,7 +21217,7 @@ class d3 {
|
|
|
21213
21217
|
return this.copyObject.zero_state;
|
|
21214
21218
|
}
|
|
21215
21219
|
}
|
|
21216
|
-
const
|
|
21220
|
+
const ir = {
|
|
21217
21221
|
BillAmountNotStandard: "BillAmountNotStandard",
|
|
21218
21222
|
CanadianUpcomingDeadlineAlert: "CanadianUpcomingDeadlineAlert",
|
|
21219
21223
|
DuplicatePaymentV2: "DuplicatePaymentV2",
|
|
@@ -21230,37 +21234,37 @@ const tr = {
|
|
|
21230
21234
|
WeeklyNewMerchantsV2: "WeeklyNewMerchantsV2",
|
|
21231
21235
|
MonthlySpendComparison: "MonthlySpendComparison",
|
|
21232
21236
|
MonthlySpendToIncomeComparison: "MonthlySpendToIncomeComparison"
|
|
21233
|
-
}, ye = window?.app?.clientConfig?.microwidget_instance_id || "",
|
|
21237
|
+
}, ye = window?.app?.clientConfig?.microwidget_instance_id || "", uo = {
|
|
21234
21238
|
INSIGHTS_MICRO_WIDGET: "/micro-insights-carousel"
|
|
21235
|
-
},
|
|
21239
|
+
}, kI = (A) => `on${A}Click`, KI = (A) => `on${A}View`, ZI = (A) => `on${A}ViewFirstTime`, nr = (A) => A.replace(/([a-z])([A-Z])/g, "$1 $2"), E3 = () => Object.values(ir).reduce(
|
|
21236
21240
|
(A, t) => ({
|
|
21237
21241
|
...A,
|
|
21238
|
-
[
|
|
21242
|
+
[kI(t)]: {
|
|
21239
21243
|
action: et.MICRO_BEAT_CLICKED,
|
|
21240
21244
|
category: At.BEAT_INTERACTION,
|
|
21241
|
-
label:
|
|
21245
|
+
label: nr(t),
|
|
21242
21246
|
value: ye
|
|
21243
21247
|
}
|
|
21244
21248
|
}),
|
|
21245
21249
|
{}
|
|
21246
|
-
), h3 = () => Object.values(
|
|
21250
|
+
), h3 = () => Object.values(ir).reduce(
|
|
21247
21251
|
(A, t) => ({
|
|
21248
21252
|
...A,
|
|
21249
|
-
[
|
|
21253
|
+
[KI(t)]: {
|
|
21250
21254
|
action: et.MICRO_BEAT_DISPLAYED,
|
|
21251
21255
|
category: At.BEAT_INTERACTION,
|
|
21252
|
-
label:
|
|
21256
|
+
label: nr(t),
|
|
21253
21257
|
value: ye
|
|
21254
21258
|
}
|
|
21255
21259
|
}),
|
|
21256
21260
|
{}
|
|
21257
|
-
), l3 = () => Object.values(
|
|
21261
|
+
), l3 = () => Object.values(ir).reduce(
|
|
21258
21262
|
(A, t) => ({
|
|
21259
21263
|
...A,
|
|
21260
|
-
[
|
|
21264
|
+
[ZI(t)]: {
|
|
21261
21265
|
action: et.MICRO_BEAT_DISPLAYED_FIRST_TIME,
|
|
21262
21266
|
category: At.BEAT_INTERACTION,
|
|
21263
|
-
label:
|
|
21267
|
+
label: nr(t),
|
|
21264
21268
|
value: ye
|
|
21265
21269
|
}
|
|
21266
21270
|
}),
|
|
@@ -21280,7 +21284,7 @@ const tr = {
|
|
|
21280
21284
|
ON_CAROUSEL_FORWARD_SWIPE: "onCarouselForwardSwipe",
|
|
21281
21285
|
ON_NO_RELEVANT_INSIGHTS_CLICKED: "onNoRelevantInsightsClicked",
|
|
21282
21286
|
ON_VIEW_MORE_CLICKED: "onViewMoreClicked"
|
|
21283
|
-
},
|
|
21287
|
+
}, JI = {
|
|
21284
21288
|
ON_VIEW_MORE_VIEWED: "onViewMoreCardView"
|
|
21285
21289
|
}, et = {
|
|
21286
21290
|
CONTROL_BACKWARD: "Control Backward",
|
|
@@ -21294,18 +21298,18 @@ const tr = {
|
|
|
21294
21298
|
MICRO_WIDGET_CAROUSEL: "Micro Widget Carousel",
|
|
21295
21299
|
MICRO_WIDGET_CAROUSEL_ZERO_STATE: "Micro Widget Carousel Zero State",
|
|
21296
21300
|
MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS: "Micro Widget Carousel No Relevant Insights"
|
|
21297
|
-
},
|
|
21301
|
+
}, Po = {
|
|
21298
21302
|
[at.MICRO_WIDGET_CAROUSEL]: {
|
|
21299
21303
|
label: $e.MICRO_WIDGET,
|
|
21300
21304
|
name: at.MICRO_WIDGET_CAROUSEL,
|
|
21301
|
-
path:
|
|
21305
|
+
path: uo.INSIGHTS_MICRO_WIDGET,
|
|
21302
21306
|
value: ye
|
|
21303
21307
|
},
|
|
21304
21308
|
// zero state
|
|
21305
21309
|
[at.MICRO_WIDGET_CAROUSEL_ZERO_STATE]: {
|
|
21306
21310
|
label: $e.MICRO_WIDGET,
|
|
21307
21311
|
name: at.MICRO_WIDGET_CAROUSEL_ZERO_STATE,
|
|
21308
|
-
path:
|
|
21312
|
+
path: uo.INSIGHTS_MICRO_WIDGET,
|
|
21309
21313
|
value: ye
|
|
21310
21314
|
},
|
|
21311
21315
|
// no relevant cards
|
|
@@ -21315,7 +21319,7 @@ const tr = {
|
|
|
21315
21319
|
path: "/micro-widget",
|
|
21316
21320
|
value: ye
|
|
21317
21321
|
}
|
|
21318
|
-
},
|
|
21322
|
+
}, bo = {
|
|
21319
21323
|
// carousel control interaction events - clicks and swipes
|
|
21320
21324
|
[xe.ON_CAROUSEL_BACK_CLICK]: {
|
|
21321
21325
|
action: et.CONTROL_BACKWARD,
|
|
@@ -21348,7 +21352,7 @@ const tr = {
|
|
|
21348
21352
|
label: $e.VIEW_MORE,
|
|
21349
21353
|
value: ye
|
|
21350
21354
|
},
|
|
21351
|
-
[
|
|
21355
|
+
[JI.ON_VIEW_MORE_VIEWED]: {
|
|
21352
21356
|
action: et.MICRO_BEAT_DISPLAYED,
|
|
21353
21357
|
category: At.BEAT_INTERACTION,
|
|
21354
21358
|
label: $e.VIEW_MORE,
|
|
@@ -21357,25 +21361,25 @@ const tr = {
|
|
|
21357
21361
|
...E3(),
|
|
21358
21362
|
...h3(),
|
|
21359
21363
|
...l3()
|
|
21360
|
-
},
|
|
21364
|
+
}, Ho = async (A, t) => !t || !bo[A] ? null : t.sendAnalyticEvent(bo[A]).then((i) => i).catch((i) => {
|
|
21361
21365
|
throw i;
|
|
21362
|
-
}),
|
|
21366
|
+
}), zo = async (A, t) => !t || !Po[A] ? null : t.sendAnalyticsPageview(Po[A]).then((i) => i).catch((i) => {
|
|
21363
21367
|
throw i;
|
|
21364
21368
|
});
|
|
21365
21369
|
class v3 {
|
|
21366
|
-
onAnalyticEvent =
|
|
21367
|
-
onAnalyticPageView =
|
|
21370
|
+
onAnalyticEvent = Ho;
|
|
21371
|
+
onAnalyticPageView = zo;
|
|
21368
21372
|
beatApi = new Lt("/", "");
|
|
21369
21373
|
constructor() {
|
|
21370
21374
|
DA(this);
|
|
21371
21375
|
}
|
|
21372
21376
|
initialize = async (t, i, n) => {
|
|
21373
21377
|
this.onAnalyticEvent = (r, o) => {
|
|
21374
|
-
|
|
21378
|
+
Ho(r, o).then((I) => I).catch((I) => {
|
|
21375
21379
|
throw I.status === 401 && n(), I;
|
|
21376
21380
|
});
|
|
21377
21381
|
}, this.onAnalyticPageView = (r, o) => {
|
|
21378
|
-
|
|
21382
|
+
zo(r, o).then((I) => I).catch((I) => {
|
|
21379
21383
|
throw I.status === 401 && n(), I;
|
|
21380
21384
|
});
|
|
21381
21385
|
}, this.beatApi = new Lt(t, i);
|
|
@@ -21583,7 +21587,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
21583
21587
|
}, p3 = ({ beat: A }) => {
|
|
21584
21588
|
const t = KA(), i = X3(A.data_series, t);
|
|
21585
21589
|
return /* @__PURE__ */ e(q, { name: "bar_chart", sx: { color: i } });
|
|
21586
|
-
},
|
|
21590
|
+
}, _I = () => /* @__PURE__ */ s("svg", { fill: "none", height: "36", viewBox: "0 0 40 36", width: "40", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
21587
21591
|
/* @__PURE__ */ e(
|
|
21588
21592
|
"path",
|
|
21589
21593
|
{
|
|
@@ -22364,7 +22368,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22364
22368
|
}
|
|
22365
22369
|
)
|
|
22366
22370
|
] })
|
|
22367
|
-
] }),
|
|
22371
|
+
] }), Co = ({ beat: A, clientColorScheme: t, color: i, type: n }) => {
|
|
22368
22372
|
const r = RA(), o = t?.primary_300 ? t.primary_300 : r.palette.primary.main;
|
|
22369
22373
|
return n === 0 ? /* @__PURE__ */ e(q, { fill: !0, name: "error", sx: { color: i || o } }) : n === 1 && A ? /* @__PURE__ */ e(P3, { beat: A }) : n === 2 && A ? /* @__PURE__ */ e(z3, { beat: A }) : n === 3 && A ? /* @__PURE__ */ e(p3, { beat: A }) : n === 5 && A ? /* @__PURE__ */ e(q, { name: "campaign" }) : /* @__PURE__ */ e(
|
|
22370
22374
|
q,
|
|
@@ -22393,17 +22397,17 @@ const si = h.createContext(null), u3 = ({
|
|
|
22393
22397
|
if (!A)
|
|
22394
22398
|
throw new Error("useEvent() must be used within the InsightsMicroWidgetDataProvider");
|
|
22395
22399
|
return { onEvent: A.onEvent };
|
|
22396
|
-
},
|
|
22400
|
+
}, $I = () => {
|
|
22397
22401
|
const A = h.useContext(si);
|
|
22398
22402
|
if (!A)
|
|
22399
22403
|
throw new Error("usePageview() must be used within the InsightsMicroWidgetDataProvider");
|
|
22400
22404
|
return { onPageview: A.onPageview };
|
|
22401
|
-
},
|
|
22405
|
+
}, Aa = {
|
|
22402
22406
|
LARGE: 180,
|
|
22403
22407
|
STANDARD: 154,
|
|
22404
22408
|
XLARGE: 200,
|
|
22405
22409
|
XXLARGE: 248
|
|
22406
|
-
}, y3 = 50,
|
|
22410
|
+
}, y3 = 50, ea = 1, x3 = ({
|
|
22407
22411
|
ariaLabel: A,
|
|
22408
22412
|
backgroundColor: t,
|
|
22409
22413
|
beat: i,
|
|
@@ -22418,17 +22422,17 @@ const si = h.createContext(null), u3 = ({
|
|
|
22418
22422
|
variant: E,
|
|
22419
22423
|
widthOverrides: l
|
|
22420
22424
|
}) => {
|
|
22421
|
-
const { ref: v, inView: u } =
|
|
22422
|
-
threshold:
|
|
22425
|
+
const { ref: v, inView: u } = To({
|
|
22426
|
+
threshold: ea
|
|
22423
22427
|
}), { cardsCopy: H } = ut(), { onEvent: P } = ci(), { updateBeat: p, updateOffer: y } = w3();
|
|
22424
22428
|
Ht(() => {
|
|
22425
|
-
u && (i.has_been_displayed ? P(
|
|
22429
|
+
u && (i.has_been_displayed ? P(KI(i.template)) : (i.guid.startsWith("OFR") ? y({
|
|
22426
22430
|
...i,
|
|
22427
22431
|
has_been_displayed: !0
|
|
22428
22432
|
}) : p({
|
|
22429
22433
|
...i,
|
|
22430
22434
|
has_been_displayed: !0
|
|
22431
|
-
}), P(
|
|
22435
|
+
}), P(ZI(i.template))));
|
|
22432
22436
|
}, [u]), Ht(() => {
|
|
22433
22437
|
u && i && d?.capture("viewed_insight", {
|
|
22434
22438
|
beat_guid: i.guid,
|
|
@@ -22437,7 +22441,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22437
22441
|
});
|
|
22438
22442
|
}, [i, I, u]);
|
|
22439
22443
|
const x = () => {
|
|
22440
|
-
c && c(i), P(
|
|
22444
|
+
c && c(i), P(kI(i.template)), d?.capture("clicked_insight", {
|
|
22441
22445
|
beat_guid: i.guid,
|
|
22442
22446
|
template: i.template,
|
|
22443
22447
|
position: I
|
|
@@ -22452,8 +22456,8 @@ const si = h.createContext(null), u3 = ({
|
|
|
22452
22456
|
description: i?.html_micro_description && i?.html_micro_description.length > 0 ? i.html_micro_description : i.html_description,
|
|
22453
22457
|
fontColors: { buttonColor: n?.primary_300 },
|
|
22454
22458
|
heightOverrides: o,
|
|
22455
|
-
icon:
|
|
22456
|
-
|
|
22459
|
+
icon: Co && /* @__PURE__ */ e(
|
|
22460
|
+
Co,
|
|
22457
22461
|
{
|
|
22458
22462
|
beat: i,
|
|
22459
22463
|
clientColorScheme: n,
|
|
@@ -22701,7 +22705,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22701
22705
|
},
|
|
22702
22706
|
children: [
|
|
22703
22707
|
/* @__PURE__ */ e(
|
|
22704
|
-
|
|
22708
|
+
Rr,
|
|
22705
22709
|
{
|
|
22706
22710
|
sx: {
|
|
22707
22711
|
fontSize: 18,
|
|
@@ -22713,7 +22717,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22713
22717
|
}
|
|
22714
22718
|
),
|
|
22715
22719
|
/* @__PURE__ */ s(
|
|
22716
|
-
|
|
22720
|
+
No,
|
|
22717
22721
|
{
|
|
22718
22722
|
onClick: I,
|
|
22719
22723
|
sx: {
|
|
@@ -22729,7 +22733,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22729
22733
|
underline: "none",
|
|
22730
22734
|
children: [
|
|
22731
22735
|
/* @__PURE__ */ e(
|
|
22732
|
-
|
|
22736
|
+
Rr,
|
|
22733
22737
|
{
|
|
22734
22738
|
sx: {
|
|
22735
22739
|
color: A?.primary_300,
|
|
@@ -22769,7 +22773,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22769
22773
|
children: i
|
|
22770
22774
|
}
|
|
22771
22775
|
);
|
|
22772
|
-
},
|
|
22776
|
+
}, ta = ({
|
|
22773
22777
|
ariaLabel: A,
|
|
22774
22778
|
carouselSize: t,
|
|
22775
22779
|
clientColorScheme: i,
|
|
@@ -22781,7 +22785,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22781
22785
|
variant: c,
|
|
22782
22786
|
widthOverrides: d
|
|
22783
22787
|
}) => {
|
|
22784
|
-
const { cardsCopy: f } = ut(), { onEvent: E } = ci(), { onPageview: l } =
|
|
22788
|
+
const { cardsCopy: f } = ut(), { onEvent: E } = ci(), { onPageview: l } = $I();
|
|
22785
22789
|
h.useEffect(() => {
|
|
22786
22790
|
l(at.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS);
|
|
22787
22791
|
}, []);
|
|
@@ -22798,7 +22802,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22798
22802
|
description: f.no_relevant_insights_card_description,
|
|
22799
22803
|
fontColors: { buttonColor: i?.primary_300 },
|
|
22800
22804
|
heightOverrides: n,
|
|
22801
|
-
icon: /* @__PURE__ */ e(
|
|
22805
|
+
icon: /* @__PURE__ */ e(_I, {}),
|
|
22802
22806
|
isZeroState: !0,
|
|
22803
22807
|
onCardClick: v,
|
|
22804
22808
|
posthog: o,
|
|
@@ -22806,7 +22810,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22806
22810
|
style: {
|
|
22807
22811
|
cardStyle: {
|
|
22808
22812
|
card: {
|
|
22809
|
-
height: `calc(${
|
|
22813
|
+
height: `calc(${Aa[t]}px - 44px)`,
|
|
22810
22814
|
margin: "0 auto",
|
|
22811
22815
|
width: a ? "calc(100% - 32px)" : "100%"
|
|
22812
22816
|
},
|
|
@@ -22823,7 +22827,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22823
22827
|
widthOverrides: d
|
|
22824
22828
|
}
|
|
22825
22829
|
);
|
|
22826
|
-
}, SP = C(
|
|
22830
|
+
}, SP = C(ta), ia = ({
|
|
22827
22831
|
ariaLabel: A,
|
|
22828
22832
|
carouselSize: t,
|
|
22829
22833
|
heightOverrides: i,
|
|
@@ -22834,7 +22838,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22834
22838
|
variant: a,
|
|
22835
22839
|
widthOverrides: c
|
|
22836
22840
|
}) => {
|
|
22837
|
-
const { onPageview: d } =
|
|
22841
|
+
const { onPageview: d } = $I(), { zeroStateCopy: f } = ut();
|
|
22838
22842
|
return h.useEffect(() => {
|
|
22839
22843
|
d(at.MICRO_WIDGET_CAROUSEL_ZERO_STATE);
|
|
22840
22844
|
}, []), /* @__PURE__ */ e(
|
|
@@ -22843,7 +22847,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22843
22847
|
ariaLabel: A,
|
|
22844
22848
|
description: f.carousel_zero_state_description,
|
|
22845
22849
|
heightOverrides: i,
|
|
22846
|
-
icon: /* @__PURE__ */ e(
|
|
22850
|
+
icon: /* @__PURE__ */ e(_I, {}),
|
|
22847
22851
|
isZeroState: !0,
|
|
22848
22852
|
onCardClick: n,
|
|
22849
22853
|
posthog: r,
|
|
@@ -22851,7 +22855,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22851
22855
|
style: {
|
|
22852
22856
|
cardStyle: {
|
|
22853
22857
|
card: {
|
|
22854
|
-
height: `calc(${
|
|
22858
|
+
height: `calc(${Aa[t]}px - 44px)`,
|
|
22855
22859
|
margin: "0 auto",
|
|
22856
22860
|
width: I ? "calc(100% - 32px)" : "100%"
|
|
22857
22861
|
},
|
|
@@ -22865,7 +22869,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22865
22869
|
widthOverrides: c
|
|
22866
22870
|
}
|
|
22867
22871
|
);
|
|
22868
|
-
}, UP = C(
|
|
22872
|
+
}, UP = C(ia), M3 = () => /* @__PURE__ */ e(
|
|
22869
22873
|
L,
|
|
22870
22874
|
{
|
|
22871
22875
|
sx: {
|
|
@@ -22875,7 +22879,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22875
22879
|
justifyContent: "center",
|
|
22876
22880
|
width: "100%"
|
|
22877
22881
|
},
|
|
22878
|
-
children: /* @__PURE__ */ e(
|
|
22882
|
+
children: /* @__PURE__ */ e(pn, {})
|
|
22879
22883
|
}
|
|
22880
22884
|
), Je = new R3(), N3 = ({
|
|
22881
22885
|
areBeatsLoading: A,
|
|
@@ -22953,8 +22957,8 @@ const si = h.createContext(null), u3 = ({
|
|
|
22953
22957
|
...Y
|
|
22954
22958
|
}
|
|
22955
22959
|
),
|
|
22956
|
-
j && !t.length && y && /* @__PURE__ */ e(
|
|
22957
|
-
j && !t.length && !y && /* @__PURE__ */ e(
|
|
22960
|
+
j && !t.length && y && /* @__PURE__ */ e(ta, { clientColorScheme: i, ...iA }),
|
|
22961
|
+
j && !t.length && !y && /* @__PURE__ */ e(ia, { ...iA })
|
|
22958
22962
|
] }) })
|
|
22959
22963
|
] })
|
|
22960
22964
|
);
|
|
@@ -22969,11 +22973,11 @@ const si = h.createContext(null), u3 = ({
|
|
|
22969
22973
|
variant: a,
|
|
22970
22974
|
widthOverrides: c
|
|
22971
22975
|
}) => {
|
|
22972
|
-
const d = KA(), { ref: f, inView: E } =
|
|
22973
|
-
threshold:
|
|
22976
|
+
const d = KA(), { ref: f, inView: E } = To({
|
|
22977
|
+
threshold: ea
|
|
22974
22978
|
}), { cardsCopy: l } = ut(), { onEvent: v } = ci();
|
|
22975
22979
|
Ht(() => {
|
|
22976
|
-
E && (v(
|
|
22980
|
+
E && (v(JI.ON_VIEW_MORE_VIEWED), o?.capture("viewed_insight", {
|
|
22977
22981
|
template: "view_more_card"
|
|
22978
22982
|
}));
|
|
22979
22983
|
}, [E]);
|
|
@@ -23006,7 +23010,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
23006
23010
|
widthOverrides: c
|
|
23007
23011
|
}
|
|
23008
23012
|
);
|
|
23009
|
-
}, Y3 = C(T3),
|
|
23013
|
+
}, Y3 = C(T3), sn = 5, V3 = (A, t) => t.reduce((i, n) => {
|
|
23010
23014
|
if (n.total > 0) {
|
|
23011
23015
|
const r = A.find((d) => d.guid === n.category_guid);
|
|
23012
23016
|
if (!r) return i;
|
|
@@ -23027,18 +23031,18 @@ const si = h.createContext(null), u3 = ({
|
|
|
23027
23031
|
});
|
|
23028
23032
|
}
|
|
23029
23033
|
return i;
|
|
23030
|
-
}, []),
|
|
23034
|
+
}, []), na = (A, t) => {
|
|
23031
23035
|
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
23036
|
(c, d) => c + d.amount,
|
|
23033
23037
|
0
|
|
23034
|
-
), o = n.length >
|
|
23038
|
+
), o = n.length > sn ? sn : n.length, I = n.slice(0, o), a = I.map((c) => ({
|
|
23035
23039
|
id: c.guid,
|
|
23036
23040
|
color: c.color,
|
|
23037
23041
|
label: c.name,
|
|
23038
23042
|
value: c.amount / r * 100
|
|
23039
23043
|
}));
|
|
23040
23044
|
if (n.length > 5) {
|
|
23041
|
-
const c = n.slice(
|
|
23045
|
+
const c = n.slice(sn, i.length), d = c.reduce(
|
|
23042
23046
|
(f, E) => f + E.amount,
|
|
23043
23047
|
0
|
|
23044
23048
|
);
|
|
@@ -23064,7 +23068,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
23064
23068
|
donutData: a,
|
|
23065
23069
|
totalAmount: r
|
|
23066
23070
|
};
|
|
23067
|
-
},
|
|
23071
|
+
}, ra = (A, t, i) => {
|
|
23068
23072
|
const n = A.filter(
|
|
23069
23073
|
(a) => a.parent_guid === g.INCOME
|
|
23070
23074
|
), r = t.filter((a) => n.some((c) => c.guid === a.category_guid)).sort((a, c) => a.total - c.total).map((a, c) => ({
|
|
@@ -23121,7 +23125,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
23121
23125
|
{
|
|
23122
23126
|
categoryGuid: t ? g.INCOME : E.guid,
|
|
23123
23127
|
size: a === "mini" ? 24 : u,
|
|
23124
|
-
variant:
|
|
23128
|
+
variant: wo.Transparent
|
|
23125
23129
|
}
|
|
23126
23130
|
),
|
|
23127
23131
|
/* @__PURE__ */ e(R, { color: "secondary", noWrap: !0, variant: a === "mini" ? "Tiny" : "Body", children: E ? E.name : I })
|
|
@@ -23143,7 +23147,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
23143
23147
|
}
|
|
23144
23148
|
)
|
|
23145
23149
|
] }) }) });
|
|
23146
|
-
}, wi = C(B3),
|
|
23150
|
+
}, wi = C(B3), go = ({ data: A, onSelected: t, selectedId: i }) => /* @__PURE__ */ e(b, { gap: 8, height: "100%", justifyContent: "center", my: "auto", children: A.categoryData.map((n) => /* @__PURE__ */ s(
|
|
23147
23151
|
b,
|
|
23148
23152
|
{
|
|
23149
23153
|
alignItems: "center",
|
|
@@ -23180,10 +23184,10 @@ const si = h.createContext(null), u3 = ({
|
|
|
23180
23184
|
).finally();
|
|
23181
23185
|
}, [i]);
|
|
23182
23186
|
const [a, c] = h.useState(""), [d, f] = h.useState(0), E = h.useMemo(
|
|
23183
|
-
() =>
|
|
23187
|
+
() => na(r, o),
|
|
23184
23188
|
[r, o]
|
|
23185
23189
|
), l = h.useMemo(
|
|
23186
|
-
() =>
|
|
23190
|
+
() => ra(r, o, n),
|
|
23187
23191
|
[r, o, n]
|
|
23188
23192
|
), v = (H, P) => {
|
|
23189
23193
|
f(P), c("");
|
|
@@ -23228,7 +23232,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
23228
23232
|
}
|
|
23229
23233
|
),
|
|
23230
23234
|
/* @__PURE__ */ e(
|
|
23231
|
-
|
|
23235
|
+
go,
|
|
23232
23236
|
{
|
|
23233
23237
|
data: E,
|
|
23234
23238
|
onSelected: u,
|
|
@@ -23247,7 +23251,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
23247
23251
|
totalLabel: t.total_income
|
|
23248
23252
|
}
|
|
23249
23253
|
),
|
|
23250
|
-
/* @__PURE__ */ e(
|
|
23254
|
+
/* @__PURE__ */ e(go, { data: l, onSelected: u, selectedId: a })
|
|
23251
23255
|
] }) })
|
|
23252
23256
|
] });
|
|
23253
23257
|
}, U3 = C(S3), F3 = ({ onPrimaryCtaClick: A, sx: t = {} }) => {
|
|
@@ -23392,7 +23396,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
23392
23396
|
]
|
|
23393
23397
|
}
|
|
23394
23398
|
);
|
|
23395
|
-
},
|
|
23399
|
+
}, Xo = C(K3), Z3 = (A) => [
|
|
23396
23400
|
A.palette.chartMono.chartMono5,
|
|
23397
23401
|
A.palette.chartMono.chartMono4,
|
|
23398
23402
|
A.palette.chartMono.chartMono3,
|
|
@@ -23409,10 +23413,10 @@ const si = h.createContext(null), u3 = ({
|
|
|
23409
23413
|
).finally();
|
|
23410
23414
|
}, [I, o]);
|
|
23411
23415
|
const y = h.useMemo(
|
|
23412
|
-
() =>
|
|
23416
|
+
() => na(t, i),
|
|
23413
23417
|
[t, i]
|
|
23414
23418
|
), x = h.useMemo(
|
|
23415
|
-
() =>
|
|
23419
|
+
() => ra(t, i, Z3(A)),
|
|
23416
23420
|
[t, i]
|
|
23417
23421
|
), w = h.useMemo(
|
|
23418
23422
|
() => d.find((O) => O.guid === u),
|
|
@@ -23473,7 +23477,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
23473
23477
|
)
|
|
23474
23478
|
] }),
|
|
23475
23479
|
l === 0 && /* @__PURE__ */ e(
|
|
23476
|
-
|
|
23480
|
+
Xo,
|
|
23477
23481
|
{
|
|
23478
23482
|
data: y,
|
|
23479
23483
|
onSelected: m,
|
|
@@ -23483,7 +23487,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
23483
23487
|
}
|
|
23484
23488
|
),
|
|
23485
23489
|
l === 1 && /* @__PURE__ */ e(
|
|
23486
|
-
|
|
23490
|
+
Xo,
|
|
23487
23491
|
{
|
|
23488
23492
|
data: x,
|
|
23489
23493
|
onSelected: m,
|
|
@@ -23709,7 +23713,7 @@ const i7 = (A) => A.reduce((i, n) => {
|
|
|
23709
23713
|
view_transactions: "View Transactions"
|
|
23710
23714
|
}, l7 = ({ onBackClick: A, sx: t }) => {
|
|
23711
23715
|
const i = oe(), { onEvent: n } = K(), { isDesktop: r, isTablet: o, isMobile: I } = zA(), { accounts: a } = CA(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: d, getCategoryName: f } = qA(), { sortedTransactions: E } = PA(), { isInitialized: l, selectedAccounts: v, setSelectedAccounts: u } = pA(), { trends: H } = X(), P = i.palette.mode === "dark", [p, y] = h.useState(!1), [x, w] = h.useState(!1), [D, m] = h.useState("Chart"), [j, O] = h.useState(""), [T, tA] = h.useState({
|
|
23712
|
-
start:
|
|
23716
|
+
start: ur(BA(Ne(/* @__PURE__ */ new Date(), 6)), 1),
|
|
23713
23717
|
end: BA(/* @__PURE__ */ new Date())
|
|
23714
23718
|
});
|
|
23715
23719
|
h.useEffect(() => {
|
|
@@ -23748,7 +23752,7 @@ const i7 = (A) => A.reduce((i, n) => {
|
|
|
23748
23752
|
}, [T, I]), oA = (bA, JA) => {
|
|
23749
23753
|
m(JA ?? D), n(V.TRENDS_CLICK_TOGGLE);
|
|
23750
23754
|
}, sA = (bA) => {
|
|
23751
|
-
const JA =
|
|
23755
|
+
const JA = ur(bA?.[0], 1), Ke = bA?.[1], Yt = Ms(Ke, JA);
|
|
23752
23756
|
tA({ start: JA, end: Ke }), n(V.TRENDS_CLICK_DATE, {
|
|
23753
23757
|
time_period: Yt + "M"
|
|
23754
23758
|
});
|
|
@@ -23810,14 +23814,14 @@ const i7 = (A) => A.reduce((i, n) => {
|
|
|
23810
23814
|
/* @__PURE__ */ e(R, { variant: r ? "Body" : "Small", children: iA })
|
|
23811
23815
|
] }),
|
|
23812
23816
|
/* @__PURE__ */ e(
|
|
23813
|
-
|
|
23817
|
+
Do,
|
|
23814
23818
|
{
|
|
23815
23819
|
exclusive: !0,
|
|
23816
23820
|
onChange: oA,
|
|
23817
23821
|
orientation: "horizontal",
|
|
23818
23822
|
value: D,
|
|
23819
23823
|
children: ["Chart", "Table"].map((bA) => /* @__PURE__ */ e(
|
|
23820
|
-
|
|
23824
|
+
Xn,
|
|
23821
23825
|
{
|
|
23822
23826
|
sx: {
|
|
23823
23827
|
fontSize: 15,
|
|
@@ -23898,7 +23902,7 @@ const i7 = (A) => A.reduce((i, n) => {
|
|
|
23898
23902
|
}, KP = C(l7), v7 = () => {
|
|
23899
23903
|
const A = oe(), { monthlyCategoryTotals: t } = qA(), { trends: i } = X(), n = Rh(t);
|
|
23900
23904
|
return /* @__PURE__ */ e(
|
|
23901
|
-
|
|
23905
|
+
Nn,
|
|
23902
23906
|
{
|
|
23903
23907
|
baseline: "min",
|
|
23904
23908
|
colors: [A.palette.primary.main],
|
|
@@ -23931,26 +23935,26 @@ const i7 = (A) => A.reduce((i, n) => {
|
|
|
23931
23935
|
}, ZP = C(u7);
|
|
23932
23936
|
export {
|
|
23933
23937
|
V as ANALYTICS_EVENTS,
|
|
23934
|
-
|
|
23935
|
-
|
|
23936
|
-
|
|
23937
|
-
|
|
23938
|
-
|
|
23938
|
+
Eo as AccountApi,
|
|
23939
|
+
UI as AccountDetailsContent,
|
|
23940
|
+
Ar as AccountDetailsHeader,
|
|
23941
|
+
_o as AccountFilter,
|
|
23942
|
+
Uo as AccountIcon,
|
|
23939
23943
|
Bs as AccountIconVariants,
|
|
23940
23944
|
mR as AccountStore,
|
|
23941
23945
|
Ys as AccountSubType,
|
|
23942
23946
|
_ as AccountType,
|
|
23943
|
-
|
|
23947
|
+
Ln as AccountTypeName,
|
|
23944
23948
|
NP as AccountsMiniWidget,
|
|
23945
23949
|
MP as AccountsWidget,
|
|
23946
|
-
|
|
23950
|
+
wI as ActivitySettings,
|
|
23947
23951
|
SA as ActivityStatus,
|
|
23948
23952
|
TA as ActivityType,
|
|
23949
23953
|
Nd as AddAccountModal,
|
|
23950
23954
|
rc as AnalyticsApi,
|
|
23951
23955
|
Q as ApiEndpoints,
|
|
23952
23956
|
R3 as AppStore,
|
|
23953
|
-
|
|
23957
|
+
Cr as BannerApi,
|
|
23954
23958
|
RP as BarChart,
|
|
23955
23959
|
Lt as BeatApi,
|
|
23956
23960
|
x3 as BeatCard,
|
|
@@ -23958,9 +23962,9 @@ export {
|
|
|
23958
23962
|
YP as BubbleBudgetsMiniWidget,
|
|
23959
23963
|
VP as BubbleBudgetsWidget,
|
|
23960
23964
|
Cc as Calendar,
|
|
23961
|
-
|
|
23965
|
+
$o as CalendarSelectionTypes,
|
|
23962
23966
|
q3 as CarouselHeader,
|
|
23963
|
-
|
|
23967
|
+
Ao as CashflowApi,
|
|
23964
23968
|
zP as CashflowMiniWidget,
|
|
23965
23969
|
eh as CashflowOnboarding,
|
|
23966
23970
|
nh as CashflowStore,
|
|
@@ -23970,12 +23974,12 @@ export {
|
|
|
23970
23974
|
qi as CategoryGuidToName,
|
|
23971
23975
|
g as CategoryGuids,
|
|
23972
23976
|
Us as CategoryIcon,
|
|
23973
|
-
|
|
23977
|
+
dI as CategoryRow,
|
|
23974
23978
|
rd as CategorySelector,
|
|
23975
23979
|
Vi as CategorySelectorDrawer,
|
|
23976
23980
|
cd as CategoryStore,
|
|
23977
23981
|
C3 as ChartFilledIcon,
|
|
23978
|
-
|
|
23982
|
+
aI as ConnectCard,
|
|
23979
23983
|
Ii as ConnectDrawer,
|
|
23980
23984
|
TP as ConnectMiniWidget,
|
|
23981
23985
|
bt as ConnectionStatus,
|
|
@@ -23984,13 +23988,13 @@ export {
|
|
|
23984
23988
|
qe as CurrencyInput,
|
|
23985
23989
|
OA as CurrencyText,
|
|
23986
23990
|
AA as DATE_FORMATS_INTL,
|
|
23987
|
-
|
|
23988
|
-
|
|
23991
|
+
Fo as DEFAULT_DONUT_SIZE,
|
|
23992
|
+
Wo as DEFAULT_STROKE_WIDTH,
|
|
23989
23993
|
BP as Dashboard,
|
|
23990
|
-
|
|
23994
|
+
gn as DashboardLocation,
|
|
23991
23995
|
zi as DataRow,
|
|
23992
|
-
|
|
23993
|
-
|
|
23996
|
+
jr as DateRangeSelector,
|
|
23997
|
+
OI as DebtsChart,
|
|
23994
23998
|
ol as DebtsStore,
|
|
23995
23999
|
Zh as DebtsTable,
|
|
23996
24000
|
DP as DebtsWidget,
|
|
@@ -23998,7 +24002,7 @@ export {
|
|
|
23998
24002
|
XA as Dialog,
|
|
23999
24003
|
yc as Donut,
|
|
24000
24004
|
IA as Drawer,
|
|
24001
|
-
|
|
24005
|
+
Bo as ErrorStatuses,
|
|
24002
24006
|
Pf as ExpenseStatus,
|
|
24003
24007
|
Ae as Fetch,
|
|
24004
24008
|
de as FieldType,
|
|
@@ -24007,31 +24011,31 @@ export {
|
|
|
24007
24011
|
gt as GlobalDataContext,
|
|
24008
24012
|
uP as GlobalDataProvider,
|
|
24009
24013
|
GP as GlobalStore,
|
|
24010
|
-
|
|
24014
|
+
to as GoalApi,
|
|
24011
24015
|
wl as GoalStore,
|
|
24012
|
-
|
|
24016
|
+
Pn as GoalType,
|
|
24013
24017
|
jP as GoalsWidget,
|
|
24014
24018
|
bv as HelpContent,
|
|
24015
24019
|
Hv as HelpList,
|
|
24016
24020
|
Gv as HelpWidget,
|
|
24017
|
-
|
|
24021
|
+
Qn as INCOME_ACCOUNT_TYPES,
|
|
24018
24022
|
ft as IconBacking,
|
|
24019
24023
|
Ci as InformationTooltip,
|
|
24020
24024
|
FP as InsightsMicroWidget,
|
|
24021
24025
|
u3 as InsightsMicroWidgetDataProvider,
|
|
24022
24026
|
Ws as IterationItemTypes,
|
|
24023
24027
|
fP as LOADING_STATUS,
|
|
24024
|
-
|
|
24028
|
+
Nn as LineChart,
|
|
24025
24029
|
Ge as ListItemAction,
|
|
24026
24030
|
Kc as ListItemWrapper,
|
|
24027
24031
|
ee as Loader,
|
|
24028
24032
|
lP as LocalizedCopyApi,
|
|
24029
|
-
|
|
24033
|
+
Jn as ManageIncome,
|
|
24030
24034
|
ct as MemberConnectionStatus,
|
|
24031
24035
|
mP as MerchantLookup,
|
|
24032
24036
|
Ql as MerchantStore,
|
|
24033
24037
|
he as MetaType,
|
|
24034
|
-
|
|
24038
|
+
Vo as MfaStatuses,
|
|
24035
24039
|
O3 as MicroBeatCarousel,
|
|
24036
24040
|
ki as MicroInsightCard,
|
|
24037
24041
|
pt as MiniWidgetContainer,
|
|
@@ -24043,20 +24047,20 @@ export {
|
|
|
24043
24047
|
_l as NetWorthSummary,
|
|
24044
24048
|
OP as NetWorthWidget,
|
|
24045
24049
|
SP as NoRelevantInsightsCard,
|
|
24046
|
-
|
|
24047
|
-
|
|
24050
|
+
So as NonConnectedStatuses,
|
|
24051
|
+
gr as NotificationApi,
|
|
24048
24052
|
QP as NotificationList,
|
|
24049
24053
|
iR as NotificationSettings,
|
|
24050
24054
|
o9 as NotificationStore,
|
|
24051
24055
|
LA as NotificationType,
|
|
24052
24056
|
Ts as ORDINAL_DATE_FORMAT,
|
|
24053
24057
|
IP as ORDINAL_MONTH_DAY_YEAR_FORMAT,
|
|
24054
|
-
|
|
24055
|
-
|
|
24058
|
+
qn as PAYMENT_ACCOUNT_TYPES,
|
|
24059
|
+
Pr as PaymentCategories,
|
|
24056
24060
|
Fs as PlanTypes,
|
|
24057
24061
|
Vs as ProcessingStatuses,
|
|
24058
24062
|
Vv as ProfileTab,
|
|
24059
|
-
|
|
24063
|
+
Yo as PropertyType,
|
|
24060
24064
|
sP as PropertyTypeName,
|
|
24061
24065
|
cP as RECURRENCE_COPY,
|
|
24062
24066
|
U as RecurrenceTypes,
|
|
@@ -24064,16 +24068,16 @@ export {
|
|
|
24064
24068
|
wE as RecurringActivityStore,
|
|
24065
24069
|
pP as RecurringActivityWidget,
|
|
24066
24070
|
HP as ResponsiveButton,
|
|
24067
|
-
|
|
24071
|
+
Gn as SPENDING_ACCOUNT_TYPES,
|
|
24068
24072
|
bf as ScheduledPaymentTypes,
|
|
24069
|
-
|
|
24073
|
+
Xr as ScheduledPaymentsApi,
|
|
24070
24074
|
Hf as ScreenSize,
|
|
24071
24075
|
Ti as SearchBox,
|
|
24072
|
-
|
|
24073
|
-
|
|
24076
|
+
Lr as SelectionBox,
|
|
24077
|
+
so as SettingsApi,
|
|
24074
24078
|
l9 as SettingsStore,
|
|
24075
24079
|
qP as SettingsWidget,
|
|
24076
|
-
|
|
24080
|
+
oI as SingleSegmentDonut,
|
|
24077
24081
|
ks as Sizes,
|
|
24078
24082
|
WP as SpendingMiniWidget,
|
|
24079
24083
|
kP as SpendingWidget,
|
|
@@ -24083,44 +24087,44 @@ export {
|
|
|
24083
24087
|
Bt as TOUCH_TARGET,
|
|
24084
24088
|
S as TRANSACTION_EVENTS,
|
|
24085
24089
|
Qt as TabContentContainer,
|
|
24086
|
-
|
|
24090
|
+
vn as ToggleButtonListItem,
|
|
24087
24091
|
jt as ToggleListItem,
|
|
24088
24092
|
Wt as TopActions,
|
|
24089
24093
|
B as TrackType,
|
|
24090
24094
|
gi as TransactionApi,
|
|
24091
24095
|
Tt as TransactionDetails,
|
|
24092
24096
|
Rt as TransactionList,
|
|
24093
|
-
|
|
24097
|
+
Sn as TransactionRow,
|
|
24094
24098
|
$v as TransactionRulesTab,
|
|
24095
|
-
|
|
24099
|
+
Bn as TransactionStatus,
|
|
24096
24100
|
Cf as TransactionStore,
|
|
24097
24101
|
Vf as TransactionTable,
|
|
24098
24102
|
se as TransactionType,
|
|
24099
24103
|
XP as TransactionWidget,
|
|
24100
24104
|
KP as TrendsFullWidget,
|
|
24101
24105
|
ZP as TrendsMiniWidget,
|
|
24102
|
-
|
|
24106
|
+
pr as UserApi,
|
|
24103
24107
|
nR as UserStore,
|
|
24104
24108
|
uf as UserVerification,
|
|
24105
24109
|
Y3 as ViewMoreMicroCard,
|
|
24106
|
-
|
|
24110
|
+
wr as WidgetApi,
|
|
24107
24111
|
Le as WidgetContainer,
|
|
24108
|
-
|
|
24109
|
-
|
|
24112
|
+
AI as WidgetContainerContext,
|
|
24113
|
+
eI as WidgetContainerProvider,
|
|
24110
24114
|
UP as ZeroStateCard,
|
|
24111
|
-
|
|
24115
|
+
_I as ZeroStateIcon,
|
|
24112
24116
|
Ns as analyticsSession,
|
|
24113
24117
|
z as buildDynamicCopy,
|
|
24114
24118
|
hP as buildPluralCopy,
|
|
24115
|
-
|
|
24119
|
+
fI as exportTransactionsToCSV,
|
|
24116
24120
|
M as formatCurrency,
|
|
24117
24121
|
nA as formatDate,
|
|
24118
|
-
|
|
24122
|
+
ko as formatOrdinal,
|
|
24119
24123
|
Gi as formatPercentage,
|
|
24120
|
-
|
|
24121
|
-
|
|
24124
|
+
Zo as fromTimestampToMonthYear,
|
|
24125
|
+
xI as getAccountBalanceDetails,
|
|
24122
24126
|
LE as getAccountDetailFields,
|
|
24123
|
-
|
|
24127
|
+
Hr as getCategory,
|
|
24124
24128
|
dP as getCategoryTotalsByParent,
|
|
24125
24129
|
_s as getCurrencyCodes,
|
|
24126
24130
|
Ks as getDetailedCategory,
|
|
@@ -24128,12 +24132,12 @@ export {
|
|
|
24128
24132
|
ht as getLocale,
|
|
24129
24133
|
LP as getNotificationDetailRoute,
|
|
24130
24134
|
EP as isIncome,
|
|
24131
|
-
|
|
24135
|
+
ln as isValidNumber,
|
|
24132
24136
|
CA as useAccountStore,
|
|
24133
24137
|
Xe as useAccountUiStore,
|
|
24134
|
-
|
|
24138
|
+
tI as useAppConfig,
|
|
24135
24139
|
te as useBudgetsStore,
|
|
24136
|
-
|
|
24140
|
+
Tn as useCashflowStore,
|
|
24137
24141
|
qA as useCategoryStore,
|
|
24138
24142
|
ot as useCategoryUiStore,
|
|
24139
24143
|
Ic as useCombineEvents,
|
|
@@ -24145,10 +24149,10 @@ export {
|
|
|
24145
24149
|
oi as useGlobalStore,
|
|
24146
24150
|
pA as useGlobalUiStore,
|
|
24147
24151
|
FA as useGoalStore,
|
|
24148
|
-
|
|
24152
|
+
Yn as useHelpStore,
|
|
24149
24153
|
Oc as useMerchantStore,
|
|
24150
24154
|
Lc as useNetWorthStore,
|
|
24151
|
-
|
|
24155
|
+
nI as useNotificationStore,
|
|
24152
24156
|
PP as usePageView,
|
|
24153
24157
|
vP as usePrevious,
|
|
24154
24158
|
ZA as useRecurringActivityStore,
|