@mx-cartographer/experiences 9.0.0-alpha.mega1 → 9.0.0-ram1-bug-alpha-testing

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 (773) hide show
  1. package/CHANGELOG.md +676 -9
  2. package/README.md +216 -47
  3. package/dist/{Account-CMjOp7S2.mjs → Account-BaJmiJAG.mjs} +4 -4
  4. package/dist/{Account-BIKn4XEZ.mjs → Account-BxHMlV9R.mjs} +1 -1
  5. package/dist/AccountDetailsHeader-DIysk_4w.mjs +95 -0
  6. package/dist/AccountFields-mwJ8NXsX.mjs +141 -0
  7. package/dist/AccountListItem-BDXHs4tV.mjs +94 -0
  8. package/dist/AccountUtils-T5_Odvos.mjs +27 -0
  9. package/dist/Accounts-CseLC3lL.mjs +5 -0
  10. package/dist/Analytics-CkYXKvco.mjs +53 -0
  11. package/dist/Analytics-CzGzz_sE.mjs +136 -0
  12. package/dist/ApiEndpoints-DXwIYNUV.mjs +49 -0
  13. package/dist/BudgetUtil-Bg2AQJpQ.mjs +74 -0
  14. package/dist/{Category-Ccoew_sA.mjs → Category-DEKZGLYe.mjs} +3 -3
  15. package/dist/{CategorySelectorDrawer-C4aZYP4N.mjs → CategorySelectorDrawer-CmaDLhnf.mjs} +131 -119
  16. package/dist/Connect-Dk6GZEsA.mjs +39 -0
  17. package/dist/ConnectCard-CCep7Zqe.mjs +54 -0
  18. package/dist/ConnectDrawer-Cnjr3Ddg.mjs +58 -0
  19. package/dist/{ConnectionsDrawer-BExzgE16.mjs → ConnectionsDrawer-CtfPXk0M.mjs} +13 -12
  20. package/dist/CurrencyDialog-DumQCTPO.mjs +373 -0
  21. package/dist/CurrencyInput-adTIRtL3.mjs +87 -0
  22. package/dist/{CurrencyText-C-85TnUF.mjs → CurrencyText-CCbE6MmF.mjs} +1 -1
  23. package/dist/DateFormats-HudZ3Bjs.mjs +64 -0
  24. package/dist/DateUtil-Bhq59ZVg.mjs +58 -0
  25. package/dist/DebtUtils-DD3186U-.mjs +153 -0
  26. package/dist/Dialog-CwWc0AbH.mjs +63 -0
  27. package/dist/Donut-SzzfZDHF.mjs +88 -0
  28. package/dist/{Drawer-Bet2ZPJo.mjs → Drawer-BXqqBMxg.mjs} +32 -34
  29. package/dist/EmbeddedCard-DPwJjqMH.mjs +856 -0
  30. package/dist/{EmptyState-DoxNUae-.mjs → EmptyState-CJUDc3kD.mjs} +21 -22
  31. package/dist/Error-Dogaw2jO.mjs +84 -0
  32. package/dist/ErrorBoundary-CsdOcnJ9.mjs +23 -0
  33. package/dist/{ExportCsvAction-oG_Mn66T.mjs → ExportCsvAction-Bw02ZJEj.mjs} +6 -6
  34. package/dist/GlobalAccountFilter-7Cg2-9A5.mjs +237 -0
  35. package/dist/GlobalCopyApi-wcnDUzMV.mjs +128 -0
  36. package/dist/GoalsUtil-C9EnLWvC.mjs +107 -0
  37. package/dist/HeaderCell-P8w6CmfO.mjs +6 -0
  38. package/dist/{Help-c-zHlDbv.mjs → Help-CkQTjORd.mjs} +6 -27
  39. package/dist/{Help-BW_ar-4B.mjs → Help-DJ8PrVHX.mjs} +594 -562
  40. package/dist/InformationTooltip-4su8bn1e.mjs +41 -0
  41. package/dist/{InvestmentUtil-jOyOgzIB.mjs → InvestmentUtil-BItV7uEs.mjs} +17 -17
  42. package/dist/LineChart-CejWS_rh.mjs +612 -0
  43. package/dist/{ListItemAction-Cbr3417C.mjs → ListItemAction-CwspSmQi.mjs} +26 -26
  44. package/dist/ListItemRow-kH1rn8Xu.mjs +67 -0
  45. package/dist/ListItemWrapper-B5r-YQQ_.mjs +42 -0
  46. package/dist/Loader-CxeBwuPG.mjs +21 -0
  47. package/dist/Localization-DnoVyBNK.mjs +38 -0
  48. package/dist/ManageIncome-B1JfqslT.mjs +595 -0
  49. package/dist/{MicroWidgetContainer-DSyYwRCU.mjs → MicroWidgetContainer-CfKdQfhi.mjs} +2 -2
  50. package/dist/MiniWidgetContainer-BdPiUU-u.mjs +66 -0
  51. package/dist/NetWorthUtils-DilGN1nW.mjs +95 -0
  52. package/dist/Notification-DTNYSd8P.mjs +7 -0
  53. package/dist/{NotificationSettings-e789PcRb.mjs → NotificationSettings-6p-h5phZ.mjs} +143 -142
  54. package/dist/NotificationUtils-BRGFTePr.mjs +23 -0
  55. package/dist/{NumberFormatting-DjTD0t3W.mjs → NumberFormatting--XMeeBfr.mjs} +2 -1
  56. package/dist/OriginalBalanceAction-CkJPnp2c.mjs +114 -0
  57. package/dist/{RecurringSettings-BpCUcE8w.mjs → RecurringSettings-cm6MK_aS.mjs} +4 -4
  58. package/dist/RecurringTransactionsUtil-B3rLEx_g.mjs +253 -0
  59. package/dist/{ResponsiveButton-C6KH8JH4.mjs → ResponsiveButton-CC9F_Ezk.mjs} +4 -4
  60. package/dist/SearchBox-Cpgu_gdO.mjs +50 -0
  61. package/dist/Select-BFt-HD-L.mjs +55 -0
  62. package/dist/SelectionBox-B4xELRgp.mjs +48 -0
  63. package/dist/{SingleSegmentDonut-PsRQPkmV.mjs → SingleSegmentDonut-7Uy6VEld.mjs} +1 -1
  64. package/dist/Sizes-DISGrlUg.mjs +6 -0
  65. package/dist/{SpendingData-B7NuTQ9s.mjs → SpendingData-xyRoRDHv.mjs} +7 -7
  66. package/dist/SpendingLegend-5Ct_FZ8o.mjs +193 -0
  67. package/dist/ToggleListItem-Dl1lXNwj.mjs +91 -0
  68. package/dist/TransactionDetails-C3dlAzYf.mjs +1714 -0
  69. package/dist/TransactionUtils-BphBJBbU.mjs +234 -0
  70. package/dist/TrendsUtil-D9z3kIj_.mjs +69 -0
  71. package/dist/UserStore-CRpKQjpP.mjs +3002 -0
  72. package/dist/ViewMoreMicroCard-BD_MNc2z.mjs +1295 -0
  73. package/dist/WidgetContainer-DNuz_s7W.mjs +479 -0
  74. package/dist/accounts/AccountsMiniWidget.d.ts +1 -1
  75. package/dist/accounts/AccountsWidget.d.ts +1 -1
  76. package/dist/accounts/components/AccountListItem.d.ts +1 -1
  77. package/dist/accounts/components/AccountsListCompact.d.ts +1 -1
  78. package/dist/accounts/components/detailsdrawer/Accounts/AccountActionsRow.d.ts +1 -0
  79. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +1 -1
  80. package/dist/accounts/hooks/useGetMergeableAccounts.d.ts +1 -1
  81. package/dist/accounts/hooks/useUiStore.d.ts +6 -1
  82. package/dist/accounts/index.d.ts +0 -2
  83. package/dist/accounts/index.es.js +628 -527
  84. package/dist/accounts/utils/AccountDetails.d.ts +1 -1
  85. package/dist/accounts/utils/AccountFields.d.ts +3 -3
  86. package/dist/analytics/index.es.js +93 -112
  87. package/dist/budgets/BubbleBudgetsMiniWidget.d.ts +1 -1
  88. package/dist/budgets/BubbleBudgetsWidget.d.ts +1 -1
  89. package/dist/budgets/components/BubbleChart.d.ts +1 -1
  90. package/dist/budgets/components/BudgetDetailsDrawerV2.d.ts +11 -0
  91. package/dist/budgets/components/MerchantBudgetDetailsDrawer.d.ts +17 -0
  92. package/dist/budgets/components/addbudget/RecalculateBudgetRow.d.ts +1 -1
  93. package/dist/budgets/components/addbudget/UnbudgetedRow.d.ts +1 -1
  94. package/dist/budgets/components/bubblechart/Bubble.d.ts +1 -1
  95. package/dist/budgets/components/budgetdetails/AddSubBudget.d.ts +1 -1
  96. package/dist/budgets/components/budgetdetails/BudgetDetails.d.ts +1 -1
  97. package/dist/budgets/components/budgetdetails/Header.d.ts +1 -1
  98. package/dist/budgets/components/budgetdetails/SubBudgetList.d.ts +1 -1
  99. package/dist/budgets/components/budgetlist/BudgetRow.d.ts +1 -1
  100. package/dist/budgets/components/budgetlist/SubBudgetRow.d.ts +1 -1
  101. package/dist/budgets/components/shared/BudgetDetailsTopSection.d.ts +13 -0
  102. package/dist/budgets/index.d.ts +2 -1
  103. package/dist/budgets/index.es.js +989 -813
  104. package/dist/budgets/utils/BubblesSVG.d.ts +3 -3
  105. package/dist/cashflow/CashflowMiniWidget.d.ts +1 -1
  106. package/dist/cashflow/CashflowWidget.d.ts +1 -1
  107. package/dist/cashflow/components/DetailsExpenseRow.d.ts +1 -1
  108. package/dist/cashflow/context/hooks.d.ts +15 -1
  109. package/dist/cashflow/index.d.ts +0 -2
  110. package/dist/cashflow/index.es.js +461 -490
  111. package/dist/cashflow/util/Filters.d.ts +1 -1
  112. package/dist/categories/components/CategoryRow.d.ts +1 -1
  113. package/dist/categories/components/CustomCategories/AddSubcategory.d.ts +1 -1
  114. package/dist/categories/components/CustomCategories/DeleteSubcategory.d.ts +1 -1
  115. package/dist/categories/components/CustomCategories/RenameSubcategory.d.ts +1 -1
  116. package/dist/categories/components/SubcategoryList.d.ts +1 -1
  117. package/dist/categories/components/SubcategoryRow.d.ts +1 -1
  118. package/dist/categories/context/hooks.d.ts +19 -1
  119. package/dist/categories/index.d.ts +0 -1
  120. package/dist/categories/index.es.js +4 -6
  121. package/dist/common/components/CurrencyDialog.d.ts +19 -0
  122. package/dist/common/components/CurrencyInput.d.ts +1 -1
  123. package/dist/common/components/EmptyState.d.ts +0 -1
  124. package/dist/common/components/Error.d.ts +13 -0
  125. package/dist/common/components/GlobalAccountFilter.d.ts +3 -2
  126. package/dist/common/components/Loader.d.ts +1 -2
  127. package/dist/common/components/MiniWidgetContainer.d.ts +1 -0
  128. package/dist/common/components/TinyBarChart.d.ts +10 -0
  129. package/dist/common/components/WidgetContainer.d.ts +4 -3
  130. package/dist/common/components/WidgetDateRangeSelector.d.ts +12 -0
  131. package/dist/common/components/charts/LineChart.d.ts +1 -0
  132. package/dist/common/components/charts/index.d.ts +1 -0
  133. package/dist/common/components/charts/linechart/CustomTooltip.d.ts +2 -1
  134. package/dist/common/components/charts/linechart/utils/markerShapes.d.ts +3 -0
  135. package/dist/common/components/charts/stackedlinechart/CustomAreaTooltip.d.ts +1 -1
  136. package/dist/common/components/daterangeselector/DateRangeSelector.d.ts +1 -0
  137. package/dist/common/components/globalaccountfilter/GlobalAccountFilterList.d.ts +1 -1
  138. package/dist/common/components/index.d.ts +2 -1
  139. package/dist/common/constants/Account.d.ts +1 -1
  140. package/dist/common/constants/Analytics.d.ts +12 -0
  141. package/dist/common/constants/ScheduledPayment.d.ts +1 -10
  142. package/dist/common/constants/SpendingPlan.d.ts +0 -10
  143. package/dist/common/constants/index.d.ts +2 -6
  144. package/dist/common/context/GlobalDataProvider.d.ts +2 -1
  145. package/dist/common/context/hooks.d.ts +24 -24
  146. package/dist/common/hooks/index.d.ts +2 -0
  147. package/dist/common/hooks/useAccountDisplayName.d.ts +1 -1
  148. package/dist/common/hooks/useCombineEvents.d.ts +1 -1
  149. package/dist/common/hooks/usePrevious.d.ts +2 -0
  150. package/dist/common/hooks/useWidgetHeaderStyles.d.ts +34 -0
  151. package/dist/common/index.d.ts +3 -3
  152. package/dist/common/index.es.js +254 -1348
  153. package/dist/common/utils/AccountDisplayName.d.ts +1 -1
  154. package/dist/common/utils/AccountFilter.d.ts +2 -2
  155. package/dist/common/utils/Analytics.d.ts +1 -1
  156. package/dist/common/utils/PostMessage.d.ts +1 -0
  157. package/dist/common/utils/Theme.d.ts +7 -6
  158. package/dist/common/utils/index.d.ts +1 -6
  159. package/dist/{accounts → core}/api/AccountApi.d.ts +2 -2
  160. package/dist/{common → core}/api/AnalyticsApi.d.ts +1 -1
  161. package/dist/{common → core}/api/AppDataApi.d.ts +2 -2
  162. package/dist/{common → core}/api/BannerApi.d.ts +1 -1
  163. package/dist/{common → core}/api/BeatApi.d.ts +2 -2
  164. package/dist/{budgets → core}/api/BudgetsApi.d.ts +5 -1
  165. package/dist/{common → core}/api/CategoryApi.d.ts +2 -2
  166. package/dist/{finstrong → core}/api/FinstrongApi.d.ts +2 -2
  167. package/dist/{common → core}/api/GlobalCopyApi.d.ts +2 -2
  168. package/dist/{goals → core}/api/GoalApi.d.ts +2 -2
  169. package/dist/{help → core}/api/HelpApi.d.ts +2 -2
  170. package/dist/{investments → core}/api/HoldingApi.d.ts +2 -2
  171. package/dist/{merchants → core}/api/MerchantApi.d.ts +2 -2
  172. package/dist/{common → core}/api/NotificationApi.d.ts +2 -2
  173. package/dist/{recurringtransactions → core}/api/RepeatingTransactionsApi.d.ts +2 -1
  174. package/dist/{common → core}/api/ScheduledPaymentsApi.d.ts +2 -2
  175. package/dist/{settings → core}/api/SettingsApi.d.ts +2 -3
  176. package/dist/{transactions → core}/api/TransactionApi.d.ts +2 -2
  177. package/dist/{common → core}/api/UserApi.d.ts +2 -2
  178. package/dist/{common → core}/api/WidgetApi.d.ts +1 -1
  179. package/dist/core/api/index.d.ts +20 -0
  180. package/dist/{common → core}/constants/ApiEndpoints.d.ts +1 -2
  181. package/dist/{common → core}/constants/DefaultConfig.d.ts +1 -1
  182. package/dist/core/constants/Transaction.d.ts +10 -0
  183. package/dist/core/constants/index.d.ts +4 -0
  184. package/dist/core/constants/repeatingTransactions.d.ts +10 -0
  185. package/dist/core/index.d.ts +4 -0
  186. package/dist/core/index.es.js +108 -0
  187. package/dist/{accounts → core}/stores/AccountStore.d.ts +15 -3
  188. package/dist/{analytics → core}/stores/AnalyticsStore.d.ts +1 -1
  189. package/dist/{common → core}/stores/AppDataStore.d.ts +1 -2
  190. package/dist/{insights/store → core/stores}/BeatStore.d.ts +3 -3
  191. package/dist/{budgets/store → core/stores}/BudgetsStore.d.ts +15 -2
  192. package/dist/{cashflow/stores/UiStore.d.ts → core/stores/CashflowStore.d.ts} +10 -2
  193. package/dist/{categories → core}/stores/CategoryStore.d.ts +24 -2
  194. package/dist/{common → core}/stores/ConnectStore.d.ts +1 -1
  195. package/dist/core/stores/DebtsStore.d.ts +22 -0
  196. package/dist/{finstrong → core}/stores/FinstrongStore.d.ts +5 -4
  197. package/dist/{common → core}/stores/GlobalStore.d.ts +4 -25
  198. package/dist/{goals → core}/stores/GoalStore.d.ts +3 -2
  199. package/dist/{help/store → core/stores}/HelpStore.d.ts +4 -5
  200. package/dist/{investments → core}/stores/HoldingStore.d.ts +4 -3
  201. package/dist/{merchants → core}/stores/MerchantStore.d.ts +3 -2
  202. package/dist/{networth → core}/stores/NetWorthStore.d.ts +3 -3
  203. package/dist/{notifications → core}/stores/NotificationStore.d.ts +3 -1
  204. package/dist/{recurringtransactions → core}/stores/RecurringTransactionsStore.d.ts +3 -2
  205. package/dist/{settings → core}/stores/SettingsStore.d.ts +4 -4
  206. package/dist/{transactions → core}/stores/TransactionStore.d.ts +30 -4
  207. package/dist/{trends → core}/stores/TrendsStore.d.ts +11 -4
  208. package/dist/core/stores/index.d.ts +24 -0
  209. package/dist/{common → core}/types/Analytics.d.ts +6 -3
  210. package/dist/{common → core}/types/AppData.d.ts +8 -2
  211. package/dist/{common → core}/types/Beat.d.ts +2 -0
  212. package/dist/{common → core}/types/Budget.d.ts +8 -0
  213. package/dist/{common → core}/types/Client.d.ts +1 -0
  214. package/dist/{common → core}/types/Expense.d.ts +2 -1
  215. package/dist/{common → core}/types/Finstrong.d.ts +0 -2
  216. package/dist/{networth → core}/types/NetWorth.d.ts +1 -10
  217. package/dist/{common → core}/types/Notification.d.ts +15 -5
  218. package/dist/core/types/Offer.d.ts +32 -0
  219. package/dist/{common → core}/types/Widgets.d.ts +1 -0
  220. package/dist/{common → core}/types/index.d.ts +4 -3
  221. package/dist/{common → core}/types/localization/BudgetsCopy.d.ts +26 -0
  222. package/dist/{common → core}/types/localization/CashflowCopy.d.ts +1 -0
  223. package/dist/{common → core}/types/localization/CommonCopy.d.ts +3 -0
  224. package/dist/{common → core}/types/localization/DebtsCopy.d.ts +5 -0
  225. package/dist/{common → core}/types/localization/GoalsCopy.d.ts +0 -1
  226. package/dist/{common → core}/types/localization/InsightsFeedCopy.d.ts +11 -0
  227. package/dist/{common → core}/types/localization/RecurringCopy.d.ts +2 -0
  228. package/dist/{common → core}/types/localization/SpendingCopy.d.ts +1 -0
  229. package/dist/{common → core}/types/localization/TransactionsCopy.d.ts +11 -6
  230. package/dist/{common → core}/types/localization/TrendsCopy.d.ts +2 -0
  231. package/dist/{accounts/utils/Accounts.d.ts → core/utils/AccountUtils.d.ts} +2 -2
  232. package/dist/{microinsights/utils/beatUtils.d.ts → core/utils/BeatUtils.d.ts} +1 -1
  233. package/dist/{budgets → core}/utils/BudgetUtil.d.ts +7 -2
  234. package/dist/{categories/util → core/utils}/CategoryUtil.d.ts +6 -1
  235. package/dist/core/utils/DebtUtils.d.ts +31 -0
  236. package/dist/core/utils/FinstrongUtils.d.ts +7 -0
  237. package/dist/{goals/util → core/utils}/GoalsUtil.d.ts +1 -1
  238. package/dist/core/utils/HelpUtil.d.ts +3 -0
  239. package/dist/{investments/util → core/utils}/InvestmentUtil.d.ts +2 -2
  240. package/dist/{common → core}/utils/Localization.d.ts +9 -1
  241. package/dist/{networth → core}/utils/NetWorthUtils.d.ts +1 -2
  242. package/dist/{notifications → core}/utils/NotificationUtils.d.ts +2 -1
  243. package/dist/{common → core}/utils/NumberFormatting.d.ts +1 -1
  244. package/dist/{recurringtransactions/util/RecurringTransactions.d.ts → core/utils/RecurringTransactionsUtil.d.ts} +2 -2
  245. package/dist/{settings/util/Notifications.d.ts → core/utils/SettingsUtil.d.ts} +1 -1
  246. package/dist/{transactions/utils/buildDetailedTransactions.d.ts → core/utils/TransactionUtils.d.ts} +12 -2
  247. package/dist/{trends/utils/TrendsData.d.ts → core/utils/TrendsUtil.d.ts} +1 -1
  248. package/dist/core/utils/index.d.ts +2 -0
  249. package/dist/dashboard/index.es.js +39 -38
  250. package/dist/debts/DebtsWidget.d.ts +1 -1
  251. package/dist/debts/components/DebtsChart.d.ts +1 -1
  252. package/dist/debts/components/DebtsTable.d.ts +1 -1
  253. package/dist/debts/components/SnowballCard.d.ts +1 -1
  254. package/dist/debts/components/actions/DebtsPriorityAction.d.ts +6 -1
  255. package/dist/debts/components/actions/InterestRateAction.d.ts +1 -1
  256. package/dist/debts/components/actions/MonthlyPaymentAction.d.ts +1 -1
  257. package/dist/debts/components/actions/OriginalBalanceAction.d.ts +1 -1
  258. package/dist/debts/components/debtspaydown/PaydownButton.d.ts +2 -1
  259. package/dist/debts/components/debtspriority/DebtsPriorityButton.d.ts +3 -1
  260. package/dist/debts/hooks/useDebtsUiStore.d.ts +1 -1
  261. package/dist/debts/index.d.ts +0 -1
  262. package/dist/debts/index.es.js +715 -775
  263. package/dist/debts/utils/DebtsTable.d.ts +1 -1
  264. package/dist/debts/utils/SnowballCard.d.ts +2 -2
  265. package/dist/finstrong/FinstrongWidget.d.ts +2 -2
  266. package/dist/finstrong/components/HealthChart.d.ts +1 -1
  267. package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.d.ts +1 -1
  268. package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.d.ts +1 -1
  269. package/dist/finstrong/components/shared/Accounts.d.ts +1 -1
  270. package/dist/finstrong/components/shared/DoubleBarChart.d.ts +1 -0
  271. package/dist/finstrong/components/shared/ScoreHistoryTimeline.d.ts +1 -1
  272. package/dist/finstrong/components/shared/Transactions.d.ts +1 -1
  273. package/dist/finstrong/index.d.ts +0 -2
  274. package/dist/finstrong/index.es.js +1587 -1349
  275. package/dist/finstrong/util/finstrongUtils.d.ts +3 -9
  276. package/dist/goals/GoalsWidget.d.ts +2 -2
  277. package/dist/goals/components/AccountSelectionDrawer.d.ts +1 -1
  278. package/dist/goals/components/AddGoal.d.ts +1 -1
  279. package/dist/goals/components/GoalDetails.d.ts +1 -1
  280. package/dist/goals/components/GoalDetailsDrawer.d.ts +1 -1
  281. package/dist/goals/components/GoalList.d.ts +1 -1
  282. package/dist/goals/components/GoalStatusCard.d.ts +1 -1
  283. package/dist/goals/components/ManageGoals.d.ts +1 -1
  284. package/dist/goals/components/actions/AccountAction.d.ts +1 -1
  285. package/dist/goals/components/actions/AddRetirementAccountAction.d.ts +1 -1
  286. package/dist/goals/components/actions/AmountToSaveAction.d.ts +1 -1
  287. package/dist/goals/components/actions/BirthdayAction.d.ts +1 -1
  288. package/dist/goals/components/actions/ChangeAccountAction.d.ts +1 -1
  289. package/dist/goals/components/actions/ContributionAction.d.ts +1 -1
  290. package/dist/goals/components/actions/GoalNameAction.d.ts +1 -1
  291. package/dist/goals/components/actions/InterestRateAction.d.ts +1 -1
  292. package/dist/goals/components/actions/MonthlyPaymentAction.d.ts +1 -1
  293. package/dist/goals/components/actions/OriginalBalanceAction.d.ts +1 -1
  294. package/dist/goals/components/actions/RetirementAgeAction.d.ts +1 -1
  295. package/dist/goals/components/addgoal/AddGoalListItem.d.ts +2 -2
  296. package/dist/goals/components/managegoals/CompleteListItem.d.ts +1 -1
  297. package/dist/goals/components/managegoals/OngoingListItem.d.ts +3 -2
  298. package/dist/goals/components/managegoals/ReorderGoals.d.ts +1 -1
  299. package/dist/goals/components/micro/GoalMicroStatusCard.d.ts +1 -1
  300. package/dist/goals/index.d.ts +0 -2
  301. package/dist/goals/index.es.js +707 -787
  302. package/dist/help/HelpWidget.d.ts +2 -2
  303. package/dist/help/components/HelpContent.d.ts +1 -1
  304. package/dist/help/components/HelpList.d.ts +1 -1
  305. package/dist/help/components/content/BottomImageContent.d.ts +1 -1
  306. package/dist/help/components/content/ContentItem.d.ts +1 -1
  307. package/dist/help/components/content/LeftImageContent.d.ts +1 -1
  308. package/dist/help/components/content/NoImageContent.d.ts +1 -1
  309. package/dist/help/components/content/RightImageContent.d.ts +1 -1
  310. package/dist/help/components/content/TopImageContent.d.ts +1 -1
  311. package/dist/help/components/content/section/Accounts.d.ts +1 -1
  312. package/dist/help/components/content/section/Budgets.d.ts +1 -1
  313. package/dist/help/components/content/section/CashFlow.d.ts +1 -1
  314. package/dist/help/components/content/section/Debts.d.ts +1 -1
  315. package/dist/help/components/content/section/General.d.ts +1 -1
  316. package/dist/help/components/content/section/Goals.d.ts +1 -1
  317. package/dist/help/components/content/section/Insights.d.ts +1 -1
  318. package/dist/help/components/content/section/Investments.d.ts +1 -1
  319. package/dist/help/components/content/section/Mobile.d.ts +1 -1
  320. package/dist/help/components/content/section/NetWorth.d.ts +1 -1
  321. package/dist/help/components/content/section/Notifications.d.ts +1 -1
  322. package/dist/help/components/content/section/RecurringTransactions.d.ts +1 -1
  323. package/dist/help/components/content/section/Spending.d.ts +1 -1
  324. package/dist/help/components/content/section/Transactions.d.ts +1 -1
  325. package/dist/help/components/content/section/Trends.d.ts +1 -1
  326. package/dist/help/components/content/section/index.d.ts +15 -15
  327. package/dist/help/components/requestsupport/ContactSupport.d.ts +1 -1
  328. package/dist/help/components/requestsupport/HelpByCategoryList.d.ts +1 -1
  329. package/dist/help/components/requestsupport/MissingInstitution.d.ts +1 -1
  330. package/dist/help/components/requestsupport/PopularTopicsDrawer.d.ts +1 -1
  331. package/dist/help/components/requestsupport/PopularTopicsList.d.ts +1 -1
  332. package/dist/help/components/requestsupport/RequestSupport.d.ts +1 -1
  333. package/dist/help/components/requestsupport/RequestSupportFooter.d.ts +1 -1
  334. package/dist/help/components/requestsupport/RequestSupportInstitution.d.ts +1 -1
  335. package/dist/help/components/requestsupport/SupportSuccessMessage.d.ts +1 -1
  336. package/dist/help/index.es.js +19 -10
  337. package/dist/help/utils/index.d.ts +0 -1
  338. package/dist/{hooks-fY_n74f7.mjs → hooks-BaO_gOI6.mjs} +23 -23
  339. package/dist/insights/components/feed/Header.d.ts +8 -0
  340. package/dist/insights/components/index.d.ts +53 -0
  341. package/dist/insights/components/insights/AccountDiscoverability/AccountDiscoverability.d.ts +3 -0
  342. package/dist/insights/components/insights/AccountDiscoverability/index.d.ts +1 -0
  343. package/dist/insights/components/insights/AccountDiscoverability/types/AccountDiscoverability.d.ts +3 -0
  344. package/dist/insights/components/insights/AmericanUpcomingTaxDeadlineAlert/AmericanUpcomingTaxDeadlineAlert.d.ts +2 -0
  345. package/dist/insights/components/insights/AmericanUpcomingTaxDeadlineAlert/index.d.ts +1 -0
  346. package/dist/insights/components/insights/AmericanUpcomingTaxDeadlineAlert/types/AmericanUpcomingTaxDeadlineProps.d.ts +4 -0
  347. package/dist/insights/components/insights/BillAmountNotStandard/BillAmountNotStandard.d.ts +3 -0
  348. package/dist/insights/components/insights/BillAmountNotStandard/BillAmountNotStandardMUI.d.ts +3 -0
  349. package/dist/insights/components/insights/BillAmountNotStandard/index.d.ts +2 -0
  350. package/dist/insights/components/insights/BillAmountNotStandard/types/BillAmountNotStandard.d.ts +4 -0
  351. package/dist/insights/components/insights/CashBack/CashBack.d.ts +3 -0
  352. package/dist/insights/components/insights/CashBack/index.d.ts +1 -0
  353. package/dist/insights/components/insights/CashBack/types/CashBack.d.ts +7 -0
  354. package/dist/insights/components/insights/CategoryBudget/CategoryBudget.d.ts +3 -0
  355. package/dist/insights/components/insights/CategoryBudget/index.d.ts +1 -0
  356. package/dist/insights/components/insights/CategoryBudget/types/CategoryBudget.d.ts +10 -0
  357. package/dist/insights/components/insights/CategorySpendingV2/CategorySpendingV2.d.ts +2 -0
  358. package/dist/insights/components/insights/CategorySpendingV2/CategorySpendingV2MUI.d.ts +2 -0
  359. package/dist/insights/components/insights/CategorySpendingV2/index.d.ts +2 -0
  360. package/dist/insights/components/insights/CategorySpendingV2/types/CategorySpendingV2.d.ts +7 -0
  361. package/dist/insights/components/insights/CelebrateCreditCardPayoff/CelebrateCreditCardPayoff.d.ts +3 -0
  362. package/dist/insights/components/insights/CelebrateCreditCardPayoff/index.d.ts +1 -0
  363. package/dist/insights/components/insights/CelebrateCreditCardPayoff/types/CelebrateCreditCardPayoffProps.d.ts +9 -0
  364. package/dist/insights/components/insights/CustomTransaction/CustomTransaction.d.ts +3 -0
  365. package/dist/insights/components/insights/CustomTransaction/index.d.ts +1 -0
  366. package/dist/insights/components/insights/DiscoveredAccounts/DiscoveredAccountsBody.d.ts +9 -0
  367. package/dist/insights/components/insights/DiscoveredAccounts/DiscoveredAccountsLearnMoreDrawerContent.d.ts +21 -0
  368. package/dist/insights/components/insights/DiscoveredAccounts/DiscoveredAccountsMiniInsight.d.ts +6 -0
  369. package/dist/insights/components/insights/DiscoveredAccounts/index.d.ts +3 -0
  370. package/dist/insights/components/insights/FederalBankHoliday/FederalBankHoliday.d.ts +3 -0
  371. package/dist/insights/components/insights/FederalBankHoliday/FederalBankHolidayMUI.d.ts +3 -0
  372. package/dist/insights/components/insights/FederalBankHoliday/index.d.ts +2 -0
  373. package/dist/insights/components/insights/FederalBankHoliday/types/FederalBankHoliday.d.ts +4 -0
  374. package/dist/insights/components/insights/MarketingHub/Offer.d.ts +3 -0
  375. package/dist/insights/components/insights/MarketingHub/Types.d.ts +33 -0
  376. package/dist/insights/components/insights/MarketingHub/index.d.ts +2 -0
  377. package/dist/insights/components/insights/MonthlyDebtToIncomeComparisonV2/MonthlyDebtToIncomeComparisonV2.d.ts +2 -0
  378. package/dist/insights/components/insights/MonthlyDebtToIncomeComparisonV2/index.d.ts +1 -0
  379. package/dist/insights/components/insights/MonthlyDebtToIncomeComparisonV2/types/index.d.ts +4 -0
  380. package/dist/insights/components/insights/MonthlyEmergencyFundReview/LastMonthsContributionSection.d.ts +6 -0
  381. package/dist/insights/components/insights/MonthlyEmergencyFundReview/MonthlyEmergencyFundReviewBody.d.ts +21 -0
  382. package/dist/insights/components/insights/MonthlyEmergencyFundReview/ProjectedCompletionSection.d.ts +6 -0
  383. package/dist/insights/components/insights/MonthlyEmergencyFundReview/TotalSection.d.ts +7 -0
  384. package/dist/insights/components/insights/MonthlyEmergencyFundReview/index.d.ts +4 -0
  385. package/dist/insights/components/insights/MonthlySavingsToIncomeComparison/MonthlySavingsToIncomeComparison.d.ts +2 -0
  386. package/dist/insights/components/insights/MonthlySavingsToIncomeComparison/index.d.ts +1 -0
  387. package/dist/insights/components/insights/MonthlySavingsToIncomeComparison/types/index.d.ts +4 -0
  388. package/dist/insights/components/insights/MonthlySpendToIncomeComparisonV2/MonthlySpendToIncomeComparisonV2.d.ts +2 -0
  389. package/dist/insights/components/insights/MonthlySpendToIncomeComparisonV2/index.d.ts +1 -0
  390. package/dist/insights/components/insights/MonthlySpendToIncomeComparisonV2/types/index.d.ts +4 -0
  391. package/dist/insights/components/insights/MonthlySpendingComparisonV2/MonthlySpendingComparisonV2.d.ts +3 -0
  392. package/dist/insights/components/insights/MonthlySpendingComparisonV2/__test__/MonthlySpendComparisonV2.test.d.ts +1 -0
  393. package/dist/insights/components/insights/MonthlySpendingComparisonV2/index.d.ts +1 -0
  394. package/dist/insights/components/insights/MonthlySpendingComparisonV2/types/MonthlySpendComparisonV2.d.ts +4 -0
  395. package/dist/insights/components/insights/P2pCategorization/P2pCategorization.d.ts +3 -0
  396. package/dist/insights/components/insights/P2pCategorization/_tests_/P2pCategorizationMultipleTransaction.test.d.ts +0 -0
  397. package/dist/insights/components/insights/P2pCategorization/_tests_/P2pCategorizationSingleTransaction.test.d.ts +0 -0
  398. package/dist/insights/components/insights/P2pCategorization/index.d.ts +4 -0
  399. package/dist/insights/components/insights/P2pCategorization/shared/P2pCategorizationMultipleTransactions.d.ts +3 -0
  400. package/dist/insights/components/insights/P2pCategorization/shared/P2pCategorizationSingleTransaction.d.ts +3 -0
  401. package/dist/insights/components/insights/P2pCategorization/types/P2pCategorization.d.ts +17 -0
  402. package/dist/insights/components/insights/SavingsAccountBalancesSummary/SavingsAccountBalancesSummary.d.ts +2 -0
  403. package/dist/insights/components/insights/SavingsAccountBalancesSummary/index.d.ts +1 -0
  404. package/dist/insights/components/insights/SavingsAccountBalancesSummary/types/SavingsAccountBalancesSummary.d.ts +4 -0
  405. package/dist/insights/components/insights/SetUpDirectDeposit/SetUpDirectDepositBody.d.ts +3 -0
  406. package/dist/insights/components/insights/SetUpDirectDeposit/index.d.ts +1 -0
  407. package/dist/insights/components/insights/SharedDeposit/SharedDeposit.d.ts +2 -0
  408. package/dist/insights/components/insights/SharedDeposit/index.d.ts +1 -0
  409. package/dist/insights/components/insights/SharedDeposit/types/index.d.ts +7 -0
  410. package/dist/insights/components/insights/SwitchDirectDeposit/AccountBox.d.ts +7 -0
  411. package/dist/insights/components/insights/SwitchDirectDeposit/SwitchDirectDepositBody.d.ts +10 -0
  412. package/dist/insights/components/insights/SwitchDirectDeposit/SwitchDirectDepositMainContainer.d.ts +9 -0
  413. package/dist/insights/components/insights/SwitchDirectDeposit/index.d.ts +3 -0
  414. package/dist/insights/components/insights/UnifiedDeposit/UnifiedDeposit.d.ts +7 -0
  415. package/dist/insights/components/insights/UnifiedDeposit/UnifiedDepositBody.d.ts +11 -0
  416. package/dist/insights/components/insights/UnifiedDeposit/index.d.ts +1 -0
  417. package/dist/insights/components/insights/UserFeedback/StyledToggleButton.d.ts +7 -0
  418. package/dist/insights/components/insights/UserFeedback/Types.d.ts +27 -0
  419. package/dist/insights/components/insights/UserFeedback/UserFeedback.d.ts +3 -0
  420. package/dist/insights/components/insights/UserFeedback/index.d.ts +1 -0
  421. package/dist/insights/components/insights/WeeklyNoSpendDays/BubbleWeek.d.ts +9 -0
  422. package/dist/insights/components/insights/WeeklyNoSpendDays/NoSpendIcons.d.ts +1 -0
  423. package/dist/insights/components/insights/WeeklyNoSpendDays/WeeklyNoSpendDays.d.ts +12 -0
  424. package/dist/insights/components/insights/WeeklyNoSpendDays/_tests_/WeeklyNoSpendDays.test.d.ts +0 -0
  425. package/dist/insights/components/insights/WeeklyNoSpendDays/index.d.ts +1 -0
  426. package/dist/insights/components/insights/index.d.ts +25 -0
  427. package/dist/insights/components/shared/AccountBalanceCard.d.ts +13 -0
  428. package/dist/insights/components/shared/BottomSheet.d.ts +13 -0
  429. package/dist/insights/components/shared/CarouselControls.d.ts +14 -0
  430. package/dist/insights/components/shared/ChartDrawerTemplate/ChartDrawerTemplate.d.ts +30 -0
  431. package/dist/insights/components/shared/ChartDrawerTemplate/TipSection.d.ts +9 -0
  432. package/dist/insights/components/shared/ChartTransactionWithDrillDown.d.ts +22 -0
  433. package/dist/insights/components/shared/Charts/BarChart/BarChart.d.ts +2 -0
  434. package/dist/insights/components/shared/Charts/BarChart/BarChartV2.d.ts +2 -0
  435. package/dist/insights/components/shared/Charts/BarChart/ChartLegend.d.ts +9 -0
  436. package/dist/insights/components/shared/Charts/BarChart/ChartLegendV2.d.ts +10 -0
  437. package/dist/insights/components/shared/Charts/BarChart/CustomBarPlot.d.ts +18 -0
  438. package/dist/insights/components/shared/Charts/BarChart/CustomBarPlotV2.d.ts +18 -0
  439. package/dist/insights/components/shared/Charts/BarChart/CustomDoubleBarPlot.d.ts +18 -0
  440. package/dist/insights/components/shared/Charts/BarChart/CustomDoubleBarPlotMXUI.d.ts +18 -0
  441. package/dist/insights/components/shared/Charts/BarChart/DoubleBarChart.d.ts +2 -0
  442. package/dist/insights/components/shared/Charts/BarChart/DoubleBarChartLegend.d.ts +10 -0
  443. package/dist/insights/components/shared/Charts/BarChart/DoubleBarChartLegendMXUI.d.ts +10 -0
  444. package/dist/insights/components/shared/Charts/BarChart/DoubleBarChartMXUI.d.ts +2 -0
  445. package/dist/insights/components/shared/Charts/BarChart/index.d.ts +4 -0
  446. package/dist/insights/components/shared/Charts/EmptyBarChart.d.ts +1 -0
  447. package/dist/insights/components/shared/Charts/index.d.ts +2 -0
  448. package/dist/insights/components/shared/Confetti.d.ts +5 -0
  449. package/dist/insights/components/shared/ConnectionCard.d.ts +14 -0
  450. package/dist/insights/components/shared/ConnectionDetailDrillDown.d.ts +25 -0
  451. package/dist/insights/components/shared/Coupon.d.ts +8 -0
  452. package/dist/insights/components/shared/DeepLinks/DeepLinkDialog.d.ts +11 -0
  453. package/dist/insights/components/shared/DeepLinks/DirectDeposit/Circle.d.ts +6 -0
  454. package/dist/insights/components/shared/DeepLinks/DirectDeposit/DirectDepositDeepLink.d.ts +24 -0
  455. package/dist/insights/components/shared/DeepLinks/DirectDeposit/Dot.d.ts +1 -0
  456. package/dist/insights/components/shared/DeepLinks/DirectDeposit/Oval.d.ts +1 -0
  457. package/dist/insights/components/shared/DirectDeposit/DirectDeposit.d.ts +3 -0
  458. package/dist/insights/components/shared/DirectDeposit/DirectDepositSubHeader.d.ts +14 -0
  459. package/dist/insights/components/shared/DirectDeposit/FullFeedBodyHeader.d.ts +10 -0
  460. package/dist/insights/components/shared/DirectDeposit/LeftBox.d.ts +7 -0
  461. package/dist/insights/components/shared/DirectDeposit/MiniBodyHeader.d.ts +10 -0
  462. package/dist/insights/components/shared/DirectDeposit/RightBox.d.ts +8 -0
  463. package/dist/insights/components/shared/DiscoveredAccountsConnect.d.ts +8 -0
  464. package/dist/insights/components/shared/DonutChartV2.d.ts +13 -0
  465. package/dist/insights/components/shared/DrillDownCalculation/BalanceStepper.d.ts +12 -0
  466. package/dist/insights/components/shared/DrillDownCalculation/DrillDownCalculation.d.ts +31 -0
  467. package/dist/insights/components/shared/ErrorCard/ErrorCard.d.ts +8 -0
  468. package/dist/insights/components/shared/GenericFeedback/FeedbackButtons.d.ts +15 -0
  469. package/dist/insights/components/shared/GenericFeedback/FeedbackDescription.d.ts +5 -0
  470. package/dist/insights/components/shared/GenericFeedback/FeedbackHeader.d.ts +15 -0
  471. package/dist/insights/components/shared/GenericFeedback/FeedbackOptions.d.ts +12 -0
  472. package/dist/insights/components/shared/GenericFeedback/FeedbackText.d.ts +13 -0
  473. package/dist/insights/components/shared/GoalProgress.d.ts +10 -0
  474. package/dist/insights/components/shared/GradientBox.d.ts +8 -0
  475. package/dist/insights/components/shared/InsightsCard/BeatCard.d.ts +20 -0
  476. package/dist/insights/components/shared/InsightsCard/BeatCardMUI.d.ts +20 -0
  477. package/dist/insights/components/shared/InsightsCard/CardButtonSection.d.ts +7 -0
  478. package/dist/insights/components/shared/InsightsCard/CardError.d.ts +5 -0
  479. package/dist/insights/components/shared/InsightsCard/CardFooter.d.ts +7 -0
  480. package/dist/insights/components/shared/InsightsCard/CardHeader.d.ts +11 -0
  481. package/dist/insights/components/shared/InsightsCard/CardHeaderMUI.d.ts +11 -0
  482. package/dist/insights/components/shared/InsightsCard/CardLoading.d.ts +5 -0
  483. package/dist/insights/components/shared/InsightsCard/ClientConfigurableCta.d.ts +5 -0
  484. package/dist/insights/components/shared/InsightsCard/ContentAndDescription.d.ts +15 -0
  485. package/dist/insights/components/shared/InsightsCard/ContentAndDescriptionMUI.d.ts +15 -0
  486. package/dist/insights/components/shared/InsightsCard/Description.d.ts +10 -0
  487. package/dist/insights/components/shared/InsightsCard/DescriptionMUI.d.ts +10 -0
  488. package/dist/insights/components/shared/InsightsCard/EmbeddedCard.d.ts +9 -0
  489. package/dist/insights/components/shared/InsightsCard/FeedbackCard.d.ts +13 -0
  490. package/dist/insights/components/shared/InsightsCard/InsightButton.d.ts +12 -0
  491. package/dist/insights/components/shared/InsightsCard/MiniDescription.d.ts +9 -0
  492. package/dist/insights/components/shared/InsightsCard/MiniDescriptionMUI.d.ts +9 -0
  493. package/dist/insights/components/shared/MenuAction.d.ts +15 -0
  494. package/dist/insights/components/shared/MiniInsightCard.d.ts +16 -0
  495. package/dist/insights/components/shared/P2P/P2PMultipleCategorization.d.ts +12 -0
  496. package/dist/insights/components/shared/P2PCategorizationSingleAccount/P2PCategorizationSingleAccount.d.ts +10 -0
  497. package/dist/insights/components/shared/ProgressBar.d.ts +9 -0
  498. package/dist/insights/components/shared/SaveAnExtra100/SaveAnExtra100.d.ts +9 -0
  499. package/dist/insights/components/shared/SaveEnoughToLiveOnBottomSection.d.ts +11 -0
  500. package/dist/insights/components/shared/SaveEnoughToLiveOnTopSection.d.ts +2 -0
  501. package/dist/insights/components/shared/StatusIndicator.d.ts +15 -0
  502. package/dist/insights/components/shared/TabContainer.d.ts +8 -0
  503. package/dist/insights/components/shared/ThemedSVGImage.d.ts +2 -0
  504. package/dist/insights/components/shared/TransactionCard.d.ts +14 -0
  505. package/dist/insights/components/shared/ZeroState/LinedCardZeroState.d.ts +1 -0
  506. package/dist/insights/components/shared/index.d.ts +2 -0
  507. package/dist/insights/hooks/useContainerDimensions.d.ts +5 -0
  508. package/dist/insights/index.d.ts +1 -1
  509. package/dist/insights/index.es.js +4843 -2
  510. package/dist/insights/themes/Typography.d.ts +1 -0
  511. package/dist/insights/themes/index.d.ts +1 -0
  512. package/dist/insights/types/Charts/BarChart.d.ts +96 -0
  513. package/dist/insights/types/CommonBeat.d.ts +367 -0
  514. package/dist/insights/types/DirectDeposit.d.ts +16 -0
  515. package/dist/insights/types/ThemedSVGImage.d.ts +5 -0
  516. package/dist/investments/InvestmentsWidget.d.ts +2 -2
  517. package/dist/investments/components/AnalysisDetails.d.ts +1 -1
  518. package/dist/investments/components/allocation/util/createInvestementsAllocationData.d.ts +2 -2
  519. package/dist/investments/index.es.js +574 -574
  520. package/dist/merchants/index.d.ts +0 -1
  521. package/dist/merchants/index.es.js +18 -20
  522. package/dist/microinsights/InsightsMicroWidget.d.ts +1 -14
  523. package/dist/microinsights/MicroCardTemplate.d.ts +2 -4
  524. package/dist/microinsights/beaticons/AreaChartIcon.d.ts +3 -0
  525. package/dist/microinsights/beaticons/AverageSpendComparisonIcon.d.ts +3 -0
  526. package/dist/microinsights/beaticons/BeatMaterialIcon.d.ts +5 -1
  527. package/dist/microinsights/beaticons/InstitutionLogoIcon.d.ts +5 -0
  528. package/dist/microinsights/beaticons/MonthlySpendComparisonIcon.d.ts +0 -2
  529. package/dist/microinsights/beaticons/index.d.ts +3 -0
  530. package/dist/microinsights/cards/InsightCard.d.ts +3 -3
  531. package/dist/microinsights/cards/NoRelevantInsightsCard.d.ts +3 -3
  532. package/dist/microinsights/cards/ViewMoreMicroCard.d.ts +3 -3
  533. package/dist/microinsights/cards/ZeroStateCard.d.ts +3 -3
  534. package/dist/microinsights/carousel/BeatList.d.ts +3 -3
  535. package/dist/microinsights/carousel/CarouselHeader.d.ts +4 -2
  536. package/dist/microinsights/carousel/MicroBeatCarousel.d.ts +12 -12
  537. package/dist/microinsights/constants/Analytics.d.ts +1 -1
  538. package/dist/microinsights/context/InsightsMicroWidgetDataProvider.d.ts +1 -1
  539. package/dist/microinsights/context/hooks.d.ts +1 -1
  540. package/dist/microinsights/index.d.ts +1 -1
  541. package/dist/microinsights/index.es.js +1 -1
  542. package/dist/microinsights/interfaces.d.ts +23 -40
  543. package/dist/microinsights/stores/CopyStore.d.ts +2 -2
  544. package/dist/microinsights/stores/InsightsMicroWidgetStore.d.ts +2 -2
  545. package/dist/microinsights/utils/DataSeries.d.ts +1 -1
  546. package/dist/microinsights/utils/colorType.d.ts +22 -0
  547. package/dist/networth/NetWorthWidget.d.ts +1 -1
  548. package/dist/networth/components/AssetsLiabilitiesDetail.d.ts +1 -1
  549. package/dist/networth/components/GainsLossesDetail.d.ts +1 -1
  550. package/dist/networth/components/NetWorthChange.d.ts +1 -1
  551. package/dist/networth/components/NetWorthListItem.d.ts +1 -1
  552. package/dist/networth/components/NetWorthSummary.d.ts +1 -1
  553. package/dist/networth/components/micro/NetworthData.d.ts +1 -1
  554. package/dist/networth/components/micro/ZeroState.d.ts +1 -1
  555. package/dist/networth/index.d.ts +0 -4
  556. package/dist/networth/index.es.js +302 -314
  557. package/dist/notifications/components/NotificationBadge.d.ts +1 -1
  558. package/dist/notifications/components/NotificationCard.d.ts +1 -1
  559. package/dist/notifications/components/NotificationDrawer.d.ts +1 -1
  560. package/dist/notifications/components/NotificationList.d.ts +2 -1
  561. package/dist/notifications/index.d.ts +0 -2
  562. package/dist/notifications/index.es.js +101 -93
  563. package/dist/recurringtransactions/RecurringTransactionsMiniWidget.d.ts +1 -1
  564. package/dist/recurringtransactions/RecurringTransactionsWidget.d.ts +2 -2
  565. package/dist/recurringtransactions/components/PaymentSchedule.d.ts +1 -1
  566. package/dist/recurringtransactions/components/RecurrenceList.d.ts +1 -1
  567. package/dist/recurringtransactions/components/RecurrenceRow.d.ts +1 -1
  568. package/dist/recurringtransactions/components/RecurringTransactionDetails.d.ts +1 -1
  569. package/dist/recurringtransactions/components/actions/PaymentScheduleAction.d.ts +1 -1
  570. package/dist/recurringtransactions/components/micro/MerchantLogosRow.d.ts +1 -1
  571. package/dist/recurringtransactions/components/micro/OverlappingMerchantLogos.d.ts +1 -1
  572. package/dist/recurringtransactions/components/shared/recurringsettings/AddRecurringTransactionDetails.d.ts +1 -1
  573. package/dist/recurringtransactions/components/shared/recurringsettings/RecurringRow.d.ts +1 -1
  574. package/dist/recurringtransactions/index.d.ts +0 -1
  575. package/dist/recurringtransactions/index.es.js +489 -462
  576. package/dist/settings/NotificationSettingsWidget.d.ts +1 -1
  577. package/dist/settings/SettingsWidget.d.ts +2 -2
  578. package/dist/settings/TransactionRulesWidget.d.ts +1 -1
  579. package/dist/settings/components/devices/DeviceDialog.d.ts +1 -1
  580. package/dist/settings/components/devices/DeviceList.d.ts +1 -1
  581. package/dist/settings/components/devices/DeviceTable.d.ts +1 -1
  582. package/dist/settings/components/notifications/AccountNotificationProfile.d.ts +1 -1
  583. package/dist/settings/components/notifications/AccountProfileListItem.d.ts +1 -1
  584. package/dist/settings/components/notifications/NotificationProfile.d.ts +1 -1
  585. package/dist/settings/components/notifications/NotificationSettings.d.ts +1 -1
  586. package/dist/settings/components/transactionrules/actions/EditRuleAction.d.ts +1 -1
  587. package/dist/settings/index.d.ts +0 -2
  588. package/dist/settings/index.es.js +419 -430
  589. package/dist/spending/SpendingMiniWidget.d.ts +1 -1
  590. package/dist/spending/SpendingWidget.d.ts +1 -1
  591. package/dist/spending/index.es.js +229 -222
  592. package/dist/spending/utils/SpendingData.d.ts +1 -1
  593. package/dist/transactions/TransactionWidget.d.ts +1 -1
  594. package/dist/transactions/components/shared/TransactionDetails.d.ts +1 -1
  595. package/dist/transactions/components/shared/TransactionList.d.ts +3 -4
  596. package/dist/transactions/components/shared/getEmbeddedInstanceSlotByBeatTemplates.d.ts +17 -0
  597. package/dist/transactions/components/shared/transactiondetails/Description.d.ts +1 -1
  598. package/dist/transactions/components/shared/transactiondetails/FlagTransaction.d.ts +1 -1
  599. package/dist/transactions/components/shared/transactiondetails/TransactionAmountHeader.d.ts +1 -1
  600. package/dist/transactions/components/shared/transactiondetails/TransactionDetailsView.d.ts +1 -1
  601. package/dist/transactions/components/shared/transactiondetails/actions/AddMerchantBudgetAction.d.ts +13 -0
  602. package/dist/transactions/components/shared/transactiondetails/actions/CategoryAction.d.ts +1 -1
  603. package/dist/transactions/components/shared/transactiondetails/actions/DateAction.d.ts +1 -1
  604. package/dist/transactions/components/shared/transactiondetails/actions/DeleteAction.d.ts +1 -1
  605. package/dist/transactions/components/shared/transactiondetails/actions/DeleteLogoAction.d.ts +1 -1
  606. package/dist/transactions/components/shared/transactiondetails/actions/ExcludeAction.d.ts +7 -0
  607. package/dist/transactions/components/shared/transactiondetails/actions/MemoAction.d.ts +1 -1
  608. package/dist/transactions/components/shared/transactiondetails/actions/SplitAction.d.ts +1 -1
  609. package/dist/transactions/components/shared/transactiondetails/actions/TagsAction.d.ts +1 -1
  610. package/dist/transactions/components/shared/transactiondetails/actions/index.d.ts +2 -1
  611. package/dist/transactions/components/shared/transactionlist/TransactionRow.d.ts +1 -1
  612. package/dist/transactions/components/shared/transactiontable/cells/PayeeCell.d.ts +4 -1
  613. package/dist/transactions/components/splitmanager/SplitManager.d.ts +1 -1
  614. package/dist/transactions/components/splitmanager/SplitRow.d.ts +1 -1
  615. package/dist/transactions/components/tagmanager/TagRow.d.ts +1 -1
  616. package/dist/transactions/components/transactionwidget/actions/EditCategoryAction.d.ts +1 -1
  617. package/dist/transactions/components/transactionwidget/actions/ExportCsvAction.d.ts +1 -1
  618. package/dist/transactions/constants/Actions.d.ts +4 -3
  619. package/dist/transactions/context/hooks.d.ts +1 -1
  620. package/dist/transactions/index.d.ts +0 -5
  621. package/dist/transactions/index.es.js +344 -351
  622. package/dist/transactions/utils/Filters.d.ts +1 -1
  623. package/dist/transactions/utils/Transactions.d.ts +17 -1
  624. package/dist/trends/TrendsFullWidget.d.ts +1 -1
  625. package/dist/trends/TrendsMiniWidget.d.ts +1 -1
  626. package/dist/trends/TrendsWidget.d.ts +1 -1
  627. package/dist/trends/components/CategoriesList.d.ts +1 -1
  628. package/dist/trends/components/CategoriesListItem.d.ts +1 -1
  629. package/dist/trends/components/CategoryDetails.d.ts +3 -0
  630. package/dist/trends/components/TrendsChartTotals.d.ts +1 -1
  631. package/dist/trends/components/TrendsInsights.d.ts +1 -1
  632. package/dist/trends/components/{TrendsTable.d.ts → TrendsTableContainer.d.ts} +2 -2
  633. package/dist/trends/components/trendstable/AccessibleSortIcon.d.ts +13 -0
  634. package/dist/trends/components/trendstable/TrendsTable.d.ts +12 -0
  635. package/dist/trends/index.d.ts +0 -1
  636. package/dist/trends/index.es.js +991 -876
  637. package/dist/trends/utils/SpendingData.d.ts +1 -1
  638. package/dist/trends/utils/TrendsTable.d.ts +5 -3
  639. package/dist/trends/utils/TrendsWidget.d.ts +7 -0
  640. package/dist/trends/utils/shared.d.ts +2 -2
  641. package/dist/{useAccountDisplayName-DbkgGLdg.mjs → useAccountDisplayName-CFa_MrS6.mjs} +5 -5
  642. package/dist/{useAriaLive-B3_pRUio.mjs → useAriaLive-MkYebyUR.mjs} +4 -4
  643. package/dist/{useDimensions-27p2evRx.mjs → useDimensions-CeDR9V8N.mjs} +6 -6
  644. package/dist/{useInsightsEnabled-dhmXeSyF.mjs → useInsightsEnabled-DaNLPmUU.mjs} +1 -1
  645. package/dist/{useScreenSize-B6JyS_Lj.mjs → useScreenSize-mWpmnh5w.mjs} +3 -3
  646. package/dist/{useWidgetLoadTimer-CrUzxN-P.mjs → useWidgetLoadTimer-CJb-RELP.mjs} +1 -1
  647. package/package.json +65 -43
  648. package/dist/AccountApi-DgZ8ILj1.mjs +0 -19
  649. package/dist/AccountDetailsHeader-BOV91g1o.mjs +0 -95
  650. package/dist/AccountFields-BRRH37K1.mjs +0 -140
  651. package/dist/AccountListItem-Ds5C0mOT.mjs +0 -90
  652. package/dist/AccountStore-BFKvXJSD.mjs +0 -244
  653. package/dist/Accounts-CuE8aSZN.mjs +0 -27
  654. package/dist/BeatApi-De2IaqH2.mjs +0 -21
  655. package/dist/BeatStore-D_NYuBSz.mjs +0 -81
  656. package/dist/BudgetUtil-CDSOZXem.mjs +0 -101
  657. package/dist/CashflowStore-naOtJcwo.mjs +0 -91
  658. package/dist/CategoryStore-DEqAnHbi.mjs +0 -186
  659. package/dist/CategoryUtil-CFHBvaV4.mjs +0 -80
  660. package/dist/CurrencyInput-DDQ4DBrE.mjs +0 -85
  661. package/dist/DateUtil-CVsMhbZU.mjs +0 -48
  662. package/dist/DebtsStore-Dv_T7Dts.mjs +0 -63
  663. package/dist/Dialog-CWymUiuO.mjs +0 -120
  664. package/dist/Donut-Dmy3JTWd.mjs +0 -86
  665. package/dist/Fetch-DecPFeGU.mjs +0 -119
  666. package/dist/FinstrongStore-BjFkMTIL.mjs +0 -451
  667. package/dist/GlobalAccountFilter-BpWlPAl5.mjs +0 -316
  668. package/dist/GoalStore-Dbjgft2i.mjs +0 -422
  669. package/dist/HeaderCell-DjuifqHJ.mjs +0 -6
  670. package/dist/LineChart-DHj-Bufi.mjs +0 -580
  671. package/dist/Loader-BSWSYqvn.mjs +0 -24
  672. package/dist/Localization-2MODESHW.mjs +0 -30
  673. package/dist/ManageIncome-DIIyqDTp.mjs +0 -585
  674. package/dist/MerchantStore-WvZ4gnQe.mjs +0 -37
  675. package/dist/MiniWidgetContainer-DKn7ndO6.mjs +0 -56
  676. package/dist/NetWorthStore-B6ziBtaH.mjs +0 -168
  677. package/dist/Notification-Bs1fdbzI.mjs +0 -95
  678. package/dist/NotificationStore-Ck2KdNmT.mjs +0 -79
  679. package/dist/OriginalBalanceAction-DFoG79Ba.mjs +0 -115
  680. package/dist/RecurringTransactionsStore-D_--5PWH.mjs +0 -277
  681. package/dist/RepeatingTransaction-C2txVA9O.mjs +0 -292
  682. package/dist/SearchBox-B2_zLv8-.mjs +0 -42
  683. package/dist/SettingsStore-CInvh-rQ.mjs +0 -269
  684. package/dist/SpendingLegend-BxefXiQd.mjs +0 -193
  685. package/dist/TransactionApi-CjBoLleL.mjs +0 -86
  686. package/dist/TransactionDetails-CPwv9xtZ.mjs +0 -1374
  687. package/dist/TransactionStore-D2aMUClq.mjs +0 -688
  688. package/dist/TrendsStore-BdsYfCc7.mjs +0 -183
  689. package/dist/User-CulNdZUr.mjs +0 -314
  690. package/dist/ViewMoreMicroCard-CDWR16_h.mjs +0 -1147
  691. package/dist/WidgetContainer-mzejMmz2.mjs +0 -555
  692. package/dist/accounts/stores/UiStore.d.ts +0 -10
  693. package/dist/accounts/utils/index.d.ts +0 -1
  694. package/dist/cashflow/api/CashflowApi.d.ts +0 -13
  695. package/dist/cashflow/stores/CashflowStore.d.ts +0 -8
  696. package/dist/categories/stores/UiStore.d.ts +0 -20
  697. package/dist/common/api/LocalizedCopyApi.d.ts +0 -8
  698. package/dist/common/api/index.d.ts +0 -10
  699. package/dist/common/components/barchart/Bar.d.ts +0 -25
  700. package/dist/common/components/barchart/BarChart.d.ts +0 -34
  701. package/dist/common/components/barchart/BarColumn.d.ts +0 -37
  702. package/dist/common/components/barchart/Legend.d.ts +0 -8
  703. package/dist/common/components/barchart/Util.d.ts +0 -42
  704. package/dist/common/components/barchart/index.d.ts +0 -1
  705. package/dist/common/stores/index.d.ts +0 -3
  706. package/dist/common/types/SpendingPlan.d.ts +0 -44
  707. package/dist/common/utils/Categories.d.ts +0 -6
  708. package/dist/debts/store/DebtsStore.d.ts +0 -9
  709. package/dist/debts/store/DebtsUiStore.d.ts +0 -13
  710. package/dist/debts/utils/DebtStore.d.ts +0 -4
  711. package/dist/debts/utils/DebtsWidget.d.ts +0 -14
  712. package/dist/debts/utils/shared.d.ts +0 -12
  713. package/dist/exportTransactionsToCSV-BU1jTY0Q.mjs +0 -48
  714. package/dist/help/constants/index.d.ts +0 -1
  715. package/dist/help/utils/getAccessibleHelpCategories.d.ts +0 -3
  716. package/dist/transactions/analytics.d.ts +0 -3
  717. package/dist/transactions/components/shared/transactiondetails/actions/HideAction.d.ts +0 -7
  718. package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +0 -7
  719. package/dist/transactions/constants/Transaction.d.ts +0 -2
  720. package/dist/transactions/constants/TransactionsTable.d.ts +0 -17
  721. package/dist/transactions/stores/UiStore.d.ts +0 -25
  722. package/dist/transactions/utils/exportTransactionsToCSV.d.ts +0 -9
  723. package/dist/transactions/utils/sortAndFilterTransactions.d.ts +0 -3
  724. package/dist/trends/components/CategoryDetailDrawer.d.ts +0 -7
  725. package/dist/useCombineEvents-CRwX-qWE.mjs +0 -92
  726. package/dist/{common → core}/constants/Category.d.ts +0 -0
  727. package/dist/{common → core}/constants/DateFormats.d.ts +0 -0
  728. package/dist/{debts/constants/index.d.ts → core/constants/Debts.d.ts} +0 -0
  729. package/dist/{help → core}/constants/Help.d.ts +0 -0
  730. package/dist/{investments/constants/index.d.ts → core/constants/Investments.d.ts} +0 -0
  731. package/dist/{common → core}/constants/Numbers.d.ts +0 -0
  732. package/dist/{common → core}/constants/Table.d.ts +0 -0
  733. package/dist/{common → core}/stores/GlobalCopyStore.d.ts +0 -0
  734. package/dist/{common → core}/stores/GlobalUiStore.d.ts +0 -0
  735. package/dist/{common → core}/stores/UserStore.d.ts +1 -1
  736. /package/dist/{common → core}/types/Account.d.ts +0 -0
  737. /package/dist/{common → core}/types/Cashflow.d.ts +0 -0
  738. /package/dist/{common → core}/types/Category.d.ts +0 -0
  739. /package/dist/{common → core}/types/Date.d.ts +0 -0
  740. /package/dist/{common → core}/types/Debt.d.ts +0 -0
  741. /package/dist/{common → core}/types/Global.d.ts +0 -0
  742. /package/dist/{common → core}/types/GlobalCopy.d.ts +0 -0
  743. /package/dist/{common → core}/types/Goal.d.ts +0 -0
  744. /package/dist/{common → core}/types/Handlers.d.ts +0 -0
  745. /package/dist/{common → core}/types/Help.d.ts +0 -0
  746. /package/dist/{common → core}/types/Holding.d.ts +0 -0
  747. /package/dist/{common → core}/types/Institution.d.ts +0 -0
  748. /package/dist/{common → core}/types/LocalizedContent.d.ts +0 -0
  749. /package/dist/{common → core}/types/Merchant.d.ts +0 -0
  750. /package/dist/{common → core}/types/RepeatingTransaction.d.ts +0 -0
  751. /package/dist/{common → core}/types/ScheduledPayment.d.ts +0 -0
  752. /package/dist/{common → core}/types/ScreenSize.d.ts +0 -0
  753. /package/dist/{common → core}/types/Transaction.d.ts +0 -0
  754. /package/dist/{common → core}/types/User.d.ts +0 -0
  755. /package/dist/{common → core}/types/localization/AccountFilterCopy.d.ts +0 -0
  756. /package/dist/{common → core}/types/localization/AccountTypeCopy.d.ts +0 -0
  757. /package/dist/{common → core}/types/localization/AccountsCopy.d.ts +0 -0
  758. /package/dist/{common → core}/types/localization/AnalyticsCopy.d.ts +0 -0
  759. /package/dist/{common → core}/types/localization/CategoryCopy.d.ts +0 -0
  760. /package/dist/{common → core}/types/localization/ConnectCopy.d.ts +0 -0
  761. /package/dist/{common → core}/types/localization/CurrencyInputCopy.d.ts +0 -0
  762. /package/dist/{common → core}/types/localization/DateRangePickerCopy.d.ts +0 -0
  763. /package/dist/{common → core}/types/localization/FinstrongCopy.d.ts +0 -0
  764. /package/dist/{common → core}/types/localization/HelpCopy.d.ts +0 -0
  765. /package/dist/{common → core}/types/localization/InvestmentsCopy.d.ts +0 -0
  766. /package/dist/{common → core}/types/localization/MicroInsightsCopy.d.ts +0 -0
  767. /package/dist/{common → core}/types/localization/NetWorthCopy.d.ts +0 -0
  768. /package/dist/{common → core}/types/localization/NotificationsCopy.d.ts +0 -0
  769. /package/dist/{common → core}/types/localization/SettingsCopy.d.ts +0 -0
  770. /package/dist/{common → core}/types/localization/index.d.ts +0 -0
  771. /package/dist/{common → core}/utils/DateUtil.d.ts +0 -0
  772. /package/dist/{common → core}/utils/Fetch.d.ts +0 -0
  773. /package/dist/{common/utils/User.d.ts → core/utils/UserUtils.d.ts} +0 -0
