@mx-cartographer/experiences 8.0.0-alpha.bb3 → 8.0.0-alpha.bb4
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 +128 -1
- package/dist/{Account-Bxw0_4FU.mjs → Account-B4CDD-zq.mjs} +1 -1
- package/dist/AccountDetailsContent-adZTkM52.mjs +683 -0
- package/dist/AccountDetailsHeader-DRjFuyJT.mjs +87 -0
- package/dist/{AccountFields-C9FlatNb.mjs → AccountFields-Cl4KHoSj.mjs} +14 -12
- package/dist/AccountListItem-wgmlex-_.mjs +90 -0
- package/dist/{AccountStore-BgNOyMdp.mjs → AccountStore-HbVblv86.mjs} +19 -8
- package/dist/{Accounts-BRf_YeTf.mjs → Accounts-CRUehOiy.mjs} +1 -1
- package/dist/{BeatApi-DhJpgCLz.mjs → BeatApi-De2IaqH2.mjs} +1 -1
- package/dist/{BeatStore-IBnXd4YK.mjs → BeatStore-D_NYuBSz.mjs} +1 -1
- package/dist/{BudgetUtil-B2ZXyw-g.mjs → BudgetUtil-Jv8h9H9l.mjs} +33 -33
- package/dist/{CashflowStore-D9Dpuz7X.mjs → CashflowStore-CA190BPF.mjs} +18 -25
- package/dist/{Category-CevNQ03n.mjs → Category-Ccoew_sA.mjs} +2 -2
- package/dist/{CategorySelectorDrawer-DUe4lH5-.mjs → CategorySelectorDrawer-Dl006GKy.mjs} +43 -41
- package/dist/{CategoryStore-yHI0hWmK.mjs → CategoryStore-MUwRWH9e.mjs} +13 -11
- package/dist/{CategoryUtil-pZRIYOgN.mjs → CategoryUtil-DfVKKkRf.mjs} +4 -4
- package/dist/{ConnectDrawer-BQNs-hjk.mjs → ConnectDrawer-DVp54lUH.mjs} +49 -48
- package/dist/{ConnectionsDrawer-ByGQE7D5.mjs → ConnectionsDrawer-Dsc04-4Z.mjs} +3 -3
- package/dist/CurrencyInput-D1cjbdCI.mjs +85 -0
- package/dist/{CurrencyText-kyC1aseI.mjs → CurrencyText-Dr0EZ7bp.mjs} +1 -1
- package/dist/{DateUtil-BcuH7ErC.mjs → DateUtil-CDPZw_-m.mjs} +3 -3
- package/dist/{DebtsStore-C9bblOgW.mjs → DebtsStore-pL63fmdT.mjs} +3 -3
- package/dist/{Dialog-CWW597AF.mjs → Dialog-CDV0kKxj.mjs} +24 -24
- package/dist/{Donut-oaQFlbit.mjs → Donut-Dmy3JTWd.mjs} +12 -12
- package/dist/Drawer-BF40nbsH.mjs +163 -0
- package/dist/{EmptyState-DA_lfRBv.mjs → EmptyState-DoxNUae-.mjs} +24 -22
- package/dist/{ExportCsvAction-sX8Rg4Ov.mjs → ExportCsvAction-QhQK4_FU.mjs} +4 -4
- package/dist/{Fetch-87LIQbEA.mjs → Fetch-DecPFeGU.mjs} +24 -22
- package/dist/FinstrongStore-BGf36b0z.mjs +451 -0
- package/dist/{GoalStore-D-aB35SY.mjs → GoalStore-C1-w3Y1E.mjs} +7 -7
- package/dist/HeaderCell-P8w6CmfO.mjs +6 -0
- package/dist/{Help-B6dIcujh.mjs → Help-DBfsTkAi.mjs} +125 -146
- package/dist/{Help-DhcC-C05.mjs → Help-c-zHlDbv.mjs} +8 -8
- package/dist/{IconBacking-B9oC6uL2.mjs → IconBacking-DgT8DCeh.mjs} +11 -11
- package/dist/LineChart-C1PxNf7P.mjs +581 -0
- package/dist/{ListItemAction-DHa3KJPs.mjs → ListItemAction-BNCWQAN_.mjs} +10 -10
- package/dist/Loader-Ckqi9Rx6.mjs +21 -0
- package/dist/{ManageIncome-1s_q5W4X.mjs → ManageIncome-8EsStyIQ.mjs} +195 -192
- package/dist/{MerchantStore-DrFvsUyy.mjs → MerchantStore-WvZ4gnQe.mjs} +1 -1
- package/dist/MicroWidgetContainer-BGpNl5ZS.mjs +45 -0
- package/dist/MiniWidgetContainer-CKzf_Ira.mjs +56 -0
- package/dist/{NetWorthStore-DCsTZpuS.mjs → NetWorthStore-Bti6u-d9.mjs} +4 -4
- package/dist/{NotificationSettings-DqrkNMod.mjs → NotificationSettings-B74rQVYC.mjs} +276 -273
- package/dist/{NotificationStore-BxP_P2dA.mjs → NotificationStore-Ck2KdNmT.mjs} +10 -10
- package/dist/{NumberFormatting-Buh7u8Oi.mjs → NumberFormatting-DjTD0t3W.mjs} +9 -9
- package/dist/{OriginalBalanceAction-CWuVvRq9.mjs → OriginalBalanceAction-2Y_3U_mg.mjs} +10 -10
- package/dist/{RecurringSettings-A_rAGCTP.mjs → RecurringSettings-DAncu--R.mjs} +17 -17
- package/dist/{RecurringTransactions-DK8dWldr.mjs → RecurringTransactions-CxcSL1dY.mjs} +106 -105
- package/dist/{RecurringTransactionsStore-C4YOD7_D.mjs → RecurringTransactionsStore-CNFxyGB6.mjs} +80 -73
- package/dist/{ResponsiveButton-DZFp78fJ.mjs → ResponsiveButton-Cn6-R7ue.mjs} +10 -10
- package/dist/SearchBox-B7km148n.mjs +39 -0
- package/dist/{SettingsStore-BcgS_Ohv.mjs → SettingsStore-BASMQSIp.mjs} +3 -3
- package/dist/{SingleSegmentDonut-BgbLgwHi.mjs → SingleSegmentDonut-7Uy6VEld.mjs} +6 -6
- package/dist/SkeletonLoader-BaNboJjD.mjs +38 -0
- package/dist/{SpendingData-D5vsfYKo.mjs → SpendingData-DPQ96k3x.mjs} +19 -19
- package/dist/SpendingLegend-6FqtMcBV.mjs +193 -0
- package/dist/{StatusBar-BK_uYHAB.mjs → StatusBar-CPfSXe80.mjs} +6 -6
- package/dist/{TabContentContainer-j01JYR_7.mjs → TabContentContainer-CnMXkVqr.mjs} +8 -8
- package/dist/{ToggleListItem-r0Kx56wF.mjs → ToggleListItem-ciFTiqRS.mjs} +19 -14
- package/dist/TransactionApi-CjBoLleL.mjs +86 -0
- package/dist/TransactionDetails-Bn0qY5Hw.mjs +1336 -0
- package/dist/{TransactionStore-ai3uII_r.mjs → TransactionStore-DbwAutwC.mjs} +146 -165
- package/dist/TrendsStore-_mRaFUdf.mjs +182 -0
- package/dist/{User-BQUxBeZV.mjs → User-BklmOUSd.mjs} +107 -107
- package/dist/{ViewMoreMicroCard-SCn2wt4i.mjs → ViewMoreMicroCard-DAkyNRlD.mjs} +706 -729
- package/dist/{WidgetContainer-BHWANqT4.mjs → WidgetContainer-CDh9fjpR.mjs} +36 -36
- package/dist/accounts/components/AccountsListCompact.d.ts +10 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +4 -1
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader.d.ts +2 -1
- package/dist/accounts/index.es.js +228 -221
- package/dist/accounts/stores/AccountStore.d.ts +2 -0
- package/dist/analytics/index.es.js +27 -27
- package/dist/budgets/index.es.js +459 -462
- package/dist/cashflow/index.es.js +419 -428
- package/dist/categories/index.es.js +2 -2
- package/dist/categories/stores/CategoryStore.d.ts +1 -1
- package/dist/common/components/ErrorBoundary.d.ts +1 -1
- package/dist/common/components/Loader.d.ts +1 -2
- package/dist/common/components/Select.d.ts +4 -2
- package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +1 -1
- package/dist/common/components/charts/LineChart.d.ts +12 -2
- package/dist/common/components/charts/index.d.ts +0 -3
- package/dist/common/components/charts/linechart/CustomLegend.d.ts +3 -1
- package/dist/common/components/charts/linechart/CustomMark.d.ts +5 -1
- package/dist/common/components/drawer/Drawer.d.ts +3 -0
- package/dist/common/components/drawer/Footer.d.ts +17 -0
- package/dist/common/components/index.d.ts +0 -1
- package/dist/common/hooks/index.d.ts +0 -1
- package/dist/common/hooks/useAriaLive.d.ts +1 -1
- package/dist/common/index.es.js +402 -668
- package/dist/common/stores/GlobalStore.d.ts +7 -1
- package/dist/common/types/Finstrong.d.ts +54 -0
- package/dist/common/types/Global.d.ts +1 -0
- package/dist/common/types/Widgets.d.ts +1 -0
- package/dist/common/types/index.d.ts +1 -1
- package/dist/common/types/localization/FinstrongCopy.d.ts +105 -2
- package/dist/common/types/localization/GoalsCopy.d.ts +1 -0
- package/dist/common/utils/Theme.d.ts +1 -3
- package/dist/dashboard/index.es.js +21 -21
- package/dist/debts/components/DebtsChart.d.ts +1 -2
- package/dist/debts/index.es.js +673 -665
- package/dist/exportTransactionsToCSV-BgV_wTLT.mjs +48 -0
- package/dist/finstrong/FinstrongWidget.d.ts +1 -1
- package/dist/finstrong/api/FinstrongApi.d.ts +5 -0
- package/dist/finstrong/components/ConnectMoreAccountsCard.d.ts +3 -1
- package/dist/finstrong/components/CreditScore/CreditScoreContent.d.ts +4 -0
- package/dist/finstrong/components/CreditScore/CreditScoreHeader.d.ts +4 -0
- package/dist/finstrong/components/FinancialStrengthGraph.d.ts +7 -1
- package/dist/finstrong/components/HaveManageableDebt/DebtPaymentTabContent.d.ts +3 -0
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtComponent.d.ts +3 -0
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtProgressBar.d.ts +4 -0
- package/dist/finstrong/components/HaveManageableDebt/IncomeTabContent.d.ts +3 -0
- package/dist/finstrong/components/KeyIndicatorsBorrowTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsDrawer.d.ts +4 -1
- package/dist/finstrong/components/KeyIndicatorsSaveTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsSpendTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsTabItem.d.ts +4 -3
- package/dist/finstrong/components/KeyIndicatorsTabItemDrawer.d.ts +10 -0
- package/dist/finstrong/components/KeyIndicatorsTabsWidget.d.ts +2 -2
- package/dist/finstrong/components/MaintainingEmergencySavings/EstimatedContributionCalculator.d.ts +6 -0
- package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsContent.d.ts +4 -0
- package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsSticky.d.ts +4 -0
- package/dist/finstrong/components/ProgressBar.d.ts +15 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/AvailableTabContent.d.ts +3 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnDrawerContent.d.ts +3 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnProgressBar.d.ts +4 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SpendingTabContent.d.ts +3 -0
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeComponent.d.ts +3 -0
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeProgressBar.d.ts +4 -0
- package/dist/finstrong/components/StatusChip.d.ts +5 -0
- package/dist/finstrong/components/onboarding/Onboarding.d.ts +2 -0
- package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.d.ts +17 -0
- package/dist/finstrong/components/onboarding/OnboardingBirthday.d.ts +8 -0
- package/dist/finstrong/components/onboarding/OnboardingCreditScore.d.ts +8 -0
- package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.d.ts +14 -0
- package/dist/finstrong/components/onboarding/OnboardingStepsHeader.d.ts +8 -0
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeDrawerComponent.d.ts +4 -0
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeStickyComponent.d.ts +4 -0
- package/dist/finstrong/components/shared/Accounts.d.ts +8 -0
- package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +25 -0
- package/dist/finstrong/components/shared/DialScoreCard.d.ts +7 -1
- 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/Transactions.d.ts +11 -0
- package/dist/finstrong/constants/index.d.ts +9 -0
- package/dist/finstrong/index.es.js +3175 -1067
- package/dist/finstrong/stores/FinstrongStore.d.ts +25 -2
- package/dist/finstrong/util/finstrongUtils.d.ts +58 -1
- package/dist/goals/index.es.js +580 -570
- package/dist/help/components/content/BottomImageContent.d.ts +1 -1
- package/dist/help/components/content/LeftImageContent.d.ts +1 -1
- package/dist/help/components/content/RightImageContent.d.ts +1 -1
- package/dist/help/components/content/TopImageContent.d.ts +1 -1
- package/dist/help/index.es.js +6 -6
- package/dist/{hooks-D6XlXHf4.mjs → hooks-C41HAxM5.mjs} +3 -3
- package/dist/insights/index.es.js +1 -1
- package/dist/investments/index.es.js +537 -536
- package/dist/merchants/index.es.js +9 -9
- package/dist/microinsights/beaticons/BeatIcon.d.ts +2 -9
- package/dist/microinsights/beaticons/BeatMerchantLogo.d.ts +3 -2
- package/dist/microinsights/beaticons/MonthlySpendComparisonIcon.d.ts +2 -1
- package/dist/microinsights/cards/{MicroInsightCard.d.ts → BaseCard.d.ts} +1 -8
- package/dist/microinsights/cards/{BeatCard.d.ts → InsightCard.d.ts} +2 -2
- package/dist/microinsights/cards/NoRelevantInsightsCard.d.ts +2 -5
- package/dist/microinsights/cards/ZeroStateCard.d.ts +2 -5
- package/dist/microinsights/carousel/BeatList.d.ts +10 -0
- package/dist/microinsights/carousel/CarouselControls.d.ts +1 -3
- package/dist/microinsights/carousel/CarouselHeader.d.ts +1 -2
- package/dist/microinsights/constants/App.d.ts +0 -1
- package/dist/microinsights/index.d.ts +3 -3
- package/dist/microinsights/index.es.js +7 -7
- package/dist/microinsights/interfaces.d.ts +0 -6
- package/dist/networth/components/NetWorthChange.d.ts +3 -1
- package/dist/networth/index.es.js +262 -254
- package/dist/notifications/index.es.js +90 -91
- package/dist/recurringtransactions/components/MicroWidgetContent.d.ts +3 -0
- package/dist/recurringtransactions/index.es.js +586 -562
- package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +1 -0
- package/dist/settings/index.es.js +371 -365
- package/dist/spending/index.es.js +267 -419
- package/dist/spending/utils/SpendingData.d.ts +2 -1
- package/dist/transactions/components/shared/TransactionDetails.d.ts +1 -0
- package/dist/transactions/components/shared/TransactionList.d.ts +1 -0
- package/dist/transactions/index.es.js +231 -226
- package/dist/transactions/stores/TransactionStore.d.ts +1 -1
- package/dist/transactions/stores/UiStore.d.ts +0 -2
- package/dist/trends/index.es.js +988 -612
- package/dist/{useAccountDisplayName-BUAApBIb.mjs → useAccountDisplayName-CcIp09Xc.mjs} +2 -2
- package/dist/{useCombineEvents-BUDIR1ba.mjs → useCombineEvents-kNzLTWCp.mjs} +3 -3
- package/dist/{useInsightsEnabled-DBpwEq10.mjs → useInsightsEnabled-CNjP5cfR.mjs} +1 -1
- package/dist/{useScreenSize-B6JyS_Lj.mjs → useScreenSize-B5afALev.mjs} +1 -1
- package/package.json +51 -56
- package/dist/AccountDetailsContent-CAM9y39M.mjs +0 -679
- package/dist/AccountDetailsHeader-JtSX6Uf9.mjs +0 -120
- package/dist/AccountListItem-JFMZROh7.mjs +0 -90
- package/dist/CurrencyInput-DUsQbkXb.mjs +0 -85
- package/dist/Drawer-kEE73B87.mjs +0 -113
- package/dist/FinstrongStore-F2c607dj.mjs +0 -101
- package/dist/HeaderCell-DjuifqHJ.mjs +0 -6
- package/dist/LineChart-D4GI7nVh.mjs +0 -541
- package/dist/Loader-DUaFpDGv.mjs +0 -24
- package/dist/MicroWidgetContainer-DpeqN9n3.mjs +0 -45
- package/dist/MiniWidgetContainer-D0gfmbaF.mjs +0 -56
- package/dist/SearchBox-B2_zLv8-.mjs +0 -42
- package/dist/TransactionApi-B3Tksf7L.mjs +0 -86
- package/dist/TransactionDetails-oP1eSuiS.mjs +0 -1334
- package/dist/TrendsStore-DCYbpXPO.mjs +0 -559
- package/dist/common/components/barchart/Bar.d.ts +0 -25
- package/dist/common/components/barchart/BarChart.d.ts +0 -34
- package/dist/common/components/barchart/BarColumn.d.ts +0 -37
- package/dist/common/components/barchart/Legend.d.ts +0 -8
- package/dist/common/components/barchart/Util.d.ts +0 -42
- package/dist/common/components/barchart/index.d.ts +0 -1
- package/dist/common/hooks/usePrevious.d.ts +0 -2
- package/dist/exportTransactionsToCSV-7bVS7KXf.mjs +0 -47
- package/dist/finstrong/utils/Finstrong.d.ts +0 -6
- package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +0 -7
- package/dist/useAriaLive-B3_pRUio.mjs +0 -35
|
@@ -1,160 +1,160 @@
|
|
|
1
|
-
import { S as
|
|
2
|
-
import { jsxs as c, Fragment as
|
|
3
|
-
import
|
|
1
|
+
import { S as $t, a as jt } from "../SettingsStore-BASMQSIp.mjs";
|
|
2
|
+
import { jsxs as c, Fragment as Q, jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import u from "react";
|
|
4
4
|
import { observer as D } from "mobx-react-lite";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { getUnixTime as
|
|
11
|
-
import { AdapterDateFns as
|
|
12
|
-
import { DatePicker as
|
|
13
|
-
import { LocalizationProvider as
|
|
14
|
-
import { useTheme as
|
|
5
|
+
import h from "@mui/material/Stack";
|
|
6
|
+
import ue from "@mui/material/Tab";
|
|
7
|
+
import pe from "@mui/material/Tabs";
|
|
8
|
+
import he from "@mui/material/Alert";
|
|
9
|
+
import fe from "@mui/material/Snackbar";
|
|
10
|
+
import { getUnixTime as _e } from "date-fns/getUnixTime";
|
|
11
|
+
import { AdapterDateFns as ge } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
12
|
+
import { DatePicker as be } from "@mui/x-date-pickers";
|
|
13
|
+
import { LocalizationProvider as ye } from "@mui/x-date-pickers/LocalizationProvider";
|
|
14
|
+
import { useTheme as A, alpha as U } from "@mui/material/styles";
|
|
15
15
|
import F from "@mui/material/Box";
|
|
16
|
-
import
|
|
16
|
+
import X from "@mui/material/Button";
|
|
17
17
|
import I from "@mui/material/TextField";
|
|
18
|
-
import { H3 as J, P as
|
|
19
|
-
import { V as
|
|
20
|
-
import { A as
|
|
21
|
-
import {
|
|
22
|
-
import { u as
|
|
23
|
-
import {
|
|
24
|
-
import { formatDistanceToNow as
|
|
25
|
-
import { fromUnixTime as
|
|
26
|
-
import P from "@mui/material/styles/useTheme";
|
|
18
|
+
import { H3 as J, P as B, Text as v, Icon as N } from "@mxenabled/mxui";
|
|
19
|
+
import { V as xe, a as ve, N as $ } from "../NotificationSettings-B74rQVYC.mjs";
|
|
20
|
+
import { A as Kt, B as Yt, I as qt } from "../NotificationSettings-B74rQVYC.mjs";
|
|
21
|
+
import { D as W } from "../Dialog-CDV0kKxj.mjs";
|
|
22
|
+
import { u as w, a as z, s as E, p as Ce, b as Z, m as ee, n as te } from "../hooks-C41HAxM5.mjs";
|
|
23
|
+
import { u as H } from "../useScreenSize-B5afALev.mjs";
|
|
24
|
+
import { formatDistanceToNow as oe } from "date-fns/formatDistanceToNow";
|
|
25
|
+
import { fromUnixTime as ne } from "date-fns/fromUnixTime";
|
|
27
26
|
import V from "@mui/material/IconButton";
|
|
28
|
-
import { DataGridPro as
|
|
29
|
-
import { H as O } from "../HeaderCell-
|
|
30
|
-
import { b as
|
|
27
|
+
import { DataGridPro as De } from "@mui/x-data-grid-pro";
|
|
28
|
+
import { H as O } from "../HeaderCell-P8w6CmfO.mjs";
|
|
29
|
+
import { b as L } from "../Localization-2MODESHW.mjs";
|
|
31
30
|
import ke from "@mui/material/Accordion";
|
|
32
31
|
import we from "@mui/material/AccordionDetails";
|
|
33
|
-
import
|
|
34
|
-
import { L as
|
|
35
|
-
import
|
|
32
|
+
import Se from "@mui/material/AccordionSummary";
|
|
33
|
+
import { L as ie } from "../Loader-Ckqi9Rx6.mjs";
|
|
34
|
+
import Te from "@mui/material/List";
|
|
36
35
|
import j from "@mui/material/Divider";
|
|
37
|
-
import
|
|
38
|
-
import { a as
|
|
39
|
-
import
|
|
40
|
-
import
|
|
36
|
+
import Ie from "@mui/material/ListSubheader";
|
|
37
|
+
import { a as Ae, u as Ee } from "../CategorySelectorDrawer-Dl006GKy.mjs";
|
|
38
|
+
import Pe from "@mui/material/ListItem";
|
|
39
|
+
import Re from "@mui/material/ListItemButton";
|
|
41
40
|
import Me from "@mui/material/ListItemIcon";
|
|
42
41
|
import Ne from "@mui/material/ListItemText";
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
42
|
+
import { ChevronRightIcon as Le } from "@mxenabled/mx-icons";
|
|
43
|
+
import { D as Be } from "../Drawer-BF40nbsH.mjs";
|
|
44
|
+
import { H as He } from "../Help-DBfsTkAi.mjs";
|
|
45
|
+
import { W as K } from "../WidgetContainer-CDh9fjpR.mjs";
|
|
46
46
|
const Oe = ({ availableWidth: t, handleOnLeavClick: a }) => {
|
|
47
|
-
const o =
|
|
48
|
-
first_name:
|
|
49
|
-
last_name:
|
|
50
|
-
email:
|
|
51
|
-
phone:
|
|
52
|
-
birthday:
|
|
53
|
-
postal_code:
|
|
54
|
-
credit_score:
|
|
55
|
-
}), [
|
|
56
|
-
|
|
47
|
+
const o = A(), { common: n, settings: i } = w(), { isDesktop: d, isMobile: s, isSmallMobile: r, isTablet: l } = H(t), { config: b } = z(), { updateUser: _ } = E(), { user: m } = Ce(), [p, k] = u.useState({
|
|
48
|
+
first_name: m.first_name,
|
|
49
|
+
last_name: m.last_name,
|
|
50
|
+
email: m.email,
|
|
51
|
+
phone: m.phone,
|
|
52
|
+
birthday: m.birthday,
|
|
53
|
+
postal_code: m.postal_code,
|
|
54
|
+
credit_score: m.credit_score
|
|
55
|
+
}), [C, S] = u.useState(!1), [T, x] = u.useState(!1), g = u.useRef(null), G = p.email && !m.email_is_verified && !C, q = p.phone && !m.phone_is_verified && !C;
|
|
56
|
+
u.useEffect(() => {
|
|
57
57
|
if (a) {
|
|
58
58
|
const f = (R) => {
|
|
59
|
-
|
|
59
|
+
g.current && !g.current.contains(R.target) && C && x(!0);
|
|
60
60
|
};
|
|
61
61
|
return document.addEventListener("mousedown", f), () => {
|
|
62
62
|
document.removeEventListener("mousedown", f);
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
|
-
}, [
|
|
66
|
-
const
|
|
67
|
-
if (
|
|
68
|
-
const f = new Date(
|
|
69
|
-
return new Date(R,
|
|
65
|
+
}, [C]);
|
|
66
|
+
const ae = () => {
|
|
67
|
+
if (p.birthday) {
|
|
68
|
+
const f = new Date(p.birthday * 1e3), R = f.getUTCFullYear(), de = f.getUTCMonth(), me = f.getUTCDate();
|
|
69
|
+
return new Date(R, de, me);
|
|
70
70
|
}
|
|
71
|
-
},
|
|
72
|
-
await _({ ...
|
|
71
|
+
}, se = async () => {
|
|
72
|
+
await _({ ...m, ...p }), S(!1);
|
|
73
73
|
}, le = () => {
|
|
74
|
-
|
|
75
|
-
},
|
|
76
|
-
|
|
77
|
-
},
|
|
74
|
+
x(!1), a && a();
|
|
75
|
+
}, ce = () => {
|
|
76
|
+
x(!1);
|
|
77
|
+
}, P = (f) => {
|
|
78
78
|
const R = {
|
|
79
|
-
...
|
|
79
|
+
...p,
|
|
80
80
|
...f
|
|
81
81
|
};
|
|
82
|
-
|
|
82
|
+
k(R), S(JSON.stringify({ ...m, ...R }) !== JSON.stringify(m));
|
|
83
83
|
};
|
|
84
|
-
return /* @__PURE__ */ c(
|
|
84
|
+
return /* @__PURE__ */ c(Q, { children: [
|
|
85
85
|
/* @__PURE__ */ c(
|
|
86
86
|
F,
|
|
87
87
|
{
|
|
88
88
|
component: "form",
|
|
89
|
-
ref:
|
|
89
|
+
ref: g,
|
|
90
90
|
sx: {
|
|
91
91
|
backgroundColor: "background.paper",
|
|
92
92
|
p: 24,
|
|
93
|
-
width:
|
|
93
|
+
width: r ? 320 : l ? 680 : d ? 990 : 400,
|
|
94
94
|
"& .MuiTextField-root": {
|
|
95
|
-
width:
|
|
95
|
+
width: r ? 272 : l ? 328 : d ? 483 : 352
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
children: [
|
|
99
|
-
/* @__PURE__ */ e(J, { children:
|
|
100
|
-
/* @__PURE__ */ e(
|
|
99
|
+
/* @__PURE__ */ e(J, { children: i.personal_details }),
|
|
100
|
+
/* @__PURE__ */ e(B, { variant: "body1", children: i.update_information }),
|
|
101
101
|
/* @__PURE__ */ c(
|
|
102
|
-
|
|
102
|
+
h,
|
|
103
103
|
{
|
|
104
|
-
direction:
|
|
105
|
-
spacing:
|
|
104
|
+
direction: s ? "column" : "row",
|
|
105
|
+
spacing: s ? 44 : 24,
|
|
106
106
|
sx: { mb: 44, pt: 32 },
|
|
107
107
|
children: [
|
|
108
108
|
/* @__PURE__ */ e(
|
|
109
109
|
I,
|
|
110
110
|
{
|
|
111
|
-
defaultValue:
|
|
112
|
-
label:
|
|
113
|
-
onChange: (f) =>
|
|
111
|
+
defaultValue: p.first_name,
|
|
112
|
+
label: i.first_name,
|
|
113
|
+
onChange: (f) => P({ first_name: f.target.value })
|
|
114
114
|
}
|
|
115
115
|
),
|
|
116
116
|
/* @__PURE__ */ e(
|
|
117
117
|
I,
|
|
118
118
|
{
|
|
119
|
-
defaultValue:
|
|
120
|
-
label:
|
|
121
|
-
onChange: (f) =>
|
|
119
|
+
defaultValue: p.last_name,
|
|
120
|
+
label: i.last_name,
|
|
121
|
+
onChange: (f) => P({ last_name: f.target.value })
|
|
122
122
|
}
|
|
123
123
|
)
|
|
124
124
|
]
|
|
125
125
|
}
|
|
126
126
|
),
|
|
127
|
-
/* @__PURE__ */ c(
|
|
128
|
-
|
|
127
|
+
/* @__PURE__ */ c(h, { direction: s ? "column" : "row", children: [
|
|
128
|
+
b.display_email_edit_field_in_settings && /* @__PURE__ */ c(h, { sx: { mb: G ? 20 : 44, mr: s ? 0 : 24 }, children: [
|
|
129
129
|
/* @__PURE__ */ e(
|
|
130
130
|
I,
|
|
131
131
|
{
|
|
132
|
-
defaultValue:
|
|
133
|
-
label:
|
|
134
|
-
onChange: (f) =>
|
|
132
|
+
defaultValue: p.email,
|
|
133
|
+
label: i.email_address,
|
|
134
|
+
onChange: (f) => P({ email: f.target.value })
|
|
135
135
|
}
|
|
136
136
|
),
|
|
137
|
-
|
|
137
|
+
G && /* @__PURE__ */ e(xe, {})
|
|
138
138
|
] }),
|
|
139
|
-
|
|
139
|
+
b.display_sms_edit_field_in_settings && /* @__PURE__ */ c(h, { sx: { mb: q ? 20 : 44 }, children: [
|
|
140
140
|
/* @__PURE__ */ e(
|
|
141
141
|
I,
|
|
142
142
|
{
|
|
143
|
-
defaultValue:
|
|
144
|
-
label:
|
|
145
|
-
onChange: (f) =>
|
|
143
|
+
defaultValue: p.phone,
|
|
144
|
+
label: i.mobile_number,
|
|
145
|
+
onChange: (f) => P({ phone: f.target.value }),
|
|
146
146
|
type: "tel"
|
|
147
147
|
}
|
|
148
148
|
),
|
|
149
|
-
|
|
149
|
+
q && /* @__PURE__ */ e(ve, {})
|
|
150
150
|
] })
|
|
151
151
|
] }),
|
|
152
|
-
/* @__PURE__ */ c(
|
|
153
|
-
/* @__PURE__ */ e(
|
|
154
|
-
|
|
152
|
+
/* @__PURE__ */ c(h, { direction: s ? "column" : "row", spacing: s ? 44 : 24, sx: { mb: 44 }, children: [
|
|
153
|
+
/* @__PURE__ */ e(ye, { dateAdapter: ge, children: /* @__PURE__ */ e(
|
|
154
|
+
be,
|
|
155
155
|
{
|
|
156
|
-
label:
|
|
157
|
-
onChange: (f) =>
|
|
156
|
+
label: i.birthdate,
|
|
157
|
+
onChange: (f) => P({ birthday: _e(f) }),
|
|
158
158
|
slotProps: {
|
|
159
159
|
nextIconButton: {
|
|
160
160
|
sx: {
|
|
@@ -176,34 +176,34 @@ const Oe = ({ availableWidth: t, handleOnLeavClick: a }) => {
|
|
|
176
176
|
"&:hover": { backgroundColor: U(o.palette.primary.light, 0.1) }
|
|
177
177
|
}
|
|
178
178
|
},
|
|
179
|
-
value:
|
|
179
|
+
value: ae()
|
|
180
180
|
}
|
|
181
181
|
) }),
|
|
182
182
|
/* @__PURE__ */ e(
|
|
183
183
|
I,
|
|
184
184
|
{
|
|
185
|
-
defaultValue:
|
|
186
|
-
label:
|
|
187
|
-
onChange: (f) =>
|
|
185
|
+
defaultValue: p.postal_code,
|
|
186
|
+
label: i.zip_code,
|
|
187
|
+
onChange: (f) => P({ postal_code: f.target.value })
|
|
188
188
|
}
|
|
189
189
|
)
|
|
190
190
|
] }),
|
|
191
|
-
/* @__PURE__ */ c(
|
|
191
|
+
/* @__PURE__ */ c(h, { children: [
|
|
192
192
|
/* @__PURE__ */ e(
|
|
193
193
|
I,
|
|
194
194
|
{
|
|
195
|
-
defaultValue:
|
|
196
|
-
label:
|
|
197
|
-
onChange: (f) =>
|
|
195
|
+
defaultValue: p.credit_score,
|
|
196
|
+
label: i.credit_score,
|
|
197
|
+
onChange: (f) => P({ credit_score: Number(f.target.value) }),
|
|
198
198
|
sx: { mb: 44 }
|
|
199
199
|
}
|
|
200
200
|
),
|
|
201
201
|
/* @__PURE__ */ e(
|
|
202
|
-
|
|
202
|
+
X,
|
|
203
203
|
{
|
|
204
|
-
disabled: !
|
|
205
|
-
onClick:
|
|
206
|
-
sx: { width:
|
|
204
|
+
disabled: !C,
|
|
205
|
+
onClick: se,
|
|
206
|
+
sx: { width: r ? 272 : 124 },
|
|
207
207
|
variant: "contained",
|
|
208
208
|
children: n.save_button
|
|
209
209
|
}
|
|
@@ -215,37 +215,37 @@ const Oe = ({ availableWidth: t, handleOnLeavClick: a }) => {
|
|
|
215
215
|
/* @__PURE__ */ e(
|
|
216
216
|
W,
|
|
217
217
|
{
|
|
218
|
-
copy: { title:
|
|
219
|
-
isOpen:
|
|
220
|
-
onClose:
|
|
218
|
+
copy: { title: i.discard_changes },
|
|
219
|
+
isOpen: T,
|
|
220
|
+
onClose: ce,
|
|
221
221
|
onSecondaryAction: le,
|
|
222
|
-
primaryText:
|
|
223
|
-
secondaryText:
|
|
224
|
-
children:
|
|
222
|
+
primaryText: i.keep_editing,
|
|
223
|
+
secondaryText: i.leave,
|
|
224
|
+
children: i.discard_changes_message
|
|
225
225
|
}
|
|
226
226
|
)
|
|
227
227
|
] });
|
|
228
228
|
}, Ue = D(Oe);
|
|
229
|
-
var
|
|
229
|
+
var y = /* @__PURE__ */ ((t) => (t.Delete = "delete", t.Edit = "edit", t.Token = "token", t))(y || {});
|
|
230
230
|
const Fe = ({
|
|
231
231
|
devices: t,
|
|
232
232
|
onClickDeviceEdit: a,
|
|
233
233
|
onClickDeviceDelete: o
|
|
234
234
|
}) => {
|
|
235
|
-
const n =
|
|
235
|
+
const n = A(), { settings: i } = w(), d = [
|
|
236
236
|
{
|
|
237
237
|
field: "name",
|
|
238
|
-
headerName:
|
|
238
|
+
headerName: i.mobile_devices_column_name,
|
|
239
239
|
renderHeader: O,
|
|
240
|
-
renderCell: (
|
|
241
|
-
/* @__PURE__ */ e(
|
|
240
|
+
renderCell: (r) => /* @__PURE__ */ c(h, { alignItems: "center", direction: "row", gap: 4, children: [
|
|
241
|
+
/* @__PURE__ */ e(v, { variant: "body2", children: r.value }),
|
|
242
242
|
/* @__PURE__ */ e(
|
|
243
243
|
V,
|
|
244
244
|
{
|
|
245
|
-
"aria-label":
|
|
245
|
+
"aria-label": i.mobile_devices_edit_label,
|
|
246
246
|
color: "secondary",
|
|
247
|
-
onClick: () => a(
|
|
248
|
-
children: /* @__PURE__ */ e(
|
|
247
|
+
onClick: () => a(r.row),
|
|
248
|
+
children: /* @__PURE__ */ e(N, { name: "edit" })
|
|
249
249
|
}
|
|
250
250
|
)
|
|
251
251
|
] }),
|
|
@@ -255,7 +255,7 @@ const Fe = ({
|
|
|
255
255
|
},
|
|
256
256
|
{
|
|
257
257
|
field: "device_type",
|
|
258
|
-
headerName:
|
|
258
|
+
headerName: i.mobile_devices_column_type,
|
|
259
259
|
renderHeader: O,
|
|
260
260
|
sortable: !0,
|
|
261
261
|
hideSortIcons: !1,
|
|
@@ -264,9 +264,9 @@ const Fe = ({
|
|
|
264
264
|
},
|
|
265
265
|
{
|
|
266
266
|
field: "created_at",
|
|
267
|
-
headerName:
|
|
267
|
+
headerName: i.mobile_devices_column_added,
|
|
268
268
|
renderHeader: O,
|
|
269
|
-
valueFormatter: (
|
|
269
|
+
valueFormatter: (r) => oe(ne(r), { addSuffix: !0 }),
|
|
270
270
|
sortable: !0,
|
|
271
271
|
hideSortIcons: !1,
|
|
272
272
|
flex: 1,
|
|
@@ -276,32 +276,32 @@ const Fe = ({
|
|
|
276
276
|
field: "delete",
|
|
277
277
|
headerName: "",
|
|
278
278
|
renderHeader: O,
|
|
279
|
-
renderCell: (
|
|
279
|
+
renderCell: (r) => /* @__PURE__ */ e(h, { mr: 4, children: /* @__PURE__ */ e(
|
|
280
280
|
V,
|
|
281
281
|
{
|
|
282
|
-
"aria-label":
|
|
282
|
+
"aria-label": i.mobile_devices_delete_label,
|
|
283
283
|
color: "secondary",
|
|
284
|
-
onClick: () => o(
|
|
285
|
-
children: /* @__PURE__ */ e(
|
|
284
|
+
onClick: () => o(r.row),
|
|
285
|
+
children: /* @__PURE__ */ e(N, { name: "delete" })
|
|
286
286
|
}
|
|
287
287
|
) }),
|
|
288
288
|
sortable: !1,
|
|
289
289
|
hideSortIcons: !1,
|
|
290
290
|
width: 58
|
|
291
291
|
}
|
|
292
|
-
],
|
|
293
|
-
id:
|
|
294
|
-
...
|
|
295
|
-
device_type: `${
|
|
292
|
+
], s = u.useMemo(() => t.map((r) => ({
|
|
293
|
+
id: r.guid,
|
|
294
|
+
...r,
|
|
295
|
+
device_type: `${r.make} ${r.model}`
|
|
296
296
|
})), [t]);
|
|
297
297
|
return /* @__PURE__ */ e(F, { sx: { width: "100%" }, children: /* @__PURE__ */ e(
|
|
298
|
-
|
|
298
|
+
De,
|
|
299
299
|
{
|
|
300
|
-
columns:
|
|
300
|
+
columns: d,
|
|
301
301
|
disableColumnFilter: !0,
|
|
302
302
|
disableColumnMenu: !0,
|
|
303
303
|
disableRowSelectionOnClick: !0,
|
|
304
|
-
rows:
|
|
304
|
+
rows: s,
|
|
305
305
|
slotProps: {
|
|
306
306
|
footer: {
|
|
307
307
|
sx: { justifyContent: "flex-end" }
|
|
@@ -318,8 +318,8 @@ const Fe = ({
|
|
|
318
318
|
alignItems: "center",
|
|
319
319
|
p: "12px 16px"
|
|
320
320
|
},
|
|
321
|
-
children: /* @__PURE__ */ e(
|
|
322
|
-
|
|
321
|
+
children: /* @__PURE__ */ e(v, { color: n.palette.text.secondary, variant: "body2", children: L(
|
|
322
|
+
i.mobile_devices_count,
|
|
323
323
|
/* @__PURE__ */ e("b", { children: t.length }),
|
|
324
324
|
/* @__PURE__ */ e("b", { children: t.length })
|
|
325
325
|
) })
|
|
@@ -328,7 +328,7 @@ const Fe = ({
|
|
|
328
328
|
},
|
|
329
329
|
sx: {
|
|
330
330
|
border: "1px solid",
|
|
331
|
-
borderColor: n.palette.
|
|
331
|
+
borderColor: n.palette.neutral.light,
|
|
332
332
|
borderRadius: "8px",
|
|
333
333
|
"& .MuiDataGrid-columnHeader .MuiIconButton-root": {
|
|
334
334
|
color: n.palette.primary.main,
|
|
@@ -347,30 +347,30 @@ const Fe = ({
|
|
|
347
347
|
onClickDeviceEdit: a,
|
|
348
348
|
onClickDeviceDelete: o
|
|
349
349
|
}) => {
|
|
350
|
-
const n =
|
|
351
|
-
|
|
350
|
+
const n = A(), { settings: i } = w(), [d, s] = u.useState(!1), r = (l) => (b, _) => {
|
|
351
|
+
s(_ ? l : !1);
|
|
352
352
|
};
|
|
353
|
-
return /* @__PURE__ */ c(
|
|
354
|
-
t.map((
|
|
353
|
+
return /* @__PURE__ */ c(h, { mx: -28, sx: { "& .MuiAccordion-root": { mb: 0, mt: 0 } }, children: [
|
|
354
|
+
t.map((l) => /* @__PURE__ */ c(
|
|
355
355
|
ke,
|
|
356
356
|
{
|
|
357
|
-
expanded:
|
|
358
|
-
onChange:
|
|
357
|
+
expanded: d === l.guid,
|
|
358
|
+
onChange: r(l.guid),
|
|
359
359
|
sx: { boxShadow: "none" },
|
|
360
360
|
children: [
|
|
361
361
|
/* @__PURE__ */ e(
|
|
362
|
-
|
|
362
|
+
Se,
|
|
363
363
|
{
|
|
364
|
-
expandIcon: /* @__PURE__ */ e(
|
|
364
|
+
expandIcon: /* @__PURE__ */ e(N, { color: "secondary", name: "keyboard_arrow_down", size: 24 }),
|
|
365
365
|
sx: {
|
|
366
366
|
padding: "14px 24px",
|
|
367
367
|
borderBottom: "1px solid",
|
|
368
|
-
borderColor: n.palette.
|
|
368
|
+
borderColor: n.palette.neutral.light
|
|
369
369
|
},
|
|
370
|
-
children: /* @__PURE__ */ c(
|
|
371
|
-
/* @__PURE__ */ e(
|
|
372
|
-
/* @__PURE__ */ e(
|
|
373
|
-
/* @__PURE__ */ e(
|
|
370
|
+
children: /* @__PURE__ */ c(h, { gap: 4, children: [
|
|
371
|
+
/* @__PURE__ */ e(v, { bold: !0, variant: "body1", children: l.name }),
|
|
372
|
+
/* @__PURE__ */ e(v, { color: n.palette.text.secondary, variant: "body2", children: `${l.make} ${l.model}` }),
|
|
373
|
+
/* @__PURE__ */ e(v, { color: n.palette.text.secondary, variant: "body2", children: oe(ne(l.created_at), { addSuffix: !0 }) })
|
|
374
374
|
] })
|
|
375
375
|
}
|
|
376
376
|
),
|
|
@@ -380,9 +380,9 @@ const Fe = ({
|
|
|
380
380
|
sx: { backgroundColor: n.palette.background.default, p: "0 0 0 24px" },
|
|
381
381
|
children: [
|
|
382
382
|
/* @__PURE__ */ c(
|
|
383
|
-
|
|
383
|
+
h,
|
|
384
384
|
{
|
|
385
|
-
onClick: () => a(
|
|
385
|
+
onClick: () => a(l),
|
|
386
386
|
sx: {
|
|
387
387
|
alignItems: "center",
|
|
388
388
|
flexDirection: "row",
|
|
@@ -391,18 +391,18 @@ const Fe = ({
|
|
|
391
391
|
py: 16,
|
|
392
392
|
cursor: "pointer",
|
|
393
393
|
borderBottom: "1px solid",
|
|
394
|
-
borderColor: n.palette.
|
|
394
|
+
borderColor: n.palette.neutral.light
|
|
395
395
|
},
|
|
396
396
|
children: [
|
|
397
|
-
/* @__PURE__ */ e(V, { "aria-label":
|
|
398
|
-
/* @__PURE__ */ e(
|
|
397
|
+
/* @__PURE__ */ e(V, { "aria-label": i.mobile_devices_edit_label, color: "secondary", children: /* @__PURE__ */ e(N, { name: "edit" }) }),
|
|
398
|
+
/* @__PURE__ */ e(v, { variant: "body1", children: i.mobile_devices_edit_label })
|
|
399
399
|
]
|
|
400
400
|
}
|
|
401
401
|
),
|
|
402
402
|
/* @__PURE__ */ c(
|
|
403
|
-
|
|
403
|
+
h,
|
|
404
404
|
{
|
|
405
|
-
onClick: () => o(
|
|
405
|
+
onClick: () => o(l),
|
|
406
406
|
sx: {
|
|
407
407
|
alignItems: "center",
|
|
408
408
|
flexDirection: "row",
|
|
@@ -412,8 +412,8 @@ const Fe = ({
|
|
|
412
412
|
cursor: "pointer"
|
|
413
413
|
},
|
|
414
414
|
children: [
|
|
415
|
-
/* @__PURE__ */ e(V, { "aria-label":
|
|
416
|
-
/* @__PURE__ */ e(
|
|
415
|
+
/* @__PURE__ */ e(V, { "aria-label": i.mobile_devices_delete_label, color: "secondary", children: /* @__PURE__ */ e(N, { name: "delete" }) }),
|
|
416
|
+
/* @__PURE__ */ e(v, { variant: "body1", children: i.mobile_devices_delete_label })
|
|
417
417
|
]
|
|
418
418
|
}
|
|
419
419
|
)
|
|
@@ -422,7 +422,7 @@ const Fe = ({
|
|
|
422
422
|
)
|
|
423
423
|
]
|
|
424
424
|
},
|
|
425
|
-
|
|
425
|
+
l.guid
|
|
426
426
|
)),
|
|
427
427
|
/* @__PURE__ */ e(
|
|
428
428
|
F,
|
|
@@ -430,57 +430,57 @@ const Fe = ({
|
|
|
430
430
|
sx: {
|
|
431
431
|
backgroundColor: n.palette.background.default,
|
|
432
432
|
borderTop: "1px solid",
|
|
433
|
-
borderColor: n.palette.
|
|
433
|
+
borderColor: n.palette.neutral.light,
|
|
434
434
|
p: "12px 16px"
|
|
435
435
|
},
|
|
436
|
-
children: /* @__PURE__ */ e(
|
|
437
|
-
|
|
436
|
+
children: /* @__PURE__ */ e(v, { color: n.palette.text.secondary, variant: "body2", children: L(
|
|
437
|
+
i.mobile_devices_count,
|
|
438
438
|
/* @__PURE__ */ e("b", { children: t.length }),
|
|
439
439
|
/* @__PURE__ */ e("b", { children: t.length })
|
|
440
440
|
) })
|
|
441
441
|
}
|
|
442
442
|
)
|
|
443
443
|
] });
|
|
444
|
-
},
|
|
444
|
+
}, We = ({
|
|
445
445
|
dialogType: t,
|
|
446
446
|
isOpen: a,
|
|
447
447
|
onClose: o,
|
|
448
448
|
device: n,
|
|
449
|
-
deviceToken:
|
|
449
|
+
deviceToken: i = ""
|
|
450
450
|
}) => {
|
|
451
|
-
const
|
|
452
|
-
|
|
453
|
-
n &&
|
|
451
|
+
const d = A(), { common: s, settings: r } = w(), { updateDevice: l, deleteDevice: b, setAlert: _, loadDevices: m } = E(), [p, k] = u.useState("");
|
|
452
|
+
u.useEffect(() => {
|
|
453
|
+
n && k(n.name);
|
|
454
454
|
}, [n, t]);
|
|
455
|
-
const
|
|
455
|
+
const C = () => {
|
|
456
456
|
switch (t) {
|
|
457
|
-
case
|
|
458
|
-
return
|
|
459
|
-
case
|
|
460
|
-
return
|
|
457
|
+
case y.Edit:
|
|
458
|
+
return r.mobile_devices_edit_label;
|
|
459
|
+
case y.Delete:
|
|
460
|
+
return r.mobile_devices_delete_label;
|
|
461
461
|
default:
|
|
462
462
|
return "";
|
|
463
463
|
}
|
|
464
|
-
},
|
|
464
|
+
}, S = () => {
|
|
465
465
|
switch (t) {
|
|
466
|
-
case
|
|
467
|
-
return
|
|
468
|
-
case
|
|
469
|
-
return
|
|
470
|
-
case
|
|
471
|
-
return
|
|
466
|
+
case y.Token:
|
|
467
|
+
return s.done_button;
|
|
468
|
+
case y.Edit:
|
|
469
|
+
return s.save_button;
|
|
470
|
+
case y.Delete:
|
|
471
|
+
return s.delete_button;
|
|
472
472
|
default:
|
|
473
473
|
return "";
|
|
474
474
|
}
|
|
475
|
-
},
|
|
476
|
-
const
|
|
475
|
+
}, T = () => {
|
|
476
|
+
const g = {
|
|
477
477
|
"& .MuiDialogContent-root": {
|
|
478
478
|
width: 400,
|
|
479
479
|
pt: 0
|
|
480
480
|
}
|
|
481
481
|
};
|
|
482
|
-
return t ===
|
|
483
|
-
...
|
|
482
|
+
return t === y.Token ? {
|
|
483
|
+
...g,
|
|
484
484
|
"& .MuiToolbar-root:last-child": {
|
|
485
485
|
padding: "32px 60px 48px",
|
|
486
486
|
justifyContent: "center"
|
|
@@ -492,86 +492,86 @@ const Fe = ({
|
|
|
492
492
|
flex: 1
|
|
493
493
|
}
|
|
494
494
|
} : {
|
|
495
|
-
...
|
|
495
|
+
...g,
|
|
496
496
|
"& .MuiToolbar-root:last-child": {
|
|
497
497
|
gap: 8,
|
|
498
498
|
padding: 24,
|
|
499
499
|
justifyContent: "flex-end"
|
|
500
500
|
},
|
|
501
|
-
...t ===
|
|
502
|
-
"& .MuiTypography-
|
|
501
|
+
...t === y.Delete && {
|
|
502
|
+
"& .MuiTypography-body1": {
|
|
503
503
|
padding: 0
|
|
504
504
|
}
|
|
505
505
|
}
|
|
506
506
|
};
|
|
507
|
-
},
|
|
508
|
-
if (t ===
|
|
509
|
-
const
|
|
510
|
-
(await
|
|
511
|
-
|
|
507
|
+
}, x = async () => {
|
|
508
|
+
if (t === y.Token && o(), t === y.Edit && n) {
|
|
509
|
+
const g = { ...n, name: p };
|
|
510
|
+
(await l(g)).success ? (_(r.mobile_devices_edit_success, "success"), m()) : _(
|
|
511
|
+
L(r.mobile_devices_edit_error, n.name),
|
|
512
512
|
"error"
|
|
513
513
|
), o();
|
|
514
514
|
}
|
|
515
|
-
t ===
|
|
516
|
-
|
|
515
|
+
t === y.Delete && n && ((await b(n.guid)).success ? (_(
|
|
516
|
+
L(r.mobile_devices_delete_success, n.name),
|
|
517
517
|
"success"
|
|
518
|
-
),
|
|
519
|
-
|
|
518
|
+
), m()) : _(
|
|
519
|
+
L(r.mobile_devices_delete_error, n.name),
|
|
520
520
|
"error"
|
|
521
521
|
), o());
|
|
522
522
|
};
|
|
523
523
|
return /* @__PURE__ */ c(
|
|
524
524
|
W,
|
|
525
525
|
{
|
|
526
|
-
copy: { title:
|
|
526
|
+
copy: { title: C() },
|
|
527
527
|
isOpen: a,
|
|
528
528
|
onClose: o,
|
|
529
|
-
onPrimaryAction:
|
|
529
|
+
onPrimaryAction: x,
|
|
530
530
|
onSecondaryAction: o,
|
|
531
|
-
primaryColor: t ===
|
|
532
|
-
primaryText:
|
|
533
|
-
secondaryText: t ===
|
|
534
|
-
sx:
|
|
531
|
+
primaryColor: t === y.Delete ? "error" : void 0,
|
|
532
|
+
primaryText: S(),
|
|
533
|
+
secondaryText: t === y.Token ? s.back : s.cancel_button,
|
|
534
|
+
sx: T(),
|
|
535
535
|
children: [
|
|
536
|
-
t ===
|
|
537
|
-
/* @__PURE__ */ e(
|
|
538
|
-
/* @__PURE__ */ e(
|
|
536
|
+
t === y.Token && /* @__PURE__ */ c(h, { spacing: 16, sx: { px: 40, textAlign: "center", width: "100%" }, children: [
|
|
537
|
+
/* @__PURE__ */ e(v, { bold: !0, truncate: !1, variant: "body1", children: r.mobile_devices_access_label }),
|
|
538
|
+
/* @__PURE__ */ e(v, { truncate: !1, variant: "body2", children: r.mobile_devices_access_info_1 }),
|
|
539
539
|
/* @__PURE__ */ e(
|
|
540
|
-
|
|
540
|
+
v,
|
|
541
541
|
{
|
|
542
542
|
sx: {
|
|
543
|
-
border: `1px solid ${
|
|
543
|
+
border: `1px solid ${d.palette.neutral.light}`,
|
|
544
544
|
borderRadius: "4px",
|
|
545
545
|
p: "16px 32px"
|
|
546
546
|
},
|
|
547
|
-
variant: "
|
|
548
|
-
children:
|
|
547
|
+
variant: "h1",
|
|
548
|
+
children: i
|
|
549
549
|
}
|
|
550
550
|
),
|
|
551
|
-
/* @__PURE__ */ e(
|
|
551
|
+
/* @__PURE__ */ e(v, { truncate: !1, variant: "body2", children: r.mobile_devices_access_info_2 })
|
|
552
552
|
] }),
|
|
553
|
-
t ===
|
|
554
|
-
t ===
|
|
553
|
+
t === y.Edit && /* @__PURE__ */ e(h, { children: /* @__PURE__ */ e(I, { onChange: (g) => k(g.target.value), value: p }) }),
|
|
554
|
+
t === y.Delete && /* @__PURE__ */ e(B, { children: r.mobile_devices_delete_info })
|
|
555
555
|
]
|
|
556
556
|
}
|
|
557
557
|
);
|
|
558
|
-
},
|
|
559
|
-
const { isMobile: t } =
|
|
560
|
-
|
|
561
|
-
n &&
|
|
558
|
+
}, ze = D(We), Ge = D(() => {
|
|
559
|
+
const { isMobile: t } = H(), { settings: a } = w(), { isCopyLoaded: o, isInitialized: n } = Z(), { setAlert: i, devices: d, loadDevices: s, generateDeviceToken: r } = E(), [l, b] = u.useState({ open: !1, type: "" }), [_, m] = u.useState(), [p, k] = u.useState("");
|
|
560
|
+
u.useEffect(() => {
|
|
561
|
+
n && s();
|
|
562
562
|
}, [n]);
|
|
563
|
-
const
|
|
564
|
-
const
|
|
565
|
-
|
|
566
|
-
},
|
|
567
|
-
|
|
568
|
-
},
|
|
569
|
-
|
|
570
|
-
},
|
|
571
|
-
|
|
563
|
+
const C = async () => {
|
|
564
|
+
const g = await r();
|
|
565
|
+
g ? (k(g), b({ open: !0, type: y.Token })) : i(a.mobile_devices_access_error, "error");
|
|
566
|
+
}, S = (g) => {
|
|
567
|
+
m(g), b({ open: !0, type: y.Edit });
|
|
568
|
+
}, T = (g) => {
|
|
569
|
+
m(g), b({ open: !0, type: y.Delete });
|
|
570
|
+
}, x = () => {
|
|
571
|
+
b({ open: !1, type: "" }), m(void 0);
|
|
572
572
|
};
|
|
573
|
-
return !o || !n ? /* @__PURE__ */ e(
|
|
574
|
-
|
|
573
|
+
return !o || !n ? /* @__PURE__ */ e(ie, {}) : /* @__PURE__ */ c(
|
|
574
|
+
h,
|
|
575
575
|
{
|
|
576
576
|
sx: {
|
|
577
577
|
backgroundColor: "background.paper",
|
|
@@ -579,91 +579,91 @@ const Fe = ({
|
|
|
579
579
|
gap: 24
|
|
580
580
|
},
|
|
581
581
|
children: [
|
|
582
|
-
/* @__PURE__ */ c(
|
|
582
|
+
/* @__PURE__ */ c(h, { gap: 4, children: [
|
|
583
583
|
/* @__PURE__ */ e(J, { children: a.mobile_devices_title }),
|
|
584
|
-
/* @__PURE__ */ e(
|
|
584
|
+
/* @__PURE__ */ e(B, { variant: "body1", children: a.mobile_devices_info })
|
|
585
585
|
] }),
|
|
586
586
|
t ? /* @__PURE__ */ e(
|
|
587
587
|
Ve,
|
|
588
588
|
{
|
|
589
|
-
devices:
|
|
590
|
-
onClickDeviceDelete:
|
|
591
|
-
onClickDeviceEdit:
|
|
589
|
+
devices: d,
|
|
590
|
+
onClickDeviceDelete: T,
|
|
591
|
+
onClickDeviceEdit: S
|
|
592
592
|
}
|
|
593
593
|
) : /* @__PURE__ */ e(
|
|
594
594
|
Fe,
|
|
595
595
|
{
|
|
596
|
-
devices:
|
|
597
|
-
onClickDeviceDelete:
|
|
598
|
-
onClickDeviceEdit:
|
|
596
|
+
devices: d,
|
|
597
|
+
onClickDeviceDelete: T,
|
|
598
|
+
onClickDeviceEdit: S
|
|
599
599
|
}
|
|
600
600
|
),
|
|
601
|
-
/* @__PURE__ */ c(
|
|
602
|
-
/* @__PURE__ */ e(
|
|
603
|
-
/* @__PURE__ */ e(
|
|
604
|
-
/* @__PURE__ */ e(
|
|
601
|
+
/* @__PURE__ */ c(h, { sx: { alignItems: "center", px: 24, py: 12, gap: 4 }, children: [
|
|
602
|
+
/* @__PURE__ */ e(v, { bold: !0, variant: "body1", children: a.mobile_devices_access_title }),
|
|
603
|
+
/* @__PURE__ */ e(B, { align: "center", variant: "body2", children: a.mobile_devices_access_description }),
|
|
604
|
+
/* @__PURE__ */ e(X, { onClick: C, variant: "text", children: a.mobile_devices_access_cta })
|
|
605
605
|
] }),
|
|
606
606
|
/* @__PURE__ */ e(
|
|
607
|
-
|
|
607
|
+
ze,
|
|
608
608
|
{
|
|
609
609
|
device: _,
|
|
610
|
-
deviceToken:
|
|
611
|
-
dialogType:
|
|
612
|
-
isOpen:
|
|
613
|
-
onClose:
|
|
610
|
+
deviceToken: p,
|
|
611
|
+
dialogType: l.type,
|
|
612
|
+
isOpen: l.open,
|
|
613
|
+
onClose: x
|
|
614
614
|
}
|
|
615
615
|
)
|
|
616
616
|
]
|
|
617
617
|
}
|
|
618
618
|
);
|
|
619
|
-
}),
|
|
619
|
+
}), Y = D(
|
|
620
620
|
({ onClick: t, primaryText: a, secondaryText: o, sx: n }) => {
|
|
621
|
-
const
|
|
622
|
-
return /* @__PURE__ */ e(
|
|
621
|
+
const i = A();
|
|
622
|
+
return /* @__PURE__ */ e(Pe, { sx: { bgcolor: i.palette.background.paper }, children: /* @__PURE__ */ c(Re, { alignItems: "flex-start", onClick: t, sx: n, children: [
|
|
623
623
|
/* @__PURE__ */ e(Ne, { primary: a, secondary: o }),
|
|
624
|
-
/* @__PURE__ */ e(Me, { children: /* @__PURE__ */ e(
|
|
624
|
+
/* @__PURE__ */ e(Me, { children: /* @__PURE__ */ e(Le, {}) })
|
|
625
625
|
] }) });
|
|
626
626
|
}
|
|
627
|
-
),
|
|
628
|
-
const { settings: t } =
|
|
629
|
-
|
|
630
|
-
},
|
|
631
|
-
|
|
632
|
-
},
|
|
633
|
-
o && o.category_guid !== _ && (o.category_guid = _, await n(o)),
|
|
627
|
+
), $e = D(() => {
|
|
628
|
+
const { settings: t } = w(), { categories: a } = ee(), { selectedRule: o, updateRuleCategory: n } = E(), [i, d] = u.useState(!1), s = () => {
|
|
629
|
+
d(!1);
|
|
630
|
+
}, r = () => {
|
|
631
|
+
d(!0);
|
|
632
|
+
}, l = (_) => a.find((m) => m.guid === _)?.name, b = async (_) => {
|
|
633
|
+
o && o.category_guid !== _ && (o.category_guid = _, await n(o)), s();
|
|
634
634
|
};
|
|
635
|
-
return /* @__PURE__ */ c(
|
|
635
|
+
return /* @__PURE__ */ c(u.Fragment, { children: [
|
|
636
636
|
/* @__PURE__ */ e(
|
|
637
|
-
|
|
637
|
+
Y,
|
|
638
638
|
{
|
|
639
|
-
onClick:
|
|
640
|
-
primaryText: o?.category_guid ?
|
|
639
|
+
onClick: r,
|
|
640
|
+
primaryText: o?.category_guid ? l(o.category_guid) : "",
|
|
641
641
|
secondaryText: t.category
|
|
642
642
|
}
|
|
643
643
|
),
|
|
644
644
|
/* @__PURE__ */ e(
|
|
645
|
-
|
|
645
|
+
Ae,
|
|
646
646
|
{
|
|
647
647
|
initialSelected: o?.category_guid ? o.category_guid : void 0,
|
|
648
|
-
onClose:
|
|
649
|
-
onSelect:
|
|
650
|
-
showDrawer:
|
|
648
|
+
onClose: s,
|
|
649
|
+
onSelect: b,
|
|
650
|
+
showDrawer: i,
|
|
651
651
|
title: t.select_category
|
|
652
652
|
}
|
|
653
653
|
)
|
|
654
654
|
] });
|
|
655
|
-
}),
|
|
656
|
-
const { common: t, settings: a } =
|
|
657
|
-
|
|
658
|
-
},
|
|
659
|
-
|
|
655
|
+
}), je = D(() => {
|
|
656
|
+
const { common: t, settings: a } = w(), { selectedRule: o, updateRulePayee: n } = E(), i = A(), [d, s] = u.useState(!1), r = o?.description ? o.description : o?.match_description, [l, b] = u.useState(r || ""), _ = () => {
|
|
657
|
+
s(!0);
|
|
658
|
+
}, m = async () => {
|
|
659
|
+
l !== r && o && (o.description = l, await n(o), s(!1));
|
|
660
660
|
};
|
|
661
|
-
return /* @__PURE__ */ c(
|
|
661
|
+
return /* @__PURE__ */ c(u.Fragment, { children: [
|
|
662
662
|
/* @__PURE__ */ e(
|
|
663
|
-
|
|
663
|
+
Y,
|
|
664
664
|
{
|
|
665
665
|
onClick: _,
|
|
666
|
-
primaryText:
|
|
666
|
+
primaryText: r,
|
|
667
667
|
secondaryText: a.payee
|
|
668
668
|
}
|
|
669
669
|
),
|
|
@@ -671,33 +671,33 @@ const Fe = ({
|
|
|
671
671
|
W,
|
|
672
672
|
{
|
|
673
673
|
copy: { title: a.edit_payee },
|
|
674
|
-
isOpen:
|
|
675
|
-
onClose: () =>
|
|
676
|
-
onPrimaryAction:
|
|
677
|
-
onSecondaryAction: () =>
|
|
674
|
+
isOpen: d,
|
|
675
|
+
onClose: () => s(!1),
|
|
676
|
+
onPrimaryAction: m,
|
|
677
|
+
onSecondaryAction: () => s(!1),
|
|
678
678
|
primaryText: t.save_button,
|
|
679
679
|
secondaryText: t.cancel_button,
|
|
680
680
|
sx: {
|
|
681
681
|
"& .MuiDialogContent-root": { pt: 0, width: 400 },
|
|
682
|
-
path: { fill:
|
|
682
|
+
path: { fill: i.palette.secondary.dark }
|
|
683
683
|
},
|
|
684
684
|
children: /* @__PURE__ */ e(
|
|
685
685
|
I,
|
|
686
686
|
{
|
|
687
|
-
onChange: (
|
|
687
|
+
onChange: (p) => b(p.target.value),
|
|
688
688
|
sx: { width: 352 },
|
|
689
|
-
value:
|
|
689
|
+
value: l
|
|
690
690
|
}
|
|
691
691
|
)
|
|
692
692
|
}
|
|
693
693
|
)
|
|
694
694
|
] });
|
|
695
|
-
}),
|
|
696
|
-
const { common: n, settings:
|
|
695
|
+
}), Je = D(({ onClose: t, onDelete: a, isOpen: o }) => {
|
|
696
|
+
const { common: n, settings: i } = w(), d = A();
|
|
697
697
|
return /* @__PURE__ */ e(
|
|
698
698
|
W,
|
|
699
699
|
{
|
|
700
|
-
copy: { title:
|
|
700
|
+
copy: { title: i.delete_rule },
|
|
701
701
|
isOpen: o,
|
|
702
702
|
onClose: t,
|
|
703
703
|
onPrimaryAction: a,
|
|
@@ -707,44 +707,44 @@ const Fe = ({
|
|
|
707
707
|
secondaryText: n.cancel_button,
|
|
708
708
|
sx: {
|
|
709
709
|
"& .MuiButton-outlined": {
|
|
710
|
-
borderColor:
|
|
711
|
-
color:
|
|
710
|
+
borderColor: d.palette.divider,
|
|
711
|
+
color: d.palette.secondary.main
|
|
712
712
|
},
|
|
713
713
|
"& .MuiDialogContent-root": { pt: 0, width: 400 },
|
|
714
|
-
path: { fill:
|
|
714
|
+
path: { fill: d.palette.secondary.dark }
|
|
715
715
|
},
|
|
716
|
-
children: /* @__PURE__ */ e(
|
|
716
|
+
children: /* @__PURE__ */ e(v, { truncate: !1, variant: "body2", children: i.delete_rule_confirm })
|
|
717
717
|
}
|
|
718
718
|
);
|
|
719
|
-
}),
|
|
719
|
+
}), Ke = D(
|
|
720
720
|
({ isOpen: t, onClose: a, onDelete: o }) => {
|
|
721
|
-
const { common: n, settings:
|
|
721
|
+
const { common: n, settings: i } = w(), d = A(), [s, r] = u.useState(!1);
|
|
722
722
|
return /* @__PURE__ */ c(
|
|
723
|
-
|
|
723
|
+
Be,
|
|
724
724
|
{
|
|
725
725
|
hasSecondaryAction: !1,
|
|
726
726
|
isOpen: t,
|
|
727
727
|
onClose: a,
|
|
728
728
|
onPrimaryAction: () => {
|
|
729
|
-
|
|
729
|
+
r(!0);
|
|
730
730
|
},
|
|
731
731
|
primaryColor: "error",
|
|
732
732
|
primaryText: n.delete_button,
|
|
733
733
|
sx: {
|
|
734
|
-
"& .MuiToolbar-root": { borderTop: `1px solid ${
|
|
734
|
+
"& .MuiToolbar-root": { borderTop: `1px solid ${d.palette.neutral.light}` }
|
|
735
735
|
},
|
|
736
|
-
title:
|
|
736
|
+
title: i.edit_rule,
|
|
737
737
|
children: [
|
|
738
|
-
/* @__PURE__ */ e(
|
|
739
|
-
/* @__PURE__ */ e(Je, {}),
|
|
740
|
-
/* @__PURE__ */ e(j, { sx: { ml: 24 } }),
|
|
738
|
+
/* @__PURE__ */ e(Ie, { children: /* @__PURE__ */ e(v, { bold: !0, variant: "caption", children: i.details }) }),
|
|
741
739
|
/* @__PURE__ */ e(je, {}),
|
|
742
740
|
/* @__PURE__ */ e(j, { sx: { ml: 24 } }),
|
|
741
|
+
/* @__PURE__ */ e($e, {}),
|
|
742
|
+
/* @__PURE__ */ e(j, { sx: { ml: 24 } }),
|
|
743
743
|
/* @__PURE__ */ e(
|
|
744
|
-
|
|
744
|
+
Je,
|
|
745
745
|
{
|
|
746
|
-
isOpen:
|
|
747
|
-
onClose: () =>
|
|
746
|
+
isOpen: s,
|
|
747
|
+
onClose: () => r(!1),
|
|
748
748
|
onDelete: o
|
|
749
749
|
}
|
|
750
750
|
)
|
|
@@ -753,55 +753,57 @@ const Fe = ({
|
|
|
753
753
|
);
|
|
754
754
|
}
|
|
755
755
|
), Ye = D(({ rule: t }) => {
|
|
756
|
-
const { categories: a } = ee(), { setSelectedGuid: o } =
|
|
757
|
-
|
|
756
|
+
const { categories: a } = ee(), { setSelectedGuid: o } = Ee(), { deleteTransactionRule: n, setSelectedRule: i } = E(), { isDesktop: d, isTablet: s } = H(), [r, l] = u.useState(!1), b = () => {
|
|
757
|
+
l(!1), o(null), i(void 0);
|
|
758
758
|
}, _ = async () => {
|
|
759
|
-
await n(),
|
|
760
|
-
},
|
|
761
|
-
|
|
762
|
-
},
|
|
763
|
-
return /* @__PURE__ */ c(
|
|
759
|
+
await n(), b();
|
|
760
|
+
}, m = () => {
|
|
761
|
+
l(!0), i(t);
|
|
762
|
+
}, p = (k) => a.find((C) => C.guid === k)?.name;
|
|
763
|
+
return /* @__PURE__ */ c(u.Fragment, { children: [
|
|
764
764
|
/* @__PURE__ */ e(
|
|
765
|
-
|
|
765
|
+
Y,
|
|
766
766
|
{
|
|
767
|
-
onClick:
|
|
767
|
+
onClick: m,
|
|
768
768
|
primaryText: t.description ? t.description : t.match_description,
|
|
769
|
-
secondaryText: t.category_guid ?
|
|
769
|
+
secondaryText: t.category_guid ? p(t.category_guid) : ""
|
|
770
770
|
}
|
|
771
771
|
),
|
|
772
|
-
/* @__PURE__ */ e(j, { sx: { ml:
|
|
773
|
-
/* @__PURE__ */ e(
|
|
772
|
+
/* @__PURE__ */ e(j, { sx: { ml: s || d ? 0 : 24 } }),
|
|
773
|
+
/* @__PURE__ */ e(Ke, { isOpen: r, onClose: b, onDelete: _ })
|
|
774
774
|
] });
|
|
775
|
-
}),
|
|
776
|
-
const { settings: t } =
|
|
777
|
-
return
|
|
778
|
-
a().finally()
|
|
779
|
-
|
|
780
|
-
|
|
775
|
+
}), re = D(() => {
|
|
776
|
+
const { settings: t } = w(), { loadTransactionRules: a, transactionRules: o } = E(), { onLoad: n } = te();
|
|
777
|
+
return u.useEffect(() => {
|
|
778
|
+
a().finally(() => {
|
|
779
|
+
n?.("TransactionRulesTab");
|
|
780
|
+
});
|
|
781
|
+
}, []), /* @__PURE__ */ c(h, { sx: { gap: 24, py: 24 }, children: [
|
|
782
|
+
/* @__PURE__ */ c(h, { sx: { px: 24 }, children: [
|
|
781
783
|
/* @__PURE__ */ e(J, { children: t.transaction_rules_label }),
|
|
782
|
-
/* @__PURE__ */ e(
|
|
784
|
+
/* @__PURE__ */ e(B, { variant: "body1", children: t.transaction_rules_description })
|
|
783
785
|
] }),
|
|
784
|
-
/* @__PURE__ */ e(
|
|
786
|
+
/* @__PURE__ */ e(Te, { children: o.map((i, d) => /* @__PURE__ */ e(Ye, { rule: i }, d)) })
|
|
785
787
|
] });
|
|
786
|
-
}),
|
|
787
|
-
const { alert: a, setAlert: o } =
|
|
788
|
+
}), qe = D(({ selectedTab: t }) => {
|
|
789
|
+
const { alert: a, setAlert: o } = E(), {
|
|
788
790
|
config: { display_user_profile_in_settings: n }
|
|
789
|
-
} =
|
|
790
|
-
return /* @__PURE__ */ c(
|
|
791
|
-
t ===
|
|
792
|
-
t ===
|
|
793
|
-
t ===
|
|
794
|
-
t ===
|
|
795
|
-
t ===
|
|
791
|
+
} = z();
|
|
792
|
+
return /* @__PURE__ */ c(Q, { children: [
|
|
793
|
+
t === M.Profile && /* @__PURE__ */ e(Ue, {}),
|
|
794
|
+
t === M.Devices && /* @__PURE__ */ e(Ge, {}),
|
|
795
|
+
t === M.Notifications && /* @__PURE__ */ e($, { showPersonalDetails: !n }),
|
|
796
|
+
t === M.TransactionRules && /* @__PURE__ */ e(re, {}),
|
|
797
|
+
t === M.Help && /* @__PURE__ */ e(h, { sx: { px: 24 }, children: /* @__PURE__ */ e(He, {}) }),
|
|
796
798
|
/* @__PURE__ */ e(
|
|
797
|
-
|
|
799
|
+
fe,
|
|
798
800
|
{
|
|
799
801
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
800
802
|
autoHideDuration: 3500,
|
|
801
803
|
onClose: () => o(""),
|
|
802
804
|
open: !!a.message,
|
|
803
805
|
children: /* @__PURE__ */ e(
|
|
804
|
-
|
|
806
|
+
he,
|
|
805
807
|
{
|
|
806
808
|
onClose: () => {
|
|
807
809
|
o("");
|
|
@@ -815,65 +817,69 @@ const Fe = ({
|
|
|
815
817
|
)
|
|
816
818
|
] });
|
|
817
819
|
});
|
|
818
|
-
var
|
|
819
|
-
const
|
|
820
|
-
const { settings: o } =
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
{ enabled:
|
|
832
|
-
|
|
833
|
-
|
|
820
|
+
var M = /* @__PURE__ */ ((t) => (t[t.Profile = 0] = "Profile", t[t.Devices = 1] = "Devices", t[t.Notifications = 2] = "Notifications", t[t.TransactionRules = 3] = "TransactionRules", t[t.Help = 4] = "Help", t))(M || {});
|
|
821
|
+
const Ft = D(({ onBackClick: t, sx: a }) => {
|
|
822
|
+
const { settings: o } = w(), { isCopyLoaded: n, isInitialized: i } = Z(), { config: d } = z(), { isMobile: s } = H(), { onLoad: r } = te();
|
|
823
|
+
u.useEffect(() => {
|
|
824
|
+
i && n && r?.("SettingsWidget");
|
|
825
|
+
}, [i, n]);
|
|
826
|
+
const {
|
|
827
|
+
display_user_profile_in_settings: l,
|
|
828
|
+
display_mobile_devices_in_settings: b,
|
|
829
|
+
display_notification_settings_in_settings: _,
|
|
830
|
+
display_user_transaction_rules_in_settings: m,
|
|
831
|
+
show_help_widget_in_master: p
|
|
832
|
+
} = d, k = [
|
|
833
|
+
{ enabled: l, index: 0, label: o?.profile_label },
|
|
834
|
+
{ enabled: b, index: 1, label: o?.mobile_devices_label },
|
|
835
|
+
{ enabled: _, index: 2, label: o?.notifications_label },
|
|
836
|
+
{ enabled: m, index: 3, label: o?.transaction_rules_label },
|
|
837
|
+
{ enabled: p, index: 4, label: o?.help_label }
|
|
838
|
+
], C = k.find((x) => x.enabled), [S, T] = u.useState(C ? C.index : -1);
|
|
839
|
+
return !n || !i ? /* @__PURE__ */ e(ie, {}) : /* @__PURE__ */ e(
|
|
834
840
|
K,
|
|
835
841
|
{
|
|
836
842
|
onBackClick: t,
|
|
837
843
|
sx: { height: "calc(100dvh - 24px)", overflow: "auto", ...a },
|
|
838
844
|
title: o.title,
|
|
839
|
-
children: /* @__PURE__ */ c(
|
|
845
|
+
children: /* @__PURE__ */ c(h, { mx: s ? 0 : 48, my: 24, children: [
|
|
840
846
|
/* @__PURE__ */ e(
|
|
841
|
-
|
|
847
|
+
pe,
|
|
842
848
|
{
|
|
843
|
-
onChange: (
|
|
849
|
+
onChange: (x, g) => T(g),
|
|
844
850
|
sx: { bgcolor: "background.paper" },
|
|
845
851
|
textColor: "primary",
|
|
846
|
-
value:
|
|
852
|
+
value: S,
|
|
847
853
|
variant: "scrollable",
|
|
848
|
-
children:
|
|
849
|
-
(
|
|
854
|
+
children: k.map(
|
|
855
|
+
(x) => x.enabled && /* @__PURE__ */ e(ue, { label: x.label, value: x.index }, x.index)
|
|
850
856
|
)
|
|
851
857
|
}
|
|
852
858
|
),
|
|
853
|
-
/* @__PURE__ */ e(
|
|
859
|
+
/* @__PURE__ */ e(qe, { selectedTab: S })
|
|
854
860
|
] })
|
|
855
861
|
}
|
|
856
862
|
);
|
|
857
|
-
}),
|
|
858
|
-
const { clientConfig: a } =
|
|
859
|
-
return o ? /* @__PURE__ */ e(
|
|
860
|
-
}),
|
|
861
|
-
const { isMobile: a } =
|
|
862
|
-
return /* @__PURE__ */ e(K, { ...t, children: /* @__PURE__ */ e(
|
|
863
|
+
}), Vt = D((t) => {
|
|
864
|
+
const { clientConfig: a } = z(), o = a?.master?.deep_link_params?.view;
|
|
865
|
+
return o ? /* @__PURE__ */ e($, { view: o }) : /* @__PURE__ */ e(K, { ...t, children: /* @__PURE__ */ e(h, { my: 24, children: /* @__PURE__ */ e($, {}) }) });
|
|
866
|
+
}), Wt = (t) => {
|
|
867
|
+
const { isMobile: a } = H();
|
|
868
|
+
return /* @__PURE__ */ e(K, { ...t, children: /* @__PURE__ */ e(h, { sx: { mx: a ? 0 : 48, my: 24 }, children: /* @__PURE__ */ e(re, {}) }) });
|
|
863
869
|
};
|
|
864
870
|
export {
|
|
865
|
-
|
|
866
|
-
|
|
871
|
+
Kt as AccountNotificationProfiles,
|
|
872
|
+
Yt as BudgetNotificationProfiles,
|
|
867
873
|
Ge as DeviceTab,
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
874
|
+
qt as InsightsNotificationProfiles,
|
|
875
|
+
$ as NotificationSettings,
|
|
876
|
+
Vt as NotificationSettingsWidget,
|
|
871
877
|
Ue as ProfileTab,
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
878
|
+
$t as SettingsApi,
|
|
879
|
+
jt as SettingsStore,
|
|
880
|
+
M as SettingsTabs,
|
|
881
|
+
Ft as SettingsWidget,
|
|
882
|
+
qe as SettingsWidgetContents,
|
|
877
883
|
re as TransactionRulesTab,
|
|
878
|
-
|
|
884
|
+
Wt as TransactionRulesWidget
|
|
879
885
|
};
|