@apolitical/component-library 2.3.0-beta.0 → 2.3.0-beta.1

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
@@ -105,15 +105,15 @@ function Ri() {
105
105
  return at;
106
106
  yr = 1;
107
107
  var t = Y, e = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
108
- function o(c, f, l) {
109
- var d, u = {}, m = null, p = null;
110
- l !== void 0 && (m = "" + l), f.key !== void 0 && (m = "" + f.key), f.ref !== void 0 && (p = f.ref);
111
- for (d in f)
112
- r.call(f, d) && !s.hasOwnProperty(d) && (u[d] = f[d]);
108
+ function o(c, f, u) {
109
+ var l, d = {}, m = null, p = null;
110
+ u !== void 0 && (m = "" + u), f.key !== void 0 && (m = "" + f.key), f.ref !== void 0 && (p = f.ref);
111
+ for (l in f)
112
+ r.call(f, l) && !s.hasOwnProperty(l) && (d[l] = f[l]);
113
113
  if (c && c.defaultProps)
114
- for (d in f = c.defaultProps, f)
115
- u[d] === void 0 && (u[d] = f[d]);
116
- return { $$typeof: e, type: c, key: m, ref: p, props: u, _owner: i.current };
114
+ for (l in f = c.defaultProps, f)
115
+ d[l] === void 0 && (d[l] = f[l]);
116
+ return { $$typeof: e, type: c, key: m, ref: p, props: d, _owner: i.current };
117
117
  }
118
118
  return at.Fragment = n, at.jsx = o, at.jsxs = o, at;
119
119
  }
@@ -130,15 +130,15 @@ var it = {};
130
130
  var _r;
131
131
  function Fi() {
132
132
  return _r || (_r = 1, process.env.NODE_ENV !== "production" && function() {
133
- var t = Y, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), c = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), u = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), g = Symbol.iterator, b = "@@iterator";
133
+ var t = Y, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), c = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), g = Symbol.iterator, y = "@@iterator";
134
134
  function _(h) {
135
135
  if (h === null || typeof h != "object")
136
136
  return null;
137
- var P = g && h[g] || h[b];
137
+ var P = g && h[g] || h[y];
138
138
  return typeof P == "function" ? P : null;
139
139
  }
140
140
  var v = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
