@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.
Files changed (259) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +2 -0
  3. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.es.js +39 -23
  4. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.es.js.map +1 -1
  5. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader.d.ts +3 -1
  6. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader.es.js +37 -33
  7. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader.es.js.map +1 -1
  8. package/dist/accounts/utils/AccountFields.d.ts +3 -1
  9. package/dist/accounts/utils/AccountFields.es.js +39 -39
  10. package/dist/accounts/utils/AccountFields.es.js.map +1 -1
  11. package/dist/common/components/charts/LineChart.d.ts +4 -0
  12. package/dist/common/components/charts/LineChart.es.js +114 -112
  13. package/dist/common/components/charts/LineChart.es.js.map +1 -1
  14. package/dist/common/components/charts/linechart/CustomLegend.es.js +24 -21
  15. package/dist/common/components/charts/linechart/CustomLegend.es.js.map +1 -1
  16. package/dist/core/types/Insights.d.ts +9 -1
  17. package/dist/core/types/Insights.es.js.map +1 -1
  18. package/dist/core/types/localization/InsightsFeedCopy.d.ts +42 -0
  19. package/dist/core/types/localization/index.d.ts +1 -1
  20. package/dist/insights-v2/actionBlocks/AccountDetailsBlock/AccountDetailsBlock.d.ts +7 -1
  21. package/dist/insights-v2/actionBlocks/AccountDetailsBlock/AccountDetailsBlock.es.js +39 -20
  22. package/dist/insights-v2/actionBlocks/AccountDetailsBlock/AccountDetailsBlock.es.js.map +1 -1
  23. package/dist/insights-v2/actionBlocks/AccountDetailsBlock/SpendVsIncomeChart.d.ts +4 -0
  24. package/dist/insights-v2/actionBlocks/AccountDetailsBlock/SpendVsIncomeChart.es.js +42 -0
  25. package/dist/insights-v2/actionBlocks/AccountDetailsBlock/SpendVsIncomeChart.es.js.map +1 -0
  26. package/dist/insights-v2/actionBlocks/AccountDetailsBlock/SpendVsPaymentChart.d.ts +7 -0
  27. package/dist/insights-v2/actionBlocks/AccountDetailsBlock/SpendVsPaymentChart.es.js +54 -0
  28. package/dist/insights-v2/actionBlocks/AccountDetailsBlock/SpendVsPaymentChart.es.js.map +1 -0
  29. package/dist/insights-v2/actionBlocks/AmountInputModalBlock/AmountInputModalBlock.es.js +10 -10
  30. package/dist/insights-v2/actionBlocks/AmountInputModalBlock/CreateBudgetDialog.es.js +24 -23
  31. package/dist/insights-v2/actionBlocks/AmountInputModalBlock/CreateBudgetDialog.es.js.map +1 -1
  32. package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/BudgetDetailsBlock.es.js +75 -73
  33. package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/BudgetDetailsBlock.es.js.map +1 -1
  34. package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/BudgetSummary.d.ts +5 -1
  35. package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/BudgetSummary.es.js +21 -21
  36. package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/BudgetSummary.es.js.map +1 -1
  37. package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/layout.d.ts +11 -0
  38. package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/layout.es.js +65 -58
  39. package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/layout.es.js.map +1 -1
  40. package/dist/insights-v2/actionBlocks/EmergencySavingsBlock/EmergencySavingsV2.es.js +17 -17
  41. package/dist/insights-v2/actionBlocks/EmergencySavingsBlock/EmergencySavingsV2.es.js.map +1 -1
  42. package/dist/insights-v2/actionBlocks/MakeTransferActionBlock/BalanceStepper.es.js +9 -10
  43. package/dist/insights-v2/actionBlocks/MakeTransferActionBlock/BalanceStepper.es.js.map +1 -1
  44. package/dist/insights-v2/actionBlocks/MakeTransferActionBlock/SaveEnoughToLiveOnBottomSection.es.js +21 -22
  45. package/dist/insights-v2/actionBlocks/MakeTransferActionBlock/SaveEnoughToLiveOnBottomSection.es.js.map +1 -1
  46. package/dist/insights-v2/actionBlocks/PayoffCalculatorBlock/PayoffCalculatorBlock.es.js +35 -35
  47. package/dist/insights-v2/actionBlocks/PayoffCalculatorBlock/PayoffCalculatorBlock.es.js.map +1 -1
  48. package/dist/insights-v2/actionBlocks/PayoffCalculatorBlock/PayoffResults.d.ts +1 -1
  49. package/dist/insights-v2/actionBlocks/PayoffCalculatorBlock/PayoffResults.es.js +44 -49
  50. package/dist/insights-v2/actionBlocks/PayoffCalculatorBlock/PayoffResults.es.js.map +1 -1
  51. package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/PayoffStrategiesBlock.d.ts +1 -1
  52. package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/PayoffStrategiesBlock.es.js +19 -16
  53. package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/PayoffStrategiesBlock.es.js.map +1 -1
  54. package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/PayoffStrategiesContent.d.ts +2 -2
  55. package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/PayoffStrategiesContent.es.js +212 -166
  56. package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/PayoffStrategiesContent.es.js.map +1 -1
  57. package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/StepIcon.d.ts +4 -0
  58. package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/StepIcon.es.js +24 -0
  59. package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/StepIcon.es.js.map +1 -0
  60. package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/layout.d.ts +6 -5
  61. package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/layout.es.js +38 -38
  62. package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/layout.es.js.map +1 -1
  63. package/dist/insights-v2/actionBlocks/SubscriptionStatusModalBlock.es.js +1 -1
  64. package/dist/insights-v2/actionBlocks/TopMerchantsBlock/TopMerchantsBlock.d.ts +1 -5
  65. package/dist/insights-v2/actionBlocks/TopMerchantsBlock/TopMerchantsBlock.es.js +37 -36
  66. package/dist/insights-v2/actionBlocks/TopMerchantsBlock/TopMerchantsBlock.es.js.map +1 -1
  67. package/dist/insights-v2/actionBlocks/TransactionDetailsBlock/layout.d.ts +9 -11
  68. package/dist/insights-v2/actionBlocks/TransactionDetailsBlock/layout.es.js +12 -6
  69. package/dist/insights-v2/actionBlocks/TransactionDetailsBlock/layout.es.js.map +1 -1
  70. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionDrillDown.es.js +46 -40
  71. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionDrillDown.es.js.map +1 -1
  72. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionHistoryBlock.es.js +141 -126
  73. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionHistoryBlock.es.js.map +1 -1
  74. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/layout.d.ts +8 -1
  75. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/layout.es.js +243 -200
  76. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/layout.es.js.map +1 -1
  77. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/utils.d.ts +2 -0
  78. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/utils.es.js.map +1 -1
  79. package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListBlock.es.js +54 -53
  80. package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListBlock.es.js.map +1 -1
  81. package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListHeaderIconTile.d.ts +6 -1
  82. package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListHeaderIconTile.es.js +14 -13
  83. package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListHeaderIconTile.es.js.map +1 -1
  84. package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListSummaryCard.d.ts +4 -3
  85. package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListSummaryCard.es.js +24 -21
  86. package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListSummaryCard.es.js.map +1 -1
  87. package/dist/insights-v2/actionBlocks/TransactionListBlock/layout.d.ts +14 -4
  88. package/dist/insights-v2/actionBlocks/TransactionListBlock/layout.es.js +79 -67
  89. package/dist/insights-v2/actionBlocks/TransactionListBlock/layout.es.js.map +1 -1
  90. package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/DonutChart.d.ts +3 -1
  91. package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/DonutChart.es.js +48 -32
  92. package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/DonutChart.es.js.map +1 -1
  93. package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/DonutChartBlock.es.js +19 -14
  94. package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/DonutChartBlock.es.js.map +1 -1
  95. package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/layout.d.ts +4 -0
  96. package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/layout.es.js +19 -15
  97. package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/layout.es.js.map +1 -1
  98. package/dist/insights-v2/blocks/ChartBlocks/DoubleBarChartBlock/DoubleBarChartBlock.es.js +26 -19
  99. package/dist/insights-v2/blocks/ChartBlocks/DoubleBarChartBlock/DoubleBarChartBlock.es.js.map +1 -1
  100. package/dist/insights-v2/blocks/ChartBlocks/DoubleBarChartBlock/layout.d.ts +1 -0
  101. package/dist/insights-v2/blocks/ChartBlocks/DoubleBarChartBlock/layout.es.js +17 -21
  102. package/dist/insights-v2/blocks/ChartBlocks/DoubleBarChartBlock/layout.es.js.map +1 -1
  103. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/StepChartBlock.d.ts +1 -1
  104. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/StepChartBlock.es.js +11 -11
  105. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/StepChartBlock.es.js.map +1 -1
  106. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/index.es.js +15 -11
  107. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/index.es.js.map +1 -1
  108. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/layout.d.ts +20 -0
  109. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/layout.es.js +21 -0
  110. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/layout.es.js.map +1 -0
  111. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/MilestoneProgress.d.ts +2 -4
  112. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/MilestoneProgress.es.js +78 -82
  113. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/MilestoneProgress.es.js.map +1 -1
  114. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/WithText.d.ts +10 -2
  115. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/WithText.es.js +115 -54
  116. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/WithText.es.js.map +1 -1
  117. package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/AccountBlock.d.ts +1 -1
  118. package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/AccountBlock.es.js +37 -36
  119. package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/AccountBlock.es.js.map +1 -1
  120. package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/layout.es.js +27 -22
  121. package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/layout.es.js.map +1 -1
  122. package/dist/insights-v2/blocks/ComponentBlocks/BudgetBlock/BudgetBlock.es.js +8 -8
  123. package/dist/insights-v2/blocks/ComponentBlocks/CompactDirectDepositBlock/CompactDirectDepositBlock.d.ts +7 -0
  124. package/dist/insights-v2/blocks/ComponentBlocks/CompactDirectDepositBlock/CompactDirectDepositBlock.es.js +46 -0
  125. package/dist/insights-v2/blocks/ComponentBlocks/CompactDirectDepositBlock/CompactDirectDepositBlock.es.js.map +1 -0
  126. package/dist/insights-v2/blocks/ComponentBlocks/CompactDirectDepositBlock/index.d.ts +3 -0
  127. package/dist/insights-v2/blocks/ComponentBlocks/CompactDirectDepositBlock/layout.d.ts +13 -0
  128. package/dist/insights-v2/blocks/ComponentBlocks/CompactDirectDepositBlock/layout.es.js +22 -0
  129. package/dist/insights-v2/blocks/ComponentBlocks/CompactDirectDepositBlock/layout.es.js.map +1 -0
  130. package/dist/insights-v2/blocks/ComponentBlocks/DetailedAccountBlock/DetailedAccountBlock.es.js +29 -21
  131. package/dist/insights-v2/blocks/ComponentBlocks/DetailedAccountBlock/DetailedAccountBlock.es.js.map +1 -1
  132. package/dist/insights-v2/blocks/ComponentBlocks/DetailedAccountBlock/layout.d.ts +0 -2
  133. package/dist/insights-v2/blocks/ComponentBlocks/DetailedAccountBlock/layout.es.js +17 -21
  134. package/dist/insights-v2/blocks/ComponentBlocks/DetailedAccountBlock/layout.es.js.map +1 -1
  135. package/dist/insights-v2/blocks/ComponentBlocks/FeeChargedBlock/FeeChargedBlock.es.js +5 -6
  136. package/dist/insights-v2/blocks/ComponentBlocks/FeeChargedBlock/FeeChargedBlock.es.js.map +1 -1
  137. package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/FeedbackBlock.d.ts +3 -7
  138. package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/FeedbackBlock.es.js +120 -306
  139. package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/FeedbackBlock.es.js.map +1 -1
  140. package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/RatingScale.d.ts +17 -0
  141. package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/RatingScale.es.js +93 -0
  142. package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/RatingScale.es.js.map +1 -0
  143. package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/StepBar.d.ts +5 -0
  144. package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/StepBar.es.js +21 -0
  145. package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/StepBar.es.js.map +1 -0
  146. package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/SurveyResult.d.ts +18 -0
  147. package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/SurveyResult.es.js +71 -0
  148. package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/SurveyResult.es.js.map +1 -0
  149. package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/survey.d.ts +82 -8
  150. package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/survey.es.js +66 -15
  151. package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/survey.es.js.map +1 -1
  152. package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/MerchantBlock.es.js +46 -63
  153. package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/MerchantBlock.es.js.map +1 -1
  154. package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/layout.d.ts +3 -3
  155. package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/layout.es.js +44 -53
  156. package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/layout.es.js.map +1 -1
  157. package/dist/insights-v2/blocks/ComponentBlocks/QuizBlock/QuizBlock.d.ts +1 -1
  158. package/dist/insights-v2/blocks/ComponentBlocks/QuizBlock/QuizBlock.es.js +30 -31
  159. package/dist/insights-v2/blocks/ComponentBlocks/QuizBlock/QuizBlock.es.js.map +1 -1
  160. package/dist/insights-v2/blocks/ComponentBlocks/SaveExtraBlock/SaveExtraBlock.es.js +25 -20
  161. package/dist/insights-v2/blocks/ComponentBlocks/SaveExtraBlock/SaveExtraBlock.es.js.map +1 -1
  162. package/dist/insights-v2/blocks/ComponentBlocks/SaveExtraBlock/layout.d.ts +22 -0
  163. package/dist/insights-v2/blocks/ComponentBlocks/SaveExtraBlock/layout.es.js +24 -0
  164. package/dist/insights-v2/blocks/ComponentBlocks/SaveExtraBlock/layout.es.js.map +1 -0
  165. package/dist/insights-v2/blocks/ComponentBlocks/StrategiesBlock/StrategiesBlock.d.ts +7 -0
  166. package/dist/insights-v2/blocks/ComponentBlocks/StrategiesBlock/StrategiesBlock.es.js +89 -0
  167. package/dist/insights-v2/blocks/ComponentBlocks/StrategiesBlock/StrategiesBlock.es.js.map +1 -0
  168. package/dist/insights-v2/blocks/ComponentBlocks/StrategiesBlock/index.d.ts +1 -0
  169. package/dist/insights-v2/blocks/ComponentBlocks/StrategiesBlock/layout.d.ts +43 -0
  170. package/dist/insights-v2/blocks/ComponentBlocks/StrategiesBlock/layout.es.js +28 -0
  171. package/dist/insights-v2/blocks/ComponentBlocks/StrategiesBlock/layout.es.js.map +1 -0
  172. package/dist/insights-v2/blocks/ComponentBlocks/TransactionBlock/TransactionBlock.es.js +54 -53
  173. package/dist/insights-v2/blocks/ComponentBlocks/TransactionBlock/TransactionBlock.es.js.map +1 -1
  174. package/dist/insights-v2/blocks/ComponentBlocks/TransactionBlock/layout.d.ts +7 -3
  175. package/dist/insights-v2/blocks/ComponentBlocks/TransactionBlock/layout.es.js +20 -11
  176. package/dist/insights-v2/blocks/ComponentBlocks/TransactionBlock/layout.es.js.map +1 -1
  177. package/dist/insights-v2/blocks/ComponentBlocks/WeeklySmallPurchasesBlock/WeeklySmallPurchasesBlock.es.js +29 -28
  178. package/dist/insights-v2/blocks/ComponentBlocks/WeeklySmallPurchasesBlock/WeeklySmallPurchasesBlock.es.js.map +1 -1
  179. package/dist/insights-v2/blocks/ComponentBlocks/index.d.ts +2 -0
  180. package/dist/insights-v2/blocks/ImageBlocks/ImageBlock.es.js +6 -5
  181. package/dist/insights-v2/blocks/ImageBlocks/ImageBlock.es.js.map +1 -1
  182. package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/images/FederalBankHoliday.es.js +117 -71
  183. package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/images/FederalBankHoliday.es.js.map +1 -1
  184. package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/layout.d.ts +1 -1
  185. package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/layout.es.js +10 -7
  186. package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/layout.es.js.map +1 -1
  187. package/dist/insights-v2/components/AccountHeroCard.d.ts +3 -1
  188. package/dist/insights-v2/components/AccountHeroCard.es.js.map +1 -1
  189. package/dist/insights-v2/components/BaseLayout.d.ts +3 -1
  190. package/dist/insights-v2/components/BaseLayout.es.js +134 -119
  191. package/dist/insights-v2/components/BaseLayout.es.js.map +1 -1
  192. package/dist/insights-v2/components/CompactDirectDepositCard.d.ts +28 -0
  193. package/dist/insights-v2/components/CompactDirectDepositCard.es.js +78 -0
  194. package/dist/insights-v2/components/CompactDirectDepositCard.es.js.map +1 -0
  195. package/dist/insights-v2/components/CompactInsightCard.es.js +122 -118
  196. package/dist/insights-v2/components/CompactInsightCard.es.js.map +1 -1
  197. package/dist/insights-v2/components/DirectDepositCard.d.ts +6 -1
  198. package/dist/insights-v2/components/DirectDepositCard.es.js +24 -22
  199. package/dist/insights-v2/components/DirectDepositCard.es.js.map +1 -1
  200. package/dist/insights-v2/components/LoadingCard.es.js +13 -9
  201. package/dist/insights-v2/components/LoadingCard.es.js.map +1 -1
  202. package/dist/insights-v2/components/LogoFromGuid.d.ts +1 -1
  203. package/dist/insights-v2/components/LogoFromGuid.es.js.map +1 -1
  204. package/dist/insights-v2/components/MerchantHighlightCard.es.js +4 -4
  205. package/dist/insights-v2/components/SaveAnExtraCard.d.ts +4 -1
  206. package/dist/insights-v2/components/SaveAnExtraCard.es.js +32 -20
  207. package/dist/insights-v2/components/SaveAnExtraCard.es.js.map +1 -1
  208. package/dist/insights-v2/components/SubTabs.d.ts +2 -1
  209. package/dist/insights-v2/components/SubTabs.es.js +29 -24
  210. package/dist/insights-v2/components/SubTabs.es.js.map +1 -1
  211. package/dist/insights-v2/components/TransactionListCard.d.ts +3 -1
  212. package/dist/insights-v2/components/TransactionListCard.es.js +39 -37
  213. package/dist/insights-v2/components/TransactionListCard.es.js.map +1 -1
  214. package/dist/insights-v2/components/TransferLogoCard.es.js +1 -0
  215. package/dist/insights-v2/components/TransferLogoCard.es.js.map +1 -1
  216. package/dist/insights-v2/components/UpcomingBillCard.es.js +39 -35
  217. package/dist/insights-v2/components/UpcomingBillCard.es.js.map +1 -1
  218. package/dist/insights-v2/components/celebrationGradients.d.ts +17 -8
  219. package/dist/insights-v2/components/celebrationGradients.es.js +14 -14
  220. package/dist/insights-v2/components/celebrationGradients.es.js.map +1 -1
  221. package/dist/insights-v2/components/chartblocks/ChartLegend.es.js +16 -10
  222. package/dist/insights-v2/components/chartblocks/ChartLegend.es.js.map +1 -1
  223. package/dist/insights-v2/components/chartblocks/DoubleBarChart.d.ts +10 -4
  224. package/dist/insights-v2/components/chartblocks/DoubleBarChart.es.js +62 -61
  225. package/dist/insights-v2/components/chartblocks/DoubleBarChart.es.js.map +1 -1
  226. package/dist/insights-v2/components/chartblocks/EmptyBarChart.es.js +13 -6
  227. package/dist/insights-v2/components/chartblocks/EmptyBarChart.es.js.map +1 -1
  228. package/dist/insights-v2/components/shared/images/DesignateEmergencySavings.es.js +2 -3
  229. package/dist/insights-v2/components/shared/images/DesignateEmergencySavings.es.js.map +1 -1
  230. package/dist/insights-v2/components/statusIcon.d.ts +2 -1
  231. package/dist/insights-v2/components/statusIcon.es.js +10 -8
  232. package/dist/insights-v2/components/statusIcon.es.js.map +1 -1
  233. package/dist/insights-v2/ctaActions/ctaConfig.es.js +19 -17
  234. package/dist/insights-v2/ctaActions/ctaConfig.es.js.map +1 -1
  235. package/dist/insights-v2/ctaActions/ctaHandlers.d.ts +5 -1
  236. package/dist/insights-v2/ctaActions/ctaHandlers.es.js +71 -54
  237. package/dist/insights-v2/ctaActions/ctaHandlers.es.js.map +1 -1
  238. package/dist/insights-v2/ctaActions/ctaPostMessages.es.js +41 -24
  239. package/dist/insights-v2/ctaActions/ctaPostMessages.es.js.map +1 -1
  240. package/dist/insights-v2/ctaActions/feedbackSurvey.d.ts +9 -0
  241. package/dist/insights-v2/ctaActions/feedbackSurvey.es.js +51 -0
  242. package/dist/insights-v2/ctaActions/feedbackSurvey.es.js.map +1 -0
  243. package/dist/insights-v2/ctaActions/runCtaAction.es.js +36 -35
  244. package/dist/insights-v2/ctaActions/runCtaAction.es.js.map +1 -1
  245. package/dist/insights-v2/ctaActions/types.d.ts +7 -0
  246. package/dist/insights-v2/index.es.js +126 -120
  247. package/dist/insights-v2/mappings/actionBlocksKey.d.ts +1 -1
  248. package/dist/insights-v2/mappings/actionBlocksKey.es.js +1 -1
  249. package/dist/insights-v2/mappings/actionBlocksKey.es.js.map +1 -1
  250. package/dist/insights-v2/mappings/blocks.es.js +126 -122
  251. package/dist/insights-v2/mappings/blocks.es.js.map +1 -1
  252. package/dist/microinsights/MicroCardTemplate.es.js +1 -1
  253. package/dist/microinsights/MicroCardTemplate.es.js.map +1 -1
  254. package/dist/microinsights/cards/InsightCard.es.js +53 -53
  255. package/dist/microinsights/cards/InsightCard.es.js.map +1 -1
  256. package/package.json +1 -1
  257. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/index.d.ts +0 -13
  258. package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/images/DesignateEmergencySavingsAccount.es.js +0 -296
  259. 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 p } from "../../core/types/Insights.es.js";
