@apolitical/component-library 2.2.2 → 2.2.3-ac.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
@@ -104,15 +104,15 @@ function Si() {
104
104
  return rt;
105
105
  hr = 1;
106
106
  var t = K, 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 };
107
- function o(c, f, l) {
108
- var u, d = {}, m = null, p = null;
109
- l !== void 0 && (m = "" + l), f.key !== void 0 && (m = "" + f.key), f.ref !== void 0 && (p = f.ref);
110
- for (u in f)
111
- r.call(f, u) && !s.hasOwnProperty(u) && (d[u] = f[u]);
107
+ function o(c, f, d) {
108
+ var l, u = {}, m = null, p = null;
109
+ d !== void 0 && (m = "" + d), f.key !== void 0 && (m = "" + f.key), f.ref !== void 0 && (p = f.ref);
110
+ for (l in f)
111
+ r.call(f, l) && !s.hasOwnProperty(l) && (u[l] = f[l]);
112
112
  if (c && c.defaultProps)
113
- for (u in f = c.defaultProps, f)
114
- d[u] === void 0 && (d[u] = f[u]);
115
- return { $$typeof: e, type: c, key: m, ref: p, props: d, _owner: i.current };
113
+ for (l in f = c.defaultProps, f)
114
+ u[l] === void 0 && (u[l] = f[l]);
115
+ return { $$typeof: e, type: c, key: m, ref: p, props: u, _owner: i.current };
116
116
  }
117
117
  return rt.Fragment = n, rt.jsx = o, rt.jsxs = o, rt;
118
118
  }
@@ -129,15 +129,15 @@ var at = {};
129
129
  var gr;
