@apolitical/component-library 1.14.10 → 1.14.11-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.mjs CHANGED
@@ -807,7 +807,7 @@ const vt = (e = !0, t = !1, n = "window") => {
807
807
  l();
808
808
  }, 250);
809
809
  return c;
810
- }, La = (e = [], t = !0) => {
810
+ }, Oa = (e = [], t = !0) => {
811
811
  e = Array.isArray(e) ? e : [e];
812
812
  const n = de(!1);
813
813
  He(() => {
@@ -818,12 +818,6 @@ const vt = (e = !0, t = !1, n = "window") => {
818
818
  r && (r.scrollIntoView(t ? { behavior: "smooth" } : null), n.current = !0);
819
819
  }
820
820
  }, e);
821
- }, Is = (e, t) => {
822
- Array.isArray(t) || (t = [t]);
823
- const n = _s(e);
824
- return t.forEach(({ type: r, value: c }) => {
825
- xs(n, r, c);
826
- }), n;
827
821
  }, Cn = (e) => {
828
822
  const t = [];
829
823
  return e.forEach((n) => {
@@ -840,7 +834,7 @@ const vt = (e = !0, t = !1, n = "window") => {
840
834
  break;
841
835
  }
842
836
  return r;
843
- }, Bs = (e) => e.replace(/[A-Z]/g, (t) => `-${t.toLowerCase()}`), Qs = (e, t = "en") => new Date(e).toLocaleString(t, { day: "numeric", month: "short" }), Pn = (e, t = "en") => new Date(e).toLocaleString(t, {
837
+ }, Is = (e) => e.replace(/[A-Z]/g, (t) => `-${t.toLowerCase()}`), Bs = (e, t = "en") => new Date(e).toLocaleString(t, { day: "numeric", month: "short" }), Pn = (e, t = "en") => new Date(e).toLocaleString(t, {
844
838
  weekday: "long",
845
839
  day: "numeric",
846
840
  month: "short",
@@ -859,7 +853,7 @@ const vt = (e = !0, t = !1, n = "window") => {
859
853
  return { path: "days", number: a };
860
854
  const l = Math.floor(a / 7);
861
855
  return l <= 52 ? { path: "weeks", number: l } : { path: "years", number: Math.floor(a / 365) };
862
- }, Hs = (e) => new Promise((t) => setTimeout(t, e)), qt = {
856
+ }, qt = {
863
857
  apolitical: "Apolitical",
864
858
  breadcrumbs_label: "Go back to:",
865
859
  breadcrumbs_currentPage: "Current page:",
@@ -1176,35 +1170,35 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1176
1170
  signup_success_text: "<p>Once we've vetted your application, you'll get a secure login link to help you get started.</p><p>Please note that trust is everything to our community, so you can't login until your identity has been verified.</p>",
1177
1171
  tags_community: "From the community",
1178
1172
  tooltip_loading: "Loading..."
1179
- }, Us = {
1173
+ }, Qs = {
1180
1174
  languageSwitcher_label: "Me gustaría leer este artículo en...",
1181
1175
  languageSwitcher_translation_original: "idioma original",
1182
1176
  languageSwitcher_translation_human: "traducido por un humano",
1183
1177
  languageSwitcher_translation_machine: "traducido por máquina",
1184
1178
  languageSwitcher_disclaimer: "Este contenido fue traducido automáticamente y ocasionalmente tendrá errores de género u otras traducciones directas. Estamos intentando resolver este problema, pero mientras tanto, si notas algún error grave, escríbenos a <link>{email}</link>"
1185
- }, Ws = {
1179
+ }, Hs = {
1186
1180
  collapsibleSection_summary: "En savoir plus",
1187
1181
  languageSwitcher_label: "Je voudrais lire cet article dans...",
1188
1182
  languageSwitcher_translation_original: "langue originale",
1189
1183
  languageSwitcher_translation_human: "traduit par un humain",
1190
1184
  languageSwitcher_translation_machine: "traduit par machine",
1191
1185
  languageSwitcher_disclaimer: "Ce contenu est traduit automatiquement et contiendra d’évantuelles erreurs de genre ou d’autres traductions directes. Nous essayons de résoudre ce problème, mais en attendant, si vous remarquez une erreur importante, faites-le nous savoir à <link>{email}</link>"
1192
- }, zs = {
1186
+ }, Us = {
1193
1187
  languageSwitcher_label: "Eu gostaria de ler este artigo em...",
1194
1188
  languageSwitcher_translation_original: "linguagem original",
1195
1189
  languageSwitcher_translation_human: "traduzido por um humano",
1196
1190
  languageSwitcher_translation_machine: "traduzido por máquina",
1197
1191
  languageSwitcher_disclaimer: "Este conteúdo foi traduzido automaticamente e, ocasionalmente, poderão ocorrer erros de linguagem de gênero ou outras traduções diretas. Estamos tentando resolver isso, porém se perceber algo errado por favor nos avise em <link>{email}</link>"
1198
- }, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1192
+ }, Ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1199
1193
  __proto__: null,
1200
1194
  en: qt,
1201
- es: Us,
1202
- fr: Ws,
1203
- pt: zs
1195
+ es: Qs,
1196
+ fr: Hs,
1197
+ pt: Us
1204
1198
  }, Symbol.toStringTag, { value: "Module" })), Rn = (e) => e in qt, Te = (e, t, n, r, c = {}) => {
1205
1199
  let i = "";
1206
1200
  return Rn(`${t}_${n}`) ? i = e({ id: `${t}_${n}` }, c) : i = e({ id: t }, { [r]: n, ...c }), i;
1207
- }, Ys = (e, t, n) => {
1201
+ }, zs = (e, t, n) => {
1208
1202
  if (!e || e === 0)
1209
1203
  return "0";
1210
1204
  t || (t = 0), n || (n = ["k", "m", "b", "t"]);
@@ -1218,9 +1212,20 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1218
1212
  }
1219
1213
  }
1220
1214
  return r;
