@mx-cartographer/experiences 8.0.0-alpha.bb3 → 8.0.0-alpha.sms1

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 (182) hide show
  1. package/CHANGELOG.md +128 -1
  2. package/dist/{Account-Bxw0_4FU.mjs → Account-BDXA6PWh.mjs} +1 -1
  3. package/dist/{AccountDetailsContent-CAM9y39M.mjs → AccountDetailsContent-CUztd3-b.mjs} +87 -83
  4. package/dist/AccountDetailsHeader-i3KFhNuo.mjs +87 -0
  5. package/dist/{AccountFields-C9FlatNb.mjs → AccountFields-QZspYAji.mjs} +6 -6
  6. package/dist/{AccountListItem-JFMZROh7.mjs → AccountListItem-DX5upmCS.mjs} +5 -5
  7. package/dist/{AccountStore-BgNOyMdp.mjs → AccountStore-BcnDpyLL.mjs} +19 -8
  8. package/dist/{Accounts-BRf_YeTf.mjs → Accounts-DXfZotRC.mjs} +1 -1
  9. package/dist/{BeatApi-DhJpgCLz.mjs → BeatApi-De2IaqH2.mjs} +1 -1
  10. package/dist/{BeatStore-IBnXd4YK.mjs → BeatStore-D_NYuBSz.mjs} +1 -1
  11. package/dist/{BudgetUtil-B2ZXyw-g.mjs → BudgetUtil-Df2nII9u.mjs} +2 -2
  12. package/dist/{CategorySelectorDrawer-DUe4lH5-.mjs → CategorySelectorDrawer-DqJK_rrL.mjs} +23 -21
  13. package/dist/{CategoryStore-yHI0hWmK.mjs → CategoryStore-DTgyAMM7.mjs} +12 -10
  14. package/dist/{CategoryUtil-pZRIYOgN.mjs → CategoryUtil-C5cR-nfQ.mjs} +1 -1
  15. package/dist/{ConnectDrawer-BQNs-hjk.mjs → ConnectDrawer-BIbTqYOH.mjs} +2 -2
  16. package/dist/{ConnectionsDrawer-ByGQE7D5.mjs → ConnectionsDrawer-BFfY3_zB.mjs} +3 -3
  17. package/dist/{CurrencyInput-DUsQbkXb.mjs → CurrencyInput-BFKcs-_K.mjs} +2 -2
  18. package/dist/{CurrencyText-kyC1aseI.mjs → CurrencyText-Dr0EZ7bp.mjs} +1 -1
  19. package/dist/{DateUtil-BcuH7ErC.mjs → DateUtil-CBdcsyuk.mjs} +3 -3
  20. package/dist/{DebtsStore-C9bblOgW.mjs → DebtsStore-BbJB0nmu.mjs} +1 -1
  21. package/dist/{Dialog-CWW597AF.mjs → Dialog-BPTr3qHE.mjs} +2 -2
  22. package/dist/{Donut-oaQFlbit.mjs → Donut-Dmy3JTWd.mjs} +12 -12
  23. package/dist/Drawer-BEtCk82g.mjs +163 -0
  24. package/dist/{EmptyState-DA_lfRBv.mjs → EmptyState-DoxNUae-.mjs} +24 -22
  25. package/dist/{ExportCsvAction-sX8Rg4Ov.mjs → ExportCsvAction-DzTrtPzk.mjs} +3 -3
  26. package/dist/{Fetch-87LIQbEA.mjs → Fetch-DecPFeGU.mjs} +24 -22
  27. package/dist/FinstrongStore-BIrX0Xg2.mjs +451 -0
  28. package/dist/{GoalStore-D-aB35SY.mjs → GoalStore-DpWY3gVb.mjs} +5 -5
  29. package/dist/{Help-B6dIcujh.mjs → Help-BnPXM_N2.mjs} +2 -2
  30. package/dist/LineChart-bc1D9xBE.mjs +581 -0
  31. package/dist/{ListItemAction-DHa3KJPs.mjs → ListItemAction-uobBrm_a.mjs} +10 -10
  32. package/dist/{ManageIncome-1s_q5W4X.mjs → ManageIncome-NpXHhO1n.mjs} +177 -174
  33. package/dist/{MerchantStore-DrFvsUyy.mjs → MerchantStore-WvZ4gnQe.mjs} +1 -1
  34. package/dist/{MicroWidgetContainer-DpeqN9n3.mjs → MicroWidgetContainer-DEiRnYVa.mjs} +1 -1
  35. package/dist/{MiniWidgetContainer-D0gfmbaF.mjs → MiniWidgetContainer-CmXpTylX.mjs} +1 -1
  36. package/dist/{NetWorthStore-DCsTZpuS.mjs → NetWorthStore-lsuhEpn6.mjs} +2 -2
  37. package/dist/{NotificationSettings-DqrkNMod.mjs → NotificationSettings-CNmJWVeI.mjs} +241 -238
  38. package/dist/{NotificationStore-BxP_P2dA.mjs → NotificationStore-Ck2KdNmT.mjs} +10 -10
  39. package/dist/{NumberFormatting-Buh7u8Oi.mjs → NumberFormatting-DjTD0t3W.mjs} +9 -9
  40. package/dist/{OriginalBalanceAction-CWuVvRq9.mjs → OriginalBalanceAction-DK8_LkPz.mjs} +4 -4
  41. package/dist/{RecurringSettings-A_rAGCTP.mjs → RecurringSettings-CqZh1SQa.mjs} +17 -17
  42. package/dist/{RecurringTransactions-DK8dWldr.mjs → RecurringTransactions-BKcYmpv3.mjs} +46 -45
  43. package/dist/{RecurringTransactionsStore-C4YOD7_D.mjs → RecurringTransactionsStore-Ni5tSQIO.mjs} +80 -73
  44. package/dist/{SettingsStore-BcgS_Ohv.mjs → SettingsStore-krIRNwHK.mjs} +3 -3
  45. package/dist/SkeletonLoader-BaNboJjD.mjs +38 -0
  46. package/dist/{SpendingData-D5vsfYKo.mjs → SpendingData-BuJ03S9d.mjs} +16 -16
  47. package/dist/SpendingLegend-CjX-hX2O.mjs +193 -0
  48. package/dist/{ToggleListItem-r0Kx56wF.mjs → ToggleListItem-ciFTiqRS.mjs} +19 -14
  49. package/dist/TransactionApi-CjBoLleL.mjs +86 -0
  50. package/dist/TransactionDetails-5M2vfr59.mjs +1379 -0
  51. package/dist/{TransactionStore-ai3uII_r.mjs → TransactionStore-D-Q3BU9Z.mjs} +119 -121
  52. package/dist/TrendsStore-BW9FGQeE.mjs +182 -0
  53. package/dist/{User-BQUxBeZV.mjs → User-wXzDI4M8.mjs} +2 -2
  54. package/dist/{ViewMoreMicroCard-SCn2wt4i.mjs → ViewMoreMicroCard-C0832BMe.mjs} +702 -723
  55. package/dist/{WidgetContainer-BHWANqT4.mjs → WidgetContainer-BhQ1Kx2z.mjs} +4 -4
  56. package/dist/accounts/components/AccountsListCompact.d.ts +10 -0
  57. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +4 -1
  58. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader.d.ts +2 -1
  59. package/dist/accounts/index.es.js +229 -222
  60. package/dist/accounts/stores/AccountStore.d.ts +2 -0
  61. package/dist/analytics/index.es.js +2 -2
  62. package/dist/budgets/index.es.js +380 -382
  63. package/dist/cashflow/index.es.js +405 -413
  64. package/dist/categories/index.es.js +2 -2
  65. package/dist/categories/stores/CategoryStore.d.ts +1 -1
  66. package/dist/common/components/ErrorBoundary.d.ts +1 -1
  67. package/dist/common/components/Select.d.ts +4 -2
  68. package/dist/common/components/charts/LineChart.d.ts +12 -2
  69. package/dist/common/components/charts/index.d.ts +0 -3
  70. package/dist/common/components/charts/linechart/CustomLegend.d.ts +3 -1
  71. package/dist/common/components/charts/linechart/CustomMark.d.ts +4 -0
  72. package/dist/common/components/drawer/Drawer.d.ts +3 -0
  73. package/dist/common/components/drawer/Footer.d.ts +17 -0
  74. package/dist/common/hooks/index.d.ts +0 -1
  75. package/dist/common/hooks/useAriaLive.d.ts +1 -1
  76. package/dist/common/index.es.js +320 -321
  77. package/dist/common/stores/GlobalStore.d.ts +7 -1
  78. package/dist/common/types/Finstrong.d.ts +54 -0
  79. package/dist/common/types/Global.d.ts +1 -0
  80. package/dist/common/types/Widgets.d.ts +1 -0
  81. package/dist/common/types/index.d.ts +1 -1
  82. package/dist/common/types/localization/FinstrongCopy.d.ts +105 -2
  83. package/dist/common/types/localization/GoalsCopy.d.ts +1 -0
  84. package/dist/dashboard/index.es.js +2 -2
  85. package/dist/debts/index.es.js +506 -498
  86. package/dist/exportTransactionsToCSV-Cz2t0lmA.mjs +48 -0
  87. package/dist/finstrong/FinstrongWidget.d.ts +1 -1
  88. package/dist/finstrong/api/FinstrongApi.d.ts +5 -0
  89. package/dist/finstrong/components/ConnectMoreAccountsCard.d.ts +3 -1
  90. package/dist/finstrong/components/CreditScore/CreditScoreContent.d.ts +4 -0
  91. package/dist/finstrong/components/CreditScore/CreditScoreHeader.d.ts +4 -0
  92. package/dist/finstrong/components/FinancialStrengthGraph.d.ts +7 -1
  93. package/dist/finstrong/components/HaveManageableDebt/DebtPaymentTabContent.d.ts +3 -0
  94. package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtComponent.d.ts +3 -0
  95. package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtProgressBar.d.ts +4 -0
  96. package/dist/finstrong/components/HaveManageableDebt/IncomeTabContent.d.ts +3 -0
  97. package/dist/finstrong/components/KeyIndicatorsBorrowTab.d.ts +2 -2
  98. package/dist/finstrong/components/KeyIndicatorsDrawer.d.ts +4 -1
  99. package/dist/finstrong/components/KeyIndicatorsSaveTab.d.ts +2 -2
  100. package/dist/finstrong/components/KeyIndicatorsSpendTab.d.ts +2 -2
  101. package/dist/finstrong/components/KeyIndicatorsTabItem.d.ts +4 -3
  102. package/dist/finstrong/components/KeyIndicatorsTabItemDrawer.d.ts +10 -0
  103. package/dist/finstrong/components/KeyIndicatorsTabsWidget.d.ts +2 -2
  104. package/dist/finstrong/components/MaintainingEmergencySavings/EstimatedContributionCalculator.d.ts +6 -0
  105. package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsContent.d.ts +4 -0
  106. package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsSticky.d.ts +4 -0
  107. package/dist/finstrong/components/ProgressBar.d.ts +15 -0
  108. package/dist/finstrong/components/SaveEnoughToLiveOn/AvailableTabContent.d.ts +3 -0
  109. package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnDrawerContent.d.ts +3 -0
  110. package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnProgressBar.d.ts +4 -0
  111. package/dist/finstrong/components/SaveEnoughToLiveOn/SpendingTabContent.d.ts +3 -0
  112. package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeComponent.d.ts +3 -0
  113. package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeProgressBar.d.ts +4 -0
  114. package/dist/finstrong/components/StatusChip.d.ts +5 -0
  115. package/dist/finstrong/components/onboarding/Onboarding.d.ts +2 -0
  116. package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.d.ts +17 -0
  117. package/dist/finstrong/components/onboarding/OnboardingBirthday.d.ts +8 -0
  118. package/dist/finstrong/components/onboarding/OnboardingCreditScore.d.ts +8 -0
  119. package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.d.ts +14 -0
  120. package/dist/finstrong/components/onboarding/OnboardingStepsHeader.d.ts +8 -0
  121. package/dist/finstrong/components/paybillsontime/PayBillsOnTimeDrawerComponent.d.ts +4 -0
  122. package/dist/finstrong/components/paybillsontime/PayBillsOnTimeStickyComponent.d.ts +4 -0
  123. package/dist/finstrong/components/shared/Accounts.d.ts +8 -0
  124. package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +25 -0
  125. package/dist/finstrong/components/shared/DialScoreCard.d.ts +7 -1
  126. package/dist/finstrong/components/shared/DoubleBarChart.d.ts +28 -0
  127. package/dist/finstrong/components/shared/LineGraph.d.ts +7 -0
  128. package/dist/finstrong/components/shared/TotalCard.d.ts +8 -0
  129. package/dist/finstrong/components/shared/Transactions.d.ts +11 -0
  130. package/dist/finstrong/constants/index.d.ts +9 -0
  131. package/dist/finstrong/index.es.js +3171 -1063
  132. package/dist/finstrong/stores/FinstrongStore.d.ts +25 -2
  133. package/dist/finstrong/util/finstrongUtils.d.ts +58 -1
  134. package/dist/goals/index.es.js +566 -562
  135. package/dist/help/index.es.js +3 -3
  136. package/dist/{hooks-D6XlXHf4.mjs → hooks-C41HAxM5.mjs} +3 -3
  137. package/dist/insights/index.es.js +1 -1
  138. package/dist/investments/index.es.js +437 -435
  139. package/dist/merchants/index.es.js +2 -2
  140. package/dist/microinsights/beaticons/BeatIcon.d.ts +2 -9
  141. package/dist/microinsights/beaticons/BeatMerchantLogo.d.ts +3 -2
  142. package/dist/microinsights/beaticons/MonthlySpendComparisonIcon.d.ts +2 -1
  143. package/dist/microinsights/cards/{MicroInsightCard.d.ts → BaseCard.d.ts} +1 -8
  144. package/dist/microinsights/cards/{BeatCard.d.ts → InsightCard.d.ts} +2 -2
  145. package/dist/microinsights/cards/NoRelevantInsightsCard.d.ts +2 -5
  146. package/dist/microinsights/cards/ZeroStateCard.d.ts +2 -5
  147. package/dist/microinsights/carousel/BeatList.d.ts +10 -0
  148. package/dist/microinsights/carousel/CarouselControls.d.ts +1 -3
  149. package/dist/microinsights/carousel/CarouselHeader.d.ts +1 -2
  150. package/dist/microinsights/constants/App.d.ts +0 -1
  151. package/dist/microinsights/index.d.ts +3 -3
  152. package/dist/microinsights/index.es.js +7 -7
  153. package/dist/microinsights/interfaces.d.ts +0 -6
  154. package/dist/networth/index.es.js +188 -186
  155. package/dist/notifications/index.es.js +95 -96
  156. package/dist/recurringtransactions/components/MicroWidgetContent.d.ts +3 -0
  157. package/dist/recurringtransactions/index.es.js +584 -560
  158. package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +1 -0
  159. package/dist/settings/index.es.js +286 -280
  160. package/dist/spending/index.es.js +269 -421
  161. package/dist/spending/utils/SpendingData.d.ts +2 -1
  162. package/dist/transactions/components/shared/TransactionDetails.d.ts +1 -0
  163. package/dist/transactions/components/shared/TransactionList.d.ts +1 -0
  164. package/dist/transactions/index.es.js +226 -220
  165. package/dist/transactions/stores/TransactionStore.d.ts +1 -1
  166. package/dist/transactions/stores/UiStore.d.ts +0 -2
  167. package/dist/trends/index.es.js +963 -586
  168. package/dist/{useAccountDisplayName-BUAApBIb.mjs → useAccountDisplayName-CFNF8766.mjs} +2 -2
  169. package/dist/{useCombineEvents-BUDIR1ba.mjs → useCombineEvents-CRwX-qWE.mjs} +1 -1
  170. package/dist/{useInsightsEnabled-DBpwEq10.mjs → useInsightsEnabled-CNjP5cfR.mjs} +1 -1
  171. package/package.json +7 -7
  172. package/dist/AccountDetailsHeader-JtSX6Uf9.mjs +0 -120
  173. package/dist/Drawer-kEE73B87.mjs +0 -113
  174. package/dist/FinstrongStore-F2c607dj.mjs +0 -101
  175. package/dist/LineChart-D4GI7nVh.mjs +0 -541
  176. package/dist/TransactionApi-B3Tksf7L.mjs +0 -86
  177. package/dist/TransactionDetails-oP1eSuiS.mjs +0 -1334
  178. package/dist/TrendsStore-DCYbpXPO.mjs +0 -559
  179. package/dist/common/hooks/usePrevious.d.ts +0 -2
  180. package/dist/exportTransactionsToCSV-7bVS7KXf.mjs +0 -47
  181. package/dist/finstrong/utils/Finstrong.d.ts +0 -6
  182. package/dist/useAriaLive-B3_pRUio.mjs +0 -35
