@mparticle/aquarium 1.21.1-fix-queryitem.valueselector.cascader-various-fixes.1 → 1.21.1

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/aquarium.js CHANGED
@@ -416,7 +416,7 @@ const i6 = (e) => {
416
416
  }
417
417
  };
418
418
  let E = "query-item";
419
- M && (E += " query-item--open"), c && c.length !== 0 && (E += " query-item--selected"), e.errorMessage && (E += " query-item--error"), e.classNameInput && (E += ` ${e.classNameInput}`);
419
+ M && (E += " query-item--open"), c && c.length !== 0 && (E += " query-item--selected"), e.errorMessage && (E += " query-item--error");
420
420
  const Z = h != null ? h : c.slice(-1);
421
421
  return /* @__PURE__ */ u(S, { children: [
422
422
  /* @__PURE__ */ r(O1, _(a({}, r1), { children: /* @__PURE__ */ r(
@@ -1637,13 +1637,16 @@ const X6 = 4.5, J6 = "Join the new mParticle Experience!", Y6 = "Managing your d
1637
1637
  predictions: "PredictionsBtn",
1638
1638
  analytics: "AnalyticsBtn",
1639
1639
  segmentation: "SegmentationBtn"
1640
- }, n = e.links.map((i) => ({
1641
- elementId: t[i.linkId],
1642
- href: i.href,
1643
- variant: "drop-shadow",
1644
- isUnauthorized: e.unauthorizedLinks.includes(i.linkId),
1645
- isActive: e.activeLink === i.linkId
1646
- }));
1640
+ }, n = e.links.map((i) => {
1641
+ var l;
1642
+ return {
1643
+ elementId: t[i.linkId],
1644
+ href: i.href,
1645
+ variant: "drop-shadow",
1646
+ isUnauthorized: (l = e.unauthorizedLinks) == null ? void 0 : l.includes(i.linkId),
1647
+ isActive: e.activeLink === i.linkId
1648
+ };
1649
+ });
1647
1650
  return /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r("div", { className: "u-padding-sm", children: /* @__PURE__ */ u(z, { align: "normal", component: "div", flex: "0 1 auto", gap: "small", justify: "stretch", vertical: !0, wrap: "nowrap", children: [
1648
1651
  /* @__PURE__ */ u(z, { align: "center", justify: "space-between", children: [
1649
1652
  /* @__PURE__ */ r(t8, {}),
@@ -1652,8 +1655,9 @@ const X6 = 4.5, J6 = "Join the new mParticle Experience!", Y6 = "Managing your d
1652
1655
  /* @__PURE__ */ r(n8, { links: n, onLinkClick: C, children: r8 })
1653
1656
  ] }) }) });
1654
1657
  function C(i) {
1655
- const l = e.links.find((c) => c.href === i.href);
1656
- i.isUnauthorized ? e.onUnauthorizedClick(l) : e.onLinkClick(l);
1658
+ var c;
1659
+ const l = e.links.find((d) => d.href === i.href);
1660
+ l && (i.isUnauthorized ? (c = e.onUnauthorizedClick) == null || c.call(e, l) : e.onLinkClick(l));
1657
1661
  }
1658
1662
  };
1659
1663
  function W2(e) {
@@ -1728,7 +1732,7 @@ const l8 = 90, c8 = (n) => {
1728
1732
  navigationButtonItemOptions: t.navigationButtonItemOptions,
1729
1733
  avatarOptions: t.avatarOptions
1730
1734
  }
1731
- ) : !!((i = t.navigationButtonItemOptions) != null && i.onClick()) && /* @__PURE__ */ r(
1735
+ ) : !!((i = t.navigationButtonItemOptions) != null && i.onClick) && /* @__PURE__ */ r(
1732
1736
  G2,
1733
1737
  {
1734
1738
  type: "link",