@apolitical/component-library 2.3.0-beta.3 → 2.3.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.mjs CHANGED
@@ -105,14 +105,14 @@ function Ri() {
105
105
  return at;
106
106
  yr = 1;
107
107
  var t = Y, e = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
108
- function o(c, f, u) {
109
- var l, d = {}, m = null, p = null;
110
- u !== void 0 && (m = "" + u), f.key !== void 0 && (m = "" + f.key), f.ref !== void 0 && (p = f.ref);
111
- for (l in f)
112
- r.call(f, l) && !s.hasOwnProperty(l) && (d[l] = f[l]);
108
+ function o(c, f, l) {
109
+ var u, d = {}, m = null, p = null;
110
+ l !== void 0 && (m = "" + l), f.key !== void 0 && (m = "" + f.key), f.ref !== void 0 && (p = f.ref);
111
+ for (u in f)
112
+ r.call(f, u) && !s.hasOwnProperty(u) && (d[u] = f[u]);
113
113
  if (c && c.defaultProps)
114
- for (l in f = c.defaultProps, f)
115
- d[l] === void 0 && (d[l] = f[l]);
114
+ for (u in f = c.defaultProps, f)
115
+ d[u] === void 0 && (d[u] = f[u]);
116
116
  return { $$typeof: e, type: c, key: m, ref: p, props: d, _owner: i.current };
117
117
  }
118
118
  return at.Fragment = n, at.jsx = o, at.jsxs = o, at;
@@ -130,7 +130,7 @@ var it = {};
130
130
  var _r;
131
131
  function Fi() {
132
132
  return _r || (_r = 1, process.env.NODE_ENV !== "production" && function() {
133
- var t = Y, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), c = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), g = Symbol.iterator, y = "@@iterator";
133
+ var t = Y, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), c = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), g = Symbol.iterator, y = "@@iterator";
134
134
  function _(h) {
135
135
  if (h === null || typeof h != "object")
136
136
  return null;
@@ -158,7 +158,7 @@ function Fi() {
158
158
  var T = !1, w = !1, D = !1, R = !1, W = !1, M;
159
159
  M = Symbol.for("react.module.reference");
160
160
  function O(h) {
161
- return !!(typeof h == "string" || typeof h == "function" || h === r || h === s || W || h === i || h === u || h === l || R || h === p || T || w || D || typeof h == "object" && h !== null && (h.$$typeof === m || h.$$typeof === d || h.$$typeof === o || h.$$typeof === c || h.$$typeof === f || // This needs to include all possible module reference object
161
+ return !!(typeof h == "string" || typeof h == "function" || h === r || h === s || W || h === i || h === l || h === u || R || h === p || T || w || D || typeof h == "object" && h !== null && (h.$$typeof === m || h.$$typeof === d || h.$$typeof === o || h.$$typeof === c || h.$$typeof === f || // This needs to include all possible module reference object
162
162
  // types supported by any Flight configuration anywhere since
163
163
  // we don't know which Flight build this will end up being used
164
164
  // with.
@@ -190,9 +190,9 @@ function Fi() {
190
190
  return "Profiler";
191
191
  case i:
192
192
  return "StrictMode";
193
- case u:
194
- return "Suspense";
195
193
  case l:
194
+ return "Suspense";
195
+ case u:
196
196
  return "SuspenseList";
197
197
  }
198
198
  if (typeof h == "object")
@@ -386,9 +386,9 @@ function Fi() {
386
386
  if (typeof h == "string")
387
387
  return X(h);
388
388
  switch (h) {
389
- case u:
390
- return X("Suspense");
391
389
  case l:
390
+ return X("Suspense");
391
+ case u:
392
392
  return X("SuspenseList");
393
393
  }
394
394
  if (typeof h == "object")
@@ -731,8 +731,8 @@ const Oi = () => {
731
731
  }, e);
732
732
  };
733
733
  function Ai(t, e, n) {
734
- var r = this, i = pe(null), s = pe(0), o = pe(null), c = pe([]), f = pe(), u = pe(), l = pe(t), d = pe(!0);
735
- l.current = t;
734
+ var r = this, i = pe(null), s = pe(0), o = pe(null), c = pe([]), f = pe(), l = pe(), u = pe(t), d = pe(!0);
735
+ u.current = t;
736
736
  var m = typeof window < "u", p = !e && e !== 0 && m;
737
737
  if (typeof t != "function")
738
738
  throw new TypeError("Expected a function");
@@ -746,7 +746,7 @@ function Ai(t, e, n) {
746
746
  var j = bt(function() {
747
747
  var T = function(O) {
748
748
  var C = c.current, E = f.current;
749
- return c.current = f.current = null, s.current = O, u.current = l.current.apply(E, C);
749
+ return c.current = f.current = null, s.current = O, l.current = u.current.apply(E, C);
750
750
  }, w = function(O, C) {
751
751
  p && cancelAnimationFrame(o.current), o.current = p ? requestAnimationFrame(O) : setTimeout(O, C);
752
752
  }, D = function(O) {
@@ -755,7 +755,7 @@ function Ai(t, e, n) {
755
755
  var C = O - i.current;
756
756
  return !i.current || C >= e || C < 0 || _ && O - s.current >= b;
757
757
  }, R = function(O) {
758
- return o.current = null, y && c.current ? T(O) : (c.current = f.current = null, u.current);
758
+ return o.current = null, y && c.current ? T(O) : (c.current = f.current = null, l.current);
759
759
  }, W = function O() {
760
760
  var C = Date.now();
761
761
  if (D(C))
@@ -769,11 +769,11 @@ function Ai(t, e, n) {
769
769
  var O = Date.now(), C = D(O);
770
770
  if (c.current = [].slice.call(arguments), f.current = r, i.current = O, C) {
771
771
  if (!o.current && d.current)
772
- return s.current = i.current, w(W, e), g ? T(i.current) : u.current;
772
+ return s.current = i.current, w(W, e), g ? T(i.current) : l.current;
773
773
  if (_)
774
774
  return w(W, e), T(i.current);
775
775
  }
776
- return o.current || w(W, e), u.current;
776
+ return o.current || w(W, e), l.current;
777
777
  }
778
778
  };
779
779
  return M.cancel = function() {
@@ -781,7 +781,7 @@ function Ai(t, e, n) {
781
781
  }, M.isPending = function() {
782
782
  return !!o.current;
783
783
  }, M.flush = function() {
784
- return o.current ? R(Date.now()) : u.current;
784
+ return o.current ? R(Date.now()) : l.current;
785
785
  }, M;
786
786
  }, [g, _, e, b, y, p, m, v]);
787
787
  return j;
@@ -796,18 +796,18 @@ const yt = (t = !0, e = !1, n = "window") => {
796
796
  return;
797
797
  const [r, i] = Y.useState(0) || [!1, () => {
798
798
  }];
799
- ae(() => (c(), window.addEventListener("resize", u), window.addEventListener("hiddenSectionVisible", f), () => {
800
- clearTimeout(un), u.flush(), window.removeEventListener("resize", u), window.removeEventListener("hiddenSectionVisible", f);
799
+ ae(() => (c(), window.addEventListener("resize", l), window.addEventListener("hiddenSectionVisible", f), () => {
800
+ clearTimeout(un), l.flush(), window.removeEventListener("resize", l), window.removeEventListener("hiddenSectionVisible", f);
801
801
  }), n === "window" ? [] : [n]);
802
802
  const o = () => {
803
803
  if (n)
804
804
  return n === "window" ? window.innerWidth : n.offsetWidth;
805
805
  }, c = () => {
806
806
  i(o());
807
- }, f = ({ detail: l }) => {
808
- const { id: d } = l;
807
+ }, f = ({ detail: u }) => {
808
+ const { id: d } = u;
809
809
  n === "window" || !n.closest(`#${d}`) || o() === r || c();
810
- }, u = la(
810
+ }, l = la(
811
811
  () => {
812
812
  o() !== r && (e && (clearTimeout(un), document.body.classList.add("is-resizing"), un = setTimeout(() => {
813
813
  document.body.classList.remove("is-resizing");
@@ -837,17 +837,17 @@ const yt = (t = !0, e = !1, n = "window") => {
837
837
  scrollUp: !1
838
838
  }) || [!1, () => {
839
839
  }];
840
- ae(() => (f(), window.addEventListener("scroll", u), () => {
841
- u.flush(), window.removeEventListener("scroll", u);
840
+ ae(() => (f(), window.addEventListener("scroll", l), () => {
841
+ l.flush(), window.removeEventListener("scroll", l);
842
842
  }), []);
843
843
  const f = () => {
844
- const l = window.scrollY, d = i.current, m = l - d, p = m > 0 ? "down" : "up";
845
- if (s({ current: l, past: d }), p === "down") {
846
- l >= t + e.down && !o.scrollDown && (!o.scrollUp || m > e.up) && (n(), c({ scrollUp: !1, scrollDown: !0 }));
844
+ const u = window.scrollY, d = i.current, m = u - d, p = m > 0 ? "down" : "up";
845
+ if (s({ current: u, past: d }), p === "down") {
846
+ u >= t + e.down && !o.scrollDown && (!o.scrollUp || m > e.up) && (n(), c({ scrollUp: !1, scrollDown: !0 }));
847
847
  return;
848
848
  }
849
849
  Math.abs(m) >= e.up && !o.scrollUp && (r(), c({ scrollUp: !0, scrollDown: !1 }));
850
- }, u = la(() => {
850
+ }, l = la(() => {
851
851
  f();
852
852
  }, 250);
853
853
  return i;
@@ -1197,6 +1197,8 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1197
1197
  timeToComplete_hours_short: "{time}h",
1198
1198
  timeToComplete_minutes: "{time, plural, =0 {} one {1 minute} other {# minutes}}",
1199
1199
  timeToComplete_minutes_short: "{time}m",
1200
+ timeToComplete_range: "{early} - {late}",
1201
+ timeToComplete_range_aria: "between {early} and {late}",
1200
1202
  tooltip_loading: "Loading...",
1201
1203
  return_to_nav_button: "Back to top",
1202
1204
  /* Layout */
@@ -1418,8 +1420,8 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1418
1420
  onClick: o = !1,
1419
1421
  className: c = "",
1420
1422
  disabled: f = !1,
1421
- screenreaderText: u = !1,
1422
- children: l = !1,
1423
+ screenreaderText: l = !1,
1424
+ children: u = !1,
1423
1425
  ...d
1424
1426
  }) => {
1425
1427
  const p = yt(typeof e == "object");
@@ -1432,7 +1434,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1432
1434
  const y = {
1433
1435
  ...d,
1434
1436
  className: S(t, c, g, {
1435
- "no-text": !l,
1437
+ "no-text": !u,
1436
1438
  disabled: f,
1437
1439
  button: i
1438
1440
  }),
@@ -1444,7 +1446,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1444
1446
  return i && (s = "a", y.href = i), Y.createElement(
1445
1447
  s,
1446
1448
  y,
1447
- l || (u ? /* @__PURE__ */ a.jsx(be, { showOnFocus: !1, children: u }) : null)
1449
+ u || (l ? /* @__PURE__ */ a.jsx(be, { showOnFocus: !1, children: l }) : null)
1448
1450
  );
1449
1451
  }, _t = ({ buttons: t, className: e = "", ...n }) => {
1450
1452
  const r = t.length > 1 ? "ul" : "p", i = t.map((s, o) => r === "p" ? /* @__PURE__ */ a.jsx(ie, { ...s }, o) : /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(ie, { ...s }) }, o));
@@ -1584,8 +1586,8 @@ const xt = ({ image: t, className: e, testId: n }) => {
1584
1586
  query: o,
1585
1587
  url: c,
1586
1588
  width: f,
1587
- loading: u,
1588
- decoding: l,
1589
+ loading: l,
1590
+ decoding: u,
1589
1591
  fetchPriority: d
1590
1592
  } = t, { range: m, sizes: p } = Xi(t), g = dn({ format: "avif", query: o, range: m, url: c }), y = dn({ format: "webp", query: o, range: m, url: c }), _ = dn({ format: "", query: o, range: m, url: c });
1591
1593
  return /* @__PURE__ */ a.jsxs("picture", { className: e, children: [
@@ -1606,8 +1608,8 @@ const xt = ({ image: t, className: e, testId: n }) => {
1606
1608
  sizes: p,
1607
1609
  src: c,
1608
1610
  alt: r,
1609
- loading: u || "lazy",
1610
- decoding: l || "async",
1611
+ loading: l || "lazy",
1612
+ decoding: u || "async",
1611
1613
  fetchpriority: d || "auto",
1612
1614
  width: f,
1613
1615
  height: i,
@@ -1802,8 +1804,8 @@ const nt = ({
1802
1804
  const {
1803
1805
  breakpoints: c,
1804
1806
  text: f = "",
1805
- component: u,
1806
- ...l
1807
+ component: l,
1808
+ ...u
1807
1809
  } = n;
1808
1810
  return /* @__PURE__ */ a.jsx(
1809
1811
  Fe,
@@ -1812,10 +1814,10 @@ const nt = ({
1812
1814
  className: S("empty-state-box", t, r),
1813
1815
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1814
1816
  e && typeof e == "string" ? /* @__PURE__ */ a.jsx(Re, { options: { forceBlock: !0 }, children: e }) : e,
1815
- i && typeof n == "object" && (u || /* @__PURE__ */ a.jsx(
1817
+ i && typeof n == "object" && (l || /* @__PURE__ */ a.jsx(
1816
1818
  ie,
1817
1819
  {
1818
- ...l,
1820
+ ...u,
1819
1821
  variant: n.variant ? n.variant : "secondary",
1820
1822
  children: f
1821
1823
  }
@@ -1853,7 +1855,7 @@ const Sl = ({
1853
1855
  text: r,
1854
1856
  children: i
1855
1857
  }) => {
1856
- const s = K(), o = pe(null), [c, f] = te(""), [u, l] = te("closed");
1858
+ const s = K(), o = pe(null), [c, f] = te(""), [l, u] = te("closed");
1857
1859
  ae(() => {
1858
1860
  const p = o.current;
1859
1861
  if (p)
@@ -1870,23 +1872,23 @@ const Sl = ({
1870
1872
  `)
1871
1873
  );
1872
1874
  }, [r]), ae(() => {
1873
- u === "ready-to-close" && l("closing");
1874
- }, [u]);
1875
+ l === "ready-to-close" && u("closing");
1876
+ }, [l]);
1875
1877
  const d = ({ propertyName: p }) => {
1876
- p === "max-height" && l((g) => g === "opening" ? "open" : g === "closing" ? "closed" : g);
1878
+ p === "max-height" && u((g) => g === "opening" ? "open" : g === "closing" ? "closed" : g);
1877
1879
  };
1878
1880
  if (!r)
1879
1881
  return null;
1880
- const m = ["opening", "open"].includes(u);
1882
+ const m = ["opening", "open"].includes(l);
1881
1883
  return /* @__PURE__ */ a.jsxs(
1882
1884
  Fe,
1883
1885
  {
1884
1886
  variant: "subtle",
1885
1887
  className: S("hide-show-text-box", t),
1886
1888
  children: [
1887
- /* @__PURE__ */ a.jsxs("div", { ref: o, className: S("content", u), children: [
1888
- /* @__PURE__ */ a.jsx(Re, { options: { forceBlock: !0 }, children: u === "closed" ? c : r }),
1889
- u !== "closed" && i
1889
+ /* @__PURE__ */ a.jsxs("div", { ref: o, className: S("content", l), children: [
1890
+ /* @__PURE__ */ a.jsx(Re, { options: { forceBlock: !0 }, children: l === "closed" ? c : r }),
1891
+ l !== "closed" && i
1890
1892
  ] }),
1891
1893
  /* @__PURE__ */ a.jsx("p", { className: "cta", children: /* @__PURE__ */ a.jsx(
1892
1894
  ie,
@@ -1896,7 +1898,7 @@ const Sl = ({
1896
1898
  styling: { muted: !0 },
1897
1899
  className: S({ "rotate-180": m }),
1898
1900
  onClick: () => {
1899
- l(m ? "ready-to-close" : "opening");
1901
+ u(m ? "ready-to-close" : "opening");
1900
1902
  },
1901
1903
  children: m ? n || s.formatMessage({ id: "hideShowTextBox_hide" }) : e || s.formatMessage({ id: "hideShowTextBox_show" })
1902
1904
  }
@@ -1920,14 +1922,14 @@ const Cl = ({
1920
1922
  "has-zebra-stripes": c,
1921
1923
  [e]: t !== "dl"
1922
1924
  }),
1923
- children: r.map((f, u) => {
1924
- const l = { wrapper: Y.Fragment, forceInline: !0 }, d = {
1925
+ children: r.map((f, l) => {
1926
+ const u = { wrapper: Y.Fragment, forceInline: !0 }, d = {
1925
1927
  "--icon": `url(${ze}icons/${f.icon}.svg)`
1926
1928
  };
1927
1929
  return t === "dl" ? /* @__PURE__ */ a.jsxs(Y.Fragment, { children: [
1928
- /* @__PURE__ */ a.jsx("dt", { style: d, children: /* @__PURE__ */ a.jsx(Re, { options: l, children: f.dt || "" }) }, `dt-${u}`),
1929
- /* @__PURE__ */ a.jsx("dd", { children: /* @__PURE__ */ a.jsx(Re, { options: l, children: f.text }) }, `dd-${u}`)
1930
- ] }, `dl-${u}`) : /* @__PURE__ */ a.jsx("li", { style: d, children: /* @__PURE__ */ a.jsx(Re, { options: l, children: f.text }) }, u);
1930
+ /* @__PURE__ */ a.jsx("dt", { style: d, children: /* @__PURE__ */ a.jsx(Re, { options: u, children: f.dt || "" }) }, `dt-${l}`),
1931
+ /* @__PURE__ */ a.jsx("dd", { children: typeof f.text == "string" ? /* @__PURE__ */ a.jsx(Re, { options: u, children: f.text }) : f.text }, `dd-${l}`)
1932
+ ] }, `dl-${l}`) : /* @__PURE__ */ a.jsx("li", { style: d, children: typeof f.text == "string" ? /* @__PURE__ */ a.jsx(Re, { options: u, children: f.text }) : f.text }, l);
1931
1933
  })
1932
1934
  });
1933
1935
  }, ye = () => Y.Fragment, is = ({ children: t }) => /* @__PURE__ */ a.jsx(Fe, { variant: "secondary", children: t }), ss = ["span", "strong", "h1", "h2", "h3", "h4", "h5", "h6", "p"], os = ({ children: t }) => {
@@ -2133,14 +2135,14 @@ const Nl = ({
2133
2135
  if (t.length)
2134
2136
  return;
2135
2137
  let o = "";
2136
- Array(6).fill(0).forEach((u, l) => {
2137
- o += `${l > 0 ? ", " : ""}${e} h${l + 1}`;
2138
+ Array(6).fill(0).forEach((l, u) => {
2139
+ o += `${u > 0 ? ", " : ""}${e} h${u + 1}`;
2138
2140
  });
2139
2141
  const f = Array.from(document.querySelectorAll(o)).filter(
2140
- (u) => u.id
2141
- ).map((u) => ({
2142
- id: u.id,
2143
- text: u.textContent || ""
2142
+ (l) => l.id
2143
+ ).map((l) => ({
2144
+ id: l.id,
2145
+ text: l.textContent || ""
2144
2146
  }));
2145
2147
  s(f);
2146
2148
  }, []), i && i.length > 0 && /* @__PURE__ */ a.jsxs(
@@ -2155,19 +2157,41 @@ const Nl = ({
2155
2157
  }
2156
2158
  );
2157
2159
  };
2158
- const Gn = ({ time: t, prependedText: e, appendedText: n, className: r = "" }) => {
2159
- const i = K(), s = "timeToComplete_";
2160
+ const Gn = ({
2161
+ time: t,
2162
+ rangeTime: e,
2163
+ prependedText: n,
2164
+ appendedText: r,
2165
+ className: i = ""
2166
+ }) => {
2167
+ const s = K(), o = "timeToComplete_";
2160
2168
  if (!t || typeof t != "number")
2161
2169
  return null;
2162
- const o = t / 60, c = Math.floor(o), f = (o - c) * 60, u = Math.round(f);
2163
- let l = `${i.formatMessage(
2164
- { id: `${s}hours` },
2165
- { time: c }
2166
- )}${c > 0 && u > 0 ? ", " : ""}${i.formatMessage(
2167
- { id: `${s}minutes` },
2168
- { time: u }
2169
- )}`, d = `${c > 0 ? `${i.formatMessage({ id: `${s}hours_short` }, { time: c })} ` : ""}${u > 0 ? i.formatMessage({ id: `${s}minutes_short` }, { time: u }) : ""}`;
2170
- return e && (l = `${e} ${l}`, d = `${e} ${d}`), n && (l = `${l} ${n}`, d = `${d} ${n}`), /* @__PURE__ */ a.jsx("span", { className: S("time-to-complete", r), "aria-label": l, children: d });
2170
+ const c = (u) => {
2171
+ const d = u / 60, m = Math.floor(d), p = (d - m) * 60, g = Math.round(p), y = `${s.formatMessage(
2172
+ { id: `${o}hours` },
2173
+ { time: m }
2174
+ )}${m > 0 && g > 0 ? ", " : ""}${s.formatMessage(
2175
+ { id: `${o}minutes` },
2176
+ { time: g }
2177
+ )}`;
2178
+ return { text: `${m > 0 ? `${s.formatMessage(
2179
+ { id: `${o}hours_short` },
2180
+ { time: m }
2181
+ )} ` : ""}${g > 0 ? s.formatMessage({ id: `${o}minutes_short` }, { time: g }) : ""}`, ariaText: y };
2182
+ };
2183
+ let { text: f, ariaText: l } = c(t);
2184
+ if (e) {
2185
+ const { text: u, ariaText: d } = c(t + e);
2186
+ f = s.formatMessage(
2187
+ { id: `${o}range` },
2188
+ { early: f, late: u }
2189
+ ), l = s.formatMessage(
2190
+ { id: `${o}range_aria` },
2191
+ { early: l, late: d }
2192
+ );
2193
+ }
2194
+ return n && (l = `${n} ${l}`, f = `${n} ${f}`), r && (l = `${l} ${r}`, f = `${f} ${r}`), /* @__PURE__ */ a.jsx("span", { className: S("time-to-complete", i), "aria-label": l, children: f });
2171
2195
  };
2172
2196
  let st = !1;
2173
2197
  const hs = ({ isOpen: t = !1, isLoading: e = !1, children: n }) => {
@@ -2180,7 +2204,7 @@ const hs = ({ isOpen: t = !1, isLoading: e = !1, children: n }) => {
2180
2204
  };
2181
2205
  }, []);
2182
2206
  const c = ({ propertyName: f }) => {
2183
- f === "opacity" && (st !== !1 && clearTimeout(st), o((u) => u === "opening" ? "open" : u === "closing" ? "closed" : u === "closed" ? "hidden" : u));
2207
+ f === "opacity" && (st !== !1 && clearTimeout(st), o((l) => l === "opening" ? "open" : l === "closing" ? "closed" : l === "closed" ? "hidden" : l));
2184
2208
  };
2185
2209
  return vt(() => {
2186
2210
  st !== !1 && clearTimeout(st);
@@ -2274,7 +2298,7 @@ const gs = ({ icon: t, description: e, ctaMessage: n, href: r, showEditButton: i
2274
2298
  placeholder: o,
2275
2299
  showDivider: c = !0
2276
2300
  }) => {
2277
- const [f, u] = Y.useState(!1), l = typeof r == "string" || !!n, d = () => u(!1);
2301
+ const [f, l] = Y.useState(!1), u = typeof r == "string" || !!n, d = () => l(!1);
2278
2302
  return /* @__PURE__ */ a.jsxs("section", { className: S("edit-section", e), children: [
2279
2303
  n && /* @__PURE__ */ a.jsx(
2280
2304
  en,
@@ -2294,7 +2318,7 @@ const gs = ({ icon: t, description: e, ctaMessage: n, href: r, showEditButton: i
2294
2318
  ...n == null ? void 0 : n.functions,
2295
2319
  onSuccess: async (m) => {
2296
2320
  var p, g;
2297
- (p = n == null ? void 0 : n.functions) != null && p.onSuccess && await ((g = n == null ? void 0 : n.functions) == null ? void 0 : g.onSuccess(m)), u(!1);
2321
+ (p = n == null ? void 0 : n.functions) != null && p.onSuccess && await ((g = n == null ? void 0 : n.functions) == null ? void 0 : g.onSuccess(m)), l(!1);
2298
2322
  },
2299
2323
  onCancel: d
2300
2324
  } })
@@ -2302,9 +2326,9 @@ const gs = ({ icon: t, description: e, ctaMessage: n, href: r, showEditButton: i
2302
2326
  ),
2303
2327
  /* @__PURE__ */ a.jsxs("div", { className: "edit-section-header", children: [
2304
2328
  /* @__PURE__ */ a.jsx("h2", { className: "edit-section-header-title", children: i }),
2305
- l && /* @__PURE__ */ a.jsx(ie, { href: r, variant: "tertiary", size: "small", icon: "pencil", onClick: () => ha({ href: r, setShowModal: u }), children: "Edit" })
2329
+ u && /* @__PURE__ */ a.jsx(ie, { href: r, variant: "tertiary", size: "small", icon: "pencil", onClick: () => ha({ href: r, setShowModal: l }), children: "Edit" })
2306
2330
  ] }),
2307
- t || /* @__PURE__ */ a.jsx(gs, { ...o, href: r, setShowModal: u, showEditButton: l }),
2331
+ t || /* @__PURE__ */ a.jsx(gs, { ...o, href: r, setShowModal: l, showEditButton: u }),
2308
2332
  c && /* @__PURE__ */ a.jsx(Oe, {})
2309
2333
  ] });
2310
2334
  };
@@ -2342,22 +2366,22 @@ const Fl = ({
2342
2366
  "two-col": i === 2 || i === 4,
2343
2367
  "three-col": i === 5 || i <= 10 && i % 3 === 0
2344
2368
  }),
2345
- children: e.map(({ logo: u, nameOfBusiness: l, link: d = !1, description: m = !1 }, p) => {
2346
- if (!u || !u.url)
2369
+ children: e.map(({ logo: l, nameOfBusiness: u, link: d = !1, description: m = !1 }, p) => {
2370
+ if (!l || !l.url)
2347
2371
  return null;
2348
2372
  const g = /* @__PURE__ */ a.jsx(
2349
2373
  "img",
2350
2374
  {
2351
- src: u.url,
2352
- width: u.width || "auto",
2353
- height: u.height || "auto",
2354
- alt: l
2375
+ src: l.url,
2376
+ width: l.width || "auto",
2377
+ height: l.height || "auto",
2378
+ alt: u
2355
2379
  }
2356
2380
  );
2357
2381
  return /* @__PURE__ */ a.jsxs("li", { children: [
2358
2382
  /* @__PURE__ */ a.jsx("p", { className: "img-wrapper", children: d ? /* @__PURE__ */ a.jsx("a", { href: d, target: "_blank", rel: "nofollow noreferrer noopener", children: g }) : g }),
2359
2383
  m && /* @__PURE__ */ a.jsx("small", { children: m })
2360
- ] }, window.btoa(`${u.url}_${p}`));
2384
+ ] }, window.btoa(`${l.url}_${p}`));
2361
2385
  })
2362
2386
  }
2363
2387
  )
@@ -2393,27 +2417,27 @@ const vs = [
2393
2417
  cta: o,
2394
2418
  children: c
2395
2419
  }) => {
2396
- const f = ["eyebrow", "title", "text"], u = { eyebrow: "small", title: "h1", text: "p" }, l = {};
2420
+ const f = ["eyebrow", "title", "text"], l = { eyebrow: "small", title: "h1", text: "p" }, u = {};
2397
2421
  return f.forEach((d) => {
2398
2422
  if (!e[d]) {
2399
- l[d] = !1;
2423
+ u[d] = !1;
2400
2424
  return;
2401
2425
  }
2402
2426
  if (!s[d]) {
2403
2427
  if (typeof e[d] == "object") {
2404
- l[d] = e[d];
2428
+ u[d] = e[d];
2405
2429
  const { text: m, element: p } = e[d];
2406
2430
  if (p && vs.includes(p.toLowerCase()))
2407
2431
  return;
2408
- l[d] = {
2432
+ u[d] = {
2409
2433
  text: m,
2410
- element: u[d]
2434
+ element: l[d]
2411
2435
  };
2412
2436
  return;
2413
2437
  }
2414
- l[d] = {
2438
+ u[d] = {
2415
2439
  text: e[d],
2416
- element: u[d]
2440
+ element: l[d]
2417
2441
  };
2418
2442
  }
2419
2443
  }), o && o.link && o.link[0] === "#" && (o.props || (o.props = {}), o.props.onClick = (d) => {
@@ -2425,13 +2449,13 @@ const vs = [
2425
2449
  {
2426
2450
  className: S("banner-section", r, i, t, {
2427
2451
  "has-image": n,
2428
- "has-extra-spacing": i === "normal" && l.eyebrow && l.title
2452
+ "has-extra-spacing": i === "normal" && u.eyebrow && u.title
2429
2453
  }),
2430
2454
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2431
2455
  /* @__PURE__ */ a.jsxs("div", { className: "content-wrapper", children: [
2432
2456
  f.map((d) => {
2433
- if (l[d] && typeof l[d] == "object") {
2434
- const { text: m, element: p = "" } = l[d];
2457
+ if (u[d] && typeof u[d] == "object") {
2458
+ const { text: m, element: p = "" } = u[d];
2435
2459
  return d === "text" ? /* @__PURE__ */ a.jsx(Lt, { overrideType: "text-only", className: "text", children: m }, d) : Y.createElement(p, { key: d, className: d }, m);
2436
2460
  }
2437
2461
  return null;
@@ -2600,15 +2624,15 @@ const Es = ({
2600
2624
  layout: o = "bar",
2601
2625
  size: c = "default",
2602
2626
  color: f = "default"
2603
- } = t, u = e > 75 ? 100 : e > 50 ? 75 : e > 25 ? 50 : e > 5 ? 25 : 0, l = { "--progress": `${e}%` };
2627
+ } = t, l = e > 75 ? 100 : e > 50 ? 75 : e > 25 ? 50 : e > 5 ? 25 : 0, u = { "--progress": `${e}%` };
2604
2628
  return /* @__PURE__ */ a.jsx(
2605
2629
  "span",
2606
2630
  {
2607
- className: S(`progress-bar section-${u}`, o, r, {
2631
+ className: S(`progress-bar section-${l}`, o, r, {
2608
2632
  [c]: c !== "default",
2609
2633
  [f !== "default" ? f : ""]: f !== "default"
2610
2634
  }),
2611
- style: l,
2635
+ style: u,
2612
2636
  children: Y.createElement(s ? "span" : be, {
2613
2637
  className: s ? "text" : "",
2614
2638
  children: n || i.formatMessage({ id: "progressBar" }, { number: e })
@@ -2723,9 +2747,9 @@ const Sr = 256, He = ({
2723
2747
  height: s = Sr,
2724
2748
  ...o
2725
2749
  }) => {
2726
- const [c, f] = te(!1), u = pe(null);
2750
+ const [c, f] = te(!1), l = pe(null);
2727
2751
  ae(() => {
2728
- const d = u.current;
2752
+ const d = l.current;
2729
2753
  if (!d)
2730
2754
  return;
2731
2755
  const m = d.getContext("2d");
@@ -2734,13 +2758,13 @@ const Sr = 256, He = ({
2734
2758
  const p = i, g = s;
2735
2759
  typeof window < "u" && window.devicePixelRatio && (d.width = p * window.devicePixelRatio, d.height = g * window.devicePixelRatio, m.scale(window.devicePixelRatio, window.devicePixelRatio)), m.fillStyle = Cs(n), m.fillRect(0, 0, p, g), m.font = `${p / 3}px Arial`, m.textAlign = "center", m.fillStyle = "white", m.fillText(ya(n), p / 2, g / 1.6);
2736
2760
  }, [n]);
2737
- let l = !1;
2738
- return e && e !== "" && !c && (e.includes("http") || e.includes("//")) && (l = !0), /* @__PURE__ */ a.jsx(
2761
+ let u = !1;
2762
+ return e && e !== "" && !c && (e.includes("http") || e.includes("//")) && (u = !0), /* @__PURE__ */ a.jsx(
2739
2763
  "figure",
2740
2764
  {
2741
2765
  className: S("profile-picture", t, { error: c }),
2742
2766
  ...o,
2743
- children: l ? /* @__PURE__ */ a.jsx(
2767
+ children: u ? /* @__PURE__ */ a.jsx(
2744
2768
  "img",
2745
2769
  {
2746
2770
  src: e,
@@ -2751,7 +2775,7 @@ const Sr = 256, He = ({
2751
2775
  width: i,
2752
2776
  height: s
2753
2777
  }
2754
- ) : /* @__PURE__ */ a.jsx("canvas", { ref: u })
2778
+ ) : /* @__PURE__ */ a.jsx("canvas", { ref: l })
2755
2779
  }
2756
2780
  );
2757
2781
  }, _a = (t) => t === "apolitical" ? {
@@ -2790,20 +2814,20 @@ const Jn = ({
2790
2814
  c.name || (c.name = o.formatMessage({
2791
2815
  id: `member_${typeof e == "string" ? e : "community"}`
2792
2816
  }));
2793
- const { name: f, url: u, image: l } = c, d = $s(c), m = n && n.createdAt ? Dn(n.createdAt) : !1, p = n && n.createdAt ? ma(n.createdAt) : "";
2817
+ const { name: f, url: l, image: u } = c, d = $s(c), m = n && n.createdAt ? Dn(n.createdAt) : !1, p = n && n.createdAt ? ma(n.createdAt) : "";
2794
2818
  return Y.createElement(t, {
2795
2819
  className: S("member text-medium", s),
2796
2820
  children: /* @__PURE__ */ a.jsxs(
2797
2821
  tt,
2798
2822
  {
2799
- href: u,
2823
+ href: l,
2800
2824
  gtmType: i,
2801
2825
  gtmContext: r,
2802
2826
  onClick: (g) => {
2803
2827
  g == null || g.stopPropagation();
2804
2828
  },
2805
2829
  children: [
2806
- /* @__PURE__ */ a.jsx(He, { name: f, src: l }),
2830
+ /* @__PURE__ */ a.jsx(He, { name: f, src: u }),
2807
2831
  /* @__PURE__ */ a.jsxs("p", { className: "details", children: [
2808
2832
  /* @__PURE__ */ a.jsx("strong", { children: f }),
2809
2833
  n && /* @__PURE__ */ a.jsxs("span", { className: "additional-content", children: [
@@ -2834,11 +2858,11 @@ const Cr = {
2834
2858
  },
2835
2859
  cutoff: c = 2,
2836
2860
  className: f = "",
2837
- ...u
2861
+ ...l
2838
2862
  }) => {
2839
- const l = K();
2863
+ const u = K();
2840
2864
  return !n || n.length === 0 ? null : Y.createElement(t, {
2841
- ...u,
2865
+ ...l,
2842
2866
  className: S("contributors", f, i, { "has-gap": s }),
2843
2867
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2844
2868
  /* @__PURE__ */ a.jsx("ul", { children: n.map((d, m) => {
@@ -2871,7 +2895,7 @@ const Cr = {
2871
2895
  }
2872
2896
  return p ? /* @__PURE__ */ a.jsx("li", { className: S("contributor", g), children: p }, m) : null;
2873
2897
  }) }),
2874
- r && /* @__PURE__ */ a.jsx("span", { className: "label", children: typeof r == "string" ? r : n.length === 1 ? typeof n[0] == "string" ? l.formatMessage({ id: `member_${n[0]}` }) : Je(n[0].name || "", 20) : null })
2898
+ 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]}` }) : Je(n[0].name || "", 20) : null })
2875
2899
  ] })
2876
2900
  });
2877
2901
  };
@@ -2887,7 +2911,7 @@ const Tt = "emailHelperTextBox_", Ns = ({
2887
2911
  link: {},
2888
2912
  mail: {},
2889
2913
  error: ""
2890
- }), [c, f] = te(!1), u = na(
2914
+ }), [c, f] = te(!1), l = na(
2891
2915
  (p) => {
2892
2916
  p.preventDefault(), p.stopPropagation();
2893
2917
  const g = (y) => {
@@ -2898,7 +2922,7 @@ const Tt = "emailHelperTextBox_", Ns = ({
2898
2922
  "data-gtm-event-context": "VerifyEmailBox",
2899
2923
  "data-gtm-event-type": "SendEmailClick",
2900
2924
  className: "gtm-trackable",
2901
- onClick: (_) => u(_),
2925
+ onClick: (_) => l(_),
2902
2926
  href: "#",
2903
2927
  "data-testid": "send-verify-email-click"
2904
2928
  },
@@ -2954,7 +2978,7 @@ const Tt = "emailHelperTextBox_", Ns = ({
2954
2978
  "data-gtm-event-context": "VerifyEmailBox",
2955
2979
  "data-gtm-event-type": "SendEmailClick",
2956
2980
  className: "gtm-trackable",
2957
- onClick: (v) => u(v),
2981
+ onClick: (v) => l(v),
2958
2982
  "data-testid": "send-verify-email-click"
2959
2983
  };
2960
2984
  break;
@@ -2983,9 +3007,9 @@ const Tt = "emailHelperTextBox_", Ns = ({
2983
3007
  /* eslint-disable react-hooks/exhaustive-deps */
2984
3008
  [t]
2985
3009
  );
2986
- const l = {};
3010
+ const u = {};
2987
3011
  return ["link", "mail"].forEach((p) => {
2988
- l[p] = Object.keys(s[p]).length ? (g) => /* @__PURE__ */ a.jsx("a", { ...s[p], children: g }) : (g) => g;
3012
+ u[p] = Object.keys(s[p]).length ? (g) => /* @__PURE__ */ a.jsx("a", { ...s[p], children: g }) : (g) => g;
2989
3013
  }), /* @__PURE__ */ a.jsx(
2990
3014
  as,
2991
3015
  {
@@ -3001,7 +3025,7 @@ const Tt = "emailHelperTextBox_", Ns = ({
3001
3025
  i.formatMessage(
3002
3026
  { id: `${s.path}_text` },
3003
3027
  {
3004
- ...l,
3028
+ ...u,
3005
3029
  strong: (p) => /* @__PURE__ */ a.jsx("strong", { children: p }),
3006
3030
  em: (p) => /* @__PURE__ */ a.jsx("em", { children: p }),
3007
3031
  br: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
@@ -3025,12 +3049,12 @@ const Tt = "emailHelperTextBox_", Ns = ({
3025
3049
  placeholder: o,
3026
3050
  type: c = "text",
3027
3051
  value: f,
3028
- ...u
3052
+ ...l
3029
3053
  }) => {
3030
- const l = pe(), d = r || l;
3054
+ const u = pe(), d = r || u;
3031
3055
  return Y.createElement(e, {
3032
3056
  ref: d,
3033
- ...u,
3057
+ ...l,
3034
3058
  type: c,
3035
3059
  id: n,
3036
3060
  name: s,
@@ -3066,7 +3090,7 @@ const Ke = {
3066
3090
  input: t,
3067
3091
  displayInput: t,
3068
3092
  debouncedInput: t
3069
- }), [{ predictions: u, activePredictionIndex: l, isPredictionSelected: d }, m] = te({
3093
+ }), [{ predictions: l, activePredictionIndex: u, isPredictionSelected: d }, m] = te({
3070
3094
  predictions: [],
3071
3095
  activePredictionIndex: -1,
3072
3096
  isPredictionSelected: !!t
@@ -3088,10 +3112,10 @@ const Ke = {
3088
3112
  }
3089
3113
  })() : m((v) => ({ ...v, predictions: [] }));
3090
3114
  }, [c, d]), ae(() => {
3091
- l >= 0 && u[l] && f((v) => ({ ...v, displayInput: u[l].description }));
3092
- }, [l, u]);
3115
+ u >= 0 && l[u] && f((v) => ({ ...v, displayInput: l[u].description }));
3116
+ }, [u, l]);
3093
3117
  const g = (v) => {
3094
- [Ke.DOWN, Ke.UP, Ke.ENTER].includes(v.key) && (v.preventDefault(), v.key === Ke.DOWN && l < u.length - 1 ? m((b) => ({ ...b, activePredictionIndex: l + 1 })) : v.key === Ke.UP && l > 0 ? m((b) => ({ ...b, activePredictionIndex: l - 1 })) : v.key === Ke.ENTER && l > -1 && (r(u[l].description), f((b) => ({ ...b, input: u[l].description })), m((b) => ({ ...b, predictions: [], isPredictionSelected: !0 }))));
3118
+ [Ke.DOWN, Ke.UP, Ke.ENTER].includes(v.key) && (v.preventDefault(), v.key === Ke.DOWN && u < l.length - 1 ? m((b) => ({ ...b, activePredictionIndex: u + 1 })) : v.key === Ke.UP && u > 0 ? m((b) => ({ ...b, activePredictionIndex: u - 1 })) : v.key === Ke.ENTER && u > -1 && (r(l[u].description), f((b) => ({ ...b, input: l[u].description })), m((b) => ({ ...b, predictions: [], isPredictionSelected: !0 }))));
3095
3119
  }, y = (v) => {
3096
3120
  r(v.target.value), f((b) => ({ ...b, input: v.target.value, displayInput: v.target.value })), m((b) => ({ ...b, activePredictionIndex: -1, isPredictionSelected: !1 }));
3097
3121
  }, _ = (v) => {
@@ -3108,12 +3132,12 @@ const Ke = {
3108
3132
  placeholder: e
3109
3133
  }
3110
3134
  ),
3111
- /* @__PURE__ */ a.jsx("ul", { className: "predictions-list", children: u.map((v, b) => /* @__PURE__ */ a.jsx(
3135
+ /* @__PURE__ */ a.jsx("ul", { className: "predictions-list", children: l.map((v, b) => /* @__PURE__ */ a.jsx(
3112
3136
  "li",
3113
3137
  {
3114
3138
  onClick: () => _(v),
3115
3139
  onMouseEnter: () => m((j) => ({ ...j, activePredictionIndex: b })),
3116
- className: S("predictions-list-item", { active: b === l }),
3140
+ className: S("predictions-list-item", { active: b === u }),
3117
3141
  children: v.description
3118
3142
  },
3119
3143
  b
@@ -3131,12 +3155,12 @@ const wa = ({
3131
3155
  intlPath: o = !1,
3132
3156
  label: c,
3133
3157
  shownValue: f = !0,
3134
- type: u = "checkbox",
3135
- value: l,
3158
+ type: l = "checkbox",
3159
+ value: u,
3136
3160
  ...d
3137
3161
  }) => {
3138
3162
  const m = K(), { onChange: p, ...g } = r, y = () => {
3139
- e || p(l ? null : f);
3163
+ e || p(u ? null : f);
3140
3164
  }, _ = /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3141
3165
  /* @__PURE__ */ a.jsx(
3142
3166
  "input",
@@ -3144,9 +3168,9 @@ const wa = ({
3144
3168
  ref: s,
3145
3169
  id: i,
3146
3170
  name: i,
3147
- type: u,
3171
+ type: l,
3148
3172
  value: f,
3149
- checked: l,
3173
+ checked: u,
3150
3174
  onKeyDown: (v) => {
3151
3175
  (v.key === "Enter" || v.code === "Space") && (v.preventDefault(), v.stopPropagation(), y());
3152
3176
  },
@@ -3195,9 +3219,9 @@ const Fs = ({
3195
3219
  placeholder: o,
3196
3220
  multiSelect: c,
3197
3221
  multiSelectOptions: f,
3198
- id: u
3222
+ id: l
3199
3223
  }) => {
3200
- const l = K(), [d, m] = te(!1), p = r || n, g = Array.isArray(p) ? [...p] : p ? [p] : [], [y, _] = te(g);
3224
+ const u = K(), [d, m] = te(!1), p = r || n, g = Array.isArray(p) ? [...p] : p ? [p] : [], [y, _] = te(g);
3201
3225
  let v;
3202
3226
  Array.isArray(y) && y.length === 1 && typeof y[0] == "string" ? v = e && y ? e.find((R) => R.id === y[0]) : e ? e[0] : { id: "", label: "" } : Array.isArray(y) && y.length === 1 && typeof y[0] != "string" ? v = y[0] : v = { id: "", label: "" }, ae(() => {
3203
3227
  _(g);
@@ -3266,7 +3290,7 @@ const Fs = ({
3266
3290
  size: "small",
3267
3291
  onClick: () => D("all"),
3268
3292
  className: "gtm-trackable",
3269
- children: l.formatMessage({ id: "dropdown_menu_multiselect_all" })
3293
+ children: u.formatMessage({ id: "dropdown_menu_multiselect_all" })
3270
3294
  }
3271
3295
  ) }),
3272
3296
  /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
@@ -3276,7 +3300,7 @@ const Fs = ({
3276
3300
  size: "small",
3277
3301
  onClick: () => D("none"),
3278
3302
  className: "gtm-trackable",
3279
- children: l.formatMessage({ id: "dropdown_menu_multiselect_none" })
3303
+ children: u.formatMessage({ id: "dropdown_menu_multiselect_none" })
3280
3304
  }
3281
3305
  ) })
3282
3306
  ] })
@@ -3314,13 +3338,13 @@ const Fs = ({
3314
3338
  j && j(y), document.dispatchEvent(
3315
3339
  new CustomEvent("dropdownMultiSelectSubmit", {
3316
3340
  detail: {
3317
- id: u || "dropdown-multi-select",
3341
+ id: l || "dropdown-multi-select",
3318
3342
  value: y
3319
3343
  }
3320
3344
  })
3321
3345
  ), m(!1);
3322
3346
  },
3323
- children: l.formatMessage({ id: "form_submit" })
3347
+ children: u.formatMessage({ id: "form_submit" })
3324
3348
  }
3325
3349
  ) })
3326
3350
  ]
@@ -3339,11 +3363,11 @@ const Os = ({
3339
3363
  name: o,
3340
3364
  options: c,
3341
3365
  required: f,
3342
- type: u = "checkboxes",
3343
- value: l,
3366
+ type: l = "checkboxes",
3367
+ value: u,
3344
3368
  ...d
3345
3369
  }) => {
3346
- const m = K(), p = s ? l : [], g = l;
3370
+ const m = K(), p = s ? u : [], g = u;
3347
3371
  return /* @__PURE__ */ a.jsx(
3348
3372
  "ul",
3349
3373
  {
@@ -3373,7 +3397,7 @@ const Os = ({
3373
3397
  {
3374
3398
  element: "li",
3375
3399
  id: j,
3376
- type: u === "checkboxes" ? "checkbox" : "radio",
3400
+ type: l === "checkboxes" ? "checkbox" : "radio",
3377
3401
  shownValue: v,
3378
3402
  value: s ? p == null ? void 0 : p.includes(v) : g === v,
3379
3403
  functions: {
@@ -3399,9 +3423,9 @@ const As = ({
3399
3423
  gtm: { context: n } = { context: void 0 },
3400
3424
  ...r
3401
3425
  }) => {
3402
- const i = K(), s = pe(), o = t || s, [c, f] = te(!1), [u, l] = te(e), d = () => {
3426
+ const i = K(), s = pe(), o = t || s, [c, f] = te(!1), [l, u] = te(e), d = () => {
3403
3427
  var m;
3404
- f(!c), l(c ? "password" : "text"), (m = o.current) == null || m.focus();
3428
+ f(!c), u(c ? "password" : "text"), (m = o.current) == null || m.focus();
3405
3429
  };
3406
3430
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3407
3431
  /* @__PURE__ */ a.jsx(
@@ -3422,7 +3446,7 @@ const As = ({
3422
3446
  })
3423
3447
  }
3424
3448
  ),
3425
- /* @__PURE__ */ a.jsx(mt, { inputRef: o, type: u, ...r })
3449
+ /* @__PURE__ */ a.jsx(mt, { inputRef: o, type: l, ...r })
3426
3450
  ] });
3427
3451
  };
3428
3452
  const Ge = {
@@ -3445,13 +3469,13 @@ const Ge = {
3445
3469
  showRequiredLabels: o = !0,
3446
3470
  type: c,
3447
3471
  validation: f,
3448
- value: u,
3449
- ...l
3472
+ value: l,
3473
+ ...u
3450
3474
  }) => {
3451
- const d = K(), m = f && f.some(({ condition: T }) => T === "required"), p = (u == null ? void 0 : u.toString().length) || 0, g = c && Ge[c] && Ge[c].component ? Ge[c].component : mt, y = {};
3475
+ const d = K(), m = f && f.some(({ condition: T }) => T === "required"), p = (l == null ? void 0 : l.toString().length) || 0, g = c && Ge[c] && Ge[c].component ? Ge[c].component : mt, y = {};
3452
3476
  c && ["checkboxes"].includes(c) ? y.element = "span" : y.htmlFor = t;
3453
3477
  let _ = {
3454
- ...l,
3478
+ ...u,
3455
3479
  id: t,
3456
3480
  name: t,
3457
3481
  className: r ? "error" : "",
@@ -3459,12 +3483,12 @@ const Ge = {
3459
3483
  required: m,
3460
3484
  "aria-required": m,
3461
3485
  functions: ft(i),
3462
- value: u
3486
+ value: l
3463
3487
  };
3464
3488
  s > 0 && (_["data-character-limit"] = s, _.functions && (_.functions.onChange = (T) => {
3465
3489
  ((T == null ? void 0 : T.toString().length) || 0) > s && (T = T == null ? void 0 : T.toString().slice(0, s)), i.onChange(T);
3466
3490
  })), c && Ge[c] && Ge[c].props && (_ = { ..._, ...Ge[c].props }), c && ["checkboxes"].includes(c) && (_.intlPath = `${e}_${t}`), r && (_["aria-invalid"] = !0, _["aria-describedby"] = `error-${t}`);
3467
- const v = l.label || d.formatMessage({ id: e ? `${e}_${t}` : t }), b = ({ ...T }) => r ? Y.createElement(
3491
+ const v = u.label || d.formatMessage({ id: e ? `${e}_${t}` : t }), b = ({ ...T }) => r ? Y.createElement(
3468
3492
  T.as || "dd",
3469
3493
  {
3470
3494
  id: `error-${t}`,
@@ -3558,9 +3582,9 @@ const Ge = {
3558
3582
  },
3559
3583
  onSuccess: f = () => {
3560
3584
  },
3561
- onFailure: u = () => {
3585
+ onFailure: l = () => {
3562
3586
  },
3563
- intl: l
3587
+ intl: u
3564
3588
  } = r, d = ft(Object.keys(i));
3565
3589
  for (const m of o)
3566
3590
  if (m.validation)
@@ -3574,18 +3598,18 @@ const Ge = {
3574
3598
  const v = s[m.id];
3575
3599
  switch (g) {
3576
3600
  case "required":
3577
- (!v || typeof v == "string" && v.trim().length === 0) && (_ = y || (l == null ? void 0 : l.formatMessage({ id: "form_error_required" })));
3601
+ (!v || typeof v == "string" && v.trim().length === 0) && (_ = y || (u == null ? void 0 : u.formatMessage({ id: "form_error_required" })));
3578
3602
  break;
3579
3603
  case "no-numbers": {
3580
- v && !/^([^0-9]*)$/.test(v) && (_ = y || (l == null ? void 0 : l.formatMessage({ id: "form_error_numbers" })));
3604
+ v && !/^([^0-9]*)$/.test(v) && (_ = y || (u == null ? void 0 : u.formatMessage({ id: "form_error_numbers" })));
3581
3605
  break;
3582
3606
  }
3583
3607
  case "valid-email": {
3584
- v && !/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(v) && (_ = y || (l == null ? void 0 : l.formatMessage({ id: "form_error_email" })));
3608
+ v && !/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(v) && (_ = y || (u == null ? void 0 : u.formatMessage({ id: "form_error_email" })));
3585
3609
  break;
3586
3610
  }
3587
3611
  case "valid-url": {
3588
- v && !/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$/.test(v) && (_ = y || (l == null ? void 0 : l.formatMessage({ id: "form_error_url" })));
3612
+ v && !/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$/.test(v) && (_ = y || (u == null ? void 0 : u.formatMessage({ id: "form_error_url" })));
3589
3613
  break;
3590
3614
  }
3591
3615
  default:
@@ -3600,7 +3624,7 @@ const Ge = {
3600
3624
  break;
3601
3625
  }
3602
3626
  }
3603
- return d.length === 0 ? f(s) : u(s, d), {
3627
+ return d.length === 0 ? f(s) : l(s, d), {
3604
3628
  ...t,
3605
3629
  isSubmitting: !1
3606
3630
  };
@@ -3641,8 +3665,8 @@ const Xn = ({
3641
3665
  meta: {
3642
3666
  shouldShowCancelButton: c = !1,
3643
3667
  shouldReset: f = !0,
3644
- showRequiredLabels: u = !0,
3645
- showSuccessMessage: l = !1
3668
+ showRequiredLabels: l = !0,
3669
+ showSuccessMessage: u = !1
3646
3670
  } = {
3647
3671
  shouldShowCancelButton: !1,
3648
3672
  shouldReset: !0,
@@ -3810,7 +3834,7 @@ const Xn = ({
3810
3834
  {
3811
3835
  intlPath: i,
3812
3836
  ...I,
3813
- showRequiredLabels: u,
3837
+ showRequiredLabels: l,
3814
3838
  value: z,
3815
3839
  error: M == null ? void 0 : M[J],
3816
3840
  functions: {
@@ -3836,7 +3860,7 @@ const Xn = ({
3836
3860
  ]
3837
3861
  }
3838
3862
  ),
3839
- l && C && /* @__PURE__ */ a.jsx(qt, { className: "success", children: typeof l == "string" ? l : w.formatMessage({ id: "form_success" }) })
3863
+ u && C && /* @__PURE__ */ a.jsx(qt, { className: "success", children: typeof u == "string" ? u : w.formatMessage({ id: "form_success" }) })
3840
3864
  ] });
3841
3865
  };
3842
3866
  const Et = "passwordRules_", ja = "isMoreThanEightCharacters", ka = "includesNumberAndSymbol", Ta = "includesLowerAndUppercase", Ls = {
@@ -3889,26 +3913,26 @@ const Ul = ({
3889
3913
  className: s = "",
3890
3914
  hasLoaded: o = !1
3891
3915
  }) => {
3892
- const c = K(), [f, u] = te({
3916
+ const c = K(), [f, l] = te({
3893
3917
  setUp: !1,
3894
3918
  id: null,
3895
3919
  rating: null,
3896
3920
  disabled: !0
3897
- }), l = async () => {
3921
+ }), u = async () => {
3898
3922
  try {
3899
3923
  const v = await n();
3900
- u((b) => ({
3924
+ l((b) => ({
3901
3925
  ...b,
3902
3926
  setUp: !0,
3903
3927
  id: v && v.id,
3904
3928
  disabled: !1
3905
3929
  }));
3906
3930
  } catch (v) {
3907
- u((b) => ({ ...b, setUp: !0, disabled: !0 })), i(v);
3931
+ l((b) => ({ ...b, setUp: !0, disabled: !0 })), i(v);
3908
3932
  }
3909
3933
  };
3910
3934
  if (ae(() => {
3911
- o && !f.setUp && l();
3935
+ o && !f.setUp && u();
3912
3936
  }, [o]), !o)
3913
3937
  return /* @__PURE__ */ a.jsx(Te, { className: "rating-placeholder" });
3914
3938
  const { id: d, rating: m, disabled: p } = f, g = "ratings_", y = {
@@ -3920,11 +3944,11 @@ const Ul = ({
3920
3944
  }, _ = async (v) => {
3921
3945
  if (!(!d || p))
3922
3946
  try {
3923
- u((b) => ({ ...b, rating: v, disabled: !0 })), await r({ id: d, value: v });
3947
+ l((b) => ({ ...b, rating: v, disabled: !0 })), await r({ id: d, value: v });
3924
3948
  } catch (b) {
3925
- u((j) => ({ ...j, rating: null })), i(b);
3949
+ l((j) => ({ ...j, rating: null })), i(b);
3926
3950
  } finally {
3927
- u((b) => ({ ...b, disabled: !1 }));
3951
+ l((b) => ({ ...b, disabled: !1 }));
3928
3952
  }
3929
3953
  };
3930
3954
  return /* @__PURE__ */ a.jsxs("div", { className: S("rating", s), children: [
@@ -3977,15 +4001,15 @@ const zl = ({
3977
4001
  ae(() => {
3978
4002
  r && f(r);
3979
4003
  }, [r]);
3980
- const u = (l) => {
3981
- s || (f(l), i(l));
4004
+ const l = (u) => {
4005
+ s || (f(u), i(u));
3982
4006
  };
3983
4007
  return /* @__PURE__ */ a.jsxs(
3984
4008
  "div",
3985
4009
  {
3986
4010
  className: S("toggle", o),
3987
- onClick: (l) => {
3988
- l.preventDefault(), l.stopPropagation(), u(c === n[0].value ? n[1].value : n[0].value);
4011
+ onClick: (u) => {
4012
+ u.preventDefault(), u.stopPropagation(), l(c === n[0].value ? n[1].value : n[0].value);
3989
4013
  },
3990
4014
  children: [
3991
4015
  /* @__PURE__ */ a.jsx("p", { children: e }),
@@ -3996,8 +4020,8 @@ const zl = ({
3996
4020
  disabled: s,
3997
4021
  on: c === n[1].value
3998
4022
  }),
3999
- children: n.map((l) => {
4000
- const d = `${t}-${l.value}`;
4023
+ children: n.map((u) => {
4024
+ const d = `${t}-${u.value}`;
4001
4025
  return /* @__PURE__ */ a.jsxs("li", { className: "hidden", children: [
4002
4026
  /* @__PURE__ */ a.jsx(
4003
4027
  "input",
@@ -4005,13 +4029,13 @@ const zl = ({
4005
4029
  type: "radio",
4006
4030
  id: d,
4007
4031
  name: t,
4008
- value: l.value,
4009
- checked: c === l.value,
4010
- onChange: () => u(l.value),
4032
+ value: u.value,
4033
+ checked: c === u.value,
4034
+ onChange: () => l(u.value),
4011
4035
  disabled: s
4012
4036
  }
4013
4037
  ),
4014
- /* @__PURE__ */ a.jsx("label", { htmlFor: d, children: l.label })
4038
+ /* @__PURE__ */ a.jsx("label", { htmlFor: d, children: u.label })
4015
4039
  ] }, d);
4016
4040
  })
4017
4041
  }
@@ -4021,8 +4045,8 @@ const zl = ({
4021
4045
  );
4022
4046
  };
4023
4047
  function Zl({ className: t = "", userId: e, userName: n, src: r, setUserImage: i, uploadImage: s }) {
4024
- const [o, c] = te(!1), [f, u] = te(!1), l = pe(null), d = async (m) => {
4025
- c(!0), u(!1);
4048
+ const [o, c] = te(!1), [f, l] = te(!1), u = pe(null), d = async (m) => {
4049
+ c(!0), l(!1);
4026
4050
  try {
4027
4051
  const p = m.target.files && m.target.files[0];
4028
4052
  if (!p || !e)
@@ -4036,7 +4060,7 @@ function Zl({ className: t = "", userId: e, userName: n, src: r, setUserImage: i
4036
4060
  }
4037
4061
  }));
4038
4062
  } catch {
4039
- u(!0);
4063
+ l(!0);
4040
4064
  } finally {
4041
4065
  c(!1);
4042
4066
  }
@@ -4051,7 +4075,7 @@ function Zl({ className: t = "", userId: e, userName: n, src: r, setUserImage: i
4051
4075
  id: "file",
4052
4076
  type: "file",
4053
4077
  accept: "image/*",
4054
- ref: l,
4078
+ ref: u,
4055
4079
  onChange: d,
4056
4080
  hidden: !0,
4057
4081
  "data-testid": "file-input"
@@ -4060,7 +4084,7 @@ function Zl({ className: t = "", userId: e, userName: n, src: r, setUserImage: i
4060
4084
  /* @__PURE__ */ a.jsx(
4061
4085
  ie,
4062
4086
  {
4063
- onClick: () => l.current && l.current.click(),
4087
+ onClick: () => u.current && u.current.click(),
4064
4088
  variant: "secondary",
4065
4089
  "data-gtm-event-context": "ImageField",
4066
4090
  "data-gtm-event-type": `${r ? "change-photo" : "add-photo"}-click`,
@@ -4129,13 +4153,13 @@ const Us = ({
4129
4153
  onClose: o,
4130
4154
  reportError: c,
4131
4155
  sendInvites: f,
4132
- initialFormStatus: u = "NOT_SUBMITTED"
4156
+ initialFormStatus: l = "NOT_SUBMITTED"
4133
4157
  /* NOT_SUBMITTED */
4134
4158
  }) => {
4135
- const [l, d] = te([]), [m, p] = te(!0), [g, y] = te(u), { formatMessage: _ } = K(), v = async (T) => {
4159
+ const [u, d] = te([]), [m, p] = te(!0), [g, y] = te(l), { formatMessage: _ } = K(), v = async (T) => {
4136
4160
  T.preventDefault();
4137
4161
  try {
4138
- await f(l), d([]), y(
4162
+ await f(u), d([]), y(
4139
4163
  "SUCCESS"
4140
4164
  /* SUCCESS */
4141
4165
  );
@@ -4182,7 +4206,7 @@ const Us = ({
4182
4206
  id: "email-input",
4183
4207
  inputClassName: "email-input input",
4184
4208
  placeholder: _({ id: "inviteForm_email_placeholder" }),
4185
- emails: l,
4209
+ emails: u,
4186
4210
  onChange: (T) => {
4187
4211
  d(T), p(!T.length);
4188
4212
  },
@@ -4196,7 +4220,7 @@ const Us = ({
4196
4220
  size: "small",
4197
4221
  icon: { icon: "close" },
4198
4222
  onClick: () => {
4199
- D(w), p(!l.length);
4223
+ D(w), p(!u.length);
4200
4224
  },
4201
4225
  className: "remove-email-button",
4202
4226
  screenreaderText: _({ id: "overlay_close" })
@@ -4220,17 +4244,17 @@ const zs = ({
4220
4244
  gtmContext: i = "search-bar",
4221
4245
  gtmEvent: s = "form-submission"
4222
4246
  }) => {
4223
- const { searchIsOpen: o = !0, isDesktopVersion: c = !1 } = n || {}, f = K(), u = pe(null);
4247
+ const { searchIsOpen: o = !0, isDesktopVersion: c = !1 } = n || {}, f = K(), l = pe(null);
4224
4248
  vt(() => {
4225
- !n || c || !o || u.current && u.current.focus();
4249
+ !n || c || !o || l.current && l.current.focus();
4226
4250
  }, [o]);
4227
- const l = (d) => {
4228
- d.preventDefault(), d.stopPropagation(), !(!u.current || !u.current.value || u.current.value.length < 1) && (window.location.href = `/search?search=${encodeURIComponent(u.current.value)}`);
4251
+ const u = (d) => {
4252
+ d.preventDefault(), d.stopPropagation(), !(!l.current || !l.current.value || l.current.value.length < 1) && (window.location.href = `/search?search=${encodeURIComponent(l.current.value)}`);
4229
4253
  };
4230
4254
  return /* @__PURE__ */ a.jsx(
4231
4255
  "form",
4232
4256
  {
4233
- onSubmit: l,
4257
+ onSubmit: u,
4234
4258
  className: S("search-form gtm-trackable", e),
4235
4259
  "data-gtm-event-context": i,
4236
4260
  "data-gtm-event-type": s,
@@ -4252,14 +4276,14 @@ const zs = ({
4252
4276
  /* @__PURE__ */ a.jsx(
4253
4277
  "input",
4254
4278
  {
4255
- ref: u,
4279
+ ref: l,
4256
4280
  type: "search",
4257
4281
  id: t,
4258
4282
  name: t,
4259
4283
  defaultValue: r,
4260
4284
  placeholder: f.formatMessage({ id: "search_placeholder" }),
4261
4285
  onKeyDown: (d) => {
4262
- d.key === "Enter" && l(d);
4286
+ d.key === "Enter" && u(d);
4263
4287
  }
4264
4288
  }
4265
4289
  ),
@@ -4268,12 +4292,12 @@ const zs = ({
4268
4292
  {
4269
4293
  className: "clear",
4270
4294
  onClick: (d) => {
4271
- d.preventDefault(), d.stopPropagation(), u.current && u.current.value && (u.current.value = "");
4295
+ d.preventDefault(), d.stopPropagation(), l.current && l.current.value && (l.current.value = "");
4272
4296
  },
4273
4297
  children: /* @__PURE__ */ a.jsx(be, { children: f.formatMessage({ id: "search_clear" }) })
4274
4298
  }
4275
4299
  ),
4276
- /* @__PURE__ */ a.jsx("button", { className: "search", onClick: l, children: /* @__PURE__ */ a.jsx(be, { children: f.formatMessage({ id: "search_cta" }) }) })
4300
+ /* @__PURE__ */ a.jsx("button", { className: "search", onClick: u, children: /* @__PURE__ */ a.jsx(be, { children: f.formatMessage({ id: "search_cta" }) }) })
4277
4301
  ] })
4278
4302
  }
4279
4303
  )
@@ -4310,15 +4334,15 @@ const zs = ({
4310
4334
  { type: "validFields.email", value: !1 }
4311
4335
  ]);
4312
4336
  }
4313
- const { valid: c = !1, autoApproved: f = !1, exists: u } = o;
4314
- let l = "";
4315
- return c ? l = f ? "gov" : "nonGov" : u.registration ? u.engagement && !u.user ? l = u.auth ? "verify" : "pending" : l = "exists" : u.auth && (l = "exists"), n([
4337
+ const { valid: c = !1, autoApproved: f = !1, exists: l } = o;
4338
+ let u = "";
4339
+ return c ? u = f ? "gov" : "nonGov" : l.registration ? l.engagement && !l.user ? u = l.auth ? "verify" : "pending" : u = "exists" : l.auth && (u = "exists"), n([
4316
4340
  { type: "shouldManuallyApprove", value: !f },
4317
4341
  {
4318
4342
  type: "emailDetails",
4319
4343
  value: {
4320
4344
  email: i,
4321
- boxType: l,
4345
+ boxType: u,
4322
4346
  isEnd2End: /testing\+[0-9]+@apolitical.co$/.test(i)
4323
4347
  }
4324
4348
  },
@@ -4366,16 +4390,16 @@ const zs = ({
4366
4390
  intl: c
4367
4391
  // We need to pass `intl` in as it's being used in a hook
4368
4392
  }) => {
4369
- const { emailDetails: f } = i, u = (d, m) => {
4393
+ const { emailDetails: f } = i, l = (d, m) => {
4370
4394
  d.current && i.validFields[m] !== d.current.validity.valid && s([{ type: `validFields.${m}`, value: d.current.validity.valid }]);
4371
- }, l = [
4395
+ }, u = [
4372
4396
  {
4373
4397
  id: "full_name",
4374
4398
  type: "text",
4375
4399
  inputRef: r.name,
4376
4400
  placeholder: c.formatMessage({ id: "signup_full_name_placeholder" }),
4377
4401
  functions: {
4378
- onChange: () => u(r.name, "name"),
4402
+ onChange: () => l(r.name, "name"),
4379
4403
  onFocus: () => s([{ type: "loadRecaptcha", value: !0 }])
4380
4404
  },
4381
4405
  autoComplete: "name",
@@ -4414,14 +4438,14 @@ const zs = ({
4414
4438
  }
4415
4439
  }
4416
4440
  ];
4417
- return i.shouldManuallyApprove && (l.push(
4441
+ return i.shouldManuallyApprove && (u.push(
4418
4442
  {
4419
4443
  id: "job_title",
4420
4444
  type: "text",
4421
4445
  inputRef: r.jobTitle,
4422
4446
  placeholder: c.formatMessage({ id: "signup_job_title_placeholder" }),
4423
4447
  functions: {
4424
- onChange: () => u(r.jobTitle, "jobTitle")
4448
+ onChange: () => l(r.jobTitle, "jobTitle")
4425
4449
  },
4426
4450
  validation: [{ condition: "required" }],
4427
4451
  "data-testid": "signup-job-input"
@@ -4435,13 +4459,13 @@ const zs = ({
4435
4459
  }),
4436
4460
  functions: {
4437
4461
  onChange: () => {
4438
- u(r.organisation, "organisation");
4462
+ l(r.organisation, "organisation");
4439
4463
  }
4440
4464
  },
4441
4465
  validation: [{ condition: "required" }],
4442
4466
  "data-testid": "signup-org-input"
4443
4467
  }
4444
- ), t.url && l.push({
4468
+ ), t.url && u.push({
4445
4469
  id: "url",
4446
4470
  type: "text",
4447
4471
  label: c.formatMessage(
@@ -4453,7 +4477,7 @@ const zs = ({
4453
4477
  placeholder: c.formatMessage({ id: "signup_url_placeholder" }),
4454
4478
  validation: [{ condition: "valid-url" }],
4455
4479
  "data-testid": "signup-url-input"
4456
- })), t.expectation && l.push({
4480
+ })), t.expectation && u.push({
4457
4481
  id: "expectation",
4458
4482
  className: "expectation",
4459
4483
  type: "text",
@@ -4465,7 +4489,7 @@ const zs = ({
4465
4489
  ),
4466
4490
  placeholder: c.formatMessage({ id: "signup_expectation_placeholder" }),
4467
4491
  "data-testid": "signup-events-question"
4468
- }), l.push({
4492
+ }), u.push({
4469
4493
  id: "terms",
4470
4494
  className: "text-small",
4471
4495
  type: "checkbox",
@@ -4511,7 +4535,7 @@ const zs = ({
4511
4535
  },
4512
4536
  validation: [{ condition: "required" }],
4513
4537
  "data-testid": "signup-terms-checkbox"
4514
- }), l;
4538
+ }), u;
4515
4539
  };
4516
4540
  const Vs = ({ className: t = "" }) => /* @__PURE__ */ a.jsxs(
4517
4541
  "div",
@@ -4566,8 +4590,8 @@ const Ys = {
4566
4590
  ...s
4567
4591
  }) => {
4568
4592
  const o = K(), [c, f] = Zn(ua, Ys), {
4569
- validFields: u,
4570
- emailDetails: l,
4593
+ validFields: l,
4594
+ emailDetails: u,
4571
4595
  shouldManuallyApprove: d,
4572
4596
  showSuccessMessage: m,
4573
4597
  showError: p
@@ -4604,7 +4628,7 @@ const Ys = {
4604
4628
  dispatch: f,
4605
4629
  dataToSubmit: i,
4606
4630
  intl: o
4607
- }), [i, e, o, _, n, c]), b = d ? !Object.values(u).every((j) => j === !0) : !u.name || !u.email || ["exists", "pending", "verify"].includes(l.boxType);
4631
+ }), [i, e, o, _, n, c]), b = d ? !Object.values(l).every((j) => j === !0) : !l.name || !l.email || ["exists", "pending", "verify"].includes(u.boxType);
4608
4632
  return n.successMessage && m ? /* @__PURE__ */ a.jsx(Vs, { className: t }) : /* @__PURE__ */ a.jsxs(
4609
4633
  "fieldset",
4610
4634
  {
@@ -4695,7 +4719,7 @@ function Ks() {
4695
4719
  if (Nr)
4696
4720
  return ue;
4697
4721
  Nr = 1;
4698
- var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, i = t ? Symbol.for("react.strict_mode") : 60108, s = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, f = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, l = t ? Symbol.for("react.forward_ref") : 60112, d = t ? Symbol.for("react.suspense") : 60113, m = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, g = t ? Symbol.for("react.lazy") : 60116, y = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, b = t ? Symbol.for("react.scope") : 60119;
4722
+ 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, g = t ? Symbol.for("react.lazy") : 60116, y = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, b = t ? Symbol.for("react.scope") : 60119;
4699
4723
  function j(w) {
4700
4724
  if (typeof w == "object" && w !== null) {
4701
4725
  var D = w.$$typeof;
@@ -4703,7 +4727,7 @@ function Ks() {
4703
4727
  case e:
4704
4728
  switch (w = w.type, w) {
4705
4729
  case f:
4706
- case u:
4730
+ case l:
4707
4731
  case r:
4708
4732
  case s:
4709
4733
  case i:
@@ -4712,7 +4736,7 @@ function Ks() {
4712
4736
  default:
4713
4737
  switch (w = w && w.$$typeof, w) {
4714
4738
  case c:
4715
- case l:
4739
+ case u:
4716
4740
  case g:
4717
4741
  case p:
4718
4742
  case o:
@@ -4727,9 +4751,9 @@ function Ks() {
4727
4751
  }
4728
4752
  }
4729
4753
  function T(w) {
4730
- return j(w) === u;
4754
+ return j(w) === l;
4731
4755
  }
4732
- return ue.AsyncMode = f, ue.ConcurrentMode = u, ue.ContextConsumer = c, ue.ContextProvider = o, ue.Element = e, ue.ForwardRef = l, ue.Fragment = r, ue.Lazy = g, ue.Memo = p, ue.Portal = n, ue.Profiler = s, ue.StrictMode = i, ue.Suspense = d, ue.isAsyncMode = function(w) {
4756
+ return ue.AsyncMode = f, ue.ConcurrentMode = l, ue.ContextConsumer = c, ue.ContextProvider = o, ue.Element = e, ue.ForwardRef = u, ue.Fragment = r, ue.Lazy = g, ue.Memo = p, ue.Portal = n, ue.Profiler = s, ue.StrictMode = i, ue.Suspense = d, ue.isAsyncMode = function(w) {
4733
4757
  return T(w) || j(w) === f;
4734
4758
  }, ue.isConcurrentMode = T, ue.isContextConsumer = function(w) {
4735
4759
  return j(w) === c;
@@ -4738,7 +4762,7 @@ function Ks() {
4738
4762
  }, ue.isElement = function(w) {
4739
4763
  return typeof w == "object" && w !== null && w.$$typeof === e;
4740
4764
  }, ue.isForwardRef = function(w) {
4741
- return j(w) === l;
4765
+ return j(w) === u;
4742
4766
  }, ue.isFragment = function(w) {
4743
4767
  return j(w) === r;
4744
4768
  }, ue.isLazy = function(w) {
@@ -4754,7 +4778,7 @@ function Ks() {
4754
4778
  }, ue.isSuspense = function(w) {
4755
4779
  return j(w) === d;
4756
4780
  }, ue.isValidElementType = function(w) {
4757
- return typeof w == "string" || typeof w == "function" || w === r || w === u || w === s || w === i || w === d || w === m || typeof w == "object" && w !== null && (w.$$typeof === g || w.$$typeof === p || w.$$typeof === o || w.$$typeof === c || w.$$typeof === l || w.$$typeof === _ || w.$$typeof === v || w.$$typeof === b || w.$$typeof === y);
4781
+ 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 === g || w.$$typeof === p || w.$$typeof === o || w.$$typeof === c || w.$$typeof === u || w.$$typeof === _ || w.$$typeof === v || w.$$typeof === b || w.$$typeof === y);
4758
4782
  }, ue.typeOf = j, ue;
4759
4783
  }
4760
4784
  var de = {};
@@ -4769,10 +4793,10 @@ var de = {};
4769
4793
  var Pr;
4770
4794
  function Gs() {
4771
4795
  return Pr || (Pr = 1, process.env.NODE_ENV !== "production" && function() {
4772
- var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, i = t ? Symbol.for("react.strict_mode") : 60108, s = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, f = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, l = t ? Symbol.for("react.forward_ref") : 60112, d = t ? Symbol.for("react.suspense") : 60113, m = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, g = t ? Symbol.for("react.lazy") : 60116, y = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, b = t ? Symbol.for("react.scope") : 60119;
4796
+ 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, g = t ? Symbol.for("react.lazy") : 60116, y = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, b = t ? Symbol.for("react.scope") : 60119;
4773
4797
  function j(A) {
4774
4798
  return typeof A == "string" || typeof A == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
4775
- A === r || A === u || A === s || A === i || A === d || A === m || typeof A == "object" && A !== null && (A.$$typeof === g || A.$$typeof === p || A.$$typeof === o || A.$$typeof === c || A.$$typeof === l || A.$$typeof === _ || A.$$typeof === v || A.$$typeof === b || A.$$typeof === y);
4799
+ A === r || A === l || A === s || A === i || A === d || A === m || typeof A == "object" && A !== null && (A.$$typeof === g || A.$$typeof === p || A.$$typeof === o || A.$$typeof === c || A.$$typeof === u || A.$$typeof === _ || A.$$typeof === v || A.$$typeof === b || A.$$typeof === y);
4776
4800
  }
4777
4801
  function T(A) {
4778
4802
  if (typeof A == "object" && A !== null) {
@@ -4782,7 +4806,7 @@ function Gs() {
4782
4806
  var $e = A.type;
4783
4807
  switch ($e) {
4784
4808
  case f:
4785
- case u:
4809
+ case l:
4786
4810
  case r:
4787
4811
  case s:
4788
4812
  case i:
@@ -4792,7 +4816,7 @@ function Gs() {
4792
4816
  var Ee = $e && $e.$$typeof;
4793
4817
  switch (Ee) {
4794
4818
  case c:
4795
- case l:
4819
+ case u:
4796
4820
  case g:
4797
4821
  case p:
4798
4822
  case o:
@@ -4806,12 +4830,12 @@ function Gs() {
4806
4830
  }
4807
4831
  }
4808
4832
  }
4809
- var w = f, D = u, R = c, W = o, M = e, O = l, C = r, E = g, x = p, $ = n, L = s, U = i, I = d, Z = !1;
4833
+ var w = f, D = l, R = c, W = o, M = e, O = u, C = r, E = g, x = p, $ = n, L = s, U = i, I = d, Z = !1;
4810
4834
  function J(A) {
4811
4835
  return Z || (Z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), k(A) || T(A) === f;
4812
4836
  }
4813
4837
  function k(A) {
4814
- return T(A) === u;
4838
+ return T(A) === l;
4815
4839
  }
4816
4840
  function N(A) {
4817
4841
  return T(A) === c;
@@ -4823,7 +4847,7 @@ function Gs() {
4823
4847
  return typeof A == "object" && A !== null && A.$$typeof === e;
4824
4848
  }
4825
4849
  function H(A) {
4826
- return T(A) === l;
4850
+ return T(A) === u;
4827
4851
  }
4828
4852
  function ee(A) {
4829
4853
  return T(A) === r;
@@ -4878,28 +4902,28 @@ function Qs() {
4878
4902
  return !1;
4879
4903
  for (var o = {}, c = 0; c < 10; c++)
4880
4904
  o["_" + String.fromCharCode(c)] = c;
4881
- var f = Object.getOwnPropertyNames(o).map(function(l) {
4882
- return o[l];
4905
+ var f = Object.getOwnPropertyNames(o).map(function(u) {
4906
+ return o[u];
4883
4907
  });
4884
4908
  if (f.join("") !== "0123456789")
4885
4909
  return !1;
4886
- var u = {};
4887
- return "abcdefghijklmnopqrst".split("").forEach(function(l) {
4888
- u[l] = l;
4889
- }), Object.keys(Object.assign({}, u)).join("") === "abcdefghijklmnopqrst";
4910
+ var l = {};
4911
+ return "abcdefghijklmnopqrst".split("").forEach(function(u) {
4912
+ l[u] = u;
4913
+ }), Object.keys(Object.assign({}, l)).join("") === "abcdefghijklmnopqrst";
4890
4914
  } catch {
4891
4915
  return !1;
4892
4916
  }
4893
4917
  }
4894
4918
  return pn = i() ? Object.assign : function(s, o) {
4895
- for (var c, f = r(s), u, l = 1; l < arguments.length; l++) {
4896
- c = Object(arguments[l]);
4919
+ for (var c, f = r(s), l, u = 1; u < arguments.length; u++) {
4920
+ c = Object(arguments[u]);
4897
4921
  for (var d in c)
4898
4922
  e.call(c, d) && (f[d] = c[d]);
4899
4923
  if (t) {
4900
- u = t(c);
4901
- for (var m = 0; m < u.length; m++)
4902
- n.call(c, u[m]) && (f[u[m]] = c[u[m]]);
4924
+ l = t(c);
4925
+ for (var m = 0; m < l.length; m++)
4926
+ n.call(c, l[m]) && (f[l[m]] = c[l[m]]);
4903
4927
  }
4904
4928
  }
4905
4929
  return f;
@@ -4935,27 +4959,27 @@ function Js() {
4935
4959
  }
4936
4960
  };
4937
4961
  }
4938
- function i(s, o, c, f, u) {
4962
+ function i(s, o, c, f, l) {
4939
4963
  if (process.env.NODE_ENV !== "production") {
4940
- for (var l in s)
4941
- if (r(s, l)) {
4964
+ for (var u in s)
4965
+ if (r(s, u)) {
4942
4966
  var d;
4943
4967
  try {
4944
- if (typeof s[l] != "function") {
4968
+ if (typeof s[u] != "function") {
4945
4969
  var m = Error(
4946
- (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`."
4970
+ (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`."
4947
4971
  );
4948
4972
  throw m.name = "Invariant Violation", m;
4949
4973
  }
4950
- d = s[l](o, l, f, c, null, e);
4974
+ d = s[u](o, u, f, c, null, e);
4951
4975
  } catch (g) {
4952
4976
  d = g;
4953
4977
  }
4954
4978
  if (d && !(d instanceof Error) && t(
4955
- (f || "React class") + ": type specification of " + c + " `" + l + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof d + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
4979
+ (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)."
4956
4980
  ), d instanceof Error && !(d.message in n)) {
4957
4981
  n[d.message] = !0;
4958
- var p = u ? u() : "";
4982
+ var p = l ? l() : "";
4959
4983
  t(
4960
4984
  "Failed " + c + " type: " + d.message + (p ?? "")
4961
4985
  );
@@ -4986,9 +5010,9 @@ function Xs() {
4986
5010
  return null;
4987
5011
  }
4988
5012
  return bn = function(c, f) {
4989
- var u = typeof Symbol == "function" && Symbol.iterator, l = "@@iterator";
5013
+ var l = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
4990
5014
  function d(k) {
4991
- var N = k && (u && k[u] || k[l]);
5015
+ var N = k && (l && k[l] || k[u]);
4992
5016
  if (typeof N == "function")
4993
5017
  return N;
4994
5018
  }
@@ -5300,7 +5324,7 @@ function eo() {
5300
5324
  function n() {
5301
5325
  }
5302
5326
  return n.resetWarningCache = e, yn = function() {
5303
- function r(o, c, f, u, l, d) {
5327
+ function r(o, c, f, l, u, d) {
5304
5328
  if (d !== t) {
5305
5329
  var m = new Error(
5306
5330
  "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"
@@ -5372,14 +5396,14 @@ var Ca = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
5372
5396
  var o = s.shift();
5373
5397
  if (!Zt(o, !1))
5374
5398
  if (o.tagName === "SLOT") {
5375
- var c = o.assignedElements(), f = c.length ? c : o.children, u = t(f, !0, r);
5376
- r.flatten ? i.push.apply(i, u) : i.push({
5399
+ var c = o.assignedElements(), f = c.length ? c : o.children, l = t(f, !0, r);
5400
+ r.flatten ? i.push.apply(i, l) : i.push({
5377
5401
  scopeParent: o,
5378
- candidates: u
5402
+ candidates: l
5379
5403
  });
5380
5404
  } else {
5381
- var l = Ze.call(o, Ut);
5382
- l && r.filter(o) && (n || !e.includes(o)) && i.push(o);
5405
+ var u = Ze.call(o, Ut);
5406
+ u && r.filter(o) && (n || !e.includes(o)) && i.push(o);
5383
5407
  var d = o.shadowRoot || // check for an undisclosed shadow
5384
5408
  typeof r.getShadowRoot == "function" && r.getShadowRoot(o), m = !Zt(d, !1) && (!r.shadowRootFilter || r.shadowRootFilter(o));
5385
5409
  if (d && m) {
@@ -5442,8 +5466,8 @@ var Ca = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
5442
5466
  if (r && r !== e) {
5443
5467
  var o, c, f;
5444
5468
  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; ) {
5445
- var u, l, d;
5446
- r = zt(i), i = (u = r) === null || u === void 0 ? void 0 : u.host, s = !!((l = i) !== null && l !== void 0 && (d = l.ownerDocument) !== null && d !== void 0 && d.contains(i));
5469
+ var l, u, d;
5470
+ r = zt(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));
5447
5471
  }
5448
5472
  }
5449
5473
  return s;
@@ -5460,10 +5484,10 @@ var Ca = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
5460
5484
  if (!r || r === "full" || r === "legacy-full") {
5461
5485
  if (typeof i == "function") {
5462
5486
  for (var c = e; e; ) {
5463
- var f = e.parentElement, u = zt(e);
5487
+ var f = e.parentElement, l = zt(e);
5464
5488
  if (f && !f.shadowRoot && i(f) === !0)
5465
5489
  return Lr(e);
5466
- e.assignedSlot ? e = e.assignedSlot : !f && u !== e.ownerDocument ? e = u.host : e = f;
5490
+ e.assignedSlot ? e = e.assignedSlot : !f && l !== e.ownerDocument ? e = l.host : e = f;
5467
5491
  }
5468
5492
  e = c;
5469
5493
  }
@@ -5502,13 +5526,13 @@ var Ca = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
5502
5526
  }, bo = function t(e) {
5503
5527
  var n = [], r = [];
5504
5528
  return e.forEach(function(i, s) {
5505
- var o = !!i.scopeParent, c = o ? i.scopeParent : i, f = io(c, o), u = o ? t(i.candidates) : c;
5506
- f === 0 ? o ? n.push.apply(n, u) : n.push(c) : r.push({
5529
+ var o = !!i.scopeParent, c = o ? i.scopeParent : i, f = io(c, o), l = o ? t(i.candidates) : c;
5530
+ f === 0 ? o ? n.push.apply(n, l) : n.push(c) : r.push({
5507
5531
  documentOrder: s,
5508
5532
  tabIndex: f,
5509
5533
  item: i,
5510
5534
  isScope: o,
5511
- content: u
5535
+ content: l
5512
5536
  });
5513
5537
  }), r.sort(so).reduce(function(i, s) {
5514
5538
  return s.isScope ? i.push.apply(i, s.content) : i.push(s.content), i;
@@ -5677,7 +5701,7 @@ var Ur = {
5677
5701
  recentNavEvent: void 0
5678
5702
  }, c, f = function(E, x, $) {
5679
5703
  return E && E[x] !== void 0 ? E[x] : s[$ || x];
5680
- }, u = function(E, x) {
5704
+ }, l = function(E, x) {
5681
5705
  var $ = typeof (x == null ? void 0 : x.composedPath) == "function" ? x.composedPath() : void 0;
5682
5706
  return o.containerGroups.findIndex(function(L) {
5683
5707
  var U = L.container, I = L.tabbableNodes;
@@ -5689,7 +5713,7 @@ var Ur = {
5689
5713
  return Z === E;
5690
5714
  });
5691
5715
  });
5692
- }, l = function(E) {
5716
+ }, u = function(E) {
5693
5717
  var x = s[E];
5694
5718
  if (typeof x == "function") {
5695
5719
  for (var $ = arguments.length, L = new Array($ > 1 ? $ - 1 : 0), U = 1; U < $; U++)
@@ -5706,15 +5730,15 @@ var Ur = {
5706
5730
  throw new Error("`".concat(E, "` as selector refers to no known node"));
5707
5731
  return I;
5708
5732
  }, d = function() {
5709
- var E = l("initialFocus");
5733
+ var E = u("initialFocus");
5710
5734
  if (E === !1)
5711
5735
  return !1;
5712
5736
  if (E === void 0 || !Dt(E, s.tabbableOptions))
5713
- if (u(r.activeElement) >= 0)
5737
+ if (l(r.activeElement) >= 0)
5714
5738
  E = r.activeElement;
5715
5739
  else {
5716
5740
  var x = o.tabbableGroups[0], $ = x && x.firstTabbableNode;
5717
- E = $ || l("fallbackFocus");
5741
+ E = $ || u("fallbackFocus");
5718
5742
  }
5719
5743
  if (!E)
5720
5744
  throw new Error("Your focus-trap needs to have at least one focusable element");
@@ -5768,7 +5792,7 @@ var Ur = {
5768
5792
  };
5769
5793
  }), o.tabbableGroups = o.containerGroups.filter(function(E) {
5770
5794
  return E.tabbableNodes.length > 0;
5771
- }), o.tabbableGroups.length <= 0 && !l("fallbackFocus"))
5795
+ }), o.tabbableGroups.length <= 0 && !u("fallbackFocus"))
5772
5796
  throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
5773
5797
  if (o.containerGroups.find(function(E) {
5774
5798
  return E.posTabIndexesFound;
@@ -5789,14 +5813,14 @@ var Ur = {
5789
5813
  }), o.mostRecentlyFocusedNode = E, ko(E) && E.select();
5790
5814
  }
5791
5815
  }, y = function(E) {
5792
- var x = l("setReturnFocus", E);
5816
+ var x = u("setReturnFocus", E);
5793
5817
  return x || (x === !1 ? !1 : E);
5794
5818
  }, _ = function(E) {
5795
5819
  var x = E.target, $ = E.event, L = E.isBackward, U = L === void 0 ? !1 : L;
5796
5820
  x = x || Ct($), m();
5797
5821
  var I = null;
5798
5822
  if (o.tabbableGroups.length > 0) {
5799
- var Z = u(x, $), J = Z >= 0 ? o.containerGroups[Z] : void 0;
5823
+ var Z = l(x, $), J = Z >= 0 ? o.containerGroups[Z] : void 0;
5800
5824
  if (Z < 0)
5801
5825
  U ? I = o.tabbableGroups[o.tabbableGroups.length - 1].lastTabbableNode : I = o.tabbableGroups[0].firstTabbableNode;
5802
5826
  else if (U) {
@@ -5821,11 +5845,11 @@ var Ur = {
5821
5845
  pt($) || (I = J.nextTabbableNode(x));
5822
5846
  }
5823
5847
  } else
5824
- I = l("fallbackFocus");
5848
+ I = u("fallbackFocus");
5825
5849
  return I;
5826
5850
  }, v = function(E) {
5827
5851
  var x = Ct(E);
5828
- if (!(u(x, E) >= 0)) {
5852
+ if (!(l(x, E) >= 0)) {
5829
5853
  if (ot(s.clickOutsideDeactivates, E)) {
5830
5854
  c.deactivate({
5831
5855
  // NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
@@ -5841,7 +5865,7 @@ var Ur = {
5841
5865
  ot(s.allowOutsideClick, E) || E.preventDefault();
5842
5866
  }
5843
5867
  }, b = function(E) {
5844
- var x = Ct(E), $ = u(x, E) >= 0;
5868
+ var x = Ct(E), $ = l(x, E) >= 0;
5845
5869
  if ($ || x instanceof Document)
5846
5870
  $ && (o.mostRecentlyFocusedNode = x);
5847
5871
  else {
@@ -5849,7 +5873,7 @@ var Ur = {
5849
5873
  var L, U = !0;
5850
5874
  if (o.mostRecentlyFocusedNode)
5851
5875
  if (Ie(o.mostRecentlyFocusedNode) > 0) {
5852
- var I = u(o.mostRecentlyFocusedNode), Z = o.containerGroups[I].tabbableNodes;
5876
+ var I = l(o.mostRecentlyFocusedNode), Z = o.containerGroups[I].tabbableNodes;
5853
5877
  if (Z.length > 0) {
5854
5878
  var J = Z.findIndex(function(k) {
5855
5879
  return k === o.mostRecentlyFocusedNode;
@@ -5888,7 +5912,7 @@ var Ur = {
5888
5912
  (s.isKeyForward(E) || s.isKeyBackward(E)) && j(E, s.isKeyBackward(E));
5889
5913
  }, w = function(E) {
5890
5914
  var x = Ct(E);
5891
- u(x, E) >= 0 || ot(s.clickOutsideDeactivates, E) || ot(s.allowOutsideClick, E) || (E.preventDefault(), E.stopImmediatePropagation());
5915
+ l(x, E) >= 0 || ot(s.clickOutsideDeactivates, E) || ot(s.allowOutsideClick, E) || (E.preventDefault(), E.stopImmediatePropagation());
5892
5916
  }, D = function() {
5893
5917
  if (o.active)
5894
5918
  return Ur.activateTrap(i, c), o.delayInitialFocusTimer = s.delayInitialFocus ? zr(function() {
@@ -6081,21 +6105,21 @@ var $t = Y, Q = ro, qo = Po, Uo = qo.createFocusTrap, zo = Mo, Zo = zo.isFocusab
6081
6105
  function n(r) {
6082
6106
  var i;
6083
6107
  Ro(this, n), i = e.call(this, r), Lo(dt(i), "getNodeForOption", function(c) {
6084
- var f, u = (f = this.internalOptions[c]) !== null && f !== void 0 ? f : this.originalOptions[c];
6085
- if (typeof u == "function") {
6086
- for (var l = arguments.length, d = new Array(l > 1 ? l - 1 : 0), m = 1; m < l; m++)
6108
+ var f, l = (f = this.internalOptions[c]) !== null && f !== void 0 ? f : this.originalOptions[c];
6109
+ if (typeof l == "function") {
6110
+ for (var u = arguments.length, d = new Array(u > 1 ? u - 1 : 0), m = 1; m < u; m++)
6087
6111
  d[m - 1] = arguments[m];
6088
- u = u.apply(void 0, d);
6112
+ l = l.apply(void 0, d);
6089
6113
  }
6090
- if (u === !0 && (u = void 0), !u) {
6091
- if (u === void 0 || u === !1)
6092
- return u;
6114
+ if (l === !0 && (l = void 0), !l) {
6115
+ if (l === void 0 || l === !1)
6116
+ return l;
6093
6117
  throw new Error("`".concat(c, "` was specified but was not a node, or did not return a node"));
6094
6118
  }
6095
- var p = u;
6096
- if (typeof u == "string") {
6119
+ var p = l;
6120
+ if (typeof l == "string") {
6097
6121
  var g;
6098
- if (p = (g = this.getDocument()) === null || g === void 0 ? void 0 : g.querySelector(u), !p)
6122
+ if (p = (g = this.getDocument()) === null || g === void 0 ? void 0 : g.querySelector(l), !p)
6099
6123
  throw new Error("`".concat(c, "` as selector refers to no known node"));
6100
6124
  }
6101
6125
  return p;
@@ -6203,9 +6227,9 @@ var $t = Y, Q = ro, qo = Po, Uo = qo.createFocusTrap, zo = Mo, Zo = zo.isFocusab
6203
6227
  i.outsideClick.allowDeactivation && // is the outside node NOT focusable (implying that it did NOT receive focus
6204
6228
  // as a result of the click-through) -- in which case do NOT restore focus
6205
6229
  // to `returnFocusNode` because focus should remain on the outside node
6206
- !Zo(i.outsideClick.target, i.internalOptions.tabbableOptions))), u = i.internalOptions.preventScroll, l = u === void 0 ? !1 : u;
6230
+ !Zo(i.outsideClick.target, i.internalOptions.tabbableOptions))), l = i.internalOptions.preventScroll, u = l === void 0 ? !1 : l;
6207
6231
  f && c.focus({
6208
- preventScroll: l
6232
+ preventScroll: u
6209
6233
  }), i.originalOptions.onPostDeactivate && i.originalOptions.onPostDeactivate.call(null), i.outsideClick = null;
6210
6234
  };
6211
6235
  this.originalOptions.checkCanReturnFocus ? this.originalOptions.checkCanReturnFocus.call(null, this.getReturnFocusNode()).then(s, s) : s();
@@ -6251,9 +6275,9 @@ var $t = Y, Q = ro, qo = Po, Uo = qo.createFocusTrap, zo = Mo, Zo = zo.isFocusab
6251
6275
  if (s) {
6252
6276
  if (s.type && s.type === $t.Fragment)
6253
6277
  throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");
6254
- var o = function(u) {
6255
- var l = i.props.containerElements;
6256
- s && (typeof s.ref == "function" ? s.ref(u) : s.ref && (s.ref.current = u)), i.focusTrapElements = l || [u];
6278
+ var o = function(l) {
6279
+ var u = i.props.containerElements;
6280
+ s && (typeof s.ref == "function" ? s.ref(l) : s.ref && (s.ref.current = l)), i.focusTrapElements = u || [l];
6257
6281
  }, c = $t.cloneElement(s, {
6258
6282
  ref: o
6259
6283
  });
@@ -6335,8 +6359,8 @@ const en = ({
6335
6359
  forceShow: { error: o = !1 } = {},
6336
6360
  title: c,
6337
6361
  children: f,
6338
- buttons: u,
6339
- className: l = "",
6362
+ buttons: l,
6363
+ className: u = "",
6340
6364
  gtmContext: d = "Modal"
6341
6365
  }) => {
6342
6366
  const m = K(), [p, g] = te(e), y = (b) => {
@@ -6356,7 +6380,7 @@ const en = ({
6356
6380
  Da,
6357
6381
  {
6358
6382
  id: t,
6359
- className: S("overlay-modal", l, {
6383
+ className: S("overlay-modal", u, {
6360
6384
  "has-max-width": r
6361
6385
  }),
6362
6386
  hidden: !p,
@@ -6380,9 +6404,9 @@ const en = ({
6380
6404
  ] }),
6381
6405
  n && /* @__PURE__ */ a.jsx(Oe, {}),
6382
6406
  f,
6383
- u && /* @__PURE__ */ a.jsxs("div", { className: "bottom", children: [
6407
+ l && /* @__PURE__ */ a.jsxs("div", { className: "bottom", children: [
6384
6408
  /* @__PURE__ */ a.jsx(Oe, {}),
6385
- /* @__PURE__ */ a.jsx(_t, { buttons: u })
6409
+ /* @__PURE__ */ a.jsx(_t, { buttons: l })
6386
6410
  ] }),
6387
6411
  o && /* @__PURE__ */ a.jsx(qt, { className: "error", children: o })
6388
6412
  ] }) })
@@ -6404,10 +6428,10 @@ const Hl = ({
6404
6428
  onClose: c,
6405
6429
  reportError: f = () => {
6406
6430
  },
6407
- sendInvites: u
6431
+ sendInvites: l
6408
6432
  }) => {
6409
- const l = K();
6410
- return r || (r = l.formatMessage({ id: "invite-modal_formTitle" })), i || (i = l.formatMessage({ id: "invite-modal_formLabel" })), s || (s = l.formatMessage({ id: "invite-modal_cta" })), /* @__PURE__ */ a.jsx(
6433
+ const u = K();
6434
+ return r || (r = u.formatMessage({ id: "invite-modal_formTitle" })), i || (i = u.formatMessage({ id: "invite-modal_formLabel" })), s || (s = u.formatMessage({ id: "invite-modal_cta" })), /* @__PURE__ */ a.jsx(
6411
6435
  en,
6412
6436
  {
6413
6437
  title: n,
@@ -6423,7 +6447,7 @@ const Hl = ({
6423
6447
  label: i,
6424
6448
  ctaMessage: s,
6425
6449
  onClose: c,
6426
- sendInvites: u,
6450
+ sendInvites: l,
6427
6451
  reportError: f
6428
6452
  }
6429
6453
  )
@@ -6477,8 +6501,8 @@ const Vl = ({ members: t }) => {
6477
6501
  isOngoingEvent: o,
6478
6502
  pill: c,
6479
6503
  readingTime: f,
6480
- publishedDate: u,
6481
- startDate: l
6504
+ publishedDate: l,
6505
+ startDate: u
6482
6506
  } = e;
6483
6507
  if (t === "question") {
6484
6508
  const d = i && Dn(i);
@@ -6500,8 +6524,8 @@ const Vl = ({ members: t }) => {
6500
6524
  ] })
6501
6525
  ] });
6502
6526
  }
6503
- if (l && !s || o)
6504
- return /* @__PURE__ */ a.jsx("p", { className: "details", children: o ? n.formatMessage({ id: "card_bootcamp" }) : ma(l) });
6527
+ if (u && !s || o)
6528
+ return /* @__PURE__ */ a.jsx("p", { className: "details", children: o ? n.formatMessage({ id: "card_bootcamp" }) : ma(u) });
6505
6529
  if (c)
6506
6530
  return /* @__PURE__ */ a.jsx(
6507
6531
  Bt,
@@ -6512,11 +6536,11 @@ const Vl = ({ members: t }) => {
6512
6536
  children: c
6513
6537
  }
6514
6538
  );
6515
- if (f || u) {
6516
- const d = u && Dn(u);
6539
+ if (f || l) {
6540
+ const d = l && Dn(l);
6517
6541
  return /* @__PURE__ */ a.jsxs("ul", { className: "details", children: [
6518
6542
  f && /* @__PURE__ */ a.jsx("li", { "data-testid": "reading-time", children: n.formatMessage({ id: "card_time_read" }, { time: f }) }),
6519
- u && /* @__PURE__ */ a.jsx("li", { "data-testid": "published-date", children: n.formatMessage(
6543
+ l && /* @__PURE__ */ a.jsx("li", { "data-testid": "published-date", children: n.formatMessage(
6520
6544
  { id: "card_time_ago" },
6521
6545
  {
6522
6546
  time: d ? n.formatMessage(
@@ -6594,9 +6618,9 @@ const Vl = ({ members: t }) => {
6594
6618
  ae(() => {
6595
6619
  t.registered && o((_) => ({ ..._, registered: !0 }));
6596
6620
  }, [t.registered]);
6597
- const { customLinkText: c, startDate: f, dateHasPassed: u, pill: l, slug: d } = t, m = t.contentType;
6621
+ const { customLinkText: c, startDate: f, dateHasPassed: l, pill: u, slug: d } = t, m = t.contentType;
6598
6622
  let p = "";
6599
- if ((y = Vt[m]) != null && y.gtmEvent && (p = Vt[m].gtmEvent), f && u)
6623
+ if ((y = Vt[m]) != null && y.gtmEvent && (p = Vt[m].gtmEvent), f && l)
6600
6624
  return n ? /* @__PURE__ */ a.jsx(
6601
6625
  "a",
6602
6626
  {
@@ -6621,7 +6645,7 @@ const Vl = ({ members: t }) => {
6621
6645
  }
6622
6646
  ) : void 0;
6623
6647
  const g = ["microcourse", "event"];
6624
- if (e && e.onClick && g.includes(m) && l !== "premium") {
6648
+ if (e && e.onClick && g.includes(m) && u !== "premium") {
6625
6649
  const _ = s.loading || s.registered, v = async (b) => {
6626
6650
  if (b.preventDefault(), b.stopPropagation(), !(_ || !e || !e.onClick)) {
6627
6651
  o((j) => ({ ...j, loading: !0 }));
@@ -6665,13 +6689,13 @@ const Go = {
6665
6689
  gtmContext: i = "Carousel",
6666
6690
  className: s = ""
6667
6691
  }) => {
6668
- const o = K(), c = Ce(De), f = c && typeof c.id == "string", [u, l] = te({
6692
+ const o = K(), c = Ce(De), f = c && typeof c.id == "string", [l, u] = te({
6669
6693
  data: null,
6670
6694
  isLoading: !0
6671
- }), { data: d, isLoading: m } = u, p = na(() => {
6695
+ }), { data: d, isLoading: m } = l, p = na(() => {
6672
6696
  n(e, f).then((D) => {
6673
- l(() => ({ data: D, isLoading: !1 }));
6674
- }).catch(() => l((D) => ({ ...D, isLoading: !1 })));
6697
+ u(() => ({ data: D, isLoading: !1 }));
6698
+ }).catch(() => u((D) => ({ ...D, isLoading: !1 })));
6675
6699
  }, [t]);
6676
6700
  if (ae(() => {
6677
6701
  p();
@@ -6826,16 +6850,16 @@ const ec = ({
6826
6850
  className: s,
6827
6851
  gtmContext: o
6828
6852
  }) => {
6829
- const c = K(), [f, u] = te({
6853
+ const c = K(), [f, l] = te({
6830
6854
  cardsPerPage: 4,
6831
6855
  isLoading: !0
6832
- }), { cardsPerPage: l, isLoading: d } = f, [m, p] = te({
6856
+ }), { cardsPerPage: u, isLoading: d } = f, [m, p] = te({
6833
6857
  currentPage: 0,
6834
6858
  loadedPages: [0]
6835
- }), { currentPage: g, loadedPages: y } = m, _ = e.length, v = Math.ceil(_ / l), b = pe(null), j = yt(!0, !0, b == null ? void 0 : b.current);
6859
+ }), { currentPage: g, loadedPages: y } = m, _ = e.length, v = Math.ceil(_ / u), b = pe(null), j = yt(!0, !0, b == null ? void 0 : b.current);
6836
6860
  ae(() => {
6837
6861
  let M = 1;
6838
- j && (j >= _n.fourCards ? M = 4 : j >= _n.threeCards ? M = 3 : j >= _n.twoCards && (M = 2), M > _ && (M = _)), u((O) => ({
6862
+ j && (j >= _n.fourCards ? M = 4 : j >= _n.threeCards ? M = 3 : j >= _n.twoCards && (M = 2), M > _ && (M = _)), l((O) => ({
6839
6863
  ...O,
6840
6864
  cardsPerPage: M,
6841
6865
  isLoading: !1
@@ -6870,7 +6894,7 @@ const ec = ({
6870
6894
  }, R = {
6871
6895
  "--width": `${j || 0}px`,
6872
6896
  "--total-cards": _,
6873
- "--cards-per-page": l,
6897
+ "--cards-per-page": u,
6874
6898
  "--page": g
6875
6899
  };
6876
6900
  if (d)
@@ -6898,7 +6922,7 @@ const ec = ({
6898
6922
  "data-testid": "carousel-list",
6899
6923
  children: e.map((M, O) => {
6900
6924
  let C = W(M, O);
6901
- return C && Jo(O, l, g, y) ? /* @__PURE__ */ a.jsx(
6925
+ return C && Jo(O, u, g, y) ? /* @__PURE__ */ a.jsx(
6902
6926
  Ia,
6903
6927
  {
6904
6928
  id: C,
@@ -6974,8 +6998,8 @@ const ec = ({
6974
6998
  className: r = "",
6975
6999
  ...i
6976
7000
  }) => !t || !t.length ? null : t.map(
6977
- ({ title: s, viewAllUrl: o, cards: c, cardsTypes: f }, u) => {
6978
- const l = s ? window.btoa(s) : `carousel-${u}`, d = u === t.length - 1;
7001
+ ({ title: s, viewAllUrl: o, cards: c, cardsTypes: f }, l) => {
7002
+ const u = s ? window.btoa(s) : `carousel-${l}`, d = l === t.length - 1;
6979
7003
  return e ? /* @__PURE__ */ a.jsxs(gt, { children: [
6980
7004
  /* @__PURE__ */ a.jsx(
6981
7005
  ba,
@@ -6985,7 +7009,7 @@ const ec = ({
6985
7009
  }
6986
7010
  ),
6987
7011
  d ? null : /* @__PURE__ */ a.jsx(Oe, {})
6988
- ] }, `placeholder-${l}`) : /* @__PURE__ */ a.jsxs(gt, { children: [
7012
+ ] }, `placeholder-${u}`) : /* @__PURE__ */ a.jsxs(gt, { children: [
6989
7013
  /* @__PURE__ */ a.jsx(
6990
7014
  ec,
6991
7015
  {
@@ -6996,7 +7020,7 @@ const ec = ({
6996
7020
  }
6997
7021
  ),
6998
7022
  d ? null : /* @__PURE__ */ a.jsx(Oe, {})
6999
- ] }, `carousel-${l}`);
7023
+ ] }, `carousel-${u}`);
7000
7024
  }
7001
7025
  );
7002
7026
  const xn = "joinCommunityButton", La = ({
@@ -7006,28 +7030,28 @@ const xn = "joinCommunityButton", La = ({
7006
7030
  }, leave: () => {
7007
7031
  } }
7008
7032
  }) => {
7009
- const i = K(), s = Ce(De), o = s && typeof s.id == "string", [c, f] = te(t), [u, l] = te(t ? "joined" : "notJoined");
7033
+ const i = K(), s = Ce(De), o = s && typeof s.id == "string", [c, f] = te(t), [l, u] = te(t ? "joined" : "notJoined");
7010
7034
  ae(() => {
7011
- u === "joining" ? l("joined") : u === "leaving" && l("notJoined");
7035
+ l === "joining" ? u("joined") : l === "leaving" && u("notJoined");
7012
7036
  }, [c]);
7013
7037
  const d = {}, m = {};
7014
- return c && u !== "leaving" && (d["data-hover-text"] = i.formatMessage({ id: `${xn}_leave` }), d["aria-label"] = i.formatMessage({ id: `${xn}_member_aria` }), m["aria-hidden"] = "true"), /* @__PURE__ */ a.jsx(
7038
+ return c && l !== "leaving" && (d["data-hover-text"] = i.formatMessage({ id: `${xn}_leave` }), d["aria-label"] = i.formatMessage({ id: `${xn}_member_aria` }), m["aria-hidden"] = "true"), /* @__PURE__ */ a.jsx(
7015
7039
  ie,
7016
7040
  {
7017
7041
  variant: c ? "secondary" : "primary",
7018
7042
  size: "medium",
7019
7043
  styling: { fullWidth: !0 },
7020
- icon: c && u !== "leaving" ? { icon: "tick", position: "left" } : !1,
7044
+ icon: c && l !== "leaving" ? { icon: "tick", position: "left" } : !1,
7021
7045
  onClick: async (p) => {
7022
- o && (p.currentTarget.blur(), c ? (l("leaving"), typeof r == "function" && await r()) : (l("joining"), typeof n == "function" && await n()), f(!c));
7046
+ o && (p.currentTarget.blur(), c ? (u("leaving"), typeof r == "function" && await r()) : (u("joining"), typeof n == "function" && await n()), f(!c));
7023
7047
  },
7024
- className: S("join-community-button", u, {
7025
- active: u === "joining"
7048
+ className: S("join-community-button", l, {
7049
+ active: l === "joining"
7026
7050
  }),
7027
7051
  disabled: !o,
7028
7052
  ...d,
7029
7053
  children: /* @__PURE__ */ a.jsx("span", { className: "text", ...m, children: i.formatMessage({
7030
- id: `${xn}${["joining", "leaving"].includes(u) ? `_${u}` : c ? "_member" : e ? "_short" : ""}`
7054
+ id: `${xn}${["joining", "leaving"].includes(l) ? `_${l}` : c ? "_member" : e ? "_short" : ""}`
7031
7055
  }) })
7032
7056
  }
7033
7057
  );
@@ -7039,14 +7063,14 @@ const wn = "communityDetails_", Kl = ({
7039
7063
  members: { number: r = 0, data: i = [] } = { number: 0, data: [] },
7040
7064
  functions: { invite: s, ...o }
7041
7065
  }) => {
7042
- const c = K(), f = 5, u = r || i.length, l = i.length ? i : Array(f).fill({}), d = `/communities/${n}/members` === window.location.pathname;
7066
+ const c = K(), f = 5, l = r || i.length, u = i.length ? i : Array(f).fill({}), d = `/communities/${n}/members` === window.location.pathname;
7043
7067
  return /* @__PURE__ */ a.jsxs("div", { className: S("community-details", t), children: [
7044
7068
  /* @__PURE__ */ a.jsx(Oe, {}),
7045
7069
  /* @__PURE__ */ a.jsxs("div", { className: "member-details", children: [
7046
7070
  /* @__PURE__ */ a.jsxs("div", { className: "top", children: [
7047
7071
  /* @__PURE__ */ a.jsxs("h4", { children: [
7048
7072
  c.formatMessage({ id: `${wn}members` }),
7049
- /* @__PURE__ */ a.jsx("span", { className: "count", children: u })
7073
+ /* @__PURE__ */ a.jsx("span", { className: "count", children: l })
7050
7074
  ] }),
7051
7075
  !d && /* @__PURE__ */ a.jsx("p", { className: "text-small", children: /* @__PURE__ */ a.jsx("a", { href: `/communities/${n}/members`, children: c.formatMessage({ id: `${wn}viewAll` }) }) })
7052
7076
  ] }),
@@ -7055,12 +7079,12 @@ const wn = "communityDetails_", Kl = ({
7055
7079
  {
7056
7080
  contributors: {
7057
7081
  total: r,
7058
- data: l
7082
+ data: u
7059
7083
  },
7060
7084
  styling: {
7061
7085
  size: "medium",
7062
7086
  showGap: !0,
7063
- showPlaceholders: u === 0
7087
+ showPlaceholders: l === 0
7064
7088
  },
7065
7089
  cutoff: f
7066
7090
  }
@@ -7117,11 +7141,11 @@ const Ql = ({
7117
7141
  text: typeof e != "boolean" && e.text || s.formatMessage({ id: "filters_all" })
7118
7142
  },
7119
7143
  ...t
7120
- ] : t, [c, f] = te(e ? ["all"] : []), u = (l, d) => {
7144
+ ] : t, [c, f] = te(e ? ["all"] : []), l = (u, d) => {
7121
7145
  let m = [];
7122
- c.includes(l) ? m = c.filter((p) => p !== l) : l === "all" ? m = ["all"] : n ? m = [...c.filter((p) => p !== "all"), l] : m = [l], f((p) => (r && typeof r == "function" && r({ current: m, previous: p }), m)), d && typeof d == "function" && d();
7146
+ 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();
7123
7147
  };
7124
- return /* @__PURE__ */ a.jsx("ul", { className: S("filters", i), children: o.map(({ id: l, text: d, disabled: m = !1, callback: p = () => {
7148
+ return /* @__PURE__ */ a.jsx("ul", { className: S("filters", i), children: o.map(({ id: u, text: d, disabled: m = !1, callback: p = () => {
7125
7149
  } }) => {
7126
7150
  let g = {};
7127
7151
  return m && (g = {
@@ -7130,14 +7154,14 @@ const Ql = ({
7130
7154
  }), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
7131
7155
  "button",
7132
7156
  {
7133
- className: S(l, { selected: c.includes(l) }),
7157
+ className: S(u, { selected: c.includes(u) }),
7134
7158
  onClick: (y) => {
7135
- y.preventDefault(), y.stopPropagation(), u(l, p);
7159
+ y.preventDefault(), y.stopPropagation(), l(u, p);
7136
7160
  },
7137
7161
  ...g,
7138
7162
  children: d
7139
7163
  }
7140
- ) }, l);
7164
+ ) }, u);
7141
7165
  }) });
7142
7166
  }, tc = (t, e) => {
7143
7167
  const n = String(t);
@@ -7165,22 +7189,22 @@ const jn = {
7165
7189
  label: c,
7166
7190
  className: f = ""
7167
7191
  }) => {
7168
- const u = K(), [l, d] = te(t);
7192
+ const l = K(), [u, d] = te(t);
7169
7193
  if (ae(() => {
7170
- t !== l && d(t);
7194
+ t !== u && d(t);
7171
7195
  }, [t]), !r || !Object.values(r).some(
7172
7196
  (y) => y && y.post_name
7173
7197
  ))
7174
7198
  return null;
7175
- const p = Object.keys(r), g = l !== t;
7199
+ const p = Object.keys(r), g = u !== t;
7176
7200
  return /* @__PURE__ */ a.jsxs("div", { className: S("language-switcher text-small", o, f), children: [
7177
7201
  /* @__PURE__ */ a.jsxs("nav", { children: [
7178
- o !== "short" && /* @__PURE__ */ a.jsx("p", { children: c || u.formatMessage({ id: `${Pt}label` }) }),
7202
+ o !== "short" && /* @__PURE__ */ a.jsx("p", { children: c || l.formatMessage({ id: `${Pt}label` }) }),
7179
7203
  /* @__PURE__ */ a.jsx("ul", { children: p.map((y) => {
7180
7204
  if (!jn[y])
7181
7205
  return null;
7182
7206
  let _ = { className: y };
7183
- return l === y ? _["aria-label"] = u.formatMessage(
7207
+ return u === y ? _["aria-label"] = l.formatMessage(
7184
7208
  { id: `${Pt}selected` },
7185
7209
  { language: jn[y] }
7186
7210
  ) : _ = {
@@ -7191,7 +7215,7 @@ const jn = {
7191
7215
  }
7192
7216
  }, /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(tt, { ..._, fallbackElement: "span", children: jn[y] }) }, y);
7193
7217
  }) }),
7194
- o !== "short" && !g && /* @__PURE__ */ a.jsx("p", { children: u.formatMessage({
7218
+ o !== "short" && !g && /* @__PURE__ */ a.jsx("p", { children: l.formatMessage({
7195
7219
  id: `${Pt}translation_${e ? "original" : n ? "human" : "machine"}`
7196
7220
  }) })
7197
7221
  ] }),
@@ -7199,7 +7223,7 @@ const jn = {
7199
7223
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
7200
7224
  // @ts-ignore
7201
7225
  // `values` are throwing a type error: https://github.com/formatjs/formatjs/issues/3633
7202
- children: u.formatMessage(
7226
+ children: l.formatMessage(
7203
7227
  { id: `${Pt}disclaimer` },
7204
7228
  {
7205
7229
  email: ut.support,
@@ -7227,9 +7251,9 @@ const kn = _i({ locale: "en", messages: Vn }), tn = ({
7227
7251
  error: kn.formatMessage({ id: "loadMore_error" })
7228
7252
  },
7229
7253
  className: f = "",
7230
- gtmContext: u = "LoadMore"
7254
+ gtmContext: l = "LoadMore"
7231
7255
  }) => {
7232
- const [l, d] = te(""), m = async (p) => {
7256
+ const [u, d] = te(""), m = async (p) => {
7233
7257
  if (!n)
7234
7258
  try {
7235
7259
  await e(p);
@@ -7237,7 +7261,7 @@ const kn = _i({ locale: "en", messages: Vn }), tn = ({
7237
7261
  g instanceof Error ? d(g.message) : d("Unknown error");
7238
7262
  }
7239
7263
  };
7240
- return !l && !t && !c.endOfFeed ? null : /* @__PURE__ */ a.jsx("footer", { className: S("load-more", f), children: !l && t ? /* @__PURE__ */ a.jsx(
7264
+ return !u && !t && !c.endOfFeed ? null : /* @__PURE__ */ a.jsx("footer", { className: S("load-more", f), children: !u && t ? /* @__PURE__ */ a.jsx(
7241
7265
  ie,
7242
7266
  {
7243
7267
  variant: r,
@@ -7245,14 +7269,14 @@ const kn = _i({ locale: "en", messages: Vn }), tn = ({
7245
7269
  styling: s,
7246
7270
  icon: o,
7247
7271
  onClick: m,
7248
- "data-gtm-event-context": u,
7272
+ "data-gtm-event-context": l,
7249
7273
  "data-gtm-event-type": "load-more-click",
7250
7274
  disabled: n,
7251
7275
  className: "gtm-trackable",
7252
7276
  "data-testid": "load-more-button",
7253
7277
  children: c.button
7254
7278
  }
7255
- ) : c.endOfFeed && (!l || l != null && l.includes("Cannot read items")) ? /* @__PURE__ */ a.jsx("p", { children: c.endOfFeed }) : l && /* @__PURE__ */ a.jsx("p", { className: "error", children: c.error }) });
7279
+ ) : c.endOfFeed && (!u || u != null && u.includes("Cannot read items")) ? /* @__PURE__ */ a.jsx("p", { children: c.endOfFeed }) : u && /* @__PURE__ */ a.jsx("p", { className: "error", children: c.error }) });
7256
7280
  };
7257
7281
  const Ba = ({
7258
7282
  variant: t = "default",
@@ -7277,8 +7301,8 @@ const nc = ({
7277
7301
  }) => {
7278
7302
  const i = K(), s = pe(
7279
7303
  null
7280
- ), [o, c] = te(!1), f = (u) => {
7281
- s.current && u.target instanceof HTMLElement && !s.current.contains(u.target) && c(!1);
7304
+ ), [o, c] = te(!1), f = (l) => {
7305
+ s.current && l.target instanceof HTMLElement && !s.current.contains(l.target) && c(!1);
7282
7306
  };
7283
7307
  return ae(() => (document.addEventListener("click", f, !0), () => {
7284
7308
  document.removeEventListener("click", f, !0);
@@ -7299,11 +7323,11 @@ const nc = ({
7299
7323
  screenreaderText: i.formatMessage({ id: "moreMenu" })
7300
7324
  }
7301
7325
  ),
7302
- /* @__PURE__ */ a.jsx("ul", { id: e, hidden: !o, children: n.map(({ href: u, onClick: l, text: d, icon: m, ...p }, g) => {
7326
+ /* @__PURE__ */ a.jsx("ul", { id: e, hidden: !o, children: n.map(({ href: l, onClick: u, text: d, icon: m, ...p }, g) => {
7303
7327
  const y = {
7304
7328
  ...p,
7305
7329
  onClick: (_) => {
7306
- c(!1), typeof l == "function" && l(_);
7330
+ c(!1), typeof u == "function" && u(_);
7307
7331
  },
7308
7332
  onFocus: () => {
7309
7333
  Mt && (clearTimeout(Mt), Mt = !1);
@@ -7314,7 +7338,7 @@ const nc = ({
7314
7338
  }, 100);
7315
7339
  }
7316
7340
  };
7317
- return u && (y.href = u), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
7341
+ return l && (y.href = l), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
7318
7342
  ie,
7319
7343
  {
7320
7344
  variant: "tertiary",
@@ -7440,7 +7464,7 @@ const oc = "shareLinks_", Xl = ({
7440
7464
  const c = K(), f = sc({ title: t, link: e, referrer: n });
7441
7465
  return /* @__PURE__ */ a.jsxs("aside", { className: S("share-links", i, s, o), children: [
7442
7466
  /* @__PURE__ */ a.jsx("p", { className: "text-small", children: c.formatMessage({ id: "shareLinks_label" }) }),
7443
- /* @__PURE__ */ a.jsx("ul", { children: f.map(({ key: u, icon: l, url: d, shouldRender: m = !0, onClick: p }) => {
7467
+ /* @__PURE__ */ a.jsx("ul", { children: f.map(({ key: l, icon: u, url: d, shouldRender: m = !0, onClick: p }) => {
7444
7468
  if (typeof m == "function" && !m())
7445
7469
  return null;
7446
7470
  const g = {};
@@ -7449,78 +7473,78 @@ const oc = "shareLinks_", Xl = ({
7449
7473
  {
7450
7474
  size: i,
7451
7475
  variant: "tertiary",
7452
- icon: { icon: l || u },
7476
+ icon: { icon: u || l },
7453
7477
  href: d,
7454
7478
  target: "_blank",
7455
7479
  rel: "noopener noreferrer",
7456
7480
  className: "gtm-trackable",
7457
7481
  "data-gtm-event-context": `${r}-SocialButtons`,
7458
- "data-gtm-event-type": `${u}-click`,
7482
+ "data-gtm-event-type": `${l}-click`,
7459
7483
  "data-testid": "link",
7460
- screenreaderText: c.formatMessage({ id: `${oc}link_${u}` }),
7484
+ screenreaderText: c.formatMessage({ id: `${oc}link_${l}` }),
7461
7485
  ...g
7462
7486
  }
7463
- ) }, u);
7487
+ ) }, l);
7464
7488
  }) })
7465
7489
  ] });
7466
7490
  };
7467
7491
  const eu = ({ tabs: t, className: e = "", preventLocationChange: n }) => {
7468
- var u;
7469
- const r = (l, d, m) => (l || (l = `panel-${window.btoa(d)}-${m}`), l);
7470
- let i = t.findIndex((l) => l.current === !0);
7492
+ var l;
7493
+ const r = (u, d, m) => (u || (u = `panel-${window.btoa(d)}-${m}`), u);
7494
+ let i = t.findIndex((u) => u.current === !0);
7471
7495
  if (i < 0 && (i = 0), window.location.hash) {
7472
- const l = window.location.hash.replace("#", "");
7473
- if (t.find((m) => m.id === l)) {
7496
+ const u = window.location.hash.replace("#", "");
7497
+ if (t.find((m) => m.id === u)) {
7474
7498
  for (let m = 0; m < t.length; m++)
7475
- if (r(t[m].id, t[m].text, m) === l) {
7499
+ if (r(t[m].id, t[m].text, m) === u) {
7476
7500
  i = m;
7477
7501
  break;
7478
7502
  }
7479
7503
  }
7480
7504
  }
7481
7505
  const [s, o] = te(
7482
- (u = t[i]) != null && u.id ? t[i].id : r(t[i].id, t[i].text, i)
7506
+ (l = t[i]) != null && l.id ? t[i].id : r(t[i].id, t[i].text, i)
7483
7507
  );
7484
7508
  ae(() => {
7485
7509
  if (t[i].hasCarousel) {
7486
- const l = new CustomEvent("hiddenSectionVisible", {
7510
+ const u = new CustomEvent("hiddenSectionVisible", {
7487
7511
  detail: { id: s }
7488
7512
  });
7489
- window.dispatchEvent(l);
7513
+ window.dispatchEvent(u);
7490
7514
  }
7491
7515
  }, [s]);
7492
7516
  const c = [], f = [];
7493
- return t.forEach(({ id: l, text: d, content: m, href: p, hasCarousel: g }, y) => {
7494
- l = r(l, d, y);
7495
- const _ = s === l, v = {};
7496
- p || (v["aria-controls"] = l, v.onClick = (b) => {
7497
- b.preventDefault(), b.stopPropagation(), o(l), !n && (window.location.hash = `#${l}`);
7517
+ return t.forEach(({ id: u, text: d, content: m, href: p, hasCarousel: g }, y) => {
7518
+ u = r(u, d, y);
7519
+ const _ = s === u, v = {};
7520
+ p || (v["aria-controls"] = u, v.onClick = (b) => {
7521
+ b.preventDefault(), b.stopPropagation(), o(u), !n && (window.location.hash = `#${u}`);
7498
7522
  }, f.push(
7499
7523
  /* @__PURE__ */ a.jsx(
7500
7524
  "section",
7501
7525
  {
7502
- id: l,
7526
+ id: u,
7503
7527
  hidden: !_,
7504
7528
  role: "tabpanel",
7505
- "aria-labelledby": `tab-${l}`,
7529
+ "aria-labelledby": `tab-${u}`,
7506
7530
  "aria-live": _ ? "assertive" : "off",
7507
7531
  children: typeof m == "string" ? /* @__PURE__ */ a.jsx("p", { children: m }) : m
7508
7532
  },
7509
- `section-${l}`
7533
+ `section-${u}`
7510
7534
  )
7511
7535
  )), c.push(
7512
7536
  /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
7513
7537
  "a",
7514
7538
  {
7515
- href: p || `#${l}`,
7516
- id: `tab-${l}`,
7539
+ href: p || `#${u}`,
7540
+ id: `tab-${u}`,
7517
7541
  className: S({ selected: _ }),
7518
7542
  role: "tab",
7519
7543
  "aria-selected": _,
7520
7544
  ...v,
7521
7545
  children: d
7522
7546
  }
7523
- ) }, `tab-${l}`)
7547
+ ) }, `tab-${u}`)
7524
7548
  );
7525
7549
  }), /* @__PURE__ */ a.jsxs("div", { className: S("tabs-wrapper", e), children: [
7526
7550
  /* @__PURE__ */ a.jsx("ul", { className: "tabs", role: "tablist", children: c }),
@@ -7591,26 +7615,26 @@ const Sn = "cookieBanner_", Cn = [
7591
7615
  const t = K(), [e, n, r] = aa(Cn), [i, s] = te(
7592
7616
  !e["apol-cookie-banner"]
7593
7617
  ), o = () => {
7594
- Cn.forEach((l) => {
7595
- n(l, !0, {
7618
+ Cn.forEach((u) => {
7619
+ n(u, !0, {
7596
7620
  path: "/",
7597
7621
  expires: $n,
7598
- domain: l === "apolitical-performance-cookie-consent" ? ".apolitical.co" : void 0
7622
+ domain: u === "apolitical-performance-cookie-consent" ? ".apolitical.co" : void 0
7599
7623
  });
7600
7624
  }), s(!1), window.location.reload();
7601
7625
  }, c = () => {
7602
7626
  n("apol-cookie-banner", !0, {
7603
7627
  path: "/",
7604
7628
  expires: $n
7605
- }), Cn.forEach((l) => {
7606
- if (l === "apol-cookie-banner") {
7607
- n(l, !0, {
7629
+ }), Cn.forEach((u) => {
7630
+ if (u === "apol-cookie-banner") {
7631
+ n(u, !0, {
7608
7632
  path: "/",
7609
7633
  expires: $n
7610
7634
  });
7611
7635
  return;
7612
7636
  }
7613
- r(l);
7637
+ r(u);
7614
7638
  }), s(!1);
7615
7639
  };
7616
7640
  if (!i)
@@ -7619,21 +7643,21 @@ const Sn = "cookieBanner_", Cn = [
7619
7643
  { id: "settings", href: "/pages/cookie-policy", gtmType: "policy-page" },
7620
7644
  { id: "reject", onClick: c, gtmType: "reject-all" },
7621
7645
  { id: "accept", onClick: o, gtmType: "accepted-all" }
7622
- ], u = [];
7623
- return f.forEach((l) => {
7624
- u.push({
7625
- variant: l.href ? "tertiary" : "primary",
7626
- href: l.href,
7627
- onClick: l.onClick,
7646
+ ], l = [];
7647
+ return f.forEach((u) => {
7648
+ l.push({
7649
+ variant: u.href ? "tertiary" : "primary",
7650
+ href: u.href,
7651
+ onClick: u.onClick,
7628
7652
  className: "gtm-trackable",
7629
7653
  "data-gtm-event-context": "cookie-banner",
7630
- "data-gtm-event-type": `cookie-${l.gtmType}-click`,
7631
- children: t.formatMessage({ id: `${Sn}buttons_${l.id}` })
7654
+ "data-gtm-event-type": `cookie-${u.gtmType}-click`,
7655
+ children: t.formatMessage({ id: `${Sn}buttons_${u.id}` })
7632
7656
  });
7633
7657
  }), /* @__PURE__ */ a.jsxs("aside", { id: "cookie-banner", className: "text-medium", children: [
7634
7658
  /* @__PURE__ */ a.jsx("h6", { children: t.formatMessage({ id: `${Sn}title` }) }),
7635
7659
  /* @__PURE__ */ a.jsx("p", { children: t.formatMessage({ id: `${Sn}text` }) }),
7636
- /* @__PURE__ */ a.jsx(_t, { buttons: u })
7660
+ /* @__PURE__ */ a.jsx(_t, { buttons: l })
7637
7661
  ] });
7638
7662
  }, Me = {
7639
7663
  platform: {
@@ -8004,7 +8028,7 @@ const Qe = "footer_", Yt = "SiteFooter", Hr = ({ group: t }) => {
8004
8028
  const o = K(), c = ia(Kt, t);
8005
8029
  if (!c || c.onlyShow && (c.onlyShow === "logged-in" && !e || c.onlyShow === "logged-out" && e))
8006
8030
  return null;
8007
- const f = "doTrack" in c, u = s === null ? f ? c.doTrack : !0 : s, l = t.includes("buttons.");
8031
+ const f = "doTrack" in c, l = s === null ? f ? c.doTrack : !0 : s, u = t.includes("buttons.");
8008
8032
  let d = `header_${t.replaceAll(".", "_")}`;
8009
8033
  c.hasVariantText && (d += `_logged${e ? "In" : "Out"}`);
8010
8034
  let m = !1;
@@ -8017,12 +8041,12 @@ const Qe = "footer_", Yt = "SiteFooter", Hr = ({ group: t }) => {
8017
8041
  m = {
8018
8042
  href: c.href,
8019
8043
  role: "menuitem"
8020
- }, u && (m = {
8044
+ }, l && (m = {
8021
8045
  ...m,
8022
8046
  className: "gtm-trackable",
8023
8047
  "data-gtm-event-type": b,
8024
8048
  "data-gtm-event-context": "HeaderButtons"
8025
- }), l && (m = {
8049
+ }), u && (m = {
8026
8050
  ...m,
8027
8051
  variant: "secondary",
8028
8052
  size: { mobile: "small", 881: "large" },
@@ -8067,7 +8091,7 @@ const Qe = "footer_", Yt = "SiteFooter", Hr = ({ group: t }) => {
8067
8091
  ..._,
8068
8092
  children: [
8069
8093
  m ? Y.createElement(
8070
- l ? ie : "a",
8094
+ u ? ie : "a",
8071
8095
  m,
8072
8096
  o.formatMessage({ id: d })
8073
8097
  ) : o.formatMessage({ id: d }),
@@ -8079,7 +8103,7 @@ const Qe = "footer_", Yt = "SiteFooter", Hr = ({ group: t }) => {
8079
8103
  isDesktopVersion: n,
8080
8104
  menus: r,
8081
8105
  callback: i,
8082
- doTrack: f ? u : null
8106
+ doTrack: f ? l : null
8083
8107
  };
8084
8108
  return c[b].order ? /* @__PURE__ */ a.jsxs(
8085
8109
  "li",
@@ -8125,38 +8149,38 @@ const dc = { height: 67, height_desktop: 83 }, Ua = ({ showNavigation: t = !0 })
8125
8149
  navigation: { desktop: !1, default: !1 },
8126
8150
  account: { desktop: !1, default: !1 }
8127
8151
  }
8128
- }), { headerIsVisible: f, menus: u, focusElements: l } = o;
8152
+ }), { headerIsVisible: f, menus: l, focusElements: u } = o;
8129
8153
  Di({
8130
8154
  scrollPosition: dc[`height${s.navigation ? "_desktop" : ""}`],
8131
8155
  callbacks: {
8132
8156
  scrollUp: () => {
8133
- !s && u.navigation || fe.shouldChangeHeaderIsVisible(!0, u, c);
8157
+ !s && l.navigation || fe.shouldChangeHeaderIsVisible(!0, l, c);
8134
8158
  },
8135
8159
  scrollDown: () => {
8136
- !s && u.navigation || fe.shouldChangeHeaderIsVisible(!1, u, c);
8160
+ !s && l.navigation || fe.shouldChangeHeaderIsVisible(!1, l, c);
8137
8161
  }
8138
8162
  }
8139
8163
  });
8140
8164
  const d = (p, g) => {
8141
- fe.handleMenus({ id: p, value: g, menus: u, dispatch: c });
8165
+ fe.handleMenus({ id: p, value: g, menus: l, dispatch: c });
8142
8166
  }, m = pe(null);
8143
8167
  return vt(() => {
8144
- u.navigation && fe.autoFocus({
8168
+ l.navigation && fe.autoFocus({
8145
8169
  menu: "navigation",
8146
8170
  navigationRef: m,
8147
8171
  isDesktopVersion: s.navigation,
8148
- focusElements: l,
8172
+ focusElements: u,
8149
8173
  dispatch: c
8150
8174
  });
8151
- }, [u.navigation]), vt(() => {
8152
- u.account && fe.autoFocus({
8175
+ }, [l.navigation]), vt(() => {
8176
+ l.account && fe.autoFocus({
8153
8177
  menu: "account",
8154
8178
  navigationRef: m,
8155
8179
  isDesktopVersion: s.navigation,
8156
- focusElements: l,
8180
+ focusElements: u,
8157
8181
  dispatch: c
8158
8182
  });
8159
- }, [u.account]), n && n.isLoading ? null : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
8183
+ }, [l.account]), n && n.isLoading ? null : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
8160
8184
  /* @__PURE__ */ a.jsxs(
8161
8185
  "nav",
8162
8186
  {
@@ -8182,15 +8206,15 @@ const dc = { height: 67, height_desktop: 83 }, Ua = ({ showNavigation: t = !0 })
8182
8206
  {
8183
8207
  className: "menu-button gtm-trackable",
8184
8208
  onClick: (p) => {
8185
- p.preventDefault(), p.stopPropagation(), d("navigation", !u.navigation);
8209
+ p.preventDefault(), p.stopPropagation(), d("navigation", !l.navigation);
8186
8210
  },
8187
8211
  "data-gtm-event-type": "open-tab-menu-click",
8188
8212
  "data-gtm-event-context": "HeaderLeft-Chevron",
8189
8213
  "aria-haspopup": "true",
8190
- "aria-expanded": u.navigation,
8214
+ "aria-expanded": l.navigation,
8191
8215
  "aria-controls": "navigation",
8192
8216
  children: /* @__PURE__ */ a.jsx(be, { children: e.formatMessage({
8193
- id: `header_menu_${u.navigation ? "hide" : "show"}`
8217
+ id: `header_menu_${l.navigation ? "hide" : "show"}`
8194
8218
  }) })
8195
8219
  }
8196
8220
  ),
@@ -8199,16 +8223,16 @@ const dc = { height: 67, height_desktop: 83 }, Ua = ({ showNavigation: t = !0 })
8199
8223
  {
8200
8224
  ref: m,
8201
8225
  id: "navigation",
8202
- hidden: s.navigation || u.account ? !1 : !u.navigation,
8226
+ hidden: s.navigation || l.account ? !1 : !l.navigation,
8203
8227
  role: "menu",
8204
- "data-showing": !s.navigation && u.account ? "account" : "default",
8228
+ "data-showing": !s.navigation && l.account ? "account" : "default",
8205
8229
  children: Kt.order.map((p) => /* @__PURE__ */ a.jsx(
8206
8230
  Gt,
8207
8231
  {
8208
8232
  id: p,
8209
8233
  isLoggedIn: i,
8210
8234
  isDesktopVersion: s.navigation,
8211
- menus: { navigation: u.navigation, account: u.account },
8235
+ menus: { navigation: l.navigation, account: l.account },
8212
8236
  callback: d
8213
8237
  },
8214
8238
  p
@@ -8220,16 +8244,16 @@ const dc = { height: 67, height_desktop: 83 }, Ua = ({ showNavigation: t = !0 })
8220
8244
  {
8221
8245
  className: "search toggle-search-button",
8222
8246
  onClick: (p) => {
8223
- p.preventDefault(), p.stopPropagation(), d("search", !u.search);
8247
+ p.preventDefault(), p.stopPropagation(), d("search", !l.search);
8224
8248
  },
8225
8249
  "aria-haspopup": "true",
8226
- "aria-expanded": u.search,
8250
+ "aria-expanded": l.search,
8227
8251
  "aria-controls": "search-form",
8228
8252
  children: /* @__PURE__ */ a.jsx(
8229
8253
  be,
8230
8254
  {
8231
8255
  children: e.formatMessage({
8232
- id: `header_search_${u.search ? "hide" : "show"}`
8256
+ id: `header_search_${l.search ? "hide" : "show"}`
8233
8257
  })
8234
8258
  }
8235
8259
  )
@@ -8240,7 +8264,7 @@ const dc = { height: 67, height_desktop: 83 }, Ua = ({ showNavigation: t = !0 })
8240
8264
  {
8241
8265
  id: "global-search",
8242
8266
  handleToggle: {
8243
- searchIsOpen: u.search,
8267
+ searchIsOpen: l.search,
8244
8268
  isDesktopVersion: s.search
8245
8269
  },
8246
8270
  gtmContext: "search-bar-header",
@@ -8254,16 +8278,16 @@ const dc = { height: 67, height_desktop: 83 }, Ua = ({ showNavigation: t = !0 })
8254
8278
  onClick: (p) => fe.events.onClick(p, {
8255
8279
  id: "account",
8256
8280
  callback: d,
8257
- isOpen: u.account
8281
+ isOpen: l.account
8258
8282
  }),
8259
8283
  onMouseEnter: () => fe.events.onMouseEnter({ id: "account", callback: d }),
8260
8284
  onMouseLeave: () => fe.events.onBlur({ id: "account", callback: d }),
8261
8285
  "aria-haspopup": "true",
8262
- "aria-expanded": u.account,
8286
+ "aria-expanded": l.account,
8263
8287
  "aria-controls": "navigation",
8264
8288
  children: [
8265
8289
  /* @__PURE__ */ a.jsx(be, { children: e.formatMessage({
8266
- id: `header_account_${u.account ? "hide" : "show"}`
8290
+ id: `header_account_${l.account ? "hide" : "show"}`
8267
8291
  }) }),
8268
8292
  /* @__PURE__ */ a.jsx(
8269
8293
  He,
@@ -8284,7 +8308,7 @@ const dc = { height: 67, height_desktop: 83 }, Ua = ({ showNavigation: t = !0 })
8284
8308
  "div",
8285
8309
  {
8286
8310
  className: S("overlay", {
8287
- open: u.navigation || u.account || !s.search && u.search
8311
+ open: l.navigation || l.account || !s.search && l.search
8288
8312
  })
8289
8313
  }
8290
8314
  )
@@ -8312,7 +8336,7 @@ const fc = () => {
8312
8336
  className: o = "",
8313
8337
  locale: c = "en"
8314
8338
  }) => {
8315
- const { navigation: f = !0, footer: u = !0 } = i, { background: l = "default", variant: d = "default", circle: m = "default" } = s, p = Oi();
8339
+ const { navigation: f = !0, footer: l = !0 } = i, { background: u = "default", variant: d = "default", circle: m = "default" } = s, p = Oi();
8316
8340
  ae(() => {
8317
8341
  window.scrollTo(0, 0);
8318
8342
  }, [p]);
@@ -8321,22 +8345,22 @@ const fc = () => {
8321
8345
  }), _ = At(n, {
8322
8346
  locale: c
8323
8347
  }), v = {};
8324
- return l !== "default" && (v[l] = !0), d !== "default" && (v[d] = !0), m !== "default" && (v[m] = !0), /* @__PURE__ */ a.jsx(Si, { onError: r, fallback: /* @__PURE__ */ a.jsx(fc, {}), children: /* @__PURE__ */ a.jsx(vi, { fallback: null, children: /* @__PURE__ */ a.jsxs(
8348
+ return u !== "default" && (v[u] = !0), d !== "default" && (v[d] = !0), m !== "default" && (v[m] = !0), /* @__PURE__ */ a.jsx(Si, { onError: r, fallback: /* @__PURE__ */ a.jsx(fc, {}), children: /* @__PURE__ */ a.jsx(vi, { fallback: null, children: /* @__PURE__ */ a.jsxs(
8325
8349
  "div",
8326
8350
  {
8327
8351
  id: "wrapper",
8328
- className: S(o, v, { "has-footer": u }),
8352
+ className: S(o, v, { "has-footer": l }),
8329
8353
  children: [
8330
8354
  /* @__PURE__ */ a.jsx(Ua, { showNavigation: f }),
8331
8355
  /* @__PURE__ */ a.jsxs("section", { id: "content-wrapper", children: [
8332
8356
  y && /* @__PURE__ */ a.jsx("div", { className: "additional-content prepended", children: y }),
8333
- Y.createElement(l === "bold" ? Da : "div", {
8357
+ Y.createElement(u === "bold" ? Da : "div", {
8334
8358
  id: "content",
8335
8359
  children: g
8336
8360
  })
8337
8361
  ] }),
8338
8362
  _ && /* @__PURE__ */ a.jsx("div", { className: "additional-content appended", children: _ }),
8339
- u && /* @__PURE__ */ a.jsx(qa, {}),
8363
+ l && /* @__PURE__ */ a.jsx(qa, {}),
8340
8364
  /* @__PURE__ */ a.jsx(uc, {})
8341
8365
  ]
8342
8366
  }
@@ -8385,29 +8409,29 @@ const ru = ({
8385
8409
  if (!t || t.length < 1)
8386
8410
  return null;
8387
8411
  const f = [];
8388
- return t.forEach((u) => {
8389
- if (!u)
8412
+ return t.forEach((l) => {
8413
+ if (!l)
8390
8414
  return;
8391
- const l = pc.getTagDetails(u);
8392
- l && f.push(l);
8415
+ const u = pc.getTagDetails(l);
8416
+ u && f.push(u);
8393
8417
  }), f.length < 1 ? null : /* @__PURE__ */ a.jsx(
8394
8418
  "ul",
8395
8419
  {
8396
8420
  className: S("tags text-small", e, i, {
8397
8421
  "one-line": n
8398
8422
  }),
8399
- children: f.map((u) => {
8400
- const l = c.formatMessage({ id: u.text });
8401
- return /* @__PURE__ */ a.jsx("li", { children: u.href && r ? /* @__PURE__ */ a.jsx(
8423
+ children: f.map((l) => {
8424
+ const u = c.formatMessage({ id: l.text });
8425
+ return /* @__PURE__ */ a.jsx("li", { children: l.href && r ? /* @__PURE__ */ a.jsx(
8402
8426
  "a",
8403
8427
  {
8404
- href: u.href,
8428
+ href: l.href,
8405
8429
  className: "gtm-trackable",
8406
8430
  "data-gtm-event-type": s,
8407
8431
  "data-gtm-event-context": o,
8408
- children: l
8432
+ children: u
8409
8433
  }
8410
- ) : l }, u.id);
8434
+ ) : u }, l.id);
8411
8435
  })
8412
8436
  }
8413
8437
  );
@@ -8427,10 +8451,10 @@ const au = ({
8427
8451
  c.formatMessage({ id: "membersList" }),
8428
8452
  /* @__PURE__ */ a.jsx("span", { className: "count", children: e })
8429
8453
  ] }),
8430
- /* @__PURE__ */ a.jsx("ul", { children: t.map((f, u) => /* @__PURE__ */ a.jsxs("li", { children: [
8454
+ /* @__PURE__ */ a.jsx("ul", { children: t.map((f, l) => /* @__PURE__ */ a.jsxs("li", { children: [
8431
8455
  /* @__PURE__ */ a.jsx(Jn, { member: f, gtmContext: i, gtmType: s }),
8432
8456
  f.isAdmin && /* @__PURE__ */ a.jsx(Bt, { children: c.formatMessage({ id: "membersList_admin" }) })
8433
- ] }, u)) }),
8457
+ ] }, l)) }),
8434
8458
  n && /* @__PURE__ */ a.jsx(
8435
8459
  tn,
8436
8460
  {
@@ -8454,12 +8478,12 @@ const iu = ({
8454
8478
  className: c = ""
8455
8479
  }) => {
8456
8480
  const f = K();
8457
- let u = i ? n : r;
8458
- u > 99 ? u = 100 : u < 1 && (u = 0);
8459
- const { highlightPercentage: l = !1 } = o;
8481
+ let l = i ? n : r;
8482
+ l > 99 ? l = 100 : l < 1 && (l = 0);
8483
+ const { highlightPercentage: u = !1 } = o;
8460
8484
  return Y.createElement(t, {
8461
8485
  className: S("course-progression", c, {
8462
- "highlight-percentage": l,
8486
+ "highlight-percentage": u,
8463
8487
  "has-circle-graph": s === "circle"
8464
8488
  }),
8465
8489
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
@@ -8467,10 +8491,10 @@ const iu = ({
8467
8491
  { id: "courseProgression_done" },
8468
8492
  {
8469
8493
  percent: (d) => /* @__PURE__ */ a.jsx("strong", { children: d }),
8470
- number: u
8494
+ number: l
8471
8495
  }
8472
8496
  ) }),
8473
- u < 100 && i && /* @__PURE__ */ a.jsx(
8497
+ l < 100 && i && /* @__PURE__ */ a.jsx(
8474
8498
  Gn,
8475
8499
  {
8476
8500
  time: e,
@@ -8480,7 +8504,7 @@ const iu = ({
8480
8504
  /* @__PURE__ */ a.jsx(
8481
8505
  ga,
8482
8506
  {
8483
- progress: u,
8507
+ progress: l,
8484
8508
  styling: {
8485
8509
  layout: s || "bar",
8486
8510
  size: s && s === "circle" ? "small" : "default"
@@ -8529,11 +8553,11 @@ const su = ({
8529
8553
  sectionTime: o,
8530
8554
  slug: c,
8531
8555
  timeLeft: f,
8532
- title: u
8556
+ title: l
8533
8557
  },
8534
- quizScores: l
8558
+ quizScores: u
8535
8559
  }) => {
8536
- const d = K(), m = "courseStructure_", p = u.toLowerCase().includes("course conclusion");
8560
+ const d = K(), m = "courseStructure_", p = l.toLowerCase().includes("course conclusion");
8537
8561
  return /* @__PURE__ */ a.jsxs(
8538
8562
  Kn,
8539
8563
  {
@@ -8553,7 +8577,7 @@ const su = ({
8553
8577
  }
8554
8578
  ) })
8555
8579
  ] }),
8556
- /* @__PURE__ */ a.jsx("h3", { children: u })
8580
+ /* @__PURE__ */ a.jsx("h3", { children: l })
8557
8581
  ] }),
8558
8582
  shouldAnimate: !0,
8559
8583
  children: [
@@ -8610,7 +8634,7 @@ const su = ({
8610
8634
  icon: v,
8611
8635
  optional: T,
8612
8636
  type: W,
8613
- children: l && l[w] && /* @__PURE__ */ a.jsx("span", { className: "quiz-score", children: `${l[w]}%` })
8637
+ children: u && u[w] && /* @__PURE__ */ a.jsx("span", { className: "quiz-score", children: `${u[w]}%` })
8614
8638
  }
8615
8639
  )
8616
8640
  ] })
@@ -8682,10 +8706,10 @@ const we = "discussion_form_", nr = ({
8682
8706
  create: { projectNames: ["questions-answers"] }
8683
8707
  }
8684
8708
  },
8685
- gtmContext: u = "DiscussionForm"
8709
+ gtmContext: l = "DiscussionForm"
8686
8710
  }) => {
8687
8711
  var O, C, E;
8688
- const l = K(), d = Ce(De), [m, p] = te(
8712
+ const u = K(), d = Ce(De), [m, p] = te(
8689
8713
  n.isEditing && n.isEditing.text || ""
8690
8714
  ), [g, y] = te(c.error || !1), [_, v] = te(!1), b = pe(null);
8691
8715
  if (r || (r = b), n.isLoading)
@@ -8701,12 +8725,12 @@ const we = "discussion_form_", nr = ({
8701
8725
  p($);
8702
8726
  let L;
8703
8727
  !d || !d.id ? L = Se(
8704
- l.formatMessage,
8728
+ u.formatMessage,
8705
8729
  `${we}error_loggedOut`,
8706
8730
  t.type,
8707
8731
  "action"
8708
8732
  ) : e ? $.length >= s && (L = `${we}error_tooLong`) : L = Se(
8709
- l.formatMessage,
8733
+ u.formatMessage,
8710
8734
  `${we}error_noPermission`,
8711
8735
  t.type,
8712
8736
  "action"
@@ -8760,12 +8784,12 @@ const we = "discussion_form_", nr = ({
8760
8784
  const I = U;
8761
8785
  let Z = `${we}error`;
8762
8786
  I != null && I.message.includes("entry already exists") && (Z = Se(
8763
- l.formatMessage,
8787
+ u.formatMessage,
8764
8788
  `${we}error_alreadyExists`,
8765
8789
  t.type,
8766
8790
  "action"
8767
8791
  )), I != null && I.message.includes("429") ? Z = Se(
8768
- l.formatMessage,
8792
+ u.formatMessage,
8769
8793
  `${we}error_tooMany`,
8770
8794
  t.type,
8771
8795
  "action"
@@ -8781,10 +8805,10 @@ const we = "discussion_form_", nr = ({
8781
8805
  size: { mobile: "small", 600: "medium" },
8782
8806
  onClick: f.handleCancel,
8783
8807
  className: "gtm-trackable",
8784
- "data-gtm-event-context": u,
8808
+ "data-gtm-event-context": l,
8785
8809
  "data-gtm-event-type": `cancel-${t.type}-click`,
8786
8810
  disabled: !c.cancel && (!d || !d.id || !m),
8787
- children: l.formatMessage({ id: `${we}cancel` })
8811
+ children: u.formatMessage({ id: `${we}cancel` })
8788
8812
  }), M.push({
8789
8813
  variant: "primary",
8790
8814
  size: { mobile: "small", 600: "medium" },
@@ -8798,11 +8822,11 @@ const we = "discussion_form_", nr = ({
8798
8822
  w(x);
8799
8823
  },
8800
8824
  className: "gtm-trackable",
8801
- "data-gtm-event-context": u,
8825
+ "data-gtm-event-context": l,
8802
8826
  "data-gtm-event-type": `${n.isEditing ? "save" : "submit"}-${t.type}-click`,
8803
8827
  "data-testid": "save-button",
8804
8828
  disabled: !d || !d.id || !e || R || W || n.isEditing && m === n.isEditing.text,
8805
- children: l.formatMessage({
8829
+ children: u.formatMessage({
8806
8830
  id: `${we}${W ? n.isEditing ? "saving" : "posting" : n.isEditing ? "save" : "post"}`
8807
8831
  })
8808
8832
  }), /* @__PURE__ */ a.jsxs(
@@ -8814,16 +8838,16 @@ const we = "discussion_form_", nr = ({
8814
8838
  }),
8815
8839
  "data-testid": `discussion-${t.type}-form`,
8816
8840
  children: [
8817
- (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") }),
8841
+ (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") }),
8818
8842
  /* @__PURE__ */ a.jsx(
8819
8843
  Jn,
8820
8844
  {
8821
8845
  member: d || "community",
8822
- gtmContext: u,
8846
+ gtmContext: l,
8823
8847
  gtmType: "profile-click"
8824
8848
  }
8825
8849
  ),
8826
- /* @__PURE__ */ a.jsx(be, { element: "label", showOnFocus: !1, htmlFor: `${T}-input`, children: Se(l.formatMessage, `${we}label`, t.type, "action") }),
8850
+ /* @__PURE__ */ a.jsx(be, { element: "label", showOnFocus: !1, htmlFor: `${T}-input`, children: Se(u.formatMessage, `${we}label`, t.type, "action") }),
8827
8851
  /* @__PURE__ */ a.jsx(
8828
8852
  Ci,
8829
8853
  {
@@ -8831,7 +8855,7 @@ const we = "discussion_form_", nr = ({
8831
8855
  id: `${T}-input`,
8832
8856
  name: t.type,
8833
8857
  placeholder: i || Se(
8834
- l.formatMessage,
8858
+ u.formatMessage,
8835
8859
  `${we}placeholder`,
8836
8860
  t.type,
8837
8861
  "action"
@@ -8845,14 +8869,14 @@ const we = "discussion_form_", nr = ({
8845
8869
  autoFocus: !!n.isEditing
8846
8870
  }
8847
8871
  ),
8848
- /* @__PURE__ */ a.jsx("small", { children: Se(l.formatMessage, `${we}explainer`, t.type, "action", {
8872
+ /* @__PURE__ */ a.jsx("small", { children: Se(u.formatMessage, `${we}explainer`, t.type, "action", {
8849
8873
  a: (x) => /* @__PURE__ */ a.jsx(
8850
8874
  "a",
8851
8875
  {
8852
8876
  href: "https://about.apolitical.co/q-and-a-community-guidelines",
8853
8877
  target: "_blank",
8854
8878
  className: "gtm-trackable",
8855
- "data-gtm-event-context": u,
8879
+ "data-gtm-event-context": l,
8856
8880
  "data-gtm-event-type": "community-guidelines-link",
8857
8881
  rel: "noreferrer",
8858
8882
  children: x
@@ -8860,11 +8884,11 @@ const we = "discussion_form_", nr = ({
8860
8884
  )
8861
8885
  }) }),
8862
8886
  /* @__PURE__ */ a.jsx(_t, { buttons: M }),
8863
- _ === "submitted" && n.showSuccessMessage && /* @__PURE__ */ a.jsx(qt, { className: "success", "data-testid": "success", children: Se(l.formatMessage, `${we}success`, t.type, "action") }),
8864
- g && /* @__PURE__ */ a.jsx(qt, { id: "error-message", className: "error", "data-testid": "error", children: c.error ? c.error : typeof g == "string" ? g.includes(" ") ? g : l.formatMessage(
8887
+ _ === "submitted" && n.showSuccessMessage && /* @__PURE__ */ a.jsx(qt, { className: "success", "data-testid": "success", children: Se(u.formatMessage, `${we}success`, t.type, "action") }),
8888
+ g && /* @__PURE__ */ a.jsx(qt, { id: "error-message", className: "error", "data-testid": "error", children: c.error ? c.error : typeof g == "string" ? g.includes(" ") ? g : u.formatMessage(
8865
8889
  { id: g },
8866
8890
  {
8867
- action: l.formatMessage({
8891
+ action: u.formatMessage({
8868
8892
  id: `discussion_action_${t.type}`
8869
8893
  }),
8870
8894
  maxLength: s
@@ -8888,7 +8912,7 @@ const we = "discussion_form_", nr = ({
8888
8912
  }
8889
8913
  }
8890
8914
  );
8891
- const { content: o, functions: c, meta: f, ...u } = t;
8915
+ const { content: o, functions: c, meta: f, ...l } = t;
8892
8916
  return /* @__PURE__ */ a.jsx(
8893
8917
  nr,
8894
8918
  {
@@ -8896,7 +8920,7 @@ const we = "discussion_form_", nr = ({
8896
8920
  functions: { ...c, create: (c == null ? void 0 : c.create) || (() => {
8897
8921
  }) },
8898
8922
  meta: { ...f, isEditing: (f == null ? void 0 : f.isEditing) || !1, showSuccessMessage: !1 },
8899
- ...u
8923
+ ...l
8900
8924
  }
8901
8925
  );
8902
8926
  }, vc = {
@@ -8930,11 +8954,11 @@ const Pn = () => {
8930
8954
  }, deleteLike: f = () => {
8931
8955
  } } = {}
8932
8956
  }) => {
8933
- const u = K();
8957
+ const l = K();
8934
8958
  ae(() => {
8935
8959
  p(i);
8936
8960
  }, [i]);
8937
- const [l, d] = te(e), [m, p] = te(i), [g, y] = te(!1), [_, v] = te(!1), b = bt(
8961
+ const [u, d] = te(e), [m, p] = te(i), [g, y] = te(!1), [_, v] = te(!1), b = bt(
8938
8962
  () => _c(n, Mn),
8939
8963
  [n]
8940
8964
  ), j = (w) => {
@@ -8946,7 +8970,7 @@ const Pn = () => {
8946
8970
  }, T = async () => {
8947
8971
  if (Pn(), g || !o)
8948
8972
  return !1;
8949
- let w = m ? l - 1 : l + 1;
8973
+ let w = m ? u - 1 : u + 1;
8950
8974
  w < 0 && (w = 0), y(!0), d(w), p(!m);
8951
8975
  try {
8952
8976
  if (s && s.slugs) {
@@ -8986,12 +9010,12 @@ const Pn = () => {
8986
9010
  size: "medium",
8987
9011
  icon: { icon: m ? "heart" : "heart_empty", animate: "bounce" },
8988
9012
  className: S({ "do-animation": m && !i }),
8989
- screenreaderText: o ? u.formatMessage(
9013
+ screenreaderText: o ? l.formatMessage(
8990
9014
  {
8991
9015
  id: `discussion_likes_${m ? "unlike" : "like"}`
8992
9016
  },
8993
9017
  {
8994
- action: u.formatMessage({
9018
+ action: l.formatMessage({
8995
9019
  id: `discussion_action_${s.type}`
8996
9020
  })
8997
9021
  }
@@ -9007,11 +9031,11 @@ const Pn = () => {
9007
9031
  /* @__PURE__ */ a.jsx(
9008
9032
  "span",
9009
9033
  {
9010
- className: S("number-of-likes", { "no-likes": l === 0 }),
9034
+ className: S("number-of-likes", { "no-likes": u === 0 }),
9011
9035
  "data-testid": "number-of-likes",
9012
- children: u.formatMessage(
9036
+ children: l.formatMessage(
9013
9037
  { id: `discussion_likes${r ? "_short" : ""}` },
9014
- { number: l }
9038
+ { number: u }
9015
9039
  )
9016
9040
  }
9017
9041
  ),
@@ -9026,7 +9050,7 @@ const Pn = () => {
9026
9050
  children: w.name
9027
9051
  }
9028
9052
  ) }, w.id || window.btoa(w.name))),
9029
- e > Mn && /* @__PURE__ */ a.jsx("li", { children: u.formatMessage(
9053
+ e > Mn && /* @__PURE__ */ a.jsx("li", { children: l.formatMessage(
9030
9054
  { id: "discussion_likes_more" },
9031
9055
  { number: e - Mn }
9032
9056
  ) })
@@ -9056,7 +9080,7 @@ const Pe = "discussion_", wc = 280, rn = ({
9056
9080
  updateContent: () => {
9057
9081
  }
9058
9082
  },
9059
- likes: { createLike: u, deleteLike: l } = { createLike: () => {
9083
+ likes: { createLike: l, deleteLike: u } = { createLike: () => {
9060
9084
  }, deleteLike: () => {
9061
9085
  } },
9062
9086
  comments: { openComments: d } = { openComments: () => {
@@ -9263,8 +9287,8 @@ const Pe = "discussion_", wc = 280, rn = ({
9263
9287
  canLike: E,
9264
9288
  peopleWhoLiked: e.peopleWhoLiked,
9265
9289
  functions: {
9266
- createLike: u,
9267
- deleteLike: l
9290
+ createLike: l,
9291
+ deleteLike: u
9268
9292
  }
9269
9293
  }
9270
9294
  ),
@@ -9762,14 +9786,14 @@ function Oc({
9762
9786
  const { mutate: o } = je({
9763
9787
  mutationFn: t,
9764
9788
  onMutate: (c) => e((f) => {
9765
- const u = Kr({ activity: $c(c), user: s });
9766
- return Xr(u, f);
9789
+ const l = Kr({ activity: $c(c), user: s });
9790
+ return Xr(l, f);
9767
9791
  }),
9768
9792
  onError: n,
9769
- onSuccess: (c, f, u) => {
9770
- const l = Kr({ activity: c, user: s });
9771
- r.setQueryData(i, Xr(l, u, !0)), setTimeout(() => {
9772
- Va(l.id);
9793
+ onSuccess: (c, f, l) => {
9794
+ const u = Kr({ activity: c, user: s });
9795
+ r.setQueryData(i, Xr(u, l, !0)), setTimeout(() => {
9796
+ Va(u.id);
9773
9797
  }, 0);
9774
9798
  }
9775
9799
  });
@@ -9803,14 +9827,14 @@ function Dc({
9803
9827
  },
9804
9828
  queryKey: o
9805
9829
  }) {
9806
- const c = Wn(), f = Qn(), u = { queryClient: c, queryKey: o }, l = {
9830
+ const c = Wn(), f = Qn(), l = { queryClient: c, queryKey: o }, u = {
9807
9831
  mutationHandlers: {
9808
- error: ar(u),
9809
- mutate: ir(u)
9832
+ error: ar(l),
9833
+ mutate: ir(l)
9810
9834
  },
9811
9835
  user: f,
9812
- ...u
9813
- }, d = Oc({ ...l, mutationFn: t }), m = Ac({ ...l, mutationFn: e }), p = Ic({ ...l, mutationFn: n }), g = Bc({ ...l, mutationFn: i }), y = qc({ ...l, mutationFn: s }), { activities: _, ...v } = Lc({ queryKey: o, queryFn: r });
9836
+ ...l
9837
+ }, d = Oc({ ...u, mutationFn: t }), m = Ac({ ...u, mutationFn: e }), p = Ic({ ...u, mutationFn: n }), g = Bc({ ...u, mutationFn: i }), y = qc({ ...u, mutationFn: s }), { activities: _, ...v } = Lc({ queryKey: o, queryFn: r });
9814
9838
  return {
9815
9839
  activities: _,
9816
9840
  mutations: {
@@ -9841,8 +9865,8 @@ function Ic({
9841
9865
  }),
9842
9866
  onError: n,
9843
9867
  onSuccess: (o, { activityId: c }, f) => {
9844
- const u = Jt(c, f);
9845
- u && Qt({ activity: u, reaction: o }), r.setQueryData(i, f);
9868
+ const l = Jt(c, f);
9869
+ l && Qt({ activity: l, reaction: o }), r.setQueryData(i, f);
9846
9870
  }
9847
9871
  });
9848
9872
  return s;
@@ -9940,8 +9964,8 @@ const cu = ({
9940
9964
  const o = K(), {
9941
9965
  activities: c,
9942
9966
  error: f,
9943
- fetchNextPage: u,
9944
- hasNextPage: l,
9967
+ fetchNextPage: l,
9968
+ hasNextPage: u,
9945
9969
  isLoading: d,
9946
9970
  mutations: { create: m, edit: p, remove: g, like: y, unlike: _ },
9947
9971
  user: v
@@ -10041,8 +10065,8 @@ const cu = ({
10041
10065
  !d && /* @__PURE__ */ a.jsx(
10042
10066
  tn,
10043
10067
  {
10044
- hasNextPage: l,
10045
- loadNextPage: () => u(),
10068
+ hasNextPage: u,
10069
+ loadNextPage: () => l(),
10046
10070
  icon: { icon: "arrow-down", position: "right" },
10047
10071
  messages: {
10048
10072
  button: o.formatMessage({ id: "loadMore_button" }),
@@ -10613,20 +10637,20 @@ function Zc({
10613
10637
  const { mutate: o } = je({
10614
10638
  mutationFn: t,
10615
10639
  onMutate: (c) => e((f) => {
10616
- const u = Gr({ reply: Nc(c), user: s });
10617
- return ea(u, f, {
10640
+ const l = Gr({ reply: Nc(c), user: s });
10641
+ return ea(l, f, {
10618
10642
  replace: !1,
10619
10643
  append: (c == null ? void 0 : c.replyId) !== void 0
10620
10644
  });
10621
10645
  }),
10622
10646
  onError: n,
10623
- onSuccess: (c, f, u) => {
10624
- const l = Gr({ reply: c, user: s });
10647
+ onSuccess: (c, f, l) => {
10648
+ const u = Gr({ reply: c, user: s });
10625
10649
  r.setQueryData(
10626
10650
  i,
10627
- ea(l, u, { replace: !0, append: (f == null ? void 0 : f.replyId) !== void 0 })
10651
+ ea(u, l, { replace: !0, append: (f == null ? void 0 : f.replyId) !== void 0 })
10628
10652
  ), setTimeout(() => {
10629
- Va(l.id);
10653
+ Va(u.id);
10630
10654
  }, 0);
10631
10655
  }
10632
10656
  });
@@ -10660,14 +10684,14 @@ function Ga({
10660
10684
  },
10661
10685
  queryKey: o
10662
10686
  }) {
10663
- const c = Wn(), f = Qn(), u = { queryClient: c, queryKey: o }, l = {
10687
+ const c = Wn(), f = Qn(), l = { queryClient: c, queryKey: o }, u = {
10664
10688
  mutationHandlers: {
10665
- error: ar(u),
10666
- mutate: ir(u)
10689
+ error: ar(l),
10690
+ mutate: ir(l)
10667
10691
  },
10668
10692
  user: f,
10669
- ...u
10670
- }, d = Zc({ ...l, mutationFn: t }), m = Wc({ ...l, mutationFn: e }), p = Hc({ ...l, mutationFn: n }), g = Yc({ ...l, mutationFn: i }), y = Kc({ ...l, mutationFn: s }), { replies: _, ...v } = Vc({ queryKey: o, queryFn: r });
10693
+ ...l
10694
+ }, d = Zc({ ...u, mutationFn: t }), m = Wc({ ...u, mutationFn: e }), p = Hc({ ...u, mutationFn: n }), g = Yc({ ...u, mutationFn: i }), y = Kc({ ...u, mutationFn: s }), { replies: _, ...v } = Vc({ queryKey: o, queryFn: r });
10671
10695
  return {
10672
10696
  replies: _,
10673
10697
  mutations: {
@@ -10698,8 +10722,8 @@ function Hc({
10698
10722
  }),
10699
10723
  onError: n,
10700
10724
  onSuccess: (o, { replyId: c }, f) => {
10701
- const u = Xt(c, f);
10702
- u && Qr({ reply: u, reaction: o }), r.setQueryData(i, f);
10725
+ const l = Xt(c, f);
10726
+ l && Qr({ reply: l, reaction: o }), r.setQueryData(i, f);
10703
10727
  }
10704
10728
  });
10705
10729
  return s;
@@ -10715,7 +10739,7 @@ function Vc({ queryFn: t, queryKey: e }) {
10715
10739
  queryKey: e,
10716
10740
  queryFn: t,
10717
10741
  initialPageParam: { next: "" },
10718
- getNextPageParam: (u) => (u == null ? void 0 : u.next) || null
10742
+ getNextPageParam: (l) => (l == null ? void 0 : l.next) || null
10719
10743
  }), c = el(n), f = `${c.length || 0}${s ? "+" : ""}`;
10720
10744
  return {
10721
10745
  replies: c,
@@ -10811,8 +10835,8 @@ const tl = ({
10811
10835
  replies: o,
10812
10836
  fetchNextPage: c,
10813
10837
  hasNextPage: f,
10814
- isLoading: u,
10815
- mutations: { create: l, edit: d, like: m, remove: p, unlike: g },
10838
+ isLoading: l,
10839
+ mutations: { create: u, edit: d, like: m, remove: p, unlike: g },
10816
10840
  user: y
10817
10841
  } = Ga({
10818
10842
  queryKey: [t, e, n, r, "replies"],
@@ -10825,7 +10849,7 @@ const tl = ({
10825
10849
  return /* @__PURE__ */ a.jsx(
10826
10850
  kc,
10827
10851
  {
10828
- loadMore: { isLoading: u, hasNextPage: f, loadNextPage: () => c() },
10852
+ loadMore: { isLoading: l, hasNextPage: f, loadNextPage: () => c() },
10829
10853
  form: {
10830
10854
  content: {
10831
10855
  type: "reply",
@@ -10837,7 +10861,7 @@ const tl = ({
10837
10861
  },
10838
10862
  functions: {
10839
10863
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
10840
- create: (_, { body: v }) => l({ activityId: n, replyId: r, content: v })
10864
+ create: (_, { body: v }) => u({ activityId: n, replyId: r, content: v })
10841
10865
  },
10842
10866
  meta: { isEditing: !1, showSuccessMessage: !1 }
10843
10867
  },
@@ -10920,8 +10944,8 @@ const tl = ({
10920
10944
  }) => {
10921
10945
  const c = K(), {
10922
10946
  replies: f,
10923
- repliesCount: u,
10924
- fetchNextPage: l,
10947
+ repliesCount: l,
10948
+ fetchNextPage: u,
10925
10949
  hasNextPage: d,
10926
10950
  isLoading: m,
10927
10951
  mutations: { create: p, edit: g, like: y, remove: _, unlike: v },
@@ -10931,7 +10955,7 @@ const tl = ({
10931
10955
  queryFns: i
10932
10956
  });
10933
10957
  return Ii(), Ya(), /* @__PURE__ */ a.jsxs("section", { children: [
10934
- /* @__PURE__ */ a.jsx(jc, { type: "comment", responses: u }),
10958
+ /* @__PURE__ */ a.jsx(jc, { type: "comment", responses: l }),
10935
10959
  /* @__PURE__ */ a.jsx(
10936
10960
  za,
10937
10961
  {
@@ -11031,7 +11055,7 @@ const tl = ({
11031
11055
  tn,
11032
11056
  {
11033
11057
  hasNextPage: d,
11034
- loadNextPage: () => l(),
11058
+ loadNextPage: () => u(),
11035
11059
  icon: { icon: "arrow-down", position: "right" },
11036
11060
  messages: {
11037
11061
  button: c.formatMessage({ id: "loadMore_button" }),
@@ -11088,12 +11112,12 @@ function il({
11088
11112
  },
11089
11113
  user: o,
11090
11114
  ...c
11091
- }, u = rl({ ...f, mutationFn: e }), l = sl({ ...f, mutationFn: n }), d = ol({ ...f, mutationFn: r }), { activity: m, ...p } = al({ queryKey: i, queryFn: t });
11115
+ }, l = rl({ ...f, mutationFn: e }), u = sl({ ...f, mutationFn: n }), d = ol({ ...f, mutationFn: r }), { activity: m, ...p } = al({ queryKey: i, queryFn: t });
11092
11116
  return {
11093
11117
  activity: m,
11094
11118
  mutations: {
11095
- edit: u,
11096
- like: l,
11119
+ edit: l,
11120
+ like: u,
11097
11121
  unlike: d
11098
11122
  },
11099
11123
  user: o,
@@ -11147,7 +11171,7 @@ const uu = ({
11147
11171
  }
11148
11172
  }) => {
11149
11173
  var M, O, C, E, x, $, L, U, I, Z;
11150
- const u = K(), l = Ce(De), {
11174
+ const l = K(), u = Ce(De), {
11151
11175
  activity: d,
11152
11176
  error: m,
11153
11177
  isLoading: p,
@@ -11163,7 +11187,7 @@ const uu = ({
11163
11187
  nt,
11164
11188
  {
11165
11189
  variant: "error",
11166
- text: u.formatMessage({ id: "activitySection_notFoundError" })
11190
+ text: l.formatMessage({ id: "activitySection_notFoundError" })
11167
11191
  }
11168
11192
  );
11169
11193
  const { own_reactions: v, latest_reactions: b } = d, j = (((M = b == null ? void 0 : b.like) == null ? void 0 : M.length) || 0) > 0, T = (((O = v == null ? void 0 : v.like) == null ? void 0 : O.length) || 0) > 0, w = T ? v == null ? void 0 : v.like[0].id : "", D = j ? (C = b == null ? void 0 : b.like) == null ? void 0 : C.map((J) => {
@@ -11172,7 +11196,7 @@ const uu = ({
11172
11196
  id: (k = J == null ? void 0 : J.user) == null ? void 0 : k.id,
11173
11197
  name: (z = (N = J == null ? void 0 : J.user) == null ? void 0 : N.data) == null ? void 0 : z.name
11174
11198
  };
11175
- }) : !1, R = d == null ? void 0 : d.actor, W = (R == null ? void 0 : R.id) === (l == null ? void 0 : l.id);
11199
+ }) : !1, R = d == null ? void 0 : d.actor, W = (R == null ? void 0 : R.id) === (u == null ? void 0 : u.id);
11176
11200
  return /* @__PURE__ */ a.jsxs("section", { className: "activity-section", children: [
11177
11201
  /* @__PURE__ */ a.jsx(
11178
11202
  rn,