@apolitical/component-library 1.13.6 → 1.14.0

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 (46) hide show
  1. package/cards/card/card.d.ts +3 -0
  2. package/cards/card/card.data.d.ts +11 -0
  3. package/cards/card/card.helpers.d.ts +5 -0
  4. package/cards/card/components/details/details.d.ts +9 -0
  5. package/cards/card/components/details/index.d.ts +1 -0
  6. package/cards/card/components/index.d.ts +2 -0
  7. package/cards/card/components/links/index.d.ts +1 -0
  8. package/cards/card/components/links/links.d.ts +13 -0
  9. package/cards/card/index.d.ts +1 -0
  10. package/cards/card-block/card-block.d.ts +15 -0
  11. package/cards/card-block/index.d.ts +1 -0
  12. package/cards/cards.types.d.ts +133 -0
  13. package/cards/carousel/carousel.d.ts +3 -0
  14. package/cards/carousel/components/carousel/carousel.d.ts +8 -0
  15. package/cards/carousel/components/carousel/carousel.helpers.d.ts +1 -0
  16. package/cards/carousel/components/carousel/index.d.ts +1 -0
  17. package/cards/carousel/components/index.d.ts +2 -0
  18. package/cards/carousel/components/title/index.d.ts +1 -0
  19. package/cards/carousel/components/title/title.d.ts +13 -0
  20. package/cards/carousel/index.d.ts +1 -0
  21. package/cards/index.d.ts +3 -0
  22. package/cards/mocks/card.d.ts +235 -0
  23. package/cards/mocks/carousel.d.ts +58 -0
  24. package/cards/mocks/index.d.ts +3 -0
  25. package/cards/mocks/mocks.helpers.d.ts +500 -0
  26. package/helpers/cases.d.ts +1 -0
  27. package/helpers/dates.d.ts +1 -2
  28. package/helpers/index.d.ts +1 -0
  29. package/helpers/intl.d.ts +1 -0
  30. package/hooks/index.d.ts +1 -1
  31. package/hooks/{use-screen-width.d.ts → use-element-width.d.ts} +1 -1
  32. package/index.js +7 -7
  33. package/index.mjs +583 -439
  34. package/layout/content-layout/columns/columns.d.ts +1 -1
  35. package/loaders/loading-state/loading-state.d.ts +8 -2
  36. package/package.json +1 -1
  37. package/style.css +1 -1
  38. package/styles/base/_text.scss +41 -15
  39. package/styles/base/_titles.scss +22 -0
  40. package/styles/mixins/_containers.scss +18 -0
  41. package/styles/mixins/_index.scss +1 -0
  42. package/styles/variables/colors/_theme.scss +33 -1
  43. package/text/empty-state-box/empty-state-box.d.ts +1 -1
  44. package/text/pill/pill.d.ts +6 -4
  45. package/user/contributors/contributors.d.ts +7 -1
  46. package/user/profile-picture/profile-picture.d.ts +2 -0
package/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
- import N, { memo as Ne, useState as F, useEffect as X, useRef as ne, useMemo as et, Children as Mt, createContext as Ft, useContext as ge, Fragment as Ct, useCallback as ke, useReducer as rs, Suspense as os } from "react";
1
+ import D, { memo as De, useState as F, useEffect as X, useRef as ne, useMemo as et, Children as Mt, createContext as Ft, useContext as ge, Fragment as Ct, useCallback as ke, useReducer as rs, Suspense as os } from "react";
2
2
  import as from "lodash.clonedeep";
3
3
  import is from "lodash.set";
4
- import { useIntl as A, IntlProvider as ls, createIntl as cs, FormattedMessage as ye } from "react-intl";
4
+ import { useIntl as N, IntlProvider as ls, createIntl as cs, FormattedMessage as ye } from "react-intl";
5
5
  import tt from "truncate";
6
6
  import nt from "markdown-to-jsx";
7
7
  import { QueryClient as ds, QueryClientProvider as us, useQueryClient as st, useQuery as fn, useMutation as de } from "@tanstack/react-query";
@@ -53,8 +53,8 @@ var pn = { exports: {} };
53
53
  })();
54
54
  })(pn);
55
55
  var vs = pn.exports;
56
- const S = /* @__PURE__ */ bs(vs), ws = ({ element: e = "span", showOnFocus: t = !0, children: n, ...r }) => N.createElement(e, { ...r, className: S("hidden", { "show-on-focus": t }), children: n }), le = Ne(ws), ks = ({ element: e = "span", children: t = null, ...n }) => N.createElement(e, { ...n, "aria-hidden": !0 }, t), gn = Ne(ks);
57
- var Dt = { exports: {} }, Re = {};
56
+ const S = /* @__PURE__ */ bs(vs), ws = ({ element: e = "span", showOnFocus: t = !0, children: n, ...r }) => D.createElement(e, { ...r, className: S("hidden", { "show-on-focus": t }), children: n }), le = De(ws), ks = ({ element: e = "span", children: t = null, ...n }) => D.createElement(e, { ...n, "aria-hidden": !0 }, t), gn = De(ks);
57
+ var At = { exports: {} }, Re = {};
58
58
  /**
59
59
  * @license React
60
60
  * react-jsx-runtime.production.min.js
@@ -69,7 +69,7 @@ function js() {
69
69
  if (tn)
70
70
  return Re;
71
71
  tn = 1;
72
- var e = N, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
72
+ var e = D, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
73
73
  function d(o, a, u) {
74
74
  var l, f = {}, h = null, p = null;
75
75
  u !== void 0 && (h = "" + u), a.key !== void 0 && (h = "" + a.key), a.ref !== void 0 && (p = a.ref);
@@ -95,7 +95,7 @@ var Fe = {};
95
95
  var nn;
96
96
  function ys() {
97
97
  return nn || (nn = 1, process.env.NODE_ENV !== "production" && function() {
98
- var e = N, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), o = Symbol.for("react.context"), a = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), _ = Symbol.iterator, j = "@@iterator";
98
+ var e = D, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), o = Symbol.for("react.context"), a = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), _ = Symbol.iterator, j = "@@iterator";
99
99
  function g(m) {
100
100
  if (m === null || typeof m != "object")
101
101
  return null;
@@ -265,7 +265,7 @@ function ys() {
265
265
  var Ie = typeof WeakMap == "function" ? WeakMap : Map;
266
266
  xe = new Ie();
267
267
  }
268
- function Ae(m, v) {
268
+ function Ne(m, v) {
269
269
  if (!m || _e)
270
270
  return "";
271
271
  {
@@ -313,17 +313,17 @@ function ys() {
313
313
  }
314
314
  } catch (be) {
315
315
  if (be && $ && typeof be.stack == "string") {
316
- for (var D = be.stack.split(`
316
+ for (var A = be.stack.split(`
317
317
  `), ce = $.stack.split(`
318
- `), q = D.length - 1, ee = ce.length - 1; q >= 1 && ee >= 0 && D[q] !== ce[ee]; )
318
+ `), q = A.length - 1, ee = ce.length - 1; q >= 1 && ee >= 0 && A[q] !== ce[ee]; )
319
319
  ee--;
320
320
  for (; q >= 1 && ee >= 0; q--, ee--)
321
- if (D[q] !== ce[ee]) {
321
+ if (A[q] !== ce[ee]) {
322
322
  if (q !== 1 || ee !== 1)
323
323
  do
324
- if (q--, ee--, ee < 0 || D[q] !== ce[ee]) {
324
+ if (q--, ee--, ee < 0 || A[q] !== ce[ee]) {
325
325
  var he = `
326
- ` + D[q].replace(" at new ", " at ");
326
+ ` + A[q].replace(" at new ", " at ");
327
327
  return m.displayName && he.includes("<anonymous>") && (he = he.replace("<anonymous>", m.displayName)), typeof m == "function" && xe.set(m, he), he;
328
328
  }
329
329
  while (q >= 1 && ee >= 0);
@@ -337,7 +337,7 @@ function ys() {
337
337
  return typeof m == "function" && xe.set(m, en), en;
338
338
  }
339
339
  function Fn(m, v, y) {
340
- return Ae(m, !1);
340
+ return Ne(m, !1);
341
341
  }
342
342
  function Ln(m) {
343
343
  var v = m.prototype;
@@ -347,7 +347,7 @@ function ys() {
347
347
  if (m == null)
348
348
  return "";
349
349
  if (typeof m == "function")
350
- return Ae(m, Ln(m));
350
+ return Ne(m, Ln(m));
351
351
  if (typeof m == "string")
352
352
  return fe(m);
353
353
  switch (m) {
@@ -385,17 +385,17 @@ function ys() {
385
385
  var z = Function.call.bind(Qe);
386
386
  for (var R in m)
387
387
  if (z(m, R)) {
388
- var D = void 0;
388
+ var A = void 0;
389
389
  try {
390
390
  if (typeof m[R] != "function") {
391
391
  var ce = Error(($ || "React class") + ": " + y + " type `" + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof m[R] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
392
392
  throw ce.name = "Invariant Violation", ce;
393
393
  }
394
- D = m[R](v, R, $, y, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
394
+ A = m[R](v, R, $, y, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
395
395
  } catch (q) {
396
- D = q;
396
+ A = q;
397
397
  }
398
- D && !(D instanceof Error) && (Ue(B), k("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", $ || "React class", y, R, typeof D), Ue(null)), D instanceof Error && !(D.message in Qt) && (Qt[D.message] = !0, Ue(B), k("Failed %s type: %s", y, D.message), Ue(null));
398
+ A && !(A instanceof Error) && (Ue(B), k("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", $ || "React class", y, R, typeof A), Ue(null)), A instanceof Error && !(A.message in Qt) && (Qt[A.message] = !0, Ue(B), k("Failed %s type: %s", y, A.message), Ue(null));
399
399
  }
400
400
  }
401
401
  }
@@ -475,7 +475,7 @@ function ys() {
475
475
  }
476
476
  }
477
477
  var Gn = function(m, v, y, $, B, z, R) {
478
- var D = {
478
+ var A = {
479
479
  // This tag allows us to uniquely identify this as a React Element
480
480
  $$typeof: t,
481
481
  // Built-in properties that belong on the element
@@ -486,27 +486,27 @@ function ys() {
486
486
  // Record the component responsible for creating this element.
487
487
  _owner: z
488
488
  };
489
- return D._store = {}, Object.defineProperty(D._store, "validated", {
489
+ return A._store = {}, Object.defineProperty(A._store, "validated", {
490
490
  configurable: !1,
491
491
  enumerable: !1,
492
492
  writable: !0,
493
493
  value: !1
494
- }), Object.defineProperty(D, "_self", {
494
+ }), Object.defineProperty(A, "_self", {
495
495
  configurable: !1,
496
496
  enumerable: !1,
497
497
  writable: !1,
498
498
  value: $
499
- }), Object.defineProperty(D, "_source", {
499
+ }), Object.defineProperty(A, "_source", {
500
500
  configurable: !1,
501
501
  enumerable: !1,
502
502
  writable: !1,
503
503
  value: B
504
- }), Object.freeze && (Object.freeze(D.props), Object.freeze(D)), D;
504
+ }), Object.freeze && (Object.freeze(A.props), Object.freeze(A)), A;
505
505
  };
506
506
  function Jn(m, v, y, $, B) {
507
507
  {
508
- var z, R = {}, D = null, ce = null;
509
- y !== void 0 && (Wt(y), D = "" + y), zn(v) && (Wt(v.key), D = "" + v.key), Un(v) && (ce = v.ref, Wn(v, B));
508
+ var z, R = {}, A = null, ce = null;
509
+ y !== void 0 && (Wt(y), A = "" + y), zn(v) && (Wt(v.key), A = "" + v.key), Un(v) && (ce = v.ref, Wn(v, B));
510
510
  for (z in v)
511
511
  Qe.call(v, z) && !Qn.hasOwnProperty(z) && (R[z] = v[z]);
512
512
  if (m && m.defaultProps) {
@@ -514,11 +514,11 @@ function ys() {
514
514
  for (z in q)
515
515
  R[z] === void 0 && (R[z] = q[z]);
516
516
  }
517
- if (D || ce) {
517
+ if (A || ce) {
518
518
  var ee = typeof m == "function" ? m.displayName || m.name || "Unknown" : m;
519
- D && Vn(R, ee), ce && Yn(R, ee);
519
+ A && Vn(R, ee), ce && Yn(R, ee);
520
520
  }
521
- return Gn(m, D, ce, B, $, Pe.current, R);
521
+ return Gn(m, A, ce, B, $, Pe.current, R);
522
522
  }
523
523
  }
524
524
  var mt = E.ReactCurrentOwner, Gt = E.ReactDebugCurrentFrame;
@@ -643,12 +643,12 @@ Check the top-level render call using <` + y + ">.");
643
643
  {
644
644
  var R = Q(m);
645
645
  if (!R) {
646
- var D = "";
647
- (m === void 0 || typeof m == "object" && m !== null && Object.keys(m).length === 0) && (D += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
646
+ var A = "";
647
+ (m === void 0 || typeof m == "object" && m !== null && Object.keys(m).length === 0) && (A += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
648
648
  var ce = Xn(B);
649
- ce ? D += ce : D += Jt();
649
+ ce ? A += ce : A += Jt();
650
650
  var q;
651
- m === null ? q = "null" : dt(m) ? q = "array" : m !== void 0 && m.$$typeof === t ? (q = "<" + (L(m.type) || "Unknown") + " />", D = " Did you accidentally export a JSX literal instead of a component?") : q = typeof m, k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", q, D);
651
+ m === null ? q = "null" : dt(m) ? q = "array" : m !== void 0 && m.$$typeof === t ? (q = "<" + (L(m.type) || "Unknown") + " />", A = " Did you accidentally export a JSX literal instead of a component?") : q = typeof m, k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", q, A);
652
652
  }
653
653
  var ee = Jn(m, v, y, B, z);
654
654
  if (ee == null)
@@ -679,8 +679,8 @@ Check the top-level render call using <` + y + ">.");
679
679
  Fe.Fragment = r, Fe.jsx = ns, Fe.jsxs = ss;
680
680
  }()), Fe;
681
681
  }
682
- process.env.NODE_ENV === "production" ? Dt.exports = js() : Dt.exports = ys();
683
- var s = Dt.exports;
682
+ process.env.NODE_ENV === "production" ? At.exports = js() : At.exports = ys();
683
+ var s = At.exports;
684
684
  const Es = () => {
685
685
  const [e, t] = F(window.location.pathname), n = () => {
686
686
  const r = window.location.pathname;
@@ -756,26 +756,29 @@ function _n(e, t, n) {
756
756
  return Ss(e, t, { maxWait: t, leading: i === void 0 || i, trailing: c === void 0 || c });
757
757
  }
758
758
  let pt;
759
- const rt = (e = !0, t = !1) => {
759
+ const rt = (e = !0, t = !1, n = "window") => {
760
760
  if (!e)
761
761
  return;
762
- const [n, r] = N.useState(0) || [!1, () => {
762
+ const [r, i] = D.useState(0) || [!1, () => {
763
763
  }];
764
- X(() => (c(), window.addEventListener("resize", d), () => {
765
- clearTimeout(pt), d.flush(), window.removeEventListener("resize", d);
766
- }), []);
767
- const i = () => window.innerWidth, c = () => {
768
- r(i());
769
- }, d = _n(
764
+ X(() => (o(), window.addEventListener("resize", a), () => {
765
+ clearTimeout(pt), a.flush(), window.removeEventListener("resize", a);
766
+ }), n === "window" ? [] : [n]);
767
+ const d = () => {
768
+ if (n)
769
+ return n === "window" ? window.innerWidth : n.offsetWidth;
770
+ }, o = () => {
771
+ i(d());
772
+ }, a = _n(
770
773
  () => {
771
- i() !== n && (t && (clearTimeout(pt), document.body.classList.add("is-resizing"), pt = setTimeout(() => {
774
+ d() !== r && (t && (clearTimeout(pt), document.body.classList.add("is-resizing"), pt = setTimeout(() => {
772
775
  document.body.classList.remove("is-resizing");
773
- }, 550)), c());
776
+ }, 550)), o());
774
777
  },
775
778
  500,
776
779
  { leading: !0 }
777
780
  );
778
- return n;
781
+ return r;
779
782
  }, Ts = ({
780
783
  scrollPosition: e = 0,
781
784
  // The position on the page to scroll past
@@ -787,8 +790,8 @@ const rt = (e = !0, t = !1) => {
787
790
  }) => {
788
791
  if (!window)
789
792
  return;
790
- const [i, c] = N.useState({ current: 0, past: 0 }) || [!1, () => {
791
- }], [d, o] = N.useState({ scrollDown: !1, scrollUp: !1 }) || [!1, () => {
793
+ const [i, c] = D.useState({ current: 0, past: 0 }) || [!1, () => {
794
+ }], [d, o] = D.useState({ scrollDown: !1, scrollUp: !1 }) || [!1, () => {
792
795
  }];
793
796
  X(() => (a(), window.addEventListener("scroll", u), () => {
794
797
  u.flush(), window.removeEventListener("scroll", u);
@@ -804,7 +807,7 @@ const rt = (e = !0, t = !1) => {
804
807
  a();
805
808
  }, 250);
806
809
  return i;
807
- }, mo = (e = [], t = !0) => {
810
+ }, fo = (e = [], t = !0) => {
808
811
  e = Array.isArray(e) ? e : [e];
809
812
  const n = ne(!1);
810
813
  Ce(() => {
@@ -856,10 +859,17 @@ const rt = (e = !0, t = !1) => {
856
859
  return { path: "days", number: o };
857
860
  const a = Math.floor(o / 7);
858
861
  return a <= 52 ? { path: "weeks", number: a } : { path: "years", number: Math.floor(o / 365) };
859
- }, Ds = (e) => new Promise((t) => setTimeout(t, e)), Lt = {
862
+ }, As = (e) => new Promise((t) => setTimeout(t, e)), Lt = {
860
863
  apolitical: "Apolitical",
861
864
  breadcrumbs_label: "Go back to:",
862
865
  breadcrumbs_currentPage: "Current page:",
866
+ card_carousel_viewAll: "View all",
867
+ card_label_event: "Event",
868
+ card_label_learningHub: "Programme",
869
+ card_label_listPage: "List",
870
+ card_label_microcourse: "Course",
871
+ card_label_qaQuestion: "Q&A",
872
+ card_label_solutionArticle: "Article",
863
873
  card_bootcamp: "Email boot camp",
864
874
  card_ended: "Ended",
865
875
  card_registered: "Registered",
@@ -868,6 +878,15 @@ const rt = (e = !0, t = !1) => {
868
878
  card_time_read: "{time} min read",
869
879
  card_watch: "Watch recording",
870
880
  card_cta_people: "View profile",
881
+ card_cta_event: "Register now",
882
+ card_cta_microcourse: "Enrol now",
883
+ card_cta_event_loading: "Registering...",
884
+ card_cta_microcourse_loading: "Enrolling...",
885
+ card_cta_event_done: "Registered",
886
+ card_cta_microcourse_done: "Enrolled",
887
+ carousel_pagination_previous: "Previous",
888
+ carousel_pagination_next: "Next",
889
+ carousel_pagination_page: "Page {number} of {total}",
871
890
  collapsibleSection_summary: "Find out more",
872
891
  communityDetails_members: "Members",
873
892
  communityDetails_viewAll: "View all",
@@ -1139,13 +1158,13 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1139
1158
  sharedLinks_copy_text: "Copy link",
1140
1159
  tags_community: "From the community",
1141
1160
  tooltip_loading: "Loading..."
1142
- }, Ns = {
1161
+ }, Ds = {
1143
1162
  languageSwitcher_label: "Me gustaría leer este artículo en...",
1144
1163
  languageSwitcher_translation_original: "idioma original",
1145
1164
  languageSwitcher_translation_human: "traducido por un humano",
1146
1165
  languageSwitcher_translation_machine: "traducido por máquina",
1147
1166
  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>"
1148
- }, As = {
1167
+ }, Ns = {
1149
1168
  collapsibleSection_summary: "En savoir plus",
1150
1169
  languageSwitcher_label: "Je voudrais lire cet article dans...",
1151
1170
  languageSwitcher_translation_original: "langue originale",
@@ -1161,13 +1180,13 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1161
1180
  }, Rs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1162
1181
  __proto__: null,
1163
1182
  en: Lt,
1164
- es: Ns,
1165
- fr: As,
1183
+ es: Ds,
1184
+ fr: Ns,
1166
1185
  pt: Ps
1167
- }, Symbol.toStringTag, { value: "Module" })), pe = (e, t, n, r, i = {}) => {
1186
+ }, Symbol.toStringTag, { value: "Module" })), Fs = (e) => e in Lt, pe = (e, t, n, r, i = {}) => {
1168
1187
  let c = "";
1169
- return `${t}_${n}` in Lt ? c = e({ id: `${t}_${n}` }, i) : c = e({ id: t }, { [r]: n, ...i }), c;
1170
- }, Fs = (e, t, n) => {
1188
+ return Fs(`${t}_${n}`) ? c = e({ id: `${t}_${n}` }, i) : c = e({ id: t }, { [r]: n, ...i }), c;
1189
+ }, Ls = (e, t, n) => {
1171
1190
  if (!e || e === 0)
1172
1191
  return "0";
1173
1192
  t || (t = 0), n || (n = ["k", "m", "b", "t"]);
@@ -1181,9 +1200,9 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1181
1200
  }
1182
1201
  }
1183
1202
  return r;
1184
- }, vn = (e, t) => N.Children.map(e, (n) => N.cloneElement(n, {
1203
+ }, vn = (e, t) => D.Children.map(e, (n) => D.cloneElement(n, {
1185
1204
  ...t
1186
- })), Ls = (e) => e.replace(/\s+/g, "").length > 0, J = ({
1205
+ })), Os = (e) => e.replace(/\s+/g, "").length > 0, J = ({
1187
1206
  variant: e = "primary",
1188
1207
  size: t = "medium",
1189
1208
  styling: n = { muted: !1, fullWidth: !1 },
@@ -1216,16 +1235,16 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1216
1235
  },
1217
1236
  disabled: typeof a == "object" && "isClickable" in a ? !a.isClickable : a
1218
1237
  };
1219
- return i && (c = "a", j.href = i), N.createElement(
1238
+ return i && (c = "a", j.href = i), D.createElement(
1220
1239
  c,
1221
1240
  j,
1222
1241
  l || (u ? /* @__PURE__ */ s.jsx(le, { showOnFocus: !1, children: u }) : null)
