@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
|
@@ -1,565 +0,0 @@
|
|
|
1
|
-
import { jsxs as d, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import o from "react";
|
|
3
|
-
import { observer as ce } from "mobx-react-lite";
|
|
4
|
-
import Z from "@mui/material/Box";
|
|
5
|
-
import M from "@mui/material/Button";
|
|
6
|
-
import re from "@mui/material/Card";
|
|
7
|
-
import oe from "@mui/material/CardContent";
|
|
8
|
-
import se from "@mui/material/CardHeader";
|
|
9
|
-
import q from "@mui/material/Divider";
|
|
10
|
-
import z from "@mui/material/IconButton";
|
|
11
|
-
import Y from "@mui/material/Stack";
|
|
12
|
-
import { ChevronLeft as le } from "@mxenabled/mx-icons";
|
|
13
|
-
import { Icon as T, Text as X, DateRangePicker as J, H1 as Ce, H3 as de } from "@mxenabled/mxui";
|
|
14
|
-
import { u as Te } from "./useDimensions-27p2evRx.mjs";
|
|
15
|
-
import { L as Ie } from "./Loader-BSWSYqvn.mjs";
|
|
16
|
-
import { g as Ee, b as Re, u as ge, a as Ae, W as ue } from "./hooks-C41HAxM5.mjs";
|
|
17
|
-
import { u as ie } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
18
|
-
import { addMonths as Q } from "date-fns/addMonths";
|
|
19
|
-
import { addDays as Se } from "date-fns/addDays";
|
|
20
|
-
import { addYears as ee } from "date-fns/addYears";
|
|
21
|
-
import { differenceInCalendarDays as Ne } from "date-fns/differenceInCalendarDays";
|
|
22
|
-
import { endOfDay as me } from "date-fns/endOfDay";
|
|
23
|
-
import { endOfMonth as V } from "date-fns/endOfMonth";
|
|
24
|
-
import { endOfToday as te } from "date-fns/endOfToday";
|
|
25
|
-
import { endOfYear as Le } from "date-fns/endOfYear";
|
|
26
|
-
import { startOfMonth as De } from "date-fns/startOfMonth";
|
|
27
|
-
import { startOfToday as pe } from "date-fns/startOfToday";
|
|
28
|
-
import { startOfYear as ke } from "date-fns/startOfYear";
|
|
29
|
-
import { subMonths as j } from "date-fns/subMonths";
|
|
30
|
-
import { subDays as he } from "date-fns/subDays";
|
|
31
|
-
import { subYears as _e } from "date-fns/subYears";
|
|
32
|
-
import Oe from "@mui/material/ButtonGroup";
|
|
33
|
-
import fe from "@mui/material/Tab";
|
|
34
|
-
import be from "@mui/material/Tabs";
|
|
35
|
-
import we from "@mui/material/ToggleButton";
|
|
36
|
-
import Ke from "@mui/material/ToggleButtonGroup";
|
|
37
|
-
import Ge from "@mui/material/styles/useTheme";
|
|
38
|
-
import { f as K, a as G, D as Me } from "./Dialog-CDV0kKxj.mjs";
|
|
39
|
-
import { D as We } from "./Drawer-Dqe5EqvA.mjs";
|
|
40
|
-
import { k as ye, l as xe } from "./ConnectDrawer-Dn1MlqLz.mjs";
|
|
41
|
-
const ve = {
|
|
42
|
-
ACCOUNTS_CLICK_ACCOUNT: "accounts_widget_click_account",
|
|
43
|
-
ACCOUNTS_CLICK_CONNECT: "accounts_widget_click_connect_accounts",
|
|
44
|
-
ACCOUNTS_CLICK_FILTER: "accounts_widget_click_filter_accounts",
|
|
45
|
-
ACCOUNTS_CLICK_SYNC: "accounts_widget_click_sync",
|
|
46
|
-
ACCOUNT_DETAILS_CLICK_HIDE: "account_details_click_hide_account",
|
|
47
|
-
ACCOUNT_DETAILS_CLICK_MARK_CLOSED: "account_details_click_mark_as_closed",
|
|
48
|
-
ACCOUNT_DETAILS_CLICK_MARK_DUPLICATE: "account_details_click_mark_as_duplicate",
|
|
49
|
-
ACCOUNT_DETAILS_CLICK_TRANSACTION: "account_details_click_transaction",
|
|
50
|
-
ACCOUNT_DETAILS_VIEW: "account_details",
|
|
51
|
-
ACCOUNT_DETAILS_VIEW_TRANSACTIONS: "account_details_transactions",
|
|
52
|
-
BUDGETS_CLICK_ADD: "budgets_widget_click_add_budget",
|
|
53
|
-
BUDGETS_CLICK_BUDGET_CATEGORY: "budgets_widget_click_budget_category",
|
|
54
|
-
BUDGETS_CLICK_EDIT_INCOME: "budgets_widget_click_edit_income",
|
|
55
|
-
BUDGETS_CLICK_FILTER: "budgets_widget_click_filter_accounts",
|
|
56
|
-
BUDGETS_VIEW: "budgets",
|
|
57
|
-
CASH_FLOW_CLICK_FILTER: "cash_flow_widget_click_filter_accounts",
|
|
58
|
-
CASH_FLOW_CLICK_SETTINGS: "cash_flow_widget_click_settings",
|
|
59
|
-
DEBTS_CLICK_CHART_AREA: "debts_widget_click_chart_area",
|
|
60
|
-
DEBTS_CLICK_FILTER: "debts_widget_click_filter_accounts",
|
|
61
|
-
DEBTS_CLICK_PAYDOWN: "debts_widget_click_paydown",
|
|
62
|
-
DEBTS_CLICK_PRIORITY: "debts_widget_click_priority",
|
|
63
|
-
DEBTS_CLICK_PRIORITIZE: "debts_widget_click_prioritize",
|
|
64
|
-
DEBTS_CLICK_SNOWBALL_CTA: "debts_widget_click_snowball_cta",
|
|
65
|
-
DEBTS_CLICK_TABLE_ROW: "debts_widget_click_table_row",
|
|
66
|
-
DEBTS_CLICK_TABLE_SORT: "debts_widget_click_table_sort",
|
|
67
|
-
DEBTS_SAVE_BALANCE_ACTION: "debts_widget_click_balance_action",
|
|
68
|
-
DEBTS_SAVE_PAYDOWN_ACTION: "debts_widget_click_paydown_action",
|
|
69
|
-
DEBTS_SAVE_PAYMENT_ACTION: "debts_widget_click_payment_action",
|
|
70
|
-
DEBTS_SAVE_RATE_ACTION: "debts_widget_click_rate_action",
|
|
71
|
-
DEBTS_VIEW: "debts",
|
|
72
|
-
DEBT_DETAILS_VIEW: "debt_details",
|
|
73
|
-
DEBT_SCHEDULE_VIEW: "debt_schedule",
|
|
74
|
-
GOALS_CLICK_ADD: "goals_widget_click_add",
|
|
75
|
-
GOALS_CLICK_FILTER: "goals_widget_click_filter_accounts",
|
|
76
|
-
GOALS_VIEW: "goals",
|
|
77
|
-
GOALS_MICRO_WIDGET_CTA: "goals_micro_widget_click_see_details_cta",
|
|
78
|
-
INVESTMENTS: "Investments",
|
|
79
|
-
INVESTMENT_WIDGET_ACCOUNT_FILTER_CLICK: "investment_widget_account_filter_click",
|
|
80
|
-
INVESTMENT_WIDGET_ALLOCATION_CLICK: "investment_widget_allocation_click",
|
|
81
|
-
INVESTMENT_WIDGET_ANALYSIS_CLICK: "investment_widget_analysis_click",
|
|
82
|
-
INVESTMENT_WIDGET_DETAILS_CLICK: "investment_widget_details_click",
|
|
83
|
-
NET_WORTH_VIEW: "net_worth",
|
|
84
|
-
NETWORTH_MICRO_WIDGET_CTA: "net_worth_micro_widget_click_see_details_cta",
|
|
85
|
-
NET_WORTH_WIDGET_CLICK_ASSETS_LIABILITIES: "net_worth_widget_click_view_assets_liabilities",
|
|
86
|
-
NET_WORTH_WIDGET_CLICK_FILTER: "net_worth_widget_click_filter_accounts",
|
|
87
|
-
NET_WORTH_WIDGET_CLICK_TIMEFRAME: "net_worth_widget_click_time_period",
|
|
88
|
-
RECURRING_ACTIVITY_CLICK_ADD_EXPENSE: "recurring_transactions_widget_manage_expenses_click_add_expense",
|
|
89
|
-
RECURRING_ACTIVITY_CLICK_ADD_INCOME: "recurring_transactions_widget_income_details_click_add_income",
|
|
90
|
-
RECURRING_ACTIVITY_CLICK_CALENDAR_RIGHT: "recurring_transactions_widget_click_calendar_right",
|
|
91
|
-
RECURRING_ACTIVITY_CLICK_EXPENSE: "recurring_transactions_widget_manage_expenses_click_expense",
|
|
92
|
-
RECURRING_ACTIVITY_CLICK_FILTER: "recurring_transactions_widget_click_filter_accounts",
|
|
93
|
-
RECURRING_ACTIVITY_CLICK_INCOME: "recurring_transactions_widget_click_income",
|
|
94
|
-
RECURRING_ACTIVITY_CLICK_PAID: "recurring_transactions_widget_click_paid_expense",
|
|
95
|
-
RECURRING_ACTIVITY_CLICK_SETTINGS: "recurring_transactions_widget_click_settings",
|
|
96
|
-
RECURRING_ACTIVITY_CLICK_UPCOMING: "recurring_transactions_widget_click_upcoming_transaction",
|
|
97
|
-
RECURRING_TRANSACTIONS_CLICK_ADD_EXPENSE: "recurring_transactions_widget_manage_expenses_click_add_expense",
|
|
98
|
-
RECURRING_TRANSACTIONS_CLICK_ADD_INCOME: "recurring_transactions_widget_income_details_click_add_income",
|
|
99
|
-
RECURRING_TRANSACTIONS_CLICK_CALENDAR_RIGHT: "recurring_transactions_widget_click_calendar_right",
|
|
100
|
-
RECURRING_TRANSACTIONS_CLICK_EXPENSE: "recurring_transactions_widget_manage_expenses_click_expense",
|
|
101
|
-
RECURRING_TRANSACTIONS_CLICK_FILTER: "recurring_transactions_widget_click_filter_accounts",
|
|
102
|
-
RECURRING_TRANSACTIONS_CLICK_INCOME: "recurring_transactions_widget_click_income",
|
|
103
|
-
RECURRING_TRANSACTIONS_CLICK_PAID: "recurring_transactions_widget_click_paid_expense",
|
|
104
|
-
RECURRING_TRANSACTIONS_CLICK_SETTINGS: "recurring_transactions_widget_click_settings",
|
|
105
|
-
RECURRING_TRANSACTIONS_CLICK_UPCOMING: "recurring_transactions_widget_click_upcoming_transaction",
|
|
106
|
-
RECURRING_TRANSACTIONS_DETAILS_CLICK_DELETE: "recurring_transactions_widget_details_click_delete",
|
|
107
|
-
RECURRING_TRANSACTIONS_DETAILS_CLICK_PAYMENT_SCHEDULE: "recurring_transactions_widget_details_click_payment_schedule",
|
|
108
|
-
RECURRING_TRANSACTIONS_MICRO_WIDGET_CTA: "recurring_transactions_micro_widget_click_view_all_cta",
|
|
109
|
-
SPENDING_CLICK_FILTER: "spending_widget_click_filter_accounts",
|
|
110
|
-
SPENDING_VIEW: "spending",
|
|
111
|
-
TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL: "transactions_add_manual_account_modal",
|
|
112
|
-
TRANSACTIONS_CLICK_ADD: "transactions_click_add_transaction",
|
|
113
|
-
TRANSACTIONS_CLICK_DETAILS: "transactions_click_transaction_details",
|
|
114
|
-
TRANSACTIONS_CLICK_EXPORT: "transactions_click_export_csv",
|
|
115
|
-
TRANSACTIONS_CLICK_FILTER: "transactions_click_filter_accounts",
|
|
116
|
-
TRANSACTIONS_CLICK_SEARCH: "transactions_click_search",
|
|
117
|
-
TRANSACTIONS_VIEW: "transactions",
|
|
118
|
-
TRANSACTION_DETAILS_CLICK_AMOUNT: "transaction_details_click_transaction_amount",
|
|
119
|
-
TRANSACTION_DETAILS_CLICK_CATEGORY: "transaction_details_click_category",
|
|
120
|
-
TRANSACTION_DETAILS_CLICK_DATE: "transaction_details_click_date",
|
|
121
|
-
TRANSACTION_DETAILS_CLICK_DELETE_LOGO: "transaction_details_click_delete_merchant_logo",
|
|
122
|
-
TRANSACTION_DETAILS_CLICK_DESCRIPTION: "transaction_details_click_edit_description",
|
|
123
|
-
TRANSACTION_DETAILS_CLICK_FLAG: "transaction_details_click_flag_transaction",
|
|
124
|
-
TRANSACTION_DETAILS_CLICK_MEMO: "transaction_details_click_memo",
|
|
125
|
-
TRANSACTION_DETAILS_CLICK_SPLIT: "transaction_details_click_split_transaction",
|
|
126
|
-
TRANSACTION_DETAILS_CLICK_TAGS: "transaction_details_click_tags",
|
|
127
|
-
TRANSACTION_DETAILS_CLICK_UNSPLIT: "transaction_details_click_unsplit_transaction",
|
|
128
|
-
TRANSACTION_DETAILS_VIEW: "transaction_details",
|
|
129
|
-
WIDGET_BACK_CLICK: "widget_back_button_click",
|
|
130
|
-
// NEW ANAYTICS EVENT FORMAT
|
|
131
|
-
// widget_action_subject
|
|
132
|
-
GOALS_CLICK_GET_STARTED: "goals_click_getStarted",
|
|
133
|
-
GOALS_CLICK_VIEW_DETAILS: "goals_click_viewDetails",
|
|
134
|
-
GOALS_LOAD_WIDGET: "goals_load_widget",
|
|
135
|
-
NET_WORTH_CLICK_GET_STARTED: "netWorth_click_getStarted",
|
|
136
|
-
NET_WORTH_CLICK_VIEW_DETAILS: "netWorth_click_viewDetails",
|
|
137
|
-
NET_WORTH_LOAD_WIDGET: "netWorth_load_widget",
|
|
138
|
-
RECURRING_TRANSACTIONS_CLICK_GET_STARTED: "recurringTransactions_click_getStarted",
|
|
139
|
-
RECURRING_TRANSACTIONS_CLICK_VIEW_ALL: "recurringTransactions_click_viewAll",
|
|
140
|
-
RECURRING_TRANSACTIONS_LOAD_WIDGET: "recurringTransactions_load_widget",
|
|
141
|
-
TRENDS_CLICK_ALL_CATEGORIES: "trends_click_allCategories",
|
|
142
|
-
TRENDS_CLICK_BACK: "trends_click_back",
|
|
143
|
-
TRENDS_CLICK_CHART: "trends_click_chart",
|
|
144
|
-
TRENDS_CLICK_CONNECT_ACCOUNTS: "trends_click_connectAccounts",
|
|
145
|
-
TRENDS_CLICK_EXPORT_CSV: "trends_click_exportCSV",
|
|
146
|
-
TRENDS_CLICK_FILTER: "trends_click_filter",
|
|
147
|
-
TRENDS_CLICK_GET_STARTED: "trends_click_getStarted",
|
|
148
|
-
TRENDS_CLICK_INSIGHT: "trends_click_insight",
|
|
149
|
-
TRENDS_CLICK_LEGEND: "trends_click_legend",
|
|
150
|
-
TRENDS_CLICK_LIST_ITEM: "trends_click_listItem",
|
|
151
|
-
TRENDS_CLICK_TABLE_SORT: "trends_click_tableSort",
|
|
152
|
-
TRENDS_CLICK_TIME_WINDOW: "trends_click_timeWindow",
|
|
153
|
-
TRENDS_CLICK_TOGGLE_VIEW: "trends_click_toggleView",
|
|
154
|
-
TRENDS_CLICK_VIEW_MORE: "trends_click_viewMore",
|
|
155
|
-
TRENDS_CLICK_VIEW_TRANSACTIONS: "trends_click_viewTransactions",
|
|
156
|
-
TRENDS_HOVER_AREA: "trends_hover_chartArea",
|
|
157
|
-
TRENDS_HOVER_POINT: "trends_hover_chartPoint",
|
|
158
|
-
TRENDS_HOVER_LEGEND: "trends_hover_ChartLegend",
|
|
159
|
-
TRENDS_LOAD_WIDGET: "trends_load_widget",
|
|
160
|
-
TRENDS_VIEW_TRANSACTIONS: "trends_view_transactions"
|
|
161
|
-
}, ae = ({
|
|
162
|
-
calendarActions: a,
|
|
163
|
-
color: N = "primary",
|
|
164
|
-
copy: _,
|
|
165
|
-
range: m = [De(pe()), V(te())],
|
|
166
|
-
shouldShrinkToIcon: L = !0,
|
|
167
|
-
variant: n = "outlined"
|
|
168
|
-
}) => {
|
|
169
|
-
const W = Ge(), { isMobile: D } = ie(), [s, f] = o.useState(m), [c, H] = o.useState(_.dateRangePickerCopy.dateRangeThisMonth), [r, b] = o.useState(s), [p, k] = o.useState(!1), [F, y] = o.useState(!0), [h, l] = o.useState(6), C = {
|
|
170
|
-
buttons: [
|
|
171
|
-
{ label: "3M", value: 3 },
|
|
172
|
-
{ label: "6M", value: 6 },
|
|
173
|
-
{ label: "9M", value: 9 },
|
|
174
|
-
{ label: "1Y", value: 12 }
|
|
175
|
-
],
|
|
176
|
-
tabs: [
|
|
177
|
-
{ label: "3 Months", value: 3 },
|
|
178
|
-
{ label: "6 Months", value: 6 },
|
|
179
|
-
{ label: "9 Months", value: 9 },
|
|
180
|
-
{ label: "1 Year", value: 12 }
|
|
181
|
-
]
|
|
182
|
-
};
|
|
183
|
-
o.useEffect(() => {
|
|
184
|
-
f(m), b(m);
|
|
185
|
-
}, [m]), o.useEffect(() => {
|
|
186
|
-
(n === "timeframebuttons" || n === "timeframetabs") && a.onRangeChanged(I());
|
|
187
|
-
}, [h]);
|
|
188
|
-
const I = () => {
|
|
189
|
-
const e = V(te());
|
|
190
|
-
return [V(j(e, h)), e];
|
|
191
|
-
}, w = (e) => {
|
|
192
|
-
const [i, E] = s, u = e === "previous";
|
|
193
|
-
let S;
|
|
194
|
-
if (c === _.dateRangePickerCopy.dateRangeThisMonth || c === _.dateRangePickerCopy.dateRangeLastMonth)
|
|
195
|
-
S = [
|
|
196
|
-
u ? j(i, 1) : Q(i, 1),
|
|
197
|
-
V(u ? j(E, 1) : Q(E, 1))
|
|
198
|
-
];
|
|
199
|
-
else if (c === _.dateRangePickerCopy.dateRangeYTD || c === _.dateRangePickerCopy.dateRangeLastYear) {
|
|
200
|
-
const R = ke(i), g = Le(i);
|
|
201
|
-
S = [
|
|
202
|
-
u ? _e(R, 1) : ee(R, 1),
|
|
203
|
-
u ? _e(g, 1) : ee(g, 1)
|
|
204
|
-
];
|
|
205
|
-
} else {
|
|
206
|
-
const R = Ne(E, i), g = u ? he : Se;
|
|
207
|
-
S = [g(i, R), g(E, R)];
|
|
208
|
-
}
|
|
209
|
-
f(S), a.onRangeChanged(S);
|
|
210
|
-
}, x = () => {
|
|
211
|
-
f(r), y(
|
|
212
|
-
c === _.dateRangePickerCopy.dateRangeThisMonth || c === _.dateRangePickerCopy.dateRangeLastMonth
|
|
213
|
-
), a.onRangeChanged(r);
|
|
214
|
-
}, v = (e, i) => {
|
|
215
|
-
e[1] = e[1] ?? e[0];
|
|
216
|
-
const E = [e[0], e[1] ? me(e[1]) : e[1]];
|
|
217
|
-
b(E), H(i);
|
|
218
|
-
}, U = (e) => {
|
|
219
|
-
l(e);
|
|
220
|
-
};
|
|
221
|
-
return /* @__PURE__ */ d(Z, { className: "mx-cmn-date-range-selector", m: 4, children: [
|
|
222
|
-
/* @__PURE__ */ d(
|
|
223
|
-
Z,
|
|
224
|
-
{
|
|
225
|
-
sx: {
|
|
226
|
-
[W.breakpoints.down("sm")]: {
|
|
227
|
-
display: L ? "none" : "flex",
|
|
228
|
-
justifyContent: "center"
|
|
229
|
-
},
|
|
230
|
-
[W.breakpoints.up("sm")]: { display: "inline-flex" }
|
|
231
|
-
},
|
|
232
|
-
children: [
|
|
233
|
-
n === "readonly" && /* @__PURE__ */ d(Y, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
234
|
-
/* @__PURE__ */ t(T, { name: "calendar_month", size: 24 }),
|
|
235
|
-
/* @__PURE__ */ t(X, { bold: !0, children: K(r[0], G.MONTH_DAY) }),
|
|
236
|
-
/* @__PURE__ */ t(T, { name: "remove" }),
|
|
237
|
-
/* @__PURE__ */ t(X, { bold: !0, children: K(r[1], G.MONTH_DAY_YEAR) })
|
|
238
|
-
] }),
|
|
239
|
-
n !== "readonly" && n !== "timeframebuttons" && n !== "timeframetabs" && /* @__PURE__ */ d(
|
|
240
|
-
Oe,
|
|
241
|
-
{
|
|
242
|
-
color: N,
|
|
243
|
-
sx: {
|
|
244
|
-
"& .MuiButtonGroup-grouped": {
|
|
245
|
-
padding: D ? 0 : 12
|
|
246
|
-
},
|
|
247
|
-
"& .MuiButtonGroup-middleButton": {
|
|
248
|
-
px: 24
|
|
249
|
-
},
|
|
250
|
-
height: 44
|
|
251
|
-
},
|
|
252
|
-
variant: n,
|
|
253
|
-
children: [
|
|
254
|
-
/* @__PURE__ */ t(
|
|
255
|
-
M,
|
|
256
|
-
{
|
|
257
|
-
"aria-disabled": a.shouldDisablePrevious,
|
|
258
|
-
"aria-label": _.dateRangePreviousAria,
|
|
259
|
-
color: a.shouldDisablePrevious ? "secondary" : "primary",
|
|
260
|
-
onClick: () => a.shouldDisablePrevious ? null : w("previous"),
|
|
261
|
-
children: /* @__PURE__ */ t(T, { name: "chevron_left", size: 20 })
|
|
262
|
-
}
|
|
263
|
-
),
|
|
264
|
-
/* @__PURE__ */ t(
|
|
265
|
-
M,
|
|
266
|
-
{
|
|
267
|
-
"aria-disabled": a.shouldDisablePicker,
|
|
268
|
-
color: N,
|
|
269
|
-
onClick: () => a.shouldDisablePicker ? null : k(!0),
|
|
270
|
-
startIcon: /* @__PURE__ */ t(T, { name: "calendar_month", size: 20 }),
|
|
271
|
-
sx: {
|
|
272
|
-
p: D ? 0 : 8
|
|
273
|
-
},
|
|
274
|
-
children: F ? K(s[0], G.MONTH_YEAR) : /* @__PURE__ */ d("span", { children: [
|
|
275
|
-
K(s[0], G.MONTH_DAY_YEAR),
|
|
276
|
-
" -",
|
|
277
|
-
" ",
|
|
278
|
-
K(s[1], G.MONTH_DAY_YEAR)
|
|
279
|
-
] })
|
|
280
|
-
}
|
|
281
|
-
),
|
|
282
|
-
/* @__PURE__ */ t(
|
|
283
|
-
M,
|
|
284
|
-
{
|
|
285
|
-
"aria-disabled": a.shouldDisableNext,
|
|
286
|
-
"aria-label": _.dateRangeNextAria,
|
|
287
|
-
color: a.shouldDisableNext ? "secondary" : "primary",
|
|
288
|
-
onClick: () => a.shouldDisableNext ? null : w("next"),
|
|
289
|
-
children: /* @__PURE__ */ t(T, { name: "chevron_right", size: 20 })
|
|
290
|
-
}
|
|
291
|
-
)
|
|
292
|
-
]
|
|
293
|
-
}
|
|
294
|
-
),
|
|
295
|
-
n === "timeframebuttons" && /* @__PURE__ */ t(
|
|
296
|
-
Ke,
|
|
297
|
-
{
|
|
298
|
-
color: N,
|
|
299
|
-
exclusive: !0,
|
|
300
|
-
orientation: "horizontal",
|
|
301
|
-
value: h,
|
|
302
|
-
children: C.buttons.map((e) => /* @__PURE__ */ t(
|
|
303
|
-
we,
|
|
304
|
-
{
|
|
305
|
-
onClick: () => U(e.value),
|
|
306
|
-
sx: { width: 56 },
|
|
307
|
-
value: e.value,
|
|
308
|
-
children: e.label
|
|
309
|
-
},
|
|
310
|
-
e.label
|
|
311
|
-
))
|
|
312
|
-
}
|
|
313
|
-
),
|
|
314
|
-
n === "timeframetabs" && /* @__PURE__ */ t(
|
|
315
|
-
be,
|
|
316
|
-
{
|
|
317
|
-
indicatorColor: "primary",
|
|
318
|
-
onChange: (e, i) => U(i),
|
|
319
|
-
textColor: "primary",
|
|
320
|
-
value: h,
|
|
321
|
-
variant: "fullWidth",
|
|
322
|
-
children: C.tabs.map((e) => /* @__PURE__ */ t(
|
|
323
|
-
fe,
|
|
324
|
-
{
|
|
325
|
-
label: /* @__PURE__ */ t(X, { bold: !0, variant: "Body", children: e.label }),
|
|
326
|
-
sx: { minWidth: 80 },
|
|
327
|
-
value: e.value
|
|
328
|
-
},
|
|
329
|
-
e.label
|
|
330
|
-
))
|
|
331
|
-
}
|
|
332
|
-
)
|
|
333
|
-
]
|
|
334
|
-
}
|
|
335
|
-
),
|
|
336
|
-
p && D && /* @__PURE__ */ t(
|
|
337
|
-
We,
|
|
338
|
-
{
|
|
339
|
-
ariaLabelClose: _.dateRangeCloseAria,
|
|
340
|
-
isOpen: p,
|
|
341
|
-
onClose: () => k(!1),
|
|
342
|
-
onPrimaryAction: () => {
|
|
343
|
-
x(), k(!1);
|
|
344
|
-
},
|
|
345
|
-
primaryText: _.dateRangeEditApply,
|
|
346
|
-
title: _.dateRangeEditTitle,
|
|
347
|
-
children: /* @__PURE__ */ t(
|
|
348
|
-
J,
|
|
349
|
-
{
|
|
350
|
-
copy: _.dateRangePickerCopy,
|
|
351
|
-
dateRange: r,
|
|
352
|
-
onRangeChanged: v,
|
|
353
|
-
selectedShortcut: c,
|
|
354
|
-
sx: { p: 16 }
|
|
355
|
-
}
|
|
356
|
-
)
|
|
357
|
-
}
|
|
358
|
-
),
|
|
359
|
-
p && !D && /* @__PURE__ */ t(
|
|
360
|
-
Me,
|
|
361
|
-
{
|
|
362
|
-
copy: { title: _.dateRangeEditTitle },
|
|
363
|
-
isOpen: !0,
|
|
364
|
-
onClose: () => k(!1),
|
|
365
|
-
onPrimaryAction: () => x(),
|
|
366
|
-
primaryText: _.dateRangeEditApply,
|
|
367
|
-
sx: {
|
|
368
|
-
"& .MuiDialogContent-root": {
|
|
369
|
-
padding: 0
|
|
370
|
-
}
|
|
371
|
-
},
|
|
372
|
-
children: /* @__PURE__ */ t(
|
|
373
|
-
J,
|
|
374
|
-
{
|
|
375
|
-
copy: _.dateRangePickerCopy,
|
|
376
|
-
dateRange: r,
|
|
377
|
-
onRangeChanged: v,
|
|
378
|
-
selectedShortcut: c,
|
|
379
|
-
sx: {
|
|
380
|
-
pt: 0,
|
|
381
|
-
"& .MuiPickersLayout-toolbar": {
|
|
382
|
-
gridColumn: "1/4"
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
)
|
|
387
|
-
}
|
|
388
|
-
)
|
|
389
|
-
] });
|
|
390
|
-
}, Ue = ({
|
|
391
|
-
accountOptions: a,
|
|
392
|
-
actions: N = [],
|
|
393
|
-
calendarActions: _,
|
|
394
|
-
children: m,
|
|
395
|
-
dateRange: L,
|
|
396
|
-
dateRangeVariant: n,
|
|
397
|
-
className: W = "mx-cmn-widget",
|
|
398
|
-
hasDivider: D = !1,
|
|
399
|
-
onBackClick: s,
|
|
400
|
-
onAccountsFilterClick: f,
|
|
401
|
-
showDividerAboveDateSelector: c = !0,
|
|
402
|
-
sx: H = {},
|
|
403
|
-
title: r = ""
|
|
404
|
-
}) => {
|
|
405
|
-
const [b, p] = o.useState(!1), [k, { height: F, width: y }] = Te(), { onEvent: h } = Ee(), { isDesktop: l, isMobile: C, isTablet: I } = ie(y), { displayedDateRange: w, isCopyLoaded: x, selectedAccountGuids: v, setSelectedAccountGuids: U } = Re(), { common: e, connect: i } = ge(), { config: E } = Ae(), u = () => {
|
|
406
|
-
s && (s(), h(ve.WIDGET_BACK_CLICK));
|
|
407
|
-
};
|
|
408
|
-
if (!x)
|
|
409
|
-
return /* @__PURE__ */ t(Ie, {});
|
|
410
|
-
const S = {
|
|
411
|
-
accountFilterOptionsCopy: {
|
|
412
|
-
accountTypeAccounts: e.account_filter.account_type_accounts,
|
|
413
|
-
cancelButton: e.cancel_button,
|
|
414
|
-
filterButton: e.filter_button,
|
|
415
|
-
filterButtonAria: e.account_filter.filter_button_generic_aria,
|
|
416
|
-
selectAllAccounts: e.account_filter.select_all_accounts,
|
|
417
|
-
toggleAccountTypeAccounts: e.account_filter.toggle_account_type_accounts,
|
|
418
|
-
unselectAllAccounts: e.account_filter.unselect_all_accounts,
|
|
419
|
-
zeroStateButton: e.account_filter.zero_state_button,
|
|
420
|
-
zeroStateDescription: e.account_filter.zero_state_description,
|
|
421
|
-
zeroStateTitle: e.account_filter.zero_state_title
|
|
422
|
-
},
|
|
423
|
-
title: e.account_filter.title
|
|
424
|
-
}, R = {
|
|
425
|
-
dateRangePickerCopy: {
|
|
426
|
-
dateRangeFrom: e.date_range_picker.from,
|
|
427
|
-
dateRangeTo: e.date_range_picker.to,
|
|
428
|
-
dateRangeCustom: e.date_range_picker.custom,
|
|
429
|
-
dateRangeSelectARange: e.date_range_picker.select_range,
|
|
430
|
-
dateRangeThisMonth: e.date_range_picker.this_month,
|
|
431
|
-
dateRangeLastMonth: e.date_range_picker.last_month,
|
|
432
|
-
dateRangeLast30Days: e.date_range_picker.last_30_days,
|
|
433
|
-
dateRangeLast90Days: e.date_range_picker.last_90_days,
|
|
434
|
-
dateRangeYTD: e.date_range_picker.ytd,
|
|
435
|
-
dateRangeLastYear: e.date_range_picker.last_year,
|
|
436
|
-
dateRangeSelect: e.date_range_picker.select
|
|
437
|
-
},
|
|
438
|
-
dateRangeEditApply: e.date_range_picker.edit_apply,
|
|
439
|
-
dateRangeEditTitle: e.date_range_picker.edit_title,
|
|
440
|
-
dateRangeNextAria: e.date_range_picker.next_aria,
|
|
441
|
-
dateRangePreviousAria: e.date_range_picker.previous_aria
|
|
442
|
-
}, g = L ? L.start : w.start, $ = L ? L.end : w.end, ne = N?.length > 1;
|
|
443
|
-
return /* @__PURE__ */ d(
|
|
444
|
-
re,
|
|
445
|
-
{
|
|
446
|
-
className: W,
|
|
447
|
-
sx: {
|
|
448
|
-
...C && { px: 4 },
|
|
449
|
-
"& .mx-cmn-date-range-selector": {
|
|
450
|
-
...(C || I) && { textAlign: "center" }
|
|
451
|
-
},
|
|
452
|
-
...H
|
|
453
|
-
},
|
|
454
|
-
children: [
|
|
455
|
-
r && /* @__PURE__ */ t(
|
|
456
|
-
se,
|
|
457
|
-
{
|
|
458
|
-
action: /* @__PURE__ */ d(Y, { alignItems: "center", flexDirection: "row", children: [
|
|
459
|
-
l && _ && /* @__PURE__ */ t(Z, { sx: { flexGrow: 1 }, children: /* @__PURE__ */ t(
|
|
460
|
-
ae,
|
|
461
|
-
{
|
|
462
|
-
calendarActions: _,
|
|
463
|
-
copy: R,
|
|
464
|
-
range: [g, $],
|
|
465
|
-
shouldShrinkToIcon: !1,
|
|
466
|
-
variant: n
|
|
467
|
-
}
|
|
468
|
-
) }),
|
|
469
|
-
a && /* @__PURE__ */ t(
|
|
470
|
-
ye,
|
|
471
|
-
{
|
|
472
|
-
accounts: a,
|
|
473
|
-
copy: S,
|
|
474
|
-
onConnectAccountClick: E.show_connections_widget_in_master ? () => p(!0) : void 0,
|
|
475
|
-
onFilterClick: (O) => {
|
|
476
|
-
U(O), f?.(O);
|
|
477
|
-
},
|
|
478
|
-
selectedAccountGuids: v,
|
|
479
|
-
showAccountNumbers: !1,
|
|
480
|
-
variant: "text"
|
|
481
|
-
}
|
|
482
|
-
),
|
|
483
|
-
N?.map((O) => {
|
|
484
|
-
if (o.isValidElement(O)) return O;
|
|
485
|
-
const { iconName: A, onClick: P, label: B } = O;
|
|
486
|
-
return ne ? l || I ? /* @__PURE__ */ t(
|
|
487
|
-
M,
|
|
488
|
-
{
|
|
489
|
-
onClick: P,
|
|
490
|
-
startIcon: /* @__PURE__ */ t(T, { name: A, size: 24 }),
|
|
491
|
-
sx: { my: 4 },
|
|
492
|
-
children: B
|
|
493
|
-
},
|
|
494
|
-
A
|
|
495
|
-
) : /* @__PURE__ */ t(z, { "aria-label": B, color: "primary", onClick: P, children: /* @__PURE__ */ t(T, { name: A, size: 24 }) }, A) : l || I ? /* @__PURE__ */ t(
|
|
496
|
-
M,
|
|
497
|
-
{
|
|
498
|
-
onClick: P,
|
|
499
|
-
startIcon: /* @__PURE__ */ t(T, { name: A, size: 24 }),
|
|
500
|
-
sx: { my: 4 },
|
|
501
|
-
children: B
|
|
502
|
-
},
|
|
503
|
-
A
|
|
504
|
-
) : /* @__PURE__ */ t(z, { "aria-label": B, color: "primary", onClick: P, children: /* @__PURE__ */ t(T, { name: A, size: 24 }) }, A);
|
|
505
|
-
})
|
|
506
|
-
] }),
|
|
507
|
-
sx: {
|
|
508
|
-
p: l ? 48 : 24,
|
|
509
|
-
pb: 0,
|
|
510
|
-
"& .MuiCardHeader-action": {
|
|
511
|
-
mr: 0,
|
|
512
|
-
..._ && l && { flexGrow: 1 },
|
|
513
|
-
...(C || I) && { alignSelf: "center" }
|
|
514
|
-
},
|
|
515
|
-
"& .MuiCardHeader-content": {
|
|
516
|
-
overflow: "hidden"
|
|
517
|
-
}
|
|
518
|
-
},
|
|
519
|
-
title: l || I ? /* @__PURE__ */ t(Ce, { children: r }) : /* @__PURE__ */ d(Y, { alignItems: "center", flexDirection: "row", sx: { overflow: "hidden" }, children: [
|
|
520
|
-
C && s && /* @__PURE__ */ t(
|
|
521
|
-
z,
|
|
522
|
-
{
|
|
523
|
-
"aria-label": e.back_to_dashboard,
|
|
524
|
-
color: "primary",
|
|
525
|
-
onClick: u,
|
|
526
|
-
sx: { p: 12, mr: 4 },
|
|
527
|
-
children: /* @__PURE__ */ t(le, { size: 24 })
|
|
528
|
-
}
|
|
529
|
-
),
|
|
530
|
-
/* @__PURE__ */ t(de, { children: r })
|
|
531
|
-
] })
|
|
532
|
-
}
|
|
533
|
-
),
|
|
534
|
-
D && /* @__PURE__ */ t(q, { sx: { mt: l ? 48 : 24 } }),
|
|
535
|
-
_ && (C || I) && /* @__PURE__ */ d(Y, { gap: 24, justifyContent: "center", sx: { mt: C ? 0 : 16 }, children: [
|
|
536
|
-
c && /* @__PURE__ */ t(q, {}),
|
|
537
|
-
/* @__PURE__ */ t(
|
|
538
|
-
ae,
|
|
539
|
-
{
|
|
540
|
-
calendarActions: _,
|
|
541
|
-
copy: R,
|
|
542
|
-
range: [g, $],
|
|
543
|
-
shouldShrinkToIcon: !1,
|
|
544
|
-
variant: n
|
|
545
|
-
}
|
|
546
|
-
)
|
|
547
|
-
] }),
|
|
548
|
-
b && /* @__PURE__ */ t(
|
|
549
|
-
xe,
|
|
550
|
-
{
|
|
551
|
-
onClose: () => p(!1),
|
|
552
|
-
showConnectWidget: b,
|
|
553
|
-
title: i.mini_title
|
|
554
|
-
}
|
|
555
|
-
),
|
|
556
|
-
/* @__PURE__ */ t(oe, { ref: k, sx: { p: 0 }, children: /* @__PURE__ */ t(ue, { availableHeight: F, availableWidth: y, children: m }) })
|
|
557
|
-
]
|
|
558
|
-
}
|
|
559
|
-
);
|
|
560
|
-
}, kt = ce(Ue);
|
|
561
|
-
export {
|
|
562
|
-
ve as A,
|
|
563
|
-
ae as D,
|
|
564
|
-
kt as W
|
|
565
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { SxProps } from '@mui/material/styles';
|
|
3
|
-
import { Account } from '../../types';
|
|
4
|
-
import { AccountFilterOptionsCopy } from './AccountFilterOptions';
|
|
5
|
-
export type AccountFilterCopy = {
|
|
6
|
-
accountFilterOptionsCopy: AccountFilterOptionsCopy;
|
|
7
|
-
title: string;
|
|
8
|
-
};
|
|
9
|
-
export interface AccountFilterProps {
|
|
10
|
-
accounts: Account[];
|
|
11
|
-
copy: AccountFilterCopy;
|
|
12
|
-
onFilterClick: (selected: string[]) => void;
|
|
13
|
-
onConnectAccountClick?: () => void;
|
|
14
|
-
selectedAccountGuids: string[];
|
|
15
|
-
showAccountNumbers: boolean;
|
|
16
|
-
sx?: SxProps;
|
|
17
|
-
variant?: 'outlined' | 'text';
|
|
18
|
-
}
|
|
19
|
-
declare const AccountFilter: FC<AccountFilterProps>;
|
|
20
|
-
export default AccountFilter;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { Account } from '../../types/Account';
|
|
3
|
-
import { MappedAccount, MappedAccounts, MappedOptions } from '../../utils/AccountFilter';
|
|
4
|
-
export type AccountFilterOptionsCopy = {
|
|
5
|
-
accountTypeAccounts: string;
|
|
6
|
-
cancelButton: string;
|
|
7
|
-
filterButton: string;
|
|
8
|
-
filterButtonAria: string;
|
|
9
|
-
selectAllAccounts: string;
|
|
10
|
-
toggleAccountTypeAccounts: string;
|
|
11
|
-
unselectAllAccounts: string;
|
|
12
|
-
zeroStateButton: string;
|
|
13
|
-
zeroStateDescription: string;
|
|
14
|
-
zeroStateTitle: string;
|
|
15
|
-
};
|
|
16
|
-
interface AccountFilterOptionsProps {
|
|
17
|
-
accounts: Account[];
|
|
18
|
-
copy: AccountFilterOptionsCopy;
|
|
19
|
-
accountFilterButtonEl: HTMLButtonElement | null;
|
|
20
|
-
onAccountClick: (account: MappedAccount) => void;
|
|
21
|
-
onAccountGroupClick: (accountType: string, mappedAccounts: MappedAccounts, allGroupedAccountsSelected: boolean) => void;
|
|
22
|
-
onCancelClick: () => void;
|
|
23
|
-
onConnectAccountClick?: () => void;
|
|
24
|
-
onFilterClick: () => void;
|
|
25
|
-
selectedOptions: MappedOptions;
|
|
26
|
-
setSelectedOptions: (value: React.SetStateAction<MappedOptions>) => void;
|
|
27
|
-
handleClose: () => void;
|
|
28
|
-
showAccountNumbers: boolean;
|
|
29
|
-
}
|
|
30
|
-
export declare const AccountFilterOptions: React.FC<AccountFilterOptionsProps>;
|
|
31
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as AccountFilter } from './AccountFilter';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { MicroWidgetProps, StyleProps } from '..';
|
|
3
|
-
interface MicroInsightProps extends MicroWidgetProps {
|
|
4
|
-
actionText?: string;
|
|
5
|
-
backgroundColor?: string;
|
|
6
|
-
description?: string;
|
|
7
|
-
icon: React.ReactNode;
|
|
8
|
-
isZeroState?: boolean;
|
|
9
|
-
style?: StyleProps;
|
|
10
|
-
title?: string;
|
|
11
|
-
}
|
|
12
|
-
export declare const BaseCard: React.ForwardRefExoticComponent<MicroInsightProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
-
export {};
|
|
@@ -7,7 +7,6 @@ import x from "@mui/material/Stack";
|
|
|
7
7
|
import D from "@mui/material/Switch";
|
|
8
8
|
import { Text as L } from "@mxenabled/mxui";
|
|
9
9
|
import w from "@mui/material/ListItemAvatar";
|
|
10
|
-
var B = /* @__PURE__ */ ((r) => (r.Accounts = "accounts", r.Budgets = "budgets", r.Insights = "insights", r.Personal = "personal", r))(B || {}), P = /* @__PURE__ */ ((r) => (r[r.DebtPaymentReminder = 3] = "DebtPaymentReminder", r[r.AccountBalanceLow = 6] = "AccountBalanceLow", r[r.AccountDepositLarge = 7] = "AccountDepositLarge", r[r.TransactionExpenseLarge = 8] = "TransactionExpenseLarge", r[r.TransactionFeeCharge = 9] = "TransactionFeeCharge", r[r.InternationalTransaction = 23] = "InternationalTransaction", r[r.AccountDepositLargePosted = 48] = "AccountDepositLargePosted", r))(P || {}), b = /* @__PURE__ */ ((r) => (r[r.BudgetExceeded = 1] = "BudgetExceeded", r[r.BudgetOffTarget = 2] = "BudgetOffTarget", r))(b || {}), A = /* @__PURE__ */ ((r) => (r[r.AccountBalanceLow = 33] = "AccountBalanceLow", r[r.BillAmountNotStandard = 49] = "BillAmountNotStandard", r[r.CategorySpending = 50] = "CategorySpending", r[r.CreditCardCloseToLimit = 51] = "CreditCardCloseToLimit", r[r.DebtPaymentReminder = 37] = "DebtPaymentReminder", r[r.DuplicatePayment = 42] = "DuplicatePayment", r[r.MonthlySpendComparison = 53] = "MonthlySpendComparison", r[r.MonthlySpendToIncomeComparison = 54] = "MonthlySpendToIncomeComparison", r[r.MonthlySubscriptionAggregate = 55] = "MonthlySubscriptionAggregate", r[r.MonthlyTopMerchantSpending = 56] = "MonthlyTopMerchantSpending", r[r.SaveAnExtra100Dollars = 57] = "SaveAnExtra100Dollars", r[r.SavingsOpportunity = 58] = "SavingsOpportunity", r[r.SetUpDirectDeposit = 59] = "SetUpDirectDeposit", r[r.SwitchDirectDeposit = 60] = "SwitchDirectDeposit", r[r.UncategorizedTransactions = 61] = "UncategorizedTransactions", r[r.UnifiedDeposit = 62] = "UnifiedDeposit", r[r.UpcomingBill = 63] = "UpcomingBill", r[r.WeekendSpendingSummary = 64] = "WeekendSpendingSummary", r[r.WeeklyNewMerchants = 65] = "WeeklyNewMerchants", r[r.DiscoveredAccounts = 52] = "DiscoveredAccounts", r[r.TransactionExpenseLarge = 39] = "TransactionExpenseLarge", r[r.PromotionalCampaignMessages = 67] = "PromotionalCampaignMessages", r[r.TransparentOverdraft = 68] = "TransparentOverdraft", r))(A || {});
|
|
11
10
|
const z = ({
|
|
12
11
|
avatar: r,
|
|
13
12
|
endIcon: a,
|
|
@@ -85,6 +84,7 @@ const z = ({
|
|
|
85
84
|
)
|
|
86
85
|
}
|
|
87
86
|
);
|
|
87
|
+
var B = /* @__PURE__ */ ((r) => (r.Accounts = "accounts", r.Budgets = "budgets", r.Insights = "insights", r.Personal = "personal", r))(B || {}), P = /* @__PURE__ */ ((r) => (r[r.DebtPaymentReminder = 3] = "DebtPaymentReminder", r[r.AccountBalanceLow = 6] = "AccountBalanceLow", r[r.AccountDepositLarge = 7] = "AccountDepositLarge", r[r.TransactionExpenseLarge = 8] = "TransactionExpenseLarge", r[r.TransactionFeeCharge = 9] = "TransactionFeeCharge", r[r.InternationalTransaction = 23] = "InternationalTransaction", r[r.AccountDepositLargePosted = 48] = "AccountDepositLargePosted", r))(P || {}), b = /* @__PURE__ */ ((r) => (r[r.BudgetExceeded = 1] = "BudgetExceeded", r[r.BudgetOffTarget = 2] = "BudgetOffTarget", r))(b || {}), A = /* @__PURE__ */ ((r) => (r[r.AccountBalanceLow = 33] = "AccountBalanceLow", r[r.BillAmountNotStandard = 49] = "BillAmountNotStandard", r[r.CategorySpending = 50] = "CategorySpending", r[r.CreditCardCloseToLimit = 51] = "CreditCardCloseToLimit", r[r.DebtPaymentReminder = 37] = "DebtPaymentReminder", r[r.DuplicatePayment = 42] = "DuplicatePayment", r[r.MonthlySpendComparison = 53] = "MonthlySpendComparison", r[r.MonthlySpendToIncomeComparison = 54] = "MonthlySpendToIncomeComparison", r[r.MonthlySubscriptionAggregate = 55] = "MonthlySubscriptionAggregate", r[r.MonthlyTopMerchantSpending = 56] = "MonthlyTopMerchantSpending", r[r.SaveAnExtra100Dollars = 57] = "SaveAnExtra100Dollars", r[r.SavingsOpportunity = 58] = "SavingsOpportunity", r[r.SetUpDirectDeposit = 59] = "SetUpDirectDeposit", r[r.SwitchDirectDeposit = 60] = "SwitchDirectDeposit", r[r.UncategorizedTransactions = 61] = "UncategorizedTransactions", r[r.UnifiedDeposit = 62] = "UnifiedDeposit", r[r.UpcomingBill = 63] = "UpcomingBill", r[r.WeekendSpendingSummary = 64] = "WeekendSpendingSummary", r[r.WeeklyNewMerchants = 65] = "WeeklyNewMerchants", r[r.DiscoveredAccounts = 52] = "DiscoveredAccounts", r[r.TransactionExpenseLarge = 39] = "TransactionExpenseLarge", r[r.PromotionalCampaignMessages = 67] = "PromotionalCampaignMessages", r[r.TransparentOverdraft = 68] = "TransparentOverdraft", r))(A || {});
|
|
88
88
|
export {
|
|
89
89
|
P as A,
|
|
90
90
|
b as B,
|