@mx-cartographer/experiences 8.0.0-alpha.sms2 → 9.0.0-alpha.mega1
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 +217 -0
- package/dist/{Account-Cp30A3ad.mjs → Account-BIKn4XEZ.mjs} +1 -1
- package/dist/Account-CMjOp7S2.mjs +118 -0
- package/dist/AccountApi-DgZ8ILj1.mjs +19 -0
- package/dist/AccountDetailsHeader-BOV91g1o.mjs +95 -0
- package/dist/AccountDisplayName-CO7z3v99.mjs +11 -0
- package/dist/{AccountFields-CW6cIthP.mjs → AccountFields-BRRH37K1.mjs} +10 -11
- package/dist/{AccountListItem-DxmAs98Z.mjs → AccountListItem-Ds5C0mOT.mjs} +4 -4
- package/dist/{AccountStore-hIs-yA6W.mjs → AccountStore-BFKvXJSD.mjs} +79 -69
- package/dist/{Accounts-DUHkUyK4.mjs → Accounts-CuE8aSZN.mjs} +1 -1
- package/dist/{BudgetUtil-CIDAPPPT.mjs → BudgetUtil-CDSOZXem.mjs} +4 -4
- package/dist/CategorySelectorDrawer-C4aZYP4N.mjs +418 -0
- package/dist/CategoryStore-DEqAnHbi.mjs +186 -0
- package/dist/{CategoryUtil-DfVKKkRf.mjs → CategoryUtil-CFHBvaV4.mjs} +1 -1
- package/dist/{ConnectionsDrawer-CSo6AFkG.mjs → ConnectionsDrawer-BExzgE16.mjs} +5 -5
- package/dist/{CurrencyInput-BrGvhgVK.mjs → CurrencyInput-DDQ4DBrE.mjs} +1 -1
- package/dist/{CurrencyText-Dr0EZ7bp.mjs → CurrencyText-C-85TnUF.mjs} +3 -3
- package/dist/{DateUtil-CDPZw_-m.mjs → DateUtil-CVsMhbZU.mjs} +3 -3
- package/dist/{DebtsStore-hi1cqrRk.mjs → DebtsStore-Dv_T7Dts.mjs} +12 -12
- package/dist/{Dialog-CDV0kKxj.mjs → Dialog-CWymUiuO.mjs} +32 -35
- package/dist/Drawer-Bet2ZPJo.mjs +176 -0
- package/dist/{ExportCsvAction-CQ1grpwo.mjs → ExportCsvAction-oG_Mn66T.mjs} +3 -3
- package/dist/{FinstrongStore-dKZOZ2hM.mjs → FinstrongStore-BjFkMTIL.mjs} +6 -6
- package/dist/GlobalAccountFilter-BpWlPAl5.mjs +316 -0
- package/dist/{GoalStore-CFeAJloA.mjs → GoalStore-Dbjgft2i.mjs} +155 -137
- package/dist/{Help-i4OasOO-.mjs → Help-BW_ar-4B.mjs} +2 -2
- package/dist/LineChart-DHj-Bufi.mjs +580 -0
- package/dist/{ListItemAction-BNCWQAN_.mjs → ListItemAction-Cbr3417C.mjs} +10 -10
- package/dist/{ManageIncome-D_qVX5dN.mjs → ManageIncome-DIIyqDTp.mjs} +85 -85
- package/dist/{MicroWidgetContainer-BGpNl5ZS.mjs → MicroWidgetContainer-DSyYwRCU.mjs} +2 -2
- package/dist/{MiniWidgetContainer-D7MkHG15.mjs → MiniWidgetContainer-DKn7ndO6.mjs} +1 -1
- package/dist/NetWorthStore-B6ziBtaH.mjs +168 -0
- package/dist/NotificationSettings-e789PcRb.mjs +676 -0
- package/dist/{OriginalBalanceAction-62e0mU_3.mjs → OriginalBalanceAction-DFoG79Ba.mjs} +3 -3
- package/dist/{RecurringSettings-RfZ8Wuhh.mjs → RecurringSettings-BpCUcE8w.mjs} +4 -4
- package/dist/{RecurringTransactionsStore-D3EOKZ2B.mjs → RecurringTransactionsStore-D_--5PWH.mjs} +1 -1
- package/dist/{RecurringTransactions-Bhx56aA3.mjs → RepeatingTransaction-C2txVA9O.mjs} +3 -3
- package/dist/{SettingsStore-BASMQSIp.mjs → SettingsStore-CInvh-rQ.mjs} +1 -1
- package/dist/SpendingData-B7NuTQ9s.mjs +53 -0
- package/dist/SpendingLegend-BxefXiQd.mjs +193 -0
- package/dist/TransactionDetails-CPwv9xtZ.mjs +1374 -0
- package/dist/{TransactionStore-DgLrYW4C.mjs → TransactionStore-D2aMUClq.mjs} +128 -111
- package/dist/TrendsStore-BdsYfCc7.mjs +183 -0
- package/dist/{User-DqNX2GAK.mjs → User-CulNdZUr.mjs} +21 -20
- package/dist/ViewMoreMicroCard-CDWR16_h.mjs +1147 -0
- package/dist/WidgetContainer-mzejMmz2.mjs +555 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +1 -0
- package/dist/accounts/index.es.js +933 -232
- package/dist/accounts/stores/AccountStore.d.ts +6 -2
- package/dist/accounts/utils/AccountDetails.d.ts +5 -0
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/components/AddBudgets.d.ts +2 -1
- package/dist/budgets/index.es.js +561 -522
- package/dist/cashflow/index.es.js +397 -396
- package/dist/categories/components/CustomCategories/AddSubcategory.d.ts +1 -0
- package/dist/categories/components/CustomCategories/DeleteSubcategory.d.ts +1 -0
- package/dist/categories/components/CustomCategories/RenameSubcategory.d.ts +1 -0
- package/dist/categories/components/SubcategoryRow.d.ts +1 -0
- package/dist/categories/index.es.js +2 -2
- package/dist/categories/stores/CategoryStore.d.ts +5 -3
- package/dist/common/components/GlobalAccountFilter.d.ts +11 -0
- package/dist/common/components/WidgetContainer.d.ts +7 -6
- package/dist/common/components/charts/linechart/CustomTooltip.d.ts +6 -1
- package/dist/common/components/charts/stackedlinechart/CustomPointTooltip.d.ts +5 -2
- package/dist/common/components/globalaccountfilter/GlobalAccountFilterList.d.ts +7 -0
- package/dist/common/components/index.d.ts +2 -2
- package/dist/common/hooks/index.d.ts +1 -0
- package/dist/common/hooks/useWidgetLoadTimer.d.ts +6 -0
- package/dist/common/index.es.js +325 -306
- package/dist/common/stores/GlobalUiStore.d.ts +7 -4
- package/dist/common/types/localization/AccountsCopy.d.ts +6 -0
- package/dist/common/types/localization/CategoryCopy.d.ts +3 -0
- package/dist/common/types/localization/CommonCopy.d.ts +3 -0
- package/dist/common/types/localization/GoalsCopy.d.ts +3 -1
- package/dist/common/types/localization/MicroInsightsCopy.d.ts +1 -0
- package/dist/common/types/localization/TransactionsCopy.d.ts +4 -0
- package/dist/common/types/localization/TrendsCopy.d.ts +4 -0
- package/dist/dashboard/index.es.js +95 -125
- package/dist/debts/index.es.js +466 -460
- package/dist/{exportTransactionsToCSV-BFpuIAXW.mjs → exportTransactionsToCSV-BU1jTY0Q.mjs} +4 -4
- package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +4 -5
- package/dist/finstrong/index.es.js +1660 -1553
- package/dist/goals/index.es.js +716 -677
- package/dist/goals/stores/GoalStore.d.ts +2 -0
- package/dist/help/index.es.js +14 -10
- package/dist/{hooks-C41HAxM5.mjs → hooks-fY_n74f7.mjs} +16 -16
- package/dist/investments/index.es.js +464 -457
- package/dist/merchants/index.es.js +1 -1
- package/dist/microinsights/MicroCardTemplate.d.ts +23 -0
- package/dist/microinsights/beaticons/BeatMaterialIcon.d.ts +8 -0
- package/dist/microinsights/beaticons/MonthlySpendComparisonIcon.d.ts +1 -2
- package/dist/microinsights/beaticons/index.d.ts +1 -0
- package/dist/microinsights/cards/InsightCard.d.ts +0 -2
- package/dist/microinsights/cards/ViewMoreMicroCard.d.ts +2 -5
- package/dist/microinsights/index.d.ts +2 -2
- package/dist/microinsights/index.es.js +824 -14
- package/dist/networth/components/NetWorthChart.d.ts +3 -2
- package/dist/networth/components/NetWorthList.d.ts +3 -3
- package/dist/networth/index.es.js +433 -438
- package/dist/networth/stores/NetWorthStore.d.ts +20 -9
- package/dist/networth/utils/NetWorthUtils.d.ts +2 -2
- package/dist/notifications/index.es.js +5 -5
- package/dist/recurringtransactions/index.es.js +331 -325
- package/dist/settings/index.es.js +293 -285
- package/dist/spending/components/SpendingChart.d.ts +1 -1
- package/dist/spending/components/SpendingList.d.ts +1 -1
- package/dist/spending/components/SpendingTabLabel.d.ts +1 -0
- package/dist/spending/index.es.js +250 -235
- package/dist/transactions/index.es.js +288 -281
- package/dist/transactions/stores/TransactionStore.d.ts +5 -0
- package/dist/trends/components/TrendsTable.d.ts +0 -2
- package/dist/trends/index.es.js +876 -802
- package/dist/trends/utils/TrendsData.d.ts +1 -0
- package/dist/trends/utils/TrendsTable.d.ts +12 -0
- package/dist/{useAccountDisplayName-usSZCQ7I.mjs → useAccountDisplayName-DbkgGLdg.mjs} +2 -2
- package/dist/useAriaLive-B3_pRUio.mjs +35 -0
- package/dist/{useInsightsEnabled-CNjP5cfR.mjs → useInsightsEnabled-dhmXeSyF.mjs} +1 -1
- package/dist/useWidgetLoadTimer-CrUzxN-P.mjs +19 -0
- package/package.json +26 -21
- package/dist/AccountDetailsContent-C1HumFnW.mjs +0 -683
- package/dist/AccountDetailsHeader-NMx79DGs.mjs +0 -87
- package/dist/CategorySelectorDrawer-DqDAA_5I.mjs +0 -399
- package/dist/CategoryStore-MUwRWH9e.mjs +0 -176
- package/dist/ConnectDrawer-Dn1MlqLz.mjs +0 -545
- package/dist/Drawer-Dqe5EqvA.mjs +0 -163
- package/dist/LineChart-bc1D9xBE.mjs +0 -581
- package/dist/NetWorthStore-8FFC1Bs0.mjs +0 -150
- package/dist/NotificationSettings-BsWiYD94.mjs +0 -672
- package/dist/SpendingData-DPQ96k3x.mjs +0 -55
- package/dist/SpendingLegend-CZzDb-7d.mjs +0 -193
- package/dist/TransactionDetails-Duv1X9ec.mjs +0 -1379
- package/dist/TrendsStore-_mRaFUdf.mjs +0 -182
- package/dist/ViewMoreMicroCard-CH9E-jOx.mjs +0 -1930
- package/dist/WidgetContainer-B1Jzb4XA.mjs +0 -565
- package/dist/common/components/accountfilter/AccountFilter.d.ts +0 -20
- package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +0 -31
- package/dist/common/components/accountfilter/index.d.ts +0 -1
- package/dist/microinsights/cards/BaseCard.d.ts +0 -13
- package/dist/{ToggleListItem-ciFTiqRS.mjs → Notification-Bs1fdbzI.mjs} +1 -1
|
@@ -2,20 +2,23 @@ import { Account } from '../types';
|
|
|
2
2
|
import { GlobalStore } from './GlobalStore';
|
|
3
3
|
export declare class GlobalUiStore {
|
|
4
4
|
globalStore: GlobalStore;
|
|
5
|
-
|
|
6
|
-
selectedAccountGuids: string[];
|
|
5
|
+
accountFilterMap: Map<string, boolean>;
|
|
7
6
|
displayedDate: Date;
|
|
8
7
|
displayedDateRange: {
|
|
9
8
|
start: Date;
|
|
10
9
|
end: Date;
|
|
11
10
|
};
|
|
12
11
|
constructor(globalStore: GlobalStore);
|
|
12
|
+
get allSelectedAccounts(): import('../types').DetailedAccount[];
|
|
13
|
+
get selectedAccounts(): import('../types').DetailedAccount[];
|
|
14
|
+
get selectedAccountGuids(): string[];
|
|
13
15
|
get isCopyLoaded(): boolean;
|
|
14
16
|
get isConfigLoaded(): boolean;
|
|
15
17
|
get areUserFeaturesLoaded(): boolean;
|
|
16
18
|
get isInitialized(): boolean;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
+
populateAccountFilterMap: (accounts: Account[]) => void;
|
|
20
|
+
resetAccountFilterMap: () => void;
|
|
21
|
+
updateAccountFilterMap: (guid: string, isIncluded: boolean) => void;
|
|
19
22
|
setDisplayedDate: (startDate: Date, endDate: Date) => void;
|
|
20
23
|
get shouldDisableNextDate(): boolean;
|
|
21
24
|
get shouldDisablePrevDate(): boolean;
|
|
@@ -45,6 +45,9 @@ export interface AccountsCopy {
|
|
|
45
45
|
apy: string;
|
|
46
46
|
available_balance: string;
|
|
47
47
|
available_credit: string;
|
|
48
|
+
chart_title_income_spend: string;
|
|
49
|
+
chart_title_payments: string;
|
|
50
|
+
chart_title_payments_spend: string;
|
|
48
51
|
close_aria: string;
|
|
49
52
|
close_account_details_aria: string;
|
|
50
53
|
close_drawer: string;
|
|
@@ -73,6 +76,9 @@ export interface AccountsCopy {
|
|
|
73
76
|
interest_rate: string;
|
|
74
77
|
is_closed: string;
|
|
75
78
|
is_hidden: string;
|
|
79
|
+
label_income_spend: string;
|
|
80
|
+
label_payments: string;
|
|
81
|
+
label_payments_spend: string;
|
|
76
82
|
manage: string;
|
|
77
83
|
manage_connection: string;
|
|
78
84
|
manage_connections: string;
|
|
@@ -2,6 +2,7 @@ interface LocalizedCategory {
|
|
|
2
2
|
[key: string]: string;
|
|
3
3
|
}
|
|
4
4
|
export interface CategoryCopy {
|
|
5
|
+
add_subcategory_announcement: string;
|
|
5
6
|
add_subcategory_aria: string;
|
|
6
7
|
add_subcategory_button: string;
|
|
7
8
|
add_subcategory_title: string;
|
|
@@ -9,8 +10,10 @@ export interface CategoryCopy {
|
|
|
9
10
|
all_transactions_in_this_subcategory: string;
|
|
10
11
|
category_icon_label_aria: string;
|
|
11
12
|
default_categories: LocalizedCategory;
|
|
13
|
+
delete_subcategory_announcement: string;
|
|
12
14
|
delete_subcategory_aria: string;
|
|
13
15
|
delete_subcategory_heading: string;
|
|
16
|
+
edit_subcategory_announcement: string;
|
|
14
17
|
edit_subcategory_aria: string;
|
|
15
18
|
edit_subcategory_title: string;
|
|
16
19
|
input_placeholder: string;
|
|
@@ -75,8 +75,10 @@ export interface GoalsCopy {
|
|
|
75
75
|
manage_saving_goals: string;
|
|
76
76
|
manage_saving_title: string;
|
|
77
77
|
mark_as_complete_button: string;
|
|
78
|
-
|
|
78
|
+
reorder_goals_announcement: string;
|
|
79
79
|
reorder_goals_description: string;
|
|
80
|
+
reorder_goals_drag_aria_label: string;
|
|
81
|
+
reorder_goals_title: string;
|
|
80
82
|
retirement: string;
|
|
81
83
|
retirement_goal_description: string;
|
|
82
84
|
retirement_goal_label: string;
|
|
@@ -49,9 +49,12 @@ export interface TransactionsCopy {
|
|
|
49
49
|
merchant_logo_modal_desc_bold: string;
|
|
50
50
|
merchant_logo_modal_title: string;
|
|
51
51
|
merchant_logo_title: string;
|
|
52
|
+
payee_edit: string;
|
|
52
53
|
payee_title: string;
|
|
54
|
+
split_transaction_add_split_announcement: string;
|
|
53
55
|
split_transaction_add_split_btn: string;
|
|
54
56
|
split_transaction_category_label: string;
|
|
57
|
+
split_transaction_delete_split_announcement: string;
|
|
55
58
|
split_transaction_delete_split_btn: string;
|
|
56
59
|
split_transaction_desc: string;
|
|
57
60
|
split_transaction_edit_split_amount: string;
|
|
@@ -59,6 +62,7 @@ export interface TransactionsCopy {
|
|
|
59
62
|
split_transaction_errors_min_splits: string;
|
|
60
63
|
split_transaction_errors_select_category: string;
|
|
61
64
|
split_transaction_errors_totals_must_equal_amount: string;
|
|
65
|
+
split_transaction_select_category_announcement: string;
|
|
62
66
|
split_transaction_select_category_btn: string;
|
|
63
67
|
split_transaction_title: string;
|
|
64
68
|
split_transaction_unsplit_description: string;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export interface TrendsCopy {
|
|
2
2
|
all_categories: string;
|
|
3
3
|
categories: string;
|
|
4
|
+
category_general: string;
|
|
4
5
|
category_income: string;
|
|
5
6
|
category_spending: string;
|
|
7
|
+
category_title: string;
|
|
6
8
|
close_category_details: string;
|
|
7
9
|
empty_state_primary: string;
|
|
8
10
|
empty_state_sub_text: string;
|
|
@@ -17,6 +19,8 @@ export interface TrendsCopy {
|
|
|
17
19
|
primary_cta: string;
|
|
18
20
|
spending_label: string;
|
|
19
21
|
sub_title: string;
|
|
22
|
+
sub_title_by_category: string;
|
|
23
|
+
table_column_total: string;
|
|
20
24
|
title: string;
|
|
21
25
|
transaction: string;
|
|
22
26
|
transactions: string;
|
|
@@ -1,53 +1,54 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { observer as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { f as
|
|
9
|
-
import
|
|
10
|
-
import { Icon as
|
|
11
|
-
import { useMediaQuery as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
18
|
-
import { u as
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import o from "react";
|
|
3
|
+
import { observer as p } from "mobx-react-lite";
|
|
4
|
+
import u from "@mui/material/Unstable_Grid2";
|
|
5
|
+
import m from "@mui/material/Skeleton";
|
|
6
|
+
import s from "@mui/material/Stack";
|
|
7
|
+
import S from "@mui/material/styles/useTheme";
|
|
8
|
+
import { f as _, u as b, a as v } from "../hooks-fY_n74f7.mjs";
|
|
9
|
+
import M from "@mui/material/Paper";
|
|
10
|
+
import { Icon as w, H2 as C, P as D } from "@mxenabled/mxui";
|
|
11
|
+
import { useMediaQuery as G } from "@mui/system";
|
|
12
|
+
import W from "@mui/material/Box";
|
|
13
|
+
import k from "@mui/material/Button";
|
|
14
|
+
import A from "@mui/material/IconButton";
|
|
15
|
+
import I from "@mui/material/Tooltip";
|
|
16
|
+
import B from "@mui/material/useMediaQuery";
|
|
17
|
+
import { G as F, b as z } from "../GlobalAccountFilter-BpWlPAl5.mjs";
|
|
18
|
+
import { u as y } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
19
|
+
import { u as H } from "../useWidgetLoadTimer-CrUzxN-P.mjs";
|
|
20
|
+
const R = p(() => {
|
|
21
|
+
const t = S(), {
|
|
22
|
+
appDataStore: { banner: r, loadBanner: i, user: a }
|
|
23
|
+
} = _();
|
|
24
|
+
return o.useEffect(() => {
|
|
24
25
|
i().finally();
|
|
25
|
-
}, [
|
|
26
|
-
|
|
26
|
+
}, [a]), r?.image_url ? /* @__PURE__ */ e(
|
|
27
|
+
s,
|
|
27
28
|
{
|
|
28
29
|
sx: {
|
|
29
30
|
alignItems: "center",
|
|
30
31
|
width: "100%",
|
|
31
32
|
mb: 24
|
|
32
33
|
},
|
|
33
|
-
children: /* @__PURE__ */
|
|
34
|
+
children: /* @__PURE__ */ e(
|
|
34
35
|
"a",
|
|
35
36
|
{
|
|
36
|
-
href:
|
|
37
|
+
href: r?.redirect_url,
|
|
37
38
|
rel: "noreferrer",
|
|
38
39
|
style: {
|
|
39
40
|
width: "100%"
|
|
40
41
|
},
|
|
41
42
|
target: "_blank",
|
|
42
|
-
children: /* @__PURE__ */
|
|
43
|
+
children: /* @__PURE__ */ e(
|
|
43
44
|
"img",
|
|
44
45
|
{
|
|
45
46
|
alt: "",
|
|
46
|
-
src:
|
|
47
|
+
src: r.image_url,
|
|
47
48
|
style: {
|
|
48
49
|
width: "100%",
|
|
49
50
|
height: "auto",
|
|
50
|
-
border: `1px solid ${
|
|
51
|
+
border: `1px solid ${t.palette.grey[300]}`
|
|
51
52
|
}
|
|
52
53
|
}
|
|
53
54
|
)
|
|
@@ -55,129 +56,98 @@ const P = _(() => {
|
|
|
55
56
|
)
|
|
56
57
|
}
|
|
57
58
|
) : null;
|
|
58
|
-
}),
|
|
59
|
-
const { common:
|
|
60
|
-
return /* @__PURE__ */
|
|
61
|
-
|
|
59
|
+
}), T = ({ handleConnectClick: t }) => {
|
|
60
|
+
const { common: r } = b(), i = B("(max-width: 700px)");
|
|
61
|
+
return /* @__PURE__ */ e(W, { my: 4, children: i ? /* @__PURE__ */ e(I, { id: "add-accounts", placement: "bottom", title: r.add_accounts, children: /* @__PURE__ */ e(
|
|
62
|
+
A,
|
|
62
63
|
{
|
|
63
64
|
"aria-controls": "add_accounts",
|
|
64
65
|
"aria-describedby": "add-accounts",
|
|
65
66
|
"aria-haspopup": !0,
|
|
66
|
-
"aria-label":
|
|
67
|
+
"aria-label": r.add_accounts,
|
|
67
68
|
color: "primary",
|
|
68
|
-
onClick:
|
|
69
|
-
children: /* @__PURE__ */
|
|
69
|
+
onClick: t,
|
|
70
|
+
children: /* @__PURE__ */ e(w, { name: "add", size: 24 })
|
|
70
71
|
}
|
|
71
|
-
) }) : /* @__PURE__ */
|
|
72
|
-
|
|
72
|
+
) }) : /* @__PURE__ */ e(
|
|
73
|
+
k,
|
|
73
74
|
{
|
|
74
75
|
"aria-controls": "add_accounts",
|
|
75
76
|
"aria-haspopup": !0,
|
|
76
|
-
"aria-label":
|
|
77
|
-
onClick:
|
|
78
|
-
startIcon: /* @__PURE__ */
|
|
77
|
+
"aria-label": r.add_accounts,
|
|
78
|
+
onClick: t,
|
|
79
|
+
startIcon: /* @__PURE__ */ e(w, { name: "add", size: 24 }),
|
|
79
80
|
sx: {
|
|
80
81
|
p: 12,
|
|
81
82
|
whiteSpace: "nowrap",
|
|
82
83
|
minWidth: "max-content"
|
|
83
84
|
},
|
|
84
85
|
variant: "text",
|
|
85
|
-
children:
|
|
86
|
+
children: r.add_accounts
|
|
86
87
|
}
|
|
87
88
|
) });
|
|
88
|
-
},
|
|
89
|
-
const [
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
cancelButton: n.cancel_button,
|
|
93
|
-
filterButton: n.filter_button,
|
|
94
|
-
filterButtonAria: n.account_filter.filter_button_generic_aria,
|
|
95
|
-
selectAllAccounts: n.account_filter.select_all_accounts,
|
|
96
|
-
toggleAccountTypeAccounts: n.account_filter.toggle_account_type_accounts,
|
|
97
|
-
unselectAllAccounts: n.account_filter.unselect_all_accounts,
|
|
98
|
-
zeroStateButton: n.account_filter.zero_state_button,
|
|
99
|
-
zeroStateDescription: n.account_filter.zero_state_description,
|
|
100
|
-
zeroStateTitle: n.account_filter.zero_state_title
|
|
101
|
-
},
|
|
102
|
-
title: n.filter_button
|
|
103
|
-
}, c = () => {
|
|
104
|
-
const p = (/* @__PURE__ */ new Date()).getHours();
|
|
105
|
-
return p > 1 && p < 12 ? n.good_morning : p >= 12 && p < 18 ? n.good_afternoon : n.good_evening;
|
|
89
|
+
}, $ = p(T), j = () => {
|
|
90
|
+
const [t, r] = o.useState(!1), i = G("(max-width:320px)"), { common: a, connect: g } = b(), { config: d } = v(), { isMobile: f } = y(), x = () => {
|
|
91
|
+
const l = (/* @__PURE__ */ new Date()).getHours();
|
|
92
|
+
return l > 1 && l < 12 ? a.good_morning : l >= 12 && l < 18 ? a.good_afternoon : a.good_evening;
|
|
106
93
|
};
|
|
107
|
-
return /* @__PURE__ */
|
|
108
|
-
/* @__PURE__ */
|
|
109
|
-
/* @__PURE__ */ s
|
|
110
|
-
/* @__PURE__ */
|
|
111
|
-
/* @__PURE__ */
|
|
94
|
+
return /* @__PURE__ */ c(o.Fragment, { children: [
|
|
95
|
+
/* @__PURE__ */ e(M, { sx: { gap: 12, mb: f ? 24 : 0, p: 24 }, children: /* @__PURE__ */ c(s, { alignItems: "center", flexDirection: "row", justifyContent: "space-between", children: [
|
|
96
|
+
/* @__PURE__ */ c(s, { children: [
|
|
97
|
+
/* @__PURE__ */ e(C, { variant: i ? "H2" : "H1", children: x() }),
|
|
98
|
+
/* @__PURE__ */ e(D, { color: "text.secondary", children: a.heres_your_spending_overview })
|
|
112
99
|
] }),
|
|
113
|
-
/* @__PURE__ */ s
|
|
114
|
-
|
|
115
|
-
/* @__PURE__ */
|
|
116
|
-
E,
|
|
117
|
-
{
|
|
118
|
-
accounts: d,
|
|
119
|
-
copy: y,
|
|
120
|
-
onConnectAccountClick: a.show_connections_widget_in_master ? () => o(!0) : void 0,
|
|
121
|
-
onFilterClick: (m) => {
|
|
122
|
-
b(m);
|
|
123
|
-
},
|
|
124
|
-
selectedAccountGuids: g,
|
|
125
|
-
showAccountNumbers: !1,
|
|
126
|
-
sx: {
|
|
127
|
-
maxWidth: "100%"
|
|
128
|
-
},
|
|
129
|
-
variant: "text"
|
|
130
|
-
}
|
|
131
|
-
)
|
|
100
|
+
/* @__PURE__ */ c(s, { flexDirection: "row", children: [
|
|
101
|
+
d.show_connections_widget_in_master && /* @__PURE__ */ e($, { handleConnectClick: () => r(!0) }),
|
|
102
|
+
/* @__PURE__ */ e(F, {})
|
|
132
103
|
] })
|
|
133
104
|
] }) }),
|
|
134
|
-
|
|
135
|
-
|
|
105
|
+
t && /* @__PURE__ */ e(
|
|
106
|
+
z,
|
|
136
107
|
{
|
|
137
|
-
onClose: () =>
|
|
138
|
-
showConnectWidget:
|
|
139
|
-
title:
|
|
108
|
+
onClose: () => r(!1),
|
|
109
|
+
showConnectWidget: t,
|
|
110
|
+
title: g.mini_title
|
|
140
111
|
}
|
|
141
112
|
)
|
|
142
113
|
] });
|
|
143
|
-
},
|
|
144
|
-
var
|
|
145
|
-
const
|
|
146
|
-
const { isDesktop: i, isMobile:
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
[a]
|
|
114
|
+
}, Q = p(j);
|
|
115
|
+
var h = /* @__PURE__ */ ((t) => (t[t.Main = 0] = "Main", t[t.RightSide = 1] = "RightSide", t[t.Disabled = 2] = "Disabled", t))(h || {});
|
|
116
|
+
const P = ({ widgets: t, isLoading: r }) => {
|
|
117
|
+
const { isDesktop: i, isMobile: a } = y(), { copyStore: g } = _();
|
|
118
|
+
H({
|
|
119
|
+
widgetName: "Dashboard",
|
|
120
|
+
isLoaded: !r
|
|
121
|
+
});
|
|
122
|
+
const d = o.useMemo(
|
|
123
|
+
() => t.filter((n) => n.location !== h.Disabled).sort((n, l) => n.index - l.index),
|
|
124
|
+
[t]
|
|
125
|
+
), f = o.useMemo(
|
|
126
|
+
() => d.filter((n) => n.location === h.Main),
|
|
127
|
+
[d]
|
|
128
|
+
), x = o.useMemo(
|
|
129
|
+
() => d.filter((n) => n.location === h.RightSide),
|
|
130
|
+
[d]
|
|
161
131
|
);
|
|
162
|
-
return /* @__PURE__ */
|
|
163
|
-
/* @__PURE__ */
|
|
164
|
-
/* @__PURE__ */
|
|
165
|
-
/* @__PURE__ */
|
|
166
|
-
|
|
167
|
-
/* @__PURE__ */
|
|
168
|
-
/* @__PURE__ */
|
|
169
|
-
/* @__PURE__ */
|
|
132
|
+
return /* @__PURE__ */ c(u, { container: !0, spacing: a ? 0 : 24, sx: { overflow: "scroll" }, children: [
|
|
133
|
+
/* @__PURE__ */ e(u, { xs: 12, children: g.isInitialized && /* @__PURE__ */ e(Q, {}) }),
|
|
134
|
+
/* @__PURE__ */ c(u, { lg: 8, xs: 12, children: [
|
|
135
|
+
/* @__PURE__ */ e(R, {}),
|
|
136
|
+
r && /* @__PURE__ */ c(s, { direction: "column", spacing: 24, children: [
|
|
137
|
+
/* @__PURE__ */ e(m, { height: 100, variant: "rounded", width: "100%" }),
|
|
138
|
+
/* @__PURE__ */ e(m, { height: 300, variant: "rounded", width: "100%" }),
|
|
139
|
+
/* @__PURE__ */ e(m, { height: 300, variant: "rounded", width: "100%" })
|
|
170
140
|
] }),
|
|
171
|
-
!
|
|
141
|
+
!r && /* @__PURE__ */ e(s, { direction: "column", spacing: 24, children: i ? f.map((n) => /* @__PURE__ */ e(o.Fragment, { children: n.component }, n.index)) : d.map((n) => /* @__PURE__ */ e(o.Fragment, { children: n.component }, n.index)) })
|
|
172
142
|
] }),
|
|
173
|
-
i && /* @__PURE__ */
|
|
174
|
-
/* @__PURE__ */
|
|
175
|
-
/* @__PURE__ */
|
|
176
|
-
/* @__PURE__ */
|
|
177
|
-
] }) : /* @__PURE__ */
|
|
143
|
+
i && /* @__PURE__ */ e(u, { lg: 4, children: r ? /* @__PURE__ */ c(s, { direction: "column", spacing: 24, children: [
|
|
144
|
+
/* @__PURE__ */ e(m, { height: 200, variant: "rounded", width: "100%" }),
|
|
145
|
+
/* @__PURE__ */ e(m, { height: 100, variant: "rounded", width: "100%" }),
|
|
146
|
+
/* @__PURE__ */ e(m, { height: 300, variant: "rounded", width: "100%" })
|
|
147
|
+
] }) : /* @__PURE__ */ e(s, { direction: "column", spacing: 24, children: x.map((n) => /* @__PURE__ */ e(o.Fragment, { children: n.component }, n.index)) }) })
|
|
178
148
|
] });
|
|
179
|
-
},
|
|
149
|
+
}, ce = p(P);
|
|
180
150
|
export {
|
|
181
|
-
|
|
182
|
-
|
|
151
|
+
ce as Dashboard,
|
|
152
|
+
h as DashboardLocation
|
|
183
153
|
};
|