@mx-cartographer/experiences 6.26.18-alpha.mega3 → 6.26.18-alpha.mega4

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 (676) hide show
  1. package/dist/{common/constants/Account/index.es.js → Account-DM32_5k9.mjs} +4 -4
  2. package/dist/AccountDetailsContent-B_qRSB8l.mjs +677 -0
  3. package/dist/AccountDetailsHeader-CAm6ADMq.mjs +119 -0
  4. package/dist/{accounts/utils/AccountFields/index.es.js → AccountFields-Bb4pds0q.mjs} +17 -18
  5. package/dist/AccountListItem-G7iAesaO.mjs +90 -0
  6. package/dist/{accounts/stores/AccountStore/index.es.js → AccountStore-RSanus_m.mjs} +50 -24
  7. package/dist/Accounts-BfAQRG8R.mjs +9 -0
  8. package/dist/BeatApi-DLu87ijw.mjs +21 -0
  9. package/dist/{microinsights/utils/beatUtils/index.es.js → BeatStore-By4aGoRM.mjs} +36 -6
  10. package/dist/BudgetUtil-DcqclhiQ.mjs +101 -0
  11. package/dist/CashflowStore-D9Dpuz7X.mjs +91 -0
  12. package/dist/{common/constants/Category/index.es.js → Category-5S6uwuXz.mjs} +7 -7
  13. package/dist/CategorySelectorDrawer-DgrePTRg.mjs +397 -0
  14. package/dist/{categories/stores/CategoryStore/index.es.js → CategoryStore-B5EW6I1d.mjs} +77 -29
  15. package/dist/{categories/util/CategoryUtil/index.es.js → CategoryUtil-DRyruNgi.mjs} +22 -22
  16. package/dist/ConnectDrawer-DPnfeIfn.mjs +508 -0
  17. package/dist/ConnectionsDrawer-BCzpuNsK.mjs +52 -0
  18. package/dist/{common/components/CurrencyInput/index.es.js → CurrencyInput-DzsPiUsU.mjs} +24 -25
  19. package/dist/CurrencyText-YUhH2caW.mjs +20 -0
  20. package/dist/DateUtil-BcuH7ErC.mjs +48 -0
  21. package/dist/DebtsStore-C6VcBnpG.mjs +60 -0
  22. package/dist/Dialog-CWW597AF.mjs +123 -0
  23. package/dist/{common/components/charts/Donut/index.es.js → Donut-1UMNcG67.mjs} +11 -11
  24. package/dist/Drawer-kEE73B87.mjs +113 -0
  25. package/dist/{common/components/EmptyState/index.es.js → EmptyState-Dcb-o2tl.mjs} +1 -1
  26. package/dist/Fetch-CkFKy79O.mjs +116 -0
  27. package/dist/FinstrongStore-mkALvztw.mjs +101 -0
  28. package/dist/GoalStore-DyCr4wNc.mjs +263 -0
  29. package/dist/{trends/components/TrendsTable/HeaderCell/index.es.js → HeaderCell-DjuifqHJ.mjs} +1 -1
  30. package/dist/{help/constants/Help/index.es.js → Help-DhcC-C05.mjs} +27 -6
  31. package/dist/Help-toqAK5eD.mjs +3173 -0
  32. package/dist/{common/components/IconBacking/index.es.js → IconBacking-B9oC6uL2.mjs} +10 -10
  33. package/dist/InvestmentUtil-jOyOgzIB.mjs +134 -0
  34. package/dist/LineChart-CQWu5KoO.mjs +403 -0
  35. package/dist/{common/components/ListItemAction/index.es.js → ListItemAction-Df3OPMOW.mjs} +18 -18
  36. package/dist/Loader-Dp1P2gNw.mjs +14 -0
  37. package/dist/{common/utils/Localization/index.es.js → Localization-2MODESHW.mjs} +8 -8
  38. package/dist/ManageIncome-BVt_XQbo.mjs +535 -0
  39. package/dist/MerchantStore-DVH-QOf0.mjs +37 -0
  40. package/dist/{common/components/MicroWidgetContainer/index.es.js → MicroWidgetContainer-DaLW43tE.mjs} +11 -11
  41. package/dist/{common/components/MiniWidgetContainer/index.es.js → MiniWidgetContainer-BcNPxZt2.mjs} +11 -11
  42. package/dist/NetWorthStore-DE8CQBMM.mjs +150 -0
  43. package/dist/Notification-AMGWM1Al.mjs +78 -0
  44. package/dist/NotificationSettings-CPZN0l8X.mjs +667 -0
  45. package/dist/NotificationStore-DHtSGySy.mjs +67 -0
  46. package/dist/NumberFormatting-CtWHhyBX.mjs +40 -0
  47. package/dist/OriginalBalanceAction-s9sUxofR.mjs +115 -0
  48. package/dist/RecurringSettings-DIEsympT.mjs +57 -0
  49. package/dist/{recurringtransactions/stores/RecurringTransactionsStore/index.es.js → RecurringTransactionsStore-BKLD3OWo.mjs} +65 -49
  50. package/dist/RepeatingTransaction-BPWfaB3f.mjs +282 -0
  51. package/dist/{common/components/SearchBox/index.es.js → SearchBox-B2_zLv8-.mjs} +12 -12
  52. package/dist/SettingsStore-CE7jDVFL.mjs +265 -0
  53. package/dist/{common/components/donuts/SingleSegmentDonut/index.es.js → SingleSegmentDonut-BgbLgwHi.mjs} +27 -26
  54. package/dist/SpendingData-ByFCw95X.mjs +53 -0
  55. package/dist/{common/components/charts/StatusBar/index.es.js → StatusBar-BK_uYHAB.mjs} +1 -1
  56. package/dist/{common/components/TabContentContainer/index.es.js → TabContentContainer-j01JYR_7.mjs} +1 -1
  57. package/dist/Transaction-C-5-Iuab.mjs +312 -0
  58. package/dist/{transactions/api/TransactionApi/index.es.js → TransactionApi-DbbcjI2L.mjs} +4 -5
  59. package/dist/TransactionDetails-B5qfs9Zh.mjs +1283 -0
  60. package/dist/TransactionStore-BWi6_2Ny.mjs +669 -0
  61. package/dist/TrendsStore-Borh98aN.mjs +448 -0
  62. package/dist/ViewMoreMicroCard-CAPFNz-J.mjs +1959 -0
  63. package/dist/WidgetContainer-CmGNZW0M.mjs +548 -0
  64. package/dist/accounts/index.es.js +750 -24
  65. package/dist/analytics/index.es.js +169 -2
  66. package/dist/budgets/index.es.js +1068 -4
  67. package/dist/cashflow/index.es.js +1096 -10
  68. package/dist/categories/index.es.js +7 -10
  69. package/dist/common/index.es.js +1449 -232
  70. package/dist/dashboard/index.es.js +179 -4
  71. package/dist/debts/index.es.js +1458 -8
  72. package/dist/{transactions/utils/exportTransactionsToCSV/index.es.js → exportTransactionsToCSV-j4g8bdVZ.mjs} +9 -9
  73. package/dist/finstrong/index.es.js +1453 -12
  74. package/dist/goals/index.es.js +1207 -8
  75. package/dist/help/index.es.js +12 -4
  76. package/dist/hooks-ClhFlg78.mjs +71 -0
  77. package/dist/insights/index.es.js +1 -1
  78. package/dist/investments/index.es.js +1636 -2
  79. package/dist/merchants/index.es.js +77 -4
  80. package/dist/microinsights/index.es.js +13 -25
  81. package/dist/networth/index.es.js +540 -12
  82. package/dist/notifications/index.es.js +190 -10
  83. package/dist/recurringtransactions/index.es.js +877 -18
  84. package/dist/settings/index.es.js +877 -27
  85. package/dist/spending/index.es.js +568 -4
  86. package/dist/transactions/index.es.js +585 -25
  87. package/dist/trends/index.es.js +1101 -10
  88. package/dist/useCombineEvents-DaDBSR_1.mjs +92 -0
  89. package/dist/{common/hooks/useDimensions/index.es.js → useDimensions-27p2evRx.mjs} +1 -1
  90. package/dist/{common/hooks/useScreenSize/index.es.js → useScreenSize-B6JyS_Lj.mjs} +1 -1
  91. package/package.json +1 -1
  92. package/dist/accounts/AccountsMiniWidget/index.es.js +0 -45
  93. package/dist/accounts/AccountsWidget/index.es.js +0 -67
  94. package/dist/accounts/ConnectMiniWidget/index.es.js +0 -41
  95. package/dist/accounts/api/AccountApi/index.es.js +0 -20
  96. package/dist/accounts/components/AccountListItem/index.es.js +0 -84
  97. package/dist/accounts/components/AccountsList/index.es.js +0 -164
  98. package/dist/accounts/components/ConnectImage/index.es.js +0 -444
  99. package/dist/accounts/components/ConnectMiniWidgetCard/index.es.js +0 -27
  100. package/dist/accounts/components/ConnectStatus/index.es.js +0 -37
  101. package/dist/accounts/components/ConnectionStatusIcons/index.es.js +0 -12
  102. package/dist/accounts/components/ConnectionsDrawer/index.es.js +0 -54
  103. package/dist/accounts/components/detailsdrawer/Accounts/AccountActions/index.es.js +0 -134
  104. package/dist/accounts/components/detailsdrawer/Accounts/AccountActionsRow/index.es.js +0 -21
  105. package/dist/accounts/components/detailsdrawer/Accounts/AccountConnection/index.es.js +0 -103
  106. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailEdit/index.es.js +0 -120
  107. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetails/index.es.js +0 -58
  108. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart/index.es.js +0 -43
  109. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsContent/index.es.js +0 -50
  110. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader/index.es.js +0 -47
  111. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsTab/index.es.js +0 -20
  112. package/dist/accounts/components/detailsdrawer/Accounts/ConnectionErrorMessage/index.es.js +0 -74
  113. package/dist/accounts/components/detailsdrawer/Transactions/TransactionsTab/index.es.js +0 -37
  114. package/dist/accounts/constants/Accounts/index.es.js +0 -5
  115. package/dist/accounts/hooks/useGetMergeableAccounts/index.es.js +0 -11
  116. package/dist/accounts/hooks/useUiStore/index.es.js +0 -11
  117. package/dist/accounts/stores/UiStore/index.es.js +0 -15
  118. package/dist/accounts/utils/Accounts/index.es.js +0 -9
  119. package/dist/accounts/utils/getConnectionMessages/index.es.js +0 -162
  120. package/dist/analytics/SurveyMiniWidget/index.es.js +0 -101
  121. package/dist/analytics/components/OpenTextField/index.es.js +0 -23
  122. package/dist/analytics/components/RatingScale/index.es.js +0 -68
  123. package/dist/analytics/stores/AnalyticsStore/index.es.js +0 -54
  124. package/dist/budgets/BubbleBudgetsMiniWidget/index.es.js +0 -71
  125. package/dist/budgets/BubbleBudgetsWidget/index.es.js +0 -139
  126. package/dist/budgets/api/BudgetsApi/index.es.js +0 -26
  127. package/dist/budgets/components/AddBudgets/index.es.js +0 -30
  128. package/dist/budgets/components/BubbleBudgets/index.es.js +0 -61
  129. package/dist/budgets/components/BubbleChart/Bubble/index.es.js +0 -97
  130. package/dist/budgets/components/BubbleChart/Mercury/index.es.js +0 -27
  131. package/dist/budgets/components/BubbleChart/index.es.js +0 -22
  132. package/dist/budgets/components/BudgetDetailsDrawer/index.es.js +0 -95
  133. package/dist/budgets/components/BudgetList/BudgetRow/index.es.js +0 -42
  134. package/dist/budgets/components/BudgetList/SubBudgetRow/index.es.js +0 -36
  135. package/dist/budgets/components/BudgetList/SubBudgetZeroState/index.es.js +0 -16
  136. package/dist/budgets/components/BudgetList/index.es.js +0 -30
  137. package/dist/budgets/components/BudgetsEmptyState/index.es.js +0 -85
  138. package/dist/budgets/components/Overview/index.es.js +0 -105
  139. package/dist/budgets/components/addbudget/Header/index.es.js +0 -28
  140. package/dist/budgets/components/addbudget/RecalculateBudgetRow/index.es.js +0 -30
  141. package/dist/budgets/components/addbudget/RecalculateBudgets/index.es.js +0 -39
  142. package/dist/budgets/components/addbudget/UnbudgetedRow/index.es.js +0 -46
  143. package/dist/budgets/components/budgetdetails/AddSubBudget/index.es.js +0 -73
  144. package/dist/budgets/components/budgetdetails/BudgetDetails/index.es.js +0 -75
  145. package/dist/budgets/components/budgetdetails/Header/index.es.js +0 -31
  146. package/dist/budgets/components/budgetdetails/SubBudgetList/index.es.js +0 -102
  147. package/dist/budgets/components/shared/BudgetAmount/index.es.js +0 -37
  148. package/dist/budgets/store/BudgetsStore/index.es.js +0 -139
  149. package/dist/budgets/utils/BubblesSVG/index.es.js +0 -51
  150. package/dist/budgets/utils/BudgetUtil/index.es.js +0 -70
  151. package/dist/cashflow/CashflowMiniWidget/index.es.js +0 -27
  152. package/dist/cashflow/CashflowOnboarding/index.es.js +0 -220
  153. package/dist/cashflow/CashflowWidget/index.es.js +0 -91
  154. package/dist/cashflow/api/CashflowApi/index.es.js +0 -25
  155. package/dist/cashflow/components/CashflowAmountHeading/index.es.js +0 -32
  156. package/dist/cashflow/components/CashflowContent/index.es.js +0 -61
  157. package/dist/cashflow/components/CashflowHeading/index.es.js +0 -113
  158. package/dist/cashflow/components/CashflowWidgetContent/index.es.js +0 -146
  159. package/dist/cashflow/components/DetailsExpenseHeader/index.es.js +0 -38
  160. package/dist/cashflow/components/DetailsExpenseRow/index.es.js +0 -31
  161. package/dist/cashflow/components/DetailsFooter/index.es.js +0 -22
  162. package/dist/cashflow/components/DetailsTab/index.es.js +0 -92
  163. package/dist/cashflow/components/RemainingCash/index.es.js +0 -27
  164. package/dist/cashflow/components/SummaryTab/index.es.js +0 -258
  165. package/dist/cashflow/components/onboarding/StepOne/index.es.js +0 -82
  166. package/dist/cashflow/components/onboarding/StepTwo/index.es.js +0 -17
  167. package/dist/cashflow/constants/CashflowImages/index.es.js +0 -7
  168. package/dist/cashflow/context/hooks/index.es.js +0 -11
  169. package/dist/cashflow/stores/CashflowStore/index.es.js +0 -19
  170. package/dist/cashflow/stores/UiStore/index.es.js +0 -38
  171. package/dist/cashflow/util/Filters/index.es.js +0 -7
  172. package/dist/categories/components/CategoryList/index.es.js +0 -38
  173. package/dist/categories/components/CategoryRow/index.es.js +0 -58
  174. package/dist/categories/components/CategorySelector/index.es.js +0 -48
  175. package/dist/categories/components/CategorySelectorDrawer/index.es.js +0 -30
  176. package/dist/categories/components/CustomCategories/AddSubcategory/index.es.js +0 -40
  177. package/dist/categories/components/CustomCategories/CustomCategoryModal/index.es.js +0 -66
  178. package/dist/categories/components/CustomCategories/DeleteSubcategory/index.es.js +0 -30
  179. package/dist/categories/components/CustomCategories/RenameSubcategory/index.es.js +0 -29
  180. package/dist/categories/components/SubcategoryList/index.es.js +0 -39
  181. package/dist/categories/components/SubcategoryRow/index.es.js +0 -103
  182. package/dist/categories/constants/OnClickEvents/index.es.js +0 -16
  183. package/dist/categories/context/hooks/index.es.js +0 -11
  184. package/dist/categories/stores/UiStore/index.es.js +0 -27
  185. package/dist/common/api/AnalyticsApi/index.es.js +0 -34
  186. package/dist/common/api/AppDataApi/index.es.js +0 -12
  187. package/dist/common/api/BannerApi/index.es.js +0 -21
  188. package/dist/common/api/BeatApi/index.es.js +0 -22
  189. package/dist/common/api/CategoryApi/index.es.js +0 -30
  190. package/dist/common/api/GlobalCopyApi/index.es.js +0 -12
  191. package/dist/common/api/LocalizedCopyApi/index.es.js +0 -13
  192. package/dist/common/api/NotificationApi/index.es.js +0 -21
  193. package/dist/common/api/ScheduledPaymentsApi/index.es.js +0 -20
  194. package/dist/common/api/UserApi/index.es.js +0 -14
  195. package/dist/common/api/WidgetApi/index.es.js +0 -12
  196. package/dist/common/components/Banner/index.es.js +0 -49
  197. package/dist/common/components/ConnectCard/index.es.js +0 -56
  198. package/dist/common/components/ConnectDrawer/index.es.js +0 -58
  199. package/dist/common/components/CurrencyText/index.es.js +0 -20
  200. package/dist/common/components/DataRow/index.es.js +0 -29
  201. package/dist/common/components/ErrorBoundary/index.es.js +0 -24
  202. package/dist/common/components/InformationTooltip/index.es.js +0 -41
  203. package/dist/common/components/ListItemRow/index.es.js +0 -67
  204. package/dist/common/components/ListItemWrapper/index.es.js +0 -32
  205. package/dist/common/components/Loader/index.es.js +0 -14
  206. package/dist/common/components/ResponsiveButton/index.es.js +0 -45
  207. package/dist/common/components/Select/index.es.js +0 -25
  208. package/dist/common/components/SelectionBox/index.es.js +0 -48
  209. package/dist/common/components/SubheaderRow/index.es.js +0 -10
  210. package/dist/common/components/WidgetContainer/index.es.js +0 -195
  211. package/dist/common/components/accountfilter/AccountFilter/index.es.js +0 -93
  212. package/dist/common/components/accountfilter/AccountFilterOptions/index.es.js +0 -222
  213. package/dist/common/components/addaccounts/AddAccounts/index.es.js +0 -43
  214. package/dist/common/components/barchart/Bar/index.es.js +0 -79
  215. package/dist/common/components/barchart/BarChart/index.es.js +0 -70
  216. package/dist/common/components/barchart/BarColumn/index.es.js +0 -86
  217. package/dist/common/components/barchart/Legend/index.es.js +0 -45
  218. package/dist/common/components/barchart/Util/index.es.js +0 -11
  219. package/dist/common/components/calendar/Calendar/index.es.js +0 -131
  220. package/dist/common/components/calendar/Day/index.es.js +0 -96
  221. package/dist/common/components/calendar/Header/index.es.js +0 -32
  222. package/dist/common/components/charts/LineChart/CustomLegend/index.es.js +0 -64
  223. package/dist/common/components/charts/LineChart/CustomLine/index.es.js +0 -22
  224. package/dist/common/components/charts/LineChart/CustomMark/index.es.js +0 -65
  225. package/dist/common/components/charts/LineChart/CustomTooltip/index.es.js +0 -73
  226. package/dist/common/components/charts/LineChart/index.es.js +0 -208
  227. package/dist/common/components/charts/StackedLineChart/CategoryIconLabel/index.es.js +0 -24
  228. package/dist/common/components/charts/StackedLineChart/CustomAreaTooltip/index.es.js +0 -69
  229. package/dist/common/components/charts/StackedLineChart/CustomLegend/index.es.js +0 -70
  230. package/dist/common/components/charts/StackedLineChart/CustomPointTooltip/index.es.js +0 -22
  231. package/dist/common/components/charts/StackedLineChart/index.es.js +0 -222
  232. package/dist/common/components/daterangeselector/DateRangeSelector/index.es.js +0 -254
  233. package/dist/common/components/dialog/Dialog/index.es.js +0 -61
  234. package/dist/common/components/donuts/MultiSegmentDonut/index.es.js +0 -60
  235. package/dist/common/components/drawer/Drawer/index.es.js +0 -71
  236. package/dist/common/components/drawer/Header/index.es.js +0 -51
  237. package/dist/common/components/listitems/CollapseExpandListItem/index.es.js +0 -36
  238. package/dist/common/components/listitems/ToggleButtonListItem/index.es.js +0 -42
  239. package/dist/common/components/listitems/ToggleListItem/index.es.js +0 -38
  240. package/dist/common/constants/Analytics/index.es.js +0 -117
  241. package/dist/common/constants/ApiEndpoints/index.es.js +0 -50
  242. package/dist/common/constants/Connect/index.es.js +0 -5
  243. package/dist/common/constants/DateFormats/index.es.js +0 -65
  244. package/dist/common/constants/DefaultConfig/index.es.js +0 -105
  245. package/dist/common/constants/Donut/index.es.js +0 -5
  246. package/dist/common/constants/FinStrong/index.es.js +0 -31
  247. package/dist/common/constants/Numbers/index.es.js +0 -6
  248. package/dist/common/constants/ScheduledPayment/index.es.js +0 -15
  249. package/dist/common/constants/Sizes/index.es.js +0 -6
  250. package/dist/common/constants/SpendingPlan/index.es.js +0 -11
  251. package/dist/common/constants/Table/index.es.js +0 -16
  252. package/dist/common/context/GlobalDataProvider/index.es.js +0 -23
  253. package/dist/common/context/WidgetContainerProvider/index.es.js +0 -17
  254. package/dist/common/context/hooks/index.es.js +0 -44
  255. package/dist/common/hooks/useCombineEvents/index.es.js +0 -20
  256. package/dist/common/hooks/useInsightsEnabled/index.es.js +0 -11
  257. package/dist/common/hooks/usePrevious/index.es.js +0 -11
  258. package/dist/common/stores/AppDataStore/index.es.js +0 -57
  259. package/dist/common/stores/ConnectStore/index.es.js +0 -15
  260. package/dist/common/stores/GlobalCopyStore/index.es.js +0 -35
  261. package/dist/common/stores/GlobalStore/index.es.js +0 -90
  262. package/dist/common/stores/GlobalUiStore/index.es.js +0 -54
  263. package/dist/common/stores/UserStore/index.es.js +0 -50
  264. package/dist/common/types/Account/index.es.js +0 -118
  265. package/dist/common/types/Beat/index.es.js +0 -4
  266. package/dist/common/types/Expense/index.es.js +0 -5
  267. package/dist/common/types/Goal/index.es.js +0 -6
  268. package/dist/common/types/Notification/index.es.js +0 -7
  269. package/dist/common/types/RepeatingTransaction/index.es.js +0 -7
  270. package/dist/common/types/ScreenSize/index.es.js +0 -4
  271. package/dist/common/types/Transaction/index.es.js +0 -5
  272. package/dist/common/utils/AccountFilter/index.es.js +0 -13
  273. package/dist/common/utils/Analytics/index.es.js +0 -36
  274. package/dist/common/utils/Categories/index.es.js +0 -37
  275. package/dist/common/utils/DateUtil/index.es.js +0 -48
  276. package/dist/common/utils/Fetch/index.es.js +0 -69
  277. package/dist/common/utils/NumberFormatting/index.es.js +0 -38
  278. package/dist/common/utils/PostMessage/index.es.js +0 -19
  279. package/dist/common/utils/Theme/index.es.js +0 -136
  280. package/dist/dashboard/Dashboard/index.es.js +0 -47
  281. package/dist/dashboard/Greeting/index.es.js +0 -71
  282. package/dist/dashboard/constants/Dashboard/index.es.js +0 -4
  283. package/dist/debts/DebtsWidget/index.es.js +0 -111
  284. package/dist/debts/components/DebtDrawer/index.es.js +0 -28
  285. package/dist/debts/components/DebtsChart/index.es.js +0 -134
  286. package/dist/debts/components/DebtsTable/AccountCell/index.es.js +0 -24
  287. package/dist/debts/components/DebtsTable/PriorityCell/index.es.js +0 -32
  288. package/dist/debts/components/DebtsTable/index.es.js +0 -174
  289. package/dist/debts/components/PaydownDrawer/index.es.js +0 -21
  290. package/dist/debts/components/SnowballCard/index.es.js +0 -65
  291. package/dist/debts/components/SnowballDrawer/index.es.js +0 -374
  292. package/dist/debts/components/actions/DebtsPriorityAction/index.es.js +0 -28
  293. package/dist/debts/components/actions/ExtraPaymentAction/index.es.js +0 -46
  294. package/dist/debts/components/actions/InterestRateAction/index.es.js +0 -42
  295. package/dist/debts/components/actions/MonthlyPaymentAction/index.es.js +0 -44
  296. package/dist/debts/components/actions/OriginalBalanceAction/index.es.js +0 -44
  297. package/dist/debts/components/debtsdrawer/DebtDetailsChart/index.es.js +0 -41
  298. package/dist/debts/components/debtsdrawer/DebtDetailsContent/index.es.js +0 -51
  299. package/dist/debts/components/debtsdrawer/DebtDetailsTab/index.es.js +0 -38
  300. package/dist/debts/components/debtsdrawer/DebtScheduleTab/index.es.js +0 -80
  301. package/dist/debts/components/debtsdrawer/DebtStatusCard/index.es.js +0 -61
  302. package/dist/debts/components/debtspaydown/PaydownButton/index.es.js +0 -25
  303. package/dist/debts/components/debtspaydown/PaydownContent/index.es.js +0 -31
  304. package/dist/debts/components/debtspriority/DebtsPriorityButton/index.es.js +0 -34
  305. package/dist/debts/components/debtspriority/DebtsPrioriyPopover/index.es.js +0 -74
  306. package/dist/debts/constants/index/index.es.js +0 -4
  307. package/dist/debts/hooks/useDebtsUiStore/index.es.js +0 -11
  308. package/dist/debts/store/DebtsStore/index.es.js +0 -20
  309. package/dist/debts/store/DebtsUiStore/index.es.js +0 -23
  310. package/dist/debts/utils/DebtStore/index.es.js +0 -26
  311. package/dist/debts/utils/DebtsChart/index.es.js +0 -13
  312. package/dist/debts/utils/DebtsTable/index.es.js +0 -15
  313. package/dist/debts/utils/DebtsWidget/index.es.js +0 -42
  314. package/dist/debts/utils/SnowballCard/index.es.js +0 -37
  315. package/dist/debts/utils/shared/index.es.js +0 -21
  316. package/dist/finstrong/FinancialStrengthCard/index.es.js +0 -113
  317. package/dist/finstrong/FinstrongWidget/index.es.js +0 -141
  318. package/dist/finstrong/api/FinstrongApi/index.es.js +0 -15
  319. package/dist/finstrong/components/ConnectMoreAccountsCard/index.es.js +0 -76
  320. package/dist/finstrong/components/CreditScoreGraph/index.es.js +0 -75
  321. package/dist/finstrong/components/FinancialStrengthGraph/index.es.js +0 -30
  322. package/dist/finstrong/components/KeyIndicatorsBorrowTab/index.es.js +0 -63
  323. package/dist/finstrong/components/KeyIndicatorsDrawer/index.es.js +0 -49
  324. package/dist/finstrong/components/KeyIndicatorsSaveTab/index.es.js +0 -63
  325. package/dist/finstrong/components/KeyIndicatorsSpendTab/index.es.js +0 -58
  326. package/dist/finstrong/components/KeyIndicatorsTabItem/index.es.js +0 -58
  327. package/dist/finstrong/components/KeyIndicatorsTabsWidget/index.es.js +0 -68
  328. package/dist/finstrong/components/ManageCreditScore/index.es.js +0 -49
  329. package/dist/finstrong/components/ManageDOB/index.es.js +0 -62
  330. package/dist/finstrong/components/MissingData/index.es.js +0 -38
  331. package/dist/finstrong/components/ProfileDrawer/index.es.js +0 -107
  332. package/dist/finstrong/components/ProfileList/index.es.js +0 -56
  333. package/dist/finstrong/components/ProfileProgressBar/index.es.js +0 -26
  334. package/dist/finstrong/components/ScoreHistoryDrawer/index.es.js +0 -69
  335. package/dist/finstrong/components/shared/CustomPieArc/index.es.js +0 -63
  336. package/dist/finstrong/components/shared/DialScoreCard/index.es.js +0 -190
  337. package/dist/finstrong/components/shared/ScoreHistoryTimeline/index.es.js +0 -106
  338. package/dist/finstrong/components/shared/ScoreHistoryTimelineItem/index.es.js +0 -20
  339. package/dist/finstrong/stores/FinstrongStore/index.es.js +0 -81
  340. package/dist/finstrong/util/finstrongUtils/index.es.js +0 -108
  341. package/dist/finstrong/utils/Finstrong/index.es.js +0 -13
  342. package/dist/goals/GoalsMicroWidget/index.es.js +0 -51
  343. package/dist/goals/GoalsWidget/index.es.js +0 -138
  344. package/dist/goals/api/GoalApi/index.es.js +0 -26
  345. package/dist/goals/components/AccountSelectionDrawer/index.es.js +0 -73
  346. package/dist/goals/components/AddGoal/AddGoalListItem/index.es.js +0 -51
  347. package/dist/goals/components/AddGoal/index.es.js +0 -56
  348. package/dist/goals/components/GoalDetails/index.es.js +0 -69
  349. package/dist/goals/components/GoalDetailsDrawer/index.es.js +0 -82
  350. package/dist/goals/components/GoalList/index.es.js +0 -87
  351. package/dist/goals/components/GoalStatusCard/index.es.js +0 -59
  352. package/dist/goals/components/ManageGoals/CompleteListItem/index.es.js +0 -35
  353. package/dist/goals/components/ManageGoals/OngoingListItem/index.es.js +0 -47
  354. package/dist/goals/components/ManageGoals/ReorderGoals/index.es.js +0 -118
  355. package/dist/goals/components/ManageGoals/index.es.js +0 -74
  356. package/dist/goals/components/TabTitle/index.es.js +0 -12
  357. package/dist/goals/components/actions/AccountAction/index.es.js +0 -46
  358. package/dist/goals/components/actions/AddRetirementAccountAction/index.es.js +0 -66
  359. package/dist/goals/components/actions/AmountToSaveAction/index.es.js +0 -46
  360. package/dist/goals/components/actions/BirthdayAction/index.es.js +0 -42
  361. package/dist/goals/components/actions/ChangeAccountAction/index.es.js +0 -91
  362. package/dist/goals/components/actions/ContributionAction/index.es.js +0 -46
  363. package/dist/goals/components/actions/GoalNameAction/index.es.js +0 -42
  364. package/dist/goals/components/actions/InterestRateAction/index.es.js +0 -44
  365. package/dist/goals/components/actions/MonthlyPaymentAction/index.es.js +0 -45
  366. package/dist/goals/components/actions/OriginalBalanceAction/index.es.js +0 -45
  367. package/dist/goals/components/actions/RetirementAgeAction/index.es.js +0 -43
  368. package/dist/goals/components/micro/GoalMicroStatusCard/index.es.js +0 -42
  369. package/dist/goals/components/micro/GoalsMicroEmptyState/index.es.js +0 -31
  370. package/dist/goals/stores/GoalStore/index.es.js +0 -184
  371. package/dist/goals/util/GoalsUtil/index.es.js +0 -98
  372. package/dist/help/HelpWidget/index.es.js +0 -13
  373. package/dist/help/api/HelpApi/index.es.js +0 -12
  374. package/dist/help/components/Help/index.es.js +0 -45
  375. package/dist/help/components/HelpContent/index.es.js +0 -32
  376. package/dist/help/components/HelpList/index.es.js +0 -118
  377. package/dist/help/components/content/BottomImageContent/index.es.js +0 -50
  378. package/dist/help/components/content/ContentItem/index.es.js +0 -21
  379. package/dist/help/components/content/Header/index.es.js +0 -62
  380. package/dist/help/components/content/LeftImageContent/index.es.js +0 -50
  381. package/dist/help/components/content/NoImageContent/index.es.js +0 -14
  382. package/dist/help/components/content/RightImageContent/index.es.js +0 -48
  383. package/dist/help/components/content/TopImageContent/index.es.js +0 -50
  384. package/dist/help/components/content/section/Accounts/index.es.js +0 -249
  385. package/dist/help/components/content/section/Budgets/index.es.js +0 -102
  386. package/dist/help/components/content/section/CashFlow/index.es.js +0 -71
  387. package/dist/help/components/content/section/Debts/index.es.js +0 -252
  388. package/dist/help/components/content/section/General/index.es.js +0 -163
  389. package/dist/help/components/content/section/Goals/index.es.js +0 -195
  390. package/dist/help/components/content/section/Insights/index.es.js +0 -136
  391. package/dist/help/components/content/section/Investments/index.es.js +0 -71
  392. package/dist/help/components/content/section/Mobile/index.es.js +0 -85
  393. package/dist/help/components/content/section/NetWorth/index.es.js +0 -142
  394. package/dist/help/components/content/section/Notifications/index.es.js +0 -120
  395. package/dist/help/components/content/section/RecurringTransactions/index.es.js +0 -104
  396. package/dist/help/components/content/section/Spending/index.es.js +0 -112
  397. package/dist/help/components/content/section/Transactions/index.es.js +0 -389
  398. package/dist/help/components/content/section/Trends/index.es.js +0 -83
  399. package/dist/help/components/content/section/index/index.es.js +0 -35
  400. package/dist/help/components/requestsupport/ContactSupport/index.es.js +0 -99
  401. package/dist/help/components/requestsupport/HelpByCategoryList/index.es.js +0 -82
  402. package/dist/help/components/requestsupport/MissingInstitution/index.es.js +0 -95
  403. package/dist/help/components/requestsupport/PopularTopicsDrawer/index.es.js +0 -50
  404. package/dist/help/components/requestsupport/PopularTopicsList/index.es.js +0 -22
  405. package/dist/help/components/requestsupport/PopularTopicsRow/index.es.js +0 -30
  406. package/dist/help/components/requestsupport/RequestSupport/index.es.js +0 -179
  407. package/dist/help/components/requestsupport/RequestSupportFooter/index.es.js +0 -26
  408. package/dist/help/components/requestsupport/RequestSupportHeader/index.es.js +0 -39
  409. package/dist/help/components/requestsupport/RequestSupportInstitution/index.es.js +0 -75
  410. package/dist/help/components/requestsupport/SupportSuccessMessage/index.es.js +0 -29
  411. package/dist/help/constants/HelpImages/index.es.js +0 -47
  412. package/dist/help/store/HelpStore/index.es.js +0 -42
  413. package/dist/help/utils/getAccessibleHelpCategories/index.es.js +0 -21
  414. package/dist/help/utils/getInstitutionsBasedOnGuid/index.es.js +0 -14
  415. package/dist/insights/store/BeatStore/index.es.js +0 -35
  416. package/dist/investments/InvestmentsWidget/index.es.js +0 -107
  417. package/dist/investments/api/HoldingApi/index.es.js +0 -13
  418. package/dist/investments/components/Allocation/InvestementAllocationList/index.es.js +0 -126
  419. package/dist/investments/components/Allocation/InvestmentsAllocationChart/index.es.js +0 -67
  420. package/dist/investments/components/Allocation/index.es.js +0 -67
  421. package/dist/investments/components/Allocation/util/createInvestementsAllocationData/index.es.js +0 -134
  422. package/dist/investments/components/Analysis/index.es.js +0 -169
  423. package/dist/investments/components/AnalysisDetails/index.es.js +0 -81
  424. package/dist/investments/components/EmptyStateFooterComponent/index.es.js +0 -52
  425. package/dist/investments/components/HeaderCell/index.es.js +0 -11
  426. package/dist/investments/components/HoldingDrawer/index.es.js +0 -322
  427. package/dist/investments/components/HoldingTable/index.es.js +0 -183
  428. package/dist/investments/components/InfoToolTip/index.es.js +0 -25
  429. package/dist/investments/components/Overview/index.es.js +0 -441
  430. package/dist/investments/components/TabTitle/index.es.js +0 -6
  431. package/dist/investments/constants/index/index.es.js +0 -53
  432. package/dist/investments/stores/HoldingStore/index.es.js +0 -59
  433. package/dist/investments/util/InvestmentUtil/index.es.js +0 -100
  434. package/dist/merchants/api/MerchantApi/index.es.js +0 -16
  435. package/dist/merchants/components/MerchantLookup/index.es.js +0 -77
  436. package/dist/merchants/stores/MerchantStore/index.es.js +0 -26
  437. package/dist/microinsights/analytics/index.es.js +0 -10
  438. package/dist/microinsights/components/MicroWidgetContainer/index.es.js +0 -28
  439. package/dist/microinsights/components/beatCard/BeatCard/index.es.js +0 -98
  440. package/dist/microinsights/components/beaticons/BeatCategoryIcon/index.es.js +0 -13
  441. package/dist/microinsights/components/beaticons/BeatIcon/index.es.js +0 -22
  442. package/dist/microinsights/components/beaticons/BeatMerchantLogo/index.es.js +0 -24
  443. package/dist/microinsights/components/beaticons/ChartFilledIcon/index.es.js +0 -31
  444. package/dist/microinsights/components/beaticons/MonthlySpendComparisonIcon/index.es.js +0 -14
  445. package/dist/microinsights/components/beaticons/ZeroStateIcon/index.es.js +0 -786
  446. package/dist/microinsights/components/carouselheader/CarouselHeader/index.es.js +0 -82
  447. package/dist/microinsights/components/insightsmicrowidget/InsightsMicroWidget/index.es.js +0 -105
  448. package/dist/microinsights/components/microBeatCarousel/CarouselControls/index.es.js +0 -101
  449. package/dist/microinsights/components/microBeatCarousel/MicroBeatCarousel/index.es.js +0 -187
  450. package/dist/microinsights/components/microInsightCard/MicroInsightCard/index.es.js +0 -152
  451. package/dist/microinsights/components/noRelevantInsightsCard/NoRelevantInsightsCard/index.es.js +0 -67
  452. package/dist/microinsights/components/spinner/Spinner/index.es.js +0 -19
  453. package/dist/microinsights/components/viewMoreMicroCard/ViewMoreMicroCard/index.es.js +0 -58
  454. package/dist/microinsights/components/zeroStateCard/ZeroStateCard/index.es.js +0 -55
  455. package/dist/microinsights/constants/Analytics/index.es.js +0 -163
  456. package/dist/microinsights/constants/App/index.es.js +0 -11
  457. package/dist/microinsights/context/InsightsMicroWidgetDataProvider/index.es.js +0 -12
  458. package/dist/microinsights/context/hooks/index.es.js +0 -31
  459. package/dist/microinsights/stores/AppStore/index.es.js +0 -25
  460. package/dist/microinsights/stores/CopyStore/index.es.js +0 -32
  461. package/dist/microinsights/stores/InsightsMicroWidgetStore/index.es.js +0 -31
  462. package/dist/microinsights/utils/DataSeries/index.es.js +0 -9
  463. package/dist/networth/NetWorthMicroWidget/index.es.js +0 -44
  464. package/dist/networth/NetWorthWidget/index.es.js +0 -159
  465. package/dist/networth/components/AssetsLiabilitiesDetail/index.es.js +0 -109
  466. package/dist/networth/components/GainsLossesDetail/index.es.js +0 -94
  467. package/dist/networth/components/NetWorthChange/index.es.js +0 -31
  468. package/dist/networth/components/NetWorthChart/index.es.js +0 -45
  469. package/dist/networth/components/NetWorthList/index.es.js +0 -60
  470. package/dist/networth/components/NetWorthListItem/index.es.js +0 -60
  471. package/dist/networth/components/NetWorthSummary/index.es.js +0 -20
  472. package/dist/networth/components/micro/NetworthData/index.es.js +0 -21
  473. package/dist/networth/components/micro/ZeroState/index.es.js +0 -14
  474. package/dist/networth/stores/NetWorthStore/index.es.js +0 -65
  475. package/dist/networth/utils/NetWorthUtils/index.es.js +0 -95
  476. package/dist/notifications/components/DateRow/index.es.js +0 -8
  477. package/dist/notifications/components/NotificationBadge/index.es.js +0 -26
  478. package/dist/notifications/components/NotificationCard/index.es.js +0 -42
  479. package/dist/notifications/components/NotificationDrawer/index.es.js +0 -67
  480. package/dist/notifications/components/NotificationList/index.es.js +0 -36
  481. package/dist/notifications/components/NotificationsEmptyState/index.es.js +0 -34
  482. package/dist/notifications/constants/NotificationConstants/index.es.js +0 -22
  483. package/dist/notifications/stores/NotificationStore/index.es.js +0 -37
  484. package/dist/notifications/utils/NotificationUtils/index.es.js +0 -16
  485. package/dist/recurringtransactions/RecurringTransactionsMicroWidget/index.es.js +0 -179
  486. package/dist/recurringtransactions/RecurringTransactionsMiniWidget/index.es.js +0 -37
  487. package/dist/recurringtransactions/RecurringTransactionsWidget/index.es.js +0 -67
  488. package/dist/recurringtransactions/ZeroStateMicroWidget/index.es.js +0 -19
  489. package/dist/recurringtransactions/api/RepeatingTransactionsApi/index.es.js +0 -18
  490. package/dist/recurringtransactions/components/MiniWidgetContent/index.es.js +0 -32
  491. package/dist/recurringtransactions/components/PaymentSchedule/index.es.js +0 -100
  492. package/dist/recurringtransactions/components/RecurrenceBadges/index.es.js +0 -20
  493. package/dist/recurringtransactions/components/RecurrenceList/index.es.js +0 -69
  494. package/dist/recurringtransactions/components/RecurrenceRow/index.es.js +0 -149
  495. package/dist/recurringtransactions/components/RecurringStatus/index.es.js +0 -42
  496. package/dist/recurringtransactions/components/RecurringTransactionDetails/index.es.js +0 -130
  497. package/dist/recurringtransactions/components/RecurringTransactions/index.es.js +0 -163
  498. package/dist/recurringtransactions/components/actions/PaymentScheduleAction/index.es.js +0 -56
  499. package/dist/recurringtransactions/components/micro/MerchantLogosRow/index.es.js +0 -17
  500. package/dist/recurringtransactions/components/micro/OverlappingMerchantLogos/index.es.js +0 -44
  501. package/dist/recurringtransactions/components/micro/RecurrenceLegend/index.es.js +0 -31
  502. package/dist/recurringtransactions/components/recurrencecalendar/Legend/index.es.js +0 -32
  503. package/dist/recurringtransactions/components/recurrencecalendar/RecurrenceCalendar/index.es.js +0 -84
  504. package/dist/recurringtransactions/components/recurrencecalendar/RecurrenceDay/index.es.js +0 -68
  505. package/dist/recurringtransactions/components/shared/recurringsettings/AddRecurringTransaction/index.es.js +0 -114
  506. package/dist/recurringtransactions/components/shared/recurringsettings/AddRecurringTransactionDetails/index.es.js +0 -44
  507. package/dist/recurringtransactions/components/shared/recurringsettings/ManageExpenses/index.es.js +0 -31
  508. package/dist/recurringtransactions/components/shared/recurringsettings/ManageIncome/index.es.js +0 -38
  509. package/dist/recurringtransactions/components/shared/recurringsettings/RecurringRow/index.es.js +0 -108
  510. package/dist/recurringtransactions/components/shared/recurringsettings/SelectTransaction/index.es.js +0 -37
  511. package/dist/recurringtransactions/components/shared/recurringsettings/index.es.js +0 -36
  512. package/dist/recurringtransactions/util/RecurringTransactions/index.es.js +0 -232
  513. package/dist/settings/NotificationSettingsWidget/index.es.js +0 -13
  514. package/dist/settings/SettingsWidget/index.es.js +0 -55
  515. package/dist/settings/TransactionRulesWidget/index.es.js +0 -12
  516. package/dist/settings/api/SettingsApi/index.es.js +0 -23
  517. package/dist/settings/components/SettingsWidgetContents/index.es.js +0 -47
  518. package/dist/settings/components/devices/DeviceDialog/index.es.js +0 -129
  519. package/dist/settings/components/devices/DeviceList/index.es.js +0 -118
  520. package/dist/settings/components/devices/DeviceTab/index.es.js +0 -79
  521. package/dist/settings/components/devices/DeviceTable/index.es.js +0 -134
  522. package/dist/settings/components/notifications/AccountNotificationProfile/index.es.js +0 -80
  523. package/dist/settings/components/notifications/AccountNotificationProfiles/index.es.js +0 -55
  524. package/dist/settings/components/notifications/AccountProfileListItem/index.es.js +0 -102
  525. package/dist/settings/components/notifications/BudgetNotificationProfiles/index.es.js +0 -12
  526. package/dist/settings/components/notifications/DeliveryMethods/index.es.js +0 -77
  527. package/dist/settings/components/notifications/InsightsNotificationProfiles/index.es.js +0 -12
  528. package/dist/settings/components/notifications/NotificationProfile/index.es.js +0 -96
  529. package/dist/settings/components/notifications/NotificationSettings/index.es.js +0 -89
  530. package/dist/settings/components/notifications/PersonalDetails/index.es.js +0 -99
  531. package/dist/settings/components/profile/ProfileTab/index.es.js +0 -204
  532. package/dist/settings/components/profile/actions/VerifyEmailAction/index.es.js +0 -63
  533. package/dist/settings/components/profile/actions/VerifyPhoneAction/index.es.js +0 -80
  534. package/dist/settings/components/profile/actions/VerifyTokenAction/index.es.js +0 -36
  535. package/dist/settings/components/transactionrules/TransactionRulesTab/index.es.js +0 -23
  536. package/dist/settings/components/transactionrules/actions/DeleteRuleAction/index.es.js +0 -34
  537. package/dist/settings/components/transactionrules/actions/EditCategoryAction/index.es.js +0 -38
  538. package/dist/settings/components/transactionrules/actions/EditPayeeAction/index.es.js +0 -52
  539. package/dist/settings/components/transactionrules/actions/EditRuleAction/index.es.js +0 -33
  540. package/dist/settings/components/transactionrules/components/EditRuleDetails/index.es.js +0 -52
  541. package/dist/settings/components/transactionrules/components/RuleListItem/index.es.js +0 -20
  542. package/dist/settings/constants/Settings/index.es.js +0 -4
  543. package/dist/settings/stores/SettingsStore/index.es.js +0 -187
  544. package/dist/settings/util/Notifications/index.es.js +0 -64
  545. package/dist/spending/SpendingMiniWidget/index.es.js +0 -26
  546. package/dist/spending/SpendingWidget/index.es.js +0 -38
  547. package/dist/spending/components/MiniSpendingChart/index.es.js +0 -115
  548. package/dist/spending/components/Spending/index.es.js +0 -141
  549. package/dist/spending/components/SpendingChart/index.es.js +0 -61
  550. package/dist/spending/components/SpendingDonut/index.es.js +0 -69
  551. package/dist/spending/components/SpendingLegend/index.es.js +0 -25
  552. package/dist/spending/components/SpendingList/index.es.js +0 -96
  553. package/dist/spending/components/SpendingTabLabel/index.es.js +0 -11
  554. package/dist/spending/utils/SpendingData/index.es.js +0 -86
  555. package/dist/transactions/TransactionWidget/index.es.js +0 -242
  556. package/dist/transactions/analytics/index.es.js +0 -5
  557. package/dist/transactions/components/shared/TransactionDetails/Description/index.es.js +0 -68
  558. package/dist/transactions/components/shared/TransactionDetails/FlagTransaction/index.es.js +0 -43
  559. package/dist/transactions/components/shared/TransactionDetails/ManualTransactionDetails/index.es.js +0 -126
  560. package/dist/transactions/components/shared/TransactionDetails/TransactionAmountHeader/index.es.js +0 -27
  561. package/dist/transactions/components/shared/TransactionDetails/actions/CategoryAction/index.es.js +0 -105
  562. package/dist/transactions/components/shared/TransactionDetails/actions/DateAction/index.es.js +0 -81
  563. package/dist/transactions/components/shared/TransactionDetails/actions/DeleteAction/index.es.js +0 -60
  564. package/dist/transactions/components/shared/TransactionDetails/actions/DeleteLogoAction/index.es.js +0 -60
  565. package/dist/transactions/components/shared/TransactionDetails/actions/HideAction/index.es.js +0 -90
  566. package/dist/transactions/components/shared/TransactionDetails/actions/MemoAction/index.es.js +0 -91
  567. package/dist/transactions/components/shared/TransactionDetails/actions/SplitAction/index.es.js +0 -143
  568. package/dist/transactions/components/shared/TransactionDetails/actions/TagsAction/index.es.js +0 -75
  569. package/dist/transactions/components/shared/TransactionDetails/index.es.js +0 -79
  570. package/dist/transactions/components/shared/TransactionList/TransactionRow/index.es.js +0 -84
  571. package/dist/transactions/components/shared/TransactionList/ZeroState/index.es.js +0 -17
  572. package/dist/transactions/components/shared/TransactionList/index.es.js +0 -82
  573. package/dist/transactions/components/shared/TransactionTable/cells/AccountCell/index.es.js +0 -9
  574. package/dist/transactions/components/shared/TransactionTable/cells/AmountCell/index.es.js +0 -20
  575. package/dist/transactions/components/shared/TransactionTable/cells/CategoryCell/index.es.js +0 -29
  576. package/dist/transactions/components/shared/TransactionTable/cells/DateCell/index.es.js +0 -8
  577. package/dist/transactions/components/shared/TransactionTable/cells/FlagCell/index.es.js +0 -38
  578. package/dist/transactions/components/shared/TransactionTable/cells/HeaderCell/index.es.js +0 -6
  579. package/dist/transactions/components/shared/TransactionTable/cells/PayeeCell/index.es.js +0 -16
  580. package/dist/transactions/components/shared/TransactionTable/index.es.js +0 -110
  581. package/dist/transactions/components/splitmanager/SplitManager/index.es.js +0 -69
  582. package/dist/transactions/components/splitmanager/SplitRow/index.es.js +0 -126
  583. package/dist/transactions/components/tagmanager/Header/index.es.js +0 -78
  584. package/dist/transactions/components/tagmanager/SearchBox/index.es.js +0 -37
  585. package/dist/transactions/components/tagmanager/TagManager/index.es.js +0 -32
  586. package/dist/transactions/components/tagmanager/TagRow/index.es.js +0 -114
  587. package/dist/transactions/components/transactionwidget/AddAccountModal/index.es.js +0 -29
  588. package/dist/transactions/components/transactionwidget/actions/EditCategoryAction/index.es.js +0 -54
  589. package/dist/transactions/constants/Actions/index.es.js +0 -19
  590. package/dist/transactions/constants/Analytics/index.es.js +0 -259
  591. package/dist/transactions/constants/OnClickEvents/index.es.js +0 -48
  592. package/dist/transactions/constants/Transaction/index.es.js +0 -33
  593. package/dist/transactions/constants/TransactionsTable/index.es.js +0 -11
  594. package/dist/transactions/context/hooks/index.es.js +0 -11
  595. package/dist/transactions/stores/TransactionStore/index.es.js +0 -224
  596. package/dist/transactions/stores/UiStore/index.es.js +0 -48
  597. package/dist/transactions/utils/Filters/index.es.js +0 -9
  598. package/dist/transactions/utils/Transactions/index.es.js +0 -13
  599. package/dist/transactions/utils/buildDetailedTransactions/index.es.js +0 -35
  600. package/dist/transactions/utils/sortAndFilterTransactions/index.es.js +0 -44
  601. package/dist/trends/TrendsFullWidget/index.es.js +0 -157
  602. package/dist/trends/TrendsMicroWidget/index.es.js +0 -86
  603. package/dist/trends/TrendsMiniWidget/index.es.js +0 -28
  604. package/dist/trends/TrendsWidget/index.es.js +0 -173
  605. package/dist/trends/ZeroStateMicroWidget/index.es.js +0 -19
  606. package/dist/trends/components/CategoriesList/index.es.js +0 -62
  607. package/dist/trends/components/CategoriesListItem/index.es.js +0 -25
  608. package/dist/trends/components/CategoryDetailChart/index.es.js +0 -34
  609. package/dist/trends/components/CategoryDetailDrawer/index.es.js +0 -44
  610. package/dist/trends/components/DateRangeText/index.es.js +0 -39
  611. package/dist/trends/components/SpendingChart/index.es.js +0 -28
  612. package/dist/trends/components/TransactionsList/index.es.js +0 -81
  613. package/dist/trends/components/TrendsChart/index.es.js +0 -45
  614. package/dist/trends/components/TrendsChartTotals/index.es.js +0 -56
  615. package/dist/trends/components/TrendsDrawer/index.es.js +0 -48
  616. package/dist/trends/components/TrendsInsights/index.es.js +0 -43
  617. package/dist/trends/components/TrendsMicroSpendingIncomeBox/index.es.js +0 -96
  618. package/dist/trends/components/TrendsTable/AmountCell/index.es.js +0 -10
  619. package/dist/trends/components/TrendsTable/CategoryCell/index.es.js +0 -30
  620. package/dist/trends/components/TrendsTable/index.es.js +0 -96
  621. package/dist/trends/components/TrendsViewToggle/index.es.js +0 -17
  622. package/dist/trends/constants/TrendsInsights/index.es.js +0 -38
  623. package/dist/trends/stores/TrendsStore/index.es.js +0 -77
  624. package/dist/trends/utils/SpendingData/index.es.js +0 -47
  625. package/dist/trends/utils/TrendsData/index.es.js +0 -41
  626. package/dist/trends/utils/shared/index.es.js +0 -15
  627. /package/dist/budgets/components/{BubbleChart → bubblechart}/Bubble.d.ts +0 -0
  628. /package/dist/budgets/components/{BubbleChart → bubblechart}/Mercury.d.ts +0 -0
  629. /package/dist/budgets/components/{BudgetList → budgetlist}/BudgetRow.d.ts +0 -0
  630. /package/dist/budgets/components/{BudgetList → budgetlist}/SubBudgetRow.d.ts +0 -0
  631. /package/dist/budgets/components/{BudgetList → budgetlist}/SubBudgetZeroState.d.ts +0 -0
  632. /package/dist/common/components/charts/{LineChart → linechart}/CustomLegend.d.ts +0 -0
  633. /package/dist/common/components/charts/{LineChart → linechart}/CustomLine.d.ts +0 -0
  634. /package/dist/common/components/charts/{LineChart → linechart}/CustomMark.d.ts +0 -0
  635. /package/dist/common/components/charts/{LineChart → linechart}/CustomTooltip.d.ts +0 -0
  636. /package/dist/common/components/charts/{StackedLineChart → stackedlinechart}/CategoryIconLabel.d.ts +0 -0
  637. /package/dist/common/components/charts/{StackedLineChart → stackedlinechart}/CustomAreaTooltip.d.ts +0 -0
  638. /package/dist/common/components/charts/{StackedLineChart → stackedlinechart}/CustomLegend.d.ts +0 -0
  639. /package/dist/common/components/charts/{StackedLineChart → stackedlinechart}/CustomPointTooltip.d.ts +0 -0
  640. /package/dist/common/components/charts/{StackedLineChart → stackedlinechart}/utils.d.ts +0 -0
  641. /package/dist/debts/components/{DebtsTable → debtstable}/AccountCell.d.ts +0 -0
  642. /package/dist/debts/components/{DebtsTable → debtstable}/PriorityCell.d.ts +0 -0
  643. /package/dist/goals/components/{AddGoal → addgoal}/AddGoalListItem.d.ts +0 -0
  644. /package/dist/goals/components/{ManageGoals → managegoals}/CompleteListItem.d.ts +0 -0
  645. /package/dist/goals/components/{ManageGoals → managegoals}/OngoingListItem.d.ts +0 -0
  646. /package/dist/goals/components/{ManageGoals → managegoals}/ReorderGoals.d.ts +0 -0
  647. /package/dist/investments/components/{Allocation → allocation}/InvestementAllocationList.d.ts +0 -0
  648. /package/dist/investments/components/{Allocation → allocation}/InvestmentsAllocationChart.d.ts +0 -0
  649. /package/dist/investments/components/{Allocation → allocation}/util/createInvestementsAllocationData.d.ts +0 -0
  650. /package/dist/transactions/components/shared/{TransactionDetails → transactiondetails}/Description.d.ts +0 -0
  651. /package/dist/transactions/components/shared/{TransactionDetails → transactiondetails}/FlagTransaction.d.ts +0 -0
  652. /package/dist/transactions/components/shared/{TransactionDetails → transactiondetails}/ManualTransactionDetails.d.ts +0 -0
  653. /package/dist/transactions/components/shared/{TransactionDetails → transactiondetails}/TransactionAmountHeader.d.ts +0 -0
  654. /package/dist/transactions/components/shared/{TransactionDetails → transactiondetails}/actions/CategoryAction.d.ts +0 -0
  655. /package/dist/transactions/components/shared/{TransactionDetails → transactiondetails}/actions/DateAction.d.ts +0 -0
  656. /package/dist/transactions/components/shared/{TransactionDetails → transactiondetails}/actions/DeleteAction.d.ts +0 -0
  657. /package/dist/transactions/components/shared/{TransactionDetails → transactiondetails}/actions/DeleteLogoAction.d.ts +0 -0
  658. /package/dist/transactions/components/shared/{TransactionDetails → transactiondetails}/actions/HideAction.d.ts +0 -0
  659. /package/dist/transactions/components/shared/{TransactionDetails → transactiondetails}/actions/MemoAction.d.ts +0 -0
  660. /package/dist/transactions/components/shared/{TransactionDetails → transactiondetails}/actions/SplitAction.d.ts +0 -0
  661. /package/dist/transactions/components/shared/{TransactionDetails → transactiondetails}/actions/TagsAction.d.ts +0 -0
  662. /package/dist/transactions/components/shared/{TransactionDetails → transactiondetails}/actions/index.d.ts +0 -0
  663. /package/dist/transactions/components/shared/{TransactionList → transactionlist}/DateRow.d.ts +0 -0
  664. /package/dist/transactions/components/shared/{TransactionList → transactionlist}/TransactionRow.d.ts +0 -0
  665. /package/dist/transactions/components/shared/{TransactionList → transactionlist}/ZeroState.d.ts +0 -0
  666. /package/dist/transactions/components/shared/{TransactionTable → transactiontable}/cells/AccountCell.d.ts +0 -0
  667. /package/dist/transactions/components/shared/{TransactionTable → transactiontable}/cells/AmountCell.d.ts +0 -0
  668. /package/dist/transactions/components/shared/{TransactionTable → transactiontable}/cells/CategoryCell.d.ts +0 -0
  669. /package/dist/transactions/components/shared/{TransactionTable → transactiontable}/cells/DateCell.d.ts +0 -0
  670. /package/dist/transactions/components/shared/{TransactionTable → transactiontable}/cells/FlagCell.d.ts +0 -0
  671. /package/dist/transactions/components/shared/{TransactionTable → transactiontable}/cells/HeaderCell.d.ts +0 -0
  672. /package/dist/transactions/components/shared/{TransactionTable → transactiontable}/cells/PayeeCell.d.ts +0 -0
  673. /package/dist/transactions/components/shared/{TransactionTable → transactiontable}/cells/index.d.ts +0 -0
  674. /package/dist/trends/components/{TrendsTable → trendstable}/AmountCell.d.ts +0 -0
  675. /package/dist/trends/components/{TrendsTable → trendstable}/CategoryCell.d.ts +0 -0
  676. /package/dist/trends/components/{TrendsTable → trendstable}/HeaderCell.d.ts +0 -0
