@apolitical/component-library 1.14.9 → 1.14.10-beta.6

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 +11 -11
  2. package/index.mjs +161 -161
  3. package/package.json +1 -1
package/index.mjs CHANGED
@@ -7,7 +7,7 @@ import bt from "markdown-to-jsx";
7
7
  import { QueryClient as vs, QueryClientProvider as ks, useQueryClient as wt, useQuery as $n, useMutation as ie } from "@tanstack/react-query";
8
8
  import { ReactQueryDevtools as js } from "@tanstack/react-query-devtools";
9
9
  import dt from "posthog-js";
10
- import { useCookies as ys, CookiesProvider as Es } from "react-cookie";
10
+ import { CookiesProvider as ys, useCookies as Es } from "react-cookie";
11
11
  import { ReactMultiEmail as Ss } from "react-multi-email";
12
12
  import Tn from "lodash.get";
13
13
  import { ErrorBoundary as $s } from "react-error-boundary";
@@ -807,7 +807,7 @@ const vt = (e = !0, t = !1, n = "window") => {
807
807
  l();
808
808
  }, 250);
809
809
  return c;
810
- }, Oa = (e = [], t = !0) => {
810
+ }, La = (e = [], t = !0) => {
811
811
  e = Array.isArray(e) ? e : [e];
812
812
  const n = de(!1);
813
813
  He(() => {
@@ -1477,7 +1477,7 @@ const Zs = ({ isOpen: e = !1, isLoading: t = !1, children: n }) => {
1477
1477
  }, [e]), /* @__PURE__ */ s.jsx("aside", { ref: c, className: $("tooltip text-medium", i, { loading: t }), hidden: i === "hidden", children: t ? /* @__PURE__ */ s.jsx("p", { children: r.formatMessage({ id: "tooltip_loading" }) }) : typeof n == "string" ? /* @__PURE__ */ s.jsx("p", { children: n }) : n });
1478
1478
  };
1479
1479
  const en = ({ children: e, className: t = "", ...n }) => /* @__PURE__ */ s.jsx("section", { className: $("full-width-section", t), ...n, children: e });
1480
- const Ia = ({ text: e, buttons: t, className: n = "" }) => {
1480
+ const Oa = ({ text: e, buttons: t, className: n = "" }) => {
1481
1481
  const r = [];
1482
1482
  return t.forEach((c) => {
1483
1483
  r.push({
@@ -1495,7 +1495,7 @@ const Ia = ({ text: e, buttons: t, className: n = "" }) => {
1495
1495
  /* @__PURE__ */ s.jsx(kt, { buttons: r })
1496
1496
  ] }) });
1497
1497
  };
1498
- const Ba = ({ title: e = !1, logos: t = [], className: n = "" }) => {
1498
+ const Ia = ({ title: e = !1, logos: t = [], className: n = "" }) => {
1499
1499
  const r = t.length;
1500
1500
  if (r === 0)
1501
1501
  return null;
@@ -1624,8 +1624,8 @@ const Ks = [
1624
1624
  ] })
1625
1625
  }
1626
1626
  );
1627
- }, Qa = We(qs);
1628
- const Ha = ({
1627
+ }, Ba = We(qs);
1628
+ const Qa = ({
1629
1629
  variant: e = "primary",
1630
1630
  button: t = null,
1631
1631
  title: n,
@@ -1642,7 +1642,7 @@ const Ha = ({
1642
1642
  default: "dpo@apolitical.co",
1643
1643
  eu: "dpo.agl@apolitical.foundation"
1644
1644
  }
1645
- }, Ua = "200,000+";
1645
+ }, Ha = "200,000+";
1646
1646
  const Ln = ({ label: e = !1, className: t = "", children: n }) => {
1647
1647
  const r = D();
1648
1648
  return /* @__PURE__ */ s.jsxs("details", { className: $("collapsible-section", t), children: [
@@ -1705,7 +1705,7 @@ const er = ({ type: e = "default", className: t = "", heading: n = !1, children:
1705
1705
  }
1706
1706
  ) : /* @__PURE__ */ s.jsx("p", { children: r })
1707
1707
  ] });
1708
- const Wa = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children: c }) => {
1708
+ const Ua = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children: c }) => {
1709
1709
  const i = D(), u = de(null), [a, l] = L(""), [o, d] = L("closed");
1710
1710
  Y(() => {
1711
1711
  const p = u.current;
@@ -1899,7 +1899,7 @@ const At = "loadingBlock_", mr = ({ progress: e = 0, steps: t = !1, className: n
1899
1899
  ]
1900
1900
  }
1901
1901
  );
1902
- }, za = We(mr);
1902
+ }, Wa = We(mr);
1903
1903
  const Se = ({ element: e = "div", className: t = "", ...n }) => /* @__PURE__ */ s.jsx(Nn, { element: e, className: $("loading-placeholder", t), ...n });
1904
1904
  const Zt = {
1905
1905
  header: ["logo", "link", "link", "search"],
@@ -1918,10 +1918,10 @@ const Zt = {
1918
1918
  "cards-section",
1919
1919
  "footer"
1920
1920
  ]
1921
- }, In = (e, t) => e in Zt ? /* @__PURE__ */ s.jsx("div", { className: e, children: Zt[e].map((n, r) => In(n, r)) }, t) : /* @__PURE__ */ s.jsx(Se, { className: e }, t), fr = ({ layout: e = "overview-page", ...t }) => /* @__PURE__ */ s.jsx("div", { className: $("loading-state", e), ...t, children: Zt[e].map((n, r) => In(n, r)) }), Bn = (e) => {
1921
+ }, In = (e, t) => e in Zt ? /* @__PURE__ */ s.jsx("div", { className: e, children: Zt[e].map((n, r) => In(n, r)) }, t) : /* @__PURE__ */ s.jsx(Se, { className: e }, t), za = ({ layout: e = "overview-page", ...t }) => /* @__PURE__ */ s.jsx("div", { className: $("loading-state", e), ...t, children: Zt[e].map((n, r) => In(n, r)) }), Bn = (e) => {
1922
1922
  const t = e && e.toUpperCase().split(" ");
1923
1923
  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) : "";
