@mx-cartographer/experiences 6.14.1-ram1-alpha-bug-testing → 6.14.2-alpha.mega1

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
@@ -8227,7 +8227,7 @@ const Ks = ({ transaction: e }) => {
8227
8227
  }) => {
8228
8228
  const { recurring: a } = I(), { filter: o, setFilter: r, transactions: s } = Oe(), { addRepeatingTransaction: c } = Ye(), { user: d } = Gt(), [u, _] = h.useState(!1), [g, m] = h.useState(""), [C, f] = h.useState(pe.EveryMonth), [E, b] = h.useState(1), [S, A] = h.useState(15), v = h.useMemo(
8229
8229
  () => s.find((B) => B.guid === g),
8230
- [g]
8230
+ [g, s]
8231
8231
  ), w = () => {
8232
8232
  _(!0), r(e ? { ...o, custom: fi } : { ...o, custom: Pa });
8233
8233
  }, R = async () => {
@@ -8560,7 +8560,7 @@ const Ks = ({ transaction: e }) => {
8560
8560
  }) => {
8561
8561
  const { recurring: o } = I(), { repeatingTransactions: r } = Ye(), [s, c] = h.useState(!1), d = h.useMemo(
8562
8562
  () => r.find((E) => E.guid === e.repeatingTransactionGuid),
8563
- [e]
8563
+ [e, r]
8564
8564
  ), u = e.type === Vt.Income, _ = e.status === qe.Paid, g = e.status === qe.Missed, m = e.status === qe.Upcoming;
8565
8565
  let C = o.paid?.toLowerCase();
8566
8566
  return g ? C = o.missed?.toLowerCase() : m && (C = a ? zi(o, d || {}, !0) : zi(o, d || {}, !1)), /* @__PURE__ */ l(j, { disableGutters: !0, disablePadding: !0, children: [
@@ -9492,7 +9492,6 @@ const ug = {
9492
9492
  e,
9493
9493
  r
9494
9494
  );
9495
- console.log(s, "firstSubtitle"), console.log(c, "firstValue"), console.log(d, "secondSubtitle"), console.log(u, "secondValue");
9496
9495
  let _;
9497
9496
  (e.connectionStatus === On.Error || e.connectionStatus === On.RequiresMfa) && (_ = /* @__PURE__ */ t(hg, { size: 16 }));
9498
9497
  const g = /* @__PURE__ */ l(X, { children: [
@@ -10165,7 +10164,7 @@ const Eg = ({ recurrence: e }) => /* @__PURE__ */ l(X, { children: [
10165
10164
  `, Gg = () => {
10166
10165
  const { addRepeatingTransaction: e, repeatingTransactions: n } = Ye(), { cashflow: i, common: a } = I(), { completeOnboarding: o } = io(), { isDirty: r } = ti(), { isMobile: s } = fe(), { isCopyLoaded: c, setDisplayedDate: d } = le(), { filter: u, setFilter: _, transactions: g } = Oe(), m = Ce(), [C, f] = St(!0), [E, b] = h.useState(pe.EveryMonth), [S, A] = h.useState(1), [v, w] = h.useState(15), [R, M] = St(!1), [B, D] = St(1), [G, O] = St([]), [U, J] = St(""), _e = h.useMemo(
10167
10166
  () => g.find((ye) => ye.guid === U),
10168
- [U]
10167
+ [U, g]
10169
10168
  ), ne = !!n.filter(
10170
10169
  (ye) => ye.repeating_transaction_type === nn.Income
10171
10170
  ).length, ue = async () => {
@@ -20680,7 +20679,10 @@ const Ta = ({
20680
20679
  )
20681
20680
  ] });
20682
20681
  }, wC = x(vC), NC = () => {
20683
- const [e, n] = h.useState(""), { onEvent: i } = Y(), { selectedAccount: a } = Bt(), { accounts: o } = I(), { setFilter: r, sortedTransactions: s } = Oe(), c = h.useMemo(() => s.find((d) => d.guid === e), [e]);
20682
+ const [e, n] = h.useState(""), { onEvent: i } = Y(), { selectedAccount: a } = Bt(), { accounts: o } = I(), { setFilter: r, sortedTransactions: s } = Oe(), c = h.useMemo(
20683
+ () => s.find((d) => d.guid === e),
20684
+ [e, s]
20685
+ );
20684
20686
  return h.useEffect(() => {
20685
20687
  r({
20686
20688
  dateRange: { start: Jl(ed(), 90), end: td() },
@@ -20812,14 +20814,12 @@ const Ta = ({
20812
20814
  }
20813
20815
  ) });
20814
20816
  };
20815
- return console.log(JSON.parse(JSON.stringify(a)), " accounts"), console.log(d, "accountTypes"), /* @__PURE__ */ l(L, { sx: { pt: 24 }, children: [
20817
+ return /* @__PURE__ */ l(L, { sx: { pt: 24 }, children: [
20816
20818
  d.map((b) => {
20817
20819
  const S = a.filter(
20818
20820
  (v) => v.account_type === b && !v.is_closed && !v.is_hidden
20819
- );
20820
- console.log(JSON.parse(JSON.stringify(S)), "accountsOfType", b, "type");
20821
- const A = S.reduce(
20822
- (v, w) => (w.balance || 0) + v,
20821
+ ), A = S.reduce(
20822
+ (v, w) => (w.available_balance || w.balance || 0) + v,
20823
20823
  0
20824
20824
  );
20825
20825
  return S.length === 0 ? null : /* @__PURE__ */ t(
@@ -21830,7 +21830,7 @@ const $C = () => {
21830
21830
  "y",
21831
21831
  wt.forceY().y(n / 2).strength(0.01)
21832
21832
  );
21833
- }, JC = (e, n) => wt.scaleLinear().domain([e, n]).range([jC, YC]), ef = (e) => {
21833
+ }, JC = (e, n) => wt.scaleLinear().domain([e, n]).range([jC, YC]), e0 = (e) => {
21834
21834
  const n = e.reduce((r, s) => {
21835
21835
  const c = Math.max(s.transaction_total, s.amount);
21836
21836
  return c > r ? c : r;
@@ -21847,15 +21847,15 @@ const $C = () => {
21847
21847
  return wt.forceSimulation(o).velocityDecay(0.05).force("collide", wt.forceCollide((r) => r.radius + 2).strength(0.5)).on("tick", () => {
21848
21848
  wt.selectAll(".bubble").data(o).attr("transform", (r) => `translate(${r.x},${r.y})`);
21849
21849
  });
21850
- }, Ur = 5, tf = 2e3;
21851
- function nf({ bubble: e }) {
21850
+ }, Ur = 5, t0 = 2e3;
21851
+ function n0({ bubble: e }) {
21852
21852
  const n = Ce(), {
21853
21853
  guid: i,
21854
21854
  budgetColors: { mercury: a },
21855
21855
  radius: o
21856
21856
  } = e, r = `mercury-${i}`;
21857
21857
  h.useEffect(() => {
21858
- wt.select(`.${r}`).selectAll(".status").remove(), wt.select(`.${r}`).append("path").transition().duration(tf).delay(0).attr("class", "status").attr("style", `fill: ${a}; fill-opacity: 1;`).attrTween("d", () => ZC(e));
21858
+ wt.select(`.${r}`).selectAll(".status").remove(), wt.select(`.${r}`).append("path").transition().duration(t0).delay(0).attr("class", "status").attr("style", `fill: ${a}; fill-opacity: 1;`).attrTween("d", () => ZC(e));
21859
21859
  }, [e]);
21860
21860
  const s = wt.arc().innerRadius((c) => c - 2 * Ur).outerRadius((c) => c - Ur).startAngle(0).endAngle(2 * Math.PI);
21861
21861
  return /* @__PURE__ */ t("g", { className: r, children: /* @__PURE__ */ t(
@@ -21867,7 +21867,7 @@ function nf({ bubble: e }) {
21867
21867
  ) });
21868
21868
  }
21869
21869
  const Un = 75, Vr = 50;
21870
- function af({ bubble: e, isDraggable: n, onClick: i = () => {
21870
+ function i0({ bubble: e, isDraggable: n, onClick: i = () => {
21871
21871
  } }) {
21872
21872
  const [a, o] = h.useState(!1);
21873
21873
  if (h.useEffect(() => {
@@ -21966,14 +21966,14 @@ function af({ bubble: e, isDraggable: n, onClick: i = () => {
21966
21966
  children: _.split(" ")[1]
21967
21967
  }
21968
21968
  ),
21969
- /* @__PURE__ */ t(nf, { bubble: e })
21969
+ /* @__PURE__ */ t(n0, { bubble: e })
21970
21970
  ]
21971
21971
  },
21972
21972
  u
21973
21973
  );
21974
21974
  }
21975
21975
  let ci;
21976
- const of = ({
21976
+ const a0 = ({
21977
21977
  height: e,
21978
21978
  width: n,
21979
21979
  isDraggable: i = !1,
@@ -21981,10 +21981,10 @@ const of = ({
21981
21981
  }
21982
21982
  }) => {
21983
21983
  const { detailedBudgets: o } = dt();
21984
- return ci = h.useMemo(() => ef(o), [o]), h.useEffect(() => {
21984
+ return ci = h.useMemo(() => e0(o), [o]), h.useEffect(() => {
21985
21985
  QC(ci, e, n), i && qC(ci);
21986
- }, [ci, e, n]), /* @__PURE__ */ t("svg", { height: e, style: { overflow: "visible" }, width: Math.abs(n), children: ci.nodes().map((r) => /* @__PURE__ */ t(af, { bubble: r, isDraggable: i, onClick: a }, r.guid)) });
21987
- }, rf = x(of), sf = ({
21986
+ }, [ci, e, n]), /* @__PURE__ */ t("svg", { height: e, style: { overflow: "visible" }, width: Math.abs(n), children: ci.nodes().map((r) => /* @__PURE__ */ t(i0, { bubble: r, isDraggable: i, onClick: a }, r.guid)) });
21987
+ }, o0 = x(a0), r0 = ({
21988
21988
  isMiniWidget: e = !1,
21989
21989
  onConnectAccountsClick: n,
21990
21990
  createBudgetOnClick: i
@@ -22080,14 +22080,14 @@ const of = ({
22080
22080
  };
22081
22081
  return d ? /* @__PURE__ */ t(y, { alignItems: "center", height: n, justifyContent: "center", width: Math.abs(E), children: /* @__PURE__ */ t(de, {}) }) : /* @__PURE__ */ l(L, { ml: o || m ? 0 : 24, sx: { alignSelf: "center" }, children: [
22082
22082
  o || !u ? /* @__PURE__ */ t(
22083
- sf,
22083
+ r0,
22084
22084
  {
22085
22085
  createBudgetOnClick: e,
22086
22086
  isMiniWidget: a,
22087
22087
  onConnectAccountsClick: S
22088
22088
  }
22089
22089
  ) : /* @__PURE__ */ t(
22090
- rf,
22090
+ o0,
22091
22091
  {
22092
22092
  height: n,
22093
22093
  isDraggable: i,
@@ -22105,7 +22105,7 @@ const of = ({
22105
22105
  )
22106
22106
  ] });
22107
22107
  }
22108
- ), cf = (e) => {
22108
+ ), s0 = (e) => {
22109
22109
  const n = Ce(), { accounts: i } = Te(), { budgets: a, isDataLoaded: o, loadBudgetData: r, setTheme: s } = dt(), { budgets: c } = I(), { isCopyLoaded: d, isInitialized: u } = le(), { reloadCategoryTotals: _ } = Ue(), g = X_(), m = a.length === 0;
22110
22110
  return h.useEffect(() => {
22111
22111
  s(n);
@@ -22135,7 +22135,7 @@ const of = ({
22135
22135
  ] }) : /* @__PURE__ */ t(de, {})
22136
22136
  }
22137
22137
  ) : /* @__PURE__ */ t(de, {});
22138
- }, GE = x(cf), lf = x(() => {
22138
+ }, GE = x(s0), c0 = x(() => {
22139
22139
  const { budgets: e } = I(), { totalBudgeted: n } = dt(), { projectedIncome: i } = Ye(), a = i - n;
22140
22140
  return /* @__PURE__ */ l(y, { direction: "row", justifyContent: "center", my: 16, spacing: 20, children: [
22141
22141
  /* @__PURE__ */ l(y, { alignItems: "center", children: [
@@ -22153,7 +22153,7 @@ const of = ({
22153
22153
  /* @__PURE__ */ t(p, { color: "secondary", variant: "Small", children: e.remaining })
22154
22154
  ] })
22155
22155
  ] });
22156
- }), df = x(
22156
+ }), l0 = x(
22157
22157
  ({ category: e }) => {
22158
22158
  const { budgets: n } = I(), { budgets: i } = dt(), a = h.useMemo(() => {
22159
22159
  const o = i.find((c) => c.category_guid === e.guid), r = P(e.totalAverageAmount, "0,0"), s = o ? T(n.recalculate_previous_budget, P(o.amount, "0,0")) : n.recalculate_new_budget;
@@ -22167,7 +22167,7 @@ const of = ({
22167
22167
  /* @__PURE__ */ t(H, {})
22168
22168
  ] }, e.guid);
22169
22169
  }
22170
- ), _f = ({ onRecalculateBudgets: e }) => {
22170
+ ), d0 = ({ onRecalculateBudgets: e }) => {
22171
22171
  const { budgets: n, common: i } = I(), { spendCategories: a } = Ue(), { recalculateBudgets: o, setAlert: r } = dt(), [s, c] = h.useState(!1), d = a.filter((_) => _.totalAverageAmount > 0), u = async () => {
22172
22172
  await o(d), c(!1), r(n.alert_recalculated_budgets), e?.();
22173
22173
  };
@@ -22187,7 +22187,7 @@ const of = ({
22187
22187
  /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: n.recalculate_description_top }),
22188
22188
  /* @__PURE__ */ t(p, { variant: "ParagraphSmall", children: n.recalculate_description_bottom })
22189
22189
  ] }),
22190
- /* @__PURE__ */ t(L, { bgcolor: "background.paper", children: /* @__PURE__ */ t(ae, { children: d.map((_) => /* @__PURE__ */ t(df, { category: _ }, _.guid)) }) })
22190
+ /* @__PURE__ */ t(L, { bgcolor: "background.paper", children: /* @__PURE__ */ t(ae, { children: d.map((_) => /* @__PURE__ */ t(l0, { category: _ }, _.guid)) }) })
22191
22191
  ] })
22192
22192
  }
22193
22193
  )
@@ -22218,7 +22218,7 @@ const of = ({
22218
22218
  }
22219
22219
  )
22220
22220
  ] });
22221
- }, uf = x(({ category: e, onAddBudget: n }) => {
22221
+ }, _0 = x(({ category: e, onAddBudget: n }) => {
22222
22222
  const { budgets: i, common: a } = I(), [o, r] = h.useState(!1), [s, c] = h.useState(
22223
22223
  `${e.totalAmount === 0 ? "" : e.totalAmount}`
22224
22224
  );
@@ -22247,21 +22247,21 @@ const of = ({
22247
22247
  }
22248
22248
  )
22249
22249
  ] });
22250
- }), hf = x(({ onRecalculateBudgets: e }) => {
22250
+ }), u0 = x(({ onRecalculateBudgets: e }) => {
22251
22251
  const { budgets: n } = I(), { addBudget: i, setAlert: a, unbudgetedCategories: o } = dt(), r = async (s, c) => {
22252
22252
  await i(s, c), a(T(n.alert_budget_created, s.name));
22253
22253
  };
22254
22254
  return /* @__PURE__ */ l(y, { children: [
22255
- /* @__PURE__ */ t(lf, {}),
22255
+ /* @__PURE__ */ t(c0, {}),
22256
22256
  /* @__PURE__ */ t(L, { bgcolor: "background.paper", children: /* @__PURE__ */ t(ae, { children: o.map((s) => /* @__PURE__ */ t(
22257
- uf,
22257
+ _0,
22258
22258
  {
22259
22259
  category: s,
22260
22260
  onAddBudget: r
22261
22261
  },
22262
22262
  s.guid
22263
22263
  )) }) }),
22264
- /* @__PURE__ */ t(_f, { onRecalculateBudgets: e })
22264
+ /* @__PURE__ */ t(d0, { onRecalculateBudgets: e })
22265
22265
  ] });
22266
22266
  }), Oc = ({ budget: e }) => {
22267
22267
  const {
@@ -22283,14 +22283,14 @@ const of = ({
22283
22283
  /* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: a }),
22284
22284
  /* @__PURE__ */ t(Yn, { data: c, height: 10 })
22285
22285
  ] }) }) });
22286
- }, gf = x(() => {
22286
+ }, h0 = x(() => {
22287
22287
  const { budgets: e } = I();
22288
22288
  return /* @__PURE__ */ l(y, { alignItems: "center", gap: 12, height: "auto", mb: 24, mt: 24, children: [
22289
22289
  /* @__PURE__ */ t($, { color: "secondary", name: "bubble_chart", sx: { fontSize: 32 } }),
22290
22290
  /* @__PURE__ */ t(p, { bold: !0, color: "secondary", variant: "Small", children: e.zero_state_no_sub_budgets }),
22291
22291
  /* @__PURE__ */ t(p, { color: "text.secondary", variant: "XSmall", children: e.zero_state_no_sub_budgets_description })
22292
22292
  ] });
22293
- }), mf = x(({ budget: e }) => {
22293
+ }), g0 = x(({ budget: e }) => {
22294
22294
  const {
22295
22295
  amount: n,
22296
22296
  budgetColors: { background: i },
@@ -22311,7 +22311,7 @@ const of = ({
22311
22311
  }
22312
22312
  )
22313
22313
  ] }) });
22314
- }), pf = x(({ category: e, parentBudget: n }) => {
22314
+ }), m0 = x(({ category: e, parentBudget: n }) => {
22315
22315
  const { budgets: i, common: a } = I(), { setExpandedGuid: o, setOnSelect: r } = _n(), { addBudget: s } = dt(), [c, d] = h.useState(!1), [u, _] = h.useState(!1), [g, m] = h.useState(""), [C, f] = h.useState(void 0);
22316
22316
  h.useEffect(() => {
22317
22317
  r((S) => {
@@ -22363,7 +22363,7 @@ const of = ({
22363
22363
  }
22364
22364
  )
22365
22365
  ] });
22366
- }), Cf = x(({ budget: e }) => {
22366
+ }), p0 = x(({ budget: e }) => {
22367
22367
  const { category: n, subBudgets: i } = e, { budgets: a, common: o } = I(), { deleteBudget: r, selectedSubBudget: s, setSelectedSubBudget: c, updateBudget: d } = dt(), { filter: u, setFilter: _ } = Oe(), [g, m] = h.useState(!1), [C, f] = h.useState(!1), [E, b] = h.useState("");
22368
22368
  h.useEffect(() => {
22369
22369
  s && (b(`${s.amount}`), _({
@@ -22386,11 +22386,11 @@ const of = ({
22386
22386
  };
22387
22387
  return /* @__PURE__ */ l(h.Fragment, { children: [
22388
22388
  /* @__PURE__ */ l(ae, { sx: { bgcolor: "background.paper" }, children: [
22389
- i.length === 0 ? /* @__PURE__ */ t(gf, {}) : i.map((w) => /* @__PURE__ */ l(h.Fragment, { children: [
22390
- /* @__PURE__ */ t(mf, { budget: w }),
22389
+ i.length === 0 ? /* @__PURE__ */ t(h0, {}) : i.map((w) => /* @__PURE__ */ l(h.Fragment, { children: [
22390
+ /* @__PURE__ */ t(g0, { budget: w }),
22391
22391
  /* @__PURE__ */ t(H, {})
22392
22392
  ] }, w.guid)),
22393
- /* @__PURE__ */ t(pf, { category: n, parentBudget: e })
22393
+ /* @__PURE__ */ t(m0, { category: n, parentBudget: e })
22394
22394
  ] }),
22395
22395
  /* @__PURE__ */ t(
22396
22396
  ce,
@@ -22444,10 +22444,10 @@ const of = ({
22444
22444
  )
22445
22445
  ] })
22446
22446
  ] });
22447
- }), ff = x(({ budget: e }) => {
22447
+ }), C0 = x(({ budget: e }) => {
22448
22448
  const { budgets: n, common: i, transactions: a } = I(), { setAlert: o } = dt(), { sortedTransactions: r, tags: s } = Oe(), [c, d] = h.useState(0), [u, _] = h.useState(""), g = h.useMemo(
22449
22449
  () => r.find((f) => f.guid === u),
22450
- [u]
22450
+ [u, r]
22451
22451
  ), m = (f, E) => {
22452
22452
  d(E);
22453
22453
  }, C = () => {
@@ -22482,7 +22482,7 @@ const of = ({
22482
22482
  ) }),
22483
22483
  /* @__PURE__ */ t(Dn, { height: "100%", onClick: _ })
22484
22484
  ] }),
22485
- c === 1 && /* @__PURE__ */ t(Cf, { budget: e }),
22485
+ c === 1 && /* @__PURE__ */ t(p0, { budget: e }),
22486
22486
  /* @__PURE__ */ t(
22487
22487
  ce,
22488
22488
  {
@@ -22495,7 +22495,7 @@ const of = ({
22495
22495
  )
22496
22496
  ] })
22497
22497
  ] });
22498
- }), bf = x(() => {
22498
+ }), f0 = x(() => {
22499
22499
  const { selectedAccountGuids: e } = le(), { budgets: n, common: i } = I(), {
22500
22500
  dateRange: a,
22501
22501
  deleteBudget: o,
@@ -22539,7 +22539,7 @@ const of = ({
22539
22539
  secondaryColor: "error",
22540
22540
  secondaryText: n.details_delete_button,
22541
22541
  title: n.details_title,
22542
- children: /* @__PURE__ */ t(ff, { budget: r })
22542
+ children: /* @__PURE__ */ t(C0, { budget: r })
22543
22543
  }
22544
22544
  ),
22545
22545
  /* @__PURE__ */ t(
@@ -22575,7 +22575,7 @@ const of = ({
22575
22575
  }
22576
22576
  )
22577
22577
  ] });
22578
- }), yf = ({ budget: e, onClick: n }) => {
22578
+ }), b0 = ({ budget: e, onClick: n }) => {
22579
22579
  const {
22580
22580
  amount: i,
22581
22581
  budgetColors: { background: a, description: o },
@@ -22604,7 +22604,7 @@ const of = ({
22604
22604
  }
22605
22605
  )
22606
22606
  ] }) });
22607
- }, Ef = x(() => {
22607
+ }, y0 = x(() => {
22608
22608
  const { onEvent: e } = Y(), { budgets: n } = I(), { detailedBudgets: i, setSelectedBudget: a } = dt(), o = (r) => {
22609
22609
  a(r), e(W.BUDGETS_CLICK_BUDGET_CATEGORY, {
22610
22610
  budget_category: r.category.name,
@@ -22614,11 +22614,11 @@ const of = ({
22614
22614
  return /* @__PURE__ */ l(Nt, { elevation: 2, children: [
22615
22615
  /* @__PURE__ */ t(dn, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ t(lt, { children: n.budget_categories_title }) }),
22616
22616
  /* @__PURE__ */ t(Dt, { sx: { p: 0, ":last-child": { p: 0 } }, children: /* @__PURE__ */ t(ae, { children: i.map((r) => /* @__PURE__ */ l(h.Fragment, { children: [
22617
- /* @__PURE__ */ t(yf, { budget: r, onClick: o }),
22617
+ /* @__PURE__ */ t(b0, { budget: r, onClick: o }),
22618
22618
  /* @__PURE__ */ t(H, {})
22619
22619
  ] }, r.guid)) }) })
22620
22620
  ] });
22621
- }), Sf = x(() => {
22621
+ }), E0 = x(() => {
22622
22622
  const e = Ce(), { onEvent: n } = Y(), { visibleAccounts: i } = Te(), { budgets: a, common: o, recurring: r } = I(), { incomeCategories: s, spendCategories: c } = Ue(), { detailedBudgets: d, totalBudgeted: u } = dt(), { projectedIncome: _ } = Ye(), { setFilter: g } = Oe(), [m, C] = h.useState(!1), [f, E] = h.useMemo(() => {
22623
22623
  const v = c.reduce((B, D) => B + D.totalAmount, 0);
22624
22624
  let w = v / u;
@@ -22772,15 +22772,15 @@ const of = ({
22772
22772
  sx: { mr: 24, mt: 48 },
22773
22773
  width: G ? "100%" : Kr,
22774
22774
  children: [
22775
- /* @__PURE__ */ t(Sf, {}),
22776
- /* @__PURE__ */ t(Ef, {})
22775
+ /* @__PURE__ */ t(E0, {}),
22776
+ /* @__PURE__ */ t(y0, {})
22777
22777
  ]
22778
22778
  }
22779
22779
  )
22780
22780
  ]
22781
22781
  }
22782
22782
  ),
22783
- /* @__PURE__ */ t(bf, {}),
22783
+ /* @__PURE__ */ t(f0, {}),
22784
22784
  /* @__PURE__ */ t(
22785
22785
  ce,
22786
22786
  {
@@ -22788,7 +22788,7 @@ const of = ({
22788
22788
  isOpen: O,
22789
22789
  onClose: () => U(!1),
22790
22790
  title: r.add_new_title,
22791
- children: /* @__PURE__ */ t(hf, { onRecalculateBudgets: ue })
22791
+ children: /* @__PURE__ */ t(u0, { onRecalculateBudgets: ue })
22792
22792
  }
22793
22793
  ),
22794
22794
  /* @__PURE__ */ t(
@@ -22816,7 +22816,7 @@ const of = ({
22816
22816
  ]
22817
22817
  }
22818
22818
  );
22819
- }), Tf = x(() => {
22819
+ }), S0 = x(() => {
22820
22820
  const e = Ce(), {
22821
22821
  appDataStore: { banner: n, loadBanner: i, user: a }
22822
22822
  } = ra();
@@ -22855,7 +22855,7 @@ const of = ({
22855
22855
  )
22856
22856
  }
22857
22857
  ) : null;
22858
- }), Af = ({ handleConnectClick: e }) => {
22858
+ }), T0 = ({ handleConnectClick: e }) => {
22859
22859
  const { common: n } = I(), i = Ht("(max-width: 700px)");
22860
22860
  return /* @__PURE__ */ t(L, { my: 4, children: i ? /* @__PURE__ */ t(Bn, { id: "add-accounts", placement: "bottom", title: n.add_accounts, children: /* @__PURE__ */ t(
22861
22861
  He,
@@ -22885,7 +22885,7 @@ const of = ({
22885
22885
  children: n.add_accounts
22886
22886
  }
22887
22887
  ) });
22888
- }, If = x(Af), xf = () => {
22888
+ }, A0 = x(T0), I0 = () => {
22889
22889
  const [e, n] = h.useState(!1), { visibleAccounts: i } = Te(), { selectedAccountGuids: a, setSelectedAccountGuids: o } = le(), { common: r, connect: s } = I(), { config: c } = ei(), { isMobile: d } = fe(), u = {
22890
22890
  accountFilterOptionsCopy: {
22891
22891
  accountTypeAccounts: r.account_filter.account_type_accounts,
@@ -22911,7 +22911,7 @@ const of = ({
22911
22911
  /* @__PURE__ */ t(p, { color: "text.secondary", sx: { fontSize: 15 }, children: r.heres_your_spending_overview })
22912
22912
  ] }) }),
22913
22913
  /* @__PURE__ */ l(y, { flexDirection: "row", children: [
22914
- c.show_connections_widget_in_master && /* @__PURE__ */ t(If, { handleConnectClick: () => n(!0) }),
22914
+ c.show_connections_widget_in_master && /* @__PURE__ */ t(A0, { handleConnectClick: () => n(!0) }),
22915
22915
  /* @__PURE__ */ t(
22916
22916
  Ns,
22917
22917
  {
@@ -22940,9 +22940,9 @@ const of = ({
22940
22940
  }
22941
22941
  )
22942
22942
  ] });
22943
- }, vf = x(xf);
22943
+ }, x0 = x(I0);
22944
22944
  var Bi = /* @__PURE__ */ ((e) => (e[e.Main = 0] = "Main", e[e.RightSide = 1] = "RightSide", e[e.Disabled = 2] = "Disabled", e))(Bi || {});
22945
- const wf = ({ widgets: e, isLoading: n }) => {
22945
+ const v0 = ({ widgets: e, isLoading: n }) => {
22946
22946
  const { isDesktop: i, isMobile: a } = fe(), { copyStore: o } = ra(), { setSelectedAccounts: r } = le(), { visibleAccounts: s } = Te();
22947
22947
  h.useEffect(() => {
22948
22948
  r(s);
@@ -22958,9 +22958,9 @@ const wf = ({ widgets: e, isLoading: n }) => {
22958
22958
  [c]
22959
22959
  );
22960
22960
  return /* @__PURE__ */ l(fn, { container: !0, spacing: a ? 0 : 24, sx: { overflow: "scroll" }, children: [
22961
- /* @__PURE__ */ t(fn, { xs: 12, children: o.isInitialized && /* @__PURE__ */ t(vf, {}) }),
22961
+ /* @__PURE__ */ t(fn, { xs: 12, children: o.isInitialized && /* @__PURE__ */ t(x0, {}) }),
22962
22962
  /* @__PURE__ */ l(fn, { lg: 8, xs: 12, children: [
22963
- /* @__PURE__ */ t(Tf, {}),
22963
+ /* @__PURE__ */ t(S0, {}),
22964
22964
  n && /* @__PURE__ */ l(y, { direction: "column", spacing: 24, children: [
22965
22965
  /* @__PURE__ */ t(gn, { height: 100, variant: "rounded", width: "100%" }),
22966
22966
  /* @__PURE__ */ t(gn, { height: 300, variant: "rounded", width: "100%" }),
@@ -22974,7 +22974,7 @@ const wf = ({ widgets: e, isLoading: n }) => {
22974
22974
  /* @__PURE__ */ t(gn, { height: 300, variant: "rounded", width: "100%" })
22975
22975
  ] }) : /* @__PURE__ */ t(y, { direction: "column", spacing: 24, children: u.map((_) => /* @__PURE__ */ t(h.Fragment, { children: _.component }, _.index)) }) })
22976
22976
  ] });
22977
- }, PE = x(wf), wo = ({ sx: e = {} }) => {
22977
+ }, PE = x(v0), wo = ({ sx: e = {} }) => {
22978
22978
  const { investments: n } = I(), { onEvent: i } = Y(), { setShowConnectionsWidget: a } = Gn();
22979
22979
  return /* @__PURE__ */ l(y, { sx: { alignItems: "center", gap: 24, height: 164, p: 24, width: "100%", ...e }, children: [
22980
22980
  /* @__PURE__ */ l(
@@ -23016,7 +23016,7 @@ const wf = ({ widgets: e, isLoading: n }) => {
23016
23016
  }
23017
23017
  )
23018
23018
  ] });
23019
- }, Nf = {
23019
+ }, w0 = {
23020
23020
  allocations_cash: "#AEDCCC",
23021
23021
  allocations_convertible: "#80CAD0",
23022
23022
  allocations_foreign_bond: "#51B9D4",
@@ -23026,7 +23026,7 @@ const wf = ({ widgets: e, isLoading: n }) => {
23026
23026
  allocations_unknown: "#161D6A",
23027
23027
  allocations_us_bond: "#254995",
23028
23028
  allocations_us_stock: "#1E2D84"
23029
- }, Df = [
23029
+ }, N0 = [
23030
23030
  {
23031
23031
  name: "allocations_cash"
23032
23032
  },
@@ -23054,10 +23054,10 @@ const wf = ({ widgets: e, isLoading: n }) => {
23054
23054
  {
23055
23055
  name: "allocations_unknown"
23056
23056
  }
23057
- ], Rf = (e, n, i) => {
23057
+ ], D0 = (e, n, i) => {
23058
23058
  const a = n, o = i;
23059
23059
  return e >= Math.min(a, o) && e < Math.max(a, o);
23060
- }, Of = (e, n, i) => {
23060
+ }, R0 = (e, n, i) => {
23061
23061
  const a = [
23062
23062
  ...new Set(e.map((s) => s.name.toLowerCase()))
23063
23063
  ];
@@ -23074,7 +23074,7 @@ const wf = ({ widgets: e, isLoading: n }) => {
23074
23074
  percentage: c / i
23075
23075
  };
23076
23076
  });
23077
- }, Pi = (e) => e.calculated_market_value ? e.calculated_market_value : e.market_value, Lf = (e, n, i) => {
23077
+ }, Pi = (e) => e.calculated_market_value ? e.calculated_market_value : e.market_value, O0 = (e, n, i) => {
23078
23078
  const a = Object.values(n.allocations_list), o = [];
23079
23079
  let r = 0;
23080
23080
  const s = e.map(({ guid: f }) => f), c = i.filter(({ account_guid: f }) => s.includes(f)).map((f) => ({
@@ -23094,7 +23094,7 @@ const wf = ({ widgets: e, isLoading: n }) => {
23094
23094
  }),
23095
23095
  { marketValue: 0, totalGainLoss: 0 }
23096
23096
  ), m = _ + d;
23097
- Df.forEach((f, E) => {
23097
+ N0.forEach((f, E) => {
23098
23098
  const b = c.filter(
23099
23099
  (v) => !!v[f.name]
23100
23100
  );
@@ -23102,7 +23102,7 @@ const wf = ({ widgets: e, isLoading: n }) => {
23102
23102
  (v, w) => v + Pi(w) * w[f.name] / 100,
23103
23103
  0
23104
23104
  );
23105
- const A = Of(
23105
+ const A = R0(
23106
23106
  b,
23107
23107
  f.name,
23108
23108
  S
@@ -23124,7 +23124,7 @@ const wf = ({ widgets: e, isLoading: n }) => {
23124
23124
  holdings: A,
23125
23125
  percentage: S / m,
23126
23126
  value: S,
23127
- color: Nf[f.name]
23127
+ color: w0[f.name]
23128
23128
  }), r += S);
23129
23129
  });
23130
23130
  const C = o.map(
@@ -23143,7 +23143,7 @@ const wf = ({ widgets: e, isLoading: n }) => {
23143
23143
  totalMarketValue: m,
23144
23144
  totalGainLossPercentage: g / u
23145
23145
  };
23146
- }, Fa = (e) => e < 1e-3 ? "< 0.1%" : Ii(e), hi = (e) => e === 0 ? P(e, "0,0.00") : Rf(e, -0.01, 0.01) ? "< $0.01" : P(e, "0,0.00"), Mf = ({
23146
+ }, Fa = (e) => e < 1e-3 ? "< 0.1%" : Ii(e), hi = (e) => e === 0 ? P(e, "0,0.00") : D0(e, -0.01, 0.01) ? "< $0.01" : P(e, "0,0.00"), L0 = ({
23147
23147
  data: e,
23148
23148
  onSelected: n,
23149
23149
  selectedId: i,
@@ -23273,7 +23273,7 @@ const wf = ({ widgets: e, isLoading: n }) => {
23273
23273
  )
23274
23274
  ] }) : a === 0 && /* @__PURE__ */ t(p, { bold: !0, sx: { textAlign: "right", pr: 24 }, children: `${c.total_label_text} ${hi(e.totalAmount)}` })
23275
23275
  ] });
23276
- }, kf = ({
23276
+ }, M0 = ({
23277
23277
  data: e,
23278
23278
  hoveredId: n,
23279
23279
  isPercentage: i,
@@ -23327,12 +23327,12 @@ const wf = ({ widgets: e, isLoading: n }) => {
23327
23327
  ] }) }) })
23328
23328
  }
23329
23329
  );
23330
- }, Gf = () => {
23330
+ }, k0 = () => {
23331
23331
  const [e, n] = h.useState(0), [i, a] = h.useState(""), [o, r] = h.useState(""), s = (f) => {
23332
23332
  i !== f ? a(f) : (a(""), r(""));
23333
23333
  }, { selectedAccountGuids: c } = le(), { visibleHoldings: d } = Gn(), { visibleInvestmentAccounts: u } = Te(), {
23334
23334
  investments: { allocation: _ }
23335
- } = I(), g = Lf(
23335
+ } = I(), g = O0(
23336
23336
  u.filter(({ guid: f }) => c.includes(f)),
23337
23337
  _,
23338
23338
  d
@@ -23350,7 +23350,7 @@ const wf = ({ widgets: e, isLoading: n }) => {
23350
23350
  },
23351
23351
  children: [
23352
23352
  /* @__PURE__ */ t(
23353
- kf,
23353
+ M0,
23354
23354
  {
23355
23355
  data: g,
23356
23356
  hoveredId: o,
@@ -23368,7 +23368,7 @@ const wf = ({ widgets: e, isLoading: n }) => {
23368
23368
  }
23369
23369
  ),
23370
23370
  /* @__PURE__ */ t(
23371
- Mf,
23371
+ L0,
23372
23372
  {
23373
23373
  data: g,
23374
23374
  onSelected: s,
@@ -23380,7 +23380,7 @@ const wf = ({ widgets: e, isLoading: n }) => {
23380
23380
  ]
23381
23381
  }
23382
23382
  );
23383
- }, Bf = x(Gf), Pf = ({
23383
+ }, G0 = x(k0), B0 = ({
23384
23384
  analysisDetails: e,
23385
23385
  analysisType: n,
23386
23386
  copy: i,
@@ -23469,10 +23469,10 @@ const wf = ({ widgets: e, isLoading: n }) => {
23469
23469
  )
23470
23470
  ] })
23471
23471
  ] });
23472
- }, Hf = ({ body: e, title: n }) => /* @__PURE__ */ l(y, { sx: { gap: 4, p: 12 }, children: [
23472
+ }, P0 = ({ body: e, title: n }) => /* @__PURE__ */ l(y, { sx: { gap: 4, p: 12 }, children: [
23473
23473
  /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: n }),
23474
23474
  /* @__PURE__ */ t(ve, { variant: "ParagraphSmall", children: e })
23475
- ] }), Ff = ({
23475
+ ] }), H0 = ({
23476
23476
  placement: e = "bottom",
23477
23477
  tooltip_info_body: n,
23478
23478
  tooltip_info_title: i
@@ -23481,10 +23481,10 @@ const wf = ({ widgets: e, isLoading: n }) => {
23481
23481
  {
23482
23482
  enterTouchDelay: 500,
23483
23483
  placement: e,
23484
- title: /* @__PURE__ */ t(Hf, { body: n, title: i }),
23484
+ title: /* @__PURE__ */ t(P0, { body: n, title: i }),
23485
23485
  children: /* @__PURE__ */ t(He, { "aria-label": i, sx: { minHeight: 0, minWidth: 0, p: 0 }, children: /* @__PURE__ */ t(ct, { name: "info", sx: { color: "info.main" } }) })
23486
23486
  }
23487
- ), Wf = () => {
23487
+ ), F0 = () => {
23488
23488
  const {
23489
23489
  investments: { analysis: e }
23490
23490
  } = I(), { analysisChartData: n, analysisDetails: i, analysisType: a, setAnalysisType: o } = Gn(), r = Ht("(min-width:320px) and (max-width:375px)"), { isMobile: s } = fe(), d = it().palette.mode === "dark", { cellDimension: u, columns: _, rows: g, textVariant: m } = h.useMemo(() => {
@@ -23564,7 +23564,7 @@ const wf = ({ widgets: e, isLoading: n }) => {
23564
23564
  children: [
23565
23565
  /* @__PURE__ */ t(p, { bold: !0, children: e.invest_analysis }),
23566
23566
  /* @__PURE__ */ t(
23567
- Ff,
23567
+ H0,
23568
23568
  {
23569
23569
  tooltip_info_body: e.tooltip_info_body,
23570
23570
  tooltip_info_title: e.tooltip_info_title
@@ -23622,7 +23622,7 @@ const wf = ({ widgets: e, isLoading: n }) => {
23622
23622
  }
23623
23623
  ),
23624
23624
  /* @__PURE__ */ t(
23625
- Pf,
23625
+ B0,
23626
23626
  {
23627
23627
  analysisDetails: i,
23628
23628
  analysisType: a,
@@ -23637,7 +23637,7 @@ const wf = ({ widgets: e, isLoading: n }) => {
23637
23637
  ]
23638
23638
  }
23639
23639
  );
23640
- }, $f = x(Wf), Uf = ({
23640
+ }, W0 = x(F0), $0 = ({
23641
23641
  accountHoldingsData: e,
23642
23642
  currentEditedCostBasis: n,
23643
23643
  editingHoldingId: i,
@@ -23942,10 +23942,10 @@ const wf = ({ widgets: e, isLoading: n }) => {
23942
23942
  ]
23943
23943
  }
23944
23944
  );
23945
- }, Vf = x(Uf), ki = (e) => /* @__PURE__ */ l(Se, { sx: { alignItems: "center", flexDirection: "row", gap: 4 }, children: [
23945
+ }, U0 = x($0), ki = (e) => /* @__PURE__ */ l(Se, { sx: { alignItems: "center", flexDirection: "row", gap: 4 }, children: [
23946
23946
  /* @__PURE__ */ t(p, { sx: { color: "text.primary", fontWeight: 600, fontSize: 14 }, variant: "Small", children: e.colDef.headerName }),
23947
23947
  /* @__PURE__ */ t(ct, { name: "expand_all", size: 12 })
23948
- ] }), Kf = ({
23948
+ ] }), V0 = ({
23949
23949
  data: e,
23950
23950
  editingHoldingId: n,
23951
23951
  currentEditedCostBasis: i,
@@ -24113,7 +24113,7 @@ const wf = ({ widgets: e, isLoading: n }) => {
24113
24113
  )
24114
24114
  }
24115
24115
  );
24116
- }, zf = () => {
24116
+ }, K0 = () => {
24117
24117
  const { isMobile: e } = fe(), [n, i] = St({}), [a, o] = St(!1), { selectedAccountGuids: r } = le(), { visibleHoldings: s, updateHoldings: c } = Gn(), [d, u] = h.useState(!1), [_, g] = St({
24118
24118
  accounts: [],
24119
24119
  holdings: []
@@ -24492,7 +24492,7 @@ const wf = ({ widgets: e, isLoading: n }) => {
24492
24492
  }
24493
24493
  ),
24494
24494
  /* @__PURE__ */ t(Qn, { sx: { bgcolor: "background.default", p: 12 }, children: /* @__PURE__ */ t(Tt, { sx: { border: 1, borderColor: "border.light" }, children: /* @__PURE__ */ t(
24495
- Kf,
24495
+ V0,
24496
24496
  {
24497
24497
  currentEditedCostBasis: S,
24498
24498
  data: ee,
@@ -24510,7 +24510,7 @@ const wf = ({ widgets: e, isLoading: n }) => {
24510
24510
  }),
24511
24511
  /* @__PURE__ */ t(wo, {}),
24512
24512
  /* @__PURE__ */ t(
24513
- Vf,
24513
+ U0,
24514
24514
  {
24515
24515
  accountHoldingsData: _,
24516
24516
  currentEditedCostBasis: S,
@@ -24532,7 +24532,7 @@ const wf = ({ widgets: e, isLoading: n }) => {
24532
24532
  }
24533
24533
  )
24534
24534
  ] }) : /* @__PURE__ */ t(de, {});
24535
- }, Yf = x(zf), jf = ({ title: e }) => /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e }), HE = x(({ onBackClick: e, sx: n }) => {
24535
+ }, z0 = x(K0), Y0 = ({ title: e }) => /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e }), HE = x(({ onBackClick: e, sx: n }) => {
24536
24536
  const { onEvent: i } = Y(), { isMobile: a } = fe(), { visibleInvestmentAccounts: o } = Te(), {
24537
24537
  visibleHoldings: r,
24538
24538
  setShowConnectionsWidget: s,
@@ -24576,7 +24576,7 @@ const wf = ({ widgets: e, isLoading: n }) => {
24576
24576
  textColor: "primary",
24577
24577
  value: A ? -1 : C,
24578
24578
  variant: "fullWidth",
24579
- children: v.map((w) => /* @__PURE__ */ t(Je, { disabled: A, label: /* @__PURE__ */ t(jf, { title: w }) }, w))
24579
+ children: v.map((w) => /* @__PURE__ */ t(Je, { disabled: A, label: /* @__PURE__ */ t(Y0, { title: w }) }, w))
24580
24580
  }
24581
24581
  ),
24582
24582
  A ? /* @__PURE__ */ t(
@@ -24602,9 +24602,9 @@ const wf = ({ widgets: e, isLoading: n }) => {
24602
24602
  }
24603
24603
  }
24604
24604
  ) : /* @__PURE__ */ l(X, { children: [
24605
- C === 0 && /* @__PURE__ */ t(Yf, {}),
24606
- C === 1 && /* @__PURE__ */ t(Bf, {}),
24607
- C === 2 && /* @__PURE__ */ t($f, {})
24605
+ C === 0 && /* @__PURE__ */ t(z0, {}),
24606
+ C === 1 && /* @__PURE__ */ t(G0, {}),
24607
+ C === 2 && /* @__PURE__ */ t(W0, {})
24608
24608
  ] })
24609
24609
  ] }),
24610
24610
  /* @__PURE__ */ t(
@@ -24619,7 +24619,7 @@ const wf = ({ widgets: e, isLoading: n }) => {
24619
24619
  }
24620
24620
  );
24621
24621
  });
24622
- class Xf {
24622
+ class j0 {
24623
24623
  copyApi = new _i("/", "");
24624
24624
  copyObject = {};
24625
24625
  namespace = "experiences";
@@ -24665,7 +24665,7 @@ const No = {
24665
24665
  MonthlySpendToIncomeComparison: "MonthlySpendToIncomeComparison"
24666
24666
  }, Wt = window?.app?.clientConfig?.microwidget_instance_id || "", zr = {
24667
24667
  INSIGHTS_MICRO_WIDGET: "/micro-insights-carousel"
24668
- }, Lc = (e) => `on${e}Click`, Mc = (e) => `on${e}View`, kc = (e) => `on${e}ViewFirstTime`, Do = (e) => e.replace(/([a-z])([A-Z])/g, "$1 $2"), Zf = () => Object.values(No).reduce(
24668
+ }, Lc = (e) => `on${e}Click`, Mc = (e) => `on${e}View`, kc = (e) => `on${e}ViewFirstTime`, Do = (e) => e.replace(/([a-z])([A-Z])/g, "$1 $2"), X0 = () => Object.values(No).reduce(
24669
24669
  (e, n) => ({
24670
24670
  ...e,
24671
24671
  [Lc(n)]: {
@@ -24676,7 +24676,7 @@ const No = {
24676
24676
  }
24677
24677
  }),
24678
24678
  {}
24679
- ), qf = () => Object.values(No).reduce(
24679
+ ), Z0 = () => Object.values(No).reduce(
24680
24680
  (e, n) => ({
24681
24681
  ...e,
24682
24682
  [Mc(n)]: {
@@ -24687,7 +24687,7 @@ const No = {
24687
24687
  }
24688
24688
  }),
24689
24689
  {}
24690
- ), Qf = () => Object.values(No).reduce(
24690
+ ), q0 = () => Object.values(No).reduce(
24691
24691
  (e, n) => ({
24692
24692
  ...e,
24693
24693
  [kc(n)]: {
@@ -24787,15 +24787,15 @@ const No = {
24787
24787
  label: mn.VIEW_MORE,
24788
24788
  value: Wt
24789
24789
  },
24790
- ...Zf(),
24791
- ...qf(),
24792
- ...Qf()
24790
+ ...X0(),
24791
+ ...Z0(),
24792
+ ...q0()
24793
24793
  }, Xr = async (e, n) => !n || !jr[e] ? null : n.sendAnalyticEvent(jr[e]).then((i) => i).catch((i) => {
24794
24794
  throw i;
24795
24795
  }), Zr = async (e, n) => !n || !Yr[e] ? null : n.sendAnalyticsPageview(Yr[e]).then((i) => i).catch((i) => {
24796
24796
  throw i;
24797
24797
  });
24798
- class Jf {
24798
+ class Q0 {
24799
24799
  onAnalyticEvent = Xr;
24800
24800
  onAnalyticPageView = Zr;
24801
24801
  beatApi = new zn("/", "");
@@ -24820,7 +24820,7 @@ class Jf {
24820
24820
  this.beatApi.updateOffer(n);
24821
24821
  };
24822
24822
  }
24823
- class e0 {
24823
+ class J0 {
24824
24824
  copyStore;
24825
24825
  endpoint = "/";
24826
24826
  insightsMicroWidgetStore;
@@ -24828,7 +24828,7 @@ class e0 {
24828
24828
  token = "";
24829
24829
  isInitialized = !1;
24830
24830
  constructor() {
24831
- this.copyStore = new Xf(), this.insightsMicroWidgetStore = new Jf(), ke(this);
24831
+ this.copyStore = new j0(), this.insightsMicroWidgetStore = new Q0(), ke(this);
24832
24832
  }
24833
24833
  initialize = async (n, i, a) => {
24834
24834
  await this.copyStore.initialize(n, i), await this.insightsMicroWidgetStore.initialize(n, i, a);
@@ -24838,7 +24838,7 @@ class e0 {
24838
24838
  });
24839
24839
  };
24840
24840
  }
24841
- const wi = h.createContext(null), t0 = ({
24841
+ const wi = h.createContext(null), ef = ({
24842
24842
  onEvent: e,
24843
24843
  onPageview: n,
24844
24844
  store: i,
@@ -24975,13 +24975,13 @@ const wi = h.createContext(null), t0 = ({
24975
24975
  }
24976
24976
  );
24977
24977
  }
24978
- ), n0 = ({ beat: e }) => {
24978
+ ), tf = ({ beat: e }) => {
24979
24979
  const [n, i] = St(N.UNCATEGORIZED);
24980
24980
  return Mn(() => {
24981
24981
  e.primary_category_guid ? i(e.primary_category_guid) : e.category_guids?.length && i(e.category_guids[0]);
24982
24982
  }, []), /* @__PURE__ */ t(Mt, { categoryGuid: n, size: 16, sx: { minWidth: 16 } });
24983
- }, i0 = ({ beat: e }) => {
24984
- const n = mt(), i = a0(n);
24983
+ }, nf = ({ beat: e }) => {
24984
+ const n = mt(), i = af(n);
24985
24985
  return /* @__PURE__ */ t(
24986
24986
  on,
24987
24987
  {
@@ -24991,12 +24991,12 @@ const wi = h.createContext(null), t0 = ({
24991
24991
  size: 16
24992
24992
  }
24993
24993
  );
24994
- }, a0 = (e) => jt({
24994
+ }, af = (e) => jt({
24995
24995
  marginTop: e.Spacing.XTiny,
24996
24996
  "& .kyper-categoryicon": {
24997
24997
  display: "flex"
24998
24998
  }
24999
- }), o0 = x(i0), r0 = ({
24999
+ }), of = x(nf), rf = ({
25000
25000
  color: e = "currentColor",
25001
25001
  height: n,
25002
25002
  size: i = 16,
@@ -25022,16 +25022,16 @@ const wi = h.createContext(null), t0 = ({
25022
25022
  }
25023
25023
  )
25024
25024
  }
25025
- ), s0 = (e) => e ? e.data ? e.data.map((n) => {
25025
+ ), sf = (e) => e ? e.data ? e.data.map((n) => {
25026
25026
  const i = {};
25027
25027
  return e.names?.map((a, o) => {
25028
25028
  i[a] = n[o];
25029
25029
  }), i;
25030
- }) : [] : [], c0 = (e, n) => {
25031
- const i = s0(e), a = i.length / 2, o = i.slice(0, a), r = i.slice(a);
25030
+ }) : [] : [], cf = (e, n) => {
25031
+ const i = sf(e), a = i.length / 2, o = i.slice(0, a), r = i.slice(a);
25032
25032
  return !o.length || !r.length ? n.Color.Primary300 : o[0].amount > r[0].amount ? n.Color.Error300 : o[0].amount < r[0].amount ? n.Color.Success300 : n.Color.Primary300;
25033
- }, l0 = ({ beat: e }) => {
25034
- const n = mt(), i = c0(e.data_series, n);
25033
+ }, lf = ({ beat: e }) => {
25034
+ const n = mt(), i = cf(e.data_series, n);
25035
25035
  return /* @__PURE__ */ t($, { name: "bar_chart", sx: { color: i } });
25036
25036
  }, Bc = () => /* @__PURE__ */ l("svg", { fill: "none", height: "36", viewBox: "0 0 40 36", width: "40", xmlns: "http://www.w3.org/2000/svg", children: [
25037
25037
  /* @__PURE__ */ t(
@@ -25816,7 +25816,7 @@ const wi = h.createContext(null), t0 = ({
25816
25816
  ] })
25817
25817
  ] }), qr = ({ beat: e, clientColorScheme: n, color: i, type: a }) => {
25818
25818
  const o = Ce(), r = n?.primary_300 ? n.primary_300 : o.palette.primary.main;
25819
- return a === 0 ? /* @__PURE__ */ t($, { fill: !0, name: "error", sx: { color: i || r } }) : a === 1 && e ? /* @__PURE__ */ t(n0, { beat: e }) : a === 2 && e ? /* @__PURE__ */ t(o0, { beat: e }) : a === 3 && e ? /* @__PURE__ */ t(l0, { beat: e }) : a === 5 && e ? /* @__PURE__ */ t($, { name: "campaign" }) : /* @__PURE__ */ t(
25819
+ return a === 0 ? /* @__PURE__ */ t($, { fill: !0, name: "error", sx: { color: i || r } }) : a === 1 && e ? /* @__PURE__ */ t(tf, { beat: e }) : a === 2 && e ? /* @__PURE__ */ t(of, { beat: e }) : a === 3 && e ? /* @__PURE__ */ t(lf, { beat: e }) : a === 5 && e ? /* @__PURE__ */ t($, { name: "campaign" }) : /* @__PURE__ */ t(
25820
25820
  $,
25821
25821
  {
25822
25822
  fill: !0,
@@ -25831,7 +25831,7 @@ const wi = h.createContext(null), t0 = ({
25831
25831
  if (!e)
25832
25832
  throw new Error("useCopyStore() must be used within the InsightsMicroWidgetDataProvider");
25833
25833
  return e.store.copyStore;
25834
- }, d0 = () => {
25834
+ }, df = () => {
25835
25835
  const e = h.useContext(wi);
25836
25836
  if (!e?.store?.insightsMicroWidgetStore)
25837
25837
  throw new Error(
@@ -25853,7 +25853,7 @@ const wi = h.createContext(null), t0 = ({
25853
25853
  STANDARD: 154,
25854
25854
  XLARGE: 200,
25855
25855
  XXLARGE: 248
25856
- }, _0 = 50, Fc = 1, u0 = ({
25856
+ }, _f = 50, Fc = 1, uf = ({
25857
25857
  ariaLabel: e,
25858
25858
  backgroundColor: n,
25859
25859
  beat: i,
@@ -25870,7 +25870,7 @@ const wi = h.createContext(null), t0 = ({
25870
25870
  }) => {
25871
25871
  const { ref: C, inView: f } = fs({
25872
25872
  threshold: Fc
25873
- }), { cardsCopy: E } = Rn(), { onEvent: b } = Ni(), { updateBeat: S, updateOffer: A } = d0();
25873
+ }), { cardsCopy: E } = Rn(), { onEvent: b } = Ni(), { updateBeat: S, updateOffer: A } = df();
25874
25874
  Mn(() => {
25875
25875
  f && (i.has_been_displayed ? b(Mc(i.template)) : (i.guid.startsWith("OFR") ? A({
25876
25876
  ...i,
@@ -25939,7 +25939,7 @@ const wi = h.createContext(null), t0 = ({
25939
25939
  widthOverrides: m
25940
25940
  }
25941
25941
  );
25942
- }, h0 = ({
25942
+ }, hf = ({
25943
25943
  clientColorScheme: e,
25944
25944
  currentBeatIndex: n,
25945
25945
  numBeats: i,
@@ -25948,7 +25948,7 @@ const wi = h.createContext(null), t0 = ({
25948
25948
  scrollRightBoundary: r,
25949
25949
  scrollX: s
25950
25950
  }) => {
25951
- const c = g0(), d = it(), { carouselCopy: u } = Rn(), _ = Math.floor(s) > r || n === 0, g = s < 0 || i - 1 === n, m = d.palette.grey[500], C = e?.primary_300 ?? d.palette.primary.main;
25951
+ const c = gf(), d = it(), { carouselCopy: u } = Rn(), _ = Math.floor(s) > r || n === 0, g = s < 0 || i - 1 === n, m = d.palette.grey[500], C = e?.primary_300 ?? d.palette.primary.main;
25952
25952
  return /* @__PURE__ */ l(L, { className: c, children: [
25953
25953
  /* @__PURE__ */ t(
25954
25954
  He,
@@ -25995,7 +25995,7 @@ const wi = h.createContext(null), t0 = ({
25995
25995
  }
25996
25996
  )
25997
25997
  ] });
25998
- }, g0 = () => jt({
25998
+ }, gf = () => jt({
25999
25999
  alignItems: "center",
26000
26000
  display: "flex",
26001
26001
  justifyContent: "center",
@@ -26012,7 +26012,7 @@ const wi = h.createContext(null), t0 = ({
26012
26012
  // we were using `gap` instead of margin, but it doesn't work in safari browsers older than iOS 14.1
26013
26013
  marginRight: 8
26014
26014
  }
26015
- }), m0 = ({
26015
+ }), mf = ({
26016
26016
  beats: e = [],
26017
26017
  clientColorScheme: n,
26018
26018
  showCTAColocatedWithText: i,
@@ -26025,7 +26025,7 @@ const wi = h.createContext(null), t0 = ({
26025
26025
  variant: u,
26026
26026
  widthOverrides: _
26027
26027
  }) => {
26028
- const g = C0(a, d, _), m = h.useRef(null), [C, f] = h.useState(0), [E, b] = h.useState(null), [S, A] = h.useState(null), { carouselCopy: v } = Rn(), { onEvent: w } = Ni(), R = () => {
26028
+ const g = Cf(a, d, _), m = h.useRef(null), [C, f] = h.useState(0), [E, b] = h.useState(null), [S, A] = h.useState(null), { carouselCopy: v } = Rn(), { onEvent: w } = Ni(), R = () => {
26029
26029
  w($t.ON_CAROUSEL_FORWARD_CLICK), m.current && m.current.scrollTo({
26030
26030
  left: (
26031
26031
  // Adds the flex gap to the carousel ref's width
@@ -26044,7 +26044,7 @@ const wi = h.createContext(null), t0 = ({
26044
26044
  m.current && f(m.current.scrollLeft);
26045
26045
  }, D = () => {
26046
26046
  if (!S || !E) return;
26047
- S - E > _0 ? w($t.ON_CAROUSEL_FORWARD_SWIPE) : w($t.ON_CAROUSEL_BACK_SWIPE);
26047
+ S - E > _f ? w($t.ON_CAROUSEL_FORWARD_SWIPE) : w($t.ON_CAROUSEL_BACK_SWIPE);
26048
26048
  }, G = (ne) => {
26049
26049
  b(ne.targetTouches[0].clientX);
26050
26050
  }, O = (ne) => {
@@ -26083,7 +26083,7 @@ const wi = h.createContext(null), t0 = ({
26083
26083
  Ve.toString()
26084
26084
  ), Ge = ne.micro_title && ne.micro_title.length > 0, pt = ne.micro_description && ne.micro_description.length > 0, te = Ge ? ne.micro_title : ne.title, ee = pt ? ne.micro_description : ne.description;
26085
26085
  return /* @__PURE__ */ t(
26086
- u0,
26086
+ uf,
26087
26087
  {
26088
26088
  ariaLabel: `${ye}: ${te}, ${ee}`,
26089
26089
  beat: ne,
@@ -26096,7 +26096,7 @@ const wi = h.createContext(null), t0 = ({
26096
26096
  );
26097
26097
  }),
26098
26098
  /* @__PURE__ */ t(
26099
- A0,
26099
+ Af,
26100
26100
  {
26101
26101
  isActiveCard: J === e.length,
26102
26102
  onCardClick: o,
@@ -26107,7 +26107,7 @@ const wi = h.createContext(null), t0 = ({
26107
26107
  }
26108
26108
  ),
26109
26109
  s && /* @__PURE__ */ t(
26110
- h0,
26110
+ hf,
26111
26111
  {
26112
26112
  clientColorScheme: n,
26113
26113
  currentBeatIndex: J,
@@ -26121,7 +26121,7 @@ const wi = h.createContext(null), t0 = ({
26121
26121
  ]
26122
26122
  }
26123
26123
  );
26124
- }, p0 = x(m0), C0 = (e, n = !0, i) => jt({
26124
+ }, pf = x(mf), Cf = (e, n = !0, i) => jt({
26125
26125
  alignItems: "center",
26126
26126
  boxSizing: "border-box",
26127
26127
  display: "flex",
@@ -26146,7 +26146,7 @@ const wi = h.createContext(null), t0 = ({
26146
26146
  display: "none"
26147
26147
  }
26148
26148
  }
26149
- }), f0 = ({
26149
+ }), ff = ({
26150
26150
  clientColorScheme: e,
26151
26151
  onCardClick: n,
26152
26152
  posthog: i,
@@ -26215,7 +26215,7 @@ const wi = h.createContext(null), t0 = ({
26215
26215
  ]
26216
26216
  }
26217
26217
  ) : /* @__PURE__ */ t(de, {});
26218
- }, b0 = x(f0), y0 = ({
26218
+ }, bf = x(ff), yf = ({
26219
26219
  heightOverrides: e,
26220
26220
  widthOverrides: n,
26221
26221
  children: i
@@ -26332,7 +26332,7 @@ const wi = h.createContext(null), t0 = ({
26332
26332
  widthOverrides: d
26333
26333
  }
26334
26334
  );
26335
- }, WE = x($c), E0 = () => /* @__PURE__ */ t(
26335
+ }, WE = x($c), Ef = () => /* @__PURE__ */ t(
26336
26336
  L,
26337
26337
  {
26338
26338
  sx: {
@@ -26344,7 +26344,7 @@ const wi = h.createContext(null), t0 = ({
26344
26344
  },
26345
26345
  children: /* @__PURE__ */ t(Va, {})
26346
26346
  }
26347
- ), hn = new e0(), S0 = ({
26347
+ ), hn = new J0(), Sf = ({
26348
26348
  areBeatsLoading: e,
26349
26349
  beats: n = [],
26350
26350
  // This also determines the length of the carousel controls (beat.length + 1)
@@ -26399,10 +26399,10 @@ const wi = h.createContext(null), t0 = ({
26399
26399
  // The Theme provider must wrap the component so that the styles don't break when imported into other applications.
26400
26400
  /* @__PURE__ */ l(pl, { theme: R, children: [
26401
26401
  /* @__PURE__ */ t(Nd, {}),
26402
- /* @__PURE__ */ t(t0, { onEvent: O, onPageview: U, store: hn, children: /* @__PURE__ */ l(y0, { heightOverrides: r, widthOverrides: w, children: [
26403
- (e || !hn.isInitialized) && /* @__PURE__ */ t(E0, {}),
26402
+ /* @__PURE__ */ t(ef, { onEvent: O, onPageview: U, store: hn, children: /* @__PURE__ */ l(yf, { heightOverrides: r, widthOverrides: w, children: [
26403
+ (e || !hn.isInitialized) && /* @__PURE__ */ t(Ef, {}),
26404
26404
  D && C && /* @__PURE__ */ t(
26405
- b0,
26405
+ bf,
26406
26406
  {
26407
26407
  clientColorScheme: i,
26408
26408
  onCardClick: c,
@@ -26411,7 +26411,7 @@ const wi = h.createContext(null), t0 = ({
26411
26411
  }
26412
26412
  ),
26413
26413
  D && !!n.length && /* @__PURE__ */ t(
26414
- p0,
26414
+ pf,
26415
26415
  {
26416
26416
  beats: n,
26417
26417
  clientColorScheme: i,
@@ -26425,7 +26425,7 @@ const wi = h.createContext(null), t0 = ({
26425
26425
  ] }) })
26426
26426
  ] })
26427
26427
  );
26428
- }, $E = x(S0), T0 = ({
26428
+ }, $E = x(Sf), Tf = ({
26429
26429
  isActiveCard: e,
26430
26430
  ariaLabel: n,
26431
26431
  clientColorScheme: i,
@@ -26457,7 +26457,7 @@ const wi = h.createContext(null), t0 = ({
26457
26457
  description: m.view_more_card_description,
26458
26458
  fontColors: { buttonColor: i?.primary_300 },
26459
26459
  heightOverrides: a,
26460
- icon: /* @__PURE__ */ t(r0, { color: i?.primary_300 ?? u.palette.primary.main }),
26460
+ icon: /* @__PURE__ */ t(rf, { color: i?.primary_300 ?? u.palette.primary.main }),
26461
26461
  isActiveCard: e,
26462
26462
  onCardClick: f,
26463
26463
  posthog: r,
@@ -26468,7 +26468,7 @@ const wi = h.createContext(null), t0 = ({
26468
26468
  widthOverrides: d
26469
26469
  }
26470
26470
  );
26471
- }, A0 = x(T0), Ia = 5, I0 = (e, n) => n.reduce((i, a) => {
26471
+ }, Af = x(Tf), Ia = 5, If = (e, n) => n.reduce((i, a) => {
26472
26472
  if (a.total > 0) {
26473
26473
  const o = e.find((u) => u.guid === a.category_guid);
26474
26474
  if (!o) return i;
@@ -26490,7 +26490,7 @@ const wi = h.createContext(null), t0 = ({
26490
26490
  }
26491
26491
  return i;
26492
26492
  }, []), Uc = (e, n) => {
26493
- const i = I0(e, n), a = i.filter((d) => d.guid !== N.INCOME && d.guid !== N.TRANSFER).sort((d, u) => u.amount - d.amount), o = a.reduce(
26493
+ const i = If(e, n), a = i.filter((d) => d.guid !== N.INCOME && d.guid !== N.TRANSFER).sort((d, u) => u.amount - d.amount), o = a.reduce(
26494
26494
  (d, u) => d + u.amount,
26495
26495
  0
26496
26496
  ), r = a.length > Ia ? Ia : a.length, s = a.slice(0, r), c = s.map((d) => ({
@@ -26552,7 +26552,7 @@ const wi = h.createContext(null), t0 = ({
26552
26552
  }, Xi = ({ amount: e, label: n }) => /* @__PURE__ */ l(y, { direction: "column", children: [
26553
26553
  /* @__PURE__ */ t(p, { bold: !0, sx: { textTransform: "none" }, variant: "Body", children: n }),
26554
26554
  /* @__PURE__ */ t(p, { variant: "XSmall", children: P(e, "0,0") })
26555
- ] }), x0 = ({
26555
+ ] }), xf = ({
26556
26556
  data: e,
26557
26557
  isIncome: n = !1,
26558
26558
  onSelected: i,
@@ -26605,7 +26605,7 @@ const wi = h.createContext(null), t0 = ({
26605
26605
  }
26606
26606
  )
26607
26607
  ] }) }) });
26608
- }, Zi = x(x0), Qr = ({ data: e, onSelected: n, selectedId: i }) => /* @__PURE__ */ t(y, { gap: 8, height: "100%", justifyContent: "center", my: "auto", children: e.categoryData.map((a) => /* @__PURE__ */ l(
26608
+ }, Zi = x(xf), Qr = ({ data: e, onSelected: n, selectedId: i }) => /* @__PURE__ */ t(y, { gap: 8, height: "100%", justifyContent: "center", my: "auto", children: e.categoryData.map((a) => /* @__PURE__ */ l(
26609
26609
  y,
26610
26610
  {
26611
26611
  alignItems: "center",
@@ -26622,7 +26622,7 @@ const wi = h.createContext(null), t0 = ({
26622
26622
  ]
26623
26623
  },
26624
26624
  a.guid
26625
- )) }), v0 = () => {
26625
+ )) }), vf = () => {
26626
26626
  const e = Ce(), { spending: n } = I(), { selectedAccounts: i } = le(), {
26627
26627
  categories: a,
26628
26628
  dateRangeCategoryTotals: o,
@@ -26717,7 +26717,7 @@ const wi = h.createContext(null), t0 = ({
26717
26717
  /* @__PURE__ */ t(Qr, { data: C, onSelected: E, selectedId: d })
26718
26718
  ] }) })
26719
26719
  ] }) : /* @__PURE__ */ t(de, { height: 250 });
26720
- }, w0 = x(v0), N0 = ({ onPrimaryCtaClick: e, sx: n = {} }) => {
26720
+ }, wf = x(vf), Nf = ({ onPrimaryCtaClick: e, sx: n = {} }) => {
26721
26721
  const { spending: i } = I(), { isCopyLoaded: a } = le();
26722
26722
  return a ? /* @__PURE__ */ t(
26723
26723
  Nn,
@@ -26727,10 +26727,10 @@ const wi = h.createContext(null), t0 = ({
26727
26727
  primaryCtaLabel: i.primary_cta,
26728
26728
  sx: n,
26729
26729
  title: i.mini_title,
26730
- children: /* @__PURE__ */ t(w0, {})
26730
+ children: /* @__PURE__ */ t(wf, {})
26731
26731
  }
26732
26732
  ) : /* @__PURE__ */ t(de, {});
26733
- }, UE = x(N0), D0 = ({
26733
+ }, UE = x(Nf), Df = ({
26734
26734
  data: e,
26735
26735
  onSelected: n,
26736
26736
  selectedId: i = "",
@@ -26809,7 +26809,7 @@ const wi = h.createContext(null), t0 = ({
26809
26809
  ] }, s.guid)) }),
26810
26810
  /* @__PURE__ */ t(p, { bold: !0, sx: { mt: 12, pr: 8, textAlign: "right" }, children: `${o.total}: ${P(e.totalAmount, "0,0")}` })
26811
26811
  ] });
26812
- }, R0 = x(D0), O0 = ({
26812
+ }, Rf = x(Df), Of = ({
26813
26813
  data: e,
26814
26814
  onSelected: n,
26815
26815
  onViewTransactions: i,
@@ -26855,18 +26855,18 @@ const wi = h.createContext(null), t0 = ({
26855
26855
  variant: "full"
26856
26856
  }
26857
26857
  ),
26858
- /* @__PURE__ */ t(R0, { data: e, onSelected: n, selectedId: a, title: o })
26858
+ /* @__PURE__ */ t(Rf, { data: e, onSelected: n, selectedId: a, title: o })
26859
26859
  ]
26860
26860
  }
26861
26861
  );
26862
- }, Jr = x(O0), L0 = (e) => [
26862
+ }, Jr = x(Of), Lf = (e) => [
26863
26863
  e.palette.chartMono.chartMono5,
26864
26864
  e.palette.chartMono.chartMono4,
26865
26865
  e.palette.chartMono.chartMono3,
26866
26866
  e.palette.chartMono.chartMono2,
26867
26867
  e.palette.chartMono.chartMono1,
26868
26868
  e.palette.chartMono.chartMono6
26869
- ], M0 = () => {
26869
+ ], Mf = () => {
26870
26870
  const e = ln(), { categories: n, dateRangeCategoryTotals: i, loadDateRangeCategoryTotals: a } = Ue(), { spending: o } = I(), { displayedDateRange: r, selectedAccounts: s, selectedAccountGuids: c } = le(), { setFilter: d, sortedTransactions: u } = Oe(), [_, g] = h.useState(""), [m, C] = h.useState(0), [f, E] = h.useState(""), [b, S] = h.useState(!1);
26871
26871
  h.useEffect(() => {
26872
26872
  a(
@@ -26879,11 +26879,11 @@ const wi = h.createContext(null), t0 = ({
26879
26879
  () => Uc(n, i),
26880
26880
  [n, i]
26881
26881
  ), v = h.useMemo(
26882
- () => Vc(n, i, L0(e)),
26882
+ () => Vc(n, i, Lf(e)),
26883
26883
  [n, i]
26884
26884
  ), w = h.useMemo(
26885
26885
  () => u.find((D) => D.guid === f),
26886
- [f]
26886
+ [f, u]
26887
26887
  ), R = (D, G) => {
26888
26888
  C(G), g("");
26889
26889
  }, M = (D) => {
@@ -26980,7 +26980,7 @@ const wi = h.createContext(null), t0 = ({
26980
26980
  }
26981
26981
  )
26982
26982
  ] });
26983
- }, k0 = x(M0), G0 = ({ onBackClick: e, sx: n = {} }) => {
26983
+ }, kf = x(Mf), Gf = ({ onBackClick: e, sx: n = {} }) => {
26984
26984
  const { visibleAccounts: i } = Te(), { spending: a } = I(), { isCopyLoaded: o, isInitialized: r, setDisplayedDate: s, setSelectedAccounts: c } = le(), { onEvent: d } = Y(), [u, _] = h.useState(!1);
26985
26985
  h.useEffect(() => {
26986
26986
  c(i);
@@ -26999,11 +26999,11 @@ const wi = h.createContext(null), t0 = ({
26999
26999
  onBackClick: e,
27000
27000
  sx: n,
27001
27001
  title: a.title,
27002
- children: /* @__PURE__ */ t(L, { height: "calc(100dvh - 150px)", overflow: "scroll", width: "100%", children: /* @__PURE__ */ t(k0, {}) })
27002
+ children: /* @__PURE__ */ t(L, { height: "calc(100dvh - 150px)", overflow: "scroll", width: "100%", children: /* @__PURE__ */ t(kf, {}) })
27003
27003
  }
27004
27004
  );
27005
- }, VE = x(G0), B0 = (e) => An[e] ?? An.default, P0 = (e) => ia[e];
27006
- function H0(e, n) {
27005
+ }, VE = x(Gf), Bf = (e) => An[e] ?? An.default, Pf = (e) => ia[e];
27006
+ function Hf(e, n) {
27007
27007
  const i = [], a = new Date(e);
27008
27008
  for (; a <= n; ) {
27009
27009
  const o = a.getFullYear(), r = String(a.getMonth() + 1).padStart(2, "0");
@@ -27011,7 +27011,7 @@ function H0(e, n) {
27011
27011
  }
27012
27012
  return i;
27013
27013
  }
27014
- const F0 = (e) => e.reduce((i, a) => {
27014
+ const Ff = (e) => e.reduce((i, a) => {
27015
27015
  const o = {
27016
27016
  top_level_category_guid: a.top_level_category_guid,
27017
27017
  category_guid: a.category_guid,
@@ -27019,8 +27019,8 @@ const F0 = (e) => e.reduce((i, a) => {
27019
27019
  year_month: a.year_month
27020
27020
  }, { top_level_category_guid: r, category_guid: s } = o;
27021
27021
  return i[s] || (i[s] = []), i[s].push(o), r !== s && (i[r] || (i[r] = []), i[r].push(o)), i;
27022
- }, {}), W0 = (e, n, i) => {
27023
- const a = F0(e), o = H0(n, i);
27022
+ }, {}), Wf = (e, n, i) => {
27023
+ const a = Ff(e), o = Hf(n, i);
27024
27024
  return Object.entries(a).map(([s, c]) => {
27025
27025
  const d = c[0].top_level_category_guid, u = o.map((_) => {
27026
27026
  const g = c.filter((E) => E.year_month === _).reduce((E, b) => E + Math.abs(b.amount), 0), m = Number(String(_).slice(0, 4)), C = Number(String(_).slice(4));
@@ -27029,18 +27029,18 @@ const F0 = (e) => e.reduce((i, a) => {
27029
27029
  return {
27030
27030
  top_level_category_guid: d,
27031
27031
  category_guid: s,
27032
- category_name: P0(s),
27033
- category_color: B0(d),
27032
+ category_name: Pf(s),
27033
+ category_color: Bf(d),
27034
27034
  dataset: u
27035
27035
  };
27036
27036
  });
27037
- }, $0 = (e, n) => {
27037
+ }, $f = (e, n) => {
27038
27038
  const i = typeof e == "string" ? parseFloat(e.replace(/[^0-9.-]+/g, "")) : e, a = typeof n == "string" ? parseFloat(n.replace(/[^0-9.-]+/g, "")) : n;
27039
27039
  return (i || 0) - (a || 0);
27040
- }, U0 = (e) => {
27040
+ }, Uf = (e) => {
27041
27041
  const n = e.row[e.field];
27042
27042
  return /* @__PURE__ */ t(y, { alignItems: "flex-end", tabIndex: e.tabIndex, children: /* @__PURE__ */ t($e, { amount: n, variant: "Small" }) });
27043
- }, V0 = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
27043
+ }, Vf = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
27044
27044
  const { categories: i } = I(), a = ia[e];
27045
27045
  return /* @__PURE__ */ l(y, { alignItems: "center", direction: "row", justifyContent: "center", children: [
27046
27046
  /* @__PURE__ */ t(
@@ -27053,20 +27053,20 @@ const F0 = (e) => e.reduce((i, a) => {
27053
27053
  ),
27054
27054
  /* @__PURE__ */ t(p, { sx: { ml: 12, pb: 6 }, variant: "Small", children: a })
27055
27055
  ] });
27056
- }, K0 = (e) => /* @__PURE__ */ t(y, { alignItems: "center", direction: "row", height: "100%", width: "100%", children: /* @__PURE__ */ t(
27057
- V0,
27056
+ }, Kf = (e) => /* @__PURE__ */ t(y, { alignItems: "center", direction: "row", height: "100%", width: "100%", children: /* @__PURE__ */ t(
27057
+ Vf,
27058
27058
  {
27059
27059
  categoryGuid: e.row.category,
27060
27060
  topLevelCategoryGuid: e.row.top_level_category_guid
27061
27061
  }
27062
- ) }), z0 = (e, n) => {
27062
+ ) }), zf = (e, n) => {
27063
27063
  const i = [], a = new Date(e);
27064
27064
  for (; a <= n; ) {
27065
27065
  const o = re(a, ie.MONTH);
27066
27066
  i.push(o), a.setMonth(a.getMonth() + 1);
27067
27067
  }
27068
27068
  return i;
27069
- }, Y0 = ({
27069
+ }, Yf = ({
27070
27070
  monthlyCategoryTotals: e,
27071
27071
  selectedDateRange: n,
27072
27072
  selectedCategory: i,
@@ -27076,13 +27076,13 @@ const F0 = (e) => e.reduce((i, a) => {
27076
27076
  }) => {
27077
27077
  const { onEvent: s } = Y(), c = re(/* @__PURE__ */ new Date(), ie.MONTH_SHORT), [d, u] = h.useState([
27078
27078
  { field: c, sort: "desc" }
27079
- ]), _ = h.useMemo(() => z0(n.start, n.end), [n]), g = [
27079
+ ]), _ = h.useMemo(() => zf(n.start, n.end), [n]), g = [
27080
27080
  {
27081
27081
  field: "category",
27082
27082
  headerName: "Category",
27083
27083
  minWidth: 175,
27084
27084
  renderHeader: Ft,
27085
- renderCell: K0,
27085
+ renderCell: Kf,
27086
27086
  sortable: !0,
27087
27087
  type: "string"
27088
27088
  },
@@ -27092,13 +27092,13 @@ const F0 = (e) => e.reduce((i, a) => {
27092
27092
  headerName: C,
27093
27093
  minWidth: 75,
27094
27094
  renderHeader: Ft,
27095
- renderCell: U0,
27095
+ renderCell: Uf,
27096
27096
  align: "right",
27097
27097
  headerAlign: "right",
27098
27098
  sortable: !0,
27099
27099
  hideSortIcons: !1,
27100
27100
  type: "number",
27101
- sortComparator: $0
27101
+ sortComparator: $f
27102
27102
  })
27103
27103
  )
27104
27104
  ], m = h.useMemo(() => {
@@ -27140,15 +27140,18 @@ const F0 = (e) => e.reduce((i, a) => {
27140
27140
  sortingOrder: ["asc", "desc"]
27141
27141
  }
27142
27142
  ) });
27143
- }, j0 = {
27143
+ }, jf = {
27144
27144
  title: "Transaction List"
27145
- }, X0 = ({
27145
+ }, Xf = ({
27146
27146
  categoryGuid: e,
27147
27147
  dateRange: n,
27148
27148
  isOpen: i,
27149
27149
  onClose: a
27150
27150
  }) => {
27151
- const { onEvent: o } = Y(), { selectedAccountGuids: r } = le(), { common: s } = I(), { setFilter: c, sortedTransactions: d } = Oe(), [u, _] = h.useState(""), g = h.useMemo(() => d.find((C) => C.guid === u), [u]);
27151
+ const { onEvent: o } = Y(), { selectedAccountGuids: r } = le(), { common: s } = I(), { setFilter: c, sortedTransactions: d } = Oe(), [u, _] = h.useState(""), g = h.useMemo(
27152
+ () => d.find((C) => C.guid === u),
27153
+ [u, d]
27154
+ );
27152
27155
  h.useEffect(() => {
27153
27156
  c({
27154
27157
  accounts: r,
@@ -27165,16 +27168,16 @@ const F0 = (e) => e.reduce((i, a) => {
27165
27168
  ariaLabelClose: s.close_aria,
27166
27169
  isOpen: i,
27167
27170
  onClose: m,
27168
- title: j0.title,
27171
+ title: jf.title,
27169
27172
  children: [
27170
27173
  g && /* @__PURE__ */ t(ni, { transaction: g }),
27171
27174
  !g && /* @__PURE__ */ t(Dn, { onClick: _ })
27172
27175
  ]
27173
27176
  }
27174
27177
  );
27175
- }, Z0 = x(X0), q0 = {
27178
+ }, Zf = x(Xf), qf = {
27176
27179
  view_transactions: "View Transactions"
27177
- }, Q0 = ({ onBackClick: e, sx: n }) => {
27180
+ }, Qf = ({ onBackClick: e, sx: n }) => {
27178
27181
  const i = it(), { onEvent: a } = Y(), { isDesktop: o, isTablet: r, isMobile: s } = fe(), { visibleAccounts: c } = Te(), { loadMonthlyCategoryTotals: d, monthlyCategoryTotals: u, getCategoryName: _ } = Ue(), { sortedTransactions: g } = Oe(), { isCopyLoaded: m, isInitialized: C, selectedAccounts: f, setSelectedAccounts: E } = le(), { trends: b } = I(), S = i.palette.mode === "dark", [A, v] = h.useState(!1), [w, R] = h.useState(!1), [M, B] = h.useState("Chart"), [D, G] = h.useState(""), [O, U] = h.useState({
27179
27182
  start: Vo(Qe(Kt(/* @__PURE__ */ new Date(), 6)), 1),
27180
27183
  end: Qe(/* @__PURE__ */ new Date())
@@ -27192,7 +27195,7 @@ const F0 = (e) => e.reduce((i, a) => {
27192
27195
  }, [C, f, O]);
27193
27196
  const J = h.useMemo(() => {
27194
27197
  if (!A) return { stackedDatasets: [], unstackedDatasets: [] };
27195
- const ee = W0(
27198
+ const ee = Wf(
27196
27199
  u,
27197
27200
  O.start,
27198
27201
  O.end
@@ -27323,7 +27326,7 @@ const F0 = (e) => e.reduce((i, a) => {
27323
27326
  /* @__PURE__ */ t($, { name: "arrow_back" }),
27324
27327
  b.all_categories
27325
27328
  ] }) }),
27326
- /* @__PURE__ */ t(Q, { onClick: () => R(!0), sx: { px: 5 }, children: `${q0.view_transactions} (${g.length})` })
27329
+ /* @__PURE__ */ t(Q, { onClick: () => R(!0), sx: { px: 5 }, children: `${qf.view_transactions} (${g.length})` })
27327
27330
  ] }),
27328
27331
  /* @__PURE__ */ l(L, { children: [
27329
27332
  M === "Chart" && /* @__PURE__ */ t(
@@ -27338,7 +27341,7 @@ const F0 = (e) => e.reduce((i, a) => {
27338
27341
  }
27339
27342
  ),
27340
27343
  M === "Table" && /* @__PURE__ */ t(
27341
- Y0,
27344
+ Yf,
27342
27345
  {
27343
27346
  monthlyCategoryTotals: u,
27344
27347
  onClickRow: Ve,
@@ -27351,7 +27354,7 @@ const F0 = (e) => e.reduce((i, a) => {
27351
27354
  }
27352
27355
  ),
27353
27356
  /* @__PURE__ */ t(
27354
- Z0,
27357
+ Zf,
27355
27358
  {
27356
27359
  categoryGuid: D,
27357
27360
  dateRange: O,
@@ -27362,7 +27365,7 @@ const F0 = (e) => e.reduce((i, a) => {
27362
27365
  ]
27363
27366
  }
27364
27367
  );
27365
- }, KE = x(Q0), J0 = () => {
27368
+ }, KE = x(Qf), Jf = () => {
27366
27369
  const e = it(), { monthlyCategoryTotals: n } = Ue(), { trends: i } = I(), a = Qg(n);
27367
27370
  return /* @__PURE__ */ t(
27368
27371
  to,
@@ -27378,7 +27381,7 @@ const F0 = (e) => e.reduce((i, a) => {
27378
27381
  useCustomMark: !0
27379
27382
  }
27380
27383
  );
27381
- }, eb = x(J0), tb = ({ onPrimaryCtaClick: e, sx: n }) => {
27384
+ }, eb = x(Jf), tb = ({ onPrimaryCtaClick: e, sx: n }) => {
27382
27385
  const { loadMonthlyCategoryTotals: i, monthlyTotalsLoaded: a } = Ue(), { isInitialized: o } = ra(), { trends: r } = I(), { isCopyLoaded: s, selectedAccounts: c } = le();
27383
27386
  return h.useEffect(() => {
27384
27387
  o && i(c).finally();
@@ -27412,17 +27415,17 @@ export {
27412
27415
  ec as AddRecurringTransactionDetails,
27413
27416
  Jd as AnalyticsApi,
27414
27417
  k as ApiEndpoints,
27415
- e0 as AppStore,
27418
+ J0 as AppStore,
27416
27419
  jo as BannerApi,
27417
27420
  aE as BarChart,
27418
27421
  zn as BeatApi,
27419
- u0 as BeatCard,
27422
+ uf as BeatCard,
27420
27423
  Gi as BottomActions,
27421
27424
  GE as BubbleBudgetsMiniWidget,
27422
27425
  BE as BubbleBudgetsWidget,
27423
27426
  C_ as Calendar,
27424
27427
  Ds as CalendarSelectionTypes,
27425
- b0 as CarouselHeader,
27428
+ bf as CarouselHeader,
27426
27429
  CE as CashflowApi,
27427
27430
  lE as CashflowMiniWidget,
27428
27431
  Bg as CashflowOnboarding,
@@ -27437,7 +27440,7 @@ export {
27437
27440
  uh as CategorySelector,
27438
27441
  la as CategorySelectorDrawer,
27439
27442
  Ch as CategoryStore,
27440
- r0 as ChartFilledIcon,
27443
+ rf as ChartFilledIcon,
27441
27444
  Hs as ConnectCard,
27442
27445
  Wn as ConnectDrawer,
27443
27446
  ME as ConnectMiniWidget,
@@ -27484,7 +27487,7 @@ export {
27484
27487
  xn as IconBacking,
27485
27488
  so as InformationTooltip,
27486
27489
  $E as InsightsMicroWidget,
27487
- t0 as InsightsMicroWidgetDataProvider,
27490
+ ef as InsightsMicroWidgetDataProvider,
27488
27491
  HE as InvestmentsWidget,
27489
27492
  Fd as IterationItemTypes,
27490
27493
  Z4 as LOADING_STATUS,
@@ -27500,11 +27503,11 @@ export {
27500
27503
  Dp as MerchantStore,
27501
27504
  xt as MetaType,
27502
27505
  ys as MfaStatuses,
27503
- p0 as MicroBeatCarousel,
27506
+ pf as MicroBeatCarousel,
27504
27507
  ga as MicroInsightCard,
27505
27508
  ro as MicroWidgetContainer,
27506
27509
  Nn as MiniWidgetContainer,
27507
- l0 as MonthlySpendComparisonIcon,
27510
+ lf as MonthlySpendComparisonIcon,
27508
27511
  sE as MultiSegmentDonut,
27509
27512
  Op as NetWorthChart,
27510
27513
  Gp as NetWorthList,
@@ -27585,7 +27588,7 @@ export {
27585
27588
  Ca as UserApi,
27586
27589
  mC as UserStore,
27587
27590
  Tu as UserVerification,
27588
- A0 as ViewMoreMicroCard,
27591
+ Af as ViewMoreMicroCard,
27589
27592
  qo as WidgetApi,
27590
27593
  yt as WidgetContainer,
27591
27594
  Os as WidgetContainerContext,