@@ -1,1406 +1,312 @@
1
- import { jsxs as f, jsx as i } from "react/jsx-runtime";
2
- import st from "react";
3
- import { css as C, keyframes as rt } from "@mxenabled/cssinjs";
4
- import { useTokens as x, Text as B } from "@mxenabled/mxui";
5
- import { T as ot } from "../User-CulNdZUr.mjs";
6
- import { C as Ze, b as Je, L as ts, a as es } from "../User-CulNdZUr.mjs";
7
- import { C as rs } from "../CurrencyInput-DDQ4DBrE.mjs";
8
- import { D as as, F as is, c as ns, d as cs, R as ds, S as ls } from "../RepeatingTransaction-C2txVA9O.mjs";
9
- import { A as hs, D as gs, W as ps } from "../WidgetContainer-mzejMmz2.mjs";
10
- import { D as _s, a as fs, O as ys, b as Ss, f as bs } from "../Dialog-CWymUiuO.mjs";
11
- import { D as Cs } from "../Drawer-Bet2ZPJo.mjs";
12
- import { H as at } from "../Help-c-zHlDbv.mjs";
13
- import { E as As } from "../Help-c-zHlDbv.mjs";
14
- import { I as vs } from "../IconBacking-DgT8DCeh.mjs";
15
- import { C as it } from "../CashflowStore-naOtJcwo.mjs";
16
- import { I as Ts } from "../CashflowStore-naOtJcwo.mjs";
17
- import { L as Is } from "../Loader-BSWSYqvn.mjs";
18
- import { M as Ms } from "../MicroWidgetContainer-DSyYwRCU.mjs";
19
- import { M as Us } from "../MiniWidgetContainer-DKn7ndO6.mjs";
20
- import { D as nt, a as ct } from "../SingleSegmentDonut-PsRQPkmV.mjs";
21
- import { S as Rs } from "../SingleSegmentDonut-PsRQPkmV.mjs";
22
- import { R as Os } from "../ResponsiveButton-C6KH8JH4.mjs";
23
- import { T as dt } from "../TransactionStore-D2aMUClq.mjs";
24
- import { S as Fs } from "../TransactionStore-D2aMUClq.mjs";
25
- import { S as Gs } from "../StatusBar-CPfSXe80.mjs";
26
- import { T as qs } from "../TabContentContainer-CnMXkVqr.mjs";
27
- import { a as Qs, f as Xs, d as js, A as Ks, e as zs, C as Vs, g as Zs, E as Js, M as tr, N as er, c as sr, P as rr, h as or, S as ar } from "../Account-CMjOp7S2.mjs";
28
- import { A as nr, B as cr, I as dr, N as lr, T as ur, a as hr } from "../Notification-Bs1fdbzI.mjs";
29
- import { G as R } from "../useCombineEvents-CRwX-qWE.mjs";
30
- import { A as pr, a as mr, u as _r, b as fr } from "../useCombineEvents-CRwX-qWE.mjs";
31
- import { F as y, A as h } from "../Fetch-DecPFeGU.mjs";
32
- import { B as Sr } from "../BeatApi-De2IaqH2.mjs";
33
- import { C as lt } from "../CategoryStore-DEqAnHbi.mjs";
34
- import { a as wr } from "../CategoryStore-DEqAnHbi.mjs";
35
- import { b as E } from "../Category-Ccoew_sA.mjs";
36
- import { a as xr, c as Ar, C as Dr, P as vr } from "../Category-Ccoew_sA.mjs";
37
- import { d as ut } from "../GoalStore-Dbjgft2i.mjs";
38
- import { C as Tr, G as Br, M as Ir, T as Nr } from "../GoalStore-Dbjgft2i.mjs";
39
- import { b as Lr, G as Ur } from "../GlobalAccountFilter-BpWlPAl5.mjs";
40
- import { C as Rr, f as $r, b as Or, a as Pr, g as Fr, i as Hr } from "../NumberFormatting-DjTD0t3W.mjs";
41
- import { C as Wr } from "../CurrencyText-C-85TnUF.mjs";
42
- import { E as Yr } from "../EmptyState-DoxNUae-.mjs";
43
- import { makeAutoObservable as _, runInAction as S, reaction as Z, autorun as ht } from "mobx";
44
- import { G as Xr, x as jr, y as Kr, W as zr, d as Vr, a as Zr, i as Jr, t as to, m as eo, w as so, z as ro, g as oo, A as ao, u as io, f as no, b as co, l as lo, B as uo, s as ho, C as go, c as po, q as mo, n as _o, D as fo, j as yo, r as So, h as bo, v as wo, o as Co, p as xo } from "../hooks-fY_n74f7.mjs";
45
- import { A as gt } from "../AccountStore-BFKvXJSD.mjs";
46
- import pt from "posthog-js";
47
- import { B as mt } from "../BeatStore-D_NYuBSz.mjs";
48
- import { endOfMonth as J } from "date-fns/endOfMonth";
49
- import { startOfMonth as tt } from "date-fns/startOfMonth";
50
- import { startOfToday as $ } from "date-fns/startOfToday";
51
- import { f as _t, a as ft, b as O } from "../BudgetUtil-CDSOZXem.mjs";
52
- import { g as Do, c as vo, d as Eo, e as To, i as Bo } from "../BudgetUtil-CDSOZXem.mjs";
53
- import { a as yt } from "../DebtsStore-Dv_T7Dts.mjs";
54
- import { F as St } from "../FinstrongStore-BjFkMTIL.mjs";
55
- import { A as bt, m as wt, a as Ct, b as xt } from "../InvestmentUtil-jOyOgzIB.mjs";
56
- import { M as At } from "../MerchantStore-WvZ4gnQe.mjs";
57
- import { N as Dt } from "../NetWorthStore-B6ziBtaH.mjs";
58
- import { N as vt } from "../NotificationStore-Ck2KdNmT.mjs";
59
- import { a as No } from "../NotificationStore-Ck2KdNmT.mjs";
60
- import { a as Et } from "../SettingsStore-CInvh-rQ.mjs";
61
- import { R as Tt } from "../RecurringTransactionsStore-D_--5PWH.mjs";
62
- import { S as Lo, T as Uo } from "../RecurringTransactionsStore-D_--5PWH.mjs";
63
- import { T as Bt } from "../TrendsStore-BdsYfCc7.mjs";
64
- import { L as Ro } from "../TrendsStore-BdsYfCc7.mjs";
65
- import { addMonths as It } from "date-fns/addMonths";
66
- import { getMonth as T } from "date-fns/getMonth";
67
- import { I as Oo, P as Po, S as Fo } from "../Account-BIKn4XEZ.mjs";
68
- import { L as Go } from "../ListItemAction-Cbr3417C.mjs";
69
- import { S as qo } from "../SearchBox-B2_zLv8-.mjs";
70
- import { b as Qo, a as Xo, g as jo } from "../Localization-2MODESHW.mjs";
71
- import { i as zo } from "../DateUtil-CVsMhbZU.mjs";
72
- import { alpha as Nt, darken as P, lighten as F } from "@mui/material";
73
- import { u as Zo } from "../useAccountDisplayName-DbkgGLdg.mjs";
74
- import { u as ta } from "../useInsightsEnabled-dhmXeSyF.mjs";
75
- import { u as sa } from "../useScreenSize-B6JyS_Lj.mjs";
76
- import { u as oa } from "../useWidgetLoadTimer-CrUzxN-P.mjs";
77
- var Mt = /* @__PURE__ */ ((s) => (s[s.Unknown = 0] = "Unknown", s[s.EveryWeek = 1] = "EveryWeek", s[s.EveryOtherWeek = 2] = "EveryOtherWeek", s[s.EveryMonth = 3] = "EveryMonth", s[s.EveryOtherMonth = 4] = "EveryOtherMonth", s[s.EveryQuarter = 5] = "EveryQuarter", s[s.EveryOtherQuarter = 6] = "EveryOtherQuarter", s[s.EveryYear = 7] = "EveryYear", s))(Mt || {});
78
- const Ge = [
79
- { id: 0, copy: "frequency_unknown" },
80
- { id: 1, copy: "frequency_every_week" },
81
- { id: 2, copy: "frequency_every_other_week" },
82
- { id: 3, copy: "frequency_every_month" },
83
- { id: 4, copy: "frequency_every_other_month" },
84
- { id: 5, copy: "frequency_every_quarter" },
85
- { id: 6, copy: "frequency_every_other_quarter" },
86
- { id: 7, copy: "frequency_every_year" }
87
- ], We = {
1
+ import { l as Y } from "../UserStore-CRpKQjpP.mjs";
2
+ import { b as $, a as H } from "../Localization-DnoVyBNK.mjs";
3
+ import { f as j, b as V, a as K, c as Z, g as J, d as X } from "../NumberFormatting--XMeeBfr.mjs";
4
+ import { C as rr, a as er, b as or } from "../CurrencyDialog-DumQCTPO.mjs";
5
+ import { C as ar } from "../CurrencyInput-adTIRtL3.mjs";
6
+ import { D as nr, S as ir } from "../Select-BFt-HD-L.mjs";
7
+ import { D as lr, W as mr, u as dr } from "../WidgetContainer-DNuz_s7W.mjs";
8
+ import { D as fr } from "../Dialog-CwWc0AbH.mjs";
9
+ import { D as yr } from "../Donut-SzzfZDHF.mjs";
10
+ import { D as xr } from "../Drawer-BXqqBMxg.mjs";
11
+ import { E as hr } from "../ErrorBoundary-CsdOcnJ9.mjs";
12
+ import { I as Cr } from "../IconBacking-DgT8DCeh.mjs";
13
+ import { I as vr } from "../InformationTooltip-4su8bn1e.mjs";
14
+ import { L as br } from "../Loader-CxeBwuPG.mjs";
15
+ import { M as Dr } from "../MicroWidgetContainer-CfKdQfhi.mjs";
16
+ import { M as Ir } from "../MiniWidgetContainer-BdPiUU-u.mjs";
17
+ import { jsxs as g, jsx as y } from "react/jsx-runtime";
18
+ import { css as C } from "@mxenabled/cssinjs";
19
+ import { D as _, a as v } from "../SingleSegmentDonut-7Uy6VEld.mjs";
20
+ import { S as Mr } from "../SingleSegmentDonut-7Uy6VEld.mjs";
21
+ import { R as wr } from "../ResponsiveButton-CC9F_Ezk.mjs";
22
+ import { S as Lr } from "../SelectionBox-B4xELRgp.mjs";
23
+ import { S as Ur } from "../StatusBar-CPfSXe80.mjs";
24
+ import { T as Br } from "../TabContentContainer-CnMXkVqr.mjs";
25
+ import { A as qr } from "../Analytics-CzGzz_sE.mjs";
26
+ import { C as Fr } from "../ConnectCard-CCep7Zqe.mjs";
27
+ import { C as Hr } from "../ConnectDrawer-Cnjr3Ddg.mjs";
28
+ import { C as jr } from "../CurrencyText-CCbE6MmF.mjs";
29
+ import { E as Kr } from "../EmptyState-CJUDc3kD.mjs";
30
+ import { E as Jr } from "../Error-Dogaw2jO.mjs";
31
+ import { G as zr } from "../GlobalAccountFilter-7Cg2-9A5.mjs";
32
+ import { G as ee, m as oe, n as te, W as ae, d as se, a as ne, o as ie, p as ue, l as le, q as me, r as de, g as ce, s as fe, u as pe, f as ye, b as ge, k as xe, t as Ee, v as he, w as Se, c as Ce, x as _e, y as ve, z as ke, i as be, A as Oe, h as De, B as Te, C as Ie, D as Ae } from "../hooks-BaO_gOI6.mjs";
33
+ import { I as Pe, P as we, S as Ne } from "../Account-BxHMlV9R.mjs";
34
+ import { L as We } from "../ListItemAction-CwspSmQi.mjs";
35
+ import { L as Ge } from "../ListItemRow-kH1rn8Xu.mjs";
36
+ import { L as Re } from "../ListItemWrapper-B5r-YQQ_.mjs";
37
+ import { S as Ye } from "../SearchBox-Cpgu_gdO.mjs";
38
+ import { S as $e, T as He } from "../Sizes-DISGrlUg.mjs";
39
+ import { T as je, a as Ve } from "../ToggleListItem-Dl1lXNwj.mjs";
40
+ import { a as Ze, u as Je, b as Xe } from "../Analytics-CkYXKvco.mjs";
41
+ import { alpha as k, darken as x, lighten as E } from "@mui/material";
42
+ import { u as ro } from "../useAccountDisplayName-CFa_MrS6.mjs";
43
+ import { u as oo } from "../useInsightsEnabled-DaNLPmUU.mjs";
44
+ import { useRef as b, useEffect as O } from "react";
45
+ import { u as ao } from "../useScreenSize-mWpmnh5w.mjs";
46
+ import { u as no } from "../useWidgetLoadTimer-CJb-RELP.mjs";
47
+ var i = /* @__PURE__ */ ((r) => (r[r.Unknown = 0] = "Unknown", r[r.EveryWeek = 1] = "EveryWeek", r[r.EveryOtherWeek = 2] = "EveryOtherWeek", r[r.EveryMonth = 3] = "EveryMonth", r[r.EveryOtherMonth = 4] = "EveryOtherMonth", r[r.EveryQuarter = 5] = "EveryQuarter", r[r.EveryOtherQuarter = 6] = "EveryOtherQuarter", r[r.EveryYear = 7] = "EveryYear", r))(i || {});
48
+ const N = (r) => {
49
+ const o = b(null);
50
+ return O(() => {
51
+ o.current = r;
52
+ }, [r]), o.current;
53
+ }, L = [
54
+ { id: i.Unknown, copy: "frequency_unknown" },
55
+ { id: i.EveryWeek, copy: "frequency_every_week" },
56
+ { id: i.EveryOtherWeek, copy: "frequency_every_other_week" },
57
+ { id: i.EveryMonth, copy: "frequency_every_month" },
58
+ { id: i.EveryOtherMonth, copy: "frequency_every_other_month" },
59
+ { id: i.EveryQuarter, copy: "frequency_every_quarter" },
60
+ { id: i.EveryOtherQuarter, copy: "frequency_every_other_quarter" },
61
+ { id: i.EveryYear, copy: "frequency_every_year" }
62
+ ], W = {
88
63
  ERROR: "ERROR",
89
64
  LOADING: "LOADING",
90
65
  SUCCESS: "SUCCESS"
91
- };
92
- var Lt = /* @__PURE__ */ ((s) => (s[s.SpendingPlan = 0] = "SpendingPlan", s[s.Budgets = 1] = "Budgets", s))(Lt || {}), Ut = /* @__PURE__ */ ((s) => (s[s.RecurringExpense = 0] = "RecurringExpense", s[s.PlannedExpense = 1] = "PlannedExpense", s[s.Other = 2] = "Other", s[s.Income = 3] = "Income", s))(Ut || {});
93
- const kt = [
66
+ }, U = ({
67
+ hasGap: r = !1,
68
+ segments: o,
69
+ size: n = _,
70
+ strokeWidth: u = v,
71
+ children: m
72
+ }) => {
73
+ const d = D(n), t = (n - u) / 2, a = n / 2;
74
+ let c = -90 - (r ? 1 : 0), s = 0;
75
+ return /* @__PURE__ */ g("div", { className: `mx-cmn-multi-segment-donut ${d}`, children: [
76
+ /* @__PURE__ */ g("svg", { height: n, width: n, children: [
77
+ /* @__PURE__ */ y(
78
+ "circle",
79
+ {
80
+ cx: a,
81
+ cy: a,
82
+ fill: "none",
83
+ r: t,
84
+ stroke: "#E4E8EE",
85
+ strokeWidth: u
86
+ }
87
+ ),
88
+ o.map((l, f) => (c += 360 * s + (r ? 1 : 0), s = (l.percent - (r ? 0.3 : 0)) / 100, /* @__PURE__ */ y(
89
+ "circle",
90
+ {
91
+ cx: a,
92
+ cy: a,
93
+ fill: "none",
94
+ r: t,
95
+ stroke: l.color,
96
+ strokeDasharray: 2 * Math.PI * t,
97
+ strokeDashoffset: 2 * Math.PI * t * (1 - s),
98
+ strokeWidth: u,
99
+ transform: `rotate(${c}, ${a}, ${a})`
100
+ },
101
+ f
102
+ )))
103
+ ] }),
104
+ /* @__PURE__ */ y("div", { className: "mx-cmn-multi-segment-donut-children", children: m })
105
+ ] });
106
+ }, D = (r) => C({
107
+ height: r,
108
+ marginTop: "-8px",
109
+ position: "relative",
110
+ width: r,
111
+ "& .mx-cmn-multi-segment-donut-children": {
112
+ left: "50%",
113
+ position: "absolute",
114
+ textAlign: "center",
115
+ top: "50%",
116
+ transform: "translate(-50%, -50%)"
117
+ }
118
+ }), T = [
94
119
  "fontFamily",
95
- "H1",
96
120
  "h1",
97
- "H2",
98
121
  "h2",
99
- "H3",
100
122
  "h3",
101
- "Body",
102
123
  "body1",
103
- "Small",
104
124
  "body2",
105
- "Button",
106
125
  "button",
107
- "XSmall",
108
126
  "caption",
109
- "Paragraph",
110
127
  "subtitle1",
111
- "ParagraphSmall",
112
128
  "subtitle2",
113
- "Tiny",
114
129
  "tiny"
115
- ], Rt = [
130
+ ], h = [
116
131
  { key: "primary", light: "primary_color", dark: "primary_color_dark" },
117
132
  { key: "secondary", light: "neutral_color", dark: "neutral_color_dark" },
118
133
  { key: "error", light: "error_color", dark: "error_color_dark" },
119
134
  { key: "warning", light: "warning_color", dark: "warning_color_dark" },
120
135
  { key: "info", light: "info_color", dark: "info_color_dark" },
121
136
  { key: "success", light: "success_color", dark: "success_color_dark" }
122
- ], qe = (s, t, e) => {
123
- const r = s.palette.mode === "dark", o = (e?.master?.style?.font_name || t?.system_font) ?? s.typography.fontFamily, a = (n, m) => n ? {
124
- lighter: F(n, 0.5),
125
- light: F(n, 0.25),
126
- main: n,
127
- dark: P(n, 0.25),
128
- darker: P(n, 0.5)
129
- } : m, l = Object.fromEntries(
130
- Rt.map(({ key: n, light: m, dark: b }) => [
131
- n,
132
- a(
133
- t?.[r ? b : m],
134
- s.palette[n]
137
+ ], G = (r, o) => {
138
+ const n = o === "dark", u = {};
139
+ for (const { key: m, light: d, dark: t } of h) {
140
+ const a = r?.[n ? t : d];
141
+ a && (u[m] = a);
142
+ }
143
+ return u;
144
+ }, B = (r, o, n) => {
145
+ const u = r.palette.mode === "dark", m = (n?.master?.style?.font_name || o?.system_font) ?? r.typography.fontFamily, d = (e, p) => e ? {
146
+ lighter: E(e, 0.5),
147
+ light: E(e, 0.25),
148
+ main: e,
149
+ dark: x(e, 0.25),
150
+ darker: x(e, 0.5)
151
+ } : p, t = Object.fromEntries(
152
+ h.map(({ key: e, light: p, dark: S }) => [
153
+ e,
154
+ d(
155
+ o?.[u ? S : p],
156
+ r.palette[e]
135
157
  )
136
158
  ])
137
- ), c = Object.fromEntries(
138
- kt.map((n) => [
139
- n,
140
- n === "fontFamily" ? o : { fontFamily: o }
159
+ ), a = Object.fromEntries(
160
+ T.map((e) => [
161
+ e,
162
+ e === "fontFamily" ? m : { fontFamily: m }
141
163
  ])
142
- ), d = {
164
+ ), c = {
143
165
  MuiTabs: {
144
166
  styleOverrides: {
145
- indicator: { backgroundColor: l.primary.light }
167
+ indicator: { backgroundColor: t.primary.light }
146
168
  }
147
169
  },
148
170
  MuiPickersCalendarHeader: {
149
171
  styleOverrides: {
150
172
  switchViewButton: {
151
- color: l.primary.lighter,
152
- "&:hover": { backgroundColor: Nt(l.primary.light, 0.1) }
173
+ color: t.primary.lighter,
174
+ "&:hover": { backgroundColor: k(t.primary.light, 0.1) }
153
175
  }
154
176
  }
155
177
  }
156
- }, u = t?.button_corner_radius, g = t?.card_corner_radius, p = {
157
- ...d,
158
- ...u && {
178
+ }, s = o?.button_corner_radius, l = o?.card_corner_radius, f = {
179
+ ...c,
180
+ ...s && {
159
181
  MuiButton: {
160
182
  styleOverrides: {
161
- root: { borderRadius: `${u}px`, textTransform: "none" }
183
+ root: { borderRadius: `${s}px`, textTransform: "none" }
162
184
  }
163
185
  },
164
186
  MuiIconButton: {
165
187
  styleOverrides: {
166
188
  root: {
167
- borderRadius: `${u}px`,
168
- minWidth: u,
169
- minHeight: u
189
+ borderRadius: `${s}px`,
190
+ minWidth: s,
191
+ minHeight: s
170
192
  }
171
193
  }
172
194
  },
173
195
  MuiToggleButton: {
174
196
  styleOverrides: {
175
- root: { borderRadius: `${u}px`, textTransform: "none" }
197
+ root: { borderRadius: `${s}px`, textTransform: "none" }
176
198
  }
177
199
  }
178
200
  },
179
- ...g && {
201
+ ...l && {
180
202
  MuiCard: {
181
- styleOverrides: { root: { borderRadius: `${g}px` } }
182
- },
183
- MuiPaper: {
184
- styleOverrides: { root: { borderRadius: `${g}px` } }
203
+ styleOverrides: { root: { borderRadius: `${l}px` } }
185
204
  }
186
- }
187
- };
188
- return { typography: c, palette: l, components: p };
189
- };
190
- class H {
191
- fetchInstance;
192
- constructor(t) {
193
- this.fetchInstance = new y(t, "", {
194
- Accept: "application/json",
195
- "Content-Type": "application/json"
196
- });
197
- }
198
- getBanner = async (t) => {
199
- try {
200
- const e = `/banner/${t}/account_widget_banner`;
201
- return this.fetchInstance?.get(e).then((r) => r.banner) ?? {};
202
- } catch (e) {
203
- return console.error("Error fetching banner:", e), null;
204
- }
205
- };
206
- }
207
- class Ye {
208
- fetchInstance;
209
- constructor(t, e, r) {
210
- this.fetchInstance = new y(t, e, void 0, r);
211
- }
212
- getLocalizedCopy = async (t) => this.fetchInstance.post(h.LOCALIZED_COPY, t).then((e) => e);
213
- getLocalizedContent = async (t) => this.fetchInstance.post(`${h.LOCALIZED_CONTENT}/${t}`).then((e) => e);
214
- }
215
- class Qe {
216
- fetchInstance;
217
- constructor(t, e, r) {
218
- this.fetchInstance = new y(t, e, void 0, r);
219
- }
220
- addScheduledPayment = async (t) => this.fetchInstance.post(h.SCHEDULED_PAYMENTS, {
221
- ...t,
222
- is_recurring: "true",
223
- transaction_type: ot.DEBIT
224
- }).then((e) => e.scheduled_payment);
225
- getScheduledPayments = async () => this.fetchInstance.get(h.SCHEDULED_PAYMENTS).then((t) => t.scheduled_payments);
226
- updateScheduledPayment = async (t) => this.fetchInstance.put(`${h.SCHEDULED_PAYMENTS}/${t.guid}`, t).then((e) => e.scheduled_payment);
227
- deleteScheduledPayment = async (t) => this.fetchInstance.delete(`${h.SCHEDULED_PAYMENTS}/${t}`).then((e) => e);
228
- }
229
- class G {
230
- fetchInstance;
231
- constructor(t, e, r) {
232
- this.fetchInstance = new y(t, e, void 0, r);
233
- }
234
- getUserFeatures = async () => this.fetchInstance.get(h.USER_FEATURES).then((t) => t.user_features).catch((t) => t);
235
- updateUser = async (t) => this.fetchInstance.put(h.USER, t).then((e) => e.user);
236
- updateUserProfile = async (t) => this.fetchInstance.put(`${h.USER_PROFILES}/${t.guid}`, t).then((e) => e.user_profile);
237
- }
238
- class W {
239
- fetchInstance;
240
- constructor(t, e) {
241
- this.fetchInstance = new y(t, e);
242
- }
243
- requestWidgetUrl = async (t) => this.fetchInstance.post(h.WIDGET_URLS, t).then((e) => e.widget_url);
244
- }
245
- const $t = ({ color: s, labelAverage: t, labelMain: e }) => {
246
- const r = x(), o = Ot(r, s);
247
- return /* @__PURE__ */ f("div", { className: `mx-cmn-bar-chart-legend ${o}`, children: [
248
- /* @__PURE__ */ i("div", { "aria-label": e, className: "mx-cmn-color-square", role: "img" }),
249
- /* @__PURE__ */ i(B, { variant: "XSmall", children: e }),
250
- /* @__PURE__ */ f("div", { "aria-label": t, className: "mx-cmn-triple-dot", role: "img", children: [
251
- /* @__PURE__ */ i("div", { className: "mx-cmn-dot" }),
252
- /* @__PURE__ */ i("div", { className: "mx-cmn-dot" }),
253
- /* @__PURE__ */ i("div", { className: "mx-cmn-dot" })
254
- ] }),
255
- /* @__PURE__ */ i(B, { variant: "XSmall", children: t })
256
- ] });
257
- }, Ot = (s, t) => C({
258
- alignItems: "center",
259
- display: "flex",
260
- gap: s.Spacing.XSmall,
261
- justifyContent: "flex-end",
262
- marginRight: s.Spacing.XLarge,
263
- paddingBottom: s.Spacing.XSmall,
264
- width: "100%",
265
- "& .mx-cmn-color-square": {
266
- backgroundColor: t,
267
- height: 6,
268
- width: 6
269
- },
270
- "& .mx-cmn-triple-dot": {
271
- display: "flex",
272
- gap: 1
273
- },
274
- "& .mx-cmn-dot": {
275
- backgroundColor: s.Color.Neutral500,
276
- height: 3,
277
- width: 3,
278
- borderRadius: 1.5
279
- },
280
- "& > .kyper-text": {
281
- marginRight: s.Spacing.XSmall
282
- }
283
- }), q = ({
284
- ariaLabel: s,
285
- color: t,
286
- height: e,
287
- index: r,
288
- label: o,
289
- onClick: a,
290
- selectedIndex: l,
291
- value: c
292
- }) => {
293
- const d = x(), u = Pt(d, t, e), g = (m) => {
294
- a && (m.key === " " || m.key === "Enter") && a(r);
295
- }, p = l === void 0 || l === r ? "primary" : "secondary", n = () => /* @__PURE__ */ i(
296
- B,
297
- {
298
- "aria-hidden": !0,
299
- bold: l === r,
300
- className: "mx-cmn-bar-text",
301
- color: p,
302
- component: "div",
303
- variant: "Small",
304
- children: o
305
- }
306
- );
307
- return /* @__PURE__ */ f("div", { className: `mx-cmn-bar-container ${u} ${c < 0 ? "mx-cmn-negative" : ""}`, children: [
308
- c >= 0 && /* @__PURE__ */ i(n, {}),
309
- /* @__PURE__ */ i(
310
- "div",
311
- {
312
- "aria-label": s,
313
- className: `mx-cmn-bar ${a ? "mx-cmn-clickable" : ""} ${c < 0 ? "mx-cmn-bar-negative" : ""}`,
314
- onClick: a ? () => a?.(r) : void 0,
315
- onKeyDown: g,
316
- role: s ? "button" : void 0,
317
- tabIndex: s ? 0 : void 0
318
- }
319
- ),
320
- c < 0 && /* @__PURE__ */ i(n, {})
321
- ] });
322
- }, Pt = (s, t, e) => {
323
- const r = `expandBar-${Math.round(e)}`, o = rt(r, { from: { height: 0 }, to: { height: e } });
324
- return C({
325
- display: "flex",
326
- flexDirection: "column",
327
- justifyContent: "flex-end",
328
- height: "100%",
329
- "&.mx-cmn-negative": {
330
- justifyContent: "flex-start"
331
205
  },
332
- "& .mx-cmn-bar": {
333
- animationDelay: ".5s",
334
- animationDuration: "1s",
335
- animationFillMode: "forwards",
336
- animationName: o,
337
- animationTimingFunction: s.Easing.Default,
338
- backgroundColor: t,
339
- borderRadius: `${s.BorderRadius.Medium}px ${s.BorderRadius.Medium}px 0 0`,
340
- maxHeight: e
341
- },
342
- "& .mx-cmn-bar-negative": {
343
- borderRadius: `0 0 ${s.BorderRadius.Medium}px ${s.BorderRadius.Medium}px`,
344
- marginTop: -s.Spacing.XTiny
345
- },
346
- "& .mx-cmn-bar-text": {
347
- display: "flex",
348
- justifyContent: "center",
349
- marginBottom: s.Spacing.Tiny,
350
- marginTop: s.Spacing.Tiny,
351
- whiteSpace: "nowrap",
352
- width: "100%"
353
- }
354
- });
355
- }, Y = ({
356
- ariaLabel: s,
357
- averageLineHeight: t,
358
- bottomHeight: e,
359
- color: r,
360
- index: o = -1,
361
- onClick: a,
362
- range: l,
363
- selectedIndex: c,
364
- topHeight: d,
365
- value: u,
366
- valueLabel: g = "",
367
- width: p,
368
- xAxisLabel: n = ""
369
- }) => {
370
- const m = x(), b = Ft(m, p), A = u / l * d, D = Math.abs(u) / l * e, v = c === void 0 || c === o ? "primary" : "secondary";
371
- return /* @__PURE__ */ f("div", { className: `mx-cmn-barchart-bar-column ${b}`, children: [
372
- /* @__PURE__ */ i("div", { style: { height: d }, children: u >= 0 && /* @__PURE__ */ i(
373
- q,
374
- {
375
- ariaLabel: s,
376
- color: r,
377
- height: A,
378
- index: o,
379
- label: g,
380
- onClick: a,
381
- selectedIndex: c,
382
- value: u
383
- }
384
- ) }),
385
- /* @__PURE__ */ i("div", { className: "mx-cmn-zero-line" }),
386
- t !== 0 && /* @__PURE__ */ i("div", { className: "mx-cmn-chart-average", style: { bottom: t } }),
387
- /* @__PURE__ */ i("div", { style: { height: e }, children: u < 0 && /* @__PURE__ */ i(
388
- q,
389
- {
390
- ariaLabel: s,
391
- color: r,
392
- height: D,
393
- index: o,
394
- label: g,
395
- onClick: a,
396
- value: u
397
- }
398
- ) }),
399
- /* @__PURE__ */ i(
400
- "div",
401
- {
402
- className: `mx-cmn-bar-label ${a ? "mx-cmn-clickable" : ""}`,
403
- onClick: a ? () => a(o) : void 0,
404
- children: /* @__PURE__ */ i(B, { bold: c === o, color: v, variant: "Small", children: n })
405
- }
406
- )
407
- ] });
408
- }, Ft = (s, t) => C({
409
- display: "flex",
410
- flexDirection: "column",
411
- flexGrow: t === void 0 ? 1 : 0,
412
- width: t,
413
- "& .mx-cmn-chart-average": {
414
- borderTop: `${s.Spacing.XTiny}px dotted ${s.Color.Neutral500}`,
415
- position: "relative",
416
- marginRight: s.Spacing.XTiny
417
- },
418
- "& .mx-cmn-zero-line": {
419
- borderBottom: "1px solid text.primary",
420
- width: "100%"
421
- },
422
- "& .mx-cmn-bar-label": {
423
- minHeight: s.Spacing.Medium,
424
- maxHeight: s.Spacing.Medium,
425
- marginBottom: s.Spacing.XSmall,
426
- marginTop: s.Spacing.XSmall,
427
- textAlign: "center",
428
- width: "100%"
429
- },
430
- "& .mx-cmn-clickable": {
431
- cursor: "pointer"
432
- }
433
- }), Ht = (s, t) => s + t, Gt = (s, t) => Math.abs(t) > s ? Math.abs(t) : s, Wt = (s, t) => [...s, t.value], Q = (s, t, e) => {
434
- const r = s && t ? e / 2 : e;
435
- return s ? r : 0;
436
- }, qt = (s, t, e, r) => s / (t < 0 ? -e : t) * r || 0, Xe = ({
437
- average: s,
438
- barWidth: t = "8%",
439
- color: e,
440
- data: r,
441
- height: o,
442
- legendLabelAverage: a,
443
- legendLabelMain: l,
444
- onBarClick: c,
445
- selectedIndex: d,
446
- valueFormatter: u = (g) => `${g}`
447
- }) => {
448
- const g = x(), p = Yt(g), n = r.reduce(Wt, []), m = s !== void 0 ? s : n.reduce(Ht, 0) / n.length, b = Math.max(...n), A = Math.min(...n), D = n.reduce(Gt, 0), v = b >= 0, L = A < 0, I = Q(v, L, o), N = Q(L, v, o), U = qt(m, b, A, I || N), et = (w) => d === void 0 || w === d ? e : `${e}80`, k = () => /* @__PURE__ */ i(
449
- Y,
450
- {
451
- averageLineHeight: U,
452
- bottomHeight: N,
453
- color: "",
454
- range: D,
455
- topHeight: I,
456
- value: 0,
457
- width: void 0
458
- }
459
- );
460
- return /* @__PURE__ */ f("div", { className: `mx-cmn-bar-chart ${p}`, children: [
461
- /* @__PURE__ */ f("div", { className: "mx-cmn-chart-container", children: [
462
- /* @__PURE__ */ i(k, {}),
463
- r.map((w, M) => /* @__PURE__ */ f(st.Fragment, { children: [
464
- /* @__PURE__ */ i(
465
- Y,
466
- {
467
- ariaLabel: w.ariaLabel,
468
- averageLineHeight: U,
469
- bottomHeight: N,
470
- color: et(M),
471
- index: M,
472
- onClick: c,
473
- range: D,
474
- selectedIndex: d,
475
- topHeight: I,
476
- value: w.value,
477
- valueLabel: u(w.value),
478
- width: t,
479
- xAxisLabel: w.label
480
- }
481
- ),
482
- /* @__PURE__ */ i(k, {})
483
- ] }, `column-${M}`))
484
- ] }),
485
- /* @__PURE__ */ i($t, { color: e, labelAverage: a, labelMain: l })
486
- ] });
487
- }, Yt = (s) => C({
488
- "& .mx-cmn-chart-container": {
489
- alignItems: "flex-end",
490
- display: "flex",
491
- justifyContent: "space-evenly",
492
- marginTop: s.Spacing.Large,
493
- marginBottom: s.Spacing.Medium
494
- }
495
- }), je = ({
496
- hasGap: s = !1,
497
- segments: t,
498
- size: e = nt,
499
- strokeWidth: r = ct,
500
- children: o
501
- }) => {
502
- const a = x(), l = Qt(a, e), c = (e - r) / 2, d = e / 2;
503
- let u = -90 - (s ? 1 : 0), g = 0;
504
- return /* @__PURE__ */ f("div", { className: `mx-cmn-multi-segment-donut ${l}`, children: [
505
- /* @__PURE__ */ f("svg", { height: e, width: e, children: [
506
- /* @__PURE__ */ i(
507
- "circle",
508
- {
509
- cx: d,
510
- cy: d,
511
- fill: "none",
512
- r: c,
513
- stroke: a.Color.Neutral300,
514
- strokeWidth: r
515
- }
516
- ),
517
- t.map((p, n) => (u += 360 * g + (s ? 1 : 0), g = (p.percent - (s ? 0.3 : 0)) / 100, /* @__PURE__ */ i(
518
- "circle",
519
- {
520
- cx: d,
521
- cy: d,
522
- fill: "none",
523
- r: c,
524
- stroke: p.color,
525
- strokeDasharray: 2 * Math.PI * c,
526
- strokeDashoffset: 2 * Math.PI * c * (1 - g),
527
- strokeWidth: r,
528
- transform: `rotate(${u}, ${d}, ${d})`
529
- },
530
- n
531
- )))
532
- ] }),
533
- /* @__PURE__ */ i("div", { className: "mx-cmn-multi-segment-donut-children", children: o })
534
- ] });
535
- }, Qt = (s, t) => C({
536
- height: t,
537
- marginTop: `-${s.Spacing.XSmall}px`,
538
- position: "relative",
539
- width: t,
540
- "& .mx-cmn-multi-segment-donut-children": {
541
- left: "50%",
542
- position: "absolute",
543
- textAlign: "center",
544
- top: "50%",
545
- transform: "translate(-50%, -50%)"
546
- }
547
- });
548
- class Xt {
549
- globalStore;
550
- api = new R("/", "");
551
- copy = {};
552
- featureNamespace = "experiences";
553
- isInitialized = !1;
554
- constructor(t) {
555
- this.globalStore = t, this.api = new R(
556
- t.endpoint,
557
- t.sessionToken,
558
- t.onError
559
- ), _(this);
560
- }
561
- loadCopy = async () => {
562
- await this.getCopy(this.featureNamespace), S(() => {
563
- this.isInitialized = !0;
564
- });
565
- };
566
- getCopy = async (t, e = "") => {
567
- try {
568
- const r = await this.api.getGlobalCopy(t, e);
569
- S(() => {
570
- this.copy = r[t];
571
- });
572
- } catch (r) {
573
- console.error(`Error occurred while fetching ${this.featureNamespace} copy: ${r}`);
574
- }
575
- };
576
- }
577
- class jt {
578
- globalStore;
579
- survey = null;
580
- currentQuestionIndex = 0;
581
- question = null;
582
- response = null;
583
- responses = {};
584
- constructor(t) {
585
- this.globalStore = t, _(this);
586
- }
587
- get isLastQuestion() {
588
- return this.currentQuestionIndex === this.surveyQuestions.length - 1;
589
- }
590
- get questionCount() {
591
- return `${this.currentQuestionIndex + 1}/${this.surveyQuestions.length}`;
592
- }
593
- get responsePayload() {
594
- return {
595
- $survey_id: this.surveyId,
596
- ...this.responses
597
- };
598
- }
599
- // TODO hardcode elsewhere
600
- get surveyId() {
601
- return window.app?.postHogPublicKey === "phc_KclQGnOZEaYCttkpiVpuyOYeBlixGo6xNphYgWV4CXo" ? "0196caa6-9b37-0000-98a7-f04e8d56faf5" : "0196a6b0-ccde-0000-b980-0b84ea2fef4a";
602
- }
603
- get surveyQuestions() {
604
- return this.survey ? this.survey.questions : [];
605
- }
606
- loadSurvey = (t = !1) => {
607
- pt.getActiveMatchingSurveys((e) => {
608
- S(() => {
609
- if (e.length > 0) {
610
- const r = e.find((o) => o.id === this.surveyId);
611
- r && (this.survey = r, this.currentQuestionIndex = 0, this.question = r.questions[0], this.response = null, this.responses = {});
612
- }
613
- });
614
- }, t);
615
- };
616
- nextQuestion = () => {
617
- this.currentQuestionIndex < this.surveyQuestions.length - 1 && (this.currentQuestionIndex += 1), this.response = null, this.question = this.surveyQuestions[this.currentQuestionIndex];
618
- };
619
- resetStore = () => {
620
- this.survey = null, this.currentQuestionIndex = 0, this.question = null, this.response = null, this.responses = {};
621
- };
622
- setResponse = (t) => {
623
- this.response = t, this.question && (this.responses[`$survey_response_${this.question.id}`] = t);
624
- };
625
- }
626
- class X {
627
- fetchInstance;
628
- constructor(t, e, r) {
629
- this.fetchInstance = new y(t, e, void 0, r);
630
- }
631
- addBudget = async (t, e, r = null) => this.fetchInstance.post(h.BUDGETS, {
632
- amount: e,
633
- category_guid: t.guid,
634
- category_name: t.name,
635
- parent_guid: r
636
- }).then((o) => o.budget).catch((o) => {
637
- throw o;
638
- });
639
- deleteBudget = async (t) => this.fetchInstance.delete(`${h.BUDGETS}/${t}`).then((e) => e).catch((e) => {
640
- throw e;
641
- });
642
- getBudgets = async () => this.fetchInstance.get(h.BUDGETS).then((t) => t.budgets).catch((t) => t);
643
- updateBudget = async (t) => this.fetchInstance.put(`${h.BUDGETS}/${t.guid}`, t).then((e) => e.budget).catch((e) => {
644
- throw e;
645
- });
646
- }
647
- class Kt {
648
- api = new X("/", "");
649
- globalStore;
650
- alert = "";
651
- dateRange = { start: tt($()), end: J($()) };
652
- budgets = [];
653
- selectedBudget;
654
- selectedSubBudget;
655
- isDataLoaded = !1;
656
- theme = {};
657
- constructor(t) {
658
- this.globalStore = t, this.api = new X(t.endpoint, t.sessionToken, t.onError), _(this);
659
- }
660
- loadBudgetData = async () => {
661
- this.globalStore.recurringTransactionsStore.isDataLoaded || await this.globalStore.recurringTransactionsStore.loadRepeatingTransactionData(), await this.loadBudgets(), Z(
662
- () => this.detailedBudgets,
663
- (t) => {
664
- if (t) {
665
- const e = this.selectedBudget;
666
- e && (this.selectedBudget = _t(t, e.guid));
667
- const r = this.selectedSubBudget;
668
- r && r.parent_guid && (this.selectedSubBudget = ft(
669
- t,
670
- r.guid,
671
- r.parent_guid
672
- ));
206
+ ...l && {
207
+ MuiPaper: {
208
+ styleOverrides: {
209
+ rounded: { borderRadius: `${l}px` }
673
210
  }
674
211
  }
675
- );
676
- };
677
- get detailedBudgets() {
678
- return O(
679
- this.budgets.filter(
680
- (t) => t.category_guid !== E.INCOME && t.category_guid !== E.TRANSFER && t.category_guid !== E.INVESTMENTS
681
- ),
682
- this.globalStore.categoryStore.detailedCategories,
683
- this.globalStore.copyStore.copy.budgets,
684
- this.theme
685
- ).sort((t, e) => t.percentage > e.percentage ? -1 : t.percentage < e.percentage ? 1 : 0);
686
- }
687
- // TODO: Replace this with income from recurring transactions. Income budgets are deprecated.
688
- get incomeBudget() {
689
- return O(
690
- this.budgets.filter((r) => !r.parent_guid),
691
- this.globalStore.categoryStore.detailedCategories,
692
- this.globalStore.copyStore.copy.budgets,
693
- this.theme
694
- ).reduce(
695
- (r, o) => o.category_guid !== E.INCOME ? r : !r || o.percentage > r.percentage ? o : r,
696
- void 0
697
- )?.amount;
698
- }
699
- get unbudgetedCategories() {
700
- return this.globalStore.categoryStore.spendCategories.filter(
701
- (t) => !this.detailedBudgets.find((e) => e.category_guid === t.guid)
702
- );
703
- }
704
- get totalBudgeted() {
705
- return this.detailedBudgets.reduce((t, e) => t + e.amount, 0);
706
- }
707
- addBudget = async (t, e, r = null) => {
708
- try {
709
- const o = await this.api.addBudget(t, e, r);
710
- S(() => {
711
- this.budgets.push(o);
712
- });
713
- } catch (o) {
714
- console.error(`Error adding budget: ${o}`);
715
- }
716
- };
717
- deleteBudget = async (t) => {
718
- try {
719
- await this.api.deleteBudget(t), S(() => {
720
- const e = this.budgets.findIndex((r) => r.guid === t);
721
- e >= 0 && this.budgets.splice(e, 1);
722
- });
723
- } catch (e) {
724
- console.error(`Error deleting budget: ${e}`);
725
- }
726
- };
727
- loadBudgets = async () => {
728
- try {
729
- const t = await this.api.getBudgets();
730
- this.setBudgets(t);
731
- } catch (t) {
732
- throw console.error(`Error occurred while loading budgets: ${t}`), t;
733
- }
734
- };
735
- setAlert = (t) => this.alert = t;
736
- setBudgets = (t) => {
737
- this.budgets = t, this.isDataLoaded = !0;
738
- };
739
- setDateRange = (t) => this.dateRange = t;
740
- setSelectedBudget = (t) => this.selectedBudget = t;
741
- setSelectedSubBudget = (t) => this.selectedSubBudget = t;
742
- setTheme = (t) => this.theme = t;
743
- /**
744
- * Recalculate budget by using the average amount from top-level categories
745
- * @param categories Detailed categories
746
- */
747
- recalculateBudgets = async (t) => {
748
- try {
749
- for (const r of t) {
750
- const o = this.budgets.find((a) => a.category_guid === r.guid);
751
- o ? await this.api.updateBudget({
752
- ...o,
753
- amount: r.totalAverageAmount
754
- }) : await this.api.addBudget(r, r.totalAverageAmount);
755
- }
756
- const e = this.budgets.filter(
757
- (r) => !t.find((o) => o.guid === r.category_guid)
758
- );
759
- for (const r of e)
760
- await this.api.deleteBudget(r.guid);
761
- return await this.loadBudgets(), { data: this.budgets, isSuccess: !0 };
762
- } catch (e) {
763
- return console.error("error recalculating budgets", e), { data: [], isSuccess: !1 };
764
- }
765
- };
766
- updateBudget = async (t) => {
767
- try {
768
- const e = await this.api.updateBudget(t);
769
- S(() => {
770
- const r = this.budgets.findIndex((o) => o.guid === t.guid);
771
- r >= 0 && (this.budgets[r] = e);
772
- });
773
- } catch (e) {
774
- console.error(`Error updating budget: ${e}`);
775
- }
776
- };
777
- }
778
- var zt = /* @__PURE__ */ ((s) => (s[s.UNKNOWN = 0] = "UNKNOWN", s[s.CORRECT = 1] = "CORRECT", s[s.INCORRECT = 2] = "INCORRECT", s))(zt || {}), Vt = /* @__PURE__ */ ((s) => (s.Missed = "Missed", s.Paid = "Paid", s.Upcoming = "Upcoming expense", s.Income = "Income", s))(Vt || {}), Zt = /* @__PURE__ */ ((s) => (s[s.Unknown = 0] = "Unknown", s[s.Subscription = 1] = "Subscription", s[s.Bill = 2] = "Bill", s))(Zt || {}), Jt = /* @__PURE__ */ ((s) => (s.Desktop = "Desktop", s.Mobile = "Mobile", s))(Jt || {});
779
- class j {
780
- fetchInstance;
781
- constructor(t, e, r) {
782
- this.fetchInstance = new y(t, e, void 0, r);
783
- }
784
- createSupportTicket = async (t) => this.fetchInstance.post(h.SUPPORT_TICKETS, t).then((e) => e);
785
- }
786
- const te = (s, t) => s.guid === "general" || s.guid === "insights" ? !0 : s.flags ? s.flags.every((e) => t[e]) : !1, ee = (s, t) => {
787
- const e = [];
788
- for (const r of at) {
789
- const o = t[r.guid];
790
- if (!o) continue;
791
- const a = {
792
- ...r,
793
- title: o.label,
794
- topics: r.topics.map(({ topicKey: l }, c) => ({
795
- topicKey: l,
796
- label: o.topics[c]
797
- }))
798
- };
799
- te(a, s) && e.push(a);
800
- }
801
- return e;
802
- };
803
- class se {
804
- alert = { message: "", severity: void 0 };
805
- api = new j("/", "");
806
- appConfig;
807
- globalStore;
808
- isLoading = !1;
809
- constructor(t) {
810
- this.globalStore = t, this.api = new j(t.endpoint, t.sessionToken, t.onError), _(this);
811
- }
812
- createSupportTicket = async (t) => {
813
- try {
814
- this.isLoading = !0, await this.api.createSupportTicket(t), this.setAlert(this.copy.request_support_submit_success_message, "success");
815
- } catch (e) {
816
- this.setAlert(this.copy.request_support_submit_failure_message, "error"), console.error("Error occurred while submitting:", e);
817
- } finally {
818
- this.isLoading = !1;
819
- }
820
- };
821
- setAlert = (t, e = void 0) => this.alert = { message: t, severity: e };
822
- get copy() {
823
- return this.globalStore.copyStore.copy.help;
824
- }
825
- get helpCategories() {
826
- const { client_communication_profile: t, client_profile: e } = this.globalStore.appDataStore.appData, {
827
- help: { category_list: r }
828
- } = this.globalStore.copyStore.copy;
829
- return ee(
830
- {
831
- ...t,
832
- ...e,
833
- ...this.globalStore.appConfig.config
834
- },
835
- r
836
- );
837
- }
838
- }
839
- class K {
840
- fetchInstance;
841
- constructor(t, e, r) {
842
- this.fetchInstance = new y(t, e, void 0, r);
843
- }
844
- getHoldings = async () => this.fetchInstance.get(h.HOLDINGS).then((t) => t.holdings);
845
- updateHoldings = async (t) => this.fetchInstance.put(`${h.HOLDINGS}/${t.guid}`, t).then((e) => e.holding);
846
- }
847
- class re {
848
- analysisType = bt.Stocks;
849
- api = new K("/", "");
850
- holdings = [];
851
- holdingsLoaded = !1;
852
- globalStore;
853
- showConnectionsWidget = !1;
854
- constructor(t) {
855
- this.globalStore = t, this.api = new K(t.endpoint, t.sessionToken, t.onError), _(this);
856
- }
857
- get analysisChartData() {
858
- return wt(Ct(this.visibleHoldings), this.analysisType);
859
- }
860
- get analysisDetails() {
861
- return xt(this.visibleHoldings)[this.analysisType] || {};
862
- }
863
- get visibleHoldings() {
864
- return this.holdings.filter(
865
- (t) => this.globalStore.globalUiStore.selectedAccountGuids.includes(t.account_guid)
866
- );
867
- }
868
- setHoldings = (t) => {
869
- this.holdings = t, this.holdingsLoaded = !0;
870
- };
871
- setShowConnectionsWidget = (t) => {
872
- this.showConnectionsWidget = t;
873
- };
874
- loadHoldings = async () => {
875
- try {
876
- const t = await this.api.getHoldings();
877
- this.setHoldings(t);
878
- } catch (t) {
879
- console.error(`Error occured while getting holdings: ${t}`);
880
- }
881
- };
882
- setAnalysisType = (t) => {
883
- this.analysisType = t;
884
- };
885
- updateHoldings = async (t) => {
886
- this.holdingsLoaded = !1;
887
- try {
888
- const e = await this.api.updateHoldings(t), r = this.holdings.findIndex(({ guid: o }) => o === t.guid);
889
- if (r >= 0) {
890
- const o = [...this.holdings];
891
- o[r] = e, S(() => {
892
- this.holdings = o, this.holdingsLoaded = !0;
893
- });
894
- }
895
- } catch (e) {
896
- console.error(`Error occurred while updating holding: ${e}`);
897
212
  }
898
213
  };
899
- }
900
- const z = {
901
- clientConfig: {},
902
- clientStyleProfile: {},
903
- config: {
904
- assets_prefix: "/assets",
905
- bundle: "widgetLoader",
906
- client_guid: "",
907
- dashboard_accounts_index: 6,
908
- dashboard_accounts_location: 0,
909
- dashboard_activity_index: 2,
910
- dashboard_activity_location: 0,
911
- dashboard_budgets_index: 5,
912
- dashboard_budgets_location: 1,
913
- dashboard_cash_flow_index: 0,
914
- dashboard_cash_flow_location: 0,
915
- dashboard_connect_index: 7,
916
- dashboard_connect_location: 1,
917
- dashboard_insights_index: 3,
918
- dashboard_insights_location: 1,
919
- dashboard_spending_index: 1,
920
- dashboard_spending_location: 1,
921
- dashboard_survey_index: 8,
922
- dashboard_survey_location: 1,
923
- dashboard_trends_index: 4,
924
- dashboard_trends_location: 0,
925
- display_account_number_in_accounts: !0,
926
- display_add_manual_transaction_in_transactions: !0,
927
- display_available_balance_in_accounts: !0,
928
- display_email_edit_field_in_settings: !0,
929
- display_mobile_devices_in_settings: !0,
930
- display_notification_settings_in_settings: !0,
931
- display_only_external_accounts_in_accounts: !1,
932
- display_password_options_in_settings: !0,
933
- display_sms_edit_field_in_settings: !0,
934
- display_terms_and_conditions: !0,
935
- display_user_profile_in_settings: !0,
936
- display_user_transaction_rules_in_settings: !0,
937
- enable_add_account_in_zero_state: !0,
938
- enable_aggregation_prompts: !0,
939
- enable_external_accounts_in_goals_widget: !0,
940
- enable_funds_transfers_in_goals_widget: !1,
941
- enable_manual_accounts: !0,
942
- enable_mark_account_closed_for_held_accounts: !0,
943
- enable_mark_account_duplicate_for_held_accounts: !0,
944
- enable_renaming_home_accounts: !0,
945
- enable_support_requests: !1,
946
- language: "en-US",
947
- product_name: "Money Dashboard",
948
- session_token: "",
949
- show_account_nicknames_in_master: !1,
950
- show_accounts_widget_in_master: !0,
951
- show_budgets_widget_in_master: !0,
952
- show_carousel_card_border_in_pulse_micro_widget: !1,
953
- show_cash_flow_widget_in_master: !0,
954
- show_connections_widget_in_master: !0,
955
- show_cta_colocated_with_text_in_pulse_micro_widget: !0,
956
- show_debts_widget_in_master: !0,
957
- show_finstrong_widget_in_master: !0,
958
- show_full_experience_link_in_pulse_micro_widget: !1,
959
- show_full_experience_link_in_pulse_mini_widget: !1,
960
- show_goals_widget_in_master: !0,
961
- show_help_widget_in_master: !0,
962
- show_horizontal_padding_in_pulse_micro_widget: !0,
963
- show_icon_in_pulse_micro_widget: !0,
964
- show_insights_widget_in_master: !0,
965
- show_investments_widget_in_master: !1,
966
- show_mx_branding: !0,
967
- show_navigation_controls_in_pulse_micro_widget: !0,
968
- show_net_worth_widget_in_master: !0,
969
- show_notifications_widget_in_master: !0,
970
- show_recurring_transactions_widget_in_master: !0,
971
- show_settings_widget_in_master: !0,
972
- show_spending_plan_widget_in_master: !1,
973
- show_spending_widget_in_master: !0,
974
- show_transactions_widget_in_master: !0,
975
- show_trends_widget_in_master: !0,
976
- type: "money-dashboard",
977
- websocket: {
978
- hmac: "",
979
- token: "",
980
- url: ""
981
- },
982
- widgets_display_name: "Money Dashboard "
983
- },
984
- honeyBadgerPublicKey: "",
985
- options: {
986
- assets_prefix: "/assets",
987
- brokaw_auth: {
988
- token: "",
989
- hmac: "",
990
- url: ""
991
- },
992
- brokaw_websocket_url: "",
993
- bundle: "widgetLoader",
994
- custom_copy_namespace: "",
995
- language: "en-US",
996
- product_name: "Master Widget",
997
- session_token: "",
998
- subtype: "master",
999
- type: "money_dashboard"
1000
- },
1001
- postHogPublicKey: "phc_1fVYJICC69TpW4wagp9o2XqQ8E7X98cAmcR5psSpfkE",
1002
- userFeatures: []
214
+ return { typography: a, palette: t, components: f };
1003
215
  };
1004
- class V {
1005
- fetchInstance;
1006
- constructor(t, e, r) {
1007
- this.fetchInstance = new y(t, e, void 0, r);
1008
- }
1009
- getAppData = async () => this.fetchInstance.get(h.APP_DATA).then((t) => t);
1010
- }
1011
- class oe {
1012
- globalStore;
1013
- api = new V("/", "");
1014
- bannerApi = new H("/");
1015
- appData = {};
1016
- isAppDataLoaded = !1;
1017
- banner = {};
1018
- constructor(t) {
1019
- this.globalStore = t, this.api = new V(t.endpoint, t.sessionToken, t.onError), _(this);
1020
- }
1021
- get appConfig() {
1022
- return this.globalStore.appConfig;
1023
- }
1024
- get clientCommunicationProfile() {
1025
- return this.appData.client_communication_profile;
1026
- }
1027
- get clientInsightProfile() {
1028
- return this.appData.client_insight_profile;
1029
- }
1030
- get user() {
1031
- return this.appData.user;
1032
- }
1033
- get userCommunicationProfile() {
1034
- return this.appData.user_communication_profile;
1035
- }
1036
- get userProfile() {
1037
- return this.appData.user_profile;
1038
- }
1039
- setAppData = (t) => {
1040
- this.appData = t, this.bannerApi = new H(t.address?.bullseye || "/"), this.isAppDataLoaded = !0;
1041
- };
1042
- loadAppData = async () => {
1043
- try {
1044
- const t = await this.api.getAppData();
1045
- this.setAppData(t);
1046
- } catch (t) {
1047
- console.error(`Error loading app data: ${t}`);
1048
- }
1049
- };
1050
- loadBanner = async () => {
1051
- try {
1052
- const t = this.user?.guid ?? null, e = t ? await this.bannerApi.getBanner(t) : {};
1053
- S(() => {
1054
- this.banner = e;
1055
- });
1056
- } catch (t) {
1057
- console.error(`Error loading banner: ${t}`);
1058
- }
1059
- };
1060
- setUser = (t) => this.appData.user = t;
1061
- setUserCommunicationProfile = (t) => this.appData.user_communication_profile = t;
1062
- setUserProfile = (t) => this.appData.user_profile = t;
1063
- }
1064
- class ae {
1065
- globalStore;
1066
- widgetApi = new W("/", "");
1067
- constructor(t) {
1068
- this.globalStore = t, this.widgetApi = new W(t.endpoint, t.sessionToken), _(this);
1069
- }
1070
- loadWidget = async ({ widget: t = "connect_widget", mode: e = "light", ...r }) => await this.widgetApi.requestWidgetUrl({
1071
- widget_url: { widget_type: t, color_scheme: e, ...r }
1072
- });
1073
- }
1074
- class ie {
1075
- globalStore;
1076
- accountFilterMap = /* @__PURE__ */ new Map();
1077
- displayedDate = /* @__PURE__ */ new Date();
1078
- displayedDateRange = {
1079
- start: tt(this.displayedDate),
1080
- end: J(this.displayedDate)
1081
- };
1082
- constructor(t) {
1083
- _(this), this.globalStore = t, Z(
1084
- () => this.globalStore.accountStore.visibleAccounts,
1085
- (e) => {
1086
- this.populateAccountFilterMap(e);
1087
- }
1088
- );
1089
- }
1090
- get allSelectedAccounts() {
1091
- return this.globalStore.accountStore.detailedAccounts.filter(
1092
- (t) => !t.is_excluded_from_accounts
1093
- );
1094
- }
1095
- get selectedAccounts() {
1096
- return this.globalStore.accountStore.visibleAccounts.filter(
1097
- (t) => !t.is_excluded_from_accounts
1098
- );
1099
- }
1100
- get selectedAccountGuids() {
1101
- return this.selectedAccounts.map((t) => t.guid);
1102
- }
1103
- get isCopyLoaded() {
1104
- return this.globalStore.copyStore.isInitialized;
1105
- }
1106
- get isConfigLoaded() {
1107
- return this.globalStore.appDataStore.isAppDataLoaded;
1108
- }
1109
- get areUserFeaturesLoaded() {
1110
- return this.globalStore.userStore.userFeaturesLoaded;
1111
- }
1112
- get isInitialized() {
1113
- return this.isCopyLoaded && this.isConfigLoaded && this.areUserFeaturesLoaded;
1114
- }
1115
- populateAccountFilterMap = (t) => {
1116
- t && t.forEach((e) => {
1117
- this.accountFilterMap.set(e.guid, !e.is_excluded_from_accounts);
1118
- });
1119
- };
1120
- resetAccountFilterMap = () => {
1121
- this.accountFilterMap.clear(), this.populateAccountFilterMap(this.globalStore.accountStore.visibleAccounts);
1122
- };
1123
- updateAccountFilterMap = (t, e) => {
1124
- this.accountFilterMap.set(t, e);
1125
- };
1126
- setDisplayedDate = (t, e) => {
1127
- this.displayedDate = e, this.displayedDateRange = {
1128
- start: t,
1129
- end: e
1130
- };
1131
- };
1132
- get shouldDisableNextDate() {
1133
- const t = T(this.displayedDate), e = T(It(/* @__PURE__ */ new Date(), 1));
1134
- return t === e;
1135
- }
1136
- get shouldDisablePrevDate() {
1137
- const t = T(this.displayedDate), e = T(/* @__PURE__ */ new Date());
1138
- return t === e;
1139
- }
1140
- }
1141
- class ne {
1142
- globalStore;
1143
- api = new G("/", "");
1144
- userFeatures = [];
1145
- userFeaturesLoaded = !1;
1146
- constructor(t) {
1147
- this.globalStore = t, this.api = new G(t.endpoint, t.sessionToken, t.onError), _(this);
1148
- }
1149
- get userProfile() {
1150
- return this.globalStore.appDataStore.userProfile;
1151
- }
1152
- get user() {
1153
- return this.globalStore.appDataStore.user;
1154
- }
1155
- setUserFeatures = (t) => {
1156
- this.userFeatures = t, this.userFeaturesLoaded = !0;
1157
- };
1158
- loadUserFeatures = async () => {
1159
- try {
1160
- const t = await this.api.getUserFeatures();
1161
- this.setUserFeatures(t);
1162
- } catch (t) {
1163
- console.error(`Error occurred while loading user features: ${t}`);
1164
- }
1165
- };
1166
- updateUser = async (t) => {
1167
- try {
1168
- const e = await this.api.updateUser(t);
1169
- this.globalStore.appDataStore.setUser(e);
1170
- } catch (e) {
1171
- console.error(`Error updating User: ${e}`);
1172
- }
1173
- };
1174
- updateUserProfile = async (t) => {
1175
- try {
1176
- const e = await this.api.updateUserProfile(t);
1177
- this.globalStore.appDataStore.setUserProfile(e);
1178
- } catch (e) {
1179
- console.error(`Error occurred while updating user profile: ${e}`);
1180
- }
1181
- };
1182
- }
1183
- class Ke {
1184
- // Global properties
1185
- appConfig = z;
1186
- endpoint = "/";
1187
- sessionToken = "";
1188
- onError;
1189
- onStoreUpdate;
1190
- // Data Stores
1191
- accountStore;
1192
- appDataStore;
1193
- analyticsStore;
1194
- beatStore;
1195
- budgetsStore;
1196
- cashflowStore;
1197
- categoryStore;
1198
- connectStore;
1199
- copyStore;
1200
- debtsStore;
1201
- finstrongStore;
1202
- goalStore;
1203
- helpStore;
1204
- holdingStore;
1205
- merchantStore;
1206
- netWorthStore;
1207
- notificationStore;
1208
- recurringTransactionsStore;
1209
- settingsStore;
1210
- transactionStore;
1211
- trendsStore;
1212
- userStore;
1213
- // UI Stores
1214
- globalUiStore;
1215
- constructor(t = z, e = "/", r, o) {
1216
- this.appConfig = t, this.endpoint = e, this.sessionToken = t.options.session_token ?? "", this.onError = r, this.onStoreUpdate = o, this.accountStore = new gt(this), this.appDataStore = new oe(this), this.analyticsStore = new jt(this), this.beatStore = new mt(this), this.budgetsStore = new Kt(this), this.cashflowStore = new it(this), this.categoryStore = new lt(this), this.connectStore = new ae(this), this.copyStore = new Xt(this), this.debtsStore = new yt(this), this.finstrongStore = new St(this), this.goalStore = new ut(this), this.helpStore = new se(this), this.holdingStore = new re(this), this.merchantStore = new At(this), this.netWorthStore = new Dt(this), this.notificationStore = new vt(this), this.recurringTransactionsStore = new Tt(this), this.settingsStore = new Et(this), this.transactionStore = new dt(this), this.trendsStore = new Bt(this), this.userStore = new ne(this), this.globalUiStore = new ie(this), _(this), ht(() => {
1217
- const { transactions: a } = this.transactionStore;
1218
- this.emitUpdate({
1219
- transactions: a
1220
- });
1221
- });
1222
- }
1223
- get isInitialized() {
1224
- return this.globalUiStore.isInitialized;
1225
- }
1226
- // emits change triggered in the autorun
1227
- emitUpdate = (t) => {
1228
- this.onStoreUpdate?.(t);
1229
- };
1230
- loadConfigData = async () => {
1231
- await Promise.all([
1232
- // Load copy, config and user data
1233
- this.copyStore.loadCopy(),
1234
- this.appDataStore.loadAppData(),
1235
- this.userStore.loadUserFeatures()
1236
- ]);
1237
- };
1238
- loadData = async ({
1239
- accounts: t,
1240
- appData: e,
1241
- associatedBeats: r,
1242
- categories: o,
1243
- institutions: a,
1244
- transactionRules: l,
1245
- transactions: c,
1246
- userFeatures: d
1247
- } = {}) => {
1248
- (!e || !d) && await this.loadConfigData(), e && this.appDataStore.setAppData(e), d && this.userStore.setUserFeatures(d), t && (await this.accountStore.loadMembers(), a && this.accountStore.setInstitutions(a), this.accountStore.setAccounts(t)), r && this.transactionStore.setAssociatedBeats(r), o && this.categoryStore.setCategories(o), c && this.transactionStore.setTransactions(c), l && this.transactionStore.setTransactionRules(l);
1249
- };
1250
- }
1251
216
  export {
1252
- hs as ANALYTICS_EVENTS,
1253
- Qs as AccountIcon,
1254
- Xs as AccountIconVariants,
1255
- nr as AccountNotificationTypes,
1256
- js as AccountSubType,
1257
- Ks as AccountType,
1258
- zs as AccountTypeName,
1259
- pr as AnalyticsApi,
1260
- h as ApiEndpoints,
1261
- H as BannerApi,
1262
- Xe as BarChart,
1263
- Sr as BeatApi,
1264
- cr as BudgetNotificationTypes,
1265
- Ze as Calendar,
1266
- Je as CalendarSelectionTypes,
1267
- wr as CategoryApi,
1268
- xr as CategoryColors,
1269
- Ar as CategoryGuidToName,
1270
- E as CategoryGuids,
1271
- Dr as CategoryIcon,
1272
- Tr as ConnectCard,
1273
- Lr as ConnectDrawer,
1274
- Vs as ConnectionStatus,
1275
- Zs as ConnectionStatusEnums,
1276
- Rr as CurrencyCodes,
1277
- rs as CurrencyInput,
1278
- Wr as CurrencyText,
1279
- _s as DATE_FORMATS_INTL,
1280
- nt as DEFAULT_DONUT_SIZE,
1281
- ct as DEFAULT_STROKE_WIDTH,
1282
- as as DataRow,
1283
- gs as DateRangeSelector,
1284
- fs as Dialog,
1285
- Cs as Drawer,
1286
- Yr as EmptyState,
1287
- As as ErrorBoundary,
1288
- Js as ErrorStatuses,
1289
- Vt as ExpenseStatus,
1290
- y as Fetch,
1291
- is as Frequency,
1292
- Ur as GlobalAccountFilter,
1293
- R as GlobalCopyApi,
1294
- Xt as GlobalCopyStore,
1295
- Xr as GlobalDataContext,
1296
- jr as GlobalDataProvider,
1297
- Ke as GlobalStore,
1298
- Br as GoalType,
1299
- Oo as INCOME_ACCOUNT_TYPES,
1300
- vs as IconBacking,
1301
- Ts as InformationTooltip,
1302
- dr as InsightNotificationTypes,
1303
- Ut as IterationItemTypes,
1304
- We as LOADING_STATUS,
1305
- Go as ListItemAction,
1306
- Ro as ListItemRow,
1307
- ts as ListItemWrapper,
1308
- Is as Loader,
1309
- Ye as LocalizedCopyApi,
1310
- Ir as MetaType,
1311
- tr as MfaStatuses,
1312
- Ms as MicroWidgetContainer,
1313
- Us as MiniWidgetContainer,
1314
- je as MultiSegmentDonut,
1315
- er as NonConnectedStatuses,
1316
- No as NotificationApi,
1317
- lr as NotificationTypes,
1318
- ys as ORDINAL_DATE_FORMAT,
1319
- Ss as ORDINAL_MONTH_DAY_YEAR_FORMAT,
1320
- Po as PAYMENT_ACCOUNT_TYPES,
1321
- vr as PaymentCategories,
1322
- Lt as PlanTypes,
1323
- sr as ProcessingStatuses,
1324
- rr as PropertyType,
1325
- or as PropertyTypeName,
1326
- Ge as RECURRENCE_COPY,
1327
- ns as RecurrenceStatus,
1328
- cs as RecurrenceType,
1329
- Mt as RecurrenceTypes,
1330
- ds as RepeatingType,
1331
- Os as ResponsiveButton,
1332
- Fo as SPENDING_ACCOUNT_TYPES,
1333
- Zt as ScheduledPaymentTypes,
1334
- Qe as ScheduledPaymentsApi,
1335
- Jt as ScreenSize,
1336
- qo as SearchBox,
1337
- ls as Select,
1338
- Fs as SelectionBox,
1339
- Rs as SingleSegmentDonut,
1340
- Lo as Sizes,
1341
- Gs as StatusBar,
1342
- ar as StatusName,
1343
- Uo as TOUCH_TARGET,
1344
- qs as TabContentContainer,
1345
- ur as ToggleButtonListItem,
1346
- hr as ToggleListItem,
1347
- Nr as TrackType,
1348
- es as TransactionStatus,
1349
- ot as TransactionType,
1350
- G as UserApi,
1351
- ne as UserStore,
1352
- zt as UserVerification,
1353
- W as WidgetApi,
1354
- ps as WidgetContainer,
1355
- Kr as WidgetContainerContext,
1356
- zr as WidgetContainerProvider,
1357
- mr as analyticsSession,
1358
- Qo as buildDynamicCopy,
1359
- Xo as buildPluralCopy,
1360
- $r as formatCurrency,
1361
- bs as formatDate,
1362
- Or as formatOrdinal,
1363
- Pr as formatPercentage,
1364
- zo as fromTimestampToMonthYear,
1365
- Do as getCategory,
1366
- vo as getCategoryTotalsByParent,
1367
- qe as getClientTheme,
1368
- Fr as getCurrencyCodes,
1369
- Eo as getDetailedCategory,
1370
- To as getDetailedSubCategory,
1371
- jo as getLocale,
1372
- Bo as isIncome,
1373
- Hr as isValidNumber,
1374
- Zo as useAccountDisplayName,
1375
- Vr as useAccountStore,
1376
- Zr as useAppConfig,
1377
- Jr as useBudgetsStore,
1378
- to as useCashflowStore,
1379
- eo as useCategoryStore,
1380
- _r as useCombineEvents,
1381
- fr as useCombinePageviews,
1382
- so as useDebtStore,
1383
- ro as useError,
1384
- oo as useEvent,
1385
- ao as useFinstrongStore,
1386
- io as useGlobalCopyStore,
1387
- no as useGlobalStore,
1388
- co as useGlobalUiStore,
1389
- lo as useGoalStore,
1390
- uo as useHelpStore,
1391
- ho as useHoldingStore,
1392
- ta as useInsightsEnabled,
1393
- go as useLoad,
1394
- po as useMerchantStore,
1395
- mo as useNetWorthStore,
1396
- _o as useNotificationStore,
1397
- fo as usePageView,
1398
- yo as useRecurringTransactionsStore,
1399
- sa as useScreenSize,
1400
- So as useSettingsStore,
1401
- bo as useTransactionStore,
1402
- wo as useTrendsStore,
1403
- Co as useUserStore,
1404
- xo as useWidgetContainerProvider,
1405
- oa as useWidgetLoadTimer
217
+ qr as ANALYTICS_EVENTS,
218
+ rr as Calendar,
219
+ er as CalendarSelectionTypes,
220
+ Fr as ConnectCard,
221
+ Hr as ConnectDrawer,
222
+ or as CurrencyDialog,
223
+ ar as CurrencyInput,
224
+ jr as CurrencyText,
225
+ _ as DEFAULT_DONUT_SIZE,
226
+ v as DEFAULT_STROKE_WIDTH,
227
+ nr as DataRow,
228
+ lr as DateRangeSelector,
229
+ fr as Dialog,
230
+ yr as Donut,
231
+ xr as Drawer,
232
+ Kr as EmptyState,
233
+ Jr as Error,
234
+ hr as ErrorBoundary,
235
+ zr as GlobalAccountFilter,
236
+ ee as GlobalDataContext,
237
+ oe as GlobalDataProvider,
238
+ Y as GlobalStore,
239
+ Pe as INCOME_ACCOUNT_TYPES,
240
+ Cr as IconBacking,
241
+ vr as InformationTooltip,
242
+ W as LOADING_STATUS,
243
+ We as ListItemAction,
244
+ Ge as ListItemRow,
245
+ Re as ListItemWrapper,
246
+ br as Loader,
247
+ Dr as MicroWidgetContainer,
248
+ Ir as MiniWidgetContainer,
249
+ U as MultiSegmentDonut,
250
+ we as PAYMENT_ACCOUNT_TYPES,
251
+ L as RECURRENCE_COPY,
252
+ wr as ResponsiveButton,
253
+ Ne as SPENDING_ACCOUNT_TYPES,
254
+ Ye as SearchBox,
255
+ ir as Select,
256
+ Lr as SelectionBox,
257
+ Mr as SingleSegmentDonut,
258
+ $e as Sizes,
259
+ Ur as StatusBar,
260
+ He as TOUCH_TARGET,
261
+ Br as TabContentContainer,
262
+ je as ToggleButtonListItem,
263
+ Ve as ToggleListItem,
264
+ mr as WidgetContainer,
265
+ te as WidgetContainerContext,
266
+ ae as WidgetContainerProvider,
267
+ Ze as analyticsSession,
268
+ $ as buildDynamicCopy,
269
+ H as buildPluralCopy,
270
+ j as formatCurrency,
271
+ V as formatOrdinal,
272
+ K as formatPercentage,
273
+ Z as generateEqualIntervals,
274
+ G as getClientPaletteOptions,
275
+ B as getClientTheme,
276
+ J as getCurrencyCodes,
277
+ X as getPluralRules,
278
+ ro as useAccountDisplayName,
279
+ se as useAccountStore,
280
+ ne as useAppConfig,
281
+ ie as useBudgetsStore,
282
+ ue as useCashflowStore,
283
+ le as useCategoryStore,
284
+ Je as useCombineEvents,
285
+ Xe as useCombinePageviews,
286
+ me as useDebtStore,
287
+ de as useError,
288
+ ce as useEvent,
289
+ fe as useFinstrongStore,
290
+ pe as useGlobalCopyStore,
291
+ ye as useGlobalStore,
292
+ ge as useGlobalUiStore,
293
+ xe as useGoalStore,
294
+ Ee as useHelpStore,
295
+ he as useHoldingStore,
296
+ oo as useInsightsEnabled,
297
+ Se as useLoad,
298
+ Ce as useMerchantStore,
299
+ _e as useNetWorthStore,
300
+ ve as useNotificationStore,
301
+ ke as usePageView,
302
+ N as usePrevious,
303
+ be as useRecurringTransactionsStore,
304
+ ao as useScreenSize,
305
+ Oe as useSettingsStore,
306
+ De as useTransactionStore,
307
+ Te as useTrendsStore,
308
+ Ie as useUserStore,
309
+ Ae as useWidgetContainerProvider,
310
+ dr as useWidgetHeaderStyles,
311
+ no as useWidgetLoadTimer
1406
312
  };