1924
- }, st = ["#5AB6A3", "#A2D7AF", "#806056", "#3962B3"], hr = (e) => {
1924
+ }, st = ["#5AB6A3", "#A2D7AF", "#806056", "#3962B3"], fr = (e) => {
1925
1925
  const t = Math.ceil(26 / st.length), n = Bn(e).toLowerCase();
1926
1926
  if (n === "")
1927
1927
  return st[0];
@@ -1948,7 +1948,7 @@ const wn = 256, qe = ({
1948
1948
  if (!h)
1949
1949
  return;
1950
1950
  const p = c, g = i;
1951
- typeof window < "u" && window.devicePixelRatio && (m.width = p * window.devicePixelRatio, m.height = g * window.devicePixelRatio, h.scale(window.devicePixelRatio, window.devicePixelRatio)), h.fillStyle = hr(n), h.fillRect(0, 0, p, g), h.font = `${p / 3}px Arial`, h.textAlign = "center", h.fillStyle = "white", h.fillText(Bn(n), p / 2, g / 1.6);
1951
+ typeof window < "u" && window.devicePixelRatio && (m.width = p * window.devicePixelRatio, m.height = g * window.devicePixelRatio, h.scale(window.devicePixelRatio, window.devicePixelRatio)), h.fillStyle = fr(n), h.fillRect(0, 0, p, g), h.font = `${p / 3}px Arial`, h.textAlign = "center", h.fillStyle = "white", h.fillText(Bn(n), p / 2, g / 1.6);
1952
1952
  }, [n]);
1953
1953
  let d = !1;
1954
1954
  return t && t !== "" && !a && (t.includes("http") || t.includes("//")) && (d = !0), /* @__PURE__ */ s.jsx(
@@ -1981,7 +1981,7 @@ const wn = 256, qe = ({
1981
1981
  country: e.location && e.location.country || "",
1982
1982
  url: `/profiles/${e.id}`,
1983
1983
  image: e.image && e.image.thumbnail
1984
- }, pr = ({
1984
+ }, hr = ({
1985
1985
  role: e = "",
1986
1986
  organisation: t = "",
1987
1987
  country: n = "",
@@ -2004,7 +2004,7 @@ const tn = ({
2004
2004
  }) => {
2005
2005
  const u = D(), a = Qn(t);
2006
2006
  a.name || (a.name = u.formatMessage({ id: `member_${typeof t == "string" ? t : "community"}` }));
2007
- const { name: l, url: o, image: d } = a, m = pr(a), h = n && n.createdAt ? Gt(n.createdAt) : !1, p = n && n.createdAt ? Pn(n.createdAt) : "";
2007
+ const { name: l, url: o, image: d } = a, m = hr(a), h = n && n.createdAt ? Gt(n.createdAt) : !1, p = n && n.createdAt ? Pn(n.createdAt) : "";
2008
2008
  return A.createElement(e, {
2009
2009
  className: $("member text-medium", i),
2010
2010
  children: /* @__PURE__ */ s.jsxs(
@@ -2085,7 +2085,7 @@ const vn = {
2085
2085
  r && /* @__PURE__ */ s.jsx("span", { className: "label", children: typeof r == "string" ? r : n.length === 1 ? typeof n[0] == "string" ? d.formatMessage({ id: `member_${n[0]}` }) : Qe(n[0].name || "", 20) : null })
2086
2086
  ] })
2087
2087
  });
2088
- }, gr = ({ showDevTools: e = !0, children: t }) => {
2088
+ }, pr = ({ showDevTools: e = !0, children: t }) => {
2089
2089
  const n = new vs({
2090
2090
  // default options we would like on all queries can be overridden individually
2091
2091
  defaultOptions: {
@@ -2102,15 +2102,15 @@ const vn = {
2102
2102
  e && /* @__PURE__ */ s.jsx(js, { initialIsOpen: !1 })
2103
2103
  ] });
2104
2104
  };
2105
- var _r = Kt({ client: dt });
2106
- function xr(e) {
2105
+ var gr = Kt({ client: dt });
2106
+ function _r(e) {
2107
2107
  var t = e.children, n = e.client, r = e.apiKey, c = e.options, i = xt(function() {
2108
2108
  return n && r && console.warn("[PostHog.js] You have provided both a client and an apiKey to PostHogProvider. The apiKey will be ignored in favour of the client."), n && c && console.warn("[PostHog.js] You have provided both a client and options to PostHogProvider. The options will be ignored in favour of the client."), n || (r && (dt.__loaded && console.warn("[PostHog.js] was already loaded elsewhere. This may cause issues."), dt.init(r, c)), dt);
2109
2109
  }, [n, r]);
2110
- return A.createElement(_r.Provider, { value: { client: i } }, t);
2110
+ return A.createElement(gr.Provider, { value: { client: i } }, t);
2111
2111
  }
2112
- const br = ({ children: e, user: t }) => t.isLoading ? /* @__PURE__ */ s.jsx(s.Fragment, {}) : process.env.REACT_APP_PUBLIC_POSTHOG_KEY ? /* @__PURE__ */ s.jsx(
2113
- xr,
2112
+ const xr = ({ children: e, user: t }) => t.isLoading ? /* @__PURE__ */ s.jsx(s.Fragment, {}) : process.env.REACT_APP_PUBLIC_POSTHOG_KEY ? /* @__PURE__ */ s.jsx(
2113
+ _r,
2114
2114
  {
2115
2115
  apiKey: atob(process.env.REACT_APP_PUBLIC_POSTHOG_KEY),
2116
2116
  options: {
@@ -2125,17 +2125,17 @@ const br = ({ children: e, user: t }) => t.isLoading ? /* @__PURE__ */ s.jsx(s.F
2125
2125
  },
2126
2126
  children: e
2127
2127
  }
2128
- ) : e, wr = ({ children: e, locale: t, messages: n }) => {
2128
+ ) : e, br = ({ children: e, locale: t, messages: n }) => {
2129
2129
  const r = t || "en", c = {
2130
2130
  ...Vs[r],
2131
2131
  ...n || {}
2132
2132
  };
2133
2133
  return /* @__PURE__ */ s.jsx(bs, { locale: r, messages: c, children: e });
2134
- }, $e = Kt(null), vr = ({ children: e, user: t }) => /* @__PURE__ */ s.jsx($e.Provider, { value: t, children: e }), Va = ({ bootstrap: e, children: t, intl: n }) => {
2134
+ }, $e = Kt(null), wr = ({ children: e, user: t }) => /* @__PURE__ */ s.jsx($e.Provider, { value: t, children: e }), Va = ({ bootstrap: e, children: t, intl: n }) => {
2135
2135
  const [r, c] = L({ isLoading: !0 });
2136
2136
  return Y(() => {
2137
2137
  e().then((i) => c({ ...i, isLoading: !1 })).catch(() => c({ isLoading: !1 }));
2138
- }, []), /* @__PURE__ */ s.jsx(wr, { locale: n == null ? void 0 : n.locale, messages: n == null ? void 0 : n.messages, children: /* @__PURE__ */ s.jsx(vr, { user: r, children: /* @__PURE__ */ s.jsx(gr, { children: /* @__PURE__ */ s.jsx(br, { user: r, children: t }) }) }) });
2138
+ }, []), /* @__PURE__ */ s.jsx(br, { locale: n == null ? void 0 : n.locale, messages: n == null ? void 0 : n.messages, children: /* @__PURE__ */ s.jsx(ys, { children: /* @__PURE__ */ s.jsx(wr, { user: r, children: /* @__PURE__ */ s.jsx(pr, { children: /* @__PURE__ */ s.jsx(xr, { user: r, children: t }) }) }) }) });
2139
2139
  };
2140
2140
  const Pt = "joinCommunityButton", Un = ({ isMember: e = !1, isShort: t = !1, functions: { join: n, leave: r } = { join: () => {
2141
2141
  }, leave: () => {
@@ -2250,7 +2250,7 @@ const Ja = ({
2250
2250
  }
2251
2251
  ) }, d);
2252
2252
  }) });
2253
- }, kr = (e, t) => {
2253
+ }, vr = (e, t) => {
2254
2254
  const n = String(e);
2255
2255
  if (!t || !t.length)
2256
2256
  return `/${n}`;
@@ -2286,7 +2286,7 @@ const Ft = { en: "English", es: "Español", fr: "Français", pt: "Português" },
2286
2286
  let v = { className: b };
2287
2287
  return d === b ? v["aria-label"] = o.formatMessage({ id: `${rt}selected` }, { language: Ft[b] }) : v = {
2288
2288
  ...v,
2289
- href: kr(b, i),
2289
+ href: vr(b, i),
2290
2290
  onClick: (E) => {
2291
2291
  E.preventDefault(), E.stopPropagation(), m(b), c(b);
2292
2292
  }
@@ -2308,7 +2308,7 @@ const Ft = { en: "English", es: "Español", fr: "Français", pt: "Português" },
2308
2308
  })
2309
2309
  ] });
2310
2310
  };
2311
- const Lt = ws({ locale: "en", messages: qt }), jr = ({
2311
+ const Lt = ws({ locale: "en", messages: qt }), kr = ({
2312
2312
  page: e = 1,
2313
2313
  length: t = 0,
2314
2314
  limit: n = 10,
@@ -2352,7 +2352,7 @@ const Lt = ws({ locale: "en", messages: qt }), jr = ({
2352
2352
  };
2353
2353
  const Wn = ({ variant: e = "default", version: t = "default", className: n = "", ...r }) => /* @__PURE__ */ s.jsx("p", { className: "logo-wrapper", children: /* @__PURE__ */ s.jsx("a", { href: "/home/", className: $("logo", e, t, n), ...r, children: /* @__PURE__ */ s.jsx(_e, { children: /* @__PURE__ */ s.jsx(Pe, { id: "apolitical" }) }) }) });
2354
2354
  let at = !1;
2355
- const yr = ({ element: e = "div", id: t = "more-menu", options: n, className: r = "" }) => {
2355
+ const jr = ({ element: e = "div", id: t = "more-menu", options: n, className: r = "" }) => {
2356
2356
  const c = D(), i = de(null), [u, a] = L(!1), l = (o) => {
2357
2357
  i.current && o.target instanceof HTMLElement && !i.current.contains(o.target) && a(!1);
2358
2358
  };
@@ -2403,8 +2403,8 @@ const yr = ({ element: e = "div", id: t = "more-menu", options: n, className: r
2403
2403
  }) })
2404
2404
  ] })
2405
2405
  });
