@mx-cartographer/experiences 9.7.206 → 10.0.0
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 +5 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +2 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.es.js +39 -23
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.es.js.map +1 -1
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader.d.ts +3 -1
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader.es.js +37 -33
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader.es.js.map +1 -1
- package/dist/accounts/utils/AccountFields.d.ts +3 -1
- package/dist/accounts/utils/AccountFields.es.js +39 -39
- package/dist/accounts/utils/AccountFields.es.js.map +1 -1
- package/dist/common/components/charts/LineChart.d.ts +4 -0
- package/dist/common/components/charts/LineChart.es.js +114 -112
- package/dist/common/components/charts/LineChart.es.js.map +1 -1
- package/dist/common/components/charts/linechart/CustomLegend.es.js +24 -21
- package/dist/common/components/charts/linechart/CustomLegend.es.js.map +1 -1
- package/dist/core/types/Insights.d.ts +9 -1
- package/dist/core/types/Insights.es.js.map +1 -1
- package/dist/core/types/localization/InsightsFeedCopy.d.ts +42 -0
- package/dist/core/types/localization/index.d.ts +1 -1
- package/dist/insights-v2/actionBlocks/AccountDetailsBlock/AccountDetailsBlock.d.ts +7 -1
- package/dist/insights-v2/actionBlocks/AccountDetailsBlock/AccountDetailsBlock.es.js +39 -20
- package/dist/insights-v2/actionBlocks/AccountDetailsBlock/AccountDetailsBlock.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/AccountDetailsBlock/SpendVsIncomeChart.d.ts +4 -0
- package/dist/insights-v2/actionBlocks/AccountDetailsBlock/SpendVsIncomeChart.es.js +42 -0
- package/dist/insights-v2/actionBlocks/AccountDetailsBlock/SpendVsIncomeChart.es.js.map +1 -0
- package/dist/insights-v2/actionBlocks/AccountDetailsBlock/SpendVsPaymentChart.d.ts +7 -0
- package/dist/insights-v2/actionBlocks/AccountDetailsBlock/SpendVsPaymentChart.es.js +54 -0
- package/dist/insights-v2/actionBlocks/AccountDetailsBlock/SpendVsPaymentChart.es.js.map +1 -0
- package/dist/insights-v2/actionBlocks/AmountInputModalBlock/AmountInputModalBlock.es.js +10 -10
- package/dist/insights-v2/actionBlocks/AmountInputModalBlock/CreateBudgetDialog.es.js +24 -23
- package/dist/insights-v2/actionBlocks/AmountInputModalBlock/CreateBudgetDialog.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/BudgetDetailsBlock.es.js +75 -73
- package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/BudgetDetailsBlock.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/BudgetSummary.d.ts +5 -1
- package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/BudgetSummary.es.js +21 -21
- package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/BudgetSummary.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/layout.d.ts +11 -0
- package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/layout.es.js +65 -58
- package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/EmergencySavingsBlock/EmergencySavingsV2.es.js +17 -17
- package/dist/insights-v2/actionBlocks/EmergencySavingsBlock/EmergencySavingsV2.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/MakeTransferActionBlock/BalanceStepper.es.js +9 -10
- package/dist/insights-v2/actionBlocks/MakeTransferActionBlock/BalanceStepper.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/MakeTransferActionBlock/SaveEnoughToLiveOnBottomSection.es.js +21 -22
- package/dist/insights-v2/actionBlocks/MakeTransferActionBlock/SaveEnoughToLiveOnBottomSection.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/PayoffCalculatorBlock/PayoffCalculatorBlock.es.js +35 -35
- package/dist/insights-v2/actionBlocks/PayoffCalculatorBlock/PayoffCalculatorBlock.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/PayoffCalculatorBlock/PayoffResults.d.ts +1 -1
- package/dist/insights-v2/actionBlocks/PayoffCalculatorBlock/PayoffResults.es.js +44 -49
- package/dist/insights-v2/actionBlocks/PayoffCalculatorBlock/PayoffResults.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/PayoffStrategiesBlock.d.ts +1 -1
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/PayoffStrategiesBlock.es.js +19 -16
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/PayoffStrategiesBlock.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/PayoffStrategiesContent.d.ts +2 -2
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/PayoffStrategiesContent.es.js +212 -166
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/PayoffStrategiesContent.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/StepIcon.d.ts +4 -0
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/StepIcon.es.js +24 -0
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/StepIcon.es.js.map +1 -0
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/layout.d.ts +6 -5
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/layout.es.js +38 -38
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/SubscriptionStatusModalBlock.es.js +1 -1
- package/dist/insights-v2/actionBlocks/TopMerchantsBlock/TopMerchantsBlock.d.ts +1 -5
- package/dist/insights-v2/actionBlocks/TopMerchantsBlock/TopMerchantsBlock.es.js +37 -36
- package/dist/insights-v2/actionBlocks/TopMerchantsBlock/TopMerchantsBlock.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionDetailsBlock/layout.d.ts +9 -11
- package/dist/insights-v2/actionBlocks/TransactionDetailsBlock/layout.es.js +12 -6
- package/dist/insights-v2/actionBlocks/TransactionDetailsBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionDrillDown.es.js +46 -40
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionDrillDown.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionHistoryBlock.es.js +141 -126
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionHistoryBlock.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/layout.d.ts +8 -1
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/layout.es.js +243 -200
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/utils.d.ts +2 -0
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/utils.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListBlock.es.js +54 -53
- package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListBlock.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListHeaderIconTile.d.ts +6 -1
- package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListHeaderIconTile.es.js +14 -13
- package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListHeaderIconTile.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListSummaryCard.d.ts +4 -3
- package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListSummaryCard.es.js +24 -21
- package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListSummaryCard.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionListBlock/layout.d.ts +14 -4
- package/dist/insights-v2/actionBlocks/TransactionListBlock/layout.es.js +79 -67
- package/dist/insights-v2/actionBlocks/TransactionListBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/DonutChart.d.ts +3 -1
- package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/DonutChart.es.js +48 -32
- package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/DonutChart.es.js.map +1 -1
- package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/DonutChartBlock.es.js +19 -14
- package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/DonutChartBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/layout.d.ts +4 -0
- package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/layout.es.js +19 -15
- package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/blocks/ChartBlocks/DoubleBarChartBlock/DoubleBarChartBlock.es.js +26 -19
- package/dist/insights-v2/blocks/ChartBlocks/DoubleBarChartBlock/DoubleBarChartBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ChartBlocks/DoubleBarChartBlock/layout.d.ts +1 -0
- package/dist/insights-v2/blocks/ChartBlocks/DoubleBarChartBlock/layout.es.js +17 -21
- package/dist/insights-v2/blocks/ChartBlocks/DoubleBarChartBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/StepChartBlock.d.ts +1 -1
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/StepChartBlock.es.js +11 -11
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/StepChartBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/index.es.js +15 -11
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/index.es.js.map +1 -1
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/layout.d.ts +20 -0
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/layout.es.js +21 -0
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/layout.es.js.map +1 -0
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/MilestoneProgress.d.ts +2 -4
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/MilestoneProgress.es.js +78 -82
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/MilestoneProgress.es.js.map +1 -1
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/WithText.d.ts +10 -2
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/WithText.es.js +115 -54
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/WithText.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/AccountBlock.d.ts +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/AccountBlock.es.js +37 -36
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/AccountBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/layout.es.js +27 -22
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/BudgetBlock/BudgetBlock.es.js +8 -8
- package/dist/insights-v2/blocks/ComponentBlocks/CompactDirectDepositBlock/CompactDirectDepositBlock.d.ts +7 -0
- package/dist/insights-v2/blocks/ComponentBlocks/CompactDirectDepositBlock/CompactDirectDepositBlock.es.js +46 -0
- package/dist/insights-v2/blocks/ComponentBlocks/CompactDirectDepositBlock/CompactDirectDepositBlock.es.js.map +1 -0
- package/dist/insights-v2/blocks/ComponentBlocks/CompactDirectDepositBlock/index.d.ts +3 -0
- package/dist/insights-v2/blocks/ComponentBlocks/CompactDirectDepositBlock/layout.d.ts +13 -0
- package/dist/insights-v2/blocks/ComponentBlocks/CompactDirectDepositBlock/layout.es.js +22 -0
- package/dist/insights-v2/blocks/ComponentBlocks/CompactDirectDepositBlock/layout.es.js.map +1 -0
- package/dist/insights-v2/blocks/ComponentBlocks/DetailedAccountBlock/DetailedAccountBlock.es.js +29 -21
- package/dist/insights-v2/blocks/ComponentBlocks/DetailedAccountBlock/DetailedAccountBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/DetailedAccountBlock/layout.d.ts +0 -2
- package/dist/insights-v2/blocks/ComponentBlocks/DetailedAccountBlock/layout.es.js +17 -21
- package/dist/insights-v2/blocks/ComponentBlocks/DetailedAccountBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/FeeChargedBlock/FeeChargedBlock.es.js +5 -6
- package/dist/insights-v2/blocks/ComponentBlocks/FeeChargedBlock/FeeChargedBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/FeedbackBlock.d.ts +3 -7
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/FeedbackBlock.es.js +120 -306
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/FeedbackBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/RatingScale.d.ts +17 -0
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/RatingScale.es.js +93 -0
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/RatingScale.es.js.map +1 -0
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/StepBar.d.ts +5 -0
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/StepBar.es.js +21 -0
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/StepBar.es.js.map +1 -0
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/SurveyResult.d.ts +18 -0
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/SurveyResult.es.js +71 -0
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/SurveyResult.es.js.map +1 -0
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/survey.d.ts +82 -8
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/survey.es.js +66 -15
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/survey.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/MerchantBlock.es.js +46 -63
- package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/MerchantBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/layout.d.ts +3 -3
- package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/layout.es.js +44 -53
- package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/QuizBlock/QuizBlock.d.ts +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/QuizBlock/QuizBlock.es.js +30 -31
- package/dist/insights-v2/blocks/ComponentBlocks/QuizBlock/QuizBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/SaveExtraBlock/SaveExtraBlock.es.js +25 -20
- package/dist/insights-v2/blocks/ComponentBlocks/SaveExtraBlock/SaveExtraBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/SaveExtraBlock/layout.d.ts +22 -0
- package/dist/insights-v2/blocks/ComponentBlocks/SaveExtraBlock/layout.es.js +24 -0
- package/dist/insights-v2/blocks/ComponentBlocks/SaveExtraBlock/layout.es.js.map +1 -0
- package/dist/insights-v2/blocks/ComponentBlocks/StrategiesBlock/StrategiesBlock.d.ts +7 -0
- package/dist/insights-v2/blocks/ComponentBlocks/StrategiesBlock/StrategiesBlock.es.js +89 -0
- package/dist/insights-v2/blocks/ComponentBlocks/StrategiesBlock/StrategiesBlock.es.js.map +1 -0
- package/dist/insights-v2/blocks/ComponentBlocks/StrategiesBlock/index.d.ts +1 -0
- package/dist/insights-v2/blocks/ComponentBlocks/StrategiesBlock/layout.d.ts +43 -0
- package/dist/insights-v2/blocks/ComponentBlocks/StrategiesBlock/layout.es.js +28 -0
- package/dist/insights-v2/blocks/ComponentBlocks/StrategiesBlock/layout.es.js.map +1 -0
- package/dist/insights-v2/blocks/ComponentBlocks/TransactionBlock/TransactionBlock.es.js +54 -53
- package/dist/insights-v2/blocks/ComponentBlocks/TransactionBlock/TransactionBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/TransactionBlock/layout.d.ts +7 -3
- package/dist/insights-v2/blocks/ComponentBlocks/TransactionBlock/layout.es.js +20 -11
- package/dist/insights-v2/blocks/ComponentBlocks/TransactionBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/WeeklySmallPurchasesBlock/WeeklySmallPurchasesBlock.es.js +29 -28
- package/dist/insights-v2/blocks/ComponentBlocks/WeeklySmallPurchasesBlock/WeeklySmallPurchasesBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/index.d.ts +2 -0
- package/dist/insights-v2/blocks/ImageBlocks/ImageBlock.es.js +6 -5
- package/dist/insights-v2/blocks/ImageBlocks/ImageBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/images/FederalBankHoliday.es.js +117 -71
- package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/images/FederalBankHoliday.es.js.map +1 -1
- package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/layout.d.ts +1 -1
- package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/layout.es.js +10 -7
- package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/components/AccountHeroCard.d.ts +3 -1
- package/dist/insights-v2/components/AccountHeroCard.es.js.map +1 -1
- package/dist/insights-v2/components/BaseLayout.d.ts +3 -1
- package/dist/insights-v2/components/BaseLayout.es.js +134 -119
- package/dist/insights-v2/components/BaseLayout.es.js.map +1 -1
- package/dist/insights-v2/components/CompactDirectDepositCard.d.ts +28 -0
- package/dist/insights-v2/components/CompactDirectDepositCard.es.js +78 -0
- package/dist/insights-v2/components/CompactDirectDepositCard.es.js.map +1 -0
- package/dist/insights-v2/components/CompactInsightCard.es.js +122 -118
- package/dist/insights-v2/components/CompactInsightCard.es.js.map +1 -1
- package/dist/insights-v2/components/DirectDepositCard.d.ts +6 -1
- package/dist/insights-v2/components/DirectDepositCard.es.js +24 -22
- package/dist/insights-v2/components/DirectDepositCard.es.js.map +1 -1
- package/dist/insights-v2/components/LoadingCard.es.js +13 -9
- package/dist/insights-v2/components/LoadingCard.es.js.map +1 -1
- package/dist/insights-v2/components/LogoFromGuid.d.ts +1 -1
- package/dist/insights-v2/components/LogoFromGuid.es.js.map +1 -1
- package/dist/insights-v2/components/MerchantHighlightCard.es.js +4 -4
- package/dist/insights-v2/components/SaveAnExtraCard.d.ts +4 -1
- package/dist/insights-v2/components/SaveAnExtraCard.es.js +32 -20
- package/dist/insights-v2/components/SaveAnExtraCard.es.js.map +1 -1
- package/dist/insights-v2/components/SubTabs.d.ts +2 -1
- package/dist/insights-v2/components/SubTabs.es.js +29 -24
- package/dist/insights-v2/components/SubTabs.es.js.map +1 -1
- package/dist/insights-v2/components/TransactionListCard.d.ts +3 -1
- package/dist/insights-v2/components/TransactionListCard.es.js +39 -37
- package/dist/insights-v2/components/TransactionListCard.es.js.map +1 -1
- package/dist/insights-v2/components/TransferLogoCard.es.js +1 -0
- package/dist/insights-v2/components/TransferLogoCard.es.js.map +1 -1
- package/dist/insights-v2/components/UpcomingBillCard.es.js +39 -35
- package/dist/insights-v2/components/UpcomingBillCard.es.js.map +1 -1
- package/dist/insights-v2/components/celebrationGradients.d.ts +17 -8
- package/dist/insights-v2/components/celebrationGradients.es.js +14 -14
- package/dist/insights-v2/components/celebrationGradients.es.js.map +1 -1
- package/dist/insights-v2/components/chartblocks/ChartLegend.es.js +16 -10
- package/dist/insights-v2/components/chartblocks/ChartLegend.es.js.map +1 -1
- package/dist/insights-v2/components/chartblocks/DoubleBarChart.d.ts +10 -4
- package/dist/insights-v2/components/chartblocks/DoubleBarChart.es.js +62 -61
- package/dist/insights-v2/components/chartblocks/DoubleBarChart.es.js.map +1 -1
- package/dist/insights-v2/components/chartblocks/EmptyBarChart.es.js +13 -6
- package/dist/insights-v2/components/chartblocks/EmptyBarChart.es.js.map +1 -1
- package/dist/insights-v2/components/shared/images/DesignateEmergencySavings.es.js +2 -3
- package/dist/insights-v2/components/shared/images/DesignateEmergencySavings.es.js.map +1 -1
- package/dist/insights-v2/components/statusIcon.d.ts +2 -1
- package/dist/insights-v2/components/statusIcon.es.js +10 -8
- package/dist/insights-v2/components/statusIcon.es.js.map +1 -1
- package/dist/insights-v2/ctaActions/ctaConfig.es.js +19 -17
- package/dist/insights-v2/ctaActions/ctaConfig.es.js.map +1 -1
- package/dist/insights-v2/ctaActions/ctaHandlers.d.ts +5 -1
- package/dist/insights-v2/ctaActions/ctaHandlers.es.js +71 -54
- package/dist/insights-v2/ctaActions/ctaHandlers.es.js.map +1 -1
- package/dist/insights-v2/ctaActions/ctaPostMessages.es.js +41 -24
- package/dist/insights-v2/ctaActions/ctaPostMessages.es.js.map +1 -1
- package/dist/insights-v2/ctaActions/feedbackSurvey.d.ts +9 -0
- package/dist/insights-v2/ctaActions/feedbackSurvey.es.js +51 -0
- package/dist/insights-v2/ctaActions/feedbackSurvey.es.js.map +1 -0
- package/dist/insights-v2/ctaActions/runCtaAction.es.js +36 -35
- package/dist/insights-v2/ctaActions/runCtaAction.es.js.map +1 -1
- package/dist/insights-v2/ctaActions/types.d.ts +7 -0
- package/dist/insights-v2/index.es.js +126 -120
- package/dist/insights-v2/mappings/actionBlocksKey.d.ts +1 -1
- package/dist/insights-v2/mappings/actionBlocksKey.es.js +1 -1
- package/dist/insights-v2/mappings/actionBlocksKey.es.js.map +1 -1
- package/dist/insights-v2/mappings/blocks.es.js +126 -122
- package/dist/insights-v2/mappings/blocks.es.js.map +1 -1
- package/dist/microinsights/MicroCardTemplate.es.js +1 -1
- package/dist/microinsights/MicroCardTemplate.es.js.map +1 -1
- package/dist/microinsights/cards/InsightCard.es.js +53 -53
- package/dist/microinsights/cards/InsightCard.es.js.map +1 -1
- package/package.json +1 -1
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/index.d.ts +0 -13
- package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/images/DesignateEmergencySavingsAccount.es.js +0 -296
- package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/images/DesignateEmergencySavingsAccount.es.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CompactDirectDepositCard.es.js","names":[],"sources":["../../../src/insights-v2/components/CompactDirectDepositCard.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\n\nimport Box from '@mui/material/Box'\nimport Stack from '@mui/material/Stack'\n\nimport { Text } from '@mxenabled/mxui'\n\nimport {\n DIRECT_DEPOSIT_NEUTRAL_PILL,\n directDepositPillIcon,\n type DirectDepositPillConfig,\n} from './DirectDepositCard'\nimport { getLogoElevation } from './logoShadow'\nimport StatusPill from './StatusPill'\n\nimport { ConfettiOverlay } from './shared/ConfettiOverlay'\n\nexport interface CompactDirectDepositCardProps {\n /** Institution/account logo, drawn inline (not overhanging). */\n logo: ReactNode\n /** Primary line, e.g. \"Epic Bank Credit *0987\". */\n name: ReactNode\n /** Optional secondary line, e.g. \"Credit Card\". */\n subtitle?: ReactNode\n /** Hero name typography; Missing Interest Rate's mini tile uses `body1`. */\n nameVariant?: 'body1' | 'body2'\n /** Status pill color tokens + optional leading glyph. */\n pill?: DirectDepositPillConfig\n /** Optional status pill label, e.g. \"Unknown Interest Rate (APR)%\". */\n statusLabel?: ReactNode\n /** Slot surface token behind the white card. Default `primary.lighter`. */\n bgcolor?: string\n /** Decorative wash layered over `bgcolor` (gradient slots). */\n backgroundImage?: string\n /** Confetti burst behind the tile (the complete state, as the full tile's). */\n showConfetti?: boolean\n}\n\n/**\n * The mini-tile Direct Deposit card, rendered by `compact_direct_deposit_block`: the logo inline left\n * of the name, the status pill full width below (Figma: Missing Interest Rate mini, 16769:167465).\n */\nconst CompactDirectDepositCard = ({\n backgroundImage,\n bgcolor = 'primary.lighter',\n logo,\n name,\n nameVariant = 'body2',\n pill = DIRECT_DEPOSIT_NEUTRAL_PILL,\n showConfetti = false,\n statusLabel,\n subtitle,\n}: CompactDirectDepositCardProps) => (\n <Box\n data-testid=\"compact-direct-deposit-card\"\n sx={{\n bgcolor,\n ...(backgroundImage && { backgroundImage }),\n overflow: 'hidden',\n position: 'relative',\n px: 16,\n py: 19,\n width: '100%',\n }}\n >\n {showConfetti && <ConfettiOverlay />}\n <Stack\n sx={{\n bgcolor: 'background.paper',\n borderRadius: '8px',\n boxShadow: getLogoElevation,\n gap: 12,\n p: 16,\n position: 'relative',\n width: '100%',\n zIndex: 1,\n }}\n >\n <Stack sx={{ alignItems: 'center', flexDirection: 'row', gap: 12, minWidth: 0 }}>\n <Box sx={{ display: 'flex', flexShrink: 0 }}>{logo}</Box>\n <Stack sx={{ minWidth: 0 }}>\n <Text sx={{ fontWeight: 600 }} truncate={true} variant={nameVariant}>\n {name}\n </Text>\n {subtitle && (\n <Text color=\"text.secondary\" truncate={true} variant=\"caption\">\n {subtitle}\n </Text>\n )}\n </Stack>\n </Stack>\n {statusLabel && (\n <StatusPill\n bgcolor={pill.bgcolor}\n borderColor={pill.borderColor}\n icon={directDepositPillIcon(pill)}\n label={statusLabel}\n labelColor={pill.labelColor}\n // Figma pill geometry: 24px tall, 12px side padding, 4px glyph gap, no stroke, full\n // width and centred on the tile (vs. DirectDepositCard's left-aligned, intrinsic-width pill).\n sx={{ alignSelf: 'stretch', border: 'none', gap: 4, justifyContent: 'center', px: 12 }}\n />\n )}\n </Stack>\n </Box>\n)\n\nexport default CompactDirectDepositCard\n"],"mappings":";;;;;;;;AA0CA,IAAM,IAAA,CAA4B,EAChC,iBAAA,GACA,SAAA,IAAU,mBACV,MAAA,GACA,MAAA,GACA,aAAA,IAAc,SACd,MAAA,IAAO,GACP,cAAA,IAAe,IACf,aAAA,GACA,UAAA,EAAA,MAEA,gBAAA,EAAC,GAAD;AAAA,EACE,eAAY;AAAA,EACZ,IAAI;AAAA,IACF,SAAA;AAAA,IACA,GAAI,KAAmB,EAAE,iBAAA,EAAgB;AAAA,IACzC,UAAU;AAAA,IACV,UAAU;AAAA,IACV,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AAAA,EAVF,UAAA,CAYG,KAAgB,gBAAA,EAAC,GAAD,CAAkB,CAAA,GACnC,gBAAA,EAAC,GAAD;AAAA,IACE,IAAI;AAAA,MACF,SAAS;AAAA,MACT,cAAc;AAAA,MACd,WAAW;AAAA,MACX,KAAK;AAAA,MACL,GAAG;AAAA,MACH,UAAU;AAAA,MACV,OAAO;AAAA,MACP,QAAQ;AAAA,IACV;AAAA,IAVF,UAAA,CAYE,gBAAA,EAAC,GAAD;AAAA,MAAO,IAAI;AAAA,QAAE,YAAY;AAAA,QAAU,eAAe;AAAA,QAAO,KAAK;AAAA,QAAI,UAAU;AAAA,MAAE;AAAA,MAA9E,UAAA,CACE,gBAAA,EAAC,GAAD;AAAA,QAAK,IAAI;AAAA,UAAE,SAAS;AAAA,UAAQ,YAAY;AAAA,QAAE;AAAA,QAAI,UAAA;AAAA,MAAU,CAAA,GACxD,gBAAA,EAAC,GAAD;AAAA,QAAO,IAAI,EAAE,UAAU,EAAE;AAAA,QAAzB,UAAA,CACE,gBAAA,EAAC,GAAD;AAAA,UAAM,IAAI,EAAE,YAAY,IAAI;AAAA,UAAG,UAAU;AAAA,UAAM,SAAS;AAAA,UACrD,UAAA;AAAA,QACG,CAAA,GACL,KACC,gBAAA,EAAC,GAAD;AAAA,UAAM,OAAM;AAAA,UAAiB,UAAU;AAAA,UAAM,SAAQ;AAAA,UAClD,UAAA;AAAA,QACG,CAAA,CAEH;AAAA,MACF,CAAA,CAAA;AAAA,IACN,CAAA,GAAA,KACC,gBAAA,EAAC,GAAD;AAAA,MACE,SAAS,EAAK;AAAA,MACd,aAAa,EAAK;AAAA,MAClB,MAAM,EAAsB,CAAI;AAAA,MAChC,OAAO;AAAA,MACP,YAAY,EAAK;AAAA,MAGjB,IAAI;AAAA,QAAE,WAAW;AAAA,QAAW,QAAQ;AAAA,QAAQ,KAAK;AAAA,QAAG,gBAAgB;AAAA,QAAU,IAAI;AAAA,MAAG;AAAA,IACtF,CAAA,CAEE;AAAA,EACJ,CAAA,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useGlobalStore as G, useInsightsV2Store as P } from "../../common/context/hooks.es.js";
|
|
2
|
-
import { slot as
|
|
3
|
-
import { CURRENCY_FORMAT as
|
|
2
|
+
import { slot as g } from "../../core/types/Insights.es.js";
|
|
3
|
+
import { CURRENCY_FORMAT as u, formatCurrency as f } from "../../core/utils/NumberFormatting.es.js";
|
|
4
4
|
import { getCategoryColor as F } from "../../core/utils/CategoryUtil.es.js";
|
|
5
5
|
import { TinyBarChart as T } from "../../common/components/TinyBarChart.es.js";
|
|
6
6
|
import { BAR_ARIA_LABEL as K, buildChartData as j, buildDataSeries as Z } from "../blocks/ChartBlocks/BarchartBlock/utils.es.js";
|
|
@@ -9,57 +9,57 @@ import { donutChartVariant as $ } from "../blocks/ChartBlocks/DonutChartBlock/la
|
|
|
9
9
|
import { getDonutSegments as U } from "../blocks/ChartBlocks/DonutChartBlock/utils.es.js";
|
|
10
10
|
import { formatValueByType as Y } from "../CommonUtils.es.js";
|
|
11
11
|
import { ThemedSVGImage as q } from "./chartblocks/ThemedSVGImage.es.js";
|
|
12
|
-
import { asLogoRef as J, asNonEmptyText as
|
|
12
|
+
import { asLogoRef as J, asNonEmptyText as V, asNumber as S } from "../blocks/slotReaders.es.js";
|
|
13
13
|
import { postCtaMessage as Q } from "../ctaActions/runCtaAction.es.js";
|
|
14
|
-
import
|
|
14
|
+
import x from "./LogoFromGuid.es.js";
|
|
15
15
|
import { createVariantBlock as tt } from "../blocks/createVariantBlock.es.js";
|
|
16
16
|
import { ActionBlockLayer as rt } from "../actionBlocks/ActionBlockLayer.es.js";
|
|
17
|
-
import
|
|
17
|
+
import A from "./BadgedTile.es.js";
|
|
18
18
|
import { InsightOptionsMenu as et } from "./InsightOptionsMenu.es.js";
|
|
19
19
|
import { ReactComponent as it } from "./shared/images/FeeDetected.es.js";
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import { P as ot, Text as
|
|
20
|
+
import O from "./StatusBadge.es.js";
|
|
21
|
+
import I from "@mui/material/Stack";
|
|
22
|
+
import { P as ot, Text as R } from "@mxenabled/mxui";
|
|
23
23
|
import at from "@mui/material/Button";
|
|
24
|
-
import { Icon as
|
|
25
|
-
import { Fragment as nt, jsx as t, jsxs as
|
|
24
|
+
import { Icon as E } from "@mxenabled/mx-icons";
|
|
25
|
+
import { Fragment as nt, jsx as t, jsxs as m } from "react/jsx-runtime";
|
|
26
26
|
import { useTheme as st } from "@mui/material/styles";
|
|
27
27
|
import n from "@mui/material/Box";
|
|
28
28
|
import lt from "@mui/material/Card";
|
|
29
|
-
var dt = 2,
|
|
29
|
+
var dt = 2, p = 44, L = 36, ct = 75, mt = 74, _ = {
|
|
30
30
|
left: "50%",
|
|
31
31
|
position: "absolute",
|
|
32
32
|
top: "50%",
|
|
33
33
|
transform: "translate(-50%, -50%)"
|
|
34
|
-
}, pt = 54, gt = 75,
|
|
34
|
+
}, pt = 54, gt = 75, B = ({ logo: r }) => r ? /* @__PURE__ */ t(x, {
|
|
35
35
|
logo: r,
|
|
36
|
-
size:
|
|
36
|
+
size: p
|
|
37
37
|
}) : /* @__PURE__ */ t(n, {
|
|
38
38
|
"data-testid": "compact-insight-card-fallback-icon",
|
|
39
39
|
sx: {
|
|
40
40
|
alignItems: "center",
|
|
41
41
|
bgcolor: "primary.lighter",
|
|
42
42
|
display: "flex",
|
|
43
|
-
height:
|
|
43
|
+
height: p,
|
|
44
44
|
justifyContent: "center",
|
|
45
|
-
width:
|
|
45
|
+
width: p
|
|
46
46
|
},
|
|
47
|
-
children: /* @__PURE__ */ t(
|
|
47
|
+
children: /* @__PURE__ */ t(E, {
|
|
48
48
|
color: "primary",
|
|
49
49
|
fill: !0,
|
|
50
50
|
name: "lightbulb",
|
|
51
51
|
size: 24
|
|
52
52
|
})
|
|
53
|
-
}),
|
|
54
|
-
center: /* @__PURE__ */ t(
|
|
55
|
-
size:
|
|
53
|
+
}), w = ({ logo: r }) => /* @__PURE__ */ t(A, {
|
|
54
|
+
center: /* @__PURE__ */ t(B, { logo: r }),
|
|
55
|
+
size: p,
|
|
56
56
|
sx: { flexShrink: 0 }
|
|
57
|
-
}), ht = ({ logo: r }) => /* @__PURE__ */ t(
|
|
58
|
-
center: /* @__PURE__ */ t(
|
|
59
|
-
size:
|
|
57
|
+
}), ht = ({ logo: r }) => /* @__PURE__ */ t(A, {
|
|
58
|
+
center: /* @__PURE__ */ t(B, { logo: r }),
|
|
59
|
+
size: p,
|
|
60
60
|
sx: { flexShrink: 0 },
|
|
61
|
-
topRight: /* @__PURE__ */ t(
|
|
62
|
-
}), ut = 24, ft = ({ logo: r }) => /* @__PURE__ */ t(
|
|
61
|
+
topRight: /* @__PURE__ */ t(O, { tone: "warning" })
|
|
62
|
+
}), ut = 24, ft = ({ logo: r }) => /* @__PURE__ */ t(A, {
|
|
63
63
|
bottomLeft: r ? /* @__PURE__ */ t(n, {
|
|
64
64
|
"aria-hidden": !0,
|
|
65
65
|
sx: {
|
|
@@ -69,7 +69,7 @@ var dt = 2, m = 44, B = 36, ct = 75, mt = 74, f = {
|
|
|
69
69
|
outlineColor: "background.paper",
|
|
70
70
|
overflow: "hidden"
|
|
71
71
|
},
|
|
72
|
-
children: /* @__PURE__ */ t(
|
|
72
|
+
children: /* @__PURE__ */ t(x, {
|
|
73
73
|
logo: {
|
|
74
74
|
...r,
|
|
75
75
|
alt: void 0
|
|
@@ -77,10 +77,10 @@ var dt = 2, m = 44, B = 36, ct = 75, mt = 74, f = {
|
|
|
77
77
|
size: ut
|
|
78
78
|
})
|
|
79
79
|
}) : void 0,
|
|
80
|
-
center: /* @__PURE__ */ t(
|
|
81
|
-
size:
|
|
80
|
+
center: /* @__PURE__ */ t(B, { logo: r }),
|
|
81
|
+
size: p,
|
|
82
82
|
sx: { flexShrink: 0 },
|
|
83
|
-
topRight: /* @__PURE__ */ t(
|
|
83
|
+
topRight: /* @__PURE__ */ t(O, { tone: "error" })
|
|
84
84
|
}), xt = () => /* @__PURE__ */ t(q, {
|
|
85
85
|
divProps: { style: {
|
|
86
86
|
flexShrink: 0,
|
|
@@ -88,11 +88,11 @@ var dt = 2, m = 44, B = 36, ct = 75, mt = 74, f = {
|
|
|
88
88
|
width: "max-content"
|
|
89
89
|
} },
|
|
90
90
|
image: it
|
|
91
|
-
}),
|
|
91
|
+
}), D = 24, _t = () => /* @__PURE__ */ t(n, {
|
|
92
92
|
"aria-hidden": !0,
|
|
93
93
|
"data-testid": "linked-logos-badge",
|
|
94
94
|
sx: {
|
|
95
|
-
...
|
|
95
|
+
..._,
|
|
96
96
|
alignItems: "center",
|
|
97
97
|
bgcolor: "primary.main",
|
|
98
98
|
border: "2px solid",
|
|
@@ -103,7 +103,7 @@ var dt = 2, m = 44, B = 36, ct = 75, mt = 74, f = {
|
|
|
103
103
|
p: 2,
|
|
104
104
|
zIndex: 1
|
|
105
105
|
},
|
|
106
|
-
children: /* @__PURE__ */ t(
|
|
106
|
+
children: /* @__PURE__ */ t(E, {
|
|
107
107
|
name: "link",
|
|
108
108
|
size: 16,
|
|
109
109
|
sx: { color: "primary.contrastText" }
|
|
@@ -112,29 +112,29 @@ var dt = 2, m = 44, B = 36, ct = 75, mt = 74, f = {
|
|
|
112
112
|
"aria-hidden": !0,
|
|
113
113
|
"data-testid": "linked-logos-badge",
|
|
114
114
|
sx: {
|
|
115
|
-
...
|
|
115
|
+
..._,
|
|
116
116
|
alignItems: "center",
|
|
117
117
|
bgcolor: "primary.contrastText",
|
|
118
118
|
borderRadius: "50%",
|
|
119
119
|
display: "flex",
|
|
120
|
-
height:
|
|
120
|
+
height: D,
|
|
121
121
|
justifyContent: "center",
|
|
122
122
|
overflow: "hidden",
|
|
123
|
-
width:
|
|
123
|
+
width: D,
|
|
124
124
|
zIndex: 1
|
|
125
125
|
},
|
|
126
|
-
children: /* @__PURE__ */ t(
|
|
126
|
+
children: /* @__PURE__ */ t(E, {
|
|
127
127
|
name: "swap_vertical_circle",
|
|
128
|
-
size:
|
|
128
|
+
size: D * 1.2,
|
|
129
129
|
sx: {
|
|
130
130
|
color: "primary.main",
|
|
131
131
|
flexShrink: 0,
|
|
132
132
|
transform: "rotate(-90deg)"
|
|
133
133
|
}
|
|
134
134
|
})
|
|
135
|
-
}),
|
|
136
|
-
const { from_logo:
|
|
137
|
-
return /* @__PURE__ */
|
|
135
|
+
}), bt = ({ data: r, template: e }) => {
|
|
136
|
+
const { from_logo: i, to_logo: a } = r ?? {}, o = e === "SwitchDirectDeposit";
|
|
137
|
+
return /* @__PURE__ */ m(n, {
|
|
138
138
|
sx: {
|
|
139
139
|
flexShrink: 0,
|
|
140
140
|
height: mt,
|
|
@@ -146,11 +146,11 @@ var dt = 2, m = 44, B = 36, ct = 75, mt = 74, f = {
|
|
|
146
146
|
"aria-hidden": !0,
|
|
147
147
|
"data-testid": "linked-logos-ring",
|
|
148
148
|
sx: {
|
|
149
|
-
...
|
|
149
|
+
..._,
|
|
150
150
|
borderRadius: "50%",
|
|
151
151
|
height: 36,
|
|
152
152
|
width: 36,
|
|
153
|
-
...
|
|
153
|
+
...o ? {
|
|
154
154
|
border: "2px solid",
|
|
155
155
|
borderColor: "primary.light"
|
|
156
156
|
} : { bgcolor: "primary.light" }
|
|
@@ -160,7 +160,7 @@ var dt = 2, m = 44, B = 36, ct = 75, mt = 74, f = {
|
|
|
160
160
|
"aria-hidden": !0,
|
|
161
161
|
"data-testid": "linked-logos-ring",
|
|
162
162
|
sx: {
|
|
163
|
-
...
|
|
163
|
+
..._,
|
|
164
164
|
border: "1px solid",
|
|
165
165
|
borderColor: "divider",
|
|
166
166
|
borderRadius: "50%",
|
|
@@ -176,9 +176,9 @@ var dt = 2, m = 44, B = 36, ct = 75, mt = 74, f = {
|
|
|
176
176
|
position: "absolute",
|
|
177
177
|
top: 0
|
|
178
178
|
},
|
|
179
|
-
children: /* @__PURE__ */ t(
|
|
180
|
-
logo:
|
|
181
|
-
size:
|
|
179
|
+
children: /* @__PURE__ */ t(x, {
|
|
180
|
+
logo: i,
|
|
181
|
+
size: L
|
|
182
182
|
})
|
|
183
183
|
}),
|
|
184
184
|
/* @__PURE__ */ t(n, {
|
|
@@ -189,82 +189,86 @@ var dt = 2, m = 44, B = 36, ct = 75, mt = 74, f = {
|
|
|
189
189
|
position: "absolute",
|
|
190
190
|
right: 0
|
|
191
191
|
},
|
|
192
|
-
children: /* @__PURE__ */ t(
|
|
193
|
-
logo:
|
|
194
|
-
size:
|
|
192
|
+
children: /* @__PURE__ */ t(x, {
|
|
193
|
+
logo: a,
|
|
194
|
+
size: L
|
|
195
195
|
})
|
|
196
196
|
}),
|
|
197
|
-
|
|
197
|
+
o ? /* @__PURE__ */ t(vt, {}) : /* @__PURE__ */ t(_t, {})
|
|
198
198
|
]
|
|
199
199
|
});
|
|
200
|
-
},
|
|
201
|
-
const
|
|
202
|
-
if (!
|
|
203
|
-
const
|
|
200
|
+
}, yt = ({ data: r }) => {
|
|
201
|
+
const e = Z(g(r, "series"));
|
|
202
|
+
if (!e.length) return null;
|
|
203
|
+
const i = g(r, "category_guid"), a = j(e, K).slice(-3);
|
|
204
204
|
return /* @__PURE__ */ t(n, {
|
|
205
205
|
"data-testid": "compact-insight-card-bar-chart",
|
|
206
206
|
sx: { flexShrink: 0 },
|
|
207
207
|
children: /* @__PURE__ */ t(T, {
|
|
208
|
-
color: (
|
|
209
|
-
data:
|
|
208
|
+
color: (o) => i ? F(i, o) : o.palette.primary.main,
|
|
209
|
+
data: a,
|
|
210
210
|
height: pt,
|
|
211
211
|
width: gt
|
|
212
212
|
})
|
|
213
213
|
});
|
|
214
|
-
}, Ct = (
|
|
215
|
-
const
|
|
216
|
-
|
|
217
|
-
|
|
214
|
+
}, Ct = (r) => {
|
|
215
|
+
const e = Math.round(r);
|
|
216
|
+
return Math.abs(e) < 1e3 ? f(e, u.whole) : f(Math.abs(r) < 1e3 ? e : r, "0.[00]a").toUpperCase();
|
|
217
|
+
}, kt = ({ data: r }) => {
|
|
218
|
+
const e = st(), i = g(r, "main"), a = g(r, "legends"), o = S(i?.value), h = (Array.isArray(a) ? a : []).map((s) => S(s?.value));
|
|
219
|
+
if (o === void 0 || h.length !== 2 || h.some((s) => s === void 0)) return null;
|
|
220
|
+
const { colors: v, arcs: b } = U($.CreditLimit, {}, h.map((s) => ({ value: s })), e), d = typeof i?.value_type == "string" ? i.value_type : "amount";
|
|
218
221
|
return /* @__PURE__ */ t(n, {
|
|
219
222
|
"data-testid": "compact-insight-card-donut",
|
|
220
223
|
sx: { flexShrink: 0 },
|
|
221
224
|
children: /* @__PURE__ */ t(X, {
|
|
222
|
-
centerLabel:
|
|
223
|
-
centerValue: Y(
|
|
225
|
+
centerLabel: V(i?.compact_label),
|
|
226
|
+
centerValue: d === "amount" ? Ct(o) : Y(o, d, u.whole),
|
|
227
|
+
centerValueLabel: d === "amount" && Math.abs(Math.round(o)) >= 1e3 ? f(o, u.cents) : void 0,
|
|
224
228
|
compact: !0,
|
|
225
|
-
data:
|
|
226
|
-
color:
|
|
229
|
+
data: b.map((s, y) => ({
|
|
230
|
+
color: v[y],
|
|
227
231
|
value: s
|
|
228
232
|
}))
|
|
229
233
|
})
|
|
230
234
|
});
|
|
231
|
-
},
|
|
232
|
-
const
|
|
233
|
-
if (
|
|
234
|
-
const
|
|
235
|
+
}, It = 75, wt = 50, Dt = (r) => {
|
|
236
|
+
const e = V(r?.primary_text), i = S(r?.amount);
|
|
237
|
+
if (e === void 0 || i === void 0) return;
|
|
238
|
+
const a = f(i, u.cents);
|
|
235
239
|
return {
|
|
236
|
-
ariaLabel: `${
|
|
237
|
-
formattedAmount:
|
|
238
|
-
label:
|
|
239
|
-
value:
|
|
240
|
+
ariaLabel: `${e}: ${a}`,
|
|
241
|
+
formattedAmount: a,
|
|
242
|
+
label: e,
|
|
243
|
+
value: i
|
|
240
244
|
};
|
|
241
|
-
},
|
|
242
|
-
const
|
|
243
|
-
return !
|
|
245
|
+
}, St = ({ data: r }) => {
|
|
246
|
+
const e = g(r, "compact_series"), [i, a] = (Array.isArray(e) ? e.slice(0, 2) : []).map(Dt);
|
|
247
|
+
return !i || !a || i.label === a.label ? null : /* @__PURE__ */ t(n, {
|
|
244
248
|
"data-testid": "compact-insight-card-comparison",
|
|
245
249
|
sx: { flexShrink: 0 },
|
|
246
250
|
children: /* @__PURE__ */ t(T, {
|
|
247
|
-
color: (
|
|
248
|
-
data: [
|
|
249
|
-
height:
|
|
250
|
-
width:
|
|
251
|
+
color: (o) => o.palette.warning.main,
|
|
252
|
+
data: [i, a],
|
|
253
|
+
height: wt,
|
|
254
|
+
width: It
|
|
251
255
|
})
|
|
252
256
|
});
|
|
253
|
-
},
|
|
257
|
+
}, At = tt({
|
|
254
258
|
variants: {
|
|
255
|
-
category_color:
|
|
256
|
-
compact_comparison:
|
|
257
|
-
linked_logos:
|
|
258
|
-
minimal:
|
|
259
|
-
minimal_logo:
|
|
259
|
+
category_color: yt,
|
|
260
|
+
compact_comparison: St,
|
|
261
|
+
linked_logos: bt,
|
|
262
|
+
minimal: w,
|
|
263
|
+
minimal_logo: w,
|
|
260
264
|
stacked_logos: ft,
|
|
261
|
-
with_donut:
|
|
265
|
+
with_donut: kt,
|
|
262
266
|
with_illustration: xt,
|
|
263
267
|
with_warning_badge: ht
|
|
264
268
|
},
|
|
265
|
-
fallback:
|
|
269
|
+
fallback: w,
|
|
266
270
|
name: "InsightVisual"
|
|
267
|
-
}),
|
|
271
|
+
}), Et = {
|
|
268
272
|
BillAmountNotStandard: {
|
|
269
273
|
key: "in_description_cta",
|
|
270
274
|
trigger: "inDescriptionCta"
|
|
@@ -283,19 +287,19 @@ var dt = 2, m = 44, B = 36, ct = 75, mt = 74, f = {
|
|
|
283
287
|
trigger: "inDescriptionCta"
|
|
284
288
|
},
|
|
285
289
|
SwitchDirectDeposit: { key: "in_description_cta" }
|
|
286
|
-
},
|
|
287
|
-
const
|
|
288
|
-
if (
|
|
290
|
+
}, Bt = (r) => r.stopPropagation(), nr = ({ beat: r, isCtaDisabled: e = !1, onCtaClick: i, onTap: a, payload: o }) => {
|
|
291
|
+
const h = G(), { openActionDrawer: v } = P(), { description: b, instance_slot: d, primary_cta: s, title: y } = o, l = Et[o.template ?? ""], C = l ? o[l.key] : s, k = o.in_description_cta?.post_message_metadata, M = !l || !!l.trigger || !!r && !!k, N = J(g(d.data, "logo")), z = (c) => {
|
|
292
|
+
if (c.stopPropagation(), !(e || !C)) {
|
|
289
293
|
if (l) {
|
|
290
|
-
if (r && l.trigger)
|
|
294
|
+
if (r && l.trigger) v({
|
|
291
295
|
guid: r.guid,
|
|
292
296
|
trigger: l.trigger
|
|
293
297
|
});
|
|
294
|
-
else if (r &&
|
|
295
|
-
const { action: H, ...W } =
|
|
298
|
+
else if (r && k) {
|
|
299
|
+
const { action: H, ...W } = k;
|
|
296
300
|
Q({
|
|
297
301
|
beat: r,
|
|
298
|
-
stores:
|
|
302
|
+
stores: h
|
|
299
303
|
}, {
|
|
300
304
|
action: H,
|
|
301
305
|
payload: W
|
|
@@ -303,15 +307,15 @@ var dt = 2, m = 44, B = 36, ct = 75, mt = 74, f = {
|
|
|
303
307
|
}
|
|
304
308
|
return;
|
|
305
309
|
}
|
|
306
|
-
s &&
|
|
310
|
+
s && i?.(s);
|
|
307
311
|
}
|
|
308
312
|
};
|
|
309
|
-
return /* @__PURE__ */
|
|
313
|
+
return /* @__PURE__ */ m(nt, { children: [/* @__PURE__ */ m(lt, {
|
|
310
314
|
"data-testid": "compact-insight-card",
|
|
311
|
-
...
|
|
312
|
-
onClick:
|
|
313
|
-
onKeyDown: (
|
|
314
|
-
|
|
315
|
+
...a ? {
|
|
316
|
+
onClick: a,
|
|
317
|
+
onKeyDown: (c) => {
|
|
318
|
+
c.target === c.currentTarget && (c.key === "Enter" || c.key === " ") && (c.preventDefault(), a?.());
|
|
315
319
|
},
|
|
316
320
|
role: "button",
|
|
317
321
|
tabIndex: 0
|
|
@@ -322,9 +326,9 @@ var dt = 2, m = 44, B = 36, ct = 75, mt = 74, f = {
|
|
|
322
326
|
pl: 8,
|
|
323
327
|
pr: 16,
|
|
324
328
|
pt: 8,
|
|
325
|
-
...
|
|
329
|
+
...a && { cursor: "pointer" }
|
|
326
330
|
},
|
|
327
|
-
children: [/* @__PURE__ */
|
|
331
|
+
children: [/* @__PURE__ */ m(I, {
|
|
328
332
|
sx: {
|
|
329
333
|
alignItems: "center",
|
|
330
334
|
flexDirection: "row",
|
|
@@ -333,23 +337,23 @@ var dt = 2, m = 44, B = 36, ct = 75, mt = 74, f = {
|
|
|
333
337
|
pl: 8,
|
|
334
338
|
pt: 4
|
|
335
339
|
},
|
|
336
|
-
children: [/* @__PURE__ */ t(
|
|
340
|
+
children: [/* @__PURE__ */ t(R, {
|
|
337
341
|
bold: !0,
|
|
338
342
|
variant: "body1",
|
|
339
|
-
children:
|
|
343
|
+
children: y ?? ""
|
|
340
344
|
}), /* @__PURE__ */ t(n, {
|
|
341
|
-
onClick:
|
|
345
|
+
onClick: Bt,
|
|
342
346
|
sx: { display: "flex" },
|
|
343
347
|
children: /* @__PURE__ */ t(et, {})
|
|
344
348
|
})]
|
|
345
|
-
}), /* @__PURE__ */
|
|
349
|
+
}), /* @__PURE__ */ m(I, {
|
|
346
350
|
sx: {
|
|
347
351
|
alignItems: "center",
|
|
348
352
|
flexDirection: "row",
|
|
349
353
|
gap: 16,
|
|
350
354
|
pl: 8
|
|
351
355
|
},
|
|
352
|
-
children: [/* @__PURE__ */
|
|
356
|
+
children: [/* @__PURE__ */ m(I, {
|
|
353
357
|
sx: {
|
|
354
358
|
alignSelf: "stretch",
|
|
355
359
|
flex: 1,
|
|
@@ -358,7 +362,7 @@ var dt = 2, m = 44, B = 36, ct = 75, mt = 74, f = {
|
|
|
358
362
|
pt: 2
|
|
359
363
|
},
|
|
360
364
|
children: [/* @__PURE__ */ t(ot, {
|
|
361
|
-
dangerouslySetInnerHTML: { __html:
|
|
365
|
+
dangerouslySetInnerHTML: { __html: b.html_text },
|
|
362
366
|
"data-testid": "compact-insight-card-description",
|
|
363
367
|
sx: {
|
|
364
368
|
display: "-webkit-box",
|
|
@@ -373,8 +377,8 @@ var dt = 2, m = 44, B = 36, ct = 75, mt = 74, f = {
|
|
|
373
377
|
} }
|
|
374
378
|
},
|
|
375
379
|
variant: "subtitle2"
|
|
376
|
-
}),
|
|
377
|
-
"aria-disabled":
|
|
380
|
+
}), C?.label && M && /* @__PURE__ */ t(at, {
|
|
381
|
+
"aria-disabled": e,
|
|
378
382
|
onClick: z,
|
|
379
383
|
size: "small",
|
|
380
384
|
sx: {
|
|
@@ -382,29 +386,29 @@ var dt = 2, m = 44, B = 36, ct = 75, mt = 74, f = {
|
|
|
382
386
|
ml: -8,
|
|
383
387
|
my: 0,
|
|
384
388
|
px: 8,
|
|
385
|
-
...
|
|
389
|
+
...e && {
|
|
386
390
|
color: "text.disabled",
|
|
387
391
|
cursor: "default"
|
|
388
392
|
}
|
|
389
393
|
},
|
|
390
394
|
variant: "text",
|
|
391
|
-
children: /* @__PURE__ */ t(
|
|
395
|
+
children: /* @__PURE__ */ t(R, {
|
|
392
396
|
bold: !0,
|
|
393
397
|
variant: "body2",
|
|
394
|
-
children:
|
|
398
|
+
children: C.label
|
|
395
399
|
})
|
|
396
400
|
})]
|
|
397
|
-
}), /* @__PURE__ */ t(
|
|
398
|
-
data:
|
|
401
|
+
}), /* @__PURE__ */ t(At, {
|
|
402
|
+
data: d.data,
|
|
399
403
|
logo: N,
|
|
400
|
-
template:
|
|
401
|
-
variant:
|
|
404
|
+
template: o.template,
|
|
405
|
+
variant: d.variant
|
|
402
406
|
})]
|
|
403
407
|
})]
|
|
404
408
|
}), r && /* @__PURE__ */ t(rt, { beat: r })] });
|
|
405
409
|
};
|
|
406
410
|
export {
|
|
407
|
-
|
|
411
|
+
nr as default
|
|
408
412
|
};
|
|
409
413
|
|
|
410
414
|
//# sourceMappingURL=CompactInsightCard.es.js.map
|