@mx-cartographer/experiences 6.2.9-alpha.mega1 → 6.2.9-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
@@ -22704,144 +22704,153 @@ const l0 = ({ widgets: e, isLoading: n }) => {
22704
22704
  totalMarketValue: h,
22705
22705
  totalGainLossPercentage: u / d
22706
22706
  };
22707
- }, mo = (e) => e < 1e-3 ? "< 0.1%" : $i(e), Ai = (e) => tu(e, -0.01, 0.01) ? "< $0.01" : B(e, "0,0.00"), g0 = ({
22708
- data: e,
22709
- onSelected: n,
22710
- selectedId: i,
22711
- selectedTabs: a,
22712
- setSelectedTabs: o
22713
- }) => {
22714
- const r = e.investmentsData.find((E) => E.guid === i), s = (E, b) => {
22715
- b !== null && o(b);
22716
- }, { isMobile: c } = Ee(), {
22717
- investments: { allocation: d }
22718
- } = I(), u = ge().palette.mode === "dark", h = u ? "grey.200" : "grey.700", m = u ? "common.white" : "primary.main", C = u ? "primary.light" : "primary.dark", f = u ? "grey.600" : "grey.400";
22719
- return /* @__PURE__ */ l(y, { sx: { mt: 15, width: c ? 250 : 412 }, children: [
22720
- /* @__PURE__ */ l(
22721
- Oi,
22722
- {
22723
- exclusive: !0,
22724
- fullWidth: !0,
22725
- onChange: s,
22726
- value: a,
22727
- children: [
22728
- /* @__PURE__ */ t(
22729
- Yn,
22730
- {
22731
- sx: {
22732
- "&:hover": {
22733
- backgroundColor: "transparent"
22734
- },
22735
- "&.Mui-selected": {
22736
- backgroundColor: "background.highlightPrimary",
22737
- color: m,
22738
- borderColor: C,
22707
+ }, mo = (e) => e < 1e-3 ? "< 0.1%" : $i(e), Ai = (e) => tu(e, -0.01, 0.01) ? "< $0.01" : B(e, "0,0.00"), g0 = A(
22708
+ ({
22709
+ data: e,
22710
+ onSelected: n,
22711
+ selectedId: i,
22712
+ selectedTabs: a,
22713
+ setSelectedTabs: o
22714
+ }) => {
22715
+ const r = e.investmentsData.find((E) => E.guid === i), s = (E, b) => {
22716
+ b !== null && o(b);
22717
+ }, { isMobile: c } = Ee(), {
22718
+ investments: { allocation: d }
22719
+ } = I(), u = ge().palette.mode === "dark", h = u ? "grey.200" : "grey.700", m = u ? "common.white" : "primary.main", C = u ? "primary.light" : "primary.dark", f = u ? "grey.600" : "grey.400";
22720
+ return /* @__PURE__ */ l(y, { sx: { mt: 15, width: c ? 250 : 412 }, children: [
22721
+ /* @__PURE__ */ l(
22722
+ Oi,
22723
+ {
22724
+ exclusive: !0,
22725
+ fullWidth: !0,
22726
+ onChange: s,
22727
+ value: a,
22728
+ children: [
22729
+ /* @__PURE__ */ t(
22730
+ Yn,
22731
+ {
22732
+ sx: {
22739
22733
  "&:hover": {
22740
- backgroundColor: "background.highlightPrimary"
22741
- }
22742
- },
22743
- borderColor: f,
22744
- color: h
22745
- },
22746
- value: 0,
22747
- children: /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: d.tabs_label_dollar })
22748
- }
22749
- ),
22750
- /* @__PURE__ */ t(
22751
- Yn,
22752
- {
22753
- sx: {
22754
- "&:hover": {
22755
- backgroundColor: "transparent"
22734
+ backgroundColor: "transparent"
22735
+ },
22736
+ "&.Mui-selected": {
22737
+ backgroundColor: "background.highlightPrimary",
22738
+ color: m,
22739
+ borderColor: C,
22740
+ "&:hover": {
22741
+ backgroundColor: "background.highlightPrimary"
22742
+ }
22743
+ },
22744
+ borderColor: f,
22745
+ color: h
22756
22746
  },
22757
- "&.Mui-selected": {
22758
- backgroundColor: "background.highlightPrimary",
22759
- borderColor: C,
22760
- color: m,
22747
+ value: 0,
22748
+ children: /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: d.tabs_label_dollar })
22749
+ }
22750
+ ),
22751
+ /* @__PURE__ */ t(
22752
+ Yn,
22753
+ {
22754
+ sx: {
22761
22755
  "&:hover": {
22762
- backgroundColor: "background.highlightPrimary"
22763
- }
22756
+ backgroundColor: "transparent"
22757
+ },
22758
+ "&.Mui-selected": {
22759
+ backgroundColor: "background.highlightPrimary",
22760
+ borderColor: C,
22761
+ color: m,
22762
+ "&:hover": {
22763
+ backgroundColor: "background.highlightPrimary"
22764
+ }
22765
+ },
22766
+ borderColor: f,
22767
+ color: h
22764
22768
  },
22765
- borderColor: f,
22766
- color: h
22767
- },
22768
- value: 1,
22769
- children: /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: d.tabs_label_percent })
22770
- }
22771
- )
22772
- ]
22773
- }
22774
- ),
22775
- /* @__PURE__ */ t(ne, { children: e.investmentsData.map((E) => /* @__PURE__ */ l(g.Fragment, { children: [
22776
- /* @__PURE__ */ t(
22777
- j,
22778
- {
22779
- disableGutters: !0,
22780
- disablePadding: !0,
22781
- sx: {
22782
- minHeight: 44
22783
- },
22784
- children: /* @__PURE__ */ l(
22785
- de,
22786
- {
22787
- "aria-expanded": r?.guid === E.guid,
22788
- onClick: () => n(E.guid),
22789
- sx: { minHeight: 44, px: 8, py: 0 },
22790
- children: [
22791
- /* @__PURE__ */ t(
22792
- L,
22793
- {
22794
- borderRadius: 4,
22795
- flexShrink: 0,
22796
- height: 8,
22797
- sx: { backgroundColor: E.color, mr: 8 },
22798
- width: 8
22799
- }
22800
- ),
22801
- /* @__PURE__ */ l(
22802
- y,
22803
- {
22804
- alignItems: "center",
22805
- direction: "row",
22806
- justifyContent: "space-between",
22807
- width: "100%",
22808
- children: [
22809
- /* @__PURE__ */ t(p, { bold: i === E.guid, children: E.displayName }),
22810
- /* @__PURE__ */ t(p, { bold: i === E.guid, variant: "Body", children: a === 0 ? Ai(E.value) : mo(E.percentage) })
22811
- ]
22812
- }
22813
- )
22814
- ]
22815
- }
22816
- )
22769
+ value: 1,
22770
+ children: /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: d.tabs_label_percent })
22771
+ }
22772
+ )
22773
+ ]
22817
22774
  }
22818
22775
  ),
22819
- /* @__PURE__ */ t(k, {}),
22820
- E.holdings && E.holdings.length > 0 && /* @__PURE__ */ t(Pi, { in: r?.guid === E.guid, unmountOnExit: !0, children: /* @__PURE__ */ l(ne, { children: [
22821
- r?.holdings?.map((b) => /* @__PURE__ */ t(
22776
+ /* @__PURE__ */ t(ne, { children: e.investmentsData.map((E) => /* @__PURE__ */ l(g.Fragment, { children: [
22777
+ /* @__PURE__ */ t(
22822
22778
  j,
22823
22779
  {
22780
+ disableGutters: !0,
22781
+ disablePadding: !0,
22824
22782
  sx: {
22825
- pl: 24,
22826
- pr: 8,
22827
- py: 0
22783
+ minHeight: 44
22828
22784
  },
22829
- children: /* @__PURE__ */ l(y, { direction: "row", justifyContent: "space-between", width: "100%", children: [
22830
- /* @__PURE__ */ l(p, { children: [
22831
- b.displayName,
22832
- " "
22833
- ] }),
22834
- /* @__PURE__ */ t(p, { children: a === 0 ? Ai(b.value) : mo(b.percentage) })
22785
+ children: /* @__PURE__ */ l(
22786
+ de,
22787
+ {
22788
+ "aria-expanded": r?.guid === E.guid,
22789
+ onClick: () => n(E.guid),
22790
+ sx: { minHeight: 44, px: 8, py: 0 },
22791
+ children: [
22792
+ /* @__PURE__ */ t(
22793
+ L,
22794
+ {
22795
+ borderRadius: 4,
22796
+ flexShrink: 0,
22797
+ height: 8,
22798
+ sx: { backgroundColor: E.color, mr: 8 },
22799
+ width: 8
22800
+ }
22801
+ ),
22802
+ /* @__PURE__ */ l(
22803
+ y,
22804
+ {
22805
+ alignItems: "center",
22806
+ direction: "row",
22807
+ justifyContent: "space-between",
22808
+ width: "100%",
22809
+ children: [
22810
+ /* @__PURE__ */ t(p, { bold: i === E.guid, children: E.displayName }),
22811
+ /* @__PURE__ */ t(p, { bold: i === E.guid, variant: "Body", children: a === 0 ? Ai(E.value) : mo(E.percentage) })
22812
+ ]
22813
+ }
22814
+ )
22815
+ ]
22816
+ }
22817
+ )
22818
+ }
22819
+ ),
22820
+ /* @__PURE__ */ t(k, {}),
22821
+ E.holdings && E.holdings.length > 0 && /* @__PURE__ */ t(
22822
+ Pi,
22823
+ {
22824
+ in: r?.guid === E.guid,
22825
+ unmountOnExit: !0,
22826
+ children: /* @__PURE__ */ l(ne, { children: [
22827
+ r?.holdings?.map((b) => /* @__PURE__ */ t(
22828
+ j,
22829
+ {
22830
+ sx: {
22831
+ pl: 24,
22832
+ pr: 8,
22833
+ py: 0
22834
+ },
22835
+ children: /* @__PURE__ */ l(y, { direction: "row", justifyContent: "space-between", width: "100%", children: [
22836
+ /* @__PURE__ */ l(p, { children: [
22837
+ b.displayName,
22838
+ " "
22839
+ ] }),
22840
+ /* @__PURE__ */ t(p, { children: a === 0 ? Ai(b.value) : mo(b.percentage) })
22841
+ ] })
22842
+ },
22843
+ b.displayName
22844
+ )),
22845
+ /* @__PURE__ */ t(k, {})
22835
22846
  ] })
22836
- },
22837
- b.displayName
22838
- )),
22839
- /* @__PURE__ */ t(k, {})
22840
- ] }) })
22841
- ] }, E.guid)) }),
22842
- a === 0 && /* @__PURE__ */ t(p, { bold: !0, sx: { mt: 12, pr: 8, textAlign: "right" }, children: `${d.total_label_text} ${Ai(e.totalAmount)}` })
22843
- ] });
22844
- }, m0 = ({
22847
+ }
22848
+ )
22849
+ ] }, E.guid)) }),
22850
+ a === 0 && /* @__PURE__ */ t(p, { bold: !0, sx: { mt: 12, pr: 8, textAlign: "right" }, children: `${d.total_label_text} ${Ai(e.totalAmount)}` })
22851
+ ] });
22852
+ }
22853
+ ), m0 = ({
22845
22854
  data: e,
22846
22855
  hoveredId: n,
22847
22856
  isPercentage: i,
@@ -22900,7 +22909,9 @@ const l0 = ({ widgets: e, isLoading: n }) => {
22900
22909
  i !== C ? a(C) : (a(""), r(""));
22901
22910
  }, { holdings: c } = wi(), { visibleInvestmentAccounts: d } = ve(), {
22902
22911
  investments: { allocation: _ }
22903
- } = I(), u = h0(d, _, c), { isMobile: h } = Ee(), m = bn("(max-width:768px)");
22912
+ } = I();
22913
+ console.log(_, ":::investments");
22914
+ const u = h0(d, _, c), { isMobile: h } = Ee(), m = bn("(max-width:768px)");
22904
22915
  return /* @__PURE__ */ t(Q, { children: /* @__PURE__ */ l(
22905
22916
  y,
22906
22917
  {