@mx-cartographer/experiences 3.12.1 → 3.12.3
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 +8 -0
- package/dist/index.es.js +480 -437
- package/dist/index.es.js.map +1 -1
- package/dist/insights/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -4,16 +4,16 @@ import { observer as T } from "mobx-react-lite";
|
|
|
4
4
|
import I from "@mui/material/Box";
|
|
5
5
|
import G from "@mui/material/Divider";
|
|
6
6
|
import iA from "@mui/material/List";
|
|
7
|
-
import
|
|
7
|
+
import Ke from "@mui/material/ListSubheader";
|
|
8
8
|
import hr from "@mui/system/Stack";
|
|
9
|
-
import { AccountsIcon as Yi, P as CA, Icon as P, useTokens as DA, Text as v, H2 as
|
|
9
|
+
import { AccountsIcon as Yi, P as CA, Icon as P, useTokens as DA, Text as v, H2 as Wt, CategoryIcon as oe, DialogHeader as Vi, DialogFooter as Ji, Drawer as Zi, Footer as $i, DateRangePicker as gr, H3 as Yt, H1 as ge, TextField as Pe, IconWeight as qA, MerchantLogo as He, CategoryIconVariants as ya, InstitutionLogo as Ce, THEMES as Cr, createMXTheme as Se } from "@kyper/mui";
|
|
10
10
|
import Ao from "bowser";
|
|
11
11
|
import { getUnixTime as gA } from "date-fns/getUnixTime";
|
|
12
|
-
import { Honeybadger as
|
|
12
|
+
import { Honeybadger as It } from "@honeybadger-io/react";
|
|
13
13
|
import fr from "numeral";
|
|
14
14
|
import { intlFormat as eo } from "date-fns/intlFormat";
|
|
15
15
|
import oA from "@mui/material/Button";
|
|
16
|
-
import
|
|
16
|
+
import wt from "@mui/material/Tooltip";
|
|
17
17
|
import zA from "@mui/material/IconButton";
|
|
18
18
|
import pn from "@mui/material/FormControlLabel";
|
|
19
19
|
import W from "@mui/material/ListItem";
|
|
@@ -21,9 +21,9 @@ import cA from "@mui/material/ListItemButton";
|
|
|
21
21
|
import sA from "@mui/material/ListItemText";
|
|
22
22
|
import to from "@mui/material/Popover";
|
|
23
23
|
import w from "@mui/material/Stack";
|
|
24
|
-
import
|
|
24
|
+
import Mt from "@mui/material/Checkbox";
|
|
25
25
|
import uA from "@mui/material/styles/useTheme";
|
|
26
|
-
import
|
|
26
|
+
import Dt from "@mui/material/useMediaQuery";
|
|
27
27
|
import { css as WA, keyframes as no } from "@mxenabled/cssinjs";
|
|
28
28
|
import { addDays as fe } from "date-fns/addDays";
|
|
29
29
|
import { addMonths as ZA } from "date-fns/addMonths";
|
|
@@ -43,12 +43,12 @@ import { isSameDay as QA } from "date-fns/isSameDay";
|
|
|
43
43
|
import { isWithinInterval as Ze } from "date-fns/isWithinInterval";
|
|
44
44
|
import * as jA from "d3";
|
|
45
45
|
import { selectAll as co, interpolateString as lo, arc as uo } from "d3";
|
|
46
|
-
import { useTheme as $A, keyframes as ho, ThemeProvider as
|
|
46
|
+
import { useTheme as $A, keyframes as ho, ThemeProvider as At } from "@mui/material/styles";
|
|
47
47
|
import { ResponsiveChartContainer as go, AreaPlot as Co, LinePlot as fo, MarkPlot as mo, BarPlot as po, ChartsXAxis as vo, ChartsYAxis as Eo, ChartsReferenceLine as yo, ChartsLegend as wo, LineChart as So } from "@mui/x-charts";
|
|
48
|
-
import { Stack as Ve, Box as re, useTheme as
|
|
49
|
-
import { addYears as
|
|
48
|
+
import { Stack as Ve, Box as re, useTheme as et, Card as xn, CardContent as wa, Divider as vn, Grid as mr, List as Lo } from "@mui/material";
|
|
49
|
+
import { addYears as ft } from "date-fns/addYears";
|
|
50
50
|
import { differenceInCalendarDays as To } from "date-fns/differenceInCalendarDays";
|
|
51
|
-
import { endOfToday as
|
|
51
|
+
import { endOfToday as Ne } from "date-fns/endOfToday";
|
|
52
52
|
import { endOfYear as pr } from "date-fns/endOfYear";
|
|
53
53
|
import { startOfYear as vr } from "date-fns/startOfYear";
|
|
54
54
|
import { subDays as ae } from "date-fns/subDays";
|
|
@@ -59,14 +59,14 @@ import Sa from "@mui/material/ToggleButtonGroup";
|
|
|
59
59
|
import Io from "@mui/material/Dialog";
|
|
60
60
|
import La from "@mui/material/DialogContent";
|
|
61
61
|
import _A from "@mui/material/Card";
|
|
62
|
-
import
|
|
63
|
-
import
|
|
62
|
+
import tt from "@mui/material/CardHeader";
|
|
63
|
+
import nt from "@mui/material/CardContent";
|
|
64
64
|
import { ConnectWidget as Do, ConnectionsWidget as Oo } from "@mxenabled/web-widget-sdk";
|
|
65
65
|
import Nn from "@mui/material/CircularProgress";
|
|
66
66
|
import { v4 as xo } from "uuid";
|
|
67
|
-
import
|
|
67
|
+
import Rt from "@mui/material/InputAdornment";
|
|
68
68
|
import Po from "@mui/material/Radio";
|
|
69
|
-
import
|
|
69
|
+
import Le from "@mui/material/Avatar";
|
|
70
70
|
import bA from "@mui/material/ListItemAvatar";
|
|
71
71
|
import se from "@mui/material/ListItemIcon";
|
|
72
72
|
import { makeAutoObservable as yA, runInAction as Z, observable as No } from "mobx";
|
|
@@ -79,22 +79,22 @@ import UA from "@mui/material/Tab";
|
|
|
79
79
|
import ke from "@mui/material/Tabs";
|
|
80
80
|
import { parseISO as ba } from "date-fns/parseISO";
|
|
81
81
|
import ve from "@mui/material/Skeleton";
|
|
82
|
-
import { isAfter as
|
|
83
|
-
import { addQuarters as
|
|
82
|
+
import { isAfter as mt } from "date-fns/isAfter";
|
|
83
|
+
import { addQuarters as Be } from "date-fns/addQuarters";
|
|
84
84
|
import { addWeeks as Ye } from "date-fns/addWeeks";
|
|
85
85
|
import { nextDay as En } from "date-fns/nextDay";
|
|
86
86
|
import { setDate as yn } from "date-fns/setDate";
|
|
87
87
|
import { subWeeks as wr } from "date-fns/subWeeks";
|
|
88
|
-
import { getDay as
|
|
88
|
+
import { getDay as pt } from "date-fns/getDay";
|
|
89
89
|
import { formatISO as Mn } from "date-fns/formatISO";
|
|
90
90
|
import { DataGridPro as Rn } from "@mui/x-data-grid-pro";
|
|
91
91
|
import Hn from "@mui/material/MenuItem";
|
|
92
92
|
import qo from "@mui/material/RadioGroup";
|
|
93
93
|
import Ia from "@mui/icons-material/ExpandMore";
|
|
94
|
-
import
|
|
94
|
+
import vt from "@mui/icons-material/DeleteOutlined";
|
|
95
95
|
import zn from "@mui/material/Switch";
|
|
96
96
|
import Vt from "@mui/material/TextField";
|
|
97
|
-
import
|
|
97
|
+
import Ht from "@mui/icons-material/Cancel";
|
|
98
98
|
import dn from "@mui/material/Grid";
|
|
99
99
|
import Jt from "@mui/icons-material/ChevronRight";
|
|
100
100
|
import Ko from "@mui/icons-material/HighlightOff";
|
|
@@ -112,9 +112,9 @@ import { PickersDay as jo } from "@mui/x-date-pickers/PickersDay";
|
|
|
112
112
|
import Uo from "@mui/icons-material/AccessTimeFilled";
|
|
113
113
|
import Wo from "@mui/icons-material/MonetizationOn";
|
|
114
114
|
import Oa from "@mui/icons-material/CheckCircle";
|
|
115
|
-
import { getDate as
|
|
115
|
+
import { getDate as ht } from "date-fns/getDate";
|
|
116
116
|
import { isValid as Yo } from "date-fns/isValid";
|
|
117
|
-
import
|
|
117
|
+
import _e from "@mui/material/Unstable_Grid2";
|
|
118
118
|
import { DatePicker as Vo } from "@mui/x-date-pickers";
|
|
119
119
|
import xa from "@mui/material/Collapse";
|
|
120
120
|
import Jo from "@mui/material/Chip";
|
|
@@ -173,12 +173,12 @@ const Cs = async (A, e, n = "1.0.0", r = "Experiences") => {
|
|
|
173
173
|
}
|
|
174
174
|
})
|
|
175
175
|
};
|
|
176
|
-
},
|
|
176
|
+
}, zt = (A, e) => A.find((n) => n.guid === e), fs = (A, e) => {
|
|
177
177
|
const n = [];
|
|
178
178
|
for (const r of e) {
|
|
179
|
-
const a =
|
|
179
|
+
const a = zt(A, r.category_guid);
|
|
180
180
|
if (!a) continue;
|
|
181
|
-
const i = a.parent_guid ?? a.guid, o =
|
|
181
|
+
const i = a.parent_guid ?? a.guid, o = zt(A, i);
|
|
182
182
|
if (!o) continue;
|
|
183
183
|
const s = {
|
|
184
184
|
amount: r.total,
|
|
@@ -214,14 +214,14 @@ const Cs = async (A, e, n = "1.0.0", r = "Experiences") => {
|
|
|
214
214
|
[]
|
|
215
215
|
);
|
|
216
216
|
return n ? a : a.join("");
|
|
217
|
-
}, v8 = (A, e, n, ...r) => !A || !e ? "" : z(n === 1 ? A : e, ...r),
|
|
217
|
+
}, v8 = (A, e, n, ...r) => !A || !e ? "" : z(n === 1 ? A : e, ...r), Me = () => (window?.app?.options?.language || document.querySelector("html")?.getAttribute("lang") || "en-US").toLowerCase();
|
|
218
218
|
class YA {
|
|
219
219
|
endpoint = "/";
|
|
220
220
|
headers = {};
|
|
221
221
|
constructor(e, n) {
|
|
222
222
|
this.endpoint = e, this.headers = {
|
|
223
223
|
Accept: "application/json",
|
|
224
|
-
"Accept-Language":
|
|
224
|
+
"Accept-Language": Me(),
|
|
225
225
|
"Content-Type": "application/json",
|
|
226
226
|
"MD-Session-Token": n
|
|
227
227
|
};
|
|
@@ -236,7 +236,7 @@ class YA {
|
|
|
236
236
|
return r.text();
|
|
237
237
|
throw r;
|
|
238
238
|
}).then((r) => r.length ? JSON.parse(r) : {}).then((r) => r).catch((r) => {
|
|
239
|
-
throw
|
|
239
|
+
throw It.notify(r), r;
|
|
240
240
|
});
|
|
241
241
|
};
|
|
242
242
|
post = async (e, n) => {
|
|
@@ -250,7 +250,7 @@ class YA {
|
|
|
250
250
|
throw i;
|
|
251
251
|
return i.text();
|
|
252
252
|
}).then((i) => i.length ? JSON.parse(i) : {}).then((i) => i).catch((i) => {
|
|
253
|
-
throw
|
|
253
|
+
throw It.notify(i), i;
|
|
254
254
|
});
|
|
255
255
|
};
|
|
256
256
|
put = async (e, n) => {
|
|
@@ -262,7 +262,7 @@ class YA {
|
|
|
262
262
|
return fetch(`${this.endpoint}${e}`, a).then((i) => i.ok ? i.text() : i.text().then((o) => {
|
|
263
263
|
throw new Error(o);
|
|
264
264
|
})).then((i) => i.length ? JSON.parse(i) : {}).then((i) => i).catch((i) => {
|
|
265
|
-
throw
|
|
265
|
+
throw It.notify(i), i;
|
|
266
266
|
});
|
|
267
267
|
};
|
|
268
268
|
delete = async (e) => {
|
|
@@ -273,7 +273,7 @@ class YA {
|
|
|
273
273
|
return fetch(`${this.endpoint}${e}`, n).then((r) => r.ok ? r.text() : r.text().then((a) => {
|
|
274
274
|
throw new Error(a);
|
|
275
275
|
})).then((r) => r.length ? JSON.parse(r) : {}).then((r) => r).catch((r) => {
|
|
276
|
-
throw
|
|
276
|
+
throw It.notify(r), r;
|
|
277
277
|
});
|
|
278
278
|
};
|
|
279
279
|
}
|
|
@@ -413,7 +413,7 @@ const R = {
|
|
|
413
413
|
day: "numeric",
|
|
414
414
|
year: "numeric"
|
|
415
415
|
}
|
|
416
|
-
}, AA = (A, e) => eo(new Date(A), Object.assign(e), { locale:
|
|
416
|
+
}, AA = (A, e) => eo(new Date(A), Object.assign(e), { locale: Me() });
|
|
417
417
|
var j = /* @__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))(j || {}), vs = /* @__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))(vs || {}), Ra = /* @__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))(Ra || {}), RA = /* @__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))(RA || {});
|
|
418
418
|
const Es = [
|
|
419
419
|
0,
|
|
@@ -441,7 +441,7 @@ const Es = [
|
|
|
441
441
|
20
|
|
442
442
|
/* IMPAIRED */
|
|
443
443
|
], Ba = [...za, ...Ha];
|
|
444
|
-
var
|
|
444
|
+
var qe = /* @__PURE__ */ ((A) => (A.Connected = "Connected", A.Error = "Error", A.Processing = "Processing", A.RequiresMfa = "RequiresMfa", A))(qe || {});
|
|
445
445
|
const y8 = {
|
|
446
446
|
3: "Challenged",
|
|
447
447
|
12: "Closed",
|
|
@@ -661,7 +661,7 @@ const y8 = {
|
|
|
661
661
|
p.CREDIT_CARD_PAYMENT,
|
|
662
662
|
p.MORTGAGE_PAYMENT,
|
|
663
663
|
p.AUTO_PAYMENT
|
|
664
|
-
],
|
|
664
|
+
], De = {
|
|
665
665
|
// Top-level categories
|
|
666
666
|
[p.AUTO_AND_TRANSPORT]: "Auto & Transport",
|
|
667
667
|
[p.BILLS_AND_UTILITIES]: "Bills & Utilities",
|
|
@@ -829,7 +829,7 @@ const y8 = {
|
|
|
829
829
|
[p.UNCATEGORIZED]: "category",
|
|
830
830
|
UNKNOWN: "help"
|
|
831
831
|
}, Tr = 9999999999e-2;
|
|
832
|
-
var
|
|
832
|
+
var Bt = /* @__PURE__ */ ((A) => (A.CAD = "CAD", A.USD = "USD", A))(Bt || {}), q = /* @__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))(q || {});
|
|
833
833
|
const S8 = [
|
|
834
834
|
{ id: 0, copy: "frequency_unknown" },
|
|
835
835
|
{ id: 1, copy: "frequency_every_week" },
|
|
@@ -847,25 +847,25 @@ const S8 = [
|
|
|
847
847
|
var Ls = /* @__PURE__ */ ((A) => (A[A.SpendingPlan = 0] = "SpendingPlan", A[A.Budgets = 1] = "Budgets", A))(Ls || {}), Ts = /* @__PURE__ */ ((A) => (A[A.RecurringExpense = 0] = "RecurringExpense", A[A.PlannedExpense = 1] = "PlannedExpense", A[A.Other = 2] = "Other", A[A.Income = 3] = "Income", A))(Ts || {});
|
|
848
848
|
const qa = 48, Ka = 4;
|
|
849
849
|
var bs = /* @__PURE__ */ ((A) => (A.Small = "small", A.Medium = "medium", A.Large = "large", A))(bs || {});
|
|
850
|
-
const
|
|
851
|
-
switch (
|
|
850
|
+
const ot = 44, Q = (A, e, n) => {
|
|
851
|
+
switch (Me()) {
|
|
852
852
|
case "fr-ca":
|
|
853
853
|
return fr(A).format(`${e} $`, n);
|
|
854
854
|
default:
|
|
855
855
|
return fr(A).format(`$${e}`, n);
|
|
856
856
|
}
|
|
857
857
|
}, Is = () => {
|
|
858
|
-
switch (
|
|
858
|
+
switch (Me()) {
|
|
859
859
|
case "fr-ca":
|
|
860
|
-
return
|
|
860
|
+
return Bt.CAD;
|
|
861
861
|
default:
|
|
862
|
-
return
|
|
862
|
+
return Bt.USD;
|
|
863
863
|
}
|
|
864
864
|
}, Sn = (A) => A != null && A !== "" && isFinite(A), Ds = {
|
|
865
865
|
style: "percent",
|
|
866
866
|
minimumFractionDigits: 2,
|
|
867
867
|
maximumFractionDigits: 2
|
|
868
|
-
}, Os = (A, e = Ds) => Sn(A) ? new Intl.NumberFormat(
|
|
868
|
+
}, Os = (A, e = Ds) => Sn(A) ? new Intl.NumberFormat(Me(), e).format(Number(A)) : A, xs = (A) => new Intl.PluralRules(Me(), A), Ps = (A, e = { type: "ordinal" }, n = {
|
|
869
869
|
one: "st",
|
|
870
870
|
two: "nd",
|
|
871
871
|
few: "rd",
|
|
@@ -917,7 +917,7 @@ class $e {
|
|
|
917
917
|
};
|
|
918
918
|
updateBeat = async (e) => this.fetchInstance.put(`${R.BEATS}/${e.guid}`, e).then((n) => n.beat);
|
|
919
919
|
}
|
|
920
|
-
class
|
|
920
|
+
class _t {
|
|
921
921
|
fetchInstance;
|
|
922
922
|
constructor(e, n) {
|
|
923
923
|
this.fetchInstance = new YA(e, n);
|
|
@@ -933,7 +933,7 @@ class Bt {
|
|
|
933
933
|
removeCategory = async (e) => this.fetchInstance.delete(`${R.CATEGORIES}/${e}`);
|
|
934
934
|
updateCategory = async (e) => this.fetchInstance.put(`${R.CATEGORIES}/${e.guid}`, e).then((n) => n.category);
|
|
935
935
|
}
|
|
936
|
-
class
|
|
936
|
+
class qt {
|
|
937
937
|
fetchInstance;
|
|
938
938
|
constructor(e, n) {
|
|
939
939
|
this.fetchInstance = new YA(e, n);
|
|
@@ -1080,7 +1080,7 @@ const un = (A, e) => A.reduce((n, r) => (n[r.guid] = e?.includes(r.guid), n), {}
|
|
|
1080
1080
|
pn,
|
|
1081
1081
|
{
|
|
1082
1082
|
control: /* @__PURE__ */ t(
|
|
1083
|
-
|
|
1083
|
+
Mt,
|
|
1084
1084
|
{
|
|
1085
1085
|
checked: y,
|
|
1086
1086
|
"data-ui-test": `checked-${y}`,
|
|
@@ -1113,7 +1113,7 @@ const un = (A, e) => A.reduce((n, r) => (n[r.guid] = e?.includes(r.guid), n), {}
|
|
|
1113
1113
|
"aria-label": z(n.accountTypeAccounts, E),
|
|
1114
1114
|
className: "mx-cmn-account-options-group",
|
|
1115
1115
|
dense: !0,
|
|
1116
|
-
subheader: /* @__PURE__ */ t(
|
|
1116
|
+
subheader: /* @__PURE__ */ t(Ke, { disableGutters: !0, children: /* @__PURE__ */ t(
|
|
1117
1117
|
cA,
|
|
1118
1118
|
{
|
|
1119
1119
|
"aria-label": z(n.toggleAccountTypeAccounts, E),
|
|
@@ -1151,7 +1151,7 @@ const un = (A, e) => A.reduce((n, r) => (n[r.guid] = e?.includes(r.guid), n), {}
|
|
|
1151
1151
|
pn,
|
|
1152
1152
|
{
|
|
1153
1153
|
control: /* @__PURE__ */ t(
|
|
1154
|
-
|
|
1154
|
+
Mt,
|
|
1155
1155
|
{
|
|
1156
1156
|
checked: O,
|
|
1157
1157
|
"data-ui-test": `checked-${O}`,
|
|
@@ -1216,13 +1216,13 @@ const Rs = (A, e) => {
|
|
|
1216
1216
|
}, [A, n]);
|
|
1217
1217
|
}, kA = () => ({
|
|
1218
1218
|
// Larger than 1200
|
|
1219
|
-
isDesktop:
|
|
1219
|
+
isDesktop: Dt(uA().breakpoints.up("xl")),
|
|
1220
1220
|
// Smaller than 768
|
|
1221
|
-
isMobile:
|
|
1221
|
+
isMobile: Dt(uA().breakpoints.down("md")),
|
|
1222
1222
|
// Between 768 and 992
|
|
1223
|
-
isSmallTablet:
|
|
1223
|
+
isSmallTablet: Dt(uA().breakpoints.between("md", "lg")),
|
|
1224
1224
|
// Between 768 and 1200
|
|
1225
|
-
isTablet:
|
|
1225
|
+
isTablet: Dt(uA().breakpoints.between("md", "xl"))
|
|
1226
1226
|
}), Ga = (A) => {
|
|
1227
1227
|
const e = Ea();
|
|
1228
1228
|
return he(() => {
|
|
@@ -1251,7 +1251,7 @@ const Rs = (A, e) => {
|
|
|
1251
1251
|
l(null);
|
|
1252
1252
|
};
|
|
1253
1253
|
return /* @__PURE__ */ d(I, { className: "mx-cmn-account-filter", m: 4, sx: { ...o }, children: [
|
|
1254
|
-
c ? /* @__PURE__ */ t(
|
|
1254
|
+
c ? /* @__PURE__ */ t(wt, { id: "filter-accounts", placement: "bottom", title: e.title, children: /* @__PURE__ */ t(
|
|
1255
1255
|
zA,
|
|
1256
1256
|
{
|
|
1257
1257
|
"aria-controls": "filter_accounts",
|
|
@@ -1555,7 +1555,7 @@ const Rs = (A, e) => {
|
|
|
1555
1555
|
}), Fs = ({ copy: A, date: e, onNextClick: n, onPreviousClick: r }) => {
|
|
1556
1556
|
const a = DA(), i = js(a);
|
|
1557
1557
|
return /* @__PURE__ */ d("div", { className: `mx-cmn-calendar-header ${i}`, children: [
|
|
1558
|
-
/* @__PURE__ */ t(
|
|
1558
|
+
/* @__PURE__ */ t(Wt, { className: "mx-cmn-calendar-header-title", variant: "H3", children: AA(e, U.MONTH_YEAR) }),
|
|
1559
1559
|
/* @__PURE__ */ d("div", { className: "mx-cmn-calendar-header-button-container", children: [
|
|
1560
1560
|
/* @__PURE__ */ t(oA, { "aria-label": A.prevAria, onClick: r, children: /* @__PURE__ */ t(oo, {}) }),
|
|
1561
1561
|
/* @__PURE__ */ t(oA, { "aria-label": A.nextAria, onClick: n, children: /* @__PURE__ */ t(so, {}) })
|
|
@@ -1612,8 +1612,8 @@ const Rs = (A, e) => {
|
|
|
1612
1612
|
}
|
|
1613
1613
|
);
|
|
1614
1614
|
}, Ws = (A, e) => WA({
|
|
1615
|
-
height:
|
|
1616
|
-
width:
|
|
1615
|
+
height: gt,
|
|
1616
|
+
width: gt,
|
|
1617
1617
|
display: "flex",
|
|
1618
1618
|
justifyContent: "center",
|
|
1619
1619
|
"&.mx-cmn-out-of-month": {
|
|
@@ -1656,7 +1656,7 @@ const Rs = (A, e) => {
|
|
|
1656
1656
|
paddingBottom: 5
|
|
1657
1657
|
}
|
|
1658
1658
|
}
|
|
1659
|
-
}), Ys = 340,
|
|
1659
|
+
}), Ys = 340, gt = 44;
|
|
1660
1660
|
var Qa = /* @__PURE__ */ ((A) => (A.None = "None", A.Single = "Single", A.Range = "Range", A))(Qa || {});
|
|
1661
1661
|
const Vs = ({
|
|
1662
1662
|
copy: A,
|
|
@@ -1733,9 +1733,9 @@ const Vs = ({
|
|
|
1733
1733
|
justifyContent: "center",
|
|
1734
1734
|
textAlign: "center",
|
|
1735
1735
|
"& .mx-cmn-calendar-header-cell": {
|
|
1736
|
-
height:
|
|
1737
|
-
width:
|
|
1738
|
-
minWidth:
|
|
1736
|
+
height: gt,
|
|
1737
|
+
width: gt,
|
|
1738
|
+
minWidth: gt,
|
|
1739
1739
|
"& .kmui-text": {
|
|
1740
1740
|
alignItems: "center",
|
|
1741
1741
|
display: "flex",
|
|
@@ -1992,13 +1992,13 @@ const Vs = ({
|
|
|
1992
1992
|
}
|
|
1993
1993
|
)
|
|
1994
1994
|
] });
|
|
1995
|
-
},
|
|
1995
|
+
}, rt = g.createContext(null), I8 = ({
|
|
1996
1996
|
children: A,
|
|
1997
1997
|
globalStore: e,
|
|
1998
1998
|
onEvent: n,
|
|
1999
1999
|
onPageView: r
|
|
2000
2000
|
}) => /* @__PURE__ */ t(
|
|
2001
|
-
|
|
2001
|
+
rt.Provider,
|
|
2002
2002
|
{
|
|
2003
2003
|
value: {
|
|
2004
2004
|
globalStore: e,
|
|
@@ -2019,7 +2019,7 @@ const Vs = ({
|
|
|
2019
2019
|
children: A
|
|
2020
2020
|
}
|
|
2021
2021
|
), GA = (A = "useGlobalStore") => {
|
|
2022
|
-
const e = g.useContext(
|
|
2022
|
+
const e = g.useContext(rt);
|
|
2023
2023
|
if (!e)
|
|
2024
2024
|
throw new Error(`${A}() must be used within the GlobalDataContext`);
|
|
2025
2025
|
return e;
|
|
@@ -2028,8 +2028,8 @@ const Vs = ({
|
|
|
2028
2028
|
if (!e)
|
|
2029
2029
|
throw new Error(`${A}() must be used within the WidgetContainerContext`);
|
|
2030
2030
|
return e;
|
|
2031
|
-
},
|
|
2032
|
-
const { categories: e } = D(), n =
|
|
2031
|
+
}, St = () => oc(), Va = ({ categoryGuid: A }) => {
|
|
2032
|
+
const { categories: e } = D(), n = De[A];
|
|
2033
2033
|
return /* @__PURE__ */ d(Ve, { alignItems: "center", direction: "column", gap: "8", justifyContent: "center", mb: 4, children: [
|
|
2034
2034
|
/* @__PURE__ */ t(
|
|
2035
2035
|
re,
|
|
@@ -2056,7 +2056,7 @@ const Vs = ({
|
|
|
2056
2056
|
o && o,
|
|
2057
2057
|
Q(Number(e), a ?? "0,0.00")
|
|
2058
2058
|
] }), sc = ({ categoryGuid: A, hoveredAreaData: e, cursorPosition: n, chartContainerRef: r }) => {
|
|
2059
|
-
const { common: a } = D(), i =
|
|
2059
|
+
const { common: a } = D(), i = et(), o = Ea(null), [s, c] = le({ x: n.x, y: n.y });
|
|
2060
2060
|
if (he(() => {
|
|
2061
2061
|
(() => {
|
|
2062
2062
|
const h = o.current, C = r.current;
|
|
@@ -2108,7 +2108,7 @@ const Vs = ({
|
|
|
2108
2108
|
itemData: { dataIndex: e },
|
|
2109
2109
|
series: { data: n }
|
|
2110
2110
|
}) => {
|
|
2111
|
-
const r =
|
|
2111
|
+
const r = et(), a = n?.[e];
|
|
2112
2112
|
return a === void 0 ? null : /* @__PURE__ */ t(xn, { sx: { pt: 4, px: 8 }, children: /* @__PURE__ */ t(wa, { children: /* @__PURE__ */ d(re, { alignItems: "center", display: "flex", flexDirection: "column", children: [
|
|
2113
2113
|
/* @__PURE__ */ t(Va, { categoryGuid: A }),
|
|
2114
2114
|
/* @__PURE__ */ t(v, { color: r.palette.text.secondary, variant: "Small", children: AA(String(e), U.MONTH_SHORT_YEAR) }),
|
|
@@ -2181,15 +2181,15 @@ const Vs = ({
|
|
|
2181
2181
|
height: u,
|
|
2182
2182
|
width: l
|
|
2183
2183
|
}) => {
|
|
2184
|
-
const h =
|
|
2184
|
+
const h = et(), { isMobile: C } = kA(), f = g.useRef(null), [m, y] = g.useState(null), [E, L] = g.useState({
|
|
2185
2185
|
hoveredSeriesId: null,
|
|
2186
2186
|
hoveredAreaData: null,
|
|
2187
2187
|
isAreaHovered: !1,
|
|
2188
2188
|
cursorPos: { x: 0, y: 0 }
|
|
2189
2189
|
}), { hoveredSeriesId: b, hoveredAreaData: S, isAreaHovered: O, cursorPos: N } = E, x = O && b && S, B = !x, K = [...a, ...s], _ = K.flat().map((V) => V.x), k = K.flat().map((V) => V.y), X = Math.floor(Math.min(...k) / 100) * 100, M = K.reduce((V, wA) => {
|
|
2190
|
-
const SA = wA.reduce((JA,
|
|
2190
|
+
const SA = wA.reduce((JA, Te) => JA + Te.y, 0);
|
|
2191
2191
|
return SA > V ? SA : V;
|
|
2192
|
-
}, 0), Y = i.map((V) =>
|
|
2192
|
+
}, 0), Y = i.map((V) => De[V]), rA = a.map((V, wA) => ({
|
|
2193
2193
|
id: `stacked-${wA}`,
|
|
2194
2194
|
area: !0,
|
|
2195
2195
|
color: r[wA] ?? h.palette.primary.main,
|
|
@@ -2201,7 +2201,7 @@ const Vs = ({
|
|
|
2201
2201
|
highlight: "item"
|
|
2202
2202
|
},
|
|
2203
2203
|
valueFormatter: (SA) => Q(SA, "0,0")
|
|
2204
|
-
})), xA = c.map((V) =>
|
|
2204
|
+
})), xA = c.map((V) => De[V]), dA = s.map((V, wA) => ({
|
|
2205
2205
|
id: `unstacked-${wA}`,
|
|
2206
2206
|
area: !1,
|
|
2207
2207
|
color: o[wA],
|
|
@@ -2209,7 +2209,7 @@ const Vs = ({
|
|
|
2209
2209
|
label: xA[wA],
|
|
2210
2210
|
type: "line",
|
|
2211
2211
|
valueFormatter: (SA) => Q(SA, "0,0")
|
|
2212
|
-
})), PA = [...rA, ...dA],
|
|
2212
|
+
})), PA = [...rA, ...dA], ze = [...Y, ...xA], me = (V) => V.startsWith("stacked-") ? i[parseInt(V.split("-")[1])] : c[parseInt(V.split("-")[1])], je = (V) => {
|
|
2213
2213
|
y(V), n?.(V ?? "");
|
|
2214
2214
|
};
|
|
2215
2215
|
return /* @__PURE__ */ t(
|
|
@@ -2240,7 +2240,7 @@ const Vs = ({
|
|
|
2240
2240
|
height: u || 400,
|
|
2241
2241
|
margin: { bottom: 50 },
|
|
2242
2242
|
onHighlightChange: (V) => {
|
|
2243
|
-
const wA = V?.seriesId && PA.find((
|
|
2243
|
+
const wA = V?.seriesId && PA.find((Te) => Te.id === V.seriesId), SA = wA && V?.dataIndex !== void 0, JA = wA && V?.dataIndex === void 0;
|
|
2244
2244
|
if (SA)
|
|
2245
2245
|
L({
|
|
2246
2246
|
hoveredSeriesId: String(V.seriesId),
|
|
@@ -2248,20 +2248,20 @@ const Vs = ({
|
|
|
2248
2248
|
isAreaHovered: !1,
|
|
2249
2249
|
cursorPos: N
|
|
2250
2250
|
}), e?.(
|
|
2251
|
-
|
|
2251
|
+
De[me(String(V.seriesId))]
|
|
2252
2252
|
);
|
|
2253
2253
|
else if (JA) {
|
|
2254
|
-
const
|
|
2254
|
+
const Te = wA?.data.map((cn, ln) => ({
|
|
2255
2255
|
x: _[ln],
|
|
2256
2256
|
y: cn
|
|
2257
2257
|
})) ?? [];
|
|
2258
2258
|
L({
|
|
2259
2259
|
hoveredSeriesId: String(V.seriesId),
|
|
2260
|
-
hoveredAreaData:
|
|
2260
|
+
hoveredAreaData: Te,
|
|
2261
2261
|
isAreaHovered: !0,
|
|
2262
2262
|
cursorPos: N
|
|
2263
2263
|
}), A?.(
|
|
2264
|
-
|
|
2264
|
+
De[me(String(V.seriesId))]
|
|
2265
2265
|
);
|
|
2266
2266
|
} else
|
|
2267
2267
|
L({
|
|
@@ -2332,7 +2332,7 @@ const Vs = ({
|
|
|
2332
2332
|
dc,
|
|
2333
2333
|
{
|
|
2334
2334
|
hoveredLegend: m,
|
|
2335
|
-
labels:
|
|
2335
|
+
labels: ze,
|
|
2336
2336
|
setHoveredLegend: je,
|
|
2337
2337
|
stackedColors: r,
|
|
2338
2338
|
stackedLabels: Y,
|
|
@@ -2355,7 +2355,7 @@ const Vs = ({
|
|
|
2355
2355
|
)
|
|
2356
2356
|
}
|
|
2357
2357
|
);
|
|
2358
|
-
},
|
|
2358
|
+
}, Kt = ({ data: A, height: e = 8 }) => {
|
|
2359
2359
|
const n = `${e / 4}px`;
|
|
2360
2360
|
return /* @__PURE__ */ t(
|
|
2361
2361
|
w,
|
|
@@ -2461,7 +2461,7 @@ const Vs = ({
|
|
|
2461
2461
|
margin: "auto",
|
|
2462
2462
|
textAlign: "center"
|
|
2463
2463
|
},
|
|
2464
|
-
children: /* @__PURE__ */ t(
|
|
2464
|
+
children: /* @__PURE__ */ t(Wt, { bold: !0, variant: "Body", children: r })
|
|
2465
2465
|
}
|
|
2466
2466
|
)
|
|
2467
2467
|
]
|
|
@@ -2511,7 +2511,7 @@ const Vs = ({
|
|
|
2511
2511
|
calendarActions: A,
|
|
2512
2512
|
color: e = "primary",
|
|
2513
2513
|
copy: n,
|
|
2514
|
-
range: r = [pA($()), TA(
|
|
2514
|
+
range: r = [pA($()), TA(Ne())],
|
|
2515
2515
|
shouldShrinkToIcon: a = !0,
|
|
2516
2516
|
toolTipContent: i = "",
|
|
2517
2517
|
variant: o = "outlined"
|
|
@@ -2528,14 +2528,14 @@ const Vs = ({
|
|
|
2528
2528
|
o === "timeframebuttons" && A.onRangeChanged(K());
|
|
2529
2529
|
}, [N]);
|
|
2530
2530
|
const K = () => {
|
|
2531
|
-
const M = TA(
|
|
2531
|
+
const M = TA(Ne());
|
|
2532
2532
|
return [TA(de(M, N)), M];
|
|
2533
2533
|
}, _ = (M) => {
|
|
2534
2534
|
const Y = [...h], rA = h[0], xA = h[1], dA = M === "previous";
|
|
2535
2535
|
if (f === n.dateRangePickerCopy.dateRangeThisMonth)
|
|
2536
2536
|
Y[0] = dA ? de(rA, 1) : ZA(rA, 1), Y[1] = TA(dA ? de(xA, 1) : ZA(xA, 1));
|
|
2537
2537
|
else if (f === n.dateRangePickerCopy.dateRangeYTD || f === n.dateRangePickerCopy.dateRangeLastYear)
|
|
2538
|
-
Y[0] = dA ? Er(vr(rA), 1) :
|
|
2538
|
+
Y[0] = dA ? Er(vr(rA), 1) : ft(vr(rA), 1), Y[1] = dA ? Er(pr(rA), 1) : ft(pr(rA), 1);
|
|
2539
2539
|
else {
|
|
2540
2540
|
const PA = To(xA, rA);
|
|
2541
2541
|
Y[0] = M === "previous" ? ae(rA, PA) : fe(rA, PA), Y[1] = M === "previous" ? ae(xA, PA) : fe(xA, PA);
|
|
@@ -2550,7 +2550,7 @@ const Vs = ({
|
|
|
2550
2550
|
};
|
|
2551
2551
|
return /* @__PURE__ */ d(I, { className: "mx-cmn-date-range-selector", m: 4, children: [
|
|
2552
2552
|
/* @__PURE__ */ t(
|
|
2553
|
-
|
|
2553
|
+
wt,
|
|
2554
2554
|
{
|
|
2555
2555
|
id: "select-date",
|
|
2556
2556
|
placement: "bottom",
|
|
@@ -2895,7 +2895,7 @@ const Xe = ({
|
|
|
2895
2895
|
const [s, { height: c, width: u }] = Za();
|
|
2896
2896
|
return /* @__PURE__ */ d(_A, { className: A, sx: { borderRadius: "8px", ...i }, children: [
|
|
2897
2897
|
/* @__PURE__ */ t(
|
|
2898
|
-
|
|
2898
|
+
tt,
|
|
2899
2899
|
{
|
|
2900
2900
|
action: n && /* @__PURE__ */ t(
|
|
2901
2901
|
oA,
|
|
@@ -2908,10 +2908,10 @@ const Xe = ({
|
|
|
2908
2908
|
subheader: a || null,
|
|
2909
2909
|
subheaderTypographyProps: { variant: "Small" },
|
|
2910
2910
|
sx: { pb: 4 },
|
|
2911
|
-
title: o ? /* @__PURE__ */ t(
|
|
2911
|
+
title: o ? /* @__PURE__ */ t(Yt, { sx: { pb: 4 }, children: o }) : null
|
|
2912
2912
|
}
|
|
2913
2913
|
),
|
|
2914
|
-
/* @__PURE__ */ t(
|
|
2914
|
+
/* @__PURE__ */ t(nt, { ref: s, sx: { p: 0 }, children: /* @__PURE__ */ t(Ua, { availableHeight: c, availableWidth: u, children: e }) })
|
|
2915
2915
|
] });
|
|
2916
2916
|
}, fc = ({
|
|
2917
2917
|
accountOptions: A,
|
|
@@ -2980,7 +2980,7 @@ const Xe = ({
|
|
|
2980
2980
|
},
|
|
2981
2981
|
children: [
|
|
2982
2982
|
/* @__PURE__ */ t(
|
|
2983
|
-
|
|
2983
|
+
tt,
|
|
2984
2984
|
{
|
|
2985
2985
|
action: /* @__PURE__ */ d(w, { alignItems: "center", flexDirection: "row", children: [
|
|
2986
2986
|
E && n && /* @__PURE__ */ t(I, { sx: { flexGrow: 1 }, children: /* @__PURE__ */ t(
|
|
@@ -3067,11 +3067,11 @@ const Xe = ({
|
|
|
3067
3067
|
}
|
|
3068
3068
|
)
|
|
3069
3069
|
] }),
|
|
3070
|
-
/* @__PURE__ */ t(
|
|
3070
|
+
/* @__PURE__ */ t(nt, { ref: C, sx: { p: 0 }, children: /* @__PURE__ */ t(Ua, { availableHeight: f, availableWidth: m, children: r }) })
|
|
3071
3071
|
]
|
|
3072
3072
|
}
|
|
3073
3073
|
);
|
|
3074
|
-
},
|
|
3074
|
+
}, Re = T(fc), mc = ({ status: A = Oe.Loading }) => {
|
|
3075
3075
|
const { connect: e } = D();
|
|
3076
3076
|
return /* @__PURE__ */ t(
|
|
3077
3077
|
I,
|
|
@@ -3082,7 +3082,7 @@ const Xe = ({
|
|
|
3082
3082
|
width: "100%"
|
|
3083
3083
|
},
|
|
3084
3084
|
children: /* @__PURE__ */ d(w, { alignItems: "center", direction: "column", justifyContent: "center", sx: { height: "100%" }, children: [
|
|
3085
|
-
A ===
|
|
3085
|
+
A === Oe.Loading && /* @__PURE__ */ t(Nn, { color: "primary", size: 48 }),
|
|
3086
3086
|
/* @__PURE__ */ t(
|
|
3087
3087
|
v,
|
|
3088
3088
|
{
|
|
@@ -3090,14 +3090,14 @@ const Xe = ({
|
|
|
3090
3090
|
color: "grey.600",
|
|
3091
3091
|
marginTop: "16px"
|
|
3092
3092
|
},
|
|
3093
|
-
children: A ===
|
|
3093
|
+
children: A === Oe.Error ? e.oops : e.loading
|
|
3094
3094
|
}
|
|
3095
3095
|
)
|
|
3096
3096
|
] })
|
|
3097
3097
|
}
|
|
3098
3098
|
);
|
|
3099
|
-
},
|
|
3100
|
-
var
|
|
3099
|
+
}, kt = T(mc);
|
|
3100
|
+
var Oe = /* @__PURE__ */ ((A) => (A.Loading = "loading", A.Error = "error", A))(Oe || {}), XA = /* @__PURE__ */ ((A) => (A.Currency = "currency", A.Date = "date", A.Input = "input", A.Select = "select", A))(XA || {});
|
|
3101
3101
|
const Rr = "connect_widget", Hr = "connections_widget", pc = ({
|
|
3102
3102
|
loadWidgetProps: A,
|
|
3103
3103
|
onClose: e,
|
|
@@ -3137,8 +3137,8 @@ const Rr = "connect_widget", Hr = "connections_widget", pc = ({
|
|
|
3137
3137
|
},
|
|
3138
3138
|
title: r,
|
|
3139
3139
|
children: /* @__PURE__ */ d("div", { id: Rr, children: [
|
|
3140
|
-
l && /* @__PURE__ */ t(
|
|
3141
|
-
c && /* @__PURE__ */ t(
|
|
3140
|
+
l && /* @__PURE__ */ t(kt, { status: Oe.Error }),
|
|
3141
|
+
c && /* @__PURE__ */ t(kt, { status: Oe.Loading })
|
|
3142
3142
|
] })
|
|
3143
3143
|
}
|
|
3144
3144
|
);
|
|
@@ -3161,7 +3161,7 @@ const Rr = "connect_widget", Hr = "connections_widget", pc = ({
|
|
|
3161
3161
|
const x = g.useRef(xo());
|
|
3162
3162
|
if (A)
|
|
3163
3163
|
switch (Is()) {
|
|
3164
|
-
case
|
|
3164
|
+
case Bt.CAD:
|
|
3165
3165
|
N = S;
|
|
3166
3166
|
break;
|
|
3167
3167
|
default:
|
|
@@ -3187,11 +3187,11 @@ const Rr = "connect_widget", Hr = "connections_widget", pc = ({
|
|
|
3187
3187
|
), l?.(!1)) : K.toString().match(N) ? i() ? (f(""), l?.(!0)) : (f(o), l?.(!1)) : (f(y.error_amount_is_invalid), l?.(!1)), u(K.toString());
|
|
3188
3188
|
};
|
|
3189
3189
|
return /* @__PURE__ */ t(
|
|
3190
|
-
|
|
3190
|
+
Pe,
|
|
3191
3191
|
{
|
|
3192
3192
|
InputProps: {
|
|
3193
|
-
endAdornment:
|
|
3194
|
-
startAdornment:
|
|
3193
|
+
endAdornment: Me().includes("fr-ca") ? /* @__PURE__ */ t(CA, { children: "$" }) : void 0,
|
|
3194
|
+
startAdornment: Me().includes("fr-ca") ? void 0 : /* @__PURE__ */ t(CA, { children: "$" })
|
|
3195
3195
|
},
|
|
3196
3196
|
"aria-label": e || y.enter_amount,
|
|
3197
3197
|
className: `mx-cmn-currency-input ${L}`,
|
|
@@ -3244,7 +3244,7 @@ const Rr = "connect_widget", Hr = "connections_widget", pc = ({
|
|
|
3244
3244
|
}
|
|
3245
3245
|
),
|
|
3246
3246
|
/* @__PURE__ */ t(
|
|
3247
|
-
|
|
3247
|
+
wt,
|
|
3248
3248
|
{
|
|
3249
3249
|
describeChild: !0,
|
|
3250
3250
|
placement: r,
|
|
@@ -3271,11 +3271,11 @@ const Rr = "connect_widget", Hr = "connections_widget", pc = ({
|
|
|
3271
3271
|
}
|
|
3272
3272
|
);
|
|
3273
3273
|
return /* @__PURE__ */ t(I, { className: "mx-cmn-search-box", px: i.Spacing.Large, py: i.Spacing.Medium, children: /* @__PURE__ */ t(
|
|
3274
|
-
|
|
3274
|
+
Pe,
|
|
3275
3275
|
{
|
|
3276
3276
|
InputProps: {
|
|
3277
|
-
startAdornment: /* @__PURE__ */ t(
|
|
3278
|
-
endAdornment: /* @__PURE__ */ t(
|
|
3277
|
+
startAdornment: /* @__PURE__ */ t(Rt, { position: "start", children: /* @__PURE__ */ t(P, { color: "disabled", name: "search", size: 26 }) }),
|
|
3278
|
+
endAdornment: /* @__PURE__ */ t(Rt, { position: "end", sx: { p: 0 }, children: a ? o : null })
|
|
3279
3279
|
},
|
|
3280
3280
|
"aria-label": A,
|
|
3281
3281
|
name: "search",
|
|
@@ -3305,7 +3305,7 @@ const Rr = "connect_widget", Hr = "connections_widget", pc = ({
|
|
|
3305
3305
|
pr: 8,
|
|
3306
3306
|
py: 4,
|
|
3307
3307
|
sx: { "&:hover": { borderColor: i.palette.action.active }, ...n },
|
|
3308
|
-
children: /* @__PURE__ */ t(
|
|
3308
|
+
children: /* @__PURE__ */ t(wt, { title: r, children: /* @__PURE__ */ t(
|
|
3309
3309
|
pn,
|
|
3310
3310
|
{
|
|
3311
3311
|
control: /* @__PURE__ */ t(
|
|
@@ -3323,7 +3323,7 @@ const Rr = "connect_widget", Hr = "connections_widget", pc = ({
|
|
|
3323
3323
|
) })
|
|
3324
3324
|
}
|
|
3325
3325
|
);
|
|
3326
|
-
},
|
|
3326
|
+
}, Gt = ({
|
|
3327
3327
|
children: A,
|
|
3328
3328
|
index: e,
|
|
3329
3329
|
name: n,
|
|
@@ -3339,7 +3339,7 @@ const Rr = "connect_widget", Hr = "connections_widget", pc = ({
|
|
|
3339
3339
|
...a,
|
|
3340
3340
|
children: r === e && A
|
|
3341
3341
|
}
|
|
3342
|
-
),
|
|
3342
|
+
), xe = ({
|
|
3343
3343
|
backingSx: A,
|
|
3344
3344
|
children: e,
|
|
3345
3345
|
size: n,
|
|
@@ -3371,9 +3371,9 @@ const Rr = "connect_widget", Hr = "connections_widget", pc = ({
|
|
|
3371
3371
|
)
|
|
3372
3372
|
]
|
|
3373
3373
|
}
|
|
3374
|
-
),
|
|
3374
|
+
), Xt = ({ iconName: A, label: e, onClick: n, value: r }) => {
|
|
3375
3375
|
const a = /* @__PURE__ */ d(aA, { children: [
|
|
3376
|
-
/* @__PURE__ */ t(bA, { children: /* @__PURE__ */ t(
|
|
3376
|
+
/* @__PURE__ */ t(bA, { children: /* @__PURE__ */ t(Le, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(P, { name: A, sx: { color: "text.primary" }, weight: qA.Dark }) }) }),
|
|
3377
3377
|
/* @__PURE__ */ t(
|
|
3378
3378
|
sA,
|
|
3379
3379
|
{
|
|
@@ -3388,12 +3388,12 @@ const Rr = "connect_widget", Hr = "connections_widget", pc = ({
|
|
|
3388
3388
|
a,
|
|
3389
3389
|
/* @__PURE__ */ t(se, { children: /* @__PURE__ */ t(P, { name: "chevron_right", size: 24 }) })
|
|
3390
3390
|
] }) }) : /* @__PURE__ */ t(W, { disableGutters: !1, disablePadding: !1, children: a });
|
|
3391
|
-
},
|
|
3391
|
+
}, Qt = ({
|
|
3392
3392
|
body: A,
|
|
3393
3393
|
iconName: e = "info",
|
|
3394
3394
|
title: n
|
|
3395
3395
|
}) => /* @__PURE__ */ t(
|
|
3396
|
-
|
|
3396
|
+
wt,
|
|
3397
3397
|
{
|
|
3398
3398
|
title: /* @__PURE__ */ d(w, { gap: 2, p: 12, sx: { textOverflow: "none" }, children: [
|
|
3399
3399
|
/* @__PURE__ */ t(v, { bold: !0, variant: "Body", children: n }),
|
|
@@ -3436,13 +3436,13 @@ const Rr = "connect_widget", Hr = "connections_widget", pc = ({
|
|
|
3436
3436
|
class wc {
|
|
3437
3437
|
copy = {};
|
|
3438
3438
|
featureNamespace = "experiences";
|
|
3439
|
-
api = new
|
|
3439
|
+
api = new qt("/", "");
|
|
3440
3440
|
isInitialized = !1;
|
|
3441
3441
|
constructor() {
|
|
3442
3442
|
yA(this);
|
|
3443
3443
|
}
|
|
3444
3444
|
initialize = async (e, n) => {
|
|
3445
|
-
this.api = new
|
|
3445
|
+
this.api = new qt(e, n), await this.getCopy(this.featureNamespace), Z(() => {
|
|
3446
3446
|
this.isInitialized = !0;
|
|
3447
3447
|
});
|
|
3448
3448
|
};
|
|
@@ -3501,7 +3501,7 @@ const Ln = (A) => !A.amount && !A.transaction_total ? 0 : !A.amount && A.transac
|
|
|
3501
3501
|
}, Tc = (A, e, n, r, a) => {
|
|
3502
3502
|
const i = [];
|
|
3503
3503
|
for (const o of A) {
|
|
3504
|
-
const s =
|
|
3504
|
+
const s = zt(e, o.category_guid);
|
|
3505
3505
|
if (!s || s.parent_guid) continue;
|
|
3506
3506
|
const u = n.find((C) => C.guid === s.guid)?.amount || 0, l = Ln({ ...o, transaction_total: u }), h = o.amount - u;
|
|
3507
3507
|
i.push({
|
|
@@ -3520,7 +3520,7 @@ const Ln = (A) => !A.amount && !A.transaction_total ? 0 : !A.amount && A.transac
|
|
|
3520
3520
|
});
|
|
3521
3521
|
}
|
|
3522
3522
|
for (const o of A) {
|
|
3523
|
-
const s =
|
|
3523
|
+
const s = zt(e, o.category_guid);
|
|
3524
3524
|
if (!s || !s.parent_guid) continue;
|
|
3525
3525
|
const u = n.find((f) => f.guid === s.guid)?.amount || 0, l = i.find((f) => f.category_guid === s.parent_guid);
|
|
3526
3526
|
if (!l) continue;
|
|
@@ -3544,7 +3544,7 @@ const Ln = (A) => !A.amount && !A.transaction_total ? 0 : !A.amount && A.transac
|
|
|
3544
3544
|
};
|
|
3545
3545
|
class bc {
|
|
3546
3546
|
api = new Br("/", "");
|
|
3547
|
-
categoryApi = new
|
|
3547
|
+
categoryApi = new _t("/", "");
|
|
3548
3548
|
globalStore;
|
|
3549
3549
|
dateRange = { start: pA($()), end: TA($()) };
|
|
3550
3550
|
budgets = [];
|
|
@@ -3554,7 +3554,7 @@ class bc {
|
|
|
3554
3554
|
this.globalStore = e, yA(this);
|
|
3555
3555
|
}
|
|
3556
3556
|
initialize = async (e, n) => {
|
|
3557
|
-
this.api = new Br(e, n), this.categoryApi = new
|
|
3557
|
+
this.api = new Br(e, n), this.categoryApi = new _t(e, n);
|
|
3558
3558
|
};
|
|
3559
3559
|
get detailedBudgets() {
|
|
3560
3560
|
const e = this.globalStore.categoryStore.categories;
|
|
@@ -3626,8 +3626,8 @@ class bc {
|
|
|
3626
3626
|
}
|
|
3627
3627
|
};
|
|
3628
3628
|
}
|
|
3629
|
-
const
|
|
3630
|
-
if (!g.useContext(
|
|
3629
|
+
const at = () => {
|
|
3630
|
+
if (!g.useContext(rt))
|
|
3631
3631
|
throw new Error("useCashflowUiStore() must be used within the GlobalDataContext");
|
|
3632
3632
|
return jn().uiStore;
|
|
3633
3633
|
}, Ic = ({ remaining: A }) => {
|
|
@@ -3648,14 +3648,14 @@ const rt = () => {
|
|
|
3648
3648
|
/* @__PURE__ */ t(HA, { amount: A, bold: !0, sx: { fontSize: 12 } })
|
|
3649
3649
|
] });
|
|
3650
3650
|
}, Yn = T(Ic), Dc = ({ onAddIncomeClick: A }) => {
|
|
3651
|
-
const e = uA(), { availableWidth: n } =
|
|
3651
|
+
const e = uA(), { availableWidth: n } = St(), { cashAccounts: r, cashBalance: a } = OA(), { selectedAccountGuids: i } = mA(), { cashflow: o } = D(), { userProfile: s } = $t(), {
|
|
3652
3652
|
daysUntilNextIncome: c,
|
|
3653
3653
|
expensesTilNextIncome: u,
|
|
3654
3654
|
selectedCashAccounts: l,
|
|
3655
3655
|
setNextIncome: h,
|
|
3656
3656
|
setSelectedCashAccounts: C,
|
|
3657
3657
|
setUpcomingExpenses: f
|
|
3658
|
-
} =
|
|
3658
|
+
} = at(), { nextIncomeActivity: m, upcomingExpenses: y } = MA();
|
|
3659
3659
|
g.useEffect(() => {
|
|
3660
3660
|
C(
|
|
3661
3661
|
r.filter((O) => i.includes(O.guid))
|
|
@@ -3699,7 +3699,7 @@ const rt = () => {
|
|
|
3699
3699
|
/* @__PURE__ */ t(HA, { amount: b, variant: "H2" }),
|
|
3700
3700
|
/* @__PURE__ */ d(w, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
3701
3701
|
/* @__PURE__ */ t(CA, { variant: "XSmall", whiteSpace: "nowrap", children: o.available_to_spend }),
|
|
3702
|
-
/* @__PURE__ */ t(
|
|
3702
|
+
/* @__PURE__ */ t(Qt, { body: o.tooltip_body, title: o.tooltip_title })
|
|
3703
3703
|
] })
|
|
3704
3704
|
] }),
|
|
3705
3705
|
/* @__PURE__ */ t(w, { borderLeft: `1px solid ${e.palette.border.light}`, pb: 12, pl: 24, pt: 12, children: S ? /* @__PURE__ */ d(aA, { children: [
|
|
@@ -3868,7 +3868,7 @@ class qr {
|
|
|
3868
3868
|
updateTag = async (e) => this.fetchInstance.put(`${R.TAGS}/${e.guid}`, e).then((n) => n.tag);
|
|
3869
3869
|
updateTransaction = async (e) => this.fetchInstance.put(`${R.TRANSACTIONS}/${e.guid}`, e).then((n) => n.transaction);
|
|
3870
3870
|
}
|
|
3871
|
-
var
|
|
3871
|
+
var dt = /* @__PURE__ */ ((A) => (A[A.Category = 0] = "Category", A[A.Date = 1] = "Date", A[A.Memo = 2] = "Memo", A[A.Tags = 3] = "Tags", A))(dt || {}), Nt = /* @__PURE__ */ ((A) => (A[A.SplitTransaction = 0] = "SplitTransaction", A[A.HideTransaction = 1] = "HideTransaction", A[A.MerchantLogo = 2] = "MerchantLogo", A))(Nt || {});
|
|
3872
3872
|
const Pc = [
|
|
3873
3873
|
0,
|
|
3874
3874
|
1,
|
|
@@ -4232,7 +4232,7 @@ const Pc = [
|
|
|
4232
4232
|
}, Bc = (A, e, n) => {
|
|
4233
4233
|
const {
|
|
4234
4234
|
accounts: r = [],
|
|
4235
|
-
dateRange: a = { start: ae($(), 90), end:
|
|
4235
|
+
dateRange: a = { start: ae($(), 90), end: Ne() },
|
|
4236
4236
|
custom: i = () => !0,
|
|
4237
4237
|
searchTerm: o = ""
|
|
4238
4238
|
} = A;
|
|
@@ -4412,7 +4412,7 @@ class Qc {
|
|
|
4412
4412
|
const e = await this.api.getTransactionRules();
|
|
4413
4413
|
Z(() => this.transactionRules = e);
|
|
4414
4414
|
};
|
|
4415
|
-
loadTransactions = async (e = this.cachedStartDate, n =
|
|
4415
|
+
loadTransactions = async (e = this.cachedStartDate, n = Ne()) => {
|
|
4416
4416
|
this.setIsLoading(!0), this.transactions = [];
|
|
4417
4417
|
try {
|
|
4418
4418
|
const r = await this.api.getTransactionsByDateRange(
|
|
@@ -4449,7 +4449,7 @@ class Qc {
|
|
|
4449
4449
|
}
|
|
4450
4450
|
};
|
|
4451
4451
|
setFilter = (e) => {
|
|
4452
|
-
this.filter = e, e.dateRange && fA(e.dateRange.start, this.cachedStartDate) && this.loadTransactions(e.dateRange.start,
|
|
4452
|
+
this.filter = e, e.dateRange && fA(e.dateRange.start, this.cachedStartDate) && this.loadTransactions(e.dateRange.start, Ne()).then(() => {
|
|
4453
4453
|
e.dateRange && (this.cachedStartDate = e.dateRange.start);
|
|
4454
4454
|
});
|
|
4455
4455
|
};
|
|
@@ -4516,7 +4516,7 @@ class Qc {
|
|
|
4516
4516
|
};
|
|
4517
4517
|
}
|
|
4518
4518
|
const VA = () => {
|
|
4519
|
-
if (!g.useContext(
|
|
4519
|
+
if (!g.useContext(rt))
|
|
4520
4520
|
throw new Error("useTransactionsUiStore() must be used within the GlobalDataContext");
|
|
4521
4521
|
return lA().uiStore;
|
|
4522
4522
|
}, Fc = ({ transaction: A, onClick: e }) => {
|
|
@@ -4528,7 +4528,7 @@ const VA = () => {
|
|
|
4528
4528
|
onClick: e ? () => e(A.guid) : void 0,
|
|
4529
4529
|
children: [
|
|
4530
4530
|
/* @__PURE__ */ t(bA, { children: A.parent_guid ? /* @__PURE__ */ t(g.Fragment, {}) : /* @__PURE__ */ t(
|
|
4531
|
-
|
|
4531
|
+
He,
|
|
4532
4532
|
{
|
|
4533
4533
|
categoryGuid: A.top_level_category_guid || "",
|
|
4534
4534
|
merchantGuid: A.merchant_guid || ""
|
|
@@ -4579,7 +4579,7 @@ const VA = () => {
|
|
|
4579
4579
|
const n = IA(e[A].date), r = IA(e[A + 1]?.date);
|
|
4580
4580
|
return QA(n, r);
|
|
4581
4581
|
}, $n = (A) => {
|
|
4582
|
-
const e =
|
|
4582
|
+
const e = pt(A);
|
|
4583
4583
|
let n = En(A, e);
|
|
4584
4584
|
for (; fA(n, $()); )
|
|
4585
4585
|
n = Ye(n, 1);
|
|
@@ -4596,14 +4596,14 @@ const VA = () => {
|
|
|
4596
4596
|
const e = $n(A);
|
|
4597
4597
|
return ZA(e, 1);
|
|
4598
4598
|
}, ei = (A) => {
|
|
4599
|
-
let e =
|
|
4599
|
+
let e = Be(A, 1);
|
|
4600
4600
|
for (; fA(e, $()); )
|
|
4601
|
-
e =
|
|
4601
|
+
e = Be(e, 1);
|
|
4602
4602
|
return e;
|
|
4603
4603
|
}, Jc = (A) => {
|
|
4604
4604
|
const e = ei(A);
|
|
4605
|
-
return
|
|
4606
|
-
}, Zc = (A) =>
|
|
4605
|
+
return Be(e, 1);
|
|
4606
|
+
}, Zc = (A) => ft(A, 1), Ct = (A) => {
|
|
4607
4607
|
const e = IA(A);
|
|
4608
4608
|
return new Date(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate());
|
|
4609
4609
|
}, tn = (A) => AA(IA(A), U.DAY_OF_WEEK_MONTH_DAY), Xr = 65, Qr = 34, $c = ({
|
|
@@ -4667,7 +4667,7 @@ const VA = () => {
|
|
|
4667
4667
|
]
|
|
4668
4668
|
}
|
|
4669
4669
|
) }) });
|
|
4670
|
-
},
|
|
4670
|
+
}, it = T($c), Al = (A) => /* @__PURE__ */ d(v, { tabIndex: A.tabIndex, variant: "Small", children: [
|
|
4671
4671
|
`${A.row.account}`,
|
|
4672
4672
|
A.row.number && ` | ${A.row.number}`
|
|
4673
4673
|
] }), el = (A) => {
|
|
@@ -4726,9 +4726,9 @@ const VA = () => {
|
|
|
4726
4726
|
]
|
|
4727
4727
|
}
|
|
4728
4728
|
);
|
|
4729
|
-
}, il = T(al),
|
|
4729
|
+
}, il = T(al), st = (A) => /* @__PURE__ */ t(v, { fontWeight: 600, variant: "Small", children: A.colDef.headerName }), ol = (A) => /* @__PURE__ */ d(w, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
4730
4730
|
/* @__PURE__ */ t(
|
|
4731
|
-
|
|
4731
|
+
He,
|
|
4732
4732
|
{
|
|
4733
4733
|
categoryGuid: A.row.top_level_category_guid || "",
|
|
4734
4734
|
merchantGuid: A.row.merchant_guid || ""
|
|
@@ -4754,7 +4754,7 @@ const VA = () => {
|
|
|
4754
4754
|
field: "date",
|
|
4755
4755
|
headerName: i.date_title,
|
|
4756
4756
|
width: 103,
|
|
4757
|
-
renderHeader:
|
|
4757
|
+
renderHeader: st,
|
|
4758
4758
|
renderCell: rl,
|
|
4759
4759
|
sortingOrder: ["desc", "asc"]
|
|
4760
4760
|
},
|
|
@@ -4763,7 +4763,7 @@ const VA = () => {
|
|
|
4763
4763
|
field: "payee",
|
|
4764
4764
|
headerName: i.payee_title,
|
|
4765
4765
|
flex: 0.33,
|
|
4766
|
-
renderHeader:
|
|
4766
|
+
renderHeader: st,
|
|
4767
4767
|
renderCell: ol,
|
|
4768
4768
|
sortingOrder: ["asc", "desc"]
|
|
4769
4769
|
},
|
|
@@ -4771,7 +4771,7 @@ const VA = () => {
|
|
|
4771
4771
|
field: "category",
|
|
4772
4772
|
headerName: i.category_title,
|
|
4773
4773
|
flex: 0.25,
|
|
4774
|
-
renderHeader:
|
|
4774
|
+
renderHeader: st,
|
|
4775
4775
|
renderCell: (u) => /* @__PURE__ */ t(nl, { ...u }),
|
|
4776
4776
|
sortingOrder: ["asc", "desc"]
|
|
4777
4777
|
},
|
|
@@ -4779,7 +4779,7 @@ const VA = () => {
|
|
|
4779
4779
|
field: "account",
|
|
4780
4780
|
headerName: i.account_title,
|
|
4781
4781
|
flex: 0.33,
|
|
4782
|
-
renderHeader:
|
|
4782
|
+
renderHeader: st,
|
|
4783
4783
|
renderCell: Al,
|
|
4784
4784
|
sortingOrder: ["asc", "desc"]
|
|
4785
4785
|
},
|
|
@@ -4787,7 +4787,7 @@ const VA = () => {
|
|
|
4787
4787
|
field: "amount",
|
|
4788
4788
|
headerName: i.amount_title,
|
|
4789
4789
|
flex: 0.25,
|
|
4790
|
-
renderHeader:
|
|
4790
|
+
renderHeader: st,
|
|
4791
4791
|
renderCell: el,
|
|
4792
4792
|
align: "right",
|
|
4793
4793
|
headerAlign: "right",
|
|
@@ -4818,7 +4818,7 @@ const VA = () => {
|
|
|
4818
4818
|
}
|
|
4819
4819
|
) });
|
|
4820
4820
|
}, cl = T(sl), Qe = () => {
|
|
4821
|
-
if (!g.useContext(
|
|
4821
|
+
if (!g.useContext(rt))
|
|
4822
4822
|
throw new Error("useCategoryUiStore() must be used within the GlobalDataContext");
|
|
4823
4823
|
return NA().uiStore;
|
|
4824
4824
|
}, ne = {
|
|
@@ -4874,7 +4874,7 @@ const ll = ({
|
|
|
4874
4874
|
c(!1), n(i);
|
|
4875
4875
|
},
|
|
4876
4876
|
children: /* @__PURE__ */ t(La, { children: h ? /* @__PURE__ */ t(v, { children: l }) : /* @__PURE__ */ t(
|
|
4877
|
-
|
|
4877
|
+
Pe,
|
|
4878
4878
|
{
|
|
4879
4879
|
"aria-label": a === "edit" ? s.edit_subcategory_aria : s.add_subcategory_aria,
|
|
4880
4880
|
name: "modify-subcategory",
|
|
@@ -5012,7 +5012,7 @@ const ll = ({
|
|
|
5012
5012
|
onClick: () => {
|
|
5013
5013
|
m(!0), i(!0), l(ne.ON_SUBCATEGORY_DELETE_CLICK);
|
|
5014
5014
|
},
|
|
5015
|
-
children: /* @__PURE__ */ t(
|
|
5015
|
+
children: /* @__PURE__ */ t(vt, { color: "secondary" })
|
|
5016
5016
|
}
|
|
5017
5017
|
)
|
|
5018
5018
|
] }),
|
|
@@ -5203,7 +5203,7 @@ let Ol = class {
|
|
|
5203
5203
|
setOnSelect = (e) => this.savedOnSelect = e;
|
|
5204
5204
|
};
|
|
5205
5205
|
class xl {
|
|
5206
|
-
api = new
|
|
5206
|
+
api = new _t("/", "");
|
|
5207
5207
|
globalStore;
|
|
5208
5208
|
uiStore;
|
|
5209
5209
|
categories = [];
|
|
@@ -5215,7 +5215,7 @@ class xl {
|
|
|
5215
5215
|
this.globalStore = e, this.uiStore = new Ol(), yA(this);
|
|
5216
5216
|
}
|
|
5217
5217
|
initialize = async (e, n) => {
|
|
5218
|
-
this.api = new
|
|
5218
|
+
this.api = new _t(e, n), await this.loadCategories();
|
|
5219
5219
|
};
|
|
5220
5220
|
addCategory = async (e, n) => {
|
|
5221
5221
|
const r = { name: e, parent_guid: n };
|
|
@@ -5239,7 +5239,7 @@ class xl {
|
|
|
5239
5239
|
return {
|
|
5240
5240
|
...e,
|
|
5241
5241
|
average: c,
|
|
5242
|
-
color: Je[
|
|
5242
|
+
color: Je[De[e.parent_guid || e.guid]],
|
|
5243
5243
|
generalHistory: s,
|
|
5244
5244
|
history: o,
|
|
5245
5245
|
icon: _a[e.parent_guid || e.guid],
|
|
@@ -5353,7 +5353,7 @@ const ti = ({ transaction: A }) => {
|
|
|
5353
5353
|
a(H.ON_TRANSACTION_CATEGORY_CLICK), u(!0);
|
|
5354
5354
|
},
|
|
5355
5355
|
children: [
|
|
5356
|
-
/* @__PURE__ */ t(bA, { children: /* @__PURE__ */ t(
|
|
5356
|
+
/* @__PURE__ */ t(bA, { children: /* @__PURE__ */ t(Le, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(
|
|
5357
5357
|
oe,
|
|
5358
5358
|
{
|
|
5359
5359
|
categoryGuid: A.top_level_category_guid,
|
|
@@ -5425,7 +5425,7 @@ const ti = ({ transaction: A }) => {
|
|
|
5425
5425
|
n(H.ON_TRANSACTION_DATE_CLICK), c(!0);
|
|
5426
5426
|
},
|
|
5427
5427
|
children: [
|
|
5428
|
-
/* @__PURE__ */ t(bA, { children: /* @__PURE__ */ t(
|
|
5428
|
+
/* @__PURE__ */ t(bA, { children: /* @__PURE__ */ t(Le, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(P, { name: "calendar_month", sx: { color: "text.primary" }, weight: qA.Dark }) }) }),
|
|
5429
5429
|
/* @__PURE__ */ t(
|
|
5430
5430
|
sA,
|
|
5431
5431
|
{
|
|
@@ -5476,7 +5476,7 @@ const ti = ({ transaction: A }) => {
|
|
|
5476
5476
|
e(H.ON_TRANSACTION_DELETE_CLICK), r(!0), s(!0);
|
|
5477
5477
|
},
|
|
5478
5478
|
children: [
|
|
5479
|
-
/* @__PURE__ */ t(bA, { children: /* @__PURE__ */ t(
|
|
5479
|
+
/* @__PURE__ */ t(bA, { children: /* @__PURE__ */ t(Le, { variant: "rounded", children: /* @__PURE__ */ t(vt, { color: "secondary", fontSize: "small" }) }) }),
|
|
5480
5480
|
/* @__PURE__ */ t(
|
|
5481
5481
|
sA,
|
|
5482
5482
|
{
|
|
@@ -5484,7 +5484,7 @@ const ti = ({ transaction: A }) => {
|
|
|
5484
5484
|
secondary: i.manual_transaction_delete_subtitle
|
|
5485
5485
|
}
|
|
5486
5486
|
),
|
|
5487
|
-
/* @__PURE__ */ t(se, { children: /* @__PURE__ */ t(
|
|
5487
|
+
/* @__PURE__ */ t(se, { children: /* @__PURE__ */ t(vt, {}) })
|
|
5488
5488
|
]
|
|
5489
5489
|
}
|
|
5490
5490
|
) }),
|
|
@@ -5518,7 +5518,7 @@ const ti = ({ transaction: A }) => {
|
|
|
5518
5518
|
e(H.ON_TRANSACTION_DELETE_LOGO_CLICK), s(!0);
|
|
5519
5519
|
},
|
|
5520
5520
|
children: [
|
|
5521
|
-
/* @__PURE__ */ t(bA, { children: /* @__PURE__ */ t(
|
|
5521
|
+
/* @__PURE__ */ t(bA, { children: /* @__PURE__ */ t(Le, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(P, { name: "delete", sx: { color: "text.primary" }, weight: qA.Dark }) }) }),
|
|
5522
5522
|
/* @__PURE__ */ t(sA, { primary: i.merchant_logo_title, secondary: i.merchant_logo_desc }),
|
|
5523
5523
|
/* @__PURE__ */ t(se, { children: /* @__PURE__ */ t(P, { name: "chevron_right", weight: qA.Dark }) })
|
|
5524
5524
|
]
|
|
@@ -5567,7 +5567,7 @@ const ti = ({ transaction: A }) => {
|
|
|
5567
5567
|
},
|
|
5568
5568
|
role: "switch",
|
|
5569
5569
|
children: [
|
|
5570
|
-
/* @__PURE__ */ t(bA, { children: /* @__PURE__ */ t(
|
|
5570
|
+
/* @__PURE__ */ t(bA, { children: /* @__PURE__ */ t(Le, { sx: { bgcolor: "border.light" }, variant: "rounded", children: c ? /* @__PURE__ */ t(
|
|
5571
5571
|
P,
|
|
5572
5572
|
{
|
|
5573
5573
|
name: "visibilityOff",
|
|
@@ -5618,7 +5618,7 @@ const ti = ({ transaction: A }) => {
|
|
|
5618
5618
|
const { amount: e, description: n, isIncome: r, merchant_guid: a, payee: i, top_level_category_guid: o } = A;
|
|
5619
5619
|
return /* @__PURE__ */ d(w, { className: "mx-txn-amount-header", direction: "row", gap: 12, px: 16, py: 24, children: [
|
|
5620
5620
|
/* @__PURE__ */ t(
|
|
5621
|
-
|
|
5621
|
+
He,
|
|
5622
5622
|
{
|
|
5623
5623
|
categoryGuid: o || "",
|
|
5624
5624
|
merchantGuid: a || "",
|
|
@@ -5653,7 +5653,7 @@ const ti = ({ transaction: A }) => {
|
|
|
5653
5653
|
e(H.ON_TRANSACTION_MEMO_CLICK), s(!0);
|
|
5654
5654
|
},
|
|
5655
5655
|
children: [
|
|
5656
|
-
/* @__PURE__ */ t(bA, { children: /* @__PURE__ */ t(
|
|
5656
|
+
/* @__PURE__ */ t(bA, { children: /* @__PURE__ */ t(Le, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(P, { name: "article", sx: { color: "text.primary" }, weight: qA.Dark }) }) }),
|
|
5657
5657
|
/* @__PURE__ */ t(
|
|
5658
5658
|
sA,
|
|
5659
5659
|
{
|
|
@@ -5732,7 +5732,7 @@ const ti = ({ transaction: A }) => {
|
|
|
5732
5732
|
gap: i.Spacing.XSmall,
|
|
5733
5733
|
p: i.Spacing.Small,
|
|
5734
5734
|
children: [
|
|
5735
|
-
/* @__PURE__ */ t(
|
|
5735
|
+
/* @__PURE__ */ t(Ht, { sx: { fontSize: i.FontSize.Body } }),
|
|
5736
5736
|
/* @__PURE__ */ t(v, { variant: "Small", children: s.split_transaction_errors_select_category })
|
|
5737
5737
|
]
|
|
5738
5738
|
}
|
|
@@ -5761,7 +5761,7 @@ const ti = ({ transaction: A }) => {
|
|
|
5761
5761
|
o(H.ON_TRANSACTION_SPLIT_DELETE_CLICK), e(A);
|
|
5762
5762
|
},
|
|
5763
5763
|
sx: { w: 44, h: 44 },
|
|
5764
|
-
children: /* @__PURE__ */ t(
|
|
5764
|
+
children: /* @__PURE__ */ t(vt, {})
|
|
5765
5765
|
}
|
|
5766
5766
|
)
|
|
5767
5767
|
] }),
|
|
@@ -5773,7 +5773,7 @@ const ti = ({ transaction: A }) => {
|
|
|
5773
5773
|
gap: i.Spacing.XSmall,
|
|
5774
5774
|
py: i.Spacing.Small,
|
|
5775
5775
|
children: [
|
|
5776
|
-
/* @__PURE__ */ t(
|
|
5776
|
+
/* @__PURE__ */ t(Ht, { sx: { fontSize: i.FontSize.Body } }),
|
|
5777
5777
|
/* @__PURE__ */ t(v, { variant: "Small", children: s.split_transaction_errors_enter_an_amount })
|
|
5778
5778
|
]
|
|
5779
5779
|
}
|
|
@@ -5831,7 +5831,7 @@ const ti = ({ transaction: A }) => {
|
|
|
5831
5831
|
gap: o.Spacing.XSmall,
|
|
5832
5832
|
p: o.Spacing.Medium,
|
|
5833
5833
|
children: [
|
|
5834
|
-
/* @__PURE__ */ t(
|
|
5834
|
+
/* @__PURE__ */ t(Ht, { sx: { fontSize: o.FontSize.Body } }),
|
|
5835
5835
|
/* @__PURE__ */ t(v, { variant: "Small", children: u })
|
|
5836
5836
|
]
|
|
5837
5837
|
}
|
|
@@ -5909,7 +5909,7 @@ const ti = ({ transaction: A }) => {
|
|
|
5909
5909
|
}, [m]);
|
|
5910
5910
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
|
5911
5911
|
A && /* @__PURE__ */ t(W, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(cA, { onClick: O, children: [
|
|
5912
|
-
/* @__PURE__ */ t(bA, { children: /* @__PURE__ */ t(
|
|
5912
|
+
/* @__PURE__ */ t(bA, { children: /* @__PURE__ */ t(Le, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(P, { name: "call_split", sx: { color: "text.primary" }, weight: qA.Dark }) }) }),
|
|
5913
5913
|
/* @__PURE__ */ t(
|
|
5914
5914
|
sA,
|
|
5915
5915
|
{
|
|
@@ -6015,7 +6015,7 @@ const ti = ({ transaction: A }) => {
|
|
|
6015
6015
|
onSecondaryAction: () => i(!1),
|
|
6016
6016
|
children: [
|
|
6017
6017
|
/* @__PURE__ */ t(
|
|
6018
|
-
|
|
6018
|
+
Pe,
|
|
6019
6019
|
{
|
|
6020
6020
|
"aria-label": r.tags_placeholder,
|
|
6021
6021
|
name: "add-tag",
|
|
@@ -6040,11 +6040,11 @@ const ti = ({ transaction: A }) => {
|
|
|
6040
6040
|
}
|
|
6041
6041
|
);
|
|
6042
6042
|
return /* @__PURE__ */ t(I, { className: "mx-txn-tag-manager-search", px: a.Spacing.Large, py: a.Spacing.Medium, children: /* @__PURE__ */ t(
|
|
6043
|
-
|
|
6043
|
+
Pe,
|
|
6044
6044
|
{
|
|
6045
6045
|
InputProps: {
|
|
6046
|
-
startAdornment: /* @__PURE__ */ t(
|
|
6047
|
-
endAdornment: /* @__PURE__ */ t(
|
|
6046
|
+
startAdornment: /* @__PURE__ */ t(Rt, { position: "start", children: /* @__PURE__ */ t(ko, { color: "disabled" }) }),
|
|
6047
|
+
endAdornment: /* @__PURE__ */ t(Rt, { position: "end", sx: { padding: 0 }, children: e ? i : null })
|
|
6048
6048
|
},
|
|
6049
6049
|
"aria-label": n.search_aria,
|
|
6050
6050
|
name: "search",
|
|
@@ -6090,7 +6090,7 @@ const ti = ({ transaction: A }) => {
|
|
|
6090
6090
|
"aria-label": `Delete ${n.name} tag`,
|
|
6091
6091
|
color: "secondary",
|
|
6092
6092
|
onClick: S,
|
|
6093
|
-
children: /* @__PURE__ */ t(
|
|
6093
|
+
children: /* @__PURE__ */ t(vt, { color: "secondary" })
|
|
6094
6094
|
}
|
|
6095
6095
|
)
|
|
6096
6096
|
] }),
|
|
@@ -6102,7 +6102,7 @@ const ti = ({ transaction: A }) => {
|
|
|
6102
6102
|
onClick: () => A(n.guid),
|
|
6103
6103
|
role: "checkbox",
|
|
6104
6104
|
children: [
|
|
6105
|
-
/* @__PURE__ */ t(se, { sx: { ml: 0 }, children: /* @__PURE__ */ t(
|
|
6105
|
+
/* @__PURE__ */ t(se, { sx: { ml: 0 }, children: /* @__PURE__ */ t(Mt, { checked: e.includes(n.guid), edge: "start", tabIndex: -1 }) }),
|
|
6106
6106
|
/* @__PURE__ */ t(sA, { children: n.name })
|
|
6107
6107
|
]
|
|
6108
6108
|
}
|
|
@@ -6117,7 +6117,7 @@ const ti = ({ transaction: A }) => {
|
|
|
6117
6117
|
onSecondaryAction: () => u(!1),
|
|
6118
6118
|
children: [
|
|
6119
6119
|
/* @__PURE__ */ t(
|
|
6120
|
-
|
|
6120
|
+
Pe,
|
|
6121
6121
|
{
|
|
6122
6122
|
"aria-describedby": m ? "update-tag-error" : void 0,
|
|
6123
6123
|
"aria-label": s.tags_update_the_tag_name,
|
|
@@ -6194,7 +6194,7 @@ const ti = ({ transaction: A }) => {
|
|
|
6194
6194
|
e(H.ON_TRANSACTION_TAGS_CLICK), u(!0);
|
|
6195
6195
|
},
|
|
6196
6196
|
children: [
|
|
6197
|
-
/* @__PURE__ */ t(bA, { children: /* @__PURE__ */ t(
|
|
6197
|
+
/* @__PURE__ */ t(bA, { children: /* @__PURE__ */ t(Le, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(P, { name: "local_offer", sx: { color: "text.primary" }, weight: qA.Dark }) }) }),
|
|
6198
6198
|
/* @__PURE__ */ t(
|
|
6199
6199
|
sA,
|
|
6200
6200
|
{
|
|
@@ -6316,7 +6316,7 @@ const ti = ({ transaction: A }) => {
|
|
|
6316
6316
|
), /* @__PURE__ */ t(I, { className: "mx-txn-transaction-details", width: "100%", children: n && /* @__PURE__ */ d(w, { children: [
|
|
6317
6317
|
/* @__PURE__ */ d(w, { gap: r.Spacing.Small, p: r.Spacing.Large, children: [
|
|
6318
6318
|
/* @__PURE__ */ t(ue, { elevation: 2, sx: { borderRadius: r.BorderRadius.Small, width: 64 }, children: /* @__PURE__ */ t(
|
|
6319
|
-
|
|
6319
|
+
He,
|
|
6320
6320
|
{
|
|
6321
6321
|
categoryGuid: n.top_level_category_guid || "",
|
|
6322
6322
|
merchantGuid: n.merchant_guid || "",
|
|
@@ -6347,24 +6347,24 @@ const ti = ({ transaction: A }) => {
|
|
|
6347
6347
|
)
|
|
6348
6348
|
] }),
|
|
6349
6349
|
/* @__PURE__ */ t(ue, { square: !0, sx: { boxShadow: "none" }, children: /* @__PURE__ */ t(iA, { children: e.map((o, s) => /* @__PURE__ */ d(g.Fragment, { children: [
|
|
6350
|
-
o ===
|
|
6351
|
-
o ===
|
|
6352
|
-
o ===
|
|
6353
|
-
o ===
|
|
6350
|
+
o === dt.Category && /* @__PURE__ */ t(ti, { transaction: n }),
|
|
6351
|
+
o === dt.Date && /* @__PURE__ */ t(ni, { transaction: n }),
|
|
6352
|
+
o === dt.Memo && /* @__PURE__ */ t(ai, { transaction: n }),
|
|
6353
|
+
o === dt.Tags && /* @__PURE__ */ t(ii, { transaction: n }),
|
|
6354
6354
|
/* @__PURE__ */ t(G, { variant: s < e.length - 1 ? "inset" : "fullWidth" })
|
|
6355
6355
|
] }, o)) }) }),
|
|
6356
6356
|
/* @__PURE__ */ t(v, { bold: !0, mb: 8, ml: 26, mt: 16, variant: "Body", children: "Actions" }),
|
|
6357
6357
|
/* @__PURE__ */ t(ue, { square: !0, sx: { boxShadow: "none" }, children: /* @__PURE__ */ d(iA, { children: [
|
|
6358
6358
|
A.map((o, s) => /* @__PURE__ */ d(g.Fragment, { children: [
|
|
6359
|
-
o ===
|
|
6360
|
-
o ===
|
|
6361
|
-
o ===
|
|
6359
|
+
o === Nt.SplitTransaction && /* @__PURE__ */ t(Xl, { transaction: n }),
|
|
6360
|
+
o === Nt.HideTransaction && /* @__PURE__ */ t(zl, { transaction: n }),
|
|
6361
|
+
o === Nt.MerchantLogo && /* @__PURE__ */ t(Rl, { transaction: n }),
|
|
6362
6362
|
/* @__PURE__ */ t(G, { variant: s < A.length - 1 ? "inset" : "fullWidth" })
|
|
6363
6363
|
] }, o)),
|
|
6364
6364
|
n.is_manual && /* @__PURE__ */ t(Nl, { transaction: n })
|
|
6365
6365
|
] }) })
|
|
6366
6366
|
] }) });
|
|
6367
|
-
},
|
|
6367
|
+
}, Lt = T(nd), rd = ({ copy: A, isOpen: e, onClose: n, onPrimaryAction: r }) => {
|
|
6368
6368
|
const { common: a, transactions: i } = D();
|
|
6369
6369
|
return /* @__PURE__ */ d(
|
|
6370
6370
|
BA,
|
|
@@ -6392,7 +6392,7 @@ const ti = ({ transaction: A }) => {
|
|
|
6392
6392
|
Description: cd(n),
|
|
6393
6393
|
"Original Description": n.feed_description,
|
|
6394
6394
|
Amount: `${n.amount}`,
|
|
6395
|
-
"Parent Category":
|
|
6395
|
+
"Parent Category": De[n.top_level_category_guid || ""],
|
|
6396
6396
|
Category: n.category,
|
|
6397
6397
|
Account: n.account,
|
|
6398
6398
|
Tags: ld(n, e),
|
|
@@ -6472,7 +6472,7 @@ const ti = ({ transaction: A }) => {
|
|
|
6472
6472
|
}
|
|
6473
6473
|
),
|
|
6474
6474
|
/* @__PURE__ */ t(
|
|
6475
|
-
|
|
6475
|
+
Pe,
|
|
6476
6476
|
{
|
|
6477
6477
|
label: n.payee_title,
|
|
6478
6478
|
name: "payee",
|
|
@@ -6482,7 +6482,7 @@ const ti = ({ transaction: A }) => {
|
|
|
6482
6482
|
}
|
|
6483
6483
|
),
|
|
6484
6484
|
/* @__PURE__ */ t(
|
|
6485
|
-
|
|
6485
|
+
Pe,
|
|
6486
6486
|
{
|
|
6487
6487
|
InputLabelProps: { shrink: !0 },
|
|
6488
6488
|
SelectProps: { defaultValue: -1, IconComponent: Ia },
|
|
@@ -6564,7 +6564,7 @@ const ti = ({ transaction: A }) => {
|
|
|
6564
6564
|
selectedAccounts: k,
|
|
6565
6565
|
setDisplayedDate: X,
|
|
6566
6566
|
setSelectedAccounts: M
|
|
6567
|
-
} = mA(), [Y, rA] = g.useState(""), [xA, dA] = g.useState(""), [PA,
|
|
6567
|
+
} = mA(), [Y, rA] = g.useState(""), [xA, dA] = g.useState(""), [PA, ze] = g.useState(!1), [me, je] = g.useState(!1), [V, wA] = g.useState(!1);
|
|
6568
6568
|
g.useEffect(() => {
|
|
6569
6569
|
M(a);
|
|
6570
6570
|
}, [a]), g.useEffect(() => {
|
|
@@ -6585,7 +6585,7 @@ const ti = ({ transaction: A }) => {
|
|
|
6585
6585
|
const SA = g.useMemo(
|
|
6586
6586
|
() => a.filter((LA) => LA.is_manual),
|
|
6587
6587
|
[a]
|
|
6588
|
-
), JA = xA ? L.find((LA) => LA.guid === xA) : void 0,
|
|
6588
|
+
), JA = xA ? L.find((LA) => LA.guid === xA) : void 0, Te = c && !!s.payee && !!s.account_guid && !!s.category_guid, cn = (LA) => {
|
|
6589
6589
|
X(LA[0], LA[1]);
|
|
6590
6590
|
}, ln = (LA) => {
|
|
6591
6591
|
l(LA), y({
|
|
@@ -6602,16 +6602,16 @@ const ti = ({ transaction: A }) => {
|
|
|
6602
6602
|
}), rA(
|
|
6603
6603
|
"addTransaction"
|
|
6604
6604
|
/* AddTransaction */
|
|
6605
|
-
), x(F.TRANSACTIONS_CLICK_ADD)) : (
|
|
6605
|
+
), x(F.TRANSACTIONS_CLICK_ADD)) : (ze(!0), x(F.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
|
|
6606
6606
|
}, Gi = async () => {
|
|
6607
|
-
|
|
6607
|
+
Te && await f(s), rA("");
|
|
6608
6608
|
}, Xi = () => {
|
|
6609
|
-
|
|
6609
|
+
ze(!1), je(!0);
|
|
6610
6610
|
}, Qi = () => {
|
|
6611
6611
|
je(!1), i();
|
|
6612
6612
|
};
|
|
6613
6613
|
return !K || !V ? /* @__PURE__ */ t(ie, {}) : /* @__PURE__ */ d(
|
|
6614
|
-
|
|
6614
|
+
Re,
|
|
6615
6615
|
{
|
|
6616
6616
|
accountOptions: a,
|
|
6617
6617
|
actions: [
|
|
@@ -6677,7 +6677,7 @@ const ti = ({ transaction: A }) => {
|
|
|
6677
6677
|
[o.breakpoints.up("md")]: { display: "none" }
|
|
6678
6678
|
},
|
|
6679
6679
|
children: /* @__PURE__ */ t(
|
|
6680
|
-
|
|
6680
|
+
it,
|
|
6681
6681
|
{
|
|
6682
6682
|
height: `calc(${e} - ${Fr}px)`,
|
|
6683
6683
|
onClick: (LA) => {
|
|
@@ -6685,7 +6685,8 @@ const ti = ({ transaction: A }) => {
|
|
|
6685
6685
|
"transaction"
|
|
6686
6686
|
/* Transaction */
|
|
6687
6687
|
);
|
|
6688
|
-
}
|
|
6688
|
+
},
|
|
6689
|
+
showInsights: n
|
|
6689
6690
|
}
|
|
6690
6691
|
)
|
|
6691
6692
|
}
|
|
@@ -6699,7 +6700,7 @@ const ti = ({ transaction: A }) => {
|
|
|
6699
6700
|
JA && !JA.has_been_viewed && b({ ...JA, has_been_viewed: !0 }), rA("");
|
|
6700
6701
|
},
|
|
6701
6702
|
title: O.details_title,
|
|
6702
|
-
children: JA && /* @__PURE__ */ t(
|
|
6703
|
+
children: JA && /* @__PURE__ */ t(Lt, { transaction: JA })
|
|
6703
6704
|
}
|
|
6704
6705
|
),
|
|
6705
6706
|
JA && Y === "category" && /* @__PURE__ */ t(
|
|
@@ -6716,7 +6717,7 @@ const ti = ({ transaction: A }) => {
|
|
|
6716
6717
|
{
|
|
6717
6718
|
ariaLabelClose: S.close_aria,
|
|
6718
6719
|
isOpen: Y === "addTransaction",
|
|
6719
|
-
isPrimaryDisabled: !
|
|
6720
|
+
isPrimaryDisabled: !Te,
|
|
6720
6721
|
onClose: () => rA(""),
|
|
6721
6722
|
onPrimaryAction: Gi,
|
|
6722
6723
|
title: O.add_transaction_title,
|
|
@@ -6729,7 +6730,7 @@ const ti = ({ transaction: A }) => {
|
|
|
6729
6730
|
copy: { title: O.add_manual_account },
|
|
6730
6731
|
isOpen: PA,
|
|
6731
6732
|
onClose: () => {
|
|
6732
|
-
|
|
6733
|
+
ze(!1);
|
|
6733
6734
|
},
|
|
6734
6735
|
onPrimaryAction: Xi
|
|
6735
6736
|
}
|
|
@@ -6753,7 +6754,7 @@ const ti = ({ transaction: A }) => {
|
|
|
6753
6754
|
repeat_month: null,
|
|
6754
6755
|
repeat_weekday: null,
|
|
6755
6756
|
start_date: gA(A.expectedDate)
|
|
6756
|
-
}, r = `${
|
|
6757
|
+
}, r = `${ht(A.expectedDate)}`, a = `${We(A.expectedDate)}`, i = `${pt(A.expectedDate)}`;
|
|
6757
6758
|
switch (A.recurrenceType) {
|
|
6758
6759
|
case q.EveryWeek:
|
|
6759
6760
|
n.repeat_interval = "1", n.repeat_weekday = i;
|
|
@@ -6805,7 +6806,7 @@ const ti = ({ transaction: A }) => {
|
|
|
6805
6806
|
}, f = l.find((m) => m.id === A.recurrenceType);
|
|
6806
6807
|
return /* @__PURE__ */ d(aA, { children: [
|
|
6807
6808
|
/* @__PURE__ */ t(
|
|
6808
|
-
|
|
6809
|
+
Xt,
|
|
6809
6810
|
{
|
|
6810
6811
|
iconName: "sync",
|
|
6811
6812
|
label: e.activity_schedule,
|
|
@@ -6863,7 +6864,7 @@ const ti = ({ transaction: A }) => {
|
|
|
6863
6864
|
};
|
|
6864
6865
|
return /* @__PURE__ */ d(aA, { children: [
|
|
6865
6866
|
/* @__PURE__ */ t(
|
|
6866
|
-
|
|
6867
|
+
Xt,
|
|
6867
6868
|
{
|
|
6868
6869
|
iconName: "calendar_month",
|
|
6869
6870
|
label: e.activity_payment_date,
|
|
@@ -6925,7 +6926,7 @@ const ti = ({ transaction: A }) => {
|
|
|
6925
6926
|
return /* @__PURE__ */ d(w, { bgcolor: "background.default", direction: "column", height: "100%", children: [
|
|
6926
6927
|
/* @__PURE__ */ d(w, { direction: "column", gap: 12, m: 24, children: [
|
|
6927
6928
|
/* @__PURE__ */ t(
|
|
6928
|
-
|
|
6929
|
+
He,
|
|
6929
6930
|
{
|
|
6930
6931
|
categoryGuid: A.categoryGuid || "",
|
|
6931
6932
|
merchantGuid: A.merchantGuid || "",
|
|
@@ -6941,7 +6942,7 @@ const ti = ({ transaction: A }) => {
|
|
|
6941
6942
|
/* @__PURE__ */ d(iA, { sx: { bgcolor: "background.paper" }, children: [
|
|
6942
6943
|
A.institution && /* @__PURE__ */ d(aA, { children: [
|
|
6943
6944
|
/* @__PURE__ */ t(
|
|
6944
|
-
|
|
6945
|
+
Xt,
|
|
6945
6946
|
{
|
|
6946
6947
|
iconName: "checkbook",
|
|
6947
6948
|
label: n.account,
|
|
@@ -6952,7 +6953,7 @@ const ti = ({ transaction: A }) => {
|
|
|
6952
6953
|
] }),
|
|
6953
6954
|
E && /* @__PURE__ */ d(aA, { children: [
|
|
6954
6955
|
/* @__PURE__ */ t(
|
|
6955
|
-
|
|
6956
|
+
Xt,
|
|
6956
6957
|
{
|
|
6957
6958
|
iconName: "monetization_on",
|
|
6958
6959
|
label: n.category,
|
|
@@ -6978,7 +6979,7 @@ const ti = ({ transaction: A }) => {
|
|
|
6978
6979
|
}
|
|
6979
6980
|
),
|
|
6980
6981
|
/* @__PURE__ */ t(v, { bold: !0, sx: { ml: 24, mt: 16 }, variant: "Body", children: n.paid_transactions }),
|
|
6981
|
-
/* @__PURE__ */ t(
|
|
6982
|
+
/* @__PURE__ */ t(it, { height: "30dvh", onClick: y }),
|
|
6982
6983
|
/* @__PURE__ */ t(
|
|
6983
6984
|
hA,
|
|
6984
6985
|
{
|
|
@@ -6986,7 +6987,7 @@ const ti = ({ transaction: A }) => {
|
|
|
6986
6987
|
isOpen: !!m,
|
|
6987
6988
|
onClose: () => y(""),
|
|
6988
6989
|
title: n.transaction_details_drawer_title,
|
|
6989
|
-
children: b && /* @__PURE__ */ t(
|
|
6990
|
+
children: b && /* @__PURE__ */ t(Lt, { transaction: b })
|
|
6990
6991
|
}
|
|
6991
6992
|
),
|
|
6992
6993
|
/* @__PURE__ */ t(
|
|
@@ -7007,7 +7008,7 @@ const ti = ({ transaction: A }) => {
|
|
|
7007
7008
|
gridRow: 1,
|
|
7008
7009
|
gridColumn: 1,
|
|
7009
7010
|
zIndex: 2
|
|
7010
|
-
}, an = (A) => A ? { margin: "0 0 -6px -4px" } : void 0, tr = ({ isOffset: A = !1, size: e = 16 }) => /* @__PURE__ */ t(
|
|
7011
|
+
}, an = (A) => A ? { margin: "0 0 -6px -4px" } : void 0, tr = ({ isOffset: A = !1, size: e = 16 }) => /* @__PURE__ */ t(xe, { size: e, sx: { ...an(A) }, children: /* @__PURE__ */ t(Uo, { color: "primary", sx: { fontSize: e, ...rn } }) }), nr = ({ isOffset: A = !1, size: e = 16 }) => /* @__PURE__ */ t(xe, { size: e, sx: { ...an(A) }, children: /* @__PURE__ */ t(Wo, { sx: { color: "categories.income", fontSize: e, ...rn } }) }), rr = ({ isOffset: A = !1, size: e = 16 }) => /* @__PURE__ */ t(xe, { size: e, sx: { ...an(A) }, children: /* @__PURE__ */ t(Ht, { color: "error", sx: { fontSize: e, ...rn } }) }), ar = ({ isOffset: A = !1, size: e = 16 }) => /* @__PURE__ */ t(xe, { size: e, sx: { ...an(A) }, children: /* @__PURE__ */ t(Oa, { color: "success", sx: { fontSize: e, ...rn } }) }), jr = ({ copy: A, date: e, type: n }) => {
|
|
7011
7012
|
let r = e && Yo(e) ? z(A.monthly_ordinal, FA(e, "do")) : A.monthly;
|
|
7012
7013
|
switch (n) {
|
|
7013
7014
|
case q.EveryQuarter:
|
|
@@ -7079,7 +7080,7 @@ const ti = ({ transaction: A }) => {
|
|
|
7079
7080
|
o(A.sequenceGuid || A.scheduledPaymentGuid || ""), n(A);
|
|
7080
7081
|
}, children: [
|
|
7081
7082
|
/* @__PURE__ */ t(bA, { children: /* @__PURE__ */ t(
|
|
7082
|
-
|
|
7083
|
+
He,
|
|
7083
7084
|
{
|
|
7084
7085
|
categoryGuid: A.categoryGuid || "",
|
|
7085
7086
|
merchantGuid: A.merchantGuid || ""
|
|
@@ -7137,7 +7138,7 @@ const ti = ({ transaction: A }) => {
|
|
|
7137
7138
|
}
|
|
7138
7139
|
)
|
|
7139
7140
|
] });
|
|
7140
|
-
},
|
|
7141
|
+
}, Ft = T(Ld), ci = (A, e, n) => {
|
|
7141
7142
|
const r = {
|
|
7142
7143
|
account_guid: A.account_guid,
|
|
7143
7144
|
amount: A.amount,
|
|
@@ -7155,19 +7156,19 @@ const ti = ({ transaction: A }) => {
|
|
|
7155
7156
|
};
|
|
7156
7157
|
switch (e) {
|
|
7157
7158
|
case q.EveryWeek:
|
|
7158
|
-
r.repeat_interval = "1", r.repeat_weekday = `${
|
|
7159
|
+
r.repeat_interval = "1", r.repeat_weekday = `${pt(n)}`;
|
|
7159
7160
|
break;
|
|
7160
7161
|
case q.EveryOtherWeek:
|
|
7161
|
-
r.repeat_interval = "2", r.repeat_weekday = `${
|
|
7162
|
+
r.repeat_interval = "2", r.repeat_weekday = `${pt(n)}`;
|
|
7162
7163
|
break;
|
|
7163
7164
|
case q.EveryMonth:
|
|
7164
|
-
r.repeat_day = `${
|
|
7165
|
+
r.repeat_day = `${ht(n)}`;
|
|
7165
7166
|
break;
|
|
7166
7167
|
case q.EveryQuarter:
|
|
7167
|
-
r.repeat_interval = "3", r.repeat_day = `${
|
|
7168
|
+
r.repeat_interval = "3", r.repeat_day = `${ht(n)}`;
|
|
7168
7169
|
break;
|
|
7169
7170
|
case q.EveryYear:
|
|
7170
|
-
r.repeat_day = `${
|
|
7171
|
+
r.repeat_day = `${ht(n)}`, r.repeat_month = `${We(n)}`;
|
|
7171
7172
|
break;
|
|
7172
7173
|
}
|
|
7173
7174
|
return r;
|
|
@@ -7194,14 +7195,14 @@ const ti = ({ transaction: A }) => {
|
|
|
7194
7195
|
switch (e) {
|
|
7195
7196
|
case q.EveryWeek:
|
|
7196
7197
|
case q.EveryOtherWeek:
|
|
7197
|
-
r.recurrence_day =
|
|
7198
|
+
r.recurrence_day = pt(n);
|
|
7198
7199
|
break;
|
|
7199
7200
|
case q.EveryMonth:
|
|
7200
7201
|
case q.EveryOtherMonth:
|
|
7201
7202
|
case q.EveryQuarter:
|
|
7202
7203
|
case q.EveryOtherQuarter:
|
|
7203
7204
|
case q.EveryYear:
|
|
7204
|
-
r.recurrence_day =
|
|
7205
|
+
r.recurrence_day = ht(n);
|
|
7205
7206
|
break;
|
|
7206
7207
|
}
|
|
7207
7208
|
return r;
|
|
@@ -7226,7 +7227,7 @@ const ti = ({ transaction: A }) => {
|
|
|
7226
7227
|
searchValue: i
|
|
7227
7228
|
}
|
|
7228
7229
|
),
|
|
7229
|
-
/* @__PURE__ */ t(
|
|
7230
|
+
/* @__PURE__ */ t(it, { bgcolor: A, height: "auto", onClick: r, showLoader: !1 })
|
|
7230
7231
|
] });
|
|
7231
7232
|
}, di = T(bd), Id = ({
|
|
7232
7233
|
bgcolor: A = "background.default",
|
|
@@ -7311,7 +7312,7 @@ const ti = ({ transaction: A }) => {
|
|
|
7311
7312
|
}
|
|
7312
7313
|
) })
|
|
7313
7314
|
] });
|
|
7314
|
-
}, ui = T(Id), bn = (A) => A.top_level_category_guid !== p.INCOME && A.transaction_type === KA.DEBIT, Dd = (A, e) => bn(A) ? A.payee?.toLowerCase().includes(e.toLowerCase()) || A.description.toLowerCase().includes(e.toLowerCase()) || A.feed_description.toLowerCase().includes(e.toLowerCase()) : !1,
|
|
7315
|
+
}, ui = T(Id), bn = (A) => A.top_level_category_guid !== p.INCOME && A.transaction_type === KA.DEBIT, Dd = (A, e) => bn(A) ? A.payee?.toLowerCase().includes(e.toLowerCase()) || A.description.toLowerCase().includes(e.toLowerCase()) || A.feed_description.toLowerCase().includes(e.toLowerCase()) : !1, Et = (A) => A.top_level_category_guid === p.INCOME || A.top_level_category_guid === p.TRANSFER && A.transaction_type === KA.CREDIT, hi = (A, e) => Et(A) ? A.payee?.toLowerCase().includes(e.toLowerCase()) || A.description?.toLowerCase().includes(e.toLowerCase()) || A.feed_description?.toLowerCase().includes(e.toLowerCase()) : !1, Od = ({
|
|
7315
7316
|
isIncome: A = !1,
|
|
7316
7317
|
label: e,
|
|
7317
7318
|
onAddActivity: n = () => null
|
|
@@ -7320,7 +7321,7 @@ const ti = ({ transaction: A }) => {
|
|
|
7320
7321
|
() => u.find((x) => x.guid === C),
|
|
7321
7322
|
[C]
|
|
7322
7323
|
), S = () => {
|
|
7323
|
-
h(!0), c(A ? { ...s, custom:
|
|
7324
|
+
h(!0), c(A ? { ...s, custom: Et } : { ...s, custom: bn });
|
|
7324
7325
|
}, O = async () => {
|
|
7325
7326
|
if (n(), !b || !E) {
|
|
7326
7327
|
N();
|
|
@@ -7363,7 +7364,7 @@ const ti = ({ transaction: A }) => {
|
|
|
7363
7364
|
onSearch: (x) => {
|
|
7364
7365
|
c({
|
|
7365
7366
|
...s,
|
|
7366
|
-
custom: (B) => A ? x ? hi(B, x) :
|
|
7367
|
+
custom: (B) => A ? x ? hi(B, x) : Et(B) : x ? Dd(B, x) : bn(B)
|
|
7367
7368
|
});
|
|
7368
7369
|
},
|
|
7369
7370
|
onSelected: (x) => f(x)
|
|
@@ -7419,7 +7420,7 @@ const ti = ({ transaction: A }) => {
|
|
|
7419
7420
|
};
|
|
7420
7421
|
return /* @__PURE__ */ d(iA, { sx: { bgcolor: "background.paper" }, children: [
|
|
7421
7422
|
i.map((c, u) => /* @__PURE__ */ d(g.Fragment, { children: [
|
|
7422
|
-
/* @__PURE__ */ t(
|
|
7423
|
+
/* @__PURE__ */ t(Ft, { activity: c, onActivityClick: o, showOrdinal: !0 }),
|
|
7423
7424
|
/* @__PURE__ */ t(G, { variant: u < i.length - 1 ? "inset" : "fullWidth" })
|
|
7424
7425
|
] }, c.scheduledPaymentGuid)),
|
|
7425
7426
|
/* @__PURE__ */ t(gi, { label: A.add_expense, onAddActivity: s })
|
|
@@ -7439,8 +7440,8 @@ const ti = ({ transaction: A }) => {
|
|
|
7439
7440
|
activityType: vA.Income,
|
|
7440
7441
|
amount: l.amount,
|
|
7441
7442
|
categoryGuid: l.category_guid,
|
|
7442
|
-
expectedDate:
|
|
7443
|
-
occurredOnDate: l.occurred_on ?
|
|
7443
|
+
expectedDate: Ct(l.expected_date),
|
|
7444
|
+
occurredOnDate: l.occurred_on ? Ct(l.occurred_on) : void 0,
|
|
7444
7445
|
name: l.name,
|
|
7445
7446
|
institution: f ? In(f) : void 0,
|
|
7446
7447
|
institutionGuid: f?.institution_guid,
|
|
@@ -7470,7 +7471,7 @@ const ti = ({ transaction: A }) => {
|
|
|
7470
7471
|
activityType: vA.Income,
|
|
7471
7472
|
amount: l.amount,
|
|
7472
7473
|
categoryGuid: l.category_guid,
|
|
7473
|
-
expectedDate:
|
|
7474
|
+
expectedDate: Ct(l.expected_date),
|
|
7474
7475
|
name: l.name,
|
|
7475
7476
|
institution: m ? In(m) : void 0,
|
|
7476
7477
|
institutionGuid: m?.institution_guid,
|
|
@@ -7515,7 +7516,7 @@ const ti = ({ transaction: A }) => {
|
|
|
7515
7516
|
case q.EveryOtherWeek:
|
|
7516
7517
|
if (fA(o, l))
|
|
7517
7518
|
for (C = Ye(o, 2); fA(C, h); )
|
|
7518
|
-
|
|
7519
|
+
mt(C, l) && r.push({
|
|
7519
7520
|
...s,
|
|
7520
7521
|
expectedDate: C
|
|
7521
7522
|
}), C = Ye(C, 2);
|
|
@@ -7523,7 +7524,7 @@ const ti = ({ transaction: A }) => {
|
|
|
7523
7524
|
for (r.push({
|
|
7524
7525
|
...s,
|
|
7525
7526
|
expectedDate: o
|
|
7526
|
-
}), C = wr(o, 2);
|
|
7527
|
+
}), C = wr(o, 2); mt(C, l); )
|
|
7527
7528
|
r.push({
|
|
7528
7529
|
...s,
|
|
7529
7530
|
expectedDate: C
|
|
@@ -7554,27 +7555,27 @@ const ti = ({ transaction: A }) => {
|
|
|
7554
7555
|
});
|
|
7555
7556
|
break;
|
|
7556
7557
|
case q.EveryQuarter:
|
|
7557
|
-
fA(o, l) ? fA(
|
|
7558
|
+
fA(o, l) ? fA(Be(o, 1), h) && r.push({
|
|
7558
7559
|
...s,
|
|
7559
|
-
expectedDate:
|
|
7560
|
+
expectedDate: Be(o, 1)
|
|
7560
7561
|
}) : fA(o, h) && r.push({
|
|
7561
7562
|
...s,
|
|
7562
7563
|
expectedDate: o
|
|
7563
7564
|
});
|
|
7564
7565
|
break;
|
|
7565
7566
|
case q.EveryOtherQuarter:
|
|
7566
|
-
fA(o, l) ? fA(
|
|
7567
|
+
fA(o, l) ? fA(Be(o, 2), h) && r.push({
|
|
7567
7568
|
...s,
|
|
7568
|
-
expectedDate:
|
|
7569
|
+
expectedDate: Be(o, 2)
|
|
7569
7570
|
}) : fA(o, h) && r.push({
|
|
7570
7571
|
...s,
|
|
7571
7572
|
expectedDate: o
|
|
7572
7573
|
});
|
|
7573
7574
|
break;
|
|
7574
7575
|
case q.EveryYear:
|
|
7575
|
-
fA(o, l) ? fA(
|
|
7576
|
+
fA(o, l) ? fA(ft(o, 1), h) && r.push({
|
|
7576
7577
|
...s,
|
|
7577
|
-
expectedDate:
|
|
7578
|
+
expectedDate: ft(o, 1)
|
|
7578
7579
|
}) : fA(o, h) && r.push({
|
|
7579
7580
|
...s,
|
|
7580
7581
|
expectedDate: o
|
|
@@ -7590,7 +7591,7 @@ const ti = ({ transaction: A }) => {
|
|
|
7590
7591
|
}, Hd = (A, e, n, r, a) => r.map((i) => {
|
|
7591
7592
|
const o = e.find((h) => h.cashflow_sequence_guid === i.guid), s = n.find((h) => h.cashflow_sequence_guid === i.guid), c = a.find((h) => h.guid === o?.transaction_guid), u = A.find((h) => h.guid === c?.account_guid);
|
|
7592
7593
|
let l = /* @__PURE__ */ new Date();
|
|
7593
|
-
return o ? l =
|
|
7594
|
+
return o ? l = Ct(o.expected_date) : s && (l = Ct(s.expected_date)), {
|
|
7594
7595
|
activityStatus: EA.Upcoming,
|
|
7595
7596
|
activityType: vA.Income,
|
|
7596
7597
|
amount: i.amount,
|
|
@@ -7620,7 +7621,7 @@ const ti = ({ transaction: A }) => {
|
|
|
7620
7621
|
};
|
|
7621
7622
|
return /* @__PURE__ */ d(iA, { sx: { bgcolor: "background.paper" }, children: [
|
|
7622
7623
|
s.map((l, h) => /* @__PURE__ */ d(g.Fragment, { children: [
|
|
7623
|
-
/* @__PURE__ */ t(
|
|
7624
|
+
/* @__PURE__ */ t(Ft, { activity: l, onActivityClick: c, showOrdinal: !0 }),
|
|
7624
7625
|
/* @__PURE__ */ t(G, { variant: h < s.length - 1 ? "inset" : "fullWidth" })
|
|
7625
7626
|
] }, l.sequenceGuid)),
|
|
7626
7627
|
/* @__PURE__ */ t(gi, { isIncome: !0, label: A.add_income, onAddActivity: u })
|
|
@@ -7648,10 +7649,10 @@ const ti = ({ transaction: A }) => {
|
|
|
7648
7649
|
A === 0 && /* @__PURE__ */ t(Nd, {}),
|
|
7649
7650
|
A === 1 && /* @__PURE__ */ t(Ci, {})
|
|
7650
7651
|
] });
|
|
7651
|
-
}, fi = T(Bd),
|
|
7652
|
+
}, fi = T(Bd), ct = (A, e) => A + e.amount, hn = (A) => A.activityType === vA.Income && Ze(A.expectedDate, {
|
|
7652
7653
|
start: pA($()),
|
|
7653
7654
|
end: TA($())
|
|
7654
|
-
}),
|
|
7655
|
+
}), Ot = (A) => A.activityType === vA.Expense && Ze(A.expectedDate, {
|
|
7655
7656
|
start: pA($()),
|
|
7656
7657
|
end: TA($())
|
|
7657
7658
|
}), gn = (A) => A.occurredOnDate && Ze(A.occurredOnDate, {
|
|
@@ -7713,7 +7714,7 @@ const ti = ({ transaction: A }) => {
|
|
|
7713
7714
|
)
|
|
7714
7715
|
}
|
|
7715
7716
|
);
|
|
7716
|
-
}, qd = T(_d),
|
|
7717
|
+
}, qd = T(_d), xt = ({ icon: A, label: e }) => /* @__PURE__ */ d(w, { alignItems: "center", flexDirection: "row", sx: { gap: 6 }, children: [
|
|
7717
7718
|
/* @__PURE__ */ t(A, {}),
|
|
7718
7719
|
/* @__PURE__ */ t(v, { variant: "XSmall", children: e })
|
|
7719
7720
|
] }), Kd = () => {
|
|
@@ -7728,18 +7729,18 @@ const ti = ({ transaction: A }) => {
|
|
|
7728
7729
|
justifyContent: "center",
|
|
7729
7730
|
mt: 12,
|
|
7730
7731
|
children: [
|
|
7731
|
-
/* @__PURE__ */ t(
|
|
7732
|
-
/* @__PURE__ */ t(
|
|
7733
|
-
/* @__PURE__ */ t(
|
|
7734
|
-
/* @__PURE__ */ t(
|
|
7732
|
+
/* @__PURE__ */ t(xt, { icon: tr, label: A.expense }),
|
|
7733
|
+
/* @__PURE__ */ t(xt, { icon: nr, label: A.income }),
|
|
7734
|
+
/* @__PURE__ */ t(xt, { icon: rr, label: A.missed }),
|
|
7735
|
+
/* @__PURE__ */ t(xt, { icon: ar, label: A.paid })
|
|
7735
7736
|
]
|
|
7736
7737
|
}
|
|
7737
7738
|
);
|
|
7738
7739
|
}, kd = T(Kd), Ur = 58, Gd = () => {
|
|
7739
7740
|
const A = uA(), { onEvent: e } = J(), { selectedDay: n } = MA(), [r, a] = g.useState(
|
|
7740
|
-
Sr(/* @__PURE__ */ new Date()) *
|
|
7741
|
+
Sr(/* @__PURE__ */ new Date()) * ot + Ur
|
|
7741
7742
|
), i = (s) => {
|
|
7742
|
-
a(Sr(s) *
|
|
7743
|
+
a(Sr(s) * ot + Ur), e(F.RECURRING_ACTIVITY_CLICK_CALENDAR_RIGHT);
|
|
7743
7744
|
}, o = /* @__PURE__ */ t(
|
|
7744
7745
|
Bn,
|
|
7745
7746
|
{
|
|
@@ -7770,11 +7771,11 @@ const ti = ({ transaction: A }) => {
|
|
|
7770
7771
|
minHeight: r
|
|
7771
7772
|
},
|
|
7772
7773
|
"&.MuiDateCalendar-root": {
|
|
7773
|
-
minHeight: r +
|
|
7774
|
+
minHeight: r + ot
|
|
7774
7775
|
},
|
|
7775
7776
|
"& .MuiButtonBase-root, .MuiDayCalendar-weekDayLabel": {
|
|
7776
|
-
height:
|
|
7777
|
-
width:
|
|
7777
|
+
height: ot,
|
|
7778
|
+
width: ot,
|
|
7778
7779
|
margin: 0
|
|
7779
7780
|
},
|
|
7780
7781
|
"& .MuiDayCalendar-weekDayLabel": {
|
|
@@ -7816,7 +7817,7 @@ const ti = ({ transaction: A }) => {
|
|
|
7816
7817
|
] }),
|
|
7817
7818
|
A.length === 0 ? /* @__PURE__ */ t(v, { fontStyle: "italic", py: 24, sx: { textAlign: "center" }, children: o.no_activities }) : /* @__PURE__ */ t(iA, { children: e ? A.map((c, u) => /* @__PURE__ */ d(aA, { children: [
|
|
7818
7819
|
/* @__PURE__ */ t(
|
|
7819
|
-
|
|
7820
|
+
Ft,
|
|
7820
7821
|
{
|
|
7821
7822
|
activity: c,
|
|
7822
7823
|
isMini: e,
|
|
@@ -7829,14 +7830,14 @@ const ti = ({ transaction: A }) => {
|
|
|
7829
7830
|
/* @__PURE__ */ t(W, { children: /* @__PURE__ */ t(
|
|
7830
7831
|
iA,
|
|
7831
7832
|
{
|
|
7832
|
-
subheader: /* @__PURE__ */ t(
|
|
7833
|
+
subheader: /* @__PURE__ */ t(Ke, { sx: { bgcolor: "background.paper", ml: 8, pb: 4, pt: 12 }, children: /* @__PURE__ */ t(v, { bold: !0, variant: "XSmall", children: AA(
|
|
7833
7834
|
c.activities[0].occurredOnDate || c.activities[0].expectedDate,
|
|
7834
7835
|
U.DAY_OF_WEEK_MONTH_DAY
|
|
7835
7836
|
) }) }),
|
|
7836
7837
|
sx: { width: "100%" },
|
|
7837
7838
|
children: c.activities.map((u, l) => /* @__PURE__ */ d(aA, { children: [
|
|
7838
7839
|
/* @__PURE__ */ t(
|
|
7839
|
-
|
|
7840
|
+
Ft,
|
|
7840
7841
|
{
|
|
7841
7842
|
activity: u,
|
|
7842
7843
|
isMini: e,
|
|
@@ -7851,7 +7852,7 @@ const ti = ({ transaction: A }) => {
|
|
|
7851
7852
|
/* @__PURE__ */ t(G, { sx: { mx: 24 } })
|
|
7852
7853
|
] })) })
|
|
7853
7854
|
] });
|
|
7854
|
-
},
|
|
7855
|
+
}, ut = T(Qd), Fd = ({
|
|
7855
7856
|
title: A,
|
|
7856
7857
|
expected: e,
|
|
7857
7858
|
paid: n,
|
|
@@ -7882,7 +7883,7 @@ const ti = ({ transaction: A }) => {
|
|
|
7882
7883
|
] }),
|
|
7883
7884
|
i && /* @__PURE__ */ t(oA, { onClick: i, startIcon: /* @__PURE__ */ t(P, { name: "add" }), variant: "text", children: o.add_new })
|
|
7884
7885
|
] }),
|
|
7885
|
-
/* @__PURE__ */ t(
|
|
7886
|
+
/* @__PURE__ */ t(Kt, { data: c })
|
|
7886
7887
|
] });
|
|
7887
7888
|
}, Wr = T(Fd), jd = () => {
|
|
7888
7889
|
const { recurring: A } = D(), { isSmallTablet: e } = kA(), {
|
|
@@ -7893,7 +7894,7 @@ const ti = ({ transaction: A }) => {
|
|
|
7893
7894
|
selectedDayActivities: o,
|
|
7894
7895
|
setSelectedDay: s,
|
|
7895
7896
|
upcomingActivities: c
|
|
7896
|
-
} = MA(), [u, l] = g.useState(0), { onEvent: h } = J(), C = n.filter(gn), f = a.filter(gn), m = r.filter(gn), y = C.filter(
|
|
7897
|
+
} = MA(), [u, l] = g.useState(0), { onEvent: h } = J(), C = n.filter(gn), f = a.filter(gn), m = r.filter(gn), y = C.filter(Ot).reduce(ct, 0), E = f.filter(Ot).reduce(ct, 0), L = m.filter(Ot).reduce(ct, 0), b = C.filter(Ot).length, S = C.filter(hn).reduce(ct, 0), O = f.filter(hn).reduce(ct, 0), N = C.filter(hn).length, x = (_, k) => {
|
|
7897
7898
|
l(k);
|
|
7898
7899
|
}, B = (_) => {
|
|
7899
7900
|
h(F.RECURRING_ACTIVITY_CLICK_UPCOMING, {
|
|
@@ -7904,8 +7905,8 @@ const ti = ({ transaction: A }) => {
|
|
|
7904
7905
|
transaction_guid: _.transactionGuid
|
|
7905
7906
|
});
|
|
7906
7907
|
};
|
|
7907
|
-
return /* @__PURE__ */ d(
|
|
7908
|
-
/* @__PURE__ */ t(
|
|
7908
|
+
return /* @__PURE__ */ d(_e, { container: !0, pt: 16, px: 24, spacing: 24, children: [
|
|
7909
|
+
/* @__PURE__ */ t(_e, { md: !0, sm: 12, children: /* @__PURE__ */ d(w, { gap: 24, children: [
|
|
7909
7910
|
/* @__PURE__ */ t(
|
|
7910
7911
|
Wr,
|
|
7911
7912
|
{
|
|
@@ -7926,7 +7927,7 @@ const ti = ({ transaction: A }) => {
|
|
|
7926
7927
|
}
|
|
7927
7928
|
),
|
|
7928
7929
|
!e && /* @__PURE__ */ t(
|
|
7929
|
-
|
|
7930
|
+
ut,
|
|
7930
7931
|
{
|
|
7931
7932
|
activities: c,
|
|
7932
7933
|
onActivityClick: B,
|
|
@@ -7949,19 +7950,19 @@ const ti = ({ transaction: A }) => {
|
|
|
7949
7950
|
)
|
|
7950
7951
|
] }),
|
|
7951
7952
|
u === 0 && /* @__PURE__ */ t(
|
|
7952
|
-
|
|
7953
|
+
ut,
|
|
7953
7954
|
{
|
|
7954
7955
|
activities: c,
|
|
7955
7956
|
onActivityClick: B
|
|
7956
7957
|
}
|
|
7957
7958
|
),
|
|
7958
|
-
u === 1 && /* @__PURE__ */ t(
|
|
7959
|
+
u === 1 && /* @__PURE__ */ t(ut, { activities: f, onActivityClick: K })
|
|
7959
7960
|
] })
|
|
7960
7961
|
] }) }),
|
|
7961
|
-
!e && /* @__PURE__ */ t(
|
|
7962
|
+
!e && /* @__PURE__ */ t(_e, { sx: { minWidth: 450 }, xs: "auto", children: /* @__PURE__ */ d(w, { gap: 35, children: [
|
|
7962
7963
|
/* @__PURE__ */ t(mi, {}),
|
|
7963
7964
|
/* @__PURE__ */ t(
|
|
7964
|
-
|
|
7965
|
+
ut,
|
|
7965
7966
|
{
|
|
7966
7967
|
activities: o || f,
|
|
7967
7968
|
onActivityClick: K,
|
|
@@ -7980,13 +7981,13 @@ const ti = ({ transaction: A }) => {
|
|
|
7980
7981
|
o(n);
|
|
7981
7982
|
}, [n]), g.useEffect(() => {
|
|
7982
7983
|
a && s({
|
|
7983
|
-
dateRange: { start: ae($(), 90), end:
|
|
7984
|
+
dateRange: { start: ae($(), 90), end: Ne() },
|
|
7984
7985
|
accounts: i
|
|
7985
7986
|
});
|
|
7986
7987
|
}, [a, i]);
|
|
7987
7988
|
const [l, h] = g.useState(!1);
|
|
7988
7989
|
return /* @__PURE__ */ d(
|
|
7989
|
-
|
|
7990
|
+
Re,
|
|
7990
7991
|
{
|
|
7991
7992
|
accountOptions: n,
|
|
7992
7993
|
actions: [
|
|
@@ -8028,12 +8029,12 @@ const ti = ({ transaction: A }) => {
|
|
|
8028
8029
|
(u) => e.includes(u.accountGuid || "")
|
|
8029
8030
|
),
|
|
8030
8031
|
[e, i]
|
|
8031
|
-
), { availableWidth: s } =
|
|
8032
|
+
), { availableWidth: s } = St(), c = s < 750;
|
|
8032
8033
|
return /* @__PURE__ */ d(w, { flexDirection: c ? "column" : "row", width: "100%", children: [
|
|
8033
8034
|
/* @__PURE__ */ t(mi, {}),
|
|
8034
8035
|
!c && /* @__PURE__ */ t(G, { flexItem: !0, orientation: "vertical", sx: { my: 16, ml: 16 } }),
|
|
8035
8036
|
/* @__PURE__ */ t(
|
|
8036
|
-
|
|
8037
|
+
ut,
|
|
8037
8038
|
{
|
|
8038
8039
|
activities: r || o.slice(0, 4),
|
|
8039
8040
|
isMini: !0,
|
|
@@ -8050,7 +8051,7 @@ const ti = ({ transaction: A }) => {
|
|
|
8050
8051
|
const { recurring: n } = D(), { isInitialized: r, selectedAccountGuids: a } = mA(), { setFilter: i } = lA();
|
|
8051
8052
|
return g.useEffect(() => {
|
|
8052
8053
|
r && i({
|
|
8053
|
-
dateRange: { start: ae($(), 90), end:
|
|
8054
|
+
dateRange: { start: ae($(), 90), end: Ne() },
|
|
8054
8055
|
accounts: a
|
|
8055
8056
|
});
|
|
8056
8057
|
}, [r, a]), /* @__PURE__ */ t(
|
|
@@ -8109,7 +8110,7 @@ class Zd {
|
|
|
8109
8110
|
return this.upcomingActivities.filter((e) => e.activityType === vA.Income);
|
|
8110
8111
|
}
|
|
8111
8112
|
get nextIncomeActivity() {
|
|
8112
|
-
return this.upcomingIncome.find((e) =>
|
|
8113
|
+
return this.upcomingIncome.find((e) => mt(e.expectedDate, $()));
|
|
8113
8114
|
}
|
|
8114
8115
|
get selectedDayActivities() {
|
|
8115
8116
|
return this.selectedDay && this.activities.filter(
|
|
@@ -8268,7 +8269,7 @@ const $d = {
|
|
|
8268
8269
|
gridRow: 1,
|
|
8269
8270
|
gridColumn: 1,
|
|
8270
8271
|
zIndex: 2
|
|
8271
|
-
}, Au = ({ size: A = 20 }) => /* @__PURE__ */ t(
|
|
8272
|
+
}, Au = ({ size: A = 20 }) => /* @__PURE__ */ t(xe, { size: A, children: /* @__PURE__ */ t(qn, { color: "error", sx: { fontSize: A, ...$d } }) }), pi = (A) => A && (A.account_type === j.CREDIT_CARD || A.account_type === j.LOAN || A.account_type === j.MORTGAGE || A.account_type === j.LINE_OF_CREDIT || A.account_type === j.CHECKING_LINE_OF_CREDIT), eu = (A) => A.is_manual || !A.guid, tu = (A) => A.account_type === j.LINE_OF_CREDIT || A.account_type === j.CREDIT_CARD || A.account_type === j.CHECKING_LINE_OF_CREDIT, nu = (A) => A.account_type === j.SAVINGS || A.account_type === j.CHECKING || A.account_type === j.LINE_OF_CREDIT || A.account_type === j.CREDIT_CARD || A.account_type === j.LOAN || A.account_type === j.MORTGAGE, ru = (A) => A.account_type === j.LOAN || A.account_type === j.MORTGAGE, au = (A, e) => {
|
|
8272
8273
|
const n = [
|
|
8273
8274
|
{
|
|
8274
8275
|
event: "account_details_click_account_name",
|
|
@@ -8402,7 +8403,7 @@ const $d = {
|
|
|
8402
8403
|
a
|
|
8403
8404
|
);
|
|
8404
8405
|
let u;
|
|
8405
|
-
(A.connectionStatus ===
|
|
8406
|
+
(A.connectionStatus === qe.Error || A.connectionStatus === qe.RequiresMfa) && (u = /* @__PURE__ */ t(Au, { size: 16 }));
|
|
8406
8407
|
const l = /* @__PURE__ */ d(aA, { children: [
|
|
8407
8408
|
/* @__PURE__ */ t(bA, { children: /* @__PURE__ */ t(
|
|
8408
8409
|
Da,
|
|
@@ -8456,7 +8457,7 @@ const $d = {
|
|
|
8456
8457
|
children: /* @__PURE__ */ t(Yn, { remaining: A })
|
|
8457
8458
|
}
|
|
8458
8459
|
);
|
|
8459
|
-
var
|
|
8460
|
+
var yt = /* @__PURE__ */ ((A) => (A.EXPENSE = "expense", A.INCOME = "income", A))(yt || {});
|
|
8460
8461
|
const su = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
8461
8462
|
/* @__PURE__ */ d(W, { sx: { display: "flex", alignItems: "center", gap: 16, px: 24, py: 12 }, children: [
|
|
8462
8463
|
/* @__PURE__ */ d(w, { alignItems: "center", height: 32, width: 32, children: [
|
|
@@ -8478,7 +8479,7 @@ const su = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
|
8478
8479
|
const { cashflow: n } = D();
|
|
8479
8480
|
return /* @__PURE__ */ d(aA, { children: [
|
|
8480
8481
|
/* @__PURE__ */ d(
|
|
8481
|
-
|
|
8482
|
+
Ke,
|
|
8482
8483
|
{
|
|
8483
8484
|
sx: {
|
|
8484
8485
|
alignItems: "center",
|
|
@@ -8490,9 +8491,9 @@ const su = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
|
8490
8491
|
px: 24
|
|
8491
8492
|
},
|
|
8492
8493
|
children: [
|
|
8493
|
-
/* @__PURE__ */ t(v, { bold: !0, sx: { fontSize: 12 }, children: e ===
|
|
8494
|
+
/* @__PURE__ */ t(v, { bold: !0, sx: { fontSize: 12 }, children: e === yt.EXPENSE ? n.expenses : n.income }),
|
|
8494
8495
|
/* @__PURE__ */ d(v, { bold: !0, sx: { fontSize: 13 }, children: [
|
|
8495
|
-
e ===
|
|
8496
|
+
e === yt.EXPENSE ? "-" : "+",
|
|
8496
8497
|
Q(A, "0,0.00")
|
|
8497
8498
|
] })
|
|
8498
8499
|
]
|
|
@@ -8500,8 +8501,8 @@ const su = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
|
8500
8501
|
),
|
|
8501
8502
|
/* @__PURE__ */ t(G, {})
|
|
8502
8503
|
] });
|
|
8503
|
-
}, Vr = T(cu), Jr = (A, e) => (n) => n.accountGuid === A.guid && (Kn(n.expectedDate) ||
|
|
8504
|
-
const { cashflow: A } = D(), { upcomingExpenses: e, upcomingIncome: n } = MA(), { dateRange: r, selectedCashAccounts: a } =
|
|
8504
|
+
}, Vr = T(cu), Jr = (A, e) => (n) => n.accountGuid === A.guid && (Kn(n.expectedDate) || mt(n.expectedDate, e.start)) && fA(n.expectedDate, e.end), lu = () => {
|
|
8505
|
+
const { cashflow: A } = D(), { upcomingExpenses: e, upcomingIncome: n } = MA(), { dateRange: r, selectedCashAccounts: a } = at();
|
|
8505
8506
|
return /* @__PURE__ */ d(w, { children: [
|
|
8506
8507
|
/* @__PURE__ */ d(w, { flexDirection: "row", justifyContent: "space-between", children: [
|
|
8507
8508
|
/* @__PURE__ */ t(v, { bold: !0, sx: { fontSize: 15, mb: 12 }, children: A.accounts_breakdown }),
|
|
@@ -8547,7 +8548,7 @@ const su = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
|
8547
8548
|
o.length > 0 && /* @__PURE__ */ t(W, { children: /* @__PURE__ */ t(
|
|
8548
8549
|
iA,
|
|
8549
8550
|
{
|
|
8550
|
-
subheader: /* @__PURE__ */ t(Vr, { total: c, type:
|
|
8551
|
+
subheader: /* @__PURE__ */ t(Vr, { total: c, type: yt.INCOME }),
|
|
8551
8552
|
sx: { width: "100%" },
|
|
8552
8553
|
children: o.map((l) => /* @__PURE__ */ t(Yr, { activity: l }, l.sequenceGuid))
|
|
8553
8554
|
}
|
|
@@ -8555,7 +8556,7 @@ const su = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
|
8555
8556
|
s.length > 0 && /* @__PURE__ */ t(W, { children: /* @__PURE__ */ t(
|
|
8556
8557
|
iA,
|
|
8557
8558
|
{
|
|
8558
|
-
subheader: /* @__PURE__ */ t(Vr, { total: u, type:
|
|
8559
|
+
subheader: /* @__PURE__ */ t(Vr, { total: u, type: yt.EXPENSE }),
|
|
8559
8560
|
sx: { width: "100%" },
|
|
8560
8561
|
children: s.map((l) => /* @__PURE__ */ t(Yr, { activity: l }, l.scheduledPaymentGuid))
|
|
8561
8562
|
}
|
|
@@ -8573,7 +8574,7 @@ const su = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
|
8573
8574
|
}) })
|
|
8574
8575
|
] });
|
|
8575
8576
|
}, du = T(lu), uu = () => {
|
|
8576
|
-
const { availableWidth: A } =
|
|
8577
|
+
const { availableWidth: A } = St(), e = uA(), { cashflow: n } = D(), { upcomingExpenses: r, upcomingIncome: a } = MA(), { dateRange: i, selectedCashAccounts: o } = at(), s = [
|
|
8577
8578
|
{
|
|
8578
8579
|
field: "account",
|
|
8579
8580
|
flex: 1.5,
|
|
@@ -8653,7 +8654,7 @@ const su = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
|
8653
8654
|
/* @__PURE__ */ d(w, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
8654
8655
|
/* @__PURE__ */ t(v, { bold: !0, sx: { fontSize: 15 }, children: n.cash_inflow_and_outflow }),
|
|
8655
8656
|
/* @__PURE__ */ t(
|
|
8656
|
-
|
|
8657
|
+
Qt,
|
|
8657
8658
|
{
|
|
8658
8659
|
body: n.table_tooltip_body,
|
|
8659
8660
|
title: n.table_tooltip_title
|
|
@@ -8812,10 +8813,10 @@ const su = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
|
8812
8813
|
}
|
|
8813
8814
|
),
|
|
8814
8815
|
/* @__PURE__ */ t(I, { sx: { mb: 32 } }),
|
|
8815
|
-
/* @__PURE__ */ t(
|
|
8816
|
-
/* @__PURE__ */ t(
|
|
8816
|
+
/* @__PURE__ */ t(Gt, { index: 0, name: "cashflow", value: r, children: /* @__PURE__ */ t(I, { sx: { m: e ? 48 : 16 }, children: /* @__PURE__ */ t(hu, {}) }) }),
|
|
8817
|
+
/* @__PURE__ */ t(Gt, { index: 1, name: "cashflow", value: r, children: /* @__PURE__ */ t(I, { sx: { m: e ? 48 : 16 }, children: /* @__PURE__ */ t(du, {}) }) })
|
|
8817
8818
|
] });
|
|
8818
|
-
}, Cu = T(gu),
|
|
8819
|
+
}, Cu = T(gu), be = ({
|
|
8819
8820
|
amount: A,
|
|
8820
8821
|
isMobile: e = !1,
|
|
8821
8822
|
isTotal: n = !1,
|
|
@@ -8839,8 +8840,8 @@ const su = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
|
8839
8840
|
e && /* @__PURE__ */ t(HA, { amount: A, component: "h2", symbol: a, variant: "Small" })
|
|
8840
8841
|
]
|
|
8841
8842
|
}
|
|
8842
|
-
), Zr = (A, e) => (n) => n.accountGuid && A.includes(n.accountGuid) && (Kn(n.expectedDate) ||
|
|
8843
|
-
const [A, e] = g.useState(!1), { availableWidth: n } =
|
|
8843
|
+
), Zr = (A, e) => (n) => n.accountGuid && A.includes(n.accountGuid) && (Kn(n.expectedDate) || mt(n.expectedDate, e.start)) && fA(n.expectedDate, e.end), fu = () => {
|
|
8844
|
+
const [A, e] = g.useState(!1), { availableWidth: n } = St(), { cashflow: r } = D(), { upcomingExpenses: a, upcomingIncome: i } = MA(), { selectedAccountGuids: o } = mA(), { dateRange: s, selectedCashAccounts: c } = at(), { userProfile: u } = $t(), l = g.useMemo(
|
|
8844
8845
|
() => a.filter(Zr(o, s)),
|
|
8845
8846
|
[s, o, a]
|
|
8846
8847
|
), h = g.useMemo(
|
|
@@ -8853,7 +8854,7 @@ const su = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
|
8853
8854
|
return /* @__PURE__ */ d(w, { flexDirection: "row", gap: 24, justifyContent: "center", my: L ? 24 : 42, children: [
|
|
8854
8855
|
L ? /* @__PURE__ */ d(w, { border: "1px solid", borderColor: "border.light", borderRadius: 1, mx: 16, width: "100%", children: [
|
|
8855
8856
|
/* @__PURE__ */ t(
|
|
8856
|
-
|
|
8857
|
+
be,
|
|
8857
8858
|
{
|
|
8858
8859
|
amount: C,
|
|
8859
8860
|
isMobile: !0,
|
|
@@ -8862,7 +8863,7 @@ const su = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
|
8862
8863
|
),
|
|
8863
8864
|
/* @__PURE__ */ t(G, {}),
|
|
8864
8865
|
E ? /* @__PURE__ */ t(
|
|
8865
|
-
|
|
8866
|
+
be,
|
|
8866
8867
|
{
|
|
8867
8868
|
amount: m,
|
|
8868
8869
|
isMobile: !0,
|
|
@@ -8880,7 +8881,7 @@ const su = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
|
8880
8881
|
),
|
|
8881
8882
|
/* @__PURE__ */ t(G, {}),
|
|
8882
8883
|
/* @__PURE__ */ t(
|
|
8883
|
-
|
|
8884
|
+
be,
|
|
8884
8885
|
{
|
|
8885
8886
|
amount: f,
|
|
8886
8887
|
isMobile: !0,
|
|
@@ -8890,14 +8891,14 @@ const su = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
|
8890
8891
|
),
|
|
8891
8892
|
/* @__PURE__ */ t(G, {}),
|
|
8892
8893
|
/* @__PURE__ */ t(
|
|
8893
|
-
|
|
8894
|
+
be,
|
|
8894
8895
|
{
|
|
8895
8896
|
amount: y,
|
|
8896
8897
|
isMobile: !0,
|
|
8897
8898
|
isTotal: !0,
|
|
8898
8899
|
label: r.remaining_cash,
|
|
8899
8900
|
tooltip: /* @__PURE__ */ t(
|
|
8900
|
-
|
|
8901
|
+
Qt,
|
|
8901
8902
|
{
|
|
8902
8903
|
body: r.remaining_income_tooltip_body,
|
|
8903
8904
|
title: r.remaining_income_tooltip_title
|
|
@@ -8906,11 +8907,11 @@ const su = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
|
8906
8907
|
}
|
|
8907
8908
|
)
|
|
8908
8909
|
] }) : /* @__PURE__ */ d(aA, { children: [
|
|
8909
|
-
/* @__PURE__ */ t(
|
|
8910
|
+
/* @__PURE__ */ t(be, { amount: C, label: r.cash_and_bank }),
|
|
8910
8911
|
E ? /* @__PURE__ */ d(aA, { children: [
|
|
8911
8912
|
/* @__PURE__ */ t(v, { sx: { fontSize: 25, lineHeight: 1 }, children: "+" }),
|
|
8912
8913
|
/* @__PURE__ */ t(
|
|
8913
|
-
|
|
8914
|
+
be,
|
|
8914
8915
|
{
|
|
8915
8916
|
amount: m,
|
|
8916
8917
|
label: r.to_be_received
|
|
@@ -8926,15 +8927,15 @@ const su = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
|
8926
8927
|
}
|
|
8927
8928
|
),
|
|
8928
8929
|
/* @__PURE__ */ t(v, { sx: { fontSize: 25, lineHeight: 1 }, children: "-" }),
|
|
8929
|
-
/* @__PURE__ */ t(
|
|
8930
|
+
/* @__PURE__ */ t(be, { amount: f, label: r.to_be_paid_out }),
|
|
8930
8931
|
/* @__PURE__ */ t(v, { sx: { fontSize: 25, lineHeight: 1 }, children: "=" }),
|
|
8931
8932
|
/* @__PURE__ */ t(
|
|
8932
|
-
|
|
8933
|
+
be,
|
|
8933
8934
|
{
|
|
8934
8935
|
amount: y,
|
|
8935
8936
|
label: r.remaining_cash,
|
|
8936
8937
|
tooltip: /* @__PURE__ */ t(
|
|
8937
|
-
|
|
8938
|
+
Qt,
|
|
8938
8939
|
{
|
|
8939
8940
|
body: r.remaining_income_tooltip_body,
|
|
8940
8941
|
title: r.remaining_income_tooltip_title
|
|
@@ -8960,7 +8961,7 @@ const su = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
|
8960
8961
|
return /* @__PURE__ */ d(w, { children: [
|
|
8961
8962
|
/* @__PURE__ */ t(ge, { pb: 12, children: n.welcome_title }),
|
|
8962
8963
|
/* @__PURE__ */ t(
|
|
8963
|
-
|
|
8964
|
+
Wt,
|
|
8964
8965
|
{
|
|
8965
8966
|
color: r.palette.action.active,
|
|
8966
8967
|
pb: 8,
|
|
@@ -9040,7 +9041,7 @@ const su = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
|
9040
9041
|
transform: rotate(360deg);
|
|
9041
9042
|
}
|
|
9042
9043
|
`, Tu = () => {
|
|
9043
|
-
const { addCashflowEvent: A, addCashflowSequence: e, cashflowSequences: n } = MA(), { cashflow: r, common: a } = D(), { completeOnboarding: i } = jn(), { isDirty: o } =
|
|
9044
|
+
const { addCashflowEvent: A, addCashflowSequence: e, cashflowSequences: n } = MA(), { cashflow: r, common: a } = D(), { completeOnboarding: i } = jn(), { isDirty: o } = at(), { isMobile: s } = kA(), { setDisplayedDate: c } = mA(), { filter: u, setFilter: l, transactions: h } = lA(), C = uA(), [f, m] = le(!0), [y, E] = g.useState(q.EveryMonth), [L, b] = le(!1), [S, O] = g.useState(null), [N, x] = le(1), [B, K] = le([]), [_, k] = le(""), X = g.useMemo(
|
|
9044
9045
|
() => h.find((dA) => dA.guid === _),
|
|
9045
9046
|
[_]
|
|
9046
9047
|
), M = !!n.length, Y = async () => {
|
|
@@ -9048,16 +9049,16 @@ const su = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
|
9048
9049
|
// Beginning of the month, 90 days before today
|
|
9049
9050
|
pA(ae($(), 90)),
|
|
9050
9051
|
$()
|
|
9051
|
-
), l({ ...u, custom:
|
|
9052
|
+
), l({ ...u, custom: Et }), x(3);
|
|
9052
9053
|
}, rA = async () => {
|
|
9053
9054
|
if (!(B.length < 1)) {
|
|
9054
9055
|
b(!0);
|
|
9055
9056
|
for (let dA = 0; dA < B.length; dA++) {
|
|
9056
|
-
const PA = B[dA],
|
|
9057
|
+
const PA = B[dA], ze = ci(
|
|
9057
9058
|
PA,
|
|
9058
9059
|
PA.frequency,
|
|
9059
9060
|
PA.nextDate
|
|
9060
|
-
), me = await e(
|
|
9061
|
+
), me = await e(ze);
|
|
9061
9062
|
if (me) {
|
|
9062
9063
|
const je = li(me, PA);
|
|
9063
9064
|
await A(je);
|
|
@@ -9133,7 +9134,7 @@ const su = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
|
9133
9134
|
bgcolor: "background.paper",
|
|
9134
9135
|
onSearch: (dA) => l({
|
|
9135
9136
|
...u,
|
|
9136
|
-
custom: (PA) => dA ? hi(PA, dA) :
|
|
9137
|
+
custom: (PA) => dA ? hi(PA, dA) : Et(PA)
|
|
9137
9138
|
}),
|
|
9138
9139
|
onSelected: (dA) => {
|
|
9139
9140
|
k(dA), m(!1);
|
|
@@ -9213,7 +9214,7 @@ const su = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
|
9213
9214
|
setSelectedAccounts: a,
|
|
9214
9215
|
shouldDisableNextDate: i,
|
|
9215
9216
|
shouldDisablePrevDate: o
|
|
9216
|
-
} = mA(), { onEvent: s } = J(), { cashAccounts: c } = OA(), { setFilter: u } = lA(), { userProfile: l } = $t(), { dateRange: h, setSelectedCashAccounts: C } =
|
|
9217
|
+
} = mA(), { onEvent: s } = J(), { cashAccounts: c } = OA(), { setFilter: u } = lA(), { userProfile: l } = $t(), { dateRange: h, setSelectedCashAccounts: C } = at(), { cashflow: f } = D(), [m, y] = g.useState(!1);
|
|
9217
9218
|
return g.useEffect(() => {
|
|
9218
9219
|
a(c);
|
|
9219
9220
|
}, [c]), g.useEffect(() => {
|
|
@@ -9222,7 +9223,7 @@ const su = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
|
9222
9223
|
);
|
|
9223
9224
|
C(L), u({ accounts: L.map((b) => b.guid) });
|
|
9224
9225
|
}, [c, n]), l?.has_completed_cash_flow_onboarding ? /* @__PURE__ */ d(
|
|
9225
|
-
|
|
9226
|
+
Re,
|
|
9226
9227
|
{
|
|
9227
9228
|
accountOptions: c,
|
|
9228
9229
|
actions: [
|
|
@@ -9264,7 +9265,7 @@ const su = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
|
9264
9265
|
]
|
|
9265
9266
|
}
|
|
9266
9267
|
) : /* @__PURE__ */ t(
|
|
9267
|
-
|
|
9268
|
+
Re,
|
|
9268
9269
|
{
|
|
9269
9270
|
onBackClick: A,
|
|
9270
9271
|
sx: { height: "100%", overflow: "auto" },
|
|
@@ -9431,7 +9432,7 @@ const Nu = /^[ a-zA-ZÀ-ÿ0-9]+$/, Mu = 50, Aa = 65, Ru = ({
|
|
|
9431
9432
|
width: "100%",
|
|
9432
9433
|
children: [
|
|
9433
9434
|
/* @__PURE__ */ t(W, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(cA, { onClick: () => c(f.guid), children: [
|
|
9434
|
-
/* @__PURE__ */ t(bA, { children: /* @__PURE__ */ t(
|
|
9435
|
+
/* @__PURE__ */ t(bA, { children: /* @__PURE__ */ t(He, { categoryGuid: "", merchantGuid: f.guid }) }),
|
|
9435
9436
|
/* @__PURE__ */ t(sA, { primary: f.name })
|
|
9436
9437
|
] }) }),
|
|
9437
9438
|
/* @__PURE__ */ t(G, { sx: { ml: 24 } })
|
|
@@ -9574,7 +9575,7 @@ const Gu = {
|
|
|
9574
9575
|
return i && (o.backgroundColor = n.palette.primary.main, o.borderBottom = n.palette.border.light, o.color = n.palette.common.white), { currencyTextStyles: s, listItemStyles: o };
|
|
9575
9576
|
};
|
|
9576
9577
|
return /* @__PURE__ */ d(iA, { children: [
|
|
9577
|
-
/* @__PURE__ */ t(
|
|
9578
|
+
/* @__PURE__ */ t(Ke, { sx: { backgroundColor: "transparent", mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(v, { bold: !0, component: "h2", variant: "Body", children: Gu.monthly_totals }) }),
|
|
9578
9579
|
/* @__PURE__ */ t(G, {}),
|
|
9579
9580
|
A.map((a) => {
|
|
9580
9581
|
const { currencyTextStyles: i, listItemStyles: o } = r(a);
|
|
@@ -9681,7 +9682,7 @@ const ju = (A, e) => {
|
|
|
9681
9682
|
}
|
|
9682
9683
|
) }) : /* @__PURE__ */ t("div", { style: s.badge, children: /* @__PURE__ */ t(oe, { categoryGuid: i?.category_guid, size: 36 }) });
|
|
9683
9684
|
}, Wu = T(Uu), Yu = ({ notification: A, onClick: e }) => {
|
|
9684
|
-
const { updateNotification: n } = Ya(), r =
|
|
9685
|
+
const { updateNotification: n } = Ya(), r = et(), a = {
|
|
9685
9686
|
card: {
|
|
9686
9687
|
alignItems: "center",
|
|
9687
9688
|
borderRadius: 2,
|
|
@@ -9814,7 +9815,7 @@ const Cn = ({
|
|
|
9814
9815
|
] }) }),
|
|
9815
9816
|
/* @__PURE__ */ t(G, { sx: { ml: e ? 0 : 24 } })
|
|
9816
9817
|
] }), ce = () => {
|
|
9817
|
-
if (!g.useContext(
|
|
9818
|
+
if (!g.useContext(rt))
|
|
9818
9819
|
throw new Error("useCategoryUiStore() must be used within the GlobalDataContext");
|
|
9819
9820
|
return OA().uiStore;
|
|
9820
9821
|
}, $u = () => {
|
|
@@ -9834,7 +9835,7 @@ const Cn = ({
|
|
|
9834
9835
|
);
|
|
9835
9836
|
};
|
|
9836
9837
|
return /* @__PURE__ */ d(aA, { children: [
|
|
9837
|
-
/* @__PURE__ */ t(
|
|
9838
|
+
/* @__PURE__ */ t(Ke, { sx: { backgroundColor: "transparent", mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(v, { bold: !0, component: "h2", variant: "XSmall", children: h.actions }) }),
|
|
9838
9839
|
/* @__PURE__ */ t(
|
|
9839
9840
|
Cn,
|
|
9840
9841
|
{
|
|
@@ -10110,12 +10111,12 @@ const Cn = ({
|
|
|
10110
10111
|
secondaryMessage: o.title
|
|
10111
10112
|
};
|
|
10112
10113
|
return /* @__PURE__ */ d(aA, { children: [
|
|
10113
|
-
/* @__PURE__ */ t(
|
|
10114
|
+
/* @__PURE__ */ t(Ke, { sx: { mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(v, { bold: !0, component: "h2", variant: "XSmall", children: a.connection_status }) }),
|
|
10114
10115
|
/* @__PURE__ */ t(W, { sx: { backgroundColor: "background.paper" }, children: r.is_manual || !s.ctaCopy ? /* @__PURE__ */ d(w, { alignItems: "center", direction: "row", px: 24, py: 12, children: [
|
|
10115
|
-
/* @__PURE__ */ t(bA, { children: /* @__PURE__ */ t(
|
|
10116
|
+
/* @__PURE__ */ t(bA, { children: /* @__PURE__ */ t(xe, { backingSx: { backgroundColor: s.color, borderRadius: 1 }, size: 32, children: s.icon }) }),
|
|
10116
10117
|
/* @__PURE__ */ t(sA, { primary: s.mainMessage, secondary: s.secondaryMessage })
|
|
10117
10118
|
] }) : /* @__PURE__ */ d(cA, { onClick: () => e(!0), children: [
|
|
10118
|
-
/* @__PURE__ */ t(bA, { children: /* @__PURE__ */ t(
|
|
10119
|
+
/* @__PURE__ */ t(bA, { children: /* @__PURE__ */ t(xe, { backingSx: { backgroundColor: s.color, borderRadius: 1 }, size: 32, children: s.icon }) }),
|
|
10119
10120
|
/* @__PURE__ */ t(
|
|
10120
10121
|
sA,
|
|
10121
10122
|
{
|
|
@@ -10133,7 +10134,7 @@ const Cn = ({
|
|
|
10133
10134
|
!r.is_manual && r.institution_url && /* @__PURE__ */ d(aA, { children: [
|
|
10134
10135
|
/* @__PURE__ */ t(W, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ d(cA, { component: "a", href: r.institution_url, target: "_blank", children: [
|
|
10135
10136
|
/* @__PURE__ */ t(bA, { children: /* @__PURE__ */ t(
|
|
10136
|
-
|
|
10137
|
+
xe,
|
|
10137
10138
|
{
|
|
10138
10139
|
backingSx: {
|
|
10139
10140
|
backgroundColor: n === Cr.LIGHT ? "grey.300" : "grey.700",
|
|
@@ -10365,7 +10366,7 @@ const Cn = ({
|
|
|
10365
10366
|
accounts: [r.guid]
|
|
10366
10367
|
});
|
|
10367
10368
|
}, [r]), g.useEffect(() => n(F.ACCOUNT_DETAILS_VIEW_TRANSACTIONS), []), /* @__PURE__ */ d(aA, { children: [
|
|
10368
|
-
/* @__PURE__ */ t(
|
|
10369
|
+
/* @__PURE__ */ t(it, { onClick: e }),
|
|
10369
10370
|
s && /* @__PURE__ */ t(
|
|
10370
10371
|
hA,
|
|
10371
10372
|
{
|
|
@@ -10373,7 +10374,7 @@ const Cn = ({
|
|
|
10373
10374
|
isOpen: !!A,
|
|
10374
10375
|
onClose: () => e(""),
|
|
10375
10376
|
title: a.transaction_drawer_title,
|
|
10376
|
-
children: /* @__PURE__ */ t(
|
|
10377
|
+
children: /* @__PURE__ */ t(Lt, { transaction: s })
|
|
10377
10378
|
}
|
|
10378
10379
|
)
|
|
10379
10380
|
] });
|
|
@@ -10409,8 +10410,8 @@ const Cn = ({
|
|
|
10409
10410
|
]
|
|
10410
10411
|
}
|
|
10411
10412
|
),
|
|
10412
|
-
/* @__PURE__ */ t(
|
|
10413
|
-
/* @__PURE__ */ t(
|
|
10413
|
+
/* @__PURE__ */ t(Gt, { index: 0, name: "transaction-details", value: A, children: /* @__PURE__ */ t(h1, {}) }),
|
|
10414
|
+
/* @__PURE__ */ t(Gt, { index: 1, name: "account-details", value: A, children: /* @__PURE__ */ t(c1, {}) })
|
|
10414
10415
|
] });
|
|
10415
10416
|
}, C1 = T(g1), ir = (A) => A.top_level_category_guid === p.INCOME || A.category_guid === p.INCOME, wi = (A) => Lr.includes(A.top_level_category_guid) || Lr.includes(A.category_guid), f1 = (A) => A.top_level_category_guid === p.TRANSFER || A.category_guid === p.TRANSFER, Si = (A) => !ir(A) && !wi(A) && !f1(A), ta = (A) => [...new Set(A.map((n) => n.category_guid))].map((n) => A.filter((r) => r.category_guid === n).map((r) => ({
|
|
10416
10417
|
x: AA(new Date(r.year, r.month), U.MONTH_SHORT_YEAR),
|
|
@@ -10485,13 +10486,13 @@ const Cn = ({
|
|
|
10485
10486
|
},
|
|
10486
10487
|
children: [
|
|
10487
10488
|
/* @__PURE__ */ t(
|
|
10488
|
-
|
|
10489
|
+
tt,
|
|
10489
10490
|
{
|
|
10490
10491
|
sx: { pb: 0 },
|
|
10491
|
-
title: /* @__PURE__ */ t(
|
|
10492
|
+
title: /* @__PURE__ */ t(Yt, { sx: { pb: 4 }, children: AA(/* @__PURE__ */ new Date(), U.MONTH_LONG) })
|
|
10492
10493
|
}
|
|
10493
10494
|
),
|
|
10494
|
-
/* @__PURE__ */ t(
|
|
10495
|
+
/* @__PURE__ */ t(nt, { sx: { p: 0 }, children: /* @__PURE__ */ t(T1, {}) })
|
|
10495
10496
|
]
|
|
10496
10497
|
}
|
|
10497
10498
|
);
|
|
@@ -10516,7 +10517,7 @@ const Cn = ({
|
|
|
10516
10517
|
/* @__PURE__ */ t(v, { variant: "Small", children: c?.name })
|
|
10517
10518
|
] }),
|
|
10518
10519
|
/* @__PURE__ */ d(w, { gap: 8, mb: 24, mt: 4, children: [
|
|
10519
|
-
/* @__PURE__ */ t(
|
|
10520
|
+
/* @__PURE__ */ t(Wt, { children: e.name || e.feed_name }),
|
|
10520
10521
|
/* @__PURE__ */ d(w, { direction: "row", justifyContent: "space-between", children: [
|
|
10521
10522
|
/* @__PURE__ */ t(v, { bold: i, variant: "Body", children: r }),
|
|
10522
10523
|
/* @__PURE__ */ t(v, { bold: !0, variant: "Body", children: Q(a, "0,0.00") })
|
|
@@ -10551,7 +10552,7 @@ const Cn = ({
|
|
|
10551
10552
|
iA,
|
|
10552
10553
|
{
|
|
10553
10554
|
"aria-label": n.account_type_accounts[h[0].account_type],
|
|
10554
|
-
subheader: /* @__PURE__ */ t(
|
|
10555
|
+
subheader: /* @__PURE__ */ t(Ke, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ d(
|
|
10555
10556
|
hr,
|
|
10556
10557
|
{
|
|
10557
10558
|
component: "span",
|
|
@@ -10638,8 +10639,8 @@ const Cn = ({
|
|
|
10638
10639
|
},
|
|
10639
10640
|
title: n,
|
|
10640
10641
|
children: /* @__PURE__ */ d("div", { id: Hr, children: [
|
|
10641
|
-
l && /* @__PURE__ */ t(
|
|
10642
|
-
c && /* @__PURE__ */ t(
|
|
10642
|
+
l && /* @__PURE__ */ t(kt, { status: Oe.Error }),
|
|
10643
|
+
c && /* @__PURE__ */ t(kt, { status: Oe.Loading })
|
|
10643
10644
|
] })
|
|
10644
10645
|
}
|
|
10645
10646
|
);
|
|
@@ -10656,7 +10657,7 @@ const Cn = ({
|
|
|
10656
10657
|
r(!0), C(F.ACCOUNTS_CLICK_CONNECT);
|
|
10657
10658
|
};
|
|
10658
10659
|
return /* @__PURE__ */ t(
|
|
10659
|
-
|
|
10660
|
+
Re,
|
|
10660
10661
|
{
|
|
10661
10662
|
accountOptions: o,
|
|
10662
10663
|
actions: [
|
|
@@ -11269,9 +11270,9 @@ class G1 {
|
|
|
11269
11270
|
(i) => i.guid === r.member_guid
|
|
11270
11271
|
);
|
|
11271
11272
|
if (a > -1) {
|
|
11272
|
-
let i =
|
|
11273
|
+
let i = qe.Connected;
|
|
11273
11274
|
const o = this.members[a];
|
|
11274
|
-
za.includes(o.connection_status) ? i =
|
|
11275
|
+
za.includes(o.connection_status) ? i = qe.Error : Es.includes(o.connection_status) ? i = qe.Processing : Ha.includes(o.connection_status) && (i = qe.RequiresMfa), n.push({
|
|
11275
11276
|
...r,
|
|
11276
11277
|
memberName: o.name,
|
|
11277
11278
|
connectionStatus: i
|
|
@@ -11548,7 +11549,7 @@ const ra = 5, X1 = 100, aa = 25, Q1 = (A) => {
|
|
|
11548
11549
|
unavailableHeight: r = 0,
|
|
11549
11550
|
unavailableWidth: a = 24
|
|
11550
11551
|
}) => {
|
|
11551
|
-
const { detailedBudgets: i } = Ge(), { isInitialized: o } = mA(), { availableHeight: s, availableWidth: c } =
|
|
11552
|
+
const { detailedBudgets: i } = Ge(), { isInitialized: o } = mA(), { availableHeight: s, availableWidth: c } = St(), u = g.useMemo(
|
|
11552
11553
|
() => i.map(
|
|
11553
11554
|
(C) => ({
|
|
11554
11555
|
budget: { ...C },
|
|
@@ -11615,7 +11616,7 @@ const ra = 5, X1 = 100, aa = 25, Q1 = (A) => {
|
|
|
11615
11616
|
/* @__PURE__ */ t(P, { color: "secondary", name: "bubble_chart", sx: { fontSize: 32 } }),
|
|
11616
11617
|
/* @__PURE__ */ t(v, { bold: !0, color: "secondary", variant: "Small", children: sa.zero_state_no_sub_budgets }),
|
|
11617
11618
|
/* @__PURE__ */ t(v, { color: "secondary", variant: "XSmall", children: sa.zero_state_sub_budgets_description })
|
|
11618
|
-
] }),
|
|
11619
|
+
] }), Pt = {
|
|
11619
11620
|
transactions_tab: "Transactions",
|
|
11620
11621
|
subbudgets_tab: "Sub Budgets",
|
|
11621
11622
|
close_aria: "Close",
|
|
@@ -11633,11 +11634,11 @@ const ra = 5, X1 = 100, aa = 25, Q1 = (A) => {
|
|
|
11633
11634
|
a(h);
|
|
11634
11635
|
};
|
|
11635
11636
|
return /* @__PURE__ */ d(w, { gap: 24, children: [
|
|
11636
|
-
/* @__PURE__ */ t(_A, { sx: { mt: 24, mx: 24 }, children: /* @__PURE__ */ t(
|
|
11637
|
+
/* @__PURE__ */ t(_A, { sx: { mt: 24, mx: 24 }, children: /* @__PURE__ */ t(nt, { children: /* @__PURE__ */ d(w, { alignItems: "center", gap: 16, children: [
|
|
11637
11638
|
/* @__PURE__ */ t(oe, { categoryGuid: A.category_guid, size: 56 }),
|
|
11638
11639
|
/* @__PURE__ */ t(ge, { children: `${Q(A.transaction_total, "0,0")} / ${Q(A.amount, "0,0")}` }),
|
|
11639
11640
|
/* @__PURE__ */ t(v, { bold: !0, variant: "XSmall", children: A.category.name }),
|
|
11640
|
-
/* @__PURE__ */ t(
|
|
11641
|
+
/* @__PURE__ */ t(Kt, { data: s, height: 10 })
|
|
11641
11642
|
] }) }) }),
|
|
11642
11643
|
/* @__PURE__ */ d(w, { children: [
|
|
11643
11644
|
/* @__PURE__ */ d(
|
|
@@ -11648,12 +11649,12 @@ const ra = 5, X1 = 100, aa = 25, Q1 = (A) => {
|
|
|
11648
11649
|
value: r,
|
|
11649
11650
|
variant: "fullWidth",
|
|
11650
11651
|
children: [
|
|
11651
|
-
/* @__PURE__ */ t(UA, { label:
|
|
11652
|
-
/* @__PURE__ */ t(UA, { label:
|
|
11652
|
+
/* @__PURE__ */ t(UA, { label: Pt.transactions_tab }),
|
|
11653
|
+
/* @__PURE__ */ t(UA, { label: Pt.subbudgets_tab })
|
|
11653
11654
|
]
|
|
11654
11655
|
}
|
|
11655
11656
|
),
|
|
11656
|
-
r === 0 && /* @__PURE__ */ t(
|
|
11657
|
+
r === 0 && /* @__PURE__ */ t(it, { onClick: o }),
|
|
11657
11658
|
r === 1 && /* @__PURE__ */ t(g.Fragment, { children: A.subBudgets.length === 0 ? /* @__PURE__ */ t(th, {}) : /* @__PURE__ */ t(iA, { children: A.subBudgets.map((l) => /* @__PURE__ */ d(g.Fragment, { children: [
|
|
11658
11659
|
/* @__PURE__ */ t(eh, { budget: l }),
|
|
11659
11660
|
/* @__PURE__ */ t(G, {})
|
|
@@ -11661,11 +11662,11 @@ const ra = 5, X1 = 100, aa = 25, Q1 = (A) => {
|
|
|
11661
11662
|
/* @__PURE__ */ t(
|
|
11662
11663
|
hA,
|
|
11663
11664
|
{
|
|
11664
|
-
ariaLabelClose:
|
|
11665
|
+
ariaLabelClose: Pt.close_aria,
|
|
11665
11666
|
isOpen: !!c,
|
|
11666
11667
|
onClose: () => o(""),
|
|
11667
|
-
title:
|
|
11668
|
-
children: c && /* @__PURE__ */ t(
|
|
11668
|
+
title: Pt.transaction_drawer,
|
|
11669
|
+
children: c && /* @__PURE__ */ t(Lt, { transaction: c })
|
|
11669
11670
|
}
|
|
11670
11671
|
)
|
|
11671
11672
|
] })
|
|
@@ -11704,13 +11705,13 @@ const ra = 5, X1 = 100, aa = 25, Q1 = (A) => {
|
|
|
11704
11705
|
}, ih = T(({ onClick: A }) => {
|
|
11705
11706
|
const { detailedBudgets: e } = Ge();
|
|
11706
11707
|
return /* @__PURE__ */ d(_A, { children: [
|
|
11707
|
-
/* @__PURE__ */ t(
|
|
11708
|
-
/* @__PURE__ */ t(
|
|
11708
|
+
/* @__PURE__ */ t(tt, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ t(Yt, { children: ah.budget_categories_title }) }),
|
|
11709
|
+
/* @__PURE__ */ t(nt, { sx: { p: 0 }, children: /* @__PURE__ */ t(iA, { children: e.map((n) => /* @__PURE__ */ d(g.Fragment, { children: [
|
|
11709
11710
|
/* @__PURE__ */ t(rh, { budget: n, onClick: A }),
|
|
11710
11711
|
/* @__PURE__ */ t(G, {})
|
|
11711
11712
|
] }, n.guid)) }) })
|
|
11712
11713
|
] });
|
|
11713
|
-
}),
|
|
11714
|
+
}), lt = {
|
|
11714
11715
|
overview_title: "Overview",
|
|
11715
11716
|
spending_title: "Spending",
|
|
11716
11717
|
income_title: "Income",
|
|
@@ -11738,22 +11739,22 @@ const ra = 5, X1 = 100, aa = 25, Q1 = (A) => {
|
|
|
11738
11739
|
}
|
|
11739
11740
|
];
|
|
11740
11741
|
return /* @__PURE__ */ d(_A, { sx: { overflow: "visible" }, children: [
|
|
11741
|
-
/* @__PURE__ */ t(
|
|
11742
|
-
/* @__PURE__ */ t(
|
|
11742
|
+
/* @__PURE__ */ t(tt, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ t(Yt, { children: lt.overview_title }) }),
|
|
11743
|
+
/* @__PURE__ */ t(nt, { sx: { pt: 12, px: 24 }, children: /* @__PURE__ */ d(w, { gap: 24, children: [
|
|
11743
11744
|
/* @__PURE__ */ d(w, { gap: 8, children: [
|
|
11744
|
-
/* @__PURE__ */ t(v, { bold: !0, variant: "Small", children:
|
|
11745
|
-
/* @__PURE__ */ t(
|
|
11745
|
+
/* @__PURE__ */ t(v, { bold: !0, variant: "Small", children: lt.spending_title }),
|
|
11746
|
+
/* @__PURE__ */ t(Kt, { data: c, height: 16 }),
|
|
11746
11747
|
/* @__PURE__ */ t(v, { variant: "Small", children: z(
|
|
11747
|
-
|
|
11748
|
+
lt.spending_description,
|
|
11748
11749
|
Q(i, "0,0"),
|
|
11749
11750
|
Q(o, "0,0")
|
|
11750
11751
|
) })
|
|
11751
11752
|
] }),
|
|
11752
11753
|
/* @__PURE__ */ d(w, { gap: 8, children: [
|
|
11753
|
-
/* @__PURE__ */ t(v, { bold: !0, variant: "Body", children:
|
|
11754
|
-
/* @__PURE__ */ t(
|
|
11754
|
+
/* @__PURE__ */ t(v, { bold: !0, variant: "Body", children: lt.income_title }),
|
|
11755
|
+
/* @__PURE__ */ t(Kt, { data: C, height: 16 }),
|
|
11755
11756
|
/* @__PURE__ */ t(v, { variant: "Small", children: z(
|
|
11756
|
-
|
|
11757
|
+
lt.income_description,
|
|
11757
11758
|
Q(l, "0,0"),
|
|
11758
11759
|
Q(u, "0,0")
|
|
11759
11760
|
) })
|
|
@@ -11778,7 +11779,7 @@ const ra = 5, X1 = 100, aa = 25, Q1 = (A) => {
|
|
|
11778
11779
|
accounts: s,
|
|
11779
11780
|
dateRange: {
|
|
11780
11781
|
start: pA(/* @__PURE__ */ new Date()),
|
|
11781
|
-
end:
|
|
11782
|
+
end: Ne()
|
|
11782
11783
|
},
|
|
11783
11784
|
custom: (k) => k.category_guid === _.category_guid || k.top_level_category_guid === _.category_guid
|
|
11784
11785
|
});
|
|
@@ -11786,7 +11787,7 @@ const ra = 5, X1 = 100, aa = 25, Q1 = (A) => {
|
|
|
11786
11787
|
f({ start: _[0] || /* @__PURE__ */ new Date(), end: _[1] || /* @__PURE__ */ new Date() });
|
|
11787
11788
|
};
|
|
11788
11789
|
return i ? /* @__PURE__ */ d(
|
|
11789
|
-
|
|
11790
|
+
Re,
|
|
11790
11791
|
{
|
|
11791
11792
|
accountOptions: r,
|
|
11792
11793
|
actions: [],
|
|
@@ -11899,9 +11900,9 @@ const ch = () => {
|
|
|
11899
11900
|
() => s.filter((l) => l.location === On.RightSide),
|
|
11900
11901
|
[A]
|
|
11901
11902
|
);
|
|
11902
|
-
return /* @__PURE__ */ d(
|
|
11903
|
-
/* @__PURE__ */ t(
|
|
11904
|
-
/* @__PURE__ */ d(
|
|
11903
|
+
return /* @__PURE__ */ d(_e, { container: !0, spacing: r ? 0 : 24, sx: { overflow: "scroll" }, children: [
|
|
11904
|
+
/* @__PURE__ */ t(_e, { xs: 12, children: a.isInitialized && /* @__PURE__ */ t(lh, {}) }),
|
|
11905
|
+
/* @__PURE__ */ d(_e, { xl: 8, xs: 12, children: [
|
|
11905
11906
|
e && /* @__PURE__ */ d(w, { direction: "column", spacing: 24, children: [
|
|
11906
11907
|
/* @__PURE__ */ t(ve, { height: 100, variant: "rounded", width: "100%" }),
|
|
11907
11908
|
/* @__PURE__ */ t(ve, { height: 300, variant: "rounded", width: "100%" }),
|
|
@@ -11909,7 +11910,7 @@ const ch = () => {
|
|
|
11909
11910
|
] }),
|
|
11910
11911
|
!e && /* @__PURE__ */ t(w, { direction: "column", spacing: 24, children: n ? c.map((l) => /* @__PURE__ */ t(g.Fragment, { children: l.component }, l.index)) : s.map((l) => /* @__PURE__ */ t(g.Fragment, { children: l.component }, l.index)) })
|
|
11911
11912
|
] }),
|
|
11912
|
-
n && /* @__PURE__ */ t(
|
|
11913
|
+
n && /* @__PURE__ */ t(_e, { xl: 4, children: e ? /* @__PURE__ */ d(w, { direction: "column", spacing: 24, children: [
|
|
11913
11914
|
/* @__PURE__ */ t(ve, { height: 200, variant: "rounded", width: "100%" }),
|
|
11914
11915
|
/* @__PURE__ */ t(ve, { height: 100, variant: "rounded", width: "100%" }),
|
|
11915
11916
|
/* @__PURE__ */ t(ve, { height: 300, variant: "rounded", width: "100%" })
|
|
@@ -12293,6 +12294,42 @@ const ch = () => {
|
|
|
12293
12294
|
]
|
|
12294
12295
|
}
|
|
12295
12296
|
);
|
|
12297
|
+
}, J8 = ({
|
|
12298
|
+
color: A,
|
|
12299
|
+
fill: e,
|
|
12300
|
+
isDarkMode: n,
|
|
12301
|
+
name: r,
|
|
12302
|
+
size: a,
|
|
12303
|
+
sx: i
|
|
12304
|
+
}) => {
|
|
12305
|
+
const o = Se(n ? "dark" : "light");
|
|
12306
|
+
return /* @__PURE__ */ t(At, { theme: o, children: /* @__PURE__ */ t(P, { color: A, fill: e, name: r, size: a, sx: i }) });
|
|
12307
|
+
}, Z8 = ({
|
|
12308
|
+
boldText: A,
|
|
12309
|
+
iconColor: e,
|
|
12310
|
+
iconFill: n,
|
|
12311
|
+
iconSX: r,
|
|
12312
|
+
isDarkMode: a,
|
|
12313
|
+
name: i,
|
|
12314
|
+
size: o,
|
|
12315
|
+
subHeaderString: s,
|
|
12316
|
+
textSX: c
|
|
12317
|
+
}) => {
|
|
12318
|
+
const u = Se(a ? "dark" : "light");
|
|
12319
|
+
return /* @__PURE__ */ d(At, { theme: u, children: [
|
|
12320
|
+
i && /* @__PURE__ */ t(
|
|
12321
|
+
P,
|
|
12322
|
+
{
|
|
12323
|
+
className: "mx-insights-sub-header-icon",
|
|
12324
|
+
color: e,
|
|
12325
|
+
fill: n,
|
|
12326
|
+
name: i,
|
|
12327
|
+
size: o,
|
|
12328
|
+
sx: r
|
|
12329
|
+
}
|
|
12330
|
+
),
|
|
12331
|
+
/* @__PURE__ */ t(v, { bold: A, className: "mx-insights-sub-header-text", component: "text", sx: c, children: s })
|
|
12332
|
+
] });
|
|
12296
12333
|
}, sr = ({
|
|
12297
12334
|
bold: A,
|
|
12298
12335
|
className: e = "",
|
|
@@ -12397,7 +12434,7 @@ const ch = () => {
|
|
|
12397
12434
|
)
|
|
12398
12435
|
]
|
|
12399
12436
|
}
|
|
12400
|
-
),
|
|
12437
|
+
), $8 = ({
|
|
12401
12438
|
goalCompletionDate: A = "",
|
|
12402
12439
|
goalContribution: e = "",
|
|
12403
12440
|
isDarkMode: n,
|
|
@@ -12408,8 +12445,8 @@ const ch = () => {
|
|
|
12408
12445
|
title: s,
|
|
12409
12446
|
totalSavedText: c
|
|
12410
12447
|
}) => {
|
|
12411
|
-
const u =
|
|
12412
|
-
return /* @__PURE__ */ t(
|
|
12448
|
+
const u = Se(n ? "dark" : "light");
|
|
12449
|
+
return /* @__PURE__ */ t(At, { theme: u, children: /* @__PURE__ */ t(I, { className: "mx-insights-mefr-body", "data-ui-test": "mefr-body", sx: { mb: 16 }, children: /* @__PURE__ */ d(Eh, { title: s, children: [
|
|
12413
12450
|
/* @__PURE__ */ t(
|
|
12414
12451
|
vh,
|
|
12415
12452
|
{
|
|
@@ -12437,7 +12474,7 @@ const ch = () => {
|
|
|
12437
12474
|
}
|
|
12438
12475
|
)
|
|
12439
12476
|
] }) }) });
|
|
12440
|
-
},
|
|
12477
|
+
}, A7 = ({
|
|
12441
12478
|
accountGuid: A,
|
|
12442
12479
|
animation: e,
|
|
12443
12480
|
leftLowerText: n,
|
|
@@ -12449,8 +12486,8 @@ const ch = () => {
|
|
|
12449
12486
|
rightLowerText: c,
|
|
12450
12487
|
rightUpperText: u
|
|
12451
12488
|
}) => {
|
|
12452
|
-
const l =
|
|
12453
|
-
return /* @__PURE__ */ t(
|
|
12489
|
+
const l = Se(i ? "dark" : "light");
|
|
12490
|
+
return /* @__PURE__ */ t(At, { theme: l, children: /* @__PURE__ */ t(
|
|
12454
12491
|
Ti,
|
|
12455
12492
|
{
|
|
12456
12493
|
accountGuid: A,
|
|
@@ -12530,7 +12567,7 @@ const ch = () => {
|
|
|
12530
12567
|
/* @__PURE__ */ t(la, { accountGuid: A, accountName: e })
|
|
12531
12568
|
]
|
|
12532
12569
|
}
|
|
12533
|
-
),
|
|
12570
|
+
), e7 = ({
|
|
12534
12571
|
accountGuid: A,
|
|
12535
12572
|
animation: e,
|
|
12536
12573
|
destinationAccountGuid: n,
|
|
@@ -12546,8 +12583,8 @@ const ch = () => {
|
|
|
12546
12583
|
rightUpperText: C,
|
|
12547
12584
|
sourceAccountGuid: f
|
|
12548
12585
|
}) => {
|
|
12549
|
-
const m =
|
|
12550
|
-
return /* @__PURE__ */ t(g.Fragment, { children: /* @__PURE__ */ t(
|
|
12586
|
+
const m = Se(s ? "dark" : "light");
|
|
12587
|
+
return /* @__PURE__ */ t(g.Fragment, { children: /* @__PURE__ */ t(At, { theme: m, children: o ? /* @__PURE__ */ t(
|
|
12551
12588
|
Ti,
|
|
12552
12589
|
{
|
|
12553
12590
|
accountGuid: A,
|
|
@@ -12684,13 +12721,13 @@ const ch = () => {
|
|
|
12684
12721
|
] }) }),
|
|
12685
12722
|
/* @__PURE__ */ t(G, {})
|
|
12686
12723
|
] });
|
|
12687
|
-
},
|
|
12724
|
+
}, t7 = ({
|
|
12688
12725
|
content: A,
|
|
12689
12726
|
manageAccountsStore: e,
|
|
12690
12727
|
useDarkMode: n = !1
|
|
12691
12728
|
}) => {
|
|
12692
12729
|
const { groupedAccounts: r, toggleAccount: a } = e, [i, o] = g.useState(!1);
|
|
12693
|
-
return /* @__PURE__ */ d(Gn, { theme:
|
|
12730
|
+
return /* @__PURE__ */ d(Gn, { theme: Se(n ? "dark" : "light"), children: [
|
|
12694
12731
|
/* @__PURE__ */ t(
|
|
12695
12732
|
bi,
|
|
12696
12733
|
{
|
|
@@ -12967,7 +13004,7 @@ const Oi = ({
|
|
|
12967
13004
|
}
|
|
12968
13005
|
),
|
|
12969
13006
|
/* @__PURE__ */ t(
|
|
12970
|
-
|
|
13007
|
+
Mt,
|
|
12971
13008
|
{
|
|
12972
13009
|
checked: u[S.name] ? u[S.name] : !1,
|
|
12973
13010
|
edge: "end",
|
|
@@ -13224,11 +13261,11 @@ const Oi = ({
|
|
|
13224
13261
|
}
|
|
13225
13262
|
)
|
|
13226
13263
|
] });
|
|
13227
|
-
},
|
|
13264
|
+
}, n7 = ({
|
|
13228
13265
|
content: A,
|
|
13229
13266
|
disabledBeatTemplatesStore: e,
|
|
13230
13267
|
useDarkMode: n = !1
|
|
13231
|
-
}) => /* @__PURE__ */ t(Gn, { theme:
|
|
13268
|
+
}) => /* @__PURE__ */ t(Gn, { theme: Se(n ? "dark" : "light"), children: /* @__PURE__ */ t(bh, { children: /* @__PURE__ */ t(
|
|
13232
13269
|
Rh,
|
|
13233
13270
|
{
|
|
13234
13271
|
content: A,
|
|
@@ -13241,7 +13278,7 @@ const Oi = ({
|
|
|
13241
13278
|
onClose: r = () => {
|
|
13242
13279
|
},
|
|
13243
13280
|
useDarkMode: a = !1
|
|
13244
|
-
}) => /* @__PURE__ */ t(Gn, { theme:
|
|
13281
|
+
}) => /* @__PURE__ */ t(Gn, { theme: Se(a ? "dark" : "light"), children: /* @__PURE__ */ t(
|
|
13245
13282
|
hA,
|
|
13246
13283
|
{
|
|
13247
13284
|
ariaLabelClose: e.close,
|
|
@@ -13254,9 +13291,9 @@ const Oi = ({
|
|
|
13254
13291
|
A
|
|
13255
13292
|
] })
|
|
13256
13293
|
}
|
|
13257
|
-
) }),
|
|
13294
|
+
) }), r7 = T(Hh);
|
|
13258
13295
|
class zh {
|
|
13259
|
-
copyApi = new
|
|
13296
|
+
copyApi = new qt("/", "");
|
|
13260
13297
|
copyObject = {};
|
|
13261
13298
|
namespace = "experiences";
|
|
13262
13299
|
translationKey = "micro_insights";
|
|
@@ -13264,7 +13301,7 @@ class zh {
|
|
|
13264
13301
|
yA(this);
|
|
13265
13302
|
}
|
|
13266
13303
|
initialize = async (e, n) => {
|
|
13267
|
-
this.copyApi = new
|
|
13304
|
+
this.copyApi = new qt(e, n), await this.loadCopy();
|
|
13268
13305
|
};
|
|
13269
13306
|
loadCopy = async () => {
|
|
13270
13307
|
const e = await this.copyApi.getGlobalCopy(this.namespace, this.translationKey);
|
|
@@ -13359,28 +13396,28 @@ const lr = {
|
|
|
13359
13396
|
MICRO_BEAT_DISPLAYED_FIRST_TIME: "Micro Beat Displayed For First Time",
|
|
13360
13397
|
SWIPE_BACKWARD: "Swipe Backward",
|
|
13361
13398
|
SWIPE_FORWARD: "Swipe Forward"
|
|
13362
|
-
},
|
|
13399
|
+
}, Ie = {
|
|
13363
13400
|
MICRO_WIDGET_CAROUSEL: "Micro Widget Carousel",
|
|
13364
13401
|
MICRO_WIDGET_CAROUSEL_ZERO_STATE: "Micro Widget Carousel Zero State",
|
|
13365
13402
|
MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS: "Micro Widget Carousel No Relevant Insights"
|
|
13366
13403
|
}, ua = {
|
|
13367
|
-
[
|
|
13404
|
+
[Ie.MICRO_WIDGET_CAROUSEL]: {
|
|
13368
13405
|
label: Ee.MICRO_WIDGET,
|
|
13369
|
-
name:
|
|
13406
|
+
name: Ie.MICRO_WIDGET_CAROUSEL,
|
|
13370
13407
|
path: da.INSIGHTS_MICRO_WIDGET,
|
|
13371
13408
|
value: ee
|
|
13372
13409
|
},
|
|
13373
13410
|
// zero state
|
|
13374
|
-
[
|
|
13411
|
+
[Ie.MICRO_WIDGET_CAROUSEL_ZERO_STATE]: {
|
|
13375
13412
|
label: Ee.MICRO_WIDGET,
|
|
13376
|
-
name:
|
|
13413
|
+
name: Ie.MICRO_WIDGET_CAROUSEL_ZERO_STATE,
|
|
13377
13414
|
path: da.INSIGHTS_MICRO_WIDGET,
|
|
13378
13415
|
value: ee
|
|
13379
13416
|
},
|
|
13380
13417
|
// no relevant cards
|
|
13381
|
-
[
|
|
13418
|
+
[Ie.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS]: {
|
|
13382
13419
|
label: Ee.MICRO_WIDGET,
|
|
13383
|
-
name:
|
|
13420
|
+
name: Ie.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS,
|
|
13384
13421
|
path: "/micro-widget",
|
|
13385
13422
|
value: ee
|
|
13386
13423
|
}
|
|
@@ -13469,12 +13506,12 @@ class kh {
|
|
|
13469
13506
|
});
|
|
13470
13507
|
};
|
|
13471
13508
|
}
|
|
13472
|
-
const
|
|
13509
|
+
const Tt = g.createContext(null), Gh = ({
|
|
13473
13510
|
onEvent: A,
|
|
13474
13511
|
onPageview: e,
|
|
13475
13512
|
store: n,
|
|
13476
13513
|
children: r
|
|
13477
|
-
}) => /* @__PURE__ */ t(
|
|
13514
|
+
}) => /* @__PURE__ */ t(Tt.Provider, { value: { onEvent: A, onPageview: e, store: n, children: r }, children: r }), Xh = ({ beat: A }) => {
|
|
13478
13515
|
const [e, n] = le(p.UNCATEGORIZED);
|
|
13479
13516
|
return he(() => {
|
|
13480
13517
|
A.primary_category_guid ? n(A.primary_category_guid) : A.category_guids?.length && n(A.category_guids[0]);
|
|
@@ -13482,7 +13519,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
13482
13519
|
}, Qh = ({ beat: A }) => {
|
|
13483
13520
|
const e = DA(), n = Fh(e);
|
|
13484
13521
|
return /* @__PURE__ */ t(
|
|
13485
|
-
|
|
13522
|
+
He,
|
|
13486
13523
|
{
|
|
13487
13524
|
categoryGuid: A.primary_category_guid || A.category_guids && A.category_guids[0] || "",
|
|
13488
13525
|
className: n,
|
|
@@ -14331,24 +14368,24 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
14331
14368
|
XLARGE: 200,
|
|
14332
14369
|
XXLARGE: 248
|
|
14333
14370
|
}, Jh = 50, zi = 1, Fe = () => {
|
|
14334
|
-
const A = g.useContext(
|
|
14371
|
+
const A = g.useContext(Tt);
|
|
14335
14372
|
if (!A)
|
|
14336
14373
|
throw new Error("useCopyStore() must be used within the InsightsMicroWidgetDataProvider");
|
|
14337
14374
|
return A.store.copyStore;
|
|
14338
14375
|
}, Zh = () => {
|
|
14339
|
-
const A = g.useContext(
|
|
14376
|
+
const A = g.useContext(Tt);
|
|
14340
14377
|
if (!A?.store?.insightsMicroWidgetStore)
|
|
14341
14378
|
throw new Error(
|
|
14342
14379
|
"useInsightsMicroWidgetStore() must be used within the InsightsMicroWidgetDataProvider"
|
|
14343
14380
|
);
|
|
14344
14381
|
return A.store.insightsMicroWidgetStore;
|
|
14345
|
-
},
|
|
14346
|
-
const A = g.useContext(
|
|
14382
|
+
}, bt = () => {
|
|
14383
|
+
const A = g.useContext(Tt);
|
|
14347
14384
|
if (!A)
|
|
14348
14385
|
throw new Error("useEvent() must be used within the InsightsMicroWidgetDataProvider");
|
|
14349
14386
|
return { onEvent: A.onEvent };
|
|
14350
14387
|
}, Bi = () => {
|
|
14351
|
-
const A = g.useContext(
|
|
14388
|
+
const A = g.useContext(Tt);
|
|
14352
14389
|
if (!A)
|
|
14353
14390
|
throw new Error("usePageview() must be used within the InsightsMicroWidgetDataProvider");
|
|
14354
14391
|
return { onPageview: A.onPageview };
|
|
@@ -14369,7 +14406,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
14369
14406
|
}) => {
|
|
14370
14407
|
const f = window.app?.config.client_guid, { ref: m, inView: y } = kn({
|
|
14371
14408
|
threshold: zi
|
|
14372
|
-
}), { cardsCopy: E } = Fe(), { onEvent: L } =
|
|
14409
|
+
}), { cardsCopy: E } = Fe(), { onEvent: L } = bt(), { updateBeat: b } = Zh();
|
|
14373
14410
|
he(() => {
|
|
14374
14411
|
y && (n.has_been_displayed ? L(Pi(n.template)) : (b({
|
|
14375
14412
|
...n,
|
|
@@ -14503,7 +14540,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
14503
14540
|
variant: u,
|
|
14504
14541
|
widthOverrides: l
|
|
14505
14542
|
}) => {
|
|
14506
|
-
const h = rg(r, c, l), C = g.useRef(null), [f, m] = g.useState(0), [y, E] = g.useState(null), [L, b] = g.useState(null), { carouselCopy: S } = Fe(), { onEvent: O } =
|
|
14543
|
+
const h = rg(r, c, l), C = g.useRef(null), [f, m] = g.useState(0), [y, E] = g.useState(null), [L, b] = g.useState(null), { carouselCopy: S } = Fe(), { onEvent: O } = bt(), N = () => {
|
|
14507
14544
|
O(te.ON_CAROUSEL_FORWARD_CLICK), C.current && C.current.scrollTo({
|
|
14508
14545
|
left: (
|
|
14509
14546
|
// Adds the flex gap to the carousel ulRef's width
|
|
@@ -14656,7 +14693,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
14656
14693
|
n && /* @__PURE__ */ t("span", { "aria-label": n, style: { visibility: "hidden" } }),
|
|
14657
14694
|
/* @__PURE__ */ d(_A, { className: "mx-micro-card", sx: { backgroundColor: r }, variant: m, children: [
|
|
14658
14695
|
/* @__PURE__ */ t(
|
|
14659
|
-
|
|
14696
|
+
tt,
|
|
14660
14697
|
{
|
|
14661
14698
|
avatar: l && s,
|
|
14662
14699
|
subheader: /* @__PURE__ */ t("div", { className: "mx-micro-content-container", children: /* @__PURE__ */ t(
|
|
@@ -14739,7 +14776,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
14739
14776
|
posthog: n,
|
|
14740
14777
|
widthOverrides: r
|
|
14741
14778
|
}) => {
|
|
14742
|
-
const { carouselCopy: a } = Fe(), { onEvent: i } =
|
|
14779
|
+
const { carouselCopy: a } = Fe(), { onEvent: i } = bt(), o = window.app?.config.client_guid, s = () => {
|
|
14743
14780
|
i && (i(te.ON_VIEW_MORE_CLICKED), n?.capture && o && (e(), n.capture("micro_widget_clicked_insight", {
|
|
14744
14781
|
insight_template: "view_all",
|
|
14745
14782
|
$groups: { client: o }
|
|
@@ -14870,7 +14907,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
14870
14907
|
};
|
|
14871
14908
|
return (
|
|
14872
14909
|
// The Theme provider must wrap the component so that the styles don't break when imported into other applications.
|
|
14873
|
-
/* @__PURE__ */ d(
|
|
14910
|
+
/* @__PURE__ */ d(At, { theme: Se(L ? "dark" : "light"), children: [
|
|
14874
14911
|
/* @__PURE__ */ t(gs, {}),
|
|
14875
14912
|
/* @__PURE__ */ t(Gh, { onEvent: _, onPageview: k, store: pe, children: /* @__PURE__ */ d(
|
|
14876
14913
|
I,
|
|
@@ -14909,7 +14946,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
14909
14946
|
) })
|
|
14910
14947
|
] })
|
|
14911
14948
|
);
|
|
14912
|
-
},
|
|
14949
|
+
}, a7 = T(cg), lg = ({
|
|
14913
14950
|
ariaLabel: A,
|
|
14914
14951
|
carouselSize: e,
|
|
14915
14952
|
clientColorScheme: n,
|
|
@@ -14921,9 +14958,9 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
14921
14958
|
variant: c,
|
|
14922
14959
|
widthOverrides: u
|
|
14923
14960
|
}) => {
|
|
14924
|
-
const { cardsCopy: l } = Fe(), { onEvent: h } =
|
|
14961
|
+
const { cardsCopy: l } = Fe(), { onEvent: h } = bt(), { onPageview: C } = Bi(), f = window.app?.config.client_guid;
|
|
14925
14962
|
g.useEffect(() => {
|
|
14926
|
-
C(
|
|
14963
|
+
C(Ie.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS);
|
|
14927
14964
|
}, []);
|
|
14928
14965
|
const m = () => {
|
|
14929
14966
|
a && a(), h(te.ON_NO_RELEVANT_INSIGHTS_CLICKED), i?.capture && f && i.capture("micro_widget_clicked_insight", {
|
|
@@ -14975,7 +15012,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
14975
15012
|
}) => {
|
|
14976
15013
|
const u = DA(), l = window.app?.config.client_guid, { ref: h, inView: C } = kn({
|
|
14977
15014
|
threshold: zi
|
|
14978
|
-
}), { cardsCopy: f } = Fe(), { onEvent: m } =
|
|
15015
|
+
}), { cardsCopy: f } = Fe(), { onEvent: m } = bt();
|
|
14979
15016
|
he(() => {
|
|
14980
15017
|
C && m(Mi.ON_VIEW_MORE_VIEWED);
|
|
14981
15018
|
}, [C]), he(() => {
|
|
@@ -15025,7 +15062,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
15025
15062
|
}) => {
|
|
15026
15063
|
const { onPageview: c } = Bi(), { zeroStateCopy: u } = Fe();
|
|
15027
15064
|
return g.useEffect(() => {
|
|
15028
|
-
c(
|
|
15065
|
+
c(Ie.MICRO_WIDGET_CAROUSEL_ZERO_STATE);
|
|
15029
15066
|
}, []), /* @__PURE__ */ t(
|
|
15030
15067
|
sn,
|
|
15031
15068
|
{
|
|
@@ -15133,7 +15170,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
15133
15170
|
donutData: o,
|
|
15134
15171
|
totalAmount: i
|
|
15135
15172
|
};
|
|
15136
|
-
},
|
|
15173
|
+
}, jt = ({ amount: A, label: e }) => /* @__PURE__ */ d(w, { direction: "column", children: [
|
|
15137
15174
|
/* @__PURE__ */ t(v, { bold: !0, sx: { textTransform: "none" }, variant: "Body", children: e }),
|
|
15138
15175
|
/* @__PURE__ */ t(v, { variant: "XSmall", children: Q(A, "0,0") })
|
|
15139
15176
|
] }), mg = ({
|
|
@@ -15146,7 +15183,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
15146
15183
|
totalLabel: o,
|
|
15147
15184
|
variant: s = "mini"
|
|
15148
15185
|
}) => {
|
|
15149
|
-
const { spending: c } = D(), u =
|
|
15186
|
+
const { spending: c } = D(), u = et(), { isTablet: l } = kA(), h = g.useMemo(
|
|
15150
15187
|
() => a ? A.categoryData.find((y) => y.guid === a) : void 0,
|
|
15151
15188
|
[a]
|
|
15152
15189
|
), C = g.useMemo(() => A.donutData.length > 0 ? A.donutData : [{ id: "0", color: u.palette.border.light, value: 100 }], [A, u]), f = () => {
|
|
@@ -15189,7 +15226,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
15189
15226
|
}
|
|
15190
15227
|
)
|
|
15191
15228
|
] }) }) });
|
|
15192
|
-
},
|
|
15229
|
+
}, Ut = T(mg), ma = ({ data: A, onSelected: e, selectedId: n }) => /* @__PURE__ */ t(w, { gap: 8, height: "100%", justifyContent: "center", my: "auto", children: A.categoryData.map((r) => /* @__PURE__ */ d(
|
|
15193
15230
|
w,
|
|
15194
15231
|
{
|
|
15195
15232
|
alignItems: "center",
|
|
@@ -15242,7 +15279,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
15242
15279
|
UA,
|
|
15243
15280
|
{
|
|
15244
15281
|
label: /* @__PURE__ */ t(
|
|
15245
|
-
|
|
15282
|
+
jt,
|
|
15246
15283
|
{
|
|
15247
15284
|
amount: h.totalAmount,
|
|
15248
15285
|
label: e.spend_tab_title
|
|
@@ -15254,7 +15291,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
15254
15291
|
UA,
|
|
15255
15292
|
{
|
|
15256
15293
|
label: /* @__PURE__ */ t(
|
|
15257
|
-
|
|
15294
|
+
jt,
|
|
15258
15295
|
{
|
|
15259
15296
|
amount: C.totalAmount,
|
|
15260
15297
|
label: e.income_tab_title
|
|
@@ -15265,7 +15302,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
15265
15302
|
] }),
|
|
15266
15303
|
u === 0 && /* @__PURE__ */ t(I, { children: /* @__PURE__ */ d(w, { direction: "row", gap: 16, justifyContent: "center", p: 24, children: [
|
|
15267
15304
|
/* @__PURE__ */ t(
|
|
15268
|
-
|
|
15305
|
+
Ut,
|
|
15269
15306
|
{
|
|
15270
15307
|
data: h,
|
|
15271
15308
|
onSelected: m,
|
|
@@ -15284,7 +15321,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
15284
15321
|
] }) }),
|
|
15285
15322
|
u === 1 && /* @__PURE__ */ t(I, { children: /* @__PURE__ */ d(w, { direction: "row", gap: 16, justifyContent: "center", p: 24, children: [
|
|
15286
15323
|
/* @__PURE__ */ t(
|
|
15287
|
-
|
|
15324
|
+
Ut,
|
|
15288
15325
|
{
|
|
15289
15326
|
data: C,
|
|
15290
15327
|
isIncome: !0,
|
|
@@ -15309,7 +15346,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
15309
15346
|
children: /* @__PURE__ */ t(vg, {})
|
|
15310
15347
|
}
|
|
15311
15348
|
);
|
|
15312
|
-
},
|
|
15349
|
+
}, i7 = T(Eg), yg = ({
|
|
15313
15350
|
data: A,
|
|
15314
15351
|
onSelected: e,
|
|
15315
15352
|
selectedId: n = "",
|
|
@@ -15407,7 +15444,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
15407
15444
|
px: 8,
|
|
15408
15445
|
children: [
|
|
15409
15446
|
s && /* @__PURE__ */ t(
|
|
15410
|
-
|
|
15447
|
+
Ut,
|
|
15411
15448
|
{
|
|
15412
15449
|
data: {
|
|
15413
15450
|
categoryData: [],
|
|
@@ -15423,7 +15460,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
15423
15460
|
}
|
|
15424
15461
|
),
|
|
15425
15462
|
!s && /* @__PURE__ */ t(
|
|
15426
|
-
|
|
15463
|
+
Ut,
|
|
15427
15464
|
{
|
|
15428
15465
|
data: A,
|
|
15429
15466
|
onSelected: e,
|
|
@@ -15446,7 +15483,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
15446
15483
|
A.palette.chartMono.chartMono1,
|
|
15447
15484
|
A.palette.chartMono.chartMono6
|
|
15448
15485
|
], Tg = () => {
|
|
15449
|
-
const A =
|
|
15486
|
+
const A = et(), { categories: e, dateRangeCategoryTotals: n, loadDateRangeCategoryTotals: r } = NA(), { spending: a } = D(), { displayedDateRange: i, selectedAccounts: o, selectedAccountGuids: s } = mA(), { setFilter: c, sortedTransactions: u } = lA(), [l, h] = g.useState(""), [C, f] = g.useState(0), [m, y] = g.useState(""), [E, L] = g.useState(!1);
|
|
15450
15487
|
g.useEffect(() => {
|
|
15451
15488
|
r(
|
|
15452
15489
|
o,
|
|
@@ -15497,7 +15534,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
15497
15534
|
UA,
|
|
15498
15535
|
{
|
|
15499
15536
|
label: /* @__PURE__ */ t(
|
|
15500
|
-
|
|
15537
|
+
jt,
|
|
15501
15538
|
{
|
|
15502
15539
|
amount: b.totalAmount,
|
|
15503
15540
|
label: a.spend_tab_title
|
|
@@ -15509,7 +15546,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
15509
15546
|
UA,
|
|
15510
15547
|
{
|
|
15511
15548
|
label: /* @__PURE__ */ t(
|
|
15512
|
-
|
|
15549
|
+
jt,
|
|
15513
15550
|
{
|
|
15514
15551
|
amount: S.totalAmount,
|
|
15515
15552
|
label: a.income_tab_title
|
|
@@ -15545,7 +15582,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
15545
15582
|
isOpen: E,
|
|
15546
15583
|
onClose: () => L(!1),
|
|
15547
15584
|
title: a.transactions_drawer_title,
|
|
15548
|
-
children: /* @__PURE__ */ t(
|
|
15585
|
+
children: /* @__PURE__ */ t(it, { onClick: y })
|
|
15549
15586
|
}
|
|
15550
15587
|
),
|
|
15551
15588
|
/* @__PURE__ */ t(
|
|
@@ -15555,7 +15592,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
15555
15592
|
isOpen: !!O,
|
|
15556
15593
|
onClose: () => y(""),
|
|
15557
15594
|
title: a.transaction_details_drawer_title,
|
|
15558
|
-
children: O && /* @__PURE__ */ t(
|
|
15595
|
+
children: O && /* @__PURE__ */ t(Lt, { transaction: O })
|
|
15559
15596
|
}
|
|
15560
15597
|
)
|
|
15561
15598
|
] });
|
|
@@ -15570,7 +15607,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
15570
15607
|
i(h[0], h[1]);
|
|
15571
15608
|
};
|
|
15572
15609
|
return !a || !c ? /* @__PURE__ */ t(ie, {}) : /* @__PURE__ */ t(
|
|
15573
|
-
|
|
15610
|
+
Re,
|
|
15574
15611
|
{
|
|
15575
15612
|
accountOptions: n,
|
|
15576
15613
|
calendarActions: { onRangeChanged: l },
|
|
@@ -15581,11 +15618,11 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
15581
15618
|
children: /* @__PURE__ */ t(I, { height: "calc(100dvh - 150px)", width: "100%", children: /* @__PURE__ */ t(bg, {}) })
|
|
15582
15619
|
}
|
|
15583
15620
|
);
|
|
15584
|
-
},
|
|
15621
|
+
}, o7 = T(Ig), Dg = (A) => {
|
|
15585
15622
|
const e = A.row[A.field];
|
|
15586
15623
|
return /* @__PURE__ */ t(w, { alignItems: "flex-end", tabIndex: A.tabIndex, children: /* @__PURE__ */ t(HA, { amount: e, variant: "Small" }) });
|
|
15587
15624
|
}, Og = ({ categoryGuid: A }) => {
|
|
15588
|
-
const { categories: e } = D(), n =
|
|
15625
|
+
const { categories: e } = D(), n = De[A];
|
|
15589
15626
|
return /* @__PURE__ */ d(w, { alignItems: "center", direction: "row", justifyContent: "center", children: [
|
|
15590
15627
|
/* @__PURE__ */ t(
|
|
15591
15628
|
I,
|
|
@@ -15700,7 +15737,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
15700
15737
|
[c, l]
|
|
15701
15738
|
);
|
|
15702
15739
|
return !h || !E ? /* @__PURE__ */ t(ie, {}) : /* @__PURE__ */ t(
|
|
15703
|
-
|
|
15740
|
+
Re,
|
|
15704
15741
|
{
|
|
15705
15742
|
accountOptions: s,
|
|
15706
15743
|
calendarActions: {
|
|
@@ -15837,7 +15874,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
15837
15874
|
)
|
|
15838
15875
|
}
|
|
15839
15876
|
);
|
|
15840
|
-
},
|
|
15877
|
+
}, s7 = T(Ng), Mg = (A) => {
|
|
15841
15878
|
const e = [], n = A.filter(
|
|
15842
15879
|
(i) => i.top_level_category_guid !== p.INCOME && i.top_level_category_guid !== p.TRANSFER && i.total > 0
|
|
15843
15880
|
);
|
|
@@ -15880,7 +15917,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
15880
15917
|
children: /* @__PURE__ */ t(Hg, {})
|
|
15881
15918
|
}
|
|
15882
15919
|
);
|
|
15883
|
-
},
|
|
15920
|
+
}, c7 = T(zg);
|
|
15884
15921
|
export {
|
|
15885
15922
|
F as ANALYTICS_EVENTS,
|
|
15886
15923
|
na as AccountApi,
|
|
@@ -15902,7 +15939,7 @@ export {
|
|
|
15902
15939
|
b8 as BarChart,
|
|
15903
15940
|
$e as BeatApi,
|
|
15904
15941
|
$h as BeatCard,
|
|
15905
|
-
|
|
15942
|
+
Nt as BottomActions,
|
|
15906
15943
|
U8 as BubbleBudgetsMiniWidget,
|
|
15907
15944
|
W8 as BubbleBudgetsWidget,
|
|
15908
15945
|
Vs as Calendar,
|
|
@@ -15913,9 +15950,9 @@ export {
|
|
|
15913
15950
|
bu as CashflowOnboarding,
|
|
15914
15951
|
Ou as CashflowStore,
|
|
15915
15952
|
B8 as CashflowWidget,
|
|
15916
|
-
|
|
15953
|
+
_t as CategoryApi,
|
|
15917
15954
|
Je as CategoryColors,
|
|
15918
|
-
|
|
15955
|
+
De as CategoryGuidToName,
|
|
15919
15956
|
p as CategoryGuids,
|
|
15920
15957
|
_a as CategoryIcon,
|
|
15921
15958
|
Il as CategorySelector,
|
|
@@ -15924,16 +15961,16 @@ export {
|
|
|
15924
15961
|
Uh as ChartFilledIcon,
|
|
15925
15962
|
An as ConnectDrawer,
|
|
15926
15963
|
j8 as ConnectMiniWidget,
|
|
15927
|
-
|
|
15964
|
+
qe as ConnectionStatus,
|
|
15928
15965
|
RA as ConnectionStatusEnums,
|
|
15929
|
-
|
|
15966
|
+
Bt as CurrencyCodes,
|
|
15930
15967
|
Wn as CurrencyInput,
|
|
15931
15968
|
U as DATE_FORMATS_INTL,
|
|
15932
15969
|
qa as DEFAULT_DONUT_SIZE,
|
|
15933
15970
|
Ka as DEFAULT_STROKE_WIDTH,
|
|
15934
15971
|
Y8 as Dashboard,
|
|
15935
15972
|
On as DashboardLocation,
|
|
15936
|
-
|
|
15973
|
+
Xt as DataRow,
|
|
15937
15974
|
Mr as DateRangeSelector,
|
|
15938
15975
|
BA as Dialog,
|
|
15939
15976
|
ec as Donut,
|
|
@@ -15942,17 +15979,17 @@ export {
|
|
|
15942
15979
|
Kc as ExpenseStatus,
|
|
15943
15980
|
YA as Fetch,
|
|
15944
15981
|
XA as FieldType,
|
|
15945
|
-
|
|
15982
|
+
qt as GlobalCopyApi,
|
|
15946
15983
|
wc as GlobalCopyStore,
|
|
15947
|
-
|
|
15984
|
+
rt as GlobalDataContext,
|
|
15948
15985
|
I8 as GlobalDataProvider,
|
|
15949
15986
|
X8 as GlobalStore,
|
|
15950
15987
|
V8 as GoalsWidget,
|
|
15951
|
-
|
|
15988
|
+
n7 as HiddenInsightsDrawer,
|
|
15952
15989
|
Xn as INCOME_ACCOUNT_TYPES,
|
|
15953
|
-
|
|
15954
|
-
|
|
15955
|
-
|
|
15990
|
+
xe as IconBacking,
|
|
15991
|
+
Qt as InformationTooltip,
|
|
15992
|
+
a7 as InsightsMicroWidget,
|
|
15956
15993
|
Gh as InsightsMicroWidgetDataProvider,
|
|
15957
15994
|
Ts as IterationItemTypes,
|
|
15958
15995
|
L8 as LOADING_STATUS,
|
|
@@ -15960,16 +15997,16 @@ export {
|
|
|
15960
15997
|
yc as ListItemWrapper,
|
|
15961
15998
|
ie as Loader,
|
|
15962
15999
|
T8 as LocalizedCopyApi,
|
|
15963
|
-
|
|
16000
|
+
t7 as ManageAccountsDrawer,
|
|
15964
16001
|
Ci as ManageIncome,
|
|
15965
|
-
|
|
16002
|
+
Oe as MemberConnectionStatus,
|
|
15966
16003
|
q8 as MerchantLookup,
|
|
15967
16004
|
Hu as MerchantStore,
|
|
15968
16005
|
Ha as MfaStatuses,
|
|
15969
16006
|
ng as MicroBeatCarousel,
|
|
15970
16007
|
sn as MicroInsightCard,
|
|
15971
16008
|
Xe as MiniWidgetContainer,
|
|
15972
|
-
|
|
16009
|
+
$8 as MonthlyEmergencyFundReviewBody,
|
|
15973
16010
|
Vh as MonthlySpendComparisonIcon,
|
|
15974
16011
|
O8 as MultiSegmentDonut,
|
|
15975
16012
|
K8 as NetWorthList,
|
|
@@ -15986,6 +16023,12 @@ export {
|
|
|
15986
16023
|
Es as ProcessingStatuses,
|
|
15987
16024
|
Ra as PropertyType,
|
|
15988
16025
|
w8 as PropertyTypeName,
|
|
16026
|
+
vh as PulseGoalProgress,
|
|
16027
|
+
Eh as PulseGraidentBox,
|
|
16028
|
+
J8 as PulseIcon,
|
|
16029
|
+
ph as PulseProgressBar,
|
|
16030
|
+
Z8 as PulseSubHeader,
|
|
16031
|
+
sr as PulseTextComponent,
|
|
15989
16032
|
S8 as RECURRENCE_COPY,
|
|
15990
16033
|
q as RecurrenceTypes,
|
|
15991
16034
|
z8 as RecurringActivityMiniWidget,
|
|
@@ -15998,37 +16041,37 @@ export {
|
|
|
15998
16041
|
Gc as ScreenSize,
|
|
15999
16042
|
en as SearchBox,
|
|
16000
16043
|
zr as SelectionBox,
|
|
16001
|
-
|
|
16002
|
-
|
|
16044
|
+
A7 as SetUpDirectDepositBody,
|
|
16045
|
+
r7 as SettingsDrawer,
|
|
16003
16046
|
Ja as SingleSegmentDonut,
|
|
16004
16047
|
bs as Sizes,
|
|
16005
|
-
|
|
16006
|
-
|
|
16048
|
+
i7 as SpendingMiniWidget,
|
|
16049
|
+
o7 as SpendingWidget,
|
|
16007
16050
|
uc as StackedLineChart,
|
|
16008
|
-
|
|
16051
|
+
Kt as StatusBar,
|
|
16009
16052
|
y8 as StatusName,
|
|
16010
|
-
|
|
16011
|
-
|
|
16053
|
+
e7 as SwitchDirectDepositBody,
|
|
16054
|
+
ot as TOUCH_TARGET,
|
|
16012
16055
|
H as TRANSACTION_EVENTS,
|
|
16013
|
-
|
|
16014
|
-
|
|
16056
|
+
Gt as TabContentContainer,
|
|
16057
|
+
dt as TopActions,
|
|
16015
16058
|
qr as TransactionApi,
|
|
16016
|
-
|
|
16017
|
-
|
|
16059
|
+
Lt as TransactionDetails,
|
|
16060
|
+
it as TransactionList,
|
|
16018
16061
|
Jn as TransactionRow,
|
|
16019
16062
|
Vn as TransactionStatus,
|
|
16020
16063
|
Qc as TransactionStore,
|
|
16021
16064
|
cl as TransactionTable,
|
|
16022
16065
|
KA as TransactionType,
|
|
16023
16066
|
R8 as TransactionWidget,
|
|
16024
|
-
|
|
16025
|
-
|
|
16067
|
+
s7 as TrendsFullWidget,
|
|
16068
|
+
c7 as TrendsMiniWidget,
|
|
16026
16069
|
Dr as UserApi,
|
|
16027
16070
|
Zu as UserStore,
|
|
16028
16071
|
qc as UserVerification,
|
|
16029
16072
|
hg as ViewMoreMicroCard,
|
|
16030
16073
|
Or as WidgetApi,
|
|
16031
|
-
|
|
16074
|
+
Re as WidgetContainer,
|
|
16032
16075
|
ja as WidgetContainerContext,
|
|
16033
16076
|
Ua as WidgetContainerProvider,
|
|
16034
16077
|
Cg as ZeroStateCard,
|
|
@@ -16042,10 +16085,10 @@ export {
|
|
|
16042
16085
|
Os as formatPercentage,
|
|
16043
16086
|
vi as getAccountBalanceDetails,
|
|
16044
16087
|
au as getAccountDetailFields,
|
|
16045
|
-
|
|
16088
|
+
zt as getCategory,
|
|
16046
16089
|
fs as getCategoryTotalsByParent,
|
|
16047
16090
|
Is as getCurrencyCodes,
|
|
16048
|
-
|
|
16091
|
+
Me as getLocale,
|
|
16049
16092
|
k8 as getNotificationDetailRoute,
|
|
16050
16093
|
Sn as isValidNumber,
|
|
16051
16094
|
OA as useAccountStore,
|
|
@@ -16069,6 +16112,6 @@ export {
|
|
|
16069
16112
|
lA as useTransactionStore,
|
|
16070
16113
|
VA as useTransactionsUiStore,
|
|
16071
16114
|
$t as useUserStore,
|
|
16072
|
-
|
|
16115
|
+
St as useWidgetContainerProvider
|
|
16073
16116
|
};
|
|
16074
16117
|
//# sourceMappingURL=index.es.js.map
|