@mx-cartographer/experiences 7.2.11 → 7.2.12-alpha-ram1-finstrong-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 +4 -0
- package/dist/{Account-B-CuHOYf.mjs → Account-CBQnFO6w.mjs} +1 -1
- package/dist/{AccountDetailsContent-DfzPOeMI.mjs → AccountDetailsContent-BkurfGCr.mjs} +48 -44
- package/dist/{AccountDetailsHeader-vcy67tuH.mjs → AccountDetailsHeader-CaIoP_2Q.mjs} +8 -8
- package/dist/{AccountFields-cUP-9Hm6.mjs → AccountFields-CLbLAhLf.mjs} +5 -5
- package/dist/{AccountListItem-DChcf3SN.mjs → AccountListItem-CPm3572e.mjs} +4 -4
- package/dist/{AccountStore-D6KiXA1B.mjs → AccountStore-DttEGFeu.mjs} +40 -29
- package/dist/{Accounts-IeEtQjzA.mjs → Accounts-B5Yr0e_o.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-FyY0AWYQ.mjs} +2 -2
- package/dist/{ConnectionsDrawer-DHJ7qdWL.mjs → ConnectionsDrawer-Cd_rztVC.mjs} +3 -3
- package/dist/CurrencyInput-xH-hqry9.mjs +85 -0
- package/dist/{DateUtil-BcuH7ErC.mjs → DateUtil-CBdcsyuk.mjs} +3 -3
- package/dist/{DebtsStore-z3VARSO6.mjs → DebtsStore-DB5U2WMC.mjs} +1 -1
- package/dist/{Dialog-CWW597AF.mjs → Dialog-BPTr3qHE.mjs} +2 -2
- package/dist/Drawer-BEtCk82g.mjs +163 -0
- package/dist/{ExportCsvAction-sX8Rg4Ov.mjs → ExportCsvAction-DlGZfm4y.mjs} +3 -3
- package/dist/FinstrongStore-CJBV4K5Y.mjs +432 -0
- package/dist/{GoalStore-TD0BfzWX.mjs → GoalStore-deVLYr7n.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-D3n1EWxe.mjs → ManageIncome-CqNstpx_.mjs} +63 -61
- 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-CUz0bwVm.mjs} +2 -2
- package/dist/{NotificationSettings-BRm_EJZV.mjs → NotificationSettings-BKKuULAd.mjs} +5 -5
- package/dist/{OriginalBalanceAction-CAaVbVMO.mjs → OriginalBalanceAction-CCmnsd7y.mjs} +3 -3
- package/dist/{RecurringSettings-C28GrQcP.mjs → RecurringSettings-DfAMEAuh.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-squvjEhu.mjs +170 -0
- package/dist/{TransactionDetails-BWffqew4.mjs → TransactionDetails-CabNHK_I.mjs} +12 -12
- package/dist/{TransactionStore-DxPLdF3B.mjs → TransactionStore-DvOEbOzL.mjs} +3 -3
- package/dist/{TrendsStore-DCYbpXPO.mjs → TrendsStore-BVNxGsE4.mjs} +14 -14
- package/dist/{User-BQUxBeZV.mjs → User-wXzDI4M8.mjs} +2 -2
- package/dist/{WidgetContainer-C88Ecu2W.mjs → WidgetContainer-GoNq8wwm.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 +12 -12
- package/dist/cashflow/index.es.js +44 -44
- 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 +33 -33
- package/dist/common/types/Finstrong.d.ts +50 -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/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 +11 -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 +3119 -1044
- package/dist/finstrong/stores/FinstrongStore.d.ts +9 -1
- package/dist/finstrong/util/finstrongUtils.d.ts +58 -1
- package/dist/goals/index.es.js +14 -14
- package/dist/help/index.es.js +3 -3
- package/dist/{hooks-D6XlXHf4.mjs → hooks-C41HAxM5.mjs} +3 -3
- package/dist/investments/index.es.js +4 -4
- package/dist/merchants/index.es.js +1 -1
- package/dist/networth/index.es.js +34 -34
- 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 +222 -373
- package/dist/transactions/index.es.js +15 -15
- package/dist/trends/index.es.js +94 -94
- package/dist/{useAccountDisplayName-BcRqfar8.mjs → useAccountDisplayName-B5O6hQ1B.mjs} +2 -2
- package/dist/{useInsightsEnabled-DBpwEq10.mjs → useInsightsEnabled-CNjP5cfR.mjs} +1 -1
- package/package.json +1 -1
- package/dist/CurrencyInput-CsCy7uaS.mjs +0 -83
- package/dist/Drawer-kEE73B87.mjs +0 -113
- package/dist/FinstrongStore-F2c607dj.mjs +0 -101
- package/dist/finstrong/utils/Finstrong.d.ts +0 -6
|
@@ -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);
|
|
@@ -13,7 +13,7 @@ import { ChevronLeft as le } from "@mxenabled/mx-icons";
|
|
|
13
13
|
import { Icon as T, Text as X, DateRangePicker as J, H1 as Ce, H3 as de } from "@mxenabled/mxui";
|
|
14
14
|
import { u as Te } from "./useDimensions-27p2evRx.mjs";
|
|
15
15
|
import { L as Ie } from "./Loader-DUaFpDGv.mjs";
|
|
16
|
-
import { g as Ee, b as Re, u as ge, a as Ae, W as Se } from "./hooks-
|
|
16
|
+
import { g as Ee, b as Re, u as ge, a as Ae, W as Se } from "./hooks-C41HAxM5.mjs";
|
|
17
17
|
import { u as ie } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
18
18
|
import { addMonths as Q } from "date-fns/addMonths";
|
|
19
19
|
import { addDays as ue } from "date-fns/addDays";
|
|
@@ -35,9 +35,9 @@ import be from "@mui/material/Tabs";
|
|
|
35
35
|
import we from "@mui/material/ToggleButton";
|
|
36
36
|
import Ke from "@mui/material/ToggleButtonGroup";
|
|
37
37
|
import Ge from "@mui/material/styles/useTheme";
|
|
38
|
-
import { f as K,
|
|
39
|
-
import { D as We } from "./Drawer-
|
|
40
|
-
import { k as ye, l as xe } from "./ConnectDrawer-
|
|
38
|
+
import { f as K, a as G, D as Me } from "./Dialog-BPTr3qHE.mjs";
|
|
39
|
+
import { D as We } from "./Drawer-BEtCk82g.mjs";
|
|
40
|
+
import { k as ye, l as xe } from "./ConnectDrawer-FyY0AWYQ.mjs";
|
|
41
41
|
const ve = {
|
|
42
42
|
ACCOUNTS_CLICK_ACCOUNT: "accounts_widget_click_account",
|
|
43
43
|
ACCOUNTS_CLICK_CONNECT: "accounts_widget_click_connect_accounts",
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Account, AccountType } from '../../common';
|
|
2
|
+
interface AccountsListCompactProps {
|
|
3
|
+
onClick?: (account: Account) => void;
|
|
4
|
+
shouldShowBalance?: boolean;
|
|
5
|
+
loadAccounts?: AccountType[];
|
|
6
|
+
}
|
|
7
|
+
declare const _default: (({ onClick, shouldShowBalance, loadAccounts, }: AccountsListCompactProps) => import("react/jsx-runtime").JSX.Element | null) & {
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
@@ -7,25 +7,25 @@ import E from "@mui/material/List";
|
|
|
7
7
|
import O from "@mui/material/ListSubheader";
|
|
8
8
|
import _ from "@mui/system/Stack";
|
|
9
9
|
import { Text as v } from "@mxenabled/mxui";
|
|
10
|
-
import { A as K } from "../AccountDetailsContent-
|
|
11
|
-
import { u as D1 } from "../AccountDetailsContent-
|
|
12
|
-
import { u as z, A as P } from "../AccountDetailsHeader-
|
|
13
|
-
import { A as W } from "../AccountListItem-
|
|
14
|
-
import { a as Y } from "../AccountFields-
|
|
15
|
-
import { g as U1, b as $1 } from "../AccountFields-
|
|
16
|
-
import { u as w, b as S, d as T, g as D, a as q } from "../hooks-
|
|
10
|
+
import { A as K } from "../AccountDetailsContent-BkurfGCr.mjs";
|
|
11
|
+
import { u as D1 } from "../AccountDetailsContent-BkurfGCr.mjs";
|
|
12
|
+
import { u as z, A as P } from "../AccountDetailsHeader-CaIoP_2Q.mjs";
|
|
13
|
+
import { A as W } from "../AccountListItem-CPm3572e.mjs";
|
|
14
|
+
import { a as Y } from "../AccountFields-CLbLAhLf.mjs";
|
|
15
|
+
import { g as U1, b as $1 } from "../AccountFields-CLbLAhLf.mjs";
|
|
16
|
+
import { u as w, b as S, d as T, g as D, a as q } from "../hooks-C41HAxM5.mjs";
|
|
17
17
|
import { f as I } from "../NumberFormatting-Buh7u8Oi.mjs";
|
|
18
|
-
import { D as J } from "../Drawer-
|
|
19
|
-
import { A as y, W as Q } from "../WidgetContainer-
|
|
20
|
-
import { C as X } from "../ConnectionsDrawer-
|
|
18
|
+
import { D as J } from "../Drawer-BEtCk82g.mjs";
|
|
19
|
+
import { A as y, W as Q } from "../WidgetContainer-GoNq8wwm.mjs";
|
|
20
|
+
import { C as X } from "../ConnectionsDrawer-Cd_rztVC.mjs";
|
|
21
21
|
import { u as N } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
22
22
|
import { L as R } from "../Loader-DUaFpDGv.mjs";
|
|
23
|
-
import { l as U, m as e1 } from "../ConnectDrawer-
|
|
24
|
-
import { F as G1, M as K1 } from "../ConnectDrawer-
|
|
23
|
+
import { l as U, m as e1 } from "../ConnectDrawer-FyY0AWYQ.mjs";
|
|
24
|
+
import { F as G1, M as K1 } from "../ConnectDrawer-FyY0AWYQ.mjs";
|
|
25
25
|
import t1 from "@mui/material/ListItem";
|
|
26
|
-
import { M as $ } from "../MiniWidgetContainer-
|
|
26
|
+
import { M as $ } from "../MiniWidgetContainer-CmXpTylX.mjs";
|
|
27
27
|
import l1 from "@mui/material/Stack";
|
|
28
|
-
import { A as P1, a as Y1 } from "../AccountStore-
|
|
28
|
+
import { A as P1, a as Y1 } from "../AccountStore-DttEGFeu.mjs";
|
|
29
29
|
const i1 = () => {
|
|
30
30
|
const [c, H] = d.useState(""), { accounts: C } = w(), { selectedAccounts: l } = S(), { setSelectedAccount: h, setSelectedMember: r } = z(), { members: L } = T(), { onEvent: f } = D(), s = [...new Set(l.map((t) => t.account_type))], a = l.find((t) => c === t.guid), u = d.useMemo(
|
|
31
31
|
() => l.filter((t) => t.is_hidden),
|
|
@@ -30,6 +30,8 @@ export declare class AccountStore {
|
|
|
30
30
|
get visibleRetirementAccounts(): Account[];
|
|
31
31
|
get visibleInvestmentAccounts(): Account[];
|
|
32
32
|
get visibleSavingsAccounts(): Account[];
|
|
33
|
+
get savingsAndCheckingAccountsBalance(): number;
|
|
34
|
+
get savingsAndCheckingAccounts(): Account[];
|
|
33
35
|
addAccount: (account: Account) => Promise<void>;
|
|
34
36
|
augmentAccounts: (accounts?: Account[]) => Account[];
|
|
35
37
|
loadAccounts: (accountsOverride?: Account[]) => Promise<void>;
|
|
@@ -8,8 +8,8 @@ import a from "@mui/material/Stack";
|
|
|
8
8
|
import _ from "@mui/material/styles/useTheme";
|
|
9
9
|
import { Text as u, TextField as L } from "@mxenabled/mxui";
|
|
10
10
|
import { L as W } from "../Loader-DUaFpDGv.mjs";
|
|
11
|
-
import { M as j } from "../MiniWidgetContainer-
|
|
12
|
-
import { k as f, u as b, g as q, b as E } from "../hooks-
|
|
11
|
+
import { M as j } from "../MiniWidgetContainer-CmXpTylX.mjs";
|
|
12
|
+
import { k as f, u as b, g as q, b as E } from "../hooks-C41HAxM5.mjs";
|
|
13
13
|
import Q from "@mui/material/ToggleButton";
|
|
14
14
|
import G from "@mui/material/ToggleButtonGroup";
|
|
15
15
|
const O = () => {
|
package/dist/budgets/index.es.js
CHANGED
|
@@ -8,7 +8,7 @@ import S from "@mui/material/Stack";
|
|
|
8
8
|
import Q from "@mui/material/styles/useTheme";
|
|
9
9
|
import { Text as y, CategoryIcon as H, Icon as N, H1 as ze, H3 as xe } from "@mxenabled/mxui";
|
|
10
10
|
import W from "@mui/material/List";
|
|
11
|
-
import { u as w, i as D, j as ee, m as j, q as te, g as X, b as ne, h as oe, a as Ue, d as ve } from "../hooks-
|
|
11
|
+
import { u as w, i as D, j as ee, m as j, q as te, g as X, b as ne, h as oe, a as Ue, d as ve } from "../hooks-C41HAxM5.mjs";
|
|
12
12
|
import { f as T } from "../NumberFormatting-Buh7u8Oi.mjs";
|
|
13
13
|
import Ae from "@mui/material/Button";
|
|
14
14
|
import ae from "@mui/material/Divider";
|
|
@@ -17,36 +17,36 @@ import re from "@mui/material/ListItemAvatar";
|
|
|
17
17
|
import V from "@mui/material/ListItemButton";
|
|
18
18
|
import Y from "@mui/material/ListItemText";
|
|
19
19
|
import { b as M } from "../Localization-2MODESHW.mjs";
|
|
20
|
-
import { D as k } from "../Drawer-
|
|
20
|
+
import { D as k } from "../Drawer-BEtCk82g.mjs";
|
|
21
21
|
import Fe from "@mui/material/ListItemSecondaryAction";
|
|
22
|
-
import { C as He } from "../CurrencyInput-
|
|
23
|
-
import {
|
|
24
|
-
import { C as We } from "../ConnectionsDrawer-
|
|
22
|
+
import { C as He } from "../CurrencyInput-xH-hqry9.mjs";
|
|
23
|
+
import { D as $ } from "../Dialog-BPTr3qHE.mjs";
|
|
24
|
+
import { C as We } from "../ConnectionsDrawer-Cd_rztVC.mjs";
|
|
25
25
|
import * as O from "d3";
|
|
26
26
|
import Xe from "@mui/material/Tooltip";
|
|
27
27
|
import { u as se } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
28
28
|
import { L as G } from "../Loader-DUaFpDGv.mjs";
|
|
29
29
|
import { E as de } from "../EmptyState-DA_lfRBv.mjs";
|
|
30
|
-
import { A as L, W as Ke } from "../WidgetContainer-
|
|
31
|
-
import { u as Ve } from "../BudgetUtil-
|
|
32
|
-
import { M as Ye } from "../MiniWidgetContainer-
|
|
30
|
+
import { A as L, W as Ke } from "../WidgetContainer-GoNq8wwm.mjs";
|
|
31
|
+
import { u as Ve } from "../BudgetUtil-wjoNuj7B.mjs";
|
|
32
|
+
import { M as Ye } from "../MiniWidgetContainer-CmXpTylX.mjs";
|
|
33
33
|
import { isAfter as Ze } from "date-fns/isAfter";
|
|
34
34
|
import { startOfToday as Z } from "date-fns/startOfToday";
|
|
35
35
|
import qe from "@mui/material/Alert";
|
|
36
36
|
import Je from "@mui/material/Snackbar";
|
|
37
37
|
import ye from "@mui/material/Tab";
|
|
38
38
|
import Qe from "@mui/material/Tabs";
|
|
39
|
-
import { e as et } from "../exportTransactionsToCSV-
|
|
40
|
-
import { T as Te, a as tt } from "../TransactionDetails-
|
|
39
|
+
import { e as et } from "../exportTransactionsToCSV-hrNpJ77n.mjs";
|
|
40
|
+
import { T as Te, a as tt } from "../TransactionDetails-CabNHK_I.mjs";
|
|
41
41
|
import pe from "@mui/material/Card";
|
|
42
42
|
import he from "@mui/material/CardContent";
|
|
43
43
|
import { S as ge } from "../StatusBar-BK_uYHAB.mjs";
|
|
44
44
|
import { S as we } from "../SingleSegmentDonut-BgbLgwHi.mjs";
|
|
45
|
-
import { u as nt, b as ot } from "../CategorySelectorDrawer-
|
|
45
|
+
import { u as nt, b as ot } from "../CategorySelectorDrawer-ZO9N26Kx.mjs";
|
|
46
46
|
import De from "@mui/material/CardHeader";
|
|
47
47
|
import { subDays as at } from "date-fns/subDays";
|
|
48
48
|
import rt from "@mui/material/IconButton";
|
|
49
|
-
import { M as st } from "../ManageIncome-
|
|
49
|
+
import { M as st } from "../ManageIncome-CqNstpx_.mjs";
|
|
50
50
|
const it = I(() => {
|
|
51
51
|
const { budgets: t } = w(), { totalBudgeted: o } = D(), { incomeTotal: i } = ee(), s = i - o;
|
|
52
52
|
return /* @__PURE__ */ m(S, { direction: "row", justifyContent: "center", my: 16, spacing: 20, children: [
|
|
@@ -4,27 +4,27 @@ import { observer as T } from "mobx-react-lite";
|
|
|
4
4
|
import { addMonths as Xe } from "date-fns/addMonths";
|
|
5
5
|
import { startOfToday as $ } from "date-fns/startOfToday";
|
|
6
6
|
import I from "@mui/material/Box";
|
|
7
|
-
import
|
|
7
|
+
import v from "@mui/material/Divider";
|
|
8
8
|
import s from "@mui/material/Stack";
|
|
9
9
|
import le from "@mui/material/styles/useTheme";
|
|
10
10
|
import { Text as u, P as N, Icon as j, InstitutionLogo as ye, H1 as ue, H2 as Ye } from "@mxenabled/mxui";
|
|
11
|
-
import { G as Qe, v as he, u as O, q as de, d as Ne, b as X, j as q, g as ke, p as He, h as Fe, a as Ve } from "../hooks-
|
|
11
|
+
import { G as Qe, v as he, u as O, q as de, d as Ne, b as X, j as q, g as ke, p as He, h as Fe, a as Ve } from "../hooks-C41HAxM5.mjs";
|
|
12
12
|
import { C as L } from "../CurrencyText-kyC1aseI.mjs";
|
|
13
13
|
import { u as pe } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
14
14
|
import { L as oe } from "../Loader-DUaFpDGv.mjs";
|
|
15
15
|
import { I as fe } from "../CashflowStore-D9Dpuz7X.mjs";
|
|
16
16
|
import { C as jn } from "../CashflowStore-D9Dpuz7X.mjs";
|
|
17
17
|
import { b as M } from "../Localization-2MODESHW.mjs";
|
|
18
|
-
import { M as Ke } from "../MiniWidgetContainer-
|
|
18
|
+
import { M as Ke } from "../MiniWidgetContainer-CmXpTylX.mjs";
|
|
19
19
|
import { E as Je } from "../EmptyState-DA_lfRBv.mjs";
|
|
20
|
-
import { R as Ze } from "../RecurringSettings-
|
|
20
|
+
import { R as Ze } from "../RecurringSettings-DfAMEAuh.mjs";
|
|
21
21
|
import et from "@mui/material/Tabs";
|
|
22
22
|
import Ce from "@mui/material/Tab";
|
|
23
23
|
import { getUnixTime as U } from "date-fns/getUnixTime";
|
|
24
24
|
import ne from "@mui/material/List";
|
|
25
25
|
import ae from "@mui/material/ListItem";
|
|
26
|
-
import { A as tt } from "../AccountListItem-
|
|
27
|
-
import { f as Y,
|
|
26
|
+
import { A as tt } from "../AccountListItem-CPm3572e.mjs";
|
|
27
|
+
import { f as Y, a as Q } from "../Dialog-BPTr3qHE.mjs";
|
|
28
28
|
import nt from "@mui/material/ListSubheader";
|
|
29
29
|
import { f as te } from "../NumberFormatting-Buh7u8Oi.mjs";
|
|
30
30
|
import { isAfter as We } from "date-fns/isAfter";
|
|
@@ -35,17 +35,17 @@ import { alpha as ot, keyframes as at } from "@mui/material/styles";
|
|
|
35
35
|
import { DataGridPro as it } from "@mui/x-data-grid-pro";
|
|
36
36
|
import { T as we } from "../TabContentContainer-j01JYR_7.mjs";
|
|
37
37
|
import G from "@mui/material/Button";
|
|
38
|
-
import { M as rt, S as st, i as ct, d as _e, c as lt } from "../ManageIncome-
|
|
39
|
-
import { D as Ge } from "../Drawer-
|
|
38
|
+
import { M as rt, S as st, i as ct, d as _e, c as lt } from "../ManageIncome-CqNstpx_.mjs";
|
|
39
|
+
import { D as Ge } from "../Drawer-BEtCk82g.mjs";
|
|
40
40
|
import { formatISO as dt } from "date-fns/formatISO";
|
|
41
41
|
import { fromUnixTime as Ie } from "date-fns/fromUnixTime";
|
|
42
42
|
import { startOfMonth as mt } from "date-fns/startOfMonth";
|
|
43
43
|
import { subDays as je } from "date-fns/subDays";
|
|
44
|
-
import { S as ut, b as ht } from "../TransactionDetails-
|
|
45
|
-
import { F as pt, R as
|
|
46
|
-
import { h as ft } from "../DateUtil-
|
|
44
|
+
import { S as ut, b as ht } from "../TransactionDetails-CabNHK_I.mjs";
|
|
45
|
+
import { F as pt, R as ve, e as De } from "../RecurringTransactions-CngsRZ3K.mjs";
|
|
46
|
+
import { h as ft } from "../DateUtil-CBdcsyuk.mjs";
|
|
47
47
|
import { endOfToday as gt } from "date-fns/endOfToday";
|
|
48
|
-
import { W as Ae, A as Ee } from "../WidgetContainer-
|
|
48
|
+
import { W as Ae, A as Ee } from "../WidgetContainer-GoNq8wwm.mjs";
|
|
49
49
|
import { F as bt, A as B } from "../Fetch-87LIQbEA.mjs";
|
|
50
50
|
const V = () => {
|
|
51
51
|
if (!f.useContext(Qe))
|
|
@@ -76,7 +76,7 @@ const V = () => {
|
|
|
76
76
|
setNextIncome: b,
|
|
77
77
|
setSelectedCashAccounts: C,
|
|
78
78
|
setUpcomingExpenses: _
|
|
79
|
-
} = V(), { isDataLoaded: k, nextIncomeRecurrence:
|
|
79
|
+
} = V(), { isDataLoaded: k, nextIncomeRecurrence: D, upcomingExpenses: F } = q();
|
|
80
80
|
f.useEffect(() => {
|
|
81
81
|
p(i);
|
|
82
82
|
}, [i]), f.useEffect(() => {
|
|
@@ -84,8 +84,8 @@ const V = () => {
|
|
|
84
84
|
i.filter((w) => m.includes(w.guid))
|
|
85
85
|
);
|
|
86
86
|
}, [i, x]), f.useEffect(() => {
|
|
87
|
-
|
|
88
|
-
}, [
|
|
87
|
+
D && b(D), _(F);
|
|
88
|
+
}, [D, F]);
|
|
89
89
|
const h = f.useMemo(
|
|
90
90
|
() => i.filter((w) => m.includes(w.guid)).reduce((w, z) => w + (z?.balance || 0), 0),
|
|
91
91
|
[m, F]
|
|
@@ -139,12 +139,12 @@ const V = () => {
|
|
|
139
139
|
) }),
|
|
140
140
|
/* @__PURE__ */ e(L, { amount: g, bold: !0, variant: "XSmall" })
|
|
141
141
|
] }),
|
|
142
|
-
/* @__PURE__ */ e(
|
|
142
|
+
/* @__PURE__ */ e(v, {}),
|
|
143
143
|
/* @__PURE__ */ o(s, { direction: "row", justifyContent: "space-between", p: 16, children: [
|
|
144
144
|
/* @__PURE__ */ e(u, { variant: "Small", children: M(c.expenses_due, d.length) }),
|
|
145
145
|
/* @__PURE__ */ e(L, { amount: S, bold: !0, symbol: "-", variant: "XSmall" })
|
|
146
146
|
] }),
|
|
147
|
-
/* @__PURE__ */ e(
|
|
147
|
+
/* @__PURE__ */ e(v, {}),
|
|
148
148
|
/* @__PURE__ */ e(
|
|
149
149
|
s,
|
|
150
150
|
{
|
|
@@ -159,7 +159,7 @@ const V = () => {
|
|
|
159
159
|
children: /* @__PURE__ */ e(ge, { remaining: A })
|
|
160
160
|
}
|
|
161
161
|
),
|
|
162
|
-
/* @__PURE__ */ e(
|
|
162
|
+
/* @__PURE__ */ e(v, {}),
|
|
163
163
|
/* @__PURE__ */ o(s, { direction: "row", justifyContent: "space-between", p: 16, children: [
|
|
164
164
|
/* @__PURE__ */ e(u, { variant: "Small", children: c.next_paycheck }),
|
|
165
165
|
/* @__PURE__ */ e(u, { bold: !0, variant: "XSmall", children: M(c.days, r) })
|
|
@@ -233,7 +233,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
233
233
|
}
|
|
234
234
|
)
|
|
235
235
|
] }),
|
|
236
|
-
/* @__PURE__ */ e(
|
|
236
|
+
/* @__PURE__ */ e(v, {})
|
|
237
237
|
] }), Te = T(_t), It = ({ total: a, type: n }) => {
|
|
238
238
|
const { cashflow: t } = O();
|
|
239
239
|
return /* @__PURE__ */ o(P, { children: [
|
|
@@ -258,9 +258,9 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
258
258
|
]
|
|
259
259
|
}
|
|
260
260
|
),
|
|
261
|
-
/* @__PURE__ */ e(
|
|
261
|
+
/* @__PURE__ */ e(v, {})
|
|
262
262
|
] });
|
|
263
|
-
}, Re = T(It), ce = (a, n) => (t) => t.accountGuid === a.guid && (Me(t.expectedDate) || We(t.expectedDate, n.start)) && $e(t.expectedDate, n.end),
|
|
263
|
+
}, Re = T(It), ce = (a, n) => (t) => t.accountGuid === a.guid && (Me(t.expectedDate) || We(t.expectedDate, n.start)) && $e(t.expectedDate, n.end), vt = () => {
|
|
264
264
|
const { availableWidth: a } = de(), { cashflow: n } = O(), { upcomingExpenses: t, upcomingIncome: i } = q(), { dateRange: g, selectedCashAccounts: x } = V();
|
|
265
265
|
return /* @__PURE__ */ o(s, { children: [
|
|
266
266
|
/* @__PURE__ */ o(s, { direction: a < 400 ? "column" : "row", justifyContent: "space-between", children: [
|
|
@@ -303,7 +303,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
305
|
),
|
|
306
|
-
/* @__PURE__ */ e(
|
|
306
|
+
/* @__PURE__ */ e(v, {}),
|
|
307
307
|
p.length > 0 && /* @__PURE__ */ e(ae, { children: /* @__PURE__ */ e(
|
|
308
308
|
ne,
|
|
309
309
|
{
|
|
@@ -332,7 +332,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
332
332
|
);
|
|
333
333
|
}) })
|
|
334
334
|
] });
|
|
335
|
-
},
|
|
335
|
+
}, Dt = T(vt), At = () => {
|
|
336
336
|
const { availableWidth: a } = de(), n = le(), { cashflow: t } = O(), { upcomingExpenses: i, upcomingIncome: g } = q(), { dateRange: x, selectedCashAccounts: m } = V(), p = [
|
|
337
337
|
{
|
|
338
338
|
field: "account",
|
|
@@ -515,7 +515,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
515
515
|
]
|
|
516
516
|
}
|
|
517
517
|
),
|
|
518
|
-
/* @__PURE__ */ e(
|
|
518
|
+
/* @__PURE__ */ e(v, { sx: { width: "100%" } }),
|
|
519
519
|
/* @__PURE__ */ o(
|
|
520
520
|
s,
|
|
521
521
|
{
|
|
@@ -530,7 +530,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
530
530
|
]
|
|
531
531
|
}
|
|
532
532
|
),
|
|
533
|
-
/* @__PURE__ */ e(
|
|
533
|
+
/* @__PURE__ */ e(v, { sx: { width: "100%" } }),
|
|
534
534
|
/* @__PURE__ */ o(
|
|
535
535
|
s,
|
|
536
536
|
{
|
|
@@ -545,7 +545,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
545
545
|
]
|
|
546
546
|
}
|
|
547
547
|
),
|
|
548
|
-
/* @__PURE__ */ e(
|
|
548
|
+
/* @__PURE__ */ e(v, { sx: { width: "100%" } }),
|
|
549
549
|
/* @__PURE__ */ e(
|
|
550
550
|
s,
|
|
551
551
|
{
|
|
@@ -612,7 +612,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
612
612
|
),
|
|
613
613
|
/* @__PURE__ */ e(I, { sx: { mb: 32 } }),
|
|
614
614
|
/* @__PURE__ */ e(we, { index: 0, name: "cashflow", value: i, children: /* @__PURE__ */ e(I, { sx: { m: n ? 48 : 16 }, children: /* @__PURE__ */ e(Et, {}) }) }),
|
|
615
|
-
/* @__PURE__ */ e(we, { index: 1, name: "cashflow", value: i, children: /* @__PURE__ */ e(I, { sx: { m: n ? 48 : 16 }, children: /* @__PURE__ */ e(
|
|
615
|
+
/* @__PURE__ */ e(we, { index: 1, name: "cashflow", value: i, children: /* @__PURE__ */ e(I, { sx: { m: n ? 48 : 16 }, children: /* @__PURE__ */ e(Dt, {}) }) })
|
|
616
616
|
] });
|
|
617
617
|
}, Rt = T(Tt), se = ({
|
|
618
618
|
amount: a,
|
|
@@ -648,7 +648,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
648
648
|
), C = f.useMemo(
|
|
649
649
|
() => c.reduce((S, A) => S + (A?.balance || 0), 0),
|
|
650
650
|
[c]
|
|
651
|
-
), _ = l.reduce((S, A) => S + A.amount, 0), k = b.reduce((S, A) => S + A.amount, 0),
|
|
651
|
+
), _ = l.reduce((S, A) => S + A.amount, 0), k = b.reduce((S, A) => S + A.amount, 0), D = C - _ + k, F = i && t.length > 0, h = a < 725;
|
|
652
652
|
return /* @__PURE__ */ o(s, { sx: { mx: h ? 16 : 0, my: h ? 24 : 42 }, children: [
|
|
653
653
|
/* @__PURE__ */ o(
|
|
654
654
|
s,
|
|
@@ -668,7 +668,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
668
668
|
label: M(n.cash_and_bank, c.length)
|
|
669
669
|
}
|
|
670
670
|
),
|
|
671
|
-
h && /* @__PURE__ */ e(
|
|
671
|
+
h && /* @__PURE__ */ e(v, {}),
|
|
672
672
|
F ? /* @__PURE__ */ o(P, { children: [
|
|
673
673
|
!h && /* @__PURE__ */ e(u, { sx: { fontSize: 25, lineHeight: 1 }, children: "+" }),
|
|
674
674
|
/* @__PURE__ */ e(
|
|
@@ -689,7 +689,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
689
689
|
children: n.add_income
|
|
690
690
|
}
|
|
691
691
|
),
|
|
692
|
-
h ? /* @__PURE__ */ e(
|
|
692
|
+
h ? /* @__PURE__ */ e(v, {}) : /* @__PURE__ */ e(u, { sx: { fontSize: 25, lineHeight: 1 }, children: "-" }),
|
|
693
693
|
/* @__PURE__ */ e(
|
|
694
694
|
se,
|
|
695
695
|
{
|
|
@@ -699,11 +699,11 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
699
699
|
symbol: h ? "-" : void 0
|
|
700
700
|
}
|
|
701
701
|
),
|
|
702
|
-
h ? /* @__PURE__ */ e(
|
|
702
|
+
h ? /* @__PURE__ */ e(v, {}) : /* @__PURE__ */ e(u, { sx: { fontSize: 25, lineHeight: 1 }, children: "=" }),
|
|
703
703
|
/* @__PURE__ */ e(
|
|
704
704
|
se,
|
|
705
705
|
{
|
|
706
|
-
amount:
|
|
706
|
+
amount: D,
|
|
707
707
|
isMobile: h,
|
|
708
708
|
isTotal: h,
|
|
709
709
|
label: n.remaining_cash,
|
|
@@ -819,11 +819,11 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
819
819
|
transform: rotate(360deg);
|
|
820
820
|
}
|
|
821
821
|
`, $t = () => {
|
|
822
|
-
const { addRepeatingTransaction: a, repeatingTransactions: n } = q(), { cashflow: t, common: i } = O(), { user: g } = He(), { completeOnboarding: x } = he(), { isDirty: m } = V(), { isMobile: p } = pe(), { isCopyLoaded: c, setDisplayedDate: r } = X(), { filter: d, setFilter: l, transactions: b } = Fe(), C = le(), [_, k] = ee(!0), [
|
|
822
|
+
const { addRepeatingTransaction: a, repeatingTransactions: n } = q(), { cashflow: t, common: i } = O(), { user: g } = He(), { completeOnboarding: x } = he(), { isDirty: m } = V(), { isMobile: p } = pe(), { isCopyLoaded: c, setDisplayedDate: r } = X(), { filter: d, setFilter: l, transactions: b } = Fe(), C = le(), [_, k] = ee(!0), [D, F] = f.useState(pt.EveryMonth), [h, S] = f.useState(1), [A, w] = f.useState(15), [z, re] = ee(!1), [K, J] = ee(1), [R, me] = ee([]), [Z, H] = ee(""), W = f.useMemo(
|
|
823
823
|
() => b.find((y) => y.guid === Z),
|
|
824
824
|
[Z, b]
|
|
825
825
|
), Be = !!n.filter(
|
|
826
|
-
(y) => y.repeating_transaction_type ===
|
|
826
|
+
(y) => y.repeating_transaction_type === ve.Income
|
|
827
827
|
).length, be = async () => {
|
|
828
828
|
J(2), r(
|
|
829
829
|
// Beginning of the month, 90 days before today
|
|
@@ -834,7 +834,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
834
834
|
if (!(R.length < 1)) {
|
|
835
835
|
re(!0);
|
|
836
836
|
for (let y = 0; y < R.length; y++) {
|
|
837
|
-
const E = R[y], xe =
|
|
837
|
+
const E = R[y], xe = De(D, Ie(E.date)), qe = {
|
|
838
838
|
account_guid: E.account_guid,
|
|
839
839
|
amount: E.amount,
|
|
840
840
|
created_by: 0,
|
|
@@ -843,8 +843,8 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
843
843
|
description: E.feed_description || E.description,
|
|
844
844
|
predicted_occurs_on: dt(xe, { representation: "date" }),
|
|
845
845
|
recurrence_day: xe.getDay(),
|
|
846
|
-
recurrence_type:
|
|
847
|
-
repeating_transaction_type:
|
|
846
|
+
recurrence_type: D,
|
|
847
|
+
repeating_transaction_type: ve.Income,
|
|
848
848
|
second_recurrence_day: A,
|
|
849
849
|
transaction_type: E.transaction_type,
|
|
850
850
|
user_guid: g.guid
|
|
@@ -901,10 +901,10 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
901
901
|
U(y.nextDate || y.date)
|
|
902
902
|
) }),
|
|
903
903
|
/* @__PURE__ */ e(ht, { transaction: y }),
|
|
904
|
-
E !== R.length - 1 && /* @__PURE__ */ e(
|
|
904
|
+
E !== R.length - 1 && /* @__PURE__ */ e(v, {})
|
|
905
905
|
] }, y.guid)) }),
|
|
906
906
|
/* @__PURE__ */ o(s, { alignItems: "center", direction: "row", children: [
|
|
907
|
-
/* @__PURE__ */ e(
|
|
907
|
+
/* @__PURE__ */ e(v, { sx: { flexGrow: 1 } }),
|
|
908
908
|
/* @__PURE__ */ e(
|
|
909
909
|
G,
|
|
910
910
|
{
|
|
@@ -935,7 +935,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
935
935
|
{
|
|
936
936
|
bgcolor: "background.paper",
|
|
937
937
|
firstDay: h,
|
|
938
|
-
frequency:
|
|
938
|
+
frequency: D,
|
|
939
939
|
onFirstDayChange: S,
|
|
940
940
|
onFrequencyChange: F,
|
|
941
941
|
onSecondDayChange: w,
|
|
@@ -952,8 +952,8 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
952
952
|
const y = [...R];
|
|
953
953
|
y.push({
|
|
954
954
|
...W,
|
|
955
|
-
nextDate:
|
|
956
|
-
frequency:
|
|
955
|
+
nextDate: De(D, Ie(W.date)),
|
|
956
|
+
frequency: D
|
|
957
957
|
}), me(y), H("");
|
|
958
958
|
},
|
|
959
959
|
variant: "contained",
|
|
@@ -1006,7 +1006,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
1006
1006
|
setSelectedAccounts: g,
|
|
1007
1007
|
shouldDisableNextDate: x,
|
|
1008
1008
|
shouldDisablePrevDate: m
|
|
1009
|
-
} = X(), { onEvent: p } = ke(), { clientConfig: c } = Ve(), { visibleCashAccounts: r } = Ne(), { setFilter: d } = Fe(), { userProfile: l } = He(), { dateRange: b, setSelectedCashAccounts: C } = V(), { loadRepeatingTransactions: _, income: k, isDataLoaded:
|
|
1009
|
+
} = X(), { onEvent: p } = ke(), { clientConfig: c } = Ve(), { visibleCashAccounts: r } = Ne(), { setFilter: d } = Fe(), { userProfile: l } = He(), { dateRange: b, setSelectedCashAccounts: C } = V(), { loadRepeatingTransactions: _, income: k, isDataLoaded: D, setDateRange: F } = q(), { cashflow: h, recurring: S } = O(), { isCopyLoaded: A, isInitialized: w } = X(), re = c?.master?.deep_link_params?.view === "manage_income", [K, J] = f.useState(re);
|
|
1010
1010
|
f.useEffect(() => {
|
|
1011
1011
|
w && (F(b), _().finally());
|
|
1012
1012
|
}, [w]), f.useEffect(() => {
|
|
@@ -1020,7 +1020,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
1020
1020
|
accounts: Z.map((H) => H.guid)
|
|
1021
1021
|
});
|
|
1022
1022
|
}, [r, t]);
|
|
1023
|
-
const R =
|
|
1023
|
+
const R = D && !l?.has_completed_cash_flow_onboarding && !k.length;
|
|
1024
1024
|
return !A || !w ? /* @__PURE__ */ e(oe, {}) : R ? /* @__PURE__ */ e(
|
|
1025
1025
|
Ae,
|
|
1026
1026
|
{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as o, C as a, a as t, u as C } from "../CategorySelectorDrawer-
|
|
2
|
-
import { C as g } from "../CategoryStore-
|
|
1
|
+
import { b as o, C as a, a as t, u as C } from "../CategorySelectorDrawer-ZO9N26Kx.mjs";
|
|
2
|
+
import { C as g } from "../CategoryStore-C1IfDPCE.mjs";
|
|
3
3
|
export {
|
|
4
4
|
o as CategoryRow,
|
|
5
5
|
a as CategorySelector,
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { default as TextField } from '@mui/material/TextField';
|
|
1
3
|
export type SelectOption = {
|
|
2
4
|
id: number;
|
|
3
5
|
label: string;
|
|
4
6
|
};
|
|
5
|
-
interface SelectProps {
|
|
7
|
+
interface SelectProps extends Omit<React.ComponentProps<typeof TextField>, 'onChange'> {
|
|
6
8
|
label: string;
|
|
7
9
|
onChange: (value: number) => void;
|
|
8
10
|
options: SelectOption[];
|
|
9
11
|
value: number;
|
|
10
12
|
}
|
|
11
|
-
export declare const Select: ({ label, onChange, options, value }: SelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const Select: ({ label, onChange, options, value, ...props }: SelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
14
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as React
|
|
1
|
+
import { default as React } from 'react';
|
|
2
2
|
import { SxProps } from '@mui/material/styles';
|
|
3
3
|
import { MarkHandlers } from './linechart/CustomMark';
|
|
4
4
|
export type LineChartDataset = {
|
|
@@ -14,6 +14,7 @@ export type TooltipLabel = LineChartLabel & {
|
|
|
14
14
|
};
|
|
15
15
|
type LineChartCurve = 'catmullRom' | 'linear' | 'monotoneX' | 'monotoneY' | 'natural' | 'step' | 'stepBefore' | 'stepAfter' | 'bump' | 'bumpX' | 'bumpY';
|
|
16
16
|
interface LineChartProps {
|
|
17
|
+
areaColor?: string;
|
|
17
18
|
axisColor?: string;
|
|
18
19
|
baseline?: string;
|
|
19
20
|
chartFor?: string;
|
|
@@ -37,13 +38,18 @@ interface LineChartProps {
|
|
|
37
38
|
left?: number;
|
|
38
39
|
};
|
|
39
40
|
markHandlers?: MarkHandlers;
|
|
40
|
-
markStyles?: (markIndex: number) => CSSProperties
|
|
41
|
+
markStyles?: (markIndex: number) => React.CSSProperties & {
|
|
42
|
+
markLabelStyles?: React.CSSProperties;
|
|
43
|
+
};
|
|
44
|
+
minRange?: number;
|
|
45
|
+
maxRange?: number;
|
|
41
46
|
onItemClick?: () => void;
|
|
42
47
|
showArea?: boolean;
|
|
43
48
|
showAverage?: boolean;
|
|
44
49
|
showAxisHighlight?: boolean;
|
|
45
50
|
showBars?: boolean;
|
|
46
51
|
showLegend?: boolean;
|
|
52
|
+
showMark?: boolean;
|
|
47
53
|
showMarkLabel?: boolean;
|
|
48
54
|
showTooltip?: boolean;
|
|
49
55
|
showXAxis?: boolean;
|
|
@@ -8,7 +8,11 @@ export type MarkHandlers = {
|
|
|
8
8
|
interface CustomMarkProps extends MarkElementProps {
|
|
9
9
|
handlers?: MarkHandlers;
|
|
10
10
|
showLabel: boolean;
|
|
11
|
+
showMark?: boolean;
|
|
11
12
|
yData: number[];
|
|
13
|
+
style?: React.CSSProperties & {
|
|
14
|
+
markLabelStyles?: React.CSSProperties;
|
|
15
|
+
};
|
|
12
16
|
labelBackgroundColor?: string;
|
|
13
17
|
labelFontColor?: string;
|
|
14
18
|
labelFontSize?: number;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { default as Button } from '@mui/material/Button';
|
|
2
3
|
import { SxProps } from '@mui/material/styles';
|
|
3
4
|
export type CopyObject = {
|
|
4
5
|
close_drawer_aria: string;
|
|
@@ -6,6 +7,7 @@ export type CopyObject = {
|
|
|
6
7
|
interface DrawerProps {
|
|
7
8
|
ariaLabelClose?: string;
|
|
8
9
|
className?: string;
|
|
10
|
+
footerStyles?: SxProps;
|
|
9
11
|
hasSecondaryAction?: boolean;
|
|
10
12
|
id?: string;
|
|
11
13
|
isOpen: boolean;
|
|
@@ -13,6 +15,7 @@ interface DrawerProps {
|
|
|
13
15
|
onClose: () => void;
|
|
14
16
|
onPrimaryAction?: () => void;
|
|
15
17
|
onSecondaryAction?: () => void;
|
|
18
|
+
primaryButtonProps?: React.ComponentProps<typeof Button>;
|
|
16
19
|
primaryColor?: 'primary' | 'inherit' | 'secondary' | 'success' | 'error' | 'info' | 'warning';
|
|
17
20
|
primaryText?: string;
|
|
18
21
|
secondaryColor?: 'primary' | 'inherit' | 'secondary' | 'success' | 'error' | 'info' | 'warning';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as Button } from '@mui/material/Button';
|
|
2
|
+
import { SxProps } from '@mui/material/styles';
|
|
3
|
+
type Color = 'primary' | 'inherit' | 'secondary' | 'success' | 'error' | 'info' | 'warning';
|
|
4
|
+
type FooterProps = {
|
|
5
|
+
footerStyles?: SxProps;
|
|
6
|
+
hasSecondaryAction?: boolean;
|
|
7
|
+
isPrimaryDisabled?: boolean;
|
|
8
|
+
onPrimaryAction?: () => void;
|
|
9
|
+
onSecondaryAction?: () => void;
|
|
10
|
+
primaryButtonProps?: React.ComponentProps<typeof Button>;
|
|
11
|
+
primaryColor?: Color;
|
|
12
|
+
primaryText?: string;
|
|
13
|
+
secondaryColor?: Color;
|
|
14
|
+
secondaryText?: string;
|
|
15
|
+
};
|
|
16
|
+
declare const Footer: ({ footerStyles, hasSecondaryAction, isPrimaryDisabled, onPrimaryAction, onSecondaryAction, primaryButtonProps, primaryColor, primaryText, secondaryColor, secondaryText, }: FooterProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export default Footer;
|