@mx-cartographer/experiences 9.0.0-alpha.mega1 → 9.0.0-ram1-bug-alpha-testing
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +676 -9
- package/README.md +216 -47
- package/dist/{Account-CMjOp7S2.mjs → Account-BaJmiJAG.mjs} +4 -4
- package/dist/{Account-BIKn4XEZ.mjs → Account-BxHMlV9R.mjs} +1 -1
- package/dist/AccountDetailsHeader-DIysk_4w.mjs +95 -0
- package/dist/AccountFields-mwJ8NXsX.mjs +141 -0
- package/dist/AccountListItem-BDXHs4tV.mjs +94 -0
- package/dist/AccountUtils-T5_Odvos.mjs +27 -0
- package/dist/Accounts-CseLC3lL.mjs +5 -0
- package/dist/Analytics-CkYXKvco.mjs +53 -0
- package/dist/Analytics-CzGzz_sE.mjs +136 -0
- package/dist/ApiEndpoints-DXwIYNUV.mjs +49 -0
- package/dist/BudgetUtil-Bg2AQJpQ.mjs +74 -0
- package/dist/{Category-Ccoew_sA.mjs → Category-DEKZGLYe.mjs} +3 -3
- package/dist/{CategorySelectorDrawer-C4aZYP4N.mjs → CategorySelectorDrawer-CmaDLhnf.mjs} +131 -119
- package/dist/Connect-Dk6GZEsA.mjs +39 -0
- package/dist/ConnectCard-CCep7Zqe.mjs +54 -0
- package/dist/ConnectDrawer-Cnjr3Ddg.mjs +58 -0
- package/dist/{ConnectionsDrawer-BExzgE16.mjs → ConnectionsDrawer-CtfPXk0M.mjs} +13 -12
- package/dist/CurrencyDialog-DumQCTPO.mjs +373 -0
- package/dist/CurrencyInput-adTIRtL3.mjs +87 -0
- package/dist/{CurrencyText-C-85TnUF.mjs → CurrencyText-CCbE6MmF.mjs} +1 -1
- package/dist/DateFormats-HudZ3Bjs.mjs +64 -0
- package/dist/DateUtil-Bhq59ZVg.mjs +58 -0
- package/dist/DebtUtils-DD3186U-.mjs +153 -0
- package/dist/Dialog-CwWc0AbH.mjs +63 -0
- package/dist/Donut-SzzfZDHF.mjs +88 -0
- package/dist/{Drawer-Bet2ZPJo.mjs → Drawer-BXqqBMxg.mjs} +32 -34
- package/dist/EmbeddedCard-DPwJjqMH.mjs +856 -0
- package/dist/{EmptyState-DoxNUae-.mjs → EmptyState-CJUDc3kD.mjs} +21 -22
- package/dist/Error-Dogaw2jO.mjs +84 -0
- package/dist/ErrorBoundary-CsdOcnJ9.mjs +23 -0
- package/dist/{ExportCsvAction-oG_Mn66T.mjs → ExportCsvAction-Bw02ZJEj.mjs} +6 -6
- package/dist/GlobalAccountFilter-7Cg2-9A5.mjs +237 -0
- package/dist/GlobalCopyApi-wcnDUzMV.mjs +128 -0
- package/dist/GoalsUtil-C9EnLWvC.mjs +107 -0
- package/dist/HeaderCell-P8w6CmfO.mjs +6 -0
- package/dist/{Help-c-zHlDbv.mjs → Help-CkQTjORd.mjs} +6 -27
- package/dist/{Help-BW_ar-4B.mjs → Help-DJ8PrVHX.mjs} +594 -562
- package/dist/InformationTooltip-4su8bn1e.mjs +41 -0
- package/dist/{InvestmentUtil-jOyOgzIB.mjs → InvestmentUtil-BItV7uEs.mjs} +17 -17
- package/dist/LineChart-CejWS_rh.mjs +612 -0
- package/dist/{ListItemAction-Cbr3417C.mjs → ListItemAction-CwspSmQi.mjs} +26 -26
- package/dist/ListItemRow-kH1rn8Xu.mjs +67 -0
- package/dist/ListItemWrapper-B5r-YQQ_.mjs +42 -0
- package/dist/Loader-CxeBwuPG.mjs +21 -0
- package/dist/Localization-DnoVyBNK.mjs +38 -0
- package/dist/ManageIncome-B1JfqslT.mjs +595 -0
- package/dist/{MicroWidgetContainer-DSyYwRCU.mjs → MicroWidgetContainer-CfKdQfhi.mjs} +2 -2
- package/dist/MiniWidgetContainer-BdPiUU-u.mjs +66 -0
- package/dist/NetWorthUtils-DilGN1nW.mjs +95 -0
- package/dist/Notification-DTNYSd8P.mjs +7 -0
- package/dist/{NotificationSettings-e789PcRb.mjs → NotificationSettings-6p-h5phZ.mjs} +143 -142
- package/dist/NotificationUtils-BRGFTePr.mjs +23 -0
- package/dist/{NumberFormatting-DjTD0t3W.mjs → NumberFormatting--XMeeBfr.mjs} +2 -1
- package/dist/OriginalBalanceAction-CkJPnp2c.mjs +114 -0
- package/dist/{RecurringSettings-BpCUcE8w.mjs → RecurringSettings-cm6MK_aS.mjs} +4 -4
- package/dist/RecurringTransactionsUtil-B3rLEx_g.mjs +253 -0
- package/dist/{ResponsiveButton-C6KH8JH4.mjs → ResponsiveButton-CC9F_Ezk.mjs} +4 -4
- package/dist/SearchBox-Cpgu_gdO.mjs +50 -0
- package/dist/Select-BFt-HD-L.mjs +55 -0
- package/dist/SelectionBox-B4xELRgp.mjs +48 -0
- package/dist/{SingleSegmentDonut-PsRQPkmV.mjs → SingleSegmentDonut-7Uy6VEld.mjs} +1 -1
- package/dist/Sizes-DISGrlUg.mjs +6 -0
- package/dist/{SpendingData-B7NuTQ9s.mjs → SpendingData-xyRoRDHv.mjs} +7 -7
- package/dist/SpendingLegend-5Ct_FZ8o.mjs +193 -0
- package/dist/ToggleListItem-Dl1lXNwj.mjs +91 -0
- package/dist/TransactionDetails-C3dlAzYf.mjs +1714 -0
- package/dist/TransactionUtils-BphBJBbU.mjs +234 -0
- package/dist/TrendsUtil-D9z3kIj_.mjs +69 -0
- package/dist/UserStore-CRpKQjpP.mjs +3002 -0
- package/dist/ViewMoreMicroCard-BD_MNc2z.mjs +1295 -0
- package/dist/WidgetContainer-DNuz_s7W.mjs +479 -0
- package/dist/accounts/AccountsMiniWidget.d.ts +1 -1
- package/dist/accounts/AccountsWidget.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/hooks/useUiStore.d.ts +6 -1
- package/dist/accounts/index.d.ts +0 -2
- package/dist/accounts/index.es.js +628 -527
- package/dist/accounts/utils/AccountDetails.d.ts +1 -1
- package/dist/accounts/utils/AccountFields.d.ts +3 -3
- 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/components/BubbleChart.d.ts +1 -1
- package/dist/budgets/components/BudgetDetailsDrawerV2.d.ts +11 -0
- 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.d.ts +2 -1
- package/dist/budgets/index.es.js +989 -813
- package/dist/budgets/utils/BubblesSVG.d.ts +3 -3
- package/dist/cashflow/CashflowMiniWidget.d.ts +1 -1
- package/dist/cashflow/CashflowWidget.d.ts +1 -1
- package/dist/cashflow/components/DetailsExpenseRow.d.ts +1 -1
- package/dist/cashflow/context/hooks.d.ts +15 -1
- package/dist/cashflow/index.d.ts +0 -2
- package/dist/cashflow/index.es.js +461 -490
- 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/context/hooks.d.ts +19 -1
- package/dist/categories/index.d.ts +0 -1
- package/dist/categories/index.es.js +4 -6
- package/dist/common/components/CurrencyDialog.d.ts +19 -0
- package/dist/common/components/CurrencyInput.d.ts +1 -1
- package/dist/common/components/EmptyState.d.ts +0 -1
- package/dist/common/components/Error.d.ts +13 -0
- package/dist/common/components/GlobalAccountFilter.d.ts +3 -2
- package/dist/common/components/Loader.d.ts +1 -2
- package/dist/common/components/MiniWidgetContainer.d.ts +1 -0
- package/dist/common/components/TinyBarChart.d.ts +10 -0
- package/dist/common/components/WidgetContainer.d.ts +4 -3
- package/dist/common/components/WidgetDateRangeSelector.d.ts +12 -0
- 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/charts/stackedlinechart/CustomAreaTooltip.d.ts +1 -1
- package/dist/common/components/daterangeselector/DateRangeSelector.d.ts +1 -0
- package/dist/common/components/globalaccountfilter/GlobalAccountFilterList.d.ts +1 -1
- package/dist/common/components/index.d.ts +2 -1
- package/dist/common/constants/Account.d.ts +1 -1
- package/dist/common/constants/Analytics.d.ts +12 -0
- 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 -6
- package/dist/common/context/GlobalDataProvider.d.ts +2 -1
- package/dist/common/context/hooks.d.ts +24 -24
- package/dist/common/hooks/index.d.ts +2 -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/hooks/useWidgetHeaderStyles.d.ts +34 -0
- package/dist/common/index.d.ts +3 -3
- package/dist/common/index.es.js +254 -1348
- package/dist/common/utils/AccountDisplayName.d.ts +1 -1
- package/dist/common/utils/AccountFilter.d.ts +2 -2
- package/dist/common/utils/Analytics.d.ts +1 -1
- package/dist/common/utils/PostMessage.d.ts +1 -0
- package/dist/common/utils/Theme.d.ts +7 -6
- package/dist/common/utils/index.d.ts +1 -6
- package/dist/{accounts → core}/api/AccountApi.d.ts +2 -2
- package/dist/{common → core}/api/AnalyticsApi.d.ts +1 -1
- package/dist/{common → core}/api/AppDataApi.d.ts +2 -2
- package/dist/{common → core}/api/BannerApi.d.ts +1 -1
- package/dist/{common → core}/api/BeatApi.d.ts +2 -2
- package/dist/{budgets → core}/api/BudgetsApi.d.ts +5 -1
- package/dist/{common → core}/api/CategoryApi.d.ts +2 -2
- package/dist/{finstrong → core}/api/FinstrongApi.d.ts +2 -2
- package/dist/{common → core}/api/GlobalCopyApi.d.ts +2 -2
- package/dist/{goals → core}/api/GoalApi.d.ts +2 -2
- package/dist/{help → core}/api/HelpApi.d.ts +2 -2
- package/dist/{investments → core}/api/HoldingApi.d.ts +2 -2
- package/dist/{merchants → core}/api/MerchantApi.d.ts +2 -2
- package/dist/{common → core}/api/NotificationApi.d.ts +2 -2
- package/dist/{recurringtransactions → core}/api/RepeatingTransactionsApi.d.ts +2 -1
- package/dist/{common → core}/api/ScheduledPaymentsApi.d.ts +2 -2
- package/dist/{settings → core}/api/SettingsApi.d.ts +2 -3
- package/dist/{transactions → core}/api/TransactionApi.d.ts +2 -2
- package/dist/{common → core}/api/UserApi.d.ts +2 -2
- package/dist/{common → core}/api/WidgetApi.d.ts +1 -1
- package/dist/core/api/index.d.ts +20 -0
- package/dist/{common → core}/constants/ApiEndpoints.d.ts +1 -2
- package/dist/{common → core}/constants/DefaultConfig.d.ts +1 -1
- package/dist/core/constants/Transaction.d.ts +10 -0
- package/dist/core/constants/index.d.ts +4 -0
- package/dist/core/constants/repeatingTransactions.d.ts +10 -0
- package/dist/core/index.d.ts +4 -0
- package/dist/core/index.es.js +108 -0
- package/dist/{accounts → core}/stores/AccountStore.d.ts +15 -3
- package/dist/{analytics → core}/stores/AnalyticsStore.d.ts +1 -1
- package/dist/{common → core}/stores/AppDataStore.d.ts +1 -2
- package/dist/{insights/store → core/stores}/BeatStore.d.ts +3 -3
- package/dist/{budgets/store → core/stores}/BudgetsStore.d.ts +15 -2
- package/dist/{cashflow/stores/UiStore.d.ts → core/stores/CashflowStore.d.ts} +10 -2
- package/dist/{categories → core}/stores/CategoryStore.d.ts +24 -2
- package/dist/{common → core}/stores/ConnectStore.d.ts +1 -1
- package/dist/core/stores/DebtsStore.d.ts +22 -0
- package/dist/{finstrong → core}/stores/FinstrongStore.d.ts +5 -4
- package/dist/{common → core}/stores/GlobalStore.d.ts +4 -25
- package/dist/{goals → core}/stores/GoalStore.d.ts +3 -2
- package/dist/{help/store → core/stores}/HelpStore.d.ts +4 -5
- package/dist/{investments → core}/stores/HoldingStore.d.ts +4 -3
- package/dist/{merchants → core}/stores/MerchantStore.d.ts +3 -2
- package/dist/{networth → core}/stores/NetWorthStore.d.ts +3 -3
- package/dist/{notifications → core}/stores/NotificationStore.d.ts +3 -1
- package/dist/{recurringtransactions → core}/stores/RecurringTransactionsStore.d.ts +3 -2
- package/dist/{settings → core}/stores/SettingsStore.d.ts +4 -4
- package/dist/{transactions → core}/stores/TransactionStore.d.ts +30 -4
- package/dist/{trends → core}/stores/TrendsStore.d.ts +11 -4
- package/dist/core/stores/index.d.ts +24 -0
- package/dist/{common → core}/types/Analytics.d.ts +6 -3
- package/dist/{common → core}/types/AppData.d.ts +8 -2
- 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/Client.d.ts +1 -0
- package/dist/{common → core}/types/Expense.d.ts +2 -1
- package/dist/{common → core}/types/Finstrong.d.ts +0 -2
- package/dist/{networth → core}/types/NetWorth.d.ts +1 -10
- package/dist/{common → core}/types/Notification.d.ts +15 -5
- package/dist/core/types/Offer.d.ts +32 -0
- package/dist/{common → core}/types/Widgets.d.ts +1 -0
- package/dist/{common → core}/types/index.d.ts +4 -3
- package/dist/{common → core}/types/localization/BudgetsCopy.d.ts +26 -0
- package/dist/{common → core}/types/localization/CashflowCopy.d.ts +1 -0
- package/dist/{common → core}/types/localization/CommonCopy.d.ts +3 -0
- package/dist/{common → core}/types/localization/DebtsCopy.d.ts +5 -0
- package/dist/{common → core}/types/localization/GoalsCopy.d.ts +0 -1
- package/dist/{common → core}/types/localization/InsightsFeedCopy.d.ts +11 -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/{common → core}/types/localization/TransactionsCopy.d.ts +11 -6
- package/dist/{common → core}/types/localization/TrendsCopy.d.ts +2 -0
- package/dist/{accounts/utils/Accounts.d.ts → core/utils/AccountUtils.d.ts} +2 -2
- package/dist/{microinsights/utils/beatUtils.d.ts → core/utils/BeatUtils.d.ts} +1 -1
- package/dist/{budgets → core}/utils/BudgetUtil.d.ts +7 -2
- package/dist/{categories/util → core/utils}/CategoryUtil.d.ts +6 -1
- package/dist/core/utils/DebtUtils.d.ts +31 -0
- package/dist/core/utils/FinstrongUtils.d.ts +7 -0
- package/dist/{goals/util → core/utils}/GoalsUtil.d.ts +1 -1
- package/dist/core/utils/HelpUtil.d.ts +3 -0
- package/dist/{investments/util → core/utils}/InvestmentUtil.d.ts +2 -2
- package/dist/{common → core}/utils/Localization.d.ts +9 -1
- package/dist/{networth → core}/utils/NetWorthUtils.d.ts +1 -2
- package/dist/{notifications → core}/utils/NotificationUtils.d.ts +2 -1
- package/dist/{common → core}/utils/NumberFormatting.d.ts +1 -1
- package/dist/{recurringtransactions/util/RecurringTransactions.d.ts → core/utils/RecurringTransactionsUtil.d.ts} +2 -2
- package/dist/{settings/util/Notifications.d.ts → core/utils/SettingsUtil.d.ts} +1 -1
- package/dist/{transactions/utils/buildDetailedTransactions.d.ts → core/utils/TransactionUtils.d.ts} +12 -2
- package/dist/{trends/utils/TrendsData.d.ts → core/utils/TrendsUtil.d.ts} +1 -1
- package/dist/core/utils/index.d.ts +2 -0
- package/dist/dashboard/index.es.js +39 -38
- package/dist/debts/DebtsWidget.d.ts +1 -1
- package/dist/debts/components/DebtsChart.d.ts +1 -1
- package/dist/debts/components/DebtsTable.d.ts +1 -1
- package/dist/debts/components/SnowballCard.d.ts +1 -1
- package/dist/debts/components/actions/DebtsPriorityAction.d.ts +6 -1
- package/dist/debts/components/actions/InterestRateAction.d.ts +1 -1
- package/dist/debts/components/actions/MonthlyPaymentAction.d.ts +1 -1
- package/dist/debts/components/actions/OriginalBalanceAction.d.ts +1 -1
- package/dist/debts/components/debtspaydown/PaydownButton.d.ts +2 -1
- package/dist/debts/components/debtspriority/DebtsPriorityButton.d.ts +3 -1
- package/dist/debts/hooks/useDebtsUiStore.d.ts +1 -1
- package/dist/debts/index.d.ts +0 -1
- package/dist/debts/index.es.js +715 -775
- package/dist/debts/utils/DebtsTable.d.ts +1 -1
- package/dist/debts/utils/SnowballCard.d.ts +2 -2
- package/dist/finstrong/FinstrongWidget.d.ts +2 -2
- 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.d.ts +0 -2
- package/dist/finstrong/index.es.js +1587 -1349
- package/dist/finstrong/util/finstrongUtils.d.ts +3 -9
- package/dist/goals/GoalsWidget.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 +2 -2
- package/dist/goals/components/managegoals/CompleteListItem.d.ts +1 -1
- package/dist/goals/components/managegoals/OngoingListItem.d.ts +3 -2
- package/dist/goals/components/managegoals/ReorderGoals.d.ts +1 -1
- package/dist/goals/components/micro/GoalMicroStatusCard.d.ts +1 -1
- package/dist/goals/index.d.ts +0 -2
- package/dist/goals/index.es.js +707 -787
- package/dist/help/HelpWidget.d.ts +2 -2
- 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 +19 -10
- package/dist/help/utils/index.d.ts +0 -1
- package/dist/{hooks-fY_n74f7.mjs → hooks-BaO_gOI6.mjs} +23 -23
- package/dist/insights/components/feed/Header.d.ts +8 -0
- package/dist/insights/components/index.d.ts +53 -0
- package/dist/insights/components/insights/AccountDiscoverability/AccountDiscoverability.d.ts +3 -0
- package/dist/insights/components/insights/AccountDiscoverability/index.d.ts +1 -0
- package/dist/insights/components/insights/AccountDiscoverability/types/AccountDiscoverability.d.ts +3 -0
- package/dist/insights/components/insights/AmericanUpcomingTaxDeadlineAlert/AmericanUpcomingTaxDeadlineAlert.d.ts +2 -0
- package/dist/insights/components/insights/AmericanUpcomingTaxDeadlineAlert/index.d.ts +1 -0
- package/dist/insights/components/insights/AmericanUpcomingTaxDeadlineAlert/types/AmericanUpcomingTaxDeadlineProps.d.ts +4 -0
- package/dist/insights/components/insights/BillAmountNotStandard/BillAmountNotStandard.d.ts +3 -0
- package/dist/insights/components/insights/BillAmountNotStandard/BillAmountNotStandardMUI.d.ts +3 -0
- package/dist/insights/components/insights/BillAmountNotStandard/index.d.ts +2 -0
- package/dist/insights/components/insights/BillAmountNotStandard/types/BillAmountNotStandard.d.ts +4 -0
- package/dist/insights/components/insights/CashBack/CashBack.d.ts +3 -0
- package/dist/insights/components/insights/CashBack/index.d.ts +1 -0
- package/dist/insights/components/insights/CashBack/types/CashBack.d.ts +7 -0
- package/dist/insights/components/insights/CategoryBudget/CategoryBudget.d.ts +3 -0
- package/dist/insights/components/insights/CategoryBudget/index.d.ts +1 -0
- package/dist/insights/components/insights/CategoryBudget/types/CategoryBudget.d.ts +10 -0
- package/dist/insights/components/insights/CategorySpendingV2/CategorySpendingV2.d.ts +2 -0
- package/dist/insights/components/insights/CategorySpendingV2/CategorySpendingV2MUI.d.ts +2 -0
- package/dist/insights/components/insights/CategorySpendingV2/index.d.ts +2 -0
- package/dist/insights/components/insights/CategorySpendingV2/types/CategorySpendingV2.d.ts +7 -0
- package/dist/insights/components/insights/CelebrateCreditCardPayoff/CelebrateCreditCardPayoff.d.ts +3 -0
- package/dist/insights/components/insights/CelebrateCreditCardPayoff/index.d.ts +1 -0
- package/dist/insights/components/insights/CelebrateCreditCardPayoff/types/CelebrateCreditCardPayoffProps.d.ts +9 -0
- package/dist/insights/components/insights/CustomTransaction/CustomTransaction.d.ts +3 -0
- package/dist/insights/components/insights/CustomTransaction/index.d.ts +1 -0
- package/dist/insights/components/insights/DiscoveredAccounts/DiscoveredAccountsBody.d.ts +9 -0
- package/dist/insights/components/insights/DiscoveredAccounts/DiscoveredAccountsLearnMoreDrawerContent.d.ts +21 -0
- package/dist/insights/components/insights/DiscoveredAccounts/DiscoveredAccountsMiniInsight.d.ts +6 -0
- package/dist/insights/components/insights/DiscoveredAccounts/index.d.ts +3 -0
- package/dist/insights/components/insights/FederalBankHoliday/FederalBankHoliday.d.ts +3 -0
- package/dist/insights/components/insights/FederalBankHoliday/FederalBankHolidayMUI.d.ts +3 -0
- package/dist/insights/components/insights/FederalBankHoliday/index.d.ts +2 -0
- package/dist/insights/components/insights/FederalBankHoliday/types/FederalBankHoliday.d.ts +4 -0
- package/dist/insights/components/insights/MarketingHub/Offer.d.ts +3 -0
- package/dist/insights/components/insights/MarketingHub/Types.d.ts +33 -0
- package/dist/insights/components/insights/MarketingHub/index.d.ts +2 -0
- package/dist/insights/components/insights/MonthlyDebtToIncomeComparisonV2/MonthlyDebtToIncomeComparisonV2.d.ts +2 -0
- package/dist/insights/components/insights/MonthlyDebtToIncomeComparisonV2/index.d.ts +1 -0
- package/dist/insights/components/insights/MonthlyDebtToIncomeComparisonV2/types/index.d.ts +4 -0
- package/dist/insights/components/insights/MonthlyEmergencyFundReview/LastMonthsContributionSection.d.ts +6 -0
- package/dist/insights/components/insights/MonthlyEmergencyFundReview/MonthlyEmergencyFundReviewBody.d.ts +21 -0
- package/dist/insights/components/insights/MonthlyEmergencyFundReview/ProjectedCompletionSection.d.ts +6 -0
- package/dist/insights/components/insights/MonthlyEmergencyFundReview/TotalSection.d.ts +7 -0
- package/dist/insights/components/insights/MonthlyEmergencyFundReview/index.d.ts +4 -0
- package/dist/insights/components/insights/MonthlySavingsToIncomeComparison/MonthlySavingsToIncomeComparison.d.ts +2 -0
- package/dist/insights/components/insights/MonthlySavingsToIncomeComparison/index.d.ts +1 -0
- package/dist/insights/components/insights/MonthlySavingsToIncomeComparison/types/index.d.ts +4 -0
- package/dist/insights/components/insights/MonthlySpendToIncomeComparisonV2/MonthlySpendToIncomeComparisonV2.d.ts +2 -0
- package/dist/insights/components/insights/MonthlySpendToIncomeComparisonV2/index.d.ts +1 -0
- package/dist/insights/components/insights/MonthlySpendToIncomeComparisonV2/types/index.d.ts +4 -0
- package/dist/insights/components/insights/MonthlySpendingComparisonV2/MonthlySpendingComparisonV2.d.ts +3 -0
- package/dist/insights/components/insights/MonthlySpendingComparisonV2/__test__/MonthlySpendComparisonV2.test.d.ts +1 -0
- package/dist/insights/components/insights/MonthlySpendingComparisonV2/index.d.ts +1 -0
- package/dist/insights/components/insights/MonthlySpendingComparisonV2/types/MonthlySpendComparisonV2.d.ts +4 -0
- package/dist/insights/components/insights/P2pCategorization/P2pCategorization.d.ts +3 -0
- package/dist/insights/components/insights/P2pCategorization/_tests_/P2pCategorizationMultipleTransaction.test.d.ts +0 -0
- package/dist/insights/components/insights/P2pCategorization/_tests_/P2pCategorizationSingleTransaction.test.d.ts +0 -0
- package/dist/insights/components/insights/P2pCategorization/index.d.ts +4 -0
- package/dist/insights/components/insights/P2pCategorization/shared/P2pCategorizationMultipleTransactions.d.ts +3 -0
- package/dist/insights/components/insights/P2pCategorization/shared/P2pCategorizationSingleTransaction.d.ts +3 -0
- package/dist/insights/components/insights/P2pCategorization/types/P2pCategorization.d.ts +17 -0
- package/dist/insights/components/insights/SavingsAccountBalancesSummary/SavingsAccountBalancesSummary.d.ts +2 -0
- package/dist/insights/components/insights/SavingsAccountBalancesSummary/index.d.ts +1 -0
- package/dist/insights/components/insights/SavingsAccountBalancesSummary/types/SavingsAccountBalancesSummary.d.ts +4 -0
- package/dist/insights/components/insights/SetUpDirectDeposit/SetUpDirectDepositBody.d.ts +3 -0
- package/dist/insights/components/insights/SetUpDirectDeposit/index.d.ts +1 -0
- package/dist/insights/components/insights/SharedDeposit/SharedDeposit.d.ts +2 -0
- package/dist/insights/components/insights/SharedDeposit/index.d.ts +1 -0
- package/dist/insights/components/insights/SharedDeposit/types/index.d.ts +7 -0
- package/dist/insights/components/insights/SwitchDirectDeposit/AccountBox.d.ts +7 -0
- package/dist/insights/components/insights/SwitchDirectDeposit/SwitchDirectDepositBody.d.ts +10 -0
- package/dist/insights/components/insights/SwitchDirectDeposit/SwitchDirectDepositMainContainer.d.ts +9 -0
- package/dist/insights/components/insights/SwitchDirectDeposit/index.d.ts +3 -0
- package/dist/insights/components/insights/UnifiedDeposit/UnifiedDeposit.d.ts +7 -0
- package/dist/insights/components/insights/UnifiedDeposit/UnifiedDepositBody.d.ts +11 -0
- package/dist/insights/components/insights/UnifiedDeposit/index.d.ts +1 -0
- package/dist/insights/components/insights/UserFeedback/StyledToggleButton.d.ts +7 -0
- package/dist/insights/components/insights/UserFeedback/Types.d.ts +27 -0
- package/dist/insights/components/insights/UserFeedback/UserFeedback.d.ts +3 -0
- package/dist/insights/components/insights/UserFeedback/index.d.ts +1 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/BubbleWeek.d.ts +9 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/NoSpendIcons.d.ts +1 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/WeeklyNoSpendDays.d.ts +12 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/_tests_/WeeklyNoSpendDays.test.d.ts +0 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/index.d.ts +1 -0
- package/dist/insights/components/insights/index.d.ts +25 -0
- package/dist/insights/components/shared/AccountBalanceCard.d.ts +13 -0
- package/dist/insights/components/shared/BottomSheet.d.ts +13 -0
- package/dist/insights/components/shared/CarouselControls.d.ts +14 -0
- package/dist/insights/components/shared/ChartDrawerTemplate/ChartDrawerTemplate.d.ts +30 -0
- package/dist/insights/components/shared/ChartDrawerTemplate/TipSection.d.ts +9 -0
- package/dist/insights/components/shared/ChartTransactionWithDrillDown.d.ts +22 -0
- package/dist/insights/components/shared/Charts/BarChart/BarChart.d.ts +2 -0
- package/dist/insights/components/shared/Charts/BarChart/BarChartV2.d.ts +2 -0
- package/dist/insights/components/shared/Charts/BarChart/ChartLegend.d.ts +9 -0
- package/dist/insights/components/shared/Charts/BarChart/ChartLegendV2.d.ts +10 -0
- package/dist/insights/components/shared/Charts/BarChart/CustomBarPlot.d.ts +18 -0
- package/dist/insights/components/shared/Charts/BarChart/CustomBarPlotV2.d.ts +18 -0
- package/dist/insights/components/shared/Charts/BarChart/CustomDoubleBarPlot.d.ts +18 -0
- package/dist/insights/components/shared/Charts/BarChart/CustomDoubleBarPlotMXUI.d.ts +18 -0
- package/dist/insights/components/shared/Charts/BarChart/DoubleBarChart.d.ts +2 -0
- package/dist/insights/components/shared/Charts/BarChart/DoubleBarChartLegend.d.ts +10 -0
- package/dist/insights/components/shared/Charts/BarChart/DoubleBarChartLegendMXUI.d.ts +10 -0
- package/dist/insights/components/shared/Charts/BarChart/DoubleBarChartMXUI.d.ts +2 -0
- package/dist/insights/components/shared/Charts/BarChart/index.d.ts +4 -0
- package/dist/insights/components/shared/Charts/EmptyBarChart.d.ts +1 -0
- package/dist/insights/components/shared/Charts/index.d.ts +2 -0
- package/dist/insights/components/shared/Confetti.d.ts +5 -0
- package/dist/insights/components/shared/ConnectionCard.d.ts +14 -0
- package/dist/insights/components/shared/ConnectionDetailDrillDown.d.ts +25 -0
- package/dist/insights/components/shared/Coupon.d.ts +8 -0
- package/dist/insights/components/shared/DeepLinks/DeepLinkDialog.d.ts +11 -0
- package/dist/insights/components/shared/DeepLinks/DirectDeposit/Circle.d.ts +6 -0
- package/dist/insights/components/shared/DeepLinks/DirectDeposit/DirectDepositDeepLink.d.ts +24 -0
- package/dist/insights/components/shared/DeepLinks/DirectDeposit/Dot.d.ts +1 -0
- package/dist/insights/components/shared/DeepLinks/DirectDeposit/Oval.d.ts +1 -0
- package/dist/insights/components/shared/DirectDeposit/DirectDeposit.d.ts +3 -0
- package/dist/insights/components/shared/DirectDeposit/DirectDepositSubHeader.d.ts +14 -0
- package/dist/insights/components/shared/DirectDeposit/FullFeedBodyHeader.d.ts +10 -0
- package/dist/insights/components/shared/DirectDeposit/LeftBox.d.ts +7 -0
- package/dist/insights/components/shared/DirectDeposit/MiniBodyHeader.d.ts +10 -0
- package/dist/insights/components/shared/DirectDeposit/RightBox.d.ts +8 -0
- package/dist/insights/components/shared/DiscoveredAccountsConnect.d.ts +8 -0
- package/dist/insights/components/shared/DonutChartV2.d.ts +13 -0
- package/dist/insights/components/shared/DrillDownCalculation/BalanceStepper.d.ts +12 -0
- package/dist/insights/components/shared/DrillDownCalculation/DrillDownCalculation.d.ts +31 -0
- package/dist/insights/components/shared/ErrorCard/ErrorCard.d.ts +8 -0
- package/dist/insights/components/shared/GenericFeedback/FeedbackButtons.d.ts +15 -0
- package/dist/insights/components/shared/GenericFeedback/FeedbackDescription.d.ts +5 -0
- package/dist/insights/components/shared/GenericFeedback/FeedbackHeader.d.ts +15 -0
- package/dist/insights/components/shared/GenericFeedback/FeedbackOptions.d.ts +12 -0
- package/dist/insights/components/shared/GenericFeedback/FeedbackText.d.ts +13 -0
- package/dist/insights/components/shared/GoalProgress.d.ts +10 -0
- package/dist/insights/components/shared/GradientBox.d.ts +8 -0
- package/dist/insights/components/shared/InsightsCard/BeatCard.d.ts +20 -0
- package/dist/insights/components/shared/InsightsCard/BeatCardMUI.d.ts +20 -0
- package/dist/insights/components/shared/InsightsCard/CardButtonSection.d.ts +7 -0
- package/dist/insights/components/shared/InsightsCard/CardError.d.ts +5 -0
- package/dist/insights/components/shared/InsightsCard/CardFooter.d.ts +7 -0
- package/dist/insights/components/shared/InsightsCard/CardHeader.d.ts +11 -0
- package/dist/insights/components/shared/InsightsCard/CardHeaderMUI.d.ts +11 -0
- package/dist/insights/components/shared/InsightsCard/CardLoading.d.ts +5 -0
- package/dist/insights/components/shared/InsightsCard/ClientConfigurableCta.d.ts +5 -0
- package/dist/insights/components/shared/InsightsCard/ContentAndDescription.d.ts +15 -0
- package/dist/insights/components/shared/InsightsCard/ContentAndDescriptionMUI.d.ts +15 -0
- package/dist/insights/components/shared/InsightsCard/Description.d.ts +10 -0
- package/dist/insights/components/shared/InsightsCard/DescriptionMUI.d.ts +10 -0
- package/dist/insights/components/shared/InsightsCard/EmbeddedCard.d.ts +9 -0
- package/dist/insights/components/shared/InsightsCard/FeedbackCard.d.ts +13 -0
- package/dist/insights/components/shared/InsightsCard/InsightButton.d.ts +12 -0
- package/dist/insights/components/shared/InsightsCard/MiniDescription.d.ts +9 -0
- package/dist/insights/components/shared/InsightsCard/MiniDescriptionMUI.d.ts +9 -0
- package/dist/insights/components/shared/MenuAction.d.ts +15 -0
- package/dist/insights/components/shared/MiniInsightCard.d.ts +16 -0
- package/dist/insights/components/shared/P2P/P2PMultipleCategorization.d.ts +12 -0
- package/dist/insights/components/shared/P2PCategorizationSingleAccount/P2PCategorizationSingleAccount.d.ts +10 -0
- package/dist/insights/components/shared/ProgressBar.d.ts +9 -0
- package/dist/insights/components/shared/SaveAnExtra100/SaveAnExtra100.d.ts +9 -0
- package/dist/insights/components/shared/SaveEnoughToLiveOnBottomSection.d.ts +11 -0
- package/dist/insights/components/shared/SaveEnoughToLiveOnTopSection.d.ts +2 -0
- package/dist/insights/components/shared/StatusIndicator.d.ts +15 -0
- package/dist/insights/components/shared/TabContainer.d.ts +8 -0
- package/dist/insights/components/shared/ThemedSVGImage.d.ts +2 -0
- package/dist/insights/components/shared/TransactionCard.d.ts +14 -0
- package/dist/insights/components/shared/ZeroState/LinedCardZeroState.d.ts +1 -0
- package/dist/insights/components/shared/index.d.ts +2 -0
- package/dist/insights/hooks/useContainerDimensions.d.ts +5 -0
- package/dist/insights/index.d.ts +1 -1
- package/dist/insights/index.es.js +4843 -2
- package/dist/insights/themes/Typography.d.ts +1 -0
- package/dist/insights/themes/index.d.ts +1 -0
- package/dist/insights/types/Charts/BarChart.d.ts +96 -0
- package/dist/insights/types/CommonBeat.d.ts +367 -0
- package/dist/insights/types/DirectDeposit.d.ts +16 -0
- package/dist/insights/types/ThemedSVGImage.d.ts +5 -0
- package/dist/investments/InvestmentsWidget.d.ts +2 -2
- package/dist/investments/components/AnalysisDetails.d.ts +1 -1
- package/dist/investments/components/allocation/util/createInvestementsAllocationData.d.ts +2 -2
- package/dist/investments/index.es.js +574 -574
- package/dist/merchants/index.d.ts +0 -1
- package/dist/merchants/index.es.js +18 -20
- package/dist/microinsights/InsightsMicroWidget.d.ts +1 -14
- package/dist/microinsights/MicroCardTemplate.d.ts +2 -4
- 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 +3 -3
- package/dist/microinsights/cards/NoRelevantInsightsCard.d.ts +3 -3
- package/dist/microinsights/cards/ViewMoreMicroCard.d.ts +3 -3
- package/dist/microinsights/cards/ZeroStateCard.d.ts +3 -3
- package/dist/microinsights/carousel/BeatList.d.ts +3 -3
- package/dist/microinsights/carousel/CarouselHeader.d.ts +4 -2
- package/dist/microinsights/carousel/MicroBeatCarousel.d.ts +12 -12
- 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.d.ts +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/microinsights/interfaces.d.ts +23 -40
- package/dist/microinsights/stores/CopyStore.d.ts +2 -2
- package/dist/microinsights/stores/InsightsMicroWidgetStore.d.ts +2 -2
- 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/AssetsLiabilitiesDetail.d.ts +1 -1
- package/dist/networth/components/GainsLossesDetail.d.ts +1 -1
- package/dist/networth/components/NetWorthChange.d.ts +1 -1
- package/dist/networth/components/NetWorthListItem.d.ts +1 -1
- package/dist/networth/components/NetWorthSummary.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.d.ts +0 -4
- package/dist/networth/index.es.js +302 -314
- 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.d.ts +0 -2
- package/dist/notifications/index.es.js +101 -93
- package/dist/recurringtransactions/RecurringTransactionsMiniWidget.d.ts +1 -1
- package/dist/recurringtransactions/RecurringTransactionsWidget.d.ts +2 -2
- 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.d.ts +0 -1
- package/dist/recurringtransactions/index.es.js +489 -462
- package/dist/settings/NotificationSettingsWidget.d.ts +1 -1
- package/dist/settings/SettingsWidget.d.ts +2 -2
- package/dist/settings/TransactionRulesWidget.d.ts +1 -1
- 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.d.ts +0 -2
- package/dist/settings/index.es.js +419 -430
- package/dist/spending/SpendingMiniWidget.d.ts +1 -1
- package/dist/spending/SpendingWidget.d.ts +1 -1
- package/dist/spending/index.es.js +229 -222
- package/dist/spending/utils/SpendingData.d.ts +1 -1
- package/dist/transactions/TransactionWidget.d.ts +1 -1
- package/dist/transactions/components/shared/TransactionDetails.d.ts +1 -1
- package/dist/transactions/components/shared/TransactionList.d.ts +3 -4
- package/dist/transactions/components/shared/getEmbeddedInstanceSlotByBeatTemplates.d.ts +17 -0
- 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/ExcludeAction.d.ts +7 -0
- 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 +2 -1
- package/dist/transactions/components/shared/transactionlist/TransactionRow.d.ts +1 -1
- package/dist/transactions/components/shared/transactiontable/cells/PayeeCell.d.ts +4 -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/context/hooks.d.ts +1 -1
- package/dist/transactions/index.d.ts +0 -5
- package/dist/transactions/index.es.js +344 -351
- package/dist/transactions/utils/Filters.d.ts +1 -1
- package/dist/transactions/utils/Transactions.d.ts +17 -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.d.ts → TrendsTableContainer.d.ts} +2 -2
- package/dist/trends/components/trendstable/AccessibleSortIcon.d.ts +13 -0
- package/dist/trends/components/trendstable/TrendsTable.d.ts +12 -0
- package/dist/trends/index.d.ts +0 -1
- package/dist/trends/index.es.js +991 -876
- package/dist/trends/utils/SpendingData.d.ts +1 -1
- package/dist/trends/utils/TrendsTable.d.ts +5 -3
- package/dist/trends/utils/TrendsWidget.d.ts +7 -0
- package/dist/trends/utils/shared.d.ts +2 -2
- package/dist/{useAccountDisplayName-DbkgGLdg.mjs → useAccountDisplayName-CFa_MrS6.mjs} +5 -5
- package/dist/{useAriaLive-B3_pRUio.mjs → useAriaLive-MkYebyUR.mjs} +4 -4
- package/dist/{useDimensions-27p2evRx.mjs → useDimensions-CeDR9V8N.mjs} +6 -6
- package/dist/{useInsightsEnabled-dhmXeSyF.mjs → useInsightsEnabled-DaNLPmUU.mjs} +1 -1
- package/dist/{useScreenSize-B6JyS_Lj.mjs → useScreenSize-mWpmnh5w.mjs} +3 -3
- package/dist/{useWidgetLoadTimer-CrUzxN-P.mjs → useWidgetLoadTimer-CJb-RELP.mjs} +1 -1
- package/package.json +65 -43
- package/dist/AccountApi-DgZ8ILj1.mjs +0 -19
- package/dist/AccountDetailsHeader-BOV91g1o.mjs +0 -95
- package/dist/AccountFields-BRRH37K1.mjs +0 -140
- package/dist/AccountListItem-Ds5C0mOT.mjs +0 -90
- package/dist/AccountStore-BFKvXJSD.mjs +0 -244
- package/dist/Accounts-CuE8aSZN.mjs +0 -27
- package/dist/BeatApi-De2IaqH2.mjs +0 -21
- package/dist/BeatStore-D_NYuBSz.mjs +0 -81
- package/dist/BudgetUtil-CDSOZXem.mjs +0 -101
- package/dist/CashflowStore-naOtJcwo.mjs +0 -91
- package/dist/CategoryStore-DEqAnHbi.mjs +0 -186
- package/dist/CategoryUtil-CFHBvaV4.mjs +0 -80
- package/dist/CurrencyInput-DDQ4DBrE.mjs +0 -85
- package/dist/DateUtil-CVsMhbZU.mjs +0 -48
- package/dist/DebtsStore-Dv_T7Dts.mjs +0 -63
- package/dist/Dialog-CWymUiuO.mjs +0 -120
- package/dist/Donut-Dmy3JTWd.mjs +0 -86
- package/dist/Fetch-DecPFeGU.mjs +0 -119
- package/dist/FinstrongStore-BjFkMTIL.mjs +0 -451
- package/dist/GlobalAccountFilter-BpWlPAl5.mjs +0 -316
- package/dist/GoalStore-Dbjgft2i.mjs +0 -422
- package/dist/HeaderCell-DjuifqHJ.mjs +0 -6
- package/dist/LineChart-DHj-Bufi.mjs +0 -580
- package/dist/Loader-BSWSYqvn.mjs +0 -24
- package/dist/Localization-2MODESHW.mjs +0 -30
- package/dist/ManageIncome-DIIyqDTp.mjs +0 -585
- package/dist/MerchantStore-WvZ4gnQe.mjs +0 -37
- package/dist/MiniWidgetContainer-DKn7ndO6.mjs +0 -56
- package/dist/NetWorthStore-B6ziBtaH.mjs +0 -168
- package/dist/Notification-Bs1fdbzI.mjs +0 -95
- package/dist/NotificationStore-Ck2KdNmT.mjs +0 -79
- package/dist/OriginalBalanceAction-DFoG79Ba.mjs +0 -115
- package/dist/RecurringTransactionsStore-D_--5PWH.mjs +0 -277
- package/dist/RepeatingTransaction-C2txVA9O.mjs +0 -292
- package/dist/SearchBox-B2_zLv8-.mjs +0 -42
- package/dist/SettingsStore-CInvh-rQ.mjs +0 -269
- package/dist/SpendingLegend-BxefXiQd.mjs +0 -193
- package/dist/TransactionApi-CjBoLleL.mjs +0 -86
- package/dist/TransactionDetails-CPwv9xtZ.mjs +0 -1374
- package/dist/TransactionStore-D2aMUClq.mjs +0 -688
- package/dist/TrendsStore-BdsYfCc7.mjs +0 -183
- package/dist/User-CulNdZUr.mjs +0 -314
- package/dist/ViewMoreMicroCard-CDWR16_h.mjs +0 -1147
- package/dist/WidgetContainer-mzejMmz2.mjs +0 -555
- package/dist/accounts/stores/UiStore.d.ts +0 -10
- package/dist/accounts/utils/index.d.ts +0 -1
- package/dist/cashflow/api/CashflowApi.d.ts +0 -13
- package/dist/cashflow/stores/CashflowStore.d.ts +0 -8
- package/dist/categories/stores/UiStore.d.ts +0 -20
- package/dist/common/api/LocalizedCopyApi.d.ts +0 -8
- package/dist/common/api/index.d.ts +0 -10
- 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/stores/index.d.ts +0 -3
- package/dist/common/types/SpendingPlan.d.ts +0 -44
- package/dist/common/utils/Categories.d.ts +0 -6
- package/dist/debts/store/DebtsStore.d.ts +0 -9
- package/dist/debts/store/DebtsUiStore.d.ts +0 -13
- package/dist/debts/utils/DebtStore.d.ts +0 -4
- package/dist/debts/utils/DebtsWidget.d.ts +0 -14
- package/dist/debts/utils/shared.d.ts +0 -12
- package/dist/exportTransactionsToCSV-BU1jTY0Q.mjs +0 -48
- package/dist/help/constants/index.d.ts +0 -1
- package/dist/help/utils/getAccessibleHelpCategories.d.ts +0 -3
- package/dist/transactions/analytics.d.ts +0 -3
- package/dist/transactions/components/shared/transactiondetails/actions/HideAction.d.ts +0 -7
- package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +0 -7
- package/dist/transactions/constants/Transaction.d.ts +0 -2
- package/dist/transactions/constants/TransactionsTable.d.ts +0 -17
- package/dist/transactions/stores/UiStore.d.ts +0 -25
- package/dist/transactions/utils/exportTransactionsToCSV.d.ts +0 -9
- package/dist/transactions/utils/sortAndFilterTransactions.d.ts +0 -3
- package/dist/trends/components/CategoryDetailDrawer.d.ts +0 -7
- package/dist/useCombineEvents-CRwX-qWE.mjs +0 -92
- package/dist/{common → core}/constants/Category.d.ts +0 -0
- package/dist/{common → core}/constants/DateFormats.d.ts +0 -0
- package/dist/{debts/constants/index.d.ts → core/constants/Debts.d.ts} +0 -0
- package/dist/{help → core}/constants/Help.d.ts +0 -0
- package/dist/{investments/constants/index.d.ts → core/constants/Investments.d.ts} +0 -0
- package/dist/{common → core}/constants/Numbers.d.ts +0 -0
- package/dist/{common → core}/constants/Table.d.ts +0 -0
- package/dist/{common → core}/stores/GlobalCopyStore.d.ts +0 -0
- package/dist/{common → core}/stores/GlobalUiStore.d.ts +0 -0
- package/dist/{common → core}/stores/UserStore.d.ts +1 -1
- /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/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/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/HelpCopy.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/index.d.ts +0 -0
- /package/dist/{common → core}/utils/DateUtil.d.ts +0 -0
- /package/dist/{common → core}/utils/Fetch.d.ts +0 -0
- /package/dist/{common/utils/User.d.ts → core/utils/UserUtils.d.ts} +0 -0
|
@@ -0,0 +1,1295 @@
|
|
|
1
|
+
import { jsx as o, jsxs as N, Fragment as Te } from "react/jsx-runtime";
|
|
2
|
+
import I, { useEffect as re, useState as ie } from "react";
|
|
3
|
+
import { observer as U } from "mobx-react-lite";
|
|
4
|
+
import k from "@mui/material/Stack";
|
|
5
|
+
import ke from "@mui/material/Button";
|
|
6
|
+
import { CategoryIcon as Ue, MerchantLogo as ze, InstitutionLogo as Ke, P as pe, Text as me, H3 as Fe } from "@mxenabled/mxui";
|
|
7
|
+
import { Icon as He, Close as $e, ChevronLeft as je, ChevronRight as Re } from "@mxenabled/mx-icons";
|
|
8
|
+
import { L as Ye } from "./Loader-CxeBwuPG.mjs";
|
|
9
|
+
import ae from "@mui/material/Box";
|
|
10
|
+
import ue from "@mui/material/IconButton";
|
|
11
|
+
import { useTheme as P, alpha as s } from "@mui/material/styles";
|
|
12
|
+
import { useInView as Oe } from "react-intersection-observer";
|
|
13
|
+
import { C as Xe } from "./Category-DEKZGLYe.mjs";
|
|
14
|
+
import { b as Ze } from "./Localization-DnoVyBNK.mjs";
|
|
15
|
+
import Qe from "@mui/material/CircularProgress";
|
|
16
|
+
import { makeAutoObservable as se, runInAction as We } from "mobx";
|
|
17
|
+
import { a as qe, u as Je, b as et } from "./Analytics-CkYXKvco.mjs";
|
|
18
|
+
import { G as Ce, B as he } from "./GlobalCopyApi-wcnDUzMV.mjs";
|
|
19
|
+
import { u as tt } from "./useWidgetLoadTimer-CJb-RELP.mjs";
|
|
20
|
+
import { Card as ot, CardActionArea as nt, Box as it, IconButton as rt, Stack as F, Button as ge } from "@mui/material";
|
|
21
|
+
import at from "@mui/material/Avatar";
|
|
22
|
+
class st {
|
|
23
|
+
copyApi = new Ce("/", "");
|
|
24
|
+
copyObject = {};
|
|
25
|
+
namespace = "experiences";
|
|
26
|
+
translationKey = "micro_insights";
|
|
27
|
+
constructor() {
|
|
28
|
+
se(this);
|
|
29
|
+
}
|
|
30
|
+
// NOTE: Not sure if this is special case, but other stores have this deprecation todo
|
|
31
|
+
// DEPRECATED: Initialize api in constructor and use loadCopy instead
|
|
32
|
+
// TODO: Remove this function
|
|
33
|
+
initialize = async (e, n) => {
|
|
34
|
+
this.copyApi = new Ce(e, n), await this.loadCopy();
|
|
35
|
+
};
|
|
36
|
+
loadCopy = async () => {
|
|
37
|
+
const e = await this.copyApi.getGlobalCopy(this.namespace, this.translationKey);
|
|
38
|
+
We(() => {
|
|
39
|
+
this.copyObject = e[this.translationKey];
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
get cardsCopy() {
|
|
43
|
+
return this.copyObject.cards;
|
|
44
|
+
}
|
|
45
|
+
get carouselCopy() {
|
|
46
|
+
return this.copyObject.carousel;
|
|
47
|
+
}
|
|
48
|
+
get zeroStateCopy() {
|
|
49
|
+
return this.copyObject.zero_state;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
const ce = {
|
|
53
|
+
BillAmountNotStandard: "BillAmountNotStandard",
|
|
54
|
+
CanadianUpcomingDeadlineAlert: "CanadianUpcomingDeadlineAlert",
|
|
55
|
+
DuplicatePaymentV2: "DuplicatePaymentV2",
|
|
56
|
+
IntroducePulse: "IntroducePulse",
|
|
57
|
+
LargeTransaction: "LargeTransaction",
|
|
58
|
+
MonthlySpendToIncomeComparisonV2: "MonthlySpendToIncomeComparisonV2",
|
|
59
|
+
QuarterlySummary: "QuarterlySummary",
|
|
60
|
+
SpendingPlanCategorySpending: "SpendingPlanCategorySpending",
|
|
61
|
+
SubscriptionPriceIncrease: "SubscriptionPriceIncrease",
|
|
62
|
+
UncategorizedTransactionsV2: "UncategorizedTransactionsV2",
|
|
63
|
+
UpcomingBill: "UpcomingBill",
|
|
64
|
+
UnifiedDeposit: "UnifiedDeposit",
|
|
65
|
+
WeeklySpendingPlanSummary: "WeeklySpendingPlanSummary",
|
|
66
|
+
WeeklyNewMerchantsV2: "WeeklyNewMerchantsV2",
|
|
67
|
+
MonthlySpendComparison: "MonthlySpendComparison",
|
|
68
|
+
MonthlySpendToIncomeComparison: "MonthlySpendToIncomeComparison"
|
|
69
|
+
}, O = window?.app?.clientConfig?.microwidget_instance_id || "", Ie = {
|
|
70
|
+
INSIGHTS_MICRO_WIDGET: "/micro-insights-carousel"
|
|
71
|
+
}, we = (t) => `on${t}Click`, Ne = (t) => `on${t}View`, Me = (t) => `on${t}ViewFirstTime`, le = (t) => t.replace(/([a-z])([A-Z])/g, "$1 $2"), ct = () => Object.values(ce).reduce(
|
|
72
|
+
(t, e) => ({
|
|
73
|
+
...t,
|
|
74
|
+
[we(e)]: {
|
|
75
|
+
action: b.MICRO_BEAT_CLICKED,
|
|
76
|
+
category: L.BEAT_INTERACTION,
|
|
77
|
+
label: le(e),
|
|
78
|
+
value: O
|
|
79
|
+
}
|
|
80
|
+
}),
|
|
81
|
+
{}
|
|
82
|
+
), lt = () => Object.values(ce).reduce(
|
|
83
|
+
(t, e) => ({
|
|
84
|
+
...t,
|
|
85
|
+
[Ne(e)]: {
|
|
86
|
+
action: b.MICRO_BEAT_DISPLAYED,
|
|
87
|
+
category: L.BEAT_INTERACTION,
|
|
88
|
+
label: le(e),
|
|
89
|
+
value: O
|
|
90
|
+
}
|
|
91
|
+
}),
|
|
92
|
+
{}
|
|
93
|
+
), dt = () => Object.values(ce).reduce(
|
|
94
|
+
(t, e) => ({
|
|
95
|
+
...t,
|
|
96
|
+
[Me(e)]: {
|
|
97
|
+
action: b.MICRO_BEAT_DISPLAYED_FIRST_TIME,
|
|
98
|
+
category: L.BEAT_INTERACTION,
|
|
99
|
+
label: le(e),
|
|
100
|
+
value: O
|
|
101
|
+
}
|
|
102
|
+
}),
|
|
103
|
+
{}
|
|
104
|
+
), v = {
|
|
105
|
+
CAROUSEL_CONTROL: "Carousel Control",
|
|
106
|
+
MICRO_WIDGET: "Micro Widget",
|
|
107
|
+
VIEW_MORE: "View More"
|
|
108
|
+
}, L = {
|
|
109
|
+
MICRO_WIDGET_INTERACTION: "Micro Widget Interaction",
|
|
110
|
+
BEAT_INTERACTION: "Beat Interaction"
|
|
111
|
+
}, W = {
|
|
112
|
+
ON_CAROUSEL_BACK_CLICK: "onCarouselBackClick",
|
|
113
|
+
ON_CAROUSEL_BACK_SWIPE: "onCarouselBackSwipe",
|
|
114
|
+
ON_CAROUSEL_FORWARD_CLICK: "onCarouselForwardClick",
|
|
115
|
+
ON_CAROUSEL_FORWARD_SWIPE: "onCarouselForwardSwipe",
|
|
116
|
+
ON_NO_RELEVANT_INSIGHTS_CLICKED: "onNoRelevantInsightsClicked",
|
|
117
|
+
ON_VIEW_MORE_CLICKED: "onViewMoreClicked"
|
|
118
|
+
}, ve = {
|
|
119
|
+
ON_VIEW_MORE_VIEWED: "onViewMoreCardView"
|
|
120
|
+
}, b = {
|
|
121
|
+
CONTROL_BACKWARD: "Control Backward",
|
|
122
|
+
CONTROL_FORWARD: "Control Forward",
|
|
123
|
+
MICRO_BEAT_CLICKED: "Micro Beat Clicked",
|
|
124
|
+
MICRO_BEAT_DISPLAYED: "Micro Beat Displayed",
|
|
125
|
+
MICRO_BEAT_DISPLAYED_FIRST_TIME: "Micro Beat Displayed For First Time",
|
|
126
|
+
SWIPE_BACKWARD: "Swipe Backward",
|
|
127
|
+
SWIPE_FORWARD: "Swipe Forward"
|
|
128
|
+
}, B = {
|
|
129
|
+
MICRO_WIDGET_CAROUSEL: "Micro Widget Carousel",
|
|
130
|
+
MICRO_WIDGET_CAROUSEL_ZERO_STATE: "Micro Widget Carousel Zero State",
|
|
131
|
+
MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS: "Micro Widget Carousel No Relevant Insights"
|
|
132
|
+
}, Ee = {
|
|
133
|
+
[B.MICRO_WIDGET_CAROUSEL]: {
|
|
134
|
+
label: v.MICRO_WIDGET,
|
|
135
|
+
name: B.MICRO_WIDGET_CAROUSEL,
|
|
136
|
+
path: Ie.INSIGHTS_MICRO_WIDGET,
|
|
137
|
+
value: O
|
|
138
|
+
},
|
|
139
|
+
// zero state
|
|
140
|
+
[B.MICRO_WIDGET_CAROUSEL_ZERO_STATE]: {
|
|
141
|
+
label: v.MICRO_WIDGET,
|
|
142
|
+
name: B.MICRO_WIDGET_CAROUSEL_ZERO_STATE,
|
|
143
|
+
path: Ie.INSIGHTS_MICRO_WIDGET,
|
|
144
|
+
value: O
|
|
145
|
+
},
|
|
146
|
+
// no relevant cards
|
|
147
|
+
[B.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS]: {
|
|
148
|
+
label: v.MICRO_WIDGET,
|
|
149
|
+
name: B.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS,
|
|
150
|
+
path: "/micro-widget",
|
|
151
|
+
value: O
|
|
152
|
+
}
|
|
153
|
+
}, fe = {
|
|
154
|
+
// carousel control interaction events - clicks and swipes
|
|
155
|
+
[W.ON_CAROUSEL_BACK_CLICK]: {
|
|
156
|
+
action: b.CONTROL_BACKWARD,
|
|
157
|
+
category: L.MICRO_WIDGET_INTERACTION,
|
|
158
|
+
label: v.CAROUSEL_CONTROL,
|
|
159
|
+
value: O
|
|
160
|
+
},
|
|
161
|
+
[W.ON_CAROUSEL_FORWARD_CLICK]: {
|
|
162
|
+
action: b.CONTROL_FORWARD,
|
|
163
|
+
category: L.MICRO_WIDGET_INTERACTION,
|
|
164
|
+
label: v.CAROUSEL_CONTROL,
|
|
165
|
+
value: O
|
|
166
|
+
},
|
|
167
|
+
[W.ON_CAROUSEL_BACK_SWIPE]: {
|
|
168
|
+
action: b.SWIPE_BACKWARD,
|
|
169
|
+
category: L.MICRO_WIDGET_INTERACTION,
|
|
170
|
+
label: v.CAROUSEL_CONTROL,
|
|
171
|
+
value: O
|
|
172
|
+
},
|
|
173
|
+
[W.ON_CAROUSEL_FORWARD_SWIPE]: {
|
|
174
|
+
action: b.SWIPE_FORWARD,
|
|
175
|
+
category: L.MICRO_WIDGET_INTERACTION,
|
|
176
|
+
label: v.CAROUSEL_CONTROL,
|
|
177
|
+
value: O
|
|
178
|
+
},
|
|
179
|
+
// read more card events
|
|
180
|
+
[W.ON_VIEW_MORE_CLICKED]: {
|
|
181
|
+
action: b.MICRO_BEAT_CLICKED,
|
|
182
|
+
category: L.BEAT_INTERACTION,
|
|
183
|
+
label: v.VIEW_MORE,
|
|
184
|
+
value: O
|
|
185
|
+
},
|
|
186
|
+
[ve.ON_VIEW_MORE_VIEWED]: {
|
|
187
|
+
action: b.MICRO_BEAT_DISPLAYED,
|
|
188
|
+
category: L.BEAT_INTERACTION,
|
|
189
|
+
label: v.VIEW_MORE,
|
|
190
|
+
value: O
|
|
191
|
+
},
|
|
192
|
+
...ct(),
|
|
193
|
+
...lt(),
|
|
194
|
+
...dt()
|
|
195
|
+
}, ye = async (t, e) => !e || !fe[t] ? null : e.sendAnalyticEvent(fe[t]).then((n) => n).catch((n) => {
|
|
196
|
+
throw n;
|
|
197
|
+
}), Ae = async (t, e) => !e || !Ee[t] ? null : e.sendAnalyticsPageview(Ee[t]).then((n) => n).catch((n) => {
|
|
198
|
+
throw n;
|
|
199
|
+
});
|
|
200
|
+
class _t {
|
|
201
|
+
onAnalyticEvent = ye;
|
|
202
|
+
onAnalyticPageView = Ae;
|
|
203
|
+
beatApi = new he("/", "");
|
|
204
|
+
constructor() {
|
|
205
|
+
se(this);
|
|
206
|
+
}
|
|
207
|
+
initialize = async (e, n, i) => {
|
|
208
|
+
this.onAnalyticEvent = (r, l) => {
|
|
209
|
+
ye(r, l).then((a) => a).catch((a) => {
|
|
210
|
+
throw a.status === 401 && i(), a;
|
|
211
|
+
});
|
|
212
|
+
}, this.onAnalyticPageView = (r, l) => {
|
|
213
|
+
Ae(r, l).then((a) => a).catch((a) => {
|
|
214
|
+
throw a.status === 401 && i(), a;
|
|
215
|
+
});
|
|
216
|
+
}, this.beatApi = new he(e, n);
|
|
217
|
+
};
|
|
218
|
+
updateBeat = async (e) => {
|
|
219
|
+
this.beatApi.updateBeat(e);
|
|
220
|
+
};
|
|
221
|
+
updateOffer = async (e) => {
|
|
222
|
+
this.beatApi.updateOffer(e);
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
class pt {
|
|
226
|
+
copyStore;
|
|
227
|
+
endpoint = "/";
|
|
228
|
+
insightsMicroWidgetStore;
|
|
229
|
+
session = null;
|
|
230
|
+
token = "";
|
|
231
|
+
isInitialized = !1;
|
|
232
|
+
constructor() {
|
|
233
|
+
this.copyStore = new st(), this.insightsMicroWidgetStore = new _t(), se(this);
|
|
234
|
+
}
|
|
235
|
+
initialize = async (e, n, i) => {
|
|
236
|
+
await this.copyStore.initialize(e, n), await this.insightsMicroWidgetStore.initialize(e, n, i);
|
|
237
|
+
const r = await qe(e, n, "1.0.0", "Micro Insights Carousel");
|
|
238
|
+
We(() => {
|
|
239
|
+
this.session = r, this.isInitialized = !0;
|
|
240
|
+
});
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
const H = I.createContext(null), mt = ({
|
|
244
|
+
onEvent: t,
|
|
245
|
+
onPageview: e,
|
|
246
|
+
store: n,
|
|
247
|
+
children: i
|
|
248
|
+
}) => /* @__PURE__ */ o(H.Provider, { value: { onEvent: t, onPageview: e, store: n, children: i }, children: i }), ut = ({ beat: t }) => {
|
|
249
|
+
const { primary_category_guid: e, category_guids: n } = t, i = e || n?.[0] || Xe.UNCATEGORIZED;
|
|
250
|
+
return /* @__PURE__ */ o(Ue, { categoryGuid: i, size: 32, sx: { minWidth: 32 } });
|
|
251
|
+
}, c = ({
|
|
252
|
+
avatarSx: t,
|
|
253
|
+
bgColor: e,
|
|
254
|
+
name: n,
|
|
255
|
+
iconColor: i = "primary",
|
|
256
|
+
fill: r = !0,
|
|
257
|
+
sx: l
|
|
258
|
+
}) => /* @__PURE__ */ o(
|
|
259
|
+
at,
|
|
260
|
+
{
|
|
261
|
+
sx: {
|
|
262
|
+
bgcolor: e,
|
|
263
|
+
width: 32,
|
|
264
|
+
height: 32,
|
|
265
|
+
...t
|
|
266
|
+
},
|
|
267
|
+
variant: "rounded",
|
|
268
|
+
children: /* @__PURE__ */ o(He, { color: i, fill: r, name: n, size: 20, sx: l })
|
|
269
|
+
}
|
|
270
|
+
), Ct = ({ beat: t }) => {
|
|
271
|
+
const { category_guids: e, merchant_guids: n, primary_category_guid: i, primary_merchant_guid: r } = t;
|
|
272
|
+
return /* @__PURE__ */ o(
|
|
273
|
+
ze,
|
|
274
|
+
{
|
|
275
|
+
categoryGuid: i || e && e[0] || "",
|
|
276
|
+
merchantGuid: r || n[0],
|
|
277
|
+
size: 32,
|
|
278
|
+
sx: {
|
|
279
|
+
display: "flex",
|
|
280
|
+
mt: 2,
|
|
281
|
+
minWidth: 32
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
);
|
|
285
|
+
}, ht = (t) => t ? t.data ? t.data.map((e) => {
|
|
286
|
+
const n = {};
|
|
287
|
+
return t.names?.map((i, r) => {
|
|
288
|
+
n[i] = e[r];
|
|
289
|
+
}), n;
|
|
290
|
+
}) : [] : [], q = "primary", Le = "success", be = "error", De = (t) => {
|
|
291
|
+
const e = ht(t), n = Math.floor(e.length / 2);
|
|
292
|
+
if (n === 0 || n === e.length) return q;
|
|
293
|
+
const i = e[0]?.amount, r = e[n]?.amount;
|
|
294
|
+
return i == null || r == null ? q : i > r ? be : i < r ? Le : q;
|
|
295
|
+
}, gt = (t, e) => t < e ? Le : t > e ? be : q, It = ({ beat: t }) => {
|
|
296
|
+
const e = P(), n = De(t.data_series), i = e.palette[n].main;
|
|
297
|
+
return /* @__PURE__ */ o(c, { bgColor: s(i, 0.15), iconColor: n, name: "bar_chart" });
|
|
298
|
+
}, Et = ({ beat: t }) => {
|
|
299
|
+
const e = P(), n = t.payload?.average_spend || 0;
|
|
300
|
+
let i = 0;
|
|
301
|
+
if (t.data_series?.data && t.data_series.data.length > 0) {
|
|
302
|
+
const a = (t.data_series.names || []).indexOf("amount");
|
|
303
|
+
a !== -1 && (i = t.data_series.data[0][a] || 0);
|
|
304
|
+
}
|
|
305
|
+
const r = gt(i, n);
|
|
306
|
+
return /* @__PURE__ */ o(
|
|
307
|
+
c,
|
|
308
|
+
{
|
|
309
|
+
bgColor: s(e.palette[r].main, 0.15),
|
|
310
|
+
iconColor: r,
|
|
311
|
+
name: "timeline"
|
|
312
|
+
}
|
|
313
|
+
);
|
|
314
|
+
}, ft = ({ beat: t }) => {
|
|
315
|
+
const e = P(), n = De(t.data_series), i = e.palette[n].main;
|
|
316
|
+
return /* @__PURE__ */ o(
|
|
317
|
+
c,
|
|
318
|
+
{
|
|
319
|
+
bgColor: s(i, 0.15),
|
|
320
|
+
fill: !1,
|
|
321
|
+
iconColor: n,
|
|
322
|
+
name: "area_chart"
|
|
323
|
+
}
|
|
324
|
+
);
|
|
325
|
+
}, yt = ({ beat: t }) => /* @__PURE__ */ o(Ke, { alt: t.institutionName || "", institutionGuid: t.institutionGuid || "" }), At = {
|
|
326
|
+
0: (t, e) => /* @__PURE__ */ o(c, { bgColor: s(e.palette.primary.main, 0.15), name: "error" }),
|
|
327
|
+
1: (t) => /* @__PURE__ */ o(ut, { beat: t }),
|
|
328
|
+
2: (t) => /* @__PURE__ */ o(Ct, { beat: t }),
|
|
329
|
+
3: (t) => /* @__PURE__ */ o(It, { beat: t }),
|
|
330
|
+
4: (t, e) => /* @__PURE__ */ o(
|
|
331
|
+
c,
|
|
332
|
+
{
|
|
333
|
+
bgColor: s(e.palette.secondary.main, 0.15),
|
|
334
|
+
iconColor: "secondary",
|
|
335
|
+
name: "info"
|
|
336
|
+
}
|
|
337
|
+
),
|
|
338
|
+
5: (t, e) => /* @__PURE__ */ o(c, { bgColor: s(e.palette.primary.main, 0.15), name: "campaign" }),
|
|
339
|
+
6: (t, e) => /* @__PURE__ */ o(
|
|
340
|
+
c,
|
|
341
|
+
{
|
|
342
|
+
bgColor: s(e.palette.success.main, 0.15),
|
|
343
|
+
iconColor: "success",
|
|
344
|
+
name: "check_circle"
|
|
345
|
+
}
|
|
346
|
+
),
|
|
347
|
+
7: (t, e) => /* @__PURE__ */ o(c, { bgColor: s(e.palette.primary.main, 0.15), name: "today" }),
|
|
348
|
+
8: (t, e) => /* @__PURE__ */ o(c, { bgColor: s(e.palette.primary.main, 0.15), name: "calendar_clock" }),
|
|
349
|
+
9: (t, e) => /* @__PURE__ */ o(c, { bgColor: s(e.palette.primary.main, 0.15), name: "celebration" }),
|
|
350
|
+
// TODO: Waiting for the backend to accommodate the below icon types
|
|
351
|
+
10: (t, e) => /* @__PURE__ */ o(c, { bgColor: s(e.palette.primary.main, 0.15), name: "problem" }),
|
|
352
|
+
11: (t, e) => /* @__PURE__ */ o(
|
|
353
|
+
c,
|
|
354
|
+
{
|
|
355
|
+
avatarSx: { border: `1px solid ${e.palette.secondary.main}` },
|
|
356
|
+
bgColor: s(e.palette.secondary.main, 0.15),
|
|
357
|
+
fill: !1,
|
|
358
|
+
name: "category",
|
|
359
|
+
sx: { color: "text.primary" }
|
|
360
|
+
}
|
|
361
|
+
),
|
|
362
|
+
12: (t) => /* @__PURE__ */ o(ft, { beat: t }),
|
|
363
|
+
13: () => /* @__PURE__ */ o(
|
|
364
|
+
c,
|
|
365
|
+
{
|
|
366
|
+
avatarSx: { border: "1px solid #EB00D0" },
|
|
367
|
+
bgColor: s("#EB00D0", 0.25),
|
|
368
|
+
fill: !1,
|
|
369
|
+
name: "money_bag",
|
|
370
|
+
sx: { color: "text.primary" }
|
|
371
|
+
}
|
|
372
|
+
),
|
|
373
|
+
14: (t, e) => /* @__PURE__ */ o(
|
|
374
|
+
c,
|
|
375
|
+
{
|
|
376
|
+
bgColor: s(e.palette.secondary.main, 0.15),
|
|
377
|
+
fill: !1,
|
|
378
|
+
iconColor: "secondary",
|
|
379
|
+
name: "person"
|
|
380
|
+
}
|
|
381
|
+
),
|
|
382
|
+
15: (t, e) => /* @__PURE__ */ o(
|
|
383
|
+
c,
|
|
384
|
+
{
|
|
385
|
+
bgColor: s(e.palette.primary.main, 0.15),
|
|
386
|
+
name: "payment_arrow_down"
|
|
387
|
+
}
|
|
388
|
+
),
|
|
389
|
+
16: (t, e) => /* @__PURE__ */ o(
|
|
390
|
+
c,
|
|
391
|
+
{
|
|
392
|
+
bgColor: s(e.palette.success.main, 0.15),
|
|
393
|
+
name: "beenhere",
|
|
394
|
+
sx: { color: "success.main" }
|
|
395
|
+
}
|
|
396
|
+
),
|
|
397
|
+
17: (t, e) => /* @__PURE__ */ o(c, { bgColor: s(e.palette.primary.main, 0.15), name: "savings" }),
|
|
398
|
+
18: (t, e) => /* @__PURE__ */ o(
|
|
399
|
+
c,
|
|
400
|
+
{
|
|
401
|
+
bgColor: t.payload.projected_overdraft_amount < 0 ? s(e.palette.warning.main, 0.15) : s(e.palette.error.main, 0.15),
|
|
402
|
+
iconColor: t?.payload?.projected_overdraft_amount < 0 ? "warning" : "error",
|
|
403
|
+
name: "error"
|
|
404
|
+
}
|
|
405
|
+
),
|
|
406
|
+
19: (t, e) => /* @__PURE__ */ o(c, { bgColor: s(e.palette.primary.main, 0.15), name: "finance_mode" }),
|
|
407
|
+
20: (t, e) => /* @__PURE__ */ o(c, { bgColor: s(e.palette.primary.main, 0.15), name: "tips_and_updates" }),
|
|
408
|
+
21: (t, e) => /* @__PURE__ */ o(
|
|
409
|
+
c,
|
|
410
|
+
{
|
|
411
|
+
bgColor: s(e.palette.primary.main, 0.15),
|
|
412
|
+
name: "currency_exchange"
|
|
413
|
+
}
|
|
414
|
+
),
|
|
415
|
+
22: (t, e) => /* @__PURE__ */ o(
|
|
416
|
+
c,
|
|
417
|
+
{
|
|
418
|
+
bgColor: s(e.palette.warning.main, 0.15),
|
|
419
|
+
name: "flag",
|
|
420
|
+
sx: { color: "warning.main" }
|
|
421
|
+
}
|
|
422
|
+
),
|
|
423
|
+
23: (t, e) => /* @__PURE__ */ o(c, { bgColor: s(e.palette.primary.main, 0.15), name: "thumb_up" }),
|
|
424
|
+
24: () => /* @__PURE__ */ o(
|
|
425
|
+
c,
|
|
426
|
+
{
|
|
427
|
+
bgColor: s("#EB00D0", 0.15),
|
|
428
|
+
name: "attach_money",
|
|
429
|
+
sx: { color: "#EB00D0" }
|
|
430
|
+
}
|
|
431
|
+
),
|
|
432
|
+
25: (t, e) => /* @__PURE__ */ o(c, { bgColor: s(e.palette.primary.main, 0.15), name: "note_stack" }),
|
|
433
|
+
26: (t, e) => /* @__PURE__ */ o(
|
|
434
|
+
c,
|
|
435
|
+
{
|
|
436
|
+
bgColor: s(e.palette.primary.main, 0.15),
|
|
437
|
+
fill: !1,
|
|
438
|
+
name: "price_change"
|
|
439
|
+
}
|
|
440
|
+
),
|
|
441
|
+
27: (t, e) => /* @__PURE__ */ o(c, { bgColor: s(e.palette.primary.main, 0.15), name: "directions_car" }),
|
|
442
|
+
28: (t, e) => /* @__PURE__ */ o(c, { bgColor: s(e.palette.primary.main, 0.15), name: "contract" }),
|
|
443
|
+
29: (t) => /* @__PURE__ */ o(Et, { beat: t }),
|
|
444
|
+
30: (t, e) => /* @__PURE__ */ o(c, { bgColor: s(e.palette.primary.main, 0.15), name: "calendar_month" }),
|
|
445
|
+
31: (t, e) => /* @__PURE__ */ o(
|
|
446
|
+
c,
|
|
447
|
+
{
|
|
448
|
+
bgColor: s(e.palette.warning.main, 0.15),
|
|
449
|
+
name: "star_rate",
|
|
450
|
+
sx: { color: "warning.400" }
|
|
451
|
+
}
|
|
452
|
+
),
|
|
453
|
+
32: (t, e) => /* @__PURE__ */ o(c, { bgColor: s(e.palette.primary.main, 0.15), name: "help" }),
|
|
454
|
+
33: (t, e) => /* @__PURE__ */ o(
|
|
455
|
+
c,
|
|
456
|
+
{
|
|
457
|
+
bgColor: s(e.palette.primary.main, 0.15),
|
|
458
|
+
fill: !1,
|
|
459
|
+
name: "storefront"
|
|
460
|
+
}
|
|
461
|
+
),
|
|
462
|
+
34: (t) => /* @__PURE__ */ o(yt, { beat: t })
|
|
463
|
+
}, St = ({ beat: t }) => {
|
|
464
|
+
const e = P(), { icon_type: n } = t, i = n != null ? At[n] : null;
|
|
465
|
+
return i ? i(t, e) : /* @__PURE__ */ o(c, { bgColor: s(e.palette.primary.main, 0.15), name: "error" });
|
|
466
|
+
}, D = () => {
|
|
467
|
+
const t = I.useContext(H);
|
|
468
|
+
if (!t)
|
|
469
|
+
throw new Error("useCopyStore() must be used within the InsightsMicroWidgetDataProvider");
|
|
470
|
+
return t.store.copyStore;
|
|
471
|
+
}, Tt = () => {
|
|
472
|
+
const t = I.useContext(H);
|
|
473
|
+
if (!t?.store?.insightsMicroWidgetStore)
|
|
474
|
+
throw new Error(
|
|
475
|
+
"useInsightsMicroWidgetStore() must be used within the InsightsMicroWidgetDataProvider"
|
|
476
|
+
);
|
|
477
|
+
return t.store.insightsMicroWidgetStore;
|
|
478
|
+
}, $ = () => {
|
|
479
|
+
const t = I.useContext(H);
|
|
480
|
+
if (!t)
|
|
481
|
+
throw new Error("useEvent() must be used within the InsightsMicroWidgetDataProvider");
|
|
482
|
+
return { onEvent: t.onEvent };
|
|
483
|
+
}, xe = () => {
|
|
484
|
+
const t = I.useContext(H);
|
|
485
|
+
if (!t)
|
|
486
|
+
throw new Error("usePageview() must be used within the InsightsMicroWidgetDataProvider");
|
|
487
|
+
return { onPageview: t.onPageview };
|
|
488
|
+
}, Rt = {
|
|
489
|
+
LARGE: 180,
|
|
490
|
+
STANDARD: 154,
|
|
491
|
+
XLARGE: 200,
|
|
492
|
+
XXLARGE: 248
|
|
493
|
+
}, Ot = 50, Be = 1, J = I.forwardRef(
|
|
494
|
+
function({
|
|
495
|
+
ariaLabel: e,
|
|
496
|
+
closeAriaLabel: n,
|
|
497
|
+
description: i,
|
|
498
|
+
elevation: r,
|
|
499
|
+
icon: l,
|
|
500
|
+
isActiveCard: a,
|
|
501
|
+
heightOverrides: u,
|
|
502
|
+
onClose: C,
|
|
503
|
+
onCardClick: E,
|
|
504
|
+
onPrimaryAction: h,
|
|
505
|
+
onSecondaryAction: d,
|
|
506
|
+
primaryActionText: _,
|
|
507
|
+
secondaryActionText: p,
|
|
508
|
+
title: g,
|
|
509
|
+
variant: y,
|
|
510
|
+
widthOverrides: S,
|
|
511
|
+
...w
|
|
512
|
+
}, T) {
|
|
513
|
+
const A = !!(h && _), R = /* @__PURE__ */ N(Te, { children: [
|
|
514
|
+
C && /* @__PURE__ */ o(
|
|
515
|
+
rt,
|
|
516
|
+
{
|
|
517
|
+
"aria-label": n,
|
|
518
|
+
onClick: (m) => {
|
|
519
|
+
m.stopPropagation(), C?.();
|
|
520
|
+
},
|
|
521
|
+
onMouseDown: (m) => {
|
|
522
|
+
m.stopPropagation();
|
|
523
|
+
},
|
|
524
|
+
onTouchStart: (m) => {
|
|
525
|
+
m.stopPropagation();
|
|
526
|
+
},
|
|
527
|
+
sx: { minHeight: 40, minWidth: 40, position: "absolute", right: 4, top: 4 },
|
|
528
|
+
children: /* @__PURE__ */ o($e, {})
|
|
529
|
+
}
|
|
530
|
+
),
|
|
531
|
+
/* @__PURE__ */ N(F, { sx: { gap: 6, height: "100%", justifyContent: "space-between" }, children: [
|
|
532
|
+
/* @__PURE__ */ N(F, { sx: { flexDirection: "row", gap: 12 }, children: [
|
|
533
|
+
l && l,
|
|
534
|
+
/* @__PURE__ */ N(F, { sx: { gap: 6 }, children: [
|
|
535
|
+
/* @__PURE__ */ o(F, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: /* @__PURE__ */ o(pe, { bold: !0, sx: { lineHeight: "16px" }, variant: "body1", children: g }) }),
|
|
536
|
+
/* @__PURE__ */ o(
|
|
537
|
+
pe,
|
|
538
|
+
{
|
|
539
|
+
dangerouslySetInnerHTML: { __html: i },
|
|
540
|
+
sx: {
|
|
541
|
+
display: "-webkit-box",
|
|
542
|
+
overflow: "hidden",
|
|
543
|
+
textOverflow: "ellipsis",
|
|
544
|
+
WebkitBoxOrient: "vertical",
|
|
545
|
+
WebkitLineClamp: A ? 2 : 3,
|
|
546
|
+
"& .bold-copy": {
|
|
547
|
+
fontWeight: "bold",
|
|
548
|
+
fontFamily: "inherit"
|
|
549
|
+
}
|
|
550
|
+
},
|
|
551
|
+
variant: "subtitle2"
|
|
552
|
+
}
|
|
553
|
+
)
|
|
554
|
+
] })
|
|
555
|
+
] }),
|
|
556
|
+
A && /* @__PURE__ */ N(
|
|
557
|
+
F,
|
|
558
|
+
{
|
|
559
|
+
sx: {
|
|
560
|
+
alignItems: "center",
|
|
561
|
+
flexDirection: "row",
|
|
562
|
+
height: 28,
|
|
563
|
+
pb: 4,
|
|
564
|
+
pl: l ? 36 : 0
|
|
565
|
+
},
|
|
566
|
+
children: [
|
|
567
|
+
A && /* @__PURE__ */ o(
|
|
568
|
+
ge,
|
|
569
|
+
{
|
|
570
|
+
onClick: (m) => {
|
|
571
|
+
m.stopPropagation(), h?.();
|
|
572
|
+
},
|
|
573
|
+
onMouseDown: (m) => {
|
|
574
|
+
m.stopPropagation();
|
|
575
|
+
},
|
|
576
|
+
onTouchStart: (m) => {
|
|
577
|
+
m.stopPropagation();
|
|
578
|
+
},
|
|
579
|
+
size: "small",
|
|
580
|
+
sx: { px: 8, ml: l ? 0 : -8 },
|
|
581
|
+
variant: "text",
|
|
582
|
+
children: /* @__PURE__ */ o(me, { bold: !0, variant: "body2", children: _ })
|
|
583
|
+
}
|
|
584
|
+
),
|
|
585
|
+
!!(d && p) && /* @__PURE__ */ o(
|
|
586
|
+
ge,
|
|
587
|
+
{
|
|
588
|
+
onClick: (m) => {
|
|
589
|
+
m.stopPropagation(), d?.();
|
|
590
|
+
},
|
|
591
|
+
onMouseDown: (m) => {
|
|
592
|
+
m.stopPropagation();
|
|
593
|
+
},
|
|
594
|
+
onTouchStart: (m) => {
|
|
595
|
+
m.stopPropagation();
|
|
596
|
+
},
|
|
597
|
+
size: "small",
|
|
598
|
+
sx: { px: 8 },
|
|
599
|
+
variant: "text",
|
|
600
|
+
children: /* @__PURE__ */ o(me, { bold: !0, sx: { color: "text.secondary" }, variant: "body2", children: p })
|
|
601
|
+
}
|
|
602
|
+
)
|
|
603
|
+
]
|
|
604
|
+
}
|
|
605
|
+
)
|
|
606
|
+
] })
|
|
607
|
+
] });
|
|
608
|
+
return /* @__PURE__ */ o(
|
|
609
|
+
ot,
|
|
610
|
+
{
|
|
611
|
+
"aria-hidden": !a,
|
|
612
|
+
"aria-label": e,
|
|
613
|
+
elevation: r,
|
|
614
|
+
ref: T,
|
|
615
|
+
role: "group",
|
|
616
|
+
sx: {
|
|
617
|
+
backgroundColor: "background.paper",
|
|
618
|
+
height: u ? "100%" : 120,
|
|
619
|
+
minWidth: S ? `${S}px` : "100%",
|
|
620
|
+
position: "relative",
|
|
621
|
+
my: 1,
|
|
622
|
+
borderRadius: 2
|
|
623
|
+
},
|
|
624
|
+
tabIndex: E || !a ? -1 : 0,
|
|
625
|
+
variant: y,
|
|
626
|
+
...w,
|
|
627
|
+
children: E ? /* @__PURE__ */ o(
|
|
628
|
+
nt,
|
|
629
|
+
{
|
|
630
|
+
component: "div",
|
|
631
|
+
onClick: E,
|
|
632
|
+
sx: {
|
|
633
|
+
pb: 8,
|
|
634
|
+
pt: 16,
|
|
635
|
+
px: 16,
|
|
636
|
+
height: "100%"
|
|
637
|
+
},
|
|
638
|
+
children: R
|
|
639
|
+
}
|
|
640
|
+
) : /* @__PURE__ */ o(it, { sx: { pb: 8, pt: 16, px: 16, height: "100%" }, children: R })
|
|
641
|
+
}
|
|
642
|
+
);
|
|
643
|
+
}
|
|
644
|
+
), Wt = ({
|
|
645
|
+
ariaLabel: t,
|
|
646
|
+
beat: e,
|
|
647
|
+
elevation: n,
|
|
648
|
+
index: i,
|
|
649
|
+
isActiveCard: r,
|
|
650
|
+
onCardClick: l,
|
|
651
|
+
posthog: a,
|
|
652
|
+
widthOverrides: u,
|
|
653
|
+
variant: C,
|
|
654
|
+
showIcon: E,
|
|
655
|
+
heightOverrides: h
|
|
656
|
+
}) => {
|
|
657
|
+
const { ref: d, inView: _ } = Oe({
|
|
658
|
+
threshold: Be
|
|
659
|
+
}), { cardsCopy: p } = D(), { onEvent: g } = $(), { updateBeat: y, updateOffer: S } = Tt();
|
|
660
|
+
re(() => {
|
|
661
|
+
_ && (e.has_been_displayed ? g(Ne(e.template)) : (e.guid.startsWith("OFR") ? S({
|
|
662
|
+
...e,
|
|
663
|
+
has_been_displayed: !0
|
|
664
|
+
}) : y({
|
|
665
|
+
...e,
|
|
666
|
+
has_been_displayed: !0
|
|
667
|
+
}), g(Me(e.template))));
|
|
668
|
+
}, [_]), re(() => {
|
|
669
|
+
if (_ && e)
|
|
670
|
+
if (e.template === "MarketingOffer") {
|
|
671
|
+
const T = e;
|
|
672
|
+
a?.capture("viewed_messaging_insight", {
|
|
673
|
+
template: e.template,
|
|
674
|
+
campaign_guid: T.campaign_guid,
|
|
675
|
+
campaign_name: T.pulse_campaign_name
|
|
676
|
+
});
|
|
677
|
+
} else
|
|
678
|
+
a?.capture("viewed_insight", {
|
|
679
|
+
beat_guid: e.guid,
|
|
680
|
+
template: e.template,
|
|
681
|
+
position: i
|
|
682
|
+
});
|
|
683
|
+
}, [e, i, _]);
|
|
684
|
+
const w = () => {
|
|
685
|
+
if (l && l(e), g(we(e.template)), e.template === "MarketingOffer") {
|
|
686
|
+
const T = e;
|
|
687
|
+
a?.capture("clicked_messaging_insight", {
|
|
688
|
+
template: e.template,
|
|
689
|
+
campaign_guid: T.campaign_guid,
|
|
690
|
+
campaign_name: T.pulse_campaign_name
|
|
691
|
+
});
|
|
692
|
+
} else
|
|
693
|
+
a?.capture("clicked_insight", {
|
|
694
|
+
beat_guid: e.guid,
|
|
695
|
+
template: e.template,
|
|
696
|
+
position: i
|
|
697
|
+
});
|
|
698
|
+
};
|
|
699
|
+
return /* @__PURE__ */ o(
|
|
700
|
+
J,
|
|
701
|
+
{
|
|
702
|
+
"aria-roledescription": "slide",
|
|
703
|
+
ariaLabel: t,
|
|
704
|
+
description: e?.html_micro_description && e?.html_micro_description.length > 0 ? e.html_micro_description : e.html_description || "",
|
|
705
|
+
elevation: n,
|
|
706
|
+
heightOverrides: h,
|
|
707
|
+
icon: E && /* @__PURE__ */ o(St, { beat: e }),
|
|
708
|
+
isActiveCard: r,
|
|
709
|
+
onCardClick: w,
|
|
710
|
+
onPrimaryAction: w,
|
|
711
|
+
primaryActionText: e.micro_call_to_action || p?.micro_card_cta,
|
|
712
|
+
ref: d,
|
|
713
|
+
title: e.micro_title && e.micro_title.length > 0 ? e.micro_title : e.title,
|
|
714
|
+
variant: C,
|
|
715
|
+
widthOverrides: u
|
|
716
|
+
}
|
|
717
|
+
);
|
|
718
|
+
}, wt = ({
|
|
719
|
+
currentBeatIndex: t,
|
|
720
|
+
numBeats: e,
|
|
721
|
+
onNextClick: n,
|
|
722
|
+
onPreviousClick: i,
|
|
723
|
+
scrollRightBoundary: r,
|
|
724
|
+
scrollX: l,
|
|
725
|
+
shouldApplyDotAnimation: a = !1,
|
|
726
|
+
visibleCardsCount: u = 1
|
|
727
|
+
}) => {
|
|
728
|
+
const C = P(), { carouselCopy: E } = D(), h = Math.floor(l) > r || t - u + 1 === 0, d = l < 0 || e - 1 === t, _ = C.palette.grey[500], p = C.palette.primary.main;
|
|
729
|
+
return /* @__PURE__ */ N(
|
|
730
|
+
k,
|
|
731
|
+
{
|
|
732
|
+
direction: "row",
|
|
733
|
+
sx: {
|
|
734
|
+
alignItems: "center",
|
|
735
|
+
justifyContent: "center",
|
|
736
|
+
pt: 4,
|
|
737
|
+
width: "100%",
|
|
738
|
+
// we were using `gap` instead of margin, but it doesn't work in safari browsers older than iOS 14.1
|
|
739
|
+
"& button:first-child": {
|
|
740
|
+
mr: 8
|
|
741
|
+
}
|
|
742
|
+
},
|
|
743
|
+
children: [
|
|
744
|
+
/* @__PURE__ */ o(
|
|
745
|
+
ue,
|
|
746
|
+
{
|
|
747
|
+
"aria-disabled": h,
|
|
748
|
+
"aria-label": E?.previous_insight_cta_aria,
|
|
749
|
+
disabled: h,
|
|
750
|
+
onClick: i,
|
|
751
|
+
children: /* @__PURE__ */ o(
|
|
752
|
+
je,
|
|
753
|
+
{
|
|
754
|
+
sx: {
|
|
755
|
+
color: h ? _ : p
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
)
|
|
759
|
+
}
|
|
760
|
+
),
|
|
761
|
+
Array.from({ length: e }).map((g, y) => {
|
|
762
|
+
const S = y === t;
|
|
763
|
+
return /* @__PURE__ */ o(
|
|
764
|
+
ae,
|
|
765
|
+
{
|
|
766
|
+
className: "mx-insights-micro-carousel-dots",
|
|
767
|
+
sx: {
|
|
768
|
+
bgcolor: S ? p : _,
|
|
769
|
+
height: 8,
|
|
770
|
+
mr: 8,
|
|
771
|
+
// existing comment from meganthan "we were using `gap` instead of margin, but it doesn't work in safari browsers older than iOS 14.1"
|
|
772
|
+
...a ? {
|
|
773
|
+
borderRadius: "4px",
|
|
774
|
+
transformOrigin: "center",
|
|
775
|
+
transition: "all 0.5s ease-out",
|
|
776
|
+
willChange: "width, background-color"
|
|
777
|
+
} : {
|
|
778
|
+
borderRadius: "50%",
|
|
779
|
+
p: 0
|
|
780
|
+
},
|
|
781
|
+
width: S && a ? 24 : 8
|
|
782
|
+
}
|
|
783
|
+
},
|
|
784
|
+
`carousel-button-${y}`
|
|
785
|
+
);
|
|
786
|
+
}),
|
|
787
|
+
/* @__PURE__ */ o(
|
|
788
|
+
ue,
|
|
789
|
+
{
|
|
790
|
+
"aria-disabled": d,
|
|
791
|
+
"aria-label": E?.next_insight_cta_aria,
|
|
792
|
+
disabled: d,
|
|
793
|
+
onClick: n,
|
|
794
|
+
children: /* @__PURE__ */ o(
|
|
795
|
+
Re,
|
|
796
|
+
{
|
|
797
|
+
sx: {
|
|
798
|
+
color: d ? _ : p
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
)
|
|
802
|
+
}
|
|
803
|
+
)
|
|
804
|
+
]
|
|
805
|
+
}
|
|
806
|
+
);
|
|
807
|
+
}, Nt = ({
|
|
808
|
+
activeCardIndex: t,
|
|
809
|
+
beats: e,
|
|
810
|
+
cardWidth: n,
|
|
811
|
+
elevation: i,
|
|
812
|
+
heightOverrides: r,
|
|
813
|
+
onCardClick: l,
|
|
814
|
+
posthog: a,
|
|
815
|
+
showIcon: u,
|
|
816
|
+
variant: C
|
|
817
|
+
}) => {
|
|
818
|
+
const { carouselCopy: E } = D(), h = {
|
|
819
|
+
elevation: i,
|
|
820
|
+
heightOverrides: r,
|
|
821
|
+
posthog: a,
|
|
822
|
+
showIcon: u,
|
|
823
|
+
variant: C
|
|
824
|
+
};
|
|
825
|
+
return /* @__PURE__ */ N(Te, { children: [
|
|
826
|
+
e.map((d, _) => {
|
|
827
|
+
const p = _ + 1, g = e.length + 1, y = Ze(
|
|
828
|
+
E?.card_position_in_carousel_aria,
|
|
829
|
+
p.toString(),
|
|
830
|
+
g.toString()
|
|
831
|
+
), S = d.micro_title && d.micro_title.length > 0, w = d.micro_description && d.micro_description.length > 0, T = S ? d.micro_title : d.title, A = w ? d.micro_description : d.description;
|
|
832
|
+
return /* @__PURE__ */ o(
|
|
833
|
+
Wt,
|
|
834
|
+
{
|
|
835
|
+
ariaLabel: `${y}: ${T}, ${A}`,
|
|
836
|
+
beat: d,
|
|
837
|
+
index: _,
|
|
838
|
+
isActiveCard: _ === t,
|
|
839
|
+
onCardClick: l,
|
|
840
|
+
widthOverrides: n || void 0,
|
|
841
|
+
...h
|
|
842
|
+
},
|
|
843
|
+
`${d.guid} ${_}`
|
|
844
|
+
);
|
|
845
|
+
}),
|
|
846
|
+
/* @__PURE__ */ o(
|
|
847
|
+
Vt,
|
|
848
|
+
{
|
|
849
|
+
isActiveCard: t === e.length,
|
|
850
|
+
onCardClick: l,
|
|
851
|
+
widthOverrides: n || void 0,
|
|
852
|
+
...h
|
|
853
|
+
}
|
|
854
|
+
)
|
|
855
|
+
] });
|
|
856
|
+
}, Mt = ({
|
|
857
|
+
analyticsMetadata: t,
|
|
858
|
+
allowSingleCardPeeking: e,
|
|
859
|
+
beats: n = [],
|
|
860
|
+
elevation: i,
|
|
861
|
+
heightOverrides: r,
|
|
862
|
+
onCardClick: l,
|
|
863
|
+
posthog: a,
|
|
864
|
+
showCarouselControls: u,
|
|
865
|
+
showIcon: C,
|
|
866
|
+
showWithMargin: E = !0,
|
|
867
|
+
variant: h,
|
|
868
|
+
widthOverrides: d,
|
|
869
|
+
visibleCardsCount: _ = 1
|
|
870
|
+
// Default to 1 card visible
|
|
871
|
+
}) => {
|
|
872
|
+
const p = I.useRef(null), g = I.useRef(null), [y, S] = I.useState(0), [w, T] = I.useState(null), [A, ee] = I.useState(null), [R, m] = I.useState(null), { carouselCopy: j } = D(), { onEvent: M } = $();
|
|
873
|
+
I.useEffect(() => {
|
|
874
|
+
if (p.current && !e) {
|
|
875
|
+
const f = p.current.offsetWidth, z = 8;
|
|
876
|
+
let G;
|
|
877
|
+
if (_ > 1) {
|
|
878
|
+
const de = (f - (_ - 1) * z) / _ / 3;
|
|
879
|
+
G = (f - de - (_ - 1) * z) / _;
|
|
880
|
+
} else
|
|
881
|
+
G = f;
|
|
882
|
+
m(G);
|
|
883
|
+
}
|
|
884
|
+
}, [_, p.current?.offsetWidth]), I.useEffect(() => {
|
|
885
|
+
const f = g.current?.offsetWidth;
|
|
886
|
+
if (typeof f == "number" && e) {
|
|
887
|
+
const z = (K) => {
|
|
888
|
+
const _e = [
|
|
889
|
+
{ maxWidth: 375, cardWidth: 268 },
|
|
890
|
+
{ maxWidth: 444, cardWidth: 300 },
|
|
891
|
+
{ maxWidth: 599, cardWidth: 350 },
|
|
892
|
+
{ maxWidth: 749, cardWidth: 450 },
|
|
893
|
+
{ maxWidth: 900, cardWidth: 600 }
|
|
894
|
+
].find((Ge) => K <= Ge.maxWidth);
|
|
895
|
+
return _e ? _e.cardWidth : 750;
|
|
896
|
+
};
|
|
897
|
+
m(z(f));
|
|
898
|
+
const G = () => {
|
|
899
|
+
const K = g.current?.offsetWidth;
|
|
900
|
+
typeof K == "number" && m(z(K));
|
|
901
|
+
};
|
|
902
|
+
return window.addEventListener("resize", G), () => {
|
|
903
|
+
window.removeEventListener("resize", G);
|
|
904
|
+
};
|
|
905
|
+
}
|
|
906
|
+
}, [e, g]);
|
|
907
|
+
const V = () => {
|
|
908
|
+
M(W.ON_CAROUSEL_FORWARD_CLICK, t), p.current && R && p.current.scrollTo({
|
|
909
|
+
left: y + R + 8,
|
|
910
|
+
top: 0,
|
|
911
|
+
behavior: "smooth"
|
|
912
|
+
});
|
|
913
|
+
}, te = () => {
|
|
914
|
+
M(W.ON_CAROUSEL_BACK_CLICK, t), p.current && R && p.current.scrollTo({
|
|
915
|
+
left: Math.max(0, y - (R + 8)),
|
|
916
|
+
top: 0,
|
|
917
|
+
behavior: "smooth"
|
|
918
|
+
});
|
|
919
|
+
}, Y = () => {
|
|
920
|
+
p.current && S(p.current.scrollLeft);
|
|
921
|
+
}, X = () => {
|
|
922
|
+
if (!A || !w) return;
|
|
923
|
+
A - w > Ot ? M(W.ON_CAROUSEL_FORWARD_SWIPE, t) : M(W.ON_CAROUSEL_BACK_SWIPE, t);
|
|
924
|
+
}, oe = (f) => {
|
|
925
|
+
T(f.targetTouches[0].clientX);
|
|
926
|
+
}, ne = (f) => {
|
|
927
|
+
T(null), ee(f.targetTouches[0].clientX);
|
|
928
|
+
}, Z = R ? Math.round(y / (R + 8)) : 0, Q = p.current ? p.current.scrollWidth - p.current.offsetWidth : 0;
|
|
929
|
+
return /* @__PURE__ */ N(
|
|
930
|
+
k,
|
|
931
|
+
{
|
|
932
|
+
"aria-label": j?.carousel_title,
|
|
933
|
+
"aria-roledescription": "carousel",
|
|
934
|
+
ref: g,
|
|
935
|
+
role: "region",
|
|
936
|
+
sx: {
|
|
937
|
+
alignItems: "center",
|
|
938
|
+
boxSizing: "border-box",
|
|
939
|
+
height: r,
|
|
940
|
+
width: d || "100%"
|
|
941
|
+
},
|
|
942
|
+
children: [
|
|
943
|
+
/* @__PURE__ */ o(
|
|
944
|
+
k,
|
|
945
|
+
{
|
|
946
|
+
direction: "row",
|
|
947
|
+
onScroll: Y,
|
|
948
|
+
onTouchEnd: X,
|
|
949
|
+
onTouchMove: oe,
|
|
950
|
+
onTouchStart: ne,
|
|
951
|
+
ref: p,
|
|
952
|
+
sx: {
|
|
953
|
+
alignItems: "center",
|
|
954
|
+
height: r && "100%",
|
|
955
|
+
gap: 8,
|
|
956
|
+
listStyleType: "none",
|
|
957
|
+
m: 0,
|
|
958
|
+
maxWidth: E ? "calc(100% - 32px)" : "100%",
|
|
959
|
+
overflowX: "auto",
|
|
960
|
+
overflowY: "hidden",
|
|
961
|
+
p: 0,
|
|
962
|
+
scrollbarWidth: "none",
|
|
963
|
+
"-ms-overflow-style": "none",
|
|
964
|
+
"-webkit-overflow-scrolling": "touch",
|
|
965
|
+
"&::-webkit-scrollbar": {
|
|
966
|
+
display: "none"
|
|
967
|
+
}
|
|
968
|
+
},
|
|
969
|
+
children: /* @__PURE__ */ o(
|
|
970
|
+
Nt,
|
|
971
|
+
{
|
|
972
|
+
activeCardIndex: Z,
|
|
973
|
+
beats: n,
|
|
974
|
+
cardWidth: R,
|
|
975
|
+
elevation: i,
|
|
976
|
+
heightOverrides: r,
|
|
977
|
+
onCardClick: l,
|
|
978
|
+
posthog: a,
|
|
979
|
+
showIcon: C,
|
|
980
|
+
variant: h
|
|
981
|
+
}
|
|
982
|
+
)
|
|
983
|
+
}
|
|
984
|
+
),
|
|
985
|
+
u && /* @__PURE__ */ o(
|
|
986
|
+
wt,
|
|
987
|
+
{
|
|
988
|
+
currentBeatIndex: Z + _ - 1,
|
|
989
|
+
numBeats: n.length + 1,
|
|
990
|
+
onNextClick: V,
|
|
991
|
+
onPreviousClick: te,
|
|
992
|
+
scrollRightBoundary: Q,
|
|
993
|
+
scrollX: y,
|
|
994
|
+
shouldApplyDotAnimation: e,
|
|
995
|
+
visibleCardsCount: _
|
|
996
|
+
}
|
|
997
|
+
)
|
|
998
|
+
]
|
|
999
|
+
}
|
|
1000
|
+
);
|
|
1001
|
+
}, vt = U(Mt), Lt = ({
|
|
1002
|
+
analyticsMetadata: t,
|
|
1003
|
+
onCardClick: e,
|
|
1004
|
+
posthog: n,
|
|
1005
|
+
widthOverrides: i,
|
|
1006
|
+
headerSx: r
|
|
1007
|
+
}) => {
|
|
1008
|
+
const { carouselCopy: l } = D(), { onEvent: a } = $(), u = () => {
|
|
1009
|
+
a && (a(W.ON_VIEW_MORE_CLICKED, t), e(), n?.capture("clicked_view_more"));
|
|
1010
|
+
};
|
|
1011
|
+
return l ? /* @__PURE__ */ N(
|
|
1012
|
+
k,
|
|
1013
|
+
{
|
|
1014
|
+
alignItems: "center",
|
|
1015
|
+
direction: "row",
|
|
1016
|
+
justifyContent: "space-between",
|
|
1017
|
+
spacing: 2,
|
|
1018
|
+
sx: {
|
|
1019
|
+
p: 16,
|
|
1020
|
+
pb: 8,
|
|
1021
|
+
width: i || void 0,
|
|
1022
|
+
...r
|
|
1023
|
+
},
|
|
1024
|
+
children: [
|
|
1025
|
+
/* @__PURE__ */ o(Fe, { children: l.carousel_title }),
|
|
1026
|
+
/* @__PURE__ */ o(
|
|
1027
|
+
ke,
|
|
1028
|
+
{
|
|
1029
|
+
endIcon: /* @__PURE__ */ o(Re, { size: 20 }),
|
|
1030
|
+
onClick: u,
|
|
1031
|
+
size: "small",
|
|
1032
|
+
variant: "text",
|
|
1033
|
+
children: l.view_all_insights_in_full_feed_cta_aria
|
|
1034
|
+
}
|
|
1035
|
+
)
|
|
1036
|
+
]
|
|
1037
|
+
}
|
|
1038
|
+
) : /* @__PURE__ */ o(Ye, {});
|
|
1039
|
+
}, bt = U(Lt), Dt = ({
|
|
1040
|
+
heightOverrides: t,
|
|
1041
|
+
widthOverrides: e,
|
|
1042
|
+
children: n
|
|
1043
|
+
}) => {
|
|
1044
|
+
const { carouselCopy: i } = D();
|
|
1045
|
+
return /* @__PURE__ */ o(
|
|
1046
|
+
ae,
|
|
1047
|
+
{
|
|
1048
|
+
"aria-label": i?.carousel_title,
|
|
1049
|
+
"aria-roledescription": "carousel",
|
|
1050
|
+
role: "group",
|
|
1051
|
+
sx: {
|
|
1052
|
+
boxSizing: "border-box",
|
|
1053
|
+
height: t ? void 0 : "100%",
|
|
1054
|
+
m: "0 auto",
|
|
1055
|
+
width: e ? void 0 : "100%"
|
|
1056
|
+
},
|
|
1057
|
+
children: n
|
|
1058
|
+
}
|
|
1059
|
+
);
|
|
1060
|
+
}, Pe = ({
|
|
1061
|
+
ariaLabel: t,
|
|
1062
|
+
elevation: e,
|
|
1063
|
+
heightOverrides: n,
|
|
1064
|
+
onCardClick: i,
|
|
1065
|
+
posthog: r,
|
|
1066
|
+
showIcon: l,
|
|
1067
|
+
variant: a
|
|
1068
|
+
}) => {
|
|
1069
|
+
const { cardsCopy: u } = D(), C = P(), { onEvent: E } = $(), { onPageview: h } = xe();
|
|
1070
|
+
I.useEffect(() => {
|
|
1071
|
+
h(B.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS);
|
|
1072
|
+
}, []);
|
|
1073
|
+
const d = () => {
|
|
1074
|
+
i && i(), E(W.ON_NO_RELEVANT_INSIGHTS_CLICKED), r?.capture("clicked_insight", {
|
|
1075
|
+
template: "no_relevant_insights"
|
|
1076
|
+
});
|
|
1077
|
+
};
|
|
1078
|
+
return /* @__PURE__ */ o(
|
|
1079
|
+
J,
|
|
1080
|
+
{
|
|
1081
|
+
ariaLabel: t,
|
|
1082
|
+
description: u.no_relevant_insights_card_description,
|
|
1083
|
+
elevation: e,
|
|
1084
|
+
heightOverrides: n,
|
|
1085
|
+
icon: l && /* @__PURE__ */ o(c, { bgColor: s(C.palette.primary.main, 0.15), name: "lightbulb" }),
|
|
1086
|
+
onCardClick: d,
|
|
1087
|
+
onPrimaryAction: d,
|
|
1088
|
+
primaryActionText: u.micro_card_cta,
|
|
1089
|
+
title: u.no_relevant_insights_card_title,
|
|
1090
|
+
variant: a
|
|
1091
|
+
}
|
|
1092
|
+
);
|
|
1093
|
+
}, ao = U(Pe), Ve = ({
|
|
1094
|
+
ariaLabel: t,
|
|
1095
|
+
elevation: e,
|
|
1096
|
+
heightOverrides: n,
|
|
1097
|
+
onCardClick: i,
|
|
1098
|
+
showIcon: r,
|
|
1099
|
+
variant: l
|
|
1100
|
+
}) => {
|
|
1101
|
+
const { onPageview: a } = xe(), { zeroStateCopy: u } = D(), C = P();
|
|
1102
|
+
return I.useEffect(() => {
|
|
1103
|
+
a(B.MICRO_WIDGET_CAROUSEL_ZERO_STATE);
|
|
1104
|
+
}, []), /* @__PURE__ */ o(
|
|
1105
|
+
J,
|
|
1106
|
+
{
|
|
1107
|
+
ariaLabel: t,
|
|
1108
|
+
description: u.carousel_zero_state_description,
|
|
1109
|
+
elevation: e,
|
|
1110
|
+
heightOverrides: n,
|
|
1111
|
+
icon: r && /* @__PURE__ */ o(c, { bgColor: s(C.palette.primary.main, 0.15), name: "lightbulb" }),
|
|
1112
|
+
onCardClick: i,
|
|
1113
|
+
title: u.carousel_zero_state_title,
|
|
1114
|
+
variant: l
|
|
1115
|
+
}
|
|
1116
|
+
);
|
|
1117
|
+
}, so = U(Ve), xt = () => /* @__PURE__ */ o(
|
|
1118
|
+
ae,
|
|
1119
|
+
{
|
|
1120
|
+
sx: {
|
|
1121
|
+
alignItems: "center",
|
|
1122
|
+
display: "flex",
|
|
1123
|
+
height: "100%",
|
|
1124
|
+
justifyContent: "center",
|
|
1125
|
+
width: "100%"
|
|
1126
|
+
},
|
|
1127
|
+
children: /* @__PURE__ */ o(Qe, {})
|
|
1128
|
+
}
|
|
1129
|
+
), Se = {
|
|
1130
|
+
featureVersion: "spendVsIncomeTrends"
|
|
1131
|
+
}, x = new pt(), Bt = ({
|
|
1132
|
+
allowSingleCardPeeking: t = !0,
|
|
1133
|
+
areBeatsLoading: e = !1,
|
|
1134
|
+
beats: n = [],
|
|
1135
|
+
// This also determines the length of the carousel controls (beat.length + 1)
|
|
1136
|
+
cardStyle: i = "elevation 1",
|
|
1137
|
+
endpoint: r = "/",
|
|
1138
|
+
headerSx: l,
|
|
1139
|
+
heightOverrides: a,
|
|
1140
|
+
logOutUser: u = () => {
|
|
1141
|
+
},
|
|
1142
|
+
onCardClick: C = () => {
|
|
1143
|
+
},
|
|
1144
|
+
onEvent: E = () => {
|
|
1145
|
+
},
|
|
1146
|
+
onPageview: h = () => {
|
|
1147
|
+
},
|
|
1148
|
+
posthog: d,
|
|
1149
|
+
showCarouselControls: _,
|
|
1150
|
+
showHeader: p,
|
|
1151
|
+
showIcon: g,
|
|
1152
|
+
showWithMargin: y = !0,
|
|
1153
|
+
token: S = "",
|
|
1154
|
+
userHasFullInsightFeedBeats: w,
|
|
1155
|
+
visibleCardsCount: T = 1,
|
|
1156
|
+
widthOverrides: A
|
|
1157
|
+
}) => {
|
|
1158
|
+
const R = (() => {
|
|
1159
|
+
if (i === "border") return "outlined";
|
|
1160
|
+
if (i === "elevation 1") return "elevation";
|
|
1161
|
+
if (i !== "flat")
|
|
1162
|
+
return "elevation";
|
|
1163
|
+
})(), m = i === "flat" ? 0 : 1, [j, M] = ie("STANDARD"), [V, te] = ie(!1), [Y, X] = ie(!1), oe = Je([E], x), ne = et([h], x);
|
|
1164
|
+
tt({
|
|
1165
|
+
widgetName: "InsightsMicroWidget",
|
|
1166
|
+
isLoaded: V
|
|
1167
|
+
}), I.useEffect(() => {
|
|
1168
|
+
!x.isInitialized && !Y && (x.initialize(r, S, u).catch(() => X(!1)), X(!0));
|
|
1169
|
+
}, [r, S, u, x.isInitialized, Y]), I.useEffect(() => {
|
|
1170
|
+
const f = window.innerHeight;
|
|
1171
|
+
f < 180 ? M("STANDARD") : f >= 180 && f < 200 ? M("LARGE") : f >= 200 && f < 248 ? M("XLARGE") : f >= 248 && M("XXLARGE");
|
|
1172
|
+
}, [window.innerHeight]), I.useEffect(() => {
|
|
1173
|
+
te(!e && x.isInitialized);
|
|
1174
|
+
}, [e, x.isInitialized]);
|
|
1175
|
+
const Z = {
|
|
1176
|
+
heightOverrides: a,
|
|
1177
|
+
onCardClick: C,
|
|
1178
|
+
posthog: d,
|
|
1179
|
+
showIcon: g,
|
|
1180
|
+
showWithMargin: y,
|
|
1181
|
+
widthOverrides: A
|
|
1182
|
+
}, Q = {
|
|
1183
|
+
carouselSize: j,
|
|
1184
|
+
elevation: m,
|
|
1185
|
+
variant: R,
|
|
1186
|
+
heightOverrides: a,
|
|
1187
|
+
onCardClick: C,
|
|
1188
|
+
posthog: d,
|
|
1189
|
+
showIcon: g
|
|
1190
|
+
};
|
|
1191
|
+
return /* @__PURE__ */ o(mt, { onEvent: oe, onPageview: ne, store: x, children: /* @__PURE__ */ N(Dt, { heightOverrides: a, widthOverrides: A, children: [
|
|
1192
|
+
!V && /* @__PURE__ */ o(xt, {}),
|
|
1193
|
+
V && p && /* @__PURE__ */ o(
|
|
1194
|
+
bt,
|
|
1195
|
+
{
|
|
1196
|
+
analyticsMetadata: Se,
|
|
1197
|
+
headerSx: l,
|
|
1198
|
+
onCardClick: C,
|
|
1199
|
+
posthog: d,
|
|
1200
|
+
widthOverrides: A
|
|
1201
|
+
}
|
|
1202
|
+
),
|
|
1203
|
+
V && !!n.length && /* @__PURE__ */ o(
|
|
1204
|
+
vt,
|
|
1205
|
+
{
|
|
1206
|
+
allowSingleCardPeeking: t,
|
|
1207
|
+
analyticsMetadata: Se,
|
|
1208
|
+
beats: n,
|
|
1209
|
+
elevation: m,
|
|
1210
|
+
showCarouselControls: _,
|
|
1211
|
+
variant: R,
|
|
1212
|
+
visibleCardsCount: T,
|
|
1213
|
+
...Z
|
|
1214
|
+
}
|
|
1215
|
+
),
|
|
1216
|
+
V && !n.length && /* @__PURE__ */ o(
|
|
1217
|
+
k,
|
|
1218
|
+
{
|
|
1219
|
+
sx: {
|
|
1220
|
+
alignItems: "center",
|
|
1221
|
+
height: a,
|
|
1222
|
+
width: A || "100%"
|
|
1223
|
+
},
|
|
1224
|
+
children: /* @__PURE__ */ o(
|
|
1225
|
+
k,
|
|
1226
|
+
{
|
|
1227
|
+
sx: {
|
|
1228
|
+
height: `calc(${Rt[j]}px - 44px)`,
|
|
1229
|
+
width: y ? `calc(${A}px - 32px)` : "100%"
|
|
1230
|
+
},
|
|
1231
|
+
children: w ? /* @__PURE__ */ o(Pe, { ...Q }) : /* @__PURE__ */ o(Ve, { ...Q })
|
|
1232
|
+
}
|
|
1233
|
+
)
|
|
1234
|
+
}
|
|
1235
|
+
)
|
|
1236
|
+
] }) });
|
|
1237
|
+
}, co = U(Bt), Pt = ({
|
|
1238
|
+
ariaLabel: t,
|
|
1239
|
+
elevation: e,
|
|
1240
|
+
heightOverrides: n,
|
|
1241
|
+
isActiveCard: i,
|
|
1242
|
+
onCardClick: r,
|
|
1243
|
+
posthog: l,
|
|
1244
|
+
widthOverrides: a,
|
|
1245
|
+
showIcon: u,
|
|
1246
|
+
variant: C
|
|
1247
|
+
}) => {
|
|
1248
|
+
const E = P(), { ref: h, inView: d } = Oe({
|
|
1249
|
+
threshold: Be
|
|
1250
|
+
}), { cardsCopy: _ } = D(), { onEvent: p } = $();
|
|
1251
|
+
re(() => {
|
|
1252
|
+
d && (p(ve.ON_VIEW_MORE_VIEWED), l?.capture("viewed_insight", {
|
|
1253
|
+
template: "view_more_card"
|
|
1254
|
+
}));
|
|
1255
|
+
}, [d]);
|
|
1256
|
+
const g = () => {
|
|
1257
|
+
r && r(), p(W.ON_VIEW_MORE_CLICKED), l?.capture("clicked_insight", {
|
|
1258
|
+
template: "view_more_card"
|
|
1259
|
+
});
|
|
1260
|
+
};
|
|
1261
|
+
return /* @__PURE__ */ o(
|
|
1262
|
+
J,
|
|
1263
|
+
{
|
|
1264
|
+
"aria-roledescription": "slide",
|
|
1265
|
+
ariaLabel: t,
|
|
1266
|
+
description: _?.view_more_card_description,
|
|
1267
|
+
elevation: e,
|
|
1268
|
+
heightOverrides: n,
|
|
1269
|
+
icon: u && /* @__PURE__ */ o(c, { bgColor: s(E.palette.primary.main, 0.15), name: "show_chart" }),
|
|
1270
|
+
isActiveCard: i,
|
|
1271
|
+
onCardClick: g,
|
|
1272
|
+
onPrimaryAction: g,
|
|
1273
|
+
primaryActionText: _?.micro_card_cta,
|
|
1274
|
+
ref: h,
|
|
1275
|
+
title: _?.view_more_card_title,
|
|
1276
|
+
variant: C,
|
|
1277
|
+
widthOverrides: a
|
|
1278
|
+
}
|
|
1279
|
+
);
|
|
1280
|
+
}, Vt = U(Pt);
|
|
1281
|
+
export {
|
|
1282
|
+
pt as A,
|
|
1283
|
+
c as B,
|
|
1284
|
+
bt as C,
|
|
1285
|
+
Wt as I,
|
|
1286
|
+
vt as M,
|
|
1287
|
+
ao as N,
|
|
1288
|
+
Se as T,
|
|
1289
|
+
Vt as V,
|
|
1290
|
+
so as Z,
|
|
1291
|
+
co as a,
|
|
1292
|
+
mt as b,
|
|
1293
|
+
J as c,
|
|
1294
|
+
It as d
|
|
1295
|
+
};
|