@@ -10,11 +10,11 @@ import B from "@mui/material/styles/useTheme";
10
10
  import { InstitutionLogo as L, Text as o } from "@mxenabled/mxui";
11
11
  import { Error as A } from "@mxenabled/mx-icons";
12
12
  import { I as j } from "./IconBacking-B9oC6uL2.mjs";
13
- import { g as T } from "./AccountFields-C9FlatNb.mjs";
14
- import { u as X } from "./useAccountDisplayName-BUAApBIb.mjs";
15
- import { u as $ } from "./hooks-D6XlXHf4.mjs";
16
- import { C as d } from "./ConnectDrawer-BQNs-hjk.mjs";
17
- import { f as k } from "./NumberFormatting-Buh7u8Oi.mjs";
13
+ import { g as T } from "./AccountFields-QZspYAji.mjs";
14
+ import { u as X } from "./useAccountDisplayName-CFNF8766.mjs";
15
+ import { u as $ } from "./hooks-C41HAxM5.mjs";
16
+ import { C as d } from "./ConnectDrawer-BIbTqYOH.mjs";
17
+ import { f as k } from "./NumberFormatting-DjTD0t3W.mjs";
18
18
  const w = {
19
19
  gridRow: 1,
20
20
  gridColumn: 1,
@@ -1,8 +1,8 @@
1
1
  import { makeAutoObservable as l, runInAction as a } from "mobx";
2
- import { i as A } from "./User-BQUxBeZV.mjs";
3
- import { F as g, A as i } from "./Fetch-87LIQbEA.mjs";
4
- import { d as m } from "./Accounts-BRf_YeTf.mjs";
5
- import { A as c, j as u } from "./ConnectDrawer-BQNs-hjk.mjs";
2
+ import { i as A } from "./User-wXzDI4M8.mjs";
3
+ import { F as g, A as i } from "./Fetch-DecPFeGU.mjs";
4
+ import { d as m } from "./Accounts-DXfZotRC.mjs";
5
+ import { A as c, j as u } from "./ConnectDrawer-BIbTqYOH.mjs";
6
6
  class d {
7
7
  fetchInstance;
8
8
  constructor(t, e, s) {
@@ -119,6 +119,17 @@ class E {
119
119
  get visibleSavingsAccounts() {
120
120
  return this.savingsAccounts.filter((t) => !t.is_hidden);
121
121
  }
122
+ get savingsAndCheckingAccountsBalance() {
123
+ return this.savingsAndCheckingAccounts.reduce(
124
+ (e, s) => e + (s?.balance || 0),
125
+ 0
126
+ );
127
+ }
128
+ get savingsAndCheckingAccounts() {
129
+ return this.accounts.filter(
130
+ (e) => e.account_type === c.SAVINGS || e.account_type === c.CHECKING
131
+ );
132
+ }
122
133
  setAccounts = (t) => {
123
134
  this.accounts = t, this.accountsLoaded = !0;
124
135
  };
@@ -166,10 +177,10 @@ class E {
166
177
  try {
167
178
  const e = await this.api.mergeAccounts(t), s = e[Object.keys(e)[0]];
168
179
  a(() => {
169
- const n = this.accounts.findIndex((o) => o.guid === t[1]);
180
+ const n = this.accounts.findIndex((r) => r.guid === t[1]);
170
181
  this.accounts.splice(n, 1);
171
- const r = this.accounts.findIndex((o) => o.guid === t[0]);
172
- this.accounts.splice(r, 1, s);
182
+ const o = this.accounts.findIndex((r) => r.guid === t[0]);
183
+ this.accounts.splice(o, 1, s);
173
184
  });
174
185
  } catch (e) {
175
186
  console.error(`Error occurred while merging accounts: ${e}`);
@@ -212,7 +223,7 @@ class E {
212
223
  };
213
224
  updateAccountFiltering = async (t, e) => {
214
225
  for (const s of t) {
215
- const n = this.accounts.find((r) => r.guid === s);
226
+ const n = this.accounts.find((o) => o.guid === s);
216
227
  n && (n.is_excluded_from_accounts = e, await this.updateAccount(n));
217
228
  }
218
229
  };
@@ -1,4 +1,4 @@
1
- import { A as e, C as u, E as r, c as p, M as y } from "./ConnectDrawer-BQNs-hjk.mjs";
1
+ import { A as e, C as u, E as r, c as p, M as y } from "./ConnectDrawer-BIbTqYOH.mjs";
2
2
  const l = (t) => t && (t.account_type === e.CREDIT_CARD || t.account_type === e.LOAN || t.account_type === e.MORTGAGE || t.account_type === e.LINE_OF_CREDIT || t.account_type === e.CHECKING_LINE_OF_CREDIT), I = (t) => t.is_manual || !t.guid, R = (t) => t.account_type === e.LINE_OF_CREDIT || t.account_type === e.CREDIT_CARD || t.account_type === e.CHECKING_LINE_OF_CREDIT, f = (t) => t.account_type === e.SAVINGS || t.account_type === e.CHECKING || t.account_type === e.LINE_OF_CREDIT || t.account_type === e.CREDIT_CARD || t.account_type === e.LOAN || t.account_type === e.MORTGAGE, m = (t) => t.account_type === e.LOAN || t.account_type === e.MORTGAGE, A = (t, n, s, _) => t.filter((i) => !(i.member_is_managed_by_user && _)).sort(d).map((i) => {
3
3
  const c = n.find((a) => a.guid === i.institution_guid), o = s.find((a) => a.guid === i.member_guid);
4
4
  return E(i, c, o);
@@ -1,4 +1,4 @@
1
- import { F as c, A as s } from "./Fetch-87LIQbEA.mjs";
1
+ import { F as c, A as s } from "./Fetch-DecPFeGU.mjs";
2
2
  class i {
3
3
  fetchInstance;
4
4
  constructor(t, e, n) {
@@ -1,5 +1,5 @@
1
1
  import { makeAutoObservable as c, runInAction as r } from "mobx";
2
- import { B as l } from "./BeatApi-DhJpgCLz.mjs";
2
+ import { B as l } from "./BeatApi-De2IaqH2.mjs";
3
3
  function d(t, e, s, i = "asc") {
4
4
  const a = i === "desc" ? -1 : 1;
5
5
  return [...t, ...e].sort((_, n) => _[s] < n[s] ? -1 * a : _[s] > n[s] ? 1 * a : 0);
@@ -1,7 +1,7 @@
1
- import { i as _ } from "./hooks-D6XlXHf4.mjs";
1
+ import { i as _ } from "./hooks-C41HAxM5.mjs";
2
2
  import { b as d } from "./Category-CevNQ03n.mjs";
3
3
  import { b as f } from "./Localization-2MODESHW.mjs";
4
- import { f as l } from "./NumberFormatting-Buh7u8Oi.mjs";
4
+ import { f as l } from "./NumberFormatting-DjTD0t3W.mjs";
5
5
  const p = (n, e) => n.find((t) => t.guid === e), B = (n, e) => n.find((t) => t.guid === e), T = (n, e) => {
6
6
  const t = n.find((r) => r.subCategories.find((a) => a.guid === e));
7
7
  if (t)
@@ -2,7 +2,7 @@ import { jsx as t, jsxs as E } from "react/jsx-runtime";
2
2
  import { observer as g } from "mobx-react-lite";
3
3
  import C from "react";
4
4
  import $ from "@mui/material/Stack";
5
- import { G as K, m as y, u as b, g as D, b as U } from "./hooks-D6XlXHf4.mjs";
5
+ import { G as K, m as y, u as b, g as D, b as U } from "./hooks-C41HAxM5.mjs";
6
6
  import Y from "@mui/material/List";
7
7
  import V from "@mui/material/Paper";
8
8
  import v from "@mui/material/Divider";
@@ -16,14 +16,14 @@ import { Text as B, TextField as q, CategoryIcon as H } from "@mxenabled/mxui";
16
16
  import J from "@mui/material/Collapse";
17
17
  import Q from "@mui/material/DialogContent";
18
18
  import { b as S } from "./Localization-2MODESHW.mjs";
19
- import { a as Z } from "./Dialog-CWW597AF.mjs";
19
+ import { D as Z } from "./Dialog-BPTr3qHE.mjs";
20
20
  import ee from "@mui/material/Box";
21
21
  import te from "@mui/material/Chip";
22
22
  import I from "@mui/material/IconButton";
23
23
  import { S as oe } from "./SearchBox-B2_zLv8-.mjs";
24
24
  import { L as k } from "./Loader-DUaFpDGv.mjs";
25
- import { D as ae } from "./Drawer-kEE73B87.mjs";
26
- const h = () => {
25
+ import { D as ae } from "./Drawer-BEtCk82g.mjs";
26
+ const p = () => {
27
27
  if (!C.useContext(K))
28
28
  throw new Error("useCategoryUiStore() must be used within the GlobalDataContext");
29
29
  return y().uiStore;
@@ -48,7 +48,7 @@ const re = ({
48
48
  isOpen: c,
49
49
  type: s
50
50
  }) => {
51
- const [a, i] = C.useState(e), { categories: n } = b(), { setShouldDisableDrawerScroll: l } = h();
51
+ const [a, i] = C.useState(e), { categories: n } = b(), { setShouldDisableDrawerScroll: l } = p();
52
52
  let u = "", d = [];
53
53
  const _ = s === "delete";
54
54
  switch (s) {
@@ -82,9 +82,11 @@ const re = ({
82
82
  children: /* @__PURE__ */ t(Q, { children: _ ? /* @__PURE__ */ t(B, { children: d }) : /* @__PURE__ */ t(
83
83
  q,
84
84
  {
85
- "aria-label": s === "edit" ? n.edit_subcategory_aria : n.add_subcategory_aria,
85
+ inputProps: {
86
+ "aria-label": s === "edit" ? n.edit_subcategory_aria : n.add_subcategory_aria
87
+ },
86
88
  name: "modify-subcategory",
87
- onChange: (p) => i(p.target.value),
89
+ onChange: (h) => i(h.target.value),
88
90
  placeholder: n.input_placeholder,
89
91
  sx: { width: "100%" },
90
92
  value: a
@@ -93,7 +95,7 @@ const re = ({
93
95
  }
94
96
  );
95
97
  }, R = g(re), ne = ({ parentCategory: e }) => {
96
- const [o, r] = C.useState(!1), { addCategory: c } = y(), { categories: s } = b(), { onEvent: a } = D(), { setShouldDisableDrawerScroll: i } = h(), n = async (d) => {
98
+ const [o, r] = C.useState(!1), { addCategory: c } = y(), { categories: s } = b(), { onEvent: a } = D(), { setShouldDisableDrawerScroll: i } = p(), n = async (d) => {
97
99
  await c(d.trim(), e.guid), a(m.ON_SUBCATEGORY_ADDED), r(!1);
98
100
  }, l = async () => {
99
101
  a(m.ON_SUBCATEGORY_ADD_CLICK), i(!0), r(!0);
@@ -168,7 +170,7 @@ const re = ({
168
170
  showSelected: i,
169
171
  unselectable: n,
170
172
  unselectableText: l
171
- } = h(), { categories: u } = b(), { onEvent: d } = D(), [_, p] = C.useState(!1), [f, O] = C.useState(!1), T = !!o.revision, A = o.guid === c, w = !n.some((P) => P === o.guid);
173
+ } = p(), { categories: u } = b(), { onEvent: d } = D(), [_, h] = C.useState(!1), [f, O] = C.useState(!1), T = !!o.revision, A = o.guid === c, w = !n.some((P) => P === o.guid);
172
174
  return /* @__PURE__ */ E(
173
175
  x,
174
176
  {
@@ -205,7 +207,7 @@ const re = ({
205
207
  {
206
208
  "aria-label": S(u.edit_subcategory_aria, o.name),
207
209
  onClick: () => {
208
- p(!0), a(!0), d(m.ON_SUBCATEGORY_EDIT_CLICK);
210
+ h(!0), a(!0), d(m.ON_SUBCATEGORY_EDIT_CLICK);
209
211
  },
210
212
  children: /* @__PURE__ */ t(j, { color: "secondary" })
211
213
  }
@@ -234,7 +236,7 @@ const re = ({
234
236
  _ && /* @__PURE__ */ t(
235
237
  ce,
236
238
  {
237
- setShowRename: p,
239
+ setShowRename: h,
238
240
  showRename: _,
239
241
  subCategory: o
240
242
  }
@@ -243,7 +245,7 @@ const re = ({
243
245
  }
244
246
  );
245
247
  }, me = g(ue), Ce = ({ categories: e, parentCategory: o }) => {
246
- const { expandedGuid: r, searchValue: c } = h(), s = o.guid === r, a = !!c;
248
+ const { expandedGuid: r, searchValue: c } = p(), s = o.guid === r, a = !!c;
247
249
  return /* @__PURE__ */ t(
248
250
  J,
249
251
  {
@@ -269,7 +271,7 @@ const re = ({
269
271
  }
270
272
  );
271
273
  }, ge = g(Ce), _e = ({ category: e, subCategories: o }) => {
272
- const { expandedGuid: r, searchValue: c, setExpandedGuid: s } = h(), { onEvent: a } = D(), i = e.guid === r, n = () => {
274
+ const { expandedGuid: r, searchValue: c, setExpandedGuid: s } = p(), { onEvent: a } = D(), i = e.guid === r, n = () => {
273
275
  const l = e.guid !== r ? e.guid : null;
274
276
  s(l), a(l ? m.ON_CATEGORY_EXPANDED : m.ON_CATEGORY_COLLAPSED);
275
277
  };
@@ -307,8 +309,8 @@ const re = ({
307
309
  /* @__PURE__ */ t(v, { sx: { ml: 58 } }),
308
310
  /* @__PURE__ */ t(ge, { categories: o, parentCategory: e })
309
311
  ] });
310
- }, Ee = g(_e), he = () => {
311
- const { categories: e } = y(), { searchValue: o } = h(), { categories: r } = b(), s = ((a, i = "") => a.reduce((n, l) => {
312
+ }, Ee = g(_e), pe = () => {
313
+ const { categories: e } = y(), { searchValue: o } = p(), { categories: r } = b(), s = ((a, i = "") => a.reduce((n, l) => {
312
314
  if (l.parent_guid === null) {
313
315
  const d = [
314
316
  {
@@ -333,7 +335,7 @@ const re = ({
333
335
  },
334
336
  a.category.guid
335
337
  )) }) });
336
- }, pe = g(he), Se = ({
338
+ }, he = g(pe), Se = ({
337
339
  initialSelected: e,
338
340
  onSelect: o = void 0,
339
341
  showSelected: r = !0,
@@ -344,17 +346,17 @@ const re = ({
344
346
  searchValue: u,
345
347
  setOnSelect: d,
346
348
  setSearchValue: _,
347
- setSelectedGuid: p,
349
+ setSelectedGuid: h,
348
350
  setShowSelected: f,
349
351
  setUnselectable: O,
350
352
  setUnselectableText: T
351
- } = h();
353
+ } = p();
352
354
  return C.useEffect(() => {
353
355
  o && d(o);
354
356
  }), C.useEffect(() => {
355
357
  a.length || i();
356
358
  }, []), C.useEffect(() => {
357
- e && p(e), f(r), O(c), T(s);
359
+ e && h(e), f(r), O(c), T(s);
358
360
  }, [e, r, c, s]), l ? /* @__PURE__ */ E($, { className: "mx-cat-category-selector", sx: { width: "100%" }, children: [
359
361
  /* @__PURE__ */ t(
360
362
  oe,
@@ -366,7 +368,7 @@ const re = ({
366
368
  searchValue: u
367
369
  }
368
370
  ),
369
- /* @__PURE__ */ t(pe, {})
371
+ /* @__PURE__ */ t(he, {})
370
372
  ] }) : /* @__PURE__ */ t(k, {});
371
373
  }, ye = g(Se), be = ({
372
374
  id: e,
@@ -393,5 +395,5 @@ export {
393
395
  ye as C,
394
396
  ze as a,
395
397
  Ee as b,
396
- h as u
398
+ p as u
397
399
  };
@@ -3,8 +3,8 @@ import { getUnixTime as n } from "date-fns/getUnixTime";
3
3
  import { subMonths as d } from "date-fns/subMonths";
4
4
  import { startOfMonth as y } from "date-fns/startOfMonth";
5
5
  import { endOfMonth as u } from "date-fns/endOfMonth";
6
- import { a as C, g as T } from "./CategoryUtil-pZRIYOgN.mjs";
7
- import { F as m, A as r } from "./Fetch-87LIQbEA.mjs";
6
+ import { a as C, g as T } from "./CategoryUtil-C5cR-nfQ.mjs";
7
+ import { F as m, A as r } from "./Fetch-DecPFeGU.mjs";
8
8
  import { b as p, c as f } from "./Category-CevNQ03n.mjs";
9
9
  class c {
10
10
  fetchInstance;
@@ -54,7 +54,7 @@ class w {
54
54
  onSelect = (t) => this.savedOnSelect(t);
55
55
  setOnSelect = (t) => this.savedOnSelect = t;
56
56
  }
57
- class L {
57
+ class O {
58
58
  globalStore;
59
59
  uiStore;
60
60
  api = new c("/", "");
@@ -62,19 +62,19 @@ class L {
62
62
  categoriesLoaded = !1;
63
63
  dateRangeCategoryTotals = [];
64
64
  monthlyCategoryTotals = [];
65
- dataRangeTotalsLoaded = !1;
65
+ dateRangeTotalsLoaded = !1;
66
66
  isLoadingCategoryTotals = !1;
67
67
  monthlyTotalsLoaded = !1;
68
68
  constructor(t) {
69
69
  this.globalStore = t, this.uiStore = new w(), this.api = new c(t.endpoint, t.sessionToken, t.onError), g(this);
70
70
  }
71
71
  get detailedCategories() {
72
- return C(
72
+ return this.globalStore.isInitialized ? C(
73
73
  this.categories,
74
74
  this.globalStore.copyStore.copy.categories,
75
75
  this.dateRangeCategoryTotals,
76
76
  this.monthlyCategoryTotals
77
- );
77
+ ) : [];
78
78
  }
79
79
  get detailedCategoriesWithTransactions() {
80
80
  return T(
@@ -100,7 +100,7 @@ class L {
100
100
  this.monthlyCategoryTotals = t, this.monthlyTotalsLoaded = !0;
101
101
  };
102
102
  setDateRangeCategoryTotals = (t) => {
103
- this.dateRangeCategoryTotals = t, this.dataRangeTotalsLoaded = !0;
103
+ this.dateRangeCategoryTotals = t, this.dateRangeTotalsLoaded = !0;
104
104
  };
105
105
  addCategory = async (t, e) => {
106
106
  const a = { name: t, parent_guid: e };
@@ -126,9 +126,11 @@ class L {
126
126
  n(a),
127
127
  t
128
128
  );
129
- this.setDateRangeCategoryTotals(o), this.setIsLoadingCategoryTotals(!1);
129
+ this.setDateRangeCategoryTotals(o);
130
130
  } catch (o) {
131
- this.setIsLoadingCategoryTotals(!1), console.error(`Error occurred while getting date range category totals: ${o}`);
131
+ console.error(`Error occurred while getting date range category totals: ${o}`);
132
+ } finally {
133
+ this.setIsLoadingCategoryTotals(!1);
132
134
  }
133
135
  };
134
136
  loadMonthlyCategoryTotals = async (t = this.globalStore.globalUiStore.selectedAccounts, e, a) => {
@@ -169,6 +171,6 @@ class L {
169
171
  getCategoryName = (t) => this.categories.find((a) => a.guid === t)?.name ?? f[t];
170
172
  }
171
173
  export {
172
- L as C,
174
+ O as C,
173
175
  c as a
174
176
  };
@@ -4,7 +4,7 @@ import { startOfToday as C } from "date-fns/startOfToday";
4
4
  import { subMonths as N } from "date-fns/subMonths";
5
5
  import { CategoryIconList as O } from "@mxenabled/mxui";
6
6
  import { C as b, a as D, b as E } from "./Category-CevNQ03n.mjs";
7
- import { f as R, D as v } from "./Dialog-CWW597AF.mjs";
7
+ import { f as R, a as v } from "./Dialog-BPTr3qHE.mjs";
8
8
  const H = 3, f = 12, k = (t, o, e, r) => t.filter((n) => !n.parent_guid).map(
9
9
  (n) => p(
10
10
  n,
@@ -14,14 +14,14 @@ import EE from "@mui/material/ListItemText";
14
14
  import IE from "@mui/material/Popover";
15
15
  import F from "@mui/material/Stack";
16
16
  import w from "@mui/material/Checkbox";
17
- import { u as o, f as _E, d as NE, e as rE } from "./hooks-D6XlXHf4.mjs";
17
+ import { u as o, f as _E, d as NE, e as rE } from "./hooks-C41HAxM5.mjs";
18
18
  import { b as W } from "./Localization-2MODESHW.mjs";
19
19
  import { u as RE } from "./useScreenSize-B6JyS_Lj.mjs";
20
20
  import { observer as Q } from "mobx-react-lite";
21
21
  import iE from "@mui/material/styles/useTheme";
22
22
  import { ConnectWidget as aE } from "@mxenabled/web-widget-sdk";
23
23
  import lE from "@mui/material/CircularProgress";
24
- import { D as OE } from "./Drawer-kEE73B87.mjs";
24
+ import { D as OE } from "./Drawer-BEtCk82g.mjs";
25
25
  var T = /* @__PURE__ */ ((E) => (E[E.ANY = 0] = "ANY", E[E.CHECKING = 1] = "CHECKING", E[E.SAVINGS = 2] = "SAVINGS", E[E.LOAN = 3] = "LOAN", E[E.CREDIT_CARD = 4] = "CREDIT_CARD", E[E.INVESTMENT = 5] = "INVESTMENT", E[E.LINE_OF_CREDIT = 6] = "LINE_OF_CREDIT", E[E.MORTGAGE = 7] = "MORTGAGE", E[E.PROPERTY = 8] = "PROPERTY", E[E.CASH = 9] = "CASH", E[E.INSURANCE = 10] = "INSURANCE", E[E.PREPAID = 11] = "PREPAID", E[E.CHECKING_LINE_OF_CREDIT = 12] = "CHECKING_LINE_OF_CREDIT", E[E.DIGITAL_WALLET = 13] = "DIGITAL_WALLET", E))(T || {}), sE = /* @__PURE__ */ ((E) => (E[E.NONE = 0] = "NONE", E[E.MONEY_MARKET = 1] = "MONEY_MARKET", E[E.CERTIFICATE_OF_DEPOSIT = 2] = "CERTIFICATE_OF_DEPOSIT", E[E.AUTO = 3] = "AUTO", E[E.STUDENT = 4] = "STUDENT", E[E.SMALL_BUSINESS = 5] = "SMALL_BUSINESS", E[E.PERSONAL = 6] = "PERSONAL", E[E.PERSONAL_WITH_COLLATERAL = 7] = "PERSONAL_WITH_COLLATERAL", E[E.HOME_EQUITY = 8] = "HOME_EQUITY", E[E.PLAN_401_K = 9] = "PLAN_401_K", E[E.PLAN_403_B = 10] = "PLAN_403_B", E[E.PLAN_529 = 11] = "PLAN_529", E[E.IRA = 12] = "IRA", E[E.ROLLOVER_IRA = 13] = "ROLLOVER_IRA", E[E.ROTH_IRA = 14] = "ROTH_IRA", E[E.TAXABLE = 15] = "TAXABLE", E[E.NON_TAXABLE = 16] = "NON_TAXABLE", E[E.BROKERAGE = 17] = "BROKERAGE", E[E.TRUST = 18] = "TRUST", E[E.UNIFORM_GIFTS_TO_MINORS_ACT = 19] = "UNIFORM_GIFTS_TO_MINORS_ACT", E[E.PLAN_457 = 20] = "PLAN_457", E[E.PENSION = 21] = "PENSION", E[E.EMPLOYEE_STOCK_OWNERSHIP_PLAN = 22] = "EMPLOYEE_STOCK_OWNERSHIP_PLAN", E[E.SIMPLIFIED_EMPLOYEE_PENSION = 23] = "SIMPLIFIED_EMPLOYEE_PENSION", E[E.SIMPLE_IRA = 24] = "SIMPLE_IRA", E[E.BOAT = 25] = "BOAT", E[E.POWERSPORTS = 26] = "POWERSPORTS", E[E.RV = 27] = "RV", E[E.HELOC = 28] = "HELOC", E[E.PLAN_ROTH_401_K = 29] = "PLAN_ROTH_401_K", E[E.FIXED_ANNUITY = 30] = "FIXED_ANNUITY", E[E.VARIABLE_ANNUITY = 31] = "VARIABLE_ANNUITY", E[E.VEHICLE_INSURANCE = 32] = "VEHICLE_INSURANCE", E[E.DISABILITY = 33] = "DISABILITY", E[E.HEALTH = 34] = "HEALTH", E[E.LONG_TERM_CARE = 35] = "LONG_TERM_CARE", E[E.PROPERTY_AND_CASUALTY = 36] = "PROPERTY_AND_CASUALTY", E[E.UNIVERSAL_LIFE = 37] = "UNIVERSAL_LIFE", E[E.TERM_LIFE = 38] = "TERM_LIFE", E[E.WHOLE_LIFE = 39] = "WHOLE_LIFE", E[E.ACCIDENTAL_DEATH_AND_DISMEMBERMENT = 40] = "ACCIDENTAL_DEATH_AND_DISMEMBERMENT", E[E.VARIABLE_UNIVERSAL_LIFE = 41] = "VARIABLE_UNIVERSAL_LIFE", E[E.HSA = 42] = "HSA", E[E.TAX_FREE_SAVINGS_ACCOUNT = 43] = "TAX_FREE_SAVINGS_ACCOUNT", E[E.INDIVIDUAL = 44] = "INDIVIDUAL", E[E.REGISTERED_RETIREMENT_INCOME_FUND = 45] = "REGISTERED_RETIREMENT_INCOME_FUND", E[E.CASH_MANAGEMENT_ACCOUNT = 46] = "CASH_MANAGEMENT_ACCOUNT", E[E.EMPLOYEE_STOCK_PURCHASE_PLAN = 47] = "EMPLOYEE_STOCK_PURCHASE_PLAN", E[E.REGISTERED_EDUCATION_SAVINGS_PLAN = 48] = "REGISTERED_EDUCATION_SAVINGS_PLAN", E[E.PROFIT_SHARING_PLAN = 49] = "PROFIT_SHARING_PLAN", E[E.UNIFORM_TRANSFER_TO_MINORS_ACT = 50] = "UNIFORM_TRANSFER_TO_MINORS_ACT", E[E.PLAN_401_A = 51] = "PLAN_401_A", E[E.SARSEP_IRA = 52] = "SARSEP_IRA", E[E.FIXED_ANNUITY_TRADITIONAL_IRA = 53] = "FIXED_ANNUITY_TRADITIONAL_IRA", E[E.VARIABLE_ANNUITY_TRADITIONAL_IRA = 54] = "VARIABLE_ANNUITY_TRADITIONAL_IRA", E[E.SEPP_IRA = 55] = "SEPP_IRA", E[E.INHERITED_TRADITIONAL_IRA = 56] = "INHERITED_TRADITIONAL_IRA", E[E.FIXED_ANNUITY_ROTH_IRA = 57] = "FIXED_ANNUITY_ROTH_IRA", E[E.VARIABLE_ANNUITY_ROTH_IRA = 58] = "VARIABLE_ANNUITY_ROTH_IRA", E[E.INHERITED_ROTH_IRA = 59] = "INHERITED_ROTH_IRA", E[E.COVERDELL = 60] = "COVERDELL", E[E.ADVISORY_ACCOUNT = 61] = "ADVISORY_ACCOUNT", E[E.BROKERAGE_MARGIN = 62] = "BROKERAGE_MARGIN", E[E.CHARITABLE_GIFT_ACCOUNT = 63] = "CHARITABLE_GIFT_ACCOUNT", E[E.CHURCH_ACCOUNT = 64] = "CHURCH_ACCOUNT", E[E.CONSERVATORSHIP = 65] = "CONSERVATORSHIP", E[E.CUSTODIAL = 66] = "CUSTODIAL", E[E.DEFINED_BENEFIT_PLAN = 67] = "DEFINED_BENEFIT_PLAN", E[E.DEFINED_CONTRIBUTION_PLAN = 68] = "DEFINED_CONTRIBUTION_PLAN", E[E.EDUCATIONAL = 69] = "EDUCATIONAL", E[E.ESTATE = 70] = "ESTATE", E[E.EXECUTOR = 71] = "EXECUTOR", E[E.GROUP_RETIREMENT_SAVINGS_PLAN = 72] = "GROUP_RETIREMENT_SAVINGS_PLAN", E[E.GUARANTEED_INVESTMENT_CERTIFICATE = 73] = "GUARANTEED_INVESTMENT_CERTIFICATE", E[E.HRA = 74] = "HRA", E[E.INDEXED_ANNUITY = 75] = "INDEXED_ANNUITY", E[E.INVESTMENT_CLUB = 76] = "INVESTMENT_CLUB", E[E.IRREVOCABLE_TRUST = 77] = "IRREVOCABLE_TRUST", E[E.JOINT_TENANTS_BY_ENTIRITY = 78] = "JOINT_TENANTS_BY_ENTIRITY", E[E.JOINT_TENANTS_COMMUNITY_PROPERTY = 79] = "JOINT_TENANTS_COMMUNITY_PROPERTY", E[E.JOINT_TENANTS_IN_COMMON = 80] = "JOINT_TENANTS_IN_COMMON", E[E.JOINT_TENANTS_WITH_RIGHTS_OF_SURVIVORSHIP = 81] = "JOINT_TENANTS_WITH_RIGHTS_OF_SURVIVORSHIP", E[E.KEOUGH_PLAN = 82] = "KEOUGH_PLAN", E[E.LIFE_INCOME_FUND = 83] = "LIFE_INCOME_FUND", E[E.LIVING_TRUST = 84] = "LIVING_TRUST", E[E.LOCKED_IN_RETIREMENT_ACCOUNT = 85] = "LOCKED_IN_RETIREMENT_ACCOUNT", E[E.LOCKED_IN_RETIREMENT_INVESTMENT_FUND = 86] = "LOCKED_IN_RETIREMENT_INVESTMENT_FUND", E[E.LOCKED_IN_RETIREMENT_SAVINGS_ACCOUNT = 87] = "LOCKED_IN_RETIREMENT_SAVINGS_ACCOUNT", E[E.MONEY_PURCHASE_PLAN = 88] = "MONEY_PURCHASE_PLAN", E[E.PARTNERSHIP = 89] = "PARTNERSHIP", E[E.PLAN_409_A = 90] = "PLAN_409_A", E[E.PLAN_ROTH_403_B = 91] = "PLAN_ROTH_403_B", E[E.REGISTERED_DISABILITY_SAVINGS_PLAN = 92] = "REGISTERED_DISABILITY_SAVINGS_PLAN", E[E.REGISTERED_LOCKED_IN_SAVINGS_PLAN = 93] = "REGISTERED_LOCKED_IN_SAVINGS_PLAN", E[E.REGISTERED_PENSION_PLAN = 94] = "REGISTERED_PENSION_PLAN", E[E.REGISTERED_RETIREMENT_SAVINGS_PLAN = 95] = "REGISTERED_RETIREMENT_SAVINGS_PLAN", E[E.REVOCABLE_TRUST = 96] = "REVOCABLE_TRUST", E[E.ROTH_CONVERSION = 97] = "ROTH_CONVERSION", E[E.SOLE_PROPRIETORSHIP = 98] = "SOLE_PROPRIETORSHIP", E[E.SPOUSAL_IRA = 99] = "SPOUSAL_IRA", E[E.SPOUSAL_ROTH_IRA = 100] = "SPOUSAL_ROTH_IRA", E[E.TESTAMENTARY_TRUST = 101] = "TESTAMENTARY_TRUST", E[E.THRIFT_SAVINGS_PLAN = 102] = "THRIFT_SAVINGS_PLAN", E[E.INHERITED_ANNUITY = 103] = "INHERITED_ANNUITY", E[E.CORPORATE_ACCOUNT = 104] = "CORPORATE_ACCOUNT", E[E.LIMITED_LIABILITY_ACCOUNT = 105] = "LIMITED_LIABILITY_ACCOUNT", E[E.HSA_SAVINGS = 106] = "HSA_SAVINGS", E[E.HSA_CHECKING = 107] = "HSA_CHECKING", E))(sE || {}), LE = /* @__PURE__ */ ((E) => (E[E.REAL_ESTATE = 0] = "REAL_ESTATE", E[E.VEHICLE = 1] = "VEHICLE", E[E.ART = 2] = "ART", E[E.JEWELRY = 3] = "JEWELRY", E[E.FURNITURE = 4] = "FURNITURE", E[E.APPLIANCES = 5] = "APPLIANCES", E[E.COMPUTER = 6] = "COMPUTER", E[E.ELECTRONICS = 7] = "ELECTRONICS", E[E.SPORTS_EQUIPMENT = 8] = "SPORTS_EQUIPMENT", E[E.MISCELLANEOUS = 9] = "MISCELLANEOUS", E))(LE || {}), eE = /* @__PURE__ */ ((E) => (E[E.CREATED = 0] = "CREATED", E[E.PREVENTED = 1] = "PREVENTED", E[E.DENIED = 2] = "DENIED", E[E.CHALLENGED = 3] = "CHALLENGED", E[E.REJECTED = 4] = "REJECTED", E[E.LOCKED = 5] = "LOCKED", E[E.CONNECTED = 6] = "CONNECTED", E[E.IMPEDED = 7] = "IMPEDED", E[E.RECONNECTED = 8] = "RECONNECTED", E[E.DEGRADED = 9] = "DEGRADED", E[E.DISCONNECTED = 10] = "DISCONNECTED", E[E.DISCONTINUED = 11] = "DISCONTINUED", E[E.CLOSED = 12] = "CLOSED", E[E.DELAYED = 13] = "DELAYED", E[E.FAILED = 14] = "FAILED", E[E.UPDATED = 15] = "UPDATED", E[E.DISABLED = 16] = "DISABLED", E[E.IMPORTED = 17] = "IMPORTED", E[E.RESUMED = 18] = "RESUMED", E[E.EXPIRED = 19] = "EXPIRED", E[E.IMPAIRED = 20] = "IMPAIRED", E[E.PENDING = 21] = "PENDING", E))(eE || {});
26
26
  const bE = [
27
27
  0,
@@ -3,9 +3,9 @@ import s from "react";
3
3
  import { observer as E } from "mobx-react-lite";
4
4
  import { useTheme as b } from "@mui/material/styles";
5
5
  import { ConnectionsWidget as D } from "@mxenabled/web-widget-sdk";
6
- import { d as a, e as c, f as i } from "./ConnectDrawer-BQNs-hjk.mjs";
7
- import { d as L, e as w, u as _ } from "./hooks-D6XlXHf4.mjs";
8
- import { D as x } from "./Drawer-kEE73B87.mjs";
6
+ import { d as a, e as c, f as i } from "./ConnectDrawer-BIbTqYOH.mjs";
7
+ import { d as L, e as w, u as _ } from "./hooks-C41HAxM5.mjs";
8
+ import { D as x } from "./Drawer-BEtCk82g.mjs";
9
9
  const I = ({
10
10
  onClose: l,
11
11
  showConnectionsWidget: o,
@@ -4,8 +4,8 @@ import { css as q } from "@mxenabled/cssinjs";
4
4
  import { v4 as B } from "uuid";
5
5
  import { useTokens as L, TextField as O, P as _ } from "@mxenabled/mxui";
6
6
  import { b as y, g as C } from "./Localization-2MODESHW.mjs";
7
- import { g as W, C as j, f as g, M as b } from "./NumberFormatting-Buh7u8Oi.mjs";
8
- import { u as D } from "./hooks-D6XlXHf4.mjs";
7
+ import { g as W, C as j, f as g, M as b } from "./NumberFormatting-DjTD0t3W.mjs";
8
+ import { u as D } from "./hooks-C41HAxM5.mjs";
9
9
  const F = ({
10
10
  allowDecimals: o = !0,
11
11
  ariaLabel: h,
@@ -1,6 +1,6 @@
1
1
  import { jsxs as i } from "react/jsx-runtime";
2
2
  import { Text as u } from "@mxenabled/mxui";
3
- import { f as x } from "./NumberFormatting-Buh7u8Oi.mjs";
3
+ import { f as x } from "./NumberFormatting-DjTD0t3W.mjs";
4
4
  const y = ({
5
5
  isIncome: e = !1,
6
6
  amount: o = 0,
@@ -7,8 +7,8 @@ import { isBefore as n } from "date-fns/isBefore";
7
7
  import { nextDay as c } from "date-fns/nextDay";
8
8
  import { setDate as d } from "date-fns/setDate";
9
9
  import { startOfToday as o } from "date-fns/startOfToday";
10
- import { fromUnixTime as D } from "date-fns/fromUnixTime";
11
- import { f as i, D as f } from "./Dialog-CWW597AF.mjs";
10
+ import { fromUnixTime as i } from "date-fns/fromUnixTime";
11
+ import { f as D, a as f } from "./Dialog-BPTr3qHE.mjs";
12
12
  const x = (t) => {
13
13
  const e = y(t);
14
14
  let r = c(t, e);
@@ -34,7 +34,7 @@ const x = (t) => {
34
34
  }, Q = (t) => {
35
35
  const e = p(t);
36
36
  return a(e, 1);
37
- }, w = (t) => l(t, 1), F = (t) => i(D(t), f.DAY_OF_WEEK_MONTH_DAY), H = (t) => t ? i(D(t), f.MONTH_YEAR) : "";
37
+ }, w = (t) => l(t, 1), F = (t) => D(i(t), f.DAY_OF_WEEK_MONTH_DAY), H = (t) => t ? D(i(t), f.MONTH_YEAR) : "";
38
38
  export {
39
39
  Q as a,
40
40
  p as b,
@@ -1,6 +1,6 @@
1
1
  import { makeAutoObservable as l } from "mobx";
2
2
  import { getDate as r, fromUnixTime as _, startOfMonth as m } from "date-fns";
3
- import { A as p } from "./ConnectDrawer-BQNs-hjk.mjs";
3
+ import { A as p } from "./ConnectDrawer-BIbTqYOH.mjs";
4
4
  const E = 12, T = 100;
5
5
  var c = /* @__PURE__ */ ((a) => (a[a.FASTEST_PAYOFF_FIRST = 1] = "FASTEST_PAYOFF_FIRST", a[a.HIGHEST_INTEREST = 2] = "HIGHEST_INTEREST", a[a.LOWEST_BALANCE = 3] = "LOWEST_BALANCE", a[a.HIGHEST_BALANCE = 4] = "HIGHEST_BALANCE", a))(c || {});
6
6
  const b = {
@@ -115,9 +115,9 @@ const L = "do", S = "MMM do, yyyy", x = {
115
115
  ) });
116
116
  }, I = N;
117
117
  export {
118
- x as D,
118
+ I as D,
119
119
  L as O,
120
- I as a,
120
+ x as a,
121
121
  S as b,
122
122
  b as f
123
123
  };
@@ -3,11 +3,11 @@ import b from "react";
3
3
  import { selectAll as m, interpolateString as x, arc as I } from "d3";
4
4
  import d from "@mui/material/Box";
5
5
  import { useTheme as S } from "@mui/material/styles";
6
- const k = 100, E = 140, v = 10, B = ({
6
+ const k = 100, E = 140, v = 10, j = ({
7
7
  data: u,
8
8
  hoveredId: h,
9
- onClick: s,
10
- onMouseEnter: a,
9
+ onClick: a,
10
+ onMouseEnter: s,
11
11
  onMouseLeave: l,
12
12
  selectedId: i,
13
13
  size: t = 300,
@@ -16,10 +16,10 @@ const k = 100, E = 140, v = 10, B = ({
16
16
  const f = S();
17
17
  let r = 0;
18
18
  const g = (o, n) => {
19
- (o.key === "Enter" || o.key === " ") && (o.preventDefault(), s?.(n));
19
+ (o.key === "Enter" || o.key === " ") && (o.preventDefault(), a?.(n));
20
20
  }, y = (o) => {
21
- a?.(o);
22
- }, D = (o) => {
21
+ s?.(o);
22
+ }, w = (o) => {
23
23
  l?.(o);
24
24
  };
25
25
  return b.useEffect(() => {
@@ -45,11 +45,11 @@ const k = 100, E = 140, v = 10, B = ({
45
45
  /* @__PURE__ */ e("g", { children: u.map((o) => {
46
46
  const n = r;
47
47
  r = r + 2 * Math.PI * (o.value / 100);
48
- const w = r, R = I().cornerRadius(4)({
48
+ const D = r, R = I().cornerRadius(4)({
49
49
  innerRadius: k,
50
50
  outerRadius: E + (o.id === i || o.id === h ? v : 0),
51
51
  startAngle: n,
52
- endAngle: w,
52
+ endAngle: D,
53
53
  padAngle: 0.025
54
54
  });
55
55
  return /* @__PURE__ */ e(
@@ -60,11 +60,11 @@ const k = 100, E = 140, v = 10, B = ({
60
60
  className: "arc-outer",
61
61
  d: R,
62
62
  fill: o.color,
63
- onBlur: () => D(o.id),
64
- onClick: () => s?.(o.id),
63
+ onBlur: () => w(o.id),
64
+ onClick: () => a?.(o.id),
65
65
  onFocus: () => y(o.id),
66
66
  onKeyDown: (A) => g(A, o.id),
67
- onMouseEnter: () => a?.(o.id),
67
+ onMouseEnter: () => s?.(o.id),
68
68
  onMouseLeave: () => l?.(o.id),
69
69
  role: "button",
70
70
  style: {
@@ -80,7 +80,7 @@ const k = 100, E = 140, v = 10, B = ({
80
80
  }
81
81
  )
82
82
  ] });
83
- }, j = B;
83
+ };
84
84
  export {
85
85
  j as D
86
86
  };