@mx-cartographer/experiences 7.2.14-alpha.sms1 → 7.2.15-alpha-ram1-finstromg-testing
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 +6 -2
- package/dist/{Account-B-CuHOYf.mjs → Account-01wOyrH1.mjs} +1 -1
- package/dist/{AccountDetailsContent-DXVLAjNQ.mjs → AccountDetailsContent-C_ZRryuO.mjs} +10 -10
- package/dist/{AccountDetailsHeader-vcy67tuH.mjs → AccountDetailsHeader-D5h5tdeG.mjs} +8 -8
- package/dist/{AccountFields-cUP-9Hm6.mjs → AccountFields-CPkGZ3SD.mjs} +5 -5
- package/dist/{AccountListItem-DChcf3SN.mjs → AccountListItem-D4uG9yC-.mjs} +4 -4
- package/dist/{AccountStore-D6KiXA1B.mjs → AccountStore-DYwH7yC9.mjs} +40 -29
- package/dist/{Accounts-IeEtQjzA.mjs → Accounts-D7QljYas.mjs} +1 -1
- package/dist/{BudgetUtil-B2ZXyw-g.mjs → BudgetUtil-wjoNuj7B.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-DUe4lH5-.mjs → CategorySelectorDrawer-ZO9N26Kx.mjs} +3 -3
- package/dist/{CategoryStore-BCcpI3oJ.mjs → CategoryStore-C1IfDPCE.mjs} +1 -1
- package/dist/{CategoryUtil-BR3H5i6n.mjs → CategoryUtil-DUM8NuGO.mjs} +1 -1
- package/dist/{ConnectDrawer-DaFRU5st.mjs → ConnectDrawer-CuUj16NH.mjs} +3 -2
- package/dist/{ConnectionsDrawer-DHJ7qdWL.mjs → ConnectionsDrawer-Bz4uwdFE.mjs} +14 -13
- package/dist/{CurrencyInput-DUsQbkXb.mjs → CurrencyInput-xH-hqry9.mjs} +1 -1
- package/dist/{DateUtil-BcuH7ErC.mjs → DateUtil-CBdcsyuk.mjs} +3 -3
- package/dist/{DebtsStore-z3VARSO6.mjs → DebtsStore-Bu8rRRSL.mjs} +1 -1
- package/dist/{Dialog-CWW597AF.mjs → Dialog-BPTr3qHE.mjs} +2 -2
- package/dist/Drawer-BEtCk82g.mjs +163 -0
- package/dist/{EmptyState-DA_lfRBv.mjs → EmptyState-DoxNUae-.mjs} +24 -22
- package/dist/{ExportCsvAction-sX8Rg4Ov.mjs → ExportCsvAction-DlGZfm4y.mjs} +3 -3
- package/dist/FinstrongStore-BbnA6Crl.mjs +434 -0
- package/dist/{GoalStore-TD0BfzWX.mjs → GoalStore-Dcnj5pii.mjs} +3 -3
- package/dist/{Help-B6dIcujh.mjs → Help-BnPXM_N2.mjs} +2 -2
- package/dist/{LineChart-D4GI7nVh.mjs → LineChart-Ct9DNmhS.mjs} +209 -181
- package/dist/{ListItemAction-DHa3KJPs.mjs → ListItemAction-uobBrm_a.mjs} +10 -10
- package/dist/{ManageIncome-B5zuYyxg.mjs → ManageIncome-n6qSYGHO.mjs} +152 -149
- package/dist/{MicroWidgetContainer-DpeqN9n3.mjs → MicroWidgetContainer-DEiRnYVa.mjs} +1 -1
- package/dist/{MiniWidgetContainer-D0gfmbaF.mjs → MiniWidgetContainer-CmXpTylX.mjs} +1 -1
- package/dist/{NetWorthStore-B_1oulrt.mjs → NetWorthStore-CpL_kqvx.mjs} +2 -2
- package/dist/{NotificationSettings-DqrkNMod.mjs → NotificationSettings-BKKuULAd.mjs} +5 -5
- package/dist/{OriginalBalanceAction-CWuVvRq9.mjs → OriginalBalanceAction-CCmnsd7y.mjs} +3 -3
- package/dist/{RecurringSettings-CMwUC_rw.mjs → RecurringSettings-BwnDPthJ.mjs} +4 -4
- package/dist/{RecurringTransactions-ej39mgA6.mjs → RecurringTransactions-CngsRZ3K.mjs} +45 -44
- package/dist/{RecurringTransactionsStore-DrzS1LmF.mjs → RecurringTransactionsStore-C4RVULF8.mjs} +1 -1
- package/dist/{SpendingData-D5vsfYKo.mjs → SpendingData-BuJ03S9d.mjs} +16 -16
- package/dist/SpendingLegend-CW8mIzqd.mjs +196 -0
- package/dist/{TransactionDetails-CuqEbcYg.mjs → TransactionDetails-CaJruWq3.mjs} +12 -9
- package/dist/{TransactionStore-B4FCabkO.mjs → TransactionStore-DvOEbOzL.mjs} +34 -37
- package/dist/{TrendsStore-DCYbpXPO.mjs → TrendsStore-BVNxGsE4.mjs} +14 -14
- package/dist/{User-BQUxBeZV.mjs → User-wXzDI4M8.mjs} +2 -2
- package/dist/{ViewMoreMicroCard-iInbzbw0.mjs → ViewMoreMicroCard-SCn2wt4i.mjs} +571 -545
- package/dist/{WidgetContainer-C88Ecu2W.mjs → WidgetContainer-6dsjtOVg.mjs} +4 -4
- package/dist/accounts/components/AccountsListCompact.d.ts +10 -0
- package/dist/accounts/index.es.js +14 -14
- package/dist/accounts/stores/AccountStore.d.ts +2 -0
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/index.es.js +13 -13
- package/dist/cashflow/index.es.js +45 -45
- package/dist/categories/index.es.js +2 -2
- package/dist/common/components/Select.d.ts +4 -2
- package/dist/common/components/charts/LineChart.d.ts +8 -2
- package/dist/common/components/charts/linechart/CustomMark.d.ts +4 -0
- package/dist/common/components/drawer/Drawer.d.ts +3 -0
- package/dist/common/components/drawer/Footer.d.ts +17 -0
- package/dist/common/index.es.js +34 -34
- package/dist/common/types/Finstrong.d.ts +50 -0
- package/dist/common/types/Widgets.d.ts +1 -0
- package/dist/common/types/index.d.ts +1 -1
- package/dist/common/types/localization/FinstrongCopy.d.ts +58 -1
- package/dist/dashboard/index.es.js +2 -2
- package/dist/debts/index.es.js +11 -11
- package/dist/{exportTransactionsToCSV-7bVS7KXf.mjs → exportTransactionsToCSV-hrNpJ77n.mjs} +2 -2
- package/dist/finstrong/FinstrongWidget.d.ts +1 -1
- package/dist/finstrong/api/FinstrongApi.d.ts +5 -0
- package/dist/finstrong/components/ConnectMoreAccountsCard.d.ts +3 -1
- package/dist/finstrong/components/CreditScore/CreditScoreContent.d.ts +4 -0
- package/dist/finstrong/components/CreditScore/CreditScoreHeader.d.ts +4 -0
- package/dist/finstrong/components/HaveManageableDebt/DebtPaymentTabContent.d.ts +3 -0
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtComponent.d.ts +3 -0
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtProgressBar.d.ts +4 -0
- package/dist/finstrong/components/HaveManageableDebt/IncomeTabContent.d.ts +3 -0
- package/dist/finstrong/components/KeyIndicatorsBorrowTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsDrawer.d.ts +4 -1
- package/dist/finstrong/components/KeyIndicatorsSaveTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsSpendTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsTabItem.d.ts +4 -3
- package/dist/finstrong/components/KeyIndicatorsTabItemDrawer.d.ts +10 -0
- package/dist/finstrong/components/KeyIndicatorsTabsWidget.d.ts +2 -2
- package/dist/finstrong/components/MaintainingEmergencySavings/EstimatedContributionCalculator.d.ts +6 -0
- package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsContent.d.ts +4 -0
- package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsSticky.d.ts +4 -0
- package/dist/finstrong/components/ProgressBar.d.ts +15 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/AvailableTabContent.d.ts +3 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnDrawerContent.d.ts +3 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnProgressBar.d.ts +4 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SpendingTabContent.d.ts +3 -0
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeComponent.d.ts +3 -0
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeProgressBar.d.ts +4 -0
- package/dist/finstrong/components/StatusChip.d.ts +5 -0
- package/dist/finstrong/components/onboarding/Onboarding.d.ts +2 -0
- package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.d.ts +17 -0
- package/dist/finstrong/components/onboarding/OnboardingBirthday.d.ts +8 -0
- package/dist/finstrong/components/onboarding/OnboardingCreditScore.d.ts +8 -0
- package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.d.ts +14 -0
- package/dist/finstrong/components/onboarding/OnboardingStepsHeader.d.ts +8 -0
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeDrawerComponent.d.ts +4 -0
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeStickyComponent.d.ts +4 -0
- package/dist/finstrong/components/shared/Accounts.d.ts +8 -0
- package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +25 -0
- package/dist/finstrong/components/shared/DoubleBarChart.d.ts +28 -0
- package/dist/finstrong/components/shared/LineGraph.d.ts +7 -0
- package/dist/finstrong/components/shared/TotalCard.d.ts +8 -0
- package/dist/finstrong/components/shared/TransactionList.d.ts +15 -0
- package/dist/finstrong/components/shared/Transactions.d.ts +11 -0
- package/dist/finstrong/constants/index.d.ts +8 -0
- package/dist/finstrong/index.es.js +3179 -1054
- package/dist/finstrong/stores/FinstrongStore.d.ts +10 -1
- package/dist/finstrong/util/finstrongUtils.d.ts +58 -1
- package/dist/goals/index.es.js +15 -15
- package/dist/help/index.es.js +3 -3
- package/dist/{hooks-D6XlXHf4.mjs → hooks-C41HAxM5.mjs} +3 -3
- package/dist/investments/index.es.js +5 -5
- package/dist/merchants/index.es.js +1 -1
- package/dist/microinsights/beaticons/BeatIcon.d.ts +2 -0
- package/dist/microinsights/cards/MicroInsightCard.d.ts +7 -0
- package/dist/microinsights/carousel/CarouselControls.d.ts +2 -0
- package/dist/microinsights/carousel/CarouselHeader.d.ts +2 -1
- package/dist/microinsights/index.d.ts +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/microinsights/interfaces.d.ts +4 -0
- package/dist/networth/index.es.js +35 -35
- package/dist/notifications/index.es.js +4 -4
- package/dist/recurringtransactions/index.es.js +13 -13
- package/dist/settings/index.es.js +8 -8
- package/dist/spending/index.es.js +238 -415
- package/dist/transactions/index.es.js +15 -15
- package/dist/trends/index.es.js +96 -96
- package/dist/{useAccountDisplayName-BcRqfar8.mjs → useAccountDisplayName-CMMlIOXF.mjs} +2 -2
- package/dist/{useInsightsEnabled-DBpwEq10.mjs → useInsightsEnabled-CNjP5cfR.mjs} +1 -1
- package/package.json +1 -1
- package/dist/Drawer-kEE73B87.mjs +0 -113
- package/dist/FinstrongStore-F2c607dj.mjs +0 -101
- package/dist/finstrong/utils/Finstrong.d.ts +0 -6
|
@@ -13,27 +13,27 @@ import { isBefore as Y } from "date-fns/isBefore";
|
|
|
13
13
|
import { startOfMonth as R } from "date-fns/startOfMonth";
|
|
14
14
|
import { startOfToday as b } from "date-fns/startOfToday";
|
|
15
15
|
import { subDays as F } from "date-fns/subDays";
|
|
16
|
-
import { O as n, a as G, T as w } from "./User-
|
|
16
|
+
import { O as n, a as G, T as w } from "./User-wXzDI4M8.mjs";
|
|
17
17
|
import { T as p } from "./TransactionApi-B3Tksf7L.mjs";
|
|
18
18
|
import { b as W } from "./Category-CevNQ03n.mjs";
|
|
19
|
-
import { f as z } from "./exportTransactionsToCSV-
|
|
19
|
+
import { f as z } from "./exportTransactionsToCSV-hrNpJ77n.mjs";
|
|
20
20
|
import { format as k } from "date-fns/format";
|
|
21
|
-
import { f as g,
|
|
21
|
+
import { f as g, a as O, O as $ } from "./Dialog-BPTr3qHE.mjs";
|
|
22
22
|
import { endOfMonth as X } from "date-fns/endOfMonth";
|
|
23
23
|
import { B as f } from "./BeatApi-DhJpgCLz.mjs";
|
|
24
24
|
const j = ({
|
|
25
|
-
checked:
|
|
25
|
+
checked: S = !1,
|
|
26
26
|
label: t,
|
|
27
27
|
sx: a = {},
|
|
28
28
|
tooltip: e = "",
|
|
29
29
|
value: c
|
|
30
30
|
}) => {
|
|
31
|
-
const _ = V(), i = _.palette.mode === "light" ? _.palette.grey[400] : _.palette.grey[700], A =
|
|
31
|
+
const _ = V(), i = _.palette.mode === "light" ? _.palette.grey[400] : _.palette.grey[700], A = S ? _.palette.action.active : i;
|
|
32
32
|
return /* @__PURE__ */ C(
|
|
33
33
|
P,
|
|
34
34
|
{
|
|
35
35
|
bgcolor: "background.paper",
|
|
36
|
-
border: `${
|
|
36
|
+
border: `${S ? 3 : 1}px solid`,
|
|
37
37
|
borderColor: A,
|
|
38
38
|
borderRadius: 2,
|
|
39
39
|
mt: -2,
|
|
@@ -322,35 +322,35 @@ const j = ({
|
|
|
322
322
|
category: o.TRANSACTIONS_WIDGET,
|
|
323
323
|
label: r.DELETE_TRANSACTION
|
|
324
324
|
}
|
|
325
|
-
}, Z = async (
|
|
325
|
+
}, Z = async (S, t) => !t || !m[S] ? null : t.sendAnalyticEvent(m[S]), L = {
|
|
326
326
|
FLAG: "flag",
|
|
327
327
|
DATE: "date",
|
|
328
328
|
PAYEE: "payee",
|
|
329
329
|
CATEGORY: "category",
|
|
330
330
|
ACCOUNT: "account",
|
|
331
331
|
AMOUNT: "amount"
|
|
332
|
-
}, q = (
|
|
332
|
+
}, q = (S, t, a, e = []) => {
|
|
333
333
|
const c = t.reduce((A, s) => ({ ...A, [s.guid]: s }), {}), _ = a.reduce((A, s) => ({ ...A, [s.guid]: s }), {}), i = e.reduce((A, s) => {
|
|
334
|
-
const { transaction_guid:
|
|
335
|
-
if (!A[
|
|
334
|
+
const { transaction_guid: l, tag_guid: I } = s;
|
|
335
|
+
if (!A[l])
|
|
336
336
|
return {
|
|
337
337
|
...A,
|
|
338
|
-
[
|
|
338
|
+
[l]: [I]
|
|
339
339
|
};
|
|
340
|
-
const E = [...A[
|
|
340
|
+
const E = [...A[l], I];
|
|
341
341
|
return {
|
|
342
342
|
...A,
|
|
343
|
-
[
|
|
343
|
+
[l]: E
|
|
344
344
|
};
|
|
345
345
|
}, {});
|
|
346
|
-
return
|
|
347
|
-
const s = c[A.account_guid],
|
|
346
|
+
return S.map((A) => {
|
|
347
|
+
const s = c[A.account_guid], l = A.category_guid ? _[A.category_guid] : null, I = i[A.guid] ?? [];
|
|
348
348
|
return {
|
|
349
349
|
...A,
|
|
350
350
|
account: s?.user_name || "Unknown",
|
|
351
351
|
accountIsClosed: s?.is_closed,
|
|
352
352
|
accountIsHidden: s?.is_hidden,
|
|
353
|
-
category:
|
|
353
|
+
category: l?.name || "Uncategorized",
|
|
354
354
|
isIncome: A.top_level_category_guid === W.INCOME,
|
|
355
355
|
isPending: A.feed_status === G.PENDING,
|
|
356
356
|
number: s?.account_number || "",
|
|
@@ -358,36 +358,36 @@ const j = ({
|
|
|
358
358
|
tags: I
|
|
359
359
|
};
|
|
360
360
|
});
|
|
361
|
-
}, J = "uncategorized", Q = (
|
|
362
|
-
const i = tt(
|
|
361
|
+
}, J = "uncategorized", Q = (S, t, a, e, c, _) => {
|
|
362
|
+
const i = tt(S, c, _), A = at(i, a, e);
|
|
363
363
|
return t.forEach((s) => {
|
|
364
|
-
const
|
|
365
|
-
A.splice(
|
|
364
|
+
const l = A.findIndex((E) => E.guid === s), I = _.filter((E) => E.parent_guid === s);
|
|
365
|
+
A.splice(l + 1, 0, ...I);
|
|
366
366
|
}), A;
|
|
367
|
-
}, tt = (
|
|
367
|
+
}, tt = (S, t, a) => {
|
|
368
368
|
const {
|
|
369
369
|
accounts: e = [],
|
|
370
370
|
dateRange: c = { start: R(b()), end: D() },
|
|
371
371
|
custom: _ = () => !0,
|
|
372
372
|
searchTerm: i = "",
|
|
373
373
|
showSplits: A = !1
|
|
374
|
-
} =
|
|
375
|
-
return a.filter((s) => A ? !s.has_been_split : !s.parent_guid).filter((s) => !!e.find((
|
|
374
|
+
} = S;
|
|
375
|
+
return a.filter((s) => A ? !s.has_been_split : !s.parent_guid).filter((s) => !!e.find((l) => l === s.account_guid)).filter((s) => s.date >= u(c.start) && s.date <= u(c.end)).filter(_).filter((s) => {
|
|
376
376
|
if (i === J && s.has_been_split)
|
|
377
377
|
return !1;
|
|
378
378
|
if (/^spl/i.test(i) && (s.has_been_split || s.parent_guid))
|
|
379
379
|
return !0;
|
|
380
380
|
const I = s.tags.some(
|
|
381
|
-
(M) =>
|
|
381
|
+
(M) => N(i, t.find((H) => H.guid === M)?.name)
|
|
382
382
|
), E = h(s.date);
|
|
383
|
-
return
|
|
383
|
+
return N(i, s.payee) || N(i, s.feed_description) || N(i, s.category) || N(i, g(E, O.MONTH)) || N(i, g(E, O.DAY)) || N(i, g(E, O.FULL_MONTH_DAY)) || N(i, g(E, O.MONTH_DAY_YEAR)) || N(i, k(E, $)) || N(i, s.account) || N(i, `${s.amount}`) || N(i, s.memo) || I;
|
|
384
384
|
});
|
|
385
|
-
}, at = (
|
|
385
|
+
}, at = (S, t, a) => [...S].sort((e, c) => {
|
|
386
386
|
const _ = t, i = (e[_] || "") > (c[_] || "");
|
|
387
387
|
let A = i ? -1 : 1, s = i ? 1 : -1;
|
|
388
388
|
return (t === L.DATE || t === L.AMOUNT) && (A = i ? 1 : -1, s = i ? -1 : 1), a === x.ASC ? A : s;
|
|
389
|
-
}),
|
|
390
|
-
const a =
|
|
389
|
+
}), N = (S, t) => {
|
|
390
|
+
const a = S.toLowerCase().split(" "), e = t?.toString().toLowerCase() ?? "";
|
|
391
391
|
return a.every((c) => e.indexOf(c) > -1);
|
|
392
392
|
}, et = {
|
|
393
393
|
account_guid: "",
|
|
@@ -545,15 +545,12 @@ class mt {
|
|
|
545
545
|
this.globalStore.accountStore.updateAccountBalance(a.account_guid, e);
|
|
546
546
|
}
|
|
547
547
|
};
|
|
548
|
-
augmentTransactions = (t) =>
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
);
|
|
555
|
-
return console.log("x", a), a;
|
|
556
|
-
};
|
|
548
|
+
augmentTransactions = (t) => q(
|
|
549
|
+
t,
|
|
550
|
+
this.globalStore.accountStore.visibleAccounts,
|
|
551
|
+
this.globalStore.categoryStore.categories,
|
|
552
|
+
this.taggings
|
|
553
|
+
);
|
|
557
554
|
getTransactionData = () => ({});
|
|
558
555
|
loadAssociatedBeats = async (t, a) => {
|
|
559
556
|
const e = t ? B(t, { representation: "date" }) : void 0, c = a ?? await this.beatApi.getBeatsWithAssociatedTransaction(e);
|
|
@@ -8,17 +8,17 @@ import { u as K } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
|
8
8
|
import { u as _t } from "./useDimensions-27p2evRx.mjs";
|
|
9
9
|
import { observer as Mt } from "mobx-react-lite";
|
|
10
10
|
import Tt from "@mui/material/Card";
|
|
11
|
-
import
|
|
11
|
+
import At from "@mui/material/CardContent";
|
|
12
12
|
import P from "@mui/material/Divider";
|
|
13
13
|
import X from "@mui/material/Grid";
|
|
14
|
-
import { CategoryIcon as
|
|
15
|
-
import { u as Lt, m as Q } from "./hooks-
|
|
14
|
+
import { CategoryIcon as Dt, Text as S } from "@mxenabled/mxui";
|
|
15
|
+
import { u as Lt, m as Q } from "./hooks-C41HAxM5.mjs";
|
|
16
16
|
import { b as Rt } from "./Localization-2MODESHW.mjs";
|
|
17
17
|
import { C as O } from "./CurrencyText-kyC1aseI.mjs";
|
|
18
18
|
import { useTheme as wt, Card as Ht, CardContent as It, Box as kt } from "@mui/material";
|
|
19
|
-
import { f as R,
|
|
19
|
+
import { f as R, a as w } from "./Dialog-BPTr3qHE.mjs";
|
|
20
20
|
import Et from "@mui/material/Button";
|
|
21
|
-
import { C as
|
|
21
|
+
import { C as D, b as Gt, c as Nt } from "./Category-CevNQ03n.mjs";
|
|
22
22
|
import { f as V } from "./NumberFormatting-Buh7u8Oi.mjs";
|
|
23
23
|
import Bt from "@mui/material/ListItem";
|
|
24
24
|
import Ot from "@mui/material/ListItemButton";
|
|
@@ -38,7 +38,7 @@ const U = ({ categoryGuid: r, topLevelCategoryGuid: e }) => {
|
|
|
38
38
|
"aria-label": Rt(o.category_icon_label_aria, n),
|
|
39
39
|
mb: 4,
|
|
40
40
|
role: "img",
|
|
41
|
-
children: /* @__PURE__ */ s(
|
|
41
|
+
children: /* @__PURE__ */ s(Dt, { categoryGuid: e })
|
|
42
42
|
}
|
|
43
43
|
),
|
|
44
44
|
/* @__PURE__ */ s(S, { variant: "Body", children: n })
|
|
@@ -71,7 +71,7 @@ const U = ({ categoryGuid: r, topLevelCategoryGuid: e }) => {
|
|
|
71
71
|
width: 250,
|
|
72
72
|
pointerEvents: "none"
|
|
73
73
|
},
|
|
74
|
-
children: /* @__PURE__ */ f(
|
|
74
|
+
children: /* @__PURE__ */ f(At, { children: [
|
|
75
75
|
/* @__PURE__ */ f(L, { alignItems: "center", display: "flex", flexDirection: "column", children: [
|
|
76
76
|
/* @__PURE__ */ s(U, { categoryGuid: r, topLevelCategoryGuid: e }),
|
|
77
77
|
/* @__PURE__ */ s(S, { variant: "Small", children: `${o.length}-month total` }),
|
|
@@ -127,7 +127,7 @@ const U = ({ categoryGuid: r, topLevelCategoryGuid: e }) => {
|
|
|
127
127
|
ref: a,
|
|
128
128
|
sx: r,
|
|
129
129
|
children: e.map(({ guid: g, top_level_guid: C }) => {
|
|
130
|
-
const d = o === g, u =
|
|
130
|
+
const d = o === g, u = D[g], x = D[C], y = u ?? x ?? D.default, b = y + "33";
|
|
131
131
|
return /* @__PURE__ */ f(
|
|
132
132
|
Et,
|
|
133
133
|
{
|
|
@@ -186,7 +186,7 @@ const U = ({ categoryGuid: r, topLevelCategoryGuid: e }) => {
|
|
|
186
186
|
hoveredAreaData: null,
|
|
187
187
|
isAreaHovered: !1,
|
|
188
188
|
cursorPos: { x: 0, y: 0 }
|
|
189
|
-
}), { hoveredSeriesId:
|
|
189
|
+
}), { hoveredSeriesId: A, hoveredAreaData: $, isAreaHovered: tt, cursorPos: I } = Z, W = tt && A && $, j = !W, G = [...n, ...i], et = G[0]?.dataset.length ?? 0, N = G.flatMap((t) => t.dataset.map((c) => c.x)), ot = G.flatMap((t) => t.dataset.map((c) => c.y)), rt = n[0]?.dataset?.map(
|
|
190
190
|
(t, c) => n.reduce((m, _) => m + _.dataset[c]?.y || 0, 0)
|
|
191
191
|
) ?? [0], at = Math.max(...rt), nt = Math.max(
|
|
192
192
|
...i.flatMap((t) => t.dataset.map((c) => c.y))
|
|
@@ -232,7 +232,7 @@ const U = ({ categoryGuid: r, topLevelCategoryGuid: e }) => {
|
|
|
232
232
|
}, dt = (t) => {
|
|
233
233
|
a?.(t ?? "");
|
|
234
234
|
}, ut = () => {
|
|
235
|
-
const t = E(String(
|
|
235
|
+
const t = E(String(A)).guid;
|
|
236
236
|
t && a?.(t);
|
|
237
237
|
}, mt = (t) => {
|
|
238
238
|
const c = String(t?.seriesId), m = E(c).guid, _ = Y.find((B) => B.id === c), pt = _ && t?.dataIndex !== void 0, yt = _ && t?.dataIndex === void 0;
|
|
@@ -331,10 +331,10 @@ const U = ({ categoryGuid: r, topLevelCategoryGuid: e }) => {
|
|
|
331
331
|
}
|
|
332
332
|
},
|
|
333
333
|
slots: {
|
|
334
|
-
itemContent: (t) => j &&
|
|
334
|
+
itemContent: (t) => j && A ? /* @__PURE__ */ s(
|
|
335
335
|
Vt,
|
|
336
336
|
{
|
|
337
|
-
categoryGuids: E(
|
|
337
|
+
categoryGuids: E(A),
|
|
338
338
|
xData: N,
|
|
339
339
|
...t
|
|
340
340
|
}
|
|
@@ -375,7 +375,7 @@ const U = ({ categoryGuid: r, topLevelCategoryGuid: e }) => {
|
|
|
375
375
|
W && /* @__PURE__ */ s(
|
|
376
376
|
Xt,
|
|
377
377
|
{
|
|
378
|
-
categoryGuids: E(
|
|
378
|
+
categoryGuids: E(A),
|
|
379
379
|
chartContainerRef: x,
|
|
380
380
|
cursorPosition: I,
|
|
381
381
|
hoveredAreaData: $.map((t) => ({
|
|
@@ -444,7 +444,7 @@ const U = ({ categoryGuid: r, topLevelCategoryGuid: e }) => {
|
|
|
444
444
|
children: g
|
|
445
445
|
}
|
|
446
446
|
) });
|
|
447
|
-
}, qt = (r) =>
|
|
447
|
+
}, qt = (r) => D[r] ?? D.default, Jt = (r) => Nt[r];
|
|
448
448
|
function Kt(r, e) {
|
|
449
449
|
const o = [], a = new Date(r);
|
|
450
450
|
for (; a <= e; ) {
|
|
@@ -16,13 +16,13 @@ import E from "@mui/material/Button";
|
|
|
16
16
|
import Y from "@mui/material/Paper";
|
|
17
17
|
import { useTokens as v, H2 as z, Text as G } from "@mxenabled/mxui";
|
|
18
18
|
import { ChevronLeft as X, ChevronRight as Z } from "@mxenabled/mx-icons";
|
|
19
|
-
import { f as q,
|
|
19
|
+
import { f as q, a as J } from "./Dialog-BPTr3qHE.mjs";
|
|
20
20
|
import { isSameDay as T } from "date-fns/isSameDay";
|
|
21
21
|
import { isWithinInterval as Q } from "date-fns/isWithinInterval";
|
|
22
22
|
import nn from "@mui/material/styles/useTheme";
|
|
23
23
|
import k from "@mui/material/ListItem";
|
|
24
24
|
import an from "@mui/material/ListItemButton";
|
|
25
|
-
import { g as tn } from "./hooks-
|
|
25
|
+
import { g as tn } from "./hooks-C41HAxM5.mjs";
|
|
26
26
|
var on = /* @__PURE__ */ ((n) => (n[n.CREDIT = 1] = "CREDIT", n[n.DEBIT = 2] = "DEBIT", n))(on || {}), en = /* @__PURE__ */ ((n) => (n[n.POSTED = 1] = "POSTED", n[n.PENDING = 2] = "PENDING", n))(en || {});
|
|
27
27
|
const rn = ({ copy: n, date: a, onNextClick: o, onPreviousClick: r }) => {
|
|
28
28
|
const c = v(), l = cn(c);
|