@apolitical/component-library 2.0.3-ac.4 → 2.0.3-ac.5

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 (4) hide show
  1. package/index.js +15 -15
  2. package/index.mjs +426 -427
  3. package/package.json +1 -1
  4. package/style.css +1 -1
package/index.mjs CHANGED
@@ -1,23 +1,23 @@
1
1
  import * as ar from "react";
2
- import z, { memo as Be, useState as J, useEffect as ie, useRef as me, useMemo as st, createContext as $n, useContext as Ce, Children as hn, useCallback as Dr, Fragment as nt, useReducer as Pn, forwardRef as Va, createElement as sr, Component as Ya, Suspense as Ga } from "react";
2
+ import z, { memo as Be, useState as J, useEffect as ie, useRef as me, useMemo as st, createContext as $n, useContext as $e, Children as hn, useCallback as Or, Fragment as nt, useReducer as Pn, forwardRef as Ua, createElement as sr, Component as Ha, Suspense as Wa } from "react";
3
3
  import wt from "lodash.clonedeep";
4
- import Ka from "lodash.set";
5
- import { useIntl as W, IntlProvider as Qa, createIntl as Ja, FormattedMessage as xe } from "react-intl";
4
+ import Va from "lodash.set";
5
+ import { useIntl as W, IntlProvider as Ya, createIntl as Ga, FormattedMessage as xe } from "react-intl";
6
6
  import He from "truncate";
7
- import { QueryClient as Xa, QueryClientProvider as es, useMutation as we, useQueryClient as Mn, useInfiniteQuery as Ir, useQuery as ts } from "@tanstack/react-query";
8
- import { ReactQueryDevtools as ns } from "@tanstack/react-query-devtools";
7
+ import { QueryClient as Ka, QueryClientProvider as Qa, useMutation as we, useQueryClient as Mn, useInfiniteQuery as Fr, useQuery as Ja } from "@tanstack/react-query";
8
+ import { ReactQueryDevtools as Xa } from "@tanstack/react-query-devtools";
9
9
  import yt from "posthog-js";
10
- import { CookiesProvider as rs, useCookies as Br } from "react-cookie";
10
+ import { CookiesProvider as es, useCookies as Lr } from "react-cookie";
11
11
  import Rt from "markdown-to-jsx";
12
- import { ReactMultiEmail as as } from "react-multi-email";
13
- import qr from "lodash.get";
14
- import { ErrorBoundary as ss } from "react-error-boundary";
15
- import is from "react-textarea-autosize";
16
- import os from "lodash.isequal";
12
+ import { ReactMultiEmail as ts } from "react-multi-email";
13
+ import Dr from "lodash.get";
14
+ import { ErrorBoundary as ns } from "react-error-boundary";
15
+ import rs from "react-textarea-autosize";
16
+ import as from "lodash.isequal";
17
17
  function Rn(e) {
18
18
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
19
19
  }
20
- var zr = { exports: {} };
20
+ var Ir = { exports: {} };
21
21
  /*!
22
22
  Copyright (c) 2018 Jed Watson.
23
23
  Licensed under the MIT License (MIT), see
@@ -52,9 +52,9 @@ var zr = { exports: {} };
52
52
  }
53
53
  e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
54
54
  })();
55
- })(zr);
56
- var cs = zr.exports;
57
- const E = /* @__PURE__ */ Rn(cs), ls = ({
55
+ })(Ir);
56
+ var ss = Ir.exports;
57
+ const E = /* @__PURE__ */ Rn(ss), is = ({
58
58
  element: e = "span",
59
59
  showOnFocus: t = !0,
60
60
  children: n,
@@ -63,11 +63,11 @@ const E = /* @__PURE__ */ Rn(cs), ls = ({
63
63
  ...r,
64
64
  className: E("hidden", { "show-on-focus": t }),
65
65
  children: n
66
- }), _e = Be(ls), ds = ({
66
+ }), _e = Be(is), os = ({
67
67
  element: e = "span",
68
68
  children: t = null,
69
69
  ...n
70
- }) => z.createElement(e, { ...n, "aria-hidden": !0 }, t), Nn = Be(ds);
70
+ }) => z.createElement(e, { ...n, "aria-hidden": !0 }, t), Nn = Be(os);
71
71
  var gn = { exports: {} }, Ge = {};
72
72
  /**
73
73
  * @license React
@@ -79,7 +79,7 @@ var gn = { exports: {} }, Ge = {};
79
79
  * LICENSE file in the root directory of this source tree.
80
80
  */
81
81
  var ir;
