@mx-cartographer/experiences 6.2.7-alpha.al0 → 6.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js
CHANGED
@@ -6,7 +6,7 @@ import G from "@mui/material/Divider";
|
|
6
6
|
import ie from "@mui/material/List";
|
7
7
|
import Rt from "@mui/material/ListSubheader";
|
8
8
|
import Ee from "@mui/system/Stack";
|
9
|
-
import { AccountsIcon as yl, P as Oe, Icon as H, useTokens as ft, Text as p, H2 as
|
9
|
+
import { AccountsIcon as yl, P as Oe, Icon as H, useTokens as ft, Text as p, H2 as Fn, CategoryIcon as kt, DialogHeader as El, DialogFooter as Sl, Drawer as Tl, Footer as Al, DateRangePicker as Xr, H3 as mt, H1 as cn, TextField as An, IconWeight as bt, MerchantLogo as ln, CategoryIconVariants as Is, InstitutionLogo as pt, ChevronRightIcon as Il, THEMES as qr } from "@mxenabled/mxui";
|
10
10
|
import xl from "bowser";
|
11
11
|
import { getUnixTime as Le } from "date-fns/getUnixTime";
|
12
12
|
import { intlFormat as vl } from "date-fns/intlFormat";
|
@@ -17,13 +17,13 @@ import { addYears as ni } from "date-fns/addYears";
|
|
17
17
|
import { getDay as ii } from "date-fns/getDay";
|
18
18
|
import { isBefore as we } from "date-fns/isBefore";
|
19
19
|
import { nextDay as Ti } from "date-fns/nextDay";
|
20
|
-
import { setDate as
|
20
|
+
import { setDate as ji } from "date-fns/setDate";
|
21
21
|
import { startOfToday as le } from "date-fns/startOfToday";
|
22
22
|
import { fromUnixTime as Me } from "date-fns/fromUnixTime";
|
23
|
-
import { Honeybadger as
|
23
|
+
import { Honeybadger as Fi } from "@honeybadger-io/react";
|
24
24
|
import Ja from "numeral";
|
25
25
|
import ee from "@mui/material/Button";
|
26
|
-
import
|
26
|
+
import Wn from "@mui/material/Tooltip";
|
27
27
|
import $e from "@mui/material/IconButton";
|
28
28
|
import er from "@mui/material/FormControlLabel";
|
29
29
|
import X from "@mui/material/ListItem";
|
@@ -31,10 +31,10 @@ import de from "@mui/material/ListItemButton";
|
|
31
31
|
import re from "@mui/material/ListItemText";
|
32
32
|
import xs from "@mui/material/Popover";
|
33
33
|
import b from "@mui/material/Stack";
|
34
|
-
import
|
35
|
-
import { alpha as wl, lighten as Zr, darken as Qr, Stack as ye, Box as nn, useTheme as vn, Card as
|
34
|
+
import Xi from "@mui/material/Checkbox";
|
35
|
+
import { alpha as wl, lighten as Zr, darken as Qr, Stack as ye, Box as nn, useTheme as vn, Card as ca, CardContent as Nl, Button as Dl, List as Rl, Divider as Ol } from "@mui/material";
|
36
36
|
import pe from "@mui/material/styles/useTheme";
|
37
|
-
import
|
37
|
+
import Mn from "@mui/material/useMediaQuery";
|
38
38
|
import { css as Qt, keyframes as Ll } from "@mxenabled/cssinjs";
|
39
39
|
import { addDays as Mt } from "date-fns/addDays";
|
40
40
|
import { eachDayOfInterval as Ml } from "date-fns/eachDayOfInterval";
|
@@ -66,26 +66,26 @@ import ed from "@mui/material/ButtonGroup";
|
|
66
66
|
import Ve from "@mui/material/Tab";
|
67
67
|
import Lt from "@mui/material/Tabs";
|
68
68
|
import Ni from "@mui/material/ToggleButton";
|
69
|
-
import
|
69
|
+
import la from "@mui/material/ToggleButtonGroup";
|
70
70
|
import td from "@mui/material/Dialog";
|
71
71
|
import ws from "@mui/material/DialogContent";
|
72
72
|
import nd from "@mui/icons-material/ArrowBackOutlined";
|
73
73
|
import wn from "@mui/material/CardHeader";
|
74
|
-
import { Icon as yt, AccountBalance as id, ChevronRight as At, Payments as ad, NoteStack as rd, Person as od, CheckCircle as
|
74
|
+
import { Icon as yt, AccountBalance as id, ChevronRight as At, Payments as ad, NoteStack as rd, Person as od, CheckCircle as da, ExpandLess as sd, ExpandMore as cd, AddBox as Ns, Star as ld, Settings as dd, Delete as ud, Schedule as _d, MonetizationOn as hd, Cancel as Ds, Add as gd } from "@mxenabled/mx-icons";
|
75
75
|
import { ConnectWidget as md, ConnectionsWidget as pd } from "@mxenabled/web-widget-sdk";
|
76
76
|
import _r from "@mui/material/CircularProgress";
|
77
77
|
import { v4 as Cd } from "uuid";
|
78
|
-
import
|
78
|
+
import qi from "@mui/material/InputAdornment";
|
79
79
|
import fd from "@mui/material/Radio";
|
80
80
|
import Jt from "@mui/material/Avatar";
|
81
81
|
import Ge from "@mui/material/ListItemAvatar";
|
82
82
|
import Ct from "@mui/material/ListItemIcon";
|
83
|
-
import
|
83
|
+
import ua from "@mui/material/Switch";
|
84
84
|
import { makeAutoObservable as Be, runInAction as Y, reaction as bd, observable as yd } from "mobx";
|
85
85
|
import Ed, { SurveyQuestionType as to } from "posthog-js";
|
86
86
|
import { differenceInDays as Sd } from "date-fns/differenceInDays";
|
87
|
-
import
|
88
|
-
import
|
87
|
+
import _a from "@mui/icons-material/ChevronRight";
|
88
|
+
import ha from "@mui/icons-material/ExpandMore";
|
89
89
|
import { DataGridPro as jn } from "@mui/x-data-grid-pro";
|
90
90
|
import { intervalToDuration as Td, formatDuration as Ad, getDate as no, fromUnixTime as Ai, startOfMonth as io, format as On, differenceInMonths as Id, isSameDay as xd, subDays as vd, startOfToday as wd, endOfToday as Nd } from "date-fns";
|
91
91
|
import xn from "@mui/material/Alert";
|
@@ -97,7 +97,7 @@ import { isAfter as Zt } from "date-fns/isAfter";
|
|
97
97
|
import { subWeeks as ao } from "date-fns/subWeeks";
|
98
98
|
import { formatISO as ci } from "date-fns/formatISO";
|
99
99
|
import { AdapterDateFns as gn } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
100
|
-
import { DatePicker as
|
100
|
+
import { DatePicker as ga } from "@mui/x-date-pickers";
|
101
101
|
import { LocalizationProvider as Nn } from "@mui/x-date-pickers/LocalizationProvider";
|
102
102
|
import it from "@mui/material/TextField";
|
103
103
|
import { isValid as hr } from "date-fns/isValid";
|
@@ -109,29 +109,29 @@ import Oi from "@mui/material/Accordion";
|
|
109
109
|
import Li from "@mui/material/AccordionDetails";
|
110
110
|
import Mi from "@mui/material/AccordionSummary";
|
111
111
|
import Dd from "@mui/material/Breadcrumbs";
|
112
|
-
import
|
112
|
+
import ma from "@mui/material/MenuItem";
|
113
113
|
import Rd from "@mui/material/RadioGroup";
|
114
114
|
import Ii from "@mui/icons-material/DeleteOutlined";
|
115
|
-
import
|
115
|
+
import Zi from "@mui/icons-material/Cancel";
|
116
116
|
import Od from "@mui/icons-material/HighlightOff";
|
117
117
|
import Ld from "@mui/icons-material/Search";
|
118
118
|
import Md from "@mui/icons-material/Edit";
|
119
119
|
import kd from "@mui/material/FormGroup";
|
120
120
|
import Gd from "@mui/icons-material/FlagOutlined";
|
121
121
|
import Bd from "@mui/icons-material/ReceiptOutlined";
|
122
|
-
import { getWeeksInMonth as
|
122
|
+
import { getWeeksInMonth as Qi } from "date-fns/getWeeksInMonth";
|
123
123
|
import gr from "@mui/material/Badge";
|
124
124
|
import { PickersDay as Ms } from "@mui/x-date-pickers/PickersDay";
|
125
125
|
import Pd from "@mui/icons-material/AccessTimeFilled";
|
126
126
|
import Hd from "@mui/icons-material/MonetizationOn";
|
127
|
-
import
|
127
|
+
import pa from "@mui/icons-material/CheckCircle";
|
128
128
|
import { getDate as ei } from "date-fns/getDate";
|
129
129
|
import zt from "@mui/material/Unstable_Grid2";
|
130
|
-
import
|
130
|
+
import Ca from "@mui/material/Collapse";
|
131
131
|
import ks from "@mui/material/CardActionArea";
|
132
132
|
import $d from "@mui/icons-material/DragHandle";
|
133
133
|
import nr from "@mui/material/AlertTitle";
|
134
|
-
import
|
134
|
+
import fa from "@mui/icons-material/Error";
|
135
135
|
import Fd from "@mui/material/Chip";
|
136
136
|
import Wd from "@mui/icons-material/EditOutlined";
|
137
137
|
import { isToday as mr } from "date-fns/isToday";
|
@@ -315,7 +315,7 @@ const tu = async (e, n, i = "1.0.0", a = "Experiences") => {
|
|
315
315
|
TRENDS_HOVER_POINT: "trends_widget_hover_chart_point",
|
316
316
|
TRENDS_VIEW_TRANSACTIONS: "trends_widget_view_transactions",
|
317
317
|
WIDGET_BACK_CLICK: "widget_back_button_click"
|
318
|
-
}, Ln = "do",
|
318
|
+
}, Ln = "do", I2 = "MMM do, yyyy", te = {
|
319
319
|
TIME_STAMP_HOUR_MINUTE: {
|
320
320
|
hour: "numeric",
|
321
321
|
minute: "numeric"
|
@@ -371,7 +371,7 @@ const tu = async (e, n, i = "1.0.0", a = "Experiences") => {
|
|
371
371
|
day: "numeric",
|
372
372
|
year: "numeric"
|
373
373
|
}
|
374
|
-
}, ae = (e, n) => vl(new Date(e), Object.assign(n), { locale:
|
374
|
+
}, ae = (e, n) => vl(new Date(e), Object.assign(n), { locale: Hn() });
|
375
375
|
var oe = /* @__PURE__ */ ((e) => (e[e.ANY = 0] = "ANY", e[e.CHECKING = 1] = "CHECKING", e[e.SAVINGS = 2] = "SAVINGS", e[e.LOAN = 3] = "LOAN", e[e.CREDIT_CARD = 4] = "CREDIT_CARD", e[e.INVESTMENT = 5] = "INVESTMENT", e[e.LINE_OF_CREDIT = 6] = "LINE_OF_CREDIT", e[e.MORTGAGE = 7] = "MORTGAGE", e[e.PROPERTY = 8] = "PROPERTY", e[e.CASH = 9] = "CASH", e[e.INSURANCE = 10] = "INSURANCE", e[e.PREPAID = 11] = "PREPAID", e[e.CHECKING_LINE_OF_CREDIT = 12] = "CHECKING_LINE_OF_CREDIT", e[e.DIGITAL_WALLET = 13] = "DIGITAL_WALLET", e))(oe || {}), nu = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.MONEY_MARKET = 1] = "MONEY_MARKET", e[e.CERTIFICATE_OF_DEPOSIT = 2] = "CERTIFICATE_OF_DEPOSIT", e[e.AUTO = 3] = "AUTO", e[e.STUDENT = 4] = "STUDENT", e[e.SMALL_BUSINESS = 5] = "SMALL_BUSINESS", e[e.PERSONAL = 6] = "PERSONAL", e[e.PERSONAL_WITH_COLLATERAL = 7] = "PERSONAL_WITH_COLLATERAL", e[e.HOME_EQUITY = 8] = "HOME_EQUITY", e[e.PLAN_401_K = 9] = "PLAN_401_K", e[e.PLAN_403_B = 10] = "PLAN_403_B", e[e.PLAN_529 = 11] = "PLAN_529", e[e.IRA = 12] = "IRA", e[e.ROLLOVER_IRA = 13] = "ROLLOVER_IRA", e[e.ROTH_IRA = 14] = "ROTH_IRA", e[e.TAXABLE = 15] = "TAXABLE", e[e.NON_TAXABLE = 16] = "NON_TAXABLE", e[e.BROKERAGE = 17] = "BROKERAGE", e[e.TRUST = 18] = "TRUST", e[e.UNIFORM_GIFTS_TO_MINORS_ACT = 19] = "UNIFORM_GIFTS_TO_MINORS_ACT", e[e.PLAN_457 = 20] = "PLAN_457", e[e.PENSION = 21] = "PENSION", e[e.EMPLOYEE_STOCK_OWNERSHIP_PLAN = 22] = "EMPLOYEE_STOCK_OWNERSHIP_PLAN", e[e.SIMPLIFIED_EMPLOYEE_PENSION = 23] = "SIMPLIFIED_EMPLOYEE_PENSION", e[e.SIMPLE_IRA = 24] = "SIMPLE_IRA", e[e.BOAT = 25] = "BOAT", e[e.POWERSPORTS = 26] = "POWERSPORTS", e[e.RV = 27] = "RV", e[e.HELOC = 28] = "HELOC", e[e.PLAN_ROTH_401_K = 29] = "PLAN_ROTH_401_K", e[e.FIXED_ANNUITY = 30] = "FIXED_ANNUITY", e[e.VARIABLE_ANNUITY = 31] = "VARIABLE_ANNUITY", e[e.VEHICLE_INSURANCE = 32] = "VEHICLE_INSURANCE", e[e.DISABILITY = 33] = "DISABILITY", e[e.HEALTH = 34] = "HEALTH", e[e.LONG_TERM_CARE = 35] = "LONG_TERM_CARE", e[e.PROPERTY_AND_CASUALTY = 36] = "PROPERTY_AND_CASUALTY", e[e.UNIVERSAL_LIFE = 37] = "UNIVERSAL_LIFE", e[e.TERM_LIFE = 38] = "TERM_LIFE", e[e.WHOLE_LIFE = 39] = "WHOLE_LIFE", e[e.ACCIDENTAL_DEATH_AND_DISMEMBERMENT = 40] = "ACCIDENTAL_DEATH_AND_DISMEMBERMENT", e[e.VARIABLE_UNIVERSAL_LIFE = 41] = "VARIABLE_UNIVERSAL_LIFE", e[e.HSA = 42] = "HSA", e[e.TAX_FREE_SAVINGS_ACCOUNT = 43] = "TAX_FREE_SAVINGS_ACCOUNT", e[e.INDIVIDUAL = 44] = "INDIVIDUAL", e[e.REGISTERED_RETIREMENT_INCOME_FUND = 45] = "REGISTERED_RETIREMENT_INCOME_FUND", e[e.CASH_MANAGEMENT_ACCOUNT = 46] = "CASH_MANAGEMENT_ACCOUNT", e[e.EMPLOYEE_STOCK_PURCHASE_PLAN = 47] = "EMPLOYEE_STOCK_PURCHASE_PLAN", e[e.REGISTERED_EDUCATION_SAVINGS_PLAN = 48] = "REGISTERED_EDUCATION_SAVINGS_PLAN", e[e.PROFIT_SHARING_PLAN = 49] = "PROFIT_SHARING_PLAN", e[e.UNIFORM_TRANSFER_TO_MINORS_ACT = 50] = "UNIFORM_TRANSFER_TO_MINORS_ACT", e[e.PLAN_401_A = 51] = "PLAN_401_A", e[e.SARSEP_IRA = 52] = "SARSEP_IRA", e[e.FIXED_ANNUITY_TRADITIONAL_IRA = 53] = "FIXED_ANNUITY_TRADITIONAL_IRA", e[e.VARIABLE_ANNUITY_TRADITIONAL_IRA = 54] = "VARIABLE_ANNUITY_TRADITIONAL_IRA", e[e.SEPP_IRA = 55] = "SEPP_IRA", e[e.INHERITED_TRADITIONAL_IRA = 56] = "INHERITED_TRADITIONAL_IRA", e[e.FIXED_ANNUITY_ROTH_IRA = 57] = "FIXED_ANNUITY_ROTH_IRA", e[e.VARIABLE_ANNUITY_ROTH_IRA = 58] = "VARIABLE_ANNUITY_ROTH_IRA", e[e.INHERITED_ROTH_IRA = 59] = "INHERITED_ROTH_IRA", e[e.COVERDELL = 60] = "COVERDELL", e[e.ADVISORY_ACCOUNT = 61] = "ADVISORY_ACCOUNT", e[e.BROKERAGE_MARGIN = 62] = "BROKERAGE_MARGIN", e[e.CHARITABLE_GIFT_ACCOUNT = 63] = "CHARITABLE_GIFT_ACCOUNT", e[e.CHURCH_ACCOUNT = 64] = "CHURCH_ACCOUNT", e[e.CONSERVATORSHIP = 65] = "CONSERVATORSHIP", e[e.CUSTODIAL = 66] = "CUSTODIAL", e[e.DEFINED_BENEFIT_PLAN = 67] = "DEFINED_BENEFIT_PLAN", e[e.DEFINED_CONTRIBUTION_PLAN = 68] = "DEFINED_CONTRIBUTION_PLAN", e[e.EDUCATIONAL = 69] = "EDUCATIONAL", e[e.ESTATE = 70] = "ESTATE", e[e.EXECUTOR = 71] = "EXECUTOR", e[e.GROUP_RETIREMENT_SAVINGS_PLAN = 72] = "GROUP_RETIREMENT_SAVINGS_PLAN", e[e.GUARANTEED_INVESTMENT_CERTIFICATE = 73] = "GUARANTEED_INVESTMENT_CERTIFICATE", e[e.HRA = 74] = "HRA", e[e.INDEXED_ANNUITY = 75] = "INDEXED_ANNUITY", e[e.INVESTMENT_CLUB = 76] = "INVESTMENT_CLUB", e[e.IRREVOCABLE_TRUST = 77] = "IRREVOCABLE_TRUST", e[e.JOINT_TENANTS_BY_ENTIRITY = 78] = "JOINT_TENANTS_BY_ENTIRITY", e[e.JOINT_TENANTS_COMMUNITY_PROPERTY = 79] = "JOINT_TENANTS_COMMUNITY_PROPERTY", e[e.JOINT_TENANTS_IN_COMMON = 80] = "JOINT_TENANTS_IN_COMMON", e[e.JOINT_TENANTS_WITH_RIGHTS_OF_SURVIVORSHIP = 81] = "JOINT_TENANTS_WITH_RIGHTS_OF_SURVIVORSHIP", e[e.KEOUGH_PLAN = 82] = "KEOUGH_PLAN", e[e.LIFE_INCOME_FUND = 83] = "LIFE_INCOME_FUND", e[e.LIVING_TRUST = 84] = "LIVING_TRUST", e[e.LOCKED_IN_RETIREMENT_ACCOUNT = 85] = "LOCKED_IN_RETIREMENT_ACCOUNT", e[e.LOCKED_IN_RETIREMENT_INVESTMENT_FUND = 86] = "LOCKED_IN_RETIREMENT_INVESTMENT_FUND", e[e.LOCKED_IN_RETIREMENT_SAVINGS_ACCOUNT = 87] = "LOCKED_IN_RETIREMENT_SAVINGS_ACCOUNT", e[e.MONEY_PURCHASE_PLAN = 88] = "MONEY_PURCHASE_PLAN", e[e.PARTNERSHIP = 89] = "PARTNERSHIP", e[e.PLAN_409_A = 90] = "PLAN_409_A", e[e.PLAN_ROTH_403_B = 91] = "PLAN_ROTH_403_B", e[e.REGISTERED_DISABILITY_SAVINGS_PLAN = 92] = "REGISTERED_DISABILITY_SAVINGS_PLAN", e[e.REGISTERED_LOCKED_IN_SAVINGS_PLAN = 93] = "REGISTERED_LOCKED_IN_SAVINGS_PLAN", e[e.REGISTERED_PENSION_PLAN = 94] = "REGISTERED_PENSION_PLAN", e[e.REGISTERED_RETIREMENT_SAVINGS_PLAN = 95] = "REGISTERED_RETIREMENT_SAVINGS_PLAN", e[e.REVOCABLE_TRUST = 96] = "REVOCABLE_TRUST", e[e.ROTH_CONVERSION = 97] = "ROTH_CONVERSION", e[e.SOLE_PROPRIETORSHIP = 98] = "SOLE_PROPRIETORSHIP", e[e.SPOUSAL_IRA = 99] = "SPOUSAL_IRA", e[e.SPOUSAL_ROTH_IRA = 100] = "SPOUSAL_ROTH_IRA", e[e.TESTAMENTARY_TRUST = 101] = "TESTAMENTARY_TRUST", e[e.THRIFT_SAVINGS_PLAN = 102] = "THRIFT_SAVINGS_PLAN", e[e.INHERITED_ANNUITY = 103] = "INHERITED_ANNUITY", e[e.CORPORATE_ACCOUNT = 104] = "CORPORATE_ACCOUNT", e[e.LIMITED_LIABILITY_ACCOUNT = 105] = "LIMITED_LIABILITY_ACCOUNT", e[e.HSA_SAVINGS = 106] = "HSA_SAVINGS", e[e.HSA_CHECKING = 107] = "HSA_CHECKING", e))(nu || {}), Ps = /* @__PURE__ */ ((e) => (e[e.REAL_ESTATE = 0] = "REAL_ESTATE", e[e.VEHICLE = 1] = "VEHICLE", e[e.ART = 2] = "ART", e[e.JEWELRY = 3] = "JEWELRY", e[e.FURNITURE = 4] = "FURNITURE", e[e.APPLIANCES = 5] = "APPLIANCES", e[e.COMPUTER = 6] = "COMPUTER", e[e.ELECTRONICS = 7] = "ELECTRONICS", e[e.SPORTS_EQUIPMENT = 8] = "SPORTS_EQUIPMENT", e[e.MISCELLANEOUS = 9] = "MISCELLANEOUS", e))(Ps || {}), ht = /* @__PURE__ */ ((e) => (e[e.CREATED = 0] = "CREATED", e[e.PREVENTED = 1] = "PREVENTED", e[e.DENIED = 2] = "DENIED", e[e.CHALLENGED = 3] = "CHALLENGED", e[e.REJECTED = 4] = "REJECTED", e[e.LOCKED = 5] = "LOCKED", e[e.CONNECTED = 6] = "CONNECTED", e[e.IMPEDED = 7] = "IMPEDED", e[e.RECONNECTED = 8] = "RECONNECTED", e[e.DEGRADED = 9] = "DEGRADED", e[e.DISCONNECTED = 10] = "DISCONNECTED", e[e.DISCONTINUED = 11] = "DISCONTINUED", e[e.CLOSED = 12] = "CLOSED", e[e.DELAYED = 13] = "DELAYED", e[e.FAILED = 14] = "FAILED", e[e.UPDATED = 15] = "UPDATED", e[e.DISABLED = 16] = "DISABLED", e[e.IMPORTED = 17] = "IMPORTED", e[e.RESUMED = 18] = "RESUMED", e[e.EXPIRED = 19] = "EXPIRED", e[e.IMPAIRED = 20] = "IMPAIRED", e[e.PENDING = 21] = "PENDING", e))(ht || {});
|
376
376
|
const iu = [
|
377
377
|
0,
|
@@ -400,7 +400,7 @@ const iu = [
|
|
400
400
|
/* IMPAIRED */
|
401
401
|
], Fs = [...$s, ...Hs];
|
402
402
|
var Kn = /* @__PURE__ */ ((e) => (e.Connected = "Connected", e.Error = "Error", e.Processing = "Processing", e.RequiresMfa = "RequiresMfa", e))(Kn || {});
|
403
|
-
const
|
403
|
+
const x2 = {
|
404
404
|
3: "Challenged",
|
405
405
|
12: "Closed",
|
406
406
|
9: "Degraded",
|
@@ -450,7 +450,7 @@ const A2 = {
|
|
450
450
|
2: "savings"
|
451
451
|
}, au = {
|
452
452
|
5: "bid_landscape"
|
453
|
-
},
|
453
|
+
}, v2 = {
|
454
454
|
0: "Real Estate",
|
455
455
|
1: "Vehicle",
|
456
456
|
2: "Art",
|
@@ -621,7 +621,7 @@ const A2 = {
|
|
621
621
|
N.CREDIT_CARD_PAYMENT,
|
622
622
|
N.MORTGAGE_PAYMENT,
|
623
623
|
N.AUTO_PAYMENT
|
624
|
-
],
|
624
|
+
], ba = {
|
625
625
|
// Top-level categories
|
626
626
|
[N.AUTO_AND_TRANSPORT]: "Auto & Transport",
|
627
627
|
[N.BILLS_AND_UTILITIES]: "Bills & Utilities",
|
@@ -743,7 +743,7 @@ const A2 = {
|
|
743
743
|
[N.DENTIST]: "Dentist",
|
744
744
|
[N.BONUS]: "Bonus",
|
745
745
|
[N.PET_FOOD_SUPPLIES]: "Pet Food & Supplies"
|
746
|
-
},
|
746
|
+
}, Gn = {
|
747
747
|
[N.AUTO_AND_TRANSPORT]: "#4B9DBC",
|
748
748
|
[N.BILLS_AND_UTILITIES]: "#EF9B2C",
|
749
749
|
[N.BUSINESS_SERVICES]: "#B3DE8C",
|
@@ -789,8 +789,8 @@ const A2 = {
|
|
789
789
|
[N.UNCATEGORIZED]: "category",
|
790
790
|
UNKNOWN: "help"
|
791
791
|
}, co = 9999999999e-2;
|
792
|
-
var
|
793
|
-
const
|
792
|
+
var Ji = /* @__PURE__ */ ((e) => (e.CAD = "CAD", e.USD = "USD", e))(Ji || {}), Q = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.EveryWeek = 1] = "EveryWeek", e[e.EveryOtherWeek = 2] = "EveryOtherWeek", e[e.EveryMonth = 3] = "EveryMonth", e[e.EveryOtherMonth = 4] = "EveryOtherMonth", e[e.EveryQuarter = 5] = "EveryQuarter", e[e.EveryOtherQuarter = 6] = "EveryOtherQuarter", e[e.EveryYear = 7] = "EveryYear", e))(Q || {});
|
793
|
+
const w2 = [
|
794
794
|
{ id: 0, copy: "frequency_unknown" },
|
795
795
|
{ id: 1, copy: "frequency_every_week" },
|
796
796
|
{ id: 2, copy: "frequency_every_other_week" },
|
@@ -799,7 +799,7 @@ const x2 = [
|
|
799
799
|
{ id: 5, copy: "frequency_every_quarter" },
|
800
800
|
{ id: 6, copy: "frequency_every_other_quarter" },
|
801
801
|
{ id: 7, copy: "frequency_every_year" }
|
802
|
-
],
|
802
|
+
], N2 = {
|
803
803
|
ERROR: "ERROR",
|
804
804
|
LOADING: "LOADING",
|
805
805
|
SUCCESS: "SUCCESS"
|
@@ -811,7 +811,7 @@ const hn = 44, lo = (e, n) => e.find((i) => i.guid === n), du = (e, n) => e.find
|
|
811
811
|
const i = e.find((a) => a.subCategories.find((r) => r.guid === n));
|
812
812
|
if (i)
|
813
813
|
return i.subCategories.find((a) => a.guid === n);
|
814
|
-
},
|
814
|
+
}, D2 = (e, n) => {
|
815
815
|
const i = [];
|
816
816
|
for (const a of n) {
|
817
817
|
const r = lo(e, a.category_guid);
|
@@ -832,25 +832,25 @@ const hn = 44, lo = (e, n) => e.find((i) => i.guid === n), du = (e, n) => e.find
|
|
832
832
|
});
|
833
833
|
}
|
834
834
|
return i;
|
835
|
-
},
|
835
|
+
}, R2 = (e, n) => {
|
836
836
|
const i = e.find((a) => a.guid === n);
|
837
837
|
return i ? i.guid === N.INCOME || i.parent_guid === N.INCOME : !1;
|
838
|
-
},
|
838
|
+
}, ya = (e) => {
|
839
839
|
const n = ii(e);
|
840
840
|
let i = Ti(e, n);
|
841
841
|
for (; we(i, le()); )
|
842
842
|
i = Qn(i, 1);
|
843
843
|
return i;
|
844
844
|
}, Ks = (e) => {
|
845
|
-
const n =
|
845
|
+
const n = ya(e);
|
846
846
|
return Qn(n, 1);
|
847
|
-
},
|
848
|
-
let n =
|
847
|
+
}, ea = (e) => {
|
848
|
+
let n = ji(le(), e.getDate());
|
849
849
|
for (; we(n, le()); )
|
850
850
|
n = gt(n, 1);
|
851
851
|
return n;
|
852
852
|
}, zs = (e) => {
|
853
|
-
const n =
|
853
|
+
const n = ya(e);
|
854
854
|
return gt(n, 1);
|
855
855
|
}, yr = (e) => {
|
856
856
|
let n = Sn(e, 1);
|
@@ -883,7 +883,7 @@ const hn = 44, lo = (e, n) => e.find((i) => i.guid === n), du = (e, n) => e.find
|
|
883
883
|
[]
|
884
884
|
);
|
885
885
|
return i ? r : r.join("");
|
886
|
-
},
|
886
|
+
}, O2 = (e, n, i, ...a) => !e || !n ? "" : S(i === 1 ? e : n, ...a), Hn = () => (window?.app?.options?.language || document.querySelector("html")?.getAttribute("lang") || "en-US").toLowerCase();
|
887
887
|
class rt {
|
888
888
|
endpoint = "/";
|
889
889
|
headers;
|
@@ -891,7 +891,7 @@ class rt {
|
|
891
891
|
this.endpoint = n;
|
892
892
|
const r = {
|
893
893
|
Accept: "application/json",
|
894
|
-
"Accept-Language":
|
894
|
+
"Accept-Language": Hn(),
|
895
895
|
"Content-Type": "application/json",
|
896
896
|
"MD-Session-Token": i
|
897
897
|
};
|
@@ -907,7 +907,7 @@ class rt {
|
|
907
907
|
return a.text();
|
908
908
|
throw a;
|
909
909
|
}).then((a) => a.length ? JSON.parse(a) : {}).then((a) => a).catch((a) => {
|
910
|
-
throw
|
910
|
+
throw Fi.notify(a), a;
|
911
911
|
});
|
912
912
|
};
|
913
913
|
post = async (n, i) => {
|
@@ -921,7 +921,7 @@ class rt {
|
|
921
921
|
throw o;
|
922
922
|
return o.text();
|
923
923
|
}).then((o) => o.length ? JSON.parse(o) : {}).then((o) => o).catch((o) => {
|
924
|
-
throw
|
924
|
+
throw Fi.notify(o), o;
|
925
925
|
});
|
926
926
|
};
|
927
927
|
put = async (n, i) => {
|
@@ -933,7 +933,7 @@ class rt {
|
|
933
933
|
return fetch(`${this.endpoint}${n}`, r).then((o) => o.ok ? o.text() : o.text().then((s) => {
|
934
934
|
throw new Error(s);
|
935
935
|
})).then((o) => o.length ? JSON.parse(o) : {}).then((o) => o).catch((o) => {
|
936
|
-
throw
|
936
|
+
throw Fi.notify(o), o;
|
937
937
|
});
|
938
938
|
};
|
939
939
|
delete = async (n) => {
|
@@ -944,29 +944,29 @@ class rt {
|
|
944
944
|
return fetch(`${this.endpoint}${n}`, i).then((a) => a.ok ? a.text() : a.text().then((r) => {
|
945
945
|
throw new Error(r);
|
946
946
|
})).then((a) => a.length ? JSON.parse(a) : {}).then((a) => a).catch((a) => {
|
947
|
-
throw
|
947
|
+
throw Fi.notify(a), a;
|
948
948
|
});
|
949
949
|
};
|
950
950
|
}
|
951
951
|
const B = (e, n, i) => {
|
952
|
-
switch (
|
952
|
+
switch (Hn()) {
|
953
953
|
case "fr-ca":
|
954
954
|
return Ja(e).format(`${n} $`, i);
|
955
955
|
default:
|
956
956
|
return Ja(e).format(`$${n}`, i);
|
957
957
|
}
|
958
958
|
}, hu = () => {
|
959
|
-
switch (
|
959
|
+
switch (Hn()) {
|
960
960
|
case "fr-ca":
|
961
|
-
return
|
961
|
+
return Ji.CAD;
|
962
962
|
default:
|
963
|
-
return
|
963
|
+
return Ji.USD;
|
964
964
|
}
|
965
965
|
}, ir = (e) => e != null && e !== "" && isFinite(e), gu = {
|
966
966
|
style: "percent",
|
967
967
|
minimumFractionDigits: 2,
|
968
968
|
maximumFractionDigits: 2
|
969
|
-
},
|
969
|
+
}, Ea = (e, n = gu) => ir(e) ? new Intl.NumberFormat(Hn(), n).format(Number(e)) : e, mu = (e) => new Intl.PluralRules(Hn(), e), qs = (e, n = { type: "ordinal" }, i = {
|
970
970
|
one: "st",
|
971
971
|
two: "nd",
|
972
972
|
few: "rd",
|
@@ -974,7 +974,7 @@ const B = (e, n, i) => {
|
|
974
974
|
}) => {
|
975
975
|
const a = mu(n).select(e);
|
976
976
|
return `${e}${i[a]}`;
|
977
|
-
},
|
977
|
+
}, L2 = (e, n) => {
|
978
978
|
const i = (o, s) => {
|
979
979
|
const c = n?.[o];
|
980
980
|
return {
|
@@ -1130,7 +1130,7 @@ class yi {
|
|
1130
1130
|
}
|
1131
1131
|
getGlobalCopy = async (n, i) => this.fetchInstance.post(`${k.LOCALIZED_CONTENT}/${n}`, { translation_key: i }).then((a) => a);
|
1132
1132
|
}
|
1133
|
-
class
|
1133
|
+
class M2 {
|
1134
1134
|
fetchInstance;
|
1135
1135
|
constructor(n, i) {
|
1136
1136
|
this.fetchInstance = new rt(n, i);
|
@@ -1271,7 +1271,7 @@ const Wa = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
|
|
1271
1271
|
er,
|
1272
1272
|
{
|
1273
1273
|
control: /* @__PURE__ */ t(
|
1274
|
-
|
1274
|
+
Xi,
|
1275
1275
|
{
|
1276
1276
|
checked: E,
|
1277
1277
|
"data-ui-test": `checked-${E}`,
|
@@ -1342,7 +1342,7 @@ const Wa = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
|
|
1342
1342
|
er,
|
1343
1343
|
{
|
1344
1344
|
control: /* @__PURE__ */ t(
|
1345
|
-
|
1345
|
+
Xi,
|
1346
1346
|
{
|
1347
1347
|
checked: x,
|
1348
1348
|
"data-ui-test": `checked-${x}`,
|
@@ -1406,19 +1406,19 @@ const fu = (e, n) => {
|
|
1406
1406
|
});
|
1407
1407
|
}, [e, i]);
|
1408
1408
|
}, ve = () => ({
|
1409
|
-
// Larger than
|
1410
|
-
isLargeDesktop:
|
1409
|
+
// Larger than 1536
|
1410
|
+
isLargeDesktop: Mn(pe().breakpoints.up("xl")),
|
1411
1411
|
// Larger than 1200
|
1412
|
-
isDesktop:
|
1413
|
-
// Smaller than
|
1414
|
-
isMobile:
|
1415
|
-
// Smaller than
|
1416
|
-
isSmallMobile:
|
1417
|
-
// Between
|
1418
|
-
isSmallTablet:
|
1419
|
-
// Between
|
1420
|
-
isTablet:
|
1421
|
-
}),
|
1412
|
+
isDesktop: Mn(pe().breakpoints.up("lg")),
|
1413
|
+
// Smaller than 600
|
1414
|
+
isMobile: Mn(pe().breakpoints.down("sm")),
|
1415
|
+
// Smaller than 444
|
1416
|
+
isSmallMobile: Mn(pe().breakpoints.down("xs")),
|
1417
|
+
// Between 600 and 900
|
1418
|
+
isSmallTablet: Mn(pe().breakpoints.between("sm", "md")),
|
1419
|
+
// Between 600 and 1200
|
1420
|
+
isTablet: Mn(pe().breakpoints.between("sm", "lg"))
|
1421
|
+
}), k2 = (e) => {
|
1422
1422
|
const n = As();
|
1423
1423
|
return zn(() => {
|
1424
1424
|
n.current = e;
|
@@ -1446,7 +1446,7 @@ const fu = (e, n) => {
|
|
1446
1446
|
u(null);
|
1447
1447
|
};
|
1448
1448
|
return /* @__PURE__ */ l(M, { className: "mx-cmn-account-filter", m: 4, sx: { ...s }, children: [
|
1449
|
-
d ? /* @__PURE__ */ t(
|
1449
|
+
d ? /* @__PURE__ */ t(Wn, { id: "filter-accounts", placement: "bottom", title: n.title, children: /* @__PURE__ */ t(
|
1450
1450
|
$e,
|
1451
1451
|
{
|
1452
1452
|
"aria-controls": "filter_accounts",
|
@@ -1466,7 +1466,7 @@ const fu = (e, n) => {
|
|
1466
1466
|
"aria-label": n.title,
|
1467
1467
|
onClick: C,
|
1468
1468
|
startIcon: /* @__PURE__ */ t(H, { name: "filter_alt", size: 24 }),
|
1469
|
-
sx: { p: 12 },
|
1469
|
+
sx: { p: 12, whiteSpace: "nowrap", minWidth: "max-content" },
|
1470
1470
|
variant: c,
|
1471
1471
|
children: n.title
|
1472
1472
|
}
|
@@ -1691,7 +1691,7 @@ const fu = (e, n) => {
|
|
1691
1691
|
}), Au = (e, n) => e + n, Iu = (e, n) => Math.abs(n) > e ? Math.abs(n) : e, xu = (e, n) => [...e, n.value], fo = (e, n, i) => {
|
1692
1692
|
const a = e && n ? i / 2 : i;
|
1693
1693
|
return e ? a : 0;
|
1694
|
-
}, vu = (e, n, i, a) => e / (n < 0 ? -i : n) * a || 0,
|
1694
|
+
}, vu = (e, n, i, a) => e / (n < 0 ? -i : n) * a || 0, G2 = ({
|
1695
1695
|
average: e,
|
1696
1696
|
barWidth: n = "8%",
|
1697
1697
|
color: i,
|
@@ -1753,7 +1753,7 @@ const fu = (e, n) => {
|
|
1753
1753
|
}), Nu = ({ copy: e, date: n, onNextClick: i, onPreviousClick: a }) => {
|
1754
1754
|
const r = ft(), o = Du(r);
|
1755
1755
|
return /* @__PURE__ */ l("div", { className: `mx-cmn-calendar-header ${o}`, children: [
|
1756
|
-
/* @__PURE__ */ t(
|
1756
|
+
/* @__PURE__ */ t(Fn, { className: "mx-cmn-calendar-header-title", variant: "H3", children: ae(n, te.MONTH_YEAR) }),
|
1757
1757
|
/* @__PURE__ */ l("div", { className: "mx-cmn-calendar-header-button-container", children: [
|
1758
1758
|
/* @__PURE__ */ t(ee, { "aria-label": e.prevAria, onClick: a, children: /* @__PURE__ */ t(Bl, {}) }),
|
1759
1759
|
/* @__PURE__ */ t(ee, { "aria-label": e.nextAria, onClick: i, children: /* @__PURE__ */ t(Pl, {}) })
|
@@ -2222,7 +2222,7 @@ const Mu = ({
|
|
2222
2222
|
}
|
2223
2223
|
)
|
2224
2224
|
] });
|
2225
|
-
}, Xn = g.createContext(null),
|
2225
|
+
}, Xn = g.createContext(null), B2 = ({
|
2226
2226
|
children: e,
|
2227
2227
|
globalStore: n,
|
2228
2228
|
onEvent: i,
|
@@ -2253,12 +2253,12 @@ const Mu = ({
|
|
2253
2253
|
if (!n)
|
2254
2254
|
throw new Error(`${e}() must be used within the GlobalDataContext`);
|
2255
2255
|
return n;
|
2256
|
-
}, Re = () => Ze("useAccountStore").globalStore.accountStore,
|
2256
|
+
}, Re = () => Ze("useAccountStore").globalStore.accountStore, Gi = () => Ze("useAppConfig").globalStore.appDataStore.appConfig, Sr = () => Ze("useAnalyticsStore").globalStore.analyticsStore, lt = () => Ze("useBudgetsStore").globalStore.budgetsStore, Tr = () => Ze("useCashflowStore").globalStore.cashflowStore, Ke = () => Ze("useCategoryStore").globalStore.categoryStore, nc = () => Ze("useConnectStore").globalStore.connectStore, Sa = () => Ze("useDebtsStore").globalStore.debtsStore, Ta = () => Ze("useGlobalStore").globalStore, ce = () => Ze("useGlobalUiStore").globalStore.globalUiStore, I = () => Ze("globalCopyStore").globalStore.copyStore.copy, ot = () => Ze("useGoalStore").globalStore.goalStore, Ar = () => Ze("useHelpStore").globalStore.helpStore, ta = () => Ze("useHoldingStore").globalStore.holdingStore, Vu = () => Ze("useMerchantStore").globalStore.merchantStore, Ku = () => Ze("useNetWorthStore").globalStore.netWorthStore, ic = () => Ze("useNotificationStore").globalStore.notificationStore, nt = () => Ze("useRecurringActivityStore").globalStore.recurringActivityStore, Pt = () => Ze("useRecurringTransactionsStore").globalStore.recurringTransactionsStore, Ht = () => Ze("useSettingsStore").globalStore.settingsStore, Se = () => Ze("useTransactionStore").globalStore.transactionStore, dn = () => Ze("useUserStore").globalStore.userStore, z = () => ({ onEvent: Ze().onEvent }), P2 = () => ({ onPageView: Ze().onPageView }), zu = (e = "useWidgetContainerContext") => {
|
2257
2257
|
const n = g.useContext(ec);
|
2258
2258
|
if (!n)
|
2259
2259
|
throw new Error(`${e}() must be used within the WidgetContainerContext`);
|
2260
2260
|
return n;
|
2261
|
-
},
|
2261
|
+
}, Un = () => zu(), ac = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
2262
2262
|
const { categories: i } = I(), { getCategoryName: a } = Ke(), r = a(e);
|
2263
2263
|
return /* @__PURE__ */ l(b, { alignItems: "center", direction: "column", gap: "8", justifyContent: "center", mb: 4, children: [
|
2264
2264
|
/* @__PURE__ */ t(
|
@@ -2345,7 +2345,7 @@ const Mu = ({
|
|
2345
2345
|
xData: r
|
2346
2346
|
}) => {
|
2347
2347
|
const o = vn(), s = a.data[i], c = r[i];
|
2348
|
-
return s === void 0 || !c ? null : /* @__PURE__ */ t(
|
2348
|
+
return s === void 0 || !c ? null : /* @__PURE__ */ t(ca, { sx: { pt: 4, px: 8 }, children: /* @__PURE__ */ t(Nl, { children: /* @__PURE__ */ l(nn, { alignItems: "center", display: "flex", flexDirection: "column", children: [
|
2349
2349
|
/* @__PURE__ */ t(ac, { categoryGuid: e, topLevelCategoryGuid: n }),
|
2350
2350
|
/* @__PURE__ */ t(p, { color: o.palette.text.secondary, variant: "Small", children: ae(c, te.MONTH_SHORT_YEAR) }),
|
2351
2351
|
/* @__PURE__ */ t(Ye, { amount: String(s), bold: !0, formatString: "0,0", variant: "Body" })
|
@@ -2359,7 +2359,7 @@ const Mu = ({
|
|
2359
2359
|
}) => {
|
2360
2360
|
const { isMobile: o } = ve(), { getCategoryName: s } = Ke();
|
2361
2361
|
return /* @__PURE__ */ t(b, { direction: "row", flexWrap: "wrap", gap: o ? 2 : 6, justifyContent: "start", sx: e, children: n.map(({ guid: c, top_level_guid: d }) => {
|
2362
|
-
const _ = i === c, u =
|
2362
|
+
const _ = i === c, u = Gn[c], h = Gn[d], m = u ?? h ?? Gn.default, C = m + "33";
|
2363
2363
|
return /* @__PURE__ */ l(
|
2364
2364
|
ee,
|
2365
2365
|
{
|
@@ -2715,7 +2715,7 @@ const Mu = ({
|
|
2715
2715
|
margin: "auto",
|
2716
2716
|
textAlign: "center"
|
2717
2717
|
},
|
2718
|
-
children: /* @__PURE__ */ t(
|
2718
|
+
children: /* @__PURE__ */ t(Fn, { bold: !0, variant: "Body", children: r })
|
2719
2719
|
}
|
2720
2720
|
),
|
2721
2721
|
/* @__PURE__ */ t(M, { width: "44px" })
|
@@ -2833,7 +2833,7 @@ const Mu = ({
|
|
2833
2833
|
};
|
2834
2834
|
return /* @__PURE__ */ l(M, { className: "mx-cmn-date-range-selector", m: 4, children: [
|
2835
2835
|
/* @__PURE__ */ t(
|
2836
|
-
|
2836
|
+
Wn,
|
2837
2837
|
{
|
2838
2838
|
id: "select-date",
|
2839
2839
|
placement: "bottom",
|
@@ -2924,7 +2924,7 @@ const Mu = ({
|
|
2924
2924
|
}
|
2925
2925
|
),
|
2926
2926
|
s === "timeframebuttons" && /* @__PURE__ */ t(
|
2927
|
-
|
2927
|
+
la,
|
2928
2928
|
{
|
2929
2929
|
color: n,
|
2930
2930
|
exclusive: !0,
|
@@ -3044,7 +3044,7 @@ const Mu = ({
|
|
3044
3044
|
}
|
3045
3045
|
)
|
3046
3046
|
] });
|
3047
|
-
},
|
3047
|
+
}, H2 = ({
|
3048
3048
|
hasGap: e = !1,
|
3049
3049
|
segments: n,
|
3050
3050
|
size: i = Us,
|
@@ -3389,7 +3389,7 @@ const Dn = ({
|
|
3389
3389
|
]
|
3390
3390
|
}
|
3391
3391
|
);
|
3392
|
-
}, Ot = A(t_), n_ = ({ status: e =
|
3392
|
+
}, Ot = A(t_), n_ = ({ status: e = Bn.Loading }) => {
|
3393
3393
|
const { connect: n } = I();
|
3394
3394
|
return /* @__PURE__ */ t(
|
3395
3395
|
M,
|
@@ -3400,7 +3400,7 @@ const Dn = ({
|
|
3400
3400
|
width: "100%"
|
3401
3401
|
},
|
3402
3402
|
children: /* @__PURE__ */ l(b, { alignItems: "center", direction: "column", justifyContent: "center", sx: { height: "100%" }, children: [
|
3403
|
-
e ===
|
3403
|
+
e === Bn.Loading && /* @__PURE__ */ t(_r, { color: "primary", size: 48 }),
|
3404
3404
|
/* @__PURE__ */ t(
|
3405
3405
|
p,
|
3406
3406
|
{
|
@@ -3408,14 +3408,14 @@ const Dn = ({
|
|
3408
3408
|
color: "grey.600",
|
3409
3409
|
marginTop: "16px"
|
3410
3410
|
},
|
3411
|
-
children: e ===
|
3411
|
+
children: e === Bn.Error ? n.oops : n.loading
|
3412
3412
|
}
|
3413
3413
|
)
|
3414
3414
|
] })
|
3415
3415
|
}
|
3416
3416
|
);
|
3417
|
-
},
|
3418
|
-
var
|
3417
|
+
}, na = A(n_);
|
3418
|
+
var Bn = /* @__PURE__ */ ((e) => (e.Loading = "loading", e.Error = "error", e))(Bn || {}), xt = /* @__PURE__ */ ((e) => (e.Currency = "currency", e.Date = "date", e.Input = "input", e.Select = "select", e))(xt || {});
|
3419
3419
|
const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
3420
3420
|
loadWidgetProps: e,
|
3421
3421
|
onClose: n,
|
@@ -3455,8 +3455,8 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3455
3455
|
},
|
3456
3456
|
title: a,
|
3457
3457
|
children: /* @__PURE__ */ l("div", { id: yo, children: [
|
3458
|
-
u && /* @__PURE__ */ t(
|
3459
|
-
d && /* @__PURE__ */ t(
|
3458
|
+
u && /* @__PURE__ */ t(na, { status: Bn.Error }),
|
3459
|
+
d && /* @__PURE__ */ t(na, { status: Bn.Loading })
|
3460
3460
|
] })
|
3461
3461
|
}
|
3462
3462
|
);
|
@@ -3479,7 +3479,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3479
3479
|
const D = g.useRef(Cd());
|
3480
3480
|
if (e)
|
3481
3481
|
switch (hu()) {
|
3482
|
-
case
|
3482
|
+
case Ji.CAD:
|
3483
3483
|
R = w;
|
3484
3484
|
break;
|
3485
3485
|
default:
|
@@ -3508,8 +3508,8 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3508
3508
|
An,
|
3509
3509
|
{
|
3510
3510
|
InputProps: {
|
3511
|
-
endAdornment:
|
3512
|
-
startAdornment:
|
3511
|
+
endAdornment: Hn().includes("fr-ca") ? /* @__PURE__ */ t(Oe, { children: "$" }) : void 0,
|
3512
|
+
startAdornment: Hn().includes("fr-ca") ? void 0 : /* @__PURE__ */ t(Oe, { children: "$" })
|
3513
3513
|
},
|
3514
3514
|
"aria-label": n || E.enter_amount,
|
3515
3515
|
className: `mx-cmn-currency-input ${T}`,
|
@@ -3531,7 +3531,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3531
3531
|
"& .MuiInputBase-adornedStart > .p": {
|
3532
3532
|
marginRight: e.Spacing.Tiny
|
3533
3533
|
}
|
3534
|
-
}),
|
3534
|
+
}), $2 = ({
|
3535
3535
|
icon: e,
|
3536
3536
|
label: n,
|
3537
3537
|
onClick: i,
|
@@ -3556,7 +3556,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3556
3556
|
}
|
3557
3557
|
),
|
3558
3558
|
/* @__PURE__ */ t(
|
3559
|
-
|
3559
|
+
Wn,
|
3560
3560
|
{
|
3561
3561
|
describeChild: !0,
|
3562
3562
|
placement: a,
|
@@ -3587,8 +3587,8 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3587
3587
|
An,
|
3588
3588
|
{
|
3589
3589
|
InputProps: {
|
3590
|
-
startAdornment: /* @__PURE__ */ t(
|
3591
|
-
endAdornment: /* @__PURE__ */ t(
|
3590
|
+
startAdornment: /* @__PURE__ */ t(qi, { position: "start", children: /* @__PURE__ */ t(H, { color: "disabled", name: "search", size: 26 }) }),
|
3591
|
+
endAdornment: /* @__PURE__ */ t(qi, { position: "end", sx: { p: 0 }, children: r ? s : null })
|
3592
3592
|
},
|
3593
3593
|
"aria-label": e,
|
3594
3594
|
name: "search",
|
@@ -3598,7 +3598,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3598
3598
|
value: r
|
3599
3599
|
}
|
3600
3600
|
) });
|
3601
|
-
},
|
3601
|
+
}, Bi = A(r_), So = ({
|
3602
3602
|
checked: e = !1,
|
3603
3603
|
label: n,
|
3604
3604
|
sx: i = {},
|
@@ -3618,7 +3618,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3618
3618
|
pr: 8,
|
3619
3619
|
py: 4,
|
3620
3620
|
sx: { "&:hover": { borderColor: o.palette.action.active }, ...i },
|
3621
|
-
children: /* @__PURE__ */ t(
|
3621
|
+
children: /* @__PURE__ */ t(Wn, { title: a, children: /* @__PURE__ */ t(
|
3622
3622
|
er,
|
3623
3623
|
{
|
3624
3624
|
control: /* @__PURE__ */ t(
|
@@ -3684,7 +3684,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3684
3684
|
)
|
3685
3685
|
]
|
3686
3686
|
}
|
3687
|
-
),
|
3687
|
+
), $n = ({ iconName: e, label: n, onClick: i, value: a }) => {
|
3688
3688
|
const r = /* @__PURE__ */ l(Z, { children: [
|
3689
3689
|
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Jt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(H, { name: e, sx: { color: "text.primary" }, weight: bt.Dark }) }) }),
|
3690
3690
|
/* @__PURE__ */ t(
|
@@ -3701,12 +3701,12 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3701
3701
|
r,
|
3702
3702
|
/* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t(H, { name: "chevron_right", size: 24 }) })
|
3703
3703
|
] }) }) : /* @__PURE__ */ t(X, { disableGutters: !1, disablePadding: !1, children: r });
|
3704
|
-
},
|
3704
|
+
}, ia = ({
|
3705
3705
|
body: e,
|
3706
3706
|
iconName: n = "info",
|
3707
3707
|
title: i
|
3708
3708
|
}) => /* @__PURE__ */ t(
|
3709
|
-
|
3709
|
+
Wn,
|
3710
3710
|
{
|
3711
3711
|
enterTouchDelay: 500,
|
3712
3712
|
title: /* @__PURE__ */ l(b, { gap: 2, p: 12, sx: { textOverflow: "none" }, children: [
|
@@ -3734,7 +3734,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3734
3734
|
)
|
3735
3735
|
}
|
3736
3736
|
), sc = ({ description: e, label: n, title: i }) => {
|
3737
|
-
const { config: a } =
|
3737
|
+
const { config: a } = Gi(), [r, o] = g.useState(!1);
|
3738
3738
|
if (a.show_connections_widget_in_master)
|
3739
3739
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
3740
3740
|
/* @__PURE__ */ l(Gt, { sx: { m: 24 }, children: [
|
@@ -3794,7 +3794,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3794
3794
|
},
|
3795
3795
|
children: [
|
3796
3796
|
/* @__PURE__ */ t(yt, { name: i, size: 54, sx: { color: e } }),
|
3797
|
-
/* @__PURE__ */ t(
|
3797
|
+
/* @__PURE__ */ t(Fn, { color: "text.primary", sx: { textWrap: "wrap", textAlign: "center" }, children: n }),
|
3798
3798
|
/* @__PURE__ */ t(
|
3799
3799
|
p,
|
3800
3800
|
{
|
@@ -3910,7 +3910,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3910
3910
|
return /* @__PURE__ */ t(
|
3911
3911
|
X,
|
3912
3912
|
{
|
3913
|
-
secondaryAction: /* @__PURE__ */ t(
|
3913
|
+
secondaryAction: /* @__PURE__ */ t(ua, { checked: e, onChange: a }),
|
3914
3914
|
sx: {
|
3915
3915
|
"& .MuiListItemSecondaryAction-root": {
|
3916
3916
|
right: s ? 24 : 64
|
@@ -3950,7 +3950,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3950
3950
|
X,
|
3951
3951
|
{
|
3952
3952
|
secondaryAction: /* @__PURE__ */ t(
|
3953
|
-
|
3953
|
+
ua,
|
3954
3954
|
{
|
3955
3955
|
checked: e,
|
3956
3956
|
disabled: n,
|
@@ -4334,7 +4334,7 @@ const ui = () => {
|
|
4334
4334
|
/* @__PURE__ */ t(Ye, { amount: e, bold: !0, sx: { fontSize: 12 } })
|
4335
4335
|
] });
|
4336
4336
|
}, Ir = A(p_), C_ = ({ onAddIncomeClick: e }) => {
|
4337
|
-
const n = pe(), { availableWidth: i } =
|
4337
|
+
const n = pe(), { availableWidth: i } = Un(), { isMobile: a } = ve(), { visibleCashAccounts: r, visibleCashBalance: o } = Re(), { selectedAccountGuids: s } = ce(), { cashflow: c } = I(), { userProfile: d } = dn(), {
|
4338
4338
|
daysUntilNextIncome: _,
|
4339
4339
|
expensesTilNextIncome: u,
|
4340
4340
|
selectedCashAccounts: h,
|
@@ -4385,7 +4385,7 @@ const ui = () => {
|
|
4385
4385
|
/* @__PURE__ */ t(Ye, { amount: x, variant: "H2" }),
|
4386
4386
|
/* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 8, children: [
|
4387
4387
|
/* @__PURE__ */ t(Oe, { variant: "XSmall", whiteSpace: "nowrap", children: c.available_to_spend }),
|
4388
|
-
/* @__PURE__ */ t(
|
4388
|
+
/* @__PURE__ */ t(ia, { body: c.tooltip_body, title: c.tooltip_title })
|
4389
4389
|
] })
|
4390
4390
|
] }),
|
4391
4391
|
/* @__PURE__ */ t(b, { borderLeft: `1px solid ${n.palette.border.light}`, pb: 12, pl: 24, pt: 12, children: R ? /* @__PURE__ */ l(Z, { children: [
|
@@ -4474,8 +4474,8 @@ const ui = () => {
|
|
4474
4474
|
children: /* @__PURE__ */ t(f_, { onAddIncomeClick: e })
|
4475
4475
|
}
|
4476
4476
|
) : /* @__PURE__ */ t(ue, {});
|
4477
|
-
},
|
4478
|
-
class
|
4477
|
+
}, F2 = A(b_);
|
4478
|
+
class aa {
|
4479
4479
|
fetchInstance;
|
4480
4480
|
constructor(n, i) {
|
4481
4481
|
this.fetchInstance = new rt(n, i);
|
@@ -4557,7 +4557,7 @@ class ia {
|
|
4557
4557
|
updateTag = async (n) => this.fetchInstance.put(`${k.TAGS}/${n.guid}`, n).then((i) => i.tag);
|
4558
4558
|
updateTransaction = async (n) => this.fetchInstance.put(`${k.TRANSACTIONS}/${n.guid}`, n).then((i) => i.transaction);
|
4559
4559
|
}
|
4560
|
-
var pi = /* @__PURE__ */ ((e) => (e[e.Category = 0] = "Category", e[e.Date = 1] = "Date", e[e.Memo = 2] = "Memo", e[e.Tags = 3] = "Tags", e))(pi || {}),
|
4560
|
+
var pi = /* @__PURE__ */ ((e) => (e[e.Category = 0] = "Category", e[e.Date = 1] = "Date", e[e.Memo = 2] = "Memo", e[e.Tags = 3] = "Tags", e))(pi || {}), zi = /* @__PURE__ */ ((e) => (e[e.SplitTransaction = 0] = "SplitTransaction", e[e.HideTransaction = 1] = "HideTransaction", e[e.MerchantLogo = 2] = "MerchantLogo", e))(zi || {});
|
4561
4561
|
const y_ = [
|
4562
4562
|
0,
|
4563
4563
|
1,
|
@@ -5014,7 +5014,7 @@ let O_ = class {
|
|
5014
5014
|
class L_ {
|
5015
5015
|
globalStore;
|
5016
5016
|
uiStore;
|
5017
|
-
api = new
|
5017
|
+
api = new aa("/", "");
|
5018
5018
|
beatApi = new ri("/", "");
|
5019
5019
|
isLoading = !0;
|
5020
5020
|
taggings = [];
|
@@ -5028,7 +5028,7 @@ class L_ {
|
|
5028
5028
|
filter = {};
|
5029
5029
|
onAnalyticEvent = T_;
|
5030
5030
|
constructor(n) {
|
5031
|
-
this.globalStore = n, this.uiStore = new O_(), this.api = new
|
5031
|
+
this.globalStore = n, this.uiStore = new O_(), this.api = new aa(n.endpoint, n.sessionToken), this.beatApi = new ri(n.endpoint, n.sessionToken), Be(this);
|
5032
5032
|
}
|
5033
5033
|
loadTransactionData = async () => {
|
5034
5034
|
await Promise.all([
|
@@ -5224,7 +5224,7 @@ const It = () => {
|
|
5224
5224
|
"Original Description": i.feed_description,
|
5225
5225
|
Amount: `${i.amount}`,
|
5226
5226
|
Type: i.transaction_type === St.CREDIT ? "Credit" : "Debit",
|
5227
|
-
"Parent Category":
|
5227
|
+
"Parent Category": ba[i.top_level_category_guid || ""],
|
5228
5228
|
Category: i.category,
|
5229
5229
|
Account: i.account,
|
5230
5230
|
Tags: B_(i, n),
|
@@ -5691,7 +5691,7 @@ const J_ = ({
|
|
5691
5691
|
primaryTypographyProps: { fontWeight: "normal", variant: "Body" }
|
5692
5692
|
}
|
5693
5693
|
),
|
5694
|
-
s && y && /* @__PURE__ */ t(
|
5694
|
+
s && y && /* @__PURE__ */ t(pa, { fontSize: "small" }),
|
5695
5695
|
!T && /* @__PURE__ */ t(Fd, { label: d })
|
5696
5696
|
]
|
5697
5697
|
}
|
@@ -5742,7 +5742,7 @@ const J_ = ({
|
|
5742
5742
|
}, sh = A(oh), ch = ({ categories: e, parentCategory: n }) => {
|
5743
5743
|
const { expandedGuid: i, searchValue: a } = pn(), r = n.guid === i, o = !!a;
|
5744
5744
|
return /* @__PURE__ */ t(
|
5745
|
-
|
5745
|
+
Ca,
|
5746
5746
|
{
|
5747
5747
|
in: r || o,
|
5748
5748
|
sx: { backgroundColor: "background.default" },
|
@@ -5788,7 +5788,7 @@ const J_ = ({
|
|
5788
5788
|
primaryTypographyProps: { fontWeight: "normal", variant: "Body" }
|
5789
5789
|
}
|
5790
5790
|
),
|
5791
|
-
/* @__PURE__ */ t(Ct, { children: s || a ? /* @__PURE__ */ t(
|
5791
|
+
/* @__PURE__ */ t(Ct, { children: s || a ? /* @__PURE__ */ t(ha, {}) : /* @__PURE__ */ t(_a, {}) })
|
5792
5792
|
]
|
5793
5793
|
},
|
5794
5794
|
e.guid
|
@@ -5846,7 +5846,7 @@ const J_ = ({
|
|
5846
5846
|
e && m(e), C(i), f(a), E(r);
|
5847
5847
|
}, [e, i, a, r]), d ? /* @__PURE__ */ l(b, { className: "mx-cat-category-selector", sx: { width: "100%" }, children: [
|
5848
5848
|
/* @__PURE__ */ t(
|
5849
|
-
|
5849
|
+
Bi,
|
5850
5850
|
{
|
5851
5851
|
ariaLabel: c.search_aria,
|
5852
5852
|
cancelAriaLabel: c.cancel_search_aria,
|
@@ -5901,7 +5901,7 @@ const J_ = ({
|
|
5901
5901
|
...e,
|
5902
5902
|
currentAmount: c,
|
5903
5903
|
averageAmount: Ro(d),
|
5904
|
-
color:
|
5904
|
+
color: Gn[o],
|
5905
5905
|
icon: ou[o],
|
5906
5906
|
isTransfer: o === N.TRANSFER,
|
5907
5907
|
monthlyAmounts: d,
|
@@ -6070,7 +6070,7 @@ class bh {
|
|
6070
6070
|
}
|
6071
6071
|
};
|
6072
6072
|
// TODO: Remove this after refactoring Trends components to use detailedCategories
|
6073
|
-
getCategoryName = (n) => this.categories.find((a) => a.guid === n)?.name ??
|
6073
|
+
getCategoryName = (n) => this.categories.find((a) => a.guid === n)?.name ?? ba[n];
|
6074
6074
|
}
|
6075
6075
|
const hc = ({ transaction: e }) => {
|
6076
6076
|
const { addOrUpdateTransactionRule: n, updateTransaction: i } = Se(), { categories: a } = Ke(), { onEvent: r } = z(), { setShouldDisableDrawerScroll: o, updateManualTransaction: s } = It(), { transactions: c } = I(), [d, _] = g.useState(!1), [u, h] = g.useState(""), m = async (y) => {
|
@@ -6333,7 +6333,7 @@ const hc = ({ transaction: e }) => {
|
|
6333
6333
|
}
|
6334
6334
|
),
|
6335
6335
|
/* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t(
|
6336
|
-
|
6336
|
+
ua,
|
6337
6337
|
{
|
6338
6338
|
checked: d,
|
6339
6339
|
id: "hide-transaction",
|
@@ -6476,7 +6476,7 @@ const hc = ({ transaction: e }) => {
|
|
6476
6476
|
/* @__PURE__ */ t(
|
6477
6477
|
ee,
|
6478
6478
|
{
|
6479
|
-
endIcon: /* @__PURE__ */ t(
|
6479
|
+
endIcon: /* @__PURE__ */ t(_a, {}),
|
6480
6480
|
onClick: () => h(!0),
|
6481
6481
|
startIcon: /* @__PURE__ */ t(kt, { categoryGuid: r.top_level_category_guid }),
|
6482
6482
|
sx: { px: o.Spacing.Small, py: o.Spacing.XSmall },
|
@@ -6491,7 +6491,7 @@ const hc = ({ transaction: e }) => {
|
|
6491
6491
|
gap: o.Spacing.XSmall,
|
6492
6492
|
p: o.Spacing.Small,
|
6493
6493
|
children: [
|
6494
|
-
/* @__PURE__ */ t(
|
6494
|
+
/* @__PURE__ */ t(Zi, { sx: { fontSize: o.FontSize.Body } }),
|
6495
6495
|
/* @__PURE__ */ t(p, { variant: "Small", children: c.split_transaction_errors_select_category })
|
6496
6496
|
]
|
6497
6497
|
}
|
@@ -6532,7 +6532,7 @@ const hc = ({ transaction: e }) => {
|
|
6532
6532
|
gap: o.Spacing.XSmall,
|
6533
6533
|
py: o.Spacing.Small,
|
6534
6534
|
children: [
|
6535
|
-
/* @__PURE__ */ t(
|
6535
|
+
/* @__PURE__ */ t(Zi, { sx: { fontSize: o.FontSize.Body } }),
|
6536
6536
|
/* @__PURE__ */ t(p, { variant: "Small", children: c.split_transaction_errors_enter_an_amount })
|
6537
6537
|
]
|
6538
6538
|
}
|
@@ -6590,7 +6590,7 @@ const hc = ({ transaction: e }) => {
|
|
6590
6590
|
gap: s.Spacing.XSmall,
|
6591
6591
|
p: s.Spacing.Medium,
|
6592
6592
|
children: [
|
6593
|
-
/* @__PURE__ */ t(
|
6593
|
+
/* @__PURE__ */ t(Zi, { sx: { fontSize: s.FontSize.Body } }),
|
6594
6594
|
/* @__PURE__ */ t(p, { variant: "Small", children: _ })
|
6595
6595
|
]
|
6596
6596
|
}
|
@@ -6802,8 +6802,8 @@ const hc = ({ transaction: e }) => {
|
|
6802
6802
|
An,
|
6803
6803
|
{
|
6804
6804
|
InputProps: {
|
6805
|
-
startAdornment: /* @__PURE__ */ t(
|
6806
|
-
endAdornment: /* @__PURE__ */ t(
|
6805
|
+
startAdornment: /* @__PURE__ */ t(qi, { position: "start", children: /* @__PURE__ */ t(Ld, { color: "disabled" }) }),
|
6806
|
+
endAdornment: /* @__PURE__ */ t(qi, { position: "end", sx: { padding: 0 }, children: n ? o : null })
|
6807
6807
|
},
|
6808
6808
|
"aria-label": i.search_aria,
|
6809
6809
|
name: "search",
|
@@ -6861,7 +6861,7 @@ const hc = ({ transaction: e }) => {
|
|
6861
6861
|
onClick: () => e(i.guid),
|
6862
6862
|
role: "checkbox",
|
6863
6863
|
children: [
|
6864
|
-
/* @__PURE__ */ t(Ct, { sx: { ml: 0 }, children: /* @__PURE__ */ t(
|
6864
|
+
/* @__PURE__ */ t(Ct, { sx: { ml: 0 }, children: /* @__PURE__ */ t(Xi, { checked: n.includes(i.guid), edge: "start", tabIndex: -1 }) }),
|
6865
6865
|
/* @__PURE__ */ t(re, { children: i.name })
|
6866
6866
|
]
|
6867
6867
|
}
|
@@ -7106,9 +7106,9 @@ const hc = ({ transaction: e }) => {
|
|
7106
7106
|
/* @__PURE__ */ t(p, { bold: !0, mb: 8, ml: 26, mt: 16, variant: "Body", children: "Actions" }),
|
7107
7107
|
/* @__PURE__ */ t(Tt, { square: !0, sx: { boxShadow: "none" }, children: /* @__PURE__ */ l(ie, { children: [
|
7108
7108
|
e.map((s, c) => /* @__PURE__ */ l(g.Fragment, { children: [
|
7109
|
-
s ===
|
7110
|
-
s ===
|
7111
|
-
s ===
|
7109
|
+
s === zi.SplitTransaction && /* @__PURE__ */ t(Oh, { transaction: i }),
|
7110
|
+
s === zi.HideTransaction && /* @__PURE__ */ t(Ih, { transaction: i }),
|
7111
|
+
s === zi.MerchantLogo && /* @__PURE__ */ t(Th, { transaction: i }),
|
7112
7112
|
/* @__PURE__ */ t(G, { variant: c < e.length - 1 ? "inset" : "fullWidth" })
|
7113
7113
|
] }, s)),
|
7114
7114
|
i.is_manual && /* @__PURE__ */ t(Eh, { transaction: i })
|
@@ -7213,13 +7213,13 @@ const hc = ({ transaction: e }) => {
|
|
7213
7213
|
An,
|
7214
7214
|
{
|
7215
7215
|
InputLabelProps: { shrink: !0 },
|
7216
|
-
SelectProps: { defaultValue: -1, IconComponent:
|
7216
|
+
SelectProps: { defaultValue: -1, IconComponent: ha },
|
7217
7217
|
label: i.manual_transaction_select_an_account,
|
7218
7218
|
onChange: (y) => E(y.target.value),
|
7219
7219
|
placeholder: i.manual_transaction_select,
|
7220
7220
|
select: !0,
|
7221
7221
|
sx: { bgcolor: "background.paper" },
|
7222
|
-
children: u.map((y) => /* @__PURE__ */ t(
|
7222
|
+
children: u.map((y) => /* @__PURE__ */ t(ma, { value: y.value, children: y.label }, y.value))
|
7223
7223
|
}
|
7224
7224
|
)
|
7225
7225
|
] }),
|
@@ -7375,7 +7375,7 @@ const hc = ({ transaction: e }) => {
|
|
7375
7375
|
title: D.transactions_title,
|
7376
7376
|
children: [
|
7377
7377
|
/* @__PURE__ */ t(M, { mt: 16, children: /* @__PURE__ */ t(
|
7378
|
-
|
7378
|
+
Bi,
|
7379
7379
|
{
|
7380
7380
|
onChange: Ba,
|
7381
7381
|
placeholder: D.action_bar_search_placeholder,
|
@@ -7485,7 +7485,7 @@ const hc = ({ transaction: e }) => {
|
|
7485
7485
|
]
|
7486
7486
|
}
|
7487
7487
|
);
|
7488
|
-
},
|
7488
|
+
}, V2 = A(Jh), fc = (e, n) => {
|
7489
7489
|
const i = {
|
7490
7490
|
...n,
|
7491
7491
|
repeat_day: null,
|
@@ -7545,7 +7545,7 @@ const hc = ({ transaction: e }) => {
|
|
7545
7545
|
}, C = u.find((f) => f.id === e.recurrenceType);
|
7546
7546
|
return /* @__PURE__ */ l(Z, { children: [
|
7547
7547
|
/* @__PURE__ */ t(
|
7548
|
-
|
7548
|
+
$n,
|
7549
7549
|
{
|
7550
7550
|
iconName: "sync",
|
7551
7551
|
label: n.activity_schedule,
|
@@ -7603,7 +7603,7 @@ const hc = ({ transaction: e }) => {
|
|
7603
7603
|
};
|
7604
7604
|
return /* @__PURE__ */ l(Z, { children: [
|
7605
7605
|
/* @__PURE__ */ t(
|
7606
|
-
|
7606
|
+
$n,
|
7607
7607
|
{
|
7608
7608
|
iconName: "calendar_month",
|
7609
7609
|
label: n.activity_payment_date,
|
@@ -7692,7 +7692,7 @@ const hc = ({ transaction: e }) => {
|
|
7692
7692
|
/* @__PURE__ */ l(ie, { sx: { bgcolor: "background.paper" }, children: [
|
7693
7693
|
e.institution && /* @__PURE__ */ l(Z, { children: [
|
7694
7694
|
/* @__PURE__ */ t(
|
7695
|
-
|
7695
|
+
$n,
|
7696
7696
|
{
|
7697
7697
|
iconName: "checkbook",
|
7698
7698
|
label: i.account,
|
@@ -7703,7 +7703,7 @@ const hc = ({ transaction: e }) => {
|
|
7703
7703
|
] }),
|
7704
7704
|
y && /* @__PURE__ */ l(Z, { children: [
|
7705
7705
|
/* @__PURE__ */ t(
|
7706
|
-
|
7706
|
+
$n,
|
7707
7707
|
{
|
7708
7708
|
iconName: "monetization_on",
|
7709
7709
|
label: i.category,
|
@@ -7758,7 +7758,7 @@ const hc = ({ transaction: e }) => {
|
|
7758
7758
|
gridRow: 1,
|
7759
7759
|
gridColumn: 1,
|
7760
7760
|
zIndex: 2
|
7761
|
-
}, Na = (e) => e ? { margin: "0 0 -6px -4px" } : void 0, wr = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...Na(e) }, children: /* @__PURE__ */ t(Pd, { color: "primary", sx: { fontSize: n, ...wa } }) }), Nr = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...Na(e) }, children: /* @__PURE__ */ t(Hd, { sx: { color: "categories.income", fontSize: n, ...wa } }) }), Dr = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...Na(e) }, children: /* @__PURE__ */ t(
|
7761
|
+
}, Na = (e) => e ? { margin: "0 0 -6px -4px" } : void 0, wr = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...Na(e) }, children: /* @__PURE__ */ t(Pd, { color: "primary", sx: { fontSize: n, ...wa } }) }), Nr = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...Na(e) }, children: /* @__PURE__ */ t(Hd, { sx: { color: "categories.income", fontSize: n, ...wa } }) }), Dr = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...Na(e) }, children: /* @__PURE__ */ t(Zi, { color: "error", sx: { fontSize: n, ...wa } }) }), Rr = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...Na(e) }, children: /* @__PURE__ */ t(pa, { color: "success", sx: { fontSize: n, ...wa } }) }), Mo = ({ copy: e, date: n, type: i }) => {
|
7762
7762
|
let a = n && hr(n) ? S(e.monthly_ordinal, wt(n, "do")) : e.monthly;
|
7763
7763
|
switch (i) {
|
7764
7764
|
case Q.EveryQuarter:
|
@@ -7912,7 +7912,7 @@ const hc = ({ transaction: e }) => {
|
|
7912
7912
|
}
|
7913
7913
|
)
|
7914
7914
|
] });
|
7915
|
-
},
|
7915
|
+
}, ra = A(cg), yc = (e, n, i) => {
|
7916
7916
|
const a = {
|
7917
7917
|
account_guid: e.account_guid,
|
7918
7918
|
amount: e.amount,
|
@@ -7990,7 +7990,7 @@ const hc = ({ transaction: e }) => {
|
|
7990
7990
|
return /* @__PURE__ */ l(b, { sx: { bgcolor: e, gap: 16, pt: 8 }, children: [
|
7991
7991
|
n && /* @__PURE__ */ t(Oe, { sx: { mx: 24 }, children: n }),
|
7992
7992
|
/* @__PURE__ */ t(
|
7993
|
-
|
7993
|
+
Bi,
|
7994
7994
|
{
|
7995
7995
|
ariaLabel: r.select_transaction_search_aria,
|
7996
7996
|
cancelAriaLabel: r.select_transaction_search_cancel_aria,
|
@@ -8023,19 +8023,19 @@ const hc = ({ transaction: e }) => {
|
|
8023
8023
|
];
|
8024
8024
|
g.useEffect(() => {
|
8025
8025
|
const u = Me(s.date);
|
8026
|
-
o(
|
8026
|
+
o(ea(u)), r(Q.EveryMonth);
|
8027
8027
|
}, [s]);
|
8028
8028
|
const _ = (u) => {
|
8029
8029
|
const h = Me(s.date);
|
8030
8030
|
switch (Number(u.target.value)) {
|
8031
8031
|
case Q.EveryWeek:
|
8032
|
-
o(
|
8032
|
+
o(ya(h));
|
8033
8033
|
break;
|
8034
8034
|
case Q.EveryOtherWeek:
|
8035
8035
|
o(Ks(h));
|
8036
8036
|
break;
|
8037
8037
|
case Q.EveryMonth:
|
8038
|
-
o(
|
8038
|
+
o(ea(h));
|
8039
8039
|
break;
|
8040
8040
|
case Q.EveryOtherMonth:
|
8041
8041
|
o(zs(h));
|
@@ -8072,11 +8072,11 @@ const hc = ({ transaction: e }) => {
|
|
8072
8072
|
sx: { mx: 24 },
|
8073
8073
|
value: n,
|
8074
8074
|
variant: "outlined",
|
8075
|
-
children: d.map((u) => /* @__PURE__ */ t(
|
8075
|
+
children: d.map((u) => /* @__PURE__ */ t(ma, { value: u.id, children: u.label }, u.id))
|
8076
8076
|
}
|
8077
8077
|
),
|
8078
8078
|
/* @__PURE__ */ t(Nn, { dateAdapter: gn, children: /* @__PURE__ */ t(
|
8079
|
-
|
8079
|
+
ga,
|
8080
8080
|
{
|
8081
8081
|
disablePast: !0,
|
8082
8082
|
label: i ? c.income_date_label : c.expense_date_label,
|
@@ -8194,7 +8194,7 @@ const hc = ({ transaction: e }) => {
|
|
8194
8194
|
};
|
8195
8195
|
return /* @__PURE__ */ l(ie, { sx: { bgcolor: "background.paper" }, children: [
|
8196
8196
|
o.map((d, _) => /* @__PURE__ */ l(g.Fragment, { children: [
|
8197
|
-
/* @__PURE__ */ t(
|
8197
|
+
/* @__PURE__ */ t(ra, { activity: d, onActivityClick: s, showOrdinal: !0 }),
|
8198
8198
|
/* @__PURE__ */ t(G, { variant: _ < o.length - 1 ? "inset" : "fullWidth" })
|
8199
8199
|
] }, d.scheduledPaymentGuid)),
|
8200
8200
|
/* @__PURE__ */ t(Ic, { label: e.add_expense, onAddActivity: c })
|
@@ -8313,10 +8313,10 @@ const hc = ({ transaction: e }) => {
|
|
8313
8313
|
case Q.EveryMonth:
|
8314
8314
|
a.push({
|
8315
8315
|
...c,
|
8316
|
-
expectedDate:
|
8316
|
+
expectedDate: ji(m, d)
|
8317
8317
|
}), a.push({
|
8318
8318
|
...c,
|
8319
|
-
expectedDate: gt(
|
8319
|
+
expectedDate: gt(ji(m, d), 1)
|
8320
8320
|
});
|
8321
8321
|
break;
|
8322
8322
|
case Q.EveryOtherMonth:
|
@@ -8395,7 +8395,7 @@ const hc = ({ transaction: e }) => {
|
|
8395
8395
|
};
|
8396
8396
|
return /* @__PURE__ */ l(ie, { sx: { bgcolor: "background.paper" }, children: [
|
8397
8397
|
c.map((u, h) => /* @__PURE__ */ l(g.Fragment, { children: [
|
8398
|
-
/* @__PURE__ */ t(
|
8398
|
+
/* @__PURE__ */ t(ra, { activity: u, onActivityClick: d, showOrdinal: !0 }),
|
8399
8399
|
/* @__PURE__ */ t(G, { variant: h < c.length - 1 ? "inset" : "fullWidth" })
|
8400
8400
|
] }, u.sequenceGuid)),
|
8401
8401
|
/* @__PURE__ */ t(Ic, { isIncome: !0, label: e.add_income, onAddActivity: _ })
|
@@ -8438,7 +8438,7 @@ const hc = ({ transaction: e }) => {
|
|
8438
8438
|
}, xc = A(yg), gi = (e, n) => e + n.amount, Ua = (e) => e.activityType === Qe.Income && ai(e.expectedDate, {
|
8439
8439
|
start: Fe(le()),
|
8440
8440
|
end: Xe(le())
|
8441
|
-
}),
|
8441
|
+
}), Wi = (e) => e.activityType === Qe.Expense && ai(e.expectedDate, {
|
8442
8442
|
start: Fe(le()),
|
8443
8443
|
end: Xe(le())
|
8444
8444
|
}), Va = (e) => e.occurredOnDate && ai(e.occurredOnDate, {
|
@@ -8500,7 +8500,7 @@ const hc = ({ transaction: e }) => {
|
|
8500
8500
|
)
|
8501
8501
|
}
|
8502
8502
|
);
|
8503
|
-
}, Sg = A(Eg),
|
8503
|
+
}, Sg = A(Eg), Ui = ({ icon: e, label: n }) => /* @__PURE__ */ l(b, { alignItems: "center", flexDirection: "row", sx: { gap: 6 }, children: [
|
8504
8504
|
/* @__PURE__ */ t(e, {}),
|
8505
8505
|
/* @__PURE__ */ t(p, { variant: "XSmall", children: n })
|
8506
8506
|
] }), Tg = () => {
|
@@ -8515,18 +8515,18 @@ const hc = ({ transaction: e }) => {
|
|
8515
8515
|
justifyContent: "center",
|
8516
8516
|
mt: 12,
|
8517
8517
|
children: [
|
8518
|
-
/* @__PURE__ */ t(
|
8519
|
-
/* @__PURE__ */ t(
|
8520
|
-
/* @__PURE__ */ t(
|
8521
|
-
/* @__PURE__ */ t(
|
8518
|
+
/* @__PURE__ */ t(Ui, { icon: wr, label: e.expense }),
|
8519
|
+
/* @__PURE__ */ t(Ui, { icon: Nr, label: e.income }),
|
8520
|
+
/* @__PURE__ */ t(Ui, { icon: Dr, label: e.missed }),
|
8521
|
+
/* @__PURE__ */ t(Ui, { icon: Rr, label: e.paid })
|
8522
8522
|
]
|
8523
8523
|
}
|
8524
8524
|
);
|
8525
8525
|
}, Ag = A(Tg), ko = 58, Ig = () => {
|
8526
8526
|
const e = tt(), { onEvent: n } = z(), { selectedDay: i } = nt(), [a, r] = g.useState(
|
8527
|
-
|
8527
|
+
Qi(/* @__PURE__ */ new Date()) * hn + ko
|
8528
8528
|
), o = (c) => {
|
8529
|
-
r(
|
8529
|
+
r(Qi(c) * hn + ko), n(W.RECURRING_ACTIVITY_CLICK_CALENDAR_RIGHT);
|
8530
8530
|
}, s = /* @__PURE__ */ t(
|
8531
8531
|
li,
|
8532
8532
|
{
|
@@ -8612,7 +8612,7 @@ const hc = ({ transaction: e }) => {
|
|
8612
8612
|
] }),
|
8613
8613
|
e.length === 0 ? /* @__PURE__ */ t(p, { fontStyle: "italic", py: 24, sx: { textAlign: "center" }, children: s.no_activities }) : /* @__PURE__ */ t(ie, { children: n ? e.map((d, _) => /* @__PURE__ */ l(g.Fragment, { children: [
|
8614
8614
|
/* @__PURE__ */ t(
|
8615
|
-
|
8615
|
+
ra,
|
8616
8616
|
{
|
8617
8617
|
activity: d,
|
8618
8618
|
isMini: n,
|
@@ -8632,7 +8632,7 @@ const hc = ({ transaction: e }) => {
|
|
8632
8632
|
sx: { width: "100%" },
|
8633
8633
|
children: d.activities.map((u, h) => /* @__PURE__ */ l(g.Fragment, { children: [
|
8634
8634
|
/* @__PURE__ */ t(
|
8635
|
-
|
8635
|
+
ra,
|
8636
8636
|
{
|
8637
8637
|
activity: u,
|
8638
8638
|
isMini: n,
|
@@ -8689,7 +8689,7 @@ const hc = ({ transaction: e }) => {
|
|
8689
8689
|
selectedDayActivities: c,
|
8690
8690
|
setSelectedDay: d,
|
8691
8691
|
upcomingActivities: _
|
8692
|
-
} = nt(), [u, h] = g.useState(0), { onEvent: m } = z(), C = a.filter(Va), f = o.filter(Va), E = r.filter(Va), y = C.filter(
|
8692
|
+
} = nt(), [u, h] = g.useState(0), { onEvent: m } = z(), C = a.filter(Va), f = o.filter(Va), E = r.filter(Va), y = C.filter(Wi).reduce(gi, 0), T = f.filter(Wi).reduce(gi, 0), v = E.filter(Wi).reduce(gi, 0), w = C.filter(Wi).length, x = C.filter(Ua).reduce(gi, 0), R = f.filter(Ua).reduce(gi, 0), D = C.filter(Ua).length, $ = (U, P) => {
|
8693
8693
|
h(P);
|
8694
8694
|
}, O = (U) => {
|
8695
8695
|
m(W.RECURRING_ACTIVITY_CLICK_UPCOMING, {
|
@@ -8820,7 +8820,7 @@ const hc = ({ transaction: e }) => {
|
|
8820
8820
|
]
|
8821
8821
|
}
|
8822
8822
|
) : /* @__PURE__ */ t(ue, {});
|
8823
|
-
},
|
8823
|
+
}, K2 = A(Rg), Og = () => {
|
8824
8824
|
const { recurring: e } = I(), {
|
8825
8825
|
isDataLoaded: n,
|
8826
8826
|
loadActivity: i,
|
@@ -8832,7 +8832,7 @@ const hc = ({ transaction: e }) => {
|
|
8832
8832
|
g.useEffect(() => {
|
8833
8833
|
i();
|
8834
8834
|
}, []);
|
8835
|
-
const { availableWidth: c } =
|
8835
|
+
const { availableWidth: c } = Un(), d = c < 750;
|
8836
8836
|
return n ? /* @__PURE__ */ l(b, { flexDirection: d ? "column" : "row", width: "100%", children: [
|
8837
8837
|
/* @__PURE__ */ t(vc, {}),
|
8838
8838
|
!d && /* @__PURE__ */ t(G, { flexItem: !0, orientation: "vertical", sx: { my: 16, ml: 16 } }),
|
@@ -8871,7 +8871,7 @@ const hc = ({ transaction: e }) => {
|
|
8871
8871
|
children: /* @__PURE__ */ t(Lg, {})
|
8872
8872
|
}
|
8873
8873
|
);
|
8874
|
-
},
|
8874
|
+
}, z2 = A(Mg);
|
8875
8875
|
class kg {
|
8876
8876
|
globalStore;
|
8877
8877
|
api = new go("/", "");
|
@@ -9074,7 +9074,7 @@ const Gg = {
|
|
9074
9074
|
gridRow: 1,
|
9075
9075
|
gridColumn: 1,
|
9076
9076
|
zIndex: 2
|
9077
|
-
}, Bg = ({ size: e = 20 }) => /* @__PURE__ */ t(Xt, { size: e, children: /* @__PURE__ */ t(
|
9077
|
+
}, Bg = ({ size: e = 20 }) => /* @__PURE__ */ t(Xt, { size: e, children: /* @__PURE__ */ t(fa, { color: "error", sx: { fontSize: e, ...Gg } }) }), Mr = (e) => e && (e.account_type === oe.CREDIT_CARD || e.account_type === oe.LOAN || e.account_type === oe.MORTGAGE || e.account_type === oe.LINE_OF_CREDIT || e.account_type === oe.CHECKING_LINE_OF_CREDIT), Pg = (e) => e.is_manual || !e.guid, Hg = (e) => e.account_type === oe.LINE_OF_CREDIT || e.account_type === oe.CREDIT_CARD || e.account_type === oe.CHECKING_LINE_OF_CREDIT, $g = (e) => e.account_type === oe.SAVINGS || e.account_type === oe.CHECKING || e.account_type === oe.LINE_OF_CREDIT || e.account_type === oe.CREDIT_CARD || e.account_type === oe.LOAN || e.account_type === oe.MORTGAGE, Fg = (e) => e.account_type === oe.LOAN || e.account_type === oe.MORTGAGE, Wg = (e, n) => {
|
9078
9078
|
const i = [
|
9079
9079
|
{
|
9080
9080
|
event: "account_details_click_account_name",
|
@@ -9132,7 +9132,7 @@ const Gg = {
|
|
9132
9132
|
placeholder: S(n.enter_value, a),
|
9133
9133
|
type: xt.Input,
|
9134
9134
|
validation: (o) => ir(o) ? "" : n.error_amount_is_invalid,
|
9135
|
-
valueFormatter: (o) => ir(o) ?
|
9135
|
+
valueFormatter: (o) => ir(o) ? Ea(o / 100) : o
|
9136
9136
|
});
|
9137
9137
|
}
|
9138
9138
|
return Mr(e) && (i.push({
|
@@ -9323,7 +9323,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9323
9323
|
/* @__PURE__ */ t(G, {})
|
9324
9324
|
] });
|
9325
9325
|
}, Po = A(zg), Ho = (e, n) => (i) => i.accountGuid === e.guid && (mr(i.expectedDate) || Zt(i.expectedDate, n.start)) && we(i.expectedDate, n.end), Yg = () => {
|
9326
|
-
const { availableWidth: e } =
|
9326
|
+
const { availableWidth: e } = Un(), { cashflow: n } = I(), { upcomingExpenses: i, upcomingIncome: a } = nt(), { dateRange: r, selectedCashAccounts: o } = ui();
|
9327
9327
|
return /* @__PURE__ */ l(b, { children: [
|
9328
9328
|
/* @__PURE__ */ l(b, { direction: e < 400 ? "column" : "row", justifyContent: "space-between", children: [
|
9329
9329
|
/* @__PURE__ */ t(p, { bold: !0, sx: { fontSize: 15, mb: 12, whiteSpace: "normal" }, children: n.accounts_breakdown }),
|
@@ -9395,7 +9395,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9395
9395
|
}) })
|
9396
9396
|
] });
|
9397
9397
|
}, jg = A(Yg), Xg = () => {
|
9398
|
-
const { availableWidth: e } =
|
9398
|
+
const { availableWidth: e } = Un(), n = pe(), { cashflow: i } = I(), { upcomingExpenses: a, upcomingIncome: r } = nt(), { dateRange: o, selectedCashAccounts: s } = ui(), c = [
|
9399
9399
|
{
|
9400
9400
|
field: "account",
|
9401
9401
|
flex: 1.5,
|
@@ -9491,7 +9491,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9491
9491
|
}
|
9492
9492
|
),
|
9493
9493
|
/* @__PURE__ */ t(
|
9494
|
-
|
9494
|
+
ia,
|
9495
9495
|
{
|
9496
9496
|
body: i.table_tooltip_body,
|
9497
9497
|
title: i.table_tooltip_title
|
@@ -9689,7 +9689,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9689
9689
|
]
|
9690
9690
|
}
|
9691
9691
|
), $o = (e, n) => (i) => i.accountGuid && e.includes(i.accountGuid) && (mr(i.expectedDate) || Zt(i.expectedDate, n.start)) && we(i.expectedDate, n.end), Jg = () => {
|
9692
|
-
const [e, n] = g.useState(!1), { availableWidth: i } =
|
9692
|
+
const [e, n] = g.useState(!1), { availableWidth: i } = Un(), { cashflow: a } = I(), { upcomingExpenses: r, upcomingIncome: o } = nt(), { selectedAccountGuids: s } = ce(), { dateRange: c, selectedCashAccounts: d } = ui(), { userProfile: _ } = dn(), u = g.useMemo(
|
9693
9693
|
() => r.filter($o(s, c)),
|
9694
9694
|
[c, s, r]
|
9695
9695
|
), h = g.useMemo(
|
@@ -9746,7 +9746,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9746
9746
|
isTotal: !0,
|
9747
9747
|
label: a.remaining_cash,
|
9748
9748
|
tooltip: /* @__PURE__ */ t(
|
9749
|
-
|
9749
|
+
ia,
|
9750
9750
|
{
|
9751
9751
|
body: a.remaining_income_tooltip_body,
|
9752
9752
|
title: a.remaining_income_tooltip_title
|
@@ -9783,7 +9783,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9783
9783
|
amount: E,
|
9784
9784
|
label: a.remaining_cash,
|
9785
9785
|
tooltip: /* @__PURE__ */ t(
|
9786
|
-
|
9786
|
+
ia,
|
9787
9787
|
{
|
9788
9788
|
body: a.remaining_income_tooltip_body,
|
9789
9789
|
title: a.remaining_income_tooltip_title
|
@@ -9809,7 +9809,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9809
9809
|
return /* @__PURE__ */ l(b, { children: [
|
9810
9810
|
/* @__PURE__ */ t(cn, { pb: 12, children: i.welcome_title }),
|
9811
9811
|
/* @__PURE__ */ t(
|
9812
|
-
|
9812
|
+
Fn,
|
9813
9813
|
{
|
9814
9814
|
color: a.palette.primary.light,
|
9815
9815
|
pb: 8,
|
@@ -10126,7 +10126,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
10126
10126
|
children: /* @__PURE__ */ t(sm, {})
|
10127
10127
|
}
|
10128
10128
|
);
|
10129
|
-
},
|
10129
|
+
}, Y2 = A(cm);
|
10130
10130
|
class Wo {
|
10131
10131
|
fetchInstance;
|
10132
10132
|
constructor(n, i) {
|
@@ -10247,7 +10247,7 @@ const Cn = () => {
|
|
10247
10247
|
return um(e, s, h);
|
10248
10248
|
}, [e, s, c]);
|
10249
10249
|
return /* @__PURE__ */ t(
|
10250
|
-
|
10250
|
+
ca,
|
10251
10251
|
{
|
10252
10252
|
sx: {
|
10253
10253
|
boxShadow: a.shadows[2],
|
@@ -10311,7 +10311,7 @@ const Cn = () => {
|
|
10311
10311
|
/* @__PURE__ */ t(p, { variant: "H1", children: r.snowball_drawer_savings }),
|
10312
10312
|
/* @__PURE__ */ t(p, { color: a.palette.secondary.main, variant: "Small", children: r.snowball_drawer_duration_description })
|
10313
10313
|
] }),
|
10314
|
-
/* @__PURE__ */ l(
|
10314
|
+
/* @__PURE__ */ l(ca, { sx: { display: "grid", py: 16, px: 24 }, children: [
|
10315
10315
|
/* @__PURE__ */ t(p, { mb: 4, variant: "H3", children: r.snowball_drawer_question }),
|
10316
10316
|
/* @__PURE__ */ t(
|
10317
10317
|
p,
|
@@ -10769,7 +10769,7 @@ const Cn = () => {
|
|
10769
10769
|
/* @__PURE__ */ t(p, { variant: "Small", children: _?.name })
|
10770
10770
|
] }),
|
10771
10771
|
/* @__PURE__ */ l(b, { gap: 8, mb: 24, mt: 4, children: [
|
10772
|
-
/* @__PURE__ */ t(
|
10772
|
+
/* @__PURE__ */ t(Fn, { children: i.name || i.feed_name }),
|
10773
10773
|
/* @__PURE__ */ l(b, { direction: "row", justifyContent: "space-between", children: [
|
10774
10774
|
/* @__PURE__ */ t(p, { bold: s, variant: "Body", children: r }),
|
10775
10775
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: B(o, "0,0.00") })
|
@@ -11022,7 +11022,7 @@ const Lc = ({
|
|
11022
11022
|
onCancel: u,
|
11023
11023
|
onSave: _,
|
11024
11024
|
primaryText: n.details_interest_rate,
|
11025
|
-
secondaryText:
|
11025
|
+
secondaryText: Ea(Number(e.interest_rate) / 100),
|
11026
11026
|
zeroStateText: e.interest_rate ? void 0 : n.add_interest_rate,
|
11027
11027
|
children: /* @__PURE__ */ t(
|
11028
11028
|
it,
|
@@ -11121,7 +11121,7 @@ const Lc = ({
|
|
11121
11121
|
onCancel: d,
|
11122
11122
|
onSave: c,
|
11123
11123
|
primaryText: n.details_interest_rate,
|
11124
|
-
secondaryText:
|
11124
|
+
secondaryText: Ea(Number(e.interest_rate) / 100),
|
11125
11125
|
zeroStateText: e.interest_rate ? void 0 : n.add_interest_rate,
|
11126
11126
|
children: /* @__PURE__ */ t(
|
11127
11127
|
it,
|
@@ -11227,7 +11227,7 @@ const Lc = ({
|
|
11227
11227
|
/* @__PURE__ */ t(Tt, { sx: { my: 16, mx: 24, ...n }, children: /* @__PURE__ */ l(
|
11228
11228
|
xn,
|
11229
11229
|
{
|
11230
|
-
icon: a ? /* @__PURE__ */ t(
|
11230
|
+
icon: a ? /* @__PURE__ */ t(fa, {}) : /* @__PURE__ */ t(pa, { color: "success" }),
|
11231
11231
|
severity: "error",
|
11232
11232
|
sx: {
|
11233
11233
|
alignItems: "start",
|
@@ -11668,7 +11668,7 @@ const Ut = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
11668
11668
|
},
|
11669
11669
|
children: [
|
11670
11670
|
/* @__PURE__ */ t(p, { color: "inherit", variant: "Small", children: u }),
|
11671
|
-
r === _ && /* @__PURE__ */ t(
|
11671
|
+
r === _ && /* @__PURE__ */ t(pa, { color: "inherit", fontSize: "small" })
|
11672
11672
|
]
|
11673
11673
|
},
|
11674
11674
|
_
|
@@ -11827,7 +11827,7 @@ const Ut = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
11827
11827
|
]
|
11828
11828
|
}
|
11829
11829
|
);
|
11830
|
-
},
|
11830
|
+
}, X2 = A(sp), cp = {
|
11831
11831
|
unnamed_label: "Unnamed Debt"
|
11832
11832
|
};
|
11833
11833
|
function lp(e, n) {
|
@@ -11918,7 +11918,7 @@ function _p(e, n) {
|
|
11918
11918
|
maximumFractionDigits: 0
|
11919
11919
|
}, c = n.is_complete ? n.completed_at : n.projected_to_complete_at, d = c ? Me(c) : /* @__PURE__ */ new Date(), _ = S(
|
11920
11920
|
e.goal_percentage,
|
11921
|
-
|
11921
|
+
Ea(a, s)
|
11922
11922
|
), u = S(
|
11923
11923
|
n.is_complete ? e.completed_label : e.goal_projection,
|
11924
11924
|
ae(d, te.MONTH_SHORT_YEAR)
|
@@ -12020,7 +12020,7 @@ const gp = (e, n) => {
|
|
12020
12020
|
m,
|
12021
12021
|
s
|
12022
12022
|
)}` }),
|
12023
|
-
title: /* @__PURE__ */ t(
|
12023
|
+
title: /* @__PURE__ */ t(Fn, { color: "text.secondary", fontWeight: 400, variant: "Body", children: e.name })
|
12024
12024
|
}
|
12025
12025
|
),
|
12026
12026
|
/* @__PURE__ */ t(Bt, { sx: { pt: 0 }, children: /* @__PURE__ */ l(b, { gap: 6, children: [
|
@@ -12195,7 +12195,7 @@ const gp = (e, n) => {
|
|
12195
12195
|
}, bp = ({ goal: e }) => {
|
12196
12196
|
const { goals: n } = I();
|
12197
12197
|
return /* @__PURE__ */ t(X, { children: /* @__PURE__ */ l(de, { children: [
|
12198
|
-
/* @__PURE__ */ t(Ge, { sx: { alignItems: "center", display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(
|
12198
|
+
/* @__PURE__ */ t(Ge, { sx: { alignItems: "center", display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(da, { color: "success", filled: !0, size: 20 }) }),
|
12199
12199
|
/* @__PURE__ */ t(re, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
12200
12200
|
/* @__PURE__ */ l(b, { children: [
|
12201
12201
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e.name }),
|
@@ -12352,7 +12352,7 @@ const gp = (e, n) => {
|
|
12352
12352
|
}
|
12353
12353
|
) }),
|
12354
12354
|
/* @__PURE__ */ t(G, { variant: "inset" }),
|
12355
|
-
h && /* @__PURE__ */ t(
|
12355
|
+
h && /* @__PURE__ */ t(Ca, { in: _, children: /* @__PURE__ */ t(ie, { sx: { bgcolor: "background.default" }, children: c.map((m, C) => /* @__PURE__ */ t(X, { sx: { pl: 48 }, children: /* @__PURE__ */ l(de, { onClick: () => n(m.label, m.metaType, d), children: [
|
12356
12356
|
/* @__PURE__ */ t(Ct, { sx: { mr: 8 }, children: /* @__PURE__ */ t(yt, { name: m.icon }) }),
|
12357
12357
|
/* @__PURE__ */ t(
|
12358
12358
|
re,
|
@@ -12403,7 +12403,7 @@ const gp = (e, n) => {
|
|
12403
12403
|
secondary: B(u.balance || 0, "0,0.00")
|
12404
12404
|
}
|
12405
12405
|
),
|
12406
|
-
/* @__PURE__ */ t(
|
12406
|
+
/* @__PURE__ */ t(Xi, { checked: c.some((m) => m.guid === u.guid) })
|
12407
12407
|
] }) }),
|
12408
12408
|
/* @__PURE__ */ t(G, { variant: h < e.length - 1 ? "inset" : "fullWidth" })
|
12409
12409
|
] }, u.guid))
|
@@ -12673,7 +12673,7 @@ const gp = (e, n) => {
|
|
12673
12673
|
secondaryText: `${ae(Me(i.birthday ?? 0), te.MONTH_DAY_YEAR)}`,
|
12674
12674
|
zeroStateText: !e.guid && !i.birthday ? n.add_birthday : void 0,
|
12675
12675
|
children: /* @__PURE__ */ t(Nn, { dateAdapter: gn, children: /* @__PURE__ */ t(
|
12676
|
-
|
12676
|
+
ga,
|
12677
12677
|
{
|
12678
12678
|
label: n.details_birthday,
|
12679
12679
|
onChange: s,
|
@@ -12833,7 +12833,7 @@ const gp = (e, n) => {
|
|
12833
12833
|
}
|
12834
12834
|
)
|
12835
12835
|
] });
|
12836
|
-
}),
|
12836
|
+
}), q2 = A(({ onBackClick: e, sx: n }) => {
|
12837
12837
|
const { onEvent: i } = z(), { isMobile: a } = ve(), { visibleAccounts: r } = Re(), { isCopyLoaded: o, isInitialized: s, setSelectedAccounts: c } = ce(), { goals: d, common: _ } = I(), { alert: u, goals: h, goalsLoaded: m, loadGoals: C, monthlyCashFlowProfile: f, setAlert: E, retirmentGoals: y } = ot(), [T, v] = g.useState(0), [w, x] = g.useState(!1), R = f?.amount_allocated_for_savings_goals || 0, D = f?.amount_allocated_for_debt_goals || 0, $ = f?.amount_allocated_for_retirement_goals || 0, O = o ? S(
|
12838
12838
|
a ? d.tab_subtitle_mobile : d.tab_subtitle,
|
12839
12839
|
B(R, "0,0")
|
@@ -13394,7 +13394,7 @@ class zo {
|
|
13394
13394
|
getHoldings = async () => this.fetchInstance.get(k.HOLDINGS).then((n) => n.holdings);
|
13395
13395
|
updateHoldings = async (n) => this.fetchInstance.put(`${k.HOLDINGS}/${n.guid}`, n).then((i) => i.holding);
|
13396
13396
|
}
|
13397
|
-
var
|
13397
|
+
var Pn = /* @__PURE__ */ ((e) => (e.Stocks = "stocks", e.Bonds = "bonds", e))(Pn || {});
|
13398
13398
|
const Gp = {
|
13399
13399
|
UNKNOWN: 0,
|
13400
13400
|
LARGE_VALUE: 1,
|
@@ -13517,13 +13517,13 @@ const Gp = {
|
|
13517
13517
|
const a = n(i), r = Hr(a);
|
13518
13518
|
return r > 80 && r < 120;
|
13519
13519
|
}), qo = (e, n) => {
|
13520
|
-
const i = n ===
|
13520
|
+
const i = n === Pn.Stocks ? Hp : Pp, a = e[n];
|
13521
13521
|
return !a || !a || Object.keys(a).length === 0 ? i.map((r) => r.map(() => "0%")) : i.map((r) => r.map((o) => Wp(a[o] ?? 0)));
|
13522
13522
|
}, Hr = (e) => Object.values(e).reduce((n, i) => n + i, 0);
|
13523
13523
|
class Up {
|
13524
13524
|
analysisChartData = [];
|
13525
13525
|
analysisDetails = {};
|
13526
|
-
analysisType =
|
13526
|
+
analysisType = Pn.Stocks;
|
13527
13527
|
api = new zo("/", "");
|
13528
13528
|
holdings = [];
|
13529
13529
|
holdingsLoaded = !1;
|
@@ -13585,7 +13585,7 @@ const Vp = /^[ a-zA-ZÀ-ÿ0-9]+$/, Kp = 50, Zo = 65, zp = ({
|
|
13585
13585
|
});
|
13586
13586
|
return g.useEffect(() => m.measure(), [a]), s ? /* @__PURE__ */ l(b, { className: "mx-mrt-lookup", children: [
|
13587
13587
|
/* @__PURE__ */ t(
|
13588
|
-
|
13588
|
+
Bi,
|
13589
13589
|
{
|
13590
13590
|
ariaLabel: o.search_aria,
|
13591
13591
|
cancelAriaLabel: o.cancel_search_aria,
|
@@ -13621,7 +13621,7 @@ const Vp = /^[ a-zA-ZÀ-ÿ0-9]+$/, Kp = 50, Zo = 65, zp = ({
|
|
13621
13621
|
!a.length && /* @__PURE__ */ t(b, { alignItems: "center", my: 24, children: /* @__PURE__ */ t(p, { bold: !0, color: "secondary", variant: "Small", children: o.search_zero_state }) })
|
13622
13622
|
] }) }) })
|
13623
13623
|
] }) : /* @__PURE__ */ t(ue, {});
|
13624
|
-
},
|
13624
|
+
}, Z2 = A(zp);
|
13625
13625
|
class Qo {
|
13626
13626
|
fetchInstance;
|
13627
13627
|
constructor(n, i) {
|
@@ -13801,7 +13801,7 @@ const n1 = ({
|
|
13801
13801
|
onMouseLeave: r,
|
13802
13802
|
selectedData: o
|
13803
13803
|
}) => {
|
13804
|
-
const { isMobile: s } = ve(), { availableWidth: c } =
|
13804
|
+
const { isMobile: s } = ve(), { availableWidth: c } = Un(), d = tt(), _ = c - 320, u = e.map((f) => ({
|
13805
13805
|
x: wt(Me(f.x), "MMM"),
|
13806
13806
|
y: f.y
|
13807
13807
|
})), h = o ? { index: e.findIndex((f) => f.x === o.x) } : void 0, m = n ? { index: e.findIndex((f) => f.x === n.x) } : void 0, C = (f) => ({
|
@@ -13980,8 +13980,8 @@ const n1 = ({
|
|
13980
13980
|
},
|
13981
13981
|
title: i,
|
13982
13982
|
children: /* @__PURE__ */ l("div", { id: Eo, children: [
|
13983
|
-
u && /* @__PURE__ */ t(
|
13984
|
-
d && /* @__PURE__ */ t(
|
13983
|
+
u && /* @__PURE__ */ t(na, { status: Bn.Error }),
|
13984
|
+
d && /* @__PURE__ */ t(na, { status: Bn.Loading })
|
13985
13985
|
] })
|
13986
13986
|
}
|
13987
13987
|
);
|
@@ -13999,7 +13999,7 @@ const n1 = ({
|
|
13999
13999
|
/* @__PURE__ */ t(Ct, { children: a ? /* @__PURE__ */ t(H, { name: "expand_less", size: 24 }) : /* @__PURE__ */ t(H, { name: "expand_more", size: 24 }) })
|
14000
14000
|
] }) }),
|
14001
14001
|
/* @__PURE__ */ t(G, {}),
|
14002
|
-
/* @__PURE__ */ t(
|
14002
|
+
/* @__PURE__ */ t(Ca, { in: a, timeout: "auto", unmountOnExit: !0, children: e.map((o, s) => /* @__PURE__ */ l(ie, { children: [
|
14003
14003
|
/* @__PURE__ */ t(X, { sx: () => ({ py: 14 }), children: /* @__PURE__ */ t(
|
14004
14004
|
re,
|
14005
14005
|
{
|
@@ -14146,7 +14146,7 @@ const n1 = ({
|
|
14146
14146
|
] }))
|
14147
14147
|
] })
|
14148
14148
|
] });
|
14149
|
-
}, p1 = A(m1),
|
14149
|
+
}, p1 = A(m1), Q2 = A(({ onBackClick: e }) => {
|
14150
14150
|
const { isCopyLoaded: n, isInitialized: i, selectedAccounts: a, setSelectedAccounts: r } = ce(), { accounts: o, net_worth: s } = I(), { visibleAccounts: c } = Re(), {
|
14151
14151
|
assetsLiabilities: d,
|
14152
14152
|
gainsLosses: _,
|
@@ -14282,7 +14282,7 @@ const n1 = ({
|
|
14282
14282
|
] }) : /* @__PURE__ */ t(ue, {})
|
14283
14283
|
}
|
14284
14284
|
) : /* @__PURE__ */ t(ue, {});
|
14285
|
-
}),
|
14285
|
+
}), J2 = (e) => {
|
14286
14286
|
switch (e) {
|
14287
14287
|
case Ue.BudgetExceeded:
|
14288
14288
|
case Ue.BudgetOffTarget:
|
@@ -14385,7 +14385,7 @@ const b1 = (e, n) => {
|
|
14385
14385
|
width: 8
|
14386
14386
|
}
|
14387
14387
|
};
|
14388
|
-
return /* @__PURE__ */ l(
|
14388
|
+
return /* @__PURE__ */ l(ca, { onClick: () => {
|
14389
14389
|
n(e), i({ ...e, has_been_viewed: !0 }).finally();
|
14390
14390
|
}, sx: r.card, children: [
|
14391
14391
|
e.has_been_viewed ? null : /* @__PURE__ */ t("div", { "data-testid": "new-message-dot", style: r.dot }),
|
@@ -14481,14 +14481,14 @@ const is = "PARENT-ENTITY", x1 = (e, n) => {
|
|
14481
14481
|
class w1 {
|
14482
14482
|
globalStore;
|
14483
14483
|
api = new ns("/", "");
|
14484
|
-
transactionApi = new
|
14484
|
+
transactionApi = new aa("/", "");
|
14485
14485
|
alert = { message: "", severity: void 0 };
|
14486
14486
|
devices = [];
|
14487
14487
|
notificationProfiles = [];
|
14488
14488
|
selectedRule = void 0;
|
14489
14489
|
transactionRules = [];
|
14490
14490
|
constructor(n) {
|
14491
|
-
this.globalStore = n, this.api = new ns(n.endpoint, n.sessionToken), this.transactionApi = new
|
14491
|
+
this.globalStore = n, this.api = new ns(n.endpoint, n.sessionToken), this.transactionApi = new aa(n.endpoint, n.sessionToken), Be(this);
|
14492
14492
|
}
|
14493
14493
|
get accountProfiles() {
|
14494
14494
|
return this.detailedNotificationProfiles.filter(
|
@@ -14713,7 +14713,7 @@ const R1 = ({
|
|
14713
14713
|
}
|
14714
14714
|
)
|
14715
14715
|
] }),
|
14716
|
-
/* @__PURE__ */ t(
|
14716
|
+
/* @__PURE__ */ t(Fn, { color: "text.primary", sx: { mt: 24, whiteSpace: { sm: "nowrap", xs: "wrap" } }, children: o })
|
14717
14717
|
] });
|
14718
14718
|
}, dr = ({
|
14719
14719
|
altImage: e,
|
@@ -17132,7 +17132,7 @@ const R1 = ({
|
|
17132
17132
|
/* @__PURE__ */ t(
|
17133
17133
|
Mi,
|
17134
17134
|
{
|
17135
|
-
expandIcon: /* @__PURE__ */ t(
|
17135
|
+
expandIcon: /* @__PURE__ */ t(ha, { sx: { color: "text.primary" } }),
|
17136
17136
|
sx: { height: 64, p: "14px 24px" },
|
17137
17137
|
children: /* @__PURE__ */ l(b, { sx: { alignItems: "center", flexDirection: "row", gap: 12 }, children: [
|
17138
17138
|
/* @__PURE__ */ t(H, { name: E, size: 24 }),
|
@@ -17264,7 +17264,7 @@ const R1 = ({
|
|
17264
17264
|
{
|
17265
17265
|
type: "internal"
|
17266
17266
|
}
|
17267
|
-
],
|
17267
|
+
], Pi = ({
|
17268
17268
|
content: e,
|
17269
17269
|
hasIcon: n = !0,
|
17270
17270
|
institution: i = "",
|
@@ -17322,7 +17322,7 @@ const R1 = ({
|
|
17322
17322
|
children: [
|
17323
17323
|
r ? /* @__PURE__ */ t(ue, {}) : /* @__PURE__ */ l(g.Fragment, { children: [
|
17324
17324
|
/* @__PURE__ */ t(
|
17325
|
-
|
17325
|
+
Pi,
|
17326
17326
|
{
|
17327
17327
|
hasIcon: !a,
|
17328
17328
|
institution: a,
|
@@ -17397,7 +17397,7 @@ const R1 = ({
|
|
17397
17397
|
/* @__PURE__ */ t(
|
17398
17398
|
Mi,
|
17399
17399
|
{
|
17400
|
-
expandIcon: /* @__PURE__ */ t(
|
17400
|
+
expandIcon: /* @__PURE__ */ t(ha, { sx: { color: "text.primary" } }),
|
17401
17401
|
sx: { p: "14px 24px", height: 64 },
|
17402
17402
|
children: /* @__PURE__ */ l(b, { sx: { alignItems: "center", flexDirection: "row", gap: 12 }, children: [
|
17403
17403
|
/* @__PURE__ */ t(H, { name: r, size: 24 }),
|
@@ -17490,7 +17490,7 @@ const R1 = ({
|
|
17490
17490
|
title: e.request_support,
|
17491
17491
|
children: [
|
17492
17492
|
/* @__PURE__ */ t(
|
17493
|
-
|
17493
|
+
Pi,
|
17494
17494
|
{
|
17495
17495
|
content: e.popular_topics_missing_institution_content,
|
17496
17496
|
hasIcon: !1,
|
@@ -17583,7 +17583,7 @@ const R1 = ({
|
|
17583
17583
|
);
|
17584
17584
|
return /* @__PURE__ */ t(ne, { isOpen: n, onClose: a, title: e.request_support, children: /* @__PURE__ */ l(b, { children: [
|
17585
17585
|
/* @__PURE__ */ t(
|
17586
|
-
|
17586
|
+
Pi,
|
17587
17587
|
{
|
17588
17588
|
hasIcon: !1,
|
17589
17589
|
reverse: !0,
|
@@ -17633,7 +17633,7 @@ const R1 = ({
|
|
17633
17633
|
const { common: s } = I();
|
17634
17634
|
return /* @__PURE__ */ l(ne, { isOpen: i, onClose: a, title: e.request_support, children: [
|
17635
17635
|
/* @__PURE__ */ t(
|
17636
|
-
|
17636
|
+
Pi,
|
17637
17637
|
{
|
17638
17638
|
hasIcon: !1,
|
17639
17639
|
institution: n,
|
@@ -17695,7 +17695,7 @@ const R1 = ({
|
|
17695
17695
|
return /* @__PURE__ */ t(ne, { isOpen: i, onClose: r, title: e.request_support, children: /* @__PURE__ */ l(M, { sx: { px: 24 }, children: [
|
17696
17696
|
/* @__PURE__ */ t(b, { sx: { alignItems: "center", pb: 24, pt: 80 }, children: /* @__PURE__ */ t(H, { color: "success", fill: !0, name: "check_circle", size: 64 }) }),
|
17697
17697
|
/* @__PURE__ */ l(b, { sx: { alignItems: "center", gap: 16, pb: 48 }, children: [
|
17698
|
-
/* @__PURE__ */ t(
|
17698
|
+
/* @__PURE__ */ t(Fn, { children: e.request_support_success }),
|
17699
17699
|
/* @__PURE__ */ t(Oe, { align: "center", variant: "Body", children: e.request_support_submit_success_message }),
|
17700
17700
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: n })
|
17701
17701
|
] }),
|
@@ -17744,7 +17744,7 @@ const R1 = ({
|
|
17744
17744
|
return /* @__PURE__ */ t(ne, { isOpen: n, onClose: i, title: e.request_support, children: !d || o ? /* @__PURE__ */ t(ue, {}) : /* @__PURE__ */ l(g.Fragment, { children: [
|
17745
17745
|
/* @__PURE__ */ l(b, { children: [
|
17746
17746
|
/* @__PURE__ */ t(
|
17747
|
-
|
17747
|
+
Pi,
|
17748
17748
|
{
|
17749
17749
|
subtitle: e.request_support_short_content,
|
17750
17750
|
title: e.request_support_title
|
@@ -18031,7 +18031,7 @@ const R1 = ({
|
|
18031
18031
|
)
|
18032
18032
|
] });
|
18033
18033
|
}), mC = () => {
|
18034
|
-
const e = tt(), { common: n, settings: i } = I(), { isDesktop: a, isMobile: r, isSmallMobile: o, isTablet: s } = ve(), { config: c } =
|
18034
|
+
const e = tt(), { common: n, settings: i } = I(), { isDesktop: a, isMobile: r, isSmallMobile: o, isTablet: s } = ve(), { config: c } = Gi(), { updateUser: d } = Ht(), { user: _ } = dn(), [u, h] = g.useState(_.first_name), [m, C] = g.useState(_.last_name), [f, E] = g.useState(_.email), [y, T] = g.useState(_.phone), [v, w] = g.useState(_.postal_code), [x, R] = g.useState(_.credit_score), [D, $] = g.useState(null), O = f && !_.email_is_verified, L = y && !_.phone_is_verified;
|
18035
18035
|
g.useEffect(() => {
|
18036
18036
|
if (_.birthday) {
|
18037
18037
|
const P = new Date(_.birthday * 1e3), j = P.getUTCFullYear(), he = P.getUTCMonth(), V = P.getUTCDate();
|
@@ -18119,7 +18119,7 @@ const R1 = ({
|
|
18119
18119
|
] }),
|
18120
18120
|
/* @__PURE__ */ l(b, { direction: r ? "column" : "row", spacing: r ? 44 : 24, sx: { mb: 44 }, children: [
|
18121
18121
|
/* @__PURE__ */ t(Nn, { dateAdapter: gn, children: /* @__PURE__ */ t(
|
18122
|
-
|
18122
|
+
ga,
|
18123
18123
|
{
|
18124
18124
|
label: i.birthdate,
|
18125
18125
|
onChange: $,
|
@@ -18978,8 +18978,8 @@ const CC = ({
|
|
18978
18978
|
}
|
18979
18979
|
)
|
18980
18980
|
] });
|
18981
|
-
}),
|
18982
|
-
const { settings: i } = I(), { isCopyLoaded: a, isInitialized: r } = ce(), { config: o } =
|
18981
|
+
}), e4 = A(({ onBackClick: e, sx: n }) => {
|
18982
|
+
const { settings: i } = I(), { isCopyLoaded: a, isInitialized: r } = ce(), { config: o } = Gi(), { alert: s, setAlert: c } = Ht(), { isMobile: d } = ve(), _ = pe(), {
|
18983
18983
|
display_user_profile_in_settings: u,
|
18984
18984
|
display_mobile_devices_in_settings: h,
|
18985
18985
|
display_notification_settings_in_settings: m,
|
@@ -19052,7 +19052,7 @@ const CC = ({
|
|
19052
19052
|
] })
|
19053
19053
|
}
|
19054
19054
|
);
|
19055
|
-
}),
|
19055
|
+
}), t4 = A(
|
19056
19056
|
({ isOpen: e, onClose: n, onNotificationClick: i }) => {
|
19057
19057
|
const { notifications: a } = I(), { isCopyLoaded: r } = ce(), [o, s] = g.useState(!1);
|
19058
19058
|
return r ? /* @__PURE__ */ l(
|
@@ -19267,7 +19267,7 @@ const RC = (e) => {
|
|
19267
19267
|
}
|
19268
19268
|
return a;
|
19269
19269
|
}, kC = (e) => {
|
19270
|
-
const n = [], i =
|
19270
|
+
const n = [], i = ji(le(), e.recurrenceDay);
|
19271
19271
|
return n.push({ ...e, expectedDate: i }), n.push({ ...e, expectedDate: gt(i, 1) }), n;
|
19272
19272
|
}, GC = (e, n, i) => {
|
19273
19273
|
const a = [], r = e.expectedDate;
|
@@ -19650,7 +19650,7 @@ class zC {
|
|
19650
19650
|
}
|
19651
19651
|
};
|
19652
19652
|
}
|
19653
|
-
class
|
19653
|
+
class n4 {
|
19654
19654
|
// Global properties
|
19655
19655
|
appConfig = rs;
|
19656
19656
|
endpoint = "/";
|
@@ -19736,7 +19736,7 @@ const Xa = ({
|
|
19736
19736
|
},
|
19737
19737
|
primaryText: d.is_hidden ? h.unhide_account : h.hide_Account,
|
19738
19738
|
secondaryText: d.is_hidden ? h.include_this_account : h.exclude_this_account,
|
19739
|
-
children: /* @__PURE__ */ t(
|
19739
|
+
children: /* @__PURE__ */ t(ua, { checked: d.is_hidden })
|
19740
19740
|
}
|
19741
19741
|
),
|
19742
19742
|
/* @__PURE__ */ t(
|
@@ -19993,7 +19993,7 @@ const Xa = ({
|
|
19993
19993
|
} = pe(), { selectedMember: a } = $t(), { accounts: r, connect: o } = I(), s = qc(a, o), c = Fs.includes(a.connection_status) ? {
|
19994
19994
|
color: "error.main",
|
19995
19995
|
ctaCopy: s.cta ?? "",
|
19996
|
-
icon: /* @__PURE__ */ t(
|
19996
|
+
icon: /* @__PURE__ */ t(fa, { sx: { ...qa } }),
|
19997
19997
|
mainMessage: s.statusName,
|
19998
19998
|
secondaryMessage: `${s.title}.`
|
19999
19999
|
} : {
|
@@ -20081,7 +20081,7 @@ const Xa = ({
|
|
20081
20081
|
onChange: (y) => c(y.target.value),
|
20082
20082
|
placeholder: e.placeholder,
|
20083
20083
|
value: s,
|
20084
|
-
children: e.options?.map((y) => /* @__PURE__ */ t(
|
20084
|
+
children: e.options?.map((y) => /* @__PURE__ */ t(ma, { value: y.value, children: y.label }, y.value))
|
20085
20085
|
}
|
20086
20086
|
)
|
20087
20087
|
] });
|
@@ -20223,7 +20223,7 @@ const Xa = ({
|
|
20223
20223
|
children: /* @__PURE__ */ l(
|
20224
20224
|
xn,
|
20225
20225
|
{
|
20226
|
-
icon: /* @__PURE__ */ t(
|
20226
|
+
icon: /* @__PURE__ */ t(fa, {}),
|
20227
20227
|
severity: "error",
|
20228
20228
|
sx: {
|
20229
20229
|
borderLeft: 5,
|
@@ -20462,7 +20462,7 @@ const Xa = ({
|
|
20462
20462
|
)
|
20463
20463
|
] });
|
20464
20464
|
}, uf = A(df), _f = ({ onBackClick: e, sx: n = {} }) => {
|
20465
|
-
const [i, a] = g.useState(!1), [r, o] = g.useState(!1), { config: s } =
|
20465
|
+
const [i, a] = g.useState(!1), [r, o] = g.useState(!1), { config: s } = Gi(), { accounts: c, refreshMembers: d } = Re(), { accounts: _ } = I(), { isCopyLoaded: u, isInitialized: h, setSelectedAccounts: m, selectedAccountGuids: C } = ce(), { isDesktop: f } = ve(), { onEvent: E } = z();
|
20466
20466
|
g.useEffect(() => {
|
20467
20467
|
m(c);
|
20468
20468
|
}, [c]);
|
@@ -20509,7 +20509,7 @@ const Xa = ({
|
|
20509
20509
|
] })
|
20510
20510
|
}
|
20511
20511
|
) : /* @__PURE__ */ t(ue, {});
|
20512
|
-
},
|
20512
|
+
}, i4 = A(_f), hf = ({ onPrimaryCtaClick: e, sx: n }) => {
|
20513
20513
|
const { visibleAccounts: i } = Re(), { accounts: a } = I(), { isCopyLoaded: r, isInitialized: o, selectedAccounts: s, setSelectedAccounts: c } = ce();
|
20514
20514
|
return g.useEffect(() => {
|
20515
20515
|
c(i);
|
@@ -20540,7 +20540,7 @@ const Xa = ({
|
|
20540
20540
|
] }) : /* @__PURE__ */ t(ue, {})
|
20541
20541
|
}
|
20542
20542
|
) : /* @__PURE__ */ t(ue, {});
|
20543
|
-
},
|
20543
|
+
}, a4 = A(hf), gf = () => /* @__PURE__ */ l(
|
20544
20544
|
"svg",
|
20545
20545
|
{
|
20546
20546
|
fill: "none",
|
@@ -21025,7 +21025,7 @@ const Xa = ({
|
|
21025
21025
|
]
|
21026
21026
|
}
|
21027
21027
|
) : /* @__PURE__ */ t(ue, {});
|
21028
|
-
},
|
21028
|
+
}, r4 = A(Cf);
|
21029
21029
|
class cs {
|
21030
21030
|
fetchInstance;
|
21031
21031
|
constructor(n, i) {
|
@@ -21238,7 +21238,7 @@ const yf = () => {
|
|
21238
21238
|
};
|
21239
21239
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
21240
21240
|
/* @__PURE__ */ t(
|
21241
|
-
|
21241
|
+
la,
|
21242
21242
|
{
|
21243
21243
|
exclusive: !0,
|
21244
21244
|
onChange: s,
|
@@ -21386,7 +21386,7 @@ const yf = () => {
|
|
21386
21386
|
]
|
21387
21387
|
}
|
21388
21388
|
) : /* @__PURE__ */ t(ue, {});
|
21389
|
-
},
|
21389
|
+
}, o4 = A(Af), ls = 5, If = 100, xf = 25, vf = (e) => {
|
21390
21390
|
const n = (r) => {
|
21391
21391
|
r.active || e.alphaTarget(0.3).restart(), r.subject.fx = r.subject.x, r.subject.fy = r.subject.y;
|
21392
21392
|
}, i = (r) => {
|
@@ -21489,7 +21489,7 @@ function kf({ bubble: e, isDraggable: n, onClick: i = () => {
|
|
21489
21489
|
y: C,
|
21490
21490
|
children: [
|
21491
21491
|
/* @__PURE__ */ t(
|
21492
|
-
|
21492
|
+
Wn,
|
21493
21493
|
{
|
21494
21494
|
followCursor: !0,
|
21495
21495
|
open: a,
|
@@ -21648,7 +21648,7 @@ const Gf = ({
|
|
21648
21648
|
shouldShowZeroState: r,
|
21649
21649
|
unavailableWidth: o = 24
|
21650
21650
|
}) => {
|
21651
|
-
const { onEvent: s } = z(), { setSelectedBudget: c } = lt(), { isLoadingCategoryTotals: d } = Ke(), { isInitialized: _ } = ce(), { accounts: u } = I(), { availableWidth: h } =
|
21651
|
+
const { onEvent: s } = z(), { setSelectedBudget: c } = lt(), { isLoadingCategoryTotals: d } = Ke(), { isInitialized: _ } = ce(), { accounts: u } = I(), { availableWidth: h } = Un(), { isMobile: m } = ve(), [C, f] = g.useState(!1), E = g.useMemo(() => h - o, [h]), y = (v) => {
|
21652
21652
|
c(v), s(W.BUDGETS_CLICK_BUDGET_CATEGORY, {
|
21653
21653
|
budget_category: v.category.name,
|
21654
21654
|
click_type: "bubble"
|
@@ -21713,7 +21713,7 @@ const Gf = ({
|
|
21713
21713
|
] }) : /* @__PURE__ */ t(ue, {})
|
21714
21714
|
}
|
21715
21715
|
) : /* @__PURE__ */ t(ue, {});
|
21716
|
-
},
|
21716
|
+
}, s4 = A(Hf), $f = A(() => {
|
21717
21717
|
const { budgets: e } = I(), { totalBudgeted: n } = lt(), { projectedIncome: i } = nt(), a = i - n;
|
21718
21718
|
return /* @__PURE__ */ l(b, { direction: "row", justifyContent: "center", my: 16, spacing: 20, children: [
|
21719
21719
|
/* @__PURE__ */ l(b, { alignItems: "center", children: [
|
@@ -22290,7 +22290,7 @@ const Gf = ({
|
|
22290
22290
|
}
|
22291
22291
|
)
|
22292
22292
|
] });
|
22293
|
-
}), _s = 480,
|
22293
|
+
}), _s = 480, c4 = A(({ onBackClick: e, sx: n }) => {
|
22294
22294
|
const i = pe(), { onEvent: a } = z(), { visibleAccounts: r } = Re(), { budgets: o, common: s } = I(), { isCopyLoaded: c, isInitialized: d, selectedAccounts: _, setDisplayedDate: u, setSelectedAccounts: h } = ce(), {
|
22295
22295
|
alert: m,
|
22296
22296
|
dateRange: C,
|
@@ -22445,100 +22445,111 @@ const Gf = ({
|
|
22445
22445
|
}
|
22446
22446
|
) : null;
|
22447
22447
|
}), t0 = () => {
|
22448
|
-
const {
|
22449
|
-
|
22450
|
-
}
|
22451
|
-
|
22452
|
-
|
22453
|
-
|
22454
|
-
|
22455
|
-
|
22456
|
-
|
22457
|
-
|
22458
|
-
|
22459
|
-
|
22460
|
-
|
22461
|
-
|
22462
|
-
|
22463
|
-
|
22464
|
-
|
22465
|
-
|
22466
|
-
|
22467
|
-
|
22468
|
-
|
22469
|
-
|
22470
|
-
|
22471
|
-
|
22472
|
-
|
22473
|
-
|
22474
|
-
|
22475
|
-
|
22476
|
-
|
22477
|
-
|
22478
|
-
|
22479
|
-
|
22480
|
-
|
22481
|
-
|
22482
|
-
color: "primary",
|
22483
|
-
onClick: d,
|
22484
|
-
sx: { p: 12 },
|
22485
|
-
children: /* @__PURE__ */ t(H, { name: "add", size: 20 })
|
22486
|
-
}
|
22487
|
-
) }) : /* @__PURE__ */ t(
|
22488
|
-
ee,
|
22489
|
-
{
|
22490
|
-
"aria-controls": "add_accounts",
|
22491
|
-
"aria-haspopup": !0,
|
22492
|
-
"aria-label": "Add Accounts",
|
22493
|
-
onClick: d,
|
22494
|
-
startIcon: /* @__PURE__ */ t(H, { name: "add", size: 20 }),
|
22495
|
-
children: "Add Accounts"
|
22496
|
-
}
|
22497
|
-
),
|
22498
|
-
/* @__PURE__ */ t(
|
22499
|
-
Qs,
|
22500
|
-
{
|
22501
|
-
accounts: e,
|
22502
|
-
copy: _,
|
22503
|
-
onFilterClick: (h) => {
|
22504
|
-
i(h);
|
22505
|
-
},
|
22506
|
-
selectedAccountGuids: n,
|
22507
|
-
showAccountNumbers: !1,
|
22508
|
-
sx: { "& .mx-cmn-account-filter-title": { fontSize: 15 }, mx: 4 },
|
22509
|
-
variant: "text"
|
22510
|
-
}
|
22511
|
-
)
|
22512
|
-
] })
|
22513
|
-
] }),
|
22514
|
-
s && /* @__PURE__ */ t(
|
22448
|
+
const { common: e, connect: n } = I(), i = Mn("(max-width: 700px)"), [a, r] = g.useState(!1), o = () => {
|
22449
|
+
r(!0);
|
22450
|
+
};
|
22451
|
+
return /* @__PURE__ */ l(g.Fragment, { children: [
|
22452
|
+
/* @__PURE__ */ t(M, { my: 4, children: i ? /* @__PURE__ */ t(Wn, { id: "add-accounts", placement: "bottom", title: e.add_accounts, children: /* @__PURE__ */ t(
|
22453
|
+
$e,
|
22454
|
+
{
|
22455
|
+
"aria-controls": "add_accounts",
|
22456
|
+
"aria-describedby": "add-accounts",
|
22457
|
+
"aria-haspopup": !0,
|
22458
|
+
"aria-label": e.add_accounts,
|
22459
|
+
color: "primary",
|
22460
|
+
onClick: o,
|
22461
|
+
children: /* @__PURE__ */ t(H, { name: "add", size: 24 })
|
22462
|
+
}
|
22463
|
+
) }) : /* @__PURE__ */ t(
|
22464
|
+
ee,
|
22465
|
+
{
|
22466
|
+
"aria-controls": "add_accounts",
|
22467
|
+
"aria-haspopup": !0,
|
22468
|
+
"aria-label": e.add_accounts,
|
22469
|
+
onClick: o,
|
22470
|
+
startIcon: /* @__PURE__ */ t(H, { name: "add", size: 24 }),
|
22471
|
+
sx: {
|
22472
|
+
p: 12,
|
22473
|
+
pr: 0,
|
22474
|
+
whiteSpace: "nowrap",
|
22475
|
+
minWidth: "max-content"
|
22476
|
+
},
|
22477
|
+
variant: "text",
|
22478
|
+
children: e.add_accounts
|
22479
|
+
}
|
22480
|
+
) }),
|
22481
|
+
a && /* @__PURE__ */ t(
|
22515
22482
|
di,
|
22516
22483
|
{
|
22517
|
-
onClose: () =>
|
22518
|
-
showConnectWidget:
|
22519
|
-
title:
|
22484
|
+
onClose: () => r(!1),
|
22485
|
+
showConnectWidget: a,
|
22486
|
+
title: n.mini_title
|
22520
22487
|
}
|
22521
22488
|
)
|
22522
22489
|
] });
|
22523
|
-
}, n0 = A(t0)
|
22524
|
-
|
22525
|
-
|
22490
|
+
}, n0 = A(t0), i0 = () => {
|
22491
|
+
const { visibleAccounts: e } = Re(), { selectedAccountGuids: n, setSelectedAccountGuids: i } = ce(), { common: a } = I(), { config: r } = Gi(), { isMobile: o } = ve(), s = {
|
22492
|
+
accountFilterOptionsCopy: {
|
22493
|
+
accountTypeAccounts: a.account_filter.account_type_accounts,
|
22494
|
+
cancelButton: a.cancel_button,
|
22495
|
+
filterButton: a.filter_button,
|
22496
|
+
filterButtonAria: a.account_filter.filter_button_generic_aria,
|
22497
|
+
selectAllAccounts: a.account_filter.select_all_accounts,
|
22498
|
+
toggleAccountTypeAccounts: a.account_filter.toggle_account_type_accounts,
|
22499
|
+
unselectAllAccounts: a.account_filter.unselect_all_accounts,
|
22500
|
+
zeroStateButton: a.account_filter.zero_state_button,
|
22501
|
+
zeroStateDescription: a.account_filter.zero_state_description,
|
22502
|
+
zeroStateTitle: a.account_filter.zero_state_title
|
22503
|
+
},
|
22504
|
+
title: a.filter_button
|
22505
|
+
};
|
22506
|
+
return /* @__PURE__ */ t(Tt, { sx: { gap: 12, mb: o ? 24 : 0, p: 24 }, children: /* @__PURE__ */ l(b, { alignItems: "center", flexDirection: "row", justifyContent: "space-between", children: [
|
22507
|
+
/* @__PURE__ */ t(b, { direction: "row", spacing: 2, children: /* @__PURE__ */ l(b, { children: [
|
22508
|
+
/* @__PURE__ */ t(cn, { children: (() => {
|
22509
|
+
const _ = (/* @__PURE__ */ new Date()).getHours();
|
22510
|
+
return _ > 1 && _ < 12 ? a.good_morning : _ >= 12 && _ < 18 ? a.good_afternoon : a.good_evening;
|
22511
|
+
})() }),
|
22512
|
+
/* @__PURE__ */ t(p, { color: "text.secondary", sx: { fontSize: 15 }, children: a.heres_your_spending_overview })
|
22513
|
+
] }) }),
|
22514
|
+
/* @__PURE__ */ l(b, { flexDirection: "row", children: [
|
22515
|
+
r.show_connections_widget_in_master && /* @__PURE__ */ t(n0, {}),
|
22516
|
+
/* @__PURE__ */ t(
|
22517
|
+
Qs,
|
22518
|
+
{
|
22519
|
+
accounts: e,
|
22520
|
+
copy: s,
|
22521
|
+
onFilterClick: (d) => {
|
22522
|
+
i(d);
|
22523
|
+
},
|
22524
|
+
selectedAccountGuids: n,
|
22525
|
+
showAccountNumbers: !1,
|
22526
|
+
sx: {
|
22527
|
+
maxWidth: "100%"
|
22528
|
+
},
|
22529
|
+
variant: "text"
|
22530
|
+
}
|
22531
|
+
)
|
22532
|
+
] })
|
22533
|
+
] }) });
|
22534
|
+
}, a0 = A(i0);
|
22535
|
+
var Yi = /* @__PURE__ */ ((e) => (e[e.Main = 0] = "Main", e[e.RightSide = 1] = "RightSide", e[e.Disabled = 2] = "Disabled", e))(Yi || {});
|
22536
|
+
const r0 = ({ widgets: e, isLoading: n }) => {
|
22526
22537
|
const { isDesktop: i, isMobile: a } = ve(), { copyStore: r } = Ta(), { setSelectedAccounts: o } = ce(), { visibleAccounts: s } = Re();
|
22527
22538
|
g.useEffect(() => {
|
22528
22539
|
o(s);
|
22529
22540
|
}, [s]);
|
22530
22541
|
const c = g.useMemo(
|
22531
|
-
() => e.filter((u) => u.location !==
|
22542
|
+
() => e.filter((u) => u.location !== Yi.Disabled).sort((u, h) => u.index - h.index),
|
22532
22543
|
[e]
|
22533
22544
|
), d = g.useMemo(
|
22534
|
-
() => c.filter((u) => u.location ===
|
22545
|
+
() => c.filter((u) => u.location === Yi.Main),
|
22535
22546
|
[c]
|
22536
22547
|
), _ = g.useMemo(
|
22537
|
-
() => c.filter((u) => u.location ===
|
22548
|
+
() => c.filter((u) => u.location === Yi.RightSide),
|
22538
22549
|
[c]
|
22539
22550
|
);
|
22540
22551
|
return /* @__PURE__ */ l(zt, { container: !0, spacing: a ? 0 : 24, sx: { overflow: "scroll" }, children: [
|
22541
|
-
/* @__PURE__ */ t(zt, { xs: 12, children: r.isInitialized && /* @__PURE__ */ t(
|
22552
|
+
/* @__PURE__ */ t(zt, { xs: 12, children: r.isInitialized && /* @__PURE__ */ t(a0, {}) }),
|
22542
22553
|
/* @__PURE__ */ l(zt, { lg: 8, xs: 12, children: [
|
22543
22554
|
/* @__PURE__ */ t(e0, {}),
|
22544
22555
|
n && /* @__PURE__ */ l(b, { direction: "column", spacing: 24, children: [
|
@@ -22554,7 +22565,7 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
22554
22565
|
/* @__PURE__ */ t(Wt, { height: 300, variant: "rounded", width: "100%" })
|
22555
22566
|
] }) : /* @__PURE__ */ t(b, { direction: "column", spacing: 24, children: _.map((u) => /* @__PURE__ */ t(g.Fragment, { children: u.component }, u.index)) }) })
|
22556
22567
|
] });
|
22557
|
-
},
|
22568
|
+
}, l4 = A(r0), o0 = () => /* @__PURE__ */ t("div", { children: "this is Allocation page" }), s0 = ({
|
22558
22569
|
analysisDetails: e,
|
22559
22570
|
analysisType: n,
|
22560
22571
|
copy: i,
|
@@ -22565,12 +22576,12 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
22565
22576
|
value: B(e[d], "0,0"),
|
22566
22577
|
formattedKey: Fp(d)
|
22567
22578
|
})), [e]), c = [
|
22568
|
-
{ label: i.equities, value:
|
22569
|
-
{ label: i.bonds, value:
|
22579
|
+
{ label: i.equities, value: Pn.Stocks },
|
22580
|
+
{ label: i.bonds, value: Pn.Bonds }
|
22570
22581
|
];
|
22571
22582
|
return /* @__PURE__ */ l(b, { sx: { gap: 12, width: "100%" }, children: [
|
22572
22583
|
/* @__PURE__ */ t(
|
22573
|
-
|
22584
|
+
la,
|
22574
22585
|
{
|
22575
22586
|
color: "primary",
|
22576
22587
|
exclusive: !0,
|
@@ -22628,26 +22639,26 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
22628
22639
|
}
|
22629
22640
|
) : /* @__PURE__ */ t(p, { sx: { color: "secondary.main", p: 8, textAlign: "center" }, children: i.empty_data })
|
22630
22641
|
] });
|
22631
|
-
},
|
22642
|
+
}, c0 = ({ body: e, title: n }) => /* @__PURE__ */ l(b, { sx: { gap: 4, p: 12 }, children: [
|
22632
22643
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: n }),
|
22633
22644
|
/* @__PURE__ */ t(Oe, { variant: "ParagraphSmall", children: e })
|
22634
|
-
] }),
|
22645
|
+
] }), l0 = ({
|
22635
22646
|
placement: e = "bottom",
|
22636
22647
|
tooltip_info_body: n,
|
22637
22648
|
tooltip_info_title: i
|
22638
22649
|
}) => /* @__PURE__ */ t(
|
22639
|
-
|
22650
|
+
Wn,
|
22640
22651
|
{
|
22641
22652
|
enterTouchDelay: 500,
|
22642
22653
|
placement: e,
|
22643
|
-
title: /* @__PURE__ */ t(
|
22654
|
+
title: /* @__PURE__ */ t(c0, { body: n, title: i }),
|
22644
22655
|
children: /* @__PURE__ */ t($e, { "aria-label": i, sx: { minHeight: 0, minWidth: 0, p: 0 }, children: /* @__PURE__ */ t(yt, { name: "info", sx: { color: "info.main" } }) })
|
22645
22656
|
}
|
22646
|
-
),
|
22657
|
+
), d0 = () => {
|
22647
22658
|
const {
|
22648
22659
|
investments: { analysis: e }
|
22649
|
-
} = I(), { analysisChartData: n, analysisDetails: i, analysisType: a, setAnalysisType: r } =
|
22650
|
-
const C = a ===
|
22660
|
+
} = I(), { analysisChartData: n, analysisDetails: i, analysisType: a, setAnalysisType: r } = ta(), o = Mn("(min-width:320px) and (max-width:375px)"), { isMobile: s } = ve(), d = tt().palette.mode === "dark", { cellDimension: _, columns: u, rows: h, textVariant: m } = g.useMemo(() => {
|
22661
|
+
const C = a === Pn.Stocks, f = Object.values(C ? e.stock_column_labels : e.bond_column_labels), E = Object.values(C ? e.stock_row_labels : e.bond_row_labels);
|
22651
22662
|
return { cellDimension: s ? 72 : 100, columns: f, rows: E, textVariant: s ? "XSmall" : "Body" };
|
22652
22663
|
}, [e, s, a]);
|
22653
22664
|
return /* @__PURE__ */ l(b, { sx: { flexDirection: { md: "row" }, gap: s ? 48 : 64, pt: 48, px: 16 }, children: [
|
@@ -22673,7 +22684,7 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
22673
22684
|
writingMode: "vertical-rl"
|
22674
22685
|
},
|
22675
22686
|
children: [
|
22676
|
-
/* @__PURE__ */ t(Oe, { bold: !0, color: "secondary.main", variant: m, children: a ===
|
22687
|
+
/* @__PURE__ */ t(Oe, { bold: !0, color: "secondary.main", variant: m, children: a === Pn.Stocks ? e.market_capitalization : e.credit_quality }),
|
22677
22688
|
/* @__PURE__ */ t(
|
22678
22689
|
b,
|
22679
22690
|
{
|
@@ -22713,7 +22724,7 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
22713
22724
|
children: [
|
22714
22725
|
/* @__PURE__ */ t(p, { bold: !0, children: e.invest_analysis }),
|
22715
22726
|
/* @__PURE__ */ t(
|
22716
|
-
|
22727
|
+
l0,
|
22717
22728
|
{
|
22718
22729
|
tooltip_info_body: e.tooltip_info_body,
|
22719
22730
|
tooltip_info_title: e.tooltip_info_title
|
@@ -22763,7 +22774,7 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
22763
22774
|
bold: !0,
|
22764
22775
|
sx: { color: "secondary.main", pt: s ? 4 : 24, textAlign: "center" },
|
22765
22776
|
variant: m,
|
22766
|
-
children: a ===
|
22777
|
+
children: a === Pn.Stocks ? e.valuation : e.duration
|
22767
22778
|
}
|
22768
22779
|
)
|
22769
22780
|
] })
|
@@ -22771,7 +22782,7 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
22771
22782
|
}
|
22772
22783
|
),
|
22773
22784
|
/* @__PURE__ */ t(
|
22774
|
-
|
22785
|
+
s0,
|
22775
22786
|
{
|
22776
22787
|
analysisDetails: i,
|
22777
22788
|
analysisType: a,
|
@@ -22784,10 +22795,10 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
22784
22795
|
}
|
22785
22796
|
)
|
22786
22797
|
] });
|
22787
|
-
},
|
22798
|
+
}, u0 = A(d0), Vi = (e) => /* @__PURE__ */ l(ye, { sx: { alignItems: "center", flexDirection: "row", gap: 4 }, children: [
|
22788
22799
|
/* @__PURE__ */ t(p, { sx: { color: "text.primary", fontWeight: 600, fontSize: 14 }, variant: "Small", children: e.colDef.headerName }),
|
22789
22800
|
/* @__PURE__ */ t(yt, { name: "expand_all", size: 12 })
|
22790
|
-
] }),
|
22801
|
+
] }), _0 = ({
|
22791
22802
|
isOpen: e,
|
22792
22803
|
onClose: n,
|
22793
22804
|
accountHoldingsData: i
|
@@ -23023,8 +23034,8 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
23023
23034
|
]
|
23024
23035
|
}
|
23025
23036
|
);
|
23026
|
-
},
|
23027
|
-
const { isMobile: e } = ve(), { onEvent: n } = z(), [i, a] = Et({}), [r, o] = Et(!1), { holdings: s, updateHoldings: c, holdingsLoaded: d } =
|
23037
|
+
}, h0 = () => {
|
23038
|
+
const { isMobile: e } = ve(), { onEvent: n } = z(), [i, a] = Et({}), [r, o] = Et(!1), { holdings: s, updateHoldings: c, holdingsLoaded: d } = ta(), [_, u] = g.useState(!1), [h, m] = Et({
|
23028
23039
|
accounts: [],
|
23029
23040
|
holdings: [],
|
23030
23041
|
members: []
|
@@ -23058,7 +23069,7 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
23058
23069
|
field: "holding",
|
23059
23070
|
headerName: f.overview.holding_header,
|
23060
23071
|
flex: 1,
|
23061
|
-
renderHeader:
|
23072
|
+
renderHeader: Vi,
|
23062
23073
|
renderCell: (ge) => /* @__PURE__ */ t(Ee, { sx: { alignItems: "center", gap: 16, flexDirection: "row" }, children: /* @__PURE__ */ l(Ee, { children: [
|
23063
23074
|
/* @__PURE__ */ t(p, { sx: { color: "text.primary", fontWeight: 700 }, children: ge.row.holding }),
|
23064
23075
|
/* @__PURE__ */ t(p, { sx: { color: "text.secondary", fontWeight: 400 }, variant: "tiny", children: ge.row.description })
|
@@ -23068,7 +23079,7 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
23068
23079
|
field: "costBasis",
|
23069
23080
|
headerName: f.overview.cost_basis_header,
|
23070
23081
|
width: 132,
|
23071
|
-
renderHeader:
|
23082
|
+
renderHeader: Vi,
|
23072
23083
|
renderCell: (ge) => {
|
23073
23084
|
const ze = U === ge.row.id;
|
23074
23085
|
return /* @__PURE__ */ l(Ee, { sx: { alignItems: "center", flexDirection: "row", gap: 4 }, children: [
|
@@ -23118,7 +23129,7 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
23118
23129
|
field: "totalGainLoss",
|
23119
23130
|
headerName: f.overview.total_gain_loss_header,
|
23120
23131
|
width: 196,
|
23121
|
-
renderHeader:
|
23132
|
+
renderHeader: Vi,
|
23122
23133
|
renderCell: (ge) => {
|
23123
23134
|
const ze = ge.row.costBasis, je = ze ? ge.row.totalGainLoss / ze * 100 : 0, Te = ge.value <= 0 ? "text.secondary" : "#0AC295";
|
23124
23135
|
return /* @__PURE__ */ l(Ee, { sx: { alignItems: "center", flexDirection: "row", gap: 2 }, children: [
|
@@ -23148,7 +23159,7 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
23148
23159
|
field: "marketValue",
|
23149
23160
|
headerName: f.overview.market_value_header,
|
23150
23161
|
width: 132,
|
23151
|
-
renderHeader:
|
23162
|
+
renderHeader: Vi,
|
23152
23163
|
renderCell: (ge) => /* @__PURE__ */ t(p, { sx: { fontWeight: 700 }, variant: "Small", children: ge.value?.toLocaleString("en-US", {
|
23153
23164
|
currency: "USD",
|
23154
23165
|
maximumFractionDigits: 2,
|
@@ -23177,7 +23188,7 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
23177
23188
|
...P,
|
23178
23189
|
[O]: U
|
23179
23190
|
}));
|
23180
|
-
}, { holdings: v } =
|
23191
|
+
}, { holdings: v } = ta(), { visibleInvestmentAccounts: w, members: x } = Re(), R = w.reduce((O, L) => O + (L.balance || 0), 0), D = v.reduce((O, L) => {
|
23181
23192
|
const U = L.market_value ? L.market_value - (L.cost_basis || 0) : 0;
|
23182
23193
|
return O + U;
|
23183
23194
|
}, 0), $ = () => {
|
@@ -23548,7 +23559,7 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
23548
23559
|
/* @__PURE__ */ t(ee, { onClick: y, sx: { fontWeight: 600 }, variant: "outlined", children: f.overview.connect_accounts })
|
23549
23560
|
] }),
|
23550
23561
|
/* @__PURE__ */ t(
|
23551
|
-
|
23562
|
+
_0,
|
23552
23563
|
{
|
23553
23564
|
accountHoldingsData: h,
|
23554
23565
|
isOpen: r,
|
@@ -23564,8 +23575,8 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
23564
23575
|
}
|
23565
23576
|
)
|
23566
23577
|
] });
|
23567
|
-
},
|
23568
|
-
const { onEvent: i } = z(), { isMobile: a } = ve(), { visibleInvestmentAccounts: r } = Re(), { investments: o } = I(), { isCopyLoaded: s, isInitialized: c } = ce(), [d, _] = g.useState(0), { loadHoldings: u } =
|
23578
|
+
}, g0 = A(h0), Za = ({ title: e }) => /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e }), d4 = A(({ onBackClick: e, sx: n }) => {
|
23579
|
+
const { onEvent: i } = z(), { isMobile: a } = ve(), { visibleInvestmentAccounts: r } = Re(), { investments: o } = I(), { isCopyLoaded: s, isInitialized: c } = ce(), [d, _] = g.useState(0), { loadHoldings: u } = ta();
|
23569
23580
|
g.useEffect(() => {
|
23570
23581
|
c && u().finally();
|
23571
23582
|
}, [c]);
|
@@ -23613,14 +23624,14 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
23613
23624
|
]
|
23614
23625
|
}
|
23615
23626
|
),
|
23616
|
-
d === 0 && /* @__PURE__ */ t(
|
23617
|
-
d === 1 && /* @__PURE__ */ t(
|
23618
|
-
d === 2 && /* @__PURE__ */ t(
|
23627
|
+
d === 0 && /* @__PURE__ */ t(g0, {}),
|
23628
|
+
d === 1 && /* @__PURE__ */ t(o0, {}),
|
23629
|
+
d === 2 && /* @__PURE__ */ t(u0, {})
|
23619
23630
|
] })
|
23620
23631
|
}
|
23621
23632
|
);
|
23622
23633
|
});
|
23623
|
-
class
|
23634
|
+
class m0 {
|
23624
23635
|
copyApi = new yi("/", "");
|
23625
23636
|
copyObject = {};
|
23626
23637
|
namespace = "experiences";
|
@@ -23666,7 +23677,7 @@ const Wr = {
|
|
23666
23677
|
MonthlySpendToIncomeComparison: "MonthlySpendToIncomeComparison"
|
23667
23678
|
}, Vt = window?.app?.clientConfig?.microwidget_instance_id || "", hs = {
|
23668
23679
|
INSIGHTS_MICRO_WIDGET: "/micro-insights-carousel"
|
23669
|
-
}, el = (e) => `on${e}Click`, tl = (e) => `on${e}View`, nl = (e) => `on${e}ViewFirstTime`, Ur = (e) => e.replace(/([a-z])([A-Z])/g, "$1 $2"),
|
23680
|
+
}, el = (e) => `on${e}Click`, tl = (e) => `on${e}View`, nl = (e) => `on${e}ViewFirstTime`, Ur = (e) => e.replace(/([a-z])([A-Z])/g, "$1 $2"), p0 = () => Object.values(Wr).reduce(
|
23670
23681
|
(e, n) => ({
|
23671
23682
|
...e,
|
23672
23683
|
[el(n)]: {
|
@@ -23677,7 +23688,7 @@ const Wr = {
|
|
23677
23688
|
}
|
23678
23689
|
}),
|
23679
23690
|
{}
|
23680
|
-
),
|
23691
|
+
), C0 = () => Object.values(Wr).reduce(
|
23681
23692
|
(e, n) => ({
|
23682
23693
|
...e,
|
23683
23694
|
[tl(n)]: {
|
@@ -23688,7 +23699,7 @@ const Wr = {
|
|
23688
23699
|
}
|
23689
23700
|
}),
|
23690
23701
|
{}
|
23691
|
-
),
|
23702
|
+
), f0 = () => Object.values(Wr).reduce(
|
23692
23703
|
(e, n) => ({
|
23693
23704
|
...e,
|
23694
23705
|
[nl(n)]: {
|
@@ -23724,28 +23735,28 @@ const Wr = {
|
|
23724
23735
|
MICRO_BEAT_DISPLAYED_FIRST_TIME: "Micro Beat Displayed For First Time",
|
23725
23736
|
SWIPE_BACKWARD: "Swipe Backward",
|
23726
23737
|
SWIPE_FORWARD: "Swipe Forward"
|
23727
|
-
},
|
23738
|
+
}, kn = {
|
23728
23739
|
MICRO_WIDGET_CAROUSEL: "Micro Widget Carousel",
|
23729
23740
|
MICRO_WIDGET_CAROUSEL_ZERO_STATE: "Micro Widget Carousel Zero State",
|
23730
23741
|
MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS: "Micro Widget Carousel No Relevant Insights"
|
23731
23742
|
}, gs = {
|
23732
|
-
[
|
23743
|
+
[kn.MICRO_WIDGET_CAROUSEL]: {
|
23733
23744
|
label: bn.MICRO_WIDGET,
|
23734
|
-
name:
|
23745
|
+
name: kn.MICRO_WIDGET_CAROUSEL,
|
23735
23746
|
path: hs.INSIGHTS_MICRO_WIDGET,
|
23736
23747
|
value: Vt
|
23737
23748
|
},
|
23738
23749
|
// zero state
|
23739
|
-
[
|
23750
|
+
[kn.MICRO_WIDGET_CAROUSEL_ZERO_STATE]: {
|
23740
23751
|
label: bn.MICRO_WIDGET,
|
23741
|
-
name:
|
23752
|
+
name: kn.MICRO_WIDGET_CAROUSEL_ZERO_STATE,
|
23742
23753
|
path: hs.INSIGHTS_MICRO_WIDGET,
|
23743
23754
|
value: Vt
|
23744
23755
|
},
|
23745
23756
|
// no relevant cards
|
23746
|
-
[
|
23757
|
+
[kn.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS]: {
|
23747
23758
|
label: bn.MICRO_WIDGET,
|
23748
|
-
name:
|
23759
|
+
name: kn.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS,
|
23749
23760
|
path: "/micro-widget",
|
23750
23761
|
value: Vt
|
23751
23762
|
}
|
@@ -23788,15 +23799,15 @@ const Wr = {
|
|
23788
23799
|
label: bn.VIEW_MORE,
|
23789
23800
|
value: Vt
|
23790
23801
|
},
|
23791
|
-
...
|
23792
|
-
...
|
23793
|
-
...
|
23802
|
+
...p0(),
|
23803
|
+
...C0(),
|
23804
|
+
...f0()
|
23794
23805
|
}, ps = async (e, n) => !n || !ms[e] ? null : n.sendAnalyticEvent(ms[e]).then((i) => i).catch((i) => {
|
23795
23806
|
throw i;
|
23796
23807
|
}), Cs = async (e, n) => !n || !gs[e] ? null : n.sendAnalyticsPageview(gs[e]).then((i) => i).catch((i) => {
|
23797
23808
|
throw i;
|
23798
23809
|
});
|
23799
|
-
class
|
23810
|
+
class b0 {
|
23800
23811
|
onAnalyticEvent = ps;
|
23801
23812
|
onAnalyticPageView = Cs;
|
23802
23813
|
beatApi = new ri("/", "");
|
@@ -23821,7 +23832,7 @@ class C0 {
|
|
23821
23832
|
this.beatApi.updateOffer(n);
|
23822
23833
|
};
|
23823
23834
|
}
|
23824
|
-
class
|
23835
|
+
class y0 {
|
23825
23836
|
copyStore;
|
23826
23837
|
endpoint = "/";
|
23827
23838
|
insightsMicroWidgetStore;
|
@@ -23829,7 +23840,7 @@ class f0 {
|
|
23829
23840
|
token = "";
|
23830
23841
|
isInitialized = !1;
|
23831
23842
|
constructor() {
|
23832
|
-
this.copyStore = new
|
23843
|
+
this.copyStore = new m0(), this.insightsMicroWidgetStore = new b0(), Be(this);
|
23833
23844
|
}
|
23834
23845
|
initialize = async (n, i, a) => {
|
23835
23846
|
await this.copyStore.initialize(n, i), await this.insightsMicroWidgetStore.initialize(n, i, a);
|
@@ -23839,12 +23850,12 @@ class f0 {
|
|
23839
23850
|
});
|
23840
23851
|
};
|
23841
23852
|
}
|
23842
|
-
const
|
23853
|
+
const Hi = g.createContext(null), E0 = ({
|
23843
23854
|
onEvent: e,
|
23844
23855
|
onPageview: n,
|
23845
23856
|
store: i,
|
23846
23857
|
children: a
|
23847
|
-
}) => /* @__PURE__ */ t(
|
23858
|
+
}) => /* @__PURE__ */ t(Hi.Provider, { value: { onEvent: e, onPageview: n, store: i, children: a }, children: a }), La = g.forwardRef(
|
23848
23859
|
function({
|
23849
23860
|
actionText: n,
|
23850
23861
|
ariaLabel: i,
|
@@ -23977,13 +23988,13 @@ const Pi = g.createContext(null), b0 = ({
|
|
23977
23988
|
}
|
23978
23989
|
);
|
23979
23990
|
}
|
23980
|
-
),
|
23991
|
+
), S0 = ({ beat: e }) => {
|
23981
23992
|
const [n, i] = Et(N.UNCATEGORIZED);
|
23982
23993
|
return zn(() => {
|
23983
23994
|
e.primary_category_guid ? i(e.primary_category_guid) : e.category_guids?.length && i(e.category_guids[0]);
|
23984
23995
|
}, []), /* @__PURE__ */ t(kt, { categoryGuid: n, size: 16, sx: { minWidth: 16 } });
|
23985
|
-
},
|
23986
|
-
const n = ft(), i =
|
23996
|
+
}, T0 = ({ beat: e }) => {
|
23997
|
+
const n = ft(), i = A0(n);
|
23987
23998
|
return /* @__PURE__ */ t(
|
23988
23999
|
ln,
|
23989
24000
|
{
|
@@ -23993,12 +24004,12 @@ const Pi = g.createContext(null), b0 = ({
|
|
23993
24004
|
size: 16
|
23994
24005
|
}
|
23995
24006
|
);
|
23996
|
-
},
|
24007
|
+
}, A0 = (e) => Qt({
|
23997
24008
|
marginTop: e.Spacing.XTiny,
|
23998
24009
|
"& .kyper-categoryicon": {
|
23999
24010
|
display: "flex"
|
24000
24011
|
}
|
24001
|
-
}),
|
24012
|
+
}), I0 = A(T0), x0 = ({
|
24002
24013
|
color: e = "currentColor",
|
24003
24014
|
height: n,
|
24004
24015
|
size: i = 16,
|
@@ -24024,16 +24035,16 @@ const Pi = g.createContext(null), b0 = ({
|
|
24024
24035
|
}
|
24025
24036
|
)
|
24026
24037
|
}
|
24027
|
-
),
|
24038
|
+
), v0 = (e) => e ? e.data ? e.data.map((n) => {
|
24028
24039
|
const i = {};
|
24029
24040
|
return e.names?.map((a, r) => {
|
24030
24041
|
i[a] = n[r];
|
24031
24042
|
}), i;
|
24032
|
-
}) : [] : [],
|
24033
|
-
const i =
|
24043
|
+
}) : [] : [], w0 = (e, n) => {
|
24044
|
+
const i = v0(e), a = i.length / 2, r = i.slice(0, a), o = i.slice(a);
|
24034
24045
|
return !r.length || !o.length ? n.Color.Primary300 : r[0].amount > o[0].amount ? n.Color.Error300 : r[0].amount < o[0].amount ? n.Color.Success300 : n.Color.Primary300;
|
24035
|
-
},
|
24036
|
-
const n = ft(), i =
|
24046
|
+
}, N0 = ({ beat: e }) => {
|
24047
|
+
const n = ft(), i = w0(e.data_series, n);
|
24037
24048
|
return /* @__PURE__ */ t(H, { name: "bar_chart", sx: { color: i } });
|
24038
24049
|
}, al = () => /* @__PURE__ */ l("svg", { fill: "none", height: "36", viewBox: "0 0 40 36", width: "40", xmlns: "http://www.w3.org/2000/svg", children: [
|
24039
24050
|
/* @__PURE__ */ t(
|
@@ -24818,7 +24829,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
24818
24829
|
] })
|
24819
24830
|
] }), fs = ({ beat: e, clientColorScheme: n, color: i, type: a }) => {
|
24820
24831
|
const r = pe(), o = n?.primary_300 ? n.primary_300 : r.palette.primary.main;
|
24821
|
-
return a === 0 ? /* @__PURE__ */ t(H, { fill: !0, name: "error", sx: { color: i || o } }) : a === 1 && e ? /* @__PURE__ */ t(
|
24832
|
+
return a === 0 ? /* @__PURE__ */ t(H, { fill: !0, name: "error", sx: { color: i || o } }) : a === 1 && e ? /* @__PURE__ */ t(S0, { beat: e }) : a === 2 && e ? /* @__PURE__ */ t(I0, { beat: e }) : a === 3 && e ? /* @__PURE__ */ t(N0, { beat: e }) : a === 5 && e ? /* @__PURE__ */ t(H, { name: "campaign" }) : /* @__PURE__ */ t(
|
24822
24833
|
H,
|
24823
24834
|
{
|
24824
24835
|
fill: !0,
|
@@ -24828,25 +24839,25 @@ const Pi = g.createContext(null), b0 = ({
|
|
24828
24839
|
}
|
24829
24840
|
}
|
24830
24841
|
);
|
24831
|
-
},
|
24832
|
-
const e = g.useContext(
|
24842
|
+
}, Vn = () => {
|
24843
|
+
const e = g.useContext(Hi);
|
24833
24844
|
if (!e)
|
24834
24845
|
throw new Error("useCopyStore() must be used within the InsightsMicroWidgetDataProvider");
|
24835
24846
|
return e.store.copyStore;
|
24836
|
-
},
|
24837
|
-
const e = g.useContext(
|
24847
|
+
}, D0 = () => {
|
24848
|
+
const e = g.useContext(Hi);
|
24838
24849
|
if (!e?.store?.insightsMicroWidgetStore)
|
24839
24850
|
throw new Error(
|
24840
24851
|
"useInsightsMicroWidgetStore() must be used within the InsightsMicroWidgetDataProvider"
|
24841
24852
|
);
|
24842
24853
|
return e.store.insightsMicroWidgetStore;
|
24843
|
-
},
|
24844
|
-
const e = g.useContext(
|
24854
|
+
}, $i = () => {
|
24855
|
+
const e = g.useContext(Hi);
|
24845
24856
|
if (!e)
|
24846
24857
|
throw new Error("useEvent() must be used within the InsightsMicroWidgetDataProvider");
|
24847
24858
|
return { onEvent: e.onEvent };
|
24848
24859
|
}, rl = () => {
|
24849
|
-
const e = g.useContext(
|
24860
|
+
const e = g.useContext(Hi);
|
24850
24861
|
if (!e)
|
24851
24862
|
throw new Error("usePageview() must be used within the InsightsMicroWidgetDataProvider");
|
24852
24863
|
return { onPageview: e.onPageview };
|
@@ -24855,7 +24866,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
24855
24866
|
STANDARD: 154,
|
24856
24867
|
XLARGE: 200,
|
24857
24868
|
XXLARGE: 248
|
24858
|
-
},
|
24869
|
+
}, R0 = 50, sl = 1, O0 = ({
|
24859
24870
|
ariaLabel: e,
|
24860
24871
|
backgroundColor: n,
|
24861
24872
|
beat: i,
|
@@ -24872,7 +24883,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
24872
24883
|
}) => {
|
24873
24884
|
const { ref: C, inView: f } = Bs({
|
24874
24885
|
threshold: sl
|
24875
|
-
}), { cardsCopy: E } =
|
24886
|
+
}), { cardsCopy: E } = Vn(), { onEvent: y } = $i(), { updateBeat: T, updateOffer: v } = D0();
|
24876
24887
|
zn(() => {
|
24877
24888
|
f && (i.has_been_displayed ? y(tl(i.template)) : (i.guid.startsWith("OFR") ? v({
|
24878
24889
|
...i,
|
@@ -24941,7 +24952,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
24941
24952
|
widthOverrides: m
|
24942
24953
|
}
|
24943
24954
|
);
|
24944
|
-
},
|
24955
|
+
}, L0 = ({
|
24945
24956
|
clientColorScheme: e,
|
24946
24957
|
currentBeatIndex: n,
|
24947
24958
|
numBeats: i,
|
@@ -24950,7 +24961,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
24950
24961
|
scrollRightBoundary: o,
|
24951
24962
|
scrollX: s
|
24952
24963
|
}) => {
|
24953
|
-
const c =
|
24964
|
+
const c = M0(), d = tt(), { carouselCopy: _ } = Vn(), u = Math.floor(s) > o || n === 0, h = s < 0 || i - 1 === n, m = d.palette.grey[500], C = e?.primary_300 ?? d.palette.primary.main;
|
24954
24965
|
return /* @__PURE__ */ l(M, { className: c, children: [
|
24955
24966
|
/* @__PURE__ */ t(
|
24956
24967
|
$e,
|
@@ -24987,7 +24998,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
24987
24998
|
disabled: h,
|
24988
24999
|
onClick: a,
|
24989
25000
|
children: /* @__PURE__ */ t(
|
24990
|
-
|
25001
|
+
_a,
|
24991
25002
|
{
|
24992
25003
|
style: {
|
24993
25004
|
color: h ? m : C
|
@@ -24997,7 +25008,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
24997
25008
|
}
|
24998
25009
|
)
|
24999
25010
|
] });
|
25000
|
-
},
|
25011
|
+
}, M0 = () => Qt({
|
25001
25012
|
alignItems: "center",
|
25002
25013
|
display: "flex",
|
25003
25014
|
justifyContent: "center",
|
@@ -25014,7 +25025,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25014
25025
|
// we were using `gap` instead of margin, but it doesn't work in safari browsers older than iOS 14.1
|
25015
25026
|
marginRight: 8
|
25016
25027
|
}
|
25017
|
-
}),
|
25028
|
+
}), k0 = ({
|
25018
25029
|
beats: e = [],
|
25019
25030
|
clientColorScheme: n,
|
25020
25031
|
showCTAColocatedWithText: i,
|
@@ -25027,7 +25038,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25027
25038
|
variant: _,
|
25028
25039
|
widthOverrides: u
|
25029
25040
|
}) => {
|
25030
|
-
const h =
|
25041
|
+
const h = B0(a, d, u), m = g.useRef(null), [C, f] = g.useState(0), [E, y] = g.useState(null), [T, v] = g.useState(null), { carouselCopy: w } = Vn(), { onEvent: x } = $i(), R = () => {
|
25031
25042
|
x(Kt.ON_CAROUSEL_FORWARD_CLICK), m.current && m.current.scrollTo({
|
25032
25043
|
left: (
|
25033
25044
|
// Adds the flex gap to the carousel ref's width
|
@@ -25046,7 +25057,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25046
25057
|
m.current && f(m.current.scrollLeft);
|
25047
25058
|
}, O = () => {
|
25048
25059
|
if (!T || !E) return;
|
25049
|
-
T - E >
|
25060
|
+
T - E > R0 ? x(Kt.ON_CAROUSEL_FORWARD_SWIPE) : x(Kt.ON_CAROUSEL_BACK_SWIPE);
|
25050
25061
|
}, L = (V) => {
|
25051
25062
|
y(V.targetTouches[0].clientX);
|
25052
25063
|
}, U = (V) => {
|
@@ -25085,7 +25096,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25085
25096
|
_e.toString()
|
25086
25097
|
), ge = V.micro_title && V.micro_title.length > 0, ze = V.micro_description && V.micro_description.length > 0, je = ge ? V.micro_title : V.title, Te = ze ? V.micro_description : V.description;
|
25087
25098
|
return /* @__PURE__ */ t(
|
25088
|
-
|
25099
|
+
O0,
|
25089
25100
|
{
|
25090
25101
|
ariaLabel: `${Pe}: ${je}, ${Te}`,
|
25091
25102
|
beat: V,
|
@@ -25098,7 +25109,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25098
25109
|
);
|
25099
25110
|
}),
|
25100
25111
|
/* @__PURE__ */ t(
|
25101
|
-
|
25112
|
+
V0,
|
25102
25113
|
{
|
25103
25114
|
isActiveCard: j === e.length,
|
25104
25115
|
onCardClick: r,
|
@@ -25109,7 +25120,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25109
25120
|
}
|
25110
25121
|
),
|
25111
25122
|
s && /* @__PURE__ */ t(
|
25112
|
-
|
25123
|
+
L0,
|
25113
25124
|
{
|
25114
25125
|
clientColorScheme: n,
|
25115
25126
|
currentBeatIndex: j,
|
@@ -25123,7 +25134,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25123
25134
|
]
|
25124
25135
|
}
|
25125
25136
|
);
|
25126
|
-
},
|
25137
|
+
}, G0 = A(k0), B0 = (e, n = !0, i) => Qt({
|
25127
25138
|
alignItems: "center",
|
25128
25139
|
boxSizing: "border-box",
|
25129
25140
|
display: "flex",
|
@@ -25148,13 +25159,13 @@ const Pi = g.createContext(null), b0 = ({
|
|
25148
25159
|
display: "none"
|
25149
25160
|
}
|
25150
25161
|
}
|
25151
|
-
}),
|
25162
|
+
}), P0 = ({
|
25152
25163
|
clientColorScheme: e,
|
25153
25164
|
onCardClick: n,
|
25154
25165
|
posthog: i,
|
25155
25166
|
widthOverrides: a
|
25156
25167
|
}) => {
|
25157
|
-
const { carouselCopy: r } =
|
25168
|
+
const { carouselCopy: r } = Vn(), { onEvent: o } = $i(), s = () => {
|
25158
25169
|
o && (o(Kt.ON_VIEW_MORE_CLICKED), n(), i?.capture("clicked_view_more"));
|
25159
25170
|
};
|
25160
25171
|
return r ? /* @__PURE__ */ l(
|
@@ -25210,19 +25221,19 @@ const Pi = g.createContext(null), b0 = ({
|
|
25210
25221
|
children: r.view_all_insights_in_full_feed_cta_aria
|
25211
25222
|
}
|
25212
25223
|
),
|
25213
|
-
/* @__PURE__ */ t(
|
25224
|
+
/* @__PURE__ */ t(_a, { sx: { color: e?.primary_300, ml: "8px" } })
|
25214
25225
|
]
|
25215
25226
|
}
|
25216
25227
|
)
|
25217
25228
|
]
|
25218
25229
|
}
|
25219
25230
|
) : /* @__PURE__ */ t(ue, {});
|
25220
|
-
},
|
25231
|
+
}, H0 = A(P0), $0 = ({
|
25221
25232
|
heightOverrides: e,
|
25222
25233
|
widthOverrides: n,
|
25223
25234
|
children: i
|
25224
25235
|
}) => {
|
25225
|
-
const { carouselCopy: a } =
|
25236
|
+
const { carouselCopy: a } = Vn();
|
25226
25237
|
return /* @__PURE__ */ t(
|
25227
25238
|
M,
|
25228
25239
|
{
|
@@ -25250,9 +25261,9 @@ const Pi = g.createContext(null), b0 = ({
|
|
25250
25261
|
variant: d,
|
25251
25262
|
widthOverrides: _
|
25252
25263
|
}) => {
|
25253
|
-
const { cardsCopy: u } =
|
25264
|
+
const { cardsCopy: u } = Vn(), { onEvent: h } = $i(), { onPageview: m } = rl();
|
25254
25265
|
g.useEffect(() => {
|
25255
|
-
m(
|
25266
|
+
m(kn.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS);
|
25256
25267
|
}, []);
|
25257
25268
|
const C = () => {
|
25258
25269
|
r && r(), h(Kt.ON_NO_RELEVANT_INSIGHTS_CLICKED), o?.capture("clicked_insight", {
|
@@ -25292,7 +25303,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25292
25303
|
widthOverrides: _
|
25293
25304
|
}
|
25294
25305
|
);
|
25295
|
-
},
|
25306
|
+
}, u4 = A(cl), ll = ({
|
25296
25307
|
ariaLabel: e,
|
25297
25308
|
carouselSize: n,
|
25298
25309
|
heightOverrides: i,
|
@@ -25303,9 +25314,9 @@ const Pi = g.createContext(null), b0 = ({
|
|
25303
25314
|
variant: c,
|
25304
25315
|
widthOverrides: d
|
25305
25316
|
}) => {
|
25306
|
-
const { onPageview: _ } = rl(), { zeroStateCopy: u } =
|
25317
|
+
const { onPageview: _ } = rl(), { zeroStateCopy: u } = Vn();
|
25307
25318
|
return g.useEffect(() => {
|
25308
|
-
_(
|
25319
|
+
_(kn.MICRO_WIDGET_CAROUSEL_ZERO_STATE);
|
25309
25320
|
}, []), /* @__PURE__ */ t(
|
25310
25321
|
La,
|
25311
25322
|
{
|
@@ -25334,7 +25345,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25334
25345
|
widthOverrides: d
|
25335
25346
|
}
|
25336
25347
|
);
|
25337
|
-
},
|
25348
|
+
}, _4 = A(ll), F0 = () => /* @__PURE__ */ t(
|
25338
25349
|
M,
|
25339
25350
|
{
|
25340
25351
|
sx: {
|
@@ -25346,7 +25357,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25346
25357
|
},
|
25347
25358
|
children: /* @__PURE__ */ t(_r, {})
|
25348
25359
|
}
|
25349
|
-
), fn = new
|
25360
|
+
), fn = new y0(), W0 = ({
|
25350
25361
|
areBeatsLoading: e,
|
25351
25362
|
beats: n = [],
|
25352
25363
|
// This also determines the length of the carousel controls (beat.length + 1)
|
@@ -25401,10 +25412,10 @@ const Pi = g.createContext(null), b0 = ({
|
|
25401
25412
|
// The Theme provider must wrap the component so that the styles don't break when imported into other applications.
|
25402
25413
|
/* @__PURE__ */ l(Ul, { theme: R, children: [
|
25403
25414
|
/* @__PURE__ */ t(Jd, {}),
|
25404
|
-
/* @__PURE__ */ t(
|
25405
|
-
(e || !fn.isInitialized) && /* @__PURE__ */ t(
|
25415
|
+
/* @__PURE__ */ t(E0, { onEvent: U, onPageview: P, store: fn, children: /* @__PURE__ */ l($0, { heightOverrides: o, widthOverrides: x, children: [
|
25416
|
+
(e || !fn.isInitialized) && /* @__PURE__ */ t(F0, {}),
|
25406
25417
|
O && C && /* @__PURE__ */ t(
|
25407
|
-
|
25418
|
+
H0,
|
25408
25419
|
{
|
25409
25420
|
clientColorScheme: i,
|
25410
25421
|
onCardClick: c,
|
@@ -25413,7 +25424,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25413
25424
|
}
|
25414
25425
|
),
|
25415
25426
|
O && !!n.length && /* @__PURE__ */ t(
|
25416
|
-
|
25427
|
+
G0,
|
25417
25428
|
{
|
25418
25429
|
beats: n,
|
25419
25430
|
clientColorScheme: i,
|
@@ -25427,7 +25438,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25427
25438
|
] }) })
|
25428
25439
|
] })
|
25429
25440
|
);
|
25430
|
-
},
|
25441
|
+
}, h4 = A(W0), U0 = ({
|
25431
25442
|
isActiveCard: e,
|
25432
25443
|
ariaLabel: n,
|
25433
25444
|
clientColorScheme: i,
|
@@ -25440,7 +25451,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25440
25451
|
}) => {
|
25441
25452
|
const _ = pe(), { ref: u, inView: h } = Bs({
|
25442
25453
|
threshold: sl
|
25443
|
-
}), { cardsCopy: m } =
|
25454
|
+
}), { cardsCopy: m } = Vn(), { onEvent: C } = $i();
|
25444
25455
|
zn(() => {
|
25445
25456
|
h && (C(il.ON_VIEW_MORE_VIEWED), o?.capture("viewed_insight", {
|
25446
25457
|
template: "view_more_card"
|
@@ -25459,7 +25470,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25459
25470
|
description: m.view_more_card_description,
|
25460
25471
|
fontColors: { buttonColor: i?.primary_300 },
|
25461
25472
|
heightOverrides: a,
|
25462
|
-
icon: /* @__PURE__ */ t(
|
25473
|
+
icon: /* @__PURE__ */ t(x0, { color: i?.primary_300 ?? _.palette.primary.main }),
|
25463
25474
|
isActiveCard: e,
|
25464
25475
|
onCardClick: f,
|
25465
25476
|
posthog: o,
|
@@ -25470,7 +25481,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25470
25481
|
widthOverrides: d
|
25471
25482
|
}
|
25472
25483
|
);
|
25473
|
-
},
|
25484
|
+
}, V0 = A(U0), K0 = A(({ repeatingTransaction: e }) => {
|
25474
25485
|
const { recurring: n } = I(), { updateRepeatingTransaction: i } = Pt(), { onEvent: a } = z(), [r, o] = g.useState(!1), s = e.repeating_transaction_type === on.Income, c = [
|
25475
25486
|
{ id: Ne.EveryWeek, label: n.frequency_every_week },
|
25476
25487
|
{ id: Ne.EveryOtherWeek, label: n.frequency_every_other_week },
|
@@ -25494,7 +25505,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25494
25505
|
}, u = c.find((h) => h.id === e.recurrence_type);
|
25495
25506
|
return /* @__PURE__ */ l(Z, { children: [
|
25496
25507
|
/* @__PURE__ */ t(
|
25497
|
-
|
25508
|
+
$n,
|
25498
25509
|
{
|
25499
25510
|
iconName: "sync",
|
25500
25511
|
label: n.activity_schedule,
|
@@ -25518,14 +25529,14 @@ const Pi = g.createContext(null), b0 = ({
|
|
25518
25529
|
primaryTypographyProps: { fontWeight: 400 }
|
25519
25530
|
}
|
25520
25531
|
),
|
25521
|
-
e.recurrence_type === h.id && /* @__PURE__ */ t(
|
25532
|
+
e.recurrence_type === h.id && /* @__PURE__ */ t(da, { color: "primary", filled: !0, size: 24 })
|
25522
25533
|
] }) }, h.id),
|
25523
25534
|
/* @__PURE__ */ t(G, {})
|
25524
25535
|
] }, h.id)) })
|
25525
25536
|
}
|
25526
25537
|
)
|
25527
25538
|
] });
|
25528
|
-
}),
|
25539
|
+
}), z0 = A(({ repeatingTransaction: e }) => {
|
25529
25540
|
const { recurring: n } = I(), { updateRepeatingTransaction: i } = Pt(), { onEvent: a } = z(), r = Ri(e.predicted_occurs_on), [o, s] = g.useState(!1), [c, d] = g.useState(r), _ = e.repeating_transaction_type === on.Income, u = () => {
|
25530
25541
|
d(r), s(!0), a(
|
25531
25542
|
_ ? "recurring_transactions_widget_income_details_click_next_payment_due" : "recurring_transactions_widget_expense_details_click_next_payment_due",
|
@@ -25541,7 +25552,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25541
25552
|
};
|
25542
25553
|
return /* @__PURE__ */ l(Z, { children: [
|
25543
25554
|
/* @__PURE__ */ t(
|
25544
|
-
|
25555
|
+
$n,
|
25545
25556
|
{
|
25546
25557
|
iconName: "calendar_month",
|
25547
25558
|
label: n.activity_payment_date,
|
@@ -25610,7 +25621,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25610
25621
|
/* @__PURE__ */ l(ie, { sx: { bgcolor: "background.paper" }, children: [
|
25611
25622
|
n.account && /* @__PURE__ */ l(Z, { children: [
|
25612
25623
|
/* @__PURE__ */ t(
|
25613
|
-
|
25624
|
+
$n,
|
25614
25625
|
{
|
25615
25626
|
iconName: "checkbook",
|
25616
25627
|
label: i.account,
|
@@ -25621,7 +25632,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25621
25632
|
] }),
|
25622
25633
|
f?.category && /* @__PURE__ */ l(Z, { children: [
|
25623
25634
|
/* @__PURE__ */ t(
|
25624
|
-
|
25635
|
+
$n,
|
25625
25636
|
{
|
25626
25637
|
iconName: "monetization_on",
|
25627
25638
|
label: i.category,
|
@@ -25630,9 +25641,9 @@ const Pi = g.createContext(null), b0 = ({
|
|
25630
25641
|
),
|
25631
25642
|
/* @__PURE__ */ t(G, { color: "secondary", variant: "inset" })
|
25632
25643
|
] }),
|
25633
|
-
/* @__PURE__ */ t(
|
25644
|
+
/* @__PURE__ */ t(K0, { repeatingTransaction: n }),
|
25634
25645
|
/* @__PURE__ */ t(G, { color: "secondary", variant: "inset" }),
|
25635
|
-
/* @__PURE__ */ t(
|
25646
|
+
/* @__PURE__ */ t(z0, { repeatingTransaction: n }),
|
25636
25647
|
/* @__PURE__ */ t(G, { color: "secondary" })
|
25637
25648
|
] }),
|
25638
25649
|
/* @__PURE__ */ t(
|
@@ -25766,7 +25777,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25766
25777
|
)
|
25767
25778
|
] });
|
25768
25779
|
}
|
25769
|
-
),
|
25780
|
+
), Y0 = A(
|
25770
25781
|
({
|
25771
25782
|
bgcolor: e = "background.default",
|
25772
25783
|
description: n,
|
@@ -25777,7 +25788,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25777
25788
|
return /* @__PURE__ */ l(b, { sx: { bgcolor: e, gap: 16, pt: 8 }, children: [
|
25778
25789
|
n && /* @__PURE__ */ t(Oe, { sx: { mx: 24 }, children: n }),
|
25779
25790
|
/* @__PURE__ */ t(
|
25780
|
-
|
25791
|
+
Bi,
|
25781
25792
|
{
|
25782
25793
|
ariaLabel: r.select_transaction_search_aria,
|
25783
25794
|
cancelAriaLabel: r.select_transaction_search_cancel_aria,
|
@@ -25791,7 +25802,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25791
25802
|
/* @__PURE__ */ t(mn, { bgcolor: e, height: "auto", onClick: a, showLoader: !1 })
|
25792
25803
|
] });
|
25793
25804
|
}
|
25794
|
-
),
|
25805
|
+
), j0 = A(
|
25795
25806
|
({
|
25796
25807
|
bgcolor: e = "background.default",
|
25797
25808
|
frequency: n,
|
@@ -25812,19 +25823,19 @@ const Pi = g.createContext(null), b0 = ({
|
|
25812
25823
|
];
|
25813
25824
|
g.useEffect(() => {
|
25814
25825
|
const u = Me(s.date);
|
25815
|
-
o(
|
25826
|
+
o(ea(u)), r(Ne.EveryMonth);
|
25816
25827
|
}, [s]);
|
25817
25828
|
const _ = (u) => {
|
25818
25829
|
const h = Me(s.date);
|
25819
25830
|
switch (Number(u.target.value)) {
|
25820
25831
|
case Ne.EveryWeek:
|
25821
|
-
o(
|
25832
|
+
o(ya(h));
|
25822
25833
|
break;
|
25823
25834
|
case Ne.EveryOtherWeek:
|
25824
25835
|
o(Ks(h));
|
25825
25836
|
break;
|
25826
25837
|
case Ne.EveryMonth:
|
25827
|
-
o(
|
25838
|
+
o(ea(h));
|
25828
25839
|
break;
|
25829
25840
|
case Ne.EveryOtherMonth:
|
25830
25841
|
o(zs(h));
|
@@ -25861,11 +25872,11 @@ const Pi = g.createContext(null), b0 = ({
|
|
25861
25872
|
sx: { mx: 24 },
|
25862
25873
|
value: n,
|
25863
25874
|
variant: "outlined",
|
25864
|
-
children: d.map((u) => /* @__PURE__ */ t(
|
25875
|
+
children: d.map((u) => /* @__PURE__ */ t(ma, { value: u.id, children: u.label }, u.id))
|
25865
25876
|
}
|
25866
25877
|
),
|
25867
25878
|
/* @__PURE__ */ t(Nn, { dateAdapter: gn, children: /* @__PURE__ */ t(
|
25868
|
-
|
25879
|
+
ga,
|
25869
25880
|
{
|
25870
25881
|
disablePast: !0,
|
25871
25882
|
label: i ? c.income_date_label : c.expense_date_label,
|
@@ -25925,7 +25936,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25925
25936
|
onClose: () => _(!1),
|
25926
25937
|
title: n,
|
25927
25938
|
children: /* @__PURE__ */ t(
|
25928
|
-
|
25939
|
+
Y0,
|
25929
25940
|
{
|
25930
25941
|
description: e ? a.add_income_description : a.add_expense_description,
|
25931
25942
|
onSearch: (x) => {
|
@@ -25948,7 +25959,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25948
25959
|
onPrimaryAction: v,
|
25949
25960
|
title: e ? a.income_details : a.expense_details,
|
25950
25961
|
children: y && /* @__PURE__ */ t(
|
25951
|
-
|
25962
|
+
j0,
|
25952
25963
|
{
|
25953
25964
|
frequency: m,
|
25954
25965
|
isIncome: e,
|
@@ -25962,7 +25973,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25962
25973
|
)
|
25963
25974
|
] });
|
25964
25975
|
}
|
25965
|
-
),
|
25976
|
+
), X0 = A(() => {
|
25966
25977
|
const { recurring: e } = I(), { repeatingTransactions: n } = Pt(), { onEvent: i } = z(), a = (o) => {
|
25967
25978
|
i(W.RECURRING_TRANSACTIONS_CLICK_EXPENSE, {
|
25968
25979
|
repeating_transaction_guid: o.guid
|
@@ -25977,7 +25988,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25977
25988
|
] }, o.guid)),
|
25978
25989
|
/* @__PURE__ */ t(_l, { label: e.add_expense, onAddRecurringTransaction: r })
|
25979
25990
|
] });
|
25980
|
-
}),
|
25991
|
+
}), q0 = A(() => {
|
25981
25992
|
const { recurring: e } = I(), { repeatingTransactions: n } = Pt(), { onEvent: i } = z(), a = (o) => {
|
25982
25993
|
i(W.RECURRING_TRANSACTIONS_CLICK_INCOME, {
|
25983
25994
|
repeating_transaction_guid: o.guid
|
@@ -25999,7 +26010,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25999
26010
|
}
|
26000
26011
|
)
|
26001
26012
|
] });
|
26002
|
-
}),
|
26013
|
+
}), Z0 = A(() => {
|
26003
26014
|
const [e, n] = g.useState(0), { onEvent: i } = z(), { recurring: a } = I();
|
26004
26015
|
return /* @__PURE__ */ l(M, { bgcolor: "background.default", height: "100%", children: [
|
26005
26016
|
/* @__PURE__ */ l(
|
@@ -26019,8 +26030,8 @@ const Pi = g.createContext(null), b0 = ({
|
|
26019
26030
|
]
|
26020
26031
|
}
|
26021
26032
|
),
|
26022
|
-
e === 0 && /* @__PURE__ */ t(
|
26023
|
-
e === 1 && /* @__PURE__ */ t(
|
26033
|
+
e === 0 && /* @__PURE__ */ t(X0, {}),
|
26034
|
+
e === 1 && /* @__PURE__ */ t(q0, {})
|
26024
26035
|
] });
|
26025
26036
|
}), Ma = {
|
26026
26037
|
gridRow: 1,
|
@@ -26032,7 +26043,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
26032
26043
|
filled: !0,
|
26033
26044
|
sx: { color: "categories.income", fontSize: n, ...Ma }
|
26034
26045
|
}
|
26035
|
-
) }), zr = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...ka(e) }, children: /* @__PURE__ */ t(Ds, { color: "error", filled: !0, sx: { fontSize: n, ...Ma } }) }), Yr = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...ka(e) }, children: /* @__PURE__ */ t(
|
26046
|
+
) }), zr = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...ka(e) }, children: /* @__PURE__ */ t(Ds, { color: "error", filled: !0, sx: { fontSize: n, ...Ma } }) }), Yr = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...ka(e) }, children: /* @__PURE__ */ t(da, { color: "success", filled: !0, sx: { fontSize: n, ...Ma } }) }), Q0 = A(
|
26036
26047
|
({ day: e, outsideCurrentMonth: n, ...i }) => {
|
26037
26048
|
const { recurring: a } = I(), { selectedAccountGuids: r } = ce(), { recurrences: o, setSelectedDay: s } = Pt(), d = g.useMemo(
|
26038
26049
|
() => o.filter((f) => r.includes(f.accountGuid)),
|
@@ -26087,10 +26098,10 @@ const Pi = g.createContext(null), b0 = ({
|
|
26087
26098
|
}
|
26088
26099
|
);
|
26089
26100
|
}
|
26090
|
-
),
|
26101
|
+
), Ki = ({ icon: e, label: n }) => /* @__PURE__ */ l(b, { alignItems: "center", flexDirection: "row", sx: { gap: 6 }, children: [
|
26091
26102
|
/* @__PURE__ */ t(e, {}),
|
26092
26103
|
/* @__PURE__ */ t(p, { variant: "XSmall", children: n })
|
26093
|
-
] }),
|
26104
|
+
] }), J0 = A(() => {
|
26094
26105
|
const { recurring: e } = I();
|
26095
26106
|
return /* @__PURE__ */ l(
|
26096
26107
|
b,
|
@@ -26102,18 +26113,18 @@ const Pi = g.createContext(null), b0 = ({
|
|
26102
26113
|
justifyContent: "center",
|
26103
26114
|
mt: 12,
|
26104
26115
|
children: [
|
26105
|
-
/* @__PURE__ */ t(
|
26106
|
-
/* @__PURE__ */ t(
|
26107
|
-
/* @__PURE__ */ t(
|
26108
|
-
/* @__PURE__ */ t(
|
26116
|
+
/* @__PURE__ */ t(Ki, { icon: Vr, label: e.expense }),
|
26117
|
+
/* @__PURE__ */ t(Ki, { icon: Kr, label: e.income }),
|
26118
|
+
/* @__PURE__ */ t(Ki, { icon: zr, label: e.missed }),
|
26119
|
+
/* @__PURE__ */ t(Ki, { icon: Yr, label: e.paid })
|
26109
26120
|
]
|
26110
26121
|
}
|
26111
26122
|
);
|
26112
26123
|
}), bs = 58, hl = A(() => {
|
26113
26124
|
const e = pe(), { onEvent: n } = z(), { selectedDay: i } = Pt(), [a, r] = g.useState(
|
26114
|
-
|
26125
|
+
Qi(/* @__PURE__ */ new Date()) * hn + bs
|
26115
26126
|
), o = (c) => {
|
26116
|
-
r(
|
26127
|
+
r(Qi(c) * hn + bs), n(W.RECURRING_TRANSACTIONS_CLICK_CALENDAR_RIGHT);
|
26117
26128
|
}, s = /* @__PURE__ */ t(
|
26118
26129
|
li,
|
26119
26130
|
{
|
@@ -26122,7 +26133,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
26122
26133
|
onMonthChange: o,
|
26123
26134
|
showDaysOutsideCurrentMonth: !0,
|
26124
26135
|
slots: {
|
26125
|
-
day:
|
26136
|
+
day: Q0
|
26126
26137
|
},
|
26127
26138
|
sx: {
|
26128
26139
|
"& .MuiButtonBase-root.MuiPickersDay-root": {
|
@@ -26163,9 +26174,9 @@ const Pi = g.createContext(null), b0 = ({
|
|
26163
26174
|
return /* @__PURE__ */ t(b, { justifyContent: "center", children: /* @__PURE__ */ l(Nn, { dateAdapter: gn, children: [
|
26164
26175
|
i && s,
|
26165
26176
|
!i && s,
|
26166
|
-
/* @__PURE__ */ t(
|
26177
|
+
/* @__PURE__ */ t(J0, {})
|
26167
26178
|
] }) });
|
26168
|
-
}),
|
26179
|
+
}), eb = (e) => {
|
26169
26180
|
if (e.type === Yt.Income)
|
26170
26181
|
return /* @__PURE__ */ t(Kr, {});
|
26171
26182
|
switch (e.status) {
|
@@ -26176,7 +26187,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
26176
26187
|
default:
|
26177
26188
|
return /* @__PURE__ */ t(Vr, {});
|
26178
26189
|
}
|
26179
|
-
},
|
26190
|
+
}, tb = (e, n) => {
|
26180
26191
|
switch (e.status) {
|
26181
26192
|
case at.Paid:
|
26182
26193
|
return e.expectedDate ? S(
|
@@ -26232,8 +26243,8 @@ const Pi = g.createContext(null), b0 = ({
|
|
26232
26243
|
/* @__PURE__ */ l(b, { direction: "column", width: "50%", children: [
|
26233
26244
|
/* @__PURE__ */ t(p, { bold: !0, variant: "body1", children: e.name }),
|
26234
26245
|
/* @__PURE__ */ t(b, { alignItems: "center", direction: "row", gap: 6, children: n ? /* @__PURE__ */ l(b, { direction: "row", gap: 4, children: [
|
26235
|
-
|
26236
|
-
/* @__PURE__ */ t(p, { variant: "caption", children:
|
26246
|
+
eb(e),
|
26247
|
+
/* @__PURE__ */ t(p, { variant: "caption", children: tb(e, r) })
|
26237
26248
|
] }) : /* @__PURE__ */ l(Z, { children: [
|
26238
26249
|
e.institutionGuid && /* @__PURE__ */ t(
|
26239
26250
|
pt,
|
@@ -26263,7 +26274,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
26263
26274
|
width: "100%"
|
26264
26275
|
},
|
26265
26276
|
children: [
|
26266
|
-
u && /* @__PURE__ */ t(
|
26277
|
+
u && /* @__PURE__ */ t(da, { color: "success", filled: !0, size: 12 }),
|
26267
26278
|
h && /* @__PURE__ */ t(Ds, { color: "error", filled: !0, size: 12 }),
|
26268
26279
|
/* @__PURE__ */ t(p, { bold: !0, color: "text.secondary", variant: "caption", children: C })
|
26269
26280
|
]
|
@@ -26370,7 +26381,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
26370
26381
|
/* @__PURE__ */ t(oi, { data: d })
|
26371
26382
|
] });
|
26372
26383
|
}
|
26373
|
-
),
|
26384
|
+
), nb = A(() => {
|
26374
26385
|
const { recurring: e } = I(), { isMobile: n, isSmallTablet: i } = ve(), { onEvent: a } = z(), {
|
26375
26386
|
expenses: r,
|
26376
26387
|
expenseTotal: o,
|
@@ -26469,7 +26480,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
26469
26480
|
)
|
26470
26481
|
] }) })
|
26471
26482
|
] });
|
26472
|
-
}),
|
26483
|
+
}), g4 = A(({ onBackClick: e, sx: n = {} }) => {
|
26473
26484
|
const { accounts: i } = Re(), { recurring: a } = I(), { isCopyLoaded: r, isInitialized: o, selectedAccountGuids: s, setSelectedAccounts: c } = ce(), { isDataLoaded: d, loadRepeatingTransactions: _ } = Pt(), { setFilter: u } = Se(), { onEvent: h } = z(), [m, C] = g.useState(!1);
|
26474
26485
|
return g.useEffect(() => {
|
26475
26486
|
c(i);
|
@@ -26496,7 +26507,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
26496
26507
|
sx: n,
|
26497
26508
|
title: a.title,
|
26498
26509
|
children: [
|
26499
|
-
o && d ? /* @__PURE__ */ t(
|
26510
|
+
o && d ? /* @__PURE__ */ t(nb, {}) : /* @__PURE__ */ l(b, { direction: "column", p: 48, spacing: 24, children: [
|
26500
26511
|
/* @__PURE__ */ t(Wt, { height: 100, variant: "rounded", width: "100%" }),
|
26501
26512
|
/* @__PURE__ */ t(Wt, { height: 100, variant: "rounded", width: "100%" }),
|
26502
26513
|
/* @__PURE__ */ t(Wt, { height: 600, variant: "rounded", width: "100%" })
|
@@ -26509,14 +26520,14 @@ const Pi = g.createContext(null), b0 = ({
|
|
26509
26520
|
onClose: () => C(!1),
|
26510
26521
|
shouldShowHeaderBorders: !1,
|
26511
26522
|
title: a.settings,
|
26512
|
-
children: /* @__PURE__ */ t(
|
26523
|
+
children: /* @__PURE__ */ t(Z0, {})
|
26513
26524
|
}
|
26514
26525
|
)
|
26515
26526
|
]
|
26516
26527
|
}
|
26517
26528
|
) : /* @__PURE__ */ t(ue, {});
|
26518
|
-
}),
|
26519
|
-
const { recurring: e } = I(), { availableWidth: n } =
|
26529
|
+
}), ib = A(() => {
|
26530
|
+
const { recurring: e } = I(), { availableWidth: n } = Un(), { selectedDay: i, selectedDayRecurrences: a, setSelectedDay: r, upcomingRecurrences: o } = Pt(), s = n < 750;
|
26520
26531
|
return /* @__PURE__ */ l(b, { flexDirection: s ? "column" : "row", width: "100%", children: [
|
26521
26532
|
/* @__PURE__ */ t(hl, {}),
|
26522
26533
|
!s && /* @__PURE__ */ t(G, { flexItem: !0, orientation: "vertical", sx: { my: 16, ml: 16 } }),
|
@@ -26534,7 +26545,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
26534
26545
|
}
|
26535
26546
|
)
|
26536
26547
|
] });
|
26537
|
-
}),
|
26548
|
+
}), m4 = A(
|
26538
26549
|
({ onPrimaryCtaClick: e, sx: n }) => {
|
26539
26550
|
const { accounts: i } = Re(), { recurring: a } = I(), { setFilter: r } = Se(), { isDataLoaded: o, loadRepeatingTransactions: s } = Pt(), { isCopyLoaded: c, isInitialized: d, setSelectedAccounts: _, selectedAccountGuids: u } = ce();
|
26540
26551
|
return g.useEffect(() => {
|
@@ -26553,11 +26564,11 @@ const Pi = g.createContext(null), b0 = ({
|
|
26553
26564
|
subTitle: a.sub_title,
|
26554
26565
|
sx: n,
|
26555
26566
|
title: a.mini_title,
|
26556
|
-
children: o ? /* @__PURE__ */ t(
|
26567
|
+
children: o ? /* @__PURE__ */ t(ib, {}) : /* @__PURE__ */ t(ue, {})
|
26557
26568
|
}
|
26558
26569
|
);
|
26559
26570
|
}
|
26560
|
-
), Qa = 5,
|
26571
|
+
), Qa = 5, ab = (e, n) => n.reduce((i, a) => {
|
26561
26572
|
if (a.total > 0) {
|
26562
26573
|
const r = e.find((_) => _.guid === a.category_guid);
|
26563
26574
|
if (!r) return i;
|
@@ -26566,20 +26577,20 @@ const Pi = g.createContext(null), b0 = ({
|
|
26566
26577
|
const c = {
|
26567
26578
|
guid: r.guid,
|
26568
26579
|
name: r.guid === o ? `General ${r.name}` : r.name,
|
26569
|
-
color:
|
26580
|
+
color: Gn[s.guid],
|
26570
26581
|
amount: a.total
|
26571
26582
|
}, d = i.find((_) => _.guid === o);
|
26572
26583
|
d ? (d.amount += a.total, d.categoryTotals?.push(c)) : i.push({
|
26573
26584
|
guid: o,
|
26574
26585
|
name: s.name,
|
26575
|
-
color:
|
26586
|
+
color: Gn[s.guid],
|
26576
26587
|
categoryTotals: [c],
|
26577
26588
|
amount: a.total
|
26578
26589
|
});
|
26579
26590
|
}
|
26580
26591
|
return i;
|
26581
26592
|
}, []), gl = (e, n) => {
|
26582
|
-
const i =
|
26593
|
+
const i = ab(e, n), a = i.filter((d) => d.guid !== N.INCOME && d.guid !== N.TRANSFER).sort((d, _) => _.amount - d.amount), r = a.reduce(
|
26583
26594
|
(d, _) => d + _.amount,
|
26584
26595
|
0
|
26585
26596
|
), o = a.length > Qa ? Qa : a.length, s = a.slice(0, o), c = s.map((d) => ({
|
@@ -26638,10 +26649,10 @@ const Pi = g.createContext(null), b0 = ({
|
|
26638
26649
|
donutData: s,
|
26639
26650
|
totalAmount: o
|
26640
26651
|
};
|
26641
|
-
},
|
26652
|
+
}, oa = ({ amount: e, label: n }) => /* @__PURE__ */ l(b, { direction: "column", children: [
|
26642
26653
|
/* @__PURE__ */ t(p, { bold: !0, sx: { textTransform: "none" }, variant: "Body", children: n }),
|
26643
26654
|
/* @__PURE__ */ t(p, { variant: "XSmall", children: B(e, "0,0") })
|
26644
|
-
] }),
|
26655
|
+
] }), rb = ({
|
26645
26656
|
data: e,
|
26646
26657
|
isIncome: n = !1,
|
26647
26658
|
onSelected: i,
|
@@ -26694,7 +26705,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
26694
26705
|
}
|
26695
26706
|
)
|
26696
26707
|
] }) }) });
|
26697
|
-
},
|
26708
|
+
}, sa = A(rb), Ss = ({ data: e, onSelected: n, selectedId: i }) => /* @__PURE__ */ t(b, { gap: 8, height: "100%", justifyContent: "center", my: "auto", children: e.categoryData.map((a) => /* @__PURE__ */ l(
|
26698
26709
|
b,
|
26699
26710
|
{
|
26700
26711
|
alignItems: "center",
|
@@ -26711,7 +26722,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
26711
26722
|
]
|
26712
26723
|
},
|
26713
26724
|
a.guid
|
26714
|
-
)) }),
|
26725
|
+
)) }), ob = () => {
|
26715
26726
|
const e = pe(), { spending: n } = I(), { selectedAccounts: i } = ce(), {
|
26716
26727
|
categories: a,
|
26717
26728
|
dateRangeCategoryTotals: r,
|
@@ -26752,7 +26763,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
26752
26763
|
Ve,
|
26753
26764
|
{
|
26754
26765
|
label: /* @__PURE__ */ t(
|
26755
|
-
|
26766
|
+
oa,
|
26756
26767
|
{
|
26757
26768
|
amount: m.totalAmount,
|
26758
26769
|
label: n.spend_tab_title
|
@@ -26765,7 +26776,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
26765
26776
|
Ve,
|
26766
26777
|
{
|
26767
26778
|
label: /* @__PURE__ */ t(
|
26768
|
-
|
26779
|
+
oa,
|
26769
26780
|
{
|
26770
26781
|
amount: C.totalAmount,
|
26771
26782
|
label: n.income_tab_title
|
@@ -26777,7 +26788,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
26777
26788
|
] }),
|
26778
26789
|
u === 0 && /* @__PURE__ */ t(M, { children: /* @__PURE__ */ l(b, { direction: "row", gap: 16, justifyContent: "center", p: 24, children: [
|
26779
26790
|
/* @__PURE__ */ t(
|
26780
|
-
|
26791
|
+
sa,
|
26781
26792
|
{
|
26782
26793
|
data: m,
|
26783
26794
|
onSelected: E,
|
@@ -26796,7 +26807,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
26796
26807
|
] }) }),
|
26797
26808
|
u === 1 && /* @__PURE__ */ t(M, { children: /* @__PURE__ */ l(b, { direction: "row", gap: 16, justifyContent: "center", p: 24, children: [
|
26798
26809
|
/* @__PURE__ */ t(
|
26799
|
-
|
26810
|
+
sa,
|
26800
26811
|
{
|
26801
26812
|
data: C,
|
26802
26813
|
isIncome: !0,
|
@@ -26808,7 +26819,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
26808
26819
|
/* @__PURE__ */ t(Ss, { data: C, onSelected: E, selectedId: d })
|
26809
26820
|
] }) })
|
26810
26821
|
] }) : /* @__PURE__ */ t(ue, { height: 250 });
|
26811
|
-
},
|
26822
|
+
}, sb = A(ob), cb = ({ onPrimaryCtaClick: e, sx: n = {} }) => {
|
26812
26823
|
const { spending: i } = I(), { isCopyLoaded: a } = ce();
|
26813
26824
|
return a ? /* @__PURE__ */ t(
|
26814
26825
|
Dn,
|
@@ -26818,10 +26829,10 @@ const Pi = g.createContext(null), b0 = ({
|
|
26818
26829
|
primaryCtaLabel: i.primary_cta,
|
26819
26830
|
sx: n,
|
26820
26831
|
title: i.mini_title,
|
26821
|
-
children: /* @__PURE__ */ t(
|
26832
|
+
children: /* @__PURE__ */ t(sb, {})
|
26822
26833
|
}
|
26823
26834
|
) : /* @__PURE__ */ t(ue, {});
|
26824
|
-
},
|
26835
|
+
}, p4 = A(cb), lb = ({
|
26825
26836
|
data: e,
|
26826
26837
|
onSelected: n,
|
26827
26838
|
selectedId: i = "",
|
@@ -26876,7 +26887,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
26876
26887
|
}
|
26877
26888
|
),
|
26878
26889
|
/* @__PURE__ */ t(G, {}),
|
26879
|
-
s.categoryTotals && s.categoryTotals.length > 0 && /* @__PURE__ */ t(
|
26890
|
+
s.categoryTotals && s.categoryTotals.length > 0 && /* @__PURE__ */ t(Ca, { in: o?.guid === s.guid, unmountOnExit: !0, children: /* @__PURE__ */ l(ie, { children: [
|
26880
26891
|
o?.categoryTotals?.map((c) => /* @__PURE__ */ t(
|
26881
26892
|
X,
|
26882
26893
|
{
|
@@ -26900,7 +26911,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
26900
26911
|
] }, s.guid)) }),
|
26901
26912
|
/* @__PURE__ */ t(p, { bold: !0, sx: { mt: 12, pr: 8, textAlign: "right" }, children: `${r.total}: ${B(e.totalAmount, "0,0")}` })
|
26902
26913
|
] });
|
26903
|
-
},
|
26914
|
+
}, db = A(lb), ub = ({
|
26904
26915
|
data: e,
|
26905
26916
|
onSelected: n,
|
26906
26917
|
onViewTransactions: i,
|
@@ -26919,7 +26930,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
26919
26930
|
px: 8,
|
26920
26931
|
children: [
|
26921
26932
|
c && /* @__PURE__ */ t(
|
26922
|
-
|
26933
|
+
sa,
|
26923
26934
|
{
|
26924
26935
|
data: {
|
26925
26936
|
categoryData: [],
|
@@ -26935,7 +26946,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
26935
26946
|
}
|
26936
26947
|
),
|
26937
26948
|
!c && /* @__PURE__ */ t(
|
26938
|
-
|
26949
|
+
sa,
|
26939
26950
|
{
|
26940
26951
|
data: e,
|
26941
26952
|
onSelected: n,
|
@@ -26946,18 +26957,18 @@ const Pi = g.createContext(null), b0 = ({
|
|
26946
26957
|
variant: "full"
|
26947
26958
|
}
|
26948
26959
|
),
|
26949
|
-
/* @__PURE__ */ t(
|
26960
|
+
/* @__PURE__ */ t(db, { data: e, onSelected: n, selectedId: a, title: r })
|
26950
26961
|
]
|
26951
26962
|
}
|
26952
26963
|
);
|
26953
|
-
}, Ts = A(
|
26964
|
+
}, Ts = A(ub), _b = (e) => [
|
26954
26965
|
e.palette.chartMono.chartMono5,
|
26955
26966
|
e.palette.chartMono.chartMono4,
|
26956
26967
|
e.palette.chartMono.chartMono3,
|
26957
26968
|
e.palette.chartMono.chartMono2,
|
26958
26969
|
e.palette.chartMono.chartMono1,
|
26959
26970
|
e.palette.chartMono.chartMono6
|
26960
|
-
],
|
26971
|
+
], hb = () => {
|
26961
26972
|
const e = vn(), { categories: n, dateRangeCategoryTotals: i, loadDateRangeCategoryTotals: a } = Ke(), { spending: r } = I(), { displayedDateRange: o, selectedAccounts: s, selectedAccountGuids: c } = ce(), { setFilter: d, sortedTransactions: _ } = Se(), [u, h] = g.useState(""), [m, C] = g.useState(0), [f, E] = g.useState(""), [y, T] = g.useState(!1);
|
26962
26973
|
g.useEffect(() => {
|
26963
26974
|
a(
|
@@ -26970,7 +26981,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
26970
26981
|
() => gl(n, i),
|
26971
26982
|
[n, i]
|
26972
26983
|
), w = g.useMemo(
|
26973
|
-
() => ml(n, i,
|
26984
|
+
() => ml(n, i, _b(e)),
|
26974
26985
|
[n, i]
|
26975
26986
|
), x = g.useMemo(
|
26976
26987
|
() => _.find((O) => O.guid === f),
|
@@ -27009,7 +27020,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
27009
27020
|
Ve,
|
27010
27021
|
{
|
27011
27022
|
label: /* @__PURE__ */ t(
|
27012
|
-
|
27023
|
+
oa,
|
27013
27024
|
{
|
27014
27025
|
amount: v.totalAmount,
|
27015
27026
|
label: r.spend_tab_title
|
@@ -27022,7 +27033,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
27022
27033
|
Ve,
|
27023
27034
|
{
|
27024
27035
|
label: /* @__PURE__ */ t(
|
27025
|
-
|
27036
|
+
oa,
|
27026
27037
|
{
|
27027
27038
|
amount: w.totalAmount,
|
27028
27039
|
label: r.income_tab_title
|
@@ -27073,7 +27084,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
27073
27084
|
}
|
27074
27085
|
)
|
27075
27086
|
] });
|
27076
|
-
},
|
27087
|
+
}, gb = A(hb), mb = ({ onBackClick: e, sx: n = {} }) => {
|
27077
27088
|
const { visibleAccounts: i } = Re(), { spending: a } = I(), { isCopyLoaded: r, isInitialized: o, setDisplayedDate: s, setSelectedAccounts: c } = ce(), { onEvent: d } = z(), [_, u] = g.useState(!1);
|
27078
27089
|
g.useEffect(() => {
|
27079
27090
|
c(i);
|
@@ -27092,11 +27103,11 @@ const Pi = g.createContext(null), b0 = ({
|
|
27092
27103
|
onBackClick: e,
|
27093
27104
|
sx: n,
|
27094
27105
|
title: a.title,
|
27095
|
-
children: /* @__PURE__ */ t(M, { height: "calc(100dvh - 150px)", overflow: "scroll", width: "100%", children: /* @__PURE__ */ t(
|
27106
|
+
children: /* @__PURE__ */ t(M, { height: "calc(100dvh - 150px)", overflow: "scroll", width: "100%", children: /* @__PURE__ */ t(gb, {}) })
|
27096
27107
|
}
|
27097
27108
|
);
|
27098
|
-
},
|
27099
|
-
function
|
27109
|
+
}, C4 = A(mb), pb = (e) => Gn[e] ?? Gn.default, Cb = (e) => ba[e];
|
27110
|
+
function fb(e, n) {
|
27100
27111
|
const i = [], a = new Date(e);
|
27101
27112
|
for (; a <= n; ) {
|
27102
27113
|
const r = a.getFullYear(), o = String(a.getMonth() + 1).padStart(2, "0");
|
@@ -27104,7 +27115,7 @@ function pb(e, n) {
|
|
27104
27115
|
}
|
27105
27116
|
return i;
|
27106
27117
|
}
|
27107
|
-
const
|
27118
|
+
const bb = (e) => e.reduce((i, a) => {
|
27108
27119
|
const r = {
|
27109
27120
|
top_level_category_guid: a.top_level_category_guid,
|
27110
27121
|
category_guid: a.category_guid,
|
@@ -27112,8 +27123,8 @@ const Cb = (e) => e.reduce((i, a) => {
|
|
27112
27123
|
year_month: a.year_month
|
27113
27124
|
}, { top_level_category_guid: o, category_guid: s } = r;
|
27114
27125
|
return i[s] || (i[s] = []), i[s].push(r), o !== s && (i[o] || (i[o] = []), i[o].push(r)), i;
|
27115
|
-
}, {}),
|
27116
|
-
const a =
|
27126
|
+
}, {}), yb = (e, n, i) => {
|
27127
|
+
const a = bb(e), r = fb(n, i);
|
27117
27128
|
return Object.entries(a).map(([s, c]) => {
|
27118
27129
|
const d = c[0].top_level_category_guid, _ = r.map((u) => {
|
27119
27130
|
const h = c.filter((E) => E.year_month === u).reduce((E, y) => E + Math.abs(y.amount), 0), m = Number(String(u).slice(0, 4)), C = Number(String(u).slice(4));
|
@@ -27122,19 +27133,19 @@ const Cb = (e) => e.reduce((i, a) => {
|
|
27122
27133
|
return {
|
27123
27134
|
top_level_category_guid: d,
|
27124
27135
|
category_guid: s,
|
27125
|
-
category_name:
|
27126
|
-
category_color:
|
27136
|
+
category_name: Cb(s),
|
27137
|
+
category_color: pb(d),
|
27127
27138
|
dataset: _
|
27128
27139
|
};
|
27129
27140
|
});
|
27130
|
-
},
|
27141
|
+
}, Eb = (e, n) => {
|
27131
27142
|
const i = typeof e == "string" ? parseFloat(e.replace(/[^0-9.-]+/g, "")) : e, a = typeof n == "string" ? parseFloat(n.replace(/[^0-9.-]+/g, "")) : n;
|
27132
27143
|
return (i || 0) - (a || 0);
|
27133
|
-
},
|
27144
|
+
}, Sb = (e) => {
|
27134
27145
|
const n = e.row[e.field];
|
27135
27146
|
return /* @__PURE__ */ t(b, { alignItems: "flex-end", tabIndex: e.tabIndex, children: /* @__PURE__ */ t(Ye, { amount: n, variant: "Small" }) });
|
27136
|
-
},
|
27137
|
-
const { categories: i } = I(), a =
|
27147
|
+
}, Tb = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
27148
|
+
const { categories: i } = I(), a = ba[e];
|
27138
27149
|
return /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", justifyContent: "center", children: [
|
27139
27150
|
/* @__PURE__ */ t(
|
27140
27151
|
M,
|
@@ -27146,20 +27157,20 @@ const Cb = (e) => e.reduce((i, a) => {
|
|
27146
27157
|
),
|
27147
27158
|
/* @__PURE__ */ t(p, { sx: { ml: 12, pb: 6 }, variant: "Small", children: a })
|
27148
27159
|
] });
|
27149
|
-
},
|
27150
|
-
|
27160
|
+
}, Ab = (e) => /* @__PURE__ */ t(b, { alignItems: "center", direction: "row", height: "100%", width: "100%", children: /* @__PURE__ */ t(
|
27161
|
+
Tb,
|
27151
27162
|
{
|
27152
27163
|
categoryGuid: e.row.category,
|
27153
27164
|
topLevelCategoryGuid: e.row.top_level_category_guid
|
27154
27165
|
}
|
27155
|
-
) }),
|
27166
|
+
) }), Ib = (e, n) => {
|
27156
27167
|
const i = [], a = new Date(e);
|
27157
27168
|
for (; a <= n; ) {
|
27158
27169
|
const r = ae(a, te.MONTH);
|
27159
27170
|
i.push(r), a.setMonth(a.getMonth() + 1);
|
27160
27171
|
}
|
27161
27172
|
return i;
|
27162
|
-
},
|
27173
|
+
}, xb = ({
|
27163
27174
|
monthlyCategoryTotals: e,
|
27164
27175
|
selectedDateRange: n,
|
27165
27176
|
selectedCategory: i,
|
@@ -27169,13 +27180,13 @@ const Cb = (e) => e.reduce((i, a) => {
|
|
27169
27180
|
}) => {
|
27170
27181
|
const { onEvent: s } = z(), c = ae(/* @__PURE__ */ new Date(), te.MONTH_SHORT), [d, _] = g.useState([
|
27171
27182
|
{ field: c, sort: "desc" }
|
27172
|
-
]), u = g.useMemo(() =>
|
27183
|
+
]), u = g.useMemo(() => Ib(n.start, n.end), [n]), h = [
|
27173
27184
|
{
|
27174
27185
|
field: "category",
|
27175
27186
|
headerName: "Category",
|
27176
27187
|
minWidth: 175,
|
27177
27188
|
renderHeader: Ut,
|
27178
|
-
renderCell:
|
27189
|
+
renderCell: Ab,
|
27179
27190
|
sortable: !0,
|
27180
27191
|
type: "string"
|
27181
27192
|
},
|
@@ -27185,13 +27196,13 @@ const Cb = (e) => e.reduce((i, a) => {
|
|
27185
27196
|
headerName: C,
|
27186
27197
|
minWidth: 75,
|
27187
27198
|
renderHeader: Ut,
|
27188
|
-
renderCell:
|
27199
|
+
renderCell: Sb,
|
27189
27200
|
align: "right",
|
27190
27201
|
headerAlign: "right",
|
27191
27202
|
sortable: !0,
|
27192
27203
|
hideSortIcons: !1,
|
27193
27204
|
type: "number",
|
27194
|
-
sortComparator:
|
27205
|
+
sortComparator: Eb
|
27195
27206
|
})
|
27196
27207
|
)
|
27197
27208
|
], m = g.useMemo(() => {
|
@@ -27233,9 +27244,9 @@ const Cb = (e) => e.reduce((i, a) => {
|
|
27233
27244
|
sortingOrder: ["asc", "desc"]
|
27234
27245
|
}
|
27235
27246
|
) });
|
27236
|
-
},
|
27247
|
+
}, vb = {
|
27237
27248
|
title: "Transaction List"
|
27238
|
-
},
|
27249
|
+
}, wb = ({
|
27239
27250
|
categoryGuid: e,
|
27240
27251
|
dateRange: n,
|
27241
27252
|
isOpen: i,
|
@@ -27258,16 +27269,16 @@ const Cb = (e) => e.reduce((i, a) => {
|
|
27258
27269
|
ariaLabelClose: s.close_aria,
|
27259
27270
|
isOpen: i,
|
27260
27271
|
onClose: m,
|
27261
|
-
title:
|
27272
|
+
title: vb.title,
|
27262
27273
|
children: [
|
27263
27274
|
h && /* @__PURE__ */ t(qn, { transaction: h }),
|
27264
27275
|
!h && /* @__PURE__ */ t(mn, { onClick: u })
|
27265
27276
|
]
|
27266
27277
|
}
|
27267
27278
|
);
|
27268
|
-
},
|
27279
|
+
}, Nb = A(wb), Db = {
|
27269
27280
|
view_transactions: "View Transactions"
|
27270
|
-
},
|
27281
|
+
}, Rb = ({ onBackClick: e, sx: n }) => {
|
27271
27282
|
const i = tt(), { onEvent: a } = z(), { isDesktop: r, isTablet: o, isMobile: s } = ve(), { visibleAccounts: c } = Re(), { loadMonthlyCategoryTotals: d, monthlyCategoryTotals: _, getCategoryName: u } = Ke(), { sortedTransactions: h } = Se(), { isCopyLoaded: m, isInitialized: C, selectedAccounts: f, setSelectedAccounts: E } = ce(), { trends: y } = I(), T = i.palette.mode === "dark", [v, w] = g.useState(!1), [x, R] = g.useState(!1), [D, $] = g.useState("Chart"), [O, L] = g.useState(""), [U, P] = g.useState({
|
27272
27283
|
start: oo(Xe(jt(/* @__PURE__ */ new Date(), 6)), 1),
|
27273
27284
|
end: Xe(/* @__PURE__ */ new Date())
|
@@ -27285,7 +27296,7 @@ const Cb = (e) => e.reduce((i, a) => {
|
|
27285
27296
|
}, [C, f, U]);
|
27286
27297
|
const j = g.useMemo(() => {
|
27287
27298
|
if (!v) return { stackedDatasets: [], unstackedDatasets: [] };
|
27288
|
-
const Te =
|
27299
|
+
const Te = yb(
|
27289
27300
|
_,
|
27290
27301
|
U.start,
|
27291
27302
|
U.end
|
@@ -27370,7 +27381,7 @@ const Cb = (e) => e.reduce((i, a) => {
|
|
27370
27381
|
/* @__PURE__ */ t(p, { variant: r ? "Body" : "Small", children: he })
|
27371
27382
|
] }),
|
27372
27383
|
/* @__PURE__ */ t(
|
27373
|
-
|
27384
|
+
la,
|
27374
27385
|
{
|
27375
27386
|
exclusive: !0,
|
27376
27387
|
onChange: V,
|
@@ -27416,7 +27427,7 @@ const Cb = (e) => e.reduce((i, a) => {
|
|
27416
27427
|
/* @__PURE__ */ t(H, { name: "arrow_back" }),
|
27417
27428
|
y.all_categories
|
27418
27429
|
] }) }),
|
27419
|
-
/* @__PURE__ */ t(ee, { onClick: () => R(!0), sx: { px: 5 }, children: `${
|
27430
|
+
/* @__PURE__ */ t(ee, { onClick: () => R(!0), sx: { px: 5 }, children: `${Db.view_transactions} (${h.length})` })
|
27420
27431
|
] }),
|
27421
27432
|
/* @__PURE__ */ l(M, { children: [
|
27422
27433
|
D === "Chart" && /* @__PURE__ */ t(
|
@@ -27431,7 +27442,7 @@ const Cb = (e) => e.reduce((i, a) => {
|
|
27431
27442
|
}
|
27432
27443
|
),
|
27433
27444
|
D === "Table" && /* @__PURE__ */ t(
|
27434
|
-
|
27445
|
+
xb,
|
27435
27446
|
{
|
27436
27447
|
monthlyCategoryTotals: _,
|
27437
27448
|
onClickRow: _e,
|
@@ -27444,7 +27455,7 @@ const Cb = (e) => e.reduce((i, a) => {
|
|
27444
27455
|
}
|
27445
27456
|
),
|
27446
27457
|
/* @__PURE__ */ t(
|
27447
|
-
|
27458
|
+
Nb,
|
27448
27459
|
{
|
27449
27460
|
categoryGuid: O,
|
27450
27461
|
dateRange: U,
|
@@ -27455,7 +27466,7 @@ const Cb = (e) => e.reduce((i, a) => {
|
|
27455
27466
|
]
|
27456
27467
|
}
|
27457
27468
|
);
|
27458
|
-
},
|
27469
|
+
}, f4 = A(Rb), Ob = () => {
|
27459
27470
|
const e = tt(), { monthlyCategoryTotals: n } = Ke(), { trends: i } = I(), a = Sm(n);
|
27460
27471
|
return /* @__PURE__ */ t(
|
27461
27472
|
Er,
|
@@ -27471,7 +27482,7 @@ const Cb = (e) => e.reduce((i, a) => {
|
|
27471
27482
|
useCustomMark: !0
|
27472
27483
|
}
|
27473
27484
|
);
|
27474
|
-
},
|
27485
|
+
}, Lb = A(Ob), Mb = ({ onPrimaryCtaClick: e, sx: n }) => {
|
27475
27486
|
const { loadMonthlyCategoryTotals: i, monthlyTotalsLoaded: a } = Ke(), { isInitialized: r } = Ta(), { trends: o } = I(), { isCopyLoaded: s, selectedAccounts: c } = ce();
|
27476
27487
|
return g.useEffect(() => {
|
27477
27488
|
r && i(c).finally();
|
@@ -27483,10 +27494,10 @@ const Cb = (e) => e.reduce((i, a) => {
|
|
27483
27494
|
subTitle: o.sub_title,
|
27484
27495
|
sx: n,
|
27485
27496
|
title: o.mini_title,
|
27486
|
-
children: a ? /* @__PURE__ */ t(
|
27497
|
+
children: a ? /* @__PURE__ */ t(Lb, {}) : /* @__PURE__ */ t(ue, {})
|
27487
27498
|
}
|
27488
27499
|
) : /* @__PURE__ */ t(ue, {});
|
27489
|
-
},
|
27500
|
+
}, b4 = A(Mb);
|
27490
27501
|
export {
|
27491
27502
|
W as ANALYTICS_EVENTS,
|
27492
27503
|
cs as AccountApi,
|
@@ -27499,59 +27510,59 @@ export {
|
|
27499
27510
|
nu as AccountSubType,
|
27500
27511
|
oe as AccountType,
|
27501
27512
|
pr as AccountTypeName,
|
27502
|
-
|
27503
|
-
|
27513
|
+
a4 as AccountsMiniWidget,
|
27514
|
+
i4 as AccountsWidget,
|
27504
27515
|
xc as ActivitySettings,
|
27505
27516
|
et as ActivityStatus,
|
27506
27517
|
Qe as ActivityType,
|
27507
27518
|
jh as AddAccountModal,
|
27508
27519
|
pu as AnalyticsApi,
|
27509
27520
|
k as ApiEndpoints,
|
27510
|
-
|
27521
|
+
y0 as AppStore,
|
27511
27522
|
uo as BannerApi,
|
27512
|
-
|
27523
|
+
G2 as BarChart,
|
27513
27524
|
ri as BeatApi,
|
27514
|
-
|
27515
|
-
|
27516
|
-
|
27517
|
-
|
27525
|
+
O0 as BeatCard,
|
27526
|
+
zi as BottomActions,
|
27527
|
+
s4 as BubbleBudgetsMiniWidget,
|
27528
|
+
c4 as BubbleBudgetsWidget,
|
27518
27529
|
Mu as Calendar,
|
27519
27530
|
Js as CalendarSelectionTypes,
|
27520
|
-
|
27531
|
+
H0 as CarouselHeader,
|
27521
27532
|
Wo as CashflowApi,
|
27522
|
-
|
27533
|
+
F2 as CashflowMiniWidget,
|
27523
27534
|
sm as CashflowOnboarding,
|
27524
27535
|
dm as CashflowStore,
|
27525
|
-
|
27536
|
+
Y2 as CashflowWidget,
|
27526
27537
|
_o as CategoryApi,
|
27527
|
-
|
27528
|
-
|
27538
|
+
Gn as CategoryColors,
|
27539
|
+
ba as CategoryGuidToName,
|
27529
27540
|
N as CategoryGuids,
|
27530
27541
|
ou as CategoryIcon,
|
27531
27542
|
uc as CategoryRow,
|
27532
27543
|
gh as CategorySelector,
|
27533
27544
|
va as CategorySelectorDrawer,
|
27534
27545
|
bh as CategoryStore,
|
27535
|
-
|
27546
|
+
x0 as ChartFilledIcon,
|
27536
27547
|
sc as ConnectCard,
|
27537
27548
|
di as ConnectDrawer,
|
27538
|
-
|
27549
|
+
r4 as ConnectMiniWidget,
|
27539
27550
|
Kn as ConnectionStatus,
|
27540
27551
|
ht as ConnectionStatusEnums,
|
27541
|
-
|
27552
|
+
Ji as CurrencyCodes,
|
27542
27553
|
en as CurrencyInput,
|
27543
27554
|
Ye as CurrencyText,
|
27544
27555
|
te as DATE_FORMATS_INTL,
|
27545
27556
|
Us as DEFAULT_DONUT_SIZE,
|
27546
27557
|
Vs as DEFAULT_STROKE_WIDTH,
|
27547
|
-
|
27548
|
-
|
27549
|
-
|
27558
|
+
l4 as Dashboard,
|
27559
|
+
Yi as DashboardLocation,
|
27560
|
+
$n as DataRow,
|
27550
27561
|
bo as DateRangeSelector,
|
27551
27562
|
Lc as DebtsChart,
|
27552
27563
|
up as DebtsStore,
|
27553
27564
|
tp as DebtsTable,
|
27554
|
-
|
27565
|
+
X2 as DebtsWidget,
|
27555
27566
|
EC as DeviceTab,
|
27556
27567
|
ke as Dialog,
|
27557
27568
|
Hu as Donut,
|
@@ -27565,90 +27576,90 @@ export {
|
|
27565
27576
|
yi as GlobalCopyApi,
|
27566
27577
|
s_ as GlobalCopyStore,
|
27567
27578
|
Xn as GlobalDataContext,
|
27568
|
-
|
27569
|
-
|
27579
|
+
B2 as GlobalDataProvider,
|
27580
|
+
n4 as GlobalStore,
|
27570
27581
|
Vo as GoalApi,
|
27571
27582
|
Rp as GoalStore,
|
27572
27583
|
sr as GoalType,
|
27573
|
-
|
27584
|
+
q2 as GoalsWidget,
|
27574
27585
|
j1 as HelpContent,
|
27575
27586
|
X1 as HelpList,
|
27576
27587
|
uC as HelpWidget,
|
27577
27588
|
Cr as INCOME_ACCOUNT_TYPES,
|
27578
27589
|
Xt as IconBacking,
|
27579
|
-
|
27580
|
-
|
27581
|
-
|
27582
|
-
|
27590
|
+
ia as InformationTooltip,
|
27591
|
+
h4 as InsightsMicroWidget,
|
27592
|
+
E0 as InsightsMicroWidgetDataProvider,
|
27593
|
+
d4 as InvestmentsWidget,
|
27583
27594
|
cu as IterationItemTypes,
|
27584
|
-
|
27595
|
+
N2 as LOADING_STATUS,
|
27585
27596
|
Er as LineChart,
|
27586
27597
|
tn as ListItemAction,
|
27587
27598
|
o_ as ListItemWrapper,
|
27588
27599
|
ue as Loader,
|
27589
|
-
|
27600
|
+
M2 as LocalizedCopyApi,
|
27590
27601
|
Lr as ManageIncome,
|
27591
|
-
|
27592
|
-
|
27602
|
+
Bn as MemberConnectionStatus,
|
27603
|
+
Z2 as MerchantLookup,
|
27593
27604
|
Yp as MerchantStore,
|
27594
27605
|
vt as MetaType,
|
27595
27606
|
Hs as MfaStatuses,
|
27596
|
-
|
27607
|
+
G0 as MicroBeatCarousel,
|
27597
27608
|
La as MicroInsightCard,
|
27598
27609
|
Dn as MiniWidgetContainer,
|
27599
|
-
|
27600
|
-
|
27610
|
+
N0 as MonthlySpendComparisonIcon,
|
27611
|
+
H2 as MultiSegmentDonut,
|
27601
27612
|
i1 as NetWorthChart,
|
27602
27613
|
s1 as NetWorthList,
|
27603
27614
|
t1 as NetWorthStore,
|
27604
27615
|
d1 as NetWorthSummary,
|
27605
|
-
|
27606
|
-
|
27616
|
+
Q2 as NetWorthWidget,
|
27617
|
+
u4 as NoRelevantInsightsCard,
|
27607
27618
|
Fs as NonConnectedStatuses,
|
27608
27619
|
ho as NotificationApi,
|
27609
|
-
|
27620
|
+
t4 as NotificationDrawer,
|
27610
27621
|
I1 as NotificationList,
|
27611
27622
|
Xc as NotificationSettings,
|
27612
27623
|
f1 as NotificationStore,
|
27613
27624
|
Ue as NotificationType,
|
27614
27625
|
Ln as ORDINAL_DATE_FORMAT,
|
27615
|
-
|
27626
|
+
I2 as ORDINAL_MONTH_DAY_YEAR_FORMAT,
|
27616
27627
|
fr as PAYMENT_ACCOUNT_TYPES,
|
27617
27628
|
so as PaymentCategories,
|
27618
27629
|
su as PlanTypes,
|
27619
27630
|
iu as ProcessingStatuses,
|
27620
27631
|
pC as ProfileTab,
|
27621
27632
|
Ps as PropertyType,
|
27622
|
-
|
27623
|
-
|
27633
|
+
v2 as PropertyTypeName,
|
27634
|
+
w2 as RECURRENCE_COPY,
|
27624
27635
|
at as RecurrenceStatus,
|
27625
27636
|
Yt as RecurrenceType,
|
27626
27637
|
Q as RecurrenceTypes,
|
27627
|
-
|
27638
|
+
z2 as RecurringActivityMiniWidget,
|
27628
27639
|
kg as RecurringActivityStore,
|
27629
|
-
|
27630
|
-
|
27640
|
+
K2 as RecurringActivityWidget,
|
27641
|
+
m4 as RecurringTransactionsMiniWidget,
|
27631
27642
|
WC as RecurringTransactionsStore,
|
27632
|
-
|
27643
|
+
g4 as RecurringTransactionsWidget,
|
27633
27644
|
on as RepeatingType,
|
27634
|
-
|
27645
|
+
$2 as ResponsiveButton,
|
27635
27646
|
br as SPENDING_ACCOUNT_TYPES,
|
27636
27647
|
D_ as ScheduledPaymentTypes,
|
27637
27648
|
go as ScheduledPaymentsApi,
|
27638
27649
|
R_ as ScreenSize,
|
27639
|
-
|
27650
|
+
Bi as SearchBox,
|
27640
27651
|
So as SelectionBox,
|
27641
27652
|
ns as SettingsApi,
|
27642
27653
|
w1 as SettingsStore,
|
27643
|
-
|
27654
|
+
e4 as SettingsWidget,
|
27644
27655
|
rc as SingleSegmentDonut,
|
27645
27656
|
lu as Sizes,
|
27646
|
-
|
27647
|
-
|
27657
|
+
p4 as SpendingMiniWidget,
|
27658
|
+
C4 as SpendingWidget,
|
27648
27659
|
Zu as StackedLineChart,
|
27649
27660
|
oi as StatusBar,
|
27650
|
-
|
27651
|
-
|
27661
|
+
x2 as StatusName,
|
27662
|
+
o4 as SurveyMiniWidget,
|
27652
27663
|
hn as TOUCH_TARGET,
|
27653
27664
|
q as TRANSACTION_EVENTS,
|
27654
27665
|
si as TabContentContainer,
|
@@ -27656,7 +27667,7 @@ export {
|
|
27656
27667
|
ti as ToggleListItem,
|
27657
27668
|
pi as TopActions,
|
27658
27669
|
K as TrackType,
|
27659
|
-
|
27670
|
+
aa as TransactionApi,
|
27660
27671
|
qn as TransactionDetails,
|
27661
27672
|
mn as TransactionList,
|
27662
27673
|
Aa as TransactionRow,
|
@@ -27665,43 +27676,43 @@ export {
|
|
27665
27676
|
L_ as TransactionStore,
|
27666
27677
|
Q_ as TransactionTable,
|
27667
27678
|
St as TransactionType,
|
27668
|
-
|
27669
|
-
|
27670
|
-
|
27679
|
+
V2 as TransactionWidget,
|
27680
|
+
f4 as TrendsFullWidget,
|
27681
|
+
b4 as TrendsMiniWidget,
|
27671
27682
|
Fa as UserApi,
|
27672
27683
|
zC as UserStore,
|
27673
27684
|
w_ as UserVerification,
|
27674
|
-
|
27685
|
+
V0 as ViewMoreMicroCard,
|
27675
27686
|
mo as WidgetApi,
|
27676
27687
|
Ot as WidgetContainer,
|
27677
27688
|
ec as WidgetContainerContext,
|
27678
27689
|
tc as WidgetContainerProvider,
|
27679
|
-
|
27690
|
+
_4 as ZeroStateCard,
|
27680
27691
|
al as ZeroStateIcon,
|
27681
27692
|
tu as analyticsSession,
|
27682
27693
|
S as buildDynamicCopy,
|
27683
|
-
|
27694
|
+
O2 as buildPluralCopy,
|
27684
27695
|
dc as exportTransactionsToCSV,
|
27685
27696
|
B as formatCurrency,
|
27686
27697
|
ae as formatDate,
|
27687
27698
|
qs as formatOrdinal,
|
27688
|
-
|
27699
|
+
Ea as formatPercentage,
|
27689
27700
|
Xs as fromTimestampToMonthYear,
|
27690
27701
|
wc as getAccountBalanceDetails,
|
27691
27702
|
Wg as getAccountDetailFields,
|
27692
27703
|
lo as getCategory,
|
27693
|
-
|
27694
|
-
|
27704
|
+
D2 as getCategoryTotalsByParent,
|
27705
|
+
L2 as getClientTheme,
|
27695
27706
|
hu as getCurrencyCodes,
|
27696
27707
|
du as getDetailedCategory,
|
27697
27708
|
uu as getDetailedSubCategory,
|
27698
|
-
|
27699
|
-
|
27700
|
-
|
27709
|
+
Hn as getLocale,
|
27710
|
+
J2 as getNotificationDetailRoute,
|
27711
|
+
R2 as isIncome,
|
27701
27712
|
ir as isValidNumber,
|
27702
27713
|
Re as useAccountStore,
|
27703
27714
|
$t as useAccountUiStore,
|
27704
|
-
|
27715
|
+
Gi as useAppConfig,
|
27705
27716
|
lt as useBudgetsStore,
|
27706
27717
|
Tr as useCashflowStore,
|
27707
27718
|
Ke as useCategoryStore,
|
@@ -27716,12 +27727,12 @@ export {
|
|
27716
27727
|
ce as useGlobalUiStore,
|
27717
27728
|
ot as useGoalStore,
|
27718
27729
|
Ar as useHelpStore,
|
27719
|
-
|
27730
|
+
ta as useHoldingStore,
|
27720
27731
|
Vu as useMerchantStore,
|
27721
27732
|
Ku as useNetWorthStore,
|
27722
27733
|
ic as useNotificationStore,
|
27723
|
-
|
27724
|
-
|
27734
|
+
P2 as usePageView,
|
27735
|
+
k2 as usePrevious,
|
27725
27736
|
nt as useRecurringActivityStore,
|
27726
27737
|
Pt as useRecurringTransactionsStore,
|
27727
27738
|
ve as useScreenSize,
|
@@ -27729,6 +27740,6 @@ export {
|
|
27729
27740
|
Se as useTransactionStore,
|
27730
27741
|
It as useTransactionsUiStore,
|
27731
27742
|
dn as useUserStore,
|
27732
|
-
|
27743
|
+
Un as useWidgetContainerProvider
|
27733
27744
|
};
|
27734
27745
|
//# sourceMappingURL=index.es.js.map
|