@@ -1,12 +1,1103 @@
1
- import { default as t } from "./TrendsFullWidget/index.es.js";
2
- import { default as o } from "./TrendsMiniWidget/index.es.js";
3
- import { TrendsMicroWidget as s } from "./TrendsMicroWidget/index.es.js";
4
- import { default as a } from "./TrendsWidget/index.es.js";
5
- import { TrendsStore as l } from "./stores/TrendsStore/index.es.js";
1
+ import { jsx as e, jsxs as y } from "react/jsx-runtime";
2
+ import m from "react";
3
+ import { observer as E } from "mobx-react-lite";
4
+ import { Icon as X, Text as W, CategoryIcon as me, P as U, H3 as we, ChevronRightIcon as Ve, MerchantLogo as ze } from "@mxenabled/mxui";
5
+ import O from "@mui/material/Box";
6
+ import f from "@mui/material/Stack";
7
+ import ge from "@mui/material/Button";
8
+ import { addSeconds as xe } from "date-fns/addSeconds";
9
+ import { differenceInCalendarMonths as De } from "date-fns/differenceInCalendarMonths";
10
+ import { a as be, C as Le } from "../Category-5S6uwuXz.mjs";
11
+ import { c as Pe, i as $e, d as je, e as Ke, b as ve, g as Ie, f as Te } from "../SpendingData-ByFCw95X.mjs";
12
+ import Ye from "@mui/material/ToggleButton";
13
+ import Ue from "@mui/material/ToggleButtonGroup";
14
+ import { u as A, k as P, g as q, a as $, n as pe, c as se, w as j, l as Ee, p as Xe, j as Ze } from "../hooks-ClhFlg78.mjs";
15
+ import { u as F } from "../useScreenSize-B6JyS_Lj.mjs";
16
+ import { f as Z, D as G } from "../Dialog-CWW597AF.mjs";
17
+ import { DataGridPro as Qe } from "@mui/x-data-grid-pro";
18
+ import { C as qe } from "../CurrencyText-YUhH2caW.mjs";
19
+ import { b as Je } from "../Localization-2MODESHW.mjs";
20
+ import { H as _e } from "../HeaderCell-DjuifqHJ.mjs";
21
+ import { A as D, W as Me } from "../WidgetContainer-CmGNZW0M.mjs";
22
+ import { a as et, T as tt, S as nt } from "../TransactionDetails-B5qfs9Zh.mjs";
23
+ import { D as Ae } from "../Drawer-kEE73B87.mjs";
24
+ import { S as ot, u as st } from "../TrendsStore-Borh98aN.mjs";
25
+ import { T as to } from "../TrendsStore-Borh98aN.mjs";
26
+ import { L as Q } from "../Loader-Dp1P2gNw.mjs";
27
+ import { useTheme as ye } from "@mui/material/styles";
28
+ import { L as fe } from "../LineChart-CQWu5KoO.mjs";
29
+ import { M as rt } from "../MiniWidgetContainer-BcNPxZt2.mjs";
30
+ import { subMonths as at, format as it, fromUnixTime as ct } from "date-fns";
31
+ import { TrendingUp as lt, TrendingDown as dt, MultilineChart as ut, ExpandLess as gt, ExpandMore as ht } from "@mxenabled/mx-icons";
32
+ import { a as mt, f as z } from "../NumberFormatting-CtWHhyBX.mjs";
33
+ import { M as pt } from "../MicroWidgetContainer-DaLW43tE.mjs";
34
+ import yt from "@mui/material/Collapse";
35
+ import ke from "@mui/material/Divider";
36
+ import Re from "@mui/material/List";
37
+ import He from "@mui/material/ListItem";
38
+ import Ne from "@mui/material/ListItemButton";
39
+ import he from "@mui/material/ListItemIcon";
40
+ import We from "@mui/material/ListItemText";
41
+ import ft from "@mui/material/styles/useTheme";
42
+ import { useTheme as Ct, Stack as bt } from "@mui/material";
43
+ import { b as Tt } from "../ViewMoreMicroCard-CAPFNz-J.mjs";
44
+ import _t from "@mui/material/Link";
45
+ import { b as St } from "../CategoryUtil-DRyruNgi.mjs";
46
+ import { E as wt } from "../EmptyState-Dcb-o2tl.mjs";
47
+ const xt = (t) => be[t] ?? be.default, Dt = (t) => Le[t];
48
+ function Lt(t, s) {
49
+ const n = [], o = new Date(t);
50
+ for (; o <= s; ) {
51
+ const r = o.getFullYear(), i = String(o.getMonth() + 1).padStart(2, "0");
52
+ n.push(+`${r}${i}`), o.setMonth(o.getMonth() + 1);
53
+ }
54
+ return n;
55
+ }
56
+ const vt = (t) => t.reduce((n, o) => {
57
+ const r = {
58
+ top_level_category_guid: o.top_level_category_guid,
59
+ category_guid: o.category_guid,
60
+ amount: o.total,
61
+ year_month: o.year_month
62
+ }, { top_level_category_guid: i, category_guid: a } = r;
63
+ return n[a] || (n[a] = []), n[a].push(r), i !== a && (n[i] || (n[i] = []), n[i].push(r)), n;
64
+ }, {}), It = (t, s, n) => {
65
+ const o = vt(t), r = Lt(s, n);
66
+ return Object.entries(o).map(([a, c]) => {
67
+ const u = c[0].top_level_category_guid, p = r.map((l) => {
68
+ const d = c.filter((h) => h.year_month === l).reduce((h, C) => h + Math.abs(C.amount), 0), b = Number(String(l).slice(0, 4)), g = Number(String(l).slice(4));
69
+ return { x: new Date(b, g - 1), y: d };
70
+ }).sort((l, d) => l.x.getTime() - d.x.getTime());
71
+ return {
72
+ top_level_category_guid: u,
73
+ category_guid: a,
74
+ category_name: Dt(a),
75
+ category_color: xt(u),
76
+ dataset: p
77
+ };
78
+ });
79
+ }, Et = (t, s) => {
80
+ const n = typeof t == "string" ? parseFloat(t.replace(/[^0-9.-]+/g, "")) : t, o = typeof s == "string" ? parseFloat(s.replace(/[^0-9.-]+/g, "")) : s;
81
+ return (n || 0) - (o || 0);
82
+ }, Oe = ({ selectedTab: t, onTabChange: s }) => /* @__PURE__ */ e(
83
+ Ue,
84
+ {
85
+ exclusive: !0,
86
+ onChange: s,
87
+ orientation: "horizontal",
88
+ value: t,
89
+ children: ["Chart", "Table"].map((n) => /* @__PURE__ */ e(Ye, { color: "primary", sx: { width: 56 }, value: n, children: n === "Chart" ? /* @__PURE__ */ e(X, { name: "table_chart_view" }) : /* @__PURE__ */ e(X, { name: "format_list_bulleted" }) }, n))
90
+ }
91
+ ), Be = ({ selectedDateRange: t, selectedCategoryGuid: s }) => {
92
+ const { trends: n } = A(), { isMobile: o, isDesktop: r } = F(), { getCategoryName: i } = P(), a = m.useMemo(() => {
93
+ const c = Z(
94
+ t.start,
95
+ o ? G.MONTH_SHORT_YEAR : G.MONTH_YEAR
96
+ ), u = Z(
97
+ t.end,
98
+ o ? G.MONTH_SHORT_YEAR : G.MONTH_YEAR
99
+ );
100
+ return `${c} - ${u}`;
101
+ }, [t, o]);
102
+ return /* @__PURE__ */ y(O, { sx: { mr: 10, minWidth: "60%" }, children: [
103
+ /* @__PURE__ */ e(
104
+ W,
105
+ {
106
+ display: "block",
107
+ fontWeight: 700,
108
+ sx: {
109
+ whiteSpace: "normal",
110
+ overflow: "visible",
111
+ textOverflow: "unset"
112
+ },
113
+ variant: r ? "H3" : "Body",
114
+ children: i(s) || n.sub_title
115
+ }
116
+ ),
117
+ /* @__PURE__ */ e(W, { variant: r ? "Body" : "Small", children: a })
118
+ ] });
119
+ }, Mt = (t) => {
120
+ const s = t.row[t.field];
121
+ return /* @__PURE__ */ e(f, { alignItems: "flex-end", tabIndex: t.tabIndex, children: /* @__PURE__ */ e(qe, { amount: s, variant: "Small" }) });
122
+ }, At = ({ categoryGuid: t, topLevelCategoryGuid: s }) => {
123
+ const { categories: n } = A(), o = Le[t];
124
+ return /* @__PURE__ */ y(f, { alignItems: "center", direction: "row", justifyContent: "center", children: [
125
+ /* @__PURE__ */ e(
126
+ O,
127
+ {
128
+ "aria-label": Je(n.category_icon_label_aria, o),
129
+ role: "img",
130
+ children: /* @__PURE__ */ e(me, { categoryGuid: s })
131
+ }
132
+ ),
133
+ /* @__PURE__ */ e(W, { sx: { ml: 12, pb: 6 }, variant: "Small", children: o })
134
+ ] });
135
+ }, kt = (t) => /* @__PURE__ */ e(f, { alignItems: "center", direction: "row", height: "100%", width: "100%", children: /* @__PURE__ */ e(
136
+ At,
137
+ {
138
+ categoryGuid: t.row.category,
139
+ topLevelCategoryGuid: t.row.top_level_category_guid
140
+ }
141
+ ) }), Rt = (t, s) => {
142
+ const n = [], o = new Date(t);
143
+ for (; o <= s; ) {
144
+ const r = Z(o, G.MONTH);
145
+ n.push(r), o.setMonth(o.getMonth() + 1);
146
+ }
147
+ return n;
148
+ }, Ge = ({
149
+ monthlyCategoryTotals: t,
150
+ selectedDateRange: s,
151
+ selectedCategory: n,
152
+ onClickRow: o,
153
+ height: r = "100dvh",
154
+ sx: i = {}
155
+ }) => {
156
+ const { onEvent: a } = q(), c = Z(/* @__PURE__ */ new Date(), G.MONTH_SHORT), [u, p] = m.useState([
157
+ { field: c, sort: "desc" }
158
+ ]), l = m.useMemo(() => Rt(s.start, s.end), [s]), d = [
159
+ {
160
+ field: "category",
161
+ headerName: "Category",
162
+ minWidth: 175,
163
+ renderHeader: _e,
164
+ renderCell: kt,
165
+ sortable: !0,
166
+ type: "string"
167
+ },
168
+ ...l.map(
169
+ (g) => ({
170
+ field: g,
171
+ headerName: g,
172
+ minWidth: 75,
173
+ renderHeader: _e,
174
+ renderCell: Mt,
175
+ align: "right",
176
+ headerAlign: "right",
177
+ sortable: !0,
178
+ hideSortIcons: !1,
179
+ type: "number",
180
+ sortComparator: Et
181
+ })
182
+ )
183
+ ], b = m.useMemo(() => {
184
+ const T = (n ? t.filter(
185
+ (h) => h.category_guid === n || h.top_level_category_guid === n
186
+ ) : t).reduce(
187
+ (h, C) => {
188
+ const { category_guid: S, top_level_category_guid: x, month: L, total: H, year: M } = C, w = n ? S : x;
189
+ h[w] || (h[w] = {
190
+ id: w,
191
+ category: w,
192
+ category_guid: S,
193
+ top_level_category_guid: x
194
+ });
195
+ const v = Z(new Date(M, L - 1), G.MONTH_SHORT);
196
+ return h[w][v] || (h[w][v] = 0), h[w][v] = h[w][v] + H, h;
197
+ },
198
+ {}
199
+ );
200
+ return Object.values(T);
201
+ }, [t, n]);
202
+ return /* @__PURE__ */ e(O, { sx: { height: r, width: "100%", overflowX: "auto", boxShadow: "none", ...i }, children: /* @__PURE__ */ e(
203
+ Qe,
204
+ {
205
+ columns: d,
206
+ disableColumnFilter: !0,
207
+ disableColumnMenu: !0,
208
+ hideFooter: !0,
209
+ initialState: { sorting: { sortModel: u } },
210
+ onRowClick: (g) => {
211
+ o?.(g.row.category), a(D.TRENDS_CLICK_TABLE_ROW);
212
+ },
213
+ onSortModelChange: (g) => {
214
+ p(g), a(D.TRENDS_CLICK_TABLE_SORT);
215
+ },
216
+ rows: b,
217
+ slotProps: { baseIconButton: { color: "secondary", sx: { ml: 8 } } },
218
+ sortModel: u,
219
+ sortingOrder: ["asc", "desc"]
220
+ }
221
+ ) });
222
+ }, Ht = {
223
+ title: "Transaction List"
224
+ }, Nt = ({
225
+ categoryGuid: t,
226
+ dateRange: s,
227
+ isOpen: n,
228
+ onClose: o
229
+ }) => {
230
+ const { onEvent: r } = q(), { selectedAccountGuids: i } = $(), { common: a } = A(), { setFilter: c, sortedTransactions: u } = pe(), [p, l] = m.useState(""), d = m.useMemo(
231
+ () => u.find((g) => g.guid === p),
232
+ [p, u]
233
+ );
234
+ m.useEffect(() => {
235
+ c({
236
+ accounts: i,
237
+ dateRange: s,
238
+ custom: (g) => t === "" || t === g.category_guid || t === g.top_level_category_guid,
239
+ showSplits: !!t
240
+ });
241
+ }, [i, t, s]), m.useEffect(() => r(D.TRENDS_VIEW_TRANSACTIONS), []);
242
+ const b = () => {
243
+ l(""), o();
244
+ };
245
+ return /* @__PURE__ */ y(
246
+ Ae,
247
+ {
248
+ ariaLabelClose: a.close_aria,
249
+ isOpen: n,
250
+ onClose: b,
251
+ title: Ht.title,
252
+ children: [
253
+ d && /* @__PURE__ */ e(et, { transaction: d }),
254
+ !d && /* @__PURE__ */ e(tt, { onClick: l })
255
+ ]
256
+ }
257
+ );
258
+ }, Wt = E(Nt), Ot = ({ onBackClick: t, sx: s }) => {
259
+ const { onEvent: n } = q(), { isDesktop: o, isTablet: r, isMobile: i } = F(), { visibleAccounts: a } = se(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: u, getCategoryName: p } = P(), { sortedTransactions: l } = pe(), { selectedDateRange: d, setSelectedDateRange: b } = j(), { isCopyLoaded: g, isInitialized: T, selectedAccounts: h, setSelectedAccounts: C } = $(), { trends: S } = A(), [x, L] = m.useState(!1), [H, M] = m.useState(!1), [w, v] = m.useState("Chart"), [k, K] = m.useState(""), [V, re] = m.useState(window.innerHeight), ee = V - (i ? 315 : 345);
260
+ m.useEffect(() => {
261
+ const _ = () => re(window.innerHeight);
262
+ return window.addEventListener("resize", _), () => window.removeEventListener("resize", _);
263
+ }, []), m.useEffect(() => {
264
+ C(a);
265
+ }, [a]), m.useEffect(() => {
266
+ T && c(
267
+ h,
268
+ d.start,
269
+ d.end
270
+ ).finally(() => {
271
+ L(!0);
272
+ });
273
+ }, [T, h, d]);
274
+ const te = m.useMemo(() => {
275
+ if (!x) return { stackedDatasets: [], unstackedDatasets: [] };
276
+ const _ = It(
277
+ u,
278
+ d.start,
279
+ d.end
280
+ ), N = k.length ? _.filter(
281
+ (B) => B.top_level_category_guid === k || B.category_guid === k
282
+ ) : Pe(_);
283
+ return {
284
+ stackedDatasets: N.filter($e),
285
+ unstackedDatasets: N.filter(je)
286
+ };
287
+ }, [u, k, d]), ne = (_, N) => {
288
+ v(N ?? w), n(D.TRENDS_CLICK_TOGGLE);
289
+ }, oe = (_) => {
290
+ const N = xe(_?.[0], 1), B = _?.[1], I = De(B, N);
291
+ b({ start: N, end: B }), n(D.TRENDS_CLICK_DATE, {
292
+ time_period: I + "M"
293
+ });
294
+ }, ae = () => {
295
+ n(D.TRENDS_CLICK_FILTER);
296
+ }, ie = (_) => {
297
+ K(_);
298
+ }, ce = (_) => {
299
+ K(_), n(D.TRENDS_CLICK_LEGEND, { category: p(_) });
300
+ }, le = (_) => {
301
+ n(D.TRENDS_HOVER_LEGEND, { category: p(_) });
302
+ }, de = (_) => {
303
+ n(D.TRENDS_HOVER_AREA, { category: _ });
304
+ }, ue = (_) => {
305
+ n(D.TRENDS_HOVER_POINT, { category: _ });
306
+ };
307
+ return !g || !T || !x ? /* @__PURE__ */ e(Q, {}) : /* @__PURE__ */ y(
308
+ Me,
309
+ {
310
+ accountOptions: a,
311
+ calendarActions: { onRangeChanged: oe },
312
+ dateRange: d,
313
+ dateRangeVariant: "timeframebuttons",
314
+ onAccountsFilterClick: ae,
315
+ onBackClick: t,
316
+ sx: s,
317
+ title: S.title,
318
+ children: [
319
+ /* @__PURE__ */ y(
320
+ f,
321
+ {
322
+ sx: {
323
+ // eslint-disable-next-line no-nested-ternary
324
+ px: o ? 48 : r ? 24 : 12
325
+ },
326
+ children: [
327
+ /* @__PURE__ */ y(
328
+ f,
329
+ {
330
+ flexDirection: "row",
331
+ justifyContent: "space-between",
332
+ sx: { pb: i ? 12 : 24, pt: i ? 24 : 48 },
333
+ children: [
334
+ /* @__PURE__ */ e(
335
+ Be,
336
+ {
337
+ selectedCategoryGuid: k,
338
+ selectedDateRange: d
339
+ }
340
+ ),
341
+ /* @__PURE__ */ e(Oe, { onTabChange: ne, selectedTab: w })
342
+ ]
343
+ }
344
+ ),
345
+ /* @__PURE__ */ y(f, { alignItems: "center", flexDirection: "row", width: "100%", children: [
346
+ /* @__PURE__ */ e(O, { flexGrow: 1, children: k && /* @__PURE__ */ y(ge, { onClick: () => K(""), sx: { p: 0, pr: 5 }, children: [
347
+ /* @__PURE__ */ e(X, { name: "arrow_back" }),
348
+ S.all_categories
349
+ ] }) }),
350
+ /* @__PURE__ */ e(ge, { onClick: () => M(!0), sx: { px: 5 }, children: `${S.view_transactions} (${l.length})` })
351
+ ] }),
352
+ /* @__PURE__ */ y(O, { children: [
353
+ w === "Chart" && /* @__PURE__ */ e(
354
+ ot,
355
+ {
356
+ availableHeight: ee,
357
+ onClickLegend: ce,
358
+ onHoverArea: de,
359
+ onHoverLegend: le,
360
+ onHoverPoint: ue,
361
+ stackedDatasets: te.stackedDatasets,
362
+ unstackedDatasets: te.unstackedDatasets
363
+ }
364
+ ),
365
+ w === "Table" && /* @__PURE__ */ e(
366
+ Ge,
367
+ {
368
+ monthlyCategoryTotals: u,
369
+ onClickRow: ie,
370
+ selectedCategory: k,
371
+ selectedDateRange: d
372
+ }
373
+ )
374
+ ] })
375
+ ]
376
+ }
377
+ ),
378
+ /* @__PURE__ */ e(
379
+ Wt,
380
+ {
381
+ categoryGuid: k,
382
+ dateRange: d,
383
+ isOpen: H,
384
+ onClose: () => M(!1)
385
+ }
386
+ )
387
+ ]
388
+ }
389
+ );
390
+ }, Xn = E(Ot), Bt = () => {
391
+ const t = ye(), { monthlyCategoryTotals: s } = P(), { trends: n } = A(), o = Ke(s);
392
+ return /* @__PURE__ */ e(
393
+ fe,
394
+ {
395
+ baseline: "min",
396
+ colors: [t.palette.primary.main],
397
+ datasets: [o],
398
+ height: 300,
399
+ labels: [n.spending_label],
400
+ showArea: !0,
401
+ showAverage: !0,
402
+ showLegend: !0,
403
+ showMarkLabel: !0,
404
+ useCustomMark: !0,
405
+ valueFormatterString: "0,0"
406
+ }
407
+ );
408
+ }, Gt = E(Bt), Ft = ({ onPrimaryCtaClick: t, sx: s }) => {
409
+ const { visibleAccounts: n } = se(), { loadMonthlyCategoryTotals: o, monthlyTotalsLoaded: r } = P(), { isInitialized: i } = Ee(), { trends: a } = A(), { isCopyLoaded: c, selectedAccounts: u, setSelectedAccounts: p } = $();
410
+ return m.useEffect(() => {
411
+ p(n);
412
+ }, [n]), m.useEffect(() => {
413
+ i && o(u).finally();
414
+ }, [i, u]), !c || !i ? /* @__PURE__ */ e(Q, {}) : /* @__PURE__ */ e(
415
+ rt,
416
+ {
417
+ onPrimaryCtaClick: t,
418
+ primaryCtaLabel: a.primary_cta,
419
+ subTitle: a.sub_title,
420
+ sx: s,
421
+ title: a.mini_title,
422
+ children: r ? /* @__PURE__ */ e(Gt, {}) : /* @__PURE__ */ e(Q, {})
423
+ }
424
+ );
425
+ }, Zn = E(Ft), Vt = 70, Se = ({
426
+ title: t,
427
+ totalAmount: s,
428
+ transactionType: n,
429
+ percentage: o,
430
+ secondaryLabel: r,
431
+ shouldDisplayPercentage: i
432
+ }) => {
433
+ const { availableWidth: a } = Xe(), c = m.useRef(null), u = m.useRef(null), p = mt(Number(Math.abs(o)), {
434
+ style: "percent",
435
+ minimumIntegerDigits: 1
436
+ }), l = a === 288 && z(s, "0,0.00").length > 10 ? z(s, "0,0") : z(s, "0,0.00"), d = n === "spending" ? o > 0 : o >= 0, b = n === "spending" ? "error.main" : "success.main", g = n === "spending" ? "success.main" : "text.secondary", T = c?.current, h = u?.current, C = T && h ? T.scrollWidth > h.clientWidth - Vt : !1;
437
+ return /* @__PURE__ */ y(
438
+ f,
439
+ {
440
+ sx: {
441
+ border: 1,
442
+ borderColor: "divider",
443
+ borderRadius: "4px",
444
+ flex: 1,
445
+ minWidth: 0,
446
+ px: 12,
447
+ py: 8
448
+ },
449
+ children: [
450
+ /* @__PURE__ */ y(
451
+ f,
452
+ {
453
+ sx: {
454
+ alignItems: "center",
455
+ flexDirection: "row",
456
+ justifyContent: "space-between"
457
+ },
458
+ children: [
459
+ /* @__PURE__ */ e(U, { color: "text.secondary", variant: "caption", children: t }),
460
+ i && /* @__PURE__ */ y(f, { sx: { alignItems: "center", flexDirection: "row", gap: 4 }, children: [
461
+ d ? /* @__PURE__ */ e(lt, { size: 20, sx: { color: b } }) : /* @__PURE__ */ e(dt, { size: 20, sx: { color: g } }),
462
+ /* @__PURE__ */ e(
463
+ U,
464
+ {
465
+ sx: {
466
+ color: d ? b : g,
467
+ fontWeight: 600
468
+ },
469
+ variant: "body2",
470
+ children: p
471
+ }
472
+ )
473
+ ] })
474
+ ]
475
+ }
476
+ ),
477
+ /* @__PURE__ */ y(
478
+ f,
479
+ {
480
+ ref: u,
481
+ sx: {
482
+ alignItems: "center",
483
+ flexDirection: "row",
484
+ justifyContent: "space-between"
485
+ },
486
+ children: [
487
+ /* @__PURE__ */ e(
488
+ O,
489
+ {
490
+ ref: c,
491
+ sx: { overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" },
492
+ children: /* @__PURE__ */ e(we, { children: l })
493
+ }
494
+ ),
495
+ i && a >= 450 && !C && /* @__PURE__ */ e(
496
+ U,
497
+ {
498
+ color: d ? b : g,
499
+ variant: "caption",
500
+ children: r
501
+ }
502
+ )
503
+ ]
504
+ }
505
+ )
506
+ ]
507
+ }
508
+ );
509
+ }, zt = E(() => {
510
+ const { trends: t } = A();
511
+ return /* @__PURE__ */ y(f, { sx: { alignItems: "start", flexDirection: "row", gap: 12 }, children: [
512
+ /* @__PURE__ */ e(ut, { size: 32 }),
513
+ /* @__PURE__ */ y(f, { children: [
514
+ /* @__PURE__ */ e(U, { fontWeight: 600, variant: "body1", children: t.zero_state_content_header }),
515
+ /* @__PURE__ */ e(U, { color: "text.secondary", variant: "subtitle2", children: t.zero_state_content_description })
516
+ ] })
517
+ ] });
518
+ }), Qn = E(({ onCtaClick: t }) => {
519
+ const { visibleAccounts: s } = se(), { onEvent: n } = q(), { monthlyCategoryTotals: o, loadMonthlyCategoryTotals: r, monthlyTotalsLoaded: i } = P(), a = {
520
+ start: at(/* @__PURE__ */ new Date(), 1),
521
+ end: /* @__PURE__ */ new Date()
522
+ }, { trends: c } = A(), { selectedAccounts: u, setSelectedAccounts: p, isInitialized: l } = $();
523
+ m.useEffect(() => {
524
+ p(s);
525
+ }, [s]), m.useEffect(() => {
526
+ l && r(u, a.start).then(() => {
527
+ n(D.TRENDS_LOAD_WIDGET, {
528
+ state: s?.length ? "default" : "zeroState"
529
+ });
530
+ });
531
+ }, [l, u]);
532
+ const { spendingData: d, incomeData: b } = m.useMemo(
533
+ () => ({
534
+ spendingData: ve(o, a),
535
+ incomeData: Ie(o, a)
536
+ }),
537
+ [o, a]
538
+ ), [g, T] = d, [h, C] = b, S = Te(T.y, g.y), x = Te(C.y, h.y), L = l && !s?.length, H = () => {
539
+ n(
540
+ L ? D.TRENDS_CLICK_GET_STARTED : D.TRENDS_CLICK_VIEW_MORE
541
+ ), t();
542
+ };
543
+ return !i || !l ? /* @__PURE__ */ e(Q, {}) : /* @__PURE__ */ e(
544
+ pt,
545
+ {
546
+ className: "mx-trends-microwidget",
547
+ ctaLabel: c.micro_primary_cta_label,
548
+ onCTAClick: H,
549
+ subHeader: L ? void 0 : c.micro_subheader,
550
+ title: c.title,
551
+ children: L ? /* @__PURE__ */ e(zt, {}) : /* @__PURE__ */ y(
552
+ f,
553
+ {
554
+ sx: {
555
+ alignItems: "stretch",
556
+ flexDirection: "row",
557
+ gap: 12
558
+ },
559
+ children: [
560
+ /* @__PURE__ */ e(
561
+ Se,
562
+ {
563
+ percentage: S,
564
+ secondaryLabel: c.micro_secondary_label,
565
+ shouldDisplayPercentage: T.y !== 0 && g.y !== 0,
566
+ title: c.spending_label,
567
+ totalAmount: T.y,
568
+ transactionType: "spending"
569
+ }
570
+ ),
571
+ /* @__PURE__ */ e(
572
+ Se,
573
+ {
574
+ percentage: x,
575
+ secondaryLabel: c.micro_secondary_label,
576
+ shouldDisplayPercentage: C.y !== 0 && h.y !== 0,
577
+ title: c.income_label,
578
+ totalAmount: C.y,
579
+ transactionType: "income"
580
+ }
581
+ )
582
+ ]
583
+ }
584
+ )
585
+ }
586
+ );
587
+ }), Pt = E(
588
+ ({ isExpanded: t, onClick: s }) => {
589
+ const n = ft();
590
+ return /* @__PURE__ */ e(He, { sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ e(Ne, { onClick: s, sx: { justifyContent: "center" }, children: /* @__PURE__ */ y(
591
+ f,
592
+ {
593
+ sx: { color: n.palette.primary.main, flexDirection: "row", alignItems: "center" },
594
+ children: [
595
+ /* @__PURE__ */ e(We, { children: /* @__PURE__ */ e(W, { bold: !0, variant: "body2", children: t ? "View less" : "View more" }) }),
596
+ /* @__PURE__ */ e(he, { sx: { color: n.palette.primary.main }, children: t ? /* @__PURE__ */ e(gt, {}) : /* @__PURE__ */ e(
597
+ ht,
598
+ {
599
+ sx: {
600
+ transition: "transform 0.3s ease-in-out",
601
+ transform: t ? "rotate(180deg)" : "rotate(0deg)"
602
+ }
603
+ }
604
+ ) })
605
+ ]
606
+ }
607
+ ) }) });
608
+ }
609
+ ), Ce = ({
610
+ onClick: t,
611
+ leftIcon: s,
612
+ rightIcon: n,
613
+ title: o,
614
+ subtitle: r,
615
+ rightContent: i,
616
+ titleBold: a = !0,
617
+ rightContentBold: c = !0
618
+ }) => {
619
+ const u = /* @__PURE__ */ y(m.Fragment, { children: [
620
+ s && /* @__PURE__ */ e(he, { sx: { ml: 0 }, children: s }),
621
+ /* @__PURE__ */ e(We, { children: /* @__PURE__ */ y(
622
+ f,
623
+ {
624
+ sx: {
625
+ alignItems: "center",
626
+ flexDirection: "row",
627
+ marginLeft: 12
628
+ },
629
+ children: [
630
+ /* @__PURE__ */ y(f, { sx: { flex: 1, minWidth: 0 }, children: [
631
+ /* @__PURE__ */ e(W, { bold: a, variant: "body1", children: o }),
632
+ r && /* @__PURE__ */ e(W, { variant: "caption", children: r })
633
+ ] }),
634
+ /* @__PURE__ */ y(f, { sx: { flexDirection: "row", alignItems: "center", gap: 1 }, children: [
635
+ i && /* @__PURE__ */ e(W, { bold: c, display: "flex", variant: "body1", children: i }),
636
+ n && /* @__PURE__ */ e(he, { children: n })
637
+ ] })
638
+ ]
639
+ }
640
+ ) })
641
+ ] });
642
+ return /* @__PURE__ */ e(He, { sx: { bgcolor: "background.paper" }, children: t ? /* @__PURE__ */ e(
643
+ Ne,
644
+ {
645
+ onClick: t,
646
+ sx: {
647
+ py: 14
648
+ },
649
+ children: u
650
+ }
651
+ ) : /* @__PURE__ */ e(
652
+ f,
653
+ {
654
+ sx: {
655
+ py: 14,
656
+ px: 24,
657
+ width: "100%",
658
+ flexDirection: "row",
659
+ alignItems: "center"
660
+ },
661
+ children: u
662
+ }
663
+ ) });
664
+ }, $t = E(
665
+ ({ onClick: t, name: s, amount: n, guid: o, transactions: r }) => {
666
+ const { trends: i } = A(), a = r?.length || 0, c = `${a} ${a === 1 ? i.transaction : i.transactions}`;
667
+ return /* @__PURE__ */ e(
668
+ Ce,
669
+ {
670
+ leftIcon: o ? /* @__PURE__ */ e(me, { categoryGuid: o }) : void 0,
671
+ onClick: t,
672
+ rightContent: z(n, "0,0.00"),
673
+ rightIcon: t ? /* @__PURE__ */ e(Ve, {}) : void 0,
674
+ subtitle: c,
675
+ title: s
676
+ }
677
+ );
678
+ }
679
+ ), jt = E(
680
+ ({ availableHeight: t = 0, onListItemClick: s, transactions: n }) => {
681
+ const { visibleListItems: o, collapsedListItems: r, setVisibleListLength: i } = j(), { isLargeDesktop: a, isDesktop: c } = F(), { trends: u } = A(), [p, l] = m.useState(!1), d = c || a;
682
+ m.useEffect(() => {
683
+ const h = Math.floor(t / 64) - 1, C = o.length + r.length;
684
+ h !== o.length && (i(d ? Math.max(h, 5) : 5), l(h >= C));
685
+ }, [t]);
686
+ const b = (h) => n.filter((C) => C.category_guid === h), g = ({ guid: h, name: C, amount: S }, x, L) => {
687
+ const H = o.length + (p ? r.length : 0), w = (L === r ? o.length + x : x) === H - 1, v = b(h), k = {
688
+ guid: h,
689
+ name: C,
690
+ amount: S,
691
+ transactions: v
692
+ };
693
+ return /* @__PURE__ */ y(m.Fragment, { children: [
694
+ /* @__PURE__ */ e(
695
+ $t,
696
+ {
697
+ amount: S,
698
+ guid: h,
699
+ name: C,
700
+ onClick: v.length > 0 ? () => s(k) : void 0,
701
+ transactions: v
702
+ }
703
+ ),
704
+ /* @__PURE__ */ e(ke, { sx: { ml: w ? 24 : 68 } })
705
+ ] }, h);
706
+ }, T = () => {
707
+ l(!p);
708
+ };
709
+ return /* @__PURE__ */ e(f, { sx: { bgColor: "background.paper", width: "100%" }, children: /* @__PURE__ */ y(Re, { children: [
710
+ /* @__PURE__ */ e(f, { sx: { pb: 4, pt: 16, px: 16 }, children: /* @__PURE__ */ e(we, { children: u.categories }) }),
711
+ o.map((h, C) => g(h, C, o)),
712
+ /* @__PURE__ */ e(
713
+ yt,
714
+ {
715
+ in: p,
716
+ sx: { "&.MuiCollapse-root .MuiListItemButton-root": { paddingLeft: 24 } },
717
+ children: r.map(
718
+ (h, C) => g(h, C, r)
719
+ )
720
+ }
721
+ ),
722
+ r.length > 0 && /* @__PURE__ */ e(Pt, { isExpanded: p, onClick: T })
723
+ ] }) });
724
+ }
725
+ ), Kt = [
726
+ "BillAmountNotStandard",
727
+ "CategorySpendingV2",
728
+ "CostOfLivingToIncome",
729
+ "DebtPaymentReminderV2",
730
+ "DiscoveredAccounts",
731
+ "DuplicatePaymentV2",
732
+ "FeeDetected",
733
+ "GreenGasPurchasesSummary",
734
+ "LargeTransaction",
735
+ "LowAccountBalance",
736
+ "MonthlyDebtToIncomeComparisonV2",
737
+ "MonthlyDepositSummaryV2",
738
+ "MonthlyNonEssentialCategorySummaryV2",
739
+ "MonthlySavingsToIncomeComparison",
740
+ "MonthlySpendToIncomeComparisonV2",
741
+ "MonthlySubscriptionAggregateV2",
742
+ "MonthlyTopMerchantSpendingV3",
743
+ "MonthlyObligationsStatus",
744
+ "QuarterlySummary",
745
+ "SaveAnExtra100Dollars",
746
+ "SaveEnoughToLiveOn",
747
+ "SavingsOpportunityV2",
748
+ "SubscriptionDetected",
749
+ "SubscriptionPriceIncrease",
750
+ "SetUpDirectDeposit",
751
+ "SwitchDirectDeposit",
752
+ "UnexpectedSubscriptionPayment",
753
+ "UpcomingBill",
754
+ "UpcomingSubscription",
755
+ "WeekendSpendingSummaryV2",
756
+ "WeeklyNewMerchantsV2",
757
+ "WeeklyNoSpendDays",
758
+ "WeeklySmallPurchasesSummary"
759
+ ], Yt = ({ onInsightCardClick: t }) => {
760
+ const s = Ct(), { isMobile: n, isDesktop: o, isLargeDesktop: r } = F(), { beatStore: i, endpoint: a, sessionToken: c } = Ee(), { isInitialized: u } = $(), { sortedCategoriesList: p } = j(), [l, d] = m.useState(!1), b = s.palette.mode === "dark", g = o || r, T = g || n ? 1 : 2;
761
+ m.useEffect(() => {
762
+ u && i.loadBeats().finally(() => d(!0));
763
+ }, [u]);
764
+ const h = m.useMemo(() => {
765
+ if (!l) return [];
766
+ const H = p.map((M) => M.guid);
767
+ return i.getFilteredBeats({ categoryGuids: H, templates: Kt });
768
+ }, [l, p]), C = () => null, S = g ? 200 : 170, x = g ? 170 : 124, L = h.length > 0 ? S : x;
769
+ return /* @__PURE__ */ e(bt, { sx: { height: L }, children: /* @__PURE__ */ e(
770
+ Tt,
771
+ {
772
+ areBeatsLoading: i.isLoading,
773
+ beats: h,
774
+ endpoint: a,
775
+ logOutUser: C,
776
+ onCardClick: t,
777
+ showBorder: !0,
778
+ showCTAColocatedWithText: !1,
779
+ showCarouselControls: !0,
780
+ showHeader: g,
781
+ showIcon: !0,
782
+ showWithMargin: !1,
783
+ token: c,
784
+ useDarkMode: b,
785
+ userHasFullInsightFeedBeats: !1,
786
+ variant: "outlined",
787
+ visibleCardsCount: T
788
+ }
789
+ ) });
790
+ }, Ut = E(Yt), Xt = E(({ transactions: t }) => {
791
+ const { is_mobile_webview: s } = Ze(), { trends: n, transactions: o } = A(), { isDesktop: r } = F(), i = ` ${t.length === 1 ? n.transaction : n.transactions} (${t.length})`, a = (() => {
792
+ const p = /* @__PURE__ */ new Map();
793
+ return t.forEach((l) => {
794
+ p.has(l.date) || p.set(l.date, []), p.get(l.date).push(l);
795
+ }), Array.from(p.entries()).sort(([l], [d]) => d - l).map(([l, d]) => ({ timestamp: l, transactions: d }));
796
+ })(), c = () => {
797
+ }, u = t.length > 0 && !s && r;
798
+ return /* @__PURE__ */ y(f, { sx: { width: "100%" }, children: [
799
+ /* @__PURE__ */ y(
800
+ f,
801
+ {
802
+ sx: {
803
+ alignItems: "flex-start",
804
+ alignSelf: "stretch",
805
+ flexDirection: "row",
806
+ justifyContent: "space-between",
807
+ pb: 12,
808
+ pt: 16,
809
+ px: 24
810
+ },
811
+ children: [
812
+ /* @__PURE__ */ e(W, { bold: !0, variant: "body1", children: i }),
813
+ /* @__PURE__ */ e(f, { sx: { alignItems: "center", gap: 16 }, children: u && /* @__PURE__ */ y(
814
+ _t,
815
+ {
816
+ onClick: c,
817
+ sx: { display: "flex", alignItems: "end", gap: 8 },
818
+ variant: "body2",
819
+ children: [
820
+ /* @__PURE__ */ e(X, { name: "ios_share" }),
821
+ o.export_csv_btn
822
+ ]
823
+ }
824
+ ) })
825
+ ]
826
+ }
827
+ ),
828
+ /* @__PURE__ */ e(Re, { children: a.map(({ timestamp: p, transactions: l }) => /* @__PURE__ */ y(m.Fragment, { children: [
829
+ /* @__PURE__ */ e(nt, { children: it(ct(p), "EEEE, MMMM dd") }),
830
+ l.map((d, b) => {
831
+ const g = b === l.length - 1;
832
+ return /* @__PURE__ */ y(m.Fragment, { children: [
833
+ /* @__PURE__ */ e(
834
+ Ce,
835
+ {
836
+ leftIcon: /* @__PURE__ */ e(
837
+ ze,
838
+ {
839
+ categoryGuid: d.guid,
840
+ merchantGuid: d.merchant_guid ?? ""
841
+ }
842
+ ),
843
+ rightContent: z(d.amount, "0,0.00"),
844
+ subtitle: d.category,
845
+ title: d.description
846
+ }
847
+ ),
848
+ /* @__PURE__ */ e(ke, { sx: { ml: g ? 0 : 68 } })
849
+ ] }, d.guid);
850
+ })
851
+ ] }, p)) })
852
+ ] });
853
+ }), Zt = E(() => {
854
+ const { categoryDetailsChartData: t, selectedCategoryData: s } = j(), n = s?.chartLabel ? s.chartLabel : "", o = s?.color;
855
+ return /* @__PURE__ */ e(f, { sx: { pt: 12, width: "100%" }, children: /* @__PURE__ */ e(
856
+ fe,
857
+ {
858
+ baseline: "min",
859
+ colors: [o],
860
+ curveType: "bump",
861
+ datasets: t,
862
+ height: 265,
863
+ labels: [n],
864
+ markStyles: () => ({
865
+ stroke: o
866
+ }),
867
+ showArea: !0,
868
+ showAverage: !0,
869
+ showLegend: !0,
870
+ showXAxis: !0,
871
+ showXAxisTicks: !0,
872
+ showYAxis: !0,
873
+ showYAxisTicks: !0,
874
+ useCustomMark: !0,
875
+ valueFormatterString: "0,0"
876
+ }
877
+ ) });
878
+ }), Qt = E(({ onClose: t }) => {
879
+ const { trends: s } = A(), { selectedCategoryData: n, selectedDateRangeMonthRange: o } = j();
880
+ if (!n)
881
+ return null;
882
+ const { guid: r, name: i, amount: a, transactions: c } = n, u = n.name === "Income" ? s.category_income : s.category_spending, p = () => {
883
+ t?.();
884
+ };
885
+ return /* @__PURE__ */ e(
886
+ Ae,
887
+ {
888
+ ariaLabelClose: s.close_category_details,
889
+ isOpen: !0,
890
+ onClose: p,
891
+ shouldShowHeaderShadow: !0,
892
+ title: u,
893
+ children: /* @__PURE__ */ y(f, { sx: { alignItems: "center", pt: 16 }, children: [
894
+ /* @__PURE__ */ e(
895
+ Ce,
896
+ {
897
+ leftIcon: /* @__PURE__ */ e(me, { categoryGuid: r }),
898
+ rightContent: z(a, "0,0.00"),
899
+ subtitle: o,
900
+ title: i
901
+ }
902
+ ),
903
+ /* @__PURE__ */ e(Zt, {}),
904
+ c && /* @__PURE__ */ e(Xt, { transactions: c })
905
+ ] })
906
+ }
907
+ );
908
+ }), qt = (t, s) => {
909
+ const n = Ie(t, s), o = ve(t, s);
910
+ return [n, o].filter((r) => r.length > 0);
911
+ }, Jt = (t, s) => {
912
+ const [n, o] = t, r = n, i = o ?? n, a = [];
913
+ if (r) {
914
+ const c = r.reduce((u, p) => u + p.y, 0);
915
+ a.push({ label: s.income_label, amount: c });
916
+ }
917
+ if (i) {
918
+ const c = i.reduce((u, p) => u + p.y, 0);
919
+ a.push({ label: s.spending_label, amount: c });
920
+ }
921
+ return a;
922
+ }, en = ({
923
+ availableHeight: t = 0,
924
+ minHeight: s = 500,
925
+ selectedDateRange: n,
926
+ totals: o
927
+ }) => {
928
+ const r = ye(), { trends: i } = A(), { isSmallMobile: a, isMobile: c, isSmallTablet: u, isTablet: p } = F(), l = [r.palette.chart?.chart1, r.palette.chart?.chart2], d = qt(o, n), b = Jt(d, i), [g, T] = m.useState(0), h = 458, C = 195, S = 56, x = c || a ? C : u || p ? h : g;
929
+ return m.useEffect(() => {
930
+ const L = Math.max(t - S, s);
931
+ T(L);
932
+ }, [t]), /* @__PURE__ */ e(
933
+ fe,
934
+ {
935
+ baseline: "min",
936
+ colors: l,
937
+ curveType: "bump",
938
+ datasets: d,
939
+ height: x,
940
+ labels: b,
941
+ showArea: !0,
942
+ showAxisHighlight: !0,
943
+ showLegend: !0,
944
+ showTooltip: !0,
945
+ showXAxis: !0,
946
+ showXAxisTicks: !0,
947
+ showYAxis: !0,
948
+ showYAxisTicks: !0,
949
+ valueFormatterString: "0,0"
950
+ }
951
+ );
952
+ }, tn = E(en), nn = ({ onBackClick: t, onInsightCardClick: s, sx: n }) => {
953
+ const { onEvent: o } = q(), r = ye(), { isLargeDesktop: i, isDesktop: a, isMobile: c } = F(), { visibleAccounts: u } = se(), { loadMonthlyCategoryTotals: p, monthlyCategoryTotals: l } = P(), { setFilter: d, sortedTransactions: b } = pe(), { selectedDateRange: g, setSelectedCategoryData: T, setSelectedDateRange: h } = j(), {
954
+ isCopyLoaded: C,
955
+ isInitialized: S,
956
+ selectedAccounts: x,
957
+ selectedAccountGuids: L,
958
+ setSelectedAccounts: H
959
+ } = $(), { trends: M } = A(), w = st(), v = a || i, [k, K] = m.useState(!1), [V, re] = m.useState("Chart"), [J, ee] = m.useState(""), [te, ne] = m.useState(!1), [oe, ae] = m.useState(window.innerHeight), ie = oe - 208, ce = oe - (w ? 494 : 266);
960
+ m.useEffect(() => {
961
+ const I = () => ae(window.innerHeight);
962
+ return window.addEventListener("resize", I), () => window.removeEventListener("resize", I);
963
+ }, []), m.useEffect(() => {
964
+ H(u);
965
+ }, [u]), m.useEffect(() => {
966
+ S && p(
967
+ x,
968
+ g.start,
969
+ g.end
970
+ ).finally(() => {
971
+ K(!0);
972
+ });
973
+ }, [S, x, g]), m.useEffect(() => {
974
+ if (l.length !== 0) {
975
+ const I = {
976
+ accounts: L,
977
+ dateRange: { start: g.start, end: g.end }
978
+ };
979
+ d({
980
+ ...I,
981
+ custom: (R) => !!l.find(
982
+ (Y) => Y.top_level_category_guid === R.top_level_category_guid || Y.category_guid === R.category_guid
983
+ )
984
+ });
985
+ }
986
+ }, [l]);
987
+ const le = (I) => {
988
+ const R = I;
989
+ R.color = St(R.guid, r), R.chartLabel = I.name === "Income" ? M.monthly_income : M.monthly_spending, T(R), ne(!0);
990
+ }, de = () => {
991
+ T(null), ne(!1);
992
+ }, ue = (I, R) => {
993
+ re(R ?? V), o(D.TRENDS_CLICK_TOGGLE);
994
+ }, _ = (I) => {
995
+ const R = xe(I?.[0], 1), Y = I?.[1], Fe = De(Y, R);
996
+ h({ start: R, end: Y }), o(D.TRENDS_CLICK_DATE, {
997
+ time_period: Fe + "M"
998
+ });
999
+ }, N = () => {
1000
+ o(D.TRENDS_CLICK_FILTER);
1001
+ }, B = (I) => {
1002
+ ee(I);
1003
+ };
1004
+ return !C || !S || !k ? /* @__PURE__ */ e(Q, {}) : l.length === 0 ? /* @__PURE__ */ e(
1005
+ wt,
1006
+ {
1007
+ header: "",
1008
+ icon: "",
1009
+ onClick: () => {
1010
+ },
1011
+ primaryButton: M.empty_state_primary,
1012
+ subText: M.empty_state_sub_text
1013
+ }
1014
+ ) : /* @__PURE__ */ y(
1015
+ Me,
1016
+ {
1017
+ accountOptions: u,
1018
+ calendarActions: { onRangeChanged: _ },
1019
+ dateRange: g,
1020
+ dateRangeVariant: c ? "timeframetabs" : "timeframebuttons",
1021
+ onAccountsFilterClick: N,
1022
+ onBackClick: t,
1023
+ sx: n,
1024
+ title: M.title,
1025
+ children: [
1026
+ /* @__PURE__ */ y(
1027
+ f,
1028
+ {
1029
+ sx: {
1030
+ px: c ? 0 : 48
1031
+ },
1032
+ children: [
1033
+ /* @__PURE__ */ y(
1034
+ f,
1035
+ {
1036
+ flexDirection: "row",
1037
+ justifyContent: "space-between",
1038
+ sx: { pb: c ? 12 : 24, pt: c ? 24 : 48 },
1039
+ children: [
1040
+ /* @__PURE__ */ e(
1041
+ Be,
1042
+ {
1043
+ selectedCategoryGuid: J,
1044
+ selectedDateRange: g
1045
+ }
1046
+ ),
1047
+ /* @__PURE__ */ e(Oe, { onTabChange: ue, selectedTab: V })
1048
+ ]
1049
+ }
1050
+ ),
1051
+ /* @__PURE__ */ e(f, { alignItems: "center", flexDirection: "row", width: "100%", children: /* @__PURE__ */ e(O, { flexGrow: 1, children: J && /* @__PURE__ */ y(ge, { onClick: () => ee(""), sx: { p: 0, pr: 5 }, children: [
1052
+ /* @__PURE__ */ e(X, { name: "arrow_back" }),
1053
+ M.all_categories
1054
+ ] }) }) }),
1055
+ /* @__PURE__ */ y(f, { flexDirection: v ? "row" : "column", gap: v ? 48 : 16, children: [
1056
+ /* @__PURE__ */ y(O, { sx: { width: v ? "68%" : "100%" }, children: [
1057
+ V === "Chart" && /* @__PURE__ */ e(
1058
+ tn,
1059
+ {
1060
+ availableHeight: ie,
1061
+ minHeight: 450,
1062
+ selectedDateRange: g,
1063
+ totals: l
1064
+ }
1065
+ ),
1066
+ V === "Table" && /* @__PURE__ */ e(
1067
+ Ge,
1068
+ {
1069
+ height: "unset",
1070
+ monthlyCategoryTotals: l,
1071
+ onClickRow: B,
1072
+ selectedCategory: J,
1073
+ selectedDateRange: g
1074
+ }
1075
+ )
1076
+ ] }),
1077
+ /* @__PURE__ */ y(f, { gap: 16, sx: { width: v ? "32%" : "100%" }, children: [
1078
+ w && /* @__PURE__ */ e(Ut, { onInsightCardClick: s }),
1079
+ /* @__PURE__ */ e(
1080
+ jt,
1081
+ {
1082
+ availableHeight: ce,
1083
+ onListItemClick: le,
1084
+ transactions: b
1085
+ }
1086
+ )
1087
+ ] })
1088
+ ] })
1089
+ ]
1090
+ }
1091
+ ),
1092
+ te && /* @__PURE__ */ e(Qt, { onClose: de })
1093
+ ]
1094
+ }
1095
+ );
1096
+ }, qn = E(nn);
6
1097
  export {
7
- t as TrendsFullWidget,
8
- s as TrendsMicroWidget,
9
- o as TrendsMiniWidget,
10
- l as TrendsStore,
11
- a as TrendsWidget
1098
+ Xn as TrendsFullWidget,
1099
+ Qn as TrendsMicroWidget,
1100
+ Zn as TrendsMiniWidget,
1101
+ to as TrendsStore,
1102
+ qn as TrendsWidget
12
1103
  };