@mx-cartographer/experiences 8.0.0-alpha.test2 → 8.0.0-alpha.v2

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