141
- function y(h) {
141
+ function b(h) {
142
142
  {
143
143
  for (var P = arguments.length, B = new Array(P > 1 ? P - 1 : 0), ne = 1; ne < P; ne++)
144
144
  B[ne - 1] = arguments[ne];
@@ -158,7 +158,7 @@ function Fi() {
158
158
  var T = !1, w = !1, D = !1, R = !1, W = !1, M;
159
159
  M = Symbol.for("react.module.reference");
160
160
  function O(h) {
161
- return !!(typeof h == "string" || typeof h == "function" || h === r || h === s || W || h === i || h === l || h === d || R || h === p || T || w || D || typeof h == "object" && h !== null && (h.$$typeof === m || h.$$typeof === u || h.$$typeof === o || h.$$typeof === c || h.$$typeof === f || // This needs to include all possible module reference object
161
+ return !!(typeof h == "string" || typeof h == "function" || h === r || h === s || W || h === i || h === u || h === l || R || h === p || T || w || D || typeof h == "object" && h !== null && (h.$$typeof === m || h.$$typeof === d || h.$$typeof === o || h.$$typeof === c || h.$$typeof === f || // 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
164
164
  // with.
@@ -177,7 +177,7 @@ function Fi() {
177
177
  function x(h) {
178
178
  if (h == null)
179
179
  return null;
180
- if (typeof h.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof h == "function")
180
+ if (typeof h.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof h == "function")
181
181
  return h.displayName || h.name || null;
182
182
  if (typeof h == "string")
183
183
  return h;
@@ -190,9 +190,9 @@ function Fi() {
190
190
  return "Profiler";
191
191
  case i:
192
192
  return "StrictMode";
193
- case l:
193
+ case u:
194
194
  return "Suspense";
195
- case d:
195
+ case l:
196
196
  return "SuspenseList";
197
197
  }
198
198
  if (typeof h == "object")
@@ -205,7 +205,7 @@ function Fi() {
205
205
  return E(B._context) + ".Provider";
206
206
  case f:
207
207
  return C(h, h.render, "ForwardRef");
208
- case u:
208
+ case d:
209
209
  var ne = h.displayName || null;
210
210
  return ne !== null ? ne : x(h.type) || "Memo";
211
211
  case m: {
@@ -278,7 +278,7 @@ function Fi() {
278
278
  })
279
279
  });
280
280
  }
281
- L < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
281
+ L < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
282
282
  }
283
283
  }
284
284
  var G = v.ReactCurrentDispatcher, V;
@@ -386,16 +386,16 @@ function Fi() {
386
386
  if (typeof h == "string")
387
387
  return X(h);
388
388
  switch (h) {
389
- case l:
389
+ case u:
390
390
  return X("Suspense");
391
- case d:
391
+ case l:
392
392
  return X("SuspenseList");
393
393
  }
394
394
  if (typeof h == "object")
395
395
  switch (h.$$typeof) {
396
396
  case f:
397
397
  return ve(h.render);
398
- case u:
398
+ case d:
399
399
  return Ee(h.type, P, B);
400
400
  case m: {
401
401
  var ne = h, le = ne._payload, me = ne._init;
@@ -430,7 +430,7 @@ function Fi() {
430
430
  } catch (he) {
431
431
  se = he;
432
432
  }
433
- se && !(se instanceof Error) && (wt(le), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", ne || "React class", B, ce, typeof se), wt(null)), se instanceof Error && !(se.message in sr) && (sr[se.message] = !0, wt(le), y("Failed %s type: %s", B, se.message), wt(null));
433
+ se && !(se instanceof Error) && (wt(le), b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", ne || "React class", B, ce, typeof se), wt(null)), se instanceof Error && !(se.message in sr) && (sr[se.message] = !0, wt(le), b("Failed %s type: %s", B, se.message), wt(null));
434
434
  }
435
435
  }
436
436
  }
@@ -456,7 +456,7 @@ function Fi() {
456
456
  }
457
457
  function lr(h) {
458
458
  if (ei(h))
459
- return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Xa(h)), cr(h);
459
+ return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Xa(h)), cr(h);
460
460
  }
461
461
  var rt = v.ReactCurrentOwner, ti = {
462
462
  key: !0,
@@ -484,13 +484,13 @@ function Fi() {
484
484
  function ai(h, P) {
485
485
  if (typeof h.ref == "string" && rt.current && P && rt.current.stateNode !== P) {
486
486
  var B = x(rt.current.type);
487
- sn[B] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', x(rt.current.type), h.ref), sn[B] = !0);
487
+ sn[B] || (b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', x(rt.current.type), h.ref), sn[B] = !0);
488
488
  }
489
489
  }
490
490
  function ii(h, P) {
491
491
  {
492
492
  var B = function() {
493
- ur || (ur = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", P));
493
+ ur || (ur = !0, b("%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)", P));
494
494
  };
495
495
  B.isReactWarning = !0, Object.defineProperty(h, "key", {
496
496
  get: B,
@@ -501,7 +501,7 @@ function Fi() {
501
501
  function si(h, P) {
502
502
  {
503
503
  var B = function() {
504
- dr || (dr = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", P));
504
+ dr || (dr = !0, b("%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)", P));
505
505
  };
506
506
  B.isReactWarning = !0, Object.defineProperty(h, "ref", {
507
507
  get: B,
@@ -615,7 +615,7 @@ Check the top-level render call using <` + B + ">.");
615
615
  return;
616
616
  pr[B] = !0;
617
617
  var ne = "";
618
- h && h._owner && h._owner !== on.current && (ne = " It was passed a child from " + x(h._owner.type) + "."), Ve(h), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', B, ne), Ve(null);
618
+ h && h._owner && h._owner !== on.current && (ne = " It was passed a child from " + x(h._owner.type) + "."), Ve(h), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', B, ne), Ve(null);
619
619
  }
620
620
  }
621
621
  function gr(h, P) {
@@ -647,7 +647,7 @@ Check the top-level render call using <` + B + ">.");
647
647
  B = P.propTypes;
648
648
  else if (typeof P == "object" && (P.$$typeof === f || // Note: Memo only checks outer props here.
649
649
  // Inner props are checked in the reconciler.
650
- P.$$typeof === u))
650
+ P.$$typeof === d))
651
651
  B = P.propTypes;
652
652
  else
653
653
  return;
@@ -657,9 +657,9 @@ Check the top-level render call using <` + B + ">.");
657
657
  } else if (P.PropTypes !== void 0 && !cn) {
658
658
  cn = !0;
659
659
  var le = x(P);
660
- y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", le || "Unknown");
660
+ b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", le || "Unknown");
661
661
  }
662
- typeof P.getDefaultProps == "function" && !P.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
662
+ typeof P.getDefaultProps == "function" && !P.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
663
663
  }
664
664
  }
665
665
  function fi(h) {
@@ -667,11 +667,11 @@ Check the top-level render call using <` + B + ">.");
667
667
  for (var P = Object.keys(h.props), B = 0; B < P.length; B++) {
668
668
  var ne = P[B];
669
669
  if (ne !== "children" && ne !== "key") {
670
- Ve(h), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", ne), Ve(null);
670
+ Ve(h), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", ne), Ve(null);
671
671
  break;
672
672
  }
673
673
  }
674
- h.ref !== null && (Ve(h), y("Invalid attribute `ref` supplied to `React.Fragment`."), Ve(null));
674
+ h.ref !== null && (Ve(h), b("Invalid attribute `ref` supplied to `React.Fragment`."), Ve(null));
675
675
  }
676
676
  }
677
677
  function vr(h, P, B, ne, le, me) {
@@ -683,7 +683,7 @@ Check the top-level render call using <` + B + ">.");
683
683
  var xe = li(le);
684
684
  xe ? se += xe : se += mr();
685
685
  var he;
686
- h === null ? he = "null" : an(h) ? he = "array" : h !== void 0 && h.$$typeof === e ? (he = "<" + (x(h.type) || "Unknown") + " />", se = " Did you accidentally export a JSX literal instead of a component?") : he = typeof h, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", he, se);
686
+ h === null ? he = "null" : an(h) ? he = "array" : h !== void 0 && h.$$typeof === e ? (he = "<" + (x(h.type) || "Unknown") + " />", se = " Did you accidentally export a JSX literal instead of a component?") : he = typeof h, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", he, se);
687
687
  }
688
688
  var ge = ci(h, P, B, le, me);
689
689
  if (ge == null)
@@ -697,7 +697,7 @@ Check the top-level render call using <` + B + ">.");
697
697
  gr(ke[Ye], h);
698
698
  Object.freeze && Object.freeze(ke);
699
699
  } else
700
- y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
700
+ b("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
702
  gr(ke, h);
703
703
  }
@@ -731,49 +731,49 @@ const Oi = () => {
731
731
  }, e);
732
732
  };
733
733
  function Ai(t, e, n) {
734
- var r = this, i = pe(null), s = pe(0), o = pe(null), c = pe([]), f = pe(), l = pe(), d = pe(t), u = pe(!0);
735
- d.current = t;
734
+ var r = this, i = pe(null), s = pe(0), o = pe(null), c = pe([]), f = pe(), u = pe(), l = pe(t), d = pe(!0);
735
+ l.current = t;
736
736
  var m = typeof window < "u", p = !e && e !== 0 && m;
737
737
  if (typeof t != "function")
738
738
  throw new TypeError("Expected a function");
739
739
  e = +e || 0;
740
- var g = !!(n = n || {}).leading, b = !("trailing" in n) || !!n.trailing, _ = "maxWait" in n, v = "debounceOnServer" in n && !!n.debounceOnServer, y = _ ? Math.max(+n.maxWait || 0, e) : null;
740
+ var g = !!(n = n || {}).leading, y = !("trailing" in n) || !!n.trailing, _ = "maxWait" in n, v = "debounceOnServer" in n && !!n.debounceOnServer, b = _ ? Math.max(+n.maxWait || 0, e) : null;
741
741
  ae(function() {
742
- return u.current = !0, function() {
743
- u.current = !1;
742
+ return d.current = !0, function() {
743
+ d.current = !1;
744
744
  };
745
745
  }, []);
746
746
  var j = bt(function() {
747
747
  var T = function(O) {
748
748
  var C = c.current, E = f.current;
749
- return c.current = f.current = null, s.current = O, l.current = d.current.apply(E, C);
749
+ return c.current = f.current = null, s.current = O, u.current = l.current.apply(E, C);
750
750
  }, w = function(O, C) {
751
751
  p && cancelAnimationFrame(o.current), o.current = p ? requestAnimationFrame(O) : setTimeout(O, C);
752
752
  }, D = function(O) {
753
- if (!u.current)
753
+ if (!d.current)
754
754
  return !1;
755
755
  var C = O - i.current;
756
- return !i.current || C >= e || C < 0 || _ && O - s.current >= y;
756
+ return !i.current || C >= e || C < 0 || _ && O - s.current >= b;
757
757
  }, R = function(O) {
758
- return o.current = null, b && c.current ? T(O) : (c.current = f.current = null, l.current);
758
+ return o.current = null, y && c.current ? T(O) : (c.current = f.current = null, u.current);
759
759
  }, W = function O() {
760
760
  var C = Date.now();
761
761
  if (D(C))
762
762
  return R(C);
763
- if (u.current) {
764
- var E = e - (C - i.current), x = _ ? Math.min(E, y - (C - s.current)) : E;
763
+ if (d.current) {
764
+ var E = e - (C - i.current), x = _ ? Math.min(E, b - (C - s.current)) : E;
765
765
  w(O, x);
766
766
  }
767
767
  }, M = function() {
768
768
  if (m || v) {
769
769
  var O = Date.now(), C = D(O);
770
770
  if (c.current = [].slice.call(arguments), f.current = r, i.current = O, C) {
771
- if (!o.current && u.current)
772
- return s.current = i.current, w(W, e), g ? T(i.current) : l.current;
771
+ if (!o.current && d.current)
772
+ return s.current = i.current, w(W, e), g ? T(i.current) : u.current;
773
773
  if (_)
774
774
  return w(W, e), T(i.current);
775
775
  }
776
- return o.current || w(W, e), l.current;
776
+ return o.current || w(W, e), u.current;
777
777
  }
778
778
  };
779
779
  return M.cancel = function() {
@@ -781,9 +781,9 @@ function Ai(t, e, n) {
781
781
  }, M.isPending = function() {
782
782
  return !!o.current;
783
783
  }, M.flush = function() {
784
- return o.current ? R(Date.now()) : l.current;
784
+ return o.current ? R(Date.now()) : u.current;
785
785
  }, M;
786
- }, [g, _, e, y, b, p, m, v]);
786
+ }, [g, _, e, b, y, p, m, v]);
787
787
  return j;
788
788
  }
789
789
  function la(t, e, n) {
@@ -796,18 +796,18 @@ const yt = (t = !0, e = !1, n = "window") => {
796
796
  return;
797
797
  const [r, i] = Y.useState(0) || [!1, () => {
798
798
  }];
799
- ae(() => (c(), window.addEventListener("resize", l), window.addEventListener("hiddenSectionVisible", f), () => {
800
- clearTimeout(un), l.flush(), window.removeEventListener("resize", l), window.removeEventListener("hiddenSectionVisible", f);
799
+ ae(() => (c(), window.addEventListener("resize", u), window.addEventListener("hiddenSectionVisible", f), () => {
800
+ clearTimeout(un), u.flush(), window.removeEventListener("resize", u), window.removeEventListener("hiddenSectionVisible", f);
801
801
  }), n === "window" ? [] : [n]);
802
802
  const o = () => {
803
803
  if (n)
804
804
  return n === "window" ? window.innerWidth : n.offsetWidth;
805
805
  }, c = () => {
806
806
  i(o());
807
- }, f = ({ detail: d }) => {
808
- const { id: u } = d;
809
- n === "window" || !n.closest(`#${u}`) || o() === r || c();
810
- }, l = la(
807
+ }, f = ({ detail: l }) => {
808
+ const { id: d } = l;
809
+ n === "window" || !n.closest(`#${d}`) || o() === r || c();
810
+ }, u = la(
811
811
  () => {
812
812
  o() !== r && (e && (clearTimeout(un), document.body.classList.add("is-resizing"), un = setTimeout(() => {
813
813
  document.body.classList.remove("is-resizing");
@@ -837,17 +837,17 @@ const yt = (t = !0, e = !1, n = "window") => {
837
837
  scrollUp: !1
838
838
  }) || [!1, () => {
839
839
  }];
840
- ae(() => (f(), window.addEventListener("scroll", l), () => {
841
- l.flush(), window.removeEventListener("scroll", l);
840
+ ae(() => (f(), window.addEventListener("scroll", u), () => {
841
+ u.flush(), window.removeEventListener("scroll", u);
842
842
  }), []);
843
843
  const f = () => {
844
- const d = window.scrollY, u = i.current, m = d - u, p = m > 0 ? "down" : "up";
845
- if (s({ current: d, past: u }), p === "down") {
846
- d >= t + e.down && !o.scrollDown && (!o.scrollUp || m > e.up) && (n(), c({ scrollUp: !1, scrollDown: !0 }));
844
+ const l = window.scrollY, d = i.current, m = l - d, p = m > 0 ? "down" : "up";
845
+ if (s({ current: l, past: d }), p === "down") {
846
+ l >= t + e.down && !o.scrollDown && (!o.scrollUp || m > e.up) && (n(), c({ scrollUp: !1, scrollDown: !0 }));
847
847
  return;
848
848
  }
849
849
  Math.abs(m) >= e.up && !o.scrollUp && (r(), c({ scrollUp: !0, scrollDown: !1 }));
850
- }, l = la(() => {
850
+ }, u = la(() => {
851
851
  f();
852
852
  }, 250);
853
853
  return i;
@@ -1418,9 +1418,9 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1418
1418
  onClick: o = !1,
1419
1419
  className: c = "",
1420
1420
  disabled: f = !1,
1421
- screenreaderText: l = !1,
1422
- children: d = !1,
1423
- ...u
1421
+ screenreaderText: u = !1,
1422
+ children: l = !1,
1423
+ ...d
1424
1424
  }) => {
1425
1425
  const p = yt(typeof e == "object");
1426
1426
  if (typeof e == "object" && typeof p == "number") {
@@ -1429,10 +1429,10 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1429
1429
  }
1430
1430
  const g = [];
1431
1431
  typeof e == "string" && g.push(e), r && (g.push("icon"), typeof r == "object" ? (g.push(r.icon), r.position ? g.push(r.position) : g.push("left"), r.hover && g.push(`hover_${r.hover}`), r.animate && (g.push("animate"), typeof r.animate == "string" && g.push(r.animate))) : (g.push(r), !r.includes("right") && !r.includes("left") && g.push("left"))), n.muted && g.push("muted"), n.fullWidth && g.push("full-width");
1432
- const b = {
1433
- ...u,
1432
+ const y = {
1433
+ ...d,
1434
1434
  className: S(t, c, g, {
1435
- "no-text": !d,
1435
+ "no-text": !l,
1436
1436
  disabled: f,
1437
1437
  button: i
1438
1438
  }),
@@ -1441,10 +1441,10 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1441
1441
  },
1442
1442
  disabled: typeof f == "object" && "isClickable" in f ? !f.isClickable : f
1443
1443
  };
1444
- return i && (s = "a", b.href = i), Y.createElement(
1444
+ return i && (s = "a", y.href = i), Y.createElement(
1445
1445
  s,
1446
- b,
1447
- d || (l ? /* @__PURE__ */ a.jsx(be, { showOnFocus: !1, children: l }) : null)
1446
+ y,
1447
+ l || (u ? /* @__PURE__ */ a.jsx(be, { showOnFocus: !1, children: u }) : null)
1448
1448
  );
1449
1449
  }, _t = ({ buttons: t, className: e = "", ...n }) => {
1450
1450
  const r = t.length > 1 ? "ul" : "p", i = t.map((s, o) => r === "p" ? /* @__PURE__ */ a.jsx(ie, { ...s }, o) : /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(ie, { ...s }) }, o));
@@ -1584,10 +1584,10 @@ const xt = ({ image: t, className: e, testId: n }) => {
1584
1584
  query: o,
1585
1585
  url: c,
1586
1586
  width: f,
1587
- loading: l,
1588
- decoding: d,
1589
- fetchPriority: u
1590
- } = t, { range: m, sizes: p } = Xi(t), g = dn({ format: "avif", query: o, range: m, url: c }), b = dn({ format: "webp", query: o, range: m, url: c }), _ = dn({ format: "", query: o, range: m, url: c });
1587
+ loading: u,
1588
+ decoding: l,
1589
+ fetchPriority: d
1590
+ } = t, { range: m, sizes: p } = Xi(t), g = dn({ format: "avif", query: o, range: m, url: c }), y = dn({ format: "webp", query: o, range: m, url: c }), _ = dn({ format: "", query: o, range: m, url: c });
1591
1591
  return /* @__PURE__ */ a.jsxs("picture", { className: e, children: [
1592
1592
  s !== "image/gif" && /* @__PURE__ */ a.jsx(
1593
1593
  "source",
@@ -1598,7 +1598,7 @@ const xt = ({ image: t, className: e, testId: n }) => {
1598
1598
  "data-testid": "source"
1599
1599
  }
1600
1600
  ),
1601
- /* @__PURE__ */ a.jsx("source", { type: "image/webp", srcSet: b, sizes: p, "data-testid": "source" }),
1601
+ /* @__PURE__ */ a.jsx("source", { type: "image/webp", srcSet: y, sizes: p, "data-testid": "source" }),
1602
1602
  /* @__PURE__ */ a.jsx(
1603
1603
  "img",
1604
1604
  {
@@ -1606,9 +1606,9 @@ const xt = ({ image: t, className: e, testId: n }) => {
1606
1606
  sizes: p,
1607
1607
  src: c,
1608
1608
  alt: r,
1609
- loading: l || "lazy",
1610
- decoding: d || "async",
1611
- fetchpriority: u || "auto",
1609
+ loading: u || "lazy",
1610
+ decoding: l || "async",
1611
+ fetchpriority: d || "auto",
1612
1612
  width: f,
1613
1613
  height: i,
1614
1614
  "data-testid": n || "image"
@@ -1796,14 +1796,14 @@ const nt = ({
1796
1796
  let i = n && !!Object.keys(n).length;
1797
1797
  const s = typeof n == "object" && "breakpoints" in n, o = yt(s);
1798
1798
  if (s && typeof n == "object" && typeof o == "number") {
1799
- const u = Object.assign({}, n.breakpoints), m = da(Object.keys(u));
1800
- i = fa(o, m, u);
1799
+ const d = Object.assign({}, n.breakpoints), m = da(Object.keys(d));
1800
+ i = fa(o, m, d);
1801
1801
  }
1802
1802
  const {
1803
1803
  breakpoints: c,
1804
1804
  text: f = "",
1805
- component: l,
1806
- ...d
1805
+ component: u,
1806
+ ...l
1807
1807
  } = n;
1808
1808
  return /* @__PURE__ */ a.jsx(
1809
1809
  Fe,
@@ -1812,10 +1812,10 @@ const nt = ({
1812
1812
  className: S("empty-state-box", t, r),
1813
1813
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1814
1814
  e && typeof e == "string" ? /* @__PURE__ */ a.jsx(Re, { options: { forceBlock: !0 }, children: e }) : e,
1815
- i && typeof n == "object" && (l || /* @__PURE__ */ a.jsx(
1815
+ i && typeof n == "object" && (u || /* @__PURE__ */ a.jsx(
1816
1816
  ie,
1817
1817
  {
1818
- ...d,
1818
+ ...l,
1819
1819
  variant: n.variant ? n.variant : "secondary",
1820
1820
  children: f
1821
1821
  }
@@ -1853,12 +1853,12 @@ const Sl = ({
1853
1853
  text: r,
1854
1854
  children: i
1855
1855
  }) => {
1856
- const s = K(), o = pe(null), [c, f] = te(""), [l, d] = te("closed");
1856
+ const s = K(), o = pe(null), [c, f] = te(""), [u, l] = te("closed");
1857
1857
  ae(() => {
1858
1858
  const p = o.current;
1859
1859
  if (p)
1860
- return p.addEventListener("transitionend", u), () => {
1861
- p.removeEventListener("transitionend", u);
1860
+ return p.addEventListener("transitionend", d), () => {
1861
+ p.removeEventListener("transitionend", d);
1862
1862
  };
1863
1863
  }, []), ae(() => {
1864
1864
  if (!r || typeof r != "string")
@@ -1870,23 +1870,23 @@ const Sl = ({
1870
1870
  `)
1871
1871
  );
1872
1872
  }, [r]), ae(() => {
1873
- l === "ready-to-close" && d("closing");
1874
- }, [l]);
1875
- const u = ({ propertyName: p }) => {
1876
- p === "max-height" && d((g) => g === "opening" ? "open" : g === "closing" ? "closed" : g);
1873
+ u === "ready-to-close" && l("closing");
1874
+ }, [u]);
1875
+ const d = ({ propertyName: p }) => {
1876
+ p === "max-height" && l((g) => g === "opening" ? "open" : g === "closing" ? "closed" : g);
1877
1877
  };
1878
1878
  if (!r)
1879
1879
  return null;
1880
- const m = ["opening", "open"].includes(l);
1880
+ const m = ["opening", "open"].includes(u);
1881
1881
  return /* @__PURE__ */ a.jsxs(
1882
1882
  Fe,
1883
1883
  {
1884
1884
  variant: "subtle",
1885
1885
  className: S("hide-show-text-box", t),
1886
1886
  children: [
1887
- /* @__PURE__ */ a.jsxs("div", { ref: o, className: S("content", l), children: [
1888
- /* @__PURE__ */ a.jsx(Re, { options: { forceBlock: !0 }, children: l === "closed" ? c : r }),
1889
- l !== "closed" && i
1887
+ /* @__PURE__ */ a.jsxs("div", { ref: o, className: S("content", u), children: [
1888
+ /* @__PURE__ */ a.jsx(Re, { options: { forceBlock: !0 }, children: u === "closed" ? c : r }),
1889
+ u !== "closed" && i
1890
1890
  ] }),
1891
1891
  /* @__PURE__ */ a.jsx("p", { className: "cta", children: /* @__PURE__ */ a.jsx(
1892
1892
  ie,
@@ -1896,7 +1896,7 @@ const Sl = ({
1896
1896
  styling: { muted: !0 },
1897
1897
  className: S({ "rotate-180": m }),
1898
1898
  onClick: () => {
1899
- d(m ? "ready-to-close" : "opening");
1899
+ l(m ? "ready-to-close" : "opening");
1900
1900
  },
1901
1901
  children: m ? n || s.formatMessage({ id: "hideShowTextBox_hide" }) : e || s.formatMessage({ id: "hideShowTextBox_show" })
1902
1902
  }
@@ -1920,14 +1920,14 @@ const Cl = ({
1920
1920
  "has-zebra-stripes": c,
1921
1921
  [e]: t !== "dl"
1922
1922
  }),
1923
- children: r.map((f, l) => {
1924
- const d = { wrapper: Y.Fragment, forceInline: !0 }, u = {
1923
+ children: r.map((f, u) => {
1924
+ const l = { wrapper: Y.Fragment, forceInline: !0 }, d = {
1925
1925
  "--icon": `url(${ze}icons/${f.icon}.svg)`
1926
1926
  };
1927
1927
  return t === "dl" ? /* @__PURE__ */ a.jsxs(Y.Fragment, { children: [
1928
- /* @__PURE__ */ a.jsx("dt", { style: u, children: /* @__PURE__ */ a.jsx(Re, { options: d, children: f.dt || "" }) }, `dt-${l}`),
1929
- /* @__PURE__ */ a.jsx("dd", { children: /* @__PURE__ */ a.jsx(Re, { options: d, children: f.text }) }, `dd-${l}`)
1930
- ] }, `dl-${l}`) : /* @__PURE__ */ a.jsx("li", { style: u, children: /* @__PURE__ */ a.jsx(Re, { options: d, children: f.text }) }, l);
1928
+ /* @__PURE__ */ a.jsx("dt", { style: d, children: /* @__PURE__ */ a.jsx(Re, { options: l, children: f.dt || "" }) }, `dt-${u}`),
1929
+ /* @__PURE__ */ a.jsx("dd", { children: /* @__PURE__ */ a.jsx(Re, { options: l, children: f.text }) }, `dd-${u}`)
1930
+ ] }, `dl-${u}`) : /* @__PURE__ */ a.jsx("li", { style: d, children: /* @__PURE__ */ a.jsx(Re, { options: l, children: f.text }) }, u);
1931
1931
  })
1932
1932
  });
1933
1933
  }, ye = () => Y.Fragment, is = ({ children: t }) => /* @__PURE__ */ a.jsx(Fe, { variant: "secondary", children: t }), ss = ["span", "strong", "h1", "h2", "h3", "h4", "h5", "h6", "p"], os = ({ children: t }) => {
@@ -2133,14 +2133,14 @@ const Nl = ({
2133
2133
  if (t.length)
2134
2134
  return;
2135
2135
  let o = "";
2136
- Array(6).fill(0).forEach((l, d) => {
2137
- o += `${d > 0 ? ", " : ""}${e} h${d + 1}`;
2136
+ Array(6).fill(0).forEach((u, l) => {
2137
+ o += `${l > 0 ? ", " : ""}${e} h${l + 1}`;
2138
2138
  });
2139
2139
  const f = Array.from(document.querySelectorAll(o)).filter(
2140
- (l) => l.id
2141
- ).map((l) => ({
2142
- id: l.id,
2143
- text: l.textContent || ""
2140
+ (u) => u.id
2141
+ ).map((u) => ({
2142
+ id: u.id,
2143
+ text: u.textContent || ""
2144
2144
  }));
2145
2145
  s(f);
2146
2146
  }, []), i && i.length > 0 && /* @__PURE__ */ a.jsxs(
@@ -2159,15 +2159,15 @@ const Gn = ({ time: t, prependedText: e, appendedText: n, className: r = "" }) =
2159
2159
  const i = K(), s = "timeToComplete_";
2160
2160
  if (!t || typeof t != "number")
2161
2161
  return null;
2162
- const o = t / 60, c = Math.floor(o), f = (o - c) * 60, l = Math.round(f);
2163
- let d = `${i.formatMessage(
2162
+ const o = t / 60, c = Math.floor(o), f = (o - c) * 60, u = Math.round(f);
2163
+ let l = `${i.formatMessage(
2164
2164
  { id: `${s}hours` },
2165
2165
  { time: c }
2166
- )}${c > 0 && l > 0 ? ", " : ""}${i.formatMessage(
2166
+ )}${c > 0 && u > 0 ? ", " : ""}${i.formatMessage(
2167
2167
  { id: `${s}minutes` },
2168
- { time: l }
2169
- )}`, u = `${c > 0 ? `${i.formatMessage({ id: `${s}hours_short` }, { time: c })} ` : ""}${l > 0 ? i.formatMessage({ id: `${s}minutes_short` }, { time: l }) : ""}`;
2170
- return e && (d = `${e} ${d}`, u = `${e} ${u}`), n && (d = `${d} ${n}`, u = `${u} ${n}`), /* @__PURE__ */ a.jsx("span", { className: S("time-to-complete", r), "aria-label": d, children: u });
2168
+ { time: u }
2169
+ )}`, d = `${c > 0 ? `${i.formatMessage({ id: `${s}hours_short` }, { time: c })} ` : ""}${u > 0 ? i.formatMessage({ id: `${s}minutes_short` }, { time: u }) : ""}`;
2170
+ return e && (l = `${e} ${l}`, d = `${e} ${d}`), n && (l = `${l} ${n}`, d = `${d} ${n}`), /* @__PURE__ */ a.jsx("span", { className: S("time-to-complete", r), "aria-label": l, children: d });
2171
2171
  };
2172
2172
  let st = !1;
2173
2173
  const hs = ({ isOpen: t = !1, isLoading: e = !1, children: n }) => {
@@ -2180,7 +2180,7 @@ const hs = ({ isOpen: t = !1, isLoading: e = !1, children: n }) => {
2180
2180
  };
2181
2181
  }, []);
2182
2182
  const c = ({ propertyName: f }) => {
2183
- f === "opacity" && (st !== !1 && clearTimeout(st), o((l) => l === "opening" ? "open" : l === "closing" ? "closed" : l === "closed" ? "hidden" : l));
2183
+ f === "opacity" && (st !== !1 && clearTimeout(st), o((u) => u === "opening" ? "open" : u === "closing" ? "closed" : u === "closed" ? "hidden" : u));
2184
2184
  };
2185
2185
  return vt(() => {
2186
2186
  st !== !1 && clearTimeout(st);
@@ -2274,7 +2274,7 @@ const gs = ({ icon: t, description: e, ctaMessage: n, href: r, showEditButton: i
2274
2274
  placeholder: o,
2275
2275
  showDivider: c = !0
2276
2276
  }) => {
2277
- const [f, l] = Y.useState(!1), d = typeof r == "string" || !!n, u = () => l(!1);
2277
+ const [f, u] = Y.useState(!1), l = typeof r == "string" || !!n, d = () => u(!1);
2278
2278
  return /* @__PURE__ */ a.jsxs("section", { className: S("edit-section", e), children: [
2279
2279
  n && /* @__PURE__ */ a.jsx(
2280
2280
  en,
@@ -2283,7 +2283,7 @@ const gs = ({ icon: t, description: e, ctaMessage: n, href: r, showEditButton: i
2283
2283
  isOpen: f,
2284
2284
  showDivider: !1,
2285
2285
  showIcon: !1,
2286
- functions: { onClose: u },
2286
+ functions: { onClose: d },
2287
2287
  className: S("edit-section-modal"),
2288
2288
  children: /* @__PURE__ */ a.jsx(Xn, { ...n, fields: n.fields, meta: {
2289
2289
  ...n == null ? void 0 : n.meta,
@@ -2294,17 +2294,17 @@ const gs = ({ icon: t, description: e, ctaMessage: n, href: r, showEditButton: i
2294
2294
  ...n == null ? void 0 : n.functions,
2295
2295
  onSuccess: async (m) => {
2296
2296
  var p, g;
2297
- (p = n == null ? void 0 : n.functions) != null && p.onSuccess && await ((g = n == null ? void 0 : n.functions) == null ? void 0 : g.onSuccess(m)), l(!1);
2297
+ (p = n == null ? void 0 : n.functions) != null && p.onSuccess && await ((g = n == null ? void 0 : n.functions) == null ? void 0 : g.onSuccess(m)), u(!1);
2298
2298
  },
2299
- onCancel: u
2299
+ onCancel: d
2300
2300
  } })
2301
2301
  }
2302
2302
  ),
2303
2303
  /* @__PURE__ */ a.jsxs("div", { className: "edit-section-header", children: [
2304
2304
  /* @__PURE__ */ a.jsx("h2", { className: "edit-section-header-title", children: i }),
2305
- d && /* @__PURE__ */ a.jsx(ie, { href: r, variant: "tertiary", size: "small", icon: "pencil", onClick: () => ha({ href: r, setShowModal: l }), children: "Edit" })
2305
+ l && /* @__PURE__ */ a.jsx(ie, { href: r, variant: "tertiary", size: "small", icon: "pencil", onClick: () => ha({ href: r, setShowModal: u }), children: "Edit" })
2306
2306
  ] }),
2307
- t || /* @__PURE__ */ a.jsx(gs, { ...o, href: r, setShowModal: l, showEditButton: d }),
2307
+ t || /* @__PURE__ */ a.jsx(gs, { ...o, href: r, setShowModal: u, showEditButton: l }),
2308
2308
  c && /* @__PURE__ */ a.jsx(Oe, {})
2309
2309
  ] });
2310
2310
  };
@@ -2342,22 +2342,22 @@ const Fl = ({
2342
2342
  "two-col": i === 2 || i === 4,
2343
2343
  "three-col": i === 5 || i <= 10 && i % 3 === 0
2344
2344
  }),
2345
- children: e.map(({ logo: l, nameOfBusiness: d, link: u = !1, description: m = !1 }, p) => {
2346
- if (!l || !l.url)
2345
+ children: e.map(({ logo: u, nameOfBusiness: l, link: d = !1, description: m = !1 }, p) => {
2346
+ if (!u || !u.url)
2347
2347
  return null;
2348
2348
  const g = /* @__PURE__ */ a.jsx(
2349
2349
  "img",
2350
2350
  {
2351
- src: l.url,
2352
- width: l.width || "auto",
2353
- height: l.height || "auto",
2354
- alt: d
2351
+ src: u.url,
2352
+ width: u.width || "auto",
2353
+ height: u.height || "auto",
2354
+ alt: l
2355
2355
  }
2356
2356
  );
2357
2357
  return /* @__PURE__ */ a.jsxs("li", { children: [
2358
- /* @__PURE__ */ a.jsx("p", { className: "img-wrapper", children: u ? /* @__PURE__ */ a.jsx("a", { href: u, target: "_blank", rel: "nofollow noreferrer noopener", children: g }) : g }),
2358
+ /* @__PURE__ */ a.jsx("p", { className: "img-wrapper", children: d ? /* @__PURE__ */ a.jsx("a", { href: d, target: "_blank", rel: "nofollow noreferrer noopener", children: g }) : g }),
2359
2359
  m && /* @__PURE__ */ a.jsx("small", { children: m })
2360
- ] }, window.btoa(`${l.url}_${p}`));
2360
+ ] }, window.btoa(`${u.url}_${p}`));
2361
2361
  })
2362
2362
  }
2363
2363
  )
@@ -2393,31 +2393,31 @@ const vs = [
2393
2393
  cta: o,
2394
2394
  children: c
2395
2395
  }) => {
2396
- const f = ["eyebrow", "title", "text"], l = { eyebrow: "small", title: "h1", text: "p" }, d = {};
2397
- return f.forEach((u) => {
2398
- if (!e[u]) {
2399
- d[u] = !1;
2396
+ const f = ["eyebrow", "title", "text"], u = { eyebrow: "small", title: "h1", text: "p" }, l = {};
2397
+ return f.forEach((d) => {
2398
+ if (!e[d]) {
2399
+ l[d] = !1;
2400
2400
  return;
2401
2401
  }
2402
- if (!s[u]) {
2403
- if (typeof e[u] == "object") {
2404
- d[u] = e[u];
2405
- const { text: m, element: p } = e[u];
2402
+ if (!s[d]) {
2403
+ if (typeof e[d] == "object") {
2404
+ l[d] = e[d];
2405
+ const { text: m, element: p } = e[d];
2406
2406
  if (p && vs.includes(p.toLowerCase()))
2407
2407
  return;
2408
- d[u] = {
2408
+ l[d] = {
2409
2409
  text: m,
2410
- element: l[u]
2410
+ element: u[d]
2411
2411
  };
2412
2412
  return;
2413
2413
  }
2414
- d[u] = {
2415
- text: e[u],
2416
- element: l[u]
2414
+ l[d] = {
2415
+ text: e[d],
2416
+ element: u[d]
2417
2417
  };
2418
2418
  }
2419
- }), o && o.link && o.link[0] === "#" && (o.props || (o.props = {}), o.props.onClick = (u) => {
2420
- u.preventDefault(), u.stopPropagation();
2419
+ }), o && o.link && o.link[0] === "#" && (o.props || (o.props = {}), o.props.onClick = (d) => {
2420
+ d.preventDefault(), d.stopPropagation();
2421
2421
  const m = document.getElementById(o.link.substring(1));
2422
2422
  m && m.scrollIntoView({ behavior: "smooth" });
2423
2423
  }), /* @__PURE__ */ a.jsx(
@@ -2425,14 +2425,14 @@ const vs = [
2425
2425
  {
2426
2426
  className: S("banner-section", r, i, t, {
2427
2427
  "has-image": n,
2428
- "has-extra-spacing": i === "normal" && d.eyebrow && d.title
2428
+ "has-extra-spacing": i === "normal" && l.eyebrow && l.title
2429
2429
  }),
2430
2430
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2431
2431
  /* @__PURE__ */ a.jsxs("div", { className: "content-wrapper", children: [
2432
- f.map((u) => {
2433
- if (d[u] && typeof d[u] == "object") {
2434
- const { text: m, element: p = "" } = d[u];
2435
- return u === "text" ? /* @__PURE__ */ a.jsx(Lt, { overrideType: "text-only", className: "text", children: m }, u) : Y.createElement(p, { key: u, className: u }, m);
2432
+ f.map((d) => {
2433
+ if (l[d] && typeof l[d] == "object") {
2434
+ const { text: m, element: p = "" } = l[d];
2435
+ return d === "text" ? /* @__PURE__ */ a.jsx(Lt, { overrideType: "text-only", className: "text", children: m }, d) : Y.createElement(p, { key: d, className: d }, m);
2436
2436
  }
2437
2437
  return null;
2438
2438
  }),
@@ -2600,15 +2600,15 @@ const Es = ({
2600
2600
  layout: o = "bar",
2601
2601
  size: c = "default",
2602
2602
  color: f = "default"
2603
- } = t, l = e > 75 ? 100 : e > 50 ? 75 : e > 25 ? 50 : e > 5 ? 25 : 0, d = { "--progress": `${e}%` };
2603
+ } = t, u = e > 75 ? 100 : e > 50 ? 75 : e > 25 ? 50 : e > 5 ? 25 : 0, l = { "--progress": `${e}%` };
2604
2604
  return /* @__PURE__ */ a.jsx(
2605
2605
  "span",
2606
2606
  {
2607
- className: S(`progress-bar section-${l}`, o, r, {
2607
+ className: S(`progress-bar section-${u}`, o, r, {
2608
2608
  [c]: c !== "default",
2609
2609
  [f !== "default" ? f : ""]: f !== "default"
2610
2610
  }),
2611
- style: d,
2611
+ style: l,
2612
2612
  children: Y.createElement(s ? "span" : be, {
2613
2613
  className: s ? "text" : "",
2614
2614
  children: n || i.formatMessage({ id: "progressBar" }, { number: e })
@@ -2720,24 +2720,24 @@ const Sr = 256, He = ({
2720
2720
  height: s = Sr,
2721
2721
  ...o
2722
2722
  }) => {
2723
- const [c, f] = te(!1), l = pe(null);
2723
+ const [c, f] = te(!1), u = pe(null);
2724
2724
  ae(() => {
2725
- const u = l.current;
2726
- if (!u)
2725
+ const d = u.current;
2726
+ if (!d)
2727
2727
  return;
2728
- const m = u.getContext("2d");
2728
+ const m = d.getContext("2d");
2729
2729
  if (!m)
2730
2730
  return;
2731
2731
  const p = i, g = s;
2732
- typeof window < "u" && window.devicePixelRatio && (u.width = p * window.devicePixelRatio, u.height = g * window.devicePixelRatio, m.scale(window.devicePixelRatio, window.devicePixelRatio)), m.fillStyle = Cs(n), m.fillRect(0, 0, p, g), m.font = `${p / 3}px Arial`, m.textAlign = "center", m.fillStyle = "white", m.fillText(ya(n), p / 2, g / 1.6);
2732
+ typeof window < "u" && window.devicePixelRatio && (d.width = p * window.devicePixelRatio, d.height = g * window.devicePixelRatio, m.scale(window.devicePixelRatio, window.devicePixelRatio)), m.fillStyle = Cs(n), m.fillRect(0, 0, p, g), m.font = `${p / 3}px Arial`, m.textAlign = "center", m.fillStyle = "white", m.fillText(ya(n), p / 2, g / 1.6);
2733
2733
  }, [n]);
2734
- let d = !1;
2735
- return e && e !== "" && !c && (e.includes("http") || e.includes("//")) && (d = !0), /* @__PURE__ */ a.jsx(
2734
+ let l = !1;
2735
+ return e && e !== "" && !c && (e.includes("http") || e.includes("//")) && (l = !0), /* @__PURE__ */ a.jsx(
2736
2736
  "figure",
2737
2737
  {
2738
2738
  className: S("profile-picture", t, { error: c }),
2739
2739
  ...o,
2740
- children: d ? /* @__PURE__ */ a.jsx(
2740
+ children: l ? /* @__PURE__ */ a.jsx(
2741
2741
  "img",
2742
2742
  {
2743
2743
  src: e,
@@ -2748,7 +2748,7 @@ const Sr = 256, He = ({
2748
2748
  width: i,
2749
2749
  height: s
2750
2750
  }
2751
- ) : /* @__PURE__ */ a.jsx("canvas", { ref: l })
2751
+ ) : /* @__PURE__ */ a.jsx("canvas", { ref: u })
2752
2752
  }
2753
2753
  );
2754
2754
  }, _a = (t) => t === "apolitical" ? {
@@ -2787,20 +2787,20 @@ const Jn = ({
2787
2787
  c.name || (c.name = o.formatMessage({
2788
2788
  id: `member_${typeof e == "string" ? e : "community"}`
2789
2789
  }));
2790
- const { name: f, url: l, image: d } = c, u = $s(c), m = n && n.createdAt ? Dn(n.createdAt) : !1, p = n && n.createdAt ? ma(n.createdAt) : "";
2790
+ const { name: f, url: u, image: l } = c, d = $s(c), m = n && n.createdAt ? Dn(n.createdAt) : !1, p = n && n.createdAt ? ma(n.createdAt) : "";
2791
2791
  return Y.createElement(t, {
2792
2792
  className: S("member text-medium", s),
2793
2793
  children: /* @__PURE__ */ a.jsxs(
2794
2794
  tt,
2795
2795
  {
2796
- href: l,
2796
+ href: u,
2797
2797
  gtmType: i,
2798
2798
  gtmContext: r,
2799
2799
  onClick: (g) => {
2800
2800
  g == null || g.stopPropagation();
2801
2801
  },
2802
2802
  children: [
2803
- /* @__PURE__ */ a.jsx(He, { name: f, src: d }),
2803
+ /* @__PURE__ */ a.jsx(He, { name: f, src: l }),
2804
2804
  /* @__PURE__ */ a.jsxs("p", { className: "details", children: [
2805
2805
  /* @__PURE__ */ a.jsx("strong", { children: f }),
2806
2806
  n && /* @__PURE__ */ a.jsxs("span", { className: "additional-content", children: [
@@ -2810,7 +2810,7 @@ const Jn = ({
2810
2810
  ) }),
2811
2811
  n.didEdit && /* @__PURE__ */ a.jsx("em", { children: o.formatMessage({ id: "discussion_edited" }) })
2812
2812
  ] }),
2813
- u && /* @__PURE__ */ a.jsx("small", { children: u })
2813
+ d && /* @__PURE__ */ a.jsx("small", { children: d })
2814
2814
  ] })
2815
2815
  ]
2816
2816
  }
@@ -2831,44 +2831,44 @@ const Cr = {
2831
2831
  },
2832
2832
  cutoff: c = 2,
2833
2833
  className: f = "",
2834
- ...l
2834
+ ...u
2835
2835
  }) => {
2836
- const d = K();
2836
+ const l = K();
2837
2837
  return !n || n.length === 0 ? null : Y.createElement(t, {
2838
- ...l,
2838
+ ...u,
2839
2839
  className: S("contributors", f, i, { "has-gap": s }),
2840
2840
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2841
- /* @__PURE__ */ a.jsx("ul", { children: n.map((u, m) => {
2841
+ /* @__PURE__ */ a.jsx("ul", { children: n.map((d, m) => {
2842
2842
  let p, g = "";
2843
2843
  if (m < c) {
2844
- const { name: b = "", image: _ = "" } = _a(u);
2844
+ const { name: y = "", image: _ = "" } = _a(d);
2845
2845
  if (o)
2846
2846
  return /* @__PURE__ */ a.jsx(Te, { element: "li", className: "contributor" }, m);
2847
2847
  p = /* @__PURE__ */ a.jsx(
2848
2848
  He,
2849
2849
  {
2850
- name: b,
2850
+ name: y,
2851
2851
  src: _,
2852
2852
  width: Cr[i || "medium"],
2853
2853
  height: Cr[i || "medium"]
2854
2854
  }
2855
2855
  );
2856
2856
  } else if (m === c) {
2857
- const b = (e || n.length) - c;
2857
+ const y = (e || n.length) - c;
2858
2858
  p = /* @__PURE__ */ a.jsxs(
2859
2859
  "small",
2860
2860
  {
2861
- className: S({ "large-number": b > 99 }),
2861
+ className: S({ "large-number": y > 99 }),
2862
2862
  children: [
2863
2863
  "+",
2864
- Gi(b, 0)
2864
+ Gi(y, 0)
2865
2865
  ]
2866
2866
  }
2867
2867
  ), g = "number-left";
2868
2868
  }
2869
2869
  return p ? /* @__PURE__ */ a.jsx("li", { className: S("contributor", g), children: p }, m) : null;
2870
2870
  }) }),
2871
- r && /* @__PURE__ */ a.jsx("span", { className: "label", children: typeof r == "string" ? r : n.length === 1 ? typeof n[0] == "string" ? d.formatMessage({ id: `member_${n[0]}` }) : Je(n[0].name || "", 20) : null })
2871
+ r && /* @__PURE__ */ a.jsx("span", { className: "label", children: typeof r == "string" ? r : n.length === 1 ? typeof n[0] == "string" ? l.formatMessage({ id: `member_${n[0]}` }) : Je(n[0].name || "", 20) : null })
2872
2872
  ] })
2873
2873
  });
2874
2874
  };
@@ -2884,10 +2884,10 @@ const Tt = "emailHelperTextBox_", Ns = ({
2884
2884
  link: {},
2885
2885
  mail: {},
2886
2886
  error: ""
2887
- }), [c, f] = te(!1), l = na(
2887
+ }), [c, f] = te(!1), u = na(
2888
2888
  (p) => {
2889
2889
  p.preventDefault(), p.stopPropagation();
2890
- const g = (b) => {
2890
+ const g = (y) => {
2891
2891
  o({
2892
2892
  path: `${Tt}error_verificationFailedToSend`,
2893
2893
  type: "error",
@@ -2895,7 +2895,7 @@ const Tt = "emailHelperTextBox_", Ns = ({
2895
2895
  "data-gtm-event-context": "VerifyEmailBox",
2896
2896
  "data-gtm-event-type": "SendEmailClick",
2897
2897
  className: "gtm-trackable",
2898
- onClick: (_) => l(_),
2898
+ onClick: (_) => u(_),
2899
2899
  href: "#",
2900
2900
  "data-testid": "send-verify-email-click"
2901
2901
  },
@@ -2905,7 +2905,7 @@ const Tt = "emailHelperTextBox_", Ns = ({
2905
2905
  "data-gtm-event-context": "ErrorVerifyingBox",
2906
2906
  "data-gtm-event-type": "email-concierge-click"
2907
2907
  },
2908
- error: b
2908
+ error: y
2909
2909
  });
2910
2910
  };
2911
2911
  if (typeof r != "function") {
@@ -2914,8 +2914,8 @@ const Tt = "emailHelperTextBox_", Ns = ({
2914
2914
  }
2915
2915
  f(!0), r(e).then(() => {
2916
2916
  localStorage.setItem("email", e), window.location.href = n || "/signup/verify-email";
2917
- }).catch((b) => {
2918
- g(b.message);
2917
+ }).catch((y) => {
2918
+ g(y.message);
2919
2919
  }).finally(() => {
2920
2920
  f(!1);
2921
2921
  });
@@ -2925,13 +2925,13 @@ const Tt = "emailHelperTextBox_", Ns = ({
2925
2925
  );
2926
2926
  ae(
2927
2927
  () => {
2928
- let p = Tt, g = "default", b = {}, _ = {};
2928
+ let p = Tt, g = "default", y = {}, _ = {};
2929
2929
  switch (t) {
2930
2930
  case "gov":
2931
2931
  p += "autoApproved", g = "success";
2932
2932
  break;
2933
2933
  case "nonGov":
2934
- p += "unrecognisedEmail", g = "error", b = {
2934
+ p += "unrecognisedEmail", g = "error", y = {
2935
2935
  href: "https://about.apolitical.co/who-can-join-the-community",
2936
2936
  "data-gtm-event-context": "NonGovEmailHelperTextBox",
2937
2937
  "data-gtm-event-type": "LearnMoreClick"
@@ -2946,17 +2946,17 @@ const Tt = "emailHelperTextBox_", Ns = ({
2946
2946
  };
2947
2947
  break;
2948
2948
  case "verify":
2949
- p += "emailUnverified", g = "error", b = {
2949
+ p += "emailUnverified", g = "error", y = {
2950
2950
  href: "#",
2951
2951
  "data-gtm-event-context": "VerifyEmailBox",
2952
2952
  "data-gtm-event-type": "SendEmailClick",
2953
2953
  className: "gtm-trackable",
2954
- onClick: (v) => l(v),
2954
+ onClick: (v) => u(v),
2955
2955
  "data-testid": "send-verify-email-click"
2956
2956
  };
2957
2957
  break;
2958
2958
  case "exists":
2959
- p += "emailAlreadyExists", g = "error", b = {
2959
+ p += "emailAlreadyExists", g = "error", y = {
2960
2960
  href: "/user-onboarding/login",
2961
2961
  "data-gtm-event-context": "EmailExistsBox",
2962
2962
  "data-gtm-event-type": "login-click"
@@ -2968,21 +2968,21 @@ const Tt = "emailHelperTextBox_", Ns = ({
2968
2968
  };
2969
2969
  break;
2970
2970
  default:
2971
- p += "default", b = {
2971
+ p += "default", y = {
2972
2972
  href: "https://about.apolitical.co/who-can-join-the-community",
2973
2973
  "data-gtm-event-context": "DefaultEmailHelperTextBox",
2974
2974
  "data-gtm-event-type": "LearnMoreClick"
2975
2975
  };
2976
2976
  break;
2977
2977
  }
2978
- o({ ...s, path: p, type: g, link: b, mail: _ });
2978
+ o({ ...s, path: p, type: g, link: y, mail: _ });
2979
2979
  },
2980
2980
  /* eslint-disable react-hooks/exhaustive-deps */
2981
2981
  [t]
2982
2982
  );
2983
- const d = {};
2983
+ const l = {};
2984
2984
  return ["link", "mail"].forEach((p) => {
2985
- d[p] = Object.keys(s[p]).length ? (g) => /* @__PURE__ */ a.jsx("a", { ...s[p], children: g }) : (g) => g;
2985
+ l[p] = Object.keys(s[p]).length ? (g) => /* @__PURE__ */ a.jsx("a", { ...s[p], children: g }) : (g) => g;
2986
2986
  }), /* @__PURE__ */ a.jsx(
2987
2987
  as,
2988
2988
  {
@@ -2998,7 +2998,7 @@ const Tt = "emailHelperTextBox_", Ns = ({
2998
2998
  i.formatMessage(
2999
2999
  { id: `${s.path}_text` },
3000
3000
  {
3001
- ...d,
3001
+ ...l,
3002
3002
  strong: (p) => /* @__PURE__ */ a.jsx("strong", { children: p }),
3003
3003
  em: (p) => /* @__PURE__ */ a.jsx("em", { children: p }),
3004
3004
  br: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
@@ -3022,17 +3022,17 @@ const Tt = "emailHelperTextBox_", Ns = ({
3022
3022
  placeholder: o,
3023
3023
  type: c = "text",
3024
3024
  value: f,
3025
- ...l
3025
+ ...u
3026
3026
  }) => {
3027
- const d = pe(), u = r || d;
3027
+ const l = pe(), d = r || l;
3028
3028
  return Y.createElement(e, {
3029
- ref: u,
3030
- ...l,
3029
+ ref: d,
3030
+ ...u,
3031
3031
  type: c,
3032
3032
  id: n,
3033
3033
  name: s,
3034
3034
  className: S(t, e, {
3035
- "has-scrollbar": c === "textarea" && u.current && u.current.clientHeight < u.current.scrollHeight
3035
+ "has-scrollbar": c === "textarea" && d.current && d.current.clientHeight < d.current.scrollHeight
3036
3036
  }),
3037
3037
  value: f,
3038
3038
  placeholder: o,
@@ -3063,36 +3063,36 @@ const Ke = {
3063
3063
  input: t,
3064
3064
  displayInput: t,
3065
3065
  debouncedInput: t
3066
- }), [{ predictions: l, activePredictionIndex: d, isPredictionSelected: u }, m] = te({
3066
+ }), [{ predictions: u, activePredictionIndex: l, isPredictionSelected: d }, m] = te({
3067
3067
  predictions: [],
3068
3068
  activePredictionIndex: -1,
3069
3069
  isPredictionSelected: !!t
3070
3070
  }), { formatMessage: p } = K();
3071
3071
  e || (e = p({ id: "inputAutocomplete_placeholder" })), ae(() => {
3072
3072
  const v = setTimeout(() => {
3073
- u || f((y) => ({ ...y, debouncedInput: s }));
3073
+ d || f((b) => ({ ...b, debouncedInput: s }));
3074
3074
  }, Ps);
3075
3075
  return () => {
3076
3076
  clearTimeout(v);
3077
3077
  };
3078
- }, [s, u]), ae(() => {
3079
- c && !u ? (async () => {
3078
+ }, [s, d]), ae(() => {
3079
+ c && !d ? (async () => {
3080
3080
  try {
3081
- const y = await i(c) || [];
3082
- m((j) => ({ ...j, predictions: y }));
3083
- } catch (y) {
3084
- console.error("Error fetching predictions:", y), m((j) => ({ ...j, predictions: [] }));
3081
+ const b = await i(c) || [];
3082
+ m((j) => ({ ...j, predictions: b }));
3083
+ } catch (b) {
3084
+ console.error("Error fetching predictions:", b), m((j) => ({ ...j, predictions: [] }));
3085
3085
  }
3086
3086
  })() : m((v) => ({ ...v, predictions: [] }));
3087
- }, [c, u]), ae(() => {
3088
- d >= 0 && l[d] && f((v) => ({ ...v, displayInput: l[d].description }));
3089
- }, [d, l]);
3087
+ }, [c, d]), ae(() => {
3088
+ l >= 0 && u[l] && f((v) => ({ ...v, displayInput: u[l].description }));
3089
+ }, [l, u]);
3090
3090
  const g = (v) => {
3091
- [Ke.DOWN, Ke.UP, Ke.ENTER].includes(v.key) && (v.preventDefault(), v.key === Ke.DOWN && d < l.length - 1 ? m((y) => ({ ...y, activePredictionIndex: d + 1 })) : v.key === Ke.UP && d > 0 ? m((y) => ({ ...y, activePredictionIndex: d - 1 })) : v.key === Ke.ENTER && d > -1 && (r(l[d].description), f((y) => ({ ...y, input: l[d].description })), m((y) => ({ ...y, predictions: [], isPredictionSelected: !0 }))));
3092
- }, b = (v) => {
3093
- r(v.target.value), f((y) => ({ ...y, input: v.target.value, displayInput: v.target.value })), m((y) => ({ ...y, activePredictionIndex: -1, isPredictionSelected: !1 }));
3091
+ [Ke.DOWN, Ke.UP, Ke.ENTER].includes(v.key) && (v.preventDefault(), v.key === Ke.DOWN && l < u.length - 1 ? m((b) => ({ ...b, activePredictionIndex: l + 1 })) : v.key === Ke.UP && l > 0 ? m((b) => ({ ...b, activePredictionIndex: l - 1 })) : v.key === Ke.ENTER && l > -1 && (r(u[l].description), f((b) => ({ ...b, input: u[l].description })), m((b) => ({ ...b, predictions: [], isPredictionSelected: !0 }))));
3092
+ }, y = (v) => {
3093
+ r(v.target.value), f((b) => ({ ...b, input: v.target.value, displayInput: v.target.value })), m((b) => ({ ...b, activePredictionIndex: -1, isPredictionSelected: !1 }));
3094
3094
  }, _ = (v) => {
3095
- r(v.description), f((y) => ({ ...y, input: v.description, displayInput: v.description })), m((y) => ({ ...y, isPredictionSelected: !0, predictions: [] }));
3095
+ r(v.description), f((b) => ({ ...b, input: v.description, displayInput: v.description })), m((b) => ({ ...b, isPredictionSelected: !0, predictions: [] }));
3096
3096
  };
3097
3097
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3098
3098
  /* @__PURE__ */ a.jsx(
@@ -3100,20 +3100,20 @@ const Ke = {
3100
3100
  {
3101
3101
  type: "text",
3102
3102
  value: o,
3103
- onChange: b,
3103
+ onChange: y,
3104
3104
  onKeyDown: g,
3105
3105
  placeholder: e
3106
3106
  }
3107
3107
  ),
3108
- /* @__PURE__ */ a.jsx("ul", { className: "predictions-list", children: l.map((v, y) => /* @__PURE__ */ a.jsx(
3108
+ /* @__PURE__ */ a.jsx("ul", { className: "predictions-list", children: u.map((v, b) => /* @__PURE__ */ a.jsx(
3109
3109
  "li",
3110
3110
  {
3111
3111
  onClick: () => _(v),
3112
- onMouseEnter: () => m((j) => ({ ...j, activePredictionIndex: y })),
3113
- className: S("predictions-list-item", { active: y === d }),
3112
+ onMouseEnter: () => m((j) => ({ ...j, activePredictionIndex: b })),
3113
+ className: S("predictions-list-item", { active: b === l }),
3114
3114
  children: v.description
3115
3115
  },
3116
- y
3116
+ b
3117
3117
  )) })
3118
3118
  ] });
3119
3119
  };
@@ -3128,12 +3128,12 @@ const wa = ({
3128
3128
  intlPath: o = !1,
3129
3129
  label: c,
3130
3130
  shownValue: f = !0,
3131
- type: l = "checkbox",
3132
- value: d,
3133
- ...u
3131
+ type: u = "checkbox",
3132
+ value: l,
3133
+ ...d
3134
3134
  }) => {
3135
- const m = K(), { onChange: p, ...g } = r, b = () => {
3136
- e || p(d ? null : f);
3135
+ const m = K(), { onChange: p, ...g } = r, y = () => {
3136
+ e || p(l ? null : f);
3137
3137
  }, _ = /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3138
3138
  /* @__PURE__ */ a.jsx(
3139
3139
  "input",
@@ -3141,11 +3141,11 @@ const wa = ({
3141
3141
  ref: s,
3142
3142
  id: i,
3143
3143
  name: i,
3144
- type: l,
3144
+ type: u,
3145
3145
  value: f,
3146
- checked: d,
3146
+ checked: l,
3147
3147
  onKeyDown: (v) => {
3148
- (v.key === "Enter" || v.code === "Space") && (v.preventDefault(), v.stopPropagation(), b());
3148
+ (v.key === "Enter" || v.code === "Space") && (v.preventDefault(), v.stopPropagation(), y());
3149
3149
  },
3150
3150
  readOnly: !0,
3151
3151
  disabled: e
@@ -3160,11 +3160,11 @@ const wa = ({
3160
3160
  n,
3161
3161
  {
3162
3162
  onClick: (v) => {
3163
- const y = v.target;
3164
- y.nodeName.toLowerCase() === "a" || y.parentNode && y.parentNode.nodeName.toLowerCase() === "a" || (v.preventDefault(), v.stopPropagation(), b());
3163
+ const b = v.target;
3164
+ b.nodeName.toLowerCase() === "a" || b.parentNode && b.parentNode.nodeName.toLowerCase() === "a" || (v.preventDefault(), v.stopPropagation(), y());
3165
3165
  },
3166
3166
  className: S("checkbox-wrapper", t),
3167
- ...u,
3167
+ ...d,
3168
3168
  ...g
3169
3169
  },
3170
3170
  _
@@ -3192,42 +3192,42 @@ const Fs = ({
3192
3192
  placeholder: o,
3193
3193
  multiSelect: c,
3194
3194
  multiSelectOptions: f,
3195
- id: l
3195
+ id: u
3196
3196
  }) => {
3197
- const d = K(), [u, m] = te(!1), p = r || n, g = Array.isArray(p) ? [...p] : p ? [p] : [], [b, _] = te(g);
3197
+ const l = K(), [d, m] = te(!1), p = r || n, g = Array.isArray(p) ? [...p] : p ? [p] : [], [y, _] = te(g);
3198
3198
  let v;
3199
- Array.isArray(b) && b.length === 1 && typeof b[0] == "string" ? v = e && b ? e.find((R) => R.id === b[0]) : e ? e[0] : { id: "", label: "" } : Array.isArray(b) && b.length === 1 && typeof b[0] != "string" ? v = b[0] : v = { id: "", label: "" }, ae(() => {
3199
+ Array.isArray(y) && y.length === 1 && typeof y[0] == "string" ? v = e && y ? e.find((R) => R.id === y[0]) : e ? e[0] : { id: "", label: "" } : Array.isArray(y) && y.length === 1 && typeof y[0] != "string" ? v = y[0] : v = { id: "", label: "" }, ae(() => {
3200
3200
  _(g);
3201
3201
  }, [r, n]);
3202
- const { onChange: y, onMultiSelectSubmit: j, ...T } = i, w = (R) => {
3202
+ const { onChange: b, onMultiSelectSubmit: j, ...T } = i, w = (R) => {
3203
3203
  if (c) {
3204
3204
  let W = [];
3205
- b != null && b.includes(R.id) ? W = b.filter((M) => M !== R.id) : W = [...b, R.id], _([...W]), y && y([...W]);
3205
+ y != null && y.includes(R.id) ? W = y.filter((M) => M !== R.id) : W = [...y, R.id], _([...W]), b && b([...W]);
3206
3206
  } else
3207
- _([R]), y && y(R.id), m(!1);
3207
+ _([R]), b && b(R.id), m(!1);
3208
3208
  }, D = (R) => {
3209
3209
  if (R === "all") {
3210
3210
  const W = (e == null ? void 0 : e.map((M) => M.id)) || [];
3211
- _(W), y && y(W);
3211
+ _(W), b && b(W);
3212
3212
  } else
3213
- _([]), y && y([]);
3213
+ _([]), b && b([]);
3214
3214
  };
3215
3215
  return /* @__PURE__ */ a.jsxs("div", { className: S("dropdown-wrapper", t), children: [
3216
3216
  /* @__PURE__ */ a.jsxs(
3217
3217
  "button",
3218
3218
  {
3219
3219
  className: "input",
3220
- "aria-expanded": u,
3220
+ "aria-expanded": d,
3221
3221
  "aria-haspopup": "listbox",
3222
3222
  "aria-controls": "dropdown-list",
3223
3223
  onClick: (R) => {
3224
- R.preventDefault(), R.stopPropagation(), m(!u);
3224
+ R.preventDefault(), R.stopPropagation(), m(!d);
3225
3225
  },
3226
3226
  "data-testid": "dropdown-selector",
3227
3227
  ...T,
3228
3228
  children: [
3229
- c ? `${o} · ${b.length}` : v.label,
3230
- /* @__PURE__ */ a.jsx(Rs, { direction: u ? "up" : "down" })
3229
+ c ? `${o} · ${y.length}` : v.label,
3230
+ /* @__PURE__ */ a.jsx(Rs, { direction: d ? "up" : "down" })
3231
3231
  ]
3232
3232
  }
3233
3233
  ),
@@ -3240,7 +3240,7 @@ const Fs = ({
3240
3240
  const W = e && e.find((M) => M.id === R.target.value);
3241
3241
  w(W);
3242
3242
  },
3243
- hidden: !u,
3243
+ hidden: !d,
3244
3244
  ...T,
3245
3245
  children: e == null ? void 0 : e.map((R) => /* @__PURE__ */ a.jsx("option", { value: R.id, children: R.label }, R.id))
3246
3246
  }
@@ -3250,11 +3250,11 @@ const Fs = ({
3250
3250
  {
3251
3251
  className: "menu-options input dropdown-menu",
3252
3252
  role: "menu",
3253
- hidden: !u,
3253
+ hidden: !d,
3254
3254
  children: [
3255
3255
  /* @__PURE__ */ a.jsxs("div", { className: "dropdown-menu-list", children: [
3256
3256
  (f == null ? void 0 : f.topbar) && /* @__PURE__ */ a.jsxs("div", { className: "action-bar", children: [
3257
- /* @__PURE__ */ a.jsx("p", { children: `${b == null ? void 0 : b.length} selected` }),
3257
+ /* @__PURE__ */ a.jsx("p", { children: `${y == null ? void 0 : y.length} selected` }),
3258
3258
  /* @__PURE__ */ a.jsxs("ul", { children: [
3259
3259
  /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
3260
3260
  ie,
@@ -3263,7 +3263,7 @@ const Fs = ({
3263
3263
  size: "small",
3264
3264
  onClick: () => D("all"),
3265
3265
  className: "gtm-trackable",
3266
- children: d.formatMessage({ id: "dropdown_menu_multiselect_all" })
3266
+ children: l.formatMessage({ id: "dropdown_menu_multiselect_all" })
3267
3267
  }
3268
3268
  ) }),
3269
3269
  /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
@@ -3273,13 +3273,13 @@ const Fs = ({
3273
3273
  size: "small",
3274
3274
  onClick: () => D("none"),
3275
3275
  className: "gtm-trackable",
3276
- children: d.formatMessage({ id: "dropdown_menu_multiselect_none" })
3276
+ children: l.formatMessage({ id: "dropdown_menu_multiselect_none" })
3277
3277
  }
3278
3278
  ) })
3279
3279
  ] })
3280
3280
  ] }),
3281
3281
  /* @__PURE__ */ a.jsx("ul", { children: e == null ? void 0 : e.map((R) => {
3282
- const W = R.id === v.id || (b == null ? void 0 : b.includes(R)) || (b == null ? void 0 : b.includes(R.id));
3282
+ const W = R.id === v.id || (y == null ? void 0 : y.includes(R)) || (y == null ? void 0 : y.includes(R.id));
3283
3283
  return /* @__PURE__ */ a.jsx("li", { "data-testid": "dropdown-options", children: /* @__PURE__ */ a.jsxs(
3284
3284
  "button",
3285
3285
  {
@@ -3308,16 +3308,16 @@ const Fs = ({
3308
3308
  {
3309
3309
  variant: "secondary",
3310
3310
  onClick: () => {
3311
- j && j(b), document.dispatchEvent(
3311
+ j && j(y), document.dispatchEvent(
3312
3312
  new CustomEvent("dropdownMultiSelectSubmit", {
3313
3313
  detail: {
3314
- id: l || "dropdown-multi-select",
3315
- value: b
3314
+ id: u || "dropdown-multi-select",
3315
+ value: y
3316
3316
  }
3317
3317
  })
3318
3318
  ), m(!1);
3319
3319
  },
3320
- children: d.formatMessage({ id: "form_submit" })
3320
+ children: l.formatMessage({ id: "form_submit" })
3321
3321
  }
3322
3322
  ) })
3323
3323
  ]
@@ -3336,26 +3336,26 @@ const Os = ({
3336
3336
  name: o,
3337
3337
  options: c,
3338
3338
  required: f,
3339
- type: l = "checkboxes",
3340
- value: d,
3341
- ...u
3339
+ type: u = "checkboxes",
3340
+ value: l,
3341
+ ...d
3342
3342
  }) => {
3343
- const m = K(), p = s ? d : [], g = d;
3343
+ const m = K(), p = s ? l : [], g = l;
3344
3344
  return /* @__PURE__ */ a.jsx(
3345
3345
  "ul",
3346
3346
  {
3347
- ...u,
3347
+ ...d,
3348
3348
  className: S("options-wrapper", t),
3349
3349
  "data-testid": `ul-${r}`,
3350
3350
  children: c == null ? void 0 : c.map(
3351
3351
  ({
3352
- id: b,
3352
+ id: y,
3353
3353
  label: _ = !1,
3354
- value: v = b,
3355
- disabled: y = !1
3354
+ value: v = y,
3355
+ disabled: b = !1
3356
3356
  }) => {
3357
- const j = `${r}_${b}`, T = () => {
3358
- if (y)
3357
+ const j = `${r}_${y}`, T = () => {
3358
+ if (b)
3359
3359
  return;
3360
3360
  let w;
3361
3361
  if (s) {
@@ -3370,7 +3370,7 @@ const Os = ({
3370
3370
  {
3371
3371
  element: "li",
3372
3372
  id: j,
3373
- type: l === "checkboxes" ? "checkbox" : "radio",
3373
+ type: u === "checkboxes" ? "checkbox" : "radio",
3374
3374
  shownValue: v,
3375
3375
  value: s ? p == null ? void 0 : p.includes(v) : g === v,
3376
3376
  functions: {
@@ -3379,9 +3379,9 @@ const Os = ({
3379
3379
  },
3380
3380
  intlPath: n,
3381
3381
  label: _ || m.formatMessage({
3382
- id: n ? `${n}_${b}` : b
3382
+ id: n ? `${n}_${y}` : y
3383
3383
  }),
3384
- disabled: y
3384
+ disabled: b
3385
3385
  },
3386
3386
  j
3387
3387
  );
@@ -3396,9 +3396,9 @@ const As = ({
3396
3396
  gtm: { context: n } = { context: void 0 },
3397
3397
  ...r
3398
3398
  }) => {
3399
- const i = K(), s = pe(), o = t || s, [c, f] = te(!1), [l, d] = te(e), u = () => {
3399
+ const i = K(), s = pe(), o = t || s, [c, f] = te(!1), [u, l] = te(e), d = () => {
3400
3400
  var m;
3401
- f(!c), d(c ? "password" : "text"), (m = o.current) == null || m.focus();
3401
+ f(!c), l(c ? "password" : "text"), (m = o.current) == null || m.focus();
3402
3402
  };
3403
3403
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3404
3404
  /* @__PURE__ */ a.jsx(
@@ -3410,7 +3410,7 @@ const As = ({
3410
3410
  }),
3411
3411
  "data-gtm-event-context": n,
3412
3412
  "data-gtm-event-type": `${c ? "hide" : "show"}-password-click`,
3413
- onClick: u,
3413
+ onClick: d,
3414
3414
  "aria-label": i.formatMessage({
3415
3415
  id: `showpassword_aria_${c ? "hide" : "show"}`
3416
3416
  }),
@@ -3419,7 +3419,7 @@ const As = ({
3419
3419
  })
3420
3420
  }
3421
3421
  ),
3422
- /* @__PURE__ */ a.jsx(mt, { inputRef: o, type: l, ...r })
3422
+ /* @__PURE__ */ a.jsx(mt, { inputRef: o, type: u, ...r })
3423
3423
  ] });
3424
3424
  };
3425
3425
  const Ge = {
@@ -3442,13 +3442,13 @@ const Ge = {
3442
3442
  showRequiredLabels: o = !0,
3443
3443
  type: c,
3444
3444
  validation: f,
3445
- value: l,
3446
- ...d
3445
+ value: u,
3446
+ ...l
3447
3447
  }) => {
3448
- const u = K(), m = f && f.some(({ condition: T }) => T === "required"), p = (l == null ? void 0 : l.toString().length) || 0, g = c && Ge[c] && Ge[c].component ? Ge[c].component : mt, b = {};
3449
- c && ["checkboxes"].includes(c) ? b.element = "span" : b.htmlFor = t;
3448
+ const d = K(), m = f && f.some(({ condition: T }) => T === "required"), p = (u == null ? void 0 : u.toString().length) || 0, g = c && Ge[c] && Ge[c].component ? Ge[c].component : mt, y = {};
3449
+ c && ["checkboxes"].includes(c) ? y.element = "span" : y.htmlFor = t;
3450
3450
  let _ = {
3451
- ...d,
3451
+ ...l,
3452
3452
  id: t,
3453
3453
  name: t,
3454
3454
  className: r ? "error" : "",
@@ -3456,12 +3456,12 @@ const Ge = {
3456
3456
  required: m,
3457
3457
  "aria-required": m,
3458
3458
  functions: ft(i),
3459
- value: l
3459
+ value: u
3460
3460
  };
3461
3461
  s > 0 && (_["data-character-limit"] = s, _.functions && (_.functions.onChange = (T) => {
3462
3462
  ((T == null ? void 0 : T.toString().length) || 0) > s && (T = T == null ? void 0 : T.toString().slice(0, s)), i.onChange(T);
3463
3463
  })), c && Ge[c] && Ge[c].props && (_ = { ..._, ...Ge[c].props }), c && ["checkboxes"].includes(c) && (_.intlPath = `${e}_${t}`), r && (_["aria-invalid"] = !0, _["aria-describedby"] = `error-${t}`);
3464
- const v = d.label || u.formatMessage({ id: e ? `${e}_${t}` : t }), y = ({ ...T }) => r ? Y.createElement(
3464
+ const v = l.label || d.formatMessage({ id: e ? `${e}_${t}` : t }), b = ({ ...T }) => r ? Y.createElement(
3465
3465
  T.as || "dd",
3466
3466
  {
3467
3467
  id: `error-${t}`,
@@ -3482,7 +3482,7 @@ const Ge = {
3482
3482
  className: S("field-wrapper", n)
3483
3483
  }
3484
3484
  ),
3485
- /* @__PURE__ */ a.jsx(y, { as: "p" })
3485
+ /* @__PURE__ */ a.jsx(b, { as: "p" })
3486
3486
  ] });
3487
3487
  const j = (T) => Y.createElement(T.element || "label", {
3488
3488
  ...T,
@@ -3490,13 +3490,13 @@ const Ge = {
3490
3490
  "data-testid": `label-${t}`
3491
3491
  });
3492
3492
  return /* @__PURE__ */ a.jsxs("dl", { className: S("field-wrapper text-medium", n), children: [
3493
- /* @__PURE__ */ a.jsx("dt", { children: /* @__PURE__ */ a.jsxs(j, { ...b, children: [
3493
+ /* @__PURE__ */ a.jsx("dt", { children: /* @__PURE__ */ a.jsxs(j, { ...y, children: [
3494
3494
  v,
3495
3495
  m && o && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3496
3496
  " ",
3497
3497
  /* @__PURE__ */ a.jsxs("small", { children: [
3498
3498
  "(",
3499
- u.formatMessage({ id: "form_fieldWrapper_required" }),
3499
+ d.formatMessage({ id: "form_fieldWrapper_required" }),
3500
3500
  ")"
3501
3501
  ] })
3502
3502
  ] })
@@ -3511,7 +3511,7 @@ const Ge = {
3511
3511
  "approaching-limit": p >= 0.9 * s && p < 0.99 * s
3512
3512
  }),
3513
3513
  children: [
3514
- /* @__PURE__ */ a.jsx("span", { className: "hidden", children: u.formatMessage({ id: "form_fieldWrapper_characterLimit" }) }),
3514
+ /* @__PURE__ */ a.jsx("span", { className: "hidden", children: d.formatMessage({ id: "form_fieldWrapper_characterLimit" }) }),
3515
3515
  p,
3516
3516
  " / ",
3517
3517
  s
@@ -3519,7 +3519,7 @@ const Ge = {
3519
3519
  }
3520
3520
  ) : null
3521
3521
  ] }),
3522
- /* @__PURE__ */ a.jsx(y, {})
3522
+ /* @__PURE__ */ a.jsx(b, {})
3523
3523
  ] });
3524
3524
  }, Is = (t, e) => {
3525
3525
  const { type: n, payload: r } = e, i = t.errors ? ft(t.errors) : {}, s = t.values ? ft(t.values) : {};
@@ -3555,34 +3555,34 @@ const Ge = {
3555
3555
  },
3556
3556
  onSuccess: f = () => {
3557
3557
  },
3558
- onFailure: l = () => {
3558
+ onFailure: u = () => {
3559
3559
  },
3560
- intl: d
3561
- } = r, u = ft(Object.keys(i));
3560
+ intl: l
3561
+ } = r, d = ft(Object.keys(i));
3562
3562
  for (const m of o)
3563
3563
  if (m.validation)
3564
3564
  for (let p = 0; p < m.validation.length; p++) {
3565
- const { condition: g = "required", error: b = !1 } = m.validation[p];
3565
+ const { condition: g = "required", error: y = !1 } = m.validation[p];
3566
3566
  let _ = !1;
3567
3567
  if (typeof g == "function") {
3568
3568
  const v = g(s);
3569
- v && (_ = b || v);
3569
+ v && (_ = y || v);
3570
3570
  } else {
3571
3571
  const v = s[m.id];
3572
3572
  switch (g) {
3573
3573
  case "required":
3574
- (!v || typeof v == "string" && v.trim().length === 0) && (_ = b || (d == null ? void 0 : d.formatMessage({ id: "form_error_required" })));
3574
+ (!v || typeof v == "string" && v.trim().length === 0) && (_ = y || (l == null ? void 0 : l.formatMessage({ id: "form_error_required" })));
3575
3575
  break;
3576
3576
  case "no-numbers": {
3577
- v && !/^([^0-9]*)$/.test(v) && (_ = b || (d == null ? void 0 : d.formatMessage({ id: "form_error_numbers" })));
3577
+ v && !/^([^0-9]*)$/.test(v) && (_ = y || (l == null ? void 0 : l.formatMessage({ id: "form_error_numbers" })));
3578
3578
  break;
3579
3579
  }
3580
3580
  case "valid-email": {
3581
- v && !/^(([^<>()[\]\\.,;:\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,}))$/.test(v) && (_ = b || (d == null ? void 0 : d.formatMessage({ id: "form_error_email" })));
3581
+ v && !/^(([^<>()[\]\\.,;:\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,}))$/.test(v) && (_ = y || (l == null ? void 0 : l.formatMessage({ id: "form_error_email" })));
3582
3582
  break;
3583
3583
  }
3584
3584
  case "valid-url": {
3585
- v && !/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$/.test(v) && (_ = b || (d == null ? void 0 : d.formatMessage({ id: "form_error_url" })));
3585
+ v && !/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$/.test(v) && (_ = y || (l == null ? void 0 : l.formatMessage({ id: "form_error_url" })));
3586
3586
  break;
3587
3587
  }
3588
3588
  default:
@@ -3593,11 +3593,11 @@ const Ge = {
3593
3593
  c({
3594
3594
  type: "addError",
3595
3595
  payload: { key: m.id, value: _ }
3596
- }), u.push(m.id);
3596
+ }), d.push(m.id);
3597
3597
  break;
3598
3598
  }
3599
3599
  }
3600
- return u.length === 0 ? f(s) : l(s, u), {
3600
+ return d.length === 0 ? f(s) : u(s, d), {
3601
3601
  ...t,
3602
3602
  isSubmitting: !1
3603
3603
  };
@@ -3638,15 +3638,15 @@ const Xn = ({
3638
3638
  meta: {
3639
3639
  shouldShowCancelButton: c = !1,
3640
3640
  shouldReset: f = !0,
3641
- showRequiredLabels: l = !0,
3642
- showSuccessMessage: d = !1
3641
+ showRequiredLabels: u = !0,
3642
+ showSuccessMessage: l = !1
3643
3643
  } = {
3644
3644
  shouldShowCancelButton: !1,
3645
3645
  shouldReset: !0,
3646
3646
  showRequiredLabels: !0,
3647
3647
  showSuccessMessage: !1
3648
3648
  },
3649
- gtm: u = { context: "Form", event: "form-submit-click" },
3649
+ gtm: d = { context: "Form", event: "form-submit-click" },
3650
3650
  functions: {
3651
3651
  onSuccess: m = async () => {
3652
3652
  },
@@ -3654,7 +3654,7 @@ const Xn = ({
3654
3654
  },
3655
3655
  onCatch: g = () => {
3656
3656
  },
3657
- onFailure: b = () => {
3657
+ onFailure: y = () => {
3658
3658
  }
3659
3659
  } = {
3660
3660
  onSuccess: async () => {
@@ -3668,7 +3668,7 @@ const Xn = ({
3668
3668
  },
3669
3669
  ..._
3670
3670
  }) => {
3671
- const { customOnSubmit: v, hideButton: y, ...j } = s, T = 40, w = K(), D = {};
3671
+ const { customOnSubmit: v, hideButton: b, ...j } = s, T = 40, w = K(), D = {};
3672
3672
  t.length && t.forEach((I) => {
3673
3673
  const Z = I.id || I.name;
3674
3674
  Z && (D[Z] = I.value || "");
@@ -3751,7 +3751,7 @@ const Xn = ({
3751
3751
  }
3752
3752
  },
3753
3753
  onFailure: (N, z) => {
3754
- b(N, z), W({
3754
+ y(N, z), W({
3755
3755
  type: "updateValue",
3756
3756
  payload: { key: "isSubmitting", value: !1 }
3757
3757
  });
@@ -3761,8 +3761,8 @@ const Xn = ({
3761
3761
  });
3762
3762
  },
3763
3763
  disabled: O || C || s.disabled,
3764
- "data-gtm-event-context": u.context,
3765
- "data-gtm-event-type": u.event,
3764
+ "data-gtm-event-context": d.context,
3765
+ "data-gtm-event-type": d.event,
3766
3766
  children: O || C ? w.formatMessage({
3767
3767
  id: `form_${O ? "submitting" : "submitted"}`
3768
3768
  }) : s.text
@@ -3771,8 +3771,8 @@ const Xn = ({
3771
3771
  return c && U.unshift({
3772
3772
  ...o,
3773
3773
  className: "gtm-trackable",
3774
- "data-gtm-event-context": u.context,
3775
- "data-gtm-event-type": u.event,
3774
+ "data-gtm-event-context": d.context,
3775
+ "data-gtm-event-type": d.event,
3776
3776
  disabled: O || C,
3777
3777
  onClick: p,
3778
3778
  children: o.text || w.formatMessage({ id: "form_cancel" })
@@ -3807,7 +3807,7 @@ const Xn = ({
3807
3807
  {
3808
3808
  intlPath: i,
3809
3809
  ...I,
3810
- showRequiredLabels: l,
3810
+ showRequiredLabels: u,
3811
3811
  value: z,
3812
3812
  error: M == null ? void 0 : M[J],
3813
3813
  functions: {
@@ -3820,7 +3820,7 @@ const Xn = ({
3820
3820
  J
3821
3821
  );
3822
3822
  }),
3823
- y ? null : (O || C) && v ? v : /* @__PURE__ */ a.jsx(
3823
+ b ? null : (O || C) && v ? v : /* @__PURE__ */ a.jsx(
3824
3824
  _t,
3825
3825
  {
3826
3826
  className: S("cta", {
@@ -3833,7 +3833,7 @@ const Xn = ({
3833
3833
  ]
3834
3834
  }
3835
3835
  ),
3836
- d && C && /* @__PURE__ */ a.jsx(qt, { className: "success", children: typeof d == "string" ? d : w.formatMessage({ id: "form_success" }) })
3836
+ l && C && /* @__PURE__ */ a.jsx(qt, { className: "success", children: typeof l == "string" ? l : w.formatMessage({ id: "form_success" }) })
3837
3837
  ] });
3838
3838
  };
3839
3839
  const Et = "passwordRules_", ja = "isMoreThanEightCharacters", ka = "includesNumberAndSymbol", Ta = "includesLowerAndUppercase", Ls = {
@@ -3886,74 +3886,74 @@ const Ul = ({
3886
3886
  className: s = "",
3887
3887
  hasLoaded: o = !1
3888
3888
  }) => {
3889
- const c = K(), [f, l] = te({
3889
+ const c = K(), [f, u] = te({
3890
3890
  setUp: !1,
3891
3891
  id: null,
3892
3892
  rating: null,
3893
3893
  disabled: !0
3894
- }), d = async () => {
3894
+ }), l = async () => {
3895
3895
  try {
3896
3896
  const v = await n();
3897
- l((y) => ({
3898
- ...y,
3897
+ u((b) => ({
3898
+ ...b,
3899
3899
  setUp: !0,
3900
3900
  id: v && v.id,
3901
3901
  disabled: !1
3902
3902
  }));
3903
3903
  } catch (v) {
3904
- l((y) => ({ ...y, setUp: !0, disabled: !0 })), i(v);
3904
+ u((b) => ({ ...b, setUp: !0, disabled: !0 })), i(v);
3905
3905
  }
3906
3906
  };
3907
3907
  if (ae(() => {
3908
- o && !f.setUp && d();
3908
+ o && !f.setUp && l();
3909
3909
  }, [o]), !o)
3910
3910
  return /* @__PURE__ */ a.jsx(Te, { className: "rating-placeholder" });
3911
- const { id: u, rating: m, disabled: p } = f, g = "ratings_", b = {
3911
+ const { id: d, rating: m, disabled: p } = f, g = "ratings_", y = {
3912
3912
  text: c.formatMessage({ id: `${g}text` }),
3913
3913
  low: c.formatMessage({ id: `${g}low` }),
3914
3914
  high: c.formatMessage({ id: `${g}high` }),
3915
3915
  success: c.formatMessage({ id: `${g}success` }),
3916
3916
  ...t
3917
3917
  }, _ = async (v) => {
3918
- if (!(!u || p))
3918
+ if (!(!d || p))
3919
3919
  try {
3920
- l((y) => ({ ...y, rating: v, disabled: !0 })), await r({ id: u, value: v });
3921
- } catch (y) {
3922
- l((j) => ({ ...j, rating: null })), i(y);
3920
+ u((b) => ({ ...b, rating: v, disabled: !0 })), await r({ id: d, value: v });
3921
+ } catch (b) {
3922
+ u((j) => ({ ...j, rating: null })), i(b);
3923
3923
  } finally {
3924
- l((y) => ({ ...y, disabled: !1 }));
3924
+ u((b) => ({ ...b, disabled: !1 }));
3925
3925
  }
3926
3926
  };
3927
3927
  return /* @__PURE__ */ a.jsxs("div", { className: S("rating", s), children: [
3928
- /* @__PURE__ */ a.jsx("span", { className: "label", children: b[m ? "success" : "text"] }),
3928
+ /* @__PURE__ */ a.jsx("span", { className: "label", children: y[m ? "success" : "text"] }),
3929
3929
  /* @__PURE__ */ a.jsx("ol", { children: Array.from(new Array(e).keys()).map((v) => {
3930
- const y = v + 1;
3930
+ const b = v + 1;
3931
3931
  return /* @__PURE__ */ a.jsx(
3932
3932
  "li",
3933
3933
  {
3934
- className: S({ selected: m && y <= m }),
3934
+ className: S({ selected: m && b <= m }),
3935
3935
  children: /* @__PURE__ */ a.jsx(
3936
3936
  ie,
3937
3937
  {
3938
3938
  variant: "tertiary",
3939
3939
  size: "small",
3940
3940
  icon: {
3941
- icon: `star${!m || y > m ? "_empty" : ""}`,
3941
+ icon: `star${!m || b > m ? "_empty" : ""}`,
3942
3942
  position: "left",
3943
3943
  hover: "star"
3944
3944
  },
3945
3945
  screenreaderText: `${c.formatMessage(
3946
3946
  { id: `${g}stars` },
3947
- { number: y, total: e }
3948
- )}${y === 1 || y === e ? ` - ${b[y === 1 ? "low" : "high"]}` : ""}`,
3947
+ { number: b, total: e }
3948
+ )}${b === 1 || b === e ? ` - ${y[b === 1 ? "low" : "high"]}` : ""}`,
3949
3949
  onClick: (j) => {
3950
- j.preventDefault(), j.stopPropagation(), _(y);
3950
+ j.preventDefault(), j.stopPropagation(), _(b);
3951
3951
  },
3952
3952
  disabled: p
3953
3953
  }
3954
3954
  )
3955
3955
  },
3956
- `rating-${y}`
3956
+ `rating-${b}`
3957
3957
  );
3958
3958
  }) })
3959
3959
  ] });
@@ -3974,15 +3974,15 @@ const zl = ({
3974
3974
  ae(() => {
3975
3975
  r && f(r);
3976
3976
  }, [r]);
3977
- const l = (d) => {
3978
- s || (f(d), i(d));
3977
+ const u = (l) => {
3978
+ s || (f(l), i(l));
3979
3979
  };
3980
3980
  return /* @__PURE__ */ a.jsxs(
3981
3981
  "div",
3982
3982
  {
3983
3983
  className: S("toggle", o),
3984
- onClick: (d) => {
3985
- d.preventDefault(), d.stopPropagation(), l(c === n[0].value ? n[1].value : n[0].value);
3984
+ onClick: (l) => {
3985
+ l.preventDefault(), l.stopPropagation(), u(c === n[0].value ? n[1].value : n[0].value);
3986
3986
  },
3987
3987
  children: [
3988
3988
  /* @__PURE__ */ a.jsx("p", { children: e }),
@@ -3993,23 +3993,23 @@ const zl = ({
3993
3993
  disabled: s,
3994
3994
  on: c === n[1].value
3995
3995
  }),
3996
- children: n.map((d) => {
3997
- const u = `${t}-${d.value}`;
3996
+ children: n.map((l) => {
3997
+ const d = `${t}-${l.value}`;
3998
3998
  return /* @__PURE__ */ a.jsxs("li", { className: "hidden", children: [
3999
3999
  /* @__PURE__ */ a.jsx(
4000
4000
  "input",
4001
4001
  {
4002
4002
  type: "radio",
4003
- id: u,
4003
+ id: d,
4004
4004
  name: t,
4005
- value: d.value,
4006
- checked: c === d.value,
4007
- onChange: () => l(d.value),
4005
+ value: l.value,
4006
+ checked: c === l.value,
4007
+ onChange: () => u(l.value),
4008
4008
  disabled: s
4009
4009
  }
4010
4010
  ),
4011
- /* @__PURE__ */ a.jsx("label", { htmlFor: u, children: d.label })
4012
- ] }, u);
4011
+ /* @__PURE__ */ a.jsx("label", { htmlFor: d, children: l.label })
4012
+ ] }, d);
4013
4013
  })
4014
4014
  }
4015
4015
  )
@@ -4018,22 +4018,22 @@ const zl = ({
4018
4018
  );
4019
4019
  };
4020
4020
  function Zl({ className: t = "", userId: e, userName: n, src: r, setUserImage: i, uploadImage: s }) {
4021
- const [o, c] = te(!1), [f, l] = te(!1), d = pe(null), u = async (m) => {
4022
- c(!0), l(!1);
4021
+ const [o, c] = te(!1), [f, u] = te(!1), l = pe(null), d = async (m) => {
4022
+ c(!0), u(!1);
4023
4023
  try {
4024
4024
  const p = m.target.files && m.target.files[0];
4025
4025
  if (!p || !e)
4026
4026
  throw c(!1), new Error("Image file or userID is missing");
4027
4027
  const g = await s({ fileObject: p, userId: e });
4028
- i((b) => ({
4029
- ...b,
4028
+ i((y) => ({
4029
+ ...y,
4030
4030
  image: {
4031
4031
  thumbnail: g.thumbnailURL,
4032
4032
  full: g.originalURL
4033
4033
  }
4034
4034
  }));
4035
4035
  } catch {
4036
- l(!0);
4036
+ u(!0);
4037
4037
  } finally {
4038
4038
  c(!1);
4039
4039
  }
@@ -4048,8 +4048,8 @@ function Zl({ className: t = "", userId: e, userName: n, src: r, setUserImage: i
4048
4048
  id: "file",
4049
4049
  type: "file",
4050
4050
  accept: "image/*",
4051
- ref: d,
4052
- onChange: u,
4051
+ ref: l,
4052
+ onChange: d,
4053
4053
  hidden: !0,
4054
4054
  "data-testid": "file-input"
4055
4055
  }
@@ -4057,7 +4057,7 @@ function Zl({ className: t = "", userId: e, userName: n, src: r, setUserImage: i
4057
4057
  /* @__PURE__ */ a.jsx(
4058
4058
  ie,
4059
4059
  {
4060
- onClick: () => d.current && d.current.click(),
4060
+ onClick: () => l.current && l.current.click(),
4061
4061
  variant: "secondary",
4062
4062
  "data-gtm-event-context": "ImageField",
4063
4063
  "data-gtm-event-type": `${r ? "change-photo" : "add-photo"}-click`,
@@ -4126,29 +4126,29 @@ const Us = ({
4126
4126
  onClose: o,
4127
4127
  reportError: c,
4128
4128
  sendInvites: f,
4129
- initialFormStatus: l = "NOT_SUBMITTED"
4129
+ initialFormStatus: u = "NOT_SUBMITTED"
4130
4130
  /* NOT_SUBMITTED */
4131
4131
  }) => {
4132
- const [d, u] = te([]), [m, p] = te(!0), [g, b] = te(l), { formatMessage: _ } = K(), v = async (T) => {
4132
+ const [l, d] = te([]), [m, p] = te(!0), [g, y] = te(u), { formatMessage: _ } = K(), v = async (T) => {
4133
4133
  T.preventDefault();
4134
4134
  try {
4135
- await f(d), u([]), b(
4135
+ await f(l), d([]), y(
4136
4136
  "SUCCESS"
4137
4137
  /* SUCCESS */
4138
4138
  );
4139
4139
  } catch (w) {
4140
- b(
4140
+ y(
4141
4141
  "ERROR"
4142
4142
  /* ERROR */
4143
4143
  ), c(w);
4144
4144
  }
4145
- }, y = (T) => {
4146
- T.preventDefault(), b(
4145
+ }, b = (T) => {
4146
+ T.preventDefault(), y(
4147
4147
  "NOT_SUBMITTED"
4148
4148
  /* NOT_SUBMITTED */
4149
- ), p(!0), u([]);
4149
+ ), p(!0), d([]);
4150
4150
  }, j = (T) => {
4151
- T.preventDefault(), o(), b(
4151
+ T.preventDefault(), o(), y(
4152
4152
  "CLOSED"
4153
4153
  /* CLOSED */
4154
4154
  );
@@ -4160,9 +4160,9 @@ const Us = ({
4160
4160
  ] }) }),
4161
4161
  /* @__PURE__ */ a.jsx(Oe, {}),
4162
4162
  /* @__PURE__ */ a.jsx("div", { className: "footer", children: g === "SUCCESS" ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
4163
- /* @__PURE__ */ a.jsx(ie, { variant: "secondary", onClick: y, children: _({ id: "inviteForm_ctaSendMoreInvites" }) }),
4163
+ /* @__PURE__ */ a.jsx(ie, { variant: "secondary", onClick: b, children: _({ id: "inviteForm_ctaSendMoreInvites" }) }),
4164
4164
  /* @__PURE__ */ a.jsx(ie, { onClick: j, children: _({ id: "inviteForm_ctaDone" }) })
4165
- ] }) : /* @__PURE__ */ a.jsx(ie, { onClick: y, children: _({ id: "inviteForm_ctaTryAgain" }) }) })
4165
+ ] }) : /* @__PURE__ */ a.jsx(ie, { onClick: b, children: _({ id: "inviteForm_ctaTryAgain" }) }) })
4166
4166
  ] }) : /* @__PURE__ */ a.jsx("div", { className: "invite-form-wrapper", children: /* @__PURE__ */ a.jsxs(
4167
4167
  "form",
4168
4168
  {
@@ -4179,9 +4179,9 @@ const Us = ({
4179
4179
  id: "email-input",
4180
4180
  inputClassName: "email-input input",
4181
4181
  placeholder: _({ id: "inviteForm_email_placeholder" }),
4182
- emails: d,
4182
+ emails: l,
4183
4183
  onChange: (T) => {
4184
- u(T), p(!T.length);
4184
+ d(T), p(!T.length);
4185
4185
  },
4186
4186
  autoFocus: !1,
4187
4187
  getLabel: (T, w, D) => /* @__PURE__ */ a.jsxs("div", { className: "email text-medium", children: [
@@ -4193,7 +4193,7 @@ const Us = ({
4193
4193
  size: "small",
4194
4194
  icon: { icon: "close" },
4195
4195
  onClick: () => {
4196
- D(w), p(!d.length);
4196
+ D(w), p(!l.length);
4197
4197
  },
4198
4198
  className: "remove-email-button",
4199
4199
  screenreaderText: _({ id: "overlay_close" })
@@ -4217,17 +4217,17 @@ const zs = ({
4217
4217
  gtmContext: i = "search-bar",
4218
4218
  gtmEvent: s = "form-submission"
4219
4219
  }) => {
4220
- const { searchIsOpen: o = !0, isDesktopVersion: c = !1 } = n || {}, f = K(), l = pe(null);
4220
+ const { searchIsOpen: o = !0, isDesktopVersion: c = !1 } = n || {}, f = K(), u = pe(null);
4221
4221
  vt(() => {
4222
- !n || c || !o || l.current && l.current.focus();
4222
+ !n || c || !o || u.current && u.current.focus();
4223
4223
  }, [o]);
4224
- const d = (u) => {
4225
- u.preventDefault(), u.stopPropagation(), !(!l.current || !l.current.value || l.current.value.length < 1) && (window.location.href = `/search?search=${encodeURIComponent(l.current.value)}`);
4224
+ const l = (d) => {
4225
+ d.preventDefault(), d.stopPropagation(), !(!u.current || !u.current.value || u.current.value.length < 1) && (window.location.href = `/search?search=${encodeURIComponent(u.current.value)}`);
4226
4226
  };
4227
4227
  return /* @__PURE__ */ a.jsx(
4228
4228
  "form",
4229
4229
  {
4230
- onSubmit: d,
4230
+ onSubmit: l,
4231
4231
  className: S("search-form gtm-trackable", e),
4232
4232
  "data-gtm-event-context": i,
4233
4233
  "data-gtm-event-type": s,
@@ -4249,14 +4249,14 @@ const zs = ({
4249
4249
  /* @__PURE__ */ a.jsx(
4250
4250
  "input",
4251
4251
  {
4252
- ref: l,
4252
+ ref: u,
4253
4253
  type: "search",
4254
4254
  id: t,
4255
4255
  name: t,
4256
4256
  defaultValue: r,
4257
4257
  placeholder: f.formatMessage({ id: "search_placeholder" }),
4258
- onKeyDown: (u) => {
4259
- u.key === "Enter" && d(u);
4258
+ onKeyDown: (d) => {
4259
+ d.key === "Enter" && l(d);
4260
4260
  }
4261
4261
  }
4262
4262
  ),
@@ -4264,13 +4264,13 @@ const zs = ({
4264
4264
  "button",
4265
4265
  {
4266
4266
  className: "clear",
4267
- onClick: (u) => {
4268
- u.preventDefault(), u.stopPropagation(), l.current && l.current.value && (l.current.value = "");
4267
+ onClick: (d) => {
4268
+ d.preventDefault(), d.stopPropagation(), u.current && u.current.value && (u.current.value = "");
4269
4269
  },
4270
4270
  children: /* @__PURE__ */ a.jsx(be, { children: f.formatMessage({ id: "search_clear" }) })
4271
4271
  }
4272
4272
  ),
4273
- /* @__PURE__ */ a.jsx("button", { className: "search", onClick: d, children: /* @__PURE__ */ a.jsx(be, { children: f.formatMessage({ id: "search_cta" }) }) })
4273
+ /* @__PURE__ */ a.jsx("button", { className: "search", onClick: l, children: /* @__PURE__ */ a.jsx(be, { children: f.formatMessage({ id: "search_cta" }) }) })
4274
4274
  ] })
4275
4275
  }
4276
4276
  )
@@ -4307,15 +4307,15 @@ const zs = ({
4307
4307
  { type: "validFields.email", value: !1 }
4308
4308
  ]);
4309
4309
  }
4310
- const { valid: c = !1, autoApproved: f = !1, exists: l } = o;
4311
- let d = "";
4312
- return c ? d = f ? "gov" : "nonGov" : l.registration ? l.engagement && !l.user ? d = l.auth ? "verify" : "pending" : d = "exists" : l.auth && (d = "exists"), n([
4310
+ const { valid: c = !1, autoApproved: f = !1, exists: u } = o;
4311
+ let l = "";
4312
+ return c ? l = f ? "gov" : "nonGov" : u.registration ? u.engagement && !u.user ? l = u.auth ? "verify" : "pending" : l = "exists" : u.auth && (l = "exists"), n([
4313
4313
  { type: "shouldManuallyApprove", value: !f },
4314
4314
  {
4315
4315
  type: "emailDetails",
4316
4316
  value: {
4317
4317
  email: i,
4318
- boxType: d,
4318
+ boxType: l,
4319
4319
  isEnd2End: /testing\+[0-9]+@apolitical.co$/.test(i)
4320
4320
  }
4321
4321
  },
@@ -4363,16 +4363,16 @@ const zs = ({
4363
4363
  intl: c
4364
4364
  // We need to pass `intl` in as it's being used in a hook
4365
4365
  }) => {
4366
- const { emailDetails: f } = i, l = (u, m) => {
4367
- u.current && i.validFields[m] !== u.current.validity.valid && s([{ type: `validFields.${m}`, value: u.current.validity.valid }]);
4368
- }, d = [
4366
+ const { emailDetails: f } = i, u = (d, m) => {
4367
+ d.current && i.validFields[m] !== d.current.validity.valid && s([{ type: `validFields.${m}`, value: d.current.validity.valid }]);
4368
+ }, l = [
4369
4369
  {
4370
4370
  id: "full_name",
4371
4371
  type: "text",
4372
4372
  inputRef: r.name,
4373
4373
  placeholder: c.formatMessage({ id: "signup_full_name_placeholder" }),
4374
4374
  functions: {
4375
- onChange: () => l(r.name, "name"),
4375
+ onChange: () => u(r.name, "name"),
4376
4376
  onFocus: () => s([{ type: "loadRecaptcha", value: !0 }])
4377
4377
  },
4378
4378
  autoComplete: "name",
@@ -4390,7 +4390,7 @@ const zs = ({
4390
4390
  onBlur: () => {
4391
4391
  $r({ ref: r.email, validateEmail: e, dispatch: s });
4392
4392
  },
4393
- onChange: (u, m) => {
4393
+ onChange: (d, m) => {
4394
4394
  m && m({
4395
4395
  type: "updateValue",
4396
4396
  payload: { key: "terms", value: !1 }
@@ -4411,14 +4411,14 @@ const zs = ({
4411
4411
  }
4412
4412
  }
4413
4413
  ];
4414
- return i.shouldManuallyApprove && (d.push(
4414
+ return i.shouldManuallyApprove && (l.push(
4415
4415
  {
4416
4416
  id: "job_title",
4417
4417
  type: "text",
4418
4418
  inputRef: r.jobTitle,
4419
4419
  placeholder: c.formatMessage({ id: "signup_job_title_placeholder" }),
4420
4420
  functions: {
4421
- onChange: () => l(r.jobTitle, "jobTitle")
4421
+ onChange: () => u(r.jobTitle, "jobTitle")
4422
4422
  },
4423
4423
  validation: [{ condition: "required" }],
4424
4424
  "data-testid": "signup-job-input"
@@ -4432,37 +4432,37 @@ const zs = ({
4432
4432
  }),
4433
4433
  functions: {
4434
4434
  onChange: () => {
4435
- l(r.organisation, "organisation");
4435
+ u(r.organisation, "organisation");
4436
4436
  }
4437
4437
  },
4438
4438
  validation: [{ condition: "required" }],
4439
4439
  "data-testid": "signup-org-input"
4440
4440
  }
4441
- ), t.url && d.push({
4441
+ ), t.url && l.push({
4442
4442
  id: "url",
4443
4443
  type: "text",
4444
4444
  label: c.formatMessage(
4445
4445
  { id: "signup_url" },
4446
4446
  {
4447
- small: (u) => /* @__PURE__ */ a.jsx("small", { children: u })
4447
+ small: (d) => /* @__PURE__ */ a.jsx("small", { children: d })
4448
4448
  }
4449
4449
  ),
4450
4450
  placeholder: c.formatMessage({ id: "signup_url_placeholder" }),
4451
4451
  validation: [{ condition: "valid-url" }],
4452
4452
  "data-testid": "signup-url-input"
4453
- })), t.expectation && d.push({
4453
+ })), t.expectation && l.push({
4454
4454
  id: "expectation",
4455
4455
  className: "expectation",
4456
4456
  type: "text",
4457
4457
  label: c.formatMessage(
4458
4458
  { id: "signup_expectation" },
4459
4459
  {
4460
- small: (u) => /* @__PURE__ */ a.jsx("small", { className: "notes text-small", children: u })
4460
+ small: (d) => /* @__PURE__ */ a.jsx("small", { className: "notes text-small", children: d })
4461
4461
  }
4462
4462
  ),
4463
4463
  placeholder: c.formatMessage({ id: "signup_expectation_placeholder" }),
4464
4464
  "data-testid": "signup-events-question"
4465
- }), d.push({
4465
+ }), l.push({
4466
4466
  id: "terms",
4467
4467
  className: "text-small",
4468
4468
  type: "checkbox",
@@ -4470,32 +4470,32 @@ const zs = ({
4470
4470
  label: c.formatMessage(
4471
4471
  { id: "signup_terms" },
4472
4472
  {
4473
- terms: (u) => /* @__PURE__ */ a.jsx(
4473
+ terms: (d) => /* @__PURE__ */ a.jsx(
4474
4474
  "a",
4475
4475
  {
4476
4476
  href: "https://about.apolitical.co/terms-and-conditions",
4477
4477
  "data-gtm-event-context": "SignupForm",
4478
4478
  "data-gtm-event-type": "terms-of-service-click",
4479
4479
  className: "gtm-trackable",
4480
- children: u
4480
+ children: d
4481
4481
  }
4482
4482
  ),
4483
- privacy: (u) => /* @__PURE__ */ a.jsx(
4483
+ privacy: (d) => /* @__PURE__ */ a.jsx(
4484
4484
  "a",
4485
4485
  {
4486
4486
  href: "https://about.apolitical.co/privacy-policy",
4487
4487
  "data-gtm-event-context": "SignupForm",
4488
4488
  "data-gtm-event-type": "privacy-policy-click",
4489
4489
  className: "gtm-trackable",
4490
- children: u
4490
+ children: d
4491
4491
  }
4492
4492
  )
4493
4493
  }
4494
4494
  ),
4495
4495
  shownValue: "accepted",
4496
4496
  functions: {
4497
- onChange: (u) => {
4498
- if (!u)
4497
+ onChange: (d) => {
4498
+ if (!d)
4499
4499
  return;
4500
4500
  const m = [];
4501
4501
  ["name", "email"].forEach((p) => {
@@ -4508,7 +4508,7 @@ const zs = ({
4508
4508
  },
4509
4509
  validation: [{ condition: "required" }],
4510
4510
  "data-testid": "signup-terms-checkbox"
4511
- }), d;
4511
+ }), l;
4512
4512
  };
4513
4513
  const Vs = ({ className: t = "" }) => /* @__PURE__ */ a.jsxs(
4514
4514
  "div",
@@ -4563,12 +4563,12 @@ const Ys = {
4563
4563
  ...s
4564
4564
  }) => {
4565
4565
  const o = K(), [c, f] = Zn(ua, Ys), {
4566
- validFields: l,
4567
- emailDetails: d,
4568
- shouldManuallyApprove: u,
4566
+ validFields: u,
4567
+ emailDetails: l,
4568
+ shouldManuallyApprove: d,
4569
4569
  showSuccessMessage: m,
4570
4570
  showError: p
4571
- } = c, [g, b] = aa([
4571
+ } = c, [g, y] = aa([
4572
4572
  "signup-this-session",
4573
4573
  "functional-cookie-consent"
4574
4574
  ]), _ = {
@@ -4581,8 +4581,8 @@ const Ys = {
4581
4581
  hiddenValidation: Y.createRef()
4582
4582
  };
4583
4583
  ae(() => {
4584
- u === !0 && _.jobTitle.current && _.jobTitle.current.focus();
4585
- }, [u]), ae(() => {
4584
+ d === !0 && _.jobTitle.current && _.jobTitle.current.focus();
4585
+ }, [d]), ae(() => {
4586
4586
  (s.showSuccessMessage || g["signup-this-session"]) && f([{ type: "showSuccessMessage", value: !0 }]);
4587
4587
  }, [g]), ae(() => {
4588
4588
  if (m && g["functional-cookie-consent"]) {
@@ -4590,7 +4590,7 @@ const Ys = {
4590
4590
  path: "/",
4591
4591
  maxAge: 3600
4592
4592
  };
4593
- s.showSuccessMessage || b("signup-this-session", "true", j);
4593
+ s.showSuccessMessage || y("signup-this-session", "true", j);
4594
4594
  }
4595
4595
  }, [m]);
4596
4596
  const v = bt(() => Hs({
@@ -4601,7 +4601,7 @@ const Ys = {
4601
4601
  dispatch: f,
4602
4602
  dataToSubmit: i,
4603
4603
  intl: o
4604
- }), [i, e, o, _, n, c]), y = u ? !Object.values(l).every((j) => j === !0) : !l.name || !l.email || ["exists", "pending", "verify"].includes(d.boxType);
4604
+ }), [i, e, o, _, n, c]), b = d ? !Object.values(u).every((j) => j === !0) : !u.name || !u.email || ["exists", "pending", "verify"].includes(l.boxType);
4605
4605
  return n.successMessage && m ? /* @__PURE__ */ a.jsx(Vs, { className: t }) : /* @__PURE__ */ a.jsxs(
4606
4606
  "fieldset",
4607
4607
  {
@@ -4628,7 +4628,7 @@ const Ys = {
4628
4628
  variant: "primary",
4629
4629
  size: "medium",
4630
4630
  text: r || o.formatMessage({ id: "signup_button_join" }),
4631
- disabled: y ? { isClickable: !0 } : !1,
4631
+ disabled: b ? { isClickable: !0 } : !1,
4632
4632
  styling: { fullWidth: !0 },
4633
4633
  "data-testid": "signup-button"
4634
4634
  },
@@ -4692,7 +4692,7 @@ function Ks() {
4692
4692
  if (Nr)
4693
4693
  return ue;
4694
4694
  Nr = 1;
4695
- 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, i = t ? Symbol.for("react.strict_mode") : 60108, s = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, f = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, u = 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, b = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, y = t ? Symbol.for("react.scope") : 60119;
4695
+ 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, i = t ? Symbol.for("react.strict_mode") : 60108, s = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, f = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, l = t ? Symbol.for("react.forward_ref") : 60112, d = 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, y = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, b = t ? Symbol.for("react.scope") : 60119;
4696
4696
  function j(w) {
4697
4697
  if (typeof w == "object" && w !== null) {
4698
4698
  var D = w.$$typeof;
@@ -4700,16 +4700,16 @@ function Ks() {
4700
4700
  case e:
4701
4701
  switch (w = w.type, w) {
4702
4702
  case f:
4703
- case l:
4703
+ case u:
4704
4704
  case r:
4705
4705
  case s:
4706
4706
  case i:
4707
- case u:
4707
+ case d:
4708
4708
  return w;
4709
4709
  default:
4710
4710
  switch (w = w && w.$$typeof, w) {
4711
4711
  case c:
4712
- case d:
4712
+ case l:
4713
4713
  case g:
4714
4714
  case p:
4715
4715
  case o:
@@ -4724,9 +4724,9 @@ function Ks() {
4724
4724
  }
4725
4725
  }
4726
4726
  function T(w) {
4727
- return j(w) === l;
4727
+ return j(w) === u;
4728
4728
  }
4729
- return ue.AsyncMode = f, ue.ConcurrentMode = l, ue.ContextConsumer = c, ue.ContextProvider = o, ue.Element = e, ue.ForwardRef = d, ue.Fragment = r, ue.Lazy = g, ue.Memo = p, ue.Portal = n, ue.Profiler = s, ue.StrictMode = i, ue.Suspense = u, ue.isAsyncMode = function(w) {
4729
+ return ue.AsyncMode = f, ue.ConcurrentMode = u, ue.ContextConsumer = c, ue.ContextProvider = o, ue.Element = e, ue.ForwardRef = l, ue.Fragment = r, ue.Lazy = g, ue.Memo = p, ue.Portal = n, ue.Profiler = s, ue.StrictMode = i, ue.Suspense = d, ue.isAsyncMode = function(w) {
4730
4730
  return T(w) || j(w) === f;
4731
4731
  }, ue.isConcurrentMode = T, ue.isContextConsumer = function(w) {
4732
4732
  return j(w) === c;
@@ -4735,7 +4735,7 @@ function Ks() {
4735
4735
  }, ue.isElement = function(w) {
4736
4736
  return typeof w == "object" && w !== null && w.$$typeof === e;
4737
4737
  }, ue.isForwardRef = function(w) {
4738
- return j(w) === d;
4738
+ return j(w) === l;
4739
4739
  }, ue.isFragment = function(w) {
4740
4740
  return j(w) === r;
4741
4741
  }, ue.isLazy = function(w) {
@@ -4749,9 +4749,9 @@ function Ks() {
4749
4749
  }, ue.isStrictMode = function(w) {
4750
4750
  return j(w) === i;
4751
4751
  }, ue.isSuspense = function(w) {
4752
- return j(w) === u;
4752
+ return j(w) === d;
4753
4753
  }, ue.isValidElementType = function(w) {
4754
- return typeof w == "string" || typeof w == "function" || w === r || w === l || w === s || w === i || w === u || w === m || typeof w == "object" && w !== null && (w.$$typeof === g || w.$$typeof === p || w.$$typeof === o || w.$$typeof === c || w.$$typeof === d || w.$$typeof === _ || w.$$typeof === v || w.$$typeof === y || w.$$typeof === b);
4754
+ return typeof w == "string" || typeof w == "function" || w === r || w === u || w === s || w === i || w === d || w === m || typeof w == "object" && w !== null && (w.$$typeof === g || w.$$typeof === p || w.$$typeof === o || w.$$typeof === c || w.$$typeof === l || w.$$typeof === _ || w.$$typeof === v || w.$$typeof === b || w.$$typeof === y);
4755
4755
  }, ue.typeOf = j, ue;
4756
4756
  }
4757
4757
  var de = {};
@@ -4766,10 +4766,10 @@ var de = {};
4766
4766
  var Pr;
4767
4767
  function Gs() {
4768
4768
  return Pr || (Pr = 1, process.env.NODE_ENV !== "production" && function() {
4769
- 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, i = t ? Symbol.for("react.strict_mode") : 60108, s = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, f = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, u = 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, b = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, y = t ? Symbol.for("react.scope") : 60119;
4769
+ 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, i = t ? Symbol.for("react.strict_mode") : 60108, s = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, f = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, l = t ? Symbol.for("react.forward_ref") : 60112, d = 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, y = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, b = t ? Symbol.for("react.scope") : 60119;
4770
4770
  function j(A) {
4771
4771
  return typeof A == "string" || typeof A == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
4772
- A === r || A === l || A === s || A === i || A === u || A === m || typeof A == "object" && A !== null && (A.$$typeof === g || A.$$typeof === p || A.$$typeof === o || A.$$typeof === c || A.$$typeof === d || A.$$typeof === _ || A.$$typeof === v || A.$$typeof === y || A.$$typeof === b);
4772
+ A === r || A === u || A === s || A === i || A === d || A === m || typeof A == "object" && A !== null && (A.$$typeof === g || A.$$typeof === p || A.$$typeof === o || A.$$typeof === c || A.$$typeof === l || A.$$typeof === _ || A.$$typeof === v || A.$$typeof === b || A.$$typeof === y);
4773
4773
  }
4774
4774
  function T(A) {
4775
4775
  if (typeof A == "object" && A !== null) {
@@ -4779,17 +4779,17 @@ function Gs() {
4779
4779
  var $e = A.type;
4780
4780
  switch ($e) {
4781
4781
  case f:
4782
- case l:
4782
+ case u:
4783
4783
  case r:
4784
4784
  case s:
4785
4785
  case i:
4786
- case u:
4786
+ case d:
4787
4787
  return $e;
4788
4788
  default:
4789
4789
  var Ee = $e && $e.$$typeof;
4790
4790
  switch (Ee) {
4791
4791
  case c:
4792
- case d:
4792
+ case l:
4793
4793
  case g:
4794
4794
  case p:
4795
4795
  case o:
@@ -4803,12 +4803,12 @@ function Gs() {
4803
4803
  }
4804
4804
  }
4805
4805
  }
4806
- var w = f, D = l, R = c, W = o, M = e, O = d, C = r, E = g, x = p, $ = n, L = s, U = i, I = u, Z = !1;
4806
+ var w = f, D = u, R = c, W = o, M = e, O = l, C = r, E = g, x = p, $ = n, L = s, U = i, I = d, Z = !1;
4807
4807
  function J(A) {
4808
4808
  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.")), k(A) || T(A) === f;
4809
4809
  }
4810
4810
  function k(A) {
4811
- return T(A) === l;
4811
+ return T(A) === u;
4812
4812
  }
4813
4813
  function N(A) {
4814
4814
  return T(A) === c;
@@ -4820,7 +4820,7 @@ function Gs() {
4820
4820
  return typeof A == "object" && A !== null && A.$$typeof === e;
4821
4821
  }
4822
4822
  function H(A) {
4823
- return T(A) === d;
4823
+ return T(A) === l;
4824
4824
  }
4825
4825
  function ee(A) {
4826
4826
  return T(A) === r;
@@ -4841,7 +4841,7 @@ function Gs() {
4841
4841
  return T(A) === i;
4842
4842
  }
4843
4843
  function oe(A) {
4844
- return T(A) === u;
4844
+ return T(A) === d;
4845
4845
  }
4846
4846
  de.AsyncMode = w, de.ConcurrentMode = D, de.ContextConsumer = R, de.ContextProvider = W, de.Element = M, de.ForwardRef = O, de.Fragment = C, de.Lazy = E, de.Memo = x, de.Portal = $, de.Profiler = L, de.StrictMode = U, de.Suspense = I, de.isAsyncMode = J, de.isConcurrentMode = k, de.isContextConsumer = N, de.isContextProvider = z, de.isElement = q, de.isForwardRef = H, de.isFragment = ee, de.isLazy = G, de.isMemo = V, de.isPortal = X, de.isProfiler = re, de.isStrictMode = F, de.isSuspense = oe, de.isValidElementType = j, de.typeOf = T;
4847
4847
  }()), de;
@@ -4875,28 +4875,28 @@ function Qs() {
4875
4875
  return !1;
4876
4876
  for (var o = {}, c = 0; c < 10; c++)
4877
4877
  o["_" + String.fromCharCode(c)] = c;
4878
- var f = Object.getOwnPropertyNames(o).map(function(d) {
4879
- return o[d];
4878
+ var f = Object.getOwnPropertyNames(o).map(function(l) {
4879
+ return o[l];
4880
4880
  });
4881
4881
  if (f.join("") !== "0123456789")
4882
4882
  return !1;
4883
- var l = {};
4884
- return "abcdefghijklmnopqrst".split("").forEach(function(d) {
4885
- l[d] = d;
4886
- }), Object.keys(Object.assign({}, l)).join("") === "abcdefghijklmnopqrst";
4883
+ var u = {};
4884
+ return "abcdefghijklmnopqrst".split("").forEach(function(l) {
4885
+ u[l] = l;
4886
+ }), Object.keys(Object.assign({}, u)).join("") === "abcdefghijklmnopqrst";
4887
4887
  } catch {
4888
4888
  return !1;
4889
4889
  }
4890
4890
  }
4891
4891
  return pn = i() ? Object.assign : function(s, o) {
4892
- for (var c, f = r(s), l, d = 1; d < arguments.length; d++) {
4893
- c = Object(arguments[d]);
4894
- for (var u in c)
4895
- e.call(c, u) && (f[u] = c[u]);
4892
+ for (var c, f = r(s), u, l = 1; l < arguments.length; l++) {
4893
+ c = Object(arguments[l]);
4894
+ for (var d in c)
4895
+ e.call(c, d) && (f[d] = c[d]);
4896
4896
  if (t) {
4897
- l = t(c);
4898
- for (var m = 0; m < l.length; m++)
4899
- n.call(c, l[m]) && (f[l[m]] = c[l[m]]);
4897
+ u = t(c);
4898
+ for (var m = 0; m < u.length; m++)
4899
+ n.call(c, u[m]) && (f[u[m]] = c[u[m]]);
4900
4900
  }
4901
4901
  }
4902
4902
  return f;
@@ -4932,29 +4932,29 @@ function Js() {
4932
4932
  }
4933
4933
  };
4934
4934
  }
4935
- function i(s, o, c, f, l) {
4935
+ function i(s, o, c, f, u) {
4936
4936
  if (process.env.NODE_ENV !== "production") {
4937
- for (var d in s)
4938
- if (r(s, d)) {
4939
- var u;
4937
+ for (var l in s)
4938
+ if (r(s, l)) {
4939
+ var d;
4940
4940
  try {
4941
- if (typeof s[d] != "function") {
4941
+ if (typeof s[l] != "function") {
4942
4942
  var m = Error(
4943
- (f || "React class") + ": " + c + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
4943
+ (f || "React class") + ": " + c + " type `" + l + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[l] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
4944
4944
  );
4945
4945
  throw m.name = "Invariant Violation", m;
4946
4946
  }
4947
- u = s[d](o, d, f, c, null, e);
4947
+ d = s[l](o, l, f, c, null, e);
4948
4948
  } catch (g) {
4949
- u = g;
4949
+ d = g;
4950
4950
  }
4951
- if (u && !(u instanceof Error) && t(
4952
- (f || "React class") + ": type specification of " + c + " `" + d + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof u + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
4953
- ), u instanceof Error && !(u.message in n)) {
4954
- n[u.message] = !0;
4955
- var p = l ? l() : "";
4951
+ if (d && !(d instanceof Error) && t(
4952
+ (f || "React class") + ": type specification of " + c + " `" + l + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof d + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
4953
+ ), d instanceof Error && !(d.message in n)) {
4954
+ n[d.message] = !0;
4955
+ var p = u ? u() : "";
4956
4956
  t(
4957
- "Failed " + c + " type: " + u.message + (p ?? "")
4957
+ "Failed " + c + " type: " + d.message + (p ?? "")
4958
4958
  );
4959
4959
  }
4960
4960
  }
@@ -4983,9 +4983,9 @@ function Xs() {
4983
4983
  return null;
4984
4984
  }
4985
4985
  return bn = function(c, f) {
4986
- var l = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
4987
- function u(k) {
4988
- var N = k && (l && k[l] || k[d]);
4986
+ var u = typeof Symbol == "function" && Symbol.iterator, l = "@@iterator";
4987
+ function d(k) {
4988
+ var N = k && (u && k[u] || k[l]);
4989
4989
  if (typeof N == "function")
4990
4990
  return N;
4991
4991
  }
@@ -4998,7 +4998,7 @@ function Xs() {
4998
4998
  object: v("object"),
4999
4999
  string: v("string"),
5000
5000
  symbol: v("symbol"),
5001
- any: y(),
5001
+ any: b(),
5002
5002
  arrayOf: j,
5003
5003
  element: T(),
5004
5004
  elementType: w(),
@@ -5013,10 +5013,10 @@ function Xs() {
5013
5013
  function g(k, N) {
5014
5014
  return k === N ? k !== 0 || 1 / k === 1 / N : k !== k && N !== N;
5015
5015
  }
5016
- function b(k, N) {
5016
+ function y(k, N) {
5017
5017
  this.message = k, this.data = N && typeof N == "object" ? N : {}, this.stack = "";
5018
5018
  }
5019
- b.prototype = Error.prototype;
5019
+ y.prototype = Error.prototype;
5020
5020
  function _(k) {
5021
5021
  if (process.env.NODE_ENV !== "production")
5022
5022
  var N = {}, z = 0;
@@ -5035,7 +5035,7 @@ function Xs() {
5035
5035
  ), N[ve] = !0, z++);
5036
5036
  }
5037
5037
  }
5038
- return G[V] == null ? ee ? G[V] === null ? new b("The " + re + " `" + F + "` is marked as required " + ("in `" + X + "`, but its value is `null`.")) : new b("The " + re + " `" + F + "` is marked as required in " + ("`" + X + "`, but its value is `undefined`.")) : null : k(G, V, X, re, F);
5038
+ return G[V] == null ? ee ? G[V] === null ? new y("The " + re + " `" + F + "` is marked as required " + ("in `" + X + "`, but its value is `null`.")) : new y("The " + re + " `" + F + "` is marked as required in " + ("`" + X + "`, but its value is `undefined`.")) : null : k(G, V, X, re, F);
5039
5039
  }
5040
5040
  var H = q.bind(null, !1);
5041
5041
  return H.isRequired = q.bind(null, !0), H;
@@ -5045,7 +5045,7 @@ function Xs() {
5045
5045
  var X = z[q], re = U(X);
5046
5046
  if (re !== k) {
5047
5047
  var F = I(X);
5048
- return new b(
5048
+ return new y(
5049
5049
  "Invalid " + ee + " `" + G + "` of type " + ("`" + F + "` supplied to `" + H + "`, expected ") + ("`" + k + "`."),
5050
5050
  { expectedType: k }
5051
5051
  );
@@ -5054,17 +5054,17 @@ function Xs() {
5054
5054
  }
5055
5055
  return _(N);
5056
5056
  }
5057
- function y() {
5057
+ function b() {
5058
5058
  return _(o);
5059
5059
  }
5060
5060
  function j(k) {
5061
5061
  function N(z, q, H, ee, G) {
5062
5062
  if (typeof k != "function")
5063
- return new b("Property `" + G + "` of component `" + H + "` has invalid PropType notation inside arrayOf.");
5063
+ return new y("Property `" + G + "` of component `" + H + "` has invalid PropType notation inside arrayOf.");
5064
5064
  var V = z[q];
5065
5065
  if (!Array.isArray(V)) {
5066
5066
  var X = U(V);
5067
- return new b("Invalid " + ee + " `" + G + "` of type " + ("`" + X + "` supplied to `" + H + "`, expected an array."));
5067
+ return new y("Invalid " + ee + " `" + G + "` of type " + ("`" + X + "` supplied to `" + H + "`, expected an array."));
5068
5068
  }
5069
5069
  for (var re = 0; re < V.length; re++) {
5070
5070
  var F = k(V, re, H, ee, G + "[" + re + "]", n);
@@ -5080,7 +5080,7 @@ function Xs() {
5080
5080
  var G = N[z];
5081
5081
  if (!c(G)) {
5082
5082
  var V = U(G);
5083
- return new b("Invalid " + H + " `" + ee + "` of type " + ("`" + V + "` supplied to `" + q + "`, expected a single ReactElement."));
5083
+ return new y("Invalid " + H + " `" + ee + "` of type " + ("`" + V + "` supplied to `" + q + "`, expected a single ReactElement."));
5084
5084
  }
5085
5085
  return null;
5086
5086
  }
@@ -5091,7 +5091,7 @@ function Xs() {
5091
5091
  var G = N[z];
5092
5092
  if (!t.isValidElementType(G)) {
5093
5093
  var V = U(G);
5094
- return new b("Invalid " + H + " `" + ee + "` of type " + ("`" + V + "` supplied to `" + q + "`, expected a single ReactElement type."));
5094
+ return new y("Invalid " + H + " `" + ee + "` of type " + ("`" + V + "` supplied to `" + q + "`, expected a single ReactElement type."));
5095
5095
  }
5096
5096
  return null;
5097
5097
  }
@@ -5101,7 +5101,7 @@ function Xs() {
5101
5101
  function N(z, q, H, ee, G) {
5102
5102
  if (!(z[q] instanceof k)) {
5103
5103
  var V = k.name || m, X = J(z[q]);
5104
- return new b("Invalid " + ee + " `" + G + "` of type " + ("`" + X + "` supplied to `" + H + "`, expected ") + ("instance of `" + V + "`."));
5104
+ return new y("Invalid " + ee + " `" + G + "` of type " + ("`" + X + "` supplied to `" + H + "`, expected ") + ("instance of `" + V + "`."));
5105
5105
  }
5106
5106
  return null;
5107
5107
  }
@@ -5120,17 +5120,17 @@ function Xs() {
5120
5120
  var ve = I(A);
5121
5121
  return ve === "symbol" ? String(A) : A;
5122
5122
  });
5123
- return new b("Invalid " + ee + " `" + G + "` of value `" + String(V) + "` " + ("supplied to `" + H + "`, expected one of " + re + "."));
5123
+ return new y("Invalid " + ee + " `" + G + "` of value `" + String(V) + "` " + ("supplied to `" + H + "`, expected one of " + re + "."));
5124
5124
  }
5125
5125
  return _(N);
5126
5126
  }
5127
5127
  function W(k) {
5128
5128
  function N(z, q, H, ee, G) {
5129
5129
  if (typeof k != "function")
5130
- return new b("Property `" + G + "` of component `" + H + "` has invalid PropType notation inside objectOf.");
5130
+ return new y("Property `" + G + "` of component `" + H + "` has invalid PropType notation inside objectOf.");
5131
5131
  var V = z[q], X = U(V);
5132
5132
  if (X !== "object")
5133
- return new b("Invalid " + ee + " `" + G + "` of type " + ("`" + X + "` supplied to `" + H + "`, expected an object."));
5133
+ return new y("Invalid " + ee + " `" + G + "` of type " + ("`" + X + "` supplied to `" + H + "`, expected an object."));
5134
5134
  for (var re in V)
5135
5135
  if (r(V, re)) {
5136
5136
  var F = k(V, re, H, ee, G + "." + re, n);
@@ -5159,18 +5159,18 @@ function Xs() {
5159
5159
  A.data && r(A.data, "expectedType") && re.push(A.data.expectedType);
5160
5160
  }
5161
5161
  var ve = re.length > 0 ? ", expected one of type [" + re.join(", ") + "]" : "";
5162
- return new b("Invalid " + V + " `" + X + "` supplied to " + ("`" + G + "`" + ve + "."));
5162
+ return new y("Invalid " + V + " `" + X + "` supplied to " + ("`" + G + "`" + ve + "."));
5163
5163
  }
5164
5164
  return _(q);
5165
5165
  }
5166
5166
  function O() {
5167
5167
  function k(N, z, q, H, ee) {
5168
- return $(N[z]) ? null : new b("Invalid " + H + " `" + ee + "` supplied to " + ("`" + q + "`, expected a ReactNode."));
5168
+ return $(N[z]) ? null : new y("Invalid " + H + " `" + ee + "` supplied to " + ("`" + q + "`, expected a ReactNode."));
5169
5169
  }
5170
5170
  return _(k);
5171
5171
  }
5172
5172
  function C(k, N, z, q, H) {
5173
- return new b(
5173
+ return new y(
5174
5174
  (k || "React class") + ": " + N + " type `" + z + "." + q + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + H + "`."
5175
5175
  );
5176
5176
  }
@@ -5178,7 +5178,7 @@ function Xs() {
5178
5178
  function N(z, q, H, ee, G) {
5179
5179
  var V = z[q], X = U(V);
5180
5180
  if (X !== "object")
5181
- return new b("Invalid " + ee + " `" + G + "` of type `" + X + "` " + ("supplied to `" + H + "`, expected `object`."));
5181
+ return new y("Invalid " + ee + " `" + G + "` of type `" + X + "` " + ("supplied to `" + H + "`, expected `object`."));
5182
5182
  for (var re in k) {
5183
5183
  var F = k[re];
5184
5184
  if (typeof F != "function")
@@ -5195,14 +5195,14 @@ function Xs() {
5195
5195
  function N(z, q, H, ee, G) {
5196
5196
  var V = z[q], X = U(V);
5197
5197
  if (X !== "object")
5198
- return new b("Invalid " + ee + " `" + G + "` of type `" + X + "` " + ("supplied to `" + H + "`, expected `object`."));
5198
+ return new y("Invalid " + ee + " `" + G + "` of type `" + X + "` " + ("supplied to `" + H + "`, expected `object`."));
5199
5199
  var re = e({}, z[q], k);
5200
5200
  for (var F in re) {
5201
5201
  var oe = k[F];
5202
5202
  if (r(k, F) && typeof oe != "function")
5203
5203
  return C(H, ee, G, F, I(oe));
5204
5204
  if (!oe)
5205
- return new b(
5205
+ return new y(
5206
5206
  "Invalid " + ee + " `" + G + "` key `" + F + "` supplied to `" + H + "`.\nBad object: " + JSON.stringify(z[q], null, " ") + `
5207
5207
  Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
5208
5208
  );
@@ -5227,7 +5227,7 @@ Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
5227
5227
  return k.every($);
5228
5228
  if (k === null || c(k))
5229
5229
  return !0;
5230
- var N = u(k);
5230
+ var N = d(k);
5231
5231
  if (N) {
5232
5232
  var z = N.call(k), q;
5233
5233
  if (N !== k.entries) {
@@ -5297,8 +5297,8 @@ function eo() {
5297
5297
  function n() {
5298
5298
  }
5299
5299
  return n.resetWarningCache = e, yn = function() {
5300
- function r(o, c, f, l, d, u) {
5301
- if (u !== t) {
5300
+ function r(o, c, f, u, l, d) {
5301
+ if (d !== t) {
5302
5302
  var m = new Error(
5303
5303
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
5304
5304
  );
@@ -5369,18 +5369,18 @@ var Ca = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
5369
5369
  var o = s.shift();
5370
5370
  if (!Zt(o, !1))
5371
5371
  if (o.tagName === "SLOT") {
5372
- var c = o.assignedElements(), f = c.length ? c : o.children, l = t(f, !0, r);
5373
- r.flatten ? i.push.apply(i, l) : i.push({
5372
+ var c = o.assignedElements(), f = c.length ? c : o.children, u = t(f, !0, r);
5373
+ r.flatten ? i.push.apply(i, u) : i.push({
5374
5374
  scopeParent: o,
5375
- candidates: l
5375
+ candidates: u
5376
5376
  });
5377
5377
  } else {
5378
- var d = Ze.call(o, Ut);
5379
- d && r.filter(o) && (n || !e.includes(o)) && i.push(o);
5380
- var u = o.shadowRoot || // check for an undisclosed shadow
5381
- typeof r.getShadowRoot == "function" && r.getShadowRoot(o), m = !Zt(u, !1) && (!r.shadowRootFilter || r.shadowRootFilter(o));
5382
- if (u && m) {
5383
- var p = t(u === !0 ? o.children : u.children, !0, r);
5378
+ var l = Ze.call(o, Ut);
5379
+ l && r.filter(o) && (n || !e.includes(o)) && i.push(o);
5380
+ var d = o.shadowRoot || // check for an undisclosed shadow
5381
+ typeof r.getShadowRoot == "function" && r.getShadowRoot(o), m = !Zt(d, !1) && (!r.shadowRootFilter || r.shadowRootFilter(o));
5382
+ if (d && m) {
5383
+ var p = t(d === !0 ? o.children : d.children, !0, r);
5384
5384
  r.flatten ? i.push.apply(i, p) : i.push({
5385
5385
  scopeParent: o,
5386
5386
  candidates: p
@@ -5439,8 +5439,8 @@ var Ca = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
5439
5439
  if (r && r !== e) {
5440
5440
  var o, c, f;
5441
5441
  for (s = !!((o = i) !== null && o !== void 0 && (c = o.ownerDocument) !== null && c !== void 0 && c.contains(i) || e != null && (f = e.ownerDocument) !== null && f !== void 0 && f.contains(e)); !s && i; ) {
5442
- var l, d, u;
5443
- r = zt(i), i = (l = r) === null || l === void 0 ? void 0 : l.host, s = !!((d = i) !== null && d !== void 0 && (u = d.ownerDocument) !== null && u !== void 0 && u.contains(i));
5442
+ var u, l, d;
5443
+ r = zt(i), i = (u = r) === null || u === void 0 ? void 0 : u.host, s = !!((l = i) !== null && l !== void 0 && (d = l.ownerDocument) !== null && d !== void 0 && d.contains(i));
5444
5444
  }
5445
5445
  }
5446
5446
  return s;
@@ -5457,10 +5457,10 @@ var Ca = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
5457
5457
  if (!r || r === "full" || r === "legacy-full") {
5458
5458
  if (typeof i == "function") {
5459
5459
  for (var c = e; e; ) {
5460
- var f = e.parentElement, l = zt(e);
5460
+ var f = e.parentElement, u = zt(e);
5461
5461
  if (f && !f.shadowRoot && i(f) === !0)
5462
5462
  return Lr(e);
5463
- e.assignedSlot ? e = e.assignedSlot : !f && l !== e.ownerDocument ? e = l.host : e = f;
5463
+ e.assignedSlot ? e = e.assignedSlot : !f && u !== e.ownerDocument ? e = u.host : e = f;
5464
5464
  }
5465
5465
  e = c;
5466
5466
  }
@@ -5499,13 +5499,13 @@ var Ca = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
5499
5499
  }, bo = function t(e) {
5500
5500
  var n = [], r = [];
5501
5501
  return e.forEach(function(i, s) {
5502
- var o = !!i.scopeParent, c = o ? i.scopeParent : i, f = io(c, o), l = o ? t(i.candidates) : c;
5503
- f === 0 ? o ? n.push.apply(n, l) : n.push(c) : r.push({
5502
+ var o = !!i.scopeParent, c = o ? i.scopeParent : i, f = io(c, o), u = o ? t(i.candidates) : c;
5503
+ f === 0 ? o ? n.push.apply(n, u) : n.push(c) : r.push({
5504
5504
  documentOrder: s,
5505
5505
  tabIndex: f,
5506
5506
  item: i,
5507
5507
  isScope: o,
5508
- content: l
5508
+ content: u
5509
5509
  });
5510
5510
  }), r.sort(so).reduce(function(i, s) {
5511
5511
  return s.isScope ? i.push.apply(i, s.content) : i.push(s.content), i;
@@ -5674,7 +5674,7 @@ var Ur = {
5674
5674
  recentNavEvent: void 0
5675
5675
  }, c, f = function(E, x, $) {
5676
5676
  return E && E[x] !== void 0 ? E[x] : s[$ || x];
5677
- }, l = function(E, x) {
5677
+ }, u = function(E, x) {
5678
5678
  var $ = typeof (x == null ? void 0 : x.composedPath) == "function" ? x.composedPath() : void 0;
5679
5679
  return o.containerGroups.findIndex(function(L) {
5680
5680
  var U = L.container, I = L.tabbableNodes;
@@ -5686,7 +5686,7 @@ var Ur = {
5686
5686
  return Z === E;
5687
5687
  });
5688
5688
  });
5689
- }, d = function(E) {
5689
+ }, l = function(E) {
5690
5690
  var x = s[E];
5691
5691
  if (typeof x == "function") {
5692
5692
  for (var $ = arguments.length, L = new Array($ > 1 ? $ - 1 : 0), U = 1; U < $; U++)
@@ -5702,16 +5702,16 @@ var Ur = {
5702
5702
  if (typeof x == "string" && (I = r.querySelector(x), !I))
5703
5703
  throw new Error("`".concat(E, "` as selector refers to no known node"));
5704
5704
  return I;
5705
- }, u = function() {
5706
- var E = d("initialFocus");
5705
+ }, d = function() {
5706
+ var E = l("initialFocus");
5707
5707
  if (E === !1)
5708
5708
  return !1;
5709
5709
  if (E === void 0 || !Dt(E, s.tabbableOptions))
5710
- if (l(r.activeElement) >= 0)
5710
+ if (u(r.activeElement) >= 0)
5711
5711
  E = r.activeElement;
5712
5712
  else {
5713
5713
  var x = o.tabbableGroups[0], $ = x && x.firstTabbableNode;
5714
- E = $ || d("fallbackFocus");
5714
+ E = $ || l("fallbackFocus");
5715
5715
  }
5716
5716
  if (!E)
5717
5717
  throw new Error("Your focus-trap needs to have at least one focusable element");
@@ -5765,7 +5765,7 @@ var Ur = {
5765
5765
  };
5766
5766
  }), o.tabbableGroups = o.containerGroups.filter(function(E) {
5767
5767
  return E.tabbableNodes.length > 0;
5768
- }), o.tabbableGroups.length <= 0 && !d("fallbackFocus"))
5768
+ }), o.tabbableGroups.length <= 0 && !l("fallbackFocus"))
5769
5769
  throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
5770
5770
  if (o.containerGroups.find(function(E) {
5771
5771
  return E.posTabIndexesFound;
@@ -5778,22 +5778,22 @@ var Ur = {
5778
5778
  }, g = function C(E) {
5779
5779
  if (E !== !1 && E !== p(document)) {
5780
5780
  if (!E || !E.focus) {
5781
- C(u());
5781
+ C(d());
5782
5782
  return;
5783
5783
  }
5784
5784
  E.focus({
5785
5785
  preventScroll: !!s.preventScroll
5786
5786
  }), o.mostRecentlyFocusedNode = E, ko(E) && E.select();
5787
5787
  }
5788
- }, b = function(E) {
5789
- var x = d("setReturnFocus", E);
5788
+ }, y = function(E) {
5789
+ var x = l("setReturnFocus", E);
5790
5790
  return x || (x === !1 ? !1 : E);
5791
5791
  }, _ = function(E) {
5792
5792
  var x = E.target, $ = E.event, L = E.isBackward, U = L === void 0 ? !1 : L;
5793
5793
  x = x || Ct($), m();
5794
5794
  var I = null;
5795
5795
  if (o.tabbableGroups.length > 0) {
5796
- var Z = l(x, $), J = Z >= 0 ? o.containerGroups[Z] : void 0;
5796
+ var Z = u(x, $), J = Z >= 0 ? o.containerGroups[Z] : void 0;
5797
5797
  if (Z < 0)
5798
5798
  U ? I = o.tabbableGroups[o.tabbableGroups.length - 1].lastTabbableNode : I = o.tabbableGroups[0].firstTabbableNode;
5799
5799
  else if (U) {
@@ -5818,11 +5818,11 @@ var Ur = {
5818
5818
  pt($) || (I = J.nextTabbableNode(x));
5819
5819
  }
5820
5820
  } else
5821
- I = d("fallbackFocus");
5821
+ I = l("fallbackFocus");
5822
5822
  return I;
5823
5823
  }, v = function(E) {
5824
5824
  var x = Ct(E);
5825
- if (!(l(x, E) >= 0)) {
5825
+ if (!(u(x, E) >= 0)) {
5826
5826
  if (ot(s.clickOutsideDeactivates, E)) {
5827
5827
  c.deactivate({
5828
5828
  // NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
@@ -5837,8 +5837,8 @@ var Ur = {
5837
5837
  }
5838
5838
  ot(s.allowOutsideClick, E) || E.preventDefault();
5839
5839
  }
5840
- }, y = function(E) {
5841
- var x = Ct(E), $ = l(x, E) >= 0;
5840
+ }, b = function(E) {
5841
+ var x = Ct(E), $ = u(x, E) >= 0;
5842
5842
  if ($ || x instanceof Document)
5843
5843
  $ && (o.mostRecentlyFocusedNode = x);
5844
5844
  else {
@@ -5846,7 +5846,7 @@ var Ur = {
5846
5846
  var L, U = !0;
5847
5847
  if (o.mostRecentlyFocusedNode)
5848
5848
  if (Ie(o.mostRecentlyFocusedNode) > 0) {
5849
- var I = l(o.mostRecentlyFocusedNode), Z = o.containerGroups[I].tabbableNodes;
5849
+ var I = u(o.mostRecentlyFocusedNode), Z = o.containerGroups[I].tabbableNodes;
5850
5850
  if (Z.length > 0) {
5851
5851
  var J = Z.findIndex(function(k) {
5852
5852
  return k === o.mostRecentlyFocusedNode;
@@ -5866,7 +5866,7 @@ var Ur = {
5866
5866
  // outside the trap causing the focus escape we're trying to fix)
5867
5867
  target: o.mostRecentlyFocusedNode,
5868
5868
  isBackward: s.isKeyBackward(o.recentNavEvent)
5869
- })), g(L || o.mostRecentlyFocusedNode || u());
5869
+ })), g(L || o.mostRecentlyFocusedNode || d());
5870
5870
  }
5871
5871
  o.recentNavEvent = void 0;
5872
5872
  }, j = function(E) {
@@ -5885,12 +5885,12 @@ var Ur = {
5885
5885
  (s.isKeyForward(E) || s.isKeyBackward(E)) && j(E, s.isKeyBackward(E));
5886
5886
  }, w = function(E) {
5887
5887
  var x = Ct(E);
5888
- l(x, E) >= 0 || ot(s.clickOutsideDeactivates, E) || ot(s.allowOutsideClick, E) || (E.preventDefault(), E.stopImmediatePropagation());
5888
+ u(x, E) >= 0 || ot(s.clickOutsideDeactivates, E) || ot(s.allowOutsideClick, E) || (E.preventDefault(), E.stopImmediatePropagation());
5889
5889
  }, D = function() {
5890
5890
  if (o.active)
5891
5891
  return Ur.activateTrap(i, c), o.delayInitialFocusTimer = s.delayInitialFocus ? zr(function() {
5892
- g(u());
5893
- }) : g(u()), r.addEventListener("focusin", y, !0), r.addEventListener("mousedown", v, {
5892
+ g(d());
5893
+ }) : g(d()), r.addEventListener("focusin", b, !0), r.addEventListener("mousedown", v, {
5894
5894
  capture: !0,
5895
5895
  passive: !1
5896
5896
  }), r.addEventListener("touchstart", v, {
@@ -5905,7 +5905,7 @@ var Ur = {
5905
5905
  }), c;
5906
5906
  }, R = function() {
5907
5907
  if (o.active)
5908
- return r.removeEventListener("focusin", y, !0), r.removeEventListener("mousedown", v, !0), r.removeEventListener("touchstart", v, !0), r.removeEventListener("click", w, !0), r.removeEventListener("keydown", T, !0), c;
5908
+ return r.removeEventListener("focusin", b, !0), r.removeEventListener("mousedown", v, !0), r.removeEventListener("touchstart", v, !0), r.removeEventListener("click", w, !0), r.removeEventListener("keydown", T, !0), c;
5909
5909
  }, W = function(E) {
5910
5910
  var x = E.some(function($) {
5911
5911
  var L = Array.from($.removedNodes);
@@ -5913,7 +5913,7 @@ var Ur = {
5913
5913
  return U === o.mostRecentlyFocusedNode;
5914
5914
  });
5915
5915
  });
5916
- x && g(u());
5916
+ x && g(d());
5917
5917
  }, M = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(W) : void 0, O = function() {
5918
5918
  M && (M.disconnect(), o.active && !o.paused && o.containers.map(function(E) {
5919
5919
  M.observe(E, {
@@ -5952,10 +5952,10 @@ var Ur = {
5952
5952
  $ == null || $();
5953
5953
  var Z = function() {
5954
5954
  zr(function() {
5955
- I && g(b(o.nodeFocusedBeforeActivation)), L == null || L();
5955
+ I && g(y(o.nodeFocusedBeforeActivation)), L == null || L();
5956
5956
  });
5957
5957
  };
5958
- return I && U ? (U(b(o.nodeFocusedBeforeActivation)).then(Z, Z), this) : (Z(), this);
5958
+ return I && U ? (U(y(o.nodeFocusedBeforeActivation)).then(Z, Z), this) : (Z(), this);
5959
5959
  },
5960
5960
  pause: function(E) {
5961
5961
  if (o.paused || !o.active)
@@ -6078,21 +6078,21 @@ var $t = Y, Q = ro, qo = Po, Uo = qo.createFocusTrap, zo = Mo, Zo = zo.isFocusab
6078
6078
  function n(r) {
6079
6079
  var i;
6080
6080
  Ro(this, n), i = e.call(this, r), Lo(dt(i), "getNodeForOption", function(c) {
6081
- var f, l = (f = this.internalOptions[c]) !== null && f !== void 0 ? f : this.originalOptions[c];
6082
- if (typeof l == "function") {
6083
- for (var d = arguments.length, u = new Array(d > 1 ? d - 1 : 0), m = 1; m < d; m++)
6084
- u[m - 1] = arguments[m];
6085
- l = l.apply(void 0, u);
6086
- }
6087
- if (l === !0 && (l = void 0), !l) {
6088
- if (l === void 0 || l === !1)
6089
- return l;
6081
+ var f, u = (f = this.internalOptions[c]) !== null && f !== void 0 ? f : this.originalOptions[c];
6082
+ if (typeof u == "function") {
6083
+ for (var l = arguments.length, d = new Array(l > 1 ? l - 1 : 0), m = 1; m < l; m++)
6084
+ d[m - 1] = arguments[m];
6085
+ u = u.apply(void 0, d);
6086
+ }
6087
+ if (u === !0 && (u = void 0), !u) {
6088
+ if (u === void 0 || u === !1)
6089
+ return u;
6090
6090
  throw new Error("`".concat(c, "` was specified but was not a node, or did not return a node"));
6091
6091
  }
6092
- var p = l;
6093
- if (typeof l == "string") {
6092
+ var p = u;
6093
+ if (typeof u == "string") {
6094
6094
  var g;
6095
- if (p = (g = this.getDocument()) === null || g === void 0 ? void 0 : g.querySelector(l), !p)
6095
+ if (p = (g = this.getDocument()) === null || g === void 0 ? void 0 : g.querySelector(u), !p)
6096
6096
  throw new Error("`".concat(c, "` as selector refers to no known node"));
6097
6097
  }
6098
6098
  return p;
@@ -6200,9 +6200,9 @@ var $t = Y, Q = ro, qo = Po, Uo = qo.createFocusTrap, zo = Mo, Zo = zo.isFocusab
6200
6200
  i.outsideClick.allowDeactivation && // is the outside node NOT focusable (implying that it did NOT receive focus
6201
6201
  // as a result of the click-through) -- in which case do NOT restore focus
6202
6202
  // to `returnFocusNode` because focus should remain on the outside node
6203
- !Zo(i.outsideClick.target, i.internalOptions.tabbableOptions))), l = i.internalOptions.preventScroll, d = l === void 0 ? !1 : l;
6203
+ !Zo(i.outsideClick.target, i.internalOptions.tabbableOptions))), u = i.internalOptions.preventScroll, l = u === void 0 ? !1 : u;
6204
6204
  f && c.focus({
6205
- preventScroll: d
6205
+ preventScroll: l
6206
6206
  }), i.originalOptions.onPostDeactivate && i.originalOptions.onPostDeactivate.call(null), i.outsideClick = null;
6207
6207
  };
6208
6208
  this.originalOptions.checkCanReturnFocus ? this.originalOptions.checkCanReturnFocus.call(null, this.getReturnFocusNode()).then(s, s) : s();
@@ -6248,9 +6248,9 @@ var $t = Y, Q = ro, qo = Po, Uo = qo.createFocusTrap, zo = Mo, Zo = zo.isFocusab
6248
6248
  if (s) {
6249
6249
  if (s.type && s.type === $t.Fragment)
6250
6250
  throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");
6251
- var o = function(l) {
6252
- var d = i.props.containerElements;
6253
- s && (typeof s.ref == "function" ? s.ref(l) : s.ref && (s.ref.current = l)), i.focusTrapElements = d || [l];
6251
+ var o = function(u) {
6252
+ var l = i.props.containerElements;
6253
+ s && (typeof s.ref == "function" ? s.ref(u) : s.ref && (s.ref.current = u)), i.focusTrapElements = l || [u];
6254
6254
  }, c = $t.cloneElement(s, {
6255
6255
  ref: o
6256
6256
  });
@@ -6332,18 +6332,18 @@ const en = ({
6332
6332
  forceShow: { error: o = !1 } = {},
6333
6333
  title: c,
6334
6334
  children: f,
6335
- buttons: l,
6336
- className: d = "",
6337
- gtmContext: u = "Modal"
6335
+ buttons: u,
6336
+ className: l = "",
6337
+ gtmContext: d = "Modal"
6338
6338
  }) => {
6339
- const m = K(), [p, g] = te(e), b = (y) => {
6340
- y.key === "Escape" && _(!1);
6339
+ const m = K(), [p, g] = te(e), y = (b) => {
6340
+ b.key === "Escape" && _(!1);
6341
6341
  };
6342
- ae(() => (window.addEventListener("keyup", b), () => {
6343
- window.removeEventListener("keyup", b);
6342
+ ae(() => (window.addEventListener("keyup", y), () => {
6343
+ window.removeEventListener("keyup", y);
6344
6344
  }));
6345
- const _ = (y) => {
6346
- g(y), y ? (i(), document.body.classList.add("has-overlay")) : (s(), document.body.classList.remove("has-overlay"));
6345
+ const _ = (b) => {
6346
+ g(b), b ? (i(), document.body.classList.add("has-overlay")) : (s(), document.body.classList.remove("has-overlay"));
6347
6347
  };
6348
6348
  ae(() => {
6349
6349
  _(e);
@@ -6353,7 +6353,7 @@ const en = ({
6353
6353
  Da,
6354
6354
  {
6355
6355
  id: t,
6356
- className: S("overlay-modal", d, {
6356
+ className: S("overlay-modal", l, {
6357
6357
  "has-max-width": r
6358
6358
  }),
6359
6359
  hidden: !p,
@@ -6370,16 +6370,16 @@ const en = ({
6370
6370
  onClick: () => _(!1),
6371
6371
  className: "gtm-trackable",
6372
6372
  "data-gtm-event-type": "close-modal-click",
6373
- "data-gtm-event-context": u,
6373
+ "data-gtm-event-context": d,
6374
6374
  screenreaderText: m.formatMessage({ id: "overlay_close" })
6375
6375
  }
6376
6376
  )
6377
6377
  ] }),
6378
6378
  n && /* @__PURE__ */ a.jsx(Oe, {}),
6379
6379
  f,
6380
- l && /* @__PURE__ */ a.jsxs("div", { className: "bottom", children: [
6380
+ u && /* @__PURE__ */ a.jsxs("div", { className: "bottom", children: [
6381
6381
  /* @__PURE__ */ a.jsx(Oe, {}),
6382
- /* @__PURE__ */ a.jsx(_t, { buttons: l })
6382
+ /* @__PURE__ */ a.jsx(_t, { buttons: u })
6383
6383
  ] }),
6384
6384
  o && /* @__PURE__ */ a.jsx(qt, { className: "error", children: o })
6385
6385
  ] }) })
@@ -6401,10 +6401,10 @@ const Hl = ({
6401
6401
  onClose: c,
6402
6402
  reportError: f = () => {
6403
6403
  },
6404
- sendInvites: l
6404
+ sendInvites: u
6405
6405
  }) => {
6406
- const d = K();
6407
- return r || (r = d.formatMessage({ id: "invite-modal_formTitle" })), i || (i = d.formatMessage({ id: "invite-modal_formLabel" })), s || (s = d.formatMessage({ id: "invite-modal_cta" })), /* @__PURE__ */ a.jsx(
6406
+ const l = K();
6407
+ return r || (r = l.formatMessage({ id: "invite-modal_formTitle" })), i || (i = l.formatMessage({ id: "invite-modal_formLabel" })), s || (s = l.formatMessage({ id: "invite-modal_cta" })), /* @__PURE__ */ a.jsx(
6408
6408
  en,
6409
6409
  {
6410
6410
  title: n,
@@ -6420,7 +6420,7 @@ const Hl = ({
6420
6420
  label: i,
6421
6421
  ctaMessage: s,
6422
6422
  onClose: c,
6423
- sendInvites: l,
6423
+ sendInvites: u,
6424
6424
  reportError: f
6425
6425
  }
6426
6426
  )
@@ -6474,11 +6474,11 @@ const Vl = ({ members: t }) => {
6474
6474
  isOngoingEvent: o,
6475
6475
  pill: c,
6476
6476
  readingTime: f,
6477
- publishedDate: l,
6478
- startDate: d
6477
+ publishedDate: u,
6478
+ startDate: l
6479
6479
  } = e;
6480
6480
  if (t === "question") {
6481
- const u = i && Dn(i);
6481
+ const d = i && Dn(i);
6482
6482
  return /* @__PURE__ */ a.jsxs("p", { className: "details answers", "data-testid": "question-answers", children: [
6483
6483
  n.formatMessage({ id: "card_answers" }, { number: r }),
6484
6484
  i && /* @__PURE__ */ a.jsxs("span", { "data-testid": "question-created-at", children: [
@@ -6488,17 +6488,17 @@ const Vl = ({ members: t }) => {
6488
6488
  n.formatMessage(
6489
6489
  { id: "card_time_ago" },
6490
6490
  {
6491
- time: u ? n.formatMessage(
6492
- { id: `dates_${u.path}` },
6493
- { number: u.number }
6491
+ time: d ? n.formatMessage(
6492
+ { id: `dates_${d.path}` },
6493
+ { number: d.number }
6494
6494
  ) : 0
6495
6495
  }
6496
6496
  )
6497
6497
  ] })
6498
6498
  ] });
6499
6499
  }
6500
- if (d && !s || o)
6501
- return /* @__PURE__ */ a.jsx("p", { className: "details", children: o ? n.formatMessage({ id: "card_bootcamp" }) : ma(d) });
6500
+ if (l && !s || o)
6501
+ return /* @__PURE__ */ a.jsx("p", { className: "details", children: o ? n.formatMessage({ id: "card_bootcamp" }) : ma(l) });
6502
6502
  if (c)
6503
6503
  return /* @__PURE__ */ a.jsx(
6504
6504
  Bt,
@@ -6509,16 +6509,16 @@ const Vl = ({ members: t }) => {
6509
6509
  children: c
6510
6510
  }
6511
6511
  );
6512
- if (f || l) {
6513
- const u = l && Dn(l);
6512
+ if (f || u) {
6513
+ const d = u && Dn(u);
6514
6514
  return /* @__PURE__ */ a.jsxs("ul", { className: "details", children: [
6515
6515
  f && /* @__PURE__ */ a.jsx("li", { "data-testid": "reading-time", children: n.formatMessage({ id: "card_time_read" }, { time: f }) }),
6516
- l && /* @__PURE__ */ a.jsx("li", { "data-testid": "published-date", children: n.formatMessage(
6516
+ u && /* @__PURE__ */ a.jsx("li", { "data-testid": "published-date", children: n.formatMessage(
6517
6517
  { id: "card_time_ago" },
6518
6518
  {
6519
- time: u ? n.formatMessage(
6520
- { id: `dates_${u.path}` },
6521
- { number: u.number }
6519
+ time: d ? n.formatMessage(
6520
+ { id: `dates_${d.path}` },
6521
+ { number: d.number }
6522
6522
  ) : 0
6523
6523
  }
6524
6524
  ) })
@@ -6583,7 +6583,7 @@ const Vl = ({ members: t }) => {
6583
6583
  gtmEvent: "learning-hub"
6584
6584
  }
6585
6585
  }, Ko = ({ data: t, cta: e, link: n, gtmContext: r }) => {
6586
- var b;
6586
+ var y;
6587
6587
  const i = K(), [s, o] = te({
6588
6588
  loading: !1,
6589
6589
  registered: t.registered || !1
@@ -6591,9 +6591,9 @@ const Vl = ({ members: t }) => {
6591
6591
  ae(() => {
6592
6592
  t.registered && o((_) => ({ ..._, registered: !0 }));
6593
6593
  }, [t.registered]);
6594
- const { customLinkText: c, startDate: f, dateHasPassed: l, pill: d, slug: u } = t, m = t.contentType;
6594
+ const { customLinkText: c, startDate: f, dateHasPassed: u, pill: l, slug: d } = t, m = t.contentType;
6595
6595
  let p = "";
6596
- if ((b = Vt[m]) != null && b.gtmEvent && (p = Vt[m].gtmEvent), f && l)
6596
+ if ((y = Vt[m]) != null && y.gtmEvent && (p = Vt[m].gtmEvent), f && u)
6597
6597
  return n ? /* @__PURE__ */ a.jsx(
6598
6598
  "a",
6599
6599
  {
@@ -6618,9 +6618,9 @@ const Vl = ({ members: t }) => {
6618
6618
  }
6619
6619
  ) : void 0;
6620
6620
  const g = ["microcourse", "event"];
6621
- if (e && e.onClick && g.includes(m) && d !== "premium") {
6622
- const _ = s.loading || s.registered, v = async (y) => {
6623
- if (y.preventDefault(), y.stopPropagation(), !(_ || !e || !e.onClick)) {
6621
+ if (e && e.onClick && g.includes(m) && l !== "premium") {
6622
+ const _ = s.loading || s.registered, v = async (b) => {
6623
+ if (b.preventDefault(), b.stopPropagation(), !(_ || !e || !e.onClick)) {
6624
6624
  o((j) => ({ ...j, loading: !0 }));
6625
6625
  try {
6626
6626
  const j = await e.onClick(t);
@@ -6638,7 +6638,7 @@ const Vl = ({ members: t }) => {
6638
6638
  size: "small",
6639
6639
  styling: { fullWidth: !0 },
6640
6640
  disabled: _,
6641
- "data-gtm-event-context": `${r}Page-${m}: ${u}`,
6641
+ "data-gtm-event-context": `${r}Page-${m}: ${d}`,
6642
6642
  "data-gtm-event-type": `${r}-${m}-register-click`,
6643
6643
  "data-testid": "in-card-button",
6644
6644
  children: c || i.formatMessage({
@@ -6662,17 +6662,17 @@ const Go = {
6662
6662
  gtmContext: i = "Carousel",
6663
6663
  className: s = ""
6664
6664
  }) => {
6665
- const o = K(), c = Ce(De), f = c && typeof c.id == "string", [l, d] = te({
6665
+ const o = K(), c = Ce(De), f = c && typeof c.id == "string", [u, l] = te({
6666
6666
  data: null,
6667
6667
  isLoading: !0
6668
- }), { data: u, isLoading: m } = l, p = na(() => {
6668
+ }), { data: d, isLoading: m } = u, p = na(() => {
6669
6669
  n(e, f).then((D) => {
6670
- d(() => ({ data: D, isLoading: !1 }));
6671
- }).catch(() => d((D) => ({ ...D, isLoading: !1 })));
6670
+ l(() => ({ data: D, isLoading: !1 }));
6671
+ }).catch(() => l((D) => ({ ...D, isLoading: !1 })));
6672
6672
  }, [t]);
6673
6673
  if (ae(() => {
6674
6674
  p();
6675
- }, []), m || !u)
6675
+ }, []), m || !d)
6676
6676
  return /* @__PURE__ */ a.jsx(
6677
6677
  Te,
6678
6678
  {
@@ -6681,32 +6681,32 @@ const Go = {
6681
6681
  "data-testid": "card-placeholder"
6682
6682
  }
6683
6683
  );
6684
- const { contentType: g } = u;
6684
+ const { contentType: g } = d;
6685
6685
  if (!g || !Vt[g])
6686
6686
  return /* @__PURE__ */ a.jsx(Te, { element: "li", className: "card-wrapper" });
6687
6687
  const {
6688
- basePath: b = "",
6688
+ basePath: y = "",
6689
6689
  className: _,
6690
6690
  length: v,
6691
- gtmEvent: y
6691
+ gtmEvent: b
6692
6692
  } = Vt[g];
6693
- let j = u.slug ? `${b}${u.slug}` : !1;
6694
- u.slug && (u.slug.slice(0, 4) === "http" || u.slug.slice(0, 2) === "//" || u.slug.slice(0, 6) === "mailto" || u.slug.slice(0, 3) === "tel") && (j = u.slug);
6693
+ let j = d.slug ? `${y}${d.slug}` : !1;
6694
+ d.slug && (d.slug.slice(0, 4) === "http" || d.slug.slice(0, 2) === "//" || d.slug.slice(0, 6) === "mailto" || d.slug.slice(0, 3) === "tel") && (j = d.slug);
6695
6695
  const T = { ...Go, ...v };
6696
6696
  let w = { className: "card" };
6697
6697
  return j && (w = {
6698
6698
  href: j,
6699
6699
  className: "card gtm-trackable",
6700
6700
  "data-gtm-event-context": `${i}-CarouselCard`,
6701
- "data-gtm-event-type": `${y}-click`,
6701
+ "data-gtm-event-type": `${b}-click`,
6702
6702
  "data-testid": "link"
6703
- }, u.openInNewTab && (w.target = "_blank")), /* @__PURE__ */ a.jsx(
6703
+ }, d.openInNewTab && (w.target = "_blank")), /* @__PURE__ */ a.jsx(
6704
6704
  "li",
6705
6705
  {
6706
6706
  className: S("card-wrapper text-medium", _, s, {
6707
6707
  "has-link": j,
6708
6708
  "no-link": !j,
6709
- "has-image": u.banner
6709
+ "has-image": d.banner
6710
6710
  }),
6711
6711
  "data-testid": `${g}-card`,
6712
6712
  children: Y.createElement(
@@ -6718,34 +6718,34 @@ const Go = {
6718
6718
  {
6719
6719
  className: "card-label",
6720
6720
  contentType: g,
6721
- customIcon: u.customIcon,
6722
- customLabel: u.customLabel
6721
+ customIcon: d.customIcon,
6722
+ customLabel: d.customLabel
6723
6723
  }
6724
6724
  ),
6725
- u.startDate && !u.isOngoingEvent && /* @__PURE__ */ a.jsx(
6725
+ d.startDate && !d.isOngoingEvent && /* @__PURE__ */ a.jsx(
6726
6726
  Bt,
6727
6727
  {
6728
6728
  size: "small",
6729
- variant: u.dateHasPassed ? "default" : "information",
6729
+ variant: d.dateHasPassed ? "default" : "information",
6730
6730
  "data-testid": "date",
6731
- children: u.dateHasPassed ? o.formatMessage({ id: "card_ended" }) : zi(u.startDate)
6731
+ children: d.dateHasPassed ? o.formatMessage({ id: "card_ended" }) : zi(d.startDate)
6732
6732
  }
6733
6733
  ),
6734
- u.banner ? /* @__PURE__ */ a.jsxs("p", { className: "img", children: [
6735
- u.registered && /* @__PURE__ */ a.jsx(Bt, { size: "small", variant: "registered", children: o.formatMessage({ id: "card_registered" }) }),
6736
- /* @__PURE__ */ a.jsx(xt, { image: u.banner })
6734
+ d.banner ? /* @__PURE__ */ a.jsxs("p", { className: "img", children: [
6735
+ d.registered && /* @__PURE__ */ a.jsx(Bt, { size: "small", variant: "registered", children: o.formatMessage({ id: "card_registered" }) }),
6736
+ /* @__PURE__ */ a.jsx(xt, { image: d.banner })
6737
6737
  ] }) : _ === "people" ? /* @__PURE__ */ a.jsx(
6738
6738
  He,
6739
6739
  {
6740
- name: u.title || "",
6741
- src: u.profile,
6740
+ name: d.title || "",
6741
+ src: d.profile,
6742
6742
  "data-testid": "people-profile-picture"
6743
6743
  }
6744
6744
  ) : null,
6745
- u.contributors && /* @__PURE__ */ a.jsx(
6745
+ d.contributors && /* @__PURE__ */ a.jsx(
6746
6746
  xa,
6747
6747
  {
6748
- contributors: { data: u.contributors },
6748
+ contributors: { data: d.contributors },
6749
6749
  styling: {
6750
6750
  size: "small",
6751
6751
  showGap: _ !== "question",
@@ -6754,17 +6754,17 @@ const Go = {
6754
6754
  "data-testid": "contributors"
6755
6755
  }
6756
6756
  ),
6757
- u.partner && /* @__PURE__ */ a.jsx("p", { className: "partners", "data-testid": "partners", children: Je(u.partner.title, T.partner) }),
6757
+ d.partner && /* @__PURE__ */ a.jsx("p", { className: "partners", "data-testid": "partners", children: Je(d.partner.title, T.partner) }),
6758
6758
  /* Text */
6759
6759
  ["title", "text", "secondaryText"].map((D) => {
6760
- const R = u[D];
6760
+ const R = d[D];
6761
6761
  if (!R)
6762
6762
  return null;
6763
6763
  const W = Li(D);
6764
6764
  return /* @__PURE__ */ a.jsx("p", { className: W, "data-testid": W, children: Je(R, T[D]) }, D);
6765
6765
  }),
6766
- /* @__PURE__ */ a.jsx(Yo, { type: _ || "", data: u }),
6767
- /* @__PURE__ */ a.jsx(Ko, { data: u, cta: r, link: j || "", gtmContext: i })
6766
+ /* @__PURE__ */ a.jsx(Yo, { type: _ || "", data: d }),
6767
+ /* @__PURE__ */ a.jsx(Ko, { data: d, cta: r, link: j || "", gtmContext: i })
6768
6768
  ] })
6769
6769
  )
6770
6770
  }
@@ -6823,16 +6823,16 @@ const ec = ({
6823
6823
  className: s,
6824
6824
  gtmContext: o
6825
6825
  }) => {
6826
- const c = K(), [f, l] = te({
6826
+ const c = K(), [f, u] = te({
6827
6827
  cardsPerPage: 4,
6828
6828
  isLoading: !0
6829
- }), { cardsPerPage: d, isLoading: u } = f, [m, p] = te({
6829
+ }), { cardsPerPage: l, isLoading: d } = f, [m, p] = te({
6830
6830
  currentPage: 0,
6831
6831
  loadedPages: [0]
6832
- }), { currentPage: g, loadedPages: b } = m, _ = e.length, v = Math.ceil(_ / d), y = pe(null), j = yt(!0, !0, y == null ? void 0 : y.current);
6832
+ }), { currentPage: g, loadedPages: y } = m, _ = e.length, v = Math.ceil(_ / l), b = pe(null), j = yt(!0, !0, b == null ? void 0 : b.current);
6833
6833
  ae(() => {
6834
6834
  let M = 1;
6835
- j && (j >= _n.fourCards ? M = 4 : j >= _n.threeCards ? M = 3 : j >= _n.twoCards && (M = 2), M > _ && (M = _)), l((O) => ({
6835
+ j && (j >= _n.fourCards ? M = 4 : j >= _n.threeCards ? M = 3 : j >= _n.twoCards && (M = 2), M > _ && (M = _)), u((O) => ({
6836
6836
  ...O,
6837
6837
  cardsPerPage: M,
6838
6838
  isLoading: !1
@@ -6855,7 +6855,7 @@ const ec = ({
6855
6855
  p((C) => ({
6856
6856
  ...C,
6857
6857
  currentPage: O,
6858
- loadedPages: [.../* @__PURE__ */ new Set([...b, O])]
6858
+ loadedPages: [.../* @__PURE__ */ new Set([...y, O])]
6859
6859
  }));
6860
6860
  }, w = (M) => {
6861
6861
  Nt = M.touches[0].clientX;
@@ -6867,10 +6867,10 @@ const ec = ({
6867
6867
  }, R = {
6868
6868
  "--width": `${j || 0}px`,
6869
6869
  "--total-cards": _,
6870
- "--cards-per-page": d,
6870
+ "--cards-per-page": l,
6871
6871
  "--page": g
6872
6872
  };
6873
- if (u)
6873
+ if (d)
6874
6874
  return /* @__PURE__ */ a.jsx(ba, { layout: `carousel${i ? "-with-title" : ""}` });
6875
6875
  const W = (M, O) => {
6876
6876
  var E;
@@ -6880,7 +6880,7 @@ const ec = ({
6880
6880
  return /* @__PURE__ */ a.jsxs(
6881
6881
  "section",
6882
6882
  {
6883
- ref: y,
6883
+ ref: b,
6884
6884
  className: S("carousel-wrapper", s),
6885
6885
  "data-testid": "carousel",
6886
6886
  children: [
@@ -6895,7 +6895,7 @@ const ec = ({
6895
6895
  "data-testid": "carousel-list",
6896
6896
  children: e.map((M, O) => {
6897
6897
  let C = W(M, O);
6898
- return C && Jo(O, d, g, b) ? /* @__PURE__ */ a.jsx(
6898
+ return C && Jo(O, l, g, y) ? /* @__PURE__ */ a.jsx(
6899
6899
  Ia,
6900
6900
  {
6901
6901
  id: C,
@@ -6971,8 +6971,8 @@ const ec = ({
6971
6971
  className: r = "",
6972
6972
  ...i
6973
6973
  }) => !t || !t.length ? null : t.map(
6974
- ({ title: s, viewAllUrl: o, cards: c, cardsTypes: f }, l) => {
6975
- const d = s ? window.btoa(s) : `carousel-${l}`, u = l === t.length - 1;
6974
+ ({ title: s, viewAllUrl: o, cards: c, cardsTypes: f }, u) => {
6975
+ const l = s ? window.btoa(s) : `carousel-${u}`, d = u === t.length - 1;
6976
6976
  return e ? /* @__PURE__ */ a.jsxs(gt, { children: [
6977
6977
  /* @__PURE__ */ a.jsx(
6978
6978
  ba,
@@ -6981,8 +6981,8 @@ const ec = ({
6981
6981
  "data-testid": "carousel-placeholder"
6982
6982
  }
6983
6983
  ),
6984
- u ? null : /* @__PURE__ */ a.jsx(Oe, {})
6985
- ] }, `placeholder-${d}`) : /* @__PURE__ */ a.jsxs(gt, { children: [
6984
+ d ? null : /* @__PURE__ */ a.jsx(Oe, {})
6985
+ ] }, `placeholder-${l}`) : /* @__PURE__ */ a.jsxs(gt, { children: [
6986
6986
  /* @__PURE__ */ a.jsx(
6987
6987
  ec,
6988
6988
  {
@@ -6992,8 +6992,8 @@ const ec = ({
6992
6992
  ...i
6993
6993
  }
6994
6994
  ),
6995
- u ? null : /* @__PURE__ */ a.jsx(Oe, {})
6996
- ] }, `carousel-${d}`);
6995
+ d ? null : /* @__PURE__ */ a.jsx(Oe, {})
6996
+ ] }, `carousel-${l}`);
6997
6997
  }
6998
6998
  );
6999
6999
  const xn = "joinCommunityButton", La = ({
@@ -7003,28 +7003,28 @@ const xn = "joinCommunityButton", La = ({
7003
7003
  }, leave: () => {
7004
7004
  } }
7005
7005
  }) => {
7006
- const i = K(), s = Ce(De), o = s && typeof s.id == "string", [c, f] = te(t), [l, d] = te(t ? "joined" : "notJoined");
7006
+ const i = K(), s = Ce(De), o = s && typeof s.id == "string", [c, f] = te(t), [u, l] = te(t ? "joined" : "notJoined");
7007
7007
  ae(() => {
7008
- l === "joining" ? d("joined") : l === "leaving" && d("notJoined");
7008
+ u === "joining" ? l("joined") : u === "leaving" && l("notJoined");
7009
7009
  }, [c]);
7010
- const u = {}, m = {};
7011
- return c && l !== "leaving" && (u["data-hover-text"] = i.formatMessage({ id: `${xn}_leave` }), u["aria-label"] = i.formatMessage({ id: `${xn}_member_aria` }), m["aria-hidden"] = "true"), /* @__PURE__ */ a.jsx(
7010
+ const d = {}, m = {};
7011
+ return c && u !== "leaving" && (d["data-hover-text"] = i.formatMessage({ id: `${xn}_leave` }), d["aria-label"] = i.formatMessage({ id: `${xn}_member_aria` }), m["aria-hidden"] = "true"), /* @__PURE__ */ a.jsx(
7012
7012
  ie,
7013
7013
  {
7014
7014
  variant: c ? "secondary" : "primary",
7015
7015
  size: "medium",
7016
7016
  styling: { fullWidth: !0 },
7017
- icon: c && l !== "leaving" ? { icon: "tick", position: "left" } : !1,
7017
+ icon: c && u !== "leaving" ? { icon: "tick", position: "left" } : !1,
7018
7018
  onClick: async (p) => {
7019
- o && (p.currentTarget.blur(), c ? (d("leaving"), typeof r == "function" && await r()) : (d("joining"), typeof n == "function" && await n()), f(!c));
7019
+ o && (p.currentTarget.blur(), c ? (l("leaving"), typeof r == "function" && await r()) : (l("joining"), typeof n == "function" && await n()), f(!c));
7020
7020
  },
7021
- className: S("join-community-button", l, {
7022
- active: l === "joining"
7021
+ className: S("join-community-button", u, {
7022
+ active: u === "joining"
7023
7023
  }),
7024
7024
  disabled: !o,
7025
- ...u,
7025
+ ...d,
7026
7026
  children: /* @__PURE__ */ a.jsx("span", { className: "text", ...m, children: i.formatMessage({
7027
- id: `${xn}${["joining", "leaving"].includes(l) ? `_${l}` : c ? "_member" : e ? "_short" : ""}`
7027
+ id: `${xn}${["joining", "leaving"].includes(u) ? `_${u}` : c ? "_member" : e ? "_short" : ""}`
7028
7028
  }) })
7029
7029
  }
7030
7030
  );
@@ -7036,28 +7036,28 @@ const wn = "communityDetails_", Kl = ({
7036
7036
  members: { number: r = 0, data: i = [] } = { number: 0, data: [] },
7037
7037
  functions: { invite: s, ...o }
7038
7038
  }) => {
7039
- const c = K(), f = 5, l = r || i.length, d = i.length ? i : Array(f).fill({}), u = `/communities/${n}/members` === window.location.pathname;
7039
+ const c = K(), f = 5, u = r || i.length, l = i.length ? i : Array(f).fill({}), d = `/communities/${n}/members` === window.location.pathname;
7040
7040
  return /* @__PURE__ */ a.jsxs("div", { className: S("community-details", t), children: [
7041
7041
  /* @__PURE__ */ a.jsx(Oe, {}),
7042
7042
  /* @__PURE__ */ a.jsxs("div", { className: "member-details", children: [
7043
7043
  /* @__PURE__ */ a.jsxs("div", { className: "top", children: [
7044
7044
  /* @__PURE__ */ a.jsxs("h4", { children: [
7045
7045
  c.formatMessage({ id: `${wn}members` }),
7046
- /* @__PURE__ */ a.jsx("span", { className: "count", children: l })
7046
+ /* @__PURE__ */ a.jsx("span", { className: "count", children: u })
7047
7047
  ] }),
7048
- !u && /* @__PURE__ */ a.jsx("p", { className: "text-small", children: /* @__PURE__ */ a.jsx("a", { href: `/communities/${n}/members`, children: c.formatMessage({ id: `${wn}viewAll` }) }) })
7048
+ !d && /* @__PURE__ */ a.jsx("p", { className: "text-small", children: /* @__PURE__ */ a.jsx("a", { href: `/communities/${n}/members`, children: c.formatMessage({ id: `${wn}viewAll` }) }) })
7049
7049
  ] }),
7050
7050
  /* @__PURE__ */ a.jsx(
7051
7051
  xa,
7052
7052
  {
7053
7053
  contributors: {
7054
7054
  total: r,
7055
- data: d
7055
+ data: l
7056
7056
  },
7057
7057
  styling: {
7058
7058
  size: "medium",
7059
7059
  showGap: !0,
7060
- showPlaceholders: l === 0
7060
+ showPlaceholders: u === 0
7061
7061
  },
7062
7062
  cutoff: f
7063
7063
  }
@@ -7114,27 +7114,27 @@ const Ql = ({
7114
7114
  text: typeof e != "boolean" && e.text || s.formatMessage({ id: "filters_all" })
7115
7115
  },
7116
7116
  ...t
7117
- ] : t, [c, f] = te(e ? ["all"] : []), l = (d, u) => {
7117
+ ] : t, [c, f] = te(e ? ["all"] : []), u = (l, d) => {
7118
7118
  let m = [];
7119
- c.includes(d) ? m = c.filter((p) => p !== d) : d === "all" ? m = ["all"] : n ? m = [...c.filter((p) => p !== "all"), d] : m = [d], f((p) => (r && typeof r == "function" && r({ current: m, previous: p }), m)), u && typeof u == "function" && u();
7119
+ c.includes(l) ? m = c.filter((p) => p !== l) : l === "all" ? m = ["all"] : n ? m = [...c.filter((p) => p !== "all"), l] : m = [l], f((p) => (r && typeof r == "function" && r({ current: m, previous: p }), m)), d && typeof d == "function" && d();
7120
7120
  };
7121
- return /* @__PURE__ */ a.jsx("ul", { className: S("filters", i), children: o.map(({ id: d, text: u, disabled: m = !1, callback: p = () => {
7121
+ return /* @__PURE__ */ a.jsx("ul", { className: S("filters", i), children: o.map(({ id: l, text: d, disabled: m = !1, callback: p = () => {
7122
7122
  } }) => {
7123
7123
  let g = {};
7124
7124
  return m && (g = {
7125
7125
  disabled: !0,
7126
- "aria-label": s.formatMessage({ id: "filters_disabled" }, { name: u })
7126
+ "aria-label": s.formatMessage({ id: "filters_disabled" }, { name: d })
7127
7127
  }), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
7128
7128
  "button",
7129
7129
  {
7130
- className: S(d, { selected: c.includes(d) }),
7131
- onClick: (b) => {
7132
- b.preventDefault(), b.stopPropagation(), l(d, p);
7130
+ className: S(l, { selected: c.includes(l) }),
7131
+ onClick: (y) => {
7132
+ y.preventDefault(), y.stopPropagation(), u(l, p);
7133
7133
  },
7134
7134
  ...g,
7135
- children: u
7135
+ children: d
7136
7136
  }
7137
- ) }, d);
7137
+ ) }, l);
7138
7138
  }) });
7139
7139
  }, tc = (t, e) => {
7140
7140
  const n = String(t);
@@ -7162,33 +7162,33 @@ const jn = {
7162
7162
  label: c,
7163
7163
  className: f = ""
7164
7164
  }) => {
7165
- const l = K(), [d, u] = te(t);
7165
+ const u = K(), [l, d] = te(t);
7166
7166
  if (ae(() => {
7167
- t !== d && u(t);
7167
+ t !== l && d(t);
7168
7168
  }, [t]), !r || !Object.values(r).some(
7169
- (b) => b && b.post_name
7169
+ (y) => y && y.post_name
7170
7170
  ))
7171
7171
  return null;
7172
- const p = Object.keys(r), g = d !== t;
7172
+ const p = Object.keys(r), g = l !== t;
7173
7173
  return /* @__PURE__ */ a.jsxs("div", { className: S("language-switcher text-small", o, f), children: [
7174
7174
  /* @__PURE__ */ a.jsxs("nav", { children: [
7175
- o !== "short" && /* @__PURE__ */ a.jsx("p", { children: c || l.formatMessage({ id: `${Pt}label` }) }),
7176
- /* @__PURE__ */ a.jsx("ul", { children: p.map((b) => {
7177
- if (!jn[b])
7175
+ o !== "short" && /* @__PURE__ */ a.jsx("p", { children: c || u.formatMessage({ id: `${Pt}label` }) }),
7176
+ /* @__PURE__ */ a.jsx("ul", { children: p.map((y) => {
7177
+ if (!jn[y])
7178
7178
  return null;
7179
- let _ = { className: b };
7180
- return d === b ? _["aria-label"] = l.formatMessage(
7179
+ let _ = { className: y };
7180
+ return l === y ? _["aria-label"] = u.formatMessage(
7181
7181
  { id: `${Pt}selected` },
7182
- { language: jn[b] }
7182
+ { language: jn[y] }
7183
7183
  ) : _ = {
7184
7184
  ..._,
7185
- href: tc(b, s),
7185
+ href: tc(y, s),
7186
7186
  onClick: (v) => {
7187
- v.preventDefault(), v.stopPropagation(), u(b), i(b);
7187
+ v.preventDefault(), v.stopPropagation(), d(y), i(y);
7188
7188
  }
7189
- }, /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(tt, { ..._, fallbackElement: "span", children: jn[b] }) }, b);
7189
+ }, /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(tt, { ..._, fallbackElement: "span", children: jn[y] }) }, y);
7190
7190
  }) }),
7191
- o !== "short" && !g && /* @__PURE__ */ a.jsx("p", { children: l.formatMessage({
7191
+ o !== "short" && !g && /* @__PURE__ */ a.jsx("p", { children: u.formatMessage({
7192
7192
  id: `${Pt}translation_${e ? "original" : n ? "human" : "machine"}`
7193
7193
  }) })
7194
7194
  ] }),
@@ -7196,13 +7196,13 @@ const jn = {
7196
7196
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
7197
7197
  // @ts-ignore
7198
7198
  // `values` are throwing a type error: https://github.com/formatjs/formatjs/issues/3633
7199
- children: l.formatMessage(
7199
+ children: u.formatMessage(
7200
7200
  { id: `${Pt}disclaimer` },
7201
7201
  {
7202
7202
  email: ut.support,
7203
- link: (b) => {
7204
- const _ = `mailto:${b}`;
7205
- return /* @__PURE__ */ a.jsx("a", { href: _, children: b });
7203
+ link: (y) => {
7204
+ const _ = `mailto:${y}`;
7205
+ return /* @__PURE__ */ a.jsx("a", { href: _, children: y });
7206
7206
  }
7207
7207
  }
7208
7208
  )
@@ -7224,17 +7224,17 @@ const kn = _i({ locale: "en", messages: Vn }), tn = ({
7224
7224
  error: kn.formatMessage({ id: "loadMore_error" })
7225
7225
  },
7226
7226
  className: f = "",
7227
- gtmContext: l = "LoadMore"
7227
+ gtmContext: u = "LoadMore"
7228
7228
  }) => {
7229
- const [d, u] = te(""), m = async (p) => {
7229
+ const [l, d] = te(""), m = async (p) => {
7230
7230
  if (!n)
7231
7231
  try {
7232
7232
  await e(p);
7233
7233
  } catch (g) {
7234
- g instanceof Error ? u(g.message) : u("Unknown error");
7234
+ g instanceof Error ? d(g.message) : d("Unknown error");
7235
7235
  }
7236
7236
  };
7237
- return !d && !t && !c.endOfFeed ? null : /* @__PURE__ */ a.jsx("footer", { className: S("load-more", f), children: !d && t ? /* @__PURE__ */ a.jsx(
7237
+ return !l && !t && !c.endOfFeed ? null : /* @__PURE__ */ a.jsx("footer", { className: S("load-more", f), children: !l && t ? /* @__PURE__ */ a.jsx(
7238
7238
  ie,
7239
7239
  {
7240
7240
  variant: r,
@@ -7242,14 +7242,14 @@ const kn = _i({ locale: "en", messages: Vn }), tn = ({
7242
7242
  styling: s,
7243
7243
  icon: o,
7244
7244
  onClick: m,
7245
- "data-gtm-event-context": l,
7245
+ "data-gtm-event-context": u,
7246
7246
  "data-gtm-event-type": "load-more-click",
7247
7247
  disabled: n,
7248
7248
  className: "gtm-trackable",
7249
7249
  "data-testid": "load-more-button",
7250
7250
  children: c.button
7251
7251
  }
7252
- ) : c.endOfFeed && (!d || d != null && d.includes("Cannot read items")) ? /* @__PURE__ */ a.jsx("p", { children: c.endOfFeed }) : d && /* @__PURE__ */ a.jsx("p", { className: "error", children: c.error }) });
7252
+ ) : c.endOfFeed && (!l || l != null && l.includes("Cannot read items")) ? /* @__PURE__ */ a.jsx("p", { children: c.endOfFeed }) : l && /* @__PURE__ */ a.jsx("p", { className: "error", children: c.error }) });
7253
7253
  };
7254
7254
  const Ba = ({
7255
7255
  variant: t = "default",
@@ -7274,8 +7274,8 @@ const nc = ({
7274
7274
  }) => {
7275
7275
  const i = K(), s = pe(
7276
7276
  null
7277
- ), [o, c] = te(!1), f = (l) => {
7278
- s.current && l.target instanceof HTMLElement && !s.current.contains(l.target) && c(!1);
7277
+ ), [o, c] = te(!1), f = (u) => {
7278
+ s.current && u.target instanceof HTMLElement && !s.current.contains(u.target) && c(!1);
7279
7279
  };
7280
7280
  return ae(() => (document.addEventListener("click", f, !0), () => {
7281
7281
  document.removeEventListener("click", f, !0);
@@ -7296,11 +7296,11 @@ const nc = ({
7296
7296
  screenreaderText: i.formatMessage({ id: "moreMenu" })
7297
7297
  }
7298
7298
  ),
7299
- /* @__PURE__ */ a.jsx("ul", { id: e, hidden: !o, children: n.map(({ href: l, onClick: d, text: u, icon: m, ...p }, g) => {
7300
- const b = {
7299
+ /* @__PURE__ */ a.jsx("ul", { id: e, hidden: !o, children: n.map(({ href: u, onClick: l, text: d, icon: m, ...p }, g) => {
7300
+ const y = {
7301
7301
  ...p,
7302
7302
  onClick: (_) => {
7303
- c(!1), typeof d == "function" && d(_);
7303
+ c(!1), typeof l == "function" && l(_);
7304
7304
  },
7305
7305
  onFocus: () => {
7306
7306
  Mt && (clearTimeout(Mt), Mt = !1);
@@ -7311,16 +7311,16 @@ const nc = ({
7311
7311
  }, 100);
7312
7312
  }
7313
7313
  };
7314
- return l && (b.href = l), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
7314
+ return u && (y.href = u), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
7315
7315
  ie,
7316
7316
  {
7317
7317
  variant: "tertiary",
7318
7318
  size: "medium",
7319
7319
  icon: m ? { icon: m, position: "left" } : !1,
7320
- ...b,
7321
- children: u
7320
+ ...y,
7321
+ children: d
7322
7322
  }
7323
- ) }, `${window.btoa(u)}_${g}`);
7323
+ ) }, `${window.btoa(d)}_${g}`);
7324
7324
  }) })
7325
7325
  ] })
7326
7326
  });
@@ -7437,91 +7437,91 @@ const oc = "shareLinks_", Xl = ({
7437
7437
  const c = K(), f = sc({ title: t, link: e, referrer: n });
7438
7438
  return /* @__PURE__ */ a.jsxs("aside", { className: S("share-links", i, s, o), children: [
7439
7439
  /* @__PURE__ */ a.jsx("p", { className: "text-small", children: c.formatMessage({ id: "shareLinks_label" }) }),
7440
- /* @__PURE__ */ a.jsx("ul", { children: f.map(({ key: l, icon: d, url: u, shouldRender: m = !0, onClick: p }) => {
7440
+ /* @__PURE__ */ a.jsx("ul", { children: f.map(({ key: u, icon: l, url: d, shouldRender: m = !0, onClick: p }) => {
7441
7441
  if (typeof m == "function" && !m())
7442
7442
  return null;
7443
7443
  const g = {};
7444
- return p && (g.onClick = (b) => p(b, u)), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
7444
+ return p && (g.onClick = (y) => p(y, d)), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
7445
7445
  ie,
7446
7446
  {
7447
7447
  size: i,
7448
7448
  variant: "tertiary",
7449
- icon: { icon: d || l },
7450
- href: u,
7449
+ icon: { icon: l || u },
7450
+ href: d,
7451
7451
  target: "_blank",
7452
7452
  rel: "noopener noreferrer",
7453
7453
  className: "gtm-trackable",
7454
7454
  "data-gtm-event-context": `${r}-SocialButtons`,
7455
- "data-gtm-event-type": `${l}-click`,
7455
+ "data-gtm-event-type": `${u}-click`,
7456
7456
  "data-testid": "link",
7457
- screenreaderText: c.formatMessage({ id: `${oc}link_${l}` }),
7457
+ screenreaderText: c.formatMessage({ id: `${oc}link_${u}` }),
7458
7458
  ...g
7459
7459
  }
7460
- ) }, l);
7460
+ ) }, u);
7461
7461
  }) })
7462
7462
  ] });
7463
7463
  };
7464
- const eu = ({ tabs: t, className: e = "" }) => {
7465
- var f;
7466
- const n = (l, d, u) => (l || (l = `panel-${window.btoa(d)}-${u}`), l);
7467
- let r = t.findIndex((l) => l.current === !0);
7468
- if (r < 0 && (r = 0), window.location.hash) {
7464
+ const eu = ({ tabs: t, className: e = "", preventLocationChange: n }) => {
7465
+ var u;
7466
+ const r = (l, d, m) => (l || (l = `panel-${window.btoa(d)}-${m}`), l);
7467
+ let i = t.findIndex((l) => l.current === !0);
7468
+ if (i < 0 && (i = 0), window.location.hash) {
7469
7469
  const l = window.location.hash.replace("#", "");
7470
- if (t.find((u) => u.id === l)) {
7471
- for (let u = 0; u < t.length; u++)
7472
- if (n(t[u].id, t[u].text, u) === l) {
7473
- r = u;
7470
+ if (t.find((m) => m.id === l)) {
7471
+ for (let m = 0; m < t.length; m++)
7472
+ if (r(t[m].id, t[m].text, m) === l) {
7473
+ i = m;
7474
7474
  break;
7475
7475
  }
7476
7476
  }
7477
7477
  }
7478
- const [i, s] = te(
7479
- (f = t[r]) != null && f.id ? t[r].id : n(t[r].id, t[r].text, r)
7478
+ const [s, o] = te(
7479
+ (u = t[i]) != null && u.id ? t[i].id : r(t[i].id, t[i].text, i)
7480
7480
  );
7481
7481
  ae(() => {
7482
- if (t[r].hasCarousel) {
7482
+ if (t[i].hasCarousel) {
7483
7483
  const l = new CustomEvent("hiddenSectionVisible", {
7484
- detail: { id: i }
7484
+ detail: { id: s }
7485
7485
  });
7486
7486
  window.dispatchEvent(l);
7487
7487
  }
7488
- }, [i]);
7489
- const o = [], c = [];
7490
- return t.forEach(({ id: l, text: d, content: u, href: m, hasCarousel: p }, g) => {
7491
- l = n(l, d, g);
7492
- const b = i === l, _ = {};
7493
- m || (_["aria-controls"] = l, _.onClick = (v) => {
7494
- v.preventDefault(), v.stopPropagation(), s(l), window.location.hash = `#${l}`;
7495
- }, c.push(
7488
+ }, [s]);
7489
+ const c = [], f = [];
7490
+ return t.forEach(({ id: l, text: d, content: m, href: p, hasCarousel: g }, y) => {
7491
+ l = r(l, d, y);
7492
+ const _ = s === l, v = {};
7493
+ p || (v["aria-controls"] = l, v.onClick = (b) => {
7494
+ b.preventDefault(), b.stopPropagation(), o(l), !n && (window.location.hash = `#${l}`);
7495
+ }, f.push(
7496
7496
  /* @__PURE__ */ a.jsx(
7497
7497
  "section",
7498
7498
  {
7499
7499
  id: l,
7500
- hidden: !b,
7500
+ hidden: !_,
7501
7501
  role: "tabpanel",
7502
7502
  "aria-labelledby": `tab-${l}`,
7503
- "aria-live": b ? "assertive" : "off",
7504
- children: typeof u == "string" ? /* @__PURE__ */ a.jsx("p", { children: u }) : u
7503
+ "aria-live": _ ? "assertive" : "off",
7504
+ children: typeof m == "string" ? /* @__PURE__ */ a.jsx("p", { children: m }) : m
7505
7505
  },
7506
7506
  `section-${l}`
7507
7507
  )
7508
- )), o.push(
7508
+ )), c.push(
7509
7509
  /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
7510
7510
  "a",
7511
7511
  {
7512
- href: m || `#${l}`,
7512
+ href: p || `#${l}`,
7513
7513
  id: `tab-${l}`,
7514
- className: S({ selected: b }),
7514
+ className: S({ selected: _ }),
7515
7515
  role: "tab",
7516
- "aria-selected": b,
7517
- ..._,
7516
+ "aria-selected": _,
7517
+ ...v,
7518
7518
  children: d
7519
7519
  }
7520
7520
  ) }, `tab-${l}`)
7521
7521
  );
7522
7522
  }), /* @__PURE__ */ a.jsxs("div", { className: S("tabs-wrapper", e), children: [
7523
- /* @__PURE__ */ a.jsx("ul", { className: "tabs", role: "tablist", children: o }),
7524
- /* @__PURE__ */ a.jsx("div", { className: "tab-content", children: c })
7523
+ /* @__PURE__ */ a.jsx("ul", { className: "tabs", role: "tablist", children: c }),
7524
+ /* @__PURE__ */ a.jsx("div", { className: "tab-content", children: f })
7525
7525
  ] });
7526
7526
  };
7527
7527
  const cc = {
@@ -7588,26 +7588,26 @@ const Sn = "cookieBanner_", Cn = [
7588
7588
  const t = K(), [e, n, r] = aa(Cn), [i, s] = te(
7589
7589
  !e["apol-cookie-banner"]
7590
7590
  ), o = () => {
7591
- Cn.forEach((d) => {
7592
- n(d, !0, {
7591
+ Cn.forEach((l) => {
7592
+ n(l, !0, {
7593
7593
  path: "/",
7594
7594
  expires: $n,
7595
- domain: d === "apolitical-performance-cookie-consent" ? ".apolitical.co" : void 0
7595
+ domain: l === "apolitical-performance-cookie-consent" ? ".apolitical.co" : void 0
7596
7596
  });
7597
7597
  }), s(!1), window.location.reload();
7598
7598
  }, c = () => {
7599
7599
  n("apol-cookie-banner", !0, {
7600
7600
  path: "/",
7601
7601
  expires: $n
7602
- }), Cn.forEach((d) => {
7603
- if (d === "apol-cookie-banner") {
7604
- n(d, !0, {
7602
+ }), Cn.forEach((l) => {
7603
+ if (l === "apol-cookie-banner") {
7604
+ n(l, !0, {
7605
7605
  path: "/",
7606
7606
  expires: $n
7607
7607
  });
7608
7608
  return;
7609
7609
  }
7610
- r(d);
7610
+ r(l);
7611
7611
  }), s(!1);
7612
7612
  };
7613
7613
  if (!i)
@@ -7616,21 +7616,21 @@ const Sn = "cookieBanner_", Cn = [
7616
7616
  { id: "settings", href: "/pages/cookie-policy", gtmType: "policy-page" },
7617
7617
  { id: "reject", onClick: c, gtmType: "reject-all" },
7618
7618
  { id: "accept", onClick: o, gtmType: "accepted-all" }
7619
- ], l = [];
7620
- return f.forEach((d) => {
7621
- l.push({
7622
- variant: d.href ? "tertiary" : "primary",
7623
- href: d.href,
7624
- onClick: d.onClick,
7619
+ ], u = [];
7620
+ return f.forEach((l) => {
7621
+ u.push({
7622
+ variant: l.href ? "tertiary" : "primary",
7623
+ href: l.href,
7624
+ onClick: l.onClick,
7625
7625
  className: "gtm-trackable",
7626
7626
  "data-gtm-event-context": "cookie-banner",
7627
- "data-gtm-event-type": `cookie-${d.gtmType}-click`,
7628
- children: t.formatMessage({ id: `${Sn}buttons_${d.id}` })
7627
+ "data-gtm-event-type": `cookie-${l.gtmType}-click`,
7628
+ children: t.formatMessage({ id: `${Sn}buttons_${l.id}` })
7629
7629
  });
7630
7630
  }), /* @__PURE__ */ a.jsxs("aside", { id: "cookie-banner", className: "text-medium", children: [
7631
7631
  /* @__PURE__ */ a.jsx("h6", { children: t.formatMessage({ id: `${Sn}title` }) }),
7632
7632
  /* @__PURE__ */ a.jsx("p", { children: t.formatMessage({ id: `${Sn}text` }) }),
7633
- /* @__PURE__ */ a.jsx(_t, { buttons: l })
7633
+ /* @__PURE__ */ a.jsx(_t, { buttons: u })
7634
7634
  ] });
7635
7635
  }, Me = {
7636
7636
  platform: {
@@ -8001,52 +8001,52 @@ const Qe = "footer_", Yt = "SiteFooter", Hr = ({ group: t }) => {
8001
8001
  const o = K(), c = ia(Kt, t);
8002
8002
  if (!c || c.onlyShow && (c.onlyShow === "logged-in" && !e || c.onlyShow === "logged-out" && e))
8003
8003
  return null;
8004
- const f = "doTrack" in c, l = s === null ? f ? c.doTrack : !0 : s, d = t.includes("buttons.");
8005
- let u = `header_${t.replaceAll(".", "_")}`;
8006
- c.hasVariantText && (u += `_logged${e ? "In" : "Out"}`);
8004
+ const f = "doTrack" in c, u = s === null ? f ? c.doTrack : !0 : s, l = t.includes("buttons.");
8005
+ let d = `header_${t.replaceAll(".", "_")}`;
8006
+ c.hasVariantText && (d += `_logged${e ? "In" : "Out"}`);
8007
8007
  let m = !1;
8008
8008
  if (c.href) {
8009
- let y = c.gtmType || `${t}-click`;
8010
- if (y.includes(".")) {
8011
- const j = y.split("."), T = j[j.length - 2];
8012
- y = `${T === "topics" ? `${T}-` : ""}${j[j.length - 1]}`;
8009
+ let b = c.gtmType || `${t}-click`;
8010
+ if (b.includes(".")) {
8011
+ const j = b.split("."), T = j[j.length - 2];
8012
+ b = `${T === "topics" ? `${T}-` : ""}${j[j.length - 1]}`;
8013
8013
  }
8014
8014
  m = {
8015
8015
  href: c.href,
8016
8016
  role: "menuitem"
8017
- }, l && (m = {
8017
+ }, u && (m = {
8018
8018
  ...m,
8019
8019
  className: "gtm-trackable",
8020
- "data-gtm-event-type": y,
8020
+ "data-gtm-event-type": b,
8021
8021
  "data-gtm-event-context": "HeaderButtons"
8022
- }), d && (m = {
8022
+ }), l && (m = {
8023
8023
  ...m,
8024
8024
  variant: "secondary",
8025
8025
  size: { mobile: "small", 881: "large" },
8026
8026
  ...c.props || {}
8027
8027
  });
8028
8028
  }
8029
- const p = c.order && c.order[0] && c[c.order[0]], g = p && c[c.order[0]].order, b = m && window.location.pathname === c.href;
8029
+ const p = c.order && c.order[0] && c[c.order[0]], g = p && c[c.order[0]].order, y = m && window.location.pathname === c.href;
8030
8030
  let _ = {}, v = {};
8031
8031
  if (p) {
8032
- const y = c.menuId || t, j = {
8033
- onClick: (T) => fe.events.onClick(T, { id: y, callback: i, isOpen: r[y] }),
8034
- onFocus: () => fe.events.onFocus({ id: y }),
8035
- onBlur: () => fe.events.onBlur({ id: y, callback: i }),
8036
- onMouseLeave: () => fe.events.onBlur({ id: y, callback: i }),
8037
- onMouseEnter: () => fe.events.onMouseEnter({ id: y, callback: i })
8032
+ const b = c.menuId || t, j = {
8033
+ onClick: (T) => fe.events.onClick(T, { id: b, callback: i, isOpen: r[b] }),
8034
+ onFocus: () => fe.events.onFocus({ id: b }),
8035
+ onBlur: () => fe.events.onBlur({ id: b, callback: i }),
8036
+ onMouseLeave: () => fe.events.onBlur({ id: b, callback: i }),
8037
+ onMouseEnter: () => fe.events.onMouseEnter({ id: b, callback: i })
8038
8038
  };
8039
8039
  n && (g && (_ = {
8040
8040
  ...j,
8041
8041
  onKeyPress: (T) => {
8042
- T.key === "Enter" && fe.events.onClick(T, { id: y, callback: i, isOpen: r[y] });
8042
+ T.key === "Enter" && fe.events.onClick(T, { id: b, callback: i, isOpen: r[b] });
8043
8043
  },
8044
8044
  tabIndex: "0",
8045
8045
  // Add a `tabIndex` so keyboard users can focus on the `li`
8046
8046
  "aria-haspopup": !0,
8047
- "aria-expanded": r[y],
8048
- "aria-controls": y
8049
- }), v = { hidden: y in r ? !r[y] : !0 }), g || (v = {
8047
+ "aria-expanded": r[b],
8048
+ "aria-controls": b
8049
+ }), v = { hidden: b in r ? !r[b] : !0 }), g || (v = {
8050
8050
  ...v,
8051
8051
  ...j
8052
8052
  });
@@ -8058,52 +8058,52 @@ const Qe = "footer_", Yt = "SiteFooter", Hr = ({ group: t }) => {
8058
8058
  [c.className]: c.className,
8059
8059
  "has-submenu": p,
8060
8060
  parent: g,
8061
- active: b
8061
+ active: y
8062
8062
  }),
8063
8063
  role: "none",
8064
8064
  ..._,
8065
8065
  children: [
8066
8066
  m ? Y.createElement(
8067
- d ? ie : "a",
8067
+ l ? ie : "a",
8068
8068
  m,
8069
- o.formatMessage({ id: u })
8070
- ) : o.formatMessage({ id: u }),
8071
- c.order && /* @__PURE__ */ a.jsx("ul", { ...v, children: c.order.map((y) => {
8072
- if (!c[y])
8069
+ o.formatMessage({ id: d })
8070
+ ) : o.formatMessage({ id: d }),
8071
+ c.order && /* @__PURE__ */ a.jsx("ul", { ...v, children: c.order.map((b) => {
8072
+ if (!c[b])
8073
8073
  return null;
8074
8074
  const j = {
8075
8075
  isLoggedIn: e,
8076
8076
  isDesktopVersion: n,
8077
8077
  menus: r,
8078
8078
  callback: i,
8079
- doTrack: f ? l : null
8079
+ doTrack: f ? u : null
8080
8080
  };
8081
- return c[y].order ? /* @__PURE__ */ a.jsxs(
8081
+ return c[b].order ? /* @__PURE__ */ a.jsxs(
8082
8082
  "li",
8083
8083
  {
8084
8084
  className: S({
8085
- [c[y].className]: c[y].className
8085
+ [c[b].className]: c[b].className
8086
8086
  }),
8087
8087
  children: [
8088
- o.formatMessage({ id: `${u}_${y}` }),
8089
- /* @__PURE__ */ a.jsx("ul", { children: c[y].order.map((T) => /* @__PURE__ */ a.jsx(
8088
+ o.formatMessage({ id: `${d}_${b}` }),
8089
+ /* @__PURE__ */ a.jsx("ul", { children: c[b].order.map((T) => /* @__PURE__ */ a.jsx(
8090
8090
  Gt,
8091
8091
  {
8092
- id: `${t}.${y}.${T}`,
8092
+ id: `${t}.${b}.${T}`,
8093
8093
  ...j
8094
8094
  },
8095
8095
  T
8096
8096
  )) })
8097
8097
  ]
8098
8098
  },
8099
- y
8099
+ b
8100
8100
  ) : /* @__PURE__ */ a.jsx(
8101
8101
  Gt,
8102
8102
  {
8103
- id: `${t}.${y}`,
8103
+ id: `${t}.${b}`,
8104
8104
  ...j
8105
8105
  },
8106
- y
8106
+ b
8107
8107
  );
8108
8108
  }) })
8109
8109
  ]
@@ -8122,38 +8122,38 @@ const dc = { height: 67, height_desktop: 83 }, Ua = ({ showNavigation: t = !0 })
8122
8122
  navigation: { desktop: !1, default: !1 },
8123
8123
  account: { desktop: !1, default: !1 }
8124
8124
  }
8125
- }), { headerIsVisible: f, menus: l, focusElements: d } = o;
8125
+ }), { headerIsVisible: f, menus: u, focusElements: l } = o;
8126
8126
  Di({
8127
8127
  scrollPosition: dc[`height${s.navigation ? "_desktop" : ""}`],
8128
8128
  callbacks: {
8129
8129
  scrollUp: () => {
8130
- !s && l.navigation || fe.shouldChangeHeaderIsVisible(!0, l, c);
8130
+ !s && u.navigation || fe.shouldChangeHeaderIsVisible(!0, u, c);
8131
8131
  },
8132
8132
  scrollDown: () => {
8133
- !s && l.navigation || fe.shouldChangeHeaderIsVisible(!1, l, c);
8133
+ !s && u.navigation || fe.shouldChangeHeaderIsVisible(!1, u, c);
8134
8134
  }
8135
8135
  }
8136
8136
  });
8137
- const u = (p, g) => {
8138
- fe.handleMenus({ id: p, value: g, menus: l, dispatch: c });
8137
+ const d = (p, g) => {
8138
+ fe.handleMenus({ id: p, value: g, menus: u, dispatch: c });
8139
8139
  }, m = pe(null);
8140
8140
  return vt(() => {
8141
- l.navigation && fe.autoFocus({
8141
+ u.navigation && fe.autoFocus({
8142
8142
  menu: "navigation",
8143
8143
  navigationRef: m,
8144
8144
  isDesktopVersion: s.navigation,
8145
- focusElements: d,
8145
+ focusElements: l,
8146
8146
  dispatch: c
8147
8147
  });
8148
- }, [l.navigation]), vt(() => {
8149
- l.account && fe.autoFocus({
8148
+ }, [u.navigation]), vt(() => {
8149
+ u.account && fe.autoFocus({
8150
8150
  menu: "account",
8151
8151
  navigationRef: m,
8152
8152
  isDesktopVersion: s.navigation,
8153
- focusElements: d,
8153
+ focusElements: l,
8154
8154
  dispatch: c
8155
8155
  });
8156
- }, [l.account]), n && n.isLoading ? null : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
8156
+ }, [u.account]), n && n.isLoading ? null : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
8157
8157
  /* @__PURE__ */ a.jsxs(
8158
8158
  "nav",
8159
8159
  {
@@ -8179,15 +8179,15 @@ const dc = { height: 67, height_desktop: 83 }, Ua = ({ showNavigation: t = !0 })
8179
8179
  {
8180
8180
  className: "menu-button gtm-trackable",
8181
8181
  onClick: (p) => {
8182
- p.preventDefault(), p.stopPropagation(), u("navigation", !l.navigation);
8182
+ p.preventDefault(), p.stopPropagation(), d("navigation", !u.navigation);
8183
8183
  },
8184
8184
  "data-gtm-event-type": "open-tab-menu-click",
8185
8185
  "data-gtm-event-context": "HeaderLeft-Chevron",
8186
8186
  "aria-haspopup": "true",
8187
- "aria-expanded": l.navigation,
8187
+ "aria-expanded": u.navigation,
8188
8188
  "aria-controls": "navigation",
8189
8189
  children: /* @__PURE__ */ a.jsx(be, { children: e.formatMessage({
8190
- id: `header_menu_${l.navigation ? "hide" : "show"}`
8190
+ id: `header_menu_${u.navigation ? "hide" : "show"}`
8191
8191
  }) })
8192
8192
  }
8193
8193
  ),
@@ -8196,17 +8196,17 @@ const dc = { height: 67, height_desktop: 83 }, Ua = ({ showNavigation: t = !0 })
8196
8196
  {
8197
8197
  ref: m,
8198
8198
  id: "navigation",
8199
- hidden: s.navigation || l.account ? !1 : !l.navigation,
8199
+ hidden: s.navigation || u.account ? !1 : !u.navigation,
8200
8200
  role: "menu",
8201
- "data-showing": !s.navigation && l.account ? "account" : "default",
8201
+ "data-showing": !s.navigation && u.account ? "account" : "default",
8202
8202
  children: Kt.order.map((p) => /* @__PURE__ */ a.jsx(
8203
8203
  Gt,
8204
8204
  {
8205
8205
  id: p,
8206
8206
  isLoggedIn: i,
8207
8207
  isDesktopVersion: s.navigation,
8208
- menus: { navigation: l.navigation, account: l.account },
8209
- callback: u
8208
+ menus: { navigation: u.navigation, account: u.account },
8209
+ callback: d
8210
8210
  },
8211
8211
  p
8212
8212
  ))
@@ -8217,16 +8217,16 @@ const dc = { height: 67, height_desktop: 83 }, Ua = ({ showNavigation: t = !0 })
8217
8217
  {
8218
8218
  className: "search toggle-search-button",
8219
8219
  onClick: (p) => {
8220
- p.preventDefault(), p.stopPropagation(), u("search", !l.search);
8220
+ p.preventDefault(), p.stopPropagation(), d("search", !u.search);
8221
8221
  },
8222
8222
  "aria-haspopup": "true",
8223
- "aria-expanded": l.search,
8223
+ "aria-expanded": u.search,
8224
8224
  "aria-controls": "search-form",
8225
8225
  children: /* @__PURE__ */ a.jsx(
8226
8226
  be,
8227
8227
  {
8228
8228
  children: e.formatMessage({
8229
- id: `header_search_${l.search ? "hide" : "show"}`
8229
+ id: `header_search_${u.search ? "hide" : "show"}`
8230
8230
  })
8231
8231
  }
8232
8232
  )
@@ -8237,7 +8237,7 @@ const dc = { height: 67, height_desktop: 83 }, Ua = ({ showNavigation: t = !0 })
8237
8237
  {
8238
8238
  id: "global-search",
8239
8239
  handleToggle: {
8240
- searchIsOpen: l.search,
8240
+ searchIsOpen: u.search,
8241
8241
  isDesktopVersion: s.search
8242
8242
  },
8243
8243
  gtmContext: "search-bar-header",
@@ -8250,17 +8250,17 @@ const dc = { height: 67, height_desktop: 83 }, Ua = ({ showNavigation: t = !0 })
8250
8250
  className: "account-button",
8251
8251
  onClick: (p) => fe.events.onClick(p, {
8252
8252
  id: "account",
8253
- callback: u,
8254
- isOpen: l.account
8253
+ callback: d,
8254
+ isOpen: u.account
8255
8255
  }),
8256
- onMouseEnter: () => fe.events.onMouseEnter({ id: "account", callback: u }),
8257
- onMouseLeave: () => fe.events.onBlur({ id: "account", callback: u }),
8256
+ onMouseEnter: () => fe.events.onMouseEnter({ id: "account", callback: d }),
8257
+ onMouseLeave: () => fe.events.onBlur({ id: "account", callback: d }),
8258
8258
  "aria-haspopup": "true",
8259
- "aria-expanded": l.account,
8259
+ "aria-expanded": u.account,
8260
8260
  "aria-controls": "navigation",
8261
8261
  children: [
8262
8262
  /* @__PURE__ */ a.jsx(be, { children: e.formatMessage({
8263
- id: `header_account_${l.account ? "hide" : "show"}`
8263
+ id: `header_account_${u.account ? "hide" : "show"}`
8264
8264
  }) }),
8265
8265
  /* @__PURE__ */ a.jsx(
8266
8266
  He,
@@ -8281,7 +8281,7 @@ const dc = { height: 67, height_desktop: 83 }, Ua = ({ showNavigation: t = !0 })
8281
8281
  "div",
8282
8282
  {
8283
8283
  className: S("overlay", {
8284
- open: l.navigation || l.account || !s.search && l.search
8284
+ open: u.navigation || u.account || !s.search && u.search
8285
8285
  })
8286
8286
  }
8287
8287
  )
@@ -8309,31 +8309,31 @@ const fc = () => {
8309
8309
  className: o = "",
8310
8310
  locale: c = "en"
8311
8311
  }) => {
8312
- const { navigation: f = !0, footer: l = !0 } = i, { background: d = "default", variant: u = "default", circle: m = "default" } = s, p = Oi();
8312
+ const { navigation: f = !0, footer: u = !0 } = i, { background: l = "default", variant: d = "default", circle: m = "default" } = s, p = Oi();
8313
8313
  ae(() => {
8314
8314
  window.scrollTo(0, 0);
8315
8315
  }, [p]);
8316
- const g = At(t, { locale: c }), b = At(e, {
8316
+ const g = At(t, { locale: c }), y = At(e, {
8317
8317
  locale: c
8318
8318
  }), _ = At(n, {
8319
8319
  locale: c
8320
8320
  }), v = {};
8321
- return d !== "default" && (v[d] = !0), u !== "default" && (v[u] = !0), m !== "default" && (v[m] = !0), /* @__PURE__ */ a.jsx(Si, { onError: r, fallback: /* @__PURE__ */ a.jsx(fc, {}), children: /* @__PURE__ */ a.jsx(vi, { fallback: null, children: /* @__PURE__ */ a.jsxs(
8321
+ return l !== "default" && (v[l] = !0), d !== "default" && (v[d] = !0), m !== "default" && (v[m] = !0), /* @__PURE__ */ a.jsx(Si, { onError: r, fallback: /* @__PURE__ */ a.jsx(fc, {}), children: /* @__PURE__ */ a.jsx(vi, { fallback: null, children: /* @__PURE__ */ a.jsxs(
8322
8322
  "div",
8323
8323
  {
8324
8324
  id: "wrapper",
8325
- className: S(o, v, { "has-footer": l }),
8325
+ className: S(o, v, { "has-footer": u }),
8326
8326
  children: [
8327
8327
  /* @__PURE__ */ a.jsx(Ua, { showNavigation: f }),
8328
8328
  /* @__PURE__ */ a.jsxs("section", { id: "content-wrapper", children: [
8329
- b && /* @__PURE__ */ a.jsx("div", { className: "additional-content prepended", children: b }),
8330
- Y.createElement(d === "bold" ? Da : "div", {
8329
+ y && /* @__PURE__ */ a.jsx("div", { className: "additional-content prepended", children: y }),
8330
+ Y.createElement(l === "bold" ? Da : "div", {
8331
8331
  id: "content",
8332
8332
  children: g
8333
8333
  })
8334
8334
  ] }),
8335
8335
  _ && /* @__PURE__ */ a.jsx("div", { className: "additional-content appended", children: _ }),
8336
- l && /* @__PURE__ */ a.jsx(qa, {}),
8336
+ u && /* @__PURE__ */ a.jsx(qa, {}),
8337
8337
  /* @__PURE__ */ a.jsx(uc, {})
8338
8338
  ]
8339
8339
  }
@@ -8382,29 +8382,29 @@ const ru = ({
8382
8382
  if (!t || t.length < 1)
8383
8383
  return null;
8384
8384
  const f = [];
8385
- return t.forEach((l) => {
8386
- if (!l)
8385
+ return t.forEach((u) => {
8386
+ if (!u)
8387
8387
  return;
8388
- const d = pc.getTagDetails(l);
8389
- d && f.push(d);
8388
+ const l = pc.getTagDetails(u);
8389
+ l && f.push(l);
8390
8390
  }), f.length < 1 ? null : /* @__PURE__ */ a.jsx(
8391
8391
  "ul",
8392
8392
  {
8393
8393
  className: S("tags text-small", e, i, {
8394
8394
  "one-line": n
8395
8395
  }),
8396
- children: f.map((l) => {
8397
- const d = c.formatMessage({ id: l.text });
8398
- return /* @__PURE__ */ a.jsx("li", { children: l.href && r ? /* @__PURE__ */ a.jsx(
8396
+ children: f.map((u) => {
8397
+ const l = c.formatMessage({ id: u.text });
8398
+ return /* @__PURE__ */ a.jsx("li", { children: u.href && r ? /* @__PURE__ */ a.jsx(
8399
8399
  "a",
8400
8400
  {
8401
- href: l.href,
8401
+ href: u.href,
8402
8402
  className: "gtm-trackable",
8403
8403
  "data-gtm-event-type": s,
8404
8404
  "data-gtm-event-context": o,
8405
- children: d
8405
+ children: l
8406
8406
  }
8407
- ) : d }, l.id);
8407
+ ) : l }, u.id);
8408
8408
  })
8409
8409
  }
8410
8410
  );
@@ -8424,10 +8424,10 @@ const au = ({
8424
8424
  c.formatMessage({ id: "membersList" }),
8425
8425
  /* @__PURE__ */ a.jsx("span", { className: "count", children: e })
8426
8426
  ] }),
8427
- /* @__PURE__ */ a.jsx("ul", { children: t.map((f, l) => /* @__PURE__ */ a.jsxs("li", { children: [
8427
+ /* @__PURE__ */ a.jsx("ul", { children: t.map((f, u) => /* @__PURE__ */ a.jsxs("li", { children: [
8428
8428
  /* @__PURE__ */ a.jsx(Jn, { member: f, gtmContext: i, gtmType: s }),
8429
8429
  f.isAdmin && /* @__PURE__ */ a.jsx(Bt, { children: c.formatMessage({ id: "membersList_admin" }) })
8430
- ] }, l)) }),
8430
+ ] }, u)) }),
8431
8431
  n && /* @__PURE__ */ a.jsx(
8432
8432
  tn,
8433
8433
  {
@@ -8451,23 +8451,23 @@ const iu = ({
8451
8451
  className: c = ""
8452
8452
  }) => {
8453
8453
  const f = K();
8454
- let l = i ? n : r;
8455
- l > 99 ? l = 100 : l < 1 && (l = 0);
8456
- const { highlightPercentage: d = !1 } = o;
8454
+ let u = i ? n : r;
8455
+ u > 99 ? u = 100 : u < 1 && (u = 0);
8456
+ const { highlightPercentage: l = !1 } = o;
8457
8457
  return Y.createElement(t, {
8458
8458
  className: S("course-progression", c, {
8459
- "highlight-percentage": d,
8459
+ "highlight-percentage": l,
8460
8460
  "has-circle-graph": s === "circle"
8461
8461
  }),
8462
8462
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
8463
8463
  /* @__PURE__ */ a.jsx("span", { className: "percentage", children: f.formatMessage(
8464
8464
  { id: "courseProgression_done" },
8465
8465
  {
8466
- percent: (u) => /* @__PURE__ */ a.jsx("strong", { children: u }),
8467
- number: l
8466
+ percent: (d) => /* @__PURE__ */ a.jsx("strong", { children: d }),
8467
+ number: u
8468
8468
  }
8469
8469
  ) }),
8470
- l < 100 && i && /* @__PURE__ */ a.jsx(
8470
+ u < 100 && i && /* @__PURE__ */ a.jsx(
8471
8471
  Gn,
8472
8472
  {
8473
8473
  time: e,
@@ -8477,7 +8477,7 @@ const iu = ({
8477
8477
  /* @__PURE__ */ a.jsx(
8478
8478
  ga,
8479
8479
  {
8480
- progress: l,
8480
+ progress: u,
8481
8481
  styling: {
8482
8482
  layout: s || "bar",
8483
8483
  size: s && s === "circle" ? "small" : "default"
@@ -8526,31 +8526,31 @@ const su = ({
8526
8526
  sectionTime: o,
8527
8527
  slug: c,
8528
8528
  timeLeft: f,
8529
- title: l
8529
+ title: u
8530
8530
  },
8531
- quizScores: d
8531
+ quizScores: l
8532
8532
  }) => {
8533
- const u = K(), m = "courseStructure_", p = l.toLowerCase().includes("course conclusion");
8533
+ const d = K(), m = "courseStructure_", p = u.toLowerCase().includes("course conclusion");
8534
8534
  return /* @__PURE__ */ a.jsxs(
8535
8535
  Kn,
8536
8536
  {
8537
8537
  className: "course-structure",
8538
8538
  label: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
8539
8539
  /* @__PURE__ */ a.jsxs("small", { children: [
8540
- u.formatMessage(
8540
+ d.formatMessage(
8541
8541
  { id: `${m}section${p ? "_end" : ""}` },
8542
8542
  { number: s }
8543
8543
  ),
8544
8544
  " ",
8545
- !r && o >= 0 && /* @__PURE__ */ a.jsx("span", { className: "time", children: i && f === 0 ? u.formatMessage({ id: `${m}time_completed` }) : /* @__PURE__ */ a.jsx(
8545
+ !r && o >= 0 && /* @__PURE__ */ a.jsx("span", { className: "time", children: i && f === 0 ? d.formatMessage({ id: `${m}time_completed` }) : /* @__PURE__ */ a.jsx(
8546
8546
  Gn,
8547
8547
  {
8548
8548
  time: o,
8549
- appendedText: i ? u.formatMessage({ id: `${m}time_left` }) : ""
8549
+ appendedText: i ? d.formatMessage({ id: `${m}time_left` }) : ""
8550
8550
  }
8551
8551
  ) })
8552
8552
  ] }),
8553
- /* @__PURE__ */ a.jsx("h3", { children: l })
8553
+ /* @__PURE__ */ a.jsx("h3", { children: u })
8554
8554
  ] }),
8555
8555
  shouldAnimate: !0,
8556
8556
  children: [
@@ -8558,10 +8558,10 @@ const su = ({
8558
8558
  /* @__PURE__ */ a.jsx("ol", { children: t && t.length > 0 && t.map(
8559
8559
  ({
8560
8560
  completed: g,
8561
- completionTime: b,
8561
+ completionTime: y,
8562
8562
  contentType: _,
8563
8563
  icon: v,
8564
- image: y,
8564
+ image: b,
8565
8565
  isIntroduction: j,
8566
8566
  optional: T,
8567
8567
  slug: w,
@@ -8570,7 +8570,7 @@ const su = ({
8570
8570
  type: W
8571
8571
  }) => {
8572
8572
  const M = i && e || j, O = {};
8573
- return y && (O.style = { "--image": `url(${y})` }), /* @__PURE__ */ a.jsx(
8573
+ return b && (O.style = { "--image": `url(${b})` }), /* @__PURE__ */ a.jsx(
8574
8574
  "li",
8575
8575
  {
8576
8576
  className: S({
@@ -8603,11 +8603,11 @@ const su = ({
8603
8603
  /* @__PURE__ */ a.jsx(
8604
8604
  gc,
8605
8605
  {
8606
- completionTime: b,
8606
+ completionTime: y,
8607
8607
  icon: v,
8608
8608
  optional: T,
8609
8609
  type: W,
8610
- children: d && d[w] && /* @__PURE__ */ a.jsx("span", { className: "quiz-score", children: `${d[w]}%` })
8610
+ children: l && l[w] && /* @__PURE__ */ a.jsx("span", { className: "quiz-score", children: `${l[w]}%` })
8611
8611
  }
8612
8612
  )
8613
8613
  ] })
@@ -8679,13 +8679,13 @@ const we = "discussion_form_", nr = ({
8679
8679
  create: { projectNames: ["questions-answers"] }
8680
8680
  }
8681
8681
  },
8682
- gtmContext: l = "DiscussionForm"
8682
+ gtmContext: u = "DiscussionForm"
8683
8683
  }) => {
8684
8684
  var O, C, E;
8685
- const d = K(), u = Ce(De), [m, p] = te(
8685
+ const l = K(), d = Ce(De), [m, p] = te(
8686
8686
  n.isEditing && n.isEditing.text || ""
8687
- ), [g, b] = te(c.error || !1), [_, v] = te(!1), y = pe(null);
8688
- if (r || (r = y), n.isLoading)
8687
+ ), [g, y] = te(c.error || !1), [_, v] = te(!1), b = pe(null);
8688
+ if (r || (r = b), n.isLoading)
8689
8689
  return /* @__PURE__ */ a.jsx(
8690
8690
  Te,
8691
8691
  {
@@ -8697,17 +8697,17 @@ const we = "discussion_form_", nr = ({
8697
8697
  const $ = x.target.value;
8698
8698
  p($);
8699
8699
  let L;
8700
- !u || !u.id ? L = Se(
8701
- d.formatMessage,
8700
+ !d || !d.id ? L = Se(
8701
+ l.formatMessage,
8702
8702
  `${we}error_loggedOut`,
8703
8703
  t.type,
8704
8704
  "action"
8705
8705
  ) : e ? $.length >= s && (L = `${we}error_tooLong`) : L = Se(
8706
- d.formatMessage,
8706
+ l.formatMessage,
8707
8707
  `${we}error_noPermission`,
8708
8708
  t.type,
8709
8709
  "action"
8710
- ), L ? b(L) : g && b(!1);
8710
+ ), L ? y(L) : g && y(!1);
8711
8711
  };
8712
8712
  let T = `${t.type}-form`;
8713
8713
  if (t.type === "response" || t.type === "reply") {
@@ -8716,7 +8716,7 @@ const we = "discussion_form_", nr = ({
8716
8716
  }
8717
8717
  const w = async (x) => {
8718
8718
  var L;
8719
- if (x.preventDefault(), x.stopPropagation(), !u || !u.id || !e || R)
8719
+ if (x.preventDefault(), x.stopPropagation(), !d || !d.id || !e || R)
8720
8720
  return;
8721
8721
  Rt && clearTimeout(Rt), v("submitting");
8722
8722
  const $ = window.location.pathname;
@@ -8729,20 +8729,20 @@ const we = "discussion_form_", nr = ({
8729
8729
  case "question":
8730
8730
  U = await f.create({
8731
8731
  title: m,
8732
- authorId: u && u.id,
8732
+ authorId: d && d.id,
8733
8733
  ...(L = f.props) == null ? void 0 : L.create
8734
8734
  });
8735
8735
  break;
8736
8736
  case "response":
8737
8737
  U = await f.create(
8738
8738
  { question: t.slugs.question },
8739
- { body: m, authorId: u && u.id, contentPath: $ }
8739
+ { body: m, authorId: d && d.id, contentPath: $ }
8740
8740
  );
8741
8741
  break;
8742
8742
  case "reply":
8743
8743
  U = await f.create(
8744
8744
  { question: t.slugs.question, answer: t.slugs.answer },
8745
- { body: m, authorId: u && u.id, contentPath: $ }
8745
+ { body: m, authorId: d && d.id, contentPath: $ }
8746
8746
  );
8747
8747
  break;
8748
8748
  default:
@@ -8757,20 +8757,20 @@ const we = "discussion_form_", nr = ({
8757
8757
  const I = U;
8758
8758
  let Z = `${we}error`;
8759
8759
  I != null && I.message.includes("entry already exists") && (Z = Se(
8760
- d.formatMessage,
8760
+ l.formatMessage,
8761
8761
  `${we}error_alreadyExists`,
8762
8762
  t.type,
8763
8763
  "action"
8764
8764
  )), I != null && I.message.includes("429") ? Z = Se(
8765
- d.formatMessage,
8765
+ l.formatMessage,
8766
8766
  `${we}error_tooMany`,
8767
8767
  t.type,
8768
8768
  "action"
8769
- ) : I != null && I.message.includes("400") && (Z = `${we}error`), b(Z), D();
8769
+ ) : I != null && I.message.includes("400") && (Z = `${we}error`), y(Z), D();
8770
8770
  }
8771
8771
  }, D = () => {
8772
8772
  Rt = setTimeout(() => {
8773
- b(!1), v(!1);
8773
+ y(!1), v(!1);
8774
8774
  }, 5e3);
8775
8775
  }, R = !m || !Ji(m), W = _ === "submitting", M = [];
8776
8776
  return (n.isEditing && !W || c.cancel) && M.push({
@@ -8778,28 +8778,28 @@ const we = "discussion_form_", nr = ({
8778
8778
  size: { mobile: "small", 600: "medium" },
8779
8779
  onClick: f.handleCancel,
8780
8780
  className: "gtm-trackable",
8781
- "data-gtm-event-context": l,
8781
+ "data-gtm-event-context": u,
8782
8782
  "data-gtm-event-type": `cancel-${t.type}-click`,
8783
- disabled: !c.cancel && (!u || !u.id || !m),
8784
- children: d.formatMessage({ id: `${we}cancel` })
8783
+ disabled: !c.cancel && (!d || !d.id || !m),
8784
+ children: l.formatMessage({ id: `${we}cancel` })
8785
8785
  }), M.push({
8786
8786
  variant: "primary",
8787
8787
  size: { mobile: "small", 600: "medium" },
8788
8788
  onClick: (x) => {
8789
8789
  if (n.isEditing) {
8790
8790
  v("submitting"), f.handleSaveEdit && f.handleSaveEdit(
8791
- y.current && "value" in y.current ? y.current.value : ""
8791
+ b.current && "value" in b.current ? b.current.value : ""
8792
8792
  );
8793
8793
  return;
8794
8794
  }
8795
8795
  w(x);
8796
8796
  },
8797
8797
  className: "gtm-trackable",
8798
- "data-gtm-event-context": l,
8798
+ "data-gtm-event-context": u,
8799
8799
  "data-gtm-event-type": `${n.isEditing ? "save" : "submit"}-${t.type}-click`,
8800
8800
  "data-testid": "save-button",
8801
- disabled: !u || !u.id || !e || R || W || n.isEditing && m === n.isEditing.text,
8802
- children: d.formatMessage({
8801
+ disabled: !d || !d.id || !e || R || W || n.isEditing && m === n.isEditing.text,
8802
+ children: l.formatMessage({
8803
8803
  id: `${we}${W ? n.isEditing ? "saving" : "posting" : n.isEditing ? "save" : "post"}`
8804
8804
  })
8805
8805
  }), /* @__PURE__ */ a.jsxs(
@@ -8811,16 +8811,16 @@ const we = "discussion_form_", nr = ({
8811
8811
  }),
8812
8812
  "data-testid": `discussion-${t.type}-form`,
8813
8813
  children: [
8814
- (n == null ? void 0 : n.showTitle) && !n.isEditing && ["question"].includes(t.type) && /* @__PURE__ */ a.jsx("h2", { children: Se(d.formatMessage, `${we}title`, t.type, "action") }),
8814
+ (n == null ? void 0 : n.showTitle) && !n.isEditing && ["question"].includes(t.type) && /* @__PURE__ */ a.jsx("h2", { children: Se(l.formatMessage, `${we}title`, t.type, "action") }),
8815
8815
  /* @__PURE__ */ a.jsx(
8816
8816
  Jn,
8817
8817
  {
8818
- member: u || "community",
8819
- gtmContext: l,
8818
+ member: d || "community",
8819
+ gtmContext: u,
8820
8820
  gtmType: "profile-click"
8821
8821
  }
8822
8822
  ),
8823
- /* @__PURE__ */ a.jsx(be, { element: "label", showOnFocus: !1, htmlFor: `${T}-input`, children: Se(d.formatMessage, `${we}label`, t.type, "action") }),
8823
+ /* @__PURE__ */ a.jsx(be, { element: "label", showOnFocus: !1, htmlFor: `${T}-input`, children: Se(l.formatMessage, `${we}label`, t.type, "action") }),
8824
8824
  /* @__PURE__ */ a.jsx(
8825
8825
  Ci,
8826
8826
  {
@@ -8828,7 +8828,7 @@ const we = "discussion_form_", nr = ({
8828
8828
  id: `${T}-input`,
8829
8829
  name: t.type,
8830
8830
  placeholder: i || Se(
8831
- d.formatMessage,
8831
+ l.formatMessage,
8832
8832
  `${we}placeholder`,
8833
8833
  t.type,
8834
8834
  "action"
@@ -8842,14 +8842,14 @@ const we = "discussion_form_", nr = ({
8842
8842
  autoFocus: !!n.isEditing
8843
8843
  }
8844
8844
  ),
8845
- /* @__PURE__ */ a.jsx("small", { children: Se(d.formatMessage, `${we}explainer`, t.type, "action", {
8845
+ /* @__PURE__ */ a.jsx("small", { children: Se(l.formatMessage, `${we}explainer`, t.type, "action", {
8846
8846
  a: (x) => /* @__PURE__ */ a.jsx(
8847
8847
  "a",
8848
8848
  {
8849
8849
  href: "https://about.apolitical.co/q-and-a-community-guidelines",
8850
8850
  target: "_blank",
8851
8851
  className: "gtm-trackable",
8852
- "data-gtm-event-context": l,
8852
+ "data-gtm-event-context": u,
8853
8853
  "data-gtm-event-type": "community-guidelines-link",
8854
8854
  rel: "noreferrer",
8855
8855
  children: x
@@ -8857,11 +8857,11 @@ const we = "discussion_form_", nr = ({
8857
8857
  )
8858
8858
  }) }),
8859
8859
  /* @__PURE__ */ a.jsx(_t, { buttons: M }),
8860
- _ === "submitted" && n.showSuccessMessage && /* @__PURE__ */ a.jsx(qt, { className: "success", "data-testid": "success", children: Se(d.formatMessage, `${we}success`, t.type, "action") }),
8861
- g && /* @__PURE__ */ a.jsx(qt, { id: "error-message", className: "error", "data-testid": "error", children: c.error ? c.error : typeof g == "string" ? g.includes(" ") ? g : d.formatMessage(
8860
+ _ === "submitted" && n.showSuccessMessage && /* @__PURE__ */ a.jsx(qt, { className: "success", "data-testid": "success", children: Se(l.formatMessage, `${we}success`, t.type, "action") }),
8861
+ g && /* @__PURE__ */ a.jsx(qt, { id: "error-message", className: "error", "data-testid": "error", children: c.error ? c.error : typeof g == "string" ? g.includes(" ") ? g : l.formatMessage(
8862
8862
  { id: g },
8863
8863
  {
8864
- action: d.formatMessage({
8864
+ action: l.formatMessage({
8865
8865
  id: `discussion_action_${t.type}`
8866
8866
  }),
8867
8867
  maxLength: s
@@ -8885,7 +8885,7 @@ const we = "discussion_form_", nr = ({
8885
8885
  }
8886
8886
  }
8887
8887
  );
8888
- const { content: o, functions: c, meta: f, ...l } = t;
8888
+ const { content: o, functions: c, meta: f, ...u } = t;
8889
8889
  return /* @__PURE__ */ a.jsx(
8890
8890
  nr,
8891
8891
  {
@@ -8893,7 +8893,7 @@ const we = "discussion_form_", nr = ({
8893
8893
  functions: { ...c, create: (c == null ? void 0 : c.create) || (() => {
8894
8894
  }) },
8895
8895
  meta: { ...f, isEditing: (f == null ? void 0 : f.isEditing) || !1, showSuccessMessage: !1 },
8896
- ...l
8896
+ ...u
8897
8897
  }
8898
8898
  );
8899
8899
  }, vc = {
@@ -8927,11 +8927,11 @@ const Pn = () => {
8927
8927
  }, deleteLike: f = () => {
8928
8928
  } } = {}
8929
8929
  }) => {
8930
- const l = K();
8930
+ const u = K();
8931
8931
  ae(() => {
8932
8932
  p(i);
8933
8933
  }, [i]);
8934
- const [d, u] = te(e), [m, p] = te(i), [g, b] = te(!1), [_, v] = te(!1), y = bt(
8934
+ const [l, d] = te(e), [m, p] = te(i), [g, y] = te(!1), [_, v] = te(!1), b = bt(
8935
8935
  () => _c(n, Mn),
8936
8936
  [n]
8937
8937
  ), j = (w) => {
@@ -8943,17 +8943,17 @@ const Pn = () => {
8943
8943
  }, T = async () => {
8944
8944
  if (Pn(), g || !o)
8945
8945
  return !1;
8946
- let w = m ? d - 1 : d + 1;
8947
- w < 0 && (w = 0), b(!0), u(w), p(!m);
8946
+ let w = m ? l - 1 : l + 1;
8947
+ w < 0 && (w = 0), y(!0), d(w), p(!m);
8948
8948
  try {
8949
8949
  if (s && s.slugs) {
8950
8950
  const D = yc(s.slugs);
8951
8951
  m ? await f(D) : await c(D, { contentPath: window.location.pathname });
8952
8952
  }
8953
8953
  } catch {
8954
- u(e), p(i);
8954
+ d(e), p(i);
8955
8955
  } finally {
8956
- b(!1);
8956
+ y(!1);
8957
8957
  }
8958
8958
  };
8959
8959
  return Y.createElement(t, {
@@ -8983,12 +8983,12 @@ const Pn = () => {
8983
8983
  size: "medium",
8984
8984
  icon: { icon: m ? "heart" : "heart_empty", animate: "bounce" },
8985
8985
  className: S({ "do-animation": m && !i }),
8986
- screenreaderText: o ? l.formatMessage(
8986
+ screenreaderText: o ? u.formatMessage(
8987
8987
  {
8988
8988
  id: `discussion_likes_${m ? "unlike" : "like"}`
8989
8989
  },
8990
8990
  {
8991
- action: l.formatMessage({
8991
+ action: u.formatMessage({
8992
8992
  id: `discussion_action_${s.type}`
8993
8993
  })
8994
8994
  }
@@ -9004,16 +9004,16 @@ const Pn = () => {
9004
9004
  /* @__PURE__ */ a.jsx(
9005
9005
  "span",
9006
9006
  {
9007
- className: S("number-of-likes", { "no-likes": d === 0 }),
9007
+ className: S("number-of-likes", { "no-likes": l === 0 }),
9008
9008
  "data-testid": "number-of-likes",
9009
- children: l.formatMessage(
9009
+ children: u.formatMessage(
9010
9010
  { id: `discussion_likes${r ? "_short" : ""}` },
9011
- { number: d }
9011
+ { number: l }
9012
9012
  )
9013
9013
  }
9014
9014
  ),
9015
9015
  n && /* @__PURE__ */ a.jsx(hs, { isOpen: _, isLoading: n.length === 0, children: n.length && /* @__PURE__ */ a.jsxs("ul", { children: [
9016
- y.map((w) => typeof w == "string" || !w.name ? null : /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
9016
+ b.map((w) => typeof w == "string" || !w.name ? null : /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
9017
9017
  tt,
9018
9018
  {
9019
9019
  href: w.id ? `/profiles/${w.id}` : void 0,
@@ -9023,7 +9023,7 @@ const Pn = () => {
9023
9023
  children: w.name
9024
9024
  }
9025
9025
  ) }, w.id || window.btoa(w.name))),
9026
- e > Mn && /* @__PURE__ */ a.jsx("li", { children: l.formatMessage(
9026
+ e > Mn && /* @__PURE__ */ a.jsx("li", { children: u.formatMessage(
9027
9027
  { id: "discussion_likes_more" },
9028
9028
  { number: e - Mn }
9029
9029
  ) })
@@ -9053,19 +9053,19 @@ const Pe = "discussion_", wc = 280, rn = ({
9053
9053
  updateContent: () => {
9054
9054
  }
9055
9055
  },
9056
- likes: { createLike: l, deleteLike: d } = { createLike: () => {
9056
+ likes: { createLike: u, deleteLike: l } = { createLike: () => {
9057
9057
  }, deleteLike: () => {
9058
9058
  } },
9059
- comments: { openComments: u } = { openComments: () => {
9059
+ comments: { openComments: d } = { openComments: () => {
9060
9060
  } }
9061
9061
  },
9062
9062
  links: m = {},
9063
9063
  className: p,
9064
9064
  gtmContext: g = "DiscussionAnswer",
9065
- children: b,
9065
+ children: y,
9066
9066
  isTruncated: _ = !1
9067
9067
  }) => {
9068
- const v = K(), y = Ce(De), j = Ce(rr), { author: T, canLike: w, createdAt: D, id: R, likes: W = 0, userLiked: M, comments: O = 0 } = e, C = y && y.id && typeof T != "string" && T.id && T.id === y.id || !1, E = typeof w == "boolean" ? w : n ? !C : !1, x = C && (!e.createdAt || Zi(e.createdAt, 10, "seconds")), $ = pe(null), [L, U] = te({
9068
+ const v = K(), b = Ce(De), j = Ce(rr), { author: T, canLike: w, createdAt: D, id: R, likes: W = 0, userLiked: M, comments: O = 0 } = e, C = b && b.id && typeof T != "string" && T.id && T.id === b.id || !1, E = typeof w == "boolean" ? w : n ? !C : !1, x = C && (!e.createdAt || Zi(e.createdAt, 10, "seconds")), $ = pe(null), [L, U] = te({
9069
9069
  body: e && e.body || "",
9070
9070
  isEditing: !1,
9071
9071
  didEdit: e && e.isEdited || !1
@@ -9260,17 +9260,17 @@ const Pe = "discussion_", wc = 280, rn = ({
9260
9260
  canLike: E,
9261
9261
  peopleWhoLiked: e.peopleWhoLiked,
9262
9262
  functions: {
9263
- createLike: l,
9264
- deleteLike: d
9263
+ createLike: u,
9264
+ deleteLike: l
9265
9265
  }
9266
9266
  }
9267
9267
  ),
9268
- !s.comments && (["question", "post"].includes(e.type) || m.comments || typeof u == "function") && /* @__PURE__ */ a.jsxs(
9268
+ !s.comments && (["question", "post"].includes(e.type) || m.comments || typeof d == "function") && /* @__PURE__ */ a.jsxs(
9269
9269
  "li",
9270
9270
  {
9271
9271
  className: "action-button",
9272
9272
  onClick: (F) => {
9273
- F.preventDefault(), F.stopPropagation(), m.comments && (window.location.href = m.comments), typeof u == "function" && u();
9273
+ F.preventDefault(), F.stopPropagation(), m.comments && (window.location.href = m.comments), typeof d == "function" && d();
9274
9274
  },
9275
9275
  children: [
9276
9276
  /* @__PURE__ */ a.jsx(
@@ -9281,7 +9281,7 @@ const Pe = "discussion_", wc = 280, rn = ({
9281
9281
  styling: { muted: !0 },
9282
9282
  icon: { icon: "speech-bubble_square_thick" },
9283
9283
  href: m.comments ? m.comments : !1,
9284
- onClick: m.comments || typeof u != "function" ? !1 : u,
9284
+ onClick: m.comments || typeof d != "function" ? !1 : d,
9285
9285
  className: "gtm-trackable",
9286
9286
  "data-gtm-event-context": g,
9287
9287
  "data-gtm-event-type": `answer-${e.type}-click`,
@@ -9322,7 +9322,7 @@ const Pe = "discussion_", wc = 280, rn = ({
9322
9322
  ]
9323
9323
  }
9324
9324
  ),
9325
- b,
9325
+ y,
9326
9326
  /* @__PURE__ */ a.jsx(
9327
9327
  en,
9328
9328
  {
@@ -9759,14 +9759,14 @@ function Oc({
9759
9759
  const { mutate: o } = je({
9760
9760
  mutationFn: t,
9761
9761
  onMutate: (c) => e((f) => {
9762
- const l = Kr({ activity: $c(c), user: s });
9763
- return Xr(l, f);
9762
+ const u = Kr({ activity: $c(c), user: s });
9763
+ return Xr(u, f);
9764
9764
  }),
9765
9765
  onError: n,
9766
- onSuccess: (c, f, l) => {
9767
- const d = Kr({ activity: c, user: s });
9768
- r.setQueryData(i, Xr(d, l, !0)), setTimeout(() => {
9769
- Va(d.id);
9766
+ onSuccess: (c, f, u) => {
9767
+ const l = Kr({ activity: c, user: s });
9768
+ r.setQueryData(i, Xr(l, u, !0)), setTimeout(() => {
9769
+ Va(l.id);
9770
9770
  }, 0);
9771
9771
  }
9772
9772
  });
@@ -9800,22 +9800,22 @@ function Dc({
9800
9800
  },
9801
9801
  queryKey: o
9802
9802
  }) {
9803
- const c = Wn(), f = Qn(), l = { queryClient: c, queryKey: o }, d = {
9803
+ const c = Wn(), f = Qn(), u = { queryClient: c, queryKey: o }, l = {
9804
9804
  mutationHandlers: {
9805
- error: ar(l),
9806
- mutate: ir(l)
9805
+ error: ar(u),
9806
+ mutate: ir(u)
9807
9807
  },
9808
9808
  user: f,
9809
- ...l
9810
- }, u = Oc({ ...d, mutationFn: t }), m = Ac({ ...d, mutationFn: e }), p = Ic({ ...d, mutationFn: n }), g = Bc({ ...d, mutationFn: i }), b = qc({ ...d, mutationFn: s }), { activities: _, ...v } = Lc({ queryKey: o, queryFn: r });
9809
+ ...u
9810
+ }, d = Oc({ ...l, mutationFn: t }), m = Ac({ ...l, mutationFn: e }), p = Ic({ ...l, mutationFn: n }), g = Bc({ ...l, mutationFn: i }), y = qc({ ...l, mutationFn: s }), { activities: _, ...v } = Lc({ queryKey: o, queryFn: r });
9811
9811
  return {
9812
9812
  activities: _,
9813
9813
  mutations: {
9814
- create: u,
9814
+ create: d,
9815
9815
  edit: m,
9816
9816
  remove: g,
9817
9817
  like: p,
9818
- unlike: b
9818
+ unlike: y
9819
9819
  },
9820
9820
  user: f,
9821
9821
  ...v
@@ -9838,8 +9838,8 @@ function Ic({
9838
9838
  }),
9839
9839
  onError: n,
9840
9840
  onSuccess: (o, { activityId: c }, f) => {
9841
- const l = Jt(c, f);
9842
- l && Qt({ activity: l, reaction: o }), r.setQueryData(i, f);
9841
+ const u = Jt(c, f);
9842
+ u && Qt({ activity: u, reaction: o }), r.setQueryData(i, f);
9843
9843
  }
9844
9844
  });
9845
9845
  return s;
@@ -9937,10 +9937,10 @@ const cu = ({
9937
9937
  const o = K(), {
9938
9938
  activities: c,
9939
9939
  error: f,
9940
- fetchNextPage: l,
9941
- hasNextPage: d,
9942
- isLoading: u,
9943
- mutations: { create: m, edit: p, remove: g, like: b, unlike: _ },
9940
+ fetchNextPage: u,
9941
+ hasNextPage: l,
9942
+ isLoading: d,
9943
+ mutations: { create: m, edit: p, remove: g, like: y, unlike: _ },
9944
9944
  user: v
9945
9945
  } = Dc({
9946
9946
  queryKey: [t, e, "activities"],
@@ -9948,7 +9948,7 @@ const cu = ({
9948
9948
  });
9949
9949
  if (Ya(), f)
9950
9950
  return /* @__PURE__ */ a.jsx(nt, { variant: "error", text: f.message });
9951
- const y = (c == null ? void 0 : c.length) || 0;
9951
+ const b = (c == null ? void 0 : c.length) || 0;
9952
9952
  return /* @__PURE__ */ a.jsxs("section", { children: [
9953
9953
  /* @__PURE__ */ a.jsx(
9954
9954
  za,
@@ -10022,7 +10022,7 @@ const cu = ({
10022
10022
  updateContent: (q, { body: H }) => p({ activityId: w, content: H })
10023
10023
  },
10024
10024
  likes: {
10025
- createLike: () => b({ activityId: w }),
10025
+ createLike: () => y({ activityId: w }),
10026
10026
  deleteLike: () => _({ activityId: w, reactionId: C })
10027
10027
  },
10028
10028
  comments: {
@@ -10032,14 +10032,14 @@ const cu = ({
10032
10032
  isTruncated: !0
10033
10033
  }
10034
10034
  ),
10035
- y > T + 1 && /* @__PURE__ */ a.jsx(Oe, {})
10035
+ b > T + 1 && /* @__PURE__ */ a.jsx(Oe, {})
10036
10036
  ] }, w);
10037
10037
  }),
10038
- !u && /* @__PURE__ */ a.jsx(
10038
+ !d && /* @__PURE__ */ a.jsx(
10039
10039
  tn,
10040
10040
  {
10041
- hasNextPage: d,
10042
- loadNextPage: () => l(),
10041
+ hasNextPage: l,
10042
+ loadNextPage: () => u(),
10043
10043
  icon: { icon: "arrow-down", position: "right" },
10044
10044
  messages: {
10045
10045
  button: o.formatMessage({ id: "loadMore_button" }),
@@ -10610,20 +10610,20 @@ function Zc({
10610
10610
  const { mutate: o } = je({
10611
10611
  mutationFn: t,
10612
10612
  onMutate: (c) => e((f) => {
10613
- const l = Gr({ reply: Nc(c), user: s });
10614
- return ea(l, f, {
10613
+ const u = Gr({ reply: Nc(c), user: s });
10614
+ return ea(u, f, {
10615
10615
  replace: !1,
10616
10616
  append: (c == null ? void 0 : c.replyId) !== void 0
10617
10617
  });
10618
10618
  }),
10619
10619
  onError: n,
10620
- onSuccess: (c, f, l) => {
10621
- const d = Gr({ reply: c, user: s });
10620
+ onSuccess: (c, f, u) => {
10621
+ const l = Gr({ reply: c, user: s });
10622
10622
  r.setQueryData(
10623
10623
  i,
10624
- ea(d, l, { replace: !0, append: (f == null ? void 0 : f.replyId) !== void 0 })
10624
+ ea(l, u, { replace: !0, append: (f == null ? void 0 : f.replyId) !== void 0 })
10625
10625
  ), setTimeout(() => {
10626
- Va(d.id);
10626
+ Va(l.id);
10627
10627
  }, 0);
10628
10628
  }
10629
10629
  });
@@ -10657,22 +10657,22 @@ function Ga({
10657
10657
  },
10658
10658
  queryKey: o
10659
10659
  }) {
10660
- const c = Wn(), f = Qn(), l = { queryClient: c, queryKey: o }, d = {
10660
+ const c = Wn(), f = Qn(), u = { queryClient: c, queryKey: o }, l = {
10661
10661
  mutationHandlers: {
10662
- error: ar(l),
10663
- mutate: ir(l)
10662
+ error: ar(u),
10663
+ mutate: ir(u)
10664
10664
  },
10665
10665
  user: f,
10666
- ...l
10667
- }, u = Zc({ ...d, mutationFn: t }), m = Wc({ ...d, mutationFn: e }), p = Hc({ ...d, mutationFn: n }), g = Yc({ ...d, mutationFn: i }), b = Kc({ ...d, mutationFn: s }), { replies: _, ...v } = Vc({ queryKey: o, queryFn: r });
10666
+ ...u
10667
+ }, d = Zc({ ...l, mutationFn: t }), m = Wc({ ...l, mutationFn: e }), p = Hc({ ...l, mutationFn: n }), g = Yc({ ...l, mutationFn: i }), y = Kc({ ...l, mutationFn: s }), { replies: _, ...v } = Vc({ queryKey: o, queryFn: r });
10668
10668
  return {
10669
10669
  replies: _,
10670
10670
  mutations: {
10671
- create: u,
10671
+ create: d,
10672
10672
  edit: m,
10673
10673
  remove: g,
10674
10674
  like: p,
10675
- unlike: b
10675
+ unlike: y
10676
10676
  },
10677
10677
  user: f,
10678
10678
  ...v
@@ -10695,8 +10695,8 @@ function Hc({
10695
10695
  }),
10696
10696
  onError: n,
10697
10697
  onSuccess: (o, { replyId: c }, f) => {
10698
- const l = Xt(c, f);
10699
- l && Qr({ reply: l, reaction: o }), r.setQueryData(i, f);
10698
+ const u = Xt(c, f);
10699
+ u && Qr({ reply: u, reaction: o }), r.setQueryData(i, f);
10700
10700
  }
10701
10701
  });
10702
10702
  return s;
@@ -10712,7 +10712,7 @@ function Vc({ queryFn: t, queryKey: e }) {
10712
10712
  queryKey: e,
10713
10713
  queryFn: t,
10714
10714
  initialPageParam: { next: "" },
10715
- getNextPageParam: (l) => (l == null ? void 0 : l.next) || null
10715
+ getNextPageParam: (u) => (u == null ? void 0 : u.next) || null
10716
10716
  }), c = el(n), f = `${c.length || 0}${s ? "+" : ""}`;
10717
10717
  return {
10718
10718
  replies: c,
@@ -10808,9 +10808,9 @@ const tl = ({
10808
10808
  replies: o,
10809
10809
  fetchNextPage: c,
10810
10810
  hasNextPage: f,
10811
- isLoading: l,
10812
- mutations: { create: d, edit: u, like: m, remove: p, unlike: g },
10813
- user: b
10811
+ isLoading: u,
10812
+ mutations: { create: l, edit: d, like: m, remove: p, unlike: g },
10813
+ user: y
10814
10814
  } = Ga({
10815
10815
  queryKey: [t, e, n, r, "replies"],
10816
10816
  queryFns: {
@@ -10822,7 +10822,7 @@ const tl = ({
10822
10822
  return /* @__PURE__ */ a.jsx(
10823
10823
  kc,
10824
10824
  {
10825
- loadMore: { isLoading: l, hasNextPage: f, loadNextPage: () => c() },
10825
+ loadMore: { isLoading: u, hasNextPage: f, loadNextPage: () => c() },
10826
10826
  form: {
10827
10827
  content: {
10828
10828
  type: "reply",
@@ -10834,7 +10834,7 @@ const tl = ({
10834
10834
  },
10835
10835
  functions: {
10836
10836
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
10837
- create: (_, { body: v }) => d({ activityId: n, replyId: r, content: v })
10837
+ create: (_, { body: v }) => l({ activityId: n, replyId: r, content: v })
10838
10838
  },
10839
10839
  meta: { isEditing: !1, showSuccessMessage: !1 }
10840
10840
  },
@@ -10842,19 +10842,19 @@ const tl = ({
10842
10842
  var L, U, I, Z, J, k, N, z, q, H, ee, G;
10843
10843
  const {
10844
10844
  id: v,
10845
- own_children: y,
10845
+ own_children: b,
10846
10846
  latest_children: j,
10847
10847
  children_counts: T
10848
- } = _, D = (((L = y == null ? void 0 : y.like) == null ? void 0 : L.length) || 0) > 0 ? (U = y == null ? void 0 : y.like) == null ? void 0 : U.find((V) => {
10848
+ } = _, D = (((L = b == null ? void 0 : b.like) == null ? void 0 : L.length) || 0) > 0 ? (U = b == null ? void 0 : b.like) == null ? void 0 : U.find((V) => {
10849
10849
  var X;
10850
- return ((X = V == null ? void 0 : V.user) == null ? void 0 : X.id) === (b == null ? void 0 : b.id);
10850
+ return ((X = V == null ? void 0 : V.user) == null ? void 0 : X.id) === (y == null ? void 0 : y.id);
10851
10851
  }) : !1, R = D ? D == null ? void 0 : D.id : "", W = !!D, O = (((I = j == null ? void 0 : j.like) == null ? void 0 : I.length) || 0) > 0 ? (Z = j == null ? void 0 : j.like) == null ? void 0 : Z.map((V) => {
10852
10852
  var X, re, F;
10853
10853
  return {
10854
10854
  id: (X = V == null ? void 0 : V.user) == null ? void 0 : X.id,
10855
10855
  name: (F = (re = V == null ? void 0 : V.user) == null ? void 0 : re.data) == null ? void 0 : F.name
10856
10856
  };
10857
- }) : !1, C = _ == null ? void 0 : _.user, E = (C == null ? void 0 : C.id) === (b == null ? void 0 : b.id), x = nn(i, E), $ = typeof _.data.content == "string" ? (J = _ == null ? void 0 : _.data) == null ? void 0 : J.content : (
10857
+ }) : !1, C = _ == null ? void 0 : _.user, E = (C == null ? void 0 : C.id) === (y == null ? void 0 : y.id), x = nn(i, E), $ = typeof _.data.content == "string" ? (J = _ == null ? void 0 : _.data) == null ? void 0 : J.content : (
10858
10858
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
10859
10859
  ((N = (k = _ == null ? void 0 : _.data) == null ? void 0 : k.content) == null ? void 0 : N.text) || ""
10860
10860
  );
@@ -10894,7 +10894,7 @@ const tl = ({
10894
10894
  createContent: () => null,
10895
10895
  deleteContent: () => p({ replyId: v }),
10896
10896
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
10897
- updateContent: (V, { body: X }) => u({ replyId: v, content: X })
10897
+ updateContent: (V, { body: X }) => d({ replyId: v, content: X })
10898
10898
  },
10899
10899
  likes: {
10900
10900
  createLike: () => m({ replyId: v }),
@@ -10917,18 +10917,18 @@ const tl = ({
10917
10917
  }) => {
10918
10918
  const c = K(), {
10919
10919
  replies: f,
10920
- repliesCount: l,
10921
- fetchNextPage: d,
10922
- hasNextPage: u,
10920
+ repliesCount: u,
10921
+ fetchNextPage: l,
10922
+ hasNextPage: d,
10923
10923
  isLoading: m,
10924
- mutations: { create: p, edit: g, like: b, remove: _, unlike: v },
10925
- user: y
10924
+ mutations: { create: p, edit: g, like: y, remove: _, unlike: v },
10925
+ user: b
10926
10926
  } = Ga({
10927
10927
  queryKey: [t, e, n, "replies"],
10928
10928
  queryFns: i
10929
10929
  });
10930
10930
  return Ii(), Ya(), /* @__PURE__ */ a.jsxs("section", { children: [
10931
- /* @__PURE__ */ a.jsx(jc, { type: "comment", responses: l }),
10931
+ /* @__PURE__ */ a.jsx(jc, { type: "comment", responses: u }),
10932
10932
  /* @__PURE__ */ a.jsx(
10933
10933
  za,
10934
10934
  {
@@ -10954,14 +10954,14 @@ const tl = ({
10954
10954
  var Z, J, k, N, z, q, H, ee, G, V, X, re;
10955
10955
  const { id: T, own_children: w, latest_children: D, children_counts: R } = j, M = (((Z = w == null ? void 0 : w.like) == null ? void 0 : Z.length) || 0) > 0 ? (J = w == null ? void 0 : w.like) == null ? void 0 : J.find((F) => {
10956
10956
  var oe;
10957
- return ((oe = F == null ? void 0 : F.user) == null ? void 0 : oe.id) === (y == null ? void 0 : y.id);
10957
+ return ((oe = F == null ? void 0 : F.user) == null ? void 0 : oe.id) === (b == null ? void 0 : b.id);
10958
10958
  }) : !1, O = M ? M == null ? void 0 : M.id : "", C = !!M, x = (((k = D == null ? void 0 : D.like) == null ? void 0 : k.length) || 0) > 0 ? (N = D == null ? void 0 : D.like) == null ? void 0 : N.map((F) => {
10959
10959
  var oe, A, ve;
10960
10960
  return {
10961
10961
  id: (oe = F == null ? void 0 : F.user) == null ? void 0 : oe.id,
10962
10962
  name: (ve = (A = F == null ? void 0 : F.user) == null ? void 0 : A.data) == null ? void 0 : ve.name
10963
10963
  };
10964
- }) : !1, $ = j == null ? void 0 : j.user, L = ($ == null ? void 0 : $.id) === (y == null ? void 0 : y.id), U = nn(r, L), I = typeof j.data.content == "string" ? (z = j == null ? void 0 : j.data) == null ? void 0 : z.content : (
10964
+ }) : !1, $ = j == null ? void 0 : j.user, L = ($ == null ? void 0 : $.id) === (b == null ? void 0 : b.id), U = nn(r, L), I = typeof j.data.content == "string" ? (z = j == null ? void 0 : j.data) == null ? void 0 : z.content : (
10965
10965
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
10966
10966
  ((H = (q = j == null ? void 0 : j.data) == null ? void 0 : q.content) == null ? void 0 : H.text) || ""
10967
10967
  );
@@ -11002,7 +11002,7 @@ const tl = ({
11002
11002
  updateContent: (F, { body: oe }) => g({ replyId: T, content: oe })
11003
11003
  },
11004
11004
  likes: {
11005
- createLike: () => b({ replyId: T }),
11005
+ createLike: () => y({ replyId: T }),
11006
11006
  deleteLike: () => v({ replyId: T, reactionId: O })
11007
11007
  },
11008
11008
  comments: {}
@@ -11027,8 +11027,8 @@ const tl = ({
11027
11027
  !m && /* @__PURE__ */ a.jsx(
11028
11028
  tn,
11029
11029
  {
11030
- hasNextPage: u,
11031
- loadNextPage: () => d(),
11030
+ hasNextPage: d,
11031
+ loadNextPage: () => l(),
11032
11032
  icon: { icon: "arrow-down", position: "right" },
11033
11033
  messages: {
11034
11034
  button: c.formatMessage({ id: "loadMore_button" }),
@@ -11085,13 +11085,13 @@ function il({
11085
11085
  },
11086
11086
  user: o,
11087
11087
  ...c
11088
- }, l = rl({ ...f, mutationFn: e }), d = sl({ ...f, mutationFn: n }), u = ol({ ...f, mutationFn: r }), { activity: m, ...p } = al({ queryKey: i, queryFn: t });
11088
+ }, u = rl({ ...f, mutationFn: e }), l = sl({ ...f, mutationFn: n }), d = ol({ ...f, mutationFn: r }), { activity: m, ...p } = al({ queryKey: i, queryFn: t });
11089
11089
  return {
11090
11090
  activity: m,
11091
11091
  mutations: {
11092
- edit: l,
11093
- like: d,
11094
- unlike: u
11092
+ edit: u,
11093
+ like: l,
11094
+ unlike: d
11095
11095
  },
11096
11096
  user: o,
11097
11097
  ...p
@@ -11144,32 +11144,32 @@ const uu = ({
11144
11144
  }
11145
11145
  }) => {
11146
11146
  var M, O, C, E, x, $, L, U, I, Z;
11147
- const l = K(), d = Ce(De), {
11148
- activity: u,
11147
+ const u = K(), l = Ce(De), {
11148
+ activity: d,
11149
11149
  error: m,
11150
11150
  isLoading: p,
11151
- mutations: { edit: g, like: b, unlike: _ }
11151
+ mutations: { edit: g, like: y, unlike: _ }
11152
11152
  } = il({
11153
11153
  queryFns: s,
11154
11154
  queryKey: [t, e, n]
11155
11155
  });
11156
11156
  if (p)
11157
11157
  return /* @__PURE__ */ a.jsx(Te, { style: { height: "400px" } });
11158
- if (m || !u)
11158
+ if (m || !d)
11159
11159
  return /* @__PURE__ */ a.jsx(
11160
11160
  nt,
11161
11161
  {
11162
11162
  variant: "error",
11163
- text: l.formatMessage({ id: "activitySection_notFoundError" })
11163
+ text: u.formatMessage({ id: "activitySection_notFoundError" })
11164
11164
  }
11165
11165
  );
11166
- const { own_reactions: v, latest_reactions: y } = u, j = (((M = y == null ? void 0 : y.like) == null ? void 0 : M.length) || 0) > 0, T = (((O = v == null ? void 0 : v.like) == null ? void 0 : O.length) || 0) > 0, w = T ? v == null ? void 0 : v.like[0].id : "", D = j ? (C = y == null ? void 0 : y.like) == null ? void 0 : C.map((J) => {
11166
+ const { own_reactions: v, latest_reactions: b } = d, j = (((M = b == null ? void 0 : b.like) == null ? void 0 : M.length) || 0) > 0, T = (((O = v == null ? void 0 : v.like) == null ? void 0 : O.length) || 0) > 0, w = T ? v == null ? void 0 : v.like[0].id : "", D = j ? (C = b == null ? void 0 : b.like) == null ? void 0 : C.map((J) => {
11167
11167
  var k, N, z;
11168
11168
  return {
11169
11169
  id: (k = J == null ? void 0 : J.user) == null ? void 0 : k.id,
11170
11170
  name: (z = (N = J == null ? void 0 : J.user) == null ? void 0 : N.data) == null ? void 0 : z.name
11171
11171
  };
11172
- }) : !1, R = u == null ? void 0 : u.actor, W = (R == null ? void 0 : R.id) === (d == null ? void 0 : d.id);
11172
+ }) : !1, R = d == null ? void 0 : d.actor, W = (R == null ? void 0 : R.id) === (l == null ? void 0 : l.id);
11173
11173
  return /* @__PURE__ */ a.jsxs("section", { className: "activity-section", children: [
11174
11174
  /* @__PURE__ */ a.jsx(
11175
11175
  rn,
@@ -11178,12 +11178,12 @@ const uu = ({
11178
11178
  content: {
11179
11179
  id: n,
11180
11180
  type: "post",
11181
- body: u == null ? void 0 : u.content,
11181
+ body: d == null ? void 0 : d.content,
11182
11182
  canLike: nn(r, W),
11183
- createdAt: (u == null ? void 0 : u.time) || "",
11183
+ createdAt: (d == null ? void 0 : d.time) || "",
11184
11184
  slugs: {
11185
11185
  question: `${t}/${e}`,
11186
- answer: u == null ? void 0 : u.id
11186
+ answer: d == null ? void 0 : d.id
11187
11187
  },
11188
11188
  slug: n,
11189
11189
  author: {
@@ -11197,8 +11197,8 @@ const uu = ({
11197
11197
  }
11198
11198
  },
11199
11199
  userLiked: T,
11200
- likes: ((I = u == null ? void 0 : u.reaction_counts) == null ? void 0 : I.like) || 0,
11201
- comments: ((Z = u == null ? void 0 : u.reaction_counts) == null ? void 0 : Z.reply) || 0,
11200
+ likes: ((I = d == null ? void 0 : d.reaction_counts) == null ? void 0 : I.like) || 0,
11201
+ comments: ((Z = d == null ? void 0 : d.reaction_counts) == null ? void 0 : Z.reply) || 0,
11202
11202
  peopleWhoLiked: D
11203
11203
  },
11204
11204
  originalAuthorId: R == null ? void 0 : R.id,
@@ -11211,7 +11211,7 @@ const uu = ({
11211
11211
  updateContent: (J, { body: k }) => g({ content: k })
11212
11212
  },
11213
11213
  likes: {
11214
- createLike: () => b({ activityId: n }),
11214
+ createLike: () => y({ activityId: n }),
11215
11215
  deleteLike: () => _({ activityId: n, reactionId: w })
11216
11216
  },
11217
11217
  comments: {