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

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