3
- import { CURRENCY_FORMAT as R, formatCurrency as M } from "../../core/utils/NumberFormatting.es.js";
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 L, asNumber as D } from "../blocks/slotReaders.es.js";
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 u from "./LogoFromGuid.es.js";
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 w from "./BadgedTile.es.js";
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 V from "./StatusBadge.es.js";
21
- import C from "@mui/material/Stack";
22
- import { P as ot, Text as E } from "@mxenabled/mxui";
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 S } from "@mxenabled/mx-icons";
25
- import { Fragment as nt, jsx as t, jsxs as c } from "react/jsx-runtime";
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, m = 44, B = 36, ct = 75, mt = 74, f = {
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, A = ({ logo: r }) => r ? /* @__PURE__ */ t(u, {
34
+ }, pt = 54, gt = 75, B = ({ logo: r }) => r ? /* @__PURE__ */ t(x, {
35
35
  logo: r,
36
- size: m
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: m,
43
+ height: p,
44
44
  justifyContent: "center",
45
- width: m
45
+ width: p
46
46
  },
47
- children: /* @__PURE__ */ t(S, {
47
+ children: /* @__PURE__ */ t(E, {
48
48
  color: "primary",
49
49
  fill: !0,
50
50
  name: "lightbulb",
51
51
  size: 24
52
52
  })
53
- }), k = ({ logo: r }) => /* @__PURE__ */ t(w, {
54
- center: /* @__PURE__ */ t(A, { logo: r }),
55
- size: m,
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(w, {
58
- center: /* @__PURE__ */ t(A, { logo: r }),
59
- size: m,
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(V, { tone: "warning" })
62
- }), ut = 24, ft = ({ logo: r }) => /* @__PURE__ */ t(w, {
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(u, {
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(A, { logo: r }),
81
- size: m,
80
+ center: /* @__PURE__ */ t(B, { logo: r }),
81
+ size: p,
82
82
  sx: { flexShrink: 0 },
83
- topRight: /* @__PURE__ */ t(V, { tone: "error" })
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
- }), I = 24, _t = () => /* @__PURE__ */ t(n, {
91
+ }), D = 24, _t = () => /* @__PURE__ */ t(n, {
92
92
  "aria-hidden": !0,
93
93
  "data-testid": "linked-logos-badge",
94
94
  sx: {
95
- ...f,
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(S, {
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
- ...f,
115
+ ..._,
116
116
  alignItems: "center",
117
117
  bgcolor: "primary.contrastText",
118
118
  borderRadius: "50%",
119
119
  display: "flex",
120
- height: I,
120
+ height: D,
121
121
  justifyContent: "center",
122
122
  overflow: "hidden",
123
- width: I,
123
+ width: D,
124
124
  zIndex: 1
125
125
  },
126
- children: /* @__PURE__ */ t(S, {
126
+ children: /* @__PURE__ */ t(E, {
127
127
  name: "swap_vertical_circle",
128
- size: I * 1.2,
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
- }), yt = ({ data: r, template: o }) => {
136
- const { from_logo: e, to_logo: i } = r ?? {}, a = o === "SwitchDirectDeposit";
137
- return /* @__PURE__ */ c(n, {
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
- ...f,
149
+ ..._,
150
150
  borderRadius: "50%",
151
151
  height: 36,
152
152
  width: 36,
153
- ...a ? {
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
- ...f,
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(u, {
180
- logo: e,
181
- size: B
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(u, {
193
- logo: i,
194
- size: B
192
+ children: /* @__PURE__ */ t(x, {
193
+ logo: a,
194
+ size: L
195
195
  })
196
196
  }),
197
- a ? /* @__PURE__ */ t(vt, {}) : /* @__PURE__ */ t(_t, {})
197
+ o ? /* @__PURE__ */ t(vt, {}) : /* @__PURE__ */ t(_t, {})
198
198
  ]
199
199
  });
200
- }, bt = ({ data: r }) => {
201
- const o = Z(p(r, "series"));
202
- if (!o.length) return null;
203
- const e = p(r, "category_guid"), i = j(o, K).slice(-3);
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: (a) => e ? F(e, a) : a.palette.primary.main,
209
- data: i,
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 = ({ data: r }) => {
215
- const o = st(), e = p(r, "main"), i = p(r, "legends"), a = D(e?.value), g = (Array.isArray(i) ? i : []).map((s) => D(s?.value));
216
- if (a === void 0 || g.length !== 2 || g.some((s) => s === void 0)) return null;
217
- const { colors: x, arcs: _ } = U($.CreditLimit, {}, g.map((s) => ({ value: s })), o), h = typeof e?.value_type == "string" ? e.value_type : "amount";
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: L(e?.compact_label),
223
- centerValue: Y(a, h, R.whole),
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: _.map((s, v) => ({
226
- color: x[v],
229
+ data: b.map((s, y) => ({
230
+ color: v[y],
227
231
  value: s
228
232
  }))
229
233
  })
230
234
  });
231
- }, kt = 75, It = 50, Dt = (r) => {
232
- const o = L(r?.primary_text), e = D(r?.amount);
233
- if (o === void 0 || e === void 0) return;
234
- const i = M(e, R.cents);
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: `${o}: ${i}`,
237
- formattedAmount: i,
238
- label: o,
239
- value: e
240
+ ariaLabel: `${e}: ${a}`,
241
+ formattedAmount: a,
242
+ label: e,
243
+ value: i
240
244
  };
241
- }, wt = ({ data: r }) => {
242
- const o = p(r, "compact_series"), [e, i] = (Array.isArray(o) ? o.slice(0, 2) : []).map(Dt);
243
- return !e || !i || e.label === i.label ? null : /* @__PURE__ */ t(n, {
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: (a) => a.palette.warning.main,
248
- data: [e, i],
249
- height: It,
250
- width: kt
251
+ color: (o) => o.palette.warning.main,
252
+ data: [i, a],
253
+ height: wt,
254
+ width: It
251
255
  })
252
256
  });
253
- }, St = tt({
257
+ }, At = tt({
254
258
  variants: {
255
- category_color: bt,
256
- compact_comparison: wt,
257
- linked_logos: yt,
258
- minimal: k,
259
- minimal_logo: k,
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: Ct,
265
+ with_donut: kt,
262
266
  with_illustration: xt,
263
267
  with_warning_badge: ht
264
268
  },
265
- fallback: k,
269
+ fallback: w,
266
270
  name: "InsightVisual"
267
- }), At = {
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
- }, Et = (r) => r.stopPropagation(), ar = ({ beat: r, isCtaDisabled: o = !1, onCtaClick: e, onTap: i, payload: a }) => {
287
- const g = G(), { openActionDrawer: x } = P(), { description: _, instance_slot: h, primary_cta: s, title: v } = a, l = At[a.template ?? ""], y = l ? a[l.key] : s, b = a.in_description_cta?.post_message_metadata, O = !l || !!l.trigger || !!r && !!b, N = J(p(h.data, "logo")), z = (d) => {
288
- if (d.stopPropagation(), !(o || !y)) {
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) x({
294
+ if (r && l.trigger) v({
291
295
  guid: r.guid,
292
296
  trigger: l.trigger
293
297
  });
294
- else if (r && b) {
295
- const { action: H, ...W } = b;
298
+ else if (r && k) {
299
+ const { action: H, ...W } = k;
296
300
  Q({
297
301
  beat: r,
298
- stores: g
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 && e?.(s);
310
+ s && i?.(s);
307
311
  }
308
312
  };
309
- return /* @__PURE__ */ c(nt, { children: [/* @__PURE__ */ c(lt, {
313
+ return /* @__PURE__ */ m(nt, { children: [/* @__PURE__ */ m(lt, {
310
314
  "data-testid": "compact-insight-card",
311
- ...i ? {
312
- onClick: i,
313
- onKeyDown: (d) => {
314
- d.target === d.currentTarget && (d.key === "Enter" || d.key === " ") && (d.preventDefault(), i?.());
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
- ...i && { cursor: "pointer" }
329
+ ...a && { cursor: "pointer" }
326
330
  },
327
- children: [/* @__PURE__ */ c(C, {
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(E, {
340
+ children: [/* @__PURE__ */ t(R, {
337
341
  bold: !0,
338
342
  variant: "body1",
339
- children: v ?? ""
343
+ children: y ?? ""
340
344
  }), /* @__PURE__ */ t(n, {
341
- onClick: Et,
345
+ onClick: Bt,
342
346
  sx: { display: "flex" },
343
347
  children: /* @__PURE__ */ t(et, {})
344
348
  })]
345
- }), /* @__PURE__ */ c(C, {
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__ */ c(C, {
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: _.html_text },
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
- }), y?.label && O && /* @__PURE__ */ t(at, {
377
- "aria-disabled": o,
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
- ...o && {
389
+ ...e && {
386
390
  color: "text.disabled",
387
391
  cursor: "default"
388
392
  }
389
393
  },
390
394
  variant: "text",
391
- children: /* @__PURE__ */ t(E, {
395
+ children: /* @__PURE__ */ t(R, {
392
396
  bold: !0,
393
397
  variant: "body2",
394
- children: y.label
398
+ children: C.label
395
399
  })
396
400
  })]
397
- }), /* @__PURE__ */ t(St, {
398
- data: h.data,
401
+ }), /* @__PURE__ */ t(At, {
402
+ data: d.data,
399
403
  logo: N,
400
- template: a.template,
401
- variant: h.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
- ar as default
411
+ nr as default
408
412
  };
409
413
 
410
414
  //# sourceMappingURL=CompactInsightCard.es.js.map