1223
1242
  );
1224
1243
  }, ot = ({ buttons: e, className: t = "", ...n }) => {
1225
1244
  const r = e.length > 1 ? "ul" : "p", i = e.map((c, d) => r === "p" ? /* @__PURE__ */ s.jsx(J, { ...c }, d) : /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(J, { ...c }) }, d));
1226
- return N.createElement(r, { className: S("button-wrapper", t), ...n, children: i });
1245
+ return D.createElement(r, { className: S("button-wrapper", t), ...n, children: i });
1227
1246
  };
1228
- const De = ({ className: e = "", maxWidth: t = !1 }) => {
1247
+ const Ae = ({ className: e = "", maxWidth: t = !1 }) => {
1229
1248
  const n = t ? { "--max-width": `${t / 16}rem` } : {};
1230
1249
  return /* @__PURE__ */ s.jsx("hr", { className: S(e, { "has-max-width": t }), style: n });
1231
1250
  }, at = ({
@@ -1250,7 +1269,7 @@ const De = ({ className: e = "", maxWidth: t = !1 }) => {
1250
1269
  }
1251
1270
  );
1252
1271
  }
1253
- return n ? N.createElement(n, { children: t, className: r, ...o }) : t;
1272
+ return n ? D.createElement(n, { children: t, className: r, ...o }) : t;
1254
1273
  }, sn = {
1255
1274
  card: {
1256
1275
  range: [
@@ -1354,23 +1373,23 @@ const De = ({ className: e = "", maxWidth: t = !1 }) => {
1354
1373
  ],
1355
1374
  sizes: "(min-width: 1024px) 453px, 20vw"
1356
1375
  }
1357
- }, Os = ({
1376
+ }, Bs = ({
1358
1377
  aspect: e,
1359
1378
  range: t,
1360
1379
  sizes: n
1361
1380
  }) => {
1362
1381
  const { range: r, sizes: i } = e ? sn[e] : sn.fallback;
1363
1382
  return { range: t && t.length > 0 ? t : r, sizes: n || i };
1364
- }, Bs = ({ format: e, height: t, query: n, width: r }) => {
1383
+ }, Is = ({ format: e, height: t, query: n, width: r }) => {
1365
1384
  let i = `w=${r}&h=${t}`;
1366
1385
  return i = e ? `${i}&fm=${e}` : i, i = n ? `${i}&${n}` : i, i;
1367
- }, gt = ({ format: e, range: t, url: n, query: r }) => t.map(({ height: i, width: c }) => `${n}?${Bs({
1386
+ }, gt = ({ format: e, range: t, url: n, query: r }) => t.map(({ height: i, width: c }) => `${n}?${Is({
1368
1387
  format: e,
1369
1388
  height: i,
1370
1389
  query: r,
1371
1390
  width: c
1372
1391
  })} ${c}w`).join(", ");
1373
- const Is = ({ image: e, className: t, testId: n }) => {
1392
+ const Hs = ({ image: e, className: t, testId: n }) => {
1374
1393
  const {
1375
1394
  description: r,
1376
1395
  height: i,
@@ -1381,7 +1400,7 @@ const Is = ({ image: e, className: t, testId: n }) => {
1381
1400
  loading: u,
1382
1401
  decoding: l,
1383
1402
  fetchPriority: f
1384
- } = e, { range: h, sizes: p } = Os(e), _ = gt({ format: "avif", query: d, range: h, url: o }), j = gt({ format: "webp", query: d, range: h, url: o }), g = gt({ format: "", query: d, range: h, url: o });
1403
+ } = e, { range: h, sizes: p } = Bs(e), _ = gt({ format: "avif", query: d, range: h, url: o }), j = gt({ format: "webp", query: d, range: h, url: o }), g = gt({ format: "", query: d, range: h, url: o });
1385
1404
  return /* @__PURE__ */ s.jsxs("picture", { className: t, children: [
1386
1405
  c !== "image/gif" && /* @__PURE__ */ s.jsx(
1387
1406
  "source",
@@ -1419,8 +1438,8 @@ const Is = ({ image: e, className: t, testId: n }) => {
1419
1438
  ] });
1420
1439
  };
1421
1440
  let Le = !1;
1422
- const Hs = ({ isOpen: e = !1, isLoading: t = !1, children: n }) => {
1423
- const r = A(), i = ne(null), [c, d] = F("hidden");
1441
+ const Qs = ({ isOpen: e = !1, isLoading: t = !1, children: n }) => {
1442
+ const r = N(), i = ne(null), [c, d] = F("hidden");
1424
1443
  X(() => {
1425
1444
  const a = i.current;
1426
1445
  if (a)
@@ -1440,7 +1459,7 @@ const Hs = ({ isOpen: e = !1, isLoading: t = !1, children: n }) => {
1440
1459
  }, [e]), /* @__PURE__ */ s.jsx("aside", { ref: i, className: S("tooltip text-medium", c, { loading: t }), hidden: c === "hidden", children: t ? /* @__PURE__ */ s.jsx("p", { children: r.formatMessage({ id: "tooltip_loading" }) }) : typeof n == "string" ? /* @__PURE__ */ s.jsx("p", { children: n }) : n });
1441
1460
  };
1442
1461
  const wn = ({ children: e, className: t = "", ...n }) => /* @__PURE__ */ s.jsx("section", { className: S("full-width-section", t), ...n, children: e });
1443
- const fo = ({ text: e, buttons: t, className: n = "" }) => {
1462
+ const ho = ({ text: e, buttons: t, className: n = "" }) => {
1444
1463
  const r = [];
1445
1464
  return t.forEach((i) => {
1446
1465
  r.push({
@@ -1454,11 +1473,11 @@ const fo = ({ text: e, buttons: t, className: n = "" }) => {
1454
1473
  children: i.text
1455
1474
  });
1456
1475
  }), /* @__PURE__ */ s.jsx(wn, { className: S("download-section", n), children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1457
- N.createElement(typeof e == "string" ? "h2" : e.element, { className: "text" }, typeof e == "string" ? e : e.text),
1476
+ D.createElement(typeof e == "string" ? "h2" : e.element, { className: "text" }, typeof e == "string" ? e : e.text),
1458
1477
  /* @__PURE__ */ s.jsx(ot, { buttons: r })
1459
1478
  ] }) });
1460
1479
  };
1461
- const ho = ({ title: e = !1, logos: t = [], className: n = "" }) => {
1480
+ const po = ({ title: e = !1, logos: t = [], className: n = "" }) => {
1462
1481
  const r = t.length;
1463
1482
  if (r === 0)
1464
1483
  return null;
@@ -1467,7 +1486,7 @@ const ho = ({ title: e = !1, logos: t = [], className: n = "" }) => {
1467
1486
  text: typeof e == "string" ? e : typeof e == "object" ? e.text : ""
1468
1487
  };
1469
1488
  return /* @__PURE__ */ s.jsxs("div", { className: S("logos", n), children: [
1470
- e && N.createElement(i.element, { className: "title" }, i.text),
1489
+ e && D.createElement(i.element, { className: "title" }, i.text),
1471
1490
  /* @__PURE__ */ s.jsx(
1472
1491
  "ul",
1473
1492
  {
@@ -1503,7 +1522,7 @@ const ho = ({ title: e = !1, logos: t = [], className: n = "" }) => {
1503
1522
  )
1504
1523
  ] });
1505
1524
  };
1506
- const Qs = [
1525
+ const Us = [
1507
1526
  "small",
1508
1527
  "span",
1509
1528
  "strong",
@@ -1517,7 +1536,7 @@ const Qs = [
1517
1536
  "h6",
1518
1537
  "blockquote",
1519
1538
  "q"
1520
- ], Us = ({
1539
+ ], zs = ({
1521
1540
  className: e = "",
1522
1541
  content: t,
1523
1542
  image: n,
@@ -1535,7 +1554,7 @@ const Qs = [
1535
1554
  if (typeof t[l] == "object") {
1536
1555
  u[l] = t[l];
1537
1556
  const { text: f, element: h } = t[l];
1538
- if (h && Qs.includes(h.toLowerCase()))
1557
+ if (h && Us.includes(h.toLowerCase()))
1539
1558
  return;
1540
1559
  u[l] = {
1541
1560
  text: f,
@@ -1563,7 +1582,7 @@ const Qs = [
1563
1582
  o.map((l) => {
1564
1583
  if (u[l] && typeof u[l] == "object") {
1565
1584
  const { text: f, element: h = "" } = u[l];
1566
- return N.createElement(
1585
+ return D.createElement(
1567
1586
  h.toLowerCase(),
1568
1587
  { key: l, className: l },
1569
1588
  f
@@ -1583,12 +1602,12 @@ const Qs = [
1583
1602
  }
1584
1603
  )
1585
1604
  ] }),
1586
- n && /* @__PURE__ */ s.jsx(Is, { image: { ...n, aspect: "banner" } })
1605
+ n && /* @__PURE__ */ s.jsx(Hs, { image: { ...n, aspect: "banner" } })
1587
1606
  ] })
1588
1607
  }
1589
1608
  );
1590
- }, po = Ne(Us);
1591
- const go = ({
1609
+ }, go = De(zs);
1610
+ const _o = ({
1592
1611
  variant: e = "primary",
1593
1612
  button: t = null,
1594
1613
  title: n,
@@ -1598,52 +1617,69 @@ const go = ({
1598
1617
  n && /* @__PURE__ */ s.jsx("p", { className: "title", children: n }),
1599
1618
  r && /* @__PURE__ */ s.jsx("p", { children: r }),
1600
1619
  t && /* @__PURE__ */ s.jsx(J, { variant: "secondary", size: "medium", href: t.link, className: "gtm-trackable", "data-gtm-event-context": i, "data-gtm-event-type": "learn-more-click", children: t.text })
1601
- ] }), Nt = "https://storage.googleapis.com/apolitical-assets/", Oe = {
1620
+ ] }), Dt = "https://storage.googleapis.com/apolitical-assets/", Oe = {
1602
1621
  general: "hello@apolitical.co",
1603
1622
  support: "concierge@apolitical.co",
1604
1623
  "data-protection": {
1605
1624
  default: "dpo@apolitical.co",
1606
1625
  eu: "dpo.agl@apolitical.foundation"
1607
1626
  }
1608
- }, _o = "200,000+";
1627
+ }, xo = "200,000+";
1609
1628
  const kn = ({ label: e = !1, className: t = "", children: n }) => {
1610
- const r = A();
1629
+ const r = N();
1611
1630
  return /* @__PURE__ */ s.jsxs("details", { className: S("collapsible-section", t), children: [
1612
1631
  /* @__PURE__ */ s.jsx("summary", { children: e || r.formatMessage({ id: "collapsibleSection_summary" }) }),
1613
1632
  /* @__PURE__ */ s.jsx("div", { className: "content", children: n })
1614
1633
  ] });
1615
1634
  };
1616
1635
  const Ee = ({ variant: e = "primary", className: t = "", children: n, ...r }) => /* @__PURE__ */ s.jsx("div", { className: S("highlighted-text-box", e, t), ...r, children: n });
1617
- const it = ({ variant: e = "empty", text: t = !1, button: n = !1, className: r = "" }) => {
1636
+ const it = ({
1637
+ variant: e = "empty",
1638
+ text: t = !1,
1639
+ button: n = !1,
1640
+ className: r = ""
1641
+ }) => {
1618
1642
  let i = n && !!Object.keys(n).length;
1619
1643
  const c = typeof n == "object" && "breakpoints" in n, d = rt(c);
1620
1644
  if (c && typeof n == "object" && typeof d == "number") {
1621
1645
  const f = Object.assign({}, n.breakpoints), h = xn(Object.keys(f));
1622
1646
  i = bn(d, h, f);
1623
1647
  }
1624
- const { breakpoints: o, text: a = "", component: u, ...l } = n;
1625
- return /* @__PURE__ */ s.jsx(Ee, { variant: "subtle", className: S("empty-state-box", e, r), children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1626
- t && /* @__PURE__ */ s.jsx(nt, { options: { forceBlock: !0 }, children: t }),
1627
- i && typeof n == "object" && (u || /* @__PURE__ */ s.jsx(
1628
- J,
1629
- {
1630
- ...l,
1631
- variant: n.variant ? n.variant : "secondary",
1632
- children: a
1633
- }
1634
- ))
1635
- ] }) });
1648
+ const {
1649
+ breakpoints: o,
1650
+ text: a = "",
1651
+ component: u,
1652
+ ...l
1653
+ } = n;
1654
+ return /* @__PURE__ */ s.jsx(
1655
+ Ee,
1656
+ {
1657
+ variant: "subtle",
1658
+ className: S("empty-state-box", e, r),
1659
+ children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1660
+ t && /* @__PURE__ */ s.jsx(nt, { options: { forceBlock: !0 }, children: t }),
1661
+ i && typeof n == "object" && (u || /* @__PURE__ */ s.jsx(
1662
+ J,
1663
+ {
1664
+ ...l,
1665
+ variant: n.variant ? n.variant : "secondary",
1666
+ children: a
1667
+ }
1668
+ ))
1669
+ ] })
1670
+ }
1671
+ );
1636
1672
  };
1637
- const At = ({ children: e, ...t }) => /* @__PURE__ */ s.jsx("p", { ...t, children: e }), jn = { q: At, blockquote: At };
1673
+ const Nt = ({ children: e, ...t }) => /* @__PURE__ */ s.jsx("p", { ...t, children: e }), jn = { q: Nt, blockquote: Nt };
1638
1674
  for (let e = 1; e <= 6; e++)
1639
- jn[`h${e}`] = { component: At, props: { className: "title" } };
1640
- const zs = ({ type: e = "default", className: t = "", heading: n = !1, children: r }) => /* @__PURE__ */ s.jsxs("div", { className: S("helper-text-box text-small", e, t), children: [
1675
+ jn[`h${e}`] = { component: Nt, props: { className: "title" } };
1676
+ const Ws = ({ type: e = "default", className: t = "", heading: n = !1, children: r }) => /* @__PURE__ */ s.jsxs("div", { className: S("helper-text-box text-small", e, t), children: [
1641
1677
  n && /* @__PURE__ */ s.jsx("p", { className: "title", children: n }),
1642
1678
  typeof r == "string" ? /* @__PURE__ */ s.jsx(
1643
1679
  nt,
1644
1680
  {
1645
1681
  options: {
1646
- wrapper: N.Fragment,
1682
+ wrapper: D.Fragment,
1647
1683
  forceBlock: !0,
1648
1684
  overrides: jn
1649
1685
  },
@@ -1651,8 +1687,8 @@ const zs = ({ type: e = "default", className: t = "", heading: n = !1, children:
1651
1687
  }
1652
1688
  ) : /* @__PURE__ */ s.jsx("p", { children: r })
1653
1689
  ] });
1654
- const xo = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children: i }) => {
1655
- const c = A(), d = ne(null), [o, a] = F(""), [u, l] = F("closed");
1690
+ const bo = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children: i }) => {
1691
+ const c = N(), d = ne(null), [o, a] = F(""), [u, l] = F("closed");
1656
1692
  X(() => {
1657
1693
  const p = d.current;
1658
1694
  if (p)
@@ -1694,20 +1730,20 @@ const xo = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
1694
1730
  }
1695
1731
  ) })
1696
1732
  ] });
1697
- }, Ws = () => N.Fragment, Vs = ({ children: e }) => /* @__PURE__ */ s.jsx(Ee, { variant: "secondary", children: e }), Ys = ["span", "strong", "h1", "h2", "h3", "h4", "h5", "h6", "p"], Gs = ({ children: e }) => {
1698
- const t = A();
1733
+ }, Vs = () => D.Fragment, Ys = ({ children: e }) => /* @__PURE__ */ s.jsx(Ee, { variant: "secondary", children: e }), Gs = ["span", "strong", "h1", "h2", "h3", "h4", "h5", "h6", "p"], Js = ({ children: e }) => {
1734
+ const t = N();
1699
1735
  if (!e)
1700
1736
  return null;
1701
1737
  let n = t.formatMessage({ id: "markdown_collapsibleSection_summary" });
1702
1738
  const r = [];
1703
1739
  for (const c of Mt.toArray(e))
1704
1740
  if (!(!c || typeof c == "string" || typeof c == "number"))
1705
- if (N.isValidElement(c) && c.type === "summary") {
1741
+ if (D.isValidElement(c) && c.type === "summary") {
1706
1742
  if (c.props && c.props.children) {
1707
1743
  for (const d of Mt.toArray(c.props.children))
1708
- if (!(!d || typeof d == "string" || typeof d == "number") && N.isValidElement(d)) {
1744
+ if (!(!d || typeof d == "string" || typeof d == "number") && D.isValidElement(d)) {
1709
1745
  const o = d.type;
1710
- if (Ys.includes(o)) {
1746
+ if (Gs.includes(o)) {
1711
1747
  for (n = d.props.children; typeof n != "string" && (Array.isArray(n) && n[0].props && n[0].props.children && n[0].props.children[0]); )
1712
1748
  n = n[0].props.children[0];
1713
1749
  break;
@@ -1725,7 +1761,7 @@ const xo = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
1725
1761
  children: r.map((c) => c)
1726
1762
  }
1727
1763
  );
1728
- }, Js = ({ children: e, ...t }) => {
1764
+ }, Xs = ({ children: e, ...t }) => {
1729
1765
  if (t.class)
1730
1766
  switch (t.class) {
1731
1767
  case "casestudy":
@@ -1739,8 +1775,8 @@ const xo = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
1739
1775
  return /* @__PURE__ */ s.jsx("div", { ...t, children: e });
1740
1776
  }
1741
1777
  return /* @__PURE__ */ s.jsx("div", { ...t, children: e });
1742
- }, Xs = (e) => {
1743
- const t = A(), n = Date.now().toString();
1778
+ }, Zs = (e) => {
1779
+ const t = N(), n = Date.now().toString();
1744
1780
  let r = "default";
1745
1781
  const i = e.src;
1746
1782
  return i.includes("youtube") || i.includes("vimeo") ? r = "video" : i.includes("riddle") || i.includes("sli.do") ? r = "poll" : i.includes("padlet") && (r = "padlet"), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
@@ -1751,52 +1787,58 @@ const xo = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
1751
1787
  }, rn = (e) => {
1752
1788
  let t = "";
1753
1789
  return e && typeof e != "string" && typeof e != "number" && typeof e != "boolean" && "type" in e && (t = e.type), t;
1754
- }, Zs = ({ children: e, ...t }) => {
1790
+ }, Ks = ({ children: e, ...t }) => {
1755
1791
  let n = { ...t };
1756
1792
  t.href && (t.href.includes("http:") || t.href.includes("https:")) && !t.target && (n.target = "_blank");
1757
1793
  let r = e, i = !1;
1758
1794
  for (const c of Mt.toArray(e))
1759
- if (!(!c || typeof c == "string" || typeof c == "number") && N.isValidElement(c)) {
1795
+ if (!(!c || typeof c == "string" || typeof c == "number") && D.isValidElement(c)) {
1760
1796
  const d = c.type;
1761
1797
  if (["button", "center", "span", "strong"].includes(d) && c.props && c.props.children && c.props.children[0])
1762
- for ((d === "button" || rn(c.props.children[0]) === "button") && (i = !0), r = c.props.children[0]; r && typeof r != "string" && !(typeof r == "boolean" || typeof r == "number" || !N.isValidElement(r)); )
1798
+ for ((d === "button" || rn(c.props.children[0]) === "button") && (i = !0), r = c.props.children[0]; r && typeof r != "string" && !(typeof r == "boolean" || typeof r == "number" || !D.isValidElement(r)); )
1763
1799
  if (r.props && r.props.children && r.props.children[0])
1764
1800
  r = r.props.children[0], r && rn(r) === "button" && (i = !0);
1765
1801
  else
1766
1802
  break;
1767
1803
  }
1768
1804
  return i ? (n = { ...n, className: "button primary medium" }, /* @__PURE__ */ s.jsx("p", { className: "center", children: /* @__PURE__ */ s.jsx(J, { variant: "primary", size: "medium", ...n, children: r }) })) : /* @__PURE__ */ s.jsx("a", { ...n, children: r });
1769
- }, Ks = ({ children: e }) => /* @__PURE__ */ s.jsx("span", { children: e });
1805
+ }, qs = ({ children: e }) => /* @__PURE__ */ s.jsx("span", { children: e });
1770
1806
  const on = ({ className: e = "", options: t = {}, children: n }) => {
1771
1807
  n = n.replace(/^<br\/?>/, "");
1772
1808
  const r = {
1773
- wrapper: N.Fragment,
1809
+ wrapper: D.Fragment,
1774
1810
  forceBlock: !0,
1775
1811
  overrides: {
1776
- a: Zs,
1812
+ a: Ks,
1777
1813
  // Override psuedo-code
1778
1814
  // We give the content team psuedo-code short cuts to use in Contentful
1779
1815
  CollapsibleSection: kn,
1780
1816
  TextBox: Ee,
1781
- CaseStudy: Vs,
1817
+ CaseStudy: Ys,
1782
1818
  // Override embedded HTML
1783
1819
  // Our content team previously used real HTML, which we need to tear out and replace with React components
1784
- style: Ws,
1785
- details: Gs,
1786
- div: Js,
1787
- iframe: Xs
1820
+ style: Vs,
1821
+ details: Js,
1822
+ div: Xs,
1823
+ iframe: Zs
1788
1824
  }
1789
1825
  };
1790
1826
  return /* @__PURE__ */ s.jsx("div", { className: S("markdown-text", e), children: /* @__PURE__ */ s.jsx(nt, { options: { ...r, ...t }, children: n }) });
1791
1827
  };
1792
- const qs = ({ size: e = "medium", variant: t = "default", className: n = "", children: r }) => /* @__PURE__ */ s.jsx("span", { className: S("pill", e, t, n), children: r });
1793
- const Pt = ({ element: e = "p", children: t = null, className: n = "", ...r }) => N.createElement(e, { ...r, className: S("status-banner text-small", n), "aria-live": "assertive" }, t);
1794
- const er = ({ progress: e = 0, text: t = !1, className: n = "" }) => {
1795
- const r = A(), i = e > 75 ? 100 : e > 50 ? 75 : e > 25 ? 50 : e > 5 ? 25 : 0, c = { "--progress": `${e}%` };
1828
+ const er = ({
1829
+ size: e = "medium",
1830
+ variant: t = "default",
1831
+ className: n = "",
1832
+ children: r,
1833
+ ...i
1834
+ }) => /* @__PURE__ */ s.jsx("span", { className: S("pill", e, t, n), ...i, children: r });
1835
+ const Pt = ({ element: e = "p", children: t = null, className: n = "", ...r }) => D.createElement(e, { ...r, className: S("status-banner text-small", n), "aria-live": "assertive" }, t);
1836
+ const tr = ({ progress: e = 0, text: t = !1, className: n = "" }) => {
1837
+ const r = N(), i = e > 75 ? 100 : e > 50 ? 75 : e > 25 ? 50 : e > 5 ? 25 : 0, c = { "--progress": `${e}%` };
1796
1838
  return /* @__PURE__ */ s.jsx("span", { className: S(`progress-bar section-${i}`, n), style: c, children: /* @__PURE__ */ s.jsx(le, { children: t ? `${e} ${t}` : r.formatMessage({ id: "progressBar" }, { number: e }) }) });
1797
- }, tr = Ne(er);
1798
- const _t = "loadingBlock_", nr = ({ progress: e = 0, steps: t = !1, className: n = "" }) => {
1799
- const r = A();
1839
+ }, nr = De(tr);
1840
+ const _t = "loadingBlock_", sr = ({ progress: e = 0, steps: t = !1, className: n = "" }) => {
1841
+ const r = N();
1800
1842
  t || (t = {
1801
1843
  0: { text: r.formatMessage({ id: `${_t}loading` }) },
1802
1844
  75: { text: r.formatMessage({ id: `${_t}almostDone` }) },
@@ -1806,7 +1848,7 @@ const _t = "loadingBlock_", nr = ({ progress: e = 0, steps: t = !1, className: n
1806
1848
  const c = Object.keys(t);
1807
1849
  for (let o = 0; o < c.length && !(e < parseInt(c[o])); o++)
1808
1850
  i = c[o];
1809
- const d = i && t[i].icon ? { "--icon": `url(${Nt}icons/${t[i].icon}.svg)` } : {};
1851
+ const d = i && t[i].icon ? { "--icon": `url(${Dt}icons/${t[i].icon}.svg)` } : {};
1810
1852
  return /* @__PURE__ */ s.jsxs(
1811
1853
  Ee,
1812
1854
  {
@@ -1815,22 +1857,33 @@ const _t = "loadingBlock_", nr = ({ progress: e = 0, steps: t = !1, className: n
1815
1857
  style: d,
1816
1858
  children: [
1817
1859
  i && /* @__PURE__ */ s.jsx("span", { className: "step", children: t[i].text }),
1818
- /* @__PURE__ */ s.jsx(tr, { progress: e })
1860
+ /* @__PURE__ */ s.jsx(nr, { progress: e })
1819
1861
  ]
1820
1862
  }
1821
1863
  );
1822
- }, bo = Ne(nr);
1864
+ }, vo = De(sr);
1823
1865
  const je = ({ element: e = "div", className: t = "", ...n }) => /* @__PURE__ */ s.jsx(gn, { element: e, className: S("loading-placeholder", t), ...n });
1824
1866
  const Rt = {
1825
1867
  header: ["logo", "link", "link", "search"],
1826
1868
  sidebar: ["text", "text", "text", "text", "text"],
1827
1869
  "cards-section": ["subtitle", "cards"],
1870
+ heading: ["title"],
1828
1871
  cards: ["card", "card", "card", "card"],
1829
- "overview-page": ["header", "sidebar", "title", "text", "cards-section", "cards-section", "footer"]
1830
- }, yn = (e, t) => e in Rt ? /* @__PURE__ */ s.jsx("div", { className: e, children: Rt[e].map((n, r) => yn(n, r)) }, t) : /* @__PURE__ */ s.jsx(je, { className: e }, t), sr = ({ layout: e = "overview-page" }) => /* @__PURE__ */ s.jsx("div", { className: S("loading-state", e), children: Rt[e].map((t, n) => yn(t, n)) }), En = (e) => {
1872
+ carousel: ["cards", "controls"],
1873
+ "carousel-with-title": ["title", "cards", "controls"],
1874
+ "overview-page": [
1875
+ "header",
1876
+ "sidebar",
1877
+ "title",
1878
+ "text",
1879
+ "cards-section",
1880
+ "cards-section",
1881
+ "footer"
1882
+ ]
1883
+ }, yn = (e, t) => e in Rt ? /* @__PURE__ */ s.jsx("div", { className: e, children: Rt[e].map((n, r) => yn(n, r)) }, t) : /* @__PURE__ */ s.jsx(je, { className: e }, t), rr = ({ layout: e = "overview-page", ...t }) => /* @__PURE__ */ s.jsx("div", { className: S("loading-state", e), ...t, children: Rt[e].map((n, r) => yn(n, r)) }), En = (e) => {
1831
1884
  const t = e && e.toUpperCase().split(" ");
1832
1885
  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) : "";
1833
- }, ze = ["#5AB6A3", "#A2D7AF", "#806056", "#3962B3"], rr = (e) => {
1886
+ }, ze = ["#5AB6A3", "#A2D7AF", "#806056", "#3962B3"], or = (e) => {
1834
1887
  const t = Math.ceil(26 / ze.length), n = En(e).toLowerCase();
1835
1888
  if (n === "")
1836
1889
  return ze[0];
@@ -1839,7 +1892,15 @@ const Rt = {
1839
1892
  if (r <= t * (i + 1))
1840
1893
  return ze[i];
1841
1894
  };
1842
- const an = 256, Ot = ({ className: e = "", src: t = "", name: n, alt: r, width: i = an, height: c = an, ...d }) => {
1895
+ const an = 256, Ot = ({
1896
+ className: e = "",
1897
+ src: t = "",
1898
+ name: n,
1899
+ alt: r,
1900
+ width: i = an,
1901
+ height: c = an,
1902
+ ...d
1903
+ }) => {
1843
1904
  const [o, a] = F(!1), u = ne(null);
1844
1905
  X(() => {
1845
1906
  const f = u.current;
@@ -1849,25 +1910,32 @@ const an = 256, Ot = ({ className: e = "", src: t = "", name: n, alt: r, width:
1849
1910
  if (!h)
1850
1911
  return;
1851
1912
  const p = i, _ = c;
1852
- typeof window < "u" && window.devicePixelRatio && (f.width = p * window.devicePixelRatio, f.height = _ * window.devicePixelRatio, h.scale(window.devicePixelRatio, window.devicePixelRatio)), h.fillStyle = rr(n), h.fillRect(0, 0, p, _), h.font = `${p / 3}px Arial`, h.textAlign = "center", h.fillStyle = "white", h.fillText(En(n), p / 2, _ / 1.6);
1913
+ typeof window < "u" && window.devicePixelRatio && (f.width = p * window.devicePixelRatio, f.height = _ * window.devicePixelRatio, h.scale(window.devicePixelRatio, window.devicePixelRatio)), h.fillStyle = or(n), h.fillRect(0, 0, p, _), h.font = `${p / 3}px Arial`, h.textAlign = "center", h.fillStyle = "white", h.fillText(En(n), p / 2, _ / 1.6);
1853
1914
  }, [n]);
1854
1915
  let l = !1;
1855
- return t && t !== "" && !o && (t.includes("http") || t.includes("//")) && (l = !0), /* @__PURE__ */ s.jsx("figure", { className: S("profile-picture", e, { error: o }), ...d, children: l ? /* @__PURE__ */ s.jsx(
1856
- "img",
1916
+ return t && t !== "" && !o && (t.includes("http") || t.includes("//")) && (l = !0), /* @__PURE__ */ s.jsx(
1917
+ "figure",
1857
1918
  {
1858
- src: t,
1859
- alt: r || n,
1860
- onError: () => {
1861
- a(!0);
1862
- },
1863
- width: i,
1864
- height: c
1919
+ className: S("profile-picture", e, { error: o }),
1920
+ ...d,
1921
+ children: l ? /* @__PURE__ */ s.jsx(
1922
+ "img",
1923
+ {
1924
+ src: t,
1925
+ alt: r || n,
1926
+ onError: () => {
1927
+ a(!0);
1928
+ },
1929
+ width: i,
1930
+ height: c
1931
+ }
1932
+ ) : /* @__PURE__ */ s.jsx("canvas", { ref: u })
1865
1933
  }
1866
- ) : /* @__PURE__ */ s.jsx("canvas", { ref: u }) });
1934
+ );
1867
1935
  }, Sn = (e) => e === "apolitical" ? {
1868
- image: `${Nt}logos/member_apolitical.svg`
1936
+ image: `${Dt}logos/member_apolitical.svg`
1869
1937
  } : e === "community" || typeof e == "object" && !e.name ? {
1870
- image: `${Nt}logos/member_community.svg`
1938
+ image: `${Dt}logos/member_community.svg`
1871
1939
  } : {
1872
1940
  name: e.name,
1873
1941
  role: e.jobTitle || "",
@@ -1875,7 +1943,7 @@ const an = 256, Ot = ({ className: e = "", src: t = "", name: n, alt: r, width:
1875
1943
  country: e.location && e.location.country || "",
1876
1944
  url: `/profiles/${e.id}`,
1877
1945
  image: e.image && e.image.thumbnail
1878
- }, or = ({
1946
+ }, ar = ({
1879
1947
  role: e = "",
1880
1948
  organisation: t = "",
1881
1949
  country: n = "",
@@ -1896,10 +1964,10 @@ const Bt = ({
1896
1964
  gtmType: i = "member-click",
1897
1965
  className: c = ""
1898
1966
  }) => {
1899
- const d = A(), o = Sn(t);
1967
+ const d = N(), o = Sn(t);
1900
1968
  o.name || (o.name = d.formatMessage({ id: `member_${typeof t == "string" ? t : "community"}` }));
1901
- const { name: a, url: u, image: l } = o, f = or(o), h = n && n.createdAt ? Cs(n.createdAt) : !1, p = n && n.createdAt ? Ms(n.createdAt) : "";
1902
- return N.createElement(e, {
1969
+ const { name: a, url: u, image: l } = o, f = ar(o), h = n && n.createdAt ? Cs(n.createdAt) : !1, p = n && n.createdAt ? Ms(n.createdAt) : "";
1970
+ return D.createElement(e, {
1903
1971
  className: S("member text-medium", c),
1904
1972
  children: /* @__PURE__ */ s.jsxs(
1905
1973
  at,
@@ -1928,31 +1996,58 @@ const Bt = ({
1928
1996
  const ln = {
1929
1997
  small: 24,
1930
1998
  medium: 48
1931
- }, ar = ({ element: e = "div", contributors: { total: t, data: n } = { total: void 0, data: [] }, styling: { showText: r, size: i, showGap: c, showPlaceholders: d } = { showText: !0, size: "medium", showGap: !0, showPlaceholders: !1 }, cutoff: o = 2, className: a = "" }) => {
1932
- const u = A();
1933
- return !n || n.length === 0 ? null : N.createElement(
1934
- e,
1935
- { className: S("contributors", a, i, { "has-gap": c }), children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1936
- /* @__PURE__ */ s.jsx("ul", { children: n.map((l, f) => {
1937
- let h, p = "";
1938
- if (f < o) {
1939
- const { name: _ = "", image: j = "" } = Sn(l);
1999
+ }, ir = ({
2000
+ element: e = "div",
2001
+ contributors: { total: t, data: n } = { total: void 0, data: [] },
2002
+ styling: { showText: r, size: i, showGap: c, showPlaceholders: d } = {
2003
+ showText: !0,
2004
+ size: "medium",
2005
+ showGap: !0,
2006
+ showPlaceholders: !1
2007
+ },
2008
+ cutoff: o = 2,
2009
+ className: a = "",
2010
+ ...u
2011
+ }) => {
2012
+ const l = N();
2013
+ return !n || n.length === 0 ? null : D.createElement(e, {
2014
+ ...u,
2015
+ className: S("contributors", a, i, { "has-gap": c }),
2016
+ children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
2017
+ /* @__PURE__ */ s.jsx("ul", { children: n.map((f, h) => {
2018
+ let p, _ = "";
2019
+ if (h < o) {
2020
+ const { name: j = "", image: g = "" } = Sn(f);
1940
2021
  if (d)
1941
- return /* @__PURE__ */ s.jsx(je, { element: "li", className: "contributor" }, f);
1942
- h = /* @__PURE__ */ s.jsx(Ot, { name: _, src: j, width: ln[i || "medium"], height: ln[i || "medium"] });
1943
- } else if (f === o) {
1944
- const _ = (t || n.length) - o;
1945
- h = /* @__PURE__ */ s.jsxs("small", { className: S({ "large-number": _ > 99 }), children: [
1946
- "+",
1947
- Fs(_, 0)
1948
- ] }), p = "number-left";
2022
+ return /* @__PURE__ */ s.jsx(je, { element: "li", className: "contributor" }, h);
2023
+ p = /* @__PURE__ */ s.jsx(
2024
+ Ot,
2025
+ {
2026
+ name: j,
2027
+ src: g,
2028
+ width: ln[i || "medium"],
2029
+ height: ln[i || "medium"]
2030
+ }
2031
+ );
2032
+ } else if (h === o) {
2033
+ const j = (t || n.length) - o;
2034
+ p = /* @__PURE__ */ s.jsxs(
2035
+ "small",
2036
+ {
2037
+ className: S({ "large-number": j > 99 }),
2038
+ children: [
2039
+ "+",
2040
+ Ls(j, 0)
2041
+ ]
2042
+ }
2043
+ ), _ = "number-left";
1949
2044
  }
1950
- return h ? /* @__PURE__ */ s.jsx("li", { className: S("contributor", p), children: h }, f) : null;
2045
+ return p ? /* @__PURE__ */ s.jsx("li", { className: S("contributor", _), children: p }, h) : null;
1951
2046
  }) }),
1952
- r && /* @__PURE__ */ s.jsx("span", { className: "label", children: typeof r == "string" ? r : n.length === 1 ? typeof n[0] == "string" ? u.formatMessage({ id: `member_${n[0]}` }) : tt(n[0].name || "", 20) : null })
1953
- ] }) }
1954
- );
1955
- }, ir = ({ showDevTools: e = !0, children: t }) => {
2047
+ r && /* @__PURE__ */ s.jsx("span", { className: "label", children: typeof r == "string" ? r : n.length === 1 ? typeof n[0] == "string" ? l.formatMessage({ id: `member_${n[0]}` }) : tt(n[0].name || "", 20) : null })
2048
+ ] })
2049
+ });
2050
+ }, lr = ({ showDevTools: e = !0, children: t }) => {
1956
2051
  const n = new ds({
1957
2052
  // default options we would like on all queries can be overridden individually
1958
2053
  defaultOptions: {
@@ -1969,15 +2064,15 @@ const ln = {
1969
2064
  e && /* @__PURE__ */ s.jsx(ms, { initialIsOpen: !1 })
1970
2065
  ] });
1971
2066
  };
1972
- var lr = Ft({ client: Xe });
1973
- function cr(e) {
2067
+ var cr = Ft({ client: Xe });
2068
+ function dr(e) {
1974
2069
  var t = e.children, n = e.client, r = e.apiKey, i = e.options, c = et(function() {
1975
2070
  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 && i && 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 && (Xe.__loaded && console.warn("[PostHog.js] was already loaded elsewhere. This may cause issues."), Xe.init(r, i)), Xe);
1976
2071
  }, [n, r]);
1977
- return N.createElement(lr.Provider, { value: { client: c } }, t);
2072
+ return D.createElement(cr.Provider, { value: { client: c } }, t);
1978
2073
  }
1979
- const dr = ({ children: e, user: t }) => t.isLoading ? /* @__PURE__ */ s.jsx(s.Fragment, {}) : process.env.REACT_APP_PUBLIC_POSTHOG_KEY ? /* @__PURE__ */ s.jsx(
1980
- cr,
2074
+ const ur = ({ children: e, user: t }) => t.isLoading ? /* @__PURE__ */ s.jsx(s.Fragment, {}) : process.env.REACT_APP_PUBLIC_POSTHOG_KEY ? /* @__PURE__ */ s.jsx(
2075
+ dr,
1981
2076
  {
1982
2077
  apiKey: atob(process.env.REACT_APP_PUBLIC_POSTHOG_KEY),
1983
2078
  options: {
@@ -1992,22 +2087,22 @@ const dr = ({ children: e, user: t }) => t.isLoading ? /* @__PURE__ */ s.jsx(s.F
1992
2087
  },
1993
2088
  children: e
1994
2089
  }
1995
- ) : e, ur = ({ children: e, locale: t, messages: n }) => {
2090
+ ) : e, mr = ({ children: e, locale: t, messages: n }) => {
1996
2091
  const r = t || "en", i = {
1997
2092
  ...Rs[r],
1998
2093
  ...n || {}
1999
2094
  };
2000
2095
  return /* @__PURE__ */ s.jsx(ls, { locale: r, messages: i, children: e });
2001
- }, Se = Ft(null), mr = ({ children: e, user: t }) => /* @__PURE__ */ s.jsx(Se.Provider, { value: t, children: e }), vo = ({ bootstrap: e, children: t, intl: n }) => {
2096
+ }, Se = Ft(null), fr = ({ children: e, user: t }) => /* @__PURE__ */ s.jsx(Se.Provider, { value: t, children: e }), wo = ({ bootstrap: e, children: t, intl: n }) => {
2002
2097
  const [r, i] = F({ isLoading: !0 });
2003
2098
  return X(() => {
2004
2099
  e().then((c) => i({ ...c, isLoading: !1 })).catch(() => i({ isLoading: !1 }));
2005
- }, []), /* @__PURE__ */ s.jsx(ur, { locale: n == null ? void 0 : n.locale, messages: n == null ? void 0 : n.messages, children: /* @__PURE__ */ s.jsx(mr, { user: r, children: /* @__PURE__ */ s.jsx(ir, { children: /* @__PURE__ */ s.jsx(dr, { user: r, children: t }) }) }) });
2100
+ }, []), /* @__PURE__ */ s.jsx(mr, { locale: n == null ? void 0 : n.locale, messages: n == null ? void 0 : n.messages, children: /* @__PURE__ */ s.jsx(fr, { user: r, children: /* @__PURE__ */ s.jsx(lr, { children: /* @__PURE__ */ s.jsx(ur, { user: r, children: t }) }) }) });
2006
2101
  };
2007
2102
  const xt = "joinCommunityButton", Tn = ({ isMember: e = !1, isShort: t = !1, functions: { join: n, leave: r } = { join: () => {
2008
2103
  }, leave: () => {
2009
2104
  } } }) => {
2010
- const i = A(), c = ge(Se), d = c && typeof c.id == "string", [o, a] = F(e), [u, l] = F(e ? "joined" : "notJoined");
2105
+ const i = N(), c = ge(Se), d = c && typeof c.id == "string", [o, a] = F(e), [u, l] = F(e ? "joined" : "notJoined");
2011
2106
  X(() => {
2012
2107
  u === "joining" ? l("joined") : u === "leaving" && l("notJoined");
2013
2108
  }, [o]);
@@ -2029,16 +2124,16 @@ const xt = "joinCommunityButton", Tn = ({ isMember: e = !1, isShort: t = !1, fun
2029
2124
  }
2030
2125
  );
2031
2126
  };
2032
- const bt = "communityDetails_", wo = ({
2127
+ const bt = "communityDetails_", ko = ({
2033
2128
  className: e = "",
2034
2129
  isMember: t = !1,
2035
2130
  slug: n,
2036
2131
  members: { number: r = 0, data: i = [] } = { number: 0, data: [] },
2037
2132
  functions: { invite: c, ...d }
2038
2133
  }) => {
2039
- const o = A(), a = 5, u = r || i.length, l = i.length ? i : Array(a).fill({});
2134
+ const o = N(), a = 5, u = r || i.length, l = i.length ? i : Array(a).fill({});
2040
2135
  return /* @__PURE__ */ s.jsxs("div", { className: S("community-details", e), children: [
2041
- /* @__PURE__ */ s.jsx(De, {}),
2136
+ /* @__PURE__ */ s.jsx(Ae, {}),
2042
2137
  /* @__PURE__ */ s.jsxs("div", { className: "member-details", children: [
2043
2138
  /* @__PURE__ */ s.jsxs("div", { className: "top", children: [
2044
2139
  /* @__PURE__ */ s.jsxs("h3", { children: [
@@ -2048,7 +2143,7 @@ const bt = "communityDetails_", wo = ({
2048
2143
  /* @__PURE__ */ s.jsx("p", { className: "text-small", children: /* @__PURE__ */ s.jsx("a", { href: `/communities/${n}/members`, children: o.formatMessage({ id: `${bt}viewAll` }) }) })
2049
2144
  ] }),
2050
2145
  /* @__PURE__ */ s.jsx(
2051
- ar,
2146
+ ir,
2052
2147
  {
2053
2148
  contributors: {
2054
2149
  total: r,
@@ -2076,12 +2171,12 @@ const bt = "communityDetails_", wo = ({
2076
2171
  )
2077
2172
  ] });
2078
2173
  };
2079
- const ko = ({
2174
+ const jo = ({
2080
2175
  breadcrumbs: e,
2081
2176
  cutoff: t = 20,
2082
2177
  className: n = ""
2083
2178
  }) => {
2084
- const r = A();
2179
+ const r = N();
2085
2180
  return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
2086
2181
  /* @__PURE__ */ s.jsx(le, { element: "p", children: r.formatMessage({ id: "breadcrumbs_label" }) }),
2087
2182
  /* @__PURE__ */ s.jsx("ul", { className: S("breadcrumbs text-small", n), children: e.map(({ text: i, href: c, current: d = !1 }, o) => /* @__PURE__ */ s.jsxs("li", { children: [
@@ -2090,7 +2185,7 @@ const ko = ({
2090
2185
  ] }, `${window.btoa(i)}_${o}`)) })
2091
2186
  ] });
2092
2187
  };
2093
- const jo = ({
2188
+ const yo = ({
2094
2189
  options: e,
2095
2190
  allOption: t = !1,
2096
2191
  allowMultiple: n = !0,
@@ -2098,7 +2193,7 @@ const jo = ({
2098
2193
  },
2099
2194
  className: i = ""
2100
2195
  }) => {
2101
- const c = A(), d = t ? [{ id: "all", text: typeof t != "boolean" && t.text || c.formatMessage({ id: "filters_all" }) }, ...e] : e, [o, a] = F(t ? ["all"] : []), u = (l, f) => {
2196
+ const c = N(), d = t ? [{ id: "all", text: typeof t != "boolean" && t.text || c.formatMessage({ id: "filters_all" }) }, ...e] : e, [o, a] = F(t ? ["all"] : []), u = (l, f) => {
2102
2197
  let h = [];
2103
2198
  o.includes(l) ? h = o.filter((p) => p !== l) : l === "all" ? h = ["all"] : n ? h = [...o.filter((p) => p !== "all"), l] : h = [l], a((p) => (r && typeof r == "function" && r({ current: h, previous: p }), h)), f && typeof f == "function" && f();
2104
2199
  };
@@ -2117,7 +2212,7 @@ const jo = ({
2117
2212
  }
2118
2213
  ) }, l);
2119
2214
  }) });
2120
- }, fr = (e, t) => {
2215
+ }, hr = (e, t) => {
2121
2216
  const n = String(e);
2122
2217
  if (!t || !t.length)
2123
2218
  return `/${n}`;
@@ -2126,7 +2221,7 @@ const jo = ({
2126
2221
  c === "before-lang" ? r += `/${i}` : (r.includes(`/${n}/`) || (r += `/${n}`), r += `/${i}`);
2127
2222
  }), r.includes(`/${n}/`) || (r += `/${n}`), r;
2128
2223
  };
2129
- const vt = { en: "English", es: "Español", fr: "Français", pt: "Português" }, We = "languageSwitcher_", yo = ({
2224
+ const vt = { en: "English", es: "Español", fr: "Français", pt: "Português" }, We = "languageSwitcher_", Eo = ({
2130
2225
  currentLanguage: e,
2131
2226
  isOriginalLanguage: t = !1,
2132
2227
  isHumanTranslation: n = !1,
@@ -2138,7 +2233,7 @@ const vt = { en: "English", es: "Español", fr: "Français", pt: "Português" },
2138
2233
  label: o,
2139
2234
  className: a = ""
2140
2235
  }) => {
2141
- const u = A(), [l, f] = F(e);
2236
+ const u = N(), [l, f] = F(e);
2142
2237
  if (X(() => {
2143
2238
  e !== l && f(e);
2144
2239
  }, [e]), !r || !Object.values(r).some((j) => j && j.post_name))
@@ -2153,7 +2248,7 @@ const vt = { en: "English", es: "Español", fr: "Français", pt: "Português" },
2153
2248
  let g = { className: j };
2154
2249
  return l === j ? g["aria-label"] = u.formatMessage({ id: `${We}selected` }, { language: vt[j] }) : g = {
2155
2250
  ...g,
2156
- href: fr(j, c),
2251
+ href: hr(j, c),
2157
2252
  onClick: (E) => {
2158
2253
  E.preventDefault(), E.stopPropagation(), f(j), i(j);
2159
2254
  }
@@ -2175,7 +2270,7 @@ const vt = { en: "English", es: "Español", fr: "Français", pt: "Português" },
2175
2270
  })
2176
2271
  ] });
2177
2272
  };
2178
- const wt = cs({ locale: "en", messages: Lt }), hr = ({
2273
+ const wt = cs({ locale: "en", messages: Lt }), pr = ({
2179
2274
  page: e = 1,
2180
2275
  length: t = 0,
2181
2276
  limit: n = 10,
@@ -2218,13 +2313,13 @@ const wt = cs({ locale: "en", messages: Lt }), hr = ({
2218
2313
  ] });
2219
2314
  };
2220
2315
  let Ve = !1;
2221
- const pr = ({ element: e = "div", id: t = "more-menu", options: n, className: r = "" }) => {
2222
- const i = A(), c = ne(null), [d, o] = F(!1), a = (u) => {
2316
+ const gr = ({ element: e = "div", id: t = "more-menu", options: n, className: r = "" }) => {
2317
+ const i = N(), c = ne(null), [d, o] = F(!1), a = (u) => {
2223
2318
  c.current && u.target instanceof HTMLElement && !c.current.contains(u.target) && o(!1);
2224
2319
  };
2225
2320
  return X(() => (document.addEventListener("click", a, !0), () => {
2226
2321
  document.removeEventListener("click", a, !0);
2227
- })), N.createElement(e, {
2322
+ })), D.createElement(e, {
2228
2323
  ref: c,
2229
2324
  className: S("more-menu text-medium", r),
2230
2325
  children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
@@ -2271,15 +2366,20 @@ const pr = ({ element: e = "div", id: t = "more-menu", options: n, className: r
2271
2366
  });
2272
2367
  };
2273
2368
  const $n = ({ variant: e = "default", version: t = "default", className: n = "", ...r }) => /* @__PURE__ */ s.jsx("p", { className: "logo-wrapper", children: /* @__PURE__ */ s.jsx("a", { href: "/home/", className: S("logo", e, t, n), ...r, children: /* @__PURE__ */ s.jsx(le, { children: /* @__PURE__ */ s.jsx(ye, { id: "apolitical" }) }) }) });
2274
- const gr = {
2369
+ const _r = {
2275
2370
  "2-1": 901
2276
- }, Eo = ({ layout: e = "2-1", hideOnMobile: t = !1, className: n = "", children: r }) => {
2371
+ }, So = ({
2372
+ layout: e = "2-1",
2373
+ hideOnMobile: t = !1,
2374
+ className: n = "",
2375
+ children: r
2376
+ }) => {
2277
2377
  const i = rt(!0);
2278
2378
  let c = r;
2279
- return N.Children.count(r) === 1 && (c = N.Children.toArray(r)[0], c.props && (c = c.props.children)), /* @__PURE__ */ s.jsx("section", { className: S("columns", `layout-${e}`, n), children: N.Children.map(c, (d, o) => t !== !1 && o === t && i && i < gr[e] ? null : d) });
2379
+ return D.Children.count(r) === 1 && (c = D.Children.toArray(r)[0], c.props && (c = c.props.children)), /* @__PURE__ */ s.jsx("section", { className: S("columns", `layout-${e}`, n), children: D.Children.map(c, (d, o) => t !== !1 && o === t && i && i < _r[e] ? null : d) });
2280
2380
  };
2281
- const kt = "cookieBanner_", jt = ["apol-cookie-banner", "apolitical-performance-cookie-consent", "functional-cookie-consent"], yt = new Date(Date.now() + 12 * 30 * 24 * 60 * 60 * 1e3), _r = () => {
2282
- const e = A(), [t, n, r] = fs(jt), [i, c] = F(!t["apol-cookie-banner"]), d = () => {
2381
+ const kt = "cookieBanner_", jt = ["apol-cookie-banner", "apolitical-performance-cookie-consent", "functional-cookie-consent"], yt = new Date(Date.now() + 12 * 30 * 24 * 60 * 60 * 1e3), xr = () => {
2382
+ const e = N(), [t, n, r] = fs(jt), [i, c] = F(!t["apol-cookie-banner"]), d = () => {
2283
2383
  jt.forEach((l) => {
2284
2384
  n(l, !0, {
2285
2385
  path: "/",
@@ -2492,8 +2592,8 @@ const Me = "footer_", Ze = "SiteFooter", cn = ({ group: e }) => {
2492
2592
  /* @__PURE__ */ s.jsx("small", { children: /* @__PURE__ */ s.jsx(ye, { id: `${Me}copyright`, values: { currentYear: (/* @__PURE__ */ new Date()).getFullYear() } }) })
2493
2593
  ] })
2494
2594
  ] }) });
2495
- const Ye = "emailHelperTextBox_", So = ({ type: e, email: t, redirectPath: n, resendVerificationCode: r }) => {
2496
- const i = A(), [c, d] = F({ path: `${Ye}default`, type: "default", link: {}, mail: {}, error: "" }), [o, a] = F(!1), u = ke(
2595
+ const Ye = "emailHelperTextBox_", To = ({ type: e, email: t, redirectPath: n, resendVerificationCode: r }) => {
2596
+ const i = N(), [c, d] = F({ path: `${Ye}default`, type: "default", link: {}, mail: {}, error: "" }), [o, a] = F(!1), u = ke(
2497
2597
  (p) => {
2498
2598
  p.preventDefault(), p.stopPropagation();
2499
2599
  const _ = (j) => {
@@ -2592,7 +2692,7 @@ const Ye = "emailHelperTextBox_", So = ({ type: e, email: t, redirectPath: n, re
2592
2692
  const l = {};
2593
2693
  return ["link", "mail"].forEach((p) => {
2594
2694
  l[p] = Object.keys(c[p]).length ? (_) => /* @__PURE__ */ s.jsx("a", { ...c[p], children: _ }) : (_) => _;
2595
- }), /* @__PURE__ */ s.jsx(zs, { type: c.type, heading: o ? !1 : i.formatMessage({ id: `${c.path}_title` }), children: o ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
2695
+ }), /* @__PURE__ */ s.jsx(Ws, { type: c.type, heading: o ? !1 : i.formatMessage({ id: `${c.path}_title` }), children: o ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
2596
2696
  /* @__PURE__ */ s.jsx(je, { element: "span" }),
2597
2697
  /* @__PURE__ */ s.jsx(je, { element: "span" })
2598
2698
  ] }) : (
@@ -2614,20 +2714,20 @@ const Ye = "emailHelperTextBox_", So = ({ type: e, email: t, redirectPath: n, re
2614
2714
  )
2615
2715
  ) });
2616
2716
  };
2617
- const Ge = "passwordRules_", Cn = "isMoreThanEightCharacters", Dn = "includesNumberAndSymbol", Nn = "includesLowerAndUppercase", xr = {
2717
+ const Ge = "passwordRules_", Cn = "isMoreThanEightCharacters", An = "includesNumberAndSymbol", Dn = "includesLowerAndUppercase", br = {
2618
2718
  [Cn]: "8Characters",
2619
- [Dn]: "numberSymbol",
2620
- [Nn]: "lowercaseUppercase"
2621
- }, br = ({ matchingRules: e = { isMoreThanEightCharacters: !1, includesNumberAndSymbol: !1, includesLowerAndUppercase: !1 }, className: t = "" }) => {
2622
- const n = A();
2719
+ [An]: "numberSymbol",
2720
+ [Dn]: "lowercaseUppercase"
2721
+ }, vr = ({ matchingRules: e = { isMoreThanEightCharacters: !1, includesNumberAndSymbol: !1, includesLowerAndUppercase: !1 }, className: t = "" }) => {
2722
+ const n = N();
2623
2723
  return /* @__PURE__ */ s.jsxs("aside", { className: S("password-rules", t), children: [
2624
2724
  /* @__PURE__ */ s.jsx("small", { children: n.formatMessage({ id: `${Ge}intro` }) }),
2625
- /* @__PURE__ */ s.jsx("ul", { children: [Cn, Dn, Nn].map((r) => /* @__PURE__ */ s.jsxs("li", { className: S({ matches: e[r] }), children: [
2725
+ /* @__PURE__ */ s.jsx("ul", { children: [Cn, An, Dn].map((r) => /* @__PURE__ */ s.jsxs("li", { className: S({ matches: e[r] }), children: [
2626
2726
  /* @__PURE__ */ s.jsxs(le, { children: [
2627
2727
  n.formatMessage({ id: `${Ge}rule_label` }),
2628
2728
  " "
2629
2729
  ] }),
2630
- /* @__PURE__ */ s.jsx("span", { children: n.formatMessage({ id: `${Ge}rule_${xr[r]}` }) }),
2730
+ /* @__PURE__ */ s.jsx("span", { children: n.formatMessage({ id: `${Ge}rule_${br[r]}` }) }),
2631
2731
  !e[r] && /* @__PURE__ */ s.jsxs(le, { element: "strong", children: [
2632
2732
  " ",
2633
2733
  " ",
@@ -2635,8 +2735,8 @@ const Ge = "passwordRules_", Cn = "isMoreThanEightCharacters", Dn = "includesNum
2635
2735
  ] })
2636
2736
  ] }, `rule-${r}`)) })
2637
2737
  ] });
2638
- }, To = Ne(br);
2639
- const $o = ({
2738
+ }, $o = De(vr);
2739
+ const Mo = ({
2640
2740
  text: e = {},
2641
2741
  topRating: t = 5,
2642
2742
  functions: { createRating: n = () => null, updateRating: r = () => {
@@ -2645,7 +2745,7 @@ const $o = ({
2645
2745
  className: c = "",
2646
2746
  hasLoaded: d = !1
2647
2747
  }) => {
2648
- const o = A(), [a, u] = F({ setUp: !1, id: null, rating: null, disabled: !0 }), l = async () => {
2748
+ const o = N(), [a, u] = F({ setUp: !1, id: null, rating: null, disabled: !0 }), l = async () => {
2649
2749
  try {
2650
2750
  const E = await n();
2651
2751
  u((k) => ({ ...k, setUp: !0, id: E && E.id, disabled: !1 }));
@@ -2696,7 +2796,7 @@ const $o = ({
2696
2796
  }) })
2697
2797
  ] });
2698
2798
  };
2699
- const vr = ({
2799
+ const wr = ({
2700
2800
  id: e = "search",
2701
2801
  className: t = "",
2702
2802
  handleToggle: n = !1,
@@ -2704,7 +2804,7 @@ const vr = ({
2704
2804
  gtmContext: i = "search-bar",
2705
2805
  gtmEvent: c = "form-submission"
2706
2806
  }) => {
2707
- const { searchIsOpen: d = !0, isDesktopVersion: o = !1 } = n || {}, a = A(), u = ne(null);
2807
+ const { searchIsOpen: d = !0, isDesktopVersion: o = !1 } = n || {}, a = N(), u = ne(null);
2708
2808
  Ce(() => {
2709
2809
  !n || o || !d || u.current && u.current.focus();
2710
2810
  }, [d]);
@@ -2749,7 +2849,7 @@ const vr = ({
2749
2849
  }
2750
2850
  );
2751
2851
  };
2752
- const wr = ({
2852
+ const kr = ({
2753
2853
  title: e,
2754
2854
  label: t,
2755
2855
  ctaMessage: n,
@@ -2762,7 +2862,7 @@ const wr = ({
2762
2862
  initialFormStatus: u = "NOT_SUBMITTED"
2763
2863
  /* NOT_SUBMITTED */
2764
2864
  }) => {
2765
- const [l, f] = F([]), [h, p] = F(!0), [_, j] = F(u), { formatMessage: g } = A(), E = async (M) => {
2865
+ const [l, f] = F([]), [h, p] = F(!0), [_, j] = F(u), { formatMessage: g } = N(), E = async (M) => {
2766
2866
  M.preventDefault();
2767
2867
  try {
2768
2868
  await a(l), f([]), j(
@@ -2791,7 +2891,7 @@ const wr = ({
2791
2891
  " ",
2792
2892
  g({ id: "inviteForm_error" })
2793
2893
  ] }) }),
2794
- /* @__PURE__ */ s.jsx(De, {}),
2894
+ /* @__PURE__ */ s.jsx(Ae, {}),
2795
2895
  /* @__PURE__ */ s.jsx("div", { className: "footer", children: _ === "SUCCESS" ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
2796
2896
  /* @__PURE__ */ s.jsx(J, { variant: "secondary", onClick: k, children: g({ id: "inviteForm_ctaSendMoreInvites" }) }),
2797
2897
  /* @__PURE__ */ s.jsx(J, { onClick: T, children: g({ id: "inviteForm_ctaDone" }) })
@@ -2836,7 +2936,7 @@ const wr = ({
2836
2936
  }
2837
2937
  )
2838
2938
  ] }),
2839
- /* @__PURE__ */ s.jsx(De, {}),
2939
+ /* @__PURE__ */ s.jsx(Ae, {}),
2840
2940
  /* @__PURE__ */ s.jsx("fieldset", { className: "footer", children: /* @__PURE__ */ s.jsx(J, { className: "sendEmailsButton", disabled: h, children: n }) })
2841
2941
  ]
2842
2942
  }
@@ -3026,7 +3126,7 @@ const wr = ({
3026
3126
  },
3027
3127
  doTrack: c = null
3028
3128
  }) => {
3029
- const d = A(), o = hn(Ke, e);
3129
+ const d = N(), o = hn(Ke, e);
3030
3130
  if (!o || o.onlyShow && (o.onlyShow === "logged-in" && !t || o.onlyShow === "logged-out" && t))
3031
3131
  return null;
3032
3132
  const a = "doTrack" in o, u = c === null ? a ? o.doTrack : !0 : c, l = e.includes("buttons.");
@@ -3080,7 +3180,7 @@ const wr = ({
3080
3180
  });
3081
3181
  }
3082
3182
  return /* @__PURE__ */ s.jsxs("li", { className: S({ [o.className]: o.className, "has-submenu": p, parent: _, active: j }), role: "none", ...g, children: [
3083
- h ? N.createElement(l ? J : "a", h, d.formatMessage({ id: f })) : d.formatMessage({ id: f }),
3183
+ h ? D.createElement(l ? J : "a", h, d.formatMessage({ id: f })) : d.formatMessage({ id: f }),
3084
3184
  o.order && /* @__PURE__ */ s.jsx("ul", { ...E, children: o.order.map((k) => {
3085
3185
  if (!o[k])
3086
3186
  return null;
@@ -3098,8 +3198,8 @@ const wr = ({
3098
3198
  }) })
3099
3199
  ] }, e);
3100
3200
  };
3101
- const kr = { height: 67, height_desktop: 83 }, An = () => {
3102
- const e = A(), t = ge(Se), n = rt(!0, !0), r = t && typeof t.id == "string", i = et(
3201
+ const jr = { height: 67, height_desktop: 83 }, Nn = () => {
3202
+ const e = N(), t = ge(Se), n = rt(!0, !0), r = t && typeof t.id == "string", i = et(
3103
3203
  () => H.getIsDesktopVersion(r, n),
3104
3204
  [r, n]
3105
3205
  ), [c, d] = rs($s, {
@@ -3111,7 +3211,7 @@ const kr = { height: 67, height_desktop: 83 }, An = () => {
3111
3211
  }
3112
3212
  }), { headerIsVisible: o, menus: a, focusElements: u } = c;
3113
3213
  Ts({
3114
- scrollPosition: kr[`height${i.navigation ? "_desktop" : ""}`],
3214
+ scrollPosition: jr[`height${i.navigation ? "_desktop" : ""}`],
3115
3215
  callbacks: {
3116
3216
  scrollUp: () => {
3117
3217
  !i && a.navigation || H.shouldChangeHeaderIsVisible(!0, a, d);
@@ -3141,111 +3241,155 @@ const kr = { height: 67, height_desktop: 83 }, An = () => {
3141
3241
  dispatch: d
3142
3242
  });
3143
3243
  }, [a.account]), t && t.isLoading ? null : /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
3144
- /* @__PURE__ */ s.jsxs("nav", { id: "header", className: S({ "logged-in": r, "logged-out": !r, visible: o }), children: [
3145
- /* @__PURE__ */ s.jsx(le, { element: "a", href: "#content-of-page", children: e.formatMessage({ id: "header_skip" }) }),
3146
- /* @__PURE__ */ s.jsx($n, {}),
3147
- !i.navigation && /* @__PURE__ */ s.jsx(
3148
- "button",
3149
- {
3150
- className: "menu-button gtm-trackable",
3151
- onClick: (h) => {
3152
- h.preventDefault(), h.stopPropagation(), l("navigation", !a.navigation);
3153
- },
3154
- "data-gtm-event-type": "open-tab-menu-click",
3155
- "data-gtm-event-context": "HeaderLeft-Chevron",
3156
- "aria-haspopup": "true",
3157
- "aria-expanded": a.navigation,
3158
- "aria-controls": "navigation",
3159
- children: /* @__PURE__ */ s.jsx(le, { children: e.formatMessage({ id: `header_menu_${a.navigation ? "hide" : "show"}` }) })
3160
- }
3161
- ),
3162
- /* @__PURE__ */ s.jsx(
3163
- "ul",
3164
- {
3165
- ref: f,
3166
- id: "navigation",
3167
- hidden: i.navigation || a.account ? !1 : !a.navigation,
3168
- role: "menu",
3169
- "data-showing": !i.navigation && a.account ? "account" : "default",
3170
- children: Ke.order.map((h) => /* @__PURE__ */ s.jsx(
3171
- qe,
3244
+ /* @__PURE__ */ s.jsxs(
3245
+ "nav",
3246
+ {
3247
+ id: "header",
3248
+ className: S({
3249
+ "logged-in": r,
3250
+ "logged-out": !r,
3251
+ visible: o
3252
+ }),
3253
+ children: [
3254
+ /* @__PURE__ */ s.jsx(
3255
+ le,
3172
3256
  {
3173
- id: h,
3174
- isLoggedIn: r,
3175
- isDesktopVersion: i.navigation,
3176
- menus: { navigation: a.navigation, account: a.account },
3177
- callback: l
3178
- },
3179
- h
3180
- ))
3181
- }
3182
- ),
3183
- !i.search && /* @__PURE__ */ s.jsx(
3184
- "button",
3185
- {
3186
- className: "search toggle-search-button",
3187
- onClick: (h) => {
3188
- h.preventDefault(), h.stopPropagation(), l("search", !a.search);
3189
- },
3190
- "aria-haspopup": "true",
3191
- "aria-expanded": a.search,
3192
- "aria-controls": "search-form",
3193
- children: /* @__PURE__ */ s.jsx(le, { children: e.formatMessage({ id: `header_search_${a.search ? "hide" : "show"}` }) })
3194
- }
3195
- ),
3196
- /* @__PURE__ */ s.jsx(
3197
- vr,
3198
- {
3199
- id: "global-search",
3200
- handleToggle: { searchIsOpen: a.search, isDesktopVersion: i.search },
3201
- gtmContext: "search-bar-header",
3202
- gtmEvent: "form-submission"
3203
- }
3204
- ),
3205
- r ? /* @__PURE__ */ s.jsxs(
3206
- "button",
3207
- {
3208
- className: "account-button",
3209
- onClick: (h) => H.events.onClick(h, { id: "account", callback: l, isOpen: a.account }),
3210
- onMouseEnter: () => H.events.onMouseEnter({ id: "account", callback: l }),
3211
- onMouseLeave: () => H.events.onBlur({ id: "account", callback: l }),
3212
- "aria-haspopup": "true",
3213
- "aria-expanded": a.account,
3214
- "aria-controls": "navigation",
3215
- children: [
3216
- /* @__PURE__ */ s.jsx(le, { children: e.formatMessage({ id: `header_account_${a.account ? "hide" : "show"}` }) }),
3217
- /* @__PURE__ */ s.jsx(Ot, { name: t && t.name || "", src: t && t.image && t.image.thumbnail || "" })
3218
- ]
3219
- }
3220
- ) : /* @__PURE__ */ s.jsx("ul", { className: "sign-in-buttons", children: Ke.buttons.order.map((h) => /* @__PURE__ */ s.jsx(qe, { id: `buttons.${h}` }, h)) })
3221
- ] }),
3257
+ element: "a",
3258
+ href: "#content-of-page",
3259
+ children: e.formatMessage({ id: "header_skip" })
3260
+ }
3261
+ ),
3262
+ /* @__PURE__ */ s.jsx($n, {}),
3263
+ !i.navigation && /* @__PURE__ */ s.jsx(
3264
+ "button",
3265
+ {
3266
+ className: "menu-button gtm-trackable",
3267
+ onClick: (h) => {
3268
+ h.preventDefault(), h.stopPropagation(), l("navigation", !a.navigation);
3269
+ },
3270
+ "data-gtm-event-type": "open-tab-menu-click",
3271
+ "data-gtm-event-context": "HeaderLeft-Chevron",
3272
+ "aria-haspopup": "true",
3273
+ "aria-expanded": a.navigation,
3274
+ "aria-controls": "navigation",
3275
+ children: /* @__PURE__ */ s.jsx(le, { children: e.formatMessage({
3276
+ id: `header_menu_${a.navigation ? "hide" : "show"}`
3277
+ }) })
3278
+ }
3279
+ ),
3280
+ /* @__PURE__ */ s.jsx(
3281
+ "ul",
3282
+ {
3283
+ ref: f,
3284
+ id: "navigation",
3285
+ hidden: i.navigation || a.account ? !1 : !a.navigation,
3286
+ role: "menu",
3287
+ "data-showing": !i.navigation && a.account ? "account" : "default",
3288
+ children: Ke.order.map((h) => /* @__PURE__ */ s.jsx(
3289
+ qe,
3290
+ {
3291
+ id: h,
3292
+ isLoggedIn: r,
3293
+ isDesktopVersion: i.navigation,
3294
+ menus: { navigation: a.navigation, account: a.account },
3295
+ callback: l
3296
+ },
3297
+ h
3298
+ ))
3299
+ }
3300
+ ),
3301
+ !i.search && /* @__PURE__ */ s.jsx(
3302
+ "button",
3303
+ {
3304
+ className: "search toggle-search-button",
3305
+ onClick: (h) => {
3306
+ h.preventDefault(), h.stopPropagation(), l("search", !a.search);
3307
+ },
3308
+ "aria-haspopup": "true",
3309
+ "aria-expanded": a.search,
3310
+ "aria-controls": "search-form",
3311
+ children: /* @__PURE__ */ s.jsx(
3312
+ le,
3313
+ {
3314
+ children: e.formatMessage({
3315
+ id: `header_search_${a.search ? "hide" : "show"}`
3316
+ })
3317
+ }
3318
+ )
3319
+ }
3320
+ ),
3321
+ /* @__PURE__ */ s.jsx(
3322
+ wr,
3323
+ {
3324
+ id: "global-search",
3325
+ handleToggle: {
3326
+ searchIsOpen: a.search,
3327
+ isDesktopVersion: i.search
3328
+ },
3329
+ gtmContext: "search-bar-header",
3330
+ gtmEvent: "form-submission"
3331
+ }
3332
+ ),
3333
+ r ? /* @__PURE__ */ s.jsxs(
3334
+ "button",
3335
+ {
3336
+ className: "account-button",
3337
+ onClick: (h) => H.events.onClick(h, {
3338
+ id: "account",
3339
+ callback: l,
3340
+ isOpen: a.account
3341
+ }),
3342
+ onMouseEnter: () => H.events.onMouseEnter({ id: "account", callback: l }),
3343
+ onMouseLeave: () => H.events.onBlur({ id: "account", callback: l }),
3344
+ "aria-haspopup": "true",
3345
+ "aria-expanded": a.account,
3346
+ "aria-controls": "navigation",
3347
+ children: [
3348
+ /* @__PURE__ */ s.jsx(le, { children: e.formatMessage({
3349
+ id: `header_account_${a.account ? "hide" : "show"}`
3350
+ }) }),
3351
+ /* @__PURE__ */ s.jsx(
3352
+ Ot,
3353
+ {
3354
+ name: t && t.name || "",
3355
+ src: t && t.image && t.image.thumbnail || ""
3356
+ }
3357
+ )
3358
+ ]
3359
+ }
3360
+ ) : /* @__PURE__ */ s.jsx("ul", { className: "sign-in-buttons", children: Ke.buttons.order.map((h) => /* @__PURE__ */ s.jsx(qe, { id: `buttons.${h}` }, h)) })
3361
+ ]
3362
+ }
3363
+ ),
3222
3364
  /* @__PURE__ */ s.jsx("hr", { id: "content-of-page" }),
3223
3365
  /* @__PURE__ */ s.jsx(
3224
3366
  "div",
3225
3367
  {
3226
- className: S("overlay", { open: a.navigation || a.account || !i.search && a.search })
3368
+ className: S("overlay", {
3369
+ open: a.navigation || a.account || !i.search && a.search
3370
+ })
3227
3371
  }
3228
3372
  )
3229
3373
  ] });
3230
3374
  };
3231
- const jr = () => {
3232
- const e = A();
3375
+ const yr = () => {
3376
+ const e = N();
3233
3377
  return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
3234
- /* @__PURE__ */ s.jsx(An, {}),
3378
+ /* @__PURE__ */ s.jsx(Nn, {}),
3235
3379
  /* @__PURE__ */ s.jsx("div", { id: "content", children: /* @__PURE__ */ s.jsx(it, { variant: "error", text: e.formatMessage({ id: "pageLayout_error" }) }) }),
3236
3380
  /* @__PURE__ */ s.jsx(Mn, {})
3237
3381
  ] });
3238
- }, Mo = ({ children: e, reportError: t, showFooter: n = !0, background: r = "default", className: i = "", locale: c = "en" }) => {
3382
+ }, Co = ({ children: e, reportError: t, showFooter: n = !0, background: r = "default", className: i = "", locale: c = "en" }) => {
3239
3383
  const d = Es();
3240
3384
  X(() => {
3241
3385
  window.scrollTo(0, 0);
3242
3386
  }, [d]);
3243
3387
  const o = vn(e, { locale: c });
3244
- return /* @__PURE__ */ s.jsx(gs, { onError: t, fallback: /* @__PURE__ */ s.jsx(jr, {}), children: /* @__PURE__ */ s.jsx(os, { fallback: /* @__PURE__ */ s.jsx(sr, { layout: "overview-page" }), children: /* @__PURE__ */ s.jsx("div", { id: "wrapper", className: S(i, { [r]: r !== "default" }), children: /* @__PURE__ */ s.jsxs(hs, { children: [
3245
- /* @__PURE__ */ s.jsx(An, {}),
3388
+ return /* @__PURE__ */ s.jsx(gs, { onError: t, fallback: /* @__PURE__ */ s.jsx(yr, {}), children: /* @__PURE__ */ s.jsx(os, { fallback: /* @__PURE__ */ s.jsx(rr, { layout: "overview-page" }), children: /* @__PURE__ */ s.jsx("div", { id: "wrapper", className: S(i, { [r]: r !== "default" }), children: /* @__PURE__ */ s.jsxs(hs, { children: [
3389
+ /* @__PURE__ */ s.jsx(Nn, {}),
3246
3390
  /* @__PURE__ */ s.jsx("div", { id: "content", children: o }),
3247
3391
  n && /* @__PURE__ */ s.jsx(Mn, {}),
3248
- /* @__PURE__ */ s.jsx(_r, {})
3392
+ /* @__PURE__ */ s.jsx(xr, {})
3249
3393
  ] }) }) }) });
3250
3394
  }, dn = {
3251
3395
  default: "tags_",
@@ -3266,7 +3410,7 @@ const jr = () => {
3266
3410
  WorkAndTheEconomy: "work-and-the-economy"
3267
3411
  },
3268
3412
  "from the community": "community"
3269
- }, yr = {
3413
+ }, Er = {
3270
3414
  getTagDetails: (e) => {
3271
3415
  if (e.includes("topic_")) {
3272
3416
  if (e = Et.topic[e.replace("topic_", "")], e) {
@@ -3278,7 +3422,7 @@ const jr = () => {
3278
3422
  return Et[e] ? (e = Et[e], { id: e, text: `${dn.default}${e}` }) : null;
3279
3423
  }
3280
3424
  };
3281
- const Co = ({
3425
+ const Ao = ({
3282
3426
  tags: e = [],
3283
3427
  color: t = "default",
3284
3428
  forceOneLine: n = !1,
@@ -3287,14 +3431,14 @@ const Co = ({
3287
3431
  gtmType: c = "tag-click",
3288
3432
  gtmContext: d = "tags"
3289
3433
  }) => {
3290
- const o = A();
3434
+ const o = N();
3291
3435
  if (!e || e.length < 1)
3292
3436
  return null;
3293
3437
  const a = [];
3294
3438
  return e.forEach((u) => {
3295
3439
  if (!u)
3296
3440
  return;
3297
- const l = yr.getTagDetails(u);
3441
+ const l = Er.getTagDetails(u);
3298
3442
  l && a.push(l);
3299
3443
  }), a.length < 1 ? null : /* @__PURE__ */ s.jsx("ul", { className: S("tags text-small", t, i, { "one-line": n }), children: a.map((u) => {
3300
3444
  const l = o.formatMessage({ id: u.text });
@@ -3317,7 +3461,7 @@ const Do = ({
3317
3461
  gtmType: i = "member-click",
3318
3462
  className: c = ""
3319
3463
  }) => {
3320
- const d = A();
3464
+ const d = N();
3321
3465
  return t.length === 0 ? null : (e || (e = t.length), /* @__PURE__ */ s.jsxs("div", { className: S("members-list", c), children: [
3322
3466
  /* @__PURE__ */ s.jsxs("h1", { children: [
3323
3467
  d.formatMessage({ id: "membersList" }),
@@ -3325,10 +3469,10 @@ const Do = ({
3325
3469
  ] }),
3326
3470
  /* @__PURE__ */ s.jsx("ul", { children: t.map((o, a) => /* @__PURE__ */ s.jsxs("li", { children: [
3327
3471
  /* @__PURE__ */ s.jsx(Bt, { member: o, gtmContext: r, gtmType: i }),
3328
- o.isAdmin && /* @__PURE__ */ s.jsx(qs, { children: d.formatMessage({ id: "membersList_admin" }) })
3472
+ o.isAdmin && /* @__PURE__ */ s.jsx(er, { children: d.formatMessage({ id: "membersList_admin" }) })
3329
3473
  ] }, a)) }),
3330
3474
  n && /* @__PURE__ */ s.jsx(
3331
- hr,
3475
+ pr,
3332
3476
  {
3333
3477
  ...n,
3334
3478
  icon: { icon: "arrow-down", position: "right" },
@@ -3370,7 +3514,7 @@ const me = "discussion_form_", Pn = ({
3370
3514
  gtmContext: a = "DiscussionForm"
3371
3515
  }) => {
3372
3516
  var b, Q;
3373
- const u = A(), l = ge(Se), [f, h] = F(
3517
+ const u = N(), l = ge(Se), [f, h] = F(
3374
3518
  n.isEditing && n.isEditing.text || ""
3375
3519
  ), [p, _] = F(d.error || !1), [j, g] = F(!1), E = ne(null);
3376
3520
  if (r || (r = E), n.isLoading)
@@ -3436,7 +3580,7 @@ const me = "discussion_form_", Pn = ({
3436
3580
  default:
3437
3581
  break;
3438
3582
  }
3439
- await Ds(1e3), o.callback && await o.callback(O), Je = setTimeout(() => {
3583
+ await As(1e3), o.callback && await o.callback(O), Je = setTimeout(() => {
3440
3584
  h(""), g("submitted"), C();
3441
3585
  }, 500);
3442
3586
  } catch (O) {
@@ -3458,7 +3602,7 @@ const me = "discussion_form_", Pn = ({
3458
3602
  Je = setTimeout(() => {
3459
3603
  _(!1), g(!1);
3460
3604
  }, 5e3);
3461
- }, I = !f || !Ls(f), V = j === "submitting", x = [];
3605
+ }, I = !f || !Os(f), V = j === "submitting", x = [];
3462
3606
  return (n.isEditing && !V || d.cancel) && x.push({
3463
3607
  variant: "secondary",
3464
3608
  size: { mobile: "small", 600: "medium" },
@@ -3576,16 +3720,16 @@ const me = "discussion_form_", Pn = ({
3576
3720
  create: t
3577
3721
  }
3578
3722
  }
3579
- ), Er = {
3723
+ ), Sr = {
3580
3724
  showThread: !1,
3581
3725
  showForm: !1
3582
- }, lt = Ft(Er), Sr = ({ children: e }) => {
3726
+ }, lt = Ft(Sr), Tr = ({ children: e }) => {
3583
3727
  const [t, n] = F({
3584
3728
  showThread: !1,
3585
3729
  showForm: !1
3586
3730
  });
3587
3731
  return /* @__PURE__ */ s.jsx(lt.Provider, { value: { ...t, updateConversation: n }, children: e });
3588
- }, Tr = ({
3732
+ }, $r = ({
3589
3733
  question: e,
3590
3734
  answer: t,
3591
3735
  reply: n
@@ -3593,11 +3737,11 @@ const me = "discussion_form_", Pn = ({
3593
3737
  ...e && { questionSlug: e },
3594
3738
  ...t && { answerSlug: t },
3595
3739
  ...n && { replySlug: n }
3596
- }), $r = (e, t = 10) => !e || e.length === 0 ? [] : e.slice(0, t);
3740
+ }), Mr = (e, t = 10) => !e || e.length === 0 ? [] : e.slice(0, t);
3597
3741
  let Be = !1;
3598
3742
  const St = () => {
3599
3743
  Be !== !1 && (clearTimeout(Be), Be = !1);
3600
- }, Tt = 10, Mr = ({
3744
+ }, Tt = 10, Cr = ({
3601
3745
  element: e = "div",
3602
3746
  likes: t = 0,
3603
3747
  peopleWhoLiked: n = !1,
@@ -3609,11 +3753,11 @@ const St = () => {
3609
3753
  }, deleteLike: a = () => {
3610
3754
  } } = {}
3611
3755
  }) => {
3612
- const u = A();
3756
+ const u = N();
3613
3757
  X(() => {
3614
3758
  p(i);
3615
3759
  }, [i]);
3616
- const [l, f] = F(t), [h, p] = F(i), [_, j] = F(!1), [g, E] = F(!1), k = et(() => $r(n, Tt), [n]), T = (C) => {
3760
+ const [l, f] = F(t), [h, p] = F(i), [_, j] = F(!1), [g, E] = F(!1), k = et(() => Mr(n, Tt), [n]), T = (C) => {
3617
3761
  if (C.preventDefault(), C.stopPropagation(), E(!1), Be)
3618
3762
  return St(), !1;
3619
3763
  if (St(), _ || !d)
@@ -3626,7 +3770,7 @@ const St = () => {
3626
3770
  C < 0 && (C = 0), j(!0), f(C), p(!h);
3627
3771
  try {
3628
3772
  if (c && c.slugs) {
3629
- const I = Tr(c.slugs);
3773
+ const I = $r(c.slugs);
3630
3774
  h ? await a(I) : await o(I, { contentPath: window.location.pathname });
3631
3775
  }
3632
3776
  } catch {
@@ -3635,7 +3779,7 @@ const St = () => {
3635
3779
  j(!1);
3636
3780
  }
3637
3781
  };
3638
- return N.createElement(
3782
+ return D.createElement(
3639
3783
  e,
3640
3784
  {
3641
3785
  className: S("likes-wrapper text-medium action-button", { "show-spinner": _, "is-liked": h, disabled: !d }),
@@ -3672,7 +3816,7 @@ const St = () => {
3672
3816
  }
3673
3817
  ),
3674
3818
  /* @__PURE__ */ s.jsx("span", { className: S("number-of-likes", { "no-likes": l === 0 }), "data-testid": "number-of-likes", children: u.formatMessage({ id: `discussion_likes${r ? "_short" : ""}` }, { number: l }) }),
3675
- n && /* @__PURE__ */ s.jsx(Hs, { isOpen: g, isLoading: n.length === 0, children: n.length && /* @__PURE__ */ s.jsxs("ul", { children: [
3819
+ n && /* @__PURE__ */ s.jsx(Qs, { isOpen: g, isLoading: n.length === 0, children: n.length && /* @__PURE__ */ s.jsxs("ul", { children: [
3676
3820
  k.map((C) => typeof C == "string" || !C.name ? null : /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(at, { href: C.id ? `/profiles/${C.id}` : void 0, gtmContext: "Likes", gtmType: "liked-name-click", children: C.name }) }, C.id || window.btoa(C.name))),
3677
3821
  n.length > Tt && /* @__PURE__ */ s.jsx("li", { children: u.formatMessage({ id: "discussion_likes_more" }, { number: n.length - Tt }) })
3678
3822
  ] }) })
@@ -3680,7 +3824,7 @@ const St = () => {
3680
3824
  }
3681
3825
  );
3682
3826
  };
3683
- const Cr = ({ element: e = "section", children: t, className: n, ...r }) => N.createElement(
3827
+ const Ar = ({ element: e = "section", children: t, className: n, ...r }) => D.createElement(
3684
3828
  e,
3685
3829
  {
3686
3830
  className: S("modal", n),
@@ -3703,7 +3847,7 @@ const Rn = ({
3703
3847
  className: l = "",
3704
3848
  gtmContext: f = "Modal"
3705
3849
  }) => {
3706
- const h = A(), [p, _] = F(t), j = (E) => {
3850
+ const h = N(), [p, _] = F(t), j = (E) => {
3707
3851
  _(E), E ? (i(), document.body.classList.add("has-overlay")) : (c(), document.body.classList.remove("has-overlay"));
3708
3852
  };
3709
3853
  X(() => {
@@ -3711,7 +3855,7 @@ const Rn = ({
3711
3855
  }, [t]);
3712
3856
  const g = r ? { "--max-width": `${r / 16}rem` } : {};
3713
3857
  return /* @__PURE__ */ s.jsx("div", { className: S("overlay", { open: p }), children: /* @__PURE__ */ s.jsx(
3714
- Cr,
3858
+ Ar,
3715
3859
  {
3716
3860
  id: e,
3717
3861
  className: S("overlay-modal", l, { "has-max-width": r }),
@@ -3734,10 +3878,10 @@ const Rn = ({
3734
3878
  }
3735
3879
  )
3736
3880
  ] }),
3737
- n && /* @__PURE__ */ s.jsx(De, {}),
3881
+ n && /* @__PURE__ */ s.jsx(Ae, {}),
3738
3882
  a,
3739
3883
  u && /* @__PURE__ */ s.jsxs("div", { className: "bottom", children: [
3740
- /* @__PURE__ */ s.jsx(De, {}),
3884
+ /* @__PURE__ */ s.jsx(Ae, {}),
3741
3885
  /* @__PURE__ */ s.jsx(ot, { buttons: u })
3742
3886
  ] }),
3743
3887
  d && /* @__PURE__ */ s.jsx(Pt, { className: "error", children: d })
@@ -3771,7 +3915,7 @@ const No = ({
3771
3915
  functions: { onClose: o },
3772
3916
  className: S("invite-modal", e, { success: !!n }),
3773
3917
  children: /* @__PURE__ */ s.jsx(
3774
- wr,
3918
+ kr,
3775
3919
  {
3776
3920
  title: r,
3777
3921
  label: i,
@@ -3813,7 +3957,7 @@ const ve = "discussion_", Nr = 280, ct = ({
3813
3957
  children: _,
3814
3958
  isTruncated: j = !1
3815
3959
  }) => {
3816
- const g = A(), E = ge(Se), k = ge(lt), [T, M] = F({
3960
+ const g = N(), E = ge(Se), k = ge(lt), [T, M] = F({
3817
3961
  body: t && t.body || "",
3818
3962
  isEditing: !1,
3819
3963
  didEdit: t && t.isEdited || !1
@@ -3886,7 +4030,7 @@ const ve = "discussion_", Nr = 280, ct = ({
3886
4030
  "data-gtm-event-type": `delete-${t.type}-click`,
3887
4031
  ...Dr(`delete-${t.slug}-modal`, C)
3888
4032
  }
3889
- ), N.createElement(e, {
4033
+ ), D.createElement(e, {
3890
4034
  className: S("discussion-post", h),
3891
4035
  "data-testid": `discussion-${t.type}-thread`,
3892
4036
  children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
@@ -3949,13 +4093,13 @@ const ve = "discussion_", Nr = 280, ct = ({
3949
4093
  className: "gtm-trackable",
3950
4094
  "data-gtm-event-context": p,
3951
4095
  "data-gtm-event-type": "title-click",
3952
- children: /* @__PURE__ */ s.jsx(on, { options: { overrides: { a: Ks } }, children: W })
4096
+ children: /* @__PURE__ */ s.jsx(on, { options: { overrides: { a: qs } }, children: W })
3953
4097
  }
3954
4098
  ) : /* @__PURE__ */ s.jsx(
3955
4099
  on,
3956
4100
  {
3957
4101
  options: {
3958
- wrapper: t.type === "question" ? "h1" : N.Fragment,
4102
+ wrapper: t.type === "question" ? "h1" : D.Fragment,
3959
4103
  forceWrapper: t.type === "question",
3960
4104
  forceInline: t.type === "question",
3961
4105
  forceBlock: t.type !== "question"
@@ -3970,7 +4114,7 @@ const ve = "discussion_", Nr = 280, ct = ({
3970
4114
  "data-testid": `${t.type}-actions`,
3971
4115
  children: [
3972
4116
  /* @__PURE__ */ s.jsx(
3973
- Mr,
4117
+ Cr,
3974
4118
  {
3975
4119
  element: "li",
3976
4120
  likes: L,
@@ -4028,7 +4172,7 @@ const ve = "discussion_", Nr = 280, ct = ({
4028
4172
  }
4029
4173
  ) }),
4030
4174
  /* @__PURE__ */ s.jsx(
4031
- pr,
4175
+ gr,
4032
4176
  {
4033
4177
  element: "li",
4034
4178
  id: `more-${t.slug}`,
@@ -4094,15 +4238,15 @@ const ve = "discussion_", Nr = 280, ct = ({
4094
4238
  ] })
4095
4239
  });
4096
4240
  };
4097
- const $t = "discussion_responses_", Ao = ({ type: e = "answer", responses: t = 0 }) => {
4098
- const n = A();
4241
+ const $t = "discussion_responses_", Po = ({ type: e = "answer", responses: t = 0 }) => {
4242
+ const n = N();
4099
4243
  return /* @__PURE__ */ s.jsxs("div", { className: "responses-heading", children: [
4100
4244
  /* @__PURE__ */ s.jsx("h3", { children: n.formatMessage({ id: `${$t}title` }, { action: n.formatMessage({ id: `${$t}${e}` }), count: t }) }),
4101
4245
  t === 0 && /* @__PURE__ */ s.jsx("p", { children: pe(n.formatMessage, `${$t}empty`, e, e) })
4102
4246
  ] });
4103
4247
  };
4104
- const Ar = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4105
- const r = A(), i = ne(null), c = ge(lt), [d, o] = F(
4248
+ const Pr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4249
+ const r = N(), i = ne(null), c = ge(lt), [d, o] = F(
4106
4250
  "closed"
4107
4251
  /* Closed */
4108
4252
  );
@@ -4167,7 +4311,7 @@ const Ar = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4167
4311
  }
4168
4312
  )
4169
4313
  ] });
4170
- }, Pr = ({
4314
+ }, Rr = ({
4171
4315
  user: e,
4172
4316
  content: t,
4173
4317
  verb: n = "post"
@@ -4188,7 +4332,7 @@ const Ar = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4188
4332
  like: 0
4189
4333
  },
4190
4334
  verb: n
4191
- }), Rr = ({
4335
+ }), Fr = ({
4192
4336
  queryClient: e,
4193
4337
  queryKey: t,
4194
4338
  user: n,
@@ -4196,7 +4340,7 @@ const Ar = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4196
4340
  }) => ({ mutationFn: r, onMutate: async ({ content: o }) => {
4197
4341
  if (!n)
4198
4342
  return;
4199
- const a = Pr({ user: n, content: o, verb: "post" });
4343
+ const a = Rr({ user: n, content: o, verb: "post" });
4200
4344
  await e.cancelQueries({ queryKey: t });
4201
4345
  const u = e.getQueryData(t);
4202
4346
  return e.setQueryData(t, (l) => [...l, a]), { previousActivities: u };
@@ -4204,7 +4348,7 @@ const Ar = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4204
4348
  e.setQueryData(t, u.previousActivities);
4205
4349
  }, onSettled: () => {
4206
4350
  e.invalidateQueries({ queryKey: t });
4207
- } }), Fr = ({
4351
+ } }), Lr = ({
4208
4352
  queryClient: e,
4209
4353
  queryKey: t,
4210
4354
  mutationFn: n
@@ -4226,7 +4370,7 @@ const Ar = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4226
4370
  onSettled: () => {
4227
4371
  e.invalidateQueries({ queryKey: t });
4228
4372
  }
4229
- }), Lr = ({
4373
+ }), Or = ({
4230
4374
  queryClient: e,
4231
4375
  queryKey: t,
4232
4376
  mutationFn: n
@@ -4249,7 +4393,7 @@ const Ar = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4249
4393
  e.invalidateQueries({
4250
4394
  queryKey: [...t, u.activityId]
4251
4395
  });
4252
- } }), Or = ({
4396
+ } }), Br = ({
4253
4397
  queryClient: e,
4254
4398
  queryKey: t,
4255
4399
  user: n,
@@ -4283,13 +4427,13 @@ const Ar = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4283
4427
  e.invalidateQueries({
4284
4428
  queryKey: [...t, l.activityId]
4285
4429
  });
4286
- } }), Po = ({
4430
+ } }), Ro = ({
4287
4431
  basePath: e,
4288
4432
  parentId: t,
4289
4433
  isMember: n,
4290
4434
  functions: { list: r, create: i, edit: c, like: d, unlike: o, join: a, leave: u }
4291
4435
  }) => {
4292
- const l = A(), f = st(), h = ge(Se), {
4436
+ const l = N(), f = st(), h = ge(Se), {
4293
4437
  data: p,
4294
4438
  error: _,
4295
4439
  isLoading: j,
@@ -4297,24 +4441,24 @@ const Ar = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4297
4441
  } = fn({
4298
4442
  queryKey: [e, t],
4299
4443
  queryFn: r
4300
- }), E = Rr({
4444
+ }), E = Fr({
4301
4445
  queryClient: f,
4302
4446
  queryKey: [e, t],
4303
4447
  user: h,
4304
4448
  mutationFn: i
4305
- }), { mutate: k } = de(E), T = Fr({
4449
+ }), { mutate: k } = de(E), T = Lr({
4306
4450
  queryClient: f,
4307
4451
  queryKey: [e, t],
4308
4452
  mutationFn: async (w) => await c(w)
4309
4453
  }), {
4310
4454
  mutate: M
4311
- } = de(T), C = Lr({
4455
+ } = de(T), C = Or({
4312
4456
  queryClient: f,
4313
4457
  queryKey: [e, t],
4314
4458
  mutationFn: d
4315
4459
  }), {
4316
4460
  mutate: I
4317
- } = de(C), V = Or({
4461
+ } = de(C), V = Br({
4318
4462
  queryClient: f,
4319
4463
  queryKey: [e, t],
4320
4464
  user: h,
@@ -4403,11 +4547,11 @@ const Ar = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4403
4547
  isTruncated: !0
4404
4548
  }
4405
4549
  ),
4406
- /* @__PURE__ */ s.jsx(De, {})
4550
+ /* @__PURE__ */ s.jsx(Ae, {})
4407
4551
  ] }, w == null ? void 0 : w.id);
4408
4552
  }))
4409
4553
  ] });
4410
- }, Br = ({
4554
+ }, Ir = ({
4411
4555
  queryClient: e,
4412
4556
  queryKey: t,
4413
4557
  mutationFn: n
@@ -4426,7 +4570,7 @@ const Ar = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4426
4570
  })), { previousActivity: a };
4427
4571
  }, onSettled: () => {
4428
4572
  e.invalidateQueries({ queryKey: t });
4429
- } }), Ir = ({
4573
+ } }), Hr = ({
4430
4574
  queryClient: e,
4431
4575
  queryKey: t,
4432
4576
  mutationFn: n
@@ -4452,7 +4596,7 @@ const Ar = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4452
4596
  onError: (c, d, o) => {
4453
4597
  e.setQueryData(t, o.previousActivity);
4454
4598
  }
4455
- }), Hr = ({
4599
+ }), Qr = ({
4456
4600
  queryClient: e,
4457
4601
  queryKey: t,
4458
4602
  mutationFn: n
@@ -4479,7 +4623,7 @@ const Ar = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4479
4623
  ...o,
4480
4624
  latest_reactions: { reply: a }
4481
4625
  })), { previousActivity: o };
4482
- } }), Qr = ({
4626
+ } }), Ur = ({
4483
4627
  queryClient: e,
4484
4628
  queryKey: t,
4485
4629
  user: n,
@@ -4518,7 +4662,7 @@ const Ar = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4518
4662
  ...u,
4519
4663
  latest_reactions: { reply: l }
4520
4664
  })), { previousActivity: u };
4521
- } }), Ur = ({
4665
+ } }), zr = ({
4522
4666
  queryClient: e,
4523
4667
  queryKey: t,
4524
4668
  mutationFn: n
@@ -4541,7 +4685,7 @@ const Ar = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4541
4685
  onSettled: () => {
4542
4686
  e.invalidateQueries({ queryKey: t });
4543
4687
  }
4544
- }), zr = ({
4688
+ }), Wr = ({
4545
4689
  queryClient: e,
4546
4690
  queryKey: t,
4547
4691
  mutationFn: n
@@ -4599,7 +4743,7 @@ const Ar = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4599
4743
  ...a,
4600
4744
  latest_reactions: { reply: u }
4601
4745
  })), { previousActivity: a };
4602
- } }), Wr = ({
4746
+ } }), Vr = ({
4603
4747
  basePath: e,
4604
4748
  parentId: t,
4605
4749
  replyParentId: n,
@@ -4608,11 +4752,11 @@ const Ar = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4608
4752
  replies: c,
4609
4753
  functions: { create: d, edit: o, join: a, leave: u, like: l, unlike: f }
4610
4754
  }) => {
4611
- const h = A(), p = st(), _ = ge(lt), j = Ur({
4755
+ const h = N(), p = st(), _ = ge(lt), j = zr({
4612
4756
  queryClient: p,
4613
4757
  queryKey: [e, t, r],
4614
4758
  mutationFn: async (b) => d({ replyId: n, content: b.body })
4615
- }), { mutate: g } = de(j), E = zr({
4759
+ }), { mutate: g } = de(j), E = Wr({
4616
4760
  queryClient: p,
4617
4761
  queryKey: [e, t, r],
4618
4762
  mutationFn: o
@@ -4638,7 +4782,7 @@ const Ar = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4638
4782
  [I]
4639
4783
  );
4640
4784
  return /* @__PURE__ */ s.jsx(
4641
- Ar,
4785
+ Pr,
4642
4786
  {
4643
4787
  count: i,
4644
4788
  showRepliesButton: i > 0 || _.showForm,
@@ -4713,7 +4857,7 @@ const Ar = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4713
4857
  ] })
4714
4858
  }
4715
4859
  );
4716
- }, Vr = ({
4860
+ }, Yr = ({
4717
4861
  basePath: e,
4718
4862
  parentId: t,
4719
4863
  activityId: n,
@@ -4721,23 +4865,23 @@ const Ar = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4721
4865
  isMember: i,
4722
4866
  functions: { createReply: c, editReply: d, like: o, unlike: a, join: u, leave: l }
4723
4867
  }) => {
4724
- const f = A(), h = st(), p = ge(Se), _ = Br({
4868
+ const f = N(), h = st(), p = ge(Se), _ = Ir({
4725
4869
  queryClient: h,
4726
4870
  queryKey: [e, t, n],
4727
4871
  mutationFn: async (x) => c({ activityId: n, content: x.body })
4728
- }), { mutate: j } = de(_), g = Ir({
4872
+ }), { mutate: j } = de(_), g = Hr({
4729
4873
  queryClient: h,
4730
4874
  queryKey: [e, t, n],
4731
4875
  mutationFn: async (x) => d(x)
4732
4876
  }), {
4733
4877
  mutate: E
4734
- } = de(g), k = Hr({
4878
+ } = de(g), k = Qr({
4735
4879
  queryClient: h,
4736
4880
  queryKey: [e, t, n],
4737
4881
  mutationFn: o
4738
4882
  }), {
4739
4883
  mutate: T
4740
- } = de(k), M = Qr({
4884
+ } = de(k), M = Ur({
4741
4885
  queryClient: h,
4742
4886
  queryKey: [e, t, n],
4743
4887
  user: p,
@@ -4769,7 +4913,7 @@ const Ar = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4769
4913
  (r == null ? void 0 : r.length) === 0 || (r == null ? void 0 : r.map((x) => {
4770
4914
  var w, Y, L, O, U, W, Z, re, oe, ae, ie, se, P, te, G, K, ue, fe;
4771
4915
  const b = ((w = x == null ? void 0 : x.user) == null ? void 0 : w.id) === (p == null ? void 0 : p.id), Q = Ht(i, b);
4772
- return /* @__PURE__ */ s.jsx(Sr, { children: /* @__PURE__ */ s.jsx(
4916
+ return /* @__PURE__ */ s.jsx(Tr, { children: /* @__PURE__ */ s.jsx(
4773
4917
  ct,
4774
4918
  {
4775
4919
  content: {
@@ -4804,15 +4948,15 @@ const Ar = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4804
4948
  likes: {
4805
4949
  createLike: () => I({ replyId: x == null ? void 0 : x.id }),
4806
4950
  deleteLike: () => {
4807
- var xe, Ie, Ae;
4808
- const _e = ((xe = x == null ? void 0 : x.own_children) == null ? void 0 : xe.like) && ((Ae = (Ie = x == null ? void 0 : x.own_children) == null ? void 0 : Ie.like[0]) == null ? void 0 : Ae.id);
4951
+ var xe, Ie, Ne;
4952
+ const _e = ((xe = x == null ? void 0 : x.own_children) == null ? void 0 : xe.like) && ((Ne = (Ie = x == null ? void 0 : x.own_children) == null ? void 0 : Ie.like[0]) == null ? void 0 : Ne.id);
4809
4953
  return V({ replyId: _e || "" });
4810
4954
  }
4811
4955
  },
4812
4956
  comments: {}
4813
4957
  },
4814
4958
  children: /* @__PURE__ */ s.jsx(
4815
- Wr,
4959
+ Vr,
4816
4960
  {
4817
4961
  basePath: e,
4818
4962
  parentId: t,
@@ -4836,7 +4980,7 @@ const Ar = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4836
4980
  ) }, x == null ? void 0 : x.id);
4837
4981
  }))
4838
4982
  ] });
4839
- }, Yr = ({
4983
+ }, Gr = ({
4840
4984
  queryClient: e,
4841
4985
  queryKey: t,
4842
4986
  mutationFn: n
@@ -4860,7 +5004,7 @@ const Ar = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4860
5004
  onSettled: () => {
4861
5005
  e.invalidateQueries({ queryKey: t });
4862
5006
  }
4863
- }), Gr = ({
5007
+ }), Jr = ({
4864
5008
  queryClient: e,
4865
5009
  queryKey: t,
4866
5010
  mutationFn: n
@@ -4880,7 +5024,7 @@ const Ar = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4880
5024
  })), { previousActivity: a };
4881
5025
  }, onSettled: () => {
4882
5026
  e.invalidateQueries({ queryKey: t });
4883
- } }), Jr = ({
5027
+ } }), Xr = ({
4884
5028
  queryClient: e,
4885
5029
  queryKey: t,
4886
5030
  user: n,
@@ -4913,7 +5057,7 @@ const Ar = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4913
5057
  }, onSettled: () => {
4914
5058
  e.invalidateQueries({ queryKey: t });
4915
5059
  } });
4916
- const Ro = ({
5060
+ const Fo = ({
4917
5061
  basePath: e,
4918
5062
  parentId: t,
4919
5063
  activityId: n,
@@ -4940,19 +5084,19 @@ const Ro = ({
4940
5084
  } = fn({
4941
5085
  queryKey: [e, t, n],
4942
5086
  queryFn: i
4943
- }), M = Yr({
5087
+ }), M = Gr({
4944
5088
  queryClient: j,
4945
5089
  queryKey: [e, t, n],
4946
5090
  mutationFn: async (G) => await c(G)
4947
5091
  }), {
4948
5092
  mutate: C
4949
- } = de(M), I = Gr({
5093
+ } = de(M), I = Jr({
4950
5094
  queryClient: j,
4951
5095
  queryKey: [e, t, n],
4952
5096
  mutationFn: d
4953
5097
  }), {
4954
5098
  mutate: V
4955
- } = de(I), x = Jr({
5099
+ } = de(I), x = Xr({
4956
5100
  queryClient: j,
4957
5101
  queryKey: [e, t, n],
4958
5102
  user: _,
@@ -5029,7 +5173,7 @@ const Ro = ({
5029
5173
  ")"
5030
5174
  ] }),
5031
5175
  /* @__PURE__ */ s.jsx(
5032
- Vr,
5176
+ Yr,
5033
5177
  {
5034
5178
  basePath: e,
5035
5179
  parentId: t,
@@ -5050,7 +5194,7 @@ const Ro = ({
5050
5194
  },
5051
5195
  n
5052
5196
  );
5053
- }, Fo = ({ id: e, data: { jobTitle: t, name: n, organization: r, thumbnail: i } }) => ({
5197
+ }, Lo = ({ id: e, data: { jobTitle: t, name: n, organization: r, thumbnail: i } }) => ({
5054
5198
  id: e,
5055
5199
  name: n,
5056
5200
  jobTitle: t,
@@ -5058,85 +5202,85 @@ const Ro = ({
5058
5202
  image: { thumbnail: i }
5059
5203
  });
5060
5204
  export {
5061
- Nt as ASSETS_BUCKET,
5062
- Po as ActivitiesFeed,
5063
- Ro as ActivitySection,
5205
+ Dt as ASSETS_BUCKET,
5206
+ Ro as ActivitiesFeed,
5207
+ Fo as ActivitySection,
5064
5208
  It as AddPost,
5065
- po as BannerSection,
5066
- ko as Breadcrumbs,
5209
+ go as BannerSection,
5210
+ jo as Breadcrumbs,
5067
5211
  J as Button,
5068
5212
  ot as ButtonWrapper,
5069
- ir as CacheProvider,
5213
+ lr as CacheProvider,
5070
5214
  kn as CollapsibleSection,
5071
- Eo as Columns,
5072
- wo as CommunityDetails,
5073
- ar as Contributors,
5215
+ So as Columns,
5216
+ ko as CommunityDetails,
5217
+ ir as Contributors,
5074
5218
  lt as ConversationContext,
5075
- _r as CookieBanner,
5076
- Sr as DiscussionConversation,
5219
+ xr as CookieBanner,
5220
+ Tr as DiscussionConversation,
5077
5221
  Pn as DiscussionForm,
5078
- Mr as DiscussionLikes,
5222
+ Cr as DiscussionLikes,
5079
5223
  ct as DiscussionPost,
5080
- Ar as DiscussionThread,
5081
- De as Divider,
5082
- fo as DownloadSection,
5224
+ Pr as DiscussionThread,
5225
+ Ae as Divider,
5226
+ ho as DownloadSection,
5083
5227
  Oe as EMAILS,
5084
- So as EmailHelperTextBox,
5228
+ To as EmailHelperTextBox,
5085
5229
  it as EmptyStateBox,
5086
- jo as Filters,
5087
- dr as FlagsProvider,
5230
+ yo as Filters,
5231
+ ur as FlagsProvider,
5088
5232
  Mn as Footer,
5089
5233
  wn as FullWidthSection,
5090
- vo as GlobalProviders,
5091
- An as Header,
5092
- zs as HelperTextBox,
5234
+ wo as GlobalProviders,
5235
+ Nn as Header,
5236
+ Ws as HelperTextBox,
5093
5237
  gn as HiddenFromScreenReaders,
5094
- xo as HideShowTextBox,
5238
+ bo as HideShowTextBox,
5095
5239
  Ee as HighlightedTextBox,
5096
- ur as IntlProvider,
5097
- wr as InviteForm,
5240
+ mr as IntlProvider,
5241
+ kr as InviteForm,
5098
5242
  No as InviteModal,
5099
5243
  Tn as JoinButton,
5100
- yo as LanguageSwitcher,
5244
+ Eo as LanguageSwitcher,
5101
5245
  at as Link,
5102
- hr as LoadMore,
5103
- bo as LoadingBlock,
5246
+ pr as LoadMore,
5247
+ vo as LoadingBlock,
5104
5248
  je as LoadingPlaceholder,
5105
- sr as LoadingState,
5249
+ rr as LoadingState,
5106
5250
  $n as Logo,
5107
- ho as LogoSection,
5251
+ po as LogoSection,
5108
5252
  on as MarkdownText,
5109
- go as MarketingBox,
5253
+ _o as MarketingBox,
5110
5254
  Bt as Member,
5111
5255
  Do as MembersList,
5112
- Cr as Modal,
5113
- pr as MoreMenu,
5114
- _o as NUMBER_OF_USERS,
5256
+ Ar as Modal,
5257
+ gr as MoreMenu,
5258
+ xo as NUMBER_OF_USERS,
5115
5259
  Rn as Overlay,
5116
- Mo as PageLayout,
5117
- To as PasswordRules,
5118
- qs as Pill,
5260
+ Co as PageLayout,
5261
+ $o as PasswordRules,
5262
+ er as Pill,
5119
5263
  Ot as ProfilePicture,
5120
- tr as ProgressBar,
5121
- $o as Rating,
5122
- Vr as RepliesFeed,
5123
- Ao as ResponsesHeading,
5124
- Is as ResponsiveImage,
5125
- vr as SearchForm,
5126
- Ks as Span,
5264
+ nr as ProgressBar,
5265
+ Mo as Rating,
5266
+ Yr as RepliesFeed,
5267
+ Po as ResponsesHeading,
5268
+ Hs as ResponsiveImage,
5269
+ wr as SearchForm,
5270
+ qs as Span,
5127
5271
  Pt as StatusBanner,
5128
- Co as Tags,
5129
- Hs as Tooltip,
5272
+ Ao as Tags,
5273
+ Qs as Tooltip,
5130
5274
  Se as UserContext,
5131
- mr as UserProvider,
5275
+ fr as UserProvider,
5132
5276
  le as VisuallyHidden,
5133
5277
  Dr as addAriaProps,
5134
5278
  Sn as getMember,
5135
5279
  Ke as headerData,
5136
- Fo as mapGetStreamData,
5280
+ Lo as mapGetStreamData,
5137
5281
  Es as useCurrentPath,
5138
5282
  Ce as useEffectAfterMount,
5139
- rt as useScreenWidth,
5283
+ rt as useElementWidth,
5140
5284
  Ts as useScrollListener,
5141
- mo as useScrollToHash
5285
+ fo as useScrollToHash
5142
5286
  };