1221
- }, ut = (e, t) => A.Children.map(e, (n) => A.cloneElement(n, {
1215
+ }, Vs = (e = 0) => {
1216
+ setTimeout(() => {
1217
+ const t = document.querySelector(".splash-screen");
1218
+ t && t.remove(), window.prerenderReady = !0;
1219
+ }, e);
1220
+ }, Ys = (e) => e.replace(/\s+/g, "").length > 0, Gs = (e, t) => {
1221
+ Array.isArray(t) || (t = [t]);
1222
+ const n = _s(e);
1223
+ return t.forEach(({ type: r, value: c }) => {
1224
+ xs(n, r, c);
1225
+ }), n;
1226
+ }, Js = (e) => new Promise((t) => setTimeout(t, e)), ut = (e, t) => A.Children.map(e, (n) => A.cloneElement(n, {
1222
1227
  ...t
1223
- })), Gs = (e) => e.replace(/\s+/g, "").length > 0, U = ({
1228
+ })), U = ({
1224
1229
  variant: e = "primary",
1225
1230
  size: t = "medium",
1226
1231
  styling: n = { muted: !1, fullWidth: !1 },
@@ -1391,17 +1396,17 @@ const Ue = ({ className: e = "", maxWidth: t = !1 }) => {
1391
1396
  ],
1392
1397
  sizes: "(min-width: 1024px) 453px, 20vw"
1393
1398
  }
1394
- }, Js = ({
1399
+ }, Xs = ({
1395
1400
  aspect: e,
1396
1401
  range: t,
1397
1402
  sizes: n
1398
1403
  }) => {
1399
1404
  const { range: r, sizes: c } = e ? _n[e] : _n.fallback;
1400
1405
  return { range: t && t.length > 0 ? t : r, sizes: n || c };
1401
- }, Xs = ({ format: e, height: t, query: n, width: r }) => {
1406
+ }, Zs = ({ format: e, height: t, query: n, width: r }) => {
1402
1407
  let c = `w=${r}&h=${t}`;
1403
1408
  return c = e ? `${c}&fm=${e}` : c, c = n ? `${c}&${n}` : c, c;
1404
- }, Ct = ({ format: e, range: t, url: n, query: r }) => t.map(({ height: c, width: i }) => `${n}?${Xs({
1409
+ }, Ct = ({ format: e, range: t, url: n, query: r }) => t.map(({ height: c, width: i }) => `${n}?${Zs({
1405
1410
  format: e,
1406
1411
  height: c,
1407
1412
  query: r,
@@ -1418,7 +1423,7 @@ const Fn = ({ image: e, className: t, testId: n }) => {
1418
1423
  loading: o,
1419
1424
  decoding: d,
1420
1425
  fetchPriority: m
1421
- } = e, { range: h, sizes: p } = Js(e), g = Ct({ format: "avif", query: u, range: h, url: a }), b = Ct({ format: "webp", query: u, range: h, url: a }), v = Ct({ format: "", query: u, range: h, url: a });
1426
+ } = e, { range: h, sizes: p } = Xs(e), g = Ct({ format: "avif", query: u, range: h, url: a }), b = Ct({ format: "webp", query: u, range: h, url: a }), v = Ct({ format: "", query: u, range: h, url: a });
1422
1427
  return /* @__PURE__ */ s.jsxs("picture", { className: t, children: [
1423
1428
  i !== "image/gif" && /* @__PURE__ */ s.jsx(
1424
1429
  "source",
@@ -1456,7 +1461,7 @@ const Fn = ({ image: e, className: t, testId: n }) => {
1456
1461
  ] });
1457
1462
  };
1458
1463
  let Je = !1;
1459
- const Zs = ({ isOpen: e = !1, isLoading: t = !1, children: n }) => {
1464
+ const Ks = ({ isOpen: e = !1, isLoading: t = !1, children: n }) => {
1460
1465
  const r = D(), c = de(null), [i, u] = L("hidden");
1461
1466
  Y(() => {
1462
1467
  const l = c.current;
@@ -1477,7 +1482,7 @@ const Zs = ({ isOpen: e = !1, isLoading: t = !1, children: n }) => {
1477
1482
  }, [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
1483
  };
1479
1484
  const en = ({ children: e, className: t = "", ...n }) => /* @__PURE__ */ s.jsx("section", { className: $("full-width-section", t), ...n, children: e });
1480
- const Oa = ({ text: e, buttons: t, className: n = "" }) => {
1485
+ const Ia = ({ text: e, buttons: t, className: n = "" }) => {
1481
1486
  const r = [];
1482
1487
  return t.forEach((c) => {
1483
1488
  r.push({
@@ -1495,7 +1500,7 @@ const Oa = ({ text: e, buttons: t, className: n = "" }) => {
1495
1500
  /* @__PURE__ */ s.jsx(kt, { buttons: r })
1496
1501
  ] }) });
1497
1502
  };
1498
- const Ia = ({ title: e = !1, logos: t = [], className: n = "" }) => {
1503
+ const Ba = ({ title: e = !1, logos: t = [], className: n = "" }) => {
1499
1504
  const r = t.length;
1500
1505
  if (r === 0)
1501
1506
  return null;
@@ -1540,7 +1545,7 @@ const Ia = ({ title: e = !1, logos: t = [], className: n = "" }) => {
1540
1545
  )
1541
1546
  ] });
1542
1547
  };
1543
- const Ks = [
1548
+ const qs = [
1544
1549
  "small",
1545
1550
  "span",
1546
1551
  "strong",
@@ -1554,7 +1559,7 @@ const Ks = [
1554
1559
  "h6",
1555
1560
  "blockquote",
1556
1561
  "q"
1557
- ], qs = ({
1562
+ ], er = ({
1558
1563
  className: e = "",
1559
1564
  content: t,
1560
1565
  image: n,
@@ -1572,7 +1577,7 @@ const Ks = [
1572
1577
  if (typeof t[d] == "object") {
1573
1578
  o[d] = t[d];
1574
1579
  const { text: m, element: h } = t[d];
1575
- if (h && Ks.includes(h.toLowerCase()))
1580
+ if (h && qs.includes(h.toLowerCase()))
1576
1581
  return;
1577
1582
  o[d] = {
1578
1583
  text: m,
@@ -1624,8 +1629,8 @@ const Ks = [
1624
1629
  ] })
1625
1630
  }
1626
1631
  );
1627
- }, Ba = We(qs);
1628
- const Qa = ({
1632
+ }, Qa = We(er);
1633
+ const Ha = ({
1629
1634
  variant: e = "primary",
1630
1635
  button: t = null,
1631
1636
  title: n,
@@ -1642,7 +1647,7 @@ const Qa = ({
1642
1647
  default: "dpo@apolitical.co",
1643
1648
  eu: "dpo.agl@apolitical.foundation"
1644
1649
  }
1645
- }, Ha = "200,000+";
1650
+ }, Ua = "200,000+";
1646
1651
  const Ln = ({ label: e = !1, className: t = "", children: n }) => {
1647
1652
  const r = D();
1648
1653
  return /* @__PURE__ */ s.jsxs("details", { className: $("collapsible-section", t), children: [
@@ -1691,7 +1696,7 @@ const yt = ({
1691
1696
  const Jt = ({ children: e, ...t }) => /* @__PURE__ */ s.jsx("p", { ...t, children: e }), On = { q: Jt, blockquote: Jt };
1692
1697
  for (let e = 1; e <= 6; e++)
1693
1698
  On[`h${e}`] = { component: Jt, props: { className: "title" } };
1694
- const er = ({ type: e = "default", className: t = "", heading: n = !1, children: r }) => /* @__PURE__ */ s.jsxs("div", { className: $("helper-text-box text-small", e, t), children: [
1699
+ const tr = ({ type: e = "default", className: t = "", heading: n = !1, children: r }) => /* @__PURE__ */ s.jsxs("div", { className: $("helper-text-box text-small", e, t), children: [
1695
1700
  n && /* @__PURE__ */ s.jsx("p", { className: "title", children: n }),
1696
1701
  typeof r == "string" ? /* @__PURE__ */ s.jsx(
1697
1702
  bt,
@@ -1705,7 +1710,7 @@ const er = ({ type: e = "default", className: t = "", heading: n = !1, children:
1705
1710
  }
1706
1711
  ) : /* @__PURE__ */ s.jsx("p", { children: r })
1707
1712
  ] });
1708
- const Ua = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children: c }) => {
1713
+ const Wa = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children: c }) => {
1709
1714
  const i = D(), u = de(null), [a, l] = L(""), [o, d] = L("closed");
1710
1715
  Y(() => {
1711
1716
  const p = u.current;
@@ -1748,7 +1753,7 @@ const Ua = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
1748
1753
  }
1749
1754
  ) })
1750
1755
  ] });
1751
- }, tr = () => A.Fragment, nr = ({ children: e }) => /* @__PURE__ */ s.jsx(Re, { variant: "secondary", children: e }), sr = ["span", "strong", "h1", "h2", "h3", "h4", "h5", "h6", "p"], rr = ({ children: e }) => {
1756
+ }, nr = () => A.Fragment, sr = ({ children: e }) => /* @__PURE__ */ s.jsx(Re, { variant: "secondary", children: e }), rr = ["span", "strong", "h1", "h2", "h3", "h4", "h5", "h6", "p"], ar = ({ children: e }) => {
1752
1757
  const t = D();
1753
1758
  if (!e)
1754
1759
  return null;
@@ -1761,7 +1766,7 @@ const Ua = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
1761
1766
  for (const u of zt.toArray(i.props.children))
1762
1767
  if (!(!u || typeof u == "string" || typeof u == "number") && A.isValidElement(u)) {
1763
1768
  const a = u.type;
1764
- if (sr.includes(a)) {
1769
+ if (rr.includes(a)) {
1765
1770
  for (n = u.props.children; typeof n != "string" && (Array.isArray(n) && n[0].props && n[0].props.children && n[0].props.children[0]); )
1766
1771
  n = n[0].props.children[0];
1767
1772
  break;
@@ -1779,7 +1784,7 @@ const Ua = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
1779
1784
  children: r.map((i) => i)
1780
1785
  }
1781
1786
  );
1782
- }, ar = ({ children: e, ...t }) => {
1787
+ }, or = ({ children: e, ...t }) => {
1783
1788
  if (t.class)
1784
1789
  switch (t.class) {
1785
1790
  case "casestudy":
@@ -1793,7 +1798,7 @@ const Ua = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
1793
1798
  return /* @__PURE__ */ s.jsx("div", { ...t, children: e });
1794
1799
  }
1795
1800
  return /* @__PURE__ */ s.jsx("div", { ...t, children: e });
1796
- }, or = (e) => {
1801
+ }, ir = (e) => {
1797
1802
  const t = D(), n = Date.now().toString();
1798
1803
  let r = "default";
1799
1804
  const c = e.src;
@@ -1805,7 +1810,7 @@ const Ua = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
1805
1810
  }, xn = (e) => {
1806
1811
  let t = "";
1807
1812
  return e && typeof e != "string" && typeof e != "number" && typeof e != "boolean" && "type" in e && (t = e.type), t;
1808
- }, ir = ({ children: e, ...t }) => {
1813
+ }, cr = ({ children: e, ...t }) => {
1809
1814
  let n = { ...t };
1810
1815
  t.href && (t.href.includes("http:") || t.href.includes("https:")) && !t.target && (n.target = "_blank");
1811
1816
  let r = e, c = !1;
@@ -1820,30 +1825,30 @@ const Ua = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
1820
1825
  break;
1821
1826
  }
1822
1827
  return c ? (n = { ...n, className: "button primary medium" }, /* @__PURE__ */ s.jsx("p", { className: "center", children: /* @__PURE__ */ s.jsx(U, { variant: "primary", size: "medium", ...n, children: r }) })) : /* @__PURE__ */ s.jsx("a", { ...n, children: r });
1823
- }, cr = ({ children: e }) => /* @__PURE__ */ s.jsx("span", { children: e });
1828
+ }, lr = ({ children: e }) => /* @__PURE__ */ s.jsx("span", { children: e });
1824
1829
  const bn = ({ className: e = "", options: t = {}, children: n }) => {
1825
1830
  n = n.replace(/^<br\/?>/, "");
1826
1831
  const r = {
1827
1832
  wrapper: A.Fragment,
1828
1833
  forceBlock: !0,
1829
1834
  overrides: {
1830
- a: ir,
1835
+ a: cr,
1831
1836
  // Override psuedo-code
1832
1837
  // We give the content team psuedo-code short cuts to use in Contentful
1833
1838
  CollapsibleSection: Ln,
1834
1839
  TextBox: Re,
1835
- CaseStudy: nr,
1840
+ CaseStudy: sr,
1836
1841
  // Override embedded HTML
1837
1842
  // Our content team previously used real HTML, which we need to tear out and replace with React components
1838
- style: tr,
1839
- details: rr,
1840
- div: ar,
1841
- iframe: or
1843
+ style: nr,
1844
+ details: ar,
1845
+ div: or,
1846
+ iframe: ir
1842
1847
  }
1843
1848
  };
1844
1849
  return /* @__PURE__ */ s.jsx("div", { className: $("markdown-text", e), children: /* @__PURE__ */ s.jsx(bt, { options: { ...r, ...t }, children: n }) });
1845
1850
  };
1846
- const lr = ({
1851
+ const dr = ({
1847
1852
  maxWidth: e = !1,
1848
1853
  title: t,
1849
1854
  subtitle: n,
@@ -1871,11 +1876,11 @@ const ft = ({
1871
1876
  ...c
1872
1877
  }) => /* @__PURE__ */ s.jsx("span", { className: $("pill", e, t, n), ...c, children: r });
1873
1878
  const Xt = ({ element: e = "p", children: t = null, className: n = "", ...r }) => A.createElement(e, { ...r, className: $("status-banner text-small", n), "aria-live": "assertive" }, t);
1874
- const dr = ({ progress: e = 0, text: t = !1, className: n = "" }) => {
1879
+ const ur = ({ progress: e = 0, text: t = !1, className: n = "" }) => {
1875
1880
  const r = D(), c = e > 75 ? 100 : e > 50 ? 75 : e > 25 ? 50 : e > 5 ? 25 : 0, i = { "--progress": `${e}%` };
1876
1881
  return /* @__PURE__ */ s.jsx("span", { className: $(`progress-bar section-${c}`, n), style: i, children: /* @__PURE__ */ s.jsx(_e, { children: t ? `${e} ${t}` : r.formatMessage({ id: "progressBar" }, { number: e }) }) });
1877
- }, ur = We(dr);
1878
- const At = "loadingBlock_", mr = ({ progress: e = 0, steps: t = !1, className: n = "" }) => {
1882
+ }, mr = We(ur);
1883
+ const At = "loadingBlock_", fr = ({ progress: e = 0, steps: t = !1, className: n = "" }) => {
1879
1884
  const r = D();
1880
1885
  t || (t = {
1881
1886
  0: { text: r.formatMessage({ id: `${At}loading` }) },
@@ -1895,11 +1900,11 @@ const At = "loadingBlock_", mr = ({ progress: e = 0, steps: t = !1, className: n
1895
1900
  style: u,
1896
1901
  children: [
1897
1902
  c && /* @__PURE__ */ s.jsx("span", { className: "step", children: t[c].text }),
1898
- /* @__PURE__ */ s.jsx(ur, { progress: e })
1903
+ /* @__PURE__ */ s.jsx(mr, { progress: e })
1899
1904
  ]
1900
1905
  }
1901
1906
  );
1902
- }, Wa = We(mr);
1907
+ }, za = We(fr);
1903
1908
  const Se = ({ element: e = "div", className: t = "", ...n }) => /* @__PURE__ */ s.jsx(Nn, { element: e, className: $("loading-placeholder", t), ...n });
1904
1909
  const Zt = {
1905
1910
  header: ["logo", "link", "link", "search"],
@@ -1918,10 +1923,10 @@ const Zt = {
1918
1923
  "cards-section",
1919
1924
  "footer"
1920
1925
  ]
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) => {
1926
+ }, 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), Va = ({ 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
1927
  const t = e && e.toUpperCase().split(" ");
1923
1928
  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"], fr = (e) => {
1929
+ }, st = ["#5AB6A3", "#A2D7AF", "#806056", "#3962B3"], hr = (e) => {
1925
1930
  const t = Math.ceil(26 / st.length), n = Bn(e).toLowerCase();
1926
1931
  if (n === "")
1927
1932
  return st[0];
@@ -1948,7 +1953,7 @@ const wn = 256, qe = ({
1948
1953
  if (!h)
1949
1954
  return;
1950
1955
  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 = 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);
1956
+ 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);
1952
1957
  }, [n]);
1953
1958
  let d = !1;
1954
1959
  return t && t !== "" && !a && (t.includes("http") || t.includes("//")) && (d = !0), /* @__PURE__ */ s.jsx(
@@ -1981,7 +1986,7 @@ const wn = 256, qe = ({
1981
1986
  country: e.location && e.location.country || "",
1982
1987
  url: `/profiles/${e.id}`,
1983
1988
  image: e.image && e.image.thumbnail
1984
- }, hr = ({
1989
+ }, pr = ({
1985
1990
  role: e = "",
1986
1991
  organisation: t = "",
1987
1992
  country: n = "",
@@ -2004,7 +2009,7 @@ const tn = ({
2004
2009
  }) => {
2005
2010
  const u = D(), a = Qn(t);
2006
2011
  a.name || (a.name = u.formatMessage({ id: `member_${typeof t == "string" ? t : "community"}` }));
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) : "";
2012
+ 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) : "";
2008
2013
  return A.createElement(e, {
2009
2014
  className: $("member text-medium", i),
2010
2015
  children: /* @__PURE__ */ s.jsxs(
@@ -2075,7 +2080,7 @@ const vn = {
2075
2080
  className: $({ "large-number": b > 99 }),
2076
2081
  children: [
2077
2082
  "+",
2078
- Ys(b, 0)
2083
+ zs(b, 0)
2079
2084
  ]
2080
2085
  }
2081
2086
  ), g = "number-left";
@@ -2085,7 +2090,7 @@ const vn = {
2085
2090
  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
2091
  ] })
2087
2092
  });
2088
- }, pr = ({ showDevTools: e = !0, children: t }) => {
2093
+ }, gr = ({ showDevTools: e = !0, children: t }) => {
2089
2094
  const n = new vs({
2090
2095
  // default options we would like on all queries can be overridden individually
2091
2096
  defaultOptions: {
@@ -2102,15 +2107,15 @@ const vn = {
2102
2107
  e && /* @__PURE__ */ s.jsx(js, { initialIsOpen: !1 })
2103
2108
  ] });
2104
2109
  };
2105
- var gr = Kt({ client: dt });
2106
- function _r(e) {
2110
+ var _r = Kt({ client: dt });
2111
+ function xr(e) {
2107
2112
  var t = e.children, n = e.client, r = e.apiKey, c = e.options, i = xt(function() {
2108
2113
  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
2114
  }, [n, r]);
2110
- return A.createElement(gr.Provider, { value: { client: i } }, t);
2115
+ return A.createElement(_r.Provider, { value: { client: i } }, t);
2111
2116
  }
2112
- const xr = ({ children: e, user: t }) => t.isLoading ? null : process.env.REACT_APP_PUBLIC_POSTHOG_KEY ? /* @__PURE__ */ s.jsx(
2113
- _r,
2117
+ const br = ({ children: e, user: t }) => t.isLoading ? null : process.env.REACT_APP_PUBLIC_POSTHOG_KEY ? /* @__PURE__ */ s.jsx(
2118
+ xr,
2114
2119
  {
2115
2120
  apiKey: atob(process.env.REACT_APP_PUBLIC_POSTHOG_KEY),
2116
2121
  options: {
@@ -2125,17 +2130,19 @@ const xr = ({ children: e, user: t }) => t.isLoading ? null : process.env.REACT_
2125
2130
  },
2126
2131
  children: e
2127
2132
  }
2128
- ) : e, br = ({ children: e, locale: t, messages: n }) => {
2133
+ ) : e, wr = ({ children: e, locale: t, messages: n }) => {
2129
2134
  const r = t || "en", c = {
2130
- ...Vs[r],
2135
+ ...Ws[r],
2131
2136
  ...n || {}
2132
2137
  };
2133
2138
  return /* @__PURE__ */ s.jsx(bs, { locale: r, messages: c, children: e });
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 }) => {
2139
+ }, $e = Kt(null), vr = ({ children: e, user: t }) => /* @__PURE__ */ s.jsx($e.Provider, { value: t, children: e }), Ya = ({ bootstrap: e, children: t, intl: n }) => {
2135
2140
  const [r, c] = L({ isLoading: !0 });
2136
2141
  return Y(() => {
2137
- e().then((i) => c({ ...i, isLoading: !1 })).catch(() => c({ isLoading: !1 }));
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 }) }) }) }) });
2142
+ e().then((i) => {
2143
+ c({ ...i, isLoading: !1 }), Vs(5e3);
2144
+ }).catch(() => c({ isLoading: !1 }));
2145
+ }, []), /* @__PURE__ */ s.jsx(wr, { locale: n == null ? void 0 : n.locale, messages: n == null ? void 0 : n.messages, children: /* @__PURE__ */ s.jsx(ys, { children: /* @__PURE__ */ s.jsx(vr, { user: r, children: /* @__PURE__ */ s.jsx(gr, { children: /* @__PURE__ */ s.jsx(br, { user: r, children: t }) }) }) }) });
2139
2146
  };
2140
2147
  const Pt = "joinCommunityButton", Un = ({ isMember: e = !1, isShort: t = !1, functions: { join: n, leave: r } = { join: () => {
2141
2148
  }, leave: () => {
@@ -2162,7 +2169,7 @@ const Pt = "joinCommunityButton", Un = ({ isMember: e = !1, isShort: t = !1, fun
2162
2169
  }
2163
2170
  );
2164
2171
  };
2165
- const Rt = "communityDetails_", Ya = ({
2172
+ const Rt = "communityDetails_", Ga = ({
2166
2173
  className: e = "",
2167
2174
  isMember: t = !1,
2168
2175
  slug: n,
@@ -2209,7 +2216,7 @@ const Rt = "communityDetails_", Ya = ({
2209
2216
  )
2210
2217
  ] });
2211
2218
  };
2212
- const Ga = ({
2219
+ const Ja = ({
2213
2220
  breadcrumbs: e,
2214
2221
  cutoff: t = 20,
2215
2222
  className: n = ""
@@ -2223,7 +2230,7 @@ const Ga = ({
2223
2230
  ] }, `${window.btoa(c)}_${a}`)) })
2224
2231
  ] });
2225
2232
  };
2226
- const Ja = ({
2233
+ const Xa = ({
2227
2234
  options: e,
2228
2235
  allOption: t = !1,
2229
2236
  allowMultiple: n = !0,
@@ -2250,7 +2257,7 @@ const Ja = ({
2250
2257
  }
2251
2258
  ) }, d);
2252
2259
  }) });
2253
- }, vr = (e, t) => {
2260
+ }, kr = (e, t) => {
2254
2261
  const n = String(e);
2255
2262
  if (!t || !t.length)
2256
2263
  return `/${n}`;
@@ -2259,7 +2266,7 @@ const Ja = ({
2259
2266
  i === "before-lang" ? r += `/${c}` : (r.includes(`/${n}/`) || (r += `/${n}`), r += `/${c}`);
2260
2267
  }), r.includes(`/${n}/`) || (r += `/${n}`), r;
2261
2268
  };
2262
- const Ft = { en: "English", es: "Español", fr: "Français", pt: "Português" }, rt = "languageSwitcher_", Xa = ({
2269
+ const Ft = { en: "English", es: "Español", fr: "Français", pt: "Português" }, rt = "languageSwitcher_", Za = ({
2263
2270
  currentLanguage: e,
2264
2271
  isOriginalLanguage: t = !1,
2265
2272
  isHumanTranslation: n = !1,
@@ -2286,7 +2293,7 @@ const Ft = { en: "English", es: "Español", fr: "Français", pt: "Português" },
2286
2293
  let v = { className: b };
2287
2294
  return d === b ? v["aria-label"] = o.formatMessage({ id: `${rt}selected` }, { language: Ft[b] }) : v = {
2288
2295
  ...v,
2289
- href: vr(b, i),
2296
+ href: kr(b, i),
2290
2297
  onClick: (E) => {
2291
2298
  E.preventDefault(), E.stopPropagation(), m(b), c(b);
2292
2299
  }
@@ -2308,7 +2315,7 @@ const Ft = { en: "English", es: "Español", fr: "Français", pt: "Português" },
2308
2315
  })
2309
2316
  ] });
2310
2317
  };
2311
- const Lt = ws({ locale: "en", messages: qt }), kr = ({
2318
+ const Lt = ws({ locale: "en", messages: qt }), jr = ({
2312
2319
  page: e = 1,
2313
2320
  length: t = 0,
2314
2321
  limit: n = 10,
@@ -2352,7 +2359,7 @@ const Lt = ws({ locale: "en", messages: qt }), kr = ({
2352
2359
  };
2353
2360
  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
2361
  let at = !1;
2355
- const jr = ({ element: e = "div", id: t = "more-menu", options: n, className: r = "" }) => {
2362
+ const yr = ({ element: e = "div", id: t = "more-menu", options: n, className: r = "" }) => {
2356
2363
  const c = D(), i = de(null), [u, a] = L(!1), l = (o) => {
2357
2364
  i.current && o.target instanceof HTMLElement && !i.current.contains(o.target) && a(!1);
2358
2365
  };
@@ -2403,8 +2410,8 @@ const jr = ({ element: e = "div", id: t = "more-menu", options: n, className: r
2403
2410
  }) })
2404
2411
  ] })
2405
2412
  });
2406
- }, yr = (e, t = !1) => t ? e.replaceAll("/", "") === t : typeof window < "u" && window.location && window.location.pathname === e;
2407
- const Er = [
2413
+ }, Er = (e, t = !1) => t ? e.replaceAll("/", "") === t : typeof window < "u" && window.location && window.location.pathname === e;
2414
+ const Sr = [
2408
2415
  {
2409
2416
  key: "homepage",
2410
2417
  href: "/home/"
@@ -2425,13 +2432,13 @@ const Er = [
2425
2432
  key: "articles",
2426
2433
  href: "/solution-articles/"
2427
2434
  }
2428
- ], Sr = ({ activeLink: e }) => {
2435
+ ], $r = ({ activeLink: e }) => {
2429
2436
  const t = D(), n = je($e), r = n && typeof n.id == "string";
2430
2437
  return /* @__PURE__ */ s.jsxs("ul", { id: "navigation-menu", className: "text-medium", children: [
2431
- Er.map(({ key: c, href: i }) => /* @__PURE__ */ s.jsx(
2438
+ Sr.map(({ key: c, href: i }) => /* @__PURE__ */ s.jsx(
2432
2439
  "li",
2433
2440
  {
2434
- className: $(c, { active: yr(i, e) }),
2441
+ className: $(c, { active: Er(i, e) }),
2435
2442
  children: /* @__PURE__ */ s.jsx(
2436
2443
  "a",
2437
2444
  {
@@ -2465,7 +2472,7 @@ const Er = [
2465
2472
  }
2466
2473
  ) })
2467
2474
  ] });
2468
- }, Xe = (e, t, n) => `${e}?share=${t}${n ? `&uuid=${n}` : ""}`, $r = ({
2475
+ }, Xe = (e, t, n) => `${e}?share=${t}${n ? `&uuid=${n}` : ""}`, Tr = ({
2469
2476
  title: e,
2470
2477
  link: t,
2471
2478
  referrer: n
@@ -2508,7 +2515,7 @@ ${Xe(t, "mailto", n)}&src=email`
2508
2515
  onClick: (r, c) => (r.preventDefault(), r.stopPropagation(), navigator.clipboard.writeText(c))
2509
2516
  }
2510
2517
  ];
2511
- const Tr = "shareLinks_", Za = ({
2518
+ const Mr = "shareLinks_", Ka = ({
2512
2519
  title: e,
2513
2520
  link: t,
2514
2521
  referrer: n,
@@ -2517,7 +2524,7 @@ const Tr = "shareLinks_", Za = ({
2517
2524
  variant: i = "default",
2518
2525
  className: u = ""
2519
2526
  }) => {
2520
- const a = D(), l = $r({ title: e, link: t, referrer: n });
2527
+ const a = D(), l = Tr({ title: e, link: t, referrer: n });
2521
2528
  return /* @__PURE__ */ s.jsxs("aside", { className: $("share-links", c, i, u), children: [
2522
2529
  /* @__PURE__ */ s.jsx("p", { className: "text-small", children: a.formatMessage({ id: "shareLinks_label" }) }),
2523
2530
  /* @__PURE__ */ s.jsx("ul", { children: l.map(({ key: o, icon: d, url: m, shouldRender: h = !0, onClick: p }) => {
@@ -2537,17 +2544,17 @@ const Tr = "shareLinks_", Za = ({
2537
2544
  "data-gtm-event-context": `${r}-SocialButtons`,
2538
2545
  "data-gtm-event-type": `${o}-click`,
2539
2546
  "data-testid": "link",
2540
- screenreaderText: a.formatMessage({ id: `${Tr}link_${o}` }),
2547
+ screenreaderText: a.formatMessage({ id: `${Mr}link_${o}` }),
2541
2548
  ...g
2542
2549
  }
2543
2550
  ) }, o);
2544
2551
  }) })
2545
2552
  ] });
2546
2553
  };
2547
- const Mr = {
2554
+ const Nr = {
2548
2555
  "2-1": 901,
2549
2556
  "1-3": 769
2550
- }, Nr = ({
2557
+ }, Dr = ({
2551
2558
  layout: e = "2-1",
2552
2559
  hideOnMobile: t = !1,
2553
2560
  className: n = "",
@@ -2555,12 +2562,12 @@ const Mr = {
2555
2562
  }) => {
2556
2563
  const c = vt(!0);
2557
2564
  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 < 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
- /* @__PURE__ */ s.jsx(lr, { ...t })
2565
+ 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) });
2566
+ }, qa = ({ activeLink: e, ...t }) => /* @__PURE__ */ s.jsx(Dr, { layout: "1-3", children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
2567
+ /* @__PURE__ */ s.jsx($r, { activeLink: e }),
2568
+ /* @__PURE__ */ s.jsx(dr, { ...t })
2562
2569
  ] }) });
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 = () => {
2570
+ 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
2571
  const e = D(), [t, n, r] = Es(It), [c, i] = L(!t["apol-cookie-banner"]), u = () => {
2565
2572
  It.forEach((d) => {
2566
2573
  n(d, !0, {
@@ -2774,7 +2781,7 @@ const Be = "footer_", ht = "SiteFooter", kn = ({ group: e }) => {
2774
2781
  /* @__PURE__ */ s.jsx("small", { children: /* @__PURE__ */ s.jsx(Pe, { id: `${Be}copyright`, values: { currentYear: (/* @__PURE__ */ new Date()).getFullYear() } }) })
2775
2782
  ] })
2776
2783
  ] }) });
2777
- const ot = "emailHelperTextBox_", qa = ({ type: e, email: t, redirectPath: n, resendVerificationCode: r }) => {
2784
+ const ot = "emailHelperTextBox_", eo = ({ type: e, email: t, redirectPath: n, resendVerificationCode: r }) => {
2778
2785
  const c = D(), [i, u] = L({ path: `${ot}default`, type: "default", link: {}, mail: {}, error: "" }), [a, l] = L(!1), o = Me(
2779
2786
  (p) => {
2780
2787
  p.preventDefault(), p.stopPropagation();
@@ -2874,7 +2881,7 @@ const ot = "emailHelperTextBox_", qa = ({ type: e, email: t, redirectPath: n, re
2874
2881
  const d = {};
2875
2882
  return ["link", "mail"].forEach((p) => {
2876
2883
  d[p] = Object.keys(i[p]).length ? (g) => /* @__PURE__ */ s.jsx("a", { ...i[p], children: g }) : (g) => g;
2877
- }), /* @__PURE__ */ s.jsx(er, { type: i.type, heading: a ? !1 : c.formatMessage({ id: `${i.path}_title` }), children: a ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
2884
+ }), /* @__PURE__ */ s.jsx(tr, { type: i.type, heading: a ? !1 : c.formatMessage({ id: `${i.path}_title` }), children: a ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
2878
2885
  /* @__PURE__ */ s.jsx(Se, { element: "span" }),
2879
2886
  /* @__PURE__ */ s.jsx(Se, { element: "span" })
2880
2887
  ] }) : (
@@ -2896,11 +2903,11 @@ const ot = "emailHelperTextBox_", qa = ({ type: e, email: t, redirectPath: n, re
2896
2903
  )
2897
2904
  ) });
2898
2905
  };
2899
- const it = "passwordRules_", Vn = "isMoreThanEightCharacters", Yn = "includesNumberAndSymbol", Gn = "includesLowerAndUppercase", Cr = {
2906
+ const it = "passwordRules_", Vn = "isMoreThanEightCharacters", Yn = "includesNumberAndSymbol", Gn = "includesLowerAndUppercase", Ar = {
2900
2907
  [Vn]: "8Characters",
2901
2908
  [Yn]: "numberSymbol",
2902
2909
  [Gn]: "lowercaseUppercase"
2903
- }, Ar = ({ matchingRules: e = { isMoreThanEightCharacters: !1, includesNumberAndSymbol: !1, includesLowerAndUppercase: !1 }, className: t = "" }) => {
2910
+ }, Pr = ({ matchingRules: e = { isMoreThanEightCharacters: !1, includesNumberAndSymbol: !1, includesLowerAndUppercase: !1 }, className: t = "" }) => {
2904
2911
  const n = D();
2905
2912
  return /* @__PURE__ */ s.jsxs("aside", { className: $("password-rules", t), children: [
2906
2913
  /* @__PURE__ */ s.jsx("small", { children: n.formatMessage({ id: `${it}intro` }) }),
@@ -2909,7 +2916,7 @@ const it = "passwordRules_", Vn = "isMoreThanEightCharacters", Yn = "includesNum
2909
2916
  n.formatMessage({ id: `${it}rule_label` }),
2910
2917
  " "
2911
2918
  ] }),
2912
- /* @__PURE__ */ s.jsx("span", { children: n.formatMessage({ id: `${it}rule_${Cr[r]}` }) }),
2919
+ /* @__PURE__ */ s.jsx("span", { children: n.formatMessage({ id: `${it}rule_${Ar[r]}` }) }),
2913
2920
  !e[r] && /* @__PURE__ */ s.jsxs(_e, { element: "strong", children: [
2914
2921
  " ",
2915
2922
  " ",
@@ -2917,8 +2924,8 @@ const it = "passwordRules_", Vn = "isMoreThanEightCharacters", Yn = "includesNum
2917
2924
  ] })
2918
2925
  ] }, `rule-${r}`)) })
2919
2926
  ] });
2920
- }, eo = We(Ar);
2921
- const to = ({
2927
+ }, to = We(Pr);
2928
+ const no = ({
2922
2929
  text: e = {},
2923
2930
  topRating: t = 5,
2924
2931
  functions: { createRating: n = () => null, updateRating: r = () => {
@@ -2978,7 +2985,7 @@ const to = ({
2978
2985
  }) })
2979
2986
  ] });
2980
2987
  };
2981
- const Pr = ({
2988
+ const Rr = ({
2982
2989
  id: e = "search",
2983
2990
  className: t = "",
2984
2991
  handleToggle: n = !1,
@@ -3031,7 +3038,7 @@ const Pr = ({
3031
3038
  }
3032
3039
  );
3033
3040
  };
3034
- const Rr = ({
3041
+ const Fr = ({
3035
3042
  title: e,
3036
3043
  label: t,
3037
3044
  ctaMessage: n,
@@ -3380,11 +3387,11 @@ const Rr = ({
3380
3387
  }) })
3381
3388
  ] }, e);
3382
3389
  };
3383
- const Fr = { height: 67, height_desktop: 83 }, Jn = ({ showNavigation: e = !0 }) => {
3390
+ const Lr = { height: 67, height_desktop: 83 }, Jn = ({ showNavigation: e = !0 }) => {
3384
3391
  const t = D(), n = je($e), r = vt(!0, !0), c = n && typeof n.id == "string", i = xt(
3385
3392
  () => H.getIsDesktopVersion(c, r),
3386
3393
  [c, r]
3387
- ), [u, a] = ps(Is, {
3394
+ ), [u, a] = ps(Gs, {
3388
3395
  headerIsVisible: !0,
3389
3396
  menus: { navigation: !1, search: !1, account: !1 },
3390
3397
  focusElements: {
@@ -3393,7 +3400,7 @@ const Fr = { height: 67, height_desktop: 83 }, Jn = ({ showNavigation: e = !0 })
3393
3400
  }
3394
3401
  }), { headerIsVisible: l, menus: o, focusElements: d } = u;
3395
3402
  Os({
3396
- scrollPosition: Fr[`height${i.navigation ? "_desktop" : ""}`],
3403
+ scrollPosition: Lr[`height${i.navigation ? "_desktop" : ""}`],
3397
3404
  callbacks: {
3398
3405
  scrollUp: () => {
3399
3406
  !i && o.navigation || H.shouldChangeHeaderIsVisible(!0, o, a);
@@ -3502,7 +3509,7 @@ const Fr = { height: 67, height_desktop: 83 }, Jn = ({ showNavigation: e = !0 })
3502
3509
  }
3503
3510
  ),
3504
3511
  /* @__PURE__ */ s.jsx(
3505
- Pr,
3512
+ Rr,
3506
3513
  {
3507
3514
  id: "global-search",
3508
3515
  handleToggle: {
@@ -3620,12 +3627,12 @@ const Zn = ({
3620
3627
  ] })
3621
3628
  }
3622
3629
  ) });
3623
- }, Lr = (e, t) => ({
3630
+ }, Or = (e, t) => ({
3624
3631
  "aria-haspopup": !0,
3625
3632
  "aria-expanded": t,
3626
3633
  "aria-controls": e
3627
3634
  });
3628
- const no = ({
3635
+ const so = ({
3629
3636
  className: e,
3630
3637
  showModal: t = !0,
3631
3638
  title: n,
@@ -3647,7 +3654,7 @@ const no = ({
3647
3654
  functions: { onClose: a },
3648
3655
  className: $("invite-modal", e, { success: !!n }),
3649
3656
  children: /* @__PURE__ */ s.jsx(
3650
- Rr,
3657
+ Fr,
3651
3658
  {
3652
3659
  title: r,
3653
3660
  label: c,
@@ -3659,7 +3666,7 @@ const no = ({
3659
3666
  )
3660
3667
  }
3661
3668
  );
3662
- const Or = () => {
3669
+ const Ir = () => {
3663
3670
  const e = D();
3664
3671
  return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
3665
3672
  /* @__PURE__ */ s.jsx(Jn, {}),
@@ -3672,7 +3679,7 @@ const Or = () => {
3672
3679
  ) }),
3673
3680
  /* @__PURE__ */ s.jsx(zn, {})
3674
3681
  ] });
3675
- }, Ir = ({
3682
+ }, Br = ({
3676
3683
  children: e,
3677
3684
  additionalContent: { prepended: t, appended: n } = {},
3678
3685
  reportError: r,
@@ -3690,7 +3697,7 @@ const Or = () => {
3690
3697
  }), v = ut(n, {
3691
3698
  locale: a
3692
3699
  }), 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(Or, {}), children: /* @__PURE__ */ s.jsx(gs, { fallback: null, children: /* @__PURE__ */ s.jsxs(
3700
+ 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: null, children: /* @__PURE__ */ s.jsxs(
3694
3701
  "div",
3695
3702
  {
3696
3703
  id: "wrapper",
@@ -3706,7 +3713,7 @@ const Or = () => {
3706
3713
  ] }),
3707
3714
  v && /* @__PURE__ */ s.jsx("div", { className: "additional-content appended", children: v }),
3708
3715
  o && /* @__PURE__ */ s.jsx(zn, {}),
3709
- /* @__PURE__ */ s.jsx(Dr, {})
3716
+ /* @__PURE__ */ s.jsx(Cr, {})
3710
3717
  ]
3711
3718
  }
3712
3719
  ) }) });
@@ -3729,7 +3736,7 @@ const Or = () => {
3729
3736
  WorkAndTheEconomy: "work-and-the-economy"
3730
3737
  },
3731
3738
  "from the community": "community"
3732
- }, Br = {
3739
+ }, Qr = {
3733
3740
  getTagDetails: (e) => {
3734
3741
  if (e.includes("topic_")) {
3735
3742
  if (e = Qt.topic[e.replace("topic_", "")], e) {
@@ -3741,7 +3748,7 @@ const Or = () => {
3741
3748
  return Qt[e] ? (e = Qt[e], { id: e, text: `${jn.default}${e}` }) : null;
3742
3749
  }
3743
3750
  };
3744
- const so = ({
3751
+ const ro = ({
3745
3752
  tags: e = [],
3746
3753
  color: t = "default",
3747
3754
  forceOneLine: n = !1,
@@ -3757,7 +3764,7 @@ const so = ({
3757
3764
  return e.forEach((o) => {
3758
3765
  if (!o)
3759
3766
  return;
3760
- const d = Br.getTagDetails(o);
3767
+ const d = Qr.getTagDetails(o);
3761
3768
  d && l.push(d);
3762
3769
  }), l.length < 1 ? null : /* @__PURE__ */ s.jsx("ul", { className: $("tags text-small", t, c, { "one-line": n }), children: l.map((o) => {
3763
3770
  const d = a.formatMessage({ id: o.text });
@@ -3773,7 +3780,7 @@ const so = ({
3773
3780
  ) : d }, o.id);
3774
3781
  }) });
3775
3782
  };
3776
- const ro = ({
3783
+ const ao = ({
3777
3784
  members: { total: e, data: t = [] },
3778
3785
  pagination: n,
3779
3786
  gtmContext: r = "member",
@@ -3791,7 +3798,7 @@ const ro = ({
3791
3798
  a.isAdmin && /* @__PURE__ */ s.jsx(ft, { children: u.formatMessage({ id: "membersList_admin" }) })
3792
3799
  ] }, l)) }),
3793
3800
  n && /* @__PURE__ */ s.jsx(
3794
- kr,
3801
+ jr,
3795
3802
  {
3796
3803
  ...n,
3797
3804
  icon: { icon: "arrow-down", position: "right" },
@@ -3899,7 +3906,7 @@ const ve = "discussion_form_", Kn = ({
3899
3906
  default:
3900
3907
  break;
3901
3908
  }
3902
- await Hs(1e3), a.callback && await a.callback(w), ct = setTimeout(() => {
3909
+ await Js(1e3), a.callback && await a.callback(w), ct = setTimeout(() => {
3903
3910
  h(""), v("submitted"), C();
3904
3911
  }, 500);
3905
3912
  } catch (w) {
@@ -3921,7 +3928,7 @@ const ve = "discussion_form_", Kn = ({
3921
3928
  ct = setTimeout(() => {
3922
3929
  g(!1), v(!1);
3923
3930
  }, 5e3);
3924
- }, R = !m || !Gs(m), V = b === "submitting", N = [];
3931
+ }, R = !m || !Ys(m), V = b === "submitting", N = [];
3925
3932
  return (n.isEditing && !V || u.cancel) && N.push({
3926
3933
  variant: "secondary",
3927
3934
  size: { mobile: "small", 600: "medium" },
@@ -4039,16 +4046,16 @@ const ve = "discussion_form_", Kn = ({
4039
4046
  create: t
4040
4047
  }
4041
4048
  }
4042
- ), Qr = {
4049
+ ), Hr = {
4043
4050
  showThread: !1,
4044
4051
  showForm: !1
4045
- }, Et = Kt(Qr), Hr = ({ children: e }) => {
4052
+ }, Et = Kt(Hr), Ur = ({ children: e }) => {
4046
4053
  const [t, n] = L({
4047
4054
  showThread: !1,
4048
4055
  showForm: !1
4049
4056
  });
4050
4057
  return /* @__PURE__ */ s.jsx(Et.Provider, { value: { ...t, updateConversation: n }, children: e });
4051
- }, Ur = ({
4058
+ }, Wr = ({
4052
4059
  question: e,
4053
4060
  answer: t,
4054
4061
  reply: n
@@ -4056,11 +4063,11 @@ const ve = "discussion_form_", Kn = ({
4056
4063
  ...e && { questionSlug: e },
4057
4064
  ...t && { answerSlug: t },
4058
4065
  ...n && { replySlug: n }
4059
- }), Wr = (e, t = 10) => !e || e.length === 0 ? [] : e.slice(0, t);
4066
+ }), zr = (e, t = 10) => !e || e.length === 0 ? [] : e.slice(0, t);
4060
4067
  let Ke = !1;
4061
4068
  const Ht = () => {
4062
4069
  Ke !== !1 && (clearTimeout(Ke), Ke = !1);
4063
- }, Ut = 5, zr = ({
4070
+ }, Ut = 5, Vr = ({
4064
4071
  element: e = "div",
4065
4072
  likes: t = 0,
4066
4073
  peopleWhoLiked: n = !1,
@@ -4076,7 +4083,7 @@ const Ht = () => {
4076
4083
  Y(() => {
4077
4084
  p(c);
4078
4085
  }, [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) => {
4086
+ const [d, m] = L(t), [h, p] = L(c), [g, b] = L(!1), [v, E] = L(!1), k = xt(() => zr(n, Ut), [n]), _ = (C) => {
4080
4087
  if (C.preventDefault(), C.stopPropagation(), E(!1), Ke)
4081
4088
  return Ht(), !1;
4082
4089
  if (Ht(), g || !u)
@@ -4089,7 +4096,7 @@ const Ht = () => {
4089
4096
  C < 0 && (C = 0), b(!0), m(C), p(!h);
4090
4097
  try {
4091
4098
  if (i && i.slugs) {
4092
- const R = Ur(i.slugs);
4099
+ const R = Wr(i.slugs);
4093
4100
  h ? await l(R) : await a(R, { contentPath: window.location.pathname });
4094
4101
  }
4095
4102
  } catch {
@@ -4135,7 +4142,7 @@ const Ht = () => {
4135
4142
  }
4136
4143
  ),
4137
4144
  /* @__PURE__ */ s.jsx("span", { className: $("number-of-likes", { "no-likes": d === 0 }), "data-testid": "number-of-likes", children: o.formatMessage({ id: `discussion_likes${r ? "_short" : ""}` }, { number: d }) }),
4138
- n && /* @__PURE__ */ s.jsx(Zs, { isOpen: v, isLoading: n.length === 0, children: n.length && /* @__PURE__ */ s.jsxs("ul", { children: [
4145
+ n && /* @__PURE__ */ s.jsx(Ks, { isOpen: v, isLoading: n.length === 0, children: n.length && /* @__PURE__ */ s.jsxs("ul", { children: [
4139
4146
  k.map((C) => typeof C == "string" || !C.name ? null : /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(
4140
4147
  jt,
4141
4148
  {
@@ -4155,7 +4162,7 @@ const Ht = () => {
4155
4162
  const t = {};
4156
4163
  return Object.keys(e).forEach((n) => n.includes("Id") ? t[n] = e[n] : t[`${n}Slug`] = e[n]), t;
4157
4164
  }, sn = (e, t) => e && !t;
4158
- const De = "discussion_", Vr = 280, St = ({
4165
+ const De = "discussion_", Yr = 280, St = ({
4159
4166
  element: e = "div",
4160
4167
  content: t,
4161
4168
  userHasPermissions: n = !0,
@@ -4195,7 +4202,7 @@ const De = "discussion_", Vr = 280, St = ({
4195
4202
  });
4196
4203
  }, [t.isEdited]), r || !t || t.type === "answer" && (!t.slugs || !t.slugs.question))
4197
4204
  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, 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) => {
4205
+ 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) => {
4199
4206
  O || (O = ""), N("");
4200
4207
  try {
4201
4208
  if (!Ms(O, _.body)) {
@@ -4254,7 +4261,7 @@ const De = "discussion_", Vr = 280, St = ({
4254
4261
  className: "gtm-trackable",
4255
4262
  "data-gtm-event-context": p,
4256
4263
  "data-gtm-event-type": `delete-${t.type}-click`,
4257
- ...Lr(`delete-${t.slug}-modal`, C)
4264
+ ...Or(`delete-${t.slug}-modal`, C)
4258
4265
  }
4259
4266
  ), A.createElement(e, {
4260
4267
  className: $("discussion-post", h),
@@ -4319,7 +4326,7 @@ const De = "discussion_", Vr = 280, St = ({
4319
4326
  className: "gtm-trackable",
4320
4327
  "data-gtm-event-context": p,
4321
4328
  "data-gtm-event-type": "title-click",
4322
- children: /* @__PURE__ */ s.jsx(bn, { options: { overrides: { a: cr } }, children: X })
4329
+ children: /* @__PURE__ */ s.jsx(bn, { options: { overrides: { a: lr } }, children: X })
4323
4330
  }
4324
4331
  ) : /* @__PURE__ */ s.jsx(
4325
4332
  bn,
@@ -4340,7 +4347,7 @@ const De = "discussion_", Vr = 280, St = ({
4340
4347
  "data-testid": `${t.type}-actions`,
4341
4348
  children: [
4342
4349
  /* @__PURE__ */ s.jsx(
4343
- zr,
4350
+ Vr,
4344
4351
  {
4345
4352
  element: "li",
4346
4353
  likes: j,
@@ -4399,7 +4406,7 @@ const De = "discussion_", Vr = 280, St = ({
4399
4406
  }
4400
4407
  ) }),
4401
4408
  /* @__PURE__ */ s.jsx(
4402
- jr,
4409
+ yr,
4403
4410
  {
4404
4411
  element: "li",
4405
4412
  id: `more-${t.slug}`,
@@ -4465,14 +4472,14 @@ const De = "discussion_", Vr = 280, St = ({
4465
4472
  ] })
4466
4473
  });
4467
4474
  };
4468
- const Wt = "discussion_responses_", ao = ({ type: e = "answer", responses: t = 0 }) => {
4475
+ const Wt = "discussion_responses_", oo = ({ type: e = "answer", responses: t = 0 }) => {
4469
4476
  const n = D();
4470
4477
  return /* @__PURE__ */ s.jsxs("div", { className: "responses-heading", children: [
4471
4478
  /* @__PURE__ */ s.jsx("h3", { children: n.formatMessage({ id: `${Wt}title` }, { action: n.formatMessage({ id: `${Wt}${e}` }), count: t }) }),
4472
4479
  t === 0 && /* @__PURE__ */ s.jsx("p", { children: Te(n.formatMessage, `${Wt}empty`, e, e) })
4473
4480
  ] });
4474
4481
  };
4475
- const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4482
+ const Gr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4476
4483
  const r = D(), c = de(null), i = je(Et), [u, a] = L(
4477
4484
  "closed"
4478
4485
  /* Closed */
@@ -4538,7 +4545,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4538
4545
  }
4539
4546
  )
4540
4547
  ] });
4541
- }, Gr = ({
4548
+ }, Jr = ({
4542
4549
  user: e,
4543
4550
  content: t,
4544
4551
  verb: n = "post"
@@ -4559,7 +4566,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4559
4566
  like: 0
4560
4567
  },
4561
4568
  verb: n
4562
- }), Jr = ({
4569
+ }), Xr = ({
4563
4570
  queryClient: e,
4564
4571
  queryKey: t,
4565
4572
  user: n,
@@ -4567,7 +4574,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4567
4574
  }) => ({ mutationFn: r, onMutate: async ({ content: a }) => {
4568
4575
  if (!n)
4569
4576
  return;
4570
- const l = Gr({ user: n, content: a, verb: "post" });
4577
+ const l = Jr({ user: n, content: a, verb: "post" });
4571
4578
  await e.cancelQueries({ queryKey: t });
4572
4579
  const o = e.getQueryData(t);
4573
4580
  return e.setQueryData(t, (d) => [...d, l]), { previousActivities: o };
@@ -4575,7 +4582,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4575
4582
  e.setQueryData(t, o.previousActivities);
4576
4583
  }, onSettled: () => {
4577
4584
  e.invalidateQueries({ queryKey: t });
4578
- } }), Xr = ({
4585
+ } }), Zr = ({
4579
4586
  queryClient: e,
4580
4587
  queryKey: t,
4581
4588
  mutationFn: n
@@ -4597,7 +4604,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4597
4604
  onSettled: () => {
4598
4605
  e.invalidateQueries({ queryKey: t });
4599
4606
  }
4600
- }), Zr = ({
4607
+ }), Kr = ({
4601
4608
  queryClient: e,
4602
4609
  queryKey: t,
4603
4610
  mutationFn: n
@@ -4613,7 +4620,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4613
4620
  e.invalidateQueries({
4614
4621
  queryKey: [...t, l.activityId]
4615
4622
  });
4616
- } }), Kr = ({
4623
+ } }), qr = ({
4617
4624
  queryClient: e,
4618
4625
  queryKey: t,
4619
4626
  mutationFn: n
@@ -4636,7 +4643,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4636
4643
  e.invalidateQueries({
4637
4644
  queryKey: [...t, o.activityId]
4638
4645
  });
4639
- } }), qr = ({
4646
+ } }), ea = ({
4640
4647
  queryClient: e,
4641
4648
  queryKey: t,
4642
4649
  user: n,
@@ -4670,7 +4677,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4670
4677
  e.invalidateQueries({
4671
4678
  queryKey: [...t, d.activityId]
4672
4679
  });
4673
- } }), oo = ({
4680
+ } }), io = ({
4674
4681
  basePath: e,
4675
4682
  parentId: t,
4676
4683
  isMember: n,
@@ -4684,30 +4691,30 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4684
4691
  } = $n({
4685
4692
  queryKey: [e, t],
4686
4693
  queryFn: r
4687
- }), k = Jr({
4694
+ }), k = Xr({
4688
4695
  queryClient: h,
4689
4696
  queryKey: [e, t],
4690
4697
  user: p,
4691
4698
  mutationFn: c
4692
- }), { mutate: _ } = ie(k), T = Xr({
4699
+ }), { mutate: _ } = ie(k), T = Zr({
4693
4700
  queryClient: h,
4694
4701
  queryKey: [e, t],
4695
4702
  mutationFn: async (w) => await i(w)
4696
4703
  }), {
4697
4704
  mutate: C
4698
- } = ie(T), R = Zr({
4705
+ } = ie(T), R = Kr({
4699
4706
  queryClient: h,
4700
4707
  queryKey: [e, t],
4701
4708
  mutationFn: async ({ activityId: w }) => await u({ activityId: w })
4702
4709
  }), {
4703
4710
  mutate: V
4704
- } = ie(R), N = Kr({
4711
+ } = ie(R), N = qr({
4705
4712
  queryClient: h,
4706
4713
  queryKey: [e, t],
4707
4714
  mutationFn: a
4708
4715
  }), {
4709
4716
  mutate: P
4710
- } = ie(N), G = qr({
4717
+ } = ie(N), G = ea({
4711
4718
  queryClient: h,
4712
4719
  queryKey: [e, t],
4713
4720
  user: p,
@@ -4807,7 +4814,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4807
4814
  ] }, w == null ? void 0 : w.id);
4808
4815
  }))
4809
4816
  ] });
4810
- }, ea = ({
4817
+ }, ta = ({
4811
4818
  queryClient: e,
4812
4819
  queryKey: t,
4813
4820
  mutationFn: n
@@ -4826,7 +4833,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4826
4833
  })), { previousActivity: l };
4827
4834
  }, onSettled: () => {
4828
4835
  e.invalidateQueries({ queryKey: t });
4829
- } }), ta = ({
4836
+ } }), na = ({
4830
4837
  queryClient: e,
4831
4838
  queryKey: t,
4832
4839
  mutationFn: n
@@ -4852,7 +4859,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4852
4859
  onError: (i, u, a) => {
4853
4860
  e.setQueryData(t, a.previousActivity);
4854
4861
  }
4855
- }), na = ({
4862
+ }), sa = ({
4856
4863
  queryClient: e,
4857
4864
  queryKey: t,
4858
4865
  mutationFn: n
@@ -4871,7 +4878,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4871
4878
  })), { previousActivity: u };
4872
4879
  }, onError: (i, u, a) => {
4873
4880
  e.setQueryData(t, a.previousActivity);
4874
- } }), sa = ({
4881
+ } }), ra = ({
4875
4882
  queryClient: e,
4876
4883
  queryKey: t,
4877
4884
  mutationFn: n
@@ -4898,7 +4905,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4898
4905
  ...a,
4899
4906
  latest_reactions: { reply: l }
4900
4907
  })), { previousActivity: a };
4901
- } }), ra = ({
4908
+ } }), aa = ({
4902
4909
  queryClient: e,
4903
4910
  queryKey: t,
4904
4911
  user: n,
@@ -4937,7 +4944,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4937
4944
  ...o,
4938
4945
  latest_reactions: { reply: d }
4939
4946
  })), { previousActivity: o };
4940
- } }), aa = ({
4947
+ } }), oa = ({
4941
4948
  queryClient: e,
4942
4949
  queryKey: t,
4943
4950
  mutationFn: n
@@ -4960,7 +4967,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4960
4967
  onSettled: () => {
4961
4968
  e.invalidateQueries({ queryKey: t });
4962
4969
  }
4963
- }), oa = ({
4970
+ }), ia = ({
4964
4971
  queryClient: e,
4965
4972
  queryKey: t,
4966
4973
  mutationFn: n
@@ -4985,7 +4992,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4985
4992
  ...a,
4986
4993
  latest_reactions: { reply: l }
4987
4994
  })), { previousActivity: a };
4988
- } }), ia = ({
4995
+ } }), ca = ({
4989
4996
  queryClient: e,
4990
4997
  queryKey: t,
4991
4998
  mutationFn: n
@@ -5010,7 +5017,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5010
5017
  ...a,
5011
5018
  latest_reactions: { reply: l }
5012
5019
  })), { previousActivity: a };
5013
- } }), ca = ({
5020
+ } }), la = ({
5014
5021
  queryClient: e,
5015
5022
  queryKey: t,
5016
5023
  mutationFn: n
@@ -5043,7 +5050,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5043
5050
  ...l,
5044
5051
  latest_reactions: { reply: o }
5045
5052
  })), { previousActivity: l };
5046
- } }), la = ({
5053
+ } }), da = ({
5047
5054
  queryClient: e,
5048
5055
  queryKey: t,
5049
5056
  mutationFn: n,
@@ -5084,7 +5091,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5084
5091
  ...o,
5085
5092
  latest_reactions: { reply: d }
5086
5093
  })), { previousActivity: o };
5087
- } }), da = ({
5094
+ } }), ua = ({
5088
5095
  basePath: e,
5089
5096
  parentId: t,
5090
5097
  replyParentId: n,
@@ -5093,29 +5100,29 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5093
5100
  replies: i,
5094
5101
  functions: { create: u, edit: a, remove: l, join: o, leave: d, like: m, unlike: h }
5095
5102
  }) => {
5096
- const p = D(), g = wt(), b = je($e), v = je(Et), E = aa({
5103
+ const p = D(), g = wt(), b = je($e), v = je(Et), E = oa({
5097
5104
  queryClient: g,
5098
5105
  queryKey: [e, t, r],
5099
5106
  mutationFn: async (j) => u({ replyId: n, content: j.body })
5100
- }), { mutate: k } = ie(E), _ = oa({
5107
+ }), { mutate: k } = ie(E), _ = ia({
5101
5108
  queryClient: g,
5102
5109
  queryKey: [e, t, r],
5103
5110
  mutationFn: a
5104
5111
  }), {
5105
5112
  mutate: T
5106
- } = ie(_), C = ia({
5113
+ } = ie(_), C = ca({
5107
5114
  queryClient: g,
5108
5115
  queryKey: [e, t, r],
5109
5116
  mutationFn: async ({ replyId: j }) => l({ replyId: j })
5110
5117
  }), {
5111
5118
  mutate: R
5112
- } = ie(C), V = ca({
5119
+ } = ie(C), V = la({
5113
5120
  queryClient: g,
5114
5121
  queryKey: [e, t, r],
5115
5122
  mutationFn: m
5116
5123
  }), {
5117
5124
  mutate: N
5118
- } = ie(V), P = la({
5125
+ } = ie(V), P = da({
5119
5126
  queryClient: g,
5120
5127
  queryKey: [e, t, r],
5121
5128
  user: b,
@@ -5130,7 +5137,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5130
5137
  [G]
5131
5138
  );
5132
5139
  return /* @__PURE__ */ s.jsx(
5133
- Yr,
5140
+ Gr,
5134
5141
  {
5135
5142
  count: c,
5136
5143
  showRepliesButton: c > 0 || v.showForm,
@@ -5215,7 +5222,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5215
5222
  ] })
5216
5223
  }
5217
5224
  );
5218
- }, ua = ({
5225
+ }, ma = ({
5219
5226
  basePath: e,
5220
5227
  parentId: t,
5221
5228
  activityId: n,
@@ -5223,29 +5230,29 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5223
5230
  isMember: c,
5224
5231
  functions: { create: i, edit: u, remove: a, like: l, unlike: o, join: d, leave: m }
5225
5232
  }) => {
5226
- const h = D(), p = wt(), g = je($e), b = ea({
5233
+ const h = D(), p = wt(), g = je($e), b = ta({
5227
5234
  queryClient: p,
5228
5235
  queryKey: [e, t, n],
5229
5236
  mutationFn: async (x) => i({ activityId: n, content: x.body })
5230
- }), { mutate: v } = ie(b), E = ta({
5237
+ }), { mutate: v } = ie(b), E = na({
5231
5238
  queryClient: p,
5232
5239
  queryKey: [e, t, n],
5233
5240
  mutationFn: async (x) => u(x)
5234
5241
  }), {
5235
5242
  mutate: k
5236
- } = ie(E), _ = na({
5243
+ } = ie(E), _ = sa({
5237
5244
  queryClient: p,
5238
5245
  queryKey: [e, t, n],
5239
5246
  mutationFn: async ({ replyId: x }) => a({ replyId: x })
5240
5247
  }), {
5241
5248
  mutate: T
5242
- } = ie(_), C = sa({
5249
+ } = ie(_), C = ra({
5243
5250
  queryClient: p,
5244
5251
  queryKey: [e, t, n],
5245
5252
  mutationFn: l
5246
5253
  }), {
5247
5254
  mutate: R
5248
- } = ie(C), V = ra({
5255
+ } = ie(C), V = aa({
5249
5256
  queryClient: p,
5250
5257
  queryKey: [e, t, n],
5251
5258
  user: g,
@@ -5277,7 +5284,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5277
5284
  (r == null ? void 0 : r.length) === 0 || (r == null ? void 0 : r.map((x) => {
5278
5285
  var w, z, X, se, re, ae, q, fe, ue, O, oe, he, ce, xe, pe, be, ge, B, J, le;
5279
5286
  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(Hr, { children: /* @__PURE__ */ s.jsx(
5287
+ return /* @__PURE__ */ s.jsx(Ur, { children: /* @__PURE__ */ s.jsx(
5281
5288
  St,
5282
5289
  {
5283
5290
  content: {
@@ -5330,7 +5337,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5330
5337
  comments: {}
5331
5338
  },
5332
5339
  children: /* @__PURE__ */ s.jsx(
5333
- da,
5340
+ ua,
5334
5341
  {
5335
5342
  basePath: e,
5336
5343
  parentId: t,
@@ -5355,7 +5362,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5355
5362
  ) }, x == null ? void 0 : x.id);
5356
5363
  }))
5357
5364
  ] });
5358
- }, ma = ({
5365
+ }, fa = ({
5359
5366
  queryClient: e,
5360
5367
  queryKey: t,
5361
5368
  mutationFn: n
@@ -5379,14 +5386,14 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5379
5386
  onSettled: () => {
5380
5387
  e.invalidateQueries({ queryKey: t });
5381
5388
  }
5382
- }), fa = ({
5389
+ }), ha = ({
5383
5390
  queryClient: e,
5384
5391
  queryKey: t,
5385
5392
  redirectUrl: n,
5386
5393
  mutationFn: r
5387
5394
  }) => ({ mutationFn: r, onSuccess: () => {
5388
5395
  e.invalidateQueries({ queryKey: t }), window.location.href = n;
5389
- } }), ha = ({
5396
+ } }), pa = ({
5390
5397
  queryClient: e,
5391
5398
  queryKey: t,
5392
5399
  mutationFn: n
@@ -5406,7 +5413,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5406
5413
  })), { previousActivity: l };
5407
5414
  }, onSettled: () => {
5408
5415
  e.invalidateQueries({ queryKey: t });
5409
- } }), pa = ({
5416
+ } }), ga = ({
5410
5417
  queryClient: e,
5411
5418
  queryKey: t,
5412
5419
  user: n,
@@ -5439,7 +5446,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5439
5446
  }, onSettled: () => {
5440
5447
  e.invalidateQueries({ queryKey: t });
5441
5448
  } });
5442
- const io = ({
5449
+ const co = ({
5443
5450
  basePath: e,
5444
5451
  parentId: t,
5445
5452
  activityId: n,
@@ -5467,24 +5474,24 @@ const io = ({
5467
5474
  } = $n({
5468
5475
  queryKey: [e, t, n],
5469
5476
  queryFn: c
5470
- }), R = ma({
5477
+ }), R = fa({
5471
5478
  queryClient: k,
5472
5479
  queryKey: [e, t, n],
5473
5480
  mutationFn: async (te) => await i(te)
5474
5481
  }), {
5475
5482
  mutate: V
5476
- } = ie(R), N = fa({
5483
+ } = ie(R), N = ha({
5477
5484
  queryClient: k,
5478
5485
  queryKey: [e, t, n],
5479
5486
  mutationFn: async ({ activityId: te }) => u({ activityId: te }),
5480
5487
  redirectUrl: `${e}/${t}`
5481
- }), { mutate: P } = ie(N), G = ha({
5488
+ }), { mutate: P } = ie(N), G = pa({
5482
5489
  queryClient: k,
5483
5490
  queryKey: [e, t, n],
5484
5491
  mutationFn: a
5485
5492
  }), {
5486
5493
  mutate: x
5487
- } = ie(G), K = pa({
5494
+ } = ie(G), K = ga({
5488
5495
  queryClient: k,
5489
5496
  queryKey: [e, t, n],
5490
5497
  user: E,
@@ -5574,7 +5581,7 @@ const io = ({
5574
5581
  ")"
5575
5582
  ] }),
5576
5583
  /* @__PURE__ */ s.jsx(
5577
- ua,
5584
+ ma,
5578
5585
  {
5579
5586
  basePath: e,
5580
5587
  parentId: t,
@@ -5596,13 +5603,13 @@ const io = ({
5596
5603
  },
5597
5604
  n
5598
5605
  );
5599
- }, co = ({ id: e, data: { jobTitle: t, name: n, organization: r, thumbnail: c } }) => ({
5606
+ }, lo = ({ id: e, data: { jobTitle: t, name: n, organization: r, thumbnail: c } }) => ({
5600
5607
  id: e,
5601
5608
  name: n,
5602
5609
  jobTitle: t,
5603
5610
  organization: r,
5604
5611
  image: { thumbnail: c }
5605
- }), ga = ({ type: e, data: t }) => {
5612
+ }), _a = ({ type: e, data: t }) => {
5606
5613
  const n = D(), {
5607
5614
  answers: r,
5608
5615
  createdAt: c,
@@ -5718,7 +5725,7 @@ const io = ({
5718
5725
  },
5719
5726
  gtmEvent: "learning-hub"
5720
5727
  }
5721
- }, _a = ({ data: e, cta: t, link: n, gtmContext: r }) => {
5728
+ }, xa = ({ data: e, cta: t, link: n, gtmContext: r }) => {
5722
5729
  var g;
5723
5730
  const c = D(), [i, u] = L({
5724
5731
  loading: !1,
@@ -5790,16 +5797,16 @@ const io = ({
5790
5797
  person: "user",
5791
5798
  speech: "speech-bubble_round",
5792
5799
  star: "star_empty_thin"
5793
- }, xa = (e) => {
5800
+ }, ba = (e) => {
5794
5801
  let t = e;
5795
5802
  return Object.keys(En).includes(e) && (t = En[e]), `url(${mt}icons/${t}.svg)`;
5796
5803
  };
5797
- const ba = {
5804
+ const wa = {
5798
5805
  title: 66,
5799
5806
  text: 3e3,
5800
5807
  secondaryText: 1e3,
5801
5808
  partner: 25
5802
- }, wa = ({
5809
+ }, va = ({
5803
5810
  id: e = "",
5804
5811
  card: t,
5805
5812
  buildCardData: n,
@@ -5834,7 +5841,7 @@ const ba = {
5834
5841
  className: v,
5835
5842
  length: E,
5836
5843
  gtmEvent: k
5837
- } = _t[g], _ = Rn(`card_label_${g}`) ? u.formatMessage({ id: `card_label_${g}` }) : !1, T = m.slug ? `${b}${m.slug}` : !1, C = { ...ba, ...E };
5844
+ } = _t[g], _ = Rn(`card_label_${g}`) ? u.formatMessage({ id: `card_label_${g}` }) : !1, T = m.slug ? `${b}${m.slug}` : !1, C = { ...wa, ...E };
5838
5845
  let R = { className: "card" };
5839
5846
  T && (R = {
5840
5847
  href: T,
@@ -5843,7 +5850,7 @@ const ba = {
5843
5850
  "data-gtm-event-type": `${k}-click`,
5844
5851
  "data-testid": "link"
5845
5852
  }, m.openInNewTab && (R.target = "_blank"));
5846
- const V = m.customIcon ? { "--custom-icon": xa(m.customIcon) } : {};
5853
+ const V = m.customIcon ? { "--custom-icon": ba(m.customIcon) } : {};
5847
5854
  return /* @__PURE__ */ s.jsx(
5848
5855
  "li",
5849
5856
  {
@@ -5866,7 +5873,7 @@ const ba = {
5866
5873
  size: "small",
5867
5874
  variant: m.dateHasPassed ? "default" : "information",
5868
5875
  "data-testid": "date",
5869
- children: m.dateHasPassed ? u.formatMessage({ id: "card_ended" }) : Qs(m.startDate)
5876
+ children: m.dateHasPassed ? u.formatMessage({ id: "card_ended" }) : Bs(m.startDate)
5870
5877
  }
5871
5878
  ),
5872
5879
  m.banner ? /* @__PURE__ */ s.jsxs("p", { className: "img", children: [
@@ -5898,20 +5905,20 @@ const ba = {
5898
5905
  const P = m[N];
5899
5906
  if (!P)
5900
5907
  return null;
5901
- const G = Bs(N);
5908
+ const G = Is(N);
5902
5909
  return /* @__PURE__ */ s.jsx("p", { className: G, "data-testid": G, children: Qe(P, C[N]) }, N);
5903
5910
  }),
5904
- /* @__PURE__ */ s.jsx(ga, { type: v || "", data: m }),
5905
- /* @__PURE__ */ s.jsx(_a, { data: m, cta: r, link: T || "", gtmContext: c })
5911
+ /* @__PURE__ */ s.jsx(_a, { type: v || "", data: m }),
5912
+ /* @__PURE__ */ s.jsx(xa, { data: m, cta: r, link: T || "", gtmContext: c })
5906
5913
  ] })
5907
5914
  )
5908
5915
  }
5909
5916
  );
5910
5917
  };
5911
- const va = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__ */ s.jsx("ul", { className: $("card-block", n), children: e.map((c, i) => {
5918
+ const ka = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__ */ s.jsx("ul", { className: $("card-block", n), children: e.map((c, i) => {
5912
5919
  const u = c.slug ? `${c.slug}-${t[i]}` : `${t[i]}-${i}`;
5913
5920
  return /* @__PURE__ */ s.jsx(
5914
- wa,
5921
+ va,
5915
5922
  {
5916
5923
  id: u,
5917
5924
  card: { ...c, contentType: t[i] },
@@ -5964,18 +5971,18 @@ const Sn = [
5964
5971
  contributors: ["community"]
5965
5972
  }
5966
5973
  ];
5967
- const lt = "notFoundError_", lo = () => {
5974
+ const lt = "notFoundError_", uo = () => {
5968
5975
  const e = D(), t = [];
5969
5976
  return Sn.forEach((n, r) => {
5970
5977
  n.title = e.formatMessage({ id: `${lt}post_${r + 1}` }), t.push("solutionArticle");
5971
5978
  }), /* @__PURE__ */ s.jsxs(
5972
- Ir,
5979
+ Br,
5973
5980
  {
5974
5981
  styling: { background: "bold", circle: "small", variant: "alt-2" },
5975
5982
  additionalContent: {
5976
5983
  appended: /* @__PURE__ */ s.jsxs(en, { children: [
5977
5984
  /* @__PURE__ */ s.jsx(
5978
- va,
5985
+ ka,
5979
5986
  {
5980
5987
  cards: Sn,
5981
5988
  cardTypes: t,
@@ -5999,89 +6006,90 @@ const lt = "notFoundError_", lo = () => {
5999
6006
  };
6000
6007
  export {
6001
6008
  mt as ASSETS_BUCKET,
6002
- oo as ActivitiesFeed,
6003
- io as ActivitySection,
6009
+ io as ActivitiesFeed,
6010
+ co as ActivitySection,
6004
6011
  nn as AddPost,
6005
- Ba as BannerSection,
6006
- Ga as Breadcrumbs,
6012
+ Qa as BannerSection,
6013
+ Ja as Breadcrumbs,
6007
6014
  U as Button,
6008
6015
  kt as ButtonWrapper,
6009
- pr as CacheProvider,
6016
+ gr as CacheProvider,
6010
6017
  Ln as CollapsibleSection,
6011
- Nr as Columns,
6012
- Ya as CommunityDetails,
6018
+ Dr as Columns,
6019
+ Ga as CommunityDetails,
6013
6020
  Hn as Contributors,
6014
6021
  Et as ConversationContext,
6015
- Dr as CookieBanner,
6016
- Hr as DiscussionConversation,
6022
+ Cr as CookieBanner,
6023
+ Ur as DiscussionConversation,
6017
6024
  Kn as DiscussionForm,
6018
- zr as DiscussionLikes,
6025
+ Vr as DiscussionLikes,
6019
6026
  St as DiscussionPost,
6020
- Yr as DiscussionThread,
6027
+ Gr as DiscussionThread,
6021
6028
  Ue as Divider,
6022
- Oa as DownloadSection,
6029
+ Ia as DownloadSection,
6023
6030
  Ze as EMAILS,
6024
- qa as EmailHelperTextBox,
6031
+ eo as EmailHelperTextBox,
6025
6032
  yt as EmptyStateBox,
6026
- Ja as Filters,
6027
- xr as FlagsProvider,
6033
+ Xa as Filters,
6034
+ br as FlagsProvider,
6028
6035
  zn as Footer,
6029
6036
  en as FullWidthSection,
6030
- Va as GlobalProviders,
6037
+ Ya as GlobalProviders,
6031
6038
  Jn as Header,
6032
- er as HelperTextBox,
6039
+ tr as HelperTextBox,
6033
6040
  Nn as HiddenFromScreenReaders,
6034
- Ua as HideShowTextBox,
6041
+ Wa as HideShowTextBox,
6035
6042
  Re as HighlightedTextBox,
6036
- br as IntlProvider,
6037
- Rr as InviteForm,
6038
- no as InviteModal,
6043
+ wr as IntlProvider,
6044
+ Fr as InviteForm,
6045
+ so as InviteModal,
6039
6046
  Un as JoinButton,
6040
- Xa as LanguageSwitcher,
6047
+ Za as LanguageSwitcher,
6041
6048
  jt as Link,
6042
- kr as LoadMore,
6043
- Wa as LoadingBlock,
6049
+ jr as LoadMore,
6050
+ za as LoadingBlock,
6044
6051
  Se as LoadingPlaceholder,
6045
- za as LoadingState,
6052
+ Va as LoadingState,
6046
6053
  Wn as Logo,
6047
- Ia as LogoSection,
6054
+ Ba as LogoSection,
6048
6055
  bn as MarkdownText,
6049
- Qa as MarketingBox,
6056
+ Ha as MarketingBox,
6050
6057
  tn as Member,
6051
- ro as MembersList,
6058
+ ao as MembersList,
6052
6059
  Xn as Modal,
6053
- jr as MoreMenu,
6054
- Ha as NUMBER_OF_USERS,
6055
- Sr as NavigationMenu,
6056
- lo as NotFoundError,
6060
+ yr as MoreMenu,
6061
+ Ua as NUMBER_OF_USERS,
6062
+ $r as NavigationMenu,
6063
+ uo as NotFoundError,
6057
6064
  Zn as Overlay,
6058
- lr as PageHeading,
6059
- Ir as PageLayout,
6060
- eo as PasswordRules,
6065
+ dr as PageHeading,
6066
+ Br as PageLayout,
6067
+ to as PasswordRules,
6061
6068
  ft as Pill,
6062
6069
  qe as ProfilePicture,
6063
- ur as ProgressBar,
6064
- to as Rating,
6065
- ua as RepliesFeed,
6066
- ao as ResponsesHeading,
6070
+ mr as ProgressBar,
6071
+ no as Rating,
6072
+ ma as RepliesFeed,
6073
+ oo as ResponsesHeading,
6067
6074
  Fn as ResponsiveImage,
6068
- Pr as SearchForm,
6069
- Za as ShareLinks,
6070
- cr as Span,
6075
+ Rr as SearchForm,
6076
+ Ka as ShareLinks,
6077
+ lr as Span,
6071
6078
  Xt as StatusBanner,
6072
- so as Tags,
6073
- Zs as Tooltip,
6074
- Ka as TopLevelPage,
6079
+ ro as Tags,
6080
+ Ks as Tooltip,
6081
+ qa as TopLevelPage,
6075
6082
  $e as UserContext,
6076
- wr as UserProvider,
6083
+ vr as UserProvider,
6077
6084
  _e as VisuallyHidden,
6078
- Lr as addAriaProps,
6085
+ Or as addAriaProps,
6079
6086
  Qn as getMember,
6080
6087
  pt as headerData,
6081
- co as mapGetStreamData,
6088
+ lo as mapGetStreamData,
6089
+ Vs as pageReady,
6082
6090
  Fs as useCurrentPath,
6083
6091
  He as useEffectAfterMount,
6084
6092
  vt as useElementWidth,
6085
6093
  Os as useScrollListener,
6086
- La as useScrollToHash
6094
+ Oa as useScrollToHash
6087
6095
  };