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

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 (76) hide show
  1. package/dist/{Account-BDXA6PWh.mjs → Account-Cp30A3ad.mjs} +1 -1
  2. package/dist/{AccountDetailsContent-CUztd3-b.mjs → AccountDetailsContent-C1HumFnW.mjs} +16 -16
  3. package/dist/{AccountDetailsHeader-i3KFhNuo.mjs → AccountDetailsHeader-NMx79DGs.mjs} +5 -5
  4. package/dist/{AccountFields-QZspYAji.mjs → AccountFields-CW6cIthP.mjs} +7 -5
  5. package/dist/{AccountListItem-DX5upmCS.mjs → AccountListItem-DxmAs98Z.mjs} +4 -4
  6. package/dist/{AccountStore-BcnDpyLL.mjs → AccountStore-hIs-yA6W.mjs} +3 -3
  7. package/dist/{Accounts-DXfZotRC.mjs → Accounts-DUHkUyK4.mjs} +1 -1
  8. package/dist/{BudgetUtil-Df2nII9u.mjs → BudgetUtil-CIDAPPPT.mjs} +1 -1
  9. package/dist/{CashflowStore-D9Dpuz7X.mjs → CashflowStore-naOtJcwo.mjs} +12 -12
  10. package/dist/{Category-CevNQ03n.mjs → Category-Ccoew_sA.mjs} +2 -2
  11. package/dist/{CategorySelectorDrawer-DqJK_rrL.mjs → CategorySelectorDrawer-DqDAA_5I.mjs} +3 -3
  12. package/dist/{CategoryStore-DTgyAMM7.mjs → CategoryStore-MUwRWH9e.mjs} +2 -2
  13. package/dist/{CategoryUtil-C5cR-nfQ.mjs → CategoryUtil-DfVKKkRf.mjs} +4 -4
  14. package/dist/{ConnectDrawer-BIbTqYOH.mjs → ConnectDrawer-Dn1MlqLz.mjs} +28 -28
  15. package/dist/{ConnectionsDrawer-BFfY3_zB.mjs → ConnectionsDrawer-CSo6AFkG.mjs} +2 -2
  16. package/dist/{CurrencyInput-BFKcs-_K.mjs → CurrencyInput-BrGvhgVK.mjs} +8 -8
  17. package/dist/{DateUtil-CBdcsyuk.mjs → DateUtil-CDPZw_-m.mjs} +1 -1
  18. package/dist/{DebtsStore-BbJB0nmu.mjs → DebtsStore-hi1cqrRk.mjs} +1 -1
  19. package/dist/{Dialog-BPTr3qHE.mjs → Dialog-CDV0kKxj.mjs} +24 -24
  20. package/dist/{Drawer-BEtCk82g.mjs → Drawer-Dqe5EqvA.mjs} +14 -14
  21. package/dist/{ExportCsvAction-DzTrtPzk.mjs → ExportCsvAction-CQ1grpwo.mjs} +3 -3
  22. package/dist/{FinstrongStore-BIrX0Xg2.mjs → FinstrongStore-dKZOZ2hM.mjs} +53 -53
  23. package/dist/{GoalStore-DpWY3gVb.mjs → GoalStore-CFeAJloA.mjs} +2 -2
  24. package/dist/{Help-DhcC-C05.mjs → Help-c-zHlDbv.mjs} +8 -8
  25. package/dist/{Help-BnPXM_N2.mjs → Help-i4OasOO-.mjs} +177 -180
  26. package/dist/{IconBacking-B9oC6uL2.mjs → IconBacking-DgT8DCeh.mjs} +11 -11
  27. package/dist/{ListItemAction-uobBrm_a.mjs → ListItemAction-BNCWQAN_.mjs} +1 -1
  28. package/dist/{Loader-DUaFpDGv.mjs → Loader-BSWSYqvn.mjs} +3 -3
  29. package/dist/{ManageIncome-NpXHhO1n.mjs → ManageIncome-D_qVX5dN.mjs} +8 -8
  30. package/dist/MicroWidgetContainer-BGpNl5ZS.mjs +45 -0
  31. package/dist/MiniWidgetContainer-D7MkHG15.mjs +56 -0
  32. package/dist/{NetWorthStore-lsuhEpn6.mjs → NetWorthStore-8FFC1Bs0.mjs} +4 -4
  33. package/dist/{NotificationSettings-CNmJWVeI.mjs → NotificationSettings-BsWiYD94.mjs} +14 -14
  34. package/dist/{OriginalBalanceAction-DK8_LkPz.mjs → OriginalBalanceAction-62e0mU_3.mjs} +2 -2
  35. package/dist/{RecurringSettings-CqZh1SQa.mjs → RecurringSettings-RfZ8Wuhh.mjs} +3 -3
  36. package/dist/{RecurringTransactions-BKcYmpv3.mjs → RecurringTransactions-Bhx56aA3.mjs} +36 -36
  37. package/dist/{RecurringTransactionsStore-Ni5tSQIO.mjs → RecurringTransactionsStore-D3EOKZ2B.mjs} +1 -1
  38. package/dist/{ResponsiveButton-DZFp78fJ.mjs → ResponsiveButton-C6KH8JH4.mjs} +9 -9
  39. package/dist/{SettingsStore-krIRNwHK.mjs → SettingsStore-BASMQSIp.mjs} +1 -1
  40. package/dist/{SingleSegmentDonut-BgbLgwHi.mjs → SingleSegmentDonut-PsRQPkmV.mjs} +5 -5
  41. package/dist/{SpendingData-BuJ03S9d.mjs → SpendingData-DPQ96k3x.mjs} +4 -4
  42. package/dist/{SpendingLegend-CjX-hX2O.mjs → SpendingLegend-CZzDb-7d.mjs} +3 -3
  43. package/dist/{StatusBar-BK_uYHAB.mjs → StatusBar-CPfSXe80.mjs} +6 -6
  44. package/dist/{TabContentContainer-j01JYR_7.mjs → TabContentContainer-CnMXkVqr.mjs} +8 -8
  45. package/dist/{TransactionDetails-5M2vfr59.mjs → TransactionDetails-Duv1X9ec.mjs} +9 -9
  46. package/dist/{TransactionStore-D-Q3BU9Z.mjs → TransactionStore-DgLrYW4C.mjs} +41 -58
  47. package/dist/{TrendsStore-BW9FGQeE.mjs → TrendsStore-_mRaFUdf.mjs} +37 -37
  48. package/dist/{User-wXzDI4M8.mjs → User-DqNX2GAK.mjs} +19 -19
  49. package/dist/{ViewMoreMicroCard-C0832BMe.mjs → ViewMoreMicroCard-CH9E-jOx.mjs} +68 -69
  50. package/dist/{WidgetContainer-BhQ1Kx2z.mjs → WidgetContainer-B1Jzb4XA.mjs} +33 -33
  51. package/dist/accounts/index.es.js +71 -71
  52. package/dist/analytics/index.es.js +7 -7
  53. package/dist/budgets/index.es.js +110 -110
  54. package/dist/cashflow/index.es.js +68 -68
  55. package/dist/categories/index.es.js +2 -2
  56. package/dist/common/index.es.js +248 -248
  57. package/dist/dashboard/index.es.js +7 -7
  58. package/dist/debts/index.es.js +12 -12
  59. package/dist/{exportTransactionsToCSV-Cz2t0lmA.mjs → exportTransactionsToCSV-BFpuIAXW.mjs} +3 -3
  60. package/dist/finstrong/index.es.js +18 -18
  61. package/dist/goals/index.es.js +19 -19
  62. package/dist/help/index.es.js +6 -6
  63. package/dist/investments/index.es.js +4 -4
  64. package/dist/merchants/index.es.js +12 -12
  65. package/dist/microinsights/index.es.js +1 -1
  66. package/dist/networth/index.es.js +11 -11
  67. package/dist/notifications/index.es.js +4 -4
  68. package/dist/recurringtransactions/index.es.js +16 -16
  69. package/dist/settings/index.es.js +62 -62
  70. package/dist/spending/index.es.js +26 -26
  71. package/dist/transactions/index.es.js +58 -58
  72. package/dist/trends/index.es.js +59 -59
  73. package/dist/{useAccountDisplayName-CFNF8766.mjs → useAccountDisplayName-usSZCQ7I.mjs} +1 -1
  74. package/package.json +16 -21
  75. package/dist/MicroWidgetContainer-DEiRnYVa.mjs +0 -45
  76. package/dist/MiniWidgetContainer-CmXpTylX.mjs +0 -56
