@mx-cartographer/experiences 8.0.25 → 8.1.0

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 (146) hide show
  1. package/CHANGELOG.md +4 -9
  2. package/dist/{AccountApi-ChQr5PAZ.mjs → AccountApi-WEM2M9tg.mjs} +1 -1
  3. package/dist/{AccountDetailsHeader-D9gbTbUt.mjs → AccountDetailsHeader-IPRH6Wja.mjs} +2 -2
  4. package/dist/{AccountFields-CxqONzjY.mjs → AccountFields-BbPSfzru.mjs} +3 -3
  5. package/dist/{AccountListItem-D9WJDbZ1.mjs → AccountListItem-qpACFl6i.mjs} +2 -2
  6. package/dist/{AccountStore-B7zfcad7.mjs → AccountStore-BeEiLNhW.mjs} +2 -2
  7. package/dist/Analytics-CjZ0emfs.mjs +53 -0
  8. package/dist/{Fetch-B6tMJC1r.mjs → ApiEndpoints-C5IA97i7.mjs} +48 -50
  9. package/dist/{BeatApi-EFHXULDx.mjs → BeatApi-C6pBa0Rb.mjs} +1 -1
  10. package/dist/{BeatStore-C6CAT-ce.mjs → BeatStore-DuvvrljY.mjs} +1 -1
  11. package/dist/{BudgetUtil-DZpOoZQa.mjs → BudgetUtil-CLh4xtj4.mjs} +60 -60
  12. package/dist/CategoryApi-CogDFScz.mjs +29 -0
  13. package/dist/{CategorySelectorDrawer-Dc9Widy9.mjs → CategorySelectorDrawer-BG04ByUx.mjs} +1 -1
  14. package/dist/CategoryStore-Bp1kO9Z-.mjs +160 -0
  15. package/dist/{CategoryUtil-BVixr0d5.mjs → CategoryUtil-DKRCegQv.mjs} +1 -1
  16. package/dist/{CurrencyInput-DuMktPu3.mjs → CurrencyInput-BkNVHxSV.mjs} +14 -13
  17. package/dist/{CurrencyText-CA-E5N_y.mjs → CurrencyText-oqd6cX3M.mjs} +1 -1
  18. package/dist/{DateFormats-BMpMrZpW.mjs → DateFormats-CaOj_4eI.mjs} +1 -1
  19. package/dist/{DateUtil-wcYTmDRD.mjs → DateUtil-C57sqxn4.mjs} +1 -1
  20. package/dist/{EmbeddedCard-qwIhF1VP.mjs → EmbeddedCard-j7IGx3s1.mjs} +5 -5
  21. package/dist/{ExportCsvAction-CHCmCCqf.mjs → ExportCsvAction-7sjz7AXQ.mjs} +1 -1
  22. package/dist/FinstrongApi-FpmsS_sy.mjs +19 -0
  23. package/dist/{FinstrongStore-BQxXxxYD.mjs → FinstrongStore-DgyDJTEP.mjs} +121 -137
  24. package/dist/GlobalCopyApi-DkS-2Zf_.mjs +41 -0
  25. package/dist/Goal-MFBpoOIC.mjs +29 -0
  26. package/dist/{GoalStore-fgXt--2Y.mjs → GoalStore-DcaT4fM6.mjs} +81 -104
  27. package/dist/{Help-BkmSY96v.mjs → Help-cTsMzSQh.mjs} +1 -1
  28. package/dist/{LineChart-EAr5ox5U.mjs → LineChart-DkD_s9NN.mjs} +1 -1
  29. package/dist/Localization-C_HZg9tJ.mjs +15 -0
  30. package/dist/Localization-CkQ49EKr.mjs +26 -0
  31. package/dist/{ManageIncome-DqqI9HB1.mjs → ManageIncome-DwSE_a8L.mjs} +20 -20
  32. package/dist/MerchantApi-D8ahYxiG.mjs +15 -0
  33. package/dist/MerchantStore-CyZTv-BM.mjs +26 -0
  34. package/dist/{NetWorthStore-BqZ44-4M.mjs → NetWorthStore-Ba3q3VcH.mjs} +1 -1
  35. package/dist/NotificationApi-DF0obHoR.mjs +20 -0
  36. package/dist/{NotificationSettings-DBT37CVB.mjs → NotificationSettings-DB-eNgSv.mjs} +3 -3
  37. package/dist/NotificationStore-DlAM5Ue0.mjs +69 -0
  38. package/dist/{NumberFormatting-QCaNwbjv.mjs → NumberFormatting-CyrvFgfd.mjs} +1 -1
  39. package/dist/{OriginalBalanceAction-DjpvVVFz.mjs → OriginalBalanceAction-AB1TGb5P.mjs} +2 -2
  40. package/dist/{RecurringSettings-OBGLelZQ.mjs → RecurringSettings-CZKeZC4m.mjs} +8 -8
  41. package/dist/{RecurringTransactions-BbZ6MQsX.mjs → RecurringTransactions-kzlU8OFY.mjs} +5 -5
  42. package/dist/{RecurringTransactionsStore-BE_eUfTC.mjs → RecurringTransactionsStore-D62Dt2BF.mjs} +76 -90
  43. package/dist/{RepeatingTransaction-DF4vJn_v.mjs → RepeatingTransaction-D2gmBTd0.mjs} +3 -3
  44. package/dist/RepeatingTransactionsApi-BNZgZPLs.mjs +17 -0
  45. package/dist/SettingsApi-D9d7SLhB.mjs +22 -0
  46. package/dist/{SettingsStore-BoIoiRLj.mjs → SettingsStore-Dsz1mvd3.mjs} +41 -60
  47. package/dist/{SpendingData-Bz1bCWAs.mjs → SpendingData-CoZOmlZD.mjs} +1 -1
  48. package/dist/{SpendingLegend-CypdabwS.mjs → SpendingLegend-DljKEG69.mjs} +2 -2
  49. package/dist/{Transaction-C3Pg9TKf.mjs → Transaction-Cn5_iFm0.mjs} +2 -2
  50. package/dist/{TransactionApi-Ck5Ua-7F.mjs → TransactionApi-CLG2eSNe.mjs} +1 -1
  51. package/dist/{TransactionDetails-I1ny1ecc.mjs → TransactionDetails-CN-yZkin.mjs} +9 -9
  52. package/dist/{TransactionStore-BUsgGRL1.mjs → TransactionStore-6ovFO8P1.mjs} +10 -10
  53. package/dist/{TrendsStore-CYdTo7cN.mjs → TrendsStore-DZa6cyQC.mjs} +1 -1
  54. package/dist/{ViewMoreMicroCard-BJOZcYnB.mjs → ViewMoreMicroCard-BsEitNRJ.mjs} +10 -9
  55. package/dist/WidgetApi-C0BA2cFX.mjs +102 -0
  56. package/dist/{WidgetContainer-DYKMArWw.mjs → WidgetContainer-Bc75FqK7.mjs} +1 -1
  57. package/dist/accounts/index.d.ts +0 -1
  58. package/dist/accounts/index.es.js +63 -65
  59. package/dist/accounts/stores/AccountStore.d.ts +1 -1
  60. package/dist/budgets/index.es.js +11 -11
  61. package/dist/budgets/store/BudgetsStore.d.ts +1 -1
  62. package/dist/cashflow/index.d.ts +0 -1
  63. package/dist/cashflow/index.es.js +428 -449
  64. package/dist/categories/index.es.js +2 -2
  65. package/dist/categories/stores/CategoryStore.d.ts +2 -1
  66. package/dist/common/constants/index.d.ts +0 -1
  67. package/dist/common/index.d.ts +0 -1
  68. package/dist/common/index.es.js +389 -521
  69. package/dist/common/stores/AppDataStore.d.ts +2 -2
  70. package/dist/common/stores/ConnectStore.d.ts +1 -1
  71. package/dist/common/stores/GlobalCopyStore.d.ts +1 -1
  72. package/dist/common/stores/UserStore.d.ts +1 -1
  73. package/dist/common/utils/Localization.d.ts +0 -9
  74. package/dist/common/utils/index.d.ts +1 -2
  75. package/dist/{accounts → core}/api/AccountApi.d.ts +2 -2
  76. package/dist/{common → core}/api/AnalyticsApi.d.ts +1 -1
  77. package/dist/{common → core}/api/AppDataApi.d.ts +2 -2
  78. package/dist/{common → core}/api/BannerApi.d.ts +1 -1
  79. package/dist/{common → core}/api/BeatApi.d.ts +2 -2
  80. package/dist/{budgets → core}/api/BudgetsApi.d.ts +2 -2
  81. package/dist/{common → core}/api/CategoryApi.d.ts +2 -2
  82. package/dist/{finstrong → core}/api/FinstrongApi.d.ts +2 -2
  83. package/dist/{common → core}/api/GlobalCopyApi.d.ts +2 -2
  84. package/dist/{goals → core}/api/GoalApi.d.ts +2 -2
  85. package/dist/{help → core}/api/HelpApi.d.ts +2 -2
  86. package/dist/{investments → core}/api/HoldingApi.d.ts +2 -2
  87. package/dist/{merchants → core}/api/MerchantApi.d.ts +2 -2
  88. package/dist/{common → core}/api/NotificationApi.d.ts +2 -2
  89. package/dist/{recurringtransactions → core}/api/RepeatingTransactionsApi.d.ts +2 -2
  90. package/dist/{common → core}/api/ScheduledPaymentsApi.d.ts +2 -2
  91. package/dist/{settings → core}/api/SettingsApi.d.ts +2 -2
  92. package/dist/{transactions → core}/api/TransactionApi.d.ts +2 -2
  93. package/dist/{common → core}/api/UserApi.d.ts +2 -2
  94. package/dist/{common → core}/api/WidgetApi.d.ts +1 -1
  95. package/dist/core/api/index.d.ts +20 -0
  96. package/dist/{common → core}/constants/ApiEndpoints.d.ts +0 -2
  97. package/dist/core/constants/index.d.ts +1 -0
  98. package/dist/core/index.d.ts +2 -0
  99. package/dist/core/index.es.js +90 -38
  100. package/dist/{common → core}/utils/Fetch.d.ts +1 -1
  101. package/dist/core/utils/Localization.d.ts +9 -0
  102. package/dist/core/utils/index.d.ts +2 -0
  103. package/dist/debts/index.es.js +7 -7
  104. package/dist/{exportTransactionsToCSV-DgdB3TBt.mjs → exportTransactionsToCSV-Dnd5lVq7.mjs} +2 -2
  105. package/dist/finstrong/index.d.ts +0 -1
  106. package/dist/finstrong/index.es.js +16 -17
  107. package/dist/finstrong/stores/FinstrongStore.d.ts +1 -1
  108. package/dist/goals/index.d.ts +0 -1
  109. package/dist/goals/index.es.js +50 -51
  110. package/dist/goals/stores/GoalStore.d.ts +1 -1
  111. package/dist/help/index.es.js +2 -2
  112. package/dist/help/store/HelpStore.d.ts +1 -1
  113. package/dist/insights/index.es.js +6 -6
  114. package/dist/insights/store/BeatStore.d.ts +1 -1
  115. package/dist/investments/index.es.js +2 -2
  116. package/dist/investments/stores/HoldingStore.d.ts +1 -1
  117. package/dist/merchants/index.es.js +1 -1
  118. package/dist/merchants/stores/MerchantStore.d.ts +1 -1
  119. package/dist/microinsights/index.es.js +1 -1
  120. package/dist/microinsights/stores/CopyStore.d.ts +1 -1
  121. package/dist/microinsights/stores/InsightsMicroWidgetStore.d.ts +1 -1
  122. package/dist/networth/index.es.js +8 -8
  123. package/dist/networth/stores/NetWorthStore.d.ts +1 -1
  124. package/dist/notifications/index.es.js +5 -5
  125. package/dist/notifications/stores/NotificationStore.d.ts +2 -1
  126. package/dist/recurringtransactions/index.es.js +26 -25
  127. package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +1 -1
  128. package/dist/settings/index.d.ts +0 -1
  129. package/dist/settings/index.es.js +65 -66
  130. package/dist/settings/stores/SettingsStore.d.ts +2 -2
  131. package/dist/spending/index.es.js +6 -6
  132. package/dist/transactions/index.d.ts +0 -1
  133. package/dist/transactions/index.es.js +22 -24
  134. package/dist/transactions/stores/TransactionStore.d.ts +3 -2
  135. package/dist/trends/index.es.js +14 -14
  136. package/package.json +1 -1
  137. package/dist/CategoryStore-FTxUbn0f.mjs +0 -186
  138. package/dist/Goal-0loDagc5.mjs +0 -6
  139. package/dist/Localization-CPkpIwIx.mjs +0 -37
  140. package/dist/MerchantStore-BzGi4JAZ.mjs +0 -37
  141. package/dist/NotificationStore-D_e8zo5M.mjs +0 -86
  142. package/dist/cashflow/api/CashflowApi.d.ts +0 -13
  143. package/dist/common/api/LocalizedCopyApi.d.ts +0 -8
  144. package/dist/common/api/index.d.ts +0 -10
  145. package/dist/repeatingTransactions-DHIG94pi.mjs +0 -4
  146. package/dist/useCombineEvents-Bqojlv8q.mjs +0 -92
