@mx-cartographer/experiences 6.3.4-alpha.mega2 → 6.3.4-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
@@ -22914,16 +22914,20 @@ const c0 = ({ widgets: e, isLoading: n }) => {
22914
22914
  }
22915
22915
  );
22916
22916
  }, p0 = () => {
22917
- const [e, n] = g.useState(0), [i, a] = g.useState(""), [o, r] = g.useState(""), s = (C) => {
22918
- i !== C ? a(C) : (a(""), r(""));
22919
- }, { visibleHoldings: c } = Di(), { visibleInvestmentAccounts: d } = we(), {
22920
- investments: { allocation: _ }
22921
- } = I(), u = h0(d, _, c), { isMobile: h } = ye(), m = yn("(max-width:768px)");
22917
+ const [e, n] = g.useState(0), [i, a] = g.useState(""), [o, r] = g.useState(""), s = (f) => {
22918
+ i !== f ? a(f) : (a(""), r(""));
22919
+ }, { selectedAccountGuids: c } = ue(), { visibleHoldings: d } = Di(), { visibleInvestmentAccounts: _ } = we(), {
22920
+ investments: { allocation: u }
22921
+ } = I(), h = h0(
22922
+ _.filter(({ guid: f }) => c.includes(f)),
22923
+ u,
22924
+ d
22925
+ ), { isMobile: m } = ye(), C = yn("(max-width:768px)");
22922
22926
  return /* @__PURE__ */ l(
22923
22927
  b,
22924
22928
  {
22925
- alignItems: m ? "center" : "flex-start",
22926
- direction: m ? "column" : "row",
22929
+ alignItems: C ? "center" : "flex-start",
22930
+ direction: C ? "column" : "row",
22927
22931
  gap: { xs: 16, md: 64, xl: 100 },
22928
22932
  sx: {
22929
22933
  justifyContent: "center",
@@ -22934,25 +22938,25 @@ const c0 = ({ widgets: e, isLoading: n }) => {
22934
22938
  /* @__PURE__ */ t(
22935
22939
  m0,
22936
22940
  {
22937
- data: u,
22941
+ data: h,
22938
22942
  hoveredId: o,
22939
22943
  isPercentage: e === 1,
22940
- onMouseEnter: (C) => {
22941
- i === C ? r("") : i || r(C);
22944
+ onMouseEnter: (f) => {
22945
+ i === f ? r("") : i || r(f);
22942
22946
  },
22943
22947
  onMouseLeave: () => {
22944
22948
  r("");
22945
22949
  },
22946
22950
  onSelected: s,
22947
22951
  selectedId: i,
22948
- size: h ? 280 : 400,
22949
- totalLabel: _.pie_chart_centered_text
22952
+ size: m ? 280 : 400,
22953
+ totalLabel: u.pie_chart_centered_text
22950
22954
  }
22951
22955
  ),
22952
22956
  /* @__PURE__ */ t(
22953
22957
  g0,
22954
22958
  {
22955
- data: u,
22959
+ data: h,
22956
22960
  onSelected: s,
22957
22961
  selectedId: i,
22958
22962
  selectedTabs: e,