@mx-cartographer/experiences 6.0.22-alpha.san3 → 6.0.22-alpha.san4

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
@@ -13325,7 +13325,7 @@ class fo {
13325
13325
  constructor(t, i) {
13326
13326
  this.fetchInstance = new _A(t, i);
13327
13327
  }
13328
- getHoldings = async () => this.fetchInstance.get(Q.HOLDINGS).then((t) => t);
13328
+ getHoldings = async () => this.fetchInstance.get(Q.HOLDINGS).then((t) => t.holdings);
13329
13329
  }
13330
13330
  class Bl {
13331
13331
  globalStore;
@@ -21866,13 +21866,13 @@ const H3 = g(() => {
21866
21866
  ...v,
21867
21867
  [d]: l
21868
21868
  }));
21869
- }, { holdings: n } = ha(), { visibleInvestmentAccounts: r, members: o } = zA(), a = r.length ? r?.reduce((d, f) => d + (f.balance || 0), 0) : 0, s = n.length ? n?.reduce((d, f) => {
21869
+ }, { holdings: n } = ha(), { visibleInvestmentAccounts: r, members: o } = zA(), a = r.reduce((d, f) => d + (f.balance || 0), 0), s = n.reduce((d, f) => {
21870
21870
  const l = f.market_value ? f.market_value - (f.cost_basis || 0) : 0;
21871
21871
  return d + l;
21872
- }, 0) : 0, c = n ? n?.reduce((d, f) => {
21872
+ }, 0), c = n.reduce((d, f) => {
21873
21873
  const l = f.market_value ? f.market_value - (f.cost_basis || 0) : 0;
21874
21874
  return d + l;
21875
- }, 0) : 0, E = a ? c / a * 100 : 0;
21875
+ }, 0), E = a ? c / a * 100 : 0;
21876
21876
  return /* @__PURE__ */ I(oe, { sx: { alignItems: "center", pt: 48, gap: 48, width: "100%" }, children: [
21877
21877
  /* @__PURE__ */ I(oe, { alignItems: "center", children: [
21878
21878
  /* @__PURE__ */ e(R, { color: "#49505A", children: "Total Portfolio" }),
@@ -21918,7 +21918,10 @@ const H3 = g(() => {
21918
21918
  // Calculate gain/loss
21919
21919
  marketValue: X.market_value || 0,
21920
21920
  description: X.description || ""
21921
- })), u = v.length > 0, H = l.balance, P = v.length ? v.reduce((X, x) => x.totalGainLoss + X, 0) : 0, C = H ? P / H * 100 : 0;
21921
+ })), u = v.length > 0, H = l.balance, P = v.reduce(
21922
+ (X, x) => x.totalGainLoss + X,
21923
+ 0
21924
+ ), C = H ? P / H * 100 : 0;
21922
21925
  return /* @__PURE__ */ I(
21923
21926
  Gi,
21924
21927
  {