@apolitical/component-library 1.18.2 → 1.18.3

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.
Files changed (3) hide show
  1. package/index.js +1 -1
  2. package/index.mjs +241 -205
  3. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import F, { memo as Fe, useState as R, useEffect as G, useRef as ae, useMemo as ft, createContext as Gt, useContext as _e, Children as Ht, useCallback as Rn, Fragment as qe, useReducer as Oa, Suspense as Ba } from "react";
2
2
  import Za from "lodash.clonedeep";
3
3
  import qa from "lodash.set";
4
- import { useIntl as A, IntlProvider as Ha, createIntl as Ua, FormattedMessage as we } from "react-intl";
4
+ import { useIntl as A, IntlProvider as Ha, createIntl as Ua, FormattedMessage as je } from "react-intl";
5
5
  import Ne from "truncate";
6
6
  import { QueryClient as za, QueryClientProvider as Wa, useMutation as fe, useQueryClient as Kt, useInfiniteQuery as Ln, useQuery as Va } from "@tanstack/react-query";
7
7
  import { ReactQueryDevtools as Ya } from "@tanstack/react-query-devtools";
@@ -53,7 +53,7 @@ var On = { exports: {} };
53
53
  })();
54
54
  })(On);
55
55
  var nr = On.exports;
56
- const w = /* @__PURE__ */ tr(nr), ar = ({ element: e = "span", showOnFocus: t = !0, children: n, ...r }) => F.createElement(e, { ...r, className: w("hidden", { "show-on-focus": t }), children: n }), ie = Fe(ar), rr = ({ element: e = "span", children: t = null, ...n }) => F.createElement(e, { ...n, "aria-hidden": !0 }, t), Bn = Fe(rr);
56
+ const j = /* @__PURE__ */ tr(nr), ar = ({ element: e = "span", showOnFocus: t = !0, children: n, ...r }) => F.createElement(e, { ...r, className: j("hidden", { "show-on-focus": t }), children: n }), ie = Fe(ar), rr = ({ element: e = "span", children: t = null, ...n }) => F.createElement(e, { ...n, "aria-hidden": !0 }, t), Bn = Fe(rr);
57
57
  var Ut = { exports: {} }, Re = {};
58
58
  /**
59
59
  * @license React
@@ -120,10 +120,10 @@ function ir() {
120
120
  V.unshift("Warning: " + x), Function.prototype.apply.call(console[u], console, V);
121
121
  }
122
122
  }
123
- var j = !1, S = !1, M = !1, D = !1, I = !1, $;
123
+ var w = !1, S = !1, M = !1, D = !1, I = !1, $;
124
124
  $ = Symbol.for("react.module.reference");
125
125
  function C(u) {
126
- return !!(typeof u == "string" || typeof u == "function" || u === r || u === i || I || u === s || u === l || u === f || D || u === h || j || S || M || typeof u == "object" && u !== null && (u.$$typeof === p || u.$$typeof === d || u.$$typeof === o || u.$$typeof === c || u.$$typeof === m || // This needs to include all possible module reference object
126
+ return !!(typeof u == "string" || typeof u == "function" || u === r || u === i || I || u === s || u === l || u === f || D || u === h || w || S || M || typeof u == "object" && u !== null && (u.$$typeof === p || u.$$typeof === d || u.$$typeof === o || u.$$typeof === c || u.$$typeof === m || // This needs to include all possible module reference object
127
127
  // types supported by any Flight configuration anywhere since
128
128
  // we don't know which Flight build this will end up being used
129
129
  // with.
@@ -400,7 +400,7 @@ function ir() {
400
400
  }
401
401
  }
402
402
  var va = Array.isArray;
403
- function jt(u) {
403
+ function wt(u) {
404
404
  return va(u);
405
405
  }
406
406
  function xa(u) {
@@ -423,14 +423,14 @@ function ir() {
423
423
  if (ka(u))
424
424
  return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", xa(u)), on(u);
425
425
  }
426
- var De = b.ReactCurrentOwner, ja = {
426
+ var De = b.ReactCurrentOwner, wa = {
427
427
  key: !0,
428
428
  ref: !0,
429
429
  __self: !0,
430
430
  __source: !0
431
- }, ln, dn, wt;
432
- wt = {};
433
- function wa(u) {
431
+ }, ln, dn, jt;
432
+ jt = {};
433
+ function ja(u) {
434
434
  if (Ve.call(u, "ref")) {
435
435
  var x = Object.getOwnPropertyDescriptor(u, "ref").get;
436
436
  if (x && x.isReactWarning)
@@ -449,7 +449,7 @@ function ir() {
449
449
  function $a(u, x) {
450
450
  if (typeof u.ref == "string" && De.current && x && De.current.stateNode !== x) {
451
451
  var T = N(De.current.type);
452
- wt[T] || (_('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', N(De.current.type), u.ref), wt[T] = !0);
452
+ jt[T] || (_('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', N(De.current.type), u.ref), jt[T] = !0);
453
453
  }
454
454
  }
455
455
  function Ea(u, x) {
@@ -506,9 +506,9 @@ function ir() {
506
506
  function Ma(u, x, T, P, B) {
507
507
  {
508
508
  var V, O = {}, L = null, oe = null;
509
- T !== void 0 && (cn(T), L = "" + T), Ta(x) && (cn(x.key), L = "" + x.key), wa(x) && (oe = x.ref, $a(x, B));
509
+ T !== void 0 && (cn(T), L = "" + T), Ta(x) && (cn(x.key), L = "" + x.key), ja(x) && (oe = x.ref, $a(x, B));
510
510
  for (V in x)
511
- Ve.call(x, V) && !ja.hasOwnProperty(V) && (O[V] = x[V]);
511
+ Ve.call(x, V) && !wa.hasOwnProperty(V) && (O[V] = x[V]);
512
512
  if (u && u.defaultProps) {
513
513
  var ee = u.defaultProps;
514
514
  for (V in ee)
@@ -587,7 +587,7 @@ Check the top-level render call using <` + T + ">.");
587
587
  {
588
588
  if (typeof u != "object")
589
589
  return;
590
- if (jt(u))
590
+ if (wt(u))
591
591
  for (var T = 0; T < u.length; T++) {
592
592
  var P = u[T];
593
593
  Et(P) && pn(P, x);
@@ -648,7 +648,7 @@ Check the top-level render call using <` + T + ">.");
648
648
  var oe = Na(B);
649
649
  oe ? L += oe : L += mn();
650
650
  var ee;
651
- u === null ? ee = "null" : jt(u) ? ee = "array" : u !== void 0 && u.$$typeof === t ? (ee = "<" + (N(u.type) || "Unknown") + " />", L = " Did you accidentally export a JSX literal instead of a component?") : ee = typeof u, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ee, L);
651
+ u === null ? ee = "null" : wt(u) ? ee = "array" : u !== void 0 && u.$$typeof === t ? (ee = "<" + (N(u.type) || "Unknown") + " />", L = " Did you accidentally export a JSX literal instead of a component?") : ee = typeof u, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ee, L);
652
652
  }
653
653
  var te = Ma(u, x, T, B, V);
654
654
  if (te == null)
@@ -657,7 +657,7 @@ Check the top-level render call using <` + T + ">.");
657
657
  var ge = x.children;
658
658
  if (ge !== void 0)
659
659
  if (P)
660
- if (jt(ge)) {
660
+ if (wt(ge)) {
661
661
  for (var Se = 0; Se < ge.length; Se++)
662
662
  hn(ge[Se], u);
663
663
  Object.freeze && Object.freeze(ge);
@@ -709,7 +709,7 @@ function cr(e, t, n) {
709
709
  };
710
710
  }, []);
711
711
  var v = ft(function() {
712
- var j = function(C) {
712
+ var w = function(C) {
713
713
  var E = c.current, Z = m.current;
714
714
  return c.current = m.current = null, i.current = C, l.current = f.current.apply(Z, E);
715
715
  }, S = function(C, E) {
@@ -720,7 +720,7 @@ function cr(e, t, n) {
720
720
  var E = C - s.current;
721
721
  return !s.current || E >= t || E < 0 || k && C - i.current >= _;
722
722
  }, D = function(C) {
723
- return o.current = null, y && c.current ? j(C) : (c.current = m.current = null, l.current);
723
+ return o.current = null, y && c.current ? w(C) : (c.current = m.current = null, l.current);
724
724
  }, I = function C() {
725
725
  var E = Date.now();
726
726
  if (M(E))
@@ -734,9 +734,9 @@ function cr(e, t, n) {
734
734
  var C = Date.now(), E = M(C);
735
735
  if (c.current = [].slice.call(arguments), m.current = r, s.current = C, E) {
736
736
  if (!o.current && d.current)
737
- return i.current = s.current, S(I, t), g ? j(s.current) : l.current;
737
+ return i.current = s.current, S(I, t), g ? w(s.current) : l.current;
738
738
  if (k)
739
- return S(I, t), j(s.current);
739
+ return S(I, t), w(s.current);
740
740
  }
741
741
  return o.current || S(I, t), l.current;
742
742
  }
@@ -1252,7 +1252,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1252
1252
  typeof t == "string" && g.push(t), r && (g.push("icon"), typeof r == "object" ? (g.push(r.icon), r.position ? g.push(r.position) : g.push("left"), r.hover && g.push(`hover_${r.hover}`), r.animate && (g.push("animate"), typeof r.animate == "string" && g.push(r.animate))) : (g.push(r), !r.includes("right") && !r.includes("left") && g.push("left"))), n.muted && g.push("muted"), n.fullWidth && g.push("full-width");
1253
1253
  const y = {
1254
1254
  ...d,
1255
- className: w(e, c, g, {
1255
+ className: j(e, c, g, {
1256
1256
  "no-text": !f,
1257
1257
  disabled: m,
1258
1258
  button: s
@@ -1269,11 +1269,11 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1269
1269
  );
1270
1270
  }, ht = ({ buttons: e, className: t = "", ...n }) => {
1271
1271
  const r = e.length > 1 ? "ul" : "p", s = e.map((i, o) => r === "p" ? /* @__PURE__ */ a.jsx(H, { ...i }, o) : /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(H, { ...i }) }, o));
1272
- return F.createElement(r, { className: w("button-wrapper", t), ...n, children: s });
1272
+ return F.createElement(r, { className: j("button-wrapper", t), ...n, children: s });
1273
1273
  };