2406
- }, Er = (e, t = !1) => t ? e.replaceAll("/", "") === t : typeof window < "u" && window.location && window.location.pathname === e;
2407
- const Sr = [
2406
+ }, yr = (e, t = !1) => t ? e.replaceAll("/", "") === t : typeof window < "u" && window.location && window.location.pathname === e;
2407
+ const Er = [
2408
2408
  {
2409
2409
  key: "homepage",
2410
2410
  href: "/home/"
@@ -2425,13 +2425,13 @@ const Sr = [
2425
2425
  key: "articles",
2426
2426
  href: "/solution-articles/"
2427
2427
  }
2428
- ], $r = ({ activeLink: e }) => {
2428
+ ], Sr = ({ activeLink: e }) => {
2429
2429
  const t = D(), n = je($e), r = n && typeof n.id == "string";
2430
2430
  return /* @__PURE__ */ s.jsxs("ul", { id: "navigation-menu", className: "text-medium", children: [
2431
- Sr.map(({ key: c, href: i }) => /* @__PURE__ */ s.jsx(
2431
+ Er.map(({ key: c, href: i }) => /* @__PURE__ */ s.jsx(
2432
2432
  "li",
2433
2433
  {
2434
- className: $(c, { active: Er(i, e) }),
2434
+ className: $(c, { active: yr(i, e) }),
2435
2435
  children: /* @__PURE__ */ s.jsx(
2436
2436
  "a",
2437
2437
  {
@@ -2465,7 +2465,7 @@ const Sr = [
2465
2465
  }
2466
2466
  ) })
2467
2467
  ] });
2468
- }, Xe = (e, t, n) => `${e}?share=${t}${n ? `&uuid=${n}` : ""}`, Tr = ({
2468
+ }, Xe = (e, t, n) => `${e}?share=${t}${n ? `&uuid=${n}` : ""}`, $r = ({
2469
2469
  title: e,
2470
2470
  link: t,
2471
2471
  referrer: n
@@ -2508,7 +2508,7 @@ ${Xe(t, "mailto", n)}&src=email`
2508
2508
  onClick: (r, c) => (r.preventDefault(), r.stopPropagation(), navigator.clipboard.writeText(c))
2509
2509
  }
2510
2510
  ];
2511
- const Mr = "shareLinks_", Za = ({
2511
+ const Tr = "shareLinks_", Za = ({
2512
2512
  title: e,
2513
2513
  link: t,
2514
2514
  referrer: n,
@@ -2517,7 +2517,7 @@ const Mr = "shareLinks_", Za = ({
2517
2517
  variant: i = "default",
2518
2518
  className: u = ""
2519
2519
  }) => {
2520
- const a = D(), l = Tr({ title: e, link: t, referrer: n });
2520
+ const a = D(), l = $r({ title: e, link: t, referrer: n });
2521
2521
  return /* @__PURE__ */ s.jsxs("aside", { className: $("share-links", c, i, u), children: [
2522
2522
  /* @__PURE__ */ s.jsx("p", { className: "text-small", children: a.formatMessage({ id: "shareLinks_label" }) }),
2523
2523
  /* @__PURE__ */ s.jsx("ul", { children: l.map(({ key: o, icon: d, url: m, shouldRender: h = !0, onClick: p }) => {
@@ -2537,17 +2537,17 @@ const Mr = "shareLinks_", Za = ({
2537
2537
  "data-gtm-event-context": `${r}-SocialButtons`,
2538
2538
  "data-gtm-event-type": `${o}-click`,
2539
2539
  "data-testid": "link",
2540
- screenreaderText: a.formatMessage({ id: `${Mr}link_${o}` }),
2540
+ screenreaderText: a.formatMessage({ id: `${Tr}link_${o}` }),
2541
2541
  ...g
2542
2542
  }
2543
2543
  ) }, o);
2544
2544
  }) })
2545
2545
  ] });
2546
2546
  };
2547
- const Nr = {
2547
+ const Mr = {
2548
2548
  "2-1": 901,
2549
2549
  "1-3": 769
2550
- }, Dr = ({
2550
+ }, Nr = ({
2551
2551
  layout: e = "2-1",
2552
2552
  hideOnMobile: t = !1,
2553
2553
  className: n = "",
@@ -2555,13 +2555,13 @@ const Nr = {
2555
2555
  }) => {
2556
2556
  const c = vt(!0);
2557
2557
  let i = r;
2558
- return A.Children.count(r) === 1 && (i = A.Children.toArray(r)[0], i.props && (i = i.props.children)), /* @__PURE__ */ s.jsx("section", { className: $("columns", `layout-${e}`, n), children: A.Children.map(i, (u, a) => t !== !1 && a === t && c && c < Nr[e] ? null : u) });
2559
- }, Ka = ({ activeLink: e, ...t }) => /* @__PURE__ */ s.jsx(Dr, { layout: "1-3", children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
2560
- /* @__PURE__ */ s.jsx($r, { activeLink: e }),
2558
+ return A.Children.count(r) === 1 && (i = A.Children.toArray(r)[0], i.props && (i = i.props.children)), /* @__PURE__ */ s.jsx("section", { className: $("columns", `layout-${e}`, n), children: A.Children.map(i, (u, a) => t !== !1 && a === t && c && c < Mr[e] ? null : u) });
2559
+ }, Ka = ({ activeLink: e, ...t }) => /* @__PURE__ */ s.jsx(Nr, { layout: "1-3", children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
2560
+ /* @__PURE__ */ s.jsx(Sr, { activeLink: e }),
2561
2561
  /* @__PURE__ */ s.jsx(lr, { ...t })
2562
2562
  ] }) });
2563
- const Ot = "cookieBanner_", It = ["apol-cookie-banner", "apolitical-performance-cookie-consent", "functional-cookie-consent"], Bt = new Date(Date.now() + 12 * 30 * 24 * 60 * 60 * 1e3), Cr = () => {
2564
- const e = D(), [t, n, r] = ys(It), [c, i] = L(!t["apol-cookie-banner"]), u = () => {
2563
+ const Ot = "cookieBanner_", It = ["apol-cookie-banner", "apolitical-performance-cookie-consent", "functional-cookie-consent"], Bt = new Date(Date.now() + 12 * 30 * 24 * 60 * 60 * 1e3), Dr = () => {
2564
+ const e = D(), [t, n, r] = Es(It), [c, i] = L(!t["apol-cookie-banner"]), u = () => {
2565
2565
  It.forEach((d) => {
2566
2566
  n(d, !0, {
2567
2567
  path: "/",
@@ -2896,11 +2896,11 @@ const ot = "emailHelperTextBox_", qa = ({ type: e, email: t, redirectPath: n, re
2896
2896
  )
2897
2897
  ) });
2898
2898
  };
2899
- const it = "passwordRules_", Vn = "isMoreThanEightCharacters", Yn = "includesNumberAndSymbol", Gn = "includesLowerAndUppercase", Ar = {
2899
+ const it = "passwordRules_", Vn = "isMoreThanEightCharacters", Yn = "includesNumberAndSymbol", Gn = "includesLowerAndUppercase", Cr = {
2900
2900
  [Vn]: "8Characters",
2901
2901
  [Yn]: "numberSymbol",
2902
2902
  [Gn]: "lowercaseUppercase"
2903
- }, Pr = ({ matchingRules: e = { isMoreThanEightCharacters: !1, includesNumberAndSymbol: !1, includesLowerAndUppercase: !1 }, className: t = "" }) => {
2903
+ }, Ar = ({ matchingRules: e = { isMoreThanEightCharacters: !1, includesNumberAndSymbol: !1, includesLowerAndUppercase: !1 }, className: t = "" }) => {
2904
2904
  const n = D();
2905
2905
  return /* @__PURE__ */ s.jsxs("aside", { className: $("password-rules", t), children: [
2906
2906
  /* @__PURE__ */ s.jsx("small", { children: n.formatMessage({ id: `${it}intro` }) }),
@@ -2909,7 +2909,7 @@ const it = "passwordRules_", Vn = "isMoreThanEightCharacters", Yn = "includesNum
2909
2909
  n.formatMessage({ id: `${it}rule_label` }),
2910
2910
  " "
2911
2911
  ] }),
2912
- /* @__PURE__ */ s.jsx("span", { children: n.formatMessage({ id: `${it}rule_${Ar[r]}` }) }),
2912
+ /* @__PURE__ */ s.jsx("span", { children: n.formatMessage({ id: `${it}rule_${Cr[r]}` }) }),
2913
2913
  !e[r] && /* @__PURE__ */ s.jsxs(_e, { element: "strong", children: [
2914
2914
  " ",
2915
2915
  " ",
@@ -2917,7 +2917,7 @@ const it = "passwordRules_", Vn = "isMoreThanEightCharacters", Yn = "includesNum
2917
2917
  ] })
2918
2918
  ] }, `rule-${r}`)) })
2919
2919
  ] });
2920
- }, eo = We(Pr);
2920
+ }, eo = We(Ar);
2921
2921
  const to = ({
2922
2922
  text: e = {},
2923
2923
  topRating: t = 5,
@@ -2978,7 +2978,7 @@ const to = ({
2978
2978
  }) })
2979
2979
  ] });
2980
2980
  };
2981
- const Rr = ({
2981
+ const Pr = ({
2982
2982
  id: e = "search",
2983
2983
  className: t = "",
2984
2984
  handleToggle: n = !1,
@@ -3031,7 +3031,7 @@ const Rr = ({
3031
3031
  }
3032
3032
  );
3033
3033
  };
3034
- const Fr = ({
3034
+ const Rr = ({
3035
3035
  title: e,
3036
3036
  label: t,
3037
3037
  ctaMessage: n,
@@ -3380,7 +3380,7 @@ const Fr = ({
3380
3380
  }) })
3381
3381
  ] }, e);
3382
3382
  };
3383
- const Lr = { height: 67, height_desktop: 83 }, Jn = ({ showNavigation: e = !0 }) => {
3383
+ const Fr = { height: 67, height_desktop: 83 }, Jn = ({ showNavigation: e = !0 }) => {
3384
3384
  const t = D(), n = je($e), r = vt(!0, !0), c = n && typeof n.id == "string", i = xt(
3385
3385
  () => H.getIsDesktopVersion(c, r),
3386
3386
  [c, r]
@@ -3393,7 +3393,7 @@ const Lr = { height: 67, height_desktop: 83 }, Jn = ({ showNavigation: e = !0 })
3393
3393
  }
3394
3394
  }), { headerIsVisible: l, menus: o, focusElements: d } = u;
3395
3395
  Os({
3396
- scrollPosition: Lr[`height${i.navigation ? "_desktop" : ""}`],
3396
+ scrollPosition: Fr[`height${i.navigation ? "_desktop" : ""}`],
3397
3397
  callbacks: {
3398
3398
  scrollUp: () => {
3399
3399
  !i && o.navigation || H.shouldChangeHeaderIsVisible(!0, o, a);
@@ -3502,7 +3502,7 @@ const Lr = { height: 67, height_desktop: 83 }, Jn = ({ showNavigation: e = !0 })
3502
3502
  }
3503
3503
  ),
3504
3504
  /* @__PURE__ */ s.jsx(
3505
- Rr,
3505
+ Pr,
3506
3506
  {
3507
3507
  id: "global-search",
3508
3508
  handleToggle: {
@@ -3620,7 +3620,7 @@ const Zn = ({
3620
3620
  ] })
3621
3621
  }
3622
3622
  ) });
3623
- }, Or = (e, t) => ({
3623
+ }, Lr = (e, t) => ({
3624
3624
  "aria-haspopup": !0,
3625
3625
  "aria-expanded": t,
3626
3626
  "aria-controls": e
@@ -3647,7 +3647,7 @@ const no = ({
3647
3647
  functions: { onClose: a },
3648
3648
  className: $("invite-modal", e, { success: !!n }),
3649
3649
  children: /* @__PURE__ */ s.jsx(
3650
- Fr,
3650
+ Rr,
3651
3651
  {
3652
3652
  title: r,
3653
3653
  label: c,
@@ -3659,7 +3659,7 @@ const no = ({
3659
3659
  )
3660
3660
  }
3661
3661
  );
3662
- const Ir = () => {
3662
+ const Or = () => {
3663
3663
  const e = D();
3664
3664
  return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
3665
3665
  /* @__PURE__ */ s.jsx(Jn, {}),
@@ -3672,7 +3672,7 @@ const Ir = () => {
3672
3672
  ) }),
3673
3673
  /* @__PURE__ */ s.jsx(zn, {})
3674
3674
  ] });
3675
- }, Br = ({
3675
+ }, Ir = ({
3676
3676
  children: e,
3677
3677
  additionalContent: { prepended: t, appended: n } = {},
3678
3678
  reportError: r,
@@ -3690,12 +3690,12 @@ const Ir = () => {
3690
3690
  }), v = ut(n, {
3691
3691
  locale: a
3692
3692
  }), E = {};
3693
- return d !== "default" && (E[d] = !0), m !== "default" && (E[m] = !0), h !== "default" && (E[h] = !0), /* @__PURE__ */ s.jsx($s, { onError: r, fallback: /* @__PURE__ */ s.jsx(Ir, {}), children: /* @__PURE__ */ s.jsx(gs, { fallback: /* @__PURE__ */ s.jsx(fr, { layout: "overview-page" }), children: /* @__PURE__ */ s.jsx(
3693
+ return d !== "default" && (E[d] = !0), m !== "default" && (E[m] = !0), h !== "default" && (E[h] = !0), /* @__PURE__ */ s.jsx($s, { onError: r, fallback: /* @__PURE__ */ s.jsx(Or, {}), children: /* @__PURE__ */ s.jsx(gs, { fallback: /* @__PURE__ */ s.jsx(s.Fragment, {}), children: /* @__PURE__ */ s.jsxs(
3694
3694
  "div",
3695
3695
  {
3696
3696
  id: "wrapper",
3697
3697
  className: $(u, E, { "has-footer": o }),
3698
- children: /* @__PURE__ */ s.jsxs(Es, { children: [
3698
+ children: [
3699
3699
  /* @__PURE__ */ s.jsx(Jn, { showNavigation: l }),
3700
3700
  /* @__PURE__ */ s.jsxs("section", { id: "content-wrapper", children: [
3701
3701
  b && /* @__PURE__ */ s.jsx("div", { className: "additional-content prepended", children: b }),
@@ -3706,8 +3706,8 @@ const Ir = () => {
3706
3706
  ] }),
3707
3707
  v && /* @__PURE__ */ s.jsx("div", { className: "additional-content appended", children: v }),
3708
3708
  o && /* @__PURE__ */ s.jsx(zn, {}),
3709
- /* @__PURE__ */ s.jsx(Cr, {})
3710
- ] })
3709
+ /* @__PURE__ */ s.jsx(Dr, {})
3710
+ ]
3711
3711
  }
3712
3712
  ) }) });
3713
3713
  }, jn = {
@@ -3729,7 +3729,7 @@ const Ir = () => {
3729
3729
  WorkAndTheEconomy: "work-and-the-economy"
3730
3730
  },
3731
3731
  "from the community": "community"
3732
- }, Qr = {
3732
+ }, Br = {
3733
3733
  getTagDetails: (e) => {
3734
3734
  if (e.includes("topic_")) {
3735
3735
  if (e = Qt.topic[e.replace("topic_", "")], e) {
@@ -3757,7 +3757,7 @@ const so = ({
3757
3757
  return e.forEach((o) => {
3758
3758
  if (!o)
3759
3759
  return;
3760
- const d = Qr.getTagDetails(o);
3760
+ const d = Br.getTagDetails(o);
3761
3761
  d && l.push(d);
3762
3762
  }), l.length < 1 ? null : /* @__PURE__ */ s.jsx("ul", { className: $("tags text-small", t, c, { "one-line": n }), children: l.map((o) => {
3763
3763
  const d = a.formatMessage({ id: o.text });
@@ -3791,7 +3791,7 @@ const ro = ({
3791
3791
  a.isAdmin && /* @__PURE__ */ s.jsx(ft, { children: u.formatMessage({ id: "membersList_admin" }) })
3792
3792
  ] }, l)) }),
3793
3793
  n && /* @__PURE__ */ s.jsx(
3794
- jr,
3794
+ kr,
3795
3795
  {
3796
3796
  ...n,
3797
3797
  icon: { icon: "arrow-down", position: "right" },
@@ -4039,16 +4039,16 @@ const ve = "discussion_form_", Kn = ({
4039
4039
  create: t
4040
4040
  }
4041
4041
  }
4042
- ), Hr = {
4042
+ ), Qr = {
4043
4043
  showThread: !1,
4044
4044
  showForm: !1
4045
- }, Et = Kt(Hr), Ur = ({ children: e }) => {
4045
+ }, Et = Kt(Qr), Hr = ({ children: e }) => {
4046
4046
  const [t, n] = L({
4047
4047
  showThread: !1,
4048
4048
  showForm: !1
4049
4049
  });
4050
4050
  return /* @__PURE__ */ s.jsx(Et.Provider, { value: { ...t, updateConversation: n }, children: e });
4051
- }, Wr = ({
4051
+ }, Ur = ({
4052
4052
  question: e,
4053
4053
  answer: t,
4054
4054
  reply: n
@@ -4056,11 +4056,11 @@ const ve = "discussion_form_", Kn = ({
4056
4056
  ...e && { questionSlug: e },
4057
4057
  ...t && { answerSlug: t },
4058
4058
  ...n && { replySlug: n }
4059
- }), zr = (e, t = 10) => !e || e.length === 0 ? [] : e.slice(0, t);
4059
+ }), Wr = (e, t = 10) => !e || e.length === 0 ? [] : e.slice(0, t);
4060
4060
  let Ke = !1;
4061
4061
  const Ht = () => {
4062
4062
  Ke !== !1 && (clearTimeout(Ke), Ke = !1);
4063
- }, Ut = 5, Vr = ({
4063
+ }, Ut = 5, zr = ({
4064
4064
  element: e = "div",
4065
4065
  likes: t = 0,
4066
4066
  peopleWhoLiked: n = !1,
@@ -4076,7 +4076,7 @@ const Ht = () => {
4076
4076
  Y(() => {
4077
4077
  p(c);
4078
4078
  }, [c]);
4079
- const [d, m] = L(t), [h, p] = L(c), [g, b] = L(!1), [v, E] = L(!1), k = xt(() => zr(n, Ut), [n]), _ = (C) => {
4079
+ const [d, m] = L(t), [h, p] = L(c), [g, b] = L(!1), [v, E] = L(!1), k = xt(() => Wr(n, Ut), [n]), _ = (C) => {
4080
4080
  if (C.preventDefault(), C.stopPropagation(), E(!1), Ke)
4081
4081
  return Ht(), !1;
4082
4082
  if (Ht(), g || !u)
@@ -4089,7 +4089,7 @@ const Ht = () => {
4089
4089
  C < 0 && (C = 0), b(!0), m(C), p(!h);
4090
4090
  try {
4091
4091
  if (i && i.slugs) {
4092
- const R = Wr(i.slugs);
4092
+ const R = Ur(i.slugs);
4093
4093
  h ? await l(R) : await a(R, { contentPath: window.location.pathname });
4094
4094
  }
4095
4095
  } catch {
@@ -4155,7 +4155,7 @@ const Ht = () => {
4155
4155
  const t = {};
4156
4156
  return Object.keys(e).forEach((n) => n.includes("Id") ? t[n] = e[n] : t[`${n}Slug`] = e[n]), t;
4157
4157
  }, sn = (e, t) => e && !t;
4158
- const De = "discussion_", Yr = 280, St = ({
4158
+ const De = "discussion_", Vr = 280, St = ({
4159
4159
  element: e = "div",
4160
4160
  content: t,
4161
4161
  userHasPermissions: n = !0,
@@ -4195,7 +4195,7 @@ const De = "discussion_", Yr = 280, St = ({
4195
4195
  });
4196
4196
  }, [t.isEdited]), r || !t || t.type === "answer" && (!t.slugs || !t.slugs.question))
4197
4197
  return /* @__PURE__ */ s.jsx(Se, { className: "discussion-card discussion-post" });
4198
- const { author: P, canLike: G, createdAt: x, id: K, likes: j = 0, userLiked: w, comments: z = 0 } = t, X = b ? Qe(_.body, Yr) : _.body, se = E && E.id && typeof P != "string" && P.id && P.id === E.id || !1, re = typeof G == "boolean" ? G : n ? !se : !1, ae = async (O) => {
4198
+ const { author: P, canLike: G, createdAt: x, id: K, likes: j = 0, userLiked: w, comments: z = 0 } = t, X = b ? Qe(_.body, Vr) : _.body, se = E && E.id && typeof P != "string" && P.id && P.id === E.id || !1, re = typeof G == "boolean" ? G : n ? !se : !1, ae = async (O) => {
4199
4199
  O || (O = ""), N("");
4200
4200
  try {
4201
4201
  if (!Ms(O, _.body)) {
@@ -4254,7 +4254,7 @@ const De = "discussion_", Yr = 280, St = ({
4254
4254
  className: "gtm-trackable",
4255
4255
  "data-gtm-event-context": p,
4256
4256
  "data-gtm-event-type": `delete-${t.type}-click`,
4257
- ...Or(`delete-${t.slug}-modal`, C)
4257
+ ...Lr(`delete-${t.slug}-modal`, C)
4258
4258
  }
4259
4259
  ), A.createElement(e, {
4260
4260
  className: $("discussion-post", h),
@@ -4340,7 +4340,7 @@ const De = "discussion_", Yr = 280, St = ({
4340
4340
  "data-testid": `${t.type}-actions`,
4341
4341
  children: [
4342
4342
  /* @__PURE__ */ s.jsx(
4343
- Vr,
4343
+ zr,
4344
4344
  {
4345
4345
  element: "li",
4346
4346
  likes: j,
@@ -4399,7 +4399,7 @@ const De = "discussion_", Yr = 280, St = ({
4399
4399
  }
4400
4400
  ) }),
4401
4401
  /* @__PURE__ */ s.jsx(
4402
- yr,
4402
+ jr,
4403
4403
  {
4404
4404
  element: "li",
4405
4405
  id: `more-${t.slug}`,
@@ -4472,7 +4472,7 @@ const Wt = "discussion_responses_", ao = ({ type: e = "answer", responses: t = 0
4472
4472
  t === 0 && /* @__PURE__ */ s.jsx("p", { children: Te(n.formatMessage, `${Wt}empty`, e, e) })
4473
4473
  ] });
4474
4474
  };
4475
- const Gr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4475
+ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4476
4476
  const r = D(), c = de(null), i = je(Et), [u, a] = L(
4477
4477
  "closed"
4478
4478
  /* Closed */
@@ -4538,7 +4538,7 @@ const Gr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4538
4538
  }
4539
4539
  )
4540
4540
  ] });
4541
- }, Jr = ({
4541
+ }, Gr = ({
4542
4542
  user: e,
4543
4543
  content: t,
4544
4544
  verb: n = "post"
@@ -4559,7 +4559,7 @@ const Gr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4559
4559
  like: 0
4560
4560
  },
4561
4561
  verb: n
4562
- }), Xr = ({
4562
+ }), Jr = ({
4563
4563
  queryClient: e,
4564
4564
  queryKey: t,
4565
4565
  user: n,
@@ -4567,7 +4567,7 @@ const Gr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4567
4567
  }) => ({ mutationFn: r, onMutate: async ({ content: a }) => {
4568
4568
  if (!n)
4569
4569
  return;
4570
- const l = Jr({ user: n, content: a, verb: "post" });
4570
+ const l = Gr({ user: n, content: a, verb: "post" });
4571
4571
  await e.cancelQueries({ queryKey: t });
4572
4572
  const o = e.getQueryData(t);
4573
4573
  return e.setQueryData(t, (d) => [...d, l]), { previousActivities: o };
@@ -4575,7 +4575,7 @@ const Gr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4575
4575
  e.setQueryData(t, o.previousActivities);
4576
4576
  }, onSettled: () => {
4577
4577
  e.invalidateQueries({ queryKey: t });
4578
- } }), Zr = ({
4578
+ } }), Xr = ({
4579
4579
  queryClient: e,
4580
4580
  queryKey: t,
4581
4581
  mutationFn: n
@@ -4597,7 +4597,7 @@ const Gr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4597
4597
  onSettled: () => {
4598
4598
  e.invalidateQueries({ queryKey: t });
4599
4599
  }
4600
- }), Kr = ({
4600
+ }), Zr = ({
4601
4601
  queryClient: e,
4602
4602
  queryKey: t,
4603
4603
  mutationFn: n
@@ -4613,7 +4613,7 @@ const Gr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4613
4613
  e.invalidateQueries({
4614
4614
  queryKey: [...t, l.activityId]
4615
4615
  });
4616
- } }), qr = ({
4616
+ } }), Kr = ({
4617
4617
  queryClient: e,
4618
4618
  queryKey: t,
4619
4619
  mutationFn: n
@@ -4636,7 +4636,7 @@ const Gr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4636
4636
  e.invalidateQueries({
4637
4637
  queryKey: [...t, o.activityId]
4638
4638
  });
4639
- } }), ea = ({
4639
+ } }), qr = ({
4640
4640
  queryClient: e,
4641
4641
  queryKey: t,
4642
4642
  user: n,
@@ -4684,30 +4684,30 @@ const Gr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4684
4684
  } = $n({
4685
4685
  queryKey: [e, t],
4686
4686
  queryFn: r
4687
- }), k = Xr({
4687
+ }), k = Jr({
4688
4688
  queryClient: h,
4689
4689
  queryKey: [e, t],
4690
4690
  user: p,
4691
4691
  mutationFn: c
4692
- }), { mutate: _ } = ie(k), T = Zr({
4692
+ }), { mutate: _ } = ie(k), T = Xr({
4693
4693
  queryClient: h,
4694
4694
  queryKey: [e, t],
4695
4695
  mutationFn: async (w) => await i(w)
4696
4696
  }), {
4697
4697
  mutate: C
4698
- } = ie(T), R = Kr({
4698
+ } = ie(T), R = Zr({
4699
4699
  queryClient: h,
4700
4700
  queryKey: [e, t],
4701
4701
  mutationFn: async ({ activityId: w }) => await u({ activityId: w })
4702
4702
  }), {
4703
4703
  mutate: V
4704
- } = ie(R), N = qr({
4704
+ } = ie(R), N = Kr({
4705
4705
  queryClient: h,
4706
4706
  queryKey: [e, t],
4707
4707
  mutationFn: a
4708
4708
  }), {
4709
4709
  mutate: P
4710
- } = ie(N), G = ea({
4710
+ } = ie(N), G = qr({
4711
4711
  queryClient: h,
4712
4712
  queryKey: [e, t],
4713
4713
  user: p,
@@ -4807,7 +4807,7 @@ const Gr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4807
4807
  ] }, w == null ? void 0 : w.id);
4808
4808
  }))
4809
4809
  ] });
4810
- }, ta = ({
4810
+ }, ea = ({
4811
4811
  queryClient: e,
4812
4812
  queryKey: t,
4813
4813
  mutationFn: n
@@ -4826,7 +4826,7 @@ const Gr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4826
4826
  })), { previousActivity: l };
4827
4827
  }, onSettled: () => {
4828
4828
  e.invalidateQueries({ queryKey: t });
4829
- } }), na = ({
4829
+ } }), ta = ({
4830
4830
  queryClient: e,
4831
4831
  queryKey: t,
4832
4832
  mutationFn: n
@@ -4852,7 +4852,7 @@ const Gr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4852
4852
  onError: (i, u, a) => {
4853
4853
  e.setQueryData(t, a.previousActivity);
4854
4854
  }
4855
- }), sa = ({
4855
+ }), na = ({
4856
4856
  queryClient: e,
4857
4857
  queryKey: t,
4858
4858
  mutationFn: n
@@ -4871,7 +4871,7 @@ const Gr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4871
4871
  })), { previousActivity: u };
4872
4872
  }, onError: (i, u, a) => {
4873
4873
  e.setQueryData(t, a.previousActivity);
4874
- } }), ra = ({
4874
+ } }), sa = ({
4875
4875
  queryClient: e,
4876
4876
  queryKey: t,
4877
4877
  mutationFn: n
@@ -4898,7 +4898,7 @@ const Gr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4898
4898
  ...a,
4899
4899
  latest_reactions: { reply: l }
4900
4900
  })), { previousActivity: a };
4901
- } }), aa = ({
4901
+ } }), ra = ({
4902
4902
  queryClient: e,
4903
4903
  queryKey: t,
4904
4904
  user: n,
@@ -4937,7 +4937,7 @@ const Gr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4937
4937
  ...o,
4938
4938
  latest_reactions: { reply: d }
4939
4939
  })), { previousActivity: o };
4940
- } }), oa = ({
4940
+ } }), aa = ({
4941
4941
  queryClient: e,
4942
4942
  queryKey: t,
4943
4943
  mutationFn: n
@@ -4960,7 +4960,7 @@ const Gr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4960
4960
  onSettled: () => {
4961
4961
  e.invalidateQueries({ queryKey: t });
4962
4962
  }
4963
- }), ia = ({
4963
+ }), oa = ({
4964
4964
  queryClient: e,
4965
4965
  queryKey: t,
4966
4966
  mutationFn: n
@@ -4985,7 +4985,7 @@ const Gr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4985
4985
  ...a,
4986
4986
  latest_reactions: { reply: l }
4987
4987
  })), { previousActivity: a };
4988
- } }), ca = ({
4988
+ } }), ia = ({
4989
4989
  queryClient: e,
4990
4990
  queryKey: t,
4991
4991
  mutationFn: n
@@ -5010,7 +5010,7 @@ const Gr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5010
5010
  ...a,
5011
5011
  latest_reactions: { reply: l }
5012
5012
  })), { previousActivity: a };
5013
- } }), la = ({
5013
+ } }), ca = ({
5014
5014
  queryClient: e,
5015
5015
  queryKey: t,
5016
5016
  mutationFn: n
@@ -5043,7 +5043,7 @@ const Gr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5043
5043
  ...l,
5044
5044
  latest_reactions: { reply: o }
5045
5045
  })), { previousActivity: l };
5046
- } }), da = ({
5046
+ } }), la = ({
5047
5047
  queryClient: e,
5048
5048
  queryKey: t,
5049
5049
  mutationFn: n,
@@ -5084,7 +5084,7 @@ const Gr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5084
5084
  ...o,
5085
5085
  latest_reactions: { reply: d }
5086
5086
  })), { previousActivity: o };
5087
- } }), ua = ({
5087
+ } }), da = ({
5088
5088
  basePath: e,
5089
5089
  parentId: t,
5090
5090
  replyParentId: n,
@@ -5093,29 +5093,29 @@ const Gr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5093
5093
  replies: i,
5094
5094
  functions: { create: u, edit: a, remove: l, join: o, leave: d, like: m, unlike: h }
5095
5095
  }) => {
5096
- const p = D(), g = wt(), b = je($e), v = je(Et), E = oa({
5096
+ const p = D(), g = wt(), b = je($e), v = je(Et), E = aa({
5097
5097
  queryClient: g,
5098
5098
  queryKey: [e, t, r],
5099
5099
  mutationFn: async (j) => u({ replyId: n, content: j.body })
5100
- }), { mutate: k } = ie(E), _ = ia({
5100
+ }), { mutate: k } = ie(E), _ = oa({
5101
5101
  queryClient: g,
5102
5102
  queryKey: [e, t, r],
5103
5103
  mutationFn: a
5104
5104
  }), {
5105
5105
  mutate: T
5106
- } = ie(_), C = ca({
5106
+ } = ie(_), C = ia({
5107
5107
  queryClient: g,
5108
5108
  queryKey: [e, t, r],
5109
5109
  mutationFn: async ({ replyId: j }) => l({ replyId: j })
5110
5110
  }), {
5111
5111
  mutate: R
5112
- } = ie(C), V = la({
5112
+ } = ie(C), V = ca({
5113
5113
  queryClient: g,
5114
5114
  queryKey: [e, t, r],
5115
5115
  mutationFn: m
5116
5116
  }), {
5117
5117
  mutate: N
5118
- } = ie(V), P = da({
5118
+ } = ie(V), P = la({
5119
5119
  queryClient: g,
5120
5120
  queryKey: [e, t, r],
5121
5121
  user: b,
@@ -5130,7 +5130,7 @@ const Gr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5130
5130
  [G]
5131
5131
  );
5132
5132
  return /* @__PURE__ */ s.jsx(
5133
- Gr,
5133
+ Yr,
5134
5134
  {
5135
5135
  count: c,
5136
5136
  showRepliesButton: c > 0 || v.showForm,
@@ -5215,7 +5215,7 @@ const Gr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5215
5215
  ] })
5216
5216
  }
5217
5217
  );
5218
- }, ma = ({
5218
+ }, ua = ({
5219
5219
  basePath: e,
5220
5220
  parentId: t,
5221
5221
  activityId: n,
@@ -5223,29 +5223,29 @@ const Gr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5223
5223
  isMember: c,
5224
5224
  functions: { create: i, edit: u, remove: a, like: l, unlike: o, join: d, leave: m }
5225
5225
  }) => {
5226
- const h = D(), p = wt(), g = je($e), b = ta({
5226
+ const h = D(), p = wt(), g = je($e), b = ea({
5227
5227
  queryClient: p,
5228
5228
  queryKey: [e, t, n],
5229
5229
  mutationFn: async (x) => i({ activityId: n, content: x.body })
5230
- }), { mutate: v } = ie(b), E = na({
5230
+ }), { mutate: v } = ie(b), E = ta({
5231
5231
  queryClient: p,
5232
5232
  queryKey: [e, t, n],
5233
5233
  mutationFn: async (x) => u(x)
5234
5234
  }), {
5235
5235
  mutate: k
5236
- } = ie(E), _ = sa({
5236
+ } = ie(E), _ = na({
5237
5237
  queryClient: p,
5238
5238
  queryKey: [e, t, n],
5239
5239
  mutationFn: async ({ replyId: x }) => a({ replyId: x })
5240
5240
  }), {
5241
5241
  mutate: T
5242
- } = ie(_), C = ra({
5242
+ } = ie(_), C = sa({
5243
5243
  queryClient: p,
5244
5244
  queryKey: [e, t, n],
5245
5245
  mutationFn: l
5246
5246
  }), {
5247
5247
  mutate: R
5248
- } = ie(C), V = aa({
5248
+ } = ie(C), V = ra({
5249
5249
  queryClient: p,
5250
5250
  queryKey: [e, t, n],
5251
5251
  user: g,
@@ -5277,7 +5277,7 @@ const Gr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5277
5277
  (r == null ? void 0 : r.length) === 0 || (r == null ? void 0 : r.map((x) => {
5278
5278
  var w, z, X, se, re, ae, q, fe, ue, O, oe, he, ce, xe, pe, be, ge, B, J, le;
5279
5279
  const K = ((w = x == null ? void 0 : x.user) == null ? void 0 : w.id) === (g == null ? void 0 : g.id), j = sn(c, K);
5280
- return /* @__PURE__ */ s.jsx(Ur, { children: /* @__PURE__ */ s.jsx(
5280
+ return /* @__PURE__ */ s.jsx(Hr, { children: /* @__PURE__ */ s.jsx(
5281
5281
  St,
5282
5282
  {
5283
5283
  content: {
@@ -5330,7 +5330,7 @@ const Gr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5330
5330
  comments: {}
5331
5331
  },
5332
5332
  children: /* @__PURE__ */ s.jsx(
5333
- ua,
5333
+ da,
5334
5334
  {
5335
5335
  basePath: e,
5336
5336
  parentId: t,
@@ -5355,7 +5355,7 @@ const Gr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5355
5355
  ) }, x == null ? void 0 : x.id);
5356
5356
  }))
5357
5357
  ] });
5358
- }, fa = ({
5358
+ }, ma = ({
5359
5359
  queryClient: e,
5360
5360
  queryKey: t,
5361
5361
  mutationFn: n
@@ -5379,14 +5379,14 @@ const Gr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5379
5379
  onSettled: () => {
5380
5380
  e.invalidateQueries({ queryKey: t });
5381
5381
  }
5382
- }), ha = ({
5382
+ }), fa = ({
5383
5383
  queryClient: e,
5384
5384
  queryKey: t,
5385
5385
  redirectUrl: n,
5386
5386
  mutationFn: r
5387
5387
  }) => ({ mutationFn: r, onSuccess: () => {
5388
5388
  e.invalidateQueries({ queryKey: t }), window.location.href = n;
5389
- } }), pa = ({
5389
+ } }), ha = ({
5390
5390
  queryClient: e,
5391
5391
  queryKey: t,
5392
5392
  mutationFn: n
@@ -5406,7 +5406,7 @@ const Gr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5406
5406
  })), { previousActivity: l };
5407
5407
  }, onSettled: () => {
5408
5408
  e.invalidateQueries({ queryKey: t });
5409
- } }), ga = ({
5409
+ } }), pa = ({
5410
5410
  queryClient: e,
5411
5411
  queryKey: t,
5412
5412
  user: n,
@@ -5467,24 +5467,24 @@ const io = ({
5467
5467
  } = $n({
5468
5468
  queryKey: [e, t, n],
5469
5469
  queryFn: c
5470
- }), R = fa({
5470
+ }), R = ma({
5471
5471
  queryClient: k,
5472
5472
  queryKey: [e, t, n],
5473
5473
  mutationFn: async (te) => await i(te)
5474
5474
  }), {
5475
5475
  mutate: V
5476
- } = ie(R), N = ha({
5476
+ } = ie(R), N = fa({
5477
5477
  queryClient: k,
5478
5478
  queryKey: [e, t, n],
5479
5479
  mutationFn: async ({ activityId: te }) => u({ activityId: te }),
5480
5480
  redirectUrl: `${e}/${t}`
5481
- }), { mutate: P } = ie(N), G = pa({
5481
+ }), { mutate: P } = ie(N), G = ha({
5482
5482
  queryClient: k,
5483
5483
  queryKey: [e, t, n],
5484
5484
  mutationFn: a
5485
5485
  }), {
5486
5486
  mutate: x
5487
- } = ie(G), K = ga({
5487
+ } = ie(G), K = pa({
5488
5488
  queryClient: k,
5489
5489
  queryKey: [e, t, n],
5490
5490
  user: E,
@@ -5574,7 +5574,7 @@ const io = ({
5574
5574
  ")"
5575
5575
  ] }),
5576
5576
  /* @__PURE__ */ s.jsx(
5577
- ma,
5577
+ ua,
5578
5578
  {
5579
5579
  basePath: e,
5580
5580
  parentId: t,
@@ -5602,7 +5602,7 @@ const io = ({
5602
5602
  jobTitle: t,
5603
5603
  organization: r,
5604
5604
  image: { thumbnail: c }
5605
- }), _a = ({ type: e, data: t }) => {
5605
+ }), ga = ({ type: e, data: t }) => {
5606
5606
  const n = D(), {
5607
5607
  answers: r,
5608
5608
  createdAt: c,
@@ -5718,7 +5718,7 @@ const io = ({
5718
5718
  },
5719
5719
  gtmEvent: "learning-hub"
5720
5720
  }
5721
- }, xa = ({ data: e, cta: t, link: n, gtmContext: r }) => {
5721
+ }, _a = ({ data: e, cta: t, link: n, gtmContext: r }) => {
5722
5722
  var g;
5723
5723
  const c = D(), [i, u] = L({
5724
5724
  loading: !1,
@@ -5790,16 +5790,16 @@ const io = ({
5790
5790
  person: "user",
5791
5791
  speech: "speech-bubble_round",
5792
5792
  star: "star_empty_thin"
5793
- }, ba = (e) => {
5793
+ }, xa = (e) => {
5794
5794
  let t = e;
5795
5795
  return Object.keys(En).includes(e) && (t = En[e]), `url(${mt}icons/${t}.svg)`;
5796
5796
  };
5797
- const wa = {
5797
+ const ba = {
5798
5798
  title: 66,
5799
5799
  text: 3e3,
5800
5800
  secondaryText: 1e3,
5801
5801
  partner: 25
5802
- }, va = ({
5802
+ }, wa = ({
5803
5803
  id: e = "",
5804
5804
  card: t,
5805
5805
  buildCardData: n,
@@ -5834,7 +5834,7 @@ const wa = {
5834
5834
  className: v,
5835
5835
  length: E,
5836
5836
  gtmEvent: k
5837
- } = _t[g], _ = Rn(`card_label_${g}`) ? u.formatMessage({ id: `card_label_${g}` }) : !1, T = m.slug ? `${b}${m.slug}` : !1, C = { ...wa, ...E };
5837
+ } = _t[g], _ = Rn(`card_label_${g}`) ? u.formatMessage({ id: `card_label_${g}` }) : !1, T = m.slug ? `${b}${m.slug}` : !1, C = { ...ba, ...E };
5838
5838
  let R = { className: "card" };
5839
5839
  T && (R = {
5840
5840
  href: T,
@@ -5843,7 +5843,7 @@ const wa = {
5843
5843
  "data-gtm-event-type": `${k}-click`,
5844
5844
  "data-testid": "link"
5845
5845
  }, m.openInNewTab && (R.target = "_blank"));
5846
- const V = m.customIcon ? { "--custom-icon": ba(m.customIcon) } : {};
5846
+ const V = m.customIcon ? { "--custom-icon": xa(m.customIcon) } : {};
5847
5847
  return /* @__PURE__ */ s.jsx(
5848
5848
  "li",
5849
5849
  {
@@ -5901,17 +5901,17 @@ const wa = {
5901
5901
  const G = Bs(N);
5902
5902
  return /* @__PURE__ */ s.jsx("p", { className: G, "data-testid": G, children: Qe(P, C[N]) }, N);
5903
5903
  }),
5904
- /* @__PURE__ */ s.jsx(_a, { type: v || "", data: m }),
5905
- /* @__PURE__ */ s.jsx(xa, { data: m, cta: r, link: T || "", gtmContext: c })
5904
+ /* @__PURE__ */ s.jsx(ga, { type: v || "", data: m }),
5905
+ /* @__PURE__ */ s.jsx(_a, { data: m, cta: r, link: T || "", gtmContext: c })
5906
5906
  ] })
5907
5907
  )
5908
5908
  }
5909
5909
  );
5910
5910
  };
5911
- const ka = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__ */ s.jsx("ul", { className: $("card-block", n), children: e.map((c, i) => {
5911
+ const va = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__ */ s.jsx("ul", { className: $("card-block", n), children: e.map((c, i) => {
5912
5912
  const u = c.slug ? `${c.slug}-${t[i]}` : `${t[i]}-${i}`;
5913
5913
  return /* @__PURE__ */ s.jsx(
5914
- va,
5914
+ wa,
5915
5915
  {
5916
5916
  id: u,
5917
5917
  card: { ...c, contentType: t[i] },
@@ -5969,13 +5969,13 @@ const lt = "notFoundError_", lo = () => {
5969
5969
  return Sn.forEach((n, r) => {
5970
5970
  n.title = e.formatMessage({ id: `${lt}post_${r + 1}` }), t.push("solutionArticle");
5971
5971
  }), /* @__PURE__ */ s.jsxs(
5972
- Br,
5972
+ Ir,
5973
5973
  {
5974
5974
  styling: { background: "bold", circle: "small", variant: "alt-2" },
5975
5975
  additionalContent: {
5976
5976
  appended: /* @__PURE__ */ s.jsxs(en, { children: [
5977
5977
  /* @__PURE__ */ s.jsx(
5978
- ka,
5978
+ va,
5979
5979
  {
5980
5980
  cards: Sn,
5981
5981
  cardTypes: t,
@@ -6002,70 +6002,70 @@ export {
6002
6002
  oo as ActivitiesFeed,
6003
6003
  io as ActivitySection,
6004
6004
  nn as AddPost,
6005
- Qa as BannerSection,
6005
+ Ba as BannerSection,
6006
6006
  Ga as Breadcrumbs,
6007
6007
  U as Button,
6008
6008
  kt as ButtonWrapper,
6009
- gr as CacheProvider,
6009
+ pr as CacheProvider,
6010
6010
  Ln as CollapsibleSection,
6011
- Dr as Columns,
6011
+ Nr as Columns,
6012
6012
  Ya as CommunityDetails,
6013
6013
  Hn as Contributors,
6014
6014
  Et as ConversationContext,
6015
- Cr as CookieBanner,
6016
- Ur as DiscussionConversation,
6015
+ Dr as CookieBanner,
6016
+ Hr as DiscussionConversation,
6017
6017
  Kn as DiscussionForm,
6018
- Vr as DiscussionLikes,
6018
+ zr as DiscussionLikes,
6019
6019
  St as DiscussionPost,
6020
- Gr as DiscussionThread,
6020
+ Yr as DiscussionThread,
6021
6021
  Ue as Divider,
6022
- Ia as DownloadSection,
6022
+ Oa as DownloadSection,
6023
6023
  Ze as EMAILS,
6024
6024
  qa as EmailHelperTextBox,
6025
6025
  yt as EmptyStateBox,
6026
6026
  Ja as Filters,
6027
- br as FlagsProvider,
6027
+ xr as FlagsProvider,
6028
6028
  zn as Footer,
6029
6029
  en as FullWidthSection,
6030
6030
  Va as GlobalProviders,
6031
6031
  Jn as Header,
6032
6032
  er as HelperTextBox,
6033
6033
  Nn as HiddenFromScreenReaders,
6034
- Wa as HideShowTextBox,
6034
+ Ua as HideShowTextBox,
6035
6035
  Re as HighlightedTextBox,
6036
- wr as IntlProvider,
6037
- Fr as InviteForm,
6036
+ br as IntlProvider,
6037
+ Rr as InviteForm,
6038
6038
  no as InviteModal,
6039
6039
  Un as JoinButton,
6040
6040
  Xa as LanguageSwitcher,
6041
6041
  jt as Link,
6042
- jr as LoadMore,
6043
- za as LoadingBlock,
6042
+ kr as LoadMore,
6043
+ Wa as LoadingBlock,
6044
6044
  Se as LoadingPlaceholder,
6045
- fr as LoadingState,
6045
+ za as LoadingState,
6046
6046
  Wn as Logo,
6047
- Ba as LogoSection,
6047
+ Ia as LogoSection,
6048
6048
  bn as MarkdownText,
6049
- Ha as MarketingBox,
6049
+ Qa as MarketingBox,
6050
6050
  tn as Member,
6051
6051
  ro as MembersList,
6052
6052
  Xn as Modal,
6053
- yr as MoreMenu,
6054
- Ua as NUMBER_OF_USERS,
6055
- $r as NavigationMenu,
6053
+ jr as MoreMenu,
6054
+ Ha as NUMBER_OF_USERS,
6055
+ Sr as NavigationMenu,
6056
6056
  lo as NotFoundError,
6057
6057
  Zn as Overlay,
6058
6058
  lr as PageHeading,
6059
- Br as PageLayout,
6059
+ Ir as PageLayout,
6060
6060
  eo as PasswordRules,
6061
6061
  ft as Pill,
6062
6062
  qe as ProfilePicture,
6063
6063
  ur as ProgressBar,
6064
6064
  to as Rating,
6065
- ma as RepliesFeed,
6065
+ ua as RepliesFeed,
6066
6066
  ao as ResponsesHeading,
6067
6067
  Fn as ResponsiveImage,
6068
- Rr as SearchForm,
6068
+ Pr as SearchForm,
6069
6069
  Za as ShareLinks,
6070
6070
  cr as Span,
6071
6071
  Xt as StatusBanner,
@@ -6073,9 +6073,9 @@ export {
6073
6073
  Zs as Tooltip,
6074
6074
  Ka as TopLevelPage,
6075
6075
  $e as UserContext,
6076
- vr as UserProvider,
6076
+ wr as UserProvider,
6077
6077
  _e as VisuallyHidden,
6078
- Or as addAriaProps,
6078
+ Lr as addAriaProps,
6079
6079
  Qn as getMember,
6080
6080
  pt as headerData,
6081
6081
  co as mapGetStreamData,
@@ -6083,5 +6083,5 @@ export {
6083
6083
  He as useEffectAfterMount,
6084
6084
  vt as useElementWidth,
6085
6085
  Os as useScrollListener,
6086
- Oa as useScrollToHash
6086
+ La as useScrollToHash
6087
6087
  };