130
130
  function Ci() {
131
131
  return gr || (gr = 1, process.env.NODE_ENV !== "production" && function() {
132
- var t = K, 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"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), v = Symbol.iterator, b = "@@iterator";
132
+ var t = K, 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"), d = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), u = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), v = Symbol.iterator, y = "@@iterator";
133
133
  function _(h) {
134
134
  if (h === null || typeof h != "object")
135
135
  return null;
136
- var P = v && h[v] || h[b];
136
+ var P = v && h[v] || h[y];
137
137
  return typeof P == "function" ? P : null;
138
138
  }
139
139
  var g = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
140
- function y(h) {
140
+ function b(h) {
141
141
  {
142
142
  for (var P = arguments.length, L = new Array(P > 1 ? P - 1 : 0), ne = 1; ne < P; ne++)
143
143
  L[ne - 1] = arguments[ne];
@@ -157,7 +157,7 @@ function Ci() {
157
157
  var j = !1, w = !1, z = !1, F = !1, q = !1, M;
158
158
  M = Symbol.for("react.module.reference");
159
159
  function O(h) {
160
- return !!(typeof h == "string" || typeof h == "function" || h === r || h === s || q || h === i || h === l || h === u || F || h === p || j || w || z || 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
160
+ return !!(typeof h == "string" || typeof h == "function" || h === r || h === s || q || h === i || h === d || h === l || F || h === p || j || w || z || 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
161
  // types supported by any Flight configuration anywhere since
162
162
  // we don't know which Flight build this will end up being used
163
163
  // with.
@@ -176,7 +176,7 @@ function Ci() {
176
176
  function x(h) {
177
177
  if (h == null)
178
178
  return null;
179
- 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")
179
+ 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")
180
180
  return h.displayName || h.name || null;
181
181
  if (typeof h == "string")
182
182
  return h;
@@ -189,9 +189,9 @@ function Ci() {
189
189
  return "Profiler";
190
190
  case i:
191
191
  return "StrictMode";
192
- case l:
192
+ case d:
193
193
  return "Suspense";
194
- case u:
194
+ case l:
195
195
  return "SuspenseList";
196
196
  }
197
197
  if (typeof h == "object")
@@ -204,7 +204,7 @@ function Ci() {
204
204
  return T(L._context) + ".Provider";
205
205
  case f:
206
206
  return C(h, h.render, "ForwardRef");
207
- case d:
207
+ case u:
208
208
  var ne = h.displayName || null;
209
209
  return ne !== null ? ne : x(h.type) || "Memo";
210
210
  case m: {
@@ -277,7 +277,7 @@ function Ci() {
277
277
  })
278
278
  });
279
279
  }
280
- I < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
280
+ I < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
281
281
  }
282
282
  }
283
283
  var Y = g.ReactCurrentDispatcher, V;
@@ -385,16 +385,16 @@ function Ci() {
385
385
  if (typeof h == "string")
386
386
  return X(h);
387
387
  switch (h) {
388
- case l:
388
+ case d:
389
389
  return X("Suspense");
390
- case u:
390
+ case l:
391
391
  return X("SuspenseList");
392
392
  }
393
393
  if (typeof h == "object")
394
394
  switch (h.$$typeof) {
395
395
  case f:
396
396
  return ve(h.render);
397
- case d:
397
+ case u:
398
398
  return Ee(h.type, P, L);
399
399
  case m: {
400
400
  var ne = h, le = ne._payload, me = ne._init;
@@ -429,7 +429,7 @@ function Ci() {
429
429
  } catch (he) {
430
430
  se = he;
431
431
  }
432
- 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", L, ce, typeof se), wt(null)), se instanceof Error && !(se.message in nr) && (nr[se.message] = !0, wt(le), y("Failed %s type: %s", L, se.message), wt(null));
432
+ 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", L, ce, typeof se), wt(null)), se instanceof Error && !(se.message in nr) && (nr[se.message] = !0, wt(le), b("Failed %s type: %s", L, se.message), wt(null));
433
433
  }
434
434
  }
435
435
  }
@@ -455,7 +455,7 @@ function Ci() {
455
455
  }
456
456
  function ir(h) {
457
457
  if (Ya(h))
458
- return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Va(h)), ar(h);
458
+ return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Va(h)), ar(h);
459
459
  }
460
460
  var nt = g.ReactCurrentOwner, Ka = {
461
461
  key: !0,
@@ -483,13 +483,13 @@ function Ci() {
483
483
  function Ja(h, P) {
484
484
  if (typeof h.ref == "string" && nt.current && P && nt.current.stateNode !== P) {
485
485
  var L = x(nt.current.type);
486
- an[L] || (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(nt.current.type), h.ref), an[L] = !0);
486
+ an[L] || (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(nt.current.type), h.ref), an[L] = !0);
487
487
  }
488
488
  }
489
489
  function Xa(h, P) {
490
490
  {
491
491
  var L = function() {
492
- sr || (sr = !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));
492
+ sr || (sr = !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));
493
493
  };
494
494
  L.isReactWarning = !0, Object.defineProperty(h, "key", {
495
495
  get: L,
@@ -500,7 +500,7 @@ function Ci() {
500
500
  function ei(h, P) {
501
501
  {
502
502
  var L = function() {
503
- or || (or = !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));
503
+ or || (or = !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));
504
504
  };
505
505
  L.isReactWarning = !0, Object.defineProperty(h, "ref", {
506
506
  get: L,
@@ -614,7 +614,7 @@ Check the top-level render call using <` + L + ">.");
614
614
  return;
615
615
  dr[L] = !0;
616
616
  var ne = "";
617
- h && h._owner && h._owner !== sn.current && (ne = " It was passed a child from " + x(h._owner.type) + "."), Ze(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.', L, ne), Ze(null);
617
+ h && h._owner && h._owner !== sn.current && (ne = " It was passed a child from " + x(h._owner.type) + "."), Ze(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.', L, ne), Ze(null);
618
618
  }
619
619
  }
620
620
  function fr(h, P) {
@@ -646,7 +646,7 @@ Check the top-level render call using <` + L + ">.");
646
646
  L = P.propTypes;
647
647
  else if (typeof P == "object" && (P.$$typeof === f || // Note: Memo only checks outer props here.
648
648
  // Inner props are checked in the reconciler.
649
- P.$$typeof === d))
649
+ P.$$typeof === u))
650
650
  L = P.propTypes;
651
651
  else
652
652
  return;
@@ -656,9 +656,9 @@ Check the top-level render call using <` + L + ">.");
656
656
  } else if (P.PropTypes !== void 0 && !on) {
657
657
  on = !0;
658
658
  var le = x(P);
659
- y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", le || "Unknown");
659
+ b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", le || "Unknown");
660
660
  }
661
- typeof P.getDefaultProps == "function" && !P.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
661
+ typeof P.getDefaultProps == "function" && !P.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
662
662
  }
663
663
  }
664
664
  function si(h) {
@@ -666,11 +666,11 @@ Check the top-level render call using <` + L + ">.");
666
666
  for (var P = Object.keys(h.props), L = 0; L < P.length; L++) {
667
667
  var ne = P[L];
668
668
  if (ne !== "children" && ne !== "key") {
669
- Ze(h), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", ne), Ze(null);
669
+ Ze(h), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", ne), Ze(null);
670
670
  break;
671
671
  }
672
672
  }
673
- h.ref !== null && (Ze(h), y("Invalid attribute `ref` supplied to `React.Fragment`."), Ze(null));
673
+ h.ref !== null && (Ze(h), b("Invalid attribute `ref` supplied to `React.Fragment`."), Ze(null));
674
674
  }
675
675
  }
676
676
  function mr(h, P, L, ne, le, me) {
@@ -682,7 +682,7 @@ Check the top-level render call using <` + L + ">.");
682
682
  var xe = ri(le);
683
683
  xe ? se += xe : se += lr();
684
684
  var he;
685
- h === null ? he = "null" : rn(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);
685
+ h === null ? he = "null" : rn(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);
686
686
  }
687
687
  var ge = ni(h, P, L, le, me);
688
688
  if (ge == null)
@@ -696,7 +696,7 @@ Check the top-level render call using <` + L + ">.");
696
696
  fr(je[We], h);
697
697
  Object.freeze && Object.freeze(je);
698
698
  } else
699
- 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.");
699
+ 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.");
700
700
  else
701
701
  fr(je, h);
702
702
  }
@@ -730,49 +730,49 @@ const $i = () => {
730
730
  }, e);
731
731
  };
732
732
  function Ni(t, e, n) {
733
- var r = this, i = pe(null), s = pe(0), o = pe(null), c = pe([]), f = pe(), l = pe(), u = pe(t), d = pe(!0);
734
- u.current = t;
733
+ var r = this, i = pe(null), s = pe(0), o = pe(null), c = pe([]), f = pe(), d = pe(), l = pe(t), u = pe(!0);
734
+ l.current = t;
735
735
  var m = typeof window < "u", p = !e && e !== 0 && m;
736
736
  if (typeof t != "function")
737
737
  throw new TypeError("Expected a function");
738
738
  e = +e || 0;
739
- var v = !!(n = n || {}).leading, b = !("trailing" in n) || !!n.trailing, _ = "maxWait" in n, g = "debounceOnServer" in n && !!n.debounceOnServer, y = _ ? Math.max(+n.maxWait || 0, e) : null;
739
+ var v = !!(n = n || {}).leading, y = !("trailing" in n) || !!n.trailing, _ = "maxWait" in n, g = "debounceOnServer" in n && !!n.debounceOnServer, b = _ ? Math.max(+n.maxWait || 0, e) : null;
740
740
  ae(function() {
741
- return d.current = !0, function() {
742
- d.current = !1;
741
+ return u.current = !0, function() {
742
+ u.current = !1;
743
743
  };
744
744
  }, []);
745
745
  var E = vt(function() {
746
746
  var j = function(O) {
747
747
  var C = c.current, T = f.current;
748
- return c.current = f.current = null, s.current = O, l.current = u.current.apply(T, C);
748
+ return c.current = f.current = null, s.current = O, d.current = l.current.apply(T, C);
749
749
  }, w = function(O, C) {
750
750
  p && cancelAnimationFrame(o.current), o.current = p ? requestAnimationFrame(O) : setTimeout(O, C);
751
751
  }, z = function(O) {
752
- if (!d.current)
752
+ if (!u.current)
753
753
  return !1;
754
754
  var C = O - i.current;
755
- return !i.current || C >= e || C < 0 || _ && O - s.current >= y;
755
+ return !i.current || C >= e || C < 0 || _ && O - s.current >= b;
756
756
  }, F = function(O) {
757
- return o.current = null, b && c.current ? j(O) : (c.current = f.current = null, l.current);
757
+ return o.current = null, y && c.current ? j(O) : (c.current = f.current = null, d.current);
758
758
  }, q = function O() {
759
759
  var C = Date.now();
760
760
  if (z(C))
761
761
  return F(C);
762
- if (d.current) {
763
- var T = e - (C - i.current), x = _ ? Math.min(T, y - (C - s.current)) : T;
762
+ if (u.current) {
763
+ var T = e - (C - i.current), x = _ ? Math.min(T, b - (C - s.current)) : T;
764
764
  w(O, x);
765
765
  }
766
766
  }, M = function() {
767
767
  if (m || g) {
768
768
  var O = Date.now(), C = z(O);
769
769
  if (c.current = [].slice.call(arguments), f.current = r, i.current = O, C) {
770
- if (!o.current && d.current)
771
- return s.current = i.current, w(q, e), v ? j(i.current) : l.current;
770
+ if (!o.current && u.current)
771
+ return s.current = i.current, w(q, e), v ? j(i.current) : d.current;
772
772
  if (_)
773
773
  return w(q, e), j(i.current);
774
774
  }
775
- return o.current || w(q, e), l.current;
775
+ return o.current || w(q, e), d.current;
776
776
  }
777
777
  };
778
778
  return M.cancel = function() {
@@ -780,9 +780,9 @@ function Ni(t, e, n) {
780
780
  }, M.isPending = function() {
781
781
  return !!o.current;
782
782
  }, M.flush = function() {
783
- return o.current ? F(Date.now()) : l.current;
783
+ return o.current ? F(Date.now()) : d.current;
784
784
  }, M;
785
- }, [v, _, e, y, b, p, m, g]);
785
+ }, [v, _, e, b, y, p, m, g]);
786
786
  return E;
787
787
  }
788
788
  function na(t, e, n) {
@@ -795,18 +795,18 @@ const bt = (t = !0, e = !1, n = "window") => {
795
795
  return;
796
796
  const [r, i] = K.useState(0) || [!1, () => {
797
797
  }];
798
- ae(() => (c(), window.addEventListener("resize", l), window.addEventListener("hiddenSectionVisible", f), () => {
799
- clearTimeout(ln), l.flush(), window.removeEventListener("resize", l), window.removeEventListener("hiddenSectionVisible", f);
798
+ ae(() => (c(), window.addEventListener("resize", d), window.addEventListener("hiddenSectionVisible", f), () => {
799
+ clearTimeout(ln), d.flush(), window.removeEventListener("resize", d), window.removeEventListener("hiddenSectionVisible", f);
800
800
  }), n === "window" ? [] : [n]);
801
801
  const o = () => {
802
802
  if (n)
803
803
  return n === "window" ? window.innerWidth : n.offsetWidth;
804
804
  }, c = () => {
805
805
  i(o());
806
- }, f = ({ detail: u }) => {
807
- const { id: d } = u;
808
- n === "window" || !n.closest(`#${d}`) || o() === r || c();
809
- }, l = na(
806
+ }, f = ({ detail: l }) => {
807
+ const { id: u } = l;
808
+ n === "window" || !n.closest(`#${u}`) || o() === r || c();
809
+ }, d = na(
810
810
  () => {
811
811
  o() !== r && (e && (clearTimeout(ln), document.body.classList.add("is-resizing"), ln = setTimeout(() => {
812
812
  document.body.classList.remove("is-resizing");
@@ -836,17 +836,17 @@ const bt = (t = !0, e = !1, n = "window") => {
836
836
  scrollUp: !1
837
837
  }) || [!1, () => {
838
838
  }];
839
- ae(() => (f(), window.addEventListener("scroll", l), () => {
840
- l.flush(), window.removeEventListener("scroll", l);
839
+ ae(() => (f(), window.addEventListener("scroll", d), () => {
840
+ d.flush(), window.removeEventListener("scroll", d);
841
841
  }), []);
842
842
  const f = () => {
843
- const u = window.scrollY, d = i.current, m = u - d, p = m > 0 ? "down" : "up";
844
- if (s({ current: u, past: d }), p === "down") {
845
- u >= t + e.down && !o.scrollDown && (!o.scrollUp || m > e.up) && (n(), c({ scrollUp: !1, scrollDown: !0 }));
843
+ const l = window.scrollY, u = i.current, m = l - u, p = m > 0 ? "down" : "up";
844
+ if (s({ current: l, past: u }), p === "down") {
845
+ l >= t + e.down && !o.scrollDown && (!o.scrollUp || m > e.up) && (n(), c({ scrollUp: !1, scrollDown: !0 }));
846
846
  return;
847
847
  }
848
848
  Math.abs(m) >= e.up && !o.scrollUp && (r(), c({ scrollUp: !0, scrollDown: !1 }));
849
- }, l = na(() => {
849
+ }, d = na(() => {
850
850
  f();
851
851
  }, 250);
852
852
  return i;
@@ -1368,9 +1368,9 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1368
1368
  onClick: o = !1,
1369
1369
  className: c = "",
1370
1370
  disabled: f = !1,
1371
- screenreaderText: l = !1,
1372
- children: u = !1,
1373
- ...d
1371
+ screenreaderText: d = !1,
1372
+ children: l = !1,
1373
+ ...u
1374
1374
  }) => {
1375
1375
  const p = bt(typeof e == "object");
1376
1376
  if (typeof e == "object" && typeof p == "number") {
@@ -1379,10 +1379,10 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1379
1379
  }
1380
1380
  const v = [];
1381
1381
  typeof e == "string" && v.push(e), r && (v.push("icon"), typeof r == "object" ? (v.push(r.icon), r.position ? v.push(r.position) : v.push("left"), r.hover && v.push(`hover_${r.hover}`), r.animate && (v.push("animate"), typeof r.animate == "string" && v.push(r.animate))) : (v.push(r), !r.includes("right") && !r.includes("left") && v.push("left"))), n.muted && v.push("muted"), n.fullWidth && v.push("full-width");
1382
- const b = {
1383
- ...d,
1382
+ const y = {
1383
+ ...u,
1384
1384
  className: S(t, c, v, {
1385
- "no-text": !u,
1385
+ "no-text": !l,
1386
1386
  disabled: f,
1387
1387
  button: i
1388
1388
  }),
@@ -1391,10 +1391,10 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1391
1391
  },
1392
1392
  disabled: typeof f == "object" && "isClickable" in f ? !f.isClickable : f
1393
1393
  };
1394
- return i && (s = "a", b.href = i), K.createElement(
1394
+ return i && (s = "a", y.href = i), K.createElement(
1395
1395
  s,
1396
- b,
1397
- u || (l ? /* @__PURE__ */ a.jsx(be, { showOnFocus: !1, children: l }) : null)
1396
+ y,
1397
+ l || (d ? /* @__PURE__ */ a.jsx(be, { showOnFocus: !1, children: d }) : null)
1398
1398
  );
1399
1399
  }, yt = ({ buttons: t, className: e = "", ...n }) => {
1400
1400
  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));
@@ -1534,10 +1534,10 @@ const _t = ({ image: t, className: e, testId: n }) => {
1534
1534
  query: o,
1535
1535
  url: c,
1536
1536
  width: f,
1537
- loading: l,
1538
- decoding: u,
1539
- fetchPriority: d
1540
- } = t, { range: m, sizes: p } = Wi(t), v = 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 });
1537
+ loading: d,
1538
+ decoding: l,
1539
+ fetchPriority: u
1540
+ } = t, { range: m, sizes: p } = Wi(t), v = 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 });
1541
1541
  return /* @__PURE__ */ a.jsxs("picture", { className: e, children: [
1542
1542
  s !== "image/gif" && /* @__PURE__ */ a.jsx(
1543
1543
  "source",
@@ -1548,7 +1548,7 @@ const _t = ({ image: t, className: e, testId: n }) => {
1548
1548
  "data-testid": "source"
1549
1549
  }
1550
1550
  ),
1551
- /* @__PURE__ */ a.jsx("source", { type: "image/webp", srcSet: b, sizes: p, "data-testid": "source" }),
1551
+ /* @__PURE__ */ a.jsx("source", { type: "image/webp", srcSet: y, sizes: p, "data-testid": "source" }),
1552
1552
  /* @__PURE__ */ a.jsx(
1553
1553
  "img",
1554
1554
  {
@@ -1556,9 +1556,9 @@ const _t = ({ image: t, className: e, testId: n }) => {
1556
1556
  sizes: p,
1557
1557
  src: c,
1558
1558
  alt: r,
1559
- loading: l || "lazy",
1560
- decoding: u || "async",
1561
- fetchpriority: d || "auto",
1559
+ loading: d || "lazy",
1560
+ decoding: l || "async",
1561
+ fetchpriority: u || "auto",
1562
1562
  width: f,
1563
1563
  height: i,
1564
1564
  "data-testid": n || "image"
@@ -1622,7 +1622,7 @@ const Vi = ({ isOpen: t = !1, isLoading: e = !1, children: n }) => {
1622
1622
  };
1623
1623
  }, []);
1624
1624
  const c = ({ propertyName: f }) => {
1625
- f === "opacity" && (it !== !1 && clearTimeout(it), o((l) => l === "opening" ? "open" : l === "closing" ? "closed" : l === "closed" ? "hidden" : l));
1625
+ f === "opacity" && (it !== !1 && clearTimeout(it), o((d) => d === "opening" ? "open" : d === "closing" ? "closed" : d === "closed" ? "hidden" : d));
1626
1626
  };
1627
1627
  return gt(() => {
1628
1628
  it !== !1 && clearTimeout(it);
@@ -1716,7 +1716,7 @@ const Yi = ({ icon: t, description: e, ctaMessage: n, href: r, showEditButton: i
1716
1716
  placeholder: o,
1717
1717
  showDivider: c = !0
1718
1718
  }) => {
1719
- const [f, l] = K.useState(!1), u = typeof r == "string" || !!n, d = () => l(!1);
1719
+ const [f, d] = K.useState(!1), l = typeof r == "string" || !!n, u = () => d(!1);
1720
1720
  return /* @__PURE__ */ a.jsxs("section", { className: S("edit-section", e), children: [
1721
1721
  n && /* @__PURE__ */ a.jsx(
1722
1722
  Xt,
@@ -1725,7 +1725,7 @@ const Yi = ({ icon: t, description: e, ctaMessage: n, href: r, showEditButton: i
1725
1725
  isOpen: f,
1726
1726
  showDivider: !1,
1727
1727
  showIcon: !1,
1728
- functions: { onClose: d },
1728
+ functions: { onClose: u },
1729
1729
  className: S("edit-section-modal"),
1730
1730
  children: /* @__PURE__ */ a.jsx(Qn, { ...n, fields: n.fields, meta: {
1731
1731
  ...n == null ? void 0 : n.meta,
@@ -1736,17 +1736,17 @@ const Yi = ({ icon: t, description: e, ctaMessage: n, href: r, showEditButton: i
1736
1736
  ...n == null ? void 0 : n.functions,
1737
1737
  onSuccess: async (m) => {
1738
1738
  var p, v;
1739
- (p = n == null ? void 0 : n.functions) != null && p.onSuccess && await ((v = n == null ? void 0 : n.functions) == null ? void 0 : v.onSuccess(m)), l(!1);
1739
+ (p = n == null ? void 0 : n.functions) != null && p.onSuccess && await ((v = n == null ? void 0 : n.functions) == null ? void 0 : v.onSuccess(m)), d(!1);
1740
1740
  },
1741
- onCancel: d
1741
+ onCancel: u
1742
1742
  } })
1743
1743
  }
1744
1744
  ),
1745
1745
  /* @__PURE__ */ a.jsxs("div", { className: "edit-section-header", children: [
1746
1746
  /* @__PURE__ */ a.jsx("h2", { className: "edit-section-header-title", children: i }),
1747
- u && /* @__PURE__ */ a.jsx(ie, { href: r, variant: "tertiary", size: "small", icon: "pencil", onClick: () => ca({ href: r, setShowModal: l }), children: "Edit" })
1747
+ l && /* @__PURE__ */ a.jsx(ie, { href: r, variant: "tertiary", size: "small", icon: "pencil", onClick: () => ca({ href: r, setShowModal: d }), children: "Edit" })
1748
1748
  ] }),
1749
- t || /* @__PURE__ */ a.jsx(Yi, { ...o, href: r, setShowModal: l, showEditButton: u }),
1749
+ t || /* @__PURE__ */ a.jsx(Yi, { ...o, href: r, setShowModal: d, showEditButton: l }),
1750
1750
  c && /* @__PURE__ */ a.jsx(Re, {})
1751
1751
  ] });
1752
1752
  };
@@ -1771,10 +1771,10 @@ const yl = ({
1771
1771
  "two-col": r === 2 || r === 4,
1772
1772
  "three-col": r === 5 || r <= 10 && r % 3 === 0
1773
1773
  }),
1774
- children: e.map(({ logo: s, nameOfBusiness: o, link: c = !1, description: f = !1 }, l) => {
1774
+ children: e.map(({ logo: s, nameOfBusiness: o, link: c = !1, description: f = !1 }, d) => {
1775
1775
  if (!s || !s.url)
1776
1776
  return null;
1777
- const u = /* @__PURE__ */ a.jsx(
1777
+ const l = /* @__PURE__ */ a.jsx(
1778
1778
  "img",
1779
1779
  {
1780
1780
  src: s.url,
@@ -1784,9 +1784,9 @@ const yl = ({
1784
1784
  }
1785
1785
  );
1786
1786
  return /* @__PURE__ */ a.jsxs("li", { children: [
1787
- /* @__PURE__ */ a.jsx("p", { className: "img-wrapper", children: c ? /* @__PURE__ */ a.jsx("a", { href: c, target: "_blank", rel: "nofollow noreferrer noopener", children: u }) : u }),
1787
+ /* @__PURE__ */ a.jsx("p", { className: "img-wrapper", children: c ? /* @__PURE__ */ a.jsx("a", { href: c, target: "_blank", rel: "nofollow noreferrer noopener", children: l }) : l }),
1788
1788
  f && /* @__PURE__ */ a.jsx("small", { children: f })
1789
- ] }, window.btoa(`${s.url}_${l}`));
1789
+ ] }, window.btoa(`${s.url}_${d}`));
1790
1790
  })
1791
1791
  }
1792
1792
  )
@@ -1820,31 +1820,31 @@ const Ki = [
1820
1820
  cta: o,
1821
1821
  children: c
1822
1822
  }) => {
1823
- const f = ["eyebrow", "title", "text"], l = { eyebrow: "small", title: "h1", text: "p" }, u = {};
1824
- return f.forEach((d) => {
1825
- if (!e[d]) {
1826
- u[d] = !1;
1823
+ const f = ["eyebrow", "title", "text"], d = { eyebrow: "small", title: "h1", text: "p" }, l = {};
1824
+ return f.forEach((u) => {
1825
+ if (!e[u]) {
1826
+ l[u] = !1;
1827
1827
  return;
1828
1828
  }
1829
- if (!s[d]) {
1830
- if (typeof e[d] == "object") {
1831
- u[d] = e[d];
1832
- const { text: m, element: p } = e[d];
1829
+ if (!s[u]) {
1830
+ if (typeof e[u] == "object") {
1831
+ l[u] = e[u];
1832
+ const { text: m, element: p } = e[u];
1833
1833
  if (p && Ki.includes(p.toLowerCase()))
1834
1834
  return;
1835
- u[d] = {
1835
+ l[u] = {
1836
1836
  text: m,
1837
- element: l[d]
1837
+ element: d[u]
1838
1838
  };
1839
1839
  return;
1840
1840
  }
1841
- u[d] = {
1842
- text: e[d],
1843
- element: l[d]
1841
+ l[u] = {
1842
+ text: e[u],
1843
+ element: d[u]
1844
1844
  };
1845
1845
  }
1846
- }), o && o.link && o.link[0] === "#" && (o.props || (o.props = {}), o.props.onClick = (d) => {
1847
- d.preventDefault(), d.stopPropagation();
1846
+ }), o && o.link && o.link[0] === "#" && (o.props || (o.props = {}), o.props.onClick = (u) => {
1847
+ u.preventDefault(), u.stopPropagation();
1848
1848
  const m = document.getElementById(o.link.substring(1));
1849
1849
  m && m.scrollIntoView({ behavior: "smooth" });
1850
1850
  }), /* @__PURE__ */ a.jsx(
@@ -1852,14 +1852,14 @@ const Ki = [
1852
1852
  {
1853
1853
  className: S("banner-section", r, i, t, {
1854
1854
  "has-image": n,
1855
- "has-extra-spacing": i === "normal" && u.eyebrow && u.title
1855
+ "has-extra-spacing": i === "normal" && l.eyebrow && l.title
1856
1856
  }),
1857
1857
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1858
1858
  /* @__PURE__ */ a.jsxs("div", { className: "content-wrapper", children: [
1859
- f.map((d) => {
1860
- if (u[d] && typeof u[d] == "object") {
1861
- const { text: m, element: p = "" } = u[d];
1862
- return d === "text" ? /* @__PURE__ */ a.jsx(It, { overrideType: "text-only", className: "text", children: m }, d) : K.createElement(p, { key: d, className: d }, m);
1859
+ f.map((u) => {
1860
+ if (l[u] && typeof l[u] == "object") {
1861
+ const { text: m, element: p = "" } = l[u];
1862
+ return u === "text" ? /* @__PURE__ */ a.jsx(It, { overrideType: "text-only", className: "text", children: m }, u) : K.createElement(p, { key: u, className: u }, m);
1863
1863
  }
1864
1864
  return null;
1865
1865
  }),
@@ -2034,14 +2034,14 @@ const tt = ({
2034
2034
  let i = n && !!Object.keys(n).length;
2035
2035
  const s = typeof n == "object" && "breakpoints" in n, o = bt(s);
2036
2036
  if (s && typeof n == "object" && typeof o == "number") {
2037
- const d = Object.assign({}, n.breakpoints), m = aa(Object.keys(d));
2038
- i = ia(o, m, d);
2037
+ const u = Object.assign({}, n.breakpoints), m = aa(Object.keys(u));
2038
+ i = ia(o, m, u);
2039
2039
  }
2040
2040
  const {
2041
2041
  breakpoints: c,
2042
2042
  text: f = "",
2043
- component: l,
2044
- ...u
2043
+ component: d,
2044
+ ...l
2045
2045
  } = n;
2046
2046
  return /* @__PURE__ */ a.jsx(
2047
2047
  Ae,
@@ -2050,10 +2050,10 @@ const tt = ({
2050
2050
  className: S("empty-state-box", t, r),
2051
2051
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2052
2052
  e && typeof e == "string" ? /* @__PURE__ */ a.jsx(Xe, { options: { forceBlock: !0 }, children: e }) : e,
2053
- i && typeof n == "object" && (l || /* @__PURE__ */ a.jsx(
2053
+ i && typeof n == "object" && (d || /* @__PURE__ */ a.jsx(
2054
2054
  ie,
2055
2055
  {
2056
- ...u,
2056
+ ...l,
2057
2057
  variant: n.variant ? n.variant : "secondary",
2058
2058
  children: f
2059
2059
  }
@@ -2091,12 +2091,12 @@ const jl = ({
2091
2091
  text: r,
2092
2092
  children: i
2093
2093
  }) => {
2094
- const s = G(), o = pe(null), [c, f] = te(""), [l, u] = te("closed");
2094
+ const s = G(), o = pe(null), [c, f] = te(""), [d, l] = te("closed");
2095
2095
  ae(() => {
2096
2096
  const p = o.current;
2097
2097
  if (p)
2098
- return p.addEventListener("transitionend", d), () => {
2099
- p.removeEventListener("transitionend", d);
2098
+ return p.addEventListener("transitionend", u), () => {
2099
+ p.removeEventListener("transitionend", u);
2100
2100
  };
2101
2101
  }, []), ae(() => {
2102
2102
  if (!r || typeof r != "string")
@@ -2108,23 +2108,23 @@ const jl = ({
2108
2108
  `)
2109
2109
  );
2110
2110
  }, [r]), ae(() => {
2111
- l === "ready-to-close" && u("closing");
2112
- }, [l]);
2113
- const d = ({ propertyName: p }) => {
2114
- p === "max-height" && u((v) => v === "opening" ? "open" : v === "closing" ? "closed" : v);
2111
+ d === "ready-to-close" && l("closing");
2112
+ }, [d]);
2113
+ const u = ({ propertyName: p }) => {
2114
+ p === "max-height" && l((v) => v === "opening" ? "open" : v === "closing" ? "closed" : v);
2115
2115
  };
2116
2116
  if (!r)
2117
2117
  return null;
2118
- const m = ["opening", "open"].includes(l);
2118
+ const m = ["opening", "open"].includes(d);
2119
2119
  return /* @__PURE__ */ a.jsxs(
2120
2120
  Ae,
2121
2121
  {
2122
2122
  variant: "subtle",
2123
2123
  className: S("hide-show-text-box", t),
2124
2124
  children: [
2125
- /* @__PURE__ */ a.jsxs("div", { ref: o, className: S("content", l), children: [
2126
- /* @__PURE__ */ a.jsx(Xe, { options: { forceBlock: !0 }, children: l === "closed" ? c : r }),
2127
- l !== "closed" && i
2125
+ /* @__PURE__ */ a.jsxs("div", { ref: o, className: S("content", d), children: [
2126
+ /* @__PURE__ */ a.jsx(Xe, { options: { forceBlock: !0 }, children: d === "closed" ? c : r }),
2127
+ d !== "closed" && i
2128
2128
  ] }),
2129
2129
  /* @__PURE__ */ a.jsx("p", { className: "cta", children: /* @__PURE__ */ a.jsx(
2130
2130
  ie,
@@ -2134,7 +2134,7 @@ const jl = ({
2134
2134
  styling: { muted: !0 },
2135
2135
  className: S({ "rotate-180": m }),
2136
2136
  onClick: () => {
2137
- u(m ? "ready-to-close" : "opening");
2137
+ l(m ? "ready-to-close" : "opening");
2138
2138
  },
2139
2139
  children: m ? n || s.formatMessage({ id: "hideShowTextBox_hide" }) : e || s.formatMessage({ id: "hideShowTextBox_show" })
2140
2140
  }
@@ -2429,24 +2429,24 @@ const yr = 256, ze = ({
2429
2429
  height: s = yr,
2430
2430
  ...o
2431
2431
  }) => {
2432
- const [c, f] = te(!1), l = pe(null);
2432
+ const [c, f] = te(!1), d = pe(null);
2433
2433
  ae(() => {
2434
- const d = l.current;
2435
- if (!d)
2434
+ const u = d.current;
2435
+ if (!u)
2436
2436
  return;
2437
- const m = d.getContext("2d");
2437
+ const m = u.getContext("2d");
2438
2438
  if (!m)
2439
2439
  return;
2440
2440
  const p = i, v = s;
2441
- typeof window < "u" && window.devicePixelRatio && (d.width = p * window.devicePixelRatio, d.height = v * window.devicePixelRatio, m.scale(window.devicePixelRatio, window.devicePixelRatio)), m.fillStyle = bs(n), m.fillRect(0, 0, p, v), m.font = `${p / 3}px Arial`, m.textAlign = "center", m.fillStyle = "white", m.fillText(ma(n), p / 2, v / 1.6);
2441
+ typeof window < "u" && window.devicePixelRatio && (u.width = p * window.devicePixelRatio, u.height = v * window.devicePixelRatio, m.scale(window.devicePixelRatio, window.devicePixelRatio)), m.fillStyle = bs(n), m.fillRect(0, 0, p, v), m.font = `${p / 3}px Arial`, m.textAlign = "center", m.fillStyle = "white", m.fillText(ma(n), p / 2, v / 1.6);
2442
2442
  }, [n]);
2443
- let u = !1;
2444
- return e && e !== "" && !c && (e.includes("http") || e.includes("//")) && (u = !0), /* @__PURE__ */ a.jsx(
2443
+ let l = !1;
2444
+ return e && e !== "" && !c && (e.includes("http") || e.includes("//")) && (l = !0), /* @__PURE__ */ a.jsx(
2445
2445
  "figure",
2446
2446
  {
2447
2447
  className: S("profile-picture", t, { error: c }),
2448
2448
  ...o,
2449
- children: u ? /* @__PURE__ */ a.jsx(
2449
+ children: l ? /* @__PURE__ */ a.jsx(
2450
2450
  "img",
2451
2451
  {
2452
2452
  src: e,
@@ -2457,7 +2457,7 @@ const yr = 256, ze = ({
2457
2457
  width: i,
2458
2458
  height: s
2459
2459
  }
2460
- ) : /* @__PURE__ */ a.jsx("canvas", { ref: l })
2460
+ ) : /* @__PURE__ */ a.jsx("canvas", { ref: d })
2461
2461
  }
2462
2462
  );
2463
2463
  }, pa = (t) => t === "apolitical" ? {
@@ -2496,20 +2496,20 @@ const Yn = ({
2496
2496
  c.name || (c.name = o.formatMessage({
2497
2497
  id: `member_${typeof e == "string" ? e : "community"}`
2498
2498
  }));
2499
- const { name: f, url: l, image: u } = c, d = ys(c), m = n && n.createdAt ? Dn(n.createdAt) : !1, p = n && n.createdAt ? sa(n.createdAt) : "";
2499
+ const { name: f, url: d, image: l } = c, u = ys(c), m = n && n.createdAt ? Dn(n.createdAt) : !1, p = n && n.createdAt ? sa(n.createdAt) : "";
2500
2500
  return K.createElement(t, {
2501
2501
  className: S("member text-medium", s),
2502
2502
  children: /* @__PURE__ */ a.jsxs(
2503
2503
  xt,
2504
2504
  {
2505
- href: l,
2505
+ href: d,
2506
2506
  gtmType: i,
2507
2507
  gtmContext: r,
2508
2508
  onClick: (v) => {
2509
2509
  v == null || v.stopPropagation();
2510
2510
  },
2511
2511
  children: [
2512
- /* @__PURE__ */ a.jsx(ze, { name: f, src: u }),
2512
+ /* @__PURE__ */ a.jsx(ze, { name: f, src: l }),
2513
2513
  /* @__PURE__ */ a.jsxs("p", { className: "details", children: [
2514
2514
  /* @__PURE__ */ a.jsx("strong", { children: f }),
2515
2515
  n && /* @__PURE__ */ a.jsxs("span", { className: "additional-content", children: [
@@ -2519,7 +2519,7 @@ const Yn = ({
2519
2519
  ) }),
2520
2520
  n.didEdit && /* @__PURE__ */ a.jsx("em", { children: o.formatMessage({ id: "discussion_edited" }) })
2521
2521
  ] }),
2522
- d && /* @__PURE__ */ a.jsx("small", { children: d })
2522
+ u && /* @__PURE__ */ a.jsx("small", { children: u })
2523
2523
  ] })
2524
2524
  ]
2525
2525
  }
@@ -2540,44 +2540,44 @@ const _r = {
2540
2540
  },
2541
2541
  cutoff: c = 2,
2542
2542
  className: f = "",
2543
- ...l
2543
+ ...d
2544
2544
  }) => {
2545
- const u = G();
2545
+ const l = G();
2546
2546
  return !n || n.length === 0 ? null : K.createElement(t, {
2547
- ...l,
2547
+ ...d,
2548
2548
  className: S("contributors", f, i, { "has-gap": s }),
2549
2549
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2550
- /* @__PURE__ */ a.jsx("ul", { children: n.map((d, m) => {
2550
+ /* @__PURE__ */ a.jsx("ul", { children: n.map((u, m) => {
2551
2551
  let p, v = "";
2552
2552
  if (m < c) {
2553
- const { name: b = "", image: _ = "" } = pa(d);
2553
+ const { name: y = "", image: _ = "" } = pa(u);
2554
2554
  if (o)
2555
2555
  return /* @__PURE__ */ a.jsx(Te, { element: "li", className: "contributor" }, m);
2556
2556
  p = /* @__PURE__ */ a.jsx(
2557
2557
  ze,
2558
2558
  {
2559
- name: b,
2559
+ name: y,
2560
2560
  src: _,
2561
2561
  width: _r[i || "medium"],
2562
2562
  height: _r[i || "medium"]
2563
2563
  }
2564
2564
  );
2565
2565
  } else if (m === c) {
2566
- const b = (e || n.length) - c;
2566
+ const y = (e || n.length) - c;
2567
2567
  p = /* @__PURE__ */ a.jsxs(
2568
2568
  "small",
2569
2569
  {
2570
- className: S({ "large-number": b > 99 }),
2570
+ className: S({ "large-number": y > 99 }),
2571
2571
  children: [
2572
2572
  "+",
2573
- Ui(b, 0)
2573
+ Ui(y, 0)
2574
2574
  ]
2575
2575
  }
2576
2576
  ), v = "number-left";
2577
2577
  }
2578
2578
  return p ? /* @__PURE__ */ a.jsx("li", { className: S("contributor", v), children: p }, m) : null;
2579
2579
  }) }),
2580
- r && /* @__PURE__ */ a.jsx("span", { className: "label", children: typeof r == "string" ? r : n.length === 1 ? typeof n[0] == "string" ? u.formatMessage({ id: `member_${n[0]}` }) : Ke(n[0].name || "", 20) : null })
2580
+ 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]}` }) : Ke(n[0].name || "", 20) : null })
2581
2581
  ] })
2582
2582
  });
2583
2583
  };
@@ -2595,7 +2595,7 @@ function _s() {
2595
2595
  if (xr)
2596
2596
  return de;
2597
2597
  xr = 1;
2598
- 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, u = 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, v = t ? Symbol.for("react.lazy") : 60116, b = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, g = t ? Symbol.for("react.responder") : 60118, y = t ? Symbol.for("react.scope") : 60119;
2598
+ 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, d = t ? Symbol.for("react.concurrent_mode") : 60111, l = 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, v = t ? Symbol.for("react.lazy") : 60116, y = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, g = t ? Symbol.for("react.responder") : 60118, b = t ? Symbol.for("react.scope") : 60119;
2599
2599
  function E(w) {
2600
2600
  if (typeof w == "object" && w !== null) {
2601
2601
  var z = w.$$typeof;
@@ -2603,16 +2603,16 @@ function _s() {
2603
2603
  case e:
2604
2604
  switch (w = w.type, w) {
2605
2605
  case f:
2606
- case l:
2606
+ case d:
2607
2607
  case r:
2608
2608
  case s:
2609
2609
  case i:
2610
- case d:
2610
+ case u:
2611
2611
  return w;
2612
2612
  default:
2613
2613
  switch (w = w && w.$$typeof, w) {
2614
2614
  case c:
2615
- case u:
2615
+ case l:
2616
2616
  case v:
2617
2617
  case p:
2618
2618
  case o:
@@ -2627,9 +2627,9 @@ function _s() {
2627
2627
  }
2628
2628
  }
2629
2629
  function j(w) {
2630
- return E(w) === l;
2630
+ return E(w) === d;
2631
2631
  }
2632
- return de.AsyncMode = f, de.ConcurrentMode = l, de.ContextConsumer = c, de.ContextProvider = o, de.Element = e, de.ForwardRef = u, de.Fragment = r, de.Lazy = v, de.Memo = p, de.Portal = n, de.Profiler = s, de.StrictMode = i, de.Suspense = d, de.isAsyncMode = function(w) {
2632
+ return de.AsyncMode = f, de.ConcurrentMode = d, de.ContextConsumer = c, de.ContextProvider = o, de.Element = e, de.ForwardRef = l, de.Fragment = r, de.Lazy = v, de.Memo = p, de.Portal = n, de.Profiler = s, de.StrictMode = i, de.Suspense = u, de.isAsyncMode = function(w) {
2633
2633
  return j(w) || E(w) === f;
2634
2634
  }, de.isConcurrentMode = j, de.isContextConsumer = function(w) {
2635
2635
  return E(w) === c;
@@ -2638,7 +2638,7 @@ function _s() {
2638
2638
  }, de.isElement = function(w) {
2639
2639
  return typeof w == "object" && w !== null && w.$$typeof === e;
2640
2640
  }, de.isForwardRef = function(w) {
2641
- return E(w) === u;
2641
+ return E(w) === l;
2642
2642
  }, de.isFragment = function(w) {
2643
2643
  return E(w) === r;
2644
2644
  }, de.isLazy = function(w) {
@@ -2652,9 +2652,9 @@ function _s() {
2652
2652
  }, de.isStrictMode = function(w) {
2653
2653
  return E(w) === i;
2654
2654
  }, de.isSuspense = function(w) {
2655
- return E(w) === d;
2655
+ return E(w) === u;
2656
2656
  }, de.isValidElementType = function(w) {
2657
- return typeof w == "string" || typeof w == "function" || w === r || w === l || w === s || w === i || w === d || w === m || typeof w == "object" && w !== null && (w.$$typeof === v || w.$$typeof === p || w.$$typeof === o || w.$$typeof === c || w.$$typeof === u || w.$$typeof === _ || w.$$typeof === g || w.$$typeof === y || w.$$typeof === b);
2657
+ return typeof w == "string" || typeof w == "function" || w === r || w === d || w === s || w === i || w === u || w === m || typeof w == "object" && w !== null && (w.$$typeof === v || w.$$typeof === p || w.$$typeof === o || w.$$typeof === c || w.$$typeof === l || w.$$typeof === _ || w.$$typeof === g || w.$$typeof === b || w.$$typeof === y);
2658
2658
  }, de.typeOf = E, de;
2659
2659
  }
2660
2660
  var ue = {};
@@ -2669,10 +2669,10 @@ var ue = {};
2669
2669
  var wr;
2670
2670
  function xs() {
2671
2671
  return wr || (wr = 1, process.env.NODE_ENV !== "production" && function() {
2672
- 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, u = 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, v = t ? Symbol.for("react.lazy") : 60116, b = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, g = t ? Symbol.for("react.responder") : 60118, y = t ? Symbol.for("react.scope") : 60119;
2672
+ 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, d = t ? Symbol.for("react.concurrent_mode") : 60111, l = 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, v = t ? Symbol.for("react.lazy") : 60116, y = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, g = t ? Symbol.for("react.responder") : 60118, b = t ? Symbol.for("react.scope") : 60119;
2673
2673
  function E(D) {
2674
2674
  return typeof D == "string" || typeof D == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
2675
- D === r || D === l || D === s || D === i || D === d || D === m || typeof D == "object" && D !== null && (D.$$typeof === v || D.$$typeof === p || D.$$typeof === o || D.$$typeof === c || D.$$typeof === u || D.$$typeof === _ || D.$$typeof === g || D.$$typeof === y || D.$$typeof === b);
2675
+ D === r || D === d || D === s || D === i || D === u || D === m || typeof D == "object" && D !== null && (D.$$typeof === v || D.$$typeof === p || D.$$typeof === o || D.$$typeof === c || D.$$typeof === l || D.$$typeof === _ || D.$$typeof === g || D.$$typeof === b || D.$$typeof === y);
2676
2676
  }
2677
2677
  function j(D) {
2678
2678
  if (typeof D == "object" && D !== null) {
@@ -2682,17 +2682,17 @@ function xs() {
2682
2682
  var $e = D.type;
2683
2683
  switch ($e) {
2684
2684
  case f:
2685
- case l:
2685
+ case d:
2686
2686
  case r:
2687
2687
  case s:
2688
2688
  case i:
2689
- case d:
2689
+ case u:
2690
2690
  return $e;
2691
2691
  default:
2692
2692
  var Ee = $e && $e.$$typeof;
2693
2693
  switch (Ee) {
2694
2694
  case c:
2695
- case u:
2695
+ case l:
2696
2696
  case v:
2697
2697
  case p:
2698
2698
  case o:
@@ -2706,12 +2706,12 @@ function xs() {
2706
2706
  }
2707
2707
  }
2708
2708
  }
2709
- var w = f, z = l, F = c, q = o, M = e, O = u, C = r, T = v, x = p, $ = n, I = s, U = i, A = d, W = !1;
2709
+ var w = f, z = d, F = c, q = o, M = e, O = l, C = r, T = v, x = p, $ = n, I = s, U = i, A = u, W = !1;
2710
2710
  function J(D) {
2711
2711
  return W || (W = !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(D) || j(D) === f;
2712
2712
  }
2713
2713
  function k(D) {
2714
- return j(D) === l;
2714
+ return j(D) === d;
2715
2715
  }
2716
2716
  function N(D) {
2717
2717
  return j(D) === c;
@@ -2723,7 +2723,7 @@ function xs() {
2723
2723
  return typeof D == "object" && D !== null && D.$$typeof === e;
2724
2724
  }
2725
2725
  function H(D) {
2726
- return j(D) === u;
2726
+ return j(D) === l;
2727
2727
  }
2728
2728
  function ee(D) {
2729
2729
  return j(D) === r;
@@ -2744,7 +2744,7 @@ function xs() {
2744
2744
  return j(D) === i;
2745
2745
  }
2746
2746
  function oe(D) {
2747
- return j(D) === d;
2747
+ return j(D) === u;
2748
2748
  }
2749
2749
  ue.AsyncMode = w, ue.ConcurrentMode = z, ue.ContextConsumer = F, ue.ContextProvider = q, ue.Element = M, ue.ForwardRef = O, ue.Fragment = C, ue.Lazy = T, ue.Memo = x, ue.Portal = $, ue.Profiler = I, ue.StrictMode = U, ue.Suspense = A, ue.isAsyncMode = J, ue.isConcurrentMode = k, ue.isContextConsumer = N, ue.isContextProvider = Z, ue.isElement = B, ue.isForwardRef = H, ue.isFragment = ee, ue.isLazy = Y, ue.isMemo = V, ue.isPortal = X, ue.isProfiler = re, ue.isStrictMode = R, ue.isSuspense = oe, ue.isValidElementType = E, ue.typeOf = j;
2750
2750
  }()), ue;
@@ -2778,28 +2778,28 @@ function ws() {
2778
2778
  return !1;
2779
2779
  for (var o = {}, c = 0; c < 10; c++)
2780
2780
  o["_" + String.fromCharCode(c)] = c;
2781
- var f = Object.getOwnPropertyNames(o).map(function(u) {
2782
- return o[u];
2781
+ var f = Object.getOwnPropertyNames(o).map(function(l) {
2782
+ return o[l];
2783
2783
  });
2784
2784
  if (f.join("") !== "0123456789")
2785
2785
  return !1;
2786
- var l = {};
2787
- return "abcdefghijklmnopqrst".split("").forEach(function(u) {
2788
- l[u] = u;
2789
- }), Object.keys(Object.assign({}, l)).join("") === "abcdefghijklmnopqrst";
2786
+ var d = {};
2787
+ return "abcdefghijklmnopqrst".split("").forEach(function(l) {
2788
+ d[l] = l;
2789
+ }), Object.keys(Object.assign({}, d)).join("") === "abcdefghijklmnopqrst";
2790
2790
  } catch {
2791
2791
  return !1;
2792
2792
  }
2793
2793
  }
2794
2794
  return fn = i() ? Object.assign : function(s, o) {
2795
- for (var c, f = r(s), l, u = 1; u < arguments.length; u++) {
2796
- c = Object(arguments[u]);
2797
- for (var d in c)
2798
- e.call(c, d) && (f[d] = c[d]);
2795
+ for (var c, f = r(s), d, l = 1; l < arguments.length; l++) {
2796
+ c = Object(arguments[l]);
2797
+ for (var u in c)
2798
+ e.call(c, u) && (f[u] = c[u]);
2799
2799
  if (t) {
2800
- l = t(c);
2801
- for (var m = 0; m < l.length; m++)
2802
- n.call(c, l[m]) && (f[l[m]] = c[l[m]]);
2800
+ d = t(c);
2801
+ for (var m = 0; m < d.length; m++)
2802
+ n.call(c, d[m]) && (f[d[m]] = c[d[m]]);
2803
2803
  }
2804
2804
  }
2805
2805
  return f;
@@ -2835,29 +2835,29 @@ function ks() {
2835
2835
  }
2836
2836
  };
2837
2837
  }
2838
- function i(s, o, c, f, l) {
2838
+ function i(s, o, c, f, d) {
2839
2839
  if (process.env.NODE_ENV !== "production") {
2840
- for (var u in s)
2841
- if (r(s, u)) {
2842
- var d;
2840
+ for (var l in s)
2841
+ if (r(s, l)) {
2842
+ var u;
2843
2843
  try {
2844
- if (typeof s[u] != "function") {
2844
+ if (typeof s[l] != "function") {
2845
2845
  var m = Error(
2846
- (f || "React class") + ": " + c + " type `" + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[u] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
2846
+ (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`."
2847
2847
  );
2848
2848
  throw m.name = "Invariant Violation", m;
2849
2849
  }
2850
- d = s[u](o, u, f, c, null, e);
2850
+ u = s[l](o, l, f, c, null, e);
2851
2851
  } catch (v) {
2852
- d = v;
2852
+ u = v;
2853
2853
  }
2854
- if (d && !(d instanceof Error) && t(
2855
- (f || "React class") + ": type specification of " + c + " `" + u + "` 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)."
2856
- ), d instanceof Error && !(d.message in n)) {
2857
- n[d.message] = !0;
2858
- var p = l ? l() : "";
2854
+ if (u && !(u instanceof Error) && t(
2855
+ (f || "React class") + ": type specification of " + c + " `" + l + "` 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)."
2856
+ ), u instanceof Error && !(u.message in n)) {
2857
+ n[u.message] = !0;
2858
+ var p = d ? d() : "";
2859
2859
  t(
2860
- "Failed " + c + " type: " + d.message + (p ?? "")
2860
+ "Failed " + c + " type: " + u.message + (p ?? "")
2861
2861
  );
2862
2862
  }
2863
2863
  }
@@ -2886,9 +2886,9 @@ function js() {
2886
2886
  return null;
2887
2887
  }
2888
2888
  return gn = function(c, f) {
2889
- var l = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
2890
- function d(k) {
2891
- var N = k && (l && k[l] || k[u]);
2889
+ var d = typeof Symbol == "function" && Symbol.iterator, l = "@@iterator";
2890
+ function u(k) {
2891
+ var N = k && (d && k[d] || k[l]);
2892
2892
  if (typeof N == "function")
2893
2893
  return N;
2894
2894
  }
@@ -2901,7 +2901,7 @@ function js() {
2901
2901
  object: g("object"),
2902
2902
  string: g("string"),
2903
2903
  symbol: g("symbol"),
2904
- any: y(),
2904
+ any: b(),
2905
2905
  arrayOf: E,
2906
2906
  element: j(),
2907
2907
  elementType: w(),
@@ -2916,10 +2916,10 @@ function js() {
2916
2916
  function v(k, N) {
2917
2917
  return k === N ? k !== 0 || 1 / k === 1 / N : k !== k && N !== N;
2918
2918
  }
2919
- function b(k, N) {
2919
+ function y(k, N) {
2920
2920
  this.message = k, this.data = N && typeof N == "object" ? N : {}, this.stack = "";
2921
2921
  }
2922
- b.prototype = Error.prototype;
2922
+ y.prototype = Error.prototype;
2923
2923
  function _(k) {
2924
2924
  if (process.env.NODE_ENV !== "production")
2925
2925
  var N = {}, Z = 0;
@@ -2938,7 +2938,7 @@ function js() {
2938
2938
  ), N[ve] = !0, Z++);
2939
2939
  }
2940
2940
  }
2941
- return Y[V] == null ? ee ? Y[V] === null ? new b("The " + re + " `" + R + "` is marked as required " + ("in `" + X + "`, but its value is `null`.")) : new b("The " + re + " `" + R + "` is marked as required in " + ("`" + X + "`, but its value is `undefined`.")) : null : k(Y, V, X, re, R);
2941
+ return Y[V] == null ? ee ? Y[V] === null ? new y("The " + re + " `" + R + "` is marked as required " + ("in `" + X + "`, but its value is `null`.")) : new y("The " + re + " `" + R + "` is marked as required in " + ("`" + X + "`, but its value is `undefined`.")) : null : k(Y, V, X, re, R);
2942
2942
  }
2943
2943
  var H = B.bind(null, !1);
2944
2944
  return H.isRequired = B.bind(null, !0), H;
@@ -2948,7 +2948,7 @@ function js() {
2948
2948
  var X = Z[B], re = U(X);
2949
2949
  if (re !== k) {
2950
2950
  var R = A(X);
2951
- return new b(
2951
+ return new y(
2952
2952
  "Invalid " + ee + " `" + Y + "` of type " + ("`" + R + "` supplied to `" + H + "`, expected ") + ("`" + k + "`."),
2953
2953
  { expectedType: k }
2954
2954
  );
@@ -2957,17 +2957,17 @@ function js() {
2957
2957
  }
2958
2958
  return _(N);
2959
2959
  }
2960
- function y() {
2960
+ function b() {
2961
2961
  return _(o);
2962
2962
  }
2963
2963
  function E(k) {
2964
2964
  function N(Z, B, H, ee, Y) {
2965
2965
  if (typeof k != "function")
2966
- return new b("Property `" + Y + "` of component `" + H + "` has invalid PropType notation inside arrayOf.");
2966
+ return new y("Property `" + Y + "` of component `" + H + "` has invalid PropType notation inside arrayOf.");
2967
2967
  var V = Z[B];
2968
2968
  if (!Array.isArray(V)) {
2969
2969
  var X = U(V);
2970
- return new b("Invalid " + ee + " `" + Y + "` of type " + ("`" + X + "` supplied to `" + H + "`, expected an array."));
2970
+ return new y("Invalid " + ee + " `" + Y + "` of type " + ("`" + X + "` supplied to `" + H + "`, expected an array."));
2971
2971
  }
2972
2972
  for (var re = 0; re < V.length; re++) {
2973
2973
  var R = k(V, re, H, ee, Y + "[" + re + "]", n);
@@ -2983,7 +2983,7 @@ function js() {
2983
2983
  var Y = N[Z];
2984
2984
  if (!c(Y)) {
2985
2985
  var V = U(Y);
2986
- return new b("Invalid " + H + " `" + ee + "` of type " + ("`" + V + "` supplied to `" + B + "`, expected a single ReactElement."));
2986
+ return new y("Invalid " + H + " `" + ee + "` of type " + ("`" + V + "` supplied to `" + B + "`, expected a single ReactElement."));
2987
2987
  }
2988
2988
  return null;
2989
2989
  }
@@ -2994,7 +2994,7 @@ function js() {
2994
2994
  var Y = N[Z];
2995
2995
  if (!t.isValidElementType(Y)) {
2996
2996
  var V = U(Y);
2997
- return new b("Invalid " + H + " `" + ee + "` of type " + ("`" + V + "` supplied to `" + B + "`, expected a single ReactElement type."));
2997
+ return new y("Invalid " + H + " `" + ee + "` of type " + ("`" + V + "` supplied to `" + B + "`, expected a single ReactElement type."));
2998
2998
  }
2999
2999
  return null;
3000
3000
  }
@@ -3004,7 +3004,7 @@ function js() {
3004
3004
  function N(Z, B, H, ee, Y) {
3005
3005
  if (!(Z[B] instanceof k)) {
3006
3006
  var V = k.name || m, X = J(Z[B]);
3007
- return new b("Invalid " + ee + " `" + Y + "` of type " + ("`" + X + "` supplied to `" + H + "`, expected ") + ("instance of `" + V + "`."));
3007
+ return new y("Invalid " + ee + " `" + Y + "` of type " + ("`" + X + "` supplied to `" + H + "`, expected ") + ("instance of `" + V + "`."));
3008
3008
  }
3009
3009
  return null;
3010
3010
  }
@@ -3023,17 +3023,17 @@ function js() {
3023
3023
  var ve = A(D);
3024
3024
  return ve === "symbol" ? String(D) : D;
3025
3025
  });
3026
- return new b("Invalid " + ee + " `" + Y + "` of value `" + String(V) + "` " + ("supplied to `" + H + "`, expected one of " + re + "."));
3026
+ return new y("Invalid " + ee + " `" + Y + "` of value `" + String(V) + "` " + ("supplied to `" + H + "`, expected one of " + re + "."));
3027
3027
  }
3028
3028
  return _(N);
3029
3029
  }
3030
3030
  function q(k) {
3031
3031
  function N(Z, B, H, ee, Y) {
3032
3032
  if (typeof k != "function")
3033
- return new b("Property `" + Y + "` of component `" + H + "` has invalid PropType notation inside objectOf.");
3033
+ return new y("Property `" + Y + "` of component `" + H + "` has invalid PropType notation inside objectOf.");
3034
3034
  var V = Z[B], X = U(V);
3035
3035
  if (X !== "object")
3036
- return new b("Invalid " + ee + " `" + Y + "` of type " + ("`" + X + "` supplied to `" + H + "`, expected an object."));
3036
+ return new y("Invalid " + ee + " `" + Y + "` of type " + ("`" + X + "` supplied to `" + H + "`, expected an object."));
3037
3037
  for (var re in V)
3038
3038
  if (r(V, re)) {
3039
3039
  var R = k(V, re, H, ee, Y + "." + re, n);
@@ -3062,18 +3062,18 @@ function js() {
3062
3062
  D.data && r(D.data, "expectedType") && re.push(D.data.expectedType);
3063
3063
  }
3064
3064
  var ve = re.length > 0 ? ", expected one of type [" + re.join(", ") + "]" : "";
3065
- return new b("Invalid " + V + " `" + X + "` supplied to " + ("`" + Y + "`" + ve + "."));
3065
+ return new y("Invalid " + V + " `" + X + "` supplied to " + ("`" + Y + "`" + ve + "."));
3066
3066
  }
3067
3067
  return _(B);
3068
3068
  }
3069
3069
  function O() {
3070
3070
  function k(N, Z, B, H, ee) {
3071
- return $(N[Z]) ? null : new b("Invalid " + H + " `" + ee + "` supplied to " + ("`" + B + "`, expected a ReactNode."));
3071
+ return $(N[Z]) ? null : new y("Invalid " + H + " `" + ee + "` supplied to " + ("`" + B + "`, expected a ReactNode."));
3072
3072
  }
3073
3073
  return _(k);
3074
3074
  }
3075
3075
  function C(k, N, Z, B, H) {
3076
- return new b(
3076
+ return new y(
3077
3077
  (k || "React class") + ": " + N + " type `" + Z + "." + B + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + H + "`."
3078
3078
  );
3079
3079
  }
@@ -3081,7 +3081,7 @@ function js() {
3081
3081
  function N(Z, B, H, ee, Y) {
3082
3082
  var V = Z[B], X = U(V);
3083
3083
  if (X !== "object")
3084
- return new b("Invalid " + ee + " `" + Y + "` of type `" + X + "` " + ("supplied to `" + H + "`, expected `object`."));
3084
+ return new y("Invalid " + ee + " `" + Y + "` of type `" + X + "` " + ("supplied to `" + H + "`, expected `object`."));
3085
3085
  for (var re in k) {
3086
3086
  var R = k[re];
3087
3087
  if (typeof R != "function")
@@ -3098,14 +3098,14 @@ function js() {
3098
3098
  function N(Z, B, H, ee, Y) {
3099
3099
  var V = Z[B], X = U(V);
3100
3100
  if (X !== "object")
3101
- return new b("Invalid " + ee + " `" + Y + "` of type `" + X + "` " + ("supplied to `" + H + "`, expected `object`."));
3101
+ return new y("Invalid " + ee + " `" + Y + "` of type `" + X + "` " + ("supplied to `" + H + "`, expected `object`."));
3102
3102
  var re = e({}, Z[B], k);
3103
3103
  for (var R in re) {
3104
3104
  var oe = k[R];
3105
3105
  if (r(k, R) && typeof oe != "function")
3106
3106
  return C(H, ee, Y, R, A(oe));
3107
3107
  if (!oe)
3108
- return new b(
3108
+ return new y(
3109
3109
  "Invalid " + ee + " `" + Y + "` key `" + R + "` supplied to `" + H + "`.\nBad object: " + JSON.stringify(Z[B], null, " ") + `
3110
3110
  Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
3111
3111
  );
@@ -3130,7 +3130,7 @@ Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
3130
3130
  return k.every($);
3131
3131
  if (k === null || c(k))
3132
3132
  return !0;
3133
- var N = d(k);
3133
+ var N = u(k);
3134
3134
  if (N) {
3135
3135
  var Z = N.call(k), B;
3136
3136
  if (N !== k.entries) {
@@ -3200,8 +3200,8 @@ function Ts() {
3200
3200
  function n() {
3201
3201
  }
3202
3202
  return n.resetWarningCache = e, vn = function() {
3203
- function r(o, c, f, l, u, d) {
3204
- if (d !== t) {
3203
+ function r(o, c, f, d, l, u) {
3204
+ if (u !== t) {
3205
3205
  var m = new Error(
3206
3206
  "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"
3207
3207
  );
@@ -3272,18 +3272,18 @@ var ba = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
3272
3272
  var o = s.shift();
3273
3273
  if (!zt(o, !1))
3274
3274
  if (o.tagName === "SLOT") {
3275
- var c = o.assignedElements(), f = c.length ? c : o.children, l = t(f, !0, r);
3276
- r.flatten ? i.push.apply(i, l) : i.push({
3275
+ var c = o.assignedElements(), f = c.length ? c : o.children, d = t(f, !0, r);
3276
+ r.flatten ? i.push.apply(i, d) : i.push({
3277
3277
  scopeParent: o,
3278
- candidates: l
3278
+ candidates: d
3279
3279
  });
3280
3280
  } else {
3281
- var u = Ue.call(o, qt);
3282
- u && r.filter(o) && (n || !e.includes(o)) && i.push(o);
3283
- var d = o.shadowRoot || // check for an undisclosed shadow
3284
- typeof r.getShadowRoot == "function" && r.getShadowRoot(o), m = !zt(d, !1) && (!r.shadowRootFilter || r.shadowRootFilter(o));
3285
- if (d && m) {
3286
- var p = t(d === !0 ? o.children : d.children, !0, r);
3281
+ var l = Ue.call(o, qt);
3282
+ l && r.filter(o) && (n || !e.includes(o)) && i.push(o);
3283
+ var u = o.shadowRoot || // check for an undisclosed shadow
3284
+ typeof r.getShadowRoot == "function" && r.getShadowRoot(o), m = !zt(u, !1) && (!r.shadowRootFilter || r.shadowRootFilter(o));
3285
+ if (u && m) {
3286
+ var p = t(u === !0 ? o.children : u.children, !0, r);
3287
3287
  r.flatten ? i.push.apply(i, p) : i.push({
3288
3288
  scopeParent: o,
3289
3289
  candidates: p
@@ -3342,8 +3342,8 @@ var ba = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
3342
3342
  if (r && r !== e) {
3343
3343
  var o, c, f;
3344
3344
  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; ) {
3345
- var l, u, d;
3346
- r = Ut(i), i = (l = r) === null || l === void 0 ? void 0 : l.host, s = !!((u = i) !== null && u !== void 0 && (d = u.ownerDocument) !== null && d !== void 0 && d.contains(i));
3345
+ var d, l, u;
3346
+ r = Ut(i), i = (d = r) === null || d === void 0 ? void 0 : d.host, s = !!((l = i) !== null && l !== void 0 && (u = l.ownerDocument) !== null && u !== void 0 && u.contains(i));
3347
3347
  }
3348
3348
  }
3349
3349
  return s;
@@ -3360,10 +3360,10 @@ var ba = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
3360
3360
  if (!r || r === "full" || r === "legacy-full") {
3361
3361
  if (typeof i == "function") {
3362
3362
  for (var c = e; e; ) {
3363
- var f = e.parentElement, l = Ut(e);
3363
+ var f = e.parentElement, d = Ut(e);
3364
3364
  if (f && !f.shadowRoot && i(f) === !0)
3365
3365
  return Nr(e);
3366
- e.assignedSlot ? e = e.assignedSlot : !f && l !== e.ownerDocument ? e = l.host : e = f;
3366
+ e.assignedSlot ? e = e.assignedSlot : !f && d !== e.ownerDocument ? e = d.host : e = f;
3367
3367
  }
3368
3368
  e = c;
3369
3369
  }
@@ -3402,13 +3402,13 @@ var ba = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
3402
3402
  }, Us = function t(e) {
3403
3403
  var n = [], r = [];
3404
3404
  return e.forEach(function(i, s) {
3405
- var o = !!i.scopeParent, c = o ? i.scopeParent : i, f = Ns(c, o), l = o ? t(i.candidates) : c;
3406
- f === 0 ? o ? n.push.apply(n, l) : n.push(c) : r.push({
3405
+ var o = !!i.scopeParent, c = o ? i.scopeParent : i, f = Ns(c, o), d = o ? t(i.candidates) : c;
3406
+ f === 0 ? o ? n.push.apply(n, d) : n.push(c) : r.push({
3407
3407
  documentOrder: s,
3408
3408
  tabIndex: f,
3409
3409
  item: i,
3410
3410
  isScope: o,
3411
- content: l
3411
+ content: d
3412
3412
  });
3413
3413
  }), r.sort(Ps).reduce(function(i, s) {
3414
3414
  return s.isScope ? i.push.apply(i, s.content) : i.push(s.content), i;
@@ -3577,7 +3577,7 @@ var Rr = {
3577
3577
  recentNavEvent: void 0
3578
3578
  }, c, f = function(T, x, $) {
3579
3579
  return T && T[x] !== void 0 ? T[x] : s[$ || x];
3580
- }, l = function(T, x) {
3580
+ }, d = function(T, x) {
3581
3581
  var $ = typeof (x == null ? void 0 : x.composedPath) == "function" ? x.composedPath() : void 0;
3582
3582
  return o.containerGroups.findIndex(function(I) {
3583
3583
  var U = I.container, A = I.tabbableNodes;
@@ -3589,7 +3589,7 @@ var Rr = {
3589
3589
  return W === T;
3590
3590
  });
3591
3591
  });
3592
- }, u = function(T) {
3592
+ }, l = function(T) {
3593
3593
  var x = s[T];
3594
3594
  if (typeof x == "function") {
3595
3595
  for (var $ = arguments.length, I = new Array($ > 1 ? $ - 1 : 0), U = 1; U < $; U++)
@@ -3605,16 +3605,16 @@ var Rr = {
3605
3605
  if (typeof x == "string" && (A = r.querySelector(x), !A))
3606
3606
  throw new Error("`".concat(T, "` as selector refers to no known node"));
3607
3607
  return A;
3608
- }, d = function() {
3609
- var T = u("initialFocus");
3608
+ }, u = function() {
3609
+ var T = l("initialFocus");
3610
3610
  if (T === !1)
3611
3611
  return !1;
3612
3612
  if (T === void 0 || !Dt(T, s.tabbableOptions))
3613
- if (l(r.activeElement) >= 0)
3613
+ if (d(r.activeElement) >= 0)
3614
3614
  T = r.activeElement;
3615
3615
  else {
3616
3616
  var x = o.tabbableGroups[0], $ = x && x.firstTabbableNode;
3617
- T = $ || u("fallbackFocus");
3617
+ T = $ || l("fallbackFocus");
3618
3618
  }
3619
3619
  if (!T)
3620
3620
  throw new Error("Your focus-trap needs to have at least one focusable element");
@@ -3668,7 +3668,7 @@ var Rr = {
3668
3668
  };
3669
3669
  }), o.tabbableGroups = o.containerGroups.filter(function(T) {
3670
3670
  return T.tabbableNodes.length > 0;
3671
- }), o.tabbableGroups.length <= 0 && !u("fallbackFocus"))
3671
+ }), o.tabbableGroups.length <= 0 && !l("fallbackFocus"))
3672
3672
  throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
3673
3673
  if (o.containerGroups.find(function(T) {
3674
3674
  return T.posTabIndexesFound;
@@ -3681,22 +3681,22 @@ var Rr = {
3681
3681
  }, v = function C(T) {
3682
3682
  if (T !== !1 && T !== p(document)) {
3683
3683
  if (!T || !T.focus) {
3684
- C(d());
3684
+ C(u());
3685
3685
  return;
3686
3686
  }
3687
3687
  T.focus({
3688
3688
  preventScroll: !!s.preventScroll
3689
3689
  }), o.mostRecentlyFocusedNode = T, Ys(T) && T.select();
3690
3690
  }
3691
- }, b = function(T) {
3692
- var x = u("setReturnFocus", T);
3691
+ }, y = function(T) {
3692
+ var x = l("setReturnFocus", T);
3693
3693
  return x || (x === !1 ? !1 : T);
3694
3694
  }, _ = function(T) {
3695
3695
  var x = T.target, $ = T.event, I = T.isBackward, U = I === void 0 ? !1 : I;
3696
3696
  x = x || Tt($), m();
3697
3697
  var A = null;
3698
3698
  if (o.tabbableGroups.length > 0) {
3699
- var W = l(x, $), J = W >= 0 ? o.containerGroups[W] : void 0;
3699
+ var W = d(x, $), J = W >= 0 ? o.containerGroups[W] : void 0;
3700
3700
  if (W < 0)
3701
3701
  U ? A = o.tabbableGroups[o.tabbableGroups.length - 1].lastTabbableNode : A = o.tabbableGroups[0].firstTabbableNode;
3702
3702
  else if (U) {
@@ -3721,11 +3721,11 @@ var Rr = {
3721
3721
  ft($) || (A = J.nextTabbableNode(x));
3722
3722
  }
3723
3723
  } else
3724
- A = u("fallbackFocus");
3724
+ A = l("fallbackFocus");
3725
3725
  return A;
3726
3726
  }, g = function(T) {
3727
3727
  var x = Tt(T);
3728
- if (!(l(x, T) >= 0)) {
3728
+ if (!(d(x, T) >= 0)) {
3729
3729
  if (st(s.clickOutsideDeactivates, T)) {
3730
3730
  c.deactivate({
3731
3731
  // NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
@@ -3740,8 +3740,8 @@ var Rr = {
3740
3740
  }
3741
3741
  st(s.allowOutsideClick, T) || T.preventDefault();
3742
3742
  }
3743
- }, y = function(T) {
3744
- var x = Tt(T), $ = l(x, T) >= 0;
3743
+ }, b = function(T) {
3744
+ var x = Tt(T), $ = d(x, T) >= 0;
3745
3745
  if ($ || x instanceof Document)
3746
3746
  $ && (o.mostRecentlyFocusedNode = x);
3747
3747
  else {
@@ -3749,7 +3749,7 @@ var Rr = {
3749
3749
  var I, U = !0;
3750
3750
  if (o.mostRecentlyFocusedNode)
3751
3751
  if (De(o.mostRecentlyFocusedNode) > 0) {
3752
- var A = l(o.mostRecentlyFocusedNode), W = o.containerGroups[A].tabbableNodes;
3752
+ var A = d(o.mostRecentlyFocusedNode), W = o.containerGroups[A].tabbableNodes;
3753
3753
  if (W.length > 0) {
3754
3754
  var J = W.findIndex(function(k) {
3755
3755
  return k === o.mostRecentlyFocusedNode;
@@ -3769,7 +3769,7 @@ var Rr = {
3769
3769
  // outside the trap causing the focus escape we're trying to fix)
3770
3770
  target: o.mostRecentlyFocusedNode,
3771
3771
  isBackward: s.isKeyBackward(o.recentNavEvent)
3772
- })), v(I || o.mostRecentlyFocusedNode || d());
3772
+ })), v(I || o.mostRecentlyFocusedNode || u());
3773
3773
  }
3774
3774
  o.recentNavEvent = void 0;
3775
3775
  }, E = function(T) {
@@ -3788,12 +3788,12 @@ var Rr = {
3788
3788
  (s.isKeyForward(T) || s.isKeyBackward(T)) && E(T, s.isKeyBackward(T));
3789
3789
  }, w = function(T) {
3790
3790
  var x = Tt(T);
3791
- l(x, T) >= 0 || st(s.clickOutsideDeactivates, T) || st(s.allowOutsideClick, T) || (T.preventDefault(), T.stopImmediatePropagation());
3791
+ d(x, T) >= 0 || st(s.clickOutsideDeactivates, T) || st(s.allowOutsideClick, T) || (T.preventDefault(), T.stopImmediatePropagation());
3792
3792
  }, z = function() {
3793
3793
  if (o.active)
3794
3794
  return Rr.activateTrap(i, c), o.delayInitialFocusTimer = s.delayInitialFocus ? Fr(function() {
3795
- v(d());
3796
- }) : v(d()), r.addEventListener("focusin", y, !0), r.addEventListener("mousedown", g, {
3795
+ v(u());
3796
+ }) : v(u()), r.addEventListener("focusin", b, !0), r.addEventListener("mousedown", g, {
3797
3797
  capture: !0,
3798
3798
  passive: !1
3799
3799
  }), r.addEventListener("touchstart", g, {
@@ -3808,7 +3808,7 @@ var Rr = {
3808
3808
  }), c;
3809
3809
  }, F = function() {
3810
3810
  if (o.active)
3811
- return r.removeEventListener("focusin", y, !0), r.removeEventListener("mousedown", g, !0), r.removeEventListener("touchstart", g, !0), r.removeEventListener("click", w, !0), r.removeEventListener("keydown", j, !0), c;
3811
+ return r.removeEventListener("focusin", b, !0), r.removeEventListener("mousedown", g, !0), r.removeEventListener("touchstart", g, !0), r.removeEventListener("click", w, !0), r.removeEventListener("keydown", j, !0), c;
3812
3812
  }, q = function(T) {
3813
3813
  var x = T.some(function($) {
3814
3814
  var I = Array.from($.removedNodes);
@@ -3816,7 +3816,7 @@ var Rr = {
3816
3816
  return U === o.mostRecentlyFocusedNode;
3817
3817
  });
3818
3818
  });
3819
- x && v(d());
3819
+ x && v(u());
3820
3820
  }, M = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(q) : void 0, O = function() {
3821
3821
  M && (M.disconnect(), o.active && !o.paused && o.containers.map(function(T) {
3822
3822
  M.observe(T, {
@@ -3855,10 +3855,10 @@ var Rr = {
3855
3855
  $ == null || $();
3856
3856
  var W = function() {
3857
3857
  Fr(function() {
3858
- A && v(b(o.nodeFocusedBeforeActivation)), I == null || I();
3858
+ A && v(y(o.nodeFocusedBeforeActivation)), I == null || I();
3859
3859
  });
3860
3860
  };
3861
- return A && U ? (U(b(o.nodeFocusedBeforeActivation)).then(W, W), this) : (W(), this);
3861
+ return A && U ? (U(y(o.nodeFocusedBeforeActivation)).then(W, W), this) : (W(), this);
3862
3862
  },
3863
3863
  pause: function(T) {
3864
3864
  if (o.paused || !o.active)
@@ -3981,21 +3981,21 @@ var Et = K, Q = Cs, fo = to, mo = fo.createFocusTrap, po = no, ho = po.isFocusab
3981
3981
  function n(r) {
3982
3982
  var i;
3983
3983
  ro(this, n), i = e.call(this, r), lo(dt(i), "getNodeForOption", function(c) {
3984
- var f, l = (f = this.internalOptions[c]) !== null && f !== void 0 ? f : this.originalOptions[c];
3985
- if (typeof l == "function") {
3986
- for (var u = arguments.length, d = new Array(u > 1 ? u - 1 : 0), m = 1; m < u; m++)
3987
- d[m - 1] = arguments[m];
3988
- l = l.apply(void 0, d);
3989
- }
3990
- if (l === !0 && (l = void 0), !l) {
3991
- if (l === void 0 || l === !1)
3992
- return l;
3984
+ var f, d = (f = this.internalOptions[c]) !== null && f !== void 0 ? f : this.originalOptions[c];
3985
+ if (typeof d == "function") {
3986
+ for (var l = arguments.length, u = new Array(l > 1 ? l - 1 : 0), m = 1; m < l; m++)
3987
+ u[m - 1] = arguments[m];
3988
+ d = d.apply(void 0, u);
3989
+ }
3990
+ if (d === !0 && (d = void 0), !d) {
3991
+ if (d === void 0 || d === !1)
3992
+ return d;
3993
3993
  throw new Error("`".concat(c, "` was specified but was not a node, or did not return a node"));
3994
3994
  }
3995
- var p = l;
3996
- if (typeof l == "string") {
3995
+ var p = d;
3996
+ if (typeof d == "string") {
3997
3997
  var v;
3998
- if (p = (v = this.getDocument()) === null || v === void 0 ? void 0 : v.querySelector(l), !p)
3998
+ if (p = (v = this.getDocument()) === null || v === void 0 ? void 0 : v.querySelector(d), !p)
3999
3999
  throw new Error("`".concat(c, "` as selector refers to no known node"));
4000
4000
  }
4001
4001
  return p;
@@ -4103,9 +4103,9 @@ var Et = K, Q = Cs, fo = to, mo = fo.createFocusTrap, po = no, ho = po.isFocusab
4103
4103
  i.outsideClick.allowDeactivation && // is the outside node NOT focusable (implying that it did NOT receive focus
4104
4104
  // as a result of the click-through) -- in which case do NOT restore focus
4105
4105
  // to `returnFocusNode` because focus should remain on the outside node
4106
- !ho(i.outsideClick.target, i.internalOptions.tabbableOptions))), l = i.internalOptions.preventScroll, u = l === void 0 ? !1 : l;
4106
+ !ho(i.outsideClick.target, i.internalOptions.tabbableOptions))), d = i.internalOptions.preventScroll, l = d === void 0 ? !1 : d;
4107
4107
  f && c.focus({
4108
- preventScroll: u
4108
+ preventScroll: l
4109
4109
  }), i.originalOptions.onPostDeactivate && i.originalOptions.onPostDeactivate.call(null), i.outsideClick = null;
4110
4110
  };
4111
4111
  this.originalOptions.checkCanReturnFocus ? this.originalOptions.checkCanReturnFocus.call(null, this.getReturnFocusNode()).then(s, s) : s();
@@ -4151,9 +4151,9 @@ var Et = K, Q = Cs, fo = to, mo = fo.createFocusTrap, po = no, ho = po.isFocusab
4151
4151
  if (s) {
4152
4152
  if (s.type && s.type === Et.Fragment)
4153
4153
  throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");
4154
- var o = function(l) {
4155
- var u = i.props.containerElements;
4156
- s && (typeof s.ref == "function" ? s.ref(l) : s.ref && (s.ref.current = l)), i.focusTrapElements = u || [l];
4154
+ var o = function(d) {
4155
+ var l = i.props.containerElements;
4156
+ s && (typeof s.ref == "function" ? s.ref(d) : s.ref && (s.ref.current = d)), i.focusTrapElements = l || [d];
4157
4157
  }, c = Et.cloneElement(s, {
4158
4158
  ref: o
4159
4159
  });
@@ -4235,18 +4235,18 @@ const Xt = ({
4235
4235
  forceShow: { error: o = !1 } = {},
4236
4236
  title: c,
4237
4237
  children: f,
4238
- buttons: l,
4239
- className: u = "",
4240
- gtmContext: d = "Modal"
4238
+ buttons: d,
4239
+ className: l = "",
4240
+ gtmContext: u = "Modal"
4241
4241
  }) => {
4242
- const m = G(), [p, v] = te(e), b = (y) => {
4243
- y.key === "Escape" && _(!1);
4242
+ const m = G(), [p, v] = te(e), y = (b) => {
4243
+ b.key === "Escape" && _(!1);
4244
4244
  };
4245
- ae(() => (window.addEventListener("keyup", b), () => {
4246
- window.removeEventListener("keyup", b);
4245
+ ae(() => (window.addEventListener("keyup", y), () => {
4246
+ window.removeEventListener("keyup", y);
4247
4247
  }));
4248
- const _ = (y) => {
4249
- v(y), y ? (i(), document.body.classList.add("has-overlay")) : (s(), document.body.classList.remove("has-overlay"));
4248
+ const _ = (b) => {
4249
+ v(b), b ? (i(), document.body.classList.add("has-overlay")) : (s(), document.body.classList.remove("has-overlay"));
4250
4250
  };
4251
4251
  ae(() => {
4252
4252
  _(e);
@@ -4256,7 +4256,7 @@ const Xt = ({
4256
4256
  Sa,
4257
4257
  {
4258
4258
  id: t,
4259
- className: S("overlay-modal", u, {
4259
+ className: S("overlay-modal", l, {
4260
4260
  "has-max-width": r
4261
4261
  }),
4262
4262
  hidden: !p,
@@ -4273,16 +4273,16 @@ const Xt = ({
4273
4273
  onClick: () => _(!1),
4274
4274
  className: "gtm-trackable",
4275
4275
  "data-gtm-event-type": "close-modal-click",
4276
- "data-gtm-event-context": d,
4276
+ "data-gtm-event-context": u,
4277
4277
  screenreaderText: m.formatMessage({ id: "overlay_close" })
4278
4278
  }
4279
4279
  )
4280
4280
  ] }),
4281
4281
  n && /* @__PURE__ */ a.jsx(Re, {}),
4282
4282
  f,
4283
- l && /* @__PURE__ */ a.jsxs("div", { className: "bottom", children: [
4283
+ d && /* @__PURE__ */ a.jsxs("div", { className: "bottom", children: [
4284
4284
  /* @__PURE__ */ a.jsx(Re, {}),
4285
- /* @__PURE__ */ a.jsx(yt, { buttons: l })
4285
+ /* @__PURE__ */ a.jsx(yt, { buttons: d })
4286
4286
  ] }),
4287
4287
  o && /* @__PURE__ */ a.jsx(Bt, { className: "error", children: o })
4288
4288
  ] }) })
@@ -4305,10 +4305,10 @@ const St = "emailHelperTextBox_", yo = ({
4305
4305
  link: {},
4306
4306
  mail: {},
4307
4307
  error: ""
4308
- }), [c, f] = te(!1), l = Kr(
4308
+ }), [c, f] = te(!1), d = Kr(
4309
4309
  (p) => {
4310
4310
  p.preventDefault(), p.stopPropagation();
4311
- const v = (b) => {
4311
+ const v = (y) => {
4312
4312
  o({
4313
4313
  path: `${St}error_verificationFailedToSend`,
4314
4314
  type: "error",
@@ -4316,7 +4316,7 @@ const St = "emailHelperTextBox_", yo = ({
4316
4316
  "data-gtm-event-context": "VerifyEmailBox",
4317
4317
  "data-gtm-event-type": "SendEmailClick",
4318
4318
  className: "gtm-trackable",
4319
- onClick: (_) => l(_),
4319
+ onClick: (_) => d(_),
4320
4320
  href: "#",
4321
4321
  "data-testid": "send-verify-email-click"
4322
4322
  },
@@ -4326,7 +4326,7 @@ const St = "emailHelperTextBox_", yo = ({
4326
4326
  "data-gtm-event-context": "ErrorVerifyingBox",
4327
4327
  "data-gtm-event-type": "email-concierge-click"
4328
4328
  },
4329
- error: b
4329
+ error: y
4330
4330
  });
4331
4331
  };
4332
4332
  if (typeof r != "function") {
@@ -4335,8 +4335,8 @@ const St = "emailHelperTextBox_", yo = ({
4335
4335
  }
4336
4336
  f(!0), r(e).then(() => {
4337
4337
  localStorage.setItem("email", e), window.location.href = n || "/signup/verify-email";
4338
- }).catch((b) => {
4339
- v(b.message);
4338
+ }).catch((y) => {
4339
+ v(y.message);
4340
4340
  }).finally(() => {
4341
4341
  f(!1);
4342
4342
  });
@@ -4346,13 +4346,13 @@ const St = "emailHelperTextBox_", yo = ({
4346
4346
  );
4347
4347
  ae(
4348
4348
  () => {
4349
- let p = St, v = "default", b = {}, _ = {};
4349
+ let p = St, v = "default", y = {}, _ = {};
4350
4350
  switch (t) {
4351
4351
  case "gov":
4352
4352
  p += "autoApproved", v = "success";
4353
4353
  break;
4354
4354
  case "nonGov":
4355
- p += "unrecognisedEmail", v = "error", b = {
4355
+ p += "unrecognisedEmail", v = "error", y = {
4356
4356
  href: "https://about.apolitical.co/who-can-join-the-community",
4357
4357
  "data-gtm-event-context": "NonGovEmailHelperTextBox",
4358
4358
  "data-gtm-event-type": "LearnMoreClick"
@@ -4367,17 +4367,17 @@ const St = "emailHelperTextBox_", yo = ({
4367
4367
  };
4368
4368
  break;
4369
4369
  case "verify":
4370
- p += "emailUnverified", v = "error", b = {
4370
+ p += "emailUnverified", v = "error", y = {
4371
4371
  href: "#",
4372
4372
  "data-gtm-event-context": "VerifyEmailBox",
4373
4373
  "data-gtm-event-type": "SendEmailClick",
4374
4374
  className: "gtm-trackable",
4375
- onClick: (g) => l(g),
4375
+ onClick: (g) => d(g),
4376
4376
  "data-testid": "send-verify-email-click"
4377
4377
  };
4378
4378
  break;
4379
4379
  case "exists":
4380
- p += "emailAlreadyExists", v = "error", b = {
4380
+ p += "emailAlreadyExists", v = "error", y = {
4381
4381
  href: "/user-onboarding/login",
4382
4382
  "data-gtm-event-context": "EmailExistsBox",
4383
4383
  "data-gtm-event-type": "login-click"
@@ -4389,21 +4389,21 @@ const St = "emailHelperTextBox_", yo = ({
4389
4389
  };
4390
4390
  break;
4391
4391
  default:
4392
- p += "default", b = {
4392
+ p += "default", y = {
4393
4393
  href: "https://about.apolitical.co/who-can-join-the-community",
4394
4394
  "data-gtm-event-context": "DefaultEmailHelperTextBox",
4395
4395
  "data-gtm-event-type": "LearnMoreClick"
4396
4396
  };
4397
4397
  break;
4398
4398
  }
4399
- o({ ...s, path: p, type: v, link: b, mail: _ });
4399
+ o({ ...s, path: p, type: v, link: y, mail: _ });
4400
4400
  },
4401
4401
  /* eslint-disable react-hooks/exhaustive-deps */
4402
4402
  [t]
4403
4403
  );
4404
- const u = {};
4404
+ const l = {};
4405
4405
  return ["link", "mail"].forEach((p) => {
4406
- u[p] = Object.keys(s[p]).length ? (v) => /* @__PURE__ */ a.jsx("a", { ...s[p], children: v }) : (v) => v;
4406
+ l[p] = Object.keys(s[p]).length ? (v) => /* @__PURE__ */ a.jsx("a", { ...s[p], children: v }) : (v) => v;
4407
4407
  }), /* @__PURE__ */ a.jsx(
4408
4408
  as,
4409
4409
  {
@@ -4419,7 +4419,7 @@ const St = "emailHelperTextBox_", yo = ({
4419
4419
  i.formatMessage(
4420
4420
  { id: `${s.path}_text` },
4421
4421
  {
4422
- ...u,
4422
+ ...l,
4423
4423
  strong: (p) => /* @__PURE__ */ a.jsx("strong", { children: p }),
4424
4424
  em: (p) => /* @__PURE__ */ a.jsx("em", { children: p }),
4425
4425
  br: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
@@ -4443,17 +4443,17 @@ const St = "emailHelperTextBox_", yo = ({
4443
4443
  placeholder: o,
4444
4444
  type: c = "text",
4445
4445
  value: f,
4446
- ...l
4446
+ ...d
4447
4447
  }) => {
4448
- const u = pe(), d = r || u;
4448
+ const l = pe(), u = r || l;
4449
4449
  return K.createElement(e, {
4450
- ref: d,
4451
- ...l,
4450
+ ref: u,
4451
+ ...d,
4452
4452
  type: c,
4453
4453
  id: n,
4454
4454
  name: s,
4455
4455
  className: S(t, e, {
4456
- "has-scrollbar": c === "textarea" && d.current && d.current.clientHeight < d.current.scrollHeight
4456
+ "has-scrollbar": c === "textarea" && u.current && u.current.clientHeight < u.current.scrollHeight
4457
4457
  }),
4458
4458
  value: f,
4459
4459
  placeholder: o,
@@ -4484,36 +4484,36 @@ const He = {
4484
4484
  input: t,
4485
4485
  displayInput: t,
4486
4486
  debouncedInput: t
4487
- }), [{ predictions: l, activePredictionIndex: u, isPredictionSelected: d }, m] = te({
4487
+ }), [{ predictions: d, activePredictionIndex: l, isPredictionSelected: u }, m] = te({
4488
4488
  predictions: [],
4489
4489
  activePredictionIndex: -1,
4490
4490
  isPredictionSelected: !!t
4491
4491
  }), { formatMessage: p } = G();
4492
4492
  e || (e = p({ id: "inputAutocomplete_placeholder" })), ae(() => {
4493
4493
  const g = setTimeout(() => {
4494
- d || f((y) => ({ ...y, debouncedInput: s }));
4494
+ u || f((b) => ({ ...b, debouncedInput: s }));
4495
4495
  }, _o);
4496
4496
  return () => {
4497
4497
  clearTimeout(g);
4498
4498
  };
4499
- }, [s, d]), ae(() => {
4500
- c && !d ? (async () => {
4499
+ }, [s, u]), ae(() => {
4500
+ c && !u ? (async () => {
4501
4501
  try {
4502
- const y = await i(c) || [];
4503
- m((E) => ({ ...E, predictions: y }));
4504
- } catch (y) {
4505
- console.error("Error fetching predictions:", y), m((E) => ({ ...E, predictions: [] }));
4502
+ const b = await i(c) || [];
4503
+ m((E) => ({ ...E, predictions: b }));
4504
+ } catch (b) {
4505
+ console.error("Error fetching predictions:", b), m((E) => ({ ...E, predictions: [] }));
4506
4506
  }
4507
4507
  })() : m((g) => ({ ...g, predictions: [] }));
4508
- }, [c, d]), ae(() => {
4509
- u >= 0 && l[u] && f((g) => ({ ...g, displayInput: l[u].description }));
4510
- }, [u, l]);
4508
+ }, [c, u]), ae(() => {
4509
+ l >= 0 && d[l] && f((g) => ({ ...g, displayInput: d[l].description }));
4510
+ }, [l, d]);
4511
4511
  const v = (g) => {
4512
- [He.DOWN, He.UP, He.ENTER].includes(g.key) && (g.preventDefault(), g.key === He.DOWN && u < l.length - 1 ? m((y) => ({ ...y, activePredictionIndex: u + 1 })) : g.key === He.UP && u > 0 ? m((y) => ({ ...y, activePredictionIndex: u - 1 })) : g.key === He.ENTER && u > -1 && (r(l[u].description), f((y) => ({ ...y, input: l[u].description })), m((y) => ({ ...y, predictions: [], isPredictionSelected: !0 }))));
4513
- }, b = (g) => {
4514
- r(g.target.value), f((y) => ({ ...y, input: g.target.value, displayInput: g.target.value })), m((y) => ({ ...y, activePredictionIndex: -1, isPredictionSelected: !1 }));
4512
+ [He.DOWN, He.UP, He.ENTER].includes(g.key) && (g.preventDefault(), g.key === He.DOWN && l < d.length - 1 ? m((b) => ({ ...b, activePredictionIndex: l + 1 })) : g.key === He.UP && l > 0 ? m((b) => ({ ...b, activePredictionIndex: l - 1 })) : g.key === He.ENTER && l > -1 && (r(d[l].description), f((b) => ({ ...b, input: d[l].description })), m((b) => ({ ...b, predictions: [], isPredictionSelected: !0 }))));
4513
+ }, y = (g) => {
4514
+ r(g.target.value), f((b) => ({ ...b, input: g.target.value, displayInput: g.target.value })), m((b) => ({ ...b, activePredictionIndex: -1, isPredictionSelected: !1 }));
4515
4515
  }, _ = (g) => {
4516
- r(g.description), f((y) => ({ ...y, input: g.description, displayInput: g.description })), m((y) => ({ ...y, isPredictionSelected: !0, predictions: [] }));
4516
+ r(g.description), f((b) => ({ ...b, input: g.description, displayInput: g.description })), m((b) => ({ ...b, isPredictionSelected: !0, predictions: [] }));
4517
4517
  };
4518
4518
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
4519
4519
  /* @__PURE__ */ a.jsx(
@@ -4521,20 +4521,20 @@ const He = {
4521
4521
  {
4522
4522
  type: "text",
4523
4523
  value: o,
4524
- onChange: b,
4524
+ onChange: y,
4525
4525
  onKeyDown: v,
4526
4526
  placeholder: e
4527
4527
  }
4528
4528
  ),
4529
- /* @__PURE__ */ a.jsx("ul", { className: "predictions-list", children: l.map((g, y) => /* @__PURE__ */ a.jsx(
4529
+ /* @__PURE__ */ a.jsx("ul", { className: "predictions-list", children: d.map((g, b) => /* @__PURE__ */ a.jsx(
4530
4530
  "li",
4531
4531
  {
4532
4532
  onClick: () => _(g),
4533
- onMouseEnter: () => m((E) => ({ ...E, activePredictionIndex: y })),
4534
- className: S("predictions-list-item", { active: y === u }),
4533
+ onMouseEnter: () => m((E) => ({ ...E, activePredictionIndex: b })),
4534
+ className: S("predictions-list-item", { active: b === l }),
4535
4535
  children: g.description
4536
4536
  },
4537
- y
4537
+ b
4538
4538
  )) })
4539
4539
  ] });
4540
4540
  };
@@ -4549,12 +4549,12 @@ const Ca = ({
4549
4549
  intlPath: o = !1,
4550
4550
  label: c,
4551
4551
  shownValue: f = !0,
4552
- type: l = "checkbox",
4553
- value: u,
4554
- ...d
4552
+ type: d = "checkbox",
4553
+ value: l,
4554
+ ...u
4555
4555
  }) => {
4556
- const m = G(), { onChange: p, ...v } = r, b = () => {
4557
- e || p(u ? null : f);
4556
+ const m = G(), { onChange: p, ...v } = r, y = () => {
4557
+ e || p(l ? null : f);
4558
4558
  }, _ = /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
4559
4559
  /* @__PURE__ */ a.jsx(
4560
4560
  "input",
@@ -4562,11 +4562,11 @@ const Ca = ({
4562
4562
  ref: s,
4563
4563
  id: i,
4564
4564
  name: i,
4565
- type: l,
4565
+ type: d,
4566
4566
  value: f,
4567
- checked: u,
4567
+ checked: l,
4568
4568
  onKeyDown: (g) => {
4569
- (g.key === "Enter" || g.code === "Space") && (g.preventDefault(), g.stopPropagation(), b());
4569
+ (g.key === "Enter" || g.code === "Space") && (g.preventDefault(), g.stopPropagation(), y());
4570
4570
  },
4571
4571
  readOnly: !0,
4572
4572
  disabled: e
@@ -4581,11 +4581,11 @@ const Ca = ({
4581
4581
  n,
4582
4582
  {
4583
4583
  onClick: (g) => {
4584
- const y = g.target;
4585
- y.nodeName.toLowerCase() === "a" || y.parentNode && y.parentNode.nodeName.toLowerCase() === "a" || (g.preventDefault(), g.stopPropagation(), b());
4584
+ const b = g.target;
4585
+ b.nodeName.toLowerCase() === "a" || b.parentNode && b.parentNode.nodeName.toLowerCase() === "a" || (g.preventDefault(), g.stopPropagation(), y());
4586
4586
  },
4587
4587
  className: S("checkbox-wrapper", t),
4588
- ...d,
4588
+ ...u,
4589
4589
  ...v
4590
4590
  },
4591
4591
  _
@@ -4613,42 +4613,42 @@ const ko = ({
4613
4613
  placeholder: o,
4614
4614
  multiSelect: c,
4615
4615
  multiSelectOptions: f,
4616
- id: l
4616
+ id: d
4617
4617
  }) => {
4618
- const u = G(), [d, m] = te(!1), p = r || n, v = Array.isArray(p) ? [...p] : p ? [p] : [], [b, _] = te(v);
4618
+ const l = G(), [u, m] = te(!1), p = r || n, v = Array.isArray(p) ? [...p] : p ? [p] : [], [y, _] = te(v);
4619
4619
  let g;
4620
- Array.isArray(b) && b.length === 1 && typeof b[0] == "string" ? g = e && b ? e.find((F) => F.id === b[0]) : e ? e[0] : { id: "", label: "" } : Array.isArray(b) && b.length === 1 && typeof b[0] != "string" ? g = b[0] : g = { id: "", label: "" }, ae(() => {
4620
+ Array.isArray(y) && y.length === 1 && typeof y[0] == "string" ? g = e && y ? e.find((F) => F.id === y[0]) : e ? e[0] : { id: "", label: "" } : Array.isArray(y) && y.length === 1 && typeof y[0] != "string" ? g = y[0] : g = { id: "", label: "" }, ae(() => {
4621
4621
  _(v);
4622
4622
  }, [r, n]);
4623
- const { onChange: y, onMultiSelectSubmit: E, ...j } = i, w = (F) => {
4623
+ const { onChange: b, onMultiSelectSubmit: E, ...j } = i, w = (F) => {
4624
4624
  if (c) {
4625
4625
  let q = [];
4626
- b != null && b.includes(F.id) ? q = b.filter((M) => M !== F.id) : q = [...b, F.id], _([...q]), y && y([...q]);
4626
+ y != null && y.includes(F.id) ? q = y.filter((M) => M !== F.id) : q = [...y, F.id], _([...q]), b && b([...q]);
4627
4627
  } else
4628
- _([F]), y && y(F.id), m(!1);
4628
+ _([F]), b && b(F.id), m(!1);
4629
4629
  }, z = (F) => {
4630
4630
  if (F === "all") {
4631
4631
  const q = (e == null ? void 0 : e.map((M) => M.id)) || [];
4632
- _(q), y && y(q);
4632
+ _(q), b && b(q);
4633
4633
  } else
4634
- _([]), y && y([]);
4634
+ _([]), b && b([]);
4635
4635
  };
4636
4636
  return /* @__PURE__ */ a.jsxs("div", { className: S("dropdown-wrapper", t), children: [
4637
4637
  /* @__PURE__ */ a.jsxs(
4638
4638
  "button",
4639
4639
  {
4640
4640
  className: "input",
4641
- "aria-expanded": d,
4641
+ "aria-expanded": u,
4642
4642
  "aria-haspopup": "listbox",
4643
4643
  "aria-controls": "dropdown-list",
4644
4644
  onClick: (F) => {
4645
- F.preventDefault(), F.stopPropagation(), m(!d);
4645
+ F.preventDefault(), F.stopPropagation(), m(!u);
4646
4646
  },
4647
4647
  "data-testid": "dropdown-selector",
4648
4648
  ...j,
4649
4649
  children: [
4650
- c ? `${o} · ${b.length}` : g.label,
4651
- /* @__PURE__ */ a.jsx(wo, { direction: d ? "up" : "down" })
4650
+ c ? `${o} · ${y.length}` : g.label,
4651
+ /* @__PURE__ */ a.jsx(wo, { direction: u ? "up" : "down" })
4652
4652
  ]
4653
4653
  }
4654
4654
  ),
@@ -4661,7 +4661,7 @@ const ko = ({
4661
4661
  const q = e && e.find((M) => M.id === F.target.value);
4662
4662
  w(q);
4663
4663
  },
4664
- hidden: !d,
4664
+ hidden: !u,
4665
4665
  ...j,
4666
4666
  children: e == null ? void 0 : e.map((F) => /* @__PURE__ */ a.jsx("option", { value: F.id, children: F.label }, F.id))
4667
4667
  }
@@ -4671,11 +4671,11 @@ const ko = ({
4671
4671
  {
4672
4672
  className: "menu-options input dropdown-menu",
4673
4673
  role: "menu",
4674
- hidden: !d,
4674
+ hidden: !u,
4675
4675
  children: [
4676
4676
  /* @__PURE__ */ a.jsxs("div", { className: "dropdown-menu-list", children: [
4677
4677
  (f == null ? void 0 : f.topbar) && /* @__PURE__ */ a.jsxs("div", { className: "action-bar", children: [
4678
- /* @__PURE__ */ a.jsx("p", { children: `${b == null ? void 0 : b.length} selected` }),
4678
+ /* @__PURE__ */ a.jsx("p", { children: `${y == null ? void 0 : y.length} selected` }),
4679
4679
  /* @__PURE__ */ a.jsxs("ul", { children: [
4680
4680
  /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
4681
4681
  ie,
@@ -4684,7 +4684,7 @@ const ko = ({
4684
4684
  size: "small",
4685
4685
  onClick: () => z("all"),
4686
4686
  className: "gtm-trackable",
4687
- children: u.formatMessage({ id: "dropdown_menu_multiselect_all" })
4687
+ children: l.formatMessage({ id: "dropdown_menu_multiselect_all" })
4688
4688
  }
4689
4689
  ) }),
4690
4690
  /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
@@ -4694,13 +4694,13 @@ const ko = ({
4694
4694
  size: "small",
4695
4695
  onClick: () => z("none"),
4696
4696
  className: "gtm-trackable",
4697
- children: u.formatMessage({ id: "dropdown_menu_multiselect_none" })
4697
+ children: l.formatMessage({ id: "dropdown_menu_multiselect_none" })
4698
4698
  }
4699
4699
  ) })
4700
4700
  ] })
4701
4701
  ] }),
4702
4702
  /* @__PURE__ */ a.jsx("ul", { children: e == null ? void 0 : e.map((F) => {
4703
- const q = F.id === g.id || (b == null ? void 0 : b.includes(F)) || (b == null ? void 0 : b.includes(F.id));
4703
+ const q = F.id === g.id || (y == null ? void 0 : y.includes(F)) || (y == null ? void 0 : y.includes(F.id));
4704
4704
  return /* @__PURE__ */ a.jsx("li", { "data-testid": "dropdown-options", children: /* @__PURE__ */ a.jsxs(
4705
4705
  "button",
4706
4706
  {
@@ -4729,16 +4729,16 @@ const ko = ({
4729
4729
  {
4730
4730
  variant: "secondary",
4731
4731
  onClick: () => {
4732
- E && E(b), document.dispatchEvent(
4732
+ E && E(y), document.dispatchEvent(
4733
4733
  new CustomEvent("dropdownMultiSelectSubmit", {
4734
4734
  detail: {
4735
- id: l || "dropdown-multi-select",
4736
- value: b
4735
+ id: d || "dropdown-multi-select",
4736
+ value: y
4737
4737
  }
4738
4738
  })
4739
4739
  ), m(!1);
4740
4740
  },
4741
- children: u.formatMessage({ id: "form_submit" })
4741
+ children: l.formatMessage({ id: "form_submit" })
4742
4742
  }
4743
4743
  ) })
4744
4744
  ]
@@ -4757,26 +4757,26 @@ const jo = ({
4757
4757
  name: o,
4758
4758
  options: c,
4759
4759
  required: f,
4760
- type: l = "checkboxes",
4761
- value: u,
4762
- ...d
4760
+ type: d = "checkboxes",
4761
+ value: l,
4762
+ ...u
4763
4763
  }) => {
4764
- const m = G(), p = s ? u : [], v = u;
4764
+ const m = G(), p = s ? l : [], v = l;
4765
4765
  return /* @__PURE__ */ a.jsx(
4766
4766
  "ul",
4767
4767
  {
4768
- ...d,
4768
+ ...u,
4769
4769
  className: S("options-wrapper", t),
4770
4770
  "data-testid": `ul-${r}`,
4771
4771
  children: c == null ? void 0 : c.map(
4772
4772
  ({
4773
- id: b,
4773
+ id: y,
4774
4774
  label: _ = !1,
4775
- value: g = b,
4776
- disabled: y = !1
4775
+ value: g = y,
4776
+ disabled: b = !1
4777
4777
  }) => {
4778
- const E = `${r}_${b}`, j = () => {
4779
- if (y)
4778
+ const E = `${r}_${y}`, j = () => {
4779
+ if (b)
4780
4780
  return;
4781
4781
  let w;
4782
4782
  if (s) {
@@ -4791,7 +4791,7 @@ const jo = ({
4791
4791
  {
4792
4792
  element: "li",
4793
4793
  id: E,
4794
- type: l === "checkboxes" ? "checkbox" : "radio",
4794
+ type: d === "checkboxes" ? "checkbox" : "radio",
4795
4795
  shownValue: g,
4796
4796
  value: s ? p == null ? void 0 : p.includes(g) : v === g,
4797
4797
  functions: {
@@ -4800,9 +4800,9 @@ const jo = ({
4800
4800
  },
4801
4801
  intlPath: n,
4802
4802
  label: _ || m.formatMessage({
4803
- id: n ? `${n}_${b}` : b
4803
+ id: n ? `${n}_${y}` : y
4804
4804
  }),
4805
- disabled: y
4805
+ disabled: b
4806
4806
  },
4807
4807
  E
4808
4808
  );
@@ -4817,9 +4817,9 @@ const To = ({
4817
4817
  gtm: { context: n } = { context: void 0 },
4818
4818
  ...r
4819
4819
  }) => {
4820
- const i = G(), s = pe(), o = t || s, [c, f] = te(!1), [l, u] = te(e), d = () => {
4820
+ const i = G(), s = pe(), o = t || s, [c, f] = te(!1), [d, l] = te(e), u = () => {
4821
4821
  var m;
4822
- f(!c), u(c ? "password" : "text"), (m = o.current) == null || m.focus();
4822
+ f(!c), l(c ? "password" : "text"), (m = o.current) == null || m.focus();
4823
4823
  };
4824
4824
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
4825
4825
  /* @__PURE__ */ a.jsx(
@@ -4831,7 +4831,7 @@ const To = ({
4831
4831
  }),
4832
4832
  "data-gtm-event-context": n,
4833
4833
  "data-gtm-event-type": `${c ? "hide" : "show"}-password-click`,
4834
- onClick: d,
4834
+ onClick: u,
4835
4835
  "aria-label": i.formatMessage({
4836
4836
  id: `showpassword_aria_${c ? "hide" : "show"}`
4837
4837
  }),
@@ -4840,7 +4840,7 @@ const To = ({
4840
4840
  })
4841
4841
  }
4842
4842
  ),
4843
- /* @__PURE__ */ a.jsx(mt, { inputRef: o, type: l, ...r })
4843
+ /* @__PURE__ */ a.jsx(mt, { inputRef: o, type: d, ...r })
4844
4844
  ] });
4845
4845
  };
4846
4846
  const Ve = {
@@ -4863,13 +4863,13 @@ const Ve = {
4863
4863
  showRequiredLabels: o = !0,
4864
4864
  type: c,
4865
4865
  validation: f,
4866
- value: l,
4867
- ...u
4866
+ value: d,
4867
+ ...l
4868
4868
  }) => {
4869
- const d = G(), m = f && f.some(({ condition: j }) => j === "required"), p = (l == null ? void 0 : l.toString().length) || 0, v = c && Ve[c] && Ve[c].component ? Ve[c].component : mt, b = {};
4870
- c && ["checkboxes"].includes(c) ? b.element = "span" : b.htmlFor = t;
4869
+ const u = G(), m = f && f.some(({ condition: j }) => j === "required"), p = (d == null ? void 0 : d.toString().length) || 0, v = c && Ve[c] && Ve[c].component ? Ve[c].component : mt, y = {};
4870
+ c && ["checkboxes"].includes(c) ? y.element = "span" : y.htmlFor = t;
4871
4871
  let _ = {
4872
- ...u,
4872
+ ...l,
4873
4873
  id: t,
4874
4874
  name: t,
4875
4875
  className: r ? "error" : "",
@@ -4877,12 +4877,12 @@ const Ve = {
4877
4877
  required: m,
4878
4878
  "aria-required": m,
4879
4879
  functions: ut(i),
4880
- value: l
4880
+ value: d
4881
4881
  };
4882
4882
  s > 0 && (_["data-character-limit"] = s, _.functions && (_.functions.onChange = (j) => {
4883
4883
  ((j == null ? void 0 : j.toString().length) || 0) > s && (j = j == null ? void 0 : j.toString().slice(0, s)), i.onChange(j);
4884
4884
  })), c && Ve[c] && Ve[c].props && (_ = { ..._, ...Ve[c].props }), c && ["checkboxes"].includes(c) && (_.intlPath = `${e}_${t}`), r && (_["aria-invalid"] = !0, _["aria-describedby"] = `error-${t}`);
4885
- const g = u.label || d.formatMessage({ id: e ? `${e}_${t}` : t }), y = ({ ...j }) => r ? K.createElement(
4885
+ const g = l.label || u.formatMessage({ id: e ? `${e}_${t}` : t }), b = ({ ...j }) => r ? K.createElement(
4886
4886
  j.as || "dd",
4887
4887
  {
4888
4888
  id: `error-${t}`,
@@ -4903,7 +4903,7 @@ const Ve = {
4903
4903
  className: S("field-wrapper", n)
4904
4904
  }
4905
4905
  ),
4906
- /* @__PURE__ */ a.jsx(y, { as: "p" })
4906
+ /* @__PURE__ */ a.jsx(b, { as: "p" })
4907
4907
  ] });
4908
4908
  const E = (j) => K.createElement(j.element || "label", {
4909
4909
  ...j,
@@ -4911,13 +4911,13 @@ const Ve = {
4911
4911
  "data-testid": `label-${t}`
4912
4912
  });
4913
4913
  return /* @__PURE__ */ a.jsxs("dl", { className: S("field-wrapper text-medium", n), children: [
4914
- /* @__PURE__ */ a.jsx("dt", { children: /* @__PURE__ */ a.jsxs(E, { ...b, children: [
4914
+ /* @__PURE__ */ a.jsx("dt", { children: /* @__PURE__ */ a.jsxs(E, { ...y, children: [
4915
4915
  g,
4916
4916
  m && o && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
4917
4917
  " ",
4918
4918
  /* @__PURE__ */ a.jsxs("small", { children: [
4919
4919
  "(",
4920
- d.formatMessage({ id: "form_fieldWrapper_required" }),
4920
+ u.formatMessage({ id: "form_fieldWrapper_required" }),
4921
4921
  ")"
4922
4922
  ] })
4923
4923
  ] })
@@ -4932,7 +4932,7 @@ const Ve = {
4932
4932
  "approaching-limit": p >= 0.9 * s && p < 0.99 * s
4933
4933
  }),
4934
4934
  children: [
4935
- /* @__PURE__ */ a.jsx("span", { className: "hidden", children: d.formatMessage({ id: "form_fieldWrapper_characterLimit" }) }),
4935
+ /* @__PURE__ */ a.jsx("span", { className: "hidden", children: u.formatMessage({ id: "form_fieldWrapper_characterLimit" }) }),
4936
4936
  p,
4937
4937
  " / ",
4938
4938
  s
@@ -4940,7 +4940,7 @@ const Ve = {
4940
4940
  }
4941
4941
  ) : null
4942
4942
  ] }),
4943
- /* @__PURE__ */ a.jsx(y, {})
4943
+ /* @__PURE__ */ a.jsx(b, {})
4944
4944
  ] });
4945
4945
  }, So = (t, e) => {
4946
4946
  const { type: n, payload: r } = e, i = t.errors ? ut(t.errors) : {}, s = t.values ? ut(t.values) : {};
@@ -4976,34 +4976,34 @@ const Ve = {
4976
4976
  },
4977
4977
  onSuccess: f = () => {
4978
4978
  },
4979
- onFailure: l = () => {
4979
+ onFailure: d = () => {
4980
4980
  },
4981
- intl: u
4982
- } = r, d = ut(Object.keys(i));
4981
+ intl: l
4982
+ } = r, u = ut(Object.keys(i));
4983
4983
  for (const m of o)
4984
4984
  if (m.validation)
4985
4985
  for (let p = 0; p < m.validation.length; p++) {
4986
- const { condition: v = "required", error: b = !1 } = m.validation[p];
4986
+ const { condition: v = "required", error: y = !1 } = m.validation[p];
4987
4987
  let _ = !1;
4988
4988
  if (typeof v == "function") {
4989
4989
  const g = v(s);
4990
- g && (_ = b || g);
4990
+ g && (_ = y || g);
4991
4991
  } else {
4992
4992
  const g = s[m.id];
4993
4993
  switch (v) {
4994
4994
  case "required":
4995
- (!g || typeof g == "string" && g.trim().length === 0) && (_ = b || (u == null ? void 0 : u.formatMessage({ id: "form_error_required" })));
4995
+ (!g || typeof g == "string" && g.trim().length === 0) && (_ = y || (l == null ? void 0 : l.formatMessage({ id: "form_error_required" })));
4996
4996
  break;
4997
4997
  case "no-numbers": {
4998
- g && !/^([^0-9]*)$/.test(g) && (_ = b || (u == null ? void 0 : u.formatMessage({ id: "form_error_numbers" })));
4998
+ g && !/^([^0-9]*)$/.test(g) && (_ = y || (l == null ? void 0 : l.formatMessage({ id: "form_error_numbers" })));
4999
4999
  break;
5000
5000
  }
5001
5001
  case "valid-email": {
5002
- g && !/^(([^<>()[\]\\.,;:\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(g) && (_ = b || (u == null ? void 0 : u.formatMessage({ id: "form_error_email" })));
5002
+ g && !/^(([^<>()[\]\\.,;:\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(g) && (_ = y || (l == null ? void 0 : l.formatMessage({ id: "form_error_email" })));
5003
5003
  break;
5004
5004
  }
5005
5005
  case "valid-url": {
5006
- g && !/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$/.test(g) && (_ = b || (u == null ? void 0 : u.formatMessage({ id: "form_error_url" })));
5006
+ g && !/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$/.test(g) && (_ = y || (l == null ? void 0 : l.formatMessage({ id: "form_error_url" })));
5007
5007
  break;
5008
5008
  }
5009
5009
  default:
@@ -5014,11 +5014,11 @@ const Ve = {
5014
5014
  c({
5015
5015
  type: "addError",
5016
5016
  payload: { key: m.id, value: _ }
5017
- }), d.push(m.id);
5017
+ }), u.push(m.id);
5018
5018
  break;
5019
5019
  }
5020
5020
  }
5021
- return d.length === 0 ? f(s) : l(s, d), {
5021
+ return u.length === 0 ? f(s) : d(s, u), {
5022
5022
  ...t,
5023
5023
  isSubmitting: !1
5024
5024
  };
@@ -5059,15 +5059,15 @@ const Qn = ({
5059
5059
  meta: {
5060
5060
  shouldShowCancelButton: c = !1,
5061
5061
  shouldReset: f = !0,
5062
- showRequiredLabels: l = !0,
5063
- showSuccessMessage: u = !1
5062
+ showRequiredLabels: d = !0,
5063
+ showSuccessMessage: l = !1
5064
5064
  } = {
5065
5065
  shouldShowCancelButton: !1,
5066
5066
  shouldReset: !0,
5067
5067
  showRequiredLabels: !0,
5068
5068
  showSuccessMessage: !1
5069
5069
  },
5070
- gtm: d = { context: "Form", event: "form-submit-click" },
5070
+ gtm: u = { context: "Form", event: "form-submit-click" },
5071
5071
  functions: {
5072
5072
  onSuccess: m = async () => {
5073
5073
  },
@@ -5075,7 +5075,7 @@ const Qn = ({
5075
5075
  },
5076
5076
  onCatch: v = () => {
5077
5077
  },
5078
- onFailure: b = () => {
5078
+ onFailure: y = () => {
5079
5079
  }
5080
5080
  } = {
5081
5081
  onSuccess: async () => {
@@ -5089,7 +5089,7 @@ const Qn = ({
5089
5089
  },
5090
5090
  ..._
5091
5091
  }) => {
5092
- const { customOnSubmit: g, hideButton: y, ...E } = s, j = 40, w = G(), z = {};
5092
+ const { customOnSubmit: g, hideButton: b, ...E } = s, j = 40, w = G(), z = {};
5093
5093
  t.length && t.forEach((A) => {
5094
5094
  const W = A.id || A.name;
5095
5095
  W && (z[W] = A.value || "");
@@ -5172,7 +5172,7 @@ const Qn = ({
5172
5172
  }
5173
5173
  },
5174
5174
  onFailure: (N, Z) => {
5175
- b(N, Z), q({
5175
+ y(N, Z), q({
5176
5176
  type: "updateValue",
5177
5177
  payload: { key: "isSubmitting", value: !1 }
5178
5178
  });
@@ -5182,8 +5182,8 @@ const Qn = ({
5182
5182
  });
5183
5183
  },
5184
5184
  disabled: O || C || s.disabled,
5185
- "data-gtm-event-context": d.context,
5186
- "data-gtm-event-type": d.event,
5185
+ "data-gtm-event-context": u.context,
5186
+ "data-gtm-event-type": u.event,
5187
5187
  children: O || C ? w.formatMessage({
5188
5188
  id: `form_${O ? "submitting" : "submitted"}`
5189
5189
  }) : s.text
@@ -5192,8 +5192,8 @@ const Qn = ({
5192
5192
  return c && U.unshift({
5193
5193
  ...o,
5194
5194
  className: "gtm-trackable",
5195
- "data-gtm-event-context": d.context,
5196
- "data-gtm-event-type": d.event,
5195
+ "data-gtm-event-context": u.context,
5196
+ "data-gtm-event-type": u.event,
5197
5197
  disabled: O || C,
5198
5198
  onClick: p,
5199
5199
  children: o.text || w.formatMessage({ id: "form_cancel" })
@@ -5228,7 +5228,7 @@ const Qn = ({
5228
5228
  {
5229
5229
  intlPath: i,
5230
5230
  ...A,
5231
- showRequiredLabels: l,
5231
+ showRequiredLabels: d,
5232
5232
  value: Z,
5233
5233
  error: M == null ? void 0 : M[J],
5234
5234
  functions: {
@@ -5241,7 +5241,7 @@ const Qn = ({
5241
5241
  J
5242
5242
  );
5243
5243
  }),
5244
- y ? null : (O || C) && g ? g : /* @__PURE__ */ a.jsx(
5244
+ b ? null : (O || C) && g ? g : /* @__PURE__ */ a.jsx(
5245
5245
  yt,
5246
5246
  {
5247
5247
  className: S("cta", {
@@ -5254,7 +5254,7 @@ const Qn = ({
5254
5254
  ]
5255
5255
  }
5256
5256
  ),
5257
- u && C && /* @__PURE__ */ a.jsx(Bt, { className: "success", children: typeof u == "string" ? u : w.formatMessage({ id: "form_success" }) })
5257
+ l && C && /* @__PURE__ */ a.jsx(Bt, { className: "success", children: typeof l == "string" ? l : w.formatMessage({ id: "form_success" }) })
5258
5258
  ] });
5259
5259
  };
5260
5260
  const Ct = "passwordRules_", $a = "isMoreThanEightCharacters", Na = "includesNumberAndSymbol", Pa = "includesLowerAndUppercase", Co = {
@@ -5307,74 +5307,74 @@ const Cl = ({
5307
5307
  className: s = "",
5308
5308
  hasLoaded: o = !1
5309
5309
  }) => {
5310
- const c = G(), [f, l] = te({
5310
+ const c = G(), [f, d] = te({
5311
5311
  setUp: !1,
5312
5312
  id: null,
5313
5313
  rating: null,
5314
5314
  disabled: !0
5315
- }), u = async () => {
5315
+ }), l = async () => {
5316
5316
  try {
5317
5317
  const g = await n();
5318
- l((y) => ({
5319
- ...y,
5318
+ d((b) => ({
5319
+ ...b,
5320
5320
  setUp: !0,
5321
5321
  id: g && g.id,
5322
5322
  disabled: !1
5323
5323
  }));
5324
5324
  } catch (g) {
5325
- l((y) => ({ ...y, setUp: !0, disabled: !0 })), i(g);
5325
+ d((b) => ({ ...b, setUp: !0, disabled: !0 })), i(g);
5326
5326
  }
5327
5327
  };
5328
5328
  if (ae(() => {
5329
- o && !f.setUp && u();
5329
+ o && !f.setUp && l();
5330
5330
  }, [o]), !o)
5331
5331
  return /* @__PURE__ */ a.jsx(Te, { className: "rating-placeholder" });
5332
- const { id: d, rating: m, disabled: p } = f, v = "ratings_", b = {
5332
+ const { id: u, rating: m, disabled: p } = f, v = "ratings_", y = {
5333
5333
  text: c.formatMessage({ id: `${v}text` }),
5334
5334
  low: c.formatMessage({ id: `${v}low` }),
5335
5335
  high: c.formatMessage({ id: `${v}high` }),
5336
5336
  success: c.formatMessage({ id: `${v}success` }),
5337
5337
  ...t
5338
5338
  }, _ = async (g) => {
5339
- if (!(!d || p))
5339
+ if (!(!u || p))
5340
5340
  try {
5341
- l((y) => ({ ...y, rating: g, disabled: !0 })), await r({ id: d, value: g });
5342
- } catch (y) {
5343
- l((E) => ({ ...E, rating: null })), i(y);
5341
+ d((b) => ({ ...b, rating: g, disabled: !0 })), await r({ id: u, value: g });
5342
+ } catch (b) {
5343
+ d((E) => ({ ...E, rating: null })), i(b);
5344
5344
  } finally {
5345
- l((y) => ({ ...y, disabled: !1 }));
5345
+ d((b) => ({ ...b, disabled: !1 }));
5346
5346
  }
5347
5347
  };
5348
5348
  return /* @__PURE__ */ a.jsxs("div", { className: S("rating", s), children: [
5349
- /* @__PURE__ */ a.jsx("span", { className: "label", children: b[m ? "success" : "text"] }),
5349
+ /* @__PURE__ */ a.jsx("span", { className: "label", children: y[m ? "success" : "text"] }),
5350
5350
  /* @__PURE__ */ a.jsx("ol", { children: Array.from(new Array(e).keys()).map((g) => {
5351
- const y = g + 1;
5351
+ const b = g + 1;
5352
5352
  return /* @__PURE__ */ a.jsx(
5353
5353
  "li",
5354
5354
  {
5355
- className: S({ selected: m && y <= m }),
5355
+ className: S({ selected: m && b <= m }),
5356
5356
  children: /* @__PURE__ */ a.jsx(
5357
5357
  ie,
5358
5358
  {
5359
5359
  variant: "tertiary",
5360
5360
  size: "small",
5361
5361
  icon: {
5362
- icon: `star${!m || y > m ? "_empty" : ""}`,
5362
+ icon: `star${!m || b > m ? "_empty" : ""}`,
5363
5363
  position: "left",
5364
5364
  hover: "star"
5365
5365
  },
5366
5366
  screenreaderText: `${c.formatMessage(
5367
5367
  { id: `${v}stars` },
5368
- { number: y, total: e }
5369
- )}${y === 1 || y === e ? ` - ${b[y === 1 ? "low" : "high"]}` : ""}`,
5368
+ { number: b, total: e }
5369
+ )}${b === 1 || b === e ? ` - ${y[b === 1 ? "low" : "high"]}` : ""}`,
5370
5370
  onClick: (E) => {
5371
- E.preventDefault(), E.stopPropagation(), _(y);
5371
+ E.preventDefault(), E.stopPropagation(), _(b);
5372
5372
  },
5373
5373
  disabled: p
5374
5374
  }
5375
5375
  )
5376
5376
  },
5377
- `rating-${y}`
5377
+ `rating-${b}`
5378
5378
  );
5379
5379
  }) })
5380
5380
  ] });
@@ -5395,15 +5395,15 @@ const $l = ({
5395
5395
  ae(() => {
5396
5396
  r && f(r);
5397
5397
  }, [r]);
5398
- const l = (u) => {
5399
- s || (f(u), i(u));
5398
+ const d = (l) => {
5399
+ s || (f(l), i(l));
5400
5400
  };
5401
5401
  return /* @__PURE__ */ a.jsxs(
5402
5402
  "div",
5403
5403
  {
5404
5404
  className: S("toggle", o),
5405
- onClick: (u) => {
5406
- u.preventDefault(), u.stopPropagation(), l(c === n[0].value ? n[1].value : n[0].value);
5405
+ onClick: (l) => {
5406
+ l.preventDefault(), l.stopPropagation(), d(c === n[0].value ? n[1].value : n[0].value);
5407
5407
  },
5408
5408
  children: [
5409
5409
  /* @__PURE__ */ a.jsx("p", { children: e }),
@@ -5414,23 +5414,23 @@ const $l = ({
5414
5414
  disabled: s,
5415
5415
  on: c === n[1].value
5416
5416
  }),
5417
- children: n.map((u) => {
5418
- const d = `${t}-${u.value}`;
5417
+ children: n.map((l) => {
5418
+ const u = `${t}-${l.value}`;
5419
5419
  return /* @__PURE__ */ a.jsxs("li", { className: "hidden", children: [
5420
5420
  /* @__PURE__ */ a.jsx(
5421
5421
  "input",
5422
5422
  {
5423
5423
  type: "radio",
5424
- id: d,
5424
+ id: u,
5425
5425
  name: t,
5426
- value: u.value,
5427
- checked: c === u.value,
5428
- onChange: () => l(u.value),
5426
+ value: l.value,
5427
+ checked: c === l.value,
5428
+ onChange: () => d(l.value),
5429
5429
  disabled: s
5430
5430
  }
5431
5431
  ),
5432
- /* @__PURE__ */ a.jsx("label", { htmlFor: d, children: u.label })
5433
- ] }, d);
5432
+ /* @__PURE__ */ a.jsx("label", { htmlFor: u, children: l.label })
5433
+ ] }, u);
5434
5434
  })
5435
5435
  }
5436
5436
  )
@@ -5439,22 +5439,22 @@ const $l = ({
5439
5439
  );
5440
5440
  };
5441
5441
  function Nl({ className: t = "", userId: e, userName: n, src: r, setUserImage: i, uploadImage: s }) {
5442
- const [o, c] = te(!1), [f, l] = te(!1), u = pe(null), d = async (m) => {
5443
- c(!0), l(!1);
5442
+ const [o, c] = te(!1), [f, d] = te(!1), l = pe(null), u = async (m) => {
5443
+ c(!0), d(!1);
5444
5444
  try {
5445
5445
  const p = m.target.files && m.target.files[0];
5446
5446
  if (!p || !e)
5447
5447
  throw c(!1), new Error("Image file or userID is missing");
5448
5448
  const v = await s({ fileObject: p, userId: e });
5449
- i((b) => ({
5450
- ...b,
5449
+ i((y) => ({
5450
+ ...y,
5451
5451
  image: {
5452
5452
  thumbnail: v.thumbnailURL,
5453
5453
  full: v.originalURL
5454
5454
  }
5455
5455
  }));
5456
5456
  } catch {
5457
- l(!0);
5457
+ d(!0);
5458
5458
  } finally {
5459
5459
  c(!1);
5460
5460
  }
@@ -5469,8 +5469,8 @@ function Nl({ className: t = "", userId: e, userName: n, src: r, setUserImage: i
5469
5469
  id: "file",
5470
5470
  type: "file",
5471
5471
  accept: "image/*",
5472
- ref: u,
5473
- onChange: d,
5472
+ ref: l,
5473
+ onChange: u,
5474
5474
  hidden: !0,
5475
5475
  "data-testid": "file-input"
5476
5476
  }
@@ -5478,7 +5478,7 @@ function Nl({ className: t = "", userId: e, userName: n, src: r, setUserImage: i
5478
5478
  /* @__PURE__ */ a.jsx(
5479
5479
  ie,
5480
5480
  {
5481
- onClick: () => u.current && u.current.click(),
5481
+ onClick: () => l.current && l.current.click(),
5482
5482
  variant: "secondary",
5483
5483
  "data-gtm-event-context": "ImageField",
5484
5484
  "data-gtm-event-type": `${r ? "change-photo" : "add-photo"}-click`,
@@ -5547,29 +5547,29 @@ const Po = ({
5547
5547
  onClose: o,
5548
5548
  reportError: c,
5549
5549
  sendInvites: f,
5550
- initialFormStatus: l = "NOT_SUBMITTED"
5550
+ initialFormStatus: d = "NOT_SUBMITTED"
5551
5551
  /* NOT_SUBMITTED */
5552
5552
  }) => {
5553
- const [u, d] = te([]), [m, p] = te(!0), [v, b] = te(l), { formatMessage: _ } = G(), g = async (j) => {
5553
+ const [l, u] = te([]), [m, p] = te(!0), [v, y] = te(d), { formatMessage: _ } = G(), g = async (j) => {
5554
5554
  j.preventDefault();
5555
5555
  try {
5556
- await f(u), d([]), b(
5556
+ await f(l), u([]), y(
5557
5557
  "SUCCESS"
5558
5558
  /* SUCCESS */
5559
5559
  );
5560
5560
  } catch (w) {
5561
- b(
5561
+ y(
5562
5562
  "ERROR"
5563
5563
  /* ERROR */
5564
5564
  ), c(w);
5565
5565
  }
5566
- }, y = (j) => {
5567
- j.preventDefault(), b(
5566
+ }, b = (j) => {
5567
+ j.preventDefault(), y(
5568
5568
  "NOT_SUBMITTED"
5569
5569
  /* NOT_SUBMITTED */
5570
- ), p(!0), d([]);
5570
+ ), p(!0), u([]);
5571
5571
  }, E = (j) => {
5572
- j.preventDefault(), o(), b(
5572
+ j.preventDefault(), o(), y(
5573
5573
  "CLOSED"
5574
5574
  /* CLOSED */
5575
5575
  );
@@ -5581,9 +5581,9 @@ const Po = ({
5581
5581
  ] }) }),
5582
5582
  /* @__PURE__ */ a.jsx(Re, {}),
5583
5583
  /* @__PURE__ */ a.jsx("div", { className: "footer", children: v === "SUCCESS" ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
5584
- /* @__PURE__ */ a.jsx(ie, { variant: "secondary", onClick: y, children: _({ id: "inviteForm_ctaSendMoreInvites" }) }),
5584
+ /* @__PURE__ */ a.jsx(ie, { variant: "secondary", onClick: b, children: _({ id: "inviteForm_ctaSendMoreInvites" }) }),
5585
5585
  /* @__PURE__ */ a.jsx(ie, { onClick: E, children: _({ id: "inviteForm_ctaDone" }) })
5586
- ] }) : /* @__PURE__ */ a.jsx(ie, { onClick: y, children: _({ id: "inviteForm_ctaTryAgain" }) }) })
5586
+ ] }) : /* @__PURE__ */ a.jsx(ie, { onClick: b, children: _({ id: "inviteForm_ctaTryAgain" }) }) })
5587
5587
  ] }) : /* @__PURE__ */ a.jsx("div", { className: "invite-form-wrapper", children: /* @__PURE__ */ a.jsxs(
5588
5588
  "form",
5589
5589
  {
@@ -5600,9 +5600,9 @@ const Po = ({
5600
5600
  id: "email-input",
5601
5601
  inputClassName: "email-input input",
5602
5602
  placeholder: _({ id: "inviteForm_email_placeholder" }),
5603
- emails: u,
5603
+ emails: l,
5604
5604
  onChange: (j) => {
5605
- d(j), p(!j.length);
5605
+ u(j), p(!j.length);
5606
5606
  },
5607
5607
  autoFocus: !1,
5608
5608
  getLabel: (j, w, z) => /* @__PURE__ */ a.jsxs("div", { className: "email text-medium", children: [
@@ -5614,7 +5614,7 @@ const Po = ({
5614
5614
  size: "small",
5615
5615
  icon: { icon: "close" },
5616
5616
  onClick: () => {
5617
- z(w), p(!u.length);
5617
+ z(w), p(!l.length);
5618
5618
  },
5619
5619
  className: "remove-email-button",
5620
5620
  screenreaderText: _({ id: "overlay_close" })
@@ -5638,17 +5638,17 @@ const Mo = ({
5638
5638
  gtmContext: i = "search-bar",
5639
5639
  gtmEvent: s = "form-submission"
5640
5640
  }) => {
5641
- const { searchIsOpen: o = !0, isDesktopVersion: c = !1 } = n || {}, f = G(), l = pe(null);
5641
+ const { searchIsOpen: o = !0, isDesktopVersion: c = !1 } = n || {}, f = G(), d = pe(null);
5642
5642
  gt(() => {
5643
- !n || c || !o || l.current && l.current.focus();
5643
+ !n || c || !o || d.current && d.current.focus();
5644
5644
  }, [o]);
5645
- const u = (d) => {
5646
- d.preventDefault(), d.stopPropagation(), !(!l.current || !l.current.value || l.current.value.length < 1) && (window.location.href = `/search?search=${encodeURIComponent(l.current.value)}`);
5645
+ const l = (u) => {
5646
+ u.preventDefault(), u.stopPropagation(), !(!d.current || !d.current.value || d.current.value.length < 1) && (window.location.href = `/search?search=${encodeURIComponent(d.current.value)}`);
5647
5647
  };
5648
5648
  return /* @__PURE__ */ a.jsx(
5649
5649
  "form",
5650
5650
  {
5651
- onSubmit: u,
5651
+ onSubmit: l,
5652
5652
  className: S("search-form gtm-trackable", e),
5653
5653
  "data-gtm-event-context": i,
5654
5654
  "data-gtm-event-type": s,
@@ -5670,14 +5670,14 @@ const Mo = ({
5670
5670
  /* @__PURE__ */ a.jsx(
5671
5671
  "input",
5672
5672
  {
5673
- ref: l,
5673
+ ref: d,
5674
5674
  type: "search",
5675
5675
  id: t,
5676
5676
  name: t,
5677
5677
  defaultValue: r,
5678
5678
  placeholder: f.formatMessage({ id: "search_placeholder" }),
5679
- onKeyDown: (d) => {
5680
- d.key === "Enter" && u(d);
5679
+ onKeyDown: (u) => {
5680
+ u.key === "Enter" && l(u);
5681
5681
  }
5682
5682
  }
5683
5683
  ),
@@ -5685,13 +5685,13 @@ const Mo = ({
5685
5685
  "button",
5686
5686
  {
5687
5687
  className: "clear",
5688
- onClick: (d) => {
5689
- d.preventDefault(), d.stopPropagation(), l.current && l.current.value && (l.current.value = "");
5688
+ onClick: (u) => {
5689
+ u.preventDefault(), u.stopPropagation(), d.current && d.current.value && (d.current.value = "");
5690
5690
  },
5691
5691
  children: /* @__PURE__ */ a.jsx(be, { children: f.formatMessage({ id: "search_clear" }) })
5692
5692
  }
5693
5693
  ),
5694
- /* @__PURE__ */ a.jsx("button", { className: "search", onClick: u, children: /* @__PURE__ */ a.jsx(be, { children: f.formatMessage({ id: "search_cta" }) }) })
5694
+ /* @__PURE__ */ a.jsx("button", { className: "search", onClick: l, children: /* @__PURE__ */ a.jsx(be, { children: f.formatMessage({ id: "search_cta" }) }) })
5695
5695
  ] })
5696
5696
  }
5697
5697
  )
@@ -5728,15 +5728,15 @@ const Mo = ({
5728
5728
  { type: "validFields.email", value: !1 }
5729
5729
  ]);
5730
5730
  }
5731
- const { valid: c = !1, autoApproved: f = !1, exists: l } = o;
5732
- let u = "";
5733
- return c ? u = f ? "gov" : "nonGov" : l.registration ? l.engagement && !l.user ? u = l.auth ? "verify" : "pending" : u = "exists" : l.auth && (u = "exists"), n([
5731
+ const { valid: c = !1, autoApproved: f = !1, exists: d } = o;
5732
+ let l = "";
5733
+ return c ? l = f ? "gov" : "nonGov" : d.registration ? d.engagement && !d.user ? l = d.auth ? "verify" : "pending" : l = "exists" : d.auth && (l = "exists"), n([
5734
5734
  { type: "shouldManuallyApprove", value: !f },
5735
5735
  {
5736
5736
  type: "emailDetails",
5737
5737
  value: {
5738
5738
  email: i,
5739
- boxType: u,
5739
+ boxType: l,
5740
5740
  isEnd2End: /testing\+[0-9]+@apolitical.co$/.test(i)
5741
5741
  }
5742
5742
  },
@@ -5784,16 +5784,16 @@ const Mo = ({
5784
5784
  intl: c
5785
5785
  // We need to pass `intl` in as it's being used in a hook
5786
5786
  }) => {
5787
- const { emailDetails: f } = i, l = (d, m) => {
5788
- d.current && i.validFields[m] !== d.current.validity.valid && s([{ type: `validFields.${m}`, value: d.current.validity.valid }]);
5789
- }, u = [
5787
+ const { emailDetails: f } = i, d = (u, m) => {
5788
+ u.current && i.validFields[m] !== u.current.validity.valid && s([{ type: `validFields.${m}`, value: u.current.validity.valid }]);
5789
+ }, l = [
5790
5790
  {
5791
5791
  id: "full_name",
5792
5792
  type: "text",
5793
5793
  inputRef: r.name,
5794
5794
  placeholder: c.formatMessage({ id: "signup_full_name_placeholder" }),
5795
5795
  functions: {
5796
- onChange: () => l(r.name, "name"),
5796
+ onChange: () => d(r.name, "name"),
5797
5797
  onFocus: () => s([{ type: "loadRecaptcha", value: !0 }])
5798
5798
  },
5799
5799
  autoComplete: "name",
@@ -5811,7 +5811,7 @@ const Mo = ({
5811
5811
  onBlur: () => {
5812
5812
  Ar({ ref: r.email, validateEmail: e, dispatch: s });
5813
5813
  },
5814
- onChange: (d, m) => {
5814
+ onChange: (u, m) => {
5815
5815
  m && m({
5816
5816
  type: "updateValue",
5817
5817
  payload: { key: "terms", value: !1 }
@@ -5832,14 +5832,14 @@ const Mo = ({
5832
5832
  }
5833
5833
  }
5834
5834
  ];
5835
- return i.shouldManuallyApprove && (u.push(
5835
+ return i.shouldManuallyApprove && (l.push(
5836
5836
  {
5837
5837
  id: "job_title",
5838
5838
  type: "text",
5839
5839
  inputRef: r.jobTitle,
5840
5840
  placeholder: c.formatMessage({ id: "signup_job_title_placeholder" }),
5841
5841
  functions: {
5842
- onChange: () => l(r.jobTitle, "jobTitle")
5842
+ onChange: () => d(r.jobTitle, "jobTitle")
5843
5843
  },
5844
5844
  validation: [{ condition: "required" }],
5845
5845
  "data-testid": "signup-job-input"
@@ -5853,37 +5853,37 @@ const Mo = ({
5853
5853
  }),
5854
5854
  functions: {
5855
5855
  onChange: () => {
5856
- l(r.organisation, "organisation");
5856
+ d(r.organisation, "organisation");
5857
5857
  }
5858
5858
  },
5859
5859
  validation: [{ condition: "required" }],
5860
5860
  "data-testid": "signup-org-input"
5861
5861
  }
5862
- ), t.url && u.push({
5862
+ ), t.url && l.push({
5863
5863
  id: "url",
5864
5864
  type: "text",
5865
5865
  label: c.formatMessage(
5866
5866
  { id: "signup_url" },
5867
5867
  {
5868
- small: (d) => /* @__PURE__ */ a.jsx("small", { children: d })
5868
+ small: (u) => /* @__PURE__ */ a.jsx("small", { children: u })
5869
5869
  }
5870
5870
  ),
5871
5871
  placeholder: c.formatMessage({ id: "signup_url_placeholder" }),
5872
5872
  validation: [{ condition: "valid-url" }],
5873
5873
  "data-testid": "signup-url-input"
5874
- })), t.expectation && u.push({
5874
+ })), t.expectation && l.push({
5875
5875
  id: "expectation",
5876
5876
  className: "expectation",
5877
5877
  type: "text",
5878
5878
  label: c.formatMessage(
5879
5879
  { id: "signup_expectation" },
5880
5880
  {
5881
- small: (d) => /* @__PURE__ */ a.jsx("small", { className: "notes text-small", children: d })
5881
+ small: (u) => /* @__PURE__ */ a.jsx("small", { className: "notes text-small", children: u })
5882
5882
  }
5883
5883
  ),
5884
5884
  placeholder: c.formatMessage({ id: "signup_expectation_placeholder" }),
5885
5885
  "data-testid": "signup-events-question"
5886
- }), u.push({
5886
+ }), l.push({
5887
5887
  id: "terms",
5888
5888
  className: "text-small",
5889
5889
  type: "checkbox",
@@ -5891,32 +5891,32 @@ const Mo = ({
5891
5891
  label: c.formatMessage(
5892
5892
  { id: "signup_terms" },
5893
5893
  {
5894
- terms: (d) => /* @__PURE__ */ a.jsx(
5894
+ terms: (u) => /* @__PURE__ */ a.jsx(
5895
5895
  "a",
5896
5896
  {
5897
5897
  href: "https://about.apolitical.co/terms-and-conditions",
5898
5898
  "data-gtm-event-context": "SignupForm",
5899
5899
  "data-gtm-event-type": "terms-of-service-click",
5900
5900
  className: "gtm-trackable",
5901
- children: d
5901
+ children: u
5902
5902
  }
5903
5903
  ),
5904
- privacy: (d) => /* @__PURE__ */ a.jsx(
5904
+ privacy: (u) => /* @__PURE__ */ a.jsx(
5905
5905
  "a",
5906
5906
  {
5907
5907
  href: "https://about.apolitical.co/privacy-policy",
5908
5908
  "data-gtm-event-context": "SignupForm",
5909
5909
  "data-gtm-event-type": "privacy-policy-click",
5910
5910
  className: "gtm-trackable",
5911
- children: d
5911
+ children: u
5912
5912
  }
5913
5913
  )
5914
5914
  }
5915
5915
  ),
5916
5916
  shownValue: "accepted",
5917
5917
  functions: {
5918
- onChange: (d) => {
5919
- if (!d)
5918
+ onChange: (u) => {
5919
+ if (!u)
5920
5920
  return;
5921
5921
  const m = [];
5922
5922
  ["name", "email"].forEach((p) => {
@@ -5929,7 +5929,7 @@ const Mo = ({
5929
5929
  },
5930
5930
  validation: [{ condition: "required" }],
5931
5931
  "data-testid": "signup-terms-checkbox"
5932
- }), u;
5932
+ }), l;
5933
5933
  };
5934
5934
  const Do = ({ className: t = "" }) => /* @__PURE__ */ a.jsxs(
5935
5935
  "div",
@@ -5984,12 +5984,12 @@ const Ao = {
5984
5984
  ...s
5985
5985
  }) => {
5986
5986
  const o = G(), [c, f] = zn(ra, Ao), {
5987
- validFields: l,
5988
- emailDetails: u,
5989
- shouldManuallyApprove: d,
5987
+ validFields: d,
5988
+ emailDetails: l,
5989
+ shouldManuallyApprove: u,
5990
5990
  showSuccessMessage: m,
5991
5991
  showError: p
5992
- } = c, [v, b] = Qr([
5992
+ } = c, [v, y] = Qr([
5993
5993
  "signup-this-session",
5994
5994
  "functional-cookie-consent"
5995
5995
  ]), _ = {
@@ -6002,8 +6002,8 @@ const Ao = {
6002
6002
  hiddenValidation: K.createRef()
6003
6003
  };
6004
6004
  ae(() => {
6005
- d === !0 && _.jobTitle.current && _.jobTitle.current.focus();
6006
- }, [d]), ae(() => {
6005
+ u === !0 && _.jobTitle.current && _.jobTitle.current.focus();
6006
+ }, [u]), ae(() => {
6007
6007
  (s.showSuccessMessage || v["signup-this-session"]) && f([{ type: "showSuccessMessage", value: !0 }]);
6008
6008
  }, [v]), ae(() => {
6009
6009
  if (m && v["functional-cookie-consent"]) {
@@ -6011,7 +6011,7 @@ const Ao = {
6011
6011
  path: "/",
6012
6012
  maxAge: 3600
6013
6013
  };
6014
- s.showSuccessMessage || b("signup-this-session", "true", E);
6014
+ s.showSuccessMessage || y("signup-this-session", "true", E);
6015
6015
  }
6016
6016
  }, [m]);
6017
6017
  const g = vt(() => Oo({
@@ -6022,7 +6022,7 @@ const Ao = {
6022
6022
  dispatch: f,
6023
6023
  dataToSubmit: i,
6024
6024
  intl: o
6025
- }), [i, e, o, _, n, c]), y = d ? !Object.values(l).every((E) => E === !0) : !l.name || !l.email || ["exists", "pending", "verify"].includes(u.boxType);
6025
+ }), [i, e, o, _, n, c]), b = u ? !Object.values(d).every((E) => E === !0) : !d.name || !d.email || ["exists", "pending", "verify"].includes(l.boxType);
6026
6026
  return n.successMessage && m ? /* @__PURE__ */ a.jsx(Do, { className: t }) : /* @__PURE__ */ a.jsxs(
6027
6027
  "fieldset",
6028
6028
  {
@@ -6049,7 +6049,7 @@ const Ao = {
6049
6049
  variant: "primary",
6050
6050
  size: "medium",
6051
6051
  text: r || o.formatMessage({ id: "signup_button_join" }),
6052
- disabled: y ? { isClickable: !0 } : !1,
6052
+ disabled: b ? { isClickable: !0 } : !1,
6053
6053
  styling: { fullWidth: !0 },
6054
6054
  "data-testid": "signup-button"
6055
6055
  },
@@ -6110,7 +6110,7 @@ const Ml = ({
6110
6110
  onClose: c,
6111
6111
  reportError: f = () => {
6112
6112
  },
6113
- sendInvites: l
6113
+ sendInvites: d
6114
6114
  }) => /* @__PURE__ */ a.jsx(
6115
6115
  Xt,
6116
6116
  {
@@ -6127,7 +6127,7 @@ const Ml = ({
6127
6127
  label: i,
6128
6128
  ctaMessage: s,
6129
6129
  onClose: c,
6130
- sendInvites: l,
6130
+ sendInvites: d,
6131
6131
  reportError: f
6132
6132
  }
6133
6133
  )
@@ -6180,11 +6180,11 @@ const Rl = ({ members: t }) => {
6180
6180
  isOngoingEvent: o,
6181
6181
  pill: c,
6182
6182
  readingTime: f,
6183
- publishedDate: l,
6184
- startDate: u
6183
+ publishedDate: d,
6184
+ startDate: l
6185
6185
  } = e;
6186
6186
  if (t === "question") {
6187
- const d = i && Dn(i);
6187
+ const u = i && Dn(i);
6188
6188
  return /* @__PURE__ */ a.jsxs("p", { className: "details answers", "data-testid": "question-answers", children: [
6189
6189
  n.formatMessage({ id: "card_answers" }, { number: r }),
6190
6190
  i && /* @__PURE__ */ a.jsxs("span", { "data-testid": "question-created-at", children: [
@@ -6194,17 +6194,17 @@ const Rl = ({ members: t }) => {
6194
6194
  n.formatMessage(
6195
6195
  { id: "card_time_ago" },
6196
6196
  {
6197
- time: d ? n.formatMessage(
6198
- { id: `dates_${d.path}` },
6199
- { number: d.number }
6197
+ time: u ? n.formatMessage(
6198
+ { id: `dates_${u.path}` },
6199
+ { number: u.number }
6200
6200
  ) : 0
6201
6201
  }
6202
6202
  )
6203
6203
  ] })
6204
6204
  ] });
6205
6205
  }
6206
- if (u && !s || o)
6207
- return /* @__PURE__ */ a.jsx("p", { className: "details", children: o ? n.formatMessage({ id: "card_bootcamp" }) : sa(u) });
6206
+ if (l && !s || o)
6207
+ return /* @__PURE__ */ a.jsx("p", { className: "details", children: o ? n.formatMessage({ id: "card_bootcamp" }) : sa(l) });
6208
6208
  if (c)
6209
6209
  return /* @__PURE__ */ a.jsx(
6210
6210
  Lt,
@@ -6215,16 +6215,16 @@ const Rl = ({ members: t }) => {
6215
6215
  children: c
6216
6216
  }
6217
6217
  );
6218
- if (f || l) {
6219
- const d = l && Dn(l);
6218
+ if (f || d) {
6219
+ const u = d && Dn(d);
6220
6220
  return /* @__PURE__ */ a.jsxs("ul", { className: "details", children: [
6221
6221
  f && /* @__PURE__ */ a.jsx("li", { "data-testid": "reading-time", children: n.formatMessage({ id: "card_time_read" }, { time: f }) }),
6222
- l && /* @__PURE__ */ a.jsx("li", { "data-testid": "published-date", children: n.formatMessage(
6222
+ d && /* @__PURE__ */ a.jsx("li", { "data-testid": "published-date", children: n.formatMessage(
6223
6223
  { id: "card_time_ago" },
6224
6224
  {
6225
- time: d ? n.formatMessage(
6226
- { id: `dates_${d.path}` },
6227
- { number: d.number }
6225
+ time: u ? n.formatMessage(
6226
+ { id: `dates_${u.path}` },
6227
+ { number: u.number }
6228
6228
  ) : 0
6229
6229
  }
6230
6230
  ) })
@@ -6295,11 +6295,11 @@ const Rl = ({ members: t }) => {
6295
6295
  registered: t.registered || !1
6296
6296
  });
6297
6297
  ae(() => {
6298
- t.registered && o((b) => ({ ...b, registered: !0 }));
6298
+ t.registered && o((y) => ({ ...y, registered: !0 }));
6299
6299
  }, [t.registered]);
6300
- const { startDate: c, dateHasPassed: f, pill: l, slug: u } = t, d = t.contentType;
6300
+ const { startDate: c, dateHasPassed: f, pill: d, slug: l } = t, u = t.contentType;
6301
6301
  let m = "";
6302
- if ((v = Ht[d]) != null && v.gtmEvent && (m = Ht[d].gtmEvent), c && f)
6302
+ if ((v = Ht[u]) != null && v.gtmEvent && (m = Ht[u].gtmEvent), c && f)
6303
6303
  return /* @__PURE__ */ a.jsx(
6304
6304
  "a",
6305
6305
  {
@@ -6310,7 +6310,7 @@ const Rl = ({ members: t }) => {
6310
6310
  children: i.formatMessage({ id: "card_watch" })
6311
6311
  }
6312
6312
  );
6313
- if (d === "people")
6313
+ if (u === "people")
6314
6314
  return /* @__PURE__ */ a.jsx(
6315
6315
  ie,
6316
6316
  {
@@ -6324,13 +6324,13 @@ const Rl = ({ members: t }) => {
6324
6324
  }
6325
6325
  );
6326
6326
  const p = ["microcourse", "event"];
6327
- if (e && e.onClick && p.includes(d) && l !== "premium") {
6328
- const b = s.loading || s.registered, _ = async (g) => {
6329
- if (g.preventDefault(), g.stopPropagation(), !(b || !e || !e.onClick)) {
6330
- o((y) => ({ ...y, loading: !0 }));
6327
+ if (e && e.onClick && p.includes(u) && d !== "premium") {
6328
+ const y = s.loading || s.registered, _ = async (g) => {
6329
+ if (g.preventDefault(), g.stopPropagation(), !(y || !e || !e.onClick)) {
6330
+ o((b) => ({ ...b, loading: !0 }));
6331
6331
  try {
6332
- const y = await e.onClick(t);
6333
- o(y === "success" ? () => ({ registered: !0, loading: !1 }) : (E) => ({ ...E, loading: !1 }));
6332
+ const b = await e.onClick(t);
6333
+ o(b === "success" ? () => ({ registered: !0, loading: !1 }) : (E) => ({ ...E, loading: !1 }));
6334
6334
  } catch {
6335
6335
  o((E) => ({ ...E, loading: !1 }));
6336
6336
  }
@@ -6343,12 +6343,12 @@ const Rl = ({ members: t }) => {
6343
6343
  className: "gtm-trackable",
6344
6344
  size: "small",
6345
6345
  styling: { fullWidth: !0 },
6346
- disabled: b,
6347
- "data-gtm-event-context": `${r}Page-${d}: ${u}`,
6348
- "data-gtm-event-type": `${r}-${d}-register-click`,
6346
+ disabled: y,
6347
+ "data-gtm-event-context": `${r}Page-${u}: ${l}`,
6348
+ "data-gtm-event-type": `${r}-${u}-register-click`,
6349
6349
  "data-testid": "in-card-button",
6350
6350
  children: i.formatMessage({
6351
- id: `card_cta_${d}${b ? `_${s.loading ? "loading" : "done"}` : ""}`
6351
+ id: `card_cta_${u}${y ? `_${s.loading ? "loading" : "done"}` : ""}`
6352
6352
  })
6353
6353
  }
6354
6354
  );
@@ -6377,17 +6377,17 @@ const qo = {
6377
6377
  gtmContext: i = "Carousel",
6378
6378
  className: s = ""
6379
6379
  }) => {
6380
- const o = G(), c = Ce(Oe), f = c && typeof c.id == "string", [l, u] = te({
6380
+ const o = G(), c = Ce(Oe), f = c && typeof c.id == "string", [d, l] = te({
6381
6381
  data: null,
6382
6382
  isLoading: !0
6383
- }), { data: d, isLoading: m } = l, p = Kr(() => {
6383
+ }), { data: u, isLoading: m } = d, p = Kr(() => {
6384
6384
  n(e, f).then((q) => {
6385
- u(() => ({ data: q, isLoading: !1 }));
6386
- }).catch(() => u((q) => ({ ...q, isLoading: !1 })));
6385
+ l(() => ({ data: q, isLoading: !1 }));
6386
+ }).catch(() => l((q) => ({ ...q, isLoading: !1 })));
6387
6387
  }, [t]);
6388
6388
  if (ae(() => {
6389
6389
  p();
6390
- }, []), m || !d)
6390
+ }, []), m || !u)
6391
6391
  return /* @__PURE__ */ a.jsx(
6392
6392
  Te,
6393
6393
  {
@@ -6396,32 +6396,32 @@ const qo = {
6396
6396
  "data-testid": "card-placeholder"
6397
6397
  }
6398
6398
  );
6399
- const { contentType: v } = d;
6399
+ const { contentType: v } = u;
6400
6400
  if (!v || !Ht[v])
6401
6401
  return /* @__PURE__ */ a.jsx(Te, { element: "li", className: "card-wrapper" });
6402
6402
  const {
6403
- basePath: b = "",
6403
+ basePath: y = "",
6404
6404
  className: _,
6405
6405
  length: g,
6406
- gtmEvent: y
6407
- } = Ht[v], E = oa(`card_label_${v}`) ? o.formatMessage({ id: `card_label_${v}` }) : !1, j = d.slug ? `${b}${d.slug}` : !1, w = { ...qo, ...g };
6406
+ gtmEvent: b
6407
+ } = Ht[v], E = oa(`card_label_${v}`) ? o.formatMessage({ id: `card_label_${v}` }) : !1, j = u.slug ? `${y}${u.slug}` : !1, w = { ...qo, ...g };
6408
6408
  let z = { className: "card" };
6409
6409
  j && (z = {
6410
6410
  href: j,
6411
6411
  className: "card gtm-trackable",
6412
6412
  "data-gtm-event-context": `${i}-CarouselCard`,
6413
- "data-gtm-event-type": `${y}-click`,
6413
+ "data-gtm-event-type": `${b}-click`,
6414
6414
  "data-testid": "link"
6415
- }, d.openInNewTab && (z.target = "_blank"));
6416
- const F = d.customIcon ? { "--custom-icon": Bo(d.customIcon) } : {};
6415
+ }, u.openInNewTab && (z.target = "_blank"));
6416
+ const F = u.customIcon ? { "--custom-icon": Bo(u.customIcon) } : {};
6417
6417
  return /* @__PURE__ */ a.jsx(
6418
6418
  "li",
6419
6419
  {
6420
6420
  className: S("card-wrapper text-medium", _, s, {
6421
6421
  "has-link": j,
6422
6422
  "no-link": !j,
6423
- "has-custom-icon": d.customIcon,
6424
- "has-image": d.banner
6423
+ "has-custom-icon": u.customIcon,
6424
+ "has-image": u.banner
6425
6425
  }),
6426
6426
  style: F,
6427
6427
  "data-testid": `${v}-card`,
@@ -6429,31 +6429,31 @@ const qo = {
6429
6429
  j ? "a" : "div",
6430
6430
  z,
6431
6431
  /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
6432
- (d.customLabel || E) && /* @__PURE__ */ a.jsx("small", { className: S("card-label text-small", _), children: d.customLabel || E }),
6433
- d.startDate && !d.isOngoingEvent && /* @__PURE__ */ a.jsx(
6432
+ (u.customLabel || E) && /* @__PURE__ */ a.jsx("small", { className: S("card-label text-small", _), children: u.customLabel || E }),
6433
+ u.startDate && !u.isOngoingEvent && /* @__PURE__ */ a.jsx(
6434
6434
  Lt,
6435
6435
  {
6436
6436
  size: "small",
6437
- variant: d.dateHasPassed ? "default" : "information",
6437
+ variant: u.dateHasPassed ? "default" : "information",
6438
6438
  "data-testid": "date",
6439
- children: d.dateHasPassed ? o.formatMessage({ id: "card_ended" }) : Oi(d.startDate)
6439
+ children: u.dateHasPassed ? o.formatMessage({ id: "card_ended" }) : Oi(u.startDate)
6440
6440
  }
6441
6441
  ),
6442
- d.banner ? /* @__PURE__ */ a.jsxs("p", { className: "img", children: [
6443
- d.registered && /* @__PURE__ */ a.jsx(Lt, { size: "small", variant: "registered", children: o.formatMessage({ id: "card_registered" }) }),
6444
- /* @__PURE__ */ a.jsx(_t, { image: d.banner })
6442
+ u.banner ? /* @__PURE__ */ a.jsxs("p", { className: "img", children: [
6443
+ u.registered && /* @__PURE__ */ a.jsx(Lt, { size: "small", variant: "registered", children: o.formatMessage({ id: "card_registered" }) }),
6444
+ /* @__PURE__ */ a.jsx(_t, { image: u.banner })
6445
6445
  ] }) : _ === "people" ? /* @__PURE__ */ a.jsx(
6446
6446
  ze,
6447
6447
  {
6448
- name: d.title || "",
6449
- src: d.profile,
6448
+ name: u.title || "",
6449
+ src: u.profile,
6450
6450
  "data-testid": "people-profile-picture"
6451
6451
  }
6452
6452
  ) : null,
6453
- d.contributors && /* @__PURE__ */ a.jsx(
6453
+ u.contributors && /* @__PURE__ */ a.jsx(
6454
6454
  ha,
6455
6455
  {
6456
- contributors: { data: d.contributors },
6456
+ contributors: { data: u.contributors },
6457
6457
  styling: {
6458
6458
  size: "small",
6459
6459
  showGap: _ !== "question",
@@ -6462,17 +6462,17 @@ const qo = {
6462
6462
  "data-testid": "contributors"
6463
6463
  }
6464
6464
  ),
6465
- d.partner && /* @__PURE__ */ a.jsx("p", { className: "partners", "data-testid": "partners", children: Ke(d.partner.title, w.partner) }),
6465
+ u.partner && /* @__PURE__ */ a.jsx("p", { className: "partners", "data-testid": "partners", children: Ke(u.partner.title, w.partner) }),
6466
6466
  /* Text */
6467
6467
  ["title", "text", "secondaryText"].map((q) => {
6468
- const M = d[q];
6468
+ const M = u[q];
6469
6469
  if (!M)
6470
6470
  return null;
6471
6471
  const O = Ri(q);
6472
6472
  return /* @__PURE__ */ a.jsx("p", { className: O, "data-testid": O, children: Ke(M, w[q]) }, q);
6473
6473
  }),
6474
- /* @__PURE__ */ a.jsx(Io, { type: _ || "", data: d }),
6475
- /* @__PURE__ */ a.jsx(Lo, { data: d, cta: r, link: j || "", gtmContext: i })
6474
+ /* @__PURE__ */ a.jsx(Io, { type: _ || "", data: u }),
6475
+ /* @__PURE__ */ a.jsx(Lo, { data: u, cta: r, link: j || "", gtmContext: i })
6476
6476
  ] })
6477
6477
  )
6478
6478
  }
@@ -6531,16 +6531,16 @@ const Wo = ({
6531
6531
  className: s,
6532
6532
  gtmContext: o
6533
6533
  }) => {
6534
- const c = G(), [f, l] = te({
6534
+ const c = G(), [f, d] = te({
6535
6535
  cardsPerPage: 4,
6536
6536
  isLoading: !0
6537
- }), { cardsPerPage: u, isLoading: d } = f, [m, p] = te({
6537
+ }), { cardsPerPage: l, isLoading: u } = f, [m, p] = te({
6538
6538
  currentPage: 0,
6539
6539
  loadedPages: [0]
6540
- }), { currentPage: v, loadedPages: b } = m, _ = e.length, g = Math.ceil(_ / u), y = pe(null), E = bt(!0, !0, y == null ? void 0 : y.current);
6540
+ }), { currentPage: v, loadedPages: y } = m, _ = e.length, g = Math.ceil(_ / l), b = pe(null), E = bt(!0, !0, b == null ? void 0 : b.current);
6541
6541
  ae(() => {
6542
6542
  let M = 1;
6543
- E && (E >= yn.fourCards ? M = 4 : E >= yn.threeCards ? M = 3 : E >= yn.twoCards && (M = 2), M > _ && (M = _)), l((O) => ({
6543
+ E && (E >= yn.fourCards ? M = 4 : E >= yn.threeCards ? M = 3 : E >= yn.twoCards && (M = 2), M > _ && (M = _)), d((O) => ({
6544
6544
  ...O,
6545
6545
  cardsPerPage: M,
6546
6546
  isLoading: !1
@@ -6563,7 +6563,7 @@ const Wo = ({
6563
6563
  p((C) => ({
6564
6564
  ...C,
6565
6565
  currentPage: O,
6566
- loadedPages: [.../* @__PURE__ */ new Set([...b, O])]
6566
+ loadedPages: [.../* @__PURE__ */ new Set([...y, O])]
6567
6567
  }));
6568
6568
  }, w = (M) => {
6569
6569
  $t = M.touches[0].clientX;
@@ -6575,10 +6575,10 @@ const Wo = ({
6575
6575
  }, F = {
6576
6576
  "--width": `${E || 0}px`,
6577
6577
  "--total-cards": _,
6578
- "--cards-per-page": u,
6578
+ "--cards-per-page": l,
6579
6579
  "--page": v
6580
6580
  };
6581
- if (d)
6581
+ if (u)
6582
6582
  return /* @__PURE__ */ a.jsx(fa, { layout: `carousel${i ? "-with-title" : ""}` });
6583
6583
  const q = (M, O) => {
6584
6584
  var T;
@@ -6588,7 +6588,7 @@ const Wo = ({
6588
6588
  return /* @__PURE__ */ a.jsxs(
6589
6589
  "section",
6590
6590
  {
6591
- ref: y,
6591
+ ref: b,
6592
6592
  className: S("carousel-wrapper", s),
6593
6593
  "data-testid": "carousel",
6594
6594
  children: [
@@ -6603,7 +6603,7 @@ const Wo = ({
6603
6603
  "data-testid": "carousel-list",
6604
6604
  children: e.map((M, O) => {
6605
6605
  let C = q(M, O);
6606
- return C && zo(O, u, v, b) ? /* @__PURE__ */ a.jsx(
6606
+ return C && zo(O, l, v, y) ? /* @__PURE__ */ a.jsx(
6607
6607
  Ma,
6608
6608
  {
6609
6609
  id: C,
@@ -6679,8 +6679,8 @@ const Wo = ({
6679
6679
  className: r = "",
6680
6680
  ...i
6681
6681
  }) => !t || !t.length ? null : t.map(
6682
- ({ title: s, viewAllUrl: o, cards: c, cardsTypes: f }, l) => {
6683
- const u = s ? window.btoa(s) : `carousel-${l}`, d = l === t.length - 1;
6682
+ ({ title: s, viewAllUrl: o, cards: c, cardsTypes: f }, d) => {
6683
+ const l = s ? window.btoa(s) : `carousel-${d}`, u = d === t.length - 1;
6684
6684
  return e ? /* @__PURE__ */ a.jsxs(ht, { children: [
6685
6685
  /* @__PURE__ */ a.jsx(
6686
6686
  fa,
@@ -6689,8 +6689,8 @@ const Wo = ({
6689
6689
  "data-testid": "carousel-placeholder"
6690
6690
  }
6691
6691
  ),
6692
- d ? null : /* @__PURE__ */ a.jsx(Re, {})
6693
- ] }, `placeholder-${u}`) : /* @__PURE__ */ a.jsxs(ht, { children: [
6692
+ u ? null : /* @__PURE__ */ a.jsx(Re, {})
6693
+ ] }, `placeholder-${l}`) : /* @__PURE__ */ a.jsxs(ht, { children: [
6694
6694
  /* @__PURE__ */ a.jsx(
6695
6695
  Wo,
6696
6696
  {
@@ -6700,8 +6700,8 @@ const Wo = ({
6700
6700
  ...i
6701
6701
  }
6702
6702
  ),
6703
- d ? null : /* @__PURE__ */ a.jsx(Re, {})
6704
- ] }, `carousel-${u}`);
6703
+ u ? null : /* @__PURE__ */ a.jsx(Re, {})
6704
+ ] }, `carousel-${l}`);
6705
6705
  }
6706
6706
  );
6707
6707
  const _n = "joinCommunityButton", Ra = ({
@@ -6711,28 +6711,28 @@ const _n = "joinCommunityButton", Ra = ({
6711
6711
  }, leave: () => {
6712
6712
  } }
6713
6713
  }) => {
6714
- const i = G(), s = Ce(Oe), o = s && typeof s.id == "string", [c, f] = te(t), [l, u] = te(t ? "joined" : "notJoined");
6714
+ const i = G(), s = Ce(Oe), o = s && typeof s.id == "string", [c, f] = te(t), [d, l] = te(t ? "joined" : "notJoined");
6715
6715
  ae(() => {
6716
- l === "joining" ? u("joined") : l === "leaving" && u("notJoined");
6716
+ d === "joining" ? l("joined") : d === "leaving" && l("notJoined");
6717
6717
  }, [c]);
6718
- const d = {}, m = {};
6719
- return c && l !== "leaving" && (d["data-hover-text"] = i.formatMessage({ id: `${_n}_leave` }), d["aria-label"] = i.formatMessage({ id: `${_n}_member_aria` }), m["aria-hidden"] = "true"), /* @__PURE__ */ a.jsx(
6718
+ const u = {}, m = {};
6719
+ return c && d !== "leaving" && (u["data-hover-text"] = i.formatMessage({ id: `${_n}_leave` }), u["aria-label"] = i.formatMessage({ id: `${_n}_member_aria` }), m["aria-hidden"] = "true"), /* @__PURE__ */ a.jsx(
6720
6720
  ie,
6721
6721
  {
6722
6722
  variant: c ? "secondary" : "primary",
6723
6723
  size: "medium",
6724
6724
  styling: { fullWidth: !0 },
6725
- icon: c && l !== "leaving" ? { icon: "tick", position: "left" } : !1,
6725
+ icon: c && d !== "leaving" ? { icon: "tick", position: "left" } : !1,
6726
6726
  onClick: async (p) => {
6727
- o && (p.currentTarget.blur(), c ? (u("leaving"), typeof r == "function" && await r()) : (u("joining"), typeof n == "function" && await n()), f(!c));
6727
+ o && (p.currentTarget.blur(), c ? (l("leaving"), typeof r == "function" && await r()) : (l("joining"), typeof n == "function" && await n()), f(!c));
6728
6728
  },
6729
- className: S("join-community-button", l, {
6730
- active: l === "joining"
6729
+ className: S("join-community-button", d, {
6730
+ active: d === "joining"
6731
6731
  }),
6732
6732
  disabled: !o,
6733
- ...d,
6733
+ ...u,
6734
6734
  children: /* @__PURE__ */ a.jsx("span", { className: "text", ...m, children: i.formatMessage({
6735
- id: `${_n}${["joining", "leaving"].includes(l) ? `_${l}` : c ? "_member" : e ? "_short" : ""}`
6735
+ id: `${_n}${["joining", "leaving"].includes(d) ? `_${d}` : c ? "_member" : e ? "_short" : ""}`
6736
6736
  }) })
6737
6737
  }
6738
6738
  );
@@ -6744,28 +6744,28 @@ const xn = "communityDetails_", Ol = ({
6744
6744
  members: { number: r = 0, data: i = [] } = { number: 0, data: [] },
6745
6745
  functions: { invite: s, ...o }
6746
6746
  }) => {
6747
- const c = G(), f = 5, l = r || i.length, u = i.length ? i : Array(f).fill({}), d = `/communities/${n}/members` === window.location.pathname;
6747
+ const c = G(), f = 5, d = r || i.length, l = i.length ? i : Array(f).fill({}), u = `/communities/${n}/members` === window.location.pathname;
6748
6748
  return /* @__PURE__ */ a.jsxs("div", { className: S("community-details", t), children: [
6749
6749
  /* @__PURE__ */ a.jsx(Re, {}),
6750
6750
  /* @__PURE__ */ a.jsxs("div", { className: "member-details", children: [
6751
6751
  /* @__PURE__ */ a.jsxs("div", { className: "top", children: [
6752
6752
  /* @__PURE__ */ a.jsxs("h4", { children: [
6753
6753
  c.formatMessage({ id: `${xn}members` }),
6754
- /* @__PURE__ */ a.jsx("span", { className: "count", children: l })
6754
+ /* @__PURE__ */ a.jsx("span", { className: "count", children: d })
6755
6755
  ] }),
6756
- !d && /* @__PURE__ */ a.jsx("p", { className: "text-small", children: /* @__PURE__ */ a.jsx("a", { href: `/communities/${n}/members`, children: c.formatMessage({ id: `${xn}viewAll` }) }) })
6756
+ !u && /* @__PURE__ */ a.jsx("p", { className: "text-small", children: /* @__PURE__ */ a.jsx("a", { href: `/communities/${n}/members`, children: c.formatMessage({ id: `${xn}viewAll` }) }) })
6757
6757
  ] }),
6758
6758
  /* @__PURE__ */ a.jsx(
6759
6759
  ha,
6760
6760
  {
6761
6761
  contributors: {
6762
6762
  total: r,
6763
- data: u
6763
+ data: l
6764
6764
  },
6765
6765
  styling: {
6766
6766
  size: "medium",
6767
6767
  showGap: !0,
6768
- showPlaceholders: l === 0
6768
+ showPlaceholders: d === 0
6769
6769
  },
6770
6770
  cutoff: f
6771
6771
  }
@@ -6822,27 +6822,27 @@ const Al = ({
6822
6822
  text: typeof e != "boolean" && e.text || s.formatMessage({ id: "filters_all" })
6823
6823
  },
6824
6824
  ...t
6825
- ] : t, [c, f] = te(e ? ["all"] : []), l = (u, d) => {
6825
+ ] : t, [c, f] = te(e ? ["all"] : []), d = (l, u) => {
6826
6826
  let m = [];
6827
- c.includes(u) ? m = c.filter((p) => p !== u) : u === "all" ? m = ["all"] : n ? m = [...c.filter((p) => p !== "all"), u] : m = [u], f((p) => (r && typeof r == "function" && r({ current: m, previous: p }), m)), d && typeof d == "function" && d();
6827
+ 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)), u && typeof u == "function" && u();
6828
6828
  };
6829
- return /* @__PURE__ */ a.jsx("ul", { className: S("filters", i), children: o.map(({ id: u, text: d, disabled: m = !1, callback: p = () => {
6829
+ return /* @__PURE__ */ a.jsx("ul", { className: S("filters", i), children: o.map(({ id: l, text: u, disabled: m = !1, callback: p = () => {
6830
6830
  } }) => {
6831
6831
  let v = {};
6832
6832
  return m && (v = {
6833
6833
  disabled: !0,
6834
- "aria-label": s.formatMessage({ id: "filters_disabled" }, { name: d })
6834
+ "aria-label": s.formatMessage({ id: "filters_disabled" }, { name: u })
6835
6835
  }), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
6836
6836
  "button",
6837
6837
  {
6838
- className: S(u, { selected: c.includes(u) }),
6839
- onClick: (b) => {
6840
- b.preventDefault(), b.stopPropagation(), l(u, p);
6838
+ className: S(l, { selected: c.includes(l) }),
6839
+ onClick: (y) => {
6840
+ y.preventDefault(), y.stopPropagation(), d(l, p);
6841
6841
  },
6842
6842
  ...v,
6843
- children: d
6843
+ children: u
6844
6844
  }
6845
- ) }, u);
6845
+ ) }, l);
6846
6846
  }) });
6847
6847
  }, Ho = (t, e) => {
6848
6848
  const n = String(t);
@@ -6870,33 +6870,33 @@ const wn = {
6870
6870
  label: c,
6871
6871
  className: f = ""
6872
6872
  }) => {
6873
- const l = G(), [u, d] = te(t);
6873
+ const d = G(), [l, u] = te(t);
6874
6874
  if (ae(() => {
6875
- t !== u && d(t);
6875
+ t !== l && u(t);
6876
6876
  }, [t]), !r || !Object.values(r).some(
6877
- (b) => b && b.post_name
6877
+ (y) => y && y.post_name
6878
6878
  ))
6879
6879
  return null;
6880
- const p = Object.keys(r), v = u !== t;
6880
+ const p = Object.keys(r), v = l !== t;
6881
6881
  return /* @__PURE__ */ a.jsxs("div", { className: S("language-switcher text-small", o, f), children: [
6882
6882
  /* @__PURE__ */ a.jsxs("nav", { children: [
6883
- o !== "short" && /* @__PURE__ */ a.jsx("p", { children: c || l.formatMessage({ id: `${Nt}label` }) }),
6884
- /* @__PURE__ */ a.jsx("ul", { children: p.map((b) => {
6885
- if (!wn[b])
6883
+ o !== "short" && /* @__PURE__ */ a.jsx("p", { children: c || d.formatMessage({ id: `${Nt}label` }) }),
6884
+ /* @__PURE__ */ a.jsx("ul", { children: p.map((y) => {
6885
+ if (!wn[y])
6886
6886
  return null;
6887
- let _ = { className: b };
6888
- return u === b ? _["aria-label"] = l.formatMessage(
6887
+ let _ = { className: y };
6888
+ return l === y ? _["aria-label"] = d.formatMessage(
6889
6889
  { id: `${Nt}selected` },
6890
- { language: wn[b] }
6890
+ { language: wn[y] }
6891
6891
  ) : _ = {
6892
6892
  ..._,
6893
- href: Ho(b, s),
6893
+ href: Ho(y, s),
6894
6894
  onClick: (g) => {
6895
- g.preventDefault(), g.stopPropagation(), d(b), i(b);
6895
+ g.preventDefault(), g.stopPropagation(), u(y), i(y);
6896
6896
  }
6897
- }, /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(xt, { ..._, fallbackElement: "span", children: wn[b] }) }, b);
6897
+ }, /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(xt, { ..._, fallbackElement: "span", children: wn[y] }) }, y);
6898
6898
  }) }),
6899
- o !== "short" && !v && /* @__PURE__ */ a.jsx("p", { children: l.formatMessage({
6899
+ o !== "short" && !v && /* @__PURE__ */ a.jsx("p", { children: d.formatMessage({
6900
6900
  id: `${Nt}translation_${e ? "original" : n ? "human" : "machine"}`
6901
6901
  }) })
6902
6902
  ] }),
@@ -6904,13 +6904,13 @@ const wn = {
6904
6904
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
6905
6905
  // @ts-ignore
6906
6906
  // `values` are throwing a type error: https://github.com/formatjs/formatjs/issues/3633
6907
- children: l.formatMessage(
6907
+ children: d.formatMessage(
6908
6908
  { id: `${Nt}disclaimer` },
6909
6909
  {
6910
6910
  email: lt.support,
6911
- link: (b) => {
6912
- const _ = `mailto:${b}`;
6913
- return /* @__PURE__ */ a.jsx("a", { href: _, children: b });
6911
+ link: (y) => {
6912
+ const _ = `mailto:${y}`;
6913
+ return /* @__PURE__ */ a.jsx("a", { href: _, children: y });
6914
6914
  }
6915
6915
  }
6916
6916
  )
@@ -6933,28 +6933,28 @@ const kn = pi({ locale: "en", messages: Hn }), en = ({
6933
6933
  className: c = "",
6934
6934
  gtmContext: f = "LoadMore"
6935
6935
  }) => {
6936
- const [l, u] = te(""), d = async (m) => {
6936
+ const [d, l] = te(""), u = async (m) => {
6937
6937
  try {
6938
6938
  await e(m);
6939
6939
  } catch (p) {
6940
- p instanceof Error ? u(p.message) : u("Unknown error");
6940
+ p instanceof Error ? l(p.message) : l("Unknown error");
6941
6941
  }
6942
6942
  };
6943
- return !l && !t && !o.endOfFeed ? null : /* @__PURE__ */ a.jsx("footer", { className: S("load-more", c), children: !l && t ? /* @__PURE__ */ a.jsx(
6943
+ return !d && !t && !o.endOfFeed ? null : /* @__PURE__ */ a.jsx("footer", { className: S("load-more", c), children: !d && t ? /* @__PURE__ */ a.jsx(
6944
6944
  ie,
6945
6945
  {
6946
6946
  variant: n,
6947
6947
  size: r,
6948
6948
  styling: i,
6949
6949
  icon: s,
6950
- onClick: d,
6950
+ onClick: u,
6951
6951
  "data-gtm-event-context": f,
6952
6952
  "data-gtm-event-type": "load-more-click",
6953
6953
  className: "gtm-trackable",
6954
6954
  "data-testid": "load-more-button",
6955
6955
  children: o.button
6956
6956
  }
6957
- ) : o.endOfFeed && (!l || l != null && l.includes("Cannot read items")) ? /* @__PURE__ */ a.jsx("p", { children: o.endOfFeed }) : l && /* @__PURE__ */ a.jsx("p", { className: "error", children: o.error }) });
6957
+ ) : o.endOfFeed && (!d || d != null && d.includes("Cannot read items")) ? /* @__PURE__ */ a.jsx("p", { children: o.endOfFeed }) : d && /* @__PURE__ */ a.jsx("p", { className: "error", children: o.error }) });
6958
6958
  };
6959
6959
  const Fa = ({
6960
6960
  variant: t = "default",
@@ -6979,8 +6979,8 @@ const Vo = ({
6979
6979
  }) => {
6980
6980
  const i = G(), s = pe(
6981
6981
  null
6982
- ), [o, c] = te(!1), f = (l) => {
6983
- s.current && l.target instanceof HTMLElement && !s.current.contains(l.target) && c(!1);
6982
+ ), [o, c] = te(!1), f = (d) => {
6983
+ s.current && d.target instanceof HTMLElement && !s.current.contains(d.target) && c(!1);
6984
6984
  };
6985
6985
  return ae(() => (document.addEventListener("click", f, !0), () => {
6986
6986
  document.removeEventListener("click", f, !0);
@@ -7001,11 +7001,11 @@ const Vo = ({
7001
7001
  screenreaderText: i.formatMessage({ id: "moreMenu" })
7002
7002
  }
7003
7003
  ),
7004
- /* @__PURE__ */ a.jsx("ul", { id: e, hidden: !o, children: n.map(({ href: l, onClick: u, text: d, icon: m, ...p }, v) => {
7005
- const b = {
7004
+ /* @__PURE__ */ a.jsx("ul", { id: e, hidden: !o, children: n.map(({ href: d, onClick: l, text: u, icon: m, ...p }, v) => {
7005
+ const y = {
7006
7006
  ...p,
7007
7007
  onClick: (_) => {
7008
- c(!1), typeof u == "function" && u(_);
7008
+ c(!1), typeof l == "function" && l(_);
7009
7009
  },
7010
7010
  onFocus: () => {
7011
7011
  Pt && (clearTimeout(Pt), Pt = !1);
@@ -7016,16 +7016,16 @@ const Vo = ({
7016
7016
  }, 100);
7017
7017
  }
7018
7018
  };
7019
- return l && (b.href = l), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
7019
+ return d && (y.href = d), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
7020
7020
  ie,
7021
7021
  {
7022
7022
  variant: "tertiary",
7023
7023
  size: "medium",
7024
7024
  icon: m ? { icon: m, position: "left" } : !1,
7025
- ...b,
7026
- children: d
7025
+ ...y,
7026
+ children: u
7027
7027
  }
7028
- ) }, `${window.btoa(d)}_${v}`);
7028
+ ) }, `${window.btoa(u)}_${v}`);
7029
7029
  }) })
7030
7030
  ] })
7031
7031
  });
@@ -7142,91 +7142,91 @@ const Jo = "shareLinks_", Ll = ({
7142
7142
  const c = G(), f = Qo({ title: t, link: e, referrer: n });
7143
7143
  return /* @__PURE__ */ a.jsxs("aside", { className: S("share-links", i, s, o), children: [
7144
7144
  /* @__PURE__ */ a.jsx("p", { className: "text-small", children: c.formatMessage({ id: "shareLinks_label" }) }),
7145
- /* @__PURE__ */ a.jsx("ul", { children: f.map(({ key: l, icon: u, url: d, shouldRender: m = !0, onClick: p }) => {
7145
+ /* @__PURE__ */ a.jsx("ul", { children: f.map(({ key: d, icon: l, url: u, shouldRender: m = !0, onClick: p }) => {
7146
7146
  if (typeof m == "function" && !m())
7147
7147
  return null;
7148
7148
  const v = {};
7149
- return p && (v.onClick = (b) => p(b, d)), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
7149
+ return p && (v.onClick = (y) => p(y, u)), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
7150
7150
  ie,
7151
7151
  {
7152
7152
  size: i,
7153
7153
  variant: "tertiary",
7154
- icon: { icon: u || l },
7155
- href: d,
7154
+ icon: { icon: l || d },
7155
+ href: u,
7156
7156
  target: "_blank",
7157
7157
  rel: "noopener noreferrer",
7158
7158
  className: "gtm-trackable",
7159
7159
  "data-gtm-event-context": `${r}-SocialButtons`,
7160
- "data-gtm-event-type": `${l}-click`,
7160
+ "data-gtm-event-type": `${d}-click`,
7161
7161
  "data-testid": "link",
7162
- screenreaderText: c.formatMessage({ id: `${Jo}link_${l}` }),
7162
+ screenreaderText: c.formatMessage({ id: `${Jo}link_${d}` }),
7163
7163
  ...v
7164
7164
  }
7165
- ) }, l);
7165
+ ) }, d);
7166
7166
  }) })
7167
7167
  ] });
7168
7168
  };
7169
- const Bl = ({ tabs: t, className: e = "" }) => {
7170
- var f;
7171
- const n = (l, u, d) => (l || (l = `panel-${window.btoa(u)}-${d}`), l);
7172
- let r = t.findIndex((l) => l.current === !0);
7173
- if (r < 0 && (r = 0), window.location.hash) {
7169
+ const Bl = ({ tabs: t, className: e = "", preventLocationChange: n }) => {
7170
+ var d;
7171
+ const r = (l, u, m) => (l || (l = `panel-${window.btoa(u)}-${m}`), l);
7172
+ let i = t.findIndex((l) => l.current === !0);
7173
+ if (i < 0 && (i = 0), window.location.hash) {
7174
7174
  const l = window.location.hash.replace("#", "");
7175
- if (t.find((d) => d.id === l)) {
7176
- for (let d = 0; d < t.length; d++)
7177
- if (n(t[d].id, t[d].text, d) === l) {
7178
- r = d;
7175
+ if (t.find((m) => m.id === l)) {
7176
+ for (let m = 0; m < t.length; m++)
7177
+ if (r(t[m].id, t[m].text, m) === l) {
7178
+ i = m;
7179
7179
  break;
7180
7180
  }
7181
7181
  }
7182
7182
  }
7183
- const [i, s] = te(
7184
- (f = t[r]) != null && f.id ? t[r].id : n(t[r].id, t[r].text, r)
7183
+ const [s, o] = te(
7184
+ (d = t[i]) != null && d.id ? t[i].id : r(t[i].id, t[i].text, i)
7185
7185
  );
7186
7186
  ae(() => {
7187
- if (t[r].hasCarousel) {
7187
+ if (t[i].hasCarousel) {
7188
7188
  const l = new CustomEvent("hiddenSectionVisible", {
7189
- detail: { id: i }
7189
+ detail: { id: s }
7190
7190
  });
7191
7191
  window.dispatchEvent(l);
7192
7192
  }
7193
- }, [i]);
7194
- const o = [], c = [];
7195
- return t.forEach(({ id: l, text: u, content: d, href: m, hasCarousel: p }, v) => {
7196
- l = n(l, u, v);
7197
- const b = i === l, _ = {};
7198
- m || (_["aria-controls"] = l, _.onClick = (g) => {
7199
- g.preventDefault(), g.stopPropagation(), s(l), window.location.hash = `#${l}`;
7200
- }, c.push(
7193
+ }, [s]);
7194
+ const c = [], f = [];
7195
+ return t.forEach(({ id: l, text: u, content: m, href: p, hasCarousel: v }, y) => {
7196
+ l = r(l, u, y);
7197
+ const _ = s === l, g = {};
7198
+ p || (g["aria-controls"] = l, g.onClick = (b) => {
7199
+ b.preventDefault(), b.stopPropagation(), o(l), !n && (window.location.hash = `#${l}`);
7200
+ }, f.push(
7201
7201
  /* @__PURE__ */ a.jsx(
7202
7202
  "section",
7203
7203
  {
7204
7204
  id: l,
7205
- hidden: !b,
7205
+ hidden: !_,
7206
7206
  role: "tabpanel",
7207
7207
  "aria-labelledby": `tab-${l}`,
7208
- "aria-live": b ? "assertive" : "off",
7209
- children: typeof d == "string" ? /* @__PURE__ */ a.jsx("p", { children: d }) : d
7208
+ "aria-live": _ ? "assertive" : "off",
7209
+ children: typeof m == "string" ? /* @__PURE__ */ a.jsx("p", { children: m }) : m
7210
7210
  },
7211
7211
  `section-${l}`
7212
7212
  )
7213
- )), o.push(
7213
+ )), c.push(
7214
7214
  /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
7215
7215
  "a",
7216
7216
  {
7217
- href: m || `#${l}`,
7217
+ href: p || `#${l}`,
7218
7218
  id: `tab-${l}`,
7219
- className: S({ selected: b }),
7219
+ className: S({ selected: _ }),
7220
7220
  role: "tab",
7221
- "aria-selected": b,
7222
- ..._,
7221
+ "aria-selected": _,
7222
+ ...g,
7223
7223
  children: u
7224
7224
  }
7225
7225
  ) }, `tab-${l}`)
7226
7226
  );
7227
7227
  }), /* @__PURE__ */ a.jsxs("div", { className: S("tabs-wrapper", e), children: [
7228
- /* @__PURE__ */ a.jsx("ul", { className: "tabs", role: "tablist", children: o }),
7229
- /* @__PURE__ */ a.jsx("div", { className: "tab-content", children: c })
7228
+ /* @__PURE__ */ a.jsx("ul", { className: "tabs", role: "tablist", children: c }),
7229
+ /* @__PURE__ */ a.jsx("div", { className: "tab-content", children: f })
7230
7230
  ] });
7231
7231
  };
7232
7232
  const Xo = {
@@ -7293,26 +7293,26 @@ const En = "cookieBanner_", Sn = [
7293
7293
  const t = G(), [e, n, r] = Qr(Sn), [i, s] = te(
7294
7294
  !e["apol-cookie-banner"]
7295
7295
  ), o = () => {
7296
- Sn.forEach((u) => {
7297
- n(u, !0, {
7296
+ Sn.forEach((l) => {
7297
+ n(l, !0, {
7298
7298
  path: "/",
7299
7299
  expires: Cn,
7300
- domain: u === "apolitical-performance-cookie-consent" ? ".apolitical.co" : void 0
7300
+ domain: l === "apolitical-performance-cookie-consent" ? ".apolitical.co" : void 0
7301
7301
  });
7302
7302
  }), s(!1), window.location.reload();
7303
7303
  }, c = () => {
7304
7304
  n("apol-cookie-banner", !0, {
7305
7305
  path: "/",
7306
7306
  expires: Cn
7307
- }), Sn.forEach((u) => {
7308
- if (u === "apol-cookie-banner") {
7309
- n(u, !0, {
7307
+ }), Sn.forEach((l) => {
7308
+ if (l === "apol-cookie-banner") {
7309
+ n(l, !0, {
7310
7310
  path: "/",
7311
7311
  expires: Cn
7312
7312
  });
7313
7313
  return;
7314
7314
  }
7315
- r(u);
7315
+ r(l);
7316
7316
  }), s(!1);
7317
7317
  };
7318
7318
  if (!i)
@@ -7321,21 +7321,21 @@ const En = "cookieBanner_", Sn = [
7321
7321
  { id: "settings", href: "/pages/cookie-policy", gtmType: "policy-page" },
7322
7322
  { id: "reject", onClick: c, gtmType: "reject-all" },
7323
7323
  { id: "accept", onClick: o, gtmType: "accepted-all" }
7324
- ], l = [];
7325
- return f.forEach((u) => {
7326
- l.push({
7327
- variant: u.href ? "tertiary" : "primary",
7328
- href: u.href,
7329
- onClick: u.onClick,
7324
+ ], d = [];
7325
+ return f.forEach((l) => {
7326
+ d.push({
7327
+ variant: l.href ? "tertiary" : "primary",
7328
+ href: l.href,
7329
+ onClick: l.onClick,
7330
7330
  className: "gtm-trackable",
7331
7331
  "data-gtm-event-context": "cookie-banner",
7332
- "data-gtm-event-type": `cookie-${u.gtmType}-click`,
7333
- children: t.formatMessage({ id: `${En}buttons_${u.id}` })
7332
+ "data-gtm-event-type": `cookie-${l.gtmType}-click`,
7333
+ children: t.formatMessage({ id: `${En}buttons_${l.id}` })
7334
7334
  });
7335
7335
  }), /* @__PURE__ */ a.jsxs("aside", { id: "cookie-banner", className: "text-medium", children: [
7336
7336
  /* @__PURE__ */ a.jsx("h6", { children: t.formatMessage({ id: `${En}title` }) }),
7337
7337
  /* @__PURE__ */ a.jsx("p", { children: t.formatMessage({ id: `${En}text` }) }),
7338
- /* @__PURE__ */ a.jsx(yt, { buttons: l })
7338
+ /* @__PURE__ */ a.jsx(yt, { buttons: d })
7339
7339
  ] });
7340
7340
  }, Me = {
7341
7341
  platform: {
@@ -7706,52 +7706,52 @@ const Ye = "footer_", Vt = "SiteFooter", Lr = ({ group: t }) => {
7706
7706
  const o = G(), c = Jr(Yt, t);
7707
7707
  if (!c || c.onlyShow && (c.onlyShow === "logged-in" && !e || c.onlyShow === "logged-out" && e))
7708
7708
  return null;
7709
- const f = "doTrack" in c, l = s === null ? f ? c.doTrack : !0 : s, u = t.includes("buttons.");
7710
- let d = `header_${t.replaceAll(".", "_")}`;
7711
- c.hasVariantText && (d += `_logged${e ? "In" : "Out"}`);
7709
+ const f = "doTrack" in c, d = s === null ? f ? c.doTrack : !0 : s, l = t.includes("buttons.");
7710
+ let u = `header_${t.replaceAll(".", "_")}`;
7711
+ c.hasVariantText && (u += `_logged${e ? "In" : "Out"}`);
7712
7712
  let m = !1;
7713
7713
  if (c.href) {
7714
- let y = c.gtmType || `${t}-click`;
7715
- if (y.includes(".")) {
7716
- const E = y.split("."), j = E[E.length - 2];
7717
- y = `${j === "topics" ? `${j}-` : ""}${E[E.length - 1]}`;
7714
+ let b = c.gtmType || `${t}-click`;
7715
+ if (b.includes(".")) {
7716
+ const E = b.split("."), j = E[E.length - 2];
7717
+ b = `${j === "topics" ? `${j}-` : ""}${E[E.length - 1]}`;
7718
7718
  }
7719
7719
  m = {
7720
7720
  href: c.href,
7721
7721
  role: "menuitem"
7722
- }, l && (m = {
7722
+ }, d && (m = {
7723
7723
  ...m,
7724
7724
  className: "gtm-trackable",
7725
- "data-gtm-event-type": y,
7725
+ "data-gtm-event-type": b,
7726
7726
  "data-gtm-event-context": "HeaderButtons"
7727
- }), u && (m = {
7727
+ }), l && (m = {
7728
7728
  ...m,
7729
7729
  variant: "secondary",
7730
7730
  size: { mobile: "small", 881: "large" },
7731
7731
  ...c.props || {}
7732
7732
  });
7733
7733
  }
7734
- const p = c.order && c.order[0] && c[c.order[0]], v = p && c[c.order[0]].order, b = m && window.location.pathname === c.href;
7734
+ const p = c.order && c.order[0] && c[c.order[0]], v = p && c[c.order[0]].order, y = m && window.location.pathname === c.href;
7735
7735
  let _ = {}, g = {};
7736
7736
  if (p) {
7737
- const y = c.menuId || t, E = {
7738
- onClick: (j) => fe.events.onClick(j, { id: y, callback: i, isOpen: r[y] }),
7739
- onFocus: () => fe.events.onFocus({ id: y }),
7740
- onBlur: () => fe.events.onBlur({ id: y, callback: i }),
7741
- onMouseLeave: () => fe.events.onBlur({ id: y, callback: i }),
7742
- onMouseEnter: () => fe.events.onMouseEnter({ id: y, callback: i })
7737
+ const b = c.menuId || t, E = {
7738
+ onClick: (j) => fe.events.onClick(j, { id: b, callback: i, isOpen: r[b] }),
7739
+ onFocus: () => fe.events.onFocus({ id: b }),
7740
+ onBlur: () => fe.events.onBlur({ id: b, callback: i }),
7741
+ onMouseLeave: () => fe.events.onBlur({ id: b, callback: i }),
7742
+ onMouseEnter: () => fe.events.onMouseEnter({ id: b, callback: i })
7743
7743
  };
7744
7744
  n && (v && (_ = {
7745
7745
  ...E,
7746
7746
  onKeyPress: (j) => {
7747
- j.key === "Enter" && fe.events.onClick(j, { id: y, callback: i, isOpen: r[y] });
7747
+ j.key === "Enter" && fe.events.onClick(j, { id: b, callback: i, isOpen: r[b] });
7748
7748
  },
7749
7749
  tabIndex: "0",
7750
7750
  // Add a `tabIndex` so keyboard users can focus on the `li`
7751
7751
  "aria-haspopup": !0,
7752
- "aria-expanded": r[y],
7753
- "aria-controls": y
7754
- }), g = { hidden: y in r ? !r[y] : !0 }), v || (g = {
7752
+ "aria-expanded": r[b],
7753
+ "aria-controls": b
7754
+ }), g = { hidden: b in r ? !r[b] : !0 }), v || (g = {
7755
7755
  ...g,
7756
7756
  ...E
7757
7757
  });
@@ -7763,52 +7763,52 @@ const Ye = "footer_", Vt = "SiteFooter", Lr = ({ group: t }) => {
7763
7763
  [c.className]: c.className,
7764
7764
  "has-submenu": p,
7765
7765
  parent: v,
7766
- active: b
7766
+ active: y
7767
7767
  }),
7768
7768
  role: "none",
7769
7769
  ..._,
7770
7770
  children: [
7771
7771
  m ? K.createElement(
7772
- u ? ie : "a",
7772
+ l ? ie : "a",
7773
7773
  m,
7774
- o.formatMessage({ id: d })
7775
- ) : o.formatMessage({ id: d }),
7776
- c.order && /* @__PURE__ */ a.jsx("ul", { ...g, children: c.order.map((y) => {
7777
- if (!c[y])
7774
+ o.formatMessage({ id: u })
7775
+ ) : o.formatMessage({ id: u }),
7776
+ c.order && /* @__PURE__ */ a.jsx("ul", { ...g, children: c.order.map((b) => {
7777
+ if (!c[b])
7778
7778
  return null;
7779
7779
  const E = {
7780
7780
  isLoggedIn: e,
7781
7781
  isDesktopVersion: n,
7782
7782
  menus: r,
7783
7783
  callback: i,
7784
- doTrack: f ? l : null
7784
+ doTrack: f ? d : null
7785
7785
  };
7786
- return c[y].order ? /* @__PURE__ */ a.jsxs(
7786
+ return c[b].order ? /* @__PURE__ */ a.jsxs(
7787
7787
  "li",
7788
7788
  {
7789
7789
  className: S({
7790
- [c[y].className]: c[y].className
7790
+ [c[b].className]: c[b].className
7791
7791
  }),
7792
7792
  children: [
7793
- o.formatMessage({ id: `${d}_${y}` }),
7794
- /* @__PURE__ */ a.jsx("ul", { children: c[y].order.map((j) => /* @__PURE__ */ a.jsx(
7793
+ o.formatMessage({ id: `${u}_${b}` }),
7794
+ /* @__PURE__ */ a.jsx("ul", { children: c[b].order.map((j) => /* @__PURE__ */ a.jsx(
7795
7795
  Kt,
7796
7796
  {
7797
- id: `${t}.${y}.${j}`,
7797
+ id: `${t}.${b}.${j}`,
7798
7798
  ...E
7799
7799
  },
7800
7800
  j
7801
7801
  )) })
7802
7802
  ]
7803
7803
  },
7804
- y
7804
+ b
7805
7805
  ) : /* @__PURE__ */ a.jsx(
7806
7806
  Kt,
7807
7807
  {
7808
- id: `${t}.${y}`,
7808
+ id: `${t}.${b}`,
7809
7809
  ...E
7810
7810
  },
7811
- y
7811
+ b
7812
7812
  );
7813
7813
  }) })
7814
7814
  ]
@@ -7827,38 +7827,38 @@ const nc = { height: 67, height_desktop: 83 }, Da = ({ showNavigation: t = !0 })
7827
7827
  navigation: { desktop: !1, default: !1 },
7828
7828
  account: { desktop: !1, default: !1 }
7829
7829
  }
7830
- }), { headerIsVisible: f, menus: l, focusElements: u } = o;
7830
+ }), { headerIsVisible: f, menus: d, focusElements: l } = o;
7831
7831
  Pi({
7832
7832
  scrollPosition: nc[`height${s.navigation ? "_desktop" : ""}`],
7833
7833
  callbacks: {
7834
7834
  scrollUp: () => {
7835
- !s && l.navigation || fe.shouldChangeHeaderIsVisible(!0, l, c);
7835
+ !s && d.navigation || fe.shouldChangeHeaderIsVisible(!0, d, c);
7836
7836
  },
7837
7837
  scrollDown: () => {
7838
- !s && l.navigation || fe.shouldChangeHeaderIsVisible(!1, l, c);
7838
+ !s && d.navigation || fe.shouldChangeHeaderIsVisible(!1, d, c);
7839
7839
  }
7840
7840
  }
7841
7841
  });
7842
- const d = (p, v) => {
7843
- fe.handleMenus({ id: p, value: v, menus: l, dispatch: c });
7842
+ const u = (p, v) => {
7843
+ fe.handleMenus({ id: p, value: v, menus: d, dispatch: c });
7844
7844
  }, m = pe(null);
7845
7845
  return gt(() => {
7846
- l.navigation && fe.autoFocus({
7846
+ d.navigation && fe.autoFocus({
7847
7847
  menu: "navigation",
7848
7848
  navigationRef: m,
7849
7849
  isDesktopVersion: s.navigation,
7850
- focusElements: u,
7850
+ focusElements: l,
7851
7851
  dispatch: c
7852
7852
  });
7853
- }, [l.navigation]), gt(() => {
7854
- l.account && fe.autoFocus({
7853
+ }, [d.navigation]), gt(() => {
7854
+ d.account && fe.autoFocus({
7855
7855
  menu: "account",
7856
7856
  navigationRef: m,
7857
7857
  isDesktopVersion: s.navigation,
7858
- focusElements: u,
7858
+ focusElements: l,
7859
7859
  dispatch: c
7860
7860
  });
7861
- }, [l.account]), n && n.isLoading ? null : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
7861
+ }, [d.account]), n && n.isLoading ? null : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
7862
7862
  /* @__PURE__ */ a.jsxs(
7863
7863
  "nav",
7864
7864
  {
@@ -7884,15 +7884,15 @@ const nc = { height: 67, height_desktop: 83 }, Da = ({ showNavigation: t = !0 })
7884
7884
  {
7885
7885
  className: "menu-button gtm-trackable",
7886
7886
  onClick: (p) => {
7887
- p.preventDefault(), p.stopPropagation(), d("navigation", !l.navigation);
7887
+ p.preventDefault(), p.stopPropagation(), u("navigation", !d.navigation);
7888
7888
  },
7889
7889
  "data-gtm-event-type": "open-tab-menu-click",
7890
7890
  "data-gtm-event-context": "HeaderLeft-Chevron",
7891
7891
  "aria-haspopup": "true",
7892
- "aria-expanded": l.navigation,
7892
+ "aria-expanded": d.navigation,
7893
7893
  "aria-controls": "navigation",
7894
7894
  children: /* @__PURE__ */ a.jsx(be, { children: e.formatMessage({
7895
- id: `header_menu_${l.navigation ? "hide" : "show"}`
7895
+ id: `header_menu_${d.navigation ? "hide" : "show"}`
7896
7896
  }) })
7897
7897
  }
7898
7898
  ),
@@ -7901,17 +7901,17 @@ const nc = { height: 67, height_desktop: 83 }, Da = ({ showNavigation: t = !0 })
7901
7901
  {
7902
7902
  ref: m,
7903
7903
  id: "navigation",
7904
- hidden: s.navigation || l.account ? !1 : !l.navigation,
7904
+ hidden: s.navigation || d.account ? !1 : !d.navigation,
7905
7905
  role: "menu",
7906
- "data-showing": !s.navigation && l.account ? "account" : "default",
7906
+ "data-showing": !s.navigation && d.account ? "account" : "default",
7907
7907
  children: Yt.order.map((p) => /* @__PURE__ */ a.jsx(
7908
7908
  Kt,
7909
7909
  {
7910
7910
  id: p,
7911
7911
  isLoggedIn: i,
7912
7912
  isDesktopVersion: s.navigation,
7913
- menus: { navigation: l.navigation, account: l.account },
7914
- callback: d
7913
+ menus: { navigation: d.navigation, account: d.account },
7914
+ callback: u
7915
7915
  },
7916
7916
  p
7917
7917
  ))
@@ -7922,16 +7922,16 @@ const nc = { height: 67, height_desktop: 83 }, Da = ({ showNavigation: t = !0 })
7922
7922
  {
7923
7923
  className: "search toggle-search-button",
7924
7924
  onClick: (p) => {
7925
- p.preventDefault(), p.stopPropagation(), d("search", !l.search);
7925
+ p.preventDefault(), p.stopPropagation(), u("search", !d.search);
7926
7926
  },
7927
7927
  "aria-haspopup": "true",
7928
- "aria-expanded": l.search,
7928
+ "aria-expanded": d.search,
7929
7929
  "aria-controls": "search-form",
7930
7930
  children: /* @__PURE__ */ a.jsx(
7931
7931
  be,
7932
7932
  {
7933
7933
  children: e.formatMessage({
7934
- id: `header_search_${l.search ? "hide" : "show"}`
7934
+ id: `header_search_${d.search ? "hide" : "show"}`
7935
7935
  })
7936
7936
  }
7937
7937
  )
@@ -7942,7 +7942,7 @@ const nc = { height: 67, height_desktop: 83 }, Da = ({ showNavigation: t = !0 })
7942
7942
  {
7943
7943
  id: "global-search",
7944
7944
  handleToggle: {
7945
- searchIsOpen: l.search,
7945
+ searchIsOpen: d.search,
7946
7946
  isDesktopVersion: s.search
7947
7947
  },
7948
7948
  gtmContext: "search-bar-header",
@@ -7955,17 +7955,17 @@ const nc = { height: 67, height_desktop: 83 }, Da = ({ showNavigation: t = !0 })
7955
7955
  className: "account-button",
7956
7956
  onClick: (p) => fe.events.onClick(p, {
7957
7957
  id: "account",
7958
- callback: d,
7959
- isOpen: l.account
7958
+ callback: u,
7959
+ isOpen: d.account
7960
7960
  }),
7961
- onMouseEnter: () => fe.events.onMouseEnter({ id: "account", callback: d }),
7962
- onMouseLeave: () => fe.events.onBlur({ id: "account", callback: d }),
7961
+ onMouseEnter: () => fe.events.onMouseEnter({ id: "account", callback: u }),
7962
+ onMouseLeave: () => fe.events.onBlur({ id: "account", callback: u }),
7963
7963
  "aria-haspopup": "true",
7964
- "aria-expanded": l.account,
7964
+ "aria-expanded": d.account,
7965
7965
  "aria-controls": "navigation",
7966
7966
  children: [
7967
7967
  /* @__PURE__ */ a.jsx(be, { children: e.formatMessage({
7968
- id: `header_account_${l.account ? "hide" : "show"}`
7968
+ id: `header_account_${d.account ? "hide" : "show"}`
7969
7969
  }) }),
7970
7970
  /* @__PURE__ */ a.jsx(
7971
7971
  ze,
@@ -7986,7 +7986,7 @@ const nc = { height: 67, height_desktop: 83 }, Da = ({ showNavigation: t = !0 })
7986
7986
  "div",
7987
7987
  {
7988
7988
  className: S("overlay", {
7989
- open: l.navigation || l.account || !s.search && l.search
7989
+ open: d.navigation || d.account || !s.search && d.search
7990
7990
  })
7991
7991
  }
7992
7992
  )
@@ -8014,31 +8014,31 @@ const rc = () => {
8014
8014
  className: o = "",
8015
8015
  locale: c = "en"
8016
8016
  }) => {
8017
- const { navigation: f = !0, footer: l = !0 } = i, { background: u = "default", variant: d = "default", circle: m = "default" } = s, p = $i();
8017
+ const { navigation: f = !0, footer: d = !0 } = i, { background: l = "default", variant: u = "default", circle: m = "default" } = s, p = $i();
8018
8018
  ae(() => {
8019
8019
  window.scrollTo(0, 0);
8020
8020
  }, [p]);
8021
- const v = Ot(t, { locale: c }), b = Ot(e, {
8021
+ const v = Ot(t, { locale: c }), y = Ot(e, {
8022
8022
  locale: c
8023
8023
  }), _ = Ot(n, {
8024
8024
  locale: c
8025
8025
  }), g = {};
8026
- return u !== "default" && (g[u] = !0), d !== "default" && (g[d] = !0), m !== "default" && (g[m] = !0), /* @__PURE__ */ a.jsx(xi, { onError: r, fallback: /* @__PURE__ */ a.jsx(rc, {}), children: /* @__PURE__ */ a.jsx(ui, { fallback: null, children: /* @__PURE__ */ a.jsxs(
8026
+ return l !== "default" && (g[l] = !0), u !== "default" && (g[u] = !0), m !== "default" && (g[m] = !0), /* @__PURE__ */ a.jsx(xi, { onError: r, fallback: /* @__PURE__ */ a.jsx(rc, {}), children: /* @__PURE__ */ a.jsx(ui, { fallback: null, children: /* @__PURE__ */ a.jsxs(
8027
8027
  "div",
8028
8028
  {
8029
8029
  id: "wrapper",
8030
- className: S(o, g, { "has-footer": l }),
8030
+ className: S(o, g, { "has-footer": d }),
8031
8031
  children: [
8032
8032
  /* @__PURE__ */ a.jsx(Da, { showNavigation: f }),
8033
8033
  /* @__PURE__ */ a.jsxs("section", { id: "content-wrapper", children: [
8034
- b && /* @__PURE__ */ a.jsx("div", { className: "additional-content prepended", children: b }),
8035
- K.createElement(u === "bold" ? Sa : "div", {
8034
+ y && /* @__PURE__ */ a.jsx("div", { className: "additional-content prepended", children: y }),
8035
+ K.createElement(l === "bold" ? Sa : "div", {
8036
8036
  id: "content",
8037
8037
  children: v
8038
8038
  })
8039
8039
  ] }),
8040
8040
  _ && /* @__PURE__ */ a.jsx("div", { className: "additional-content appended", children: _ }),
8041
- l && /* @__PURE__ */ a.jsx(Oa, {}),
8041
+ d && /* @__PURE__ */ a.jsx(Oa, {}),
8042
8042
  /* @__PURE__ */ a.jsx(tc, {})
8043
8043
  ]
8044
8044
  }
@@ -8087,29 +8087,29 @@ const zl = ({
8087
8087
  if (!t || t.length < 1)
8088
8088
  return null;
8089
8089
  const f = [];
8090
- return t.forEach((l) => {
8091
- if (!l)
8090
+ return t.forEach((d) => {
8091
+ if (!d)
8092
8092
  return;
8093
- const u = ic.getTagDetails(l);
8094
- u && f.push(u);
8093
+ const l = ic.getTagDetails(d);
8094
+ l && f.push(l);
8095
8095
  }), f.length < 1 ? null : /* @__PURE__ */ a.jsx(
8096
8096
  "ul",
8097
8097
  {
8098
8098
  className: S("tags text-small", e, i, {
8099
8099
  "one-line": n
8100
8100
  }),
8101
- children: f.map((l) => {
8102
- const u = c.formatMessage({ id: l.text });
8103
- return /* @__PURE__ */ a.jsx("li", { children: l.href && r ? /* @__PURE__ */ a.jsx(
8101
+ children: f.map((d) => {
8102
+ const l = c.formatMessage({ id: d.text });
8103
+ return /* @__PURE__ */ a.jsx("li", { children: d.href && r ? /* @__PURE__ */ a.jsx(
8104
8104
  "a",
8105
8105
  {
8106
- href: l.href,
8106
+ href: d.href,
8107
8107
  className: "gtm-trackable",
8108
8108
  "data-gtm-event-type": s,
8109
8109
  "data-gtm-event-context": o,
8110
- children: u
8110
+ children: l
8111
8111
  }
8112
- ) : u }, l.id);
8112
+ ) : l }, d.id);
8113
8113
  })
8114
8114
  }
8115
8115
  );
@@ -8129,10 +8129,10 @@ const Zl = ({
8129
8129
  c.formatMessage({ id: "membersList" }),
8130
8130
  /* @__PURE__ */ a.jsx("span", { className: "count", children: e })
8131
8131
  ] }),
8132
- /* @__PURE__ */ a.jsx("ul", { children: t.map((f, l) => /* @__PURE__ */ a.jsxs("li", { children: [
8132
+ /* @__PURE__ */ a.jsx("ul", { children: t.map((f, d) => /* @__PURE__ */ a.jsxs("li", { children: [
8133
8133
  /* @__PURE__ */ a.jsx(Yn, { member: f, gtmContext: i, gtmType: s }),
8134
8134
  f.isAdmin && /* @__PURE__ */ a.jsx(Lt, { children: c.formatMessage({ id: "membersList_admin" }) })
8135
- ] }, l)) }),
8135
+ ] }, d)) }),
8136
8136
  n && /* @__PURE__ */ a.jsx(
8137
8137
  en,
8138
8138
  {
@@ -8176,13 +8176,13 @@ const we = "discussion_form_", Jn = ({
8176
8176
  create: { projectNames: ["questions-answers"] }
8177
8177
  }
8178
8178
  },
8179
- gtmContext: l = "DiscussionForm"
8179
+ gtmContext: d = "DiscussionForm"
8180
8180
  }) => {
8181
8181
  var O, C, T;
8182
- const u = G(), d = Ce(Oe), [m, p] = te(
8182
+ const l = G(), u = Ce(Oe), [m, p] = te(
8183
8183
  n.isEditing && n.isEditing.text || ""
8184
- ), [v, b] = te(c.error || !1), [_, g] = te(!1), y = pe(null);
8185
- if (r || (r = y), n.isLoading)
8184
+ ), [v, y] = te(c.error || !1), [_, g] = te(!1), b = pe(null);
8185
+ if (r || (r = b), n.isLoading)
8186
8186
  return /* @__PURE__ */ a.jsx(
8187
8187
  Te,
8188
8188
  {
@@ -8194,17 +8194,17 @@ const we = "discussion_form_", Jn = ({
8194
8194
  const $ = x.target.value;
8195
8195
  p($);
8196
8196
  let I;
8197
- !d || !d.id ? I = Se(
8198
- u.formatMessage,
8197
+ !u || !u.id ? I = Se(
8198
+ l.formatMessage,
8199
8199
  `${we}error_loggedOut`,
8200
8200
  t.type,
8201
8201
  "action"
8202
8202
  ) : e ? $.length >= s && (I = `${we}error_tooLong`) : I = Se(
8203
- u.formatMessage,
8203
+ l.formatMessage,
8204
8204
  `${we}error_noPermission`,
8205
8205
  t.type,
8206
8206
  "action"
8207
- ), I ? b(I) : v && b(!1);
8207
+ ), I ? y(I) : v && y(!1);
8208
8208
  };
8209
8209
  let j = `${t.type}-form`;
8210
8210
  if (t.type === "response" || t.type === "reply") {
@@ -8213,7 +8213,7 @@ const we = "discussion_form_", Jn = ({
8213
8213
  }
8214
8214
  const w = async (x) => {
8215
8215
  var I;
8216
- if (x.preventDefault(), x.stopPropagation(), !d || !d.id || !e || F)
8216
+ if (x.preventDefault(), x.stopPropagation(), !u || !u.id || !e || F)
8217
8217
  return;
8218
8218
  Mt && clearTimeout(Mt), g("submitting");
8219
8219
  const $ = window.location.pathname;
@@ -8226,20 +8226,20 @@ const we = "discussion_form_", Jn = ({
8226
8226
  case "question":
8227
8227
  U = await f.create({
8228
8228
  title: m,
8229
- authorId: d && d.id,
8229
+ authorId: u && u.id,
8230
8230
  ...(I = f.props) == null ? void 0 : I.create
8231
8231
  });
8232
8232
  break;
8233
8233
  case "response":
8234
8234
  U = await f.create(
8235
8235
  { question: t.slugs.question },
8236
- { body: m, authorId: d && d.id, contentPath: $ }
8236
+ { body: m, authorId: u && u.id, contentPath: $ }
8237
8237
  );
8238
8238
  break;
8239
8239
  case "reply":
8240
8240
  U = await f.create(
8241
8241
  { question: t.slugs.question, answer: t.slugs.answer },
8242
- { body: m, authorId: d && d.id, contentPath: $ }
8242
+ { body: m, authorId: u && u.id, contentPath: $ }
8243
8243
  );
8244
8244
  break;
8245
8245
  default:
@@ -8254,20 +8254,20 @@ const we = "discussion_form_", Jn = ({
8254
8254
  const A = U;
8255
8255
  let W = `${we}error`;
8256
8256
  A != null && A.message.includes("entry already exists") && (W = Se(
8257
- u.formatMessage,
8257
+ l.formatMessage,
8258
8258
  `${we}error_alreadyExists`,
8259
8259
  t.type,
8260
8260
  "action"
8261
8261
  )), A != null && A.message.includes("429") ? W = Se(
8262
- u.formatMessage,
8262
+ l.formatMessage,
8263
8263
  `${we}error_tooMany`,
8264
8264
  t.type,
8265
8265
  "action"
8266
- ) : A != null && A.message.includes("400") && (W = `${we}error`), b(W), z();
8266
+ ) : A != null && A.message.includes("400") && (W = `${we}error`), y(W), z();
8267
8267
  }
8268
8268
  }, z = () => {
8269
8269
  Mt = setTimeout(() => {
8270
- b(!1), g(!1);
8270
+ y(!1), g(!1);
8271
8271
  }, 5e3);
8272
8272
  }, F = !m || !Zi(m), q = _ === "submitting", M = [];
8273
8273
  return (n.isEditing && !q || c.cancel) && M.push({
@@ -8275,28 +8275,28 @@ const we = "discussion_form_", Jn = ({
8275
8275
  size: { mobile: "small", 600: "medium" },
8276
8276
  onClick: f.handleCancel,
8277
8277
  className: "gtm-trackable",
8278
- "data-gtm-event-context": l,
8278
+ "data-gtm-event-context": d,
8279
8279
  "data-gtm-event-type": `cancel-${t.type}-click`,
8280
- disabled: !c.cancel && (!d || !d.id || !m),
8281
- children: u.formatMessage({ id: `${we}cancel` })
8280
+ disabled: !c.cancel && (!u || !u.id || !m),
8281
+ children: l.formatMessage({ id: `${we}cancel` })
8282
8282
  }), M.push({
8283
8283
  variant: "primary",
8284
8284
  size: { mobile: "small", 600: "medium" },
8285
8285
  onClick: (x) => {
8286
8286
  if (n.isEditing) {
8287
8287
  g("submitting"), f.handleSaveEdit && f.handleSaveEdit(
8288
- y.current && "value" in y.current ? y.current.value : ""
8288
+ b.current && "value" in b.current ? b.current.value : ""
8289
8289
  );
8290
8290
  return;
8291
8291
  }
8292
8292
  w(x);
8293
8293
  },
8294
8294
  className: "gtm-trackable",
8295
- "data-gtm-event-context": l,
8295
+ "data-gtm-event-context": d,
8296
8296
  "data-gtm-event-type": `${n.isEditing ? "save" : "submit"}-${t.type}-click`,
8297
8297
  "data-testid": "save-button",
8298
- disabled: !d || !d.id || !e || F || q || n.isEditing && m === n.isEditing.text,
8299
- children: u.formatMessage({
8298
+ disabled: !u || !u.id || !e || F || q || n.isEditing && m === n.isEditing.text,
8299
+ children: l.formatMessage({
8300
8300
  id: `${we}${q ? n.isEditing ? "saving" : "posting" : n.isEditing ? "save" : "post"}`
8301
8301
  })
8302
8302
  }), /* @__PURE__ */ a.jsxs(
@@ -8308,16 +8308,16 @@ const we = "discussion_form_", Jn = ({
8308
8308
  }),
8309
8309
  "data-testid": `discussion-${t.type}-form`,
8310
8310
  children: [
8311
- (n == null ? void 0 : n.showTitle) && !n.isEditing && ["question"].includes(t.type) && /* @__PURE__ */ a.jsx("h2", { children: Se(u.formatMessage, `${we}title`, t.type, "action") }),
8311
+ (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") }),
8312
8312
  /* @__PURE__ */ a.jsx(
8313
8313
  Yn,
8314
8314
  {
8315
- member: d || "community",
8316
- gtmContext: l,
8315
+ member: u || "community",
8316
+ gtmContext: d,
8317
8317
  gtmType: "profile-click"
8318
8318
  }
8319
8319
  ),
8320
- /* @__PURE__ */ a.jsx(be, { element: "label", showOnFocus: !1, htmlFor: `${j}-input`, children: Se(u.formatMessage, `${we}label`, t.type, "action") }),
8320
+ /* @__PURE__ */ a.jsx(be, { element: "label", showOnFocus: !1, htmlFor: `${j}-input`, children: Se(l.formatMessage, `${we}label`, t.type, "action") }),
8321
8321
  /* @__PURE__ */ a.jsx(
8322
8322
  wi,
8323
8323
  {
@@ -8325,7 +8325,7 @@ const we = "discussion_form_", Jn = ({
8325
8325
  id: `${j}-input`,
8326
8326
  name: t.type,
8327
8327
  placeholder: i || Se(
8328
- u.formatMessage,
8328
+ l.formatMessage,
8329
8329
  `${we}placeholder`,
8330
8330
  t.type,
8331
8331
  "action"
@@ -8339,14 +8339,14 @@ const we = "discussion_form_", Jn = ({
8339
8339
  autoFocus: !!n.isEditing
8340
8340
  }
8341
8341
  ),
8342
- /* @__PURE__ */ a.jsx("small", { children: Se(u.formatMessage, `${we}explainer`, t.type, "action", {
8342
+ /* @__PURE__ */ a.jsx("small", { children: Se(l.formatMessage, `${we}explainer`, t.type, "action", {
8343
8343
  a: (x) => /* @__PURE__ */ a.jsx(
8344
8344
  "a",
8345
8345
  {
8346
8346
  href: "https://about.apolitical.co/q-and-a-community-guidelines",
8347
8347
  target: "_blank",
8348
8348
  className: "gtm-trackable",
8349
- "data-gtm-event-context": l,
8349
+ "data-gtm-event-context": d,
8350
8350
  "data-gtm-event-type": "community-guidelines-link",
8351
8351
  rel: "noreferrer",
8352
8352
  children: x
@@ -8354,11 +8354,11 @@ const we = "discussion_form_", Jn = ({
8354
8354
  )
8355
8355
  }) }),
8356
8356
  /* @__PURE__ */ a.jsx(yt, { buttons: M }),
8357
- _ === "submitted" && n.showSuccessMessage && /* @__PURE__ */ a.jsx(Bt, { className: "success", "data-testid": "success", children: Se(u.formatMessage, `${we}success`, t.type, "action") }),
8358
- v && /* @__PURE__ */ a.jsx(Bt, { id: "error-message", className: "error", "data-testid": "error", children: c.error ? c.error : typeof v == "string" ? v.includes(" ") ? v : u.formatMessage(
8357
+ _ === "submitted" && n.showSuccessMessage && /* @__PURE__ */ a.jsx(Bt, { className: "success", "data-testid": "success", children: Se(l.formatMessage, `${we}success`, t.type, "action") }),
8358
+ v && /* @__PURE__ */ a.jsx(Bt, { id: "error-message", className: "error", "data-testid": "error", children: c.error ? c.error : typeof v == "string" ? v.includes(" ") ? v : l.formatMessage(
8359
8359
  { id: v },
8360
8360
  {
8361
- action: u.formatMessage({
8361
+ action: l.formatMessage({
8362
8362
  id: `discussion_action_${t.type}`
8363
8363
  }),
8364
8364
  maxLength: s
@@ -8382,7 +8382,7 @@ const we = "discussion_form_", Jn = ({
8382
8382
  }
8383
8383
  }
8384
8384
  );
8385
- const { content: o, functions: c, meta: f, ...l } = t;
8385
+ const { content: o, functions: c, meta: f, ...d } = t;
8386
8386
  return /* @__PURE__ */ a.jsx(
8387
8387
  Jn,
8388
8388
  {
@@ -8390,7 +8390,7 @@ const we = "discussion_form_", Jn = ({
8390
8390
  functions: { ...c, create: (c == null ? void 0 : c.create) || (() => {
8391
8391
  }) },
8392
8392
  meta: { ...f, isEditing: (f == null ? void 0 : f.isEditing) || !1, showSuccessMessage: !1 },
8393
- ...l
8393
+ ...d
8394
8394
  }
8395
8395
  );
8396
8396
  }, sc = {
@@ -8424,11 +8424,11 @@ const Nn = () => {
8424
8424
  }, deleteLike: f = () => {
8425
8425
  } } = {}
8426
8426
  }) => {
8427
- const l = G();
8427
+ const d = G();
8428
8428
  ae(() => {
8429
8429
  p(i);
8430
8430
  }, [i]);
8431
- const [u, d] = te(e), [m, p] = te(i), [v, b] = te(!1), [_, g] = te(!1), y = vt(
8431
+ const [l, u] = te(e), [m, p] = te(i), [v, y] = te(!1), [_, g] = te(!1), b = vt(
8432
8432
  () => lc(n, Pn),
8433
8433
  [n]
8434
8434
  ), E = (w) => {
@@ -8440,17 +8440,17 @@ const Nn = () => {
8440
8440
  }, j = async () => {
8441
8441
  if (Nn(), v || !o)
8442
8442
  return !1;
8443
- let w = m ? u - 1 : u + 1;
8444
- w < 0 && (w = 0), b(!0), d(w), p(!m);
8443
+ let w = m ? l - 1 : l + 1;
8444
+ w < 0 && (w = 0), y(!0), u(w), p(!m);
8445
8445
  try {
8446
8446
  if (s && s.slugs) {
8447
8447
  const z = cc(s.slugs);
8448
8448
  m ? await f(z) : await c(z, { contentPath: window.location.pathname });
8449
8449
  }
8450
8450
  } catch {
8451
- d(e), p(i);
8451
+ u(e), p(i);
8452
8452
  } finally {
8453
- b(!1);
8453
+ y(!1);
8454
8454
  }
8455
8455
  };
8456
8456
  return K.createElement(t, {
@@ -8480,12 +8480,12 @@ const Nn = () => {
8480
8480
  size: "medium",
8481
8481
  icon: { icon: m ? "heart" : "heart_empty", animate: "bounce" },
8482
8482
  className: S({ "do-animation": m && !i }),
8483
- screenreaderText: o ? l.formatMessage(
8483
+ screenreaderText: o ? d.formatMessage(
8484
8484
  {
8485
8485
  id: `discussion_likes_${m ? "unlike" : "like"}`
8486
8486
  },
8487
8487
  {
8488
- action: l.formatMessage({
8488
+ action: d.formatMessage({
8489
8489
  id: `discussion_action_${s.type}`
8490
8490
  })
8491
8491
  }
@@ -8501,16 +8501,16 @@ const Nn = () => {
8501
8501
  /* @__PURE__ */ a.jsx(
8502
8502
  "span",
8503
8503
  {
8504
- className: S("number-of-likes", { "no-likes": u === 0 }),
8504
+ className: S("number-of-likes", { "no-likes": l === 0 }),
8505
8505
  "data-testid": "number-of-likes",
8506
- children: l.formatMessage(
8506
+ children: d.formatMessage(
8507
8507
  { id: `discussion_likes${r ? "_short" : ""}` },
8508
- { number: u }
8508
+ { number: l }
8509
8509
  )
8510
8510
  }
8511
8511
  ),
8512
8512
  n && /* @__PURE__ */ a.jsx(Vi, { isOpen: _, isLoading: n.length === 0, children: n.length && /* @__PURE__ */ a.jsxs("ul", { children: [
8513
- y.map((w) => typeof w == "string" || !w.name ? null : /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
8513
+ b.map((w) => typeof w == "string" || !w.name ? null : /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
8514
8514
  xt,
8515
8515
  {
8516
8516
  href: w.id ? `/profiles/${w.id}` : void 0,
@@ -8520,7 +8520,7 @@ const Nn = () => {
8520
8520
  children: w.name
8521
8521
  }
8522
8522
  ) }, w.id || window.btoa(w.name))),
8523
- e > Pn && /* @__PURE__ */ a.jsx("li", { children: l.formatMessage(
8523
+ e > Pn && /* @__PURE__ */ a.jsx("li", { children: d.formatMessage(
8524
8524
  { id: "discussion_likes_more" },
8525
8525
  { number: e - Pn }
8526
8526
  ) })
@@ -8549,19 +8549,19 @@ const Pe = "discussion_", uc = 280, nn = ({
8549
8549
  updateContent: () => {
8550
8550
  }
8551
8551
  },
8552
- likes: { createLike: l, deleteLike: u } = { createLike: () => {
8552
+ likes: { createLike: d, deleteLike: l } = { createLike: () => {
8553
8553
  }, deleteLike: () => {
8554
8554
  } },
8555
- comments: { openComments: d } = { openComments: () => {
8555
+ comments: { openComments: u } = { openComments: () => {
8556
8556
  } }
8557
8557
  },
8558
8558
  links: m = {},
8559
8559
  className: p,
8560
8560
  gtmContext: v = "DiscussionAnswer",
8561
- children: b,
8561
+ children: y,
8562
8562
  isTruncated: _ = !1
8563
8563
  }) => {
8564
- const g = G(), y = Ce(Oe), E = Ce(Xn), { author: j, canLike: w, createdAt: z, id: F, likes: q = 0, userLiked: M, comments: O = 0 } = e, C = y && y.id && typeof j != "string" && j.id && j.id === y.id || !1, T = typeof w == "boolean" ? w : n ? !C : !1, x = C && (!e.createdAt || Di(e.createdAt, 10, "seconds")), $ = pe(null), [I, U] = te({
8564
+ const g = G(), b = Ce(Oe), E = Ce(Xn), { author: j, canLike: w, createdAt: z, id: F, likes: q = 0, userLiked: M, comments: O = 0 } = e, C = b && b.id && typeof j != "string" && j.id && j.id === b.id || !1, T = typeof w == "boolean" ? w : n ? !C : !1, x = C && (!e.createdAt || Di(e.createdAt, 10, "seconds")), $ = pe(null), [I, U] = te({
8565
8565
  body: e && e.body || "",
8566
8566
  isEditing: !1,
8567
8567
  didEdit: e && e.isEdited || !1
@@ -8756,17 +8756,17 @@ const Pe = "discussion_", uc = 280, nn = ({
8756
8756
  canLike: T,
8757
8757
  peopleWhoLiked: e.peopleWhoLiked,
8758
8758
  functions: {
8759
- createLike: l,
8760
- deleteLike: u
8759
+ createLike: d,
8760
+ deleteLike: l
8761
8761
  }
8762
8762
  }
8763
8763
  ),
8764
- !s.comments && (["question", "post"].includes(e.type) || m.comments || typeof d == "function") && /* @__PURE__ */ a.jsxs(
8764
+ !s.comments && (["question", "post"].includes(e.type) || m.comments || typeof u == "function") && /* @__PURE__ */ a.jsxs(
8765
8765
  "li",
8766
8766
  {
8767
8767
  className: "action-button",
8768
8768
  onClick: (R) => {
8769
- R.preventDefault(), R.stopPropagation(), m.comments && (window.location.href = m.comments), typeof d == "function" && d();
8769
+ R.preventDefault(), R.stopPropagation(), m.comments && (window.location.href = m.comments), typeof u == "function" && u();
8770
8770
  },
8771
8771
  children: [
8772
8772
  /* @__PURE__ */ a.jsx(
@@ -8777,7 +8777,7 @@ const Pe = "discussion_", uc = 280, nn = ({
8777
8777
  styling: { muted: !0 },
8778
8778
  icon: { icon: "speech-bubble_square_thick" },
8779
8779
  href: m.comments ? m.comments : !1,
8780
- onClick: m.comments || typeof d != "function" ? !1 : d,
8780
+ onClick: m.comments || typeof u != "function" ? !1 : u,
8781
8781
  className: "gtm-trackable",
8782
8782
  "data-gtm-event-context": v,
8783
8783
  "data-gtm-event-type": `answer-${e.type}-click`,
@@ -8818,7 +8818,7 @@ const Pe = "discussion_", uc = 280, nn = ({
8818
8818
  ]
8819
8819
  }
8820
8820
  ),
8821
- b,
8821
+ y,
8822
8822
  /* @__PURE__ */ a.jsx(
8823
8823
  Xt,
8824
8824
  {
@@ -9255,14 +9255,14 @@ function jc({
9255
9255
  const { mutate: o } = ke({
9256
9256
  mutationFn: t,
9257
9257
  onMutate: (c) => e((f) => {
9258
- const l = Ur({ activity: bc(c), user: s });
9259
- return Hr(l, f);
9258
+ const d = Ur({ activity: bc(c), user: s });
9259
+ return Hr(d, f);
9260
9260
  }),
9261
9261
  onError: n,
9262
- onSuccess: (c, f, l) => {
9263
- const u = Ur({ activity: c, user: s });
9264
- r.setQueryData(i, Hr(u, l, !0)), setTimeout(() => {
9265
- qa(u.id);
9262
+ onSuccess: (c, f, d) => {
9263
+ const l = Ur({ activity: c, user: s });
9264
+ r.setQueryData(i, Hr(l, d, !0)), setTimeout(() => {
9265
+ qa(l.id);
9266
9266
  }, 0);
9267
9267
  }
9268
9268
  });
@@ -9296,22 +9296,22 @@ function Ec({
9296
9296
  },
9297
9297
  queryKey: o
9298
9298
  }) {
9299
- const c = Zn(), f = Vn(), l = { queryClient: c, queryKey: o }, u = {
9299
+ const c = Zn(), f = Vn(), d = { queryClient: c, queryKey: o }, l = {
9300
9300
  mutationHandlers: {
9301
- error: er(l),
9302
- mutate: tr(l)
9301
+ error: er(d),
9302
+ mutate: tr(d)
9303
9303
  },
9304
9304
  user: f,
9305
- ...l
9306
- }, d = jc({ ...u, mutationFn: t }), m = Tc({ ...u, mutationFn: e }), p = Sc({ ...u, mutationFn: n }), v = $c({ ...u, mutationFn: i }), b = Nc({ ...u, mutationFn: s }), { activities: _, ...g } = Cc({ queryKey: o, queryFn: r });
9305
+ ...d
9306
+ }, u = jc({ ...l, mutationFn: t }), m = Tc({ ...l, mutationFn: e }), p = Sc({ ...l, mutationFn: n }), v = $c({ ...l, mutationFn: i }), y = Nc({ ...l, mutationFn: s }), { activities: _, ...g } = Cc({ queryKey: o, queryFn: r });
9307
9307
  return {
9308
9308
  activities: _,
9309
9309
  mutations: {
9310
- create: d,
9310
+ create: u,
9311
9311
  edit: m,
9312
9312
  remove: v,
9313
9313
  like: p,
9314
- unlike: b
9314
+ unlike: y
9315
9315
  },
9316
9316
  user: f,
9317
9317
  ...g
@@ -9334,8 +9334,8 @@ function Sc({
9334
9334
  }),
9335
9335
  onError: n,
9336
9336
  onSuccess: (o, { activityId: c }, f) => {
9337
- const l = Qt(c, f);
9338
- l && Gt({ activity: l, reaction: o }), r.setQueryData(i, f);
9337
+ const d = Qt(c, f);
9338
+ d && Gt({ activity: d, reaction: o }), r.setQueryData(i, f);
9339
9339
  }
9340
9340
  });
9341
9341
  return s;
@@ -9433,10 +9433,10 @@ const Wl = ({
9433
9433
  const o = G(), {
9434
9434
  activities: c,
9435
9435
  error: f,
9436
- fetchNextPage: l,
9437
- hasNextPage: u,
9438
- isLoading: d,
9439
- mutations: { create: m, edit: p, remove: v, like: b, unlike: _ },
9436
+ fetchNextPage: d,
9437
+ hasNextPage: l,
9438
+ isLoading: u,
9439
+ mutations: { create: m, edit: p, remove: v, like: y, unlike: _ },
9440
9440
  user: g
9441
9441
  } = Ec({
9442
9442
  queryKey: [t, e, "activities"],
@@ -9444,7 +9444,7 @@ const Wl = ({
9444
9444
  });
9445
9445
  if (Ua(), f)
9446
9446
  return /* @__PURE__ */ a.jsx(tt, { variant: "error", text: f.message });
9447
- const y = (c == null ? void 0 : c.length) || 0;
9447
+ const b = (c == null ? void 0 : c.length) || 0;
9448
9448
  return /* @__PURE__ */ a.jsxs("section", { children: [
9449
9449
  /* @__PURE__ */ a.jsx(
9450
9450
  Aa,
@@ -9518,7 +9518,7 @@ const Wl = ({
9518
9518
  updateContent: (B, { body: H }) => p({ activityId: w, content: H })
9519
9519
  },
9520
9520
  likes: {
9521
- createLike: () => b({ activityId: w }),
9521
+ createLike: () => y({ activityId: w }),
9522
9522
  deleteLike: () => _({ activityId: w, reactionId: C })
9523
9523
  },
9524
9524
  comments: {
@@ -9528,14 +9528,14 @@ const Wl = ({
9528
9528
  isTruncated: !0
9529
9529
  }
9530
9530
  ),
9531
- y > j + 1 && /* @__PURE__ */ a.jsx(Re, {})
9531
+ b > j + 1 && /* @__PURE__ */ a.jsx(Re, {})
9532
9532
  ] }, w);
9533
9533
  }),
9534
- !d && /* @__PURE__ */ a.jsx(
9534
+ !u && /* @__PURE__ */ a.jsx(
9535
9535
  en,
9536
9536
  {
9537
- hasNextPage: u,
9538
- loadNextPage: () => l(),
9537
+ hasNextPage: l,
9538
+ loadNextPage: () => d(),
9539
9539
  icon: { icon: "arrow-down", position: "right" },
9540
9540
  messages: {
9541
9541
  button: o.formatMessage({ id: "loadMore_button" }),
@@ -10106,20 +10106,20 @@ function Rc({
10106
10106
  const { mutate: o } = ke({
10107
10107
  mutationFn: t,
10108
10108
  onMutate: (c) => e((f) => {
10109
- const l = zr({ reply: yc(c), user: s });
10110
- return Vr(l, f, {
10109
+ const d = zr({ reply: yc(c), user: s });
10110
+ return Vr(d, f, {
10111
10111
  replace: !1,
10112
10112
  append: (c == null ? void 0 : c.replyId) !== void 0
10113
10113
  });
10114
10114
  }),
10115
10115
  onError: n,
10116
- onSuccess: (c, f, l) => {
10117
- const u = zr({ reply: c, user: s });
10116
+ onSuccess: (c, f, d) => {
10117
+ const l = zr({ reply: c, user: s });
10118
10118
  r.setQueryData(
10119
10119
  i,
10120
- Vr(u, l, { replace: !0, append: (f == null ? void 0 : f.replyId) !== void 0 })
10120
+ Vr(l, d, { replace: !0, append: (f == null ? void 0 : f.replyId) !== void 0 })
10121
10121
  ), setTimeout(() => {
10122
- qa(u.id);
10122
+ qa(l.id);
10123
10123
  }, 0);
10124
10124
  }
10125
10125
  });
@@ -10153,22 +10153,22 @@ function Za({
10153
10153
  },
10154
10154
  queryKey: o
10155
10155
  }) {
10156
- const c = Zn(), f = Vn(), l = { queryClient: c, queryKey: o }, u = {
10156
+ const c = Zn(), f = Vn(), d = { queryClient: c, queryKey: o }, l = {
10157
10157
  mutationHandlers: {
10158
- error: er(l),
10159
- mutate: tr(l)
10158
+ error: er(d),
10159
+ mutate: tr(d)
10160
10160
  },
10161
10161
  user: f,
10162
- ...l
10163
- }, d = Rc({ ...u, mutationFn: t }), m = Fc({ ...u, mutationFn: e }), p = Oc({ ...u, mutationFn: n }), v = Ac({ ...u, mutationFn: i }), b = Ic({ ...u, mutationFn: s }), { replies: _, ...g } = Dc({ queryKey: o, queryFn: r });
10162
+ ...d
10163
+ }, u = Rc({ ...l, mutationFn: t }), m = Fc({ ...l, mutationFn: e }), p = Oc({ ...l, mutationFn: n }), v = Ac({ ...l, mutationFn: i }), y = Ic({ ...l, mutationFn: s }), { replies: _, ...g } = Dc({ queryKey: o, queryFn: r });
10164
10164
  return {
10165
10165
  replies: _,
10166
10166
  mutations: {
10167
- create: d,
10167
+ create: u,
10168
10168
  edit: m,
10169
10169
  remove: v,
10170
10170
  like: p,
10171
- unlike: b
10171
+ unlike: y
10172
10172
  },
10173
10173
  user: f,
10174
10174
  ...g
@@ -10191,8 +10191,8 @@ function Oc({
10191
10191
  }),
10192
10192
  onError: n,
10193
10193
  onSuccess: (o, { replyId: c }, f) => {
10194
- const l = Jt(c, f);
10195
- l && Zr({ reply: l, reaction: o }), r.setQueryData(i, f);
10194
+ const d = Jt(c, f);
10195
+ d && Zr({ reply: d, reaction: o }), r.setQueryData(i, f);
10196
10196
  }
10197
10197
  });
10198
10198
  return s;
@@ -10208,7 +10208,7 @@ function Dc({ queryFn: t, queryKey: e }) {
10208
10208
  queryKey: e,
10209
10209
  queryFn: t,
10210
10210
  initialPageParam: { next: "" },
10211
- getNextPageParam: (l) => (l == null ? void 0 : l.next) || null
10211
+ getNextPageParam: (d) => (d == null ? void 0 : d.next) || null
10212
10212
  }), c = zc(n), f = `${c.length || 0}${s ? "+" : ""}`;
10213
10213
  return {
10214
10214
  replies: c,
@@ -10304,9 +10304,9 @@ const Zc = ({
10304
10304
  replies: o,
10305
10305
  fetchNextPage: c,
10306
10306
  hasNextPage: f,
10307
- isLoading: l,
10308
- mutations: { create: u, edit: d, like: m, remove: p, unlike: v },
10309
- user: b
10307
+ isLoading: d,
10308
+ mutations: { create: l, edit: u, like: m, remove: p, unlike: v },
10309
+ user: y
10310
10310
  } = Za({
10311
10311
  queryKey: [t, e, n, r, "replies"],
10312
10312
  queryFns: {
@@ -10318,7 +10318,7 @@ const Zc = ({
10318
10318
  return /* @__PURE__ */ a.jsx(
10319
10319
  mc,
10320
10320
  {
10321
- loadMore: { isLoading: l, hasNextPage: f, loadNextPage: () => c() },
10321
+ loadMore: { isLoading: d, hasNextPage: f, loadNextPage: () => c() },
10322
10322
  form: {
10323
10323
  content: {
10324
10324
  type: "reply",
@@ -10330,7 +10330,7 @@ const Zc = ({
10330
10330
  },
10331
10331
  functions: {
10332
10332
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
10333
- create: (_, { body: g }) => u({ activityId: n, replyId: r, content: g })
10333
+ create: (_, { body: g }) => l({ activityId: n, replyId: r, content: g })
10334
10334
  },
10335
10335
  meta: { isEditing: !1, showSuccessMessage: !1 }
10336
10336
  },
@@ -10338,19 +10338,19 @@ const Zc = ({
10338
10338
  var I, U, A, W, J, k, N, Z, B, H, ee, Y;
10339
10339
  const {
10340
10340
  id: g,
10341
- own_children: y,
10341
+ own_children: b,
10342
10342
  latest_children: E,
10343
10343
  children_counts: j
10344
- } = _, z = (((I = y == null ? void 0 : y.like) == null ? void 0 : I.length) || 0) > 0 ? (U = y == null ? void 0 : y.like) == null ? void 0 : U.find((V) => {
10344
+ } = _, z = (((I = b == null ? void 0 : b.like) == null ? void 0 : I.length) || 0) > 0 ? (U = b == null ? void 0 : b.like) == null ? void 0 : U.find((V) => {
10345
10345
  var X;
10346
- return ((X = V == null ? void 0 : V.user) == null ? void 0 : X.id) === (b == null ? void 0 : b.id);
10346
+ return ((X = V == null ? void 0 : V.user) == null ? void 0 : X.id) === (y == null ? void 0 : y.id);
10347
10347
  }) : !1, F = z ? z == null ? void 0 : z.id : "", q = !!z, O = (((A = E == null ? void 0 : E.like) == null ? void 0 : A.length) || 0) > 0 ? (W = E == null ? void 0 : E.like) == null ? void 0 : W.map((V) => {
10348
10348
  var X, re, R;
10349
10349
  return {
10350
10350
  id: (X = V == null ? void 0 : V.user) == null ? void 0 : X.id,
10351
10351
  name: (R = (re = V == null ? void 0 : V.user) == null ? void 0 : re.data) == null ? void 0 : R.name
10352
10352
  };
10353
- }) : !1, C = _ == null ? void 0 : _.user, T = (C == null ? void 0 : C.id) === (b == null ? void 0 : b.id), x = tn(i, T), $ = typeof _.data.content == "string" ? (J = _ == null ? void 0 : _.data) == null ? void 0 : J.content : (
10353
+ }) : !1, C = _ == null ? void 0 : _.user, T = (C == null ? void 0 : C.id) === (y == null ? void 0 : y.id), x = tn(i, T), $ = typeof _.data.content == "string" ? (J = _ == null ? void 0 : _.data) == null ? void 0 : J.content : (
10354
10354
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
10355
10355
  ((N = (k = _ == null ? void 0 : _.data) == null ? void 0 : k.content) == null ? void 0 : N.text) || ""
10356
10356
  );
@@ -10390,7 +10390,7 @@ const Zc = ({
10390
10390
  createContent: () => null,
10391
10391
  deleteContent: () => p({ replyId: g }),
10392
10392
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
10393
- updateContent: (V, { body: X }) => d({ replyId: g, content: X })
10393
+ updateContent: (V, { body: X }) => u({ replyId: g, content: X })
10394
10394
  },
10395
10395
  likes: {
10396
10396
  createLike: () => m({ replyId: g }),
@@ -10413,18 +10413,18 @@ const Zc = ({
10413
10413
  }) => {
10414
10414
  const c = G(), {
10415
10415
  replies: f,
10416
- repliesCount: l,
10417
- fetchNextPage: u,
10418
- hasNextPage: d,
10416
+ repliesCount: d,
10417
+ fetchNextPage: l,
10418
+ hasNextPage: u,
10419
10419
  isLoading: m,
10420
- mutations: { create: p, edit: v, like: b, remove: _, unlike: g },
10421
- user: y
10420
+ mutations: { create: p, edit: v, like: y, remove: _, unlike: g },
10421
+ user: b
10422
10422
  } = Za({
10423
10423
  queryKey: [t, e, n, "replies"],
10424
10424
  queryFns: i
10425
10425
  });
10426
10426
  return Mi(), Ua(), /* @__PURE__ */ a.jsxs("section", { children: [
10427
- /* @__PURE__ */ a.jsx(fc, { type: "comment", responses: l }),
10427
+ /* @__PURE__ */ a.jsx(fc, { type: "comment", responses: d }),
10428
10428
  /* @__PURE__ */ a.jsx(
10429
10429
  Aa,
10430
10430
  {
@@ -10450,14 +10450,14 @@ const Zc = ({
10450
10450
  var W, J, k, N, Z, B, H, ee, Y, V, X, re;
10451
10451
  const { id: j, own_children: w, latest_children: z, children_counts: F } = E, M = (((W = w == null ? void 0 : w.like) == null ? void 0 : W.length) || 0) > 0 ? (J = w == null ? void 0 : w.like) == null ? void 0 : J.find((R) => {
10452
10452
  var oe;
10453
- return ((oe = R == null ? void 0 : R.user) == null ? void 0 : oe.id) === (y == null ? void 0 : y.id);
10453
+ return ((oe = R == null ? void 0 : R.user) == null ? void 0 : oe.id) === (b == null ? void 0 : b.id);
10454
10454
  }) : !1, O = M ? M == null ? void 0 : M.id : "", C = !!M, x = (((k = z == null ? void 0 : z.like) == null ? void 0 : k.length) || 0) > 0 ? (N = z == null ? void 0 : z.like) == null ? void 0 : N.map((R) => {
10455
10455
  var oe, D, ve;
10456
10456
  return {
10457
10457
  id: (oe = R == null ? void 0 : R.user) == null ? void 0 : oe.id,
10458
10458
  name: (ve = (D = R == null ? void 0 : R.user) == null ? void 0 : D.data) == null ? void 0 : ve.name
10459
10459
  };
10460
- }) : !1, $ = E == null ? void 0 : E.user, I = ($ == null ? void 0 : $.id) === (y == null ? void 0 : y.id), U = tn(r, I), A = typeof E.data.content == "string" ? (Z = E == null ? void 0 : E.data) == null ? void 0 : Z.content : (
10460
+ }) : !1, $ = E == null ? void 0 : E.user, I = ($ == null ? void 0 : $.id) === (b == null ? void 0 : b.id), U = tn(r, I), A = typeof E.data.content == "string" ? (Z = E == null ? void 0 : E.data) == null ? void 0 : Z.content : (
10461
10461
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
10462
10462
  ((H = (B = E == null ? void 0 : E.data) == null ? void 0 : B.content) == null ? void 0 : H.text) || ""
10463
10463
  );
@@ -10498,7 +10498,7 @@ const Zc = ({
10498
10498
  updateContent: (R, { body: oe }) => v({ replyId: j, content: oe })
10499
10499
  },
10500
10500
  likes: {
10501
- createLike: () => b({ replyId: j }),
10501
+ createLike: () => y({ replyId: j }),
10502
10502
  deleteLike: () => g({ replyId: j, reactionId: O })
10503
10503
  },
10504
10504
  comments: {}
@@ -10523,8 +10523,8 @@ const Zc = ({
10523
10523
  !m && /* @__PURE__ */ a.jsx(
10524
10524
  en,
10525
10525
  {
10526
- hasNextPage: d,
10527
- loadNextPage: () => u(),
10526
+ hasNextPage: u,
10527
+ loadNextPage: () => l(),
10528
10528
  icon: { icon: "arrow-down", position: "right" },
10529
10529
  messages: {
10530
10530
  button: c.formatMessage({ id: "loadMore_button" }),
@@ -10581,13 +10581,13 @@ function Yc({
10581
10581
  },
10582
10582
  user: o,
10583
10583
  ...c
10584
- }, l = Hc({ ...f, mutationFn: e }), u = Kc({ ...f, mutationFn: n }), d = Gc({ ...f, mutationFn: r }), { activity: m, ...p } = Vc({ queryKey: i, queryFn: t });
10584
+ }, d = Hc({ ...f, mutationFn: e }), l = Kc({ ...f, mutationFn: n }), u = Gc({ ...f, mutationFn: r }), { activity: m, ...p } = Vc({ queryKey: i, queryFn: t });
10585
10585
  return {
10586
10586
  activity: m,
10587
10587
  mutations: {
10588
- edit: l,
10589
- like: u,
10590
- unlike: d
10588
+ edit: d,
10589
+ like: l,
10590
+ unlike: u
10591
10591
  },
10592
10592
  user: o,
10593
10593
  ...p
@@ -10640,32 +10640,32 @@ const Vl = ({
10640
10640
  }
10641
10641
  }) => {
10642
10642
  var M, O, C, T, x, $, I, U, A, W;
10643
- const l = G(), u = Ce(Oe), {
10644
- activity: d,
10643
+ const d = G(), l = Ce(Oe), {
10644
+ activity: u,
10645
10645
  error: m,
10646
10646
  isLoading: p,
10647
- mutations: { edit: v, like: b, unlike: _ }
10647
+ mutations: { edit: v, like: y, unlike: _ }
10648
10648
  } = Yc({
10649
10649
  queryFns: s,
10650
10650
  queryKey: [t, e, n]
10651
10651
  });
10652
10652
  if (p)
10653
10653
  return /* @__PURE__ */ a.jsx(Te, { style: { height: "400px" } });
10654
- if (m || !d)
10654
+ if (m || !u)
10655
10655
  return /* @__PURE__ */ a.jsx(
10656
10656
  tt,
10657
10657
  {
10658
10658
  variant: "error",
10659
- text: l.formatMessage({ id: "activitySection_notFoundError" })
10659
+ text: d.formatMessage({ id: "activitySection_notFoundError" })
10660
10660
  }
10661
10661
  );
10662
- const { own_reactions: g, latest_reactions: y } = d, E = (((M = y == null ? void 0 : y.like) == null ? void 0 : M.length) || 0) > 0, j = (((O = g == null ? void 0 : g.like) == null ? void 0 : O.length) || 0) > 0, w = j ? g == null ? void 0 : g.like[0].id : "", z = E ? (C = y == null ? void 0 : y.like) == null ? void 0 : C.map((J) => {
10662
+ const { own_reactions: g, latest_reactions: b } = u, E = (((M = b == null ? void 0 : b.like) == null ? void 0 : M.length) || 0) > 0, j = (((O = g == null ? void 0 : g.like) == null ? void 0 : O.length) || 0) > 0, w = j ? g == null ? void 0 : g.like[0].id : "", z = E ? (C = b == null ? void 0 : b.like) == null ? void 0 : C.map((J) => {
10663
10663
  var k, N, Z;
10664
10664
  return {
10665
10665
  id: (k = J == null ? void 0 : J.user) == null ? void 0 : k.id,
10666
10666
  name: (Z = (N = J == null ? void 0 : J.user) == null ? void 0 : N.data) == null ? void 0 : Z.name
10667
10667
  };
10668
- }) : !1, F = d == null ? void 0 : d.actor, q = (F == null ? void 0 : F.id) === (u == null ? void 0 : u.id);
10668
+ }) : !1, F = u == null ? void 0 : u.actor, q = (F == null ? void 0 : F.id) === (l == null ? void 0 : l.id);
10669
10669
  return /* @__PURE__ */ a.jsxs("section", { className: "activity-section", children: [
10670
10670
  /* @__PURE__ */ a.jsx(
10671
10671
  nn,
@@ -10674,12 +10674,12 @@ const Vl = ({
10674
10674
  content: {
10675
10675
  id: n,
10676
10676
  type: "post",
10677
- body: d == null ? void 0 : d.content,
10677
+ body: u == null ? void 0 : u.content,
10678
10678
  canLike: tn(r, q),
10679
- createdAt: (d == null ? void 0 : d.time) || "",
10679
+ createdAt: (u == null ? void 0 : u.time) || "",
10680
10680
  slugs: {
10681
10681
  question: `${t}/${e}`,
10682
- answer: d == null ? void 0 : d.id
10682
+ answer: u == null ? void 0 : u.id
10683
10683
  },
10684
10684
  slug: n,
10685
10685
  author: {
@@ -10693,8 +10693,8 @@ const Vl = ({
10693
10693
  }
10694
10694
  },
10695
10695
  userLiked: j,
10696
- likes: ((A = d == null ? void 0 : d.reaction_counts) == null ? void 0 : A.like) || 0,
10697
- comments: ((W = d == null ? void 0 : d.reaction_counts) == null ? void 0 : W.reply) || 0,
10696
+ likes: ((A = u == null ? void 0 : u.reaction_counts) == null ? void 0 : A.like) || 0,
10697
+ comments: ((W = u == null ? void 0 : u.reaction_counts) == null ? void 0 : W.reply) || 0,
10698
10698
  peopleWhoLiked: z
10699
10699
  },
10700
10700
  originalAuthorId: F == null ? void 0 : F.id,
@@ -10707,7 +10707,7 @@ const Vl = ({
10707
10707
  updateContent: (J, { body: k }) => v({ content: k })
10708
10708
  },
10709
10709
  likes: {
10710
- createLike: () => b({ activityId: n }),
10710
+ createLike: () => y({ activityId: n }),
10711
10711
  deleteLike: () => _({ activityId: n, reactionId: w })
10712
10712
  },
10713
10713
  comments: {