@@ -1,17 +1,17 @@
1
- import { jsx as e, jsxs as g, Fragment as De } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as g, Fragment as xe } from "react/jsx-runtime";
2
2
  import u, { useEffect as ee, useState as J } from "react";
3
3
  import { observer as P } from "mobx-react-lite";
4
4
  import k from "@mui/material/Stack";
5
- import xe from "@mui/material/Button";
5
+ import De from "@mui/material/Button";
6
6
  import Le from "@mui/material/Typography";
7
- import { BarChart as Ve, Error as ae, Campaign as Ne, ChevronLeft as He, ChevronRight as fe } from "@mxenabled/mx-icons";
8
- import { L as ke } from "./Loader-DUaFpDGv.mjs";
7
+ import { BarChart as Ve, Error as ae, Campaign as Ne, ChevronLeft as He, ChevronRight as Ce } from "@mxenabled/mx-icons";
8
+ import { L as ke } from "./Loader-BSWSYqvn.mjs";
9
9
  import Z from "@mui/material/Box";
10
10
  import se from "@mui/material/IconButton";
11
11
  import { useTheme as Fe } from "@mui/material/styles";
12
12
  import { useInView as me } from "react-intersection-observer";
13
13
  import { P as Be, CategoryIcon as Ze, MerchantLogo as Pe } from "@mxenabled/mxui";
14
- import { b as be } from "./Category-CevNQ03n.mjs";
14
+ import { b as be } from "./Category-Ccoew_sA.mjs";
15
15
  import te from "@mui/material/styles/useTheme";
16
16
  import { b as Ge } from "./Localization-2MODESHW.mjs";
17
17
  import Ue from "@mui/material/CircularProgress";
