@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,51 @@
1
+ import { resolveAnalyticsEvent as b } from "../analytics/resolveAnalyticsEvent.es.js";
2
+ import { SURVEY_CONTEXT as c, dismissSurveyBeat as f, surveyEvents as m, surveyOf as n, surveyState as S } from "../blocks/ComponentBlocks/FeedbackBlock/survey.es.js";
3
+ var a = ({ beat: e, stores: t }) => S(t.insightsV2Store.beatContext[e.guid], n(e)?.steps.length), d = (e) => {
4
+ const { step: t, answers: r } = a(e), s = r[t];
5
+ return typeof s == "string" ? s.trim() === "" : s === void 0;
6
+ }, u = (e) => {
7
+ const t = n(e.beat)?.steps.length ?? 0;
8
+ return a(e).step >= t - 1;
9
+ }, v = ({ beat: e, stores: t, hostActions: r }, s) => {
10
+ try {
11
+ r.onAnalyticsEvent?.(b(s, e));
12
+ } catch (o) {
13
+ t.captureException(o, {
14
+ store: "ctaActions",
15
+ template: e.template,
16
+ handler: "feedbackSurvey"
17
+ });
18
+ }
19
+ }, w = async (e) => {
20
+ const t = n(e.beat);
21
+ if (!t) throw new Error("feedback_block survey is incomplete");
22
+ if (d(e)) return;
23
+ const { step: r, answers: s } = a(e);
24
+ if (!u(e)) {
25
+ e.stores.insightsV2Store.setBeatContext(e.beat.guid, { [c.STEP]: r + 1 });
26
+ return;
27
+ }
28
+ const o = t.steps.map((l, y) => {
29
+ const i = s[y];
30
+ return l.type === "text" && typeof i == "string" ? i.trim().slice(0, 500) : i;
31
+ }), p = m(t, e.stores.appDataStore.appConfig?.postHogPublicKey);
32
+ v(e, p.sent(o)), v(e, p.dismissed), await f({
33
+ beatGuid: e.beat.guid,
34
+ stores: e.stores,
35
+ onCtaAction: e.hostActions.onCtaAction
36
+ });
37
+ }, E = {
38
+ run: "answerFeedbackSurvey",
39
+ disabledWhen: d,
40
+ label: (e) => u(e) ? n(e.beat)?.submit_label : void 0,
41
+ presenter: (e) => !n(e.beat) || a(e).phase ? {
42
+ kind: "hidden",
43
+ hideAll: !0
44
+ } : void 0
45
+ };
46
+ export {
47
+ w as answerFeedbackSurvey,
48
+ E as feedbackSurveyStep
49
+ };
50
+
51
+ //# sourceMappingURL=feedbackSurvey.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feedbackSurvey.es.js","names":[],"sources":["../../../src/insights-v2/ctaActions/feedbackSurvey.ts"],"sourcesContent":["import type { AnalyticsEventConfigEntry } from '../analytics/analyticsEventsConfig'\nimport { resolveAnalyticsEvent } from '../analytics/resolveAnalyticsEvent'\nimport {\n dismissSurveyBeat,\n SURVEY_CONTEXT,\n TEXT_MAX_LENGTH,\n surveyEvents,\n surveyOf,\n surveyState,\n} from '../blocks/ComponentBlocks/FeedbackBlock/survey'\nimport type { CtaContext, CtaStateContext, CtaStep } from './types'\n\ntype StateCtx = Pick<CtaStateContext, 'beat' | 'stores'>\n\nconst stateOf = ({ beat, stores }: StateCtx) =>\n surveyState(stores.insightsV2Store.beatContext[beat.guid], surveyOf(beat)?.steps.length)\n\n// The step needs its answer: a rating, or text with something other than spaces in it.\nconst isUnanswered = (ctx: StateCtx) => {\n const { step, answers } = stateOf(ctx)\n const answer = answers[step]\n return typeof answer === 'string' ? answer.trim() === '' : answer === undefined\n}\n\nconst isLastStep = (ctx: StateCtx) => {\n const steps = surveyOf(ctx.beat)?.steps.length ?? 0\n return stateOf(ctx).step >= steps - 1\n}\n\n// As subscriptionAnswer's reportEvent: sendCtaAnalytics lives in runCtaAction, which imports this module.\nconst sendEvent = ({ beat, stores, hostActions }: CtaContext, event: AnalyticsEventConfigEntry) => {\n try {\n hostActions.onAnalyticsEvent?.(resolveAnalyticsEvent(event, beat))\n } catch (error) {\n stores.captureException(error, {\n store: 'ctaActions',\n template: beat.template,\n handler: 'feedbackSurvey',\n })\n }\n}\n\n/** Continue moves to the next step; Submit sends the answers once, then dismisses. */\nexport const answerFeedbackSurvey = async (ctx: CtaContext) => {\n const survey = surveyOf(ctx.beat)\n if (!survey) throw new Error('feedback_block survey is incomplete')\n\n // The runner does not check `disabledWhen`, so a press the card would not allow stops here.\n if (isUnanswered(ctx)) return\n\n const { step, answers } = stateOf(ctx)\n\n if (!isLastStep(ctx)) {\n ctx.stores.insightsV2Store.setBeatContext(ctx.beat.guid, { [SURVEY_CONTEXT.STEP]: step + 1 })\n return\n }\n\n const responses = survey.steps.map((surveyStep, index) => {\n const answer = answers[index]\n return surveyStep.type === 'text' && typeof answer === 'string'\n ? answer.trim().slice(0, TEXT_MAX_LENGTH)\n : answer\n })\n const events = surveyEvents(survey, ctx.stores.appDataStore.appConfig?.postHogPublicKey)\n sendEvent(ctx, events.sent(responses))\n sendEvent(ctx, events.dismissed)\n await dismissSurveyBeat({\n beatGuid: ctx.beat.guid,\n stores: ctx.stores,\n onCtaAction: ctx.hostActions.onCtaAction,\n })\n}\n\n/**\n * `answer_feedback_survey`: the card CTA of a `feedback_block` survey. Continue moves through the\n * steps; on the last, Submit sends the answers to PostHog and dismisses the beat, and the block shows\n * the result.\n */\nexport const feedbackSurveyStep: CtaStep = {\n run: 'answerFeedbackSurvey',\n disabledWhen: isUnanswered,\n label: (ctx) => (isLastStep(ctx) ? surveyOf(ctx.beat)?.submit_label : undefined),\n // The block draws the result in the button's place.\n presenter: (ctx) =>\n !surveyOf(ctx.beat) || stateOf(ctx).phase ? { kind: 'hidden', hideAll: true } : undefined,\n}\n"],"mappings":";;AAcA,IAAM,IAAA,CAAW,EAAE,MAAA,GAAM,QAAA,EAAA,MACvB,EAAY,EAAO,gBAAgB,YAAY,EAAK,IAAA,GAAO,EAAS,CAAI,GAAG,MAAM,MAAM,GAGnF,IAAA,CAAgB,MAAkB;AACtC,QAAM,EAAE,MAAA,GAAM,SAAA,EAAA,IAAY,EAAQ,CAAG,GAC/B,IAAS,EAAQ,CAAA;AACvB,SAAO,OAAO,KAAW,WAAW,EAAO,KAAK,MAAM,KAAK,MAAW;AACxE,GAEM,IAAA,CAAc,MAAkB;AACpC,QAAM,IAAQ,EAAS,EAAI,IAAI,GAAG,MAAM,UAAU;AAClD,SAAO,EAAQ,CAAG,EAAE,QAAQ,IAAQ;AACtC,GAGM,IAAA,CAAa,EAAE,MAAA,GAAM,QAAA,GAAQ,aAAA,EAAA,GAA2B,MAAqC;AACjG,MAAI;AACF,IAAA,EAAY,mBAAmB,EAAsB,GAAO,CAAI,CAAC;AAAA,EACnE,SAAS,GAAO;AACd,IAAA,EAAO,iBAAiB,GAAO;AAAA,MAC7B,OAAO;AA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veCtaMetadata as A } from "./ctaPostMessages.es.js";
8
8
  import { hasDrawerBlock as k } from "../mappings/hasDrawerBlock.es.js";
