@mx-cartographer/experiences 6.2.7-alpha.al0 → 6.2.7-alpha.al4
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";
|
@@ -23,7 +23,7 @@ import { fromUnixTime as Me } from "date-fns/fromUnixTime";
|
|
23
23
|
import { Honeybadger as $i } 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";
|
@@ -34,7 +34,7 @@ import b from "@mui/material/Stack";
|
|
34
34
|
import ji from "@mui/material/Checkbox";
|
35
35
|
import { alpha as wl, lighten as Zr, darken as Qr, Stack as ye, Box as nn, useTheme as vn, Card as sa, 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";
|
@@ -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",
|
@@ -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",
|
@@ -790,7 +790,7 @@ const A2 = {
|
|
790
790
|
UNKNOWN: "help"
|
791
791
|
}, co = 9999999999e-2;
|
792
792
|
var Qi = /* @__PURE__ */ ((e) => (e.CAD = "CAD", e.USD = "USD", e))(Qi || {}), 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
|
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,7 +832,7 @@ 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
|
}, ba = (e) => {
|
@@ -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
|
};
|
@@ -949,14 +949,14 @@ class rt {
|
|
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
961
|
return Qi.CAD;
|
962
962
|
default:
|
@@ -966,7 +966,7 @@ const B = (e, n, i) => {
|
|
966
966
|
style: "percent",
|
967
967
|
minimumFractionDigits: 2,
|
968
968
|
maximumFractionDigits: 2
|
969
|
-
}, ya = (e, n = gu) => ir(e) ? new Intl.NumberFormat(
|
969
|
+
}, ya = (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);
|
@@ -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, Ea = () => 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, ea = () => 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 }),
|
2256
|
+
}, Re = () => Ze("useAccountStore").globalStore.accountStore, Ea = () => 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, ea = () => 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(
|
@@ -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",
|
@@ -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
3417
|
}, ta = A(n_);
|
3418
|
-
var
|
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(ta, { status:
|
3459
|
-
d && /* @__PURE__ */ t(ta, { status:
|
3458
|
+
u && /* @__PURE__ */ t(ta, { status: Bn.Error }),
|
3459
|
+
d && /* @__PURE__ */ t(ta, { status: Bn.Loading })
|
3460
3460
|
] })
|
3461
3461
|
}
|
3462
3462
|
);
|
@@ -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,
|
@@ -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(
|
@@ -3706,7 +3706,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
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: [
|
@@ -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
|
{
|
@@ -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,
|
@@ -4474,7 +4474,7 @@ const ui = () => {
|
|
4474
4474
|
children: /* @__PURE__ */ t(f_, { onAddIncomeClick: e })
|
4475
4475
|
}
|
4476
4476
|
) : /* @__PURE__ */ t(ue, {});
|
4477
|
-
},
|
4477
|
+
}, F2 = A(b_);
|
4478
4478
|
class ia {
|
4479
4479
|
fetchInstance;
|
4480
4480
|
constructor(n, i) {
|
@@ -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,
|
@@ -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,
|
@@ -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("/", "");
|
@@ -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,
|
@@ -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(
|
@@ -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) {
|
@@ -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") })
|
@@ -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) {
|
@@ -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: [
|
@@ -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;
|
@@ -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(ta, { status:
|
13984
|
-
d && /* @__PURE__ */ t(ta, { status:
|
13983
|
+
u && /* @__PURE__ */ t(ta, { status: Bn.Error }),
|
13984
|
+
d && /* @__PURE__ */ t(ta, { status: Bn.Loading })
|
13985
13985
|
] })
|
13986
13986
|
}
|
13987
13987
|
);
|
@@ -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:
|
@@ -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,
|
@@ -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
|
] }),
|
@@ -18978,7 +18978,7 @@ const CC = ({
|
|
18978
18978
|
}
|
18979
18979
|
)
|
18980
18980
|
] });
|
18981
|
-
}),
|
18981
|
+
}), e4 = A(({ onBackClick: e, sx: n }) => {
|
18982
18982
|
const { settings: i } = I(), { isCopyLoaded: a, isInitialized: r } = ce(), { config: o } = Ea(), { 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,
|
@@ -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(
|
@@ -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 = "/";
|
@@ -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) {
|
@@ -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,84 +22445,95 @@ 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 [e, n] = g.useState(!1), { common: i, connect: a } = I(), r = Mn("(max-width: 700px)"), o = () => {
|
22449
|
+
n(!0);
|
22450
|
+
};
|
22451
|
+
return /* @__PURE__ */ l(g.Fragment, { children: [
|
22452
|
+
/* @__PURE__ */ t(M, { my: 4, children: r ? /* @__PURE__ */ t(Wn, { id: "add-accounts", placement: "bottom", title: i.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": i.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": i.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: i.add_accounts
|
22479
|
+
}
|
22480
|
+
) }),
|
22481
|
+
e && /* @__PURE__ */ t(
|
22515
22482
|
di,
|
22516
22483
|
{
|
22517
|
-
onClose: () =>
|
22518
|
-
showConnectWidget:
|
22519
|
-
title:
|
22484
|
+
onClose: () => n(!1),
|
22485
|
+
showConnectWidget: e,
|
22486
|
+
title: a.mini_title
|
22520
22487
|
}
|
22521
22488
|
)
|
22522
22489
|
] });
|
22523
|
-
}, n0 = A(t0)
|
22490
|
+
}, n0 = A(t0), i0 = () => {
|
22491
|
+
const { visibleAccounts: e } = Re(), { selectedAccountGuids: n, setSelectedAccountGuids: i } = ce(), { common: a } = I(), { isMobile: r } = ve(), o = {
|
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: r ? 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 d = (/* @__PURE__ */ new Date()).getHours();
|
22510
|
+
return d > 1 && d < 12 ? a.good_morning : d >= 12 && d < 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
|
+
/* @__PURE__ */ t(n0, {}),
|
22516
|
+
/* @__PURE__ */ t(
|
22517
|
+
Qs,
|
22518
|
+
{
|
22519
|
+
accounts: e,
|
22520
|
+
copy: o,
|
22521
|
+
onFilterClick: (c) => {
|
22522
|
+
i(c);
|
22523
|
+
},
|
22524
|
+
selectedAccountGuids: n,
|
22525
|
+
showAccountNumbers: !1,
|
22526
|
+
sx: {
|
22527
|
+
maxWidth: "100%"
|
22528
|
+
},
|
22529
|
+
variant: "text"
|
22530
|
+
}
|
22531
|
+
)
|
22532
|
+
] })
|
22533
|
+
] }) });
|
22534
|
+
}, a0 = A(i0);
|
22524
22535
|
var zi = /* @__PURE__ */ ((e) => (e[e.Main = 0] = "Main", e[e.RightSide = 1] = "RightSide", e[e.Disabled = 2] = "Disabled", e))(zi || {});
|
22525
|
-
const
|
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);
|
@@ -22538,7 +22549,7 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
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,8 +22576,8 @@ 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(
|
@@ -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 } = ea(), o =
|
22650
|
-
const C = a ===
|
22660
|
+
} = I(), { analysisChartData: n, analysisDetails: i, analysisType: a, setAnalysisType: r } = ea(), 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), Ui = (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,7 +23034,7 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
23023
23034
|
]
|
23024
23035
|
}
|
23025
23036
|
);
|
23026
|
-
},
|
23037
|
+
}, h0 = () => {
|
23027
23038
|
const { isMobile: e } = ve(), { onEvent: n } = z(), [i, a] = Et({}), [r, o] = Et(!1), { holdings: s, updateHoldings: c, holdingsLoaded: d } = ea(), [_, u] = g.useState(!1), [h, m] = Et({
|
23028
23039
|
accounts: [],
|
23029
23040
|
holdings: [],
|
@@ -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,7 +23575,7 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
23564
23575
|
}
|
23565
23576
|
)
|
23566
23577
|
] });
|
23567
|
-
},
|
23578
|
+
}, g0 = A(h0), Za = ({ title: e }) => /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e }), d4 = A(({ onBackClick: e, sx: n }) => {
|
23568
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 } = ea();
|
23569
23580
|
g.useEffect(() => {
|
23570
23581
|
c && u().finally();
|
@@ -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,7 +23850,7 @@ class f0 {
|
|
23839
23850
|
});
|
23840
23851
|
};
|
23841
23852
|
}
|
23842
|
-
const Pi = g.createContext(null),
|
23853
|
+
const Pi = g.createContext(null), E0 = ({
|
23843
23854
|
onEvent: e,
|
23844
23855
|
onPageview: n,
|
23845
23856
|
store: 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,12 +24839,12 @@ const Pi = g.createContext(null), b0 = ({
|
|
24828
24839
|
}
|
24829
24840
|
}
|
24830
24841
|
);
|
24831
|
-
},
|
24842
|
+
}, Vn = () => {
|
24832
24843
|
const e = g.useContext(Pi);
|
24833
24844
|
if (!e)
|
24834
24845
|
throw new Error("useCopyStore() must be used within the InsightsMicroWidgetDataProvider");
|
24835
24846
|
return e.store.copyStore;
|
24836
|
-
},
|
24847
|
+
}, D0 = () => {
|
24837
24848
|
const e = g.useContext(Pi);
|
24838
24849
|
if (!e?.store?.insightsMicroWidgetStore)
|
24839
24850
|
throw new Error(
|
@@ -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 } = Hi(), { 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,
|
@@ -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 } = Hi(), 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 } = Hi(), s = () => {
|
25158
25169
|
o && (o(Kt.ON_VIEW_MORE_CLICKED), n(), i?.capture("clicked_view_more"));
|
25159
25170
|
};
|
25160
25171
|
return r ? /* @__PURE__ */ l(
|
@@ -25217,12 +25228,12 @@ const Pi = g.createContext(null), b0 = ({
|
|
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 } = Hi(), { 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 } = Hi();
|
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,
|
@@ -25525,7 +25536,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
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,
|
@@ -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,
|
@@ -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(la, { color: "success", filled: !0, sx: { fontSize: n, ...Ma } }) }),
|
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(la, { 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)),
|
@@ -26090,7 +26101,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
26090
26101
|
), Vi = ({ 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,
|
@@ -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,
|
@@ -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) => ({
|
@@ -26641,7 +26652,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
26641
26652
|
}, ra = ({ 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
|
-
}, oa = A(
|
26708
|
+
}, oa = 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,
|
@@ -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 = "",
|
@@ -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,
|
@@ -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),
|
@@ -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) => fa[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,18 +27133,18 @@ 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
|
-
},
|
27147
|
+
}, Tb = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
27137
27148
|
const { categories: i } = I(), a = fa[e];
|
27138
27149
|
return /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", justifyContent: "center", children: [
|
27139
27150
|
/* @__PURE__ */ t(
|
@@ -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
|
@@ -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,32 +27510,32 @@ 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
|
-
|
27525
|
+
O0 as BeatCard,
|
27515
27526
|
Ki as BottomActions,
|
27516
|
-
|
27517
|
-
|
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
|
-
|
27538
|
+
Gn as CategoryColors,
|
27528
27539
|
fa as CategoryGuidToName,
|
27529
27540
|
N as CategoryGuids,
|
27530
27541
|
ou as CategoryIcon,
|
@@ -27532,10 +27543,10 @@ export {
|
|
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
|
Qi as CurrencyCodes,
|
@@ -27544,14 +27555,14 @@ export {
|
|
27544
27555
|
te as DATE_FORMATS_INTL,
|
27545
27556
|
Us as DEFAULT_DONUT_SIZE,
|
27546
27557
|
Vs as DEFAULT_STROKE_WIDTH,
|
27547
|
-
|
27558
|
+
l4 as Dashboard,
|
27548
27559
|
zi as DashboardLocation,
|
27549
|
-
|
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,73 +27576,73 @@ 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
27590
|
na as InformationTooltip,
|
27580
|
-
|
27581
|
-
|
27582
|
-
|
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,
|
@@ -27640,15 +27651,15 @@ export {
|
|
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,
|
@@ -27665,22 +27676,22 @@ 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,
|
@@ -27690,14 +27701,14 @@ export {
|
|
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,
|
@@ -27720,8 +27731,8 @@ export {
|
|
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
|