@apolitical/component-library 1.18.0-4247.60 → 1.18.0-4247.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.js +10 -10
  2. package/index.mjs +196 -196
  3. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1,9 +1,9 @@
1
- import A, { memo as Fe, useState as R, useEffect as G, useRef as te, useMemo as ft, createContext as Gt, useContext as ge, Children as Ht, useCallback as Dn, Fragment as qe, useReducer as Oa, Suspense as Ba } from "react";
1
+ import A, { memo as Fe, useState as D, useEffect as G, useRef as te, useMemo as ft, createContext as Gt, useContext as ge, Children as Ht, useCallback as Ln, Fragment as qe, useReducer as Oa, Suspense as Ba } from "react";
2
2
  import Za from "lodash.clonedeep";
3
3
  import qa from "lodash.set";
4
4
  import { useIntl as P, IntlProvider as Ha, createIntl as Ua, FormattedMessage as je } from "react-intl";
5
5
  import Ne from "truncate";
6
- import { QueryClient as za, QueryClientProvider as Wa, useMutation as fe, useQueryClient as Kt, useInfiniteQuery as Ln, useQuery as Va } from "@tanstack/react-query";
6
+ import { QueryClient as za, QueryClientProvider as Wa, useMutation as fe, useQueryClient as Kt, useInfiniteQuery as Rn, useQuery as Va } from "@tanstack/react-query";
7
7
  import { ReactQueryDevtools as Ya } from "@tanstack/react-query-devtools";
8
8
  import nt from "posthog-js";
9
9
  import { CookiesProvider as Ga, useCookies as Ka } from "react-cookie";
@@ -54,7 +54,7 @@ var On = { exports: {} };
54
54
  })(On);
55
55
  var nr = On.exports;
56
56
  const w = /* @__PURE__ */ tr(nr), ar = ({ element: e = "span", showOnFocus: t = !0, children: n, ...r }) => A.createElement(e, { ...r, className: w("hidden", { "show-on-focus": t }), children: n }), ae = Fe(ar), rr = ({ element: e = "span", children: t = null, ...n }) => A.createElement(e, { ...n, "aria-hidden": !0 }, t), Bn = Fe(rr);
