@mx-cartographer/experiences 9.1.3 → 9.1.4-alpha.al1
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 +0 -6
- package/dist/{AccountDetailsDrawer-Cq4kiiKD.mjs → AccountDetailsDrawer-Da1-Y86z.mjs} +10 -10
- package/dist/{AccountDetailsDrawer-Cq4kiiKD.mjs.map → AccountDetailsDrawer-Da1-Y86z.mjs.map} +1 -1
- package/dist/{AccountDetailsHeader-BliEZhz7.mjs → AccountDetailsHeader-CE0HYbRA.mjs} +4 -4
- package/dist/{AccountDetailsHeader-BliEZhz7.mjs.map → AccountDetailsHeader-CE0HYbRA.mjs.map} +1 -1
- package/dist/{Analytics-CkYXKvco.mjs → Analytics-BJDUP2qI.mjs} +2 -2
- package/dist/{Analytics-CkYXKvco.mjs.map → Analytics-BJDUP2qI.mjs.map} +1 -1
- package/dist/{CategorySelectorDrawer-NJsFsKP1.mjs → CategorySelectorDrawer-BM5mKt7P.mjs} +2 -2
- package/dist/{CategorySelectorDrawer-NJsFsKP1.mjs.map → CategorySelectorDrawer-BM5mKt7P.mjs.map} +1 -1
- package/dist/{Connect-BH0Pt6zc.mjs → Connect-JoOkCXSZ.mjs} +2 -2
- package/dist/{Connect-BH0Pt6zc.mjs.map → Connect-JoOkCXSZ.mjs.map} +1 -1
- package/dist/{ConnectCard-D7uxoH5Y.mjs → ConnectCard-DnZHCv3m.mjs} +2 -2
- package/dist/{ConnectCard-D7uxoH5Y.mjs.map → ConnectCard-DnZHCv3m.mjs.map} +1 -1
- package/dist/{ConnectDrawer-CW4LA3H3.mjs → ConnectDrawer-Btol_U7o.mjs} +3 -3
- package/dist/{ConnectDrawer-CW4LA3H3.mjs.map → ConnectDrawer-Btol_U7o.mjs.map} +1 -1
- package/dist/{ConnectionsDrawer-CZU9ku-k.mjs → ConnectionsDrawer-DGv6aJ6x.mjs} +3 -3
- package/dist/{ConnectionsDrawer-CZU9ku-k.mjs.map → ConnectionsDrawer-DGv6aJ6x.mjs.map} +1 -1
- package/dist/{CurrencyInput-DaGEQaLW.mjs → CurrencyInput-CxAsTGg2.mjs} +2 -2
- package/dist/{CurrencyInput-DaGEQaLW.mjs.map → CurrencyInput-CxAsTGg2.mjs.map} +1 -1
- package/dist/{EmbeddedCard-DCOQnTz-.mjs → EmbeddedCard-Dwj1CkBK.mjs} +3 -3
- package/dist/{EmbeddedCard-DCOQnTz-.mjs.map → EmbeddedCard-Dwj1CkBK.mjs.map} +1 -1
- package/dist/{Error-Dtw6yxkf.mjs → Error-BMVsnvtd.mjs} +2 -2
- package/dist/{Error-Dtw6yxkf.mjs.map → Error-BMVsnvtd.mjs.map} +1 -1
- package/dist/ErrorBoundary-C7BlHx04.mjs +27 -0
- package/dist/ErrorBoundary-C7BlHx04.mjs.map +1 -0
- package/dist/{ExportCsvAction-C-IisDcv.mjs → ExportCsvAction-B23U4xj8.mjs} +3 -3
- package/dist/{ExportCsvAction-C-IisDcv.mjs.map → ExportCsvAction-B23U4xj8.mjs.map} +1 -1
- package/dist/{GlobalAccountFilter-BhzR5Vb1.mjs → GlobalAccountFilter-1NlROwU8.mjs} +2 -2
- package/dist/{GlobalAccountFilter-BhzR5Vb1.mjs.map → GlobalAccountFilter-1NlROwU8.mjs.map} +1 -1
- package/dist/GlobalCopyApi-Tz10hezK.mjs +130 -0
- package/dist/GlobalCopyApi-Tz10hezK.mjs.map +1 -0
- package/dist/{Help-zVZdcmlk.mjs → Help-BC5OU0yX.mjs} +145 -145
- package/dist/Help-BC5OU0yX.mjs.map +1 -0
- package/dist/{LineChart-CUfiH86G.mjs → LineChart-YCIQN3ho.mjs} +2 -2
- package/dist/{LineChart-CUfiH86G.mjs.map → LineChart-YCIQN3ho.mjs.map} +1 -1
- package/dist/{ListItemAction-BqUCLj_w.mjs → ListItemAction-D-XYTjj4.mjs} +2 -2
- package/dist/{ListItemAction-BqUCLj_w.mjs.map → ListItemAction-D-XYTjj4.mjs.map} +1 -1
- package/dist/{ListItemWrapper-DRse79Iu.mjs → ListItemWrapper-XiustNlS.mjs} +2 -2
- package/dist/{ListItemWrapper-DRse79Iu.mjs.map → ListItemWrapper-XiustNlS.mjs.map} +1 -1
- package/dist/{ManageIncome-B_8i71mE.mjs → ManageIncome-CWr2Eij2.mjs} +32 -32
- package/dist/{ManageIncome-B_8i71mE.mjs.map → ManageIncome-CWr2Eij2.mjs.map} +1 -1
- package/dist/{MicroWidgetContainer-B2NnKBgW.mjs → MicroWidgetContainer-u1hE4nVI.mjs} +2 -2
- package/dist/{MicroWidgetContainer-B2NnKBgW.mjs.map → MicroWidgetContainer-u1hE4nVI.mjs.map} +1 -1
- package/dist/{MiniWidgetContainer-Bmv_WeUd.mjs → MiniWidgetContainer-DFUhI7Ok.mjs} +2 -2
- package/dist/{MiniWidgetContainer-Bmv_WeUd.mjs.map → MiniWidgetContainer-DFUhI7Ok.mjs.map} +1 -1
- package/dist/{NotificationSettings-CW7okUrk.mjs → NotificationSettings-1OxkZpn7.mjs} +33 -33
- package/dist/{NotificationSettings-CW7okUrk.mjs.map → NotificationSettings-1OxkZpn7.mjs.map} +1 -1
- package/dist/{OriginalBalanceAction-YrvxBYAl.mjs → OriginalBalanceAction-BmuKAlKl.mjs} +4 -4
- package/dist/{OriginalBalanceAction-YrvxBYAl.mjs.map → OriginalBalanceAction-BmuKAlKl.mjs.map} +1 -1
- package/dist/{RecurringSettings-hs0YUp83.mjs → RecurringSettings-CMspUOGC.mjs} +3 -3
- package/dist/{RecurringSettings-hs0YUp83.mjs.map → RecurringSettings-CMspUOGC.mjs.map} +1 -1
- package/dist/{SpendingLegend-CxvNOg3c.mjs → SpendingLegend-CqLSaAYE.mjs} +2 -2
- package/dist/{SpendingLegend-CxvNOg3c.mjs.map → SpendingLegend-CqLSaAYE.mjs.map} +1 -1
- package/dist/{TransactionDetails-DT-MQqOB.mjs → TransactionDetails-DsWYPMCj.mjs} +5 -5
- package/dist/{TransactionDetails-DT-MQqOB.mjs.map → TransactionDetails-DsWYPMCj.mjs.map} +1 -1
- package/dist/{UserStore-E5WvBXaY.mjs → UserStore-CL_kIDzt.mjs} +367 -317
- package/dist/UserStore-CL_kIDzt.mjs.map +1 -0
- package/dist/{ViewMoreMicroCard-fnwE0hqd.mjs → ViewMoreMicroCard-CJckyYda.mjs} +4 -4
- package/dist/{ViewMoreMicroCard-fnwE0hqd.mjs.map → ViewMoreMicroCard-CJckyYda.mjs.map} +1 -1
- package/dist/{WidgetContainer-CjdCY4sj.mjs → WidgetContainer-C4PFkL6g.mjs} +3 -3
- package/dist/{WidgetContainer-CjdCY4sj.mjs.map → WidgetContainer-C4PFkL6g.mjs.map} +1 -1
- package/dist/accounts/index.es.js +11 -11
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/index.es.js +10 -10
- package/dist/cashflow/index.es.js +70 -70
- package/dist/categories/index.es.js +1 -1
- package/dist/common/components/ErrorBoundary.d.ts +2 -0
- package/dist/common/components/ErrorTestButtons.d.ts +3 -0
- package/dist/common/components/index.d.ts +1 -0
- package/dist/common/context/GlobalDataProvider.d.ts +2 -1
- package/dist/common/context/hooks.d.ts +3 -0
- package/dist/common/context/index.d.ts +1 -1
- package/dist/common/index.es.js +252 -224
- package/dist/common/index.es.js.map +1 -1
- package/dist/core/api/AccountApi.d.ts +2 -2
- package/dist/core/api/AnalyticsApi.d.ts +2 -2
- package/dist/core/api/AppDataApi.d.ts +2 -2
- package/dist/core/api/BeatApi.d.ts +2 -2
- package/dist/core/api/BudgetsApi.d.ts +2 -2
- package/dist/core/api/CategoryApi.d.ts +2 -2
- package/dist/core/api/FinstrongApi.d.ts +2 -2
- package/dist/core/api/GlobalCopyApi.d.ts +2 -2
- package/dist/core/api/GoalApi.d.ts +2 -2
- package/dist/core/api/HelpApi.d.ts +2 -2
- package/dist/core/api/HoldingApi.d.ts +2 -2
- package/dist/core/api/MerchantApi.d.ts +2 -2
- package/dist/core/api/NotificationApi.d.ts +2 -2
- package/dist/core/api/RepeatingTransactionsApi.d.ts +2 -2
- package/dist/core/api/ScheduledPaymentsApi.d.ts +2 -2
- package/dist/core/api/SettingsApi.d.ts +2 -2
- package/dist/core/api/TransactionApi.d.ts +2 -2
- package/dist/core/api/UserApi.d.ts +2 -2
- package/dist/core/index.es.js +95 -95
- package/dist/core/index.es.js.map +1 -1
- package/dist/core/stores/GlobalStore.d.ts +4 -2
- package/dist/core/types/Handlers.d.ts +1 -0
- package/dist/core/types/index.d.ts +1 -1
- package/dist/core/utils/Fetch.d.ts +3 -2
- package/dist/dashboard/index.es.js +4 -4
- package/dist/debts/index.es.js +8 -8
- package/dist/finstrong/index.es.js +12 -12
- package/dist/goals/index.es.js +9 -9
- package/dist/help/index.es.js +4 -4
- package/dist/hooks-Chcgk3F2.mjs +83 -0
- package/dist/hooks-Chcgk3F2.mjs.map +1 -0
- package/dist/insights/index.es.js +4 -4
- package/dist/investments/index.es.js +4 -4
- package/dist/merchants/index.es.js +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/index.es.js +6 -6
- package/dist/notifications/index.es.js +8 -8
- package/dist/recurringtransactions/index.es.js +38 -38
- package/dist/settings/index.es.js +27 -27
- package/dist/spending/index.es.js +7 -7
- package/dist/transactions/index.es.js +11 -11
- package/dist/trends/index.es.js +12 -12
- package/dist/{useAccountDisplayName-BsiXA0qf.mjs → useAccountDisplayName-BC5i7pMh.mjs} +2 -2
- package/dist/{useAccountDisplayName-BsiXA0qf.mjs.map → useAccountDisplayName-BC5i7pMh.mjs.map} +1 -1
- package/dist/{useInsightsEnabled-D5Sdm0TJ.mjs → useInsightsEnabled-BpBk6YYj.mjs} +2 -2
- package/dist/{useInsightsEnabled-D5Sdm0TJ.mjs.map → useInsightsEnabled-BpBk6YYj.mjs.map} +1 -1
- package/dist/{useWidgetLoadTimer-B0tB-yzL.mjs → useWidgetLoadTimer-D0bW29qj.mjs} +2 -2
- package/dist/{useWidgetLoadTimer-B0tB-yzL.mjs.map → useWidgetLoadTimer-D0bW29qj.mjs.map} +1 -1
- package/package.json +1 -1
- package/dist/ErrorBoundary-CsdOcnJ9.mjs +0 -24
- package/dist/ErrorBoundary-CsdOcnJ9.mjs.map +0 -1
- package/dist/GlobalCopyApi-wcnDUzMV.mjs +0 -129
- package/dist/GlobalCopyApi-wcnDUzMV.mjs.map +0 -1
- package/dist/Help-zVZdcmlk.mjs.map +0 -1
- package/dist/UserStore-E5WvBXaY.mjs.map +0 -1
- package/dist/hooks-97sNJ_lf.mjs +0 -78
- package/dist/hooks-97sNJ_lf.mjs.map +0 -1
|
@@ -8,8 +8,8 @@ import { startOfToday as Q } from "date-fns/startOfToday";
|
|
|
8
8
|
import { subDays as ee } from "date-fns/subDays";
|
|
9
9
|
import Be from "@mui/material/Alert";
|
|
10
10
|
import Fe from "@mui/material/Snackbar";
|
|
11
|
-
import { R as
|
|
12
|
-
import { M as Jn } from "../RecurringSettings-
|
|
11
|
+
import { R as De } from "../RecurringSettings-CMspUOGC.mjs";
|
|
12
|
+
import { M as Jn } from "../RecurringSettings-CMspUOGC.mjs";
|
|
13
13
|
import { addMonths as Ue } from "date-fns/addMonths";
|
|
14
14
|
import { subMonths as Ye } from "date-fns/subMonths";
|
|
15
15
|
import { isBefore as je } from "date-fns/isBefore";
|
|
@@ -35,8 +35,8 @@ import { isSameDay as dt } from "date-fns/isSameDay";
|
|
|
35
35
|
import ut from "@mui/material/Badge";
|
|
36
36
|
import { PickersDay as mt } from "@mui/x-date-pickers/PickersDay";
|
|
37
37
|
import { I as F } from "../IconBacking-DgT8DCeh.mjs";
|
|
38
|
-
import { u as b, a as U, h as
|
|
39
|
-
import { b as E, a as
|
|
38
|
+
import { u as b, a as U, h as D, f as Y, E as Ie, g as re } from "../hooks-Chcgk3F2.mjs";
|
|
39
|
+
import { b as E, a as _, g as ye, e as pt, R as gt } from "../RecurringTransactionsUtil-CHWmqvW5.mjs";
|
|
40
40
|
import { f as I, D as M } from "../DateFormats-HudZ3Bjs.mjs";
|
|
41
41
|
import { T as W } from "../Sizes-DISGrlUg.mjs";
|
|
42
42
|
import { A as v } from "../Analytics-D-jdcL72.mjs";
|
|
@@ -52,16 +52,16 @@ import { f as L } from "../NumberFormatting--XMeeBfr.mjs";
|
|
|
52
52
|
import N from "@mui/material/Box";
|
|
53
53
|
import { u as ve } from "../useScreenSize-mWpmnh5w.mjs";
|
|
54
54
|
import { S as Le } from "../StatusBar-CPfSXe80.mjs";
|
|
55
|
-
import { d as Ct } from "../ManageIncome-
|
|
56
|
-
import { c as er, M as tr, S as nr } from "../ManageIncome-
|
|
55
|
+
import { d as Ct } from "../ManageIncome-CWr2Eij2.mjs";
|
|
56
|
+
import { c as er, M as tr, S as nr } from "../ManageIncome-CWr2Eij2.mjs";
|
|
57
57
|
import { D as ie } from "../Drawer-DsnW2o0v.mjs";
|
|
58
58
|
import { S as Ae } from "../SkeletonLoader-BaNboJjD.mjs";
|
|
59
|
-
import { u as oe } from "../useWidgetLoadTimer-
|
|
59
|
+
import { u as oe } from "../useWidgetLoadTimer-D0bW29qj.mjs";
|
|
60
60
|
import { L as ae } from "../Loader-CxeBwuPG.mjs";
|
|
61
|
-
import { W as Rt } from "../WidgetContainer-
|
|
62
|
-
import { M as Tt } from "../MiniWidgetContainer-
|
|
63
|
-
import { u as
|
|
64
|
-
import { M as
|
|
61
|
+
import { W as Rt } from "../WidgetContainer-C4PFkL6g.mjs";
|
|
62
|
+
import { M as Tt } from "../MiniWidgetContainer-DFUhI7Ok.mjs";
|
|
63
|
+
import { u as _t } from "../useDimensions-CeDR9V8N.mjs";
|
|
64
|
+
import { M as Dt } from "../MicroWidgetContainer-u1hE4nVI.mjs";
|
|
65
65
|
const j = {
|
|
66
66
|
gridRow: 1,
|
|
67
67
|
gridColumn: 1,
|
|
@@ -106,17 +106,17 @@ const j = {
|
|
|
106
106
|
}
|
|
107
107
|
), St = T(
|
|
108
108
|
({ day: t, outsideCurrentMonth: n, ...r }) => {
|
|
109
|
-
const { recurring: i } = b(), { selectedAccountGuids: o } = U(), { recurrences: s, setSelectedDay: m } =
|
|
109
|
+
const { recurring: i } = b(), { selectedAccountGuids: o } = U(), { recurrences: s, setSelectedDay: m } = D(), a = x.useMemo(
|
|
110
110
|
() => s.filter((f) => o.includes(f.accountGuid)),
|
|
111
111
|
[o, s]
|
|
112
112
|
).filter(
|
|
113
113
|
(f) => dt(f.occurredOnDate || f.expectedDate, t)
|
|
114
114
|
), l = a.some(
|
|
115
|
-
(f) => f.type !== E.Income && f.status ===
|
|
115
|
+
(f) => f.type !== E.Income && f.status === _.Upcoming
|
|
116
116
|
), u = a.some(
|
|
117
|
-
(f) => f.type !== E.Income && f.status ===
|
|
117
|
+
(f) => f.type !== E.Income && f.status === _.Missed
|
|
118
118
|
), g = a.some(
|
|
119
|
-
(f) => f.type !== E.Income && f.status ===
|
|
119
|
+
(f) => f.type !== E.Income && f.status === _.Paid
|
|
120
120
|
), y = a.some((f) => f.type === E.Income), C = (l ? 1 : 0) + (u ? 1 : 0) + (g ? 1 : 0) + (y ? 1 : 0), S = [
|
|
121
121
|
g && i.paid,
|
|
122
122
|
u && i.missed,
|
|
@@ -195,7 +195,7 @@ const j = {
|
|
|
195
195
|
[O.ES]: it
|
|
196
196
|
}[t] || be;
|
|
197
197
|
}, Ee = T(() => {
|
|
198
|
-
const t = ne(), { onEvent: n } = Y(), { recurring: r } = b(), { selectedDay: i, setDateRange: o } =
|
|
198
|
+
const t = ne(), { onEvent: n } = Y(), { recurring: r } = b(), { selectedDay: i, setDateRange: o } = D(), [s, m] = x.useState(
|
|
199
199
|
xe(/* @__PURE__ */ new Date()) * W + Re
|
|
200
200
|
), p = (u) => {
|
|
201
201
|
m(xe(u) * W + Re), o({
|
|
@@ -274,16 +274,16 @@ const j = {
|
|
|
274
274
|
if (t.type === E.Income)
|
|
275
275
|
return /* @__PURE__ */ e(ce, {});
|
|
276
276
|
switch (t.status) {
|
|
277
|
-
case
|
|
277
|
+
case _.Missed:
|
|
278
278
|
return /* @__PURE__ */ e(le, {});
|
|
279
|
-
case
|
|
279
|
+
case _.Paid:
|
|
280
280
|
return /* @__PURE__ */ e(de, {});
|
|
281
281
|
default:
|
|
282
282
|
return /* @__PURE__ */ e(se, {});
|
|
283
283
|
}
|
|
284
284
|
}, vt = (t, n) => {
|
|
285
285
|
switch (t.status) {
|
|
286
|
-
case
|
|
286
|
+
case _.Paid:
|
|
287
287
|
return t.expectedDate ? G(
|
|
288
288
|
n.paid_on,
|
|
289
289
|
I(
|
|
@@ -291,12 +291,12 @@ const j = {
|
|
|
291
291
|
M.MONTH_DAY
|
|
292
292
|
)
|
|
293
293
|
) : n.paid;
|
|
294
|
-
case
|
|
294
|
+
case _.Missed:
|
|
295
295
|
return G(
|
|
296
296
|
n.missed_on,
|
|
297
297
|
I(t.expectedDate, M.MONTH_DAY)
|
|
298
298
|
);
|
|
299
|
-
case
|
|
299
|
+
case _.Upcoming:
|
|
300
300
|
return G(
|
|
301
301
|
n.upcoming_on,
|
|
302
302
|
I(t.expectedDate, M.MONTH_DAY)
|
|
@@ -311,10 +311,10 @@ const j = {
|
|
|
311
311
|
},
|
|
312
312
|
showOrdinal: i = !1
|
|
313
313
|
}) => {
|
|
314
|
-
const { recurring: o } = b(), { detailedRepeatingTransactions: s } =
|
|
314
|
+
const { recurring: o } = b(), { detailedRepeatingTransactions: s } = D(), m = x.useMemo(
|
|
315
315
|
() => s.find((C) => C.guid === t.repeatingTransactionGuid),
|
|
316
316
|
[t, s]
|
|
317
|
-
), p = t.type === E.Income, a = t.status ===
|
|
317
|
+
), p = t.type === E.Income, a = t.status === _.Paid, l = t.status === _.Missed, u = t.status === _.Upcoming;
|
|
318
318
|
let g = o.paid?.toLowerCase();
|
|
319
319
|
return l ? g = o.missed?.toLowerCase() : u && (g = i ? ye(o, m || {}, !0) : ye(o, m || {}, !1)), //TODO: implement common/components/ListItemRow.tsx
|
|
320
320
|
/* @__PURE__ */ e(Me, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ c(bt, { onClick: () => {
|
|
@@ -445,7 +445,7 @@ const j = {
|
|
|
445
445
|
] }, `recurrence-${l}`)) })
|
|
446
446
|
] });
|
|
447
447
|
}
|
|
448
|
-
),
|
|
448
|
+
), _e = T(
|
|
449
449
|
({ expected: t, isExpense: n = !0, missed: r, paid: i, title: o, total: s, upcoming: m }) => {
|
|
450
450
|
const p = ne(), { isSmallMobile: a } = ve(), { recurring: l } = b(), u = x.useMemo(() => {
|
|
451
451
|
const g = [{ color: p.palette.success.main, percentage: `${i / t}` }];
|
|
@@ -478,7 +478,7 @@ const j = {
|
|
|
478
478
|
selectedRepeatingTransaction: r,
|
|
479
479
|
setSelectedRecurrence: i,
|
|
480
480
|
setSelectedRepeatingTransactionGuid: o
|
|
481
|
-
} =
|
|
481
|
+
} = D(), s = () => {
|
|
482
482
|
o(null), i(null);
|
|
483
483
|
};
|
|
484
484
|
return /* @__PURE__ */ e(
|
|
@@ -517,7 +517,7 @@ const j = {
|
|
|
517
517
|
upcomingExpenseTotal: Ne,
|
|
518
518
|
upcomingIncomeTotal: ke,
|
|
519
519
|
upcomingRecurrences: me
|
|
520
|
-
} =
|
|
520
|
+
} = D(), [V, Oe] = x.useState(0), We = je(a.start, /* @__PURE__ */ new Date()), Pe = (R, $e) => {
|
|
521
521
|
Oe($e);
|
|
522
522
|
}, pe = (R) => {
|
|
523
523
|
ue(R.repeatingTransactionGuid), H(R), s(v.RECURRING_TRANSACTIONS_CLICK_UPCOMING, {
|
|
@@ -569,7 +569,7 @@ const j = {
|
|
|
569
569
|
] })
|
|
570
570
|
] }),
|
|
571
571
|
/* @__PURE__ */ e(
|
|
572
|
-
|
|
572
|
+
_e,
|
|
573
573
|
{
|
|
574
574
|
expected: l,
|
|
575
575
|
missed: g,
|
|
@@ -580,7 +580,7 @@ const j = {
|
|
|
580
580
|
}
|
|
581
581
|
),
|
|
582
582
|
/* @__PURE__ */ e(
|
|
583
|
-
|
|
583
|
+
_e,
|
|
584
584
|
{
|
|
585
585
|
expected: u,
|
|
586
586
|
isExpense: !1,
|
|
@@ -650,7 +650,7 @@ const j = {
|
|
|
650
650
|
);
|
|
651
651
|
}), jn = T(
|
|
652
652
|
({ onBackClick: t, onMenuClick: n, sx: r = {} }) => {
|
|
653
|
-
const { recurring: i } = b(), { isInitialized: o, selectedAccountGuids: s } = U(), { alert: m, isDataLoaded: p, loadRepeatingTransactionData: a, setAlert: l, setDateRange: u } =
|
|
653
|
+
const { recurring: i } = b(), { isInitialized: o, selectedAccountGuids: s } = U(), { alert: m, isDataLoaded: p, loadRepeatingTransactionData: a, setAlert: l, setDateRange: u } = D(), { setFilter: g } = re(), { onEvent: y } = Y(), [C, S] = x.useState(!1);
|
|
654
654
|
return oe({
|
|
655
655
|
widgetName: "RecurringTransactionsWidget",
|
|
656
656
|
isLoaded: p
|
|
@@ -689,7 +689,7 @@ const j = {
|
|
|
689
689
|
onClose: () => S(!1),
|
|
690
690
|
shouldShowHeaderBorders: !1,
|
|
691
691
|
title: i.action_title,
|
|
692
|
-
children: /* @__PURE__ */ e(
|
|
692
|
+
children: /* @__PURE__ */ e(De, {})
|
|
693
693
|
}
|
|
694
694
|
),
|
|
695
695
|
/* @__PURE__ */ e(
|
|
@@ -714,7 +714,7 @@ const j = {
|
|
|
714
714
|
setSelectedRecurrence: s,
|
|
715
715
|
setSelectedRepeatingTransactionGuid: m,
|
|
716
716
|
upcomingRecurrences: p
|
|
717
|
-
} =
|
|
717
|
+
} = D(), a = (u) => {
|
|
718
718
|
m(u.repeatingTransactionGuid), s(u);
|
|
719
719
|
}, l = n < 750;
|
|
720
720
|
return /* @__PURE__ */ c(d, { flexDirection: l ? "column" : "row", width: "100%", children: [
|
|
@@ -737,7 +737,7 @@ const j = {
|
|
|
737
737
|
] });
|
|
738
738
|
}), Kn = T(
|
|
739
739
|
({ onPrimaryCtaClick: t, sx: n }) => {
|
|
740
|
-
const { recurring: r } = b(), { setFilter: i } = re(), { isDataLoaded: o, loadRepeatingTransactionData: s } =
|
|
740
|
+
const { recurring: r } = b(), { setFilter: i } = re(), { isDataLoaded: o, loadRepeatingTransactionData: s } = D(), { isInitialized: m, selectedAccountGuids: p } = U();
|
|
741
741
|
return oe({
|
|
742
742
|
widgetName: "RecurringTransactionsMiniWidget",
|
|
743
743
|
isLoaded: o
|
|
@@ -844,13 +844,13 @@ const j = {
|
|
|
844
844
|
},
|
|
845
845
|
`${r.categoryGuid}-${r.merchantGuid}-${i}`
|
|
846
846
|
)) }), Ot = T(() => {
|
|
847
|
-
const t = ne(), [n, { width: r }] =
|
|
847
|
+
const t = ne(), [n, { width: r }] = _t(), {
|
|
848
848
|
upcomingRecurrences: i,
|
|
849
849
|
expenseTotal: o,
|
|
850
850
|
missedExpenseTotal: s,
|
|
851
851
|
paidExpenseTotal: m,
|
|
852
852
|
upcomingExpenseTotal: p
|
|
853
|
-
} =
|
|
853
|
+
} = D(), { recurring: a } = b(), l = r <= 288, u = r >= 450, g = 32, y = i.length > 0, C = x.useMemo(() => L(o, o === 0 ? "0,0" : "0,0.00"), [o]), S = x.useMemo(() => {
|
|
854
854
|
const w = [
|
|
855
855
|
{ color: t.palette.success.main, percentage: `${m / o}` }
|
|
856
856
|
];
|
|
@@ -951,7 +951,7 @@ const j = {
|
|
|
951
951
|
repeatingTransactions: m,
|
|
952
952
|
setDateRange: p,
|
|
953
953
|
isDataLoaded: a
|
|
954
|
-
} =
|
|
954
|
+
} = D(), { setFilter: l } = re(), { recurring: u, budgets: g } = b();
|
|
955
955
|
oe({
|
|
956
956
|
widgetName: "RecurringTransactionsMicroWidget",
|
|
957
957
|
isLoaded: a
|
|
@@ -975,7 +975,7 @@ const j = {
|
|
|
975
975
|
if (!r || !a) return /* @__PURE__ */ e(ae, { height: 100 });
|
|
976
976
|
const C = !m?.length;
|
|
977
977
|
return /* @__PURE__ */ e(
|
|
978
|
-
|
|
978
|
+
Dt,
|
|
979
979
|
{
|
|
980
980
|
className: "mx-recurring-transaction-microwidget",
|
|
981
981
|
ctaLabel: C ? g.get_started_cta : u.primary_cta,
|
|
@@ -995,7 +995,7 @@ const j = {
|
|
|
995
995
|
isOpen: t,
|
|
996
996
|
onClose: n,
|
|
997
997
|
title: i.cashflow_settings,
|
|
998
|
-
children: /* @__PURE__ */ e(
|
|
998
|
+
children: /* @__PURE__ */ e(De, { defaultSelectedTab: r })
|
|
999
999
|
}
|
|
1000
1000
|
);
|
|
1001
1001
|
}
|
|
@@ -1004,7 +1004,7 @@ export {
|
|
|
1004
1004
|
er as AddRecurringTransactionDetails,
|
|
1005
1005
|
Jn as ManageExpenses,
|
|
1006
1006
|
tr as ManageIncome,
|
|
1007
|
-
|
|
1007
|
+
De as RecurringSettings,
|
|
1008
1008
|
qn as RecurringSettingsDrawer,
|
|
1009
1009
|
Vn as RecurringTransactionsMicroWidget,
|
|
1010
1010
|
Kn as RecurringTransactionsMiniWidget,
|
|
@@ -13,11 +13,11 @@ import { LocalizationProvider as ye } from "@mui/x-date-pickers/LocalizationProv
|
|
|
13
13
|
import { useTheme as L, alpha as W } from "@mui/material/styles";
|
|
14
14
|
import z from "@mui/material/Box";
|
|
15
15
|
import Z from "@mui/material/Button";
|
|
16
|
-
import
|
|
16
|
+
import A from "@mui/material/TextField";
|
|
17
17
|
import { H3 as Y, P as M, Text as x, Icon as B } from "@mxenabled/mxui";
|
|
18
|
-
import { V as xe, a as ve, N as J } from "../NotificationSettings-
|
|
19
|
-
import { A as Jt, B as Kt, I as Yt } from "../NotificationSettings-
|
|
20
|
-
import { u as k, i as G,
|
|
18
|
+
import { V as xe, a as ve, N as J } from "../NotificationSettings-1OxkZpn7.mjs";
|
|
19
|
+
import { A as Jt, B as Kt, I as Yt } from "../NotificationSettings-1OxkZpn7.mjs";
|
|
20
|
+
import { u as k, i as G, B as E, D as Ce, a as ee, l as j } from "../hooks-Chcgk3F2.mjs";
|
|
21
21
|
import { u as F } from "../useScreenSize-mWpmnh5w.mjs";
|
|
22
22
|
import { D as $ } from "../Dialog-Bvd2n8hz.mjs";
|
|
23
23
|
import { formatDistanceToNow as te } from "date-fns/formatDistanceToNow";
|
|
@@ -32,17 +32,17 @@ import Se from "@mui/material/AccordionSummary";
|
|
|
32
32
|
import { L as ie } from "../Loader-CxeBwuPG.mjs";
|
|
33
33
|
import Te from "@mui/material/List";
|
|
34
34
|
import K from "@mui/material/Divider";
|
|
35
|
-
import
|
|
36
|
-
import { b as
|
|
35
|
+
import Ie from "@mui/material/ListSubheader";
|
|
36
|
+
import { b as Ae, u as Ee } from "../CategorySelectorDrawer-BM5mKt7P.mjs";
|
|
37
37
|
import Pe from "@mui/material/ListItem";
|
|
38
38
|
import Re from "@mui/material/ListItemButton";
|
|
39
39
|
import Ne from "@mui/material/ListItemIcon";
|
|
40
40
|
import Me from "@mui/material/ListItemText";
|
|
41
41
|
import { ChevronRight as Le, ChevronLeft as Be } from "@mxenabled/mx-icons";
|
|
42
42
|
import { D as He } from "../Drawer-DsnW2o0v.mjs";
|
|
43
|
-
import { u as ne } from "../useWidgetLoadTimer-
|
|
44
|
-
import { H as Oe } from "../Help-
|
|
45
|
-
import { W as q } from "../WidgetContainer-
|
|
43
|
+
import { u as ne } from "../useWidgetLoadTimer-D0bW29qj.mjs";
|
|
44
|
+
import { H as Oe } from "../Help-BC5OU0yX.mjs";
|
|
45
|
+
import { W as q } from "../WidgetContainer-C4PFkL6g.mjs";
|
|
46
46
|
const Fe = ({ availableWidth: t, handleOnLeavClick: r }) => {
|
|
47
47
|
const i = L(), { common: o, settings: n } = k(), { isDesktop: u, isMobile: s, isSmallMobile: a, isTablet: l } = F(t), { config: b } = G(), { updateUser: _ } = E(), { user: d } = Ce(), [h, w] = m.useState({
|
|
48
48
|
first_name: d.first_name,
|
|
@@ -52,7 +52,7 @@ const Fe = ({ availableWidth: t, handleOnLeavClick: r }) => {
|
|
|
52
52
|
birthday: d.birthday,
|
|
53
53
|
postal_code: d.postal_code,
|
|
54
54
|
credit_score: d.credit_score
|
|
55
|
-
}), [v, S] = m.useState(!1), [
|
|
55
|
+
}), [v, S] = m.useState(!1), [I, T] = m.useState(!1), g = m.useRef(null), D = h.email && !d.email_is_verified && !v, U = h.phone && !d.phone_is_verified && !v;
|
|
56
56
|
m.useEffect(() => {
|
|
57
57
|
if (r) {
|
|
58
58
|
const f = (R) => {
|
|
@@ -106,7 +106,7 @@ const Fe = ({ availableWidth: t, handleOnLeavClick: r }) => {
|
|
|
106
106
|
sx: { mb: 44, pt: 32 },
|
|
107
107
|
children: [
|
|
108
108
|
/* @__PURE__ */ e(
|
|
109
|
-
|
|
109
|
+
A,
|
|
110
110
|
{
|
|
111
111
|
defaultValue: h.first_name,
|
|
112
112
|
label: n.first_name,
|
|
@@ -114,7 +114,7 @@ const Fe = ({ availableWidth: t, handleOnLeavClick: r }) => {
|
|
|
114
114
|
}
|
|
115
115
|
),
|
|
116
116
|
/* @__PURE__ */ e(
|
|
117
|
-
|
|
117
|
+
A,
|
|
118
118
|
{
|
|
119
119
|
defaultValue: h.last_name,
|
|
120
120
|
label: n.last_name,
|
|
@@ -127,7 +127,7 @@ const Fe = ({ availableWidth: t, handleOnLeavClick: r }) => {
|
|
|
127
127
|
/* @__PURE__ */ c(p, { direction: s ? "column" : "row", children: [
|
|
128
128
|
b.display_email_edit_field_in_settings && /* @__PURE__ */ c(p, { sx: { mb: D ? 20 : 44, mr: s ? 0 : 24 }, children: [
|
|
129
129
|
/* @__PURE__ */ e(
|
|
130
|
-
|
|
130
|
+
A,
|
|
131
131
|
{
|
|
132
132
|
defaultValue: h.email,
|
|
133
133
|
label: n.email_address,
|
|
@@ -138,7 +138,7 @@ const Fe = ({ availableWidth: t, handleOnLeavClick: r }) => {
|
|
|
138
138
|
] }),
|
|
139
139
|
b.display_sms_edit_field_in_settings && /* @__PURE__ */ c(p, { sx: { mb: U ? 20 : 44 }, children: [
|
|
140
140
|
/* @__PURE__ */ e(
|
|
141
|
-
|
|
141
|
+
A,
|
|
142
142
|
{
|
|
143
143
|
defaultValue: h.phone,
|
|
144
144
|
label: n.mobile_number,
|
|
@@ -180,7 +180,7 @@ const Fe = ({ availableWidth: t, handleOnLeavClick: r }) => {
|
|
|
180
180
|
}
|
|
181
181
|
) }),
|
|
182
182
|
/* @__PURE__ */ e(
|
|
183
|
-
|
|
183
|
+
A,
|
|
184
184
|
{
|
|
185
185
|
defaultValue: h.postal_code,
|
|
186
186
|
label: n.zip_code,
|
|
@@ -190,7 +190,7 @@ const Fe = ({ availableWidth: t, handleOnLeavClick: r }) => {
|
|
|
190
190
|
] }),
|
|
191
191
|
/* @__PURE__ */ c(p, { children: [
|
|
192
192
|
/* @__PURE__ */ e(
|
|
193
|
-
|
|
193
|
+
A,
|
|
194
194
|
{
|
|
195
195
|
defaultValue: h.credit_score,
|
|
196
196
|
label: n.credit_score,
|
|
@@ -216,7 +216,7 @@ const Fe = ({ availableWidth: t, handleOnLeavClick: r }) => {
|
|
|
216
216
|
$,
|
|
217
217
|
{
|
|
218
218
|
copy: { title: n.discard_changes },
|
|
219
|
-
isOpen:
|
|
219
|
+
isOpen: I,
|
|
220
220
|
onClose: ce,
|
|
221
221
|
onSecondaryAction: le,
|
|
222
222
|
primaryText: n.keep_editing,
|
|
@@ -472,7 +472,7 @@ const Ve = ({
|
|
|
472
472
|
default:
|
|
473
473
|
return "";
|
|
474
474
|
}
|
|
475
|
-
},
|
|
475
|
+
}, I = () => {
|
|
476
476
|
const g = {
|
|
477
477
|
"& .MuiDialogContent-root": {
|
|
478
478
|
width: 400,
|
|
@@ -531,7 +531,7 @@ const Ve = ({
|
|
|
531
531
|
primaryColor: t === y.Delete ? "error" : void 0,
|
|
532
532
|
primaryText: S(),
|
|
533
533
|
secondaryText: t === y.Token ? s.back : s.cancel_button,
|
|
534
|
-
sx:
|
|
534
|
+
sx: I(),
|
|
535
535
|
children: [
|
|
536
536
|
t === y.Token && /* @__PURE__ */ c(p, { spacing: 16, sx: { px: 40, textAlign: "center", width: "100%" }, children: [
|
|
537
537
|
/* @__PURE__ */ e(x, { bold: !0, truncate: !1, variant: "body1", children: a.mobile_devices_access_label }),
|
|
@@ -550,7 +550,7 @@ const Ve = ({
|
|
|
550
550
|
),
|
|
551
551
|
/* @__PURE__ */ e(x, { truncate: !1, variant: "body2", children: a.mobile_devices_access_info_2 })
|
|
552
552
|
] }),
|
|
553
|
-
t === y.Edit && /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(
|
|
553
|
+
t === y.Edit && /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(A, { onChange: (g) => w(g.target.value), value: h }) }),
|
|
554
554
|
t === y.Delete && /* @__PURE__ */ e(M, { children: a.mobile_devices_delete_info })
|
|
555
555
|
]
|
|
556
556
|
}
|
|
@@ -565,7 +565,7 @@ const Ve = ({
|
|
|
565
565
|
g ? (w(g), b({ open: !0, type: y.Token })) : n(r.mobile_devices_access_error, "error");
|
|
566
566
|
}, S = (g) => {
|
|
567
567
|
d(g), b({ open: !0, type: y.Edit });
|
|
568
|
-
},
|
|
568
|
+
}, I = (g) => {
|
|
569
569
|
d(g), b({ open: !0, type: y.Delete });
|
|
570
570
|
}, T = () => {
|
|
571
571
|
b({ open: !1, type: "" }), d(void 0);
|
|
@@ -587,14 +587,14 @@ const Ve = ({
|
|
|
587
587
|
We,
|
|
588
588
|
{
|
|
589
589
|
devices: u,
|
|
590
|
-
onClickDeviceDelete:
|
|
590
|
+
onClickDeviceDelete: I,
|
|
591
591
|
onClickDeviceEdit: S
|
|
592
592
|
}
|
|
593
593
|
) : /* @__PURE__ */ e(
|
|
594
594
|
Ve,
|
|
595
595
|
{
|
|
596
596
|
devices: u,
|
|
597
|
-
onClickDeviceDelete:
|
|
597
|
+
onClickDeviceDelete: I,
|
|
598
598
|
onClickDeviceEdit: S
|
|
599
599
|
}
|
|
600
600
|
),
|
|
@@ -642,7 +642,7 @@ const Ve = ({
|
|
|
642
642
|
}
|
|
643
643
|
),
|
|
644
644
|
/* @__PURE__ */ e(
|
|
645
|
-
|
|
645
|
+
Ae,
|
|
646
646
|
{
|
|
647
647
|
initialSelected: i?.category_guid ? i.category_guid : void 0,
|
|
648
648
|
onClose: s,
|
|
@@ -682,7 +682,7 @@ const Ve = ({
|
|
|
682
682
|
path: { fill: n.palette.secondary.darker }
|
|
683
683
|
},
|
|
684
684
|
children: /* @__PURE__ */ e(
|
|
685
|
-
|
|
685
|
+
A,
|
|
686
686
|
{
|
|
687
687
|
onChange: (h) => b(h.target.value),
|
|
688
688
|
sx: { width: 352 },
|
|
@@ -726,7 +726,7 @@ const Ve = ({
|
|
|
726
726
|
primaryText: o.delete_button,
|
|
727
727
|
title: n.edit_rule,
|
|
728
728
|
children: [
|
|
729
|
-
/* @__PURE__ */ e(
|
|
729
|
+
/* @__PURE__ */ e(Ie, { children: /* @__PURE__ */ e(x, { bold: !0, variant: "caption", children: n.details }) }),
|
|
730
730
|
/* @__PURE__ */ e(Je, {}),
|
|
731
731
|
/* @__PURE__ */ e(K, { sx: { ml: 24 } }),
|
|
732
732
|
/* @__PURE__ */ e($e, {}),
|
|
@@ -830,7 +830,7 @@ const Wt = C(({ onBackClick: t, onMenuClick: r, sx: i }) => {
|
|
|
830
830
|
{ enabled: h, index: 2, label: o?.notifications_label },
|
|
831
831
|
{ enabled: w, index: 3, label: o?.transaction_rules_label },
|
|
832
832
|
{ enabled: v, index: 4, label: o?.help_label }
|
|
833
|
-
],
|
|
833
|
+
], I = S.find((D) => D.enabled), [T, g] = m.useState(I ? I.index : -1);
|
|
834
834
|
return !n || !u ? /* @__PURE__ */ e(ie, {}) : /* @__PURE__ */ e(
|
|
835
835
|
q,
|
|
836
836
|
{
|
|
@@ -8,19 +8,19 @@ import y from "@mui/material/Stack";
|
|
|
8
8
|
import $ from "@mui/material/Tab";
|
|
9
9
|
import rt from "@mui/material/Tabs";
|
|
10
10
|
import { useTheme as _t } from "@mui/material/styles";
|
|
11
|
-
import { g as st, a as lt, S as B, b as q } from "../SpendingLegend-
|
|
11
|
+
import { g as st, a as lt, S as B, b as q } from "../SpendingLegend-CqLSaAYE.mjs";
|
|
12
12
|
import { Text as T, Icon as bt } from "@mxenabled/mxui";
|
|
13
13
|
import { f as k } from "../NumberFormatting--XMeeBfr.mjs";
|
|
14
|
-
import { u as A, l as R, c as ct, a as P, i as H, g as dt, f as yt } from "../hooks-
|
|
15
|
-
import { u as gt } from "../useWidgetLoadTimer-
|
|
14
|
+
import { u as A, l as R, c as ct, a as P, i as H, g as dt, f as yt } from "../hooks-Chcgk3F2.mjs";
|
|
15
|
+
import { u as gt } from "../useWidgetLoadTimer-D0bW29qj.mjs";
|
|
16
16
|
import { L as pt } from "../Loader-CxeBwuPG.mjs";
|
|
17
|
-
import { M as Ct } from "../MiniWidgetContainer-
|
|
17
|
+
import { M as Ct } from "../MiniWidgetContainer-DFUhI7Ok.mjs";
|
|
18
18
|
import { startOfToday as J } from "date-fns/startOfToday";
|
|
19
19
|
import St from "@mui/material/Button";
|
|
20
20
|
import { useTheme as Tt } from "@mui/material";
|
|
21
21
|
import { e as Mt } from "../TransactionUtils-BphBJBbU.mjs";
|
|
22
|
-
import { T as Dt } from "../EmbeddedCard-
|
|
23
|
-
import { T as xt } from "../TransactionDetails-
|
|
22
|
+
import { T as Dt } from "../EmbeddedCard-Dwj1CkBK.mjs";
|
|
23
|
+
import { T as xt } from "../TransactionDetails-DsWYPMCj.mjs";
|
|
24
24
|
import vt from "@mui/material/Collapse";
|
|
25
25
|
import wt from "@mui/material/Divider";
|
|
26
26
|
import Q from "@mui/material/List";
|
|
@@ -31,7 +31,7 @@ import { D as tt } from "../Drawer-DsnW2o0v.mjs";
|
|
|
31
31
|
import { C as w } from "../Category-DEKZGLYe.mjs";
|
|
32
32
|
import { parseISO as et } from "date-fns/parseISO";
|
|
33
33
|
import { A as nt } from "../Analytics-D-jdcL72.mjs";
|
|
34
|
-
import { W as It } from "../WidgetContainer-
|
|
34
|
+
import { W as It } from "../WidgetContainer-C4PFkL6g.mjs";
|
|
35
35
|
const G = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ p(y, { direction: "column", children: [
|
|
36
36
|
/* @__PURE__ */ t(T, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: d }),
|
|
37
37
|
/* @__PURE__ */ t(T, { variant: "caption", children: k(n, o === "mini" ? "0,0" : "0,0.00") })
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { C as Be, D as He, M as Pe, a as We, T as $e } from "../TransactionDetails-
|
|
2
|
-
import { B as xa, b as Aa } from "../TransactionDetails-
|
|
3
|
-
import { u as B, T as Ge } from "../EmbeddedCard-
|
|
4
|
-
import { a as Sa } from "../EmbeddedCard-
|
|
5
|
-
import { E as va } from "../ExportCsvAction-
|
|
1
|
+
import { C as Be, D as He, M as Pe, a as We, T as $e } from "../TransactionDetails-DsWYPMCj.mjs";
|
|
2
|
+
import { B as xa, b as Aa } from "../TransactionDetails-DsWYPMCj.mjs";
|
|
3
|
+
import { u as B, T as Ge } from "../EmbeddedCard-Dwj1CkBK.mjs";
|
|
4
|
+
import { a as Sa } from "../EmbeddedCard-Dwj1CkBK.mjs";
|
|
5
|
+
import { E as va } from "../ExportCsvAction-B23U4xj8.mjs";
|
|
6
6
|
import { jsxs as m, jsx as e } from "react/jsx-runtime";
|
|
7
7
|
import u from "react";
|
|
8
8
|
import { observer as D } from "mobx-react-lite";
|
|
9
9
|
import Ve from "@mui/material/Paper";
|
|
10
10
|
import { DataGridPro as Fe } from "@mui/x-data-grid-pro";
|
|
11
|
-
import { g as H, u as v, f as ne, a as K, c as oe, l as Ue, i as Ke,
|
|
11
|
+
import { g as H, u as v, f as ne, a as K, c as oe, l as Ue, i as Ke, D as ze } from "../hooks-Chcgk3F2.mjs";
|
|
12
12
|
import { L as z } from "../Loader-CxeBwuPG.mjs";
|
|
13
13
|
import { Text as y, Icon as R, MerchantLogo as qe, TextField as Z, P as Ye } from "@mxenabled/mxui";
|
|
14
14
|
import w from "@mui/material/Stack";
|
|
@@ -24,20 +24,20 @@ import { getUnixTime as tt } from "date-fns/getUnixTime";
|
|
|
24
24
|
import { startOfMonth as at } from "date-fns/startOfMonth";
|
|
25
25
|
import { startOfToday as F } from "date-fns/startOfToday";
|
|
26
26
|
import { b as U } from "../Localization-DnoVyBNK.mjs";
|
|
27
|
-
import { C as nt } from "../ConnectDrawer-
|
|
27
|
+
import { C as nt } from "../ConnectDrawer-Btol_U7o.mjs";
|
|
28
28
|
import ot from "@mui/material/Divider";
|
|
29
29
|
import rt from "@mui/material/MenuItem";
|
|
30
30
|
import it from "@mui/material/RadioGroup";
|
|
31
31
|
import { ExpandMore as st } from "@mxenabled/mx-icons";
|
|
32
|
-
import { C as ct } from "../CurrencyInput-
|
|
32
|
+
import { C as ct } from "../CurrencyInput-CxAsTGg2.mjs";
|
|
33
33
|
import { S as ee } from "../SelectionBox-B4xELRgp.mjs";
|
|
34
34
|
import { D as se } from "../Dialog-Bvd2n8hz.mjs";
|
|
35
|
-
import { b as lt, u as dt } from "../CategorySelectorDrawer-
|
|
35
|
+
import { b as lt, u as dt } from "../CategorySelectorDrawer-BM5mKt7P.mjs";
|
|
36
36
|
import { u as ut } from "../useAriaLive-MkYebyUR.mjs";
|
|
37
37
|
import { S as mt } from "../SkeletonLoader-BaNboJjD.mjs";
|
|
38
38
|
import { u as _t } from "../useScreenSize-mWpmnh5w.mjs";
|
|
39
|
-
import { u as pt } from "../useWidgetLoadTimer-
|
|
40
|
-
import { W as gt } from "../WidgetContainer-
|
|
39
|
+
import { u as pt } from "../useWidgetLoadTimer-D0bW29qj.mjs";
|
|
40
|
+
import { W as gt } from "../WidgetContainer-C4PFkL6g.mjs";
|
|
41
41
|
import { S as ht } from "../SearchBox-Cpgu_gdO.mjs";
|
|
42
42
|
import { D as te } from "../Drawer-DsnW2o0v.mjs";
|
|
43
43
|
const ft = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2", children: [
|
package/dist/trends/index.es.js
CHANGED
|
@@ -18,7 +18,7 @@ import ot from "@mui/material/CardContent";
|
|
|
18
18
|
import Ne from "@mui/material/Divider";
|
|
19
19
|
import Fe from "@mui/material/Grid";
|
|
20
20
|
import { b as nt } from "../Localization-DnoVyBNK.mjs";
|
|
21
|
-
import { u as R, l as q, f as $, a as fe, g as we, c as De,
|
|
21
|
+
import { u as R, l as q, f as $, a as fe, g as we, c as De, C as ye, E as st, e as Be, i as rt } from "../hooks-Chcgk3F2.mjs";
|
|
22
22
|
import { C as xe } from "../CurrencyText-CCbE6MmF.mjs";
|
|
23
23
|
import { a as Re, C as $e, b as Nt } from "../Category-DEKZGLYe.mjs";
|
|
24
24
|
import { f as X, D as G } from "../DateFormats-HudZ3Bjs.mjs";
|
|
@@ -29,22 +29,22 @@ import Ft from "@mui/material/ToggleButton";
|
|
|
29
29
|
import $t from "@mui/material/ToggleButtonGroup";
|
|
30
30
|
import { parseISO as lt } from "date-fns/parseISO";
|
|
31
31
|
import { H as ke } from "../HeaderCell-P8w6CmfO.mjs";
|
|
32
|
-
import { T as W, a as Kt } from "../ViewMoreMicroCard-
|
|
32
|
+
import { T as W, a as Kt } from "../ViewMoreMicroCard-CJckyYda.mjs";
|
|
33
33
|
import { useGridApiContext as Yt, useGridRootProps as jt, DataGridPro as Ut } from "@mui/x-data-grid-pro";
|
|
34
34
|
import Xt from "@mui/material/Badge";
|
|
35
35
|
import Zt from "@mui/material/IconButton";
|
|
36
36
|
import { A as w } from "../Analytics-D-jdcL72.mjs";
|
|
37
|
-
import { T as ct } from "../EmbeddedCard-
|
|
38
|
-
import { T as dt } from "../TransactionDetails-
|
|
37
|
+
import { T as ct } from "../EmbeddedCard-Dwj1CkBK.mjs";
|
|
38
|
+
import { T as dt } from "../TransactionDetails-DsWYPMCj.mjs";
|
|
39
39
|
import { D as Pe } from "../Drawer-DsnW2o0v.mjs";
|
|
40
|
-
import { u as Ie } from "../useWidgetLoadTimer-
|
|
40
|
+
import { u as Ie } from "../useWidgetLoadTimer-D0bW29qj.mjs";
|
|
41
41
|
import { L as Le } from "../Loader-CxeBwuPG.mjs";
|
|
42
|
-
import { W as ut } from "../WidgetContainer-
|
|
43
|
-
import { L as Ve } from "../LineChart-
|
|
44
|
-
import { M as Qt } from "../MiniWidgetContainer-
|
|
42
|
+
import { W as ut } from "../WidgetContainer-C4PFkL6g.mjs";
|
|
43
|
+
import { L as Ve } from "../LineChart-YCIQN3ho.mjs";
|
|
44
|
+
import { M as Qt } from "../MiniWidgetContainer-DFUhI7Ok.mjs";
|
|
45
45
|
import { subMonths as qt } from "date-fns";
|
|
46
46
|
import { TrendingUp as Jt, TrendingDown as eo, MultilineChart as to, ExpandLess as oo, ExpandMore as no, ChevronRight as so, ArrowBack as ro } from "@mxenabled/mx-icons";
|
|
47
|
-
import { M as ao } from "../MicroWidgetContainer-
|
|
47
|
+
import { M as ao } from "../MicroWidgetContainer-u1hE4nVI.mjs";
|
|
48
48
|
import io from "@mui/material/Collapse";
|
|
49
49
|
import We from "@mui/material/List";
|
|
50
50
|
import mt from "@mui/material/ListItem";
|
|
@@ -55,10 +55,10 @@ import { g as Oe } from "../TransactionUtils-BphBJBbU.mjs";
|
|
|
55
55
|
import { L as uo } from "../ListItemRow-kH1rn8Xu.mjs";
|
|
56
56
|
import { Stack as mo } from "@mui/material";
|
|
57
57
|
import ho from "@mui/material/ListItemAvatar";
|
|
58
|
-
import { E as go } from "../ExportCsvAction-
|
|
59
|
-
import { u as po } from "../useInsightsEnabled-
|
|
58
|
+
import { E as go } from "../ExportCsvAction-B23U4xj8.mjs";
|
|
59
|
+
import { u as po } from "../useInsightsEnabled-BpBk6YYj.mjs";
|
|
60
60
|
import { E as fo } from "../EmptyState-CJUDc3kD.mjs";
|
|
61
|
-
import { C as yo } from "../ConnectDrawer-
|
|
61
|
+
import { C as yo } from "../ConnectDrawer-Btol_U7o.mjs";
|
|
62
62
|
const gt = ({ categoryGuid: t, topLevelCategoryGuid: n }) => {
|
|
63
63
|
const { categories: s } = R(), { getCategoryName: o } = q(), r = o(t);
|
|
64
64
|
return /* @__PURE__ */ C(S, { alignItems: "center", direction: "column", gap: "8", justifyContent: "center", mb: 4, children: [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import t from "react";
|
|
2
|
-
import { i } from "./hooks-
|
|
2
|
+
import { i } from "./hooks-Chcgk3F2.mjs";
|
|
3
3
|
function o(e, n) {
|
|
4
4
|
if (n?.allowNickname === !0) {
|
|
5
5
|
const m = e.nickname?.trim();
|
|
@@ -21,4 +21,4 @@ export {
|
|
|
21
21
|
o as g,
|
|
22
22
|
f as u
|
|
23
23
|
};
|
|
24
|
-
//# sourceMappingURL=useAccountDisplayName-
|
|
24
|
+
//# sourceMappingURL=useAccountDisplayName-BC5i7pMh.mjs.map
|
package/dist/{useAccountDisplayName-BsiXA0qf.mjs.map → useAccountDisplayName-BC5i7pMh.mjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAccountDisplayName-
|
|
1
|
+
{"version":3,"file":"useAccountDisplayName-BC5i7pMh.mjs","sources":["../src/common/utils/AccountDisplayName.ts","../src/common/hooks/useAccountDisplayName.tsx"],"sourcesContent":["import type { Account } from '../../core/types/Account'\n\nexport interface AccountDisplayNameOptions {\n allowNickname?: boolean\n}\n\nexport function getAccountDisplayName(\n account: Account,\n options?: AccountDisplayNameOptions,\n): string {\n if (options?.allowNickname === true) {\n const nickName = account.nickname?.trim()\n if (nickName) return nickName\n }\n\n const name = account.name?.trim()\n if (name) return name\n\n const feedName = account.feed_name?.trim()\n return feedName || ''\n}\n\nexport default getAccountDisplayName\n","import React from 'react'\nimport { useAppConfig } from '../'\nimport type { Account } from '../../core'\nimport getAccountDisplayName from '../utils/AccountDisplayName'\n\nexport const useAccountDisplayName = (account: Account) => {\n const { config } = useAppConfig()\n return React.useMemo(\n () =>\n getAccountDisplayName(account, {\n allowNickname: config?.show_account_nicknames_in_master,\n }),\n [account, config?.show_account_nicknames_in_master],\n )\n}\n\nexport default useAccountDisplayName\n"],"names":["getAccountDisplayName","account","options","nickName","name","useAccountDisplayName","config","useAppConfig","React"],"mappings":";;AAMO,SAASA,EACdC,GACAC,GACQ;AACR,MAAIA,GAAS,kBAAkB,IAAM;AACnC,UAAMC,IAAWF,EAAQ,UAAU,KAAA;AACnC,QAAIE,EAAU,QAAOA;AAAA,EACvB;AAEA,QAAMC,IAAOH,EAAQ,MAAM,KAAA;AAC3B,SAAIG,KAEaH,EAAQ,WAAW,KAAA,KACjB;AACrB;ACfO,MAAMI,IAAwB,CAACJ,MAAqB;AACzD,QAAM,EAAE,QAAAK,EAAA,IAAWC,EAAA;AACnB,SAAOC,EAAM;AAAA,IACX,MACER,EAAsBC,GAAS;AAAA,MAC7B,eAAeK,GAAQ;AAAA,IAAA,CACxB;AAAA,IACH,CAACL,GAASK,GAAQ,gCAAgC;AAAA,EAAA;AAEtD;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState as n, useEffect as a } from "react";
|
|
2
|
-
import { e as o } from "./hooks-
|
|
2
|
+
import { e as o } from "./hooks-Chcgk3F2.mjs";
|
|
3
3
|
const f = () => {
|
|
4
4
|
const { isInitialized: e, appDataStore: t } = o(), [s, i] = n(!1);
|
|
5
5
|
return a(() => {
|
|
@@ -9,4 +9,4 @@ const f = () => {
|
|
|
9
9
|
export {
|
|
10
10
|
f as u
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=useInsightsEnabled-
|
|
12
|
+
//# sourceMappingURL=useInsightsEnabled-BpBk6YYj.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useInsightsEnabled-
|
|
1
|
+
{"version":3,"file":"useInsightsEnabled-BpBk6YYj.mjs","sources":["../src/common/hooks/useInsightsEnabled.tsx"],"sourcesContent":["import { useState, useEffect } from 'react'\nimport { useGlobalStore } from '../context'\n\nexport const useInsightsEnabled = () => {\n const { isInitialized, appDataStore } = useGlobalStore()\n const [insightsEnabled, setInsightsEnabled] = useState(false)\n\n useEffect(() => {\n if (isInitialized && appDataStore.clientInsightProfile?.is_enabled) {\n setInsightsEnabled(true)\n }\n }, [isInitialized, appDataStore.clientInsightProfile])\n\n return insightsEnabled\n}\n"],"names":["useInsightsEnabled","isInitialized","appDataStore","useGlobalStore","insightsEnabled","setInsightsEnabled","useState","useEffect"],"mappings":";;AAGO,MAAMA,IAAqB,MAAM;AACtC,QAAM,EAAE,eAAAC,GAAe,cAAAC,EAAA,IAAiBC,EAAA,GAClC,CAACC,GAAiBC,CAAkB,IAAIC,EAAS,EAAK;AAE5D,SAAAC,EAAU,MAAM;AACd,IAAIN,KAAiBC,EAAa,sBAAsB,cACtDG,EAAmB,EAAI;AAAA,EAE3B,GAAG,CAACJ,GAAeC,EAAa,oBAAoB,CAAC,GAE9CE;AACT;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useRef as r, useEffect as c } from "react";
|
|
2
|
-
import { f as l } from "./hooks-
|
|
2
|
+
import { f as l } from "./hooks-Chcgk3F2.mjs";
|
|
3
3
|
let n = !0;
|
|
4
4
|
const d = ({ widgetName: i, isLoaded: u = !0 }) => {
|
|
5
5
|
const { onEvent: o } = l(), t = r(null), s = r(!1), e = r(!1);
|
|
@@ -17,4 +17,4 @@ const d = ({ widgetName: i, isLoaded: u = !0 }) => {
|
|
|
17
17
|
export {
|
|
18
18
|
d as u
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=useWidgetLoadTimer-
|
|
20
|
+
//# sourceMappingURL=useWidgetLoadTimer-D0bW29qj.mjs.map
|