@mx-cartographer/experiences 3.12.1 → 3.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/index.es.js +478 -436
- 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) => {
|
|
@@ -6699,7 +6699,7 @@ const ti = ({ transaction: A }) => {
|
|
|
6699
6699
|
JA && !JA.has_been_viewed && b({ ...JA, has_been_viewed: !0 }), rA("");
|
|
6700
6700
|
},
|
|
6701
6701
|
title: O.details_title,
|
|
6702
|
-
children: JA && /* @__PURE__ */ t(
|
|
6702
|
+
children: JA && /* @__PURE__ */ t(Lt, { transaction: JA })
|
|
6703
6703
|
}
|
|
6704
6704
|
),
|
|
6705
6705
|
JA && Y === "category" && /* @__PURE__ */ t(
|
|
@@ -6716,7 +6716,7 @@ const ti = ({ transaction: A }) => {
|
|
|
6716
6716
|
{
|
|
6717
6717
|
ariaLabelClose: S.close_aria,
|
|
6718
6718
|
isOpen: Y === "addTransaction",
|
|
6719
|
-
isPrimaryDisabled: !
|
|
6719
|
+
isPrimaryDisabled: !Te,
|
|
6720
6720
|
onClose: () => rA(""),
|
|
6721
6721
|
onPrimaryAction: Gi,
|
|
6722
6722
|
title: O.add_transaction_title,
|
|
@@ -6729,7 +6729,7 @@ const ti = ({ transaction: A }) => {
|
|
|
6729
6729
|
copy: { title: O.add_manual_account },
|
|
6730
6730
|
isOpen: PA,
|
|
6731
6731
|
onClose: () => {
|
|
6732
|
-
|
|
6732
|
+
ze(!1);
|
|
6733
6733
|
},
|
|
6734
6734
|
onPrimaryAction: Xi
|
|
6735
6735
|
}
|
|
@@ -6753,7 +6753,7 @@ const ti = ({ transaction: A }) => {
|
|
|
6753
6753
|
repeat_month: null,
|
|
6754
6754
|
repeat_weekday: null,
|
|
6755
6755
|
start_date: gA(A.expectedDate)
|
|
6756
|
-
}, r = `${
|
|
6756
|
+
}, r = `${ht(A.expectedDate)}`, a = `${We(A.expectedDate)}`, i = `${pt(A.expectedDate)}`;
|
|
6757
6757
|
switch (A.recurrenceType) {
|
|
6758
6758
|
case q.EveryWeek:
|
|
6759
6759
|
n.repeat_interval = "1", n.repeat_weekday = i;
|
|
@@ -6805,7 +6805,7 @@ const ti = ({ transaction: A }) => {
|
|
|
6805
6805
|
}, f = l.find((m) => m.id === A.recurrenceType);
|
|
6806
6806
|
return /* @__PURE__ */ d(aA, { children: [
|
|
6807
6807
|
/* @__PURE__ */ t(
|
|
6808
|
-
|
|
6808
|
+
Xt,
|
|
6809
6809
|
{
|
|
6810
6810
|
iconName: "sync",
|
|
6811
6811
|
label: e.activity_schedule,
|
|
@@ -6863,7 +6863,7 @@ const ti = ({ transaction: A }) => {
|
|
|
6863
6863
|
};
|
|
6864
6864
|
return /* @__PURE__ */ d(aA, { children: [
|
|
6865
6865
|
/* @__PURE__ */ t(
|
|
6866
|
-
|
|
6866
|
+
Xt,
|
|
6867
6867
|
{
|
|
6868
6868
|
iconName: "calendar_month",
|
|
6869
6869
|
label: e.activity_payment_date,
|
|
@@ -6925,7 +6925,7 @@ const ti = ({ transaction: A }) => {
|
|
|
6925
6925
|
return /* @__PURE__ */ d(w, { bgcolor: "background.default", direction: "column", height: "100%", children: [
|
|
6926
6926
|
/* @__PURE__ */ d(w, { direction: "column", gap: 12, m: 24, children: [
|
|
6927
6927
|
/* @__PURE__ */ t(
|
|
6928
|
-
|
|
6928
|
+
He,
|
|
6929
6929
|
{
|
|
6930
6930
|
categoryGuid: A.categoryGuid || "",
|
|
6931
6931
|
merchantGuid: A.merchantGuid || "",
|
|
@@ -6941,7 +6941,7 @@ const ti = ({ transaction: A }) => {
|
|
|
6941
6941
|
/* @__PURE__ */ d(iA, { sx: { bgcolor: "background.paper" }, children: [
|
|
6942
6942
|
A.institution && /* @__PURE__ */ d(aA, { children: [
|
|
6943
6943
|
/* @__PURE__ */ t(
|
|
6944
|
-
|
|
6944
|
+
Xt,
|
|
6945
6945
|
{
|
|
6946
6946
|
iconName: "checkbook",
|
|
6947
6947
|
label: n.account,
|
|
@@ -6952,7 +6952,7 @@ const ti = ({ transaction: A }) => {
|
|
|
6952
6952
|
] }),
|
|
6953
6953
|
E && /* @__PURE__ */ d(aA, { children: [
|
|
6954
6954
|
/* @__PURE__ */ t(
|
|
6955
|
-
|
|
6955
|
+
Xt,
|
|
6956
6956
|
{
|
|
6957
6957
|
iconName: "monetization_on",
|
|
6958
6958
|
label: n.category,
|
|
@@ -6978,7 +6978,7 @@ const ti = ({ transaction: A }) => {
|
|
|
6978
6978
|
}
|
|
6979
6979
|
),
|
|
6980
6980
|
/* @__PURE__ */ t(v, { bold: !0, sx: { ml: 24, mt: 16 }, variant: "Body", children: n.paid_transactions }),
|
|
6981
|
-
/* @__PURE__ */ t(
|
|
6981
|
+
/* @__PURE__ */ t(it, { height: "30dvh", onClick: y }),
|
|
6982
6982
|
/* @__PURE__ */ t(
|
|
6983
6983
|
hA,
|
|
6984
6984
|
{
|
|
@@ -6986,7 +6986,7 @@ const ti = ({ transaction: A }) => {
|
|
|
6986
6986
|
isOpen: !!m,
|
|
6987
6987
|
onClose: () => y(""),
|
|
6988
6988
|
title: n.transaction_details_drawer_title,
|
|
6989
|
-
children: b && /* @__PURE__ */ t(
|
|
6989
|
+
children: b && /* @__PURE__ */ t(Lt, { transaction: b })
|
|
6990
6990
|
}
|
|
6991
6991
|
),
|
|
6992
6992
|
/* @__PURE__ */ t(
|
|
@@ -7007,7 +7007,7 @@ const ti = ({ transaction: A }) => {
|
|
|
7007
7007
|
gridRow: 1,
|
|
7008
7008
|
gridColumn: 1,
|
|
7009
7009
|
zIndex: 2
|
|
7010
|
-
}, an = (A) => A ? { margin: "0 0 -6px -4px" } : void 0, tr = ({ isOffset: A = !1, size: e = 16 }) => /* @__PURE__ */ t(
|
|
7010
|
+
}, 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
7011
|
let r = e && Yo(e) ? z(A.monthly_ordinal, FA(e, "do")) : A.monthly;
|
|
7012
7012
|
switch (n) {
|
|
7013
7013
|
case q.EveryQuarter:
|
|
@@ -7079,7 +7079,7 @@ const ti = ({ transaction: A }) => {
|
|
|
7079
7079
|
o(A.sequenceGuid || A.scheduledPaymentGuid || ""), n(A);
|
|
7080
7080
|
}, children: [
|
|
7081
7081
|
/* @__PURE__ */ t(bA, { children: /* @__PURE__ */ t(
|
|
7082
|
-
|
|
7082
|
+
He,
|
|
7083
7083
|
{
|
|
7084
7084
|
categoryGuid: A.categoryGuid || "",
|
|
7085
7085
|
merchantGuid: A.merchantGuid || ""
|
|
@@ -7137,7 +7137,7 @@ const ti = ({ transaction: A }) => {
|
|
|
7137
7137
|
}
|
|
7138
7138
|
)
|
|
7139
7139
|
] });
|
|
7140
|
-
},
|
|
7140
|
+
}, Ft = T(Ld), ci = (A, e, n) => {
|
|
7141
7141
|
const r = {
|
|
7142
7142
|
account_guid: A.account_guid,
|
|
7143
7143
|
amount: A.amount,
|
|
@@ -7155,19 +7155,19 @@ const ti = ({ transaction: A }) => {
|
|
|
7155
7155
|
};
|
|
7156
7156
|
switch (e) {
|
|
7157
7157
|
case q.EveryWeek:
|
|
7158
|
-
r.repeat_interval = "1", r.repeat_weekday = `${
|
|
7158
|
+
r.repeat_interval = "1", r.repeat_weekday = `${pt(n)}`;
|
|
7159
7159
|
break;
|
|
7160
7160
|
case q.EveryOtherWeek:
|
|
7161
|
-
r.repeat_interval = "2", r.repeat_weekday = `${
|
|
7161
|
+
r.repeat_interval = "2", r.repeat_weekday = `${pt(n)}`;
|
|
7162
7162
|
break;
|
|
7163
7163
|
case q.EveryMonth:
|
|
7164
|
-
r.repeat_day = `${
|
|
7164
|
+
r.repeat_day = `${ht(n)}`;
|
|
7165
7165
|
break;
|
|
7166
7166
|
case q.EveryQuarter:
|
|
7167
|
-
r.repeat_interval = "3", r.repeat_day = `${
|
|
7167
|
+
r.repeat_interval = "3", r.repeat_day = `${ht(n)}`;
|
|
7168
7168
|
break;
|
|
7169
7169
|
case q.EveryYear:
|
|
7170
|
-
r.repeat_day = `${
|
|
7170
|
+
r.repeat_day = `${ht(n)}`, r.repeat_month = `${We(n)}`;
|
|
7171
7171
|
break;
|
|
7172
7172
|
}
|
|
7173
7173
|
return r;
|
|
@@ -7194,14 +7194,14 @@ const ti = ({ transaction: A }) => {
|
|
|
7194
7194
|
switch (e) {
|
|
7195
7195
|
case q.EveryWeek:
|
|
7196
7196
|
case q.EveryOtherWeek:
|
|
7197
|
-
r.recurrence_day =
|
|
7197
|
+
r.recurrence_day = pt(n);
|
|
7198
7198
|
break;
|
|
7199
7199
|
case q.EveryMonth:
|
|
7200
7200
|
case q.EveryOtherMonth:
|
|
7201
7201
|
case q.EveryQuarter:
|
|
7202
7202
|
case q.EveryOtherQuarter:
|
|
7203
7203
|
case q.EveryYear:
|
|
7204
|
-
r.recurrence_day =
|
|
7204
|
+
r.recurrence_day = ht(n);
|
|
7205
7205
|
break;
|
|
7206
7206
|
}
|
|
7207
7207
|
return r;
|
|
@@ -7226,7 +7226,7 @@ const ti = ({ transaction: A }) => {
|
|
|
7226
7226
|
searchValue: i
|
|
7227
7227
|
}
|
|
7228
7228
|
),
|
|
7229
|
-
/* @__PURE__ */ t(
|
|
7229
|
+
/* @__PURE__ */ t(it, { bgcolor: A, height: "auto", onClick: r, showLoader: !1 })
|
|
7230
7230
|
] });
|
|
7231
7231
|
}, di = T(bd), Id = ({
|
|
7232
7232
|
bgcolor: A = "background.default",
|
|
@@ -7311,7 +7311,7 @@ const ti = ({ transaction: A }) => {
|
|
|
7311
7311
|
}
|
|
7312
7312
|
) })
|
|
7313
7313
|
] });
|
|
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,
|
|
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, 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
7315
|
isIncome: A = !1,
|
|
7316
7316
|
label: e,
|
|
7317
7317
|
onAddActivity: n = () => null
|
|
@@ -7320,7 +7320,7 @@ const ti = ({ transaction: A }) => {
|
|
|
7320
7320
|
() => u.find((x) => x.guid === C),
|
|
7321
7321
|
[C]
|
|
7322
7322
|
), S = () => {
|
|
7323
|
-
h(!0), c(A ? { ...s, custom:
|
|
7323
|
+
h(!0), c(A ? { ...s, custom: Et } : { ...s, custom: bn });
|
|
7324
7324
|
}, O = async () => {
|
|
7325
7325
|
if (n(), !b || !E) {
|
|
7326
7326
|
N();
|
|
@@ -7363,7 +7363,7 @@ const ti = ({ transaction: A }) => {
|
|
|
7363
7363
|
onSearch: (x) => {
|
|
7364
7364
|
c({
|
|
7365
7365
|
...s,
|
|
7366
|
-
custom: (B) => A ? x ? hi(B, x) :
|
|
7366
|
+
custom: (B) => A ? x ? hi(B, x) : Et(B) : x ? Dd(B, x) : bn(B)
|
|
7367
7367
|
});
|
|
7368
7368
|
},
|
|
7369
7369
|
onSelected: (x) => f(x)
|
|
@@ -7419,7 +7419,7 @@ const ti = ({ transaction: A }) => {
|
|
|
7419
7419
|
};
|
|
7420
7420
|
return /* @__PURE__ */ d(iA, { sx: { bgcolor: "background.paper" }, children: [
|
|
7421
7421
|
i.map((c, u) => /* @__PURE__ */ d(g.Fragment, { children: [
|
|
7422
|
-
/* @__PURE__ */ t(
|
|
7422
|
+
/* @__PURE__ */ t(Ft, { activity: c, onActivityClick: o, showOrdinal: !0 }),
|
|
7423
7423
|
/* @__PURE__ */ t(G, { variant: u < i.length - 1 ? "inset" : "fullWidth" })
|
|
7424
7424
|
] }, c.scheduledPaymentGuid)),
|
|
7425
7425
|
/* @__PURE__ */ t(gi, { label: A.add_expense, onAddActivity: s })
|
|
@@ -7439,8 +7439,8 @@ const ti = ({ transaction: A }) => {
|
|
|
7439
7439
|
activityType: vA.Income,
|
|
7440
7440
|
amount: l.amount,
|
|
7441
7441
|
categoryGuid: l.category_guid,
|
|
7442
|
-
expectedDate:
|
|
7443
|
-
occurredOnDate: l.occurred_on ?
|
|
7442
|
+
expectedDate: Ct(l.expected_date),
|
|
7443
|
+
occurredOnDate: l.occurred_on ? Ct(l.occurred_on) : void 0,
|
|
7444
7444
|
name: l.name,
|
|
7445
7445
|
institution: f ? In(f) : void 0,
|
|
7446
7446
|
institutionGuid: f?.institution_guid,
|
|
@@ -7470,7 +7470,7 @@ const ti = ({ transaction: A }) => {
|
|
|
7470
7470
|
activityType: vA.Income,
|
|
7471
7471
|
amount: l.amount,
|
|
7472
7472
|
categoryGuid: l.category_guid,
|
|
7473
|
-
expectedDate:
|
|
7473
|
+
expectedDate: Ct(l.expected_date),
|
|
7474
7474
|
name: l.name,
|
|
7475
7475
|
institution: m ? In(m) : void 0,
|
|
7476
7476
|
institutionGuid: m?.institution_guid,
|
|
@@ -7515,7 +7515,7 @@ const ti = ({ transaction: A }) => {
|
|
|
7515
7515
|
case q.EveryOtherWeek:
|
|
7516
7516
|
if (fA(o, l))
|
|
7517
7517
|
for (C = Ye(o, 2); fA(C, h); )
|
|
7518
|
-
|
|
7518
|
+
mt(C, l) && r.push({
|
|
7519
7519
|
...s,
|
|
7520
7520
|
expectedDate: C
|
|
7521
7521
|
}), C = Ye(C, 2);
|
|
@@ -7523,7 +7523,7 @@ const ti = ({ transaction: A }) => {
|
|
|
7523
7523
|
for (r.push({
|
|
7524
7524
|
...s,
|
|
7525
7525
|
expectedDate: o
|
|
7526
|
-
}), C = wr(o, 2);
|
|
7526
|
+
}), C = wr(o, 2); mt(C, l); )
|
|
7527
7527
|
r.push({
|
|
7528
7528
|
...s,
|
|
7529
7529
|
expectedDate: C
|
|
@@ -7554,27 +7554,27 @@ const ti = ({ transaction: A }) => {
|
|
|
7554
7554
|
});
|
|
7555
7555
|
break;
|
|
7556
7556
|
case q.EveryQuarter:
|
|
7557
|
-
fA(o, l) ? fA(
|
|
7557
|
+
fA(o, l) ? fA(Be(o, 1), h) && r.push({
|
|
7558
7558
|
...s,
|
|
7559
|
-
expectedDate:
|
|
7559
|
+
expectedDate: Be(o, 1)
|
|
7560
7560
|
}) : fA(o, h) && r.push({
|
|
7561
7561
|
...s,
|
|
7562
7562
|
expectedDate: o
|
|
7563
7563
|
});
|
|
7564
7564
|
break;
|
|
7565
7565
|
case q.EveryOtherQuarter:
|
|
7566
|
-
fA(o, l) ? fA(
|
|
7566
|
+
fA(o, l) ? fA(Be(o, 2), h) && r.push({
|
|
7567
7567
|
...s,
|
|
7568
|
-
expectedDate:
|
|
7568
|
+
expectedDate: Be(o, 2)
|
|
7569
7569
|
}) : fA(o, h) && r.push({
|
|
7570
7570
|
...s,
|
|
7571
7571
|
expectedDate: o
|
|
7572
7572
|
});
|
|
7573
7573
|
break;
|
|
7574
7574
|
case q.EveryYear:
|
|
7575
|
-
fA(o, l) ? fA(
|
|
7575
|
+
fA(o, l) ? fA(ft(o, 1), h) && r.push({
|
|
7576
7576
|
...s,
|
|
7577
|
-
expectedDate:
|
|
7577
|
+
expectedDate: ft(o, 1)
|
|
7578
7578
|
}) : fA(o, h) && r.push({
|
|
7579
7579
|
...s,
|
|
7580
7580
|
expectedDate: o
|
|
@@ -7590,7 +7590,7 @@ const ti = ({ transaction: A }) => {
|
|
|
7590
7590
|
}, Hd = (A, e, n, r, a) => r.map((i) => {
|
|
7591
7591
|
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
7592
|
let l = /* @__PURE__ */ new Date();
|
|
7593
|
-
return o ? l =
|
|
7593
|
+
return o ? l = Ct(o.expected_date) : s && (l = Ct(s.expected_date)), {
|
|
7594
7594
|
activityStatus: EA.Upcoming,
|
|
7595
7595
|
activityType: vA.Income,
|
|
7596
7596
|
amount: i.amount,
|
|
@@ -7620,7 +7620,7 @@ const ti = ({ transaction: A }) => {
|
|
|
7620
7620
|
};
|
|
7621
7621
|
return /* @__PURE__ */ d(iA, { sx: { bgcolor: "background.paper" }, children: [
|
|
7622
7622
|
s.map((l, h) => /* @__PURE__ */ d(g.Fragment, { children: [
|
|
7623
|
-
/* @__PURE__ */ t(
|
|
7623
|
+
/* @__PURE__ */ t(Ft, { activity: l, onActivityClick: c, showOrdinal: !0 }),
|
|
7624
7624
|
/* @__PURE__ */ t(G, { variant: h < s.length - 1 ? "inset" : "fullWidth" })
|
|
7625
7625
|
] }, l.sequenceGuid)),
|
|
7626
7626
|
/* @__PURE__ */ t(gi, { isIncome: !0, label: A.add_income, onAddActivity: u })
|
|
@@ -7648,10 +7648,10 @@ const ti = ({ transaction: A }) => {
|
|
|
7648
7648
|
A === 0 && /* @__PURE__ */ t(Nd, {}),
|
|
7649
7649
|
A === 1 && /* @__PURE__ */ t(Ci, {})
|
|
7650
7650
|
] });
|
|
7651
|
-
}, fi = T(Bd),
|
|
7651
|
+
}, fi = T(Bd), ct = (A, e) => A + e.amount, hn = (A) => A.activityType === vA.Income && Ze(A.expectedDate, {
|
|
7652
7652
|
start: pA($()),
|
|
7653
7653
|
end: TA($())
|
|
7654
|
-
}),
|
|
7654
|
+
}), Ot = (A) => A.activityType === vA.Expense && Ze(A.expectedDate, {
|
|
7655
7655
|
start: pA($()),
|
|
7656
7656
|
end: TA($())
|
|
7657
7657
|
}), gn = (A) => A.occurredOnDate && Ze(A.occurredOnDate, {
|
|
@@ -7713,7 +7713,7 @@ const ti = ({ transaction: A }) => {
|
|
|
7713
7713
|
)
|
|
7714
7714
|
}
|
|
7715
7715
|
);
|
|
7716
|
-
}, qd = T(_d),
|
|
7716
|
+
}, qd = T(_d), xt = ({ icon: A, label: e }) => /* @__PURE__ */ d(w, { alignItems: "center", flexDirection: "row", sx: { gap: 6 }, children: [
|
|
7717
7717
|
/* @__PURE__ */ t(A, {}),
|
|
7718
7718
|
/* @__PURE__ */ t(v, { variant: "XSmall", children: e })
|
|
7719
7719
|
] }), Kd = () => {
|
|
@@ -7728,18 +7728,18 @@ const ti = ({ transaction: A }) => {
|
|
|
7728
7728
|
justifyContent: "center",
|
|
7729
7729
|
mt: 12,
|
|
7730
7730
|
children: [
|
|
7731
|
-
/* @__PURE__ */ t(
|
|
7732
|
-
/* @__PURE__ */ t(
|
|
7733
|
-
/* @__PURE__ */ t(
|
|
7734
|
-
/* @__PURE__ */ t(
|
|
7731
|
+
/* @__PURE__ */ t(xt, { icon: tr, label: A.expense }),
|
|
7732
|
+
/* @__PURE__ */ t(xt, { icon: nr, label: A.income }),
|
|
7733
|
+
/* @__PURE__ */ t(xt, { icon: rr, label: A.missed }),
|
|
7734
|
+
/* @__PURE__ */ t(xt, { icon: ar, label: A.paid })
|
|
7735
7735
|
]
|
|
7736
7736
|
}
|
|
7737
7737
|
);
|
|
7738
7738
|
}, kd = T(Kd), Ur = 58, Gd = () => {
|
|
7739
7739
|
const A = uA(), { onEvent: e } = J(), { selectedDay: n } = MA(), [r, a] = g.useState(
|
|
7740
|
-
Sr(/* @__PURE__ */ new Date()) *
|
|
7740
|
+
Sr(/* @__PURE__ */ new Date()) * ot + Ur
|
|
7741
7741
|
), i = (s) => {
|
|
7742
|
-
a(Sr(s) *
|
|
7742
|
+
a(Sr(s) * ot + Ur), e(F.RECURRING_ACTIVITY_CLICK_CALENDAR_RIGHT);
|
|
7743
7743
|
}, o = /* @__PURE__ */ t(
|
|
7744
7744
|
Bn,
|
|
7745
7745
|
{
|
|
@@ -7770,11 +7770,11 @@ const ti = ({ transaction: A }) => {
|
|
|
7770
7770
|
minHeight: r
|
|
7771
7771
|
},
|
|
7772
7772
|
"&.MuiDateCalendar-root": {
|
|
7773
|
-
minHeight: r +
|
|
7773
|
+
minHeight: r + ot
|
|
7774
7774
|
},
|
|
7775
7775
|
"& .MuiButtonBase-root, .MuiDayCalendar-weekDayLabel": {
|
|
7776
|
-
height:
|
|
7777
|
-
width:
|
|
7776
|
+
height: ot,
|
|
7777
|
+
width: ot,
|
|
7778
7778
|
margin: 0
|
|
7779
7779
|
},
|
|
7780
7780
|
"& .MuiDayCalendar-weekDayLabel": {
|
|
@@ -7816,7 +7816,7 @@ const ti = ({ transaction: A }) => {
|
|
|
7816
7816
|
] }),
|
|
7817
7817
|
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
7818
|
/* @__PURE__ */ t(
|
|
7819
|
-
|
|
7819
|
+
Ft,
|
|
7820
7820
|
{
|
|
7821
7821
|
activity: c,
|
|
7822
7822
|
isMini: e,
|
|
@@ -7829,14 +7829,14 @@ const ti = ({ transaction: A }) => {
|
|
|
7829
7829
|
/* @__PURE__ */ t(W, { children: /* @__PURE__ */ t(
|
|
7830
7830
|
iA,
|
|
7831
7831
|
{
|
|
7832
|
-
subheader: /* @__PURE__ */ t(
|
|
7832
|
+
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
7833
|
c.activities[0].occurredOnDate || c.activities[0].expectedDate,
|
|
7834
7834
|
U.DAY_OF_WEEK_MONTH_DAY
|
|
7835
7835
|
) }) }),
|
|
7836
7836
|
sx: { width: "100%" },
|
|
7837
7837
|
children: c.activities.map((u, l) => /* @__PURE__ */ d(aA, { children: [
|
|
7838
7838
|
/* @__PURE__ */ t(
|
|
7839
|
-
|
|
7839
|
+
Ft,
|
|
7840
7840
|
{
|
|
7841
7841
|
activity: u,
|
|
7842
7842
|
isMini: e,
|
|
@@ -7851,7 +7851,7 @@ const ti = ({ transaction: A }) => {
|
|
|
7851
7851
|
/* @__PURE__ */ t(G, { sx: { mx: 24 } })
|
|
7852
7852
|
] })) })
|
|
7853
7853
|
] });
|
|
7854
|
-
},
|
|
7854
|
+
}, ut = T(Qd), Fd = ({
|
|
7855
7855
|
title: A,
|
|
7856
7856
|
expected: e,
|
|
7857
7857
|
paid: n,
|
|
@@ -7882,7 +7882,7 @@ const ti = ({ transaction: A }) => {
|
|
|
7882
7882
|
] }),
|
|
7883
7883
|
i && /* @__PURE__ */ t(oA, { onClick: i, startIcon: /* @__PURE__ */ t(P, { name: "add" }), variant: "text", children: o.add_new })
|
|
7884
7884
|
] }),
|
|
7885
|
-
/* @__PURE__ */ t(
|
|
7885
|
+
/* @__PURE__ */ t(Kt, { data: c })
|
|
7886
7886
|
] });
|
|
7887
7887
|
}, Wr = T(Fd), jd = () => {
|
|
7888
7888
|
const { recurring: A } = D(), { isSmallTablet: e } = kA(), {
|
|
@@ -7893,7 +7893,7 @@ const ti = ({ transaction: A }) => {
|
|
|
7893
7893
|
selectedDayActivities: o,
|
|
7894
7894
|
setSelectedDay: s,
|
|
7895
7895
|
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(
|
|
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(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
7897
|
l(k);
|
|
7898
7898
|
}, B = (_) => {
|
|
7899
7899
|
h(F.RECURRING_ACTIVITY_CLICK_UPCOMING, {
|
|
@@ -7904,8 +7904,8 @@ const ti = ({ transaction: A }) => {
|
|
|
7904
7904
|
transaction_guid: _.transactionGuid
|
|
7905
7905
|
});
|
|
7906
7906
|
};
|
|
7907
|
-
return /* @__PURE__ */ d(
|
|
7908
|
-
/* @__PURE__ */ t(
|
|
7907
|
+
return /* @__PURE__ */ d(_e, { container: !0, pt: 16, px: 24, spacing: 24, children: [
|
|
7908
|
+
/* @__PURE__ */ t(_e, { md: !0, sm: 12, children: /* @__PURE__ */ d(w, { gap: 24, children: [
|
|
7909
7909
|
/* @__PURE__ */ t(
|
|
7910
7910
|
Wr,
|
|
7911
7911
|
{
|
|
@@ -7926,7 +7926,7 @@ const ti = ({ transaction: A }) => {
|
|
|
7926
7926
|
}
|
|
7927
7927
|
),
|
|
7928
7928
|
!e && /* @__PURE__ */ t(
|
|
7929
|
-
|
|
7929
|
+
ut,
|
|
7930
7930
|
{
|
|
7931
7931
|
activities: c,
|
|
7932
7932
|
onActivityClick: B,
|
|
@@ -7949,19 +7949,19 @@ const ti = ({ transaction: A }) => {
|
|
|
7949
7949
|
)
|
|
7950
7950
|
] }),
|
|
7951
7951
|
u === 0 && /* @__PURE__ */ t(
|
|
7952
|
-
|
|
7952
|
+
ut,
|
|
7953
7953
|
{
|
|
7954
7954
|
activities: c,
|
|
7955
7955
|
onActivityClick: B
|
|
7956
7956
|
}
|
|
7957
7957
|
),
|
|
7958
|
-
u === 1 && /* @__PURE__ */ t(
|
|
7958
|
+
u === 1 && /* @__PURE__ */ t(ut, { activities: f, onActivityClick: K })
|
|
7959
7959
|
] })
|
|
7960
7960
|
] }) }),
|
|
7961
|
-
!e && /* @__PURE__ */ t(
|
|
7961
|
+
!e && /* @__PURE__ */ t(_e, { sx: { minWidth: 450 }, xs: "auto", children: /* @__PURE__ */ d(w, { gap: 35, children: [
|
|
7962
7962
|
/* @__PURE__ */ t(mi, {}),
|
|
7963
7963
|
/* @__PURE__ */ t(
|
|
7964
|
-
|
|
7964
|
+
ut,
|
|
7965
7965
|
{
|
|
7966
7966
|
activities: o || f,
|
|
7967
7967
|
onActivityClick: K,
|
|
@@ -7980,13 +7980,13 @@ const ti = ({ transaction: A }) => {
|
|
|
7980
7980
|
o(n);
|
|
7981
7981
|
}, [n]), g.useEffect(() => {
|
|
7982
7982
|
a && s({
|
|
7983
|
-
dateRange: { start: ae($(), 90), end:
|
|
7983
|
+
dateRange: { start: ae($(), 90), end: Ne() },
|
|
7984
7984
|
accounts: i
|
|
7985
7985
|
});
|
|
7986
7986
|
}, [a, i]);
|
|
7987
7987
|
const [l, h] = g.useState(!1);
|
|
7988
7988
|
return /* @__PURE__ */ d(
|
|
7989
|
-
|
|
7989
|
+
Re,
|
|
7990
7990
|
{
|
|
7991
7991
|
accountOptions: n,
|
|
7992
7992
|
actions: [
|
|
@@ -8028,12 +8028,12 @@ const ti = ({ transaction: A }) => {
|
|
|
8028
8028
|
(u) => e.includes(u.accountGuid || "")
|
|
8029
8029
|
),
|
|
8030
8030
|
[e, i]
|
|
8031
|
-
), { availableWidth: s } =
|
|
8031
|
+
), { availableWidth: s } = St(), c = s < 750;
|
|
8032
8032
|
return /* @__PURE__ */ d(w, { flexDirection: c ? "column" : "row", width: "100%", children: [
|
|
8033
8033
|
/* @__PURE__ */ t(mi, {}),
|
|
8034
8034
|
!c && /* @__PURE__ */ t(G, { flexItem: !0, orientation: "vertical", sx: { my: 16, ml: 16 } }),
|
|
8035
8035
|
/* @__PURE__ */ t(
|
|
8036
|
-
|
|
8036
|
+
ut,
|
|
8037
8037
|
{
|
|
8038
8038
|
activities: r || o.slice(0, 4),
|
|
8039
8039
|
isMini: !0,
|
|
@@ -8050,7 +8050,7 @@ const ti = ({ transaction: A }) => {
|
|
|
8050
8050
|
const { recurring: n } = D(), { isInitialized: r, selectedAccountGuids: a } = mA(), { setFilter: i } = lA();
|
|
8051
8051
|
return g.useEffect(() => {
|
|
8052
8052
|
r && i({
|
|
8053
|
-
dateRange: { start: ae($(), 90), end:
|
|
8053
|
+
dateRange: { start: ae($(), 90), end: Ne() },
|
|
8054
8054
|
accounts: a
|
|
8055
8055
|
});
|
|
8056
8056
|
}, [r, a]), /* @__PURE__ */ t(
|
|
@@ -8109,7 +8109,7 @@ class Zd {
|
|
|
8109
8109
|
return this.upcomingActivities.filter((e) => e.activityType === vA.Income);
|
|
8110
8110
|
}
|
|
8111
8111
|
get nextIncomeActivity() {
|
|
8112
|
-
return this.upcomingIncome.find((e) =>
|
|
8112
|
+
return this.upcomingIncome.find((e) => mt(e.expectedDate, $()));
|
|
8113
8113
|
}
|
|
8114
8114
|
get selectedDayActivities() {
|
|
8115
8115
|
return this.selectedDay && this.activities.filter(
|
|
@@ -8268,7 +8268,7 @@ const $d = {
|
|
|
8268
8268
|
gridRow: 1,
|
|
8269
8269
|
gridColumn: 1,
|
|
8270
8270
|
zIndex: 2
|
|
8271
|
-
}, Au = ({ size: A = 20 }) => /* @__PURE__ */ t(
|
|
8271
|
+
}, 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
8272
|
const n = [
|
|
8273
8273
|
{
|
|
8274
8274
|
event: "account_details_click_account_name",
|
|
@@ -8402,7 +8402,7 @@ const $d = {
|
|
|
8402
8402
|
a
|
|
8403
8403
|
);
|
|
8404
8404
|
let u;
|
|
8405
|
-
(A.connectionStatus ===
|
|
8405
|
+
(A.connectionStatus === qe.Error || A.connectionStatus === qe.RequiresMfa) && (u = /* @__PURE__ */ t(Au, { size: 16 }));
|
|
8406
8406
|
const l = /* @__PURE__ */ d(aA, { children: [
|
|
8407
8407
|
/* @__PURE__ */ t(bA, { children: /* @__PURE__ */ t(
|
|
8408
8408
|
Da,
|
|
@@ -8456,7 +8456,7 @@ const $d = {
|
|
|
8456
8456
|
children: /* @__PURE__ */ t(Yn, { remaining: A })
|
|
8457
8457
|
}
|
|
8458
8458
|
);
|
|
8459
|
-
var
|
|
8459
|
+
var yt = /* @__PURE__ */ ((A) => (A.EXPENSE = "expense", A.INCOME = "income", A))(yt || {});
|
|
8460
8460
|
const su = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
8461
8461
|
/* @__PURE__ */ d(W, { sx: { display: "flex", alignItems: "center", gap: 16, px: 24, py: 12 }, children: [
|
|
8462
8462
|
/* @__PURE__ */ d(w, { alignItems: "center", height: 32, width: 32, children: [
|
|
@@ -8478,7 +8478,7 @@ const su = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
|
8478
8478
|
const { cashflow: n } = D();
|
|
8479
8479
|
return /* @__PURE__ */ d(aA, { children: [
|
|
8480
8480
|
/* @__PURE__ */ d(
|
|
8481
|
-
|
|
8481
|
+
Ke,
|
|
8482
8482
|
{
|
|
8483
8483
|
sx: {
|
|
8484
8484
|
alignItems: "center",
|
|
@@ -8490,9 +8490,9 @@ const su = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
|
8490
8490
|
px: 24
|
|
8491
8491
|
},
|
|
8492
8492
|
children: [
|
|
8493
|
-
/* @__PURE__ */ t(v, { bold: !0, sx: { fontSize: 12 }, children: e ===
|
|
8493
|
+
/* @__PURE__ */ t(v, { bold: !0, sx: { fontSize: 12 }, children: e === yt.EXPENSE ? n.expenses : n.income }),
|
|
8494
8494
|
/* @__PURE__ */ d(v, { bold: !0, sx: { fontSize: 13 }, children: [
|
|
8495
|
-
e ===
|
|
8495
|
+
e === yt.EXPENSE ? "-" : "+",
|
|
8496
8496
|
Q(A, "0,0.00")
|
|
8497
8497
|
] })
|
|
8498
8498
|
]
|
|
@@ -8500,8 +8500,8 @@ const su = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
|
8500
8500
|
),
|
|
8501
8501
|
/* @__PURE__ */ t(G, {})
|
|
8502
8502
|
] });
|
|
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 } =
|
|
8503
|
+
}, 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 = () => {
|
|
8504
|
+
const { cashflow: A } = D(), { upcomingExpenses: e, upcomingIncome: n } = MA(), { dateRange: r, selectedCashAccounts: a } = at();
|
|
8505
8505
|
return /* @__PURE__ */ d(w, { children: [
|
|
8506
8506
|
/* @__PURE__ */ d(w, { flexDirection: "row", justifyContent: "space-between", children: [
|
|
8507
8507
|
/* @__PURE__ */ t(v, { bold: !0, sx: { fontSize: 15, mb: 12 }, children: A.accounts_breakdown }),
|
|
@@ -8547,7 +8547,7 @@ const su = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
|
8547
8547
|
o.length > 0 && /* @__PURE__ */ t(W, { children: /* @__PURE__ */ t(
|
|
8548
8548
|
iA,
|
|
8549
8549
|
{
|
|
8550
|
-
subheader: /* @__PURE__ */ t(Vr, { total: c, type:
|
|
8550
|
+
subheader: /* @__PURE__ */ t(Vr, { total: c, type: yt.INCOME }),
|
|
8551
8551
|
sx: { width: "100%" },
|
|
8552
8552
|
children: o.map((l) => /* @__PURE__ */ t(Yr, { activity: l }, l.sequenceGuid))
|
|
8553
8553
|
}
|
|
@@ -8555,7 +8555,7 @@ const su = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
|
8555
8555
|
s.length > 0 && /* @__PURE__ */ t(W, { children: /* @__PURE__ */ t(
|
|
8556
8556
|
iA,
|
|
8557
8557
|
{
|
|
8558
|
-
subheader: /* @__PURE__ */ t(Vr, { total: u, type:
|
|
8558
|
+
subheader: /* @__PURE__ */ t(Vr, { total: u, type: yt.EXPENSE }),
|
|
8559
8559
|
sx: { width: "100%" },
|
|
8560
8560
|
children: s.map((l) => /* @__PURE__ */ t(Yr, { activity: l }, l.scheduledPaymentGuid))
|
|
8561
8561
|
}
|
|
@@ -8573,7 +8573,7 @@ const su = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
|
8573
8573
|
}) })
|
|
8574
8574
|
] });
|
|
8575
8575
|
}, du = T(lu), uu = () => {
|
|
8576
|
-
const { availableWidth: A } =
|
|
8576
|
+
const { availableWidth: A } = St(), e = uA(), { cashflow: n } = D(), { upcomingExpenses: r, upcomingIncome: a } = MA(), { dateRange: i, selectedCashAccounts: o } = at(), s = [
|
|
8577
8577
|
{
|
|
8578
8578
|
field: "account",
|
|
8579
8579
|
flex: 1.5,
|
|
@@ -8653,7 +8653,7 @@ const su = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
|
8653
8653
|
/* @__PURE__ */ d(w, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
8654
8654
|
/* @__PURE__ */ t(v, { bold: !0, sx: { fontSize: 15 }, children: n.cash_inflow_and_outflow }),
|
|
8655
8655
|
/* @__PURE__ */ t(
|
|
8656
|
-
|
|
8656
|
+
Qt,
|
|
8657
8657
|
{
|
|
8658
8658
|
body: n.table_tooltip_body,
|
|
8659
8659
|
title: n.table_tooltip_title
|
|
@@ -8812,10 +8812,10 @@ const su = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
|
8812
8812
|
}
|
|
8813
8813
|
),
|
|
8814
8814
|
/* @__PURE__ */ t(I, { sx: { mb: 32 } }),
|
|
8815
|
-
/* @__PURE__ */ t(
|
|
8816
|
-
/* @__PURE__ */ t(
|
|
8815
|
+
/* @__PURE__ */ t(Gt, { index: 0, name: "cashflow", value: r, children: /* @__PURE__ */ t(I, { sx: { m: e ? 48 : 16 }, children: /* @__PURE__ */ t(hu, {}) }) }),
|
|
8816
|
+
/* @__PURE__ */ t(Gt, { index: 1, name: "cashflow", value: r, children: /* @__PURE__ */ t(I, { sx: { m: e ? 48 : 16 }, children: /* @__PURE__ */ t(du, {}) }) })
|
|
8817
8817
|
] });
|
|
8818
|
-
}, Cu = T(gu),
|
|
8818
|
+
}, Cu = T(gu), be = ({
|
|
8819
8819
|
amount: A,
|
|
8820
8820
|
isMobile: e = !1,
|
|
8821
8821
|
isTotal: n = !1,
|
|
@@ -8839,8 +8839,8 @@ const su = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
|
8839
8839
|
e && /* @__PURE__ */ t(HA, { amount: A, component: "h2", symbol: a, variant: "Small" })
|
|
8840
8840
|
]
|
|
8841
8841
|
}
|
|
8842
|
-
), Zr = (A, e) => (n) => n.accountGuid && A.includes(n.accountGuid) && (Kn(n.expectedDate) ||
|
|
8843
|
-
const [A, e] = g.useState(!1), { availableWidth: n } =
|
|
8842
|
+
), Zr = (A, e) => (n) => n.accountGuid && A.includes(n.accountGuid) && (Kn(n.expectedDate) || mt(n.expectedDate, e.start)) && fA(n.expectedDate, e.end), fu = () => {
|
|
8843
|
+
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
8844
|
() => a.filter(Zr(o, s)),
|
|
8845
8845
|
[s, o, a]
|
|
8846
8846
|
), h = g.useMemo(
|
|
@@ -8853,7 +8853,7 @@ const su = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
|
8853
8853
|
return /* @__PURE__ */ d(w, { flexDirection: "row", gap: 24, justifyContent: "center", my: L ? 24 : 42, children: [
|
|
8854
8854
|
L ? /* @__PURE__ */ d(w, { border: "1px solid", borderColor: "border.light", borderRadius: 1, mx: 16, width: "100%", children: [
|
|
8855
8855
|
/* @__PURE__ */ t(
|
|
8856
|
-
|
|
8856
|
+
be,
|
|
8857
8857
|
{
|
|
8858
8858
|
amount: C,
|
|
8859
8859
|
isMobile: !0,
|
|
@@ -8862,7 +8862,7 @@ const su = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
|
8862
8862
|
),
|
|
8863
8863
|
/* @__PURE__ */ t(G, {}),
|
|
8864
8864
|
E ? /* @__PURE__ */ t(
|
|
8865
|
-
|
|
8865
|
+
be,
|
|
8866
8866
|
{
|
|
8867
8867
|
amount: m,
|
|
8868
8868
|
isMobile: !0,
|
|
@@ -8880,7 +8880,7 @@ const su = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
|
8880
8880
|
),
|
|
8881
8881
|
/* @__PURE__ */ t(G, {}),
|
|
8882
8882
|
/* @__PURE__ */ t(
|
|
8883
|
-
|
|
8883
|
+
be,
|
|
8884
8884
|
{
|
|
8885
8885
|
amount: f,
|
|
8886
8886
|
isMobile: !0,
|
|
@@ -8890,14 +8890,14 @@ const su = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
|
8890
8890
|
),
|
|
8891
8891
|
/* @__PURE__ */ t(G, {}),
|
|
8892
8892
|
/* @__PURE__ */ t(
|
|
8893
|
-
|
|
8893
|
+
be,
|
|
8894
8894
|
{
|
|
8895
8895
|
amount: y,
|
|
8896
8896
|
isMobile: !0,
|
|
8897
8897
|
isTotal: !0,
|
|
8898
8898
|
label: r.remaining_cash,
|
|
8899
8899
|
tooltip: /* @__PURE__ */ t(
|
|
8900
|
-
|
|
8900
|
+
Qt,
|
|
8901
8901
|
{
|
|
8902
8902
|
body: r.remaining_income_tooltip_body,
|
|
8903
8903
|
title: r.remaining_income_tooltip_title
|
|
@@ -8906,11 +8906,11 @@ const su = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
|
8906
8906
|
}
|
|
8907
8907
|
)
|
|
8908
8908
|
] }) : /* @__PURE__ */ d(aA, { children: [
|
|
8909
|
-
/* @__PURE__ */ t(
|
|
8909
|
+
/* @__PURE__ */ t(be, { amount: C, label: r.cash_and_bank }),
|
|
8910
8910
|
E ? /* @__PURE__ */ d(aA, { children: [
|
|
8911
8911
|
/* @__PURE__ */ t(v, { sx: { fontSize: 25, lineHeight: 1 }, children: "+" }),
|
|
8912
8912
|
/* @__PURE__ */ t(
|
|
8913
|
-
|
|
8913
|
+
be,
|
|
8914
8914
|
{
|
|
8915
8915
|
amount: m,
|
|
8916
8916
|
label: r.to_be_received
|
|
@@ -8926,15 +8926,15 @@ const su = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
|
8926
8926
|
}
|
|
8927
8927
|
),
|
|
8928
8928
|
/* @__PURE__ */ t(v, { sx: { fontSize: 25, lineHeight: 1 }, children: "-" }),
|
|
8929
|
-
/* @__PURE__ */ t(
|
|
8929
|
+
/* @__PURE__ */ t(be, { amount: f, label: r.to_be_paid_out }),
|
|
8930
8930
|
/* @__PURE__ */ t(v, { sx: { fontSize: 25, lineHeight: 1 }, children: "=" }),
|
|
8931
8931
|
/* @__PURE__ */ t(
|
|
8932
|
-
|
|
8932
|
+
be,
|
|
8933
8933
|
{
|
|
8934
8934
|
amount: y,
|
|
8935
8935
|
label: r.remaining_cash,
|
|
8936
8936
|
tooltip: /* @__PURE__ */ t(
|
|
8937
|
-
|
|
8937
|
+
Qt,
|
|
8938
8938
|
{
|
|
8939
8939
|
body: r.remaining_income_tooltip_body,
|
|
8940
8940
|
title: r.remaining_income_tooltip_title
|
|
@@ -8960,7 +8960,7 @@ const su = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
|
8960
8960
|
return /* @__PURE__ */ d(w, { children: [
|
|
8961
8961
|
/* @__PURE__ */ t(ge, { pb: 12, children: n.welcome_title }),
|
|
8962
8962
|
/* @__PURE__ */ t(
|
|
8963
|
-
|
|
8963
|
+
Wt,
|
|
8964
8964
|
{
|
|
8965
8965
|
color: r.palette.action.active,
|
|
8966
8966
|
pb: 8,
|
|
@@ -9040,7 +9040,7 @@ const su = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
|
9040
9040
|
transform: rotate(360deg);
|
|
9041
9041
|
}
|
|
9042
9042
|
`, Tu = () => {
|
|
9043
|
-
const { addCashflowEvent: A, addCashflowSequence: e, cashflowSequences: n } = MA(), { cashflow: r, common: a } = D(), { completeOnboarding: i } = jn(), { isDirty: o } =
|
|
9043
|
+
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
9044
|
() => h.find((dA) => dA.guid === _),
|
|
9045
9045
|
[_]
|
|
9046
9046
|
), M = !!n.length, Y = async () => {
|
|
@@ -9048,16 +9048,16 @@ const su = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
|
9048
9048
|
// Beginning of the month, 90 days before today
|
|
9049
9049
|
pA(ae($(), 90)),
|
|
9050
9050
|
$()
|
|
9051
|
-
), l({ ...u, custom:
|
|
9051
|
+
), l({ ...u, custom: Et }), x(3);
|
|
9052
9052
|
}, rA = async () => {
|
|
9053
9053
|
if (!(B.length < 1)) {
|
|
9054
9054
|
b(!0);
|
|
9055
9055
|
for (let dA = 0; dA < B.length; dA++) {
|
|
9056
|
-
const PA = B[dA],
|
|
9056
|
+
const PA = B[dA], ze = ci(
|
|
9057
9057
|
PA,
|
|
9058
9058
|
PA.frequency,
|
|
9059
9059
|
PA.nextDate
|
|
9060
|
-
), me = await e(
|
|
9060
|
+
), me = await e(ze);
|
|
9061
9061
|
if (me) {
|
|
9062
9062
|
const je = li(me, PA);
|
|
9063
9063
|
await A(je);
|
|
@@ -9133,7 +9133,7 @@ const su = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
|
9133
9133
|
bgcolor: "background.paper",
|
|
9134
9134
|
onSearch: (dA) => l({
|
|
9135
9135
|
...u,
|
|
9136
|
-
custom: (PA) => dA ? hi(PA, dA) :
|
|
9136
|
+
custom: (PA) => dA ? hi(PA, dA) : Et(PA)
|
|
9137
9137
|
}),
|
|
9138
9138
|
onSelected: (dA) => {
|
|
9139
9139
|
k(dA), m(!1);
|
|
@@ -9213,7 +9213,7 @@ const su = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
|
9213
9213
|
setSelectedAccounts: a,
|
|
9214
9214
|
shouldDisableNextDate: i,
|
|
9215
9215
|
shouldDisablePrevDate: o
|
|
9216
|
-
} = mA(), { onEvent: s } = J(), { cashAccounts: c } = OA(), { setFilter: u } = lA(), { userProfile: l } = $t(), { dateRange: h, setSelectedCashAccounts: C } =
|
|
9216
|
+
} = 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
9217
|
return g.useEffect(() => {
|
|
9218
9218
|
a(c);
|
|
9219
9219
|
}, [c]), g.useEffect(() => {
|
|
@@ -9222,7 +9222,7 @@ const su = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
|
9222
9222
|
);
|
|
9223
9223
|
C(L), u({ accounts: L.map((b) => b.guid) });
|
|
9224
9224
|
}, [c, n]), l?.has_completed_cash_flow_onboarding ? /* @__PURE__ */ d(
|
|
9225
|
-
|
|
9225
|
+
Re,
|
|
9226
9226
|
{
|
|
9227
9227
|
accountOptions: c,
|
|
9228
9228
|
actions: [
|
|
@@ -9264,7 +9264,7 @@ const su = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
|
9264
9264
|
]
|
|
9265
9265
|
}
|
|
9266
9266
|
) : /* @__PURE__ */ t(
|
|
9267
|
-
|
|
9267
|
+
Re,
|
|
9268
9268
|
{
|
|
9269
9269
|
onBackClick: A,
|
|
9270
9270
|
sx: { height: "100%", overflow: "auto" },
|
|
@@ -9431,7 +9431,7 @@ const Nu = /^[ a-zA-ZÀ-ÿ0-9]+$/, Mu = 50, Aa = 65, Ru = ({
|
|
|
9431
9431
|
width: "100%",
|
|
9432
9432
|
children: [
|
|
9433
9433
|
/* @__PURE__ */ t(W, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(cA, { onClick: () => c(f.guid), children: [
|
|
9434
|
-
/* @__PURE__ */ t(bA, { children: /* @__PURE__ */ t(
|
|
9434
|
+
/* @__PURE__ */ t(bA, { children: /* @__PURE__ */ t(He, { categoryGuid: "", merchantGuid: f.guid }) }),
|
|
9435
9435
|
/* @__PURE__ */ t(sA, { primary: f.name })
|
|
9436
9436
|
] }) }),
|
|
9437
9437
|
/* @__PURE__ */ t(G, { sx: { ml: 24 } })
|
|
@@ -9574,7 +9574,7 @@ const Gu = {
|
|
|
9574
9574
|
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
9575
|
};
|
|
9576
9576
|
return /* @__PURE__ */ d(iA, { children: [
|
|
9577
|
-
/* @__PURE__ */ t(
|
|
9577
|
+
/* @__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
9578
|
/* @__PURE__ */ t(G, {}),
|
|
9579
9579
|
A.map((a) => {
|
|
9580
9580
|
const { currencyTextStyles: i, listItemStyles: o } = r(a);
|
|
@@ -9681,7 +9681,7 @@ const ju = (A, e) => {
|
|
|
9681
9681
|
}
|
|
9682
9682
|
) }) : /* @__PURE__ */ t("div", { style: s.badge, children: /* @__PURE__ */ t(oe, { categoryGuid: i?.category_guid, size: 36 }) });
|
|
9683
9683
|
}, Wu = T(Uu), Yu = ({ notification: A, onClick: e }) => {
|
|
9684
|
-
const { updateNotification: n } = Ya(), r =
|
|
9684
|
+
const { updateNotification: n } = Ya(), r = et(), a = {
|
|
9685
9685
|
card: {
|
|
9686
9686
|
alignItems: "center",
|
|
9687
9687
|
borderRadius: 2,
|
|
@@ -9814,7 +9814,7 @@ const Cn = ({
|
|
|
9814
9814
|
] }) }),
|
|
9815
9815
|
/* @__PURE__ */ t(G, { sx: { ml: e ? 0 : 24 } })
|
|
9816
9816
|
] }), ce = () => {
|
|
9817
|
-
if (!g.useContext(
|
|
9817
|
+
if (!g.useContext(rt))
|
|
9818
9818
|
throw new Error("useCategoryUiStore() must be used within the GlobalDataContext");
|
|
9819
9819
|
return OA().uiStore;
|
|
9820
9820
|
}, $u = () => {
|
|
@@ -9834,7 +9834,7 @@ const Cn = ({
|
|
|
9834
9834
|
);
|
|
9835
9835
|
};
|
|
9836
9836
|
return /* @__PURE__ */ d(aA, { children: [
|
|
9837
|
-
/* @__PURE__ */ t(
|
|
9837
|
+
/* @__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
9838
|
/* @__PURE__ */ t(
|
|
9839
9839
|
Cn,
|
|
9840
9840
|
{
|
|
@@ -10110,12 +10110,12 @@ const Cn = ({
|
|
|
10110
10110
|
secondaryMessage: o.title
|
|
10111
10111
|
};
|
|
10112
10112
|
return /* @__PURE__ */ d(aA, { children: [
|
|
10113
|
-
/* @__PURE__ */ t(
|
|
10113
|
+
/* @__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
10114
|
/* @__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(
|
|
10115
|
+
/* @__PURE__ */ t(bA, { children: /* @__PURE__ */ t(xe, { backingSx: { backgroundColor: s.color, borderRadius: 1 }, size: 32, children: s.icon }) }),
|
|
10116
10116
|
/* @__PURE__ */ t(sA, { primary: s.mainMessage, secondary: s.secondaryMessage })
|
|
10117
10117
|
] }) : /* @__PURE__ */ d(cA, { onClick: () => e(!0), children: [
|
|
10118
|
-
/* @__PURE__ */ t(bA, { children: /* @__PURE__ */ t(
|
|
10118
|
+
/* @__PURE__ */ t(bA, { children: /* @__PURE__ */ t(xe, { backingSx: { backgroundColor: s.color, borderRadius: 1 }, size: 32, children: s.icon }) }),
|
|
10119
10119
|
/* @__PURE__ */ t(
|
|
10120
10120
|
sA,
|
|
10121
10121
|
{
|
|
@@ -10133,7 +10133,7 @@ const Cn = ({
|
|
|
10133
10133
|
!r.is_manual && r.institution_url && /* @__PURE__ */ d(aA, { children: [
|
|
10134
10134
|
/* @__PURE__ */ t(W, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ d(cA, { component: "a", href: r.institution_url, target: "_blank", children: [
|
|
10135
10135
|
/* @__PURE__ */ t(bA, { children: /* @__PURE__ */ t(
|
|
10136
|
-
|
|
10136
|
+
xe,
|
|
10137
10137
|
{
|
|
10138
10138
|
backingSx: {
|
|
10139
10139
|
backgroundColor: n === Cr.LIGHT ? "grey.300" : "grey.700",
|
|
@@ -10365,7 +10365,7 @@ const Cn = ({
|
|
|
10365
10365
|
accounts: [r.guid]
|
|
10366
10366
|
});
|
|
10367
10367
|
}, [r]), g.useEffect(() => n(F.ACCOUNT_DETAILS_VIEW_TRANSACTIONS), []), /* @__PURE__ */ d(aA, { children: [
|
|
10368
|
-
/* @__PURE__ */ t(
|
|
10368
|
+
/* @__PURE__ */ t(it, { onClick: e }),
|
|
10369
10369
|
s && /* @__PURE__ */ t(
|
|
10370
10370
|
hA,
|
|
10371
10371
|
{
|
|
@@ -10373,7 +10373,7 @@ const Cn = ({
|
|
|
10373
10373
|
isOpen: !!A,
|
|
10374
10374
|
onClose: () => e(""),
|
|
10375
10375
|
title: a.transaction_drawer_title,
|
|
10376
|
-
children: /* @__PURE__ */ t(
|
|
10376
|
+
children: /* @__PURE__ */ t(Lt, { transaction: s })
|
|
10377
10377
|
}
|
|
10378
10378
|
)
|
|
10379
10379
|
] });
|
|
@@ -10409,8 +10409,8 @@ const Cn = ({
|
|
|
10409
10409
|
]
|
|
10410
10410
|
}
|
|
10411
10411
|
),
|
|
10412
|
-
/* @__PURE__ */ t(
|
|
10413
|
-
/* @__PURE__ */ t(
|
|
10412
|
+
/* @__PURE__ */ t(Gt, { index: 0, name: "transaction-details", value: A, children: /* @__PURE__ */ t(h1, {}) }),
|
|
10413
|
+
/* @__PURE__ */ t(Gt, { index: 1, name: "account-details", value: A, children: /* @__PURE__ */ t(c1, {}) })
|
|
10414
10414
|
] });
|
|
10415
10415
|
}, 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
10416
|
x: AA(new Date(r.year, r.month), U.MONTH_SHORT_YEAR),
|
|
@@ -10485,13 +10485,13 @@ const Cn = ({
|
|
|
10485
10485
|
},
|
|
10486
10486
|
children: [
|
|
10487
10487
|
/* @__PURE__ */ t(
|
|
10488
|
-
|
|
10488
|
+
tt,
|
|
10489
10489
|
{
|
|
10490
10490
|
sx: { pb: 0 },
|
|
10491
|
-
title: /* @__PURE__ */ t(
|
|
10491
|
+
title: /* @__PURE__ */ t(Yt, { sx: { pb: 4 }, children: AA(/* @__PURE__ */ new Date(), U.MONTH_LONG) })
|
|
10492
10492
|
}
|
|
10493
10493
|
),
|
|
10494
|
-
/* @__PURE__ */ t(
|
|
10494
|
+
/* @__PURE__ */ t(nt, { sx: { p: 0 }, children: /* @__PURE__ */ t(T1, {}) })
|
|
10495
10495
|
]
|
|
10496
10496
|
}
|
|
10497
10497
|
);
|
|
@@ -10516,7 +10516,7 @@ const Cn = ({
|
|
|
10516
10516
|
/* @__PURE__ */ t(v, { variant: "Small", children: c?.name })
|
|
10517
10517
|
] }),
|
|
10518
10518
|
/* @__PURE__ */ d(w, { gap: 8, mb: 24, mt: 4, children: [
|
|
10519
|
-
/* @__PURE__ */ t(
|
|
10519
|
+
/* @__PURE__ */ t(Wt, { children: e.name || e.feed_name }),
|
|
10520
10520
|
/* @__PURE__ */ d(w, { direction: "row", justifyContent: "space-between", children: [
|
|
10521
10521
|
/* @__PURE__ */ t(v, { bold: i, variant: "Body", children: r }),
|
|
10522
10522
|
/* @__PURE__ */ t(v, { bold: !0, variant: "Body", children: Q(a, "0,0.00") })
|
|
@@ -10551,7 +10551,7 @@ const Cn = ({
|
|
|
10551
10551
|
iA,
|
|
10552
10552
|
{
|
|
10553
10553
|
"aria-label": n.account_type_accounts[h[0].account_type],
|
|
10554
|
-
subheader: /* @__PURE__ */ t(
|
|
10554
|
+
subheader: /* @__PURE__ */ t(Ke, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ d(
|
|
10555
10555
|
hr,
|
|
10556
10556
|
{
|
|
10557
10557
|
component: "span",
|
|
@@ -10638,8 +10638,8 @@ const Cn = ({
|
|
|
10638
10638
|
},
|
|
10639
10639
|
title: n,
|
|
10640
10640
|
children: /* @__PURE__ */ d("div", { id: Hr, children: [
|
|
10641
|
-
l && /* @__PURE__ */ t(
|
|
10642
|
-
c && /* @__PURE__ */ t(
|
|
10641
|
+
l && /* @__PURE__ */ t(kt, { status: Oe.Error }),
|
|
10642
|
+
c && /* @__PURE__ */ t(kt, { status: Oe.Loading })
|
|
10643
10643
|
] })
|
|
10644
10644
|
}
|
|
10645
10645
|
);
|
|
@@ -10656,7 +10656,7 @@ const Cn = ({
|
|
|
10656
10656
|
r(!0), C(F.ACCOUNTS_CLICK_CONNECT);
|
|
10657
10657
|
};
|
|
10658
10658
|
return /* @__PURE__ */ t(
|
|
10659
|
-
|
|
10659
|
+
Re,
|
|
10660
10660
|
{
|
|
10661
10661
|
accountOptions: o,
|
|
10662
10662
|
actions: [
|
|
@@ -11269,9 +11269,9 @@ class G1 {
|
|
|
11269
11269
|
(i) => i.guid === r.member_guid
|
|
11270
11270
|
);
|
|
11271
11271
|
if (a > -1) {
|
|
11272
|
-
let i =
|
|
11272
|
+
let i = qe.Connected;
|
|
11273
11273
|
const o = this.members[a];
|
|
11274
|
-
za.includes(o.connection_status) ? i =
|
|
11274
|
+
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
11275
|
...r,
|
|
11276
11276
|
memberName: o.name,
|
|
11277
11277
|
connectionStatus: i
|
|
@@ -11548,7 +11548,7 @@ const ra = 5, X1 = 100, aa = 25, Q1 = (A) => {
|
|
|
11548
11548
|
unavailableHeight: r = 0,
|
|
11549
11549
|
unavailableWidth: a = 24
|
|
11550
11550
|
}) => {
|
|
11551
|
-
const { detailedBudgets: i } = Ge(), { isInitialized: o } = mA(), { availableHeight: s, availableWidth: c } =
|
|
11551
|
+
const { detailedBudgets: i } = Ge(), { isInitialized: o } = mA(), { availableHeight: s, availableWidth: c } = St(), u = g.useMemo(
|
|
11552
11552
|
() => i.map(
|
|
11553
11553
|
(C) => ({
|
|
11554
11554
|
budget: { ...C },
|
|
@@ -11615,7 +11615,7 @@ const ra = 5, X1 = 100, aa = 25, Q1 = (A) => {
|
|
|
11615
11615
|
/* @__PURE__ */ t(P, { color: "secondary", name: "bubble_chart", sx: { fontSize: 32 } }),
|
|
11616
11616
|
/* @__PURE__ */ t(v, { bold: !0, color: "secondary", variant: "Small", children: sa.zero_state_no_sub_budgets }),
|
|
11617
11617
|
/* @__PURE__ */ t(v, { color: "secondary", variant: "XSmall", children: sa.zero_state_sub_budgets_description })
|
|
11618
|
-
] }),
|
|
11618
|
+
] }), Pt = {
|
|
11619
11619
|
transactions_tab: "Transactions",
|
|
11620
11620
|
subbudgets_tab: "Sub Budgets",
|
|
11621
11621
|
close_aria: "Close",
|
|
@@ -11633,11 +11633,11 @@ const ra = 5, X1 = 100, aa = 25, Q1 = (A) => {
|
|
|
11633
11633
|
a(h);
|
|
11634
11634
|
};
|
|
11635
11635
|
return /* @__PURE__ */ d(w, { gap: 24, children: [
|
|
11636
|
-
/* @__PURE__ */ t(_A, { sx: { mt: 24, mx: 24 }, children: /* @__PURE__ */ t(
|
|
11636
|
+
/* @__PURE__ */ t(_A, { sx: { mt: 24, mx: 24 }, children: /* @__PURE__ */ t(nt, { children: /* @__PURE__ */ d(w, { alignItems: "center", gap: 16, children: [
|
|
11637
11637
|
/* @__PURE__ */ t(oe, { categoryGuid: A.category_guid, size: 56 }),
|
|
11638
11638
|
/* @__PURE__ */ t(ge, { children: `${Q(A.transaction_total, "0,0")} / ${Q(A.amount, "0,0")}` }),
|
|
11639
11639
|
/* @__PURE__ */ t(v, { bold: !0, variant: "XSmall", children: A.category.name }),
|
|
11640
|
-
/* @__PURE__ */ t(
|
|
11640
|
+
/* @__PURE__ */ t(Kt, { data: s, height: 10 })
|
|
11641
11641
|
] }) }) }),
|
|
11642
11642
|
/* @__PURE__ */ d(w, { children: [
|
|
11643
11643
|
/* @__PURE__ */ d(
|
|
@@ -11648,12 +11648,12 @@ const ra = 5, X1 = 100, aa = 25, Q1 = (A) => {
|
|
|
11648
11648
|
value: r,
|
|
11649
11649
|
variant: "fullWidth",
|
|
11650
11650
|
children: [
|
|
11651
|
-
/* @__PURE__ */ t(UA, { label:
|
|
11652
|
-
/* @__PURE__ */ t(UA, { label:
|
|
11651
|
+
/* @__PURE__ */ t(UA, { label: Pt.transactions_tab }),
|
|
11652
|
+
/* @__PURE__ */ t(UA, { label: Pt.subbudgets_tab })
|
|
11653
11653
|
]
|
|
11654
11654
|
}
|
|
11655
11655
|
),
|
|
11656
|
-
r === 0 && /* @__PURE__ */ t(
|
|
11656
|
+
r === 0 && /* @__PURE__ */ t(it, { onClick: o }),
|
|
11657
11657
|
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
11658
|
/* @__PURE__ */ t(eh, { budget: l }),
|
|
11659
11659
|
/* @__PURE__ */ t(G, {})
|
|
@@ -11661,11 +11661,11 @@ const ra = 5, X1 = 100, aa = 25, Q1 = (A) => {
|
|
|
11661
11661
|
/* @__PURE__ */ t(
|
|
11662
11662
|
hA,
|
|
11663
11663
|
{
|
|
11664
|
-
ariaLabelClose:
|
|
11664
|
+
ariaLabelClose: Pt.close_aria,
|
|
11665
11665
|
isOpen: !!c,
|
|
11666
11666
|
onClose: () => o(""),
|
|
11667
|
-
title:
|
|
11668
|
-
children: c && /* @__PURE__ */ t(
|
|
11667
|
+
title: Pt.transaction_drawer,
|
|
11668
|
+
children: c && /* @__PURE__ */ t(Lt, { transaction: c })
|
|
11669
11669
|
}
|
|
11670
11670
|
)
|
|
11671
11671
|
] })
|
|
@@ -11704,13 +11704,13 @@ const ra = 5, X1 = 100, aa = 25, Q1 = (A) => {
|
|
|
11704
11704
|
}, ih = T(({ onClick: A }) => {
|
|
11705
11705
|
const { detailedBudgets: e } = Ge();
|
|
11706
11706
|
return /* @__PURE__ */ d(_A, { children: [
|
|
11707
|
-
/* @__PURE__ */ t(
|
|
11708
|
-
/* @__PURE__ */ t(
|
|
11707
|
+
/* @__PURE__ */ t(tt, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ t(Yt, { children: ah.budget_categories_title }) }),
|
|
11708
|
+
/* @__PURE__ */ t(nt, { sx: { p: 0 }, children: /* @__PURE__ */ t(iA, { children: e.map((n) => /* @__PURE__ */ d(g.Fragment, { children: [
|
|
11709
11709
|
/* @__PURE__ */ t(rh, { budget: n, onClick: A }),
|
|
11710
11710
|
/* @__PURE__ */ t(G, {})
|
|
11711
11711
|
] }, n.guid)) }) })
|
|
11712
11712
|
] });
|
|
11713
|
-
}),
|
|
11713
|
+
}), lt = {
|
|
11714
11714
|
overview_title: "Overview",
|
|
11715
11715
|
spending_title: "Spending",
|
|
11716
11716
|
income_title: "Income",
|
|
@@ -11738,22 +11738,22 @@ const ra = 5, X1 = 100, aa = 25, Q1 = (A) => {
|
|
|
11738
11738
|
}
|
|
11739
11739
|
];
|
|
11740
11740
|
return /* @__PURE__ */ d(_A, { sx: { overflow: "visible" }, children: [
|
|
11741
|
-
/* @__PURE__ */ t(
|
|
11742
|
-
/* @__PURE__ */ t(
|
|
11741
|
+
/* @__PURE__ */ t(tt, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ t(Yt, { children: lt.overview_title }) }),
|
|
11742
|
+
/* @__PURE__ */ t(nt, { sx: { pt: 12, px: 24 }, children: /* @__PURE__ */ d(w, { gap: 24, children: [
|
|
11743
11743
|
/* @__PURE__ */ d(w, { gap: 8, children: [
|
|
11744
|
-
/* @__PURE__ */ t(v, { bold: !0, variant: "Small", children:
|
|
11745
|
-
/* @__PURE__ */ t(
|
|
11744
|
+
/* @__PURE__ */ t(v, { bold: !0, variant: "Small", children: lt.spending_title }),
|
|
11745
|
+
/* @__PURE__ */ t(Kt, { data: c, height: 16 }),
|
|
11746
11746
|
/* @__PURE__ */ t(v, { variant: "Small", children: z(
|
|
11747
|
-
|
|
11747
|
+
lt.spending_description,
|
|
11748
11748
|
Q(i, "0,0"),
|
|
11749
11749
|
Q(o, "0,0")
|
|
11750
11750
|
) })
|
|
11751
11751
|
] }),
|
|
11752
11752
|
/* @__PURE__ */ d(w, { gap: 8, children: [
|
|
11753
|
-
/* @__PURE__ */ t(v, { bold: !0, variant: "Body", children:
|
|
11754
|
-
/* @__PURE__ */ t(
|
|
11753
|
+
/* @__PURE__ */ t(v, { bold: !0, variant: "Body", children: lt.income_title }),
|
|
11754
|
+
/* @__PURE__ */ t(Kt, { data: C, height: 16 }),
|
|
11755
11755
|
/* @__PURE__ */ t(v, { variant: "Small", children: z(
|
|
11756
|
-
|
|
11756
|
+
lt.income_description,
|
|
11757
11757
|
Q(l, "0,0"),
|
|
11758
11758
|
Q(u, "0,0")
|
|
11759
11759
|
) })
|
|
@@ -11778,7 +11778,7 @@ const ra = 5, X1 = 100, aa = 25, Q1 = (A) => {
|
|
|
11778
11778
|
accounts: s,
|
|
11779
11779
|
dateRange: {
|
|
11780
11780
|
start: pA(/* @__PURE__ */ new Date()),
|
|
11781
|
-
end:
|
|
11781
|
+
end: Ne()
|
|
11782
11782
|
},
|
|
11783
11783
|
custom: (k) => k.category_guid === _.category_guid || k.top_level_category_guid === _.category_guid
|
|
11784
11784
|
});
|
|
@@ -11786,7 +11786,7 @@ const ra = 5, X1 = 100, aa = 25, Q1 = (A) => {
|
|
|
11786
11786
|
f({ start: _[0] || /* @__PURE__ */ new Date(), end: _[1] || /* @__PURE__ */ new Date() });
|
|
11787
11787
|
};
|
|
11788
11788
|
return i ? /* @__PURE__ */ d(
|
|
11789
|
-
|
|
11789
|
+
Re,
|
|
11790
11790
|
{
|
|
11791
11791
|
accountOptions: r,
|
|
11792
11792
|
actions: [],
|
|
@@ -11899,9 +11899,9 @@ const ch = () => {
|
|
|
11899
11899
|
() => s.filter((l) => l.location === On.RightSide),
|
|
11900
11900
|
[A]
|
|
11901
11901
|
);
|
|
11902
|
-
return /* @__PURE__ */ d(
|
|
11903
|
-
/* @__PURE__ */ t(
|
|
11904
|
-
/* @__PURE__ */ d(
|
|
11902
|
+
return /* @__PURE__ */ d(_e, { container: !0, spacing: r ? 0 : 24, sx: { overflow: "scroll" }, children: [
|
|
11903
|
+
/* @__PURE__ */ t(_e, { xs: 12, children: a.isInitialized && /* @__PURE__ */ t(lh, {}) }),
|
|
11904
|
+
/* @__PURE__ */ d(_e, { xl: 8, xs: 12, children: [
|
|
11905
11905
|
e && /* @__PURE__ */ d(w, { direction: "column", spacing: 24, children: [
|
|
11906
11906
|
/* @__PURE__ */ t(ve, { height: 100, variant: "rounded", width: "100%" }),
|
|
11907
11907
|
/* @__PURE__ */ t(ve, { height: 300, variant: "rounded", width: "100%" }),
|
|
@@ -11909,7 +11909,7 @@ const ch = () => {
|
|
|
11909
11909
|
] }),
|
|
11910
11910
|
!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
11911
|
] }),
|
|
11912
|
-
n && /* @__PURE__ */ t(
|
|
11912
|
+
n && /* @__PURE__ */ t(_e, { xl: 4, children: e ? /* @__PURE__ */ d(w, { direction: "column", spacing: 24, children: [
|
|
11913
11913
|
/* @__PURE__ */ t(ve, { height: 200, variant: "rounded", width: "100%" }),
|
|
11914
11914
|
/* @__PURE__ */ t(ve, { height: 100, variant: "rounded", width: "100%" }),
|
|
11915
11915
|
/* @__PURE__ */ t(ve, { height: 300, variant: "rounded", width: "100%" })
|
|
@@ -12293,6 +12293,42 @@ const ch = () => {
|
|
|
12293
12293
|
]
|
|
12294
12294
|
}
|
|
12295
12295
|
);
|
|
12296
|
+
}, J8 = ({
|
|
12297
|
+
color: A,
|
|
12298
|
+
fill: e,
|
|
12299
|
+
isDarkMode: n,
|
|
12300
|
+
name: r,
|
|
12301
|
+
size: a,
|
|
12302
|
+
sx: i
|
|
12303
|
+
}) => {
|
|
12304
|
+
const o = Se(n ? "dark" : "light");
|
|
12305
|
+
return /* @__PURE__ */ t(At, { theme: o, children: /* @__PURE__ */ t(P, { color: A, fill: e, name: r, size: a, sx: i }) });
|
|
12306
|
+
}, Z8 = ({
|
|
12307
|
+
boldText: A,
|
|
12308
|
+
iconColor: e,
|
|
12309
|
+
iconFill: n,
|
|
12310
|
+
iconSX: r,
|
|
12311
|
+
isDarkMode: a,
|
|
12312
|
+
name: i,
|
|
12313
|
+
size: o,
|
|
12314
|
+
subHeaderString: s,
|
|
12315
|
+
textSX: c
|
|
12316
|
+
}) => {
|
|
12317
|
+
const u = Se(a ? "dark" : "light");
|
|
12318
|
+
return /* @__PURE__ */ d(At, { theme: u, children: [
|
|
12319
|
+
i && /* @__PURE__ */ t(
|
|
12320
|
+
P,
|
|
12321
|
+
{
|
|
12322
|
+
className: "mx-insights-sub-header-icon",
|
|
12323
|
+
color: e,
|
|
12324
|
+
fill: n,
|
|
12325
|
+
name: i,
|
|
12326
|
+
size: o,
|
|
12327
|
+
sx: r
|
|
12328
|
+
}
|
|
12329
|
+
),
|
|
12330
|
+
/* @__PURE__ */ t(v, { bold: A, className: "mx-insights-sub-header-text", component: "text", sx: c, children: s })
|
|
12331
|
+
] });
|
|
12296
12332
|
}, sr = ({
|
|
12297
12333
|
bold: A,
|
|
12298
12334
|
className: e = "",
|
|
@@ -12397,7 +12433,7 @@ const ch = () => {
|
|
|
12397
12433
|
)
|
|
12398
12434
|
]
|
|
12399
12435
|
}
|
|
12400
|
-
),
|
|
12436
|
+
), $8 = ({
|
|
12401
12437
|
goalCompletionDate: A = "",
|
|
12402
12438
|
goalContribution: e = "",
|
|
12403
12439
|
isDarkMode: n,
|
|
@@ -12408,8 +12444,8 @@ const ch = () => {
|
|
|
12408
12444
|
title: s,
|
|
12409
12445
|
totalSavedText: c
|
|
12410
12446
|
}) => {
|
|
12411
|
-
const u =
|
|
12412
|
-
return /* @__PURE__ */ t(
|
|
12447
|
+
const u = Se(n ? "dark" : "light");
|
|
12448
|
+
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
12449
|
/* @__PURE__ */ t(
|
|
12414
12450
|
vh,
|
|
12415
12451
|
{
|
|
@@ -12437,7 +12473,7 @@ const ch = () => {
|
|
|
12437
12473
|
}
|
|
12438
12474
|
)
|
|
12439
12475
|
] }) }) });
|
|
12440
|
-
},
|
|
12476
|
+
}, A7 = ({
|
|
12441
12477
|
accountGuid: A,
|
|
12442
12478
|
animation: e,
|
|
12443
12479
|
leftLowerText: n,
|
|
@@ -12449,8 +12485,8 @@ const ch = () => {
|
|
|
12449
12485
|
rightLowerText: c,
|
|
12450
12486
|
rightUpperText: u
|
|
12451
12487
|
}) => {
|
|
12452
|
-
const l =
|
|
12453
|
-
return /* @__PURE__ */ t(
|
|
12488
|
+
const l = Se(i ? "dark" : "light");
|
|
12489
|
+
return /* @__PURE__ */ t(At, { theme: l, children: /* @__PURE__ */ t(
|
|
12454
12490
|
Ti,
|
|
12455
12491
|
{
|
|
12456
12492
|
accountGuid: A,
|
|
@@ -12530,7 +12566,7 @@ const ch = () => {
|
|
|
12530
12566
|
/* @__PURE__ */ t(la, { accountGuid: A, accountName: e })
|
|
12531
12567
|
]
|
|
12532
12568
|
}
|
|
12533
|
-
),
|
|
12569
|
+
), e7 = ({
|
|
12534
12570
|
accountGuid: A,
|
|
12535
12571
|
animation: e,
|
|
12536
12572
|
destinationAccountGuid: n,
|
|
@@ -12546,8 +12582,8 @@ const ch = () => {
|
|
|
12546
12582
|
rightUpperText: C,
|
|
12547
12583
|
sourceAccountGuid: f
|
|
12548
12584
|
}) => {
|
|
12549
|
-
const m =
|
|
12550
|
-
return /* @__PURE__ */ t(g.Fragment, { children: /* @__PURE__ */ t(
|
|
12585
|
+
const m = Se(s ? "dark" : "light");
|
|
12586
|
+
return /* @__PURE__ */ t(g.Fragment, { children: /* @__PURE__ */ t(At, { theme: m, children: o ? /* @__PURE__ */ t(
|
|
12551
12587
|
Ti,
|
|
12552
12588
|
{
|
|
12553
12589
|
accountGuid: A,
|
|
@@ -12684,13 +12720,13 @@ const ch = () => {
|
|
|
12684
12720
|
] }) }),
|
|
12685
12721
|
/* @__PURE__ */ t(G, {})
|
|
12686
12722
|
] });
|
|
12687
|
-
},
|
|
12723
|
+
}, t7 = ({
|
|
12688
12724
|
content: A,
|
|
12689
12725
|
manageAccountsStore: e,
|
|
12690
12726
|
useDarkMode: n = !1
|
|
12691
12727
|
}) => {
|
|
12692
12728
|
const { groupedAccounts: r, toggleAccount: a } = e, [i, o] = g.useState(!1);
|
|
12693
|
-
return /* @__PURE__ */ d(Gn, { theme:
|
|
12729
|
+
return /* @__PURE__ */ d(Gn, { theme: Se(n ? "dark" : "light"), children: [
|
|
12694
12730
|
/* @__PURE__ */ t(
|
|
12695
12731
|
bi,
|
|
12696
12732
|
{
|
|
@@ -12967,7 +13003,7 @@ const Oi = ({
|
|
|
12967
13003
|
}
|
|
12968
13004
|
),
|
|
12969
13005
|
/* @__PURE__ */ t(
|
|
12970
|
-
|
|
13006
|
+
Mt,
|
|
12971
13007
|
{
|
|
12972
13008
|
checked: u[S.name] ? u[S.name] : !1,
|
|
12973
13009
|
edge: "end",
|
|
@@ -13224,11 +13260,11 @@ const Oi = ({
|
|
|
13224
13260
|
}
|
|
13225
13261
|
)
|
|
13226
13262
|
] });
|
|
13227
|
-
},
|
|
13263
|
+
}, n7 = ({
|
|
13228
13264
|
content: A,
|
|
13229
13265
|
disabledBeatTemplatesStore: e,
|
|
13230
13266
|
useDarkMode: n = !1
|
|
13231
|
-
}) => /* @__PURE__ */ t(Gn, { theme:
|
|
13267
|
+
}) => /* @__PURE__ */ t(Gn, { theme: Se(n ? "dark" : "light"), children: /* @__PURE__ */ t(bh, { children: /* @__PURE__ */ t(
|
|
13232
13268
|
Rh,
|
|
13233
13269
|
{
|
|
13234
13270
|
content: A,
|
|
@@ -13241,7 +13277,7 @@ const Oi = ({
|
|
|
13241
13277
|
onClose: r = () => {
|
|
13242
13278
|
},
|
|
13243
13279
|
useDarkMode: a = !1
|
|
13244
|
-
}) => /* @__PURE__ */ t(Gn, { theme:
|
|
13280
|
+
}) => /* @__PURE__ */ t(Gn, { theme: Se(a ? "dark" : "light"), children: /* @__PURE__ */ t(
|
|
13245
13281
|
hA,
|
|
13246
13282
|
{
|
|
13247
13283
|
ariaLabelClose: e.close,
|
|
@@ -13254,9 +13290,9 @@ const Oi = ({
|
|
|
13254
13290
|
A
|
|
13255
13291
|
] })
|
|
13256
13292
|
}
|
|
13257
|
-
) }),
|
|
13293
|
+
) }), r7 = T(Hh);
|
|
13258
13294
|
class zh {
|
|
13259
|
-
copyApi = new
|
|
13295
|
+
copyApi = new qt("/", "");
|
|
13260
13296
|
copyObject = {};
|
|
13261
13297
|
namespace = "experiences";
|
|
13262
13298
|
translationKey = "micro_insights";
|
|
@@ -13264,7 +13300,7 @@ class zh {
|
|
|
13264
13300
|
yA(this);
|
|
13265
13301
|
}
|
|
13266
13302
|
initialize = async (e, n) => {
|
|
13267
|
-
this.copyApi = new
|
|
13303
|
+
this.copyApi = new qt(e, n), await this.loadCopy();
|
|
13268
13304
|
};
|
|
13269
13305
|
loadCopy = async () => {
|
|
13270
13306
|
const e = await this.copyApi.getGlobalCopy(this.namespace, this.translationKey);
|
|
@@ -13359,28 +13395,28 @@ const lr = {
|
|
|
13359
13395
|
MICRO_BEAT_DISPLAYED_FIRST_TIME: "Micro Beat Displayed For First Time",
|
|
13360
13396
|
SWIPE_BACKWARD: "Swipe Backward",
|
|
13361
13397
|
SWIPE_FORWARD: "Swipe Forward"
|
|
13362
|
-
},
|
|
13398
|
+
}, Ie = {
|
|
13363
13399
|
MICRO_WIDGET_CAROUSEL: "Micro Widget Carousel",
|
|
13364
13400
|
MICRO_WIDGET_CAROUSEL_ZERO_STATE: "Micro Widget Carousel Zero State",
|
|
13365
13401
|
MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS: "Micro Widget Carousel No Relevant Insights"
|
|
13366
13402
|
}, ua = {
|
|
13367
|
-
[
|
|
13403
|
+
[Ie.MICRO_WIDGET_CAROUSEL]: {
|
|
13368
13404
|
label: Ee.MICRO_WIDGET,
|
|
13369
|
-
name:
|
|
13405
|
+
name: Ie.MICRO_WIDGET_CAROUSEL,
|
|
13370
13406
|
path: da.INSIGHTS_MICRO_WIDGET,
|
|
13371
13407
|
value: ee
|
|
13372
13408
|
},
|
|
13373
13409
|
// zero state
|
|
13374
|
-
[
|
|
13410
|
+
[Ie.MICRO_WIDGET_CAROUSEL_ZERO_STATE]: {
|
|
13375
13411
|
label: Ee.MICRO_WIDGET,
|
|
13376
|
-
name:
|
|
13412
|
+
name: Ie.MICRO_WIDGET_CAROUSEL_ZERO_STATE,
|
|
13377
13413
|
path: da.INSIGHTS_MICRO_WIDGET,
|
|
13378
13414
|
value: ee
|
|
13379
13415
|
},
|
|
13380
13416
|
// no relevant cards
|
|
13381
|
-
[
|
|
13417
|
+
[Ie.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS]: {
|
|
13382
13418
|
label: Ee.MICRO_WIDGET,
|
|
13383
|
-
name:
|
|
13419
|
+
name: Ie.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS,
|
|
13384
13420
|
path: "/micro-widget",
|
|
13385
13421
|
value: ee
|
|
13386
13422
|
}
|
|
@@ -13469,12 +13505,12 @@ class kh {
|
|
|
13469
13505
|
});
|
|
13470
13506
|
};
|
|
13471
13507
|
}
|
|
13472
|
-
const
|
|
13508
|
+
const Tt = g.createContext(null), Gh = ({
|
|
13473
13509
|
onEvent: A,
|
|
13474
13510
|
onPageview: e,
|
|
13475
13511
|
store: n,
|
|
13476
13512
|
children: r
|
|
13477
|
-
}) => /* @__PURE__ */ t(
|
|
13513
|
+
}) => /* @__PURE__ */ t(Tt.Provider, { value: { onEvent: A, onPageview: e, store: n, children: r }, children: r }), Xh = ({ beat: A }) => {
|
|
13478
13514
|
const [e, n] = le(p.UNCATEGORIZED);
|
|
13479
13515
|
return he(() => {
|
|
13480
13516
|
A.primary_category_guid ? n(A.primary_category_guid) : A.category_guids?.length && n(A.category_guids[0]);
|
|
@@ -13482,7 +13518,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
13482
13518
|
}, Qh = ({ beat: A }) => {
|
|
13483
13519
|
const e = DA(), n = Fh(e);
|
|
13484
13520
|
return /* @__PURE__ */ t(
|
|
13485
|
-
|
|
13521
|
+
He,
|
|
13486
13522
|
{
|
|
13487
13523
|
categoryGuid: A.primary_category_guid || A.category_guids && A.category_guids[0] || "",
|
|
13488
13524
|
className: n,
|
|
@@ -14331,24 +14367,24 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
14331
14367
|
XLARGE: 200,
|
|
14332
14368
|
XXLARGE: 248
|
|
14333
14369
|
}, Jh = 50, zi = 1, Fe = () => {
|
|
14334
|
-
const A = g.useContext(
|
|
14370
|
+
const A = g.useContext(Tt);
|
|
14335
14371
|
if (!A)
|
|
14336
14372
|
throw new Error("useCopyStore() must be used within the InsightsMicroWidgetDataProvider");
|
|
14337
14373
|
return A.store.copyStore;
|
|
14338
14374
|
}, Zh = () => {
|
|
14339
|
-
const A = g.useContext(
|
|
14375
|
+
const A = g.useContext(Tt);
|
|
14340
14376
|
if (!A?.store?.insightsMicroWidgetStore)
|
|
14341
14377
|
throw new Error(
|
|
14342
14378
|
"useInsightsMicroWidgetStore() must be used within the InsightsMicroWidgetDataProvider"
|
|
14343
14379
|
);
|
|
14344
14380
|
return A.store.insightsMicroWidgetStore;
|
|
14345
|
-
},
|
|
14346
|
-
const A = g.useContext(
|
|
14381
|
+
}, bt = () => {
|
|
14382
|
+
const A = g.useContext(Tt);
|
|
14347
14383
|
if (!A)
|
|
14348
14384
|
throw new Error("useEvent() must be used within the InsightsMicroWidgetDataProvider");
|
|
14349
14385
|
return { onEvent: A.onEvent };
|
|
14350
14386
|
}, Bi = () => {
|
|
14351
|
-
const A = g.useContext(
|
|
14387
|
+
const A = g.useContext(Tt);
|
|
14352
14388
|
if (!A)
|
|
14353
14389
|
throw new Error("usePageview() must be used within the InsightsMicroWidgetDataProvider");
|
|
14354
14390
|
return { onPageview: A.onPageview };
|
|
@@ -14369,7 +14405,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
14369
14405
|
}) => {
|
|
14370
14406
|
const f = window.app?.config.client_guid, { ref: m, inView: y } = kn({
|
|
14371
14407
|
threshold: zi
|
|
14372
|
-
}), { cardsCopy: E } = Fe(), { onEvent: L } =
|
|
14408
|
+
}), { cardsCopy: E } = Fe(), { onEvent: L } = bt(), { updateBeat: b } = Zh();
|
|
14373
14409
|
he(() => {
|
|
14374
14410
|
y && (n.has_been_displayed ? L(Pi(n.template)) : (b({
|
|
14375
14411
|
...n,
|
|
@@ -14503,7 +14539,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
14503
14539
|
variant: u,
|
|
14504
14540
|
widthOverrides: l
|
|
14505
14541
|
}) => {
|
|
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 } =
|
|
14542
|
+
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
14543
|
O(te.ON_CAROUSEL_FORWARD_CLICK), C.current && C.current.scrollTo({
|
|
14508
14544
|
left: (
|
|
14509
14545
|
// Adds the flex gap to the carousel ulRef's width
|
|
@@ -14656,7 +14692,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
14656
14692
|
n && /* @__PURE__ */ t("span", { "aria-label": n, style: { visibility: "hidden" } }),
|
|
14657
14693
|
/* @__PURE__ */ d(_A, { className: "mx-micro-card", sx: { backgroundColor: r }, variant: m, children: [
|
|
14658
14694
|
/* @__PURE__ */ t(
|
|
14659
|
-
|
|
14695
|
+
tt,
|
|
14660
14696
|
{
|
|
14661
14697
|
avatar: l && s,
|
|
14662
14698
|
subheader: /* @__PURE__ */ t("div", { className: "mx-micro-content-container", children: /* @__PURE__ */ t(
|
|
@@ -14739,7 +14775,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
14739
14775
|
posthog: n,
|
|
14740
14776
|
widthOverrides: r
|
|
14741
14777
|
}) => {
|
|
14742
|
-
const { carouselCopy: a } = Fe(), { onEvent: i } =
|
|
14778
|
+
const { carouselCopy: a } = Fe(), { onEvent: i } = bt(), o = window.app?.config.client_guid, s = () => {
|
|
14743
14779
|
i && (i(te.ON_VIEW_MORE_CLICKED), n?.capture && o && (e(), n.capture("micro_widget_clicked_insight", {
|
|
14744
14780
|
insight_template: "view_all",
|
|
14745
14781
|
$groups: { client: o }
|
|
@@ -14870,7 +14906,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
14870
14906
|
};
|
|
14871
14907
|
return (
|
|
14872
14908
|
// The Theme provider must wrap the component so that the styles don't break when imported into other applications.
|
|
14873
|
-
/* @__PURE__ */ d(
|
|
14909
|
+
/* @__PURE__ */ d(At, { theme: Se(L ? "dark" : "light"), children: [
|
|
14874
14910
|
/* @__PURE__ */ t(gs, {}),
|
|
14875
14911
|
/* @__PURE__ */ t(Gh, { onEvent: _, onPageview: k, store: pe, children: /* @__PURE__ */ d(
|
|
14876
14912
|
I,
|
|
@@ -14909,7 +14945,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
14909
14945
|
) })
|
|
14910
14946
|
] })
|
|
14911
14947
|
);
|
|
14912
|
-
},
|
|
14948
|
+
}, a7 = T(cg), lg = ({
|
|
14913
14949
|
ariaLabel: A,
|
|
14914
14950
|
carouselSize: e,
|
|
14915
14951
|
clientColorScheme: n,
|
|
@@ -14921,9 +14957,9 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
14921
14957
|
variant: c,
|
|
14922
14958
|
widthOverrides: u
|
|
14923
14959
|
}) => {
|
|
14924
|
-
const { cardsCopy: l } = Fe(), { onEvent: h } =
|
|
14960
|
+
const { cardsCopy: l } = Fe(), { onEvent: h } = bt(), { onPageview: C } = Bi(), f = window.app?.config.client_guid;
|
|
14925
14961
|
g.useEffect(() => {
|
|
14926
|
-
C(
|
|
14962
|
+
C(Ie.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS);
|
|
14927
14963
|
}, []);
|
|
14928
14964
|
const m = () => {
|
|
14929
14965
|
a && a(), h(te.ON_NO_RELEVANT_INSIGHTS_CLICKED), i?.capture && f && i.capture("micro_widget_clicked_insight", {
|
|
@@ -14975,7 +15011,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
14975
15011
|
}) => {
|
|
14976
15012
|
const u = DA(), l = window.app?.config.client_guid, { ref: h, inView: C } = kn({
|
|
14977
15013
|
threshold: zi
|
|
14978
|
-
}), { cardsCopy: f } = Fe(), { onEvent: m } =
|
|
15014
|
+
}), { cardsCopy: f } = Fe(), { onEvent: m } = bt();
|
|
14979
15015
|
he(() => {
|
|
14980
15016
|
C && m(Mi.ON_VIEW_MORE_VIEWED);
|
|
14981
15017
|
}, [C]), he(() => {
|
|
@@ -15025,7 +15061,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
15025
15061
|
}) => {
|
|
15026
15062
|
const { onPageview: c } = Bi(), { zeroStateCopy: u } = Fe();
|
|
15027
15063
|
return g.useEffect(() => {
|
|
15028
|
-
c(
|
|
15064
|
+
c(Ie.MICRO_WIDGET_CAROUSEL_ZERO_STATE);
|
|
15029
15065
|
}, []), /* @__PURE__ */ t(
|
|
15030
15066
|
sn,
|
|
15031
15067
|
{
|
|
@@ -15133,7 +15169,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
15133
15169
|
donutData: o,
|
|
15134
15170
|
totalAmount: i
|
|
15135
15171
|
};
|
|
15136
|
-
},
|
|
15172
|
+
}, jt = ({ amount: A, label: e }) => /* @__PURE__ */ d(w, { direction: "column", children: [
|
|
15137
15173
|
/* @__PURE__ */ t(v, { bold: !0, sx: { textTransform: "none" }, variant: "Body", children: e }),
|
|
15138
15174
|
/* @__PURE__ */ t(v, { variant: "XSmall", children: Q(A, "0,0") })
|
|
15139
15175
|
] }), mg = ({
|
|
@@ -15146,7 +15182,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
15146
15182
|
totalLabel: o,
|
|
15147
15183
|
variant: s = "mini"
|
|
15148
15184
|
}) => {
|
|
15149
|
-
const { spending: c } = D(), u =
|
|
15185
|
+
const { spending: c } = D(), u = et(), { isTablet: l } = kA(), h = g.useMemo(
|
|
15150
15186
|
() => a ? A.categoryData.find((y) => y.guid === a) : void 0,
|
|
15151
15187
|
[a]
|
|
15152
15188
|
), C = g.useMemo(() => A.donutData.length > 0 ? A.donutData : [{ id: "0", color: u.palette.border.light, value: 100 }], [A, u]), f = () => {
|
|
@@ -15189,7 +15225,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
15189
15225
|
}
|
|
15190
15226
|
)
|
|
15191
15227
|
] }) }) });
|
|
15192
|
-
},
|
|
15228
|
+
}, 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
15229
|
w,
|
|
15194
15230
|
{
|
|
15195
15231
|
alignItems: "center",
|
|
@@ -15242,7 +15278,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
15242
15278
|
UA,
|
|
15243
15279
|
{
|
|
15244
15280
|
label: /* @__PURE__ */ t(
|
|
15245
|
-
|
|
15281
|
+
jt,
|
|
15246
15282
|
{
|
|
15247
15283
|
amount: h.totalAmount,
|
|
15248
15284
|
label: e.spend_tab_title
|
|
@@ -15254,7 +15290,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
15254
15290
|
UA,
|
|
15255
15291
|
{
|
|
15256
15292
|
label: /* @__PURE__ */ t(
|
|
15257
|
-
|
|
15293
|
+
jt,
|
|
15258
15294
|
{
|
|
15259
15295
|
amount: C.totalAmount,
|
|
15260
15296
|
label: e.income_tab_title
|
|
@@ -15265,7 +15301,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
15265
15301
|
] }),
|
|
15266
15302
|
u === 0 && /* @__PURE__ */ t(I, { children: /* @__PURE__ */ d(w, { direction: "row", gap: 16, justifyContent: "center", p: 24, children: [
|
|
15267
15303
|
/* @__PURE__ */ t(
|
|
15268
|
-
|
|
15304
|
+
Ut,
|
|
15269
15305
|
{
|
|
15270
15306
|
data: h,
|
|
15271
15307
|
onSelected: m,
|
|
@@ -15284,7 +15320,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
15284
15320
|
] }) }),
|
|
15285
15321
|
u === 1 && /* @__PURE__ */ t(I, { children: /* @__PURE__ */ d(w, { direction: "row", gap: 16, justifyContent: "center", p: 24, children: [
|
|
15286
15322
|
/* @__PURE__ */ t(
|
|
15287
|
-
|
|
15323
|
+
Ut,
|
|
15288
15324
|
{
|
|
15289
15325
|
data: C,
|
|
15290
15326
|
isIncome: !0,
|
|
@@ -15309,7 +15345,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
15309
15345
|
children: /* @__PURE__ */ t(vg, {})
|
|
15310
15346
|
}
|
|
15311
15347
|
);
|
|
15312
|
-
},
|
|
15348
|
+
}, i7 = T(Eg), yg = ({
|
|
15313
15349
|
data: A,
|
|
15314
15350
|
onSelected: e,
|
|
15315
15351
|
selectedId: n = "",
|
|
@@ -15407,7 +15443,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
15407
15443
|
px: 8,
|
|
15408
15444
|
children: [
|
|
15409
15445
|
s && /* @__PURE__ */ t(
|
|
15410
|
-
|
|
15446
|
+
Ut,
|
|
15411
15447
|
{
|
|
15412
15448
|
data: {
|
|
15413
15449
|
categoryData: [],
|
|
@@ -15423,7 +15459,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
15423
15459
|
}
|
|
15424
15460
|
),
|
|
15425
15461
|
!s && /* @__PURE__ */ t(
|
|
15426
|
-
|
|
15462
|
+
Ut,
|
|
15427
15463
|
{
|
|
15428
15464
|
data: A,
|
|
15429
15465
|
onSelected: e,
|
|
@@ -15446,7 +15482,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
15446
15482
|
A.palette.chartMono.chartMono1,
|
|
15447
15483
|
A.palette.chartMono.chartMono6
|
|
15448
15484
|
], Tg = () => {
|
|
15449
|
-
const A =
|
|
15485
|
+
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
15486
|
g.useEffect(() => {
|
|
15451
15487
|
r(
|
|
15452
15488
|
o,
|
|
@@ -15497,7 +15533,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
15497
15533
|
UA,
|
|
15498
15534
|
{
|
|
15499
15535
|
label: /* @__PURE__ */ t(
|
|
15500
|
-
|
|
15536
|
+
jt,
|
|
15501
15537
|
{
|
|
15502
15538
|
amount: b.totalAmount,
|
|
15503
15539
|
label: a.spend_tab_title
|
|
@@ -15509,7 +15545,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
15509
15545
|
UA,
|
|
15510
15546
|
{
|
|
15511
15547
|
label: /* @__PURE__ */ t(
|
|
15512
|
-
|
|
15548
|
+
jt,
|
|
15513
15549
|
{
|
|
15514
15550
|
amount: S.totalAmount,
|
|
15515
15551
|
label: a.income_tab_title
|
|
@@ -15545,7 +15581,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
15545
15581
|
isOpen: E,
|
|
15546
15582
|
onClose: () => L(!1),
|
|
15547
15583
|
title: a.transactions_drawer_title,
|
|
15548
|
-
children: /* @__PURE__ */ t(
|
|
15584
|
+
children: /* @__PURE__ */ t(it, { onClick: y })
|
|
15549
15585
|
}
|
|
15550
15586
|
),
|
|
15551
15587
|
/* @__PURE__ */ t(
|
|
@@ -15555,7 +15591,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
15555
15591
|
isOpen: !!O,
|
|
15556
15592
|
onClose: () => y(""),
|
|
15557
15593
|
title: a.transaction_details_drawer_title,
|
|
15558
|
-
children: O && /* @__PURE__ */ t(
|
|
15594
|
+
children: O && /* @__PURE__ */ t(Lt, { transaction: O })
|
|
15559
15595
|
}
|
|
15560
15596
|
)
|
|
15561
15597
|
] });
|
|
@@ -15570,7 +15606,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
15570
15606
|
i(h[0], h[1]);
|
|
15571
15607
|
};
|
|
15572
15608
|
return !a || !c ? /* @__PURE__ */ t(ie, {}) : /* @__PURE__ */ t(
|
|
15573
|
-
|
|
15609
|
+
Re,
|
|
15574
15610
|
{
|
|
15575
15611
|
accountOptions: n,
|
|
15576
15612
|
calendarActions: { onRangeChanged: l },
|
|
@@ -15581,11 +15617,11 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
15581
15617
|
children: /* @__PURE__ */ t(I, { height: "calc(100dvh - 150px)", width: "100%", children: /* @__PURE__ */ t(bg, {}) })
|
|
15582
15618
|
}
|
|
15583
15619
|
);
|
|
15584
|
-
},
|
|
15620
|
+
}, o7 = T(Ig), Dg = (A) => {
|
|
15585
15621
|
const e = A.row[A.field];
|
|
15586
15622
|
return /* @__PURE__ */ t(w, { alignItems: "flex-end", tabIndex: A.tabIndex, children: /* @__PURE__ */ t(HA, { amount: e, variant: "Small" }) });
|
|
15587
15623
|
}, Og = ({ categoryGuid: A }) => {
|
|
15588
|
-
const { categories: e } = D(), n =
|
|
15624
|
+
const { categories: e } = D(), n = De[A];
|
|
15589
15625
|
return /* @__PURE__ */ d(w, { alignItems: "center", direction: "row", justifyContent: "center", children: [
|
|
15590
15626
|
/* @__PURE__ */ t(
|
|
15591
15627
|
I,
|
|
@@ -15700,7 +15736,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
15700
15736
|
[c, l]
|
|
15701
15737
|
);
|
|
15702
15738
|
return !h || !E ? /* @__PURE__ */ t(ie, {}) : /* @__PURE__ */ t(
|
|
15703
|
-
|
|
15739
|
+
Re,
|
|
15704
15740
|
{
|
|
15705
15741
|
accountOptions: s,
|
|
15706
15742
|
calendarActions: {
|
|
@@ -15837,7 +15873,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
15837
15873
|
)
|
|
15838
15874
|
}
|
|
15839
15875
|
);
|
|
15840
|
-
},
|
|
15876
|
+
}, s7 = T(Ng), Mg = (A) => {
|
|
15841
15877
|
const e = [], n = A.filter(
|
|
15842
15878
|
(i) => i.top_level_category_guid !== p.INCOME && i.top_level_category_guid !== p.TRANSFER && i.total > 0
|
|
15843
15879
|
);
|
|
@@ -15880,7 +15916,7 @@ const Lt = g.createContext(null), Gh = ({
|
|
|
15880
15916
|
children: /* @__PURE__ */ t(Hg, {})
|
|
15881
15917
|
}
|
|
15882
15918
|
);
|
|
15883
|
-
},
|
|
15919
|
+
}, c7 = T(zg);
|
|
15884
15920
|
export {
|
|
15885
15921
|
F as ANALYTICS_EVENTS,
|
|
15886
15922
|
na as AccountApi,
|
|
@@ -15902,7 +15938,7 @@ export {
|
|
|
15902
15938
|
b8 as BarChart,
|
|
15903
15939
|
$e as BeatApi,
|
|
15904
15940
|
$h as BeatCard,
|
|
15905
|
-
|
|
15941
|
+
Nt as BottomActions,
|
|
15906
15942
|
U8 as BubbleBudgetsMiniWidget,
|
|
15907
15943
|
W8 as BubbleBudgetsWidget,
|
|
15908
15944
|
Vs as Calendar,
|
|
@@ -15913,9 +15949,9 @@ export {
|
|
|
15913
15949
|
bu as CashflowOnboarding,
|
|
15914
15950
|
Ou as CashflowStore,
|
|
15915
15951
|
B8 as CashflowWidget,
|
|
15916
|
-
|
|
15952
|
+
_t as CategoryApi,
|
|
15917
15953
|
Je as CategoryColors,
|
|
15918
|
-
|
|
15954
|
+
De as CategoryGuidToName,
|
|
15919
15955
|
p as CategoryGuids,
|
|
15920
15956
|
_a as CategoryIcon,
|
|
15921
15957
|
Il as CategorySelector,
|
|
@@ -15924,16 +15960,16 @@ export {
|
|
|
15924
15960
|
Uh as ChartFilledIcon,
|
|
15925
15961
|
An as ConnectDrawer,
|
|
15926
15962
|
j8 as ConnectMiniWidget,
|
|
15927
|
-
|
|
15963
|
+
qe as ConnectionStatus,
|
|
15928
15964
|
RA as ConnectionStatusEnums,
|
|
15929
|
-
|
|
15965
|
+
Bt as CurrencyCodes,
|
|
15930
15966
|
Wn as CurrencyInput,
|
|
15931
15967
|
U as DATE_FORMATS_INTL,
|
|
15932
15968
|
qa as DEFAULT_DONUT_SIZE,
|
|
15933
15969
|
Ka as DEFAULT_STROKE_WIDTH,
|
|
15934
15970
|
Y8 as Dashboard,
|
|
15935
15971
|
On as DashboardLocation,
|
|
15936
|
-
|
|
15972
|
+
Xt as DataRow,
|
|
15937
15973
|
Mr as DateRangeSelector,
|
|
15938
15974
|
BA as Dialog,
|
|
15939
15975
|
ec as Donut,
|
|
@@ -15942,17 +15978,17 @@ export {
|
|
|
15942
15978
|
Kc as ExpenseStatus,
|
|
15943
15979
|
YA as Fetch,
|
|
15944
15980
|
XA as FieldType,
|
|
15945
|
-
|
|
15981
|
+
qt as GlobalCopyApi,
|
|
15946
15982
|
wc as GlobalCopyStore,
|
|
15947
|
-
|
|
15983
|
+
rt as GlobalDataContext,
|
|
15948
15984
|
I8 as GlobalDataProvider,
|
|
15949
15985
|
X8 as GlobalStore,
|
|
15950
15986
|
V8 as GoalsWidget,
|
|
15951
|
-
|
|
15987
|
+
n7 as HiddenInsightsDrawer,
|
|
15952
15988
|
Xn as INCOME_ACCOUNT_TYPES,
|
|
15953
|
-
|
|
15954
|
-
|
|
15955
|
-
|
|
15989
|
+
xe as IconBacking,
|
|
15990
|
+
Qt as InformationTooltip,
|
|
15991
|
+
a7 as InsightsMicroWidget,
|
|
15956
15992
|
Gh as InsightsMicroWidgetDataProvider,
|
|
15957
15993
|
Ts as IterationItemTypes,
|
|
15958
15994
|
L8 as LOADING_STATUS,
|
|
@@ -15960,16 +15996,16 @@ export {
|
|
|
15960
15996
|
yc as ListItemWrapper,
|
|
15961
15997
|
ie as Loader,
|
|
15962
15998
|
T8 as LocalizedCopyApi,
|
|
15963
|
-
|
|
15999
|
+
t7 as ManageAccountsDrawer,
|
|
15964
16000
|
Ci as ManageIncome,
|
|
15965
|
-
|
|
16001
|
+
Oe as MemberConnectionStatus,
|
|
15966
16002
|
q8 as MerchantLookup,
|
|
15967
16003
|
Hu as MerchantStore,
|
|
15968
16004
|
Ha as MfaStatuses,
|
|
15969
16005
|
ng as MicroBeatCarousel,
|
|
15970
16006
|
sn as MicroInsightCard,
|
|
15971
16007
|
Xe as MiniWidgetContainer,
|
|
15972
|
-
|
|
16008
|
+
$8 as MonthlyEmergencyFundReviewBody,
|
|
15973
16009
|
Vh as MonthlySpendComparisonIcon,
|
|
15974
16010
|
O8 as MultiSegmentDonut,
|
|
15975
16011
|
K8 as NetWorthList,
|
|
@@ -15986,6 +16022,12 @@ export {
|
|
|
15986
16022
|
Es as ProcessingStatuses,
|
|
15987
16023
|
Ra as PropertyType,
|
|
15988
16024
|
w8 as PropertyTypeName,
|
|
16025
|
+
vh as PulseGoalProgress,
|
|
16026
|
+
Eh as PulseGraidentBox,
|
|
16027
|
+
J8 as PulseIcon,
|
|
16028
|
+
ph as PulseProgressBar,
|
|
16029
|
+
Z8 as PulseSubHeader,
|
|
16030
|
+
sr as PulseTextComponent,
|
|
15989
16031
|
S8 as RECURRENCE_COPY,
|
|
15990
16032
|
q as RecurrenceTypes,
|
|
15991
16033
|
z8 as RecurringActivityMiniWidget,
|
|
@@ -15998,37 +16040,37 @@ export {
|
|
|
15998
16040
|
Gc as ScreenSize,
|
|
15999
16041
|
en as SearchBox,
|
|
16000
16042
|
zr as SelectionBox,
|
|
16001
|
-
|
|
16002
|
-
|
|
16043
|
+
A7 as SetUpDirectDepositBody,
|
|
16044
|
+
r7 as SettingsDrawer,
|
|
16003
16045
|
Ja as SingleSegmentDonut,
|
|
16004
16046
|
bs as Sizes,
|
|
16005
|
-
|
|
16006
|
-
|
|
16047
|
+
i7 as SpendingMiniWidget,
|
|
16048
|
+
o7 as SpendingWidget,
|
|
16007
16049
|
uc as StackedLineChart,
|
|
16008
|
-
|
|
16050
|
+
Kt as StatusBar,
|
|
16009
16051
|
y8 as StatusName,
|
|
16010
|
-
|
|
16011
|
-
|
|
16052
|
+
e7 as SwitchDirectDepositBody,
|
|
16053
|
+
ot as TOUCH_TARGET,
|
|
16012
16054
|
H as TRANSACTION_EVENTS,
|
|
16013
|
-
|
|
16014
|
-
|
|
16055
|
+
Gt as TabContentContainer,
|
|
16056
|
+
dt as TopActions,
|
|
16015
16057
|
qr as TransactionApi,
|
|
16016
|
-
|
|
16017
|
-
|
|
16058
|
+
Lt as TransactionDetails,
|
|
16059
|
+
it as TransactionList,
|
|
16018
16060
|
Jn as TransactionRow,
|
|
16019
16061
|
Vn as TransactionStatus,
|
|
16020
16062
|
Qc as TransactionStore,
|
|
16021
16063
|
cl as TransactionTable,
|
|
16022
16064
|
KA as TransactionType,
|
|
16023
16065
|
R8 as TransactionWidget,
|
|
16024
|
-
|
|
16025
|
-
|
|
16066
|
+
s7 as TrendsFullWidget,
|
|
16067
|
+
c7 as TrendsMiniWidget,
|
|
16026
16068
|
Dr as UserApi,
|
|
16027
16069
|
Zu as UserStore,
|
|
16028
16070
|
qc as UserVerification,
|
|
16029
16071
|
hg as ViewMoreMicroCard,
|
|
16030
16072
|
Or as WidgetApi,
|
|
16031
|
-
|
|
16073
|
+
Re as WidgetContainer,
|
|
16032
16074
|
ja as WidgetContainerContext,
|
|
16033
16075
|
Ua as WidgetContainerProvider,
|
|
16034
16076
|
Cg as ZeroStateCard,
|
|
@@ -16042,10 +16084,10 @@ export {
|
|
|
16042
16084
|
Os as formatPercentage,
|
|
16043
16085
|
vi as getAccountBalanceDetails,
|
|
16044
16086
|
au as getAccountDetailFields,
|
|
16045
|
-
|
|
16087
|
+
zt as getCategory,
|
|
16046
16088
|
fs as getCategoryTotalsByParent,
|
|
16047
16089
|
Is as getCurrencyCodes,
|
|
16048
|
-
|
|
16090
|
+
Me as getLocale,
|
|
16049
16091
|
k8 as getNotificationDetailRoute,
|
|
16050
16092
|
Sn as isValidNumber,
|
|
16051
16093
|
OA as useAccountStore,
|
|
@@ -16069,6 +16111,6 @@ export {
|
|
|
16069
16111
|
lA as useTransactionStore,
|
|
16070
16112
|
VA as useTransactionsUiStore,
|
|
16071
16113
|
$t as useUserStore,
|
|
16072
|
-
|
|
16114
|
+
St as useWidgetContainerProvider
|
|
16073
16115
|
};
|
|
16074
16116
|
//# sourceMappingURL=index.es.js.map
|