57
- var Ut = { exports: {} }, De = {};
57
+ var Ut = { exports: {} }, Le = {};
58
58
  /**
59
59
  * @license React
60
60
  * react-jsx-runtime.production.min.js
@@ -67,7 +67,7 @@ var Ut = { exports: {} }, De = {};
67
67
  var bn;
68
68
  function sr() {
69
69
  if (bn)
70
- return De;
70
+ return Le;
71
71
  bn = 1;
72
72
  var e = A, 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 };
73
73
  function o(c, m, l) {
@@ -80,9 +80,9 @@ function sr() {
80
80
  d[f] === void 0 && (d[f] = m[f]);
81
81
  return { $$typeof: t, type: c, key: p, ref: h, props: d, _owner: s.current };
82
82
  }
83
- return De.Fragment = n, De.jsx = o, De.jsxs = o, De;
83
+ return Le.Fragment = n, Le.jsx = o, Le.jsxs = o, Le;
84
84
  }
85
- var Le = {};
85
+ var Re = {};
86
86
  /**
87
87
  * @license React
88
88
  * react-jsx-runtime.development.js
@@ -114,16 +114,16 @@ function ir() {
114
114
  {
115
115
  var N = v.ReactDebugCurrentFrame, B = N.getStackAddendum();
116
116
  B !== "" && (x += "%s", $ = $.concat([B]));
117
- var Y = $.map(function(L) {
118
- return String(L);
117
+ var Y = $.map(function(R) {
118
+ return String(R);
119
119
  });
120
120
  Y.unshift("Warning: " + x), Function.prototype.apply.call(console[u], console, Y);
121
121
  }
122
122
  }
123
- var j = !1, C = !1, S = !1, I = !1, F = !1, M;
123
+ var j = !1, S = !1, C = !1, I = !1, F = !1, M;
124
124
  M = Symbol.for("react.module.reference");
125
125
  function T(u) {
126
- return !!(typeof u == "string" || typeof u == "function" || u === r || u === i || F || u === s || u === l || u === f || I || u === h || j || C || S || typeof u == "object" && u !== null && (u.$$typeof === p || u.$$typeof === d || u.$$typeof === o || u.$$typeof === c || u.$$typeof === m || // This needs to include all possible module reference object
126
+ return !!(typeof u == "string" || typeof u == "function" || u === r || u === i || F || u === s || u === l || u === f || I || u === h || j || S || C || typeof u == "object" && u !== null && (u.$$typeof === p || u.$$typeof === d || u.$$typeof === o || u.$$typeof === c || u.$$typeof === m || // This needs to include all possible module reference object
127
127
  // types supported by any Flight configuration anywhere since
128
128
  // we don't know which Flight build this will end up being used
129
129
  // with.
@@ -174,9 +174,9 @@ function ir() {
174
174
  var N = u.displayName || null;
175
175
  return N !== null ? N : H(u.type) || "Memo";
176
176
  case p: {
177
- var B = u, Y = B._payload, L = B._init;
177
+ var B = u, Y = B._payload, R = B._init;
178
178
  try {
179
- return H(L(Y));
179
+ return H(R(Y));
180
180
  } catch {
181
181
  return null;
182
182
  }
@@ -281,27 +281,27 @@ function ir() {
281
281
  Y = K.current, K.current = null, Z();
282
282
  try {
283
283
  if (x) {
284
- var L = function() {
284
+ var R = function() {
285
285
  throw Error();
286
286
  };
287
- if (Object.defineProperty(L.prototype, "props", {
287
+ if (Object.defineProperty(R.prototype, "props", {
288
288
  set: function() {
289
289
  throw Error();
290
290
  }
291
291
  }), typeof Reflect == "object" && Reflect.construct) {
292
292
  try {
293
- Reflect.construct(L, []);
293
+ Reflect.construct(R, []);
294
294
  } catch (ye) {
295
295
  N = ye;
296
296
  }
297
- Reflect.construct(u, [], L);
297
+ Reflect.construct(u, [], R);
298
298
  } else {
299
299
  try {
300
- L.call();
300
+ R.call();
301
301
  } catch (ye) {
302
302
  N = ye;
303
303
  }
304
- u.call(L.prototype);
304
+ u.call(R.prototype);
305
305
  }
306
306
  } else {
307
307
  try {
@@ -313,17 +313,17 @@ function ir() {
313
313
  }
314
314
  } catch (ye) {
315
315
  if (ye && N && typeof ye.stack == "string") {
316
- for (var D = ye.stack.split(`
316
+ for (var L = ye.stack.split(`
317
317
  `), ce = N.stack.split(`
318
- `), J = D.length - 1, X = ce.length - 1; J >= 1 && X >= 0 && D[J] !== ce[X]; )
318
+ `), J = L.length - 1, X = ce.length - 1; J >= 1 && X >= 0 && L[J] !== ce[X]; )
319
319
  X--;
320
320
  for (; J >= 1 && X >= 0; J--, X--)
321
- if (D[J] !== ce[X]) {
321
+ if (L[J] !== ce[X]) {
322
322
  if (J !== 1 || X !== 1)
323
323
  do
324
- if (J--, X--, X < 0 || D[J] !== ce[X]) {
324
+ if (J--, X--, X < 0 || L[J] !== ce[X]) {
325
325
  var he = `
326
- ` + D[J].replace(" at new ", " at ");
326
+ ` + L[J].replace(" at new ", " at ");
327
327
  return u.displayName && he.includes("<anonymous>") && (he = he.replace("<anonymous>", u.displayName)), typeof u == "function" && Ee.set(u, he), he;
328
328
  }
329
329
  while (J >= 1 && X >= 0);
@@ -383,19 +383,19 @@ function ir() {
383
383
  function ya(u, x, $, N, B) {
384
384
  {
385
385
  var Y = Function.call.bind(We);
386
- for (var L in u)
387
- if (Y(u, L)) {
388
- var D = void 0;
386
+ for (var R in u)
387
+ if (Y(u, R)) {
388
+ var L = void 0;
389
389
  try {
390
- if (typeof u[L] != "function") {
391
- var ce = Error((N || "React class") + ": " + $ + " type `" + L + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof u[L] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
390
+ if (typeof u[R] != "function") {
391
+ var ce = Error((N || "React class") + ": " + $ + " type `" + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof u[R] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
392
392
  throw ce.name = "Invariant Violation", ce;
393
393
  }
394
- D = u[L](x, L, N, $, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
394
+ L = u[R](x, R, N, $, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
395
395
  } catch (J) {
396
- D = J;
396
+ L = J;
397
397
  }
398
- D && !(D instanceof Error) && (Ve(B), _("%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).", N || "React class", $, L, typeof D), Ve(null)), D instanceof Error && !(D.message in rn) && (rn[D.message] = !0, Ve(B), _("Failed %s type: %s", $, D.message), Ve(null));
398
+ L && !(L instanceof Error) && (Ve(B), _("%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).", N || "React class", $, R, typeof L), Ve(null)), L instanceof Error && !(L.message in rn) && (rn[L.message] = !0, Ve(B), _("Failed %s type: %s", $, L.message), Ve(null));
399
399
  }
400
400
  }
401
401
  }
@@ -423,7 +423,7 @@ function ir() {
423
423
  if (ka(u))
424
424
  return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", xa(u)), on(u);
425
425
  }
426
- var Re = v.ReactCurrentOwner, ja = {
426
+ var De = v.ReactCurrentOwner, ja = {
427
427
  key: !0,
428
428
  ref: !0,
429
429
  __self: !0,
@@ -447,9 +447,9 @@ function ir() {
447
447
  return u.key !== void 0;
448
448
  }
449
449
  function $a(u, x) {
450
- if (typeof u.ref == "string" && Re.current && x && Re.current.stateNode !== x) {
451
- var $ = H(Re.current.type);
452
- wt[$] || (_('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', H(Re.current.type), u.ref), wt[$] = !0);
450
+ if (typeof u.ref == "string" && De.current && x && De.current.stateNode !== x) {
451
+ var $ = H(De.current.type);
452
+ wt[$] || (_('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', H(De.current.type), u.ref), wt[$] = !0);
453
453
  }
454
454
  }
455
455
  function Ea(u, x) {
@@ -474,51 +474,51 @@ function ir() {
474
474
  });
475
475
  }
476
476
  }
477
- var Sa = function(u, x, $, N, B, Y, L) {
478
- var D = {
477
+ var Sa = function(u, x, $, N, B, Y, R) {
478
+ var L = {
479
479
  // This tag allows us to uniquely identify this as a React Element
480
480
  $$typeof: t,
481
481
  // Built-in properties that belong on the element
482
482
  type: u,
483
483
  key: x,
484
484
  ref: $,
485
- props: L,
485
+ props: R,
486
486
  // Record the component responsible for creating this element.
487
487
  _owner: Y
488
488
  };
489
- return D._store = {}, Object.defineProperty(D._store, "validated", {
489
+ return L._store = {}, Object.defineProperty(L._store, "validated", {
490
490
  configurable: !1,
491
491
  enumerable: !1,
492
492
  writable: !0,
493
493
  value: !1
494
- }), Object.defineProperty(D, "_self", {
494
+ }), Object.defineProperty(L, "_self", {
495
495
  configurable: !1,
496
496
  enumerable: !1,
497
497
  writable: !1,
498
498
  value: N
499
- }), Object.defineProperty(D, "_source", {
499
+ }), Object.defineProperty(L, "_source", {
500
500
  configurable: !1,
501
501
  enumerable: !1,
502
502
  writable: !1,
503
503
  value: B
504
- }), Object.freeze && (Object.freeze(D.props), Object.freeze(D)), D;
504
+ }), Object.freeze && (Object.freeze(L.props), Object.freeze(L)), L;
505
505
  };
506
506
  function Ma(u, x, $, N, B) {
507
507
  {
508
- var Y, L = {}, D = null, ce = null;
509
- $ !== void 0 && (cn($), D = "" + $), Ta(x) && (cn(x.key), D = "" + x.key), wa(x) && (ce = x.ref, $a(x, B));
508
+ var Y, R = {}, L = null, ce = null;
509
+ $ !== void 0 && (cn($), L = "" + $), Ta(x) && (cn(x.key), L = "" + x.key), wa(x) && (ce = x.ref, $a(x, B));
510
510
  for (Y in x)
511
- We.call(x, Y) && !ja.hasOwnProperty(Y) && (L[Y] = x[Y]);
511
+ We.call(x, Y) && !ja.hasOwnProperty(Y) && (R[Y] = x[Y]);
512
512
  if (u && u.defaultProps) {
513
513
  var J = u.defaultProps;
514
514
  for (Y in J)
515
- L[Y] === void 0 && (L[Y] = J[Y]);
515
+ R[Y] === void 0 && (R[Y] = J[Y]);
516
516
  }
517
- if (D || ce) {
517
+ if (L || ce) {
518
518
  var X = typeof u == "function" ? u.displayName || u.name || "Unknown" : u;
519
- D && Ea(L, X), ce && Ca(L, X);
519
+ L && Ea(R, X), ce && Ca(R, X);
520
520
  }
521
- return Sa(u, D, ce, B, N, Re.current, L);
521
+ return Sa(u, L, ce, B, N, De.current, R);
522
522
  }
523
523
  }
524
524
  var Tt = v.ReactCurrentOwner, un = v.ReactDebugCurrentFrame;
@@ -597,8 +597,8 @@ Check the top-level render call using <` + $ + ">.");
597
597
  else if (u) {
598
598
  var B = k(u);
599
599
  if (typeof B == "function" && B !== u.entries)
600
- for (var Y = B.call(u), L; !(L = Y.next()).done; )
601
- Et(L.value) && pn(L.value, x);
600
+ for (var Y = B.call(u), R; !(R = Y.next()).done; )
601
+ Et(R.value) && pn(R.value, x);
602
602
  }
603
603
  }
604
604
  }
@@ -641,19 +641,19 @@ Check the top-level render call using <` + $ + ">.");
641
641
  }
642
642
  function gn(u, x, $, N, B, Y) {
643
643
  {
644
- var L = T(u);
645
- if (!L) {
646
- var D = "";
647
- (u === void 0 || typeof u == "object" && u !== null && Object.keys(u).length === 0) && (D += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
644
+ var R = T(u);
645
+ if (!R) {
646
+ var L = "";
647
+ (u === void 0 || typeof u == "object" && u !== null && Object.keys(u).length === 0) && (L += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
648
648
  var ce = Na(B);
649
- ce ? D += ce : D += mn();
649
+ ce ? L += ce : L += mn();
650
650
  var J;
651
- u === null ? J = "null" : jt(u) ? J = "array" : u !== void 0 && u.$$typeof === t ? (J = "<" + (H(u.type) || "Unknown") + " />", D = " Did you accidentally export a JSX literal instead of a component?") : J = typeof u, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", J, D);
651
+ u === null ? J = "null" : jt(u) ? J = "array" : u !== void 0 && u.$$typeof === t ? (J = "<" + (H(u.type) || "Unknown") + " />", L = " Did you accidentally export a JSX literal instead of a component?") : J = typeof u, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", J, L);
652
652
  }
653
653
  var X = Ma(u, x, $, B, Y);
654
654
  if (X == null)
655
655
  return X;
656
- if (L) {
656
+ if (R) {
657
657
  var he = x.children;
658
658
  if (he !== void 0)
659
659
  if (N)
@@ -669,20 +669,20 @@ Check the top-level render call using <` + $ + ">.");
669
669
  return u === r ? Fa(X) : Aa(X), X;
670
670
  }
671
671
  }
672
- function Ra(u, x, $) {
672
+ function Da(u, x, $) {
673
673
  return gn(u, x, $, !0);
674
674
  }
675
- function Da(u, x, $) {
675
+ function La(u, x, $) {
676
676
  return gn(u, x, $, !1);
677
677
  }
678
- var La = Da, Ia = Ra;
679
- Le.Fragment = r, Le.jsx = La, Le.jsxs = Ia;
680
- }()), Le;
678
+ var Ra = La, Ia = Da;
679
+ Re.Fragment = r, Re.jsx = Ra, Re.jsxs = Ia;
680
+ }()), Re;
681
681
  }
682
682
  process.env.NODE_ENV === "production" ? Ut.exports = sr() : Ut.exports = ir();
683
683
  var a = Ut.exports;
684
684
  const or = () => {
685
- const [e, t] = R(window.location.pathname), n = () => {
685
+ const [e, t] = D(window.location.pathname), n = () => {
686
686
  const r = window.location.pathname;
687
687
  t(r);
688
688
  };
@@ -712,9 +712,9 @@ function cr(e, t, n) {
712
712
  var j = function(T) {
713
713
  var E = c.current, O = m.current;
714
714
  return c.current = m.current = null, i.current = T, l.current = f.current.apply(O, E);
715
- }, C = function(T, E) {
715
+ }, S = function(T, E) {
716
716
  h && cancelAnimationFrame(o.current), o.current = h ? requestAnimationFrame(T) : setTimeout(T, E);
717
- }, S = function(T) {
717
+ }, C = function(T) {
718
718
  if (!d.current)
719
719
  return !1;
720
720
  var E = T - s.current;
@@ -723,22 +723,22 @@ function cr(e, t, n) {
723
723
  return o.current = null, y && c.current ? j(T) : (c.current = m.current = null, l.current);
724
724
  }, F = function T() {
725
725
  var E = Date.now();
726
- if (S(E))
726
+ if (C(E))
727
727
  return I(E);
728
728
  if (d.current) {
729
729
  var O = t - (E - s.current), H = k ? Math.min(O, _ - (E - i.current)) : O;
730
- C(T, H);
730
+ S(T, H);
731
731
  }
732
732
  }, M = function() {
733
733
  if (p || v) {
734
- var T = Date.now(), E = S(T);
734
+ var T = Date.now(), E = C(T);
735
735
  if (c.current = [].slice.call(arguments), m.current = r, s.current = T, E) {
736
736
  if (!o.current && d.current)
737
- return i.current = s.current, C(F, t), g ? j(s.current) : l.current;
737
+ return i.current = s.current, S(F, t), g ? j(s.current) : l.current;
738
738
  if (k)
739
- return C(F, t), j(s.current);
739
+ return S(F, t), j(s.current);
740
740
  }
741
- return o.current || C(F, t), l.current;
741
+ return o.current || S(F, t), l.current;
742
742
  }
743
743
  };
744
744
  return M.cancel = function() {
@@ -1466,7 +1466,7 @@ const Wn = ({ image: e, className: t, testId: n }) => {
1466
1466
  };
1467
1467
  let Ie = !1;
1468
1468
  const wr = ({ isOpen: e = !1, isLoading: t = !1, children: n }) => {
1469
- const r = P(), s = te(null), [i, o] = R("hidden");
1469
+ const r = P(), s = te(null), [i, o] = D("hidden");
1470
1470
  G(() => {
1471
1471
  const m = s.current;
1472
1472
  if (m)
@@ -1705,7 +1705,7 @@ function Jt() {
1705
1705
  return ge(ke);
1706
1706
  }
1707
1707
  const Pr = ({ children: e, user: t }) => /* @__PURE__ */ a.jsx(ke.Provider, { value: t, children: e }), Mi = ({ bootstrap: e, children: t, intl: n }) => {
1708
- const [r, s] = R({ isLoading: !0 });
1708
+ const [r, s] = D({ isLoading: !0 });
1709
1709
  return G(() => {
1710
1710
  e().then((i) => {
1711
1711
  s({ ...i, isLoading: !1 }), br(5e3);
@@ -1782,7 +1782,7 @@ const Ar = ({ type: e = "default", className: t = "", heading: n = !1, children:
1782
1782
  ) : /* @__PURE__ */ a.jsx("p", { children: r })
1783
1783
  ] });
1784
1784
  const Pi = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children: s }) => {
1785
- const i = P(), o = te(null), [c, m] = R(""), [l, f] = R("closed");
1785
+ const i = P(), o = te(null), [c, m] = D(""), [l, f] = D("closed");
1786
1786
  G(() => {
1787
1787
  const h = o.current;
1788
1788
  if (h)
@@ -1824,7 +1824,7 @@ const Pi = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
1824
1824
  }
1825
1825
  ) })