9
9
  var E = {}, l = ({ cta: t }) => t.action_key && S[t.action_key] || E, D = (t) => {
10
- const a = l(t), e = t.stores.insightsV2Store.ctaStatus[t.beat.guid] === "pending", r = a.presenter?.(t);
10
+ const a = l(t), e = t.stores.insightsV2Store.ctaStatus[t.beat.guid] === "pending", n = a.presenter?.(t), r = a.label?.(t);
11
11
  return {
12
12
  disabled: e || (a.disabledWhen?.(t) ?? !1),
13
- ...r && { presentation: r }
13
+ ...r && { label: r },
14
+ ...n && { presentation: n }
14
15
  };
15
16
  }, T = ({ beat: t, slot: a, stores: e }) => {
16
17
  e.insightsV2Store.openCtaDrawer(t.guid, a === "primary" ? "primaryCta" : "secondaryCta");
17
18
  }, b = ({ beat: t, stores: a }, e) => {
18
- const { is_mobile_webview: r, clientConfig: n } = a.appDataStore.appConfig, { event: i, action: s, payload: c } = e;
19
+ const { is_mobile_webview: n, clientConfig: r } = a.appDataStore.appConfig, { event: i, action: s, payload: c } = e;
19
20
  y(t, {
20
21
  event: i ?? void 0,
21
22
  op: s ?? void 0,
22
23
  extras: c ?? void 0,
23
- isMobileWebview: r,
24
- webviewScheme: n?.master?.ui_message_webview_url_scheme,
24
+ isMobileWebview: n,
25
+ webviewScheme: r?.master?.ui_message_webview_url_scheme,
25
26
  userGuid: t.insights_payload?.user_guid ?? t.user_guid
26
27
  });
27
28
  }, m = (t, a) => {
@@ -40,11 +41,11 @@ var E = {}, l = ({ cta: t }) => t.action_key && S[t.action_key] || E, D = (t) =>
40
41
  });
41
42
  }