@@ -79,7 +79,7 @@ const oe = {
79
79
  ...i,
80
80
  [ge(o)]: {
81
81
  action: L.MICRO_BEAT_CLICKED,
82
- category: x.BEAT_INTERACTION,
82
+ category: D.BEAT_INTERACTION,
83
83
  label: le(o),
84
84
  value: v
85
85
  }
@@ -90,7 +90,7 @@ const oe = {
90
90
  ...i,
91
91
  [Ie(o)]: {
92
92
  action: L.MICRO_BEAT_DISPLAYED,
93
- category: x.BEAT_INTERACTION,
93
+ category: D.BEAT_INTERACTION,
94
94
  label: le(o),
95
95
  value: v
96
96
  }
@@ -101,18 +101,17 @@ const oe = {
101
101
  ...i,
102
102
  [ye(o)]: {
103
103
  action: L.MICRO_BEAT_DISPLAYED_FIRST_TIME,
104
- category: x.BEAT_INTERACTION,
104
+ category: D.BEAT_INTERACTION,
105
105
  label: le(o),
106
106
  value: v
107
107
  }
108
108
  }),
109
109
  {}
110
- ), D = {
111
- CARD: "Card",
110
+ ), x = {
112
111
  CAROUSEL_CONTROL: "Carousel Control",
113
112
  MICRO_WIDGET: "Micro Widget",
114
113
  VIEW_MORE: "View More"
115
- }, x = {
114
+ }, D = {
116
115
  MICRO_WIDGET_INTERACTION: "Micro Widget Interaction",
117
116
  BEAT_INTERACTION: "Beat Interaction"
118
117
  }, S = {
@@ -138,21 +137,21 @@ const oe = {
138
137
  MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS: "Micro Widget Carousel No Relevant Insights"
139
138
  }, ue = {
140
139
  [H.MICRO_WIDGET_CAROUSEL]: {
141
- label: D.MICRO_WIDGET,
140
+ label: x.MICRO_WIDGET,
142
141
  name: H.MICRO_WIDGET_CAROUSEL,
143
142
  path: he.INSIGHTS_MICRO_WIDGET,
144
143
  value: v
145
144
  },
146
145
  // zero state
147
146
  [H.MICRO_WIDGET_CAROUSEL_ZERO_STATE]: {
148
- label: D.MICRO_WIDGET,
147
+ label: x.MICRO_WIDGET,
149
148
  name: H.MICRO_WIDGET_CAROUSEL_ZERO_STATE,
150
149
  path: he.INSIGHTS_MICRO_WIDGET,
151
150
  value: v
152
151
  },
153
152
  // no relevant cards
154
153
  [H.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS]: {
155
- label: D.MICRO_WIDGET,
154
+ label: x.MICRO_WIDGET,
156
155
  name: H.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS,
157
156
  path: "/micro-widget",
158
157
  value: v
@@ -161,39 +160,39 @@ const oe = {
161
160
  // carousel control interaction events - clicks and swipes
162
161
  [S.ON_CAROUSEL_BACK_CLICK]: {
163
162
  action: L.CONTROL_BACKWARD,
164
- category: x.MICRO_WIDGET_INTERACTION,
165
- label: D.CAROUSEL_CONTROL,
163
+ category: D.MICRO_WIDGET_INTERACTION,
164
+ label: x.CAROUSEL_CONTROL,
166
165
  value: v
167
166
  },
168
167
  [S.ON_CAROUSEL_FORWARD_CLICK]: {
169
168
  action: L.CONTROL_FORWARD,
170
- category: x.MICRO_WIDGET_INTERACTION,
171
- label: D.CAROUSEL_CONTROL,
169
+ category: D.MICRO_WIDGET_INTERACTION,
170
+ label: x.CAROUSEL_CONTROL,
172
171
  value: v
173
172
  },
174
173
  [S.ON_CAROUSEL_BACK_SWIPE]: {
175
174
  action: L.SWIPE_BACKWARD,
176
- category: x.MICRO_WIDGET_INTERACTION,
177
- label: D.CAROUSEL_CONTROL,
175
+ category: D.MICRO_WIDGET_INTERACTION,
176
+ label: x.CAROUSEL_CONTROL,
178
177
  value: v
179
178
  },
180
179
  [S.ON_CAROUSEL_FORWARD_SWIPE]: {
181
180
  action: L.SWIPE_FORWARD,
182
- category: x.MICRO_WIDGET_INTERACTION,
183
- label: D.CAROUSEL_CONTROL,
181
+ category: D.MICRO_WIDGET_INTERACTION,
182
+ label: x.CAROUSEL_CONTROL,
184
183
  value: v
185
184
  },
186
185
  // read more card events
187
186
  [S.ON_VIEW_MORE_CLICKED]: {
188
187
  action: L.MICRO_BEAT_CLICKED,
189
- category: x.BEAT_INTERACTION,
190
- label: D.VIEW_MORE,
188
+ category: D.BEAT_INTERACTION,
189
+ label: x.VIEW_MORE,
191
190
  value: v
192
191
  },
193
192
  [ve.ON_VIEW_MORE_VIEWED]: {
194
193
  action: L.MICRO_BEAT_DISPLAYED,
195
- category: x.BEAT_INTERACTION,
196
- label: D.VIEW_MORE,
194
+ category: D.BEAT_INTERACTION,
195
+ label: x.VIEW_MORE,
197
196
  value: v
198
197
  },
199
198
  ...Je(),
@@ -201,12 +200,12 @@ const oe = {
201
200
  ...tt()
202
201
  }, _e = async (i, o) => !o || !pe[i] ? null : o.sendAnalyticEvent(pe[i]).then((t) => t).catch((t) => {
203
202
  throw t;
204
- }), Ce = async (i, o) => !o || !ue[i] ? null : o.sendAnalyticsPageview(ue[i]).then((t) => t).catch((t) => {
203
+ }), fe = async (i, o) => !o || !ue[i] ? null : o.sendAnalyticsPageview(ue[i]).then((t) => t).catch((t) => {
205
204
  throw t;
206
205
  });
207
206
  class it {
208
207
  onAnalyticEvent = _e;
209
- onAnalyticPageView = Ce;
208
+ onAnalyticPageView = fe;
210
209
  beatApi = new de("/", "");
211
210
  constructor() {
212
211
  ie(this);
@@ -217,7 +216,7 @@ class it {
217
216
  throw a.status === 401 && l(), a;
218
217
  });
219
218
  }, this.onAnalyticPageView = (n, r) => {
220
- Ce(n, r).then((a) => a).catch((a) => {
219
+ fe(n, r).then((a) => a).catch((a) => {
221
220
  throw a.status === 401 && l(), a;
222
221
  });
223
222
  }, this.beatApi = new de(o, t);
@@ -261,13 +260,13 @@ const U = u.createContext(null), lt = ({
261
260
  icon: a,
262
261
  isActiveCard: c,
263
262
  isZeroState: h,
264
- onCardClick: C = () => {
263
+ onCardClick: f = () => {
265
264
  },
266
265
  showIcon: p,
267
266
  style: d = {},
268
267
  title: E,
269
268
  variant: s,
270
- widthOverrides: f
269
+ widthOverrides: C
271
270
  }, _) {
272
271
  const R = te(), [O, I] = u.useState(!1), { cardStyle: m, linkTextStyle: T } = d, y = s ? m : { border: "none", boxShadow: "none", ...m }, M = /* @__PURE__ */ e(
273
272
  Be,
@@ -306,7 +305,7 @@ const U = u.createContext(null), lt = ({
306
305
  role: "group",
307
306
  sx: {
308
307
  height: "100%",
309
- minWidth: f ? `${f}px` : "100%",
308
+ minWidth: C ? `${C}px` : "100%",
310
309
  fontFamily: R.typography.fontFamily
311
310
  },
312
311
  children: /* @__PURE__ */ e(
@@ -315,7 +314,7 @@ const U = u.createContext(null), lt = ({
315
314
  "aria-hidden": !c,
316
315
  "aria-label": t,
317
316
  id: "divButton",
318
- onClick: () => C(),
317
+ onClick: () => f(),
319
318
  onKeyDown: () => I(!1),
320
319
  onKeyUp: () => I(!0),
321
320
  ref: _,
@@ -1278,13 +1277,13 @@ const U = u.createContext(null), lt = ({
1278
1277
  isActiveCard: a,
1279
1278
  onCardClick: c,
1280
1279
  posthog: h,
1281
- showIcon: C,
1280
+ showIcon: f,
1282
1281
  variant: p,
1283
1282
  widthOverrides: d
1284
1283
  }) => {
1285
1284
  const { ref: E, inView: s } = me({
1286
1285
  threshold: Ae
1287
- }), { cardsCopy: f } = V(), { onEvent: _ } = z(), { updateBeat: R, updateOffer: O } = ht();
1286
+ }), { cardsCopy: C } = V(), { onEvent: _ } = z(), { updateBeat: R, updateOffer: O } = ht();
1288
1287
  ee(() => {
1289
1288
  s && (t.has_been_displayed ? _(Ie(t.template)) : (t.guid.startsWith("OFR") ? O({
1290
1289
  ...t,
@@ -1327,7 +1326,7 @@ const U = u.createContext(null), lt = ({
1327
1326
  return /* @__PURE__ */ e(
1328
1327
  j,
1329
1328
  {
1330
- actionText: t.micro_call_to_action || f.micro_card_cta,
1329
+ actionText: t.micro_call_to_action || C.micro_card_cta,
1331
1330
  ariaLabel: i,
1332
1331
  backgroundColor: o,
1333
1332
  description: t?.html_micro_description && t?.html_micro_description.length > 0 ? t.html_micro_description : t.html_description,
@@ -1338,13 +1337,13 @@ const U = u.createContext(null), lt = ({
1338
1337
  posthog: h,
1339
1338
  ref: E,
1340
1339
  showCTAColocatedWithText: l,
1341
- showIcon: C,
1340
+ showIcon: f,
1342
1341
  title: t.micro_title && t.micro_title.length > 0 ? t.micro_title : t.title,
1343
1342
  variant: p,
1344
1343
  widthOverrides: d
1345
1344
  }
1346
1345
  );
1347
- }, Ct = ({
1346
+ }, ft = ({
1348
1347
  currentBeatIndex: i,
1349
1348
  numBeats: o,
1350
1349
  onNextClick: t,
@@ -1354,7 +1353,7 @@ const U = u.createContext(null), lt = ({
1354
1353
  shouldApplyDotAnimation: a = !1,
1355
1354
  visibleCardsCount: c = 1
1356
1355
  }) => {
1357
- const h = Fe(), { carouselCopy: C } = V(), p = Math.floor(r) > n || i - c + 1 === 0, d = r < 0 || o - 1 === i, E = h.palette.grey[500], s = h.palette.primary.main;
1356
+ const h = Fe(), { carouselCopy: f } = V(), p = Math.floor(r) > n || i - c + 1 === 0, d = r < 0 || o - 1 === i, E = h.palette.grey[500], s = h.palette.primary.main;
1358
1357
  return /* @__PURE__ */ g(
1359
1358
  k,
1360
1359
  {
@@ -1374,7 +1373,7 @@ const U = u.createContext(null), lt = ({
1374
1373
  se,
1375
1374
  {
1376
1375
  "aria-disabled": p,
1377
- "aria-label": C.previous_insight_cta_aria,
1376
+ "aria-label": f.previous_insight_cta_aria,
1378
1377
  disabled: p,
1379
1378
  onClick: l,
1380
1379
  children: /* @__PURE__ */ e(
@@ -1387,7 +1386,7 @@ const U = u.createContext(null), lt = ({
1387
1386
  )
1388
1387
  }
1389
1388
  ),
1390
- Array.from({ length: o }).map((f, _) => {
1389
+ Array.from({ length: o }).map((C, _) => {
1391
1390
  const R = _ === i;
1392
1391
  return /* @__PURE__ */ e(
1393
1392
  Z,
@@ -1417,11 +1416,11 @@ const U = u.createContext(null), lt = ({
1417
1416
  se,
1418
1417
  {
1419
1418
  "aria-disabled": d,
1420
- "aria-label": C.next_insight_cta_aria,
1419
+ "aria-label": f.next_insight_cta_aria,
1421
1420
  disabled: d,
1422
1421
  onClick: t,
1423
1422
  children: /* @__PURE__ */ e(
1424
- fe,
1423
+ Ce,
1425
1424
  {
1426
1425
  style: {
1427
1426
  color: d ? E : s
@@ -1433,7 +1432,7 @@ const U = u.createContext(null), lt = ({
1433
1432
  ]
1434
1433
  }
1435
1434
  );
1436
- }, ft = ({
1435
+ }, Ct = ({
1437
1436
  activeCardIndex: i,
1438
1437
  beats: o,
1439
1438
  cardWidth: t,
@@ -1444,19 +1443,19 @@ const U = u.createContext(null), lt = ({
1444
1443
  showIcon: c,
1445
1444
  variant: h
1446
1445
  }) => {
1447
- const { carouselCopy: C } = V(), p = {
1446
+ const { carouselCopy: f } = V(), p = {
1448
1447
  showCTAColocatedWithText: l,
1449
1448
  heightOverrides: n,
1450
1449
  posthog: a,
1451
1450
  showIcon: c,
1452
1451
  variant: h
1453
1452
  };
1454
- return /* @__PURE__ */ g(De, { children: [
1453
+ return /* @__PURE__ */ g(xe, { children: [
1455
1454
  o.map((d, E) => {
1456
- const s = E + 1, f = o.length + 1, _ = Ge(
1457
- C.card_position_in_carousel_aria,
1455
+ const s = E + 1, C = o.length + 1, _ = Ge(
1456
+ f.card_position_in_carousel_aria,
1458
1457
  s.toString(),
1459
- f.toString()
1458
+ C.toString()
1460
1459
  ), R = d.micro_title && d.micro_title.length > 0, O = d.micro_description && d.micro_description.length > 0, I = R ? d.micro_title : d.title, m = O ? d.micro_description : d.description;
1461
1460
  return /* @__PURE__ */ e(
1462
1461
  _t,
@@ -1492,13 +1491,13 @@ const U = u.createContext(null), lt = ({
1492
1491
  posthog: a,
1493
1492
  showCarouselControls: c,
1494
1493
  showIcon: h,
1495
- showWithMargin: C = !0,
1494
+ showWithMargin: f = !0,
1496
1495
  variant: p,
1497
1496
  widthOverrides: d,
1498
1497
  visibleCardsCount: E = 1
1499
1498
  // Default to 1 card visible
1500
1499
  }) => {
1501
- const s = u.useRef(null), f = u.useRef(null), [_, R] = u.useState(0), [O, I] = u.useState(null), [m, T] = u.useState(null), [y, M] = u.useState(null), { carouselCopy: W } = V(), { onEvent: F } = z();
1500
+ const s = u.useRef(null), C = u.useRef(null), [_, R] = u.useState(0), [O, I] = u.useState(null), [m, T] = u.useState(null), [y, M] = u.useState(null), { carouselCopy: W } = V(), { onEvent: F } = z();
1502
1501
  u.useEffect(() => {
1503
1502
  if (s.current && !o) {
1504
1503
  const A = s.current.offsetWidth, b = 8;
@@ -1511,7 +1510,7 @@ const U = u.createContext(null), lt = ({
1511
1510
  M(B);
1512
1511
  }
1513
1512
  }, [E, s.current?.offsetWidth]), u.useEffect(() => {
1514
- const A = f.current?.offsetWidth;
1513
+ const A = C.current?.offsetWidth;
1515
1514
  if (typeof A == "number" && o) {
1516
1515
  const b = (G) => {
1517
1516
  const re = [
@@ -1525,14 +1524,14 @@ const U = u.createContext(null), lt = ({
1525
1524
  };
1526
1525
  M(b(A));
1527
1526
  const B = () => {
1528
- const G = f.current?.offsetWidth;
1527
+ const G = C.current?.offsetWidth;
1529
1528
  typeof G == "number" && M(b(G));
1530
1529
  };
1531
1530
  return window.addEventListener("resize", B), () => {
1532
1531
  window.removeEventListener("resize", B);
1533
1532
  };
1534
1533
  }
1535
- }, [o, f]);
1534
+ }, [o, C]);
1536
1535
  const K = () => {
1537
1536
  F(S.ON_CAROUSEL_FORWARD_CLICK, i), s.current && y && s.current.scrollTo({
1538
1537
  left: _ + y + 8,
@@ -1560,7 +1559,7 @@ const U = u.createContext(null), lt = ({
1560
1559
  {
1561
1560
  "aria-label": W.carousel_title,
1562
1561
  "aria-roledescription": "carousel",
1563
- ref: f,
1562
+ ref: C,
1564
1563
  role: "group/region",
1565
1564
  sx: {
1566
1565
  alignItems: "center",
@@ -1584,7 +1583,7 @@ const U = u.createContext(null), lt = ({
1584
1583
  gap: 8,
1585
1584
  listStyleType: "none",
1586
1585
  m: 0,
1587
- maxWidth: C ? "calc(100% - 32px)" : "100%",
1586
+ maxWidth: f ? "calc(100% - 32px)" : "100%",
1588
1587
  overflowX: "auto",
1589
1588
  overflowY: "hidden",
1590
1589
  p: 0,
@@ -1596,7 +1595,7 @@ const U = u.createContext(null), lt = ({
1596
1595
  }
1597
1596
  },
1598
1597
  children: /* @__PURE__ */ e(
1599
- ft,
1598
+ Ct,
1600
1599
  {
1601
1600
  activeCardIndex: w,
1602
1601
  beats: t,
@@ -1612,7 +1611,7 @@ const U = u.createContext(null), lt = ({
1612
1611
  }
1613
1612
  ),
1614
1613
  c && /* @__PURE__ */ e(
1615
- Ct,
1614
+ ft,
1616
1615
  {
1617
1616
  currentBeatIndex: w + E - 1,
1618
1617
  numBeats: t.length + 1,
@@ -1662,9 +1661,9 @@ const U = u.createContext(null), lt = ({
1662
1661
  }
1663
1662
  ),
1664
1663
  /* @__PURE__ */ e(
1665
- xe,
1664
+ De,
1666
1665
  {
1667
- endIcon: /* @__PURE__ */ e(fe, { size: 20 }),
1666
+ endIcon: /* @__PURE__ */ e(Ce, { size: 20 }),
1668
1667
  onClick: a,
1669
1668
  size: "small",
1670
1669
  sx: (c) => ({
@@ -1710,7 +1709,7 @@ const U = u.createContext(null), lt = ({
1710
1709
  u.useEffect(() => {
1711
1710
  h(H.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS);
1712
1711
  }, []);
1713
- const C = () => {
1712
+ const f = () => {
1714
1713
  t && t(), c(S.ON_NO_RELEVANT_INSIGHTS_CLICKED), l?.capture("clicked_insight", {
1715
1714
  template: "no_relevant_insights"
1716
1715
  });
@@ -1724,7 +1723,7 @@ const U = u.createContext(null), lt = ({
1724
1723
  heightOverrides: o,
1725
1724
  icon: /* @__PURE__ */ e(Se, {}),
1726
1725
  isZeroState: !0,
1727
- onCardClick: C,
1726
+ onCardClick: f,
1728
1727
  posthog: l,
1729
1728
  showIcon: n,
1730
1729
  style: {
@@ -1787,13 +1786,13 @@ const U = u.createContext(null), lt = ({
1787
1786
  },
1788
1787
  onEvent: h = () => {
1789
1788
  },
1790
- onPageview: C = () => {
1789
+ onPageview: f = () => {
1791
1790
  },
1792
1791
  posthog: p,
1793
1792
  showBorder: d = !0,
1794
1793
  showCarouselControls: E,
1795
1794
  showHeader: s,
1796
- showIcon: f,
1795
+ showIcon: C,
1797
1796
  showWithMargin: _ = !0,
1798
1797
  token: R = "",
1799
1798
  userHasFullInsightFeedBeats: O,
@@ -1801,7 +1800,7 @@ const U = u.createContext(null), lt = ({
1801
1800
  visibleCardsCount: m = 1,
1802
1801
  widthOverrides: T
1803
1802
  }) => {
1804
- const [y, M] = J("STANDARD"), [W, F] = J(!1), [K, $] = J(!1), X = Ke([h], N), Q = $e([C], N);
1803
+ const [y, M] = J("STANDARD"), [W, F] = J(!1), [K, $] = J(!1), X = Ke([h], N), Q = $e([f], N);
1805
1804
  u.useEffect(() => {
1806
1805
  !N.isInitialized && !K && (N.initialize(n, R, a).catch(() => $(!1)), $(!0));
1807
1806
  }, [n, R, a, N.isInitialized, K]), u.useEffect(() => {
@@ -1815,7 +1814,7 @@ const U = u.createContext(null), lt = ({
1815
1814
  heightOverrides: r,
1816
1815
  onCardClick: c,
1817
1816
  posthog: p,
1818
- showIcon: f,
1817
+ showIcon: C,
1819
1818
  showWithMargin: _,
1820
1819
  widthOverrides: T
1821
1820
  }, Y = {
@@ -1825,7 +1824,7 @@ const U = u.createContext(null), lt = ({
1825
1824
  heightOverrides: r,
1826
1825
  onCardClick: c,
1827
1826
  posthog: p,
1828
- showIcon: f
1827
+ showIcon: C
1829
1828
  };
1830
1829
  return /* @__PURE__ */ e(lt, { onEvent: X, onPageview: Q, store: N, children: /* @__PURE__ */ g(yt, { heightOverrides: r, widthOverrides: T, children: [
1831
1830
  !W && /* @__PURE__ */ e(vt, {}),
@@ -1881,7 +1880,7 @@ const U = u.createContext(null), lt = ({
1881
1880
  variant: a,
1882
1881
  widthOverrides: c
1883
1882
  }) => {
1884
- const h = te(), { ref: C, inView: p } = me({
1883
+ const h = te(), { ref: f, inView: p } = me({
1885
1884
  threshold: Ae
1886
1885
  }), { cardsCopy: d } = V(), { onEvent: E } = z();
1887
1886
  ee(() => {
@@ -1905,7 +1904,7 @@ const U = u.createContext(null), lt = ({
1905
1904
  isActiveCard: i,
1906
1905
  onCardClick: s,
1907
1906
  posthog: n,
1908
- ref: C,
1907
+ ref: f,
1909
1908
  showIcon: r,
1910
1909
  title: d.view_more_card_title,
1911
1910
  variant: a,
@@ -1,7 +1,7 @@
1
1
  import { jsxs as d, jsx as t } from "react/jsx-runtime";
2
2
  import o from "react";
3
3
  import { observer as ce } from "mobx-react-lite";
4
- import $ from "@mui/material/Box";
4
+ import Z from "@mui/material/Box";
5
5
  import M from "@mui/material/Button";
6
6
  import re from "@mui/material/Card";
7
7
  import oe from "@mui/material/CardContent";
@@ -12,11 +12,11 @@ import Y from "@mui/material/Stack";
12
12
  import { ChevronLeft as le } from "@mxenabled/mx-icons";
13
13
  import { Icon as T, Text as X, DateRangePicker as J, H1 as Ce, H3 as de } from "@mxenabled/mxui";
14
14
  import { u as Te } from "./useDimensions-27p2evRx.mjs";
15
- import { L as Ie } from "./Loader-DUaFpDGv.mjs";
16
- import { g as Ee, b as Re, u as ge, a as Ae, W as Se } from "./hooks-C41HAxM5.mjs";
15
+ import { L as Ie } from "./Loader-BSWSYqvn.mjs";
16
+ import { g as Ee, b as Re, u as ge, a as Ae, W as ue } from "./hooks-C41HAxM5.mjs";
17
17
  import { u as ie } from "./useScreenSize-B6JyS_Lj.mjs";
18
18
  import { addMonths as Q } from "date-fns/addMonths";
19
- import { addDays as ue } from "date-fns/addDays";
19
+ import { addDays as Se } from "date-fns/addDays";
20
20
  import { addYears as ee } from "date-fns/addYears";
21
21
  import { differenceInCalendarDays as Ne } from "date-fns/differenceInCalendarDays";
22
22
  import { endOfDay as me } from "date-fns/endOfDay";
@@ -35,9 +35,9 @@ import be from "@mui/material/Tabs";
35
35
  import we from "@mui/material/ToggleButton";
36
36
  import Ke from "@mui/material/ToggleButtonGroup";
37
37
  import Ge from "@mui/material/styles/useTheme";
38
- import { f as K, a as G, D as Me } from "./Dialog-BPTr3qHE.mjs";
39
- import { D as We } from "./Drawer-BEtCk82g.mjs";
40
- import { k as ye, l as xe } from "./ConnectDrawer-BIbTqYOH.mjs";
38
+ import { f as K, a as G, D as Me } from "./Dialog-CDV0kKxj.mjs";
39
+ import { D as We } from "./Drawer-Dqe5EqvA.mjs";
40
+ import { k as ye, l as xe } from "./ConnectDrawer-Dn1MlqLz.mjs";
41
41
  const ve = {
42
42
  ACCOUNTS_CLICK_ACCOUNT: "accounts_widget_click_account",
43
43
  ACCOUNTS_CLICK_CONNECT: "accounts_widget_click_connect_accounts",
@@ -158,7 +158,7 @@ const ve = {
158
158
  TRENDS_HOVER_LEGEND: "trends_hover_ChartLegend",
159
159
  TRENDS_LOAD_WIDGET: "trends_load_widget",
160
160
  TRENDS_VIEW_TRANSACTIONS: "trends_view_transactions"
161
- }, Ue = ({
161
+ }, ae = ({
162
162
  calendarActions: a,
163
163
  color: N = "primary",
164
164
  copy: _,
@@ -189,24 +189,24 @@ const ve = {
189
189
  const e = V(te());
190
190
  return [V(j(e, h)), e];
191
191
  }, w = (e) => {
192
- const [i, E] = s, S = e === "previous";
193
- let u;
192
+ const [i, E] = s, u = e === "previous";
193
+ let S;
194
194
  if (c === _.dateRangePickerCopy.dateRangeThisMonth || c === _.dateRangePickerCopy.dateRangeLastMonth)
195
- u = [
196
- S ? j(i, 1) : Q(i, 1),
197
- V(S ? j(E, 1) : Q(E, 1))
195
+ S = [
196
+ u ? j(i, 1) : Q(i, 1),
197
+ V(u ? j(E, 1) : Q(E, 1))
198
198
  ];
199
199
  else if (c === _.dateRangePickerCopy.dateRangeYTD || c === _.dateRangePickerCopy.dateRangeLastYear) {
200
200
  const R = ke(i), g = Le(i);
201
- u = [
202
- S ? _e(R, 1) : ee(R, 1),
203
- S ? _e(g, 1) : ee(g, 1)
201
+ S = [
202
+ u ? _e(R, 1) : ee(R, 1),
203
+ u ? _e(g, 1) : ee(g, 1)
204
204
  ];
205
205
  } else {
206
- const R = Ne(E, i), g = S ? he : ue;
207
- u = [g(i, R), g(E, R)];
206
+ const R = Ne(E, i), g = u ? he : Se;
207
+ S = [g(i, R), g(E, R)];
208
208
  }
209
- f(u), a.onRangeChanged(u);
209
+ f(S), a.onRangeChanged(S);
210
210
  }, x = () => {
211
211
  f(r), y(
212
212
  c === _.dateRangePickerCopy.dateRangeThisMonth || c === _.dateRangePickerCopy.dateRangeLastMonth
@@ -218,9 +218,9 @@ const ve = {
218
218
  }, U = (e) => {
219
219
  l(e);
220
220
  };
221
- return /* @__PURE__ */ d($, { className: "mx-cmn-date-range-selector", m: 4, children: [
221
+ return /* @__PURE__ */ d(Z, { className: "mx-cmn-date-range-selector", m: 4, children: [
222
222
  /* @__PURE__ */ d(
223
- $,
223
+ Z,
224
224
  {
225
225
  sx: {
226
226
  [W.breakpoints.down("sm")]: {
@@ -387,7 +387,7 @@ const ve = {
387
387
  }
388
388
  )
389
389
  ] });
390
- }, ae = Ue, Pe = ({
390
+ }, Ue = ({
391
391
  accountOptions: a,
392
392
  actions: N = [],
393
393
  calendarActions: _,
@@ -402,12 +402,12 @@ const ve = {
402
402
  sx: H = {},
403
403
  title: r = ""
404
404
  }) => {
405
- const [b, p] = o.useState(!1), [k, { height: F, width: y }] = Te(), { onEvent: h } = Ee(), { isDesktop: l, isMobile: C, isTablet: I } = ie(y), { displayedDateRange: w, isCopyLoaded: x, selectedAccountGuids: v, setSelectedAccountGuids: U } = Re(), { common: e, connect: i } = ge(), { config: E } = Ae(), S = () => {
405
+ const [b, p] = o.useState(!1), [k, { height: F, width: y }] = Te(), { onEvent: h } = Ee(), { isDesktop: l, isMobile: C, isTablet: I } = ie(y), { displayedDateRange: w, isCopyLoaded: x, selectedAccountGuids: v, setSelectedAccountGuids: U } = Re(), { common: e, connect: i } = ge(), { config: E } = Ae(), u = () => {
406
406
  s && (s(), h(ve.WIDGET_BACK_CLICK));
407
407
  };
408
408
  if (!x)
409
409
  return /* @__PURE__ */ t(Ie, {});
410
- const u = {
410
+ const S = {
411
411
  accountFilterOptionsCopy: {
412
412
  accountTypeAccounts: e.account_filter.account_type_accounts,
413
413
  cancelButton: e.cancel_button,
@@ -439,7 +439,7 @@ const ve = {
439
439
  dateRangeEditTitle: e.date_range_picker.edit_title,
440
440
  dateRangeNextAria: e.date_range_picker.next_aria,
441
441
  dateRangePreviousAria: e.date_range_picker.previous_aria
442
- }, g = L ? L.start : w.start, Z = L ? L.end : w.end, ne = N?.length > 1;
442
+ }, g = L ? L.start : w.start, $ = L ? L.end : w.end, ne = N?.length > 1;
443
443
  return /* @__PURE__ */ d(
444
444
  re,
445
445
  {
@@ -456,12 +456,12 @@ const ve = {
456
456
  se,
457
457
  {
458
458
  action: /* @__PURE__ */ d(Y, { alignItems: "center", flexDirection: "row", children: [
459
- l && _ && /* @__PURE__ */ t($, { sx: { flexGrow: 1 }, children: /* @__PURE__ */ t(
459
+ l && _ && /* @__PURE__ */ t(Z, { sx: { flexGrow: 1 }, children: /* @__PURE__ */ t(
460
460
  ae,
461
461
  {
462
462
  calendarActions: _,
463
463
  copy: R,
464
- range: [g, Z],
464
+ range: [g, $],
465
465
  shouldShrinkToIcon: !1,
466
466
  variant: n
467
467
  }
@@ -470,7 +470,7 @@ const ve = {
470
470
  ye,
471
471
  {
472
472
  accounts: a,
473
- copy: u,
473
+ copy: S,
474
474
  onConnectAccountClick: E.show_connections_widget_in_master ? () => p(!0) : void 0,
475
475
  onFilterClick: (O) => {
476
476
  U(O), f?.(O);
@@ -522,7 +522,7 @@ const ve = {
522
522
  {
523
523
  "aria-label": e.back_to_dashboard,
524
524
  color: "primary",
525
- onClick: S,
525
+ onClick: u,
526
526
  sx: { p: 12, mr: 4 },
527
527
  children: /* @__PURE__ */ t(le, { size: 24 })
528
528
  }
@@ -539,7 +539,7 @@ const ve = {
539
539
  {
540
540
  calendarActions: _,
541
541
  copy: R,
542
- range: [g, Z],
542
+ range: [g, $],
543
543
  shouldShrinkToIcon: !1,
544
544
  variant: n
545
545
  }
@@ -553,13 +553,13 @@ const ve = {
553
553
  title: i.mini_title
554
554
  }
555
555
  ),
556
- /* @__PURE__ */ t(oe, { ref: k, sx: { p: 0 }, children: /* @__PURE__ */ t(Se, { availableHeight: F, availableWidth: y, children: m }) })
556
+ /* @__PURE__ */ t(oe, { ref: k, sx: { p: 0 }, children: /* @__PURE__ */ t(ue, { availableHeight: F, availableWidth: y, children: m }) })
557
557
  ]
558
558
  }
559
559
  );
560
- }, ht = ce(Pe);
560
+ }, kt = ce(Ue);
561
561
  export {
562
562
  ve as A,
563
563
  ae as D,
564
- ht as W
564
+ kt as W
565
565
  };