1274
1274
  const $e = ({ className: e = "", maxWidth: t = !1 }) => {
1275
1275
  const n = t ? { "--max-width": `${t / 16}rem` } : {};
1276
- return /* @__PURE__ */ a.jsx("hr", { className: w(e, { "has-max-width": t }), style: n });
1276
+ return /* @__PURE__ */ a.jsx("hr", { className: j(e, { "has-max-width": t }), style: n });
1277
1277
  }, gt = ({
1278
1278
  href: e,
1279
1279
  children: t,
@@ -1290,7 +1290,7 @@ const $e = ({ className: e = "", maxWidth: t = !1 }) => {
1290
1290
  "a",
1291
1291
  {
1292
1292
  href: e,
1293
- className: w("gtm-trackable", r),
1293
+ className: j("gtm-trackable", r),
1294
1294
  ...m,
1295
1295
  children: t
1296
1296
  }
@@ -1407,10 +1407,10 @@ const $e = ({ className: e = "", maxWidth: t = !1 }) => {
1407
1407
  }) => {
1408
1408
  const { range: r, sizes: s } = e ? xn[e] : xn.fallback;
1409
1409
  return { range: t && t.length > 0 ? t : r, sizes: n || s };
1410
- }, jr = ({ format: e, height: t, query: n, width: r }) => {
1410
+ }, wr = ({ format: e, height: t, query: n, width: r }) => {
1411
1411
  let s = `w=${r}&h=${t}`;
1412
1412
  return s = e ? `${s}&fm=${e}` : s, s = n ? `${s}&${n}` : s, s;
1413
- }, St = ({ format: e, range: t, url: n, query: r }) => t.map(({ height: s, width: i }) => `${n}?${jr({
1413
+ }, St = ({ format: e, range: t, url: n, query: r }) => t.map(({ height: s, width: i }) => `${n}?${wr({
1414
1414
  format: e,
1415
1415
  height: s,
1416
1416
  query: r,
@@ -1465,7 +1465,7 @@ const Wn = ({ image: e, className: t, testId: n }) => {
1465
1465
  ] });
1466
1466
  };
1467
1467
  let Ie = !1;
1468
- const wr = ({ isOpen: e = !1, isLoading: t = !1, children: n }) => {
1468
+ const jr = ({ isOpen: e = !1, isLoading: t = !1, children: n }) => {
1469
1469
  const r = A(), s = ae(null), [i, o] = R("hidden");
1470
1470
  G(() => {
1471
1471
  const m = s.current;
@@ -1483,9 +1483,9 @@ const wr = ({ isOpen: e = !1, isLoading: t = !1, children: n }) => {
1483
1483
  e ? o("opening") : (o("closing"), m = "hidden"), Ie = setTimeout(() => {
1484
1484
  o(m);
1485
1485
  }, 300);
1486
- }, [e]), /* @__PURE__ */ a.jsx("aside", { ref: s, className: w("tooltip text-medium", i, { loading: t }), hidden: i === "hidden", children: t ? /* @__PURE__ */ a.jsx("p", { children: r.formatMessage({ id: "tooltip_loading" }) }) : typeof n == "string" ? /* @__PURE__ */ a.jsx("p", { children: n }) : n });
1486
+ }, [e]), /* @__PURE__ */ a.jsx("aside", { ref: s, className: j("tooltip text-medium", i, { loading: t }), hidden: i === "hidden", children: t ? /* @__PURE__ */ a.jsx("p", { children: r.formatMessage({ id: "tooltip_loading" }) }) : typeof n == "string" ? /* @__PURE__ */ a.jsx("p", { children: n }) : n });
1487
1487
  };
1488
- const _t = ({ children: e, className: t = "", ...n }) => /* @__PURE__ */ a.jsx("section", { className: w("full-width-section", t), ...n, children: e });
1488
+ const _t = ({ children: e, className: t = "", ...n }) => /* @__PURE__ */ a.jsx("section", { className: j("full-width-section", t), ...n, children: e });
1489
1489
  const $i = ({ text: e, buttons: t, className: n = "" }) => {
1490
1490
  const r = [];
1491
1491
  return t.forEach((s) => {
@@ -1499,7 +1499,7 @@ const $i = ({ text: e, buttons: t, className: n = "" }) => {
1499
1499
  target: "_blank",
1500
1500
  children: s.text
1501
1501
  });
1502
- }), /* @__PURE__ */ a.jsx(_t, { className: w("download-section", n), children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1502
+ }), /* @__PURE__ */ a.jsx(_t, { className: j("download-section", n), children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1503
1503
  F.createElement(typeof e == "string" ? "h2" : e.element, { className: "text" }, typeof e == "string" ? e : e.text),
1504
1504
  /* @__PURE__ */ a.jsx(ht, { buttons: r })
1505
1505
  ] }) });
@@ -1512,12 +1512,12 @@ const Ei = ({ title: e = !1, logos: t = [], className: n = "" }) => {
1512
1512
  element: typeof e == "object" ? e.element : "h2",
1513
1513
  text: typeof e == "string" ? e : typeof e == "object" ? e.text : ""
1514
1514
  };
