@apolitical/component-library 3.5.11 → 3.5.12-ac.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.mjs CHANGED
@@ -1,14 +1,14 @@
1
- import Y, { memo as Ae, useState as X, useEffect as ae, useRef as pe, useMemo as wt, Children as Bn, createContext as nn, useContext as Ee, useCallback as sa, useReducer as Yn, Fragment as yt, Suspense as xs } from "react";
1
+ import Y, { memo as Ae, useState as X, useEffect as ae, useRef as pe, useMemo as wt, Children as Bn, createContext as nn, useContext as Ee, useCallback as ia, useReducer as Yn, Fragment as yt, Suspense as xs } from "react";
2
+ import { useCookies as Kn, CookiesProvider as ws } from "react-cookie";
2
3
  import pt from "lodash.clonedeep";
3
- import ws from "lodash.set";
4
- import { FormattedMessage as ye, useIntl as H, IntlProvider as js, createIntl as ks } from "react-intl";
4
+ import js from "lodash.set";
5
+ import { FormattedMessage as ye, useIntl as H, IntlProvider as ks, createIntl as Ts } from "react-intl";
5
6
  import Le from "markdown-to-jsx";
6
7
  import et from "truncate";
7
- import { QueryClient as Ts, QueryClientProvider as Es, useMutation as je, useQueryClient as Kn, useInfiniteQuery as ia, useQuery as Ss } from "@tanstack/react-query";
8
- import { ReactQueryDevtools as Cs } from "@tanstack/react-query-devtools";
8
+ import { QueryClient as Es, QueryClientProvider as Ss, useMutation as je, useQueryClient as Gn, useInfiniteQuery as oa, useQuery as Cs } from "@tanstack/react-query";
9
+ import { ReactQueryDevtools as Ns } from "@tanstack/react-query-devtools";
9
10
  import Lt from "posthog-js";
10
- import { CookiesProvider as $s, useCookies as oa } from "react-cookie";
11
- import { ReactMultiEmail as Ns } from "react-multi-email";
11
+ import { ReactMultiEmail as $s } from "react-multi-email";
12
12
  import ca from "lodash.get";
13
13
  import { ErrorBoundary as Ps } from "react-error-boundary";
14
14
  import Ms from "react-textarea-autosize";
@@ -88,7 +88,7 @@ const E = /* @__PURE__ */ la(Fs), Os = ({
88
88
  element: t = "span",
89
89
  children: e = null,
90
90
  ...n
91
- }) => Y.createElement(t, { ...n, "aria-hidden": !0 }, e), Gn = Ae(As);
91
+ }) => Y.createElement(t, { ...n, "aria-hidden": !0 }, e), Qn = Ae(As);
92
92
  var qn = { exports: {} }, it = {};
93
93
  /**
94
94
  * @license React
@@ -99,11 +99,11 @@ var qn = { exports: {} }, it = {};
99
99
  * This source code is licensed under the MIT license found in the
100
100
  * LICENSE file in the root directory of this source tree.
101
101
  */
