@mx-cartographer/experiences 6.25.7 → 6.25.8

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
@@ -224,7 +224,7 @@ const Tu = async (e, n, i = "1.0.0", a = "Experiences") => {
224
224
  USER_FEATURES: "user_features",
225
225
  USER_PROFILES: "user_profiles",
226
226
  WIDGET_URLS: "widget_urls"
227
- }, F = {
227
+ }, W = {
228
228
  ACCOUNTS_CLICK_ACCOUNT: "accounts_widget_click_account",
229
229
  ACCOUNTS_CLICK_CONNECT: "accounts_widget_click_connect_accounts",
230
230
  ACCOUNTS_CLICK_FILTER: "accounts_widget_click_filter_accounts",
@@ -2384,7 +2384,7 @@ const mi = ({
2384
2384
  showYAxis: G = !1,
2385
2385
  showYAxisTicks: M = !1,
2386
2386
  title: L,
2387
- useCustomMark: W = !1,
2387
+ useCustomMark: F = !1,
2388
2388
  valueFormatterString: $,
2389
2389
  width: ue
2390
2390
  }) => {
@@ -2471,7 +2471,7 @@ const mi = ({
2471
2471
  /* @__PURE__ */ t(
2472
2472
  Ad,
2473
2473
  {
2474
- slots: W ? {
2474
+ slots: F ? {
2475
2475
  mark: (Q) => /* @__PURE__ */ t(
2476
2476
  f_,
2477
2477
  {
@@ -2754,7 +2754,7 @@ const Ec = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
2754
2754
  hoveredAreaData: null,
2755
2755
  isAreaHovered: !1,
2756
2756
  cursorPos: { x: 0, y: 0 }
2757
- }), { hoveredSeriesId: v, hoveredAreaData: w, isAreaHovered: N, cursorPos: R } = S, k = N && v && w, G = !k, M = [...o, ...r], L = M[0]?.dataset.length ?? 0, W = M.flatMap((z) => z.dataset.map((Be) => Be.x)), $ = M.flatMap((z) => z.dataset.map((Be) => Be.y)), ue = o[0]?.dataset?.map(
2757
+ }), { hoveredSeriesId: v, hoveredAreaData: w, isAreaHovered: N, cursorPos: R } = S, k = N && v && w, G = !k, M = [...o, ...r], L = M[0]?.dataset.length ?? 0, F = M.flatMap((z) => z.dataset.map((Be) => Be.x)), $ = M.flatMap((z) => z.dataset.map((Be) => Be.y)), ue = o[0]?.dataset?.map(
2758
2758
  (z, Be) => o.reduce((st, bn) => st + bn.dataset[Be]?.y || 0, 0)
2759
2759
  ) ?? [0], _e = Math.max(...ue), pe = Math.max(
2760
2760
  ...r.flatMap((z) => z.dataset.map((Be) => Be.y))
@@ -2813,7 +2813,7 @@ const Ec = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
2813
2813
  }), n?.(st);
2814
2814
  else if (La) {
2815
2815
  const yi = bn?.data.map((Ma, ka) => ({
2816
- x: W[ka],
2816
+ x: F[ka],
2817
2817
  y: Ma
2818
2818
  })) ?? [];
2819
2819
  I({
@@ -2887,7 +2887,7 @@ const Ec = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
2887
2887
  w_,
2888
2888
  {
2889
2889
  categoryGuids: ge(v),
2890
- xData: W,
2890
+ xData: F,
2891
2891
  ...z
2892
2892
  }
2893
2893
  ) : null
@@ -2898,7 +2898,7 @@ const Ec = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
2898
2898
  },
2899
2899
  xAxis: [
2900
2900
  {
2901
- data: W,
2901
+ data: F,
2902
2902
  scaleType: "time",
2903
2903
  valueFormatter: (z) => se(z, ie.MONTH_SHORT_YEAR),
2904
2904
  tickNumber: L
@@ -3149,14 +3149,14 @@ const Ec = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
3149
3149
  const M = $e(On());
3150
3150
  return [$e(Gt(M, I)), M];
3151
3151
  }, R = (M) => {
3152
- const L = [...d], W = d[0], $ = d[1], ue = M === "previous";
3152
+ const L = [...d], F = d[0], $ = d[1], ue = M === "previous";
3153
3153
  if (u === i.dateRangePickerCopy.dateRangeThisMonth)
3154
- L[0] = ue ? Gt(W, 1) : qt(W, 1), L[1] = $e(ue ? Gt($, 1) : qt($, 1));
3154
+ L[0] = ue ? Gt(F, 1) : qt(F, 1), L[1] = $e(ue ? Gt($, 1) : qt($, 1));
3155
3155
  else if (u === i.dateRangePickerCopy.dateRangeYTD || u === i.dateRangePickerCopy.dateRangeLastYear)
3156
- L[0] = ue ? Xa(lr(W), 1) : Qi(lr(W), 1), L[1] = ue ? Xa(cr(W), 1) : Qi(cr(W), 1);
3156
+ L[0] = ue ? Xa(lr(F), 1) : Qi(lr(F), 1), L[1] = ue ? Xa(cr(F), 1) : Qi(cr(F), 1);
3157
3157
  else {
3158
- const _e = Nd($, W);
3159
- L[0] = M === "previous" ? Dt(W, _e) : Fn(W, _e), L[1] = M === "previous" ? Dt($, _e) : Fn($, _e);
3158
+ const _e = Nd($, F);
3159
+ L[0] = M === "previous" ? Dt(F, _e) : Fn(F, _e), L[1] = M === "previous" ? Dt($, _e) : Fn($, _e);
3160
3160
  }
3161
3161
  _(L), e.onRangeChanged(L);
3162
3162
  }, k = () => {
@@ -3546,8 +3546,8 @@ const Sa = ({
3546
3546
  sx: h = {},
3547
3547
  title: p = ""
3548
3548
  }) => {
3549
- const [m, f] = g.useState(!1), [E, { height: y, width: S }] = pi(), { onEvent: I } = X(), { isDesktop: v, isMobile: w, isTablet: N } = fe(S), { displayedDateRange: R, isCopyLoaded: k, selectedAccountGuids: G, setSelectedAccountGuids: M } = le(), { common: L, connect: W } = T(), $ = () => {
3550
- d && (d(), I(F.WIDGET_BACK_CLICK));
3549
+ const [m, f] = g.useState(!1), [E, { height: y, width: S }] = pi(), { onEvent: I } = X(), { isDesktop: v, isMobile: w, isTablet: N } = fe(S), { displayedDateRange: R, isCopyLoaded: k, selectedAccountGuids: G, setSelectedAccountGuids: M } = le(), { common: L, connect: F } = T(), $ = () => {
3550
+ d && (d(), I(W.WIDGET_BACK_CLICK));
3551
3551
  };
3552
3552
  if (!k)
3553
3553
  return /* @__PURE__ */ t(de, {});
@@ -3694,7 +3694,7 @@ const Sa = ({
3694
3694
  {
3695
3695
  onClose: () => f(!1),
3696
3696
  showConnectWidget: m,
3697
- title: W.mini_title
3697
+ title: F.mini_title
3698
3698
  }
3699
3699
  ),
3700
3700
  /* @__PURE__ */ t(Bt, { ref: E, sx: { p: 0 }, children: /* @__PURE__ */ t(xo, { availableHeight: y, availableWidth: S, children: a }) })
@@ -5490,7 +5490,7 @@ const Tc = (e, n) => {
5490
5490
  custom: r = () => !0,
5491
5491
  searchTerm: s = ""
5492
5492
  } = e;
5493
- return i.filter((c) => !c.parent_guid).filter((c) => !!a.find((d) => d === c.account_guid)).filter((c) => c.date > Fe(o.start) && c.date < Fe(o.end)).filter(r).filter((c) => {
5493
+ return i.filter((c) => !c.parent_guid).filter((c) => !!a.find((d) => d === c.account_guid)).filter((c) => c.date >= Fe(o.start) && c.date <= Fe(o.end)).filter(r).filter((c) => {
5494
5494
  if (s === Eh && c.has_been_split)
5495
5495
  return !1;
5496
5496
  if (/^spl/i.test(s) && (c.has_been_split || c.parent_guid))
@@ -5898,7 +5898,7 @@ const Mh = ({ transaction: e, onClick: n }) => {
5898
5898
  f(w.guid);
5899
5899
  return;
5900
5900
  }
5901
- E(F.ACCOUNT_DETAILS_CLICK_TRANSACTION, {
5901
+ E(W.ACCOUNT_DETAILS_CLICK_TRANSACTION, {
5902
5902
  account_guid: w?.account_guid,
5903
5903
  transaction_guid: v
5904
5904
  }), a?.(v);
@@ -6680,7 +6680,7 @@ class mg {
6680
6680
  }
6681
6681
  const vc = ({ transaction: e }) => {
6682
6682
  const { addOrUpdateTransactionRule: n, updateTransaction: i } = Me(), { categories: a } = Ue(), { onEvent: o } = X(), { setShouldDisableDrawerScroll: r, updateManualTransaction: s } = Rt(), { transactions: c } = T(), [d, _] = g.useState(!1), [u, h] = g.useState(""), p = async (y) => {
6683
- await i({ ...e, category_guid: u }), y && await n(u, e), h(""), o(F.TRANSACTION_DETAILS_CLICK_CATEGORY, {
6683
+ await i({ ...e, category_guid: u }), y && await n(u, e), h(""), o(W.TRANSACTION_DETAILS_CLICK_CATEGORY, {
6684
6684
  transaction_guid: e.guid
6685
6685
  });
6686
6686
  }, m = (y) => {
@@ -6771,7 +6771,7 @@ const vc = ({ transaction: e }) => {
6771
6771
  o({ ...e, date: _ }), d(!1);
6772
6772
  return;
6773
6773
  }
6774
- await a({ ...e, date: _ }), i(F.TRANSACTION_DETAILS_CLICK_DATE, { transaction_guid: e.guid }), d(!1);
6774
+ await a({ ...e, date: _ }), i(W.TRANSACTION_DETAILS_CLICK_DATE, { transaction_guid: e.guid }), d(!1);
6775
6775
  };
6776
6776
  return /* @__PURE__ */ l(O, { className: "mx-txn-date-action", children: [
6777
6777
  /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
@@ -6862,7 +6862,7 @@ const vc = ({ transaction: e }) => {
6862
6862
  ] });
6863
6863
  }, Cg = x(pg), fg = ({ transaction: e }) => {
6864
6864
  const { onEvent: n } = X(), { updateTransaction: i } = Me(), { setShouldDisableDrawerScroll: a } = Rt(), { common: o, transactions: r } = T(), [s, c] = g.useState(!1), d = async () => {
6865
- await i({ ...e, merchant_guid: "" }), n(F.TRANSACTION_DETAILS_CLICK_DELETE_LOGO, {
6865
+ await i({ ...e, merchant_guid: "" }), n(W.TRANSACTION_DETAILS_CLICK_DELETE_LOGO, {
6866
6866
  transaction_guid: e.guid
6867
6867
  });
6868
6868
  };
@@ -6999,7 +6999,7 @@ const vc = ({ transaction: e }) => {
6999
6999
  a({ ...e, memo: d }), c(!1);
7000
7000
  return;
7001
7001
  }
7002
- await i({ ...e, memo: d }), n(F.TRANSACTION_DETAILS_CLICK_MEMO, { transaction_guid: e.guid }), c(!1);
7002
+ await i({ ...e, memo: d }), n(W.TRANSACTION_DETAILS_CLICK_MEMO, { transaction_guid: e.guid }), c(!1);
7003
7003
  };
7004
7004
  return /* @__PURE__ */ l("div", { className: "mx-txn-memo-action", children: [
7005
7005
  /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
@@ -7237,29 +7237,29 @@ const vc = ({ transaction: e }) => {
7237
7237
  M.push({ ..._ }), M[0].amount -= 1, E(M);
7238
7238
  }, S = (M) => {
7239
7239
  if (M > 0) {
7240
- const L = f[M], W = [...f];
7241
- W.splice(M, 1), W[0].amount += L.amount, E(W);
7240
+ const L = f[M], F = [...f];
7241
+ F.splice(M, 1), F[0].amount += L.amount, E(F);
7242
7242
  }
7243
7243
  }, I = (M, L) => {
7244
- const W = [...f];
7245
- W[M].amount = L, W[0].amount = e.amount - W.reduce(
7244
+ const F = [...f];
7245
+ F[M].amount = L, F[0].amount = e.amount - F.reduce(
7246
7246
  ($, ue, _e) => $ + (_e !== 0 ? ue.amount : 0),
7247
7247
  0
7248
- ), E(W);
7248
+ ), E(F);
7249
7249
  }, v = (M, L) => {
7250
- const W = [...f], $ = c.find((ue) => ue.guid === L);
7251
- $ && (W[M] = {
7252
- ...W[M],
7250
+ const F = [...f], $ = c.find((ue) => ue.guid === L);
7251
+ $ && (F[M] = {
7252
+ ...F[M],
7253
7253
  category_guid: L,
7254
7254
  category: $.name,
7255
7255
  top_level_category_guid: $.parent_guid || L
7256
- }, E(W));
7256
+ }, E(F));
7257
7257
  }, w = () => {
7258
7258
  if (e.parent_guid || e.has_been_split) {
7259
7259
  m(!0);
7260
7260
  return;
7261
7261
  }
7262
- E([{ ...d }, { ..._ }]), n(F.TRANSACTION_DETAILS_CLICK_SPLIT, {
7262
+ E([{ ...d }, { ..._ }]), n(W.TRANSACTION_DETAILS_CLICK_SPLIT, {
7263
7263
  transaction_guid: e.guid
7264
7264
  }), h(!0);
7265
7265
  }, N = async () => {
@@ -7267,13 +7267,13 @@ const vc = ({ transaction: e }) => {
7267
7267
  }, R = async () => {
7268
7268
  n(q.ON_TRANSACTION_SPLIT_CANCEL_CLICK), E([{ ...d }, { ..._ }]), h(!1);
7269
7269
  }, k = async () => {
7270
- n(F.TRANSACTION_DETAILS_CLICK_UNSPLIT, {
7270
+ n(W.TRANSACTION_DETAILS_CLICK_UNSPLIT, {
7271
7271
  transaction_guid: e.guid
7272
7272
  });
7273
7273
  const M = e.parent_guid ?? e.guid;
7274
7274
  await a(M);
7275
7275
  }, G = g.useMemo(() => {
7276
- const M = f.some((W) => !W.category_guid), L = f.some((W) => W.amount <= 0);
7276
+ const M = f.some((F) => !F.category_guid), L = f.some((F) => F.amount <= 0);
7277
7277
  return M || L;
7278
7278
  }, [f]);
7279
7279
  return /* @__PURE__ */ l(g.Fragment, { children: [
@@ -7548,7 +7548,7 @@ const vc = ({ transaction: e }) => {
7548
7548
  c({ ...e, tags: u }), _(!1);
7549
7549
  return;
7550
7550
  }
7551
- await a(u, e.guid), await o({ ...e, tags: u }), n(F.TRANSACTION_DETAILS_CLICK_TAGS, { transaction_guid: e.guid }), _(!1);
7551
+ await a(u, e.guid), await o({ ...e, tags: u }), n(W.TRANSACTION_DETAILS_CLICK_TAGS, { transaction_guid: e.guid }), _(!1);
7552
7552
  }, f = g.useMemo(
7553
7553
  () => e.tags.map(
7554
7554
  (E, y, S) => `${i.find((I) => I.guid === E)?.name}${y < S.length - 1 ? " / " : ""}`
@@ -7596,7 +7596,7 @@ const vc = ({ transaction: e }) => {
7596
7596
  r && (d(e.description), _?.current?.focus());
7597
7597
  }, [r]);
7598
7598
  const u = async () => {
7599
- o(F.TRANSACTION_DETAILS_CLICK_DESCRIPTION, {
7599
+ o(W.TRANSACTION_DETAILS_CLICK_DESCRIPTION, {
7600
7600
  transaction_guid: e.guid
7601
7601
  }), await n({ ...e, description: c }), s(!1);
7602
7602
  };
@@ -7643,7 +7643,7 @@ const vc = ({ transaction: e }) => {
7643
7643
  ] }) });
7644
7644
  }, Pg = x(Hg), Fg = ({ transaction: e }) => {
7645
7645
  const { updateTransaction: n } = Me(), { transactions: i } = T(), { onEvent: a } = X(), o = Ee(), r = async () => {
7646
- a(F.TRANSACTION_DETAILS_CLICK_FLAG, { transaction_guid: e.guid }), await n({ ...e, is_flagged: !e.is_flagged });
7646
+ a(W.TRANSACTION_DETAILS_CLICK_FLAG, { transaction_guid: e.guid }), await n({ ...e, is_flagged: !e.is_flagged });
7647
7647
  };
7648
7648
  return /* @__PURE__ */ t("div", { className: "mx-txn-transaction-flag", children: /* @__PURE__ */ t(
7649
7649
  di,
@@ -7680,7 +7680,7 @@ const vc = ({ transaction: e }) => {
7680
7680
  }) => {
7681
7681
  const { isCopyLoaded: a } = le(), o = i?.number && i.number.length > 4, { onEvent: r } = X();
7682
7682
  return g.useEffect(
7683
- () => r(F.TRANSACTION_DETAILS_VIEW, { transaction_guid: i.guid }),
7683
+ () => r(W.TRANSACTION_DETAILS_VIEW, { transaction_guid: i.guid }),
7684
7684
  []
7685
7685
  ), a ? /* @__PURE__ */ t(O, { className: "mx-txn-transaction-details", width: "100%", children: i && /* @__PURE__ */ l(b, { children: [
7686
7686
  /* @__PURE__ */ l(b, { gap: 12, p: 24, children: [
@@ -7909,7 +7909,7 @@ const vc = ({ transaction: e }) => {
7909
7909
  transactions: M,
7910
7910
  updateTransaction: L
7911
7911
  } = Me(), {
7912
- manualTransaction: W,
7912
+ manualTransaction: F,
7913
7913
  isAmountValid: $,
7914
7914
  searchValue: ue,
7915
7915
  setSearchValue: _e,
@@ -7922,7 +7922,7 @@ const vc = ({ transaction: e }) => {
7922
7922
  accounts: ht.map((ni) => ni.guid),
7923
7923
  custom: (ni) => !ni.accountIsClosed && !ni.accountIsHidden,
7924
7924
  dateRange: { start: nr, end: ir }
7925
- }), tn(!0), d(F.TRANSACTIONS_VIEW);
7925
+ }), tn(!0), d(W.TRANSACTIONS_VIEW);
7926
7926
  }, [o]), g.useEffect(() => {
7927
7927
  ut && (R({
7928
7928
  ...w,
@@ -7935,15 +7935,15 @@ const vc = ({ transaction: e }) => {
7935
7935
  const Yn = g.useMemo(
7936
7936
  () => o.filter((ht) => ht.is_manual),
7937
7937
  [o]
7938
- ), z = ze ? M.find((ht) => ht.guid === ze) : void 0, Be = $ && !!W.payee && !!W.account_guid && !!W.category_guid, st = (ht) => {
7938
+ ), z = ze ? M.find((ht) => ht.guid === ze) : void 0, Be = $ && !!F.payee && !!F.account_guid && !!F.category_guid, st = (ht) => {
7939
7939
  E(ht[0], ht[1]);
7940
7940
  }, bn = (ht) => {
7941
7941
  _e(ht), R({
7942
7942
  ...w,
7943
7943
  searchTerm: ht
7944
- }), d(F.TRANSACTIONS_CLICK_SEARCH, { search_term: ht });
7944
+ }), d(W.TRANSACTIONS_CLICK_SEARCH, { search_term: ht });
7945
7945
  }, Oa = () => {
7946
- Tc(k, G), d(F.TRANSACTIONS_CLICK_EXPORT);
7946
+ Tc(k, G), d(W.TRANSACTIONS_CLICK_EXPORT);
7947
7947
  }, La = () => {
7948
7948
  Yn.length > 0 ? (ve({
7949
7949
  ...xc,
@@ -7952,9 +7952,9 @@ const vc = ({ transaction: e }) => {
7952
7952
  }), me(
7953
7953
  "addTransaction"
7954
7954
  /* AddTransaction */
7955
- ), d(F.TRANSACTIONS_CLICK_ADD)) : (Q(!0), d(F.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
7955
+ ), d(W.TRANSACTIONS_CLICK_ADD)) : (Q(!0), d(W.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
7956
7956
  }, yi = async () => {
7957
- Be && await v(W), me("");
7957
+ Be && await v(F), me("");
7958
7958
  }, Ma = () => {
7959
7959
  Q(!1), be(!0);
7960
7960
  }, ka = async () => {
@@ -7981,7 +7981,7 @@ const vc = ({ transaction: e }) => {
7981
7981
  calendarActions: {
7982
7982
  onRangeChanged: st
7983
7983
  },
7984
- onAccountsFilterClick: () => d(F.ACCOUNTS_CLICK_FILTER),
7984
+ onAccountsFilterClick: () => d(W.ACCOUNTS_CLICK_FILTER),
7985
7985
  onBackClick: e,
7986
7986
  sx: a,
7987
7987
  title: u.transactions_title,
@@ -8015,7 +8015,7 @@ const vc = ({ transaction: e }) => {
8015
8015
  K(ht), me(
8016
8016
  "transaction"
8017
8017
  /* Transaction */
8018
- ), d(F.TRANSACTIONS_CLICK_DETAILS, { transaction_guid: ht });
8018
+ ), d(W.TRANSACTIONS_CLICK_DETAILS, { transaction_guid: ht });
8019
8019
  }
8020
8020
  }
8021
8021
  )
@@ -8189,7 +8189,7 @@ const vc = ({ transaction: e }) => {
8189
8189
  second_recurrence_day: u
8190
8190
  }), r(!1);
8191
8191
  }, m = () => {
8192
- r(!0), a(F.RECURRING_TRANSACTIONS_DETAILS_CLICK_PAYMENT_SCHEDULE);
8192
+ r(!0), a(W.RECURRING_TRANSACTIONS_DETAILS_CLICK_PAYMENT_SCHEDULE);
8193
8193
  };
8194
8194
  return /* @__PURE__ */ l(Z, { children: [
8195
8195
  /* @__PURE__ */ t(
@@ -8239,7 +8239,7 @@ const vc = ({ transaction: e }) => {
8239
8239
  ), y = n.repeating_transaction_type === sn.Income, S = async () => {
8240
8240
  await r(n.guid), e();
8241
8241
  }, I = () => {
8242
- p(!0), o(F.RECURRING_TRANSACTIONS_DETAILS_CLICK_DELETE);
8242
+ p(!0), o(W.RECURRING_TRANSACTIONS_DETAILS_CLICK_DELETE);
8243
8243
  };
8244
8244
  return /* @__PURE__ */ l(b, { bgcolor: "background.default", direction: "column", height: "100%", children: [
8245
8245
  /* @__PURE__ */ l(b, { direction: "column", m: 24, children: [
@@ -8564,11 +8564,11 @@ const vc = ({ transaction: e }) => {
8564
8564
  }
8565
8565
  ), Qg = x(() => {
8566
8566
  const { recurring: e } = T(), { repeatingTransactions: n } = ot(), { onEvent: i } = X(), a = (r) => {
8567
- i(F.RECURRING_TRANSACTIONS_CLICK_EXPENSE, {
8567
+ i(W.RECURRING_TRANSACTIONS_CLICK_EXPENSE, {
8568
8568
  repeating_transaction_guid: r.guid
8569
8569
  });
8570
8570
  }, o = () => {
8571
- i(F.RECURRING_TRANSACTIONS_CLICK_ADD_EXPENSE);
8571
+ i(W.RECURRING_TRANSACTIONS_CLICK_ADD_EXPENSE);
8572
8572
  };
8573
8573
  return /* @__PURE__ */ l(ae, { sx: { bgcolor: "background.paper" }, children: [
8574
8574
  n.filter(
@@ -8581,11 +8581,11 @@ const vc = ({ transaction: e }) => {
8581
8581
  ] });
8582
8582
  }), Go = x(() => {
8583
8583
  const { recurring: e } = T(), { repeatingTransactions: n } = ot(), { onEvent: i } = X(), a = (r) => {
8584
- i(F.RECURRING_TRANSACTIONS_CLICK_INCOME, {
8584
+ i(W.RECURRING_TRANSACTIONS_CLICK_INCOME, {
8585
8585
  repeating_transaction_guid: r.guid
8586
8586
  });
8587
8587
  }, o = () => {
8588
- i(F.RECURRING_TRANSACTIONS_CLICK_ADD_INCOME);
8588
+ i(W.RECURRING_TRANSACTIONS_CLICK_ADD_INCOME);
8589
8589
  };
8590
8590
  return /* @__PURE__ */ l(ae, { sx: { bgcolor: "background.paper" }, children: [
8591
8591
  n.filter(
@@ -8720,7 +8720,7 @@ const vc = ({ transaction: e }) => {
8720
8720
  r(gr(d) * Ei + Wr), a({
8721
8721
  start: Ke(d),
8722
8722
  end: $e(d)
8723
- }), n(F.RECURRING_TRANSACTIONS_CLICK_CALENDAR_RIGHT);
8723
+ }), n(W.RECURRING_TRANSACTIONS_CLICK_CALENDAR_RIGHT);
8724
8724
  }, c = /* @__PURE__ */ t(
8725
8725
  Co,
8726
8726
  {
@@ -8999,27 +8999,27 @@ const vc = ({ transaction: e }) => {
8999
8999
  upcomingExpenseTotal: y,
9000
9000
  upcomingIncomeTotal: S,
9001
9001
  upcomingRecurrences: I
9002
- } = ot(), [v, w] = g.useState(0), N = et(s.start, /* @__PURE__ */ new Date()), R = (W, $) => {
9002
+ } = ot(), [v, w] = g.useState(0), N = et(s.start, /* @__PURE__ */ new Date()), R = (F, $) => {
9003
9003
  w($);
9004
- }, k = (W) => {
9005
- a(F.RECURRING_TRANSACTIONS_CLICK_UPCOMING, {
9006
- transaction_guid: W.transaction?.guid
9004
+ }, k = (F) => {
9005
+ a(W.RECURRING_TRANSACTIONS_CLICK_UPCOMING, {
9006
+ transaction_guid: F.transaction?.guid
9007
9007
  });
9008
- }, G = (W) => {
9009
- a(F.RECURRING_TRANSACTIONS_CLICK_PAID, {
9010
- transaction_guid: W.transaction?.guid
9008
+ }, G = (F) => {
9009
+ a(W.RECURRING_TRANSACTIONS_CLICK_PAID, {
9010
+ transaction_guid: F.transaction?.guid
9011
9011
  });
9012
9012
  }, M = () => {
9013
- const W = qt(s.start, 1);
9013
+ const F = qt(s.start, 1);
9014
9014
  E({
9015
- start: Ke(W),
9016
- end: $e(W)
9015
+ start: Ke(F),
9016
+ end: $e(F)
9017
9017
  });
9018
9018
  }, L = () => {
9019
- const W = Gt(s.start, 1);
9019
+ const F = Gt(s.start, 1);
9020
9020
  E({
9021
- start: Ke(W),
9022
- end: $e(W)
9021
+ start: Ke(F),
9022
+ end: $e(F)
9023
9023
  });
9024
9024
  };
9025
9025
  return /* @__PURE__ */ l(In, { container: !0, sx: { pt: 16, px: 24, spacing: 24 }, children: [
@@ -9136,11 +9136,11 @@ const vc = ({ transaction: e }) => {
9136
9136
  label: a.settings,
9137
9137
  iconName: "settings",
9138
9138
  onClick: () => {
9139
- f(!0), p(F.RECURRING_TRANSACTIONS_CLICK_SETTINGS);
9139
+ f(!0), p(W.RECURRING_TRANSACTIONS_CLICK_SETTINGS);
9140
9140
  }
9141
9141
  }
9142
9142
  ],
9143
- onAccountsFilterClick: () => p(F.RECURRING_TRANSACTIONS_CLICK_FILTER),
9143
+ onAccountsFilterClick: () => p(W.RECURRING_TRANSACTIONS_CLICK_FILTER),
9144
9144
  onBackClick: e,
9145
9145
  sx: n,
9146
9146
  title: a.title,
@@ -9303,7 +9303,7 @@ const vc = ({ transaction: e }) => {
9303
9303
  accounts: u
9304
9304
  }), S({ start: Ke(/* @__PURE__ */ new Date()), end: $e(/* @__PURE__ */ new Date()) }), p().finally(), i(!0));
9305
9305
  }, [_]), g.useEffect(() => {
9306
- n && a(F.RECURRING_TRANSACTIONS_LOAD_WIDGET, {
9306
+ n && a(W.RECURRING_TRANSACTIONS_LOAD_WIDGET, {
9307
9307
  state: m.length > 0 ? "default" : "zeroState"
9308
9308
  });
9309
9309
  }, [n]);
@@ -9323,14 +9323,14 @@ const vc = ({ transaction: e }) => {
9323
9323
  o.palette.error.main
9324
9324
  ]), M = g.useMemo(() => H(f, f === 0 ? "0,0" : "0,0.00"), [f]), L = () => {
9325
9325
  a(
9326
- m.length > 0 ? F.RECURRING_TRANSACTIONS_CLICK_GET_STARTED : F.RECURRING_TRANSACTIONS_CLICK_VIEW_ALL
9326
+ m.length > 0 ? W.RECURRING_TRANSACTIONS_CLICK_GET_STARTED : W.RECURRING_TRANSACTIONS_CLICK_VIEW_ALL
9327
9327
  ), e();
9328
9328
  };
9329
9329
  if (!d || !n) return /* @__PURE__ */ t(de, { height: 100 });
9330
- const W = 32, $ = m.length > 0, ue = () => $ ? R ? /* @__PURE__ */ t(
9330
+ const F = 32, $ = m.length > 0, ue = () => $ ? R ? /* @__PURE__ */ t(
9331
9331
  rm,
9332
9332
  {
9333
- logoSize: W,
9333
+ logoSize: F,
9334
9334
  maxLogos: 3,
9335
9335
  upcomingRecurrences: m.slice(0, 3)
9336
9336
  }
@@ -10487,9 +10487,9 @@ const bm = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
10487
10487
  transform: rotate(360deg);
10488
10488
  }
10489
10489
  `, Mm = () => {
10490
- const { addRepeatingTransaction: e, repeatingTransactions: n } = ot(), { cashflow: i, common: a } = T(), { completeOnboarding: o } = wo(), { isDirty: r } = Ci(), { isMobile: s } = fe(), { isCopyLoaded: c, setDisplayedDate: d } = le(), { filter: _, setFilter: u, transactions: h } = Me(), p = Ee(), [m, f] = Tt(!0), [E, y] = g.useState(Se.EveryMonth), [S, I] = g.useState(1), [v, w] = g.useState(15), [N, R] = Tt(!1), [k, G] = Tt(1), [M, L] = Tt([]), [W, $] = Tt(""), ue = g.useMemo(
10491
- () => h.find((Ce) => Ce.guid === W),
10492
- [W, h]
10490
+ const { addRepeatingTransaction: e, repeatingTransactions: n } = ot(), { cashflow: i, common: a } = T(), { completeOnboarding: o } = wo(), { isDirty: r } = Ci(), { isMobile: s } = fe(), { isCopyLoaded: c, setDisplayedDate: d } = le(), { filter: _, setFilter: u, transactions: h } = Me(), p = Ee(), [m, f] = Tt(!0), [E, y] = g.useState(Se.EveryMonth), [S, I] = g.useState(1), [v, w] = g.useState(15), [N, R] = Tt(!1), [k, G] = Tt(1), [M, L] = Tt([]), [F, $] = Tt(""), ue = g.useMemo(
10491
+ () => h.find((Ce) => Ce.guid === F),
10492
+ [F, h]
10493
10493
  ), _e = !!n.filter(
10494
10494
  (Ce) => Ce.repeating_transaction_type === sn.Income
10495
10495
  ).length, pe = async () => {
@@ -10692,7 +10692,7 @@ const bm = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
10692
10692
  label: E.cashflow_settings,
10693
10693
  iconName: "settings",
10694
10694
  onClick: () => {
10695
- v(!0), c(F.CASH_FLOW_CLICK_SETTINGS);
10695
+ v(!0), c(W.CASH_FLOW_CLICK_SETTINGS);
10696
10696
  }
10697
10697
  }
10698
10698
  ],
@@ -10705,7 +10705,7 @@ const bm = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
10705
10705
  },
10706
10706
  dateRange: h,
10707
10707
  dateRangeVariant: "readonly",
10708
- onAccountsFilterClick: () => c(F.CASH_FLOW_CLICK_FILTER),
10708
+ onAccountsFilterClick: () => c(W.CASH_FLOW_CLICK_FILTER),
10709
10709
  onBackClick: e,
10710
10710
  sx: n,
10711
10711
  title: E.title,
@@ -11466,7 +11466,7 @@ const zc = ({
11466
11466
  onAreaClick: (w, N) => {
11467
11467
  r?.();
11468
11468
  const R = y.find((k) => k.id === N.seriesId);
11469
- d(F.DEBTS_CLICK_CHART_AREA, { account_guid: R?.guid });
11469
+ d(W.DEBTS_CLICK_CHART_AREA, { account_guid: R?.guid });
11470
11470
  },
11471
11471
  onHighlightChange: (w) => {
11472
11472
  const N = y.find((R) => R.id === w?.seriesId)?.guid;
@@ -11554,7 +11554,7 @@ const zc = ({
11554
11554
  ] });
11555
11555
  }, op = x(ap), rp = () => {
11556
11556
  const e = ln(), { onEvent: n } = X(), { debts: i } = T(), { selectedDebtChartData: a, showCompleted: o, showError: r } = fn();
11557
- return g.useEffect(() => n(F.DEBT_SCHEDULE_VIEW), []), /* @__PURE__ */ t(ae, { children: r || o ? /* @__PURE__ */ t(
11557
+ return g.useEffect(() => n(W.DEBT_SCHEDULE_VIEW), []), /* @__PURE__ */ t(ae, { children: r || o ? /* @__PURE__ */ t(
11558
11558
  C,
11559
11559
  {
11560
11560
  color: e.palette.secondary.main,
@@ -11719,7 +11719,7 @@ const zc = ({
11719
11719
  );
11720
11720
  }), cp = x(({ debt: e }) => {
11721
11721
  const { debts: n } = T(), { updateAccount: i } = ye(), { onEvent: a } = X(), [o, r] = g.useState(e.interest_rate ?? 0), s = o < 0, c = async () => {
11722
- await i({ ...e.account, interest_rate: o }), e.interest_rate = o, a(F.DEBTS_SAVE_RATE_ACTION, { account_guid: e.guid });
11722
+ await i({ ...e.account, interest_rate: o }), e.interest_rate = o, a(W.DEBTS_SAVE_RATE_ACTION, { account_guid: e.guid });
11723
11723
  }, d = () => {
11724
11724
  setTimeout(() => {
11725
11725
  r(e.interest_rate ?? 0);
@@ -11749,7 +11749,7 @@ const zc = ({
11749
11749
  );
11750
11750
  }), lp = x(({ debt: e }) => {
11751
11751
  const { debts: n } = T(), { updateAccount: i } = ye(), { onEvent: a } = X(), [o, r] = g.useState(e.monthly_payment ?? 0), s = o < 0 || o > 9999999999e-2, c = async () => {
11752
- await i({ ...e.account, minimum_payment: o }), e.monthly_payment = o, a(F.DEBTS_SAVE_PAYMENT_ACTION, { account_guid: e.guid });
11752
+ await i({ ...e.account, minimum_payment: o }), e.monthly_payment = o, a(W.DEBTS_SAVE_PAYMENT_ACTION, { account_guid: e.guid });
11753
11753
  }, d = () => {
11754
11754
  setTimeout(() => {
11755
11755
  r(e.monthly_payment ?? 0);
@@ -11781,7 +11781,7 @@ const zc = ({
11781
11781
  );
11782
11782
  }), dp = x(({ debt: e }) => {
11783
11783
  const { debts: n } = T(), { updateAccount: i } = ye(), { onEvent: a } = X(), [o, r] = g.useState(e.original_balance ?? 0), s = o < 0 || o > 9999999999e-2, c = async () => {
11784
- await i({ ...e.account, original_balance: o }), e.original_balance = o, a(F.DEBTS_SAVE_BALANCE_ACTION, { account_guid: e.guid });
11784
+ await i({ ...e.account, original_balance: o }), e.original_balance = o, a(W.DEBTS_SAVE_BALANCE_ACTION, { account_guid: e.guid });
11785
11785
  }, d = () => {
11786
11786
  setTimeout(() => {
11787
11787
  r(e.original_balance ?? 0);
@@ -11813,7 +11813,7 @@ const zc = ({
11813
11813
  );
11814
11814
  }), up = () => {
11815
11815
  const { onEvent: e } = X(), { selectedDebtChartData: n } = fn();
11816
- return g.useEffect(() => e(F.DEBT_DETAILS_VIEW), []), /* @__PURE__ */ l(b, { bgcolor: "background.paper", children: [
11816
+ return g.useEffect(() => e(W.DEBT_DETAILS_VIEW), []), /* @__PURE__ */ l(b, { bgcolor: "background.paper", children: [
11817
11817
  n?.goal && /* @__PURE__ */ l(Z, { children: [
11818
11818
  /* @__PURE__ */ t($c, { goal: n.goal }),
11819
11819
  /* @__PURE__ */ t(P, {}),
@@ -11930,7 +11930,7 @@ const zc = ({
11930
11930
  );
11931
11931
  }, fp = x(() => {
11932
11932
  const { debts: e } = T(), { monthlyCashFlowProfile: n, updateMonthlyCashFlowProfile: i } = dt(), { onEvent: a } = X(), [o, r] = g.useState(n?.extra_payment ?? 0), s = o < 0 || o > 9999999999e-2, c = async () => {
11933
- n && (await i({ ...n, extra_payment: o }), n.extra_payment = o, a(F.DEBTS_SAVE_PAYDOWN_ACTION, {
11933
+ n && (await i({ ...n, extra_payment: o }), n.extra_payment = o, a(W.DEBTS_SAVE_PAYDOWN_ACTION, {
11934
11934
  user_guid: n?.user_guid
11935
11935
  }));
11936
11936
  }, d = () => {
@@ -12177,10 +12177,10 @@ const Kt = (e) => /* @__PURE__ */ t(C, { fontWeight: 600, variant: "Small", chil
12177
12177
  hideFooter: !0,
12178
12178
  initialState: { sorting: { sortModel: _ } },
12179
12179
  onRowClick: (y) => {
12180
- o(), s(F.TRENDS_CLICK_TABLE_ROW, { account_guid: y.row.guid });
12180
+ o(), s(W.TRENDS_CLICK_TABLE_ROW, { account_guid: y.row.guid });
12181
12181
  },
12182
12182
  onSortModelChange: (y) => {
12183
- u(y), s(F.TRENDS_CLICK_TABLE_SORT);
12183
+ u(y), s(W.TRENDS_CLICK_TABLE_SORT);
12184
12184
  },
12185
12185
  rows: m,
12186
12186
  slotProps: {
@@ -12242,7 +12242,7 @@ const Kt = (e) => /* @__PURE__ */ t(C, { fontWeight: 600, variant: "Small", chil
12242
12242
  text: a.priority_sort_highest_balance
12243
12243
  }
12244
12244
  ], d = (_) => {
12245
- r(_), i(F.DEBTS_CLICK_PRIORITY, { debts_priority: _ });
12245
+ r(_), i(W.DEBTS_CLICK_PRIORITY, { debts_priority: _ });
12246
12246
  };
12247
12247
  return /* @__PURE__ */ t(
12248
12248
  ks,
@@ -12288,7 +12288,7 @@ const Kt = (e) => /* @__PURE__ */ t(C, { fontWeight: 600, variant: "Small", chil
12288
12288
  );
12289
12289
  }), Np = x(() => {
12290
12290
  const { onEvent: e } = X(), { debts: n } = T(), { selectedDebtPriority: i } = fn(), [a, o] = g.useState(null), r = (_) => {
12291
- o(_.currentTarget), e(F.DEBTS_CLICK_PRIORITIZE);
12291
+ o(_.currentTarget), e(W.DEBTS_CLICK_PRIORITIZE);
12292
12292
  }, s = () => {
12293
12293
  o(null);
12294
12294
  }, c = !!a, d = g.useMemo(() => ({
@@ -12357,19 +12357,19 @@ const Kt = (e) => /* @__PURE__ */ t(C, { fontWeight: 600, variant: "Small", chil
12357
12357
  return Rp(G, I, pe);
12358
12358
  }, [G, I, k]);
12359
12359
  g.useEffect(() => {
12360
- y(w), m(F.DEBTS_VIEW);
12360
+ y(w), m(W.DEBTS_VIEW);
12361
12361
  }, []), g.useEffect(() => {
12362
12362
  y(w);
12363
12363
  }, [w]), g.useEffect(() => {
12364
12364
  E && R().finally();
12365
12365
  }, [E]);
12366
- const L = (pe) => _(pe), W = () => {
12366
+ const L = (pe) => _(pe), F = () => {
12367
12367
  const pe = w.find((ke) => ke.guid === d), ve = M.find((ke) => ke.guid === d);
12368
12368
  pe && S(pe), ve && v(ve), a(!0);
12369
- }, $ = () => m(F.DEBTS_CLICK_FILTER), ue = () => {
12370
- c(!0), m(F.DEBTS_CLICK_SNOWBALL_CTA);
12369
+ }, $ = () => m(W.DEBTS_CLICK_FILTER), ue = () => {
12370
+ c(!0), m(W.DEBTS_CLICK_SNOWBALL_CTA);
12371
12371
  }, _e = () => {
12372
- r(!0), m(F.DEBTS_CLICK_PAYDOWN);
12372
+ r(!0), m(W.DEBTS_CLICK_PAYDOWN);
12373
12373
  };
12374
12374
  return !N || !f || !E ? /* @__PURE__ */ t(de, {}) : /* @__PURE__ */ l(
12375
12375
  ft,
@@ -12400,7 +12400,7 @@ const Kt = (e) => /* @__PURE__ */ t(C, { fontWeight: 600, variant: "Small", chil
12400
12400
  debts: M,
12401
12401
  height: h ? 250 : void 0,
12402
12402
  hoveredDebtGuid: d,
12403
- onClickArea: W,
12403
+ onClickArea: F,
12404
12404
  onHoverArea: L,
12405
12405
  sx: { mr: h ? "4px" : "-48px" }
12406
12406
  }
@@ -12421,7 +12421,7 @@ const Kt = (e) => /* @__PURE__ */ t(C, { fontWeight: 600, variant: "Small", chil
12421
12421
  {
12422
12422
  debts: M,
12423
12423
  hoveredDebtGuid: d,
12424
- onClickRow: W,
12424
+ onClickRow: F,
12425
12425
  onHoverRow: L
12426
12426
  }
12427
12427
  ) })
@@ -12663,7 +12663,7 @@ const Hp = ({ list: e, onClickItem: n }) => /* @__PURE__ */ t(O, { sx: { bgcolor
12663
12663
  footerRightContent: u,
12664
12664
  isFinacialStrengthGraph: h = !1
12665
12665
  }) => {
12666
- const p = qe(), m = -Math.PI / 1.35, f = Math.PI / 1.35, E = f - m, y = E / (r - o), S = (n - o) * y, I = m + S + 0.02, v = i !== "SM" ? 0.1 : 0.12, w = e, N = e * (1 - v), R = w * 2.5, k = R / 2, G = R / 2, M = (N + w) / 2, L = n !== 25 && n !== 50 && n !== 75 && n !== 100 ? 0 : 0.12, [W, $] = Vp(M, I, L), ue = n / 25, _e = {
12666
+ const p = qe(), m = -Math.PI / 1.35, f = Math.PI / 1.35, E = f - m, y = E / (r - o), S = (n - o) * y, I = m + S + 0.02, v = i !== "SM" ? 0.1 : 0.12, w = e, N = e * (1 - v), R = w * 2.5, k = R / 2, G = R / 2, M = (N + w) / 2, L = n !== 25 && n !== 50 && n !== 75 && n !== 100 ? 0 : 0.12, [F, $] = Vp(M, I, L), ue = n / 25, _e = {
12667
12667
  L: { markerSize: 12, healthScoreFontSize: 64 },
12668
12668
  M: { markerSize: 10, healthScoreFontSize: 48 },
12669
12669
  SM: { markerSize: 3, healthScoreFontSize: 14 }
@@ -12727,7 +12727,7 @@ const Hp = ({ list: e, onClickItem: n }) => /* @__PURE__ */ t(O, { sx: { bgcolor
12727
12727
  children: n >= o && n <= r && /* @__PURE__ */ t(
12728
12728
  "circle",
12729
12729
  {
12730
- cx: k + W,
12730
+ cx: k + F,
12731
12731
  cy: G + $,
12732
12732
  fill: p.palette.common.white,
12733
12733
  r: _e[i].markerSize,
@@ -14572,11 +14572,11 @@ const l1 = (e, n) => {
14572
14572
  updateGoal: m
14573
14573
  } = dt(), { user: f } = Ct(), [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(() => {
14574
14574
  const L = S ? d : _;
14575
- return n.filter((W) => L.some(($) => $.account_guid === W.guid));
14575
+ return n.filter((F) => L.some(($) => $.account_guid === F.guid));
14576
14576
  }, [S, n, d, _]), w = g.useMemo(() => {
14577
14577
  if (!u) return !1;
14578
- const { account_guid: L, track_type: W, name: $, amount: ue, retirement_age: _e } = u;
14579
- return W === Y.SAVINGS_TRACK ? L ? !!$ && !!ue : !1 : W === Y.RETIREMENT_TRACK ? v.length ? !!$ && !!ue && !!_e && !!f.birthday : !1 : !0;
14578
+ const { account_guid: L, track_type: F, name: $, amount: ue, retirement_age: _e } = u;
14579
+ return F === Y.SAVINGS_TRACK ? L ? !!$ && !!ue : !1 : F === Y.RETIREMENT_TRACK ? v.length ? !!$ && !!ue && !!_e && !!f.birthday : !1 : !0;
14580
14580
  }, [u, v, f.birthday]);
14581
14581
  let N = a.delete_button, R = () => y(!0);
14582
14582
  S ? (R = () => k(), N = a.save_button) : I && (R = () => M(), N = i.mark_as_complete_button);
@@ -14637,14 +14637,14 @@ const l1 = (e, n) => {
14637
14637
  H(k, "0,0")
14638
14638
  ) : "";
14639
14639
  g.useEffect(() => {
14640
- c(o), i(F.GOALS_VIEW);
14640
+ c(o), i(W.GOALS_VIEW);
14641
14641
  }, []), g.useEffect(() => {
14642
14642
  s && m().finally();
14643
14643
  }, [s, N, R, k]);
14644
- const W = () => {
14645
- i(F.GOALS_CLICK_FILTER);
14644
+ const F = () => {
14645
+ i(W.GOALS_CLICK_FILTER);
14646
14646
  }, $ = () => {
14647
- w(!0), i(F.GOALS_CLICK_ADD);
14647
+ w(!0), i(W.GOALS_CLICK_ADD);
14648
14648
  }, ue = (pe) => {
14649
14649
  w(!1), pe === Y.SAVINGS_TRACK ? I(0) : pe === Y.DEBT_TRACK ? I(1) : pe === Y.RETIREMENT_TRACK && I(2);
14650
14650
  }, _e = g.useMemo(
@@ -14662,7 +14662,7 @@ const l1 = (e, n) => {
14662
14662
  onClick: $
14663
14663
  }
14664
14664
  ],
14665
- onAccountsFilterClick: W,
14665
+ onAccountsFilterClick: F,
14666
14666
  onBackClick: e,
14667
14667
  sx: n,
14668
14668
  title: d.title,
@@ -14979,7 +14979,7 @@ const w1 = x(({ goal: e }) => {
14979
14979
  g.useEffect(() => {
14980
14980
  r(n);
14981
14981
  }, []), g.useEffect(() => {
14982
- o && (d().finally(), i(F.GOALS_LOAD_WIDGET, {
14982
+ o && (d().finally(), i(W.GOALS_LOAD_WIDGET, {
14983
14983
  state: n?.length ? "default" : "zeroState"
14984
14984
  }));
14985
14985
  }, [o]);
@@ -14988,7 +14988,7 @@ const w1 = x(({ goal: e }) => {
14988
14988
  [c, _]
14989
14989
  ), h = () => {
14990
14990
  i(
14991
- u ? F.GOALS_CLICK_GET_STARTED : F.GOALS_CLICK_VIEW_DETAILS
14991
+ u ? W.GOALS_CLICK_GET_STARTED : W.GOALS_CLICK_VIEW_DETAILS
14992
14992
  ), e();
14993
14993
  };
14994
14994
  return !_ || !s || !o ? /* @__PURE__ */ t(de, {}) : /* @__PURE__ */ t(
@@ -15963,13 +15963,13 @@ const pC = ({ amount: e, copy: n, trendValue: i }) => {
15963
15963
  await h(d), await u(1), i(!0);
15964
15964
  };
15965
15965
  if (g.useEffect(() => _(a), [a]), g.useEffect(() => {
15966
- c && f().finally(), o(F.NET_WORTH_LOAD_WIDGET, {
15966
+ c && f().finally(), o(W.NET_WORTH_LOAD_WIDGET, {
15967
15967
  state: a?.length ? "default" : "zeroState"
15968
15968
  });
15969
15969
  }, [c]), !n) return /* @__PURE__ */ t(de, { height: 100 });
15970
15970
  const E = () => {
15971
15971
  o(
15972
- a.length ? F.NET_WORTH_CLICK_VIEW_DETAILS : F.NET_WORTH_CLICK_GET_STARTED
15972
+ a.length ? W.NET_WORTH_CLICK_VIEW_DETAILS : W.NET_WORTH_CLICK_GET_STARTED
15973
15973
  ), e();
15974
15974
  };
15975
15975
  return /* @__PURE__ */ t(
@@ -16161,17 +16161,17 @@ const pC = ({ amount: e, copy: n, trendValue: i }) => {
16161
16161
  selectedData: f,
16162
16162
  setHoveredData: E,
16163
16163
  setSelectedData: y
16164
- } = mc(), { isMobile: S } = fe(), { onEvent: I } = X(), [v, w] = g.useState(!1), [N, R] = g.useState(6), [k, G] = g.useState(!1), [M, L] = g.useState(!1), [W, $] = g.useState(!1), ue = async () => {
16164
+ } = mc(), { isMobile: S } = fe(), { onEvent: I } = X(), [v, w] = g.useState(!1), [N, R] = g.useState(6), [k, G] = g.useState(!1), [M, L] = g.useState(!1), [F, $] = g.useState(!1), ue = async () => {
16165
16165
  await p(a), await h(N), w(!0);
16166
16166
  };
16167
16167
  g.useEffect(() => {
16168
- I(F.NET_WORTH_VIEW);
16168
+ I(W.NET_WORTH_VIEW);
16169
16169
  }, []), g.useEffect(() => {
16170
16170
  o(c);
16171
16171
  }, [c]), g.useEffect(() => {
16172
16172
  i && ue().finally();
16173
16173
  }, [i, a]), g.useEffect(() => {
16174
- I(F.NET_WORTH_WIDGET_CLICK_TIMEFRAME, { time_period: N + "M" }), h(N).finally();
16174
+ I(W.NET_WORTH_WIDGET_CLICK_TIMEFRAME, { time_period: N + "M" }), h(N).finally();
16175
16175
  }, [N]);
16176
16176
  const _e = (K, ge) => {
16177
16177
  y(ge), K.currentTarget instanceof HTMLDivElement && G(!0);
@@ -16180,7 +16180,7 @@ const pC = ({ amount: e, copy: n, trendValue: i }) => {
16180
16180
  }, ve = () => {
16181
16181
  E(null);
16182
16182
  }, ke = () => {
16183
- I(F.NET_WORTH_WIDGET_CLICK_ASSETS_LIABILITIES), L(!0);
16183
+ I(W.NET_WORTH_WIDGET_CLICK_ASSETS_LIABILITIES), L(!0);
16184
16184
  }, Ce = async (K) => {
16185
16185
  const ge = K[0], Q = K[1];
16186
16186
  ge && Q && R(Vd(Q, ge));
@@ -16193,7 +16193,7 @@ const pC = ({ amount: e, copy: n, trendValue: i }) => {
16193
16193
  onMouseLeave: ve,
16194
16194
  selectedData: f
16195
16195
  }, ze = () => {
16196
- $(!0), I(F.ACCOUNTS_CLICK_CONNECT);
16196
+ $(!0), I(W.ACCOUNTS_CLICK_CONNECT);
16197
16197
  };
16198
16198
  return n ? /* @__PURE__ */ t(
16199
16199
  ft,
@@ -16203,7 +16203,7 @@ const pC = ({ amount: e, copy: n, trendValue: i }) => {
16203
16203
  onRangeChanged: Ce
16204
16204
  },
16205
16205
  dateRangeVariant: S ? "timeframetabs" : "timeframebuttons",
16206
- onAccountsFilterClick: () => I(F.NET_WORTH_WIDGET_CLICK_FILTER),
16206
+ onAccountsFilterClick: () => I(W.NET_WORTH_WIDGET_CLICK_FILTER),
16207
16207
  onBackClick: e,
16208
16208
  showDividerAboveDateSelector: !1,
16209
16209
  sx: {
@@ -16255,7 +16255,7 @@ const pC = ({ amount: e, copy: n, trendValue: i }) => {
16255
16255
  bi,
16256
16256
  {
16257
16257
  onClose: () => $(!1),
16258
- showConnectionsWidget: W,
16258
+ showConnectionsWidget: F,
16259
16259
  title: r.manage_connections
16260
16260
  }
16261
16261
  ),
@@ -16847,8 +16847,8 @@ const dl = x(() => {
16847
16847
  }), [f, E] = g.useState(!1), [y, S] = g.useState(!1), I = g.useRef(null), v = p.email && !h.email_is_verified && !f, w = p.phone && !h.phone_is_verified && !f;
16848
16848
  g.useEffect(() => {
16849
16849
  if (n) {
16850
- const L = (W) => {
16851
- I.current && !I.current.contains(W.target) && f && S(!0);
16850
+ const L = (F) => {
16851
+ I.current && !I.current.contains(F.target) && f && S(!0);
16852
16852
  };
16853
16853
  return document.addEventListener("mousedown", L), () => {
16854
16854
  document.removeEventListener("mousedown", L);
@@ -16857,8 +16857,8 @@ const dl = x(() => {
16857
16857
  }, [f]);
16858
16858
  const N = () => {
16859
16859
  if (p.birthday) {
16860
- const L = new Date(p.birthday * 1e3), W = L.getUTCFullYear(), $ = L.getUTCMonth(), ue = L.getUTCDate();
16861
- return new Date(W, $, ue);
16860
+ const L = new Date(p.birthday * 1e3), F = L.getUTCFullYear(), $ = L.getUTCMonth(), ue = L.getUTCDate();
16861
+ return new Date(F, $, ue);
16862
16862
  }
16863
16863
  }, R = async () => {
16864
16864
  await u({ ...h, ...p }), E(!1);
@@ -16867,11 +16867,11 @@ const dl = x(() => {
16867
16867
  }, G = () => {
16868
16868
  S(!1);
16869
16869
  }, M = (L) => {
16870
- const W = {
16870
+ const F = {
16871
16871
  ...p,
16872
16872
  ...L
16873
16873
  };
16874
- m(W), E(JSON.stringify({ ...h, ...W }) !== JSON.stringify(h));
16874
+ m(F), E(JSON.stringify({ ...h, ...F }) !== JSON.stringify(h));
16875
16875
  };
16876
16876
  return /* @__PURE__ */ l(Z, { children: [
16877
16877
  /* @__PURE__ */ l(
@@ -21587,10 +21587,10 @@ const kf = (e) => e.reduce((i, a) => {
21587
21587
  hideFooter: !0,
21588
21588
  initialState: { sorting: { sortModel: d } },
21589
21589
  onRowClick: (m) => {
21590
- a?.(m.row.category), s(F.TRENDS_CLICK_TABLE_ROW);
21590
+ a?.(m.row.category), s(W.TRENDS_CLICK_TABLE_ROW);
21591
21591
  },
21592
21592
  onSortModelChange: (m) => {
21593
- _(m), s(F.TRENDS_CLICK_TABLE_SORT);
21593
+ _(m), s(W.TRENDS_CLICK_TABLE_SORT);
21594
21594
  },
21595
21595
  rows: p,
21596
21596
  slotProps: { baseIconButton: { color: "secondary", sx: { ml: 8 } } },
@@ -21616,7 +21616,7 @@ const kf = (e) => e.reduce((i, a) => {
21616
21616
  dateRange: n,
21617
21617
  custom: (m) => e === "" || e === m.category_guid || e === m.top_level_category_guid
21618
21618
  });
21619
- }, [r, e, n]), g.useEffect(() => o(F.TRENDS_VIEW_TRANSACTIONS), []);
21619
+ }, [r, e, n]), g.useEffect(() => o(W.TRENDS_VIEW_TRANSACTIONS), []);
21620
21620
  const p = () => {
21621
21621
  u(""), a();
21622
21622
  };
@@ -21634,9 +21634,9 @@ const kf = (e) => e.reduce((i, a) => {
21634
21634
  }
21635
21635
  );
21636
21636
  }, bl = x(Vf), Kf = ({ onBackClick: e, sx: n }) => {
21637
- const { onEvent: i } = X(), { isDesktop: a, isTablet: o, isMobile: r } = fe(), { visibleAccounts: s } = ye(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: d, getCategoryName: _ } = Ue(), { sortedTransactions: u } = Me(), { selectedDateRange: h, setSelectedDateRange: p } = gi(), { isCopyLoaded: m, isInitialized: f, selectedAccounts: E, setSelectedAccounts: y } = le(), { trends: S } = T(), [I, v] = g.useState(!1), [w, N] = g.useState(!1), [R, k] = g.useState("Chart"), [G, M] = g.useState(""), [L, W] = g.useState(window.innerHeight), ue = L - (r ? 315 : 345);
21637
+ const { onEvent: i } = X(), { isDesktop: a, isTablet: o, isMobile: r } = fe(), { visibleAccounts: s } = ye(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: d, getCategoryName: _ } = Ue(), { sortedTransactions: u } = Me(), { selectedDateRange: h, setSelectedDateRange: p } = gi(), { isCopyLoaded: m, isInitialized: f, selectedAccounts: E, setSelectedAccounts: y } = le(), { trends: S } = T(), [I, v] = g.useState(!1), [w, N] = g.useState(!1), [R, k] = g.useState("Chart"), [G, M] = g.useState(""), [L, F] = g.useState(window.innerHeight), ue = L - (r ? 315 : 345);
21638
21638
  g.useEffect(() => {
21639
- const Q = () => W(window.innerHeight);
21639
+ const Q = () => F(window.innerHeight);
21640
21640
  return window.addEventListener("resize", Q), () => window.removeEventListener("resize", Q);
21641
21641
  }, []), g.useEffect(() => {
21642
21642
  y(s);
@@ -21663,24 +21663,24 @@ const kf = (e) => e.reduce((i, a) => {
21663
21663
  unstackedDatasets: Te.filter(Da)
21664
21664
  };
21665
21665
  }, [d, G, h]), pe = (Q, Te) => {
21666
- k(Te ?? R), i(F.TRENDS_CLICK_TOGGLE);
21666
+ k(Te ?? R), i(W.TRENDS_CLICK_TOGGLE);
21667
21667
  }, ve = (Q) => {
21668
21668
  const Te = go(Q?.[0], 1), be = Q?.[1], ut = Qs(be, Te);
21669
- p({ start: Te, end: be }), i(F.TRENDS_CLICK_DATE, {
21669
+ p({ start: Te, end: be }), i(W.TRENDS_CLICK_DATE, {
21670
21670
  time_period: ut + "M"
21671
21671
  });
21672
21672
  }, ke = () => {
21673
- i(F.TRENDS_CLICK_FILTER);
21673
+ i(W.TRENDS_CLICK_FILTER);
21674
21674
  }, Ce = (Q) => {
21675
21675
  M(Q);
21676
21676
  }, me = (Q) => {
21677
- M(Q), i(F.TRENDS_CLICK_LEGEND, { category: _(Q) });
21677
+ M(Q), i(W.TRENDS_CLICK_LEGEND, { category: _(Q) });
21678
21678
  }, ze = (Q) => {
21679
- i(F.TRENDS_HOVER_LEGEND, { category: _(Q) });
21679
+ i(W.TRENDS_HOVER_LEGEND, { category: _(Q) });
21680
21680
  }, K = (Q) => {
21681
- i(F.TRENDS_HOVER_AREA, { category: Q });
21681
+ i(W.TRENDS_HOVER_AREA, { category: Q });
21682
21682
  }, ge = (Q) => {
21683
- i(F.TRENDS_HOVER_POINT, { category: Q });
21683
+ i(W.TRENDS_HOVER_POINT, { category: Q });
21684
21684
  };
21685
21685
  return !m || !f || !I ? /* @__PURE__ */ t(de, {}) : /* @__PURE__ */ l(
21686
21686
  ft,
@@ -21902,7 +21902,7 @@ const kf = (e) => e.reduce((i, a) => {
21902
21902
  _(n);
21903
21903
  }, [n]), g.useEffect(() => {
21904
21904
  u && o(d, s.start).then(() => {
21905
- i(F.TRENDS_LOAD_WIDGET, {
21905
+ i(W.TRENDS_LOAD_WIDGET, {
21906
21906
  state: n?.length ? "default" : "zeroState"
21907
21907
  });
21908
21908
  });
@@ -21915,7 +21915,7 @@ const kf = (e) => e.reduce((i, a) => {
21915
21915
  [a, s]
21916
21916
  ), [m, f] = h, [E, y] = p, S = qr(f.y, m.y), I = qr(y.y, E.y), v = u && !n?.length, w = () => {
21917
21917
  i(
21918
- v ? F.TRENDS_CLICK_GET_STARTED : F.TRENDS_CLICK_VIEW_MORE
21918
+ v ? W.TRENDS_CLICK_GET_STARTED : W.TRENDS_CLICK_VIEW_MORE
21919
21919
  ), e();
21920
21920
  };
21921
21921
  return !r || !u ? /* @__PURE__ */ t(de, {}) : /* @__PURE__ */ t(
@@ -23538,7 +23538,7 @@ const Ui = g.createContext(null), a0 = ({
23538
23538
  visibleCardsCount: m = 1
23539
23539
  // Default to 1 card visible
23540
23540
  }) => {
23541
- const f = g.useRef(null), E = g.useRef(null), [y, S] = g.useState(0), [I, v] = g.useState(null), [w, N] = g.useState(null), [R, k] = g.useState(null), [G, M] = g.useState(c), { carouselCopy: L } = Kn(), { onEvent: W } = Vi();
23541
+ const f = g.useRef(null), E = g.useRef(null), [y, S] = g.useState(0), [I, v] = g.useState(null), [w, N] = g.useState(null), [R, k] = g.useState(null), [G, M] = g.useState(c), { carouselCopy: L } = Kn(), { onEvent: F } = Vi();
23542
23542
  g.useEffect(() => {
23543
23543
  if (f.current && !e) {
23544
23544
  const K = f.current.offsetWidth, ge = 8;
@@ -23575,13 +23575,13 @@ const Ui = g.createContext(null), a0 = ({
23575
23575
  }
23576
23576
  }, [e, E]);
23577
23577
  const $ = () => {
23578
- W(zt.ON_CAROUSEL_FORWARD_CLICK), f.current && R && f.current.scrollTo({
23578
+ F(zt.ON_CAROUSEL_FORWARD_CLICK), f.current && R && f.current.scrollTo({
23579
23579
  left: y + R + 8,
23580
23580
  top: 0,
23581
23581
  behavior: "smooth"
23582
23582
  });
23583
23583
  }, ue = () => {
23584
- W(zt.ON_CAROUSEL_BACK_CLICK), f.current && R && f.current.scrollTo({
23584
+ F(zt.ON_CAROUSEL_BACK_CLICK), f.current && R && f.current.scrollTo({
23585
23585
  left: Math.max(0, y - (R + 8)),
23586
23586
  top: 0,
23587
23587
  behavior: "smooth"
@@ -23590,7 +23590,7 @@ const Ui = g.createContext(null), a0 = ({
23590
23590
  f.current && S(f.current.scrollLeft);
23591
23591
  }, pe = () => {
23592
23592
  if (!w || !I) return;
23593
- w - I > g0 ? W(zt.ON_CAROUSEL_FORWARD_SWIPE) : W(zt.ON_CAROUSEL_BACK_SWIPE);
23593
+ w - I > g0 ? F(zt.ON_CAROUSEL_FORWARD_SWIPE) : F(zt.ON_CAROUSEL_BACK_SWIPE);
23594
23594
  }, ve = (K) => {
23595
23595
  v(K.targetTouches[0].clientX);
23596
23596
  }, ke = (K) => {
@@ -23922,7 +23922,7 @@ const Ui = g.createContext(null), a0 = ({
23922
23922
  visibleCardsCount: R = 1,
23923
23923
  widthOverrides: k
23924
23924
  }) => {
23925
- const G = qe(), [M, L] = Tt("STANDARD"), [W, $] = Tt(!1), ue = qu([_], yn), _e = Zu([u], yn);
23925
+ const G = qe(), [M, L] = Tt("STANDARD"), [F, $] = Tt(!1), ue = qu([_], yn), _e = Zu([u], yn);
23926
23926
  g.useEffect(() => {
23927
23927
  yn.isInitialized || yn.initialize(r, I, c);
23928
23928
  }, [r, I, c, yn.isInitialized]), g.useEffect(() => {
@@ -23951,7 +23951,7 @@ const Ui = g.createContext(null), a0 = ({
23951
23951
  /* @__PURE__ */ t(tu, {}),
23952
23952
  /* @__PURE__ */ t(a0, { onEvent: ue, onPageview: _e, store: yn, children: /* @__PURE__ */ l(E0, { heightOverrides: s, widthOverrides: k, children: [
23953
23953
  (n || !yn.isInitialized) && /* @__PURE__ */ t(S0, {}),
23954
- W && E && /* @__PURE__ */ t(
23954
+ F && E && /* @__PURE__ */ t(
23955
23955
  y0,
23956
23956
  {
23957
23957
  clientColorScheme: a,
@@ -23960,7 +23960,7 @@ const Ui = g.createContext(null), a0 = ({
23960
23960
  widthOverrides: k
23961
23961
  }
23962
23962
  ),
23963
- W && !!i.length && /* @__PURE__ */ t(
23963
+ F && !!i.length && /* @__PURE__ */ t(
23964
23964
  f0,
23965
23965
  {
23966
23966
  allowSingleCardPeeking: e,
@@ -23973,8 +23973,8 @@ const Ui = g.createContext(null), a0 = ({
23973
23973
  ...pe
23974
23974
  }
23975
23975
  ),
23976
- W && !i.length && w && /* @__PURE__ */ t(vl, { clientColorScheme: a, ...ve }),
23977
- W && !i.length && !w && /* @__PURE__ */ t(Dl, { ...ve })
23976
+ F && !i.length && w && /* @__PURE__ */ t(vl, { clientColorScheme: a, ...ve }),
23977
+ F && !i.length && !w && /* @__PURE__ */ t(Dl, { ...ve })
23978
23978
  ] }) })
23979
23979
  ] })
23980
23980
  );
@@ -24223,7 +24223,7 @@ const Ui = g.createContext(null), a0 = ({
24223
24223
  selectedAccounts: I,
24224
24224
  selectedAccountGuids: v,
24225
24225
  setSelectedAccounts: w
24226
- } = le(), { trends: N } = T(), R = Qu(), k = r || o, [G, M] = g.useState(!1), [L, W] = g.useState(!1), [$, ue] = g.useState("Chart"), [_e, pe] = g.useState(""), [ve, ke] = g.useState(!1);
24226
+ } = le(), { trends: N } = T(), R = Qu(), k = r || o, [G, M] = g.useState(!1), [L, F] = g.useState(!1), [$, ue] = g.useState("Chart"), [_e, pe] = g.useState(""), [ve, ke] = g.useState(!1);
24227
24227
  g.useEffect(() => {
24228
24228
  w(c);
24229
24229
  }, [c]), g.useEffect(() => {
@@ -24255,14 +24255,14 @@ const Ui = g.createContext(null), a0 = ({
24255
24255
  }, me = () => {
24256
24256
  f(null), ke(!1);
24257
24257
  }, ze = (Te, be) => {
24258
- ue(be ?? $), a(F.TRENDS_CLICK_TOGGLE);
24258
+ ue(be ?? $), a(W.TRENDS_CLICK_TOGGLE);
24259
24259
  }, K = (Te) => {
24260
24260
  const be = go(Te?.[0], 1), ut = Te?.[1], tn = Qs(ut, be);
24261
- E({ start: be, end: ut }), a(F.TRENDS_CLICK_DATE, {
24261
+ E({ start: be, end: ut }), a(W.TRENDS_CLICK_DATE, {
24262
24262
  time_period: tn + "M"
24263
24263
  });
24264
24264
  }, ge = () => {
24265
- a(F.TRENDS_CLICK_FILTER);
24265
+ a(W.TRENDS_CLICK_FILTER);
24266
24266
  }, Q = (Te) => {
24267
24267
  pe(Te);
24268
24268
  };
@@ -24352,7 +24352,7 @@ const Ui = g.createContext(null), a0 = ({
24352
24352
  categoryGuid: _e,
24353
24353
  dateRange: m,
24354
24354
  isOpen: L,
24355
- onClose: () => W(!1)
24355
+ onClose: () => F(!1)
24356
24356
  }
24357
24357
  )
24358
24358
  ]
@@ -24649,7 +24649,7 @@ const Va = ({
24649
24649
  Va,
24650
24650
  {
24651
24651
  onClick: () => {
24652
- E({ is_hidden: !d.is_hidden }), m(F.ACCOUNT_DETAILS_CLICK_HIDE, { account_guid: d.guid });
24652
+ E({ is_hidden: !d.is_hidden }), m(W.ACCOUNT_DETAILS_CLICK_HIDE, { account_guid: d.guid });
24653
24653
  },
24654
24654
  primaryText: d.is_hidden ? h.unhide_account : h.hide_Account,
24655
24655
  secondaryText: d.is_hidden ? h.include_this_account : h.exclude_this_account,
@@ -24660,7 +24660,7 @@ const Va = ({
24660
24660
  Va,
24661
24661
  {
24662
24662
  onClick: () => {
24663
- n(!0), m(F.ACCOUNT_DETAILS_CLICK_MARK_CLOSED, {
24663
+ n(!0), m(W.ACCOUNT_DETAILS_CLICK_MARK_CLOSED, {
24664
24664
  account_guid: d.guid
24665
24665
  });
24666
24666
  },
@@ -24674,7 +24674,7 @@ const Va = ({
24674
24674
  {
24675
24675
  isLast: !0,
24676
24676
  onClick: () => {
24677
- a(!0), m(F.ACCOUNT_DETAILS_CLICK_MARK_DUPLICATE, {
24677
+ a(!0), m(W.ACCOUNT_DETAILS_CLICK_MARK_DUPLICATE, {
24678
24678
  account_guid: d.guid
24679
24679
  });
24680
24680
  },
@@ -25117,7 +25117,7 @@ const Va = ({
25117
25117
  ] });
25118
25118
  }, q0 = x(X0), Z0 = () => {
25119
25119
  const { onEvent: e } = X();
25120
- return g.useEffect(() => e(F.ACCOUNT_DETAILS_VIEW), []), /* @__PURE__ */ l(ae, { children: [
25120
+ return g.useEffect(() => e(W.ACCOUNT_DETAILS_VIEW), []), /* @__PURE__ */ l(ae, { children: [
25121
25121
  /* @__PURE__ */ t(q0, {}),
25122
25122
  /* @__PURE__ */ t(z0, {}),
25123
25123
  /* @__PURE__ */ t(K0, {})
@@ -25188,7 +25188,7 @@ const Va = ({
25188
25188
  dateRange: { start: zd(jd(), 90), end: $d() },
25189
25189
  accounts: [a.guid]
25190
25190
  });
25191
- }, [a]), g.useEffect(() => i(F.ACCOUNT_DETAILS_VIEW_TRANSACTIONS), []), /* @__PURE__ */ l(Z, { children: [
25191
+ }, [a]), g.useEffect(() => i(W.ACCOUNT_DETAILS_VIEW_TRANSACTIONS), []), /* @__PURE__ */ l(Z, { children: [
25192
25192
  /* @__PURE__ */ t(Vn, { onClick: n }),
25193
25193
  c && /* @__PURE__ */ t(
25194
25194
  ce,
@@ -25259,7 +25259,7 @@ const Va = ({
25259
25259
  }
25260
25260
  }, [_, e]);
25261
25261
  const f = (y) => {
25262
- n(y.guid), c(F.ACCOUNTS_CLICK_ACCOUNT, {
25262
+ n(y.guid), c(W.ACCOUNTS_CLICK_ACCOUNT, {
25263
25263
  account_guid: y.guid,
25264
25264
  account_type: y.account_type
25265
25265
  });
@@ -25386,9 +25386,9 @@ const Va = ({
25386
25386
  p(c);
25387
25387
  }, [c]);
25388
25388
  const y = () => {
25389
- a(!0), E(F.ACCOUNTS_CLICK_CONNECT);
25389
+ a(!0), E(W.ACCOUNTS_CLICK_CONNECT);
25390
25390
  }, S = () => {
25391
- r(!0), E(F.ACCOUNTS_CLICK_CONNECT);
25391
+ r(!0), E(W.ACCOUNTS_CLICK_CONNECT);
25392
25392
  };
25393
25393
  return u ? /* @__PURE__ */ t(
25394
25394
  ft,
@@ -25402,7 +25402,7 @@ const Va = ({
25402
25402
  onClick: S
25403
25403
  }
25404
25404
  ] : [],
25405
- onAccountsFilterClick: () => E(F.ACCOUNTS_CLICK_FILTER),
25405
+ onAccountsFilterClick: () => E(W.ACCOUNTS_CLICK_FILTER),
25406
25406
  onBackClick: e,
25407
25407
  sx: n,
25408
25408
  title: d.title,
@@ -26568,12 +26568,12 @@ const Nb = ({
26568
26568
  unavailableWidth: r = 24
26569
26569
  }) => {
26570
26570
  const { onEvent: s } = X(), { setSelectedBudget: c } = _t(), { isLoadingCategoryTotals: d } = Ue(), { isInitialized: _ } = le(), { accounts: u } = T(), { availableWidth: h } = pn(), { isMobile: p } = fe(), [m, f] = g.useState(!1), E = g.useMemo(() => h - r, [h]), y = (I) => {
26571
- c(I), s(F.BUDGETS_CLICK_BUDGET_CATEGORY, {
26571
+ c(I), s(W.BUDGETS_CLICK_BUDGET_CATEGORY, {
26572
26572
  budget_category: I.category.name,
26573
26573
  click_type: "bubble"
26574
26574
  });
26575
26575
  }, S = () => {
26576
- f(!0), s(F.ACCOUNTS_CLICK_CONNECT);
26576
+ f(!0), s(W.ACCOUNTS_CLICK_CONNECT);
26577
26577
  };
26578
26578
  return d ? /* @__PURE__ */ t(b, { alignItems: "center", height: n, justifyContent: "center", width: Math.abs(E), children: /* @__PURE__ */ t(de, {}) }) : /* @__PURE__ */ l(O, { ml: o || p ? 0 : 24, sx: { alignSelf: "center" }, children: [
26579
26579
  o || !_ ? /* @__PURE__ */ t(
@@ -26732,7 +26732,7 @@ const Nb = ({
26732
26732
  ] });
26733
26733
  }), Bb = (e) => {
26734
26734
  const n = Ee(), { onEvent: i } = X(), { detailedBudgets: a, isDataLoaded: o, loadBudgetData: r, setTheme: s } = _t(), { budgets: c, common: d } = T(), { isCopyLoaded: _, isInitialized: u, selectedAccounts: h } = le(), { reloadCategoryTotals: p } = Ue(), m = Y_(), f = a.length === 0, [E, y] = g.useState(!1), S = () => {
26735
- y(!0), i(F.BUDGETS_CLICK_ADD);
26735
+ y(!0), i(W.BUDGETS_CLICK_ADD);
26736
26736
  }, I = () => {
26737
26737
  y(!1);
26738
26738
  };
@@ -27126,7 +27126,7 @@ const Nb = ({
27126
27126
  ] }) });
27127
27127
  }, Yb = x(() => {
27128
27128
  const { onEvent: e } = X(), { budgets: n } = T(), { detailedBudgets: i, setSelectedBudget: a } = _t(), o = (r) => {
27129
- a(r), e(F.BUDGETS_CLICK_BUDGET_CATEGORY, {
27129
+ a(r), e(W.BUDGETS_CLICK_BUDGET_CATEGORY, {
27130
27130
  budget_category: r.category.name,
27131
27131
  click_type: "list"
27132
27132
  });
@@ -27172,7 +27172,7 @@ const Nb = ({
27172
27172
  start: Dt(/* @__PURE__ */ new Date(), 90),
27173
27173
  end: /* @__PURE__ */ new Date()
27174
27174
  }
27175
- }), m(!0), n(F.BUDGETS_CLICK_EDIT_INCOME);
27175
+ }), m(!0), n(W.BUDGETS_CLICK_EDIT_INCOME);
27176
27176
  };
27177
27177
  return /* @__PURE__ */ l(St, { elevation: 2, sx: { overflow: "visible" }, children: [
27178
27178
  /* @__PURE__ */ t(mn, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ t(at, { children: a.overview_title }) }),
@@ -27231,9 +27231,9 @@ const Nb = ({
27231
27231
  setAlert: S,
27232
27232
  setTheme: I,
27233
27233
  detailedBudgets: v
27234
- } = _t(), { loadRepeatingTransactions: w, setDateRange: N } = ot(), { reloadCategoryTotals: R } = Ue(), { isSmallTablet: k, isMobile: G, isSmallMobile: M } = fe(), L = k || G || M, [W, $] = g.useState(!1);
27234
+ } = _t(), { loadRepeatingTransactions: w, setDateRange: N } = ot(), { reloadCategoryTotals: R } = Ue(), { isSmallTablet: k, isMobile: G, isSmallMobile: M } = fe(), L = k || G || M, [F, $] = g.useState(!1);
27235
27235
  g.useEffect(() => {
27236
- I(i), h(o), u(m.start, m.end), a(F.BUDGETS_VIEW);
27236
+ I(i), h(o), u(m.start, m.end), a(W.BUDGETS_VIEW);
27237
27237
  }, []), g.useEffect(() => {
27238
27238
  h(o);
27239
27239
  }, [o]), g.useEffect(() => {
@@ -27242,9 +27242,9 @@ const Nb = ({
27242
27242
  const ue = (Ce) => {
27243
27243
  y({ start: Ce[0] || /* @__PURE__ */ new Date(), end: Ce[1] || /* @__PURE__ */ new Date() });
27244
27244
  }, _e = () => {
27245
- a(F.BUDGETS_CLICK_FILTER);
27245
+ a(W.BUDGETS_CLICK_FILTER);
27246
27246
  }, pe = () => {
27247
- $(!0), a(F.BUDGETS_CLICK_ADD);
27247
+ $(!0), a(W.BUDGETS_CLICK_ADD);
27248
27248
  }, ve = () => {
27249
27249
  $(!1);
27250
27250
  }, ke = rn(m.end, Ke(/* @__PURE__ */ new Date()));
@@ -27305,7 +27305,7 @@ const Nb = ({
27305
27305
  ce,
27306
27306
  {
27307
27307
  ariaLabelClose: s.close_aria,
27308
- isOpen: W,
27308
+ isOpen: F,
27309
27309
  onClose: () => $(!1),
27310
27310
  title: r.add_new_title,
27311
27311
  children: /* @__PURE__ */ t(Ll, { onRecalculateBudgets: ve })
@@ -27528,7 +27528,7 @@ const Qb = ({ widgets: e, isLoading: n }) => {
27528
27528
  ee,
27529
27529
  {
27530
27530
  onClick: () => {
27531
- a(!0), i(F.ACCOUNTS_CLICK_CONNECT);
27531
+ a(!0), i(W.ACCOUNTS_CLICK_CONNECT);
27532
27532
  },
27533
27533
  sx: { fontWeight: 600 },
27534
27534
  variant: "outlined",
@@ -28592,8 +28592,8 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28592
28592
  const ge = K.target.value;
28593
28593
  /^\d*\.?\d*$/.test(ge) && I(ge);
28594
28594
  }, L = (K, ge) => {
28595
- K.key === "Enter" ? W(ge) : K.key === "Escape" && y(null);
28596
- }, W = (K) => {
28595
+ K.key === "Enter" ? F(ge) : K.key === "Escape" && y(null);
28596
+ }, F = (K) => {
28597
28597
  const ge = s.find(({ guid: Te }) => Te === K);
28598
28598
  if (!ge) return;
28599
28599
  const Q = Number(S);
@@ -28966,7 +28966,7 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28966
28966
  currentEditedCostBasis: S,
28967
28967
  data: ge,
28968
28968
  editingHoldingId: E,
28969
- handleCostBasisBlur: W,
28969
+ handleCostBasisBlur: F,
28970
28970
  handleCostBasisChange: M,
28971
28971
  handleCostBasisClick: G,
28972
28972
  handleCostBasisKeyDown: L
@@ -28984,7 +28984,7 @@ const Qb = ({ widgets: e, isLoading: n }) => {
28984
28984
  accountHoldingsData: u,
28985
28985
  currentEditedCostBasis: S,
28986
28986
  editingHoldingId: E,
28987
- handleCostBasisBlur: W,
28987
+ handleCostBasisBlur: F,
28988
28988
  handleCostBasisChange: M,
28989
28989
  handleCostBasisClick: G,
28990
28990
  handleCostBasisKeyDown: L,
@@ -29013,13 +29013,13 @@ const Qb = ({ widgets: e, isLoading: n }) => {
29013
29013
  h && E().finally();
29014
29014
  }, [h]);
29015
29015
  const y = () => {
29016
- i(F.INVESTMENT_WIDGET_ACCOUNT_FILTER_CLICK);
29016
+ i(W.INVESTMENT_WIDGET_ACCOUNT_FILTER_CLICK);
29017
29017
  };
29018
29018
  if (!u || !h) return /* @__PURE__ */ t(de, {});
29019
29019
  const S = [
29020
- F.INVESTMENT_WIDGET_DETAILS_CLICK,
29021
- F.INVESTMENT_WIDGET_ALLOCATION_CLICK,
29022
- F.INVESTMENT_WIDGET_ANALYSIS_CLICK
29020
+ W.INVESTMENT_WIDGET_DETAILS_CLICK,
29021
+ W.INVESTMENT_WIDGET_ALLOCATION_CLICK,
29022
+ W.INVESTMENT_WIDGET_ANALYSIS_CLICK
29023
29023
  ], I = o.length === 0 && r.length === 0, v = [
29024
29024
  d.tab_overview_title,
29025
29025
  d.tab_allocation_title,
@@ -29054,7 +29054,7 @@ const Qb = ({ widgets: e, isLoading: n }) => {
29054
29054
  header: d.empty_state_header,
29055
29055
  icon: "bid_landscape",
29056
29056
  onClick: () => {
29057
- s(!0), i(F.ACCOUNTS_CLICK_CONNECT);
29057
+ s(!0), i(W.ACCOUNTS_CLICK_CONNECT);
29058
29058
  },
29059
29059
  primaryButton: d.overview.connect_accounts,
29060
29060
  subText: d.empty_state_description,
@@ -29109,7 +29109,9 @@ const Qb = ({ widgets: e, isLoading: n }) => {
29109
29109
  }
29110
29110
  return a;
29111
29111
  }, []), kl = (e, n, i, a) => {
29112
- const o = by(e, i, a), r = o.filter((u) => u.guid !== D.INCOME && u.guid !== D.TRANSFER).sort((u, h) => h.amount - u.amount), s = r.reduce(
29112
+ const o = by(e, i, a), r = o.filter(
29113
+ (u) => u.guid !== D.INCOME && u.guid !== D.INVESTMENTS && u.guid !== D.TRANSFER
29114
+ ).sort((u, h) => h.amount - u.amount), s = r.reduce(
29113
29115
  (u, h) => u + h.amount,
29114
29116
  0
29115
29117
  ), c = r.length > za ? za : r.length, d = r.slice(0, c), _ = d.map((u) => ({
@@ -29143,7 +29145,7 @@ const Qb = ({ widgets: e, isLoading: n }) => {
29143
29145
  };
29144
29146
  }, Gl = (e, n, i) => {
29145
29147
  const a = e.filter(
29146
- (c) => c.parent_guid === D.INCOME
29148
+ (c) => c.guid === D.INCOME || c.parent_guid === D.INCOME
29147
29149
  ), o = n.filter((c) => a.some((d) => d.guid === c.category_guid)).sort((c, d) => c.total - d.total).map((c, d) => ({
29148
29150
  guid: c.category_guid,
29149
29151
  name: e.find((_) => _.guid === c.category_guid)?.name,
@@ -29512,20 +29514,20 @@ const Qb = ({ widgets: e, isLoading: n }) => {
29512
29514
  };
29513
29515
  if (m === 0)
29514
29516
  if (M === "other") {
29515
- const W = v.categoryData.find(($) => $.guid === "other");
29517
+ const F = v.categoryData.find(($) => $.guid === "other");
29516
29518
  _({
29517
29519
  ...L,
29518
- custom: ($) => !!W?.categoryTotals?.find((ue) => ue.guid === $.top_level_category_guid)
29520
+ custom: ($) => !!F?.categoryTotals?.find((ue) => ue.guid === $.top_level_category_guid)
29519
29521
  });
29520
29522
  } else
29521
29523
  _({
29522
29524
  ...L,
29523
- custom: (W) => M ? W.top_level_category_guid === M : W.top_level_category_guid !== D.INCOME
29525
+ custom: (F) => M ? F.top_level_category_guid === M : F.top_level_category_guid !== D.INCOME && F.top_level_category_guid !== D.INVESTMENTS && F.top_level_category_guid !== D.TRANSFER
29524
29526
  });
29525
29527
  else
29526
29528
  _({
29527
29529
  ...L,
29528
- custom: (W) => M ? W.category_guid === M : W.top_level_category_guid === D.INCOME
29530
+ custom: (F) => M ? F.category_guid === M : F.category_guid === D.INCOME || F.top_level_category_guid === D.INCOME
29529
29531
  });
29530
29532
  I(!0);
29531
29533
  };
@@ -29602,7 +29604,7 @@ const Qb = ({ widgets: e, isLoading: n }) => {
29602
29604
  g.useEffect(() => {
29603
29605
  c(i);
29604
29606
  }, [i]), g.useEffect(() => {
29605
- s(Ke(Ie()), $e(Ie())), u(!0), d(F.SPENDING_VIEW);
29607
+ s(Ke(Ie()), $e(Ie())), u(!0), d(W.SPENDING_VIEW);
29606
29608
  }, []);
29607
29609
  const h = (p) => {
29608
29610
  s(p[0], p[1]);
@@ -29612,7 +29614,7 @@ const Qb = ({ widgets: e, isLoading: n }) => {
29612
29614
  {
29613
29615
  accountOptions: i,
29614
29616
  calendarActions: { onRangeChanged: h },
29615
- onAccountsFilterClick: () => d(F.SPENDING_CLICK_FILTER),
29617
+ onAccountsFilterClick: () => d(W.SPENDING_CLICK_FILTER),
29616
29618
  onBackClick: e,
29617
29619
  sx: n,
29618
29620
  title: a.title,
@@ -29621,7 +29623,7 @@ const Qb = ({ widgets: e, isLoading: n }) => {
29621
29623
  );
29622
29624
  }, S4 = x(Ny);
29623
29625
  export {
29624
- F as ANALYTICS_EVENTS,
29626
+ W as ANALYTICS_EVENTS,
29625
29627
  xs as AccountApi,
29626
29628
  Rl as AccountDetailsContent,
29627
29629
  zo as AccountDetailsHeader,