1515
- return /* @__PURE__ */ a.jsxs("div", { className: w("logos", n), children: [
1515
+ return /* @__PURE__ */ a.jsxs("div", { className: j("logos", n), children: [
1516
1516
  e && F.createElement(s.element, { className: "title" }, s.text),
1517
1517
  /* @__PURE__ */ a.jsx(
1518
1518
  "ul",
1519
1519
  {
1520
- className: w({ "two-col": r === 2 || r === 4, "three-col": r === 5 || r <= 10 && r % 3 === 0 }),
1520
+ className: j({ "two-col": r === 2 || r === 4, "three-col": r === 5 || r <= 10 && r % 3 === 0 }),
1521
1521
  children: t.map(
1522
1522
  ({ logo: i, nameOfBusiness: o, link: c = !1, description: m = !1 }, l) => {
1523
1523
  if (!i || !i.url)
@@ -1607,7 +1607,7 @@ const Tr = [
1607
1607
  }), /* @__PURE__ */ a.jsx(
1608
1608
  _t,
1609
1609
  {
1610
- className: w("banner-section", r, s, e, {
1610
+ className: j("banner-section", r, s, e, {
1611
1611
  "has-image": n,
1612
1612
  "has-extra-spacing": s === "normal" && f.eyebrow && f.title
1613
1613
  }),
@@ -1647,7 +1647,7 @@ const Si = ({
1647
1647
  title: n,
1648
1648
  text: r,
1649
1649
  gtmContext: s
1650
- }) => !n && !r ? null : /* @__PURE__ */ a.jsxs("aside", { className: w("marketing-block", e), children: [
1650
+ }) => !n && !r ? null : /* @__PURE__ */ a.jsxs("aside", { className: j("marketing-block", e), children: [
1651
1651
  n && /* @__PURE__ */ a.jsx("p", { className: "title", children: n }),
1652
1652
  r && /* @__PURE__ */ a.jsx("p", { children: r }),
1653
1653
  t && /* @__PURE__ */ a.jsx(H, { variant: "secondary", size: "medium", href: t.link, className: "gtm-trackable", "data-gtm-event-context": s, "data-gtm-event-type": "learn-more-click", children: t.text })
@@ -1700,11 +1700,11 @@ const Mr = ({ children: e, user: t }) => t.isLoading ? null : process.env.REACT_
1700
1700
  ...n || {}
1701
1701
  };
1702
1702
  return /* @__PURE__ */ a.jsx(Ha, { locale: r, messages: s, children: e });
1703
- }, je = Gt({ isLoading: !0 });
1703
+ }, we = Gt({ isLoading: !0 });
1704
1704
  function Jt() {
1705
- return _e(je);
1705
+ return _e(we);
1706
1706
  }
1707
- const Pr = ({ children: e, user: t }) => /* @__PURE__ */ a.jsx(je.Provider, { value: t, children: e }), Mi = ({ bootstrap: e, children: t, intl: n }) => {
1707
+ const Pr = ({ children: e, user: t }) => /* @__PURE__ */ a.jsx(we.Provider, { value: t, children: e }), Mi = ({ bootstrap: e, children: t, intl: n }) => {
1708
1708
  const [r, s] = R({ isLoading: !0 });
1709
1709
  return G(() => {
1710
1710
  e().then((i) => {
@@ -1721,7 +1721,7 @@ const Pr = ({ children: e, user: t }) => /* @__PURE__ */ a.jsx(je.Provider, { va
1721
1721
  }, Ni = "200,000+";
1722
1722
  const Vn = ({ label: e = !1, className: t = "", children: n }) => {
1723
1723
  const r = A();
1724
- return /* @__PURE__ */ a.jsxs("details", { className: w("collapsible-section", t), children: [
1724
+ return /* @__PURE__ */ a.jsxs("details", { className: j("collapsible-section", t), children: [
1725
1725
  /* @__PURE__ */ a.jsx("summary", { children: e || r.formatMessage({ id: "collapsibleSection_summary" }) }),
1726
1726
  /* @__PURE__ */ a.jsx("div", { className: "content", children: n })
1727
1727
  ] });
@@ -1737,7 +1737,7 @@ const Te = ({
1737
1737
  return /* @__PURE__ */ a.jsx(
1738
1738
  "div",
1739
1739
  {
1740
- className: w("highlighted-text-box", e, n, {
1740
+ className: j("highlighted-text-box", e, n, {
1741
1741
  "has-icon": t
1742
1742
  }),
1743
1743
  style: i,
@@ -1768,7 +1768,7 @@ const bt = ({
1768
1768
  Te,
1769
1769
  {
1770
1770
  variant: "subtle",
1771
- className: w("empty-state-box", e, r),
1771
+ className: j("empty-state-box", e, r),
1772
1772
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1773
1773
  t && /* @__PURE__ */ a.jsx(pt, { options: { forceBlock: !0 }, children: t }),
1774
1774
  s && typeof n == "object" && (l || /* @__PURE__ */ a.jsx(
@@ -1786,7 +1786,7 @@ const bt = ({
1786
1786
  const Wt = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx("p", { ...t, children: e }), Yn = { q: Wt, blockquote: Wt };
1787
1787
  for (let e = 1; e <= 6; e++)
1788
1788
  Yn[`h${e}`] = { component: Wt, props: { className: "title" } };
1789
- const Ar = ({ type: e = "default", className: t = "", heading: n = !1, children: r }) => /* @__PURE__ */ a.jsxs("div", { className: w("helper-text-box text-small", e, t), children: [
1789
+ const Ar = ({ type: e = "default", className: t = "", heading: n = !1, children: r }) => /* @__PURE__ */ a.jsxs("div", { className: j("helper-text-box text-small", e, t), children: [
1790
1790
  n && /* @__PURE__ */ a.jsx("p", { className: "title", children: n }),
1791
1791
  typeof r == "string" ? /* @__PURE__ */ a.jsx(
1792
1792
  pt,
@@ -1824,8 +1824,8 @@ const Pi = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
1824
1824
  if (!r)
1825
1825
  return null;
1826
1826
  const p = ["opening", "open"].includes(l);
1827
- return /* @__PURE__ */ a.jsxs(Te, { variant: "subtle", className: w("hide-show-text-box", e), children: [
1828
- /* @__PURE__ */ a.jsxs("div", { ref: o, className: w("content", l), children: [
1827
+ return /* @__PURE__ */ a.jsxs(Te, { variant: "subtle", className: j("hide-show-text-box", e), children: [
1828
+ /* @__PURE__ */ a.jsxs("div", { ref: o, className: j("content", l), children: [
1829
1829
  /* @__PURE__ */ a.jsx(pt, { options: { forceBlock: !0 }, children: l === "closed" ? c : r }),
1830
1830
  l !== "closed" && s
1831
1831
  ] }),
@@ -1835,7 +1835,7 @@ const Pi = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
1835
1835
  variant: "tertiary",
1836
1836
  icon: { icon: "navigation_arrow", position: "left", animate: !0 },
1837
1837
  styling: { muted: !0 },
1838
- className: w({ "rotate-180": p }),
1838
+ className: j({ "rotate-180": p }),
1839
1839
  onClick: () => {
1840
1840
  f(p ? "ready-to-close" : "opening");
1841
1841
  },
@@ -1916,7 +1916,7 @@ const Pi = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
1916
1916
  }
1917
1917
  return s ? (n = { ...n, className: "button primary medium" }, /* @__PURE__ */ a.jsx("p", { className: "center", children: /* @__PURE__ */ a.jsx(H, { variant: "primary", size: "medium", ...n, children: r }) })) : /* @__PURE__ */ a.jsx("a", { ...n, children: r });
1918
1918
  }, Zr = ({ children: e }) => /* @__PURE__ */ a.jsx("span", { children: e });
1919
- const jn = ({ className: e = "", options: t = {}, children: n }) => {
1919
+ const wn = ({ className: e = "", options: t = {}, children: n }) => {
1920
1920
  n = n.replace(/^<br\/?>/, "");
1921
1921
  const r = {
1922
1922
  wrapper: F.Fragment,
@@ -1936,7 +1936,7 @@ const jn = ({ className: e = "", options: t = {}, children: n }) => {
1936
1936
  iframe: Or
1937
1937
  }
1938
1938
  };
1939
- return /* @__PURE__ */ a.jsx("div", { className: w("markdown-text", e), children: /* @__PURE__ */ a.jsx(pt, { options: { ...r, ...t }, children: n }) });
1939
+ return /* @__PURE__ */ a.jsx("div", { className: j("markdown-text", e), children: /* @__PURE__ */ a.jsx(pt, { options: { ...r, ...t }, children: n }) });
1940
1940
  };
1941
1941
  const qr = ({
1942
1942
  maxWidth: e = !1,
@@ -1946,8 +1946,8 @@ const qr = ({
1946
1946
  className: s = ""
1947
1947
  }) => {
1948
1948
  const i = e ? { "--max-width": `${e / 16}rem` } : {};
1949
- return /* @__PURE__ */ a.jsxs("section", { className: w("page-heading", s), children: [
1950
- /* @__PURE__ */ a.jsxs("div", { className: w("content", { "has-max-width": e }), style: i, children: [
1949
+ return /* @__PURE__ */ a.jsxs("section", { className: j("page-heading", s), children: [
1950
+ /* @__PURE__ */ a.jsxs("div", { className: j("content", { "has-max-width": e }), style: i, children: [
1951
1951
  t && t.text && F.createElement(t.element || "h1", { className: "title" }, t.text),
1952
1952
  n && n.text && F.createElement(
1953
1953
  n.element || "h2",
@@ -1964,11 +1964,11 @@ const st = ({
1964
1964
  className: n = "",
1965
1965
  children: r,
1966
1966
  ...s
1967
- }) => /* @__PURE__ */ a.jsx("span", { className: w("pill", e, t, n), ...s, children: r });
1968
- const Vt = ({ element: e = "p", children: t = null, className: n = "", ...r }) => F.createElement(e, { ...r, className: w("status-banner text-small", n), "aria-live": "assertive" }, t);
1967
+ }) => /* @__PURE__ */ a.jsx("span", { className: j("pill", e, t, n), ...s, children: r });
1968
+ const Vt = ({ element: e = "p", children: t = null, className: n = "", ...r }) => F.createElement(e, { ...r, className: j("status-banner text-small", n), "aria-live": "assertive" }, t);
1969
1969
  const Hr = ({ progress: e = 0, text: t = !1, className: n = "" }) => {
1970
1970
  const r = A(), s = e > 75 ? 100 : e > 50 ? 75 : e > 25 ? 50 : e > 5 ? 25 : 0, i = { "--progress": `${e}%` };
1971
- return /* @__PURE__ */ a.jsx("span", { className: w(`progress-bar section-${s}`, n), style: i, children: /* @__PURE__ */ a.jsx(ie, { children: t ? `${e} ${t}` : r.formatMessage({ id: "progressBar" }, { number: e }) }) });
1971
+ return /* @__PURE__ */ a.jsx("span", { className: j(`progress-bar section-${s}`, n), style: i, children: /* @__PURE__ */ a.jsx(ie, { children: t ? `${e} ${t}` : r.formatMessage({ id: "progressBar" }, { number: e }) }) });
1972
1972
  }, Ur = Fe(Hr);
1973
1973
  const Mt = "loadingBlock_", zr = ({ progress: e = 0, steps: t = !1, className: n = "" }) => {
1974
1974
  const r = A();
@@ -1985,7 +1985,7 @@ const Mt = "loadingBlock_", zr = ({ progress: e = 0, steps: t = !1, className: n
1985
1985
  return /* @__PURE__ */ a.jsxs(
1986
1986
  Te,
1987
1987
  {
1988
- className: w("loading-block", n, { "has-icon": s && t[s].icon }),
1988
+ className: j("loading-block", n, { "has-icon": s && t[s].icon }),
1989
1989
  variant: "subtle",
1990
1990
  style: o,
1991
1991
  children: [
@@ -1995,7 +1995,7 @@ const Mt = "loadingBlock_", zr = ({ progress: e = 0, steps: t = !1, className: n
1995
1995
  }
1996
1996
  );
1997
1997
  }, Ai = Fe(zr);
1998
- const be = ({ element: e = "div", className: t = "", ...n }) => /* @__PURE__ */ a.jsx(Bn, { element: e, className: w("loading-placeholder", t), ...n });
1998
+ const be = ({ element: e = "div", className: t = "", ...n }) => /* @__PURE__ */ a.jsx(Bn, { element: e, className: j("loading-placeholder", t), ...n });
1999
1999
  const Yt = {
2000
2000
  header: ["logo", "link", "link", "search"],
2001
2001
  sidebar: ["text", "text", "text", "text", "text"],
@@ -2013,7 +2013,7 @@ const Yt = {
2013
2013
  "cards-section",
2014
2014
  "footer"
2015
2015
  ]
2016
- }, Gn = (e, t) => e in Yt ? /* @__PURE__ */ a.jsx("div", { className: e, children: Yt[e].map((n, r) => Gn(n, r)) }, t) : /* @__PURE__ */ a.jsx(be, { className: e }, t), Kn = ({ layout: e = "overview-page", ...t }) => /* @__PURE__ */ a.jsx("div", { className: w("loading-state", e), ...t, children: Yt[e].map((n, r) => Gn(n, r)) }), Qn = (e) => {
2016
+ }, Gn = (e, t) => e in Yt ? /* @__PURE__ */ a.jsx("div", { className: e, children: Yt[e].map((n, r) => Gn(n, r)) }, t) : /* @__PURE__ */ a.jsx(be, { className: e }, t), Kn = ({ layout: e = "overview-page", ...t }) => /* @__PURE__ */ a.jsx("div", { className: j("loading-state", e), ...t, children: Yt[e].map((n, r) => Gn(n, r)) }), Qn = (e) => {
2017
2017
  const t = e && e.toUpperCase().split(" ");
2018
2018
  return Array.isArray(t) && t.length > 1 && t[0] !== "" ? t[1] === "" ? t[0][0] : t[0][0] + t[t.length - 1][0] : e ? e.substr(0, 1) : "";
2019
2019
  }, Ge = ["#5AB6A3", "#A2D7AF", "#806056", "#3962B3"], Wr = (e) => {
@@ -2025,13 +2025,13 @@ const Yt = {
2025
2025
  if (r <= t * (s + 1))
2026
2026
  return Ge[s];
2027
2027
  };
2028
- const wn = 256, ze = ({
2028
+ const jn = 256, ze = ({
2029
2029
  className: e = "",
2030
2030
  src: t = "",
2031
2031
  name: n,
2032
2032
  alt: r,
2033
- width: s = wn,
2034
- height: i = wn,
2033
+ width: s = jn,
2034
+ height: i = jn,
2035
2035
  ...o
2036
2036
  }) => {
2037
2037
  const [c, m] = R(!1), l = ae(null);
@@ -2049,7 +2049,7 @@ const wn = 256, ze = ({
2049
2049
  return t && t !== "" && !c && (t.includes("http") || t.includes("//")) && (f = !0), /* @__PURE__ */ a.jsx(
2050
2050
  "figure",
2051
2051
  {
2052
- className: w("profile-picture", e, { error: c }),
2052
+ className: j("profile-picture", e, { error: c }),
2053
2053
  ...o,
2054
2054
  children: f ? /* @__PURE__ */ a.jsx(
2055
2055
  "img",
@@ -2101,7 +2101,7 @@ const Xt = ({
2101
2101
  c.name || (c.name = o.formatMessage({ id: `member_${typeof t == "string" ? t : "community"}` }));
2102
2102
  const { name: m, url: l, image: f } = c, d = Vr(c), p = n && n.createdAt ? zt(n.createdAt) : !1, h = n && n.createdAt ? Un(n.createdAt) : "";
2103
2103
  return F.createElement(e, {
2104
- className: w("member text-medium", i),
2104
+ className: j("member text-medium", i),
2105
2105
  children: /* @__PURE__ */ a.jsxs(
2106
2106
  gt,
2107
2107
  {
@@ -2145,7 +2145,7 @@ const Tn = {
2145
2145
  const f = A();
2146
2146
  return !n || n.length === 0 ? null : F.createElement(e, {
2147
2147
  ...l,
2148
- className: w("contributors", m, s, { "has-gap": i }),
2148
+ className: j("contributors", m, s, { "has-gap": i }),
2149
2149
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2150
2150
  /* @__PURE__ */ a.jsx("ul", { children: n.map((d, p) => {
2151
2151
  let h, g = "";
@@ -2167,7 +2167,7 @@ const Tn = {
2167
2167
  h = /* @__PURE__ */ a.jsxs(
2168
2168
  "small",
2169
2169
  {
2170
- className: w({ "large-number": y > 99 }),
2170
+ className: j({ "large-number": y > 99 }),
2171
2171
  children: [
2172
2172
  "+",
2173
2173
  _r(y, 0)
@@ -2175,7 +2175,7 @@ const Tn = {
2175
2175
  }
2176
2176
  ), g = "number-left";
2177
2177
  }
2178
- return h ? /* @__PURE__ */ a.jsx("li", { className: w("contributor", g), children: h }, p) : null;
2178
+ return h ? /* @__PURE__ */ a.jsx("li", { className: j("contributor", g), children: h }, p) : null;
2179
2179
  }) }),
2180
2180
  r && /* @__PURE__ */ a.jsx("span", { className: "label", children: typeof r == "string" ? r : n.length === 1 ? typeof n[0] == "string" ? f.formatMessage({ id: `member_${n[0]}` }) : Ne(n[0].name || "", 20) : null })
2181
2181
  ] })
@@ -2385,7 +2385,7 @@ const Qr = {
2385
2385
  gtmContext: s = "Carousel",
2386
2386
  className: i = ""
2387
2387
  }) => {
2388
- const o = A(), c = _e(je), m = c && typeof c.id == "string", [l, f] = R({
2388
+ const o = A(), c = _e(we), m = c && typeof c.id == "string", [l, f] = R({
2389
2389
  data: null,
2390
2390
  isLoading: !0
2391
2391
  }), { data: d, isLoading: p } = l, h = Rn(() => {
@@ -2412,10 +2412,10 @@ const Qr = {
2412
2412
  className: k,
2413
2413
  length: b,
2414
2414
  gtmEvent: _
2415
- } = it[g], v = zn(`card_label_${g}`) ? o.formatMessage({ id: `card_label_${g}` }) : !1, j = d.slug ? `${y}${d.slug}` : !1, S = { ...Qr, ...b };
2415
+ } = it[g], v = zn(`card_label_${g}`) ? o.formatMessage({ id: `card_label_${g}` }) : !1, w = d.slug ? `${y}${d.slug}` : !1, S = { ...Qr, ...b };
2416
2416
  let M = { className: "card" };
2417
- j && (M = {
2418
- href: j,
2417
+ w && (M = {
2418
+ href: w,
2419
2419
  className: "card gtm-trackable",
2420
2420
  "data-gtm-event-context": `${s}-CarouselCard`,
2421
2421
  "data-gtm-event-type": `${_}-click`,
@@ -2425,19 +2425,19 @@ const Qr = {
2425
2425
  return /* @__PURE__ */ a.jsx(
2426
2426
  "li",
2427
2427
  {
2428
- className: w("card-wrapper text-medium", k, i, {
2429
- "has-link": j,
2430
- "no-link": !j,
2428
+ className: j("card-wrapper text-medium", k, i, {
2429
+ "has-link": w,
2430
+ "no-link": !w,
2431
2431
  "has-custom-icon": d.customIcon,
2432
2432
  "has-image": d.banner
2433
2433
  }),
2434
2434
  style: D,
2435
2435
  "data-testid": `${g}-card`,
2436
2436
  children: F.createElement(
2437
- j ? "a" : "div",
2437
+ w ? "a" : "div",
2438
2438
  M,
2439
2439
  /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2440
- (d.customLabel || v) && /* @__PURE__ */ a.jsx("small", { className: w("card-label text-small", k), children: d.customLabel || v }),
2440
+ (d.customLabel || v) && /* @__PURE__ */ a.jsx("small", { className: j("card-label text-small", k), children: d.customLabel || v }),
2441
2441
  d.startDate && !d.isOngoingEvent && /* @__PURE__ */ a.jsx(
2442
2442
  st,
2443
2443
  {
@@ -2480,13 +2480,13 @@ const Qr = {
2480
2480
  return /* @__PURE__ */ a.jsx("p", { className: C, "data-testid": C, children: Ne($, S[I]) }, I);
2481
2481
  }),
2482
2482
  /* @__PURE__ */ a.jsx(Yr, { type: k || "", data: d }),
2483
- /* @__PURE__ */ a.jsx(Gr, { data: d, cta: r, link: j || "", gtmContext: s })
2483
+ /* @__PURE__ */ a.jsx(Gr, { data: d, cta: r, link: w || "", gtmContext: s })
2484
2484
  ] })
2485
2485
  )
2486
2486
  }
2487
2487
  );
2488
2488
  };
2489
- const Jr = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__ */ a.jsx("ul", { className: w("card-block", n), children: e.map((s, i) => {
2489
+ const Jr = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__ */ a.jsx("ul", { className: j("card-block", n), children: e.map((s, i) => {
2490
2490
  const o = s.slug ? `${s.slug}-${t[i]}` : `${t[i]}-${i}`;
2491
2491
  return /* @__PURE__ */ a.jsx(
2492
2492
  ea,
@@ -2506,7 +2506,7 @@ const Jr = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__
2506
2506
  return null;
2507
2507
  const { text: r, element: s = "h2", variant: i = "default", size: o = "medium", link: c } = t;
2508
2508
  return F.createElement(s, {
2509
- className: w("title", i, o, {
2509
+ className: j("title", i, o, {
2510
2510
  "highlighted-title": i === "highlighted"
2511
2511
  }),
2512
2512
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
@@ -2555,7 +2555,7 @@ const ts = ({
2555
2555
  isLoading: !1
2556
2556
  }));
2557
2557
  }, [v, k]);
2558
- const j = ($ = "next") => {
2558
+ const w = ($ = "next") => {
2559
2559
  let C = g;
2560
2560
  if (typeof $ == "string")
2561
2561
  if ($ === "next")
@@ -2580,7 +2580,7 @@ const ts = ({
2580
2580
  if (Ke === null)
2581
2581
  return;
2582
2582
  const C = $.touches[0].clientX, E = Ke - C;
2583
- E > 5 ? j("next") : E < -5 && j("previous"), Ke = null;
2583
+ E > 5 ? w("next") : E < -5 && w("previous"), Ke = null;
2584
2584
  }, D = {
2585
2585
  "--width": `${((I = _ == null ? void 0 : _.current) == null ? void 0 : I.offsetWidth) || 0}px`,
2586
2586
  "--total-cards": k,
@@ -2591,7 +2591,7 @@ const ts = ({
2591
2591
  "section",
2592
2592
  {
2593
2593
  ref: _,
2594
- className: w("carousel-wrapper", i),
2594
+ className: j("carousel-wrapper", i),
2595
2595
  "data-testid": "carousel",
2596
2596
  children: [
2597
2597
  /* @__PURE__ */ a.jsx(es, { id: e, title: s }),
@@ -2634,7 +2634,7 @@ const ts = ({
2634
2634
  size: "large",
2635
2635
  icon: { icon: "chevron_left" },
2636
2636
  onClick: ($) => {
2637
- $.preventDefault(), $.stopPropagation(), j("previous");
2637
+ $.preventDefault(), $.stopPropagation(), w("previous");
2638
2638
  },
2639
2639
  screenreaderText: c.formatMessage({
2640
2640
  id: "carousel_pagination_previous"
@@ -2645,11 +2645,11 @@ const ts = ({
2645
2645
  [...Array(b)].map(($, C) => /* @__PURE__ */ a.jsx("li", { "data-testid": "carousel-controls-button", children: /* @__PURE__ */ a.jsx(
2646
2646
  "button",
2647
2647
  {
2648
- className: w("page-indicator", {
2648
+ className: j("page-indicator", {
2649
2649
  selected: C === g
2650
2650
  }),
2651
2651
  onClick: (E) => {
2652
- E.preventDefault(), E.stopPropagation(), j(C);
2652
+ E.preventDefault(), E.stopPropagation(), w(C);
2653
2653
  },
2654
2654
  children: /* @__PURE__ */ a.jsx(ie, { showOnFocus: !1, children: c.formatMessage(
2655
2655
  { id: "carousel_pagination_page" },
@@ -2664,7 +2664,7 @@ const ts = ({
2664
2664
  size: "large",
2665
2665
  icon: { icon: "chevron_right" },
2666
2666
  onClick: ($) => {
2667
- $.preventDefault(), $.stopPropagation(), j("next");
2667
+ $.preventDefault(), $.stopPropagation(), w("next");
2668
2668
  },
2669
2669
  screenreaderText: c.formatMessage({ id: "carousel_pagination_next" }),
2670
2670
  disabled: g >= b - 1
@@ -2709,7 +2709,7 @@ const ts = ({
2709
2709
  const Pt = "joinCommunityButton", ta = ({ isMember: e = !1, isShort: t = !1, functions: { join: n, leave: r } = { join: () => {
2710
2710
  }, leave: () => {
2711
2711
  } } }) => {
2712
- const s = A(), i = _e(je), o = i && typeof i.id == "string", [c, m] = R(e), [l, f] = R(e ? "joined" : "notJoined");
2712
+ const s = A(), i = _e(we), o = i && typeof i.id == "string", [c, m] = R(e), [l, f] = R(e ? "joined" : "notJoined");
2713
2713
  G(() => {
2714
2714
  l === "joining" ? f("joined") : l === "leaving" && f("notJoined");
2715
2715
  }, [c]);
@@ -2724,7 +2724,7 @@ const Pt = "joinCommunityButton", ta = ({ isMember: e = !1, isShort: t = !1, fun
2724
2724
  onClick: async (h) => {
2725
2725
  o && (h.currentTarget.blur(), c ? (f("leaving"), typeof r == "function" && await r()) : (f("joining"), typeof n == "function" && await n()), m(!c));
2726
2726
  },
2727
- className: w("join-community-button", l, { active: l === "joining" }),
2727
+ className: j("join-community-button", l, { active: l === "joining" }),
2728
2728
  disabled: !o,
2729
2729
  ...d,
2730
2730
  children: /* @__PURE__ */ a.jsx("span", { className: "text", ...p, children: s.formatMessage({ id: `${Pt}${["joining", "leaving"].includes(l) ? `_${l}` : c ? "_member" : t ? "_short" : ""}` }) })
@@ -2739,7 +2739,7 @@ const At = "communityDetails_", Di = ({
2739
2739
  functions: { invite: i, ...o }
2740
2740
  }) => {
2741
2741
  const c = A(), m = 5, l = r || s.length, f = s.length ? s : Array(m).fill({}), d = `/communities/${n}/members` === window.location.pathname;
2742
- return /* @__PURE__ */ a.jsxs("div", { className: w("community-details", e), children: [
2742
+ return /* @__PURE__ */ a.jsxs("div", { className: j("community-details", e), children: [
2743
2743
  /* @__PURE__ */ a.jsx($e, {}),
2744
2744
  /* @__PURE__ */ a.jsxs("div", { className: "member-details", children: [
2745
2745
  /* @__PURE__ */ a.jsxs("div", { className: "top", children: [
@@ -2786,7 +2786,7 @@ const Ri = ({
2786
2786
  const r = A();
2787
2787
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2788
2788
  /* @__PURE__ */ a.jsx(ie, { element: "p", children: r.formatMessage({ id: "breadcrumbs_label" }) }),
2789
- /* @__PURE__ */ a.jsx("ul", { className: w("breadcrumbs text-small", n), children: e.map(({ text: s, href: i, current: o = !1 }, c) => /* @__PURE__ */ a.jsxs("li", { children: [
2789
+ /* @__PURE__ */ a.jsx("ul", { className: j("breadcrumbs text-small", n), children: e.map(({ text: s, href: i, current: o = !1 }, c) => /* @__PURE__ */ a.jsxs("li", { children: [
2790
2790
  o && /* @__PURE__ */ a.jsx(ie, { element: "span", children: r.formatMessage({ id: "breadcrumbs_currentPage" }) }),
2791
2791
  /* @__PURE__ */ a.jsx(gt, { href: o ? void 0 : i, children: Ne(s, t) })
2792
2792
  ] }, `${window.btoa(s)}_${c}`)) })
@@ -2804,13 +2804,13 @@ const Li = ({
2804
2804
  let p = [];
2805
2805
  c.includes(f) ? p = c.filter((h) => h !== f) : f === "all" ? p = ["all"] : n ? p = [...c.filter((h) => h !== "all"), f] : p = [f], m((h) => (r && typeof r == "function" && r({ current: p, previous: h }), p)), d && typeof d == "function" && d();
2806
2806
  };
2807
- return /* @__PURE__ */ a.jsx("ul", { className: w("filters", s), children: o.map(({ id: f, text: d, disabled: p = !1, callback: h = () => {
2807
+ return /* @__PURE__ */ a.jsx("ul", { className: j("filters", s), children: o.map(({ id: f, text: d, disabled: p = !1, callback: h = () => {
2808
2808
  } }) => {
2809
2809
  let g = {};
2810
2810
  return p && (g = { disabled: !0, "aria-label": i.formatMessage({ id: "filters_disabled" }, { name: d }) }), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
2811
2811
  "button",
2812
2812
  {
2813
- className: w(f, { selected: c.includes(f) }),
2813
+ className: j(f, { selected: c.includes(f) }),
2814
2814
  onClick: (y) => {
2815
2815
  y.preventDefault(), y.stopPropagation(), l(f, h);
2816
2816
  },
@@ -2846,7 +2846,7 @@ const Ft = { en: "English", es: "Español", fr: "Français", pt: "Português" },
2846
2846
  }, [e]), !r || !Object.values(r).some((y) => y && y.post_name))
2847
2847
  return null;
2848
2848
  const h = Object.keys(r), g = f !== e;
2849
- return /* @__PURE__ */ a.jsxs("div", { className: w("language-switcher text-small", o, m), children: [
2849
+ return /* @__PURE__ */ a.jsxs("div", { className: j("language-switcher text-small", o, m), children: [
2850
2850
  /* @__PURE__ */ a.jsxs("nav", { children: [
2851
2851
  o !== "short" && /* @__PURE__ */ a.jsx("p", { children: c || l.formatMessage({ id: `${Qe}label` }) }),
2852
2852
  /* @__PURE__ */ a.jsx("ul", { children: h.map((y) => {
@@ -2897,7 +2897,7 @@ const Dt = Ua({ locale: "en", messages: Qt }), yt = ({
2897
2897
  f instanceof Error ? c(f.message) : c("Unknown error");
2898
2898
  }
2899
2899
  };
2900
- return /* @__PURE__ */ a.jsx("footer", { className: w("load-more", s), children: !o && e ? /* @__PURE__ */ a.jsx(
2900
+ return /* @__PURE__ */ a.jsx("footer", { className: j("load-more", s), children: !o && e ? /* @__PURE__ */ a.jsx(
2901
2901
  H,
2902
2902
  {
2903
2903
  variant: "secondary",
@@ -2911,7 +2911,7 @@ const Dt = Ua({ locale: "en", messages: Qt }), yt = ({
2911
2911
  }
2912
2912
  ) : r.endOfFeed && (!o || o != null && o.includes("Cannot read items")) ? /* @__PURE__ */ a.jsx("p", { children: r.endOfFeed }) : o && /* @__PURE__ */ a.jsx("p", { className: "error", children: r.error }) });
2913
2913
  };
2914
- const na = ({ variant: e = "default", version: t = "default", className: n = "", ...r }) => /* @__PURE__ */ a.jsx("p", { className: "logo-wrapper", children: /* @__PURE__ */ a.jsx("a", { href: "/home/", className: w("logo", e, t, n), ...r, children: /* @__PURE__ */ a.jsx(ie, { children: /* @__PURE__ */ a.jsx(we, { id: "apolitical" }) }) }) });
2914
+ const na = ({ variant: e = "default", version: t = "default", className: n = "", ...r }) => /* @__PURE__ */ a.jsx("p", { className: "logo-wrapper", children: /* @__PURE__ */ a.jsx("a", { href: "/home/", className: j("logo", e, t, n), ...r, children: /* @__PURE__ */ a.jsx(ie, { children: /* @__PURE__ */ a.jsx(je, { id: "apolitical" }) }) }) });
2915
2915
  let Je = !1;
2916
2916
  const as = ({ element: e = "div", id: t = "more-menu", options: n, className: r = "" }) => {
2917
2917
  const s = A(), i = ae(null), [o, c] = R(!1), m = (l) => {
@@ -2921,7 +2921,7 @@ const as = ({ element: e = "div", id: t = "more-menu", options: n, className: r
2921
2921
  document.removeEventListener("click", m, !0);
2922
2922
  })), F.createElement(e, {
2923
2923
  ref: i,
2924
- className: w("more-menu text-medium", r),
2924
+ className: j("more-menu text-medium", r),
2925
2925
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2926
2926
  /* @__PURE__ */ a.jsx(
2927
2927
  H,
@@ -2983,12 +2983,12 @@ const ss = [
2983
2983
  href: "/solution-articles/"
2984
2984
  }
2985
2985
  ], is = ({ activeLink: e }) => {
2986
- const t = A(), n = _e(je), r = n && typeof n.id == "string";
2986
+ const t = A(), n = _e(we), r = n && typeof n.id == "string";
2987
2987
  return /* @__PURE__ */ a.jsxs("ul", { id: "navigation-menu", className: "text-medium", children: [
2988
2988
  ss.map(({ key: s, href: i }) => /* @__PURE__ */ a.jsx(
2989
2989
  "li",
2990
2990
  {
2991
- className: w(s, { active: rs(i, e) }),
2991
+ className: j(s, { active: rs(i, e) }),
2992
2992
  children: /* @__PURE__ */ a.jsx(
2993
2993
  "a",
2994
2994
  {
@@ -3075,7 +3075,7 @@ const cs = "shareLinks_", Oi = ({
3075
3075
  className: o = ""
3076
3076
  }) => {
3077
3077
  const c = A(), m = os({ title: e, link: t, referrer: n });
3078
- return /* @__PURE__ */ a.jsxs("aside", { className: w("share-links", s, i, o), children: [
3078
+ return /* @__PURE__ */ a.jsxs("aside", { className: j("share-links", s, i, o), children: [
3079
3079
  /* @__PURE__ */ a.jsx("p", { className: "text-small", children: c.formatMessage({ id: "shareLinks_label" }) }),
3080
3080
  /* @__PURE__ */ a.jsx("ul", { children: m.map(({ key: l, icon: f, url: d, shouldRender: p = !0, onClick: h }) => {
3081
3081
  if (typeof p == "function" && !p())
@@ -3142,7 +3142,7 @@ const Bi = ({ tabs: e, className: t = "" }) => {
3142
3142
  {
3143
3143
  href: p || `#${l}`,
3144
3144
  id: `tab-${l}`,
3145
- className: w({ selected: g }),
3145
+ className: j({ selected: g }),
3146
3146
  role: "tab",
3147
3147
  "aria-selected": g,
3148
3148
  ...y,
@@ -3150,7 +3150,7 @@ const Bi = ({ tabs: e, className: t = "" }) => {
3150
3150
  }
3151
3151
  ) }, `tab-${l}`)
3152
3152
  );
3153
- }), /* @__PURE__ */ a.jsxs("div", { className: w("tabs-wrapper", t), children: [
3153
+ }), /* @__PURE__ */ a.jsxs("div", { className: j("tabs-wrapper", t), children: [
3154
3154
  /* @__PURE__ */ a.jsx("ul", { className: "tabs", role: "tablist", children: o }),
3155
3155
  /* @__PURE__ */ a.jsx("div", { className: "tab-content", children: c })
3156
3156
  ] });
@@ -3166,7 +3166,7 @@ const ls = {
3166
3166
  }) => {
3167
3167
  const s = Ue(!0);
3168
3168
  let i = r;
3169
- return F.Children.count(r) === 1 && (i = F.Children.toArray(r)[0], i.props && (i = i.props.children)), /* @__PURE__ */ a.jsx("section", { className: w("columns", `layout-${e}`, n), children: F.Children.map(i, (o, c) => t !== !1 && c === t && s && s < ls[e] ? null : o) });
3169
+ return F.Children.count(r) === 1 && (i = F.Children.toArray(r)[0], i.props && (i = i.props.children)), /* @__PURE__ */ a.jsx("section", { className: j("columns", `layout-${e}`, n), children: F.Children.map(i, (o, c) => t !== !1 && c === t && s && s < ls[e] ? null : o) });
3170
3170
  }, Zi = ({ activeLink: e, ...t }) => /* @__PURE__ */ a.jsx(_t, { children: /* @__PURE__ */ a.jsx(ds, { layout: "1-3", children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3171
3171
  /* @__PURE__ */ a.jsx(is, { activeLink: e }),
3172
3172
  /* @__PURE__ */ a.jsx(qr, { ...t })
@@ -3314,7 +3314,7 @@ const Me = "footer_", ot = "SiteFooter", En = ({ group: e }) => {
3314
3314
  const t = ke[e].order || [];
3315
3315
  let n = !1;
3316
3316
  return "text" in ke[e] && (n = ke[e].text), /* @__PURE__ */ a.jsxs(qe, { children: [
3317
- /* @__PURE__ */ a.jsx("p", { className: "pre-title", children: /* @__PURE__ */ a.jsx(we, { id: `${Me}${e}` }) }),
3317
+ /* @__PURE__ */ a.jsx("p", { className: "pre-title", children: /* @__PURE__ */ a.jsx(je, { id: `${Me}${e}` }) }),
3318
3318
  Array.isArray(t) && t.length > 0 && /* @__PURE__ */ a.jsx("ul", { className: "text-medium", children: t.map((r) => {
3319
3319
  if (["order", "child", "text"].includes(r))
3320
3320
  return null;
@@ -3327,14 +3327,14 @@ const Me = "footer_", ot = "SiteFooter", En = ({ group: e }) => {
3327
3327
  "data-gtm-event-context": ot,
3328
3328
  "data-gtm-event-type": i,
3329
3329
  ...o,
3330
- children: /* @__PURE__ */ a.jsx(we, { id: `${Me}${e}_${r}` })
3330
+ children: /* @__PURE__ */ a.jsx(je, { id: `${Me}${e}_${r}` })
3331
3331
  }
3332
3332
  ) }, `${e}_${r}`);
3333
3333
  }) }),
3334
3334
  typeof n != "boolean" && "order" in n && Array.isArray(n.order) && /* @__PURE__ */ a.jsx("dl", { className: "text-medium", children: n.order.map((r) => /* @__PURE__ */ a.jsxs(qe, { children: [
3335
- /* @__PURE__ */ a.jsx("dt", { children: /* @__PURE__ */ a.jsx(we, { id: `${Me}${e}_${r}` }) }),
3335
+ /* @__PURE__ */ a.jsx("dt", { children: /* @__PURE__ */ a.jsx(je, { id: `${Me}${e}_${r}` }) }),
3336
3336
  /* @__PURE__ */ a.jsxs("dd", { children: [
3337
- typeof n != "boolean" && n[r].address && /* @__PURE__ */ a.jsx("address", { children: /* @__PURE__ */ a.jsx(we, { id: `${Me}${e}_${r}_address`, values: { br: /* @__PURE__ */ a.jsx("br", {}) } }) }),
3337
+ typeof n != "boolean" && n[r].address && /* @__PURE__ */ a.jsx("address", { children: /* @__PURE__ */ a.jsx(je, { id: `${Me}${e}_${r}_address`, values: { br: /* @__PURE__ */ a.jsx("br", {}) } }) }),
3338
3338
  typeof n != "boolean" && n[r].email && /* @__PURE__ */ a.jsx(
3339
3339
  "a",
3340
3340
  {
@@ -3377,11 +3377,11 @@ const Me = "footer_", ot = "SiteFooter", En = ({ group: e }) => {
3377
3377
  className: "gtm-trackable",
3378
3378
  "data-gtm-event-context": ot,
3379
3379
  "data-gtm-event-type": "social-click",
3380
- children: /* @__PURE__ */ a.jsx("span", { className: "hidden", children: /* @__PURE__ */ a.jsx(we, { id: `${Me}social_${e}` }) })
3380
+ children: /* @__PURE__ */ a.jsx("span", { className: "hidden", children: /* @__PURE__ */ a.jsx(je, { id: `${Me}social_${e}` }) })
3381
3381
  }
3382
3382
  ) }, e);
3383
3383
  }) }),
3384
- /* @__PURE__ */ a.jsx("small", { children: /* @__PURE__ */ a.jsx(we, { id: `${Me}copyright`, values: { currentYear: (/* @__PURE__ */ new Date()).getFullYear() } }) })
3384
+ /* @__PURE__ */ a.jsx("small", { children: /* @__PURE__ */ a.jsx(je, { id: `${Me}copyright`, values: { currentYear: (/* @__PURE__ */ new Date()).getFullYear() } }) })
3385
3385
  ] })
3386
3386
  ] }) });
3387
3387
  const Xe = "emailHelperTextBox_", qi = ({ type: e, email: t, redirectPath: n, resendVerificationCode: r }) => {
@@ -3512,9 +3512,9 @@ const et = "passwordRules_", ra = "isMoreThanEightCharacters", sa = "includesNum
3512
3512
  [ia]: "lowercaseUppercase"
3513
3513
  }, fs = ({ matchingRules: e = { isMoreThanEightCharacters: !1, includesNumberAndSymbol: !1, includesLowerAndUppercase: !1 }, className: t = "" }) => {
3514
3514
  const n = A();
3515
- return /* @__PURE__ */ a.jsxs("aside", { className: w("password-rules", t), children: [
3515
+ return /* @__PURE__ */ a.jsxs("aside", { className: j("password-rules", t), children: [
3516
3516
  /* @__PURE__ */ a.jsx("small", { children: n.formatMessage({ id: `${et}intro` }) }),
3517
- /* @__PURE__ */ a.jsx("ul", { children: [ra, sa, ia].map((r) => /* @__PURE__ */ a.jsxs("li", { className: w({ matches: e[r] }), children: [
3517
+ /* @__PURE__ */ a.jsx("ul", { children: [ra, sa, ia].map((r) => /* @__PURE__ */ a.jsxs("li", { className: j({ matches: e[r] }), children: [
3518
3518
  /* @__PURE__ */ a.jsxs(ie, { children: [
3519
3519
  n.formatMessage({ id: `${et}rule_label` }),
3520
3520
  " "
@@ -3565,11 +3565,11 @@ const Ui = ({
3565
3565
  l((_) => ({ ..._, disabled: !1 }));
3566
3566
  }
3567
3567
  };
3568
- return /* @__PURE__ */ a.jsxs("div", { className: w("rating", i), children: [
3568
+ return /* @__PURE__ */ a.jsxs("div", { className: j("rating", i), children: [
3569
3569
  /* @__PURE__ */ a.jsx("span", { className: "label", children: y[p ? "success" : "text"] }),
3570
3570
  /* @__PURE__ */ a.jsx("ol", { children: Array.from(new Array(t).keys()).map((b) => {
3571
3571
  const _ = b + 1;
3572
- return /* @__PURE__ */ a.jsx("li", { className: w({ selected: p && _ <= p }), children: /* @__PURE__ */ a.jsx(
3572
+ return /* @__PURE__ */ a.jsx("li", { className: j({ selected: p && _ <= p }), children: /* @__PURE__ */ a.jsx(
3573
3573
  H,
3574
3574
  {
3575
3575
  variant: "tertiary",
@@ -3607,7 +3607,7 @@ const ps = ({
3607
3607
  "form",
3608
3608
  {
3609
3609
  onSubmit: f,
3610
- className: w("search-form gtm-trackable", t),
3610
+ className: j("search-form gtm-trackable", t),
3611
3611
  "data-gtm-event-context": s,
3612
3612
  "data-gtm-event-type": i,
3613
3613
  children: /* @__PURE__ */ a.jsx("fieldset", { id: `${e}-form`, hidden: n ? !o : !1, role: "search", children: /* @__PURE__ */ a.jsxs("p", { children: [
@@ -3654,8 +3654,8 @@ const hs = ({
3654
3654
  initialFormStatus: l = "NOT_SUBMITTED"
3655
3655
  /* NOT_SUBMITTED */
3656
3656
  }) => {
3657
- const [f, d] = R([]), [p, h] = R(!0), [g, y] = R(l), { formatMessage: k } = A(), b = async (j) => {
3658
- j.preventDefault();
3657
+ const [f, d] = R([]), [p, h] = R(!0), [g, y] = R(l), { formatMessage: k } = A(), b = async (w) => {
3658
+ w.preventDefault();
3659
3659
  try {
3660
3660
  await m(f), d([]), y(
3661
3661
  "SUCCESS"
@@ -3667,13 +3667,13 @@ const hs = ({
3667
3667
  /* ERROR */
3668
3668
  ), c(S);
3669
3669
  }
3670
- }, _ = (j) => {
3671
- j.preventDefault(), y(
3670
+ }, _ = (w) => {
3671
+ w.preventDefault(), y(
3672
3672
  "NOT_SUBMITTED"
3673
3673
  /* NOT_SUBMITTED */
3674
3674
  ), h(!0), d([]);
3675
- }, v = (j) => {
3676
- j.preventDefault(), o(), y(
3675
+ }, v = (w) => {
3676
+ w.preventDefault(), o(), y(
3677
3677
  "CLOSED"
3678
3678
  /* CLOSED */
3679
3679
  );
@@ -3693,7 +3693,7 @@ const hs = ({
3693
3693
  {
3694
3694
  style: { backgroundColor: i },
3695
3695
  onSubmit: b,
3696
- className: w("invite-form gtm-trackable"),
3696
+ className: j("invite-form gtm-trackable"),
3697
3697
  children: [
3698
3698
  /* @__PURE__ */ a.jsxs("fieldset", { className: "content", children: [
3699
3699
  /* @__PURE__ */ a.jsx("h2", { className: "title", style: { color: r }, children: e }),
@@ -3705,12 +3705,12 @@ const hs = ({
3705
3705
  inputClassName: "email-input input",
3706
3706
  placeholder: k({ id: "inviteForm_email_placeholder" }),
3707
3707
  emails: f,
3708
- onChange: (j) => {
3709
- d(j), h(!j.length);
3708
+ onChange: (w) => {
3709
+ d(w), h(!w.length);
3710
3710
  },
3711
3711
  autoFocus: !1,
3712
- getLabel: (j, S, M) => /* @__PURE__ */ a.jsxs("div", { className: "email text-medium", children: [
3713
- /* @__PURE__ */ a.jsx("div", { "data-tag-item": !0, children: j }),
3712
+ getLabel: (w, S, M) => /* @__PURE__ */ a.jsxs("div", { className: "email text-medium", children: [
3713
+ /* @__PURE__ */ a.jsx("div", { "data-tag-item": !0, children: w }),
3714
3714
  /* @__PURE__ */ a.jsx(
3715
3715
  H,
3716
3716
  {
@@ -3927,8 +3927,8 @@ const hs = ({
3927
3927
  if (c.href) {
3928
3928
  let _ = c.gtmType || `${e}-click`;
3929
3929
  if (_.includes(".")) {
3930
- const v = _.split("."), j = v[v.length - 2];
3931
- _ = `${j === "topics" ? `${j}-` : ""}${v[v.length - 1]}`;
3930
+ const v = _.split("."), w = v[v.length - 2];
3931
+ _ = `${w === "topics" ? `${w}-` : ""}${v[v.length - 1]}`;
3932
3932
  }
3933
3933
  p = {
3934
3934
  href: c.href,
@@ -3949,7 +3949,7 @@ const hs = ({
3949
3949
  let k = {}, b = {};
3950
3950
  if (h) {
3951
3951
  const _ = c.menuId || e, v = {
3952
- onClick: (j) => z.events.onClick(j, { id: _, callback: s, isOpen: r[_] }),
3952
+ onClick: (w) => z.events.onClick(w, { id: _, callback: s, isOpen: r[_] }),
3953
3953
  onFocus: () => z.events.onFocus({ id: _ }),
3954
3954
  onBlur: () => z.events.onBlur({ id: _, callback: s }),
3955
3955
  onMouseLeave: () => z.events.onBlur({ id: _, callback: s }),
@@ -3957,8 +3957,8 @@ const hs = ({
3957
3957
  };
3958
3958
  n && (g && (k = {
3959
3959
  ...v,
3960
- onKeyPress: (j) => {
3961
- j.key === "Enter" && z.events.onClick(j, { id: _, callback: s, isOpen: r[_] });
3960
+ onKeyPress: (w) => {
3961
+ w.key === "Enter" && z.events.onClick(w, { id: _, callback: s, isOpen: r[_] });
3962
3962
  },
3963
3963
  tabIndex: "0",
3964
3964
  // Add a `tabIndex` so keyboard users can focus on the `li`
@@ -3970,7 +3970,7 @@ const hs = ({
3970
3970
  ...v
3971
3971
  });
3972
3972
  }
3973
- return /* @__PURE__ */ a.jsxs("li", { className: w({ [c.className]: c.className, "has-submenu": h, parent: g, active: y }), role: "none", ...k, children: [
3973
+ return /* @__PURE__ */ a.jsxs("li", { className: j({ [c.className]: c.className, "has-submenu": h, parent: g, active: y }), role: "none", ...k, children: [
3974
3974
  p ? F.createElement(f ? H : "a", p, o.formatMessage({ id: d })) : o.formatMessage({ id: d }),
3975
3975
  c.order && /* @__PURE__ */ a.jsx("ul", { ...b, children: c.order.map((_) => {
3976
3976
  if (!c[_])
@@ -3982,15 +3982,15 @@ const hs = ({
3982
3982
  callback: s,
3983
3983
  doTrack: m ? l : null
3984
3984
  };
3985
- return c[_].order ? /* @__PURE__ */ a.jsxs("li", { className: w({ [c[_].className]: c[_].className }), children: [
3985
+ return c[_].order ? /* @__PURE__ */ a.jsxs("li", { className: j({ [c[_].className]: c[_].className }), children: [
3986
3986
  o.formatMessage({ id: `${d}_${_}` }),
3987
- /* @__PURE__ */ a.jsx("ul", { children: c[_].order.map((j) => /* @__PURE__ */ a.jsx(lt, { id: `${e}.${_}.${j}`, ...v }, j)) })
3987
+ /* @__PURE__ */ a.jsx("ul", { children: c[_].order.map((w) => /* @__PURE__ */ a.jsx(lt, { id: `${e}.${_}.${w}`, ...v }, w)) })
3988
3988
  ] }, _) : /* @__PURE__ */ a.jsx(lt, { id: `${e}.${_}`, ...v }, _);
3989
3989
  }) })
3990
3990
  ] }, e);
3991
3991
  };
3992
3992
  const gs = { height: 67, height_desktop: 83 }, oa = ({ showNavigation: e = !0 }) => {
3993
- const t = A(), n = _e(je), r = Ue(!0, !0), s = n && typeof n.id == "string", i = ft(
3993
+ const t = A(), n = _e(we), r = Ue(!0, !0), s = n && typeof n.id == "string", i = ft(
3994
3994
  () => z.getIsDesktopVersion(s, r),
3995
3995
  [s, r]
3996
3996
  ), [o, c] = Oa(vr, {
@@ -4036,7 +4036,7 @@ const gs = { height: 67, height_desktop: 83 }, oa = ({ showNavigation: e = !0 })
4036
4036
  "nav",
4037
4037
  {
4038
4038
  id: "header",
4039
- className: w({
4039
+ className: j({
4040
4040
  "logged-in": s,
4041
4041
  "logged-out": !s,
4042
4042
  visible: m
@@ -4158,7 +4158,7 @@ const gs = { height: 67, height_desktop: 83 }, oa = ({ showNavigation: e = !0 })
4158
4158
  /* @__PURE__ */ a.jsx(
4159
4159
  "div",
4160
4160
  {
4161
- className: w("overlay", {
4161
+ className: j("overlay", {
4162
4162
  open: l.navigation || l.account || !i.search && l.search
4163
4163
  })
4164
4164
  }
@@ -4168,7 +4168,7 @@ const gs = { height: 67, height_desktop: 83 }, oa = ({ showNavigation: e = !0 })
4168
4168
  const ca = ({ element: e = "section", children: t, className: n, ...r }) => F.createElement(
4169
4169
  e,
4170
4170
  {
4171
- className: w("modal", n),
4171
+ className: j("modal", n),
4172
4172
  children: typeof t == "string" ? /* @__PURE__ */ a.jsx("p", { children: t }) : t,
4173
4173
  ...r
4174
4174
  }
@@ -4195,11 +4195,11 @@ const la = ({
4195
4195
  y(t);
4196
4196
  }, [t]);
4197
4197
  const k = r ? { "--max-width": `${r / 16}rem` } : {};
4198
- return /* @__PURE__ */ a.jsx("div", { className: w("overlay", { open: h }), children: /* @__PURE__ */ a.jsx(
4198
+ return /* @__PURE__ */ a.jsx("div", { className: j("overlay", { open: h }), children: /* @__PURE__ */ a.jsx(
4199
4199
  ca,
4200
4200
  {
4201
4201
  id: e,
4202
- className: w("overlay-modal", f, { "has-max-width": r }),
4202
+ className: j("overlay-modal", f, { "has-max-width": r }),
4203
4203
  hidden: !h,
4204
4204
  style: k,
4205
4205
  children: t && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
@@ -4254,7 +4254,7 @@ const zi = ({
4254
4254
  showDivider: !1,
4255
4255
  showIcon: o,
4256
4256
  functions: { onClose: c },
4257
- className: w("invite-modal", e, { success: !!n }),
4257
+ className: j("invite-modal", e, { success: !!n }),
4258
4258
  children: /* @__PURE__ */ a.jsx(
4259
4259
  hs,
4260
4260
  {
@@ -4303,7 +4303,7 @@ const bs = () => {
4303
4303
  "div",
4304
4304
  {
4305
4305
  id: "wrapper",
4306
- className: w(o, b, { "has-footer": l }),
4306
+ className: j(o, b, { "has-footer": l }),
4307
4307
  children: [
4308
4308
  /* @__PURE__ */ a.jsx(oa, { showNavigation: m }),
4309
4309
  /* @__PURE__ */ a.jsxs("section", { id: "content-wrapper", children: [
@@ -4368,7 +4368,7 @@ const Wi = ({
4368
4368
  return;
4369
4369
  const f = vs.getTagDetails(l);
4370
4370
  f && m.push(f);
4371
- }), m.length < 1 ? null : /* @__PURE__ */ a.jsx("ul", { className: w("tags text-small", t, s, { "one-line": n }), children: m.map((l) => {
4371
+ }), m.length < 1 ? null : /* @__PURE__ */ a.jsx("ul", { className: j("tags text-small", t, s, { "one-line": n }), children: m.map((l) => {
4372
4372
  const f = c.formatMessage({ id: l.text });
4373
4373
  return /* @__PURE__ */ a.jsx("li", { children: l.href && r ? /* @__PURE__ */ a.jsx(
4374
4374
  "a",
@@ -4392,7 +4392,7 @@ const Vi = ({
4392
4392
  className: o = ""
4393
4393
  }) => {
4394
4394
  const c = A();
4395
- return e.length === 0 ? null : /* @__PURE__ */ a.jsxs("div", { className: w("members-list", o), children: [
4395
+ return e.length === 0 ? null : /* @__PURE__ */ a.jsxs("div", { className: j("members-list", o), children: [
4396
4396
  /* @__PURE__ */ a.jsxs("h1", { children: [
4397
4397
  c.formatMessage({ id: "membersList" }),
4398
4398
  /* @__PURE__ */ a.jsx("span", { className: "count", children: t })
@@ -4445,7 +4445,7 @@ const le = "discussion_form_", en = ({
4445
4445
  gtmContext: m = "DiscussionForm"
4446
4446
  }) => {
4447
4447
  var $, C, E;
4448
- const l = A(), f = _e(je), [d, p] = R(
4448
+ const l = A(), f = _e(we), [d, p] = R(
4449
4449
  n.isEditing && n.isEditing.text || ""
4450
4450
  ), [h, g] = R(o.error || !1), [y, k] = R(!1), b = ae(null);
4451
4451
  if (r || (r = b), n.isLoading)
@@ -4477,7 +4477,7 @@ const le = "discussion_form_", en = ({
4477
4477
  const Z = (($ = e.slugs) == null ? void 0 : $.reply) || ((C = e.slugs) == null ? void 0 : C.answer) || ((E = e.slugs) == null ? void 0 : E.question) || "";
4478
4478
  Z && (v = `${v}-${Z.slice(-15)}`);
4479
4479
  }
4480
- const j = async (Z) => {
4480
+ const w = async (Z) => {
4481
4481
  var U;
4482
4482
  if (Z.preventDefault(), Z.stopPropagation(), !f || !f.id || !t || M)
4483
4483
  return;
@@ -4553,7 +4553,7 @@ const le = "discussion_form_", en = ({
4553
4553
  );
4554
4554
  return;
4555
4555
  }
4556
- j(Z);
4556
+ w(Z);
4557
4557
  },
4558
4558
  className: "gtm-trackable",
4559
4559
  "data-gtm-event-context": m,
@@ -4567,7 +4567,7 @@ const le = "discussion_form_", en = ({
4567
4567
  "form",
4568
4568
  {
4569
4569
  id: v,
4570
- className: w("discussion-card discussion-form", {
4570
+ className: j("discussion-card discussion-form", {
4571
4571
  "no-styling": n.isInWrapper && n.isEditing
4572
4572
  }),
4573
4573
  "data-testid": `discussion-${e.type}-form`,
@@ -4661,7 +4661,7 @@ const le = "discussion_form_", en = ({
4661
4661
  showForm: !1
4662
4662
  });
4663
4663
  return /* @__PURE__ */ a.jsx(vt.Provider, { value: { ...t, updateConversation: n }, children: e });
4664
- }, js = ({
4664
+ }, ws = ({
4665
4665
  question: e,
4666
4666
  answer: t,
4667
4667
  reply: n
@@ -4669,7 +4669,7 @@ const le = "discussion_form_", en = ({
4669
4669
  ...e && { questionSlug: e },
4670
4670
  ...t && { answerSlug: t },
4671
4671
  ...n && { replySlug: n }
4672
- }), ws = (e, t = 10) => !e || e.length === 0 ? [] : e.slice(0, t);
4672
+ }), js = (e, t = 10) => !e || e.length === 0 ? [] : e.slice(0, t);
4673
4673
  let Ze = !1;
4674
4674
  const Bt = () => {
4675
4675
  Ze !== !1 && (clearTimeout(Ze), Ze = !1);
@@ -4689,20 +4689,20 @@ const Bt = () => {
4689
4689
  G(() => {
4690
4690
  h(s);
4691
4691
  }, [s]);
4692
- const [f, d] = R(t), [p, h] = R(s), [g, y] = R(!1), [k, b] = R(!1), _ = ft(() => ws(n, Zt), [n]), v = (S) => {
4692
+ const [f, d] = R(t), [p, h] = R(s), [g, y] = R(!1), [k, b] = R(!1), _ = ft(() => js(n, Zt), [n]), v = (S) => {
4693
4693
  if (S.preventDefault(), S.stopPropagation(), b(!1), Ze)
4694
4694
  return Bt(), !1;
4695
4695
  if (Bt(), g || !o)
4696
4696
  return !1;
4697
- Ze = setTimeout(j, 350);
4698
- }, j = async () => {
4697
+ Ze = setTimeout(w, 350);
4698
+ }, w = async () => {
4699
4699
  if (Bt(), g || !o)
4700
4700
  return !1;
4701
4701
  let S = p ? f - 1 : f + 1;
4702
4702
  S < 0 && (S = 0), y(!0), d(S), h(!p);
4703
4703
  try {
4704
4704
  if (i && i.slugs) {
4705
- const M = js(i.slugs);
4705
+ const M = ws(i.slugs);
4706
4706
  p ? await m(M) : await c(M, { contentPath: window.location.pathname });
4707
4707
  }
4708
4708
  } catch {
@@ -4714,7 +4714,7 @@ const Bt = () => {
4714
4714
  return F.createElement(
4715
4715
  e,
4716
4716
  {
4717
- className: w("likes-wrapper text-medium action-button", { "show-spinner": g, "is-liked": p, disabled: !o }),
4717
+ className: j("likes-wrapper text-medium action-button", { "show-spinner": g, "is-liked": p, disabled: !o }),
4718
4718
  onClick: v,
4719
4719
  onMouseEnter: () => {
4720
4720
  b(!0);
@@ -4735,7 +4735,7 @@ const Bt = () => {
4735
4735
  variant: "tertiary",
4736
4736
  size: "medium",
4737
4737
  icon: { icon: p ? "heart" : "heart_empty", animate: "bounce" },
4738
- className: w({ "do-animation": p && !s }),
4738
+ className: j({ "do-animation": p && !s }),
4739
4739
  screenreaderText: o ? l.formatMessage({
4740
4740
  id: `discussion_likes_${p ? "unlike" : "like"}`
4741
4741
  }, { action: l.formatMessage({ id: `discussion_action_${i.type}` }) }) : !1,
@@ -4747,8 +4747,8 @@ const Bt = () => {
4747
4747
  "data-gtm-event-type": `like-${i.type}-click`
4748
4748
  }
4749
4749
  ),
4750
- /* @__PURE__ */ a.jsx("span", { className: w("number-of-likes", { "no-likes": f === 0 }), "data-testid": "number-of-likes", children: l.formatMessage({ id: `discussion_likes${r ? "_short" : ""}` }, { number: f }) }),
4751
- n && /* @__PURE__ */ a.jsx(wr, { isOpen: k, isLoading: n.length === 0, children: n.length && /* @__PURE__ */ a.jsxs("ul", { children: [
4750
+ /* @__PURE__ */ a.jsx("span", { className: j("number-of-likes", { "no-likes": f === 0 }), "data-testid": "number-of-likes", children: l.formatMessage({ id: `discussion_likes${r ? "_short" : ""}` }, { number: f }) }),
4751
+ n && /* @__PURE__ */ a.jsx(jr, { isOpen: k, isLoading: n.length === 0, children: n.length && /* @__PURE__ */ a.jsxs("ul", { children: [
4752
4752
  _.map((S) => typeof S == "string" || !S.name ? null : /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
4753
4753
  gt,
4754
4754
  {
@@ -4798,23 +4798,23 @@ const xe = "discussion_", $s = 280, kt = ({
4798
4798
  children: y,
4799
4799
  isTruncated: k = !1
4800
4800
  }) => {
4801
- const b = A(), _ = _e(je), v = _e(vt), [j, S] = R({
4801
+ const b = A(), _ = _e(we), v = _e(vt), [w, S] = R({
4802
4802
  body: t && t.body || "",
4803
4803
  isEditing: !1,
4804
4804
  didEdit: t && t.isEdited || !1
4805
4805
  }), [M, D] = R(!1), [I, $] = R("");
4806
4806
  if (G(() => {
4807
4807
  S({
4808
- ...j,
4808
+ ...w,
4809
4809
  body: t && t.body || "",
4810
4810
  didEdit: t && t.isEdited || !1
4811
4811
  });
4812
4812
  }, [t.isEdited]), r || !t || t.type === "answer" && (!t.slugs || !t.slugs.question))
4813
4813
  return /* @__PURE__ */ a.jsx(be, { className: "discussion-card discussion-post" });
4814
- const { author: C, canLike: E, createdAt: Z, id: N, likes: U = 0, userLiked: Y, comments: ne = 0 } = t, Q = k ? Ne(j.body, $s) : j.body, J = _ && _.id && typeof C != "string" && C.id && C.id === _.id || !1, re = typeof E == "boolean" ? E : n ? !J : !1, X = async (W) => {
4814
+ const { author: C, canLike: E, createdAt: Z, id: N, likes: U = 0, userLiked: Y, comments: ne = 0 } = t, Q = k ? Ne(w.body, $s) : w.body, J = _ && _.id && typeof C != "string" && C.id && C.id === _.id || !1, re = typeof E == "boolean" ? E : n ? !J : !1, X = async (W) => {
4815
4815
  W || (W = ""), $("");
4816
4816
  try {
4817
- if (!er(W, j.body)) {
4817
+ if (!er(W, w.body)) {
4818
4818
  const ue = t.type === "question" ? { title: W } : { body: W };
4819
4819
  await m(Sn(t.slugs), ue);
4820
4820
  }
@@ -4856,7 +4856,7 @@ const xe = "discussion_", $s = 280, kt = ({
4856
4856
  return n && J && ce.push(
4857
4857
  {
4858
4858
  text: b.formatMessage({ id: `${xe}moreMenu_edit` }),
4859
- onClick: () => S({ ...j, isEditing: !0 }),
4859
+ onClick: () => S({ ...w, isEditing: !0 }),
4860
4860
  icon: "pencil-paper",
4861
4861
  className: "gtm-trackable",
4862
4862
  "data-gtm-event-context": g,
@@ -4874,32 +4874,32 @@ const xe = "discussion_", $s = 280, kt = ({
4874
4874
  ..._s(`delete-${t.slug}-modal`, M)
4875
4875
  }
4876
4876
  ), F.createElement(e, {
4877
- className: w("discussion-post", h),
4877
+ className: j("discussion-post", h),
4878
4878
  "data-testid": `discussion-${t.type}-thread`,
4879
4879
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
4880
4880
  /* @__PURE__ */ a.jsxs(
4881
4881
  "div",
4882
4882
  {
4883
4883
  id: N || t.slug,
4884
- className: w("discussion-card", t.type, {
4885
- editing: j.isEditing,
4886
- "has-link": p.post && !j.isEditing
4884
+ className: j("discussion-card", t.type, {
4885
+ editing: w.isEditing,
4886
+ "has-link": p.post && !w.isEditing
4887
4887
  }),
4888
4888
  onClick: (W) => {
4889
- !p.post || j.isEditing || (W.preventDefault(), W.stopPropagation(), window.location.href = p.post);
4889
+ !p.post || w.isEditing || (W.preventDefault(), W.stopPropagation(), window.location.href = p.post);
4890
4890
  },
4891
4891
  children: [
4892
- !j.isEditing && /* @__PURE__ */ a.jsx(
4892
+ !w.isEditing && /* @__PURE__ */ a.jsx(
4893
4893
  Xt,
4894
4894
  {
4895
4895
  member: C,
4896
- additionalContent: { createdAt: Z, didEdit: j.didEdit },
4896
+ additionalContent: { createdAt: Z, didEdit: w.didEdit },
4897
4897
  className: typeof C != "string" && C.id === s ? "highlighted" : "",
4898
4898
  gtmContext: g,
4899
4899
  gtmType: "profile-click"
4900
4900
  }
4901
4901
  ),
4902
- j.isEditing ? /* @__PURE__ */ a.jsx(
4902
+ w.isEditing ? /* @__PURE__ */ a.jsx(
4903
4903
  en,
4904
4904
  {
4905
4905
  content: { type: t.type, slugs: t.slugs },
@@ -4907,7 +4907,7 @@ const xe = "discussion_", $s = 280, kt = ({
4907
4907
  meta: {
4908
4908
  isLoading: r,
4909
4909
  isInWrapper: !0,
4910
- isEditing: { text: j.body }
4910
+ isEditing: { text: w.body }
4911
4911
  },
4912
4912
  maxLength: t.type === "question" ? 250 : 5e4,
4913
4913
  forceShow: {
@@ -4924,7 +4924,7 @@ const xe = "discussion_", $s = 280, kt = ({
4924
4924
  create: o,
4925
4925
  handleSaveEdit: X,
4926
4926
  handleCancel: () => {
4927
- $(""), S({ ...j, isEditing: !1 });
4927
+ $(""), S({ ...w, isEditing: !1 });
4928
4928
  }
4929
4929
  },
4930
4930
  gtmContext: `${g}Form`
@@ -4936,10 +4936,10 @@ const xe = "discussion_", $s = 280, kt = ({
4936
4936
  className: "gtm-trackable",
4937
4937
  "data-gtm-event-context": g,
4938
4938
  "data-gtm-event-type": "title-click",
4939
- children: /* @__PURE__ */ a.jsx(jn, { options: { overrides: { a: Zr } }, children: Q })
4939
+ children: /* @__PURE__ */ a.jsx(wn, { options: { overrides: { a: Zr } }, children: Q })
4940
4940
  }
4941
4941
  ) : /* @__PURE__ */ a.jsx(
4942
- jn,
4942
+ wn,
4943
4943
  {
4944
4944
  options: {
4945
4945
  wrapper: t.type === "question" ? "h1" : F.Fragment,
@@ -4950,10 +4950,10 @@ const xe = "discussion_", $s = 280, kt = ({
4950
4950
  children: Q
4951
4951
  }
4952
4952
  ),
4953
- !j.isEditing && /* @__PURE__ */ a.jsxs(
4953
+ !w.isEditing && /* @__PURE__ */ a.jsxs(
4954
4954
  "ul",
4955
4955
  {
4956
- className: w("actions text-medium", t.type),
4956
+ className: j("actions text-medium", t.type),
4957
4957
  "data-testid": `${t.type}-actions`,
4958
4958
  children: [
4959
4959
  /* @__PURE__ */ a.jsx(
@@ -5066,7 +5066,7 @@ const xe = "discussion_", $s = 280, kt = ({
5066
5066
  ],
5067
5067
  gtmContext: `${t.type.charAt(0).toUpperCase()}${t.type.slice(1)}:${t.slug}`,
5068
5068
  children: /* @__PURE__ */ a.jsx(
5069
- we,
5069
+ je,
5070
5070
  {
5071
5071
  id: "discussion_delete_text",
5072
5072
  values: {
@@ -5149,7 +5149,7 @@ const Es = ({ count: e = "", showRepliesButton: t = !0, children: n }) => {
5149
5149
  "ul",
5150
5150
  {
5151
5151
  ref: s,
5152
- className: w("thread", o),
5152
+ className: j("thread", o),
5153
5153
  hidden: !i.showThread,
5154
5154
  children: f
5155
5155
  }
@@ -5230,12 +5230,30 @@ function Mn({ activity: e, user: t }) {
5230
5230
  };
5231
5231
  }
5232
5232
  function dt({ activity: e, reaction: t }) {
5233
- const { latest_reactions: n, own_reactions: r, reaction_counts: s } = e;
5234
- n && t && (n.like = [...n.like || [], t]), r && t && (r.like = [...r.like || [], t]), s && (s.like = s.like + 1 || 1);
5233
+ var n, r, s;
5234
+ t ? (e.latest_reactions = {
5235
+ ...e.latest_reactions || {},
5236
+ like: [...((r = e.latest_reactions) == null ? void 0 : r.like) || [], t]
5237
+ }, e.own_reactions = {
5238
+ ...e.own_reactions || {},
5239
+ like: [...((s = e.own_reactions) == null ? void 0 : s.like) || [], t]
5240
+ }) : e.reaction_counts = {
5241
+ ...e.reaction_counts || {},
5242
+ like: (n = e.reaction_counts) != null && n.like ? e.reaction_counts.like + 1 : 1
5243
+ };
5235
5244
  }
5236
5245
  function fa({ activity: e, user: t }) {
5237
- const { latest_reactions: n, own_reactions: r, reaction_counts: s } = e;
5238
- s && (s.like = s.like - 1 || 0), n && (t != null && t.id) && (n.like = n.like.filter(({ user_id: i }) => i !== t.id)), r && (t != null && t.id) && (r.like = r.like.filter(({ user_id: i }) => i !== t.id));
5246
+ var n, r, s;
5247
+ e.reaction_counts = {
5248
+ ...e.reaction_counts || {},
5249
+ like: (n = e.reaction_counts) != null && n.like ? e.reaction_counts.like - 1 : 0
5250
+ }, t != null && t.id && (e.latest_reactions = {
5251
+ ...e.latest_reactions || {},
5252
+ like: (((r = e.latest_reactions) == null ? void 0 : r.like) || []).filter(({ user_id: i }) => i !== t.id)
5253
+ }, e.own_reactions = {
5254
+ ...e.own_reactions || {},
5255
+ like: (((s = e.own_reactions) == null ? void 0 : s.like) || []).filter(({ user_id: i }) => i !== t.id)
5256
+ });
5239
5257
  }
5240
5258
  function As({ activityId: e, replyId: t, content: n }) {
5241
5259
  return {
@@ -5258,12 +5276,30 @@ function Nn({ reply: e, user: t }) {
5258
5276
  };
5259
5277
  }
5260
5278
  function Pn({ reply: e, reaction: t }) {
5261
- const { latest_children: n, own_children: r, children_counts: s } = e;
5262
- n && t && (n.like = [...n.like || [], t]), r && t && (r.like = [...r.like || [], t]), s && (s.like = s.like + 1 || 1);
5279
+ var n, r, s;
5280
+ t ? (e.latest_children = {
5281
+ ...e.latest_children || {},
5282
+ like: [...((r = e.latest_children) == null ? void 0 : r.like) || [], t]
5283
+ }, e.own_children = {
5284
+ ...e.own_children || {},
5285
+ like: [...((s = e.own_children) == null ? void 0 : s.like) || [], t]
5286
+ }) : e.children_counts = {
5287
+ ...e.children_counts || {},
5288
+ like: (n = e.children_counts) != null && n.like ? e.children_counts.like + 1 : 1
5289
+ };
5263
5290
  }
5264
5291
  function Fs({ reply: e, user: t }) {
5265
- const { latest_children: n, own_children: r, children_counts: s } = e;
5266
- s && (s.like = s.like - 1 || 0), n && (t != null && t.id) && (n.like = n.like.filter(({ user_id: i }) => i !== t.id)), r && (t != null && t.id) && (r.like = r.like.filter(({ user_id: i }) => i !== t.id));
5292
+ var n, r, s;
5293
+ e.children_counts = {
5294
+ ...e.children_counts || {},
5295
+ like: (n = e.children_counts) != null && n.like ? e.children_counts.like - 1 : 0
5296
+ }, t != null && t.id && (e.latest_children = {
5297
+ ...e.latest_children || {},
5298
+ like: (((r = e.latest_children) == null ? void 0 : r.like) || []).filter(({ user_id: i }) => i !== t.id)
5299
+ }, e.own_children = {
5300
+ ...e.own_children || {},
5301
+ like: (((s = e.own_children) == null ? void 0 : s.like) || []).filter(({ user_id: i }) => i !== t.id)
5302
+ });
5267
5303
  }
5268
5304
  const Ae = Object.freeze({
5269
5305
  id: "some-user-id-1",
@@ -5651,10 +5687,10 @@ const Gi = ({
5651
5687
  var N, U, Y, ne, Q, J, re;
5652
5688
  const {
5653
5689
  id: v,
5654
- own_reactions: j,
5690
+ own_reactions: w,
5655
5691
  latest_reactions: S,
5656
5692
  reaction_counts: M
5657
- } = _, D = (((N = S == null ? void 0 : S.like) == null ? void 0 : N.length) || 0) > 0, I = (((U = j == null ? void 0 : j.like) == null ? void 0 : U.length) || 0) > 0, $ = I ? j == null ? void 0 : j.like[0].id : "", C = D ? (Y = S == null ? void 0 : S.like) == null ? void 0 : Y.map((X) => {
5693
+ } = _, D = (((N = S == null ? void 0 : S.like) == null ? void 0 : N.length) || 0) > 0, I = (((U = w == null ? void 0 : w.like) == null ? void 0 : U.length) || 0) > 0, $ = I ? w == null ? void 0 : w.like[0].id : "", C = D ? (Y = S == null ? void 0 : S.like) == null ? void 0 : Y.map((X) => {
5658
5694
  var se, de, ce;
5659
5695
  return {
5660
5696
  id: (se = X == null ? void 0 : X.user) == null ? void 0 : se.id,
@@ -6506,7 +6542,7 @@ const ri = ({
6506
6542
  c == null ? void 0 : c.map((v) => {
6507
6543
  var Q, J, re, X, se, de, ce, W, ue, pe;
6508
6544
  const {
6509
- id: j,
6545
+ id: w,
6510
6546
  own_children: S,
6511
6547
  latest_children: M,
6512
6548
  children_counts: D
@@ -6552,18 +6588,18 @@ const ri = ({
6552
6588
  functions: {
6553
6589
  content: {
6554
6590
  createContent: () => null,
6555
- deleteContent: () => y({ replyId: j }),
6591
+ deleteContent: () => y({ replyId: w }),
6556
6592
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6557
- updateContent: (q, { body: K }) => h({ replyId: j, content: K })
6593
+ updateContent: (q, { body: K }) => h({ replyId: w, content: K })
6558
6594
  },
6559
6595
  likes: {
6560
- createLike: () => g({ replyId: j }),
6561
- deleteLike: () => k({ replyId: j, reactionId: C })
6596
+ createLike: () => g({ replyId: w }),
6597
+ deleteLike: () => k({ replyId: w, reactionId: C })
6562
6598
  },
6563
6599
  comments: {}
6564
6600
  }
6565
6601
  },
6566
- j
6602
+ w
6567
6603
  );
6568
6604
  }),
6569
6605
  !d && /* @__PURE__ */ a.jsx(
@@ -6592,7 +6628,7 @@ const ri = ({
6592
6628
  },
6593
6629
  functions: {
6594
6630
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6595
- create: (v, { body: j }) => p({ activityId: n, replyId: r, content: j })
6631
+ create: (v, { body: w }) => p({ activityId: n, replyId: r, content: w })
6596
6632
  }
6597
6633
  }
6598
6634
  )
@@ -6639,7 +6675,7 @@ const ri = ({
6639
6675
  da,
6640
6676
  {
6641
6677
  contentType: "reply",
6642
- createPost: (v, { body: j }) => h({ activityId: n, content: j }),
6678
+ createPost: (v, { body: w }) => h({ activityId: n, content: w }),
6643
6679
  membershipRequiredToPost: {
6644
6680
  isMember: r,
6645
6681
  required: !0,
@@ -6652,7 +6688,7 @@ const ri = ({
6652
6688
  m == null ? void 0 : m.map((v) => {
6653
6689
  var Q, J, re, X, se, de, ce, W, ue, pe;
6654
6690
  const {
6655
- id: j,
6691
+ id: w,
6656
6692
  own_children: S,
6657
6693
  latest_children: M,
6658
6694
  children_counts: D
@@ -6677,9 +6713,9 @@ const ri = ({
6677
6713
  slugs: {
6678
6714
  question: `${e}/${t}`,
6679
6715
  answer: n,
6680
- reply: j
6716
+ reply: w
6681
6717
  },
6682
- slug: j,
6718
+ slug: w,
6683
6719
  author: {
6684
6720
  id: N == null ? void 0 : N.id,
6685
6721
  name: (ce = N.data) == null ? void 0 : ce.name,
@@ -6696,13 +6732,13 @@ const ri = ({
6696
6732
  functions: {
6697
6733
  content: {
6698
6734
  createContent: () => null,
6699
- deleteContent: () => k({ replyId: j }),
6735
+ deleteContent: () => k({ replyId: w }),
6700
6736
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6701
- updateContent: (q, { body: K }) => g({ replyId: j, content: K })
6737
+ updateContent: (q, { body: K }) => g({ replyId: w, content: K })
6702
6738
  },
6703
6739
  likes: {
6704
- createLike: () => y({ replyId: j }),
6705
- deleteLike: () => b({ replyId: j, reactionId: C })
6740
+ createLike: () => y({ replyId: w }),
6741
+ deleteLike: () => b({ replyId: w, reactionId: C })
6706
6742
  },
6707
6743
  comments: {}
6708
6744
  },
@@ -6712,7 +6748,7 @@ const ri = ({
6712
6748
  basePath: e,
6713
6749
  parentId: t,
6714
6750
  activityId: n,
6715
- replyId: j,
6751
+ replyId: w,
6716
6752
  isMember: r,
6717
6753
  functions: {
6718
6754
  ...s
@@ -6720,8 +6756,8 @@ const ri = ({
6720
6756
  }
6721
6757
  )
6722
6758
  },
6723
- j
6724
- ) }, j);
6759
+ w
6760
+ ) }, w);
6725
6761
  }),
6726
6762
  !p && /* @__PURE__ */ a.jsx(
6727
6763
  yt,
@@ -6843,7 +6879,7 @@ const Qi = ({
6843
6879
  }
6844
6880
  }) => {
6845
6881
  var $, C, E, Z, N, U, Y, ne, Q;
6846
- const l = A(), f = _e(je), {
6882
+ const l = A(), f = _e(we), {
6847
6883
  activity: d,
6848
6884
  error: p,
6849
6885
  isLoading: h,
@@ -6866,7 +6902,7 @@ const Qi = ({
6866
6902
  text: l.formatMessage({ id: "activitySection_notFoundError" })
6867
6903
  }
6868
6904
  );
6869
- const { own_reactions: b, latest_reactions: _ } = d, v = ((($ = _ == null ? void 0 : _.like) == null ? void 0 : $.length) || 0) > 0, j = (((C = b == null ? void 0 : b.like) == null ? void 0 : C.length) || 0) > 0, S = j ? b == null ? void 0 : b.like[0].id : "", M = v ? (E = _ == null ? void 0 : _.like) == null ? void 0 : E.map((J) => {
6905
+ const { own_reactions: b, latest_reactions: _ } = d, v = ((($ = _ == null ? void 0 : _.like) == null ? void 0 : $.length) || 0) > 0, w = (((C = b == null ? void 0 : b.like) == null ? void 0 : C.length) || 0) > 0, S = w ? b == null ? void 0 : b.like[0].id : "", M = v ? (E = _ == null ? void 0 : _.like) == null ? void 0 : E.map((J) => {
6870
6906
  var re, X, se;
6871
6907
  return {
6872
6908
  id: (re = J == null ? void 0 : J.user) == null ? void 0 : re.id,
@@ -6896,7 +6932,7 @@ const Qi = ({
6896
6932
  thumbnail: ((Y = D.data) == null ? void 0 : Y.thumbnail) || void 0
6897
6933
  }
6898
6934
  },
6899
- userLiked: j,
6935
+ userLiked: w,
6900
6936
  likes: ((ne = d == null ? void 0 : d.reaction_counts) == null ? void 0 : ne.like) || 0,
6901
6937
  comments: ((Q = d == null ? void 0 : d.reaction_counts) == null ? void 0 : Q.reply) || 0,
6902
6938
  peopleWhoLiked: M
@@ -7070,7 +7106,7 @@ export {
7070
7106
  Kn as LoadingState,
7071
7107
  na as Logo,
7072
7108
  Ei as LogoSection,
7073
- jn as MarkdownText,
7109
+ wn as MarkdownText,
7074
7110
  Si as MarketingBox,
7075
7111
  Xt as Member,
7076
7112
  Vi as MembersList,
@@ -7096,9 +7132,9 @@ export {
7096
7132
  Vt as StatusBanner,
7097
7133
  Bi as Tabs,
7098
7134
  Wi as Tags,
7099
- wr as Tooltip,
7135
+ jr as Tooltip,
7100
7136
  Zi as TopLevelPage,
7101
- je as UserContext,
7137
+ we as UserContext,
7102
7138
  Pr as UserProvider,
7103
7139
  ie as VisuallyHidden,
7104
7140
  _s as addAriaProps,