102
- var xr;
102
+ var wr;
103
103
  function Ds() {
104
- if (xr)
104
+ if (wr)
105
105
  return it;
106
- xr = 1;
106
+ wr = 1;
107
107
  var t = Y, e = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, s = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
108
108
  function o(c, d, l) {
109
109
  var u, f = {}, m = null, p = null;
@@ -127,9 +127,9 @@ var ot = {};
127
127
  * This source code is licensed under the MIT license found in the
128
128
  * LICENSE file in the root directory of this source tree.
129
129
  */
130
- var wr;
130
+ var jr;
131
131
  function Is() {
132
- return wr || (wr = 1, process.env.NODE_ENV !== "production" && function() {
132
+ return jr || (jr = 1, process.env.NODE_ENV !== "production" && function() {
133
133
  var t = Y, e = 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"), o = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), g = Symbol.iterator, v = "@@iterator";
134
134
  function _(h) {
135
135
  if (h === null || typeof h != "object")
@@ -157,7 +157,7 @@ function Is() {
157
157
  }
158
158
  var w = !1, b = !1, F = !1, R = !1, Q = !1, B;
159
159
  B = Symbol.for("react.module.reference");
160
- function $(h) {
160
+ function N(h) {
161
161
  return !!(typeof h == "string" || typeof h == "function" || h === r || h === i || Q || h === s || h === l || h === u || R || h === p || w || b || F || typeof h == "object" && h !== null && (h.$$typeof === m || h.$$typeof === f || h.$$typeof === o || h.$$typeof === c || h.$$typeof === d || // This needs to include all possible module reference object
162
162
  // types supported by any Flight configuration anywhere since
163
163
  // we don't know which Flight build this will end up being used
@@ -219,7 +219,7 @@ function Is() {
219
219
  }
220
220
  return null;
221
221
  }
222
- var N = Object.assign, A = 0, W, Z, z, K, T, P, q;
222
+ var $ = Object.assign, A = 0, W, Z, z, K, T, P, q;
223
223
  function L() {
224
224
  }
225
225
  L.__reactDisabledLog = !0;
@@ -255,25 +255,25 @@ function Is() {
255
255
  writable: !0
256
256
  };
257
257
  Object.defineProperties(console, {
258
- log: N({}, h, {
258
+ log: $({}, h, {
259
259
  value: W
260
260
  }),
261
- info: N({}, h, {
261
+ info: $({}, h, {
262
262
  value: Z
263
263
  }),
264
- warn: N({}, h, {
264
+ warn: $({}, h, {
265
265
  value: z
266
266
  }),
267
- error: N({}, h, {
267
+ error: $({}, h, {
268
268
  value: K
269
269
  }),
270
- group: N({}, h, {
270
+ group: $({}, h, {
271
271
  value: T
272
272
  }),
273
- groupCollapsed: N({}, h, {
273
+ groupCollapsed: $({}, h, {
274
274
  value: P
275
275
  }),
276
- groupEnd: N({}, h, {
276
+ groupEnd: $({}, h, {
277
277
  value: q
278
278
  })
279
279
  });
@@ -368,13 +368,13 @@ function Is() {
368
368
  } finally {
369
369
  re = !1, G.current = me, te(), Error.prepareStackTrace = le;
370
370
  }
371
- var Ge = h ? h.displayName || h.name : "", _r = Ge ? ee(Ge) : "";
372
- return typeof h == "function" && O.set(h, _r), _r;
371
+ var Ge = h ? h.displayName || h.name : "", xr = Ge ? ee(Ge) : "";
372
+ return typeof h == "function" && O.set(h, xr), xr;
373
373
  }
374
374
  function ve(h, M, I) {
375
375
  return D(h, !1);
376
376
  }
377
- function Ne(h) {
377
+ function $e(h) {
378
378
  var M = h.prototype;
379
379
  return !!(M && M.isReactComponent);
380
380
  }
@@ -382,7 +382,7 @@ function Is() {
382
382
  if (h == null)
383
383
  return "";
384
384
  if (typeof h == "function")
385
- return D(h, Ne(h));
385
+ return D(h, $e(h));
386
386
  if (typeof h == "string")
387
387
  return ee(h);
388
388
  switch (h) {
@@ -407,13 +407,13 @@ function Is() {
407
407
  }
408
408
  return "";
409
409
  }
410
- var Ue = Object.prototype.hasOwnProperty, cr = {}, lr = y.ReactDebugCurrentFrame;
410
+ var Ue = Object.prototype.hasOwnProperty, lr = {}, ur = y.ReactDebugCurrentFrame;
411
411
  function Et(h) {
412
412
  if (h) {
413
413
  var M = h._owner, I = Ce(h.type, h._source, M ? M.type : null);
414
- lr.setExtraStackFrame(I);
414
+ ur.setExtraStackFrame(I);
415
415
  } else
416
- lr.setExtraStackFrame(null);
416
+ ur.setExtraStackFrame(null);
417
417
  }
418
418
  function ts(h, M, I, ne, le) {
419
419
  {
@@ -430,7 +430,7 @@ function Is() {
430
430
  } catch (he) {
431
431
  ie = he;
432
432
  }
433
- ie && !(ie instanceof Error) && (Et(le), x("%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).", ne || "React class", I, ce, typeof ie), Et(null)), ie instanceof Error && !(ie.message in cr) && (cr[ie.message] = !0, Et(le), x("Failed %s type: %s", I, ie.message), Et(null));
433
+ ie && !(ie instanceof Error) && (Et(le), x("%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).", ne || "React class", I, ce, typeof ie), Et(null)), ie instanceof Error && !(ie.message in lr) && (lr[ie.message] = !0, Et(le), x("Failed %s type: %s", I, ie.message), Et(null));
434
434
  }
435
435
  }
436
436
  }
@@ -446,24 +446,24 @@ function Is() {
446
446
  }
447
447
  function as(h) {
448
448
  try {
449
- return ur(h), !1;
449
+ return dr(h), !1;
450
450
  } catch {
451
451
  return !0;
452
452
  }
453
453
  }
454
- function ur(h) {
454
+ function dr(h) {
455
455
  return "" + h;
456
456
  }
457
- function dr(h) {
457
+ function fr(h) {
458
458
  if (as(h))
459
- return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", rs(h)), ur(h);
459
+ return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", rs(h)), dr(h);
460
460
  }
461
461
  var st = y.ReactCurrentOwner, ss = {
462
462
  key: !0,
463
463
  ref: !0,
464
464
  __self: !0,
465
465
  __source: !0
466
- }, fr, mr, un;
466
+ }, mr, pr, un;
467
467
  un = {};
468
468
  function is(h) {
469
469
  if (Ue.call(h, "ref")) {
@@ -490,7 +490,7 @@ function Is() {
490
490
  function ls(h, M) {
491
491
  {
492
492
  var I = function() {
493
- fr || (fr = !0, x("%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)", M));
493
+ mr || (mr = !0, x("%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)", M));
494
494
  };
495
495
  I.isReactWarning = !0, Object.defineProperty(h, "key", {
496
496
  get: I,
@@ -501,7 +501,7 @@ function Is() {
501
501
  function us(h, M) {
502
502
  {
503
503
  var I = function() {
504
- mr || (mr = !0, x("%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)", M));
504
+ pr || (pr = !0, x("%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)", M));
505
505
  };
506
506
  I.isReactWarning = !0, Object.defineProperty(h, "ref", {
507
507
  get: I,
@@ -541,7 +541,7 @@ function Is() {
541
541
  function fs(h, M, I, ne, le) {
542
542
  {
543
543
  var me, ce = {}, ie = null, xe = null;
544
- I !== void 0 && (dr(I), ie = "" + I), os(M) && (dr(M.key), ie = "" + M.key), is(M) && (xe = M.ref, cs(M, le));
544
+ I !== void 0 && (fr(I), ie = "" + I), os(M) && (fr(M.key), ie = "" + M.key), is(M) && (xe = M.ref, cs(M, le));
545
545
  for (me in M)
546
546
  Ue.call(M, me) && !ss.hasOwnProperty(me) && (ce[me] = M[me]);
547
547
  if (h && h.defaultProps) {
@@ -556,20 +556,20 @@ function Is() {
556
556
  return ds(h, ie, xe, le, ne, st.current, ce);
557
557
  }
558
558
  }
559
- var dn = y.ReactCurrentOwner, pr = y.ReactDebugCurrentFrame;
559
+ var dn = y.ReactCurrentOwner, hr = y.ReactDebugCurrentFrame;
560
560
  function Ke(h) {
561
561
  if (h) {
562
562
  var M = h._owner, I = Ce(h.type, h._source, M ? M.type : null);
563
- pr.setExtraStackFrame(I);
563
+ hr.setExtraStackFrame(I);
564
564
  } else
565
- pr.setExtraStackFrame(null);
565
+ hr.setExtraStackFrame(null);
566
566
  }
567
567
  var fn;
568
568
  fn = !1;
569
569
  function mn(h) {
570
570
  return typeof h == "object" && h !== null && h.$$typeof === e;
571
571
  }
572
- function hr() {
572
+ function gr() {
573
573
  {
574
574
  if (dn.current) {
575
575
  var h = j(dn.current.type);
@@ -592,10 +592,10 @@ Check your code at ` + M + ":" + I + ".";
592
592
  return "";
593
593
  }
594
594
  }
595
- var gr = {};
595
+ var vr = {};
596
596
  function ps(h) {
597
597
  {
598
- var M = hr();
598
+ var M = gr();
599
599
  if (!M) {
600
600
  var I = typeof h == "string" ? h : h.displayName || h.name;
601
601
  I && (M = `
@@ -605,27 +605,27 @@ Check the top-level render call using <` + I + ">.");
605
605
  return M;
606
606
  }
607
607
  }
608
- function vr(h, M) {
608
+ function br(h, M) {
609
609
  {
610
610
  if (!h._store || h._store.validated || h.key != null)
611
611
  return;
612
612
  h._store.validated = !0;
613
613
  var I = ps(M);
614
- if (gr[I])
614
+ if (vr[I])
615
615
  return;
616
- gr[I] = !0;
616
+ vr[I] = !0;
617
617
  var ne = "";
618
618
  h && h._owner && h._owner !== dn.current && (ne = " It was passed a child from " + j(h._owner.type) + "."), Ke(h), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', I, ne), Ke(null);
619
619
  }
620
620
  }
621
- function br(h, M) {
621
+ function yr(h, M) {
622
622
  {
623
623
  if (typeof h != "object")
624
624
  return;
625
625
  if (ln(h))
626
626
  for (var I = 0; I < h.length; I++) {
627
627
  var ne = h[I];
628
- mn(ne) && vr(ne, M);
628
+ mn(ne) && br(ne, M);
629
629
  }
630
630
  else if (mn(h))
631
631
  h._store && (h._store.validated = !0);
@@ -633,7 +633,7 @@ Check the top-level render call using <` + I + ">.");
633
633
  var le = _(h);
634
634
  if (typeof le == "function" && le !== h.entries)
635
635
  for (var me = le.call(h), ce; !(ce = me.next()).done; )
636
- mn(ce.value) && vr(ce.value, M);
636
+ mn(ce.value) && br(ce.value, M);
637
637
  }
638
638
  }
639
639
  }
@@ -674,14 +674,14 @@ Check the top-level render call using <` + I + ">.");
674
674
  h.ref !== null && (Ke(h), x("Invalid attribute `ref` supplied to `React.Fragment`."), Ke(null));
675
675
  }
676
676
  }
677
- function yr(h, M, I, ne, le, me) {
677
+ function _r(h, M, I, ne, le, me) {
678
678
  {
679
- var ce = $(h);
679
+ var ce = N(h);
680
680
  if (!ce) {
681
681
  var ie = "";
682
682
  (h === void 0 || typeof h == "object" && h !== null && Object.keys(h).length === 0) && (ie += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
683
683
  var xe = ms(le);
684
- xe ? ie += xe : ie += hr();
684
+ xe ? ie += xe : ie += gr();
685
685
  var he;
686
686
  h === null ? he = "null" : ln(h) ? he = "array" : h !== void 0 && h.$$typeof === e ? (he = "<" + (j(h.type) || "Unknown") + " />", ie = " Did you accidentally export a JSX literal instead of a component?") : he = typeof h, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", he, ie);
687
687
  }
@@ -694,21 +694,21 @@ Check the top-level render call using <` + I + ">.");
694
694
  if (ne)
695
695
  if (ln(ke)) {
696
696
  for (var Ge = 0; Ge < ke.length; Ge++)
697
- br(ke[Ge], h);
697
+ yr(ke[Ge], h);
698
698
  Object.freeze && Object.freeze(ke);
699
699
  } else
700
700
  x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
701
701
  else
702
- br(ke, h);
702
+ yr(ke, h);
703
703
  }
704
704
  return h === r ? gs(ge) : hs(ge), ge;
705
705
  }
706
706
  }
707
707
  function vs(h, M, I) {
708
- return yr(h, M, I, !0);
708
+ return _r(h, M, I, !0);
709
709
  }
710
710
  function bs(h, M, I) {
711
- return yr(h, M, I, !1);
711
+ return _r(h, M, I, !1);
712
712
  }
713
713
  var ys = bs, _s = vs;
714
714
  ot.Fragment = r, ot.jsx = ys, ot.jsxs = _s;
@@ -744,30 +744,30 @@ function Bs(t, e, n) {
744
744
  };
745
745
  }, []);
746
746
  var S = wt(function() {
747
- var w = function($) {
747
+ var w = function(N) {
748
748
  var C = c.current, k = d.current;
749
- return c.current = d.current = null, i.current = $, l.current = u.current.apply(k, C);
750
- }, b = function($, C) {
751
- p && cancelAnimationFrame(o.current), o.current = p ? requestAnimationFrame($) : setTimeout($, C);
752
- }, F = function($) {
749
+ return c.current = d.current = null, i.current = N, l.current = u.current.apply(k, C);
750
+ }, b = function(N, C) {
751
+ p && cancelAnimationFrame(o.current), o.current = p ? requestAnimationFrame(N) : setTimeout(N, C);
752
+ }, F = function(N) {
753
753
  if (!f.current)
754
754
  return !1;
755
- var C = $ - s.current;
756
- return !s.current || C >= e || C < 0 || _ && $ - i.current >= x;
757
- }, R = function($) {
758
- return o.current = null, v && c.current ? w($) : (c.current = d.current = null, l.current);
759
- }, Q = function $() {
755
+ var C = N - s.current;
756
+ return !s.current || C >= e || C < 0 || _ && N - i.current >= x;
757
+ }, R = function(N) {
758
+ return o.current = null, v && c.current ? w(N) : (c.current = d.current = null, l.current);
759
+ }, Q = function N() {
760
760
  var C = Date.now();
761
761
  if (F(C))
762
762
  return R(C);
763
763
  if (f.current) {
764
764
  var k = e - (C - s.current), j = _ ? Math.min(k, x - (C - i.current)) : k;
765
- b($, j);
765
+ b(N, j);
766
766
  }
767
767
  }, B = function() {
768
768
  if (m || y) {
769
- var $ = Date.now(), C = F($);
770
- if (c.current = [].slice.call(arguments), d.current = r, s.current = $, C) {
769
+ var N = Date.now(), C = F(N);
770
+ if (c.current = [].slice.call(arguments), d.current = r, s.current = N, C) {
771
771
  if (!o.current && f.current)
772
772
  return i.current = s.current, b(Q, e), g ? w(s.current) : l.current;
773
773
  if (_)
@@ -817,6 +817,12 @@ const jt = (t = !0, e = !1, n = "window") => {
817
817
  { leading: !0 }
818
818
  );
819
819
  return r;
820
+ }, Nl = () => {
821
+ const t = "signup-this-session";
822
+ return ae(() => {
823
+ const [e, n, r] = Kn([t]);
824
+ e[t] && r(t, { path: "/" });
825
+ }, []), !0;
820
826
  }, qs = ({
821
827
  scrollPosition: t = 0,
822
828
  // The position on the page to scroll past
@@ -866,7 +872,7 @@ const jt = (t = !0, e = !1, n = "window") => {
866
872
  Array.isArray(e) || (e = [e]);
867
873
  const n = pt(t);
868
874
  return e.forEach(({ type: r, value: s }) => {
869
- ws(n, r, s);
875
+ js(n, r, s);
870
876
  }), n;
871
877
  }, pa = (t) => {
872
878
  const e = [];
@@ -1404,9 +1410,9 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1404
1410
  es: Gs,
1405
1411
  fr: Qs,
1406
1412
  pt: Js
1407
- }, Symbol.toStringTag, { value: "Module" })), Qn = (t, e = rt) => t in e, $e = (t, e, n, r, s = {}) => {
1413
+ }, Symbol.toStringTag, { value: "Module" })), Jn = (t, e = rt) => t in e, Ne = (t, e, n, r, s = {}) => {
1408
1414
  let i = "";
1409
- return Qn(`${e}_${n}`) ? i = t({ id: `${e}_${n}` }, s) : i = t({ id: e }, { [r]: n, ...s }), i;
1415
+ return Jn(`${e}_${n}`) ? i = t({ id: `${e}_${n}` }, s) : i = t({ id: e }, { [r]: n, ...s }), i;
1410
1416
  }, ei = (t, e, n) => {
1411
1417
  if (!t || t === 0)
1412
1418
  return "0";
@@ -1428,7 +1434,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1428
1434
  const e = document.querySelector(".splash-screen");
1429
1435
  e && e.remove(), window.prerenderReady = !0;
1430
1436
  }, t);
1431
- }, ni = (t) => t.replace(/\s+/g, "").length > 0, jr = (t) => {
1437
+ }, ni = (t) => t.replace(/\s+/g, "").length > 0, kr = (t) => {
1432
1438
  const e = t.length > 8, n = /[0-9]/.test(t) && /[`!@#$%^&*()_+\-=[\]{}£;':"\\|,.<>/?~]/.test(t), r = new RegExp("^(?=.*?[A-Z])(?=.*?[a-z])").test(t);
1433
1439
  return {
1434
1440
  isValid: e && n && r,
@@ -1487,7 +1493,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1487
1493
  const Oe = ({ className: t = "", maxWidth: e = !1 }) => {
1488
1494
  const n = e ? { "--max-width": `${e / 16}rem` } : {};
1489
1495
  return /* @__PURE__ */ a.jsx("hr", { className: E(t, { "has-max-width": e }), style: n });
1490
- }, kr = {
1496
+ }, Tr = {
1491
1497
  card: {
1492
1498
  range: [
1493
1499
  {
@@ -1595,7 +1601,7 @@ const Oe = ({ className: t = "", maxWidth: e = !1 }) => {
1595
1601
  range: e,
1596
1602
  sizes: n
1597
1603
  }) => {
1598
- const { range: r, sizes: s } = t ? kr[t] : kr.fallback;
1604
+ const { range: r, sizes: s } = t ? Tr[t] : Tr.fallback;
1599
1605
  return { range: e && e.length > 0 ? e : r, sizes: n || s };
1600
1606
  }, ai = ({ format: t, height: e, query: n, width: r }) => {
1601
1607
  let s = `w=${r}&h=${e}`;
@@ -1646,7 +1652,7 @@ const Tt = ({ image: t, className: e, testId: n }) => {
1646
1652
  )
1647
1653
  ] });
1648
1654
  };
1649
- const Nl = ({ image: t, className: e, testId: n }) => /* @__PURE__ */ a.jsx(
1655
+ const Pl = ({ image: t, className: e, testId: n }) => /* @__PURE__ */ a.jsx(
1650
1656
  "div",
1651
1657
  {
1652
1658
  className: `image-container ${e}`,
@@ -1669,7 +1675,7 @@ const Nl = ({ image: t, className: e, testId: n }) => /* @__PURE__ */ a.jsx(
1669
1675
  }
1670
1676
  return n ? Y.createElement(n, { children: e, className: r, ...c }) : /* @__PURE__ */ a.jsx(a.Fragment, { children: e });
1671
1677
  };
1672
- const Pl = ({ currentStep: t = 1, steps: e = 1 }) => /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1678
+ const Ml = ({ currentStep: t = 1, steps: e = 1 }) => /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1673
1679
  /* @__PURE__ */ a.jsx(be, { children: /* @__PURE__ */ a.jsx(
1674
1680
  ye,
1675
1681
  {
@@ -1701,7 +1707,7 @@ const Pl = ({ currentStep: t = 1, steps: e = 1 }) => /* @__PURE__ */ a.jsxs(a.Fr
1701
1707
  ] }, r);
1702
1708
  }) }) })
1703
1709
  ] });
1704
- const Ml = ({ elementId: t, offset: e = 20 }) => {
1710
+ const Rl = ({ elementId: t, offset: e = 20 }) => {
1705
1711
  const n = H(), r = () => {
1706
1712
  const s = document.getElementById(t);
1707
1713
  if (!s)
@@ -1722,7 +1728,7 @@ const Ml = ({ elementId: t, offset: e = 20 }) => {
1722
1728
  screenreaderText: n.formatMessage({ id: "return_to_nav_button" })
1723
1729
  }
1724
1730
  );
1725
- }, Tr = 300, Er = "ease-in-out";
1731
+ }, Er = 300, Sr = "ease-in-out";
1726
1732
  class si {
1727
1733
  constructor(e) {
1728
1734
  this.el = e, this.summary = e.querySelector("summary"), this.content = e.querySelector(".content"), this.animation = null, this.isClosing = !1, this.isExpanding = !1, this.summary.addEventListener("click", (n) => this.onClick(n));
@@ -1741,8 +1747,8 @@ class si {
1741
1747
  height: [e, n]
1742
1748
  },
1743
1749
  {
1744
- duration: Tr,
1745
- easing: Er
1750
+ duration: Er,
1751
+ easing: Sr
1746
1752
  }
1747
1753
  ), this.animation.onfinish = () => this.onAnimationFinish(!1), this.animation.oncancel = () => this.isClosing = !1;
1748
1754
  }
@@ -1757,8 +1763,8 @@ class si {
1757
1763
  height: [e, n]
1758
1764
  },
1759
1765
  {
1760
- duration: Tr,
1761
- easing: Er
1766
+ duration: Er,
1767
+ easing: Sr
1762
1768
  }
1763
1769
  ), this.animation.onfinish = () => this.onAnimationFinish(!0), this.animation.oncancel = () => this.isExpanding = !1;
1764
1770
  }
@@ -1766,7 +1772,7 @@ class si {
1766
1772
  this.el.open = e, this.animation = null, this.isClosing = !1, this.isExpanding = !1, this.el.style.height = this.el.style.overflow = "";
1767
1773
  }
1768
1774
  }
1769
- const Jn = ({
1775
+ const Xn = ({
1770
1776
  label: t = !1,
1771
1777
  className: e = "",
1772
1778
  children: n,
@@ -1791,7 +1797,7 @@ const Jn = ({
1791
1797
  ]
1792
1798
  }
1793
1799
  );
1794
- }, Sr = {
1800
+ }, Cr = {
1795
1801
  cube: "box",
1796
1802
  graduationCap: "graduation-cap",
1797
1803
  person: "user",
@@ -1799,9 +1805,9 @@ const Jn = ({
1799
1805
  star: "star_empty_thin"
1800
1806
  }, ii = (t) => {
1801
1807
  let e = t;
1802
- return Object.keys(Sr).includes(t) && (e = Sr[t]), `url(${Be}icons/${e}.svg)`;
1808
+ return Object.keys(Cr).includes(t) && (e = Cr[t]), `url(${Be}icons/${e}.svg)`;
1803
1809
  };
1804
- const Cr = {
1810
+ const Nr = {
1805
1811
  customCard: "custom",
1806
1812
  microcourse: "course",
1807
1813
  solutionArticle: "article",
@@ -1815,13 +1821,13 @@ const Cr = {
1815
1821
  customLabel: n,
1816
1822
  className: r = ""
1817
1823
  }) => {
1818
- const s = H(), i = e ? { "--custom-icon": ii(e) } : {}, o = Qn(`contentTypeLabel_${t}`) ? s.formatMessage({ id: `contentTypeLabel_${t}` }) : !1;
1824
+ const s = H(), i = e ? { "--custom-icon": ii(e) } : {}, o = Jn(`contentTypeLabel_${t}`) ? s.formatMessage({ id: `contentTypeLabel_${t}` }) : !1;
1819
1825
  return !n && !o ? null : /* @__PURE__ */ a.jsx(
1820
1826
  "small",
1821
1827
  {
1822
1828
  className: E(
1823
1829
  "content-type-label text-small",
1824
- t in Cr ? Cr[t] : t,
1830
+ t in Nr ? Nr[t] : t,
1825
1831
  r,
1826
1832
  {
1827
1833
  "has-custom-icon": e
@@ -1915,7 +1921,7 @@ const ci = ({
1915
1921
  }
1916
1922
  ) : /* @__PURE__ */ a.jsx("p", { children: r })
1917
1923
  ] });
1918
- const Rl = ({
1924
+ const Fl = ({
1919
1925
  className: t = "",
1920
1926
  show: e = !1,
1921
1927
  hide: n = !1,
@@ -1974,7 +1980,7 @@ const Rl = ({
1974
1980
  }
1975
1981
  );
1976
1982
  };
1977
- const Fl = ({
1983
+ const Ol = ({
1978
1984
  element: t = "ul",
1979
1985
  layout: e = "vertical",
1980
1986
  variant: n = "default",
@@ -2025,7 +2031,7 @@ const Fl = ({
2025
2031
  r.push(i);
2026
2032
  const s = n ? n.toString() : "";
2027
2033
  return /* @__PURE__ */ a.jsx(
2028
- Jn,
2034
+ Xn,
2029
2035
  {
2030
2036
  label: s,
2031
2037
  className: ["Sources", "Resources"].includes(s) ? "discrete-links" : "",
@@ -2097,7 +2103,7 @@ const vi = {
2097
2103
  a: hi,
2098
2104
  // Override psuedo-code
2099
2105
  // We give the content team psuedo-code short cuts to use in Contentful
2100
- CollapsibleSection: Jn,
2106
+ CollapsibleSection: Xn,
2101
2107
  TextBox: Fe,
2102
2108
  CaseStudy: li,
2103
2109
  // Override embedded HTML
@@ -2210,8 +2216,8 @@ const yi = ({ author: t, authorCite: e, content: n }) => /* @__PURE__ */ a.jsxs(
2210
2216
  /* @__PURE__ */ a.jsx(Le, { className: "testimonial", children: n }),
2211
2217
  t && /* @__PURE__ */ a.jsx("p", { className: "author text-small", children: t }),
2212
2218
  e && /* @__PURE__ */ a.jsx("p", { className: "author-cite text-small", children: /* @__PURE__ */ a.jsx("cite", { children: e }) })
2213
- ] }), Ol = Ae(yi);
2214
- const Al = ({
2219
+ ] }), Al = Ae(yi);
2220
+ const Dl = ({
2215
2221
  items: t = [],
2216
2222
  selector: e = "",
2217
2223
  className: n = ""
@@ -2243,7 +2249,7 @@ const Al = ({
2243
2249
  }
2244
2250
  );
2245
2251
  };
2246
- const Xn = ({
2252
+ const er = ({
2247
2253
  time: t,
2248
2254
  rangeTime: e,
2249
2255
  prependedText: n,
@@ -2308,7 +2314,7 @@ const _i = ({ isOpen: t = !1, isLoading: e = !1, children: n }) => {
2308
2314
  }
2309
2315
  );
2310
2316
  };
2311
- const Dl = ({ className: t = "", image: e, ...n }) => e ? (typeof e == "string" && (e = {
2317
+ const Il = ({ className: t = "", image: e, ...n }) => e ? (typeof e == "string" && (e = {
2312
2318
  width: 1080,
2313
2319
  height: 200,
2314
2320
  type: "image/png",
@@ -2343,7 +2349,7 @@ const Ve = ({
2343
2349
  }
2344
2350
  );
2345
2351
  };
2346
- const Il = ({ text: t, buttons: e, className: n = "" }) => {
2352
+ const Ll = ({ text: t, buttons: e, className: n = "" }) => {
2347
2353
  const r = [];
2348
2354
  return e.forEach((s) => {
2349
2355
  r.push({
@@ -2374,7 +2380,7 @@ const xi = ({ icon: t, description: e, ctaMessage: n, href: r, showEditButton: s
2374
2380
  /* @__PURE__ */ a.jsx("p", { children: e || o({ id: "edit_section_placeholder_description" }) }),
2375
2381
  s && /* @__PURE__ */ a.jsx(se, { href: r, variant: "secondary", size: "small", onClick: () => ba({ href: r, setShowModal: i }), children: n || o({ id: "edit_section_placeholder_cta" }) })
2376
2382
  ] });
2377
- }, Ll = ({
2383
+ }, Bl = ({
2378
2384
  children: t,
2379
2385
  className: e = "",
2380
2386
  formProps: n,
@@ -2418,7 +2424,7 @@ const xi = ({ icon: t, description: e, ctaMessage: n, href: r, showEditButton: s
2418
2424
  c && /* @__PURE__ */ a.jsx(Oe, {})
2419
2425
  ] });
2420
2426
  };
2421
- const Bl = ({
2427
+ const ql = ({
2422
2428
  title: t = !1,
2423
2429
  logos: e = [],
2424
2430
  styling: n = {},
@@ -2562,8 +2568,8 @@ const wi = [
2562
2568
  ] })
2563
2569
  }
2564
2570
  );
2565
- }, ql = Ae(ji);
2566
- const Ul = ({
2571
+ }, Ul = Ae(ji);
2572
+ const Wl = ({
2567
2573
  image: t,
2568
2574
  variant: e = "default",
2569
2575
  children: n,
@@ -2616,8 +2622,8 @@ const ki = ({
2616
2622
  }
2617
2623
  )
2618
2624
  ] });
2619
- }, Wl = Ae(ki);
2620
- const zl = ({
2625
+ }, zl = Ae(ki);
2626
+ const Zl = ({
2621
2627
  variant: t = "primary",
2622
2628
  button: e = null,
2623
2629
  title: n,
@@ -2639,7 +2645,7 @@ const zl = ({
2639
2645
  }
2640
2646
  )
2641
2647
  ] }), Ti = ({ showDevTools: t = !0, children: e }) => {
2642
- const n = new Ts({
2648
+ const n = new Es({
2643
2649
  // default options we would like on all queries can be overridden individually
2644
2650
  defaultOptions: {
2645
2651
  queries: {
@@ -2650,9 +2656,9 @@ const zl = ({
2650
2656
  }
2651
2657
  }
2652
2658
  });
2653
- return /* @__PURE__ */ a.jsxs(Es, { client: n, children: [
2659
+ return /* @__PURE__ */ a.jsxs(Ss, { client: n, children: [
2654
2660
  e,
2655
- t && /* @__PURE__ */ a.jsx(Cs, { initialIsOpen: !1 })
2661
+ t && /* @__PURE__ */ a.jsx(Ns, { initialIsOpen: !1 })
2656
2662
  ] });
2657
2663
  };
2658
2664
  var Ei = nn({ client: Lt });
@@ -2681,22 +2687,22 @@ const Ci = ({ children: t, user: e }) => e.isLoading ? null : process.env.REACT_
2681
2687
  },
2682
2688
  children: t
2683
2689
  }
2684
- ) : /* @__PURE__ */ a.jsx(a.Fragment, { children: t }), $i = ({ children: t, locale: e, messages: n }) => {
2690
+ ) : /* @__PURE__ */ a.jsx(a.Fragment, { children: t }), Ni = ({ children: t, locale: e, messages: n }) => {
2685
2691
  const r = e || "en", s = {
2686
2692
  ...Xs[r],
2687
2693
  ...n || {}
2688
2694
  };
2689
- return /* @__PURE__ */ a.jsx(js, { locale: r, messages: s, children: t });
2695
+ return /* @__PURE__ */ a.jsx(ks, { locale: r, messages: s, children: t });
2690
2696
  }, ya = nn({}), gn = {
2691
2697
  en: "English",
2692
2698
  es: "Español",
2693
2699
  fr: "Français",
2694
2700
  pt: "Português"
2695
2701
  }, De = nn({ isLoading: !0 });
2696
- function er() {
2702
+ function tr() {
2697
2703
  return Ee(De);
2698
2704
  }
2699
- const Ni = ({ children: t, user: e }) => /* @__PURE__ */ a.jsx(De.Provider, { value: e, children: t }), Zl = ({ bootstrap: t, children: e, intl: n, showDevTools: r }) => {
2705
+ const $i = ({ children: t, user: e }) => /* @__PURE__ */ a.jsx(De.Provider, { value: e, children: t }), Hl = ({ bootstrap: t, children: e, intl: n, showDevTools: r }) => {
2700
2706
  const [s, i] = X({ isLoading: !0 }), o = (n == null ? void 0 : n.locale) || localStorage.getItem("language") || "en", [c, d] = X(o), l = (u) => {
2701
2707
  localStorage.setItem("language", u), d(u);
2702
2708
  };
@@ -2705,11 +2711,11 @@ const Ni = ({ children: t, user: e }) => /* @__PURE__ */ a.jsx(De.Provider, { va
2705
2711
  i({ ...u, isLoading: !1 }), ti(5e3);
2706
2712
  }).catch(() => i({ isLoading: !1 }));
2707
2713
  }, []), /* @__PURE__ */ a.jsx(ya.Provider, { value: { language: c, updateLanguage: l }, children: /* @__PURE__ */ a.jsx(
2708
- $i,
2714
+ Ni,
2709
2715
  {
2710
2716
  locale: c,
2711
2717
  messages: n == null ? void 0 : n.messages,
2712
- children: /* @__PURE__ */ a.jsx($s, { children: /* @__PURE__ */ a.jsx(Ni, { user: s, children: /* @__PURE__ */ a.jsx(Ti, { showDevTools: r, children: /* @__PURE__ */ a.jsx(Ci, { user: s, children: e }) }) }) })
2718
+ children: /* @__PURE__ */ a.jsx(ws, { children: /* @__PURE__ */ a.jsx($i, { user: s, children: /* @__PURE__ */ a.jsx(Ti, { showDevTools: r, children: /* @__PURE__ */ a.jsx(Ci, { user: s, children: e }) }) }) })
2713
2719
  }
2714
2720
  ) });
2715
2721
  };
@@ -2768,9 +2774,9 @@ const vn = "loadingBlock_", Mi = ({ progress: t = 0, steps: e = !1, className: n
2768
2774
  ]
2769
2775
  }
2770
2776
  );
2771
- }, Hl = Ae(Mi);
2777
+ }, Vl = Ae(Mi);
2772
2778
  const Se = ({ element: t = "div", className: e = "", ...n }) => /* @__PURE__ */ a.jsx(
2773
- Gn,
2779
+ Qn,
2774
2780
  {
2775
2781
  element: t,
2776
2782
  className: E("loading-placeholder", e),
@@ -2838,13 +2844,13 @@ const zn = {
2838
2844
  if (r <= e * (s + 1))
2839
2845
  return Ct[s];
2840
2846
  };
2841
- const Nr = 256, Ye = ({
2847
+ const Pr = 256, Ye = ({
2842
2848
  className: t = "",
2843
2849
  src: e = "",
2844
2850
  name: n,
2845
2851
  alt: r,
2846
- width: s = Nr,
2847
- height: i = Nr,
2852
+ width: s = Pr,
2853
+ height: i = Pr,
2848
2854
  ...o
2849
2855
  }) => {
2850
2856
  const [c, d] = X(!1), l = pe(null);
@@ -2902,7 +2908,7 @@ const Nr = 256, Ye = ({
2902
2908
  let d = `${c}${(s || i) && o ? `, ${n}` : n}`;
2903
2909
  return d.length > r && (d = c), d.length > r && (d = et(d, r)), d;
2904
2910
  };
2905
- const tr = ({
2911
+ const nr = ({
2906
2912
  element: t = "div",
2907
2913
  member: e = "community",
2908
2914
  additionalContent: n = !1,
@@ -2944,7 +2950,7 @@ const tr = ({
2944
2950
  )
2945
2951
  });
2946
2952
  };
2947
- const Pr = {
2953
+ const Mr = {
2948
2954
  small: 24,
2949
2955
  medium: 48
2950
2956
  }, Ta = ({
@@ -2977,8 +2983,8 @@ const Pr = {
2977
2983
  {
2978
2984
  name: _,
2979
2985
  src: y,
2980
- width: Pr[s || "medium"],
2981
- height: Pr[s || "medium"]
2986
+ width: Mr[s || "medium"],
2987
+ height: Mr[s || "medium"]
2982
2988
  }
2983
2989
  );
2984
2990
  } else if (p === c) {
@@ -3000,24 +3006,24 @@ const Pr = {
3000
3006
  ] })
3001
3007
  });
3002
3008
  };
3003
- const $t = "emailHelperTextBox_", Oi = ({
3009
+ const Nt = "emailHelperTextBox_", Oi = ({
3004
3010
  type: t,
3005
3011
  email: e,
3006
3012
  redirectPath: n,
3007
3013
  resendVerificationCode: r
3008
3014
  }) => {
3009
3015
  const s = H(), [i, o] = X({
3010
- path: `${$t}default`,
3016
+ path: `${Nt}default`,
3011
3017
  type: "default",
3012
3018
  link: {},
3013
3019
  mail: {},
3014
3020
  error: ""
3015
- }), [c, d] = X(!1), l = sa(
3021
+ }), [c, d] = X(!1), l = ia(
3016
3022
  (p) => {
3017
3023
  p.preventDefault(), p.stopPropagation();
3018
3024
  const g = (v) => {
3019
3025
  o({
3020
- path: `${$t}error_verificationFailedToSend`,
3026
+ path: `${Nt}error_verificationFailedToSend`,
3021
3027
  type: "error",
3022
3028
  link: {
3023
3029
  "data-gtm-event-context": "VerifyEmailBox",
@@ -3037,7 +3043,7 @@ const $t = "emailHelperTextBox_", Oi = ({
3037
3043
  });
3038
3044
  };
3039
3045
  if (typeof r != "function") {
3040
- g(s.formatMessage({ id: `${$t}error_noFunction` }));
3046
+ g(s.formatMessage({ id: `${Nt}error_noFunction` }));
3041
3047
  return;
3042
3048
  }
3043
3049
  d(!0), r(e).then(() => {
@@ -3053,7 +3059,7 @@ const $t = "emailHelperTextBox_", Oi = ({
3053
3059
  );
3054
3060
  ae(
3055
3061
  () => {
3056
- let p = $t, g = "default", v = {}, _ = {};
3062
+ let p = Nt, g = "default", v = {}, _ = {};
3057
3063
  switch (t) {
3058
3064
  case "gov":
3059
3065
  p += "autoApproved", g = "success";
@@ -3351,7 +3357,7 @@ const Ii = Ae(function({
3351
3357
  direction: e = "down"
3352
3358
  }) {
3353
3359
  return /* @__PURE__ */ a.jsx(
3354
- Gn,
3360
+ Qn,
3355
3361
  {
3356
3362
  className: E("rotating-chevron", `direction-${e}`)
3357
3363
  }
@@ -3850,7 +3856,7 @@ const rn = ({
3850
3856
  formSubmitted: !1,
3851
3857
  errors: {},
3852
3858
  values: R
3853
- }), { errors: $, isSubmitting: C, formSubmitted: k, values: j } = Q;
3859
+ }), { errors: N, isSubmitting: C, formSubmitted: k, values: j } = Q;
3854
3860
  ae(() => {
3855
3861
  S && k && (bn = setTimeout(() => {
3856
3862
  B({
@@ -3877,7 +3883,7 @@ const rn = ({
3877
3883
  );
3878
3884
  };
3879
3885
  }, []);
3880
- const N = pe(null), A = r || N;
3886
+ const $ = pe(null), A = r || $;
3881
3887
  if (!t.length)
3882
3888
  return null;
3883
3889
  i.text || (i.text = F.formatMessage({ id: "form_submit" }));
@@ -3957,7 +3963,7 @@ const rn = ({
3957
3963
  className: E("form", e),
3958
3964
  ref: A,
3959
3965
  children: [
3960
- $ != null && $.general ? /* @__PURE__ */ a.jsx(
3966
+ N != null && N.general ? /* @__PURE__ */ a.jsx(
3961
3967
  He,
3962
3968
  {
3963
3969
  variant: "error",
@@ -3981,7 +3987,7 @@ const rn = ({
3981
3987
  ...z,
3982
3988
  showRequiredLabels: w,
3983
3989
  value: L,
3984
- error: $ == null ? void 0 : $[T],
3990
+ error: N == null ? void 0 : N[T],
3985
3991
  functions: {
3986
3992
  ...q,
3987
3993
  onChange: (U) => {
@@ -4008,10 +4014,10 @@ const rn = ({
4008
4014
  b && k && /* @__PURE__ */ a.jsx(Wt, { className: "success", children: typeof b == "string" ? b : F.formatMessage({ id: "form_success" }) })
4009
4015
  ] });
4010
4016
  };
4011
- const Nt = "passwordRules_", Sa = "isMoreThanEightCharacters", Ca = "includesNumberAndSymbol", $a = "includesLowerAndUppercase", zi = {
4017
+ const $t = "passwordRules_", Sa = "isMoreThanEightCharacters", Ca = "includesNumberAndSymbol", Na = "includesLowerAndUppercase", zi = {
4012
4018
  [Sa]: "8Characters",
4013
4019
  [Ca]: "numberSymbol",
4014
- [$a]: "lowercaseUppercase"
4020
+ [Na]: "lowercaseUppercase"
4015
4021
  }, Zi = ({
4016
4022
  matchingRules: t = {
4017
4023
  isMoreThanEightCharacters: !1,
@@ -4022,21 +4028,21 @@ const Nt = "passwordRules_", Sa = "isMoreThanEightCharacters", Ca = "includesNum
4022
4028
  }) => {
4023
4029
  const n = H();
4024
4030
  return /* @__PURE__ */ a.jsxs("aside", { className: E("password-rules", e), children: [
4025
- /* @__PURE__ */ a.jsx("small", { children: n.formatMessage({ id: `${Nt}intro` }) }),
4026
- /* @__PURE__ */ a.jsx("ul", { children: [Sa, Ca, $a].map(
4031
+ /* @__PURE__ */ a.jsx("small", { children: n.formatMessage({ id: `${$t}intro` }) }),
4032
+ /* @__PURE__ */ a.jsx("ul", { children: [Sa, Ca, Na].map(
4027
4033
  (r) => /* @__PURE__ */ a.jsxs(
4028
4034
  "li",
4029
4035
  {
4030
4036
  className: E({ matches: t[r] }),
4031
4037
  children: [
4032
4038
  /* @__PURE__ */ a.jsxs(be, { children: [
4033
- n.formatMessage({ id: `${Nt}rule_label` }),
4039
+ n.formatMessage({ id: `${$t}rule_label` }),
4034
4040
  " "
4035
4041
  ] }),
4036
- /* @__PURE__ */ a.jsx("span", { children: n.formatMessage({ id: `${Nt}rule_${zi[r]}` }) }),
4042
+ /* @__PURE__ */ a.jsx("span", { children: n.formatMessage({ id: `${$t}rule_${zi[r]}` }) }),
4037
4043
  !t[r] && /* @__PURE__ */ a.jsxs(be, { element: "strong", children: [
4038
4044
  " ",
4039
- n.formatMessage({ id: `${Nt}notMet` })
4045
+ n.formatMessage({ id: `${$t}notMet` })
4040
4046
  ] })
4041
4047
  ]
4042
4048
  },
@@ -4045,7 +4051,7 @@ const Nt = "passwordRules_", Sa = "isMoreThanEightCharacters", Ca = "includesNum
4045
4051
  ) })
4046
4052
  ] });
4047
4053
  }, Hi = Ae(Zi);
4048
- const Vl = ({
4054
+ const Yl = ({
4049
4055
  text: t = {},
4050
4056
  topRating: e = 5,
4051
4057
  functions: {
@@ -4130,7 +4136,7 @@ const Vl = ({
4130
4136
  }) })
4131
4137
  ] });
4132
4138
  };
4133
- const Yl = ({
4139
+ const Kl = ({
4134
4140
  id: t = "form-toggle",
4135
4141
  label: e,
4136
4142
  options: n,
@@ -4189,7 +4195,7 @@ const Yl = ({
4189
4195
  }
4190
4196
  );
4191
4197
  };
4192
- function Kl({ className: t = "", userId: e, userName: n, src: r, setUserImage: s, uploadImage: i }) {
4198
+ function Gl({ className: t = "", userId: e, userName: n, src: r, setUserImage: s, uploadImage: i }) {
4193
4199
  const [o, c] = X(!1), [d, l] = X(!1), u = pe(null), f = async (m) => {
4194
4200
  c(!0), l(!1);
4195
4201
  try {
@@ -4346,7 +4352,7 @@ const Yi = ({
4346
4352
  /* @__PURE__ */ a.jsx("h2", { className: "title", style: { color: r }, children: t }),
4347
4353
  /* @__PURE__ */ a.jsx("label", { htmlFor: "email-input", className: "label", style: { color: s }, children: e }),
4348
4354
  /* @__PURE__ */ a.jsx(
4349
- Ns,
4355
+ $s,
4350
4356
  {
4351
4357
  id: "email-input",
4352
4358
  inputClassName: "email-input input",
@@ -4385,12 +4391,12 @@ const Yi = ({
4385
4391
  NEW_PASSWORD: "newPassword",
4386
4392
  CONFIRMED_PASSWORD: "confirmedPassword",
4387
4393
  CURRENT_PASSWORD: "oldPassword"
4388
- }, Gl = ({ functions: t, ...e }) => {
4394
+ }, Ql = ({ functions: t, ...e }) => {
4389
4395
  const { formatMessage: n } = H(), [r, s] = X(null), [i, o] = X(!1), [c, d] = X({
4390
4396
  isMoreThanEightCharacters: !1,
4391
4397
  includesNumberAndSymbol: !1,
4392
4398
  includesLowerAndUppercase: !1
4393
- }), l = (p) => p[Te.NEW_PASSWORD] !== p[Te.CONFIRMED_PASSWORD] ? n({ id: "passwordRules_unmatched_text" }) : null, u = (p) => !jr(p[Te.NEW_PASSWORD]).isValid, f = [
4399
+ }), l = (p) => p[Te.NEW_PASSWORD] !== p[Te.CONFIRMED_PASSWORD] ? n({ id: "passwordRules_unmatched_text" }) : null, u = (p) => !kr(p[Te.NEW_PASSWORD]).isValid, f = [
4394
4400
  {
4395
4401
  "data-testid": Te.NEW_PASSWORD,
4396
4402
  id: Te.NEW_PASSWORD,
@@ -4400,7 +4406,7 @@ const Yi = ({
4400
4406
  label: n({ id: "passwordRules_newPassword_label" }),
4401
4407
  validation: yn(["required", u]),
4402
4408
  functions: {
4403
- onChange: (p) => d(jr(p).matchingRules),
4409
+ onChange: (p) => d(kr(p).matchingRules),
4404
4410
  onFocus: () => o(!0),
4405
4411
  onBlur: () => o(!1)
4406
4412
  }
@@ -4516,7 +4522,7 @@ const Ki = ({
4516
4522
  )
4517
4523
  }
4518
4524
  );
4519
- }, Mr = async ({ ref: t, validateEmail: e, dispatch: n }) => {
4525
+ }, Rr = async ({ ref: t, validateEmail: e, dispatch: n }) => {
4520
4526
  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,}))$/;
4521
4527
  if (!t.current.validity.valid || !r.test(t.current.value))
4522
4528
  return n([{ type: "validFields.email", value: !1 }]);
@@ -4631,7 +4637,7 @@ const Ki = ({
4631
4637
  }),
4632
4638
  functions: {
4633
4639
  onBlur: () => {
4634
- Mr({ ref: i.email, validateEmail: r, dispatch: c });
4640
+ Rr({ ref: i.email, validateEmail: r, dispatch: c });
4635
4641
  },
4636
4642
  onChange: (p, g) => {
4637
4643
  c([{ type: "shouldDisableButton", value: !0 }]), g && g({
@@ -4745,7 +4751,7 @@ const Ki = ({
4745
4751
  o.validFields[v] !== i[v].current.validity.valid && (g.push({
4746
4752
  type: `validFields.${v}`,
4747
4753
  value: i[v].current.validity.valid
4748
- }), v === "email" && Mr({ ref: i.email, validateEmail: r, dispatch: c }));
4754
+ }), v === "email" && Rr({ ref: i.email, validateEmail: r, dispatch: c }));
4749
4755
  }), g.length && c(g);
4750
4756
  }
4751
4757
  },
@@ -4785,7 +4791,7 @@ const eo = {
4785
4791
  loadRecaptcha: !1,
4786
4792
  showSuccessMessage: !1,
4787
4793
  showError: !1
4788
- }, Ql = ({
4794
+ }, Jl = ({
4789
4795
  className: t = "",
4790
4796
  labels: e = {},
4791
4797
  placeholders: n = {},
@@ -4821,7 +4827,7 @@ const eo = {
4821
4827
  shouldDisableButton: w,
4822
4828
  showSuccessMessage: b,
4823
4829
  showError: F
4824
- } = v, [R, Q] = oa([
4830
+ } = v, [R, Q] = Kn([
4825
4831
  "signup-this-session",
4826
4832
  "functional-cookie-consent"
4827
4833
  ]), B = {
@@ -4843,7 +4849,7 @@ const eo = {
4843
4849
  maxAge: 3600
4844
4850
  });
4845
4851
  }, [b]);
4846
- const $ = wt(() => Ji({
4852
+ const N = wt(() => Ji({
4847
4853
  placeholders: n,
4848
4854
  labels: e,
4849
4855
  shouldShow: g,
@@ -4874,7 +4880,7 @@ const eo = {
4874
4880
  className: "signup-form",
4875
4881
  formRef: B.form,
4876
4882
  id: "sign-up-form",
4877
- fields: $,
4883
+ fields: N,
4878
4884
  intlPath: "signup",
4879
4885
  button: {
4880
4886
  variant: "primary",
@@ -4937,11 +4943,11 @@ var Zn = { exports: {} }, Pt = { exports: {} }, ue = {};
4937
4943
  * This source code is licensed under the MIT license found in the
4938
4944
  * LICENSE file in the root directory of this source tree.
4939
4945
  */
4940
- var Rr;
4946
+ var Fr;
4941
4947
  function to() {
4942
- if (Rr)
4948
+ if (Fr)
4943
4949
  return ue;
4944
- Rr = 1;
4950
+ Fr = 1;
4945
4951
  var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, s = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, d = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, m = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, g = t ? Symbol.for("react.lazy") : 60116, v = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, y = t ? Symbol.for("react.responder") : 60118, x = t ? Symbol.for("react.scope") : 60119;
4946
4952
  function S(b) {
4947
4953
  if (typeof b == "object" && b !== null) {
@@ -5013,9 +5019,9 @@ var de = {};
5013
5019
  * This source code is licensed under the MIT license found in the
5014
5020
  * LICENSE file in the root directory of this source tree.
5015
5021
  */
5016
- var Fr;
5022
+ var Or;
5017
5023
  function no() {
5018
- return Fr || (Fr = 1, process.env.NODE_ENV !== "production" && function() {
5024
+ return Or || (Or = 1, process.env.NODE_ENV !== "production" && function() {
5019
5025
  var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, s = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, d = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, m = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, g = t ? Symbol.for("react.lazy") : 60116, v = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, y = t ? Symbol.for("react.responder") : 60118, x = t ? Symbol.for("react.scope") : 60119;
5020
5026
  function S(D) {
5021
5027
  return typeof D == "string" || typeof D == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
@@ -5026,17 +5032,17 @@ function no() {
5026
5032
  var ve = D.$$typeof;
5027
5033
  switch (ve) {
5028
5034
  case e:
5029
- var Ne = D.type;
5030
- switch (Ne) {
5035
+ var $e = D.type;
5036
+ switch ($e) {
5031
5037
  case d:
5032
5038
  case l:
5033
5039
  case r:
5034
5040
  case i:
5035
5041
  case s:
5036
5042
  case f:
5037
- return Ne;
5043
+ return $e;
5038
5044
  default:
5039
- var Ce = Ne && Ne.$$typeof;
5045
+ var Ce = $e && $e.$$typeof;
5040
5046
  switch (Ce) {
5041
5047
  case c:
5042
5048
  case u:
@@ -5053,7 +5059,7 @@ function no() {
5053
5059
  }
5054
5060
  }
5055
5061
  }
5056
- var b = d, F = l, R = c, Q = o, B = e, $ = u, C = r, k = g, j = p, N = n, A = i, W = s, Z = f, z = !1;
5062
+ var b = d, F = l, R = c, Q = o, B = e, N = u, C = r, k = g, j = p, $ = n, A = i, W = s, Z = f, z = !1;
5057
5063
  function K(D) {
5058
5064
  return z || (z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), T(D) || w(D) === d;
5059
5065
  }
@@ -5093,23 +5099,23 @@ function no() {
5093
5099
  function oe(D) {
5094
5100
  return w(D) === f;
5095
5101
  }
5096
- de.AsyncMode = b, de.ConcurrentMode = F, de.ContextConsumer = R, de.ContextProvider = Q, de.Element = B, de.ForwardRef = $, de.Fragment = C, de.Lazy = k, de.Memo = j, de.Portal = N, de.Profiler = A, de.StrictMode = W, de.Suspense = Z, de.isAsyncMode = K, de.isConcurrentMode = T, de.isContextConsumer = P, de.isContextProvider = q, de.isElement = L, de.isForwardRef = U, de.isFragment = te, de.isLazy = G, de.isMemo = V, de.isPortal = ee, de.isProfiler = re, de.isStrictMode = O, de.isSuspense = oe, de.isValidElementType = S, de.typeOf = w;
5102
+ de.AsyncMode = b, de.ConcurrentMode = F, de.ContextConsumer = R, de.ContextProvider = Q, de.Element = B, de.ForwardRef = N, de.Fragment = C, de.Lazy = k, de.Memo = j, de.Portal = $, de.Profiler = A, de.StrictMode = W, de.Suspense = Z, de.isAsyncMode = K, de.isConcurrentMode = T, de.isContextConsumer = P, de.isContextProvider = q, de.isElement = L, de.isForwardRef = U, de.isFragment = te, de.isLazy = G, de.isMemo = V, de.isPortal = ee, de.isProfiler = re, de.isStrictMode = O, de.isSuspense = oe, de.isValidElementType = S, de.typeOf = w;
5097
5103
  }()), de;
5098
5104
  }
5099
- var Or;
5100
- function Na() {
5101
- return Or || (Or = 1, process.env.NODE_ENV === "production" ? Pt.exports = to() : Pt.exports = no()), Pt.exports;
5105
+ var Ar;
5106
+ function $a() {
5107
+ return Ar || (Ar = 1, process.env.NODE_ENV === "production" ? Pt.exports = to() : Pt.exports = no()), Pt.exports;
5102
5108
  }
5103
5109
  /*
5104
5110
  object-assign
5105
5111
  (c) Sindre Sorhus
5106
5112
  @license MIT
5107
5113
  */
5108
- var _n, Ar;
5114
+ var _n, Dr;
5109
5115
  function ro() {
5110
- if (Ar)
5116
+ if (Dr)
5111
5117
  return _n;
5112
- Ar = 1;
5118
+ Dr = 1;
5113
5119
  var t = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
5114
5120
  function r(i) {
5115
5121
  if (i == null)
@@ -5152,27 +5158,27 @@ function ro() {
5152
5158
  return d;
5153
5159
  }, _n;
5154
5160
  }
5155
- var xn, Dr;
5156
- function nr() {
5157
- if (Dr)
5161
+ var xn, Ir;
5162
+ function rr() {
5163
+ if (Ir)
5158
5164
  return xn;
5159
- Dr = 1;
5165
+ Ir = 1;
5160
5166
  var t = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
5161
5167
  return xn = t, xn;
5162
5168
  }
5163
- var wn, Ir;
5169
+ var wn, Lr;
5164
5170
  function Pa() {
5165
- return Ir || (Ir = 1, wn = Function.call.bind(Object.prototype.hasOwnProperty)), wn;
5171
+ return Lr || (Lr = 1, wn = Function.call.bind(Object.prototype.hasOwnProperty)), wn;
5166
5172
  }
5167
- var jn, Lr;
5173
+ var jn, Br;
5168
5174
  function ao() {
5169
- if (Lr)
5175
+ if (Br)
5170
5176
  return jn;
5171
- Lr = 1;
5177
+ Br = 1;
5172
5178
  var t = function() {
5173
5179
  };
5174
5180
  if (process.env.NODE_ENV !== "production") {
5175
- var e = nr(), n = {}, r = Pa();
5181
+ var e = rr(), n = {}, r = Pa();
5176
5182
  t = function(i) {
5177
5183
  var o = "Warning: " + i;
5178
5184
  typeof console < "u" && console.error(o);
@@ -5214,12 +5220,12 @@ function ao() {
5214
5220
  process.env.NODE_ENV !== "production" && (n = {});
5215
5221
  }, jn = s, jn;
5216
5222
  }
5217
- var kn, Br;
5223
+ var kn, qr;
5218
5224
  function so() {
5219
- if (Br)
5225
+ if (qr)
5220
5226
  return kn;
5221
- Br = 1;
5222
- var t = Na(), e = ro(), n = nr(), r = Pa(), s = ao(), i = function() {
5227
+ qr = 1;
5228
+ var t = $a(), e = ro(), n = rr(), r = Pa(), s = ao(), i = function() {
5223
5229
  };
5224
5230
  process.env.NODE_ENV !== "production" && (i = function(c) {
5225
5231
  var d = "Warning: " + c;
@@ -5253,7 +5259,7 @@ function so() {
5253
5259
  element: w(),
5254
5260
  elementType: b(),
5255
5261
  instanceOf: F,
5256
- node: $(),
5262
+ node: N(),
5257
5263
  objectOf: Q,
5258
5264
  oneOf: R,
5259
5265
  oneOfType: B,
@@ -5413,9 +5419,9 @@ function so() {
5413
5419
  }
5414
5420
  return _(L);
5415
5421
  }
5416
- function $() {
5422
+ function N() {
5417
5423
  function T(P, q, L, U, te) {
5418
- return N(P[q]) ? null : new v("Invalid " + U + " `" + te + "` supplied to " + ("`" + L + "`, expected a ReactNode."));
5424
+ return $(P[q]) ? null : new v("Invalid " + U + " `" + te + "` supplied to " + ("`" + L + "`, expected a ReactNode."));
5419
5425
  }
5420
5426
  return _(T);
5421
5427
  }
@@ -5464,7 +5470,7 @@ Valid keys: ` + JSON.stringify(Object.keys(T), null, " ")
5464
5470
  }
5465
5471
  return _(P);
5466
5472
  }
5467
- function N(T) {
5473
+ function $(T) {
5468
5474
  switch (typeof T) {
5469
5475
  case "number":
5470
5476
  case "string":
@@ -5474,7 +5480,7 @@ Valid keys: ` + JSON.stringify(Object.keys(T), null, " ")
5474
5480
  return !T;
5475
5481
  case "object":
5476
5482
  if (Array.isArray(T))
5477
- return T.every(N);
5483
+ return T.every($);
5478
5484
  if (T === null || c(T))
5479
5485
  return !0;
5480
5486
  var P = f(T);
@@ -5482,12 +5488,12 @@ Valid keys: ` + JSON.stringify(Object.keys(T), null, " ")
5482
5488
  var q = P.call(T), L;
5483
5489
  if (P !== T.entries) {
5484
5490
  for (; !(L = q.next()).done; )
5485
- if (!N(L.value))
5491
+ if (!$(L.value))
5486
5492
  return !1;
5487
5493
  } else
5488
5494
  for (; !(L = q.next()).done; ) {
5489
5495
  var U = L.value;
5490
- if (U && !N(U[1]))
5496
+ if (U && !$(U[1]))
5491
5497
  return !1;
5492
5498
  }
5493
5499
  } else
@@ -5536,12 +5542,12 @@ Valid keys: ` + JSON.stringify(Object.keys(T), null, " ")
5536
5542
  return p.checkPropTypes = s, p.resetWarningCache = s.resetWarningCache, p.PropTypes = p, p;
5537
5543
  }, kn;
5538
5544
  }
5539
- var Tn, qr;
5545
+ var Tn, Ur;
5540
5546
  function io() {
5541
- if (qr)
5547
+ if (Ur)
5542
5548
  return Tn;
5543
- qr = 1;
5544
- var t = nr();
5549
+ Ur = 1;
5550
+ var t = rr();
5545
5551
  function e() {
5546
5552
  }
5547
5553
  function n() {
@@ -5586,7 +5592,7 @@ function io() {
5586
5592
  }, Tn;
5587
5593
  }
5588
5594
  if (process.env.NODE_ENV !== "production") {
5589
- var oo = Na(), co = !0;
5595
+ var oo = $a(), co = !0;
5590
5596
  Zn.exports = so()(oo.isElement, co);
5591
5597
  } else
5592
5598
  Zn.exports = io()();
@@ -5694,7 +5700,7 @@ var Ma = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
5694
5700
  }
5695
5701
  }
5696
5702
  return i;
5697
- }, Ur = function(e) {
5703
+ }, Wr = function(e) {
5698
5704
  var n = e.getBoundingClientRect(), r = n.width, s = n.height;
5699
5705
  return r === 0 && s === 0;
5700
5706
  }, xo = function(e, n) {
@@ -5709,7 +5715,7 @@ var Ma = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
5709
5715
  for (var c = e; e; ) {
5710
5716
  var d = e.parentElement, l = Zt(e);
5711
5717
  if (d && !d.shadowRoot && s(d) === !0)
5712
- return Ur(e);
5718
+ return Wr(e);
5713
5719
  e.assignedSlot ? e = e.assignedSlot : !d && l !== e.ownerDocument ? e = l.host : e = d;
5714
5720
  }
5715
5721
  e = c;
@@ -5719,7 +5725,7 @@ var Ma = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
5719
5725
  if (r !== "legacy-full")
5720
5726
  return !0;
5721
5727
  } else if (r === "non-zero-area")
5722
- return Ur(e);
5728
+ return Wr(e);
5723
5729
  return !1;
5724
5730
  }, wo = function(e) {
5725
5731
  if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))
@@ -5798,7 +5804,7 @@ const Eo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5798
5804
  * focus-trap 7.5.4
5799
5805
  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
5800
5806
  */
5801
- function Wr(t, e) {
5807
+ function zr(t, e) {
5802
5808
  var n = Object.keys(t);
5803
5809
  if (Object.getOwnPropertySymbols) {
5804
5810
  var r = Object.getOwnPropertySymbols(t);
@@ -5808,19 +5814,19 @@ function Wr(t, e) {
5808
5814
  }
5809
5815
  return n;
5810
5816
  }
5811
- function zr(t) {
5817
+ function Zr(t) {
5812
5818
  for (var e = 1; e < arguments.length; e++) {
5813
5819
  var n = arguments[e] != null ? arguments[e] : {};
5814
- e % 2 ? Wr(Object(n), !0).forEach(function(r) {
5820
+ e % 2 ? zr(Object(n), !0).forEach(function(r) {
5815
5821
  So(t, r, n[r]);
5816
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : Wr(Object(n)).forEach(function(r) {
5822
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : zr(Object(n)).forEach(function(r) {
5817
5823
  Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
5818
5824
  });
5819
5825
  }
5820
5826
  return t;
5821
5827
  }
5822
5828
  function So(t, e, n) {
5823
- return e = $o(e), e in t ? Object.defineProperty(t, e, {
5829
+ return e = No(e), e in t ? Object.defineProperty(t, e, {
5824
5830
  value: n,
5825
5831
  enumerable: !0,
5826
5832
  configurable: !0,
@@ -5839,11 +5845,11 @@ function Co(t, e) {
5839
5845
  }
5840
5846
  return (e === "string" ? String : Number)(t);
5841
5847
  }
5842
- function $o(t) {
5848
+ function No(t) {
5843
5849
  var e = Co(t, "string");
5844
5850
  return typeof e == "symbol" ? e : String(e);
5845
5851
  }
5846
- var Zr = {
5852
+ var Hr = {
5847
5853
  activateTrap: function(e, n) {
5848
5854
  if (e.length > 0) {
5849
5855
  var r = e[e.length - 1];
@@ -5856,7 +5862,7 @@ var Zr = {
5856
5862
  var r = e.indexOf(n);
5857
5863
  r !== -1 && e.splice(r, 1), e.length > 0 && e[e.length - 1].unpause();
5858
5864
  }
5859
- }, No = function(e) {
5865
+ }, $o = function(e) {
5860
5866
  return e.tagName && e.tagName.toLowerCase() === "input" && typeof e.select == "function";
5861
5867
  }, Po = function(e) {
5862
5868
  return (e == null ? void 0 : e.key) === "Escape" || (e == null ? void 0 : e.key) === "Esc" || (e == null ? void 0 : e.keyCode) === 27;
@@ -5866,9 +5872,9 @@ var Zr = {
5866
5872
  return vt(e) && !e.shiftKey;
5867
5873
  }, Ro = function(e) {
5868
5874
  return vt(e) && e.shiftKey;
5869
- }, Hr = function(e) {
5875
+ }, Vr = function(e) {
5870
5876
  return setTimeout(e, 0);
5871
- }, Vr = function(e, n) {
5877
+ }, Yr = function(e, n) {
5872
5878
  var r = -1;
5873
5879
  return e.every(function(s, i) {
5874
5880
  return n(s) ? (r = i, !1) : !0;
@@ -5880,7 +5886,7 @@ var Zr = {
5880
5886
  }, Mt = function(e) {
5881
5887
  return e.target.shadowRoot && typeof e.composedPath == "function" ? e.composedPath()[0] : e.target;
5882
5888
  }, Fo = [], Oo = function(e, n) {
5883
- var r = (n == null ? void 0 : n.document) || document, s = (n == null ? void 0 : n.trapStack) || Fo, i = zr({
5889
+ var r = (n == null ? void 0 : n.document) || document, s = (n == null ? void 0 : n.trapStack) || Fo, i = Zr({
5884
5890
  returnFocusOnDeactivate: !0,
5885
5891
  escapeDeactivates: !0,
5886
5892
  delayInitialFocus: !0,
@@ -5922,24 +5928,24 @@ var Zr = {
5922
5928
  delayInitialFocusTimer: void 0,
5923
5929
  // the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
5924
5930
  recentNavEvent: void 0
5925
- }, c, d = function(k, j, N) {
5926
- return k && k[j] !== void 0 ? k[j] : i[N || j];
5931
+ }, c, d = function(k, j, $) {
5932
+ return k && k[j] !== void 0 ? k[j] : i[$ || j];
5927
5933
  }, l = function(k, j) {
5928
- var N = typeof (j == null ? void 0 : j.composedPath) == "function" ? j.composedPath() : void 0;
5934
+ var $ = typeof (j == null ? void 0 : j.composedPath) == "function" ? j.composedPath() : void 0;
5929
5935
  return o.containerGroups.findIndex(function(A) {
5930
5936
  var W = A.container, Z = A.tabbableNodes;
5931
5937
  return W.contains(k) || // fall back to explicit tabbable search which will take into consideration any
5932
5938
  // web components if the `tabbableOptions.getShadowRoot` option was used for
5933
5939
  // the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
5934
5940
  // look inside web components even if open)
5935
- (N == null ? void 0 : N.includes(W)) || Z.find(function(z) {
5941
+ ($ == null ? void 0 : $.includes(W)) || Z.find(function(z) {
5936
5942
  return z === k;
5937
5943
  });
5938
5944
  });
5939
5945
  }, u = function(k) {
5940
5946
  var j = i[k];
5941
5947
  if (typeof j == "function") {
5942
- for (var N = arguments.length, A = new Array(N > 1 ? N - 1 : 0), W = 1; W < N; W++)
5948
+ for (var $ = arguments.length, A = new Array($ > 1 ? $ - 1 : 0), W = 1; W < $; W++)
5943
5949
  A[W - 1] = arguments[W];
5944
5950
  j = j.apply(void 0, A);
5945
5951
  }
@@ -5960,17 +5966,17 @@ var Zr = {
5960
5966
  if (l(r.activeElement) >= 0)
5961
5967
  k = r.activeElement;
5962
5968
  else {
5963
- var j = o.tabbableGroups[0], N = j && j.firstTabbableNode;
5964
- k = N || u("fallbackFocus");
5969
+ var j = o.tabbableGroups[0], $ = j && j.firstTabbableNode;
5970
+ k = $ || u("fallbackFocus");
5965
5971
  }
5966
5972
  if (!k)
5967
5973
  throw new Error("Your focus-trap needs to have at least one focusable element");
5968
5974
  return k;
5969
5975
  }, m = function() {
5970
5976
  if (o.containerGroups = o.containers.map(function(k) {
5971
- var j = Ia(k, i.tabbableOptions), N = La(k, i.tabbableOptions), A = j.length > 0 ? j[0] : void 0, W = j.length > 0 ? j[j.length - 1] : void 0, Z = N.find(function(T) {
5977
+ var j = Ia(k, i.tabbableOptions), $ = La(k, i.tabbableOptions), A = j.length > 0 ? j[0] : void 0, W = j.length > 0 ? j[j.length - 1] : void 0, Z = $.find(function(T) {
5972
5978
  return We(T);
5973
- }), z = N.slice().reverse().find(function(T) {
5979
+ }), z = $.slice().reverse().find(function(T) {
5974
5980
  return We(T);
5975
5981
  }), K = !!j.find(function(T) {
5976
5982
  return Ie(T) > 0;
@@ -5978,7 +5984,7 @@ var Zr = {
5978
5984
  return {
5979
5985
  container: k,
5980
5986
  tabbableNodes: j,
5981
- focusableNodes: N,
5987
+ focusableNodes: $,
5982
5988
  /** True if at least one node with positive `tabindex` was found in this container. */
5983
5989
  posTabIndexesFound: K,
5984
5990
  /** First tabbable node in container, __tabindex__ order; `undefined` if none. */
@@ -6006,9 +6012,9 @@ var Zr = {
6006
6012
  */
6007
6013
  nextTabbableNode: function(P) {
6008
6014
  var q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, L = j.indexOf(P);
6009
- return L < 0 ? q ? N.slice(N.indexOf(P) + 1).find(function(U) {
6015
+ return L < 0 ? q ? $.slice($.indexOf(P) + 1).find(function(U) {
6010
6016
  return We(U);
6011
- }) : N.slice(0, N.indexOf(P)).reverse().find(function(U) {
6017
+ }) : $.slice(0, $.indexOf(P)).reverse().find(function(U) {
6012
6018
  return We(U);
6013
6019
  }) : j[L + (q ? 1 : -1)];
6014
6020
  }
@@ -6033,21 +6039,21 @@ var Zr = {
6033
6039
  }
6034
6040
  k.focus({
6035
6041
  preventScroll: !!i.preventScroll
6036
- }), o.mostRecentlyFocusedNode = k, No(k) && k.select();
6042
+ }), o.mostRecentlyFocusedNode = k, $o(k) && k.select();
6037
6043
  }
6038
6044
  }, v = function(k) {
6039
6045
  var j = u("setReturnFocus", k);
6040
6046
  return j || (j === !1 ? !1 : k);
6041
6047
  }, _ = function(k) {
6042
- var j = k.target, N = k.event, A = k.isBackward, W = A === void 0 ? !1 : A;
6043
- j = j || Mt(N), m();
6048
+ var j = k.target, $ = k.event, A = k.isBackward, W = A === void 0 ? !1 : A;
6049
+ j = j || Mt($), m();
6044
6050
  var Z = null;
6045
6051
  if (o.tabbableGroups.length > 0) {
6046
- var z = l(j, N), K = z >= 0 ? o.containerGroups[z] : void 0;
6052
+ var z = l(j, $), K = z >= 0 ? o.containerGroups[z] : void 0;
6047
6053
  if (z < 0)
6048
6054
  W ? Z = o.tabbableGroups[o.tabbableGroups.length - 1].lastTabbableNode : Z = o.tabbableGroups[0].firstTabbableNode;
6049
6055
  else if (W) {
6050
- var T = Vr(o.tabbableGroups, function(G) {
6056
+ var T = Yr(o.tabbableGroups, function(G) {
6051
6057
  var V = G.firstTabbableNode;
6052
6058
  return j === V;
6053
6059
  });
@@ -6055,9 +6061,9 @@ var Zr = {
6055
6061
  var P = T === 0 ? o.tabbableGroups.length - 1 : T - 1, q = o.tabbableGroups[P];
6056
6062
  Z = Ie(j) >= 0 ? q.lastTabbableNode : q.lastDomTabbableNode;
6057
6063
  } else
6058
- vt(N) || (Z = K.nextTabbableNode(j, !1));
6064
+ vt($) || (Z = K.nextTabbableNode(j, !1));
6059
6065
  } else {
6060
- var L = Vr(o.tabbableGroups, function(G) {
6066
+ var L = Yr(o.tabbableGroups, function(G) {
6061
6067
  var V = G.lastTabbableNode;
6062
6068
  return j === V;
6063
6069
  });
@@ -6065,7 +6071,7 @@ var Zr = {
6065
6071
  var U = L === o.tabbableGroups.length - 1 ? 0 : L + 1, te = o.tabbableGroups[U];
6066
6072
  Z = Ie(j) >= 0 ? te.firstTabbableNode : te.firstDomTabbableNode;
6067
6073
  } else
6068
- vt(N) || (Z = K.nextTabbableNode(j));
6074
+ vt($) || (Z = K.nextTabbableNode(j));
6069
6075
  }
6070
6076
  } else
6071
6077
  Z = u("fallbackFocus");
@@ -6088,9 +6094,9 @@ var Zr = {
6088
6094
  lt(i.allowOutsideClick, k) || k.preventDefault();
6089
6095
  }
6090
6096
  }, x = function(k) {
6091
- var j = Mt(k), N = l(j, k) >= 0;
6092
- if (N || j instanceof Document)
6093
- N && (o.mostRecentlyFocusedNode = j);
6097
+ var j = Mt(k), $ = l(j, k) >= 0;
6098
+ if ($ || j instanceof Document)
6099
+ $ && (o.mostRecentlyFocusedNode = j);
6094
6100
  else {
6095
6101
  k.stopImmediatePropagation();
6096
6102
  var A, W = !0;
@@ -6122,11 +6128,11 @@ var Zr = {
6122
6128
  }, S = function(k) {
6123
6129
  var j = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
6124
6130
  o.recentNavEvent = k;
6125
- var N = _({
6131
+ var $ = _({
6126
6132
  event: k,
6127
6133
  isBackward: j
6128
6134
  });
6129
- N && (vt(k) && k.preventDefault(), g(N));
6135
+ $ && (vt(k) && k.preventDefault(), g($));
6130
6136
  }, w = function(k) {
6131
6137
  if (Po(k) && lt(i.escapeDeactivates, k) !== !1) {
6132
6138
  k.preventDefault(), c.deactivate();
@@ -6138,7 +6144,7 @@ var Zr = {
6138
6144
  l(j, k) >= 0 || lt(i.clickOutsideDeactivates, k) || lt(i.allowOutsideClick, k) || (k.preventDefault(), k.stopImmediatePropagation());
6139
6145
  }, F = function() {
6140
6146
  if (o.active)
6141
- return Zr.activateTrap(s, c), o.delayInitialFocusTimer = i.delayInitialFocus ? Hr(function() {
6147
+ return Hr.activateTrap(s, c), o.delayInitialFocusTimer = i.delayInitialFocus ? Vr(function() {
6142
6148
  g(f());
6143
6149
  }) : g(f()), r.addEventListener("focusin", x, !0), r.addEventListener("mousedown", y, {
6144
6150
  capture: !0,
@@ -6157,14 +6163,14 @@ var Zr = {
6157
6163
  if (o.active)
6158
6164
  return r.removeEventListener("focusin", x, !0), r.removeEventListener("mousedown", y, !0), r.removeEventListener("touchstart", y, !0), r.removeEventListener("click", b, !0), r.removeEventListener("keydown", w, !0), c;
6159
6165
  }, Q = function(k) {
6160
- var j = k.some(function(N) {
6161
- var A = Array.from(N.removedNodes);
6166
+ var j = k.some(function($) {
6167
+ var A = Array.from($.removedNodes);
6162
6168
  return A.some(function(W) {
6163
6169
  return W === o.mostRecentlyFocusedNode;
6164
6170
  });
6165
6171
  });
6166
6172
  j && g(f());
6167
- }, B = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(Q) : void 0, $ = function() {
6173
+ }, B = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(Q) : void 0, N = function() {
6168
6174
  B && (B.disconnect(), o.active && !o.paused && o.containers.map(function(k) {
6169
6175
  B.observe(k, {
6170
6176
  subtree: !0,
@@ -6182,26 +6188,26 @@ var Zr = {
6182
6188
  activate: function(k) {
6183
6189
  if (o.active)
6184
6190
  return this;
6185
- var j = d(k, "onActivate"), N = d(k, "onPostActivate"), A = d(k, "checkCanFocusTrap");
6191
+ var j = d(k, "onActivate"), $ = d(k, "onPostActivate"), A = d(k, "checkCanFocusTrap");
6186
6192
  A || m(), o.active = !0, o.paused = !1, o.nodeFocusedBeforeActivation = r.activeElement, j == null || j();
6187
6193
  var W = function() {
6188
- A && m(), F(), $(), N == null || N();
6194
+ A && m(), F(), N(), $ == null || $();
6189
6195
  };
6190
6196
  return A ? (A(o.containers.concat()).then(W, W), this) : (W(), this);
6191
6197
  },
6192
6198
  deactivate: function(k) {
6193
6199
  if (!o.active)
6194
6200
  return this;
6195
- var j = zr({
6201
+ var j = Zr({
6196
6202
  onDeactivate: i.onDeactivate,
6197
6203
  onPostDeactivate: i.onPostDeactivate,
6198
6204
  checkCanReturnFocus: i.checkCanReturnFocus
6199
6205
  }, k);
6200
- clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, R(), o.active = !1, o.paused = !1, $(), Zr.deactivateTrap(s, c);
6201
- var N = d(j, "onDeactivate"), A = d(j, "onPostDeactivate"), W = d(j, "checkCanReturnFocus"), Z = d(j, "returnFocus", "returnFocusOnDeactivate");
6202
- N == null || N();
6206
+ clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, R(), o.active = !1, o.paused = !1, N(), Hr.deactivateTrap(s, c);
6207
+ var $ = d(j, "onDeactivate"), A = d(j, "onPostDeactivate"), W = d(j, "checkCanReturnFocus"), Z = d(j, "returnFocus", "returnFocusOnDeactivate");
6208
+ $ == null || $();
6203
6209
  var z = function() {
6204
- Hr(function() {
6210
+ Vr(function() {
6205
6211
  Z && g(v(o.nodeFocusedBeforeActivation)), A == null || A();
6206
6212
  });
6207
6213
  };
@@ -6210,20 +6216,20 @@ var Zr = {
6210
6216
  pause: function(k) {
6211
6217
  if (o.paused || !o.active)
6212
6218
  return this;
6213
- var j = d(k, "onPause"), N = d(k, "onPostPause");
6214
- return o.paused = !0, j == null || j(), R(), $(), N == null || N(), this;
6219
+ var j = d(k, "onPause"), $ = d(k, "onPostPause");
6220
+ return o.paused = !0, j == null || j(), R(), N(), $ == null || $(), this;
6215
6221
  },
6216
6222
  unpause: function(k) {
6217
6223
  if (!o.paused || !o.active)
6218
6224
  return this;
6219
- var j = d(k, "onUnpause"), N = d(k, "onPostUnpause");
6220
- return o.paused = !1, j == null || j(), m(), F(), $(), N == null || N(), this;
6225
+ var j = d(k, "onUnpause"), $ = d(k, "onPostUnpause");
6226
+ return o.paused = !1, j == null || j(), m(), F(), N(), $ == null || $(), this;
6221
6227
  },
6222
6228
  updateContainerElements: function(k) {
6223
6229
  var j = [].concat(k).filter(Boolean);
6224
- return o.containers = j.map(function(N) {
6225
- return typeof N == "string" ? r.querySelector(N) : N;
6226
- }), o.active && m(), $(), this;
6230
+ return o.containers = j.map(function($) {
6231
+ return typeof $ == "string" ? r.querySelector($) : $;
6232
+ }), o.active && m(), N(), this;
6227
6233
  }
6228
6234
  }, c.updateContainerElements(e), c;
6229
6235
  };
@@ -6243,14 +6249,14 @@ function Lo(t, e) {
6243
6249
  if (!(t instanceof e))
6244
6250
  throw new TypeError("Cannot call a class as a function");
6245
6251
  }
6246
- function Yr(t, e) {
6252
+ function Kr(t, e) {
6247
6253
  for (var n = 0; n < e.length; n++) {
6248
6254
  var r = e[n];
6249
6255
  r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, Ba(r.key), r);
6250
6256
  }
6251
6257
  }
6252
6258
  function Bo(t, e, n) {
6253
- return e && Yr(t.prototype, e), n && Yr(t, n), Object.defineProperty(t, "prototype", { writable: !1 }), t;
6259
+ return e && Kr(t.prototype, e), n && Kr(t, n), Object.defineProperty(t, "prototype", { writable: !1 }), t;
6254
6260
  }
6255
6261
  function qo(t, e) {
6256
6262
  if (typeof e != "function" && e !== null)
@@ -6322,7 +6328,7 @@ function Ho(t, e) {
6322
6328
  }
6323
6329
  return (e === "string" ? String : Number)(t);
6324
6330
  }
6325
- var Rt = Y, J = lo, Vo = Do, Yo = Vo.createFocusTrap, Ko = Io, Go = Ko.isFocusable, rr = /* @__PURE__ */ function(t) {
6331
+ var Rt = Y, J = lo, Vo = Do, Yo = Vo.createFocusTrap, Ko = Io, Go = Ko.isFocusable, ar = /* @__PURE__ */ function(t) {
6326
6332
  qo(n, t);
6327
6333
  var e = Uo(n);
6328
6334
  function n(r) {
@@ -6510,7 +6516,7 @@ var Rt = Y, J = lo, Vo = Do, Yo = Vo.createFocusTrap, Ko = Io, Go = Ko.isFocusab
6510
6516
  }
6511
6517
  }]), n;
6512
6518
  }(Rt.Component), ut = typeof Element > "u" ? Function : Element;
6513
- rr.propTypes = {
6519
+ ar.propTypes = {
6514
6520
  active: J.bool,
6515
6521
  paused: J.bool,
6516
6522
  focusTrapOptions: J.shape({
@@ -6558,13 +6564,13 @@ rr.propTypes = {
6558
6564
  // specify it here. It's expected to be set to the function returned from
6559
6565
  // require('focus-trap'), or one with a compatible interface.
6560
6566
  };
6561
- rr.defaultProps = {
6567
+ ar.defaultProps = {
6562
6568
  active: !0,
6563
6569
  paused: !1,
6564
6570
  focusTrapOptions: {},
6565
6571
  _createFocusTrap: Yo
6566
6572
  };
6567
- var Qo = rr;
6573
+ var Qo = ar;
6568
6574
  const Jo = /* @__PURE__ */ la(Qo);
6569
6575
  const qa = ({ element: t = "section", children: e, className: n, ...r }) => Y.createElement(t, {
6570
6576
  className: E("modal", n),
@@ -6640,7 +6646,7 @@ const an = ({
6640
6646
  "aria-expanded": e,
6641
6647
  "aria-controls": t
6642
6648
  });
6643
- const Jl = ({
6649
+ const Xl = ({
6644
6650
  className: t,
6645
6651
  showModal: e = !0,
6646
6652
  title: n,
@@ -6677,7 +6683,7 @@ const Jl = ({
6677
6683
  }
6678
6684
  );
6679
6685
  };
6680
- const Xl = ({ members: t }) => {
6686
+ const eu = ({ members: t }) => {
6681
6687
  const [e, n] = X(!1), r = (s) => {
6682
6688
  const { fullName: i, jobTitle: o, organisation: c, photo: d } = s || {};
6683
6689
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
@@ -6930,10 +6936,10 @@ const nc = {
6930
6936
  const c = H(), d = Ee(De), l = d && typeof d.id == "string", [u, f] = X({
6931
6937
  data: null,
6932
6938
  isLoading: !0
6933
- }), { data: m, isLoading: p } = u, g = sa(() => {
6934
- n(e, l).then(($) => {
6935
- f(() => ({ data: $, isLoading: !1 }));
6936
- }).catch(() => f(($) => ({ ...$, isLoading: !1 })));
6939
+ }), { data: m, isLoading: p } = u, g = ia(() => {
6940
+ n(e, l).then((N) => {
6941
+ f(() => ({ data: N, isLoading: !1 }));
6942
+ }).catch(() => f((N) => ({ ...N, isLoading: !1 })));
6937
6943
  }, [t]);
6938
6944
  if (ae(() => {
6939
6945
  g();
@@ -7029,12 +7035,12 @@ const nc = {
7029
7035
  { partner: m.partner[0], number: m.partner.length - 1 }
7030
7036
  ) : et(m.partner[0], b.partner) }),
7031
7037
  /* Text */
7032
- ["title", "text", "secondaryText"].map(($) => {
7033
- const C = m[$];
7038
+ ["title", "text", "secondaryText"].map((N) => {
7039
+ const C = m[N];
7034
7040
  if (!C)
7035
7041
  return null;
7036
- const k = Ws($);
7037
- return /* @__PURE__ */ a.jsx("p", { className: k, "data-testid": k, children: et(C, b[$]) }, $);
7042
+ const k = Ws(N);
7043
+ return /* @__PURE__ */ a.jsx("p", { className: k, "data-testid": k, children: et(C, b[N]) }, N);
7038
7044
  }),
7039
7045
  (m == null ? void 0 : m.members) && /* @__PURE__ */ a.jsxs("span", { className: "member-information", children: [
7040
7046
  ((R = m == null ? void 0 : m.members) == null ? void 0 : R.isMember) && /* @__PURE__ */ a.jsx(
@@ -7123,17 +7129,17 @@ const ic = ({
7123
7129
  loadedPages: [0]
7124
7130
  }), { currentPage: v, loadedPages: _ } = p, y = e.length, x = Math.ceil(y / f), S = pe(null), w = jt(!0, !0, S == null ? void 0 : S.current);
7125
7131
  ae(() => {
7126
- let $ = 1;
7127
- w && (w >= En.fourCards ? $ = 4 : w >= En.threeCards ? $ = 3 : w >= En.twoCards && ($ = 2), $ > y && ($ = y)), u((C) => ({
7132
+ let N = 1;
7133
+ w && (w >= En.fourCards ? N = 4 : w >= En.threeCards ? N = 3 : w >= En.twoCards && (N = 2), N > y && (N = y)), u((C) => ({
7128
7134
  ...C,
7129
- cardsPerPage: $,
7135
+ cardsPerPage: N,
7130
7136
  isLoading: !1
7131
7137
  }));
7132
7138
  }, [w, y]);
7133
- const b = ($ = "next") => {
7139
+ const b = (N = "next") => {
7134
7140
  let C = v;
7135
- if (typeof $ == "string")
7136
- if ($ === "next")
7141
+ if (typeof N == "string")
7142
+ if (N === "next")
7137
7143
  if (v < x - 1)
7138
7144
  C = v + 1;
7139
7145
  else
@@ -7143,18 +7149,18 @@ const ic = ({
7143
7149
  else
7144
7150
  return;
7145
7151
  else
7146
- C = $;
7152
+ C = N;
7147
7153
  g((k) => ({
7148
7154
  ...k,
7149
7155
  currentPage: C,
7150
7156
  loadedPages: [.../* @__PURE__ */ new Set([..._, C])]
7151
7157
  }));
7152
- }, F = ($) => {
7153
- Ft = $.touches[0].clientX;
7154
- }, R = ($) => {
7158
+ }, F = (N) => {
7159
+ Ft = N.touches[0].clientX;
7160
+ }, R = (N) => {
7155
7161
  if (Ft === null)
7156
7162
  return;
7157
- const C = $.touches[0].clientX, k = Ft - C;
7163
+ const C = N.touches[0].clientX, k = Ft - C;
7158
7164
  k > 5 ? b("next") : k < -5 && b("previous"), Ft = null;
7159
7165
  }, Q = {
7160
7166
  "--width": `${w || 0}px`,
@@ -7164,10 +7170,10 @@ const ic = ({
7164
7170
  };
7165
7171
  if (m)
7166
7172
  return /* @__PURE__ */ a.jsx(wa, { layout: `carousel${s ? "-with-title" : ""}` });
7167
- const B = ($, C) => {
7173
+ const B = (N, C) => {
7168
7174
  var j;
7169
7175
  let k = null;
7170
- return (j = $ == null ? void 0 : $.sys) != null && j.id ? k = `card-${$.sys.id}` : $ != null && $.slug ? k = `card-${$.slug}` : [n[C], $.contentType].includes("customCard") && (k = `card-${window.btoa(`${$.title} ${$.createdAt}`)}-${C}`), k;
7176
+ return (j = N == null ? void 0 : N.sys) != null && j.id ? k = `card-${N.sys.id}` : N != null && N.slug ? k = `card-${N.slug}` : [n[C], N.contentType].includes("customCard") && (k = `card-${window.btoa(`${N.title} ${N.createdAt}`)}-${C}`), k;
7171
7177
  };
7172
7178
  return /* @__PURE__ */ a.jsxs(
7173
7179
  "section",
@@ -7185,13 +7191,13 @@ const ic = ({
7185
7191
  onTouchMove: R,
7186
7192
  style: Q,
7187
7193
  "data-testid": "carousel-list",
7188
- children: e.map(($, C) => {
7189
- let k = B($, C);
7194
+ children: e.map((N, C) => {
7195
+ let k = B(N, C);
7190
7196
  return k && ac(C, f, v, _) ? /* @__PURE__ */ a.jsx(
7191
7197
  Ua,
7192
7198
  {
7193
7199
  id: k,
7194
- card: { ...$, contentType: n[C] },
7200
+ card: { ...N, contentType: n[C] },
7195
7201
  buildCardData: r,
7196
7202
  gtmContext: o,
7197
7203
  ...c
@@ -7216,8 +7222,8 @@ const ic = ({
7216
7222
  variant: "secondary",
7217
7223
  size: "large",
7218
7224
  icon: { icon: "chevron_left" },
7219
- onClick: ($) => {
7220
- $.preventDefault(), $.stopPropagation(), b("previous");
7225
+ onClick: (N) => {
7226
+ N.preventDefault(), N.stopPropagation(), b("previous");
7221
7227
  },
7222
7228
  screenreaderText: d.formatMessage({
7223
7229
  id: "carousel_pagination_previous"
@@ -7225,7 +7231,7 @@ const ic = ({
7225
7231
  disabled: v <= 0
7226
7232
  }
7227
7233
  ) }),
7228
- [...Array(x)].map(($, C) => /* @__PURE__ */ a.jsx("li", { "data-testid": "carousel-controls-button", children: /* @__PURE__ */ a.jsx(
7234
+ [...Array(x)].map((N, C) => /* @__PURE__ */ a.jsx("li", { "data-testid": "carousel-controls-button", children: /* @__PURE__ */ a.jsx(
7229
7235
  "button",
7230
7236
  {
7231
7237
  className: E("page-indicator", {
@@ -7246,8 +7252,8 @@ const ic = ({
7246
7252
  variant: "secondary",
7247
7253
  size: "large",
7248
7254
  icon: { icon: "chevron_right" },
7249
- onClick: ($) => {
7250
- $.preventDefault(), $.stopPropagation(), b("next");
7255
+ onClick: (N) => {
7256
+ N.preventDefault(), N.stopPropagation(), b("next");
7251
7257
  },
7252
7258
  screenreaderText: d.formatMessage({ id: "carousel_pagination_next" }),
7253
7259
  disabled: v >= x - 1
@@ -7257,7 +7263,7 @@ const ic = ({
7257
7263
  ]
7258
7264
  }
7259
7265
  );
7260
- }, eu = ({
7266
+ }, tu = ({
7261
7267
  carousels: t = [],
7262
7268
  isLoading: e,
7263
7269
  title: n,
@@ -7322,7 +7328,7 @@ const Sn = "joinCommunityButton", Wa = ({
7322
7328
  }
7323
7329
  );
7324
7330
  };
7325
- const Cn = "communityDetails_", tu = ({
7331
+ const Cn = "communityDetails_", nu = ({
7326
7332
  className: t = "",
7327
7333
  isMember: e = !1,
7328
7334
  slug: n,
@@ -7369,7 +7375,7 @@ const Cn = "communityDetails_", tu = ({
7369
7375
  )
7370
7376
  ] });
7371
7377
  };
7372
- const nu = ({ breadcrumbs: t, cutoff: e = 20, className: n = "" }) => {
7378
+ const ru = ({ breadcrumbs: t, cutoff: e = 20, className: n = "" }) => {
7373
7379
  const r = H();
7374
7380
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
7375
7381
  /* @__PURE__ */ a.jsx(
@@ -7393,7 +7399,7 @@ const nu = ({ breadcrumbs: t, cutoff: e = 20, className: n = "" }) => {
7393
7399
  ) })
7394
7400
  ] });
7395
7401
  };
7396
- const ru = ({
7402
+ const au = ({
7397
7403
  options: t,
7398
7404
  allOption: e = !1,
7399
7405
  allowMultiple: n = !0,
@@ -7441,7 +7447,7 @@ const ru = ({
7441
7447
  urlForRouter: `/${s.split("/").slice(2).join("/")}`
7442
7448
  } : s;
7443
7449
  };
7444
- const Ot = "languageSwitcher_", au = ({
7450
+ const Ot = "languageSwitcher_", su = ({
7445
7451
  currentLanguage: t,
7446
7452
  isOriginalLanguage: e = !1,
7447
7453
  isHumanTranslation: n = !1,
@@ -7511,7 +7517,7 @@ const Ot = "languageSwitcher_", au = ({
7511
7517
  })
7512
7518
  ] });
7513
7519
  };
7514
- const $n = ks({ locale: "en", messages: rt }), sn = ({
7520
+ const Nn = Ts({ locale: "en", messages: rt }), sn = ({
7515
7521
  hasNextPage: t = !0,
7516
7522
  loadNextPage: e = () => {
7517
7523
  },
@@ -7521,9 +7527,9 @@ const $n = ks({ locale: "en", messages: rt }), sn = ({
7521
7527
  styling: i = { muted: !1, fullWidth: !1 },
7522
7528
  icon: o = !1,
7523
7529
  messages: c = {
7524
- button: $n.formatMessage({ id: "loadMore_button" }),
7525
- endOfFeed: $n.formatMessage({ id: "loadMore_endOfFeed" }),
7526
- error: $n.formatMessage({ id: "loadMore_error" })
7530
+ button: Nn.formatMessage({ id: "loadMore_button" }),
7531
+ endOfFeed: Nn.formatMessage({ id: "loadMore_endOfFeed" }),
7532
+ error: Nn.formatMessage({ id: "loadMore_error" })
7527
7533
  },
7528
7534
  className: d = "",
7529
7535
  gtmContext: l = "LoadMore"
@@ -7731,7 +7737,7 @@ ${dt(e, "mailto", n)}&src=email`
7731
7737
  onClick: (r, s) => (r.preventDefault(), r.stopPropagation(), navigator.clipboard.writeText(s))
7732
7738
  }
7733
7739
  ];
7734
- const mc = "shareLinks_", su = ({
7740
+ const mc = "shareLinks_", iu = ({
7735
7741
  title: t,
7736
7742
  link: e,
7737
7743
  referrer: n,
@@ -7767,7 +7773,7 @@ const mc = "shareLinks_", su = ({
7767
7773
  }) })
7768
7774
  ] });
7769
7775
  };
7770
- const iu = ({ tabs: t, className: e = "", preventLocationChange: n }) => {
7776
+ const ou = ({ tabs: t, className: e = "", preventLocationChange: n }) => {
7771
7777
  var l;
7772
7778
  const r = (u, f, m) => (u || (u = `panel-${window.btoa(f)}-${m}`), u);
7773
7779
  let s = t.findIndex((u) => u.current === !0);
@@ -7853,19 +7859,19 @@ const pc = {
7853
7859
  }
7854
7860
  );
7855
7861
  };
7856
- let Nn;
7857
- const Pn = "contactFooter_", ou = ({ onSuccess: t = async () => {
7862
+ let $n;
7863
+ const Pn = "contactFooter_", cu = ({ onSuccess: t = async () => {
7858
7864
  }, onFailure: e = () => {
7859
7865
  } }) => {
7860
7866
  const n = pe(null), [r, s] = Y.useState(0), [i, o] = Y.useState(!1), c = () => {
7861
7867
  n.current && s(n.current.clientHeight);
7862
7868
  }, d = () => {
7863
- i || (o(!0), clearTimeout(Nn), Nn = setTimeout(() => {
7869
+ i || (o(!0), clearTimeout($n), $n = setTimeout(() => {
7864
7870
  c(), o(!1);
7865
7871
  }, 500));
7866
7872
  };
7867
7873
  return ae(() => (c(), window.addEventListener("resize", d), () => {
7868
- clearTimeout(Nn), window.removeEventListener("resize", d);
7874
+ clearTimeout($n), window.removeEventListener("resize", d);
7869
7875
  }), []), /* @__PURE__ */ a.jsx(Ve, { id: "contactForm", className: "contact-footer", children: /* @__PURE__ */ a.jsxs("div", { className: "inner-wrapper", children: [
7870
7876
  /* @__PURE__ */ a.jsx("h2", { children: /* @__PURE__ */ a.jsx(ye, { id: `${Pn}title` }) }),
7871
7877
  /* @__PURE__ */ a.jsxs(
@@ -7891,7 +7897,7 @@ const Pn = "contactFooter_", ou = ({ onSuccess: t = async () => {
7891
7897
  }
7892
7898
  )
7893
7899
  ] }) });
7894
- }, cu = ({ activeLink: t, ...e }) => /* @__PURE__ */ a.jsx(Ve, { children: /* @__PURE__ */ a.jsx(hc, { layout: "1-3", children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
7900
+ }, lu = ({ activeLink: t, ...e }) => /* @__PURE__ */ a.jsx(Ve, { children: /* @__PURE__ */ a.jsx(hc, { layout: "1-3", children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
7895
7901
  /* @__PURE__ */ a.jsx(dc, { activeLink: t }),
7896
7902
  /* @__PURE__ */ a.jsx(bi, { ...e })
7897
7903
  ] }) }) });
@@ -7900,7 +7906,7 @@ const Mn = "cookieBanner_", Rn = [
7900
7906
  "apolitical-performance-cookie-consent",
7901
7907
  "functional-cookie-consent"
7902
7908
  ], Fn = new Date(Date.now() + 12 * 30 * 24 * 60 * 60 * 1e3), gc = () => {
7903
- const t = H(), [e, n, r] = oa(Rn), [s, i] = X(
7909
+ const t = H(), [e, n, r] = Kn(Rn), [s, i] = X(
7904
7910
  !e["apol-cookie-banner"]
7905
7911
  ), o = () => {
7906
7912
  Rn.forEach((u) => {
@@ -8041,7 +8047,7 @@ const Mn = "cookieBanner_", Rn = [
8041
8047
  facebook: { href: "https://www.facebook.com/apoliticalco" }
8042
8048
  }
8043
8049
  };
8044
- const Xe = "footer_", Gt = "SiteFooter", Kr = ({ group: t }) => {
8050
+ const Xe = "footer_", Gt = "SiteFooter", Gr = ({ group: t }) => {
8045
8051
  const e = Re[t].order || [];
8046
8052
  let n = !1;
8047
8053
  return "text" in Re[t] && (n = Re[t].text), /* @__PURE__ */ a.jsxs(yt, { children: [
@@ -8086,7 +8092,7 @@ const Xe = "footer_", Gt = "SiteFooter", Kr = ({ group: t }) => {
8086
8092
  ] }, `dl-${t}-${r}`)) })
8087
8093
  ] }, t);
8088
8094
  }, Za = () => /* @__PURE__ */ a.jsx("div", { id: "footer", children: /* @__PURE__ */ a.jsxs("div", { className: "wrapper", children: [
8089
- /* @__PURE__ */ a.jsx(Gn, { element: "hr" }),
8095
+ /* @__PURE__ */ a.jsx(Qn, { element: "hr" }),
8090
8096
  /* @__PURE__ */ a.jsx(
8091
8097
  za,
8092
8098
  {
@@ -8098,8 +8104,8 @@ const Xe = "footer_", Gt = "SiteFooter", Kr = ({ group: t }) => {
8098
8104
  }
8099
8105
  ),
8100
8106
  /* @__PURE__ */ a.jsx("footer", { children: ["platform", "community", "company", "contact"].map((t) => /* @__PURE__ */ a.jsxs("div", { className: "group", children: [
8101
- /* @__PURE__ */ a.jsx(Kr, { group: t }),
8102
- Object.keys(Re[t]).includes("child") && /* @__PURE__ */ a.jsx(Kr, { group: Re[t].child })
8107
+ /* @__PURE__ */ a.jsx(Gr, { group: t }),
8108
+ Object.keys(Re[t]).includes("child") && /* @__PURE__ */ a.jsx(Gr, { group: Re[t].child })
8103
8109
  ] }, t)) }),
8104
8110
  /* @__PURE__ */ a.jsx("hr", {}),
8105
8111
  /* @__PURE__ */ a.jsxs("div", { className: "sub-footer", children: [
@@ -8673,7 +8679,7 @@ const bc = () => {
8673
8679
  ]
8674
8680
  }
8675
8681
  ) }) });
8676
- }, Gr = {
8682
+ }, Qr = {
8677
8683
  default: "tags_",
8678
8684
  headerTopics: "header_topics_topics_"
8679
8685
  }, On = {
@@ -8697,14 +8703,14 @@ const bc = () => {
8697
8703
  if (t.includes("topic_")) {
8698
8704
  if (t = On.topic[t.replace("topic_", "")], t) {
8699
8705
  const e = Qt.topics.topics[t].href;
8700
- return e ? { id: t, href: e, text: `${Gr.headerTopics}${t}` } : null;
8706
+ return e ? { id: t, href: e, text: `${Qr.headerTopics}${t}` } : null;
8701
8707
  }
8702
8708
  return null;
8703
8709
  }
8704
- return On[t] ? (t = On[t], { id: t, text: `${Gr.default}${t}` }) : null;
8710
+ return On[t] ? (t = On[t], { id: t, text: `${Qr.default}${t}` }) : null;
8705
8711
  }
8706
8712
  };
8707
- const lu = ({
8713
+ const uu = ({
8708
8714
  tags: t = [],
8709
8715
  color: e = "default",
8710
8716
  forceOneLine: n = !1,
@@ -8744,7 +8750,7 @@ const lu = ({
8744
8750
  }
8745
8751
  );
8746
8752
  };
8747
- const uu = ({
8753
+ const du = ({
8748
8754
  members: { data: t = [], total: e = t.length },
8749
8755
  hasNextPage: n = !1,
8750
8756
  loadNextPage: r = () => {
@@ -8760,7 +8766,7 @@ const uu = ({
8760
8766
  /* @__PURE__ */ a.jsx("span", { className: "count", children: e })
8761
8767
  ] }),
8762
8768
  /* @__PURE__ */ a.jsx("ul", { children: t.map((d, l) => /* @__PURE__ */ a.jsxs("li", { children: [
8763
- /* @__PURE__ */ a.jsx(tr, { member: d, gtmContext: s, gtmType: i }),
8769
+ /* @__PURE__ */ a.jsx(nr, { member: d, gtmContext: s, gtmType: i }),
8764
8770
  d.isAdmin && /* @__PURE__ */ a.jsx(ht, { children: c.formatMessage({ id: "membersList_admin" }) })
8765
8771
  ] }, l)) }),
8766
8772
  n && /* @__PURE__ */ a.jsx(
@@ -8774,7 +8780,7 @@ const uu = ({
8774
8780
  )
8775
8781
  ] });
8776
8782
  };
8777
- const du = ({
8783
+ const fu = ({
8778
8784
  element: t = "p",
8779
8785
  data: {
8780
8786
  timeLeftToFinish: e,
@@ -8803,7 +8809,7 @@ const du = ({
8803
8809
  }
8804
8810
  ) }),
8805
8811
  l < 100 && s && /* @__PURE__ */ a.jsx(
8806
- Xn,
8812
+ er,
8807
8813
  {
8808
8814
  time: e,
8809
8815
  appendedText: d.formatMessage({ id: "courseProgression_timeLeft" })
@@ -8841,16 +8847,16 @@ const wc = ({
8841
8847
  type: s,
8842
8848
  children: i
8843
8849
  }) => {
8844
- const o = H(), c = Qn(`lessonType_${s}`) ? o.formatMessage({ id: `lessonType_${s}` }) : Zs(s || "");
8850
+ const o = H(), c = Jn(`lessonType_${s}`) ? o.formatMessage({ id: `lessonType_${s}` }) : Zs(s || "");
8845
8851
  return /* @__PURE__ */ a.jsxs("small", { className: E("content-type", { [t]: t !== "default" }), children: [
8846
8852
  /* @__PURE__ */ a.jsx("span", { className: E("type", n), children: c }),
8847
8853
  " ",
8848
- e > 0 && !r && /* @__PURE__ */ a.jsx(Xn, { time: e }),
8854
+ e > 0 && !r && /* @__PURE__ */ a.jsx(er, { time: e }),
8849
8855
  " ",
8850
8856
  i ? /* @__PURE__ */ a.jsx("span", { className: "additional", children: i }) : null
8851
8857
  ] });
8852
8858
  };
8853
- const fu = ({
8859
+ const mu = ({
8854
8860
  course: {
8855
8861
  articles: t,
8856
8862
  canAccessCourse: e,
@@ -8867,7 +8873,7 @@ const fu = ({
8867
8873
  }) => {
8868
8874
  const f = H(), m = "courseStructure_", p = l.toLowerCase().includes("course conclusion");
8869
8875
  return /* @__PURE__ */ a.jsxs(
8870
- Jn,
8876
+ Xn,
8871
8877
  {
8872
8878
  className: "course-structure",
8873
8879
  label: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
@@ -8878,7 +8884,7 @@ const fu = ({
8878
8884
  ),
8879
8885
  " ",
8880
8886
  !r && o >= 0 && /* @__PURE__ */ a.jsx("span", { className: "time", children: s && d === 0 ? f.formatMessage({ id: `${m}time_completed` }) : /* @__PURE__ */ a.jsx(
8881
- Xn,
8887
+ er,
8882
8888
  {
8883
8889
  time: o,
8884
8890
  appendedText: s ? f.formatMessage({ id: `${m}time_left` }) : ""
@@ -8904,8 +8910,8 @@ const fu = ({
8904
8910
  title: R,
8905
8911
  type: Q
8906
8912
  }) => {
8907
- const B = s && e || S, $ = {};
8908
- return x && ($.style = { "--image": `url(${x})` }), /* @__PURE__ */ a.jsx(
8913
+ const B = s && e || S, N = {};
8914
+ return x && (N.style = { "--image": `url(${x})` }), /* @__PURE__ */ a.jsx(
8909
8915
  "li",
8910
8916
  {
8911
8917
  className: E({
@@ -8915,7 +8921,7 @@ const fu = ({
8915
8921
  completed: g && _ === St.ARTICLE,
8916
8922
  locked: !B
8917
8923
  }),
8918
- ...$,
8924
+ ...N,
8919
8925
  children: /* @__PURE__ */ a.jsx(
8920
8926
  at,
8921
8927
  {
@@ -8957,7 +8963,7 @@ const fu = ({
8957
8963
  }
8958
8964
  );
8959
8965
  };
8960
- const mu = ({
8966
+ const pu = ({
8961
8967
  isComplete: t = !1,
8962
8968
  onClick: e,
8963
8969
  ...n
@@ -8983,7 +8989,7 @@ const mu = ({
8983
8989
  );
8984
8990
  };
8985
8991
  let Dt = null;
8986
- const we = "discussion_form_", ar = ({
8992
+ const we = "discussion_form_", sr = ({
8987
8993
  content: t = { type: "response", slugs: {} },
8988
8994
  userHasPermissions: e = !0,
8989
8995
  meta: n = {
@@ -9016,7 +9022,7 @@ const we = "discussion_form_", ar = ({
9016
9022
  },
9017
9023
  gtmContext: l = "DiscussionForm"
9018
9024
  }) => {
9019
- var $, C, k;
9025
+ var N, C, k;
9020
9026
  const u = H(), f = Ee(De), [m, p] = X(
9021
9027
  n.isEditing && n.isEditing.text || ""
9022
9028
  ), [g, v] = X(c.error || !1), [_, y] = X(!1), x = pe(null);
@@ -9029,15 +9035,15 @@ const we = "discussion_form_", ar = ({
9029
9035
  }
9030
9036
  );
9031
9037
  const S = (j) => {
9032
- const N = j.target.value;
9033
- p(N);
9038
+ const $ = j.target.value;
9039
+ p($);
9034
9040
  let A;
9035
- !f || !f.id ? A = $e(
9041
+ !f || !f.id ? A = Ne(
9036
9042
  u.formatMessage,
9037
9043
  `${we}error_loggedOut`,
9038
9044
  t.type,
9039
9045
  "action"
9040
- ) : e ? N.length >= i && (A = `${we}error_tooLong`) : A = $e(
9046
+ ) : e ? $.length >= i && (A = `${we}error_tooLong`) : A = Ne(
9041
9047
  u.formatMessage,
9042
9048
  `${we}error_noPermission`,
9043
9049
  t.type,
@@ -9046,7 +9052,7 @@ const we = "discussion_form_", ar = ({
9046
9052
  };
9047
9053
  let w = `${t.type}-form`;
9048
9054
  if (t.type === "response" || t.type === "reply") {
9049
- const j = (($ = t.slugs) == null ? void 0 : $.reply) || ((C = t.slugs) == null ? void 0 : C.answer) || ((k = t.slugs) == null ? void 0 : k.question) || "";
9055
+ const j = ((N = t.slugs) == null ? void 0 : N.reply) || ((C = t.slugs) == null ? void 0 : C.answer) || ((k = t.slugs) == null ? void 0 : k.question) || "";
9050
9056
  j && (w = `${w}-${j.slice(-15)}`);
9051
9057
  }
9052
9058
  const b = async (j) => {
@@ -9054,7 +9060,7 @@ const we = "discussion_form_", ar = ({
9054
9060
  if (j.preventDefault(), j.stopPropagation(), !f || !f.id || !e || R)
9055
9061
  return;
9056
9062
  Dt && clearTimeout(Dt), y("submitting");
9057
- const N = window.location.pathname;
9063
+ const $ = window.location.pathname;
9058
9064
  try {
9059
9065
  let W;
9060
9066
  switch (t.type) {
@@ -9071,13 +9077,13 @@ const we = "discussion_form_", ar = ({
9071
9077
  case "response":
9072
9078
  W = await d.create(
9073
9079
  { questionSlug: t.slugs.question },
9074
- { body: m, authorId: f && f.id, contentPath: N }
9080
+ { body: m, authorId: f && f.id, contentPath: $ }
9075
9081
  );
9076
9082
  break;
9077
9083
  case "reply":
9078
9084
  W = await d.create(
9079
9085
  { questionSlug: t.slugs.question, answerSlug: t.slugs.answer },
9080
- { body: m, authorId: f && f.id, contentPath: N }
9086
+ { body: m, authorId: f && f.id, contentPath: $ }
9081
9087
  );
9082
9088
  break;
9083
9089
  default:
@@ -9091,12 +9097,12 @@ const we = "discussion_form_", ar = ({
9091
9097
  } catch (W) {
9092
9098
  const Z = W;
9093
9099
  let z = `${we}error`;
9094
- Z != null && Z.message.includes("entry already exists") && (z = $e(
9100
+ Z != null && Z.message.includes("entry already exists") && (z = Ne(
9095
9101
  u.formatMessage,
9096
9102
  `${we}error_alreadyExists`,
9097
9103
  t.type,
9098
9104
  "action"
9099
- )), Z != null && Z.message.includes("429") ? z = $e(
9105
+ )), Z != null && Z.message.includes("429") ? z = Ne(
9100
9106
  u.formatMessage,
9101
9107
  `${we}error_tooMany`,
9102
9108
  t.type,
@@ -9146,23 +9152,23 @@ const we = "discussion_form_", ar = ({
9146
9152
  }),
9147
9153
  "data-testid": `discussion-${t.type}-form`,
9148
9154
  children: [
9149
- (n == null ? void 0 : n.showTitle) && !n.isEditing && ["question"].includes(t.type) && /* @__PURE__ */ a.jsx("h2", { children: $e(u.formatMessage, `${we}title`, t.type, "action") }),
9155
+ (n == null ? void 0 : n.showTitle) && !n.isEditing && ["question"].includes(t.type) && /* @__PURE__ */ a.jsx("h2", { children: Ne(u.formatMessage, `${we}title`, t.type, "action") }),
9150
9156
  /* @__PURE__ */ a.jsx(
9151
- tr,
9157
+ nr,
9152
9158
  {
9153
9159
  member: f || "community",
9154
9160
  gtmContext: l,
9155
9161
  gtmType: "profile-click"
9156
9162
  }
9157
9163
  ),
9158
- /* @__PURE__ */ a.jsx(be, { element: "label", showOnFocus: !1, htmlFor: `${w}-input`, children: $e(u.formatMessage, `${we}label`, t.type, "action") }),
9164
+ /* @__PURE__ */ a.jsx(be, { element: "label", showOnFocus: !1, htmlFor: `${w}-input`, children: Ne(u.formatMessage, `${we}label`, t.type, "action") }),
9159
9165
  /* @__PURE__ */ a.jsx(
9160
9166
  Ms,
9161
9167
  {
9162
9168
  ref: r,
9163
9169
  id: `${w}-input`,
9164
9170
  name: t.type,
9165
- placeholder: s || $e(
9171
+ placeholder: s || Ne(
9166
9172
  u.formatMessage,
9167
9173
  `${we}placeholder`,
9168
9174
  t.type,
@@ -9177,7 +9183,7 @@ const we = "discussion_form_", ar = ({
9177
9183
  autoFocus: !!n.isEditing
9178
9184
  }
9179
9185
  ),
9180
- /* @__PURE__ */ a.jsx("small", { children: $e(u.formatMessage, `${we}explainer`, t.type, "action", {
9186
+ /* @__PURE__ */ a.jsx("small", { children: Ne(u.formatMessage, `${we}explainer`, t.type, "action", {
9181
9187
  a: (j) => /* @__PURE__ */ a.jsx(
9182
9188
  "a",
9183
9189
  {
@@ -9192,7 +9198,7 @@ const we = "discussion_form_", ar = ({
9192
9198
  )
9193
9199
  }) }),
9194
9200
  /* @__PURE__ */ a.jsx(kt, { buttons: B }),
9195
- _ === "submitted" && n.showSuccessMessage && /* @__PURE__ */ a.jsx(Wt, { className: "success", "data-testid": "success", children: $e(u.formatMessage, `${we}success`, t.type, "action") }),
9201
+ _ === "submitted" && n.showSuccessMessage && /* @__PURE__ */ a.jsx(Wt, { className: "success", "data-testid": "success", children: Ne(u.formatMessage, `${we}success`, t.type, "action") }),
9196
9202
  g && /* @__PURE__ */ a.jsx(Wt, { id: "error-message", className: "error", "data-testid": "error", children: c.error ? c.error : typeof g == "string" ? g.includes(" ") ? g : u.formatMessage(
9197
9203
  { id: g },
9198
9204
  {
@@ -9222,7 +9228,7 @@ const we = "discussion_form_", ar = ({
9222
9228
  );
9223
9229
  const { content: o, functions: c, meta: d, ...l } = t;
9224
9230
  return /* @__PURE__ */ a.jsx(
9225
- ar,
9231
+ sr,
9226
9232
  {
9227
9233
  content: { type: (o == null ? void 0 : o.type) || "reply", slugs: (o == null ? void 0 : o.slugs) || {} },
9228
9234
  functions: { ...c, create: (c == null ? void 0 : c.create) || (() => {
@@ -9233,11 +9239,11 @@ const we = "discussion_form_", ar = ({
9233
9239
  );
9234
9240
  }, jc = {
9235
9241
  showForm: !1
9236
- }, sr = nn(jc), kc = ({ children: t }) => {
9242
+ }, ir = nn(jc), kc = ({ children: t }) => {
9237
9243
  const [e, n] = X({
9238
9244
  showForm: !1
9239
9245
  });
9240
- return /* @__PURE__ */ a.jsx(sr.Provider, { value: { ...e, updateConversation: n }, children: t });
9246
+ return /* @__PURE__ */ a.jsx(ir.Provider, { value: { ...e, updateConversation: n }, children: t });
9241
9247
  }, Tc = ({
9242
9248
  question: t,
9243
9249
  answer: e,
@@ -9368,7 +9374,7 @@ const An = () => {
9368
9374
  ] }) })
9369
9375
  ] })
9370
9376
  });
9371
- }, Qr = (t) => {
9377
+ }, Jr = (t) => {
9372
9378
  const e = {};
9373
9379
  return Object.keys(t).forEach((n) => n.includes("Id") ? e[n] = t[n] : e[`${n}Slug`] = t[n]), e;
9374
9380
  }, on = (t, e) => t && !e;
@@ -9404,7 +9410,7 @@ const Me = "discussion_", Cc = 280, cn = ({
9404
9410
  children: v,
9405
9411
  isTruncated: _ = !1
9406
9412
  }) => {
9407
- const y = H(), x = Ee(De), S = Ee(sr), { author: w, canLike: b, createdAt: F, id: R, likes: Q = 0, userLiked: B, comments: $ = 0 } = e, C = x && x.id && typeof w != "string" && w.id && w.id === x.id || !1, k = typeof b == "boolean" ? b : n ? !C : !1, j = C && (!e.createdAt || Ys(e.createdAt, 10, "seconds")), N = pe(null), [A, W] = X({
9413
+ const y = H(), x = Ee(De), S = Ee(ir), { author: w, canLike: b, createdAt: F, id: R, likes: Q = 0, userLiked: B, comments: N = 0 } = e, C = x && x.id && typeof w != "string" && w.id && w.id === x.id || !1, k = typeof b == "boolean" ? b : n ? !C : !1, j = C && (!e.createdAt || Ys(e.createdAt, 10, "seconds")), $ = pe(null), [A, W] = X({
9408
9414
  body: e && e.body || "",
9409
9415
  isEditing: !1,
9410
9416
  didEdit: e && e.isEdited || !1
@@ -9413,7 +9419,7 @@ const Me = "discussion_", Cc = 280, cn = ({
9413
9419
  /* Default */
9414
9420
  ), [P, q] = X("");
9415
9421
  ae(() => {
9416
- const O = N.current;
9422
+ const O = $.current;
9417
9423
  if (!(!O || K === "default"))
9418
9424
  return document.addEventListener("discussionFormSubmitted", L), O.addEventListener("transitionend", U), () => {
9419
9425
  document.removeEventListener("discussionFormSubmitted", L), O.removeEventListener("transitionend", U);
@@ -9433,7 +9439,7 @@ const Me = "discussion_", Cc = 280, cn = ({
9433
9439
  );
9434
9440
  }, 1e3);
9435
9441
  }, U = ({ propertyName: O }) => {
9436
- O === "background-color" && T((oe) => (oe === "default" && (document.removeEventListener("discussionFormSubmitted", L), N.current && N.current.removeEventListener("transitionend", U)), oe === "fading" ? "default" : oe));
9442
+ O === "background-color" && T((oe) => (oe === "default" && (document.removeEventListener("discussionFormSubmitted", L), $.current && $.current.removeEventListener("transitionend", U)), oe === "fading" ? "default" : oe));
9437
9443
  };
9438
9444
  if (r || !e || e.type === "answer" && (!e.slugs || !e.slugs.question))
9439
9445
  return /* @__PURE__ */ a.jsx(Se, { className: "discussion-card discussion-post" });
@@ -9442,7 +9448,7 @@ const Me = "discussion_", Cc = 280, cn = ({
9442
9448
  try {
9443
9449
  if (!Rs(O, A.body)) {
9444
9450
  const oe = e.type === "question" ? { title: O } : { body: O };
9445
- await d(Qr(e.slugs), oe);
9451
+ await d(Jr(e.slugs), oe);
9446
9452
  }
9447
9453
  W({ body: O, isEditing: !1, didEdit: !0 });
9448
9454
  } catch {
@@ -9450,14 +9456,14 @@ const Me = "discussion_", Cc = 280, cn = ({
9450
9456
  }
9451
9457
  }, V = () => {
9452
9458
  S && S.updateConversation && S.updateConversation({ showForm: !0 }), setTimeout(() => {
9453
- var Ne, Ce, Ue;
9454
- const oe = `reply-form-${(e.type === "answer" ? e.slug : ((Ne = e.slugs) == null ? void 0 : Ne.reply) || ((Ce = e.slugs) == null ? void 0 : Ce.answer) || ((Ue = e.slugs) == null ? void 0 : Ue.question) || "").toLowerCase().slice(-15)}`, D = document.getElementById(oe), ve = document.getElementById(`${oe}-input`);
9459
+ var $e, Ce, Ue;
9460
+ const oe = `reply-form-${(e.type === "answer" ? e.slug : (($e = e.slugs) == null ? void 0 : $e.reply) || ((Ce = e.slugs) == null ? void 0 : Ce.answer) || ((Ue = e.slugs) == null ? void 0 : Ue.question) || "").toLowerCase().slice(-15)}`, D = document.getElementById(oe), ve = document.getElementById(`${oe}-input`);
9455
9461
  ve && ve.focus(), D && D.scrollIntoView({ behavior: "smooth" });
9456
9462
  }, 0);
9457
9463
  }, ee = async () => {
9458
9464
  z(!1);
9459
9465
  try {
9460
- await c(Qr(e.slugs));
9466
+ await c(Jr(e.slugs));
9461
9467
  } catch {
9462
9468
  q("delete-error");
9463
9469
  }
@@ -9506,7 +9512,7 @@ const Me = "discussion_", Cc = 280, cn = ({
9506
9512
  className: E("discussion-post", p, {
9507
9513
  [K]: !p || !p.includes("highlighted-text-box")
9508
9514
  }),
9509
- ref: N,
9515
+ ref: $,
9510
9516
  "data-testid": `discussion-${e.type}-thread`,
9511
9517
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
9512
9518
  /* @__PURE__ */ a.jsxs(
@@ -9522,7 +9528,7 @@ const Me = "discussion_", Cc = 280, cn = ({
9522
9528
  },
9523
9529
  children: [
9524
9530
  !A.isEditing && /* @__PURE__ */ a.jsx(
9525
- tr,
9531
+ nr,
9526
9532
  {
9527
9533
  member: w,
9528
9534
  additionalContent: { createdAt: F, didEdit: A.didEdit },
@@ -9532,7 +9538,7 @@ const Me = "discussion_", Cc = 280, cn = ({
9532
9538
  }
9533
9539
  ),
9534
9540
  A.isEditing ? /* @__PURE__ */ a.jsx(
9535
- ar,
9541
+ sr,
9536
9542
  {
9537
9543
  content: { type: e.type, slugs: e.slugs },
9538
9544
  userHasPermissions: n,
@@ -9626,13 +9632,13 @@ const Me = "discussion_", Cc = 280, cn = ({
9626
9632
  "data-gtm-event-type": `answer-${e.type}-click`,
9627
9633
  screenreaderText: y.formatMessage(
9628
9634
  { id: `${Me}comments_screenReader` },
9629
- { count: $ }
9635
+ { count: N }
9630
9636
  )
9631
9637
  }
9632
9638
  ),
9633
9639
  /* @__PURE__ */ a.jsx("span", { children: y.formatMessage(
9634
9640
  { id: `${Me}comments` },
9635
- { count: $ }
9641
+ { count: N }
9636
9642
  ) })
9637
9643
  ]
9638
9644
  }
@@ -9714,17 +9720,17 @@ const Me = "discussion_", Cc = 280, cn = ({
9714
9720
  ] })
9715
9721
  });
9716
9722
  };
9717
- const In = "discussion_responses_", $c = ({ type: t = "answer", responses: e = 0 }) => {
9723
+ const In = "discussion_responses_", Nc = ({ type: t = "answer", responses: e = 0 }) => {
9718
9724
  const n = H();
9719
9725
  return e = parseInt(e), /* @__PURE__ */ a.jsxs("div", { className: "responses-heading", children: [
9720
9726
  /* @__PURE__ */ a.jsx("h4", { children: n.formatMessage(
9721
9727
  { id: `${In}title` },
9722
9728
  { action: n.formatMessage({ id: `${In}${t}` }), count: e }
9723
9729
  ) }),
9724
- e === 0 && /* @__PURE__ */ a.jsx("p", { children: $e(n.formatMessage, `${In}empty`, t, t) })
9730
+ e === 0 && /* @__PURE__ */ a.jsx("p", { children: Ne(n.formatMessage, `${In}empty`, t, t) })
9725
9731
  ] });
9726
9732
  };
9727
- const Nc = ({
9733
+ const $c = ({
9728
9734
  loadMore: { isLoading: t, hasNextPage: e, loadNextPage: n } = {
9729
9735
  isLoading: !1,
9730
9736
  hasNextPage: !1,
@@ -9734,7 +9740,7 @@ const Nc = ({
9734
9740
  form: r,
9735
9741
  children: s
9736
9742
  }) => {
9737
- const i = H(), o = Ee(sr), c = Bt(s, {
9743
+ const i = H(), o = Ee(ir), c = Bt(s, {
9738
9744
  element: "li"
9739
9745
  });
9740
9746
  return /* @__PURE__ */ a.jsxs("div", { className: "thread-wrapper", children: [
@@ -9753,16 +9759,16 @@ const Nc = ({
9753
9759
  }
9754
9760
  }
9755
9761
  ),
9756
- r && o.showForm && /* @__PURE__ */ a.jsx(ar, { ...r })
9762
+ r && o.showForm && /* @__PURE__ */ a.jsx(sr, { ...r })
9757
9763
  ] });
9758
9764
  }, Pc = "post", Mc = "reply", Ya = "00000000-0000-0000-0000-000000000000";
9759
- function ir({ queryClient: t, queryKey: e }) {
9765
+ function or({ queryClient: t, queryKey: e }) {
9760
9766
  function n(r, s, i) {
9761
9767
  t.setQueryData(e, i);
9762
9768
  }
9763
9769
  return n;
9764
9770
  }
9765
- function or({ queryClient: t, queryKey: e }) {
9771
+ function cr({ queryClient: t, queryKey: e }) {
9766
9772
  async function n(r) {
9767
9773
  await t.cancelQueries({ queryKey: e });
9768
9774
  const s = t.getQueryData(e);
@@ -9822,7 +9828,7 @@ function Oc({ content: t }) {
9822
9828
  verb: Pc
9823
9829
  };
9824
9830
  }
9825
- function Jr({ activity: t, user: e }) {
9831
+ function Xr({ activity: t, user: e }) {
9826
9832
  return {
9827
9833
  ...t,
9828
9834
  actor: Ka(e),
@@ -9866,7 +9872,7 @@ function Ac({ activityId: t, replyId: e, content: n }) {
9866
9872
  parent: e || ""
9867
9873
  };
9868
9874
  }
9869
- function Xr({ reply: t, user: e }) {
9875
+ function ea({ reply: t, user: e }) {
9870
9876
  const n = Ka(e);
9871
9877
  return {
9872
9878
  ...t,
@@ -9875,7 +9881,7 @@ function Xr({ reply: t, user: e }) {
9875
9881
  ...Fc()
9876
9882
  };
9877
9883
  }
9878
- function ea({ reply: t, reaction: e }) {
9884
+ function ta({ reply: t, reaction: e }) {
9879
9885
  var n, r, s;
9880
9886
  e ? (t.latest_children = {
9881
9887
  ...t.latest_children || {},
@@ -9907,7 +9913,7 @@ const Qa = (t) => {
9907
9913
  });
9908
9914
  document.dispatchEvent(e);
9909
9915
  };
9910
- let ta, Ln = 0;
9916
+ let na, Ln = 0;
9911
9917
  const Ja = () => {
9912
9918
  ae(() => (document.addEventListener("discussionPostAdded", t), () => {
9913
9919
  document.removeEventListener(
@@ -9919,13 +9925,13 @@ const Ja = () => {
9919
9925
  const n = e.detail;
9920
9926
  if (!n)
9921
9927
  return;
9922
- clearTimeout(ta);
9928
+ clearTimeout(na);
9923
9929
  const r = document.getElementById(n);
9924
9930
  if (r) {
9925
9931
  r.scrollIntoView({ behavior: "smooth", block: "start" }), Ln = 0;
9926
9932
  return;
9927
9933
  }
9928
- Ln++, !(Ln > 10) && (ta = setTimeout(() => {
9934
+ Ln++, !(Ln > 10) && (na = setTimeout(() => {
9929
9935
  t(e);
9930
9936
  }, 50));
9931
9937
  };
@@ -10098,13 +10104,13 @@ function qc({
10098
10104
  const { mutate: o } = je({
10099
10105
  mutationFn: t,
10100
10106
  onMutate: (c) => e((d) => {
10101
- const l = Jr({ activity: Oc(c), user: i });
10102
- return na(l, d);
10107
+ const l = Xr({ activity: Oc(c), user: i });
10108
+ return ra(l, d);
10103
10109
  }),
10104
10110
  onError: n,
10105
10111
  onSuccess: (c, d, l) => {
10106
- const u = Jr({ activity: c, user: i });
10107
- r.setQueryData(s, na(u, l, !0)), setTimeout(() => {
10112
+ const u = Xr({ activity: c, user: i });
10113
+ r.setQueryData(s, ra(u, l, !0)), setTimeout(() => {
10108
10114
  Qa(u.id);
10109
10115
  }, 0);
10110
10116
  }
@@ -10139,10 +10145,10 @@ function Wc({
10139
10145
  },
10140
10146
  queryKey: o
10141
10147
  }) {
10142
- const c = Kn(), d = er(), l = { queryClient: c, queryKey: o }, u = {
10148
+ const c = Gn(), d = tr(), l = { queryClient: c, queryKey: o }, u = {
10143
10149
  mutationHandlers: {
10144
- error: ir(l),
10145
- mutate: or(l)
10150
+ error: or(l),
10151
+ mutate: cr(l)
10146
10152
  },
10147
10153
  user: d,
10148
10154
  ...l
@@ -10190,7 +10196,7 @@ function Zc({ queryFn: t, queryKey: e }) {
10190
10196
  isLoading: s,
10191
10197
  hasNextPage: i,
10192
10198
  fetchNextPage: o
10193
- } = ia({
10199
+ } = oa({
10194
10200
  queryKey: e,
10195
10201
  queryFn: t,
10196
10202
  initialPageParam: { next: null },
@@ -10236,7 +10242,7 @@ function Vc({
10236
10242
  });
10237
10243
  return s;
10238
10244
  }
10239
- function na(t, e, n = !1) {
10245
+ function ra(t, e, n = !1) {
10240
10246
  return e ? (n ? e.pages[0].results[0] = t : e.pages[0].results = [t, ...e.pages[0].results], e) : {
10241
10247
  pages: [{
10242
10248
  next: "",
@@ -10267,7 +10273,7 @@ function Kc(t) {
10267
10273
  var e;
10268
10274
  return ((e = t == null ? void 0 : t.pages) == null ? void 0 : e.reduce((n, { results: r }) => [...n, ...r], [])) || [];
10269
10275
  }
10270
- const pu = ({
10276
+ const hu = ({
10271
10277
  basePath: t,
10272
10278
  parentId: e,
10273
10279
  isMember: n,
@@ -10313,13 +10319,13 @@ const pu = ({
10313
10319
  own_reactions: F,
10314
10320
  latest_reactions: R,
10315
10321
  reaction_counts: Q
10316
- } = S, B = (((A = R == null ? void 0 : R.like) == null ? void 0 : A.length) || 0) > 0, $ = (((W = F == null ? void 0 : F.like) == null ? void 0 : W.length) || 0) > 0, C = $ ? F == null ? void 0 : F.like[0].id : "", k = B ? (Z = R == null ? void 0 : R.like) == null ? void 0 : Z.map((L) => {
10322
+ } = S, B = (((A = R == null ? void 0 : R.like) == null ? void 0 : A.length) || 0) > 0, N = (((W = F == null ? void 0 : F.like) == null ? void 0 : W.length) || 0) > 0, C = N ? F == null ? void 0 : F.like[0].id : "", k = B ? (Z = R == null ? void 0 : R.like) == null ? void 0 : Z.map((L) => {
10317
10323
  var U, te, G;
10318
10324
  return {
10319
10325
  id: (U = L == null ? void 0 : L.user) == null ? void 0 : U.id,
10320
10326
  name: (G = (te = L == null ? void 0 : L.user) == null ? void 0 : te.data) == null ? void 0 : G.name
10321
10327
  };
10322
- }) : !1, j = S == null ? void 0 : S.actor, N = (j == null ? void 0 : j.id) === (y == null ? void 0 : y.id);
10328
+ }) : !1, j = S == null ? void 0 : S.actor, $ = (j == null ? void 0 : j.id) === (y == null ? void 0 : y.id);
10323
10329
  return /* @__PURE__ */ a.jsxs(yt, { children: [
10324
10330
  /* @__PURE__ */ a.jsx(
10325
10331
  cn,
@@ -10327,7 +10333,7 @@ const pu = ({
10327
10333
  content: {
10328
10334
  type: "post",
10329
10335
  body: S == null ? void 0 : S.content,
10330
- canLike: on(n, N),
10336
+ canLike: on(n, $),
10331
10337
  createdAt: (S == null ? void 0 : S.time) || "",
10332
10338
  slugs: {
10333
10339
  question: `${t}/${e}`,
@@ -10344,7 +10350,7 @@ const pu = ({
10344
10350
  thumbnail: ((q = j == null ? void 0 : j.data) == null ? void 0 : q.thumbnail) || void 0
10345
10351
  }
10346
10352
  },
10347
- userLiked: $,
10353
+ userLiked: N,
10348
10354
  likes: (Q == null ? void 0 : Q.like) || 0,
10349
10355
  comments: (Q == null ? void 0 : Q.reply) || 0,
10350
10356
  peopleWhoLiked: k
@@ -10387,7 +10393,7 @@ const pu = ({
10387
10393
  }
10388
10394
  )
10389
10395
  ] });
10390
- }, hu = {
10396
+ }, gu = {
10391
10397
  next: "id_lt=67ef0342-6f6e-4807-beea-5a9184ec140c&limit=5",
10392
10398
  results: [
10393
10399
  {
@@ -10949,18 +10955,18 @@ function Gc({
10949
10955
  const { mutate: o } = je({
10950
10956
  mutationFn: t,
10951
10957
  onMutate: (c) => e((d) => {
10952
- const l = Xr({ reply: Ac(c), user: i });
10953
- return ra(l, d, {
10958
+ const l = ea({ reply: Ac(c), user: i });
10959
+ return aa(l, d, {
10954
10960
  replace: !1,
10955
10961
  append: (c == null ? void 0 : c.replyId) !== void 0
10956
10962
  });
10957
10963
  }),
10958
10964
  onError: n,
10959
10965
  onSuccess: (c, d, l) => {
10960
- const u = Xr({ reply: c, user: i });
10966
+ const u = ea({ reply: c, user: i });
10961
10967
  r.setQueryData(
10962
10968
  s,
10963
- ra(u, l, { replace: !0, append: (d == null ? void 0 : d.replyId) !== void 0 })
10969
+ aa(u, l, { replace: !0, append: (d == null ? void 0 : d.replyId) !== void 0 })
10964
10970
  ), setTimeout(() => {
10965
10971
  Qa(u.id);
10966
10972
  }, 0);
@@ -10996,10 +11002,10 @@ function es({
10996
11002
  },
10997
11003
  queryKey: o
10998
11004
  }) {
10999
- const c = Kn(), d = er(), l = { queryClient: c, queryKey: o }, u = {
11005
+ const c = Gn(), d = tr(), l = { queryClient: c, queryKey: o }, u = {
11000
11006
  mutationHandlers: {
11001
- error: ir(l),
11002
- mutate: or(l)
11007
+ error: or(l),
11008
+ mutate: cr(l)
11003
11009
  },
11004
11010
  user: d,
11005
11011
  ...l
@@ -11030,12 +11036,12 @@ function Jc({
11030
11036
  mutationFn: t,
11031
11037
  onMutate: ({ replyId: o }) => e((c) => {
11032
11038
  const d = tn(o, c);
11033
- return d && ea({ reply: d }), c;
11039
+ return d && ta({ reply: d }), c;
11034
11040
  }),
11035
11041
  onError: n,
11036
11042
  onSuccess: (o, { replyId: c }, d) => {
11037
11043
  const l = tn(c, d);
11038
- l && ea({ reply: l, reaction: o }), r.setQueryData(s, d);
11044
+ l && ta({ reply: l, reaction: o }), r.setQueryData(s, d);
11039
11045
  }
11040
11046
  });
11041
11047
  return i;
@@ -11047,7 +11053,7 @@ function Xc({ queryFn: t, queryKey: e }) {
11047
11053
  isLoading: s,
11048
11054
  hasNextPage: i,
11049
11055
  fetchNextPage: o
11050
- } = ia({
11056
+ } = oa({
11051
11057
  queryKey: e,
11052
11058
  queryFn: t,
11053
11059
  initialPageParam: { next: "" },
@@ -11110,7 +11116,7 @@ function rl(t, e, n) {
11110
11116
  function al(t, e, n) {
11111
11117
  return n != null && n.replace ? e.pages[0].results[0] = t : e.pages[0].results = [t, ...e.pages[0].results], e;
11112
11118
  }
11113
- function ra(t, e, n) {
11119
+ function aa(t, e, n) {
11114
11120
  return e ? n != null && n.append ? rl(t, e, n) : al(t, e, n) : nl(t);
11115
11121
  }
11116
11122
  function tn(t, e) {
@@ -11159,7 +11165,7 @@ const ol = ({
11159
11165
  }
11160
11166
  });
11161
11167
  return /* @__PURE__ */ a.jsx(
11162
- Nc,
11168
+ $c,
11163
11169
  {
11164
11170
  loadMore: { isLoading: l, hasNextPage: d, loadNextPage: () => c() },
11165
11171
  form: {
@@ -11187,13 +11193,13 @@ const ol = ({
11187
11193
  } = _, F = (((A = x == null ? void 0 : x.like) == null ? void 0 : A.length) || 0) > 0 ? (W = x == null ? void 0 : x.like) == null ? void 0 : W.find((V) => {
11188
11194
  var ee;
11189
11195
  return ((ee = V == null ? void 0 : V.user) == null ? void 0 : ee.id) === (v == null ? void 0 : v.id);
11190
- }) : !1, R = F ? F == null ? void 0 : F.id : "", Q = !!F, $ = (((Z = S == null ? void 0 : S.like) == null ? void 0 : Z.length) || 0) > 0 ? (z = S == null ? void 0 : S.like) == null ? void 0 : z.map((V) => {
11196
+ }) : !1, R = F ? F == null ? void 0 : F.id : "", Q = !!F, N = (((Z = S == null ? void 0 : S.like) == null ? void 0 : Z.length) || 0) > 0 ? (z = S == null ? void 0 : S.like) == null ? void 0 : z.map((V) => {
11191
11197
  var ee, re, O;
11192
11198
  return {
11193
11199
  id: (ee = V == null ? void 0 : V.user) == null ? void 0 : ee.id,
11194
11200
  name: (O = (re = V == null ? void 0 : V.user) == null ? void 0 : re.data) == null ? void 0 : O.name
11195
11201
  };
11196
- }) : !1, C = _ == null ? void 0 : _.user, k = (C == null ? void 0 : C.id) === (v == null ? void 0 : v.id), j = on(s, k), N = typeof _.data.content == "string" ? (K = _ == null ? void 0 : _.data) == null ? void 0 : K.content : (
11202
+ }) : !1, C = _ == null ? void 0 : _.user, k = (C == null ? void 0 : C.id) === (v == null ? void 0 : v.id), j = on(s, k), $ = typeof _.data.content == "string" ? (K = _ == null ? void 0 : _.data) == null ? void 0 : K.content : (
11197
11203
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
11198
11204
  ((P = (T = _ == null ? void 0 : _.data) == null ? void 0 : T.content) == null ? void 0 : P.text) || ""
11199
11205
  );
@@ -11203,7 +11209,7 @@ const ol = ({
11203
11209
  content: {
11204
11210
  id: y,
11205
11211
  type: "reply",
11206
- body: N,
11212
+ body: $,
11207
11213
  canLike: j,
11208
11214
  createdAt: _ == null ? void 0 : _.created_at,
11209
11215
  slugs: {
@@ -11226,7 +11232,7 @@ const ol = ({
11226
11232
  },
11227
11233
  userLiked: Q,
11228
11234
  likes: (w == null ? void 0 : w.like) || 0,
11229
- peopleWhoLiked: $
11235
+ peopleWhoLiked: N
11230
11236
  },
11231
11237
  functions: {
11232
11238
  content: {
@@ -11267,7 +11273,7 @@ const ol = ({
11267
11273
  queryFns: s
11268
11274
  });
11269
11275
  return Us(), Ja(), /* @__PURE__ */ a.jsxs("section", { children: [
11270
- /* @__PURE__ */ a.jsx($c, { type: "comment", responses: l }),
11276
+ /* @__PURE__ */ a.jsx(Nc, { type: "comment", responses: l }),
11271
11277
  /* @__PURE__ */ a.jsx(
11272
11278
  Va,
11273
11279
  {
@@ -11294,13 +11300,13 @@ const ol = ({
11294
11300
  const { id: w, own_children: b, latest_children: F, children_counts: R } = S, B = (((z = b == null ? void 0 : b.like) == null ? void 0 : z.length) || 0) > 0 ? (K = b == null ? void 0 : b.like) == null ? void 0 : K.find((O) => {
11295
11301
  var oe;
11296
11302
  return ((oe = O == null ? void 0 : O.user) == null ? void 0 : oe.id) === (x == null ? void 0 : x.id);
11297
- }) : !1, $ = B ? B == null ? void 0 : B.id : "", C = !!B, j = (((T = F == null ? void 0 : F.like) == null ? void 0 : T.length) || 0) > 0 ? (P = F == null ? void 0 : F.like) == null ? void 0 : P.map((O) => {
11303
+ }) : !1, N = B ? B == null ? void 0 : B.id : "", C = !!B, j = (((T = F == null ? void 0 : F.like) == null ? void 0 : T.length) || 0) > 0 ? (P = F == null ? void 0 : F.like) == null ? void 0 : P.map((O) => {
11298
11304
  var oe, D, ve;
11299
11305
  return {
11300
11306
  id: (oe = O == null ? void 0 : O.user) == null ? void 0 : oe.id,
11301
11307
  name: (ve = (D = O == null ? void 0 : O.user) == null ? void 0 : D.data) == null ? void 0 : ve.name
11302
11308
  };
11303
- }) : !1, N = S == null ? void 0 : S.user, A = (N == null ? void 0 : N.id) === (x == null ? void 0 : x.id), W = on(r, A), Z = typeof S.data.content == "string" ? (q = S == null ? void 0 : S.data) == null ? void 0 : q.content : (
11309
+ }) : !1, $ = S == null ? void 0 : S.user, A = ($ == null ? void 0 : $.id) === (x == null ? void 0 : x.id), W = on(r, A), Z = typeof S.data.content == "string" ? (q = S == null ? void 0 : S.data) == null ? void 0 : q.content : (
11304
11310
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
11305
11311
  ((U = (L = S == null ? void 0 : S.data) == null ? void 0 : L.content) == null ? void 0 : U.text) || ""
11306
11312
  );
@@ -11320,13 +11326,13 @@ const ol = ({
11320
11326
  },
11321
11327
  slug: w,
11322
11328
  author: {
11323
- id: N == null ? void 0 : N.id,
11324
- name: (te = N.data) == null ? void 0 : te.name,
11325
- organization: (G = N.data) == null ? void 0 : G.organization,
11326
- jobTitle: (V = N.data) == null ? void 0 : V.jobTitle,
11327
- location: (ee = N.data) == null ? void 0 : ee.location,
11329
+ id: $ == null ? void 0 : $.id,
11330
+ name: (te = $.data) == null ? void 0 : te.name,
11331
+ organization: (G = $.data) == null ? void 0 : G.organization,
11332
+ jobTitle: (V = $.data) == null ? void 0 : V.jobTitle,
11333
+ location: (ee = $.data) == null ? void 0 : ee.location,
11328
11334
  image: {
11329
- thumbnail: ((re = N.data) == null ? void 0 : re.thumbnail) || void 0
11335
+ thumbnail: ((re = $.data) == null ? void 0 : re.thumbnail) || void 0
11330
11336
  }
11331
11337
  },
11332
11338
  userLiked: C,
@@ -11342,7 +11348,7 @@ const ol = ({
11342
11348
  },
11343
11349
  likes: {
11344
11350
  createLike: () => v({ replyId: w }),
11345
- deleteLike: () => y({ replyId: w, reactionId: $ })
11351
+ deleteLike: () => y({ replyId: w, reactionId: N })
11346
11352
  },
11347
11353
  comments: {}
11348
11354
  },
@@ -11397,7 +11403,7 @@ function ul({ queryFn: t, queryKey: e }) {
11397
11403
  error: r,
11398
11404
  isLoading: s,
11399
11405
  isFetching: i
11400
- } = Ss({
11406
+ } = Cs({
11401
11407
  queryFn: t,
11402
11408
  queryKey: e
11403
11409
  });
@@ -11417,10 +11423,10 @@ function dl({
11417
11423
  },
11418
11424
  queryKey: s
11419
11425
  }) {
11420
- const i = Kn(), o = er(), c = { queryClient: i, queryKey: s }, d = {
11426
+ const i = Gn(), o = tr(), c = { queryClient: i, queryKey: s }, d = {
11421
11427
  mutationHandlers: {
11422
- error: ir(c),
11423
- mutate: or(c)
11428
+ error: or(c),
11429
+ mutate: cr(c)
11424
11430
  },
11425
11431
  user: o,
11426
11432
  ...c
@@ -11470,7 +11476,7 @@ function ml({
11470
11476
  });
11471
11477
  return s;
11472
11478
  }
11473
- const gu = ({
11479
+ const vu = ({
11474
11480
  basePath: t,
11475
11481
  parentId: e,
11476
11482
  activityId: n,
@@ -11482,7 +11488,7 @@ const gu = ({
11482
11488
  leave: d
11483
11489
  }
11484
11490
  }) => {
11485
- var B, $, C, k, j, N, A, W, Z, z;
11491
+ var B, N, C, k, j, $, A, W, Z, z;
11486
11492
  const l = H(), u = Ee(De), {
11487
11493
  activity: f,
11488
11494
  error: m,
@@ -11502,7 +11508,7 @@ const gu = ({
11502
11508
  text: l.formatMessage({ id: "activitySection_notFoundError" })
11503
11509
  }
11504
11510
  );
11505
- const { own_reactions: y, latest_reactions: x } = f, S = (((B = x == null ? void 0 : x.like) == null ? void 0 : B.length) || 0) > 0, w = ((($ = y == null ? void 0 : y.like) == null ? void 0 : $.length) || 0) > 0, b = w ? y == null ? void 0 : y.like[0].id : "", F = S ? (C = x == null ? void 0 : x.like) == null ? void 0 : C.map((K) => {
11511
+ const { own_reactions: y, latest_reactions: x } = f, S = (((B = x == null ? void 0 : x.like) == null ? void 0 : B.length) || 0) > 0, w = (((N = y == null ? void 0 : y.like) == null ? void 0 : N.length) || 0) > 0, b = w ? y == null ? void 0 : y.like[0].id : "", F = S ? (C = x == null ? void 0 : x.like) == null ? void 0 : C.map((K) => {
11506
11512
  var T, P, q;
11507
11513
  return {
11508
11514
  id: (T = K == null ? void 0 : K.user) == null ? void 0 : T.id,
@@ -11529,7 +11535,7 @@ const gu = ({
11529
11535
  id: R.id,
11530
11536
  name: (k = R.data) == null ? void 0 : k.name,
11531
11537
  organization: (j = R.data) == null ? void 0 : j.organization,
11532
- jobTitle: (N = R.data) == null ? void 0 : N.jobTitle,
11538
+ jobTitle: ($ = R.data) == null ? void 0 : $.jobTitle,
11533
11539
  location: (A = R.data) == null ? void 0 : A.location,
11534
11540
  image: {
11535
11541
  thumbnail: ((W = R.data) == null ? void 0 : W.thumbnail) || void 0
@@ -11576,7 +11582,7 @@ const gu = ({
11576
11582
  }
11577
11583
  )
11578
11584
  ] });
11579
- }, vu = ({
11585
+ }, bu = ({
11580
11586
  id: t,
11581
11587
  data: { jobTitle: e, name: n, organization: r, thumbnail: s }
11582
11588
  }) => ({
@@ -11585,7 +11591,7 @@ const gu = ({
11585
11591
  jobTitle: e,
11586
11592
  organization: r,
11587
11593
  image: { thumbnail: s }
11588
- }), aa = [
11594
+ }), sa = [
11589
11595
  {
11590
11596
  contentType: "solutionArticle",
11591
11597
  banner: {
@@ -11629,9 +11635,9 @@ const gu = ({
11629
11635
  contributors: ["community"]
11630
11636
  }
11631
11637
  ];
11632
- const It = "notFoundError_", bu = () => {
11638
+ const It = "notFoundError_", yu = () => {
11633
11639
  const t = H(), e = [];
11634
- return aa.forEach((n, r) => {
11640
+ return sa.forEach((n, r) => {
11635
11641
  n.title = t.formatMessage({ id: `${It}post_${r + 1}` }), e.push("solutionArticle");
11636
11642
  }), /* @__PURE__ */ a.jsxs(
11637
11643
  yc,
@@ -11642,7 +11648,7 @@ const It = "notFoundError_", bu = () => {
11642
11648
  /* @__PURE__ */ a.jsx(
11643
11649
  rc,
11644
11650
  {
11645
- cards: aa,
11651
+ cards: sa,
11646
11652
  cardTypes: e,
11647
11653
  buildCardData: (n) => new Promise((r, s) => {
11648
11654
  r(n);
@@ -11664,134 +11670,135 @@ const It = "notFoundError_", bu = () => {
11664
11670
  };
11665
11671
  export {
11666
11672
  Be as ASSETS_BUCKET,
11667
- pu as ActivitiesFeed,
11668
- gu as ActivitySection,
11673
+ hu as ActivitiesFeed,
11674
+ vu as ActivitySection,
11669
11675
  Va as AddPost,
11670
- Dl as Banner,
11671
- ql as BannerSection,
11672
- nu as Breadcrumbs,
11676
+ Il as Banner,
11677
+ Ul as BannerSection,
11678
+ ru as Breadcrumbs,
11673
11679
  se as Button,
11674
11680
  kt as ButtonWrapper,
11675
11681
  St as COURSE_CONTENT_TYPES,
11676
11682
  Ti as CacheProvider,
11677
11683
  Ua as Card,
11678
11684
  rc as CardBlock,
11679
- eu as Carousel,
11680
- Jn as CollapsibleSection,
11685
+ tu as Carousel,
11686
+ Xn as CollapsibleSection,
11681
11687
  hc as Columns,
11682
- tu as CommunityDetails,
11683
- ou as ContactFooter,
11688
+ nu as CommunityDetails,
11689
+ cu as ContactFooter,
11684
11690
  Vi as ContactForm,
11685
11691
  oi as ContentTypeLabel,
11686
11692
  Ta as Contributors,
11687
- sr as ConversationContext,
11693
+ ir as ConversationContext,
11688
11694
  gc as CookieBanner,
11689
- du as CourseProgression,
11690
- fu as CourseStructure,
11691
- Ul as CustomContentBanner,
11692
- Xl as Directory,
11695
+ fu as CourseProgression,
11696
+ mu as CourseStructure,
11697
+ Wl as CustomContentBanner,
11698
+ eu as Directory,
11693
11699
  kc as DiscussionConversation,
11694
- ar as DiscussionForm,
11700
+ sr as DiscussionForm,
11695
11701
  Sc as DiscussionLikes,
11696
11702
  cn as DiscussionPost,
11697
- Nc as DiscussionThread,
11703
+ $c as DiscussionThread,
11698
11704
  Oe as Divider,
11699
- Il as DownloadSection,
11705
+ Ll as DownloadSection,
11700
11706
  ft as EMAILS,
11701
- Ll as EditSection,
11707
+ Bl as EditSection,
11702
11708
  Oi as EmailHelperTextBox,
11703
11709
  He as EmptyStateBox,
11704
- ru as Filters,
11710
+ au as Filters,
11705
11711
  Ci as FlagsProvider,
11706
11712
  Za as Footer,
11707
11713
  rn as Form,
11708
11714
  Ve as FullWidthSection,
11709
- Zl as GlobalProviders,
11715
+ Hl as GlobalProviders,
11710
11716
  Ha as Header,
11711
11717
  ci as HelperTextBox,
11712
- Gn as HiddenFromScreenReaders,
11713
- Rl as HideShowTextBox,
11714
- Wl as HighlightSection,
11718
+ Qn as HiddenFromScreenReaders,
11719
+ Fl as HideShowTextBox,
11720
+ zl as HighlightSection,
11715
11721
  Fe as HighlightedTextBox,
11716
- Fl as IconBulletedList,
11717
- Nl as ImageContainer,
11718
- $i as IntlProvider,
11722
+ Ol as IconBulletedList,
11723
+ Pl as ImageContainer,
11724
+ Ni as IntlProvider,
11719
11725
  Yi as InviteForm,
11720
- Jl as InviteModal,
11726
+ Xl as InviteModal,
11721
11727
  Wa as JoinButton,
11722
11728
  ya as LanguageContext,
11723
- au as LanguageSwitcher,
11729
+ su as LanguageSwitcher,
11724
11730
  xc as LessonName,
11725
11731
  wc as LessonType,
11726
11732
  at as Link,
11727
11733
  sn as LoadMore,
11728
- Hl as LoadingBlock,
11734
+ Vl as LoadingBlock,
11729
11735
  Se as LoadingPlaceholder,
11730
11736
  wa as LoadingState,
11731
11737
  za as Logo,
11732
- Bl as LogoSection,
11733
- mu as MarkCompleteButton,
11738
+ ql as LogoSection,
11739
+ pu as MarkCompleteButton,
11734
11740
  xt as MarkdownText,
11735
- zl as MarketingBlock,
11736
- tr as Member,
11737
- uu as MembersList,
11741
+ Zl as MarketingBlock,
11742
+ nr as Member,
11743
+ du as MembersList,
11738
11744
  qa as Modal,
11739
11745
  cc as MoreMenu,
11740
11746
  $l as NUMBER_OF_USERS,
11741
11747
  dc as NavigationMenu,
11742
- bu as NotFoundError,
11748
+ yu as NotFoundError,
11743
11749
  an as Overlay,
11744
11750
  bi as PageHeading,
11745
11751
  yc as PageLayout,
11746
- Gl as PasswordForm,
11752
+ Ql as PasswordForm,
11747
11753
  Hi as PasswordRules,
11748
11754
  ht as Pill,
11749
- Kl as ProfileImageChange,
11755
+ Gl as ProfileImageChange,
11750
11756
  Ye as ProfilePicture,
11751
11757
  _a as ProgressBar,
11752
- Pl as ProgressTracker,
11753
- Vl as Rating,
11758
+ Ml as ProgressTracker,
11759
+ Yl as Rating,
11754
11760
  cl as RepliesFeed,
11755
- $c as ResponsesHeading,
11761
+ Nc as ResponsesHeading,
11756
11762
  Tt as ResponsiveImage,
11757
- Ml as ReturnToNavButton,
11763
+ Rl as ReturnToNavButton,
11758
11764
  Ki as SearchForm,
11759
- su as ShareLinks,
11760
- Ql as SignupForm,
11765
+ iu as ShareLinks,
11766
+ Jl as SignupForm,
11761
11767
  gi as Span,
11762
11768
  Wt as StatusBanner,
11763
- Al as TableOfContents,
11764
- iu as Tabs,
11765
- lu as Tags,
11766
- Ol as TestimonialBlock,
11767
- Xn as TimeToComplete,
11768
- Yl as Toggle,
11769
+ Dl as TableOfContents,
11770
+ ou as Tabs,
11771
+ uu as Tags,
11772
+ Al as TestimonialBlock,
11773
+ er as TimeToComplete,
11774
+ Kl as Toggle,
11769
11775
  _i as Tooltip,
11770
- cu as TopLevelPage,
11776
+ lu as TopLevelPage,
11771
11777
  De as UserContext,
11772
- Ni as UserProvider,
11778
+ $i as UserProvider,
11773
11779
  be as VisuallyHidden,
11774
11780
  Xo as addAriaProps,
11775
11781
  ma as basicReducer,
11776
11782
  Ws as camelCaseToDashCase,
11777
- Qn as checkIntlPathExists,
11783
+ Jn as checkIntlPathExists,
11778
11784
  yn as generateConditions,
11779
11785
  Hs as generateCssIcon,
11780
11786
  ga as getLongDate,
11781
11787
  ka as getMember,
11782
11788
  Vs as getShortDate,
11783
11789
  Qt as headerData,
11784
- vu as mapGetStreamData,
11790
+ bu as mapGetStreamData,
11785
11791
  ti as pageReady,
11786
- jr as passwordValidator,
11787
- hu as repliesFeedMock,
11792
+ kr as passwordValidator,
11793
+ gu as repliesFeedMock,
11788
11794
  gn as supportedLanguages,
11789
11795
  zs as toCamelCase,
11790
11796
  Zs as toSentenceCase,
11791
11797
  Ls as useCurrentPath,
11792
11798
  _t as useEffectAfterMount,
11793
11799
  jt as useElementWidth,
11800
+ Nl as useRemoveSignupCookie,
11794
11801
  qs as useScrollListener,
11795
11802
  Us as useScrollToHash,
11796
- er as useUser
11803
+ tr as useUser
11797
11804
  };