@mx-cartographer/experiences 6.14.2-alpha.mega3 → 6.14.2-alpha.mega4

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
@@ -7974,37 +7974,37 @@ const Ks = ({ transaction: e }) => {
7974
7974
  ] });
7975
7975
  }), qs = x(
7976
7976
  ({ onDeleted: e, recurringTransaction: n }) => {
7977
- const { recurring: i } = I(), { selectedAccountGuids: a } = le(), { onEvent: o } = Y(), { deleteRepeatingTransaction: r } = Ye(), { setFilter: s } = De(), { amount: c, description: d, merchant_guid: u } = n, [_, g] = h.useState(!1), [m, C] = h.useState("");
7977
+ const { recurring: i } = I(), { selectedAccountGuids: a } = le(), { onEvent: o } = Y(), { deleteRepeatingTransaction: r } = Ye(), { setFilter: s, transactions: c } = De(), { amount: d, description: u, merchant_guid: _ } = n, [g, m] = h.useState(!1), [C, f] = h.useState("");
7978
7978
  h.useEffect(() => {
7979
7979
  s({
7980
7980
  accounts: a,
7981
7981
  dateRange: { start: Tt(ue(), 90), end: Je(ue()) },
7982
- custom: (A) => A.repeating_transaction_guid === n.guid
7982
+ custom: (v) => v.repeating_transaction_guid === n.guid
7983
7983
  });
7984
7984
  }, [n]);
7985
- const f = h.useMemo(
7986
- () => n.transactions.length > 0 ? n.transactions[0] : void 0,
7987
- [n]
7988
- ), E = n.repeating_transaction_type === nn.Income, b = async () => {
7985
+ const E = h.useMemo(
7986
+ () => c.find((v) => v.guid === C),
7987
+ [C, c]
7988
+ ), b = n.repeating_transaction_type === nn.Income, S = async () => {
7989
7989
  await r(n.guid), e();
7990
- }, S = () => {
7991
- g(!0), o(W.RECURRING_TRANSACTIONS_DETAILS_CLICK_DELETE);
7990
+ }, A = () => {
7991
+ m(!0), o(W.RECURRING_TRANSACTIONS_DETAILS_CLICK_DELETE);
7992
7992
  };
7993
7993
  return /* @__PURE__ */ l(y, { bgcolor: "background.default", direction: "column", height: "100%", children: [
7994
7994
  /* @__PURE__ */ l(y, { direction: "column", m: 24, children: [
7995
7995
  /* @__PURE__ */ t(
7996
7996
  on,
7997
7997
  {
7998
- categoryGuid: f?.category_guid || "",
7999
- merchantGuid: u,
7998
+ categoryGuid: E?.category_guid || "",
7999
+ merchantGuid: _,
8000
8000
  size: 64,
8001
8001
  sx: { mb: 12 }
8002
8002
  }
8003
8003
  ),
8004
- /* @__PURE__ */ t(p, { bold: !0, variant: "body1", children: d }),
8005
- /* @__PURE__ */ l(jt, { color: E ? "success.main" : "text.primary", sx: { my: 4 }, children: [
8006
- E ? "+" : "",
8007
- P(c, "0,0.00")
8004
+ /* @__PURE__ */ t(p, { bold: !0, variant: "body1", children: u }),
8005
+ /* @__PURE__ */ l(jt, { color: b ? "success.main" : "text.primary", sx: { my: 4 }, children: [
8006
+ b ? "+" : "",
8007
+ P(d, "0,0.00")
8008
8008
  ] }),
8009
8009
  /* @__PURE__ */ t(p, { color: "text.secondary", variant: "body2", children: `${i.next_payment_date}: ${re(
8010
8010
  n.predicted_occurs_on,
@@ -8023,13 +8023,13 @@ const Ks = ({ transaction: e }) => {
8023
8023
  ),
8024
8024
  /* @__PURE__ */ t(H, { color: "secondary", variant: "inset" })
8025
8025
  ] }),
8026
- f?.category && /* @__PURE__ */ l(X, { children: [
8026
+ E?.category && /* @__PURE__ */ l(X, { children: [
8027
8027
  /* @__PURE__ */ t(
8028
8028
  Oa,
8029
8029
  {
8030
8030
  iconName: "monetization_on",
8031
8031
  label: i.category,
8032
- value: f.category
8032
+ value: E.category
8033
8033
  }
8034
8034
  ),
8035
8035
  /* @__PURE__ */ t(H, { color: "secondary", variant: "inset" })
@@ -8041,36 +8041,36 @@ const Ks = ({ transaction: e }) => {
8041
8041
  J,
8042
8042
  {
8043
8043
  color: "error",
8044
- onClick: S,
8044
+ onClick: A,
8045
8045
  startIcon: /* @__PURE__ */ t(Ol, {}),
8046
8046
  sx: { mx: 24, my: 16 },
8047
8047
  variant: "text",
8048
- children: E ? i.delete_income_title : i.delete_expense_title
8048
+ children: b ? i.delete_income_title : i.delete_expense_title
8049
8049
  }
8050
8050
  ),
8051
8051
  /* @__PURE__ */ t(p, { bold: !0, sx: { ml: 24, mt: 16 }, variant: "Body", children: i.paid_transactions }),
8052
- /* @__PURE__ */ t(Dn, { height: "30dvh", onClick: C }),
8052
+ /* @__PURE__ */ t(Dn, { height: "30dvh", onClick: f }),
8053
8053
  /* @__PURE__ */ t(
8054
8054
  ce,
8055
8055
  {
8056
8056
  ariaLabelClose: i.close_drawer_aria,
8057
- isOpen: !!m,
8058
- onClose: () => C(""),
8057
+ isOpen: !!C,
8058
+ onClose: () => f(""),
8059
8059
  title: i.transaction_details_drawer_title,
8060
- children: f && /* @__PURE__ */ t(ni, { transaction: f })
8060
+ children: E && /* @__PURE__ */ t(ni, { transaction: E })
8061
8061
  }
8062
8062
  ),
8063
8063
  /* @__PURE__ */ t(
8064
8064
  ke,
8065
8065
  {
8066
8066
  copy: {
8067
- title: E ? i.delete_income_title : i.delete_expense_title,
8067
+ title: b ? i.delete_income_title : i.delete_expense_title,
8068
8068
  close_aria: i.close_drawer_aria
8069
8069
  },
8070
- isOpen: _,
8071
- onClose: () => g(!1),
8072
- onPrimaryAction: b,
8073
- children: /* @__PURE__ */ t(p, { children: E ? i.delete_income_description : i.delete_expense_description })
8070
+ isOpen: g,
8071
+ onClose: () => m(!1),
8072
+ onPrimaryAction: S,
8073
+ children: /* @__PURE__ */ t(p, { children: b ? i.delete_income_description : i.delete_expense_description })
8074
8074
  }
8075
8075
  )
8076
8076
  ] });
@@ -21831,14 +21831,14 @@ const UC = () => {
21831
21831
  "y",
21832
21832
  wt.forceY().y(n / 2).strength(0.01)
21833
21833
  );
21834
- }, e0 = (e, n) => wt.scaleLinear().domain([e, n]).range([XC, jC]), t0 = (e) => {
21834
+ }, ef = (e, n) => wt.scaleLinear().domain([e, n]).range([XC, jC]), tf = (e) => {
21835
21835
  const n = e.reduce((r, s) => {
21836
21836
  const c = Math.max(s.transaction_total, s.amount);
21837
21837
  return c > r ? c : r;
21838
21838
  }, 0), i = e.reduce((r, s) => {
21839
21839
  const c = Math.max(s.transaction_total, s.amount);
21840
21840
  return c < r ? c : r;
21841
- }, n), a = e0(i, n), o = e.map((r) => {
21841
+ }, n), a = ef(i, n), o = e.map((r) => {
21842
21842
  const s = a(Math.max(r.transaction_total, r.amount)) || 25;
21843
21843
  return {
21844
21844
  ...r,
@@ -21848,15 +21848,15 @@ const UC = () => {
21848
21848
  return wt.forceSimulation(o).velocityDecay(0.05).force("collide", wt.forceCollide((r) => r.radius + 2).strength(0.5)).on("tick", () => {
21849
21849
  wt.selectAll(".bubble").data(o).attr("transform", (r) => `translate(${r.x},${r.y})`);
21850
21850
  });
21851
- }, Ur = 5, n0 = 2e3;
21852
- function i0({ bubble: e }) {
21851
+ }, Ur = 5, nf = 2e3;
21852
+ function af({ bubble: e }) {
21853
21853
  const n = Ce(), {
21854
21854
  guid: i,
21855
21855
  budgetColors: { mercury: a },
21856
21856
  radius: o
21857
21857
  } = e, r = `mercury-${i}`;
21858
21858
  h.useEffect(() => {
21859
- wt.select(`.${r}`).selectAll(".status").remove(), wt.select(`.${r}`).append("path").transition().duration(n0).delay(0).attr("class", "status").attr("style", `fill: ${a}; fill-opacity: 1;`).attrTween("d", () => qC(e));
21859
+ wt.select(`.${r}`).selectAll(".status").remove(), wt.select(`.${r}`).append("path").transition().duration(nf).delay(0).attr("class", "status").attr("style", `fill: ${a}; fill-opacity: 1;`).attrTween("d", () => qC(e));
21860
21860
  }, [e]);
21861
21861
  const s = wt.arc().innerRadius((c) => c - 2 * Ur).outerRadius((c) => c - Ur).startAngle(0).endAngle(2 * Math.PI);
21862
21862
  return /* @__PURE__ */ t("g", { className: r, children: /* @__PURE__ */ t(
@@ -21868,7 +21868,7 @@ function i0({ bubble: e }) {
21868
21868
  ) });
21869
21869
  }
21870
21870
  const Un = 75, Vr = 50;
21871
- function a0({ bubble: e, isDraggable: n, onClick: i = () => {
21871
+ function of({ bubble: e, isDraggable: n, onClick: i = () => {
21872
21872
  } }) {
21873
21873
  const [a, o] = h.useState(!1);
21874
21874
  if (h.useEffect(() => {
@@ -21967,14 +21967,14 @@ function a0({ bubble: e, isDraggable: n, onClick: i = () => {
21967
21967
  children: _.split(" ")[1]
21968
21968
  }
21969
21969
  ),
21970
- /* @__PURE__ */ t(i0, { bubble: e })
21970
+ /* @__PURE__ */ t(af, { bubble: e })
21971
21971
  ]
21972
21972
  },
21973
21973
  u
21974
21974
  );
21975
21975
  }
21976
21976
  let ci;
21977
- const o0 = ({
21977
+ const rf = ({
21978
21978
  height: e,
21979
21979
  width: n,
21980
21980
  isDraggable: i = !1,
@@ -21982,10 +21982,10 @@ const o0 = ({
21982
21982
  }
21983
21983
  }) => {
21984
21984
  const { detailedBudgets: o } = dt();
21985
- return ci = h.useMemo(() => t0(o), [o]), h.useEffect(() => {
21985
+ return ci = h.useMemo(() => tf(o), [o]), h.useEffect(() => {
21986
21986
  JC(ci, e, n), i && QC(ci);
21987
- }, [ci, e, n]), /* @__PURE__ */ t("svg", { height: e, style: { overflow: "visible" }, width: Math.abs(n), children: ci.nodes().map((r) => /* @__PURE__ */ t(a0, { bubble: r, isDraggable: i, onClick: a }, r.guid)) });
21988
- }, r0 = x(o0), s0 = ({
21987
+ }, [ci, e, n]), /* @__PURE__ */ t("svg", { height: e, style: { overflow: "visible" }, width: Math.abs(n), children: ci.nodes().map((r) => /* @__PURE__ */ t(of, { bubble: r, isDraggable: i, onClick: a }, r.guid)) });
21988
+ }, sf = x(rf), cf = ({
21989
21989
  isMiniWidget: e = !1,
21990
21990
  onConnectAccountsClick: n,
21991
21991
  createBudgetOnClick: i
@@ -22081,14 +22081,14 @@ const o0 = ({
22081
22081
  };
22082
22082
  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: [
22083
22083
  o || !u ? /* @__PURE__ */ t(
22084
- s0,
22084
+ cf,
22085
22085
  {
22086
22086
  createBudgetOnClick: e,
22087
22087
  isMiniWidget: a,
22088
22088
  onConnectAccountsClick: S
22089
22089
  }
22090
22090
  ) : /* @__PURE__ */ t(
22091
- r0,
22091
+ sf,
22092
22092
  {
22093
22093
  height: n,
22094
22094
  isDraggable: i,
@@ -22106,7 +22106,7 @@ const o0 = ({
22106
22106
  )
22107
22107
  ] });
22108
22108
  }
22109
- ), c0 = (e) => {
22109
+ ), lf = (e) => {
22110
22110
  const n = Ce(), { accounts: i } = Se(), { budgets: a, isDataLoaded: o, loadBudgetData: r, setTheme: s } = dt(), { budgets: c } = I(), { isCopyLoaded: d, isInitialized: u } = le(), { reloadCategoryTotals: _ } = Ve(), g = Z_(), m = a.length === 0;
22111
22111
  return h.useEffect(() => {
22112
22112
  s(n);
@@ -22136,7 +22136,7 @@ const o0 = ({
22136
22136
  ] }) : /* @__PURE__ */ t(de, {})
22137
22137
  }
22138
22138
  ) : /* @__PURE__ */ t(de, {});
22139
- }, BE = x(c0), l0 = x(() => {
22139
+ }, BE = x(lf), df = x(() => {
22140
22140
  const { budgets: e } = I(), { totalBudgeted: n } = dt(), { projectedIncome: i } = Ye(), a = i - n;
22141
22141
  return /* @__PURE__ */ l(y, { direction: "row", justifyContent: "center", my: 16, spacing: 20, children: [
22142
22142
  /* @__PURE__ */ l(y, { alignItems: "center", children: [
@@ -22154,7 +22154,7 @@ const o0 = ({
22154
22154
  /* @__PURE__ */ t(p, { color: "secondary", variant: "Small", children: e.remaining })
22155
22155
  ] })
22156
22156
  ] });
22157
- }), d0 = x(
22157
+ }), _f = x(
22158
22158
  ({ category: e }) => {
22159
22159
  const { budgets: n } = I(), { budgets: i } = dt(), a = h.useMemo(() => {
22160
22160
  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;
@@ -22168,7 +22168,7 @@ const o0 = ({
22168
22168
  /* @__PURE__ */ t(H, {})
22169
22169
  ] }, e.guid);
22170
22170
  }
22171
- ), _0 = ({ onRecalculateBudgets: e }) => {
22171
+ ), uf = ({ onRecalculateBudgets: e }) => {
22172
22172
  const { budgets: n, common: i } = I(), { spendCategories: a } = Ve(), { recalculateBudgets: o, setAlert: r } = dt(), [s, c] = h.useState(!1), d = a.filter((_) => _.totalAverageAmount > 0), u = async () => {
22173
22173
  await o(d), c(!1), r(n.alert_recalculated_budgets), e?.();
22174
22174
  };
@@ -22188,7 +22188,7 @@ const o0 = ({
22188
22188
  /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: n.recalculate_description_top }),
22189
22189
  /* @__PURE__ */ t(p, { variant: "ParagraphSmall", children: n.recalculate_description_bottom })
22190
22190
  ] }),
22191
- /* @__PURE__ */ t(L, { bgcolor: "background.paper", children: /* @__PURE__ */ t(ae, { children: d.map((_) => /* @__PURE__ */ t(d0, { category: _ }, _.guid)) }) })
22191
+ /* @__PURE__ */ t(L, { bgcolor: "background.paper", children: /* @__PURE__ */ t(ae, { children: d.map((_) => /* @__PURE__ */ t(_f, { category: _ }, _.guid)) }) })
22192
22192
  ] })
22193
22193
  }
22194
22194
  )
@@ -22219,7 +22219,7 @@ const o0 = ({
22219
22219
  }
22220
22220
  )
22221
22221
  ] });
22222
- }, u0 = x(({ category: e, onAddBudget: n }) => {
22222
+ }, hf = x(({ category: e, onAddBudget: n }) => {
22223
22223
  const { budgets: i, common: a } = I(), [o, r] = h.useState(!1), [s, c] = h.useState(
22224
22224
  `${e.totalAmount === 0 ? "" : e.totalAmount}`
22225
22225
  );
@@ -22248,21 +22248,21 @@ const o0 = ({
22248
22248
  }
22249
22249
  )
22250
22250
  ] });
22251
- }), h0 = x(({ onRecalculateBudgets: e }) => {
22251
+ }), gf = x(({ onRecalculateBudgets: e }) => {
22252
22252
  const { budgets: n } = I(), { addBudget: i, setAlert: a, unbudgetedCategories: o } = dt(), r = async (s, c) => {
22253
22253
  await i(s, c), a(T(n.alert_budget_created, s.name));
22254
22254
  };
22255
22255
  return /* @__PURE__ */ l(y, { children: [
22256
- /* @__PURE__ */ t(l0, {}),
22256
+ /* @__PURE__ */ t(df, {}),
22257
22257
  /* @__PURE__ */ t(L, { bgcolor: "background.paper", children: /* @__PURE__ */ t(ae, { children: o.map((s) => /* @__PURE__ */ t(
22258
- u0,
22258
+ hf,
22259
22259
  {
22260
22260
  category: s,
22261
22261
  onAddBudget: r
22262
22262
  },
22263
22263
  s.guid
22264
22264
  )) }) }),
22265
- /* @__PURE__ */ t(_0, { onRecalculateBudgets: e })
22265
+ /* @__PURE__ */ t(uf, { onRecalculateBudgets: e })
22266
22266
  ] });
22267
22267
  }), Oc = ({ budget: e }) => {
22268
22268
  const {
@@ -22284,14 +22284,14 @@ const o0 = ({
22284
22284
  /* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: a }),
22285
22285
  /* @__PURE__ */ t(Yn, { data: c, height: 10 })
22286
22286
  ] }) }) });
22287
- }, g0 = x(() => {
22287
+ }, mf = x(() => {
22288
22288
  const { budgets: e } = I();
22289
22289
  return /* @__PURE__ */ l(y, { alignItems: "center", gap: 12, height: "auto", mb: 24, mt: 24, children: [
22290
22290
  /* @__PURE__ */ t($, { color: "secondary", name: "bubble_chart", sx: { fontSize: 32 } }),
22291
22291
  /* @__PURE__ */ t(p, { bold: !0, color: "secondary", variant: "Small", children: e.zero_state_no_sub_budgets }),
22292
22292
  /* @__PURE__ */ t(p, { color: "text.secondary", variant: "XSmall", children: e.zero_state_no_sub_budgets_description })
22293
22293
  ] });
22294
- }), m0 = x(({ budget: e }) => {
22294
+ }), pf = x(({ budget: e }) => {
22295
22295
  const {
22296
22296
  amount: n,
22297
22297
  budgetColors: { background: i },
@@ -22312,7 +22312,7 @@ const o0 = ({
22312
22312
  }
22313
22313
  )
22314
22314
  ] }) });
22315
- }), p0 = x(({ category: e, parentBudget: n }) => {
22315
+ }), Cf = x(({ category: e, parentBudget: n }) => {
22316
22316
  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);
22317
22317
  h.useEffect(() => {
22318
22318
  r((S) => {
@@ -22364,7 +22364,7 @@ const o0 = ({
22364
22364
  }
22365
22365
  )
22366
22366
  ] });
22367
- }), C0 = x(({ budget: e }) => {
22367
+ }), ff = x(({ budget: e }) => {
22368
22368
  const { category: n, subBudgets: i } = e, { budgets: a, common: o } = I(), { deleteBudget: r, selectedSubBudget: s, setSelectedSubBudget: c, updateBudget: d } = dt(), { filter: u, setFilter: _ } = De(), [g, m] = h.useState(!1), [C, f] = h.useState(!1), [E, b] = h.useState("");
22369
22369
  h.useEffect(() => {
22370
22370
  s && (b(`${s.amount}`), _({
@@ -22387,11 +22387,11 @@ const o0 = ({
22387
22387
  };
22388
22388
  return /* @__PURE__ */ l(h.Fragment, { children: [
22389
22389
  /* @__PURE__ */ l(ae, { sx: { bgcolor: "background.paper" }, children: [
22390
- i.length === 0 ? /* @__PURE__ */ t(g0, {}) : i.map((w) => /* @__PURE__ */ l(h.Fragment, { children: [
22391
- /* @__PURE__ */ t(m0, { budget: w }),
22390
+ i.length === 0 ? /* @__PURE__ */ t(mf, {}) : i.map((w) => /* @__PURE__ */ l(h.Fragment, { children: [
22391
+ /* @__PURE__ */ t(pf, { budget: w }),
22392
22392
  /* @__PURE__ */ t(H, {})
22393
22393
  ] }, w.guid)),
22394
- /* @__PURE__ */ t(p0, { category: n, parentBudget: e })
22394
+ /* @__PURE__ */ t(Cf, { category: n, parentBudget: e })
22395
22395
  ] }),
22396
22396
  /* @__PURE__ */ t(
22397
22397
  ce,
@@ -22445,7 +22445,7 @@ const o0 = ({
22445
22445
  )
22446
22446
  ] })
22447
22447
  ] });
22448
- }), f0 = x(({ budget: e }) => {
22448
+ }), bf = x(({ budget: e }) => {
22449
22449
  const { budgets: n, common: i, transactions: a } = I(), { setAlert: o } = dt(), { sortedTransactions: r, tags: s } = De(), [c, d] = h.useState(0), [u, _] = h.useState(""), g = h.useMemo(
22450
22450
  () => r.find((f) => f.guid === u),
22451
22451
  [u, r]
@@ -22483,7 +22483,7 @@ const o0 = ({
22483
22483
  ) }),
22484
22484
  /* @__PURE__ */ t(Dn, { height: "100%", onClick: _ })
22485
22485
  ] }),
22486
- c === 1 && /* @__PURE__ */ t(C0, { budget: e }),
22486
+ c === 1 && /* @__PURE__ */ t(ff, { budget: e }),
22487
22487
  /* @__PURE__ */ t(
22488
22488
  ce,
22489
22489
  {
@@ -22496,7 +22496,7 @@ const o0 = ({
22496
22496
  )
22497
22497
  ] })
22498
22498
  ] });
22499
- }), b0 = x(() => {
22499
+ }), yf = x(() => {
22500
22500
  const { selectedAccountGuids: e } = le(), { budgets: n, common: i } = I(), {
22501
22501
  dateRange: a,
22502
22502
  deleteBudget: o,
@@ -22540,7 +22540,7 @@ const o0 = ({
22540
22540
  secondaryColor: "error",
22541
22541
  secondaryText: n.details_delete_button,
22542
22542
  title: n.details_title,
22543
- children: /* @__PURE__ */ t(f0, { budget: r })
22543
+ children: /* @__PURE__ */ t(bf, { budget: r })
22544
22544
  }
22545
22545
  ),
22546
22546
  /* @__PURE__ */ t(
@@ -22576,7 +22576,7 @@ const o0 = ({
22576
22576
  }
22577
22577
  )
22578
22578
  ] });
22579
- }), y0 = ({ budget: e, onClick: n }) => {
22579
+ }), Ef = ({ budget: e, onClick: n }) => {
22580
22580
  const {
22581
22581
  amount: i,
22582
22582
  budgetColors: { background: a, description: o },
@@ -22605,7 +22605,7 @@ const o0 = ({
22605
22605
  }
22606
22606
  )
22607
22607
  ] }) });
22608
- }, E0 = x(() => {
22608
+ }, Sf = x(() => {
22609
22609
  const { onEvent: e } = Y(), { budgets: n } = I(), { detailedBudgets: i, setSelectedBudget: a } = dt(), o = (r) => {
22610
22610
  a(r), e(W.BUDGETS_CLICK_BUDGET_CATEGORY, {
22611
22611
  budget_category: r.category.name,
@@ -22615,11 +22615,11 @@ const o0 = ({
22615
22615
  return /* @__PURE__ */ l(Nt, { elevation: 2, children: [
22616
22616
  /* @__PURE__ */ t(dn, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ t(lt, { children: n.budget_categories_title }) }),
22617
22617
  /* @__PURE__ */ t(Dt, { sx: { p: 0, ":last-child": { p: 0 } }, children: /* @__PURE__ */ t(ae, { children: i.map((r) => /* @__PURE__ */ l(h.Fragment, { children: [
22618
- /* @__PURE__ */ t(y0, { budget: r, onClick: o }),
22618
+ /* @__PURE__ */ t(Ef, { budget: r, onClick: o }),
22619
22619
  /* @__PURE__ */ t(H, {})
22620
22620
  ] }, r.guid)) }) })
22621
22621
  ] });
22622
- }), S0 = x(() => {
22622
+ }), Tf = x(() => {
22623
22623
  const e = Ce(), { onEvent: n } = Y(), { visibleAccounts: i } = Se(), { budgets: a, common: o, recurring: r } = I(), { incomeCategories: s, spendCategories: c } = Ve(), { detailedBudgets: d, totalBudgeted: u } = dt(), { projectedIncome: _ } = Ye(), { setFilter: g } = De(), [m, C] = h.useState(!1), [f, E] = h.useMemo(() => {
22624
22624
  const v = c.reduce((M, D) => M + D.totalAmount, 0);
22625
22625
  let w = v / u;
@@ -22773,15 +22773,15 @@ const o0 = ({
22773
22773
  sx: { mr: 24, mt: 48 },
22774
22774
  width: k ? "100%" : Kr,
22775
22775
  children: [
22776
- /* @__PURE__ */ t(S0, {}),
22777
- /* @__PURE__ */ t(E0, {})
22776
+ /* @__PURE__ */ t(Tf, {}),
22777
+ /* @__PURE__ */ t(Sf, {})
22778
22778
  ]
22779
22779
  }
22780
22780
  )
22781
22781
  ]
22782
22782
  }
22783
22783
  ),
22784
- /* @__PURE__ */ t(b0, {}),
22784
+ /* @__PURE__ */ t(yf, {}),
22785
22785
  /* @__PURE__ */ t(
22786
22786
  ce,
22787
22787
  {
@@ -22789,7 +22789,7 @@ const o0 = ({
22789
22789
  isOpen: O,
22790
22790
  onClose: () => U(!1),
22791
22791
  title: r.add_new_title,
22792
- children: /* @__PURE__ */ t(h0, { onRecalculateBudgets: ge })
22792
+ children: /* @__PURE__ */ t(gf, { onRecalculateBudgets: ge })
22793
22793
  }
22794
22794
  ),
22795
22795
  /* @__PURE__ */ t(
@@ -22817,7 +22817,7 @@ const o0 = ({
22817
22817
  ]
22818
22818
  }
22819
22819
  );
22820
- }), T0 = x(() => {
22820
+ }), Af = x(() => {
22821
22821
  const e = Ce(), {
22822
22822
  appDataStore: { banner: n, loadBanner: i, user: a }
22823
22823
  } = ra();
@@ -22856,7 +22856,7 @@ const o0 = ({
22856
22856
  )
22857
22857
  }
22858
22858
  ) : null;
22859
- }), A0 = ({ handleConnectClick: e }) => {
22859
+ }), If = ({ handleConnectClick: e }) => {
22860
22860
  const { common: n } = I(), i = Ft("(max-width: 700px)");
22861
22861
  return /* @__PURE__ */ t(L, { my: 4, children: i ? /* @__PURE__ */ t(Bn, { id: "add-accounts", placement: "bottom", title: n.add_accounts, children: /* @__PURE__ */ t(
22862
22862
  We,
@@ -22886,7 +22886,7 @@ const o0 = ({
22886
22886
  children: n.add_accounts
22887
22887
  }
22888
22888
  ) });
22889
- }, I0 = x(A0), x0 = () => {
22889
+ }, xf = x(If), vf = () => {
22890
22890
  const [e, n] = h.useState(!1), { visibleAccounts: i } = Se(), { selectedAccountGuids: a, setSelectedAccountGuids: o } = le(), { common: r, connect: s } = I(), { config: c } = ei(), { isMobile: d } = fe(), u = {
22891
22891
  accountFilterOptionsCopy: {
22892
22892
  accountTypeAccounts: r.account_filter.account_type_accounts,
@@ -22912,7 +22912,7 @@ const o0 = ({
22912
22912
  /* @__PURE__ */ t(p, { color: "text.secondary", sx: { fontSize: 15 }, children: r.heres_your_spending_overview })
22913
22913
  ] }) }),
22914
22914
  /* @__PURE__ */ l(y, { flexDirection: "row", children: [
22915
- c.show_connections_widget_in_master && /* @__PURE__ */ t(I0, { handleConnectClick: () => n(!0) }),
22915
+ c.show_connections_widget_in_master && /* @__PURE__ */ t(xf, { handleConnectClick: () => n(!0) }),
22916
22916
  /* @__PURE__ */ t(
22917
22917
  Ns,
22918
22918
  {
@@ -22941,9 +22941,9 @@ const o0 = ({
22941
22941
  }
22942
22942
  )
22943
22943
  ] });
22944
- }, v0 = x(x0);
22944
+ }, wf = x(vf);
22945
22945
  var Bi = /* @__PURE__ */ ((e) => (e[e.Main = 0] = "Main", e[e.RightSide = 1] = "RightSide", e[e.Disabled = 2] = "Disabled", e))(Bi || {});
22946
- const w0 = ({ widgets: e, isLoading: n }) => {
22946
+ const Nf = ({ widgets: e, isLoading: n }) => {
22947
22947
  const { isDesktop: i, isMobile: a } = fe(), { copyStore: o } = ra(), { setSelectedAccounts: r } = le(), { visibleAccounts: s } = Se();
22948
22948
  h.useEffect(() => {
22949
22949
  r(s);
@@ -22959,9 +22959,9 @@ const w0 = ({ widgets: e, isLoading: n }) => {
22959
22959
  [c]
22960
22960
  );
22961
22961
  return /* @__PURE__ */ l(fn, { container: !0, spacing: a ? 0 : 24, sx: { overflow: "scroll" }, children: [
22962
- /* @__PURE__ */ t(fn, { xs: 12, children: o.isInitialized && /* @__PURE__ */ t(v0, {}) }),
22962
+ /* @__PURE__ */ t(fn, { xs: 12, children: o.isInitialized && /* @__PURE__ */ t(wf, {}) }),
22963
22963
  /* @__PURE__ */ l(fn, { lg: 8, xs: 12, children: [
22964
- /* @__PURE__ */ t(T0, {}),
22964
+ /* @__PURE__ */ t(Af, {}),
22965
22965
  n && /* @__PURE__ */ l(y, { direction: "column", spacing: 24, children: [
22966
22966
  /* @__PURE__ */ t(gn, { height: 100, variant: "rounded", width: "100%" }),
22967
22967
  /* @__PURE__ */ t(gn, { height: 300, variant: "rounded", width: "100%" }),
@@ -22975,7 +22975,7 @@ const w0 = ({ widgets: e, isLoading: n }) => {
22975
22975
  /* @__PURE__ */ t(gn, { height: 300, variant: "rounded", width: "100%" })
22976
22976
  ] }) : /* @__PURE__ */ t(y, { direction: "column", spacing: 24, children: u.map((_) => /* @__PURE__ */ t(h.Fragment, { children: _.component }, _.index)) }) })
22977
22977
  ] });
22978
- }, HE = x(w0), wo = ({ sx: e = {} }) => {
22978
+ }, HE = x(Nf), wo = ({ sx: e = {} }) => {
22979
22979
  const { investments: n } = I(), { onEvent: i } = Y(), { setShowConnectionsWidget: a } = Gn();
22980
22980
  return /* @__PURE__ */ l(y, { sx: { alignItems: "center", gap: 24, height: 164, p: 24, width: "100%", ...e }, children: [
22981
22981
  /* @__PURE__ */ l(
@@ -23017,7 +23017,7 @@ const w0 = ({ widgets: e, isLoading: n }) => {
23017
23017
  }
23018
23018
  )
23019
23019
  ] });
23020
- }, N0 = {
23020
+ }, Df = {
23021
23021
  allocations_cash: "#AEDCCC",
23022
23022
  allocations_convertible: "#80CAD0",
23023
23023
  allocations_foreign_bond: "#51B9D4",
@@ -23027,7 +23027,7 @@ const w0 = ({ widgets: e, isLoading: n }) => {
23027
23027
  allocations_unknown: "#161D6A",
23028
23028
  allocations_us_bond: "#254995",
23029
23029
  allocations_us_stock: "#1E2D84"
23030
- }, D0 = [
23030
+ }, Rf = [
23031
23031
  {
23032
23032
  name: "allocations_cash"
23033
23033
  },
@@ -23055,10 +23055,10 @@ const w0 = ({ widgets: e, isLoading: n }) => {
23055
23055
  {
23056
23056
  name: "allocations_unknown"
23057
23057
  }
23058
- ], R0 = (e, n, i) => {
23058
+ ], Of = (e, n, i) => {
23059
23059
  const a = n, o = i;
23060
23060
  return e >= Math.min(a, o) && e < Math.max(a, o);
23061
- }, O0 = (e, n, i) => {
23061
+ }, Lf = (e, n, i) => {
23062
23062
  const a = [
23063
23063
  ...new Set(e.map((s) => s.name.toLowerCase()))
23064
23064
  ];
@@ -23075,7 +23075,7 @@ const w0 = ({ widgets: e, isLoading: n }) => {
23075
23075
  percentage: c / i
23076
23076
  };
23077
23077
  });
23078
- }, Pi = (e) => e.calculated_market_value ? e.calculated_market_value : e.market_value, L0 = (e, n, i) => {
23078
+ }, Pi = (e) => e.calculated_market_value ? e.calculated_market_value : e.market_value, Mf = (e, n, i) => {
23079
23079
  const a = Object.values(n.allocations_list), o = [];
23080
23080
  let r = 0;
23081
23081
  const s = e.map(({ guid: f }) => f), c = i.filter(({ account_guid: f }) => s.includes(f)).map((f) => ({
@@ -23095,7 +23095,7 @@ const w0 = ({ widgets: e, isLoading: n }) => {
23095
23095
  }),
23096
23096
  { marketValue: 0, totalGainLoss: 0 }
23097
23097
  ), m = _ + d;
23098
- D0.forEach((f, E) => {
23098
+ Rf.forEach((f, E) => {
23099
23099
  const b = c.filter(
23100
23100
  (v) => !!v[f.name]
23101
23101
  );
@@ -23103,7 +23103,7 @@ const w0 = ({ widgets: e, isLoading: n }) => {
23103
23103
  (v, w) => v + Pi(w) * w[f.name] / 100,
23104
23104
  0
23105
23105
  );
23106
- const A = O0(
23106
+ const A = Lf(
23107
23107
  b,
23108
23108
  f.name,
23109
23109
  S
@@ -23125,7 +23125,7 @@ const w0 = ({ widgets: e, isLoading: n }) => {
23125
23125
  holdings: A,
23126
23126
  percentage: S / m,
23127
23127
  value: S,
23128
- color: N0[f.name]
23128
+ color: Df[f.name]
23129
23129
  }), r += S);
23130
23130
  });
23131
23131
  const C = o.map(
@@ -23144,7 +23144,7 @@ const w0 = ({ widgets: e, isLoading: n }) => {
23144
23144
  totalMarketValue: m,
23145
23145
  totalGainLossPercentage: g / u
23146
23146
  };
23147
- }, Fa = (e) => e < 1e-3 ? "< 0.1%" : Ii(e), hi = (e) => e === 0 ? P(e, "0,0.00") : R0(e, -0.01, 0.01) ? "< $0.01" : P(e, "0,0.00"), M0 = ({
23147
+ }, Fa = (e) => e < 1e-3 ? "< 0.1%" : Ii(e), hi = (e) => e === 0 ? P(e, "0,0.00") : Of(e, -0.01, 0.01) ? "< $0.01" : P(e, "0,0.00"), kf = ({
23148
23148
  data: e,
23149
23149
  onSelected: n,
23150
23150
  selectedId: i,
@@ -23274,7 +23274,7 @@ const w0 = ({ widgets: e, isLoading: n }) => {
23274
23274
  )
23275
23275
  ] }) : a === 0 && /* @__PURE__ */ t(p, { bold: !0, sx: { textAlign: "right", pr: 24 }, children: `${c.total_label_text} ${hi(e.totalAmount)}` })
23276
23276
  ] });
23277
- }, k0 = ({
23277
+ }, Gf = ({
23278
23278
  data: e,
23279
23279
  hoveredId: n,
23280
23280
  isPercentage: i,
@@ -23328,12 +23328,12 @@ const w0 = ({ widgets: e, isLoading: n }) => {
23328
23328
  ] }) }) })
23329
23329
  }
23330
23330
  );
23331
- }, G0 = () => {
23331
+ }, Bf = () => {
23332
23332
  const [e, n] = h.useState(0), [i, a] = h.useState(""), [o, r] = h.useState(""), s = (f) => {
23333
23333
  i !== f ? a(f) : (a(""), r(""));
23334
23334
  }, { selectedAccountGuids: c } = le(), { visibleHoldings: d } = Gn(), { visibleInvestmentAccounts: u } = Se(), {
23335
23335
  investments: { allocation: _ }
23336
- } = I(), g = L0(
23336
+ } = I(), g = Mf(
23337
23337
  u.filter(({ guid: f }) => c.includes(f)),
23338
23338
  _,
23339
23339
  d
@@ -23351,7 +23351,7 @@ const w0 = ({ widgets: e, isLoading: n }) => {
23351
23351
  },
23352
23352
  children: [
23353
23353
  /* @__PURE__ */ t(
23354
- k0,
23354
+ Gf,
23355
23355
  {
23356
23356
  data: g,
23357
23357
  hoveredId: o,
@@ -23369,7 +23369,7 @@ const w0 = ({ widgets: e, isLoading: n }) => {
23369
23369
  }
23370
23370
  ),
23371
23371
  /* @__PURE__ */ t(
23372
- M0,
23372
+ kf,
23373
23373
  {
23374
23374
  data: g,
23375
23375
  onSelected: s,
@@ -23381,7 +23381,7 @@ const w0 = ({ widgets: e, isLoading: n }) => {
23381
23381
  ]
23382
23382
  }
23383
23383
  );
23384
- }, B0 = x(G0), P0 = ({
23384
+ }, Pf = x(Bf), Hf = ({
23385
23385
  analysisDetails: e,
23386
23386
  analysisType: n,
23387
23387
  copy: i,
@@ -23470,10 +23470,10 @@ const w0 = ({ widgets: e, isLoading: n }) => {
23470
23470
  )
23471
23471
  ] })
23472
23472
  ] });
23473
- }, H0 = ({ body: e, title: n }) => /* @__PURE__ */ l(y, { sx: { gap: 4, p: 12 }, children: [
23473
+ }, Ff = ({ body: e, title: n }) => /* @__PURE__ */ l(y, { sx: { gap: 4, p: 12 }, children: [
23474
23474
  /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: n }),
23475
23475
  /* @__PURE__ */ t(ve, { variant: "ParagraphSmall", children: e })
23476
- ] }), F0 = ({
23476
+ ] }), Wf = ({
23477
23477
  placement: e = "bottom",
23478
23478
  tooltip_info_body: n,
23479
23479
  tooltip_info_title: i
@@ -23482,10 +23482,10 @@ const w0 = ({ widgets: e, isLoading: n }) => {
23482
23482
  {
23483
23483
  enterTouchDelay: 500,
23484
23484
  placement: e,
23485
- title: /* @__PURE__ */ t(H0, { body: n, title: i }),
23485
+ title: /* @__PURE__ */ t(Ff, { body: n, title: i }),
23486
23486
  children: /* @__PURE__ */ t(We, { "aria-label": i, sx: { minHeight: 0, minWidth: 0, p: 0 }, children: /* @__PURE__ */ t(ct, { name: "info", sx: { color: "info.main" } }) })
23487
23487
  }
23488
- ), W0 = () => {
23488
+ ), $f = () => {
23489
23489
  const {
23490
23490
  investments: { analysis: e }
23491
23491
  } = I(), { analysisChartData: n, analysisDetails: i, analysisType: a, setAnalysisType: o } = Gn(), r = Ft("(min-width:320px) and (max-width:375px)"), { isMobile: s } = fe(), d = at().palette.mode === "dark", { cellDimension: u, columns: _, rows: g, textVariant: m } = h.useMemo(() => {
@@ -23565,7 +23565,7 @@ const w0 = ({ widgets: e, isLoading: n }) => {
23565
23565
  children: [
23566
23566
  /* @__PURE__ */ t(p, { bold: !0, children: e.invest_analysis }),
23567
23567
  /* @__PURE__ */ t(
23568
- F0,
23568
+ Wf,
23569
23569
  {
23570
23570
  tooltip_info_body: e.tooltip_info_body,
23571
23571
  tooltip_info_title: e.tooltip_info_title
@@ -23623,7 +23623,7 @@ const w0 = ({ widgets: e, isLoading: n }) => {
23623
23623
  }
23624
23624
  ),
23625
23625
  /* @__PURE__ */ t(
23626
- P0,
23626
+ Hf,
23627
23627
  {
23628
23628
  analysisDetails: i,
23629
23629
  analysisType: a,
@@ -23638,7 +23638,7 @@ const w0 = ({ widgets: e, isLoading: n }) => {
23638
23638
  ]
23639
23639
  }
23640
23640
  );
23641
- }, $0 = x(W0), U0 = ({
23641
+ }, Uf = x($f), Vf = ({
23642
23642
  accountHoldingsData: e,
23643
23643
  currentEditedCostBasis: n,
23644
23644
  editingHoldingId: i,
@@ -23943,10 +23943,10 @@ const w0 = ({ widgets: e, isLoading: n }) => {
23943
23943
  ]
23944
23944
  }
23945
23945
  );
23946
- }, V0 = x(U0), ki = (e) => /* @__PURE__ */ l(Ee, { sx: { alignItems: "center", flexDirection: "row", gap: 4 }, children: [
23946
+ }, Kf = x(Vf), ki = (e) => /* @__PURE__ */ l(Ee, { sx: { alignItems: "center", flexDirection: "row", gap: 4 }, children: [
23947
23947
  /* @__PURE__ */ t(p, { sx: { color: "text.primary", fontWeight: 600, fontSize: 14 }, variant: "Small", children: e.colDef.headerName }),
23948
23948
  /* @__PURE__ */ t(ct, { name: "expand_all", size: 12 })
23949
- ] }), K0 = ({
23949
+ ] }), zf = ({
23950
23950
  data: e,
23951
23951
  editingHoldingId: n,
23952
23952
  currentEditedCostBasis: i,
@@ -24114,7 +24114,7 @@ const w0 = ({ widgets: e, isLoading: n }) => {
24114
24114
  )
24115
24115
  }
24116
24116
  );
24117
- }, z0 = () => {
24117
+ }, Yf = () => {
24118
24118
  const { isMobile: e } = fe(), [n, i] = Et({}), [a, o] = Et(!1), { selectedAccountGuids: r } = le(), { visibleHoldings: s, updateHoldings: c } = Gn(), [d, u] = h.useState(!1), [_, g] = Et({
24119
24119
  accounts: [],
24120
24120
  holdings: []
@@ -24493,7 +24493,7 @@ const w0 = ({ widgets: e, isLoading: n }) => {
24493
24493
  }
24494
24494
  ),
24495
24495
  /* @__PURE__ */ t(Qn, { sx: { bgcolor: "background.default", p: 12 }, children: /* @__PURE__ */ t(St, { sx: { border: 1, borderColor: "border.light" }, children: /* @__PURE__ */ t(
24496
- K0,
24496
+ zf,
24497
24497
  {
24498
24498
  currentEditedCostBasis: S,
24499
24499
  data: ne,
@@ -24511,7 +24511,7 @@ const w0 = ({ widgets: e, isLoading: n }) => {
24511
24511
  }),
24512
24512
  /* @__PURE__ */ t(wo, {}),
24513
24513
  /* @__PURE__ */ t(
24514
- V0,
24514
+ Kf,
24515
24515
  {
24516
24516
  accountHoldingsData: _,
24517
24517
  currentEditedCostBasis: S,
@@ -24533,7 +24533,7 @@ const w0 = ({ widgets: e, isLoading: n }) => {
24533
24533
  }
24534
24534
  )
24535
24535
  ] }) : /* @__PURE__ */ t(de, {});
24536
- }, Y0 = x(z0), j0 = ({ title: e }) => /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e }), FE = x(({ onBackClick: e, sx: n }) => {
24536
+ }, jf = x(Yf), Xf = ({ title: e }) => /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e }), FE = x(({ onBackClick: e, sx: n }) => {
24537
24537
  const { onEvent: i } = Y(), { isMobile: a } = fe(), { visibleInvestmentAccounts: o } = Se(), {
24538
24538
  visibleHoldings: r,
24539
24539
  setShowConnectionsWidget: s,
@@ -24577,7 +24577,7 @@ const w0 = ({ widgets: e, isLoading: n }) => {
24577
24577
  textColor: "primary",
24578
24578
  value: A ? -1 : C,
24579
24579
  variant: "fullWidth",
24580
- children: v.map((w) => /* @__PURE__ */ t(et, { disabled: A, label: /* @__PURE__ */ t(j0, { title: w }) }, w))
24580
+ children: v.map((w) => /* @__PURE__ */ t(et, { disabled: A, label: /* @__PURE__ */ t(Xf, { title: w }) }, w))
24581
24581
  }
24582
24582
  ),
24583
24583
  A ? /* @__PURE__ */ t(
@@ -24603,9 +24603,9 @@ const w0 = ({ widgets: e, isLoading: n }) => {
24603
24603
  }
24604
24604
  }
24605
24605
  ) : /* @__PURE__ */ l(X, { children: [
24606
- C === 0 && /* @__PURE__ */ t(Y0, {}),
24607
- C === 1 && /* @__PURE__ */ t(B0, {}),
24608
- C === 2 && /* @__PURE__ */ t($0, {})
24606
+ C === 0 && /* @__PURE__ */ t(jf, {}),
24607
+ C === 1 && /* @__PURE__ */ t(Pf, {}),
24608
+ C === 2 && /* @__PURE__ */ t(Uf, {})
24609
24609
  ] })
24610
24610
  ] }),
24611
24611
  /* @__PURE__ */ t(
@@ -24620,7 +24620,7 @@ const w0 = ({ widgets: e, isLoading: n }) => {
24620
24620
  }
24621
24621
  );
24622
24622
  });
24623
- class X0 {
24623
+ class Zf {
24624
24624
  copyApi = new _i("/", "");
24625
24625
  copyObject = {};
24626
24626
  namespace = "experiences";
@@ -24666,7 +24666,7 @@ const No = {
24666
24666
  MonthlySpendToIncomeComparison: "MonthlySpendToIncomeComparison"
24667
24667
  }, $t = window?.app?.clientConfig?.microwidget_instance_id || "", zr = {
24668
24668
  INSIGHTS_MICRO_WIDGET: "/micro-insights-carousel"
24669
- }, 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"), Z0 = () => Object.values(No).reduce(
24669
+ }, 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"), qf = () => Object.values(No).reduce(
24670
24670
  (e, n) => ({
24671
24671
  ...e,
24672
24672
  [Lc(n)]: {
@@ -24677,7 +24677,7 @@ const No = {
24677
24677
  }
24678
24678
  }),
24679
24679
  {}
24680
- ), q0 = () => Object.values(No).reduce(
24680
+ ), Qf = () => Object.values(No).reduce(
24681
24681
  (e, n) => ({
24682
24682
  ...e,
24683
24683
  [Mc(n)]: {
@@ -24688,7 +24688,7 @@ const No = {
24688
24688
  }
24689
24689
  }),
24690
24690
  {}
24691
- ), Q0 = () => Object.values(No).reduce(
24691
+ ), Jf = () => Object.values(No).reduce(
24692
24692
  (e, n) => ({
24693
24693
  ...e,
24694
24694
  [kc(n)]: {
@@ -24788,15 +24788,15 @@ const No = {
24788
24788
  label: mn.VIEW_MORE,
24789
24789
  value: $t
24790
24790
  },
24791
- ...Z0(),
24792
- ...q0(),
24793
- ...Q0()
24791
+ ...qf(),
24792
+ ...Qf(),
24793
+ ...Jf()
24794
24794
  }, Xr = async (e, n) => !n || !jr[e] ? null : n.sendAnalyticEvent(jr[e]).then((i) => i).catch((i) => {
24795
24795
  throw i;
24796
24796
  }), Zr = async (e, n) => !n || !Yr[e] ? null : n.sendAnalyticsPageview(Yr[e]).then((i) => i).catch((i) => {
24797
24797
  throw i;
24798
24798
  });
24799
- class J0 {
24799
+ class e0 {
24800
24800
  onAnalyticEvent = Xr;
24801
24801
  onAnalyticPageView = Zr;
24802
24802
  beatApi = new zn("/", "");
@@ -24821,7 +24821,7 @@ class J0 {
24821
24821
  this.beatApi.updateOffer(n);
24822
24822
  };
24823
24823
  }
24824
- class ef {
24824
+ class t0 {
24825
24825
  copyStore;
24826
24826
  endpoint = "/";
24827
24827
  insightsMicroWidgetStore;
@@ -24829,7 +24829,7 @@ class ef {
24829
24829
  token = "";
24830
24830
  isInitialized = !1;
24831
24831
  constructor() {
24832
- this.copyStore = new X0(), this.insightsMicroWidgetStore = new J0(), Pe(this);
24832
+ this.copyStore = new Zf(), this.insightsMicroWidgetStore = new e0(), Pe(this);
24833
24833
  }
24834
24834
  initialize = async (n, i, a) => {
24835
24835
  await this.copyStore.initialize(n, i), await this.insightsMicroWidgetStore.initialize(n, i, a);
@@ -24839,7 +24839,7 @@ class ef {
24839
24839
  });
24840
24840
  };
24841
24841
  }
24842
- const wi = h.createContext(null), tf = ({
24842
+ const wi = h.createContext(null), n0 = ({
24843
24843
  onEvent: e,
24844
24844
  onPageview: n,
24845
24845
  store: i,
@@ -24976,13 +24976,13 @@ const wi = h.createContext(null), tf = ({
24976
24976
  }
24977
24977
  );
24978
24978
  }
24979
- ), nf = ({ beat: e }) => {
24979
+ ), i0 = ({ beat: e }) => {
24980
24980
  const [n, i] = Et(N.UNCATEGORIZED);
24981
24981
  return Mn(() => {
24982
24982
  e.primary_category_guid ? i(e.primary_category_guid) : e.category_guids?.length && i(e.category_guids[0]);
24983
24983
  }, []), /* @__PURE__ */ t(Mt, { categoryGuid: n, size: 16, sx: { minWidth: 16 } });
24984
- }, af = ({ beat: e }) => {
24985
- const n = mt(), i = of(n);
24984
+ }, a0 = ({ beat: e }) => {
24985
+ const n = mt(), i = o0(n);
24986
24986
  return /* @__PURE__ */ t(
24987
24987
  on,
24988
24988
  {
@@ -24992,12 +24992,12 @@ const wi = h.createContext(null), tf = ({
24992
24992
  size: 16
24993
24993
  }
24994
24994
  );
24995
- }, of = (e) => Xt({
24995
+ }, o0 = (e) => Xt({
24996
24996
  marginTop: e.Spacing.XTiny,
24997
24997
  "& .kyper-categoryicon": {
24998
24998
  display: "flex"
24999
24999
  }
25000
- }), rf = x(af), sf = ({
25000
+ }), r0 = x(a0), s0 = ({
25001
25001
  color: e = "currentColor",
25002
25002
  height: n,
25003
25003
  size: i = 16,
@@ -25023,16 +25023,16 @@ const wi = h.createContext(null), tf = ({
25023
25023
  }
25024
25024
  )
25025
25025
  }
25026
- ), cf = (e) => e ? e.data ? e.data.map((n) => {
25026
+ ), c0 = (e) => e ? e.data ? e.data.map((n) => {
25027
25027
  const i = {};
25028
25028
  return e.names?.map((a, o) => {
25029
25029
  i[a] = n[o];
25030
25030
  }), i;
25031
- }) : [] : [], lf = (e, n) => {
25032
- const i = cf(e), a = i.length / 2, o = i.slice(0, a), r = i.slice(a);
25031
+ }) : [] : [], l0 = (e, n) => {
25032
+ const i = c0(e), a = i.length / 2, o = i.slice(0, a), r = i.slice(a);
25033
25033
  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;
25034
- }, df = ({ beat: e }) => {
25035
- const n = mt(), i = lf(e.data_series, n);
25034
+ }, d0 = ({ beat: e }) => {
25035
+ const n = mt(), i = l0(e.data_series, n);
25036
25036
  return /* @__PURE__ */ t($, { name: "bar_chart", sx: { color: i } });
25037
25037
  }, Bc = () => /* @__PURE__ */ l("svg", { fill: "none", height: "36", viewBox: "0 0 40 36", width: "40", xmlns: "http://www.w3.org/2000/svg", children: [
25038
25038
  /* @__PURE__ */ t(
@@ -25817,7 +25817,7 @@ const wi = h.createContext(null), tf = ({
25817
25817
  ] })
25818
25818
  ] }), qr = ({ beat: e, clientColorScheme: n, color: i, type: a }) => {
25819
25819
  const o = Ce(), r = n?.primary_300 ? n.primary_300 : o.palette.primary.main;
25820
- return a === 0 ? /* @__PURE__ */ t($, { fill: !0, name: "error", sx: { color: i || r } }) : a === 1 && e ? /* @__PURE__ */ t(nf, { beat: e }) : a === 2 && e ? /* @__PURE__ */ t(rf, { beat: e }) : a === 3 && e ? /* @__PURE__ */ t(df, { beat: e }) : a === 5 && e ? /* @__PURE__ */ t($, { name: "campaign" }) : /* @__PURE__ */ t(
25820
+ return a === 0 ? /* @__PURE__ */ t($, { fill: !0, name: "error", sx: { color: i || r } }) : a === 1 && e ? /* @__PURE__ */ t(i0, { beat: e }) : a === 2 && e ? /* @__PURE__ */ t(r0, { beat: e }) : a === 3 && e ? /* @__PURE__ */ t(d0, { beat: e }) : a === 5 && e ? /* @__PURE__ */ t($, { name: "campaign" }) : /* @__PURE__ */ t(
25821
25821
  $,
25822
25822
  {
25823
25823
  fill: !0,
@@ -25832,7 +25832,7 @@ const wi = h.createContext(null), tf = ({
25832
25832
  if (!e)
25833
25833
  throw new Error("useCopyStore() must be used within the InsightsMicroWidgetDataProvider");
25834
25834
  return e.store.copyStore;
25835
- }, _f = () => {
25835
+ }, _0 = () => {
25836
25836
  const e = h.useContext(wi);
25837
25837
  if (!e?.store?.insightsMicroWidgetStore)
25838
25838
  throw new Error(
@@ -25854,7 +25854,7 @@ const wi = h.createContext(null), tf = ({
25854
25854
  STANDARD: 154,
25855
25855
  XLARGE: 200,
25856
25856
  XXLARGE: 248
25857
- }, uf = 50, Fc = 1, hf = ({
25857
+ }, u0 = 50, Fc = 1, h0 = ({
25858
25858
  ariaLabel: e,
25859
25859
  backgroundColor: n,
25860
25860
  beat: i,
@@ -25871,7 +25871,7 @@ const wi = h.createContext(null), tf = ({
25871
25871
  }) => {
25872
25872
  const { ref: C, inView: f } = fs({
25873
25873
  threshold: Fc
25874
- }), { cardsCopy: E } = Rn(), { onEvent: b } = Ni(), { updateBeat: S, updateOffer: A } = _f();
25874
+ }), { cardsCopy: E } = Rn(), { onEvent: b } = Ni(), { updateBeat: S, updateOffer: A } = _0();
25875
25875
  Mn(() => {
25876
25876
  f && (i.has_been_displayed ? b(Mc(i.template)) : (i.guid.startsWith("OFR") ? A({
25877
25877
  ...i,
@@ -25940,7 +25940,7 @@ const wi = h.createContext(null), tf = ({
25940
25940
  widthOverrides: m
25941
25941
  }
25942
25942
  );
25943
- }, gf = ({
25943
+ }, g0 = ({
25944
25944
  clientColorScheme: e,
25945
25945
  currentBeatIndex: n,
25946
25946
  numBeats: i,
@@ -25949,7 +25949,7 @@ const wi = h.createContext(null), tf = ({
25949
25949
  scrollRightBoundary: r,
25950
25950
  scrollX: s
25951
25951
  }) => {
25952
- const c = mf(), d = at(), { 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
+ const c = m0(), d = at(), { 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;
25953
25953
  return /* @__PURE__ */ l(L, { className: c, children: [
25954
25954
  /* @__PURE__ */ t(
25955
25955
  We,
@@ -25996,7 +25996,7 @@ const wi = h.createContext(null), tf = ({
25996
25996
  }
25997
25997
  )
25998
25998
  ] });
25999
- }, mf = () => Xt({
25999
+ }, m0 = () => Xt({
26000
26000
  alignItems: "center",
26001
26001
  display: "flex",
26002
26002
  justifyContent: "center",
@@ -26013,7 +26013,7 @@ const wi = h.createContext(null), tf = ({
26013
26013
  // we were using `gap` instead of margin, but it doesn't work in safari browsers older than iOS 14.1
26014
26014
  marginRight: 8
26015
26015
  }
26016
- }), pf = ({
26016
+ }), p0 = ({
26017
26017
  beats: e = [],
26018
26018
  clientColorScheme: n,
26019
26019
  showCTAColocatedWithText: i,
@@ -26026,7 +26026,7 @@ const wi = h.createContext(null), tf = ({
26026
26026
  variant: u,
26027
26027
  widthOverrides: _
26028
26028
  }) => {
26029
- const g = ff(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
+ const g = f0(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 = () => {
26030
26030
  w(Ut.ON_CAROUSEL_FORWARD_CLICK), m.current && m.current.scrollTo({
26031
26031
  left: (
26032
26032
  // Adds the flex gap to the carousel ref's width
@@ -26045,7 +26045,7 @@ const wi = h.createContext(null), tf = ({
26045
26045
  m.current && f(m.current.scrollLeft);
26046
26046
  }, D = () => {
26047
26047
  if (!S || !E) return;
26048
- S - E > uf ? w(Ut.ON_CAROUSEL_FORWARD_SWIPE) : w(Ut.ON_CAROUSEL_BACK_SWIPE);
26048
+ S - E > u0 ? w(Ut.ON_CAROUSEL_FORWARD_SWIPE) : w(Ut.ON_CAROUSEL_BACK_SWIPE);
26049
26049
  }, k = (te) => {
26050
26050
  b(te.targetTouches[0].clientX);
26051
26051
  }, O = (te) => {
@@ -26084,7 +26084,7 @@ const wi = h.createContext(null), tf = ({
26084
26084
  Oe.toString()
26085
26085
  ), Le = te.micro_title && te.micro_title.length > 0, At = te.micro_description && te.micro_description.length > 0, Q = Le ? te.micro_title : te.title, ne = At ? te.micro_description : te.description;
26086
26086
  return /* @__PURE__ */ t(
26087
- hf,
26087
+ h0,
26088
26088
  {
26089
26089
  ariaLabel: `${Te}: ${Q}, ${ne}`,
26090
26090
  beat: te,
@@ -26097,7 +26097,7 @@ const wi = h.createContext(null), tf = ({
26097
26097
  );
26098
26098
  }),
26099
26099
  /* @__PURE__ */ t(
26100
- If,
26100
+ I0,
26101
26101
  {
26102
26102
  isActiveCard: ee === e.length,
26103
26103
  onCardClick: o,
@@ -26108,7 +26108,7 @@ const wi = h.createContext(null), tf = ({
26108
26108
  }
26109
26109
  ),
26110
26110
  s && /* @__PURE__ */ t(
26111
- gf,
26111
+ g0,
26112
26112
  {
26113
26113
  clientColorScheme: n,
26114
26114
  currentBeatIndex: ee,
@@ -26122,7 +26122,7 @@ const wi = h.createContext(null), tf = ({
26122
26122
  ]
26123
26123
  }
26124
26124
  );
26125
- }, Cf = x(pf), ff = (e, n = !0, i) => Xt({
26125
+ }, C0 = x(p0), f0 = (e, n = !0, i) => Xt({
26126
26126
  alignItems: "center",
26127
26127
  boxSizing: "border-box",
26128
26128
  display: "flex",
@@ -26147,7 +26147,7 @@ const wi = h.createContext(null), tf = ({
26147
26147
  display: "none"
26148
26148
  }
26149
26149
  }
26150
- }), bf = ({
26150
+ }), b0 = ({
26151
26151
  clientColorScheme: e,
26152
26152
  onCardClick: n,
26153
26153
  posthog: i,
@@ -26216,7 +26216,7 @@ const wi = h.createContext(null), tf = ({
26216
26216
  ]
26217
26217
  }
26218
26218
  ) : /* @__PURE__ */ t(de, {});
26219
- }, yf = x(bf), Ef = ({
26219
+ }, y0 = x(b0), E0 = ({
26220
26220
  heightOverrides: e,
26221
26221
  widthOverrides: n,
26222
26222
  children: i
@@ -26333,7 +26333,7 @@ const wi = h.createContext(null), tf = ({
26333
26333
  widthOverrides: d
26334
26334
  }
26335
26335
  );
26336
- }, $E = x($c), Sf = () => /* @__PURE__ */ t(
26336
+ }, $E = x($c), S0 = () => /* @__PURE__ */ t(
26337
26337
  L,
26338
26338
  {
26339
26339
  sx: {
@@ -26345,7 +26345,7 @@ const wi = h.createContext(null), tf = ({
26345
26345
  },
26346
26346
  children: /* @__PURE__ */ t(Va, {})
26347
26347
  }
26348
- ), hn = new ef(), Tf = ({
26348
+ ), hn = new t0(), T0 = ({
26349
26349
  areBeatsLoading: e,
26350
26350
  beats: n = [],
26351
26351
  // This also determines the length of the carousel controls (beat.length + 1)
@@ -26400,10 +26400,10 @@ const wi = h.createContext(null), tf = ({
26400
26400
  // The Theme provider must wrap the component so that the styles don't break when imported into other applications.
26401
26401
  /* @__PURE__ */ l(Cl, { theme: R, children: [
26402
26402
  /* @__PURE__ */ t(Dd, {}),
26403
- /* @__PURE__ */ t(tf, { onEvent: O, onPageview: U, store: hn, children: /* @__PURE__ */ l(Ef, { heightOverrides: r, widthOverrides: w, children: [
26404
- (e || !hn.isInitialized) && /* @__PURE__ */ t(Sf, {}),
26403
+ /* @__PURE__ */ t(n0, { onEvent: O, onPageview: U, store: hn, children: /* @__PURE__ */ l(E0, { heightOverrides: r, widthOverrides: w, children: [
26404
+ (e || !hn.isInitialized) && /* @__PURE__ */ t(S0, {}),
26405
26405
  D && C && /* @__PURE__ */ t(
26406
- yf,
26406
+ y0,
26407
26407
  {
26408
26408
  clientColorScheme: i,
26409
26409
  onCardClick: c,
@@ -26412,7 +26412,7 @@ const wi = h.createContext(null), tf = ({
26412
26412
  }
26413
26413
  ),
26414
26414
  D && !!n.length && /* @__PURE__ */ t(
26415
- Cf,
26415
+ C0,
26416
26416
  {
26417
26417
  beats: n,
26418
26418
  clientColorScheme: i,
@@ -26426,7 +26426,7 @@ const wi = h.createContext(null), tf = ({
26426
26426
  ] }) })
26427
26427
  ] })
26428
26428
  );
26429
- }, UE = x(Tf), Af = ({
26429
+ }, UE = x(T0), A0 = ({
26430
26430
  isActiveCard: e,
26431
26431
  ariaLabel: n,
26432
26432
  clientColorScheme: i,
@@ -26458,7 +26458,7 @@ const wi = h.createContext(null), tf = ({
26458
26458
  description: m.view_more_card_description,
26459
26459
  fontColors: { buttonColor: i?.primary_300 },
26460
26460
  heightOverrides: a,
26461
- icon: /* @__PURE__ */ t(sf, { color: i?.primary_300 ?? u.palette.primary.main }),
26461
+ icon: /* @__PURE__ */ t(s0, { color: i?.primary_300 ?? u.palette.primary.main }),
26462
26462
  isActiveCard: e,
26463
26463
  onCardClick: f,
26464
26464
  posthog: r,
@@ -26469,7 +26469,7 @@ const wi = h.createContext(null), tf = ({
26469
26469
  widthOverrides: d
26470
26470
  }
26471
26471
  );
26472
- }, If = x(Af), Ia = 5, xf = (e, n) => n.reduce((i, a) => {
26472
+ }, I0 = x(A0), Ia = 5, x0 = (e, n) => n.reduce((i, a) => {
26473
26473
  if (a.total > 0) {
26474
26474
  const o = e.find((u) => u.guid === a.category_guid);
26475
26475
  if (!o) return i;
@@ -26491,7 +26491,7 @@ const wi = h.createContext(null), tf = ({
26491
26491
  }
26492
26492
  return i;
26493
26493
  }, []), Uc = (e, n) => {
26494
- const i = xf(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
+ const i = x0(e, n), a = i.filter((d) => d.guid !== N.INCOME && d.guid !== N.TRANSFER).sort((d, u) => u.amount - d.amount), o = a.reduce(
26495
26495
  (d, u) => d + u.amount,
26496
26496
  0
26497
26497
  ), r = a.length > Ia ? Ia : a.length, s = a.slice(0, r), c = s.map((d) => ({
@@ -26553,7 +26553,7 @@ const wi = h.createContext(null), tf = ({
26553
26553
  }, Xi = ({ amount: e, label: n }) => /* @__PURE__ */ l(y, { direction: "column", children: [
26554
26554
  /* @__PURE__ */ t(p, { bold: !0, sx: { textTransform: "none" }, variant: "Body", children: n }),
26555
26555
  /* @__PURE__ */ t(p, { variant: "XSmall", children: P(e, "0,0") })
26556
- ] }), vf = ({
26556
+ ] }), v0 = ({
26557
26557
  data: e,
26558
26558
  isIncome: n = !1,
26559
26559
  onSelected: i,
@@ -26606,7 +26606,7 @@ const wi = h.createContext(null), tf = ({
26606
26606
  }
26607
26607
  )
26608
26608
  ] }) }) });
26609
- }, Zi = x(vf), 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
+ }, Zi = x(v0), 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(
26610
26610
  y,
26611
26611
  {
26612
26612
  alignItems: "center",
@@ -26623,7 +26623,7 @@ const wi = h.createContext(null), tf = ({
26623
26623
  ]
26624
26624
  },
26625
26625
  a.guid
26626
- )) }), wf = () => {
26626
+ )) }), w0 = () => {
26627
26627
  const e = Ce(), { spending: n } = I(), { selectedAccounts: i } = le(), {
26628
26628
  categories: a,
26629
26629
  dateRangeCategoryTotals: o,
@@ -26718,7 +26718,7 @@ const wi = h.createContext(null), tf = ({
26718
26718
  /* @__PURE__ */ t(Qr, { data: C, onSelected: E, selectedId: d })
26719
26719
  ] }) })
26720
26720
  ] }) : /* @__PURE__ */ t(de, { height: 250 });
26721
- }, Nf = x(wf), Df = ({ onPrimaryCtaClick: e, sx: n = {} }) => {
26721
+ }, N0 = x(w0), D0 = ({ onPrimaryCtaClick: e, sx: n = {} }) => {
26722
26722
  const { spending: i } = I(), { isCopyLoaded: a } = le();
26723
26723
  return a ? /* @__PURE__ */ t(
26724
26724
  Nn,
@@ -26728,10 +26728,10 @@ const wi = h.createContext(null), tf = ({
26728
26728
  primaryCtaLabel: i.primary_cta,
26729
26729
  sx: n,
26730
26730
  title: i.mini_title,
26731
- children: /* @__PURE__ */ t(Nf, {})
26731
+ children: /* @__PURE__ */ t(N0, {})
26732
26732
  }
26733
26733
  ) : /* @__PURE__ */ t(de, {});
26734
- }, VE = x(Df), Rf = ({
26734
+ }, VE = x(D0), R0 = ({
26735
26735
  data: e,
26736
26736
  onSelected: n,
26737
26737
  selectedId: i = "",
@@ -26810,7 +26810,7 @@ const wi = h.createContext(null), tf = ({
26810
26810
  ] }, s.guid)) }),
26811
26811
  /* @__PURE__ */ t(p, { bold: !0, sx: { mt: 12, pr: 8, textAlign: "right" }, children: `${o.total}: ${P(e.totalAmount, "0,0")}` })
26812
26812
  ] });
26813
- }, Of = x(Rf), Lf = ({
26813
+ }, O0 = x(R0), L0 = ({
26814
26814
  data: e,
26815
26815
  onSelected: n,
26816
26816
  onViewTransactions: i,
@@ -26856,18 +26856,18 @@ const wi = h.createContext(null), tf = ({
26856
26856
  variant: "full"
26857
26857
  }
26858
26858
  ),
26859
- /* @__PURE__ */ t(Of, { data: e, onSelected: n, selectedId: a, title: o })
26859
+ /* @__PURE__ */ t(O0, { data: e, onSelected: n, selectedId: a, title: o })
26860
26860
  ]
26861
26861
  }
26862
26862
  );
26863
- }, Jr = x(Lf), Mf = (e) => [
26863
+ }, Jr = x(L0), M0 = (e) => [
26864
26864
  e.palette.chartMono.chartMono5,
26865
26865
  e.palette.chartMono.chartMono4,
26866
26866
  e.palette.chartMono.chartMono3,
26867
26867
  e.palette.chartMono.chartMono2,
26868
26868
  e.palette.chartMono.chartMono1,
26869
26869
  e.palette.chartMono.chartMono6
26870
- ], kf = () => {
26870
+ ], k0 = () => {
26871
26871
  const e = ln(), { categories: n, dateRangeCategoryTotals: i, loadDateRangeCategoryTotals: a } = Ve(), { spending: o } = I(), { displayedDateRange: r, selectedAccounts: s, selectedAccountGuids: c } = le(), { setFilter: d, sortedTransactions: u } = De(), [_, g] = h.useState(""), [m, C] = h.useState(0), [f, E] = h.useState(""), [b, S] = h.useState(!1);
26872
26872
  h.useEffect(() => {
26873
26873
  a(
@@ -26880,7 +26880,7 @@ const wi = h.createContext(null), tf = ({
26880
26880
  () => Uc(n, i),
26881
26881
  [n, i]
26882
26882
  ), v = h.useMemo(
26883
- () => Vc(n, i, Mf(e)),
26883
+ () => Vc(n, i, M0(e)),
26884
26884
  [n, i]
26885
26885
  ), w = h.useMemo(
26886
26886
  () => u.find((D) => D.guid === f),
@@ -26981,7 +26981,7 @@ const wi = h.createContext(null), tf = ({
26981
26981
  }
26982
26982
  )
26983
26983
  ] });
26984
- }, Gf = x(kf), Bf = ({ onBackClick: e, sx: n = {} }) => {
26984
+ }, G0 = x(k0), B0 = ({ onBackClick: e, sx: n = {} }) => {
26985
26985
  const { visibleAccounts: i } = Se(), { spending: a } = I(), { isCopyLoaded: o, isInitialized: r, setDisplayedDate: s, setSelectedAccounts: c } = le(), { onEvent: d } = Y(), [u, _] = h.useState(!1);
26986
26986
  h.useEffect(() => {
26987
26987
  c(i);
@@ -27000,11 +27000,11 @@ const wi = h.createContext(null), tf = ({
27000
27000
  onBackClick: e,
27001
27001
  sx: n,
27002
27002
  title: a.title,
27003
- children: /* @__PURE__ */ t(L, { height: "calc(100dvh - 150px)", overflow: "scroll", width: "100%", children: /* @__PURE__ */ t(Gf, {}) })
27003
+ children: /* @__PURE__ */ t(L, { height: "calc(100dvh - 150px)", overflow: "scroll", width: "100%", children: /* @__PURE__ */ t(G0, {}) })
27004
27004
  }
27005
27005
  );
27006
- }, KE = x(Bf), Pf = (e) => An[e] ?? An.default, Hf = (e) => ia[e];
27007
- function Ff(e, n) {
27006
+ }, KE = x(B0), P0 = (e) => An[e] ?? An.default, H0 = (e) => ia[e];
27007
+ function F0(e, n) {
27008
27008
  const i = [], a = new Date(e);
27009
27009
  for (; a <= n; ) {
27010
27010
  const o = a.getFullYear(), r = String(a.getMonth() + 1).padStart(2, "0");
@@ -27012,7 +27012,7 @@ function Ff(e, n) {
27012
27012
  }
27013
27013
  return i;
27014
27014
  }
27015
- const Wf = (e) => e.reduce((i, a) => {
27015
+ const W0 = (e) => e.reduce((i, a) => {
27016
27016
  const o = {
27017
27017
  top_level_category_guid: a.top_level_category_guid,
27018
27018
  category_guid: a.category_guid,
@@ -27020,8 +27020,8 @@ const Wf = (e) => e.reduce((i, a) => {
27020
27020
  year_month: a.year_month
27021
27021
  }, { top_level_category_guid: r, category_guid: s } = o;
27022
27022
  return i[s] || (i[s] = []), i[s].push(o), r !== s && (i[r] || (i[r] = []), i[r].push(o)), i;
27023
- }, {}), $f = (e, n, i) => {
27024
- const a = Wf(e), o = Ff(n, i);
27023
+ }, {}), $0 = (e, n, i) => {
27024
+ const a = W0(e), o = F0(n, i);
27025
27025
  return Object.entries(a).map(([s, c]) => {
27026
27026
  const d = c[0].top_level_category_guid, u = o.map((_) => {
27027
27027
  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));
@@ -27030,18 +27030,18 @@ const Wf = (e) => e.reduce((i, a) => {
27030
27030
  return {
27031
27031
  top_level_category_guid: d,
27032
27032
  category_guid: s,
27033
- category_name: Hf(s),
27034
- category_color: Pf(d),
27033
+ category_name: H0(s),
27034
+ category_color: P0(d),
27035
27035
  dataset: u
27036
27036
  };
27037
27037
  });
27038
- }, Uf = (e, n) => {
27038
+ }, U0 = (e, n) => {
27039
27039
  const i = typeof e == "string" ? parseFloat(e.replace(/[^0-9.-]+/g, "")) : e, a = typeof n == "string" ? parseFloat(n.replace(/[^0-9.-]+/g, "")) : n;
27040
27040
  return (i || 0) - (a || 0);
27041
- }, Vf = (e) => {
27041
+ }, V0 = (e) => {
27042
27042
  const n = e.row[e.field];
27043
27043
  return /* @__PURE__ */ t(y, { alignItems: "flex-end", tabIndex: e.tabIndex, children: /* @__PURE__ */ t(Ue, { amount: n, variant: "Small" }) });
27044
- }, Kf = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
27044
+ }, K0 = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
27045
27045
  const { categories: i } = I(), a = ia[e];
27046
27046
  return /* @__PURE__ */ l(y, { alignItems: "center", direction: "row", justifyContent: "center", children: [
27047
27047
  /* @__PURE__ */ t(
@@ -27054,20 +27054,20 @@ const Wf = (e) => e.reduce((i, a) => {
27054
27054
  ),
27055
27055
  /* @__PURE__ */ t(p, { sx: { ml: 12, pb: 6 }, variant: "Small", children: a })
27056
27056
  ] });
27057
- }, zf = (e) => /* @__PURE__ */ t(y, { alignItems: "center", direction: "row", height: "100%", width: "100%", children: /* @__PURE__ */ t(
27058
- Kf,
27057
+ }, z0 = (e) => /* @__PURE__ */ t(y, { alignItems: "center", direction: "row", height: "100%", width: "100%", children: /* @__PURE__ */ t(
27058
+ K0,
27059
27059
  {
27060
27060
  categoryGuid: e.row.category,
27061
27061
  topLevelCategoryGuid: e.row.top_level_category_guid
27062
27062
  }
27063
- ) }), Yf = (e, n) => {
27063
+ ) }), Y0 = (e, n) => {
27064
27064
  const i = [], a = new Date(e);
27065
27065
  for (; a <= n; ) {
27066
27066
  const o = re(a, ie.MONTH);
27067
27067
  i.push(o), a.setMonth(a.getMonth() + 1);
27068
27068
  }
27069
27069
  return i;
27070
- }, jf = ({
27070
+ }, j0 = ({
27071
27071
  monthlyCategoryTotals: e,
27072
27072
  selectedDateRange: n,
27073
27073
  selectedCategory: i,
@@ -27077,13 +27077,13 @@ const Wf = (e) => e.reduce((i, a) => {
27077
27077
  }) => {
27078
27078
  const { onEvent: s } = Y(), c = re(/* @__PURE__ */ new Date(), ie.MONTH_SHORT), [d, u] = h.useState([
27079
27079
  { field: c, sort: "desc" }
27080
- ]), _ = h.useMemo(() => Yf(n.start, n.end), [n]), g = [
27080
+ ]), _ = h.useMemo(() => Y0(n.start, n.end), [n]), g = [
27081
27081
  {
27082
27082
  field: "category",
27083
27083
  headerName: "Category",
27084
27084
  minWidth: 175,
27085
27085
  renderHeader: Wt,
27086
- renderCell: zf,
27086
+ renderCell: z0,
27087
27087
  sortable: !0,
27088
27088
  type: "string"
27089
27089
  },
@@ -27093,13 +27093,13 @@ const Wf = (e) => e.reduce((i, a) => {
27093
27093
  headerName: C,
27094
27094
  minWidth: 75,
27095
27095
  renderHeader: Wt,
27096
- renderCell: Vf,
27096
+ renderCell: V0,
27097
27097
  align: "right",
27098
27098
  headerAlign: "right",
27099
27099
  sortable: !0,
27100
27100
  hideSortIcons: !1,
27101
27101
  type: "number",
27102
- sortComparator: Uf
27102
+ sortComparator: U0
27103
27103
  })
27104
27104
  )
27105
27105
  ], m = h.useMemo(() => {
@@ -27141,9 +27141,9 @@ const Wf = (e) => e.reduce((i, a) => {
27141
27141
  sortingOrder: ["asc", "desc"]
27142
27142
  }
27143
27143
  ) });
27144
- }, Xf = {
27144
+ }, X0 = {
27145
27145
  title: "Transaction List"
27146
- }, Zf = ({
27146
+ }, Z0 = ({
27147
27147
  categoryGuid: e,
27148
27148
  dateRange: n,
27149
27149
  isOpen: i,
@@ -27169,16 +27169,16 @@ const Wf = (e) => e.reduce((i, a) => {
27169
27169
  ariaLabelClose: s.close_aria,
27170
27170
  isOpen: i,
27171
27171
  onClose: m,
27172
- title: Xf.title,
27172
+ title: X0.title,
27173
27173
  children: [
27174
27174
  g && /* @__PURE__ */ t(ni, { transaction: g }),
27175
27175
  !g && /* @__PURE__ */ t(Dn, { onClick: _ })
27176
27176
  ]
27177
27177
  }
27178
27178
  );
27179
- }, qf = x(Zf), Qf = {
27179
+ }, q0 = x(Z0), Q0 = {
27180
27180
  view_transactions: "View Transactions"
27181
- }, Jf = ({ onBackClick: e, sx: n }) => {
27181
+ }, J0 = ({ onBackClick: e, sx: n }) => {
27182
27182
  const i = at(), { onEvent: a } = Y(), { isDesktop: o, isTablet: r, isMobile: s } = fe(), { visibleAccounts: c } = Se(), { loadMonthlyCategoryTotals: d, monthlyCategoryTotals: u, getCategoryName: _ } = Ve(), { sortedTransactions: g } = De(), { 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), [B, M] = h.useState("Chart"), [D, k] = h.useState(""), [O, U] = h.useState({
27183
27183
  start: Vo(Je(zt(/* @__PURE__ */ new Date(), 6)), 1),
27184
27184
  end: Je(/* @__PURE__ */ new Date())
@@ -27196,7 +27196,7 @@ const Wf = (e) => e.reduce((i, a) => {
27196
27196
  }, [C, f, O]);
27197
27197
  const ee = h.useMemo(() => {
27198
27198
  if (!A) return { stackedDatasets: [], unstackedDatasets: [] };
27199
- const ne = $f(
27199
+ const ne = $0(
27200
27200
  u,
27201
27201
  O.start,
27202
27202
  O.end
@@ -27327,7 +27327,7 @@ const Wf = (e) => e.reduce((i, a) => {
27327
27327
  /* @__PURE__ */ t($, { name: "arrow_back" }),
27328
27328
  b.all_categories
27329
27329
  ] }) }),
27330
- /* @__PURE__ */ t(J, { onClick: () => R(!0), sx: { px: 5 }, children: `${Qf.view_transactions} (${g.length})` })
27330
+ /* @__PURE__ */ t(J, { onClick: () => R(!0), sx: { px: 5 }, children: `${Q0.view_transactions} (${g.length})` })
27331
27331
  ] }),
27332
27332
  /* @__PURE__ */ l(L, { children: [
27333
27333
  B === "Chart" && /* @__PURE__ */ t(
@@ -27342,7 +27342,7 @@ const Wf = (e) => e.reduce((i, a) => {
27342
27342
  }
27343
27343
  ),
27344
27344
  B === "Table" && /* @__PURE__ */ t(
27345
- jf,
27345
+ j0,
27346
27346
  {
27347
27347
  monthlyCategoryTotals: u,
27348
27348
  onClickRow: Oe,
@@ -27355,7 +27355,7 @@ const Wf = (e) => e.reduce((i, a) => {
27355
27355
  }
27356
27356
  ),
27357
27357
  /* @__PURE__ */ t(
27358
- qf,
27358
+ q0,
27359
27359
  {
27360
27360
  categoryGuid: D,
27361
27361
  dateRange: O,
@@ -27366,7 +27366,7 @@ const Wf = (e) => e.reduce((i, a) => {
27366
27366
  ]
27367
27367
  }
27368
27368
  );
27369
- }, zE = x(Jf), eb = () => {
27369
+ }, zE = x(J0), eb = () => {
27370
27370
  const e = at(), { monthlyCategoryTotals: n } = Ve(), { trends: i } = I(), a = Jg(n);
27371
27371
  return /* @__PURE__ */ t(
27372
27372
  to,
@@ -27416,17 +27416,17 @@ export {
27416
27416
  ec as AddRecurringTransactionDetails,
27417
27417
  e_ as AnalyticsApi,
27418
27418
  G as ApiEndpoints,
27419
- ef as AppStore,
27419
+ t0 as AppStore,
27420
27420
  jo as BannerApi,
27421
27421
  oE as BarChart,
27422
27422
  zn as BeatApi,
27423
- hf as BeatCard,
27423
+ h0 as BeatCard,
27424
27424
  Gi as BottomActions,
27425
27425
  BE as BubbleBudgetsMiniWidget,
27426
27426
  PE as BubbleBudgetsWidget,
27427
27427
  f_ as Calendar,
27428
27428
  Ds as CalendarSelectionTypes,
27429
- yf as CarouselHeader,
27429
+ y0 as CarouselHeader,
27430
27430
  fE as CashflowApi,
27431
27431
  dE as CashflowMiniWidget,
27432
27432
  Pg as CashflowOnboarding,
@@ -27441,7 +27441,7 @@ export {
27441
27441
  hh as CategorySelector,
27442
27442
  la as CategorySelectorDrawer,
27443
27443
  fh as CategoryStore,
27444
- sf as ChartFilledIcon,
27444
+ s0 as ChartFilledIcon,
27445
27445
  Hs as ConnectCard,
27446
27446
  Wn as ConnectDrawer,
27447
27447
  kE as ConnectMiniWidget,
@@ -27488,7 +27488,7 @@ export {
27488
27488
  xn as IconBacking,
27489
27489
  so as InformationTooltip,
27490
27490
  UE as InsightsMicroWidget,
27491
- tf as InsightsMicroWidgetDataProvider,
27491
+ n0 as InsightsMicroWidgetDataProvider,
27492
27492
  FE as InvestmentsWidget,
27493
27493
  Wd as IterationItemTypes,
27494
27494
  q4 as LOADING_STATUS,
@@ -27504,11 +27504,11 @@ export {
27504
27504
  Rp as MerchantStore,
27505
27505
  xt as MetaType,
27506
27506
  ys as MfaStatuses,
27507
- Cf as MicroBeatCarousel,
27507
+ C0 as MicroBeatCarousel,
27508
27508
  ga as MicroInsightCard,
27509
27509
  ro as MicroWidgetContainer,
27510
27510
  Nn as MiniWidgetContainer,
27511
- df as MonthlySpendComparisonIcon,
27511
+ d0 as MonthlySpendComparisonIcon,
27512
27512
  cE as MultiSegmentDonut,
27513
27513
  Lp as NetWorthChart,
27514
27514
  Bp as NetWorthList,
@@ -27589,7 +27589,7 @@ export {
27589
27589
  Ca as UserApi,
27590
27590
  pC as UserStore,
27591
27591
  Au as UserVerification,
27592
- If as ViewMoreMicroCard,
27592
+ I0 as ViewMoreMicroCard,
27593
27593
  qo as WidgetApi,
27594
27594
  bt as WidgetContainer,
27595
27595
  Os as WidgetContainerContext,