@mx-cartographer/experiences 8.0.0-alpha.test2 → 8.0.0-alpha.v2
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 +335 -0
- package/README.md +5 -3
- package/dist/{Account-CMjOp7S2.mjs → Account-BiB1F8lL.mjs} +2 -2
- package/dist/{Account-BIKn4XEZ.mjs → Account-DuOz1a27.mjs} +1 -1
- package/dist/{AccountApi-DgZ8ILj1.mjs → AccountApi-ChQr5PAZ.mjs} +1 -1
- package/dist/AccountDetailsHeader-D9gbTbUt.mjs +95 -0
- package/dist/{AccountFields-DuFtmuud.mjs → AccountFields-CxqONzjY.mjs} +12 -12
- package/dist/AccountListItem-D9WJDbZ1.mjs +94 -0
- package/dist/{AccountStore-Cq_w2Hfb.mjs → AccountStore-DpYvNnql.mjs} +15 -9
- package/dist/Accounts-CseLC3lL.mjs +5 -0
- package/dist/Accounts-o7ohkngR.mjs +27 -0
- package/dist/{Analytics-i5h6BxR1.mjs → Analytics-BYItVAe-.mjs} +10 -0
- package/dist/{BeatApi-De2IaqH2.mjs → BeatApi-EFHXULDx.mjs} +1 -1
- package/dist/{BeatStore-D_NYuBSz.mjs → BeatStore-C6CAT-ce.mjs} +1 -1
- package/dist/BudgetUtil-CLhRnCoX.mjs +479 -0
- package/dist/CashflowStore-CeAzChyD.mjs +91 -0
- package/dist/{Category-Ccoew_sA.mjs → Category-CevNQ03n.mjs} +2 -2
- package/dist/{CategorySelectorDrawer-CzRxYpiP.mjs → CategorySelectorDrawer-Dc9Widy9.mjs} +118 -110
- package/dist/{CategoryStore-V-0d9oje.mjs → CategoryStore-FTxUbn0f.mjs} +3 -3
- package/dist/{CategoryUtil-DB-9JMbi.mjs → CategoryUtil-BVixr0d5.mjs} +4 -4
- package/dist/Connect-eYIWqCEr.mjs +39 -0
- package/dist/ConnectDrawer-C0wjwcJt.mjs +58 -0
- package/dist/{ConnectionsDrawer-DMBBzlIJ.mjs → ConnectionsDrawer-IA7vnv1J.mjs} +10 -9
- package/dist/CurrencyInput-DuMktPu3.mjs +85 -0
- package/dist/{CurrencyText-C-85TnUF.mjs → CurrencyText-CA-E5N_y.mjs} +1 -1
- package/dist/{DateFormats-Cs-NbEZ7.mjs → DateFormats-BMpMrZpW.mjs} +1 -1
- package/dist/{DateUtil-CVXVMbjf.mjs → DateUtil-wcYTmDRD.mjs} +1 -1
- package/dist/{DebtsStore-Dv_T7Dts.mjs → DebtsStore-BZqNLaqd.mjs} +3 -3
- package/dist/Dialog-Ck34yr-d.mjs +63 -0
- package/dist/{Donut-DKY8mL3P.mjs → Donut-CpxJlVvJ.mjs} +29 -27
- package/dist/{Drawer-Bet2ZPJo.mjs → Drawer-Bbe4AMB1.mjs} +14 -14
- package/dist/{ExportCsvAction-Cc14QGA9.mjs → ExportCsvAction-ErKh7wJ2.mjs} +4 -4
- package/dist/{Fetch-DecPFeGU.mjs → Fetch-B6tMJC1r.mjs} +2 -1
- package/dist/{FinstrongStore-DW7-LvAh.mjs → FinstrongStore-BQxXxxYD.mjs} +129 -129
- package/dist/GlobalAccountFilter-B73Pw1hJ.mjs +237 -0
- package/dist/Goal-0loDagc5.mjs +6 -0
- package/dist/GoalStore-fgXt--2Y.mjs +418 -0
- package/dist/HeaderCell-P8w6CmfO.mjs +6 -0
- package/dist/{Help-CgpJK03Q.mjs → Help-B8mD4aLJ.mjs} +6 -6
- package/dist/{Help-DOPJteew.mjs → Help-D-laTbKu.mjs} +544 -493
- package/dist/{IconBacking-DgT8DCeh.mjs → IconBacking-B9oC6uL2.mjs} +11 -11
- package/dist/LineChart-EAr5ox5U.mjs +612 -0
- package/dist/{ListItemAction-engf-T9W.mjs → ListItemAction-4KB7P75M.mjs} +2 -2
- package/dist/Loader-D3rjKx72.mjs +21 -0
- package/dist/Localization-CPkpIwIx.mjs +37 -0
- package/dist/{ManageIncome-BVqHHIO7.mjs → ManageIncome-Cc-wba0I.mjs} +118 -113
- package/dist/{MerchantStore-WvZ4gnQe.mjs → MerchantStore-BzGi4JAZ.mjs} +1 -1
- package/dist/MicroWidgetContainer-B_EnfvCq.mjs +45 -0
- package/dist/MiniWidgetContainer-Bhkv-hpz.mjs +66 -0
- package/dist/{NetWorthStore-B6ziBtaH.mjs → NetWorthStore-BqZ44-4M.mjs} +5 -5
- package/dist/Notification-DTNYSd8P.mjs +7 -0
- package/dist/{NotificationSettings-CEzQSKfg.mjs → NotificationSettings-D7VqsrZy.mjs} +160 -159
- package/dist/{NotificationStore-Ck2KdNmT.mjs → NotificationStore-D_e8zo5M.mjs} +28 -21
- package/dist/{NumberFormatting-DjTD0t3W.mjs → NumberFormatting-QCaNwbjv.mjs} +1 -1
- package/dist/{Transaction-C8QRYhYc.mjs → OnClickEvents-CseHDZ94.mjs} +32 -25
- package/dist/{OriginalBalanceAction-CYqr8z8w.mjs → OriginalBalanceAction-DjpvVVFz.mjs} +10 -10
- package/dist/{RecurringSettings-rEotGPcM.mjs → RecurringSettings-BN9H5ALr.mjs} +4 -4
- package/dist/RecurringTransactions-BCJp-Nap.mjs +297 -0
- package/dist/{RecurringTransactionsStore-DpzLX8E8.mjs → RecurringTransactionsStore-CkMA7gY3.mjs} +11 -10
- package/dist/RepeatingTransaction-DF4vJn_v.mjs +7 -0
- package/dist/{ResponsiveButton-BNsV08Ud.mjs → ResponsiveButton-DZFp78fJ.mjs} +12 -12
- package/dist/SearchBox-CwDgvWVJ.mjs +48 -0
- package/dist/{SettingsStore-ImYpLCSK.mjs → SettingsStore-BoIoiRLj.mjs} +3 -3
- package/dist/{SingleSegmentDonut-PsRQPkmV.mjs → SingleSegmentDonut-BgbLgwHi.mjs} +5 -5
- package/dist/{SpendingData-CI_C9xln.mjs → SpendingData-Bz1bCWAs.mjs} +4 -4
- package/dist/SpendingLegend-BgjazduU.mjs +193 -0
- package/dist/{StatusBar-CPfSXe80.mjs → StatusBar-BK_uYHAB.mjs} +6 -6
- package/dist/StatusIndicator-4tWnjeKS.mjs +264 -0
- package/dist/{TabContentContainer-CnMXkVqr.mjs → TabContentContainer-j01JYR_7.mjs} +8 -8
- package/dist/ToggleListItem-BLu_fWA2.mjs +90 -0
- package/dist/Transaction-Cn5_iFm0.mjs +5 -0
- package/dist/{TransactionApi-CjBoLleL.mjs → TransactionApi-Ck5Ua-7F.mjs} +1 -1
- package/dist/TransactionDetails-D1I1XEsT.mjs +1469 -0
- package/dist/{TransactionStore-CEehNrKo.mjs → TransactionStore-Bx9euVrY.mjs} +195 -177
- package/dist/{TrendsStore-ncmbS9eE.mjs → TrendsStore-CYdTo7cN.mjs} +10 -10
- package/dist/ViewMoreMicroCard-D24H9kDm.mjs +1291 -0
- package/dist/{WidgetContainer-DFwVgavi.mjs → WidgetContainer-B7xDq2bM.mjs} +47 -46
- package/dist/accounts/AccountsMiniWidget.d.ts +1 -1
- package/dist/accounts/AccountsWidget.d.ts +1 -1
- package/dist/accounts/api/AccountApi.d.ts +1 -1
- package/dist/accounts/components/AccountListItem.d.ts +1 -1
- package/dist/accounts/components/AccountsListCompact.d.ts +1 -1
- package/dist/accounts/components/detailsdrawer/Accounts/AccountActionsRow.d.ts +1 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +1 -1
- package/dist/accounts/hooks/useGetMergeableAccounts.d.ts +1 -1
- package/dist/accounts/index.es.js +459 -368
- package/dist/accounts/stores/AccountStore.d.ts +2 -1
- package/dist/accounts/stores/UiStore.d.ts +1 -1
- package/dist/accounts/utils/AccountDetails.d.ts +1 -1
- package/dist/accounts/utils/AccountFields.d.ts +1 -1
- package/dist/accounts/utils/Accounts.d.ts +2 -2
- package/dist/analytics/index.es.js +93 -112
- package/dist/budgets/BubbleBudgetsMiniWidget.d.ts +1 -1
- package/dist/budgets/BubbleBudgetsWidget.d.ts +1 -1
- package/dist/budgets/api/BudgetsApi.d.ts +5 -1
- package/dist/budgets/components/BubbleChart.d.ts +1 -1
- package/dist/budgets/components/BudgetDetailsDrawerV2.d.ts +4 -1
- package/dist/budgets/components/MerchantBudgetDetailsDrawer.d.ts +17 -0
- package/dist/budgets/components/addbudget/RecalculateBudgetRow.d.ts +1 -1
- package/dist/budgets/components/addbudget/UnbudgetedRow.d.ts +1 -1
- package/dist/budgets/components/bubblechart/Bubble.d.ts +1 -1
- package/dist/budgets/components/budgetdetails/AddSubBudget.d.ts +1 -1
- package/dist/budgets/components/budgetdetails/BudgetDetails.d.ts +1 -1
- package/dist/budgets/components/budgetdetails/Header.d.ts +1 -1
- package/dist/budgets/components/budgetdetails/SubBudgetList.d.ts +1 -1
- package/dist/budgets/components/budgetlist/BudgetRow.d.ts +1 -1
- package/dist/budgets/components/budgetlist/SubBudgetRow.d.ts +1 -1
- package/dist/budgets/components/shared/BudgetDetailsTopSection.d.ts +13 -0
- package/dist/budgets/index.es.js +851 -865
- package/dist/budgets/store/BudgetsStore.d.ts +15 -1
- package/dist/budgets/utils/BubblesSVG.d.ts +3 -3
- package/dist/budgets/utils/BudgetUtil.d.ts +6 -1
- package/dist/cashflow/CashflowMiniWidget.d.ts +1 -1
- package/dist/cashflow/CashflowWidget.d.ts +1 -1
- package/dist/cashflow/api/CashflowApi.d.ts +1 -1
- package/dist/cashflow/components/DetailsExpenseRow.d.ts +1 -1
- package/dist/cashflow/index.es.js +290 -288
- package/dist/cashflow/stores/UiStore.d.ts +1 -1
- package/dist/cashflow/util/Filters.d.ts +1 -1
- package/dist/categories/components/CategoryRow.d.ts +1 -1
- package/dist/categories/components/CustomCategories/AddSubcategory.d.ts +1 -1
- package/dist/categories/components/CustomCategories/DeleteSubcategory.d.ts +1 -1
- package/dist/categories/components/CustomCategories/RenameSubcategory.d.ts +1 -1
- package/dist/categories/components/SubcategoryList.d.ts +1 -1
- package/dist/categories/components/SubcategoryRow.d.ts +1 -1
- package/dist/categories/index.es.js +2 -2
- package/dist/categories/stores/CategoryStore.d.ts +2 -1
- package/dist/categories/util/CategoryUtil.d.ts +1 -1
- package/dist/common/api/AnalyticsApi.d.ts +1 -1
- package/dist/common/api/AppDataApi.d.ts +1 -1
- package/dist/common/api/BeatApi.d.ts +1 -1
- package/dist/common/api/CategoryApi.d.ts +1 -1
- package/dist/common/api/GlobalCopyApi.d.ts +1 -1
- package/dist/common/api/LocalizedCopyApi.d.ts +1 -1
- package/dist/common/api/NotificationApi.d.ts +1 -1
- package/dist/common/api/ScheduledPaymentsApi.d.ts +1 -1
- package/dist/common/api/UserApi.d.ts +1 -1
- package/dist/common/components/CurrencyDialog.d.ts +1 -1
- package/dist/common/components/CurrencyInput.d.ts +1 -1
- package/dist/common/components/ErrorBoundary.d.ts +1 -1
- package/dist/common/components/GlobalAccountFilter.d.ts +1 -1
- package/dist/common/components/Loader.d.ts +1 -2
- package/dist/common/components/MiniWidgetContainer.d.ts +1 -0
- package/dist/common/components/WidgetContainer.d.ts +1 -1
- package/dist/common/components/charts/LineChart.d.ts +1 -0
- package/dist/common/components/charts/index.d.ts +1 -0
- package/dist/common/components/charts/linechart/CustomTooltip.d.ts +2 -1
- package/dist/common/components/charts/linechart/utils/markerShapes.d.ts +3 -0
- package/dist/common/components/globalaccountfilter/GlobalAccountFilterList.d.ts +1 -1
- package/dist/common/components/index.d.ts +0 -1
- package/dist/common/constants/Account.d.ts +1 -1
- package/dist/common/constants/Analytics.d.ts +10 -0
- package/dist/common/constants/ApiEndpoints.d.ts +1 -0
- package/dist/common/constants/DefaultConfig.d.ts +1 -1
- package/dist/common/constants/ScheduledPayment.d.ts +1 -10
- package/dist/common/constants/SpendingPlan.d.ts +0 -10
- package/dist/common/constants/index.d.ts +2 -2
- package/dist/common/context/GlobalDataProvider.d.ts +2 -1
- package/dist/common/context/hooks.d.ts +4 -4
- package/dist/common/hooks/index.d.ts +1 -0
- package/dist/common/hooks/useAccountDisplayName.d.ts +1 -1
- package/dist/common/hooks/useCombineEvents.d.ts +1 -1
- package/dist/common/hooks/usePrevious.d.ts +2 -0
- package/dist/common/index.d.ts +0 -1
- package/dist/common/index.es.js +625 -860
- package/dist/common/stores/AppDataStore.d.ts +3 -3
- package/dist/common/stores/GlobalCopyStore.d.ts +1 -1
- package/dist/common/stores/GlobalStore.d.ts +4 -2
- package/dist/common/stores/GlobalUiStore.d.ts +3 -3
- package/dist/common/stores/UserStore.d.ts +1 -1
- package/dist/common/utils/AccountDisplayName.d.ts +1 -1
- package/dist/common/utils/AccountFilter.d.ts +1 -1
- package/dist/common/utils/Analytics.d.ts +1 -1
- package/dist/common/utils/Categories.d.ts +1 -1
- package/dist/common/utils/Fetch.d.ts +1 -1
- package/dist/common/utils/Localization.d.ts +9 -1
- package/dist/common/utils/Theme.d.ts +3 -3
- package/dist/common/utils/User.d.ts +1 -1
- package/dist/common/utils/index.d.ts +1 -1
- package/dist/core/constants/index.d.ts +1 -0
- package/dist/core/constants/repeatingTransactions.d.ts +10 -0
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.es.js +41 -0
- package/dist/{common → core}/types/Analytics.d.ts +6 -3
- package/dist/{common → core}/types/AppData.d.ts +1 -0
- package/dist/{common → core}/types/Beat.d.ts +2 -0
- package/dist/{common → core}/types/Budget.d.ts +8 -0
- package/dist/{common → core}/types/Expense.d.ts +2 -1
- package/dist/{common → core}/types/Finstrong.d.ts +0 -2
- package/dist/{common → core}/types/Notification.d.ts +15 -5
- package/dist/{common → core}/types/index.d.ts +1 -2
- package/dist/{common → core}/types/localization/BudgetsCopy.d.ts +11 -0
- package/dist/{common → core}/types/localization/CashflowCopy.d.ts +1 -0
- package/dist/{common → core}/types/localization/CommonCopy.d.ts +2 -0
- package/dist/{common → core}/types/localization/DebtsCopy.d.ts +5 -0
- package/dist/{common → core}/types/localization/RecurringCopy.d.ts +2 -0
- package/dist/{common → core}/types/localization/SpendingCopy.d.ts +1 -0
- package/dist/dashboard/index.es.js +46 -45
- package/dist/debts/DebtsWidget.d.ts +1 -1
- package/dist/debts/components/actions/DebtsPriorityAction.d.ts +5 -1
- package/dist/debts/components/debtspaydown/PaydownButton.d.ts +2 -1
- package/dist/debts/components/debtspriority/DebtsPriorityButton.d.ts +2 -1
- package/dist/debts/index.es.js +705 -646
- package/dist/debts/store/DebtsStore.d.ts +2 -1
- package/dist/debts/utils/DebtStore.d.ts +1 -1
- package/dist/debts/utils/DebtsWidget.d.ts +7 -1
- package/dist/debts/utils/shared.d.ts +1 -1
- package/dist/{exportTransactionsToCSV-CGnrndmA.mjs → exportTransactionsToCSV-MCYH_zzN.mjs} +5 -5
- package/dist/finstrong/FinstrongWidget.d.ts +1 -1
- package/dist/finstrong/api/FinstrongApi.d.ts +1 -1
- package/dist/finstrong/components/HealthChart.d.ts +1 -1
- package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.d.ts +1 -1
- package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.d.ts +1 -1
- package/dist/finstrong/components/shared/Accounts.d.ts +1 -1
- package/dist/finstrong/components/shared/DoubleBarChart.d.ts +1 -0
- package/dist/finstrong/components/shared/ScoreHistoryTimeline.d.ts +1 -1
- package/dist/finstrong/components/shared/Transactions.d.ts +1 -1
- package/dist/finstrong/index.es.js +161 -159
- package/dist/finstrong/stores/FinstrongStore.d.ts +3 -2
- package/dist/finstrong/util/finstrongUtils.d.ts +3 -3
- package/dist/goals/GoalsWidget.d.ts +1 -1
- package/dist/goals/api/GoalApi.d.ts +2 -2
- package/dist/goals/components/AccountSelectionDrawer.d.ts +1 -1
- package/dist/goals/components/AddGoal.d.ts +1 -1
- package/dist/goals/components/GoalDetails.d.ts +1 -1
- package/dist/goals/components/GoalDetailsDrawer.d.ts +1 -1
- package/dist/goals/components/GoalList.d.ts +1 -1
- package/dist/goals/components/GoalStatusCard.d.ts +1 -1
- package/dist/goals/components/ManageGoals.d.ts +1 -1
- package/dist/goals/components/actions/AccountAction.d.ts +1 -1
- package/dist/goals/components/actions/AddRetirementAccountAction.d.ts +1 -1
- package/dist/goals/components/actions/AmountToSaveAction.d.ts +1 -1
- package/dist/goals/components/actions/BirthdayAction.d.ts +1 -1
- package/dist/goals/components/actions/ChangeAccountAction.d.ts +1 -1
- package/dist/goals/components/actions/ContributionAction.d.ts +1 -1
- package/dist/goals/components/actions/GoalNameAction.d.ts +1 -1
- package/dist/goals/components/actions/InterestRateAction.d.ts +1 -1
- package/dist/goals/components/actions/MonthlyPaymentAction.d.ts +1 -1
- package/dist/goals/components/actions/OriginalBalanceAction.d.ts +1 -1
- package/dist/goals/components/actions/RetirementAgeAction.d.ts +1 -1
- package/dist/goals/components/addgoal/AddGoalListItem.d.ts +1 -1
- package/dist/goals/components/managegoals/CompleteListItem.d.ts +1 -1
- package/dist/goals/components/managegoals/OngoingListItem.d.ts +1 -1
- package/dist/goals/components/managegoals/ReorderGoals.d.ts +1 -1
- package/dist/goals/components/micro/GoalMicroStatusCard.d.ts +1 -1
- package/dist/goals/index.es.js +445 -419
- package/dist/goals/stores/GoalStore.d.ts +2 -1
- package/dist/goals/util/GoalsUtil.d.ts +1 -1
- package/dist/help/HelpWidget.d.ts +1 -1
- package/dist/help/api/HelpApi.d.ts +1 -1
- package/dist/help/components/HelpContent.d.ts +1 -1
- package/dist/help/components/HelpList.d.ts +1 -1
- package/dist/help/components/content/BottomImageContent.d.ts +1 -1
- package/dist/help/components/content/ContentItem.d.ts +1 -1
- package/dist/help/components/content/LeftImageContent.d.ts +1 -1
- package/dist/help/components/content/NoImageContent.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/components/content/section/Accounts.d.ts +1 -1
- package/dist/help/components/content/section/Budgets.d.ts +1 -1
- package/dist/help/components/content/section/CashFlow.d.ts +1 -1
- package/dist/help/components/content/section/Debts.d.ts +1 -1
- package/dist/help/components/content/section/General.d.ts +1 -1
- package/dist/help/components/content/section/Goals.d.ts +1 -1
- package/dist/help/components/content/section/Insights.d.ts +1 -1
- package/dist/help/components/content/section/Investments.d.ts +1 -1
- package/dist/help/components/content/section/Mobile.d.ts +1 -1
- package/dist/help/components/content/section/NetWorth.d.ts +1 -1
- package/dist/help/components/content/section/Notifications.d.ts +1 -1
- package/dist/help/components/content/section/RecurringTransactions.d.ts +1 -1
- package/dist/help/components/content/section/Spending.d.ts +1 -1
- package/dist/help/components/content/section/Transactions.d.ts +1 -1
- package/dist/help/components/content/section/Trends.d.ts +1 -1
- package/dist/help/components/content/section/index.d.ts +15 -15
- package/dist/help/components/requestsupport/ContactSupport.d.ts +1 -1
- package/dist/help/components/requestsupport/HelpByCategoryList.d.ts +1 -1
- package/dist/help/components/requestsupport/MissingInstitution.d.ts +1 -1
- package/dist/help/components/requestsupport/PopularTopicsDrawer.d.ts +1 -1
- package/dist/help/components/requestsupport/PopularTopicsList.d.ts +1 -1
- package/dist/help/components/requestsupport/RequestSupport.d.ts +1 -1
- package/dist/help/components/requestsupport/RequestSupportFooter.d.ts +1 -1
- package/dist/help/components/requestsupport/RequestSupportInstitution.d.ts +1 -1
- package/dist/help/components/requestsupport/SupportSuccessMessage.d.ts +1 -1
- package/dist/help/index.es.js +8 -8
- package/dist/help/store/HelpStore.d.ts +5 -4
- package/dist/help/utils/getAccessibleHelpCategories.d.ts +2 -2
- package/dist/{hooks-CBl85iRr.mjs → hooks-BxkfR-Ff.mjs} +12 -12
- package/dist/insights/components/feed/Header.d.ts +8 -0
- package/dist/insights/components/index.d.ts +4 -0
- package/dist/insights/components/insights/CategoryBudget/types/CategoryBudget.d.ts +1 -0
- package/dist/insights/components/insights/CategorySpendingV2/types/CategorySpendingV2.d.ts +1 -0
- package/dist/insights/components/shared/ChartDrawerTemplate/ChartDrawerTemplate.d.ts +2 -1
- package/dist/insights/components/shared/ChartDrawerTemplate/TipSection.d.ts +3 -1
- package/dist/insights/components/shared/ChartTransactionWithDrillDown.d.ts +2 -1
- package/dist/insights/components/shared/DonutChartV2.d.ts +13 -0
- package/dist/insights/components/shared/InsightsCard/BeatCardMUI.d.ts +20 -0
- package/dist/insights/components/shared/InsightsCard/CardHeaderMUI.d.ts +11 -0
- package/dist/insights/components/shared/InsightsCard/ContentAndDescriptionMUI.d.ts +17 -0
- package/dist/insights/components/shared/InsightsCard/DescriptionMUI.d.ts +12 -0
- package/dist/insights/components/shared/InsightsCard/MiniDescriptionMUI.d.ts +9 -0
- package/dist/insights/components/shared/StatusIndicator.d.ts +1 -1
- package/dist/insights/components/shared/TransactionCard.d.ts +14 -0
- package/dist/insights/index.es.js +1361 -1081
- package/dist/insights/store/BeatStore.d.ts +1 -1
- package/dist/investments/InvestmentsWidget.d.ts +1 -1
- package/dist/investments/api/HoldingApi.d.ts +1 -1
- package/dist/investments/components/allocation/util/createInvestementsAllocationData.d.ts +2 -2
- package/dist/investments/index.es.js +258 -258
- package/dist/investments/stores/HoldingStore.d.ts +2 -1
- package/dist/investments/util/InvestmentUtil.d.ts +1 -1
- package/dist/merchants/api/MerchantApi.d.ts +1 -1
- package/dist/merchants/index.es.js +16 -16
- package/dist/merchants/stores/MerchantStore.d.ts +2 -1
- package/dist/microinsights/InsightsMicroWidget.d.ts +1 -1
- package/dist/microinsights/beaticons/AreaChartIcon.d.ts +3 -0
- package/dist/microinsights/beaticons/AverageSpendComparisonIcon.d.ts +3 -0
- package/dist/microinsights/beaticons/BeatMaterialIcon.d.ts +5 -1
- package/dist/microinsights/beaticons/InstitutionLogoIcon.d.ts +5 -0
- package/dist/microinsights/beaticons/MonthlySpendComparisonIcon.d.ts +0 -2
- package/dist/microinsights/beaticons/index.d.ts +3 -0
- package/dist/microinsights/cards/InsightCard.d.ts +1 -1
- package/dist/microinsights/carousel/BeatList.d.ts +1 -1
- package/dist/microinsights/carousel/CarouselHeader.d.ts +1 -1
- package/dist/microinsights/carousel/MicroBeatCarousel.d.ts +1 -1
- package/dist/microinsights/constants/Analytics.d.ts +1 -1
- package/dist/microinsights/context/InsightsMicroWidgetDataProvider.d.ts +1 -1
- package/dist/microinsights/context/hooks.d.ts +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/microinsights/interfaces.d.ts +1 -1
- package/dist/microinsights/stores/CopyStore.d.ts +1 -1
- package/dist/microinsights/stores/InsightsMicroWidgetStore.d.ts +1 -1
- package/dist/microinsights/utils/DataSeries.d.ts +1 -1
- package/dist/microinsights/utils/colorType.d.ts +22 -0
- package/dist/networth/NetWorthWidget.d.ts +1 -1
- package/dist/networth/components/micro/NetworthData.d.ts +1 -1
- package/dist/networth/components/micro/ZeroState.d.ts +1 -1
- package/dist/networth/index.es.js +181 -174
- package/dist/networth/stores/NetWorthStore.d.ts +2 -1
- package/dist/networth/types/NetWorth.d.ts +1 -1
- package/dist/networth/utils/NetWorthUtils.d.ts +1 -1
- package/dist/notifications/components/NotificationBadge.d.ts +1 -1
- package/dist/notifications/components/NotificationCard.d.ts +1 -1
- package/dist/notifications/components/NotificationDrawer.d.ts +1 -1
- package/dist/notifications/components/NotificationList.d.ts +2 -1
- package/dist/notifications/index.es.js +104 -92
- package/dist/notifications/stores/NotificationStore.d.ts +2 -1
- package/dist/notifications/utils/NotificationUtils.d.ts +2 -1
- package/dist/recurringtransactions/RecurringTransactionsMiniWidget.d.ts +1 -1
- package/dist/recurringtransactions/RecurringTransactionsWidget.d.ts +1 -1
- package/dist/recurringtransactions/api/RepeatingTransactionsApi.d.ts +2 -1
- package/dist/recurringtransactions/components/PaymentSchedule.d.ts +1 -1
- package/dist/recurringtransactions/components/RecurrenceList.d.ts +1 -1
- package/dist/recurringtransactions/components/RecurrenceRow.d.ts +1 -1
- package/dist/recurringtransactions/components/RecurringTransactionDetails.d.ts +1 -1
- package/dist/recurringtransactions/components/actions/PaymentScheduleAction.d.ts +1 -1
- package/dist/recurringtransactions/components/micro/MerchantLogosRow.d.ts +1 -1
- package/dist/recurringtransactions/components/micro/OverlappingMerchantLogos.d.ts +1 -1
- package/dist/recurringtransactions/components/shared/recurringsettings/AddRecurringTransactionDetails.d.ts +1 -1
- package/dist/recurringtransactions/components/shared/recurringsettings/RecurringRow.d.ts +1 -1
- package/dist/recurringtransactions/index.es.js +477 -451
- package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +2 -1
- package/dist/recurringtransactions/util/RecurringTransactions.d.ts +1 -1
- package/dist/repeatingTransactions-DHIG94pi.mjs +4 -0
- package/dist/settings/NotificationSettingsWidget.d.ts +1 -1
- package/dist/settings/SettingsWidget.d.ts +1 -1
- package/dist/settings/TransactionRulesWidget.d.ts +1 -1
- package/dist/settings/api/SettingsApi.d.ts +1 -2
- package/dist/settings/components/devices/DeviceDialog.d.ts +1 -1
- package/dist/settings/components/devices/DeviceList.d.ts +1 -1
- package/dist/settings/components/devices/DeviceTable.d.ts +1 -1
- package/dist/settings/components/notifications/AccountNotificationProfile.d.ts +1 -1
- package/dist/settings/components/notifications/AccountProfileListItem.d.ts +1 -1
- package/dist/settings/components/notifications/NotificationProfile.d.ts +1 -1
- package/dist/settings/components/notifications/NotificationSettings.d.ts +1 -1
- package/dist/settings/components/transactionrules/actions/EditRuleAction.d.ts +1 -1
- package/dist/settings/index.es.js +314 -323
- package/dist/settings/stores/SettingsStore.d.ts +3 -2
- package/dist/settings/util/Notifications.d.ts +1 -1
- package/dist/spending/SpendingMiniWidget.d.ts +1 -1
- package/dist/spending/SpendingWidget.d.ts +1 -1
- package/dist/spending/index.es.js +167 -166
- package/dist/spending/utils/SpendingData.d.ts +1 -1
- package/dist/transactions/TransactionWidget.d.ts +1 -1
- package/dist/transactions/api/TransactionApi.d.ts +1 -1
- package/dist/transactions/components/shared/TransactionDetails.d.ts +1 -1
- package/dist/transactions/components/shared/TransactionList.d.ts +1 -1
- package/dist/transactions/components/shared/getEmbeddedInstanceSlotByBeatTemplates.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/Description.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/FlagTransaction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/TransactionAmountHeader.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/TransactionDetailsView.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/AddMerchantBudgetAction.d.ts +13 -0
- package/dist/transactions/components/shared/transactiondetails/actions/CategoryAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/DateAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/DeleteAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/DeleteLogoAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/HideAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/MemoAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/SplitAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/TagsAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/index.d.ts +1 -0
- package/dist/transactions/components/shared/transactionlist/TransactionRow.d.ts +1 -1
- package/dist/transactions/components/splitmanager/SplitManager.d.ts +1 -1
- package/dist/transactions/components/splitmanager/SplitRow.d.ts +1 -1
- package/dist/transactions/components/tagmanager/TagRow.d.ts +1 -1
- package/dist/transactions/components/transactionwidget/actions/EditCategoryAction.d.ts +1 -1
- package/dist/transactions/components/transactionwidget/actions/ExportCsvAction.d.ts +1 -1
- package/dist/transactions/constants/Actions.d.ts +4 -3
- package/dist/transactions/constants/Transaction.d.ts +1 -1
- package/dist/transactions/index.es.js +195 -187
- package/dist/transactions/stores/TransactionStore.d.ts +2 -1
- package/dist/transactions/stores/UiStore.d.ts +1 -1
- package/dist/transactions/utils/Filters.d.ts +1 -1
- package/dist/transactions/utils/Transactions.d.ts +1 -1
- package/dist/transactions/utils/buildDetailedTransactions.d.ts +2 -2
- package/dist/transactions/utils/exportTransactionsToCSV.d.ts +1 -1
- package/dist/transactions/utils/sortAndFilterTransactions.d.ts +1 -1
- package/dist/trends/TrendsFullWidget.d.ts +1 -1
- package/dist/trends/TrendsMiniWidget.d.ts +1 -1
- package/dist/trends/TrendsWidget.d.ts +1 -1
- package/dist/trends/components/CategoriesList.d.ts +1 -1
- package/dist/trends/components/CategoriesListItem.d.ts +1 -1
- package/dist/trends/components/CategoryDetails.d.ts +3 -0
- package/dist/trends/components/TrendsChartTotals.d.ts +1 -1
- package/dist/trends/components/TrendsInsights.d.ts +1 -1
- package/dist/trends/components/trendstable/AccessibleSortIcon.d.ts +13 -0
- package/dist/trends/components/trendstable/TrendsTable.d.ts +1 -1
- package/dist/trends/index.es.js +817 -764
- package/dist/trends/stores/TrendsStore.d.ts +2 -1
- package/dist/trends/utils/SpendingData.d.ts +1 -1
- package/dist/trends/utils/TrendsData.d.ts +1 -1
- package/dist/trends/utils/TrendsTable.d.ts +1 -1
- package/dist/trends/utils/TrendsWidget.d.ts +7 -0
- package/dist/trends/utils/shared.d.ts +1 -1
- package/dist/{useAccountDisplayName-b2xxcD0C.mjs → useAccountDisplayName-DKwT1mWv.mjs} +1 -1
- package/dist/{useCombineEvents-ARuNN9Xh.mjs → useCombineEvents-Bqojlv8q.mjs} +3 -3
- package/dist/{useInsightsEnabled-Dd-AfsqC.mjs → useInsightsEnabled-DL_oNyI0.mjs} +1 -1
- package/dist/{useWidgetLoadTimer-DmNCCLa-.mjs → useWidgetLoadTimer-DgN1bTyu.mjs} +1 -1
- package/package.json +17 -10
- package/dist/AccountDetailsHeader-Bn2E0Qjk.mjs +0 -95
- package/dist/AccountListItem-k63LpVBs.mjs +0 -90
- package/dist/Accounts-CuE8aSZN.mjs +0 -27
- package/dist/BudgetUtil-BZiGckNY.mjs +0 -238
- package/dist/CashflowStore-naOtJcwo.mjs +0 -91
- package/dist/CurrencyInput-BEB3FS70.mjs +0 -85
- package/dist/Dialog-jmgGw5WA.mjs +0 -58
- package/dist/GlobalAccountFilter-CIF-aT3F.mjs +0 -316
- package/dist/GoalStore-BjHKNAVm.mjs +0 -421
- package/dist/HeaderCell-DjuifqHJ.mjs +0 -6
- package/dist/LineChart-CnscUFUG.mjs +0 -580
- package/dist/Loader-icSc5MlE.mjs +0 -24
- package/dist/Localization-2MODESHW.mjs +0 -30
- package/dist/MicroWidgetContainer-CBRk9KG-.mjs +0 -45
- package/dist/MiniWidgetContainer-CXQcSWSl.mjs +0 -56
- package/dist/Notification-Bs1fdbzI.mjs +0 -95
- package/dist/RecurringTransactions-DlKYwpfK.mjs +0 -296
- package/dist/SearchBox-B2_zLv8-.mjs +0 -42
- package/dist/SpendingLegend-Bld71d7q.mjs +0 -193
- package/dist/StatusIndicator-CNMQeYyJ.mjs +0 -55
- package/dist/TransactionDetails-Lvt9GCU5.mjs +0 -1194
- package/dist/TransactionList-BDffKJMO.mjs +0 -204
- package/dist/User-DS18cMaz.mjs +0 -237
- package/dist/ViewMoreMicroCard-YHRLl08A.mjs +0 -1152
- 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/types/SpendingPlan.d.ts +0 -44
- package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +0 -7
- package/dist/trends/components/CategoryDetailDrawer.d.ts +0 -7
- /package/dist/{common → core}/types/Account.d.ts +0 -0
- /package/dist/{common → core}/types/Cashflow.d.ts +0 -0
- /package/dist/{common → core}/types/Category.d.ts +0 -0
- /package/dist/{common → core}/types/Client.d.ts +0 -0
- /package/dist/{common → core}/types/Date.d.ts +0 -0
- /package/dist/{common → core}/types/Debt.d.ts +0 -0
- /package/dist/{common → core}/types/Global.d.ts +0 -0
- /package/dist/{common → core}/types/GlobalCopy.d.ts +0 -0
- /package/dist/{common → core}/types/Goal.d.ts +0 -0
- /package/dist/{common → core}/types/Handlers.d.ts +0 -0
- /package/dist/{common → core}/types/Help.d.ts +0 -0
- /package/dist/{common → core}/types/Holding.d.ts +0 -0
- /package/dist/{common → core}/types/Institution.d.ts +0 -0
- /package/dist/{common → core}/types/LocalizedContent.d.ts +0 -0
- /package/dist/{common → core}/types/Merchant.d.ts +0 -0
- /package/dist/{common → core}/types/RepeatingTransaction.d.ts +0 -0
- /package/dist/{common → core}/types/ScheduledPayment.d.ts +0 -0
- /package/dist/{common → core}/types/ScreenSize.d.ts +0 -0
- /package/dist/{common → core}/types/Transaction.d.ts +0 -0
- /package/dist/{common → core}/types/User.d.ts +0 -0
- /package/dist/{common → core}/types/Widgets.d.ts +0 -0
- /package/dist/{common → core}/types/localization/AccountFilterCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/AccountTypeCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/AccountsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/AnalyticsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/CategoryCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/ConnectCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/CurrencyInputCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/DateRangePickerCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/FinstrongCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/GoalsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/HelpCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/InsightsFeedCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/InvestmentsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/MicroInsightsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/NetWorthCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/NotificationsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/SettingsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/TransactionsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/TrendsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/index.d.ts +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { S as
|
|
2
|
-
import { jsxs as c, Fragment as
|
|
3
|
-
import
|
|
1
|
+
import { S as Yt, a as qt } from "../SettingsStore-BoIoiRLj.mjs";
|
|
2
|
+
import { jsxs as c, Fragment as X, jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import u from "react";
|
|
4
4
|
import { observer as C } from "mobx-react-lite";
|
|
5
5
|
import f from "@mui/material/Stack";
|
|
6
6
|
import ue from "@mui/material/Tab";
|
|
7
7
|
import pe from "@mui/material/Tabs";
|
|
8
8
|
import he from "@mui/material/Alert";
|
|
9
9
|
import fe from "@mui/material/Snackbar";
|
|
10
|
-
import { getUnixTime as
|
|
11
|
-
import { AdapterDateFns as
|
|
10
|
+
import { getUnixTime as _e } from "date-fns/getUnixTime";
|
|
11
|
+
import { AdapterDateFns as ge } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
12
12
|
import { DatePicker as be } from "@mui/x-date-pickers";
|
|
13
13
|
import { LocalizationProvider as ye } from "@mui/x-date-pickers/LocalizationProvider";
|
|
14
14
|
import { useTheme as xe, alpha as U } from "@mui/material/styles";
|
|
@@ -16,146 +16,146 @@ import V from "@mui/material/Box";
|
|
|
16
16
|
import Z from "@mui/material/Button";
|
|
17
17
|
import I from "@mui/material/TextField";
|
|
18
18
|
import { H3 as K, P as N, Text as v, Icon as L, ChevronRightIcon as ve } from "@mxenabled/mxui";
|
|
19
|
-
import { V as Ce, a as De, N as j } from "../NotificationSettings-
|
|
20
|
-
import { A as
|
|
21
|
-
import { D as z } from "../
|
|
22
|
-
import { u as
|
|
23
|
-
import {
|
|
19
|
+
import { V as Ce, a as De, N as j } from "../NotificationSettings-D7VqsrZy.mjs";
|
|
20
|
+
import { A as Xt, B as Zt, I as eo } from "../NotificationSettings-D7VqsrZy.mjs";
|
|
21
|
+
import { u as D, a as z, r as A, o as we, b as ee, l as $ } from "../hooks-BxkfR-Ff.mjs";
|
|
22
|
+
import { u as H } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
23
|
+
import { D as G } from "../Dialog-Ck34yr-d.mjs";
|
|
24
24
|
import { formatDistanceToNow as te } from "date-fns/formatDistanceToNow";
|
|
25
25
|
import { fromUnixTime as oe } from "date-fns/fromUnixTime";
|
|
26
|
-
import
|
|
26
|
+
import O from "@mui/material/styles/useTheme";
|
|
27
27
|
import W from "@mui/material/IconButton";
|
|
28
|
-
import { DataGridPro as
|
|
29
|
-
import { H as F } from "../HeaderCell-
|
|
30
|
-
import { b as
|
|
28
|
+
import { DataGridPro as Se } from "@mui/x-data-grid-pro";
|
|
29
|
+
import { H as F } from "../HeaderCell-P8w6CmfO.mjs";
|
|
30
|
+
import { b as B } from "../Localization-CPkpIwIx.mjs";
|
|
31
31
|
import ke from "@mui/material/Accordion";
|
|
32
32
|
import Te from "@mui/material/AccordionDetails";
|
|
33
33
|
import Ie from "@mui/material/AccordionSummary";
|
|
34
|
-
import { L as ie } from "../Loader-
|
|
34
|
+
import { L as ie } from "../Loader-D3rjKx72.mjs";
|
|
35
35
|
import Ae from "@mui/material/List";
|
|
36
36
|
import J from "@mui/material/Divider";
|
|
37
37
|
import Ee from "@mui/material/ListSubheader";
|
|
38
|
-
import {
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import { D as He } from "../Drawer-
|
|
44
|
-
import { u as
|
|
45
|
-
import { H as Oe } from "../Help-
|
|
46
|
-
import { W as
|
|
47
|
-
const Fe = ({ availableWidth: t, handleOnLeavClick:
|
|
48
|
-
const o = xe(), { common: i, settings:
|
|
49
|
-
first_name:
|
|
50
|
-
last_name:
|
|
51
|
-
email:
|
|
52
|
-
phone:
|
|
53
|
-
birthday:
|
|
54
|
-
postal_code:
|
|
55
|
-
credit_score:
|
|
56
|
-
}), [x,
|
|
57
|
-
|
|
58
|
-
if (
|
|
59
|
-
const
|
|
60
|
-
|
|
38
|
+
import { a as Re, u as Pe } from "../CategorySelectorDrawer-Dc9Widy9.mjs";
|
|
39
|
+
import Ne from "@mui/material/ListItem";
|
|
40
|
+
import Me from "@mui/material/ListItemButton";
|
|
41
|
+
import Le from "@mui/material/ListItemIcon";
|
|
42
|
+
import Be from "@mui/material/ListItemText";
|
|
43
|
+
import { D as He } from "../Drawer-Bbe4AMB1.mjs";
|
|
44
|
+
import { u as ne } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
|
|
45
|
+
import { H as Oe } from "../Help-D-laTbKu.mjs";
|
|
46
|
+
import { W as Y } from "../WidgetContainer-B7xDq2bM.mjs";
|
|
47
|
+
const Fe = ({ availableWidth: t, handleOnLeavClick: r }) => {
|
|
48
|
+
const o = xe(), { common: i, settings: n } = D(), { isDesktop: p, isMobile: s, isSmallMobile: a, isTablet: l } = H(t), { config: b } = z(), { updateUser: g } = A(), { user: d } = we(), [h, w] = u.useState({
|
|
49
|
+
first_name: d.first_name,
|
|
50
|
+
last_name: d.last_name,
|
|
51
|
+
email: d.email,
|
|
52
|
+
phone: d.phone,
|
|
53
|
+
birthday: d.birthday,
|
|
54
|
+
postal_code: d.postal_code,
|
|
55
|
+
credit_score: d.credit_score
|
|
56
|
+
}), [x, S] = u.useState(!1), [k, T] = u.useState(!1), m = u.useRef(null), M = h.email && !d.email_is_verified && !x, Q = h.phone && !d.phone_is_verified && !x;
|
|
57
|
+
u.useEffect(() => {
|
|
58
|
+
if (r) {
|
|
59
|
+
const _ = (R) => {
|
|
60
|
+
m.current && !m.current.contains(R.target) && x && T(!0);
|
|
61
61
|
};
|
|
62
|
-
return document.addEventListener("mousedown",
|
|
63
|
-
document.removeEventListener("mousedown",
|
|
62
|
+
return document.addEventListener("mousedown", _), () => {
|
|
63
|
+
document.removeEventListener("mousedown", _);
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
66
|
}, [x]);
|
|
67
67
|
const ae = () => {
|
|
68
68
|
if (h.birthday) {
|
|
69
|
-
const
|
|
69
|
+
const _ = new Date(h.birthday * 1e3), R = _.getUTCFullYear(), de = _.getUTCMonth(), me = _.getUTCDate();
|
|
70
70
|
return new Date(R, de, me);
|
|
71
71
|
}
|
|
72
|
-
},
|
|
73
|
-
await
|
|
74
|
-
},
|
|
75
|
-
T(!1),
|
|
72
|
+
}, se = async () => {
|
|
73
|
+
await g({ ...d, ...h }), S(!1);
|
|
74
|
+
}, le = () => {
|
|
75
|
+
T(!1), r && r();
|
|
76
76
|
}, ce = () => {
|
|
77
77
|
T(!1);
|
|
78
|
-
}, E = (
|
|
78
|
+
}, E = (_) => {
|
|
79
79
|
const R = {
|
|
80
80
|
...h,
|
|
81
|
-
...
|
|
81
|
+
..._
|
|
82
82
|
};
|
|
83
|
-
|
|
83
|
+
w(R), S(JSON.stringify({ ...d, ...R }) !== JSON.stringify(d));
|
|
84
84
|
};
|
|
85
|
-
return /* @__PURE__ */ c(
|
|
85
|
+
return /* @__PURE__ */ c(X, { children: [
|
|
86
86
|
/* @__PURE__ */ c(
|
|
87
87
|
V,
|
|
88
88
|
{
|
|
89
89
|
component: "form",
|
|
90
|
-
ref:
|
|
90
|
+
ref: m,
|
|
91
91
|
sx: {
|
|
92
92
|
backgroundColor: "background.paper",
|
|
93
93
|
p: 24,
|
|
94
|
-
width:
|
|
94
|
+
width: a ? 320 : l ? 680 : p ? 990 : 400,
|
|
95
95
|
"& .MuiTextField-root": {
|
|
96
|
-
width:
|
|
96
|
+
width: a ? 272 : l ? 328 : p ? 483 : 352
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
99
|
children: [
|
|
100
|
-
/* @__PURE__ */ e(K, { children:
|
|
101
|
-
/* @__PURE__ */ e(N, { variant: "
|
|
100
|
+
/* @__PURE__ */ e(K, { children: n.personal_details }),
|
|
101
|
+
/* @__PURE__ */ e(N, { variant: "body1", children: n.update_information }),
|
|
102
102
|
/* @__PURE__ */ c(
|
|
103
103
|
f,
|
|
104
104
|
{
|
|
105
|
-
direction:
|
|
106
|
-
spacing:
|
|
105
|
+
direction: s ? "column" : "row",
|
|
106
|
+
spacing: s ? 44 : 24,
|
|
107
107
|
sx: { mb: 44, pt: 32 },
|
|
108
108
|
children: [
|
|
109
109
|
/* @__PURE__ */ e(
|
|
110
110
|
I,
|
|
111
111
|
{
|
|
112
112
|
defaultValue: h.first_name,
|
|
113
|
-
label:
|
|
114
|
-
onChange: (
|
|
113
|
+
label: n.first_name,
|
|
114
|
+
onChange: (_) => E({ first_name: _.target.value })
|
|
115
115
|
}
|
|
116
116
|
),
|
|
117
117
|
/* @__PURE__ */ e(
|
|
118
118
|
I,
|
|
119
119
|
{
|
|
120
120
|
defaultValue: h.last_name,
|
|
121
|
-
label:
|
|
122
|
-
onChange: (
|
|
121
|
+
label: n.last_name,
|
|
122
|
+
onChange: (_) => E({ last_name: _.target.value })
|
|
123
123
|
}
|
|
124
124
|
)
|
|
125
125
|
]
|
|
126
126
|
}
|
|
127
127
|
),
|
|
128
|
-
/* @__PURE__ */ c(f, { direction:
|
|
129
|
-
b.display_email_edit_field_in_settings && /* @__PURE__ */ c(f, { sx: { mb: M ? 20 : 44, mr:
|
|
128
|
+
/* @__PURE__ */ c(f, { direction: s ? "column" : "row", children: [
|
|
129
|
+
b.display_email_edit_field_in_settings && /* @__PURE__ */ c(f, { sx: { mb: M ? 20 : 44, mr: s ? 0 : 24 }, children: [
|
|
130
130
|
/* @__PURE__ */ e(
|
|
131
131
|
I,
|
|
132
132
|
{
|
|
133
133
|
defaultValue: h.email,
|
|
134
|
-
label:
|
|
135
|
-
onChange: (
|
|
134
|
+
label: n.email_address,
|
|
135
|
+
onChange: (_) => E({ email: _.target.value })
|
|
136
136
|
}
|
|
137
137
|
),
|
|
138
138
|
M && /* @__PURE__ */ e(Ce, {})
|
|
139
139
|
] }),
|
|
140
|
-
b.display_sms_edit_field_in_settings && /* @__PURE__ */ c(f, { sx: { mb:
|
|
140
|
+
b.display_sms_edit_field_in_settings && /* @__PURE__ */ c(f, { sx: { mb: Q ? 20 : 44 }, children: [
|
|
141
141
|
/* @__PURE__ */ e(
|
|
142
142
|
I,
|
|
143
143
|
{
|
|
144
144
|
defaultValue: h.phone,
|
|
145
|
-
label:
|
|
146
|
-
onChange: (
|
|
145
|
+
label: n.mobile_number,
|
|
146
|
+
onChange: (_) => E({ phone: _.target.value }),
|
|
147
147
|
type: "tel"
|
|
148
148
|
}
|
|
149
149
|
),
|
|
150
|
-
|
|
150
|
+
Q && /* @__PURE__ */ e(De, {})
|
|
151
151
|
] })
|
|
152
152
|
] }),
|
|
153
|
-
/* @__PURE__ */ c(f, { direction:
|
|
154
|
-
/* @__PURE__ */ e(ye, { dateAdapter:
|
|
153
|
+
/* @__PURE__ */ c(f, { direction: s ? "column" : "row", spacing: s ? 44 : 24, sx: { mb: 44 }, children: [
|
|
154
|
+
/* @__PURE__ */ e(ye, { dateAdapter: ge, children: /* @__PURE__ */ e(
|
|
155
155
|
be,
|
|
156
156
|
{
|
|
157
|
-
label:
|
|
158
|
-
onChange: (
|
|
157
|
+
label: n.birthdate,
|
|
158
|
+
onChange: (_) => E({ birthday: _e(_) }),
|
|
159
159
|
slotProps: {
|
|
160
160
|
nextIconButton: {
|
|
161
161
|
sx: {
|
|
@@ -184,8 +184,8 @@ const Fe = ({ availableWidth: t, handleOnLeavClick: a }) => {
|
|
|
184
184
|
I,
|
|
185
185
|
{
|
|
186
186
|
defaultValue: h.postal_code,
|
|
187
|
-
label:
|
|
188
|
-
onChange: (
|
|
187
|
+
label: n.zip_code,
|
|
188
|
+
onChange: (_) => E({ postal_code: _.target.value })
|
|
189
189
|
}
|
|
190
190
|
)
|
|
191
191
|
] }),
|
|
@@ -194,8 +194,8 @@ const Fe = ({ availableWidth: t, handleOnLeavClick: a }) => {
|
|
|
194
194
|
I,
|
|
195
195
|
{
|
|
196
196
|
defaultValue: h.credit_score,
|
|
197
|
-
label:
|
|
198
|
-
onChange: (
|
|
197
|
+
label: n.credit_score,
|
|
198
|
+
onChange: (_) => E({ credit_score: Number(_.target.value) }),
|
|
199
199
|
sx: { mb: 44 }
|
|
200
200
|
}
|
|
201
201
|
),
|
|
@@ -203,8 +203,8 @@ const Fe = ({ availableWidth: t, handleOnLeavClick: a }) => {
|
|
|
203
203
|
Z,
|
|
204
204
|
{
|
|
205
205
|
disabled: !x,
|
|
206
|
-
onClick:
|
|
207
|
-
sx: { width:
|
|
206
|
+
onClick: se,
|
|
207
|
+
sx: { width: a ? 272 : 124 },
|
|
208
208
|
variant: "contained",
|
|
209
209
|
children: i.save_button
|
|
210
210
|
}
|
|
@@ -214,15 +214,15 @@ const Fe = ({ availableWidth: t, handleOnLeavClick: a }) => {
|
|
|
214
214
|
}
|
|
215
215
|
),
|
|
216
216
|
/* @__PURE__ */ e(
|
|
217
|
-
|
|
217
|
+
G,
|
|
218
218
|
{
|
|
219
|
-
copy: { title:
|
|
219
|
+
copy: { title: n.discard_changes },
|
|
220
220
|
isOpen: k,
|
|
221
221
|
onClose: ce,
|
|
222
|
-
onSecondaryAction:
|
|
223
|
-
primaryText:
|
|
224
|
-
secondaryText:
|
|
225
|
-
children:
|
|
222
|
+
onSecondaryAction: le,
|
|
223
|
+
primaryText: n.keep_editing,
|
|
224
|
+
secondaryText: n.leave,
|
|
225
|
+
children: n.discard_changes_message
|
|
226
226
|
}
|
|
227
227
|
)
|
|
228
228
|
] });
|
|
@@ -230,22 +230,22 @@ const Fe = ({ availableWidth: t, handleOnLeavClick: a }) => {
|
|
|
230
230
|
var y = /* @__PURE__ */ ((t) => (t.Delete = "delete", t.Edit = "edit", t.Token = "token", t))(y || {});
|
|
231
231
|
const Ve = ({
|
|
232
232
|
devices: t,
|
|
233
|
-
onClickDeviceEdit:
|
|
233
|
+
onClickDeviceEdit: r,
|
|
234
234
|
onClickDeviceDelete: o
|
|
235
235
|
}) => {
|
|
236
|
-
const i =
|
|
236
|
+
const i = O(), { settings: n } = D(), p = [
|
|
237
237
|
{
|
|
238
238
|
field: "name",
|
|
239
|
-
headerName:
|
|
239
|
+
headerName: n.mobile_devices_column_name,
|
|
240
240
|
renderHeader: F,
|
|
241
|
-
renderCell: (
|
|
242
|
-
/* @__PURE__ */ e(v, { variant: "
|
|
241
|
+
renderCell: (a) => /* @__PURE__ */ c(f, { alignItems: "center", direction: "row", gap: 4, children: [
|
|
242
|
+
/* @__PURE__ */ e(v, { variant: "body2", children: a.value }),
|
|
243
243
|
/* @__PURE__ */ e(
|
|
244
244
|
W,
|
|
245
245
|
{
|
|
246
|
-
"aria-label":
|
|
246
|
+
"aria-label": n.mobile_devices_edit_label,
|
|
247
247
|
color: "secondary",
|
|
248
|
-
onClick: () => a
|
|
248
|
+
onClick: () => r(a.row),
|
|
249
249
|
children: /* @__PURE__ */ e(L, { name: "edit" })
|
|
250
250
|
}
|
|
251
251
|
)
|
|
@@ -256,7 +256,7 @@ const Ve = ({
|
|
|
256
256
|
},
|
|
257
257
|
{
|
|
258
258
|
field: "device_type",
|
|
259
|
-
headerName:
|
|
259
|
+
headerName: n.mobile_devices_column_type,
|
|
260
260
|
renderHeader: F,
|
|
261
261
|
sortable: !0,
|
|
262
262
|
hideSortIcons: !1,
|
|
@@ -265,9 +265,9 @@ const Ve = ({
|
|
|
265
265
|
},
|
|
266
266
|
{
|
|
267
267
|
field: "created_at",
|
|
268
|
-
headerName:
|
|
268
|
+
headerName: n.mobile_devices_column_added,
|
|
269
269
|
renderHeader: F,
|
|
270
|
-
valueFormatter: (
|
|
270
|
+
valueFormatter: (a) => te(oe(a), { addSuffix: !0 }),
|
|
271
271
|
sortable: !0,
|
|
272
272
|
hideSortIcons: !1,
|
|
273
273
|
flex: 1,
|
|
@@ -277,12 +277,12 @@ const Ve = ({
|
|
|
277
277
|
field: "delete",
|
|
278
278
|
headerName: "",
|
|
279
279
|
renderHeader: F,
|
|
280
|
-
renderCell: (
|
|
280
|
+
renderCell: (a) => /* @__PURE__ */ e(f, { mr: 4, children: /* @__PURE__ */ e(
|
|
281
281
|
W,
|
|
282
282
|
{
|
|
283
|
-
"aria-label":
|
|
283
|
+
"aria-label": n.mobile_devices_delete_label,
|
|
284
284
|
color: "secondary",
|
|
285
|
-
onClick: () => o(
|
|
285
|
+
onClick: () => o(a.row),
|
|
286
286
|
children: /* @__PURE__ */ e(L, { name: "delete" })
|
|
287
287
|
}
|
|
288
288
|
) }),
|
|
@@ -290,19 +290,19 @@ const Ve = ({
|
|
|
290
290
|
hideSortIcons: !1,
|
|
291
291
|
width: 58
|
|
292
292
|
}
|
|
293
|
-
],
|
|
294
|
-
id:
|
|
295
|
-
...
|
|
296
|
-
device_type: `${
|
|
293
|
+
], s = u.useMemo(() => t.map((a) => ({
|
|
294
|
+
id: a.guid,
|
|
295
|
+
...a,
|
|
296
|
+
device_type: `${a.make} ${a.model}`
|
|
297
297
|
})), [t]);
|
|
298
298
|
return /* @__PURE__ */ e(V, { sx: { width: "100%" }, children: /* @__PURE__ */ e(
|
|
299
|
-
|
|
299
|
+
Se,
|
|
300
300
|
{
|
|
301
|
-
columns:
|
|
301
|
+
columns: p,
|
|
302
302
|
disableColumnFilter: !0,
|
|
303
303
|
disableColumnMenu: !0,
|
|
304
304
|
disableRowSelectionOnClick: !0,
|
|
305
|
-
rows:
|
|
305
|
+
rows: s,
|
|
306
306
|
slotProps: {
|
|
307
307
|
footer: {
|
|
308
308
|
sx: { justifyContent: "flex-end" }
|
|
@@ -319,8 +319,8 @@ const Ve = ({
|
|
|
319
319
|
alignItems: "center",
|
|
320
320
|
p: "12px 16px"
|
|
321
321
|
},
|
|
322
|
-
children: /* @__PURE__ */ e(v, { color: i.palette.text.secondary, variant: "
|
|
323
|
-
|
|
322
|
+
children: /* @__PURE__ */ e(v, { color: i.palette.text.secondary, variant: "body2", children: B(
|
|
323
|
+
n.mobile_devices_count,
|
|
324
324
|
/* @__PURE__ */ e("b", { children: t.length }),
|
|
325
325
|
/* @__PURE__ */ e("b", { children: t.length })
|
|
326
326
|
) })
|
|
@@ -329,7 +329,7 @@ const Ve = ({
|
|
|
329
329
|
},
|
|
330
330
|
sx: {
|
|
331
331
|
border: "1px solid",
|
|
332
|
-
borderColor: i.palette.
|
|
332
|
+
borderColor: i.palette.neutral.light,
|
|
333
333
|
borderRadius: "8px",
|
|
334
334
|
"& .MuiDataGrid-columnHeader .MuiIconButton-root": {
|
|
335
335
|
color: i.palette.primary.main,
|
|
@@ -345,18 +345,18 @@ const Ve = ({
|
|
|
345
345
|
) });
|
|
346
346
|
}, We = ({
|
|
347
347
|
devices: t,
|
|
348
|
-
onClickDeviceEdit:
|
|
348
|
+
onClickDeviceEdit: r,
|
|
349
349
|
onClickDeviceDelete: o
|
|
350
350
|
}) => {
|
|
351
|
-
const i =
|
|
352
|
-
|
|
351
|
+
const i = O(), { settings: n } = D(), [p, s] = u.useState(!1), a = (l) => (b, g) => {
|
|
352
|
+
s(g ? l : !1);
|
|
353
353
|
};
|
|
354
354
|
return /* @__PURE__ */ c(f, { mx: -28, sx: { "& .MuiAccordion-root": { mb: 0, mt: 0 } }, children: [
|
|
355
|
-
t.map((
|
|
355
|
+
t.map((l) => /* @__PURE__ */ c(
|
|
356
356
|
ke,
|
|
357
357
|
{
|
|
358
|
-
expanded:
|
|
359
|
-
onChange:
|
|
358
|
+
expanded: p === l.guid,
|
|
359
|
+
onChange: a(l.guid),
|
|
360
360
|
sx: { boxShadow: "none" },
|
|
361
361
|
children: [
|
|
362
362
|
/* @__PURE__ */ e(
|
|
@@ -366,12 +366,12 @@ const Ve = ({
|
|
|
366
366
|
sx: {
|
|
367
367
|
padding: "14px 24px",
|
|
368
368
|
borderBottom: "1px solid",
|
|
369
|
-
borderColor: i.palette.
|
|
369
|
+
borderColor: i.palette.divider
|
|
370
370
|
},
|
|
371
371
|
children: /* @__PURE__ */ c(f, { gap: 4, children: [
|
|
372
|
-
/* @__PURE__ */ e(v, { bold: !0, variant: "
|
|
373
|
-
/* @__PURE__ */ e(v, { color: i.palette.text.secondary, variant: "
|
|
374
|
-
/* @__PURE__ */ e(v, { color: i.palette.text.secondary, variant: "
|
|
372
|
+
/* @__PURE__ */ e(v, { bold: !0, variant: "body1", children: l.name }),
|
|
373
|
+
/* @__PURE__ */ e(v, { color: i.palette.text.secondary, variant: "body2", children: `${l.make} ${l.model}` }),
|
|
374
|
+
/* @__PURE__ */ e(v, { color: i.palette.text.secondary, variant: "body2", children: te(oe(l.created_at), { addSuffix: !0 }) })
|
|
375
375
|
] })
|
|
376
376
|
}
|
|
377
377
|
),
|
|
@@ -383,7 +383,7 @@ const Ve = ({
|
|
|
383
383
|
/* @__PURE__ */ c(
|
|
384
384
|
f,
|
|
385
385
|
{
|
|
386
|
-
onClick: () =>
|
|
386
|
+
onClick: () => r(l),
|
|
387
387
|
sx: {
|
|
388
388
|
alignItems: "center",
|
|
389
389
|
flexDirection: "row",
|
|
@@ -392,18 +392,18 @@ const Ve = ({
|
|
|
392
392
|
py: 16,
|
|
393
393
|
cursor: "pointer",
|
|
394
394
|
borderBottom: "1px solid",
|
|
395
|
-
borderColor: i.palette.
|
|
395
|
+
borderColor: i.palette.divider
|
|
396
396
|
},
|
|
397
397
|
children: [
|
|
398
|
-
/* @__PURE__ */ e(W, { "aria-label":
|
|
399
|
-
/* @__PURE__ */ e(v, { variant: "
|
|
398
|
+
/* @__PURE__ */ e(W, { "aria-label": n.mobile_devices_edit_label, color: "secondary", children: /* @__PURE__ */ e(L, { name: "edit" }) }),
|
|
399
|
+
/* @__PURE__ */ e(v, { variant: "body1", children: n.mobile_devices_edit_label })
|
|
400
400
|
]
|
|
401
401
|
}
|
|
402
402
|
),
|
|
403
403
|
/* @__PURE__ */ c(
|
|
404
404
|
f,
|
|
405
405
|
{
|
|
406
|
-
onClick: () => o(
|
|
406
|
+
onClick: () => o(l),
|
|
407
407
|
sx: {
|
|
408
408
|
alignItems: "center",
|
|
409
409
|
flexDirection: "row",
|
|
@@ -413,8 +413,8 @@ const Ve = ({
|
|
|
413
413
|
cursor: "pointer"
|
|
414
414
|
},
|
|
415
415
|
children: [
|
|
416
|
-
/* @__PURE__ */ e(W, { "aria-label":
|
|
417
|
-
/* @__PURE__ */ e(v, { variant: "
|
|
416
|
+
/* @__PURE__ */ e(W, { "aria-label": n.mobile_devices_delete_label, color: "secondary", children: /* @__PURE__ */ e(L, { name: "delete" }) }),
|
|
417
|
+
/* @__PURE__ */ e(v, { variant: "body1", children: n.mobile_devices_delete_label })
|
|
418
418
|
]
|
|
419
419
|
}
|
|
420
420
|
)
|
|
@@ -423,7 +423,7 @@ const Ve = ({
|
|
|
423
423
|
)
|
|
424
424
|
]
|
|
425
425
|
},
|
|
426
|
-
|
|
426
|
+
l.guid
|
|
427
427
|
)),
|
|
428
428
|
/* @__PURE__ */ e(
|
|
429
429
|
V,
|
|
@@ -431,11 +431,11 @@ const Ve = ({
|
|
|
431
431
|
sx: {
|
|
432
432
|
backgroundColor: i.palette.background.default,
|
|
433
433
|
borderTop: "1px solid",
|
|
434
|
-
borderColor: i.palette.
|
|
434
|
+
borderColor: i.palette.divider,
|
|
435
435
|
p: "12px 16px"
|
|
436
436
|
},
|
|
437
|
-
children: /* @__PURE__ */ e(v, { color: i.palette.text.secondary, variant: "
|
|
438
|
-
|
|
437
|
+
children: /* @__PURE__ */ e(v, { color: i.palette.text.secondary, variant: "body2", children: B(
|
|
438
|
+
n.mobile_devices_count,
|
|
439
439
|
/* @__PURE__ */ e("b", { children: t.length }),
|
|
440
440
|
/* @__PURE__ */ e("b", { children: t.length })
|
|
441
441
|
) })
|
|
@@ -444,44 +444,44 @@ const Ve = ({
|
|
|
444
444
|
] });
|
|
445
445
|
}, ze = ({
|
|
446
446
|
dialogType: t,
|
|
447
|
-
isOpen:
|
|
447
|
+
isOpen: r,
|
|
448
448
|
onClose: o,
|
|
449
449
|
device: i,
|
|
450
|
-
deviceToken:
|
|
450
|
+
deviceToken: n = ""
|
|
451
451
|
}) => {
|
|
452
|
-
const
|
|
453
|
-
|
|
454
|
-
i &&
|
|
452
|
+
const p = O(), { common: s, settings: a } = D(), { updateDevice: l, deleteDevice: b, setAlert: g, loadDevices: d } = A(), [h, w] = u.useState("");
|
|
453
|
+
u.useEffect(() => {
|
|
454
|
+
i && w(i.name);
|
|
455
455
|
}, [i, t]);
|
|
456
456
|
const x = () => {
|
|
457
457
|
switch (t) {
|
|
458
458
|
case y.Edit:
|
|
459
|
-
return
|
|
459
|
+
return a.mobile_devices_edit_label;
|
|
460
460
|
case y.Delete:
|
|
461
|
-
return
|
|
461
|
+
return a.mobile_devices_delete_label;
|
|
462
462
|
default:
|
|
463
463
|
return "";
|
|
464
464
|
}
|
|
465
|
-
},
|
|
465
|
+
}, S = () => {
|
|
466
466
|
switch (t) {
|
|
467
467
|
case y.Token:
|
|
468
|
-
return
|
|
468
|
+
return s.done_button;
|
|
469
469
|
case y.Edit:
|
|
470
|
-
return
|
|
470
|
+
return s.save_button;
|
|
471
471
|
case y.Delete:
|
|
472
|
-
return
|
|
472
|
+
return s.delete_button;
|
|
473
473
|
default:
|
|
474
474
|
return "";
|
|
475
475
|
}
|
|
476
476
|
}, k = () => {
|
|
477
|
-
const
|
|
477
|
+
const m = {
|
|
478
478
|
"& .MuiDialogContent-root": {
|
|
479
479
|
width: 400,
|
|
480
480
|
pt: 0
|
|
481
481
|
}
|
|
482
482
|
};
|
|
483
483
|
return t === y.Token ? {
|
|
484
|
-
...
|
|
484
|
+
...m,
|
|
485
485
|
"& .MuiToolbar-root:last-child": {
|
|
486
486
|
padding: "32px 60px 48px",
|
|
487
487
|
justifyContent: "center"
|
|
@@ -493,83 +493,83 @@ const Ve = ({
|
|
|
493
493
|
flex: 1
|
|
494
494
|
}
|
|
495
495
|
} : {
|
|
496
|
-
...
|
|
496
|
+
...m,
|
|
497
497
|
"& .MuiToolbar-root:last-child": {
|
|
498
498
|
gap: 8,
|
|
499
499
|
padding: 24,
|
|
500
500
|
justifyContent: "flex-end"
|
|
501
501
|
},
|
|
502
502
|
...t === y.Delete && {
|
|
503
|
-
"& .MuiTypography-
|
|
503
|
+
"& .MuiTypography-body1": {
|
|
504
504
|
padding: 0
|
|
505
505
|
}
|
|
506
506
|
}
|
|
507
507
|
};
|
|
508
508
|
}, T = async () => {
|
|
509
509
|
if (t === y.Token && o(), t === y.Edit && i) {
|
|
510
|
-
const
|
|
511
|
-
(await
|
|
512
|
-
|
|
510
|
+
const m = { ...i, name: h };
|
|
511
|
+
(await l(m)).success ? (g(a.mobile_devices_edit_success, "success"), d()) : g(
|
|
512
|
+
B(a.mobile_devices_edit_error, i.name),
|
|
513
513
|
"error"
|
|
514
514
|
), o();
|
|
515
515
|
}
|
|
516
|
-
t === y.Delete && i && ((await b(i.guid)).success ? (
|
|
517
|
-
|
|
516
|
+
t === y.Delete && i && ((await b(i.guid)).success ? (g(
|
|
517
|
+
B(a.mobile_devices_delete_success, i.name),
|
|
518
518
|
"success"
|
|
519
|
-
),
|
|
520
|
-
|
|
519
|
+
), d()) : g(
|
|
520
|
+
B(a.mobile_devices_delete_error, i.name),
|
|
521
521
|
"error"
|
|
522
522
|
), o());
|
|
523
523
|
};
|
|
524
524
|
return /* @__PURE__ */ c(
|
|
525
|
-
|
|
525
|
+
G,
|
|
526
526
|
{
|
|
527
527
|
copy: { title: x() },
|
|
528
|
-
isOpen:
|
|
528
|
+
isOpen: r,
|
|
529
529
|
onClose: o,
|
|
530
530
|
onPrimaryAction: T,
|
|
531
531
|
onSecondaryAction: o,
|
|
532
532
|
primaryColor: t === y.Delete ? "error" : void 0,
|
|
533
|
-
primaryText:
|
|
534
|
-
secondaryText: t === y.Token ?
|
|
533
|
+
primaryText: S(),
|
|
534
|
+
secondaryText: t === y.Token ? s.back : s.cancel_button,
|
|
535
535
|
sx: k(),
|
|
536
536
|
children: [
|
|
537
537
|
t === y.Token && /* @__PURE__ */ c(f, { spacing: 16, sx: { px: 40, textAlign: "center", width: "100%" }, children: [
|
|
538
|
-
/* @__PURE__ */ e(v, { bold: !0, truncate: !1, variant: "
|
|
539
|
-
/* @__PURE__ */ e(v, { truncate: !1, variant: "
|
|
538
|
+
/* @__PURE__ */ e(v, { bold: !0, truncate: !1, variant: "body1", children: a.mobile_devices_access_label }),
|
|
539
|
+
/* @__PURE__ */ e(v, { truncate: !1, variant: "body2", children: a.mobile_devices_access_info_1 }),
|
|
540
540
|
/* @__PURE__ */ e(
|
|
541
541
|
N,
|
|
542
542
|
{
|
|
543
543
|
sx: {
|
|
544
|
-
border: `1px solid ${
|
|
544
|
+
border: `1px solid ${p.palette.neutral.light}`,
|
|
545
545
|
borderRadius: "4px",
|
|
546
546
|
p: "16px 32px"
|
|
547
547
|
},
|
|
548
|
-
variant: "
|
|
549
|
-
children:
|
|
548
|
+
variant: "h1",
|
|
549
|
+
children: n
|
|
550
550
|
}
|
|
551
551
|
),
|
|
552
|
-
/* @__PURE__ */ e(v, { truncate: !1, variant: "
|
|
552
|
+
/* @__PURE__ */ e(v, { truncate: !1, variant: "body2", children: a.mobile_devices_access_info_2 })
|
|
553
553
|
] }),
|
|
554
|
-
t === y.Edit && /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(I, { onChange: (
|
|
555
|
-
t === y.Delete && /* @__PURE__ */ e(N, { children:
|
|
554
|
+
t === y.Edit && /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(I, { onChange: (m) => w(m.target.value), value: h }) }),
|
|
555
|
+
t === y.Delete && /* @__PURE__ */ e(N, { children: a.mobile_devices_delete_info })
|
|
556
556
|
]
|
|
557
557
|
}
|
|
558
558
|
);
|
|
559
559
|
}, $e = C(ze), Ge = C(() => {
|
|
560
|
-
const { isMobile: t } =
|
|
561
|
-
|
|
562
|
-
i &&
|
|
560
|
+
const { isMobile: t } = H(), { settings: r } = D(), { isCopyLoaded: o, isInitialized: i } = ee(), { setAlert: n, devices: p, loadDevices: s, generateDeviceToken: a } = A(), [l, b] = u.useState({ open: !1, type: "" }), [g, d] = u.useState(), [h, w] = u.useState("");
|
|
561
|
+
u.useEffect(() => {
|
|
562
|
+
i && s();
|
|
563
563
|
}, [i]);
|
|
564
564
|
const x = async () => {
|
|
565
|
-
const
|
|
566
|
-
|
|
567
|
-
},
|
|
568
|
-
m
|
|
569
|
-
}, k = (
|
|
570
|
-
m
|
|
565
|
+
const m = await a();
|
|
566
|
+
m ? (w(m), b({ open: !0, type: y.Token })) : n(r.mobile_devices_access_error, "error");
|
|
567
|
+
}, S = (m) => {
|
|
568
|
+
d(m), b({ open: !0, type: y.Edit });
|
|
569
|
+
}, k = (m) => {
|
|
570
|
+
d(m), b({ open: !0, type: y.Delete });
|
|
571
571
|
}, T = () => {
|
|
572
|
-
b({ open: !1, type: "" }),
|
|
572
|
+
b({ open: !1, type: "" }), d(void 0);
|
|
573
573
|
};
|
|
574
574
|
return !o || !i ? /* @__PURE__ */ e(ie, {}) : /* @__PURE__ */ c(
|
|
575
575
|
f,
|
|
@@ -581,171 +581,162 @@ const Ve = ({
|
|
|
581
581
|
},
|
|
582
582
|
children: [
|
|
583
583
|
/* @__PURE__ */ c(f, { gap: 4, children: [
|
|
584
|
-
/* @__PURE__ */ e(K, { children:
|
|
585
|
-
/* @__PURE__ */ e(N, { variant: "
|
|
584
|
+
/* @__PURE__ */ e(K, { children: r.mobile_devices_title }),
|
|
585
|
+
/* @__PURE__ */ e(N, { variant: "body1", children: r.mobile_devices_info })
|
|
586
586
|
] }),
|
|
587
587
|
t ? /* @__PURE__ */ e(
|
|
588
588
|
We,
|
|
589
589
|
{
|
|
590
|
-
devices:
|
|
590
|
+
devices: p,
|
|
591
591
|
onClickDeviceDelete: k,
|
|
592
|
-
onClickDeviceEdit:
|
|
592
|
+
onClickDeviceEdit: S
|
|
593
593
|
}
|
|
594
594
|
) : /* @__PURE__ */ e(
|
|
595
595
|
Ve,
|
|
596
596
|
{
|
|
597
|
-
devices:
|
|
597
|
+
devices: p,
|
|
598
598
|
onClickDeviceDelete: k,
|
|
599
|
-
onClickDeviceEdit:
|
|
599
|
+
onClickDeviceEdit: S
|
|
600
600
|
}
|
|
601
601
|
),
|
|
602
602
|
/* @__PURE__ */ c(f, { sx: { alignItems: "center", px: 24, py: 12, gap: 4 }, children: [
|
|
603
|
-
/* @__PURE__ */ e(v, { bold: !0, variant: "
|
|
604
|
-
/* @__PURE__ */ e(N, { align: "center", variant: "
|
|
605
|
-
/* @__PURE__ */ e(Z, { onClick: x, variant: "text", children:
|
|
603
|
+
/* @__PURE__ */ e(v, { bold: !0, variant: "body1", children: r.mobile_devices_access_title }),
|
|
604
|
+
/* @__PURE__ */ e(N, { align: "center", variant: "body2", children: r.mobile_devices_access_description }),
|
|
605
|
+
/* @__PURE__ */ e(Z, { onClick: x, variant: "text", children: r.mobile_devices_access_cta })
|
|
606
606
|
] }),
|
|
607
607
|
/* @__PURE__ */ e(
|
|
608
608
|
$e,
|
|
609
609
|
{
|
|
610
|
-
device:
|
|
610
|
+
device: g,
|
|
611
611
|
deviceToken: h,
|
|
612
|
-
dialogType:
|
|
613
|
-
isOpen:
|
|
612
|
+
dialogType: l.type,
|
|
613
|
+
isOpen: l.open,
|
|
614
614
|
onClose: T
|
|
615
615
|
}
|
|
616
616
|
)
|
|
617
617
|
]
|
|
618
618
|
}
|
|
619
619
|
);
|
|
620
|
-
}),
|
|
621
|
-
({ onClick: t, primaryText:
|
|
622
|
-
const
|
|
623
|
-
return /* @__PURE__ */ e(
|
|
624
|
-
/* @__PURE__ */ e(
|
|
625
|
-
/* @__PURE__ */ e(
|
|
620
|
+
}), je = Ge, q = C(
|
|
621
|
+
({ onClick: t, primaryText: r, secondaryText: o, sx: i }) => {
|
|
622
|
+
const n = O();
|
|
623
|
+
return /* @__PURE__ */ e(Ne, { sx: { bgcolor: n.palette.background.paper }, children: /* @__PURE__ */ c(Me, { alignItems: "flex-start", onClick: t, sx: i, children: [
|
|
624
|
+
/* @__PURE__ */ e(Be, { primary: r, secondary: o }),
|
|
625
|
+
/* @__PURE__ */ e(Le, { children: /* @__PURE__ */ e(ve, {}) })
|
|
626
626
|
] }) });
|
|
627
627
|
}
|
|
628
|
-
),
|
|
629
|
-
const { settings: t } = D(), { categories:
|
|
630
|
-
|
|
631
|
-
},
|
|
632
|
-
|
|
633
|
-
},
|
|
634
|
-
o && o.category_guid !==
|
|
628
|
+
), Je = C(() => {
|
|
629
|
+
const { settings: t } = D(), { categories: r } = $(), { selectedRule: o, updateRuleCategory: i } = A(), [n, p] = u.useState(!1), s = () => {
|
|
630
|
+
p(!1);
|
|
631
|
+
}, a = () => {
|
|
632
|
+
p(!0);
|
|
633
|
+
}, l = (g) => r.find((d) => d.guid === g)?.name, b = async (g) => {
|
|
634
|
+
o && o.category_guid !== g && (o.category_guid = g, await i(o)), s();
|
|
635
635
|
};
|
|
636
|
-
return /* @__PURE__ */ c(
|
|
636
|
+
return /* @__PURE__ */ c(u.Fragment, { children: [
|
|
637
637
|
/* @__PURE__ */ e(
|
|
638
|
-
|
|
638
|
+
q,
|
|
639
639
|
{
|
|
640
|
-
onClick:
|
|
641
|
-
primaryText: o?.category_guid ?
|
|
640
|
+
onClick: a,
|
|
641
|
+
primaryText: o?.category_guid ? l(o.category_guid) : "",
|
|
642
642
|
secondaryText: t.category
|
|
643
643
|
}
|
|
644
644
|
),
|
|
645
645
|
/* @__PURE__ */ e(
|
|
646
|
-
|
|
646
|
+
Re,
|
|
647
647
|
{
|
|
648
648
|
initialSelected: o?.category_guid ? o.category_guid : void 0,
|
|
649
|
-
onClose:
|
|
649
|
+
onClose: s,
|
|
650
650
|
onSelect: b,
|
|
651
|
-
showDrawer:
|
|
651
|
+
showDrawer: n,
|
|
652
652
|
title: t.select_category
|
|
653
653
|
}
|
|
654
654
|
)
|
|
655
655
|
] });
|
|
656
|
-
}),
|
|
657
|
-
const { common: t, settings:
|
|
658
|
-
|
|
659
|
-
},
|
|
660
|
-
|
|
656
|
+
}), Ke = C(() => {
|
|
657
|
+
const { common: t, settings: r } = D(), { selectedRule: o, updateRulePayee: i } = A(), n = O(), [p, s] = u.useState(!1), a = o?.description ? o.description : o?.match_description, [l, b] = u.useState(a || ""), g = () => {
|
|
658
|
+
s(!0);
|
|
659
|
+
}, d = async () => {
|
|
660
|
+
l !== a && o && (o.description = l, await i(o), s(!1));
|
|
661
661
|
};
|
|
662
|
-
return /* @__PURE__ */ c(
|
|
662
|
+
return /* @__PURE__ */ c(u.Fragment, { children: [
|
|
663
663
|
/* @__PURE__ */ e(
|
|
664
|
-
|
|
664
|
+
q,
|
|
665
665
|
{
|
|
666
|
-
onClick:
|
|
667
|
-
primaryText:
|
|
668
|
-
secondaryText:
|
|
666
|
+
onClick: g,
|
|
667
|
+
primaryText: a,
|
|
668
|
+
secondaryText: r.payee
|
|
669
669
|
}
|
|
670
670
|
),
|
|
671
671
|
/* @__PURE__ */ e(
|
|
672
|
-
|
|
672
|
+
G,
|
|
673
673
|
{
|
|
674
|
-
copy: { title:
|
|
675
|
-
isOpen:
|
|
676
|
-
onClose: () =>
|
|
677
|
-
onPrimaryAction:
|
|
678
|
-
onSecondaryAction: () =>
|
|
674
|
+
copy: { title: r.edit_payee },
|
|
675
|
+
isOpen: p,
|
|
676
|
+
onClose: () => s(!1),
|
|
677
|
+
onPrimaryAction: d,
|
|
678
|
+
onSecondaryAction: () => s(!1),
|
|
679
679
|
primaryText: t.save_button,
|
|
680
680
|
secondaryText: t.cancel_button,
|
|
681
681
|
sx: {
|
|
682
682
|
"& .MuiDialogContent-root": { pt: 0, width: 400 },
|
|
683
|
-
path: { fill:
|
|
683
|
+
path: { fill: n.palette.secondary.darker }
|
|
684
684
|
},
|
|
685
685
|
children: /* @__PURE__ */ e(
|
|
686
686
|
I,
|
|
687
687
|
{
|
|
688
688
|
onChange: (h) => b(h.target.value),
|
|
689
689
|
sx: { width: 352 },
|
|
690
|
-
value:
|
|
690
|
+
value: l
|
|
691
691
|
}
|
|
692
692
|
)
|
|
693
693
|
}
|
|
694
694
|
)
|
|
695
695
|
] });
|
|
696
|
-
}),
|
|
697
|
-
const { common: i, settings:
|
|
696
|
+
}), Ye = C(({ onClose: t, onDelete: r, isOpen: o }) => {
|
|
697
|
+
const { common: i, settings: n } = D();
|
|
698
698
|
return /* @__PURE__ */ e(
|
|
699
|
-
|
|
699
|
+
G,
|
|
700
700
|
{
|
|
701
|
-
copy: { title:
|
|
701
|
+
copy: { title: n.delete_rule },
|
|
702
702
|
isOpen: o,
|
|
703
703
|
onClose: t,
|
|
704
|
-
onPrimaryAction:
|
|
704
|
+
onPrimaryAction: r,
|
|
705
705
|
onSecondaryAction: t,
|
|
706
706
|
primaryColor: "error",
|
|
707
707
|
primaryText: i.delete_button,
|
|
708
|
+
secondaryColor: "secondary",
|
|
708
709
|
secondaryText: i.cancel_button,
|
|
709
|
-
sx: {
|
|
710
|
-
|
|
711
|
-
borderColor: d.palette.border.main,
|
|
712
|
-
color: d.palette.secondary.main
|
|
713
|
-
},
|
|
714
|
-
"& .MuiDialogContent-root": { pt: 0, width: 400 },
|
|
715
|
-
path: { fill: d.palette.secondary.darker }
|
|
716
|
-
},
|
|
717
|
-
children: /* @__PURE__ */ e(v, { truncate: !1, variant: "Small", children: r.delete_rule_confirm })
|
|
710
|
+
sx: { "& .MuiDialogContent-root": { pt: 0, width: 400 } },
|
|
711
|
+
children: /* @__PURE__ */ e(v, { truncate: !1, variant: "body2", children: n.delete_rule_confirm })
|
|
718
712
|
}
|
|
719
713
|
);
|
|
720
|
-
}),
|
|
721
|
-
({ isOpen: t, onClose:
|
|
722
|
-
const { common: i, settings:
|
|
714
|
+
}), qe = C(
|
|
715
|
+
({ isOpen: t, onClose: r, onDelete: o }) => {
|
|
716
|
+
const { common: i, settings: n } = D(), [p, s] = u.useState(!1);
|
|
723
717
|
return /* @__PURE__ */ c(
|
|
724
718
|
He,
|
|
725
719
|
{
|
|
726
720
|
hasSecondaryAction: !1,
|
|
727
721
|
isOpen: t,
|
|
728
|
-
onClose:
|
|
722
|
+
onClose: r,
|
|
729
723
|
onPrimaryAction: () => {
|
|
730
|
-
|
|
724
|
+
s(!0);
|
|
731
725
|
},
|
|
732
726
|
primaryColor: "error",
|
|
733
727
|
primaryText: i.delete_button,
|
|
734
|
-
|
|
735
|
-
"& .MuiToolbar-root": { borderTop: `1px solid ${d.palette.border.light}` }
|
|
736
|
-
},
|
|
737
|
-
title: r.edit_rule,
|
|
728
|
+
title: n.edit_rule,
|
|
738
729
|
children: [
|
|
739
|
-
/* @__PURE__ */ e(Ee, { children: /* @__PURE__ */ e(v, { bold: !0, variant: "
|
|
740
|
-
/* @__PURE__ */ e(
|
|
730
|
+
/* @__PURE__ */ e(Ee, { children: /* @__PURE__ */ e(v, { bold: !0, variant: "caption", children: n.details }) }),
|
|
731
|
+
/* @__PURE__ */ e(Ke, {}),
|
|
741
732
|
/* @__PURE__ */ e(J, { sx: { ml: 24 } }),
|
|
742
|
-
/* @__PURE__ */ e(
|
|
733
|
+
/* @__PURE__ */ e(Je, {}),
|
|
743
734
|
/* @__PURE__ */ e(J, { sx: { ml: 24 } }),
|
|
744
735
|
/* @__PURE__ */ e(
|
|
745
|
-
|
|
736
|
+
Ye,
|
|
746
737
|
{
|
|
747
|
-
isOpen:
|
|
748
|
-
onClose: () =>
|
|
738
|
+
isOpen: p,
|
|
739
|
+
onClose: () => s(!1),
|
|
749
740
|
onDelete: o
|
|
750
741
|
}
|
|
751
742
|
)
|
|
@@ -753,141 +744,141 @@ const Ve = ({
|
|
|
753
744
|
}
|
|
754
745
|
);
|
|
755
746
|
}
|
|
756
|
-
),
|
|
757
|
-
const { categories:
|
|
758
|
-
|
|
759
|
-
},
|
|
747
|
+
), Qe = C(({ rule: t }) => {
|
|
748
|
+
const { categories: r } = $(), { setSelectedGuid: o } = Pe(), { deleteTransactionRule: i, setSelectedRule: n } = A(), { isDesktop: p, isTablet: s } = H(), [a, l] = u.useState(!1), b = () => {
|
|
749
|
+
l(!1), o(null), n(void 0);
|
|
750
|
+
}, g = async () => {
|
|
760
751
|
await i(), b();
|
|
761
|
-
},
|
|
762
|
-
|
|
763
|
-
}, h = (
|
|
764
|
-
return /* @__PURE__ */ c(
|
|
752
|
+
}, d = () => {
|
|
753
|
+
l(!0), n(t);
|
|
754
|
+
}, h = (w) => r.find((x) => x.guid === w)?.name;
|
|
755
|
+
return /* @__PURE__ */ c(u.Fragment, { children: [
|
|
765
756
|
/* @__PURE__ */ e(
|
|
766
|
-
|
|
757
|
+
q,
|
|
767
758
|
{
|
|
768
|
-
onClick:
|
|
759
|
+
onClick: d,
|
|
769
760
|
primaryText: t.description ? t.description : t.match_description,
|
|
770
761
|
secondaryText: t.category_guid ? h(t.category_guid) : ""
|
|
771
762
|
}
|
|
772
763
|
),
|
|
773
|
-
/* @__PURE__ */ e(J, { sx: { ml:
|
|
774
|
-
/* @__PURE__ */ e(
|
|
764
|
+
/* @__PURE__ */ e(J, { sx: { ml: s || p ? 0 : 24 } }),
|
|
765
|
+
/* @__PURE__ */ e(qe, { isOpen: a, onClose: b, onDelete: g })
|
|
775
766
|
] });
|
|
776
|
-
}),
|
|
777
|
-
const { settings: t } = D(), { loadTransactionRules:
|
|
778
|
-
return
|
|
767
|
+
}), Xe = C(() => {
|
|
768
|
+
const { settings: t } = D(), { loadTransactionRules: r, transactionRules: o } = A(), [i, n] = u.useState(!1);
|
|
769
|
+
return ne({
|
|
779
770
|
widgetName: "TransactionRulesTab",
|
|
780
771
|
isLoaded: i
|
|
781
|
-
}),
|
|
782
|
-
|
|
772
|
+
}), u.useEffect(() => {
|
|
773
|
+
r().finally(() => n(!0));
|
|
783
774
|
}, []), /* @__PURE__ */ c(f, { sx: { gap: 24, py: 24 }, children: [
|
|
784
775
|
/* @__PURE__ */ c(f, { sx: { px: 24 }, children: [
|
|
785
776
|
/* @__PURE__ */ e(K, { children: t.transaction_rules_label }),
|
|
786
|
-
/* @__PURE__ */ e(N, { variant: "
|
|
777
|
+
/* @__PURE__ */ e(N, { variant: "body1", children: t.transaction_rules_description })
|
|
787
778
|
] }),
|
|
788
|
-
/* @__PURE__ */ e(Ae, { children: o.map((
|
|
779
|
+
/* @__PURE__ */ e(Ae, { children: o.map((p, s) => /* @__PURE__ */ e(Qe, { rule: p }, s)) })
|
|
789
780
|
] });
|
|
790
|
-
}),
|
|
791
|
-
const { alert:
|
|
781
|
+
}), re = Xe, Ze = C(({ selectedTab: t }) => {
|
|
782
|
+
const { alert: r, setAlert: o } = A(), {
|
|
792
783
|
config: { display_user_profile_in_settings: i }
|
|
793
|
-
} =
|
|
794
|
-
return /* @__PURE__ */ c(
|
|
795
|
-
t ===
|
|
796
|
-
t ===
|
|
797
|
-
t ===
|
|
798
|
-
t ===
|
|
799
|
-
t ===
|
|
784
|
+
} = z();
|
|
785
|
+
return /* @__PURE__ */ c(X, { children: [
|
|
786
|
+
t === P.Profile && /* @__PURE__ */ e(Ue, {}),
|
|
787
|
+
t === P.Devices && /* @__PURE__ */ e(je, {}),
|
|
788
|
+
t === P.Notifications && /* @__PURE__ */ e(j, { showPersonalDetails: !i }),
|
|
789
|
+
t === P.TransactionRules && /* @__PURE__ */ e(re, {}),
|
|
790
|
+
t === P.Help && /* @__PURE__ */ e(f, { sx: { px: 24 }, children: /* @__PURE__ */ e(Oe, {}) }),
|
|
800
791
|
/* @__PURE__ */ e(
|
|
801
792
|
fe,
|
|
802
793
|
{
|
|
803
794
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
804
795
|
autoHideDuration: 3500,
|
|
805
796
|
onClose: () => o(""),
|
|
806
|
-
open: !!
|
|
797
|
+
open: !!r.message,
|
|
807
798
|
children: /* @__PURE__ */ e(
|
|
808
799
|
he,
|
|
809
800
|
{
|
|
810
801
|
onClose: () => {
|
|
811
802
|
o("");
|
|
812
803
|
},
|
|
813
|
-
severity:
|
|
804
|
+
severity: r.severity,
|
|
814
805
|
variant: "filled",
|
|
815
|
-
children:
|
|
806
|
+
children: r.message
|
|
816
807
|
}
|
|
817
808
|
)
|
|
818
809
|
}
|
|
819
810
|
)
|
|
820
811
|
] });
|
|
821
812
|
});
|
|
822
|
-
var
|
|
823
|
-
const
|
|
824
|
-
const { settings: o } = D(), { isCopyLoaded: i, isInitialized:
|
|
825
|
-
|
|
813
|
+
var P = /* @__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))(P || {});
|
|
814
|
+
const $t = C(({ onBackClick: t, sx: r }) => {
|
|
815
|
+
const { settings: o } = D(), { isCopyLoaded: i, isInitialized: n } = ee(), { config: p } = z(), { isMobile: s } = H(), { categoriesLoaded: a, loadCategories: l } = $();
|
|
816
|
+
ne({
|
|
826
817
|
widgetName: "SettingsWidget",
|
|
827
|
-
isLoaded:
|
|
828
|
-
}),
|
|
829
|
-
|
|
818
|
+
isLoaded: n && i
|
|
819
|
+
}), u.useEffect(() => {
|
|
820
|
+
a || l().finally();
|
|
830
821
|
}, []);
|
|
831
822
|
const {
|
|
832
823
|
display_user_profile_in_settings: b,
|
|
833
|
-
display_mobile_devices_in_settings:
|
|
834
|
-
display_notification_settings_in_settings:
|
|
824
|
+
display_mobile_devices_in_settings: g,
|
|
825
|
+
display_notification_settings_in_settings: d,
|
|
835
826
|
display_user_transaction_rules_in_settings: h,
|
|
836
|
-
show_help_widget_in_master:
|
|
837
|
-
} =
|
|
827
|
+
show_help_widget_in_master: w
|
|
828
|
+
} = p, x = [
|
|
838
829
|
{ enabled: b, index: 0, label: o?.profile_label },
|
|
839
|
-
{ enabled:
|
|
840
|
-
{ enabled:
|
|
830
|
+
{ enabled: g, index: 1, label: o?.mobile_devices_label },
|
|
831
|
+
{ enabled: d, index: 2, label: o?.notifications_label },
|
|
841
832
|
{ enabled: h, index: 3, label: o?.transaction_rules_label },
|
|
842
|
-
{ enabled:
|
|
843
|
-
],
|
|
844
|
-
return !i || !
|
|
845
|
-
|
|
833
|
+
{ enabled: w, index: 4, label: o?.help_label }
|
|
834
|
+
], S = x.find((m) => m.enabled), [k, T] = u.useState(S ? S.index : -1);
|
|
835
|
+
return !i || !n ? /* @__PURE__ */ e(ie, {}) : /* @__PURE__ */ e(
|
|
836
|
+
Y,
|
|
846
837
|
{
|
|
847
838
|
onBackClick: t,
|
|
848
839
|
showAccountFilter: !1,
|
|
849
|
-
sx: { height: "calc(100dvh - 24px)", overflow: "auto", ...
|
|
840
|
+
sx: { height: "calc(100dvh - 24px)", overflow: "auto", ...r },
|
|
850
841
|
title: o.title,
|
|
851
|
-
children: /* @__PURE__ */ c(f, { mx:
|
|
842
|
+
children: /* @__PURE__ */ c(f, { mx: s ? 0 : 48, my: 24, children: [
|
|
852
843
|
/* @__PURE__ */ e(
|
|
853
844
|
pe,
|
|
854
845
|
{
|
|
855
|
-
onChange: (
|
|
846
|
+
onChange: (m, M) => T(M),
|
|
856
847
|
sx: { bgcolor: "background.paper" },
|
|
857
848
|
textColor: "primary",
|
|
858
849
|
value: k,
|
|
859
850
|
variant: "scrollable",
|
|
860
851
|
children: x.map(
|
|
861
|
-
(
|
|
852
|
+
(m) => m.enabled && /* @__PURE__ */ e(ue, { label: m.label, value: m.index }, m.index)
|
|
862
853
|
)
|
|
863
854
|
}
|
|
864
855
|
),
|
|
865
|
-
/* @__PURE__ */ e(
|
|
856
|
+
/* @__PURE__ */ e(Ze, { selectedTab: k })
|
|
866
857
|
] })
|
|
867
858
|
}
|
|
868
859
|
);
|
|
869
|
-
}),
|
|
870
|
-
const { clientConfig:
|
|
871
|
-
return o ? /* @__PURE__ */ e(j, { view: o }) : /* @__PURE__ */ e(
|
|
872
|
-
}),
|
|
873
|
-
const { isMobile:
|
|
874
|
-
return
|
|
860
|
+
}), Gt = C((t) => {
|
|
861
|
+
const { clientConfig: r } = z(), o = r?.master?.deep_link_params?.view;
|
|
862
|
+
return o ? /* @__PURE__ */ e(j, { view: o }) : /* @__PURE__ */ e(Y, { ...t, showAccountFilter: !1, children: /* @__PURE__ */ e(f, { my: 24, children: /* @__PURE__ */ e(j, {}) }) });
|
|
863
|
+
}), jt = (t) => {
|
|
864
|
+
const { isMobile: r } = H(), { categoriesLoaded: o, loadCategories: i } = $();
|
|
865
|
+
return u.useEffect(() => {
|
|
875
866
|
o || i().finally();
|
|
876
|
-
}), /* @__PURE__ */ e(
|
|
867
|
+
}), /* @__PURE__ */ e(Y, { ...t, showAccountFilter: !1, children: /* @__PURE__ */ e(f, { sx: { mx: r ? 0 : 48, my: 24 }, children: /* @__PURE__ */ e(re, {}) }) });
|
|
877
868
|
};
|
|
878
869
|
export {
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
870
|
+
Xt as AccountNotificationProfiles,
|
|
871
|
+
Zt as BudgetNotificationProfiles,
|
|
872
|
+
je as DeviceTab,
|
|
873
|
+
eo as InsightsNotificationProfiles,
|
|
883
874
|
j as NotificationSettings,
|
|
884
|
-
|
|
875
|
+
Gt as NotificationSettingsWidget,
|
|
885
876
|
Ue as ProfileTab,
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
877
|
+
Yt as SettingsApi,
|
|
878
|
+
qt as SettingsStore,
|
|
879
|
+
P as SettingsTabs,
|
|
880
|
+
$t as SettingsWidget,
|
|
881
|
+
Ze as SettingsWidgetContents,
|
|
882
|
+
re as TransactionRulesTab,
|
|
883
|
+
jt as TransactionRulesWidget
|
|
893
884
|
};
|