@@ -1,28 +1,10 @@
1
- import { makeAutoObservable as N, runInAction as l } from "mobx";
2
- import { F as D, A as r } from "./Fetch-B6tMJC1r.mjs";
3
- import { B as f, A as n, I as i } from "./Notification-DTNYSd8P.mjs";
4
- import { T as m } from "./TransactionApi-Ck5Ua-7F.mjs";
5
- class y {
6
- fetchInstance;
7
- constructor(e, t, o) {
8
- this.fetchInstance = new D(e, t, void 0, o);
9
- }
10
- deleteDevice = async (e) => this.fetchInstance.delete(`${r.DEVICES}/${e}`).then((t) => t);
11
- generateDeviceToken = async () => this.fetchInstance.get(`${r.USER}/mobile_token`).then((e) => e.mobile_token);
12
- getDevices = async () => this.fetchInstance.get(r.DEVICES).then((e) => e.map((t) => t.device));
13
- getNotificationProfiles = async () => this.fetchInstance.get(r.NOTIFICATION_PROFILES).then((e) => e.notification_profiles);
14
- // verifications endpoints respond with HTTP status codes; they error otherwise
15
- sendEmailVerification = async () => this.fetchInstance.post(r.EMAIL_VERIFICATIONS);
16
- sendPhoneVerification = async () => this.fetchInstance.post(r.PHONE_VERIFICATIONS + "/deliver");
17
- verifyPhoneToken = async (e) => this.fetchInstance.post(r.PHONE_VERIFICATIONS + "/verify", { sms_verification_token: e }).then((t) => ({ verified: t.verified }));
18
- updateDevice = async (e) => this.fetchInstance.put(`${r.DEVICES}/${e.guid}`, e).then((t) => t.device);
19
- updateNotificationProfile = async (e) => this.fetchInstance.put(`${r.NOTIFICATION_PROFILES}/${e.guid}`, e).then((t) => t.notification_profile);
20
- updateUserCommunicationProfile = async (e) => this.fetchInstance.put(r.USER_COMMUNICATION_PROFILE, e).then((t) => t.user_communication_profile);
21
- getInsightsNotificationProfiles = async () => this.fetchInstance.get(`${r.NOTIFICATION_PROFILES}/${r.INSIGHTS_NOTIFICATION_PROFILES}`).then((e) => e);
22
- }
23
- const v = "PARENT-ENTITY", C = (s, e) => ({
24
- [f.BudgetExceeded]: e.notification_budget_exceeded,
25
- [f.BudgetOffTarget]: e.notification_budget_off_target,
1
+ import { makeAutoObservable as w, runInAction as s } from "mobx";
2
+ import { S as g } from "./SettingsApi-D9d7SLhB.mjs";
3
+ import { B as u, A as n, I as i } from "./Notification-DTNYSd8P.mjs";
4
+ import { T as m } from "./TransactionApi-CLG2eSNe.mjs";
5
+ const y = "PARENT-ENTITY", D = (c, e) => ({
6
+ [u.BudgetExceeded]: e.notification_budget_exceeded,
7
+ [u.BudgetOffTarget]: e.notification_budget_off_target,
26
8
  [n.DebtPaymentReminder]: e.notification_debt_payment_reminder,
27
9
  [n.AccountBalanceLow]: e.notification_low_balance,
28
10
  [n.AccountDepositLargePosted]: e.notification_large_deposit,
@@ -53,36 +35,36 @@ const v = "PARENT-ENTITY", C = (s, e) => ({
53
35
  [i.TransactionExpenseLarge]: e.large_transaction,
54
36
  [i.PromotionalCampaignMessages]: e.promotional_campaign_messages,
55
37
  [i.TransparentOverdraft]: e.transparent_overdraft
56
- })[s] || "", R = (s, e, t, o, d, p) => {
57
- const g = [], {
58
- email_notifications_enabled: I,
59
- sms_notifications_enabled: P,
60
- push_notifications_enabled: T
38
+ })[c] || "", R = (c, e, t, o, l, h) => {
39
+ const p = [], {
40
+ email_notifications_enabled: v,
41
+ sms_notifications_enabled: b,
42
+ push_notifications_enabled: P
61
43
  } = e, {
62
- opted_out_of_email_notifications: b,
63
- opted_out_of_sms_notifications: E,
64
- opted_out_of_push_notifications: A
65
- } = d;
66
- for (const a of o.filter((u) => u.entity_guid === v)) {
67
- const u = C(a.notification_type, t), S = o.filter(
68
- (c) => c.entity_guid !== v && c.notification_type === a.notification_type && s.some((h) => h.guid === c.entity_guid)
44
+ opted_out_of_email_notifications: T,
45
+ opted_out_of_sms_notifications: A,
46
+ opted_out_of_push_notifications: S
47
+ } = l;
48
+ for (const r of o.filter((d) => d.entity_guid === y)) {
49
+ const d = D(r.notification_type, t), E = o.filter(
50
+ (a) => a.entity_guid !== y && a.notification_type === r.notification_type && c.some((f) => f.guid === a.entity_guid)
69
51
  ), _ = [];
70
- I && !b && a.email_channel && p.email && _.push(t.delivery_method_email_label), P && !E && a.sms_channel && p.phone && _.push(t.delivery_method_sms_label), T && !A && a.push_channel && _.push(t.delivery_method_push_label), g.push({
71
- ...a,
72
- children: S.map((c) => ({
73
- ...c,
74
- account: s.find((h) => h.guid === c.entity_guid),
75
- label: u
52
+ v && !T && r.email_channel && h.email && _.push(t.delivery_method_email_label), b && !A && r.sms_channel && h.phone && _.push(t.delivery_method_sms_label), P && !S && r.push_channel && _.push(t.delivery_method_push_label), p.push({
53
+ ...r,
54
+ children: E.map((a) => ({
55
+ ...a,
56
+ account: c.find((f) => f.guid === a.entity_guid),
57
+ label: d
76
58
  })),
77
59
  deliveryMethodsLabel: _.join(", "),
78
- label: u
60
+ label: d
79
61
  });
80
62
  }
81
- return g;
63
+ return p;
82
64
  };
83
- class x {
65
+ class L {
84
66
  globalStore;
85
- api = new y("/", "");
67
+ api = new g("/", "");
86
68
  transactionApi = new m("/", "");
87
69
  alert = { message: "", severity: void 0 };
88
70
  devices = [];
@@ -90,11 +72,11 @@ class x {
90
72
  selectedRule = void 0;
91
73
  transactionRules = [];
92
74
  constructor(e) {
93
- this.globalStore = e, this.api = new y(e.endpoint, e.sessionToken, e.onError), this.transactionApi = new m(
75
+ this.globalStore = e, this.api = new g(e.endpoint, e.sessionToken, e.onError), this.transactionApi = new m(
94
76
  e.endpoint,
95
77
  e.sessionToken,
96
78
  e.onError
97
- ), N(this);
79
+ ), w(this);
98
80
  }
99
81
  get accountProfiles() {
100
82
  const e = this.globalStore.appDataStore.clientCommunicationProfile;
@@ -105,7 +87,7 @@ class x {
105
87
  get budgetProfiles() {
106
88
  const e = this.globalStore.appDataStore.clientCommunicationProfile;
107
89
  return this.detailedNotificationProfiles.filter(
108
- (t) => t.notification_type === f.BudgetExceeded && e.budget_exceeded_notifications_enabled || t.notification_type === f.BudgetOffTarget && e.budget_off_target_notifications_enabled
90
+ (t) => t.notification_type === u.BudgetExceeded && e.budget_exceeded_notifications_enabled || t.notification_type === u.BudgetOffTarget && e.budget_off_target_notifications_enabled
109
91
  );
110
92
  }
111
93
  get insightsProfiles() {
@@ -136,7 +118,7 @@ class x {
136
118
  try {
137
119
  await this.api.deleteDevice(e);
138
120
  const t = this.devices.findIndex((o) => o.guid === e);
139
- return t >= 0 && l(() => {
121
+ return t >= 0 && s(() => {
140
122
  this.devices.splice(t, 1);
141
123
  }), { success: !0 };
142
124
  } catch {
@@ -160,7 +142,7 @@ class x {
160
142
  loadDevices = async () => {
161
143
  try {
162
144
  const e = await this.api.getDevices();
163
- l(() => {
145
+ s(() => {
164
146
  this.devices = e;
165
147
  });
166
148
  } catch (e) {
@@ -170,7 +152,7 @@ class x {
170
152
  loadNotificationProfiles = async () => {
171
153
  try {
172
154
  const e = await this.api.getNotificationProfiles();
173
- l(() => {
155
+ s(() => {
174
156
  this.notificationProfiles = e;
175
157
  });
176
158
  } catch (e) {
@@ -180,7 +162,7 @@ class x {
180
162
  loadTransactionRules = async () => {
181
163
  try {
182
164
  const e = await this.transactionApi.getTransactionRules();
183
- l(() => {
165
+ s(() => {
184
166
  this.transactionRules = e;
185
167
  });
186
168
  } catch (e) {
@@ -207,8 +189,8 @@ class x {
207
189
  };
208
190
  updateDevice = async (e) => {
209
191
  try {
210
- const t = await this.api.updateDevice(e), o = this.devices.findIndex((d) => d.guid === e.guid);
211
- return o >= 0 && l(() => {
192
+ const t = await this.api.updateDevice(e), o = this.devices.findIndex((l) => l.guid === e.guid);
193
+ return o >= 0 && s(() => {
212
194
  this.devices[o] = t;
213
195
  }), { success: !0 };
214
196
  } catch (t) {
@@ -217,8 +199,8 @@ class x {
217
199
  };
218
200
  updateNotificationProfile = async (e) => {
219
201
  try {
220
- const t = await this.api.updateNotificationProfile(e), o = this.notificationProfiles.findIndex((d) => d.guid === e.guid);
221
- o >= 0 && l(() => {
202
+ const t = await this.api.updateNotificationProfile(e), o = this.notificationProfiles.findIndex((l) => l.guid === e.guid);
203
+ o >= 0 && s(() => {
222
204
  this.notificationProfiles[o] = t;
223
205
  });
224
206
  } catch (t) {
@@ -264,6 +246,5 @@ class x {
264
246
  };
265
247
  }
266
248
  export {
267
- y as S,
268
- x as a
249
+ L as S
269
250
  };
@@ -4,7 +4,7 @@ import { startOfMonth as _ } from "date-fns/startOfMonth";
4
4
  import { subMonths as y } from "date-fns/subMonths";
5
5
  import { endOfMonth as M } from "date-fns/endOfMonth";
6
6
  import { b as a, P as l } from "./Category-CevNQ03n.mjs";
7
- import { f as m, D as T } from "./DateFormats-BMpMrZpW.mjs";
7
+ import { f as m, D as T } from "./DateFormats-CaOj_4eI.mjs";
8
8
  const i = (e) => (e.top_level_category_guid === a.INCOME || e.category_guid === a.INCOME) && !h(e), C = (e) => !i(e) && !f(e), p = (e) => l.includes(e.top_level_category_guid) || l.includes(e.category_guid), f = (e) => e.top_level_category_guid === a.TRANSFER || e.category_guid === a.TRANSFER, h = (e) => e.top_level_category_guid === a.INVESTMENTS || e.category_guid === a.INVESTMENTS, N = (e) => !i(e) && !p(e) && !f(e) && !h(e), w = (e) => e.filter((r) => r.category_guid === r.top_level_category_guid), F = (e, r) => {
9
9
  if (r === 0) return 0;
10
10
  const o = (e - r) / r;
@@ -1,4 +1,4 @@
1
- import { b as _ } from "./CategoryUtil-BVixr0d5.mjs";
1
+ import { b as _ } from "./CategoryUtil-DKRCegQv.mjs";
2
2
  import { b as p } from "./Category-CevNQ03n.mjs";
3
3
  import { jsxs as f, Fragment as N, jsx as d } from "react/jsx-runtime";
4
4
  import T from "react";
@@ -12,7 +12,7 @@ import { D as j } from "./Donut-CpxJlVvJ.mjs";
12
12
  import { u as R } from "./useAriaLive-MkYebyUR.mjs";
13
13
  import { u as v } from "./hooks-BxkfR-Ff.mjs";
14
14
  import { u as V } from "./useScreenSize-CUcpY7aJ.mjs";
15
- import { f as b } from "./NumberFormatting-QCaNwbjv.mjs";
15
+ import { f as b } from "./NumberFormatting-CyrvFgfd.mjs";
16
16
  const D = 5, B = (i, l, g, m) => m.reduce((o, n) => {
17
17
  const a = i.find((s) => s.guid === n.category_guid);
18
18
  if (!a) return o;
@@ -1,5 +1,5 @@
1
1
  var E = /* @__PURE__ */ ((D) => (D[D.CREDIT = 1] = "CREDIT", D[D.DEBIT = 2] = "DEBIT", D))(E || {}), I = /* @__PURE__ */ ((D) => (D[D.POSTED = 1] = "POSTED", D[D.PENDING = 2] = "PENDING", D))(I || {});
2
2
  export {
3
- I as T,
4
- E as a
3
+ E as T,
4
+ I as a
5
5
  };
@@ -1,4 +1,4 @@
1
- import { F as g, A as e } from "./Fetch-B6tMJC1r.mjs";
1
+ import { F as g, A as e } from "./ApiEndpoints-C5IA97i7.mjs";
2
2
  class u {
3
3
  fetchInstance;
4
4
  constructor(n, t, a) {
@@ -12,13 +12,13 @@ import { endOfMonth as Pe } from "date-fns/endOfMonth";
12
12
  import { getUnixTime as Ae } from "date-fns/getUnixTime";
13
13
  import { isBefore as ze } from "date-fns/isBefore";
14
14
  import { startOfMonth as Ne } from "date-fns/startOfMonth";
15
- import { g as Ve, C as We, a as Ye, b as je, i as qe } from "./BudgetUtil-DZpOoZQa.mjs";
15
+ import { l as Ve, C as We, c as Ye, d as je, i as qe } from "./BudgetUtil-CLh4xtj4.mjs";
16
16
  import ue from "@mui/material/Button";
17
17
  import Qe from "@mui/material/FormGroup";
18
18
  import de from "@mui/material/IconButton";
19
19
  import Ge from "@mui/material/TextField";
20
20
  import { u as fe } from "./useAriaLive-MkYebyUR.mjs";
21
- import { O as C } from "./exportTransactionsToCSV-DgdB3TBt.mjs";
21
+ import { O as C } from "./exportTransactionsToCSV-Dnd5lVq7.mjs";
22
22
  import { u as v, h as M, m as Xe, d as Ze, l as Oe, g as k, b as Je, o as et } from "./hooks-BxkfR-Ff.mjs";
23
23
  import { A as j } from "./Analytics-0Xm_BjHU.mjs";
24
24
  import tt from "@mui/material/ToggleButton";
@@ -28,22 +28,22 @@ import q from "@mui/material/Avatar";
28
28
  import U from "@mui/material/ListItem";
29
29
  import Q from "@mui/material/ListItemAvatar";
30
30
  import z from "@mui/material/ListItemText";
31
- import { f as Le, D as we } from "./DateFormats-BMpMrZpW.mjs";
31
+ import { f as Le, D as we } from "./DateFormats-CaOj_4eI.mjs";
32
32
  import { BarChart as ot } from "@mui/x-charts";
33
- import { b as it, T as st, u as oe, c as lt, d as ct, E as dt, C as ut } from "./EmbeddedCard-qwIhF1VP.mjs";
33
+ import { b as it, T as st, u as oe, c as lt, d as ct, E as dt, C as ut } from "./EmbeddedCard-j7IGx3s1.mjs";
34
34
  import X from "@mui/material/ListItemButton";
35
35
  import Z from "@mui/material/ListItemIcon";
36
- import { a as $e } from "./CategorySelectorDrawer-Dc9Widy9.mjs";
36
+ import { a as $e } from "./CategorySelectorDrawer-BG04ByUx.mjs";
37
37
  import { D as ne } from "./Dialog-Ck34yr-d.mjs";
38
- import { b as D } from "./Localization-CPkpIwIx.mjs";
38
+ import { b as D } from "./Localization-CkQ49EKr.mjs";
39
39
  import { D as me } from "./Drawer-Bbe4AMB1.mjs";
40
- import { f as W } from "./NumberFormatting-QCaNwbjv.mjs";
40
+ import { f as W } from "./NumberFormatting-CyrvFgfd.mjs";
41
41
  import mt from "@mui/material/styles/useTheme";
42
42
  import Re from "@mui/material/InputAdornment";
43
43
  import _t from "@mui/material/Checkbox";
44
- import { i as pt } from "./DateUtil-wcYTmDRD.mjs";
44
+ import { i as pt } from "./DateUtil-C57sqxn4.mjs";
45
45
  import xe from "@mui/material/Grid";
46
- import { C as gt } from "./CurrencyInput-DuMktPu3.mjs";
46
+ import { C as gt } from "./CurrencyInput-BkNVHxSV.mjs";
47
47
  import ht from "@mui/material/Switch";
48
48
  import { L as yt } from "./Loader-D3rjKx72.mjs";
49
49
  var ce = /* @__PURE__ */ ((t) => (t[t.Category = 0] = "Category", t[t.Date = 1] = "Date", t[t.Memo = 2] = "Memo", t[t.Tags = 3] = "Tags", t))(ce || {}), se = /* @__PURE__ */ ((t) => (t[t.MerchantBudget = 0] = "MerchantBudget", t[t.SplitTransaction = 1] = "SplitTransaction", t[t.HideTransaction = 2] = "HideTransaction", t[t.MerchantLogo = 3] = "MerchantLogo", t))(se || {});
@@ -12,16 +12,16 @@ import { isBefore as V } from "date-fns/isBefore";
12
12
  import { startOfMonth as u } from "date-fns/startOfMonth";
13
13
  import { startOfToday as m } from "date-fns/startOfToday";
14
14
  import { subDays as v } from "date-fns/subDays";
15
- import { O as n, f as Y } from "./exportTransactionsToCSV-DgdB3TBt.mjs";
16
- import { T as D } from "./TransactionApi-Ck5Ua-7F.mjs";
15
+ import { B as D } from "./BeatApi-C6pBa0Rb.mjs";
16
+ import { O as n, f as Y } from "./exportTransactionsToCSV-Dnd5lVq7.mjs";
17
+ import { T as R } from "./TransactionApi-CLG2eSNe.mjs";
17
18
  import { b as F } from "./Category-CevNQ03n.mjs";
18
- import { T as y, a as b } from "./Transaction-C3Pg9TKf.mjs";
19
+ import { a as y, T as b } from "./Transaction-Cn5_iFm0.mjs";
19
20
  import { format as W } from "date-fns/format";
20
21
  import { fromUnixTime as $ } from "date-fns/fromUnixTime";
21
- import { f as C, D as O, O as k } from "./DateFormats-BMpMrZpW.mjs";
22
- import { f as z } from "./NumberFormatting-QCaNwbjv.mjs";
22
+ import { f as C, D as O, O as k } from "./DateFormats-CaOj_4eI.mjs";
23
+ import { f as z } from "./NumberFormatting-CyrvFgfd.mjs";
23
24
  import { endOfMonth as X } from "date-fns/endOfMonth";
24
- import { B as R } from "./BeatApi-EFHXULDx.mjs";
25
25
  const j = ({
26
26
  checked: l = !1,
27
27
  label: t,
@@ -461,8 +461,8 @@ class st {
461
461
  class yt {
462
462
  globalStore;
463
463
  uiStore;
464
- api = new D("/", "");
465
- beatApi = new R("/", "");
464
+ api = new R("/", "");
465
+ beatApi = new D("/", "");
466
466
  associatedBeats = [];
467
467
  associatedBeatsLoaded = !1;
468
468
  associatedBeatsLoading = !1;
@@ -485,11 +485,11 @@ class yt {
485
485
  sortDirection = G.DESC;
486
486
  onAnalyticEvent = Z;
487
487
  constructor(t) {
488
- this.globalStore = t, this.uiStore = new st(), this.api = new D(
488
+ this.globalStore = t, this.uiStore = new st(), this.api = new R(
489
489
  t.endpoint,
490
490
  t.sessionToken,
491
491
  t.onError
492
- ), this.beatApi = new R(t.endpoint, t.sessionToken, t.onError), f(this);
492
+ ), this.beatApi = new D(t.endpoint, t.sessionToken, t.onError), f(this);
493
493
  }
494
494
  loadTransactionData = async () => {
495
495
  this.globalStore.accountStore.isAccountDataLoaded || await this.globalStore.accountStore.loadAccountData(), this.globalStore.categoryStore.categoriesLoaded || await this.globalStore.categoryStore.loadCategories(), await Promise.all([
@@ -12,7 +12,7 @@ import { differenceInCalendarMonths as v } from "date-fns/differenceInCalendarMo
12
12
  import { endOfMonth as D } from "date-fns/endOfMonth";
13
13
  import { subMonths as w } from "date-fns/subMonths";
14
14
  import { b as I, C as _, c as O } from "./Category-CevNQ03n.mjs";
15
- import { f as C, D as L } from "./DateFormats-BMpMrZpW.mjs";
15
+ import { f as C, D as L } from "./DateFormats-CaOj_4eI.mjs";
16
16
  const rt = ({
17
17
  onClick: e,
18
18
  leftIcon: t,
@@ -12,11 +12,12 @@ import { alpha as s, useTheme as j } from "@mui/material/styles";
12
12
  import { useInView as Re } from "react-intersection-observer";
13
13
  import { b as je } from "./Category-CevNQ03n.mjs";
14
14
  import se from "@mui/material/styles/useTheme";
15
- import { b as Ye } from "./Localization-CPkpIwIx.mjs";
15
+ import { b as Ye } from "./Localization-CkQ49EKr.mjs";
16
16
  import Xe from "@mui/material/CircularProgress";
17
17
  import { makeAutoObservable as ce, runInAction as Oe } from "mobx";
18
- import { G as Ce, b as Ze, u as Qe, a as qe } from "./useCombineEvents-Bqojlv8q.mjs";
19
- import { B as he } from "./BeatApi-EFHXULDx.mjs";
18
+ import { b as Ze, u as Qe, a as qe } from "./Analytics-CjZ0emfs.mjs";
19
+ import { G as Ce } from "./GlobalCopyApi-DkS-2Zf_.mjs";
20
+ import { B as he } from "./BeatApi-C6pBa0Rb.mjs";
20
21
  import { u as Je } from "./useWidgetLoadTimer-DgN1bTyu.mjs";
21
22
  import et from "@mui/material/Card";
22
23
  import tt from "@mui/material/CardActionArea";
@@ -1084,7 +1085,7 @@ const Y = h.createContext(null), lt = ({
1084
1085
  variant: l
1085
1086
  }
1086
1087
  );
1087
- }, ao = U(Pe), Be = ({
1088
+ }, so = U(Pe), Be = ({
1088
1089
  ariaLabel: t,
1089
1090
  heightOverrides: e,
1090
1091
  onCardClick: n,
@@ -1110,7 +1111,7 @@ const Y = h.createContext(null), lt = ({
1110
1111
  variant: i
1111
1112
  }
1112
1113
  );
1113
- }, so = U(Be), Dt = () => /* @__PURE__ */ o(
1114
+ }, co = U(Be), Dt = () => /* @__PURE__ */ o(
1114
1115
  H,
1115
1116
  {
1116
1117
  sx: {
@@ -1221,7 +1222,7 @@ const Y = h.createContext(null), lt = ({
1221
1222
  }
1222
1223
  )
1223
1224
  ] }) });
1224
- }, co = U(xt), vt = ({
1225
+ }, lo = U(xt), vt = ({
1225
1226
  ariaLabel: t,
1226
1227
  heightOverrides: e,
1227
1228
  isActiveCard: n,
@@ -1273,12 +1274,12 @@ export {
1273
1274
  bt as C,
1274
1275
  lt as I,
1275
1276
  Mt as M,
1276
- ao as N,
1277
+ so as N,
1277
1278
  ge as T,
1278
1279
  Pt as V,
1279
- so as Z,
1280
+ co as Z,
1280
1281
  Rt as a,
1281
- co as b,
1282
+ lo as b,
1282
1283
  Ct as c,
1283
1284
  J as d
1284
1285
  };
@@ -0,0 +1,102 @@
1
+ import { F as c, A as s } from "./ApiEndpoints-C5IA97i7.mjs";
2
+ var r = /* @__PURE__ */ ((n) => (n[n.Unknown = 0] = "Unknown", n[n.EveryWeek = 1] = "EveryWeek", n[n.EveryOtherWeek = 2] = "EveryOtherWeek", n[n.EveryMonth = 3] = "EveryMonth", n[n.EveryOtherMonth = 4] = "EveryOtherMonth", n[n.EveryQuarter = 5] = "EveryQuarter", n[n.EveryOtherQuarter = 6] = "EveryOtherQuarter", n[n.EveryYear = 7] = "EveryYear", n))(r || {});
3
+ class o {
4
+ fetchInstance;
5
+ constructor(t, e, a) {
6
+ this.fetchInstance = new c(t, e, void 0, a);
7
+ }
8
+ getAppData = async () => this.fetchInstance.get(s.APP_DATA).then((t) => t);
9
+ }
10
+ class u {
11
+ fetchInstance;
12
+ constructor(t) {
13
+ this.fetchInstance = new c(t, "", {
14
+ Accept: "application/json",
15
+ "Content-Type": "application/json"
16
+ });
17
+ }
18
+ getBanner = async (t) => {
19
+ try {
20
+ const e = `/banner/${t}/account_widget_banner`;
21
+ return this.fetchInstance?.get(e).then((a) => a.banner) ?? {};
22
+ } catch (e) {
23
+ return console.error("Error fetching banner:", e), null;
24
+ }
25
+ };
26
+ }
27
+ class d {
28
+ fetchInstance;
29
+ constructor(t, e, a) {
30
+ this.fetchInstance = new c(t, e, void 0, a);
31
+ }
32
+ addBudget = async (t, e, a = null) => this.fetchInstance.post(s.BUDGETS, {
33
+ amount: e,
34
+ category_guid: t.guid,
35
+ category_name: t.name,
36
+ parent_guid: a
37
+ }).then((h) => h.budget).catch((h) => {
38
+ throw h;
39
+ });
40
+ deleteBudget = async (t) => this.fetchInstance.delete(`${s.BUDGETS}/${t}`).then((e) => e).catch((e) => {
41
+ throw e;
42
+ });
43
+ getBudgets = async () => this.fetchInstance.get(s.BUDGETS).then((t) => t.budgets).catch((t) => t);
44
+ updateBudget = async (t) => this.fetchInstance.put(`${s.BUDGETS}/${t.guid}`, t).then((e) => e.budget).catch((e) => {
45
+ throw e;
46
+ });
47
+ addMerchantBudget = async (t, e) => this.fetchInstance.post(s.MERCHANT_BUDGETS, {
48
+ amount: e,
49
+ merchant_guid: t
50
+ }).then((a) => a.merchant_budget).catch((a) => {
51
+ throw a;
52
+ });
53
+ updateMerchantBudget = async (t, e) => this.fetchInstance.put(`${s.MERCHANT_BUDGETS}/${t}`, {
54
+ amount: e
55
+ }).then((a) => a.merchant_budget).catch((a) => {
56
+ throw a;
57
+ });
58
+ deleteMerchantBudget = async (t) => this.fetchInstance.delete(`${s.MERCHANT_BUDGETS}/${t}`).then((e) => e).catch((e) => {
59
+ throw e;
60
+ });
61
+ }
62
+ class g {
63
+ fetchInstance;
64
+ constructor(t, e, a) {
65
+ this.fetchInstance = new c(t, e, void 0, a);
66
+ }
67
+ createSupportTicket = async (t) => this.fetchInstance.post(s.SUPPORT_TICKETS, t).then((e) => e);
68
+ }
69
+ class I {
70
+ fetchInstance;
71
+ constructor(t, e, a) {
72
+ this.fetchInstance = new c(t, e, void 0, a);
73
+ }
74
+ getHoldings = async () => this.fetchInstance.get(s.HOLDINGS).then((t) => t.holdings);
75
+ updateHoldings = async (t) => this.fetchInstance.put(`${s.HOLDINGS}/${t.guid}`, t).then((e) => e.holding);
76
+ }
77
+ class f {
78
+ fetchInstance;
79
+ constructor(t, e, a) {
80
+ this.fetchInstance = new c(t, e, void 0, a);
81
+ }
82
+ getUserFeatures = async () => this.fetchInstance.get(s.USER_FEATURES).then((t) => t.user_features).catch((t) => t);
83
+ updateUser = async (t) => this.fetchInstance.put(s.USER, t).then((e) => e.user);
84
+ updateUserProfile = async (t) => this.fetchInstance.put(`${s.USER_PROFILES}/${t.guid}`, t).then((e) => e.user_profile);
85
+ }
86
+ class E {
87
+ fetchInstance;
88
+ constructor(t, e) {
89
+ this.fetchInstance = new c(t, e);
90
+ }
91
+ requestWidgetUrl = async (t) => this.fetchInstance.post(s.WIDGET_URLS, t).then((e) => e.widget_url);
92
+ }
93
+ export {
94
+ o as A,
95
+ u as B,
96
+ g as H,
97
+ r as R,
98
+ f as U,
99
+ E as W,
100
+ d as a,
101
+ I as b
102
+ };
@@ -38,7 +38,7 @@ import { u as Ye } from "./useAriaLive-MkYebyUR.mjs";
38
38
  import { D as Ee } from "./Dialog-Ck34yr-d.mjs";
39
39
  import { D as Ae } from "./Drawer-Bbe4AMB1.mjs";
40
40
  import { u as ie } from "./useScreenSize-CUcpY7aJ.mjs";
41
- import { f as M, D as v } from "./DateFormats-BMpMrZpW.mjs";
41
+ import { f as M, D as v } from "./DateFormats-CaOj_4eI.mjs";
42
42
  import { L as Be } from "./Loader-D3rjKx72.mjs";
43
43
  import { A as Oe } from "./Analytics-0Xm_BjHU.mjs";
44
44
  const Ne = (o) => {
@@ -6,6 +6,5 @@ export { default as AccountDetailsContent } from './components/detailsdrawer/Acc
6
6
  export { getAccountBalanceDetails, getAccountDetailFields } from './utils/AccountFields';
7
7
  export { FieldType, MemberConnectionStatus } from './constants/Accounts';
8
8
  export { useGetMergeableAccounts } from './hooks/useGetMergeableAccounts';
9
- export { AccountApi } from './api/AccountApi';
10
9
  export { AccountStore } from './stores/AccountStore';
11
10
  export { useAccountUiStore } from './hooks/useUiStore';