@mx-cartographer/experiences 6.26.27-alpha.mm0 → 6.26.27-alpha.mm1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/dist/index.es.js +138 -142
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -11,7 +11,7 @@ import Xl from "bowser";
|
|
11
11
|
import { getUnixTime as We } from "date-fns/getUnixTime";
|
12
12
|
import { intlFormat as Zl } from "date-fns/intlFormat";
|
13
13
|
import { addMonths as rn } from "date-fns/addMonths";
|
14
|
-
import { addQuarters as
|
14
|
+
import { addQuarters as Li } from "date-fns/addQuarters";
|
15
15
|
import { addWeeks as Ps } from "date-fns/addWeeks";
|
16
16
|
import { addYears as Ji } from "date-fns/addYears";
|
17
17
|
import { getDay as ql } from "date-fns/getDay";
|
@@ -65,7 +65,7 @@ import kd from "@mui/material/ButtonGroup";
|
|
65
65
|
import tt from "@mui/material/Tab";
|
66
66
|
import Ut from "@mui/material/Tabs";
|
67
67
|
import hi from "@mui/material/ToggleButton";
|
68
|
-
import
|
68
|
+
import Pi from "@mui/material/ToggleButtonGroup";
|
69
69
|
import Gd from "@mui/material/Dialog";
|
70
70
|
import Js from "@mui/material/DialogContent";
|
71
71
|
import _n from "@mui/material/CardHeader";
|
@@ -87,7 +87,7 @@ import { differenceInDays as Vd } from "date-fns/differenceInDays";
|
|
87
87
|
import { DataGridPro as Qn } from "@mui/x-data-grid-pro";
|
88
88
|
import { intervalToDuration as Kd, formatDuration as zd, getDate as gr, fromUnixTime as ci, startOfMonth as mr, format as ec, differenceInMonths as Yd, isSameDay as jd, subMonths as Xd, subDays as Zd, startOfToday as qd, endOfToday as Qd } from "date-fns";
|
89
89
|
import Mn from "@mui/material/Alert";
|
90
|
-
import
|
90
|
+
import Fi from "@mui/material/Snackbar";
|
91
91
|
import Jd from "@mui/material/Stack/Stack";
|
92
92
|
import { useVirtualizer as tc } from "@tanstack/react-virtual";
|
93
93
|
import { AdapterDateFns as Jn } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
@@ -836,7 +836,7 @@ const qT = [
|
|
836
836
|
var V_ = /* @__PURE__ */ ((e) => (e[e.SpendingPlan = 0] = "SpendingPlan", e[e.Budgets = 1] = "Budgets", e))(V_ || {}), K_ = /* @__PURE__ */ ((e) => (e[e.RecurringExpense = 0] = "RecurringExpense", e[e.PlannedExpense = 1] = "PlannedExpense", e[e.Other = 2] = "Other", e[e.Income = 3] = "Income", e))(K_ || {});
|
837
837
|
const gc = 48, mc = 4;
|
838
838
|
var z_ = /* @__PURE__ */ ((e) => (e.Small = "small", e.Medium = "medium", e.Large = "large", e))(z_ || {});
|
839
|
-
const
|
839
|
+
const xi = 44, yr = (e, n) => e.find((i) => i.guid === n), Y_ = (e, n) => e.find((i) => i.guid === n), j_ = (e, n) => {
|
840
840
|
const i = e.find((a) => a.subCategories.find((o) => o.guid === n));
|
841
841
|
if (i)
|
842
842
|
return i.subCategories.find((a) => a.guid === n);
|
@@ -882,13 +882,13 @@ const Ii = 44, yr = (e, n) => e.find((i) => i.guid === n), Y_ = (e, n) => e.find
|
|
882
882
|
const n = Io(e);
|
883
883
|
return rn(n, 1);
|
884
884
|
}, pc = (e) => {
|
885
|
-
let n =
|
885
|
+
let n = Li(e, 1);
|
886
886
|
for (; ot(n, we()); )
|
887
|
-
n =
|
887
|
+
n = Li(n, 1);
|
888
888
|
return n;
|
889
889
|
}, Q_ = (e) => {
|
890
890
|
const n = pc(e);
|
891
|
-
return
|
891
|
+
return Li(n, 1);
|
892
892
|
}, J_ = (e) => Ji(e, 1), ya = (e) => de(Ve(e), ie.DAY_OF_WEEK_MONTH_DAY), fc = (e) => e ? de(Ve(e), ie.MONTH_YEAR) : "", eu = /(?<static>.*?)(?<dynamic>(?:_\d+{(?:.*?)}))|(?<staticEnd>.+)/g, T = (e, ...n) => {
|
893
893
|
if (!e) return "";
|
894
894
|
const i = n.some((r) => typeof r != "string"), o = [...e.matchAll(eu)].reduce(
|
@@ -995,7 +995,7 @@ const H = (e, n, i) => {
|
|
995
995
|
style: "percent",
|
996
996
|
minimumFractionDigits: 2,
|
997
997
|
maximumFractionDigits: 2
|
998
|
-
}, Ci = (e, n = nu) => Ja(e) ? new Intl.NumberFormat(Wn(), n).format(Number(e)) : e, iu = (e) => new Intl.PluralRules(Wn(), e),
|
998
|
+
}, Ci = (e, n = nu) => Ja(e) ? new Intl.NumberFormat(Wn(), n).format(Number(e)) : e, iu = (e) => new Intl.PluralRules(Wn(), e), Mi = (e, n = { type: "ordinal" }, i = {
|
999
999
|
one: "st",
|
1000
1000
|
two: "nd",
|
1001
1001
|
few: "rd",
|
@@ -1222,7 +1222,7 @@ class Er {
|
|
1222
1222
|
removeCategory = async (n) => this.fetchInstance.delete(`${B.CATEGORIES}/${n}`);
|
1223
1223
|
updateCategory = async (n) => this.fetchInstance.put(`${B.CATEGORIES}/${n.guid}`, n).then((i) => i.category);
|
1224
1224
|
}
|
1225
|
-
class
|
1225
|
+
class Ni {
|
1226
1226
|
fetchInstance;
|
1227
1227
|
constructor(n, i) {
|
1228
1228
|
this.fetchInstance = new lt(n, i);
|
@@ -1321,7 +1321,7 @@ const Pa = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
|
|
1321
1321
|
if (!n)
|
1322
1322
|
throw new Error(`${e}() must be used within the GlobalDataContext`);
|
1323
1323
|
return n;
|
1324
|
-
}, Se = () => nt("useAccountStore").globalStore.accountStore, vt = () => nt("useAppConfig").globalStore.appDataStore.appConfig, vo = () => nt("useAnalyticsStore").globalStore.analyticsStore, ut = () => nt("useBudgetsStore").globalStore.budgetsStore, Do = () => nt("useCashflowStore").globalStore.cashflowStore, Ue = () => nt("useCategoryStore").globalStore.categoryStore, bc = () => nt("useConnectStore").globalStore.connectStore, Sa = () => nt("useDebtsStore").globalStore.debtsStore, bi = () => nt("useFinstrongStore").globalStore.finstrongStore, yi = () => nt("useGlobalStore").globalStore, re = () => nt("useGlobalUiStore").globalStore.globalUiStore, A = () => nt("globalCopyStore").globalStore.copyStore.copy, dt = () => nt("useGoalStore").globalStore.goalStore, No = () => nt("useHelpStore").globalStore.helpStore, Xn = () => nt("useHoldingStore").globalStore.holdingStore, ru = () => nt("useMerchantStore").globalStore.merchantStore, yc = () => nt("useNetWorthStore").globalStore.netWorthStore, Sc = () => nt("useNotificationStore").globalStore.notificationStore, rt = () => nt("useRecurringTransactionsStore").globalStore.recurringTransactionsStore, yt = () => nt("useSettingsStore").globalStore.settingsStore, ke = () => nt("useTransactionStore").globalStore.transactionStore,
|
1324
|
+
}, Se = () => nt("useAccountStore").globalStore.accountStore, vt = () => nt("useAppConfig").globalStore.appDataStore.appConfig, vo = () => nt("useAnalyticsStore").globalStore.analyticsStore, ut = () => nt("useBudgetsStore").globalStore.budgetsStore, Do = () => nt("useCashflowStore").globalStore.cashflowStore, Ue = () => nt("useCategoryStore").globalStore.categoryStore, bc = () => nt("useConnectStore").globalStore.connectStore, Sa = () => nt("useDebtsStore").globalStore.debtsStore, bi = () => nt("useFinstrongStore").globalStore.finstrongStore, yi = () => nt("useGlobalStore").globalStore, re = () => nt("useGlobalUiStore").globalStore.globalUiStore, A = () => nt("globalCopyStore").globalStore.copyStore.copy, dt = () => nt("useGoalStore").globalStore.goalStore, No = () => nt("useHelpStore").globalStore.helpStore, Xn = () => nt("useHoldingStore").globalStore.holdingStore, ru = () => nt("useMerchantStore").globalStore.merchantStore, yc = () => nt("useNetWorthStore").globalStore.netWorthStore, Sc = () => nt("useNotificationStore").globalStore.notificationStore, rt = () => nt("useRecurringTransactionsStore").globalStore.recurringTransactionsStore, yt = () => nt("useSettingsStore").globalStore.settingsStore, ke = () => nt("useTransactionStore").globalStore.transactionStore, Wi = () => nt("useTrendsStore").globalStore.trendsStore, ft = () => nt("useUserStore").globalStore.userStore, q = () => ({ onEvent: nt().onEvent }), r2 = () => ({ onPageView: nt().onPageView }), su = (e = "useWidgetContainerContext") => {
|
1325
1325
|
const n = g.useContext(Cc);
|
1326
1326
|
if (!n)
|
1327
1327
|
throw new Error(`${e}() must be used within the WidgetContainerContext`);
|
@@ -1972,8 +1972,8 @@ const cu = (e, n) => {
|
|
1972
1972
|
}
|
1973
1973
|
);
|
1974
1974
|
}, Tu = (e) => Cn({
|
1975
|
-
height:
|
1976
|
-
width:
|
1975
|
+
height: Ri,
|
1976
|
+
width: Ri,
|
1977
1977
|
display: "flex",
|
1978
1978
|
justifyContent: "center",
|
1979
1979
|
"&.mx-cmn-out-of-month": {
|
@@ -2016,7 +2016,7 @@ const cu = (e, n) => {
|
|
2016
2016
|
paddingBottom: 5
|
2017
2017
|
}
|
2018
2018
|
}
|
2019
|
-
}), Au = 340,
|
2019
|
+
}), Au = 340, Ri = 44;
|
2020
2020
|
var Ac = /* @__PURE__ */ ((e) => (e.None = "None", e.Single = "Single", e.Range = "Range", e))(Ac || {});
|
2021
2021
|
const xu = ({
|
2022
2022
|
copy: e,
|
@@ -2093,9 +2093,9 @@ const xu = ({
|
|
2093
2093
|
justifyContent: "center",
|
2094
2094
|
textAlign: "center",
|
2095
2095
|
"& .mx-cmn-calendar-header-cell": {
|
2096
|
-
height:
|
2097
|
-
width:
|
2098
|
-
minWidth:
|
2096
|
+
height: Ri,
|
2097
|
+
width: Ri,
|
2098
|
+
minWidth: Ri,
|
2099
2099
|
"& .kmui-text": {
|
2100
2100
|
alignItems: "center",
|
2101
2101
|
display: "flex",
|
@@ -2894,7 +2894,7 @@ const Ic = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
2894
2894
|
const K = pe(String(w)).guid;
|
2895
2895
|
K && a?.(K);
|
2896
2896
|
}, Ge = (K) => {
|
2897
|
-
const He = String(K?.seriesId), st = pe(He).guid, En = qe.find((
|
2897
|
+
const He = String(K?.seriesId), st = pe(He).guid, En = qe.find((Ai) => Ai.id === He), La = En && K?.dataIndex !== void 0, Ma = En && K?.dataIndex === void 0;
|
2898
2898
|
if (La)
|
2899
2899
|
I({
|
2900
2900
|
hoveredSeriesId: He,
|
@@ -2903,13 +2903,13 @@ const Ic = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
2903
2903
|
cursorPos: R
|
2904
2904
|
}), n?.(st);
|
2905
2905
|
else if (Ma) {
|
2906
|
-
const
|
2906
|
+
const Ai = En?.data.map((ka, Ga) => ({
|
2907
2907
|
x: W[Ga],
|
2908
2908
|
y: ka
|
2909
2909
|
})) ?? [];
|
2910
2910
|
I({
|
2911
2911
|
hoveredSeriesId: He,
|
2912
|
-
hoveredAreaData:
|
2912
|
+
hoveredAreaData: Ai,
|
2913
2913
|
isAreaHovered: !0,
|
2914
2914
|
cursorPos: R
|
2915
2915
|
}), e?.(st);
|
@@ -3332,7 +3332,7 @@ const Ic = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
3332
3332
|
}
|
3333
3333
|
),
|
3334
3334
|
r === "timeframebuttons" && /* @__PURE__ */ t(
|
3335
|
-
|
3335
|
+
Pi,
|
3336
3336
|
{
|
3337
3337
|
color: n,
|
3338
3338
|
exclusive: !0,
|
@@ -4380,17 +4380,17 @@ const Dr = "connect_widget", Nr = "connections_widget", ju = ({
|
|
4380
4380
|
);
|
4381
4381
|
class Qu {
|
4382
4382
|
globalStore;
|
4383
|
-
api = new
|
4383
|
+
api = new Ni("/", "");
|
4384
4384
|
copy = {};
|
4385
4385
|
featureNamespace = "experiences";
|
4386
4386
|
isInitialized = !1;
|
4387
4387
|
constructor(n) {
|
4388
|
-
this.globalStore = n, this.api = new
|
4388
|
+
this.globalStore = n, this.api = new Ni(n.endpoint, n.sessionToken), Fe(this);
|
4389
4389
|
}
|
4390
4390
|
// DEPRECATED: Initialize api in constructor and use loadCopy instead
|
4391
4391
|
// TODO: Remove this function
|
4392
4392
|
initialize = async (n, i) => {
|
4393
|
-
this.api = new
|
4393
|
+
this.api = new Ni(n, i), await this.loadCopy();
|
4394
4394
|
};
|
4395
4395
|
loadCopy = async () => {
|
4396
4396
|
await this.getCopy(this.featureNamespace), J(() => {
|
@@ -4741,7 +4741,7 @@ class oh {
|
|
4741
4741
|
}
|
4742
4742
|
};
|
4743
4743
|
}
|
4744
|
-
const
|
4744
|
+
const Si = () => {
|
4745
4745
|
if (!g.useContext(ti))
|
4746
4746
|
throw new Error("useCashflowUiStore() must be used within the GlobalDataContext");
|
4747
4747
|
return Do().uiStore;
|
@@ -4770,7 +4770,7 @@ const Ei = () => {
|
|
4770
4770
|
setNextIncome: m,
|
4771
4771
|
setSelectedCashAccounts: p,
|
4772
4772
|
setUpcomingExpenses: f
|
4773
|
-
} =
|
4773
|
+
} = Si(), { isDataLoaded: S, nextIncomeRecurrence: y, upcomingExpenses: E } = rt();
|
4774
4774
|
g.useEffect(() => {
|
4775
4775
|
p(
|
4776
4776
|
o.filter((R) => s.includes(R.guid))
|
@@ -4994,13 +4994,13 @@ const Ei = () => {
|
|
4994
4994
|
const a = [], o = e.expectedDate;
|
4995
4995
|
let r = ot(o, i) ? o : nc(o, 1);
|
4996
4996
|
for (; ot(r, i); )
|
4997
|
-
sn(r, n) && a.push({ ...e, expectedDate: r }), r =
|
4997
|
+
sn(r, n) && a.push({ ...e, expectedDate: r }), r = Li(r, 1);
|
4998
4998
|
return a;
|
4999
4999
|
}, Ch = (e, n, i) => {
|
5000
5000
|
const a = [], o = e.expectedDate;
|
5001
5001
|
let r = ot(o, i) ? o : nc(o, 2);
|
5002
5002
|
for (; ot(r, i); )
|
5003
|
-
sn(r, n) && a.push({ ...e, expectedDate: r }), r =
|
5003
|
+
sn(r, n) && a.push({ ...e, expectedDate: r }), r = Li(r, 2);
|
5004
5004
|
return a;
|
5005
5005
|
}, bh = (e, n, i) => {
|
5006
5006
|
const a = [], o = e.expectedDate;
|
@@ -5040,7 +5040,7 @@ const Ei = () => {
|
|
5040
5040
|
recurrences: [i]
|
5041
5041
|
}), n;
|
5042
5042
|
}, []), sa = (e, n, i) => {
|
5043
|
-
const a = ea(we(), n.recurrence_day), o = ic(we(), n.recurrence_day), r =
|
5043
|
+
const a = ea(we(), n.recurrence_day), o = ic(we(), n.recurrence_day), r = Mi(n.recurrence_day), s = n.second_recurrence_day ? Mi(n.second_recurrence_day) : "";
|
5044
5044
|
let c = i ? T(e.monthly_ordinal, r) : e.monthly;
|
5045
5045
|
switch (n.recurrence_type) {
|
5046
5046
|
case Ee.EveryQuarter:
|
@@ -5184,7 +5184,7 @@ class ca {
|
|
5184
5184
|
updateTag = async (n) => this.fetchInstance.put(`${B.TAGS}/${n.guid}`, n).then((i) => i.tag);
|
5185
5185
|
updateTransaction = async (n) => this.fetchInstance.put(`${B.TRANSACTIONS}/${n.guid}`, n).then((i) => i.transaction);
|
5186
5186
|
}
|
5187
|
-
var
|
5187
|
+
var vi = /* @__PURE__ */ ((e) => (e[e.Category = 0] = "Category", e[e.Date = 1] = "Date", e[e.Memo = 2] = "Memo", e[e.Tags = 3] = "Tags", e))(vi || {}), Zi = /* @__PURE__ */ ((e) => (e[e.SplitTransaction = 0] = "SplitTransaction", e[e.HideTransaction = 1] = "HideTransaction", e[e.MerchantLogo = 2] = "MerchantLogo", e))(Zi || {});
|
5188
5188
|
const Eh = [
|
5189
5189
|
0,
|
5190
5190
|
1,
|
@@ -6106,7 +6106,7 @@ const zh = ({ transaction: e, onClick: n }) => {
|
|
6106
6106
|
]
|
6107
6107
|
}
|
6108
6108
|
);
|
6109
|
-
}, ig = x(ng),
|
6109
|
+
}, ig = x(ng), Ii = (e) => /* @__PURE__ */ t(C, { fontWeight: 600, variant: "Small", children: e.colDef.headerName }), ag = (e) => /* @__PURE__ */ d(b, { alignItems: "center", direction: "row", gap: 8, children: [
|
6110
6110
|
/* @__PURE__ */ t(
|
6111
6111
|
Jt,
|
6112
6112
|
{
|
@@ -6146,7 +6146,7 @@ const zh = ({ transaction: e, onClick: n }) => {
|
|
6146
6146
|
field: "date",
|
6147
6147
|
headerName: a.date_title,
|
6148
6148
|
width: 103,
|
6149
|
-
renderHeader:
|
6149
|
+
renderHeader: Ii,
|
6150
6150
|
renderCell: (m) => m.row.parent_guid ? null : /* @__PURE__ */ t(tg, { ...m }),
|
6151
6151
|
sortingOrder: ["desc", "asc"]
|
6152
6152
|
},
|
@@ -6155,7 +6155,7 @@ const zh = ({ transaction: e, onClick: n }) => {
|
|
6155
6155
|
field: "payee",
|
6156
6156
|
headerName: a.payee_title,
|
6157
6157
|
flex: 0.33,
|
6158
|
-
renderHeader:
|
6158
|
+
renderHeader: Ii,
|
6159
6159
|
renderCell: ag,
|
6160
6160
|
sortingOrder: ["asc", "desc"]
|
6161
6161
|
},
|
@@ -6163,7 +6163,7 @@ const zh = ({ transaction: e, onClick: n }) => {
|
|
6163
6163
|
field: "category",
|
6164
6164
|
headerName: a.category_title,
|
6165
6165
|
flex: 0.25,
|
6166
|
-
renderHeader:
|
6166
|
+
renderHeader: Ii,
|
6167
6167
|
renderCell: (m) => /* @__PURE__ */ t(eg, { ...m }),
|
6168
6168
|
sortingOrder: ["asc", "desc"]
|
6169
6169
|
},
|
@@ -6171,7 +6171,7 @@ const zh = ({ transaction: e, onClick: n }) => {
|
|
6171
6171
|
field: "account",
|
6172
6172
|
headerName: a.account_title,
|
6173
6173
|
flex: 0.33,
|
6174
|
-
renderHeader:
|
6174
|
+
renderHeader: Ii,
|
6175
6175
|
renderCell: (m) => m.row.parent_guid ? null : /* @__PURE__ */ t(qh, { ...m }),
|
6176
6176
|
sortingOrder: ["asc", "desc"]
|
6177
6177
|
},
|
@@ -6179,7 +6179,7 @@ const zh = ({ transaction: e, onClick: n }) => {
|
|
6179
6179
|
field: "amount",
|
6180
6180
|
headerName: a.amount_title,
|
6181
6181
|
flex: 0.25,
|
6182
|
-
renderHeader:
|
6182
|
+
renderHeader: Ii,
|
6183
6183
|
renderCell: Qh,
|
6184
6184
|
align: "right",
|
6185
6185
|
headerAlign: "right",
|
@@ -7812,10 +7812,10 @@ const Lc = ({ transaction: e }) => {
|
|
7812
7812
|
] })
|
7813
7813
|
] }),
|
7814
7814
|
/* @__PURE__ */ t(Nt, { square: !0, sx: { boxShadow: "none" }, children: /* @__PURE__ */ t(ae, { children: n.map((s, c) => /* @__PURE__ */ d(g.Fragment, { children: [
|
7815
|
-
s ===
|
7816
|
-
s ===
|
7817
|
-
s ===
|
7818
|
-
s ===
|
7815
|
+
s === vi.Category && /* @__PURE__ */ t(Lc, { transaction: i }),
|
7816
|
+
s === vi.Date && /* @__PURE__ */ t(Mc, { transaction: i }),
|
7817
|
+
s === vi.Memo && /* @__PURE__ */ t(Gc, { transaction: i }),
|
7818
|
+
s === vi.Tags && /* @__PURE__ */ t(Bc, { transaction: i }),
|
7819
7819
|
/* @__PURE__ */ t(P, { variant: c < n.length - 1 ? "inset" : "fullWidth" })
|
7820
7820
|
] }, s)) }) }),
|
7821
7821
|
/* @__PURE__ */ t(C, { bold: !0, mb: 8, ml: 26, mt: 16, variant: "Body", children: "Actions" }),
|
@@ -7829,7 +7829,7 @@ const Lc = ({ transaction: e }) => {
|
|
7829
7829
|
i.is_manual && !i.parent_guid && !i.has_been_split && /* @__PURE__ */ t(Ng, { transaction: i })
|
7830
7830
|
] }) })
|
7831
7831
|
] }) }) : /* @__PURE__ */ t(ce, {});
|
7832
|
-
},
|
7832
|
+
}, Ei = x(tm), nm = ({ copy: e, isOpen: n, onClose: i, onPrimaryAction: a }) => {
|
7833
7833
|
const { common: o, transactions: r } = A(), { isCopyLoaded: s } = re();
|
7834
7834
|
return s ? /* @__PURE__ */ d(
|
7835
7835
|
Be,
|
@@ -8058,7 +8058,7 @@ const Lc = ({ transaction: e }) => {
|
|
8058
8058
|
"addTransaction"
|
8059
8059
|
/* AddTransaction */
|
8060
8060
|
), l(F.TRANSACTIONS_CLICK_ADD)) : (be(!0), l(F.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
|
8061
|
-
},
|
8061
|
+
}, Ai = async () => {
|
8062
8062
|
He && await w(W), me("");
|
8063
8063
|
}, ka = () => {
|
8064
8064
|
be(!1), Ie(!0);
|
@@ -8156,7 +8156,7 @@ const Lc = ({ transaction: e }) => {
|
|
8156
8156
|
isOpen: he === "transaction" && !!K,
|
8157
8157
|
onClose: Wl,
|
8158
8158
|
title: _.details_title,
|
8159
|
-
children: K && /* @__PURE__ */ t(
|
8159
|
+
children: K && /* @__PURE__ */ t(Ei, { transaction: K })
|
8160
8160
|
}
|
8161
8161
|
),
|
8162
8162
|
K && he === "category" && /* @__PURE__ */ t(
|
@@ -8175,7 +8175,7 @@ const Lc = ({ transaction: e }) => {
|
|
8175
8175
|
isOpen: he === "addTransaction",
|
8176
8176
|
isPrimaryDisabled: !He,
|
8177
8177
|
onClose: () => me(""),
|
8178
|
-
onPrimaryAction:
|
8178
|
+
onPrimaryAction: Ai,
|
8179
8179
|
title: _.add_transaction_title,
|
8180
8180
|
children: /* @__PURE__ */ t(om, {})
|
8181
8181
|
}
|
@@ -8232,7 +8232,7 @@ const Lc = ({ transaction: e }) => {
|
|
8232
8232
|
{ id: 6, label: s.weekday_saturday }
|
8233
8233
|
], u = [...Array(31).keys()].map((y) => ({
|
8234
8234
|
id: y + 1,
|
8235
|
-
label:
|
8235
|
+
label: Mi(y + 1)
|
8236
8236
|
}));
|
8237
8237
|
u[30].label += ` (${s.last_day_of_month})`;
|
8238
8238
|
const _ = u.slice(0, 15), h = u.slice(14), m = e === Ee.EveryWeek || e === Ee.EveryOtherWeek, p = e === Ee.TwiceAMonth || e === Ee.EveryMonth || e === Ee.EveryOtherMonth || e === Ee.EveryQuarter || e === Ee.EveryOtherQuarter, f = ic(we(), n), S = (y) => {
|
@@ -8413,7 +8413,7 @@ const Lc = ({ transaction: e }) => {
|
|
8413
8413
|
isOpen: !!p && !!S,
|
8414
8414
|
onClose: () => f(""),
|
8415
8415
|
title: i.transaction_details_drawer_title,
|
8416
|
-
children: S && /* @__PURE__ */ t(
|
8416
|
+
children: S && /* @__PURE__ */ t(Ei, { transaction: S })
|
8417
8417
|
}
|
8418
8418
|
),
|
8419
8419
|
/* @__PURE__ */ t(
|
@@ -8576,7 +8576,7 @@ const Lc = ({ transaction: e }) => {
|
|
8576
8576
|
)
|
8577
8577
|
] });
|
8578
8578
|
}
|
8579
|
-
), oo = (e) => e.top_level_category_guid !== D.INCOME && e.transaction_type === Xt.DEBIT, dm = (e, n) => oo(e) ? e.payee?.toLowerCase().includes(n.toLowerCase()) || e.description.toLowerCase().includes(n.toLowerCase()) || e.feed_description.toLowerCase().includes(n.toLowerCase()) : !1,
|
8579
|
+
), oo = (e) => e.top_level_category_guid !== D.INCOME && e.transaction_type === Xt.DEBIT, dm = (e, n) => oo(e) ? e.payee?.toLowerCase().includes(n.toLowerCase()) || e.description.toLowerCase().includes(n.toLowerCase()) || e.feed_description.toLowerCase().includes(n.toLowerCase()) : !1, ki = (e) => e.top_level_category_guid === D.INCOME || e.top_level_category_guid === D.TRANSFER && e.transaction_type === Xt.CREDIT, Uc = (e, n) => ki(e) ? e.payee?.toLowerCase().includes(n.toLowerCase()) || e.description?.toLowerCase().includes(n.toLowerCase()) || e.feed_description?.toLowerCase().includes(n.toLowerCase()) : !1, Vc = x(
|
8580
8580
|
({
|
8581
8581
|
isIncome: e = !1,
|
8582
8582
|
label: n,
|
@@ -8586,7 +8586,7 @@ const Lc = ({ transaction: e }) => {
|
|
8586
8586
|
() => s.find((M) => M.guid === h),
|
8587
8587
|
[h, s]
|
8588
8588
|
), v = () => {
|
8589
|
-
_(!0), r(e ? { ...o, custom:
|
8589
|
+
_(!0), r(e ? { ...o, custom: ki } : { ...o, custom: oo });
|
8590
8590
|
}, N = async () => {
|
8591
8591
|
if (!w) {
|
8592
8592
|
R();
|
@@ -8635,7 +8635,7 @@ const Lc = ({ transaction: e }) => {
|
|
8635
8635
|
onSearch: (M) => {
|
8636
8636
|
r({
|
8637
8637
|
...o,
|
8638
|
-
custom: (k) => e ? M ? Uc(k, M) :
|
8638
|
+
custom: (k) => e ? M ? Uc(k, M) : ki(k) : M ? dm(k, M) : oo(k)
|
8639
8639
|
});
|
8640
8640
|
},
|
8641
8641
|
onSelected: (M) => m(M)
|
@@ -8820,9 +8820,9 @@ const Lc = ({ transaction: e }) => {
|
|
8820
8820
|
);
|
8821
8821
|
}), Vr = 58, Kc = x(() => {
|
8822
8822
|
const e = Te(), { onEvent: n } = q(), { selectedDay: i, setDateRange: a } = rt(), [o, r] = g.useState(
|
8823
|
-
fr(/* @__PURE__ */ new Date()) *
|
8823
|
+
fr(/* @__PURE__ */ new Date()) * xi + Vr
|
8824
8824
|
), s = (l) => {
|
8825
|
-
r(fr(l) *
|
8825
|
+
r(fr(l) * xi + Vr), a({
|
8826
8826
|
start: Xe(l),
|
8827
8827
|
end: Qe(l)
|
8828
8828
|
}), n(F.RECURRING_TRANSACTIONS_CLICK_CALENDAR_RIGHT);
|
@@ -8861,11 +8861,11 @@ const Lc = ({ transaction: e }) => {
|
|
8861
8861
|
minHeight: o
|
8862
8862
|
},
|
8863
8863
|
"&.MuiDateCalendar-root": {
|
8864
|
-
minHeight: o +
|
8864
|
+
minHeight: o + xi
|
8865
8865
|
},
|
8866
8866
|
"& .MuiButtonBase-root, .MuiDayCalendar-weekDayLabel": {
|
8867
|
-
height:
|
8868
|
-
width:
|
8867
|
+
height: xi,
|
8868
|
+
width: xi,
|
8869
8869
|
margin: 0
|
8870
8870
|
},
|
8871
8871
|
"& .MuiDayCalendar-weekDayLabel": {
|
@@ -9009,7 +9009,7 @@ const Lc = ({ transaction: e }) => {
|
|
9009
9009
|
}
|
9010
9010
|
)
|
9011
9011
|
] });
|
9012
|
-
},
|
9012
|
+
}, Di = x(
|
9013
9013
|
({
|
9014
9014
|
recurrences: e,
|
9015
9015
|
isMini: n = !1,
|
@@ -9170,7 +9170,7 @@ const Lc = ({ transaction: e }) => {
|
|
9170
9170
|
}
|
9171
9171
|
),
|
9172
9172
|
n && /* @__PURE__ */ t(
|
9173
|
-
|
9173
|
+
Di,
|
9174
9174
|
{
|
9175
9175
|
onRecurrenceClick: M,
|
9176
9176
|
recurrences: I,
|
@@ -9193,14 +9193,14 @@ const Lc = ({ transaction: e }) => {
|
|
9193
9193
|
)
|
9194
9194
|
] }),
|
9195
9195
|
w === 0 && /* @__PURE__ */ t(
|
9196
|
-
|
9196
|
+
Di,
|
9197
9197
|
{
|
9198
9198
|
onRecurrenceClick: M,
|
9199
9199
|
recurrences: I
|
9200
9200
|
}
|
9201
9201
|
),
|
9202
9202
|
w === 1 && /* @__PURE__ */ t(
|
9203
|
-
|
9203
|
+
Di,
|
9204
9204
|
{
|
9205
9205
|
onRecurrenceClick: k,
|
9206
9206
|
recurrences: _
|
@@ -9211,7 +9211,7 @@ const Lc = ({ transaction: e }) => {
|
|
9211
9211
|
n && /* @__PURE__ */ t(vn, { sx: { minWidth: 450 }, xs: "auto", children: /* @__PURE__ */ d(b, { gap: 24, children: [
|
9212
9212
|
/* @__PURE__ */ t(Kc, {}),
|
9213
9213
|
/* @__PURE__ */ t(
|
9214
|
-
|
9214
|
+
Di,
|
9215
9215
|
{
|
9216
9216
|
onRecurrenceClick: k,
|
9217
9217
|
recurrences: f || _,
|
@@ -9275,7 +9275,7 @@ const Lc = ({ transaction: e }) => {
|
|
9275
9275
|
/* @__PURE__ */ t(Kc, {}),
|
9276
9276
|
!s && /* @__PURE__ */ t(P, { flexItem: !0, orientation: "vertical", sx: { my: 16, ml: 16 } }),
|
9277
9277
|
/* @__PURE__ */ t(
|
9278
|
-
|
9278
|
+
Di,
|
9279
9279
|
{
|
9280
9280
|
isMini: !0,
|
9281
9281
|
onResetClick: i ? () => o(i) : void 0,
|
@@ -9874,7 +9874,7 @@ const Tm = {
|
|
9874
9874
|
type: kt.Date,
|
9875
9875
|
valueFormatter: (a) => T(
|
9876
9876
|
n.day_of_every_month,
|
9877
|
-
|
9877
|
+
Mi(a <= 31 ? a : new Date(a).getDate())
|
9878
9878
|
)
|
9879
9879
|
})), Im(e) && i.push({
|
9880
9880
|
label: n.credit_limit,
|
@@ -9906,7 +9906,7 @@ const Tm = {
|
|
9906
9906
|
H(e.minimum_payment, "0,0.00"),
|
9907
9907
|
de(c, ie.FULL_MONTH_DAY)
|
9908
9908
|
) });
|
9909
|
-
} else e.credit_limit && (o = n.available_credit, r = H(e.credit_limit
|
9909
|
+
} else e.credit_limit && (o = n.available_credit, r = H(e.credit_limit, "0,0.00"));
|
9910
9910
|
}
|
9911
9911
|
return {
|
9912
9912
|
firstSubtitle: i,
|
@@ -9980,7 +9980,7 @@ const Tm = {
|
|
9980
9980
|
children: n ? /* @__PURE__ */ t(ge, { alignItems: "flex-start", onClick: n, sx: { px: 24 }, children: h }) : h
|
9981
9981
|
}
|
9982
9982
|
);
|
9983
|
-
},
|
9983
|
+
}, Gi = x(Nm), Rm = ({ remaining: e }) => /* @__PURE__ */ t(
|
9984
9984
|
j,
|
9985
9985
|
{
|
9986
9986
|
sx: {
|
@@ -9996,7 +9996,7 @@ const Tm = {
|
|
9996
9996
|
children: /* @__PURE__ */ t(Mo, { remaining: e })
|
9997
9997
|
}
|
9998
9998
|
);
|
9999
|
-
var
|
9999
|
+
var Bi = /* @__PURE__ */ ((e) => (e.EXPENSE = "expense", e.INCOME = "income", e))(Bi || {});
|
10000
10000
|
const Om = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
10001
10001
|
/* @__PURE__ */ d(j, { sx: { display: "flex", alignItems: "center", gap: 16, px: 24, py: 12 }, children: [
|
10002
10002
|
/* @__PURE__ */ d(b, { alignItems: "center", height: 32, width: 32, children: [
|
@@ -10030,9 +10030,9 @@ const Om = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
10030
10030
|
px: 24
|
10031
10031
|
},
|
10032
10032
|
children: [
|
10033
|
-
/* @__PURE__ */ t(C, { bold: !0, sx: { fontSize: 12 }, children: n ===
|
10033
|
+
/* @__PURE__ */ t(C, { bold: !0, sx: { fontSize: 12 }, children: n === Bi.EXPENSE ? i.expenses : i.income }),
|
10034
10034
|
/* @__PURE__ */ d(C, { bold: !0, sx: { fontSize: 13 }, children: [
|
10035
|
-
n ===
|
10035
|
+
n === Bi.EXPENSE ? "-" : "+",
|
10036
10036
|
H(e, "0,0.00")
|
10037
10037
|
] })
|
10038
10038
|
]
|
@@ -10041,7 +10041,7 @@ const Om = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
10041
10041
|
/* @__PURE__ */ t(P, {})
|
10042
10042
|
] });
|
10043
10043
|
}, Zr = x(Lm), da = (e, n) => (i) => i.accountGuid === e.guid && (So(i.expectedDate) || sn(i.expectedDate, n.start)) && ot(i.expectedDate, n.end), Mm = () => {
|
10044
|
-
const { availableWidth: e } = $n(), { cashflow: n } = A(), { upcomingExpenses: i, upcomingIncome: a } = rt(), { dateRange: o, selectedCashAccounts: r } =
|
10044
|
+
const { availableWidth: e } = $n(), { cashflow: n } = A(), { upcomingExpenses: i, upcomingIncome: a } = rt(), { dateRange: o, selectedCashAccounts: r } = Si();
|
10045
10045
|
return /* @__PURE__ */ d(b, { children: [
|
10046
10046
|
/* @__PURE__ */ d(b, { direction: e < 400 ? "column" : "row", justifyContent: "space-between", children: [
|
10047
10047
|
/* @__PURE__ */ t(C, { bold: !0, sx: { fontSize: 15, mb: 12, whiteSpace: "normal" }, children: n.accounts_breakdown }),
|
@@ -10073,7 +10073,7 @@ const Om = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
10073
10073
|
},
|
10074
10074
|
children: [
|
10075
10075
|
/* @__PURE__ */ t(
|
10076
|
-
|
10076
|
+
Gi,
|
10077
10077
|
{
|
10078
10078
|
account: s,
|
10079
10079
|
listItemProps: {
|
@@ -10087,7 +10087,7 @@ const Om = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
10087
10087
|
c.length > 0 && /* @__PURE__ */ t(j, { children: /* @__PURE__ */ t(
|
10088
10088
|
ae,
|
10089
10089
|
{
|
10090
|
-
subheader: /* @__PURE__ */ t(Zr, { total: u, type:
|
10090
|
+
subheader: /* @__PURE__ */ t(Zr, { total: u, type: Bi.INCOME }),
|
10091
10091
|
sx: { width: "100%" },
|
10092
10092
|
children: c.map((h) => /* @__PURE__ */ t(Xr, { recurrence: h }, h.repeatingTransactionGuid))
|
10093
10093
|
}
|
@@ -10095,7 +10095,7 @@ const Om = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
10095
10095
|
l.length > 0 && /* @__PURE__ */ t(j, { children: /* @__PURE__ */ t(
|
10096
10096
|
ae,
|
10097
10097
|
{
|
10098
|
-
subheader: /* @__PURE__ */ t(Zr, { total: _, type:
|
10098
|
+
subheader: /* @__PURE__ */ t(Zr, { total: _, type: Bi.EXPENSE }),
|
10099
10099
|
sx: { width: "100%" },
|
10100
10100
|
children: l.map((h) => /* @__PURE__ */ t(Xr, { recurrence: h }, h.repeatingTransactionGuid))
|
10101
10101
|
}
|
@@ -10113,7 +10113,7 @@ const Om = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
10113
10113
|
}) })
|
10114
10114
|
] });
|
10115
10115
|
}, km = x(Mm), Gm = () => {
|
10116
|
-
const { availableWidth: e } = $n(), n = Te(), { cashflow: i } = A(), { upcomingExpenses: a, upcomingIncome: o } = rt(), { dateRange: r, selectedCashAccounts: s } =
|
10116
|
+
const { availableWidth: e } = $n(), n = Te(), { cashflow: i } = A(), { upcomingExpenses: a, upcomingIncome: o } = rt(), { dateRange: r, selectedCashAccounts: s } = Si(), c = [
|
10117
10117
|
{
|
10118
10118
|
field: "account",
|
10119
10119
|
flex: 1.5,
|
@@ -10415,7 +10415,7 @@ const Om = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
10415
10415
|
]
|
10416
10416
|
}
|
10417
10417
|
), qr = (e, n) => (i) => i.accountGuid && e.includes(i.accountGuid) && (So(i.expectedDate) || sn(i.expectedDate, n.start)) && ot(i.expectedDate, n.end), Fm = () => {
|
10418
|
-
const { availableWidth: e } = $n(), { cashflow: n } = A(), { upcomingExpenses: i, upcomingIncome: a } = rt(), { selectedAccountGuids: o } = re(), { dateRange: r, selectedCashAccounts: s } =
|
10418
|
+
const { availableWidth: e } = $n(), { cashflow: n } = A(), { upcomingExpenses: i, upcomingIncome: a } = rt(), { selectedAccountGuids: o } = re(), { dateRange: r, selectedCashAccounts: s } = Si(), { userProfile: c } = ft(), [l, u] = g.useState(!1), _ = g.useMemo(
|
10419
10419
|
() => i.filter(qr(o, r)),
|
10420
10420
|
[r, o, i]
|
10421
10421
|
), h = g.useMemo(
|
@@ -10595,7 +10595,7 @@ const Om = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
10595
10595
|
transform: rotate(360deg);
|
10596
10596
|
}
|
10597
10597
|
`, Ym = () => {
|
10598
|
-
const { addRepeatingTransaction: e, repeatingTransactions: n } = rt(), { cashflow: i, common: a } = A(), { completeOnboarding: o } = Do(), { isDirty: r } =
|
10598
|
+
const { addRepeatingTransaction: e, repeatingTransactions: n } = rt(), { cashflow: i, common: a } = A(), { completeOnboarding: o } = Do(), { isDirty: r } = Si(), { isMobile: s } = Ce(), { isCopyLoaded: c, setDisplayedDate: l } = re(), { filter: u, setFilter: _, transactions: h } = ke(), m = Te(), [p, f] = xt(!0), [S, y] = g.useState(Ee.EveryMonth), [E, I] = g.useState(1), [w, v] = g.useState(15), [N, R] = xt(!1), [M, k] = xt(1), [G, L] = xt([]), [W, Y] = xt(""), ee = g.useMemo(
|
10599
10599
|
() => h.find((he) => he.guid === W),
|
10600
10600
|
[W, h]
|
10601
10601
|
), ue = !!n.filter(
|
@@ -10605,7 +10605,7 @@ const Om = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
10605
10605
|
// Beginning of the month, 90 days before today
|
10606
10606
|
Xe(Ot(we(), 90)),
|
10607
10607
|
we()
|
10608
|
-
), _({ ...u, custom:
|
10608
|
+
), _({ ...u, custom: ki }), k(3);
|
10609
10609
|
}, Le = async () => {
|
10610
10610
|
if (!(G.length < 1)) {
|
10611
10611
|
R(!0);
|
@@ -10693,7 +10693,7 @@ const Om = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
10693
10693
|
bgcolor: "background.paper",
|
10694
10694
|
onSearch: (he) => _({
|
10695
10695
|
...u,
|
10696
|
-
custom: (me) => he ? Uc(me, he) :
|
10696
|
+
custom: (me) => he ? Uc(me, he) : ki(me)
|
10697
10697
|
}),
|
10698
10698
|
onSelected: (he) => {
|
10699
10699
|
Y(he), f(!1);
|
@@ -10778,7 +10778,7 @@ const Om = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
10778
10778
|
setSelectedAccounts: o,
|
10779
10779
|
shouldDisableNextDate: r,
|
10780
10780
|
shouldDisablePrevDate: s
|
10781
|
-
} = re(), { onEvent: c } = q(), { visibleCashAccounts: l } = Se(), { setFilter: u } = ke(), { userProfile: _ } = ft(), { dateRange: h, setSelectedCashAccounts: m } =
|
10781
|
+
} = re(), { onEvent: c } = q(), { visibleCashAccounts: l } = Se(), { setFilter: u } = ke(), { userProfile: _ } = ft(), { dateRange: h, setSelectedCashAccounts: m } = Si(), { loadRepeatingTransactions: p, setDateRange: f } = rt(), { cashflow: S } = A(), { isCopyLoaded: y, isInitialized: E } = re(), [I, w] = g.useState(!1);
|
10782
10782
|
return g.useEffect(() => {
|
10783
10783
|
E && (f(h), p().finally());
|
10784
10784
|
}, [E]), g.useEffect(() => {
|
@@ -13329,7 +13329,7 @@ const Na = ({
|
|
13329
13329
|
] })
|
13330
13330
|
}
|
13331
13331
|
);
|
13332
|
-
},
|
13332
|
+
}, Ti = x(c1), l1 = ({ isOpen: e, onClose: n }) => {
|
13333
13333
|
const { common: i, finstrong: a } = A(), { isMobile: o } = Ce(), { updateUser: r, user: s } = ft(), [c, l] = g.useState(s.credit_score || 0), u = !isNaN(c), _ = () => {
|
13334
13334
|
n(), setTimeout(() => l(s.credit_score || 0), 300);
|
13335
13335
|
}, h = () => {
|
@@ -13511,7 +13511,7 @@ const Na = ({
|
|
13511
13511
|
/* @__PURE__ */ t(u1, { isOpen: l === nn.DateOfBirth, onClose: () => u(null) }),
|
13512
13512
|
/* @__PURE__ */ t(d1, { isOpen: l === nn.CreditScore, onClose: () => u(null) }),
|
13513
13513
|
/* @__PURE__ */ t(
|
13514
|
-
|
13514
|
+
Ti,
|
13515
13515
|
{
|
13516
13516
|
onClose: () => u(null),
|
13517
13517
|
showConnectionsWidget: l === nn.Connections,
|
@@ -13519,7 +13519,7 @@ const Na = ({
|
|
13519
13519
|
}
|
13520
13520
|
)
|
13521
13521
|
] });
|
13522
|
-
}, m1 = x(g1),
|
13522
|
+
}, m1 = x(g1), Hi = {
|
13523
13523
|
creditScore: {
|
13524
13524
|
poor: 600,
|
13525
13525
|
good: 720
|
@@ -13596,7 +13596,7 @@ const Na = ({
|
|
13596
13596
|
);
|
13597
13597
|
}, p1 = () => {
|
13598
13598
|
const { healthScore: e } = bi(), { finstrong: n } = A(), { key_indicators_spend: i } = n, a = (c) => {
|
13599
|
-
const { good: l, poor: u } =
|
13599
|
+
const { good: l, poor: u } = Hi.spendToIncomeRatio;
|
13600
13600
|
let _ = Ke.MISSING, h = i.ratio_missing_description, m = n.key_indicators_missing;
|
13601
13601
|
return c !== null && (c < l ? (_ = Ke.GOOD, h = T(i.ratio_good_description, c), m = n.key_indicators_good) : c >= l && c < u ? (_ = Ke.FAIR, h = T(i.ratio_fair_description, c), m = n.key_indicators_fair) : c >= u && (_ = Ke.OFF_TRACK, h = T(i.ratio_off_track_description, c), m = n.key_indicators_off_track)), {
|
13602
13602
|
cardState: _,
|
@@ -13643,7 +13643,7 @@ const Na = ({
|
|
13643
13643
|
] });
|
13644
13644
|
}, f1 = () => {
|
13645
13645
|
const { healthScore: e } = bi(), { finstrong: n } = A(), { key_indicators_save: i } = n, a = (c) => {
|
13646
|
-
const { good: l, poor: u } =
|
13646
|
+
const { good: l, poor: u } = Hi.daysOfCashOnHand;
|
13647
13647
|
let _ = Ke.MISSING, h = i.days_of_cash_missing_description, m = n.key_indicators_missing;
|
13648
13648
|
return c !== null && (c >= l ? (_ = Ke.GOOD, h = T(i.days_of_cash_good_description, c), m = n.key_indicators_good) : c < l && c >= u ? (_ = Ke.FAIR, h = T(i.days_of_cash_fair_description, c), m = n.key_indicators_fair) : c < u && (_ = Ke.OFF_TRACK, h = T(i.days_of_cash_off_track_description, c), m = n.key_indicators_off_track)), {
|
13649
13649
|
cardState: _,
|
@@ -13652,7 +13652,7 @@ const Na = ({
|
|
13652
13652
|
stateTitle: m
|
13653
13653
|
};
|
13654
13654
|
}, o = (c) => {
|
13655
|
-
const { good: l, poor: u } =
|
13655
|
+
const { good: l, poor: u } = Hi.emergencySavings;
|
13656
13656
|
let _ = Ke.MISSING, h = i.emergency_savings_missing_description, m = n.key_indicators_missing;
|
13657
13657
|
return c !== null && (c >= l ? (_ = Ke.GOOD, h = i.emergency_savings_good_description, m = n.key_indicators_good) : c < l && c >= u ? (_ = Ke.FAIR, h = T(
|
13658
13658
|
i.emergency_savings_fair_description,
|
@@ -13694,7 +13694,7 @@ const Na = ({
|
|
13694
13694
|
] });
|
13695
13695
|
}, C1 = () => {
|
13696
13696
|
const { healthScore: e } = bi(), { finstrong: n } = A(), { key_indicators_borrow: i } = n, { user: a } = ft(), o = (l) => {
|
13697
|
-
const { good: u, poor: _ } =
|
13697
|
+
const { good: u, poor: _ } = Hi.debtToIncomeRatio;
|
13698
13698
|
let h = Ke.MISSING, m = i.manage_debit_missing_description, p = n.key_indicators_missing;
|
13699
13699
|
return l != null && (l <= u ? (h = Ke.GOOD, m = i.manage_debit_good_description, p = n.key_indicators_good) : l > u && l <= _ ? (h = Ke.FAIR, m = T(i.manage_debit_fair_description, l), p = n.key_indicators_fair) : l > _ && (h = Ke.OFF_TRACK, m = T(
|
13700
13700
|
i.manage_debit_off_track_description,
|
@@ -13706,7 +13706,7 @@ const Na = ({
|
|
13706
13706
|
stateTitle: p
|
13707
13707
|
};
|
13708
13708
|
}, r = (l) => {
|
13709
|
-
const { good: u, poor: _ } =
|
13709
|
+
const { good: u, poor: _ } = Hi.creditScore;
|
13710
13710
|
let h = Ke.MISSING, m = i.credit_score_missing_description, p = n.key_indicators_missing;
|
13711
13711
|
return l !== null && (l >= u ? (h = Ke.GOOD, m = T(i.credit_score_good_description, l), p = n.key_indicators_good) : l < u && l >= _ ? (h = Ke.FAIR, m = T(i.credit_score_fair_description, l), p = n.key_indicators_fair) : l < _ && (h = Ke.OFF_TRACK, m = T(
|
13712
13712
|
i.credit_score_off_track_description,
|
@@ -15200,7 +15200,7 @@ const N1 = (e, n) => {
|
|
15200
15200
|
children: /* @__PURE__ */ t(H1, { onClose: ee })
|
15201
15201
|
}
|
15202
15202
|
),
|
15203
|
-
/* @__PURE__ */ t(
|
15203
|
+
/* @__PURE__ */ t(Fi, { onClose: () => S(""), open: !!_, children: /* @__PURE__ */ t(Mn, { onClose: () => S(""), severity: "success", variant: "filled", children: _ }) })
|
15204
15204
|
]
|
15205
15205
|
}
|
15206
15206
|
);
|
@@ -16728,7 +16728,7 @@ const Gf = ({ amount: e, copy: n, trendValue: i }) => {
|
|
16728
16728
|
}
|
16729
16729
|
) }),
|
16730
16730
|
/* @__PURE__ */ t(
|
16731
|
-
|
16731
|
+
Ti,
|
16732
16732
|
{
|
16733
16733
|
onClose: () => Y(!1),
|
16734
16734
|
showConnectionsWidget: W,
|
@@ -18057,7 +18057,7 @@ const oC = ({
|
|
18057
18057
|
n.account?.day_payment_is_due || 0
|
18058
18058
|
), p = n.account?.name || n.account?.feed_name || "", f = n.account?.day_payment_is_due ? T(
|
18059
18059
|
o.notification_debt_payment_date,
|
18060
|
-
|
18060
|
+
Mi(n.account?.day_payment_is_due)
|
18061
18061
|
) : o.notification_debt_payment_zero_state, S = s ? f : H(n.threshold ?? 0, "0,0"), y = async () => {
|
18062
18062
|
s && n.account ? await r({ ...n.account, day_payment_is_due: h }) : e({ ...n, threshold: u });
|
18063
18063
|
};
|
@@ -21159,7 +21159,7 @@ const oC = ({
|
|
21159
21159
|
) })
|
21160
21160
|
] }),
|
21161
21161
|
e.message && /* @__PURE__ */ t(
|
21162
|
-
|
21162
|
+
Fi,
|
21163
21163
|
{
|
21164
21164
|
anchorOrigin: { vertical: "bottom", horizontal: "center" },
|
21165
21165
|
autoHideDuration: 3500,
|
@@ -21306,7 +21306,7 @@ const oC = ({
|
|
21306
21306
|
y
|
21307
21307
|
)) }),
|
21308
21308
|
o.message && /* @__PURE__ */ t(
|
21309
|
-
|
21309
|
+
Fi,
|
21310
21310
|
{
|
21311
21311
|
anchorOrigin: { vertical: "bottom", horizontal: "center" },
|
21312
21312
|
autoHideDuration: 3500,
|
@@ -21687,7 +21687,7 @@ const oC = ({
|
|
21687
21687
|
e === ri.TransactionRules && /* @__PURE__ */ t(fl, {}),
|
21688
21688
|
e === ri.Help && /* @__PURE__ */ t(b, { sx: { px: 24 }, children: /* @__PURE__ */ t(yl, {}) }),
|
21689
21689
|
/* @__PURE__ */ t(
|
21690
|
-
|
21690
|
+
Fi,
|
21691
21691
|
{
|
21692
21692
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
21693
21693
|
autoHideDuration: 3500,
|
@@ -21966,7 +21966,7 @@ const e0 = (e) => e.reduce((i, a) => {
|
|
21966
21966
|
})) : [], a = e ? i0(e, n) : [];
|
21967
21967
|
return { monthlyAmounts: i, tooltipLabels: a };
|
21968
21968
|
}, Sl = ({ selectedTab: e, onTabChange: n }) => /* @__PURE__ */ t(
|
21969
|
-
|
21969
|
+
Pi,
|
21970
21970
|
{
|
21971
21971
|
exclusive: !0,
|
21972
21972
|
onChange: n,
|
@@ -22136,13 +22136,13 @@ const e0 = (e) => e.reduce((i, a) => {
|
|
22136
22136
|
onClose: m,
|
22137
22137
|
title: l0.title,
|
22138
22138
|
children: [
|
22139
|
-
h && /* @__PURE__ */ t(
|
22139
|
+
h && /* @__PURE__ */ t(Ei, { transaction: h }),
|
22140
22140
|
!h && /* @__PURE__ */ t(Vn, { onClick: _ })
|
22141
22141
|
]
|
22142
22142
|
}
|
22143
22143
|
);
|
22144
22144
|
}, _0 = x(d0), u0 = ({ onBackClick: e, sx: n }) => {
|
22145
|
-
const { onEvent: i } = q(), { isDesktop: a, isTablet: o, isMobile: r } = Ce(), { visibleAccounts: s } = Se(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: l, getCategoryName: u } = Ue(), { sortedTransactions: _ } = ke(), { selectedDateRange: h, setSelectedDateRange: m } =
|
22145
|
+
const { onEvent: i } = q(), { isDesktop: a, isTablet: o, isMobile: r } = Ce(), { visibleAccounts: s } = Se(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: l, getCategoryName: u } = Ue(), { sortedTransactions: _ } = ke(), { selectedDateRange: h, setSelectedDateRange: m } = Wi(), { isCopyLoaded: p, isInitialized: f, selectedAccounts: S, setSelectedAccounts: y } = re(), { trends: E } = A(), [I, w] = g.useState(!1), [v, N] = g.useState(!1), [R, M] = g.useState("Chart"), [k, G] = g.useState(""), [L, W] = g.useState(window.innerHeight), ee = L - (r ? 315 : 345);
|
22146
22146
|
g.useEffect(() => {
|
22147
22147
|
const be = () => W(window.innerHeight);
|
22148
22148
|
return window.addEventListener("resize", be), () => window.removeEventListener("resize", be);
|
@@ -22575,7 +22575,7 @@ const e0 = (e) => e.reduce((i, a) => {
|
|
22575
22575
|
}
|
22576
22576
|
), b0 = x(
|
22577
22577
|
({ availableHeight: e = 0, onCategoryClick: n }) => {
|
22578
|
-
const { collapsedCategories: i, visibleCategories: a, setVisibleListLength: o } =
|
22578
|
+
const { collapsedCategories: i, visibleCategories: a, setVisibleListLength: o } = Wi(), { isLargeDesktop: r, isDesktop: s } = Ce(), { trends: c } = A(), [l, u] = g.useState(!1), _ = s || r;
|
22579
22579
|
g.useEffect(() => {
|
22580
22580
|
const p = Math.floor(e / 64) - 1, f = a.length + i.length;
|
22581
22581
|
p !== a.length && (o(_ ? Math.max(p, 5) : 5), u(p >= f));
|
@@ -22620,7 +22620,7 @@ const e0 = (e) => e.reduce((i, a) => {
|
|
22620
22620
|
}
|
22621
22621
|
);
|
22622
22622
|
class y0 {
|
22623
|
-
copyApi = new
|
22623
|
+
copyApi = new Ni("/", "");
|
22624
22624
|
copyObject = {};
|
22625
22625
|
namespace = "experiences";
|
22626
22626
|
translationKey = "micro_insights";
|
@@ -22628,7 +22628,7 @@ class y0 {
|
|
22628
22628
|
Fe(this);
|
22629
22629
|
}
|
22630
22630
|
initialize = async (n, i) => {
|
22631
|
-
this.copyApi = new
|
22631
|
+
this.copyApi = new Ni(n, i), await this.loadCopy();
|
22632
22632
|
};
|
22633
22633
|
loadCopy = async () => {
|
22634
22634
|
const n = await this.copyApi.getGlobalCopy(this.namespace, this.translationKey);
|
@@ -24571,34 +24571,30 @@ const Ui = g.createContext(null), I0 = ({
|
|
24571
24571
|
"WeeklyNoSpendDays",
|
24572
24572
|
"WeeklySmallPurchasesSummary"
|
24573
24573
|
], Z0 = ({ onInsightCardClick: e }) => {
|
24574
|
-
const n = dn(), { isMobile: i, isDesktop: a, isLargeDesktop: o } = Ce(), { beatStore: r, endpoint: s, sessionToken: c } = yi(), { isInitialized: l } = re(),
|
24574
|
+
const n = dn(), { isMobile: i, isDesktop: a, isLargeDesktop: o } = Ce(), { beatStore: r, endpoint: s, sessionToken: c } = yi(), { isInitialized: l } = re(), [u, _] = g.useState(!1), h = n.palette.mode === "dark", m = a || o, p = m || i ? 1 : 2;
|
24575
24575
|
g.useEffect(() => {
|
24576
|
-
l && r.loadBeats().finally(() =>
|
24576
|
+
l && r.loadBeats().finally(() => _(!0));
|
24577
24577
|
}, [l]);
|
24578
|
-
const
|
24579
|
-
|
24580
|
-
const v = u.map((N) => N.guid);
|
24581
|
-
return r.getFilteredBeats({ categoryGuids: v, templates: X0 });
|
24582
|
-
}, [_, u]), y = () => null, E = p ? 200 : 170, I = p ? 170 : 124, w = S.length > 0 ? E : I;
|
24583
|
-
return /* @__PURE__ */ t(ye, { sx: { height: w }, children: /* @__PURE__ */ t(
|
24578
|
+
const f = g.useMemo(() => u ? r.getFilteredBeats({ templates: X0 }) : [], [u]), S = () => null, y = m ? 200 : 170, E = m ? 170 : 124, I = f.length > 0 ? y : E;
|
24579
|
+
return /* @__PURE__ */ t(ye, { sx: { height: I }, children: /* @__PURE__ */ t(
|
24584
24580
|
z0,
|
24585
24581
|
{
|
24586
24582
|
areBeatsLoading: r.isLoading,
|
24587
|
-
beats:
|
24583
|
+
beats: f,
|
24588
24584
|
endpoint: s,
|
24589
|
-
logOutUser:
|
24585
|
+
logOutUser: S,
|
24590
24586
|
onCardClick: e,
|
24591
24587
|
showBorder: !0,
|
24592
24588
|
showCTAColocatedWithText: !1,
|
24593
24589
|
showCarouselControls: !0,
|
24594
|
-
showHeader:
|
24590
|
+
showHeader: m,
|
24595
24591
|
showIcon: !0,
|
24596
24592
|
showWithMargin: !1,
|
24597
24593
|
token: c,
|
24598
|
-
useDarkMode:
|
24594
|
+
useDarkMode: h,
|
24599
24595
|
userHasFullInsightFeedBeats: !1,
|
24600
24596
|
variant: "outlined",
|
24601
|
-
visibleCardsCount:
|
24597
|
+
visibleCardsCount: p
|
24602
24598
|
}
|
24603
24599
|
) });
|
24604
24600
|
}, q0 = x(Z0), Q0 = x(({ transactions: e }) => {
|
@@ -24667,7 +24663,7 @@ const Ui = g.createContext(null), I0 = ({
|
|
24667
24663
|
}), J0 = x(({ chartLabel: e, chartColor: n }) => {
|
24668
24664
|
const {
|
24669
24665
|
categoryDetailsChartData: { monthlyAmounts: i, tooltipLabels: a }
|
24670
|
-
} =
|
24666
|
+
} = Wi();
|
24671
24667
|
return /* @__PURE__ */ t(b, { sx: { pt: 12, width: "100%" }, children: /* @__PURE__ */ t(
|
24672
24668
|
ni,
|
24673
24669
|
{
|
@@ -24695,7 +24691,7 @@ const Ui = g.createContext(null), I0 = ({
|
|
24695
24691
|
}
|
24696
24692
|
) });
|
24697
24693
|
}), eb = x(({ onClose: e }) => {
|
24698
|
-
const { trends: n } = A(), i = Te(), { selectedCategoryData: a, selectedDateRangeMonthRange: o } =
|
24694
|
+
const { trends: n } = A(), i = Te(), { selectedCategoryData: a, selectedDateRangeMonthRange: o } = Wi();
|
24699
24695
|
if (!a)
|
24700
24696
|
return null;
|
24701
24697
|
const { guid: r, name: s, is_income: c, totalAmount: l, transactions: u } = a, _ = c ? n.category_income : n.category_spending, h = la(r, i), m = c ? n.income_label : n.spending_label, p = () => {
|
@@ -24774,7 +24770,7 @@ const Ui = g.createContext(null), I0 = ({
|
|
24774
24770
|
loadMonthlyCategoryTotals: u,
|
24775
24771
|
monthlyCategoryTotals: _,
|
24776
24772
|
monthlyTotalsLoaded: h
|
24777
|
-
} = Ue(), { setFilter: m } = ke(), { selectedDateRange: p, setSelectedCategoryData: f, setSelectedDateRange: S } =
|
24773
|
+
} = Ue(), { setFilter: m } = ke(), { selectedDateRange: p, setSelectedCategoryData: f, setSelectedDateRange: S } = Wi(), {
|
24778
24774
|
isCopyLoaded: y,
|
24779
24775
|
isInitialized: E,
|
24780
24776
|
selectedAccounts: I,
|
@@ -25279,7 +25275,7 @@ const Va = ({
|
|
25279
25275
|
const I = m.indexOf(E) === m.length - 1;
|
25280
25276
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
25281
25277
|
/* @__PURE__ */ t(
|
25282
|
-
|
25278
|
+
Gi,
|
25283
25279
|
{
|
25284
25280
|
account: E,
|
25285
25281
|
onRowClick: () => {
|
@@ -25764,7 +25760,7 @@ const Va = ({
|
|
25764
25760
|
isOpen: !!e,
|
25765
25761
|
onClose: () => n(""),
|
25766
25762
|
title: o.transaction_drawer_title,
|
25767
|
-
children: /* @__PURE__ */ t(
|
25763
|
+
children: /* @__PURE__ */ t(Ei, { transaction: c })
|
25768
25764
|
}
|
25769
25765
|
)
|
25770
25766
|
] });
|
@@ -25852,7 +25848,7 @@ const Va = ({
|
|
25852
25848
|
const M = N === R.length - 1;
|
25853
25849
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
25854
25850
|
/* @__PURE__ */ t(
|
25855
|
-
|
25851
|
+
Gi,
|
25856
25852
|
{
|
25857
25853
|
account: v,
|
25858
25854
|
onRowClick: () => f(v),
|
@@ -25909,7 +25905,7 @@ const Va = ({
|
|
25909
25905
|
const v = a.indexOf(w) === a.length - 1, N = E.indexOf(w) === E.length - 1;
|
25910
25906
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
25911
25907
|
/* @__PURE__ */ t(
|
25912
|
-
|
25908
|
+
Gi,
|
25913
25909
|
{
|
25914
25910
|
account: w,
|
25915
25911
|
onRowClick: () => f(w),
|
@@ -25987,7 +25983,7 @@ const Va = ({
|
|
25987
25983
|
}
|
25988
25984
|
),
|
25989
25985
|
/* @__PURE__ */ t(
|
25990
|
-
|
25986
|
+
Ti,
|
25991
25987
|
{
|
25992
25988
|
onClose: () => r(!1),
|
25993
25989
|
showConnectionsWidget: o,
|
@@ -26015,7 +26011,7 @@ const Va = ({
|
|
26015
26011
|
const _ = s.indexOf(l) === s.length - 1;
|
26016
26012
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
26017
26013
|
/* @__PURE__ */ t(
|
26018
|
-
|
26014
|
+
Gi,
|
26019
26015
|
{
|
26020
26016
|
account: l,
|
26021
26017
|
listItemProps: { sx: { px: 24 } },
|
@@ -26743,7 +26739,7 @@ const Bb = () => {
|
|
26743
26739
|
};
|
26744
26740
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
26745
26741
|
/* @__PURE__ */ t(
|
26746
|
-
|
26742
|
+
Pi,
|
26747
26743
|
{
|
26748
26744
|
exclusive: !0,
|
26749
26745
|
onChange: s,
|
@@ -27039,7 +27035,7 @@ function Qb({ bubble: e, isDraggable: n, onClick: i = () => {
|
|
27039
27035
|
u
|
27040
27036
|
);
|
27041
27037
|
}
|
27042
|
-
let
|
27038
|
+
let wi;
|
27043
27039
|
const Jb = ({
|
27044
27040
|
height: e,
|
27045
27041
|
width: n,
|
@@ -27048,9 +27044,9 @@ const Jb = ({
|
|
27048
27044
|
}
|
27049
27045
|
}) => {
|
27050
27046
|
const { detailedBudgets: o } = ut();
|
27051
|
-
return
|
27052
|
-
Yb(
|
27053
|
-
}, [
|
27047
|
+
return wi = g.useMemo(() => Xb(o), [o]), g.useEffect(() => {
|
27048
|
+
Yb(wi, e, n), i && zb(wi);
|
27049
|
+
}, [wi, e, n]), /* @__PURE__ */ t("svg", { height: e, style: { overflow: "visible" }, width: Math.abs(n), children: wi.nodes().map((r) => /* @__PURE__ */ t(Qb, { bubble: r, isDraggable: i, onClick: a }, r.guid)) });
|
27054
27050
|
}, ey = x(Jb), ty = ({
|
27055
27051
|
isMiniWidget: e = !1,
|
27056
27052
|
onConnectAccountsClick: n,
|
@@ -27163,7 +27159,7 @@ const Jb = ({
|
|
27163
27159
|
}
|
27164
27160
|
),
|
27165
27161
|
/* @__PURE__ */ t(
|
27166
|
-
|
27162
|
+
Ti,
|
27167
27163
|
{
|
27168
27164
|
onClose: () => f(!1),
|
27169
27165
|
showConnectionsWidget: p,
|
@@ -27580,7 +27576,7 @@ const Jb = ({
|
|
27580
27576
|
isOpen: !!f,
|
27581
27577
|
onClose: () => p(""),
|
27582
27578
|
title: a.details_transaction_drawer,
|
27583
|
-
children: f && /* @__PURE__ */ t(
|
27579
|
+
children: f && /* @__PURE__ */ t(Ei, { transaction: f })
|
27584
27580
|
}
|
27585
27581
|
)
|
27586
27582
|
] })
|
@@ -27883,7 +27879,7 @@ const Jb = ({
|
|
27883
27879
|
}
|
27884
27880
|
),
|
27885
27881
|
/* @__PURE__ */ t(
|
27886
|
-
|
27882
|
+
Fi,
|
27887
27883
|
{
|
27888
27884
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
27889
27885
|
autoHideDuration: 3500,
|
@@ -28234,7 +28230,7 @@ const Sy = ({ widgets: e, isLoading: n }) => {
|
|
28234
28230
|
totalMarketValue: m,
|
28235
28231
|
totalGainLossPercentage: h / u
|
28236
28232
|
};
|
28237
|
-
}, so = (e) => e < 1e-3 ? "< 0.1%" : Ci(e),
|
28233
|
+
}, so = (e) => e < 1e-3 ? "< 0.1%" : Ci(e), Oi = (e) => e === 0 ? H(e, "0,0.00") : Ay(e, -0.01, 0.01) ? "< $0.01" : H(e, "0,0.00"), wy = ({
|
28238
28234
|
data: e,
|
28239
28235
|
onSelected: n,
|
28240
28236
|
selectedId: i,
|
@@ -28251,7 +28247,7 @@ const Sy = ({ widgets: e, isLoading: n }) => {
|
|
28251
28247
|
], u = !e?.investmentsData.length, { isSmallMobile: _ } = Ce();
|
28252
28248
|
return /* @__PURE__ */ d(b, { sx: { mt: 15, gap: 12, width: s ? 250 : 412 }, children: [
|
28253
28249
|
/* @__PURE__ */ t(
|
28254
|
-
|
28250
|
+
Pi,
|
28255
28251
|
{
|
28256
28252
|
exclusive: !0,
|
28257
28253
|
fullWidth: !0,
|
@@ -28295,7 +28291,7 @@ const Sy = ({ widgets: e, isLoading: n }) => {
|
|
28295
28291
|
width: "100%",
|
28296
28292
|
children: [
|
28297
28293
|
/* @__PURE__ */ t(C, { bold: i === h.guid, children: h.displayName }),
|
28298
|
-
/* @__PURE__ */ t(C, { bold: i === h.guid, variant: "Body", children: a === 0 ?
|
28294
|
+
/* @__PURE__ */ t(C, { bold: i === h.guid, variant: "Body", children: a === 0 ? Oi(h.value) : so(h.percentage) })
|
28299
28295
|
]
|
28300
28296
|
}
|
28301
28297
|
)
|
@@ -28319,7 +28315,7 @@ const Sy = ({ widgets: e, isLoading: n }) => {
|
|
28319
28315
|
m.displayName,
|
28320
28316
|
" "
|
28321
28317
|
] }),
|
28322
|
-
/* @__PURE__ */ t(C, { children: a === 0 ?
|
28318
|
+
/* @__PURE__ */ t(C, { children: a === 0 ? Oi(m.value) : so(m.percentage) })
|
28323
28319
|
] })
|
28324
28320
|
},
|
28325
28321
|
m.displayName
|
@@ -28338,7 +28334,7 @@ const Sy = ({ widgets: e, isLoading: n }) => {
|
|
28338
28334
|
}
|
28339
28335
|
}
|
28340
28336
|
)
|
28341
|
-
] }) : a === 0 && /* @__PURE__ */ t(C, { bold: !0, sx: { textAlign: "right", pr: 24 }, children: `${c.total_label_text} ${
|
28337
|
+
] }) : a === 0 && /* @__PURE__ */ t(C, { bold: !0, sx: { textAlign: "right", pr: 24 }, children: `${c.total_label_text} ${Oi(e.totalAmount)}` })
|
28342
28338
|
] });
|
28343
28339
|
}, vy = ({
|
28344
28340
|
data: e,
|
@@ -28356,7 +28352,7 @@ const Sy = ({ widgets: e, isLoading: n }) => {
|
|
28356
28352
|
[s]
|
28357
28353
|
), {
|
28358
28354
|
investments: { allocation: m }
|
28359
|
-
} = A(), p = g.useMemo(() => e.donutData.length > 0 ? e.donutData : [{ id: "0", color: u.palette.border.light, value: 100 }], [e, u]), f = _ ? "#0AC295" : "#09A57F", S = _ ? "grey.300" : "grey.700", y = () => h ? m.pie_chart_centered_click_for_details : i ? so(e.totalGainLossPercentage) :
|
28355
|
+
} = A(), p = g.useMemo(() => e.donutData.length > 0 ? e.donutData : [{ id: "0", color: u.palette.border.light, value: 100 }], [e, u]), f = _ ? "#0AC295" : "#09A57F", S = _ ? "grey.300" : "grey.700", y = () => h ? m.pie_chart_centered_click_for_details : i ? so(e.totalGainLossPercentage) : Oi(e.totalGainLoss), E = e.totalGainLoss >= 0 ? f : S;
|
28360
28356
|
return /* @__PURE__ */ t(
|
28361
28357
|
xc,
|
28362
28358
|
{
|
@@ -28369,7 +28365,7 @@ const Sy = ({ widgets: e, isLoading: n }) => {
|
|
28369
28365
|
size: c,
|
28370
28366
|
children: /* @__PURE__ */ t(b, { alignItems: "center", height: "100%", justifyContent: "center", width: "100%", children: /* @__PURE__ */ t(b, { alignItems: "center", justifyContent: "center", minHeight: c, minWidth: c, children: /* @__PURE__ */ d(b, { alignItems: "center", sx: { gap: { xs: 4, xl: 8 }, mb: { xs: 4, xl: 8 } }, children: [
|
28371
28367
|
/* @__PURE__ */ t(C, { color: "text.secondary", noWrap: !0, children: h?.displayName ?? l }),
|
28372
|
-
/* @__PURE__ */ t(Qt, { color: "text.primary", children:
|
28368
|
+
/* @__PURE__ */ t(Qt, { color: "text.primary", children: Oi(h?.value ?? e.totalMarketValue) }),
|
28373
28369
|
/* @__PURE__ */ d(b, { sx: { alignItems: "center", flexDirection: "row", gap: 4 }, children: [
|
28374
28370
|
!h && /* @__PURE__ */ t(
|
28375
28371
|
pt,
|
@@ -28463,7 +28459,7 @@ const Sy = ({ widgets: e, isLoading: n }) => {
|
|
28463
28459
|
];
|
28464
28460
|
return /* @__PURE__ */ d(b, { sx: { gap: 12, width: { md: 412 } }, children: [
|
28465
28461
|
/* @__PURE__ */ t(
|
28466
|
-
|
28462
|
+
Pi,
|
28467
28463
|
{
|
28468
28464
|
color: "primary",
|
28469
28465
|
exclusive: !0,
|
@@ -29564,7 +29560,7 @@ const Sy = ({ widgets: e, isLoading: n }) => {
|
|
29564
29560
|
}
|
29565
29561
|
),
|
29566
29562
|
/* @__PURE__ */ t(
|
29567
|
-
|
29563
|
+
Ti,
|
29568
29564
|
{
|
29569
29565
|
onClose: () => u(!1),
|
29570
29566
|
showConnectionsWidget: l,
|
@@ -29648,7 +29644,7 @@ const Sy = ({ widgets: e, isLoading: n }) => {
|
|
29648
29644
|
] })
|
29649
29645
|
] }),
|
29650
29646
|
/* @__PURE__ */ t(
|
29651
|
-
|
29647
|
+
Ti,
|
29652
29648
|
{
|
29653
29649
|
onClose: () => s(!1),
|
29654
29650
|
showConnectionsWidget: c,
|
@@ -30167,7 +30163,7 @@ const Sy = ({ widgets: e, isLoading: n }) => {
|
|
30167
30163
|
isOpen: !!k,
|
30168
30164
|
onClose: () => w(""),
|
30169
30165
|
title: s.transaction_details_drawer_title,
|
30170
|
-
children: k && /* @__PURE__ */ t(
|
30166
|
+
children: k && /* @__PURE__ */ t(Ei, { transaction: k })
|
30171
30167
|
}
|
30172
30168
|
)
|
30173
30169
|
] });
|
@@ -30278,7 +30274,7 @@ export {
|
|
30278
30274
|
r1 as FinstrongStore,
|
30279
30275
|
T2 as FinstrongWidget,
|
30280
30276
|
Ee as Frequency,
|
30281
|
-
|
30277
|
+
Ni as GlobalCopyApi,
|
30282
30278
|
Qu as GlobalCopyStore,
|
30283
30279
|
ti as GlobalDataContext,
|
30284
30280
|
o2 as GlobalDataProvider,
|
@@ -30374,15 +30370,15 @@ export {
|
|
30374
30370
|
di as StatusBar,
|
30375
30371
|
XT as StatusName,
|
30376
30372
|
K2 as SurveyMiniWidget,
|
30377
|
-
|
30373
|
+
xi as TOUCH_TARGET,
|
30378
30374
|
Q as TRANSACTION_EVENTS,
|
30379
30375
|
Nn as TabContentContainer,
|
30380
30376
|
Lo as ToggleButtonListItem,
|
30381
30377
|
Rn as ToggleListItem,
|
30382
|
-
|
30378
|
+
vi as TopActions,
|
30383
30379
|
z as TrackType,
|
30384
30380
|
ca as TransactionApi,
|
30385
|
-
|
30381
|
+
Ei as TransactionDetails,
|
30386
30382
|
Vn as TransactionList,
|
30387
30383
|
Go as TransactionRow,
|
30388
30384
|
fl as TransactionRulesTab,
|
@@ -30414,7 +30410,7 @@ export {
|
|
30414
30410
|
Vf as filterRecentNotifications,
|
30415
30411
|
H as formatCurrency,
|
30416
30412
|
de as formatDate,
|
30417
|
-
|
30413
|
+
Mi as formatOrdinal,
|
30418
30414
|
Ci as formatPercentage,
|
30419
30415
|
fc as fromTimestampToMonthYear,
|
30420
30416
|
zc as getAccountBalanceDetails,
|
@@ -30459,7 +30455,7 @@ export {
|
|
30459
30455
|
yt as useSettingsStore,
|
30460
30456
|
ke as useTransactionStore,
|
30461
30457
|
wt as useTransactionsUiStore,
|
30462
|
-
|
30458
|
+
Wi as useTrendsStore,
|
30463
30459
|
ft as useUserStore,
|
30464
30460
|
$n as useWidgetContainerProvider
|
30465
30461
|
};
|