1826
1826
  ] });
1827
- }, Fr = () => A.Fragment, Rr = ({ children: e }) => /* @__PURE__ */ a.jsx(we, { variant: "secondary", children: e }), Dr = ["span", "strong", "h1", "h2", "h3", "h4", "h5", "h6", "p"], Lr = ({ children: e }) => {
1827
+ }, Fr = () => A.Fragment, Dr = ({ children: e }) => /* @__PURE__ */ a.jsx(we, { variant: "secondary", children: e }), Lr = ["span", "strong", "h1", "h2", "h3", "h4", "h5", "h6", "p"], Rr = ({ children: e }) => {
1828
1828
  const t = P();
1829
1829
  if (!e)
1830
1830
  return null;
@@ -1837,7 +1837,7 @@ const Pi = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
1837
1837
  for (const o of Ht.toArray(i.props.children))
1838
1838
  if (!(!o || typeof o == "string" || typeof o == "number") && A.isValidElement(o)) {
1839
1839
  const c = o.type;
1840
- if (Dr.includes(c)) {
1840
+ if (Lr.includes(c)) {
1841
1841
  for (n = o.props.children; typeof n != "string" && (Array.isArray(n) && n[0].props && n[0].props.children && n[0].props.children[0]); )
1842
1842
  n = n[0].props.children[0];
1843
1843
  break;
@@ -1908,11 +1908,11 @@ const jn = ({ className: e = "", options: t = {}, children: n }) => {
1908
1908
  // We give the content team psuedo-code short cuts to use in Contentful
1909
1909
  CollapsibleSection: Vn,
1910
1910
  TextBox: we,
1911
- CaseStudy: Rr,
1911
+ CaseStudy: Dr,
1912
1912
  // Override embedded HTML
1913
1913
  // Our content team previously used real HTML, which we need to tear out and replace with React components
1914
1914
  style: Fr,
1915
- details: Lr,
1915
+ details: Rr,
1916
1916
  div: Ir,
1917
1917
  iframe: Or
1918
1918
  }
@@ -2015,7 +2015,7 @@ const wn = 256, Ue = ({
2015
2015
  height: i = wn,
2016
2016
  ...o
2017
2017
  }) => {
2018
- const [c, m] = R(!1), l = te(null);
2018
+ const [c, m] = D(!1), l = te(null);
2019
2019
  G(() => {
2020
2020
  const d = l.current;
2021
2021
  if (!d)
@@ -2279,7 +2279,7 @@ const Tn = {
2279
2279
  }
2280
2280
  }, Gr = ({ data: e, cta: t, link: n, gtmContext: r }) => {
2281
2281
  var g;
2282
- const s = P(), [i, o] = R({
2282
+ const s = P(), [i, o] = D({
2283
2283
  loading: !1,
2284
2284
  registered: e.registered || !1
2285
2285
  });
@@ -2366,10 +2366,10 @@ const Qr = {
2366
2366
  gtmContext: s = "Carousel",
2367
2367
  className: i = ""
2368
2368
  }) => {
2369
- const o = P(), c = ge(ke), m = c && typeof c.id == "string", [l, f] = R({
2369
+ const o = P(), c = ge(ke), m = c && typeof c.id == "string", [l, f] = D({
2370
2370
  data: null,
2371
2371
  isLoading: !0
2372
- }), { data: d, isLoading: p } = l, h = Dn(() => {
2372
+ }), { data: d, isLoading: p } = l, h = Ln(() => {
2373
2373
  n(t, m).then((F) => {
2374
2374
  f(() => ({ data: F, isLoading: !1 }));
2375
2375
  }).catch(() => f((F) => ({ ...F, isLoading: !1 })));
@@ -2393,15 +2393,15 @@ const Qr = {
2393
2393
  className: k,
2394
2394
  length: v,
2395
2395
  gtmEvent: _
2396
- } = it[g], b = zn(`card_label_${g}`) ? o.formatMessage({ id: `card_label_${g}` }) : !1, j = d.slug ? `${y}${d.slug}` : !1, C = { ...Qr, ...v };
2397
- let S = { className: "card" };
2398
- j && (S = {
2396
+ } = it[g], b = zn(`card_label_${g}`) ? o.formatMessage({ id: `card_label_${g}` }) : !1, j = d.slug ? `${y}${d.slug}` : !1, S = { ...Qr, ...v };
2397
+ let C = { className: "card" };
2398
+ j && (C = {
2399
2399
  href: j,
2400
2400
  className: "card gtm-trackable",
2401
2401
  "data-gtm-event-context": `${s}-CarouselCard`,
2402
2402
  "data-gtm-event-type": `${_}-click`,
2403
2403
  "data-testid": "link"
2404
- }, d.openInNewTab && (S.target = "_blank"));
2404
+ }, d.openInNewTab && (C.target = "_blank"));
2405
2405
  const I = d.customIcon ? { "--custom-icon": Kr(d.customIcon) } : {};
2406
2406
  return /* @__PURE__ */ a.jsx(
2407
2407
  "li",
@@ -2416,7 +2416,7 @@ const Qr = {
2416
2416
  "data-testid": `${g}-card`,
2417
2417
  children: A.createElement(
2418
2418
  j ? "a" : "div",
2419
- S,
2419
+ C,
2420
2420
  /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2421
2421
  (d.customLabel || b) && /* @__PURE__ */ a.jsx("small", { className: w("card-label text-small", k), children: d.customLabel || b }),
2422
2422
  d.startDate && !d.isOngoingEvent && /* @__PURE__ */ a.jsx(
@@ -2451,14 +2451,14 @@ const Qr = {
2451
2451
  "data-testid": "contributors"
2452
2452
  }
2453
2453
  ),
2454
- d.partner && /* @__PURE__ */ a.jsx("p", { className: "partners", "data-testid": "partners", children: Ne(d.partner.title, C.partner) }),
2454
+ d.partner && /* @__PURE__ */ a.jsx("p", { className: "partners", "data-testid": "partners", children: Ne(d.partner.title, S.partner) }),
2455
2455
  /* Text */
2456
2456
  ["title", "text", "secondaryText"].map((F) => {
2457
2457
  const M = d[F];
2458
2458
  if (!M)
2459
2459
  return null;
2460
2460
  const T = ur(F);
2461
- return /* @__PURE__ */ a.jsx("p", { className: T, "data-testid": T, children: Ne(M, C[F]) }, F);
2461
+ return /* @__PURE__ */ a.jsx("p", { className: T, "data-testid": T, children: Ne(M, S[F]) }, F);
2462
2462
  }),
2463
2463
  /* @__PURE__ */ a.jsx(Yr, { type: k || "", data: d }),
2464
2464
  /* @__PURE__ */ a.jsx(Gr, { data: d, cta: r, link: j || "", gtmContext: s })
@@ -2521,10 +2521,10 @@ const ts = ({
2521
2521
  gtmContext: o
2522
2522
  }) => {
2523
2523
  var F;
2524
- const c = P(), [m, l] = R({
2524
+ const c = P(), [m, l] = D({
2525
2525
  cardsPerPage: 4,
2526
2526
  isLoading: !0
2527
- }), { cardsPerPage: f, isLoading: d } = m, [p, h] = R({
2527
+ }), { cardsPerPage: f, isLoading: d } = m, [p, h] = D({
2528
2528
  currentPage: 0,
2529
2529
  loadedPages: [0]
2530
2530
  }), { currentPage: g, loadedPages: y } = p, k = t.length, v = Math.ceil(k / f), _ = te(null), b = He(!0, !0, _ == null ? void 0 : _.current);
@@ -2555,9 +2555,9 @@ const ts = ({
2555
2555
  currentPage: T,
2556
2556
  loadedPages: [.../* @__PURE__ */ new Set([...y, T])]
2557
2557
  }));
2558
- }, C = (M) => {
2559
- Ge = M.touches[0].clientX;
2560
2558
  }, S = (M) => {
2559
+ Ge = M.touches[0].clientX;
2560
+ }, C = (M) => {
2561
2561
  if (Ge === null)
2562
2562
  return;
2563
2563
  const T = M.touches[0].clientX, E = Ge - T;
@@ -2580,8 +2580,8 @@ const ts = ({
2580
2580
  "ul",
2581
2581
  {
2582
2582
  className: "carousel",
2583
- onTouchStart: C,
2584
- onTouchMove: S,
2583
+ onTouchStart: S,
2584
+ onTouchMove: C,
2585
2585
  style: I,
2586
2586
  "data-testid": "carousel-list",
2587
2587
  children: t.map((M, T) => {
@@ -2690,7 +2690,7 @@ const ts = ({
2690
2690
  const Pt = "joinCommunityButton", ta = ({ isMember: e = !1, isShort: t = !1, functions: { join: n, leave: r } = { join: () => {
2691
2691
  }, leave: () => {
2692
2692
  } } }) => {
2693
- const s = P(), i = ge(ke), o = i && typeof i.id == "string", [c, m] = R(e), [l, f] = R(e ? "joined" : "notJoined");
2693
+ const s = P(), i = ge(ke), o = i && typeof i.id == "string", [c, m] = D(e), [l, f] = D(e ? "joined" : "notJoined");
2694
2694
  G(() => {
2695
2695
  l === "joining" ? f("joined") : l === "leaving" && f("notJoined");
2696
2696
  }, [c]);
@@ -2712,7 +2712,7 @@ const Pt = "joinCommunityButton", ta = ({ isMember: e = !1, isShort: t = !1, fun
2712
2712
  }
2713
2713
  );
2714
2714
  };
2715
- const At = "communityDetails_", Ri = ({
2715
+ const At = "communityDetails_", Di = ({
2716
2716
  className: e = "",
2717
2717
  isMember: t = !1,
2718
2718
  slug: n,
@@ -2759,7 +2759,7 @@ const At = "communityDetails_", Ri = ({
2759
2759
  )
2760
2760
  ] });
2761
2761
  };
2762
- const Di = ({
2762
+ const Li = ({
2763
2763
  breadcrumbs: e,
2764
2764
  cutoff: t = 20,
2765
2765
  className: n = ""
@@ -2773,7 +2773,7 @@ const Di = ({
2773
2773
  ] }, `${window.btoa(s)}_${c}`)) })
2774
2774
  ] });
2775
2775
  };
2776
- const Li = ({
2776
+ const Ri = ({
2777
2777
  options: e,
2778
2778
  allOption: t = !1,
2779
2779
  allowMultiple: n = !0,
@@ -2781,7 +2781,7 @@ const Li = ({
2781
2781
  },
2782
2782
  className: s = ""
2783
2783
  }) => {
2784
- const i = P(), o = t ? [{ id: "all", text: typeof t != "boolean" && t.text || i.formatMessage({ id: "filters_all" }) }, ...e] : e, [c, m] = R(t ? ["all"] : []), l = (f, d) => {
2784
+ const i = P(), o = t ? [{ id: "all", text: typeof t != "boolean" && t.text || i.formatMessage({ id: "filters_all" }) }, ...e] : e, [c, m] = D(t ? ["all"] : []), l = (f, d) => {
2785
2785
  let p = [];
2786
2786
  c.includes(f) ? p = c.filter((h) => h !== f) : f === "all" ? p = ["all"] : n ? p = [...c.filter((h) => h !== "all"), f] : p = [f], m((h) => (r && typeof r == "function" && r({ current: p, previous: h }), p)), d && typeof d == "function" && d();
2787
2787
  };
@@ -2821,7 +2821,7 @@ const Ft = { en: "English", es: "Español", fr: "Français", pt: "Português" },
2821
2821
  label: c,
2822
2822
  className: m = ""
2823
2823
  }) => {
2824
- const l = P(), [f, d] = R(e);
2824
+ const l = P(), [f, d] = D(e);
2825
2825
  if (G(() => {
2826
2826
  e !== f && d(e);
2827
2827
  }, [e]), !r || !Object.values(r).some((y) => y && y.post_name))
@@ -2858,20 +2858,20 @@ const Ft = { en: "English", es: "Español", fr: "Français", pt: "Português" },
2858
2858
  })
2859
2859
  ] });
2860
2860
  };
2861
- const Rt = Ua({ locale: "en", messages: Qt }), yt = ({
2861
+ const Dt = Ua({ locale: "en", messages: Qt }), yt = ({
2862
2862
  hasNextPage: e = !0,
2863
2863
  loadNextPage: t = () => {
2864
2864
  },
2865
2865
  icon: n = !1,
2866
2866
  messages: r = {
2867
- button: Rt.formatMessage({ id: "loadMore_button" }),
2868
- endOfFeed: Rt.formatMessage({ id: "loadMore_endOfFeed" }),
2869
- error: Rt.formatMessage({ id: "loadMore_error" })
2867
+ button: Dt.formatMessage({ id: "loadMore_button" }),
2868
+ endOfFeed: Dt.formatMessage({ id: "loadMore_endOfFeed" }),
2869
+ error: Dt.formatMessage({ id: "loadMore_error" })
2870
2870
  },
2871
2871
  className: s = "",
2872
2872
  gtmContext: i = "LoadMore"
2873
2873
  }) => {
2874
- const [o, c] = R(""), m = async (l) => {
2874
+ const [o, c] = D(""), m = async (l) => {
2875
2875
  try {
2876
2876
  await t(l);
2877
2877
  } catch (f) {
@@ -2895,7 +2895,7 @@ const Rt = Ua({ locale: "en", messages: Qt }), yt = ({
2895
2895
  const na = ({ variant: e = "default", version: t = "default", className: n = "", ...r }) => /* @__PURE__ */ a.jsx("p", { className: "logo-wrapper", children: /* @__PURE__ */ a.jsx("a", { href: "/home/", className: w("logo", e, t, n), ...r, children: /* @__PURE__ */ a.jsx(ae, { children: /* @__PURE__ */ a.jsx(je, { id: "apolitical" }) }) }) });
2896
2896
  let Qe = !1;
2897
2897
  const as = ({ element: e = "div", id: t = "more-menu", options: n, className: r = "" }) => {
2898
- const s = P(), i = te(null), [o, c] = R(!1), m = (l) => {
2898
+ const s = P(), i = te(null), [o, c] = D(!1), m = (l) => {
2899
2899
  i.current && l.target instanceof HTMLElement && !i.current.contains(l.target) && c(!1);
2900
2900
  };
2901
2901
  return G(() => (document.addEventListener("click", m, !0), () => {
@@ -3096,7 +3096,7 @@ const Bi = ({ tabs: e, className: t = "" }) => {
3096
3096
  }
3097
3097
  }
3098
3098
  }
3099
- const [s, i] = R(
3099
+ const [s, i] = D(
3100
3100
  (m = e[r]) != null && m.id ? e[r].id : n(e[r].id, e[r].text, r)
3101
3101
  ), o = [], c = [];
3102
3102
  return e.forEach(({ id: l, text: f, content: d, href: p }, h) => {
@@ -3152,9 +3152,9 @@ const ls = {
3152
3152
  /* @__PURE__ */ a.jsx(is, { activeLink: e }),
3153
3153
  /* @__PURE__ */ a.jsx(qr, { ...t })
3154
3154
  ] }) }) });
3155
- const Dt = "cookieBanner_", Lt = ["apol-cookie-banner", "apolitical-performance-cookie-consent", "functional-cookie-consent"], It = new Date(Date.now() + 12 * 30 * 24 * 60 * 60 * 1e3), us = () => {
3156
- const e = P(), [t, n, r] = Ka(Lt), [s, i] = R(!t["apol-cookie-banner"]), o = () => {
3157
- Lt.forEach((f) => {
3155
+ const Lt = "cookieBanner_", Rt = ["apol-cookie-banner", "apolitical-performance-cookie-consent", "functional-cookie-consent"], It = new Date(Date.now() + 12 * 30 * 24 * 60 * 60 * 1e3), us = () => {
3156
+ const e = P(), [t, n, r] = Ka(Rt), [s, i] = D(!t["apol-cookie-banner"]), o = () => {
3157
+ Rt.forEach((f) => {
3158
3158
  n(f, !0, {
3159
3159
  path: "/",
3160
3160
  expires: It,
@@ -3165,7 +3165,7 @@ const Dt = "cookieBanner_", Lt = ["apol-cookie-banner", "apolitical-performance-
3165
3165
  n("apol-cookie-banner", !0, {
3166
3166
  path: "/",
3167
3167
  expires: It
3168
- }), Lt.forEach((f) => {
3168
+ }), Rt.forEach((f) => {
3169
3169
  if (f === "apol-cookie-banner") {
3170
3170
  n(f, !0, {
3171
3171
  path: "/",
@@ -3191,11 +3191,11 @@ const Dt = "cookieBanner_", Lt = ["apol-cookie-banner", "apolitical-performance-
3191
3191
  className: "gtm-trackable",
3192
3192
  "data-gtm-event-context": "cookie-banner",
3193
3193
  "data-gtm-event-type": `cookie-${f.gtmType}-click`,
3194
- children: e.formatMessage({ id: `${Dt}buttons_${f.id}` })
3194
+ children: e.formatMessage({ id: `${Lt}buttons_${f.id}` })
3195
3195
  });
3196
3196
  }), /* @__PURE__ */ a.jsxs("aside", { id: "cookie-banner", className: "text-medium", children: [
3197
- /* @__PURE__ */ a.jsx("h6", { children: e.formatMessage({ id: `${Dt}title` }) }),
3198
- /* @__PURE__ */ a.jsx("p", { children: e.formatMessage({ id: `${Dt}text` }) }),
3197
+ /* @__PURE__ */ a.jsx("h6", { children: e.formatMessage({ id: `${Lt}title` }) }),
3198
+ /* @__PURE__ */ a.jsx("p", { children: e.formatMessage({ id: `${Lt}text` }) }),
3199
3199
  /* @__PURE__ */ a.jsx(ht, { buttons: l })
3200
3200
  ] });
3201
3201
  }, xe = {
@@ -3366,7 +3366,7 @@ const Me = "footer_", ot = "SiteFooter", En = ({ group: e }) => {
3366
3366
  ] })
3367
3367
  ] }) });
3368
3368
  const Je = "emailHelperTextBox_", qi = ({ type: e, email: t, redirectPath: n, resendVerificationCode: r }) => {
3369
- const s = P(), [i, o] = R({ path: `${Je}default`, type: "default", link: {}, mail: {}, error: "" }), [c, m] = R(!1), l = Dn(
3369
+ const s = P(), [i, o] = D({ path: `${Je}default`, type: "default", link: {}, mail: {}, error: "" }), [c, m] = D(!1), l = Ln(
3370
3370
  (h) => {
3371
3371
  h.preventDefault(), h.stopPropagation();
3372
3372
  const g = (y) => {
@@ -3518,7 +3518,7 @@ const Ui = ({
3518
3518
  className: i = "",
3519
3519
  hasLoaded: o = !1
3520
3520
  }) => {
3521
- const c = P(), [m, l] = R({ setUp: !1, id: null, rating: null, disabled: !0 }), f = async () => {
3521
+ const c = P(), [m, l] = D({ setUp: !1, id: null, rating: null, disabled: !0 }), f = async () => {
3522
3522
  try {
3523
3523
  const v = await n();
3524
3524
  l((_) => ({ ..._, setUp: !0, id: v && v.id, disabled: !1 }));
@@ -3635,18 +3635,18 @@ const hs = ({
3635
3635
  initialFormStatus: l = "NOT_SUBMITTED"
3636
3636
  /* NOT_SUBMITTED */
3637
3637
  }) => {
3638
- const [f, d] = R([]), [p, h] = R(!0), [g, y] = R(l), { formatMessage: k } = P(), v = async (j) => {
3638
+ const [f, d] = D([]), [p, h] = D(!0), [g, y] = D(l), { formatMessage: k } = P(), v = async (j) => {
3639
3639
  j.preventDefault();
3640
3640
  try {
3641
3641
  await m(f), d([]), y(
3642
3642
  "SUCCESS"
3643
3643
  /* SUCCESS */
3644
3644
  );
3645
- } catch (C) {
3645
+ } catch (S) {
3646
3646
  y(
3647
3647
  "ERROR"
3648
3648
  /* ERROR */
3649
- ), c(C);
3649
+ ), c(S);
3650
3650
  }
3651
3651
  }, _ = (j) => {
3652
3652
  j.preventDefault(), y(
@@ -3690,7 +3690,7 @@ const hs = ({
3690
3690
  d(j), h(!j.length);
3691
3691
  },
3692
3692
  autoFocus: !1,
3693
- getLabel: (j, C, S) => /* @__PURE__ */ a.jsxs("div", { className: "email text-medium", children: [
3693
+ getLabel: (j, S, C) => /* @__PURE__ */ a.jsxs("div", { className: "email text-medium", children: [
3694
3694
  /* @__PURE__ */ a.jsx("div", { "data-tag-item": !0, children: j }),
3695
3695
  /* @__PURE__ */ a.jsx(
3696
3696
  q,
@@ -3699,13 +3699,13 @@ const hs = ({
3699
3699
  size: "small",
3700
3700
  icon: { icon: "close" },
3701
3701
  onClick: () => {
3702
- S(C), h(!f.length);
3702
+ C(S), h(!f.length);
3703
3703
  },
3704
3704
  className: "remove-email-button",
3705
3705
  screenreaderText: k({ id: "overlay_close" })
3706
3706
  }
3707
3707
  )
3708
- ] }, C)
3708
+ ] }, S)
3709
3709
  }
3710
3710
  )
3711
3711
  ] }),
@@ -4169,7 +4169,7 @@ const la = ({
4169
4169
  className: f = "",
4170
4170
  gtmContext: d = "Modal"
4171
4171
  }) => {
4172
- const p = P(), [h, g] = R(t), y = (v) => {
4172
+ const p = P(), [h, g] = D(t), y = (v) => {
4173
4173
  g(v), v ? (s(), document.body.classList.add("has-overlay")) : (i(), document.body.classList.remove("has-overlay"));
4174
4174
  };
4175
4175
  G(() => {
@@ -4426,9 +4426,9 @@ const de = "discussion_form_", en = ({
4426
4426
  gtmContext: m = "DiscussionForm"
4427
4427
  }) => {
4428
4428
  var M, T, E;
4429
- const l = P(), f = ge(ke), [d, p] = R(
4429
+ const l = P(), f = ge(ke), [d, p] = D(
4430
4430
  n.isEditing && n.isEditing.text || ""
4431
- ), [h, g] = R(o.error || !1), [y, k] = R(!1), v = te(null);
4431
+ ), [h, g] = D(o.error || !1), [y, k] = D(!1), v = te(null);
4432
4432
  if (r || (r = v), n.isLoading)
4433
4433
  return /* @__PURE__ */ a.jsx(
4434
4434
  _e,
@@ -4460,7 +4460,7 @@ const de = "discussion_form_", en = ({
4460
4460
  }
4461
4461
  const j = async (O) => {
4462
4462
  var U;
4463
- if (O.preventDefault(), O.stopPropagation(), !f || !f.id || !t || S)
4463
+ if (O.preventDefault(), O.stopPropagation(), !f || !f.id || !t || C)
4464
4464
  return;
4465
4465
  et && clearTimeout(et), k("submitting");
4466
4466
  const H = window.location.pathname;
@@ -4493,7 +4493,7 @@ const de = "discussion_form_", en = ({
4493
4493
  break;
4494
4494
  }
4495
4495
  await xr(1e3), c.callback && await c.callback(W), et = setTimeout(() => {
4496
- p(""), k("submitted"), C();
4496
+ p(""), k("submitted"), S();
4497
4497
  }, 500);
4498
4498
  } catch (W) {
4499
4499
  const Q = W;
@@ -4508,13 +4508,13 @@ const de = "discussion_form_", en = ({
4508
4508
  `${de}error_tooMany`,
4509
4509
  e.type,
4510
4510
  "action"
4511
- ) : Q.message.includes("400") && (V = `${de}error`), g(V), C();
4511
+ ) : Q.message.includes("400") && (V = `${de}error`), g(V), S();
4512
4512
  }
4513
- }, C = () => {
4513
+ }, S = () => {
4514
4514
  et = setTimeout(() => {
4515
4515
  g(!1), k(!1);
4516
4516
  }, 5e3);
4517
- }, S = !d || !yr(d), I = y === "submitting", F = [];
4517
+ }, C = !d || !yr(d), I = y === "submitting", F = [];
4518
4518
  return (n.isEditing && !I || o.cancel) && F.push({
4519
4519
  variant: "secondary",
4520
4520
  size: { mobile: "small", 600: "medium" },
@@ -4540,7 +4540,7 @@ const de = "discussion_form_", en = ({
4540
4540
  "data-gtm-event-context": m,
4541
4541
  "data-gtm-event-type": `${n.isEditing ? "save" : "submit"}-${e.type}-click`,
4542
4542
  "data-testid": "save-button",
4543
- disabled: !f || !f.id || !t || S || I || n.isEditing && d === n.isEditing.text,
4543
+ disabled: !f || !f.id || !t || C || I || n.isEditing && d === n.isEditing.text,
4544
4544
  children: l.formatMessage({
4545
4545
  id: `${de}${I ? n.isEditing ? "saving" : "posting" : n.isEditing ? "save" : "post"}`
4546
4546
  })
@@ -4637,7 +4637,7 @@ const de = "discussion_form_", en = ({
4637
4637
  showThread: !0,
4638
4638
  showForm: !1
4639
4639
  }, vt = Gt(xs), ks = ({ children: e }) => {
4640
- const [t, n] = R({
4640
+ const [t, n] = D({
4641
4641
  showThread: !0,
4642
4642
  showForm: !1
4643
4643
  });
@@ -4670,8 +4670,8 @@ const Bt = () => {
4670
4670
  G(() => {
4671
4671
  h(s);
4672
4672
  }, [s]);
4673
- const [f, d] = R(t), [p, h] = R(s), [g, y] = R(!1), [k, v] = R(!1), _ = ft(() => ws(n, Zt), [n]), b = (C) => {
4674
- if (C.preventDefault(), C.stopPropagation(), v(!1), Ze)
4673
+ const [f, d] = D(t), [p, h] = D(s), [g, y] = D(!1), [k, v] = D(!1), _ = ft(() => ws(n, Zt), [n]), b = (S) => {
4674
+ if (S.preventDefault(), S.stopPropagation(), v(!1), Ze)
4675
4675
  return Bt(), !1;
4676
4676
  if (Bt(), g || !o)
4677
4677
  return !1;
@@ -4679,12 +4679,12 @@ const Bt = () => {
4679
4679
  }, j = async () => {
4680
4680
  if (Bt(), g || !o)
4681
4681
  return !1;
4682
- let C = p ? f - 1 : f + 1;
4683
- C < 0 && (C = 0), y(!0), d(C), h(!p);
4682
+ let S = p ? f - 1 : f + 1;
4683
+ S < 0 && (S = 0), y(!0), d(S), h(!p);
4684
4684
  try {
4685
4685
  if (i && i.slugs) {
4686
- const S = js(i.slugs);
4687
- p ? await m(S) : await c(S, { contentPath: window.location.pathname });
4686
+ const C = js(i.slugs);
4687
+ p ? await m(C) : await c(C, { contentPath: window.location.pathname });
4688
4688
  }
4689
4689
  } catch {
4690
4690
  d(t), h(s);
@@ -4730,16 +4730,16 @@ const Bt = () => {
4730
4730
  ),
4731
4731
  /* @__PURE__ */ a.jsx("span", { className: w("number-of-likes", { "no-likes": f === 0 }), "data-testid": "number-of-likes", children: l.formatMessage({ id: `discussion_likes${r ? "_short" : ""}` }, { number: f }) }),
4732
4732
  n && /* @__PURE__ */ a.jsx(wr, { isOpen: k, isLoading: n.length === 0, children: n.length && /* @__PURE__ */ a.jsxs("ul", { children: [
4733
- _.map((C) => typeof C == "string" || !C.name ? null : /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
4733
+ _.map((S) => typeof S == "string" || !S.name ? null : /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
4734
4734
  gt,
4735
4735
  {
4736
- href: C.id ? `/profiles/${C.id}` : void 0,
4736
+ href: S.id ? `/profiles/${S.id}` : void 0,
4737
4737
  gtmContext: "Likes",
4738
4738
  gtmType: "liked-name-click",
4739
- onClick: (S) => S == null ? void 0 : S.stopPropagation(),
4740
- children: C.name
4739
+ onClick: (C) => C == null ? void 0 : C.stopPropagation(),
4740
+ children: S.name
4741
4741
  }
4742
- ) }, C.id || window.btoa(C.name))),
4742
+ ) }, S.id || window.btoa(S.name))),
4743
4743
  n.length > Zt && /* @__PURE__ */ a.jsx("li", { children: l.formatMessage({ id: "discussion_likes_more" }, { number: n.length - Zt }) })
4744
4744
  ] }) })
4745
4745
  ] })
@@ -4779,13 +4779,13 @@ const ve = "discussion_", $s = 280, kt = ({
4779
4779
  children: y,
4780
4780
  isTruncated: k = !1
4781
4781
  }) => {
4782
- const v = P(), _ = ge(ke), b = ge(vt), [j, C] = R({
4782
+ const v = P(), _ = ge(ke), b = ge(vt), [j, S] = D({
4783
4783
  body: t && t.body || "",
4784
4784
  isEditing: !1,
4785
4785
  didEdit: t && t.isEdited || !1
4786
- }), [S, I] = R(!1), [F, M] = R("");
4786
+ }), [C, I] = D(!1), [F, M] = D("");
4787
4787
  if (G(() => {
4788
- C({
4788
+ S({
4789
4789
  ...j,
4790
4790
  body: t && t.body || "",
4791
4791
  didEdit: t && t.isEdited || !1
@@ -4799,7 +4799,7 @@ const ve = "discussion_", $s = 280, kt = ({
4799
4799
  const ue = t.type === "question" ? { title: Z } : { body: Z };
4800
4800
  await m(Sn(t.slugs), ue);
4801
4801
  }
4802
- C({ body: Z, isEditing: !1, didEdit: !0 });
4802
+ S({ body: Z, isEditing: !1, didEdit: !0 });
4803
4803
  } catch {
4804
4804
  M(`${ve}form_error`);
4805
4805
  }
@@ -4837,7 +4837,7 @@ const ve = "discussion_", $s = 280, kt = ({
4837
4837
  return n && ee && le.push(
4838
4838
  {
4839
4839
  text: v.formatMessage({ id: `${ve}moreMenu_edit` }),
4840
- onClick: () => C({ ...j, isEditing: !0 }),
4840
+ onClick: () => S({ ...j, isEditing: !0 }),
4841
4841
  icon: "pencil-paper",
4842
4842
  className: "gtm-trackable",
4843
4843
  "data-gtm-event-context": g,
@@ -4852,7 +4852,7 @@ const ve = "discussion_", $s = 280, kt = ({
4852
4852
  className: "gtm-trackable",
4853
4853
  "data-gtm-event-context": g,
4854
4854
  "data-gtm-event-type": `delete-${t.type}-click`,
4855
- ..._s(`delete-${t.slug}-modal`, S)
4855
+ ..._s(`delete-${t.slug}-modal`, C)
4856
4856
  }
4857
4857
  ), A.createElement(e, {
4858
4858
  className: w("discussion-post", h),
@@ -4905,7 +4905,7 @@ const ve = "discussion_", $s = 280, kt = ({
4905
4905
  create: o,
4906
4906
  handleSaveEdit: se,
4907
4907
  handleCancel: () => {
4908
- M(""), C({ ...j, isEditing: !1 });
4908
+ M(""), S({ ...j, isEditing: !1 });
4909
4909
  }
4910
4910
  },
4911
4911
  gtmContext: `${g}Form`
@@ -5015,7 +5015,7 @@ const ve = "discussion_", $s = 280, kt = ({
5015
5015
  la,
5016
5016
  {
5017
5017
  id: `delete-${t.slug}-modal`,
5018
- isOpen: S,
5018
+ isOpen: C,
5019
5019
  functions: { onOpen: () => {
5020
5020
  }, onClose: () => I(!1) },
5021
5021
  forceShow: {
@@ -5071,7 +5071,7 @@ const qt = "discussion_responses_", Yi = ({ type: e = "answer", responses: t = 0
5071
5071
  ] });
5072
5072
  };
5073
5073
  const Es = ({ count: e = "", showRepliesButton: t = !0, children: n }) => {
5074
- const r = P(), s = te(null), i = ge(vt), [o, c] = R(
5074
+ const r = P(), s = te(null), i = ge(vt), [o, c] = D(
5075
5075
  "closed"
5076
5076
  /* Closed */
5077
5077
  );
@@ -5274,7 +5274,7 @@ const Ae = Object.freeze({
5274
5274
  object: "comment",
5275
5275
  time: "2023-11-24T17:52:36.162000",
5276
5276
  verb: "post"
5277
- }), Rs = Object.freeze({
5277
+ }), Ds = Object.freeze({
5278
5278
  actor: `SU:${$e.id}`,
5279
5279
  content: "some content 2",
5280
5280
  duration: "5.53ms",
@@ -5284,7 +5284,7 @@ const Ae = Object.freeze({
5284
5284
  object: "comment",
5285
5285
  time: "2023-11-24T17:54:36.162000",
5286
5286
  verb: "post"
5287
- }), Ds = Object.freeze({
5287
+ }), Ls = Object.freeze({
5288
5288
  actor: `SU:${Ae.id}`,
5289
5289
  content: "some content 3",
5290
5290
  duration: "5.53ms",
@@ -5294,7 +5294,7 @@ const Ae = Object.freeze({
5294
5294
  object: "comment",
5295
5295
  time: "2023-11-24T17:56:36.162000",
5296
5296
  verb: "post"
5297
- }), Ls = Object.freeze({
5297
+ }), Rs = Object.freeze({
5298
5298
  actor: `SU:${$e.id}`,
5299
5299
  content: "some content 4",
5300
5300
  duration: "5.53ms",
@@ -5357,7 +5357,7 @@ Object.freeze({
5357
5357
  updated_at: "2023-08-31T07:11:38.677184Z"
5358
5358
  },
5359
5359
  kind: "reply",
5360
- activity_id: Rs.id,
5360
+ activity_id: Ds.id,
5361
5361
  data: {
5362
5362
  content: "Some content 2..."
5363
5363
  },
@@ -5377,7 +5377,7 @@ Object.freeze({
5377
5377
  updated_at: "2023-08-31T07:11:38.677184Z"
5378
5378
  },
5379
5379
  kind: "reply",
5380
- activity_id: Ds.id,
5380
+ activity_id: Ls.id,
5381
5381
  data: {
5382
5382
  content: "Some content 3..."
5383
5383
  },
@@ -5397,7 +5397,7 @@ Object.freeze({
5397
5397
  updated_at: "2023-08-31T07:11:38.677184Z"
5398
5398
  },
5399
5399
  kind: "reply",
5400
- activity_id: Ls.id,
5400
+ activity_id: Rs.id,
5401
5401
  data: {
5402
5402
  content: "Some content 4..."
5403
5403
  },
@@ -5508,7 +5508,7 @@ function qs({ queryFn: e, queryKey: t }) {
5508
5508
  isLoading: s,
5509
5509
  hasNextPage: i,
5510
5510
  fetchNextPage: o
5511
- } = Ln({
5511
+ } = Rn({
5512
5512
  queryKey: t,
5513
5513
  queryFn: e,
5514
5514
  initialPageParam: { next: null },
@@ -5630,7 +5630,7 @@ const Gi = ({
5630
5630
  ),
5631
5631
  c == null ? void 0 : c.map((_) => {
5632
5632
  var O, H, U, W, Q, V, ee, re, se;
5633
- const { own_reactions: b, latest_reactions: j } = _, C = (((O = j == null ? void 0 : j.like) == null ? void 0 : O.length) || 0) > 0, S = (((H = b == null ? void 0 : b.like) == null ? void 0 : H.length) || 0) > 0, I = _ == null ? void 0 : _.id, F = S ? b == null ? void 0 : b.like[0].id : null, M = C ? (U = j == null ? void 0 : j.like) == null ? void 0 : U.map((ne) => {
5633
+ const { own_reactions: b, latest_reactions: j } = _, S = (((O = j == null ? void 0 : j.like) == null ? void 0 : O.length) || 0) > 0, C = (((H = b == null ? void 0 : b.like) == null ? void 0 : H.length) || 0) > 0, I = _ == null ? void 0 : _.id, F = C ? b == null ? void 0 : b.like[0].id : null, M = S ? (U = j == null ? void 0 : j.like) == null ? void 0 : U.map((ne) => {
5634
5634
  var oe, le, Z;
5635
5635
  return {
5636
5636
  id: (oe = ne == null ? void 0 : ne.user) == null ? void 0 : oe.id,
@@ -5660,7 +5660,7 @@ const Gi = ({
5660
5660
  thumbnail: ((ee = T == null ? void 0 : T.data) == null ? void 0 : ee.thumbnail) || void 0
5661
5661
  }
5662
5662
  },
5663
- userLiked: S,
5663
+ userLiked: C,
5664
5664
  likes: ((re = _ == null ? void 0 : _.reaction_counts) == null ? void 0 : re.like) || 0,
5665
5665
  comments: ((se = _ == null ? void 0 : _.reaction_counts) == null ? void 0 : se.reply) || 0,
5666
5666
  peopleWhoLiked: M
@@ -6355,7 +6355,7 @@ function Ks({ queryFn: e, queryKey: t }) {
6355
6355
  isLoading: s,
6356
6356
  hasNextPage: i,
6357
6357
  fetchNextPage: o
6358
- } = Ln({
6358
+ } = Rn({
6359
6359
  queryKey: t,
6360
6360
  queryFn: e,
6361
6361
  initialPageParam: { next: "" },
@@ -6477,11 +6477,11 @@ const ri = ({
6477
6477
  Es,
6478
6478
  {
6479
6479
  count: m,
6480
- showRepliesButton: !1,
6480
+ showRepliesButton: c.length > 0 && _.showForm,
6481
6481
  children: /* @__PURE__ */ a.jsxs("section", { children: [
6482
6482
  c == null ? void 0 : c.map((b) => {
6483
6483
  var W, Q, V, ee, re, se, ne, oe, le, Z, ue;
6484
- const { own_children: j, latest_children: C } = b, S = b == null ? void 0 : b.id, I = (((W = C == null ? void 0 : C.like) == null ? void 0 : W.length) || 0) > 0, F = (((Q = j == null ? void 0 : j.like) == null ? void 0 : Q.length) || 0) > 0, M = F ? j == null ? void 0 : j.like[0].id : null, T = I ? (V = C == null ? void 0 : C.like) == null ? void 0 : V.map((K) => {
6484
+ const { id: j, own_children: S, latest_children: C } = b, I = (((W = C == null ? void 0 : C.like) == null ? void 0 : W.length) || 0) > 0, F = (((Q = S == null ? void 0 : S.like) == null ? void 0 : Q.length) || 0) > 0, M = F ? S == null ? void 0 : S.like[0].id : null, T = I ? (V = C == null ? void 0 : C.like) == null ? void 0 : V.map((K) => {
6485
6485
  var ie, me, pe;
6486
6486
  return {
6487
6487
  id: (ie = K == null ? void 0 : K.user) == null ? void 0 : ie.id,
@@ -6520,18 +6520,18 @@ const ri = ({
6520
6520
  functions: {
6521
6521
  content: {
6522
6522
  createContent: () => null,
6523
- deleteContent: () => y({ replyId: S }),
6523
+ deleteContent: () => y({ replyId: j }),
6524
6524
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6525
- updateContent: (K, { body: ie }) => h({ replyId: S, content: ie })
6525
+ updateContent: (K, { body: ie }) => h({ replyId: j, content: ie })
6526
6526
  },
6527
6527
  likes: {
6528
- createLike: () => g({ replyId: S }),
6529
- deleteLike: () => k({ replyId: S, reactionId: M })
6528
+ createLike: () => g({ replyId: j }),
6529
+ deleteLike: () => k({ replyId: j, reactionId: M })
6530
6530
  },
6531
6531
  comments: {}
6532
6532
  }
6533
6533
  },
6534
- S
6534
+ j
6535
6535
  );
6536
6536
  }),
6537
6537
  !d && /* @__PURE__ */ a.jsx(
@@ -6619,7 +6619,7 @@ const ri = ({
6619
6619
  ),
6620
6620
  m == null ? void 0 : m.map((b) => {
6621
6621
  var W, Q, V, ee, re, se, ne, oe, le, Z, ue;
6622
- const { own_children: j, latest_children: C } = b, S = b == null ? void 0 : b.id, I = (((W = C == null ? void 0 : C.like) == null ? void 0 : W.length) || 0) > 0, F = (((Q = j == null ? void 0 : j.like) == null ? void 0 : Q.length) || 0) > 0, M = F ? j == null ? void 0 : j.like[0].id : null, T = I ? (V = C == null ? void 0 : C.like) == null ? void 0 : V.map((K) => {
6622
+ const { own_children: j, latest_children: S } = b, C = b == null ? void 0 : b.id, I = (((W = S == null ? void 0 : S.like) == null ? void 0 : W.length) || 0) > 0, F = (((Q = j == null ? void 0 : j.like) == null ? void 0 : Q.length) || 0) > 0, M = F ? j == null ? void 0 : j.like[0].id : null, T = I ? (V = S == null ? void 0 : S.like) == null ? void 0 : V.map((K) => {
6623
6623
  var ie, me, pe;
6624
6624
  return {
6625
6625
  id: (ie = K == null ? void 0 : K.user) == null ? void 0 : ie.id,
@@ -6637,9 +6637,9 @@ const ri = ({
6637
6637
  slugs: {
6638
6638
  question: `${e}/${t}`,
6639
6639
  answer: n,
6640
- reply: S
6640
+ reply: C
6641
6641
  },
6642
- slug: S,
6642
+ slug: C,
6643
6643
  author: {
6644
6644
  id: E == null ? void 0 : E.id,
6645
6645
  name: (ne = E.data) == null ? void 0 : ne.name,
@@ -6656,13 +6656,13 @@ const ri = ({
6656
6656
  functions: {
6657
6657
  content: {
6658
6658
  createContent: () => null,
6659
- deleteContent: () => k({ replyId: S }),
6659
+ deleteContent: () => k({ replyId: C }),
6660
6660
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6661
- updateContent: (K, { body: ie }) => g({ replyId: S, content: ie })
6661
+ updateContent: (K, { body: ie }) => g({ replyId: C, content: ie })
6662
6662
  },
6663
6663
  likes: {
6664
- createLike: () => y({ replyId: S }),
6665
- deleteLike: () => v({ replyId: S, reactionId: M })
6664
+ createLike: () => y({ replyId: C }),
6665
+ deleteLike: () => v({ replyId: C, reactionId: M })
6666
6666
  },
6667
6667
  comments: {}
6668
6668
  },
@@ -6672,7 +6672,7 @@ const ri = ({
6672
6672
  basePath: e,
6673
6673
  parentId: t,
6674
6674
  activityId: n,
6675
- replyId: S,
6675
+ replyId: C,
6676
6676
  isMember: r,
6677
6677
  functions: {
6678
6678
  ...s
@@ -6680,8 +6680,8 @@ const ri = ({
6680
6680
  }
6681
6681
  )
6682
6682
  },
6683
- S
6684
- ) }, S);
6683
+ C
6684
+ ) }, C);
6685
6685
  }),
6686
6686
  !p && /* @__PURE__ */ a.jsx(
6687
6687
  yt,
@@ -6826,13 +6826,13 @@ const Qi = ({
6826
6826
  text: l.formatMessage({ id: "activitySection_notFoundError" })
6827
6827
  }
6828
6828
  );
6829
- const { own_reactions: v, latest_reactions: _ } = d, b = (((F = _ == null ? void 0 : _.like) == null ? void 0 : F.length) || 0) > 0, j = (((M = v == null ? void 0 : v.like) == null ? void 0 : M.length) || 0) > 0, C = b ? (T = _ == null ? void 0 : _.like) == null ? void 0 : T.map((V) => {
6829
+ const { own_reactions: v, latest_reactions: _ } = d, b = (((F = _ == null ? void 0 : _.like) == null ? void 0 : F.length) || 0) > 0, j = (((M = v == null ? void 0 : v.like) == null ? void 0 : M.length) || 0) > 0, S = b ? (T = _ == null ? void 0 : _.like) == null ? void 0 : T.map((V) => {
6830
6830
  var ee, re, se;
6831
6831
  return {
6832
6832
  id: (ee = V == null ? void 0 : V.user) == null ? void 0 : ee.id,
6833
6833
  name: (se = (re = V == null ? void 0 : V.user) == null ? void 0 : re.data) == null ? void 0 : se.name
6834
6834
  };
6835
- }) : !1, S = d == null ? void 0 : d.actor, I = (S == null ? void 0 : S.id) === (f == null ? void 0 : f.id);
6835
+ }) : !1, C = d == null ? void 0 : d.actor, I = (C == null ? void 0 : C.id) === (f == null ? void 0 : f.id);
6836
6836
  return /* @__PURE__ */ a.jsx(
6837
6837
  kt,
6838
6838
  {
@@ -6848,20 +6848,20 @@ const Qi = ({
6848
6848
  },
6849
6849
  slug: n,
6850
6850
  author: {
6851
- id: S.id,
6852
- name: (E = S.data) == null ? void 0 : E.name,
6853
- organization: (O = S.data) == null ? void 0 : O.organization,
6854
- jobTitle: (H = S.data) == null ? void 0 : H.jobTitle,
6851
+ id: C.id,
6852
+ name: (E = C.data) == null ? void 0 : E.name,
6853
+ organization: (O = C.data) == null ? void 0 : O.organization,
6854
+ jobTitle: (H = C.data) == null ? void 0 : H.jobTitle,
6855
6855
  image: {
6856
- thumbnail: ((U = S.data) == null ? void 0 : U.thumbnail) || void 0
6856
+ thumbnail: ((U = C.data) == null ? void 0 : U.thumbnail) || void 0
6857
6857
  }
6858
6858
  },
6859
6859
  userLiked: j,
6860
6860
  likes: ((W = d == null ? void 0 : d.reaction_counts) == null ? void 0 : W.like) || 0,
6861
6861
  comments: ((Q = d == null ? void 0 : d.reaction_counts) == null ? void 0 : Q.reply) || 0,
6862
- peopleWhoLiked: C
6862
+ peopleWhoLiked: S
6863
6863
  },
6864
- originalAuthorId: S == null ? void 0 : S.id,
6864
+ originalAuthorId: C == null ? void 0 : C.id,
6865
6865
  forceHide: { comments: !0 },
6866
6866
  functions: {
6867
6867
  content: {
@@ -6902,7 +6902,7 @@ const Qi = ({
6902
6902
  jobTitle: t,
6903
6903
  organization: r,
6904
6904
  image: { thumbnail: s }
6905
- }), Rn = [
6905
+ }), Dn = [
6906
6906
  {
6907
6907
  contentType: "solutionArticle",
6908
6908
  banner: {
@@ -6948,7 +6948,7 @@ const Qi = ({
6948
6948
  ];
6949
6949
  const tt = "notFoundError_", Xi = () => {
6950
6950
  const e = P(), t = [];
6951
- return Rn.forEach((n, r) => {
6951
+ return Dn.forEach((n, r) => {
6952
6952
  n.title = e.formatMessage({ id: `${tt}post_${r + 1}` }), t.push("solutionArticle");
6953
6953
  }), /* @__PURE__ */ a.jsxs(
6954
6954
  ys,
@@ -6959,7 +6959,7 @@ const tt = "notFoundError_", Xi = () => {
6959
6959
  /* @__PURE__ */ a.jsx(
6960
6960
  Jr,
6961
6961
  {
6962
- cards: Rn,
6962
+ cards: Dn,
6963
6963
  cardTypes: t,
6964
6964
  buildCardData: (n) => new Promise((r, s) => {
6965
6965
  r(n);
@@ -6985,7 +6985,7 @@ export {
6985
6985
  Qi as ActivitySection,
6986
6986
  da as AddPost,
6987
6987
  Ci as BannerSection,
6988
- Di as Breadcrumbs,
6988
+ Li as Breadcrumbs,
6989
6989
  q as Button,
6990
6990
  ht as ButtonWrapper,
6991
6991
  Er as CacheProvider,
@@ -6994,7 +6994,7 @@ export {
6994
6994
  Fi as Carousel,
6995
6995
  Vn as CollapsibleSection,
6996
6996
  ds as Columns,
6997
- Ri as CommunityDetails,
6997
+ Di as CommunityDetails,
6998
6998
  Xn as Contributors,
6999
6999
  vt as ConversationContext,
7000
7000
  us as CookieBanner,
@@ -7008,7 +7008,7 @@ export {
7008
7008
  Be as EMAILS,
7009
7009
  qi as EmailHelperTextBox,
7010
7010
  bt as EmptyStateBox,
7011
- Li as Filters,
7011
+ Ri as Filters,
7012
7012
  Mr as FlagsProvider,
7013
7013
  aa as Footer,
7014
7014
  _t as FullWidthSection,