@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,10 +1,1209 @@
1
- import { GoalApi as e } from "./api/GoalApi/index.es.js";
2
- import { GoalsWidget as p } from "./GoalsWidget/index.es.js";
3
- import { GoalStore as f } from "./stores/GoalStore/index.es.js";
4
- import { GoalsMicroWidget as l } from "./GoalsMicroWidget/index.es.js";
1
+ import { T as i, M as G, C as fe, G as pe } from "../GoalStore-DyCr4wNc.mjs";
2
+ import { a as $n, b as Un } from "../GoalStore-DyCr4wNc.mjs";
3
+ import { jsxs as s, jsx as e, Fragment as Y } from "react/jsx-runtime";
4
+ import T from "react";
5
+ import { observer as M } from "mobx-react-lite";
6
+ import Be from "@mui/material/Alert";
7
+ import Le from "@mui/material/Snackbar";
8
+ import b from "@mui/material/Stack";
9
+ import se from "@mui/material/Tab";
10
+ import We from "@mui/material/Tabs";
11
+ import { Text as y, H2 as me, P as V, H3 as Ve, Icon as Pe, InstitutionLogo as ae } from "@mxenabled/mxui";
12
+ import _e from "@mui/material/Button";
13
+ import Te from "@mui/material/Card";
14
+ import ye from "@mui/material/CardActionArea";
15
+ import Ae from "@mui/material/CardContent";
16
+ import he from "@mui/material/Unstable_Grid2";
17
+ import re from "@mui/material/Avatar";
18
+ import He from "@mui/material/CardHeader";
19
+ import { Payments as Ce, NoteStack as Se, Person as Re, ChevronRight as B, CheckCircle as je, Icon as ge, ExpandLess as Fe, ExpandMore as ze, AddBox as Ee, Trophy as Xe } from "@mxenabled/mx-icons";
20
+ import { fromUnixTime as q } from "date-fns/fromUnixTime";
21
+ import { b as N } from "../Localization-2MODESHW.mjs";
22
+ import { a as $e, f as v } from "../NumberFormatting-CtWHhyBX.mjs";
23
+ import { f as ee, D as te, a as Ue } from "../Dialog-CWW597AF.mjs";
24
+ import { u as A, i as x, c as H, o as ve, g as xe, a as Ie } from "../hooks-ClhFlg78.mjs";
25
+ import { u as ue } from "../useScreenSize-B6JyS_Lj.mjs";
26
+ import { S as Ye } from "../StatusBar-BK_uYHAB.mjs";
27
+ import R from "@mui/material/Divider";
28
+ import L from "@mui/material/List";
29
+ import { L as ne } from "../ListItemAction-Df3OPMOW.mjs";
30
+ import { C as Ge } from "../CurrencyInput-DzsPiUsU.mjs";
31
+ import w from "@mui/material/ListItem";
32
+ import D from "@mui/material/ListItemButton";
33
+ import K from "@mui/material/ListItemText";
34
+ import Ze from "@mui/icons-material/DragHandle";
35
+ import { DataGridPro as qe } from "@mui/x-data-grid-pro";
36
+ import { D as j } from "../Drawer-kEE73B87.mjs";
37
+ import P from "@mui/material/ListItemAvatar";
38
+ import Je from "@mui/material/Collapse";
39
+ import Qe from "@mui/material/ListItemIcon";
40
+ import et from "@mui/material/Checkbox";
41
+ import { A as be } from "../ConnectDrawer-DPnfeIfn.mjs";
42
+ import { u as tt, A as nt } from "../AccountDetailsHeader-CAm6ADMq.mjs";
43
+ import { A as ot } from "../AccountDetailsContent-B_qRSB8l.mjs";
44
+ import Ne from "@mui/material/TextField";
45
+ import { M as at, I as rt, O as it } from "../OriginalBalanceAction-s9sUxofR.mjs";
46
+ import { getUnixTime as lt } from "date-fns/getUnixTime";
47
+ import { isValid as st } from "date-fns/isValid";
48
+ import { AdapterDateFns as ct } from "@mui/x-date-pickers/AdapterDateFnsV3";
49
+ import { DatePicker as dt } from "@mui/x-date-pickers";
50
+ import { LocalizationProvider as mt } from "@mui/x-date-pickers/LocalizationProvider";
51
+ import { E as _t } from "../EmptyState-Dcb-o2tl.mjs";
52
+ import { A as Z, W as ut } from "../WidgetContainer-CmGNZW0M.mjs";
53
+ import { L as ke } from "../Loader-Dp1P2gNw.mjs";
54
+ import pt from "@mui/material/Stack/Stack";
55
+ import ht from "@mui/material/Box";
56
+ import gt from "@mui/material/styles/useTheme";
57
+ import { S as bt } from "../SingleSegmentDonut-BgbLgwHi.mjs";
58
+ import { M as ft } from "../MicroWidgetContainer-DaLW43tE.mjs";
59
+ function ce({ title: t, subtitle: n }) {
60
+ return /* @__PURE__ */ s(b, { children: [
61
+ /* @__PURE__ */ e(y, { bold: !0, variant: "Body", children: t }),
62
+ /* @__PURE__ */ e(y, { sx: { fontWeight: 400 }, variant: "Body", children: n })
63
+ ] });
64
+ }
65
+ function we(t, n) {
66
+ const d = n.track_type === i.DEBT_TRACK ? n.initial_amount : n.amount;
67
+ let r = n.current_amount / d;
68
+ r > 1 && (r = 1), r = n.track_type === i.DEBT_TRACK ? 1 - r : r, isNaN(r) && (r = 1);
69
+ let u = "chart.chart1", a = "common.black";
70
+ n.track_type === i.DEBT_TRACK ? (a = "common.white", u = "chart.chart5") : n.track_type === i.RETIREMENT_TRACK && (u = "chart.chart6");
71
+ const _ = {
72
+ style: "percent",
73
+ minimumFractionDigits: 0,
74
+ maximumFractionDigits: 0
75
+ }, p = n.is_complete ? n.completed_at : n.projected_to_complete_at, c = p ? q(p) : /* @__PURE__ */ new Date(), h = N(
76
+ t.goal_percentage,
77
+ $e(r, _)
78
+ ), o = N(
79
+ n.is_complete ? t.completed_label : t.goal_projection,
80
+ ee(c, te.MONTH_SHORT_YEAR)
81
+ );
82
+ return {
83
+ backgroundColor: u,
84
+ color: a,
85
+ percentage: r,
86
+ percentageText: h,
87
+ projectedText: o
88
+ };
89
+ }
90
+ function Tt(t) {
91
+ return [
92
+ {
93
+ bgcolor: "chart.chart1",
94
+ icon: "attach_money",
95
+ label: t.saving_goal_label,
96
+ description: t.saving_goal_description,
97
+ subTypes: [
98
+ {
99
+ icon: "ecg_heart",
100
+ label: t.saving_goal_emergency_fund,
101
+ metaType: G.EMERGENCY_FUND
102
+ },
103
+ {
104
+ icon: "directions_car",
105
+ label: t.saving_gaol_automobile,
106
+ metaType: G.AUTOMOBILE
107
+ },
108
+ { icon: "school", label: t.saving_goal_college, metaType: G.COLLEGE },
109
+ { icon: "home", label: t.saving_goal_home, metaType: G.HOUSE },
110
+ {
111
+ icon: "mountain_flag",
112
+ label: t.saving_goal_recreational,
113
+ metaType: G.RECREATIONAL_VEHICLE
114
+ },
115
+ { icon: "airplane_ticket", label: t.saving_goal_vacation, metaType: G.VACATION },
116
+ {
117
+ icon: "desktop_windows",
118
+ label: t.saving_goal_electronic,
119
+ metaType: G.ELECTRONIC
120
+ },
121
+ { icon: "payments", label: t.saving_goal_other, metaType: G.OTHER }
122
+ ],
123
+ type: i.SAVINGS_TRACK
124
+ },
125
+ {
126
+ bgcolor: "chart.chart5",
127
+ icon: "note_stack",
128
+ label: t.debt_goal_label,
129
+ description: t.debt_goal_description,
130
+ subTypes: [],
131
+ type: i.DEBT_TRACK
132
+ },
133
+ {
134
+ bgcolor: "chart.chart6",
135
+ icon: "person",
136
+ label: t.retirement_goal_label,
137
+ description: t.retirement_goal_description,
138
+ subTypes: [],
139
+ type: i.RETIREMENT_TRACK
140
+ }
141
+ ];
142
+ }
143
+ const yt = (t, n) => {
144
+ switch (t) {
145
+ case i.DEBT_TRACK:
146
+ return N(n.zero_state_ongoing, "debt");
147
+ case i.SAVINGS_TRACK:
148
+ return N(n.zero_state_ongoing, "saving");
149
+ default:
150
+ return N(n.zero_state_ongoing, "retirement");
151
+ }
152
+ }, At = (t, n) => n ? v(t, t < 1e3 ? "0" : "0.00a").replace(
153
+ /(\d+)(?:\.0+|(\.\d*?[1-9])0*)([a-zA-Z]* ?\$?)/g,
154
+ "$1$2$3"
155
+ ) : v(t, "0,0.00"), De = M(
156
+ ({ goal: t, isInDrawer: n = !1, onClick: d }) => {
157
+ const { goals: r } = A(), { isMobile: u, isTablet: a } = ue(), _ = u || a, {
158
+ backgroundColor: p,
159
+ color: c,
160
+ percentage: h,
161
+ percentageText: o,
162
+ projectedText: g
163
+ } = we(r, t), l = t.track_type === i.DEBT_TRACK ? t.initial_amount : t.amount, m = [
164
+ {
165
+ color: p,
166
+ percentage: `${h}`
167
+ }
168
+ ];
169
+ let f = /* @__PURE__ */ e(Ce, {});
170
+ return t.track_type === i.DEBT_TRACK ? f = /* @__PURE__ */ e(Se, {}) : t.track_type === i.RETIREMENT_TRACK && (f = /* @__PURE__ */ e(Re, {})), /* @__PURE__ */ e(Te, { elevation: 2, children: /* @__PURE__ */ s(ye, { disabled: !d, onClick: d, children: [
171
+ /* @__PURE__ */ e(
172
+ He,
173
+ {
174
+ avatar: /* @__PURE__ */ e(re, { sx: { bgcolor: p, color: c, height: 48, width: 48 }, variant: "rounded", children: f }),
175
+ subheader: /* @__PURE__ */ e(y, { variant: n || _ ? "H3" : "H2", children: `${v(t.current_amount, _ ? "0,0" : "0,0.00")} / ${At(
176
+ l,
177
+ _
178
+ )}` }),
179
+ title: /* @__PURE__ */ e(me, { color: "text.secondary", fontWeight: 400, variant: "Body", children: t.name })
180
+ }
181
+ ),
182
+ /* @__PURE__ */ e(Ae, { sx: { pt: 0 }, children: /* @__PURE__ */ s(b, { gap: 6, children: [
183
+ /* @__PURE__ */ e(Ye, { data: m, height: 24 }),
184
+ /* @__PURE__ */ s(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
185
+ /* @__PURE__ */ e(y, { color: "text.secondary", variant: "XSmall", children: o }),
186
+ t.projected_to_complete_at && /* @__PURE__ */ e(y, { color: "text.secondary", variant: "XSmall", children: g })
187
+ ] })
188
+ ] }) })
189
+ ] }) });
190
+ }
191
+ ), Ct = M(({ trackType: t }) => {
192
+ const { goals: n } = A(), { setAlert: d, monthlyCashFlowProfile: r, updateMonthlyCashFlowProfile: u } = x(), a = T.useMemo(() => {
193
+ let h = 0;
194
+ return t === i.SAVINGS_TRACK ? h = r?.amount_allocated_for_savings_goals || 0 : t === i.DEBT_TRACK ? h = r?.amount_allocated_for_debt_goals || 0 : t === i.RETIREMENT_TRACK && (h = r?.amount_allocated_for_retirement_goals || 0), h;
195
+ }, [r]), [_, p] = T.useState(a), c = async () => {
196
+ if (r) {
197
+ const h = { ...r };
198
+ t === i.SAVINGS_TRACK ? h.amount_allocated_for_savings_goals = _ : t === i.DEBT_TRACK ? h.amount_allocated_for_debt_goals = _ : t === i.RETIREMENT_TRACK && (h.amount_allocated_for_retirement_goals = _), await u(h), d(n.alert_contribution_updated);
199
+ }
200
+ };
201
+ return /* @__PURE__ */ e(b, { bgcolor: "background.paper", children: /* @__PURE__ */ e(
202
+ ne,
203
+ {
204
+ isSaveDisabled: !_ || isNaN(_),
205
+ label: n.contribution_label,
206
+ onCancel: () => p(a),
207
+ onSave: c,
208
+ primaryText: n.contribution_label,
209
+ secondaryText: v(a, "0,0.00"),
210
+ children: /* @__PURE__ */ e(
211
+ Ge,
212
+ {
213
+ amount: _,
214
+ autoFocus: !0,
215
+ error: !_ || isNaN(_),
216
+ fullWidth: !0,
217
+ minAmount: 0,
218
+ setAmount: (h) => p(isNaN(Number(h)) ? _ : Number(h)),
219
+ sx: { ".MuiTypography-Body": { p: 0 } }
220
+ }
221
+ )
222
+ }
223
+ ) });
224
+ }), St = ({ goals: t }) => {
225
+ const { goals: n, common: d } = A(), { reorderGoals: r, setAlert: u } = x(), [a, _] = T.useState(!1), [p, c] = T.useState(t.map((m) => ({ ...m })));
226
+ T.useEffect(() => {
227
+ a && c(t.map((m) => ({ ...m })));
228
+ }, [a]);
229
+ const h = [
230
+ {
231
+ field: "name",
232
+ flex: 1,
233
+ renderCell: (m) => {
234
+ const f = m.row;
235
+ return /* @__PURE__ */ s(b, { children: [
236
+ /* @__PURE__ */ e(y, { bold: !0, variant: "Body", children: f.name }),
237
+ /* @__PURE__ */ e(y, { variant: "XSmall", children: N(
238
+ n.goal_projection,
239
+ ee(
240
+ q(f.projected_to_complete_at || 0),
241
+ te.MONTH_SHORT_YEAR
242
+ )
243
+ ) })
244
+ ] });
245
+ },
246
+ sortable: !1
247
+ },
248
+ {
249
+ align: "right",
250
+ field: "amount",
251
+ minWidth: 140,
252
+ renderCell: (m) => {
253
+ const f = m.row;
254
+ return /* @__PURE__ */ e(y, { bold: !0, sx: { mr: 12 }, variant: "Body", children: v(f.amount, "0,0.00") });
255
+ },
256
+ sortable: !1
257
+ }
258
+ ], o = p.map((m) => ({
259
+ id: m.guid,
260
+ isHovering: !1,
261
+ __reorder__: m.name,
262
+ ...m
263
+ })), g = ({ oldIndex: m, targetIndex: f }) => {
264
+ const E = [...p];
265
+ E.splice(f, 0, E.splice(m, 1)[0]);
266
+ for (let C = 0; C < E.length; C += 1)
267
+ E[C].position = C + 1;
268
+ c(E);
269
+ }, l = async () => {
270
+ await r(p), u(n.alert_goals_reordered), _(!1);
271
+ };
272
+ return /* @__PURE__ */ s(b, { children: [
273
+ /* @__PURE__ */ e(w, { children: /* @__PURE__ */ e(D, { onClick: () => _(!0), children: /* @__PURE__ */ e(K, { children: /* @__PURE__ */ s(
274
+ b,
275
+ {
276
+ alignItems: "center",
277
+ color: "action.active",
278
+ direction: "row",
279
+ justifyContent: "space-between",
280
+ children: [
281
+ /* @__PURE__ */ e(y, { color: "primary.light", variant: "Body", children: n.reorder_goals_title }),
282
+ /* @__PURE__ */ e(B, { color: "primary" })
283
+ ]
284
+ }
285
+ ) }) }) }),
286
+ /* @__PURE__ */ e(
287
+ j,
288
+ {
289
+ ariaLabelClose: d.close_aria,
290
+ isOpen: a,
291
+ onClose: () => _(!1),
292
+ onPrimaryAction: l,
293
+ title: n.reorder_goals_title,
294
+ children: /* @__PURE__ */ s(b, { children: [
295
+ /* @__PURE__ */ e(V, { sx: { my: 12, mx: 24 }, children: n.reorder_goals_description }),
296
+ /* @__PURE__ */ e(
297
+ qe,
298
+ {
299
+ columnHeaderHeight: 0,
300
+ columns: h,
301
+ disableColumnFilter: !0,
302
+ disableColumnMenu: !0,
303
+ hideFooter: !0,
304
+ onRowOrderChange: g,
305
+ rowReordering: !0,
306
+ rows: o,
307
+ slots: {
308
+ rowReorderIcon: () => /* @__PURE__ */ e(Ze, { sx: { ml: 12 } })
309
+ //TODO: Add to mx-icons
310
+ },
311
+ sx: {
312
+ "& .MuiDataGrid-columnHeaders": {
313
+ borderBottomWidth: 0
314
+ }
315
+ }
316
+ }
317
+ )
318
+ ] })
319
+ }
320
+ )
321
+ ] });
322
+ }, Rt = ({ goal: t, index: n }) => {
323
+ const { goals: d } = A();
324
+ return /* @__PURE__ */ e(w, { children: /* @__PURE__ */ s(D, { children: [
325
+ t.track_type !== i.RETIREMENT_TRACK && /* @__PURE__ */ e(
326
+ P,
327
+ {
328
+ sx: {
329
+ alignItems: "center",
330
+ display: "flex",
331
+ justifyContent: "center",
332
+ ".MuiAvatar-root": { height: "16px", width: "16px" }
333
+ },
334
+ children: /* @__PURE__ */ e(re, { sx: { bgcolor: "text.primary", height: "16px", width: "16px" }, children: /* @__PURE__ */ e(y, { bold: !0, variant: "XSmall", children: n + 1 }) })
335
+ }
336
+ ),
337
+ /* @__PURE__ */ e(K, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ s(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
338
+ /* @__PURE__ */ s(b, { children: [
339
+ /* @__PURE__ */ e(y, { bold: !0, variant: "Body", children: t.name }),
340
+ /* @__PURE__ */ e(y, { variant: "XSmall", children: N(
341
+ d.goal_projection,
342
+ ee(
343
+ q(t.projected_to_complete_at || 0),
344
+ te.MONTH_SHORT_YEAR
345
+ )
346
+ ) })
347
+ ] }),
348
+ /* @__PURE__ */ e(y, { bold: !0, variant: "Body", children: v(t.amount, "0,0.00") })
349
+ ] }) })
350
+ ] }) });
351
+ }, Et = ({ goal: t }) => {
352
+ const { goals: n } = A();
353
+ return /* @__PURE__ */ e(w, { children: /* @__PURE__ */ s(D, { children: [
354
+ /* @__PURE__ */ e(P, { sx: { alignItems: "center", display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ e(je, { color: "success", filled: !0, size: 20 }) }),
355
+ /* @__PURE__ */ e(K, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ s(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
356
+ /* @__PURE__ */ s(b, { children: [
357
+ /* @__PURE__ */ e(y, { bold: !0, variant: "Body", children: t.name }),
358
+ /* @__PURE__ */ e(y, { variant: "XSmall", children: N(
359
+ n.completed_label,
360
+ ee(
361
+ q(t.completed_at || 0),
362
+ te.MONTH_SHORT_YEAR
363
+ )
364
+ ) })
365
+ ] }),
366
+ /* @__PURE__ */ e(y, { bold: !0, variant: "Body", children: v(t.amount, "0,0.00") })
367
+ ] }) })
368
+ ] }) }, t.guid);
369
+ }, vt = ({ trackType: t }) => {
370
+ const { goals: n, common: d } = A(), { orderedGoals: r } = x(), u = r.filter((m) => m.track_type === t), a = u.filter(
371
+ (m) => m.track_type === i.SAVINGS_TRACK && !m.has_been_spent || m.track_type !== i.SAVINGS_TRACK && !m.is_complete
372
+ ), _ = u.filter(
373
+ (m) => m.track_type === i.SAVINGS_TRACK && m.has_been_spent || m.track_type !== i.SAVINGS_TRACK && m.is_complete
374
+ ), [p, c] = T.useState(!1);
375
+ let h = n.manage_saving_goals, o = n.manage_saving_drawer_title, g = n.manage_saving_title, l = n.manage_saving_description;
376
+ return t === i.DEBT_TRACK ? (h = n.manage_debt_goals, o = n.manage_debt_drawer_title, g = n.manage_debt_title, l = n.manage_debt_description) : t === i.RETIREMENT_TRACK && (h = n.manage_retirement_goals, o = n.manage_retirement_drawer_title, g = n.manage_retirement_title, l = n.manage_retirement_description), /* @__PURE__ */ s(b, { children: [
377
+ /* @__PURE__ */ e(_e, { endIcon: /* @__PURE__ */ e(B, {}), onClick: () => c(!0), children: h }),
378
+ /* @__PURE__ */ e(
379
+ j,
380
+ {
381
+ ariaLabelClose: d.close_aria,
382
+ isOpen: p,
383
+ onClose: () => c(!1),
384
+ title: o,
385
+ children: /* @__PURE__ */ s(b, { children: [
386
+ /* @__PURE__ */ s(b, { m: 24, children: [
387
+ /* @__PURE__ */ e(Ve, { children: g }),
388
+ /* @__PURE__ */ e(V, { color: "text.secondary", sx: { textWrap: "wrap" }, variant: "ParagraphSmall", children: l })
389
+ ] }),
390
+ /* @__PURE__ */ e(Ct, { trackType: t }),
391
+ /* @__PURE__ */ e(y, { bold: !0, sx: { mb: 4, mx: 24, mt: 12 }, variant: "XSmall", children: n.goal_priority }),
392
+ /* @__PURE__ */ s(L, { sx: { bgcolor: "background.paper" }, children: [
393
+ a.map((m, f) => {
394
+ const E = f >= a.length - 1;
395
+ return /* @__PURE__ */ s(b, { children: [
396
+ /* @__PURE__ */ e(Rt, { goal: m, index: f }),
397
+ /* @__PURE__ */ e(
398
+ R,
399
+ {
400
+ variant: E && t === i.RETIREMENT_TRACK ? "fullWidth" : "inset"
401
+ }
402
+ )
403
+ ] }, `ongoing-${m.guid}`);
404
+ }),
405
+ t !== i.RETIREMENT_TRACK && /* @__PURE__ */ s(b, { children: [
406
+ /* @__PURE__ */ e(St, { goals: a }),
407
+ /* @__PURE__ */ e(R, {})
408
+ ] })
409
+ ] }),
410
+ t !== i.RETIREMENT_TRACK && _.length > 0 && /* @__PURE__ */ s(b, { children: [
411
+ /* @__PURE__ */ e(y, { bold: !0, sx: { mb: 4, mx: 24, mt: 12 }, variant: "XSmall", children: n.complete_title }),
412
+ /* @__PURE__ */ e(L, { sx: { bgcolor: "background.paper" }, children: _.map((m, f) => {
413
+ const E = f > a.length - 1;
414
+ return /* @__PURE__ */ s(b, { children: [
415
+ /* @__PURE__ */ e(Et, { goal: m }),
416
+ /* @__PURE__ */ e(R, { variant: E ? "fullWidth" : "inset" })
417
+ ] }, `complete-${m.guid}`);
418
+ }) })
419
+ ] })
420
+ ] })
421
+ }
422
+ )
423
+ ] });
424
+ }, de = M(({ trackType: t, onAddGoals: n }) => {
425
+ const { isMobile: d } = ue(), { goals: r } = A(), { orderedGoals: u, setSelectedGoal: a } = x(), _ = u.filter((o) => o.track_type === t), p = _.filter(
426
+ (o) => o.track_type === i.SAVINGS_TRACK && !o.has_been_spent || o.track_type !== i.SAVINGS_TRACK && !o.is_complete
427
+ ), c = _.filter(
428
+ (o) => o.track_type === i.SAVINGS_TRACK && o.has_been_spent || o.track_type !== i.SAVINGS_TRACK && o.is_complete
429
+ ), h = t === i.DEBT_TRACK ? r.zero_state_complete_debt : r.zero_state_complete_savings;
430
+ return /* @__PURE__ */ s(b, { mt: 16, mx: d ? 24 : 0, children: [
431
+ /* @__PURE__ */ s(b, { alignItems: "center", direction: "row", justifyContent: "space-between", mb: 8, children: [
432
+ /* @__PURE__ */ e(y, { color: "text.secondary", variant: "Small", children: r.ongoing_title }),
433
+ /* @__PURE__ */ e(vt, { trackType: t })
434
+ ] }),
435
+ p.length > 0 ? /* @__PURE__ */ e(he, { container: !0, spacing: 24, children: p.map((o, g, l) => (
436
+ // Goal should be full width in mobile or if it's the first goal (unless there are 2)
437
+ /* @__PURE__ */ e(he, { xs: d || g === 0 && l.length !== 2 ? 12 : 6, children: /* @__PURE__ */ e(De, { goal: o, onClick: () => a(o) }, o.guid) }, g)
438
+ )) }) : /* @__PURE__ */ s(
439
+ b,
440
+ {
441
+ alignItems: "center",
442
+ bgcolor: "background.default",
443
+ borderRadius: 2,
444
+ height: 166,
445
+ justifyContent: "center",
446
+ py: 18,
447
+ children: [
448
+ /* @__PURE__ */ e(
449
+ V,
450
+ {
451
+ sx: (o) => ({
452
+ color: "text.secondary",
453
+ [o.breakpoints.down("sm")]: {
454
+ px: 10
455
+ },
456
+ width: { sm: 381 }
457
+ }),
458
+ variant: "Small",
459
+ children: yt(t, r)
460
+ }
461
+ ),
462
+ /* @__PURE__ */ e(_e, { onClick: n, sx: { mt: 16, width: { sm: 224 } }, variant: "contained", children: r.add_goals_button })
463
+ ]
464
+ }
465
+ ),
466
+ t !== i.RETIREMENT_TRACK && /* @__PURE__ */ s(b, { gap: 16, mt: 48, children: [
467
+ /* @__PURE__ */ e(y, { color: "text.secondary", variant: "Small", children: r.complete_title }),
468
+ c.length === 0 && /* @__PURE__ */ e(b, { alignItems: "center", bgcolor: "background.default", borderRadius: 2, py: 18, children: /* @__PURE__ */ e(
469
+ V,
470
+ {
471
+ sx: (o) => ({
472
+ color: "text.secondary",
473
+ width: { sm: 393 },
474
+ [o.breakpoints.down("sm")]: {
475
+ px: 10
476
+ }
477
+ }),
478
+ variant: "Small",
479
+ children: h
480
+ }
481
+ ) }),
482
+ c.map((o) => /* @__PURE__ */ e(Te, { elevation: 2, children: /* @__PURE__ */ e(ye, { onClick: () => a(o), children: /* @__PURE__ */ e(Ae, { sx: { ":last-child": { pb: 16 } }, children: /* @__PURE__ */ s(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
483
+ /* @__PURE__ */ s(b, { alignItems: "center", direction: "row", gap: 6, children: [
484
+ /* @__PURE__ */ e(Pe, { color: "success", fill: !0, name: "check_circle", size: 20 }),
485
+ /* @__PURE__ */ e(y, { color: "text.secondary", variant: "Body", children: o.name })
486
+ ] }),
487
+ /* @__PURE__ */ e(y, { bold: !0, variant: "Body", children: v(o.amount, "0,0.00") })
488
+ ] }) }) }) }, o.guid))
489
+ ] })
490
+ ] });
491
+ }), xt = ({ goalType: t, onClick: n }) => {
492
+ const { goals: d } = A(), { bgcolor: r, icon: u, label: a, description: _, subTypes: p, type: c } = t, [h, o] = T.useState(!1), g = p.length > 0;
493
+ return /* @__PURE__ */ e(b, { children: /* @__PURE__ */ s(L, { sx: { bgcolor: "background.paper" }, children: [
494
+ /* @__PURE__ */ e(w, { children: /* @__PURE__ */ s(
495
+ D,
496
+ {
497
+ onClick: g ? () => o(!h) : () => n(
498
+ c === i.RETIREMENT_TRACK ? d.retirement : "",
499
+ c === i.RETIREMENT_TRACK ? G.RETIREMENT : G.OTHER,
500
+ c
501
+ ),
502
+ children: [
503
+ /* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(re, { sx: { bgcolor: r }, variant: "rounded", children: /* @__PURE__ */ e(ge, { name: u, sx: { color: "grey.900" } }) }) }),
504
+ /* @__PURE__ */ e(K, { primary: a, secondary: _, sx: { mr: 24 } }),
505
+ !g && /* @__PURE__ */ e(B, {}),
506
+ g && (h ? /* @__PURE__ */ e(Fe, {}) : /* @__PURE__ */ e(ze, {}))
507
+ ]
508
+ }
509
+ ) }),
510
+ /* @__PURE__ */ e(R, { variant: "inset" }),
511
+ g && /* @__PURE__ */ e(Je, { in: h, children: /* @__PURE__ */ e(L, { sx: { bgcolor: "background.default" }, children: p.map((l, m) => /* @__PURE__ */ e(w, { sx: { pl: 48 }, children: /* @__PURE__ */ s(D, { onClick: () => n(l.label, l.metaType, c), children: [
512
+ /* @__PURE__ */ e(Qe, { sx: { mr: 8 }, children: /* @__PURE__ */ e(ge, { name: l.icon }) }),
513
+ /* @__PURE__ */ e(
514
+ K,
515
+ {
516
+ primary: l.label,
517
+ primaryTypographyProps: { variant: "Body" }
518
+ }
519
+ ),
520
+ /* @__PURE__ */ e(B, {})
521
+ ] }) }, m)) }) })
522
+ ] }) });
523
+ }, Ke = ({
524
+ accounts: t,
525
+ isOpen: n,
526
+ onClose: d,
527
+ onSave: r,
528
+ title: u
529
+ }) => {
530
+ const { goals: a, common: _ } = A(), [p, c] = T.useState([]), h = (o) => {
531
+ const g = p.findIndex((m) => m.guid === o.guid), l = [...p];
532
+ g >= 0 ? l.splice(g, 1) : l.push(o), c(l);
533
+ };
534
+ return /* @__PURE__ */ s(
535
+ j,
536
+ {
537
+ ariaLabelClose: _.close_aria,
538
+ isOpen: n,
539
+ onClose: d,
540
+ onPrimaryAction: () => r(p),
541
+ title: u,
542
+ children: [
543
+ /* @__PURE__ */ e(V, { color: "text.secondary", sx: { mx: 24, my: 12 }, children: a.select_debt_accounts_description }),
544
+ /* @__PURE__ */ s(L, { sx: { bgcolor: "background.white" }, children: [
545
+ /* @__PURE__ */ e(R, { variant: "fullWidth" }),
546
+ t.map((o, g) => /* @__PURE__ */ s(T.Fragment, { children: [
547
+ /* @__PURE__ */ e(w, { children: /* @__PURE__ */ s(D, { onClick: () => h(o), children: [
548
+ /* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(
549
+ ae,
550
+ {
551
+ alt: o?.name || "",
552
+ institutionGuid: o?.institution_guid || ""
553
+ }
554
+ ) }),
555
+ /* @__PURE__ */ e(
556
+ K,
557
+ {
558
+ primary: o.name || o.feed_name,
559
+ secondary: v(o.balance || 0, "0,0.00")
560
+ }
561
+ ),
562
+ /* @__PURE__ */ e(et, { checked: p.some((l) => l.guid === o.guid) })
563
+ ] }) }),
564
+ /* @__PURE__ */ e(R, { variant: g < t.length - 1 ? "inset" : "fullWidth" })
565
+ ] }, o.guid))
566
+ ] }),
567
+ /* @__PURE__ */ e(
568
+ fe,
569
+ {
570
+ description: a.connect_description,
571
+ label: a.connect_button,
572
+ title: a.connect_title
573
+ }
574
+ )
575
+ ]
576
+ }
577
+ );
578
+ }, It = ({ onClose: t }) => {
579
+ const { goals: n } = A(), { addGoal: d, debtGoals: r, setAlert: u, setSelectedGoal: a } = x(), { visibleDebtAccounts: _ } = H(), [p, c] = T.useState(!1), h = Tt(n), o = (l, m, f) => {
580
+ f === i.DEBT_TRACK ? c(!0) : a({
581
+ amount: 0,
582
+ current_amount: 0,
583
+ goal_type: pe.SAVE_AMOUNT,
584
+ initial_amount: 0,
585
+ meta_type: m,
586
+ name: l,
587
+ track_type: f
588
+ });
589
+ }, g = async (l) => {
590
+ for (const m of l) {
591
+ let f = G.CREDIT_CARD;
592
+ m.account_type === be.LOAN ? f = G.LOANS : m.account_type === be.LINE_OF_CREDIT && (f = G.LINE_OF_CREDIT), await d({
593
+ account_guid: m.guid,
594
+ amount: 0,
595
+ current_amount: 0,
596
+ goal_type: pe.KEEP_BALANCE_BELOW,
597
+ initial_amount: m.balance || 0,
598
+ interest_rate: m.interest_rate || 0,
599
+ meta_type: f,
600
+ monthly_payment: m.minimum_payment || 0,
601
+ name: m.name || m.feed_name || "",
602
+ track_type: i.DEBT_TRACK
603
+ }), u(n.alert_goal_added);
604
+ }
605
+ c(!1), t?.(i.DEBT_TRACK);
606
+ };
607
+ return /* @__PURE__ */ s(b, { children: [
608
+ /* @__PURE__ */ e(L, { sx: { bgcolor: "background.paper" }, children: h.map((l, m) => /* @__PURE__ */ e(xt, { goalType: l, onClick: o }, m)) }),
609
+ /* @__PURE__ */ e(
610
+ Ke,
611
+ {
612
+ accounts: _.filter((l) => !r.find((m) => m.account_guid === l.guid)),
613
+ isOpen: p,
614
+ onClose: () => c(!1),
615
+ onSave: g,
616
+ title: n.select_debt_accounts_title
617
+ }
618
+ )
619
+ ] });
620
+ }, Me = ({ account: t }) => {
621
+ const { accounts: n } = A(), { setSelectedAccount: d } = tt(), [r, u] = T.useState(!1);
622
+ return /* @__PURE__ */ s(w, { sx: { bgcolor: "background.paper" }, children: [
623
+ /* @__PURE__ */ s(D, { onClick: () => {
624
+ d(t), u(!0);
625
+ }, children: [
626
+ /* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(
627
+ ae,
628
+ {
629
+ alt: t.name || "",
630
+ institutionGuid: t.institution_guid || ""
631
+ }
632
+ ) }),
633
+ /* @__PURE__ */ e(
634
+ K,
635
+ {
636
+ primary: t.name || t.feed_name,
637
+ secondary: v(t.balance || 0, "0,0.00")
638
+ }
639
+ ),
640
+ /* @__PURE__ */ e(B, {})
641
+ ] }),
642
+ /* @__PURE__ */ e(j, { isOpen: r, onClose: () => u(!1), title: n.account_details, children: /* @__PURE__ */ s(b, { children: [
643
+ /* @__PURE__ */ e(nt, {}),
644
+ /* @__PURE__ */ e(ot, {})
645
+ ] }) })
646
+ ] });
647
+ }, Gt = M(({ goal: t }) => {
648
+ const { goals: n } = A(), { setAlert: d, setSelectedGoal: r, updateGoal: u } = x(), [a, _] = T.useState(t.amount), p = !t.guid, c = a < 0 || a > 9999999999e-2, h = t.track_type === i.SAVINGS_TRACK && t.has_been_spent || t.track_type !== i.SAVINGS_TRACK && t.is_complete, o = async () => {
649
+ const l = { ...t, amount: a };
650
+ t.amount = a, p ? r(l) : (await u(l), d(n.alert_goal_updated_amount));
651
+ }, g = () => {
652
+ setTimeout(() => {
653
+ _(t.amount);
654
+ }, 250);
655
+ };
656
+ return /* @__PURE__ */ e(
657
+ ne,
658
+ {
659
+ isDisabled: h,
660
+ isSaveDisabled: c,
661
+ label: n.details_amount_to_save,
662
+ onCancel: g,
663
+ onSave: o,
664
+ primaryText: n.details_amount_to_save,
665
+ secondaryText: v(t.amount, "0,0"),
666
+ zeroStateText: p && t.amount === 0 ? n.add_amount : void 0,
667
+ children: /* @__PURE__ */ e(
668
+ Ge,
669
+ {
670
+ amount: a,
671
+ autoFocus: !0,
672
+ error: c,
673
+ fullWidth: !0,
674
+ minAmount: 0,
675
+ setAmount: (l) => _(isNaN(Number(l)) ? a : Number(l)),
676
+ sx: { ".MuiTypography-Body": { p: 0 } }
677
+ }
678
+ )
679
+ }
680
+ );
681
+ }), Nt = ({ goal: t }) => {
682
+ const { visibleCheckingAccounts: n, visibleSavingsAccounts: d } = H(), { accounts: r, goals: u } = A(), { setAlert: a, setSelectedGoal: _, updateGoal: p } = x(), c = !t.guid, [h, o] = T.useState(!1), g = async ({ balance: l, guid: m }) => {
683
+ const f = { ...t, account_guid: m, current_amount: l || 0 };
684
+ c ? _(f) : (await p(f), a(u.alert_account_changed)), o(!1);
685
+ };
686
+ return /* @__PURE__ */ s(b, { children: [
687
+ c && !t.account_guid ? /* @__PURE__ */ e(w, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ s(D, { onClick: () => o(!0), children: [
688
+ /* @__PURE__ */ e(K, { children: /* @__PURE__ */ s(b, { alignItems: "center", color: "primary.main", direction: "row", gap: 8, children: [
689
+ /* @__PURE__ */ e(Ee, { filled: !0 }),
690
+ u.details_add_account
691
+ ] }) }),
692
+ /* @__PURE__ */ e(B, { color: "primary" })
693
+ ] }) }) : /* @__PURE__ */ s(b, { sx: { gap: 8, my: 24, mx: 24 }, children: [
694
+ /* @__PURE__ */ e(_e, { onClick: () => o(!0), variant: "text", children: u.details_change_account }),
695
+ /* @__PURE__ */ e(
696
+ y,
697
+ {
698
+ color: "text.secondary",
699
+ sx: { textAlign: "center", whiteSpace: "wrap" },
700
+ variant: "Paragraph",
701
+ children: N(u.details_change_account_description, t.name)
702
+ }
703
+ )
704
+ ] }),
705
+ /* @__PURE__ */ e(j, { isOpen: h, onClose: () => o(!1), title: u.details_change_account, children: /* @__PURE__ */ s(b, { children: [
706
+ /* @__PURE__ */ e(y, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: r.account_types[1] }),
707
+ /* @__PURE__ */ e(L, { sx: { bgcolor: "background.paper" }, children: n.map((l) => /* @__PURE__ */ e(w, { children: /* @__PURE__ */ s(D, { onClick: () => g(l), children: [
708
+ /* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(
709
+ ae,
710
+ {
711
+ alt: l?.name || "",
712
+ institutionGuid: l?.institution_guid || ""
713
+ }
714
+ ) }),
715
+ /* @__PURE__ */ e(
716
+ K,
717
+ {
718
+ primary: l?.name || l?.feed_name,
719
+ secondary: v(l?.balance || 0, "0,0.00")
720
+ }
721
+ ),
722
+ /* @__PURE__ */ e(B, {})
723
+ ] }) }, l.guid)) }),
724
+ /* @__PURE__ */ e(y, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: r.account_types[2] }),
725
+ /* @__PURE__ */ e(L, { sx: { bgcolor: "background.paper" }, children: d.map((l) => /* @__PURE__ */ e(w, { children: /* @__PURE__ */ s(D, { onClick: () => g(l), children: [
726
+ /* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(
727
+ ae,
728
+ {
729
+ alt: l?.name || "",
730
+ institutionGuid: l?.institution_guid || ""
731
+ }
732
+ ) }),
733
+ /* @__PURE__ */ e(
734
+ K,
735
+ {
736
+ primary: l?.name || l?.feed_name,
737
+ secondary: v(l?.balance || 0, "0,0.00")
738
+ }
739
+ ),
740
+ /* @__PURE__ */ e(B, {})
741
+ ] }) }, l.guid)) }),
742
+ /* @__PURE__ */ e(
743
+ fe,
744
+ {
745
+ description: u.connect_description,
746
+ label: u.connect_button,
747
+ title: u.connect_title
748
+ }
749
+ )
750
+ ] }) })
751
+ ] });
752
+ }, kt = M(({ goal: t }) => {
753
+ const { goals: n } = A(), { setAlert: d, setSelectedGoal: r, updateGoal: u } = x(), [a, _] = T.useState(t.name), p = !t.guid, c = t.track_type === i.SAVINGS_TRACK && t.has_been_spent || t.track_type !== i.SAVINGS_TRACK && t.is_complete, h = async () => {
754
+ const g = { ...t, name: a };
755
+ t.name = a, p ? r(g) : (await u(g), d(n.alert_goal_updated_name));
756
+ }, o = () => {
757
+ setTimeout(() => {
758
+ _(t.name);
759
+ }, 250);
760
+ };
761
+ return /* @__PURE__ */ e(
762
+ ne,
763
+ {
764
+ isDisabled: c,
765
+ isSaveDisabled: !a,
766
+ label: n.details_goal_name,
767
+ onCancel: o,
768
+ onSave: h,
769
+ primaryText: n.details_goal_name,
770
+ secondaryText: t.name,
771
+ children: /* @__PURE__ */ e(
772
+ Ne,
773
+ {
774
+ error: !a,
775
+ fullWidth: !0,
776
+ label: n.details_goal_name,
777
+ onChange: (g) => _(g.target.value),
778
+ value: a
779
+ }
780
+ )
781
+ }
782
+ );
783
+ }), wt = ({ goal: t }) => {
784
+ const { goals: n } = A(), { setAlert: d, setSelectedGoal: r, updateGoal: u } = x(), [a, _] = T.useState(t.retirement_age || 65), p = !t.guid, c = async () => {
785
+ if (!isNaN(a)) {
786
+ const g = { ...t, retirement_age: a };
787
+ t.retirement_age = a, p ? r(g) : (await u(g), d(n.alert_goal_updated_retirement_age));
788
+ }
789
+ }, h = () => {
790
+ setTimeout(() => {
791
+ _(t.retirement_age || 65);
792
+ }, 250);
793
+ }, o = !a || isNaN(a) || a < 20 || a >= 100;
794
+ return /* @__PURE__ */ e(
795
+ ne,
796
+ {
797
+ isDisabled: t.is_complete,
798
+ isSaveDisabled: o,
799
+ label: n.details_retirement_age,
800
+ onCancel: h,
801
+ onSave: c,
802
+ primaryText: n.details_retirement_age,
803
+ secondaryText: `${t.retirement_age}`,
804
+ zeroStateText: p && !t.retirement_age ? n.add_age : void 0,
805
+ children: /* @__PURE__ */ e(
806
+ Ne,
807
+ {
808
+ error: o,
809
+ fullWidth: !0,
810
+ label: n.details_retirement_age,
811
+ onChange: (g) => _(Number(g.target.value)),
812
+ value: isNaN(a) ? "" : a
813
+ }
814
+ )
815
+ }
816
+ );
817
+ }, Dt = M(({ goal: t }) => {
818
+ const { goals: n } = A(), { user: d, updateUser: r } = ve(), { setAlert: u } = x(), [a, _] = T.useState(q(d.birthday ?? 0)), [p, c] = T.useState(null), h = t.is_complete, o = async () => {
819
+ a && st(a) && (await r({ ...d, birthday: lt(a) }), u(n.alert_goal_updated_birthday));
820
+ };
821
+ return /* @__PURE__ */ e(
822
+ ne,
823
+ {
824
+ isDisabled: h,
825
+ isSaveDisabled: !!p,
826
+ label: n.details_birthday,
827
+ onSave: o,
828
+ primaryText: n.details_birthday,
829
+ secondaryText: `${ee(q(d.birthday ?? 0), te.MONTH_DAY_YEAR)}`,
830
+ zeroStateText: !t.guid && !d.birthday ? n.add_birthday : void 0,
831
+ children: /* @__PURE__ */ e(mt, { dateAdapter: ct, children: /* @__PURE__ */ e(
832
+ dt,
833
+ {
834
+ label: n.details_birthday,
835
+ onChange: _,
836
+ onError: (g) => c(g),
837
+ sx: { width: "100%" },
838
+ value: a
839
+ }
840
+ ) })
841
+ }
842
+ );
843
+ }), Kt = ({ goal: t }) => {
844
+ const { goals: n } = A(), { visibleInvestmentAccounts: d } = H(), {
845
+ addRetirementGoalAccount: r,
846
+ newRetirementGoalAccounts: u,
847
+ retirementGoalAccounts: a,
848
+ selectedGoal: _,
849
+ setAlert: p,
850
+ setNewRetirementGoalAccounts: c,
851
+ setSelectedGoal: h
852
+ } = x(), [o, g] = T.useState(!1), l = !t.guid, m = d.filter(
853
+ (C) => l ? u.find((S) => S.account_guid === C.guid) : a.find((S) => S.account_guid === C.guid)
854
+ ), f = d.filter(
855
+ (C) => !a.find((S) => S.account_guid === C.guid)
856
+ ), E = async (C) => {
857
+ const S = C.map((I) => ({
858
+ account_guid: I.guid,
859
+ retirement_goal_guid: t.guid
860
+ }));
861
+ if (l)
862
+ c(S);
863
+ else
864
+ for (const I of S)
865
+ await r(I), p(n.alert_account_added);
866
+ h({
867
+ ..._,
868
+ current_amount: C.reduce((I, F) => I + (F.balance || 0), 0)
869
+ }), g(!1);
870
+ };
871
+ return /* @__PURE__ */ s(b, { children: [
872
+ m.map((C) => /* @__PURE__ */ s(b, { children: [
873
+ /* @__PURE__ */ e(Me, { account: C }),
874
+ /* @__PURE__ */ e(R, {})
875
+ ] }, C.guid)),
876
+ /* @__PURE__ */ e(w, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ s(D, { onClick: () => g(!0), children: [
877
+ /* @__PURE__ */ e(K, { children: /* @__PURE__ */ s(b, { alignItems: "center", color: "primary.main", direction: "row", gap: 8, children: [
878
+ /* @__PURE__ */ e(Ee, { filled: !0 }),
879
+ n.details_add_account
880
+ ] }) }),
881
+ /* @__PURE__ */ e(B, { color: "primary" })
882
+ ] }) }),
883
+ /* @__PURE__ */ e(
884
+ Ke,
885
+ {
886
+ accounts: f,
887
+ isOpen: o,
888
+ onClose: () => g(!1),
889
+ onSave: E,
890
+ title: n.add_select_accounts
891
+ }
892
+ )
893
+ ] });
894
+ }, Mt = M(({ goal: t }) => {
895
+ const { goals: n } = A(), { visibleAccounts: d } = H(), r = T.useMemo(
896
+ () => d.find((_) => _.guid === t.account_guid),
897
+ [d, t]
898
+ ), u = t.track_type;
899
+ let a = n.details_save_title;
900
+ return t.track_type === i.DEBT_TRACK ? a = n.details_debt_title : t.track_type === i.RETIREMENT_TRACK && (a = n.details_retirement_title), /* @__PURE__ */ s(b, { children: [
901
+ /* @__PURE__ */ s(b, { mx: 24, children: [
902
+ /* @__PURE__ */ e(y, { color: "text.secondary", sx: { mb: 4, mt: 24 }, variant: "XSmall", children: a }),
903
+ /* @__PURE__ */ e(De, { goal: t, isInDrawer: !0 }),
904
+ /* @__PURE__ */ e(y, { color: "text.secondary", sx: { mb: 4, mt: 24 }, variant: "XSmall", children: n.details_title })
905
+ ] }),
906
+ /* @__PURE__ */ s(L, { sx: { bgcolor: "background.paper" }, children: [
907
+ /* @__PURE__ */ e(kt, { goal: t }),
908
+ /* @__PURE__ */ e(R, { sx: { ml: 24 } }),
909
+ (u === i.SAVINGS_TRACK || u === i.RETIREMENT_TRACK) && /* @__PURE__ */ s(Y, { children: [
910
+ /* @__PURE__ */ e(Gt, { goal: t }),
911
+ /* @__PURE__ */ e(R, { sx: { ml: u === i.RETIREMENT_TRACK ? 24 : 0 } })
912
+ ] }),
913
+ t.track_type === i.DEBT_TRACK && /* @__PURE__ */ s(Y, { children: [
914
+ /* @__PURE__ */ e(at, { goal: t }),
915
+ /* @__PURE__ */ e(R, { sx: { ml: 24 } }),
916
+ /* @__PURE__ */ e(rt, { goal: t }),
917
+ /* @__PURE__ */ e(R, { sx: { ml: 24 } }),
918
+ /* @__PURE__ */ e(it, { goal: t }),
919
+ /* @__PURE__ */ e(R, { variant: "fullWidth" })
920
+ ] }),
921
+ t.track_type === i.RETIREMENT_TRACK && /* @__PURE__ */ s(Y, { children: [
922
+ /* @__PURE__ */ e(wt, { goal: t }),
923
+ /* @__PURE__ */ e(R, { sx: { ml: 24 } }),
924
+ /* @__PURE__ */ e(Dt, { goal: t }),
925
+ /* @__PURE__ */ e(R, { variant: "fullWidth" })
926
+ ] })
927
+ ] }),
928
+ /* @__PURE__ */ e(y, { color: "text.secondary", sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: t.track_type === i.RETIREMENT_TRACK ? n.details_accounts : n.details_account }),
929
+ t.track_type !== i.RETIREMENT_TRACK && r && /* @__PURE__ */ s(Y, { children: [
930
+ /* @__PURE__ */ e(Me, { account: r }),
931
+ /* @__PURE__ */ e(R, {})
932
+ ] }),
933
+ t.track_type === i.RETIREMENT_TRACK && /* @__PURE__ */ s(Y, { children: [
934
+ /* @__PURE__ */ e(Kt, { goal: t }),
935
+ /* @__PURE__ */ e(R, {})
936
+ ] }),
937
+ t.track_type === i.SAVINGS_TRACK && !t.is_complete && /* @__PURE__ */ e(Nt, { goal: t })
938
+ ] });
939
+ }), Ot = M(({ onClose: t }) => {
940
+ const { visibleInvestmentAccounts: n } = H(), { goals: d, common: r } = A(), {
941
+ addGoal: u,
942
+ addRetirementGoal: a,
943
+ deleteGoal: _,
944
+ deleteRetirementGoal: p,
945
+ newRetirementGoalAccounts: c,
946
+ retirementGoalAccounts: h,
947
+ selectedGoal: o,
948
+ setAlert: g,
949
+ setSelectedGoal: l,
950
+ updateGoal: m
951
+ } = x(), { user: f } = ve(), [E, C] = T.useState(!1), S = !o?.guid, I = o?.track_type === i.SAVINGS_TRACK && o.is_complete && !o.has_been_spent, F = T.useMemo(() => {
952
+ const k = S ? c : h;
953
+ return n.filter(($) => k.some((O) => O.account_guid === $.guid));
954
+ }, [S, n, c, h]), J = T.useMemo(() => {
955
+ if (!o) return !1;
956
+ const { account_guid: k, track_type: $, name: O, amount: Q, retirement_age: W } = o;
957
+ return $ === i.SAVINGS_TRACK ? k ? !!O && !!Q : !1 : $ === i.RETIREMENT_TRACK ? F.length ? !!O && !!Q && !!W && !!f.birthday : !1 : !0;
958
+ }, [o, F, f.birthday]);
959
+ let z = r.delete_button, X = () => C(!0);
960
+ S ? (X = () => oe(), z = r.save_button) : I && (X = () => le(), z = d.mark_as_complete_button);
961
+ const oe = async () => {
962
+ if (o) {
963
+ const k = o.track_type;
964
+ k !== i.RETIREMENT_TRACK ? await u(o) : k === i.RETIREMENT_TRACK && await a({ ...o, target_amount: o.amount }), g(d.alert_goal_added), l(void 0), k && t?.(k);
965
+ }
966
+ }, ie = async () => {
967
+ o && (o.track_type !== i.RETIREMENT_TRACK ? await _(o.guid) : o.track_type === i.RETIREMENT_TRACK && await p(o), g(d.alert_goal_deleted), l(void 0));
968
+ }, le = async () => {
969
+ const k = {
970
+ ...o,
971
+ has_been_spent: !0
972
+ };
973
+ await m(k), g(d.alert_goal_completed), l(void 0);
974
+ };
975
+ return /* @__PURE__ */ s(b, { children: [
976
+ /* @__PURE__ */ e(
977
+ j,
978
+ {
979
+ ariaLabelClose: r.close_aria,
980
+ hasSecondaryAction: S,
981
+ isOpen: !!o,
982
+ isPrimaryDisabled: !J,
983
+ onClose: () => l(void 0),
984
+ onPrimaryAction: X,
985
+ primaryColor: S || I ? "primary" : "error",
986
+ primaryText: z,
987
+ secondaryColor: "primary",
988
+ title: d.goal_details,
989
+ children: o && /* @__PURE__ */ e(Mt, { goal: o })
990
+ }
991
+ ),
992
+ /* @__PURE__ */ e(
993
+ Ue,
994
+ {
995
+ copy: { close_aria: r.close_aria, title: d.delete_goal },
996
+ isOpen: E,
997
+ maxWidth: "xs",
998
+ onClose: () => C(!1),
999
+ onPrimaryAction: ie,
1000
+ primaryColor: "error",
1001
+ primaryText: r.delete_button,
1002
+ children: /* @__PURE__ */ e(y, { sx: { textWrap: "wrap" }, variant: "Paragraph", children: N(d.delete_description, o?.name || "") })
1003
+ }
1004
+ )
1005
+ ] });
1006
+ }), jn = M(({ onBackClick: t, sx: n }) => {
1007
+ const { onEvent: d } = xe(), { isMobile: r } = ue(), { visibleAccounts: u } = H(), { isCopyLoaded: a, isInitialized: _, setSelectedAccounts: p } = Ie(), { goals: c, common: h } = A(), { alert: o, goals: g, goalsLoaded: l, loadGoals: m, monthlyCashFlowProfile: f, setAlert: E, retirmentGoals: C } = x(), [S, I] = T.useState(0), [F, J] = T.useState(!1), z = f?.amount_allocated_for_savings_goals || 0, X = f?.amount_allocated_for_debt_goals || 0, oe = f?.amount_allocated_for_retirement_goals || 0, ie = a ? N(
1008
+ r ? c.tab_subtitle_mobile : c.tab_subtitle,
1009
+ v(z, "0,0")
1010
+ ) : "", le = a ? N(
1011
+ r ? c.tab_subtitle_mobile : c.tab_subtitle,
1012
+ v(X, "0,0")
1013
+ ) : "", k = a ? N(
1014
+ r ? c.tab_subtitle_mobile : c.tab_subtitle,
1015
+ v(oe, "0,0")
1016
+ ) : "";
1017
+ T.useEffect(() => {
1018
+ p(u), d(Z.GOALS_VIEW);
1019
+ }, []), T.useEffect(() => {
1020
+ _ && m().finally();
1021
+ }, [_, z, X, oe]);
1022
+ const $ = () => {
1023
+ d(Z.GOALS_CLICK_FILTER);
1024
+ }, O = () => {
1025
+ J(!0), d(Z.GOALS_CLICK_ADD);
1026
+ }, Q = (U) => {
1027
+ J(!1), U === i.SAVINGS_TRACK ? I(0) : U === i.DEBT_TRACK ? I(1) : U === i.RETIREMENT_TRACK && I(2);
1028
+ }, W = T.useMemo(
1029
+ () => l && (g.length === 0 || g.every(({ track_type: U }) => !U) && C.length === 0),
1030
+ [g, l, C]
1031
+ );
1032
+ return !l || !a || !_ ? /* @__PURE__ */ e(ke, {}) : /* @__PURE__ */ s(
1033
+ ut,
1034
+ {
1035
+ accountOptions: u,
1036
+ actions: [
1037
+ {
1038
+ iconName: "add",
1039
+ label: c.add_title,
1040
+ onClick: O
1041
+ }
1042
+ ],
1043
+ onAccountsFilterClick: $,
1044
+ onBackClick: t,
1045
+ sx: n,
1046
+ title: c.title,
1047
+ children: [
1048
+ /* @__PURE__ */ s(b, { mx: r ? 0 : 48, my: 24, children: [
1049
+ /* @__PURE__ */ s(
1050
+ We,
1051
+ {
1052
+ onChange: (U, Oe) => I(Oe),
1053
+ sx: { bgcolor: "background.paper" },
1054
+ textColor: "primary",
1055
+ value: W ? !1 : S,
1056
+ variant: "fullWidth",
1057
+ children: [
1058
+ /* @__PURE__ */ e(
1059
+ se,
1060
+ {
1061
+ disabled: W,
1062
+ label: /* @__PURE__ */ e(ce, { subtitle: ie, title: c.tab_saving_title })
1063
+ }
1064
+ ),
1065
+ /* @__PURE__ */ e(
1066
+ se,
1067
+ {
1068
+ disabled: W,
1069
+ label: /* @__PURE__ */ e(ce, { subtitle: le, title: c.tab_debt_title })
1070
+ }
1071
+ ),
1072
+ /* @__PURE__ */ e(
1073
+ se,
1074
+ {
1075
+ disabled: W,
1076
+ label: /* @__PURE__ */ e(ce, { subtitle: k, title: c.tab_retirement_title })
1077
+ }
1078
+ )
1079
+ ]
1080
+ }
1081
+ ),
1082
+ W ? /* @__PURE__ */ e(
1083
+ _t,
1084
+ {
1085
+ header: c.create_goals_header,
1086
+ icon: "trophy",
1087
+ onClick: O,
1088
+ primaryButton: c.add_goals_button,
1089
+ subText: c.empty_state_subheader,
1090
+ sx: {
1091
+ width: { sm: 432 },
1092
+ ".buttons-footer": {
1093
+ width: 139
1094
+ }
1095
+ }
1096
+ }
1097
+ ) : /* @__PURE__ */ s(Y, { children: [
1098
+ S === 0 && /* @__PURE__ */ e(de, { onAddGoals: O, trackType: i.SAVINGS_TRACK }),
1099
+ S === 1 && /* @__PURE__ */ e(de, { onAddGoals: O, trackType: i.DEBT_TRACK }),
1100
+ S === 2 && /* @__PURE__ */ e(de, { onAddGoals: O, trackType: i.RETIREMENT_TRACK })
1101
+ ] })
1102
+ ] }),
1103
+ /* @__PURE__ */ e(Ot, { onClose: Q }),
1104
+ /* @__PURE__ */ e(
1105
+ j,
1106
+ {
1107
+ ariaLabelClose: h.close_aria,
1108
+ isOpen: F,
1109
+ onClose: () => J(!1),
1110
+ title: c.add_goal_title,
1111
+ children: /* @__PURE__ */ e(It, { onClose: Q })
1112
+ }
1113
+ ),
1114
+ /* @__PURE__ */ e(Le, { onClose: () => E(""), open: !!o, children: /* @__PURE__ */ e(Be, { onClose: () => E(""), severity: "success", variant: "filled", children: o }) })
1115
+ ]
1116
+ }
1117
+ );
1118
+ }), Bt = M(({ goal: t }) => {
1119
+ const { goals: n } = A(), d = gt(), {
1120
+ backgroundColor: r,
1121
+ color: u,
1122
+ percentage: a,
1123
+ projectedText: _
1124
+ } = we(n, t), p = Math.round(a * 100);
1125
+ let c = /* @__PURE__ */ e(Ce, {});
1126
+ return t.track_type === i.DEBT_TRACK ? c = /* @__PURE__ */ e(Se, {}) : t.track_type === i.RETIREMENT_TRACK && (c = /* @__PURE__ */ e(Re, {})), /* @__PURE__ */ s(b, { alignItems: "center", direction: "row", spacing: 12, sx: { py: 12 }, children: [
1127
+ /* @__PURE__ */ e(re, { sx: { bgcolor: r, color: u, height: 32, width: 32 }, variant: "rounded", children: c }),
1128
+ /* @__PURE__ */ s(ht, { sx: { width: "100%" }, children: [
1129
+ /* @__PURE__ */ e(me, { fontSize: 15, fontWeight: 600, variant: "body1", children: t.name }),
1130
+ t.projected_to_complete_at && /* @__PURE__ */ e(y, { color: "text.secondary", variant: "XSmall", children: _ })
1131
+ ] }),
1132
+ /* @__PURE__ */ e(
1133
+ bt,
1134
+ {
1135
+ backgroundStrokeColor: d.palette.border.lighter,
1136
+ color: d.palette.primary.main,
1137
+ percent: p,
1138
+ size: 40,
1139
+ strokeWidth: 3,
1140
+ children: /* @__PURE__ */ e(V, { fontWeight: 700, variant: "caption", children: `${p}%` })
1141
+ }
1142
+ )
1143
+ ] });
1144
+ }), Lt = ({ header: t, subText: n, sx: d }) => /* @__PURE__ */ s(
1145
+ b,
1146
+ {
1147
+ sx: {
1148
+ alignItems: "center",
1149
+ alignSelf: "center",
1150
+ px: 24,
1151
+ ...d
1152
+ },
1153
+ children: [
1154
+ /* @__PURE__ */ e(Xe, { size: 32 }),
1155
+ /* @__PURE__ */ e(me, { fontSize: 15, fontWeight: 600, children: t }),
1156
+ /* @__PURE__ */ e(
1157
+ V,
1158
+ {
1159
+ color: "text.secondary",
1160
+ sx: { fontWeight: 400, maxWidth: { sm: 424 }, textAlign: "center" },
1161
+ variant: "subtitle2",
1162
+ children: n
1163
+ }
1164
+ )
1165
+ ]
1166
+ }
1167
+ ), Fn = M(({ onCTAClick: t }) => {
1168
+ const { visibleAccounts: n } = H(), { onEvent: d } = xe(), { goals: r } = A(), { isInitialized: u, setSelectedAccounts: a, isCopyLoaded: _ } = Ie(), { ongoingGoalsForMicroWidget: p, loadGoals: c, goalsLoaded: h } = x();
1169
+ T.useEffect(() => {
1170
+ a(n);
1171
+ }, []), T.useEffect(() => {
1172
+ u && (c().finally(), d(Z.GOALS_LOAD_WIDGET, {
1173
+ state: n?.length ? "default" : "zeroState"
1174
+ }));
1175
+ }, [u]);
1176
+ const o = T.useMemo(
1177
+ () => h && p.length === 0,
1178
+ [p, h]
1179
+ ), g = () => {
1180
+ d(
1181
+ o ? Z.GOALS_CLICK_GET_STARTED : Z.GOALS_CLICK_VIEW_DETAILS
1182
+ ), t();
1183
+ };
1184
+ return !h || !_ || !u ? /* @__PURE__ */ e(ke, {}) : /* @__PURE__ */ e(
1185
+ ft,
1186
+ {
1187
+ className: "mx-goals-microwidget",
1188
+ ctaLabel: o ? r.get_started : r.view_details,
1189
+ onCTAClick: g,
1190
+ title: r.title,
1191
+ children: o ? /* @__PURE__ */ e(
1192
+ Lt,
1193
+ {
1194
+ header: r.create_goals_header,
1195
+ subText: r.micro_zero_state_description
1196
+ }
1197
+ ) : /* @__PURE__ */ e(pt, { sx: { justifyContent: "space-between" }, children: p.map((l, m) => /* @__PURE__ */ s(T.Fragment, { children: [
1198
+ /* @__PURE__ */ e(Bt, { goal: l }),
1199
+ m !== p.length - 1 && /* @__PURE__ */ e(R, {})
1200
+ ] }, l.guid)) })
1201
+ }
1202
+ );
1203
+ });
5
1204
  export {
6
- e as GoalApi,
7
- f as GoalStore,
8
- l as GoalsMicroWidget,
9
- p as GoalsWidget
1205
+ $n as GoalApi,
1206
+ Un as GoalStore,
1207
+ Fn as GoalsMicroWidget,
1208
+ jn as GoalsWidget
10
1209
  };