42
43
  }, O = (t) => {
43
- const { beat: a, slot: e, hostActions: r, stores: n } = t;
44
- e !== "primary" || a.cta_clicked_at || (o(t, p.FIRST_TIME_PRIMARY_ACTION_SELECTED), Promise.resolve().then(() => r.onCtaAction?.({
44
+ const { beat: a, slot: e, hostActions: n, stores: r } = t;
45
+ e !== "primary" || a.cta_clicked_at || (o(t, p.FIRST_TIME_PRIMARY_ACTION_SELECTED), Promise.resolve().then(() => n.onCtaAction?.({
45
46
  beatGuid: a.guid,
46
47
  name: h.markCtaClicked
47
- })).catch((i) => n.captureException(i, {
48
+ })).catch((i) => r.captureException(i, {
48
49
  store: "ctaActions",
49
50
  template: a.template,
50
51
  handler: "markCtaClicked"
@@ -52,20 +53,20 @@ var E = {}, l = ({ cta: t }) => t.action_key && S[t.action_key] || E, D = (t) =>
52
53
  }, R = (t, { skipCtaClicked: a = !1 } = {}) => {
53
54
  o(t, t.slot === "primary" ? p.PRIMARY_ACTION_SELECTED : p.SECONDARY_ACTION_SELECTED), a || O(t);
54
55
  }, u = async (t, a, e) => {
55
- const r = w[a];
56
- if (!r) throw new Error(`Unknown CTA handler "${a}"`);
57
- await r(t);
58
- for (const n of e) I(n, t);
59
- }, d = async ({ beat: t, stores: a }, e, r = {}) => {
60
- const { insightsV2Store: n } = a;
61
- n.setCtaStatus(t.guid, "pending");
56
+ const n = w[a];
57
+ if (!n) throw new Error(`Unknown CTA handler "${a}"`);
58
+ await n(t);
59
+ for (const r of e) I(r, t);
60
+ }, d = async ({ beat: t, stores: a }, e, n = {}) => {
61
+ const { insightsV2Store: r } = a;
62
+ r.setCtaStatus(t.guid, "pending");
62
63
  try {
63
- return await e(), n.setCtaStatus(t.guid, "done"), !0;
64
+ return await e(), r.setCtaStatus(t.guid, "done"), !0;
64
65
  } catch (i) {
65
- return n.setCtaStatus(t.guid, "error"), a.captureException(i, {
66
+ return r.setCtaStatus(t.guid, "error"), a.captureException(i, {
66
67
  store: "ctaActions",
67
68
  template: t.template,
68
- ...r
69
+ ...n
69
70
  }), !1;
70
71
  }
71
72
  }, C = (t, a) => {
@@ -81,20 +82,20 @@ var E = {}, l = ({ cta: t }) => t.action_key && S[t.action_key] || E, D = (t) =>
81
82
  const a = l(t), e = C(a, t);
82
83
  R(e, { skipCtaClicked: a.skipCtaClicked }), await d(e, async () => {
83
84
  a.run && await u(e, a.run, a.onSuccess ?? []), a.analytics && o(e, a.analytics);
84
- const r = A(e);
85
- r && b(e, r), m(a, e.cta) && T(e);
85
+ const n = A(e);
86
+ n && b(e, n), m(a, e.cta) && T(e);
86
87
  });
87
88
  }, U = async ({ beat: t, stores: a, hostActions: e = {} }) => {
88
- const r = t.insights_payload?.in_description_cta;
89
- if (!r) return;
90
- const n = {
91
- ...r,
92
- block: r.block ?? ""
93
- }, i = l({ cta: n });
89
+ const n = t.insights_payload?.in_description_cta;
90
+ if (!n) return;
91
+ const r = {
92
+ ...n,
93
+ block: n.block ?? ""
94
+ }, i = l({ cta: r });
94
95
  try {
95
96
  const s = C(i, {
96
97
  beat: t,
97
- cta: n,
98
+ cta: r,
98
99
  slot: "primary",
99
100
  stores: a,
100
101
  hostActions: e,
@@ -107,13 +108,13 @@ var E = {}, l = ({ cta: t }) => t.action_key && S[t.action_key] || E, D = (t) =>
107
108
  const { run: v, onSuccess: _ = [] } = i;
108
109
  if (!await d(s, () => u(s, v, _))) return;
109
110
  }
110
- m(i, n) && !a.insightsV2Store.actionDrawer.isDrawerOpen && a.insightsV2Store.openActionDrawer({
111
+ m(i, r) && !a.insightsV2Store.actionDrawer.isDrawerOpen && a.insightsV2Store.openActionDrawer({
111
112
  guid: t.guid,
112
113
  trigger: "inDescriptionCta",
113
114
  cta: {
114
- block: n.block,
115
- variant: n.variant,
116
- action_key: n.action_key
115
+ block: r.block,
116
+ variant: r.variant,
117
+ action_key: r.action_key
117
118
  }
118
119
  });
119
120
  } catch (s) {
@@ -126,14 +127,14 @@ var E = {}, l = ({ cta: t }) => t.action_key && S[t.action_key] || E, D = (t) =>
126
127
  }, M = {
127
128
  label: "",
128
129
  block: ""
129
- }, W = (t, a, { onSuccess: e = [], analytics: r } = {}) => {
130
- const n = {
130
+ }, W = (t, a, { onSuccess: e = [], analytics: n } = {}) => {
131
+ const r = {
131
132
  ...t,
132
133
  cta: M,
133
134
  slot: "primary"
134
135
  };
135
- return d(n, async () => {
136
- await u(n, a, e), r && o(n, r);
136
+ return d(r, async () => {
137
+ await u(r, a, e), n && o(r, n);
137
138
  }, { handler: a });
138
139
  };
139
140
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"runCtaAction.es.js","names":[],"sources":["../../../src/insights-v2/ctaActions/runCtaAction.ts"],"sourcesContent":["import { sendBeatCta } from '../../common/utils/PostMessage'\nimport {\n ANALYTICS_EVENTS_CONFIG,\n type AnalyticsEventConfigEntry,\n} from '../analytics/analyticsEventsConfig'\nimport { resolveAnalyticsEvent } from '../analytics/resolveAnalyticsEvent'\nimport { hasDrawerBlock } from '../mappings/hasDrawerBlock'\nimport { ctaActions } from './ctaConfig'\nimport { resolveCtaMetadata } from './ctaPostMessages'\nimport { ctaHandlers, type CtaHandlerName } from './ctaHandlers'\nimport { HOST_ACTIONS } from './hostActions'\nimport type { CtaPostMessageMetadata } from '../../core'\nimport type {\n CtaContext,\n CtaEffect,\n CtaHandler,\n CtaHandlerContext,\n CtaState,\n CtaStateContext,\n CtaStep,\n RunHandlerOptions,\n RunInDescriptionCtaArgs,\n} from './types'\n\nconst DEFAULT_STEP: CtaStep = {}\n\n// ─── Resolution ─────────────────────────────────────────────────────────────\n\n/** The beat's own context (input a block collected for it), `{}` until something is written. */\nexport const beatContextOf = ({ beat, stores }: Pick<CtaStateContext, 'beat' | 'stores'>) =>\n stores.insightsV2Store.beatContext[beat.guid] ?? {}\n\n/** The step named by the CTA's `action_key`, or the empty default (no key / unknown key). */\nexport const resolveStep = ({ cta }: { cta: { action_key?: string | null } }): CtaStep =>\n (cta.action_key && ctaActions[cta.action_key]) || DEFAULT_STEP\n\n/** Pending always disables, as may the step's `disabledWhen`; its `presenter` may replace the button. */\nexport const resolveCtaState = (ctx: CtaStateContext): CtaState => {\n const step = resolveStep(ctx)\n const pending = ctx.stores.insightsV2Store.ctaStatus[ctx.beat.guid] === 'pending'\n const presentation = step.presenter?.(ctx)\n\n return {\n disabled: pending || (step.disabledWhen?.(ctx) ?? false),\n ...(presentation && { presentation }),\n }\n}\n\n// ─── Targets and effects ────────────────────────────────────────────────────\n\n/** Opens the beat's drawer for whichever slot triggered the current step. */\nconst openDrawerForSlot = ({\n beat,\n slot,\n stores,\n}: Pick<CtaContext, 'beat' | 'slot' | 'stores'>) => {\n stores.insightsV2Store.openCtaDrawer(\n beat.guid,\n slot === 'primary' ? 'primaryCta' : 'secondaryCta',\n )\n}\n\n/**\n * Posts this CTA's resolved message (event, op and beat-specific payload, from the backend's\n * `cta.metadata` or the template's `ctaPostMessages` entry) to the host.\n */\nexport const postCtaMessage = (\n { beat, stores }: Pick<CtaContext, 'beat' | 'stores'>,\n metadata: CtaPostMessageMetadata,\n) => {\n const { is_mobile_webview, clientConfig } = stores.appDataStore.appConfig\n const { event, action, payload } = metadata\n\n sendBeatCta(beat, {\n event: event ?? undefined,\n op: action ?? undefined,\n extras: payload ?? undefined,\n isMobileWebview: is_mobile_webview,\n webviewScheme: clientConfig?.master?.ui_message_webview_url_scheme,\n userGuid: beat.insights_payload?.user_guid ?? beat.user_guid,\n })\n}\n\n/**\n * Whether the step's target opens the drawer: `drawer` always, `default` only for a real block (a\n * missing block never implies a post message), `none` never. Omitted: `none` with `run`, else `default`.\n */\nconst opensDrawer = (step: CtaStep, cta: { block?: string | null }) => {\n const target = step.next ?? (step.run ? 'none' : 'default')\n\n return target === 'drawer' || (target === 'default' && hasDrawerBlock(cta.block))\n}\n\nconst runEffect = (effect: CtaEffect, { beat, stores }: CtaContext) => {\n switch (effect) {\n case 'refreshBeat':\n stores.emitUpdate({ staleBeatGuid: beat.guid })\n break\n }\n}\n\ntype AnalyticsCtx = Pick<CtaContext, 'beat' | 'stores' | 'hostActions'>\n\n/**\n * The one way to fire a catalogued analytics event. Takes the catalogue entry itself (e.g.\n * `ANALYTICS_EVENTS_CONFIG.PRIMARY_ACTION_SELECTED`), not a lookup key — the call site already\n * has the entry via property access, so there is no key to look up or mistype. Resolves the\n * payload and hands it to the host directly. Never throws: a failed fire is captured, it\n * cannot fail or disable anything.\n */\nexport const sendCtaAnalytics = (ctx: AnalyticsCtx, event: AnalyticsEventConfigEntry): void => {\n try {\n ctx.hostActions.onAnalyticsEvent?.(resolveAnalyticsEvent(event, ctx.beat))\n } catch (error) {\n ctx.stores.captureException(error, {\n store: 'ctaActions',\n template: ctx.beat.template,\n handler: 'sendCtaAnalytics',\n })\n }\n}\n\n// First primary click: fires FIRST_TIME_PRIMARY_ACTION_SELECTED and records cta_clicked_at.\nconst markCtaClicked = (ctx: AnalyticsCtx & Pick<CtaContext, 'slot'>): void => {\n const { beat, slot, hostActions, stores } = ctx\n\n if (slot !== 'primary' || beat.cta_clicked_at) return\n\n sendCtaAnalytics(ctx, ANALYTICS_EVENTS_CONFIG.FIRST_TIME_PRIMARY_ACTION_SELECTED)\n\n // Fire-and-forget; a failed write must not fail the user's action, but still report it.\n Promise.resolve()\n .then(() =>\n hostActions.onCtaAction?.({ beatGuid: beat.guid, name: HOST_ACTIONS.markCtaClicked }),\n )\n .catch((error) =>\n stores.captureException(error, {\n store: 'ctaActions',\n template: beat.template,\n handler: 'markCtaClicked',\n }),\n )\n}\n\n/**\n * Trigger 1 + the first-click bookkeeping together: every CTA press's generic analytics\n * (`Primary/Secondary Action Selected`), plus `FIRST_TIME_PRIMARY_ACTION_SELECTED` /\n * `cta_clicked_at` on the first primary press. The one call site for \"a CTA got pressed\",\n * used by the runner and by the contact-support bypass in `BaseLayout`.\n */\nexport const reportCtaClick = (\n ctx: AnalyticsCtx & Pick<CtaContext, 'slot'>,\n { skipCtaClicked = false }: { skipCtaClicked?: boolean } = {},\n): void => {\n sendCtaAnalytics(\n ctx,\n ctx.slot === 'primary'\n ? ANALYTICS_EVENTS_CONFIG.PRIMARY_ACTION_SELECTED\n : ANALYTICS_EVENTS_CONFIG.SECONDARY_ACTION_SELECTED,\n )\n\n if (!skipCtaClicked) markCtaClicked(ctx)\n}\n\n// ─── Shared bookkeeping ─────────────────────────────────────────────────────\n\n/** Runs a named handler, then its `onSuccess` effects. Shared by card CTAs and drawer saves. */\nconst runHandlerWithEffects = async (\n ctx: CtaContext,\n handlerName: CtaHandlerName,\n onSuccess: CtaEffect[],\n): Promise<void> => {\n // Names are typed, but the map is still indexed defensively: config can come from anywhere.\n const handler = (ctaHandlers as Record<string, CtaHandler>)[handlerName]\n\n if (!handler) throw new Error(`Unknown CTA handler \"${handlerName}\"`)\n\n await handler(ctx)\n\n for (const effect of onSuccess) runEffect(effect, ctx)\n}\n\n/** Per-beat status around `work`: `pending` -> `done` | `error` (+ captureException). */\nconst withCtaStatus = async (\n { beat, stores }: Pick<CtaContext, 'beat' | 'stores'>,\n work: () => Promise<void>,\n captureContext: Record<string, string> = {},\n): Promise<boolean> => {\n const { insightsV2Store } = stores\n\n insightsV2Store.setCtaStatus(beat.guid, 'pending')\n\n try {\n await work()\n insightsV2Store.setCtaStatus(beat.guid, 'done')\n\n return true\n } catch (error) {\n insightsV2Store.setCtaStatus(beat.guid, 'error')\n stores.captureException(error, {\n store: 'ctaActions',\n template: beat.template,\n ...captureContext,\n })\n\n return false\n }\n}\n\n/** The step's params, overridden by the caller's. */\nconst withStepParams = (step: CtaStep, ctx: CtaContext): CtaContext => {\n const stepParams = typeof step.params === 'function' ? step.params(ctx) : step.params\n\n return { ...ctx, params: { ...stepParams, ...ctx.params } }\n}\n\n// ─── Entry points ───────────────────────────────────────────────────────────\n\n// Runs the CTA's step: handler, onSuccess effects, post message, then the next target.\nexport const runCtaAction = async (ctx: CtaContext): Promise<void> => {\n const step = resolveStep(ctx)\n const stepCtx = withStepParams(step, ctx)\n\n reportCtaClick(stepCtx, { skipCtaClicked: step.skipCtaClicked })\n\n await withCtaStatus(stepCtx, async () => {\n if (step.run) await runHandlerWithEffects(stepCtx, step.run, step.onSuccess ?? [])\n\n // A step's own event, e.g. select_savings_account (Saved) / open_savings_account (Created).\n if (step.analytics) sendCtaAnalytics(stepCtx, step.analytics)\n\n const metadata = resolveCtaMetadata(stepCtx)\n\n if (metadata) postCtaMessage(stepCtx, metadata)\n\n if (opensDrawer(step, stepCtx.cta)) openDrawerForSlot(stepCtx)\n })\n}\n\n/**\n * A pinned beat's auto-open: runs the card action's (`in_description_cta`) step and opens its block,\n * with no press analytics or post message. Does nothing while the step shows a status (e.g. an\n * answered subscription), nothing or a disabled button. Never rejects: failures are reported.\n */\nexport const runInDescriptionCta = async ({\n beat,\n stores,\n hostActions = {},\n}: RunInDescriptionCtaArgs): Promise<void> => {\n const link = beat.insights_payload?.in_description_cta\n\n if (!link) return\n\n const cta = { ...link, block: link.block ?? '' }\n const step = resolveStep({ cta })\n\n try {\n const ctx = withStepParams(step, {\n beat,\n cta,\n slot: 'primary',\n stores,\n hostActions,\n params: {},\n })\n\n await step.prepare?.(ctx)\n\n // Read after the load; `disabled` also covers a press made meanwhile (pending).\n const { disabled, presentation } = resolveCtaState(ctx)\n\n if (disabled || presentation) return\n\n if (step.run) {\n const { run, onSuccess = [] } = step\n\n if (!(await withCtaStatus(ctx, () => runHandlerWithEffects(ctx, run, onSuccess)))) return\n }\n\n // Never replaces a drawer the user opened meanwhile.\n if (opensDrawer(step, cta) && !stores.insightsV2Store.actionDrawer.isDrawerOpen) {\n stores.insightsV2Store.openActionDrawer({\n guid: beat.guid,\n trigger: 'inDescriptionCta',\n cta: { block: cta.block, variant: cta.variant, action_key: cta.action_key },\n })\n }\n } catch (error) {\n stores.captureException(error, {\n store: 'ctaActions',\n template: beat.template,\n handler: 'runInDescriptionCta',\n })\n }\n}\n\n/** Placeholder CTA for handlers run from inside a drawer, where no card slot is involved. */\nconst DIRECT_CTA = { label: '', block: '' }\n\n/** Runs a handler directly (drawer Save buttons). True on success. */\nexport const runCtaHandler = (\n ctx: CtaHandlerContext,\n handlerName: CtaHandlerName,\n { onSuccess = [], analytics }: RunHandlerOptions = {},\n): Promise<boolean> => {\n const fullCtx: CtaContext = { ...ctx, cta: DIRECT_CTA, slot: 'primary' }\n\n return withCtaStatus(\n fullCtx,\n async () => {\n await runHandlerWithEffects(fullCtx, handlerName, onSuccess)\n\n // Success-time analytics for drawer Saves.\n if (analytics) sendCtaAnalytics(fullCtx, analytics)\n },\n { handler: handlerName },\n )\n}\n"],"mappings":";;;;;;;;AAwBA,IAAM,IAAwB,CAAC,GASlB,IAAA,CAAe,EAAE,KAAA,EAAA,MAC3B,EAAI,cAAc,EAAW,EAAI,UAAA,KAAgB,GAGvC,IAAA,CAAmB,MAAmC;AACjE,QAAM,IAAO,EAAY,CAAG,GACtB,IAAU,EAAI,OAAO,gBAAgB,UAAU,EAAI,KAAK,IAAA,MAAU,WAClE,IAAe,EAAK,YAAY,CAAG;AAEzC,SAAO;AAAA,IACL,UAAU,MAAY,EAAK,eAAe,CAAG,KAAK;AAAA,IAClD,GAAI,KAAgB,EAAE,cAAA,EAAa;AAAA,EACrC;AACF,GAKM,IAAA,CAAqB,EACzB,MAAA,GACA,MAAA,GACA,QAAA,EAAA,MACkD;AAClD,EAAA,EAAO,gBAAgB,cACrB,EAAK,MACL,MAAS,YAAY,eAAe,cACtC;AACF,GAMa,IAAA,CACX,EAAE,MAAA,GAAM,QAAA,EAAA,GACR,MACG;AACH,QAAM,EAAE,mBAAA,GAAmB,cAAA,EAAA,IAAiB,EAAO,aAAa,WAC1D,EAAE,OAAA,GAAO,QAAA,GAAQ,SAAA,EAAA,IAAY;AAEnC,EAAA,EAAY,GAAM;AAAA,IAChB,OAAO,KAAS;AAAA,IAChB,IAAI,KAAU;AAAA,IACd,QAAQ,KAAW;AAAA,IACnB,iBAAiB;AAAA,IACjB,eAAe,GAAc,QAAQ;AAAA,IACrC,UAAU,EAAK,kBAAkB,aAAa,EAAK;AAAA,EACrD,CAAC;AACH,GAMM,IAAA,CAAe,GAAe,MAAmC;AACrE,QAAM,IAAS,EAAK,SAAS,EAAK,MAAM,SAAS;AAEjD,SAAO,MAAW,YAAa,MAAW,aAAa,EAAe,EAAI,KAAK;AACjF,GAEM,IAAA,CAAa,GAAmB,EAAE,MAAA,GAAM,QAAA,EAAA,MAAyB;AACrE,EAAQ,M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AE,SAAS,EAAY,CACzB;AACF"}
1
+ {"version":3,"file":"runCtaAction.es.js","names":[],"sources":["../../../src/insights-v2/ctaActions/runCtaAction.ts"],"sourcesContent":["import { sendBeatCta } from '../../common/utils/PostMessage'\nimport {\n ANALYTICS_EVENTS_CONFIG,\n type AnalyticsEventConfigEntry,\n} from '../analytics/analyticsEventsConfig'\nimport { resolveAnalyticsEvent } from '../analytics/resolveAnalyticsEvent'\nimport { hasDrawerBlock } from '../mappings/hasDrawerBlock'\nimport { ctaActions } from './ctaConfig'\nimport { resolveCtaMetadata } from './ctaPostMessages'\nimport { ctaHandlers, type CtaHandlerName } from './ctaHandlers'\nimport { HOST_ACTIONS } from './hostActions'\nimport type { CtaPostMessageMetadata } from '../../core'\nimport type {\n CtaContext,\n CtaEffect,\n CtaHandler,\n CtaHandlerContext,\n CtaState,\n CtaStateContext,\n CtaStep,\n RunHandlerOptions,\n RunInDescriptionCtaArgs,\n} from './types'\n\nconst DEFAULT_STEP: CtaStep = {}\n\n// ─── Resolution ─────────────────────────────────────────────────────────────\n\n/** The beat's own context (input a block collected for it), `{}` until something is written. */\nexport const beatContextOf = ({ beat, stores }: Pick<CtaStateContext, 'beat' | 'stores'>) =>\n stores.insightsV2Store.beatContext[beat.guid] ?? {}\n\n/** The step named by the CTA's `action_key`, or the empty default (no key / unknown key). */\nexport const resolveStep = ({ cta }: { cta: { action_key?: string | null } }): CtaStep =>\n (cta.action_key && ctaActions[cta.action_key]) || DEFAULT_STEP\n\n/** Pending always disables, as may the step's `disabledWhen`; its `presenter` may replace the button. */\nexport const resolveCtaState = (ctx: CtaStateContext): CtaState => {\n const step = resolveStep(ctx)\n const pending = ctx.stores.insightsV2Store.ctaStatus[ctx.beat.guid] === 'pending'\n const presentation = step.presenter?.(ctx)\n const label = step.label?.(ctx)\n\n return {\n disabled: pending || (step.disabledWhen?.(ctx) ?? false),\n ...(label && { label }),\n ...(presentation && { presentation }),\n }\n}\n\n// ─── Targets and effects ────────────────────────────────────────────────────\n\n/** Opens the beat's drawer for whichever slot triggered the current step. */\nconst openDrawerForSlot = ({\n beat,\n slot,\n stores,\n}: Pick<CtaContext, 'beat' | 'slot' | 'stores'>) => {\n stores.insightsV2Store.openCtaDrawer(\n beat.guid,\n slot === 'primary' ? 'primaryCta' : 'secondaryCta',\n )\n}\n\n/**\n * Posts this CTA's resolved message (event, op and beat-specific payload, from the backend's\n * `cta.metadata` or the template's `ctaPostMessages` entry) to the host.\n */\nexport const postCtaMessage = (\n { beat, stores }: Pick<CtaContext, 'beat' | 'stores'>,\n metadata: CtaPostMessageMetadata,\n) => {\n const { is_mobile_webview, clientConfig } = stores.appDataStore.appConfig\n const { event, action, payload } = metadata\n\n sendBeatCta(beat, {\n event: event ?? undefined,\n op: action ?? undefined,\n extras: payload ?? undefined,\n isMobileWebview: is_mobile_webview,\n webviewScheme: clientConfig?.master?.ui_message_webview_url_scheme,\n userGuid: beat.insights_payload?.user_guid ?? beat.user_guid,\n })\n}\n\n/**\n * Whether the step's target opens the drawer: `drawer` always, `default` only for a real block (a\n * missing block never implies a post message), `none` never. Omitted: `none` with `run`, else `default`.\n */\nconst opensDrawer = (step: CtaStep, cta: { block?: string | null }) => {\n const target = step.next ?? (step.run ? 'none' : 'default')\n\n return target === 'drawer' || (target === 'default' && hasDrawerBlock(cta.block))\n}\n\nconst runEffect = (effect: CtaEffect, { beat, stores }: CtaContext) => {\n switch (effect) {\n case 'refreshBeat':\n stores.emitUpdate({ staleBeatGuid: beat.guid })\n break\n }\n}\n\ntype AnalyticsCtx = Pick<CtaContext, 'beat' | 'stores' | 'hostActions'>\n\n/**\n * The one way to fire a catalogued analytics event. Takes the catalogue entry itself (e.g.\n * `ANALYTICS_EVENTS_CONFIG.PRIMARY_ACTION_SELECTED`), not a lookup key — the call site already\n * has the entry via property access, so there is no key to look up or mistype. Resolves the\n * payload and hands it to the host directly. Never throws: a failed fire is captured, it\n * cannot fail or disable anything.\n */\nexport const sendCtaAnalytics = (ctx: AnalyticsCtx, event: AnalyticsEventConfigEntry): void => {\n try {\n ctx.hostActions.onAnalyticsEvent?.(resolveAnalyticsEvent(event, ctx.beat))\n } catch (error) {\n ctx.stores.captureException(error, {\n store: 'ctaActions',\n template: ctx.beat.template,\n handler: 'sendCtaAnalytics',\n })\n }\n}\n\n// First primary click: fires FIRST_TIME_PRIMARY_ACTION_SELECTED and records cta_clicked_at.\nconst markCtaClicked = (ctx: AnalyticsCtx & Pick<CtaContext, 'slot'>): void => {\n const { beat, slot, hostActions, stores } = ctx\n\n if (slot !== 'primary' || beat.cta_clicked_at) return\n\n sendCtaAnalytics(ctx, ANALYTICS_EVENTS_CONFIG.FIRST_TIME_PRIMARY_ACTION_SELECTED)\n\n // Fire-and-forget; a failed write must not fail the user's action, but still report it.\n Promise.resolve()\n .then(() =>\n hostActions.onCtaAction?.({ beatGuid: beat.guid, name: HOST_ACTIONS.markCtaClicked }),\n )\n .catch((error) =>\n stores.captureException(error, {\n store: 'ctaActions',\n template: beat.template,\n handler: 'markCtaClicked',\n }),\n )\n}\n\n/**\n * Trigger 1 + the first-click bookkeeping together: every CTA press's generic analytics\n * (`Primary/Secondary Action Selected`), plus `FIRST_TIME_PRIMARY_ACTION_SELECTED` /\n * `cta_clicked_at` on the first primary press. The one call site for \"a CTA got pressed\",\n * used by the runner and by the contact-support bypass in `BaseLayout`.\n */\nexport const reportCtaClick = (\n ctx: AnalyticsCtx & Pick<CtaContext, 'slot'>,\n { skipCtaClicked = false }: { skipCtaClicked?: boolean } = {},\n): void => {\n sendCtaAnalytics(\n ctx,\n ctx.slot === 'primary'\n ? ANALYTICS_EVENTS_CONFIG.PRIMARY_ACTION_SELECTED\n : ANALYTICS_EVENTS_CONFIG.SECONDARY_ACTION_SELECTED,\n )\n\n if (!skipCtaClicked) markCtaClicked(ctx)\n}\n\n// ─── Shared bookkeeping ─────────────────────────────────────────────────────\n\n/** Runs a named handler, then its `onSuccess` effects. Shared by card CTAs and drawer saves. */\nconst runHandlerWithEffects = async (\n ctx: CtaContext,\n handlerName: CtaHandlerName,\n onSuccess: CtaEffect[],\n): Promise<void> => {\n // Names are typed, but the map is still indexed defensively: config can come from anywhere.\n const handler = (ctaHandlers as Record<string, CtaHandler>)[handlerName]\n\n if (!handler) throw new Error(`Unknown CTA handler \"${handlerName}\"`)\n\n await handler(ctx)\n\n for (const effect of onSuccess) runEffect(effect, ctx)\n}\n\n/** Per-beat status around `work`: `pending` -> `done` | `error` (+ captureException). */\nconst withCtaStatus = async (\n { beat, stores }: Pick<CtaContext, 'beat' | 'stores'>,\n work: () => Promise<void>,\n captureContext: Record<string, string> = {},\n): Promise<boolean> => {\n const { insightsV2Store } = stores\n\n insightsV2Store.setCtaStatus(beat.guid, 'pending')\n\n try {\n await work()\n insightsV2Store.setCtaStatus(beat.guid, 'done')\n\n return true\n } catch (error) {\n insightsV2Store.setCtaStatus(beat.guid, 'error')\n stores.captureException(error, {\n store: 'ctaActions',\n template: beat.template,\n ...captureContext,\n })\n\n return false\n }\n}\n\n/** The step's params, overridden by the caller's. */\nconst withStepParams = (step: CtaStep, ctx: CtaContext): CtaContext => {\n const stepParams = typeof step.params === 'function' ? step.params(ctx) : step.params\n\n return { ...ctx, params: { ...stepParams, ...ctx.params } }\n}\n\n// ─── Entry points ───────────────────────────────────────────────────────────\n\n// Runs the CTA's step: handler, onSuccess effects, post message, then the next target.\nexport const runCtaAction = async (ctx: CtaContext): Promise<void> => {\n const step = resolveStep(ctx)\n const stepCtx = withStepParams(step, ctx)\n\n reportCtaClick(stepCtx, { skipCtaClicked: step.skipCtaClicked })\n\n await withCtaStatus(stepCtx, async () => {\n if (step.run) await runHandlerWithEffects(stepCtx, step.run, step.onSuccess ?? [])\n\n // A step's own event, e.g. select_savings_account (Saved) / open_savings_account (Created).\n if (step.analytics) sendCtaAnalytics(stepCtx, step.analytics)\n\n const metadata = resolveCtaMetadata(stepCtx)\n\n if (metadata) postCtaMessage(stepCtx, metadata)\n\n if (opensDrawer(step, stepCtx.cta)) openDrawerForSlot(stepCtx)\n })\n}\n\n/**\n * A pinned beat's auto-open: runs the card action's (`in_description_cta`) step and opens its block,\n * with no press analytics or post message. Does nothing while the step shows a status (e.g. an\n * answered subscription), nothing or a disabled button. Never rejects: failures are reported.\n */\nexport const runInDescriptionCta = async ({\n beat,\n stores,\n hostActions = {},\n}: RunInDescriptionCtaArgs): Promise<void> => {\n const link = beat.insights_payload?.in_description_cta\n\n if (!link) return\n\n const cta = { ...link, block: link.block ?? '' }\n const step = resolveStep({ cta })\n\n try {\n const ctx = withStepParams(step, {\n beat,\n cta,\n slot: 'primary',\n stores,\n hostActions,\n params: {},\n })\n\n await step.prepare?.(ctx)\n\n // Read after the load; `disabled` also covers a press made meanwhile (pending).\n const { disabled, presentation } = resolveCtaState(ctx)\n\n if (disabled || presentation) return\n\n if (step.run) {\n const { run, onSuccess = [] } = step\n\n if (!(await withCtaStatus(ctx, () => runHandlerWithEffects(ctx, run, onSuccess)))) return\n }\n\n // Never replaces a drawer the user opened meanwhile.\n if (opensDrawer(step, cta) && !stores.insightsV2Store.actionDrawer.isDrawerOpen) {\n stores.insightsV2Store.openActionDrawer({\n guid: beat.guid,\n trigger: 'inDescriptionCta',\n cta: { block: cta.block, variant: cta.variant, action_key: cta.action_key },\n })\n }\n } catch (error) {\n stores.captureException(error, {\n store: 'ctaActions',\n template: beat.template,\n handler: 'runInDescriptionCta',\n })\n }\n}\n\n/** Placeholder CTA for handlers run from inside a drawer, where no card slot is involved. */\nconst DIRECT_CTA = { label: '', block: '' }\n\n/** Runs a handler directly (drawer Save buttons). True on success. */\nexport const runCtaHandler = (\n ctx: CtaHandlerContext,\n handlerName: CtaHandlerName,\n { onSuccess = [], analytics }: RunHandlerOptions = {},\n): Promise<boolean> => {\n const fullCtx: CtaContext = { ...ctx, cta: DIRECT_CTA, slot: 'primary' }\n\n return withCtaStatus(\n fullCtx,\n async () => {\n await runHandlerWithEffects(fullCtx, handlerName, onSuccess)\n\n // Success-time analytics for drawer Saves.\n if (analytics) sendCta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GAAS,CAAS;AAAA,EACpD,GACA,EAAE,SAAS,EAAY,CACzB;AACF"}
@@ -22,6 +22,8 @@ export type CtaPresentation = ({
22
22
  };
23
23
  export interface CtaState {
24
24
  disabled: boolean;
25
+ /** The step's label for the button, in place of the envelope's. */
26
+ label?: string;
25
27
  /** Set when the step's presenter replaces the button. */
26
28
  presentation?: CtaPresentation;
27
29
  }
@@ -59,6 +61,11 @@ export interface CtaStep {
59
61
  * data-derived rules belong to the backend, which omits the label instead.
60
62
  */
61
63
  disabledWhen?: (ctx: CtaStateContext) => boolean;
64
+ /**
65
+ * The button's label from client-only state (a survey's last step reads Submit); undefined keeps
66
+ * the envelope's label.
67
+ */
68
+ label?: (ctx: CtaStateContext) => string | undefined;
62
69
  /** Draw a status or nothing instead of the button; undefined = the button. */
63
70
  presenter?: (ctx: CtaStateContext) => CtaPresentation | undefined;
64
71
  /** Loads what `presenter` reads, once per beat on mount (resolving when loaded). */
@@ -1,159 +1,165 @@
1
1
  import r from "./components/StatusPill.es.js";
2
- import { resolveInsightRender as t } from "./resolveInsightRender.es.js";
2
+ import { resolveInsightRender as m } from "./resolveInsightRender.es.js";
3
3
  import { useBeatActions as a } from "./beatActions.es.js";
4
- import { BAR_ARIA_LABEL as e, BAR_CHART_VARIANTS as f, barChartVariant as c, buildChartData as n, buildDataSeries as l } from "./blocks/ChartBlocks/BarchartBlock/utils.es.js";
4
+ import { BAR_ARIA_LABEL as e, BAR_CHART_VARIANTS as c, barChartVariant as f, buildChartData as n, buildDataSeries as l } from "./blocks/ChartBlocks/BarchartBlock/utils.es.js";
5
5
  import { HOST_ACTIONS as d } from "./ctaActions/hostActions.es.js";
6
- import { runInDescriptionCta as u } from "./ctaActions/runCtaAction.es.js";
6
+ import { runInDescriptionCta as k } from "./ctaActions/runCtaAction.es.js";
7
7
  import { useBeatCtaActions as g, useCtaHandler as C } from "./ctaActions/useCtaAction.es.js";
8
- import { BarchartBlock as h } from "./blocks/ChartBlocks/BarchartBlock/BarchartBlock.es.js";
8
+ import { BarchartBlock as D } from "./blocks/ChartBlocks/BarchartBlock/BarchartBlock.es.js";
9
9
  import { DoubleBarChartBlock as A } from "./blocks/ChartBlocks/DoubleBarChartBlock/DoubleBarChartBlock.es.js";
10
10
  import I from "./blocks/ChartBlocks/StepChartBlock/StepChartBlock.es.js";
11
11
  import T from "./blocks/ChartBlocks/DonutChartBlock/DonutChartBlock.es.js";
12
12
  import v from "./blocks/ChartBlocks/DoubleProgressBarBlock/DoubleProgressBarBlock.es.js";
13
- import R, { isLogoGuid as w } from "./components/LogoFromGuid.es.js";
14
- import M from "./components/AccountHeroCard.es.js";
15
- import V from "./components/DirectDepositCard.es.js";
13
+ import R, { isLogoGuid as V } from "./components/LogoFromGuid.es.js";
14
+ import H from "./components/AccountHeroCard.es.js";
15
+ import O from "./components/DirectDepositCard.es.js";
16
16
  import { detailedAccountVariant as F, directDepositVariant as G, isDetailedAccountVariant as _ } from "./blocks/ComponentBlocks/DetailedAccountBlock/layout.es.js";
17
17
  import N from "./blocks/ComponentBlocks/DetailedAccountBlock/DetailedAccountBlock.es.js";
18
18
  import W from "./blocks/ComponentBlocks/AccountBlock/AccountBlock.es.js";
19
19
  import z from "./components/TransferLogoCard.es.js";
20
20
  import q from "./blocks/ComponentBlocks/AccountSwitchBlock/AccountSwitchBlock.es.js";
21
21
  import { BudgetBlock as K } from "./blocks/ComponentBlocks/BudgetBlock/BudgetBlock.es.js";
22
- import Y from "./components/InsightTransactionRow.es.js";
23
- import $ from "./blocks/ComponentBlocks/DebtsBlock/DebtsBlock.es.js";
24
- import ro from "./blocks/ComponentBlocks/GasPurchaseBlock/GasPurchaseBlock.es.js";
25
- import to from "./components/GoalProgressCard.es.js";
26
- import ao from "./blocks/ComponentBlocks/GoalsBlock/GoalsBlock.es.js";
27
- import eo from "./components/LogoTile.es.js";
28
- import co from "./components/LogoClusterCard.es.js";
22
+ import { compactDirectDepositVariant as Y } from "./blocks/ComponentBlocks/CompactDirectDepositBlock/layout.es.js";
23
+ import $ from "./blocks/ComponentBlocks/CompactDirectDepositBlock/CompactDirectDepositBlock.es.js";
24
+ import ro from "./components/InsightTransactionRow.es.js";
25
+ import mo from "./blocks/ComponentBlocks/DebtsBlock/DebtsBlock.es.js";
26
+ import ao from "./blocks/ComponentBlocks/GasPurchaseBlock/GasPurchaseBlock.es.js";
27
+ import eo from "./components/GoalProgressCard.es.js";
28
+ import fo from "./blocks/ComponentBlocks/GoalsBlock/GoalsBlock.es.js";
29
29
  import lo from "./components/AmountPill.es.js";
30
- import Bo from "./components/MerchantHighlightCard.es.js";
31
- import ko from "./components/P2PLogoStack.es.js";
32
- import Co from "./blocks/ComponentBlocks/MerchantBlock/MerchantBlock.es.js";
33
- import ho from "./blocks/ComponentBlocks/NoSpendDaysBlock/NoSpendDaysBlock.es.js";
34
- import Ao from "./blocks/ComponentBlocks/QuarterlySummaryBlock/QuarterlySummaryBlock.es.js";
35
- import Io from "./blocks/ComponentBlocks/QuizBlock/QuizBlock.es.js";
36
- import To from "./components/UpcomingBillCard.es.js";
37
- import vo from "./blocks/ComponentBlocks/RepeatingTransactionBlock/RepeatingTransactionBlock.es.js";
38
- import Ro from "./components/SaveAnExtraCard.es.js";
39
- import Ho from "./blocks/ComponentBlocks/SaveExtraBlock/SaveExtraBlock.es.js";
40
- import Oo from "./components/SavingsOpportunityCard.es.js";
41
- import Eo from "./blocks/ComponentBlocks/SavingsOpportunityBlock/SavingsOpportunityBlock.es.js";
42
- import Go from "./blocks/ComponentBlocks/SavingsSummaryBlock/SavingsSummaryBlock.es.js";
43
- import xo from "./components/StatusMessageCard.es.js";
44
- import Uo from "./components/TransactionListCard.es.js";
45
- import { transactionBlockVariant as Qo } from "./blocks/ComponentBlocks/TransactionBlock/layout.es.js";
46
- import { TransactionBlock as jo } from "./blocks/ComponentBlocks/TransactionBlock/TransactionBlock.es.js";
47
- import Jo from "./components/SubscriptionHeroCard.es.js";
48
- import Xo from "./blocks/ComponentBlocks/UpcomingSubscriptionBlock/UpcomingSubscriptionBlock.es.js";
49
- import Zo from "./blocks/ComponentBlocks/WeeklySmallPurchasesBlock/WeeklySmallPurchasesBlock.es.js";
50
- import or from "./components/WithdrawalCard.es.js";
51
- import mr from "./blocks/ComponentBlocks/WithdrawalBlock/WithdrawalBlock.es.js";
52
- import ir from "./blocks/ComponentBlocks/FeedbackBlock/FeedbackBlock.es.js";
53
- import pr from "./blocks/ComponentBlocks/FeeChargedBlock/FeeChargedBlock.es.js";
54
- import fr from "./components/DesignateEmergencySavingsCard.es.js";
55
- import { SVGImageBlock as nr } from "./blocks/ImageBlocks/SVGImageBlock/SVGImageBlock.es.js";
56
- import sr from "./components/shared/StatusSnackbar.es.js";
57
- import Br from "./components/FeedbackDialog.es.js";
58
- import kr from "./components/FeedbackModal.es.js";
59
- import Cr from "./components/ConnectionDetailDrillDown.es.js";
60
- import hr from "./components/SurveyModal.es.js";
61
- import Ar from "./components/InsightErrorCard.es.js";
62
- import { ErrorCard as Ir } from "./components/ErrorCard.es.js";
63
- import Tr from "./components/AmountBreakdownCard.es.js";
64
- import vr from "./components/BadgedTile.es.js";
65
- import { OverflowMenu as Rr } from "./components/OverflowMenu.es.js";
66
- import { InsightOptionsMenu as Hr } from "./components/InsightOptionsMenu.es.js";
67
- import Or from "./components/StatusBadge.es.js";
68
- import Er from "./components/CompactInsightCard.es.js";
69
- import { FeedbackBar as Gr } from "./components/FeedbackBar.es.js";
70
- import { DismissInsightDialog as xr } from "./components/DismissInsightDialog.es.js";
71
- import { HiddenConfirmationCard as Ur } from "./components/HiddenConfirmationCard.es.js";
72
- import { LoadingCard as Qr } from "./components/LoadingCard.es.js";
73
- import { ObsolesceBanner as jr } from "./components/ObsolesceBanner.es.js";
74
- import Jr from "./components/BaseLayout.es.js";
30
+ import Bo from "./components/LogoTile.es.js";
31
+ import uo from "./components/MerchantHighlightCard.es.js";
32
+ import Co from "./components/P2PLogoStack.es.js";
33
+ import Do from "./blocks/ComponentBlocks/MerchantBlock/MerchantBlock.es.js";
34
+ import Ao from "./blocks/ComponentBlocks/NoSpendDaysBlock/NoSpendDaysBlock.es.js";
35
+ import Io from "./blocks/ComponentBlocks/QuarterlySummaryBlock/QuarterlySummaryBlock.es.js";
36
+ import To from "./blocks/ComponentBlocks/QuizBlock/QuizBlock.es.js";
37
+ import vo from "./components/UpcomingBillCard.es.js";
38
+ import Ro from "./blocks/ComponentBlocks/RepeatingTransactionBlock/RepeatingTransactionBlock.es.js";
39
+ import wo from "./components/SaveAnExtraCard.es.js";
40
+ import Mo from "./blocks/ComponentBlocks/SaveExtraBlock/SaveExtraBlock.es.js";
41
+ import Eo from "./components/SavingsOpportunityCard.es.js";
42
+ import Go from "./blocks/ComponentBlocks/SavingsOpportunityBlock/SavingsOpportunityBlock.es.js";
43
+ import xo from "./blocks/ComponentBlocks/SavingsSummaryBlock/SavingsSummaryBlock.es.js";
44
+ import Uo from "./components/StatusMessageCard.es.js";
45
+ import Qo from "./components/TransactionListCard.es.js";
46
+ import { transactionBlockVariant as jo } from "./blocks/ComponentBlocks/TransactionBlock/layout.es.js";
47
+ import { TransactionBlock as Jo } from "./blocks/ComponentBlocks/TransactionBlock/TransactionBlock.es.js";
48
+ import Xo from "./components/SubscriptionHeroCard.es.js";
49
+ import Zo from "./blocks/ComponentBlocks/UpcomingSubscriptionBlock/UpcomingSubscriptionBlock.es.js";
50
+ import or from "./blocks/ComponentBlocks/WeeklySmallPurchasesBlock/WeeklySmallPurchasesBlock.es.js";
51
+ import tr from "./components/WithdrawalCard.es.js";
52
+ import ir from "./blocks/ComponentBlocks/WithdrawalBlock/WithdrawalBlock.es.js";
53
+ import pr from "./blocks/ComponentBlocks/FeedbackBlock/FeedbackBlock.es.js";
54
+ import cr from "./blocks/ComponentBlocks/FeeChargedBlock/FeeChargedBlock.es.js";
55
+ import nr from "./blocks/ComponentBlocks/StrategiesBlock/StrategiesBlock.es.js";
56
+ import sr from "./components/DesignateEmergencySavingsCard.es.js";
57
+ import { SVGImageBlock as Br } from "./blocks/ImageBlocks/SVGImageBlock/SVGImageBlock.es.js";
58
+ import ur from "./components/shared/StatusSnackbar.es.js";
59
+ import Cr from "./components/FeedbackDialog.es.js";
60
+ import Dr from "./components/FeedbackModal.es.js";
61
+ import Ar from "./components/ConnectionDetailDrillDown.es.js";
62
+ import Ir from "./components/SurveyModal.es.js";
63
+ import Tr from "./components/InsightErrorCard.es.js";
64
+ import { ErrorCard as vr } from "./components/ErrorCard.es.js";
65
+ import Rr from "./components/AmountBreakdownCard.es.js";
66
+ import wr from "./components/BadgedTile.es.js";
67
+ import { OverflowMenu as Mr } from "./components/OverflowMenu.es.js";
68
+ import { InsightOptionsMenu as Er } from "./components/InsightOptionsMenu.es.js";
69
+ import Gr from "./components/StatusBadge.es.js";
70
+ import xr from "./components/CompactInsightCard.es.js";
71
+ import { FeedbackBar as Ur } from "./components/FeedbackBar.es.js";
72
+ import { DismissInsightDialog as Qr } from "./components/DismissInsightDialog.es.js";
73
+ import { HiddenConfirmationCard as jr } from "./components/HiddenConfirmationCard.es.js";
74
+ import { LoadingCard as Jr } from "./components/LoadingCard.es.js";
75
+ import { ObsolesceBanner as Xr } from "./components/ObsolesceBanner.es.js";
76
+ import Zr from "./components/BaseLayout.es.js";
77
+ import ot from "./components/LogoClusterCard.es.js";
75
78
  export {
76
79
  W as AccountBlock,
77
- M as AccountHeroCard,
80
+ H as AccountHeroCard,
78
81
  q as AccountSwitchBlock,
79
- Tr as AmountBreakdownCard,
82
+ Rr as AmountBreakdownCard,
80
83
  lo as AmountPill,
81
84
  e as BAR_ARIA_LABEL,
82
- f as BAR_CHART_VARIANTS,
83
- vr as BadgedTile,
84
- h as BarchartBlock,
85
- Jr as BaseLayout,
85
+ c as BAR_CHART_VARIANTS,
86
+ wr as BadgedTile,
87
+ D as BarchartBlock,
88
+ Zr as BaseLayout,
86
89
  K as BudgetBlock,
87
- Er as CompactInsightCard,
88
- Cr as ConnectionDetailDrillDown,
89
- $ as DebtsBlock,
90
- fr as DesignateEmergencySavingsCard,
90
+ $ as CompactDirectDepositBlock,
91
+ xr as CompactInsightCard,
92
+ Ar as ConnectionDetailDrillDown,
93
+ mo as DebtsBlock,
94
+ sr as DesignateEmergencySavingsCard,
91
95
  N as DetailedAccountBlock,
92
96
  N as DirectDepositBlock,
93
- V as DirectDepositCard,
94
- xr as DismissInsightDialog,
97
+ O as DirectDepositCard,
98
+ Qr as DismissInsightDialog,
95
99
  T as DonutChartBlock,
96
100
  A as DoubleBarChartBlock,
97
101
  v as DoubleProgressBarBlock,
98
- Ir as ErrorCard,
99
- pr as FeeChargedBlock,
100
- Gr as FeedbackBar,
101
- ir as FeedbackBlock,
102
- Br as FeedbackDialog,
103
- kr as FeedbackModal,
104
- ro as GasPurchaseBlock,
105
- to as GoalProgressCard,
106
- ao as GoalsBlock,
102
+ vr as ErrorCard,
103
+ cr as FeeChargedBlock,
104
+ Ur as FeedbackBar,
105
+ pr as FeedbackBlock,
106
+ Cr as FeedbackDialog,
107
+ Dr as FeedbackModal,
108
+ ao as GasPurchaseBlock,
109
+ eo as GoalProgressCard,
110
+ fo as GoalsBlock,
107
111
  d as HOST_ACTIONS,
108
- Ur as HiddenConfirmationCard,
109
- Ar as InsightErrorCard,
110
- Hr as InsightOptionsMenu,
111
- Y as InsightTransactionRow,
112
- Qr as LoadingCard,
113
- co as LogoClusterCard,
112
+ jr as HiddenConfirmationCard,
113
+ Tr as InsightErrorCard,
114
+ Er as InsightOptionsMenu,
115
+ ro as InsightTransactionRow,
116
+ Jr as LoadingCard,
117
+ ot as LogoClusterCard,
114
118
  R as LogoFromGuid,
115
- eo as LogoTile,
116
- Co as MerchantBlock,
117
- Bo as MerchantHighlightCard,
118
- ho as NoSpendDaysBlock,
119
- jr as ObsolesceBanner,
120
- Rr as OverflowMenu,
121
- ko as P2PLogoStack,
122
- Ao as QuarterlySummaryBlock,
123
- Io as QuizBlock,
124
- vo as RepeatingTransactionBlock,
125
- nr as SVGImageBlock,
126
- Ro as SaveAnExtraCard,
127
- Ho as SaveExtraBlock,
128
- Eo as SavingsOpportunityBlock,
129
- Oo as SavingsOpportunityCard,
130
- Go as SavingsSummaryBlock,
131
- Or as StatusBadge,
132
- xo as StatusMessageCard,
119
+ Bo as LogoTile,
120
+ Do as MerchantBlock,
121
+ uo as MerchantHighlightCard,
122
+ Ao as NoSpendDaysBlock,
123
+ Xr as ObsolesceBanner,
124
+ Mr as OverflowMenu,
125
+ Co as P2PLogoStack,
126
+ Io as QuarterlySummaryBlock,
127
+ To as QuizBlock,
128
+ Ro as RepeatingTransactionBlock,
129
+ Br as SVGImageBlock,
130
+ wo as SaveAnExtraCard,
131
+ Mo as SaveExtraBlock,
132
+ Go as SavingsOpportunityBlock,
133
+ Eo as SavingsOpportunityCard,
134
+ xo as SavingsSummaryBlock,
135
+ Gr as StatusBadge,
136
+ Uo as StatusMessageCard,
133
137
  r as StatusPill,
134
- sr as StatusSnackbar,
138
+ ur as StatusSnackbar,
135
139
  I as StepChartBlock,
136
- Jo as SubscriptionHeroCard,
137
- hr as SurveyModal,
138
- jo as TransactionBlock,
139
- Uo as TransactionListCard,
140
+ nr as StrategiesBlock,
141
+ Xo as SubscriptionHeroCard,
142
+ Ir as SurveyModal,
143
+ Jo as TransactionBlock,
144
+ Qo as TransactionListCard,
140
145
  z as TransferLogoCard,
141
- vo as UpcomingBillBlock,
142
- To as UpcomingBillCard,
143
- Xo as UpcomingSubscriptionBlock,
144
- Zo as WeeklySmallPurchasesBlock,
145
- mr as WithdrawalBlock,
146
- or as WithdrawalCard,
147
- c as barChartVariant,
146
+ Ro as UpcomingBillBlock,
147
+ vo as UpcomingBillCard,
148
+ Zo as UpcomingSubscriptionBlock,
149
+ or as WeeklySmallPurchasesBlock,
150
+ ir as WithdrawalBlock,
151
+ tr as WithdrawalCard,
152
+ f as barChartVariant,
148
153
  n as buildChartData,
149
154
  l as buildDataSeries,
155
+ Y as compactDirectDepositVariant,
150
156
  F as detailedAccountVariant,
151
157
  G as directDepositVariant,
152
158
  _ as isDetailedAccountVariant,
153
- w as isLogoGuid,
154
- t as resolveInsightRender,
155
- u as runInDescriptionCta,
156
- Qo as transactionBlockVariant,
159
+ V as isLogoGuid,
160
+ m as resolveInsightRender,
161
+ k as runInDescriptionCta,
162
+ jo as transactionBlockVariant,
157
163
  a as useBeatActions,
158
164
  g as useBeatCtaActions,
159
165
  C as useCtaHandler
@@ -23,6 +23,6 @@ export declare const actionBlocksKey: {
23
23
  ACCOUNT_DETAILS_ACTION_BLOCK: string;
24
24
  ACCOUNT_LIST_ACTION_BLOCK: string;
25
25
  HELP_ACTION_BLOCK: string;
26
- PAYOFF_STRATEGIES_ACTION_BLOCK: string;
26
+ STRATEGY_DETAILS_ACTION_BLOCK: string;
27
27
  QUIZ_MERCHANT_ACTION_BLOCK: string;
28
28
  };
@@ -23,7 +23,7 @@ var _ = {
23
23
  ACCOUNT_DETAILS_ACTION_BLOCK: "account_details_block",
24
24
  ACCOUNT_LIST_ACTION_BLOCK: "account_list_block",
25
25
  HELP_ACTION_BLOCK: "help_block",
26
- PAYOFF_STRATEGIES_ACTION_BLOCK: "payoff_strategies_block",
26
+ STRATEGY_DETAILS_ACTION_BLOCK: "strategy_details_block",
27
27
  QUIZ_MERCHANT_ACTION_BLOCK: "quiz_merchant_block"
28
28
  };
29
29
  export {