@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
@@ -1,19 +1,22 @@
1
- import { CategoryGuids as w } from "../../../core/constants/Category.es.js";
1
+ import { CategoryGuids as H } from "../../../core/constants/Category.es.js";
2
2
  import { buildDynamicCopy as d } from "../../../core/utils/Localization.es.js";
3
- import { DATE_FORMATS_INTL as v, formatDate as T } from "../../../core/constants/DateFormats.es.js";
4
- import { TransactionStatus as x } from "../../../core/types/Transaction.es.js";
5
- import { fromUnixUTC as U } from "../../../core/utils/DateUtil.es.js";
6
- import { CURRENCY_FORMAT as z } from "../../../core/utils/NumberFormatting.es.js";
7
- import { getCategoryColor as W } from "../../../core/utils/CategoryUtil.es.js";
8
- import { buildDataSeries as E } from "../../blocks/ChartBlocks/BarchartBlock/utils.es.js";
9
- import { asGuidList as D, asNonEmptyText as _, asNumber as l } from "../../blocks/slotReaders.es.js";
10
- import { getLayoutConfig as O } from "../../blocks/ChartBlocks/DoubleBarChartBlock/layout.es.js";
11
- import H from "../../components/LogoMark.es.js";
12
- import { calendarDateOf as j, toDrillDownSlotData as M } from "./utils.es.js";
13
- import { Icon as P } from "@mxenabled/mx-icons";
14
- import { jsx as c } from "react/jsx-runtime";
15
- import { endOfMonth as I, fromUnixTime as q, isValid as L, parseISO as S, startOfMonth as R } from "date-fns";
16
- var i = {
3
+ import { DATE_FORMATS_INTL as y, formatDate as N } from "../../../core/constants/DateFormats.es.js";
4
+ import { slot as V } from "../../../core/types/Insights.es.js";
5
+ import { TransactionStatus as W } from "../../../core/types/Transaction.es.js";
6
+ import { fromUnixUTC as P } from "../../../core/utils/DateUtil.es.js";
7
+ import { CURRENCY_FORMAT as x, formatPercentage as j } from "../../../core/utils/NumberFormatting.es.js";
8
+ import { getCategoryColor as q } from "../../../core/utils/CategoryUtil.es.js";
9
+ import { buildDataSeries as O } from "../../blocks/ChartBlocks/BarchartBlock/utils.es.js";
10
+ import { asGuidList as E, asNonEmptyText as l, asNumber as g } from "../../blocks/slotReaders.es.js";
11
+ import { actionBlocksKey as J } from "../../mappings/actionBlocksKey.es.js";
12
+ import { getLayoutConfig as C } from "../../blocks/ChartBlocks/DoubleBarChartBlock/layout.es.js";
13
+ import k from "../../components/LogoMark.es.js";
14
+ import { CREATE_BUDGET_VARIANT as Q } from "../AmountInputModalBlock/layout.es.js";
15
+ import { calendarDateOf as X, toDrillDownSlotData as A } from "./utils.es.js";
16
+ import { Icon as w } from "@mxenabled/mx-icons";
17
+ import { jsx as _ } from "react/jsx-runtime";
18
+ import { endOfMonth as I, fromUnixTime as Z, isValid as L, parseISO as T, startOfMonth as B } from "date-fns";
19
+ var c = {
17
20
  TRANSACTION: "not_standard_amount",
18
21
  CATEGORY_SPEND: "category_spend",
19
22
  MONTHLY_SPEND: "monthly_spend_comparison",
@@ -29,200 +32,234 @@ var i = {
29
32
  SUBSCRIPTION_AGGREGATE: "monthly_subscription_aggregate",
30
33
  MERCHANT_BUDGET: "merchant_budget",
31
34
  TOP_MERCHANT: "top_merchant"
32
- }, k = (t) => t.insights_feed?.general?.transaction_history_title ?? "", B = { [w.GAS]: {
33
- parent: w.AUTO_AND_TRANSPORT,
35
+ }, Y = (t) => t.insights_feed?.general?.transaction_history_title ?? "", R = { [H.GAS]: {
36
+ parent: H.AUTO_AND_TRANSPORT,
34
37
  headingKey: "gas_month_heading",
35
38
  tipKey: "gas_tip_message"
36
- } }, u = (t, e) => e && W(e, t) || t.palette.primary.main, J = (t, e) => u(t, e && B[e]?.parent || e), h = (t) => typeof t == "string" ? S(t) : new Date(t ?? NaN), b = (t) => ({
37
- start: R(h(t)),
38
- end: I(h(t))
39
- }), F = (t) => t?.length ? { accounts: t } : {}, Q = ({ beat: t }) => {
39
+ } }, p = (t, e) => e && q(e, t) || t.palette.primary.main, $ = (t, e) => p(t, e && R[e]?.parent || e), S = (t) => typeof t == "string" ? T(t) : new Date(t ?? NaN), M = (t) => ({
40
+ start: B(S(t)),
41
+ end: I(S(t))
42
+ }), z = (t) => t?.length ? { accounts: t } : {}, tt = ({ beat: t }) => {
40
43
  const { account_guid: e, from_date: a, to_date: r } = t.insights_payload?.drilldown_data ?? {};
41
44
  return typeof e != "string" || typeof a != "number" || typeof r != "number" || !Number.isFinite(a) || !Number.isFinite(r) || r <= a ? {
42
45
  accounts: [],
43
46
  custom: () => !1
44
47
  } : {
45
48
  accounts: [e],
46
- custom: (o) => !o.is_hidden && o.feed_status !== x.PENDING,
49
+ custom: (o) => !o.is_hidden && o.feed_status !== W.PENDING,
47
50
  showSplits: !0,
48
51
  dateRange: {
49
- start: U(a),
50
- end: U(r - 1)
52
+ start: P(a),
53
+ end: P(r - 1)
51
54
  }
52
55
  };
53
- }, X = (t) => {
56
+ }, et = (t) => {
54
57
  const e = t?.drilldown_data ?? {};
55
58
  return {
56
- transaction_guids: D(e.transaction_guids),
57
- date: j(e.due_date),
58
- category_guid: _(e.category_guid),
59
- average_amount: l(e.average_amount),
60
- merchant_name: _(e.merchant_name)
59
+ transaction_guids: E(e.transaction_guids),
60
+ date: X(e.due_date),
61
+ category_guid: l(e.category_guid),
62
+ average_amount: g(e.average_amount),
63
+ merchant_name: l(e.merchant_name)
61
64
  };
62
- }, g = (t) => {
65
+ }, m = (t) => {
63
66
  const e = t;
64
67
  return Array.isArray(e?.names) && Array.isArray(e?.data) ? e : void 0;
65
- }, Z = (t) => {
68
+ }, at = (t) => {
66
69
  const e = t?.drilldown_data ?? {};
67
70
  return {
68
- account_guids: D(e.account_guids),
69
- data_series: g(e.data_series),
70
- average_amount: l(e.average_amount)
71
+ account_guids: E(e.account_guids),
72
+ data_series: m(e.data_series),
73
+ average_amount: g(e.average_amount)
71
74
  };
72
- }, $ = (t) => {
75
+ }, rt = (t) => {
73
76
  const e = t?.drilldown_data ?? {}, a = t?.instance_slot?.data, r = t?.instance_slot_data;
74
77
  return {
75
- data_series: g(e.data_series),
76
- average_amount: l(e.average_amount),
77
- merchant_guid: _(a?.merchant_guid) ?? _(r?.merchant_guid),
78
- merchant_name: _(a?.merchant_name) ?? _(r?.merchant_name)
78
+ data_series: m(e.data_series),
79
+ average_amount: g(e.average_amount),
80
+ merchant_guid: l(a?.merchant_guid) ?? l(r?.merchant_guid),
81
+ merchant_name: l(a?.merchant_name) ?? l(r?.merchant_name)
79
82
  };
80
- }, tt = (t, e) => {
83
+ }, ot = (t, e) => {
81
84
  const a = e ?? {};
82
85
  return {
83
- data_series: g(a.data_series),
84
- average_amount: l(a.average_amount),
85
- category_guid: _(a.category_guid),
86
- described_month: _(a.described_month),
87
- merchant_guid: _(a.merchant_guid),
88
- merchant_name: _(a.merchant_name),
89
- rank: l(a.rank)
86
+ data_series: m(a.data_series),
87
+ average_amount: g(a.average_amount),
88
+ category_guid: l(a.category_guid),
89
+ described_month: l(a.described_month),
90
+ merchant_guid: l(a.merchant_guid),
91
+ merchant_name: l(a.merchant_name),
92
+ rank: g(a.rank)
90
93
  };
91
- }, K = ["income", "other"], et = (t) => {
94
+ }, K = ["income", "other"], st = (t) => {
92
95
  const e = t?.drilldown_data ?? {}, a = t?.instance_slot?.data?.legends?.map(({ label: r }) => r);
93
96
  return {
94
- data_series: g(e.data_series),
95
- average_amount: l(e.average_amount),
96
- income_transaction_guids: D(e.income_transaction_guids),
97
+ data_series: m(e.data_series),
98
+ average_amount: g(e.average_amount),
99
+ income_transaction_guids: E(e.income_transaction_guids),
97
100
  sub_tab_labels: a?.length === K.length ? a : void 0
98
101
  };
99
- }, at = (t, e) => {
100
- const a = e ?? {}, r = g(a.series);
101
- if (!r) return M(t?.instance_slot?.data ?? {});
102
- const o = E(r).map((s) => l(s.amount)).filter((s) => s !== void 0), n = o.length ? o.reduce((s, m) => s + m, 0) / o.length : void 0;
103
- return M({
104
- category_guid: _(a.category_guid),
102
+ }, nt = (t, e) => {
103
+ const a = e ?? {}, r = m(a.series);
104
+ if (!r) return A(t?.instance_slot?.data ?? {});
105
+ const o = O(r).map((n) => g(n.amount)).filter((n) => n !== void 0), s = o.length ? o.reduce((n, i) => n + i, 0) / o.length : void 0;
106
+ return A({
107
+ category_guid: l(a.category_guid),
105
108
  series: r,
106
- average_amount: l(a.average_amount) ?? n
109
+ average_amount: g(a.average_amount) ?? s
107
110
  });
108
- }, rt = (t, e, a, r) => {
109
- const o = r?.category_guid ? B[r.category_guid]?.tipKey : void 0, n = o ? e.transaction_history_block?.[o] : void 0;
110
- if (n)
111
+ }, it = (t, e, a, r) => {
112
+ const o = r?.category_guid ? R[r.category_guid]?.tipKey : void 0, s = o ? e.transaction_history_block?.[o] : void 0;
113
+ if (s)
111
114
  return {
112
- message: d(n, /* @__PURE__ */ c("strong", { children: e.general.tip_section_title })),
115
+ message: d(s, /* @__PURE__ */ _("strong", { children: e.general.tip_section_title })),
113
116
  onDismiss: () => t(!0)
114
117
  };
115
- }, ot = 2, V = (t, e) => {
116
- const a = e ?? {}, r = g(a.series), o = Array.isArray(a.labels) ? a.labels.map(_) : [];
117
- return !r || o.length !== ot || !o.every((n) => !!n) ? {} : {
118
+ }, ct = 2, v = (t, e) => {
119
+ const a = e ?? {}, r = m(a.series), o = Array.isArray(a.labels) ? a.labels.map(l) : [];
120
+ return !r || o.length !== ct || !o.every((s) => !!s) ? {} : {
118
121
  data_series: r,
119
- legends: o.map((n) => ({
120
- label: n,
122
+ legends: o.map((s) => ({
123
+ label: s,
121
124
  value: 0
122
125
  }))
123
126
  };
124
- }, A = (t, e) => E(g(e?.series)).flatMap((a) => a.aggregated_guids ?? []), nt = (t, e) => {
127
+ }, h = (t, e) => O(m(e?.series)).flatMap((a) => a.aggregated_guids ?? []), _t = (t, e) => {
125
128
  const a = e.transaction_history_block?.monthly_debt_to_income_tip_message, r = e.transaction_history_block?.monthly_debt_to_income_tip_limit;
126
129
  if (!(!a || !r))
130
+ return { message: d(a, /* @__PURE__ */ _("strong", { children: e.general.tip_section_title }), /* @__PURE__ */ _("strong", { children: r })) };
131
+ }, lt = (t, e) => {
132
+ const a = t?.instance_slot?.data, r = {
133
+ ...A(a ?? {}),
134
+ budget_category_guid: l(V(a, "budget_category_guid"))
135
+ }, o = v(t, e);
136
+ return o.data_series ? {
137
+ ...r,
138
+ ...o,
139
+ suggested_percentage: g(e?.suggested_percentage)
140
+ } : r;
141
+ }, dt = (t, e, a, r, o) => {
142
+ const s = e.transaction_history_block?.cost_living_to_income_tip_message, n = r?.suggested_percentage;
143
+ if (!(!s || n === void 0 || !o?.categoryName))
127
144
  return {
128
- message: d(a, /* @__PURE__ */ c("strong", { children: e.general.tip_section_title }), /* @__PURE__ */ c("strong", { children: r })),
129
- onDismiss: () => t(!0)
145
+ message: d(s, /* @__PURE__ */ _("strong", { children: e.general.tip_section_title }), o.categoryName, /* @__PURE__ */ _("strong", { children: j(n / 100, {
146
+ style: "percent",
147
+ maximumFractionDigits: 0
148
+ }) })),
149
+ tipAriaLabel: o.actionLabel,
150
+ onAction: () => o.openBlock({
151
+ block: J.AMOUNT_INPUT_MODAL_ACTION_BLOCK,
152
+ variant: Q
153
+ })
130
154
  };
131
- }, st = (t, e) => {
132
- const a = V(t, e);
133
- return a.data_series ? a : M(t?.instance_slot?.data ?? {});
134
- }, it = (t, e) => {
155
+ }, gt = (t, e) => {
156
+ const a = v(t, e);
157
+ if (a.data_series) return a;
158
+ const r = t?.instance_slot?.data?.series, o = O(m(r)), s = ["essential", "non-essential"].map((i) => o.find((u) => u.label === i)), n = s.flatMap((i) => i?.localized_label ? [i.localized_label] : []);
159
+ return !r || n.length !== s.length ? {} : v(t, {
160
+ labels: n,
161
+ series: {
162
+ ...r,
163
+ data: s.map((i) => [
164
+ i?.date,
165
+ i?.localized_label,
166
+ i?.localized_label,
167
+ i?.amount,
168
+ i?.aggregated_guids
169
+ ])
170
+ }
171
+ });
172
+ }, mt = (t, e) => {
173
+ const a = v(t, e);
174
+ return a.data_series ? a : A(t?.instance_slot?.data ?? {});
175
+ }, ut = (t, e) => {
135
176
  const a = e.transaction_history_block?.savings_to_income_tip_message, r = e.transaction_history_block?.savings_to_income_tip_percentage;
136
177
  if (!(!a || !r))
137
- return { message: d(a, /* @__PURE__ */ c("strong", { children: e.general.tip_section_title }), /* @__PURE__ */ c("strong", { children: r })) };
138
- }, ct = (t, e) => {
139
- const a = e.transaction_history_block?.non_essential_tip_message;
140
- if (a)
141
- return { message: d(a, /* @__PURE__ */ c("strong", { children: e.general.tip_section_title })) };
142
- }, _t = (t) => E(g(t.insights_payload?.drilldown_data?.data_series)).flatMap((e) => e.aggregated_guids ?? []), dt = (t, e, a, r) => {
143
- const o = r?.merchant_name, n = r?.date;
144
- if (!o || !n) return;
145
- const s = e.transaction_history_block?.upcoming_bill_tip_message;
146
- if (s)
147
- return { message: d(s, /* @__PURE__ */ c("strong", { children: e.general.tip_section_title }), o, T(S(n), v.FULL_MONTH_DAY)) };
148
- }, C = ({ beatTransactions: t, dataSeries: e, selectedIndex: a }) => {
149
- const r = e[a], o = r?.guid, n = t.find((s) => s.guid === o)?.has_been_split;
178
+ return { message: d(a, /* @__PURE__ */ _("strong", { children: e.general.tip_section_title }), /* @__PURE__ */ _("strong", { children: r })) };
179
+ }, pt = (t) => O(m(t.insights_payload?.drilldown_data?.data_series)).flatMap((e) => e.aggregated_guids ?? []), ht = (t, e, a, r) => {
180
+ const o = r?.merchant_name, s = r?.date;
181
+ if (!o || !s) return;
182
+ const n = e.transaction_history_block?.upcoming_bill_tip_message;
183
+ if (n)
184
+ return { message: d(n, /* @__PURE__ */ _("strong", { children: e.general.tip_section_title }), o, N(T(s), y.FULL_MONTH_DAY)) };
185
+ }, D = ({ beatTransactions: t, dataSeries: e, selectedIndex: a }) => {
186
+ const r = e[a], o = r?.guid, s = t.find((n) => n.guid === o)?.has_been_split;
150
187
  return {
151
- custom: (s) => s.guid === o,
152
- dateRange: b(r?.date),
153
- showSplits: !n
188
+ custom: (n) => n.guid === o,
189
+ dateRange: M(r?.date),
190
+ showSplits: !s
154
191
  };
155
- }, lt = ({ dataSeries: t, selectedIndex: e, instanceSlotData: a }) => {
192
+ }, ft = ({ dataSeries: t, selectedIndex: e, instanceSlotData: a }) => {
156
193
  const r = t[e], o = a.category_guid ?? r?.guid;
157
194
  return {
158
- custom: (n) => n.category_guid === o || n.top_level_category_guid === o,
159
- dateRange: b(r?.date)
195
+ custom: (s) => s.category_guid === o || s.top_level_category_guid === o,
196
+ dateRange: M(r?.date)
160
197
  };
161
- }, gt = ({ dataSeries: t, selectedIndex: e, spendCategoryGuids: a, instanceSlotData: r }) => {
198
+ }, St = ({ dataSeries: t, selectedIndex: e, spendCategoryGuids: a, instanceSlotData: r }) => {
162
199
  const o = t[e];
163
200
  return {
164
- custom: (n) => !!n.top_level_category_guid && a.includes(n.top_level_category_guid),
165
- dateRange: b(o?.date),
166
- ...F(r.account_guids)
201
+ custom: (s) => !!s.top_level_category_guid && a.includes(s.top_level_category_guid),
202
+ dateRange: M(o?.date),
203
+ ...z(r.account_guids)
167
204
  };
168
- }, Y = ({ dataSeries: t, selectedIndex: e, instanceSlotData: a }) => {
169
- const r = a.merchant_guid, o = S(t[e]?.date ?? "");
205
+ }, F = ({ dataSeries: t, selectedIndex: e, instanceSlotData: a }) => {
206
+ const r = a.merchant_guid, o = T(t[e]?.date ?? "");
170
207
  return !r || !L(o) ? {
171
208
  accounts: [],
172
209
  custom: () => !1
173
210
  } : {
174
- custom: (n) => n.merchant_guid === r && !n.is_hidden,
211
+ custom: (s) => s.merchant_guid === r && !s.is_hidden,
175
212
  dateRange: {
176
- start: R(o),
213
+ start: B(o),
177
214
  end: I(o)
178
215
  }
179
216
  };
180
- }, mt = (t) => typeof t == "number" ? q(t) : S(t ?? ""), ut = ({ beat: t, dataSeries: e, selectedIndex: a, isLastTab: r, instanceSlotData: o }) => {
181
- const n = e[a], { start: s, end: m } = b(n?.date), p = mt(t.created_at), y = o.account_guids, G = {
182
- start: s,
183
- end: r && L(p) && p < m ? p : m
217
+ }, vt = (t) => typeof t == "number" ? Z(t) : T(t ?? ""), Tt = ({ beat: t, dataSeries: e, selectedIndex: a, isLastTab: r, instanceSlotData: o }) => {
218
+ const s = e[a], { start: n, end: i } = M(s?.date), u = vt(t.created_at), b = o.account_guids, U = {
219
+ start: n,
220
+ end: r && L(u) && u < i ? u : i
184
221
  };
185
- return y?.length ? {
186
- dateRange: G,
187
- accounts: y
222
+ return b?.length ? {
223
+ dateRange: U,
224
+ accounts: b
188
225
  } : {
189
- dateRange: G,
226
+ dateRange: U,
190
227
  accounts: [],
191
228
  custom: () => !1
192
229
  };
193
- }, N = (t, e, a) => {
194
- const r = new Set(t), o = S(e ?? "");
230
+ }, G = (t, e, a) => {
231
+ const r = new Set(t), o = T(e ?? "");
195
232
  return !r.size || !L(o) ? {
196
233
  accounts: [],
197
234
  custom: () => !1
198
235
  } : {
199
- custom: (n) => r.has(n.guid),
236
+ custom: (s) => r.has(s.guid),
200
237
  dateRange: {
201
- start: R(o),
238
+ start: B(o),
202
239
  end: I(o)
203
240
  },
204
- ...F(a)
241
+ ...z(a)
205
242
  };
206
- }, pt = ({ beat: t, dataSeries: e, selectedIndex: a }) => N(e[a]?.aggregated_guids, e[a]?.date, t.account_guids), f = ({ beat: t, comparisonBars: e, selectedIndex: a, subIndex: r }) => {
243
+ }, bt = ({ beat: t, dataSeries: e, selectedIndex: a }) => G(e[a]?.aggregated_guids, e[a]?.date, t.account_guids), f = ({ beat: t, comparisonBars: e, selectedIndex: a, subIndex: r }) => {
207
244
  const o = e[a];
208
- return N(r === 1 ? o?.comparisonGuids : o?.mainGuids, o?.date, t.account_guids);
209
- }, ht = ({ beat: t, dataSeries: e, subIndex: a }) => N(e[a]?.aggregated_guids, e[a]?.date, t.account_guids), St = (t) => {
210
- const { dataSeries: e, selectedIndex: a, subIndex: r, instanceSlotData: o } = t, n = e[a], s = new Set(o.income_transaction_guids), m = K[r] === "income", p = o.sub_tab_labels ? n?.aggregated_guids?.filter((y) => s.has(y) === m) : n?.aggregated_guids;
211
- return N(p, n?.date);
212
- }, Bt = {
213
- [i.TRANSACTION]: {
214
- title: k,
245
+ return G(r === 1 ? o?.comparisonGuids : o?.mainGuids, o?.date, t.account_guids);
246
+ }, yt = (t) => {
247
+ const { dataSeries: e, selectedIndex: a, subIndex: r, instanceSlotData: o } = t, s = e[a], n = new Set(o.income_transaction_guids), i = K[r] === "income", u = o.sub_tab_labels ? s?.aggregated_guids?.filter((b) => n.has(b) === i) : s?.aggregated_guids;
248
+ return G(u, s?.date);
249
+ }, Ft = {
250
+ [c.TRANSACTION]: {
251
+ title: Y,
215
252
  top: "singleBar",
216
253
  scope: "store",
217
254
  filterMode: "store",
218
- filterStrategy: C,
219
- colors: (t, e) => [u(t, e)],
255
+ filterStrategy: D,
256
+ colors: (t, e) => [p(t, e)],
220
257
  header: (t) => {
221
258
  const { title: e, subHeader: a } = t;
222
259
  return {
223
260
  heading: e,
224
261
  subHeadingText: a?.text || void 0,
225
- icon: /* @__PURE__ */ c(H, {
262
+ icon: /* @__PURE__ */ _(k, {
226
263
  logo: {
227
264
  ...a?.logo,
228
265
  merchant_name: a?.text ?? a?.logo?.merchant_name
@@ -232,29 +269,29 @@ var i = {
232
269
  };
233
270
  },
234
271
  tipSection: (t, e, a = "") => ({
235
- message: d(e.general.tip_section_message, /* @__PURE__ */ c("strong", { children: e.general.tip_section_title }), /* @__PURE__ */ c("strong", { children: a })),
272
+ message: d(e.general.tip_section_message, /* @__PURE__ */ _("strong", { children: e.general.tip_section_title }), /* @__PURE__ */ _("strong", { children: a })),
236
273
  onDismiss: () => t(!0)
237
274
  })
238
275
  },
239
- [i.CATEGORY_SPEND]: {
276
+ [c.CATEGORY_SPEND]: {
240
277
  top: "singleBar",
241
- averageFormat: z.whole,
242
- slotData: at,
243
- fetchMissingTransactions: A,
244
- tipSection: rt,
245
- filterStrategy: lt,
278
+ averageFormat: x.whole,
279
+ slotData: nt,
280
+ fetchMissingTransactions: h,
281
+ tipSection: it,
282
+ filterStrategy: ft,
246
283
  scope: "store",
247
284
  filterMode: "store",
248
- colors: (t, e) => [J(t, e)],
285
+ colors: (t, e) => [$(t, e)],
249
286
  header: (t) => {
250
- const e = t.selectedDate && T(h(t.selectedDate), v.MONTH_LONG) || "", a = t.slotData?.category_guid, r = a ? B[a]?.headingKey : void 0, o = r && t.copy?.transaction_history_block?.[r];
287
+ const e = t.selectedDate && N(S(t.selectedDate), y.MONTH_LONG) || "", a = t.slotData?.category_guid, r = a ? R[a]?.headingKey : void 0, o = r && t.copy?.transaction_history_block?.[r];
251
288
  return o && e ? {
252
289
  heading: d(o, e),
253
290
  subHeadingText: ""
254
291
  } : {
255
292
  heading: t.categoryName,
256
293
  subHeadingText: e,
257
- icon: /* @__PURE__ */ c(P, {
294
+ icon: /* @__PURE__ */ _(w, {
258
295
  color: "primary",
259
296
  name: "calendar_month",
260
297
  size: 16
@@ -262,90 +299,90 @@ var i = {
262
299
  };
263
300
  }
264
301
  },
265
- [i.MONTHLY_SPEND]: {
302
+ [c.MONTHLY_SPEND]: {
266
303
  top: "singleBar",
267
- filterStrategy: gt,
304
+ filterStrategy: St,
268
305
  scope: "store",
269
306
  filterMode: "store",
270
307
  colors: (t) => [t.palette.chart.chart2 ?? t.palette.primary.main]
271
308
  },
272
- [i.ACCOUNT_BALANCE]: {
309
+ [c.ACCOUNT_BALANCE]: {
273
310
  title: (t, e) => e?.insights_payload?.title || void 0,
274
311
  top: "singleBar",
275
- filterStrategy: ut,
276
- slotData: Z,
312
+ filterStrategy: Tt,
313
+ slotData: at,
277
314
  scope: "store",
278
315
  filterMode: "store",
279
316
  colors: (t) => [t.palette.success.main]
280
317
  },
281
- [i.UPCOMING_BILL]: {
318
+ [c.UPCOMING_BILL]: {
282
319
  top: "upcomingBill",
283
- filterStrategy: C,
320
+ filterStrategy: D,
284
321
  scope: "beat",
285
322
  filterMode: "local",
286
- colors: (t, e) => [u(t, e)],
287
- slotData: X,
323
+ colors: (t, e) => [p(t, e)],
324
+ slotData: et,
288
325
  fetchMissingTransactions: (t) => t.insights_payload?.drilldown_data?.transaction_guids,
289
- tipSection: dt
326
+ tipSection: ht
290
327
  },
291
- [i.DEPOSIT_SUMMARY]: {
328
+ [c.DEPOSIT_SUMMARY]: {
292
329
  top: "singleBar",
293
- filterStrategy: St,
330
+ filterStrategy: yt,
294
331
  scope: "store",
295
332
  filterMode: "store",
296
333
  colors: (t) => [t.palette.success.main],
297
- slotData: et,
298
- fetchMissingTransactions: _t,
334
+ slotData: st,
335
+ fetchMissingTransactions: pt,
299
336
  subTabs: ({ instanceSlotData: t }) => t.sub_tab_labels ?? [],
300
337
  barLegendLabel: (t) => t.general.deposit,
301
338
  showMonthlyAmount: !1
302
339
  },
303
- [i.LOW_BALANCE]: {
340
+ [c.LOW_BALANCE]: {
304
341
  top: "list",
305
- filterStrategy: Q,
342
+ filterStrategy: tt,
306
343
  scope: "store",
307
344
  filterMode: "store",
308
345
  colors: (t) => [t.palette.primary.main]
309
346
  },
310
- [i.SUBSCRIPTION_AGGREGATE]: {
347
+ [c.SUBSCRIPTION_AGGREGATE]: {
311
348
  top: "monthTabs",
312
- filterStrategy: pt,
349
+ filterStrategy: bt,
313
350
  scope: "store",
314
351
  filterMode: "store",
315
352
  colors: (t) => [t.palette.primary.main]
316
353
  },
317
- [i.MERCHANT_BUDGET]: {
354
+ [c.MERCHANT_BUDGET]: {
318
355
  top: "singleBar",
319
- filterStrategy: Y,
320
- slotData: $,
356
+ filterStrategy: F,
357
+ slotData: rt,
321
358
  scope: "store",
322
359
  filterMode: "store",
323
360
  colors: (t) => [t.palette.chart.chart1 ?? t.palette.primary.main],
324
361
  header: (t) => ({
325
362
  heading: t.slotData?.merchant_name ?? t.title,
326
- subHeadingText: t.selectedDate && T(h(t.selectedDate), v.MONTH_LONG) || "",
327
- icon: /* @__PURE__ */ c(P, {
363
+ subHeadingText: t.selectedDate && N(S(t.selectedDate), y.MONTH_LONG) || "",
364
+ icon: /* @__PURE__ */ _(w, {
328
365
  color: "primary",
329
366
  name: "calendar_month",
330
367
  size: 16
331
368
  })
332
369
  })
333
370
  },
334
- [i.TOP_MERCHANT]: {
371
+ [c.TOP_MERCHANT]: {
335
372
  top: "singleBar",
336
373
  showMonthTabs: !1,
337
374
  showTransactionsHeader: !1,
338
- filterStrategy: Y,
339
- slotData: tt,
375
+ filterStrategy: F,
376
+ slotData: ot,
340
377
  scope: "store",
341
378
  filterMode: "store",
342
- colors: (t, e) => [u(t, e)],
379
+ colors: (t, e) => [p(t, e)],
343
380
  header: ({ copy: t, slotData: e, title: a }) => {
344
- const r = e?.merchant_name, o = t?.top_merchants, n = e?.described_month && T(h(e.described_month), v.MONTH_SHORT_YEAR) || "";
381
+ const r = e?.merchant_name, o = t?.top_merchants, s = e?.described_month && N(S(e.described_month), y.MONTH_SHORT_YEAR) || "";
345
382
  return {
346
383
  heading: r && o?.merchant_spending ? d(o.merchant_spending, r) : r ?? a,
347
- subHeadingText: e?.rank && o?.most_visited_merchant ? d(o.most_visited_merchant, String(e.rank), n) : n,
348
- logo: e?.merchant_guid ? /* @__PURE__ */ c(H, {
384
+ subHeadingText: e?.rank && o?.most_visited_merchant ? d(o.most_visited_merchant, String(e.rank), s) : s,
385
+ logo: e?.merchant_guid ? /* @__PURE__ */ _(k, {
349
386
  logo: {
350
387
  category_guid: e.category_guid,
351
388
  merchant_guid: e.merchant_guid,
@@ -356,74 +393,80 @@ var i = {
356
393
  };
357
394
  }
358
395
  },
359
- [i.SPEND_TO_INCOME]: {
396
+ [c.SPEND_TO_INCOME]: {
360
397
  top: "doubleBar",
361
398
  filterStrategy: f,
362
399
  scope: "store",
363
400
  filterMode: "store",
364
- colors: (t) => O(t, "spend_to_income")?.color ?? [],
401
+ colors: (t) => C(t, "spend_to_income")?.color ?? [],
365
402
  boldLabel: !0,
366
403
  subTabAriaLabels: (t) => [t.general.spend_transactions, t.general.income_transactions]
367
404
  },
368
- [i.COST_OF_LIVING]: {
405
+ [c.COST_OF_LIVING]: {
369
406
  top: "doubleBar",
407
+ showTransactionsHeader: !1,
370
408
  filterStrategy: f,
371
409
  scope: "store",
372
410
  filterMode: "store",
373
- colors: (t, e) => [u(t, e), t.palette.chart.chart4 ?? t.palette.primary.main],
374
- subTabAriaLabels: (t) => [void 0, t.general.income_transactions]
411
+ boldLabel: !0,
412
+ colors: (t, e) => [p(t, e), t.palette.chart.chart7 ?? t.palette.primary.main],
413
+ subTabAriaLabels: (t) => [void 0, t.general.income_transactions],
414
+ slotData: lt,
415
+ fetchMissingTransactions: h,
416
+ tipSection: dt
375
417
  },
376
- [i.DEBT_TO_INCOME]: {
377
- title: (t) => t.insights_feed?.transaction_history_block?.monthly_debt_to_income_drawer_title ?? k(t),
418
+ [c.DEBT_TO_INCOME]: {
419
+ title: (t) => t.insights_feed?.transaction_history_block?.monthly_debt_to_income_drawer_title ?? Y(t),
378
420
  top: "doubleBar",
379
421
  filterStrategy: f,
380
422
  scope: "store",
381
423
  filterMode: "store",
382
- colors: (t) => O(t, "debt_to_income")?.color ?? [],
424
+ colors: (t) => C(t, "debt_to_income")?.color ?? [],
383
425
  boldLabel: !0,
384
426
  subTabAriaLabels: (t) => [void 0, t.general.income_transactions],
385
- slotData: V,
386
- fetchMissingTransactions: A,
387
- tipSection: nt
427
+ slotData: v,
428
+ fetchMissingTransactions: h,
429
+ tipSection: _t
388
430
  },
389
- [i.SAVINGS_TO_INCOME]: {
431
+ [c.SAVINGS_TO_INCOME]: {
390
432
  top: "doubleBar",
391
433
  filterStrategy: f,
392
434
  scope: "store",
393
435
  filterMode: "store",
394
- colors: (t) => O(t, "savings_to_income")?.color ?? [],
436
+ colors: (t) => C(t, "savings_to_income")?.color ?? [],
395
437
  boldLabel: !0,
396
438
  subTabAriaLabels: (t) => [t.general.savings_transactions, t.general.income_transactions],
397
- slotData: st,
398
- fetchMissingTransactions: A,
399
- tipSection: it
439
+ slotData: mt,
440
+ fetchMissingTransactions: h,
441
+ tipSection: ut
400
442
  },
401
- [i.NON_ESSENTIAL_CATEGORY]: {
402
- top: "tabsOnly",
403
- filterStrategy: ht,
404
- tipSection: ct,
443
+ [c.NON_ESSENTIAL_CATEGORY]: {
444
+ top: "doubleBar",
445
+ filterStrategy: f,
405
446
  scope: "store",
406
447
  filterMode: "store",
407
- colors: (t) => [t.palette.primary.main]
448
+ colors: (t) => [t.palette.chartMono.chartMono3 ?? t.palette.primary.light, t.palette.chartMono.chartMono5 ?? t.palette.primary.main],
449
+ slotData: gt,
450
+ fetchMissingTransactions: h
408
451
  }
409
- }, Gt = {
452
+ }, zt = {
410
453
  top: "singleBar",
411
- filterStrategy: C,
454
+ filterStrategy: D,
412
455
  scope: "store",
413
456
  filterMode: "store",
414
- colors: (t, e) => [u(t, e)]
457
+ colors: (t, e) => [p(t, e)]
415
458
  };
416
459
  export {
417
- i as DRILLDOWN_VARIANTS,
418
- Gt as FALLBACK,
419
- Bt as layout,
420
- at as resolveCategorySpendSlotData,
421
- V as resolveDebtToIncomeSlotData,
422
- et as resolveDepositSummarySlotData,
423
- $ as resolveMerchantBudgetSlotData,
424
- Z as resolveSavingsContributionsSlotData,
425
- tt as resolveTopMerchantSlotData,
426
- X as resolveUpcomingBillSlotData
460
+ c as DRILLDOWN_VARIANTS,
461
+ zt as FALLBACK,
462
+ Ft as layout,
463
+ nt as resolveCategorySpendSlotData,
464
+ v as resolveDebtToIncomeSlotData,
465
+ st as resolveDepositSummarySlotData,
466
+ rt as resolveMerchantBudgetSlotData,
467
+ at as resolveSavingsContributionsSlotData,
468
+ ot as resolveTopMerchantSlotData,
469
+ et as resolveUpcomingBillSlotData
427
470
  };
428
471
 
429
472
  //# sourceMappingURL=layout.es.js.map