@apolitical/component-library 2.0.2-ac.1 → 2.0.3-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.mjs CHANGED
@@ -1,23 +1,23 @@
1
- import * as rr from "react";
2
- import L, { memo as Ie, useState as J, useEffect as ie, useRef as me, useMemo as at, createContext as Sn, useContext as Ce, Children as pn, useCallback as Or, Fragment as tt, useReducer as Cn, forwardRef as Za, createElement as ar, Component as Ua, Suspense as Ha } from "react";
1
+ import * as nr from "react";
2
+ import L, { memo as Ie, useState as J, useEffect as ie, useRef as me, useMemo as at, createContext as Sn, useContext as Ce, Children as pn, useCallback as Ar, Fragment as tt, useReducer as Cn, forwardRef as Za, createElement as rr, Component as Ua, Suspense as Ha } from "react";
3
3
  import xt from "lodash.clonedeep";
4
4
  import Wa from "lodash.set";
5
5
  import { useIntl as H, IntlProvider as Va, createIntl as Ya, FormattedMessage as xe } from "react-intl";
6
6
  import Ue from "truncate";
7
- import { QueryClient as Ga, QueryClientProvider as Ka, useMutation as we, useQueryClient as $n, useInfiniteQuery as Fr, useQuery as Qa } from "@tanstack/react-query";
7
+ import { QueryClient as Ga, QueryClientProvider as Ka, useMutation as we, useQueryClient as $n, useInfiniteQuery as Or, useQuery as Qa } from "@tanstack/react-query";
8
8
  import { ReactQueryDevtools as Ja } from "@tanstack/react-query-devtools";
9
9
  import bt from "posthog-js";
10
- import { CookiesProvider as Xa, useCookies as Lr } from "react-cookie";
10
+ import { CookiesProvider as Xa, useCookies as Fr } from "react-cookie";
11
11
  import Pt from "markdown-to-jsx";
12
12
  import { ReactMultiEmail as es } from "react-multi-email";
13
- import Dr from "lodash.get";
13
+ import Lr from "lodash.get";
14
14
  import { ErrorBoundary as ts } from "react-error-boundary";
15
15
  import ns from "react-textarea-autosize";
16
16
  import rs from "lodash.isequal";
17
17
  function Mn(e) {
18
18
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
19
19
  }
