@mx-cartographer/experiences 5.3.1 → 5.3.2-alpha.mega2
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/CHANGELOG.md +4 -0
- package/dist/index.es.js +700 -694
- package/dist/index.es.js.map +1 -1
- package/dist/transactions/stores/TransactionStore.d.ts +1 -0
- 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 P 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((b) => !!b);
|
|
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, b = 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), b = 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), b = 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), j = (O) => c === void 0 || O === c ? i : `${i}80`, m = () => /* @__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(m, {}),
|
|
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(P, { alignItems: "center", direction: "column", gap: "8", justifyContent: "center", mb: 4, children: [
|
|
2185
2185
|
/* @__PURE__ */ e(
|
|
@@ -2212,7 +2212,7 @@ const Cc = ({
|
|
|
2212
2212
|
cursorPosition: n,
|
|
2213
2213
|
chartContainerRef: r
|
|
2214
2214
|
}) => {
|
|
2215
|
-
const o = oe(), I =
|
|
2215
|
+
const o = oe(), I = 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: j.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: b } = K(), { isDesktop: p, isLargeDesktop: y, isMobile: x, isTablet: w } = zA(), { displayedDateRange: D, selectedAccountGuids: j, setSelectedAccountGuids: m } = pA(), { common: O } = X(), T = () => {
|
|
3157
3157
|
c && (c(), b(V.WIDGET_BACK_CLICK));
|
|
3158
3158
|
}, tA = {
|
|
3159
3159
|
accountFilterOptionsCopy: {
|
|
@@ -3210,7 +3210,7 @@ const pt = ({
|
|
|
3210
3210
|
{
|
|
3211
3211
|
action: /* @__PURE__ */ s(P, { 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(P, { 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(P, { 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(P, { 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: {
|
|
@@ -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 () => {
|
|
@@ -4982,6 +4982,11 @@ class Cf {
|
|
|
4982
4982
|
dateRange: { start: yA(i), end: yA(t) }
|
|
4983
4983
|
});
|
|
4984
4984
|
};
|
|
4985
|
+
modifyTransactionByAccountGuid = (t, i) => {
|
|
4986
|
+
this.transactions = this.transactions.map(
|
|
4987
|
+
(n) => n.account_guid === t ? { ...n, ...i } : n
|
|
4988
|
+
);
|
|
4989
|
+
};
|
|
4985
4990
|
removeTag = async (t) => {
|
|
4986
4991
|
await this.api.removeTag(t), await this.loadTags();
|
|
4987
4992
|
};
|
|
@@ -5067,7 +5072,7 @@ const Pe = () => {
|
|
|
5067
5072
|
if (!h.useContext(gt))
|
|
5068
5073
|
throw new Error("useTransactionsUiStore() must be used within the GlobalDataContext");
|
|
5069
5074
|
return PA().uiStore;
|
|
5070
|
-
},
|
|
5075
|
+
}, fI = (A, t) => {
|
|
5071
5076
|
const i = Xf(gf(A, t)), n = encodeURIComponent(i), r = document.createElement("a");
|
|
5072
5077
|
r.href = `data:attachment/csv;charset=utf-8,${n}`, r.download = "transactions.csv", document.body.appendChild(r), r.click(), document.body.removeChild(r);
|
|
5073
5078
|
}, gf = (A, t) => A.map((i) => ({
|
|
@@ -5141,7 +5146,7 @@ const Pe = () => {
|
|
|
5141
5146
|
]
|
|
5142
5147
|
}
|
|
5143
5148
|
);
|
|
5144
|
-
},
|
|
5149
|
+
}, Sn = C(yf), Un = ({
|
|
5145
5150
|
bgcolor: A = "background.default",
|
|
5146
5151
|
children: t
|
|
5147
5152
|
}) => /* @__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 +5156,13 @@ const Pe = () => {
|
|
|
5151
5156
|
/* @__PURE__ */ e(R, { bold: !0, color: "secondary", variant: "Small", children: n.zero_state_no_transactions }),
|
|
5152
5157
|
t && /* @__PURE__ */ e(R, { color: "secondary", variant: "XSmall", children: n.zero_state_there_are_no_transactions })
|
|
5153
5158
|
] });
|
|
5154
|
-
}, Df = C(xf),
|
|
5159
|
+
}, Df = C(xf), Tr = (A, t) => {
|
|
5155
5160
|
const i = yA(t[A].date), n = yA(t[A - 1]?.date);
|
|
5156
5161
|
return !Ee(i, n);
|
|
5157
5162
|
}, jf = (A, t) => {
|
|
5158
5163
|
const i = yA(t[A].date), n = yA(t[A + 1]?.date);
|
|
5159
5164
|
return Ee(i, n);
|
|
5160
|
-
},
|
|
5165
|
+
}, Yr = 65, Vr = 34, mf = ({
|
|
5161
5166
|
bgcolor: A,
|
|
5162
5167
|
height: t = "calc(100dvh - 36px)",
|
|
5163
5168
|
loader: i = /* @__PURE__ */ e(ee, { label: "Loading", size: 40 }),
|
|
@@ -5178,10 +5183,10 @@ const Pe = () => {
|
|
|
5178
5183
|
account_guid: x?.account_guid,
|
|
5179
5184
|
transaction_guid: y
|
|
5180
5185
|
}), n?.(y);
|
|
5181
|
-
}, b = h.useRef(null), p =
|
|
5186
|
+
}, b = h.useRef(null), p = Oo({
|
|
5182
5187
|
count: E.length,
|
|
5183
5188
|
getScrollElement: () => b.current,
|
|
5184
|
-
estimateSize: (y) =>
|
|
5189
|
+
estimateSize: (y) => Yr + (Tr(y, E) ? Vr : 0),
|
|
5185
5190
|
overscan: 5
|
|
5186
5191
|
});
|
|
5187
5192
|
return h.useEffect(() => p.measure(), [E]), h.useEffect(() => l(r), [r]), /* @__PURE__ */ e(rA, { children: /* @__PURE__ */ e(L, { height: t, overflow: "auto", ref: b, width: a, children: /* @__PURE__ */ s(
|
|
@@ -5197,7 +5202,7 @@ const Pe = () => {
|
|
|
5197
5202
|
(d || o) && i,
|
|
5198
5203
|
!d && !o && p.getVirtualItems().length === 0 && c,
|
|
5199
5204
|
!d && !o && p.getVirtualItems().length > 0 && p.getVirtualItems().map((y) => {
|
|
5200
|
-
const x = E[y.index], w =
|
|
5205
|
+
const x = E[y.index], w = Tr(y.index, E), D = jf(y.index, E), j = Yr + (w ? Vr : 0);
|
|
5201
5206
|
return /* @__PURE__ */ s(
|
|
5202
5207
|
L,
|
|
5203
5208
|
{
|
|
@@ -5208,8 +5213,8 @@ const Pe = () => {
|
|
|
5208
5213
|
width: "100%"
|
|
5209
5214
|
},
|
|
5210
5215
|
children: [
|
|
5211
|
-
w && /* @__PURE__ */ e(
|
|
5212
|
-
/* @__PURE__ */ e(
|
|
5216
|
+
w && /* @__PURE__ */ e(Un, { bgcolor: A, children: Mi(x.date) }),
|
|
5217
|
+
/* @__PURE__ */ e(Sn, { onClick: H, transaction: x }),
|
|
5213
5218
|
/* @__PURE__ */ e(G, { sx: { ml: D ? 24 : 0 } })
|
|
5214
5219
|
]
|
|
5215
5220
|
},
|
|
@@ -5425,7 +5430,7 @@ const Bf = ({
|
|
|
5425
5430
|
onPrimaryAction: () => {
|
|
5426
5431
|
c(!1), i(o);
|
|
5427
5432
|
},
|
|
5428
|
-
children: /* @__PURE__ */ e(
|
|
5433
|
+
children: /* @__PURE__ */ e(jo, { children: E ? /* @__PURE__ */ e(R, { children: f }) : /* @__PURE__ */ e(
|
|
5429
5434
|
dt,
|
|
5430
5435
|
{
|
|
5431
5436
|
"aria-label": r === "edit" ? a.edit_subcategory_aria : a.add_subcategory_aria,
|
|
@@ -5438,7 +5443,7 @@ const Bf = ({
|
|
|
5438
5443
|
) })
|
|
5439
5444
|
}
|
|
5440
5445
|
);
|
|
5441
|
-
},
|
|
5446
|
+
}, Fn = C(Bf), Sf = ({ parentCategory: A }) => {
|
|
5442
5447
|
const [t, i] = h.useState(!1), { addCategory: n } = qA(), { categories: r } = X(), { onEvent: o } = K(), { setShouldDisableDrawerScroll: I } = ot(), a = async (f) => {
|
|
5443
5448
|
await n(f.trim(), A.guid), o(je.ON_SUBCATEGORY_ADDED), i(!1);
|
|
5444
5449
|
}, c = async () => {
|
|
@@ -5455,7 +5460,7 @@ const Bf = ({
|
|
|
5455
5460
|
}
|
|
5456
5461
|
) }),
|
|
5457
5462
|
t && /* @__PURE__ */ e(
|
|
5458
|
-
|
|
5463
|
+
Fn,
|
|
5459
5464
|
{
|
|
5460
5465
|
isOpen: t,
|
|
5461
5466
|
onClose: d,
|
|
@@ -5475,7 +5480,7 @@ const Bf = ({
|
|
|
5475
5480
|
A(!1), r(je.ON_SUBCATEGORY_EDIT_CANCEL_CLICK);
|
|
5476
5481
|
};
|
|
5477
5482
|
return /* @__PURE__ */ e(
|
|
5478
|
-
|
|
5483
|
+
Fn,
|
|
5479
5484
|
{
|
|
5480
5485
|
categoryName: t.name,
|
|
5481
5486
|
isOpen: i,
|
|
@@ -5496,7 +5501,7 @@ const Bf = ({
|
|
|
5496
5501
|
r(je.ON_SUBCATEGORY_DELETED), await o(n.guid), i(!1);
|
|
5497
5502
|
};
|
|
5498
5503
|
return /* @__PURE__ */ e(
|
|
5499
|
-
|
|
5504
|
+
Fn,
|
|
5500
5505
|
{
|
|
5501
5506
|
categoryName: A.name,
|
|
5502
5507
|
isOpen: t,
|
|
@@ -5645,7 +5650,7 @@ const Bf = ({
|
|
|
5645
5650
|
/* @__PURE__ */ e(G, { sx: { ml: 58 } }),
|
|
5646
5651
|
/* @__PURE__ */ e($f, { categories: t, parentCategory: A })
|
|
5647
5652
|
] });
|
|
5648
|
-
},
|
|
5653
|
+
}, dI = C(Ad), ed = () => {
|
|
5649
5654
|
const { categories: A } = qA(), { searchValue: t } = ot(), { categories: i } = X(), r = ((o, I = "") => o.reduce((a, c) => {
|
|
5650
5655
|
if (c.parent_guid === null) {
|
|
5651
5656
|
const f = [
|
|
@@ -5664,7 +5669,7 @@ const Bf = ({
|
|
|
5664
5669
|
return a;
|
|
5665
5670
|
}, []))(A, t);
|
|
5666
5671
|
return /* @__PURE__ */ e(De, { className: "mx-cat-category-list", sx: { boxShadow: "none" }, children: /* @__PURE__ */ e(rA, { children: r.map((o) => /* @__PURE__ */ e(
|
|
5667
|
-
|
|
5672
|
+
dI,
|
|
5668
5673
|
{
|
|
5669
5674
|
category: o.category,
|
|
5670
5675
|
subCategories: o.children
|
|
@@ -5730,22 +5735,22 @@ const Bf = ({
|
|
|
5730
5735
|
children: /* @__PURE__ */ e(rd, { ...r })
|
|
5731
5736
|
}
|
|
5732
5737
|
);
|
|
5733
|
-
}, Vi = C(od), Id = 3,
|
|
5734
|
-
(n) =>
|
|
5738
|
+
}, Vi = C(od), Id = 3, Br = 12, ad = (A, t, i) => A.filter((n) => !n.parent_guid).map(
|
|
5739
|
+
(n) => EI(
|
|
5735
5740
|
n,
|
|
5736
5741
|
t,
|
|
5737
5742
|
i,
|
|
5738
5743
|
A.filter((r) => r.parent_guid === n.guid)
|
|
5739
5744
|
)
|
|
5740
|
-
),
|
|
5741
|
-
const r = A.guid, o = A.parent_guid || r, I = r === o, a = t.find((l) => l.category_guid === r)?.total || 0, c =
|
|
5745
|
+
), EI = (A, t, i, n = []) => {
|
|
5746
|
+
const r = A.guid, o = A.parent_guid || r, I = r === o, a = t.find((l) => l.category_guid === r)?.total || 0, c = Ur(
|
|
5742
5747
|
i.filter((l) => l.category_guid === r)
|
|
5743
|
-
), d =
|
|
5748
|
+
), d = Ur(
|
|
5744
5749
|
i.filter(
|
|
5745
5750
|
(l) => l.category_guid === r || l.top_level_category_guid === r
|
|
5746
5751
|
)
|
|
5747
5752
|
), f = n.map(
|
|
5748
|
-
(l) =>
|
|
5753
|
+
(l) => EI(l, t, i)
|
|
5749
5754
|
), E = f.reduce(
|
|
5750
5755
|
(l, v) => l + v.currentAmount,
|
|
5751
5756
|
a
|
|
@@ -5753,17 +5758,17 @@ const Bf = ({
|
|
|
5753
5758
|
return {
|
|
5754
5759
|
...A,
|
|
5755
5760
|
currentAmount: a,
|
|
5756
|
-
averageAmount:
|
|
5761
|
+
averageAmount: Sr(c),
|
|
5757
5762
|
color: st[o],
|
|
5758
5763
|
icon: Us[o],
|
|
5759
5764
|
isTransfer: o === g.TRANSFER,
|
|
5760
5765
|
monthlyAmounts: c,
|
|
5761
5766
|
subCategories: f,
|
|
5762
5767
|
totalAmount: I ? E : 0,
|
|
5763
|
-
totalAverageAmount:
|
|
5768
|
+
totalAverageAmount: Sr(d),
|
|
5764
5769
|
totalMonthlyAmounts: I ? d : []
|
|
5765
5770
|
};
|
|
5766
|
-
},
|
|
5771
|
+
}, Sr = (A, t = Id) => {
|
|
5767
5772
|
const i = t > history.length ? history.length : t;
|
|
5768
5773
|
return Math.ceil(
|
|
5769
5774
|
Math.max(
|
|
@@ -5771,10 +5776,10 @@ const Bf = ({
|
|
|
5771
5776
|
A.slice(-i).reduce((n, r) => n + r.amount, 0) / i
|
|
5772
5777
|
)
|
|
5773
5778
|
);
|
|
5774
|
-
},
|
|
5779
|
+
}, Ur = (A) => {
|
|
5775
5780
|
const t = [], i = fA();
|
|
5776
|
-
for (let n = 0; n <=
|
|
5777
|
-
const r = QA(Ne(i,
|
|
5781
|
+
for (let n = 0; n <= Br; n++) {
|
|
5782
|
+
const r = QA(Ne(i, Br - n)), I = A.filter(
|
|
5778
5783
|
(a) => a.year_month === Number(le(r, "yyyyMM"))
|
|
5779
5784
|
).reduce((a, c) => a + c.total, 0);
|
|
5780
5785
|
t.push({
|
|
@@ -5926,7 +5931,7 @@ class cd {
|
|
|
5926
5931
|
// TODO: Remove this after refactoring Trends components to use detailedCategories
|
|
5927
5932
|
getCategoryName = (t) => this.categories.find((n) => n.guid === t)?.name ?? qi[t];
|
|
5928
5933
|
}
|
|
5929
|
-
const
|
|
5934
|
+
const hI = ({ transaction: A }) => {
|
|
5930
5935
|
const { addOrUpdateTransactionRule: t, updateTransaction: i } = PA(), { categories: n } = qA(), { onEvent: r } = K(), { setShouldDisableDrawerScroll: o, updateManualTransaction: I } = Pe(), { transactions: a } = X(), [c, d] = h.useState(!1), [f, E] = h.useState(""), l = async (b) => {
|
|
5931
5936
|
await i({ ...A, category_guid: f }), b && await t(f, A), E(""), r(V.TRANSACTION_DETAILS_CLICK_CATEGORY, {
|
|
5932
5937
|
transaction_guid: A.guid
|
|
@@ -5963,7 +5968,7 @@ const EI = ({ transaction: A }) => {
|
|
|
5963
5968
|
categoryGuid: A.top_level_category_guid,
|
|
5964
5969
|
size: 24,
|
|
5965
5970
|
sx: { color: "text.primary" },
|
|
5966
|
-
variant:
|
|
5971
|
+
variant: wo.Transparent
|
|
5967
5972
|
}
|
|
5968
5973
|
) }) }),
|
|
5969
5974
|
/* @__PURE__ */ e(
|
|
@@ -6011,7 +6016,7 @@ const EI = ({ transaction: A }) => {
|
|
|
6011
6016
|
}
|
|
6012
6017
|
)
|
|
6013
6018
|
] });
|
|
6014
|
-
},
|
|
6019
|
+
}, lI = ({ transaction: A }) => {
|
|
6015
6020
|
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) => {
|
|
6016
6021
|
f(gA(v));
|
|
6017
6022
|
}, l = async () => {
|
|
@@ -6062,7 +6067,7 @@ const EI = ({ transaction: A }) => {
|
|
|
6062
6067
|
today: o.date_range_picker.today
|
|
6063
6068
|
},
|
|
6064
6069
|
onDateSelected: E,
|
|
6065
|
-
selectionType:
|
|
6070
|
+
selectionType: $o.Single
|
|
6066
6071
|
}
|
|
6067
6072
|
) })
|
|
6068
6073
|
}
|
|
@@ -6218,7 +6223,7 @@ const EI = ({ transaction: A }) => {
|
|
|
6218
6223
|
}
|
|
6219
6224
|
)
|
|
6220
6225
|
] });
|
|
6221
|
-
}, vd = C(ld),
|
|
6226
|
+
}, vd = C(ld), vI = ({ transaction: A }) => {
|
|
6222
6227
|
const { amount: t, description: i, isIncome: n, merchant_guid: r, payee: o, top_level_category_guid: I } = A;
|
|
6223
6228
|
return /* @__PURE__ */ s(P, { className: "mx-txn-amount-header", direction: "row", gap: 12, px: 16, py: 24, children: [
|
|
6224
6229
|
/* @__PURE__ */ e(
|
|
@@ -6287,7 +6292,7 @@ const EI = ({ transaction: A }) => {
|
|
|
6287
6292
|
onPrimaryAction: f,
|
|
6288
6293
|
title: o.memo_title,
|
|
6289
6294
|
children: [
|
|
6290
|
-
/* @__PURE__ */ e(
|
|
6295
|
+
/* @__PURE__ */ e(vI, { transaction: A }),
|
|
6291
6296
|
/* @__PURE__ */ e(
|
|
6292
6297
|
$A,
|
|
6293
6298
|
{
|
|
@@ -6307,7 +6312,7 @@ const EI = ({ transaction: A }) => {
|
|
|
6307
6312
|
}
|
|
6308
6313
|
)
|
|
6309
6314
|
] });
|
|
6310
|
-
},
|
|
6315
|
+
}, RI = C(Rd), ud = ({
|
|
6311
6316
|
index: A,
|
|
6312
6317
|
onDeleteRow: t,
|
|
6313
6318
|
onCategoryChanged: i,
|
|
@@ -6544,7 +6549,7 @@ const EI = ({ transaction: A }) => {
|
|
|
6544
6549
|
secondaryText: r.cancel_button,
|
|
6545
6550
|
title: o.split_transaction_title,
|
|
6546
6551
|
children: [
|
|
6547
|
-
/* @__PURE__ */ e(
|
|
6552
|
+
/* @__PURE__ */ e(vI, { transaction: A }),
|
|
6548
6553
|
/* @__PURE__ */ e(
|
|
6549
6554
|
Hd,
|
|
6550
6555
|
{
|
|
@@ -6834,7 +6839,7 @@ const EI = ({ transaction: A }) => {
|
|
|
6834
6839
|
}
|
|
6835
6840
|
)
|
|
6836
6841
|
] });
|
|
6837
|
-
},
|
|
6842
|
+
}, uI = C(md), Od = ({ transaction: A }) => {
|
|
6838
6843
|
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);
|
|
6839
6844
|
h.useEffect(() => {
|
|
6840
6845
|
o && (c(A.description), d?.current?.focus());
|
|
@@ -6890,7 +6895,7 @@ const EI = ({ transaction: A }) => {
|
|
|
6890
6895
|
n(V.TRANSACTION_DETAILS_CLICK_FLAG, { transaction_guid: A.guid }), await t({ ...A, is_flagged: !A.is_flagged });
|
|
6891
6896
|
};
|
|
6892
6897
|
return /* @__PURE__ */ e("div", { className: "mx-txn-transaction-flag", children: /* @__PURE__ */ e(
|
|
6893
|
-
|
|
6898
|
+
Xn,
|
|
6894
6899
|
{
|
|
6895
6900
|
"aria-label": i.flag_btn_aria,
|
|
6896
6901
|
"aria-pressed": A.is_flagged,
|
|
@@ -6960,10 +6965,10 @@ const EI = ({ transaction: A }) => {
|
|
|
6960
6965
|
)
|
|
6961
6966
|
] }),
|
|
6962
6967
|
/* @__PURE__ */ e(De, { square: !0, sx: { boxShadow: "none" }, children: /* @__PURE__ */ e(rA, { children: t.map((I, a) => /* @__PURE__ */ s(h.Fragment, { children: [
|
|
6963
|
-
I === Wt.Category && /* @__PURE__ */ e(
|
|
6964
|
-
I === Wt.Date && /* @__PURE__ */ e(
|
|
6965
|
-
I === Wt.Memo && /* @__PURE__ */ e(
|
|
6966
|
-
I === Wt.Tags && /* @__PURE__ */ e(
|
|
6968
|
+
I === Wt.Category && /* @__PURE__ */ e(hI, { transaction: i }),
|
|
6969
|
+
I === Wt.Date && /* @__PURE__ */ e(lI, { transaction: i }),
|
|
6970
|
+
I === Wt.Memo && /* @__PURE__ */ e(RI, { transaction: i }),
|
|
6971
|
+
I === Wt.Tags && /* @__PURE__ */ e(uI, { transaction: i }),
|
|
6967
6972
|
/* @__PURE__ */ e(G, { variant: a < t.length - 1 ? "inset" : "fullWidth" })
|
|
6968
6973
|
] }, I)) }) }),
|
|
6969
6974
|
/* @__PURE__ */ e(R, { bold: !0, mb: 8, ml: 26, mt: 16, variant: "Body", children: "Actions" }),
|
|
@@ -7040,7 +7045,7 @@ const EI = ({ transaction: A }) => {
|
|
|
7040
7045
|
),
|
|
7041
7046
|
/* @__PURE__ */ e(hs, { name: "TransactionType", onChange: v, row: !0, children: /* @__PURE__ */ s(P, { alignItems: "center", direction: "row", children: [
|
|
7042
7047
|
/* @__PURE__ */ e(
|
|
7043
|
-
|
|
7048
|
+
Lr,
|
|
7044
7049
|
{
|
|
7045
7050
|
checked: n.transaction_type === se.CREDIT,
|
|
7046
7051
|
label: i.manual_transaction_credit_button_label,
|
|
@@ -7050,7 +7055,7 @@ const EI = ({ transaction: A }) => {
|
|
|
7050
7055
|
}
|
|
7051
7056
|
),
|
|
7052
7057
|
/* @__PURE__ */ e(
|
|
7053
|
-
|
|
7058
|
+
Lr,
|
|
7054
7059
|
{
|
|
7055
7060
|
checked: n.transaction_type === se.DEBIT,
|
|
7056
7061
|
label: i.manual_transaction_debit_button_label,
|
|
@@ -7082,16 +7087,16 @@ const EI = ({ transaction: A }) => {
|
|
|
7082
7087
|
placeholder: i.manual_transaction_select,
|
|
7083
7088
|
select: !0,
|
|
7084
7089
|
sx: { bgcolor: "background.paper" },
|
|
7085
|
-
children: f.map((b) => /* @__PURE__ */ e(
|
|
7090
|
+
children: f.map((b) => /* @__PURE__ */ e(mn, { value: b.value, children: b.label }, b.value))
|
|
7086
7091
|
}
|
|
7087
7092
|
)
|
|
7088
7093
|
] }),
|
|
7089
7094
|
/* @__PURE__ */ e(G, { light: !0 }),
|
|
7090
7095
|
/* @__PURE__ */ s(L, { bgcolor: "background.paper", children: [
|
|
7091
|
-
/* @__PURE__ */ e(EI, { transaction: n }),
|
|
7092
7096
|
/* @__PURE__ */ e(hI, { transaction: n }),
|
|
7093
|
-
/* @__PURE__ */ e(
|
|
7094
|
-
/* @__PURE__ */ e(RI, { transaction: n })
|
|
7097
|
+
/* @__PURE__ */ e(lI, { transaction: n }),
|
|
7098
|
+
/* @__PURE__ */ e(RI, { transaction: n }),
|
|
7099
|
+
/* @__PURE__ */ e(uI, { transaction: n })
|
|
7095
7100
|
] })
|
|
7096
7101
|
] });
|
|
7097
7102
|
}, Yd = C(Td), Vd = ({ onClose: A, transaction: t }) => {
|
|
@@ -7135,7 +7140,7 @@ const EI = ({ transaction: A }) => {
|
|
|
7135
7140
|
}
|
|
7136
7141
|
)
|
|
7137
7142
|
] });
|
|
7138
|
-
}, Bd = C(Vd),
|
|
7143
|
+
}, Bd = C(Vd), Fr = 120, Sd = ({
|
|
7139
7144
|
onBackClick: A,
|
|
7140
7145
|
height: t = "100dvh",
|
|
7141
7146
|
showInsights: i = !1,
|
|
@@ -7167,10 +7172,11 @@ const EI = ({ transaction: A }) => {
|
|
|
7167
7172
|
h.useEffect(() => {
|
|
7168
7173
|
oA(r);
|
|
7169
7174
|
}, [r]), h.useEffect(() => {
|
|
7170
|
-
const kA = QA(fA()),
|
|
7171
|
-
iA(kA,
|
|
7172
|
-
dateRange: { start: kA, end:
|
|
7173
|
-
accounts: Y.map((
|
|
7175
|
+
const kA = QA(fA()), rr = BA(fA());
|
|
7176
|
+
iA(kA, rr), b({
|
|
7177
|
+
dateRange: { start: kA, end: rr },
|
|
7178
|
+
accounts: Y.map(($i) => $i.guid),
|
|
7179
|
+
custom: ($i) => !$i.accountIsClosed
|
|
7174
7180
|
}), Ke(!0), m(V.TRANSACTIONS_VIEW);
|
|
7175
7181
|
}, []), h.useEffect(() => {
|
|
7176
7182
|
JA && (b({
|
|
@@ -7192,10 +7198,10 @@ const EI = ({ transaction: A }) => {
|
|
|
7192
7198
|
searchTerm: kA
|
|
7193
7199
|
}), m(V.TRANSACTIONS_CLICK_SEARCH, { search_term: kA });
|
|
7194
7200
|
}, Ki = () => {
|
|
7195
|
-
|
|
7201
|
+
fI(y, p), m(V.TRANSACTIONS_CLICK_EXPORT);
|
|
7196
7202
|
}, Zi = () => {
|
|
7197
7203
|
Yt.length > 0 ? (l({
|
|
7198
|
-
...
|
|
7204
|
+
...cI,
|
|
7199
7205
|
date: gA(fA()),
|
|
7200
7206
|
user_guid: j?.user_guid || ""
|
|
7201
7207
|
}), uA(
|
|
@@ -7251,7 +7257,7 @@ const EI = ({ transaction: A }) => {
|
|
|
7251
7257
|
children: /* @__PURE__ */ e(
|
|
7252
7258
|
Vf,
|
|
7253
7259
|
{
|
|
7254
|
-
height: `calc(${t} - ${
|
|
7260
|
+
height: `calc(${t} - ${Fr}px)`,
|
|
7255
7261
|
onCategoryClick: (kA) => {
|
|
7256
7262
|
jA(kA), uA(
|
|
7257
7263
|
"category"
|
|
@@ -7278,7 +7284,7 @@ const EI = ({ transaction: A }) => {
|
|
|
7278
7284
|
children: /* @__PURE__ */ e(
|
|
7279
7285
|
Rt,
|
|
7280
7286
|
{
|
|
7281
|
-
height: `calc(${t} - ${
|
|
7287
|
+
height: `calc(${t} - ${Fr}px)`,
|
|
7282
7288
|
onClick: (kA) => {
|
|
7283
7289
|
jA(kA), uA(
|
|
7284
7290
|
"transaction"
|
|
@@ -7346,7 +7352,7 @@ const EI = ({ transaction: A }) => {
|
|
|
7346
7352
|
]
|
|
7347
7353
|
}
|
|
7348
7354
|
);
|
|
7349
|
-
}, XP = C(Sd),
|
|
7355
|
+
}, XP = C(Sd), PI = (A, t) => {
|
|
7350
7356
|
const i = {
|
|
7351
7357
|
...t,
|
|
7352
7358
|
repeat_day: null,
|
|
@@ -7373,9 +7379,9 @@ const EI = ({ transaction: A }) => {
|
|
|
7373
7379
|
break;
|
|
7374
7380
|
}
|
|
7375
7381
|
return i;
|
|
7376
|
-
},
|
|
7382
|
+
}, bI = (A, t) => ({
|
|
7377
7383
|
...t,
|
|
7378
|
-
occurs_on:
|
|
7384
|
+
occurs_on: wn(A.expectedDate, { representation: "date" }),
|
|
7379
7385
|
recurrence_type: A.recurrenceType
|
|
7380
7386
|
}), Ud = ({ activity: A }) => {
|
|
7381
7387
|
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 = [
|
|
@@ -7390,10 +7396,10 @@ const EI = ({ transaction: A }) => {
|
|
|
7390
7396
|
const H = { ...A, recurrenceType: u };
|
|
7391
7397
|
if (A.activityType === TA.Expense) {
|
|
7392
7398
|
const b = n.find((p) => p.guid === A.scheduledPaymentGuid);
|
|
7393
|
-
b && await o(
|
|
7399
|
+
b && await o(bI(H, b));
|
|
7394
7400
|
} else {
|
|
7395
7401
|
const b = i.find((p) => p.guid === A.sequenceGuid);
|
|
7396
|
-
b && await r(
|
|
7402
|
+
b && await r(PI(H, b));
|
|
7397
7403
|
}
|
|
7398
7404
|
c(!1);
|
|
7399
7405
|
}, l = () => {
|
|
@@ -7455,10 +7461,10 @@ const EI = ({ transaction: A }) => {
|
|
|
7455
7461
|
const u = { ...A, expectedDate: d };
|
|
7456
7462
|
if (A.activityType === TA.Expense) {
|
|
7457
7463
|
const H = n.find((b) => b.guid === A.scheduledPaymentGuid);
|
|
7458
|
-
H && await o(
|
|
7464
|
+
H && await o(bI(u, H));
|
|
7459
7465
|
} else {
|
|
7460
7466
|
const H = i.find((b) => b.guid === A.sequenceGuid);
|
|
7461
|
-
H && await r(
|
|
7467
|
+
H && await r(PI(u, H));
|
|
7462
7468
|
}
|
|
7463
7469
|
c(!1);
|
|
7464
7470
|
};
|
|
@@ -7608,8 +7614,8 @@ const EI = ({ transaction: A }) => {
|
|
|
7608
7614
|
gridRow: 1,
|
|
7609
7615
|
gridColumn: 1,
|
|
7610
7616
|
zIndex: 2
|
|
7611
|
-
}, Si = (A) => A ? { margin: "0 0 -6px -4px" } : void 0,
|
|
7612
|
-
let n = t &&
|
|
7617
|
+
}, 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 }) => {
|
|
7618
|
+
let n = t && Go(t) ? z(A.monthly_ordinal, le(t, "do")) : A.monthly;
|
|
7613
7619
|
switch (i) {
|
|
7614
7620
|
case U.EveryQuarter:
|
|
7615
7621
|
n = t ? z(A.quarterly_ordinal, le(t, "do")) : A.quarterly;
|
|
@@ -7653,14 +7659,14 @@ const EI = ({ transaction: A }) => {
|
|
|
7653
7659
|
}
|
|
7654
7660
|
}, _d = (A) => {
|
|
7655
7661
|
if (A.activityType === TA.Income)
|
|
7656
|
-
return /* @__PURE__ */ e(
|
|
7662
|
+
return /* @__PURE__ */ e(kn, {});
|
|
7657
7663
|
switch (A.activityStatus) {
|
|
7658
7664
|
case SA.Missed:
|
|
7659
|
-
return /* @__PURE__ */ e(kn, {});
|
|
7660
|
-
case SA.Paid:
|
|
7661
7665
|
return /* @__PURE__ */ e(Kn, {});
|
|
7666
|
+
case SA.Paid:
|
|
7667
|
+
return /* @__PURE__ */ e(Zn, {});
|
|
7662
7668
|
default:
|
|
7663
|
-
return /* @__PURE__ */ e(
|
|
7669
|
+
return /* @__PURE__ */ e(Wn, {});
|
|
7664
7670
|
}
|
|
7665
7671
|
}, $d = ({
|
|
7666
7672
|
activity: A,
|
|
@@ -7671,7 +7677,7 @@ const EI = ({ transaction: A }) => {
|
|
|
7671
7677
|
}) => {
|
|
7672
7678
|
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;
|
|
7673
7679
|
let E = r.paid?.toLowerCase();
|
|
7674
|
-
return d ? E = r.missed?.toLowerCase() : f && (E =
|
|
7680
|
+
return d ? E = r.missed?.toLowerCase() : f && (E = Wr(n ? {
|
|
7675
7681
|
copy: r,
|
|
7676
7682
|
date: A.expectedDate,
|
|
7677
7683
|
type: A.recurrenceType
|
|
@@ -7762,7 +7768,7 @@ const EI = ({ transaction: A }) => {
|
|
|
7762
7768
|
}
|
|
7763
7769
|
)
|
|
7764
7770
|
] });
|
|
7765
|
-
}, Xi = C($d),
|
|
7771
|
+
}, Xi = C($d), HI = (A, t, i) => {
|
|
7766
7772
|
const n = {
|
|
7767
7773
|
account_guid: A.account_guid,
|
|
7768
7774
|
amount: A.amount,
|
|
@@ -7796,7 +7802,7 @@ const EI = ({ transaction: A }) => {
|
|
|
7796
7802
|
break;
|
|
7797
7803
|
}
|
|
7798
7804
|
return n;
|
|
7799
|
-
},
|
|
7805
|
+
}, zI = (A, t) => ({
|
|
7800
7806
|
amount: t.amount,
|
|
7801
7807
|
cashflow_sequence_guid: A.guid,
|
|
7802
7808
|
category_guid: t.category_guid,
|
|
@@ -7812,7 +7818,7 @@ const EI = ({ transaction: A }) => {
|
|
|
7812
7818
|
description: A.feed_description || A.description,
|
|
7813
7819
|
is_tracked_by_user: !0,
|
|
7814
7820
|
merchant_guid: A.merchant_guid,
|
|
7815
|
-
occurs_on:
|
|
7821
|
+
occurs_on: wn(i, { representation: "date" }),
|
|
7816
7822
|
recurrence_day: 0,
|
|
7817
7823
|
recurrence_type: U.EveryMonth
|
|
7818
7824
|
};
|
|
@@ -7853,7 +7859,7 @@ const EI = ({ transaction: A }) => {
|
|
|
7853
7859
|
),
|
|
7854
7860
|
/* @__PURE__ */ e(Rt, { bgcolor: A, height: "auto", onClick: n, showLoader: !1 })
|
|
7855
7861
|
] });
|
|
7856
|
-
},
|
|
7862
|
+
}, CI = C(eE), tE = ({
|
|
7857
7863
|
bgcolor: A = "background.default",
|
|
7858
7864
|
frequency: t,
|
|
7859
7865
|
isIncome: i,
|
|
@@ -7873,25 +7879,25 @@ const EI = ({ transaction: A }) => {
|
|
|
7873
7879
|
];
|
|
7874
7880
|
h.useEffect(() => {
|
|
7875
7881
|
const f = yA(I.date);
|
|
7876
|
-
o(
|
|
7882
|
+
o(zr(f)), r(U.EveryMonth);
|
|
7877
7883
|
}, [I]);
|
|
7878
7884
|
const d = (f) => {
|
|
7879
7885
|
const E = yA(I.date);
|
|
7880
7886
|
switch (Number(f.target.value)) {
|
|
7881
7887
|
case U.EveryWeek:
|
|
7882
|
-
o(
|
|
7888
|
+
o(Mn(E));
|
|
7883
7889
|
break;
|
|
7884
7890
|
case U.EveryOtherWeek:
|
|
7885
7891
|
o(ec(E));
|
|
7886
7892
|
break;
|
|
7887
7893
|
case U.EveryMonth:
|
|
7888
|
-
o(
|
|
7894
|
+
o(zr(E));
|
|
7889
7895
|
break;
|
|
7890
7896
|
case U.EveryOtherMonth:
|
|
7891
7897
|
o(tc(E));
|
|
7892
7898
|
break;
|
|
7893
7899
|
case U.EveryQuarter:
|
|
7894
|
-
o(
|
|
7900
|
+
o(Ko(E));
|
|
7895
7901
|
break;
|
|
7896
7902
|
case U.EveryOtherQuarter:
|
|
7897
7903
|
o(ic(E));
|
|
@@ -7904,8 +7910,8 @@ const EI = ({ transaction: A }) => {
|
|
|
7904
7910
|
};
|
|
7905
7911
|
return /* @__PURE__ */ s(P, { bgcolor: A, gap: 24, height: "100%", children: [
|
|
7906
7912
|
/* @__PURE__ */ s(P, { children: [
|
|
7907
|
-
/* @__PURE__ */ e(
|
|
7908
|
-
/* @__PURE__ */ e(
|
|
7913
|
+
/* @__PURE__ */ e(Un, { bgcolor: A, children: Mi(I.date) }),
|
|
7914
|
+
/* @__PURE__ */ e(Sn, { transaction: I })
|
|
7909
7915
|
] }),
|
|
7910
7916
|
/* @__PURE__ */ e(R, { bold: !0, sx: { mx: 24 }, variant: "Body", children: i ? a.income_schedule : a.expense_schedule }),
|
|
7911
7917
|
/* @__PURE__ */ e(
|
|
@@ -7922,11 +7928,11 @@ const EI = ({ transaction: A }) => {
|
|
|
7922
7928
|
sx: { mx: 24 },
|
|
7923
7929
|
value: t,
|
|
7924
7930
|
variant: "outlined",
|
|
7925
|
-
children: c.map((f) => /* @__PURE__ */ e(
|
|
7931
|
+
children: c.map((f) => /* @__PURE__ */ e(mn, { value: f.id, children: f.label }, f.id))
|
|
7926
7932
|
}
|
|
7927
7933
|
),
|
|
7928
7934
|
/* @__PURE__ */ e(Mt, { dateAdapter: Ct, children: /* @__PURE__ */ e(
|
|
7929
|
-
|
|
7935
|
+
yn,
|
|
7930
7936
|
{
|
|
7931
7937
|
disablePast: !0,
|
|
7932
7938
|
label: i ? a.income_date_label : a.expense_date_label,
|
|
@@ -7936,7 +7942,7 @@ const EI = ({ transaction: A }) => {
|
|
|
7936
7942
|
}
|
|
7937
7943
|
) })
|
|
7938
7944
|
] });
|
|
7939
|
-
},
|
|
7945
|
+
}, 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 = ({
|
|
7940
7946
|
isIncome: A = !1,
|
|
7941
7947
|
label: t,
|
|
7942
7948
|
onAddActivity: i = () => null
|
|
@@ -7945,16 +7951,16 @@ const EI = ({ transaction: A }) => {
|
|
|
7945
7951
|
() => d.find((j) => j.guid === l),
|
|
7946
7952
|
[l]
|
|
7947
7953
|
), x = () => {
|
|
7948
|
-
E(!0), c(A ? { ...a, custom: ii } : { ...a, custom:
|
|
7954
|
+
E(!0), c(A ? { ...a, custom: ii } : { ...a, custom: bn });
|
|
7949
7955
|
}, w = async () => {
|
|
7950
7956
|
if (i(), !y || !b) {
|
|
7951
7957
|
D();
|
|
7952
7958
|
return;
|
|
7953
7959
|
}
|
|
7954
7960
|
if (A) {
|
|
7955
|
-
const j =
|
|
7961
|
+
const j = HI(y, u, b), m = await o(j);
|
|
7956
7962
|
if (m) {
|
|
7957
|
-
const O =
|
|
7963
|
+
const O = zI(m, y);
|
|
7958
7964
|
await r(O);
|
|
7959
7965
|
}
|
|
7960
7966
|
} else {
|
|
@@ -7982,13 +7988,13 @@ const EI = ({ transaction: A }) => {
|
|
|
7982
7988
|
onClose: () => E(!1),
|
|
7983
7989
|
title: t,
|
|
7984
7990
|
children: /* @__PURE__ */ e(
|
|
7985
|
-
|
|
7991
|
+
CI,
|
|
7986
7992
|
{
|
|
7987
7993
|
description: A ? n.add_income_description : n.add_expense_description,
|
|
7988
7994
|
onSearch: (j) => {
|
|
7989
7995
|
c({
|
|
7990
7996
|
...a,
|
|
7991
|
-
custom: (m) => A ? j ?
|
|
7997
|
+
custom: (m) => A ? j ? XI(m, j) : ii(m) : j ? iE(m, j) : bn(m)
|
|
7992
7998
|
});
|
|
7993
7999
|
},
|
|
7994
8000
|
onSelected: (j) => v(j)
|
|
@@ -8005,7 +8011,7 @@ const EI = ({ transaction: A }) => {
|
|
|
8005
8011
|
onPrimaryAction: w,
|
|
8006
8012
|
title: A ? n.income_details : n.expense_details,
|
|
8007
8013
|
children: y && /* @__PURE__ */ e(
|
|
8008
|
-
|
|
8014
|
+
gI,
|
|
8009
8015
|
{
|
|
8010
8016
|
frequency: u,
|
|
8011
8017
|
isIncome: A,
|
|
@@ -8018,14 +8024,14 @@ const EI = ({ transaction: A }) => {
|
|
|
8018
8024
|
}
|
|
8019
8025
|
)
|
|
8020
8026
|
] });
|
|
8021
|
-
},
|
|
8027
|
+
}, pI = C(nE), rE = (A, t, i) => t.map((n) => {
|
|
8022
8028
|
const r = i.find((I) => I.scheduled_payment_guid === n.guid), o = A.find((I) => I.guid === r?.account_guid);
|
|
8023
8029
|
return {
|
|
8024
8030
|
activityStatus: SA.Upcoming,
|
|
8025
8031
|
activityType: TA.Expense,
|
|
8026
8032
|
amount: n.amount,
|
|
8027
8033
|
categoryGuid: r?.category_guid,
|
|
8028
|
-
expectedDate:
|
|
8034
|
+
expectedDate: Lo(n.occurs_on),
|
|
8029
8035
|
name: n.description,
|
|
8030
8036
|
institution: o?.user_name,
|
|
8031
8037
|
institutionGuid: o?.institution_guid,
|
|
@@ -8047,12 +8053,12 @@ const EI = ({ transaction: A }) => {
|
|
|
8047
8053
|
/* @__PURE__ */ e(Xi, { activity: c, onActivityClick: I, showOrdinal: !0 }),
|
|
8048
8054
|
/* @__PURE__ */ e(G, { variant: d < o.length - 1 ? "inset" : "fullWidth" })
|
|
8049
8055
|
] }, c.scheduledPaymentGuid)),
|
|
8050
|
-
/* @__PURE__ */ e(
|
|
8056
|
+
/* @__PURE__ */ e(pI, { label: A.add_expense, onAddActivity: a })
|
|
8051
8057
|
] });
|
|
8052
|
-
}, IE = C(oE),
|
|
8058
|
+
}, IE = C(oE), Hn = (A) => {
|
|
8053
8059
|
let t = A.user_name || A.feed_name || "";
|
|
8054
8060
|
return A.account_number && (t = `${t} *${A.account_number}`), t;
|
|
8055
|
-
},
|
|
8061
|
+
}, 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) => {
|
|
8056
8062
|
const I = t.filter((f) => {
|
|
8057
8063
|
const E = r.find((v) => v.guid === f.cashflow_sequence_guid), l = o.find((v) => v.guid === f.transaction_guid);
|
|
8058
8064
|
return E?.end_date === null && l;
|
|
@@ -8067,10 +8073,10 @@ const EI = ({ transaction: A }) => {
|
|
|
8067
8073
|
expectedDate: Zt(f.expected_date),
|
|
8068
8074
|
occurredOnDate: f.occurred_on ? Zt(f.occurred_on) : void 0,
|
|
8069
8075
|
name: f.name,
|
|
8070
|
-
institution: v ?
|
|
8076
|
+
institution: v ? Hn(v) : void 0,
|
|
8071
8077
|
institutionGuid: v?.institution_guid,
|
|
8072
8078
|
merchantGuid: l?.merchant_guid || void 0,
|
|
8073
|
-
recurrenceType:
|
|
8079
|
+
recurrenceType: zn(E),
|
|
8074
8080
|
recurrenceDay: E?.repeat_day ? Number(E?.repeat_day) : void 0,
|
|
8075
8081
|
sequenceGuid: E?.guid,
|
|
8076
8082
|
transactionGuid: f.transaction_guid
|
|
@@ -8097,10 +8103,10 @@ const EI = ({ transaction: A }) => {
|
|
|
8097
8103
|
categoryGuid: f.category_guid,
|
|
8098
8104
|
expectedDate: Zt(f.expected_date),
|
|
8099
8105
|
name: f.name,
|
|
8100
|
-
institution: u ?
|
|
8106
|
+
institution: u ? Hn(u) : void 0,
|
|
8101
8107
|
institutionGuid: u?.institution_guid,
|
|
8102
8108
|
merchantGuid: v?.merchant_guid || void 0,
|
|
8103
|
-
recurrenceType:
|
|
8109
|
+
recurrenceType: zn(E),
|
|
8104
8110
|
recurrenceDay: E?.repeat_day ? Number(E?.repeat_day) : void 0,
|
|
8105
8111
|
sequenceGuid: E?.guid,
|
|
8106
8112
|
transactionGuid: void 0
|
|
@@ -8112,7 +8118,7 @@ const EI = ({ transaction: A }) => {
|
|
|
8112
8118
|
}, sE = (A, t, i) => {
|
|
8113
8119
|
const n = [], r = i.find((v) => v.scheduled_payment_guid === t.guid);
|
|
8114
8120
|
if (!r) return [];
|
|
8115
|
-
const o = A.find((v) => v.guid === r?.account_guid), I =
|
|
8121
|
+
const o = A.find((v) => v.guid === r?.account_guid), I = Lo(t.occurs_on), a = {
|
|
8116
8122
|
accountGuid: o?.guid,
|
|
8117
8123
|
activityStatus: SA.Upcoming,
|
|
8118
8124
|
activityType: TA.Expense,
|
|
@@ -8120,7 +8126,7 @@ const EI = ({ transaction: A }) => {
|
|
|
8120
8126
|
categoryGuid: r?.category_guid,
|
|
8121
8127
|
expectedDate: I,
|
|
8122
8128
|
name: t.description,
|
|
8123
|
-
institution: o ?
|
|
8129
|
+
institution: o ? Hn(o) : void 0,
|
|
8124
8130
|
institutionGuid: o?.institution_guid,
|
|
8125
8131
|
merchantGuid: t.merchant_guid,
|
|
8126
8132
|
recurrenceType: t.recurrence_type,
|
|
@@ -8131,11 +8137,11 @@ const EI = ({ transaction: A }) => {
|
|
|
8131
8137
|
let l = f;
|
|
8132
8138
|
switch (t.recurrence_type) {
|
|
8133
8139
|
case U.EveryWeek:
|
|
8134
|
-
for (l =
|
|
8140
|
+
for (l = fn(l, c); mA(l, E); )
|
|
8135
8141
|
n.push({
|
|
8136
8142
|
...a,
|
|
8137
8143
|
expectedDate: l
|
|
8138
|
-
}), l =
|
|
8144
|
+
}), l = fn(l, c);
|
|
8139
8145
|
break;
|
|
8140
8146
|
case U.EveryOtherWeek:
|
|
8141
8147
|
if (mA(I, f))
|
|
@@ -8148,11 +8154,11 @@ const EI = ({ transaction: A }) => {
|
|
|
8148
8154
|
for (n.push({
|
|
8149
8155
|
...a,
|
|
8150
8156
|
expectedDate: I
|
|
8151
|
-
}), l =
|
|
8157
|
+
}), l = lr(I, 2); Ot(l, f); )
|
|
8152
8158
|
n.push({
|
|
8153
8159
|
...a,
|
|
8154
8160
|
expectedDate: l
|
|
8155
|
-
}), l =
|
|
8161
|
+
}), l = lr(l, 2);
|
|
8156
8162
|
for (l = xt(I, 2); mA(l, E); )
|
|
8157
8163
|
n.push({
|
|
8158
8164
|
...a,
|
|
@@ -8163,10 +8169,10 @@ const EI = ({ transaction: A }) => {
|
|
|
8163
8169
|
case U.EveryMonth:
|
|
8164
8170
|
n.push({
|
|
8165
8171
|
...a,
|
|
8166
|
-
expectedDate:
|
|
8172
|
+
expectedDate: dn(l, c)
|
|
8167
8173
|
}), n.push({
|
|
8168
8174
|
...a,
|
|
8169
|
-
expectedDate: Re(
|
|
8175
|
+
expectedDate: Re(dn(l, c), 1)
|
|
8170
8176
|
});
|
|
8171
8177
|
break;
|
|
8172
8178
|
case U.EveryOtherMonth:
|
|
@@ -8225,7 +8231,7 @@ const EI = ({ transaction: A }) => {
|
|
|
8225
8231
|
institution: d?.user_name,
|
|
8226
8232
|
institutionGuid: d?.institution_guid,
|
|
8227
8233
|
merchantGuid: c?.merchant_guid,
|
|
8228
|
-
recurrenceType:
|
|
8234
|
+
recurrenceType: zn(o),
|
|
8229
8235
|
recurrenceDay: Number(o.repeat_day),
|
|
8230
8236
|
sequenceGuid: o.guid
|
|
8231
8237
|
};
|
|
@@ -8248,9 +8254,9 @@ const EI = ({ transaction: A }) => {
|
|
|
8248
8254
|
/* @__PURE__ */ e(Xi, { activity: f, onActivityClick: c, showOrdinal: !0 }),
|
|
8249
8255
|
/* @__PURE__ */ e(G, { variant: E < a.length - 1 ? "inset" : "fullWidth" })
|
|
8250
8256
|
] }, f.sequenceGuid)),
|
|
8251
|
-
/* @__PURE__ */ e(
|
|
8257
|
+
/* @__PURE__ */ e(pI, { isIncome: !0, label: A.add_income, onAddActivity: d })
|
|
8252
8258
|
] });
|
|
8253
|
-
},
|
|
8259
|
+
}, Jn = C(fE), dE = () => {
|
|
8254
8260
|
const [A, t] = h.useState(0), { onEvent: i } = K(), { recurring: n } = X();
|
|
8255
8261
|
return /* @__PURE__ */ s(L, { bgcolor: "background.default", height: "100%", children: [
|
|
8256
8262
|
/* @__PURE__ */ s(
|
|
@@ -8271,15 +8277,15 @@ const EI = ({ transaction: A }) => {
|
|
|
8271
8277
|
}
|
|
8272
8278
|
),
|
|
8273
8279
|
A === 0 && /* @__PURE__ */ e(IE, {}),
|
|
8274
|
-
A === 1 && /* @__PURE__ */ e(
|
|
8280
|
+
A === 1 && /* @__PURE__ */ e(Jn, {})
|
|
8275
8281
|
] });
|
|
8276
|
-
},
|
|
8282
|
+
}, wI = C(dE), Ut = (A, t) => A + t.amount, en = (A) => A.activityType === TA.Income && mt(A.expectedDate, {
|
|
8277
8283
|
start: QA(fA()),
|
|
8278
8284
|
end: BA(fA())
|
|
8279
8285
|
}), di = (A) => A.activityType === TA.Expense && mt(A.expectedDate, {
|
|
8280
8286
|
start: QA(fA()),
|
|
8281
8287
|
end: BA(fA())
|
|
8282
|
-
}),
|
|
8288
|
+
}), tn = (A) => A.occurredOnDate && mt(A.occurredOnDate, {
|
|
8283
8289
|
start: QA(/* @__PURE__ */ new Date()),
|
|
8284
8290
|
end: We(fA(), 30)
|
|
8285
8291
|
}) || mt(A.expectedDate, {
|
|
@@ -8299,13 +8305,13 @@ const EI = ({ transaction: A }) => {
|
|
|
8299
8305
|
(u) => u.activityType === TA.Expense && u.activityStatus === SA.Paid
|
|
8300
8306
|
), l = c.some((u) => u.activityType === TA.Income), v = (d ? 1 : 0) + (f ? 1 : 0) + (E ? 1 : 0) + (l ? 1 : 0);
|
|
8301
8307
|
return /* @__PURE__ */ e(
|
|
8302
|
-
|
|
8308
|
+
qo,
|
|
8303
8309
|
{
|
|
8304
8310
|
badgeContent: c.length > 0 && /* @__PURE__ */ s(Z, { children: [
|
|
8305
|
-
f && /* @__PURE__ */ e(
|
|
8306
|
-
E && /* @__PURE__ */ e(
|
|
8307
|
-
d && /* @__PURE__ */ e(
|
|
8308
|
-
l && /* @__PURE__ */ e(
|
|
8311
|
+
f && /* @__PURE__ */ e(Kn, { isOffset: !0 }),
|
|
8312
|
+
E && /* @__PURE__ */ e(Zn, { isOffset: !0 }),
|
|
8313
|
+
d && /* @__PURE__ */ e(Wn, { isOffset: !0 }),
|
|
8314
|
+
l && /* @__PURE__ */ e(kn, { isOffset: !0 })
|
|
8309
8315
|
] }),
|
|
8310
8316
|
overlap: "circular",
|
|
8311
8317
|
sx: {
|
|
@@ -8353,18 +8359,18 @@ const EI = ({ transaction: A }) => {
|
|
|
8353
8359
|
justifyContent: "center",
|
|
8354
8360
|
mt: 12,
|
|
8355
8361
|
children: [
|
|
8356
|
-
/* @__PURE__ */ e(Ei, { icon:
|
|
8357
|
-
/* @__PURE__ */ e(Ei, { icon:
|
|
8358
|
-
/* @__PURE__ */ e(Ei, { icon:
|
|
8359
|
-
/* @__PURE__ */ e(Ei, { icon:
|
|
8362
|
+
/* @__PURE__ */ e(Ei, { icon: Wn, label: A.expense }),
|
|
8363
|
+
/* @__PURE__ */ e(Ei, { icon: kn, label: A.income }),
|
|
8364
|
+
/* @__PURE__ */ e(Ei, { icon: Kn, label: A.missed }),
|
|
8365
|
+
/* @__PURE__ */ e(Ei, { icon: Zn, label: A.paid })
|
|
8360
8366
|
]
|
|
8361
8367
|
}
|
|
8362
8368
|
);
|
|
8363
|
-
}, vE = C(lE),
|
|
8369
|
+
}, vE = C(lE), kr = 58, RE = () => {
|
|
8364
8370
|
const A = RA(), { onEvent: t } = K(), { selectedDay: i } = ZA(), [n, r] = h.useState(
|
|
8365
|
-
|
|
8371
|
+
vr(/* @__PURE__ */ new Date()) * Bt + kr
|
|
8366
8372
|
), o = (a) => {
|
|
8367
|
-
r(
|
|
8373
|
+
r(vr(a) * Bt + kr), t(V.RECURRING_ACTIVITY_CLICK_CALENDAR_RIGHT);
|
|
8368
8374
|
}, I = /* @__PURE__ */ e(
|
|
8369
8375
|
mi,
|
|
8370
8376
|
{
|
|
@@ -8416,7 +8422,7 @@ const EI = ({ transaction: A }) => {
|
|
|
8416
8422
|
!i && I,
|
|
8417
8423
|
/* @__PURE__ */ e(vE, {})
|
|
8418
8424
|
] }) });
|
|
8419
|
-
},
|
|
8425
|
+
}, yI = C(RE), uE = (A) => A.reduce((t, i) => {
|
|
8420
8426
|
const n = i.expectedDate.toISOString().split("T")[0], r = t.find(
|
|
8421
8427
|
(o) => o.expectedDate.toString() === i.expectedDate.toString()
|
|
8422
8428
|
);
|
|
@@ -8509,7 +8515,7 @@ const EI = ({ transaction: A }) => {
|
|
|
8509
8515
|
] }),
|
|
8510
8516
|
/* @__PURE__ */ e(ti, { data: c })
|
|
8511
8517
|
] });
|
|
8512
|
-
},
|
|
8518
|
+
}, Kr = C(bE), HE = () => {
|
|
8513
8519
|
const { recurring: A } = X(), { isMobile: t, isSmallTablet: i } = zA(), {
|
|
8514
8520
|
activities: n,
|
|
8515
8521
|
missedActivities: r,
|
|
@@ -8518,7 +8524,7 @@ const EI = ({ transaction: A }) => {
|
|
|
8518
8524
|
selectedDayActivities: a,
|
|
8519
8525
|
setSelectedDay: c,
|
|
8520
8526
|
upcomingActivities: d
|
|
8521
|
-
} = ZA(), [f, E] = h.useState(0), { onEvent: l } = K(), v = n.filter(
|
|
8527
|
+
} = ZA(), [f, E] = h.useState(0), { onEvent: l } = K(), v = n.filter(tn), u = o.filter(tn), H = r.filter(tn), b = 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), j = v.filter(en).length, m = (tA, Y) => {
|
|
8522
8528
|
E(Y);
|
|
8523
8529
|
}, O = (tA) => {
|
|
8524
8530
|
l(V.RECURRING_ACTIVITY_CLICK_UPCOMING, {
|
|
@@ -8532,7 +8538,7 @@ const EI = ({ transaction: A }) => {
|
|
|
8532
8538
|
return /* @__PURE__ */ s(tt, { container: !0, pt: 16, px: 24, spacing: 24, children: [
|
|
8533
8539
|
/* @__PURE__ */ e(tt, { md: !0, sm: 12, children: /* @__PURE__ */ s(P, { gap: 24, children: [
|
|
8534
8540
|
/* @__PURE__ */ e(
|
|
8535
|
-
|
|
8541
|
+
Kr,
|
|
8536
8542
|
{
|
|
8537
8543
|
expected: b,
|
|
8538
8544
|
missed: y,
|
|
@@ -8542,7 +8548,7 @@ const EI = ({ transaction: A }) => {
|
|
|
8542
8548
|
}
|
|
8543
8549
|
),
|
|
8544
8550
|
/* @__PURE__ */ e(
|
|
8545
|
-
|
|
8551
|
+
Kr,
|
|
8546
8552
|
{
|
|
8547
8553
|
expected: w,
|
|
8548
8554
|
paid: D,
|
|
@@ -8584,7 +8590,7 @@ const EI = ({ transaction: A }) => {
|
|
|
8584
8590
|
] })
|
|
8585
8591
|
] }) }),
|
|
8586
8592
|
!i && !t && /* @__PURE__ */ e(tt, { sx: { minWidth: 450 }, xs: "auto", children: /* @__PURE__ */ s(P, { gap: 35, children: [
|
|
8587
|
-
/* @__PURE__ */ e(
|
|
8593
|
+
/* @__PURE__ */ e(yI, {}),
|
|
8588
8594
|
/* @__PURE__ */ e(
|
|
8589
8595
|
kt,
|
|
8590
8596
|
{
|
|
@@ -8641,7 +8647,7 @@ const EI = ({ transaction: A }) => {
|
|
|
8641
8647
|
onClose: () => E(!1),
|
|
8642
8648
|
shouldShowHeaderBorders: !1,
|
|
8643
8649
|
title: n.settings,
|
|
8644
|
-
children: /* @__PURE__ */ e(
|
|
8650
|
+
children: /* @__PURE__ */ e(wI, {})
|
|
8645
8651
|
}
|
|
8646
8652
|
)
|
|
8647
8653
|
]
|
|
@@ -8655,7 +8661,7 @@ const EI = ({ transaction: A }) => {
|
|
|
8655
8661
|
[t, o]
|
|
8656
8662
|
), { availableWidth: a } = Xt(), c = a < 750;
|
|
8657
8663
|
return /* @__PURE__ */ s(P, { flexDirection: c ? "column" : "row", width: "100%", children: [
|
|
8658
|
-
/* @__PURE__ */ e(
|
|
8664
|
+
/* @__PURE__ */ e(yI, {}),
|
|
8659
8665
|
!c && /* @__PURE__ */ e(G, { flexItem: !0, orientation: "vertical", sx: { my: 16, ml: 16 } }),
|
|
8660
8666
|
/* @__PURE__ */ e(
|
|
8661
8667
|
kt,
|
|
@@ -8693,8 +8699,8 @@ const EI = ({ transaction: A }) => {
|
|
|
8693
8699
|
}, wP = C(pE);
|
|
8694
8700
|
class wE {
|
|
8695
8701
|
globalStore;
|
|
8696
|
-
api = new
|
|
8697
|
-
cashflowApi = new
|
|
8702
|
+
api = new Xr("/", "");
|
|
8703
|
+
cashflowApi = new Ao("/", "");
|
|
8698
8704
|
cashflowSequences = [];
|
|
8699
8705
|
cashflowEvents = [];
|
|
8700
8706
|
projectedEvents = [];
|
|
@@ -8706,7 +8712,7 @@ class wE {
|
|
|
8706
8712
|
this.globalStore = t, DA(this);
|
|
8707
8713
|
}
|
|
8708
8714
|
initialize = async (t, i) => {
|
|
8709
|
-
this.api = new
|
|
8715
|
+
this.api = new Xr(t, i), this.cashflowApi = new Ao(t, i), this.loadActivity();
|
|
8710
8716
|
};
|
|
8711
8717
|
get activities() {
|
|
8712
8718
|
return this.isLoading ? [] : aE(
|
|
@@ -8896,7 +8902,7 @@ const yE = {
|
|
|
8896
8902
|
gridRow: 1,
|
|
8897
8903
|
gridColumn: 1,
|
|
8898
8904
|
zIndex: 2
|
|
8899
|
-
}, xE = ({ size: A = 20 }) => /* @__PURE__ */ e(ft, { size: A, children: /* @__PURE__ */ e(Qi, { color: "error", sx: { fontSize: A, ...yE } }) }),
|
|
8905
|
+
}, 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) => {
|
|
8900
8906
|
const i = [
|
|
8901
8907
|
{
|
|
8902
8908
|
event: "account_details_click_account_name",
|
|
@@ -8919,7 +8925,7 @@ const yE = {
|
|
|
8919
8925
|
const n = Object.keys(_).filter((r) => Number(r)).map((r) => ({
|
|
8920
8926
|
label: t.account_types[r],
|
|
8921
8927
|
value: Number(r),
|
|
8922
|
-
icon: /* @__PURE__ */ e(q, { name:
|
|
8928
|
+
icon: /* @__PURE__ */ e(q, { name: Uo[r] })
|
|
8923
8929
|
}));
|
|
8924
8930
|
i.push({
|
|
8925
8931
|
label: t.account_type,
|
|
@@ -8931,7 +8937,7 @@ const yE = {
|
|
|
8931
8937
|
});
|
|
8932
8938
|
}
|
|
8933
8939
|
if (A.account_type === _.PROPERTY) {
|
|
8934
|
-
const n = Object.keys(
|
|
8940
|
+
const n = Object.keys(Yo).filter((r) => Number(r)).map((r) => ({
|
|
8935
8941
|
label: t.property_types[r],
|
|
8936
8942
|
value: Number(r),
|
|
8937
8943
|
icon: /* @__PURE__ */ e(q, { name: Ss[r] })
|
|
@@ -8953,11 +8959,11 @@ const yE = {
|
|
|
8953
8959
|
name: r,
|
|
8954
8960
|
placeholder: z(t.enter_value, n),
|
|
8955
8961
|
type: de.Input,
|
|
8956
|
-
validation: (o) =>
|
|
8957
|
-
valueFormatter: (o) =>
|
|
8962
|
+
validation: (o) => ln(o) ? "" : t.error_amount_is_invalid,
|
|
8963
|
+
valueFormatter: (o) => ln(o) ? Gi(o / 100) : o
|
|
8958
8964
|
});
|
|
8959
8965
|
}
|
|
8960
|
-
return
|
|
8966
|
+
return _n(A) && (i.push({
|
|
8961
8967
|
label: t.minimum_payment,
|
|
8962
8968
|
name: "minimum_payment",
|
|
8963
8969
|
placeholder: z(t.enter_value, t.minimum_payment),
|
|
@@ -8978,7 +8984,7 @@ const yE = {
|
|
|
8978
8984
|
type: de.Date,
|
|
8979
8985
|
valueFormatter: (n) => z(
|
|
8980
8986
|
t.day_of_every_month,
|
|
8981
|
-
|
|
8987
|
+
ko(n <= 31 ? n : new Date(n).getDate())
|
|
8982
8988
|
)
|
|
8983
8989
|
})), jE(A) && i.push({
|
|
8984
8990
|
label: t.credit_limit,
|
|
@@ -8994,7 +9000,7 @@ const yE = {
|
|
|
8994
9000
|
type: de.Currency,
|
|
8995
9001
|
valueFormatter: (n) => M(n, "0,0.00")
|
|
8996
9002
|
}), i;
|
|
8997
|
-
},
|
|
9003
|
+
}, xI = (A, t) => {
|
|
8998
9004
|
let i = "", n = null, r = null, o = null, I = !1;
|
|
8999
9005
|
switch (A.account_type) {
|
|
9000
9006
|
case 1:
|
|
@@ -9025,7 +9031,7 @@ const yE = {
|
|
|
9025
9031
|
listItemProps: i,
|
|
9026
9032
|
shouldShowConnectionStatus: n = !1
|
|
9027
9033
|
}) => {
|
|
9028
|
-
const { accounts: r } = X(), { firstSubtitle: o, firstValue: I, secondSubtitle: a, secondValue: c } =
|
|
9034
|
+
const { accounts: r } = X(), { firstSubtitle: o, firstValue: I, secondSubtitle: a, secondValue: c } = xI(
|
|
9029
9035
|
A,
|
|
9030
9036
|
r
|
|
9031
9037
|
);
|
|
@@ -9033,7 +9039,7 @@ const yE = {
|
|
|
9033
9039
|
(A.connectionStatus === bt.Error || A.connectionStatus === bt.RequiresMfa) && (d = /* @__PURE__ */ e(xE, { size: 16 }));
|
|
9034
9040
|
const f = /* @__PURE__ */ s(Z, { children: [
|
|
9035
9041
|
/* @__PURE__ */ e(xA, { children: /* @__PURE__ */ e(
|
|
9036
|
-
|
|
9042
|
+
qo,
|
|
9037
9043
|
{
|
|
9038
9044
|
badgeContent: n ? d : void 0,
|
|
9039
9045
|
sx: {
|
|
@@ -9081,7 +9087,7 @@ const yE = {
|
|
|
9081
9087
|
borderBottomRightRadius: "3px",
|
|
9082
9088
|
minHeight: "auto"
|
|
9083
9089
|
},
|
|
9084
|
-
children: /* @__PURE__ */ e(
|
|
9090
|
+
children: /* @__PURE__ */ e(Vn, { remaining: A })
|
|
9085
9091
|
}
|
|
9086
9092
|
);
|
|
9087
9093
|
var ni = /* @__PURE__ */ ((A) => (A.EXPENSE = "expense", A.INCOME = "income", A))(ni || {});
|
|
@@ -9102,7 +9108,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9102
9108
|
)
|
|
9103
9109
|
] }),
|
|
9104
9110
|
/* @__PURE__ */ e(G, {})
|
|
9105
|
-
] }),
|
|
9111
|
+
] }), Zr = C(GE), ME = ({ total: A, type: t }) => {
|
|
9106
9112
|
const { cashflow: i } = X();
|
|
9107
9113
|
return /* @__PURE__ */ s(Z, { children: [
|
|
9108
9114
|
/* @__PURE__ */ s(
|
|
@@ -9128,7 +9134,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9128
9134
|
),
|
|
9129
9135
|
/* @__PURE__ */ e(G, {})
|
|
9130
9136
|
] });
|
|
9131
|
-
},
|
|
9137
|
+
}, 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 = () => {
|
|
9132
9138
|
const { availableWidth: A } = Xt(), { cashflow: t } = X(), { upcomingExpenses: i, upcomingIncome: n } = ZA(), { dateRange: r, selectedCashAccounts: o } = Nt();
|
|
9133
9139
|
return /* @__PURE__ */ s(P, { children: [
|
|
9134
9140
|
/* @__PURE__ */ s(P, { direction: A < 400 ? "column" : "row", justifyContent: "space-between", children: [
|
|
@@ -9141,8 +9147,8 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9141
9147
|
] })
|
|
9142
9148
|
] }),
|
|
9143
9149
|
/* @__PURE__ */ e(P, { children: o.map((I) => {
|
|
9144
|
-
const a = n.filter(
|
|
9145
|
-
|
|
9150
|
+
const a = n.filter(_r(I, r)).sort((E, l) => gA(E.expectedDate) - gA(l.expectedDate)), c = i.filter(
|
|
9151
|
+
_r(I, r)
|
|
9146
9152
|
), d = a.reduce(
|
|
9147
9153
|
(E, l) => E + l.amount,
|
|
9148
9154
|
0
|
|
@@ -9175,17 +9181,17 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9175
9181
|
a.length > 0 && /* @__PURE__ */ e(W, { children: /* @__PURE__ */ e(
|
|
9176
9182
|
rA,
|
|
9177
9183
|
{
|
|
9178
|
-
subheader: /* @__PURE__ */ e(
|
|
9184
|
+
subheader: /* @__PURE__ */ e(Jr, { total: d, type: ni.INCOME }),
|
|
9179
9185
|
sx: { width: "100%" },
|
|
9180
|
-
children: a.map((E) => /* @__PURE__ */ e(
|
|
9186
|
+
children: a.map((E) => /* @__PURE__ */ e(Zr, { activity: E }, E.sequenceGuid))
|
|
9181
9187
|
}
|
|
9182
9188
|
) }),
|
|
9183
9189
|
c.length > 0 && /* @__PURE__ */ e(W, { children: /* @__PURE__ */ e(
|
|
9184
9190
|
rA,
|
|
9185
9191
|
{
|
|
9186
|
-
subheader: /* @__PURE__ */ e(
|
|
9192
|
+
subheader: /* @__PURE__ */ e(Jr, { total: f, type: ni.EXPENSE }),
|
|
9187
9193
|
sx: { width: "100%" },
|
|
9188
|
-
children: c.map((E) => /* @__PURE__ */ e(
|
|
9194
|
+
children: c.map((E) => /* @__PURE__ */ e(Zr, { activity: E }, E.scheduledPaymentGuid))
|
|
9189
9195
|
}
|
|
9190
9196
|
) }),
|
|
9191
9197
|
/* @__PURE__ */ e(
|
|
@@ -9409,7 +9415,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9409
9415
|
px: 16,
|
|
9410
9416
|
py: 12,
|
|
9411
9417
|
sx: { borderBottomLeftRadius: "4px", borderBottomRightRadius: "4px" },
|
|
9412
|
-
children: /* @__PURE__ */ e(
|
|
9418
|
+
children: /* @__PURE__ */ e(Vn, { remaining: d.remaining })
|
|
9413
9419
|
}
|
|
9414
9420
|
)
|
|
9415
9421
|
] }) })
|
|
@@ -9485,12 +9491,12 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9485
9491
|
t && /* @__PURE__ */ e(OA, { amount: A, component: "h2", symbol: r, variant: "Small" })
|
|
9486
9492
|
]
|
|
9487
9493
|
}
|
|
9488
|
-
),
|
|
9494
|
+
), $r = (A, t) => (i) => i.accountGuid && A.includes(i.accountGuid) && (On(i.expectedDate) || Ot(i.expectedDate, t.start)) && mA(i.expectedDate, t.end), UE = () => {
|
|
9489
9495
|
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(
|
|
9490
|
-
() => r.filter(
|
|
9496
|
+
() => r.filter($r(I, a)),
|
|
9491
9497
|
[a, I, r]
|
|
9492
9498
|
), E = h.useMemo(
|
|
9493
|
-
() => o.filter(
|
|
9499
|
+
() => o.filter($r(I, a)),
|
|
9494
9500
|
[a, I, o]
|
|
9495
9501
|
), l = h.useMemo(
|
|
9496
9502
|
() => c.reduce((y, x) => y + (x?.balance || 0), 0),
|
|
@@ -9597,12 +9603,12 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9597
9603
|
onClose: () => t(!1),
|
|
9598
9604
|
shouldShowHeaderBorders: !1,
|
|
9599
9605
|
title: n.manage_income,
|
|
9600
|
-
children: /* @__PURE__ */ e(
|
|
9606
|
+
children: /* @__PURE__ */ e(Jn, {})
|
|
9601
9607
|
}
|
|
9602
9608
|
)
|
|
9603
9609
|
] });
|
|
9604
9610
|
}, FE = C(UE), WE = ({ handleNextStep: A }) => {
|
|
9605
|
-
const { completeOnboarding: t } =
|
|
9611
|
+
const { completeOnboarding: t } = Tn(), { cashflow: i } = X(), n = RA();
|
|
9606
9612
|
return /* @__PURE__ */ s(P, { children: [
|
|
9607
9613
|
/* @__PURE__ */ e(it, { pb: 12, children: i.welcome_title }),
|
|
9608
9614
|
/* @__PURE__ */ e(
|
|
@@ -9686,7 +9692,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9686
9692
|
transform: rotate(360deg);
|
|
9687
9693
|
}
|
|
9688
9694
|
`, Ah = () => {
|
|
9689
|
-
const { addCashflowEvent: A, addCashflowSequence: t, cashflowSequences: i } = ZA(), { cashflow: n, common: r } = X(), { completeOnboarding: o } =
|
|
9695
|
+
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, b] = h.useState(U.EveryMonth), [p, y] = Fe(!1), [x, w] = h.useState(null), [D, j] = Fe(1), [m, O] = Fe([]), [T, tA] = Fe(""), Y = h.useMemo(
|
|
9690
9696
|
() => E.find((cA) => cA.guid === T),
|
|
9691
9697
|
[T]
|
|
9692
9698
|
), iA = !!i.length, oA = async () => {
|
|
@@ -9699,13 +9705,13 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9699
9705
|
if (!(m.length < 1)) {
|
|
9700
9706
|
y(!0);
|
|
9701
9707
|
for (let cA = 0; cA < m.length; cA++) {
|
|
9702
|
-
const jA = m[cA], WA =
|
|
9708
|
+
const jA = m[cA], WA = HI(
|
|
9703
9709
|
jA,
|
|
9704
9710
|
jA.frequency,
|
|
9705
9711
|
jA.nextDate
|
|
9706
9712
|
), fe = await t(WA);
|
|
9707
9713
|
if (fe) {
|
|
9708
|
-
const Ie =
|
|
9714
|
+
const Ie = zI(fe, jA);
|
|
9709
9715
|
await A(Ie);
|
|
9710
9716
|
}
|
|
9711
9717
|
}
|
|
@@ -9755,10 +9761,10 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9755
9761
|
/* @__PURE__ */ e(HA, { mb: 24, children: n.add_income_description }),
|
|
9756
9762
|
m.length > 0 && !Y && /* @__PURE__ */ s(Z, { children: [
|
|
9757
9763
|
/* @__PURE__ */ e(rA, { children: m.map((cA, jA) => /* @__PURE__ */ s(h.Fragment, { children: [
|
|
9758
|
-
/* @__PURE__ */ e(
|
|
9764
|
+
/* @__PURE__ */ e(Un, { bgcolor: "background.paper", children: Mi(
|
|
9759
9765
|
gA(cA.nextDate || cA.date)
|
|
9760
9766
|
) }),
|
|
9761
|
-
/* @__PURE__ */ e(
|
|
9767
|
+
/* @__PURE__ */ e(Sn, { transaction: cA }),
|
|
9762
9768
|
jA !== m.length - 1 && /* @__PURE__ */ e(G, {})
|
|
9763
9769
|
] }, cA.guid)) }),
|
|
9764
9770
|
/* @__PURE__ */ s(P, { alignItems: "center", direction: "row", children: [
|
|
@@ -9774,12 +9780,12 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9774
9780
|
] })
|
|
9775
9781
|
] }),
|
|
9776
9782
|
uA && /* @__PURE__ */ e(
|
|
9777
|
-
|
|
9783
|
+
CI,
|
|
9778
9784
|
{
|
|
9779
9785
|
bgcolor: "background.paper",
|
|
9780
9786
|
onSearch: (cA) => f({
|
|
9781
9787
|
...d,
|
|
9782
|
-
custom: (jA) => cA ?
|
|
9788
|
+
custom: (jA) => cA ? XI(jA, cA) : ii(jA)
|
|
9783
9789
|
}),
|
|
9784
9790
|
onSelected: (cA) => {
|
|
9785
9791
|
tA(cA), u(!1);
|
|
@@ -9789,7 +9795,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9789
9795
|
!iA && I && /* @__PURE__ */ e(HA, { color: "error", mt: 16, children: n.confirm_error }),
|
|
9790
9796
|
Y && /* @__PURE__ */ s(Z, { children: [
|
|
9791
9797
|
/* @__PURE__ */ e(
|
|
9792
|
-
|
|
9798
|
+
gI,
|
|
9793
9799
|
{
|
|
9794
9800
|
bgcolor: "background.paper",
|
|
9795
9801
|
frequency: H,
|
|
@@ -9904,7 +9910,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9904
9910
|
onClose: () => H(!1),
|
|
9905
9911
|
shouldShowHeaderBorders: !1,
|
|
9906
9912
|
title: v.cashflow_settings,
|
|
9907
|
-
children: /* @__PURE__ */ e(
|
|
9913
|
+
children: /* @__PURE__ */ e(wI, {})
|
|
9908
9914
|
}
|
|
9909
9915
|
)
|
|
9910
9916
|
]
|
|
@@ -9919,7 +9925,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9919
9925
|
}
|
|
9920
9926
|
);
|
|
9921
9927
|
}, yP = C(th);
|
|
9922
|
-
class
|
|
9928
|
+
class Ao {
|
|
9923
9929
|
fetchInstance;
|
|
9924
9930
|
constructor(t, i) {
|
|
9925
9931
|
this.fetchInstance = new Ae(t, i);
|
|
@@ -9982,20 +9988,20 @@ class nh {
|
|
|
9982
9988
|
};
|
|
9983
9989
|
}
|
|
9984
9990
|
class rh {
|
|
9985
|
-
widgetApi = new
|
|
9991
|
+
widgetApi = new wr("/", "");
|
|
9986
9992
|
globalStore;
|
|
9987
9993
|
constructor(t) {
|
|
9988
9994
|
this.globalStore = t, DA(this);
|
|
9989
9995
|
}
|
|
9990
9996
|
initialize = async (t, i) => {
|
|
9991
|
-
this.widgetApi = new
|
|
9997
|
+
this.widgetApi = new wr(t, i);
|
|
9992
9998
|
};
|
|
9993
9999
|
loadWidget = async ({ widget: t = "connect_widget", mode: i = "light", ...n }) => await this.widgetApi.requestWidgetUrl({
|
|
9994
10000
|
widget_url: { widget_type: t, color_scheme: i, ...n }
|
|
9995
10001
|
});
|
|
9996
10002
|
}
|
|
9997
10003
|
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 || {});
|
|
9998
|
-
const
|
|
10004
|
+
const DI = (A, t) => {
|
|
9999
10005
|
const i = A.filter((r) => !r.is_paid_off && !r.is_impossible), n = A.filter((r) => r.is_paid_off || r.is_impossible);
|
|
10000
10006
|
switch (t) {
|
|
10001
10007
|
case Te.HIGHEST_INTEREST:
|
|
@@ -10016,7 +10022,7 @@ function oh(A, t, i = 0) {
|
|
|
10016
10022
|
const n = A.map((f) => ({ ...f })).filter(
|
|
10017
10023
|
(f) => f.interest_rate !== void 0 && f.monthly_payment !== void 0 && !f.is_paid_off
|
|
10018
10024
|
);
|
|
10019
|
-
|
|
10025
|
+
DI(n, t);
|
|
10020
10026
|
let r = 0, o = 0;
|
|
10021
10027
|
const I = /* @__PURE__ */ new Date(), a = /* @__PURE__ */ new Date();
|
|
10022
10028
|
for (; n.some((f) => f.balance >= 0.01 && !f.is_impossible); ) {
|
|
@@ -10464,7 +10470,7 @@ const ke = () => {
|
|
|
10464
10470
|
if (!h.useContext(gt))
|
|
10465
10471
|
throw new Error("useCategoryUiStore() must be used within the GlobalDataContext");
|
|
10466
10472
|
return CA().uiStore;
|
|
10467
|
-
}, Fi = (A) => A.top_level_category_guid === g.INCOME || A.category_guid === g.INCOME, fh = (A) => !Fi(A) && !
|
|
10473
|
+
}, 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) => {
|
|
10468
10474
|
const i = [];
|
|
10469
10475
|
let n = QA(Ne(/* @__PURE__ */ new Date(), 5));
|
|
10470
10476
|
const r = /* @__PURE__ */ new Date();
|
|
@@ -10476,13 +10482,13 @@ const ke = () => {
|
|
|
10476
10482
|
return i;
|
|
10477
10483
|
}, hh = (A, t) => {
|
|
10478
10484
|
const i = A.filter(Fi);
|
|
10479
|
-
return
|
|
10485
|
+
return $n(i).map((n) => ({ ...n, y: Math.abs(n.y) }));
|
|
10480
10486
|
}, lh = (A, t) => {
|
|
10481
|
-
const i = A.filter(
|
|
10482
|
-
return
|
|
10487
|
+
const i = A.filter(jI);
|
|
10488
|
+
return $n(i).map((n) => ({ ...n, y: Math.abs(n.y) }));
|
|
10483
10489
|
}, vh = (A, t) => {
|
|
10484
10490
|
const i = A.filter(dh);
|
|
10485
|
-
return
|
|
10491
|
+
return $n(i);
|
|
10486
10492
|
}, Rh = (A) => {
|
|
10487
10493
|
const t = [], i = A.filter(
|
|
10488
10494
|
(o) => o.top_level_category_guid !== g.INCOME && o.top_level_category_guid !== g.TRANSFER && o.total > 0
|
|
@@ -10496,18 +10502,18 @@ const ke = () => {
|
|
|
10496
10502
|
}), n = Re(n, 1);
|
|
10497
10503
|
return t;
|
|
10498
10504
|
}, uh = (A, t) => {
|
|
10499
|
-
const i =
|
|
10505
|
+
const i = Qn.includes(t) ? hh(A) : [], n = qn.includes(t) ? lh(A) : [], r = Gn.includes(t) ? vh(A) : [];
|
|
10500
10506
|
return [i, n, r].filter((o) => o.length > 0);
|
|
10501
10507
|
}, Ph = (A, t, i) => {
|
|
10502
10508
|
const [n, r] = A, o = n, I = r ?? n, a = [];
|
|
10503
|
-
if (o && I &&
|
|
10509
|
+
if (o && I && Qn.includes(t)) {
|
|
10504
10510
|
const c = M(o[o.length - 1].y, "0,0");
|
|
10505
10511
|
a.push(`${i.income_label} ${c}`);
|
|
10506
|
-
} else if (
|
|
10512
|
+
} else if (qn.includes(t)) {
|
|
10507
10513
|
const c = M(o[o.length - 1].y, "0,0");
|
|
10508
10514
|
a.push(`${i.payments_label} ${c}`);
|
|
10509
10515
|
}
|
|
10510
|
-
if (I &&
|
|
10516
|
+
if (I && Gn.includes(t)) {
|
|
10511
10517
|
const c = M(I[I.length - 1].y, "0,0");
|
|
10512
10518
|
a.push(`${i.spending_label} ${c}`);
|
|
10513
10519
|
}
|
|
@@ -10515,7 +10521,7 @@ const ke = () => {
|
|
|
10515
10521
|
}, bh = () => {
|
|
10516
10522
|
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);
|
|
10517
10523
|
return /* @__PURE__ */ e("div", { "data-testid": "TrendsChart", children: /* @__PURE__ */ e(
|
|
10518
|
-
|
|
10524
|
+
Nn,
|
|
10519
10525
|
{
|
|
10520
10526
|
colors: r,
|
|
10521
10527
|
datasets: o,
|
|
@@ -10554,12 +10560,12 @@ const ke = () => {
|
|
|
10554
10560
|
}
|
|
10555
10561
|
);
|
|
10556
10562
|
}, Ch = C(zh), gh = ({ customDetailsChart: A }) => {
|
|
10557
|
-
const { institutions: t } = CA(), { selectedAccount: i } = Xe(), { accounts: n } = X(), { firstSubtitle: r, firstValue: o, hasAvailableBalance: I, secondSubtitle: a, secondValue: c } =
|
|
10563
|
+
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(
|
|
10558
10564
|
(E) => E.guid === i?.institution_guid
|
|
10559
10565
|
), f = [
|
|
10560
|
-
...Ln,
|
|
10561
10566
|
...Qn,
|
|
10562
|
-
...qn
|
|
10567
|
+
...qn,
|
|
10568
|
+
...Gn
|
|
10563
10569
|
].includes(i.account_type);
|
|
10564
10570
|
return /* @__PURE__ */ s(P, { bgcolor: "background.default", p: 24, children: [
|
|
10565
10571
|
/* @__PURE__ */ s(P, { gap: 12, children: [
|
|
@@ -10586,7 +10592,7 @@ const ke = () => {
|
|
|
10586
10592
|
] }),
|
|
10587
10593
|
f && /* @__PURE__ */ e(P, { children: A || /* @__PURE__ */ e(Ch, {}) })
|
|
10588
10594
|
] });
|
|
10589
|
-
},
|
|
10595
|
+
}, Ar = C(gh), Xh = "#FF7B08";
|
|
10590
10596
|
function ph(A, t) {
|
|
10591
10597
|
const [i, n, r] = A.replace(/^#/, "").match(/.{1,2}/g).map((I) => parseInt(I, 16)), o = [
|
|
10592
10598
|
Math.max(0, Math.min(255, Math.round(i * t))),
|
|
@@ -10595,7 +10601,7 @@ function ph(A, t) {
|
|
|
10595
10601
|
];
|
|
10596
10602
|
return `rgb(${o[0]}, ${o[1]}, ${o[2]})`;
|
|
10597
10603
|
}
|
|
10598
|
-
const
|
|
10604
|
+
const OI = ({
|
|
10599
10605
|
sx: A,
|
|
10600
10606
|
height: t = 500,
|
|
10601
10607
|
width: i,
|
|
@@ -10650,7 +10656,7 @@ const mI = ({
|
|
|
10650
10656
|
});
|
|
10651
10657
|
const p = (w) => b.findIndex((D) => D?.guid === w);
|
|
10652
10658
|
return /* @__PURE__ */ e(
|
|
10653
|
-
|
|
10659
|
+
xo,
|
|
10654
10660
|
{
|
|
10655
10661
|
axisHighlight: { x: "none" },
|
|
10656
10662
|
disableLineItemHighlight: !0,
|
|
@@ -10731,7 +10737,7 @@ const mI = ({
|
|
|
10731
10737
|
},
|
|
10732
10738
|
children: [
|
|
10733
10739
|
/* @__PURE__ */ e(rt, { sx: { pb: 0 }, title: /* @__PURE__ */ e(ne, { sx: { pb: 4 }, children: t.details_chart_title }) }),
|
|
10734
|
-
/* @__PURE__ */ e(Ce, { sx: { p: 0 }, children: /* @__PURE__ */ e(
|
|
10740
|
+
/* @__PURE__ */ e(Ce, { sx: { p: 0 }, children: /* @__PURE__ */ e(OI, { debts: [i], height: 250 }) })
|
|
10735
10741
|
]
|
|
10736
10742
|
}
|
|
10737
10743
|
),
|
|
@@ -10809,7 +10815,7 @@ const mI = ({
|
|
|
10809
10815
|
}
|
|
10810
10816
|
) })
|
|
10811
10817
|
] }) });
|
|
10812
|
-
}, Dh = C(xh),
|
|
10818
|
+
}, Dh = C(xh), LI = C(({ goal: A }) => {
|
|
10813
10819
|
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 () => {
|
|
10814
10820
|
const E = { ...A, interest_rate: o };
|
|
10815
10821
|
A.interest_rate = o, a ? n(E) : (await r(E), i(t.alert_goal_updated_interest_rate));
|
|
@@ -10842,7 +10848,7 @@ const mI = ({
|
|
|
10842
10848
|
)
|
|
10843
10849
|
}
|
|
10844
10850
|
);
|
|
10845
|
-
}),
|
|
10851
|
+
}), QI = C(({ goal: A }) => {
|
|
10846
10852
|
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 () => {
|
|
10847
10853
|
const E = { ...A, monthly_payment: o };
|
|
10848
10854
|
A.monthly_payment = o, a ? n(E) : (await r({ ...A, monthly_payment: o }), i(t.alert_goal_updated_payment));
|
|
@@ -10876,7 +10882,7 @@ const mI = ({
|
|
|
10876
10882
|
)
|
|
10877
10883
|
}
|
|
10878
10884
|
);
|
|
10879
|
-
}),
|
|
10885
|
+
}), qI = C(({ goal: A }) => {
|
|
10880
10886
|
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 () => {
|
|
10881
10887
|
const E = { ...A, initial_amount: o };
|
|
10882
10888
|
A.initial_amount = o, a ? n(E) : (await r({ ...A, initial_amount: o }), i(t.alert_goal_updated_balance));
|
|
@@ -11008,11 +11014,11 @@ const mI = ({
|
|
|
11008
11014
|
const { onEvent: A } = K(), { selectedDebtChartData: t } = ke();
|
|
11009
11015
|
return h.useEffect(() => A(V.DEBT_DETAILS_VIEW), []), /* @__PURE__ */ s(P, { bgcolor: "background.paper", children: [
|
|
11010
11016
|
t?.goal && /* @__PURE__ */ s(Z, { children: [
|
|
11011
|
-
/* @__PURE__ */ e(
|
|
11017
|
+
/* @__PURE__ */ e(QI, { goal: t.goal }),
|
|
11012
11018
|
/* @__PURE__ */ e(G, {}),
|
|
11013
|
-
/* @__PURE__ */ e(
|
|
11019
|
+
/* @__PURE__ */ e(LI, { goal: t.goal }),
|
|
11014
11020
|
/* @__PURE__ */ e(G, {}),
|
|
11015
|
-
/* @__PURE__ */ e(
|
|
11021
|
+
/* @__PURE__ */ e(qI, { goal: t.goal }),
|
|
11016
11022
|
/* @__PURE__ */ e(G, {})
|
|
11017
11023
|
] }),
|
|
11018
11024
|
!t?.goal && t?.account && /* @__PURE__ */ s(Z, { children: [
|
|
@@ -11045,7 +11051,7 @@ const mI = ({
|
|
|
11045
11051
|
}
|
|
11046
11052
|
},
|
|
11047
11053
|
children: [
|
|
11048
|
-
/* @__PURE__ */ e(
|
|
11054
|
+
/* @__PURE__ */ e(hn, { sx: { fontWeight: 600, marginTop: 2 }, variant: "Body", children: n ? i.status_error_title : i.status_complete_title }),
|
|
11049
11055
|
/* @__PURE__ */ e(R, { component: "p", sx: { whiteSpace: "wrap" }, variant: "ParagraphSmall", children: n ? i.status_error_description : i.status_complete_description })
|
|
11050
11056
|
]
|
|
11051
11057
|
}
|
|
@@ -11063,7 +11069,7 @@ const mI = ({
|
|
|
11063
11069
|
}
|
|
11064
11070
|
},
|
|
11065
11071
|
children: [
|
|
11066
|
-
/* @__PURE__ */ e(
|
|
11072
|
+
/* @__PURE__ */ e(hn, { sx: { fontWeight: 600, marginTop: 2 }, variant: "Body", children: i.status_info_title }),
|
|
11067
11073
|
/* @__PURE__ */ e(R, { component: "p", sx: { whiteSpace: "wrap" }, variant: "ParagraphSmall", children: i.status_info_description })
|
|
11068
11074
|
]
|
|
11069
11075
|
}
|
|
@@ -11115,7 +11121,7 @@ const mI = ({
|
|
|
11115
11121
|
sx: { ...i },
|
|
11116
11122
|
title: n.details_title,
|
|
11117
11123
|
children: /* @__PURE__ */ s(P, { bgcolor: "background.default", children: [
|
|
11118
|
-
/* @__PURE__ */ e(
|
|
11124
|
+
/* @__PURE__ */ e(Ar, { customDetailsChart: I }),
|
|
11119
11125
|
/* @__PURE__ */ e(Nh, {})
|
|
11120
11126
|
] })
|
|
11121
11127
|
}
|
|
@@ -11225,7 +11231,7 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
|
|
|
11225
11231
|
}
|
|
11226
11232
|
);
|
|
11227
11233
|
}, Kh = (A) => {
|
|
11228
|
-
const t = A.row.account, i =
|
|
11234
|
+
const t = A.row.account, i = Ln[t.account_type];
|
|
11229
11235
|
return /* @__PURE__ */ s(P, { alignItems: "center", flexDirection: "row", children: [
|
|
11230
11236
|
/* @__PURE__ */ e(
|
|
11231
11237
|
Oe,
|
|
@@ -11437,7 +11443,7 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
|
|
|
11437
11443
|
o(d), i(V.DEBTS_CLICK_PRIORITY, { debts_priority: d });
|
|
11438
11444
|
};
|
|
11439
11445
|
return /* @__PURE__ */ e(
|
|
11440
|
-
|
|
11446
|
+
yo,
|
|
11441
11447
|
{
|
|
11442
11448
|
anchorEl: A,
|
|
11443
11449
|
anchorOrigin: {
|
|
@@ -11494,7 +11500,7 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
|
|
|
11494
11500
|
] });
|
|
11495
11501
|
}), Al = (A, t, i = 0) => {
|
|
11496
11502
|
const n = A.map((c) => ({ ...c }));
|
|
11497
|
-
|
|
11503
|
+
DI(n, t);
|
|
11498
11504
|
const r = /* @__PURE__ */ new Date(), o = [];
|
|
11499
11505
|
let I = 0, a = 1;
|
|
11500
11506
|
for (const c of n)
|
|
@@ -11587,7 +11593,7 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
|
|
|
11587
11593
|
},
|
|
11588
11594
|
children: [
|
|
11589
11595
|
/* @__PURE__ */ e(
|
|
11590
|
-
|
|
11596
|
+
OI,
|
|
11591
11597
|
{
|
|
11592
11598
|
debts: m,
|
|
11593
11599
|
height: E ? 250 : void 0,
|
|
@@ -11635,17 +11641,17 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
|
|
|
11635
11641
|
};
|
|
11636
11642
|
function nl(A, t) {
|
|
11637
11643
|
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(
|
|
11638
|
-
(o) =>
|
|
11639
|
-
), r = i.filter((o) => !n.some((I) => I.account.guid === o.guid)).map((o) =>
|
|
11644
|
+
(o) => eo(i.find((I) => I.guid === o.account_guid), o)
|
|
11645
|
+
), r = i.filter((o) => !n.some((I) => I.account.guid === o.guid)).map((o) => eo(o));
|
|
11640
11646
|
return [...n, ...r];
|
|
11641
11647
|
}
|
|
11642
|
-
function
|
|
11648
|
+
function eo(A, t) {
|
|
11643
11649
|
const i = { account: A, goal: t, guid: A.guid };
|
|
11644
11650
|
if (t) {
|
|
11645
|
-
const n = t.payment_due_at ?
|
|
11651
|
+
const n = t.payment_due_at ? Er(Ai(t.payment_due_at)) : 1, r = hr(/* @__PURE__ */ new Date()).setDate(n);
|
|
11646
11652
|
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;
|
|
11647
11653
|
} else {
|
|
11648
|
-
const n = A.payment_due_at ?
|
|
11654
|
+
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;
|
|
11649
11655
|
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;
|
|
11650
11656
|
}
|
|
11651
11657
|
return i.is_impossible = !1, i.priority = void 0, i.projected_payoff_date = void 0, i;
|
|
@@ -11725,7 +11731,7 @@ class Il {
|
|
|
11725
11731
|
return t === i;
|
|
11726
11732
|
}
|
|
11727
11733
|
}
|
|
11728
|
-
class
|
|
11734
|
+
class to {
|
|
11729
11735
|
fetchInstance;
|
|
11730
11736
|
constructor(t, i) {
|
|
11731
11737
|
this.fetchInstance = new Ae(t, i);
|
|
@@ -11746,7 +11752,7 @@ class eo {
|
|
|
11746
11752
|
updateMonthlyCashFlowProfile = async (t) => this.fetchInstance.put(`${Q.MONTHLY_CASH_FLOW_PROFILE}`, t).then((i) => i.monthly_cash_flow_profile);
|
|
11747
11753
|
updateRetirementGoal = async (t) => this.fetchInstance.put(`${Q.RETIREMENT_GOALS}/${t.guid}`, t).then((i) => i.retirement_goal);
|
|
11748
11754
|
}
|
|
11749
|
-
function
|
|
11755
|
+
function nn({ title: A, subtitle: t }) {
|
|
11750
11756
|
return /* @__PURE__ */ s(P, { children: [
|
|
11751
11757
|
/* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: A }),
|
|
11752
11758
|
/* @__PURE__ */ e(R, { sx: { fontWeight: 400 }, variant: "Body", children: t })
|
|
@@ -11842,7 +11848,7 @@ const cl = (A, t) => {
|
|
|
11842
11848
|
}, fl = (A, t) => t ? M(A, A < 1e3 ? "0" : "0.00a").replace(
|
|
11843
11849
|
/(\d+)(?:\.0+|(\.\d*?[1-9])0*)([a-zA-Z]* ?\$?)/g,
|
|
11844
11850
|
"$1$2$3"
|
|
11845
|
-
) : M(A, "0,0.00"),
|
|
11851
|
+
) : M(A, "0,0.00"), GI = C(
|
|
11846
11852
|
({ goal: A, isInDrawer: t = !1, onClick: i }) => {
|
|
11847
11853
|
const { goals: n } = X(), { isMobile: r, isTablet: o } = zA(), I = r || o, {
|
|
11848
11854
|
backgroundColor: a,
|
|
@@ -11857,7 +11863,7 @@ const cl = (A, t) => {
|
|
|
11857
11863
|
}
|
|
11858
11864
|
];
|
|
11859
11865
|
let u = /* @__PURE__ */ e(Ka, {});
|
|
11860
|
-
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(
|
|
11866
|
+
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: [
|
|
11861
11867
|
/* @__PURE__ */ e(
|
|
11862
11868
|
rt,
|
|
11863
11869
|
{
|
|
@@ -12111,7 +12117,7 @@ const cl = (A, t) => {
|
|
|
12111
12117
|
}
|
|
12112
12118
|
)
|
|
12113
12119
|
] });
|
|
12114
|
-
},
|
|
12120
|
+
}, rn = C(({ trackType: A, onAddGoals: t }) => {
|
|
12115
12121
|
const { isMobile: i } = zA(), { goals: n } = X(), { orderedGoals: r, setSelectedGoal: o } = FA(), I = r.filter((f) => f.track_type === A), a = I.filter(
|
|
12116
12122
|
(f) => f.track_type === B.SAVINGS_TRACK && !f.has_been_spent || f.track_type !== B.SAVINGS_TRACK && !f.is_complete
|
|
12117
12123
|
), c = I.filter(
|
|
@@ -12124,7 +12130,7 @@ const cl = (A, t) => {
|
|
|
12124
12130
|
] }),
|
|
12125
12131
|
a.length > 0 ? /* @__PURE__ */ e(tt, { container: !0, spacing: 24, children: a.map((f, E, l) => (
|
|
12126
12132
|
// Goal should be full width in mobile or if it's the first goal (unless there are 2)
|
|
12127
|
-
/* @__PURE__ */ e(tt, { xs: i || E === 0 && l.length !== 2 ? 12 : 6, children: /* @__PURE__ */ e(
|
|
12133
|
+
/* @__PURE__ */ e(tt, { xs: i || E === 0 && l.length !== 2 ? 12 : 6, children: /* @__PURE__ */ e(GI, { goal: f, onClick: () => o(f) }, f.guid) }, E)
|
|
12128
12134
|
)) }) : /* @__PURE__ */ s(
|
|
12129
12135
|
P,
|
|
12130
12136
|
{
|
|
@@ -12143,7 +12149,7 @@ const cl = (A, t) => {
|
|
|
12143
12149
|
A !== B.RETIREMENT_TRACK && /* @__PURE__ */ s(P, { gap: 16, mt: 48, children: [
|
|
12144
12150
|
/* @__PURE__ */ e(R, { color: "text.secondary", variant: "Small", children: n.complete_title }),
|
|
12145
12151
|
c.length === 0 && /* @__PURE__ */ e(P, { alignItems: "center", bgcolor: "background.default", borderRadius: 2, py: 18, children: /* @__PURE__ */ e(HA, { sx: { color: "text.secondary" }, variant: "Small", children: d }) }),
|
|
12146
|
-
c.map((f) => /* @__PURE__ */ e(ze, { elevation: 2, sx: { borderRadius: 2 }, children: /* @__PURE__ */ e(
|
|
12152
|
+
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(P, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
12147
12153
|
/* @__PURE__ */ s(P, { alignItems: "center", direction: "row", gap: 6, children: [
|
|
12148
12154
|
/* @__PURE__ */ e(q, { color: "success", fill: !0, name: "check_circle", size: 20 }),
|
|
12149
12155
|
/* @__PURE__ */ e(R, { color: "text.secondary", variant: "Body", children: f.name })
|
|
@@ -12164,7 +12170,7 @@ const cl = (A, t) => {
|
|
|
12164
12170
|
c
|
|
12165
12171
|
),
|
|
12166
12172
|
children: [
|
|
12167
|
-
/* @__PURE__ */ e(xA, { children: /* @__PURE__ */ e(Qe, { sx: { bgcolor: n }, variant: "rounded", children: /* @__PURE__ */ e(
|
|
12173
|
+
/* @__PURE__ */ e(xA, { children: /* @__PURE__ */ e(Qe, { sx: { bgcolor: n }, variant: "rounded", children: /* @__PURE__ */ e(En, { name: r, sx: { color: "grey.900" } }) }) }),
|
|
12168
12174
|
/* @__PURE__ */ e(eA, { primary: o, secondary: I, sx: { mr: 24 } }),
|
|
12169
12175
|
!E && /* @__PURE__ */ e(ce, {}),
|
|
12170
12176
|
E && (d ? /* @__PURE__ */ e($a, {}) : /* @__PURE__ */ e(As, {}))
|
|
@@ -12173,7 +12179,7 @@ const cl = (A, t) => {
|
|
|
12173
12179
|
) }),
|
|
12174
12180
|
/* @__PURE__ */ e(G, { variant: "inset" }),
|
|
12175
12181
|
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: [
|
|
12176
|
-
/* @__PURE__ */ e(re, { sx: { mr: 8 }, children: /* @__PURE__ */ e(
|
|
12182
|
+
/* @__PURE__ */ e(re, { sx: { mr: 8 }, children: /* @__PURE__ */ e(En, { name: l.icon }) }),
|
|
12177
12183
|
/* @__PURE__ */ e(
|
|
12178
12184
|
eA,
|
|
12179
12185
|
{
|
|
@@ -12184,7 +12190,7 @@ const cl = (A, t) => {
|
|
|
12184
12190
|
/* @__PURE__ */ e(ce, {})
|
|
12185
12191
|
] }) }, v)) }) })
|
|
12186
12192
|
] }) });
|
|
12187
|
-
},
|
|
12193
|
+
}, MI = ({
|
|
12188
12194
|
accounts: A,
|
|
12189
12195
|
isOpen: t,
|
|
12190
12196
|
onClose: i,
|
|
@@ -12229,7 +12235,7 @@ const cl = (A, t) => {
|
|
|
12229
12235
|
] }, f.guid))
|
|
12230
12236
|
] }),
|
|
12231
12237
|
/* @__PURE__ */ e(
|
|
12232
|
-
|
|
12238
|
+
aI,
|
|
12233
12239
|
{
|
|
12234
12240
|
description: o.connect_description,
|
|
12235
12241
|
label: o.connect_button,
|
|
@@ -12244,7 +12250,7 @@ const cl = (A, t) => {
|
|
|
12244
12250
|
u === B.DEBT_TRACK ? c(!0) : o({
|
|
12245
12251
|
amount: 0,
|
|
12246
12252
|
current_amount: 0,
|
|
12247
|
-
goal_type:
|
|
12253
|
+
goal_type: Pn.SAVE_AMOUNT,
|
|
12248
12254
|
initial_amount: 0,
|
|
12249
12255
|
meta_type: v,
|
|
12250
12256
|
name: l,
|
|
@@ -12257,7 +12263,7 @@ const cl = (A, t) => {
|
|
|
12257
12263
|
account_guid: v.guid,
|
|
12258
12264
|
amount: 0,
|
|
12259
12265
|
current_amount: 0,
|
|
12260
|
-
goal_type:
|
|
12266
|
+
goal_type: Pn.KEEP_BALANCE_BELOW,
|
|
12261
12267
|
initial_amount: v.balance || 0,
|
|
12262
12268
|
interest_rate: v.interest_rate || 0,
|
|
12263
12269
|
meta_type: u,
|
|
@@ -12271,7 +12277,7 @@ const cl = (A, t) => {
|
|
|
12271
12277
|
return /* @__PURE__ */ s(P, { children: [
|
|
12272
12278
|
/* @__PURE__ */ e(rA, { sx: { bgcolor: "background.paper" }, children: d.map((l, v) => /* @__PURE__ */ e(Rl, { goalType: l, onClick: f }, v)) }),
|
|
12273
12279
|
/* @__PURE__ */ e(
|
|
12274
|
-
|
|
12280
|
+
MI,
|
|
12275
12281
|
{
|
|
12276
12282
|
accounts: I.filter((l) => !n.find((v) => v.account_guid === l.guid)),
|
|
12277
12283
|
isOpen: a,
|
|
@@ -12281,7 +12287,7 @@ const cl = (A, t) => {
|
|
|
12281
12287
|
}
|
|
12282
12288
|
)
|
|
12283
12289
|
] });
|
|
12284
|
-
},
|
|
12290
|
+
}, NI = ({ account: A }) => {
|
|
12285
12291
|
const { accounts: t } = X(), { setSelectedAccount: i } = Xe(), [n, r] = h.useState(!1);
|
|
12286
12292
|
return /* @__PURE__ */ s(W, { sx: { bgcolor: "background.paper" }, children: [
|
|
12287
12293
|
/* @__PURE__ */ s(aA, { onClick: () => {
|
|
@@ -12304,8 +12310,8 @@ const cl = (A, t) => {
|
|
|
12304
12310
|
/* @__PURE__ */ e(ce, {})
|
|
12305
12311
|
] }),
|
|
12306
12312
|
/* @__PURE__ */ e(IA, { isOpen: n, onClose: () => r(!1), title: t.account_details, children: /* @__PURE__ */ s(P, { children: [
|
|
12307
|
-
/* @__PURE__ */ e(
|
|
12308
|
-
/* @__PURE__ */ e(
|
|
12313
|
+
/* @__PURE__ */ e(Ar, {}),
|
|
12314
|
+
/* @__PURE__ */ e(UI, {})
|
|
12309
12315
|
] }) })
|
|
12310
12316
|
] });
|
|
12311
12317
|
}, Pl = C(({ goal: A }) => {
|
|
@@ -12350,7 +12356,7 @@ const cl = (A, t) => {
|
|
|
12350
12356
|
return /* @__PURE__ */ s(P, { children: [
|
|
12351
12357
|
c ? /* @__PURE__ */ e(W, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ s(aA, { onClick: () => f(!0), children: [
|
|
12352
12358
|
/* @__PURE__ */ e(eA, { children: /* @__PURE__ */ s(P, { alignItems: "center", color: "action.active", direction: "row", gap: 8, children: [
|
|
12353
|
-
/* @__PURE__ */ e(
|
|
12359
|
+
/* @__PURE__ */ e(mo, { filled: !0 }),
|
|
12354
12360
|
r.details_add_account
|
|
12355
12361
|
] }) }),
|
|
12356
12362
|
/* @__PURE__ */ e(ce, { color: "primary" })
|
|
@@ -12404,7 +12410,7 @@ const cl = (A, t) => {
|
|
|
12404
12410
|
/* @__PURE__ */ e(ce, {})
|
|
12405
12411
|
] }) }, l.guid)) }),
|
|
12406
12412
|
/* @__PURE__ */ e(
|
|
12407
|
-
|
|
12413
|
+
aI,
|
|
12408
12414
|
{
|
|
12409
12415
|
description: r.connect_description,
|
|
12410
12416
|
label: r.connect_button,
|
|
@@ -12480,7 +12486,7 @@ const cl = (A, t) => {
|
|
|
12480
12486
|
);
|
|
12481
12487
|
}, Cl = C(({ goal: A }) => {
|
|
12482
12488
|
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 () => {
|
|
12483
|
-
o &&
|
|
12489
|
+
o && Go(o) && (await n({ ...i, birthday: gA(o) }), r(t.alert_goal_updated_birthday));
|
|
12484
12490
|
};
|
|
12485
12491
|
return /* @__PURE__ */ e(
|
|
12486
12492
|
Ge,
|
|
@@ -12493,7 +12499,7 @@ const cl = (A, t) => {
|
|
|
12493
12499
|
secondaryText: `${nA(yA(i.birthday ?? 0), AA.MONTH_DAY_YEAR)}`,
|
|
12494
12500
|
zeroStateText: !A.guid && !i.birthday ? t.add_birthday : void 0,
|
|
12495
12501
|
children: /* @__PURE__ */ e(Mt, { dateAdapter: Ct, children: /* @__PURE__ */ e(
|
|
12496
|
-
|
|
12502
|
+
yn,
|
|
12497
12503
|
{
|
|
12498
12504
|
label: t.details_birthday,
|
|
12499
12505
|
onChange: I,
|
|
@@ -12529,18 +12535,18 @@ const cl = (A, t) => {
|
|
|
12529
12535
|
};
|
|
12530
12536
|
return /* @__PURE__ */ s(P, { children: [
|
|
12531
12537
|
E.map((u) => /* @__PURE__ */ s(P, { children: [
|
|
12532
|
-
/* @__PURE__ */ e(
|
|
12538
|
+
/* @__PURE__ */ e(NI, { account: u }),
|
|
12533
12539
|
/* @__PURE__ */ e(G, {})
|
|
12534
12540
|
] }, u.guid)),
|
|
12535
12541
|
/* @__PURE__ */ e(W, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ s(aA, { onClick: () => d(!0), children: [
|
|
12536
12542
|
/* @__PURE__ */ e(eA, { children: /* @__PURE__ */ s(P, { alignItems: "center", color: "action.active", direction: "row", gap: 8, children: [
|
|
12537
|
-
/* @__PURE__ */ e(
|
|
12543
|
+
/* @__PURE__ */ e(mo, { filled: !0 }),
|
|
12538
12544
|
t.details_add_account
|
|
12539
12545
|
] }) }),
|
|
12540
12546
|
/* @__PURE__ */ e(ce, { color: "primary" })
|
|
12541
12547
|
] }) }),
|
|
12542
12548
|
/* @__PURE__ */ e(
|
|
12543
|
-
|
|
12549
|
+
MI,
|
|
12544
12550
|
{
|
|
12545
12551
|
accounts: l,
|
|
12546
12552
|
isOpen: c,
|
|
@@ -12559,7 +12565,7 @@ const cl = (A, t) => {
|
|
|
12559
12565
|
return A.track_type === B.DEBT_TRACK ? o = t.details_debt_title : A.track_type === B.RETIREMENT_TRACK && (o = t.details_retirement_title), /* @__PURE__ */ s(P, { children: [
|
|
12560
12566
|
/* @__PURE__ */ s(P, { mx: 24, children: [
|
|
12561
12567
|
/* @__PURE__ */ e(R, { color: "text.secondary", sx: { mb: 4, mt: 24 }, variant: "XSmall", children: o }),
|
|
12562
|
-
/* @__PURE__ */ e(
|
|
12568
|
+
/* @__PURE__ */ e(GI, { goal: A, isInDrawer: !0 }),
|
|
12563
12569
|
/* @__PURE__ */ e(R, { color: "text.secondary", sx: { mb: 4, mt: 24 }, variant: "XSmall", children: t.details_title })
|
|
12564
12570
|
] }),
|
|
12565
12571
|
/* @__PURE__ */ s(rA, { sx: { bgcolor: "background.paper" }, children: [
|
|
@@ -12570,11 +12576,11 @@ const cl = (A, t) => {
|
|
|
12570
12576
|
/* @__PURE__ */ e(G, { sx: { ml: r === B.RETIREMENT_TRACK ? 24 : 0 } })
|
|
12571
12577
|
] }),
|
|
12572
12578
|
A.track_type === B.DEBT_TRACK && /* @__PURE__ */ s(Z, { children: [
|
|
12573
|
-
/* @__PURE__ */ e(
|
|
12579
|
+
/* @__PURE__ */ e(QI, { goal: A }),
|
|
12574
12580
|
/* @__PURE__ */ e(G, { sx: { ml: 24 } }),
|
|
12575
|
-
/* @__PURE__ */ e(
|
|
12581
|
+
/* @__PURE__ */ e(LI, { goal: A }),
|
|
12576
12582
|
/* @__PURE__ */ e(G, { sx: { ml: 24 } }),
|
|
12577
|
-
/* @__PURE__ */ e(
|
|
12583
|
+
/* @__PURE__ */ e(qI, { goal: A }),
|
|
12578
12584
|
/* @__PURE__ */ e(G, { variant: "fullWidth" })
|
|
12579
12585
|
] }),
|
|
12580
12586
|
A.track_type === B.RETIREMENT_TRACK && /* @__PURE__ */ s(Z, { children: [
|
|
@@ -12586,7 +12592,7 @@ const cl = (A, t) => {
|
|
|
12586
12592
|
] }),
|
|
12587
12593
|
/* @__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 }),
|
|
12588
12594
|
A.track_type !== B.RETIREMENT_TRACK && n && /* @__PURE__ */ s(Z, { children: [
|
|
12589
|
-
/* @__PURE__ */ e(
|
|
12595
|
+
/* @__PURE__ */ e(NI, { account: n }),
|
|
12590
12596
|
/* @__PURE__ */ e(G, {})
|
|
12591
12597
|
] }),
|
|
12592
12598
|
A.track_type === B.RETIREMENT_TRACK && /* @__PURE__ */ s(Z, { children: [
|
|
@@ -12653,7 +12659,7 @@ const cl = (A, t) => {
|
|
|
12653
12659
|
}
|
|
12654
12660
|
)
|
|
12655
12661
|
] });
|
|
12656
|
-
}),
|
|
12662
|
+
}), TI = ({
|
|
12657
12663
|
buttonText: A,
|
|
12658
12664
|
header: t,
|
|
12659
12665
|
icon: i,
|
|
@@ -12667,7 +12673,7 @@ const cl = (A, t) => {
|
|
|
12667
12673
|
alignItems: "center"
|
|
12668
12674
|
},
|
|
12669
12675
|
children: [
|
|
12670
|
-
/* @__PURE__ */ e(
|
|
12676
|
+
/* @__PURE__ */ e(En, { name: i, size: 54 }),
|
|
12671
12677
|
/* @__PURE__ */ e(lt, { color: "text.primary", children: t }),
|
|
12672
12678
|
/* @__PURE__ */ e(
|
|
12673
12679
|
R,
|
|
@@ -12737,28 +12743,28 @@ const cl = (A, t) => {
|
|
|
12737
12743
|
GA,
|
|
12738
12744
|
{
|
|
12739
12745
|
disabled: iA,
|
|
12740
|
-
label: /* @__PURE__ */ e(
|
|
12746
|
+
label: /* @__PURE__ */ e(nn, { subtitle: j, title: a.tab_saving_title })
|
|
12741
12747
|
}
|
|
12742
12748
|
),
|
|
12743
12749
|
/* @__PURE__ */ e(
|
|
12744
12750
|
GA,
|
|
12745
12751
|
{
|
|
12746
12752
|
disabled: iA,
|
|
12747
|
-
label: /* @__PURE__ */ e(
|
|
12753
|
+
label: /* @__PURE__ */ e(nn, { subtitle: m, title: a.tab_debt_title })
|
|
12748
12754
|
}
|
|
12749
12755
|
),
|
|
12750
12756
|
/* @__PURE__ */ e(
|
|
12751
12757
|
GA,
|
|
12752
12758
|
{
|
|
12753
12759
|
disabled: iA,
|
|
12754
|
-
label: /* @__PURE__ */ e(
|
|
12760
|
+
label: /* @__PURE__ */ e(nn, { subtitle: O, title: a.tab_retirement_title })
|
|
12755
12761
|
}
|
|
12756
12762
|
)
|
|
12757
12763
|
]
|
|
12758
12764
|
}
|
|
12759
12765
|
),
|
|
12760
12766
|
iA ? /* @__PURE__ */ e(
|
|
12761
|
-
|
|
12767
|
+
TI,
|
|
12762
12768
|
{
|
|
12763
12769
|
buttonText: a.add_goals_button,
|
|
12764
12770
|
header: a.create_goals_header,
|
|
@@ -12767,9 +12773,9 @@ const cl = (A, t) => {
|
|
|
12767
12773
|
subText: a.empty_state_subheader
|
|
12768
12774
|
}
|
|
12769
12775
|
) : /* @__PURE__ */ s(Z, { children: [
|
|
12770
|
-
H === 0 && /* @__PURE__ */ e(
|
|
12771
|
-
H === 1 && /* @__PURE__ */ e(
|
|
12772
|
-
H === 2 && /* @__PURE__ */ e(
|
|
12776
|
+
H === 0 && /* @__PURE__ */ e(rn, { onAddGoals: tA, trackType: B.SAVINGS_TRACK }),
|
|
12777
|
+
H === 1 && /* @__PURE__ */ e(rn, { onAddGoals: tA, trackType: B.DEBT_TRACK }),
|
|
12778
|
+
H === 2 && /* @__PURE__ */ e(rn, { onAddGoals: tA, trackType: B.RETIREMENT_TRACK })
|
|
12773
12779
|
] })
|
|
12774
12780
|
] }),
|
|
12775
12781
|
/* @__PURE__ */ e(pl, { onClose: Y }),
|
|
@@ -12798,7 +12804,7 @@ const cl = (A, t) => {
|
|
|
12798
12804
|
);
|
|
12799
12805
|
});
|
|
12800
12806
|
class wl {
|
|
12801
|
-
api = new
|
|
12807
|
+
api = new to("/", "");
|
|
12802
12808
|
globalStore;
|
|
12803
12809
|
alert = "";
|
|
12804
12810
|
goals = [];
|
|
@@ -12810,7 +12816,7 @@ class wl {
|
|
|
12810
12816
|
this.globalStore = t, DA(this);
|
|
12811
12817
|
}
|
|
12812
12818
|
initialize = async (t, i) => {
|
|
12813
|
-
this.api = new
|
|
12819
|
+
this.api = new to(t, i);
|
|
12814
12820
|
};
|
|
12815
12821
|
get orderedGoals() {
|
|
12816
12822
|
return this.goals.slice().sort((t, i) => t.position - i.position);
|
|
@@ -12964,7 +12970,7 @@ class wl {
|
|
|
12964
12970
|
}
|
|
12965
12971
|
};
|
|
12966
12972
|
}
|
|
12967
|
-
class
|
|
12973
|
+
class io {
|
|
12968
12974
|
fetchInstance;
|
|
12969
12975
|
constructor(t, i) {
|
|
12970
12976
|
this.fetchInstance = new Ae(t, i);
|
|
@@ -13194,7 +13200,7 @@ const yl = [
|
|
|
13194
13200
|
};
|
|
13195
13201
|
class jl {
|
|
13196
13202
|
alert = { message: "", severity: void 0 };
|
|
13197
|
-
api = new
|
|
13203
|
+
api = new io("/", "");
|
|
13198
13204
|
appConfig;
|
|
13199
13205
|
globalStore;
|
|
13200
13206
|
isLoading = !1;
|
|
@@ -13202,7 +13208,7 @@ class jl {
|
|
|
13202
13208
|
this.globalStore = t, DA(this);
|
|
13203
13209
|
}
|
|
13204
13210
|
initialize = async (t, i) => {
|
|
13205
|
-
this.api = new
|
|
13211
|
+
this.api = new io(t, i);
|
|
13206
13212
|
};
|
|
13207
13213
|
createSupportTicket = async (t) => {
|
|
13208
13214
|
try {
|
|
@@ -13232,7 +13238,7 @@ class jl {
|
|
|
13232
13238
|
);
|
|
13233
13239
|
}
|
|
13234
13240
|
}
|
|
13235
|
-
const ml = /^[ a-zA-ZÀ-ÿ0-9]+$/, Ol = 50,
|
|
13241
|
+
const ml = /^[ a-zA-ZÀ-ÿ0-9]+$/, Ol = 50, no = 65, Ll = ({
|
|
13236
13242
|
height: A = "calc(100dvh - 120px)",
|
|
13237
13243
|
onSelect: t
|
|
13238
13244
|
}) => {
|
|
@@ -13244,10 +13250,10 @@ const ml = /^[ a-zA-ZÀ-ÿ0-9]+$/, Ol = 50, io = 65, Ll = ({
|
|
|
13244
13250
|
t(l);
|
|
13245
13251
|
}, d = async (l) => {
|
|
13246
13252
|
(!l || ml.test(l)) && l.length <= Ol && (a(l), await r(l));
|
|
13247
|
-
}, f = h.useRef(null), E =
|
|
13253
|
+
}, f = h.useRef(null), E = Oo({
|
|
13248
13254
|
count: n.length,
|
|
13249
13255
|
getScrollElement: () => f.current,
|
|
13250
|
-
estimateSize: () =>
|
|
13256
|
+
estimateSize: () => no,
|
|
13251
13257
|
overscan: 5
|
|
13252
13258
|
});
|
|
13253
13259
|
return h.useEffect(() => E.measure(), [n]), /* @__PURE__ */ s(P, { className: "mx-mrt-lookup", children: [
|
|
@@ -13269,7 +13275,7 @@ const ml = /^[ a-zA-ZÀ-ÿ0-9]+$/, Ol = 50, io = 65, Ll = ({
|
|
|
13269
13275
|
return /* @__PURE__ */ s(
|
|
13270
13276
|
L,
|
|
13271
13277
|
{
|
|
13272
|
-
height:
|
|
13278
|
+
height: no,
|
|
13273
13279
|
position: "absolute",
|
|
13274
13280
|
sx: { transform: `translateY(${l.start}px)` },
|
|
13275
13281
|
width: "100%",
|
|
@@ -13289,7 +13295,7 @@ const ml = /^[ a-zA-ZÀ-ÿ0-9]+$/, Ol = 50, io = 65, Ll = ({
|
|
|
13289
13295
|
] }) }) })
|
|
13290
13296
|
] });
|
|
13291
13297
|
}, mP = C(Ll);
|
|
13292
|
-
class
|
|
13298
|
+
class ro {
|
|
13293
13299
|
fetchInstance;
|
|
13294
13300
|
constructor(t, i) {
|
|
13295
13301
|
this.fetchInstance = new Ae(t, i);
|
|
@@ -13301,7 +13307,7 @@ class no {
|
|
|
13301
13307
|
getMerchantByGuid = async (t) => this.fetchInstance.get(`${Q.MERCHANTS}/${t}`).then((i) => i.merchant);
|
|
13302
13308
|
}
|
|
13303
13309
|
class Ql {
|
|
13304
|
-
api = new
|
|
13310
|
+
api = new ro("/", "");
|
|
13305
13311
|
merchant = null;
|
|
13306
13312
|
merchants = [];
|
|
13307
13313
|
isLoading = !1;
|
|
@@ -13309,7 +13315,7 @@ class Ql {
|
|
|
13309
13315
|
DA(this);
|
|
13310
13316
|
}
|
|
13311
13317
|
initialize = async (t, i) => {
|
|
13312
|
-
this.api = new
|
|
13318
|
+
this.api = new ro(t, i);
|
|
13313
13319
|
};
|
|
13314
13320
|
loadMerchants = async (t = "") => {
|
|
13315
13321
|
this.isLoading = !0;
|
|
@@ -13323,13 +13329,13 @@ class Ql {
|
|
|
13323
13329
|
F(() => this.merchant = i);
|
|
13324
13330
|
};
|
|
13325
13331
|
}
|
|
13326
|
-
const
|
|
13332
|
+
const YI = 13, ql = (A, t) => A.filter((i) => {
|
|
13327
13333
|
const { is_closed: n, is_deleted: r, is_hidden: o, is_manual: I } = i;
|
|
13328
13334
|
return n || r || o ? !1 : I || !i.guid ? !0 : t.some((a) => A.some((c) => a.guid === c.member_guid));
|
|
13329
|
-
}), Gl = (A, t) => [...A, ...t],
|
|
13335
|
+
}), Gl = (A, t) => [...A, ...t], oo = (A) => {
|
|
13330
13336
|
if (A && A.length > 0)
|
|
13331
13337
|
return A[A.length - 1];
|
|
13332
|
-
}, Ml = (A, t) => A.year_month - t.year_month, Nl = () => Array.from({ length:
|
|
13338
|
+
}, 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) => {
|
|
13333
13339
|
const I = t.filter(
|
|
13334
13340
|
({ year_month: f }) => f === parseInt(le(yA(o), "yyyyMM"))
|
|
13335
13341
|
), a = A.map((f) => {
|
|
@@ -13344,7 +13350,7 @@ const TI = 13, ql = (A, t) => A.filter((i) => {
|
|
|
13344
13350
|
if (!E && r.length === 0)
|
|
13345
13351
|
return {
|
|
13346
13352
|
...l,
|
|
13347
|
-
value:
|
|
13353
|
+
value: _n(f) ? -(f.balance ?? 0) : f.balance ?? 0
|
|
13348
13354
|
};
|
|
13349
13355
|
if (!E) {
|
|
13350
13356
|
const v = r[0].accounts.find((u) => u.guid === f.guid);
|
|
@@ -13373,7 +13379,7 @@ const TI = 13, ql = (A, t) => A.filter((i) => {
|
|
|
13373
13379
|
},
|
|
13374
13380
|
...r
|
|
13375
13381
|
];
|
|
13376
|
-
}, []).slice(
|
|
13382
|
+
}, []).slice(YI - i), Yl = (A) => {
|
|
13377
13383
|
const t = [], i = [];
|
|
13378
13384
|
let n = 0, r = 0;
|
|
13379
13385
|
return A?.accounts.forEach((o) => {
|
|
@@ -13383,7 +13389,7 @@ const TI = 13, ql = (A, t) => A.filter((i) => {
|
|
|
13383
13389
|
const t = [], i = [];
|
|
13384
13390
|
let n = 0, r = 0;
|
|
13385
13391
|
return A.forEach((o) => {
|
|
13386
|
-
if (
|
|
13392
|
+
if (_n(o)) {
|
|
13387
13393
|
const I = o.balance ?? 0;
|
|
13388
13394
|
i.push({ accountName: o.name, accountType: o.account_type, balance: I }), r += I;
|
|
13389
13395
|
} else {
|
|
@@ -13391,14 +13397,14 @@ const TI = 13, ql = (A, t) => A.filter((i) => {
|
|
|
13391
13397
|
t.push({ accountName: o.name, accountType: o.account_type, balance: I }), n += I;
|
|
13392
13398
|
}
|
|
13393
13399
|
}), { assets: t, liabilities: i, totalAssets: n, totalLiabilities: r };
|
|
13394
|
-
},
|
|
13400
|
+
}, Io = (A) => {
|
|
13395
13401
|
const t = A.reduce((i, n) => {
|
|
13396
13402
|
const r = n.accountType;
|
|
13397
13403
|
return i[r] || (i[r] = []), i[r].push(n), i;
|
|
13398
13404
|
}, {});
|
|
13399
13405
|
return Object.entries(t).map(([i, n]) => ({
|
|
13400
|
-
icon: Bs[+i] ||
|
|
13401
|
-
name:
|
|
13406
|
+
icon: Bs[+i] || Uo[+i],
|
|
13407
|
+
name: Ln[+i],
|
|
13402
13408
|
accounts: n
|
|
13403
13409
|
}));
|
|
13404
13410
|
};
|
|
@@ -13428,7 +13434,7 @@ class Bl {
|
|
|
13428
13434
|
};
|
|
13429
13435
|
loadChartData = async (t) => {
|
|
13430
13436
|
try {
|
|
13431
|
-
const { accounts: i, monthlyAccountBalances: n } = this.netWorthData, r = await Tl(i, n, t), o =
|
|
13437
|
+
const { accounts: i, monthlyAccountBalances: n } = this.netWorthData, r = await Tl(i, n, t), o = oo(r);
|
|
13432
13438
|
F(() => {
|
|
13433
13439
|
this.netWorthChartData = r, this.selectedData = o;
|
|
13434
13440
|
});
|
|
@@ -13444,7 +13450,7 @@ class Bl {
|
|
|
13444
13450
|
this.netWorthData.accounts
|
|
13445
13451
|
);
|
|
13446
13452
|
return {
|
|
13447
|
-
netWorth:
|
|
13453
|
+
netWorth: oo(this.netWorthChartData),
|
|
13448
13454
|
assets: t,
|
|
13449
13455
|
liabilities: i,
|
|
13450
13456
|
totalAssets: n,
|
|
@@ -13479,7 +13485,7 @@ const Sl = ({
|
|
|
13479
13485
|
stroke: c.palette.success.main
|
|
13480
13486
|
});
|
|
13481
13487
|
return /* @__PURE__ */ e(
|
|
13482
|
-
|
|
13488
|
+
Nn,
|
|
13483
13489
|
{
|
|
13484
13490
|
baseline: "min",
|
|
13485
13491
|
colors: [c.palette.success.main],
|
|
@@ -13529,7 +13535,7 @@ const Sl = ({
|
|
|
13529
13535
|
eA,
|
|
13530
13536
|
{
|
|
13531
13537
|
primary: /* @__PURE__ */ s(P, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
|
|
13532
|
-
/* @__PURE__ */ e(R, { variant: "Body", children:
|
|
13538
|
+
/* @__PURE__ */ e(R, { variant: "Body", children: Zo(A.x) }),
|
|
13533
13539
|
/* @__PURE__ */ e(OA, { amount: A.y, sx: { color: "inherit" }, variant: "Body" })
|
|
13534
13540
|
] })
|
|
13535
13541
|
}
|
|
@@ -13607,12 +13613,12 @@ const Sl = ({
|
|
|
13607
13613
|
/* @__PURE__ */ e(OA, { amount: n.change, color: I, variant: t }),
|
|
13608
13614
|
/* @__PURE__ */ e(R, { variant: "Small", children: A })
|
|
13609
13615
|
] });
|
|
13610
|
-
},
|
|
13616
|
+
}, er = C(Zl), Jl = ({ hoveredData: A, selectedData: t }) => {
|
|
13611
13617
|
const { net_worth: i } = X(), n = oe(), r = A || t, o = Is(Ai(r.x), "MMMM");
|
|
13612
13618
|
return /* @__PURE__ */ s(P, { alignItems: "center", direction: "column", m: 24, children: [
|
|
13613
13619
|
/* @__PURE__ */ e(R, { color: n.palette.secondary.main, variant: "Small", children: `${o} ${i.net_worth}` }),
|
|
13614
13620
|
/* @__PURE__ */ e(OA, { amount: r.y, variant: "H2" }),
|
|
13615
|
-
/* @__PURE__ */ e(
|
|
13621
|
+
/* @__PURE__ */ e(er, { currencyLabel: i.this_month, netWorth: r, theme: n })
|
|
13616
13622
|
] });
|
|
13617
13623
|
}, _l = C(Jl), $l = ({ accounts: A, name: t, icon: i }) => {
|
|
13618
13624
|
const [n, r] = h.useState(!1);
|
|
@@ -13642,7 +13648,7 @@ const Sl = ({
|
|
|
13642
13648
|
I < A.length - 1 ? /* @__PURE__ */ e(G, { variant: "inset" }) : /* @__PURE__ */ e(G, {})
|
|
13643
13649
|
] }, o.accountName)) })
|
|
13644
13650
|
] });
|
|
13645
|
-
},
|
|
13651
|
+
}, 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 = ({
|
|
13646
13652
|
netWorth: A,
|
|
13647
13653
|
assets: t,
|
|
13648
13654
|
liabilities: i,
|
|
@@ -13666,7 +13672,7 @@ const Sl = ({
|
|
|
13666
13672
|
/* @__PURE__ */ e(R, { variant: "Body", children: o.current_net_worth }),
|
|
13667
13673
|
/* @__PURE__ */ e(OA, { amount: A?.y ?? 0, variant: "H1" }),
|
|
13668
13674
|
A && /* @__PURE__ */ e(
|
|
13669
|
-
|
|
13675
|
+
er,
|
|
13670
13676
|
{
|
|
13671
13677
|
currencyLabel: o.this_month,
|
|
13672
13678
|
iconSize: 20,
|
|
@@ -13687,7 +13693,7 @@ const Sl = ({
|
|
|
13687
13693
|
] })
|
|
13688
13694
|
}
|
|
13689
13695
|
) }),
|
|
13690
|
-
/* @__PURE__ */ e(
|
|
13696
|
+
/* @__PURE__ */ e(ao, { groupedAccounts: Io(t) }),
|
|
13691
13697
|
/* @__PURE__ */ e(me, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(
|
|
13692
13698
|
eA,
|
|
13693
13699
|
{
|
|
@@ -13697,7 +13703,7 @@ const Sl = ({
|
|
|
13697
13703
|
] })
|
|
13698
13704
|
}
|
|
13699
13705
|
) }),
|
|
13700
|
-
/* @__PURE__ */ e(
|
|
13706
|
+
/* @__PURE__ */ e(ao, { groupedAccounts: Io(i) })
|
|
13701
13707
|
] })
|
|
13702
13708
|
] });
|
|
13703
13709
|
}, e9 = C(A9), t9 = ({
|
|
@@ -13710,9 +13716,9 @@ const Sl = ({
|
|
|
13710
13716
|
const { net_worth: o } = X(), I = RA();
|
|
13711
13717
|
return /* @__PURE__ */ s(Z, { children: [
|
|
13712
13718
|
/* @__PURE__ */ s(P, { alignItems: "center", justifyContent: "space-between", mb: 8, pt: 24, children: [
|
|
13713
|
-
/* @__PURE__ */ e(R, { variant: "Small", children:
|
|
13719
|
+
/* @__PURE__ */ e(R, { variant: "Small", children: Zo(A?.x) }),
|
|
13714
13720
|
/* @__PURE__ */ e(R, { variant: "Body", children: o.total_change }),
|
|
13715
|
-
A && /* @__PURE__ */ e(
|
|
13721
|
+
A && /* @__PURE__ */ e(er, { currencyVariant: "H1", iconSize: 32, netWorth: A, theme: I })
|
|
13716
13722
|
] }),
|
|
13717
13723
|
/* @__PURE__ */ s(rA, { children: [
|
|
13718
13724
|
/* @__PURE__ */ e(me, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(
|
|
@@ -13781,10 +13787,10 @@ const Sl = ({
|
|
|
13781
13787
|
title: i
|
|
13782
13788
|
}) => {
|
|
13783
13789
|
let n;
|
|
13784
|
-
const { refreshAccounts: r } = CA(), { loadWidget: o } =
|
|
13790
|
+
const { refreshAccounts: r } = CA(), { loadWidget: o } = iI(), { connect: I } = X(), a = oe(), [c, d] = h.useState(!1), [f, E] = h.useState(!1);
|
|
13785
13791
|
return h.useEffect(() => (t ? (d(!0), o({ widget: "connections_widget", mode: a.palette.mode }).then((l) => {
|
|
13786
13792
|
n = new Ua({
|
|
13787
|
-
container: `#${
|
|
13793
|
+
container: `#${Or}`,
|
|
13788
13794
|
style: {
|
|
13789
13795
|
height: "calc(100% - 62px)",
|
|
13790
13796
|
width: "100%",
|
|
@@ -13809,13 +13815,13 @@ const Sl = ({
|
|
|
13809
13815
|
A(), r();
|
|
13810
13816
|
},
|
|
13811
13817
|
title: i,
|
|
13812
|
-
children: /* @__PURE__ */ s("div", { id:
|
|
13818
|
+
children: /* @__PURE__ */ s("div", { id: Or, children: [
|
|
13813
13819
|
f && /* @__PURE__ */ e(Hi, { status: ct.Error }),
|
|
13814
13820
|
c && /* @__PURE__ */ e(Hi, { status: ct.Loading })
|
|
13815
13821
|
] })
|
|
13816
13822
|
}
|
|
13817
13823
|
);
|
|
13818
|
-
},
|
|
13824
|
+
}, VI = C(n9), OP = C(({ onBackClick: A }) => {
|
|
13819
13825
|
const { isInitialized: t, selectedAccounts: i, setSelectedAccounts: n } = pA(), { accounts: r, net_worth: o } = X(), { accounts: I } = CA(), {
|
|
13820
13826
|
assetsLiabilities: a,
|
|
13821
13827
|
gainsLosses: c,
|
|
@@ -13889,7 +13895,7 @@ const Sl = ({
|
|
|
13889
13895
|
}
|
|
13890
13896
|
)
|
|
13891
13897
|
] }) : /* @__PURE__ */ e(
|
|
13892
|
-
|
|
13898
|
+
TI,
|
|
13893
13899
|
{
|
|
13894
13900
|
buttonText: o.empty_widget_button,
|
|
13895
13901
|
header: o.empty_widget_header,
|
|
@@ -13899,7 +13905,7 @@ const Sl = ({
|
|
|
13899
13905
|
}
|
|
13900
13906
|
),
|
|
13901
13907
|
/* @__PURE__ */ e(
|
|
13902
|
-
|
|
13908
|
+
VI,
|
|
13903
13909
|
{
|
|
13904
13910
|
onClose: () => Y(!1),
|
|
13905
13911
|
showConnectionsWidget: tA,
|
|
@@ -13958,7 +13964,7 @@ function r9(A) {
|
|
|
13958
13964
|
});
|
|
13959
13965
|
}
|
|
13960
13966
|
class o9 {
|
|
13961
|
-
api = new
|
|
13967
|
+
api = new gr("/", "");
|
|
13962
13968
|
isLoading = !0;
|
|
13963
13969
|
notifications = [];
|
|
13964
13970
|
recentNotifications = [];
|
|
@@ -13966,7 +13972,7 @@ class o9 {
|
|
|
13966
13972
|
DA(this, { notifications: is });
|
|
13967
13973
|
}
|
|
13968
13974
|
initialize = async (t, i) => {
|
|
13969
|
-
this.api = new
|
|
13975
|
+
this.api = new gr(t, i), await this.loadNotifications();
|
|
13970
13976
|
};
|
|
13971
13977
|
get newNotifications() {
|
|
13972
13978
|
return this.recentNotifications.filter((t) => !t.has_been_viewed);
|
|
@@ -14011,7 +14017,7 @@ const I9 = (A, t) => {
|
|
|
14011
14017
|
}
|
|
14012
14018
|
) }) : /* @__PURE__ */ e("div", { style: a.badge, children: /* @__PURE__ */ e(be, { categoryGuid: o?.category_guid, size: 36 }) });
|
|
14013
14019
|
}, s9 = C(a9), c9 = ({ notification: A, onClick: t }) => {
|
|
14014
|
-
const { updateNotification: i } =
|
|
14020
|
+
const { updateNotification: i } = nI(), n = nt(), r = {
|
|
14015
14021
|
card: {
|
|
14016
14022
|
alignItems: "center",
|
|
14017
14023
|
borderRadius: 2,
|
|
@@ -14045,7 +14051,7 @@ const I9 = (A, t) => {
|
|
|
14045
14051
|
/* @__PURE__ */ e(R, { bold: !A.has_been_viewed, truncate: !1, variant: "Small", children: A.content })
|
|
14046
14052
|
] });
|
|
14047
14053
|
}, 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 }) => {
|
|
14048
|
-
const { isLoading: t, recentNotifications: i, markAllAsViewed: n } =
|
|
14054
|
+
const { isLoading: t, recentNotifications: i, markAllAsViewed: n } = nI(), { notifications: r } = X(), o = (I) => {
|
|
14049
14055
|
A?.(I);
|
|
14050
14056
|
};
|
|
14051
14057
|
return Ht(() => () => {
|
|
@@ -14065,7 +14071,7 @@ const I9 = (A, t) => {
|
|
|
14065
14071
|
})
|
|
14066
14072
|
] });
|
|
14067
14073
|
}, QP = C(d9);
|
|
14068
|
-
class
|
|
14074
|
+
class so {
|
|
14069
14075
|
fetchInstance;
|
|
14070
14076
|
constructor(t, i) {
|
|
14071
14077
|
this.fetchInstance = new Ae(t, i);
|
|
@@ -14081,7 +14087,7 @@ class ao {
|
|
|
14081
14087
|
updateDevice = async (t) => this.fetchInstance.put(`${Q.DEVICES}/${t.guid}`, t).then((i) => i.device);
|
|
14082
14088
|
updateNotificationProfile = async (t) => this.fetchInstance.put(`${Q.NOTIFICATION_PROFILES}/${t.guid}`, t).then((i) => i.notification_profile);
|
|
14083
14089
|
}
|
|
14084
|
-
const
|
|
14090
|
+
const co = "PARENT-ENTITY", E9 = (A, t) => {
|
|
14085
14091
|
switch (A) {
|
|
14086
14092
|
case LA.BudgetExceeded:
|
|
14087
14093
|
return t.notification_budget_exceeded;
|
|
@@ -14112,9 +14118,9 @@ const so = "PARENT-ENTITY", E9 = (A, t) => {
|
|
|
14112
14118
|
opted_out_of_sms_notifications: f,
|
|
14113
14119
|
opted_out_of_push_notifications: E
|
|
14114
14120
|
} = r;
|
|
14115
|
-
for (const l of n.filter((v) => v.entity_guid ===
|
|
14121
|
+
for (const l of n.filter((v) => v.entity_guid === co)) {
|
|
14116
14122
|
const v = E9(l.notification_type, i), u = n.filter(
|
|
14117
|
-
(b) => b.entity_guid !==
|
|
14123
|
+
(b) => b.entity_guid !== co && b.notification_type === l.notification_type
|
|
14118
14124
|
), H = [];
|
|
14119
14125
|
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({
|
|
14120
14126
|
...l,
|
|
@@ -14131,7 +14137,7 @@ const so = "PARENT-ENTITY", E9 = (A, t) => {
|
|
|
14131
14137
|
};
|
|
14132
14138
|
class l9 {
|
|
14133
14139
|
globalStore;
|
|
14134
|
-
api = new
|
|
14140
|
+
api = new so("/", "");
|
|
14135
14141
|
transactionApi = new gi("/", "");
|
|
14136
14142
|
alert = { message: "", severity: void 0 };
|
|
14137
14143
|
devices = [];
|
|
@@ -14142,7 +14148,7 @@ class l9 {
|
|
|
14142
14148
|
this.globalStore = t, DA(this);
|
|
14143
14149
|
}
|
|
14144
14150
|
initialize = async (t, i) => {
|
|
14145
|
-
this.api = new
|
|
14151
|
+
this.api = new so(t, i), this.transactionApi = new gi(t, i);
|
|
14146
14152
|
};
|
|
14147
14153
|
get accountProfiles() {
|
|
14148
14154
|
return this.detailedNotificationProfiles.filter(
|
|
@@ -14369,7 +14375,7 @@ const u9 = ({
|
|
|
14369
14375
|
] }),
|
|
14370
14376
|
/* @__PURE__ */ e(lt, { color: "text.primary", sx: { mt: 24, whiteSpace: { sm: "nowrap", xs: "wrap" } }, children: o })
|
|
14371
14377
|
] });
|
|
14372
|
-
},
|
|
14378
|
+
}, Cn = ({
|
|
14373
14379
|
altImage: A,
|
|
14374
14380
|
content: t,
|
|
14375
14381
|
hasDivider: i = !0,
|
|
@@ -15215,7 +15221,7 @@ const u9 = ({
|
|
|
15215
15221
|
}
|
|
15216
15222
|
),
|
|
15217
15223
|
"why-are-some-of-my-transactions-uncategorized": /* @__PURE__ */ e(
|
|
15218
|
-
|
|
15224
|
+
Cn,
|
|
15219
15225
|
{
|
|
15220
15226
|
altImage: A,
|
|
15221
15227
|
content: /* @__PURE__ */ s(h.Fragment, { children: [
|
|
@@ -16169,7 +16175,7 @@ const u9 = ({
|
|
|
16169
16175
|
}
|
|
16170
16176
|
),
|
|
16171
16177
|
/* @__PURE__ */ e(
|
|
16172
|
-
|
|
16178
|
+
Cn,
|
|
16173
16179
|
{
|
|
16174
16180
|
altImage: A.transactions_widget_overview.categorizing_transactions_alt_image,
|
|
16175
16181
|
content: /* @__PURE__ */ s(h.Fragment, { children: [
|
|
@@ -16212,7 +16218,7 @@ const u9 = ({
|
|
|
16212
16218
|
}
|
|
16213
16219
|
),
|
|
16214
16220
|
/* @__PURE__ */ e(
|
|
16215
|
-
|
|
16221
|
+
Cn,
|
|
16216
16222
|
{
|
|
16217
16223
|
altImage: A.transactions_widget_overview.transaction_rules_alt_image,
|
|
16218
16224
|
content: /* @__PURE__ */ s(h.Fragment, { children: [
|
|
@@ -16722,7 +16728,7 @@ const u9 = ({
|
|
|
16722
16728
|
return /* @__PURE__ */ e(P, { sx: { flex: 1, gap: 12, maxWidth: { md: "calc(50% - 6px)" } }, children: v.map(({ guid: u, icon: H, topics: b, title: p }, y) => {
|
|
16723
16729
|
const x = y + E;
|
|
16724
16730
|
return /* @__PURE__ */ s(
|
|
16725
|
-
|
|
16731
|
+
xn,
|
|
16726
16732
|
{
|
|
16727
16733
|
disableGutters: !0,
|
|
16728
16734
|
expanded: x === a,
|
|
@@ -16741,7 +16747,7 @@ const u9 = ({
|
|
|
16741
16747
|
}),
|
|
16742
16748
|
children: [
|
|
16743
16749
|
/* @__PURE__ */ e(
|
|
16744
|
-
|
|
16750
|
+
jn,
|
|
16745
16751
|
{
|
|
16746
16752
|
expandIcon: /* @__PURE__ */ e(ji, { sx: { color: "text.primary" } }),
|
|
16747
16753
|
sx: { height: 64, p: "14px 24px" },
|
|
@@ -16753,7 +16759,7 @@ const u9 = ({
|
|
|
16753
16759
|
),
|
|
16754
16760
|
/* @__PURE__ */ e(G, {}),
|
|
16755
16761
|
/* @__PURE__ */ e(
|
|
16756
|
-
|
|
16762
|
+
Dn,
|
|
16757
16763
|
{
|
|
16758
16764
|
sx: {
|
|
16759
16765
|
ml: 56,
|
|
@@ -16996,7 +17002,7 @@ const u9 = ({
|
|
|
16996
17002
|
}) => {
|
|
16997
17003
|
const [i, n] = h.useState(null);
|
|
16998
17004
|
return /* @__PURE__ */ e(P, { sx: { flex: 1, gap: 12, p: 12 }, children: A.map(({ icon: r, topics: o, title: I }, a) => /* @__PURE__ */ s(
|
|
16999
|
-
|
|
17005
|
+
xn,
|
|
17000
17006
|
{
|
|
17001
17007
|
disableGutters: !0,
|
|
17002
17008
|
expanded: a === i,
|
|
@@ -17006,7 +17012,7 @@ const u9 = ({
|
|
|
17006
17012
|
sx: pv,
|
|
17007
17013
|
children: [
|
|
17008
17014
|
/* @__PURE__ */ e(
|
|
17009
|
-
|
|
17015
|
+
jn,
|
|
17010
17016
|
{
|
|
17011
17017
|
expandIcon: /* @__PURE__ */ e(ji, { sx: { color: "text.primary" } }),
|
|
17012
17018
|
sx: { p: "14px 24px", height: 64 },
|
|
@@ -17018,7 +17024,7 @@ const u9 = ({
|
|
|
17018
17024
|
),
|
|
17019
17025
|
/* @__PURE__ */ e(G, {}),
|
|
17020
17026
|
/* @__PURE__ */ e(
|
|
17021
|
-
|
|
17027
|
+
Dn,
|
|
17022
17028
|
{
|
|
17023
17029
|
sx: {
|
|
17024
17030
|
ml: 56,
|
|
@@ -17057,16 +17063,16 @@ const u9 = ({
|
|
|
17057
17063
|
borderBottomLeftRadius: 8,
|
|
17058
17064
|
borderBottomRightRadius: 8
|
|
17059
17065
|
}
|
|
17060
|
-
}),
|
|
17066
|
+
}), fo = {
|
|
17061
17067
|
institutionName: "",
|
|
17062
17068
|
institutionWebsite: ""
|
|
17063
|
-
},
|
|
17069
|
+
}, on = {
|
|
17064
17070
|
institutionName: "",
|
|
17065
17071
|
institutionLoginPage: "",
|
|
17066
17072
|
institutionWebsite: ""
|
|
17067
17073
|
}, wv = C(
|
|
17068
17074
|
({ copy: A, isOpen: t, onClose: i, onSave: n }) => {
|
|
17069
|
-
const { alert: r, isLoading: o, setAlert: I } =
|
|
17075
|
+
const { alert: r, isLoading: o, setAlert: I } = Yn(), [a, c] = h.useState(fo), [d, f] = h.useState(on), E = [
|
|
17070
17076
|
{ name: "institutionName", required: !0 },
|
|
17071
17077
|
{ name: "institutionWebsite", required: !0 },
|
|
17072
17078
|
{ name: "institutionLoginPage", required: !1 }
|
|
@@ -17074,7 +17080,7 @@ const u9 = ({
|
|
|
17074
17080
|
...H,
|
|
17075
17081
|
label: A.popular_topics_missing_institution_fields[b.toString()]
|
|
17076
17082
|
})), l = () => {
|
|
17077
|
-
c(
|
|
17083
|
+
c(fo), f(on), i();
|
|
17078
17084
|
}, v = (H) => {
|
|
17079
17085
|
const {
|
|
17080
17086
|
target: { name: b, value: p }
|
|
@@ -17095,7 +17101,7 @@ const u9 = ({
|
|
|
17095
17101
|
E.forEach(({ label: p, name: y, required: x }) => {
|
|
17096
17102
|
const w = d[y];
|
|
17097
17103
|
x && !w && (H[y] = `${p} ${A.request_support_required_message}`, b = !1), (y === "institutionWebsite" || y === "institutionLoginPage") && w && !/(.+)\.(.{2,})/g.test(w) && (H[y] = A.request_support_valid_url_message, b = !1);
|
|
17098
|
-
}), c(H), b && (n(d), f(
|
|
17104
|
+
}), c(H), b && (n(d), f(on));
|
|
17099
17105
|
},
|
|
17100
17106
|
secondaryColor: "primary",
|
|
17101
17107
|
title: A.request_support,
|
|
@@ -17156,7 +17162,7 @@ const u9 = ({
|
|
|
17156
17162
|
}
|
|
17157
17163
|
),
|
|
17158
17164
|
/* @__PURE__ */ e(re, { children: /* @__PURE__ */ e(ce, {}) })
|
|
17159
|
-
] }) }),
|
|
17165
|
+
] }) }), 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: [
|
|
17160
17166
|
/* @__PURE__ */ e(
|
|
17161
17167
|
yv,
|
|
17162
17168
|
{
|
|
@@ -17213,7 +17219,7 @@ const u9 = ({
|
|
|
17213
17219
|
children: A.request_support_institution_topic_label
|
|
17214
17220
|
}
|
|
17215
17221
|
),
|
|
17216
|
-
/* @__PURE__ */ e(
|
|
17222
|
+
/* @__PURE__ */ e(BI, { list: a, onClick: i, sx: { fontWeight: 600 } })
|
|
17217
17223
|
] }) });
|
|
17218
17224
|
}, jv = ({ copy: A, onButtonClick: t }) => {
|
|
17219
17225
|
const i = mv();
|
|
@@ -17315,7 +17321,7 @@ const u9 = ({
|
|
|
17315
17321
|
] }) });
|
|
17316
17322
|
}, Qv = C(
|
|
17317
17323
|
({ copy: A, isOpen: t, onClose: i }) => {
|
|
17318
|
-
const { alert: n, createSupportTicket: r, isLoading: o, setAlert: I } =
|
|
17324
|
+
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({
|
|
17319
17325
|
isOpen: !1,
|
|
17320
17326
|
topic: "",
|
|
17321
17327
|
type: void 0
|
|
@@ -17373,7 +17379,7 @@ const u9 = ({
|
|
|
17373
17379
|
}
|
|
17374
17380
|
),
|
|
17375
17381
|
/* @__PURE__ */ e(
|
|
17376
|
-
|
|
17382
|
+
BI,
|
|
17377
17383
|
{
|
|
17378
17384
|
list: p,
|
|
17379
17385
|
onClick: w,
|
|
@@ -17470,7 +17476,7 @@ const u9 = ({
|
|
|
17470
17476
|
] }) });
|
|
17471
17477
|
}
|
|
17472
17478
|
), qv = ({ sx: A }) => {
|
|
17473
|
-
const [t, i] = h.useState(!1), [n, r] = h.useState(null), { help: o } = X(), { isInitialized: I } = oi(), { appConfig: a, helpCategories: c, loadAppConfig: d } =
|
|
17479
|
+
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;
|
|
17474
17480
|
h.useEffect(() => {
|
|
17475
17481
|
!I || !E || d(E);
|
|
17476
17482
|
}, [I, E]);
|
|
@@ -17727,7 +17733,7 @@ const u9 = ({
|
|
|
17727
17733
|
] }),
|
|
17728
17734
|
/* @__PURE__ */ s(P, { direction: n ? "column" : "row", spacing: n ? 44 : 24, sx: { mb: 44 }, children: [
|
|
17729
17735
|
/* @__PURE__ */ e(Mt, { dateAdapter: Ct, children: /* @__PURE__ */ e(
|
|
17730
|
-
|
|
17736
|
+
yn,
|
|
17731
17737
|
{
|
|
17732
17738
|
label: t.birthdate,
|
|
17733
17739
|
onChange: D,
|
|
@@ -17800,7 +17806,7 @@ const Bv = ({
|
|
|
17800
17806
|
field: "created_at",
|
|
17801
17807
|
headerName: r.mobile_devices_column_added,
|
|
17802
17808
|
renderHeader: we,
|
|
17803
|
-
valueFormatter: (a) =>
|
|
17809
|
+
valueFormatter: (a) => Qo(yA(a), { addSuffix: !0 }),
|
|
17804
17810
|
sortable: !0,
|
|
17805
17811
|
hideSortIcons: !1,
|
|
17806
17812
|
flex: 1,
|
|
@@ -17877,14 +17883,14 @@ const Bv = ({
|
|
|
17877
17883
|
};
|
|
17878
17884
|
return /* @__PURE__ */ s(P, { mx: -28, sx: { "& .MuiAccordion-root": { mb: 0, mt: 0 } }, children: [
|
|
17879
17885
|
A.map((c) => /* @__PURE__ */ s(
|
|
17880
|
-
|
|
17886
|
+
xn,
|
|
17881
17887
|
{
|
|
17882
17888
|
expanded: o === c.guid,
|
|
17883
17889
|
onChange: a(c.guid),
|
|
17884
17890
|
sx: { boxShadow: "none" },
|
|
17885
17891
|
children: [
|
|
17886
17892
|
/* @__PURE__ */ e(
|
|
17887
|
-
|
|
17893
|
+
jn,
|
|
17888
17894
|
{
|
|
17889
17895
|
expandIcon: /* @__PURE__ */ e(q, { color: "secondary", name: "keyboard_arrow_down", size: 24 }),
|
|
17890
17896
|
sx: {
|
|
@@ -17895,12 +17901,12 @@ const Bv = ({
|
|
|
17895
17901
|
children: /* @__PURE__ */ s(P, { gap: 4, children: [
|
|
17896
17902
|
/* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: c.name }),
|
|
17897
17903
|
/* @__PURE__ */ e(R, { color: n.palette.text.secondary, variant: "Small", children: `${c.make} ${c.model}` }),
|
|
17898
|
-
/* @__PURE__ */ e(R, { color: n.palette.text.secondary, variant: "Small", children:
|
|
17904
|
+
/* @__PURE__ */ e(R, { color: n.palette.text.secondary, variant: "Small", children: Qo(yA(c.created_at), { addSuffix: !0 }) })
|
|
17899
17905
|
] })
|
|
17900
17906
|
}
|
|
17901
17907
|
),
|
|
17902
17908
|
/* @__PURE__ */ s(
|
|
17903
|
-
|
|
17909
|
+
Dn,
|
|
17904
17910
|
{
|
|
17905
17911
|
sx: { backgroundColor: n.palette.background.default, p: "0 0 0 24px" },
|
|
17906
17912
|
children: [
|
|
@@ -18141,7 +18147,7 @@ const Bv = ({
|
|
|
18141
18147
|
]
|
|
18142
18148
|
}
|
|
18143
18149
|
);
|
|
18144
|
-
}),
|
|
18150
|
+
}), tr = C(
|
|
18145
18151
|
({ onClick: A, primaryText: t, secondaryText: i, sx: n }) => {
|
|
18146
18152
|
const r = RA();
|
|
18147
18153
|
return /* @__PURE__ */ e(W, { sx: { bgcolor: r.palette.background.paper }, children: /* @__PURE__ */ s(aA, { alignItems: "flex-start", onClick: A, sx: n, children: [
|
|
@@ -18159,7 +18165,7 @@ const Bv = ({
|
|
|
18159
18165
|
};
|
|
18160
18166
|
return /* @__PURE__ */ s(h.Fragment, { children: [
|
|
18161
18167
|
/* @__PURE__ */ e(
|
|
18162
|
-
|
|
18168
|
+
tr,
|
|
18163
18169
|
{
|
|
18164
18170
|
onClick: a,
|
|
18165
18171
|
primaryText: i?.category_guid ? c(i.category_guid) : "",
|
|
@@ -18185,7 +18191,7 @@ const Bv = ({
|
|
|
18185
18191
|
};
|
|
18186
18192
|
return /* @__PURE__ */ s(h.Fragment, { children: [
|
|
18187
18193
|
/* @__PURE__ */ e(
|
|
18188
|
-
|
|
18194
|
+
tr,
|
|
18189
18195
|
{
|
|
18190
18196
|
onClick: f,
|
|
18191
18197
|
primaryText: a,
|
|
@@ -18287,7 +18293,7 @@ const Bv = ({
|
|
|
18287
18293
|
}, l = (v) => t.find((u) => u.guid === v)?.name;
|
|
18288
18294
|
return /* @__PURE__ */ s(h.Fragment, { children: [
|
|
18289
18295
|
/* @__PURE__ */ e(
|
|
18290
|
-
|
|
18296
|
+
tr,
|
|
18291
18297
|
{
|
|
18292
18298
|
onClick: E,
|
|
18293
18299
|
primaryText: A.description ? A.description : A.match_description,
|
|
@@ -18366,13 +18372,13 @@ const Bv = ({
|
|
|
18366
18372
|
t.account?.day_payment_is_due || 0
|
|
18367
18373
|
), l = t.account?.name || t.account?.feed_name || "", v = t.account?.day_payment_is_due ? z(
|
|
18368
18374
|
n.notification_debt_payment_date,
|
|
18369
|
-
|
|
18375
|
+
ko(t.account?.day_payment_is_due)
|
|
18370
18376
|
) : n.notification_debt_payment_zero_state, u = o ? v : M(t.threshold ?? 0, "0,0"), H = async () => {
|
|
18371
18377
|
o && t.account ? await r({ ...t.account, day_payment_is_due: f }) : A({ ...t, threshold: c });
|
|
18372
18378
|
};
|
|
18373
18379
|
return /* @__PURE__ */ s(P, { children: [
|
|
18374
18380
|
/* @__PURE__ */ e(
|
|
18375
|
-
|
|
18381
|
+
vn,
|
|
18376
18382
|
{
|
|
18377
18383
|
isChecked: t.is_enabled,
|
|
18378
18384
|
onClick: () => a(!0),
|
|
@@ -18495,7 +18501,7 @@ const Bv = ({
|
|
|
18495
18501
|
/* @__PURE__ */ e(G, { sx: { my: 24 } }),
|
|
18496
18502
|
/* @__PURE__ */ e(ne, { mb: 24, children: t.accounts_title }),
|
|
18497
18503
|
n.map((E) => /* @__PURE__ */ e(
|
|
18498
|
-
|
|
18504
|
+
vn,
|
|
18499
18505
|
{
|
|
18500
18506
|
isChecked: E.is_enabled,
|
|
18501
18507
|
isDisabled: !E.is_enabled,
|
|
@@ -18512,7 +18518,7 @@ const Bv = ({
|
|
|
18512
18518
|
/* @__PURE__ */ e(G, { sx: { my: 24 } }),
|
|
18513
18519
|
/* @__PURE__ */ e(ne, { mb: 24, children: t.budgets_title }),
|
|
18514
18520
|
r.map((E) => /* @__PURE__ */ e(
|
|
18515
|
-
|
|
18521
|
+
vn,
|
|
18516
18522
|
{
|
|
18517
18523
|
isChecked: E.is_enabled,
|
|
18518
18524
|
isDisabled: !E.is_enabled,
|
|
@@ -18595,12 +18601,12 @@ const Bv = ({
|
|
|
18595
18601
|
class nR {
|
|
18596
18602
|
globalStore;
|
|
18597
18603
|
userFeatures = [];
|
|
18598
|
-
api = new
|
|
18604
|
+
api = new pr("/", "");
|
|
18599
18605
|
constructor(t) {
|
|
18600
18606
|
this.globalStore = t, DA(this);
|
|
18601
18607
|
}
|
|
18602
18608
|
initialize = async (t, i) => {
|
|
18603
|
-
this.api = new
|
|
18609
|
+
this.api = new pr(t, i), await this.loadUserFeatures();
|
|
18604
18610
|
};
|
|
18605
18611
|
get userProfile() {
|
|
18606
18612
|
return this.globalStore.appDataStore.userProfile;
|
|
@@ -18780,7 +18786,7 @@ class GP {
|
|
|
18780
18786
|
});
|
|
18781
18787
|
};
|
|
18782
18788
|
}
|
|
18783
|
-
const
|
|
18789
|
+
const In = ({
|
|
18784
18790
|
children: A,
|
|
18785
18791
|
isLast: t = !1,
|
|
18786
18792
|
onClick: i,
|
|
@@ -18798,12 +18804,12 @@ const on = ({
|
|
|
18798
18804
|
(n) => n.member_guid === i.guid && i.successfully_aggregated_at && n.guid !== t.guid
|
|
18799
18805
|
);
|
|
18800
18806
|
}, IR = () => {
|
|
18801
|
-
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(), u = (
|
|
18802
|
-
f({
|
|
18807
|
+
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(), { modifyTransactionByAccountGuid: u } = PA(), H = async (p) => {
|
|
18808
|
+
await f({
|
|
18803
18809
|
...c,
|
|
18804
|
-
...
|
|
18805
|
-
});
|
|
18806
|
-
},
|
|
18810
|
+
...p
|
|
18811
|
+
}), "is_closed" in p && p.is_closed !== c.is_closed && u(c.guid, { accountIsClosed: p.is_closed });
|
|
18812
|
+
}, b = () => {
|
|
18807
18813
|
d([c.guid, I.guid]).finally(
|
|
18808
18814
|
() => n(!1)
|
|
18809
18815
|
);
|
|
@@ -18811,10 +18817,10 @@ const on = ({
|
|
|
18811
18817
|
return /* @__PURE__ */ s(Z, { children: [
|
|
18812
18818
|
/* @__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 }) }),
|
|
18813
18819
|
/* @__PURE__ */ e(
|
|
18814
|
-
|
|
18820
|
+
In,
|
|
18815
18821
|
{
|
|
18816
18822
|
onClick: () => {
|
|
18817
|
-
|
|
18823
|
+
H({ is_hidden: !c.is_hidden }), v(V.ACCOUNT_DETAILS_CLICK_HIDE, { account_guid: c.guid });
|
|
18818
18824
|
},
|
|
18819
18825
|
primaryText: c.is_hidden ? E.unhide_account : E.hide_Account,
|
|
18820
18826
|
secondaryText: c.is_hidden ? E.include_this_account : E.exclude_this_account,
|
|
@@ -18822,7 +18828,7 @@ const on = ({
|
|
|
18822
18828
|
}
|
|
18823
18829
|
),
|
|
18824
18830
|
/* @__PURE__ */ e(
|
|
18825
|
-
|
|
18831
|
+
In,
|
|
18826
18832
|
{
|
|
18827
18833
|
onClick: () => {
|
|
18828
18834
|
t(!0), v(V.ACCOUNT_DETAILS_CLICK_MARK_CLOSED, {
|
|
@@ -18835,7 +18841,7 @@ const on = ({
|
|
|
18835
18841
|
}
|
|
18836
18842
|
),
|
|
18837
18843
|
l.length > 0 && /* @__PURE__ */ e(
|
|
18838
|
-
|
|
18844
|
+
In,
|
|
18839
18845
|
{
|
|
18840
18846
|
isLast: !0,
|
|
18841
18847
|
onClick: () => {
|
|
@@ -18859,7 +18865,7 @@ const on = ({
|
|
|
18859
18865
|
onClose: () => {
|
|
18860
18866
|
t(!1);
|
|
18861
18867
|
},
|
|
18862
|
-
onPrimaryAction: () =>
|
|
18868
|
+
onPrimaryAction: () => H({ is_closed: !c.is_closed }),
|
|
18863
18869
|
children: z(
|
|
18864
18870
|
c.is_closed ? E.this_will_resume_updating_the_balance : E.this_will_set_the_balance_of_your_account,
|
|
18865
18871
|
c.name
|
|
@@ -18873,20 +18879,20 @@ const on = ({
|
|
|
18873
18879
|
isOpen: i,
|
|
18874
18880
|
onClose: () => n(!1),
|
|
18875
18881
|
title: E.mark_as_duplicate,
|
|
18876
|
-
children: /* @__PURE__ */ e(rA, { children: l.map((
|
|
18877
|
-
const
|
|
18882
|
+
children: /* @__PURE__ */ e(rA, { children: l.map((p) => {
|
|
18883
|
+
const y = l.indexOf(p) === l.length - 1;
|
|
18878
18884
|
return /* @__PURE__ */ s(h.Fragment, { children: [
|
|
18879
18885
|
/* @__PURE__ */ e(
|
|
18880
18886
|
Ui,
|
|
18881
18887
|
{
|
|
18882
|
-
account:
|
|
18888
|
+
account: p,
|
|
18883
18889
|
onRowClick: () => {
|
|
18884
|
-
o(!0), a(
|
|
18890
|
+
o(!0), a(p);
|
|
18885
18891
|
}
|
|
18886
18892
|
}
|
|
18887
18893
|
),
|
|
18888
|
-
/* @__PURE__ */ e(rA, { sx: { ml:
|
|
18889
|
-
] },
|
|
18894
|
+
/* @__PURE__ */ e(rA, { sx: { ml: y ? 0 : 24 } })
|
|
18895
|
+
] }, p.guid);
|
|
18890
18896
|
}) })
|
|
18891
18897
|
}
|
|
18892
18898
|
),
|
|
@@ -18899,7 +18905,7 @@ const on = ({
|
|
|
18899
18905
|
},
|
|
18900
18906
|
isOpen: r,
|
|
18901
18907
|
onClose: () => o(!1),
|
|
18902
|
-
onPrimaryAction:
|
|
18908
|
+
onPrimaryAction: b,
|
|
18903
18909
|
children: [
|
|
18904
18910
|
z(
|
|
18905
18911
|
E.this_means_accounts_will_be_merged,
|
|
@@ -18911,7 +18917,7 @@ const on = ({
|
|
|
18911
18917
|
}
|
|
18912
18918
|
)
|
|
18913
18919
|
] });
|
|
18914
|
-
}, aR = C(IR),
|
|
18920
|
+
}, aR = C(IR), SI = (A, t) => {
|
|
18915
18921
|
const { connection_messages: i } = t;
|
|
18916
18922
|
switch (A.connection_status) {
|
|
18917
18923
|
case ie.CHALLENGED:
|
|
@@ -19050,7 +19056,7 @@ const on = ({
|
|
|
19050
19056
|
const n = () => {
|
|
19051
19057
|
const r = A.successfully_aggregated_at ? yA(A.successfully_aggregated_at) : void 0, o = r && nA(r, AA.TIME_STAMP_HOUR_MINUTE);
|
|
19052
19058
|
if (o)
|
|
19053
|
-
return
|
|
19059
|
+
return On(r) ? z(t.last_updated_at, t.today, o) : xs(r) ? z(t.last_updated_at, t.yesterday, o) : z(
|
|
19054
19060
|
t.last_updated_at,
|
|
19055
19061
|
nA(r, AA.MONTH_DAY_YEAR),
|
|
19056
19062
|
o
|
|
@@ -19063,7 +19069,7 @@ const on = ({
|
|
|
19063
19069
|
};
|
|
19064
19070
|
}
|
|
19065
19071
|
}
|
|
19066
|
-
},
|
|
19072
|
+
}, an = {
|
|
19067
19073
|
color: "background.default",
|
|
19068
19074
|
fontSize: 20,
|
|
19069
19075
|
gridRow: 1,
|
|
@@ -19072,15 +19078,15 @@ const on = ({
|
|
|
19072
19078
|
}, sR = () => {
|
|
19073
19079
|
const [A, t] = h.useState(!1), {
|
|
19074
19080
|
palette: { mode: i }
|
|
19075
|
-
} = RA(), { selectedMember: n } = Xe(), { accounts: r, connect: o } = X(), I =
|
|
19081
|
+
} = RA(), { selectedMember: n } = Xe(), { accounts: r, connect: o } = X(), I = SI(n, o), a = So.includes(n.connection_status) ? {
|
|
19076
19082
|
color: "error.main",
|
|
19077
19083
|
ctaCopy: I.cta ?? "",
|
|
19078
|
-
icon: /* @__PURE__ */ e(Qi, { sx: { ...
|
|
19084
|
+
icon: /* @__PURE__ */ e(Qi, { sx: { ...an } }),
|
|
19079
19085
|
mainMessage: I.statusName,
|
|
19080
19086
|
secondaryMessage: `${I.title}.`
|
|
19081
19087
|
} : {
|
|
19082
19088
|
color: "success.main",
|
|
19083
|
-
icon: /* @__PURE__ */ e(ws, { sx: { ...
|
|
19089
|
+
icon: /* @__PURE__ */ e(ws, { sx: { ...an } }),
|
|
19084
19090
|
mainMessage: I.statusName,
|
|
19085
19091
|
secondaryMessage: I.title
|
|
19086
19092
|
};
|
|
@@ -19111,7 +19117,7 @@ const on = ({
|
|
|
19111
19117
|
ft,
|
|
19112
19118
|
{
|
|
19113
19119
|
backingSx: {
|
|
19114
|
-
backgroundColor: i ===
|
|
19120
|
+
backgroundColor: i === ar.LIGHT ? "grey.300" : "grey.700",
|
|
19115
19121
|
borderRadius: 1
|
|
19116
19122
|
},
|
|
19117
19123
|
size: 32,
|
|
@@ -19119,8 +19125,8 @@ const on = ({
|
|
|
19119
19125
|
ys,
|
|
19120
19126
|
{
|
|
19121
19127
|
sx: {
|
|
19122
|
-
...
|
|
19123
|
-
color: i ===
|
|
19128
|
+
...an,
|
|
19129
|
+
color: i === ar.LIGHT ? "grey.900" : "common.white"
|
|
19124
19130
|
}
|
|
19125
19131
|
}
|
|
19126
19132
|
)
|
|
@@ -19163,7 +19169,7 @@ const on = ({
|
|
|
19163
19169
|
onChange: (b) => a(b.target.value),
|
|
19164
19170
|
placeholder: A.placeholder,
|
|
19165
19171
|
value: I,
|
|
19166
|
-
children: A.options?.map((b) => /* @__PURE__ */ e(
|
|
19172
|
+
children: A.options?.map((b) => /* @__PURE__ */ e(mn, { value: b.value, children: b.label }, b.value))
|
|
19167
19173
|
}
|
|
19168
19174
|
)
|
|
19169
19175
|
] });
|
|
@@ -19277,11 +19283,11 @@ const on = ({
|
|
|
19277
19283
|
/* @__PURE__ */ e(aR, {})
|
|
19278
19284
|
] });
|
|
19279
19285
|
}, vR = C(lR), RR = ({ setTabValue: A }) => {
|
|
19280
|
-
const [t, i] = h.useState(!1), { selectedMember: n } = Xe(), { accounts: r, connect: o } = X(), I = n.connection_status &&
|
|
19286
|
+
const [t, i] = h.useState(!1), { selectedMember: n } = Xe(), { accounts: r, connect: o } = X(), I = n.connection_status && So.includes(n.connection_status);
|
|
19281
19287
|
if (h.useEffect(() => {
|
|
19282
19288
|
I && A(1);
|
|
19283
19289
|
}, [I]), !I) return;
|
|
19284
|
-
const a =
|
|
19290
|
+
const a = SI(n, o);
|
|
19285
19291
|
return /* @__PURE__ */ s(Z, { children: [
|
|
19286
19292
|
/* @__PURE__ */ e(
|
|
19287
19293
|
De,
|
|
@@ -19307,10 +19313,10 @@ const on = ({
|
|
|
19307
19313
|
}
|
|
19308
19314
|
},
|
|
19309
19315
|
children: [
|
|
19310
|
-
a.title && /* @__PURE__ */ e(
|
|
19316
|
+
a.title && /* @__PURE__ */ e(hn, { sx: { fontWeight: 600, marginTop: 2 }, variant: "Body", children: a.title }),
|
|
19311
19317
|
/* @__PURE__ */ e(R, { component: "p", sx: { whiteSpace: "wrap" }, variant: "ParagraphSmall", children: a.main }),
|
|
19312
19318
|
a.cta && /* @__PURE__ */ e(
|
|
19313
|
-
|
|
19319
|
+
No,
|
|
19314
19320
|
{
|
|
19315
19321
|
onClick: () => i(!0),
|
|
19316
19322
|
sx: { fontSize: 15, fontWeight: 600, ml: 0 },
|
|
@@ -19387,7 +19393,7 @@ const on = ({
|
|
|
19387
19393
|
/* @__PURE__ */ e(Qt, { index: 0, name: "transaction-details", value: A, children: /* @__PURE__ */ e(bR, {}) }),
|
|
19388
19394
|
/* @__PURE__ */ e(Qt, { index: 1, name: "account-details", value: A, children: /* @__PURE__ */ e(vR, {}) })
|
|
19389
19395
|
] });
|
|
19390
|
-
},
|
|
19396
|
+
}, UI = C(HR), zR = () => {
|
|
19391
19397
|
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);
|
|
19392
19398
|
return h.useEffect(() => {
|
|
19393
19399
|
if (d) {
|
|
@@ -19411,7 +19417,7 @@ const on = ({
|
|
|
19411
19417
|
{
|
|
19412
19418
|
"aria-label": i.account_type_accounts[E[0].account_type],
|
|
19413
19419
|
subheader: /* @__PURE__ */ e(me, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ s(
|
|
19414
|
-
|
|
19420
|
+
or,
|
|
19415
19421
|
{
|
|
19416
19422
|
component: "span",
|
|
19417
19423
|
direction: "row",
|
|
@@ -19422,7 +19428,7 @@ const on = ({
|
|
|
19422
19428
|
]
|
|
19423
19429
|
}
|
|
19424
19430
|
) }),
|
|
19425
|
-
children: /* @__PURE__ */ e(
|
|
19431
|
+
children: /* @__PURE__ */ e(or, { children: E.map((u) => {
|
|
19426
19432
|
const H = n.indexOf(u) === n.length - 1, b = E.indexOf(u) === E.length - 1;
|
|
19427
19433
|
return /* @__PURE__ */ s(h.Fragment, { children: [
|
|
19428
19434
|
/* @__PURE__ */ e(
|
|
@@ -19456,14 +19462,14 @@ const on = ({
|
|
|
19456
19462
|
onClose: () => t(""),
|
|
19457
19463
|
title: i.account_details,
|
|
19458
19464
|
children: [
|
|
19459
|
-
/* @__PURE__ */ e(
|
|
19460
|
-
/* @__PURE__ */ e(
|
|
19465
|
+
/* @__PURE__ */ e(Ar, {}),
|
|
19466
|
+
/* @__PURE__ */ e(UI, {})
|
|
19461
19467
|
]
|
|
19462
19468
|
}
|
|
19463
19469
|
)
|
|
19464
19470
|
] });
|
|
19465
19471
|
}, CR = C(zR), gR = ({ onBackClick: A, sx: t = {} }) => {
|
|
19466
|
-
const [i, n] = h.useState(!1), [r, o] = h.useState(!1), { config: I } =
|
|
19472
|
+
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();
|
|
19467
19473
|
h.useEffect(() => {
|
|
19468
19474
|
f(a);
|
|
19469
19475
|
}, [a]);
|
|
@@ -19500,7 +19506,7 @@ const on = ({
|
|
|
19500
19506
|
/* @__PURE__ */ e(CR, {})
|
|
19501
19507
|
] }),
|
|
19502
19508
|
/* @__PURE__ */ e(
|
|
19503
|
-
|
|
19509
|
+
VI,
|
|
19504
19510
|
{
|
|
19505
19511
|
onClose: () => n(!1),
|
|
19506
19512
|
showConnectionsWidget: i,
|
|
@@ -20024,7 +20030,7 @@ const on = ({
|
|
|
20024
20030
|
)
|
|
20025
20031
|
] });
|
|
20026
20032
|
}, TP = C(DR);
|
|
20027
|
-
class
|
|
20033
|
+
class Eo {
|
|
20028
20034
|
fetchInstance;
|
|
20029
20035
|
constructor(t, i) {
|
|
20030
20036
|
this.fetchInstance = new Ae(t, i);
|
|
@@ -20051,7 +20057,7 @@ class jR {
|
|
|
20051
20057
|
setSelectedMember = (t) => this.selectedMember = t;
|
|
20052
20058
|
}
|
|
20053
20059
|
class mR {
|
|
20054
|
-
api = new
|
|
20060
|
+
api = new Eo("/", "");
|
|
20055
20061
|
globalStore;
|
|
20056
20062
|
accounts = [];
|
|
20057
20063
|
institutions = [];
|
|
@@ -20061,7 +20067,7 @@ class mR {
|
|
|
20061
20067
|
this.globalStore = t, this.uiStore = new jR(), DA(this);
|
|
20062
20068
|
}
|
|
20063
20069
|
initialize = async (t, i) => {
|
|
20064
|
-
this.api = new
|
|
20070
|
+
this.api = new Eo(t, i), await Promise.all([this.loadAccounts(), this.loadInstitutions()]);
|
|
20065
20071
|
};
|
|
20066
20072
|
get cashAccounts() {
|
|
20067
20073
|
return this.accounts.filter(
|
|
@@ -20106,7 +20112,7 @@ class mR {
|
|
|
20106
20112
|
if (r > -1) {
|
|
20107
20113
|
let o = bt.Connected;
|
|
20108
20114
|
const I = this.members[r];
|
|
20109
|
-
|
|
20115
|
+
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({
|
|
20110
20116
|
...n,
|
|
20111
20117
|
memberName: I.name,
|
|
20112
20118
|
connectionStatus: o
|
|
@@ -20206,7 +20212,7 @@ class mR {
|
|
|
20206
20212
|
}
|
|
20207
20213
|
};
|
|
20208
20214
|
}
|
|
20209
|
-
const
|
|
20215
|
+
const ho = 5, OR = 100, LR = 25, QR = (A) => {
|
|
20210
20216
|
const t = (r) => {
|
|
20211
20217
|
r.active || A.alphaTarget(0.3).restart(), r.subject.fx = r.subject.x, r.subject.fy = r.subject.y;
|
|
20212
20218
|
}, i = (r) => {
|
|
@@ -20218,7 +20224,7 @@ const Eo = 5, OR = 100, LR = 25, QR = (A) => {
|
|
|
20218
20224
|
}, qR = (A) => {
|
|
20219
20225
|
let t = A.transaction_total / A.amount;
|
|
20220
20226
|
t < 0 ? t = 0 : t > 1 && (t = 1);
|
|
20221
|
-
const i = t * 2 * Math.PI, n = ue.interpolate(0, i), r = ue.arc().cornerRadius(5).innerRadius(A.radius -
|
|
20227
|
+
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);
|
|
20222
20228
|
return (o) => (r.endAngle(n(o)), r(A) || "");
|
|
20223
20229
|
}, GR = (A) => {
|
|
20224
20230
|
ue.selectAll(".bubble").call(QR(A));
|
|
@@ -20247,7 +20253,7 @@ const Eo = 5, OR = 100, LR = 25, QR = (A) => {
|
|
|
20247
20253
|
return ue.forceSimulation(r).velocityDecay(0.05).force("collide", ue.forceCollide((o) => o.radius + 2).strength(0.5)).on("tick", () => {
|
|
20248
20254
|
ue.selectAll(".bubble").data(r).attr("transform", (o) => `translate(${o.x},${o.y})`);
|
|
20249
20255
|
});
|
|
20250
|
-
},
|
|
20256
|
+
}, lo = 5, YR = 2e3;
|
|
20251
20257
|
function VR({ bubble: A }) {
|
|
20252
20258
|
const t = RA(), {
|
|
20253
20259
|
guid: i,
|
|
@@ -20257,7 +20263,7 @@ function VR({ bubble: A }) {
|
|
|
20257
20263
|
h.useEffect(() => {
|
|
20258
20264
|
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));
|
|
20259
20265
|
}, [A]);
|
|
20260
|
-
const I = ue.arc().innerRadius((a) => a - 2 *
|
|
20266
|
+
const I = ue.arc().innerRadius((a) => a - 2 * lo).outerRadius((a) => a - lo).startAngle(0).endAngle(2 * Math.PI);
|
|
20261
20267
|
return /* @__PURE__ */ e("g", { className: o, children: /* @__PURE__ */ e(
|
|
20262
20268
|
"path",
|
|
20263
20269
|
{
|
|
@@ -20266,7 +20272,7 @@ function VR({ bubble: A }) {
|
|
|
20266
20272
|
}
|
|
20267
20273
|
) });
|
|
20268
20274
|
}
|
|
20269
|
-
const yt = 75,
|
|
20275
|
+
const yt = 75, vo = 50;
|
|
20270
20276
|
function BR({ bubble: A, isDraggable: t, onClick: i = () => {
|
|
20271
20277
|
} }) {
|
|
20272
20278
|
const [n, r] = h.useState(!1);
|
|
@@ -20343,7 +20349,7 @@ function BR({ bubble: A, isDraggable: t, onClick: i = () => {
|
|
|
20343
20349
|
children: c
|
|
20344
20350
|
}
|
|
20345
20351
|
),
|
|
20346
|
-
E >
|
|
20352
|
+
E > vo && /* @__PURE__ */ e(
|
|
20347
20353
|
R,
|
|
20348
20354
|
{
|
|
20349
20355
|
bold: !0,
|
|
@@ -20355,7 +20361,7 @@ function BR({ bubble: A, isDraggable: t, onClick: i = () => {
|
|
|
20355
20361
|
children: E <= yt ? f.split(" ")[0] : f
|
|
20356
20362
|
}
|
|
20357
20363
|
),
|
|
20358
|
-
E <= yt && E >
|
|
20364
|
+
E <= yt && E > vo && /* @__PURE__ */ e(
|
|
20359
20365
|
R,
|
|
20360
20366
|
{
|
|
20361
20367
|
component: "text",
|
|
@@ -20391,7 +20397,7 @@ const SR = ({
|
|
|
20391
20397
|
/* @__PURE__ */ e(R, { bold: !0, variant: "Paragraph", children: A.zero_state_title }),
|
|
20392
20398
|
/* @__PURE__ */ e(R, { sx: { whiteSpace: "wrap" }, variant: "Paragraph", children: A.zero_state_description })
|
|
20393
20399
|
] });
|
|
20394
|
-
},
|
|
20400
|
+
}, FI = C(
|
|
20395
20401
|
({ height: A, isDraggable: t = !1, shouldShowZeroState: i, unavailableWidth: n = 24 }) => {
|
|
20396
20402
|
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) => {
|
|
20397
20403
|
o(l), r(V.BUDGETS_CLICK_BUDGET_CATEGORY, {
|
|
@@ -20420,7 +20426,7 @@ const SR = ({
|
|
|
20420
20426
|
title: o.budgets_title,
|
|
20421
20427
|
...A,
|
|
20422
20428
|
children: /* @__PURE__ */ s(P, { height: 450, mt: 32, children: [
|
|
20423
|
-
/* @__PURE__ */ e(
|
|
20429
|
+
/* @__PURE__ */ e(FI, { height: 370, shouldShowZeroState: a }),
|
|
20424
20430
|
!a && /* @__PURE__ */ s(L, { ml: 16, children: [
|
|
20425
20431
|
/* @__PURE__ */ e(R, { bold: !0, color: I < 0 ? "error.main" : "success.main", children: M(Math.abs(I), "0,0") }),
|
|
20426
20432
|
/* @__PURE__ */ e(R, { children: I < 0 ? o.overspent_in_budgets : o.left_in_budgets })
|
|
@@ -20439,7 +20445,7 @@ const SR = ({
|
|
|
20439
20445
|
transaction_total: d
|
|
20440
20446
|
} = A;
|
|
20441
20447
|
return /* @__PURE__ */ e(W, { children: /* @__PURE__ */ s(aA, { onClick: () => t?.(A), children: [
|
|
20442
|
-
/* @__PURE__ */ e(xA, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ e(
|
|
20448
|
+
/* @__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" }) }) }),
|
|
20443
20449
|
/* @__PURE__ */ e(
|
|
20444
20450
|
eA,
|
|
20445
20451
|
{
|
|
@@ -20549,7 +20555,7 @@ const SR = ({
|
|
|
20549
20555
|
title: o.manage_income,
|
|
20550
20556
|
children: /* @__PURE__ */ s(P, { gap: 4, children: [
|
|
20551
20557
|
/* @__PURE__ */ e(R, { bold: !0, sx: { mt: 12, mx: 24 }, variant: "Small", children: n.income_title }),
|
|
20552
|
-
/* @__PURE__ */ e(
|
|
20558
|
+
/* @__PURE__ */ e(Jn, {})
|
|
20553
20559
|
] })
|
|
20554
20560
|
}
|
|
20555
20561
|
)
|
|
@@ -20682,7 +20688,7 @@ const SR = ({
|
|
|
20682
20688
|
)) }) }),
|
|
20683
20689
|
/* @__PURE__ */ e($R, { onRecalculateBudgets: A })
|
|
20684
20690
|
] });
|
|
20685
|
-
}),
|
|
20691
|
+
}), WI = ({ budget: A }) => {
|
|
20686
20692
|
const {
|
|
20687
20693
|
amount: t,
|
|
20688
20694
|
budgetColors: { background: i },
|
|
@@ -20718,7 +20724,7 @@ const SR = ({
|
|
|
20718
20724
|
transaction_total: o
|
|
20719
20725
|
} = A, { setSelectedSubBudget: I } = te();
|
|
20720
20726
|
return /* @__PURE__ */ e(W, { children: /* @__PURE__ */ s(aA, { onClick: () => I(A), children: [
|
|
20721
|
-
/* @__PURE__ */ e(xA, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ e(
|
|
20727
|
+
/* @__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" }) }) }),
|
|
20722
20728
|
/* @__PURE__ */ e(
|
|
20723
20729
|
eA,
|
|
20724
20730
|
{
|
|
@@ -20759,7 +20765,7 @@ const SR = ({
|
|
|
20759
20765
|
isOpen: a,
|
|
20760
20766
|
onClose: () => c(!1),
|
|
20761
20767
|
title: i.add_sub_budget_title,
|
|
20762
|
-
children: /* @__PURE__ */ e(rA, { children: /* @__PURE__ */ e(
|
|
20768
|
+
children: /* @__PURE__ */ e(rA, { children: /* @__PURE__ */ e(dI, { category: A, subCategories: A.subCategories }) })
|
|
20763
20769
|
}
|
|
20764
20770
|
),
|
|
20765
20771
|
/* @__PURE__ */ e(
|
|
@@ -20823,7 +20829,7 @@ const SR = ({
|
|
|
20823
20829
|
secondaryText: n.details_delete_button,
|
|
20824
20830
|
title: n.details_title,
|
|
20825
20831
|
children: I && /* @__PURE__ */ s(P, { gap: 24, children: [
|
|
20826
|
-
/* @__PURE__ */ e(
|
|
20832
|
+
/* @__PURE__ */ e(WI, { budget: I }),
|
|
20827
20833
|
/* @__PURE__ */ e(Rt, { height: "100%" })
|
|
20828
20834
|
] })
|
|
20829
20835
|
}
|
|
@@ -20870,10 +20876,10 @@ const SR = ({
|
|
|
20870
20876
|
), l = (u, H) => {
|
|
20871
20877
|
c(H);
|
|
20872
20878
|
}, v = () => {
|
|
20873
|
-
|
|
20879
|
+
fI(o, I), r(t.alert_csv_downloaded);
|
|
20874
20880
|
};
|
|
20875
20881
|
return /* @__PURE__ */ s(P, { gap: 24, children: [
|
|
20876
|
-
/* @__PURE__ */ e(
|
|
20882
|
+
/* @__PURE__ */ e(WI, { budget: A }),
|
|
20877
20883
|
/* @__PURE__ */ s(P, { children: [
|
|
20878
20884
|
/* @__PURE__ */ s(
|
|
20879
20885
|
Se,
|
|
@@ -20993,7 +20999,7 @@ const SR = ({
|
|
|
20993
20999
|
}
|
|
20994
21000
|
)
|
|
20995
21001
|
] });
|
|
20996
|
-
}),
|
|
21002
|
+
}), Ro = 480, VP = C(({ onBackClick: A, sx: t }) => {
|
|
20997
21003
|
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: b } = te(), { loadCashflowSequences: p } = ZA(), { isDesktop: y, isTablet: x } = zA(), { reloadCategoryTotals: w } = qA(), [D, j] = h.useState(!1), [m, O] = h.useState(!1);
|
|
20998
21004
|
h.useEffect(() => {
|
|
20999
21005
|
b(i), f(r), d(l.start, l.end), n(V.BUDGETS_VIEW);
|
|
@@ -21031,12 +21037,12 @@ const SR = ({
|
|
|
21031
21037
|
(!a || !D) && /* @__PURE__ */ e(ee, {}),
|
|
21032
21038
|
a && D && /* @__PURE__ */ s(P, { direction: y || x ? "row" : "column", height: "100%", width: "100%", children: [
|
|
21033
21039
|
/* @__PURE__ */ e(P, { height: y || x ? "calc(100dvh - 150px)" : 450, children: /* @__PURE__ */ e(
|
|
21034
|
-
|
|
21040
|
+
FI,
|
|
21035
21041
|
{
|
|
21036
21042
|
height: y || x ? 800 : 450,
|
|
21037
21043
|
isDraggable: !0,
|
|
21038
21044
|
shouldShowZeroState: !1,
|
|
21039
|
-
unavailableWidth: y || x ?
|
|
21045
|
+
unavailableWidth: y || x ? Ro : 0
|
|
21040
21046
|
}
|
|
21041
21047
|
) }),
|
|
21042
21048
|
/* @__PURE__ */ s(
|
|
@@ -21045,7 +21051,7 @@ const SR = ({
|
|
|
21045
21051
|
gap: 24,
|
|
21046
21052
|
height: "100%",
|
|
21047
21053
|
sx: { mr: 24 },
|
|
21048
|
-
width: y || x ?
|
|
21054
|
+
width: y || x ? Ro : "100%",
|
|
21049
21055
|
children: [
|
|
21050
21056
|
/* @__PURE__ */ e(ZR, {}),
|
|
21051
21057
|
/* @__PURE__ */ e(KR, {})
|
|
@@ -21078,7 +21084,7 @@ const SR = ({
|
|
|
21078
21084
|
}
|
|
21079
21085
|
);
|
|
21080
21086
|
});
|
|
21081
|
-
var
|
|
21087
|
+
var gn = /* @__PURE__ */ ((A) => (A[A.Main = 0] = "Main", A[A.RightSide = 1] = "RightSide", A))(gn || {});
|
|
21082
21088
|
const a3 = C(() => {
|
|
21083
21089
|
const A = RA(), {
|
|
21084
21090
|
appDataStore: { banner: t }
|
|
@@ -21141,7 +21147,7 @@ const a3 = C(() => {
|
|
|
21141
21147
|
/* @__PURE__ */ e(R, { color: "text.secondary", sx: { fontSize: 15 }, children: r.heres_your_spending_overview })
|
|
21142
21148
|
] }),
|
|
21143
21149
|
/* @__PURE__ */ e(
|
|
21144
|
-
|
|
21150
|
+
_o,
|
|
21145
21151
|
{
|
|
21146
21152
|
accounts: A,
|
|
21147
21153
|
copy: o,
|
|
@@ -21164,10 +21170,10 @@ const a3 = C(() => {
|
|
|
21164
21170
|
() => A.sort((f, E) => f.index - E.index),
|
|
21165
21171
|
[A]
|
|
21166
21172
|
), c = h.useMemo(
|
|
21167
|
-
() => a.filter((f) => f.location ===
|
|
21173
|
+
() => a.filter((f) => f.location === gn.Main),
|
|
21168
21174
|
[A]
|
|
21169
21175
|
), d = h.useMemo(
|
|
21170
|
-
() => a.filter((f) => f.location ===
|
|
21176
|
+
() => a.filter((f) => f.location === gn.RightSide),
|
|
21171
21177
|
[A]
|
|
21172
21178
|
);
|
|
21173
21179
|
return /* @__PURE__ */ s(tt, { container: !0, spacing: n ? 0 : 24, sx: { overflow: "scroll" }, children: [
|
|
@@ -21215,7 +21221,7 @@ class d3 {
|
|
|
21215
21221
|
return this.copyObject.zero_state;
|
|
21216
21222
|
}
|
|
21217
21223
|
}
|
|
21218
|
-
const
|
|
21224
|
+
const ir = {
|
|
21219
21225
|
BillAmountNotStandard: "BillAmountNotStandard",
|
|
21220
21226
|
CanadianUpcomingDeadlineAlert: "CanadianUpcomingDeadlineAlert",
|
|
21221
21227
|
DuplicatePaymentV2: "DuplicatePaymentV2",
|
|
@@ -21232,37 +21238,37 @@ const tr = {
|
|
|
21232
21238
|
WeeklyNewMerchantsV2: "WeeklyNewMerchantsV2",
|
|
21233
21239
|
MonthlySpendComparison: "MonthlySpendComparison",
|
|
21234
21240
|
MonthlySpendToIncomeComparison: "MonthlySpendToIncomeComparison"
|
|
21235
|
-
}, ye = window?.app?.clientConfig?.microwidget_instance_id || "",
|
|
21241
|
+
}, ye = window?.app?.clientConfig?.microwidget_instance_id || "", uo = {
|
|
21236
21242
|
INSIGHTS_MICRO_WIDGET: "/micro-insights-carousel"
|
|
21237
|
-
},
|
|
21243
|
+
}, 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(
|
|
21238
21244
|
(A, t) => ({
|
|
21239
21245
|
...A,
|
|
21240
|
-
[
|
|
21246
|
+
[kI(t)]: {
|
|
21241
21247
|
action: et.MICRO_BEAT_CLICKED,
|
|
21242
21248
|
category: At.BEAT_INTERACTION,
|
|
21243
|
-
label:
|
|
21249
|
+
label: nr(t),
|
|
21244
21250
|
value: ye
|
|
21245
21251
|
}
|
|
21246
21252
|
}),
|
|
21247
21253
|
{}
|
|
21248
|
-
), h3 = () => Object.values(
|
|
21254
|
+
), h3 = () => Object.values(ir).reduce(
|
|
21249
21255
|
(A, t) => ({
|
|
21250
21256
|
...A,
|
|
21251
|
-
[
|
|
21257
|
+
[KI(t)]: {
|
|
21252
21258
|
action: et.MICRO_BEAT_DISPLAYED,
|
|
21253
21259
|
category: At.BEAT_INTERACTION,
|
|
21254
|
-
label:
|
|
21260
|
+
label: nr(t),
|
|
21255
21261
|
value: ye
|
|
21256
21262
|
}
|
|
21257
21263
|
}),
|
|
21258
21264
|
{}
|
|
21259
|
-
), l3 = () => Object.values(
|
|
21265
|
+
), l3 = () => Object.values(ir).reduce(
|
|
21260
21266
|
(A, t) => ({
|
|
21261
21267
|
...A,
|
|
21262
|
-
[
|
|
21268
|
+
[ZI(t)]: {
|
|
21263
21269
|
action: et.MICRO_BEAT_DISPLAYED_FIRST_TIME,
|
|
21264
21270
|
category: At.BEAT_INTERACTION,
|
|
21265
|
-
label:
|
|
21271
|
+
label: nr(t),
|
|
21266
21272
|
value: ye
|
|
21267
21273
|
}
|
|
21268
21274
|
}),
|
|
@@ -21282,7 +21288,7 @@ const tr = {
|
|
|
21282
21288
|
ON_CAROUSEL_FORWARD_SWIPE: "onCarouselForwardSwipe",
|
|
21283
21289
|
ON_NO_RELEVANT_INSIGHTS_CLICKED: "onNoRelevantInsightsClicked",
|
|
21284
21290
|
ON_VIEW_MORE_CLICKED: "onViewMoreClicked"
|
|
21285
|
-
},
|
|
21291
|
+
}, JI = {
|
|
21286
21292
|
ON_VIEW_MORE_VIEWED: "onViewMoreCardView"
|
|
21287
21293
|
}, et = {
|
|
21288
21294
|
CONTROL_BACKWARD: "Control Backward",
|
|
@@ -21296,18 +21302,18 @@ const tr = {
|
|
|
21296
21302
|
MICRO_WIDGET_CAROUSEL: "Micro Widget Carousel",
|
|
21297
21303
|
MICRO_WIDGET_CAROUSEL_ZERO_STATE: "Micro Widget Carousel Zero State",
|
|
21298
21304
|
MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS: "Micro Widget Carousel No Relevant Insights"
|
|
21299
|
-
},
|
|
21305
|
+
}, Po = {
|
|
21300
21306
|
[at.MICRO_WIDGET_CAROUSEL]: {
|
|
21301
21307
|
label: $e.MICRO_WIDGET,
|
|
21302
21308
|
name: at.MICRO_WIDGET_CAROUSEL,
|
|
21303
|
-
path:
|
|
21309
|
+
path: uo.INSIGHTS_MICRO_WIDGET,
|
|
21304
21310
|
value: ye
|
|
21305
21311
|
},
|
|
21306
21312
|
// zero state
|
|
21307
21313
|
[at.MICRO_WIDGET_CAROUSEL_ZERO_STATE]: {
|
|
21308
21314
|
label: $e.MICRO_WIDGET,
|
|
21309
21315
|
name: at.MICRO_WIDGET_CAROUSEL_ZERO_STATE,
|
|
21310
|
-
path:
|
|
21316
|
+
path: uo.INSIGHTS_MICRO_WIDGET,
|
|
21311
21317
|
value: ye
|
|
21312
21318
|
},
|
|
21313
21319
|
// no relevant cards
|
|
@@ -21317,7 +21323,7 @@ const tr = {
|
|
|
21317
21323
|
path: "/micro-widget",
|
|
21318
21324
|
value: ye
|
|
21319
21325
|
}
|
|
21320
|
-
},
|
|
21326
|
+
}, bo = {
|
|
21321
21327
|
// carousel control interaction events - clicks and swipes
|
|
21322
21328
|
[xe.ON_CAROUSEL_BACK_CLICK]: {
|
|
21323
21329
|
action: et.CONTROL_BACKWARD,
|
|
@@ -21350,7 +21356,7 @@ const tr = {
|
|
|
21350
21356
|
label: $e.VIEW_MORE,
|
|
21351
21357
|
value: ye
|
|
21352
21358
|
},
|
|
21353
|
-
[
|
|
21359
|
+
[JI.ON_VIEW_MORE_VIEWED]: {
|
|
21354
21360
|
action: et.MICRO_BEAT_DISPLAYED,
|
|
21355
21361
|
category: At.BEAT_INTERACTION,
|
|
21356
21362
|
label: $e.VIEW_MORE,
|
|
@@ -21359,25 +21365,25 @@ const tr = {
|
|
|
21359
21365
|
...E3(),
|
|
21360
21366
|
...h3(),
|
|
21361
21367
|
...l3()
|
|
21362
|
-
},
|
|
21368
|
+
}, Ho = async (A, t) => !t || !bo[A] ? null : t.sendAnalyticEvent(bo[A]).then((i) => i).catch((i) => {
|
|
21363
21369
|
throw i;
|
|
21364
|
-
}),
|
|
21370
|
+
}), zo = async (A, t) => !t || !Po[A] ? null : t.sendAnalyticsPageview(Po[A]).then((i) => i).catch((i) => {
|
|
21365
21371
|
throw i;
|
|
21366
21372
|
});
|
|
21367
21373
|
class v3 {
|
|
21368
|
-
onAnalyticEvent =
|
|
21369
|
-
onAnalyticPageView =
|
|
21374
|
+
onAnalyticEvent = Ho;
|
|
21375
|
+
onAnalyticPageView = zo;
|
|
21370
21376
|
beatApi = new Lt("/", "");
|
|
21371
21377
|
constructor() {
|
|
21372
21378
|
DA(this);
|
|
21373
21379
|
}
|
|
21374
21380
|
initialize = async (t, i, n) => {
|
|
21375
21381
|
this.onAnalyticEvent = (r, o) => {
|
|
21376
|
-
|
|
21382
|
+
Ho(r, o).then((I) => I).catch((I) => {
|
|
21377
21383
|
throw I.status === 401 && n(), I;
|
|
21378
21384
|
});
|
|
21379
21385
|
}, this.onAnalyticPageView = (r, o) => {
|
|
21380
|
-
|
|
21386
|
+
zo(r, o).then((I) => I).catch((I) => {
|
|
21381
21387
|
throw I.status === 401 && n(), I;
|
|
21382
21388
|
});
|
|
21383
21389
|
}, this.beatApi = new Lt(t, i);
|
|
@@ -21585,7 +21591,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
21585
21591
|
}, p3 = ({ beat: A }) => {
|
|
21586
21592
|
const t = KA(), i = X3(A.data_series, t);
|
|
21587
21593
|
return /* @__PURE__ */ e(q, { name: "bar_chart", sx: { color: i } });
|
|
21588
|
-
},
|
|
21594
|
+
}, _I = () => /* @__PURE__ */ s("svg", { fill: "none", height: "36", viewBox: "0 0 40 36", width: "40", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
21589
21595
|
/* @__PURE__ */ e(
|
|
21590
21596
|
"path",
|
|
21591
21597
|
{
|
|
@@ -22366,7 +22372,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22366
22372
|
}
|
|
22367
22373
|
)
|
|
22368
22374
|
] })
|
|
22369
|
-
] }),
|
|
22375
|
+
] }), Co = ({ beat: A, clientColorScheme: t, color: i, type: n }) => {
|
|
22370
22376
|
const r = RA(), o = t?.primary_300 ? t.primary_300 : r.palette.primary.main;
|
|
22371
22377
|
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(
|
|
22372
22378
|
q,
|
|
@@ -22395,17 +22401,17 @@ const si = h.createContext(null), u3 = ({
|
|
|
22395
22401
|
if (!A)
|
|
22396
22402
|
throw new Error("useEvent() must be used within the InsightsMicroWidgetDataProvider");
|
|
22397
22403
|
return { onEvent: A.onEvent };
|
|
22398
|
-
},
|
|
22404
|
+
}, $I = () => {
|
|
22399
22405
|
const A = h.useContext(si);
|
|
22400
22406
|
if (!A)
|
|
22401
22407
|
throw new Error("usePageview() must be used within the InsightsMicroWidgetDataProvider");
|
|
22402
22408
|
return { onPageview: A.onPageview };
|
|
22403
|
-
},
|
|
22409
|
+
}, Aa = {
|
|
22404
22410
|
LARGE: 180,
|
|
22405
22411
|
STANDARD: 154,
|
|
22406
22412
|
XLARGE: 200,
|
|
22407
22413
|
XXLARGE: 248
|
|
22408
|
-
}, y3 = 50,
|
|
22414
|
+
}, y3 = 50, ea = 1, x3 = ({
|
|
22409
22415
|
ariaLabel: A,
|
|
22410
22416
|
backgroundColor: t,
|
|
22411
22417
|
beat: i,
|
|
@@ -22420,17 +22426,17 @@ const si = h.createContext(null), u3 = ({
|
|
|
22420
22426
|
variant: E,
|
|
22421
22427
|
widthOverrides: l
|
|
22422
22428
|
}) => {
|
|
22423
|
-
const { ref: v, inView: u } =
|
|
22424
|
-
threshold:
|
|
22429
|
+
const { ref: v, inView: u } = To({
|
|
22430
|
+
threshold: ea
|
|
22425
22431
|
}), { cardsCopy: H } = ut(), { onEvent: b } = ci(), { updateBeat: p, updateOffer: y } = w3();
|
|
22426
22432
|
Ht(() => {
|
|
22427
|
-
u && (i.has_been_displayed ? b(
|
|
22433
|
+
u && (i.has_been_displayed ? b(KI(i.template)) : (i.guid.startsWith("OFR") ? y({
|
|
22428
22434
|
...i,
|
|
22429
22435
|
has_been_displayed: !0
|
|
22430
22436
|
}) : p({
|
|
22431
22437
|
...i,
|
|
22432
22438
|
has_been_displayed: !0
|
|
22433
|
-
}), b(
|
|
22439
|
+
}), b(ZI(i.template))));
|
|
22434
22440
|
}, [u]), Ht(() => {
|
|
22435
22441
|
u && i && d?.capture("viewed_insight", {
|
|
22436
22442
|
beat_guid: i.guid,
|
|
@@ -22439,7 +22445,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22439
22445
|
});
|
|
22440
22446
|
}, [i, I, u]);
|
|
22441
22447
|
const x = () => {
|
|
22442
|
-
c && c(i), b(
|
|
22448
|
+
c && c(i), b(kI(i.template)), d?.capture("clicked_insight", {
|
|
22443
22449
|
beat_guid: i.guid,
|
|
22444
22450
|
template: i.template,
|
|
22445
22451
|
position: I
|
|
@@ -22454,8 +22460,8 @@ const si = h.createContext(null), u3 = ({
|
|
|
22454
22460
|
description: i?.html_micro_description && i?.html_micro_description.length > 0 ? i.html_micro_description : i.html_description,
|
|
22455
22461
|
fontColors: { buttonColor: n?.primary_300 },
|
|
22456
22462
|
heightOverrides: o,
|
|
22457
|
-
icon:
|
|
22458
|
-
|
|
22463
|
+
icon: Co && /* @__PURE__ */ e(
|
|
22464
|
+
Co,
|
|
22459
22465
|
{
|
|
22460
22466
|
beat: i,
|
|
22461
22467
|
clientColorScheme: n,
|
|
@@ -22703,7 +22709,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22703
22709
|
},
|
|
22704
22710
|
children: [
|
|
22705
22711
|
/* @__PURE__ */ e(
|
|
22706
|
-
|
|
22712
|
+
Rr,
|
|
22707
22713
|
{
|
|
22708
22714
|
sx: {
|
|
22709
22715
|
fontSize: 18,
|
|
@@ -22715,7 +22721,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22715
22721
|
}
|
|
22716
22722
|
),
|
|
22717
22723
|
/* @__PURE__ */ s(
|
|
22718
|
-
|
|
22724
|
+
No,
|
|
22719
22725
|
{
|
|
22720
22726
|
onClick: I,
|
|
22721
22727
|
sx: {
|
|
@@ -22731,7 +22737,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22731
22737
|
underline: "none",
|
|
22732
22738
|
children: [
|
|
22733
22739
|
/* @__PURE__ */ e(
|
|
22734
|
-
|
|
22740
|
+
Rr,
|
|
22735
22741
|
{
|
|
22736
22742
|
sx: {
|
|
22737
22743
|
color: A?.primary_300,
|
|
@@ -22771,7 +22777,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22771
22777
|
children: i
|
|
22772
22778
|
}
|
|
22773
22779
|
);
|
|
22774
|
-
},
|
|
22780
|
+
}, ta = ({
|
|
22775
22781
|
ariaLabel: A,
|
|
22776
22782
|
carouselSize: t,
|
|
22777
22783
|
clientColorScheme: i,
|
|
@@ -22783,7 +22789,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22783
22789
|
variant: c,
|
|
22784
22790
|
widthOverrides: d
|
|
22785
22791
|
}) => {
|
|
22786
|
-
const { cardsCopy: f } = ut(), { onEvent: E } = ci(), { onPageview: l } =
|
|
22792
|
+
const { cardsCopy: f } = ut(), { onEvent: E } = ci(), { onPageview: l } = $I();
|
|
22787
22793
|
h.useEffect(() => {
|
|
22788
22794
|
l(at.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS);
|
|
22789
22795
|
}, []);
|
|
@@ -22800,7 +22806,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22800
22806
|
description: f.no_relevant_insights_card_description,
|
|
22801
22807
|
fontColors: { buttonColor: i?.primary_300 },
|
|
22802
22808
|
heightOverrides: n,
|
|
22803
|
-
icon: /* @__PURE__ */ e(
|
|
22809
|
+
icon: /* @__PURE__ */ e(_I, {}),
|
|
22804
22810
|
isZeroState: !0,
|
|
22805
22811
|
onCardClick: v,
|
|
22806
22812
|
posthog: o,
|
|
@@ -22808,7 +22814,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22808
22814
|
style: {
|
|
22809
22815
|
cardStyle: {
|
|
22810
22816
|
card: {
|
|
22811
|
-
height: `calc(${
|
|
22817
|
+
height: `calc(${Aa[t]}px - 44px)`,
|
|
22812
22818
|
margin: "0 auto",
|
|
22813
22819
|
width: a ? "calc(100% - 32px)" : "100%"
|
|
22814
22820
|
},
|
|
@@ -22825,7 +22831,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22825
22831
|
widthOverrides: d
|
|
22826
22832
|
}
|
|
22827
22833
|
);
|
|
22828
|
-
}, SP = C(
|
|
22834
|
+
}, SP = C(ta), ia = ({
|
|
22829
22835
|
ariaLabel: A,
|
|
22830
22836
|
carouselSize: t,
|
|
22831
22837
|
heightOverrides: i,
|
|
@@ -22836,7 +22842,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22836
22842
|
variant: a,
|
|
22837
22843
|
widthOverrides: c
|
|
22838
22844
|
}) => {
|
|
22839
|
-
const { onPageview: d } =
|
|
22845
|
+
const { onPageview: d } = $I(), { zeroStateCopy: f } = ut();
|
|
22840
22846
|
return h.useEffect(() => {
|
|
22841
22847
|
d(at.MICRO_WIDGET_CAROUSEL_ZERO_STATE);
|
|
22842
22848
|
}, []), /* @__PURE__ */ e(
|
|
@@ -22845,7 +22851,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22845
22851
|
ariaLabel: A,
|
|
22846
22852
|
description: f.carousel_zero_state_description,
|
|
22847
22853
|
heightOverrides: i,
|
|
22848
|
-
icon: /* @__PURE__ */ e(
|
|
22854
|
+
icon: /* @__PURE__ */ e(_I, {}),
|
|
22849
22855
|
isZeroState: !0,
|
|
22850
22856
|
onCardClick: n,
|
|
22851
22857
|
posthog: r,
|
|
@@ -22853,7 +22859,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22853
22859
|
style: {
|
|
22854
22860
|
cardStyle: {
|
|
22855
22861
|
card: {
|
|
22856
|
-
height: `calc(${
|
|
22862
|
+
height: `calc(${Aa[t]}px - 44px)`,
|
|
22857
22863
|
margin: "0 auto",
|
|
22858
22864
|
width: I ? "calc(100% - 32px)" : "100%"
|
|
22859
22865
|
},
|
|
@@ -22867,7 +22873,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22867
22873
|
widthOverrides: c
|
|
22868
22874
|
}
|
|
22869
22875
|
);
|
|
22870
|
-
}, UP = C(
|
|
22876
|
+
}, UP = C(ia), M3 = () => /* @__PURE__ */ e(
|
|
22871
22877
|
L,
|
|
22872
22878
|
{
|
|
22873
22879
|
sx: {
|
|
@@ -22877,7 +22883,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22877
22883
|
justifyContent: "center",
|
|
22878
22884
|
width: "100%"
|
|
22879
22885
|
},
|
|
22880
|
-
children: /* @__PURE__ */ e(
|
|
22886
|
+
children: /* @__PURE__ */ e(pn, {})
|
|
22881
22887
|
}
|
|
22882
22888
|
), Je = new R3(), N3 = ({
|
|
22883
22889
|
areBeatsLoading: A,
|
|
@@ -22955,8 +22961,8 @@ const si = h.createContext(null), u3 = ({
|
|
|
22955
22961
|
...Y
|
|
22956
22962
|
}
|
|
22957
22963
|
),
|
|
22958
|
-
m && !t.length && y && /* @__PURE__ */ e(
|
|
22959
|
-
m && !t.length && !y && /* @__PURE__ */ e(
|
|
22964
|
+
m && !t.length && y && /* @__PURE__ */ e(ta, { clientColorScheme: i, ...iA }),
|
|
22965
|
+
m && !t.length && !y && /* @__PURE__ */ e(ia, { ...iA })
|
|
22960
22966
|
] }) })
|
|
22961
22967
|
] })
|
|
22962
22968
|
);
|
|
@@ -22971,11 +22977,11 @@ const si = h.createContext(null), u3 = ({
|
|
|
22971
22977
|
variant: a,
|
|
22972
22978
|
widthOverrides: c
|
|
22973
22979
|
}) => {
|
|
22974
|
-
const d = KA(), { ref: f, inView: E } =
|
|
22975
|
-
threshold:
|
|
22980
|
+
const d = KA(), { ref: f, inView: E } = To({
|
|
22981
|
+
threshold: ea
|
|
22976
22982
|
}), { cardsCopy: l } = ut(), { onEvent: v } = ci();
|
|
22977
22983
|
Ht(() => {
|
|
22978
|
-
E && (v(
|
|
22984
|
+
E && (v(JI.ON_VIEW_MORE_VIEWED), o?.capture("viewed_insight", {
|
|
22979
22985
|
template: "view_more_card"
|
|
22980
22986
|
}));
|
|
22981
22987
|
}, [E]);
|
|
@@ -23008,7 +23014,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
23008
23014
|
widthOverrides: c
|
|
23009
23015
|
}
|
|
23010
23016
|
);
|
|
23011
|
-
}, Y3 = C(T3),
|
|
23017
|
+
}, Y3 = C(T3), sn = 5, V3 = (A, t) => t.reduce((i, n) => {
|
|
23012
23018
|
if (n.total > 0) {
|
|
23013
23019
|
const r = A.find((d) => d.guid === n.category_guid);
|
|
23014
23020
|
if (!r) return i;
|
|
@@ -23029,18 +23035,18 @@ const si = h.createContext(null), u3 = ({
|
|
|
23029
23035
|
});
|
|
23030
23036
|
}
|
|
23031
23037
|
return i;
|
|
23032
|
-
}, []),
|
|
23038
|
+
}, []), na = (A, t) => {
|
|
23033
23039
|
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(
|
|
23034
23040
|
(c, d) => c + d.amount,
|
|
23035
23041
|
0
|
|
23036
|
-
), o = n.length >
|
|
23042
|
+
), o = n.length > sn ? sn : n.length, I = n.slice(0, o), a = I.map((c) => ({
|
|
23037
23043
|
id: c.guid,
|
|
23038
23044
|
color: c.color,
|
|
23039
23045
|
label: c.name,
|
|
23040
23046
|
value: c.amount / r * 100
|
|
23041
23047
|
}));
|
|
23042
23048
|
if (n.length > 5) {
|
|
23043
|
-
const c = n.slice(
|
|
23049
|
+
const c = n.slice(sn, i.length), d = c.reduce(
|
|
23044
23050
|
(f, E) => f + E.amount,
|
|
23045
23051
|
0
|
|
23046
23052
|
);
|
|
@@ -23066,7 +23072,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
23066
23072
|
donutData: a,
|
|
23067
23073
|
totalAmount: r
|
|
23068
23074
|
};
|
|
23069
|
-
},
|
|
23075
|
+
}, ra = (A, t, i) => {
|
|
23070
23076
|
const n = A.filter(
|
|
23071
23077
|
(a) => a.parent_guid === g.INCOME
|
|
23072
23078
|
), r = t.filter((a) => n.some((c) => c.guid === a.category_guid)).sort((a, c) => a.total - c.total).map((a, c) => ({
|
|
@@ -23123,7 +23129,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
23123
23129
|
{
|
|
23124
23130
|
categoryGuid: t ? g.INCOME : E.guid,
|
|
23125
23131
|
size: a === "mini" ? 24 : u,
|
|
23126
|
-
variant:
|
|
23132
|
+
variant: wo.Transparent
|
|
23127
23133
|
}
|
|
23128
23134
|
),
|
|
23129
23135
|
/* @__PURE__ */ e(R, { color: "secondary", noWrap: !0, variant: a === "mini" ? "Tiny" : "Body", children: E ? E.name : I })
|
|
@@ -23145,7 +23151,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
23145
23151
|
}
|
|
23146
23152
|
)
|
|
23147
23153
|
] }) }) });
|
|
23148
|
-
}, wi = C(B3),
|
|
23154
|
+
}, wi = C(B3), go = ({ data: A, onSelected: t, selectedId: i }) => /* @__PURE__ */ e(P, { gap: 8, height: "100%", justifyContent: "center", my: "auto", children: A.categoryData.map((n) => /* @__PURE__ */ s(
|
|
23149
23155
|
P,
|
|
23150
23156
|
{
|
|
23151
23157
|
alignItems: "center",
|
|
@@ -23182,10 +23188,10 @@ const si = h.createContext(null), u3 = ({
|
|
|
23182
23188
|
).finally();
|
|
23183
23189
|
}, [i]);
|
|
23184
23190
|
const [a, c] = h.useState(""), [d, f] = h.useState(0), E = h.useMemo(
|
|
23185
|
-
() =>
|
|
23191
|
+
() => na(r, o),
|
|
23186
23192
|
[r, o]
|
|
23187
23193
|
), l = h.useMemo(
|
|
23188
|
-
() =>
|
|
23194
|
+
() => ra(r, o, n),
|
|
23189
23195
|
[r, o, n]
|
|
23190
23196
|
), v = (H, b) => {
|
|
23191
23197
|
f(b), c("");
|
|
@@ -23230,7 +23236,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
23230
23236
|
}
|
|
23231
23237
|
),
|
|
23232
23238
|
/* @__PURE__ */ e(
|
|
23233
|
-
|
|
23239
|
+
go,
|
|
23234
23240
|
{
|
|
23235
23241
|
data: E,
|
|
23236
23242
|
onSelected: u,
|
|
@@ -23249,7 +23255,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
23249
23255
|
totalLabel: t.total_income
|
|
23250
23256
|
}
|
|
23251
23257
|
),
|
|
23252
|
-
/* @__PURE__ */ e(
|
|
23258
|
+
/* @__PURE__ */ e(go, { data: l, onSelected: u, selectedId: a })
|
|
23253
23259
|
] }) })
|
|
23254
23260
|
] });
|
|
23255
23261
|
}, U3 = C(S3), F3 = ({ onPrimaryCtaClick: A, sx: t = {} }) => {
|
|
@@ -23394,7 +23400,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
23394
23400
|
]
|
|
23395
23401
|
}
|
|
23396
23402
|
);
|
|
23397
|
-
},
|
|
23403
|
+
}, Xo = C(K3), Z3 = (A) => [
|
|
23398
23404
|
A.palette.chartMono.chartMono5,
|
|
23399
23405
|
A.palette.chartMono.chartMono4,
|
|
23400
23406
|
A.palette.chartMono.chartMono3,
|
|
@@ -23411,10 +23417,10 @@ const si = h.createContext(null), u3 = ({
|
|
|
23411
23417
|
).finally();
|
|
23412
23418
|
}, [I, o]);
|
|
23413
23419
|
const y = h.useMemo(
|
|
23414
|
-
() =>
|
|
23420
|
+
() => na(t, i),
|
|
23415
23421
|
[t, i]
|
|
23416
23422
|
), x = h.useMemo(
|
|
23417
|
-
() =>
|
|
23423
|
+
() => ra(t, i, Z3(A)),
|
|
23418
23424
|
[t, i]
|
|
23419
23425
|
), w = h.useMemo(
|
|
23420
23426
|
() => d.find((O) => O.guid === u),
|
|
@@ -23475,7 +23481,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
23475
23481
|
)
|
|
23476
23482
|
] }),
|
|
23477
23483
|
l === 0 && /* @__PURE__ */ e(
|
|
23478
|
-
|
|
23484
|
+
Xo,
|
|
23479
23485
|
{
|
|
23480
23486
|
data: y,
|
|
23481
23487
|
onSelected: j,
|
|
@@ -23485,7 +23491,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
23485
23491
|
}
|
|
23486
23492
|
),
|
|
23487
23493
|
l === 1 && /* @__PURE__ */ e(
|
|
23488
|
-
|
|
23494
|
+
Xo,
|
|
23489
23495
|
{
|
|
23490
23496
|
data: x,
|
|
23491
23497
|
onSelected: j,
|
|
@@ -23711,7 +23717,7 @@ const i7 = (A) => A.reduce((i, n) => {
|
|
|
23711
23717
|
view_transactions: "View Transactions"
|
|
23712
23718
|
}, l7 = ({ onBackClick: A, sx: t }) => {
|
|
23713
23719
|
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(), b = i.palette.mode === "dark", [p, y] = h.useState(!1), [x, w] = h.useState(!1), [D, j] = h.useState("Chart"), [m, O] = h.useState(""), [T, tA] = h.useState({
|
|
23714
|
-
start:
|
|
23720
|
+
start: ur(BA(Ne(/* @__PURE__ */ new Date(), 6)), 1),
|
|
23715
23721
|
end: BA(/* @__PURE__ */ new Date())
|
|
23716
23722
|
});
|
|
23717
23723
|
h.useEffect(() => {
|
|
@@ -23750,7 +23756,7 @@ const i7 = (A) => A.reduce((i, n) => {
|
|
|
23750
23756
|
}, [T, I]), oA = (bA, JA) => {
|
|
23751
23757
|
j(JA ?? D), n(V.TRENDS_CLICK_TOGGLE);
|
|
23752
23758
|
}, sA = (bA) => {
|
|
23753
|
-
const JA =
|
|
23759
|
+
const JA = ur(bA?.[0], 1), Ke = bA?.[1], Yt = Ms(Ke, JA);
|
|
23754
23760
|
tA({ start: JA, end: Ke }), n(V.TRENDS_CLICK_DATE, {
|
|
23755
23761
|
time_period: Yt + "M"
|
|
23756
23762
|
});
|
|
@@ -23812,14 +23818,14 @@ const i7 = (A) => A.reduce((i, n) => {
|
|
|
23812
23818
|
/* @__PURE__ */ e(R, { variant: r ? "Body" : "Small", children: iA })
|
|
23813
23819
|
] }),
|
|
23814
23820
|
/* @__PURE__ */ e(
|
|
23815
|
-
|
|
23821
|
+
Do,
|
|
23816
23822
|
{
|
|
23817
23823
|
exclusive: !0,
|
|
23818
23824
|
onChange: oA,
|
|
23819
23825
|
orientation: "horizontal",
|
|
23820
23826
|
value: D,
|
|
23821
23827
|
children: ["Chart", "Table"].map((bA) => /* @__PURE__ */ e(
|
|
23822
|
-
|
|
23828
|
+
Xn,
|
|
23823
23829
|
{
|
|
23824
23830
|
sx: {
|
|
23825
23831
|
fontSize: 15,
|
|
@@ -23900,7 +23906,7 @@ const i7 = (A) => A.reduce((i, n) => {
|
|
|
23900
23906
|
}, KP = C(l7), v7 = () => {
|
|
23901
23907
|
const A = oe(), { monthlyCategoryTotals: t } = qA(), { trends: i } = X(), n = Rh(t);
|
|
23902
23908
|
return /* @__PURE__ */ e(
|
|
23903
|
-
|
|
23909
|
+
Nn,
|
|
23904
23910
|
{
|
|
23905
23911
|
baseline: "min",
|
|
23906
23912
|
colors: [A.palette.primary.main],
|
|
@@ -23933,26 +23939,26 @@ const i7 = (A) => A.reduce((i, n) => {
|
|
|
23933
23939
|
}, ZP = C(u7);
|
|
23934
23940
|
export {
|
|
23935
23941
|
V as ANALYTICS_EVENTS,
|
|
23936
|
-
|
|
23937
|
-
|
|
23938
|
-
|
|
23939
|
-
|
|
23940
|
-
|
|
23942
|
+
Eo as AccountApi,
|
|
23943
|
+
UI as AccountDetailsContent,
|
|
23944
|
+
Ar as AccountDetailsHeader,
|
|
23945
|
+
_o as AccountFilter,
|
|
23946
|
+
Uo as AccountIcon,
|
|
23941
23947
|
Bs as AccountIconVariants,
|
|
23942
23948
|
mR as AccountStore,
|
|
23943
23949
|
Ys as AccountSubType,
|
|
23944
23950
|
_ as AccountType,
|
|
23945
|
-
|
|
23951
|
+
Ln as AccountTypeName,
|
|
23946
23952
|
NP as AccountsMiniWidget,
|
|
23947
23953
|
MP as AccountsWidget,
|
|
23948
|
-
|
|
23954
|
+
wI as ActivitySettings,
|
|
23949
23955
|
SA as ActivityStatus,
|
|
23950
23956
|
TA as ActivityType,
|
|
23951
23957
|
Nd as AddAccountModal,
|
|
23952
23958
|
rc as AnalyticsApi,
|
|
23953
23959
|
Q as ApiEndpoints,
|
|
23954
23960
|
R3 as AppStore,
|
|
23955
|
-
|
|
23961
|
+
Cr as BannerApi,
|
|
23956
23962
|
RP as BarChart,
|
|
23957
23963
|
Lt as BeatApi,
|
|
23958
23964
|
x3 as BeatCard,
|
|
@@ -23960,9 +23966,9 @@ export {
|
|
|
23960
23966
|
YP as BubbleBudgetsMiniWidget,
|
|
23961
23967
|
VP as BubbleBudgetsWidget,
|
|
23962
23968
|
Cc as Calendar,
|
|
23963
|
-
|
|
23969
|
+
$o as CalendarSelectionTypes,
|
|
23964
23970
|
q3 as CarouselHeader,
|
|
23965
|
-
|
|
23971
|
+
Ao as CashflowApi,
|
|
23966
23972
|
zP as CashflowMiniWidget,
|
|
23967
23973
|
eh as CashflowOnboarding,
|
|
23968
23974
|
nh as CashflowStore,
|
|
@@ -23972,12 +23978,12 @@ export {
|
|
|
23972
23978
|
qi as CategoryGuidToName,
|
|
23973
23979
|
g as CategoryGuids,
|
|
23974
23980
|
Us as CategoryIcon,
|
|
23975
|
-
|
|
23981
|
+
dI as CategoryRow,
|
|
23976
23982
|
rd as CategorySelector,
|
|
23977
23983
|
Vi as CategorySelectorDrawer,
|
|
23978
23984
|
cd as CategoryStore,
|
|
23979
23985
|
C3 as ChartFilledIcon,
|
|
23980
|
-
|
|
23986
|
+
aI as ConnectCard,
|
|
23981
23987
|
Ii as ConnectDrawer,
|
|
23982
23988
|
TP as ConnectMiniWidget,
|
|
23983
23989
|
bt as ConnectionStatus,
|
|
@@ -23986,13 +23992,13 @@ export {
|
|
|
23986
23992
|
qe as CurrencyInput,
|
|
23987
23993
|
OA as CurrencyText,
|
|
23988
23994
|
AA as DATE_FORMATS_INTL,
|
|
23989
|
-
|
|
23990
|
-
|
|
23995
|
+
Fo as DEFAULT_DONUT_SIZE,
|
|
23996
|
+
Wo as DEFAULT_STROKE_WIDTH,
|
|
23991
23997
|
BP as Dashboard,
|
|
23992
|
-
|
|
23998
|
+
gn as DashboardLocation,
|
|
23993
23999
|
zi as DataRow,
|
|
23994
|
-
|
|
23995
|
-
|
|
24000
|
+
jr as DateRangeSelector,
|
|
24001
|
+
OI as DebtsChart,
|
|
23996
24002
|
ol as DebtsStore,
|
|
23997
24003
|
Zh as DebtsTable,
|
|
23998
24004
|
DP as DebtsWidget,
|
|
@@ -24000,7 +24006,7 @@ export {
|
|
|
24000
24006
|
XA as Dialog,
|
|
24001
24007
|
yc as Donut,
|
|
24002
24008
|
IA as Drawer,
|
|
24003
|
-
|
|
24009
|
+
Bo as ErrorStatuses,
|
|
24004
24010
|
Pf as ExpenseStatus,
|
|
24005
24011
|
Ae as Fetch,
|
|
24006
24012
|
de as FieldType,
|
|
@@ -24009,31 +24015,31 @@ export {
|
|
|
24009
24015
|
gt as GlobalDataContext,
|
|
24010
24016
|
uP as GlobalDataProvider,
|
|
24011
24017
|
GP as GlobalStore,
|
|
24012
|
-
|
|
24018
|
+
to as GoalApi,
|
|
24013
24019
|
wl as GoalStore,
|
|
24014
|
-
|
|
24020
|
+
Pn as GoalType,
|
|
24015
24021
|
jP as GoalsWidget,
|
|
24016
24022
|
bv as HelpContent,
|
|
24017
24023
|
Hv as HelpList,
|
|
24018
24024
|
Gv as HelpWidget,
|
|
24019
|
-
|
|
24025
|
+
Qn as INCOME_ACCOUNT_TYPES,
|
|
24020
24026
|
ft as IconBacking,
|
|
24021
24027
|
Ci as InformationTooltip,
|
|
24022
24028
|
FP as InsightsMicroWidget,
|
|
24023
24029
|
u3 as InsightsMicroWidgetDataProvider,
|
|
24024
24030
|
Ws as IterationItemTypes,
|
|
24025
24031
|
fP as LOADING_STATUS,
|
|
24026
|
-
|
|
24032
|
+
Nn as LineChart,
|
|
24027
24033
|
Ge as ListItemAction,
|
|
24028
24034
|
Kc as ListItemWrapper,
|
|
24029
24035
|
ee as Loader,
|
|
24030
24036
|
lP as LocalizedCopyApi,
|
|
24031
|
-
|
|
24037
|
+
Jn as ManageIncome,
|
|
24032
24038
|
ct as MemberConnectionStatus,
|
|
24033
24039
|
mP as MerchantLookup,
|
|
24034
24040
|
Ql as MerchantStore,
|
|
24035
24041
|
he as MetaType,
|
|
24036
|
-
|
|
24042
|
+
Vo as MfaStatuses,
|
|
24037
24043
|
O3 as MicroBeatCarousel,
|
|
24038
24044
|
ki as MicroInsightCard,
|
|
24039
24045
|
pt as MiniWidgetContainer,
|
|
@@ -24045,20 +24051,20 @@ export {
|
|
|
24045
24051
|
_l as NetWorthSummary,
|
|
24046
24052
|
OP as NetWorthWidget,
|
|
24047
24053
|
SP as NoRelevantInsightsCard,
|
|
24048
|
-
|
|
24049
|
-
|
|
24054
|
+
So as NonConnectedStatuses,
|
|
24055
|
+
gr as NotificationApi,
|
|
24050
24056
|
QP as NotificationList,
|
|
24051
24057
|
iR as NotificationSettings,
|
|
24052
24058
|
o9 as NotificationStore,
|
|
24053
24059
|
LA as NotificationType,
|
|
24054
24060
|
Ts as ORDINAL_DATE_FORMAT,
|
|
24055
24061
|
IP as ORDINAL_MONTH_DAY_YEAR_FORMAT,
|
|
24056
|
-
|
|
24057
|
-
|
|
24062
|
+
qn as PAYMENT_ACCOUNT_TYPES,
|
|
24063
|
+
Pr as PaymentCategories,
|
|
24058
24064
|
Fs as PlanTypes,
|
|
24059
24065
|
Vs as ProcessingStatuses,
|
|
24060
24066
|
Vv as ProfileTab,
|
|
24061
|
-
|
|
24067
|
+
Yo as PropertyType,
|
|
24062
24068
|
sP as PropertyTypeName,
|
|
24063
24069
|
cP as RECURRENCE_COPY,
|
|
24064
24070
|
U as RecurrenceTypes,
|
|
@@ -24066,16 +24072,16 @@ export {
|
|
|
24066
24072
|
wE as RecurringActivityStore,
|
|
24067
24073
|
pP as RecurringActivityWidget,
|
|
24068
24074
|
HP as ResponsiveButton,
|
|
24069
|
-
|
|
24075
|
+
Gn as SPENDING_ACCOUNT_TYPES,
|
|
24070
24076
|
bf as ScheduledPaymentTypes,
|
|
24071
|
-
|
|
24077
|
+
Xr as ScheduledPaymentsApi,
|
|
24072
24078
|
Hf as ScreenSize,
|
|
24073
24079
|
Ti as SearchBox,
|
|
24074
|
-
|
|
24075
|
-
|
|
24080
|
+
Lr as SelectionBox,
|
|
24081
|
+
so as SettingsApi,
|
|
24076
24082
|
l9 as SettingsStore,
|
|
24077
24083
|
qP as SettingsWidget,
|
|
24078
|
-
|
|
24084
|
+
oI as SingleSegmentDonut,
|
|
24079
24085
|
ks as Sizes,
|
|
24080
24086
|
WP as SpendingMiniWidget,
|
|
24081
24087
|
kP as SpendingWidget,
|
|
@@ -24085,44 +24091,44 @@ export {
|
|
|
24085
24091
|
Bt as TOUCH_TARGET,
|
|
24086
24092
|
S as TRANSACTION_EVENTS,
|
|
24087
24093
|
Qt as TabContentContainer,
|
|
24088
|
-
|
|
24094
|
+
vn as ToggleButtonListItem,
|
|
24089
24095
|
jt as ToggleListItem,
|
|
24090
24096
|
Wt as TopActions,
|
|
24091
24097
|
B as TrackType,
|
|
24092
24098
|
gi as TransactionApi,
|
|
24093
24099
|
Tt as TransactionDetails,
|
|
24094
24100
|
Rt as TransactionList,
|
|
24095
|
-
|
|
24101
|
+
Sn as TransactionRow,
|
|
24096
24102
|
$v as TransactionRulesTab,
|
|
24097
|
-
|
|
24103
|
+
Bn as TransactionStatus,
|
|
24098
24104
|
Cf as TransactionStore,
|
|
24099
24105
|
Vf as TransactionTable,
|
|
24100
24106
|
se as TransactionType,
|
|
24101
24107
|
XP as TransactionWidget,
|
|
24102
24108
|
KP as TrendsFullWidget,
|
|
24103
24109
|
ZP as TrendsMiniWidget,
|
|
24104
|
-
|
|
24110
|
+
pr as UserApi,
|
|
24105
24111
|
nR as UserStore,
|
|
24106
24112
|
uf as UserVerification,
|
|
24107
24113
|
Y3 as ViewMoreMicroCard,
|
|
24108
|
-
|
|
24114
|
+
wr as WidgetApi,
|
|
24109
24115
|
Le as WidgetContainer,
|
|
24110
|
-
|
|
24111
|
-
|
|
24116
|
+
AI as WidgetContainerContext,
|
|
24117
|
+
eI as WidgetContainerProvider,
|
|
24112
24118
|
UP as ZeroStateCard,
|
|
24113
|
-
|
|
24119
|
+
_I as ZeroStateIcon,
|
|
24114
24120
|
Ns as analyticsSession,
|
|
24115
24121
|
z as buildDynamicCopy,
|
|
24116
24122
|
hP as buildPluralCopy,
|
|
24117
|
-
|
|
24123
|
+
fI as exportTransactionsToCSV,
|
|
24118
24124
|
M as formatCurrency,
|
|
24119
24125
|
nA as formatDate,
|
|
24120
|
-
|
|
24126
|
+
ko as formatOrdinal,
|
|
24121
24127
|
Gi as formatPercentage,
|
|
24122
|
-
|
|
24123
|
-
|
|
24128
|
+
Zo as fromTimestampToMonthYear,
|
|
24129
|
+
xI as getAccountBalanceDetails,
|
|
24124
24130
|
LE as getAccountDetailFields,
|
|
24125
|
-
|
|
24131
|
+
Hr as getCategory,
|
|
24126
24132
|
dP as getCategoryTotalsByParent,
|
|
24127
24133
|
_s as getCurrencyCodes,
|
|
24128
24134
|
Ks as getDetailedCategory,
|
|
@@ -24130,12 +24136,12 @@ export {
|
|
|
24130
24136
|
ht as getLocale,
|
|
24131
24137
|
LP as getNotificationDetailRoute,
|
|
24132
24138
|
EP as isIncome,
|
|
24133
|
-
|
|
24139
|
+
ln as isValidNumber,
|
|
24134
24140
|
CA as useAccountStore,
|
|
24135
24141
|
Xe as useAccountUiStore,
|
|
24136
|
-
|
|
24142
|
+
tI as useAppConfig,
|
|
24137
24143
|
te as useBudgetsStore,
|
|
24138
|
-
|
|
24144
|
+
Tn as useCashflowStore,
|
|
24139
24145
|
qA as useCategoryStore,
|
|
24140
24146
|
ot as useCategoryUiStore,
|
|
24141
24147
|
Ic as useCombineEvents,
|
|
@@ -24147,10 +24153,10 @@ export {
|
|
|
24147
24153
|
oi as useGlobalStore,
|
|
24148
24154
|
pA as useGlobalUiStore,
|
|
24149
24155
|
FA as useGoalStore,
|
|
24150
|
-
|
|
24156
|
+
Yn as useHelpStore,
|
|
24151
24157
|
Oc as useMerchantStore,
|
|
24152
24158
|
Lc as useNetWorthStore,
|
|
24153
|
-
|
|
24159
|
+
nI as useNotificationStore,
|
|
24154
24160
|
PP as usePageView,
|
|
24155
24161
|
vP as usePrevious,
|
|
24156
24162
|
ZA as useRecurringActivityStore,
|