82
- function us() {
82
+ function cs() {
83
83
  if (ir)
84
84
  return Ge;
85
85
  ir = 1;
@@ -107,7 +107,7 @@ var Ke = {};
107
107
  * LICENSE file in the root directory of this source tree.
108
108
  */
109
109
  var or;
110
- function fs() {
110
+ function ls() {
111
111
  return or || (or = 1, process.env.NODE_ENV !== "production" && function() {
112
112
  var e = z, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), o = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), l = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), g = Symbol.iterator, v = "@@iterator";
113
113
  function _(p) {
@@ -305,29 +305,29 @@ function fs() {
305
305
  }), typeof Reflect == "object" && Reflect.construct) {
306
306
  try {
307
307
  Reflect.construct(re, []);
308
- } catch (Pe) {
309
- G = Pe;
308
+ } catch (Me) {
309
+ G = Me;
310
310
  }
311
311
  Reflect.construct(p, [], re);
312
312
  } else {
313
313
  try {
314
314
  re.call();
315
- } catch (Pe) {
316
- G = Pe;
315
+ } catch (Me) {
316
+ G = Me;
317
317
  }
318
318
  p.call(re.prototype);
319
319
  }
320
320
  } else {
321
321
  try {
322
322
  throw Error();
323
- } catch (Pe) {
324
- G = Pe;
323
+ } catch (Me) {
324
+ G = Me;
325
325
  }
326
326
  p();
327
327
  }
328
- } catch (Pe) {
329
- if (Pe && G && typeof Pe.stack == "string") {
330
- for (var te = Pe.stack.split(`
328
+ } catch (Me) {
329
+ if (Me && G && typeof Me.stack == "string") {
330
+ for (var te = Me.stack.split(`
331
331
  `), ve = G.stack.split(`
332
332
  `), pe = te.length - 1, he = ve.length - 1; pe >= 1 && he >= 0 && te[pe] !== ve[he]; )
333
333
  he--;
@@ -353,7 +353,7 @@ function fs() {
353
353
  function ge(p, T, M) {
354
354
  return $(p, !1);
355
355
  }
356
- function $e(p) {
356
+ function Pe(p) {
357
357
  var T = p.prototype;
358
358
  return !!(T && T.isReactComponent);
359
359
  }
@@ -361,7 +361,7 @@ function fs() {
361
361
  if (p == null)
362
362
  return "";
363
363
  if (typeof p == "function")
364
- return $(p, $e(p));
364
+ return $(p, Pe(p));
365
365
  if (typeof p == "string")
366
366
  return H(p);
367
367
  switch (p) {
@@ -386,7 +386,7 @@ function fs() {
386
386
  }
387
387
  return "";
388
388
  }
389
- var Le = Object.prototype.hasOwnProperty, Hn = {}, Wn = b.ReactDebugCurrentFrame;
389
+ var De = Object.prototype.hasOwnProperty, Hn = {}, Wn = b.ReactDebugCurrentFrame;
390
390
  function dt(p) {
391
391
  if (p) {
392
392
  var T = p._owner, M = Ee(p.type, p._source, T ? T.type : null);
@@ -394,9 +394,9 @@ function fs() {
394
394
  } else
395
395
  Wn.setExtraStackFrame(null);
396
396
  }
397
- function Sa(p, T, M, G, ae) {
397
+ function ka(p, T, M, G, ae) {
398
398
  {
399
- var ue = Function.call.bind(Le);
399
+ var ue = Function.call.bind(De);
400
400
  for (var re in p)
401
401
  if (ue(p, re)) {
402
402
  var te = void 0;
@@ -413,17 +413,17 @@ function fs() {
413
413
  }
414
414
  }
415
415
  }
416
- var Ca = Array.isArray;
416
+ var Ta = Array.isArray;
417
417
  function Dt(p) {
418
- return Ca(p);
418
+ return Ta(p);
419
419
  }
420
- function $a(p) {
420
+ function Ea(p) {
421
421
  {
422
422
  var T = typeof Symbol == "function" && Symbol.toStringTag, M = T && p[Symbol.toStringTag] || p.constructor.name || "Object";
423
423
  return M;
424
424
  }
425
425
  }
426
- function Pa(p) {
426
+ function Sa(p) {
427
427
  try {
428
428
  return Vn(p), !1;
429
429
  } catch {
@@ -434,39 +434,39 @@ function fs() {
434
434
  return "" + p;
435
435
  }
436
436
  function Yn(p) {
437
- if (Pa(p))
438
- return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", $a(p)), Vn(p);
437
+ if (Sa(p))
438
+ return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ea(p)), Vn(p);
439
439
  }
440
- var Ye = b.ReactCurrentOwner, Ma = {
440
+ var Ye = b.ReactCurrentOwner, Ca = {
441
441
  key: !0,
442
442
  ref: !0,
443
443
  __self: !0,
444
444
  __source: !0
445
445
  }, Gn, Kn, It;
446
446
  It = {};
447
- function Ra(p) {
448
- if (Le.call(p, "ref")) {
447
+ function $a(p) {
448
+ if (De.call(p, "ref")) {
449
449
  var T = Object.getOwnPropertyDescriptor(p, "ref").get;
450
450
  if (T && T.isReactWarning)
451
451
  return !1;
452
452
  }
453
453
  return p.ref !== void 0;
454
454
  }
455
- function Na(p) {
456
- if (Le.call(p, "key")) {
455
+ function Pa(p) {
456
+ if (De.call(p, "key")) {
457
457
  var T = Object.getOwnPropertyDescriptor(p, "key").get;
458
458
  if (T && T.isReactWarning)
459
459
  return !1;
460
460
  }
461
461
  return p.key !== void 0;
462
462
  }
463
- function Aa(p, T) {
463
+ function Ma(p, T) {
464
464
  if (typeof p.ref == "string" && Ye.current && T && Ye.current.stateNode !== T) {
465
465
  var M = A(Ye.current.type);
466
466
  It[M] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', A(Ye.current.type), p.ref), It[M] = !0);
467
467
  }
468
468
  }
469
- function Oa(p, T) {
469
+ function Ra(p, T) {
470
470
  {
471
471
  var M = function() {
472
472
  Gn || (Gn = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", T));
@@ -477,7 +477,7 @@ function fs() {
477
477
  });
478
478
  }
479
479
  }
480
- function Fa(p, T) {
480
+ function Na(p, T) {
481
481
  {
482
482
  var M = function() {
483
483
  Kn || (Kn = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", T));
@@ -488,7 +488,7 @@ function fs() {
488
488
  });
489
489
  }
490
490
  }
491
- var La = function(p, T, M, G, ae, ue, re) {
491
+ var Aa = function(p, T, M, G, ae, ue, re) {
492
492
  var te = {
493
493
  // This tag allows us to uniquely identify this as a React Element
494
494
  $$typeof: t,
@@ -517,12 +517,12 @@ function fs() {
517
517
  value: ae
518
518
  }), Object.freeze && (Object.freeze(te.props), Object.freeze(te)), te;
519
519
  };
520
- function Da(p, T, M, G, ae) {
520
+ function Oa(p, T, M, G, ae) {
521
521
  {
522
522
  var ue, re = {}, te = null, ve = null;
523
- M !== void 0 && (Yn(M), te = "" + M), Na(T) && (Yn(T.key), te = "" + T.key), Ra(T) && (ve = T.ref, Aa(T, ae));
523
+ M !== void 0 && (Yn(M), te = "" + M), Pa(T) && (Yn(T.key), te = "" + T.key), $a(T) && (ve = T.ref, Ma(T, ae));
524
524
  for (ue in T)
525
- Le.call(T, ue) && !Ma.hasOwnProperty(ue) && (re[ue] = T[ue]);
525
+ De.call(T, ue) && !Ca.hasOwnProperty(ue) && (re[ue] = T[ue]);
526
526
  if (p && p.defaultProps) {
527
527
  var pe = p.defaultProps;
528
528
  for (ue in pe)
@@ -530,9 +530,9 @@ function fs() {
530
530
  }
531
531
  if (te || ve) {
532
532
  var he = typeof p == "function" ? p.displayName || p.name || "Unknown" : p;
533
- te && Oa(re, he), ve && Fa(re, he);
533
+ te && Ra(re, he), ve && Na(re, he);
534
534
  }
535
- return La(p, te, ve, ae, G, Ye.current, re);
535
+ return Aa(p, te, ve, ae, G, Ye.current, re);
536
536
  }
537
537
  }
538
538
  var Bt = b.ReactCurrentOwner, Qn = b.ReactDebugCurrentFrame;
@@ -560,7 +560,7 @@ Check the render method of \`` + p + "`.";
560
560
  return "";
561
561
  }
562
562
  }
563
- function Ia(p) {
563
+ function Fa(p) {
564
564
  {
565
565
  if (p !== void 0) {
566
566
  var T = p.fileName.replace(/^.*[\\\/]/, ""), M = p.lineNumber;
@@ -572,7 +572,7 @@ Check your code at ` + T + ":" + M + ".";
572
572
  }
573
573
  }
574
574
  var Xn = {};
575
- function Ba(p) {
575
+ function La(p) {
576
576
  {
577
577
  var T = Jn();
578
578
  if (!T) {
@@ -589,7 +589,7 @@ Check the top-level render call using <` + M + ">.");
589
589
  if (!p._store || p._store.validated || p.key != null)
590
590
  return;
591
591
  p._store.validated = !0;
592
- var M = Ba(T);
592
+ var M = La(T);
593
593
  if (Xn[M])
594
594
  return;
595
595
  Xn[M] = !0;
@@ -616,7 +616,7 @@ Check the top-level render call using <` + M + ">.");
616
616
  }
617
617
  }
618
618
  }
619
- function qa(p) {
619
+ function Da(p) {
620
620
  {
621
621
  var T = p.type;
622
622
  if (T == null || typeof T == "string")
@@ -632,7 +632,7 @@ Check the top-level render call using <` + M + ">.");
632
632
  return;
633
633
  if (M) {
634
634
  var G = A(T);
635
- Sa(M, p.props, "prop", G, p);
635
+ ka(M, p.props, "prop", G, p);
636
636
  } else if (T.PropTypes !== void 0 && !qt) {
637
637
  qt = !0;
638
638
  var ae = A(T);
@@ -641,7 +641,7 @@ Check the top-level render call using <` + M + ">.");
641
641
  typeof T.getDefaultProps == "function" && !T.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
642
642
  }
643
643
  }
644
- function za(p) {
644
+ function Ia(p) {
645
645
  {
646
646
  for (var T = Object.keys(p.props), M = 0; M < T.length; M++) {
647
647
  var G = T[M];
@@ -659,12 +659,12 @@ Check the top-level render call using <` + M + ">.");
659
659
  if (!re) {
660
660
  var te = "";
661
661
  (p === void 0 || typeof p == "object" && p !== null && Object.keys(p).length === 0) && (te += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
662
- var ve = Ia(ae);
662
+ var ve = Fa(ae);
663
663
  ve ? te += ve : te += Jn();
664
664
  var pe;
665
665
  p === null ? pe = "null" : Dt(p) ? pe = "array" : p !== void 0 && p.$$typeof === t ? (pe = "<" + (A(p.type) || "Unknown") + " />", te = " Did you accidentally export a JSX literal instead of a component?") : pe = typeof p, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", pe, te);
666
666
  }
667
- var he = Da(p, T, M, ae, ue);
667
+ var he = Oa(p, T, M, ae, ue);
668
668
  if (he == null)
669
669
  return he;
670
670
  if (re) {
@@ -680,22 +680,22 @@ Check the top-level render call using <` + M + ">.");
680
680
  else
681
681
  tr(je, p);
682
682
  }
683
- return p === r ? za(he) : qa(he), he;
683
+ return p === r ? Ia(he) : Da(he), he;
684
684
  }
685
685
  }
686
- function Za(p, T, M) {
686
+ function Ba(p, T, M) {
687
687
  return nr(p, T, M, !0);
688
688
  }
689
- function Ua(p, T, M) {
689
+ function qa(p, T, M) {
690
690
  return nr(p, T, M, !1);
691
691
  }
692
- var Ha = Ua, Wa = Za;
693
- Ke.Fragment = r, Ke.jsx = Ha, Ke.jsxs = Wa;
692
+ var za = qa, Za = Ba;
693
+ Ke.Fragment = r, Ke.jsx = za, Ke.jsxs = Za;
694
694
  }()), Ke;
695
695
  }
696
- process.env.NODE_ENV === "production" ? gn.exports = us() : gn.exports = fs();
696
+ process.env.NODE_ENV === "production" ? gn.exports = cs() : gn.exports = ls();
697
697
  var a = gn.exports;
698
- const ms = () => {
698
+ const ds = () => {
699
699
  const [e, t] = J(window.location.pathname), n = () => {
700
700
  const r = window.location.pathname;
701
701
  t(r);
@@ -709,7 +709,7 @@ const ms = () => {
709
709
  n.current ? e() : n.current = !0;
710
710
  }, t);
711
711
  };
712
- function ps(e, t, n) {
712
+ function us(e, t, n) {
713
713
  var r = this, s = me(null), i = me(0), c = me(null), o = me([]), f = me(), d = me(), u = me(e), l = me(!0);
714
714
  u.current = e;
715
715
  var m = typeof window < "u", h = !t && t !== 0 && m;
@@ -765,9 +765,9 @@ function ps(e, t, n) {
765
765
  }, [g, _, t, y, v, h, m, b]);
766
766
  return j;
767
767
  }
768
- function Zr(e, t, n) {
768
+ function Br(e, t, n) {
769
769
  var r = n === void 0 ? {} : n, s = r.leading, i = r.trailing;
770
- return ps(e, t, { maxWait: t, leading: s === void 0 || s, trailing: i === void 0 || i });
770
+ return us(e, t, { maxWait: t, leading: s === void 0 || s, trailing: i === void 0 || i });
771
771
  }
772
772
  let Zt;
773
773
  const it = (e = !0, t = !1, n = "window") => {
@@ -783,7 +783,7 @@ const it = (e = !0, t = !1, n = "window") => {
783
783
  return n === "window" ? window.innerWidth : n.offsetWidth;
784
784
  }, o = () => {
785
785
  s(c());
786
- }, f = Zr(
786
+ }, f = Br(
787
787
  () => {
788
788
  c() !== r && (t && (clearTimeout(Zt), document.body.classList.add("is-resizing"), Zt = setTimeout(() => {
789
789
  document.body.classList.remove("is-resizing");
@@ -793,7 +793,7 @@ const it = (e = !0, t = !1, n = "window") => {
793
793
  { leading: !0 }
794
794
  );
795
795
  return r;
796
- }, hs = ({
796
+ }, fs = ({
797
797
  scrollPosition: e = 0,
798
798
  // The position on the page to scroll past
799
799
  offset: t = { down: 0, up: 10 },
@@ -823,11 +823,11 @@ const it = (e = !0, t = !1, n = "window") => {
823
823
  return;
824
824
  }
825
825
  Math.abs(m) >= t.up && !c.scrollUp && (r(), o({ scrollUp: !0, scrollDown: !1 }));
826
- }, d = Zr(() => {
826
+ }, d = Br(() => {
827
827
  f();
828
828
  }, 250);
829
829
  return s;
830
- }, gs = (e = [], t = !0) => {
830
+ }, ms = (e = [], t = !0) => {
831
831
  e = Array.isArray(e) ? e : [e];
832
832
  const n = me(!1);
833
833
  rt(() => {
@@ -838,19 +838,19 @@ const it = (e = !0, t = !1, n = "window") => {
838
838
  r && (r.scrollIntoView(t ? { behavior: "smooth" } : null), n.current = !0);
839
839
  }
840
840
  }, e);
841
- }, Ur = (e, t) => {
841
+ }, qr = (e, t) => {
842
842
  Array.isArray(t) || (t = [t]);
843
843
  const n = wt(e);
844
844
  return t.forEach(({ type: r, value: s }) => {
845
- Ka(n, r, s);
845
+ Va(n, r, s);
846
846
  }), n;
847
- }, Hr = (e) => {
847
+ }, zr = (e) => {
848
848
  const t = [];
849
849
  return e.forEach((n) => {
850
850
  const r = parseInt(n);
851
851
  isNaN(r) || t.push(r);
852
852
  }), t.sort((n, r) => n - r);
853
- }, Wr = (e, t, n) => {
853
+ }, Zr = (e, t, n) => {
854
854
  let r = n.mobile;
855
855
  for (const s in t) {
856
856
  const i = parseInt(String(t[s]));
@@ -860,7 +860,7 @@ const it = (e = !0, t = !1, n = "window") => {
860
860
  break;
861
861
  }
862
862
  return r;
863
- }, _s = (e) => e.replace(/[A-Z]/g, (t) => `-${t.toLowerCase()}`), Ie = {
863
+ }, ps = (e) => e.replace(/[A-Z]/g, (t) => `-${t.toLowerCase()}`), Ie = {
864
864
  milliseconds: {
865
865
  inSecond: 1e3,
866
866
  inMinute: 6e4,
@@ -871,7 +871,7 @@ const it = (e = !0, t = !1, n = "window") => {
871
871
  weeks: 52,
872
872
  days: 365
873
873
  }
874
- }, vs = (e, t = "en") => new Date(e).toLocaleString(t, { day: "numeric", month: "short" }), Vr = (e, t = "en") => new Date(e).toLocaleString(t, {
874
+ }, hs = (e, t = "en") => new Date(e).toLocaleString(t, { day: "numeric", month: "short" }), Ur = (e, t = "en") => new Date(e).toLocaleString(t, {
875
875
  weekday: "long",
876
876
  day: "numeric",
877
877
  month: "short",
@@ -894,7 +894,7 @@ const it = (e = !0, t = !1, n = "window") => {
894
894
  }, jt = (e) => {
895
895
  const n = (e || /* @__PURE__ */ new Date()).toUTCString();
896
896
  return new Date(n);
897
- }, bs = (e, t, n) => {
897
+ }, gs = (e, t, n) => {
898
898
  let r;
899
899
  const s = jt(), i = jt(new Date(e));
900
900
  try {
@@ -911,7 +911,7 @@ const it = (e = !0, t = !1, n = "window") => {
911
911
  return r / Ie.milliseconds.inHour <= t;
912
912
  }
913
913
  return !1;
914
- }, ys = (e) => new Promise((t) => setTimeout(t, e)), An = {
914
+ }, _s = (e) => new Promise((t) => setTimeout(t, e)), An = {
915
915
  /* Common */
916
916
  apolitical: "Apolitical",
917
917
  dates_now: "now",
@@ -1246,14 +1246,14 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1246
1246
  markdown_iframe_video: "Video",
1247
1247
  markdown_iframe_padlet: "Interactive board",
1248
1248
  markdown_iframe_poll: "Poll"
1249
- }, xs = {
1249
+ }, vs = {
1250
1250
  /* Navigation */
1251
1251
  languageSwitcher_label: "Me gustaría leer este artículo en...",
1252
1252
  languageSwitcher_translation_original: "idioma original",
1253
1253
  languageSwitcher_translation_human: "traducido por un humano",
1254
1254
  languageSwitcher_translation_machine: "traducido por máquina",
1255
1255
  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>"
1256
- }, ws = {
1256
+ }, bs = {
1257
1257
  /* Navigation */
1258
1258
  languageSwitcher_label: "Je voudrais lire cet article dans...",
1259
1259
  languageSwitcher_translation_original: "langue originale",
@@ -1262,23 +1262,23 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1262
1262
  languageSwitcher_disclaimer: "Ce contenu est traduit automatiquement et contiendra d’évantuelles erreurs de genre ou d’autres traductions directes. Nous essayons de résoudre ce problème, mais en attendant, si vous remarquez une erreur importante, faites-le nous savoir à <link>{email}</link>",
1263
1263
  /* Text */
1264
1264
  collapsibleSection_summary: "En savoir plus"
1265
- }, js = {
1265
+ }, ys = {
1266
1266
  /* Navigation */
1267
1267
  languageSwitcher_label: "Eu gostaria de ler este artigo em...",
1268
1268
  languageSwitcher_translation_original: "linguagem original",
1269
1269
  languageSwitcher_translation_human: "traduzido por um humano",
1270
1270
  languageSwitcher_translation_machine: "traduzido por máquina",
1271
1271
  languageSwitcher_disclaimer: "Este conteúdo foi traduzido automaticamente e, ocasionalmente, poderão ocorrer erros de linguagem de gênero ou outras traduções diretas. Estamos tentando resolver isso, porém se perceber algo errado por favor nos avise em <link>{email}</link>"
1272
- }, ks = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1272
+ }, xs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1273
1273
  __proto__: null,
1274
1274
  en: An,
1275
- es: xs,
1276
- fr: ws,
1277
- pt: js
1278
- }, Symbol.toStringTag, { value: "Module" })), Yr = (e) => e in An, Se = (e, t, n, r, s = {}) => {
1275
+ es: vs,
1276
+ fr: bs,
1277
+ pt: ys
1278
+ }, Symbol.toStringTag, { value: "Module" })), Hr = (e) => e in An, Ce = (e, t, n, r, s = {}) => {
1279
1279
  let i = "";
1280
- return Yr(`${t}_${n}`) ? i = e({ id: `${t}_${n}` }, s) : i = e({ id: t }, { [r]: n, ...s }), i;
1281
- }, Ts = (e, t, n) => {
1280
+ return Hr(`${t}_${n}`) ? i = e({ id: `${t}_${n}` }, s) : i = e({ id: t }, { [r]: n, ...s }), i;
1281
+ }, ws = (e, t, n) => {
1282
1282
  if (!e || e === 0)
1283
1283
  return "0";
1284
1284
  t || (t = 0), n || (n = ["k", "m", "b", "t"]);
@@ -1294,12 +1294,12 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1294
1294
  return r;
1295
1295
  }, xt = (e, t) => z.Children.map(e, (n) => Object.is(n, null) ? n : z.cloneElement(n, {
1296
1296
  ...t
1297
- })), Es = (e = 0) => {
1297
+ })), js = (e = 0) => {
1298
1298
  setTimeout(() => {
1299
1299
  const t = document.querySelector(".splash-screen");
1300
1300
  t && t.remove(), window.prerenderReady = !0;
1301
1301
  }, e);
1302
- }, Ss = (e) => e.replace(/\s+/g, "").length > 0, se = ({
1302
+ }, ks = (e) => e.replace(/\s+/g, "").length > 0, se = ({
1303
1303
  variant: e = "primary",
1304
1304
  size: t = "medium",
1305
1305
  styling: n = { muted: !1, fullWidth: !1 },
@@ -1315,8 +1315,8 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1315
1315
  }) => {
1316
1316
  const h = it(typeof t == "object");
1317
1317
  if (typeof t == "object" && typeof h == "number") {
1318
- const _ = Object.assign({}, t), b = Hr(Object.keys(_));
1319
- t = Wr(h, b, _);
1318
+ const _ = Object.assign({}, t), b = zr(Object.keys(_));
1319
+ t = Zr(h, b, _);
1320
1320
  }
1321
1321
  const g = [];
1322
1322
  typeof t == "string" && g.push(t), r && (g.push("icon"), typeof r == "object" ? (g.push(r.icon), r.position ? g.push(r.position) : g.push("left"), r.hover && g.push(`hover_${r.hover}`), r.animate && (g.push("animate"), typeof r.animate == "string" && g.push(r.animate))) : (g.push(r), !r.includes("right") && !r.includes("left") && g.push("left"))), n.muted && g.push("muted"), n.fullWidth && g.push("full-width");
@@ -1345,7 +1345,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1345
1345
  children: s
1346
1346
  });
1347
1347
  };
1348
- const Oe = ({ className: e = "", maxWidth: t = !1 }) => {
1348
+ const Fe = ({ className: e = "", maxWidth: t = !1 }) => {
1349
1349
  const n = t ? { "--max-width": `${t / 16}rem` } : {};
1350
1350
  return /* @__PURE__ */ a.jsx("hr", { className: E(e, { "has-max-width": t }), style: n });
1351
1351
  }, ot = ({
@@ -1466,23 +1466,23 @@ const Oe = ({ className: e = "", maxWidth: t = !1 }) => {
1466
1466
  ],
1467
1467
  sizes: "(min-width: 1024px) 453px, 20vw"
1468
1468
  }
1469
- }, Cs = ({
1469
+ }, Ts = ({
1470
1470
  aspect: e,
1471
1471
  range: t,
1472
1472
  sizes: n
1473
1473
  }) => {
1474
1474
  const { range: r, sizes: s } = e ? cr[e] : cr.fallback;
1475
1475
  return { range: t && t.length > 0 ? t : r, sizes: n || s };
1476
- }, $s = ({ format: e, height: t, query: n, width: r }) => {
1476
+ }, Es = ({ format: e, height: t, query: n, width: r }) => {
1477
1477
  let s = `w=${r}&h=${t}`;
1478
1478
  return s = e ? `${s}&fm=${e}` : s, s = n ? `${s}&${n}` : s, s;
1479
- }, Ut = ({ format: e, range: t, url: n, query: r }) => t.map(({ height: s, width: i }) => `${n}?${$s({
1479
+ }, Ut = ({ format: e, range: t, url: n, query: r }) => t.map(({ height: s, width: i }) => `${n}?${Es({
1480
1480
  format: e,
1481
1481
  height: s,
1482
1482
  query: r,
1483
1483
  width: i
1484
1484
  })} ${i}w`).join(", ");
1485
- const Gr = ({ image: e, className: t, testId: n }) => {
1485
+ const Wr = ({ image: e, className: t, testId: n }) => {
1486
1486
  const {
1487
1487
  description: r,
1488
1488
  height: s,
@@ -1493,7 +1493,7 @@ const Gr = ({ image: e, className: t, testId: n }) => {
1493
1493
  loading: d,
1494
1494
  decoding: u,
1495
1495
  fetchPriority: l
1496
- } = e, { range: m, sizes: h } = Cs(e), g = Ut({ format: "avif", query: c, range: m, url: o }), v = Ut({ format: "webp", query: c, range: m, url: o }), _ = Ut({ format: "", query: c, range: m, url: o });
1496
+ } = e, { range: m, sizes: h } = Ts(e), g = Ut({ format: "avif", query: c, range: m, url: o }), v = Ut({ format: "webp", query: c, range: m, url: o }), _ = Ut({ format: "", query: c, range: m, url: o });
1497
1497
  return /* @__PURE__ */ a.jsxs("picture", { className: t, children: [
1498
1498
  i !== "image/gif" && /* @__PURE__ */ a.jsx(
1499
1499
  "source",
@@ -1523,7 +1523,7 @@ const Gr = ({ image: e, className: t, testId: n }) => {
1523
1523
  ] });
1524
1524
  };
1525
1525
  let Qe = !1;
1526
- const Ps = ({ isOpen: e = !1, isLoading: t = !1, children: n }) => {
1526
+ const Ss = ({ isOpen: e = !1, isLoading: t = !1, children: n }) => {
1527
1527
  const r = W(), s = me(null), [i, c] = J("hidden");
1528
1528
  ie(() => {
1529
1529
  const f = s.current;
@@ -1616,7 +1616,7 @@ const vc = ({
1616
1616
  )
1617
1617
  ] });
1618
1618
  };
1619
- const Ms = [
1619
+ const Cs = [
1620
1620
  "small",
1621
1621
  "span",
1622
1622
  "strong",
@@ -1630,7 +1630,7 @@ const Ms = [
1630
1630
  "h6",
1631
1631
  "blockquote",
1632
1632
  "q"
1633
- ], Rs = ({
1633
+ ], $s = ({
1634
1634
  className: e = "",
1635
1635
  content: t,
1636
1636
  image: n,
@@ -1654,7 +1654,7 @@ const Ms = [
1654
1654
  if (typeof t[l] == "object") {
1655
1655
  u[l] = t[l];
1656
1656
  const { text: m, element: h } = t[l];
1657
- if (h && Ms.includes(h.toLowerCase()))
1657
+ if (h && Cs.includes(h.toLowerCase()))
1658
1658
  return;
1659
1659
  u[l] = {
1660
1660
  text: m,
@@ -1699,11 +1699,11 @@ const Ms = [
1699
1699
  }
1700
1700
  )
1701
1701
  ] }),
1702
- n && /* @__PURE__ */ a.jsx(Gr, { image: { ...n, aspect: "banner" } })
1702
+ n && /* @__PURE__ */ a.jsx(Wr, { image: { ...n, aspect: "banner" } })
1703
1703
  ] })
1704
1704
  }
1705
1705
  );
1706
- }, bc = Be(Rs);
1706
+ }, bc = Be($s);
1707
1707
  const yc = ({
1708
1708
  variant: e = "primary",
1709
1709
  button: t = null,
@@ -1725,8 +1725,8 @@ const yc = ({
1725
1725
  children: t.text
1726
1726
  }
1727
1727
  )
1728
- ] }), Ns = ({ showDevTools: e = !0, children: t }) => {
1729
- const n = new Xa({
1728
+ ] }), Ps = ({ showDevTools: e = !0, children: t }) => {
1729
+ const n = new Ka({
1730
1730
  // default options we would like on all queries can be overridden individually
1731
1731
  defaultOptions: {
1732
1732
  queries: {
@@ -1737,20 +1737,20 @@ const yc = ({
1737
1737
  }
1738
1738
  }
1739
1739
  });
1740
- return /* @__PURE__ */ a.jsxs(es, { client: n, children: [
1740
+ return /* @__PURE__ */ a.jsxs(Qa, { client: n, children: [
1741
1741
  t,
1742
- e && /* @__PURE__ */ a.jsx(ns, { initialIsOpen: !1 })
1742
+ e && /* @__PURE__ */ a.jsx(Xa, { initialIsOpen: !1 })
1743
1743
  ] });
1744
1744
  };
1745
- var As = $n({ client: yt });
1746
- function Os(e) {
1745
+ var Ms = $n({ client: yt });
1746
+ function Rs(e) {
1747
1747
  var t = e.children, n = e.client, r = e.apiKey, s = e.options, i = st(function() {
1748
1748
  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 && s && 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 && (yt.__loaded && console.warn("[PostHog.js] was already loaded elsewhere. This may cause issues."), yt.init(r, s)), yt);
1749
1749
  }, [n, r]);
1750
- return z.createElement(As.Provider, { value: { client: i } }, t);
1750
+ return z.createElement(Ms.Provider, { value: { client: i } }, t);
1751
1751
  }
1752
- const Fs = ({ children: e, user: t }) => t.isLoading ? null : process.env.REACT_APP_PUBLIC_POSTHOG_KEY ? /* @__PURE__ */ a.jsx(
1753
- Os,
1752
+ const Ns = ({ children: e, user: t }) => t.isLoading ? null : process.env.REACT_APP_PUBLIC_POSTHOG_KEY ? /* @__PURE__ */ a.jsx(
1753
+ Rs,
1754
1754
  {
1755
1755
  apiKey: atob(process.env.REACT_APP_PUBLIC_POSTHOG_KEY),
1756
1756
  options: {
@@ -1768,23 +1768,23 @@ const Fs = ({ children: e, user: t }) => t.isLoading ? null : process.env.REACT_
1768
1768
  },
1769
1769
  children: e
1770
1770
  }
1771
- ) : e, Ls = ({ children: e, locale: t, messages: n }) => {
1771
+ ) : e, As = ({ children: e, locale: t, messages: n }) => {
1772
1772
  const r = t || "en", s = {
1773
- ...ks[r],
1773
+ ...xs[r],
1774
1774
  ...n || {}
1775
1775
  };
1776
- return /* @__PURE__ */ a.jsx(Qa, { locale: r, messages: s, children: e });
1776
+ return /* @__PURE__ */ a.jsx(Ya, { locale: r, messages: s, children: e });
1777
1777
  }, Ae = $n({ isLoading: !0 });
1778
1778
  function On() {
1779
- return Ce(Ae);
1779
+ return $e(Ae);
1780
1780
  }
1781
- const Ds = ({ children: e, user: t }) => /* @__PURE__ */ a.jsx(Ae.Provider, { value: t, children: e }), xc = ({ bootstrap: e, children: t, intl: n }) => {
1781
+ const Os = ({ children: e, user: t }) => /* @__PURE__ */ a.jsx(Ae.Provider, { value: t, children: e }), xc = ({ bootstrap: e, children: t, intl: n }) => {
1782
1782
  const [r, s] = J({ isLoading: !0 });
1783
1783
  return ie(() => {
1784
1784
  e().then((i) => {
1785
- s({ ...i, isLoading: !1 }), Es(5e3);
1785
+ s({ ...i, isLoading: !1 }), js(5e3);
1786
1786
  }).catch(() => s({ isLoading: !1 }));
1787
- }, []), /* @__PURE__ */ a.jsx(Ls, { locale: n == null ? void 0 : n.locale, messages: n == null ? void 0 : n.messages, children: /* @__PURE__ */ a.jsx(rs, { children: /* @__PURE__ */ a.jsx(Ds, { user: r, children: /* @__PURE__ */ a.jsx(Ns, { children: /* @__PURE__ */ a.jsx(Fs, { user: r, children: t }) }) }) }) });
1787
+ }, []), /* @__PURE__ */ a.jsx(As, { locale: n == null ? void 0 : n.locale, messages: n == null ? void 0 : n.messages, children: /* @__PURE__ */ a.jsx(es, { children: /* @__PURE__ */ a.jsx(Os, { user: r, children: /* @__PURE__ */ a.jsx(Ps, { children: /* @__PURE__ */ a.jsx(Ns, { user: r, children: t }) }) }) }) });
1788
1788
  }, at = "https://storage.googleapis.com/apolitical-assets/", Xe = {
1789
1789
  general: "hello@apolitical.co",
1790
1790
  support: "concierge@apolitical.co",
@@ -1793,14 +1793,14 @@ const Ds = ({ children: e, user: t }) => /* @__PURE__ */ a.jsx(Ae.Provider, { va
1793
1793
  eu: "dpo.agl@apolitical.foundation"
1794
1794
  }
1795
1795
  }, wc = "200,000+";
1796
- const Kr = ({ label: e = !1, className: t = "", children: n }) => {
1796
+ const Vr = ({ label: e = !1, className: t = "", children: n }) => {
1797
1797
  const r = W();
1798
1798
  return /* @__PURE__ */ a.jsxs("details", { className: E("collapsible-section", t), children: [
1799
1799
  /* @__PURE__ */ a.jsx("summary", { children: e || r.formatMessage({ id: "collapsibleSection_summary" }) }),
1800
1800
  /* @__PURE__ */ a.jsx("div", { className: "content", children: n })
1801
1801
  ] });
1802
1802
  };
1803
- const Ne = ({
1803
+ const Oe = ({
1804
1804
  variant: e = "primary",
1805
1805
  icon: t,
1806
1806
  className: n = "",
@@ -1829,8 +1829,8 @@ const Ve = ({
1829
1829
  let s = n && !!Object.keys(n).length;
1830
1830
  const i = typeof n == "object" && "breakpoints" in n, c = it(i);
1831
1831
  if (i && typeof n == "object" && typeof c == "number") {
1832
- const l = Object.assign({}, n.breakpoints), m = Hr(Object.keys(l));
1833
- s = Wr(c, m, l);
1832
+ const l = Object.assign({}, n.breakpoints), m = zr(Object.keys(l));
1833
+ s = Zr(c, m, l);
1834
1834
  }
1835
1835
  const {
1836
1836
  breakpoints: o,
@@ -1839,7 +1839,7 @@ const Ve = ({
1839
1839
  ...u
1840
1840
  } = n;
1841
1841
  return /* @__PURE__ */ a.jsx(
1842
- Ne,
1842
+ Oe,
1843
1843
  {
1844
1844
  variant: "subtle",
1845
1845
  className: E("empty-state-box", e, r),
@@ -1857,10 +1857,10 @@ const Ve = ({
1857
1857
  }
1858
1858
  );
1859
1859
  };
1860
- const vn = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx("p", { ...t, children: e }), Qr = { q: vn, blockquote: vn };
1860
+ const vn = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx("p", { ...t, children: e }), Yr = { q: vn, blockquote: vn };
1861
1861
  for (let e = 1; e <= 6; e++)
1862
- Qr[`h${e}`] = { component: vn, props: { className: "title" } };
1863
- const Is = ({
1862
+ Yr[`h${e}`] = { component: vn, props: { className: "title" } };
1863
+ const Fs = ({
1864
1864
  type: e = "default",
1865
1865
  className: t = "",
1866
1866
  heading: n = !1,
@@ -1873,7 +1873,7 @@ const Is = ({
1873
1873
  options: {
1874
1874
  wrapper: z.Fragment,
1875
1875
  forceBlock: !0,
1876
- overrides: Qr
1876
+ overrides: Yr
1877
1877
  },
1878
1878
  children: r
1879
1879
  }
@@ -1912,7 +1912,7 @@ const jc = ({
1912
1912
  return null;
1913
1913
  const m = ["opening", "open"].includes(d);
1914
1914
  return /* @__PURE__ */ a.jsxs(
1915
- Ne,
1915
+ Oe,
1916
1916
  {
1917
1917
  variant: "subtle",
1918
1918
  className: E("hide-show-text-box", e),
@@ -1937,7 +1937,7 @@ const jc = ({
1937
1937
  ]
1938
1938
  }
1939
1939
  );
1940
- }, De = () => z.Fragment, Bs = ({ children: e }) => /* @__PURE__ */ a.jsx(Ne, { variant: "secondary", children: e }), qs = ["span", "strong", "h1", "h2", "h3", "h4", "h5", "h6", "p"], lr = ({ children: e }) => {
1940
+ }, Se = () => z.Fragment, Ls = ({ children: e }) => /* @__PURE__ */ a.jsx(Oe, { variant: "secondary", children: e }), Ds = ["span", "strong", "h1", "h2", "h3", "h4", "h5", "h6", "p"], Is = ({ children: e }) => {
1941
1941
  const t = W();
1942
1942
  if (!e)
1943
1943
  return null;
@@ -1952,7 +1952,7 @@ const jc = ({
1952
1952
  for (const c of hn.toArray(i.props.children))
1953
1953
  if (!(!c || typeof c == "string" || typeof c == "number") && z.isValidElement(c)) {
1954
1954
  const o = c.type;
1955
- if (qs.includes(o)) {
1955
+ if (Ds.includes(o)) {
1956
1956
  for (n = c.props.children; typeof n != "string" && (Array.isArray(n) && n[0].props && n[0].props.children && n[0].props.children[0]); )
1957
1957
  n = n[0].props.children[0];
1958
1958
  break;
@@ -1963,31 +1963,31 @@ const jc = ({
1963
1963
  r.push(i);
1964
1964
  const s = n ? n.toString() : "";
1965
1965
  return /* @__PURE__ */ a.jsx(
1966
- Kr,
1966
+ Vr,
1967
1967
  {
1968
1968
  label: s,
1969
1969
  className: ["Sources", "Resources"].includes(s) ? "discrete-links" : "",
1970
1970
  children: r.map((i) => i)
1971
1971
  }
1972
1972
  );
1973
- }, dr = ({
1973
+ }, Bs = ({
1974
1974
  children: e,
1975
1975
  ...t
1976
1976
  }) => {
1977
1977
  if (t.class)
1978
1978
  switch (t.class) {
1979
1979
  case "casestudy":
1980
- return /* @__PURE__ */ a.jsx(Ne, { variant: "secondary", children: e });
1980
+ return /* @__PURE__ */ a.jsx(Oe, { variant: "secondary", children: e });
1981
1981
  case "general-textbox":
1982
1982
  case "highlight-box":
1983
- return /* @__PURE__ */ a.jsx(Ne, { variant: "primary", children: e });
1983
+ return /* @__PURE__ */ a.jsx(Oe, { variant: "primary", children: e });
1984
1984
  case "pink-textbox":
1985
- return /* @__PURE__ */ a.jsx(Ne, { variant: "tertiary", children: e });
1985
+ return /* @__PURE__ */ a.jsx(Oe, { variant: "tertiary", children: e });
1986
1986
  default:
1987
1987
  return /* @__PURE__ */ a.jsx("div", { ...t, children: e });
1988
1988
  }
1989
1989
  return /* @__PURE__ */ a.jsx("div", { ...t, children: e });
1990
- }, zs = (e) => {
1990
+ }, qs = (e) => {
1991
1991
  const t = W(), n = Date.now().toString();
1992
1992
  let r = "default";
1993
1993
  const s = e.src;
@@ -2006,10 +2006,10 @@ const jc = ({
2006
2006
  ),
2007
2007
  /* @__PURE__ */ a.jsx("span", { id: `content-after-iframe-${n}`, tabIndex: -1 })
2008
2008
  ] });
2009
- }, ur = (e) => {
2009
+ }, lr = (e) => {
2010
2010
  let t = "";
2011
2011
  return e && typeof e != "string" && typeof e != "number" && typeof e != "boolean" && "type" in e && (t = e.type), t;
2012
- }, fr = ({
2012
+ }, zs = ({
2013
2013
  children: e,
2014
2014
  ...t
2015
2015
  }) => {
@@ -2020,9 +2020,9 @@ const jc = ({
2020
2020
  if (!(!i || typeof i == "string" || typeof i == "number") && z.isValidElement(i)) {
2021
2021
  const c = i.type;
2022
2022
  if (["button", "center", "span", "strong"].includes(c) && i.props && i.props.children && i.props.children[0])
2023
- for ((c === "button" || ur(i.props.children[0]) === "button") && (s = !0), r = i.props.children[0]; r && typeof r != "string" && !(typeof r == "boolean" || typeof r == "number" || !z.isValidElement(r)); )
2023
+ for ((c === "button" || lr(i.props.children[0]) === "button") && (s = !0), r = i.props.children[0]; r && typeof r != "string" && !(typeof r == "boolean" || typeof r == "number" || !z.isValidElement(r)); )
2024
2024
  if (r.props && r.props.children && r.props.children[0])
2025
- r = r.props.children[0], r && ur(r) === "button" && (s = !0);
2025
+ r = r.props.children[0], r && lr(r) === "button" && (s = !0);
2026
2026
  else
2027
2027
  break;
2028
2028
  }
@@ -2030,31 +2030,30 @@ const jc = ({
2030
2030
  }, Zs = ({ children: e }) => /* @__PURE__ */ a.jsx("span", { children: e });
2031
2031
  const Us = {
2032
2032
  default: {
2033
- a: fr,
2033
+ a: zs,
2034
2034
  // Override psuedo-code
2035
2035
  // We give the content team psuedo-code short cuts to use in Contentful
2036
- CollapsibleSection: Kr,
2037
- TextBox: Ne,
2038
- CaseStudy: Bs,
2036
+ CollapsibleSection: Vr,
2037
+ TextBox: Oe,
2038
+ CaseStudy: Ls,
2039
2039
  // Override embedded HTML
2040
2040
  // Our content team previously used real HTML, which we need to tear out and replace with React components
2041
- style: De,
2042
- details: lr,
2043
- div: dr,
2044
- iframe: zs
2041
+ style: Se,
2042
+ details: Is,
2043
+ div: Bs,
2044
+ iframe: qs
2045
2045
  },
2046
2046
  "text-only": {
2047
- a: fr,
2048
- details: lr,
2049
- div: dr,
2050
- TextBox: Ne,
2051
- // Override embedded HTML with empty components for content that is not allowed in specific cases
2052
- style: De,
2053
- CollapsibleSection: De,
2054
- CaseStudy: De,
2055
- blockquote: De,
2056
- iframe: De,
2057
- button: De
2047
+ /** What is being changed or removed in the final mark-up. `default` handles large blocks of HTML for courses. `text-only` only expects text and will remove `iframe`s. */
2048
+ style: Se,
2049
+ details: Se,
2050
+ div: Se,
2051
+ TextBox: Se,
2052
+ CollapsibleSection: Se,
2053
+ CaseStudy: Se,
2054
+ blockquote: Se,
2055
+ iframe: Se,
2056
+ button: Se
2058
2057
  }
2059
2058
  }, bn = ({
2060
2059
  className: e = "",
@@ -2137,7 +2136,7 @@ const Ht = "loadingBlock_", Ys = ({ progress: e = 0, steps: t = !1, className: n
2137
2136
  "--icon": `url(${at}icons/${t[s].icon}.svg)`
2138
2137
  } : {};
2139
2138
  return /* @__PURE__ */ a.jsxs(
2140
- Ne,
2139
+ Oe,
2141
2140
  {
2142
2141
  className: E("loading-block", n, {
2143
2142
  "has-icon": s && t[s].icon
@@ -2176,11 +2175,11 @@ const xn = {
2176
2175
  "cards-section",
2177
2176
  "footer"
2178
2177
  ]
2179
- }, Jr = (e, t) => e in xn ? /* @__PURE__ */ a.jsx("div", { className: e, children: xn[e].map((n, r) => Jr(n, r)) }, t) : /* @__PURE__ */ a.jsx(Te, { className: e }, t), Xr = ({ layout: e = "overview-page", ...t }) => /* @__PURE__ */ a.jsx("div", { className: E("loading-state", e), ...t, children: xn[e].map((n, r) => Jr(n, r)) }), ea = (e) => {
2178
+ }, Gr = (e, t) => e in xn ? /* @__PURE__ */ a.jsx("div", { className: e, children: xn[e].map((n, r) => Gr(n, r)) }, t) : /* @__PURE__ */ a.jsx(Te, { className: e }, t), Kr = ({ layout: e = "overview-page", ...t }) => /* @__PURE__ */ a.jsx("div", { className: E("loading-state", e), ...t, children: xn[e].map((n, r) => Gr(n, r)) }), Qr = (e) => {
2180
2179
  const t = e && e.toUpperCase().split(" ");
2181
2180
  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) : "";
2182
2181
  }, ut = ["#5AB6A3", "#A2D7AF", "#806056", "#3962B3"], Gs = (e) => {
2183
- const t = Math.ceil(26 / ut.length), n = ea(e).toLowerCase();
2182
+ const t = Math.ceil(26 / ut.length), n = Qr(e).toLowerCase();
2184
2183
  if (n === "")
2185
2184
  return ut[0];
2186
2185
  const r = n.charCodeAt(0) - 96;
@@ -2188,13 +2187,13 @@ const xn = {
2188
2187
  if (r <= t * (s + 1))
2189
2188
  return ut[s];
2190
2189
  };
2191
- const mr = 256, lt = ({
2190
+ const dr = 256, lt = ({
2192
2191
  className: e = "",
2193
2192
  src: t = "",
2194
2193
  name: n,
2195
2194
  alt: r,
2196
- width: s = mr,
2197
- height: i = mr,
2195
+ width: s = dr,
2196
+ height: i = dr,
2198
2197
  ...c
2199
2198
  }) => {
2200
2199
  const [o, f] = J(!1), d = me(null);
@@ -2206,7 +2205,7 @@ const mr = 256, lt = ({
2206
2205
  if (!m)
2207
2206
  return;
2208
2207
  const h = s, g = i;
2209
- typeof window < "u" && window.devicePixelRatio && (l.width = h * window.devicePixelRatio, l.height = g * window.devicePixelRatio, m.scale(window.devicePixelRatio, window.devicePixelRatio)), m.fillStyle = Gs(n), m.fillRect(0, 0, h, g), m.font = `${h / 3}px Arial`, m.textAlign = "center", m.fillStyle = "white", m.fillText(ea(n), h / 2, g / 1.6);
2208
+ typeof window < "u" && window.devicePixelRatio && (l.width = h * window.devicePixelRatio, l.height = g * window.devicePixelRatio, m.scale(window.devicePixelRatio, window.devicePixelRatio)), m.fillStyle = Gs(n), m.fillRect(0, 0, h, g), m.font = `${h / 3}px Arial`, m.textAlign = "center", m.fillStyle = "white", m.fillText(Qr(n), h / 2, g / 1.6);
2210
2209
  }, [n]);
2211
2210
  let u = !1;
2212
2211
  return t && t !== "" && !o && (t.includes("http") || t.includes("//")) && (u = !0), /* @__PURE__ */ a.jsx(
@@ -2228,7 +2227,7 @@ const mr = 256, lt = ({
2228
2227
  ) : /* @__PURE__ */ a.jsx("canvas", { ref: d })
2229
2228
  }
2230
2229
  );
2231
- }, ta = (e) => e === "apolitical" ? {
2230
+ }, Jr = (e) => e === "apolitical" ? {
2232
2231
  image: `${at}logos/member_apolitical.svg`
2233
2232
  } : e === "community" || typeof e == "object" && !e.name ? {
2234
2233
  image: `${at}logos/member_community.svg`
@@ -2260,11 +2259,11 @@ const Fn = ({
2260
2259
  gtmType: s = "member-click",
2261
2260
  className: i = ""
2262
2261
  }) => {
2263
- const c = W(), o = ta(t);
2262
+ const c = W(), o = Jr(t);
2264
2263
  o.name || (o.name = c.formatMessage({
2265
2264
  id: `member_${typeof t == "string" ? t : "community"}`
2266
2265
  }));
2267
- const { name: f, url: d, image: u } = o, l = Ks(o), m = n && n.createdAt ? _n(n.createdAt) : !1, h = n && n.createdAt ? Vr(n.createdAt) : "";
2266
+ const { name: f, url: d, image: u } = o, l = Ks(o), m = n && n.createdAt ? _n(n.createdAt) : !1, h = n && n.createdAt ? Ur(n.createdAt) : "";
2268
2267
  return z.createElement(e, {
2269
2268
  className: E("member text-medium", i),
2270
2269
  children: /* @__PURE__ */ a.jsxs(
@@ -2294,10 +2293,10 @@ const Fn = ({
2294
2293
  )
2295
2294
  });
2296
2295
  };
2297
- const pr = {
2296
+ const ur = {
2298
2297
  small: 24,
2299
2298
  medium: 48
2300
- }, na = ({
2299
+ }, Xr = ({
2301
2300
  element: e = "div",
2302
2301
  contributors: { total: t, data: n } = { total: void 0, data: [] },
2303
2302
  styling: { showText: r, size: s, showGap: i, showPlaceholders: c } = {
@@ -2318,7 +2317,7 @@ const pr = {
2318
2317
  /* @__PURE__ */ a.jsx("ul", { children: n.map((l, m) => {
2319
2318
  let h, g = "";
2320
2319
  if (m < o) {
2321
- const { name: v = "", image: _ = "" } = ta(l);
2320
+ const { name: v = "", image: _ = "" } = Jr(l);
2322
2321
  if (c)
2323
2322
  return /* @__PURE__ */ a.jsx(Te, { element: "li", className: "contributor" }, m);
2324
2323
  h = /* @__PURE__ */ a.jsx(
@@ -2326,8 +2325,8 @@ const pr = {
2326
2325
  {
2327
2326
  name: v,
2328
2327
  src: _,
2329
- width: pr[s || "medium"],
2330
- height: pr[s || "medium"]
2328
+ width: ur[s || "medium"],
2329
+ height: ur[s || "medium"]
2331
2330
  }
2332
2331
  );
2333
2332
  } else if (m === o) {
@@ -2338,7 +2337,7 @@ const pr = {
2338
2337
  className: E({ "large-number": v > 99 }),
2339
2338
  children: [
2340
2339
  "+",
2341
- Ts(v, 0)
2340
+ ws(v, 0)
2342
2341
  ]
2343
2342
  }
2344
2343
  ), g = "number-left";
@@ -2380,7 +2379,7 @@ const pr = {
2380
2379
  ] });
2381
2380
  }
2382
2381
  if (u && !i || c)
2383
- return /* @__PURE__ */ a.jsx("p", { className: "details", children: c ? n.formatMessage({ id: "card_bootcamp" }) : Vr(u) });
2382
+ return /* @__PURE__ */ a.jsx("p", { className: "details", children: c ? n.formatMessage({ id: "card_bootcamp" }) : Ur(u) });
2384
2383
  if (o)
2385
2384
  return /* @__PURE__ */ a.jsx(
2386
2385
  kt,
@@ -2530,7 +2529,7 @@ const pr = {
2530
2529
  );
2531
2530
  }
2532
2531
  return null;
2533
- }, hr = {
2532
+ }, fr = {
2534
2533
  cube: "box",
2535
2534
  graduationCap: "graduation-cap",
2536
2535
  person: "user",
@@ -2538,14 +2537,14 @@ const pr = {
2538
2537
  star: "star_empty_thin"
2539
2538
  }, Xs = (e) => {
2540
2539
  let t = e;
2541
- return Object.keys(hr).includes(e) && (t = hr[e]), `url(${at}icons/${t}.svg)`;
2540
+ return Object.keys(fr).includes(e) && (t = fr[e]), `url(${at}icons/${t}.svg)`;
2542
2541
  };
2543
2542
  const ei = {
2544
2543
  title: 66,
2545
2544
  text: 3e3,
2546
2545
  secondaryText: 1e3,
2547
2546
  partner: 25
2548
- }, ra = ({
2547
+ }, ea = ({
2549
2548
  id: e = "",
2550
2549
  card: t,
2551
2550
  buildCardData: n,
@@ -2553,10 +2552,10 @@ const ei = {
2553
2552
  gtmContext: s = "Carousel",
2554
2553
  className: i = ""
2555
2554
  }) => {
2556
- const c = W(), o = Ce(Ae), f = o && typeof o.id == "string", [d, u] = J({
2555
+ const c = W(), o = $e(Ae), f = o && typeof o.id == "string", [d, u] = J({
2557
2556
  data: null,
2558
2557
  isLoading: !0
2559
- }), { data: l, isLoading: m } = d, h = Dr(() => {
2558
+ }), { data: l, isLoading: m } = d, h = Or(() => {
2560
2559
  n(t, f).then((V) => {
2561
2560
  u(() => ({ data: V, isLoading: !1 }));
2562
2561
  }).catch(() => u((V) => ({ ...V, isLoading: !1 })));
@@ -2580,7 +2579,7 @@ const ei = {
2580
2579
  className: _,
2581
2580
  length: b,
2582
2581
  gtmEvent: y
2583
- } = Tt[g], j = Yr(`card_label_${g}`) ? c.formatMessage({ id: `card_label_${g}` }) : !1, w = l.slug ? `${v}${l.slug}` : !1, x = { ...ei, ...b };
2582
+ } = Tt[g], j = Hr(`card_label_${g}`) ? c.formatMessage({ id: `card_label_${g}` }) : !1, w = l.slug ? `${v}${l.slug}` : !1, x = { ...ei, ...b };
2584
2583
  let R = { className: "card" };
2585
2584
  w && (R = {
2586
2585
  href: w,
@@ -2612,12 +2611,12 @@ const ei = {
2612
2611
  size: "small",
2613
2612
  variant: l.dateHasPassed ? "default" : "information",
2614
2613
  "data-testid": "date",
2615
- children: l.dateHasPassed ? c.formatMessage({ id: "card_ended" }) : vs(l.startDate)
2614
+ children: l.dateHasPassed ? c.formatMessage({ id: "card_ended" }) : hs(l.startDate)
2616
2615
  }
2617
2616
  ),
2618
2617
  l.banner ? /* @__PURE__ */ a.jsxs("p", { className: "img", children: [
2619
2618
  l.registered && /* @__PURE__ */ a.jsx(kt, { size: "small", variant: "registered", children: c.formatMessage({ id: "card_registered" }) }),
2620
- /* @__PURE__ */ a.jsx(Gr, { image: l.banner })
2619
+ /* @__PURE__ */ a.jsx(Wr, { image: l.banner })
2621
2620
  ] }) : _ === "people" ? /* @__PURE__ */ a.jsx(
2622
2621
  lt,
2623
2622
  {
@@ -2627,7 +2626,7 @@ const ei = {
2627
2626
  }
2628
2627
  ) : null,
2629
2628
  l.contributors && /* @__PURE__ */ a.jsx(
2630
- na,
2629
+ Xr,
2631
2630
  {
2632
2631
  contributors: { data: l.contributors },
2633
2632
  styling: {
@@ -2644,7 +2643,7 @@ const ei = {
2644
2643
  const N = l[V];
2645
2644
  if (!N)
2646
2645
  return null;
2647
- const O = _s(V);
2646
+ const O = ps(V);
2648
2647
  return /* @__PURE__ */ a.jsx("p", { className: O, "data-testid": O, children: He(N, x[V]) }, V);
2649
2648
  }),
2650
2649
  /* @__PURE__ */ a.jsx(Qs, { type: _ || "", data: l }),
@@ -2657,7 +2656,7 @@ const ei = {
2657
2656
  const ti = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__ */ a.jsx("ul", { className: E("card-block", n), children: e.map((s, i) => {
2658
2657
  const c = s.slug ? `${s.slug}-${t[i]}` : `${t[i]}-${i}`;
2659
2658
  return /* @__PURE__ */ a.jsx(
2660
- ra,
2659
+ ea,
2661
2660
  {
2662
2661
  id: c,
2663
2662
  card: { ...s, contentType: t[i] },
@@ -2755,7 +2754,7 @@ const ai = ({
2755
2754
  "--cards-per-page": u,
2756
2755
  "--page": g
2757
2756
  };
2758
- return l ? /* @__PURE__ */ a.jsx(Xr, { layout: `carousel${s ? "-with-title" : ""}` }) : /* @__PURE__ */ a.jsxs(
2757
+ return l ? /* @__PURE__ */ a.jsx(Kr, { layout: `carousel${s ? "-with-title" : ""}` }) : /* @__PURE__ */ a.jsxs(
2759
2758
  "section",
2760
2759
  {
2761
2760
  ref: y,
@@ -2774,7 +2773,7 @@ const ai = ({
2774
2773
  children: t.map((N, O) => {
2775
2774
  let P = N && N.sys && N.sys.id ? `${e}-card-${N.sys.id}` : null;
2776
2775
  return P && ni(O, u, g, v) ? /* @__PURE__ */ a.jsx(
2777
- ra,
2776
+ ea,
2778
2777
  {
2779
2778
  id: P,
2780
2779
  card: { ...N, contentType: n[O] },
@@ -2853,13 +2852,13 @@ const ai = ({
2853
2852
  const u = i ? window.btoa(i) : `carousel-${d}`, l = d === e.length - 1;
2854
2853
  return t ? /* @__PURE__ */ a.jsxs(nt, { children: [
2855
2854
  /* @__PURE__ */ a.jsx(
2856
- Xr,
2855
+ Kr,
2857
2856
  {
2858
2857
  layout: `carousel${i ? "-with-title" : ""}`,
2859
2858
  "data-testid": "carousel-placeholder"
2860
2859
  }
2861
2860
  ),
2862
- l ? null : /* @__PURE__ */ a.jsx(Oe, {})
2861
+ l ? null : /* @__PURE__ */ a.jsx(Fe, {})
2863
2862
  ] }, `placeholder-${u}`) : /* @__PURE__ */ a.jsxs(nt, { children: [
2864
2863
  /* @__PURE__ */ a.jsx(
2865
2864
  ai,
@@ -2870,18 +2869,18 @@ const ai = ({
2870
2869
  ...s
2871
2870
  }
2872
2871
  ),
2873
- l ? null : /* @__PURE__ */ a.jsx(Oe, {})
2872
+ l ? null : /* @__PURE__ */ a.jsx(Fe, {})
2874
2873
  ] }, `carousel-${u}`);
2875
2874
  }
2876
2875
  );
2877
- const Vt = "joinCommunityButton", aa = ({
2876
+ const Vt = "joinCommunityButton", ta = ({
2878
2877
  isMember: e = !1,
2879
2878
  isShort: t = !1,
2880
2879
  functions: { join: n, leave: r } = { join: () => {
2881
2880
  }, leave: () => {
2882
2881
  } }
2883
2882
  }) => {
2884
- const s = W(), i = Ce(Ae), c = i && typeof i.id == "string", [o, f] = J(e), [d, u] = J(e ? "joined" : "notJoined");
2883
+ const s = W(), i = $e(Ae), c = i && typeof i.id == "string", [o, f] = J(e), [d, u] = J(e ? "joined" : "notJoined");
2885
2884
  ie(() => {
2886
2885
  d === "joining" ? u("joined") : d === "leaving" && u("notJoined");
2887
2886
  }, [o]);
@@ -2916,7 +2915,7 @@ const Yt = "communityDetails_", Ec = ({
2916
2915
  }) => {
2917
2916
  const o = W(), f = 5, d = r || s.length, u = s.length ? s : Array(f).fill({}), l = `/communities/${n}/members` === window.location.pathname;
2918
2917
  return /* @__PURE__ */ a.jsxs("div", { className: E("community-details", e), children: [
2919
- /* @__PURE__ */ a.jsx(Oe, {}),
2918
+ /* @__PURE__ */ a.jsx(Fe, {}),
2920
2919
  /* @__PURE__ */ a.jsxs("div", { className: "member-details", children: [
2921
2920
  /* @__PURE__ */ a.jsxs("div", { className: "top", children: [
2922
2921
  /* @__PURE__ */ a.jsxs("h4", { children: [
@@ -2926,7 +2925,7 @@ const Yt = "communityDetails_", Ec = ({
2926
2925
  !l && /* @__PURE__ */ a.jsx("p", { className: "text-small", children: /* @__PURE__ */ a.jsx("a", { href: `/communities/${n}/members`, children: o.formatMessage({ id: `${Yt}viewAll` }) }) })
2927
2926
  ] }),
2928
2927
  /* @__PURE__ */ a.jsx(
2929
- na,
2928
+ Xr,
2930
2929
  {
2931
2930
  contributors: {
2932
2931
  total: r,
@@ -2941,7 +2940,7 @@ const Yt = "communityDetails_", Ec = ({
2941
2940
  }
2942
2941
  )
2943
2942
  ] }),
2944
- /* @__PURE__ */ a.jsx(aa, { isMember: t, functions: { ...c } }),
2943
+ /* @__PURE__ */ a.jsx(ta, { isMember: t, functions: { ...c } }),
2945
2944
  t && /* @__PURE__ */ a.jsx(
2946
2945
  se,
2947
2946
  {
@@ -3087,7 +3086,7 @@ const Gt = {
3087
3086
  })
3088
3087
  ] });
3089
3088
  };
3090
- const Kt = Ja({ locale: "en", messages: An }), At = ({
3089
+ const Kt = Ga({ locale: "en", messages: An }), At = ({
3091
3090
  hasNextPage: e = !0,
3092
3091
  loadNextPage: t = () => {
3093
3092
  },
@@ -3126,7 +3125,7 @@ const Kt = Ja({ locale: "en", messages: An }), At = ({
3126
3125
  }
3127
3126
  ) : c.endOfFeed && (!d || d != null && d.includes("Cannot read items")) ? /* @__PURE__ */ a.jsx("p", { children: c.endOfFeed }) : d && /* @__PURE__ */ a.jsx("p", { className: "error", children: c.error }) });
3128
3127
  };
3129
- const sa = ({
3128
+ const na = ({
3130
3129
  variant: e = "default",
3131
3130
  version: t = "default",
3132
3131
  className: n = "",
@@ -3218,7 +3217,7 @@ const ci = [
3218
3217
  href: "/solution-articles/"
3219
3218
  }
3220
3219
  ], li = ({ activeLink: e }) => {
3221
- const t = W(), n = Ce(Ae), r = n && typeof n.id == "string";
3220
+ const t = W(), n = $e(Ae), r = n && typeof n.id == "string";
3222
3221
  return /* @__PURE__ */ a.jsxs("ul", { id: "navigation-menu", className: "text-medium", children: [
3223
3222
  ci.map(({ key: s, href: i }) => /* @__PURE__ */ a.jsx(
3224
3223
  "li",
@@ -3415,7 +3414,7 @@ const ht = "emailHelperTextBox_", pi = ({
3415
3414
  link: {},
3416
3415
  mail: {},
3417
3416
  error: ""
3418
- }), [o, f] = J(!1), d = Dr(
3417
+ }), [o, f] = J(!1), d = Or(
3419
3418
  (h) => {
3420
3419
  h.preventDefault(), h.stopPropagation();
3421
3420
  const g = (v) => {
@@ -3515,7 +3514,7 @@ const ht = "emailHelperTextBox_", pi = ({
3515
3514
  return ["link", "mail"].forEach((h) => {
3516
3515
  u[h] = Object.keys(i[h]).length ? (g) => /* @__PURE__ */ a.jsx("a", { ...i[h], children: g }) : (g) => g;
3517
3516
  }), /* @__PURE__ */ a.jsx(
3518
- Is,
3517
+ Fs,
3519
3518
  {
3520
3519
  type: i.type,
3521
3520
  heading: o ? !1 : s.formatMessage({ id: `${i.path}_title` }),
@@ -3574,7 +3573,7 @@ const ht = "emailHelperTextBox_", pi = ({
3574
3573
  }
3575
3574
  });
3576
3575
  };
3577
- const ia = ({
3576
+ const ra = ({
3578
3577
  className: e = "",
3579
3578
  disabled: t,
3580
3579
  element: n = "p",
@@ -3750,7 +3749,7 @@ const _i = ({
3750
3749
  t.onChange(x);
3751
3750
  };
3752
3751
  return /* @__PURE__ */ a.jsx(
3753
- ia,
3752
+ ra,
3754
3753
  {
3755
3754
  element: "li",
3756
3755
  id: j,
@@ -3810,7 +3809,7 @@ const Ze = {
3810
3809
  text: { component: et },
3811
3810
  email: { component: et },
3812
3811
  textarea: { component: et, props: { element: "textarea", rows: 4, cols: 10 } },
3813
- checkbox: { component: ia },
3812
+ checkbox: { component: ra },
3814
3813
  checkboxes: { component: _i, props: { multiSelect: !0 } },
3815
3814
  select: { component: gi },
3816
3815
  password: { component: vi }
@@ -4004,7 +4003,7 @@ const Ze = {
4004
4003
  }
4005
4004
  };
4006
4005
  let Qt = null;
4007
- const oa = ({
4006
+ const aa = ({
4008
4007
  fields: e,
4009
4008
  className: t = "",
4010
4009
  id: n = e.length ? `form__${e[0].id}` : "form",
@@ -4162,10 +4161,10 @@ const oa = ({
4162
4161
  )
4163
4162
  ] });
4164
4163
  };
4165
- const gt = "passwordRules_", ca = "isMoreThanEightCharacters", la = "includesNumberAndSymbol", da = "includesLowerAndUppercase", xi = {
4166
- [ca]: "8Characters",
4167
- [la]: "numberSymbol",
4168
- [da]: "lowercaseUppercase"
4164
+ const gt = "passwordRules_", sa = "isMoreThanEightCharacters", ia = "includesNumberAndSymbol", oa = "includesLowerAndUppercase", xi = {
4165
+ [sa]: "8Characters",
4166
+ [ia]: "numberSymbol",
4167
+ [oa]: "lowercaseUppercase"
4169
4168
  }, wi = ({
4170
4169
  matchingRules: e = {
4171
4170
  isMoreThanEightCharacters: !1,
@@ -4177,7 +4176,7 @@ const gt = "passwordRules_", ca = "isMoreThanEightCharacters", la = "includesNum
4177
4176
  const n = W();
4178
4177
  return /* @__PURE__ */ a.jsxs("aside", { className: E("password-rules", t), children: [
4179
4178
  /* @__PURE__ */ a.jsx("small", { children: n.formatMessage({ id: `${gt}intro` }) }),
4180
- /* @__PURE__ */ a.jsx("ul", { children: [ca, la, da].map(
4179
+ /* @__PURE__ */ a.jsx("ul", { children: [sa, ia, oa].map(
4181
4180
  (r) => /* @__PURE__ */ a.jsxs(
4182
4181
  "li",
4183
4182
  {
@@ -4291,7 +4290,7 @@ const Nc = ({
4291
4290
  }) => {
4292
4291
  const { context: r = "FooterContactUsForm", event: s = "contact-form-submit-click" } = e || {};
4293
4292
  return /* @__PURE__ */ a.jsx(
4294
- oa,
4293
+ aa,
4295
4294
  {
4296
4295
  id: "contact-us-form",
4297
4296
  fields: [
@@ -4373,7 +4372,7 @@ const ki = ({
4373
4372
  " ",
4374
4373
  _({ id: "inviteForm_error" })
4375
4374
  ] }) }),
4376
- /* @__PURE__ */ a.jsx(Oe, {}),
4375
+ /* @__PURE__ */ a.jsx(Fe, {}),
4377
4376
  /* @__PURE__ */ a.jsx("div", { className: "footer", children: g === "SUCCESS" ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
4378
4377
  /* @__PURE__ */ a.jsx(se, { variant: "secondary", onClick: y, children: _({ id: "inviteForm_ctaSendMoreInvites" }) }),
4379
4378
  /* @__PURE__ */ a.jsx(se, { onClick: j, children: _({ id: "inviteForm_ctaDone" }) })
@@ -4389,7 +4388,7 @@ const ki = ({
4389
4388
  /* @__PURE__ */ a.jsx("h2", { className: "title", style: { color: r }, children: e }),
4390
4389
  /* @__PURE__ */ a.jsx("label", { htmlFor: "email-input", className: "label", style: { color: s }, children: t }),
4391
4390
  /* @__PURE__ */ a.jsx(
4392
- as,
4391
+ ts,
4393
4392
  {
4394
4393
  id: "email-input",
4395
4394
  inputClassName: "email-input input",
@@ -4418,7 +4417,7 @@ const ki = ({
4418
4417
  }
4419
4418
  )
4420
4419
  ] }),
4421
- /* @__PURE__ */ a.jsx(Oe, {}),
4420
+ /* @__PURE__ */ a.jsx(Fe, {}),
4422
4421
  /* @__PURE__ */ a.jsx("fieldset", { className: "footer", children: /* @__PURE__ */ a.jsx(se, { className: "sendEmailsButton", disabled: m, children: n }) })
4423
4422
  ]
4424
4423
  }
@@ -4491,7 +4490,7 @@ const Ti = ({
4491
4490
  )
4492
4491
  }
4493
4492
  );
4494
- }, gr = async ({ ref: e, validateEmail: t, dispatch: n }) => {
4493
+ }, mr = async ({ ref: e, validateEmail: t, dispatch: n }) => {
4495
4494
  const r = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
4496
4495
  if (!e.current.validity.valid || !r.test(e.current.value))
4497
4496
  return n([{ type: "validFields.email", value: !1 }]);
@@ -4552,7 +4551,7 @@ const Ti = ({
4552
4551
  page: window.location.pathname,
4553
4552
  "g-recaptcha-response": t["g-recaptcha-response"]
4554
4553
  };
4555
- }, ua = async ({
4554
+ }, ca = async ({
4556
4555
  refs: e,
4557
4556
  dataToSubmit: t,
4558
4557
  createAccount: n,
@@ -4582,11 +4581,11 @@ var wn = { exports: {} }, jn = { exports: {} }, oe = {};
4582
4581
  * This source code is licensed under the MIT license found in the
4583
4582
  * LICENSE file in the root directory of this source tree.
4584
4583
  */
4585
- var _r;
4584
+ var pr;
4586
4585
  function Si() {
4587
- if (_r)
4586
+ if (pr)
4588
4587
  return oe;
4589
- _r = 1;
4588
+ pr = 1;
4590
4589
  var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, s = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, l = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, _ = e ? Symbol.for("react.fundamental") : 60117, b = e ? Symbol.for("react.responder") : 60118, y = e ? Symbol.for("react.scope") : 60119;
4591
4590
  function j(x) {
4592
4591
  if (typeof x == "object" && x !== null) {
@@ -4658,9 +4657,9 @@ var ce = {};
4658
4657
  * This source code is licensed under the MIT license found in the
4659
4658
  * LICENSE file in the root directory of this source tree.
4660
4659
  */
4661
- var vr;
4660
+ var hr;
4662
4661
  function Ci() {
4663
- return vr || (vr = 1, process.env.NODE_ENV !== "production" && function() {
4662
+ return hr || (hr = 1, process.env.NODE_ENV !== "production" && function() {
4664
4663
  var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, s = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, l = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, _ = e ? Symbol.for("react.fundamental") : 60117, b = e ? Symbol.for("react.responder") : 60118, y = e ? Symbol.for("react.scope") : 60119;
4665
4664
  function j($) {
4666
4665
  return typeof $ == "string" || typeof $ == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
@@ -4671,17 +4670,17 @@ function Ci() {
4671
4670
  var ge = $.$$typeof;
4672
4671
  switch (ge) {
4673
4672
  case t:
4674
- var $e = $.type;
4675
- switch ($e) {
4673
+ var Pe = $.type;
4674
+ switch (Pe) {
4676
4675
  case f:
4677
4676
  case d:
4678
4677
  case r:
4679
4678
  case i:
4680
4679
  case s:
4681
4680
  case l:
4682
- return $e;
4681
+ return Pe;
4683
4682
  default:
4684
- var Ee = $e && $e.$$typeof;
4683
+ var Ee = Pe && Pe.$$typeof;
4685
4684
  switch (Ee) {
4686
4685
  case o:
4687
4686
  case u:
@@ -4748,11 +4747,11 @@ object-assign
4748
4747
  (c) Sindre Sorhus
4749
4748
  @license MIT
4750
4749
  */
4751
- var Jt, br;
4750
+ var Jt, gr;
4752
4751
  function $i() {
4753
- if (br)
4752
+ if (gr)
4754
4753
  return Jt;
4755
- br = 1;
4754
+ gr = 1;
4756
4755
  var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
4757
4756
  function r(i) {
4758
4757
  if (i == null)
@@ -4795,27 +4794,27 @@ function $i() {
4795
4794
  return f;
4796
4795
  }, Jt;
4797
4796
  }
4798
- var Xt, yr;
4797
+ var Xt, _r;
4799
4798
  function Dn() {
4800
- if (yr)
4799
+ if (_r)
4801
4800
  return Xt;
4802
- yr = 1;
4801
+ _r = 1;
4803
4802
  var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
4804
4803
  return Xt = e, Xt;
4805
4804
  }
4806
- var en, xr;
4807
- function fa() {
4808
- return xr || (xr = 1, en = Function.call.bind(Object.prototype.hasOwnProperty)), en;
4805
+ var en, vr;
4806
+ function la() {
4807
+ return vr || (vr = 1, en = Function.call.bind(Object.prototype.hasOwnProperty)), en;
4809
4808
  }
4810
- var tn, wr;
4809
+ var tn, br;
4811
4810
  function Pi() {
4812
- if (wr)
4811
+ if (br)
4813
4812
  return tn;
4814
- wr = 1;
4813
+ br = 1;
4815
4814
  var e = function() {
4816
4815
  };
4817
4816
  if (process.env.NODE_ENV !== "production") {
4818
- var t = Dn(), n = {}, r = fa();
4817
+ var t = Dn(), n = {}, r = la();
4819
4818
  e = function(i) {
4820
4819
  var c = "Warning: " + i;
4821
4820
  typeof console < "u" && console.error(c);
@@ -4857,12 +4856,12 @@ function Pi() {
4857
4856
  process.env.NODE_ENV !== "production" && (n = {});
4858
4857
  }, tn = s, tn;
4859
4858
  }
4860
- var nn, jr;
4859
+ var nn, yr;
4861
4860
  function Mi() {
4862
- if (jr)
4861
+ if (yr)
4863
4862
  return nn;
4864
- jr = 1;
4865
- var e = Ln, t = $i(), n = Dn(), r = fa(), s = Pi(), i = function() {
4863
+ yr = 1;
4864
+ var e = Ln, t = $i(), n = Dn(), r = la(), s = Pi(), i = function() {
4866
4865
  };
4867
4866
  process.env.NODE_ENV !== "production" && (i = function(o) {
4868
4867
  var f = "Warning: " + o;
@@ -5179,11 +5178,11 @@ Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
5179
5178
  return h.checkPropTypes = s, h.resetWarningCache = s.resetWarningCache, h.PropTypes = h, h;
5180
5179
  }, nn;
5181
5180
  }
5182
- var rn, kr;
5181
+ var rn, xr;
5183
5182
  function Ri() {
5184
- if (kr)
5183
+ if (xr)
5185
5184
  return rn;
5186
- kr = 1;
5185
+ xr = 1;
5187
5186
  var e = Dn();
5188
5187
  function t() {
5189
5188
  }
@@ -5389,7 +5388,7 @@ var In = Ln, Ii = {
5389
5388
  defaultProps: !0,
5390
5389
  displayName: !0,
5391
5390
  propTypes: !0
5392
- }, ma = {
5391
+ }, da = {
5393
5392
  $$typeof: !0,
5394
5393
  compare: !0,
5395
5394
  defaultProps: !0,
@@ -5398,20 +5397,20 @@ var In = Ln, Ii = {
5398
5397
  type: !0
5399
5398
  }, Bn = {};
5400
5399
  Bn[In.ForwardRef] = qi;
5401
- Bn[In.Memo] = ma;
5402
- function Tr(e) {
5403
- return In.isMemo(e) ? ma : Bn[e.$$typeof] || Ii;
5400
+ Bn[In.Memo] = da;
5401
+ function wr(e) {
5402
+ return In.isMemo(e) ? da : Bn[e.$$typeof] || Ii;
5404
5403
  }
5405
- var zi = Object.defineProperty, Zi = Object.getOwnPropertyNames, Er = Object.getOwnPropertySymbols, Ui = Object.getOwnPropertyDescriptor, Hi = Object.getPrototypeOf, Sr = Object.prototype;
5406
- function pa(e, t, n) {
5404
+ var zi = Object.defineProperty, Zi = Object.getOwnPropertyNames, jr = Object.getOwnPropertySymbols, Ui = Object.getOwnPropertyDescriptor, Hi = Object.getPrototypeOf, kr = Object.prototype;
5405
+ function ua(e, t, n) {
5407
5406
  if (typeof t != "string") {
5408
- if (Sr) {
5407
+ if (kr) {
5409
5408
  var r = Hi(t);
5410
- r && r !== Sr && pa(e, r, n);
5409
+ r && r !== kr && ua(e, r, n);
5411
5410
  }
5412
5411
  var s = Zi(t);
5413
- Er && (s = s.concat(Er(t)));
5414
- for (var i = Tr(e), c = Tr(t), o = 0; o < s.length; ++o) {
5412
+ jr && (s = s.concat(jr(t)));
5413
+ for (var i = wr(e), c = wr(t), o = 0; o < s.length; ++o) {
5415
5414
  var f = s[o];
5416
5415
  if (!Bi[f] && !(n && n[f]) && !(c && c[f]) && !(i && i[f])) {
5417
5416
  var d = Ui(t, f);
@@ -5424,7 +5423,7 @@ function pa(e, t, n) {
5424
5423
  }
5425
5424
  return e;
5426
5425
  }
5427
- var Wi = pa;
5426
+ var Wi = ua;
5428
5427
  const Vi = /* @__PURE__ */ Rn(Wi);
5429
5428
  function En() {
5430
5429
  return En = Object.assign || function(e) {
@@ -5534,7 +5533,7 @@ function Qi(e, t) {
5534
5533
  var h = m.forwardedRef, g = Yi(m, ["asyncScriptOnLoad", "forwardedRef"]);
5535
5534
  return l && typeof window < "u" && (g[l] = typeof window[l] < "u" ? window[l] : void 0), g.ref = h, sr(r, g);
5536
5535
  }, f;
5537
- }(Ya), c = Va(function(o, f) {
5536
+ }(Ha), c = Ua(function(o, f) {
5538
5537
  return sr(i, En({}, o, {
5539
5538
  forwardedRef: f
5540
5539
  }));
@@ -5599,7 +5598,7 @@ const eo = Qi(Xi, {
5599
5598
  }),
5600
5599
  functions: {
5601
5600
  onBlur: () => {
5602
- gr({ ref: c.email, validateEmail: t, dispatch: f });
5601
+ mr({ ref: c.email, validateEmail: t, dispatch: f });
5603
5602
  },
5604
5603
  onChange: (v, _) => {
5605
5604
  _ && _({
@@ -5713,7 +5712,7 @@ const eo = Qi(Xi, {
5713
5712
  o.validFields[b] !== c[b].current.validity.valid && (_.push({
5714
5713
  type: `validFields.${b}`,
5715
5714
  value: c[b].current.validity.valid
5716
- }), b === "email" && gr({ ref: c.email, validateEmail: t, dispatch: f }));
5715
+ }), b === "email" && mr({ ref: c.email, validateEmail: t, dispatch: f }));
5717
5716
  }), _.length && f(_);
5718
5717
  }
5719
5718
  },
@@ -5726,7 +5725,7 @@ const eo = Qi(Xi, {
5726
5725
  props: {
5727
5726
  ref: c.recaptcha,
5728
5727
  onChange: () => {
5729
- ua({
5728
+ ca({
5730
5729
  refs: c,
5731
5730
  dataToSubmit: d,
5732
5731
  createAccount: n,
@@ -5793,13 +5792,13 @@ const ro = {
5793
5792
  dataToSubmit: s = { ref: "sign-up-form" },
5794
5793
  ...i
5795
5794
  }) => {
5796
- const c = W(), [o, f] = Pn(Ur, ro), {
5795
+ const c = W(), [o, f] = Pn(qr, ro), {
5797
5796
  validFields: d,
5798
5797
  emailDetails: u,
5799
5798
  shouldManuallyApprove: l,
5800
5799
  showSuccessMessage: m,
5801
5800
  showError: h
5802
- } = o, [g, v] = Br([
5801
+ } = o, [g, v] = Lr([
5803
5802
  "signup-this-session",
5804
5803
  "functional-cookie-consent"
5805
5804
  ]), _ = {
@@ -5849,7 +5848,7 @@ const ro = {
5849
5848
  }
5850
5849
  ),
5851
5850
  /* @__PURE__ */ a.jsx(
5852
- oa,
5851
+ aa,
5853
5852
  {
5854
5853
  className: "signup-form",
5855
5854
  formRef: _.form,
@@ -5874,7 +5873,7 @@ const ro = {
5874
5873
  },
5875
5874
  functions: {
5876
5875
  onSuccess: () => {
5877
- ua({
5876
+ ca({
5878
5877
  refs: _,
5879
5878
  dataToSubmit: s,
5880
5879
  createAccount: t.createAccount,
@@ -5957,7 +5956,7 @@ const on = "cookieBanner_", cn = [
5957
5956
  "apolitical-performance-cookie-consent",
5958
5957
  "functional-cookie-consent"
5959
5958
  ], ln = new Date(Date.now() + 12 * 30 * 24 * 60 * 60 * 1e3), ao = () => {
5960
- const e = W(), [t, n, r] = Br(cn), [s, i] = J(
5959
+ const e = W(), [t, n, r] = Lr(cn), [s, i] = J(
5961
5960
  !t["apol-cookie-banner"]
5962
5961
  ), c = () => {
5963
5962
  cn.forEach((u) => {
@@ -6004,7 +6003,7 @@ const on = "cookieBanner_", cn = [
6004
6003
  /* @__PURE__ */ a.jsx("p", { children: e.formatMessage({ id: `${on}text` }) }),
6005
6004
  /* @__PURE__ */ a.jsx(Nt, { buttons: d })
6006
6005
  ] });
6007
- }, Re = {
6006
+ }, Ne = {
6008
6007
  platform: {
6009
6008
  order: ["events", "courses", "articles"],
6010
6009
  // An array guarantees the right order
@@ -6097,15 +6096,15 @@ const on = "cookieBanner_", cn = [
6097
6096
  facebook: { href: "https://www.facebook.com/apoliticalco" }
6098
6097
  }
6099
6098
  };
6100
- const Ue = "footer_", Et = "SiteFooter", Cr = ({ group: e }) => {
6101
- const t = Re[e].order || [];
6099
+ const Ue = "footer_", Et = "SiteFooter", Tr = ({ group: e }) => {
6100
+ const t = Ne[e].order || [];
6102
6101
  let n = !1;
6103
- return "text" in Re[e] && (n = Re[e].text), /* @__PURE__ */ a.jsxs(nt, { children: [
6102
+ return "text" in Ne[e] && (n = Ne[e].text), /* @__PURE__ */ a.jsxs(nt, { children: [
6104
6103
  /* @__PURE__ */ a.jsx("p", { className: "pre-title", children: /* @__PURE__ */ a.jsx(xe, { id: `${Ue}${e}` }) }),
6105
6104
  Array.isArray(t) && t.length > 0 && /* @__PURE__ */ a.jsx("ul", { className: "text-medium", children: t.map((r) => {
6106
6105
  if (["order", "child", "text"].includes(r))
6107
6106
  return null;
6108
- const { href: s, gtmType: i } = Re[e][r], c = {};
6107
+ const { href: s, gtmType: i } = Ne[e][r], c = {};
6109
6108
  return ["legal"].includes(e) && (c.target = "_blank", c.rel = "noopener"), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
6110
6109
  "a",
6111
6110
  {
@@ -6141,10 +6140,10 @@ const Ue = "footer_", Et = "SiteFooter", Cr = ({ group: e }) => {
6141
6140
  ] })
6142
6141
  ] }, `dl-${e}-${r}`)) })
6143
6142
  ] }, e);
6144
- }, ha = () => /* @__PURE__ */ a.jsx("div", { id: "footer", children: /* @__PURE__ */ a.jsxs("div", { className: "wrapper", children: [
6143
+ }, fa = () => /* @__PURE__ */ a.jsx("div", { id: "footer", children: /* @__PURE__ */ a.jsxs("div", { className: "wrapper", children: [
6145
6144
  /* @__PURE__ */ a.jsx(Nn, { element: "hr" }),
6146
6145
  /* @__PURE__ */ a.jsx(
6147
- sa,
6146
+ na,
6148
6147
  {
6149
6148
  variant: "inverted",
6150
6149
  version: "full",
@@ -6154,13 +6153,13 @@ const Ue = "footer_", Et = "SiteFooter", Cr = ({ group: e }) => {
6154
6153
  }
6155
6154
  ),
6156
6155
  /* @__PURE__ */ a.jsx("footer", { children: ["platform", "community", "company", "contact"].map((e) => /* @__PURE__ */ a.jsxs("div", { className: "group", children: [
6157
- /* @__PURE__ */ a.jsx(Cr, { group: e }),
6158
- Object.keys(Re[e]).includes("child") && /* @__PURE__ */ a.jsx(Cr, { group: Re[e].child })
6156
+ /* @__PURE__ */ a.jsx(Tr, { group: e }),
6157
+ Object.keys(Ne[e]).includes("child") && /* @__PURE__ */ a.jsx(Tr, { group: Ne[e].child })
6159
6158
  ] }, e)) }),
6160
6159
  /* @__PURE__ */ a.jsx("hr", {}),
6161
6160
  /* @__PURE__ */ a.jsxs("div", { className: "sub-footer", children: [
6162
- /* @__PURE__ */ a.jsx("ul", { children: Array.isArray(Re.social.order) && Re.social.order.map((e) => {
6163
- const t = Re.social[e];
6161
+ /* @__PURE__ */ a.jsx("ul", { children: Array.isArray(Ne.social.order) && Ne.social.order.map((e) => {
6162
+ const t = Ne.social[e];
6164
6163
  return /* @__PURE__ */ a.jsx("li", { className: e, children: /* @__PURE__ */ a.jsx(
6165
6164
  "a",
6166
6165
  {
@@ -6228,7 +6227,7 @@ const Ue = "footer_", Et = "SiteFooter", Cr = ({ group: e }) => {
6228
6227
  return e[r];
6229
6228
  if (!t.includes("."))
6230
6229
  continue;
6231
- const s = qr(e[r], t);
6230
+ const s = Dr(e[r], t);
6232
6231
  if (!(typeof s > "u") && (!n || s[t] && s[t].includes(n) || s.value && s.value.includes(n) || s.toString().includes(n)))
6233
6232
  return e[r];
6234
6233
  }
@@ -6370,7 +6369,7 @@ const Ue = "footer_", Et = "SiteFooter", Cr = ({ group: e }) => {
6370
6369
  },
6371
6370
  doTrack: i = null
6372
6371
  }) => {
6373
- const c = W(), o = qr(St, e);
6372
+ const c = W(), o = Dr(St, e);
6374
6373
  if (!o || o.onlyShow && (o.onlyShow === "logged-in" && !t || o.onlyShow === "logged-out" && t))
6375
6374
  return null;
6376
6375
  const f = "doTrack" in o, d = i === null ? f ? o.doTrack : !0 : i, u = e.includes("buttons.");
@@ -6483,11 +6482,11 @@ const Ue = "footer_", Et = "SiteFooter", Cr = ({ group: e }) => {
6483
6482
  e
6484
6483
  );
6485
6484
  };
6486
- const so = { height: 67, height_desktop: 83 }, ga = ({ showNavigation: e = !0 }) => {
6487
- const t = W(), n = Ce(Ae), r = it(!0, !0), s = n && typeof n.id == "string", i = st(
6485
+ const so = { height: 67, height_desktop: 83 }, ma = ({ showNavigation: e = !0 }) => {
6486
+ const t = W(), n = $e(Ae), r = it(!0, !0), s = n && typeof n.id == "string", i = st(
6488
6487
  () => de.getIsDesktopVersion(s, r),
6489
6488
  [s, r]
6490
- ), [c, o] = Pn(Ur, {
6489
+ ), [c, o] = Pn(qr, {
6491
6490
  headerIsVisible: !0,
6492
6491
  menus: { navigation: !1, search: !1, account: !1 },
6493
6492
  focusElements: {
@@ -6495,7 +6494,7 @@ const so = { height: 67, height_desktop: 83 }, ga = ({ showNavigation: e = !0 })
6495
6494
  account: { desktop: !1, default: !1 }
6496
6495
  }
6497
6496
  }), { headerIsVisible: f, menus: d, focusElements: u } = c;
6498
- hs({
6497
+ fs({
6499
6498
  scrollPosition: so[`height${i.navigation ? "_desktop" : ""}`],
6500
6499
  callbacks: {
6501
6500
  scrollUp: () => {
@@ -6544,7 +6543,7 @@ const so = { height: 67, height_desktop: 83 }, ga = ({ showNavigation: e = !0 })
6544
6543
  children: t.formatMessage({ id: "header_skip" })
6545
6544
  }
6546
6545
  ),
6547
- /* @__PURE__ */ a.jsx(sa, {}),
6546
+ /* @__PURE__ */ a.jsx(na, {}),
6548
6547
  e && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
6549
6548
  !i.navigation && /* @__PURE__ */ a.jsx(
6550
6549
  "button",
@@ -6659,12 +6658,12 @@ const so = { height: 67, height_desktop: 83 }, ga = ({ showNavigation: e = !0 })
6659
6658
  )
6660
6659
  ] });
6661
6660
  };
6662
- const _a = ({ element: e = "section", children: t, className: n, ...r }) => z.createElement(e, {
6661
+ const pa = ({ element: e = "section", children: t, className: n, ...r }) => z.createElement(e, {
6663
6662
  className: E("modal", n),
6664
6663
  children: typeof t == "string" ? /* @__PURE__ */ a.jsx("p", { children: t }) : t,
6665
6664
  ...r
6666
6665
  });
6667
- const va = ({
6666
+ const ha = ({
6668
6667
  id: e = "content-overlay",
6669
6668
  isOpen: t = !1,
6670
6669
  showDivider: n = !0,
@@ -6687,7 +6686,7 @@ const va = ({
6687
6686
  }, [t]);
6688
6687
  const _ = r ? { "--max-width": `${r / 16}rem` } : {};
6689
6688
  return /* @__PURE__ */ a.jsx("div", { className: E("overlay", { open: h }), children: /* @__PURE__ */ a.jsx(
6690
- _a,
6689
+ pa,
6691
6690
  {
6692
6691
  id: e,
6693
6692
  className: E("overlay-modal", u, { "has-max-width": r }),
@@ -6710,10 +6709,10 @@ const va = ({
6710
6709
  }
6711
6710
  )
6712
6711
  ] }),
6713
- n && /* @__PURE__ */ a.jsx(Oe, {}),
6712
+ n && /* @__PURE__ */ a.jsx(Fe, {}),
6714
6713
  f,
6715
6714
  d && /* @__PURE__ */ a.jsxs("div", { className: "bottom", children: [
6716
- /* @__PURE__ */ a.jsx(Oe, {}),
6715
+ /* @__PURE__ */ a.jsx(Fe, {}),
6717
6716
  /* @__PURE__ */ a.jsx(Nt, { buttons: d })
6718
6717
  ] }),
6719
6718
  c && /* @__PURE__ */ a.jsx(yn, { className: "error", children: c })
@@ -6738,7 +6737,7 @@ const Lc = ({
6738
6737
  },
6739
6738
  sendInvites: d
6740
6739
  }) => /* @__PURE__ */ a.jsx(
6741
- va,
6740
+ ha,
6742
6741
  {
6743
6742
  title: n,
6744
6743
  isOpen: t,
@@ -6762,7 +6761,7 @@ const Lc = ({
6762
6761
  const oo = () => {
6763
6762
  const e = W();
6764
6763
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
6765
- /* @__PURE__ */ a.jsx(ga, {}),
6764
+ /* @__PURE__ */ a.jsx(ma, {}),
6766
6765
  /* @__PURE__ */ a.jsx("div", { id: "content", children: /* @__PURE__ */ a.jsx(
6767
6766
  Ve,
6768
6767
  {
@@ -6770,7 +6769,7 @@ const oo = () => {
6770
6769
  text: e.formatMessage({ id: "pageLayout_error" })
6771
6770
  }
6772
6771
  ) }),
6773
- /* @__PURE__ */ a.jsx(ha, {})
6772
+ /* @__PURE__ */ a.jsx(fa, {})
6774
6773
  ] });
6775
6774
  }, co = ({
6776
6775
  children: e,
@@ -6781,7 +6780,7 @@ const oo = () => {
6781
6780
  className: c = "",
6782
6781
  locale: o = "en"
6783
6782
  }) => {
6784
- const { navigation: f = !0, footer: d = !0 } = s, { background: u = "default", variant: l = "default", circle: m = "default" } = i, h = ms();
6783
+ const { navigation: f = !0, footer: d = !0 } = s, { background: u = "default", variant: l = "default", circle: m = "default" } = i, h = ds();
6785
6784
  ie(() => {
6786
6785
  window.scrollTo(0, 0);
6787
6786
  }, [h]);
@@ -6790,27 +6789,27 @@ const oo = () => {
6790
6789
  }), _ = xt(n, {
6791
6790
  locale: o
6792
6791
  }), b = {};
6793
- return u !== "default" && (b[u] = !0), l !== "default" && (b[l] = !0), m !== "default" && (b[m] = !0), /* @__PURE__ */ a.jsx(ss, { onError: r, fallback: /* @__PURE__ */ a.jsx(oo, {}), children: /* @__PURE__ */ a.jsx(Ga, { fallback: null, children: /* @__PURE__ */ a.jsxs(
6792
+ return u !== "default" && (b[u] = !0), l !== "default" && (b[l] = !0), m !== "default" && (b[m] = !0), /* @__PURE__ */ a.jsx(ns, { onError: r, fallback: /* @__PURE__ */ a.jsx(oo, {}), children: /* @__PURE__ */ a.jsx(Wa, { fallback: null, children: /* @__PURE__ */ a.jsxs(
6794
6793
  "div",
6795
6794
  {
6796
6795
  id: "wrapper",
6797
6796
  className: E(c, b, { "has-footer": d }),
6798
6797
  children: [
6799
- /* @__PURE__ */ a.jsx(ga, { showNavigation: f }),
6798
+ /* @__PURE__ */ a.jsx(ma, { showNavigation: f }),
6800
6799
  /* @__PURE__ */ a.jsxs("section", { id: "content-wrapper", children: [
6801
6800
  v && /* @__PURE__ */ a.jsx("div", { className: "additional-content prepended", children: v }),
6802
- z.createElement(u === "bold" ? _a : "div", {
6801
+ z.createElement(u === "bold" ? pa : "div", {
6803
6802
  id: "content",
6804
6803
  children: g
6805
6804
  })
6806
6805
  ] }),
6807
6806
  _ && /* @__PURE__ */ a.jsx("div", { className: "additional-content appended", children: _ }),
6808
- d && /* @__PURE__ */ a.jsx(ha, {}),
6807
+ d && /* @__PURE__ */ a.jsx(fa, {}),
6809
6808
  /* @__PURE__ */ a.jsx(ao, {})
6810
6809
  ]
6811
6810
  }
6812
6811
  ) }) });
6813
- }, $r = {
6812
+ }, Er = {
6814
6813
  default: "tags_",
6815
6814
  headerTopics: "header_topics_topics_"
6816
6815
  }, dn = {
@@ -6834,11 +6833,11 @@ const oo = () => {
6834
6833
  if (e.includes("topic_")) {
6835
6834
  if (e = dn.topic[e.replace("topic_", "")], e) {
6836
6835
  const t = St.topics.topics[e].href;
6837
- return t ? { id: e, href: t, text: `${$r.headerTopics}${e}` } : null;
6836
+ return t ? { id: e, href: t, text: `${Er.headerTopics}${e}` } : null;
6838
6837
  }
6839
6838
  return null;
6840
6839
  }
6841
- return dn[e] ? (e = dn[e], { id: e, text: `${$r.default}${e}` }) : null;
6840
+ return dn[e] ? (e = dn[e], { id: e, text: `${Er.default}${e}` }) : null;
6842
6841
  }
6843
6842
  };
6844
6843
  const Dc = ({
@@ -6946,7 +6945,7 @@ const be = "discussion_form_", qn = ({
6946
6945
  gtmContext: d = "DiscussionForm"
6947
6946
  }) => {
6948
6947
  var O, P, ee;
6949
- const u = W(), l = Ce(Ae), [m, h] = J(
6948
+ const u = W(), l = $e(Ae), [m, h] = J(
6950
6949
  n.isEditing && n.isEditing.text || ""
6951
6950
  ), [g, v] = J(o.error || !1), [_, b] = J(!1), y = me(null);
6952
6951
  if (r || (r = y), n.isLoading)
@@ -6961,12 +6960,12 @@ const be = "discussion_form_", qn = ({
6961
6960
  const U = A.target.value;
6962
6961
  h(U);
6963
6962
  let q;
6964
- !l || !l.id ? q = Se(
6963
+ !l || !l.id ? q = Ce(
6965
6964
  u.formatMessage,
6966
6965
  `${be}error_loggedOut`,
6967
6966
  e.type,
6968
6967
  "action"
6969
- ) : t ? U.length >= i && (q = `${be}error_tooLong`) : q = Se(
6968
+ ) : t ? U.length >= i && (q = `${be}error_tooLong`) : q = Ce(
6970
6969
  u.formatMessage,
6971
6970
  `${be}error_noPermission`,
6972
6971
  e.type,
@@ -7012,7 +7011,7 @@ const be = "discussion_form_", qn = ({
7012
7011
  default:
7013
7012
  break;
7014
7013
  }
7015
- await ys(1e3), f.callback && await f.callback(Q), vt = setTimeout(() => {
7014
+ await _s(1e3), f.callback && await f.callback(Q), vt = setTimeout(() => {
7016
7015
  h(""), b("submitted");
7017
7016
  const X = new Event("discussionFormSubmitted");
7018
7017
  document.dispatchEvent(X), R();
@@ -7020,12 +7019,12 @@ const be = "discussion_form_", qn = ({
7020
7019
  } catch (Q) {
7021
7020
  const X = Q;
7022
7021
  let le = `${be}error`;
7023
- X != null && X.message.includes("entry already exists") && (le = Se(
7022
+ X != null && X.message.includes("entry already exists") && (le = Ce(
7024
7023
  u.formatMessage,
7025
7024
  `${be}error_alreadyExists`,
7026
7025
  e.type,
7027
7026
  "action"
7028
- )), X != null && X.message.includes("429") ? le = Se(
7027
+ )), X != null && X.message.includes("429") ? le = Ce(
7029
7028
  u.formatMessage,
7030
7029
  `${be}error_tooMany`,
7031
7030
  e.type,
@@ -7036,7 +7035,7 @@ const be = "discussion_form_", qn = ({
7036
7035
  vt = setTimeout(() => {
7037
7036
  v(!1), b(!1);
7038
7037
  }, 5e3);
7039
- }, F = !m || !Ss(m), V = _ === "submitting", N = [];
7038
+ }, F = !m || !ks(m), V = _ === "submitting", N = [];
7040
7039
  return (n.isEditing && !V || o.cancel) && N.push({
7041
7040
  variant: "secondary",
7042
7041
  size: { mobile: "small", 600: "medium" },
@@ -7075,7 +7074,7 @@ const be = "discussion_form_", qn = ({
7075
7074
  }),
7076
7075
  "data-testid": `discussion-${e.type}-form`,
7077
7076
  children: [
7078
- (n == null ? void 0 : n.showTitle) && !n.isEditing && ["question"].includes(e.type) && /* @__PURE__ */ a.jsx("h2", { children: Se(u.formatMessage, `${be}title`, e.type, "action") }),
7077
+ (n == null ? void 0 : n.showTitle) && !n.isEditing && ["question"].includes(e.type) && /* @__PURE__ */ a.jsx("h2", { children: Ce(u.formatMessage, `${be}title`, e.type, "action") }),
7079
7078
  /* @__PURE__ */ a.jsx(
7080
7079
  Fn,
7081
7080
  {
@@ -7084,14 +7083,14 @@ const be = "discussion_form_", qn = ({
7084
7083
  gtmType: "profile-click"
7085
7084
  }
7086
7085
  ),
7087
- /* @__PURE__ */ a.jsx(_e, { element: "label", showOnFocus: !1, htmlFor: `${w}-input`, children: Se(u.formatMessage, `${be}label`, e.type, "action") }),
7086
+ /* @__PURE__ */ a.jsx(_e, { element: "label", showOnFocus: !1, htmlFor: `${w}-input`, children: Ce(u.formatMessage, `${be}label`, e.type, "action") }),
7088
7087
  /* @__PURE__ */ a.jsx(
7089
- is,
7088
+ rs,
7090
7089
  {
7091
7090
  ref: r,
7092
7091
  id: `${w}-input`,
7093
7092
  name: e.type,
7094
- placeholder: s || Se(
7093
+ placeholder: s || Ce(
7095
7094
  u.formatMessage,
7096
7095
  `${be}placeholder`,
7097
7096
  e.type,
@@ -7106,7 +7105,7 @@ const be = "discussion_form_", qn = ({
7106
7105
  autoFocus: !!n.isEditing
7107
7106
  }
7108
7107
  ),
7109
- /* @__PURE__ */ a.jsx("small", { children: Se(u.formatMessage, `${be}explainer`, e.type, "action", {
7108
+ /* @__PURE__ */ a.jsx("small", { children: Ce(u.formatMessage, `${be}explainer`, e.type, "action", {
7110
7109
  a: (A) => /* @__PURE__ */ a.jsx(
7111
7110
  "a",
7112
7111
  {
@@ -7121,7 +7120,7 @@ const be = "discussion_form_", qn = ({
7121
7120
  )
7122
7121
  }) }),
7123
7122
  /* @__PURE__ */ a.jsx(Nt, { buttons: N }),
7124
- _ === "submitted" && n.showSuccessMessage && /* @__PURE__ */ a.jsx(yn, { className: "success", "data-testid": "success", children: Se(u.formatMessage, `${be}success`, e.type, "action") }),
7123
+ _ === "submitted" && n.showSuccessMessage && /* @__PURE__ */ a.jsx(yn, { className: "success", "data-testid": "success", children: Ce(u.formatMessage, `${be}success`, e.type, "action") }),
7125
7124
  g && /* @__PURE__ */ a.jsx(yn, { id: "error-message", className: "error", "data-testid": "error", children: o.error ? o.error : typeof g == "string" ? g.includes(" ") ? g : u.formatMessage(
7126
7125
  { id: g },
7127
7126
  {
@@ -7134,7 +7133,7 @@ const be = "discussion_form_", qn = ({
7134
7133
  ]
7135
7134
  }
7136
7135
  );
7137
- }, ba = ({
7136
+ }, ga = ({
7138
7137
  form: e,
7139
7138
  membershipRequiredToPost: { isMember: t, required: n, join: r, leave: s, notMemberStateText: i }
7140
7139
  }) => {
@@ -7145,7 +7144,7 @@ const be = "discussion_form_", qn = ({
7145
7144
  text: i,
7146
7145
  button: {
7147
7146
  breakpoints: { mobile: !0, 901: !1 },
7148
- component: /* @__PURE__ */ a.jsx(aa, { isShort: !0, functions: { join: r, leave: s } })
7147
+ component: /* @__PURE__ */ a.jsx(ta, { isShort: !0, functions: { join: r, leave: s } })
7149
7148
  }
7150
7149
  }
7151
7150
  );
@@ -7276,7 +7275,7 @@ const un = () => {
7276
7275
  )
7277
7276
  }
7278
7277
  ),
7279
- n && /* @__PURE__ */ a.jsx(Ps, { isOpen: _, isLoading: n.length === 0, children: n.length && /* @__PURE__ */ a.jsxs("ul", { children: [
7278
+ n && /* @__PURE__ */ a.jsx(Ss, { isOpen: _, isLoading: n.length === 0, children: n.length && /* @__PURE__ */ a.jsxs("ul", { children: [
7280
7279
  y.map((x) => typeof x == "string" || !x.name ? null : /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
7281
7280
  ot,
7282
7281
  {
@@ -7294,11 +7293,11 @@ const un = () => {
7294
7293
  ] }) })
7295
7294
  ] })
7296
7295
  });
7297
- }, Pr = (e) => {
7296
+ }, Sr = (e) => {
7298
7297
  const t = {};
7299
7298
  return Object.keys(e).forEach((n) => n.includes("Id") ? t[n] = e[n] : t[`${n}Slug`] = e[n]), t;
7300
7299
  }, Ft = (e, t) => e && !t;
7301
- const Me = "discussion_", go = 280, Lt = ({
7300
+ const Re = "discussion_", go = 280, Lt = ({
7302
7301
  element: e = "div",
7303
7302
  content: t,
7304
7303
  userHasPermissions: n = !0,
@@ -7328,7 +7327,7 @@ const Me = "discussion_", go = 280, Lt = ({
7328
7327
  children: v,
7329
7328
  isTruncated: _ = !1
7330
7329
  }) => {
7331
- const b = W(), y = Ce(Ae), j = Ce(zn), { author: w, canLike: x, createdAt: R, id: F, likes: V = 0, userLiked: N, comments: O = 0 } = t, P = y && y.id && typeof w != "string" && w.id && w.id === y.id || !1, ee = typeof x == "boolean" ? x : n ? !P : !1, A = P && (!t.createdAt || bs(t.createdAt, 10, "seconds")), U = me(null), [q, Q] = J({
7330
+ const b = W(), y = $e(Ae), j = $e(zn), { author: w, canLike: x, createdAt: R, id: F, likes: V = 0, userLiked: N, comments: O = 0 } = t, P = y && y.id && typeof w != "string" && w.id && w.id === y.id || !1, ee = typeof x == "boolean" ? x : n ? !P : !1, A = P && (!t.createdAt || gs(t.createdAt, 10, "seconds")), U = me(null), [q, Q] = J({
7332
7331
  body: t && t.body || "",
7333
7332
  isEditing: !1,
7334
7333
  didEdit: t && t.isEdited || !1
@@ -7364,38 +7363,38 @@ const Me = "discussion_", go = 280, Lt = ({
7364
7363
  const Y = _ ? He(q.body, go) : q.body, Z = async (C) => {
7365
7364
  C || (C = ""), B("");
7366
7365
  try {
7367
- if (!os(C, q.body)) {
7366
+ if (!as(C, q.body)) {
7368
7367
  const ne = t.type === "question" ? { title: C } : { body: C };
7369
- await f(Pr(t.slugs), ne);
7368
+ await f(Sr(t.slugs), ne);
7370
7369
  }
7371
7370
  Q({ body: C, isEditing: !1, didEdit: !0 });
7372
7371
  } catch {
7373
- B(`${Me}form_error`);
7372
+ B(`${Re}form_error`);
7374
7373
  }
7375
7374
  }, I = () => {
7376
7375
  j && j.updateConversation && j.updateConversation({ showForm: !0 }), setTimeout(() => {
7377
- var $e, Ee, Le;
7378
- const ne = `reply-form-${(t.type === "answer" ? t.slug : (($e = t.slugs) == null ? void 0 : $e.reply) || ((Ee = t.slugs) == null ? void 0 : Ee.answer) || ((Le = t.slugs) == null ? void 0 : Le.question) || "").toLowerCase().slice(-15)}`, $ = document.getElementById(ne), ge = document.getElementById(`${ne}-input`);
7376
+ var Pe, Ee, De;
7377
+ const ne = `reply-form-${(t.type === "answer" ? t.slug : ((Pe = t.slugs) == null ? void 0 : Pe.reply) || ((Ee = t.slugs) == null ? void 0 : Ee.answer) || ((De = t.slugs) == null ? void 0 : De.question) || "").toLowerCase().slice(-15)}`, $ = document.getElementById(ne), ge = document.getElementById(`${ne}-input`);
7379
7378
  ge && ge.focus(), $ && $.scrollIntoView({ behavior: "smooth" });
7380
7379
  }, 0);
7381
7380
  }, H = () => {
7382
7381
  le(!1);
7383
7382
  try {
7384
- o(Pr(t.slugs));
7383
+ o(Sr(t.slugs));
7385
7384
  } catch {
7386
7385
  B("delete-error");
7387
7386
  }
7388
7387
  }, K = [
7389
7388
  {
7390
- text: b.formatMessage({ id: `${Me}moreMenu_report` }),
7389
+ text: b.formatMessage({ id: `${Re}moreMenu_report` }),
7391
7390
  onClick: (C) => {
7392
7391
  C.stopPropagation();
7393
7392
  },
7394
7393
  href: `mailto:community@apolitical.co?subject=${encodeURI(
7395
- b.formatMessage({ id: `${Me}report_subject` })
7394
+ b.formatMessage({ id: `${Re}report_subject` })
7396
7395
  )}&body=${encodeURI(
7397
7396
  b.formatMessage(
7398
- { id: `${Me}report_body` },
7397
+ { id: `${Re}report_body` },
7399
7398
  {
7400
7399
  contentType: t.type || "",
7401
7400
  contentSlug: t.slug || "",
@@ -7408,7 +7407,7 @@ const Me = "discussion_", go = 280, Lt = ({
7408
7407
  ];
7409
7408
  return n && P && K.push(
7410
7409
  {
7411
- text: b.formatMessage({ id: `${Me}moreMenu_edit` }),
7410
+ text: b.formatMessage({ id: `${Re}moreMenu_edit` }),
7412
7411
  onClick: () => Q({ ...q, isEditing: !0 }),
7413
7412
  icon: "pencil-paper",
7414
7413
  className: "gtm-trackable",
@@ -7416,7 +7415,7 @@ const Me = "discussion_", go = 280, Lt = ({
7416
7415
  "data-gtm-event-type": `edit-${t.type}-click`
7417
7416
  },
7418
7417
  {
7419
- text: b.formatMessage({ id: `${Me}moreMenu_delete` }),
7418
+ text: b.formatMessage({ id: `${Re}moreMenu_delete` }),
7420
7419
  onClick: (C) => {
7421
7420
  C.preventDefault(), C.stopPropagation(), le(!0);
7422
7421
  },
@@ -7549,13 +7548,13 @@ const Me = "discussion_", go = 280, Lt = ({
7549
7548
  "data-gtm-event-context": g,
7550
7549
  "data-gtm-event-type": `answer-${t.type}-click`,
7551
7550
  screenreaderText: b.formatMessage(
7552
- { id: `${Me}comments_screenReader` },
7551
+ { id: `${Re}comments_screenReader` },
7553
7552
  { count: O }
7554
7553
  )
7555
7554
  }
7556
7555
  ),
7557
7556
  /* @__PURE__ */ a.jsx("span", { children: b.formatMessage(
7558
- { id: `${Me}comments` },
7557
+ { id: `${Re}comments` },
7559
7558
  { count: O }
7560
7559
  ) })
7561
7560
  ]
@@ -7568,7 +7567,7 @@ const Me = "discussion_", go = 280, Lt = ({
7568
7567
  size: "medium",
7569
7568
  styling: { muted: !0 },
7570
7569
  onClick: I,
7571
- children: b.formatMessage({ id: `${Me}reply` })
7570
+ children: b.formatMessage({ id: `${Re}reply` })
7572
7571
  }
7573
7572
  ) }),
7574
7573
  /* @__PURE__ */ a.jsx(
@@ -7587,7 +7586,7 @@ const Me = "discussion_", go = 280, Lt = ({
7587
7586
  ),
7588
7587
  v,
7589
7588
  /* @__PURE__ */ a.jsx(
7590
- va,
7589
+ ha,
7591
7590
  {
7592
7591
  id: `delete-${t.slug}-modal`,
7593
7592
  isOpen: X,
@@ -7645,7 +7644,7 @@ const mn = "discussion_responses_", _o = ({ type: e = "answer", responses: t = 0
7645
7644
  { id: `${mn}title` },
7646
7645
  { action: n.formatMessage({ id: `${mn}${e}` }), count: t }
7647
7646
  ) }),
7648
- t === 0 && /* @__PURE__ */ a.jsx("p", { children: Se(n.formatMessage, `${mn}empty`, e, e) })
7647
+ t === 0 && /* @__PURE__ */ a.jsx("p", { children: Ce(n.formatMessage, `${mn}empty`, e, e) })
7649
7648
  ] });
7650
7649
  };
7651
7650
  const vo = ({
@@ -7658,7 +7657,7 @@ const vo = ({
7658
7657
  form: r,
7659
7658
  children: s
7660
7659
  }) => {
7661
- const i = W(), c = Ce(zn), o = xt(s, {
7660
+ const i = W(), c = $e(zn), o = xt(s, {
7662
7661
  element: "li"
7663
7662
  });
7664
7663
  return /* @__PURE__ */ a.jsxs("div", { className: "thread-wrapper", children: [
@@ -7679,7 +7678,7 @@ const vo = ({
7679
7678
  ),
7680
7679
  r && c.showForm && /* @__PURE__ */ a.jsx(qn, { ...r })
7681
7680
  ] });
7682
- }, bo = "post", yo = "reply", ya = "00000000-0000-0000-0000-000000000000";
7681
+ }, bo = "post", yo = "reply", _a = "00000000-0000-0000-0000-000000000000";
7683
7682
  function Zn({ queryClient: e, queryKey: t }) {
7684
7683
  function n(r, s, i) {
7685
7684
  e.setQueryData(t, i);
@@ -7726,7 +7725,7 @@ function wo() {
7726
7725
  }
7727
7726
  };
7728
7727
  }
7729
- function xa(e) {
7728
+ function va(e) {
7730
7729
  const { id: t = "", name: n = "", organization: r = "", jobTitle: s = "", image: i = {} } = e, { thumbnail: c = "" } = i;
7731
7730
  return {
7732
7731
  id: t,
@@ -7741,15 +7740,15 @@ function xa(e) {
7741
7740
  function jo({ content: e }) {
7742
7741
  return {
7743
7742
  content: e,
7744
- id: ya,
7743
+ id: _a,
7745
7744
  time: (/* @__PURE__ */ new Date()).toISOString(),
7746
7745
  verb: bo
7747
7746
  };
7748
7747
  }
7749
- function Mr({ activity: e, user: t }) {
7748
+ function Cr({ activity: e, user: t }) {
7750
7749
  return {
7751
7750
  ...e,
7752
- actor: xa(t),
7751
+ actor: va(t),
7753
7752
  ...xo()
7754
7753
  };
7755
7754
  }
@@ -7766,7 +7765,7 @@ function $t({ activity: e, reaction: t }) {
7766
7765
  like: (n = e.reaction_counts) != null && n.like ? e.reaction_counts.like + 1 : 1
7767
7766
  };
7768
7767
  }
7769
- function wa({ activity: e, user: t }) {
7768
+ function ba({ activity: e, user: t }) {
7770
7769
  var n, r, s;
7771
7770
  e.reaction_counts = {
7772
7771
  ...e.reaction_counts || {},
@@ -7785,13 +7784,13 @@ function ko({ activityId: e, replyId: t, content: n }) {
7785
7784
  data: {
7786
7785
  content: n
7787
7786
  },
7788
- id: ya,
7787
+ id: _a,
7789
7788
  kind: yo,
7790
7789
  parent: t || ""
7791
7790
  };
7792
7791
  }
7793
- function Rr({ reply: e, user: t }) {
7794
- const n = xa(t);
7792
+ function $r({ reply: e, user: t }) {
7793
+ const n = va(t);
7795
7794
  return {
7796
7795
  ...e,
7797
7796
  user_id: n.id,
@@ -7799,7 +7798,7 @@ function Rr({ reply: e, user: t }) {
7799
7798
  ...wo()
7800
7799
  };
7801
7800
  }
7802
- function Nr({ reply: e, reaction: t }) {
7801
+ function Pr({ reply: e, reaction: t }) {
7803
7802
  var n, r, s;
7804
7803
  t ? (e.latest_children = {
7805
7804
  ...e.latest_children || {},
@@ -7825,14 +7824,14 @@ function To({ reply: e, user: t }) {
7825
7824
  like: (((s = e.own_children) == null ? void 0 : s.like) || []).filter(({ user_id: i }) => i !== t.id)
7826
7825
  });
7827
7826
  }
7828
- const ja = (e) => {
7827
+ const ya = (e) => {
7829
7828
  const t = new CustomEvent("discussionPostAdded", {
7830
7829
  detail: e
7831
7830
  });
7832
7831
  document.dispatchEvent(t);
7833
7832
  };
7834
- let Ar, pn = 0;
7835
- const ka = () => {
7833
+ let Mr, pn = 0;
7834
+ const xa = () => {
7836
7835
  ie(() => (document.addEventListener("discussionPostAdded", e), () => {
7837
7836
  document.removeEventListener(
7838
7837
  "discussionPostAdded",
@@ -7843,13 +7842,13 @@ const ka = () => {
7843
7842
  const n = t.detail;
7844
7843
  if (!n)
7845
7844
  return;
7846
- clearTimeout(Ar);
7845
+ clearTimeout(Mr);
7847
7846
  const r = document.getElementById(n);
7848
7847
  if (r) {
7849
7848
  r.scrollIntoView({ behavior: "smooth", block: "start" }), pn = 0;
7850
7849
  return;
7851
7850
  }
7852
- pn++, !(pn > 10) && (Ar = setTimeout(() => {
7851
+ pn++, !(pn > 10) && (Mr = setTimeout(() => {
7853
7852
  e(t);
7854
7853
  }, 50));
7855
7854
  };
@@ -7862,7 +7861,7 @@ const ka = () => {
7862
7861
  thumbnail: "https://some-user-thumbnail.com/avatar1.png"
7863
7862
  },
7864
7863
  isLoading: !1
7865
- }), Fe = Object.freeze({
7864
+ }), Le = Object.freeze({
7866
7865
  id: "some-user-id-2",
7867
7866
  name: "some user name 2",
7868
7867
  organization: "some user organization 2",
@@ -7871,7 +7870,7 @@ const ka = () => {
7871
7870
  thumbnail: "https://some-user-thumbnail.com/avatar2.png"
7872
7871
  },
7873
7872
  isLoading: !1
7874
- }), Ta = Object.freeze({
7873
+ }), wa = Object.freeze({
7875
7874
  actor: `SU:${We.id}`,
7876
7875
  content: "some content 1",
7877
7876
  duration: "5.53ms",
@@ -7882,7 +7881,7 @@ const ka = () => {
7882
7881
  time: "2023-11-24T17:52:36.162000",
7883
7882
  verb: "post"
7884
7883
  }), Eo = Object.freeze({
7885
- actor: `SU:${Fe.id}`,
7884
+ actor: `SU:${Le.id}`,
7886
7885
  content: "some content 2",
7887
7886
  duration: "5.53ms",
7888
7887
  feed_id: "some-feed-id-2",
@@ -7902,7 +7901,7 @@ const ka = () => {
7902
7901
  time: "2023-11-24T17:56:36.162000",
7903
7902
  verb: "post"
7904
7903
  }), Co = Object.freeze({
7905
- actor: `SU:${Fe.id}`,
7904
+ actor: `SU:${Le.id}`,
7906
7905
  content: "some content 4",
7907
7906
  duration: "5.53ms",
7908
7907
  feed_id: "some-feed-id-4",
@@ -7914,19 +7913,19 @@ const ka = () => {
7914
7913
  });
7915
7914
  Object.freeze({
7916
7915
  id: "some-reaction-id-1",
7917
- activity_id: Ta.id,
7916
+ activity_id: wa.id,
7918
7917
  kind: "like",
7919
7918
  created_at: "2023-11-24T17:58:36.162000",
7920
7919
  data: {},
7921
7920
  parent: "",
7922
7921
  updated_at: "2023-11-24T17:58:36.162000",
7923
- user_id: Fe.id,
7922
+ user_id: Le.id,
7924
7923
  children_counts: {},
7925
7924
  latest_children: {},
7926
7925
  latest_children_extra: {},
7927
7926
  own_children: {},
7928
7927
  user: {
7929
- id: Fe.id,
7928
+ id: Le.id,
7930
7929
  data: {},
7931
7930
  created_at: "2023-11-24T17:58:36.162000",
7932
7931
  updated_at: "2023-11-24T17:58:36.162000"
@@ -7936,15 +7935,15 @@ Object.freeze({
7936
7935
  created_at: "2023-12-03T21:53:45.999851Z",
7937
7936
  updated_at: "2023-12-03T21:53:45.999851Z",
7938
7937
  id: "some-reply-id-1",
7939
- user_id: Fe.id,
7938
+ user_id: Le.id,
7940
7939
  user: {
7941
- id: Fe.id,
7940
+ id: Le.id,
7942
7941
  data: {},
7943
7942
  created_at: "2023-08-31T07:11:38.677184Z",
7944
7943
  updated_at: "2023-08-31T07:11:38.677184Z"
7945
7944
  },
7946
7945
  kind: "reply",
7947
- activity_id: Ta.id,
7946
+ activity_id: wa.id,
7948
7947
  data: {
7949
7948
  content: "Some content 1..."
7950
7949
  },
@@ -7976,9 +7975,9 @@ Object.freeze({
7976
7975
  created_at: "2023-12-03T21:53:45.999851Z",
7977
7976
  updated_at: "2023-12-03T21:53:45.999851Z",
7978
7977
  id: "some-reply-id-3",
7979
- user_id: Fe.id,
7978
+ user_id: Le.id,
7980
7979
  user: {
7981
- id: Fe.id,
7980
+ id: Le.id,
7982
7981
  data: {},
7983
7982
  created_at: "2023-08-31T07:11:38.677184Z",
7984
7983
  updated_at: "2023-08-31T07:11:38.677184Z"
@@ -8022,14 +8021,14 @@ function $o({
8022
8021
  const { mutate: c } = we({
8023
8022
  mutationFn: e,
8024
8023
  onMutate: (o) => t((f) => {
8025
- const d = Mr({ activity: jo(o), user: i });
8026
- return Or(d, f);
8024
+ const d = Cr({ activity: jo(o), user: i });
8025
+ return Rr(d, f);
8027
8026
  }),
8028
8027
  onError: n,
8029
8028
  onSuccess: (o, f, d) => {
8030
- const u = Mr({ activity: o, user: i });
8031
- r.setQueryData(s, Or(u, d, !0)), setTimeout(() => {
8032
- ja(u.id);
8029
+ const u = Cr({ activity: o, user: i });
8030
+ r.setQueryData(s, Rr(u, d, !0)), setTimeout(() => {
8031
+ ya(u.id);
8033
8032
  }, 0);
8034
8033
  }
8035
8034
  });
@@ -8114,7 +8113,7 @@ function No({ queryFn: e, queryKey: t }) {
8114
8113
  isLoading: s,
8115
8114
  hasNextPage: i,
8116
8115
  fetchNextPage: c
8117
- } = Ir({
8116
+ } = Fr({
8118
8117
  queryKey: t,
8119
8118
  queryFn: e,
8120
8119
  initialPageParam: { next: null },
@@ -8154,13 +8153,13 @@ function Oo({
8154
8153
  mutationFn: e,
8155
8154
  onMutate: ({ activityId: i }) => t((c) => {
8156
8155
  const o = Pt(i, c);
8157
- return o && wa({ activity: o, user: r }), c;
8156
+ return o && ba({ activity: o, user: r }), c;
8158
8157
  }),
8159
8158
  onError: n
8160
8159
  });
8161
8160
  return s;
8162
8161
  }
8163
- function Or(e, t, n = !1) {
8162
+ function Rr(e, t, n = !1) {
8164
8163
  return t ? (n ? t.pages[0].results[0] = e : t.pages[0].results = [e, ...t.pages[0].results], t) : {
8165
8164
  pages: [{
8166
8165
  next: "",
@@ -8209,12 +8208,12 @@ const Bc = ({
8209
8208
  queryKey: [e, t, "activities"],
8210
8209
  queryFns: r
8211
8210
  });
8212
- if (ka(), f)
8211
+ if (xa(), f)
8213
8212
  return /* @__PURE__ */ a.jsx(Ve, { variant: "error", text: f.message });
8214
8213
  const y = (o == null ? void 0 : o.length) || 0;
8215
8214
  return /* @__PURE__ */ a.jsxs("section", { children: [
8216
8215
  /* @__PURE__ */ a.jsx(
8217
- ba,
8216
+ ga,
8218
8217
  {
8219
8218
  form: {
8220
8219
  content: { type: "post", slugs: {} },
@@ -8295,7 +8294,7 @@ const Bc = ({
8295
8294
  isTruncated: !0
8296
8295
  }
8297
8296
  ),
8298
- y > w + 1 && /* @__PURE__ */ a.jsx(Oe, {})
8297
+ y > w + 1 && /* @__PURE__ */ a.jsx(Fe, {})
8299
8298
  ] }, x);
8300
8299
  }),
8301
8300
  !l && /* @__PURE__ */ a.jsx(
@@ -8873,20 +8872,20 @@ function Do({
8873
8872
  const { mutate: c } = we({
8874
8873
  mutationFn: e,
8875
8874
  onMutate: (o) => t((f) => {
8876
- const d = Rr({ reply: ko(o), user: i });
8877
- return Fr(d, f, {
8875
+ const d = $r({ reply: ko(o), user: i });
8876
+ return Nr(d, f, {
8878
8877
  replace: !1,
8879
8878
  append: (o == null ? void 0 : o.replyId) !== void 0
8880
8879
  });
8881
8880
  }),
8882
8881
  onError: n,
8883
8882
  onSuccess: (o, f, d) => {
8884
- const u = Rr({ reply: o, user: i });
8883
+ const u = $r({ reply: o, user: i });
8885
8884
  r.setQueryData(
8886
8885
  s,
8887
- Fr(u, d, { replace: !0, append: (f == null ? void 0 : f.replyId) !== void 0 })
8886
+ Nr(u, d, { replace: !0, append: (f == null ? void 0 : f.replyId) !== void 0 })
8888
8887
  ), setTimeout(() => {
8889
- ja(u.id);
8888
+ ya(u.id);
8890
8889
  }, 0);
8891
8890
  }
8892
8891
  });
@@ -8909,7 +8908,7 @@ function Io({
8909
8908
  });
8910
8909
  return r;
8911
8910
  }
8912
- function Ea({
8911
+ function ja({
8913
8912
  queryFns: {
8914
8913
  create: e,
8915
8914
  edit: t,
@@ -8954,12 +8953,12 @@ function Bo({
8954
8953
  mutationFn: e,
8955
8954
  onMutate: ({ replyId: c }) => t((o) => {
8956
8955
  const f = Mt(c, o);
8957
- return f && Nr({ reply: f }), o;
8956
+ return f && Pr({ reply: f }), o;
8958
8957
  }),
8959
8958
  onError: n,
8960
8959
  onSuccess: (c, { replyId: o }, f) => {
8961
8960
  const d = Mt(o, f);
8962
- d && Nr({ reply: d, reaction: c }), r.setQueryData(s, f);
8961
+ d && Pr({ reply: d, reaction: c }), r.setQueryData(s, f);
8963
8962
  }
8964
8963
  });
8965
8964
  return i;
@@ -8971,7 +8970,7 @@ function qo({ queryFn: e, queryKey: t }) {
8971
8970
  isLoading: s,
8972
8971
  hasNextPage: i,
8973
8972
  fetchNextPage: c
8974
- } = Ir({
8973
+ } = Fr({
8975
8974
  queryKey: t,
8976
8975
  queryFn: e,
8977
8976
  initialPageParam: { next: "" },
@@ -9034,7 +9033,7 @@ function Ho(e, t, n) {
9034
9033
  function Wo(e, t, n) {
9035
9034
  return n != null && n.replace ? t.pages[0].results[0] = e : t.pages[0].results = [e, ...t.pages[0].results], t;
9036
9035
  }
9037
- function Fr(e, t, n) {
9036
+ function Nr(e, t, n) {
9038
9037
  return t ? n != null && n.append ? Ho(e, t, n) : Wo(e, t, n) : Uo(e);
9039
9038
  }
9040
9039
  function Mt(e, t) {
@@ -9074,7 +9073,7 @@ const Go = ({
9074
9073
  isLoading: d,
9075
9074
  mutations: { create: u, edit: l, like: m, remove: h, unlike: g },
9076
9075
  user: v
9077
- } = Ea({
9076
+ } = ja({
9078
9077
  queryKey: [e, t, n, r, "replies"],
9079
9078
  queryFns: {
9080
9079
  ...i,
@@ -9186,14 +9185,14 @@ const Go = ({
9186
9185
  isLoading: m,
9187
9186
  mutations: { create: h, edit: g, like: v, remove: _, unlike: b },
9188
9187
  user: y
9189
- } = Ea({
9188
+ } = ja({
9190
9189
  queryKey: [e, t, n, "replies"],
9191
9190
  queryFns: s
9192
9191
  });
9193
- return gs(), ka(), /* @__PURE__ */ a.jsxs("section", { children: [
9192
+ return ms(), xa(), /* @__PURE__ */ a.jsxs("section", { children: [
9194
9193
  /* @__PURE__ */ a.jsx(_o, { type: "comment", responses: d }),
9195
9194
  /* @__PURE__ */ a.jsx(
9196
- ba,
9195
+ ga,
9197
9196
  {
9198
9197
  form: {
9199
9198
  content: { type: "reply", slugs: {} },
@@ -9321,7 +9320,7 @@ function Jo({ queryFn: e, queryKey: t }) {
9321
9320
  error: r,
9322
9321
  isLoading: s,
9323
9322
  isFetching: i
9324
- } = ts({
9323
+ } = Ja({
9325
9324
  queryFn: e,
9326
9325
  queryKey: t
9327
9326
  });
@@ -9389,7 +9388,7 @@ function tc({
9389
9388
  }) {
9390
9389
  const { mutate: s } = we({
9391
9390
  mutationFn: e,
9392
- onMutate: (i) => t((c) => (c && wa({ activity: c, user: r }), c)),
9391
+ onMutate: (i) => t((c) => (c && ba({ activity: c, user: r }), c)),
9393
9392
  onError: n
9394
9393
  });
9395
9394
  return s;
@@ -9407,7 +9406,7 @@ const zc = ({
9407
9406
  }
9408
9407
  }) => {
9409
9408
  var N, O, P, ee, A, U, q, Q, X, le;
9410
- const d = W(), u = Ce(Ae), {
9409
+ const d = W(), u = $e(Ae), {
9411
9410
  activity: l,
9412
9411
  error: m,
9413
9412
  isLoading: h,
@@ -9509,7 +9508,7 @@ const zc = ({
9509
9508
  jobTitle: t,
9510
9509
  organization: r,
9511
9510
  image: { thumbnail: s }
9512
- }), Lr = [
9511
+ }), Ar = [
9513
9512
  {
9514
9513
  contentType: "solutionArticle",
9515
9514
  banner: {
@@ -9555,7 +9554,7 @@ const zc = ({
9555
9554
  ];
9556
9555
  const bt = "notFoundError_", Uc = () => {
9557
9556
  const e = W(), t = [];
9558
- return Lr.forEach((n, r) => {
9557
+ return Ar.forEach((n, r) => {
9559
9558
  n.title = e.formatMessage({ id: `${bt}post_${r + 1}` }), t.push("solutionArticle");
9560
9559
  }), /* @__PURE__ */ a.jsxs(
9561
9560
  co,
@@ -9566,7 +9565,7 @@ const bt = "notFoundError_", Uc = () => {
9566
9565
  /* @__PURE__ */ a.jsx(
9567
9566
  ti,
9568
9567
  {
9569
- cards: Lr,
9568
+ cards: Ar,
9570
9569
  cardTypes: t,
9571
9570
  buildCardData: (n) => new Promise((r, s) => {
9572
9571
  r(n);
@@ -9590,21 +9589,21 @@ export {
9590
9589
  at as ASSETS_BUCKET,
9591
9590
  Bc as ActivitiesFeed,
9592
9591
  zc as ActivitySection,
9593
- ba as AddPost,
9592
+ ga as AddPost,
9594
9593
  bc as BannerSection,
9595
9594
  Sc as Breadcrumbs,
9596
9595
  se as Button,
9597
9596
  Nt as ButtonWrapper,
9598
- Ns as CacheProvider,
9599
- ra as Card,
9597
+ Ps as CacheProvider,
9598
+ ea as Card,
9600
9599
  ti as CardBlock,
9601
9600
  Tc as Carousel,
9602
- Kr as CollapsibleSection,
9601
+ Vr as CollapsibleSection,
9603
9602
  mi as Columns,
9604
9603
  Ec as CommunityDetails,
9605
9604
  Oc as ContactFooter,
9606
9605
  ji as ContactForm,
9607
- na as Contributors,
9606
+ Xr as Contributors,
9608
9607
  zn as ConversationContext,
9609
9608
  ao as CookieBanner,
9610
9609
  fo as DiscussionConversation,
@@ -9612,44 +9611,44 @@ export {
9612
9611
  ho as DiscussionLikes,
9613
9612
  Lt as DiscussionPost,
9614
9613
  vo as DiscussionThread,
9615
- Oe as Divider,
9614
+ Fe as Divider,
9616
9615
  _c as DownloadSection,
9617
9616
  Xe as EMAILS,
9618
9617
  pi as EmailHelperTextBox,
9619
9618
  Ve as EmptyStateBox,
9620
9619
  Cc as Filters,
9621
- Fs as FlagsProvider,
9622
- ha as Footer,
9623
- oa as Form,
9620
+ Ns as FlagsProvider,
9621
+ fa as Footer,
9622
+ aa as Form,
9624
9623
  ct as FullWidthSection,
9625
9624
  xc as GlobalProviders,
9626
- ga as Header,
9627
- Is as HelperTextBox,
9625
+ ma as Header,
9626
+ Fs as HelperTextBox,
9628
9627
  Nn as HiddenFromScreenReaders,
9629
9628
  jc as HideShowTextBox,
9630
- Ne as HighlightedTextBox,
9631
- Ls as IntlProvider,
9629
+ Oe as HighlightedTextBox,
9630
+ As as IntlProvider,
9632
9631
  ki as InviteForm,
9633
9632
  Lc as InviteModal,
9634
- aa as JoinButton,
9633
+ ta as JoinButton,
9635
9634
  $c as LanguageSwitcher,
9636
9635
  ot as Link,
9637
9636
  At as LoadMore,
9638
9637
  kc as LoadingBlock,
9639
9638
  Te as LoadingPlaceholder,
9640
- Xr as LoadingState,
9641
- sa as Logo,
9639
+ Kr as LoadingState,
9640
+ na as Logo,
9642
9641
  vc as LogoSection,
9643
9642
  bn as MarkdownText,
9644
9643
  yc as MarketingBox,
9645
9644
  Fn as Member,
9646
9645
  Ic as MembersList,
9647
- _a as Modal,
9646
+ pa as Modal,
9648
9647
  ii as MoreMenu,
9649
9648
  wc as NUMBER_OF_USERS,
9650
9649
  li as NavigationMenu,
9651
9650
  Uc as NotFoundError,
9652
- va as Overlay,
9651
+ ha as Overlay,
9653
9652
  Hs as PageHeading,
9654
9653
  co as PageLayout,
9655
9654
  Rc as PasswordRules,
@@ -9659,7 +9658,7 @@ export {
9659
9658
  Nc as Rating,
9660
9659
  Ko as RepliesFeed,
9661
9660
  _o as ResponsesHeading,
9662
- Gr as ResponsiveImage,
9661
+ Wr as ResponsiveImage,
9663
9662
  Ti as SearchForm,
9664
9663
  Pc as ShareLinks,
9665
9664
  Ac as SignupForm,
@@ -9667,21 +9666,21 @@ export {
9667
9666
  yn as StatusBanner,
9668
9667
  Mc as Tabs,
9669
9668
  Dc as Tags,
9670
- Ps as Tooltip,
9669
+ Ss as Tooltip,
9671
9670
  Fc as TopLevelPage,
9672
9671
  Ae as UserContext,
9673
- Ds as UserProvider,
9672
+ Os as UserProvider,
9674
9673
  _e as VisuallyHidden,
9675
9674
  io as addAriaProps,
9676
- ta as getMember,
9675
+ Jr as getMember,
9677
9676
  St as headerData,
9678
9677
  Zc as mapGetStreamData,
9679
- Es as pageReady,
9678
+ js as pageReady,
9680
9679
  qc as repliesFeedMock,
9681
- ms as useCurrentPath,
9680
+ ds as useCurrentPath,
9682
9681
  rt as useEffectAfterMount,
9683
9682
  it as useElementWidth,
9684
- hs as useScrollListener,
9685
- gs as useScrollToHash,
9683
+ fs as useScrollListener,
9684
+ ms as useScrollToHash,
9686
9685
  On as useUser
9687
9686
  };