20
- var Ir = { exports: {} };
20
+ var Dr = { exports: {} };
21
21
  /*!
22
22
  Copyright (c) 2018 Jed Watson.
23
23
  Licensed under the MIT License (MIT), see
@@ -52,8 +52,8 @@ var Ir = { exports: {} };
52
52
  }
53
53
  e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
54
54
  })();
55
- })(Ir);
56
- var as = Ir.exports;
55
+ })(Dr);
56
+ var as = Dr.exports;
57
57
  const S = /* @__PURE__ */ Mn(as), ss = ({
58
58
  element: e = "span",
59
59
  showOnFocus: t = !0,
@@ -78,11 +78,11 @@ var hn = { exports: {} }, Ye = {};
78
78
  * This source code is licensed under the MIT license found in the
79
79
  * LICENSE file in the root directory of this source tree.
80
80
  */
81
- var sr;
81
+ var ar;
82
82
  function os() {
83
- if (sr)
83
+ if (ar)
84
84
  return Ye;
85
- sr = 1;
85
+ ar = 1;
86
86
  var e = L, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
87
87
  function c(o, f, d) {
88
88
  var u, l = {}, m = null, h = null;
@@ -106,9 +106,9 @@ var Ge = {};
106
106
  * This source code is licensed under the MIT license found in the
107
107
  * LICENSE file in the root directory of this source tree.
108
108
  */
109
- var ir;
109
+ var sr;
110
110
  function cs() {
111
- return ir || (ir = 1, process.env.NODE_ENV !== "production" && function() {
111
+ return sr || (sr = 1, process.env.NODE_ENV !== "production" && function() {
112
112
  var e = L, 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) {
114
114
  if (p === null || typeof p != "object")
@@ -347,8 +347,8 @@ function cs() {
347
347
  } finally {
348
348
  Z = !1, O.current = ue, K(), Error.prepareStackTrace = ae;
349
349
  }
350
- var qe = p ? p.displayName || p.name : "", nr = qe ? Y(qe) : "";
351
- return typeof p == "function" && R.set(p, nr), nr;
350
+ var qe = p ? p.displayName || p.name : "", tr = qe ? Y(qe) : "";
351
+ return typeof p == "function" && R.set(p, tr), tr;
352
352
  }
353
353
  function _e(p, T, M) {
354
354
  return $(p, !1);
@@ -386,13 +386,13 @@ function cs() {
386
386
  }
387
387
  return "";
388
388
  }
389
- var Le = Object.prototype.hasOwnProperty, Un = {}, Hn = b.ReactDebugCurrentFrame;
389
+ var Le = Object.prototype.hasOwnProperty, Zn = {}, Un = b.ReactDebugCurrentFrame;
390
390
  function lt(p) {
391
391
  if (p) {
392
392
  var T = p._owner, M = Ee(p.type, p._source, T ? T.type : null);
393
- Hn.setExtraStackFrame(M);
393
+ Un.setExtraStackFrame(M);
394
394
  } else
395
- Hn.setExtraStackFrame(null);
395
+ Un.setExtraStackFrame(null);
396
396
  }
397
397
  function ja(p, T, M, V, ae) {
398
398
  {
@@ -409,7 +409,7 @@ function cs() {
409
409
  } catch (pe) {
410
410
  te = pe;
411
411
  }
412
- te && !(te instanceof Error) && (lt(ae), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", V || "React class", M, re, typeof te), lt(null)), te instanceof Error && !(te.message in Un) && (Un[te.message] = !0, lt(ae), y("Failed %s type: %s", M, te.message), lt(null));
412
+ te && !(te instanceof Error) && (lt(ae), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", V || "React class", M, re, typeof te), lt(null)), te instanceof Error && !(te.message in Zn) && (Zn[te.message] = !0, lt(ae), y("Failed %s type: %s", M, te.message), lt(null));
413
413
  }
414
414
  }
415
415
  }
@@ -425,24 +425,24 @@ function cs() {
425
425
  }
426
426
  function Ea(p) {
427
427
  try {
428
- return Wn(p), !1;
428
+ return Hn(p), !1;
429
429
  } catch {
430
430
  return !0;
431
431
  }
432
432
  }
433
- function Wn(p) {
433
+ function Hn(p) {
434
434
  return "" + p;
435
435
  }
436
- function Vn(p) {
436
+ function Wn(p) {
437
437
  if (Ea(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.", Ta(p)), Wn(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.", Ta(p)), Hn(p);
439
439
  }
440
440
  var Ve = b.ReactCurrentOwner, Sa = {
441
441
  key: !0,
442
442
  ref: !0,
443
443
  __self: !0,
444
444
  __source: !0
445
- }, Yn, Gn, Dt;
445
+ }, Vn, Yn, Dt;
446
446
  Dt = {};
447
447
  function Ca(p) {
448
448
  if (Le.call(p, "ref")) {
@@ -469,7 +469,7 @@ function cs() {
469
469
  function Pa(p, T) {
470
470
  {
471
471
  var M = function() {
472
- Yn || (Yn = !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));
472
+ Vn || (Vn = !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));
473
473
  };
474
474
  M.isReactWarning = !0, Object.defineProperty(p, "key", {
475
475
  get: M,
@@ -480,7 +480,7 @@ function cs() {
480
480
  function Ra(p, T) {
481
481
  {
482
482
  var M = function() {
483
- Gn || (Gn = !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));
483
+ Yn || (Yn = !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));
484
484
  };
485
485
  M.isReactWarning = !0, Object.defineProperty(p, "ref", {
486
486
  get: M,
@@ -520,7 +520,7 @@ function cs() {
520
520
  function Aa(p, T, M, V, ae) {
521
521
  {
522
522
  var ue, re = {}, te = null, ve = null;
523
- M !== void 0 && (Vn(M), te = "" + M), $a(T) && (Vn(T.key), te = "" + T.key), Ca(T) && (ve = T.ref, Ma(T, ae));
523
+ M !== void 0 && (Wn(M), te = "" + M), $a(T) && (Wn(T.key), te = "" + T.key), Ca(T) && (ve = T.ref, Ma(T, ae));
524
524
  for (ue in T)
525
525
  Le.call(T, ue) && !Sa.hasOwnProperty(ue) && (re[ue] = T[ue]);
526
526
  if (p && p.defaultProps) {
@@ -535,20 +535,20 @@ function cs() {
535
535
  return Na(p, te, ve, ae, V, Ve.current, re);
536
536
  }
537
537
  }
538
- var It = b.ReactCurrentOwner, Kn = b.ReactDebugCurrentFrame;
538
+ var It = b.ReactCurrentOwner, Gn = b.ReactDebugCurrentFrame;
539
539
  function Be(p) {
540
540
  if (p) {
541
541
  var T = p._owner, M = Ee(p.type, p._source, T ? T.type : null);
542
- Kn.setExtraStackFrame(M);
542
+ Gn.setExtraStackFrame(M);
543
543
  } else
544
- Kn.setExtraStackFrame(null);
544
+ Gn.setExtraStackFrame(null);
545
545
  }
546
546
  var Bt;
547
547
  Bt = !1;
548
548
  function qt(p) {
549
549
  return typeof p == "object" && p !== null && p.$$typeof === t;
550
550
  }
551
- function Qn() {
551
+ function Kn() {
552
552
  {
553
553
  if (It.current) {
554
554
  var p = W(It.current.type);
@@ -571,10 +571,10 @@ Check your code at ` + T + ":" + M + ".";
571
571
  return "";
572
572
  }
573
573
  }
574
- var Jn = {};
574
+ var Qn = {};
575
575
  function Fa(p) {
576
576
  {
577
- var T = Qn();
577
+ var T = Kn();
578
578
  if (!T) {
579
579
  var M = typeof p == "string" ? p : p.displayName || p.name;
580
580
  M && (T = `
@@ -584,27 +584,27 @@ Check the top-level render call using <` + M + ">.");
584
584
  return T;
585
585
  }
586
586
  }
587
- function Xn(p, T) {
587
+ function Jn(p, T) {
588
588
  {
589
589
  if (!p._store || p._store.validated || p.key != null)
590
590
  return;
591
591
  p._store.validated = !0;
592
592
  var M = Fa(T);
593
- if (Jn[M])
593
+ if (Qn[M])
594
594
  return;
595
- Jn[M] = !0;
595
+ Qn[M] = !0;
596
596
  var V = "";
597
597
  p && p._owner && p._owner !== It.current && (V = " It was passed a child from " + W(p._owner.type) + "."), Be(p), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', M, V), Be(null);
598
598
  }
599
599
  }
600
- function er(p, T) {
600
+ function Xn(p, T) {
601
601
  {
602
602
  if (typeof p != "object")
603
603
  return;
604
604
  if (Lt(p))
605
605
  for (var M = 0; M < p.length; M++) {
606
606
  var V = p[M];
607
- qt(V) && Xn(V, T);
607
+ qt(V) && Jn(V, T);
608
608
  }
609
609
  else if (qt(p))
610
610
  p._store && (p._store.validated = !0);
@@ -612,7 +612,7 @@ Check the top-level render call using <` + M + ">.");
612
612
  var ae = _(p);
613
613
  if (typeof ae == "function" && ae !== p.entries)
614
614
  for (var ue = ae.call(p), re; !(re = ue.next()).done; )
615
- qt(re.value) && Xn(re.value, T);
615
+ qt(re.value) && Jn(re.value, T);
616
616
  }
617
617
  }
618
618
  }
@@ -653,14 +653,14 @@ Check the top-level render call using <` + M + ">.");
653
653
  p.ref !== null && (Be(p), y("Invalid attribute `ref` supplied to `React.Fragment`."), Be(null));
654
654
  }
655
655
  }
656
- function tr(p, T, M, V, ae, ue) {
656
+ function er(p, T, M, V, ae, ue) {
657
657
  {
658
658
  var re = A(p);
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
662
  var ve = Oa(ae);
663
- ve ? te += ve : te += Qn();
663
+ ve ? te += ve : te += Kn();
664
664
  var pe;
665
665
  p === null ? pe = "null" : Lt(p) ? pe = "array" : p !== void 0 && p.$$typeof === t ? (pe = "<" + (W(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
  }
@@ -673,21 +673,21 @@ Check the top-level render call using <` + M + ">.");
673
673
  if (V)
674
674
  if (Lt(je)) {
675
675
  for (var qe = 0; qe < je.length; qe++)
676
- er(je[qe], p);
676
+ Xn(je[qe], p);
677
677
  Object.freeze && Object.freeze(je);
678
678
  } else
679
679
  y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
680
680
  else
681
- er(je, p);
681
+ Xn(je, p);
682
682
  }
683
683
  return p === r ? Da(he) : La(he), he;
684
684
  }
685
685
  }
686
686
  function Ia(p, T, M) {
687
- return tr(p, T, M, !0);
687
+ return er(p, T, M, !0);
688
688
  }
689
689
  function Ba(p, T, M) {
690
- return tr(p, T, M, !1);
690
+ return er(p, T, M, !1);
691
691
  }
692
692
  var qa = Ba, za = Ia;
693
693
  Ge.Fragment = r, Ge.jsx = qa, Ge.jsxs = za;
@@ -765,7 +765,7 @@ function ds(e, t, n) {
765
765
  }, [g, _, t, y, v, h, m, b]);
766
766
  return j;
767
767
  }
768
- function Br(e, t, n) {
768
+ function Ir(e, t, n) {
769
769
  var r = n === void 0 ? {} : n, s = r.leading, i = r.trailing;
770
770
  return ds(e, t, { maxWait: t, leading: s === void 0 || s, trailing: i === void 0 || i });
771
771
  }
@@ -783,7 +783,7 @@ const st = (e = !0, t = !1, n = "window") => {
783
783
  return n === "window" ? window.innerWidth : n.offsetWidth;
784
784
  }, o = () => {
785
785
  s(c());
786
- }, f = Br(
786
+ }, f = Ir(
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");
@@ -823,7 +823,7 @@ const st = (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 = Br(() => {
826
+ }, d = Ir(() => {
827
827
  f();
828
828
  }, 250);
829
829
  return s;
@@ -838,19 +838,19 @@ const st = (e = !0, t = !1, n = "window") => {
838
838
  r && (r.scrollIntoView(t ? { behavior: "smooth" } : null), n.current = !0);
839
839
  }
840
840
  }, e);
841
- }, qr = (e, t) => {
841
+ }, Br = (e, t) => {
842
842
  Array.isArray(t) || (t = [t]);
843
843
  const n = xt(e);
844
844
  return t.forEach(({ type: r, value: s }) => {
845
845
  Wa(n, r, s);
846
846
  }), n;
847
- }, zr = (e) => {
847
+ }, qr = (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
- }, Zr = (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]));
@@ -871,7 +871,7 @@ const st = (e = !0, t = !1, n = "window") => {
871
871
  weeks: 52,
872
872
  days: 365
873
873
  }
874
- }, ps = (e, t = "en") => new Date(e).toLocaleString(t, { day: "numeric", month: "short" }), Ur = (e, t = "en") => new Date(e).toLocaleString(t, {
874
+ }, ps = (e, t = "en") => new Date(e).toLocaleString(t, { day: "numeric", month: "short" }), Zr = (e, t = "en") => new Date(e).toLocaleString(t, {
875
875
  weekday: "long",
876
876
  day: "numeric",
877
877
  month: "short",
@@ -1275,9 +1275,9 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1275
1275
  es: _s,
1276
1276
  fr: vs,
1277
1277
  pt: bs
1278
- }, Symbol.toStringTag, { value: "Module" })), Hr = (e) => e in Rn, Se = (e, t, n, r, s = {}) => {
1278
+ }, Symbol.toStringTag, { value: "Module" })), Ur = (e) => e in Rn, Se = (e, t, n, r, s = {}) => {
1279
1279
  let i = "";
1280
- return Hr(`${t}_${n}`) ? i = e({ id: `${t}_${n}` }, s) : i = e({ id: t }, { [r]: n, ...s }), i;
1280
+ return Ur(`${t}_${n}`) ? i = e({ id: `${t}_${n}` }, s) : i = e({ id: t }, { [r]: n, ...s }), i;
1281
1281
  }, xs = (e, t, n) => {
1282
1282
  if (!e || e === 0)
1283
1283
  return "0";
@@ -1315,8 +1315,8 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1315
1315
  }) => {
1316
1316
  const h = st(typeof t == "object");
1317
1317
  if (typeof t == "object" && typeof h == "number") {
1318
- const _ = Object.assign({}, t), b = zr(Object.keys(_));
1319
- t = Zr(h, b, _);
1318
+ const _ = Object.assign({}, t), b = qr(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");
@@ -1348,7 +1348,22 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1348
1348
  const Oe = ({ className: e = "", maxWidth: t = !1 }) => {
1349
1349
  const n = t ? { "--max-width": `${t / 16}rem` } : {};
1350
1350
  return /* @__PURE__ */ a.jsx("hr", { className: S(e, { "has-max-width": t }), style: n });
1351
- }, or = {
1351
+ }, it = ({
1352
+ href: e,
1353
+ children: t,
1354
+ fallbackElement: n,
1355
+ className: r = "",
1356
+ onClick: s,
1357
+ gtmContext: i,
1358
+ gtmType: c,
1359
+ ...o
1360
+ }) => {
1361
+ if (e) {
1362
+ const f = { ...o };
1363
+ return s && (f.onClick = s), i && (f["data-gtm-event-context"] = i), c && (f["data-gtm-event-type"] = c), /* @__PURE__ */ a.jsx("a", { href: e, className: S("gtm-trackable", r), ...f, children: t });
1364
+ }
1365
+ return n ? L.createElement(n, { children: t, className: r, ...o }) : t;
1366
+ }, ir = {
1352
1367
  card: {
1353
1368
  range: [
1354
1369
  {
@@ -1456,7 +1471,7 @@ const Oe = ({ className: e = "", maxWidth: t = !1 }) => {
1456
1471
  range: t,
1457
1472
  sizes: n
1458
1473
  }) => {
1459
- const { range: r, sizes: s } = e ? or[e] : or.fallback;
1474
+ const { range: r, sizes: s } = e ? ir[e] : ir.fallback;
1460
1475
  return { range: t && t.length > 0 ? t : r, sizes: n || s };
1461
1476
  }, Ts = ({ format: e, height: t, query: n, width: r }) => {
1462
1477
  let s = `w=${r}&h=${t}`;
@@ -1467,7 +1482,7 @@ const Oe = ({ className: e = "", maxWidth: t = !1 }) => {
1467
1482
  query: r,
1468
1483
  width: i
1469
1484
  })} ${i}w`).join(", ");
1470
- const Nn = ({ image: e, className: t, testId: n }) => {
1485
+ const Hr = ({ image: e, className: t, testId: n }) => {
1471
1486
  const {
1472
1487
  description: r,
1473
1488
  height: s,
@@ -1507,29 +1522,6 @@ const Nn = ({ image: e, className: t, testId: n }) => {
1507
1522
  )
1508
1523
  ] });
1509
1524
  };
1510
- const hc = ({ image: e, className: t, testId: n }) => /* @__PURE__ */ a.jsx(
1511
- "div",
1512
- {
1513
- className: `image-container ${t}`,
1514
- "data-testid": n || "image-container",
1515
- children: e && /* @__PURE__ */ a.jsx(Nn, { image: { ...e }, className: "image" })
1516
- }
1517
- ), it = ({
1518
- href: e,
1519
- children: t,
1520
- fallbackElement: n,
1521
- className: r = "",
1522
- onClick: s,
1523
- gtmContext: i,
1524
- gtmType: c,
1525
- ...o
1526
- }) => {
1527
- if (e) {
1528
- const f = { ...o };
1529
- return s && (f.onClick = s), i && (f["data-gtm-event-context"] = i), c && (f["data-gtm-event-type"] = c), /* @__PURE__ */ a.jsx("a", { href: e, className: S("gtm-trackable", r), ...f, children: t });
1530
- }
1531
- return n ? L.createElement(n, { children: t, className: r, ...o }) : t;
1532
- };
1533
1525
  let Ke = !1;
1534
1526
  const Es = ({ isOpen: e = !1, isLoading: t = !1, children: n }) => {
1535
1527
  const r = H(), s = me(null), [i, c] = J("hidden");
@@ -1560,7 +1552,7 @@ const Es = ({ isOpen: e = !1, isLoading: t = !1, children: n }) => {
1560
1552
  );
1561
1553
  };
1562
1554
  const ot = ({ children: e, className: t = "", ...n }) => /* @__PURE__ */ a.jsx("section", { className: S("full-width-section", t), ...n, children: e });
1563
- const gc = ({ text: e, buttons: t, className: n = "" }) => {
1555
+ const hc = ({ text: e, buttons: t, className: n = "" }) => {
1564
1556
  const r = [];
1565
1557
  return t.forEach((s) => {
1566
1558
  r.push({
@@ -1582,7 +1574,7 @@ const gc = ({ text: e, buttons: t, className: n = "" }) => {
1582
1574
  /* @__PURE__ */ a.jsx(Rt, { buttons: r })
1583
1575
  ] }) });
1584
1576
  };
1585
- const _c = ({
1577
+ const gc = ({
1586
1578
  title: e = !1,
1587
1579
  logos: t = [],
1588
1580
  className: n = ""
@@ -1711,12 +1703,12 @@ const Ss = [
1711
1703
  }
1712
1704
  )
1713
1705
  ] }),
1714
- n && /* @__PURE__ */ a.jsx(Nn, { image: { ...n, aspect: "banner" } })
1706
+ n && /* @__PURE__ */ a.jsx(Hr, { image: { ...n, aspect: "banner" } })
1715
1707
  ] })
1716
1708
  }
1717
1709
  );
1718
- }, vc = Ie(Cs);
1719
- const bc = ({
1710
+ }, _c = Ie(Cs);
1711
+ const vc = ({
1720
1712
  variant: e = "primary",
1721
1713
  button: t = null,
1722
1714
  title: n,
@@ -1787,10 +1779,10 @@ const Rs = ({ children: e, user: t }) => t.isLoading ? null : process.env.REACT_
1787
1779
  };
1788
1780
  return /* @__PURE__ */ a.jsx(Va, { locale: r, messages: s, children: e });
1789
1781
  }, Ne = Sn({ isLoading: !0 });
1790
- function An() {
1782
+ function Nn() {
1791
1783
  return Ce(Ne);
1792
1784
  }
1793
- const As = ({ children: e, user: t }) => /* @__PURE__ */ a.jsx(Ne.Provider, { value: t, children: e }), yc = ({ bootstrap: e, children: t, intl: n }) => {
1785
+ const As = ({ children: e, user: t }) => /* @__PURE__ */ a.jsx(Ne.Provider, { value: t, children: e }), bc = ({ bootstrap: e, children: t, intl: n }) => {
1794
1786
  const [r, s] = J({ isLoading: !0 });
1795
1787
  return ie(() => {
1796
1788
  e().then((i) => {
@@ -1804,7 +1796,7 @@ const As = ({ children: e, user: t }) => /* @__PURE__ */ a.jsx(Ne.Provider, { va
1804
1796
  default: "dpo@apolitical.co",
1805
1797
  eu: "dpo.agl@apolitical.foundation"
1806
1798
  }
1807
- }, xc = "200,000+";
1799
+ }, yc = "200,000+";
1808
1800
  const Wr = ({ label: e = !1, className: t = "", children: n }) => {
1809
1801
  const r = H();
1810
1802
  return /* @__PURE__ */ a.jsxs("details", { className: S("collapsible-section", t), children: [
@@ -1841,8 +1833,8 @@ const We = ({
1841
1833
  let s = n && !!Object.keys(n).length;
1842
1834
  const i = typeof n == "object" && "breakpoints" in n, c = st(i);
1843
1835
  if (i && typeof n == "object" && typeof c == "number") {
1844
- const l = Object.assign({}, n.breakpoints), m = zr(Object.keys(l));
1845
- s = Zr(c, m, l);
1836
+ const l = Object.assign({}, n.breakpoints), m = qr(Object.keys(l));
1837
+ s = zr(c, m, l);
1846
1838
  }
1847
1839
  const {
1848
1840
  breakpoints: o,
@@ -1891,7 +1883,7 @@ const Os = ({
1891
1883
  }
1892
1884
  ) : /* @__PURE__ */ a.jsx("p", { children: r })
1893
1885
  ] });
1894
- const wc = ({
1886
+ const xc = ({
1895
1887
  className: e = "",
1896
1888
  show: t = !1,
1897
1889
  hide: n = !1,
@@ -2018,7 +2010,7 @@ const wc = ({
2018
2010
  ),
2019
2011
  /* @__PURE__ */ a.jsx("span", { id: `content-after-iframe-${n}`, tabIndex: -1 })
2020
2012
  ] });
2021
- }, cr = (e) => {
2013
+ }, or = (e) => {
2022
2014
  let t = "";
2023
2015
  return e && typeof e != "string" && typeof e != "number" && typeof e != "boolean" && "type" in e && (t = e.type), t;
2024
2016
  }, zs = ({
@@ -2032,15 +2024,15 @@ const wc = ({
2032
2024
  if (!(!i || typeof i == "string" || typeof i == "number") && L.isValidElement(i)) {
2033
2025
  const c = i.type;
2034
2026
  if (["button", "center", "span", "strong"].includes(c) && i.props && i.props.children && i.props.children[0])
2035
- for ((c === "button" || cr(i.props.children[0]) === "button") && (s = !0), r = i.props.children[0]; r && typeof r != "string" && !(typeof r == "boolean" || typeof r == "number" || !L.isValidElement(r)); )
2027
+ for ((c === "button" || or(i.props.children[0]) === "button") && (s = !0), r = i.props.children[0]; r && typeof r != "string" && !(typeof r == "boolean" || typeof r == "number" || !L.isValidElement(r)); )
2036
2028
  if (r.props && r.props.children && r.props.children[0])
2037
- r = r.props.children[0], r && cr(r) === "button" && (s = !0);
2029
+ r = r.props.children[0], r && or(r) === "button" && (s = !0);
2038
2030
  else
2039
2031
  break;
2040
2032
  }
2041
2033
  return s ? (n = { ...n, className: "button primary medium" }, /* @__PURE__ */ a.jsx("p", { className: "center", children: /* @__PURE__ */ a.jsx(se, { variant: "primary", size: "medium", ...n, children: r }) })) : /* @__PURE__ */ a.jsx("a", { ...n, children: r });
2042
2034
  }, Zs = ({ children: e }) => /* @__PURE__ */ a.jsx("span", { children: e });
2043
- const lr = ({ className: e = "", options: t = {}, children: n }) => {
2035
+ const cr = ({ className: e = "", options: t = {}, children: n }) => {
2044
2036
  n = n.replace(/^<br\/?>/, "");
2045
2037
  const r = {
2046
2038
  wrapper: L.Fragment,
@@ -2142,7 +2134,7 @@ const Ut = "loadingBlock_", Vs = ({ progress: e = 0, steps: t = !1, className: n
2142
2134
  ]
2143
2135
  }
2144
2136
  );
2145
- }, jc = Ie(Vs);
2137
+ }, wc = Ie(Vs);
2146
2138
  const Te = ({ element: e = "div", className: t = "", ...n }) => /* @__PURE__ */ a.jsx(
2147
2139
  Pn,
2148
2140
  {
@@ -2180,13 +2172,13 @@ const bn = {
2180
2172
  if (r <= t * (s + 1))
2181
2173
  return dt[s];
2182
2174
  };
2183
- const dr = 256, ct = ({
2175
+ const lr = 256, ct = ({
2184
2176
  className: e = "",
2185
2177
  src: t = "",
2186
2178
  name: n,
2187
2179
  alt: r,
2188
- width: s = dr,
2189
- height: i = dr,
2180
+ width: s = lr,
2181
+ height: i = lr,
2190
2182
  ...c
2191
2183
  }) => {
2192
2184
  const [o, f] = J(!1), d = me(null);
@@ -2244,7 +2236,7 @@ const dr = 256, ct = ({
2244
2236
  let f = `${o}${(s || i) && c ? `, ${n}` : n}`;
2245
2237
  return f.length > r && (f = o), f.length > r && (f = Ue(f, r)), f;
2246
2238
  };
2247
- const On = ({
2239
+ const An = ({
2248
2240
  element: e = "div",
2249
2241
  member: t = "community",
2250
2242
  additionalContent: n = !1,
@@ -2256,7 +2248,7 @@ const On = ({
2256
2248
  o.name || (o.name = c.formatMessage({
2257
2249
  id: `member_${typeof t == "string" ? t : "community"}`
2258
2250
  }));
2259
- const { name: f, url: d, image: u } = o, l = Gs(o), m = n && n.createdAt ? gn(n.createdAt) : !1, h = n && n.createdAt ? Ur(n.createdAt) : "";
2251
+ const { name: f, url: d, image: u } = o, l = Gs(o), m = n && n.createdAt ? gn(n.createdAt) : !1, h = n && n.createdAt ? Zr(n.createdAt) : "";
2260
2252
  return L.createElement(e, {
2261
2253
  className: S("member text-medium", i),
2262
2254
  children: /* @__PURE__ */ a.jsxs(
@@ -2286,7 +2278,7 @@ const On = ({
2286
2278
  )
2287
2279
  });
2288
2280
  };
2289
- const ur = {
2281
+ const dr = {
2290
2282
  small: 24,
2291
2283
  medium: 48
2292
2284
  }, Jr = ({
@@ -2318,8 +2310,8 @@ const ur = {
2318
2310
  {
2319
2311
  name: v,
2320
2312
  src: _,
2321
- width: ur[s || "medium"],
2322
- height: ur[s || "medium"]
2313
+ width: dr[s || "medium"],
2314
+ height: dr[s || "medium"]
2323
2315
  }
2324
2316
  );
2325
2317
  } else if (m === o) {
@@ -2372,7 +2364,7 @@ const ur = {
2372
2364
  ] });
2373
2365
  }
2374
2366
  if (u && !i || c)
2375
- return /* @__PURE__ */ a.jsx("p", { className: "details", children: c ? n.formatMessage({ id: "card_bootcamp" }) : Ur(u) });
2367
+ return /* @__PURE__ */ a.jsx("p", { className: "details", children: c ? n.formatMessage({ id: "card_bootcamp" }) : Zr(u) });
2376
2368
  if (o)
2377
2369
  return /* @__PURE__ */ a.jsx(
2378
2370
  jt,
@@ -2522,7 +2514,7 @@ const ur = {
2522
2514
  );
2523
2515
  }
2524
2516
  return null;
2525
- }, fr = {
2517
+ }, ur = {
2526
2518
  cube: "box",
2527
2519
  graduationCap: "graduation-cap",
2528
2520
  person: "user",
@@ -2530,7 +2522,7 @@ const ur = {
2530
2522
  star: "star_empty_thin"
2531
2523
  }, Js = (e) => {
2532
2524
  let t = e;
2533
- return Object.keys(fr).includes(e) && (t = fr[e]), `url(${rt}icons/${t}.svg)`;
2525
+ return Object.keys(ur).includes(e) && (t = ur[e]), `url(${rt}icons/${t}.svg)`;
2534
2526
  };
2535
2527
  const Xs = {
2536
2528
  title: 66,
@@ -2548,7 +2540,7 @@ const Xs = {
2548
2540
  const c = H(), o = Ce(Ne), f = o && typeof o.id == "string", [d, u] = J({
2549
2541
  data: null,
2550
2542
  isLoading: !0
2551
- }), { data: l, isLoading: m } = d, h = Or(() => {
2543
+ }), { data: l, isLoading: m } = d, h = Ar(() => {
2552
2544
  n(t, f).then((G) => {
2553
2545
  u(() => ({ data: G, isLoading: !1 }));
2554
2546
  }).catch(() => u((G) => ({ ...G, isLoading: !1 })));
@@ -2572,7 +2564,7 @@ const Xs = {
2572
2564
  className: _,
2573
2565
  length: b,
2574
2566
  gtmEvent: y
2575
- } = kt[g], j = Hr(`card_label_${g}`) ? c.formatMessage({ id: `card_label_${g}` }) : !1, w = l.slug ? `${v}${l.slug}` : !1, x = { ...Xs, ...b };
2567
+ } = kt[g], j = Ur(`card_label_${g}`) ? c.formatMessage({ id: `card_label_${g}` }) : !1, w = l.slug ? `${v}${l.slug}` : !1, x = { ...Xs, ...b };
2576
2568
  let P = { className: "card" };
2577
2569
  w && (P = {
2578
2570
  href: w,
@@ -2609,7 +2601,7 @@ const Xs = {
2609
2601
  ),
2610
2602
  l.banner ? /* @__PURE__ */ a.jsxs("p", { className: "img", children: [
2611
2603
  l.registered && /* @__PURE__ */ a.jsx(jt, { size: "small", variant: "registered", children: c.formatMessage({ id: "card_registered" }) }),
2612
- /* @__PURE__ */ a.jsx(Nn, { image: l.banner })
2604
+ /* @__PURE__ */ a.jsx(Hr, { image: l.banner })
2613
2605
  ] }) : _ === "people" ? /* @__PURE__ */ a.jsx(
2614
2606
  ct,
2615
2607
  {
@@ -2834,7 +2826,7 @@ const ri = ({
2834
2826
  ]
2835
2827
  }
2836
2828
  );
2837
- }, kc = ({
2829
+ }, jc = ({
2838
2830
  carousels: e = [],
2839
2831
  isLoading: t,
2840
2832
  title: n,
@@ -2899,7 +2891,7 @@ const Wt = "joinCommunityButton", ea = ({
2899
2891
  }
2900
2892
  );
2901
2893
  };
2902
- const Vt = "communityDetails_", Tc = ({
2894
+ const Vt = "communityDetails_", kc = ({
2903
2895
  className: e = "",
2904
2896
  isMember: t = !1,
2905
2897
  slug: n,
@@ -2946,7 +2938,7 @@ const Vt = "communityDetails_", Tc = ({
2946
2938
  )
2947
2939
  ] });
2948
2940
  };
2949
- const Ec = ({ breadcrumbs: e, cutoff: t = 20, className: n = "" }) => {
2941
+ const Tc = ({ breadcrumbs: e, cutoff: t = 20, className: n = "" }) => {
2950
2942
  const r = H();
2951
2943
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2952
2944
  /* @__PURE__ */ a.jsx(
@@ -2970,7 +2962,7 @@ const Ec = ({ breadcrumbs: e, cutoff: t = 20, className: n = "" }) => {
2970
2962
  ) })
2971
2963
  ] });
2972
2964
  };
2973
- const Sc = ({
2965
+ const Ec = ({
2974
2966
  options: e,
2975
2967
  allOption: t = !1,
2976
2968
  allowMultiple: n = !0,
@@ -3020,7 +3012,7 @@ const Yt = {
3020
3012
  es: "Español",
3021
3013
  fr: "Français",
3022
3014
  pt: "Português"
3023
- }, ft = "languageSwitcher_", Cc = ({
3015
+ }, ft = "languageSwitcher_", Sc = ({
3024
3016
  currentLanguage: e,
3025
3017
  isOriginalLanguage: t = !1,
3026
3018
  isHumanTranslation: n = !1,
@@ -3292,7 +3284,7 @@ ${Qe(t, "mailto", n)}&src=email`
3292
3284
  onClick: (r, s) => (r.preventDefault(), r.stopPropagation(), navigator.clipboard.writeText(s))
3293
3285
  }
3294
3286
  ];
3295
- const di = "shareLinks_", $c = ({
3287
+ const di = "shareLinks_", Cc = ({
3296
3288
  title: e,
3297
3289
  link: t,
3298
3290
  referrer: n,
@@ -3328,7 +3320,7 @@ const di = "shareLinks_", $c = ({
3328
3320
  }) })
3329
3321
  ] });
3330
3322
  };
3331
- const Mc = ({ tabs: e, className: t = "" }) => {
3323
+ const $c = ({ tabs: e, className: t = "" }) => {
3332
3324
  var f;
3333
3325
  const n = (d, u, l) => (d || (d = `panel-${window.btoa(u)}-${l}`), d);
3334
3326
  let r = e.findIndex((d) => d.current === !0);
@@ -3407,7 +3399,7 @@ const pt = "emailHelperTextBox_", mi = ({
3407
3399
  link: {},
3408
3400
  mail: {},
3409
3401
  error: ""
3410
- }), [o, f] = J(!1), d = Or(
3402
+ }), [o, f] = J(!1), d = Ar(
3411
3403
  (h) => {
3412
3404
  h.preventDefault(), h.stopPropagation();
3413
3405
  const g = (v) => {
@@ -4190,8 +4182,8 @@ const ht = "passwordRules_", aa = "isMoreThanEightCharacters", sa = "includesNum
4190
4182
  )
4191
4183
  ) })
4192
4184
  ] });
4193
- }, Pc = Ie(xi);
4194
- const Rc = ({
4185
+ }, Mc = Ie(xi);
4186
+ const Pc = ({
4195
4187
  text: e = {},
4196
4188
  topRating: t = 5,
4197
4189
  functions: {
@@ -4483,7 +4475,7 @@ const ki = ({
4483
4475
  )
4484
4476
  }
4485
4477
  );
4486
- }, mr = async ({ ref: e, validateEmail: t, dispatch: n }) => {
4478
+ }, fr = async ({ ref: e, validateEmail: t, dispatch: n }) => {
4487
4479
  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,}))$/;
4488
4480
  if (!e.current.validity.valid || !r.test(e.current.value))
4489
4481
  return n([{ type: "validFields.email", value: !1 }]);
@@ -4574,11 +4566,11 @@ var yn = { exports: {} }, xn = { exports: {} }, oe = {};
4574
4566
  * This source code is licensed under the MIT license found in the
4575
4567
  * LICENSE file in the root directory of this source tree.
4576
4568
  */
4577
- var pr;
4569
+ var mr;
4578
4570
  function Ei() {
4579
- if (pr)
4571
+ if (mr)
4580
4572
  return oe;
4581
- pr = 1;
4573
+ mr = 1;
4582
4574
  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;
4583
4575
  function j(x) {
4584
4576
  if (typeof x == "object" && x !== null) {
@@ -4650,9 +4642,9 @@ var ce = {};
4650
4642
  * This source code is licensed under the MIT license found in the
4651
4643
  * LICENSE file in the root directory of this source tree.
4652
4644
  */
4653
- var hr;
4645
+ var pr;
4654
4646
  function Si() {
4655
- return hr || (hr = 1, process.env.NODE_ENV !== "production" && function() {
4647
+ return pr || (pr = 1, process.env.NODE_ENV !== "production" && function() {
4656
4648
  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;
4657
4649
  function j($) {
4658
4650
  return typeof $ == "string" || typeof $ == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
@@ -4734,17 +4726,17 @@ function Si() {
4734
4726
  }()), ce;
4735
4727
  }
4736
4728
  process.env.NODE_ENV === "production" ? xn.exports = Ei() : xn.exports = Si();
4737
- var Fn = xn.exports;
4729
+ var On = xn.exports;
4738
4730
  /*
4739
4731
  object-assign
4740
4732
  (c) Sindre Sorhus
4741
4733
  @license MIT
4742
4734
  */
4743
- var Qt, gr;
4735
+ var Qt, hr;
4744
4736
  function Ci() {
4745
- if (gr)
4737
+ if (hr)
4746
4738
  return Qt;
4747
- gr = 1;
4739
+ hr = 1;
4748
4740
  var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
4749
4741
  function r(i) {
4750
4742
  if (i == null)
@@ -4787,27 +4779,27 @@ function Ci() {
4787
4779
  return f;
4788
4780
  }, Qt;
4789
4781
  }
4790
- var Jt, _r;
4791
- function Ln() {
4792
- if (_r)
4782
+ var Jt, gr;
4783
+ function Fn() {
4784
+ if (gr)
4793
4785
  return Jt;
4794
- _r = 1;
4786
+ gr = 1;
4795
4787
  var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
4796
4788
  return Jt = e, Jt;
4797
4789
  }
4798
- var Xt, vr;
4790
+ var Xt, _r;
4799
4791
  function ca() {
4800
- return vr || (vr = 1, Xt = Function.call.bind(Object.prototype.hasOwnProperty)), Xt;
4792
+ return _r || (_r = 1, Xt = Function.call.bind(Object.prototype.hasOwnProperty)), Xt;
4801
4793
  }
4802
- var en, br;
4794
+ var en, vr;
4803
4795
  function $i() {
4804
- if (br)
4796
+ if (vr)
4805
4797
  return en;
4806
- br = 1;
4798
+ vr = 1;
4807
4799
  var e = function() {
4808
4800
  };
4809
4801
  if (process.env.NODE_ENV !== "production") {
4810
- var t = Ln(), n = {}, r = ca();
4802
+ var t = Fn(), n = {}, r = ca();
4811
4803
  e = function(i) {
4812
4804
  var c = "Warning: " + i;
4813
4805
  typeof console < "u" && console.error(c);
@@ -4849,12 +4841,12 @@ function $i() {
4849
4841
  process.env.NODE_ENV !== "production" && (n = {});
4850
4842
  }, en = s, en;
4851
4843
  }
4852
- var tn, yr;
4844
+ var tn, br;
4853
4845
  function Mi() {
4854
- if (yr)
4846
+ if (br)
4855
4847
  return tn;
4856
- yr = 1;
4857
- var e = Fn, t = Ci(), n = Ln(), r = ca(), s = $i(), i = function() {
4848
+ br = 1;
4849
+ var e = On, t = Ci(), n = Fn(), r = ca(), s = $i(), i = function() {
4858
4850
  };
4859
4851
  process.env.NODE_ENV !== "production" && (i = function(o) {
4860
4852
  var f = "Warning: " + o;
@@ -5171,12 +5163,12 @@ Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
5171
5163
  return h.checkPropTypes = s, h.resetWarningCache = s.resetWarningCache, h.PropTypes = h, h;
5172
5164
  }, tn;
5173
5165
  }
5174
- var nn, xr;
5166
+ var nn, yr;
5175
5167
  function Pi() {
5176
- if (xr)
5168
+ if (yr)
5177
5169
  return nn;
5178
- xr = 1;
5179
- var e = Ln();
5170
+ yr = 1;
5171
+ var e = Fn();
5180
5172
  function t() {
5181
5173
  }
5182
5174
  function n() {
@@ -5221,7 +5213,7 @@ function Pi() {
5221
5213
  }, nn;
5222
5214
  }
5223
5215
  if (process.env.NODE_ENV !== "production") {
5224
- var Ri = Fn, Ni = !0;
5216
+ var Ri = On, Ni = !0;
5225
5217
  yn.exports = Mi()(Ri.isElement, Ni);
5226
5218
  } else
5227
5219
  yn.exports = Pi()();
@@ -5325,11 +5317,11 @@ var At = /* @__PURE__ */ function(e) {
5325
5317
  var s = this.props;
5326
5318
  s.sitekey, s.onChange, s.theme, s.type, s.tabindex, s.onExpired, s.onErrored, s.size, s.stoken, s.grecaptcha, s.badge, s.hl, s.isolated;
5327
5319
  var i = Fi(s, Oi);
5328
- return /* @__PURE__ */ rr.createElement("div", wn({}, i, {
5320
+ return /* @__PURE__ */ nr.createElement("div", wn({}, i, {
5329
5321
  ref: this.handleRecaptchaRef
5330
5322
  }));
5331
5323
  }, t;
5332
- }(rr.Component);
5324
+ }(nr.Component);
5333
5325
  At.displayName = "ReCAPTCHA";
5334
5326
  At.propTypes = {
5335
5327
  sitekey: ye.string.isRequired,
@@ -5355,7 +5347,7 @@ At.defaultProps = {
5355
5347
  size: "normal",
5356
5348
  badge: "bottomright"
5357
5349
  };
5358
- var Dn = Fn, Di = {
5350
+ var Ln = On, Di = {
5359
5351
  childContextTypes: !0,
5360
5352
  contextType: !0,
5361
5353
  contextTypes: !0,
@@ -5388,22 +5380,22 @@ var Dn = Fn, Di = {
5388
5380
  displayName: !0,
5389
5381
  propTypes: !0,
5390
5382
  type: !0
5391
- }, In = {};
5392
- In[Dn.ForwardRef] = Bi;
5393
- In[Dn.Memo] = la;
5394
- function wr(e) {
5395
- return Dn.isMemo(e) ? la : In[e.$$typeof] || Di;
5383
+ }, Dn = {};
5384
+ Dn[Ln.ForwardRef] = Bi;
5385
+ Dn[Ln.Memo] = la;
5386
+ function xr(e) {
5387
+ return Ln.isMemo(e) ? la : Dn[e.$$typeof] || Di;
5396
5388
  }
5397
- var qi = Object.defineProperty, zi = Object.getOwnPropertyNames, jr = Object.getOwnPropertySymbols, Zi = Object.getOwnPropertyDescriptor, Ui = Object.getPrototypeOf, kr = Object.prototype;
5389
+ var qi = Object.defineProperty, zi = Object.getOwnPropertyNames, wr = Object.getOwnPropertySymbols, Zi = Object.getOwnPropertyDescriptor, Ui = Object.getPrototypeOf, jr = Object.prototype;
5398
5390
  function da(e, t, n) {
5399
5391
  if (typeof t != "string") {
5400
- if (kr) {
5392
+ if (jr) {
5401
5393
  var r = Ui(t);
5402
- r && r !== kr && da(e, r, n);
5394
+ r && r !== jr && da(e, r, n);
5403
5395
  }
5404
5396
  var s = zi(t);
5405
- jr && (s = s.concat(jr(t)));
5406
- for (var i = wr(e), c = wr(t), o = 0; o < s.length; ++o) {
5397
+ wr && (s = s.concat(wr(t)));
5398
+ for (var i = xr(e), c = xr(t), o = 0; o < s.length; ++o) {
5407
5399
  var f = s[o];
5408
5400
  if (!Ii[f] && !(n && n[f]) && !(c && c[f]) && !(i && i[f])) {
5409
5401
  var d = Zi(t, f);
@@ -5524,10 +5516,10 @@ function Ki(e, t) {
5524
5516
  var l = t.globalName, m = this.props;
5525
5517
  m.asyncScriptOnLoad;
5526
5518
  var h = m.forwardedRef, g = Vi(m, ["asyncScriptOnLoad", "forwardedRef"]);
5527
- return l && typeof window < "u" && (g[l] = typeof window[l] < "u" ? window[l] : void 0), g.ref = h, ar(r, g);
5519
+ return l && typeof window < "u" && (g[l] = typeof window[l] < "u" ? window[l] : void 0), g.ref = h, rr(r, g);
5528
5520
  }, f;
5529
5521
  }(Ua), c = Za(function(o, f) {
5530
- return ar(i, kn({}, o, {
5522
+ return rr(i, kn({}, o, {
5531
5523
  forwardedRef: f
5532
5524
  }));
5533
5525
  });
@@ -5591,7 +5583,7 @@ const Xi = Ki(Ji, {
5591
5583
  }),
5592
5584
  functions: {
5593
5585
  onBlur: () => {
5594
- mr({ ref: c.email, validateEmail: t, dispatch: f });
5586
+ fr({ ref: c.email, validateEmail: t, dispatch: f });
5595
5587
  },
5596
5588
  onChange: (v, _) => {
5597
5589
  _ && _({
@@ -5705,7 +5697,7 @@ const Xi = Ki(Ji, {
5705
5697
  o.validFields[b] !== c[b].current.validity.valid && (_.push({
5706
5698
  type: `validFields.${b}`,
5707
5699
  value: c[b].current.validity.valid
5708
- }), b === "email" && mr({ ref: c.email, validateEmail: t, dispatch: f }));
5700
+ }), b === "email" && fr({ ref: c.email, validateEmail: t, dispatch: f }));
5709
5701
  }), _.length && f(_);
5710
5702
  }
5711
5703
  },
@@ -5764,7 +5756,7 @@ const no = {
5764
5756
  loadRecaptcha: !1,
5765
5757
  showSuccessMessage: !1,
5766
5758
  showError: !1
5767
- }, Nc = ({
5759
+ }, Rc = ({
5768
5760
  className: e = "",
5769
5761
  functions: t = {
5770
5762
  validateEmail: () => Promise.resolve(),
@@ -5785,13 +5777,13 @@ const no = {
5785
5777
  dataToSubmit: s = { ref: "sign-up-form" },
5786
5778
  ...i
5787
5779
  }) => {
5788
- const c = H(), [o, f] = Cn(qr, no), {
5780
+ const c = H(), [o, f] = Cn(Br, no), {
5789
5781
  validFields: d,
5790
5782
  emailDetails: u,
5791
5783
  shouldManuallyApprove: l,
5792
5784
  showSuccessMessage: m,
5793
5785
  showError: h
5794
- } = o, [g, v] = Lr([
5786
+ } = o, [g, v] = Fr([
5795
5787
  "signup-this-session",
5796
5788
  "functional-cookie-consent"
5797
5789
  ]), _ = {
@@ -5903,7 +5895,7 @@ const no = {
5903
5895
  );
5904
5896
  };
5905
5897
  let rn;
5906
- const an = "contactFooter_", Ac = ({ onSuccess: e = () => {
5898
+ const an = "contactFooter_", Nc = ({ onSuccess: e = () => {
5907
5899
  }, onFailure: t = () => {
5908
5900
  } }) => {
5909
5901
  const n = me(null), [r, s] = L.useState(0), [i, c] = L.useState(!1), o = () => {
@@ -5940,7 +5932,7 @@ const an = "contactFooter_", Ac = ({ onSuccess: e = () => {
5940
5932
  }
5941
5933
  )
5942
5934
  ] }) });
5943
- }, Oc = ({ activeLink: e, ...t }) => /* @__PURE__ */ a.jsx(ot, { children: /* @__PURE__ */ a.jsx(fi, { layout: "1-3", children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
5935
+ }, Ac = ({ activeLink: e, ...t }) => /* @__PURE__ */ a.jsx(ot, { children: /* @__PURE__ */ a.jsx(fi, { layout: "1-3", children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
5944
5936
  /* @__PURE__ */ a.jsx(ci, { activeLink: e }),
5945
5937
  /* @__PURE__ */ a.jsx(Us, { ...t })
5946
5938
  ] }) }) });
@@ -5949,7 +5941,7 @@ const sn = "cookieBanner_", on = [
5949
5941
  "apolitical-performance-cookie-consent",
5950
5942
  "functional-cookie-consent"
5951
5943
  ], cn = new Date(Date.now() + 12 * 30 * 24 * 60 * 60 * 1e3), ro = () => {
5952
- const e = H(), [t, n, r] = Lr(on), [s, i] = J(
5944
+ const e = H(), [t, n, r] = Fr(on), [s, i] = J(
5953
5945
  !t["apol-cookie-banner"]
5954
5946
  ), c = () => {
5955
5947
  on.forEach((u) => {
@@ -6089,7 +6081,7 @@ const sn = "cookieBanner_", on = [
6089
6081
  facebook: { href: "https://www.facebook.com/apoliticalco" }
6090
6082
  }
6091
6083
  };
6092
- const Ze = "footer_", Tt = "SiteFooter", Tr = ({ group: e }) => {
6084
+ const Ze = "footer_", Tt = "SiteFooter", kr = ({ group: e }) => {
6093
6085
  const t = Re[e].order || [];
6094
6086
  let n = !1;
6095
6087
  return "text" in Re[e] && (n = Re[e].text), /* @__PURE__ */ a.jsxs(tt, { children: [
@@ -6146,8 +6138,8 @@ const Ze = "footer_", Tt = "SiteFooter", Tr = ({ group: e }) => {
6146
6138
  }
6147
6139
  ),
6148
6140
  /* @__PURE__ */ a.jsx("footer", { children: ["platform", "community", "company", "contact"].map((e) => /* @__PURE__ */ a.jsxs("div", { className: "group", children: [
6149
- /* @__PURE__ */ a.jsx(Tr, { group: e }),
6150
- Object.keys(Re[e]).includes("child") && /* @__PURE__ */ a.jsx(Tr, { group: Re[e].child })
6141
+ /* @__PURE__ */ a.jsx(kr, { group: e }),
6142
+ Object.keys(Re[e]).includes("child") && /* @__PURE__ */ a.jsx(kr, { group: Re[e].child })
6151
6143
  ] }, e)) }),
6152
6144
  /* @__PURE__ */ a.jsx("hr", {}),
6153
6145
  /* @__PURE__ */ a.jsxs("div", { className: "sub-footer", children: [
@@ -6220,7 +6212,7 @@ const Ze = "footer_", Tt = "SiteFooter", Tr = ({ group: e }) => {
6220
6212
  return e[r];
6221
6213
  if (!t.includes("."))
6222
6214
  continue;
6223
- const s = Dr(e[r], t);
6215
+ const s = Lr(e[r], t);
6224
6216
  if (!(typeof s > "u") && (!n || s[t] && s[t].includes(n) || s.value && s.value.includes(n) || s.toString().includes(n)))
6225
6217
  return e[r];
6226
6218
  }
@@ -6362,7 +6354,7 @@ const Ze = "footer_", Tt = "SiteFooter", Tr = ({ group: e }) => {
6362
6354
  },
6363
6355
  doTrack: i = null
6364
6356
  }) => {
6365
- const c = H(), o = Dr(Et, e);
6357
+ const c = H(), o = Lr(Et, e);
6366
6358
  if (!o || o.onlyShow && (o.onlyShow === "logged-in" && !t || o.onlyShow === "logged-out" && t))
6367
6359
  return null;
6368
6360
  const f = "doTrack" in o, d = i === null ? f ? o.doTrack : !0 : i, u = e.includes("buttons.");
@@ -6479,7 +6471,7 @@ const ao = { height: 67, height_desktop: 83 }, fa = ({ showNavigation: e = !0 })
6479
6471
  const t = H(), n = Ce(Ne), r = st(!0, !0), s = n && typeof n.id == "string", i = at(
6480
6472
  () => de.getIsDesktopVersion(s, r),
6481
6473
  [s, r]
6482
- ), [c, o] = Cn(qr, {
6474
+ ), [c, o] = Cn(Br, {
6483
6475
  headerIsVisible: !0,
6484
6476
  menus: { navigation: !1, search: !1, account: !1 },
6485
6477
  focusElements: {
@@ -6717,7 +6709,7 @@ const pa = ({
6717
6709
  "aria-expanded": t,
6718
6710
  "aria-controls": e
6719
6711
  });
6720
- const Fc = ({
6712
+ const Oc = ({
6721
6713
  className: e,
6722
6714
  showModal: t = !0,
6723
6715
  title: n,
@@ -6802,7 +6794,7 @@ const io = () => {
6802
6794
  ]
6803
6795
  }
6804
6796
  ) }) });
6805
- }, Er = {
6797
+ }, Tr = {
6806
6798
  default: "tags_",
6807
6799
  headerTopics: "header_topics_topics_"
6808
6800
  }, ln = {
@@ -6826,14 +6818,14 @@ const io = () => {
6826
6818
  if (e.includes("topic_")) {
6827
6819
  if (e = ln.topic[e.replace("topic_", "")], e) {
6828
6820
  const t = Et.topics.topics[e].href;
6829
- return t ? { id: e, href: t, text: `${Er.headerTopics}${e}` } : null;
6821
+ return t ? { id: e, href: t, text: `${Tr.headerTopics}${e}` } : null;
6830
6822
  }
6831
6823
  return null;
6832
6824
  }
6833
- return ln[e] ? (e = ln[e], { id: e, text: `${Er.default}${e}` }) : null;
6825
+ return ln[e] ? (e = ln[e], { id: e, text: `${Tr.default}${e}` }) : null;
6834
6826
  }
6835
6827
  };
6836
- const Lc = ({
6828
+ const Fc = ({
6837
6829
  tags: e = [],
6838
6830
  color: t = "default",
6839
6831
  forceOneLine: n = !1,
@@ -6873,7 +6865,7 @@ const Lc = ({
6873
6865
  }
6874
6866
  );
6875
6867
  };
6876
- const Dc = ({
6868
+ const Lc = ({
6877
6869
  members: { data: e = [], total: t = e.length },
6878
6870
  hasNextPage: n = !1,
6879
6871
  loadNextPage: r = () => {
@@ -6889,7 +6881,7 @@ const Dc = ({
6889
6881
  /* @__PURE__ */ a.jsx("span", { className: "count", children: t })
6890
6882
  ] }),
6891
6883
  /* @__PURE__ */ a.jsx("ul", { children: e.map((f, d) => /* @__PURE__ */ a.jsxs("li", { children: [
6892
- /* @__PURE__ */ a.jsx(On, { member: f, gtmContext: s, gtmType: i }),
6884
+ /* @__PURE__ */ a.jsx(An, { member: f, gtmContext: s, gtmType: i }),
6893
6885
  f.isAdmin && /* @__PURE__ */ a.jsx(jt, { children: o.formatMessage({ id: "membersList_admin" }) })
6894
6886
  ] }, d)) }),
6895
6887
  n && /* @__PURE__ */ a.jsx(
@@ -6904,7 +6896,7 @@ const Dc = ({
6904
6896
  ] });
6905
6897
  };
6906
6898
  let _t = null;
6907
- const be = "discussion_form_", Bn = ({
6899
+ const be = "discussion_form_", In = ({
6908
6900
  content: e = { type: "response", slugs: {} },
6909
6901
  userHasPermissions: t = !0,
6910
6902
  meta: n = {
@@ -7069,7 +7061,7 @@ const be = "discussion_form_", Bn = ({
7069
7061
  children: [
7070
7062
  (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") }),
7071
7063
  /* @__PURE__ */ a.jsx(
7072
- On,
7064
+ An,
7073
7065
  {
7074
7066
  member: l || "community",
7075
7067
  gtmContext: d,
@@ -7143,7 +7135,7 @@ const be = "discussion_form_", Bn = ({
7143
7135
  );
7144
7136
  const { content: c, functions: o, meta: f, ...d } = e;
7145
7137
  return /* @__PURE__ */ a.jsx(
7146
- Bn,
7138
+ In,
7147
7139
  {
7148
7140
  content: { type: (c == null ? void 0 : c.type) || "reply", slugs: (c == null ? void 0 : c.slugs) || {} },
7149
7141
  functions: { ...o, create: (o == null ? void 0 : o.create) || (() => {
@@ -7154,11 +7146,11 @@ const be = "discussion_form_", Bn = ({
7154
7146
  );
7155
7147
  }, lo = {
7156
7148
  showForm: !1
7157
- }, qn = Sn(lo), uo = ({ children: e }) => {
7149
+ }, Bn = Sn(lo), uo = ({ children: e }) => {
7158
7150
  const [t, n] = J({
7159
7151
  showForm: !1
7160
7152
  });
7161
- return /* @__PURE__ */ a.jsx(qn.Provider, { value: { ...t, updateConversation: n }, children: e });
7153
+ return /* @__PURE__ */ a.jsx(Bn.Provider, { value: { ...t, updateConversation: n }, children: e });
7162
7154
  }, fo = ({
7163
7155
  question: e,
7164
7156
  answer: t,
@@ -7286,7 +7278,7 @@ const dn = () => {
7286
7278
  ] }) })
7287
7279
  ] })
7288
7280
  });
7289
- }, Sr = (e) => {
7281
+ }, Er = (e) => {
7290
7282
  const t = {};
7291
7283
  return Object.keys(e).forEach((n) => n.includes("Id") ? t[n] = e[n] : t[`${n}Slug`] = e[n]), t;
7292
7284
  }, Ot = (e, t) => e && !t;
@@ -7320,7 +7312,7 @@ const Pe = "discussion_", ho = 280, Ft = ({
7320
7312
  children: v,
7321
7313
  isTruncated: _ = !1
7322
7314
  }) => {
7323
- const b = H(), y = Ce(Ne), j = Ce(qn), { author: w, canLike: x, createdAt: P, id: D, likes: G = 0, userLiked: N, comments: A = 0 } = t, E = y && y.id && typeof w != "string" && w.id && w.id === y.id || !1, ee = typeof x == "boolean" ? x : n ? !E : !1, W = E && (!t.createdAt || hs(t.createdAt, 10, "seconds")), U = me(null), [F, Q] = J({
7315
+ const b = H(), y = Ce(Ne), j = Ce(Bn), { author: w, canLike: x, createdAt: P, id: D, likes: G = 0, userLiked: N, comments: A = 0 } = t, E = y && y.id && typeof w != "string" && w.id && w.id === y.id || !1, ee = typeof x == "boolean" ? x : n ? !E : !1, W = E && (!t.createdAt || hs(t.createdAt, 10, "seconds")), U = me(null), [F, Q] = J({
7324
7316
  body: t && t.body || "",
7325
7317
  isEditing: !1,
7326
7318
  didEdit: t && t.isEdited || !1
@@ -7358,7 +7350,7 @@ const Pe = "discussion_", ho = 280, Ft = ({
7358
7350
  try {
7359
7351
  if (!rs(R, F.body)) {
7360
7352
  const le = t.type === "question" ? { title: R } : { body: R };
7361
- await f(Sr(t.slugs), le);
7353
+ await f(Er(t.slugs), le);
7362
7354
  }
7363
7355
  Q({ body: R, isEditing: !1, didEdit: !0 });
7364
7356
  } catch {
@@ -7373,7 +7365,7 @@ const Pe = "discussion_", ho = 280, Ft = ({
7373
7365
  }, Y = () => {
7374
7366
  ne(!1);
7375
7367
  try {
7376
- o(Sr(t.slugs));
7368
+ o(Er(t.slugs));
7377
7369
  } catch {
7378
7370
  B("delete-error");
7379
7371
  }
@@ -7435,7 +7427,7 @@ const Pe = "discussion_", ho = 280, Ft = ({
7435
7427
  },
7436
7428
  children: [
7437
7429
  !F.isEditing && /* @__PURE__ */ a.jsx(
7438
- On,
7430
+ An,
7439
7431
  {
7440
7432
  member: w,
7441
7433
  additionalContent: { createdAt: P, didEdit: F.didEdit },
@@ -7445,7 +7437,7 @@ const Pe = "discussion_", ho = 280, Ft = ({
7445
7437
  }
7446
7438
  ),
7447
7439
  F.isEditing ? /* @__PURE__ */ a.jsx(
7448
- Bn,
7440
+ In,
7449
7441
  {
7450
7442
  content: { type: t.type, slugs: t.slugs },
7451
7443
  userHasPermissions: n,
@@ -7481,10 +7473,10 @@ const Pe = "discussion_", ho = 280, Ft = ({
7481
7473
  className: "gtm-trackable",
7482
7474
  "data-gtm-event-context": g,
7483
7475
  "data-gtm-event-type": "title-click",
7484
- children: /* @__PURE__ */ a.jsx(lr, { options: { overrides: { a: Zs } }, children: K })
7476
+ children: /* @__PURE__ */ a.jsx(cr, { options: { overrides: { a: Zs } }, children: K })
7485
7477
  }
7486
7478
  ) : /* @__PURE__ */ a.jsx(
7487
- lr,
7479
+ cr,
7488
7480
  {
7489
7481
  options: {
7490
7482
  wrapper: t.type === "question" ? "h1" : L.Fragment,
@@ -7627,7 +7619,7 @@ const Pe = "discussion_", ho = 280, Ft = ({
7627
7619
  ] })
7628
7620
  });
7629
7621
  };
7630
- const fn = "discussion_responses_", Ic = ({ type: e = "answer", responses: t = 0 }) => {
7622
+ const fn = "discussion_responses_", Dc = ({ type: e = "answer", responses: t = 0 }) => {
7631
7623
  const n = H();
7632
7624
  return /* @__PURE__ */ a.jsxs("div", { className: "responses-heading", children: [
7633
7625
  /* @__PURE__ */ a.jsx("h3", { children: n.formatMessage(
@@ -7647,7 +7639,7 @@ const go = ({
7647
7639
  form: r,
7648
7640
  children: s
7649
7641
  }) => {
7650
- const i = H(), c = Ce(qn), o = yt(s, {
7642
+ const i = H(), c = Ce(Bn), o = yt(s, {
7651
7643
  element: "li"
7652
7644
  });
7653
7645
  return /* @__PURE__ */ a.jsxs("div", { className: "thread-wrapper", children: [
@@ -7666,16 +7658,16 @@ const go = ({
7666
7658
  }
7667
7659
  }
7668
7660
  ),
7669
- r && c.showForm && /* @__PURE__ */ a.jsx(Bn, { ...r })
7661
+ r && c.showForm && /* @__PURE__ */ a.jsx(In, { ...r })
7670
7662
  ] });
7671
7663
  }, _o = "post", vo = "reply", ga = "00000000-0000-0000-0000-000000000000";
7672
- function zn({ queryClient: e, queryKey: t }) {
7664
+ function qn({ queryClient: e, queryKey: t }) {
7673
7665
  function n(r, s, i) {
7674
7666
  e.setQueryData(t, i);
7675
7667
  }
7676
7668
  return n;
7677
7669
  }
7678
- function Zn({ queryClient: e, queryKey: t }) {
7670
+ function zn({ queryClient: e, queryKey: t }) {
7679
7671
  async function n(r) {
7680
7672
  await e.cancelQueries({ queryKey: t });
7681
7673
  const s = e.getQueryData(t);
@@ -7735,7 +7727,7 @@ function xo({ content: e }) {
7735
7727
  verb: _o
7736
7728
  };
7737
7729
  }
7738
- function Cr({ activity: e, user: t }) {
7730
+ function Sr({ activity: e, user: t }) {
7739
7731
  return {
7740
7732
  ...e,
7741
7733
  actor: _a(t),
@@ -7779,7 +7771,7 @@ function wo({ activityId: e, replyId: t, content: n }) {
7779
7771
  parent: t || ""
7780
7772
  };
7781
7773
  }
7782
- function $r({ reply: e, user: t }) {
7774
+ function Cr({ reply: e, user: t }) {
7783
7775
  const n = _a(t);
7784
7776
  return {
7785
7777
  ...e,
@@ -7788,7 +7780,7 @@ function $r({ reply: e, user: t }) {
7788
7780
  ...yo()
7789
7781
  };
7790
7782
  }
7791
- function Mr({ reply: e, reaction: t }) {
7783
+ function $r({ reply: e, reaction: t }) {
7792
7784
  var n, r, s;
7793
7785
  t ? (e.latest_children = {
7794
7786
  ...e.latest_children || {},
@@ -7820,7 +7812,7 @@ const ba = (e) => {
7820
7812
  });
7821
7813
  document.dispatchEvent(t);
7822
7814
  };
7823
- let Pr, mn = 0;
7815
+ let Mr, mn = 0;
7824
7816
  const ya = () => {
7825
7817
  ie(() => (document.addEventListener("discussionPostAdded", e), () => {
7826
7818
  document.removeEventListener(
@@ -7832,13 +7824,13 @@ const ya = () => {
7832
7824
  const n = t.detail;
7833
7825
  if (!n)
7834
7826
  return;
7835
- clearTimeout(Pr);
7827
+ clearTimeout(Mr);
7836
7828
  const r = document.getElementById(n);
7837
7829
  if (r) {
7838
7830
  r.scrollIntoView({ behavior: "smooth", block: "start" }), mn = 0;
7839
7831
  return;
7840
7832
  }
7841
- mn++, !(mn > 10) && (Pr = setTimeout(() => {
7833
+ mn++, !(mn > 10) && (Mr = setTimeout(() => {
7842
7834
  e(t);
7843
7835
  }, 50));
7844
7836
  };
@@ -8011,13 +8003,13 @@ function So({
8011
8003
  const { mutate: c } = we({
8012
8004
  mutationFn: e,
8013
8005
  onMutate: (o) => t((f) => {
8014
- const d = Cr({ activity: xo(o), user: i });
8015
- return Rr(d, f);
8006
+ const d = Sr({ activity: xo(o), user: i });
8007
+ return Pr(d, f);
8016
8008
  }),
8017
8009
  onError: n,
8018
8010
  onSuccess: (o, f, d) => {
8019
- const u = Cr({ activity: o, user: i });
8020
- r.setQueryData(s, Rr(u, d, !0)), setTimeout(() => {
8011
+ const u = Sr({ activity: o, user: i });
8012
+ r.setQueryData(s, Pr(u, d, !0)), setTimeout(() => {
8021
8013
  ba(u.id);
8022
8014
  }, 0);
8023
8015
  }
@@ -8052,10 +8044,10 @@ function $o({
8052
8044
  },
8053
8045
  queryKey: c
8054
8046
  }) {
8055
- const o = $n(), f = An(), d = { queryClient: o, queryKey: c }, u = {
8047
+ const o = $n(), f = Nn(), d = { queryClient: o, queryKey: c }, u = {
8056
8048
  mutationHandlers: {
8057
- error: zn(d),
8058
- mutate: Zn(d)
8049
+ error: qn(d),
8050
+ mutate: zn(d)
8059
8051
  },
8060
8052
  user: f,
8061
8053
  ...d
@@ -8103,7 +8095,7 @@ function Po({ queryFn: e, queryKey: t }) {
8103
8095
  isLoading: s,
8104
8096
  hasNextPage: i,
8105
8097
  fetchNextPage: c
8106
- } = Fr({
8098
+ } = Or({
8107
8099
  queryKey: t,
8108
8100
  queryFn: e,
8109
8101
  initialPageParam: { next: null },
@@ -8149,7 +8141,7 @@ function No({
8149
8141
  });
8150
8142
  return s;
8151
8143
  }
8152
- function Rr(e, t, n = !1) {
8144
+ function Pr(e, t, n = !1) {
8153
8145
  return t ? (n ? t.pages[0].results[0] = e : t.pages[0].results = [e, ...t.pages[0].results], t) : {
8154
8146
  pages: [{
8155
8147
  next: "",
@@ -8180,7 +8172,7 @@ function Oo(e) {
8180
8172
  var t;
8181
8173
  return ((t = e == null ? void 0 : e.pages) == null ? void 0 : t.reduce((n, { results: r }) => [...n, ...r], [])) || [];
8182
8174
  }
8183
- const Bc = ({
8175
+ const Ic = ({
8184
8176
  basePath: e,
8185
8177
  parentId: t,
8186
8178
  isMember: n,
@@ -8296,7 +8288,7 @@ const Bc = ({
8296
8288
  }
8297
8289
  )
8298
8290
  ] });
8299
- }, qc = {
8291
+ }, Bc = {
8300
8292
  next: "id_lt=67ef0342-6f6e-4807-beea-5a9184ec140c&limit=5",
8301
8293
  results: [
8302
8294
  {
@@ -8858,18 +8850,18 @@ function Fo({
8858
8850
  const { mutate: c } = we({
8859
8851
  mutationFn: e,
8860
8852
  onMutate: (o) => t((f) => {
8861
- const d = $r({ reply: wo(o), user: i });
8862
- return Nr(d, f, {
8853
+ const d = Cr({ reply: wo(o), user: i });
8854
+ return Rr(d, f, {
8863
8855
  replace: !1,
8864
8856
  append: (o == null ? void 0 : o.replyId) !== void 0
8865
8857
  });
8866
8858
  }),
8867
8859
  onError: n,
8868
8860
  onSuccess: (o, f, d) => {
8869
- const u = $r({ reply: o, user: i });
8861
+ const u = Cr({ reply: o, user: i });
8870
8862
  r.setQueryData(
8871
8863
  s,
8872
- Nr(u, d, { replace: !0, append: (f == null ? void 0 : f.replyId) !== void 0 })
8864
+ Rr(u, d, { replace: !0, append: (f == null ? void 0 : f.replyId) !== void 0 })
8873
8865
  ), setTimeout(() => {
8874
8866
  ba(u.id);
8875
8867
  }, 0);
@@ -8905,10 +8897,10 @@ function wa({
8905
8897
  },
8906
8898
  queryKey: c
8907
8899
  }) {
8908
- const o = $n(), f = An(), d = { queryClient: o, queryKey: c }, u = {
8900
+ const o = $n(), f = Nn(), d = { queryClient: o, queryKey: c }, u = {
8909
8901
  mutationHandlers: {
8910
- error: zn(d),
8911
- mutate: Zn(d)
8902
+ error: qn(d),
8903
+ mutate: zn(d)
8912
8904
  },
8913
8905
  user: f,
8914
8906
  ...d
@@ -8939,12 +8931,12 @@ function Do({
8939
8931
  mutationFn: e,
8940
8932
  onMutate: ({ replyId: c }) => t((o) => {
8941
8933
  const f = Mt(c, o);
8942
- return f && Mr({ reply: f }), o;
8934
+ return f && $r({ reply: f }), o;
8943
8935
  }),
8944
8936
  onError: n,
8945
8937
  onSuccess: (c, { replyId: o }, f) => {
8946
8938
  const d = Mt(o, f);
8947
- d && Mr({ reply: d, reaction: c }), r.setQueryData(s, f);
8939
+ d && $r({ reply: d, reaction: c }), r.setQueryData(s, f);
8948
8940
  }
8949
8941
  });
8950
8942
  return i;
@@ -8956,7 +8948,7 @@ function Io({ queryFn: e, queryKey: t }) {
8956
8948
  isLoading: s,
8957
8949
  hasNextPage: i,
8958
8950
  fetchNextPage: c
8959
- } = Fr({
8951
+ } = Or({
8960
8952
  queryKey: t,
8961
8953
  queryFn: e,
8962
8954
  initialPageParam: { next: "" },
@@ -9019,7 +9011,7 @@ function Zo(e, t, n) {
9019
9011
  function Uo(e, t, n) {
9020
9012
  return n != null && n.replace ? t.pages[0].results[0] = e : t.pages[0].results = [e, ...t.pages[0].results], t;
9021
9013
  }
9022
- function Nr(e, t, n) {
9014
+ function Rr(e, t, n) {
9023
9015
  return t ? n != null && n.append ? Zo(e, t, n) : Uo(e, t, n) : zo(e);
9024
9016
  }
9025
9017
  function Mt(e, t) {
@@ -9329,10 +9321,10 @@ function Qo({
9329
9321
  },
9330
9322
  queryKey: s
9331
9323
  }) {
9332
- const i = $n(), c = An(), o = { queryClient: i, queryKey: s }, f = {
9324
+ const i = $n(), c = Nn(), o = { queryClient: i, queryKey: s }, f = {
9333
9325
  mutationHandlers: {
9334
- error: zn(o),
9335
- mutate: Zn(o)
9326
+ error: qn(o),
9327
+ mutate: zn(o)
9336
9328
  },
9337
9329
  user: c,
9338
9330
  ...o
@@ -9382,7 +9374,7 @@ function Xo({
9382
9374
  });
9383
9375
  return s;
9384
9376
  }
9385
- const zc = ({
9377
+ const qc = ({
9386
9378
  basePath: e,
9387
9379
  parentId: t,
9388
9380
  activityId: n,
@@ -9487,7 +9479,7 @@ const zc = ({
9487
9479
  }
9488
9480
  )
9489
9481
  ] });
9490
- }, Zc = ({
9482
+ }, zc = ({
9491
9483
  id: e,
9492
9484
  data: { jobTitle: t, name: n, organization: r, thumbnail: s }
9493
9485
  }) => ({
@@ -9496,7 +9488,7 @@ const zc = ({
9496
9488
  jobTitle: t,
9497
9489
  organization: r,
9498
9490
  image: { thumbnail: s }
9499
- }), Ar = [
9491
+ }), Nr = [
9500
9492
  {
9501
9493
  contentType: "solutionArticle",
9502
9494
  banner: {
@@ -9540,9 +9532,9 @@ const zc = ({
9540
9532
  contributors: ["community"]
9541
9533
  }
9542
9534
  ];
9543
- const vt = "notFoundError_", Uc = () => {
9535
+ const vt = "notFoundError_", Zc = () => {
9544
9536
  const e = H(), t = [];
9545
- return Ar.forEach((n, r) => {
9537
+ return Nr.forEach((n, r) => {
9546
9538
  n.title = e.formatMessage({ id: `${vt}post_${r + 1}` }), t.push("solutionArticle");
9547
9539
  }), /* @__PURE__ */ a.jsxs(
9548
9540
  oo,
@@ -9553,7 +9545,7 @@ const vt = "notFoundError_", Uc = () => {
9553
9545
  /* @__PURE__ */ a.jsx(
9554
9546
  ei,
9555
9547
  {
9556
- cards: Ar,
9548
+ cards: Nr,
9557
9549
  cardTypes: t,
9558
9550
  buildCardData: (n) => new Promise((r, s) => {
9559
9551
  r(n);
@@ -9575,101 +9567,100 @@ const vt = "notFoundError_", Uc = () => {
9575
9567
  };
9576
9568
  export {
9577
9569
  rt as ASSETS_BUCKET,
9578
- Bc as ActivitiesFeed,
9579
- zc as ActivitySection,
9570
+ Ic as ActivitiesFeed,
9571
+ qc as ActivitySection,
9580
9572
  ha as AddPost,
9581
- vc as BannerSection,
9582
- Ec as Breadcrumbs,
9573
+ _c as BannerSection,
9574
+ Tc as Breadcrumbs,
9583
9575
  se as Button,
9584
9576
  Rt as ButtonWrapper,
9585
9577
  $s as CacheProvider,
9586
9578
  Xr as Card,
9587
9579
  ei as CardBlock,
9588
- kc as Carousel,
9580
+ jc as Carousel,
9589
9581
  Wr as CollapsibleSection,
9590
9582
  fi as Columns,
9591
- Tc as CommunityDetails,
9592
- Ac as ContactFooter,
9583
+ kc as CommunityDetails,
9584
+ Nc as ContactFooter,
9593
9585
  wi as ContactForm,
9594
9586
  Jr as Contributors,
9595
- qn as ConversationContext,
9587
+ Bn as ConversationContext,
9596
9588
  ro as CookieBanner,
9597
9589
  uo as DiscussionConversation,
9598
- Bn as DiscussionForm,
9590
+ In as DiscussionForm,
9599
9591
  po as DiscussionLikes,
9600
9592
  Ft as DiscussionPost,
9601
9593
  go as DiscussionThread,
9602
9594
  Oe as Divider,
9603
- gc as DownloadSection,
9595
+ hc as DownloadSection,
9604
9596
  Je as EMAILS,
9605
9597
  mi as EmailHelperTextBox,
9606
9598
  We as EmptyStateBox,
9607
- Sc as Filters,
9599
+ Ec as Filters,
9608
9600
  Rs as FlagsProvider,
9609
9601
  ua as Footer,
9610
9602
  ra as Form,
9611
9603
  ot as FullWidthSection,
9612
- yc as GlobalProviders,
9604
+ bc as GlobalProviders,
9613
9605
  fa as Header,
9614
9606
  Os as HelperTextBox,
9615
9607
  Pn as HiddenFromScreenReaders,
9616
- wc as HideShowTextBox,
9608
+ xc as HideShowTextBox,
9617
9609
  Ae as HighlightedTextBox,
9618
- hc as ImageContainer,
9619
9610
  Ns as IntlProvider,
9620
9611
  ji as InviteForm,
9621
- Fc as InviteModal,
9612
+ Oc as InviteModal,
9622
9613
  ea as JoinButton,
9623
- Cc as LanguageSwitcher,
9614
+ Sc as LanguageSwitcher,
9624
9615
  it as Link,
9625
9616
  Nt as LoadMore,
9626
- jc as LoadingBlock,
9617
+ wc as LoadingBlock,
9627
9618
  Te as LoadingPlaceholder,
9628
9619
  Gr as LoadingState,
9629
9620
  ta as Logo,
9630
- _c as LogoSection,
9631
- lr as MarkdownText,
9632
- bc as MarketingBox,
9633
- On as Member,
9634
- Dc as MembersList,
9621
+ gc as LogoSection,
9622
+ cr as MarkdownText,
9623
+ vc as MarketingBox,
9624
+ An as Member,
9625
+ Lc as MembersList,
9635
9626
  ma as Modal,
9636
9627
  si as MoreMenu,
9637
- xc as NUMBER_OF_USERS,
9628
+ yc as NUMBER_OF_USERS,
9638
9629
  ci as NavigationMenu,
9639
- Uc as NotFoundError,
9630
+ Zc as NotFoundError,
9640
9631
  pa as Overlay,
9641
9632
  Us as PageHeading,
9642
9633
  oo as PageLayout,
9643
- Pc as PasswordRules,
9634
+ Mc as PasswordRules,
9644
9635
  jt as Pill,
9645
9636
  ct as ProfilePicture,
9646
9637
  Ws as ProgressBar,
9647
- Rc as Rating,
9638
+ Pc as Rating,
9648
9639
  Yo as RepliesFeed,
9649
- Ic as ResponsesHeading,
9650
- Nn as ResponsiveImage,
9640
+ Dc as ResponsesHeading,
9641
+ Hr as ResponsiveImage,
9651
9642
  ki as SearchForm,
9652
- $c as ShareLinks,
9653
- Nc as SignupForm,
9643
+ Cc as ShareLinks,
9644
+ Rc as SignupForm,
9654
9645
  Zs as Span,
9655
9646
  vn as StatusBanner,
9656
- Mc as Tabs,
9657
- Lc as Tags,
9647
+ $c as Tabs,
9648
+ Fc as Tags,
9658
9649
  Es as Tooltip,
9659
- Oc as TopLevelPage,
9650
+ Ac as TopLevelPage,
9660
9651
  Ne as UserContext,
9661
9652
  As as UserProvider,
9662
9653
  ge as VisuallyHidden,
9663
9654
  so as addAriaProps,
9664
9655
  Qr as getMember,
9665
9656
  Et as headerData,
9666
- Zc as mapGetStreamData,
9657
+ zc as mapGetStreamData,
9667
9658
  ws as pageReady,
9668
- qc as repliesFeedMock,
9659
+ Bc as repliesFeedMock,
9669
9660
  ls as useCurrentPath,
9670
9661
  nt as useEffectAfterMount,
9671
9662
  st as useElementWidth,
9672
9663
  us as useScrollListener,
9673
9664
  fs as useScrollToHash,
9674
- An as useUser
9665
+ Nn as useUser
9675
9666
  };