@mx-cartographer/experiences 6.24.21 → 6.24.22

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.
package/dist/index.es.js CHANGED
@@ -223,7 +223,7 @@ const fu = async (e, n, i = "1.0.0", a = "Experiences") => {
223
223
  USER_FEATURES: "user_features",
224
224
  USER_PROFILES: "user_profiles",
225
225
  WIDGET_URLS: "widget_urls"
226
- }, U = {
226
+ }, W = {
227
227
  ACCOUNTS_CLICK_ACCOUNT: "accounts_widget_click_account",
228
228
  ACCOUNTS_CLICK_CONNECT: "accounts_widget_click_connect_accounts",
229
229
  ACCOUNTS_CLICK_FILTER: "accounts_widget_click_filter_accounts",
@@ -321,8 +321,22 @@ const fu = async (e, n, i = "1.0.0", a = "Experiences") => {
321
321
  TRENDS_HOVER_LEGEND: "trends_widget_hover_legend",
322
322
  TRENDS_HOVER_POINT: "trends_widget_hover_chart_point",
323
323
  TRENDS_VIEW_TRANSACTIONS: "trends_widget_view_transactions",
324
- WIDGET_BACK_CLICK: "widget_back_button_click"
325
- }, bu = "do", jE = "MMM do, yyyy", ne = {
324
+ WIDGET_BACK_CLICK: "widget_back_button_click",
325
+ // NEW ANAYTICS EVENT FORMAT
326
+ // widget_action_subject
327
+ GOALS_CLICK_GET_STARTED: "goals_click_getStarted",
328
+ GOALS_CLICK_VIEW_DETAILS: "goals_click_viewDetails",
329
+ GOALS_LOAD_WIDGET: "goals_load_widget",
330
+ NET_WORTH_CLICK_GET_STARTED: "netWorth_click_getStarted",
331
+ NET_WORTH_CLICK_VIEW_DETAILS: "netWorth_click_viewDetails",
332
+ NET_WORTH_LOAD_WIDGET: "netWorth_load_widget",
333
+ RECURRING_TRANSACTIONS_CLICK_GET_STARTED: "recurringTransactions_click_getStarted",
334
+ RECURRING_TRANSACTIONS_CLICK_VIEW_ALL: "recurringTransactions_click_viewAll",
335
+ RECURRING_TRANSACTIONS_LOAD_WIDGET: "recurringTransactions_load_widget",
336
+ TRENDS_CLICK_GET_STARTED: "trends_click_getStarted",
337
+ TRENDS_CLICK_VIEW_MORE: "trends_click_viewMore",
338
+ TRENDS_LOAD_WIDGET: "trends_load_widget"
339
+ }, bu = "do", jS = "MMM do, yyyy", ne = {
326
340
  TIME_STAMP_HOUR_MINUTE: {
327
341
  hour: "numeric",
328
342
  minute: "numeric"
@@ -407,7 +421,7 @@ const Eu = [
407
421
  /* IMPAIRED */
408
422
  ], js = [...zs, ...Ys];
409
423
  var Vn = /* @__PURE__ */ ((e) => (e.Connected = "Connected", e.Error = "Error", e.Processing = "Processing", e.RequiresMfa = "RequiresMfa", e))(Vn || {});
410
- const $E = {
424
+ const $S = {
411
425
  3: "Challenged",
412
426
  12: "Closed",
413
427
  9: "Degraded",
@@ -457,7 +471,7 @@ const $E = {
457
471
  2: "savings"
458
472
  }, Su = {
459
473
  5: "bid_landscape"
460
- }, XE = {
474
+ }, XS = {
461
475
  0: "Real Estate",
462
476
  1: "Vehicle",
463
477
  2: "Art",
@@ -797,7 +811,7 @@ const $E = {
797
811
  UNKNOWN: "help"
798
812
  }, or = 9999999999e-2;
799
813
  var ea = /* @__PURE__ */ ((e) => (e.CAD = "CAD", e.USD = "USD", e))(ea || {}), xu = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.EveryWeek = 1] = "EveryWeek", e[e.EveryOtherWeek = 2] = "EveryOtherWeek", e[e.EveryMonth = 3] = "EveryMonth", e[e.EveryOtherMonth = 4] = "EveryOtherMonth", e[e.EveryQuarter = 5] = "EveryQuarter", e[e.EveryOtherQuarter = 6] = "EveryOtherQuarter", e[e.EveryYear = 7] = "EveryYear", e))(xu || {});
800
- const qE = [
814
+ const qS = [
801
815
  { id: 0, copy: "frequency_unknown" },
802
816
  { id: 1, copy: "frequency_every_week" },
803
817
  { id: 2, copy: "frequency_every_other_week" },
@@ -806,7 +820,7 @@ const qE = [
806
820
  { id: 5, copy: "frequency_every_quarter" },
807
821
  { id: 6, copy: "frequency_every_other_quarter" },
808
822
  { id: 7, copy: "frequency_every_year" }
809
- ], ZE = {
823
+ ], ZS = {
810
824
  ERROR: "ERROR",
811
825
  LOADING: "LOADING",
812
826
  SUCCESS: "SUCCESS"
@@ -818,7 +832,7 @@ const mi = 44, rr = (e, n) => e.find((i) => i.guid === n), Nu = (e, n) => e.find
818
832
  const i = e.find((a) => a.subCategories.find((o) => o.guid === n));
819
833
  if (i)
820
834
  return i.subCategories.find((a) => a.guid === n);
821
- }, QE = (e, n) => {
835
+ }, QS = (e, n) => {
822
836
  const i = [];
823
837
  for (const a of n) {
824
838
  const o = rr(e, a.category_guid);
@@ -839,7 +853,7 @@ const mi = 44, rr = (e, n) => e.find((i) => i.guid === n), Nu = (e, n) => e.find
839
853
  });
840
854
  }
841
855
  return i;
842
- }, JE = (e, n) => {
856
+ }, JS = (e, n) => {
843
857
  const i = e.find((a) => a.guid === n);
844
858
  return i ? i.guid === N.INCOME || i.parent_guid === N.INCOME : !1;
845
859
  }, go = (e) => {
@@ -887,7 +901,7 @@ const mi = 44, rr = (e, n) => e.find((i) => i.guid === n), Nu = (e, n) => e.find
887
901
  []
888
902
  );
889
903
  return i ? o : o.join("");
890
- }, eS = (e, n, i, ...a) => !e || !n ? "" : A(i === 1 ? e : n, ...a), Hn = () => {
904
+ }, e4 = (e, n, i, ...a) => !e || !n ? "" : A(i === 1 ? e : n, ...a), Hn = () => {
891
905
  const e = "en-us", n = ["en-us", "en-ca", "fr", "fr-ca", "es"], i = window?.app?.options?.language?.toLowerCase() ?? "", a = window.navigator.language.toLowerCase();
892
906
  return i === "browser" && n.includes(a) ? a : n.includes(i) ? i : e;
893
907
  };
@@ -981,7 +995,7 @@ const P = (e, n, i) => {
981
995
  }) => {
982
996
  const a = Pu(n).select(e);
983
997
  return `${e}${i[a]}`;
984
- }, tS = (e, n) => {
998
+ }, t4 = (e, n) => {
985
999
  const i = e.palette.mode === "dark", a = (s, c) => {
986
1000
  const d = n?.[s];
987
1001
  return {
@@ -1207,7 +1221,7 @@ class yi {
1207
1221
  }
1208
1222
  getGlobalCopy = async (n, i) => this.fetchInstance.post(`${H.LOCALIZED_CONTENT}/${n}`, { translation_key: i }).then((a) => a);
1209
1223
  }
1210
- class nS {
1224
+ class n4 {
1211
1225
  fetchInstance;
1212
1226
  constructor(n, i) {
1213
1227
  this.fetchInstance = new ct(n, i);
@@ -1231,7 +1245,7 @@ class lr {
1231
1245
  // A bug ticket has been filed to fix it, but should not require any changes here.
1232
1246
  markAllAsViewed = (n) => this.fetchInstance.put(`${H.NOTIFICATIONS}/mark_all_as_viewed`, { channel: n }).finally();
1233
1247
  }
1234
- class iS {
1248
+ class i4 {
1235
1249
  fetchInstance;
1236
1250
  constructor(n, i) {
1237
1251
  this.fetchInstance = new ct(n, i);
@@ -1268,7 +1282,7 @@ const Ra = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
1268
1282
  guid: a.guid
1269
1283
  };
1270
1284
  return Object.prototype.hasOwnProperty.call(i, o) ? i[o] = i[o].concat(r) : i[o] = [r], i;
1271
- }, {}), Zn = g.createContext(null), aS = ({
1285
+ }, {}), Zn = g.createContext(null), a4 = ({
1272
1286
  children: e,
1273
1287
  globalStore: n,
1274
1288
  onEvent: i,
@@ -1299,7 +1313,7 @@ const Ra = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
1299
1313
  if (!n)
1300
1314
  throw new Error(`${e}() must be used within the GlobalDataContext`);
1301
1315
  return n;
1302
- }, fe = () => Je("useAccountStore").globalStore.accountStore, Wt = () => Je("useAppConfig").globalStore.appDataStore.appConfig, po = () => Je("useAnalyticsStore").globalStore.analyticsStore, gt = () => Je("useBudgetsStore").globalStore.budgetsStore, Co = () => Je("useCashflowStore").globalStore.cashflowStore, Ve = () => Je("useCategoryStore").globalStore.categoryStore, ec = () => Je("useConnectStore").globalStore.connectStore, pa = () => Je("useDebtsStore").globalStore.debtsStore, Ca = () => Je("useFinstrongStore").globalStore.finstrongStore, di = () => Je("useGlobalStore").globalStore, de = () => Je("useGlobalUiStore").globalStore.globalUiStore, x = () => Je("globalCopyStore").globalStore.copyStore.copy, lt = () => Je("useGoalStore").globalStore.goalStore, fo = () => Je("useHelpStore").globalStore.helpStore, Yn = () => Je("useHoldingStore").globalStore.holdingStore, Uu = () => Je("useMerchantStore").globalStore.merchantStore, tc = () => Je("useNetWorthStore").globalStore.netWorthStore, nc = () => Je("useNotificationStore").globalStore.notificationStore, at = () => Je("useRecurringTransactionsStore").globalStore.recurringTransactionsStore, Ct = () => Je("useSettingsStore").globalStore.settingsStore, Le = () => Je("useTransactionStore").globalStore.transactionStore, ic = () => Je("useTrendsStore").globalStore.trendsStore, Tt = () => Je("useUserStore").globalStore.userStore, X = () => ({ onEvent: Je().onEvent }), oS = () => ({ onPageView: Je().onPageView }), Vu = (e = "useWidgetContainerContext") => {
1316
+ }, fe = () => Je("useAccountStore").globalStore.accountStore, Wt = () => Je("useAppConfig").globalStore.appDataStore.appConfig, po = () => Je("useAnalyticsStore").globalStore.analyticsStore, gt = () => Je("useBudgetsStore").globalStore.budgetsStore, Co = () => Je("useCashflowStore").globalStore.cashflowStore, Ve = () => Je("useCategoryStore").globalStore.categoryStore, ec = () => Je("useConnectStore").globalStore.connectStore, pa = () => Je("useDebtsStore").globalStore.debtsStore, Ca = () => Je("useFinstrongStore").globalStore.finstrongStore, di = () => Je("useGlobalStore").globalStore, de = () => Je("useGlobalUiStore").globalStore.globalUiStore, x = () => Je("globalCopyStore").globalStore.copyStore.copy, lt = () => Je("useGoalStore").globalStore.goalStore, fo = () => Je("useHelpStore").globalStore.helpStore, Yn = () => Je("useHoldingStore").globalStore.holdingStore, Uu = () => Je("useMerchantStore").globalStore.merchantStore, tc = () => Je("useNetWorthStore").globalStore.netWorthStore, nc = () => Je("useNotificationStore").globalStore.notificationStore, at = () => Je("useRecurringTransactionsStore").globalStore.recurringTransactionsStore, Ct = () => Je("useSettingsStore").globalStore.settingsStore, Le = () => Je("useTransactionStore").globalStore.transactionStore, ic = () => Je("useTrendsStore").globalStore.trendsStore, Tt = () => Je("useUserStore").globalStore.userStore, $ = () => ({ onEvent: Je().onEvent }), o4 = () => ({ onPageView: Je().onPageView }), Vu = (e = "useWidgetContainerContext") => {
1303
1317
  const n = g.useContext(Js);
1304
1318
  if (!n)
1305
1319
  throw new Error(`${e}() must be used within the WidgetContainerContext`);
@@ -1394,8 +1408,8 @@ const Ra = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
1394
1408
  disableRipple: !0,
1395
1409
  onChange: () => {
1396
1410
  const S = {};
1397
- Object.keys(d).forEach((I) => {
1398
- S[I] = !y;
1411
+ Object.keys(d).forEach((w) => {
1412
+ S[w] = !y;
1399
1413
  }), _(S);
1400
1414
  },
1401
1415
  size: "small",
@@ -1411,8 +1425,8 @@ const Ra = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
1411
1425
  }
1412
1426
  ) }),
1413
1427
  Object.keys(p).map((S) => {
1414
- const I = p[S], v = I.every(
1415
- (w) => d[w.guid]
1428
+ const w = p[S], v = w.every(
1429
+ (I) => d[I.guid]
1416
1430
  );
1417
1431
  return /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(
1418
1432
  ie,
@@ -1446,8 +1460,8 @@ const Ra = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
1446
1460
  }
1447
1461
  ) }),
1448
1462
  sx: { overflow: "auto", width: "100%" },
1449
- children: I.map((w) => {
1450
- const D = d[w.guid], R = `${w.name}${h && w.accountNumber ? ` *${w.accountNumber.slice(-4)}` : ""}`;
1463
+ children: w.map((I) => {
1464
+ const D = d[I.guid], R = `${I.name}${h && I.accountNumber ? ` *${I.accountNumber.slice(-4)}` : ""}`;
1451
1465
  return /* @__PURE__ */ t(
1452
1466
  j,
1453
1467
  {
@@ -1463,9 +1477,9 @@ const Ra = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
1463
1477
  checked: D,
1464
1478
  "data-ui-test": `checked-${D}`,
1465
1479
  disableRipple: !0,
1466
- id: w.guid,
1480
+ id: I.guid,
1467
1481
  onChange: () => {
1468
- a(w);
1482
+ a(I);
1469
1483
  },
1470
1484
  size: "small",
1471
1485
  sx: {
@@ -1480,7 +1494,7 @@ const Ra = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
1480
1494
  }
1481
1495
  )
1482
1496
  },
1483
- w.guid
1497
+ I.guid
1484
1498
  );
1485
1499
  })
1486
1500
  }
@@ -1521,7 +1535,7 @@ const Ku = (e, n) => {
1521
1535
  i ? s(r, i) : s(r);
1522
1536
  });
1523
1537
  }, [e, i]);
1524
- }, rS = () => {
1538
+ }, r4 = () => {
1525
1539
  const { isInitialized: e, appDataStore: n } = di(), [i, a] = St(!1);
1526
1540
  return kn(() => {
1527
1541
  e && n.clientInsightProfile?.is_enabled && a(!0);
@@ -1556,7 +1570,7 @@ const Ku = (e, n) => {
1556
1570
  // Between 600 and 1200
1557
1571
  isTablet: e > a && e <= r
1558
1572
  }), c;
1559
- }, sS = (e) => {
1573
+ }, s4 = (e) => {
1560
1574
  const n = fs();
1561
1575
  return kn(() => {
1562
1576
  n.current = e;
@@ -1620,10 +1634,10 @@ const Ku = (e, n) => {
1620
1634
  m({ ...h, [E.guid]: !h[E.guid] });
1621
1635
  },
1622
1636
  onAccountGroupClick: (E, y, S) => {
1623
- const I = { ...h };
1637
+ const w = { ...h };
1624
1638
  y[E].forEach((v) => {
1625
- I[v.guid] = !S;
1626
- }), m(I);
1639
+ w[v.guid] = !S;
1640
+ }), m(w);
1627
1641
  },
1628
1642
  onCancelClick: () => {
1629
1643
  m(Ra(e, o)), f();
@@ -1831,7 +1845,7 @@ const Ku = (e, n) => {
1831
1845
  }), qu = (e, n) => e + n, Zu = (e, n) => Math.abs(n) > e ? Math.abs(n) : e, Qu = (e, n) => [...e, n.value], hr = (e, n, i) => {
1832
1846
  const a = e && n ? i / 2 : i;
1833
1847
  return e ? a : 0;
1834
- }, Ju = (e, n, i, a) => e / (n < 0 ? -i : n) * a || 0, cS = ({
1848
+ }, Ju = (e, n, i, a) => e / (n < 0 ? -i : n) * a || 0, c4 = ({
1835
1849
  average: e,
1836
1850
  barWidth: n = "8%",
1837
1851
  color: i,
@@ -1843,11 +1857,11 @@ const Ku = (e, n) => {
1843
1857
  selectedIndex: d,
1844
1858
  valueFormatter: _ = (u) => `${u}`
1845
1859
  }) => {
1846
- const u = Et(), h = e_(u), m = a.reduce(Qu, []), p = e !== void 0 ? e : m.reduce(qu, 0) / m.length, f = Math.max(...m), E = Math.min(...m), y = m.reduce(Zu, 0), S = f >= 0, I = E < 0, v = hr(S, I, o), w = hr(I, S, o), D = Ju(p, f, E, v || w), R = (G) => d === void 0 || G === d ? i : `${i}80`, k = () => /* @__PURE__ */ t(
1860
+ const u = Et(), h = e_(u), m = a.reduce(Qu, []), p = e !== void 0 ? e : m.reduce(qu, 0) / m.length, f = Math.max(...m), E = Math.min(...m), y = m.reduce(Zu, 0), S = f >= 0, w = E < 0, v = hr(S, w, o), I = hr(w, S, o), D = Ju(p, f, E, v || I), R = (G) => d === void 0 || G === d ? i : `${i}80`, k = () => /* @__PURE__ */ t(
1847
1861
  _r,
1848
1862
  {
1849
1863
  averageLineHeight: D,
1850
- bottomHeight: w,
1864
+ bottomHeight: I,
1851
1865
  color: "",
1852
1866
  range: y,
1853
1867
  topHeight: v,
@@ -1864,7 +1878,7 @@ const Ku = (e, n) => {
1864
1878
  {
1865
1879
  ariaLabel: G.ariaLabel,
1866
1880
  averageLineHeight: D,
1867
- bottomHeight: w,
1881
+ bottomHeight: I,
1868
1882
  color: R(O),
1869
1883
  index: O,
1870
1884
  onClick: c,
@@ -2010,14 +2024,14 @@ const r_ = ({
2010
2024
  h(n), p(i), n && _(n);
2011
2025
  }, [n, i]);
2012
2026
  const f = g.useMemo(() => {
2013
- const v = jl({ start: ze(d), end: We(d) }), w = [];
2027
+ const v = jl({ start: ze(d), end: We(d) }), I = [];
2014
2028
  for (let D = 0; D < v.length; D++) {
2015
2029
  const R = v[D], k = zl({ start: R, end: Gn(R, 6) }), G = [];
2016
2030
  for (let O = 0; O < k.length; O++)
2017
2031
  G.push(k[O]);
2018
- w.push(G);
2032
+ I.push(G);
2019
2033
  }
2020
- return w;
2034
+ return I;
2021
2035
  }, [d]), E = (v) => {
2022
2036
  if (r !== "None") {
2023
2037
  if (r === "Single") {
@@ -2031,7 +2045,7 @@ const r_ = ({
2031
2045
  _(v), r !== "None" && (h(v), r === "Single" ? a?.(v) : (p(v), o?.(v, v)));
2032
2046
  }, S = () => {
2033
2047
  _(tn(d, 1));
2034
- }, I = () => {
2048
+ }, w = () => {
2035
2049
  _(It(d, 1));
2036
2050
  };
2037
2051
  return /* @__PURE__ */ t("div", { className: `mx-cmn-calendar ${c}`, children: /* @__PURE__ */ l(wt, { sx: { boxShadow: "none" }, children: [
@@ -2041,11 +2055,11 @@ const r_ = ({
2041
2055
  copy: e,
2042
2056
  date: d,
2043
2057
  onNextClick: S,
2044
- onPreviousClick: I
2058
+ onPreviousClick: w
2045
2059
  }
2046
2060
  ),
2047
- /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-header-row", children: f[0].map((v, w) => /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-header-cell", children: /* @__PURE__ */ t(C, { bold: !0, variant: "Small", children: Bn(v, "EEEEE") }) }, w)) }),
2048
- f.map((v, w) => /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-week", children: v.map((D, R) => /* @__PURE__ */ t(
2061
+ /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-header-row", children: f[0].map((v, I) => /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-header-cell", children: /* @__PURE__ */ t(C, { bold: !0, variant: "Small", children: Bn(v, "EEEEE") }) }, I)) }),
2062
+ f.map((v, I) => /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-week", children: v.map((D, R) => /* @__PURE__ */ t(
2049
2063
  i_,
2050
2064
  {
2051
2065
  beginDate: u,
@@ -2055,7 +2069,7 @@ const r_ = ({
2055
2069
  onClick: E
2056
2070
  },
2057
2071
  R
2058
- )) }, `w-${w}`)),
2072
+ )) }, `w-${I}`)),
2059
2073
  /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-today-container", children: /* @__PURE__ */ t(ee, { onClick: y, size: "small", variant: "text", children: e.today }) })
2060
2074
  ] }) });
2061
2075
  }, s_ = (e) => dn({
@@ -2149,7 +2163,7 @@ const r_ = ({
2149
2163
  )
2150
2164
  ] });
