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

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