2151
2165
  }, u_ = (e) => {
2152
- const n = dt(), i = e.showLabel, a = e.style, o = Number(e.x), r = Number(e.y), s = e.handlers?.onMarkClick, c = e.handlers?.onMouseEnter, d = e.handlers?.onMouseLeave, _ = sn(n.breakpoints.up("sm")), u = e.isValuesFormatted ? P(e.yData[e.dataIndex], "0,0") : String(e.yData[e.dataIndex]), h = _ ? n.typography.Small?.fontSize : n.typography.XSmall?.fontSize, m = h ? parseFloat(h.toString()) * 0.6 : 8, y = u.length * m + 8 + 8, S = 24, I = o - y / 2, v = r - 30;
2166
+ const n = dt(), i = e.showLabel, a = e.style, o = Number(e.x), r = Number(e.y), s = e.handlers?.onMarkClick, c = e.handlers?.onMouseEnter, d = e.handlers?.onMouseLeave, _ = sn(n.breakpoints.up("sm")), u = e.isValuesFormatted ? P(e.yData[e.dataIndex], "0,0") : String(e.yData[e.dataIndex]), h = _ ? n.typography.Small?.fontSize : n.typography.XSmall?.fontSize, m = h ? parseFloat(h.toString()) * 0.6 : 8, y = u.length * m + 8 + 8, S = 24, w = o - y / 2, v = r - 30;
2153
2167
  return /* @__PURE__ */ l(Z, { children: [
2154
2168
  i && /* @__PURE__ */ l(Z, { children: [
2155
2169
  e.labelBackgroundColor && /* @__PURE__ */ t(
@@ -2159,7 +2173,7 @@ const r_ = ({
2159
2173
  height: S,
2160
2174
  rx: "3",
2161
2175
  width: y,
2162
- x: I,
2176
+ x: w,
2163
2177
  y: v
2164
2178
  }
2165
2179
  ),
@@ -2184,8 +2198,8 @@ const r_ = ({
2184
2198
  cursor: s ? "pointer" : "unset",
2185
2199
  d: "M4.514,0A4.514,4.514,0,1,1,-4.514,0A4.514,4.514,0,1,1,4.514,0",
2186
2200
  height: "20px",
2187
- onClick: (w) => {
2188
- s?.(w, e.dataIndex);
2201
+ onClick: (I) => {
2202
+ s?.(I, e.dataIndex);
2189
2203
  },
2190
2204
  onMouseEnter: () => {
2191
2205
  c?.(e.dataIndex);
@@ -2273,12 +2287,12 @@ const r_ = ({
2273
2287
  showArea: E = !1,
2274
2288
  showAverage: y = !1,
2275
2289
  showMarkLabel: S = !1,
2276
- title: I,
2290
+ title: w,
2277
2291
  useCustomMark: v = !1,
2278
- valueFormatterString: w = "0,0",
2292
+ valueFormatterString: I = "0,0",
2279
2293
  width: D
2280
2294
  }) => {
2281
- const R = dt(), k = a.flat().map((J) => J.x), G = a.flat().map((J) => J.y), O = Math.round(G.reduce((J, Ie) => Ie + J, 0) / G.length), M = Math.floor(Math.min(...G) / 100) * 100, W = Math.ceil(Math.max(...G) / 100) * 100, Q = a.map((J, Ie) => ({
2295
+ const R = dt(), k = a.flat().map((J) => J.x), G = a.flat().map((J) => J.y), O = Math.round(G.reduce((J, Ie) => Ie + J, 0) / G.length), M = Math.floor(Math.min(...G) / 100) * 100, U = Math.ceil(Math.max(...G) / 100) * 100, Q = a.map((J, Ie) => ({
2282
2296
  type: f ? "bar" : "line",
2283
2297
  curve: i,
2284
2298
  color: f ? R.palette.chart?.chart6 : n[Ie] ?? R.palette.primary.main,
@@ -2287,7 +2301,7 @@ const r_ = ({
2287
2301
  baseline: e,
2288
2302
  showMark: !0,
2289
2303
  label: d[Ie],
2290
- valueFormatter: (Me) => P(Me || 0, w)
2304
+ valueFormatter: (Me) => P(Me || 0, I)
2291
2305
  })), be = {
2292
2306
  ...{
2293
2307
  top: 60,
@@ -2319,14 +2333,14 @@ const r_ = ({
2319
2333
  yAxis: [
2320
2334
  {
2321
2335
  min: c ? -22 : M,
2322
- max: W || 100,
2336
+ max: U || 100,
2323
2337
  colorMap: E ? {
2324
2338
  type: "continuous",
2325
2339
  min: M,
2326
- max: W,
2340
+ max: U,
2327
2341
  color: [R.palette.background.paper, n[0] ?? R.palette.primary.main]
2328
2342
  } : void 0,
2329
- valueFormatter: (J) => s ? P(J, w) : String(J)
2343
+ valueFormatter: (J) => s ? P(J, I) : String(J)
2330
2344
  }
2331
2345
  ],
2332
2346
  children: [
@@ -2415,7 +2429,7 @@ const r_ = ({
2415
2429
  isValuesFormatted: s,
2416
2430
  series: Q,
2417
2431
  style: { position: "absolute", top: 16, left: 16 },
2418
- title: I
2432
+ title: w
2419
2433
  }
2420
2434
  )
2421
2435
  ] });
@@ -2572,11 +2586,11 @@ const r_ = ({
2572
2586
  hoveredAreaData: null,
2573
2587
  isAreaHovered: !1,
2574
2588
  cursorPos: { x: 0, y: 0 }
2575
- }), { hoveredSeriesId: E, hoveredAreaData: y, isAreaHovered: S, cursorPos: I } = p, v = S && E && y, w = !v, D = [...o, ...r], R = D[0]?.dataset.length ?? 0, k = D.flatMap((z) => z.dataset.map((De) => De.x)), G = D.flatMap((z) => z.dataset.map((De) => De.y)), O = o[0]?.dataset?.map(
2589
+ }), { hoveredSeriesId: E, hoveredAreaData: y, isAreaHovered: S, cursorPos: w } = p, v = S && E && y, I = !v, D = [...o, ...r], R = D[0]?.dataset.length ?? 0, k = D.flatMap((z) => z.dataset.map((De) => De.x)), G = D.flatMap((z) => z.dataset.map((De) => De.y)), O = o[0]?.dataset?.map(
2576
2590
  (z, De) => o.reduce((Ke, Ht) => Ke + Ht.dataset[De]?.y || 0, 0)
2577
- ) ?? [0], M = Math.max(...O), W = Math.max(
2591
+ ) ?? [0], M = Math.max(...O), U = Math.max(
2578
2592
  ...r.flatMap((z) => z.dataset.map((De) => De.y))
2579
- ), Q = Math.floor(Math.min(...G) / 100) * 100, he = Math.ceil(Math.max(M, W) / 100) * 100, be = o.map((z, De) => ({
2593
+ ), Q = Math.floor(Math.min(...G) / 100) * 100, he = Math.ceil(Math.max(M, U) / 100) * 100, be = o.map((z, De) => ({
2580
2594
  id: `stacked-${De}`,
2581
2595
  guid: z.category_guid,
2582
2596
  top_level_guid: z.top_level_category_guid,
@@ -2627,7 +2641,7 @@ const r_ = ({
2627
2641
  hoveredSeriesId: De,
2628
2642
  hoveredAreaData: null,
2629
2643
  isAreaHovered: !1,
2630
- cursorPos: I
2644
+ cursorPos: w
2631
2645
  }), n?.(Ke);
2632
2646
  else if (Qn) {
2633
2647
  const gi = Ht?.data.map((Ia, wa) => ({
@@ -2638,14 +2652,14 @@ const r_ = ({
2638
2652
  hoveredSeriesId: De,
2639
2653
  hoveredAreaData: gi,
2640
2654
  isAreaHovered: !0,
2641
- cursorPos: I
2655
+ cursorPos: w
2642
2656
  }), e?.(Ke);
2643
2657
  } else
2644
2658
  f({
2645
2659
  hoveredSeriesId: null,
2646
2660
  hoveredAreaData: null,
2647
2661
  isAreaHovered: !1,
2648
- cursorPos: I
2662
+ cursorPos: w
2649
2663
  });
2650
2664
  }, ke = (z) => {
2651
2665
  const De = z.currentTarget.getBoundingClientRect();
@@ -2701,7 +2715,7 @@ const r_ = ({
2701
2715
  }
2702
2716
  },
2703
2717
  slots: {
2704
- itemContent: (z) => w && E ? /* @__PURE__ */ t(
2718
+ itemContent: (z) => I && E ? /* @__PURE__ */ t(
2705
2719
  C_,
2706
2720
  {
2707
2721
  categoryGuids: me(E),
@@ -2712,7 +2726,7 @@ const r_ = ({
2712
2726
  },
2713
2727
  sx: et,
2714
2728
  tooltip: {
2715
- trigger: w ? "item" : "none"
2729
+ trigger: I ? "item" : "none"
2716
2730
  },
2717
2731
  width: c,
2718
2732
  xAxis: [
@@ -2747,7 +2761,7 @@ const r_ = ({
2747
2761
  {
2748
2762
  categoryGuids: me(E),
2749
2763
  chartContainerRef: u,
2750
- cursorPosition: I,
2764
+ cursorPosition: w,
2751
2765
  hoveredAreaData: y.map((z) => ({
2752
2766
  ...z,
2753
2767
  x: re(z.x, ne.MONTH_SHORT_YEAR)
@@ -2944,7 +2958,7 @@ const r_ = ({
2944
2958
  shouldShrinkToIcon: o = !0,
2945
2959
  variant: r = "outlined"
2946
2960
  }) => {
2947
- const s = Ce(), { isMobile: c } = pe(), [d, _] = g.useState(a), [u, h] = g.useState(i.dateRangePickerCopy.dateRangeThisMonth), [m, p] = g.useState(d), [f, E] = g.useState(!1), [y, S] = g.useState(!0), [I, v] = g.useState(6), w = {
2961
+ const s = Ce(), { isMobile: c } = pe(), [d, _] = g.useState(a), [u, h] = g.useState(i.dateRangePickerCopy.dateRangeThisMonth), [m, p] = g.useState(d), [f, E] = g.useState(!1), [y, S] = g.useState(!0), [w, v] = g.useState(6), I = {
2948
2962
  buttons: [
2949
2963
  { label: "3M", value: 3 },
2950
2964
  { label: "6M", value: 6 },
@@ -2962,19 +2976,19 @@ const r_ = ({
2962
2976
  p(a);
2963
2977
  }, [a]), g.useEffect(() => {
2964
2978
  (r === "timeframebuttons" || r === "timeframetabs") && e.onRangeChanged(D());
2965
- }, [I]);
2979
+ }, [w]);
2966
2980
  const D = () => {
2967
2981
  const O = We(xn());
2968
- return [We(It(O, I)), O];
2982
+ return [We(It(O, w)), O];
2969
2983
  }, R = (O) => {
2970
- const M = [...d], W = d[0], Q = d[1], he = O === "previous";
2984
+ const M = [...d], U = d[0], Q = d[1], he = O === "previous";
2971
2985
  if (u === i.dateRangePickerCopy.dateRangeThisMonth)
2972
- M[0] = he ? It(W, 1) : tn(W, 1), M[1] = We(he ? It(Q, 1) : tn(Q, 1));
2986
+ M[0] = he ? It(U, 1) : tn(U, 1), M[1] = We(he ? It(Q, 1) : tn(Q, 1));
2973
2987
  else if (u === i.dateRangePickerCopy.dateRangeYTD || u === i.dateRangePickerCopy.dateRangeLastYear)
2974
- M[0] = he ? Ua(Qo(W), 1) : ji(Qo(W), 1), M[1] = he ? Ua(Zo(W), 1) : ji(Zo(W), 1);
2988
+ M[0] = he ? Ua(Qo(U), 1) : ji(Qo(U), 1), M[1] = he ? Ua(Zo(U), 1) : ji(Zo(U), 1);
2975
2989
  else {
2976
- const be = Ad(Q, W);
2977
- M[0] = O === "previous" ? vt(W, be) : Gn(W, be), M[1] = O === "previous" ? vt(Q, be) : Gn(Q, be);
2990
+ const be = Ad(Q, U);
2991
+ M[0] = O === "previous" ? vt(U, be) : Gn(U, be), M[1] = O === "previous" ? vt(Q, be) : Gn(Q, be);
2978
2992
  }
2979
2993
  _(M), e.onRangeChanged(M);
2980
2994
  }, k = () => {
@@ -3064,8 +3078,8 @@ const r_ = ({
3064
3078
  color: n,
3065
3079
  exclusive: !0,
3066
3080
  orientation: "horizontal",
3067
- value: I,
3068
- children: w.buttons.map((O) => /* @__PURE__ */ t(
3081
+ value: w,
3082
+ children: I.buttons.map((O) => /* @__PURE__ */ t(
3069
3083
  $n,
3070
3084
  {
3071
3085
  onClick: () => G(O.value),
@@ -3083,9 +3097,9 @@ const r_ = ({
3083
3097
  indicatorColor: "primary",
3084
3098
  onChange: (O, M) => G(M),
3085
3099
  textColor: "primary",
3086
- value: I,
3100
+ value: w,
3087
3101
  variant: "fullWidth",
3088
- children: w.tabs.map((O) => /* @__PURE__ */ t(
3102
+ children: I.tabs.map((O) => /* @__PURE__ */ t(
3089
3103
  Qe,
3090
3104
  {
3091
3105
  label: /* @__PURE__ */ t(C, { bold: !0, variant: "Body", children: O.label }),
@@ -3157,7 +3171,7 @@ const r_ = ({
3157
3171
  }
3158
3172
  )
3159
3173
  ] });
3160
- }, lS = ({
3174
+ }, l4 = ({
3161
3175
  hasGap: e = !1,
3162
3176
  segments: n,
3163
3177
  size: i = Xs,
@@ -3396,8 +3410,8 @@ const fa = ({
3396
3410
  sx: h = {},
3397
3411
  title: m = ""
3398
3412
  }) => {
3399
- const [p, f] = g.useState(!1), [E, { height: y, width: S }] = Mi(), { onEvent: I } = X(), { isDesktop: v, isMobile: w, isTablet: D } = pe(S), { displayedDateRange: R, isCopyLoaded: k, selectedAccountGuids: G, setSelectedAccountGuids: O } = de(), { common: M, connect: W } = x(), Q = () => {
3400
- d && (d(), I(U.WIDGET_BACK_CLICK));
3413
+ const [p, f] = g.useState(!1), [E, { height: y, width: S }] = Mi(), { onEvent: w } = $(), { isDesktop: v, isMobile: I, isTablet: D } = pe(S), { displayedDateRange: R, isCopyLoaded: k, selectedAccountGuids: G, setSelectedAccountGuids: O } = de(), { common: M, connect: U } = x(), Q = () => {
3414
+ d && (d(), w(W.WIDGET_BACK_CLICK));
3401
3415
  };
3402
3416
  if (!k)
3403
3417
  return /* @__PURE__ */ t(ue, {});
@@ -3439,9 +3453,9 @@ const fa = ({
3439
3453
  {
3440
3454
  className: s,
3441
3455
  sx: {
3442
- ...w && { px: 4 },
3456
+ ...I && { px: 4 },
3443
3457
  "& .mx-cmn-date-range-selector": {
3444
- ...(w || D) && { textAlign: "center" }
3458
+ ...(I || D) && { textAlign: "center" }
3445
3459
  },
3446
3460
  ...h
3447
3461
  },
@@ -3504,14 +3518,14 @@ const fa = ({
3504
3518
  "& .MuiCardHeader-action": {
3505
3519
  mr: 0,
3506
3520
  ...i && v && { flexGrow: 1 },
3507
- ...(w || D) && { alignSelf: "center" }
3521
+ ...(I || D) && { alignSelf: "center" }
3508
3522
  },
3509
3523
  "& .MuiCardHeader-content": {
3510
3524
  overflow: "hidden"
3511
3525
  }
3512
3526
  },
3513
3527
  title: v || D ? /* @__PURE__ */ t(qt, { children: m }) : /* @__PURE__ */ l(b, { alignItems: "center", flexDirection: "row", sx: { overflow: "hidden" }, children: [
3514
- w && d && /* @__PURE__ */ t(
3528
+ I && d && /* @__PURE__ */ t(
3515
3529
  Fe,
3516
3530
  {
3517
3531
  "aria-label": M.back_to_dashboard,
@@ -3526,7 +3540,7 @@ const fa = ({
3526
3540
  }
3527
3541
  ),
3528
3542
  c && /* @__PURE__ */ t(F, { sx: { mt: v ? 48 : 24 } }),
3529
- i && (w || D) && /* @__PURE__ */ l(b, { gap: 24, justifyContent: "center", sx: { mt: w ? 0 : 16 }, children: [
3543
+ i && (I || D) && /* @__PURE__ */ l(b, { gap: 24, justifyContent: "center", sx: { mt: I ? 0 : 16 }, children: [
3530
3544
  u && /* @__PURE__ */ t(F, {}),
3531
3545
  /* @__PURE__ */ t(
3532
3546
  gr,
@@ -3544,7 +3558,7 @@ const fa = ({
3544
3558
  {
3545
3559
  onClose: () => f(!1),
3546
3560
  showConnectWidget: p,
3547
- title: W.mini_title
3561
+ title: U.mini_title
3548
3562
  }
3549
3563
  ),
3550
3564
  /* @__PURE__ */ t(Gt, { ref: E, sx: { p: 0 }, children: /* @__PURE__ */ t(mo, { availableHeight: y, availableWidth: S, children: a }) })
@@ -3636,7 +3650,7 @@ const mr = "connect_widget", pr = "connections_widget", I_ = ({
3636
3650
  setHasValidInput: u,
3637
3651
  ...h
3638
3652
  }) => {
3639
- const [m, p] = g.useState(""), { common: f } = x(), E = o || f.currency_input, y = Et(), S = w_(y), I = /^[0-9]*$/, v = /^(\d)*(\,)?([0-9]{1,2})?$/, w = /^(\d)*(\.)?([0-9]{1,2})?$/;
3653
+ const [m, p] = g.useState(""), { common: f } = x(), E = o || f.currency_input, y = Et(), S = w_(y), w = /^[0-9]*$/, v = /^(\d)*(\,)?([0-9]{1,2})?$/, I = /^(\d)*(\.)?([0-9]{1,2})?$/;
3640
3654
  let D;
3641
3655
  const R = g.useRef(vd());
3642
3656
  if (e)
@@ -3645,11 +3659,11 @@ const mr = "connect_widget", pr = "connections_widget", I_ = ({
3645
3659
  D = v;
3646
3660
  break;
3647
3661
  default:
3648
- D = w;
3662
+ D = I;
3649
3663
  break;
3650
3664
  }
3651
3665
  else
3652
- D = I;
3666
+ D = w;
3653
3667
  g.useEffect(() => {
3654
3668
  k(i);
3655
3669
  }, [i]);
@@ -3693,7 +3707,7 @@ const mr = "connect_widget", pr = "connections_widget", I_ = ({
3693
3707
  "& .MuiInputBase-adornedStart > .p": {
3694
3708
  marginRight: e.Spacing.Tiny
3695
3709
  }
3696
- }), dS = ({
3710
+ }), d4 = ({
3697
3711
  icon: e,
3698
3712
  label: n,
3699
3713
  onClick: i,
@@ -4042,7 +4056,7 @@ const mr = "connect_widget", pr = "connections_widget", I_ = ({
4042
4056
  onClick: i,
4043
4057
  sx: a = {}
4044
4058
  }) => {
4045
- const { onEvent: o } = X();
4059
+ const { onEvent: o } = $();
4046
4060
  return i ? /* @__PURE__ */ t(j, { sx: { bgcolor: "background.paper", ...a }, children: /* @__PURE__ */ t(
4047
4061
  _e,
4048
4062
  {
@@ -4513,15 +4527,15 @@ const ui = () => {
4513
4527
  }, [o, s]), g.useEffect(() => {
4514
4528
  y && m(y), f(S);
4515
4529
  }, [y, S]);
4516
- const I = g.useMemo(
4530
+ const w = g.useMemo(
4517
4531
  () => o.filter((R) => s.includes(R.guid)).reduce((R, k) => R + (k?.balance || 0), 0),
4518
4532
  [s, S]
4519
4533
  ), v = g.useMemo(
4520
4534
  () => u.filter((R) => s.includes(R.accountGuid || "")).reduce((R, k) => R + k.amount, 0),
4521
4535
  [s, u]
4522
- ), w = g.useMemo(
4523
- () => I - v,
4524
- [I, v]
4536
+ ), I = g.useMemo(
4537
+ () => w - v,
4538
+ [w, v]
4525
4539
  ), D = d?.has_completed_cash_flow_onboarding && !!e;
4526
4540
  return E ? /* @__PURE__ */ t(L, { className: "mx-cashflow", pl: 16, pr: 16, pt: 16, children: i > 610 ? /* @__PURE__ */ l(
4527
4541
  b,
@@ -4533,7 +4547,7 @@ const ui = () => {
4533
4547
  px: 24,
4534
4548
  children: [
4535
4549
  /* @__PURE__ */ l(b, { pb: 14, pt: 12, children: [
4536
- /* @__PURE__ */ t($e, { amount: I, variant: "H2" }),
4550
+ /* @__PURE__ */ t($e, { amount: w, variant: "H2" }),
4537
4551
  /* @__PURE__ */ t(le, { variant: "XSmall", whiteSpace: "nowrap", children: A(
4538
4552
  c.total_cash_accounts,
4539
4553
  h.length
@@ -4546,7 +4560,7 @@ const ui = () => {
4546
4560
  ] }),
4547
4561
  /* @__PURE__ */ t(b, { pt: 18, children: /* @__PURE__ */ t(V, { name: "equals" }) }),
4548
4562
  /* @__PURE__ */ l(b, { pb: 14, pr: 24, pt: 12, children: [
4549
- /* @__PURE__ */ t($e, { amount: w, variant: "H2" }),
4563
+ /* @__PURE__ */ t($e, { amount: I, variant: "H2" }),
4550
4564
  /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 8, children: [
4551
4565
  /* @__PURE__ */ t(le, { variant: "XSmall", whiteSpace: "nowrap", children: c.available_to_spend }),
4552
4566
  /* @__PURE__ */ t(Eo, { body: c.tooltip_body, title: c.tooltip_title })
@@ -4591,7 +4605,7 @@ const ui = () => {
4591
4605
  justifyContent: "space-between",
4592
4606
  px: 16,
4593
4607
  sx: { borderBottomLeftRadius: 4, borderBottomRightRadius: 4 },
4594
- children: /* @__PURE__ */ t(Ao, { remaining: w })
4608
+ children: /* @__PURE__ */ t(Ao, { remaining: I })
4595
4609
  }
4596
4610
  ),
4597
4611
  /* @__PURE__ */ t(F, {}),
@@ -4638,7 +4652,7 @@ const ui = () => {
4638
4652
  children: /* @__PURE__ */ t(W_, { onAddIncomeClick: e })
4639
4653
  }
4640
4654
  ) : /* @__PURE__ */ t(ue, {});
4641
- }, uS = T(U_), V_ = (e) => {
4655
+ }, u4 = T(U_), V_ = (e) => {
4642
4656
  if (!e) return "";
4643
4657
  let n = e.user_name || e.feed_name || "";
4644
4658
  return e.account_number && (n = `${n} *${e.account_number}`), n;
@@ -4931,7 +4945,7 @@ const th = [
4931
4945
  1,
4932
4946
  2
4933
4947
  /* MerchantLogo */
4934
- ], $ = {
4948
+ ], X = {
4935
4949
  ON_TRANSACTION_CATEGORY_CLICK: "onTransactionCategoryClick",
4936
4950
  ON_TRANSACTION_CATEGORY_CHANGED: "onTransactionCategoryChanged",
4937
4951
  ON_TRANSACTION_MANUAL_ADD_CLICK: "onTransactionManualAddClick",
@@ -5026,214 +5040,214 @@ const th = [
5026
5040
  UNHIDE_TRANSACTION: "Unhide Transaction"
5027
5041
  }, Er = {
5028
5042
  // splits
5029
- [$.ON_TRANSACTION_SPLIT_CLICK]: {
5043
+ [X.ON_TRANSACTION_SPLIT_CLICK]: {
5030
5044
  action: we.SELECT,
5031
5045
  category: ve.TRANSACTION_DETAILS,
5032
5046
  label: Ne.SPLITS
5033
5047
  },
5034
- [$.ON_TRANSACTION_SPLIT_CATEGORY_CLICK]: {
5048
+ [X.ON_TRANSACTION_SPLIT_CATEGORY_CLICK]: {
5035
5049
  action: we.ADD_CATEGORY,
5036
5050
  category: ve.TRANSACTION_DETAILS,
5037
5051
  label: Ne.SPLITS
5038
5052
  },
5039
- [$.ON_TRANSACTION_SPLIT_DELETE_CLICK]: {
5053
+ [X.ON_TRANSACTION_SPLIT_DELETE_CLICK]: {
5040
5054
  action: we.DELETE,
5041
5055
  category: ve.TRANSACTION_DETAILS,
5042
5056
  label: Ne.SPLITS
5043
5057
  },
5044
- [$.ON_TRANSACTION_SPLIT_SAVE_CLICK]: {
5058
+ [X.ON_TRANSACTION_SPLIT_SAVE_CLICK]: {
5045
5059
  action: we.SPLIT,
5046
5060
  category: ve.TRANSACTION_DETAILS,
5047
5061
  label: Ne.SPLITS
5048
5062
  },
5049
- [$.ON_TRANSACTION_UNSPLIT]: {
5063
+ [X.ON_TRANSACTION_UNSPLIT]: {
5050
5064
  action: we.UNSPLIT,
5051
5065
  category: ve.TRANSACTION_DETAILS,
5052
5066
  label: Ne.SPLITS
5053
5067
  },
5054
5068
  // category
5055
- [$.ON_TRANSACTION_CATEGORY_CLICK]: {
5069
+ [X.ON_TRANSACTION_CATEGORY_CLICK]: {
5056
5070
  action: we.SELECT,
5057
5071
  category: ve.TRANSACTIONS_LIST,
5058
5072
  label: Ne.CATEGORY
5059
5073
  },
5060
- [$.ON_TRANSACTION_CATEGORY_CHANGED]: {
5074
+ [X.ON_TRANSACTION_CATEGORY_CHANGED]: {
5061
5075
  action: we.CHANGE_CATEGORY,
5062
5076
  category: ve.TRANSACTION_DETAILS,
5063
5077
  label: Ne.CATEGORY
5064
5078
  },
5065
5079
  // date
5066
- [$.ON_TRANSACTION_DATE_CHANGED]: {
5080
+ [X.ON_TRANSACTION_DATE_CHANGED]: {
5067
5081
  action: we.SAVE,
5068
5082
  category: ve.TRANSACTION_DETAILS,
5069
5083
  label: Ne.DATE
5070
5084
  },
5071
- [$.ON_TRANSACTION_DATE_CLICK]: {
5085
+ [X.ON_TRANSACTION_DATE_CLICK]: {
5072
5086
  action: we.SELECT,
5073
5087
  category: ve.TRANSACTION_DETAILS,
5074
5088
  label: Ne.DATE
5075
5089
  },
5076
5090
  // merchant logo
5077
- [$.ON_TRANSACTION_DELETE_LOGO_CANCEL]: {
5091
+ [X.ON_TRANSACTION_DELETE_LOGO_CANCEL]: {
5078
5092
  action: we.CLOSE,
5079
5093
  category: ve.TRANSACTION_DETAILS,
5080
5094
  label: Ne.DELETE_MERCHANT_LOGO
5081
5095
  },
5082
- [$.ON_TRANSACTION_DELETE_LOGO_CLICK]: {
5096
+ [X.ON_TRANSACTION_DELETE_LOGO_CLICK]: {
5083
5097
  action: we.SELECT,
5084
5098
  category: ve.TRANSACTION_DETAILS,
5085
5099
  label: Ne.DELETE_MERCHANT_LOGO
5086
5100
  },
5087
- [$.ON_TRANSACTION_DELETE_LOGO_DELETED]: {
5101
+ [X.ON_TRANSACTION_DELETE_LOGO_DELETED]: {
5088
5102
  action: we.DELETE,
5089
5103
  category: ve.TRANSACTION_DETAILS,
5090
5104
  label: Ne.DELETE_MERCHANT_LOGO
5091
5105
  },
5092
5106
  // description
5093
- [$.ON_TRANSACTION_DESCRIPTION_EDIT_CLICK]: {
5107
+ [X.ON_TRANSACTION_DESCRIPTION_EDIT_CLICK]: {
5094
5108
  action: we.EDIT,
5095
5109
  category: ve.TRANSACTION_DETAILS,
5096
5110
  label: Ne.DESCRIPTION
5097
5111
  },
5098
- [$.ON_TRANSACTION_DESCRIPTION_SAVE_CLICK]: {
5112
+ [X.ON_TRANSACTION_DESCRIPTION_SAVE_CLICK]: {
5099
5113
  action: we.SAVE,
5100
5114
  category: ve.TRANSACTION_DETAILS,
5101
5115
  label: Ne.DESCRIPTION
5102
5116
  },
5103
5117
  // hide transactions
5104
- [$.ON_TRANSACTION_HIDDEN]: {
5118
+ [X.ON_TRANSACTION_HIDDEN]: {
5105
5119
  action: we.SAVE,
5106
5120
  category: ve.TRANSACTION_DETAILS,
5107
5121
  label: Ne.HIDE_TRANSACTION
5108
5122
  },
5109
- [$.ON_TRANSACTION_HIDE_CLICK]: {
5123
+ [X.ON_TRANSACTION_HIDE_CLICK]: {
5110
5124
  action: we.SELECT,
5111
5125
  category: ve.TRANSACTION_DETAILS,
5112
5126
  label: Ne.HIDE_TRANSACTION
5113
5127
  },
5114
- [$.ON_TRANSACTION_HIDE_CANCEL_CLICK]: {
5128
+ [X.ON_TRANSACTION_HIDE_CANCEL_CLICK]: {
5115
5129
  action: we.CLOSE,
5116
5130
  category: ve.TRANSACTION_DETAILS,
5117
5131
  label: Ne.HIDE_TRANSACTION
5118
5132
  },
5119
5133
  // transaction list
5120
- [$.ON_TRANSACTION_LIST_ITEM_CLICK]: {
5134
+ [X.ON_TRANSACTION_LIST_ITEM_CLICK]: {
5121
5135
  action: we.SELECT,
5122
5136
  category: ve.TRANSACTIONS_LIST,
5123
5137
  label: Ne.TRANSACTION
5124
5138
  },
5125
5139
  // memo
5126
- [$.ON_TRANSACTION_MEMO_CHANGED]: {
5140
+ [X.ON_TRANSACTION_MEMO_CHANGED]: {
5127
5141
  action: we.SAVE,
5128
5142
  category: ve.TRANSACTION_DETAILS,
5129
5143
  label: Ne.MEMO
5130
5144
  },
5131
- [$.ON_TRANSACTION_MEMO_CLICK]: {
5145
+ [X.ON_TRANSACTION_MEMO_CLICK]: {
5132
5146
  action: we.SELECT,
5133
5147
  category: ve.TRANSACTION_DETAILS,
5134
5148
  label: Ne.MEMO
5135
5149
  },
5136
5150
  // tags
5137
- [$.ON_TRANSACTION_TAGS_CHANGED]: {
5151
+ [X.ON_TRANSACTION_TAGS_CHANGED]: {
5138
5152
  action: we.SAVE,
5139
5153
  category: ve.TRANSACTION_DETAILS,
5140
5154
  label: Ne.TAGS
5141
5155
  },
5142
- [$.ON_TRANSACTION_TAGS_CLICK]: {
5156
+ [X.ON_TRANSACTION_TAGS_CLICK]: {
5143
5157
  action: we.SELECT,
5144
5158
  category: ve.TRANSACTION_DETAILS,
5145
5159
  label: Ne.TAGS
5146
5160
  },
5147
- [$.ON_TRANSACTION_TAGS_TAG_ADD_CANCEL_CLICK]: {
5161
+ [X.ON_TRANSACTION_TAGS_TAG_ADD_CANCEL_CLICK]: {
5148
5162
  action: we.CLOSE,
5149
5163
  category: ve.TRANSACTION_DETAILS,
5150
5164
  label: Ne.TAGS
5151
5165
  },
5152
- [$.ON_TRANSACTION_TAGS_TAG_ADD_CLICK]: {
5166
+ [X.ON_TRANSACTION_TAGS_TAG_ADD_CLICK]: {
5153
5167
  action: we.ADD,
5154
5168
  category: ve.TRANSACTION_DETAILS,
5155
5169
  label: Ne.TAG_ADD
5156
5170
  },
5157
- [$.ON_TRANSACTION_TAGS_TAG_ADDED]: {
5171
+ [X.ON_TRANSACTION_TAGS_TAG_ADDED]: {
5158
5172
  action: we.SAVE,
5159
5173
  category: ve.TRANSACTION_DETAILS,
5160
5174
  label: Ne.TAG_ADD
5161
5175
  },
5162
- [$.ON_TRANSACTION_TAGS_TAG_DELETE_CLICK]: {
5176
+ [X.ON_TRANSACTION_TAGS_TAG_DELETE_CLICK]: {
5163
5177
  action: we.SELECT,
5164
5178
  category: ve.TRANSACTION_DETAILS,
5165
5179
  label: Ne.TAG_DELETE
5166
5180
  },
5167
- [$.ON_TRANSACTION_TAGS_TAG_DELETE_CANCEL_CLICK]: {
5181
+ [X.ON_TRANSACTION_TAGS_TAG_DELETE_CANCEL_CLICK]: {
5168
5182
  action: we.CLOSE,
5169
5183
  category: ve.TRANSACTION_DETAILS,
5170
5184
  label: Ne.TAG_DELETE
5171
5185
  },
5172
- [$.ON_TRANSACTION_TAGS_TAG_DELETED]: {
5186
+ [X.ON_TRANSACTION_TAGS_TAG_DELETED]: {
5173
5187
  action: we.SAVE,
5174
5188
  category: ve.TRANSACTION_DETAILS,
5175
5189
  label: Ne.TAG_DELETE
5176
5190
  },
5177
- [$.ON_TRANSACTION_TAGS_TAG_EDIT_CLICK]: {
5191
+ [X.ON_TRANSACTION_TAGS_TAG_EDIT_CLICK]: {
5178
5192
  action: we.EDIT,
5179
5193
  category: ve.TRANSACTION_DETAILS,
5180
5194
  label: Ne.TAG_EDIT
5181
5195
  },
5182
- [$.ON_TRANSACTION_TAGS_TAG_EDIT_SAVED]: {
5196
+ [X.ON_TRANSACTION_TAGS_TAG_EDIT_SAVED]: {
5183
5197
  action: we.SAVE,
5184
5198
  category: ve.TRANSACTION_DETAILS,
5185
5199
  label: Ne.TAG_EDIT
5186
5200
  },
5187
5201
  // flag
5188
- [$.ON_TRANSACTION_TOGGLE_FLAG_CLICK]: {
5202
+ [X.ON_TRANSACTION_TOGGLE_FLAG_CLICK]: {
5189
5203
  action: we.SELECT,
5190
5204
  category: ve.TRANSACTION_DETAILS,
5191
5205
  label: Ne.FLAG
5192
5206
  },
5193
5207
  // hide
5194
- [$.ON_TRANSACTION_UNHIDDEN]: {
5208
+ [X.ON_TRANSACTION_UNHIDDEN]: {
5195
5209
  action: we.SAVE,
5196
5210
  category: ve.TRANSACTION_DETAILS,
5197
5211
  label: Ne.UNHIDE_TRANSACTION
5198
5212
  },
5199
- [$.ON_TRANSACTION_UNHIDE_CLICK]: {
5213
+ [X.ON_TRANSACTION_UNHIDE_CLICK]: {
5200
5214
  action: we.SELECT,
5201
5215
  category: ve.TRANSACTION_DETAILS,
5202
5216
  label: Ne.UNHIDE_TRANSACTION
5203
5217
  },
5204
- [$.ON_TRANSACTION_UNHIDE_CANCEL_CLICK]: {
5218
+ [X.ON_TRANSACTION_UNHIDE_CANCEL_CLICK]: {
5205
5219
  action: we.CLOSE,
5206
5220
  category: ve.TRANSACTION_DETAILS,
5207
5221
  label: Ne.UNHIDE_TRANSACTION
5208
5222
  },
5209
5223
  // export CSV
5210
- [$.ON_TRANSACTION_EXPORT_CSV_CLICK]: {
5224
+ [X.ON_TRANSACTION_EXPORT_CSV_CLICK]: {
5211
5225
  action: we.SELECT,
5212
5226
  category: ve.TRANSACTIONS_WIDGET,
5213
5227
  label: Ne.EXPORT_CSV
5214
5228
  },
5215
5229
  // add transaction
5216
- [$.ON_TRANSACTION_MANUAL_ADD_CLICK]: {
5230
+ [X.ON_TRANSACTION_MANUAL_ADD_CLICK]: {
5217
5231
  action: we.SELECT,
5218
5232
  category: ve.TRANSACTIONS_WIDGET,
5219
5233
  label: Ne.ADD_TRANSACTION
5220
5234
  },
5221
- [$.ON_TRANSACTION_MANUAL_ADD_ADDED]: {
5235
+ [X.ON_TRANSACTION_MANUAL_ADD_ADDED]: {
5222
5236
  action: we.ADD,
5223
5237
  category: ve.TRANSACTIONS_WIDGET,
5224
5238
  label: Ne.ADD_TRANSACTION
5225
5239
  },
5226
- [$.ON_TRANSACTION_DELETE_CLICK]: {
5240
+ [X.ON_TRANSACTION_DELETE_CLICK]: {
5227
5241
  action: we.SELECT,
5228
5242
  category: ve.TRANSACTIONS_WIDGET,
5229
5243
  label: Ne.DELETE_TRANSACTION
5230
5244
  },
5231
- [$.ON_TRANSACTION_DELETE_CANCEL]: {
5245
+ [X.ON_TRANSACTION_DELETE_CANCEL]: {
5232
5246
  action: we.CLOSE,
5233
5247
  category: ve.TRANSACTIONS_WIDGET,
5234
5248
  label: Ne.DELETE_TRANSACTION
5235
5249
  },
5236
- [$.ON_TRANSACTION_DELETE_DELETED]: {
5250
+ [X.ON_TRANSACTION_DELETE_DELETED]: {
5237
5251
  action: we.DELETE,
5238
5252
  category: ve.TRANSACTIONS_WIDGET,
5239
5253
  label: Ne.DELETE_TRANSACTION
@@ -5640,7 +5654,7 @@ const xh = ({ transaction: e, onClick: n }) => {
5640
5654
  return /* @__PURE__ */ l(
5641
5655
  N_,
5642
5656
  {
5643
- clickEventName: $.ON_TRANSACTION_LIST_ITEM_CLICK,
5657
+ clickEventName: X.ON_TRANSACTION_LIST_ITEM_CLICK,
5644
5658
  onClick: n ? () => n(e.guid) : void 0,
5645
5659
  children: [
5646
5660
  /* @__PURE__ */ t(Ge, { children: e.parent_guid ? /* @__PURE__ */ t(g.Fragment, {}) : /* @__PURE__ */ t(
@@ -5725,36 +5739,36 @@ const xh = ({ transaction: e, onClick: n }) => {
5725
5739
  width: c = "100%",
5726
5740
  zeroState: d = /* @__PURE__ */ t(wh, {})
5727
5741
  }) => {
5728
- const { isLoading: _, sortedTransactions: u } = Le(), h = g.useMemo(() => s ? u : u.filter((v) => !v.is_hidden), [u, s]), { clearExpandedSplits: m, setShowInsights: p, toggleSplit: f } = Nt(), { onEvent: E } = X(), y = (v) => {
5729
- const w = h.find((D) => D.guid === v);
5730
- if (w?.has_been_split) {
5731
- f(w.guid);
5742
+ const { isLoading: _, sortedTransactions: u } = Le(), h = g.useMemo(() => s ? u : u.filter((v) => !v.is_hidden), [u, s]), { clearExpandedSplits: m, setShowInsights: p, toggleSplit: f } = Nt(), { onEvent: E } = $(), y = (v) => {
5743
+ const I = h.find((D) => D.guid === v);
5744
+ if (I?.has_been_split) {
5745
+ f(I.guid);
5732
5746
  return;
5733
5747
  }
5734
- E(U.ACCOUNT_DETAILS_CLICK_TRANSACTION, {
5735
- account_guid: w?.account_guid,
5748
+ E(W.ACCOUNT_DETAILS_CLICK_TRANSACTION, {
5749
+ account_guid: I?.account_guid,
5736
5750
  transaction_guid: v
5737
5751
  }), a?.(v);
5738
- }, S = g.useRef(null), I = Ms({
5752
+ }, S = g.useRef(null), w = Ms({
5739
5753
  count: h.length,
5740
5754
  getScrollElement: () => S.current,
5741
5755
  estimateSize: (v) => Ar + (Sr(v, h) ? Tr : 0),
5742
5756
  overscan: 5
5743
5757
  });
5744
- return g.useEffect(() => I.measure(), [h]), g.useEffect(() => p(o), [o]), g.useEffect(() => () => m(), []), /* @__PURE__ */ t(ie, { children: /* @__PURE__ */ t(L, { height: n, overflow: "auto", ref: S, width: c, children: /* @__PURE__ */ l(
5758
+ return g.useEffect(() => w.measure(), [h]), g.useEffect(() => p(o), [o]), g.useEffect(() => () => m(), []), /* @__PURE__ */ t(ie, { children: /* @__PURE__ */ t(L, { height: n, overflow: "auto", ref: S, width: c, children: /* @__PURE__ */ l(
5745
5759
  L,
5746
5760
  {
5747
5761
  height: (
5748
5762
  // set the height to auto when there are no transactions so the zero state isn't set to 0
5749
- I.getVirtualItems().length === 0 ? "auto" : I.getTotalSize()
5763
+ w.getVirtualItems().length === 0 ? "auto" : w.getTotalSize()
5750
5764
  ),
5751
5765
  position: "relative",
5752
5766
  width: "100%",
5753
5767
  children: [
5754
5768
  (_ || r) && i,
5755
- !_ && !r && I.getVirtualItems().length === 0 && d,
5756
- !_ && !r && I.getVirtualItems().length > 0 && I.getVirtualItems().map((v) => {
5757
- const w = h[v.index], D = Sr(v.index, h), R = vh(v.index, h), k = Ar + (D ? Tr : 0);
5769
+ !_ && !r && w.getVirtualItems().length === 0 && d,
5770
+ !_ && !r && w.getVirtualItems().length > 0 && w.getVirtualItems().map((v) => {
5771
+ const I = h[v.index], D = Sr(v.index, h), R = vh(v.index, h), k = Ar + (D ? Tr : 0);
5758
5772
  return /* @__PURE__ */ l(
5759
5773
  L,
5760
5774
  {
@@ -5765,12 +5779,12 @@ const xh = ({ transaction: e, onClick: n }) => {
5765
5779
  width: "100%"
5766
5780
  },
5767
5781
  children: [
5768
- D && /* @__PURE__ */ t(Io, { bgcolor: e, children: ma(w.date) }),
5769
- /* @__PURE__ */ t(xo, { onClick: y, transaction: w }),
5782
+ D && /* @__PURE__ */ t(Io, { bgcolor: e, children: ma(I.date) }),
5783
+ /* @__PURE__ */ t(xo, { onClick: y, transaction: I }),
5770
5784
  /* @__PURE__ */ t(F, { sx: { ml: R ? 24 : 0 } })
5771
5785
  ]
5772
5786
  },
5773
- w.guid
5787
+ I.guid
5774
5788
  );
5775
5789
  })
5776
5790
  ]
@@ -6005,7 +6019,7 @@ const Fh = ({
6005
6019
  }
6006
6020
  );
6007
6021
  }, wo = T(Fh), Wh = ({ parentCategory: e }) => {
6008
- const [n, i] = g.useState(!1), { addCategory: a } = Ve(), { categories: o } = x(), { onEvent: r } = X(), { setShouldDisableDrawerScroll: s } = _n(), c = async (u) => {
6022
+ const [n, i] = g.useState(!1), { addCategory: a } = Ve(), { categories: o } = x(), { onEvent: r } = $(), { setShouldDisableDrawerScroll: s } = _n(), c = async (u) => {
6009
6023
  await a(u.trim(), e.guid), r(Xt.ON_SUBCATEGORY_ADDED), i(!1);
6010
6024
  }, d = async () => {
6011
6025
  r(Xt.ON_SUBCATEGORY_ADD_CLICK), s(!0), i(!0);
@@ -6035,7 +6049,7 @@ const Fh = ({
6035
6049
  subCategory: n,
6036
6050
  showRename: i
6037
6051
  }) => {
6038
- const { updateCategory: a } = Ve(), { onEvent: o } = X(), r = async (c) => {
6052
+ const { updateCategory: a } = Ve(), { onEvent: o } = $(), r = async (c) => {
6039
6053
  await a({ ...n, name: c }), o(Xt.ON_SUBCATEGORY_SAVED), e(!1);
6040
6054
  }, s = () => {
6041
6055
  e(!1), o(Xt.ON_SUBCATEGORY_EDIT_CANCEL_CLICK);
@@ -6056,7 +6070,7 @@ const Fh = ({
6056
6070
  setShowDelete: i,
6057
6071
  subCategory: a
6058
6072
  }) => {
6059
- const { onEvent: o } = X(), { removeCategory: r } = Ve(), s = () => {
6073
+ const { onEvent: o } = $(), { removeCategory: r } = Ve(), s = () => {
6060
6074
  i(!1), o(Xt.ON_SUBCATEGORY_DELETE_CLICK);
6061
6075
  }, c = async () => {
6062
6076
  o(Xt.ON_SUBCATEGORY_DELETED), await r(a.guid), i(!1);
@@ -6080,7 +6094,7 @@ const Fh = ({
6080
6094
  showSelected: s,
6081
6095
  unselectable: c,
6082
6096
  unselectableText: d
6083
- } = _n(), { categories: _ } = x(), { onEvent: u } = X(), [h, m] = g.useState(!1), [p, f] = g.useState(!1), E = !!n.revision, y = n.guid === a, S = !c.some((v) => v === n.guid);
6097
+ } = _n(), { categories: _ } = x(), { onEvent: u } = $(), [h, m] = g.useState(!1), [p, f] = g.useState(!1), E = !!n.revision, y = n.guid === a, S = !c.some((v) => v === n.guid);
6084
6098
  return /* @__PURE__ */ l(
6085
6099
  j,
6086
6100
  {
@@ -6181,7 +6195,7 @@ const Fh = ({
6181
6195
  }
6182
6196
  );
6183
6197
  }, qh = T(Xh), Zh = ({ category: e, subCategories: n }) => {
6184
- const { expandedGuid: i, searchValue: a, setExpandedGuid: o } = _n(), { onEvent: r } = X(), s = e.guid === i, c = () => {
6198
+ const { expandedGuid: i, searchValue: a, setExpandedGuid: o } = _n(), { onEvent: r } = $(), s = e.guid === i, c = () => {
6185
6199
  const d = e.guid !== i ? e.guid : null;
6186
6200
  o(d), r(d ? Xt.ON_CATEGORY_EXPANDED : Xt.ON_CATEGORY_COLLAPSED);
6187
6201
  };
@@ -6499,13 +6513,13 @@ class rg {
6499
6513
  getCategoryName = (n) => this.categories.find((a) => a.guid === n)?.name ?? ga[n];
6500
6514
  }
6501
6515
  const pc = ({ transaction: e }) => {
6502
- const { addOrUpdateTransactionRule: n, updateTransaction: i } = Le(), { categories: a } = Ve(), { onEvent: o } = X(), { setShouldDisableDrawerScroll: r, updateManualTransaction: s } = Nt(), { transactions: c } = x(), [d, _] = g.useState(!1), [u, h] = g.useState(""), m = async (y) => {
6503
- await i({ ...e, category_guid: u }), y && await n(u, e), h(""), o(U.TRANSACTION_DETAILS_CLICK_CATEGORY, {
6516
+ const { addOrUpdateTransactionRule: n, updateTransaction: i } = Le(), { categories: a } = Ve(), { onEvent: o } = $(), { setShouldDisableDrawerScroll: r, updateManualTransaction: s } = Nt(), { transactions: c } = x(), [d, _] = g.useState(!1), [u, h] = g.useState(""), m = async (y) => {
6517
+ await i({ ...e, category_guid: u }), y && await n(u, e), h(""), o(W.TRANSACTION_DETAILS_CLICK_CATEGORY, {
6504
6518
  transaction_guid: e.guid
6505
6519
  });
6506
6520
  }, p = (y) => {
6507
6521
  if (e.is_manual && !e.guid) {
6508
- const S = a.find((I) => I.guid === y);
6522
+ const S = a.find((w) => w.guid === y);
6509
6523
  s({
6510
6524
  ...e,
6511
6525
  category: S?.name,
@@ -6526,7 +6540,7 @@ const pc = ({ transaction: e }) => {
6526
6540
  _e,
6527
6541
  {
6528
6542
  onClick: () => {
6529
- o($.ON_TRANSACTION_CATEGORY_CLICK), _(!0);
6543
+ o(X.ON_TRANSACTION_CATEGORY_CLICK), _(!0);
6530
6544
  },
6531
6545
  children: [
6532
6546
  /* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Bt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(
@@ -6584,21 +6598,21 @@ const pc = ({ transaction: e }) => {
6584
6598
  )
6585
6599
  ] });
6586
6600
  }, Cc = ({ transaction: e }) => {
6587
- const n = Et(), { onEvent: i } = X(), { updateTransaction: a } = Le(), { updateManualTransaction: o } = Nt(), { common: r, transactions: s } = x(), [c, d] = g.useState(!1), [_, u] = g.useState(e.date), h = (p) => {
6601
+ const n = Et(), { onEvent: i } = $(), { updateTransaction: a } = Le(), { updateManualTransaction: o } = Nt(), { common: r, transactions: s } = x(), [c, d] = g.useState(!1), [_, u] = g.useState(e.date), h = (p) => {
6588
6602
  u(Pe(p));
6589
6603
  }, m = async () => {
6590
6604
  if (e.is_manual && !e.guid) {
6591
6605
  o({ ...e, date: _ }), d(!1);
6592
6606
  return;
6593
6607
  }
6594
- await a({ ...e, date: _ }), i(U.TRANSACTION_DETAILS_CLICK_DATE, { transaction_guid: e.guid }), d(!1);
6608
+ await a({ ...e, date: _ }), i(W.TRANSACTION_DETAILS_CLICK_DATE, { transaction_guid: e.guid }), d(!1);
6595
6609
  };
6596
6610
  return /* @__PURE__ */ l(L, { className: "mx-txn-date-action", children: [
6597
6611
  /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
6598
6612
  _e,
6599
6613
  {
6600
6614
  onClick: () => {
6601
- i($.ON_TRANSACTION_DATE_CLICK), d(!0);
6615
+ i(X.ON_TRANSACTION_DATE_CLICK), d(!0);
6602
6616
  },
6603
6617
  children: [
6604
6618
  /* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Bt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(V, { name: "calendar_month", sx: { color: "text.primary" }, weight: At.Dark }) }) }),
@@ -6641,15 +6655,15 @@ const pc = ({ transaction: e }) => {
6641
6655
  )
6642
6656
  ] });
6643
6657
  }, sg = ({ transaction: e }) => {
6644
- const { onEvent: n } = X(), { removeTransaction: i } = Le(), { setShouldDisableDrawerScroll: a } = Nt(), { common: o, transactions: r } = x(), [s, c] = g.useState(!1), d = async () => {
6645
- await i(e.guid), n($.ON_TRANSACTION_DELETE_DELETED);
6658
+ const { onEvent: n } = $(), { removeTransaction: i } = Le(), { setShouldDisableDrawerScroll: a } = Nt(), { common: o, transactions: r } = x(), [s, c] = g.useState(!1), d = async () => {
6659
+ await i(e.guid), n(X.ON_TRANSACTION_DELETE_DELETED);
6646
6660
  };
6647
6661
  return /* @__PURE__ */ l(L, { className: "mx-txn-delete", children: [
6648
6662
  e && /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
6649
6663
  _e,
6650
6664
  {
6651
6665
  onClick: () => {
6652
- n($.ON_TRANSACTION_DELETE_CLICK), a(!0), c(!0);
6666
+ n(X.ON_TRANSACTION_DELETE_CLICK), a(!0), c(!0);
6653
6667
  },
6654
6668
  children: [
6655
6669
  /* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Bt, { variant: "rounded", children: /* @__PURE__ */ t(Ji, { color: "secondary", fontSize: "small" }) }) }),
@@ -6673,7 +6687,7 @@ const pc = ({ transaction: e }) => {
6673
6687
  a(!1), c(!1);
6674
6688
  },
6675
6689
  onPrimaryAction: d,
6676
- onSecondaryAction: () => n($.ON_TRANSACTION_DELETE_CANCEL),
6690
+ onSecondaryAction: () => n(X.ON_TRANSACTION_DELETE_CANCEL),
6677
6691
  primaryText: o.delete_button,
6678
6692
  secondaryText: o.cancel_button,
6679
6693
  children: /* @__PURE__ */ t(C, { sx: { whiteSpace: "normal" }, variant: "Paragraph", children: r.manual_transaction_delete_description })
@@ -6681,8 +6695,8 @@ const pc = ({ transaction: e }) => {
6681
6695
  )
6682
6696
  ] });
6683
6697
  }, cg = T(sg), lg = ({ transaction: e }) => {
6684
- const { onEvent: n } = X(), { updateTransaction: i } = Le(), { setShouldDisableDrawerScroll: a } = Nt(), { common: o, transactions: r } = x(), [s, c] = g.useState(!1), d = async () => {
6685
- await i({ ...e, merchant_guid: "" }), n(U.TRANSACTION_DETAILS_CLICK_DELETE_LOGO, {
6698
+ const { onEvent: n } = $(), { updateTransaction: i } = Le(), { setShouldDisableDrawerScroll: a } = Nt(), { common: o, transactions: r } = x(), [s, c] = g.useState(!1), d = async () => {
6699
+ await i({ ...e, merchant_guid: "" }), n(W.TRANSACTION_DETAILS_CLICK_DELETE_LOGO, {
6686
6700
  transaction_guid: e.guid
6687
6701
  });
6688
6702
  };
@@ -6691,7 +6705,7 @@ const pc = ({ transaction: e }) => {
6691
6705
  _e,
6692
6706
  {
6693
6707
  onClick: () => {
6694
- n($.ON_TRANSACTION_DELETE_LOGO_CLICK), c(!0);
6708
+ n(X.ON_TRANSACTION_DELETE_LOGO_CLICK), c(!0);
6695
6709
  },
6696
6710
  children: [
6697
6711
  /* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Bt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(V, { name: "delete", sx: { color: "text.primary" }, weight: At.Dark }) }) }),
@@ -6709,7 +6723,7 @@ const pc = ({ transaction: e }) => {
6709
6723
  a(!1), c(!1);
6710
6724
  },
6711
6725
  onPrimaryAction: d,
6712
- onSecondaryAction: () => n($.ON_TRANSACTION_DELETE_LOGO_CANCEL),
6726
+ onSecondaryAction: () => n(X.ON_TRANSACTION_DELETE_LOGO_CANCEL),
6713
6727
  primaryText: o.delete_button,
6714
6728
  secondaryText: o.cancel_button,
6715
6729
  title: r.merchant_logo_modal_title,
@@ -6721,9 +6735,9 @@ const pc = ({ transaction: e }) => {
6721
6735
  )
6722
6736
  ] });
6723
6737
  }, dg = T(lg), ug = ({ transaction: e }) => {
6724
- const { onEvent: n } = X(), { updateTransaction: i } = Le(), { setShouldDisableDrawerScroll: a } = Nt(), { common: o, transactions: r } = x(), [s, c] = g.useState(!1), d = e.is_hidden, _ = async () => {
6738
+ const { onEvent: n } = $(), { updateTransaction: i } = Le(), { setShouldDisableDrawerScroll: a } = Nt(), { common: o, transactions: r } = x(), [s, c] = g.useState(!1), d = e.is_hidden, _ = async () => {
6725
6739
  await i({ ...e, is_hidden: !e.is_hidden }), n(
6726
- d ? $.ON_TRANSACTION_UNHIDDEN : $.ON_TRANSACTION_HIDDEN
6740
+ d ? X.ON_TRANSACTION_UNHIDDEN : X.ON_TRANSACTION_HIDDEN
6727
6741
  );
6728
6742
  };
6729
6743
  return /* @__PURE__ */ l(L, { className: "mx-txn-hide-transaction", children: [
@@ -6733,7 +6747,7 @@ const pc = ({ transaction: e }) => {
6733
6747
  "aria-checked": d,
6734
6748
  onClick: () => {
6735
6749
  n(
6736
- d ? $.ON_TRANSACTION_UNHIDE_CLICK : $.ON_TRANSACTION_HIDE_CLICK
6750
+ d ? X.ON_TRANSACTION_UNHIDE_CLICK : X.ON_TRANSACTION_HIDE_CLICK
6737
6751
  ), n(
6738
6752
  d ? "transaction_details_click_unhide_transaction" : "transaction_details_click_hide_transaction",
6739
6753
  {
@@ -6782,7 +6796,7 @@ const pc = ({ transaction: e }) => {
6782
6796
  },
6783
6797
  onPrimaryAction: _,
6784
6798
  onSecondaryAction: () => n(
6785
- d ? $.ON_TRANSACTION_UNHIDE_CANCEL_CLICK : $.ON_TRANSACTION_HIDE_CANCEL_CLICK
6799
+ d ? X.ON_TRANSACTION_UNHIDE_CANCEL_CLICK : X.ON_TRANSACTION_HIDE_CANCEL_CLICK
6786
6800
  ),
6787
6801
  primaryText: d ? o.unhide_button : o.hide_button,
6788
6802
  secondaryText: o.cancel_button,
@@ -6810,7 +6824,7 @@ const pc = ({ transaction: e }) => {
6810
6824
  ] })
6811
6825
  ] });
6812
6826
  }, hg = ({ transaction: e }) => {
6813
- const { onEvent: n } = X(), { updateTransaction: i } = Le(), { updateManualTransaction: a } = Nt(), { common: o, transactions: r } = x(), [s, c] = g.useState(!1), [d, _] = g.useState("");
6827
+ const { onEvent: n } = $(), { updateTransaction: i } = Le(), { updateManualTransaction: a } = Nt(), { common: o, transactions: r } = x(), [s, c] = g.useState(!1), [d, _] = g.useState("");
6814
6828
  g.useEffect(() => {
6815
6829
  s && _(e.memo ? e.memo : "");
6816
6830
  }, [s]);
@@ -6819,14 +6833,14 @@ const pc = ({ transaction: e }) => {
6819
6833
  a({ ...e, memo: d }), c(!1);
6820
6834
  return;
6821
6835
  }
6822
- await i({ ...e, memo: d }), n(U.TRANSACTION_DETAILS_CLICK_MEMO, { transaction_guid: e.guid }), c(!1);
6836
+ await i({ ...e, memo: d }), n(W.TRANSACTION_DETAILS_CLICK_MEMO, { transaction_guid: e.guid }), c(!1);
6823
6837
  };
6824
6838
  return /* @__PURE__ */ l("div", { className: "mx-txn-memo-action", children: [
6825
6839
  /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
6826
6840
  _e,
6827
6841
  {
6828
6842
  onClick: () => {
6829
- n($.ON_TRANSACTION_MEMO_CLICK), c(!0);
6843
+ n(X.ON_TRANSACTION_MEMO_CLICK), c(!0);
6830
6844
  },
6831
6845
  children: [
6832
6846
  /* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Bt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(V, { name: "article", sx: { color: "text.primary" }, weight: At.Dark }) }) }),
@@ -6886,7 +6900,7 @@ const pc = ({ transaction: e }) => {
6886
6900
  onUpdateAmount: a,
6887
6901
  split: o
6888
6902
  }) => {
6889
- const r = Et(), { onEvent: s } = X(), { transactions: c } = x(), [d, _] = g.useState(`${o.amount}`), [u, h] = g.useState(!1), m = e === 0, p = (f) => {
6903
+ const r = Et(), { onEvent: s } = $(), { transactions: c } = x(), [d, _] = g.useState(`${o.amount}`), [u, h] = g.useState(!1), m = e === 0, p = (f) => {
6890
6904
  isNaN(Number(f)) || (_(f), a(e, Number(f)));
6891
6905
  };
6892
6906
  return /* @__PURE__ */ l(
@@ -6947,7 +6961,7 @@ const pc = ({ transaction: e }) => {
6947
6961
  "aria-label": c.split_transaction_delete_split_btn,
6948
6962
  color: "secondary",
6949
6963
  onClick: () => {
6950
- s($.ON_TRANSACTION_SPLIT_DELETE_CLICK), n(e);
6964
+ s(X.ON_TRANSACTION_SPLIT_DELETE_CLICK), n(e);
6951
6965
  },
6952
6966
  sx: { w: 44, h: 44 },
6953
6967
  children: /* @__PURE__ */ t(Ji, {})
@@ -6992,7 +7006,7 @@ const pc = ({ transaction: e }) => {
6992
7006
  splits: o,
6993
7007
  transaction: r
6994
7008
  }) => {
6995
- const s = Et(), { transactions: c } = x(), { onEvent: d } = X(), [_, u] = g.useState("");
7009
+ const s = Et(), { transactions: c } = x(), { onEvent: d } = $(), [_, u] = g.useState("");
6996
7010
  return g.useEffect(() => {
6997
7011
  u(o.length <= 1 ? c.split_transaction_errors_min_splits : ""), u(
6998
7012
  o[0].amount < 0 ? A(
@@ -7030,14 +7044,14 @@ const pc = ({ transaction: e }) => {
7030
7044
  {
7031
7045
  "aria-label": c.split_transaction_add_split_btn,
7032
7046
  onClick: () => {
7033
- d($.ON_TRANSACTION_SPLIT_ADD_CLICK), e();
7047
+ d(X.ON_TRANSACTION_SPLIT_ADD_CLICK), e();
7034
7048
  },
7035
7049
  children: c.split_transaction_add_split_btn
7036
7050
  }
7037
7051
  ) })
7038
7052
  ] });
7039
7053
  }, Cg = T(pg), fg = ({ transaction: e }) => {
7040
- const { onEvent: n } = X(), { splitTransaction: i, unSplitTransaction: a } = Le(), { common: o, transactions: r } = x(), { setShouldDisableDrawerScroll: s } = Nt(), { categories: c } = Ve(), d = {
7054
+ const { onEvent: n } = $(), { splitTransaction: i, unSplitTransaction: a } = Le(), { common: o, transactions: r } = x(), { setShouldDisableDrawerScroll: s } = Nt(), { categories: c } = Ve(), d = {
7041
7055
  ...e,
7042
7056
  amount: e.amount - 1,
7043
7057
  guid: "",
@@ -7057,47 +7071,47 @@ const pc = ({ transaction: e }) => {
7057
7071
  O.push({ ..._ }), O[0].amount -= 1, E(O);
7058
7072
  }, S = (O) => {
7059
7073
  if (O > 0) {
7060
- const M = f[O], W = [...f];
7061
- W.splice(O, 1), W[0].amount += M.amount, E(W);
7074
+ const M = f[O], U = [...f];
7075
+ U.splice(O, 1), U[0].amount += M.amount, E(U);
7062
7076
  }
7063
- }, I = (O, M) => {
7064
- const W = [...f];
7065
- W[O].amount = M, W[0].amount = e.amount - W.reduce(
7077
+ }, w = (O, M) => {
7078
+ const U = [...f];
7079
+ U[O].amount = M, U[0].amount = e.amount - U.reduce(
7066
7080
  (Q, he, be) => Q + (be !== 0 ? he.amount : 0),
7067
7081
  0
7068
- ), E(W);
7082
+ ), E(U);
7069
7083
  }, v = (O, M) => {
7070
- const W = [...f], Q = c.find((he) => he.guid === M);
7071
- Q && (W[O] = {
7072
- ...W[O],
7084
+ const U = [...f], Q = c.find((he) => he.guid === M);
7085
+ Q && (U[O] = {
7086
+ ...U[O],
7073
7087
  category_guid: M,
7074
7088
  category: Q.name,
7075
7089
  top_level_category_guid: Q.parent_guid || M
7076
- }, E(W));
7077
- }, w = () => {
7090
+ }, E(U));
7091
+ }, I = () => {
7078
7092
  if (e.parent_guid || e.has_been_split) {
7079
7093
  p(!0);
7080
7094
  return;
7081
7095
  }
7082
- E([{ ...d }, { ..._ }]), n(U.TRANSACTION_DETAILS_CLICK_SPLIT, {
7096
+ E([{ ...d }, { ..._ }]), n(W.TRANSACTION_DETAILS_CLICK_SPLIT, {
7083
7097
  transaction_guid: e.guid
7084
7098
  }), h(!0);
7085
7099
  }, D = async () => {
7086
- n($.ON_TRANSACTION_SPLIT_SAVE_CLICK), await i({ ...e, has_been_split: !0 }, f), h(!1);
7100
+ n(X.ON_TRANSACTION_SPLIT_SAVE_CLICK), await i({ ...e, has_been_split: !0 }, f), h(!1);
7087
7101
  }, R = async () => {
7088
- n($.ON_TRANSACTION_SPLIT_CANCEL_CLICK), E([{ ...d }, { ..._ }]), h(!1);
7102
+ n(X.ON_TRANSACTION_SPLIT_CANCEL_CLICK), E([{ ...d }, { ..._ }]), h(!1);
7089
7103
  }, k = async () => {
7090
- n(U.TRANSACTION_DETAILS_CLICK_UNSPLIT, {
7104
+ n(W.TRANSACTION_DETAILS_CLICK_UNSPLIT, {
7091
7105
  transaction_guid: e.guid
7092
7106
  });
7093
7107
  const O = e.parent_guid ?? e.guid;
7094
7108
  await a(O);
7095
7109
  }, G = g.useMemo(() => {
7096
- const O = f.some((W) => !W.category_guid), M = f.some((W) => W.amount <= 0);
7110
+ const O = f.some((U) => !U.category_guid), M = f.some((U) => U.amount <= 0);
7097
7111
  return O || M;
7098
7112
  }, [f]);
7099
7113
  return /* @__PURE__ */ l(g.Fragment, { children: [
7100
- e && /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(_e, { onClick: w, children: [
7114
+ e && /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(_e, { onClick: I, children: [
7101
7115
  /* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Bt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(V, { name: "call_split", sx: { color: "text.primary" }, weight: At.Dark }) }) }),
7102
7116
  /* @__PURE__ */ t(
7103
7117
  oe,
@@ -7127,7 +7141,7 @@ const pc = ({ transaction: e }) => {
7127
7141
  onAddSplit: y,
7128
7142
  onCategoryChanged: v,
7129
7143
  onDeleteSplit: S,
7130
- onUpdateAmount: I,
7144
+ onUpdateAmount: w,
7131
7145
  splits: f,
7132
7146
  transaction: e
7133
7147
  }
@@ -7145,7 +7159,7 @@ const pc = ({ transaction: e }) => {
7145
7159
  },
7146
7160
  onPrimaryAction: k,
7147
7161
  onSecondaryAction: () => {
7148
- n($.ON_TRANSACTION_UNSPLIT_CANCEL);
7162
+ n(X.ON_TRANSACTION_UNSPLIT_CANCEL);
7149
7163
  },
7150
7164
  primaryText: o.delete_button,
7151
7165
  secondaryText: o.cancel_button,
@@ -7157,16 +7171,16 @@ const pc = ({ transaction: e }) => {
7157
7171
  )
7158
7172
  ] });
7159
7173
  }, bg = T(fg), yg = () => {
7160
- const e = Ce(), { onEvent: n } = X(), { addTag: i } = Le(), { transactions: a } = x(), [o, r] = g.useState(!1), [s, c] = g.useState(""), [d, _] = g.useState(""), u = g.useRef(null);
7174
+ const e = Ce(), { onEvent: n } = $(), { addTag: i } = Le(), { transactions: a } = x(), [o, r] = g.useState(!1), [s, c] = g.useState(""), [d, _] = g.useState(""), u = g.useRef(null);
7161
7175
  g.useEffect(() => {
7162
7176
  o && u?.current?.focus();
7163
7177
  }, [o]);
7164
7178
  const h = () => {
7165
7179
  n(
7166
- o ? $.ON_TRANSACTION_TAGS_TAG_ADD_CANCEL_CLICK : $.ON_TRANSACTION_TAGS_TAG_ADD_CLICK
7180
+ o ? X.ON_TRANSACTION_TAGS_TAG_ADD_CANCEL_CLICK : X.ON_TRANSACTION_TAGS_TAG_ADD_CLICK
7167
7181
  ), o || c(""), r(!o);
7168
7182
  }, m = async () => {
7169
- n($.ON_TRANSACTION_TAGS_TAG_ADDED), await i(s), r(!1);
7183
+ n(X.ON_TRANSACTION_TAGS_TAG_ADDED), await i(s), r(!1);
7170
7184
  };
7171
7185
  return g.useEffect(() => {
7172
7186
  _(s.length > 40 ? a.tags_error_name_must_be_40_chars : "");
@@ -7244,18 +7258,18 @@ const pc = ({ transaction: e }) => {
7244
7258
  }
7245
7259
  ) });
7246
7260
  }, Ag = T(Sg), Tg = ({ onTagChecked: e, selectedTags: n, tag: i }) => {
7247
- const { onEvent: a } = X(), { removeTag: o, updateTag: r } = Le(), { common: s, transactions: c } = x(), [d, _] = g.useState(!1), [u, h] = g.useState(!1), [m, p] = g.useState(""), [f, E] = g.useState(""), y = async () => {
7248
- a($.ON_TRANSACTION_TAGS_TAG_EDIT_SAVED), i && await r({ ...i, name: m }), _(!1);
7261
+ const { onEvent: a } = $(), { removeTag: o, updateTag: r } = Le(), { common: s, transactions: c } = x(), [d, _] = g.useState(!1), [u, h] = g.useState(!1), [m, p] = g.useState(""), [f, E] = g.useState(""), y = async () => {
7262
+ a(X.ON_TRANSACTION_TAGS_TAG_EDIT_SAVED), i && await r({ ...i, name: m }), _(!1);
7249
7263
  }, S = async () => {
7250
- a($.ON_TRANSACTION_TAGS_TAG_DELETED), await o(i.guid), h(!1);
7264
+ a(X.ON_TRANSACTION_TAGS_TAG_DELETED), await o(i.guid), h(!1);
7251
7265
  };
7252
7266
  g.useEffect(() => {
7253
7267
  E(m.length > 40 ? c.tags_error_name_must_be_40_chars : "");
7254
7268
  }, [m]);
7255
- const I = () => {
7256
- a($.ON_TRANSACTION_TAGS_TAG_EDIT_CLICK), p(i.name), _(!0);
7269
+ const w = () => {
7270
+ a(X.ON_TRANSACTION_TAGS_TAG_EDIT_CLICK), p(i.name), _(!0);
7257
7271
  }, v = () => {
7258
- a($.ON_TRANSACTION_TAGS_TAG_DELETE_CLICK), h(!0);
7272
+ a(X.ON_TRANSACTION_TAGS_TAG_DELETE_CLICK), h(!0);
7259
7273
  };
7260
7274
  return /* @__PURE__ */ l(
7261
7275
  j,
@@ -7269,7 +7283,7 @@ const pc = ({ transaction: e }) => {
7269
7283
  {
7270
7284
  "aria-label": `Edit ${i.name} tag`,
7271
7285
  color: "secondary",
7272
- onClick: I,
7286
+ onClick: w,
7273
7287
  children: /* @__PURE__ */ t(nu, { color: "secondary" })
7274
7288
  }
7275
7289
  ),
@@ -7311,7 +7325,7 @@ const pc = ({ transaction: e }) => {
7311
7325
  "aria-describedby": f ? "update-tag-error" : void 0,
7312
7326
  "aria-label": c.tags_update_the_tag_name,
7313
7327
  name: "update-tag",
7314
- onChange: (w) => p(w.target.value),
7328
+ onChange: (I) => p(I.target.value),
7315
7329
  placeholder: "Tag name",
7316
7330
  sx: { width: "100%" },
7317
7331
  value: m
@@ -7328,7 +7342,7 @@ const pc = ({ transaction: e }) => {
7328
7342
  isOpen: u,
7329
7343
  onClose: () => h(!1),
7330
7344
  onPrimaryAction: S,
7331
- onSecondaryAction: () => a($.ON_TRANSACTION_TAGS_TAG_DELETE_CANCEL_CLICK),
7345
+ onSecondaryAction: () => a(X.ON_TRANSACTION_TAGS_TAG_DELETE_CANCEL_CLICK),
7332
7346
  primaryText: s.delete_button,
7333
7347
  secondaryText: s.cancel_button,
7334
7348
  children: /* @__PURE__ */ t(C, { truncate: !1, children: c.tags_deleting_this_tag_will_remove_it })
@@ -7356,7 +7370,7 @@ const pc = ({ transaction: e }) => {
7356
7370
  ] }, s.guid)) }) })
7357
7371
  ] });
7358
7372
  }, wg = T(Ig), vg = ({ transaction: e }) => {
7359
- const { onEvent: n } = X(), { tags: i, updateTaggings: a, updateTransaction: o } = Le(), { common: r, transactions: s } = x(), { updateManualTransaction: c } = Nt(), [d, _] = g.useState(!1), [u, h] = g.useState(e.tags);
7373
+ const { onEvent: n } = $(), { tags: i, updateTaggings: a, updateTransaction: o } = Le(), { common: r, transactions: s } = x(), { updateManualTransaction: c } = Nt(), [d, _] = g.useState(!1), [u, h] = g.useState(e.tags);
7360
7374
  g.useEffect(() => {
7361
7375
  h(e.tags);
7362
7376
  }, [d, e]);
@@ -7368,10 +7382,10 @@ const pc = ({ transaction: e }) => {
7368
7382
  c({ ...e, tags: u }), _(!1);
7369
7383
  return;
7370
7384
  }
7371
- await a(u, e.guid), await o({ ...e, tags: u }), n(U.TRANSACTION_DETAILS_CLICK_TAGS, { transaction_guid: e.guid }), _(!1);
7385
+ await a(u, e.guid), await o({ ...e, tags: u }), n(W.TRANSACTION_DETAILS_CLICK_TAGS, { transaction_guid: e.guid }), _(!1);
7372
7386
  }, f = g.useMemo(
7373
7387
  () => e.tags.map(
7374
- (E, y, S) => `${i.find((I) => I.guid === E)?.name}${y < S.length - 1 ? " / " : ""}`
7388
+ (E, y, S) => `${i.find((w) => w.guid === E)?.name}${y < S.length - 1 ? " / " : ""}`
7375
7389
  ),
7376
7390
  [i, e]
7377
7391
  );
@@ -7380,7 +7394,7 @@ const pc = ({ transaction: e }) => {
7380
7394
  _e,
7381
7395
  {
7382
7396
  onClick: () => {
7383
- n($.ON_TRANSACTION_TAGS_CLICK), _(!0);
7397
+ n(X.ON_TRANSACTION_TAGS_CLICK), _(!0);
7384
7398
  },
7385
7399
  children: [
7386
7400
  /* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Bt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(V, { name: "local_offer", sx: { color: "text.primary" }, weight: At.Dark }) }) }),
@@ -7411,12 +7425,12 @@ const pc = ({ transaction: e }) => {
7411
7425
  )
7412
7426
  ] });
7413
7427
  }, yc = T(vg), Ng = ({ transaction: e }) => {
7414
- const { updateTransaction: n } = Le(), { common: i, transactions: a } = x(), { onEvent: o } = X(), [r, s] = g.useState(!1), [c, d] = g.useState(""), _ = g.useRef(null);
7428
+ const { updateTransaction: n } = Le(), { common: i, transactions: a } = x(), { onEvent: o } = $(), [r, s] = g.useState(!1), [c, d] = g.useState(""), _ = g.useRef(null);
7415
7429
  g.useEffect(() => {
7416
7430
  r && (d(e.description), _?.current?.focus());
7417
7431
  }, [r]);
7418
7432
  const u = async () => {
7419
- o(U.TRANSACTION_DETAILS_CLICK_DESCRIPTION, {
7433
+ o(W.TRANSACTION_DETAILS_CLICK_DESCRIPTION, {
7420
7434
  transaction_guid: e.guid
7421
7435
  }), await n({ ...e, description: c }), s(!1);
7422
7436
  };
@@ -7454,7 +7468,7 @@ const pc = ({ transaction: e }) => {
7454
7468
  {
7455
7469
  "aria-label": a.description_edit_transaction_name,
7456
7470
  onClick: () => {
7457
- s(!0), o($.ON_TRANSACTION_DESCRIPTION_EDIT_CLICK);
7471
+ s(!0), o(X.ON_TRANSACTION_DESCRIPTION_EDIT_CLICK);
7458
7472
  },
7459
7473
  sx: { color: "action.active" },
7460
7474
  children: /* @__PURE__ */ t(V, { name: "create", size: 22 })
@@ -7462,8 +7476,8 @@ const pc = ({ transaction: e }) => {
7462
7476
  )
7463
7477
  ] }) });
7464
7478
  }, Dg = T(Ng), Rg = ({ transaction: e }) => {
7465
- const { updateTransaction: n } = Le(), { transactions: i } = x(), { onEvent: a } = X(), o = Ce(), r = async () => {
7466
- a(U.TRANSACTION_DETAILS_CLICK_FLAG, { transaction_guid: e.guid }), await n({ ...e, is_flagged: !e.is_flagged });
7479
+ const { updateTransaction: n } = Le(), { transactions: i } = x(), { onEvent: a } = $(), o = Ce(), r = async () => {
7480
+ a(W.TRANSACTION_DETAILS_CLICK_FLAG, { transaction_guid: e.guid }), await n({ ...e, is_flagged: !e.is_flagged });
7467
7481
  };
7468
7482
  return /* @__PURE__ */ t("div", { className: "mx-txn-transaction-flag", children: /* @__PURE__ */ t(
7469
7483
  $n,
@@ -7498,9 +7512,9 @@ const pc = ({ transaction: e }) => {
7498
7512
  topActions: n = th,
7499
7513
  transaction: i
7500
7514
  }) => {
7501
- const { isCopyLoaded: a } = de(), o = i?.number && i.number.length > 4, { onEvent: r } = X();
7515
+ const { isCopyLoaded: a } = de(), o = i?.number && i.number.length > 4, { onEvent: r } = $();
7502
7516
  return g.useEffect(
7503
- () => r(U.TRANSACTION_DETAILS_VIEW, { transaction_guid: i.guid }),
7517
+ () => r(W.TRANSACTION_DETAILS_VIEW, { transaction_guid: i.guid }),
7504
7518
  []
7505
7519
  ), a ? /* @__PURE__ */ t(L, { className: "mx-txn-transaction-details", width: "100%", children: i && /* @__PURE__ */ l(b, { children: [
7506
7520
  /* @__PURE__ */ l(b, { gap: 12, p: 24, children: [
@@ -7712,16 +7726,16 @@ const pc = ({ transaction: e }) => {
7712
7726
  showInsights: i = !1,
7713
7727
  sx: a = {}
7714
7728
  }) => {
7715
- const { visibleAccounts: o, refreshAccounts: r } = fe(), { is_mobile_webview: s } = Wt(), { setSearchValue: c } = _n(), { onEvent: d } = X(), { common: _, transactions: u } = x(), {
7729
+ const { visibleAccounts: o, refreshAccounts: r } = fe(), { is_mobile_webview: s } = Wt(), { setSearchValue: c } = _n(), { onEvent: d } = $(), { common: _, transactions: u } = x(), {
7716
7730
  displayedDateRange: h,
7717
7731
  isCopyLoaded: m,
7718
7732
  isInitialized: p,
7719
7733
  selectedAccountGuids: f,
7720
7734
  setDisplayedDate: E,
7721
7735
  setSelectedAccounts: y
7722
- } = de(), { isDesktop: S } = pe(), I = Ce(), {
7736
+ } = de(), { isDesktop: S } = pe(), w = Ce(), {
7723
7737
  addTransaction: v,
7724
- filter: w,
7738
+ filter: I,
7725
7739
  loadAssociatedBeats: D,
7726
7740
  setFilter: R,
7727
7741
  sortedTransactionsWithSplits: k,
@@ -7729,7 +7743,7 @@ const pc = ({ transaction: e }) => {
7729
7743
  transactions: O,
7730
7744
  updateTransaction: M
7731
7745
  } = Le(), {
7732
- manualTransaction: W,
7746
+ manualTransaction: U,
7733
7747
  isAmountValid: Q,
7734
7748
  searchValue: he,
7735
7749
  setSearchValue: be,
@@ -7742,10 +7756,10 @@ const pc = ({ transaction: e }) => {
7742
7756
  accounts: ut.map((Jn) => Jn.guid),
7743
7757
  custom: (Jn) => !Jn.accountIsClosed && !Jn.accountIsHidden,
7744
7758
  dateRange: { start: Yo, end: zo }
7745
- }), Ke(!0), d(U.TRANSACTIONS_VIEW);
7759
+ }), Ke(!0), d(W.TRANSACTIONS_VIEW);
7746
7760
  }, [o]), g.useEffect(() => {
7747
7761
  De && (R({
7748
- ...w,
7762
+ ...I,
7749
7763
  accounts: f,
7750
7764
  dateRange: { start: h.start, end: h.end }
7751
7765
  }), D(h.start).finally());
@@ -7755,15 +7769,15 @@ const pc = ({ transaction: e }) => {
7755
7769
  const Ht = g.useMemo(
7756
7770
  () => o.filter((ut) => ut.is_manual),
7757
7771
  [o]
7758
- ), je = Ee ? O.find((ut) => ut.guid === Ee) : void 0, Qn = Q && !!W.payee && !!W.account_guid && !!W.category_guid, gi = (ut) => {
7772
+ ), je = Ee ? O.find((ut) => ut.guid === Ee) : void 0, Qn = Q && !!U.payee && !!U.account_guid && !!U.category_guid, gi = (ut) => {
7759
7773
  E(ut[0], ut[1]);
7760
7774
  }, Ia = (ut) => {
7761
7775
  be(ut), R({
7762
- ...w,
7776
+ ...I,
7763
7777
  searchTerm: ut
7764
- }), d(U.TRANSACTIONS_CLICK_SEARCH, { search_term: ut });
7778
+ }), d(W.TRANSACTIONS_CLICK_SEARCH, { search_term: ut });
7765
7779
  }, wa = () => {
7766
- _c(k, G), d(U.TRANSACTIONS_CLICK_EXPORT);
7780
+ _c(k, G), d(W.TRANSACTIONS_CLICK_EXPORT);
7767
7781
  }, wl = () => {
7768
7782
  Ht.length > 0 ? (Ie({
7769
7783
  ...hc,
@@ -7772,9 +7786,9 @@ const pc = ({ transaction: e }) => {
7772
7786
  }), ge(
7773
7787
  "addTransaction"
7774
7788
  /* AddTransaction */
7775
- ), d(U.TRANSACTIONS_CLICK_ADD)) : (ke(!0), d(U.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
7789
+ ), d(W.TRANSACTIONS_CLICK_ADD)) : (ke(!0), d(W.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
7776
7790
  }, vl = async () => {
7777
- Qn && await v(W), ge("");
7791
+ Qn && await v(U), ge("");
7778
7792
  }, Nl = () => {
7779
7793
  ke(!1), z(!0);
7780
7794
  }, Dl = async () => {
@@ -7801,7 +7815,7 @@ const pc = ({ transaction: e }) => {
7801
7815
  calendarActions: {
7802
7816
  onRangeChanged: gi
7803
7817
  },
7804
- onAccountsFilterClick: () => d(U.ACCOUNTS_CLICK_FILTER),
7818
+ onAccountsFilterClick: () => d(W.ACCOUNTS_CLICK_FILTER),
7805
7819
  onBackClick: e,
7806
7820
  sx: a,
7807
7821
  title: u.transactions_title,
@@ -7818,8 +7832,8 @@ const pc = ({ transaction: e }) => {
7818
7832
  L,
7819
7833
  {
7820
7834
  sx: {
7821
- [I.breakpoints.down("md")]: { display: "none" },
7822
- [I.breakpoints.up("md")]: { display: "block" }
7835
+ [w.breakpoints.down("md")]: { display: "none" },
7836
+ [w.breakpoints.up("md")]: { display: "block" }
7823
7837
  },
7824
7838
  children: /* @__PURE__ */ t(
7825
7839
  Ph,
@@ -7835,7 +7849,7 @@ const pc = ({ transaction: e }) => {
7835
7849
  B(ut), ge(
7836
7850
  "transaction"
7837
7851
  /* Transaction */
7838
- ), d(U.TRANSACTIONS_CLICK_DETAILS, { transaction_guid: ut });
7852
+ ), d(W.TRANSACTIONS_CLICK_DETAILS, { transaction_guid: ut });
7839
7853
  }
7840
7854
  }
7841
7855
  )
@@ -7845,8 +7859,8 @@ const pc = ({ transaction: e }) => {
7845
7859
  L,
7846
7860
  {
7847
7861
  sx: {
7848
- [I.breakpoints.down("md")]: { display: "block" },
7849
- [I.breakpoints.up("md")]: { display: "none" }
7862
+ [w.breakpoints.down("md")]: { display: "block" },
7863
+ [w.breakpoints.up("md")]: { display: "none" }
7850
7864
  },
7851
7865
  children: /* @__PURE__ */ t(
7852
7866
  Fn,
@@ -7917,7 +7931,7 @@ const pc = ({ transaction: e }) => {
7917
7931
  ]
7918
7932
  }
7919
7933
  );
7920
- }, gS = T(Fg), Ec = ({
7934
+ }, g4 = T(Fg), Ec = ({
7921
7935
  frequency: e,
7922
7936
  firstDay: n,
7923
7937
  secondDay: i,
@@ -8001,7 +8015,7 @@ const pc = ({ transaction: e }) => {
8001
8015
  ) })
8002
8016
  ] });
8003
8017
  }, Wg = T(({ repeatingTransaction: e }) => {
8004
- const { recurring: n } = x(), { updateRepeatingTransaction: i } = at(), { onEvent: a } = X(), [o, r] = g.useState(!1), [s, c] = g.useState(e.recurrence_type), [d, _] = g.useState(e.recurrence_day), [u, h] = g.useState(e.second_recurrence_day), m = async () => {
8018
+ const { recurring: n } = x(), { updateRepeatingTransaction: i } = at(), { onEvent: a } = $(), [o, r] = g.useState(!1), [s, c] = g.useState(e.recurrence_type), [d, _] = g.useState(e.recurrence_day), [u, h] = g.useState(e.second_recurrence_day), m = async () => {
8005
8019
  await i({
8006
8020
  ...e,
8007
8021
  recurrence_type: s,
@@ -8009,7 +8023,7 @@ const pc = ({ transaction: e }) => {
8009
8023
  second_recurrence_day: u
8010
8024
  }), r(!1);
8011
8025
  }, p = () => {
8012
- r(!0), a(U.RECURRING_TRANSACTIONS_DETAILS_CLICK_PAYMENT_SCHEDULE);
8026
+ r(!0), a(W.RECURRING_TRANSACTIONS_DETAILS_CLICK_PAYMENT_SCHEDULE);
8013
8027
  };
8014
8028
  return /* @__PURE__ */ l(Z, { children: [
8015
8029
  /* @__PURE__ */ t(
@@ -8045,7 +8059,7 @@ const pc = ({ transaction: e }) => {
8045
8059
  ] });
8046
8060
  }), Sc = T(
8047
8061
  ({ onDeleted: e, recurringTransaction: n }) => {
8048
- const { recurring: i } = x(), { selectedAccountGuids: a } = de(), { onEvent: o } = X(), { deleteRepeatingTransaction: r } = at(), { setFilter: s, transactions: c } = Le(), { amount: d, description: _, merchant_guid: u } = n, [h, m] = g.useState(!1), [p, f] = g.useState("");
8062
+ const { recurring: i } = x(), { selectedAccountGuids: a } = de(), { onEvent: o } = $(), { deleteRepeatingTransaction: r } = at(), { setFilter: s, transactions: c } = Le(), { amount: d, description: _, merchant_guid: u } = n, [h, m] = g.useState(!1), [p, f] = g.useState("");
8049
8063
  g.useEffect(() => {
8050
8064
  s({
8051
8065
  accounts: a,
@@ -8058,8 +8072,8 @@ const pc = ({ transaction: e }) => {
8058
8072
  [p, c]
8059
8073
  ), y = n.repeating_transaction_type === an.Income, S = async () => {
8060
8074
  await r(n.guid), e();
8061
- }, I = () => {
8062
- m(!0), o(U.RECURRING_TRANSACTIONS_DETAILS_CLICK_DELETE);
8075
+ }, w = () => {
8076
+ m(!0), o(W.RECURRING_TRANSACTIONS_DETAILS_CLICK_DELETE);
8063
8077
  };
8064
8078
  return /* @__PURE__ */ l(b, { bgcolor: "background.default", direction: "column", height: "100%", children: [
8065
8079
  /* @__PURE__ */ l(b, { direction: "column", m: 24, children: [
@@ -8112,7 +8126,7 @@ const pc = ({ transaction: e }) => {
8112
8126
  ee,
8113
8127
  {
8114
8128
  color: "error",
8115
- onClick: I,
8129
+ onClick: w,
8116
8130
  startIcon: /* @__PURE__ */ t(xs, {}),
8117
8131
  sx: { mx: 24, my: 16 },
8118
8132
  variant: "text",
@@ -8297,10 +8311,10 @@ const pc = ({ transaction: e }) => {
8297
8311
  label: n,
8298
8312
  onAddRecurringTransaction: i = () => null
8299
8313
  }) => {
8300
- const { recurring: a } = x(), { filter: o, setFilter: r, transactions: s } = Le(), { addRepeatingTransaction: c } = at(), { user: d } = Tt(), [_, u] = g.useState(!1), [h, m] = g.useState(""), [p, f] = g.useState(ye.EveryMonth), [E, y] = g.useState(1), [S, I] = g.useState(15), v = g.useMemo(
8314
+ const { recurring: a } = x(), { filter: o, setFilter: r, transactions: s } = Le(), { addRepeatingTransaction: c } = at(), { user: d } = Tt(), [_, u] = g.useState(!1), [h, m] = g.useState(""), [p, f] = g.useState(ye.EveryMonth), [E, y] = g.useState(1), [S, w] = g.useState(15), v = g.useMemo(
8301
8315
  () => s.find((k) => k.guid === h),
8302
8316
  [h, s]
8303
- ), w = () => {
8317
+ ), I = () => {
8304
8318
  u(!0), r(e ? { ...o, custom: Ii } : { ...o, custom: Qa });
8305
8319
  }, D = async () => {
8306
8320
  if (!v) {
@@ -8328,7 +8342,7 @@ const pc = ({ transaction: e }) => {
8328
8342
  m(""), u(!1);
8329
8343
  };
8330
8344
  return /* @__PURE__ */ l(L, { children: [
8331
- /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(_e, { onClick: w, children: /* @__PURE__ */ t(oe, { children: /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
8345
+ /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(_e, { onClick: I, children: /* @__PURE__ */ t(oe, { children: /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
8332
8346
  /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 8, children: [
8333
8347
  /* @__PURE__ */ t(V, { fill: !0, name: "add_box", size: 24, sx: { color: "primary.main" } }),
8334
8348
  /* @__PURE__ */ t(C, { bold: !0, sx: { color: "primary.main" }, variant: "Body", children: n })
@@ -8373,7 +8387,7 @@ const pc = ({ transaction: e }) => {
8373
8387
  frequency: p,
8374
8388
  onFirstDayChange: y,
8375
8389
  onFrequencyChange: f,
8376
- onSecondDayChange: I,
8390
+ onSecondDayChange: w,
8377
8391
  secondDay: S,
8378
8392
  transaction: v
8379
8393
  }
@@ -8383,12 +8397,12 @@ const pc = ({ transaction: e }) => {
8383
8397
  ] });
8384
8398
  }
8385
8399
  ), Vg = T(() => {
8386
- const { recurring: e } = x(), { repeatingTransactions: n } = at(), { onEvent: i } = X(), a = (r) => {
8387
- i(U.RECURRING_TRANSACTIONS_CLICK_EXPENSE, {
8400
+ const { recurring: e } = x(), { repeatingTransactions: n } = at(), { onEvent: i } = $(), a = (r) => {
8401
+ i(W.RECURRING_TRANSACTIONS_CLICK_EXPENSE, {
8388
8402
  repeating_transaction_guid: r.guid
8389
8403
  });
8390
8404
  }, o = () => {
8391
- i(U.RECURRING_TRANSACTIONS_CLICK_ADD_EXPENSE);
8405
+ i(W.RECURRING_TRANSACTIONS_CLICK_ADD_EXPENSE);
8392
8406
  };
8393
8407
  return /* @__PURE__ */ l(ie, { sx: { bgcolor: "background.paper" }, children: [
8394
8408
  n.filter(
@@ -8400,12 +8414,12 @@ const pc = ({ transaction: e }) => {
8400
8414
  /* @__PURE__ */ t(wc, { label: e.add_expense, onAddRecurringTransaction: o })
8401
8415
  ] });
8402
8416
  }), vo = T(() => {
8403
- const { recurring: e } = x(), { repeatingTransactions: n } = at(), { onEvent: i } = X(), a = (r) => {
8404
- i(U.RECURRING_TRANSACTIONS_CLICK_INCOME, {
8417
+ const { recurring: e } = x(), { repeatingTransactions: n } = at(), { onEvent: i } = $(), a = (r) => {
8418
+ i(W.RECURRING_TRANSACTIONS_CLICK_INCOME, {
8405
8419
  repeating_transaction_guid: r.guid
8406
8420
  });
8407
8421
  }, o = () => {
8408
- i(U.RECURRING_TRANSACTIONS_CLICK_ADD_INCOME);
8422
+ i(W.RECURRING_TRANSACTIONS_CLICK_ADD_INCOME);
8409
8423
  };
8410
8424
  return /* @__PURE__ */ l(ie, { sx: { bgcolor: "background.paper" }, children: [
8411
8425
  n.filter(
@@ -8424,7 +8438,7 @@ const pc = ({ transaction: e }) => {
8424
8438
  )
8425
8439
  ] });
8426
8440
  }), No = T(() => {
8427
- const [e, n] = g.useState(0), { onEvent: i } = X(), { recurring: a } = x();
8441
+ const [e, n] = g.useState(0), { onEvent: i } = $(), { recurring: a } = x();
8428
8442
  return /* @__PURE__ */ l(L, { bgcolor: "background.default", height: "100%", children: [
8429
8443
  /* @__PURE__ */ l(
8430
8444
  Ft,
@@ -8534,13 +8548,13 @@ const pc = ({ transaction: e }) => {
8534
8548
  }
8535
8549
  );
8536
8550
  }), Nr = 58, vc = T(() => {
8537
- const e = Ce(), { onEvent: n } = X(), { selectedDay: i, setDateRange: a } = at(), [o, r] = g.useState(
8551
+ const e = Ce(), { onEvent: n } = $(), { selectedDay: i, setDateRange: a } = at(), [o, r] = g.useState(
8538
8552
  ir(/* @__PURE__ */ new Date()) * mi + Nr
8539
8553
  ), s = (d) => {
8540
8554
  r(ir(d) * mi + Nr), a({
8541
8555
  start: ze(d),
8542
8556
  end: We(d)
8543
- }), n(U.RECURRING_TRANSACTIONS_CLICK_CALENDAR_RIGHT);
8557
+ }), n(W.RECURRING_TRANSACTIONS_CLICK_CALENDAR_RIGHT);
8544
8558
  }, c = /* @__PURE__ */ t(
8545
8559
  ro,
8546
8560
  {
@@ -8802,7 +8816,7 @@ const pc = ({ transaction: e }) => {
8802
8816
  ] });
8803
8817
  }
8804
8818
  ), $g = T(() => {
8805
- const { recurring: e } = x(), { isDesktop: n, isSmallMobile: i } = pe(), { onEvent: a } = X(), {
8819
+ const { recurring: e } = x(), { isDesktop: n, isSmallMobile: i } = pe(), { onEvent: a } = $(), {
8806
8820
  currentMonthExpenses: o,
8807
8821
  currentMonthIncome: r,
8808
8822
  dateRange: s,
@@ -8817,28 +8831,28 @@ const pc = ({ transaction: e }) => {
8817
8831
  setDateRange: E,
8818
8832
  upcomingExpenseTotal: y,
8819
8833
  upcomingIncomeTotal: S,
8820
- upcomingRecurrences: I
8821
- } = at(), [v, w] = g.useState(0), D = it(s.start, /* @__PURE__ */ new Date()), R = (W, Q) => {
8822
- w(Q);
8823
- }, k = (W) => {
8824
- a(U.RECURRING_TRANSACTIONS_CLICK_UPCOMING, {
8825
- transaction_guid: W.transaction?.guid
8834
+ upcomingRecurrences: w
8835
+ } = at(), [v, I] = g.useState(0), D = it(s.start, /* @__PURE__ */ new Date()), R = (U, Q) => {
8836
+ I(Q);
8837
+ }, k = (U) => {
8838
+ a(W.RECURRING_TRANSACTIONS_CLICK_UPCOMING, {
8839
+ transaction_guid: U.transaction?.guid
8826
8840
  });
8827
- }, G = (W) => {
8828
- a(U.RECURRING_TRANSACTIONS_CLICK_PAID, {
8829
- transaction_guid: W.transaction?.guid
8841
+ }, G = (U) => {
8842
+ a(W.RECURRING_TRANSACTIONS_CLICK_PAID, {
8843
+ transaction_guid: U.transaction?.guid
8830
8844
  });
8831
8845
  }, O = () => {
8832
- const W = tn(s.start, 1);
8846
+ const U = tn(s.start, 1);
8833
8847
  E({
8834
- start: ze(W),
8835
- end: We(W)
8848
+ start: ze(U),
8849
+ end: We(U)
8836
8850
  });
8837
8851
  }, M = () => {
8838
- const W = It(s.start, 1);
8852
+ const U = It(s.start, 1);
8839
8853
  E({
8840
- start: ze(W),
8841
- end: We(W)
8854
+ start: ze(U),
8855
+ end: We(U)
8842
8856
  });
8843
8857
  };
8844
8858
  return /* @__PURE__ */ l(yn, { container: !0, sx: { pt: 16, px: 24, spacing: 24 }, children: [
@@ -8887,7 +8901,7 @@ const pc = ({ transaction: e }) => {
8887
8901
  bi,
8888
8902
  {
8889
8903
  onRecurrenceClick: k,
8890
- recurrences: I,
8904
+ recurrences: w,
8891
8905
  title: e.upcoming_activity
8892
8906
  }
8893
8907
  ),
@@ -8910,7 +8924,7 @@ const pc = ({ transaction: e }) => {
8910
8924
  bi,
8911
8925
  {
8912
8926
  onRecurrenceClick: k,
8913
- recurrences: I
8927
+ recurrences: w
8914
8928
  }
8915
8929
  ),
8916
8930
  v === 1 && /* @__PURE__ */ t(
@@ -8937,8 +8951,8 @@ const pc = ({ transaction: e }) => {
8937
8951
  )
8938
8952
  ] }) })
8939
8953
  ] });
8940
- }), mS = T(({ onBackClick: e, sx: n = {} }) => {
8941
- const { accounts: i } = fe(), { recurring: a } = x(), { isCopyLoaded: o, isInitialized: r, selectedAccountGuids: s, setSelectedAccounts: c } = de(), { isDataLoaded: d, loadRepeatingTransactions: _, setDateRange: u } = at(), { setFilter: h } = Le(), { onEvent: m } = X(), [p, f] = g.useState(!1);
8954
+ }), m4 = T(({ onBackClick: e, sx: n = {} }) => {
8955
+ const { accounts: i } = fe(), { recurring: a } = x(), { isCopyLoaded: o, isInitialized: r, selectedAccountGuids: s, setSelectedAccounts: c } = de(), { isDataLoaded: d, loadRepeatingTransactions: _, setDateRange: u } = at(), { setFilter: h } = Le(), { onEvent: m } = $(), [p, f] = g.useState(!1);
8942
8956
  return g.useEffect(() => {
8943
8957
  c(i);
8944
8958
  }, [i]), g.useEffect(() => {
@@ -8955,11 +8969,11 @@ const pc = ({ transaction: e }) => {
8955
8969
  label: a.settings,
8956
8970
  iconName: "settings",
8957
8971
  onClick: () => {
8958
- f(!0), m(U.RECURRING_TRANSACTIONS_CLICK_SETTINGS);
8972
+ f(!0), m(W.RECURRING_TRANSACTIONS_CLICK_SETTINGS);
8959
8973
  }
8960
8974
  }
8961
8975
  ],
8962
- onAccountsFilterClick: () => m(U.RECURRING_TRANSACTIONS_CLICK_FILTER),
8976
+ onAccountsFilterClick: () => m(W.RECURRING_TRANSACTIONS_CLICK_FILTER),
8963
8977
  onBackClick: e,
8964
8978
  sx: n,
8965
8979
  title: a.title,
@@ -9002,7 +9016,7 @@ const pc = ({ transaction: e }) => {
9002
9016
  }
9003
9017
  )
9004
9018
  ] });
9005
- }), pS = T(
9019
+ }), p4 = T(
9006
9020
  ({ onPrimaryCtaClick: e, sx: n }) => {
9007
9021
  const { accounts: i } = fe(), { recurring: a } = x(), { setFilter: o } = Le(), { isDataLoaded: r, loadRepeatingTransactions: s } = at(), { isCopyLoaded: c, isInitialized: d, setSelectedAccounts: _, selectedAccountGuids: u } = de();
9008
9022
  return g.useEffect(() => {
@@ -9103,79 +9117,85 @@ const pc = ({ transaction: e }) => {
9103
9117
  /* @__PURE__ */ t(le, { color: "text.secondary", variant: "subtitle2", children: e.zero_state_content_description })
9104
9118
  ] })
9105
9119
  ] });
9106
- }), CS = T(
9120
+ }), C4 = T(
9107
9121
  ({ onCTAClick: e }) => {
9108
- const [n, i] = g.useState(!1), { accounts: a } = fe(), [o, { width: r }] = Mi(), { isCopyLoaded: s, isInitialized: c, selectedAccountGuids: d, setSelectedAccounts: _ } = de(), {
9109
- loadRepeatingTransactions: u,
9110
- upcomingRecurrences: h,
9111
- expenseTotal: m,
9112
- missedExpenseTotal: p,
9113
- paidExpenseTotal: f,
9114
- setDateRange: E,
9115
- upcomingExpenseTotal: y
9116
- } = at(), { setFilter: S } = Le(), { recurring: I, budgets: v } = x();
9122
+ const [n, i] = g.useState(!1), { onEvent: a } = $(), o = Ce(), { accounts: r } = fe(), [s, { width: c }] = Mi(), { isCopyLoaded: d, isInitialized: _, selectedAccountGuids: u, setSelectedAccounts: h } = de(), {
9123
+ loadRepeatingTransactions: m,
9124
+ upcomingRecurrences: p,
9125
+ expenseTotal: f,
9126
+ missedExpenseTotal: E,
9127
+ paidExpenseTotal: y,
9128
+ setDateRange: S,
9129
+ upcomingExpenseTotal: w
9130
+ } = at(), { setFilter: v } = Le(), { recurring: I, budgets: D } = x();
9117
9131
  g.useEffect(() => {
9118
- _(a);
9119
- }, [a]), g.useEffect(() => {
9120
- c && (S({
9132
+ h(r);
9133
+ }, [r]), g.useEffect(() => {
9134
+ _ && (v({
9121
9135
  dateRange: { start: vt(Ae(), 90), end: xn() },
9122
- accounts: d
9123
- }), E({ start: ze(/* @__PURE__ */ new Date()), end: We(/* @__PURE__ */ new Date()) }), u().finally(), i(!0));
9124
- }, [c]);
9125
- const { onEvent: w } = X(), D = Ce(), R = r <= 288, k = r >= 450, G = g.useMemo(() => {
9136
+ accounts: u
9137
+ }), S({ start: ze(/* @__PURE__ */ new Date()), end: We(/* @__PURE__ */ new Date()) }), m().finally(), i(!0));
9138
+ }, [_]), g.useEffect(() => {
9139
+ n && a(W.RECURRING_TRANSACTIONS_LOAD_WIDGET, {
9140
+ state: p.length > 0 ? "default" : "zeroState"
9141
+ });
9142
+ }, [n]);
9143
+ const R = c <= 288, k = c >= 450, G = g.useMemo(() => {
9126
9144
  const Ie = [
9127
- { color: D.palette.success.main, percentage: `${f / m}` }
9145
+ { color: o.palette.success.main, percentage: `${y / f}` }
9128
9146
  ];
9129
- return p && Ie.push({
9130
- color: D.palette.error.main,
9131
- percentage: `${p / m}`
9147
+ return E && Ie.push({
9148
+ color: o.palette.error.main,
9149
+ percentage: `${E / f}`
9132
9150
  }), Ie;
9133
9151
  }, [
9152
+ y,
9134
9153
  f,
9135
- m,
9136
- p,
9137
- D.palette.success.main,
9138
- D.palette.error.main
9139
- ]), O = g.useMemo(() => P(m, m === 0 ? "0,0" : "0,0.00"), [m]), M = () => {
9140
- w(U.RECURRING_TRANSACTIONS_MICRO_WIDGET_CTA), e();
9154
+ E,
9155
+ o.palette.success.main,
9156
+ o.palette.error.main
9157
+ ]), O = g.useMemo(() => P(f, f === 0 ? "0,0" : "0,0.00"), [f]), M = () => {
9158
+ a(
9159
+ p.length > 0 ? W.RECURRING_TRANSACTIONS_CLICK_GET_STARTED : W.RECURRING_TRANSACTIONS_CLICK_VIEW_ALL
9160
+ ), e();
9141
9161
  };
9142
- if (!s || !n) return /* @__PURE__ */ t(ue, { height: 100 });
9143
- const W = 32, Q = h.length > 0, he = () => Q ? R ? /* @__PURE__ */ t(
9162
+ if (!d || !n) return /* @__PURE__ */ t(ue, { height: 100 });
9163
+ const U = 32, Q = p.length > 0, he = () => Q ? R ? /* @__PURE__ */ t(
9144
9164
  Zg,
9145
9165
  {
9146
- logoSize: W,
9166
+ logoSize: U,
9147
9167
  maxLogos: 3,
9148
- upcomingRecurrences: h.slice(0, 3)
9168
+ upcomingRecurrences: p.slice(0, 3)
9149
9169
  }
9150
- ) : /* @__PURE__ */ t(qg, { maxLogos: 3, upcomingRecurrences: h.slice(0, 3) }) : /* @__PURE__ */ t(b, { sx: { width: R ? 64 : 104 } }), be = [
9170
+ ) : /* @__PURE__ */ t(qg, { maxLogos: 3, upcomingRecurrences: p.slice(0, 3) }) : /* @__PURE__ */ t(b, { sx: { width: R ? 64 : 104 } }), be = [
9151
9171
  {
9152
- amount: f,
9172
+ amount: y,
9153
9173
  bgColor: "success.main",
9154
9174
  label: I.paid
9155
9175
  },
9156
9176
  {
9157
- amount: p,
9177
+ amount: E,
9158
9178
  bgColor: "error.main",
9159
9179
  label: I.missed
9160
9180
  },
9161
9181
  {
9162
- amount: y,
9182
+ amount: w,
9163
9183
  bgColor: "border.light",
9164
9184
  label: I.upcoming
9165
9185
  }
9166
- ], J = n && !a?.length;
9186
+ ], J = n && !p?.length;
9167
9187
  return /* @__PURE__ */ t(
9168
9188
  fa,
9169
9189
  {
9170
9190
  className: "mx-recurring-transaction-microwidget",
9171
- ctaLabel: J ? v.get_started_cta : I.primary_cta,
9191
+ ctaLabel: J ? D.get_started_cta : I.primary_cta,
9172
9192
  onCTAClick: M,
9173
9193
  title: I.recurring_expenses,
9174
9194
  children: J ? /* @__PURE__ */ t(Jg, {}) : /* @__PURE__ */ l(Z, { children: [
9175
9195
  /* @__PURE__ */ l(
9176
9196
  b,
9177
9197
  {
9178
- ref: o,
9198
+ ref: s,
9179
9199
  sx: {
9180
9200
  flexDirection: "row",
9181
9201
  justifyContent: "space-between"
@@ -10050,7 +10070,7 @@ const dm = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
10050
10070
  }
10051
10071
  );
10052
10072
  }, mm = T(gm), pm = () => {
10053
- const { cashflow: e } = x(), { isDesktop: n } = pe(), { onEvent: i } = X(), [a, o] = g.useState(0), r = (s, c) => {
10073
+ const { cashflow: e } = x(), { isDesktop: n } = pe(), { onEvent: i } = $(), [a, o] = g.useState(0), r = (s, c) => {
10054
10074
  o(c);
10055
10075
  };
10056
10076
  return g.useEffect(() => {
@@ -10127,9 +10147,9 @@ const dm = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
10127
10147
  () => a.filter(Gr(o, r)),
10128
10148
  [r, o, a]
10129
10149
  ), m = g.useMemo(
10130
- () => s.reduce((S, I) => S + (I?.balance || 0), 0),
10150
+ () => s.reduce((S, w) => S + (w?.balance || 0), 0),
10131
10151
  [s]
10132
- ), p = u.reduce((S, I) => S + I.amount, 0), f = h.reduce((S, I) => S + I.amount, 0), E = m - p + f, y = e < 725;
10152
+ ), p = u.reduce((S, w) => S + w.amount, 0), f = h.reduce((S, w) => S + w.amount, 0), E = m - p + f, y = e < 725;
10133
10153
  return /* @__PURE__ */ l(b, { sx: { mx: y ? 16 : 0, my: y ? 24 : 42 }, children: [
10134
10154
  /* @__PURE__ */ l(
10135
10155
  b,
@@ -10300,9 +10320,9 @@ const dm = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
10300
10320
  transform: rotate(360deg);
10301
10321
  }
10302
10322
  `, xm = () => {
10303
- const { addRepeatingTransaction: e, repeatingTransactions: n } = at(), { cashflow: i, common: a } = x(), { completeOnboarding: o } = Co(), { isDirty: r } = ui(), { isMobile: s } = pe(), { isCopyLoaded: c, setDisplayedDate: d } = de(), { filter: _, setFilter: u, transactions: h } = Le(), m = Ce(), [p, f] = St(!0), [E, y] = g.useState(ye.EveryMonth), [S, I] = g.useState(1), [v, w] = g.useState(15), [D, R] = St(!1), [k, G] = St(1), [O, M] = St([]), [W, Q] = St(""), he = g.useMemo(
10304
- () => h.find((me) => me.guid === W),
10305
- [W, h]
10323
+ const { addRepeatingTransaction: e, repeatingTransactions: n } = at(), { cashflow: i, common: a } = x(), { completeOnboarding: o } = Co(), { isDirty: r } = ui(), { isMobile: s } = pe(), { isCopyLoaded: c, setDisplayedDate: d } = de(), { filter: _, setFilter: u, transactions: h } = Le(), m = Ce(), [p, f] = St(!0), [E, y] = g.useState(ye.EveryMonth), [S, w] = g.useState(1), [v, I] = g.useState(15), [D, R] = St(!1), [k, G] = St(1), [O, M] = St([]), [U, Q] = St(""), he = g.useMemo(
10324
+ () => h.find((me) => me.guid === U),
10325
+ [U, h]
10306
10326
  ), be = !!n.filter(
10307
10327
  (me) => me.repeating_transaction_type === an.Income
10308
10328
  ).length, J = async () => {
@@ -10413,9 +10433,9 @@ const dm = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
10413
10433
  bgcolor: "background.paper",
10414
10434
  firstDay: S,
10415
10435
  frequency: E,
10416
- onFirstDayChange: I,
10436
+ onFirstDayChange: w,
10417
10437
  onFrequencyChange: y,
10418
- onSecondDayChange: w,
10438
+ onSecondDayChange: I,
10419
10439
  secondDay: v,
10420
10440
  transaction: he
10421
10441
  }
@@ -10483,14 +10503,14 @@ const dm = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
10483
10503
  setSelectedAccounts: o,
10484
10504
  shouldDisableNextDate: r,
10485
10505
  shouldDisablePrevDate: s
10486
- } = de(), { onEvent: c } = X(), { visibleCashAccounts: d } = fe(), { setFilter: _ } = Le(), { userProfile: u } = Tt(), { dateRange: h, setSelectedCashAccounts: m } = ui(), { loadRepeatingTransactions: p, setDateRange: f } = at(), { cashflow: E } = x(), { isCopyLoaded: y, isInitialized: S } = de(), [I, v] = g.useState(!1);
10506
+ } = de(), { onEvent: c } = $(), { visibleCashAccounts: d } = fe(), { setFilter: _ } = Le(), { userProfile: u } = Tt(), { dateRange: h, setSelectedCashAccounts: m } = ui(), { loadRepeatingTransactions: p, setDateRange: f } = at(), { cashflow: E } = x(), { isCopyLoaded: y, isInitialized: S } = de(), [w, v] = g.useState(!1);
10487
10507
  return g.useEffect(() => {
10488
10508
  S && (f(h), p().finally());
10489
10509
  }, [S]), g.useEffect(() => {
10490
10510
  o(d);
10491
10511
  }, [d]), g.useEffect(() => {
10492
- const w = d.map((R) => R.guid), D = i.filter(
10493
- (R) => a.includes(R.guid) && w.includes(R.guid)
10512
+ const I = d.map((R) => R.guid), D = i.filter(
10513
+ (R) => a.includes(R.guid) && I.includes(R.guid)
10494
10514
  );
10495
10515
  m(D), _({
10496
10516
  dateRange: { start: vt(Ae(), 90), end: xn() },
@@ -10505,7 +10525,7 @@ const dm = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
10505
10525
  label: E.cashflow_settings,
10506
10526
  iconName: "settings",
10507
10527
  onClick: () => {
10508
- v(!0), c(U.CASH_FLOW_CLICK_SETTINGS);
10528
+ v(!0), c(W.CASH_FLOW_CLICK_SETTINGS);
10509
10529
  }
10510
10530
  }
10511
10531
  ],
@@ -10518,7 +10538,7 @@ const dm = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
10518
10538
  },
10519
10539
  dateRange: h,
10520
10540
  dateRangeVariant: "readonly",
10521
- onAccountsFilterClick: () => c(U.CASH_FLOW_CLICK_FILTER),
10541
+ onAccountsFilterClick: () => c(W.CASH_FLOW_CLICK_FILTER),
10522
10542
  onBackClick: e,
10523
10543
  sx: n,
10524
10544
  title: E.title,
@@ -10529,7 +10549,7 @@ const dm = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
10529
10549
  se,
10530
10550
  {
10531
10551
  ariaLabelClose: E.close_settings_aria,
10532
- isOpen: I,
10552
+ isOpen: w,
10533
10553
  onClose: () => v(!1),
10534
10554
  shouldShowHeaderBorders: !1,
10535
10555
  title: E.cashflow_settings,
@@ -10547,8 +10567,8 @@ const dm = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
10547
10567
  children: /* @__PURE__ */ t(Im, {})
10548
10568
  }
10549
10569
  );
10550
- }, fS = T(wm);
10551
- class bS {
10570
+ }, f4 = T(wm);
10571
+ class b4 {
10552
10572
  fetchInstance;
10553
10573
  constructor(n, i) {
10554
10574
  this.fetchInstance = new ct(n, i);
@@ -11223,31 +11243,31 @@ const Hc = ({
11223
11243
  onClickArea: r,
11224
11244
  onHoverArea: s
11225
11245
  }) => {
11226
- const c = dt(), { onEvent: d } = X(), _ = a.filter((w) => !w.is_impossible), u = [
11246
+ const c = dt(), { onEvent: d } = $(), _ = a.filter((I) => !I.is_impossible), u = [
11227
11247
  ...new Set(
11228
- _.flatMap((w) => w.dataset.map((D) => new Date(D.x).getTime()))
11248
+ _.flatMap((I) => I.dataset.map((D) => new Date(D.x).getTime()))
11229
11249
  )
11230
- ].sort((w, D) => w - D).map((w) => new Date(w)), h = _.map((w) => {
11231
- const D = new Map(w.dataset.map((G) => [new Date(G.x).getTime(), G.y]));
11250
+ ].sort((I, D) => I - D).map((I) => new Date(I)), h = _.map((I) => {
11251
+ const D = new Map(I.dataset.map((G) => [new Date(G.x).getTime(), G.y]));
11232
11252
  let R = D.get(u[0].getTime()) ?? 0;
11233
11253
  const k = u.map((G) => {
11234
11254
  const O = D.get(G.getTime()) ?? R;
11235
11255
  return R = O, { x: G, y: O };
11236
11256
  });
11237
- return { ...w, dataset: k };
11257
+ return { ...I, dataset: k };
11238
11258
  }), m = h.reduce(
11239
- (w, D) => w + (D.dataset[0]?.y ?? 0),
11259
+ (I, D) => I + (D.dataset[0]?.y ?? 0),
11240
11260
  0
11241
- ), p = u.map((w, D) => {
11261
+ ), p = u.map((I, D) => {
11242
11262
  const R = D / (u.length - 1), k = m * (1 - R);
11243
- return { x: w, y: k };
11244
- }), f = Math.ceil(m / 100) * 100, E = u, y = h.map((w, D) => {
11263
+ return { x: I, y: k };
11264
+ }), f = Math.ceil(m / 100) * 100, E = u, y = h.map((I, D) => {
11245
11265
  const R = 1 - D / h.length * 0.5, k = zm(Ym, R);
11246
11266
  return {
11247
11267
  id: `debt-${D}`,
11248
- guid: w.guid,
11249
- label: w.name,
11250
- data: w.dataset.map((G) => G.y),
11268
+ guid: I.guid,
11269
+ label: I.name,
11270
+ data: I.dataset.map((G) => G.y),
11251
11271
  color: k,
11252
11272
  curve: "linear",
11253
11273
  type: "line",
@@ -11259,7 +11279,7 @@ const Hc = ({
11259
11279
  y.push({
11260
11280
  id: "payoff-line",
11261
11281
  label: "Payoff Line",
11262
- data: p.map((w) => w.y),
11282
+ data: p.map((I) => I.y),
11263
11283
  color: c.palette.grey[700],
11264
11284
  curve: "linear",
11265
11285
  type: "line",
@@ -11267,20 +11287,20 @@ const Hc = ({
11267
11287
  showMark: !1,
11268
11288
  disableHighlight: !0
11269
11289
  });
11270
- const S = (w) => y.findIndex((D) => D?.guid === w);
11290
+ const S = (I) => y.findIndex((D) => D?.guid === I);
11271
11291
  return /* @__PURE__ */ t(
11272
11292
  Os,
11273
11293
  {
11274
11294
  axisHighlight: { x: "none" },
11275
11295
  disableLineItemHighlight: !0,
11276
11296
  height: n,
11277
- onAreaClick: (w, D) => {
11297
+ onAreaClick: (I, D) => {
11278
11298
  r?.();
11279
11299
  const R = y.find((k) => k.id === D.seriesId);
11280
- d(U.DEBTS_CLICK_CHART_AREA, { account_guid: R?.guid });
11300
+ d(W.DEBTS_CLICK_CHART_AREA, { account_guid: R?.guid });
11281
11301
  },
11282
- onHighlightChange: (w) => {
11283
- const D = y.find((R) => R.id === w?.seriesId)?.guid;
11302
+ onHighlightChange: (I) => {
11303
+ const D = y.find((R) => R.id === I?.seriesId)?.guid;
11284
11304
  s?.(D ?? "");
11285
11305
  },
11286
11306
  series: y,
@@ -11323,7 +11343,7 @@ const Hc = ({
11323
11343
  scaleType: "time",
11324
11344
  min: u[0],
11325
11345
  disableTicks: !0,
11326
- valueFormatter: (w) => re(w, ne.MONTH_SHORT_YEAR)
11346
+ valueFormatter: (I) => re(I, ne.MONTH_SHORT_YEAR)
11327
11347
  }
11328
11348
  ],
11329
11349
  yAxis: [
@@ -11331,7 +11351,7 @@ const Hc = ({
11331
11351
  min: 0,
11332
11352
  max: f,
11333
11353
  disableTicks: !0,
11334
- valueFormatter: (w) => P(w, "0a")
11354
+ valueFormatter: (I) => P(I, "0a")
11335
11355
  }
11336
11356
  ]
11337
11357
  }
@@ -11364,8 +11384,8 @@ const Hc = ({
11364
11384
  )
11365
11385
  ] });
11366
11386
  }, $m = T(jm), Xm = () => {
11367
- const e = ln(), { onEvent: n } = X(), { debts: i } = x(), { selectedDebtChartData: a, showCompleted: o, showError: r } = hn();
11368
- return g.useEffect(() => n(U.DEBT_SCHEDULE_VIEW), []), /* @__PURE__ */ t(ie, { children: r || o ? /* @__PURE__ */ t(
11387
+ const e = ln(), { onEvent: n } = $(), { debts: i } = x(), { selectedDebtChartData: a, showCompleted: o, showError: r } = hn();
11388
+ return g.useEffect(() => n(W.DEBT_SCHEDULE_VIEW), []), /* @__PURE__ */ t(ie, { children: r || o ? /* @__PURE__ */ t(
11369
11389
  C,
11370
11390
  {
11371
11391
  color: e.palette.secondary.main,
@@ -11529,8 +11549,8 @@ const Hc = ({
11529
11549
  }
11530
11550
  );
11531
11551
  }), Zm = T(({ debt: e }) => {
11532
- const { debts: n } = x(), { updateAccount: i } = fe(), { onEvent: a } = X(), [o, r] = g.useState(e.interest_rate ?? 0), s = o < 0, c = async () => {
11533
- await i({ ...e.account, interest_rate: o }), e.interest_rate = o, a(U.DEBTS_SAVE_RATE_ACTION, { account_guid: e.guid });
11552
+ const { debts: n } = x(), { updateAccount: i } = fe(), { onEvent: a } = $(), [o, r] = g.useState(e.interest_rate ?? 0), s = o < 0, c = async () => {
11553
+ await i({ ...e.account, interest_rate: o }), e.interest_rate = o, a(W.DEBTS_SAVE_RATE_ACTION, { account_guid: e.guid });
11534
11554
  }, d = () => {
11535
11555
  setTimeout(() => {
11536
11556
  r(e.interest_rate ?? 0);
@@ -11559,8 +11579,8 @@ const Hc = ({
11559
11579
  }
11560
11580
  );
11561
11581
  }), Qm = T(({ debt: e }) => {
11562
- const { debts: n } = x(), { updateAccount: i } = fe(), { onEvent: a } = X(), [o, r] = g.useState(e.monthly_payment ?? 0), s = o < 0 || o > 9999999999e-2, c = async () => {
11563
- await i({ ...e.account, minimum_payment: o }), e.monthly_payment = o, a(U.DEBTS_SAVE_PAYMENT_ACTION, { account_guid: e.guid });
11582
+ const { debts: n } = x(), { updateAccount: i } = fe(), { onEvent: a } = $(), [o, r] = g.useState(e.monthly_payment ?? 0), s = o < 0 || o > 9999999999e-2, c = async () => {
11583
+ await i({ ...e.account, minimum_payment: o }), e.monthly_payment = o, a(W.DEBTS_SAVE_PAYMENT_ACTION, { account_guid: e.guid });
11564
11584
  }, d = () => {
11565
11585
  setTimeout(() => {
11566
11586
  r(e.monthly_payment ?? 0);
@@ -11591,8 +11611,8 @@ const Hc = ({
11591
11611
  }
11592
11612
  );
11593
11613
  }), Jm = T(({ debt: e }) => {
11594
- const { debts: n } = x(), { updateAccount: i } = fe(), { onEvent: a } = X(), [o, r] = g.useState(e.original_balance ?? 0), s = o < 0 || o > 9999999999e-2, c = async () => {
11595
- await i({ ...e.account, original_balance: o }), e.original_balance = o, a(U.DEBTS_SAVE_BALANCE_ACTION, { account_guid: e.guid });
11614
+ const { debts: n } = x(), { updateAccount: i } = fe(), { onEvent: a } = $(), [o, r] = g.useState(e.original_balance ?? 0), s = o < 0 || o > 9999999999e-2, c = async () => {
11615
+ await i({ ...e.account, original_balance: o }), e.original_balance = o, a(W.DEBTS_SAVE_BALANCE_ACTION, { account_guid: e.guid });
11596
11616
  }, d = () => {
11597
11617
  setTimeout(() => {
11598
11618
  r(e.original_balance ?? 0);
@@ -11623,8 +11643,8 @@ const Hc = ({
11623
11643
  }
11624
11644
  );
11625
11645
  }), ep = () => {
11626
- const { onEvent: e } = X(), { selectedDebtChartData: n } = hn();
11627
- return g.useEffect(() => e(U.DEBT_DETAILS_VIEW), []), /* @__PURE__ */ l(b, { bgcolor: "background.paper", children: [
11646
+ const { onEvent: e } = $(), { selectedDebtChartData: n } = hn();
11647
+ return g.useEffect(() => e(W.DEBT_DETAILS_VIEW), []), /* @__PURE__ */ l(b, { bgcolor: "background.paper", children: [
11628
11648
  n?.goal && /* @__PURE__ */ l(Z, { children: [
11629
11649
  /* @__PURE__ */ t(Fc, { goal: n.goal }),
11630
11650
  /* @__PURE__ */ t(F, {}),
@@ -11740,8 +11760,8 @@ const Hc = ({
11740
11760
  }
11741
11761
  );
11742
11762
  }, sp = T(() => {
11743
- const { debts: e } = x(), { monthlyCashFlowProfile: n, updateMonthlyCashFlowProfile: i } = lt(), { onEvent: a } = X(), [o, r] = g.useState(n?.extra_payment ?? 0), s = o < 0 || o > 9999999999e-2, c = async () => {
11744
- n && (await i({ ...n, extra_payment: o }), n.extra_payment = o, a(U.DEBTS_SAVE_PAYDOWN_ACTION, {
11763
+ const { debts: e } = x(), { monthlyCashFlowProfile: n, updateMonthlyCashFlowProfile: i } = lt(), { onEvent: a } = $(), [o, r] = g.useState(n?.extra_payment ?? 0), s = o < 0 || o > 9999999999e-2, c = async () => {
11764
+ n && (await i({ ...n, extra_payment: o }), n.extra_payment = o, a(W.DEBTS_SAVE_PAYDOWN_ACTION, {
11745
11765
  user_guid: n?.user_guid
11746
11766
  }));
11747
11767
  }, d = () => {
@@ -11865,7 +11885,7 @@ const Kt = (e) => /* @__PURE__ */ t(C, { fontWeight: 600, variant: "Small", chil
11865
11885
  onHoverRow: a,
11866
11886
  onClickRow: o
11867
11887
  }) => {
11868
- const r = ln(), { onEvent: s } = X(), { isMobile: c } = pe(), { debts: d } = x(), [_, u] = g.useState([
11888
+ const r = ln(), { onEvent: s } = $(), { isMobile: c } = pe(), { debts: d } = x(), [_, u] = g.useState([
11869
11889
  { field: "priority", sort: "asc" }
11870
11890
  ]), h = [
11871
11891
  {
@@ -11965,8 +11985,8 @@ const Kt = (e) => /* @__PURE__ */ t(C, { fontWeight: 600, variant: "Small", chil
11965
11985
  id: S,
11966
11986
  priority: _p(y)
11967
11987
  })), [n]), f = (y) => {
11968
- const v = y.target.closest("[data-id]")?.getAttribute("data-id"), w = n[Number(v)];
11969
- a?.(w?.guid ?? "");
11988
+ const v = y.target.closest("[data-id]")?.getAttribute("data-id"), I = n[Number(v)];
11989
+ a?.(I?.guid ?? "");
11970
11990
  }, E = (y) => p.find((S) => S.guid === y)?.id;
11971
11991
  return /* @__PURE__ */ t(
11972
11992
  L,
@@ -11988,10 +12008,10 @@ const Kt = (e) => /* @__PURE__ */ t(C, { fontWeight: 600, variant: "Small", chil
11988
12008
  hideFooter: !0,
11989
12009
  initialState: { sorting: { sortModel: _ } },
11990
12010
  onRowClick: (y) => {
11991
- o(), s(U.TRENDS_CLICK_TABLE_ROW, { account_guid: y.row.guid });
12011
+ o(), s(W.TRENDS_CLICK_TABLE_ROW, { account_guid: y.row.guid });
11992
12012
  },
11993
12013
  onSortModelChange: (y) => {
11994
- u(y), s(U.TRENDS_CLICK_TABLE_SORT);
12014
+ u(y), s(W.TRENDS_CLICK_TABLE_SORT);
11995
12015
  },
11996
12016
  rows: p,
11997
12017
  slotProps: {
@@ -12039,7 +12059,7 @@ const Kt = (e) => /* @__PURE__ */ t(C, { fontWeight: 600, variant: "Small", chil
12039
12059
  }
12040
12060
  );
12041
12061
  }, fp = T(({ buttonEl: e, onClose: n }) => {
12042
- const { onEvent: i } = X(), { debts: a } = x(), { selectedDebtPriority: o, setSelectedDebtPriority: r } = hn(), s = !!e, c = [
12062
+ const { onEvent: i } = $(), { debts: a } = x(), { selectedDebtPriority: o, setSelectedDebtPriority: r } = hn(), s = !!e, c = [
12043
12063
  {
12044
12064
  priority: Jt.HIGHEST_INTEREST,
12045
12065
  text: a.priority_sort_highest_interest
@@ -12053,7 +12073,7 @@ const Kt = (e) => /* @__PURE__ */ t(C, { fontWeight: 600, variant: "Small", chil
12053
12073
  text: a.priority_sort_highest_balance
12054
12074
  }
12055
12075
  ], d = (_) => {
12056
- r(_), i(U.DEBTS_CLICK_PRIORITY, { debts_priority: _ });
12076
+ r(_), i(W.DEBTS_CLICK_PRIORITY, { debts_priority: _ });
12057
12077
  };
12058
12078
  return /* @__PURE__ */ t(
12059
12079
  Ss,
@@ -12098,8 +12118,8 @@ const Kt = (e) => /* @__PURE__ */ t(C, { fontWeight: 600, variant: "Small", chil
12098
12118
  }
12099
12119
  );
12100
12120
  }), bp = T(() => {
12101
- const { onEvent: e } = X(), { debts: n } = x(), { selectedDebtPriority: i } = hn(), [a, o] = g.useState(null), r = (_) => {
12102
- o(_.currentTarget), e(U.DEBTS_CLICK_PRIORITIZE);
12121
+ const { onEvent: e } = $(), { debts: n } = x(), { selectedDebtPriority: i } = hn(), [a, o] = g.useState(null), r = (_) => {
12122
+ o(_.currentTarget), e(W.DEBTS_CLICK_PRIORITIZE);
12103
12123
  }, s = () => {
12104
12124
  o(null);
12105
12125
  }, c = !!a, d = g.useMemo(() => ({
@@ -12163,29 +12183,29 @@ const Kt = (e) => /* @__PURE__ */ t(C, { fontWeight: 600, variant: "Small", chil
12163
12183
  }
12164
12184
  );
12165
12185
  }), Sp = ({ onBackClick: e, sx: n }) => {
12166
- const [i, a] = g.useState(!1), [o, r] = g.useState(!1), [s, c] = g.useState(!1), [d, _] = g.useState(""), { isDesktop: u, isMobile: h } = pe(), { debts: m } = x(), { onEvent: p } = X(), { isCopyLoaded: f, isInitialized: E, setSelectedAccounts: y } = de(), { setSelectedAccount: S } = Ut(), { selectedDebtPriority: I, setSelectedDebtChartData: v } = hn(), { visibleDebtAccounts: w } = fe(), { goalsLoaded: D, loadGoals: R, monthlyCashFlowProfile: k } = lt(), { debts: G } = pa(), O = g.useMemo(() => {
12186
+ const [i, a] = g.useState(!1), [o, r] = g.useState(!1), [s, c] = g.useState(!1), [d, _] = g.useState(""), { isDesktop: u, isMobile: h } = pe(), { debts: m } = x(), { onEvent: p } = $(), { isCopyLoaded: f, isInitialized: E, setSelectedAccounts: y } = de(), { setSelectedAccount: S } = Ut(), { selectedDebtPriority: w, setSelectedDebtChartData: v } = hn(), { visibleDebtAccounts: I } = fe(), { goalsLoaded: D, loadGoals: R, monthlyCashFlowProfile: k } = lt(), { debts: G } = pa(), O = g.useMemo(() => {
12167
12187
  const J = k?.extra_payment ?? 0;
12168
- return yp(G, I, J);
12169
- }, [G, I, k]);
12188
+ return yp(G, w, J);
12189
+ }, [G, w, k]);
12170
12190
  g.useEffect(() => {
12171
- y(w), p(U.DEBTS_VIEW);
12191
+ y(I), p(W.DEBTS_VIEW);
12172
12192
  }, []), g.useEffect(() => {
12173
- y(w);
12174
- }, [w]), g.useEffect(() => {
12193
+ y(I);
12194
+ }, [I]), g.useEffect(() => {
12175
12195
  E && R().finally();
12176
12196
  }, [E]);
12177
- const M = (J) => _(J), W = () => {
12178
- const J = w.find((Me) => Me.guid === d), Ie = O.find((Me) => Me.guid === d);
12197
+ const M = (J) => _(J), U = () => {
12198
+ const J = I.find((Me) => Me.guid === d), Ie = O.find((Me) => Me.guid === d);
12179
12199
  J && S(J), Ie && v(Ie), a(!0);
12180
- }, Q = () => p(U.DEBTS_CLICK_FILTER), he = () => {
12181
- c(!0), p(U.DEBTS_CLICK_SNOWBALL_CTA);
12200
+ }, Q = () => p(W.DEBTS_CLICK_FILTER), he = () => {
12201
+ c(!0), p(W.DEBTS_CLICK_SNOWBALL_CTA);
12182
12202
  }, be = () => {
12183
- r(!0), p(U.DEBTS_CLICK_PAYDOWN);
12203
+ r(!0), p(W.DEBTS_CLICK_PAYDOWN);
12184
12204
  };
12185
12205
  return !D || !f || !E ? /* @__PURE__ */ t(ue, {}) : /* @__PURE__ */ l(
12186
12206
  pt,
12187
12207
  {
12188
- accountOptions: w,
12208
+ accountOptions: I,
12189
12209
  actions: [
12190
12210
  /* @__PURE__ */ t(bp, {}, "prioritize-debts"),
12191
12211
  /* @__PURE__ */ t(Ep, { onClick: be }, "extra-paydown")
@@ -12211,7 +12231,7 @@ const Kt = (e) => /* @__PURE__ */ t(C, { fontWeight: 600, variant: "Small", chil
12211
12231
  debts: O,
12212
12232
  height: h ? 250 : void 0,
12213
12233
  hoveredDebtGuid: d,
12214
- onClickArea: W,
12234
+ onClickArea: U,
12215
12235
  onHoverArea: M,
12216
12236
  sx: { mr: h ? "4px" : "-48px" }
12217
12237
  }
@@ -12232,7 +12252,7 @@ const Kt = (e) => /* @__PURE__ */ t(C, { fontWeight: 600, variant: "Small", chil
12232
12252
  {
12233
12253
  debts: O,
12234
12254
  hoveredDebtGuid: d,
12235
- onClickRow: W,
12255
+ onClickRow: U,
12236
12256
  onHoverRow: M
12237
12257
  }
12238
12258
  ) })
@@ -12249,7 +12269,7 @@ const Kt = (e) => /* @__PURE__ */ t(C, { fontWeight: 600, variant: "Small", chil
12249
12269
  ]
12250
12270
  }
12251
12271
  );
12252
- }, ES = T(Sp), Ap = {
12272
+ }, E4 = T(Sp), Ap = {
12253
12273
  unnamed_label: "Unnamed Debt"
12254
12274
  };
12255
12275
  function Tp(e, n) {
@@ -13051,7 +13071,7 @@ const kp = ({ list: e, onClickItem: n }) => /* @__PURE__ */ t(L, { sx: { bgcolor
13051
13071
  ]
13052
13072
  }
13053
13073
  );
13054
- }, SS = T(Vp);
13074
+ }, S4 = T(Vp);
13055
13075
  class Ur {
13056
13076
  fetchInstance;
13057
13077
  constructor(n, i) {
@@ -13871,18 +13891,18 @@ const Yp = (e, n) => {
13871
13891
  ), f = i.filter(
13872
13892
  (y) => !r.find((S) => S.account_guid === y.guid)
13873
13893
  ), E = async (y) => {
13874
- const S = y.map((I) => ({
13875
- account_guid: I.guid,
13894
+ const S = y.map((w) => ({
13895
+ account_guid: w.guid,
13876
13896
  retirement_goal_guid: e.guid
13877
13897
  }));
13878
13898
  if (m)
13879
13899
  d(S);
13880
13900
  else
13881
- for (const I of S)
13882
- await a(I), c(n.alert_account_added);
13901
+ for (const w of S)
13902
+ await a(w), c(n.alert_account_added);
13883
13903
  _({
13884
13904
  ...s,
13885
- current_amount: y.reduce((I, v) => I + (v.balance || 0), 0)
13905
+ current_amount: y.reduce((w, v) => w + (v.balance || 0), 0)
13886
13906
  }), h(!1);
13887
13907
  };
13888
13908
  return /* @__PURE__ */ l(b, { children: [
@@ -13965,16 +13985,16 @@ const Yp = (e, n) => {
13965
13985
  setAlert: h,
13966
13986
  setSelectedGoal: m,
13967
13987
  updateGoal: p
13968
- } = lt(), { user: f } = Tt(), [E, y] = g.useState(!1), S = !u?.guid, I = u?.track_type === Y.SAVINGS_TRACK && u.is_complete && !u.has_been_spent, v = g.useMemo(() => {
13988
+ } = lt(), { user: f } = Tt(), [E, y] = g.useState(!1), S = !u?.guid, w = u?.track_type === Y.SAVINGS_TRACK && u.is_complete && !u.has_been_spent, v = g.useMemo(() => {
13969
13989
  const M = S ? d : _;
13970
- return n.filter((W) => M.some((Q) => Q.account_guid === W.guid));
13971
- }, [S, n, d, _]), w = g.useMemo(() => {
13990
+ return n.filter((U) => M.some((Q) => Q.account_guid === U.guid));
13991
+ }, [S, n, d, _]), I = g.useMemo(() => {
13972
13992
  if (!u) return !1;
13973
- const { account_guid: M, track_type: W, name: Q, amount: he, retirement_age: be } = u;
13974
- return W === Y.SAVINGS_TRACK ? M ? !!Q && !!he : !1 : W === Y.RETIREMENT_TRACK ? v.length ? !!Q && !!he && !!be && !!f.birthday : !1 : !0;
13993
+ const { account_guid: M, track_type: U, name: Q, amount: he, retirement_age: be } = u;
13994
+ return U === Y.SAVINGS_TRACK ? M ? !!Q && !!he : !1 : U === Y.RETIREMENT_TRACK ? v.length ? !!Q && !!he && !!be && !!f.birthday : !1 : !0;
13975
13995
  }, [u, v, f.birthday]);
13976
13996
  let D = a.delete_button, R = () => y(!0);
13977
- S ? (R = () => k(), D = a.save_button) : I && (R = () => O(), D = i.mark_as_complete_button);
13997
+ S ? (R = () => k(), D = a.save_button) : w && (R = () => O(), D = i.mark_as_complete_button);
13978
13998
  const k = async () => {
13979
13999
  if (u) {
13980
14000
  const M = u.track_type;
@@ -13996,10 +14016,10 @@ const Yp = (e, n) => {
13996
14016
  ariaLabelClose: a.close_aria,
13997
14017
  hasSecondaryAction: S,
13998
14018
  isOpen: !!u,
13999
- isPrimaryDisabled: !w,
14019
+ isPrimaryDisabled: !I,
14000
14020
  onClose: () => m(void 0),
14001
14021
  onPrimaryAction: R,
14002
- primaryColor: S || I ? "primary" : "error",
14022
+ primaryColor: S || w ? "primary" : "error",
14003
14023
  primaryText: D,
14004
14024
  secondaryColor: "primary",
14005
14025
  title: i.goal_details,
@@ -14020,8 +14040,8 @@ const Yp = (e, n) => {
14020
14040
  }
14021
14041
  )
14022
14042
  ] });
14023
- }), AS = T(({ onBackClick: e, sx: n }) => {
14024
- const { onEvent: i } = X(), { isMobile: a } = pe(), { visibleAccounts: o } = fe(), { isCopyLoaded: r, isInitialized: s, setSelectedAccounts: c } = de(), { goals: d, common: _ } = x(), { alert: u, goals: h, goalsLoaded: m, loadGoals: p, monthlyCashFlowProfile: f, setAlert: E, retirmentGoals: y } = lt(), [S, I] = g.useState(0), [v, w] = g.useState(!1), D = f?.amount_allocated_for_savings_goals || 0, R = f?.amount_allocated_for_debt_goals || 0, k = f?.amount_allocated_for_retirement_goals || 0, G = r ? A(
14043
+ }), A4 = T(({ onBackClick: e, sx: n }) => {
14044
+ const { onEvent: i } = $(), { isMobile: a } = pe(), { visibleAccounts: o } = fe(), { isCopyLoaded: r, isInitialized: s, setSelectedAccounts: c } = de(), { goals: d, common: _ } = x(), { alert: u, goals: h, goalsLoaded: m, loadGoals: p, monthlyCashFlowProfile: f, setAlert: E, retirmentGoals: y } = lt(), [S, w] = g.useState(0), [v, I] = g.useState(!1), D = f?.amount_allocated_for_savings_goals || 0, R = f?.amount_allocated_for_debt_goals || 0, k = f?.amount_allocated_for_retirement_goals || 0, G = r ? A(
14025
14045
  a ? d.tab_subtitle_mobile : d.tab_subtitle,
14026
14046
  P(D, "0,0")
14027
14047
  ) : "", O = r ? A(
@@ -14032,16 +14052,16 @@ const Yp = (e, n) => {
14032
14052
  P(k, "0,0")
14033
14053
  ) : "";
14034
14054
  g.useEffect(() => {
14035
- c(o), i(U.GOALS_VIEW);
14055
+ c(o), i(W.GOALS_VIEW);
14036
14056
  }, []), g.useEffect(() => {
14037
14057
  s && p().finally();
14038
14058
  }, [s, D, R, k]);
14039
- const W = () => {
14040
- i(U.GOALS_CLICK_FILTER);
14059
+ const U = () => {
14060
+ i(W.GOALS_CLICK_FILTER);
14041
14061
  }, Q = () => {
14042
- w(!0), i(U.GOALS_CLICK_ADD);
14062
+ I(!0), i(W.GOALS_CLICK_ADD);
14043
14063
  }, he = (J) => {
14044
- w(!1), J === Y.SAVINGS_TRACK ? I(0) : J === Y.DEBT_TRACK ? I(1) : J === Y.RETIREMENT_TRACK && I(2);
14064
+ I(!1), J === Y.SAVINGS_TRACK ? w(0) : J === Y.DEBT_TRACK ? w(1) : J === Y.RETIREMENT_TRACK && w(2);
14045
14065
  }, be = g.useMemo(
14046
14066
  () => m && (h.length === 0 || h.every(({ track_type: J }) => !J) && y.length === 0),
14047
14067
  [h, m, y]
@@ -14057,7 +14077,7 @@ const Yp = (e, n) => {
14057
14077
  onClick: Q
14058
14078
  }
14059
14079
  ],
14060
- onAccountsFilterClick: W,
14080
+ onAccountsFilterClick: U,
14061
14081
  onBackClick: e,
14062
14082
  sx: n,
14063
14083
  title: d.title,
@@ -14066,7 +14086,7 @@ const Yp = (e, n) => {
14066
14086
  /* @__PURE__ */ l(
14067
14087
  Ft,
14068
14088
  {
14069
- onChange: (J, Ie) => I(Ie),
14089
+ onChange: (J, Ie) => w(Ie),
14070
14090
  sx: { bgcolor: "background.paper" },
14071
14091
  textColor: "primary",
14072
14092
  value: be ? !1 : S,
@@ -14123,7 +14143,7 @@ const Yp = (e, n) => {
14123
14143
  {
14124
14144
  ariaLabelClose: _.close_aria,
14125
14145
  isOpen: v,
14126
- onClose: () => w(!1),
14146
+ onClose: () => I(!1),
14127
14147
  title: d.add_goal_title,
14128
14148
  children: /* @__PURE__ */ t(Jp, { onClose: he })
14129
14149
  }
@@ -14368,27 +14388,31 @@ const l1 = T(({ goal: e }) => {
14368
14388
  ]
14369
14389
  }
14370
14390
  );
14371
- }), TS = T(({ onCTAClick: e }) => {
14372
- const { visibleAccounts: n } = fe(), { onEvent: i } = X(), { goals: a } = x(), { isInitialized: o, setSelectedAccounts: r, isCopyLoaded: s } = de(), { ongoingGoalsForMicroWidget: c, loadGoals: d, goalsLoaded: _ } = lt();
14391
+ }), T4 = T(({ onCTAClick: e }) => {
14392
+ const { visibleAccounts: n } = fe(), { onEvent: i } = $(), { goals: a } = x(), { isInitialized: o, setSelectedAccounts: r, isCopyLoaded: s } = de(), { ongoingGoalsForMicroWidget: c, loadGoals: d, goalsLoaded: _ } = lt();
14373
14393
  g.useEffect(() => {
14374
- r(n), i(U.GOALS_VIEW);
14394
+ r(n);
14375
14395
  }, []), g.useEffect(() => {
14376
- o && d().finally();
14396
+ o && (d().finally(), i(W.GOALS_LOAD_WIDGET, {
14397
+ state: n?.length ? "default" : "zeroState"
14398
+ }));
14377
14399
  }, [o]);
14378
- const u = () => {
14379
- i(U.GOALS_MICRO_WIDGET_CTA), e();
14380
- }, h = g.useMemo(
14400
+ const u = g.useMemo(
14381
14401
  () => _ && c.length === 0,
14382
14402
  [c, _]
14383
- );
14403
+ ), h = () => {
14404
+ i(
14405
+ u ? W.GOALS_CLICK_GET_STARTED : W.GOALS_CLICK_VIEW_DETAILS
14406
+ ), e();
14407
+ };
14384
14408
  return !_ || !s || !o ? /* @__PURE__ */ t(ue, {}) : /* @__PURE__ */ t(
14385
14409
  fa,
14386
14410
  {
14387
14411
  className: "mx-goals-microwidget",
14388
- ctaLabel: h ? a.get_started : a.view_details,
14389
- onCTAClick: u,
14412
+ ctaLabel: u ? a.get_started : a.view_details,
14413
+ onCTAClick: h,
14390
14414
  title: a.title,
14391
- children: h ? /* @__PURE__ */ t(
14415
+ children: u ? /* @__PURE__ */ t(
14392
14416
  _1,
14393
14417
  {
14394
14418
  header: a.create_goals_header,
@@ -15006,7 +15030,7 @@ const R1 = /^[ a-zA-ZÀ-ÿ0-9]+$/, O1 = 50, zr = 65, L1 = ({
15006
15030
  !a.length && /* @__PURE__ */ t(b, { alignItems: "center", my: 24, children: /* @__PURE__ */ t(C, { bold: !0, color: "secondary", variant: "Small", children: r.search_zero_state }) })
15007
15031
  ] }) }) })
15008
15032
  ] }) : /* @__PURE__ */ t(ue, {});
15009
- }, xS = T(L1);
15033
+ }, x4 = T(L1);
15010
15034
  class jr {
15011
15035
  fetchInstance;
15012
15036
  constructor(n, i) {
@@ -15348,15 +15372,19 @@ const Q1 = ({ amount: e, copy: n, trendValue: i }) => {
15348
15372
  /* @__PURE__ */ t(C, { sx: { display: "block", fontWeight: 600 }, variant: "body1", children: e.empty_widget_header }),
15349
15373
  /* @__PURE__ */ t(le, { sx: { color: "text.secondary" }, variant: "body2", children: e.zero_state_description })
15350
15374
  ] })
15351
- ] }), IS = T(({ onCTAClick: e }) => {
15352
- const [n, i] = g.useState(!1), { visibleAccounts: a } = fe(), { onEvent: o } = X(), { net_worth: r, common: s } = x(), { isInitialized: c, selectedAccounts: d, setSelectedAccounts: _ } = de(), { loadChartData: u, loadNetWorthData: h, netWorthData: m, selectedData: p } = tc(), f = async () => {
15375
+ ] }), I4 = T(({ onCTAClick: e }) => {
15376
+ const [n, i] = g.useState(!1), { visibleAccounts: a } = fe(), { onEvent: o } = $(), { net_worth: r, common: s } = x(), { isInitialized: c, selectedAccounts: d, setSelectedAccounts: _ } = de(), { loadChartData: u, loadNetWorthData: h, netWorthData: m, selectedData: p } = tc(), f = async () => {
15353
15377
  await h(d), await u(1), i(!0);
15354
15378
  };
15355
15379
  if (g.useEffect(() => _(a), [a]), g.useEffect(() => {
15356
- c && f().finally();
15380
+ c && f().finally(), o(W.NET_WORTH_LOAD_WIDGET, {
15381
+ state: a?.length ? "default" : "zeroState"
15382
+ });
15357
15383
  }, [c]), !n) return /* @__PURE__ */ t(ue, { height: 100 });
15358
15384
  const E = () => {
15359
- o(U.NETWORTH_MICRO_WIDGET_CTA), e();
15385
+ o(
15386
+ a.length ? W.NET_WORTH_CLICK_VIEW_DETAILS : W.NET_WORTH_CLICK_GET_STARTED
15387
+ ), e();
15360
15388
  };
15361
15389
  return /* @__PURE__ */ t(
15362
15390
  fa,
@@ -15536,7 +15564,7 @@ const Q1 = ({ amount: e, copy: n, trendValue: i }) => {
15536
15564
  ] }))
15537
15565
  ] })
15538
15566
  ] });
15539
- }, aC = T(iC), wS = T(({ onBackClick: e }) => {
15567
+ }, aC = T(iC), w4 = T(({ onBackClick: e }) => {
15540
15568
  const { isCopyLoaded: n, isInitialized: i, selectedAccounts: a, setSelectedAccounts: o } = de(), { accounts: r, net_worth: s } = x(), { visibleAccounts: c } = fe(), {
15541
15569
  assetsLiabilities: d,
15542
15570
  gainsLosses: _,
@@ -15547,17 +15575,17 @@ const Q1 = ({ amount: e, copy: n, trendValue: i }) => {
15547
15575
  selectedData: f,
15548
15576
  setHoveredData: E,
15549
15577
  setSelectedData: y
15550
- } = tc(), { isMobile: S } = pe(), { onEvent: I } = X(), [v, w] = g.useState(!1), [D, R] = g.useState(6), [k, G] = g.useState(!1), [O, M] = g.useState(!1), [W, Q] = g.useState(!1), he = async () => {
15551
- await m(a), await h(D), w(!0);
15578
+ } = tc(), { isMobile: S } = pe(), { onEvent: w } = $(), [v, I] = g.useState(!1), [D, R] = g.useState(6), [k, G] = g.useState(!1), [O, M] = g.useState(!1), [U, Q] = g.useState(!1), he = async () => {
15579
+ await m(a), await h(D), I(!0);
15552
15580
  };
15553
15581
  g.useEffect(() => {
15554
- I(U.NET_WORTH_VIEW);
15582
+ w(W.NET_WORTH_VIEW);
15555
15583
  }, []), g.useEffect(() => {
15556
15584
  o(c);
15557
15585
  }, [c]), g.useEffect(() => {
15558
15586
  i && he().finally();
15559
15587
  }, [i, a]), g.useEffect(() => {
15560
- I(U.NET_WORTH_WIDGET_CLICK_TIMEFRAME, { time_period: D + "M" }), h(D).finally();
15588
+ w(W.NET_WORTH_WIDGET_CLICK_TIMEFRAME, { time_period: D + "M" }), h(D).finally();
15561
15589
  }, [D]);
15562
15590
  const be = (B, ae) => {
15563
15591
  y(ae), B.currentTarget instanceof HTMLDivElement && G(!0);
@@ -15566,7 +15594,7 @@ const Q1 = ({ amount: e, copy: n, trendValue: i }) => {
15566
15594
  }, Ie = () => {
15567
15595
  E(null);
15568
15596
  }, Me = () => {
15569
- I(U.NET_WORTH_WIDGET_CLICK_ASSETS_LIABILITIES), M(!0);
15597
+ w(W.NET_WORTH_WIDGET_CLICK_ASSETS_LIABILITIES), M(!0);
15570
15598
  }, me = async (B) => {
15571
15599
  const ae = B[0], ke = B[1];
15572
15600
  ae && ke && R(Bd(ke, ae));
@@ -15579,7 +15607,7 @@ const Q1 = ({ amount: e, copy: n, trendValue: i }) => {
15579
15607
  onMouseLeave: Ie,
15580
15608
  selectedData: f
15581
15609
  }, Ee = () => {
15582
- Q(!0), I(U.ACCOUNTS_CLICK_CONNECT);
15610
+ Q(!0), w(W.ACCOUNTS_CLICK_CONNECT);
15583
15611
  };
15584
15612
  return n ? /* @__PURE__ */ t(
15585
15613
  pt,
@@ -15589,7 +15617,7 @@ const Q1 = ({ amount: e, copy: n, trendValue: i }) => {
15589
15617
  onRangeChanged: me
15590
15618
  },
15591
15619
  dateRangeVariant: S ? "timeframetabs" : "timeframebuttons",
15592
- onAccountsFilterClick: () => I(U.NET_WORTH_WIDGET_CLICK_FILTER),
15620
+ onAccountsFilterClick: () => w(W.NET_WORTH_WIDGET_CLICK_FILTER),
15593
15621
  onBackClick: e,
15594
15622
  showDividerAboveDateSelector: !1,
15595
15623
  sx: {
@@ -15641,7 +15669,7 @@ const Q1 = ({ amount: e, copy: n, trendValue: i }) => {
15641
15669
  hi,
15642
15670
  {
15643
15671
  onClose: () => Q(!1),
15644
- showConnectionsWidget: W,
15672
+ showConnectionsWidget: U,
15645
15673
  title: r.manage_connections
15646
15674
  }
15647
15675
  ),
@@ -15672,7 +15700,7 @@ const Q1 = ({ amount: e, copy: n, trendValue: i }) => {
15672
15700
  ] }) : /* @__PURE__ */ t(ue, {})
15673
15701
  }
15674
15702
  ) : /* @__PURE__ */ t(ue, {});
15675
- }), vS = (e) => {
15703
+ }), v4 = (e) => {
15676
15704
  switch (e) {
15677
15705
  case zn.BudgetExceeded:
15678
15706
  case zn.BudgetOffTarget:
@@ -15888,13 +15916,13 @@ const Qr = "PARENT-ENTITY", mC = (e, n) => ({
15888
15916
  } = o;
15889
15917
  for (const p of a.filter((f) => f.entity_guid === Qr)) {
15890
15918
  const f = mC(p.notification_type, i), E = a.filter(
15891
- (S) => S.entity_guid !== Qr && S.notification_type === p.notification_type && e.some((I) => I.guid === S.entity_guid)
15919
+ (S) => S.entity_guid !== Qr && S.notification_type === p.notification_type && e.some((w) => w.guid === S.entity_guid)
15892
15920
  ), y = [];
15893
15921
  c && !u && p.email_channel && r.email && y.push(i.delivery_method_email_label), d && !h && p.sms_channel && r.phone && y.push(i.delivery_method_sms_label), _ && !m && p.push_channel && y.push(i.delivery_method_push_label), s.push({
15894
15922
  ...p,
15895
15923
  children: E.map((S) => ({
15896
15924
  ...S,
15897
- account: e.find((I) => I.guid === S.entity_guid),
15925
+ account: e.find((w) => w.guid === S.entity_guid),
15898
15926
  label: f
15899
15927
  })),
15900
15928
  deliveryMethodsLabel: y.join(", "),
@@ -16230,11 +16258,11 @@ const tl = T(() => {
16230
16258
  birthday: h.birthday,
16231
16259
  postal_code: h.postal_code,
16232
16260
  credit_score: h.credit_score
16233
- }), [f, E] = g.useState(!1), [y, S] = g.useState(!1), I = g.useRef(null), v = m.email && !h.email_is_verified && !f, w = m.phone && !h.phone_is_verified && !f;
16261
+ }), [f, E] = g.useState(!1), [y, S] = g.useState(!1), w = g.useRef(null), v = m.email && !h.email_is_verified && !f, I = m.phone && !h.phone_is_verified && !f;
16234
16262
  g.useEffect(() => {
16235
16263
  if (n) {
16236
- const M = (W) => {
16237
- I.current && !I.current.contains(W.target) && f && S(!0);
16264
+ const M = (U) => {
16265
+ w.current && !w.current.contains(U.target) && f && S(!0);
16238
16266
  };
16239
16267
  return document.addEventListener("mousedown", M), () => {
16240
16268
  document.removeEventListener("mousedown", M);
@@ -16243,8 +16271,8 @@ const tl = T(() => {
16243
16271
  }, [f]);
16244
16272
  const D = () => {
16245
16273
  if (m.birthday) {
16246
- const M = new Date(m.birthday * 1e3), W = M.getUTCFullYear(), Q = M.getUTCMonth(), he = M.getUTCDate();
16247
- return new Date(W, Q, he);
16274
+ const M = new Date(m.birthday * 1e3), U = M.getUTCFullYear(), Q = M.getUTCMonth(), he = M.getUTCDate();
16275
+ return new Date(U, Q, he);
16248
16276
  }
16249
16277
  }, R = async () => {
16250
16278
  await u({ ...h, ...m }), E(!1);
@@ -16253,18 +16281,18 @@ const tl = T(() => {
16253
16281
  }, G = () => {
16254
16282
  S(!1);
16255
16283
  }, O = (M) => {
16256
- const W = {
16284
+ const U = {
16257
16285
  ...m,
16258
16286
  ...M
16259
16287
  };
16260
- p(W), E(JSON.stringify({ ...h, ...W }) !== JSON.stringify(h));
16288
+ p(U), E(JSON.stringify({ ...h, ...U }) !== JSON.stringify(h));
16261
16289
  };
16262
16290
  return /* @__PURE__ */ l(Z, { children: [
16263
16291
  /* @__PURE__ */ l(
16264
16292
  L,
16265
16293
  {
16266
16294
  component: "form",
16267
- ref: I,
16295
+ ref: w,
16268
16296
  sx: {
16269
16297
  backgroundColor: "background.paper",
16270
16298
  p: 24,
@@ -16314,7 +16342,7 @@ const tl = T(() => {
16314
16342
  ),
16315
16343
  v && /* @__PURE__ */ t(tl, {})
16316
16344
  ] }),
16317
- _.display_sms_edit_field_in_settings && /* @__PURE__ */ l(b, { sx: { mb: w ? 20 : 44 }, children: [
16345
+ _.display_sms_edit_field_in_settings && /* @__PURE__ */ l(b, { sx: { mb: I ? 20 : 44 }, children: [
16318
16346
  /* @__PURE__ */ t(
16319
16347
  tt,
16320
16348
  {
@@ -16324,7 +16352,7 @@ const tl = T(() => {
16324
16352
  type: "tel"
16325
16353
  }
16326
16354
  ),
16327
- w && /* @__PURE__ */ t(nl, {})
16355
+ I && /* @__PURE__ */ t(nl, {})
16328
16356
  ] })
16329
16357
  ] }),
16330
16358
  /* @__PURE__ */ l(b, { direction: s ? "column" : "row", spacing: s ? 44 : 24, sx: { mb: 44 }, children: [
@@ -16651,14 +16679,14 @@ const EC = ({
16651
16679
  return "";
16652
16680
  }
16653
16681
  }, y = () => {
16654
- const I = {
16682
+ const w = {
16655
16683
  "& .MuiDialogContent-root": {
16656
16684
  width: 400,
16657
16685
  pt: 0
16658
16686
  }
16659
16687
  };
16660
16688
  return e === _t.Token ? {
16661
- ...I,
16689
+ ...w,
16662
16690
  "& .MuiToolbar-root:last-child": {
16663
16691
  padding: "32px 60px 48px",
16664
16692
  justifyContent: "center"
@@ -16670,7 +16698,7 @@ const EC = ({
16670
16698
  flex: 1
16671
16699
  }
16672
16700
  } : {
16673
- ...I,
16701
+ ...w,
16674
16702
  "& .MuiToolbar-root:last-child": {
16675
16703
  gap: 8,
16676
16704
  padding: 24,
@@ -16684,8 +16712,8 @@ const EC = ({
16684
16712
  };
16685
16713
  }, S = async () => {
16686
16714
  if (e === _t.Token && i(), e === _t.Edit && a) {
16687
- const I = { ...a, name: m };
16688
- (await d(I)).success ? (u(c.mobile_devices_edit_success, "success"), h()) : u(
16715
+ const w = { ...a, name: m };
16716
+ (await d(w)).success ? (u(c.mobile_devices_edit_success, "success"), h()) : u(
16689
16717
  A(c.mobile_devices_edit_error, a.name),
16690
16718
  "error"
16691
16719
  ), i();
@@ -16728,7 +16756,7 @@ const EC = ({
16728
16756
  ),
16729
16757
  /* @__PURE__ */ t(C, { truncate: !1, variant: "Small", children: c.mobile_devices_access_info_2 })
16730
16758
  ] }),
16731
- e === _t.Edit && /* @__PURE__ */ t(b, { children: /* @__PURE__ */ t(tt, { onChange: (I) => p(I.target.value), value: m }) }),
16759
+ e === _t.Edit && /* @__PURE__ */ t(b, { children: /* @__PURE__ */ t(tt, { onChange: (w) => p(w.target.value), value: m }) }),
16732
16760
  e === _t.Delete && /* @__PURE__ */ t(le, { children: c.mobile_devices_delete_info })
16733
16761
  ]
16734
16762
  }
@@ -16739,12 +16767,12 @@ const EC = ({
16739
16767
  a && s();
16740
16768
  }, [a]);
16741
16769
  const f = async () => {
16742
- const I = await c();
16743
- I ? (p(I), _({ open: !0, type: _t.Token })) : o(n.mobile_devices_access_error, "error");
16744
- }, E = (I) => {
16745
- h(I), _({ open: !0, type: _t.Edit });
16746
- }, y = (I) => {
16747
- h(I), _({ open: !0, type: _t.Delete });
16770
+ const w = await c();
16771
+ w ? (p(w), _({ open: !0, type: _t.Token })) : o(n.mobile_devices_access_error, "error");
16772
+ }, E = (w) => {
16773
+ h(w), _({ open: !0, type: _t.Edit });
16774
+ }, y = (w) => {
16775
+ h(w), _({ open: !0, type: _t.Delete });
16748
16776
  }, S = () => {
16749
16777
  _({ open: !1, type: "" }), h(void 0);
16750
16778
  };
@@ -17235,7 +17263,7 @@ const EC = ({
17235
17263
  const { budgetProfiles: e } = Ct();
17236
17264
  return /* @__PURE__ */ t(b, { children: e.map((n) => /* @__PURE__ */ t(al, { profile: n }, n.guid)) });
17237
17265
  }), LC = T(() => {
17238
- const { onEvent: e } = X(), { settings: n } = x(), {
17266
+ const { onEvent: e } = $(), { settings: n } = x(), {
17239
17267
  clientCommunicationProfile: i,
17240
17268
  updateUserCommunicationProfile: a,
17241
17269
  userCommunicationsProfile: o
@@ -17305,8 +17333,8 @@ const EC = ({
17305
17333
  email: s.email,
17306
17334
  phone: s.phone
17307
17335
  }), h = _.email && !s.email_is_verified && !c, m = _.phone && !s.phone_is_verified && !c, p = (E) => {
17308
- const { name: y, value: S } = E.target, I = { ..._, [y]: S };
17309
- u(I), d(JSON.stringify({ ...s, ...I }) !== JSON.stringify(s));
17336
+ const { name: y, value: S } = E.target, w = { ..._, [y]: S };
17337
+ u(w), d(JSON.stringify({ ...s, ...w }) !== JSON.stringify(s));
17310
17338
  }, f = async () => {
17311
17339
  await r({ ...s, ..._ }), d(!1);
17312
17340
  };
@@ -17481,16 +17509,16 @@ const EC = ({
17481
17509
  ] }),
17482
17510
  /* @__PURE__ */ t(b, { sx: { flexDirection: { xs: "column", md: "row" }, gap: 12 }, children: [0, 1].map((u) => {
17483
17511
  const h = u === 0 ? 0 : _, m = u === 0 ? _ : i.length, p = i.slice(h, m);
17484
- return /* @__PURE__ */ t(b, { sx: { flex: 1, gap: 12, maxWidth: { md: "calc(50% - 6px)" } }, children: p.map(({ guid: f, icon: E, topics: y, title: S }, I) => {
17485
- const v = I + h;
17512
+ return /* @__PURE__ */ t(b, { sx: { flex: 1, gap: 12, maxWidth: { md: "calc(50% - 6px)" } }, children: p.map(({ guid: f, icon: E, topics: y, title: S }, w) => {
17513
+ const v = w + h;
17486
17514
  return /* @__PURE__ */ l(
17487
17515
  Ri,
17488
17516
  {
17489
17517
  disableGutters: !0,
17490
17518
  expanded: v === c,
17491
- onChange: (w, D) => d(D ? v : null),
17492
- sx: (w) => ({
17493
- border: `1px solid ${w.palette.border?.light}`,
17519
+ onChange: (I, D) => d(D ? v : null),
17520
+ sx: (I) => ({
17521
+ border: `1px solid ${I.palette.border?.light}`,
17494
17522
  borderRadius: "8px !important",
17495
17523
  "&:before": {
17496
17524
  opacity: 0
@@ -17521,12 +17549,12 @@ const EC = ({
17521
17549
  ml: 56,
17522
17550
  p: 0
17523
17551
  },
17524
- children: /* @__PURE__ */ t(ie, { disablePadding: !0, children: y.map(({ label: w, topicKey: D }) => /* @__PURE__ */ t(
17552
+ children: /* @__PURE__ */ t(ie, { disablePadding: !0, children: y.map(({ label: I, topicKey: D }) => /* @__PURE__ */ t(
17525
17553
  _e,
17526
17554
  {
17527
- "aria-label": w,
17555
+ "aria-label": I,
17528
17556
  divider: !0,
17529
- onClick: () => s({ guid: f, category: S, pageTitle: w, topicKey: D }),
17557
+ onClick: () => s({ guid: f, category: S, pageTitle: I, topicKey: D }),
17530
17558
  sx: {
17531
17559
  pl: "6px !important",
17532
17560
  borderColor: "border.light",
@@ -17535,7 +17563,7 @@ const EC = ({
17535
17563
  borderBottomRightRadius: 7
17536
17564
  }
17537
17565
  },
17538
- children: /* @__PURE__ */ t(C, { color: "secondary", variant: "Small", children: w })
17566
+ children: /* @__PURE__ */ t(C, { color: "secondary", variant: "Small", children: I })
17539
17567
  },
17540
17568
  D
17541
17569
  )) })
@@ -20162,8 +20190,8 @@ const EC = ({
20162
20190
  const {
20163
20191
  target: { name: y, value: S }
20164
20192
  } = E;
20165
- u((I) => ({
20166
- ...I,
20193
+ u((w) => ({
20194
+ ...w,
20167
20195
  [y]: S
20168
20196
  }));
20169
20197
  };
@@ -20175,9 +20203,9 @@ const EC = ({
20175
20203
  onPrimaryAction: () => {
20176
20204
  const E = {};
20177
20205
  let y = !0;
20178
- h.forEach(({ label: S, name: I, required: v }) => {
20179
- const w = _[I];
20180
- v && !w && (E[I] = `${S} ${e.request_support_required_message}`, y = !1), (I === "institutionWebsite" || I === "institutionLoginPage") && w && !/(.+)\.(.{2,})/g.test(w) && (E[I] = e.request_support_valid_url_message, y = !1);
20206
+ h.forEach(({ label: S, name: w, required: v }) => {
20207
+ const I = _[w];
20208
+ v && !I && (E[w] = `${S} ${e.request_support_required_message}`, y = !1), (w === "institutionWebsite" || w === "institutionLoginPage") && I && !/(.+)\.(.{2,})/g.test(I) && (E[w] = e.request_support_valid_url_message, y = !1);
20181
20209
  }), d(E), y && (a(_), u(ka));
20182
20210
  },
20183
20211
  secondaryColor: "primary",
@@ -20399,12 +20427,12 @@ const EC = ({
20399
20427
  type: O,
20400
20428
  label: e.help_by_category_list[G.guid].topics[M]
20401
20429
  }))
20402
- })), I = Object.keys(e.popular_topics_list).map((G, O) => ({
20430
+ })), w = Object.keys(e.popular_topics_list).map((G, O) => ({
20403
20431
  name: e.popular_topics_list[G],
20404
20432
  type: m1[O].type
20405
20433
  })), v = () => {
20406
20434
  u(""), y({ isOpen: !1, topic: "", type: void 0 });
20407
- }, w = (G) => {
20435
+ }, I = (G) => {
20408
20436
  c.email && o({
20409
20437
  email: c.email,
20410
20438
  message: _ ? `Institution: ${_}, ${G}` : G,
@@ -20448,7 +20476,7 @@ const EC = ({
20448
20476
  /* @__PURE__ */ t(
20449
20477
  ol,
20450
20478
  {
20451
- list: I,
20479
+ list: w,
20452
20480
  onClick: D,
20453
20481
  sx: { fontWeight: 400 }
20454
20482
  }
@@ -20491,7 +20519,7 @@ const EC = ({
20491
20519
  onClose: () => {
20492
20520
  m(!1), u("");
20493
20521
  },
20494
- onSubmit: w,
20522
+ onSubmit: I,
20495
20523
  setAlert: s,
20496
20524
  topic: E.topic || e.contact_support
20497
20525
  }
@@ -20575,7 +20603,7 @@ const EC = ({
20575
20603
  }
20576
20604
  )
20577
20605
  ] });
20578
- }, NS = T(({ sx: e }) => {
20606
+ }, N4 = T(({ sx: e }) => {
20579
20607
  const { isCopyLoaded: n, isInitialized: i } = de();
20580
20608
  return !n || !i ? /* @__PURE__ */ t(ue, {}) : /* @__PURE__ */ t(pt, { sx: { p: 16 }, children: /* @__PURE__ */ t(rl, { sx: e }) });
20581
20609
  }), hf = T(({ selectedTab: e }) => {
@@ -20611,7 +20639,7 @@ const EC = ({
20611
20639
  ] });
20612
20640
  });
20613
20641
  var ti = /* @__PURE__ */ ((e) => (e[e.Profile = 0] = "Profile", e[e.Devices = 1] = "Devices", e[e.Notifications = 2] = "Notifications", e[e.TransactionRules = 3] = "TransactionRules", e[e.Help = 4] = "Help", e))(ti || {});
20614
- const DS = T(({ onBackClick: e, sx: n }) => {
20642
+ const D4 = T(({ onBackClick: e, sx: n }) => {
20615
20643
  const { settings: i } = x(), { isCopyLoaded: a, isInitialized: o } = de(), { config: r } = Wt(), { isMobile: s } = pe(), {
20616
20644
  display_user_profile_in_settings: c,
20617
20645
  display_mobile_devices_in_settings: d,
@@ -20649,13 +20677,13 @@ const DS = T(({ onBackClick: e, sx: n }) => {
20649
20677
  ] })
20650
20678
  }
20651
20679
  );
20652
- }), RS = T((e) => {
20680
+ }), R4 = T((e) => {
20653
20681
  const { clientConfig: n } = Wt(), i = n?.master?.deep_link_params?.view;
20654
20682
  return i ? /* @__PURE__ */ t(oa, { view: i }) : /* @__PURE__ */ t(pt, { ...e, children: /* @__PURE__ */ t(b, { my: 24, children: /* @__PURE__ */ t(oa, {}) }) });
20655
- }), OS = (e) => {
20683
+ }), O4 = (e) => {
20656
20684
  const { isMobile: n } = pe();
20657
20685
  return /* @__PURE__ */ t(pt, { ...e, children: /* @__PURE__ */ t(b, { sx: { mx: n ? 0 : 48, my: 24 }, children: /* @__PURE__ */ t(il, {}) }) });
20658
- }, LS = T(
20686
+ }, L4 = T(
20659
20687
  ({ notificationTypes: e, isOpen: n, onClose: i, onNotificationClick: a }) => {
20660
20688
  const { config: o } = Wt(), { notifications: r, settings: s } = x(), { isCopyLoaded: c } = de(), [d, _] = g.useState(!1);
20661
20689
  return c ? /* @__PURE__ */ l(Z, { children: [
@@ -20881,7 +20909,7 @@ const Cf = (e) => e.reduce((i, a) => {
20881
20909
  height: o = "100dvh",
20882
20910
  sx: r = {}
20883
20911
  }) => {
20884
- const { onEvent: s } = X(), c = re(/* @__PURE__ */ new Date(), ne.MONTH_SHORT), [d, _] = g.useState([
20912
+ const { onEvent: s } = $(), c = re(/* @__PURE__ */ new Date(), ne.MONTH_SHORT), [d, _] = g.useState([
20885
20913
  { field: c, sort: "desc" }
20886
20914
  ]), u = g.useMemo(() => Sf(n.start, n.end), [n]), h = [
20887
20915
  {
@@ -20913,15 +20941,15 @@ const Cf = (e) => e.reduce((i, a) => {
20913
20941
  (E) => E.category_guid === i || E.top_level_category_guid === i
20914
20942
  ) : e).reduce(
20915
20943
  (E, y) => {
20916
- const { category_guid: S, top_level_category_guid: I, month: v, total: w, year: D } = y, R = i ? S : I;
20944
+ const { category_guid: S, top_level_category_guid: w, month: v, total: I, year: D } = y, R = i ? S : w;
20917
20945
  E[R] || (E[R] = {
20918
20946
  id: R,
20919
20947
  category: R,
20920
20948
  category_guid: S,
20921
- top_level_category_guid: I
20949
+ top_level_category_guid: w
20922
20950
  });
20923
20951
  const k = re(new Date(D, v - 1), ne.MONTH_SHORT);
20924
- return E[R][k] || (E[R][k] = 0), E[R][k] = E[R][k] + w, E;
20952
+ return E[R][k] || (E[R][k] = 0), E[R][k] = E[R][k] + I, E;
20925
20953
  },
20926
20954
  {}
20927
20955
  );
@@ -20936,10 +20964,10 @@ const Cf = (e) => e.reduce((i, a) => {
20936
20964
  hideFooter: !0,
20937
20965
  initialState: { sorting: { sortModel: d } },
20938
20966
  onRowClick: (p) => {
20939
- a?.(p.row.category), s(U.TRENDS_CLICK_TABLE_ROW);
20967
+ a?.(p.row.category), s(W.TRENDS_CLICK_TABLE_ROW);
20940
20968
  },
20941
20969
  onSortModelChange: (p) => {
20942
- _(p), s(U.TRENDS_CLICK_TABLE_SORT);
20970
+ _(p), s(W.TRENDS_CLICK_TABLE_SORT);
20943
20971
  },
20944
20972
  rows: m,
20945
20973
  slotProps: { baseIconButton: { color: "secondary", sx: { ml: 8 } } },
@@ -20955,7 +20983,7 @@ const Cf = (e) => e.reduce((i, a) => {
20955
20983
  isOpen: i,
20956
20984
  onClose: a
20957
20985
  }) => {
20958
- const { onEvent: o } = X(), { selectedAccountGuids: r } = de(), { common: s } = x(), { setFilter: c, sortedTransactions: d } = Le(), [_, u] = g.useState(""), h = g.useMemo(
20986
+ const { onEvent: o } = $(), { selectedAccountGuids: r } = de(), { common: s } = x(), { setFilter: c, sortedTransactions: d } = Le(), [_, u] = g.useState(""), h = g.useMemo(
20959
20987
  () => d.find((p) => p.guid === _),
20960
20988
  [_, d]
20961
20989
  );
@@ -20965,7 +20993,7 @@ const Cf = (e) => e.reduce((i, a) => {
20965
20993
  dateRange: n,
20966
20994
  custom: (p) => e === "" || e === p.category_guid || e === p.top_level_category_guid
20967
20995
  });
20968
- }, [r, e, n]), g.useEffect(() => o(U.TRENDS_VIEW_TRANSACTIONS), []);
20996
+ }, [r, e, n]), g.useEffect(() => o(W.TRENDS_VIEW_TRANSACTIONS), []);
20969
20997
  const m = () => {
20970
20998
  u(""), a();
20971
20999
  };
@@ -20985,7 +21013,7 @@ const Cf = (e) => e.reduce((i, a) => {
20985
21013
  }, ll = T(Tf), xf = {
20986
21014
  view_transactions: "View Transactions"
20987
21015
  }, If = ({ onBackClick: e, sx: n }) => {
20988
- const { onEvent: i } = X(), { isDesktop: a, isTablet: o, isMobile: r } = pe(), { visibleAccounts: s } = fe(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: d, getCategoryName: _ } = Ve(), { sortedTransactions: u } = Le(), { isCopyLoaded: h, isInitialized: m, selectedAccounts: p, setSelectedAccounts: f } = de(), { trends: E } = x(), [y, S] = g.useState(!1), [I, v] = g.useState(!1), [w, D] = g.useState("Chart"), [R, k] = g.useState(""), [G, O] = g.useState({
21016
+ const { onEvent: i } = $(), { isDesktop: a, isTablet: o, isMobile: r } = pe(), { visibleAccounts: s } = fe(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: d, getCategoryName: _ } = Ve(), { sortedTransactions: u } = Le(), { isCopyLoaded: h, isInitialized: m, selectedAccounts: p, setSelectedAccounts: f } = de(), { trends: E } = x(), [y, S] = g.useState(!1), [w, v] = g.useState(!1), [I, D] = g.useState("Chart"), [R, k] = g.useState(""), [G, O] = g.useState({
20989
21017
  start: Qi(We(It(/* @__PURE__ */ new Date(), 6)), 1),
20990
21018
  end: We(/* @__PURE__ */ new Date())
20991
21019
  });
@@ -21013,7 +21041,7 @@ const Cf = (e) => e.reduce((i, a) => {
21013
21041
  stackedDatasets: B.filter(Oc),
21014
21042
  unstackedDatasets: B.filter(ki)
21015
21043
  };
21016
- }, [d, R, G]), W = g.useMemo(() => {
21044
+ }, [d, R, G]), U = g.useMemo(() => {
21017
21045
  const Ee = re(
21018
21046
  G.start,
21019
21047
  r ? ne.MONTH_SHORT_YEAR : ne.MONTH_YEAR
@@ -21023,24 +21051,24 @@ const Cf = (e) => e.reduce((i, a) => {
21023
21051
  );
21024
21052
  return `${Ee} - ${B}`;
21025
21053
  }, [G, r]), Q = (Ee, B) => {
21026
- D(B ?? w), i(U.TRENDS_CLICK_TOGGLE);
21054
+ D(B ?? I), i(W.TRENDS_CLICK_TOGGLE);
21027
21055
  }, he = (Ee) => {
21028
21056
  const B = Qi(Ee?.[0], 1), ae = Ee?.[1], ke = Bs(ae, B);
21029
- O({ start: B, end: ae }), i(U.TRENDS_CLICK_DATE, {
21057
+ O({ start: B, end: ae }), i(W.TRENDS_CLICK_DATE, {
21030
21058
  time_period: ke + "M"
21031
21059
  });
21032
21060
  }, be = () => {
21033
- i(U.TRENDS_CLICK_FILTER);
21061
+ i(W.TRENDS_CLICK_FILTER);
21034
21062
  }, J = (Ee) => {
21035
21063
  k(Ee);
21036
21064
  }, Ie = (Ee) => {
21037
- k(Ee), i(U.TRENDS_CLICK_LEGEND, { category: _(Ee) });
21065
+ k(Ee), i(W.TRENDS_CLICK_LEGEND, { category: _(Ee) });
21038
21066
  }, Me = (Ee) => {
21039
- i(U.TRENDS_HOVER_LEGEND, { category: _(Ee) });
21067
+ i(W.TRENDS_HOVER_LEGEND, { category: _(Ee) });
21040
21068
  }, me = (Ee) => {
21041
- i(U.TRENDS_HOVER_AREA, { category: Ee });
21069
+ i(W.TRENDS_HOVER_AREA, { category: Ee });
21042
21070
  }, ge = (Ee) => {
21043
- i(U.TRENDS_HOVER_POINT, { category: Ee });
21071
+ i(W.TRENDS_HOVER_POINT, { category: Ee });
21044
21072
  };
21045
21073
  return !h || !m || !y ? /* @__PURE__ */ t(ue, {}) : /* @__PURE__ */ l(
21046
21074
  pt,
@@ -21084,7 +21112,7 @@ const Cf = (e) => e.reduce((i, a) => {
21084
21112
  children: _(R) || E.sub_title
21085
21113
  }
21086
21114
  ),
21087
- /* @__PURE__ */ t(C, { variant: a ? "Body" : "Small", children: W })
21115
+ /* @__PURE__ */ t(C, { variant: a ? "Body" : "Small", children: U })
21088
21116
  ] }),
21089
21117
  /* @__PURE__ */ t(
21090
21118
  ri,
@@ -21092,7 +21120,7 @@ const Cf = (e) => e.reduce((i, a) => {
21092
21120
  exclusive: !0,
21093
21121
  onChange: Q,
21094
21122
  orientation: "horizontal",
21095
- value: w,
21123
+ value: I,
21096
21124
  children: ["Chart", "Table"].map((Ee) => /* @__PURE__ */ t($n, { color: "primary", sx: { width: 56 }, value: Ee, children: Ee === "Chart" ? /* @__PURE__ */ t(V, { name: "table_chart_view" }) : /* @__PURE__ */ t(V, { name: "format_list_bulleted" }) }, Ee))
21097
21125
  }
21098
21126
  )
@@ -21107,7 +21135,7 @@ const Cf = (e) => e.reduce((i, a) => {
21107
21135
  /* @__PURE__ */ t(ee, { onClick: () => v(!0), sx: { px: 5 }, children: `${xf.view_transactions} (${u.length})` })
21108
21136
  ] }),
21109
21137
  /* @__PURE__ */ l(L, { children: [
21110
- w === "Chart" && /* @__PURE__ */ t(
21138
+ I === "Chart" && /* @__PURE__ */ t(
21111
21139
  lc,
21112
21140
  {
21113
21141
  onClickLegend: Ie,
@@ -21118,7 +21146,7 @@ const Cf = (e) => e.reduce((i, a) => {
21118
21146
  unstackedDatasets: M.unstackedDatasets
21119
21147
  }
21120
21148
  ),
21121
- w === "Table" && /* @__PURE__ */ t(
21149
+ I === "Table" && /* @__PURE__ */ t(
21122
21150
  cl,
21123
21151
  {
21124
21152
  monthlyCategoryTotals: d,
@@ -21136,14 +21164,14 @@ const Cf = (e) => e.reduce((i, a) => {
21136
21164
  {
21137
21165
  categoryGuid: R,
21138
21166
  dateRange: G,
21139
- isOpen: I,
21167
+ isOpen: w,
21140
21168
  onClose: () => v(!1)
21141
21169
  }
21142
21170
  )
21143
21171
  ]
21144
21172
  }
21145
21173
  );
21146
- }, MS = T(If), wf = () => {
21174
+ }, M4 = T(If), wf = () => {
21147
21175
  const e = dt(), { monthlyCategoryTotals: n } = Ve(), { trends: i } = x(), a = Bm(n);
21148
21176
  return /* @__PURE__ */ t(
21149
21177
  bo,
@@ -21176,7 +21204,7 @@ const Cf = (e) => e.reduce((i, a) => {
21176
21204
  children: o ? /* @__PURE__ */ t(vf, {}) : /* @__PURE__ */ t(ue, {})
21177
21205
  }
21178
21206
  );
21179
- }, kS = T(Nf), Df = 70, as = ({
21207
+ }, k4 = T(Nf), Df = 70, as = ({
21180
21208
  title: e,
21181
21209
  totalAmount: n,
21182
21210
  transactionType: i,
@@ -21269,32 +21297,40 @@ const Cf = (e) => e.reduce((i, a) => {
21269
21297
  /* @__PURE__ */ t(le, { color: "text.secondary", variant: "subtitle2", children: e.zero_state_content_description })
21270
21298
  ] })
21271
21299
  ] });
21272
- }), GS = T(({ onCtaClick: e }) => {
21273
- const { visibleAccounts: n } = fe(), { monthlyCategoryTotals: i, loadMonthlyCategoryTotals: a, monthlyTotalsLoaded: o } = Ve(), r = {
21300
+ }), G4 = T(({ onCtaClick: e }) => {
21301
+ const { visibleAccounts: n } = fe(), { onEvent: i } = $(), { monthlyCategoryTotals: a, loadMonthlyCategoryTotals: o, monthlyTotalsLoaded: r } = Ve(), s = {
21274
21302
  start: Pd(/* @__PURE__ */ new Date(), 1),
21275
21303
  end: /* @__PURE__ */ new Date()
21276
- }, { trends: s } = x(), { selectedAccounts: c, setSelectedAccounts: d, isInitialized: _ } = de();
21304
+ }, { trends: c } = x(), { selectedAccounts: d, setSelectedAccounts: _, isInitialized: u } = de();
21277
21305
  g.useEffect(() => {
21278
- d(n);
21306
+ _(n);
21279
21307
  }, [n]), g.useEffect(() => {
21280
- _ && a(c, r.start).finally();
21281
- }, [_, c]);
21282
- const { spendingData: u, incomeData: h } = g.useMemo(
21308
+ u && o(d, s.start).then(() => {
21309
+ i(W.TRENDS_LOAD_WIDGET, {
21310
+ state: n?.length ? "default" : "zeroState"
21311
+ });
21312
+ });
21313
+ }, [u, d]);
21314
+ const { spendingData: h, incomeData: m } = g.useMemo(
21283
21315
  () => ({
21284
- spendingData: Bc(i, r),
21285
- incomeData: Gc(i, r)
21316
+ spendingData: Bc(a, s),
21317
+ incomeData: Gc(a, s)
21286
21318
  }),
21287
- [i, r]
21288
- ), [m, p] = u, [f, E] = h, y = Hr(p.y, m.y), S = Hr(E.y, f.y), I = _ && !n?.length;
21289
- return !o || !_ ? /* @__PURE__ */ t(ue, {}) : /* @__PURE__ */ t(
21319
+ [a, s]
21320
+ ), [p, f] = h, [E, y] = m, S = Hr(f.y, p.y), w = Hr(y.y, E.y), v = u && !n?.length, I = () => {
21321
+ i(
21322
+ v ? W.TRENDS_CLICK_GET_STARTED : W.TRENDS_CLICK_VIEW_MORE
21323
+ ), e();
21324
+ };
21325
+ return !r || !u ? /* @__PURE__ */ t(ue, {}) : /* @__PURE__ */ t(
21290
21326
  fa,
21291
21327
  {
21292
21328
  className: "mx-trends-microwidget",
21293
- ctaLabel: s.micro_primary_cta_label,
21294
- onCTAClick: e,
21295
- subHeader: I ? void 0 : s.micro_subheader,
21296
- title: s.title,
21297
- children: I ? /* @__PURE__ */ t(Rf, {}) : /* @__PURE__ */ l(
21329
+ ctaLabel: c.micro_primary_cta_label,
21330
+ onCTAClick: I,
21331
+ subHeader: v ? void 0 : c.micro_subheader,
21332
+ title: c.title,
21333
+ children: v ? /* @__PURE__ */ t(Rf, {}) : /* @__PURE__ */ l(
21298
21334
  b,
21299
21335
  {
21300
21336
  sx: {
@@ -21306,22 +21342,22 @@ const Cf = (e) => e.reduce((i, a) => {
21306
21342
  /* @__PURE__ */ t(
21307
21343
  as,
21308
21344
  {
21309
- percentage: y,
21310
- secondaryLabel: s.micro_secondary_label,
21311
- shouldDisplayPercentage: p.y !== 0 && m.y !== 0,
21312
- title: s.spending_label,
21313
- totalAmount: p.y,
21345
+ percentage: S,
21346
+ secondaryLabel: c.micro_secondary_label,
21347
+ shouldDisplayPercentage: f.y !== 0 && p.y !== 0,
21348
+ title: c.spending_label,
21349
+ totalAmount: f.y,
21314
21350
  transactionType: "spending"
21315
21351
  }
21316
21352
  ),
21317
21353
  /* @__PURE__ */ t(
21318
21354
  as,
21319
21355
  {
21320
- percentage: S,
21321
- secondaryLabel: s.micro_secondary_label,
21322
- shouldDisplayPercentage: E.y !== 0 && f.y !== 0,
21323
- title: s.income_label,
21324
- totalAmount: E.y,
21356
+ percentage: w,
21357
+ secondaryLabel: c.micro_secondary_label,
21358
+ shouldDisplayPercentage: y.y !== 0 && E.y !== 0,
21359
+ title: c.income_label,
21360
+ totalAmount: y.y,
21325
21361
  transactionType: "income"
21326
21362
  }
21327
21363
  )
@@ -21621,7 +21657,7 @@ const Bi = g.createContext(null), Ff = ({
21621
21657
  variant: f,
21622
21658
  widthOverrides: E
21623
21659
  }, y) {
21624
- const [S, I] = g.useState(!1), { cardStyle: v, linkTextStyle: w } = h, D = f ? v : { border: "none", boxShadow: "none", ...v }, R = /* @__PURE__ */ t(
21660
+ const [S, w] = g.useState(!1), { cardStyle: v, linkTextStyle: I } = h, D = f ? v : { border: "none", boxShadow: "none", ...v }, R = /* @__PURE__ */ t(
21625
21661
  le,
21626
21662
  {
21627
21663
  className: "mx-micro-card-description",
@@ -21661,8 +21697,8 @@ const Bi = g.createContext(null), Ff = ({
21661
21697
  "aria-label": i,
21662
21698
  id: "divButton",
21663
21699
  onClick: () => _(),
21664
- onKeyDown: () => I(!1),
21665
- onKeyUp: () => I(!0),
21700
+ onKeyDown: () => w(!1),
21701
+ onKeyUp: () => w(!0),
21666
21702
  ref: y,
21667
21703
  role: "button",
21668
21704
  sx: {
@@ -21724,7 +21760,7 @@ const Bi = g.createContext(null), Ff = ({
21724
21760
  fontSize: 14,
21725
21761
  fontWeight: "bold",
21726
21762
  px: 28,
21727
- ...w
21763
+ ...I
21728
21764
  }),
21729
21765
  children: n
21730
21766
  }
@@ -22636,9 +22672,9 @@ const Bi = g.createContext(null), Ff = ({
22636
22672
  }) => {
22637
22673
  const { ref: p, inView: f } = Hs({
22638
22674
  threshold: Cl
22639
- }), { cardsCopy: E } = Wn(), { onEvent: y } = Hi(), { updateBeat: S, updateOffer: I } = Xf();
22675
+ }), { cardsCopy: E } = Wn(), { onEvent: y } = Hi(), { updateBeat: S, updateOffer: w } = Xf();
22640
22676
  kn(() => {
22641
- f && (i.has_been_displayed ? y(ul(i.template)) : (i.guid.startsWith("OFR") ? I({
22677
+ f && (i.has_been_displayed ? y(ul(i.template)) : (i.guid.startsWith("OFR") ? w({
22642
22678
  ...i,
22643
22679
  has_been_displayed: !0
22644
22680
  }) : S({
@@ -22648,11 +22684,11 @@ const Bi = g.createContext(null), Ff = ({
22648
22684
  }, [f]), kn(() => {
22649
22685
  if (f && i)
22650
22686
  if (i.template === "MarketingOffer") {
22651
- const w = i;
22687
+ const I = i;
22652
22688
  _?.capture("viewed_messaging_insight", {
22653
22689
  template: i.template,
22654
- campaign_guid: w.campaign_guid,
22655
- campaign_name: w.pulse_campaign_name
22690
+ campaign_guid: I.campaign_guid,
22691
+ campaign_name: I.pulse_campaign_name
22656
22692
  });
22657
22693
  } else
22658
22694
  _?.capture("viewed_insight", {
@@ -22663,11 +22699,11 @@ const Bi = g.createContext(null), Ff = ({
22663
22699
  }, [i, s, f]);
22664
22700
  const v = () => {
22665
22701
  if (d && d(i), y(dl(i.template)), i.template === "MarketingOffer") {
22666
- const w = i;
22702
+ const I = i;
22667
22703
  _?.capture("clicked_messaging_insight", {
22668
22704
  template: i.template,
22669
- campaign_guid: w.campaign_guid,
22670
- campaign_name: w.pulse_campaign_name
22705
+ campaign_guid: I.campaign_guid,
22706
+ campaign_name: I.pulse_campaign_name
22671
22707
  });
22672
22708
  } else
22673
22709
  _?.capture("clicked_insight", {
@@ -22812,7 +22848,7 @@ const Bi = g.createContext(null), Ff = ({
22812
22848
  visibleCardsCount: p = 1
22813
22849
  // Default to 1 card visible
22814
22850
  }) => {
22815
- const f = g.useRef(null), E = g.useRef(null), [y, S] = g.useState(0), [I, v] = g.useState(null), [w, D] = g.useState(null), [R, k] = g.useState(null), [G, O] = g.useState(c), { carouselCopy: M } = Wn(), { onEvent: W } = Hi();
22851
+ const f = g.useRef(null), E = g.useRef(null), [y, S] = g.useState(0), [w, v] = g.useState(null), [I, D] = g.useState(null), [R, k] = g.useState(null), [G, O] = g.useState(c), { carouselCopy: M } = Wn(), { onEvent: U } = Hi();
22816
22852
  g.useEffect(() => {
22817
22853
  if (f.current && !e) {
22818
22854
  const B = f.current.offsetWidth, ae = 8;
@@ -22849,13 +22885,13 @@ const Bi = g.createContext(null), Ff = ({
22849
22885
  }
22850
22886
  }, [e, E]);
22851
22887
  const Q = () => {
22852
- W(zt.ON_CAROUSEL_FORWARD_CLICK), f.current && R && f.current.scrollTo({
22888
+ U(zt.ON_CAROUSEL_FORWARD_CLICK), f.current && R && f.current.scrollTo({
22853
22889
  left: y + R + 8,
22854
22890
  top: 0,
22855
22891
  behavior: "smooth"
22856
22892
  });
22857
22893
  }, he = () => {
22858
- W(zt.ON_CAROUSEL_BACK_CLICK), f.current && R && f.current.scrollTo({
22894
+ U(zt.ON_CAROUSEL_BACK_CLICK), f.current && R && f.current.scrollTo({
22859
22895
  left: Math.max(0, y - (R + 8)),
22860
22896
  top: 0,
22861
22897
  behavior: "smooth"
@@ -22863,8 +22899,8 @@ const Bi = g.createContext(null), Ff = ({
22863
22899
  }, be = () => {
22864
22900
  f.current && S(f.current.scrollLeft);
22865
22901
  }, J = () => {
22866
- if (!w || !I) return;
22867
- w - I > qf ? W(zt.ON_CAROUSEL_FORWARD_SWIPE) : W(zt.ON_CAROUSEL_BACK_SWIPE);
22902
+ if (!I || !w) return;
22903
+ I - w > qf ? U(zt.ON_CAROUSEL_FORWARD_SWIPE) : U(zt.ON_CAROUSEL_BACK_SWIPE);
22868
22904
  }, Ie = (B) => {
22869
22905
  v(B.targetTouches[0].clientX);
22870
22906
  }, Me = (B) => {
@@ -23111,7 +23147,7 @@ const Bi = g.createContext(null), Ff = ({
23111
23147
  widthOverrides: _
23112
23148
  }
23113
23149
  );
23114
- }, BS = T(fl), bl = ({
23150
+ }, B4 = T(fl), bl = ({
23115
23151
  ariaLabel: e,
23116
23152
  carouselSize: n,
23117
23153
  heightOverrides: i,
@@ -23153,7 +23189,7 @@ const Bi = g.createContext(null), Ff = ({
23153
23189
  widthOverrides: d
23154
23190
  }
23155
23191
  );
23156
- }, HS = T(bl), a0 = () => /* @__PURE__ */ t(
23192
+ }, H4 = T(bl), a0 = () => /* @__PURE__ */ t(
23157
23193
  L,
23158
23194
  {
23159
23195
  sx: {
@@ -23189,17 +23225,17 @@ const Bi = g.createContext(null), Ff = ({
23189
23225
  showHeader: E,
23190
23226
  showIcon: y,
23191
23227
  showWithMargin: S = !0,
23192
- token: I = "",
23228
+ token: w = "",
23193
23229
  useDarkMode: v,
23194
- userHasFullInsightFeedBeats: w,
23230
+ userHasFullInsightFeedBeats: I,
23195
23231
  variant: D,
23196
23232
  visibleCardsCount: R = 1,
23197
23233
  widthOverrides: k
23198
23234
  }) => {
23199
- const G = dt(), [O, M] = St("STANDARD"), [W, Q] = St(!1), he = Ku([_], gn), be = Yu([u], gn);
23235
+ const G = dt(), [O, M] = St("STANDARD"), [U, Q] = St(!1), he = Ku([_], gn), be = Yu([u], gn);
23200
23236
  g.useEffect(() => {
23201
- gn.isInitialized || gn.initialize(r, I, c);
23202
- }, [r, I, c, gn.isInitialized]), g.useEffect(() => {
23237
+ gn.isInitialized || gn.initialize(r, w, c);
23238
+ }, [r, w, c, gn.isInitialized]), g.useEffect(() => {
23203
23239
  const Me = window.innerHeight;
23204
23240
  Me < 180 ? M("STANDARD") : Me >= 180 && Me < 200 ? M("LARGE") : Me >= 200 && Me < 248 ? M("XLARGE") : Me >= 248 && M("XXLARGE");
23205
23241
  }, [window.innerHeight]), g.useEffect(() => {
@@ -23225,7 +23261,7 @@ const Bi = g.createContext(null), Ff = ({
23225
23261
  /* @__PURE__ */ t(Xd, {}),
23226
23262
  /* @__PURE__ */ t(Ff, { onEvent: he, onPageview: be, store: gn, children: /* @__PURE__ */ l(i0, { heightOverrides: s, widthOverrides: k, children: [
23227
23263
  (n || !gn.isInitialized) && /* @__PURE__ */ t(a0, {}),
23228
- W && E && /* @__PURE__ */ t(
23264
+ U && E && /* @__PURE__ */ t(
23229
23265
  n0,
23230
23266
  {
23231
23267
  clientColorScheme: a,
@@ -23234,7 +23270,7 @@ const Bi = g.createContext(null), Ff = ({
23234
23270
  widthOverrides: k
23235
23271
  }
23236
23272
  ),
23237
- W && !!i.length && /* @__PURE__ */ t(
23273
+ U && !!i.length && /* @__PURE__ */ t(
23238
23274
  e0,
23239
23275
  {
23240
23276
  allowSingleCardPeeking: e,
@@ -23247,8 +23283,8 @@ const Bi = g.createContext(null), Ff = ({
23247
23283
  ...J
23248
23284
  }
23249
23285
  ),
23250
- W && !i.length && w && /* @__PURE__ */ t(fl, { clientColorScheme: a, ...Ie }),
23251
- W && !i.length && !w && /* @__PURE__ */ t(bl, { ...Ie })
23286
+ U && !i.length && I && /* @__PURE__ */ t(fl, { clientColorScheme: a, ...Ie }),
23287
+ U && !i.length && !I && /* @__PURE__ */ t(bl, { ...Ie })
23252
23288
  ] }) })
23253
23289
  ] })
23254
23290
  );
@@ -23302,7 +23338,7 @@ const Bi = g.createContext(null), Ff = ({
23302
23338
  }, [c]);
23303
23339
  const f = g.useMemo(() => {
23304
23340
  if (!_) return [];
23305
- const S = d.map((I) => I.guid);
23341
+ const S = d.map((w) => w.guid);
23306
23342
  return o.getBeatsByCategories(S);
23307
23343
  }, [_, d]), E = (S) => {
23308
23344
  console.log("handleCardClick", S);
@@ -23332,7 +23368,7 @@ const Bi = g.createContext(null), Ff = ({
23332
23368
  }, d0 = T(l0), u0 = {
23333
23369
  view_transactions: "View Transactions"
23334
23370
  }, _0 = ({ onBackClick: e, sx: n }) => {
23335
- const { onEvent: i } = X(), { isLargeDesktop: a, isDesktop: o, isMobile: r } = pe(), { visibleAccounts: s } = fe(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: d, getCategoryName: _ } = Ve(), { sortedTransactions: u } = Le(), { isCopyLoaded: h, isInitialized: m, selectedAccounts: p, setSelectedAccounts: f } = de(), { trends: E } = x(), y = o || a, [S, I] = g.useState(!1), [v, w] = g.useState(!1), [D, R] = g.useState("Chart"), [k, G] = g.useState(""), [O, M] = g.useState({
23371
+ const { onEvent: i } = $(), { isLargeDesktop: a, isDesktop: o, isMobile: r } = pe(), { visibleAccounts: s } = fe(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: d, getCategoryName: _ } = Ve(), { sortedTransactions: u } = Le(), { isCopyLoaded: h, isInitialized: m, selectedAccounts: p, setSelectedAccounts: f } = de(), { trends: E } = x(), y = o || a, [S, w] = g.useState(!1), [v, I] = g.useState(!1), [D, R] = g.useState("Chart"), [k, G] = g.useState(""), [O, M] = g.useState({
23336
23372
  start: Qi(We(It(/* @__PURE__ */ new Date(), 6)), 1),
23337
23373
  end: We(/* @__PURE__ */ new Date())
23338
23374
  });
@@ -23344,10 +23380,10 @@ const Bi = g.createContext(null), Ff = ({
23344
23380
  O.start,
23345
23381
  O.end
23346
23382
  ).finally(() => {
23347
- I(!0);
23383
+ w(!0);
23348
23384
  });
23349
23385
  }, [m, p, O]);
23350
- const W = g.useMemo(() => {
23386
+ const U = g.useMemo(() => {
23351
23387
  if (!S) return { stackedDatasets: [], unstackedDatasets: [] };
23352
23388
  const B = sl(
23353
23389
  d,
@@ -23370,24 +23406,24 @@ const Bi = g.createContext(null), Ff = ({
23370
23406
  );
23371
23407
  return `${B} - ${ae}`;
23372
23408
  }, [O, r]), he = (B, ae) => {
23373
- R(ae ?? D), i(U.TRENDS_CLICK_TOGGLE);
23409
+ R(ae ?? D), i(W.TRENDS_CLICK_TOGGLE);
23374
23410
  }, be = (B) => {
23375
23411
  const ae = Qi(B?.[0], 1), ke = B?.[1], et = Bs(ke, ae);
23376
- M({ start: ae, end: ke }), i(U.TRENDS_CLICK_DATE, {
23412
+ M({ start: ae, end: ke }), i(W.TRENDS_CLICK_DATE, {
23377
23413
  time_period: et + "M"
23378
23414
  });
23379
23415
  }, J = () => {
23380
- i(U.TRENDS_CLICK_FILTER);
23416
+ i(W.TRENDS_CLICK_FILTER);
23381
23417
  }, Ie = (B) => {
23382
23418
  G(B);
23383
23419
  }, Me = (B) => {
23384
- G(B), i(U.TRENDS_CLICK_LEGEND, { category: _(B) });
23420
+ G(B), i(W.TRENDS_CLICK_LEGEND, { category: _(B) });
23385
23421
  }, me = (B) => {
23386
- i(U.TRENDS_HOVER_LEGEND, { category: _(B) });
23422
+ i(W.TRENDS_HOVER_LEGEND, { category: _(B) });
23387
23423
  }, ge = (B) => {
23388
- i(U.TRENDS_HOVER_AREA, { category: B });
23424
+ i(W.TRENDS_HOVER_AREA, { category: B });
23389
23425
  }, Ee = (B) => {
23390
- i(U.TRENDS_HOVER_POINT, { category: B });
23426
+ i(W.TRENDS_HOVER_POINT, { category: B });
23391
23427
  };
23392
23428
  return !h || !m || !S ? /* @__PURE__ */ t(ue, {}) : d.length === 0 ? /* @__PURE__ */ t(
23393
23429
  Kn,
@@ -23460,7 +23496,7 @@ const Bi = g.createContext(null), Ff = ({
23460
23496
  /* @__PURE__ */ t(V, { name: "arrow_back" }),
23461
23497
  E.all_categories
23462
23498
  ] }) }),
23463
- /* @__PURE__ */ t(ee, { onClick: () => w(!0), sx: { px: 5 }, children: `${u0.view_transactions} (${u.length})` })
23499
+ /* @__PURE__ */ t(ee, { onClick: () => I(!0), sx: { px: 5 }, children: `${u0.view_transactions} (${u.length})` })
23464
23500
  ] }),
23465
23501
  /* @__PURE__ */ l(b, { flexDirection: y ? "row" : "column", gap: y ? 48 : 16, children: [
23466
23502
  /* @__PURE__ */ l(L, { sx: { width: y ? "68%" : "100%" }, children: [
@@ -23472,8 +23508,8 @@ const Bi = g.createContext(null), Ff = ({
23472
23508
  onHoverArea: ge,
23473
23509
  onHoverLegend: me,
23474
23510
  onHoverPoint: Ee,
23475
- stackedDatasets: W.stackedDatasets,
23476
- unstackedDatasets: W.unstackedDatasets
23511
+ stackedDatasets: U.stackedDatasets,
23512
+ unstackedDatasets: U.unstackedDatasets
23477
23513
  }
23478
23514
  ),
23479
23515
  D === "Table" && /* @__PURE__ */ t(
@@ -23501,13 +23537,13 @@ const Bi = g.createContext(null), Ff = ({
23501
23537
  categoryGuid: k,
23502
23538
  dateRange: O,
23503
23539
  isOpen: v,
23504
- onClose: () => w(!1)
23540
+ onClose: () => I(!1)
23505
23541
  }
23506
23542
  )
23507
23543
  ]
23508
23544
  }
23509
23545
  );
23510
- }, PS = T(_0);
23546
+ }, P4 = T(_0);
23511
23547
  class h0 {
23512
23548
  globalStore;
23513
23549
  constructor(n) {
@@ -23693,7 +23729,7 @@ class C0 {
23693
23729
  }
23694
23730
  };
23695
23731
  }
23696
- class FS {
23732
+ class F4 {
23697
23733
  // Global properties
23698
23734
  appConfig = is;
23699
23735
  endpoint = "/";
@@ -23760,7 +23796,7 @@ const Ga = ({
23760
23796
  (a) => a.member_guid === i.guid && i.successfully_aggregated_at && a.guid !== n.guid
23761
23797
  );
23762
23798
  }, b0 = () => {
23763
- const [e, n] = g.useState(!1), [i, a] = g.useState(!1), [o, r] = g.useState(!1), [s, c] = g.useState({}), { selectedAccount: d } = Ut(), { mergeAccounts: _, updateAccount: u } = fe(), { accounts: h } = x(), m = f0(), { onEvent: p } = X(), { modifyTransactionByAccountGuid: f } = Le(), E = async (S) => {
23799
+ const [e, n] = g.useState(!1), [i, a] = g.useState(!1), [o, r] = g.useState(!1), [s, c] = g.useState({}), { selectedAccount: d } = Ut(), { mergeAccounts: _, updateAccount: u } = fe(), { accounts: h } = x(), m = f0(), { onEvent: p } = $(), { modifyTransactionByAccountGuid: f } = Le(), E = async (S) => {
23764
23800
  await u({
23765
23801
  ...d,
23766
23802
  ...S
@@ -23776,7 +23812,7 @@ const Ga = ({
23776
23812
  Ga,
23777
23813
  {
23778
23814
  onClick: () => {
23779
- E({ is_hidden: !d.is_hidden }), p(U.ACCOUNT_DETAILS_CLICK_HIDE, { account_guid: d.guid });
23815
+ E({ is_hidden: !d.is_hidden }), p(W.ACCOUNT_DETAILS_CLICK_HIDE, { account_guid: d.guid });
23780
23816
  },
23781
23817
  primaryText: d.is_hidden ? h.unhide_account : h.hide_Account,
23782
23818
  secondaryText: d.is_hidden ? h.include_this_account : h.exclude_this_account,
@@ -23787,7 +23823,7 @@ const Ga = ({
23787
23823
  Ga,
23788
23824
  {
23789
23825
  onClick: () => {
23790
- n(!0), p(U.ACCOUNT_DETAILS_CLICK_MARK_CLOSED, {
23826
+ n(!0), p(W.ACCOUNT_DETAILS_CLICK_MARK_CLOSED, {
23791
23827
  account_guid: d.guid
23792
23828
  });
23793
23829
  },
@@ -23801,7 +23837,7 @@ const Ga = ({
23801
23837
  {
23802
23838
  isLast: !0,
23803
23839
  onClick: () => {
23804
- a(!0), p(U.ACCOUNT_DETAILS_CLICK_MARK_DUPLICATE, {
23840
+ a(!0), p(W.ACCOUNT_DETAILS_CLICK_MARK_DUPLICATE, {
23805
23841
  account_guid: d.guid
23806
23842
  });
23807
23843
  },
@@ -23836,7 +23872,7 @@ const Ga = ({
23836
23872
  onClose: () => a(!1),
23837
23873
  title: h.mark_as_duplicate,
23838
23874
  children: /* @__PURE__ */ t(ie, { children: m.map((S) => {
23839
- const I = m.indexOf(S) === m.length - 1;
23875
+ const w = m.indexOf(S) === m.length - 1;
23840
23876
  return /* @__PURE__ */ l(g.Fragment, { children: [
23841
23877
  /* @__PURE__ */ t(
23842
23878
  wi,
@@ -23847,7 +23883,7 @@ const Ga = ({
23847
23883
  }
23848
23884
  }
23849
23885
  ),
23850
- /* @__PURE__ */ t(ie, { sx: { ml: I ? 0 : 24 } })
23886
+ /* @__PURE__ */ t(ie, { sx: { ml: w ? 0 : 24 } })
23851
23887
  ] }, S.guid);
23852
23888
  }) })
23853
23889
  }
@@ -24201,7 +24237,7 @@ const Ga = ({
24201
24237
  }
24202
24238
  );
24203
24239
  }, T0 = T(A0), x0 = () => {
24204
- const e = window.app?.config, { onEvent: n } = X(), { selectedAccount: i } = Ut(), { accounts: a } = x(), o = sm(i, a), r = i.member_is_managed_by_user || !i.member_is_managed_by_user && e.enable_renaming_home_accounts, [s, c] = g.useState(!1), [d, _] = g.useState(o[0]), u = o.filter(
24240
+ const e = window.app?.config, { onEvent: n } = $(), { selectedAccount: i } = Ut(), { accounts: a } = x(), o = sm(i, a), r = i.member_is_managed_by_user || !i.member_is_managed_by_user && e.enable_renaming_home_accounts, [s, c] = g.useState(!1), [d, _] = g.useState(o[0]), u = o.filter(
24205
24241
  (h) => r || i[h.name] || i[h.name] === 0
24206
24242
  );
24207
24243
  return /* @__PURE__ */ l(Z, { children: [
@@ -24243,8 +24279,8 @@ const Ga = ({
24243
24279
  )
24244
24280
  ] });
24245
24281
  }, I0 = T(x0), w0 = () => {
24246
- const { onEvent: e } = X();
24247
- return g.useEffect(() => e(U.ACCOUNT_DETAILS_VIEW), []), /* @__PURE__ */ l(ie, { children: [
24282
+ const { onEvent: e } = $();
24283
+ return g.useEffect(() => e(W.ACCOUNT_DETAILS_VIEW), []), /* @__PURE__ */ l(ie, { children: [
24248
24284
  /* @__PURE__ */ t(I0, {}),
24249
24285
  /* @__PURE__ */ t(S0, {}),
24250
24286
  /* @__PURE__ */ t(y0, {})
@@ -24306,7 +24342,7 @@ const Ga = ({
24306
24342
  )
24307
24343
  ] });
24308
24344
  }, D0 = T(N0), R0 = () => {
24309
- const [e, n] = g.useState(""), { onEvent: i } = X(), { selectedAccount: a } = Ut(), { accounts: o } = x(), { setFilter: r, sortedTransactions: s } = Le(), c = g.useMemo(
24345
+ const [e, n] = g.useState(""), { onEvent: i } = $(), { selectedAccount: a } = Ut(), { accounts: o } = x(), { setFilter: r, sortedTransactions: s } = Le(), c = g.useMemo(
24310
24346
  () => s.find((d) => d.guid === e),
24311
24347
  [e, s]
24312
24348
  );
@@ -24315,7 +24351,7 @@ const Ga = ({
24315
24351
  dateRange: { start: Fd(Wd(), 90), end: Ud() },
24316
24352
  accounts: [a.guid]
24317
24353
  });
24318
- }, [a]), g.useEffect(() => i(U.ACCOUNT_DETAILS_VIEW_TRANSACTIONS), []), /* @__PURE__ */ l(Z, { children: [
24354
+ }, [a]), g.useEffect(() => i(W.ACCOUNT_DETAILS_VIEW_TRANSACTIONS), []), /* @__PURE__ */ l(Z, { children: [
24319
24355
  /* @__PURE__ */ t(Fn, { onClick: n }),
24320
24356
  c && /* @__PURE__ */ t(
24321
24357
  se,
@@ -24365,7 +24401,7 @@ const Ga = ({
24365
24401
  /* @__PURE__ */ t(Sn, { index: 1, name: "account-details", value: e, children: /* @__PURE__ */ t(v0, {}) })
24366
24402
  ] });
24367
24403
  }, El = T(L0), M0 = () => {
24368
- const [e, n] = g.useState(""), { accounts: i } = x(), { selectedAccounts: a } = de(), { setSelectedAccount: o, setSelectedMember: r } = Ut(), { members: s } = fe(), { onEvent: c } = X(), d = [...new Set(a.map((y) => y.account_type))], _ = a.find((y) => e === y.guid), u = g.useMemo(
24404
+ const [e, n] = g.useState(""), { accounts: i } = x(), { selectedAccounts: a } = de(), { setSelectedAccount: o, setSelectedMember: r } = Ut(), { members: s } = fe(), { onEvent: c } = $(), d = [...new Set(a.map((y) => y.account_type))], _ = a.find((y) => e === y.guid), u = g.useMemo(
24369
24405
  () => a.filter((y) => y.is_hidden),
24370
24406
  [a]
24371
24407
  ), h = g.useMemo(
@@ -24386,12 +24422,12 @@ const Ga = ({
24386
24422
  }
24387
24423
  }, [_, e]);
24388
24424
  const f = (y) => {
24389
- n(y.guid), c(U.ACCOUNTS_CLICK_ACCOUNT, {
24425
+ n(y.guid), c(W.ACCOUNTS_CLICK_ACCOUNT, {
24390
24426
  account_guid: y.guid,
24391
24427
  account_type: y.account_type
24392
24428
  });
24393
24429
  }, E = (y) => {
24394
- const S = y === "hidden" ? u : h, I = y === "hidden" ? m : p, v = y === "hidden" ? i.account_hidden : i.account_closed;
24430
+ const S = y === "hidden" ? u : h, w = y === "hidden" ? m : p, v = y === "hidden" ? i.account_hidden : i.account_closed;
24395
24431
  return /* @__PURE__ */ t(L, { children: /* @__PURE__ */ t(
24396
24432
  ie,
24397
24433
  {
@@ -24404,18 +24440,18 @@ const Ga = ({
24404
24440
  sx: { justifyContent: "space-between", color: "grey.700" },
24405
24441
  children: [
24406
24442
  /* @__PURE__ */ t(C, { bold: !0, variant: "Body", children: v }),
24407
- /* @__PURE__ */ t(C, { bold: !0, variant: "Body", children: P(I, "0,0.00") })
24443
+ /* @__PURE__ */ t(C, { bold: !0, variant: "Body", children: P(w, "0,0.00") })
24408
24444
  ]
24409
24445
  }
24410
24446
  ) }),
24411
- children: /* @__PURE__ */ t(Oe, { children: S.map((w, D, R) => {
24447
+ children: /* @__PURE__ */ t(Oe, { children: S.map((I, D, R) => {
24412
24448
  const k = D === R.length - 1;
24413
24449
  return /* @__PURE__ */ l(g.Fragment, { children: [
24414
24450
  /* @__PURE__ */ t(
24415
24451
  wi,
24416
24452
  {
24417
- account: w,
24418
- onRowClick: () => f(w),
24453
+ account: I,
24454
+ onRowClick: () => f(I),
24419
24455
  shouldShowConnectionStatus: !0
24420
24456
  }
24421
24457
  ),
@@ -24436,7 +24472,7 @@ const Ga = ({
24436
24472
  }
24437
24473
  }
24438
24474
  )
24439
- ] }, w.guid);
24475
+ ] }, I.guid);
24440
24476
  }) })
24441
24477
  }
24442
24478
  ) });
@@ -24445,8 +24481,8 @@ const Ga = ({
24445
24481
  d.map((y) => {
24446
24482
  const S = a.filter(
24447
24483
  (v) => v.account_type === y && !v.is_closed && !v.is_hidden
24448
- ), I = S.reduce(
24449
- (v, w) => (w.balance || 0) + v,
24484
+ ), w = S.reduce(
24485
+ (v, I) => (I.balance || 0) + v,
24450
24486
  0
24451
24487
  );
24452
24488
  return S.length === 0 ? null : /* @__PURE__ */ t(
@@ -24461,12 +24497,12 @@ const Ga = ({
24461
24497
  sx: { display: "flex", justifyContent: "space-between" },
24462
24498
  children: [
24463
24499
  /* @__PURE__ */ t(C, { bold: !0, variant: "Body", children: i.account_types[y] }),
24464
- /* @__PURE__ */ t(C, { bold: !0, variant: "Body", children: P(I, "0,0.00") })
24500
+ /* @__PURE__ */ t(C, { bold: !0, variant: "Body", children: P(w, "0,0.00") })
24465
24501
  ]
24466
24502
  }
24467
24503
  ) }),
24468
24504
  children: /* @__PURE__ */ t(Oe, { children: S.map((v) => {
24469
- const w = a.indexOf(v) === a.length - 1, D = S.indexOf(v) === S.length - 1;
24505
+ const I = a.indexOf(v) === a.length - 1, D = S.indexOf(v) === S.length - 1;
24470
24506
  return /* @__PURE__ */ l(g.Fragment, { children: [
24471
24507
  /* @__PURE__ */ t(
24472
24508
  wi,
@@ -24476,7 +24512,7 @@ const Ga = ({
24476
24512
  shouldShowConnectionStatus: !0
24477
24513
  }
24478
24514
  ),
24479
- (!w || h.length > 0 || u.length > 0) && /* @__PURE__ */ t(
24515
+ (!I || h.length > 0 || u.length > 0) && /* @__PURE__ */ t(
24480
24516
  F,
24481
24517
  {
24482
24518
  sx: {
@@ -24508,14 +24544,14 @@ const Ga = ({
24508
24544
  )
24509
24545
  ] });
24510
24546
  }, k0 = T(M0), G0 = ({ onBackClick: e, sx: n = {} }) => {
24511
- const [i, a] = g.useState(!1), [o, r] = g.useState(!1), { config: s } = Wt(), { accounts: c } = fe(), { accounts: d, connect: _ } = x(), { isCopyLoaded: u, isInitialized: h, setSelectedAccounts: m, selectedAccountGuids: p } = de(), { isDesktop: f } = pe(), { onEvent: E } = X();
24547
+ const [i, a] = g.useState(!1), [o, r] = g.useState(!1), { config: s } = Wt(), { accounts: c } = fe(), { accounts: d, connect: _ } = x(), { isCopyLoaded: u, isInitialized: h, setSelectedAccounts: m, selectedAccountGuids: p } = de(), { isDesktop: f } = pe(), { onEvent: E } = $();
24512
24548
  g.useEffect(() => {
24513
24549
  m(c);
24514
24550
  }, [c]);
24515
24551
  const y = () => {
24516
- a(!0), E(U.ACCOUNTS_CLICK_CONNECT);
24552
+ a(!0), E(W.ACCOUNTS_CLICK_CONNECT);
24517
24553
  }, S = () => {
24518
- r(!0), E(U.ACCOUNTS_CLICK_CONNECT);
24554
+ r(!0), E(W.ACCOUNTS_CLICK_CONNECT);
24519
24555
  };
24520
24556
  return u ? /* @__PURE__ */ t(
24521
24557
  pt,
@@ -24529,7 +24565,7 @@ const Ga = ({
24529
24565
  onClick: S
24530
24566
  }
24531
24567
  ] : [],
24532
- onAccountsFilterClick: () => E(U.ACCOUNTS_CLICK_FILTER),
24568
+ onAccountsFilterClick: () => E(W.ACCOUNTS_CLICK_FILTER),
24533
24569
  onBackClick: e,
24534
24570
  sx: n,
24535
24571
  title: d.title,
@@ -24557,7 +24593,7 @@ const Ga = ({
24557
24593
  ] }) : /* @__PURE__ */ t(ue, {})
24558
24594
  }
24559
24595
  ) : /* @__PURE__ */ t(ue, {});
24560
- }, WS = T(G0), B0 = ({ onPrimaryCtaClick: e, sx: n }) => {
24596
+ }, W4 = T(G0), B0 = ({ onPrimaryCtaClick: e, sx: n }) => {
24561
24597
  const { visibleAccounts: i } = fe(), { accounts: a } = x(), { isCopyLoaded: o, isInitialized: r, selectedAccounts: s, setSelectedAccounts: c } = de();
24562
24598
  return g.useEffect(() => {
24563
24599
  c(i);
@@ -24588,7 +24624,7 @@ const Ga = ({
24588
24624
  ] }) : /* @__PURE__ */ t(ue, {})
24589
24625
  }
24590
24626
  ) : /* @__PURE__ */ t(ue, {});
24591
- }, US = T(B0), H0 = () => /* @__PURE__ */ l(
24627
+ }, U4 = T(B0), H0 = () => /* @__PURE__ */ l(
24592
24628
  "svg",
24593
24629
  {
24594
24630
  fill: "none",
@@ -25073,7 +25109,7 @@ const Ga = ({
25073
25109
  ]
25074
25110
  }
25075
25111
  ) : /* @__PURE__ */ t(ue, {});
25076
- }, VS = T(W0);
25112
+ }, V4 = T(W0);
25077
25113
  class _s {
25078
25114
  fetchInstance;
25079
25115
  constructor(n, i) {
@@ -25351,7 +25387,7 @@ const K0 = () => {
25351
25387
  }
25352
25388
  );
25353
25389
  }, j0 = T(z0), $0 = () => {
25354
- const { onEvent: e } = X(), n = Ce(), {
25390
+ const { onEvent: e } = $(), n = Ce(), {
25355
25391
  surveyId: i,
25356
25392
  question: a,
25357
25393
  isLastQuestion: o,
@@ -25370,20 +25406,20 @@ const K0 = () => {
25370
25406
  $survey_id: i
25371
25407
  });
25372
25408
  }, [h]);
25373
- const I = () => {
25409
+ const w = () => {
25374
25410
  e("survey dismissed", {
25375
25411
  $survey_id: i
25376
25412
  }), u(), S(!1);
25377
25413
  }, v = () => {
25378
25414
  r();
25379
- }, w = () => {
25415
+ }, I = () => {
25380
25416
  e("survey sent", _), u(), S(!0);
25381
25417
  };
25382
25418
  return f ? !a && !y ? null : /* @__PURE__ */ l(
25383
25419
  Pn,
25384
25420
  {
25385
25421
  closeLabel: p.close_aria,
25386
- onClose: I,
25422
+ onClose: w,
25387
25423
  sx: {
25388
25424
  "& .MuiCardHeader-root": {
25389
25425
  px: 24,
@@ -25412,7 +25448,7 @@ const K0 = () => {
25412
25448
  ee,
25413
25449
  {
25414
25450
  disabled: !o && !d,
25415
- onClick: o ? w : v,
25451
+ onClick: o ? I : v,
25416
25452
  sx: {
25417
25453
  borderColor: n.palette.border.light,
25418
25454
  "&:hover": {
@@ -25433,7 +25469,7 @@ const K0 = () => {
25433
25469
  ]
25434
25470
  }
25435
25471
  ) : /* @__PURE__ */ t(ue, {});
25436
- }, KS = T($0), hs = 5, X0 = 100, q0 = 25, Z0 = (e) => {
25472
+ }, K4 = T($0), hs = 5, X0 = 100, q0 = 25, Z0 = (e) => {
25437
25473
  const n = (o) => {
25438
25474
  o.active || e.alphaTarget(0.3).restart(), o.subject.fx = o.subject.x, o.subject.fy = o.subject.y;
25439
25475
  }, i = (o) => {
@@ -25680,13 +25716,13 @@ const rb = ({
25680
25716
  shouldShowZeroState: o,
25681
25717
  unavailableWidth: r = 24
25682
25718
  }) => {
25683
- const { onEvent: s } = X(), { setSelectedBudget: c } = gt(), { isLoadingCategoryTotals: d } = Ve(), { isInitialized: _ } = de(), { accounts: u } = x(), { availableWidth: h } = wn(), { isMobile: m } = pe(), [p, f] = g.useState(!1), E = g.useMemo(() => h - r, [h]), y = (I) => {
25684
- c(I), s(U.BUDGETS_CLICK_BUDGET_CATEGORY, {
25685
- budget_category: I.category.name,
25719
+ const { onEvent: s } = $(), { setSelectedBudget: c } = gt(), { isLoadingCategoryTotals: d } = Ve(), { isInitialized: _ } = de(), { accounts: u } = x(), { availableWidth: h } = wn(), { isMobile: m } = pe(), [p, f] = g.useState(!1), E = g.useMemo(() => h - r, [h]), y = (w) => {
25720
+ c(w), s(W.BUDGETS_CLICK_BUDGET_CATEGORY, {
25721
+ budget_category: w.category.name,
25686
25722
  click_type: "bubble"
25687
25723
  });
25688
25724
  }, S = () => {
25689
- f(!0), s(U.ACCOUNTS_CLICK_CONNECT);
25725
+ f(!0), s(W.ACCOUNTS_CLICK_CONNECT);
25690
25726
  };
25691
25727
  return d ? /* @__PURE__ */ t(b, { alignItems: "center", height: n, justifyContent: "center", width: Math.abs(E), children: /* @__PURE__ */ t(ue, {}) }) : /* @__PURE__ */ l(L, { ml: o || m ? 0 : 24, sx: { alignSelf: "center" }, children: [
25692
25728
  o || !_ ? /* @__PURE__ */ t(
@@ -25844,9 +25880,9 @@ const rb = ({
25844
25880
  /* @__PURE__ */ t(ub, { onRecalculateBudgets: e })
25845
25881
  ] });
25846
25882
  }), hb = (e) => {
25847
- const n = Ce(), { onEvent: i } = X(), { detailedBudgets: a, isDataLoaded: o, loadBudgetData: r, setTheme: s } = gt(), { budgets: c, common: d } = x(), { isCopyLoaded: _, isInitialized: u, selectedAccounts: h } = de(), { reloadCategoryTotals: m } = Ve(), p = k_(), f = a.length === 0, [E, y] = g.useState(!1), S = () => {
25848
- y(!0), i(U.BUDGETS_CLICK_ADD);
25849
- }, I = () => {
25883
+ const n = Ce(), { onEvent: i } = $(), { detailedBudgets: a, isDataLoaded: o, loadBudgetData: r, setTheme: s } = gt(), { budgets: c, common: d } = x(), { isCopyLoaded: _, isInitialized: u, selectedAccounts: h } = de(), { reloadCategoryTotals: m } = Ve(), p = k_(), f = a.length === 0, [E, y] = g.useState(!1), S = () => {
25884
+ y(!0), i(W.BUDGETS_CLICK_ADD);
25885
+ }, w = () => {
25850
25886
  y(!1);
25851
25887
  };
25852
25888
  return g.useEffect(() => {
@@ -25886,13 +25922,13 @@ const rb = ({
25886
25922
  isOpen: E,
25887
25923
  onClose: () => y(!1),
25888
25924
  title: c.add_new_title,
25889
- children: /* @__PURE__ */ t(Al, { onRecalculateBudgets: I })
25925
+ children: /* @__PURE__ */ t(Al, { onRecalculateBudgets: w })
25890
25926
  }
25891
25927
  )
25892
25928
  ]
25893
25929
  }
25894
25930
  ) : /* @__PURE__ */ t(ue, {});
25895
- }, YS = T(hb), Tl = ({ budget: e }) => {
25931
+ }, Y4 = T(hb), Tl = ({ budget: e }) => {
25896
25932
  const {
25897
25933
  amount: n,
25898
25934
  budgetColors: { background: i },
@@ -25944,8 +25980,8 @@ const rb = ({
25944
25980
  const { budgets: i, common: a } = x(), { setExpandedGuid: o, setOnSelect: r } = _n(), { addBudget: s } = gt(), [c, d] = g.useState(!1), [_, u] = g.useState(!1), [h, m] = g.useState(""), [p, f] = g.useState(void 0);
25945
25981
  g.useEffect(() => {
25946
25982
  r((S) => {
25947
- const I = e.subCategories.find((v) => v.guid === S);
25948
- I && (f(I), m(`${I.currentAmount === 0 ? "" : I.currentAmount}`), u(!0));
25983
+ const w = e.subCategories.find((v) => v.guid === S);
25984
+ w && (f(w), m(`${w.currentAmount === 0 ? "" : w.currentAmount}`), u(!0));
25949
25985
  });
25950
25986
  }, []);
25951
25987
  const E = () => {
@@ -25997,7 +26033,7 @@ const rb = ({
25997
26033
  g.useEffect(() => {
25998
26034
  s && (y(`${s.amount}`), u({
25999
26035
  ..._,
26000
- custom: (w) => w.category_guid === s.category_guid
26036
+ custom: (I) => I.category_guid === s.category_guid
26001
26037
  }));
26002
26038
  }, [s]);
26003
26039
  const S = async () => {
@@ -26005,20 +26041,20 @@ const rb = ({
26005
26041
  ...s,
26006
26042
  amount: Number(E)
26007
26043
  });
26008
- }, I = async () => {
26044
+ }, w = async () => {
26009
26045
  s && await r(s.guid), f(!1), v();
26010
26046
  }, v = () => {
26011
26047
  u({
26012
26048
  ..._,
26013
- custom: (w) => w.category_guid === e.category_guid || w.top_level_category_guid === e.category_guid
26049
+ custom: (I) => I.category_guid === e.category_guid || I.top_level_category_guid === e.category_guid
26014
26050
  }), c(void 0);
26015
26051
  };
26016
26052
  return /* @__PURE__ */ l(g.Fragment, { children: [
26017
26053
  /* @__PURE__ */ l(ie, { sx: { bgcolor: "background.paper" }, children: [
26018
- i.length === 0 ? /* @__PURE__ */ t(gb, {}) : i.map((w) => /* @__PURE__ */ l(g.Fragment, { children: [
26019
- /* @__PURE__ */ t(mb, { budget: w }),
26054
+ i.length === 0 ? /* @__PURE__ */ t(gb, {}) : i.map((I) => /* @__PURE__ */ l(g.Fragment, { children: [
26055
+ /* @__PURE__ */ t(mb, { budget: I }),
26020
26056
  /* @__PURE__ */ t(F, {})
26021
- ] }, w.guid)),
26057
+ ] }, I.guid)),
26022
26058
  /* @__PURE__ */ t(pb, { category: n, parentBudget: e })
26023
26059
  ] }),
26024
26060
  /* @__PURE__ */ t(
@@ -26064,7 +26100,7 @@ const rb = ({
26064
26100
  copy: { close_aria: o.close_aria, title: a.delete_title },
26065
26101
  isOpen: p,
26066
26102
  onClose: () => f(!1),
26067
- onPrimaryAction: I,
26103
+ onPrimaryAction: w,
26068
26104
  primaryColor: "error",
26069
26105
  primaryText: "Delete",
26070
26106
  secondaryColor: "secondary",
@@ -26079,9 +26115,9 @@ const rb = ({
26079
26115
  sortedTransactionsWithSplits: d,
26080
26116
  tags: _
26081
26117
  } = Le(), [u, h] = g.useState(0), [m, p] = g.useState(""), f = g.useMemo(
26082
- () => c.find((I) => I.guid === m),
26118
+ () => c.find((w) => w.guid === m),
26083
26119
  [m, c]
26084
- ), E = (I, v) => {
26120
+ ), E = (w, v) => {
26085
26121
  h(v);
26086
26122
  }, y = () => {
26087
26123
  _c(d, _), i(a.alert_csv_downloaded);
@@ -26137,9 +26173,9 @@ const rb = ({
26137
26173
  setAlert: c,
26138
26174
  setSelectedBudget: d,
26139
26175
  updateBudget: _
26140
- } = gt(), { setFilter: u } = Le(), [h, m] = g.useState(!1), [p, f] = g.useState(!1), [E, y] = g.useState(!1), [S, I] = g.useState("");
26176
+ } = gt(), { setFilter: u } = Le(), [h, m] = g.useState(!1), [p, f] = g.useState(!1), [E, y] = g.useState(!1), [S, w] = g.useState("");
26141
26177
  g.useEffect(() => {
26142
- r && !s && (I(`${r.amount}`), m(!0), u({
26178
+ r && !s && (w(`${r.amount}`), m(!0), u({
26143
26179
  accounts: e,
26144
26180
  dateRange: a,
26145
26181
  custom: (R) => R.category_guid === r.category_guid || R.top_level_category_guid === r.category_guid
@@ -26151,7 +26187,7 @@ const rb = ({
26151
26187
  amount: Number(S),
26152
26188
  percentage: r.category.totalAmount / Number(S) * 100
26153
26189
  }), c(A(n.alert_budget_updated, r.category.name)));
26154
- }, w = async () => {
26190
+ }, I = async () => {
26155
26191
  r && (await o(r.guid), c(A(n.alert_budget_deleted, r.category.name))), y(!1), D();
26156
26192
  }, D = () => {
26157
26193
  m(!1), setTimeout(() => {
@@ -26189,7 +26225,7 @@ const rb = ({
26189
26225
  {
26190
26226
  amount: S,
26191
26227
  categoryName: r.category.name,
26192
- onAmountChanged: I
26228
+ onAmountChanged: w
26193
26229
  }
26194
26230
  )
26195
26231
  }
@@ -26200,7 +26236,7 @@ const rb = ({
26200
26236
  copy: { close_aria: i.close_aria, title: n.delete_title },
26201
26237
  isOpen: E,
26202
26238
  onClose: () => y(!1),
26203
- onPrimaryAction: w,
26239
+ onPrimaryAction: I,
26204
26240
  primaryColor: "error",
26205
26241
  primaryText: n.details_delete_button,
26206
26242
  secondaryColor: "secondary",
@@ -26238,8 +26274,8 @@ const rb = ({
26238
26274
  )
26239
26275
  ] }) });
26240
26276
  }, Eb = T(() => {
26241
- const { onEvent: e } = X(), { budgets: n } = x(), { detailedBudgets: i, setSelectedBudget: a } = gt(), o = (r) => {
26242
- a(r), e(U.BUDGETS_CLICK_BUDGET_CATEGORY, {
26277
+ const { onEvent: e } = $(), { budgets: n } = x(), { detailedBudgets: i, setSelectedBudget: a } = gt(), o = (r) => {
26278
+ a(r), e(W.BUDGETS_CLICK_BUDGET_CATEGORY, {
26243
26279
  budget_category: r.category.name,
26244
26280
  click_type: "list"
26245
26281
  });
@@ -26252,16 +26288,16 @@ const rb = ({
26252
26288
  ] }, r.guid)) }) })
26253
26289
  ] });
26254
26290
  }), Sb = T(() => {
26255
- const e = Ce(), { onEvent: n } = X(), { visibleAccounts: i } = fe(), { budgets: a, common: o, recurring: r } = x(), { incomeCategories: s, spendCategories: c } = Ve(), { detailedBudgets: d, totalBudgeted: _ } = gt(), { incomeTotal: u } = at(), { setFilter: h } = Le(), [m, p] = g.useState(!1), [f, E] = g.useMemo(() => {
26291
+ const e = Ce(), { onEvent: n } = $(), { visibleAccounts: i } = fe(), { budgets: a, common: o, recurring: r } = x(), { incomeCategories: s, spendCategories: c } = Ve(), { detailedBudgets: d, totalBudgeted: _ } = gt(), { incomeTotal: u } = at(), { setFilter: h } = Le(), [m, p] = g.useState(!1), [f, E] = g.useMemo(() => {
26256
26292
  const v = c.reduce((k, G) => k + G.totalAmount, 0);
26257
- let w = v / _;
26258
- w > 1 && (w = 1);
26293
+ let I = v / _;
26294
+ I > 1 && (I = 1);
26259
26295
  let D = e.palette.success.main;
26260
- w > 0.8 && w < 1 ? D = e.palette.warning.main : w >= 1 && (D = e.palette.error.main);
26296
+ I > 0.8 && I < 1 ? D = e.palette.warning.main : I >= 1 && (D = e.palette.error.main);
26261
26297
  const R = [
26262
26298
  {
26263
26299
  color: D,
26264
- percentage: `${w}`
26300
+ percentage: `${I}`
26265
26301
  }
26266
26302
  ];
26267
26303
  return [v, R];
@@ -26269,23 +26305,23 @@ const rb = ({
26269
26305
  const v = Math.abs(
26270
26306
  s.reduce((R, k) => R + k.totalAmount, 0)
26271
26307
  );
26272
- let w = v / u;
26273
- w > 1 && (w = 1);
26308
+ let I = v / u;
26309
+ I > 1 && (I = 1);
26274
26310
  const D = [
26275
26311
  {
26276
26312
  color: e.palette.secondary.main,
26277
- percentage: `${w}`
26313
+ percentage: `${I}`
26278
26314
  }
26279
26315
  ];
26280
26316
  return [v, D];
26281
- }, [s, u]), I = () => {
26317
+ }, [s, u]), w = () => {
26282
26318
  h({
26283
26319
  accounts: i.map((v) => v.guid),
26284
26320
  dateRange: {
26285
26321
  start: vt(/* @__PURE__ */ new Date(), 90),
26286
26322
  end: /* @__PURE__ */ new Date()
26287
26323
  }
26288
- }), p(!0), n(U.BUDGETS_CLICK_EDIT_INCOME);
26324
+ }), p(!0), n(W.BUDGETS_CLICK_EDIT_INCOME);
26289
26325
  };
26290
26326
  return /* @__PURE__ */ l(yt, { elevation: 2, sx: { overflow: "visible" }, children: [
26291
26327
  /* @__PURE__ */ t(un, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ t(rt, { children: a.overview_title }) }),
@@ -26306,7 +26342,7 @@ const rb = ({
26306
26342
  Fe,
26307
26343
  {
26308
26344
  "aria-label": r.manage_income,
26309
- onClick: I,
26345
+ onClick: w,
26310
26346
  sx: { p: 0 },
26311
26347
  children: /* @__PURE__ */ t(V, { color: "primary", name: "edit" })
26312
26348
  }
@@ -26334,30 +26370,30 @@ const rb = ({
26334
26370
  }
26335
26371
  )
26336
26372
  ] });
26337
- }), ms = 480, zS = T(({ onBackClick: e, sx: n }) => {
26338
- const i = Ce(), { onEvent: a } = X(), { visibleAccounts: o } = fe(), { budgets: r, common: s } = x(), { isCopyLoaded: c, isInitialized: d, selectedAccounts: _, setDisplayedDate: u, setSelectedAccounts: h } = de(), {
26373
+ }), ms = 480, z4 = T(({ onBackClick: e, sx: n }) => {
26374
+ const i = Ce(), { onEvent: a } = $(), { visibleAccounts: o } = fe(), { budgets: r, common: s } = x(), { isCopyLoaded: c, isInitialized: d, selectedAccounts: _, setDisplayedDate: u, setSelectedAccounts: h } = de(), {
26339
26375
  alert: m,
26340
26376
  dateRange: p,
26341
26377
  isDataLoaded: f,
26342
26378
  loadBudgetData: E,
26343
26379
  setDateRange: y,
26344
26380
  setAlert: S,
26345
- setTheme: I,
26381
+ setTheme: w,
26346
26382
  detailedBudgets: v
26347
- } = gt(), { loadRepeatingTransactions: w, setDateRange: D } = at(), { reloadCategoryTotals: R } = Ve(), { isSmallTablet: k, isMobile: G, isSmallMobile: O } = pe(), M = k || G || O, [W, Q] = g.useState(!1);
26383
+ } = gt(), { loadRepeatingTransactions: I, setDateRange: D } = at(), { reloadCategoryTotals: R } = Ve(), { isSmallTablet: k, isMobile: G, isSmallMobile: O } = pe(), M = k || G || O, [U, Q] = g.useState(!1);
26348
26384
  g.useEffect(() => {
26349
- I(i), h(o), u(p.start, p.end), a(U.BUDGETS_VIEW);
26385
+ w(i), h(o), u(p.start, p.end), a(W.BUDGETS_VIEW);
26350
26386
  }, []), g.useEffect(() => {
26351
26387
  h(o);
26352
26388
  }, [o]), g.useEffect(() => {
26353
- d && (R(_, p.start, p.end).finally(), D(p), f || (w().finally(), E().finally()));
26389
+ d && (R(_, p.start, p.end).finally(), D(p), f || (I().finally(), E().finally()));
26354
26390
  }, [d, _, p]);
26355
26391
  const he = (me) => {
26356
26392
  y({ start: me[0] || /* @__PURE__ */ new Date(), end: me[1] || /* @__PURE__ */ new Date() });
26357
26393
  }, be = () => {
26358
- a(U.BUDGETS_CLICK_FILTER);
26394
+ a(W.BUDGETS_CLICK_FILTER);
26359
26395
  }, J = () => {
26360
- Q(!0), a(U.BUDGETS_CLICK_ADD);
26396
+ Q(!0), a(W.BUDGETS_CLICK_ADD);
26361
26397
  }, Ie = () => {
26362
26398
  Q(!1);
26363
26399
  }, Me = nn(p.end, ze(/* @__PURE__ */ new Date()));
@@ -26418,7 +26454,7 @@ const rb = ({
26418
26454
  se,
26419
26455
  {
26420
26456
  ariaLabelClose: s.close_aria,
26421
- isOpen: W,
26457
+ isOpen: U,
26422
26458
  onClose: () => Q(!1),
26423
26459
  title: r.add_new_title,
26424
26460
  children: /* @__PURE__ */ t(Al, { onRecalculateBudgets: Ie })
@@ -26607,8 +26643,8 @@ const vb = ({ widgets: e, isLoading: n }) => {
26607
26643
  /* @__PURE__ */ t(pn, { height: 300, variant: "rounded", width: "100%" })
26608
26644
  ] }) : /* @__PURE__ */ t(b, { direction: "column", spacing: 24, children: _.map((u) => /* @__PURE__ */ t(g.Fragment, { children: u.component }, u.index)) }) })
26609
26645
  ] });
26610
- }, jS = T(vb), Ko = ({ sx: e = {} }) => {
26611
- const { investments: n } = x(), { onEvent: i } = X(), { setShowConnectionsWidget: a } = Yn();
26646
+ }, j4 = T(vb), Ko = ({ sx: e = {} }) => {
26647
+ const { investments: n } = x(), { onEvent: i } = $(), { setShowConnectionsWidget: a } = Yn();
26612
26648
  return /* @__PURE__ */ l(b, { sx: { alignItems: "center", gap: 24, height: 164, p: 24, width: "100%", ...e }, children: [
26613
26649
  /* @__PURE__ */ l(
26614
26650
  b,
@@ -26641,7 +26677,7 @@ const vb = ({ widgets: e, isLoading: n }) => {
26641
26677
  ee,
26642
26678
  {
26643
26679
  onClick: () => {
26644
- a(!0), i(U.ACCOUNTS_CLICK_CONNECT);
26680
+ a(!0), i(W.ACCOUNTS_CLICK_CONNECT);
26645
26681
  },
26646
26682
  sx: { fontWeight: 600 },
26647
26683
  variant: "outlined",
@@ -26732,10 +26768,10 @@ const vb = ({ widgets: e, isLoading: n }) => {
26732
26768
  (v) => !!v[f.name]
26733
26769
  );
26734
26770
  let S = y.reduce(
26735
- (v, w) => v + zi(w) * w[f.name] / 100,
26771
+ (v, I) => v + zi(I) * I[f.name] / 100,
26736
26772
  0
26737
26773
  );
26738
- const I = Ob(
26774
+ const w = Ob(
26739
26775
  y,
26740
26776
  f.name,
26741
26777
  S
@@ -26748,13 +26784,13 @@ const vb = ({ widgets: e, isLoading: n }) => {
26748
26784
  value: d,
26749
26785
  percentage: d / m
26750
26786
  };
26751
- I.push(v);
26787
+ w.push(v);
26752
26788
  }
26753
26789
  S > 0 && (o.push({
26754
26790
  name: f.name,
26755
26791
  displayName: a[E],
26756
26792
  guid: `${f.name}-${E}`,
26757
- holdings: I,
26793
+ holdings: w,
26758
26794
  percentage: S / m,
26759
26795
  value: S,
26760
26796
  color: Nb[f.name]
@@ -26894,7 +26930,7 @@ const vb = ({ widgets: e, isLoading: n }) => {
26894
26930
  totalLabel: d
26895
26931
  }) => {
26896
26932
  const _ = Ce(), u = _.palette.mode === "dark", h = g.useMemo(
26897
- () => s ? e.investmentsData.find(({ guid: I }) => I === s) : void 0,
26933
+ () => s ? e.investmentsData.find(({ guid: w }) => w === s) : void 0,
26898
26934
  [s]
26899
26935
  ), {
26900
26936
  investments: { allocation: m }
@@ -27156,17 +27192,17 @@ const vb = ({ widgets: e, isLoading: n }) => {
27156
27192
  }
27157
27193
  ),
27158
27194
  n.map((p, f, E) => /* @__PURE__ */ t(b, { sx: { flexDirection: "row", gap: 4 }, children: p.map((y, S) => {
27159
- const I = f === 0, v = f === E.length - 1, w = S === 0, D = S === p.length - 1, R = Number(y.replace("%", "")) >= 25;
27195
+ const w = f === 0, v = f === E.length - 1, I = S === 0, D = S === p.length - 1, R = Number(y.replace("%", "")) >= 25;
27160
27196
  let k = "grey.200", G = "grey.900";
27161
27197
  return d ? (k = R ? "grey.200" : "grey.700", G = R ? "grey.900" : "common.white") : (k = R ? "grey.700" : "grey.200", G = R ? "common.white" : "grey.900"), /* @__PURE__ */ t(
27162
27198
  b,
27163
27199
  {
27164
27200
  sx: {
27165
27201
  ...{
27166
- borderBottomLeftRadius: v && w ? 4 : 0,
27202
+ borderBottomLeftRadius: v && I ? 4 : 0,
27167
27203
  borderBottomRightRadius: v && D ? 4 : 0,
27168
- borderTopLeftRadius: I && w ? 4 : 0,
27169
- borderTopRightRadius: I && D ? 4 : 0
27204
+ borderTopLeftRadius: w && I ? 4 : 0,
27205
+ borderTopRightRadius: w && D ? 4 : 0
27170
27206
  },
27171
27207
  alignItems: "center",
27172
27208
  bgcolor: k,
@@ -27699,14 +27735,14 @@ const vb = ({ widgets: e, isLoading: n }) => {
27699
27735
  const { isMobile: e } = pe(), [n, i] = St({}), [a, o] = St(!1), { selectedAccountGuids: r } = de(), { visibleHoldings: s, updateHoldings: c } = Yn(), [d, _] = g.useState(!1), [u, h] = St({
27700
27736
  accounts: [],
27701
27737
  holdings: []
27702
- }), { accounts: m, investments: p } = x(), { isCopyLoaded: f } = de(), [E, y] = St(null), [S, I] = St(""), w = Ce().palette.mode === "dark", D = w ? "#0AC295" : "#09A57F", R = w ? "grey.300" : "grey.700", k = (B, ae = "lesserThan") => ae === "greaterThan" ? B >= 0 ? D : R : B <= 0 ? R : D, G = (B, ae) => {
27703
- y(B), I(ae.toFixed(2));
27738
+ }), { accounts: m, investments: p } = x(), { isCopyLoaded: f } = de(), [E, y] = St(null), [S, w] = St(""), I = Ce().palette.mode === "dark", D = I ? "#0AC295" : "#09A57F", R = I ? "grey.300" : "grey.700", k = (B, ae = "lesserThan") => ae === "greaterThan" ? B >= 0 ? D : R : B <= 0 ? R : D, G = (B, ae) => {
27739
+ y(B), w(ae.toFixed(2));
27704
27740
  }, O = (B) => {
27705
27741
  const ae = B.target.value;
27706
- /^\d*\.?\d*$/.test(ae) && I(ae);
27742
+ /^\d*\.?\d*$/.test(ae) && w(ae);
27707
27743
  }, M = (B, ae) => {
27708
- B.key === "Enter" ? W(ae) : B.key === "Escape" && y(null);
27709
- }, W = (B) => {
27744
+ B.key === "Enter" ? U(ae) : B.key === "Escape" && y(null);
27745
+ }, U = (B) => {
27710
27746
  const ae = s.find(({ guid: et }) => et === B);
27711
27747
  if (!ae) return;
27712
27748
  const ke = Number(S);
@@ -27950,7 +27986,7 @@ const vb = ({ widgets: e, isLoading: n }) => {
27950
27986
  },
27951
27987
  B.guid
27952
27988
  );
27953
- const Ke = w ? "grey.700" : "grey.400", Ht = ae.length ? "text.primary" : Ke;
27989
+ const Ke = I ? "grey.700" : "grey.400", Ht = ae.length ? "text.primary" : Ke;
27954
27990
  return /* @__PURE__ */ l(
27955
27991
  Ri,
27956
27992
  {
@@ -28079,7 +28115,7 @@ const vb = ({ widgets: e, isLoading: n }) => {
28079
28115
  currentEditedCostBasis: S,
28080
28116
  data: ae,
28081
28117
  editingHoldingId: E,
28082
- handleCostBasisBlur: W,
28118
+ handleCostBasisBlur: U,
28083
28119
  handleCostBasisChange: O,
28084
28120
  handleCostBasisClick: G,
28085
28121
  handleCostBasisKeyDown: M
@@ -28097,7 +28133,7 @@ const vb = ({ widgets: e, isLoading: n }) => {
28097
28133
  accountHoldingsData: u,
28098
28134
  currentEditedCostBasis: S,
28099
28135
  editingHoldingId: E,
28100
- handleCostBasisBlur: W,
28136
+ handleCostBasisBlur: U,
28101
28137
  handleCostBasisChange: O,
28102
28138
  handleCostBasisClick: G,
28103
28139
  handleCostBasisKeyDown: M,
@@ -28114,8 +28150,8 @@ const vb = ({ widgets: e, isLoading: n }) => {
28114
28150
  }
28115
28151
  )
28116
28152
  ] }) : /* @__PURE__ */ t(ue, {});
28117
- }, jb = T(zb), $b = ({ title: e }) => /* @__PURE__ */ t(C, { bold: !0, variant: "Body", children: e }), $S = T(({ onBackClick: e, sx: n }) => {
28118
- const { onEvent: i } = X(), { isMobile: a } = pe(), { visibleInvestmentAccounts: o } = fe(), {
28153
+ }, jb = T(zb), $b = ({ title: e }) => /* @__PURE__ */ t(C, { bold: !0, variant: "Body", children: e }), $4 = T(({ onBackClick: e, sx: n }) => {
28154
+ const { onEvent: i } = $(), { isMobile: a } = pe(), { visibleInvestmentAccounts: o } = fe(), {
28119
28155
  visibleHoldings: r,
28120
28156
  setShowConnectionsWidget: s,
28121
28157
  showConnectionsWidget: c
@@ -28126,14 +28162,14 @@ const vb = ({ widgets: e, isLoading: n }) => {
28126
28162
  h && E().finally();
28127
28163
  }, [h]);
28128
28164
  const y = () => {
28129
- i(U.INVESTMENT_WIDGET_ACCOUNT_FILTER_CLICK);
28165
+ i(W.INVESTMENT_WIDGET_ACCOUNT_FILTER_CLICK);
28130
28166
  };
28131
28167
  if (!u || !h) return /* @__PURE__ */ t(ue, {});
28132
28168
  const S = [
28133
- U.INVESTMENT_WIDGET_DETAILS_CLICK,
28134
- U.INVESTMENT_WIDGET_ALLOCATION_CLICK,
28135
- U.INVESTMENT_WIDGET_ANALYSIS_CLICK
28136
- ], I = o.length === 0 && r.length === 0, v = [
28169
+ W.INVESTMENT_WIDGET_DETAILS_CLICK,
28170
+ W.INVESTMENT_WIDGET_ALLOCATION_CLICK,
28171
+ W.INVESTMENT_WIDGET_ANALYSIS_CLICK
28172
+ ], w = o.length === 0 && r.length === 0, v = [
28137
28173
  d.tab_overview_title,
28138
28174
  d.tab_allocation_title,
28139
28175
  d.tab_analysis_title
@@ -28151,23 +28187,23 @@ const vb = ({ widgets: e, isLoading: n }) => {
28151
28187
  /* @__PURE__ */ t(
28152
28188
  Ft,
28153
28189
  {
28154
- onChange: (w, D) => {
28190
+ onChange: (I, D) => {
28155
28191
  f(D), i(S[D]);
28156
28192
  },
28157
28193
  sx: { bgcolor: "background.paper" },
28158
28194
  textColor: "primary",
28159
- value: I ? -1 : p,
28195
+ value: w ? -1 : p,
28160
28196
  variant: "fullWidth",
28161
- children: v.map((w) => /* @__PURE__ */ t(Qe, { disabled: I, label: /* @__PURE__ */ t($b, { title: w }) }, w))
28197
+ children: v.map((I) => /* @__PURE__ */ t(Qe, { disabled: w, label: /* @__PURE__ */ t($b, { title: I }) }, I))
28162
28198
  }
28163
28199
  ),
28164
- I ? /* @__PURE__ */ t(
28200
+ w ? /* @__PURE__ */ t(
28165
28201
  Kn,
28166
28202
  {
28167
28203
  header: d.empty_state_header,
28168
28204
  icon: "bid_landscape",
28169
28205
  onClick: () => {
28170
- s(!0), i(U.ACCOUNTS_CLICK_CONNECT);
28206
+ s(!0), i(W.ACCOUNTS_CLICK_CONNECT);
28171
28207
  },
28172
28208
  primaryButton: d.overview.connect_accounts,
28173
28209
  subText: d.empty_state_description,
@@ -28380,8 +28416,8 @@ const vb = ({ widgets: e, isLoading: n }) => {
28380
28416
  ), f = g.useMemo(
28381
28417
  () => Il(o, r, d),
28382
28418
  [o, r, d]
28383
- ), E = (S, I) => {
28384
- m(I), u("");
28419
+ ), E = (S, w) => {
28420
+ m(w), u("");
28385
28421
  }, y = (S) => {
28386
28422
  u(_ === S ? "" : S);
28387
28423
  };
@@ -28460,7 +28496,7 @@ const vb = ({ widgets: e, isLoading: n }) => {
28460
28496
  children: /* @__PURE__ */ t(Qb, {})
28461
28497
  }
28462
28498
  );
28463
- }, XS = T(Jb), ey = ({
28499
+ }, X4 = T(Jb), ey = ({
28464
28500
  data: e,
28465
28501
  onSelected: n,
28466
28502
  selectedId: i = "",
@@ -28597,7 +28633,7 @@ const vb = ({ widgets: e, isLoading: n }) => {
28597
28633
  e.palette.chartMono.chartMono1,
28598
28634
  e.palette.chartMono.chartMono6
28599
28635
  ], ay = () => {
28600
- const e = ln(), { categories: n, dateRangeCategoryTotals: i, loadDateRangeCategoryTotals: a } = Ve(), { goals: o, spending: r } = x(), { displayedDateRange: s, selectedAccounts: c, selectedAccountGuids: d } = de(), { setFilter: _, sortedTransactions: u } = Le(), [h, m] = g.useState(""), [p, f] = g.useState(0), [E, y] = g.useState(""), [S, I] = g.useState(!1);
28636
+ const e = ln(), { categories: n, dateRangeCategoryTotals: i, loadDateRangeCategoryTotals: a } = Ve(), { goals: o, spending: r } = x(), { displayedDateRange: s, selectedAccounts: c, selectedAccountGuids: d } = de(), { setFilter: _, sortedTransactions: u } = Le(), [h, m] = g.useState(""), [p, f] = g.useState(0), [E, y] = g.useState(""), [S, w] = g.useState(!1);
28601
28637
  g.useEffect(() => {
28602
28638
  a(
28603
28639
  c,
@@ -28608,7 +28644,7 @@ const vb = ({ widgets: e, isLoading: n }) => {
28608
28644
  const v = g.useMemo(
28609
28645
  () => xl(n, o, e, i),
28610
28646
  [n, i]
28611
- ), w = g.useMemo(
28647
+ ), I = g.useMemo(
28612
28648
  () => Il(n, i, iy(e)),
28613
28649
  [n, i]
28614
28650
  ), D = g.useMemo(
@@ -28625,22 +28661,22 @@ const vb = ({ widgets: e, isLoading: n }) => {
28625
28661
  };
28626
28662
  if (p === 0)
28627
28663
  if (O === "other") {
28628
- const W = v.categoryData.find((Q) => Q.guid === "other");
28664
+ const U = v.categoryData.find((Q) => Q.guid === "other");
28629
28665
  _({
28630
28666
  ...M,
28631
- custom: (Q) => !!W?.categoryTotals?.find((he) => he.guid === Q.top_level_category_guid)
28667
+ custom: (Q) => !!U?.categoryTotals?.find((he) => he.guid === Q.top_level_category_guid)
28632
28668
  });
28633
28669
  } else
28634
28670
  _({
28635
28671
  ...M,
28636
- custom: (W) => O ? W.top_level_category_guid === O : W.top_level_category_guid !== N.INCOME
28672
+ custom: (U) => O ? U.top_level_category_guid === O : U.top_level_category_guid !== N.INCOME
28637
28673
  });
28638
28674
  else
28639
28675
  _({
28640
28676
  ...M,
28641
- custom: (W) => O ? W.category_guid === O : W.top_level_category_guid === N.INCOME
28677
+ custom: (U) => O ? U.category_guid === O : U.top_level_category_guid === N.INCOME
28642
28678
  });
28643
- I(!0);
28679
+ w(!0);
28644
28680
  };
28645
28681
  return /* @__PURE__ */ l(L, { children: [
28646
28682
  /* @__PURE__ */ l(Ft, { onChange: R, value: p, variant: "fullWidth", children: [
@@ -28662,7 +28698,7 @@ const vb = ({ widgets: e, isLoading: n }) => {
28662
28698
  label: /* @__PURE__ */ t(
28663
28699
  ra,
28664
28700
  {
28665
- amount: w.totalAmount,
28701
+ amount: I.totalAmount,
28666
28702
  label: r.income_tab_title
28667
28703
  }
28668
28704
  )
@@ -28682,7 +28718,7 @@ const vb = ({ widgets: e, isLoading: n }) => {
28682
28718
  p === 1 && /* @__PURE__ */ t(
28683
28719
  Cs,
28684
28720
  {
28685
- data: w,
28721
+ data: I,
28686
28722
  onSelected: k,
28687
28723
  onViewTransactions: G,
28688
28724
  selectedId: h,
@@ -28694,7 +28730,7 @@ const vb = ({ widgets: e, isLoading: n }) => {
28694
28730
  {
28695
28731
  ariaLabelClose: r.close_drawer_aria,
28696
28732
  isOpen: S,
28697
- onClose: () => I(!1),
28733
+ onClose: () => w(!1),
28698
28734
  title: r.transactions_drawer_title,
28699
28735
  children: /* @__PURE__ */ t(Fn, { onClick: y })
28700
28736
  }
@@ -28711,11 +28747,11 @@ const vb = ({ widgets: e, isLoading: n }) => {
28711
28747
  )
28712
28748
  ] });
28713
28749
  }, oy = T(ay), ry = ({ onBackClick: e, sx: n = {} }) => {
28714
- const { visibleAccounts: i } = fe(), { spending: a } = x(), { isCopyLoaded: o, isInitialized: r, setDisplayedDate: s, setSelectedAccounts: c } = de(), { onEvent: d } = X(), [_, u] = g.useState(!1);
28750
+ const { visibleAccounts: i } = fe(), { spending: a } = x(), { isCopyLoaded: o, isInitialized: r, setDisplayedDate: s, setSelectedAccounts: c } = de(), { onEvent: d } = $(), [_, u] = g.useState(!1);
28715
28751
  g.useEffect(() => {
28716
28752
  c(i);
28717
28753
  }, [i]), g.useEffect(() => {
28718
- s(ze(Ae()), We(Ae())), u(!0), d(U.SPENDING_VIEW);
28754
+ s(ze(Ae()), We(Ae())), u(!0), d(W.SPENDING_VIEW);
28719
28755
  }, []);
28720
28756
  const h = (m) => {
28721
28757
  s(m[0], m[1]);
@@ -28725,16 +28761,16 @@ const vb = ({ widgets: e, isLoading: n }) => {
28725
28761
  {
28726
28762
  accountOptions: i,
28727
28763
  calendarActions: { onRangeChanged: h },
28728
- onAccountsFilterClick: () => d(U.SPENDING_CLICK_FILTER),
28764
+ onAccountsFilterClick: () => d(W.SPENDING_CLICK_FILTER),
28729
28765
  onBackClick: e,
28730
28766
  sx: n,
28731
28767
  title: a.title,
28732
28768
  children: /* @__PURE__ */ t(L, { height: "calc(100dvh - 150px)", overflow: "scroll", width: "100%", children: /* @__PURE__ */ t(oy, {}) })
28733
28769
  }
28734
28770
  );
28735
- }, qS = T(ry);
28771
+ }, q4 = T(ry);
28736
28772
  export {
28737
- U as ANALYTICS_EVENTS,
28773
+ W as ANALYTICS_EVENTS,
28738
28774
  _s as AccountApi,
28739
28775
  El as AccountDetailsContent,
28740
28776
  Go as AccountDetailsHeader,
@@ -28747,30 +28783,30 @@ export {
28747
28783
  yu as AccountSubType,
28748
28784
  ce as AccountType,
28749
28785
  lo as AccountTypeName,
28750
- US as AccountsMiniWidget,
28751
- WS as AccountsWidget,
28786
+ U4 as AccountsMiniWidget,
28787
+ W4 as AccountsWidget,
28752
28788
  kg as AddAccountModal,
28753
28789
  xc as AddRecurringTransactionDetails,
28754
28790
  Fu as AnalyticsApi,
28755
28791
  H as ApiEndpoints,
28756
28792
  Pf as AppStore,
28757
28793
  sr as BannerApi,
28758
- cS as BarChart,
28794
+ c4 as BarChart,
28759
28795
  ii as BeatApi,
28760
28796
  Zf as BeatCard,
28761
28797
  Ki as BottomActions,
28762
- YS as BubbleBudgetsMiniWidget,
28763
- zS as BubbleBudgetsWidget,
28798
+ Y4 as BubbleBudgetsMiniWidget,
28799
+ z4 as BubbleBudgetsWidget,
28764
28800
  es as BudgetNotificationProfiles,
28765
28801
  zn as BudgetNotificationTypes,
28766
28802
  r_ as Calendar,
28767
28803
  rc as CalendarSelectionTypes,
28768
28804
  n0 as CarouselHeader,
28769
- bS as CashflowApi,
28770
- uS as CashflowMiniWidget,
28805
+ b4 as CashflowApi,
28806
+ u4 as CashflowMiniWidget,
28771
28807
  Im as CashflowOnboarding,
28772
28808
  Nm as CashflowStore,
28773
- fS as CashflowWidget,
28809
+ f4 as CashflowWidget,
28774
28810
  cr as CategoryApi,
28775
28811
  ni as CategoryColors,
28776
28812
  ga as CategoryGuidToName,
@@ -28783,7 +28819,7 @@ export {
28783
28819
  Yf as ChartFilledIcon,
28784
28820
  dc as ConnectCard,
28785
28821
  vn as ConnectDrawer,
28786
- VS as ConnectMiniWidget,
28822
+ V4 as ConnectMiniWidget,
28787
28823
  Vn as ConnectionStatus,
28788
28824
  ft as ConnectionStatusEnums,
28789
28825
  ea as CurrencyCodes,
@@ -28792,14 +28828,14 @@ export {
28792
28828
  ne as DATE_FORMATS_INTL,
28793
28829
  Xs as DEFAULT_DONUT_SIZE,
28794
28830
  qs as DEFAULT_STROKE_WIDTH,
28795
- jS as Dashboard,
28831
+ j4 as Dashboard,
28796
28832
  Yi as DashboardLocation,
28797
28833
  za as DataRow,
28798
28834
  gr as DateRangeSelector,
28799
28835
  Hc as DebtsChart,
28800
28836
  Ip as DebtsStore,
28801
28837
  pp as DebtsTable,
28802
- ES as DebtsWidget,
28838
+ E4 as DebtsWidget,
28803
28839
  xC as DeviceTab,
28804
28840
  Be as Dialog,
28805
28841
  sc as Donut,
@@ -28812,20 +28848,20 @@ export {
28812
28848
  Rt as FieldType,
28813
28849
  Fr as FinstrongApi,
28814
28850
  vp as FinstrongStore,
28815
- SS as FinstrongWidget,
28851
+ S4 as FinstrongWidget,
28816
28852
  ye as Frequency,
28817
28853
  yi as GlobalCopyApi,
28818
28854
  D_ as GlobalCopyStore,
28819
28855
  Zn as GlobalDataContext,
28820
- aS as GlobalDataProvider,
28821
- FS as GlobalStore,
28856
+ a4 as GlobalDataProvider,
28857
+ F4 as GlobalStore,
28822
28858
  Ur as GoalApi,
28823
28859
  c1 as GoalStore,
28824
28860
  qa as GoalType,
28825
- TS as GoalsMicroWidget,
28826
- AS as GoalsWidget,
28861
+ T4 as GoalsMicroWidget,
28862
+ A4 as GoalsWidget,
28827
28863
  rl as Help,
28828
- NS as HelpWidget,
28864
+ N4 as HelpWidget,
28829
28865
  uo as INCOME_ACCOUNT_TYPES,
28830
28866
  Ln as IconBacking,
28831
28867
  Eo as InformationTooltip,
@@ -28833,18 +28869,18 @@ export {
28833
28869
  r0 as InsightsMicroWidget,
28834
28870
  Ff as InsightsMicroWidgetDataProvider,
28835
28871
  ts as InsightsNotificationProfiles,
28836
- $S as InvestmentsWidget,
28872
+ $4 as InvestmentsWidget,
28837
28873
  wu as IterationItemTypes,
28838
- ZE as LOADING_STATUS,
28874
+ ZS as LOADING_STATUS,
28839
28875
  bo as LineChart,
28840
28876
  Qt as ListItemAction,
28841
28877
  N_ as ListItemWrapper,
28842
28878
  ue as Loader,
28843
- nS as LocalizedCopyApi,
28879
+ n4 as LocalizedCopyApi,
28844
28880
  Vg as ManageExpenses,
28845
28881
  vo as ManageIncome,
28846
28882
  On as MemberConnectionStatus,
28847
- xS as MerchantLookup,
28883
+ x4 as MerchantLookup,
28848
28884
  M1 as MerchantStore,
28849
28885
  Ot as MetaType,
28850
28886
  Ys as MfaStatuses,
@@ -28853,45 +28889,45 @@ export {
28853
28889
  fa as MicroWidgetContainer,
28854
28890
  Pn as MiniWidgetContainer,
28855
28891
  $f as MonthlySpendComparisonIcon,
28856
- lS as MultiSegmentDonut,
28892
+ l4 as MultiSegmentDonut,
28857
28893
  G1 as NetWorthChart,
28858
28894
  F1 as NetWorthList,
28859
- IS as NetWorthMicroWidget,
28895
+ I4 as NetWorthMicroWidget,
28860
28896
  Z1 as NetWorthStore,
28861
28897
  V1 as NetWorthSummary,
28862
- wS as NetWorthWidget,
28863
- BS as NoRelevantInsightsCard,
28898
+ w4 as NetWorthWidget,
28899
+ B4 as NoRelevantInsightsCard,
28864
28900
  js as NonConnectedStatuses,
28865
28901
  lr as NotificationApi,
28866
- LS as NotificationDrawer,
28902
+ L4 as NotificationDrawer,
28867
28903
  gC as NotificationList,
28868
28904
  oa as NotificationSettings,
28869
- RS as NotificationSettingsWidget,
28905
+ R4 as NotificationSettingsWidget,
28870
28906
  sC as NotificationStore,
28871
28907
  Dt as NotificationTypes,
28872
28908
  bu as ORDINAL_DATE_FORMAT,
28873
- jE as ORDINAL_MONTH_DAY_YEAR_FORMAT,
28909
+ jS as ORDINAL_MONTH_DAY_YEAR_FORMAT,
28874
28910
  _o as PAYMENT_ACCOUNT_TYPES,
28875
28911
  ar as PaymentCategories,
28876
28912
  Iu as PlanTypes,
28877
28913
  Eu as ProcessingStatuses,
28878
28914
  yC as ProfileTab,
28879
28915
  Ks as PropertyType,
28880
- XE as PropertyTypeName,
28881
- qE as RECURRENCE_COPY,
28916
+ XS as PropertyTypeName,
28917
+ qS as RECURRENCE_COPY,
28882
28918
  qe as RecurrenceStatus,
28883
28919
  $t as RecurrenceType,
28884
28920
  xu as RecurrenceTypes,
28885
28921
  No as RecurringSettings,
28886
- CS as RecurringTransactionsMicroWidget,
28887
- pS as RecurringTransactionsMiniWidget,
28922
+ C4 as RecurringTransactionsMicroWidget,
28923
+ p4 as RecurringTransactionsMiniWidget,
28888
28924
  em as RecurringTransactionsStore,
28889
- mS as RecurringTransactionsWidget,
28925
+ m4 as RecurringTransactionsWidget,
28890
28926
  an as RepeatingType,
28891
- dS as ResponsiveButton,
28927
+ d4 as ResponsiveButton,
28892
28928
  ho as SPENDING_ACCOUNT_TYPES,
28893
28929
  fh as ScheduledPaymentTypes,
28894
- iS as ScheduledPaymentsApi,
28930
+ i4 as ScheduledPaymentsApi,
28895
28931
  bh as ScreenSize,
28896
28932
  ba as SearchBox,
28897
28933
  Fi as Select,
@@ -28900,18 +28936,18 @@ export {
28900
28936
  Zr as SettingsApi,
28901
28937
  CC as SettingsStore,
28902
28938
  ti as SettingsTabs,
28903
- DS as SettingsWidget,
28939
+ D4 as SettingsWidget,
28904
28940
  hf as SettingsWidgetContents,
28905
28941
  yo as SingleSegmentDonut,
28906
28942
  vu as Sizes,
28907
- XS as SpendingMiniWidget,
28908
- qS as SpendingWidget,
28943
+ X4 as SpendingMiniWidget,
28944
+ q4 as SpendingWidget,
28909
28945
  lc as StackedLineChart,
28910
28946
  ai as StatusBar,
28911
- $E as StatusName,
28912
- KS as SurveyMiniWidget,
28947
+ $S as StatusName,
28948
+ K4 as SurveyMiniWidget,
28913
28949
  mi as TOUCH_TARGET,
28914
- $ as TRANSACTION_EVENTS,
28950
+ X as TRANSACTION_EVENTS,
28915
28951
  Sn as TabContentContainer,
28916
28952
  So as ToggleButtonListItem,
28917
28953
  An as ToggleListItem,
@@ -28922,17 +28958,17 @@ export {
28922
28958
  Fn as TransactionList,
28923
28959
  xo as TransactionRow,
28924
28960
  il as TransactionRulesTab,
28925
- OS as TransactionRulesWidget,
28961
+ O4 as TransactionRulesWidget,
28926
28962
  To as TransactionStatus,
28927
28963
  Eh as TransactionStore,
28928
28964
  Ph as TransactionTable,
28929
28965
  jt as TransactionType,
28930
- gS as TransactionWidget,
28931
- MS as TrendsFullWidget,
28932
- GS as TrendsMicroWidget,
28933
- kS as TrendsMiniWidget,
28966
+ g4 as TransactionWidget,
28967
+ M4 as TrendsFullWidget,
28968
+ G4 as TrendsMicroWidget,
28969
+ k4 as TrendsMiniWidget,
28934
28970
  h0 as TrendsStore,
28935
- PS as TrendsWidget,
28971
+ P4 as TrendsWidget,
28936
28972
  Da as UserApi,
28937
28973
  C0 as UserStore,
28938
28974
  ph as UserVerification,
@@ -28941,11 +28977,11 @@ export {
28941
28977
  pt as WidgetContainer,
28942
28978
  Js as WidgetContainerContext,
28943
28979
  mo as WidgetContainerProvider,
28944
- HS as ZeroStateCard,
28980
+ H4 as ZeroStateCard,
28945
28981
  gl as ZeroStateIcon,
28946
28982
  fu as analyticsSession,
28947
28983
  A as buildDynamicCopy,
28948
- eS as buildPluralCopy,
28984
+ e4 as buildPluralCopy,
28949
28985
  _c as exportTransactionsToCSV,
28950
28986
  rC as filterRecentNotifications,
28951
28987
  P as formatCurrency,
@@ -28956,14 +28992,14 @@ export {
28956
28992
  Nc as getAccountBalanceDetails,
28957
28993
  sm as getAccountDetailFields,
28958
28994
  rr as getCategory,
28959
- QE as getCategoryTotalsByParent,
28960
- tS as getClientTheme,
28995
+ QS as getCategoryTotalsByParent,
28996
+ t4 as getClientTheme,
28961
28997
  Bu as getCurrencyCodes,
28962
28998
  Nu as getDetailedCategory,
28963
28999
  Du as getDetailedSubCategory,
28964
29000
  Hn as getLocale,
28965
- vS as getNotificationDetailRoute,
28966
- JE as isIncome,
29001
+ v4 as getNotificationDetailRoute,
29002
+ JS as isIncome,
28967
29003
  Ya as isValidNumber,
28968
29004
  fe as useAccountStore,
28969
29005
  Ut as useAccountUiStore,
@@ -28975,7 +29011,7 @@ export {
28975
29011
  Ku as useCombineEvents,
28976
29012
  Yu as useCombinePageviews,
28977
29013
  pa as useDebtStore,
28978
- X as useEvent,
29014
+ $ as useEvent,
28979
29015
  Ca as useFinstrongStore,
28980
29016
  f0 as useGetMergeableAccounts,
28981
29017
  x as useGlobalCopyStore,
@@ -28984,12 +29020,12 @@ export {
28984
29020
  lt as useGoalStore,
28985
29021
  fo as useHelpStore,
28986
29022
  Yn as useHoldingStore,
28987
- rS as useInsightsEnabled,
29023
+ r4 as useInsightsEnabled,
28988
29024
  Uu as useMerchantStore,
28989
29025
  tc as useNetWorthStore,
28990
29026
  nc as useNotificationStore,
28991
- oS as usePageView,
28992
- sS as usePrevious,
29027
+ o4 as usePageView,
29028
+ s4 as usePrevious,
28993
29029
  at as useRecurringTransactionsStore,
28994
29030
  pe as useScreenSize,
28995
29031
  Ct as useSettingsStore,