@apolitical/component-library 2.3.0-beta.1 → 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 })
@@ -2662,18 +2686,7 @@ const Ln = {
2662
2686
  carousel: ["cards", "controls"],
2663
2687
  "carousel-with-title": ["title", "cards", "controls"],
2664
2688
  answers: ["text", "text", "text"],
2665
- "form-with-answers": [
2666
- "question",
2667
- "subtitle",
2668
- "form",
2669
- "answers",
2670
- "answers",
2671
- "answers",
2672
- "answers",
2673
- "answers"
2674
- ],
2675
- "general-website-page": [
2676
- "banner",
2689
+ "text-page": [
2677
2690
  "title",
2678
2691
  "text",
2679
2692
  "text",
@@ -2690,6 +2703,17 @@ const Ln = {
2690
2703
  "text",
2691
2704
  "text"
2692
2705
  ],
2706
+ "form-with-answers": [
2707
+ "question",
2708
+ "subtitle",
2709
+ "form",
2710
+ "answers",
2711
+ "answers",
2712
+ "answers",
2713
+ "answers",
2714
+ "answers"
2715
+ ],
2716
+ "general-website-page": ["banner", "text-page"],
2693
2717
  "overview-page": [
2694
2718
  "header",
2695
2719
  "sidebar",
@@ -2698,7 +2722,10 @@ const Ln = {
2698
2722
  "cards-section",
2699
2723
  "cards-section",
2700
2724
  "footer"
2701
- ]
2725
+ ],
2726
+ "course-navigation": ["button", "button"],
2727
+ "course-lesson-page": ["breadcrumb", "course-navigation", "text-page"],
2728
+ "course-lesson-quiz": ["text-page", "quiz-box"]
2702
2729
  }, va = (t, e) => t in Ln ? /* @__PURE__ */ a.jsx("div", { className: t, children: Ln[t].map((n, r) => va(n, r)) }, e) : /* @__PURE__ */ a.jsx(Te, { className: t }, e), ba = ({ layout: t = "overview-page", ...e }) => /* @__PURE__ */ a.jsx("div", { className: S("loading-state", t), ...e, children: Ln[t].map((n, r) => va(n, r)) }), ya = (t) => {
2703
2730
  const e = t && t.toUpperCase().split(" ");
2704
2731
  return Array.isArray(e) && e.length > 1 && e[0] !== "" ? e[1] === "" ? e[0][0] : e[0][0] + e[e.length - 1][0] : t ? t.substr(0, 1) : "";
@@ -2720,9 +2747,9 @@ const Sr = 256, He = ({
2720
2747
  height: s = Sr,
2721
2748
  ...o
2722
2749
  }) => {
2723
- const [c, f] = te(!1), u = pe(null);
2750
+ const [c, f] = te(!1), l = pe(null);
2724
2751
  ae(() => {
2725
- const d = u.current;
2752
+ const d = l.current;
2726
2753
  if (!d)
2727
2754
  return;
2728
2755
  const m = d.getContext("2d");
@@ -2731,13 +2758,13 @@ const Sr = 256, He = ({
2731
2758
  const p = i, g = s;
2732
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);
2733
2760
  }, [n]);
2734
- let l = !1;
2735
- 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(
2736
2763
  "figure",
2737
2764
  {
2738
2765
  className: S("profile-picture", t, { error: c }),
2739
2766
  ...o,
2740
- children: l ? /* @__PURE__ */ a.jsx(
2767
+ children: u ? /* @__PURE__ */ a.jsx(
2741
2768
  "img",
2742
2769
  {
2743
2770
  src: e,
@@ -2748,7 +2775,7 @@ const Sr = 256, He = ({
2748
2775
  width: i,
2749
2776
  height: s
2750
2777
  }
2751
- ) : /* @__PURE__ */ a.jsx("canvas", { ref: u })
2778
+ ) : /* @__PURE__ */ a.jsx("canvas", { ref: l })
2752
2779
  }
2753
2780
  );
2754
2781
  }, _a = (t) => t === "apolitical" ? {
@@ -2787,20 +2814,20 @@ const Jn = ({
2787
2814
  c.name || (c.name = o.formatMessage({
2788
2815
  id: `member_${typeof e == "string" ? e : "community"}`
2789
2816
  }));
2790
- const { name: f, url: u, image: l } = c, d = $s(c), m = n && n.createdAt ? Dn(n.createdAt) : !1, p = n && n.createdAt ? ma(n.createdAt) : "";
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) : "";
2791
2818
  return Y.createElement(t, {
2792
2819
  className: S("member text-medium", s),
2793
2820
  children: /* @__PURE__ */ a.jsxs(
2794
2821
  tt,
2795
2822
  {
2796
- href: u,
2823
+ href: l,
2797
2824
  gtmType: i,
2798
2825
  gtmContext: r,
2799
2826
  onClick: (g) => {
2800
2827
  g == null || g.stopPropagation();
2801
2828
  },
2802
2829
  children: [
2803
- /* @__PURE__ */ a.jsx(He, { name: f, src: l }),
2830
+ /* @__PURE__ */ a.jsx(He, { name: f, src: u }),
2804
2831
  /* @__PURE__ */ a.jsxs("p", { className: "details", children: [
2805
2832
  /* @__PURE__ */ a.jsx("strong", { children: f }),
2806
2833
  n && /* @__PURE__ */ a.jsxs("span", { className: "additional-content", children: [
@@ -2831,11 +2858,11 @@ const Cr = {
2831
2858
  },
2832
2859
  cutoff: c = 2,
2833
2860
  className: f = "",
2834
- ...u
2861
+ ...l
2835
2862
  }) => {
2836
- const l = K();
2863
+ const u = K();
2837
2864
  return !n || n.length === 0 ? null : Y.createElement(t, {
2838
- ...u,
2865
+ ...l,
2839
2866
  className: S("contributors", f, i, { "has-gap": s }),
2840
2867
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2841
2868
  /* @__PURE__ */ a.jsx("ul", { children: n.map((d, m) => {
@@ -2868,7 +2895,7 @@ const Cr = {
2868
2895
  }
2869
2896
  return p ? /* @__PURE__ */ a.jsx("li", { className: S("contributor", g), children: p }, m) : null;
2870
2897
  }) }),
2871
- r && /* @__PURE__ */ a.jsx("span", { className: "label", children: typeof r == "string" ? r : n.length === 1 ? typeof n[0] == "string" ? l.formatMessage({ id: `member_${n[0]}` }) : Je(n[0].name || "", 20) : null })
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 })
2872
2899
  ] })
2873
2900
  });
2874
2901
  };
@@ -2884,7 +2911,7 @@ const Tt = "emailHelperTextBox_", Ns = ({
2884
2911
  link: {},
2885
2912
  mail: {},
2886
2913
  error: ""
2887
- }), [c, f] = te(!1), u = na(
2914
+ }), [c, f] = te(!1), l = na(
2888
2915
  (p) => {
2889
2916
  p.preventDefault(), p.stopPropagation();
2890
2917
  const g = (y) => {
@@ -2895,7 +2922,7 @@ const Tt = "emailHelperTextBox_", Ns = ({
2895
2922
  "data-gtm-event-context": "VerifyEmailBox",
2896
2923
  "data-gtm-event-type": "SendEmailClick",
2897
2924
  className: "gtm-trackable",
2898
- onClick: (_) => u(_),
2925
+ onClick: (_) => l(_),
2899
2926
  href: "#",
2900
2927
  "data-testid": "send-verify-email-click"
2901
2928
  },
@@ -2951,7 +2978,7 @@ const Tt = "emailHelperTextBox_", Ns = ({
2951
2978
  "data-gtm-event-context": "VerifyEmailBox",
2952
2979
  "data-gtm-event-type": "SendEmailClick",
2953
2980
  className: "gtm-trackable",
2954
- onClick: (v) => u(v),
2981
+ onClick: (v) => l(v),
2955
2982
  "data-testid": "send-verify-email-click"
2956
2983
  };
2957
2984
  break;
@@ -2980,9 +3007,9 @@ const Tt = "emailHelperTextBox_", Ns = ({
2980
3007
  /* eslint-disable react-hooks/exhaustive-deps */
2981
3008
  [t]
2982
3009
  );
2983
- const l = {};
3010
+ const u = {};
2984
3011
  return ["link", "mail"].forEach((p) => {
2985
- 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;
2986
3013
  }), /* @__PURE__ */ a.jsx(
2987
3014
  as,
2988
3015
  {
@@ -2998,7 +3025,7 @@ const Tt = "emailHelperTextBox_", Ns = ({
2998
3025
  i.formatMessage(
2999
3026
  { id: `${s.path}_text` },
3000
3027
  {
3001
- ...l,
3028
+ ...u,
3002
3029
  strong: (p) => /* @__PURE__ */ a.jsx("strong", { children: p }),
3003
3030
  em: (p) => /* @__PURE__ */ a.jsx("em", { children: p }),
3004
3031
  br: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
@@ -3022,12 +3049,12 @@ const Tt = "emailHelperTextBox_", Ns = ({
3022
3049
  placeholder: o,
3023
3050
  type: c = "text",
3024
3051
  value: f,
3025
- ...u
3052
+ ...l
3026
3053
  }) => {
3027
- const l = pe(), d = r || l;
3054
+ const u = pe(), d = r || u;
3028
3055
  return Y.createElement(e, {
3029
3056
  ref: d,
3030
- ...u,
3057
+ ...l,
3031
3058
  type: c,
3032
3059
  id: n,
3033
3060
  name: s,
@@ -3063,7 +3090,7 @@ const Ke = {
3063
3090
  input: t,
3064
3091
  displayInput: t,
3065
3092
  debouncedInput: t
3066
- }), [{ predictions: u, activePredictionIndex: l, isPredictionSelected: d }, m] = te({
3093
+ }), [{ predictions: l, activePredictionIndex: u, isPredictionSelected: d }, m] = te({
3067
3094
  predictions: [],
3068
3095
  activePredictionIndex: -1,
3069
3096
  isPredictionSelected: !!t
@@ -3085,10 +3112,10 @@ const Ke = {
3085
3112
  }
3086
3113
  })() : m((v) => ({ ...v, predictions: [] }));
3087
3114
  }, [c, d]), ae(() => {
3088
- l >= 0 && u[l] && f((v) => ({ ...v, displayInput: u[l].description }));
3089
- }, [l, u]);
3115
+ u >= 0 && l[u] && f((v) => ({ ...v, displayInput: l[u].description }));
3116
+ }, [u, l]);
3090
3117
  const g = (v) => {
3091
- [Ke.DOWN, Ke.UP, Ke.ENTER].includes(v.key) && (v.preventDefault(), v.key === Ke.DOWN && l < u.length - 1 ? m((b) => ({ ...b, activePredictionIndex: l + 1 })) : v.key === Ke.UP && l > 0 ? m((b) => ({ ...b, activePredictionIndex: l - 1 })) : v.key === Ke.ENTER && l > -1 && (r(u[l].description), f((b) => ({ ...b, input: u[l].description })), m((b) => ({ ...b, predictions: [], isPredictionSelected: !0 }))));
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 }))));
3092
3119
  }, y = (v) => {
3093
3120
  r(v.target.value), f((b) => ({ ...b, input: v.target.value, displayInput: v.target.value })), m((b) => ({ ...b, activePredictionIndex: -1, isPredictionSelected: !1 }));
3094
3121
  }, _ = (v) => {
@@ -3105,12 +3132,12 @@ const Ke = {
3105
3132
  placeholder: e
3106
3133
  }
3107
3134
  ),
3108
- /* @__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(
3109
3136
  "li",
3110
3137
  {
3111
3138
  onClick: () => _(v),
3112
3139
  onMouseEnter: () => m((j) => ({ ...j, activePredictionIndex: b })),
3113
- className: S("predictions-list-item", { active: b === l }),
3140
+ className: S("predictions-list-item", { active: b === u }),
3114
3141
  children: v.description
3115
3142
  },
3116
3143
  b
@@ -3128,12 +3155,12 @@ const wa = ({
3128
3155
  intlPath: o = !1,
3129
3156
  label: c,
3130
3157
  shownValue: f = !0,
3131
- type: u = "checkbox",
3132
- value: l,
3158
+ type: l = "checkbox",
3159
+ value: u,
3133
3160
  ...d
3134
3161
  }) => {
3135
3162
  const m = K(), { onChange: p, ...g } = r, y = () => {
3136
- e || p(l ? null : f);
3163
+ e || p(u ? null : f);
3137
3164
  }, _ = /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3138
3165
  /* @__PURE__ */ a.jsx(
3139
3166
  "input",
@@ -3141,9 +3168,9 @@ const wa = ({
3141
3168
  ref: s,
3142
3169
  id: i,
3143
3170
  name: i,
3144
- type: u,
3171
+ type: l,
3145
3172
  value: f,
3146
- checked: l,
3173
+ checked: u,
3147
3174
  onKeyDown: (v) => {
3148
3175
  (v.key === "Enter" || v.code === "Space") && (v.preventDefault(), v.stopPropagation(), y());
3149
3176
  },
@@ -3192,9 +3219,9 @@ const Fs = ({
3192
3219
  placeholder: o,
3193
3220
  multiSelect: c,
3194
3221
  multiSelectOptions: f,
3195
- id: u
3222
+ id: l
3196
3223
  }) => {
3197
- 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);
3198
3225
  let v;
3199
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(() => {
3200
3227
  _(g);
@@ -3263,7 +3290,7 @@ const Fs = ({
3263
3290
  size: "small",
3264
3291
  onClick: () => D("all"),
3265
3292
  className: "gtm-trackable",
3266
- children: l.formatMessage({ id: "dropdown_menu_multiselect_all" })
3293
+ children: u.formatMessage({ id: "dropdown_menu_multiselect_all" })
3267
3294
  }
3268
3295
  ) }),
3269
3296
  /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
@@ -3273,7 +3300,7 @@ const Fs = ({
3273
3300
  size: "small",
3274
3301
  onClick: () => D("none"),
3275
3302
  className: "gtm-trackable",
3276
- children: l.formatMessage({ id: "dropdown_menu_multiselect_none" })
3303
+ children: u.formatMessage({ id: "dropdown_menu_multiselect_none" })
3277
3304
  }
3278
3305
  ) })
3279
3306
  ] })
@@ -3311,13 +3338,13 @@ const Fs = ({
3311
3338
  j && j(y), document.dispatchEvent(
3312
3339
  new CustomEvent("dropdownMultiSelectSubmit", {
3313
3340
  detail: {
3314
- id: u || "dropdown-multi-select",
3341
+ id: l || "dropdown-multi-select",
3315
3342
  value: y
3316
3343
  }
3317
3344
  })
3318
3345
  ), m(!1);
3319
3346
  },
3320
- children: l.formatMessage({ id: "form_submit" })
3347
+ children: u.formatMessage({ id: "form_submit" })
3321
3348
  }
3322
3349
  ) })
3323
3350
  ]
@@ -3336,11 +3363,11 @@ const Os = ({
3336
3363
  name: o,
3337
3364
  options: c,
3338
3365
  required: f,
3339
- type: u = "checkboxes",
3340
- value: l,
3366
+ type: l = "checkboxes",
3367
+ value: u,
3341
3368
  ...d
3342
3369
  }) => {
3343
- const m = K(), p = s ? l : [], g = l;
3370
+ const m = K(), p = s ? u : [], g = u;
3344
3371
  return /* @__PURE__ */ a.jsx(
3345
3372
  "ul",
3346
3373
  {
@@ -3370,7 +3397,7 @@ const Os = ({
3370
3397
  {
3371
3398
  element: "li",
3372
3399
  id: j,
3373
- type: u === "checkboxes" ? "checkbox" : "radio",
3400
+ type: l === "checkboxes" ? "checkbox" : "radio",
3374
3401
  shownValue: v,
3375
3402
  value: s ? p == null ? void 0 : p.includes(v) : g === v,
3376
3403
  functions: {
@@ -3396,9 +3423,9 @@ const As = ({
3396
3423
  gtm: { context: n } = { context: void 0 },
3397
3424
  ...r
3398
3425
  }) => {
3399
- 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 = () => {
3400
3427
  var m;
3401
- 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();
3402
3429
  };
3403
3430
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3404
3431
  /* @__PURE__ */ a.jsx(
@@ -3419,7 +3446,7 @@ const As = ({
3419
3446
  })
3420
3447
  }
3421
3448
  ),
3422
- /* @__PURE__ */ a.jsx(mt, { inputRef: o, type: u, ...r })
3449
+ /* @__PURE__ */ a.jsx(mt, { inputRef: o, type: l, ...r })
3423
3450
  ] });
3424
3451
  };
3425
3452
  const Ge = {
@@ -3442,13 +3469,13 @@ const Ge = {
3442
3469
  showRequiredLabels: o = !0,
3443
3470
  type: c,
3444
3471
  validation: f,
3445
- value: u,
3446
- ...l
3472
+ value: l,
3473
+ ...u
3447
3474
  }) => {
3448
- const d = K(), m = f && f.some(({ condition: T }) => T === "required"), p = (u == null ? void 0 : u.toString().length) || 0, g = c && Ge[c] && Ge[c].component ? Ge[c].component : mt, y = {};
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 = {};
3449
3476
  c && ["checkboxes"].includes(c) ? y.element = "span" : y.htmlFor = t;
3450
3477
  let _ = {
3451
- ...l,
3478
+ ...u,
3452
3479
  id: t,
3453
3480
  name: t,
3454
3481
  className: r ? "error" : "",
@@ -3456,12 +3483,12 @@ const Ge = {
3456
3483
  required: m,
3457
3484
  "aria-required": m,
3458
3485
  functions: ft(i),
3459
- value: u
3486
+ value: l
3460
3487
  };
3461
3488
  s > 0 && (_["data-character-limit"] = s, _.functions && (_.functions.onChange = (T) => {
3462
3489
  ((T == null ? void 0 : T.toString().length) || 0) > s && (T = T == null ? void 0 : T.toString().slice(0, s)), i.onChange(T);
3463
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}`);
3464
- 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(
3465
3492
  T.as || "dd",
3466
3493
  {
3467
3494
  id: `error-${t}`,
@@ -3555,9 +3582,9 @@ const Ge = {
3555
3582
  },
3556
3583
  onSuccess: f = () => {
3557
3584
  },
3558
- onFailure: u = () => {
3585
+ onFailure: l = () => {
3559
3586
  },
3560
- intl: l
3587
+ intl: u
3561
3588
  } = r, d = ft(Object.keys(i));
3562
3589
  for (const m of o)
3563
3590
  if (m.validation)
@@ -3571,18 +3598,18 @@ const Ge = {
3571
3598
  const v = s[m.id];
3572
3599
  switch (g) {
3573
3600
  case "required":
3574
- (!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" })));
3575
3602
  break;
3576
3603
  case "no-numbers": {
3577
- 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" })));
3578
3605
  break;
3579
3606
  }
3580
3607
  case "valid-email": {
3581
- v && !/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(v) && (_ = 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" })));
3582
3609
  break;
3583
3610
  }
3584
3611
  case "valid-url": {
3585
- 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" })));
3586
3613
  break;
3587
3614
  }
3588
3615
  default:
@@ -3597,7 +3624,7 @@ const Ge = {
3597
3624
  break;
3598
3625
  }
3599
3626
  }
3600
- return d.length === 0 ? f(s) : u(s, d), {
3627
+ return d.length === 0 ? f(s) : l(s, d), {
3601
3628
  ...t,
3602
3629
  isSubmitting: !1
3603
3630
  };
@@ -3638,8 +3665,8 @@ const Xn = ({
3638
3665
  meta: {
3639
3666
  shouldShowCancelButton: c = !1,
3640
3667
  shouldReset: f = !0,
3641
- showRequiredLabels: u = !0,
3642
- showSuccessMessage: l = !1
3668
+ showRequiredLabels: l = !0,
3669
+ showSuccessMessage: u = !1
3643
3670
  } = {
3644
3671
  shouldShowCancelButton: !1,
3645
3672
  shouldReset: !0,
@@ -3807,7 +3834,7 @@ const Xn = ({
3807
3834
  {
3808
3835
  intlPath: i,
3809
3836
  ...I,
3810
- showRequiredLabels: u,
3837
+ showRequiredLabels: l,
3811
3838
  value: z,
3812
3839
  error: M == null ? void 0 : M[J],
3813
3840
  functions: {
@@ -3833,7 +3860,7 @@ const Xn = ({
3833
3860
  ]
3834
3861
  }
3835
3862
  ),
3836
- 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" }) })
3837
3864
  ] });
3838
3865
  };
3839
3866
  const Et = "passwordRules_", ja = "isMoreThanEightCharacters", ka = "includesNumberAndSymbol", Ta = "includesLowerAndUppercase", Ls = {
@@ -3886,26 +3913,26 @@ const Ul = ({
3886
3913
  className: s = "",
3887
3914
  hasLoaded: o = !1
3888
3915
  }) => {
3889
- const c = K(), [f, u] = te({
3916
+ const c = K(), [f, l] = te({
3890
3917
  setUp: !1,
3891
3918
  id: null,
3892
3919
  rating: null,
3893
3920
  disabled: !0
3894
- }), l = async () => {
3921
+ }), u = async () => {
3895
3922
  try {
3896
3923
  const v = await n();
3897
- u((b) => ({
3924
+ l((b) => ({
3898
3925
  ...b,
3899
3926
  setUp: !0,
3900
3927
  id: v && v.id,
3901
3928
  disabled: !1
3902
3929
  }));
3903
3930
  } catch (v) {
3904
- u((b) => ({ ...b, setUp: !0, disabled: !0 })), i(v);
3931
+ l((b) => ({ ...b, setUp: !0, disabled: !0 })), i(v);
3905
3932
  }
3906
3933
  };
3907
3934
  if (ae(() => {
3908
- o && !f.setUp && l();
3935
+ o && !f.setUp && u();
3909
3936
  }, [o]), !o)
3910
3937
  return /* @__PURE__ */ a.jsx(Te, { className: "rating-placeholder" });
3911
3938
  const { id: d, rating: m, disabled: p } = f, g = "ratings_", y = {
@@ -3917,11 +3944,11 @@ const Ul = ({
3917
3944
  }, _ = async (v) => {
3918
3945
  if (!(!d || p))
3919
3946
  try {
3920
- 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 });
3921
3948
  } catch (b) {
3922
- u((j) => ({ ...j, rating: null })), i(b);
3949
+ l((j) => ({ ...j, rating: null })), i(b);
3923
3950
  } finally {
3924
- u((b) => ({ ...b, disabled: !1 }));
3951
+ l((b) => ({ ...b, disabled: !1 }));
3925
3952
  }
3926
3953
  };
3927
3954
  return /* @__PURE__ */ a.jsxs("div", { className: S("rating", s), children: [
@@ -3974,15 +4001,15 @@ const zl = ({
3974
4001
  ae(() => {
3975
4002
  r && f(r);
3976
4003
  }, [r]);
3977
- const u = (l) => {
3978
- s || (f(l), i(l));
4004
+ const l = (u) => {
4005
+ s || (f(u), i(u));
3979
4006
  };
3980
4007
  return /* @__PURE__ */ a.jsxs(
3981
4008
  "div",
3982
4009
  {
3983
4010
  className: S("toggle", o),
3984
- onClick: (l) => {
3985
- 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);
3986
4013
  },
3987
4014
  children: [
3988
4015
  /* @__PURE__ */ a.jsx("p", { children: e }),
@@ -3993,8 +4020,8 @@ const zl = ({
3993
4020
  disabled: s,
3994
4021
  on: c === n[1].value
3995
4022
  }),
3996
- children: n.map((l) => {
3997
- const d = `${t}-${l.value}`;
4023
+ children: n.map((u) => {
4024
+ const d = `${t}-${u.value}`;
3998
4025
  return /* @__PURE__ */ a.jsxs("li", { className: "hidden", children: [
3999
4026
  /* @__PURE__ */ a.jsx(
4000
4027
  "input",
@@ -4002,13 +4029,13 @@ const zl = ({
4002
4029
  type: "radio",
4003
4030
  id: d,
4004
4031
  name: t,
4005
- value: l.value,
4006
- checked: c === l.value,
4007
- onChange: () => u(l.value),
4032
+ value: u.value,
4033
+ checked: c === u.value,
4034
+ onChange: () => l(u.value),
4008
4035
  disabled: s
4009
4036
  }
4010
4037
  ),
4011
- /* @__PURE__ */ a.jsx("label", { htmlFor: d, children: l.label })
4038
+ /* @__PURE__ */ a.jsx("label", { htmlFor: d, children: u.label })
4012
4039
  ] }, d);
4013
4040
  })
4014
4041
  }
@@ -4018,8 +4045,8 @@ const zl = ({
4018
4045
  );
4019
4046
  };
4020
4047
  function Zl({ className: t = "", userId: e, userName: n, src: r, setUserImage: i, uploadImage: s }) {
4021
- const [o, c] = te(!1), [f, u] = te(!1), l = pe(null), d = async (m) => {
4022
- 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);
4023
4050
  try {
4024
4051
  const p = m.target.files && m.target.files[0];
4025
4052
  if (!p || !e)
@@ -4033,7 +4060,7 @@ function Zl({ className: t = "", userId: e, userName: n, src: r, setUserImage: i
4033
4060
  }
4034
4061
  }));
4035
4062
  } catch {
4036
- u(!0);
4063
+ l(!0);
4037
4064
  } finally {
4038
4065
  c(!1);
4039
4066
  }
@@ -4048,7 +4075,7 @@ function Zl({ className: t = "", userId: e, userName: n, src: r, setUserImage: i
4048
4075
  id: "file",
4049
4076
  type: "file",
4050
4077
  accept: "image/*",
4051
- ref: l,
4078
+ ref: u,
4052
4079
  onChange: d,
4053
4080
  hidden: !0,
4054
4081
  "data-testid": "file-input"
@@ -4057,7 +4084,7 @@ function Zl({ className: t = "", userId: e, userName: n, src: r, setUserImage: i
4057
4084
  /* @__PURE__ */ a.jsx(
4058
4085
  ie,
4059
4086
  {
4060
- onClick: () => l.current && l.current.click(),
4087
+ onClick: () => u.current && u.current.click(),
4061
4088
  variant: "secondary",
4062
4089
  "data-gtm-event-context": "ImageField",
4063
4090
  "data-gtm-event-type": `${r ? "change-photo" : "add-photo"}-click`,
@@ -4126,13 +4153,13 @@ const Us = ({
4126
4153
  onClose: o,
4127
4154
  reportError: c,
4128
4155
  sendInvites: f,
4129
- initialFormStatus: u = "NOT_SUBMITTED"
4156
+ initialFormStatus: l = "NOT_SUBMITTED"
4130
4157
  /* NOT_SUBMITTED */
4131
4158
  }) => {
4132
- 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) => {
4133
4160
  T.preventDefault();
4134
4161
  try {
4135
- await f(l), d([]), y(
4162
+ await f(u), d([]), y(
4136
4163
  "SUCCESS"
4137
4164
  /* SUCCESS */
4138
4165
  );
@@ -4179,7 +4206,7 @@ const Us = ({
4179
4206
  id: "email-input",
4180
4207
  inputClassName: "email-input input",
4181
4208
  placeholder: _({ id: "inviteForm_email_placeholder" }),
4182
- emails: l,
4209
+ emails: u,
4183
4210
  onChange: (T) => {
4184
4211
  d(T), p(!T.length);
4185
4212
  },
@@ -4193,7 +4220,7 @@ const Us = ({
4193
4220
  size: "small",
4194
4221
  icon: { icon: "close" },
4195
4222
  onClick: () => {
4196
- D(w), p(!l.length);
4223
+ D(w), p(!u.length);
4197
4224
  },
4198
4225
  className: "remove-email-button",
4199
4226
  screenreaderText: _({ id: "overlay_close" })
@@ -4217,17 +4244,17 @@ const zs = ({
4217
4244
  gtmContext: i = "search-bar",
4218
4245
  gtmEvent: s = "form-submission"
4219
4246
  }) => {
4220
- 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);
4221
4248
  vt(() => {
4222
- !n || c || !o || u.current && u.current.focus();
4249
+ !n || c || !o || l.current && l.current.focus();
4223
4250
  }, [o]);
4224
- const l = (d) => {
4225
- d.preventDefault(), d.stopPropagation(), !(!u.current || !u.current.value || u.current.value.length < 1) && (window.location.href = `/search?search=${encodeURIComponent(u.current.value)}`);
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)}`);
4226
4253
  };
4227
4254
  return /* @__PURE__ */ a.jsx(
4228
4255
  "form",
4229
4256
  {
4230
- onSubmit: l,
4257
+ onSubmit: u,
4231
4258
  className: S("search-form gtm-trackable", e),
4232
4259
  "data-gtm-event-context": i,
4233
4260
  "data-gtm-event-type": s,
@@ -4249,14 +4276,14 @@ const zs = ({
4249
4276
  /* @__PURE__ */ a.jsx(
4250
4277
  "input",
4251
4278
  {
4252
- ref: u,
4279
+ ref: l,
4253
4280
  type: "search",
4254
4281
  id: t,
4255
4282
  name: t,
4256
4283
  defaultValue: r,
4257
4284
  placeholder: f.formatMessage({ id: "search_placeholder" }),
4258
4285
  onKeyDown: (d) => {
4259
- d.key === "Enter" && l(d);
4286
+ d.key === "Enter" && u(d);
4260
4287
  }
4261
4288
  }
4262
4289
  ),
@@ -4265,12 +4292,12 @@ const zs = ({
4265
4292
  {
4266
4293
  className: "clear",
4267
4294
  onClick: (d) => {
4268
- 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 = "");
4269
4296
  },
4270
4297
  children: /* @__PURE__ */ a.jsx(be, { children: f.formatMessage({ id: "search_clear" }) })
4271
4298
  }
4272
4299
  ),
4273
- /* @__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" }) }) })
4274
4301
  ] })
4275
4302
  }
4276
4303
  )
@@ -4307,15 +4334,15 @@ const zs = ({
4307
4334
  { type: "validFields.email", value: !1 }
4308
4335
  ]);
4309
4336
  }
4310
- const { valid: c = !1, autoApproved: f = !1, exists: u } = o;
4311
- let l = "";
4312
- return c ? l = f ? "gov" : "nonGov" : u.registration ? u.engagement && !u.user ? l = u.auth ? "verify" : "pending" : l = "exists" : u.auth && (l = "exists"), n([
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([
4313
4340
  { type: "shouldManuallyApprove", value: !f },
4314
4341
  {
4315
4342
  type: "emailDetails",
4316
4343
  value: {
4317
4344
  email: i,
4318
- boxType: l,
4345
+ boxType: u,
4319
4346
  isEnd2End: /testing\+[0-9]+@apolitical.co$/.test(i)
4320
4347
  }
4321
4348
  },
@@ -4363,16 +4390,16 @@ const zs = ({
4363
4390
  intl: c
4364
4391
  // We need to pass `intl` in as it's being used in a hook
4365
4392
  }) => {
4366
- const { emailDetails: f } = i, u = (d, m) => {
4393
+ const { emailDetails: f } = i, l = (d, m) => {
4367
4394
  d.current && i.validFields[m] !== d.current.validity.valid && s([{ type: `validFields.${m}`, value: d.current.validity.valid }]);
4368
- }, l = [
4395
+ }, u = [
4369
4396
  {
4370
4397
  id: "full_name",
4371
4398
  type: "text",
4372
4399
  inputRef: r.name,
4373
4400
  placeholder: c.formatMessage({ id: "signup_full_name_placeholder" }),
4374
4401
  functions: {
4375
- onChange: () => u(r.name, "name"),
4402
+ onChange: () => l(r.name, "name"),
4376
4403
  onFocus: () => s([{ type: "loadRecaptcha", value: !0 }])
4377
4404
  },
4378
4405
  autoComplete: "name",
@@ -4411,14 +4438,14 @@ const zs = ({
4411
4438
  }
4412
4439
  }
4413
4440
  ];
4414
- return i.shouldManuallyApprove && (l.push(
4441
+ return i.shouldManuallyApprove && (u.push(
4415
4442
  {
4416
4443
  id: "job_title",
4417
4444
  type: "text",
4418
4445
  inputRef: r.jobTitle,
4419
4446
  placeholder: c.formatMessage({ id: "signup_job_title_placeholder" }),
4420
4447
  functions: {
4421
- onChange: () => u(r.jobTitle, "jobTitle")
4448
+ onChange: () => l(r.jobTitle, "jobTitle")
4422
4449
  },
4423
4450
  validation: [{ condition: "required" }],
4424
4451
  "data-testid": "signup-job-input"
@@ -4432,13 +4459,13 @@ const zs = ({
4432
4459
  }),
4433
4460
  functions: {
4434
4461
  onChange: () => {
4435
- u(r.organisation, "organisation");
4462
+ l(r.organisation, "organisation");
4436
4463
  }
4437
4464
  },
4438
4465
  validation: [{ condition: "required" }],
4439
4466
  "data-testid": "signup-org-input"
4440
4467
  }
4441
- ), t.url && l.push({
4468
+ ), t.url && u.push({
4442
4469
  id: "url",
4443
4470
  type: "text",
4444
4471
  label: c.formatMessage(
@@ -4450,7 +4477,7 @@ const zs = ({
4450
4477
  placeholder: c.formatMessage({ id: "signup_url_placeholder" }),
4451
4478
  validation: [{ condition: "valid-url" }],
4452
4479
  "data-testid": "signup-url-input"
4453
- })), t.expectation && l.push({
4480
+ })), t.expectation && u.push({
4454
4481
  id: "expectation",
4455
4482
  className: "expectation",
4456
4483
  type: "text",
@@ -4462,7 +4489,7 @@ const zs = ({
4462
4489
  ),
4463
4490
  placeholder: c.formatMessage({ id: "signup_expectation_placeholder" }),
4464
4491
  "data-testid": "signup-events-question"
4465
- }), l.push({
4492
+ }), u.push({
4466
4493
  id: "terms",
4467
4494
  className: "text-small",
4468
4495
  type: "checkbox",
@@ -4508,7 +4535,7 @@ const zs = ({
4508
4535
  },
4509
4536
  validation: [{ condition: "required" }],
4510
4537
  "data-testid": "signup-terms-checkbox"
4511
- }), l;
4538
+ }), u;
4512
4539
  };
4513
4540
  const Vs = ({ className: t = "" }) => /* @__PURE__ */ a.jsxs(
4514
4541
  "div",
@@ -4563,8 +4590,8 @@ const Ys = {
4563
4590
  ...s
4564
4591
  }) => {
4565
4592
  const o = K(), [c, f] = Zn(ua, Ys), {
4566
- validFields: u,
4567
- emailDetails: l,
4593
+ validFields: l,
4594
+ emailDetails: u,
4568
4595
  shouldManuallyApprove: d,
4569
4596
  showSuccessMessage: m,
4570
4597
  showError: p
@@ -4601,7 +4628,7 @@ const Ys = {
4601
4628
  dispatch: f,
4602
4629
  dataToSubmit: i,
4603
4630
  intl: o
4604
- }), [i, e, o, _, n, c]), b = d ? !Object.values(u).every((j) => j === !0) : !u.name || !u.email || ["exists", "pending", "verify"].includes(l.boxType);
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);
4605
4632
  return n.successMessage && m ? /* @__PURE__ */ a.jsx(Vs, { className: t }) : /* @__PURE__ */ a.jsxs(
4606
4633
  "fieldset",
4607
4634
  {
@@ -4692,7 +4719,7 @@ function Ks() {
4692
4719
  if (Nr)
4693
4720
  return ue;
4694
4721
  Nr = 1;
4695
- var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, i = t ? Symbol.for("react.strict_mode") : 60108, s = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, f = t ? Symbol.for("react.async_mode") : 60111, 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;
4696
4723
  function j(w) {
4697
4724
  if (typeof w == "object" && w !== null) {
4698
4725
  var D = w.$$typeof;
@@ -4700,7 +4727,7 @@ function Ks() {
4700
4727
  case e:
4701
4728
  switch (w = w.type, w) {
4702
4729
  case f:
4703
- case u:
4730
+ case l:
4704
4731
  case r:
4705
4732
  case s:
4706
4733
  case i:
@@ -4709,7 +4736,7 @@ function Ks() {
4709
4736
  default:
4710
4737
  switch (w = w && w.$$typeof, w) {
4711
4738
  case c:
4712
- case l:
4739
+ case u:
4713
4740
  case g:
4714
4741
  case p:
4715
4742
  case o:
@@ -4724,9 +4751,9 @@ function Ks() {
4724
4751
  }
4725
4752
  }
4726
4753
  function T(w) {
4727
- return j(w) === u;
4754
+ return j(w) === l;
4728
4755
  }
4729
- return ue.AsyncMode = f, ue.ConcurrentMode = u, ue.ContextConsumer = c, ue.ContextProvider = o, ue.Element = e, ue.ForwardRef = l, ue.Fragment = r, ue.Lazy = g, ue.Memo = p, ue.Portal = n, ue.Profiler = s, ue.StrictMode = i, ue.Suspense = d, ue.isAsyncMode = function(w) {
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) {
4730
4757
  return T(w) || j(w) === f;
4731
4758
  }, ue.isConcurrentMode = T, ue.isContextConsumer = function(w) {
4732
4759
  return j(w) === c;
@@ -4735,7 +4762,7 @@ function Ks() {
4735
4762
  }, ue.isElement = function(w) {
4736
4763
  return typeof w == "object" && w !== null && w.$$typeof === e;
4737
4764
  }, ue.isForwardRef = function(w) {
4738
- return j(w) === l;
4765
+ return j(w) === u;
4739
4766
  }, ue.isFragment = function(w) {
4740
4767
  return j(w) === r;
4741
4768
  }, ue.isLazy = function(w) {
@@ -4751,7 +4778,7 @@ function Ks() {
4751
4778
  }, ue.isSuspense = function(w) {
4752
4779
  return j(w) === d;
4753
4780
  }, ue.isValidElementType = function(w) {
4754
- return typeof w == "string" || typeof w == "function" || w === r || w === u || w === s || w === i || w === d || w === m || typeof w == "object" && w !== null && (w.$$typeof === g || w.$$typeof === p || w.$$typeof === o || w.$$typeof === c || w.$$typeof === l || w.$$typeof === _ || w.$$typeof === v || w.$$typeof === b || w.$$typeof === y);
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);
4755
4782
  }, ue.typeOf = j, ue;
4756
4783
  }
4757
4784
  var de = {};
@@ -4766,10 +4793,10 @@ var de = {};
4766
4793
  var Pr;
4767
4794
  function Gs() {
4768
4795
  return Pr || (Pr = 1, process.env.NODE_ENV !== "production" && function() {
4769
- var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, i = t ? Symbol.for("react.strict_mode") : 60108, s = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, f = t ? Symbol.for("react.async_mode") : 60111, 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;
4770
4797
  function j(A) {
4771
4798
  return typeof A == "string" || typeof A == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
4772
- A === r || A === 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);
4773
4800
  }
4774
4801
  function T(A) {
4775
4802
  if (typeof A == "object" && A !== null) {
@@ -4779,7 +4806,7 @@ function Gs() {
4779
4806
  var $e = A.type;
4780
4807
  switch ($e) {
4781
4808
  case f:
4782
- case u:
4809
+ case l:
4783
4810
  case r:
4784
4811
  case s:
4785
4812
  case i:
@@ -4789,7 +4816,7 @@ function Gs() {
4789
4816
  var Ee = $e && $e.$$typeof;
4790
4817
  switch (Ee) {
4791
4818
  case c:
4792
- case l:
4819
+ case u:
4793
4820
  case g:
4794
4821
  case p:
4795
4822
  case o:
@@ -4803,12 +4830,12 @@ function Gs() {
4803
4830
  }
4804
4831
  }
4805
4832
  }
4806
- var w = f, D = u, R = c, W = o, M = e, O = l, C = r, E = g, x = p, $ = n, L = s, U = i, I = d, Z = !1;
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;
4807
4834
  function J(A) {
4808
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;
4809
4836
  }
4810
4837
  function k(A) {
4811
- return T(A) === u;
4838
+ return T(A) === l;
4812
4839
  }
4813
4840
  function N(A) {
4814
4841
  return T(A) === c;
@@ -4820,7 +4847,7 @@ function Gs() {
4820
4847
  return typeof A == "object" && A !== null && A.$$typeof === e;
4821
4848
  }
4822
4849
  function H(A) {
4823
- return T(A) === l;
4850
+ return T(A) === u;
4824
4851
  }
4825
4852
  function ee(A) {
4826
4853
  return T(A) === r;
@@ -4875,28 +4902,28 @@ function Qs() {
4875
4902
  return !1;
4876
4903
  for (var o = {}, c = 0; c < 10; c++)
4877
4904
  o["_" + String.fromCharCode(c)] = c;
4878
- var f = Object.getOwnPropertyNames(o).map(function(l) {
4879
- return o[l];
4905
+ var f = Object.getOwnPropertyNames(o).map(function(u) {
4906
+ return o[u];
4880
4907
  });
4881
4908
  if (f.join("") !== "0123456789")
4882
4909
  return !1;
4883
- var u = {};
4884
- return "abcdefghijklmnopqrst".split("").forEach(function(l) {
4885
- u[l] = l;
4886
- }), 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";
4887
4914
  } catch {
4888
4915
  return !1;
4889
4916
  }
4890
4917
  }
4891
4918
  return pn = i() ? Object.assign : function(s, o) {
4892
- for (var c, f = r(s), u, l = 1; l < arguments.length; l++) {
4893
- c = Object(arguments[l]);
4919
+ for (var c, f = r(s), l, u = 1; u < arguments.length; u++) {
4920
+ c = Object(arguments[u]);
4894
4921
  for (var d in c)
4895
4922
  e.call(c, d) && (f[d] = c[d]);
4896
4923
  if (t) {
4897
- u = t(c);
4898
- for (var m = 0; m < u.length; m++)
4899
- n.call(c, u[m]) && (f[u[m]] = c[u[m]]);
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]]);
4900
4927
  }
4901
4928
  }
4902
4929
  return f;
@@ -4932,27 +4959,27 @@ function Js() {
4932
4959
  }
4933
4960
  };
4934
4961
  }
4935
- function i(s, o, c, f, u) {
4962
+ function i(s, o, c, f, l) {
4936
4963
  if (process.env.NODE_ENV !== "production") {
4937
- for (var l in s)
4938
- if (r(s, l)) {
4964
+ for (var u in s)
4965
+ if (r(s, u)) {
4939
4966
  var d;
4940
4967
  try {
4941
- if (typeof s[l] != "function") {
4968
+ if (typeof s[u] != "function") {
4942
4969
  var m = Error(
4943
- (f || "React class") + ": " + c + " type `" + l + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[l] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
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`."
4944
4971
  );
4945
4972
  throw m.name = "Invariant Violation", m;
4946
4973
  }
4947
- d = s[l](o, l, f, c, null, e);
4974
+ d = s[u](o, u, f, c, null, e);
4948
4975
  } catch (g) {
4949
4976
  d = g;
4950
4977
  }
4951
4978
  if (d && !(d instanceof Error) && t(
4952
- (f || "React class") + ": type specification of " + c + " `" + l + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof d + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
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)."
4953
4980
  ), d instanceof Error && !(d.message in n)) {
4954
4981
  n[d.message] = !0;
4955
- var p = u ? u() : "";
4982
+ var p = l ? l() : "";
4956
4983
  t(
4957
4984
  "Failed " + c + " type: " + d.message + (p ?? "")
4958
4985
  );
@@ -4983,9 +5010,9 @@ function Xs() {
4983
5010
  return null;
4984
5011
  }
4985
5012
  return bn = function(c, f) {
4986
- var u = typeof Symbol == "function" && Symbol.iterator, l = "@@iterator";
5013
+ var l = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
4987
5014
  function d(k) {
4988
- var N = k && (u && k[u] || k[l]);
5015
+ var N = k && (l && k[l] || k[u]);
4989
5016
  if (typeof N == "function")
4990
5017
  return N;
4991
5018
  }
@@ -5297,7 +5324,7 @@ function eo() {
5297
5324
  function n() {
5298
5325
  }
5299
5326
  return n.resetWarningCache = e, yn = function() {
5300
- function r(o, c, f, u, l, d) {
5327
+ function r(o, c, f, l, u, d) {
5301
5328
  if (d !== t) {
5302
5329
  var m = new Error(
5303
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"
@@ -5369,14 +5396,14 @@ var Ca = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
5369
5396
  var o = s.shift();
5370
5397
  if (!Zt(o, !1))
5371
5398
  if (o.tagName === "SLOT") {
5372
- var c = o.assignedElements(), f = c.length ? c : o.children, u = t(f, !0, r);
5373
- r.flatten ? i.push.apply(i, u) : i.push({
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({
5374
5401
  scopeParent: o,
5375
- candidates: u
5402
+ candidates: l
5376
5403
  });
5377
5404
  } else {
5378
- var l = Ze.call(o, Ut);
5379
- 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);
5380
5407
  var d = o.shadowRoot || // check for an undisclosed shadow
5381
5408
  typeof r.getShadowRoot == "function" && r.getShadowRoot(o), m = !Zt(d, !1) && (!r.shadowRootFilter || r.shadowRootFilter(o));
5382
5409
  if (d && m) {
@@ -5439,8 +5466,8 @@ var Ca = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
5439
5466
  if (r && r !== e) {
5440
5467
  var o, c, f;
5441
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; ) {
5442
- var u, l, d;
5443
- r = zt(i), i = (u = r) === null || u === void 0 ? void 0 : u.host, s = !!((l = i) !== null && l !== void 0 && (d = l.ownerDocument) !== null && d !== void 0 && d.contains(i));
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));
5444
5471
  }
5445
5472
  }
5446
5473
  return s;
@@ -5457,10 +5484,10 @@ var Ca = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
5457
5484
  if (!r || r === "full" || r === "legacy-full") {
5458
5485
  if (typeof i == "function") {
5459
5486
  for (var c = e; e; ) {
5460
- var f = e.parentElement, u = zt(e);
5487
+ var f = e.parentElement, l = zt(e);
5461
5488
  if (f && !f.shadowRoot && i(f) === !0)
5462
5489
  return Lr(e);
5463
- 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;
5464
5491
  }
5465
5492
  e = c;
5466
5493
  }
@@ -5499,13 +5526,13 @@ var Ca = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
5499
5526
  }, bo = function t(e) {
5500
5527
  var n = [], r = [];
5501
5528
  return e.forEach(function(i, s) {
5502
- var o = !!i.scopeParent, c = o ? i.scopeParent : i, f = io(c, o), u = o ? t(i.candidates) : c;
5503
- f === 0 ? o ? n.push.apply(n, u) : n.push(c) : r.push({
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({
5504
5531
  documentOrder: s,
5505
5532
  tabIndex: f,
5506
5533
  item: i,
5507
5534
  isScope: o,
5508
- content: u
5535
+ content: l
5509
5536
  });
5510
5537
  }), r.sort(so).reduce(function(i, s) {
5511
5538
  return s.isScope ? i.push.apply(i, s.content) : i.push(s.content), i;
@@ -5674,7 +5701,7 @@ var Ur = {
5674
5701
  recentNavEvent: void 0
5675
5702
  }, c, f = function(E, x, $) {
5676
5703
  return E && E[x] !== void 0 ? E[x] : s[$ || x];
5677
- }, u = function(E, x) {
5704
+ }, l = function(E, x) {
5678
5705
  var $ = typeof (x == null ? void 0 : x.composedPath) == "function" ? x.composedPath() : void 0;
5679
5706
  return o.containerGroups.findIndex(function(L) {
5680
5707
  var U = L.container, I = L.tabbableNodes;
@@ -5686,7 +5713,7 @@ var Ur = {
5686
5713
  return Z === E;
5687
5714
  });
5688
5715
  });
5689
- }, l = function(E) {
5716
+ }, u = function(E) {
5690
5717
  var x = s[E];
5691
5718
  if (typeof x == "function") {
5692
5719
  for (var $ = arguments.length, L = new Array($ > 1 ? $ - 1 : 0), U = 1; U < $; U++)
@@ -5703,15 +5730,15 @@ var Ur = {
5703
5730
  throw new Error("`".concat(E, "` as selector refers to no known node"));
5704
5731
  return I;
5705
5732
  }, d = function() {
5706
- var E = l("initialFocus");
5733
+ var E = u("initialFocus");
5707
5734
  if (E === !1)
5708
5735
  return !1;
5709
5736
  if (E === void 0 || !Dt(E, s.tabbableOptions))
5710
- if (u(r.activeElement) >= 0)
5737
+ if (l(r.activeElement) >= 0)
5711
5738
  E = r.activeElement;
5712
5739
  else {
5713
5740
  var x = o.tabbableGroups[0], $ = x && x.firstTabbableNode;
5714
- E = $ || l("fallbackFocus");
5741
+ E = $ || u("fallbackFocus");
5715
5742
  }
5716
5743
  if (!E)
5717
5744
  throw new Error("Your focus-trap needs to have at least one focusable element");
@@ -5765,7 +5792,7 @@ var Ur = {
5765
5792
  };
5766
5793
  }), o.tabbableGroups = o.containerGroups.filter(function(E) {
5767
5794
  return E.tabbableNodes.length > 0;
5768
- }), o.tabbableGroups.length <= 0 && !l("fallbackFocus"))
5795
+ }), o.tabbableGroups.length <= 0 && !u("fallbackFocus"))
5769
5796
  throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
5770
5797
  if (o.containerGroups.find(function(E) {
5771
5798
  return E.posTabIndexesFound;
@@ -5786,14 +5813,14 @@ var Ur = {
5786
5813
  }), o.mostRecentlyFocusedNode = E, ko(E) && E.select();
5787
5814
  }
5788
5815
  }, y = function(E) {
5789
- var x = l("setReturnFocus", E);
5816
+ var x = u("setReturnFocus", E);
5790
5817
  return x || (x === !1 ? !1 : E);
5791
5818
  }, _ = function(E) {
5792
5819
  var x = E.target, $ = E.event, L = E.isBackward, U = L === void 0 ? !1 : L;
5793
5820
  x = x || Ct($), m();
5794
5821
  var I = null;
5795
5822
  if (o.tabbableGroups.length > 0) {
5796
- 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;
5797
5824
  if (Z < 0)
5798
5825
  U ? I = o.tabbableGroups[o.tabbableGroups.length - 1].lastTabbableNode : I = o.tabbableGroups[0].firstTabbableNode;
5799
5826
  else if (U) {
@@ -5818,11 +5845,11 @@ var Ur = {
5818
5845
  pt($) || (I = J.nextTabbableNode(x));
5819
5846
  }
5820
5847
  } else
5821
- I = l("fallbackFocus");
5848
+ I = u("fallbackFocus");
5822
5849
  return I;
5823
5850
  }, v = function(E) {
5824
5851
  var x = Ct(E);
5825
- if (!(u(x, E) >= 0)) {
5852
+ if (!(l(x, E) >= 0)) {
5826
5853
  if (ot(s.clickOutsideDeactivates, E)) {
5827
5854
  c.deactivate({
5828
5855
  // NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
@@ -5838,7 +5865,7 @@ var Ur = {
5838
5865
  ot(s.allowOutsideClick, E) || E.preventDefault();
5839
5866
  }
5840
5867
  }, b = function(E) {
5841
- var x = Ct(E), $ = u(x, E) >= 0;
5868
+ var x = Ct(E), $ = l(x, E) >= 0;
5842
5869
  if ($ || x instanceof Document)
5843
5870
  $ && (o.mostRecentlyFocusedNode = x);
5844
5871
  else {
@@ -5846,7 +5873,7 @@ var Ur = {
5846
5873
  var L, U = !0;
5847
5874
  if (o.mostRecentlyFocusedNode)
5848
5875
  if (Ie(o.mostRecentlyFocusedNode) > 0) {
5849
- var I = u(o.mostRecentlyFocusedNode), Z = o.containerGroups[I].tabbableNodes;
5876
+ var I = l(o.mostRecentlyFocusedNode), Z = o.containerGroups[I].tabbableNodes;
5850
5877
  if (Z.length > 0) {
5851
5878
  var J = Z.findIndex(function(k) {
5852
5879
  return k === o.mostRecentlyFocusedNode;
@@ -5885,7 +5912,7 @@ var Ur = {
5885
5912
  (s.isKeyForward(E) || s.isKeyBackward(E)) && j(E, s.isKeyBackward(E));
5886
5913
  }, w = function(E) {
5887
5914
  var x = Ct(E);
5888
- 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());
5889
5916
  }, D = function() {
5890
5917
  if (o.active)
5891
5918
  return Ur.activateTrap(i, c), o.delayInitialFocusTimer = s.delayInitialFocus ? zr(function() {
@@ -6078,21 +6105,21 @@ var $t = Y, Q = ro, qo = Po, Uo = qo.createFocusTrap, zo = Mo, Zo = zo.isFocusab
6078
6105
  function n(r) {
6079
6106
  var i;
6080
6107
  Ro(this, n), i = e.call(this, r), Lo(dt(i), "getNodeForOption", function(c) {
6081
- var f, u = (f = this.internalOptions[c]) !== null && f !== void 0 ? f : this.originalOptions[c];
6082
- if (typeof u == "function") {
6083
- for (var l = arguments.length, d = new Array(l > 1 ? l - 1 : 0), m = 1; m < l; m++)
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++)
6084
6111
  d[m - 1] = arguments[m];
6085
- u = u.apply(void 0, d);
6112
+ l = l.apply(void 0, d);
6086
6113
  }
6087
- if (u === !0 && (u = void 0), !u) {
6088
- if (u === void 0 || u === !1)
6089
- return u;
6114
+ if (l === !0 && (l = void 0), !l) {
6115
+ if (l === void 0 || l === !1)
6116
+ return l;
6090
6117
  throw new Error("`".concat(c, "` was specified but was not a node, or did not return a node"));
6091
6118
  }
6092
- var p = u;
6093
- if (typeof u == "string") {
6119
+ var p = l;
6120
+ if (typeof l == "string") {
6094
6121
  var g;
6095
- 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)
6096
6123
  throw new Error("`".concat(c, "` as selector refers to no known node"));
6097
6124
  }
6098
6125
  return p;
@@ -6200,9 +6227,9 @@ var $t = Y, Q = ro, qo = Po, Uo = qo.createFocusTrap, zo = Mo, Zo = zo.isFocusab
6200
6227
  i.outsideClick.allowDeactivation && // is the outside node NOT focusable (implying that it did NOT receive focus
6201
6228
  // as a result of the click-through) -- in which case do NOT restore focus
6202
6229
  // to `returnFocusNode` because focus should remain on the outside node
6203
- !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;
6204
6231
  f && c.focus({
6205
- preventScroll: l
6232
+ preventScroll: u
6206
6233
  }), i.originalOptions.onPostDeactivate && i.originalOptions.onPostDeactivate.call(null), i.outsideClick = null;
6207
6234
  };
6208
6235
  this.originalOptions.checkCanReturnFocus ? this.originalOptions.checkCanReturnFocus.call(null, this.getReturnFocusNode()).then(s, s) : s();
@@ -6248,9 +6275,9 @@ var $t = Y, Q = ro, qo = Po, Uo = qo.createFocusTrap, zo = Mo, Zo = zo.isFocusab
6248
6275
  if (s) {
6249
6276
  if (s.type && s.type === $t.Fragment)
6250
6277
  throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");
6251
- var o = function(u) {
6252
- var l = i.props.containerElements;
6253
- s && (typeof s.ref == "function" ? s.ref(u) : s.ref && (s.ref.current = u)), i.focusTrapElements = l || [u];
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];
6254
6281
  }, c = $t.cloneElement(s, {
6255
6282
  ref: o
6256
6283
  });
@@ -6332,8 +6359,8 @@ const en = ({
6332
6359
  forceShow: { error: o = !1 } = {},
6333
6360
  title: c,
6334
6361
  children: f,
6335
- buttons: u,
6336
- className: l = "",
6362
+ buttons: l,
6363
+ className: u = "",
6337
6364
  gtmContext: d = "Modal"
6338
6365
  }) => {
6339
6366
  const m = K(), [p, g] = te(e), y = (b) => {
@@ -6353,7 +6380,7 @@ const en = ({
6353
6380
  Da,
6354
6381
  {
6355
6382
  id: t,
6356
- className: S("overlay-modal", l, {
6383
+ className: S("overlay-modal", u, {
6357
6384
  "has-max-width": r
6358
6385
  }),
6359
6386
  hidden: !p,
@@ -6377,9 +6404,9 @@ const en = ({
6377
6404
  ] }),
6378
6405
  n && /* @__PURE__ */ a.jsx(Oe, {}),
6379
6406
  f,
6380
- u && /* @__PURE__ */ a.jsxs("div", { className: "bottom", children: [
6407
+ l && /* @__PURE__ */ a.jsxs("div", { className: "bottom", children: [
6381
6408
  /* @__PURE__ */ a.jsx(Oe, {}),
6382
- /* @__PURE__ */ a.jsx(_t, { buttons: u })
6409
+ /* @__PURE__ */ a.jsx(_t, { buttons: l })
6383
6410
  ] }),
6384
6411
  o && /* @__PURE__ */ a.jsx(qt, { className: "error", children: o })
6385
6412
  ] }) })
@@ -6401,10 +6428,10 @@ const Hl = ({
6401
6428
  onClose: c,
6402
6429
  reportError: f = () => {
6403
6430
  },
6404
- sendInvites: u
6431
+ sendInvites: l
6405
6432
  }) => {
6406
- const l = K();
6407
- return r || (r = l.formatMessage({ id: "invite-modal_formTitle" })), i || (i = l.formatMessage({ id: "invite-modal_formLabel" })), s || (s = l.formatMessage({ id: "invite-modal_cta" })), /* @__PURE__ */ a.jsx(
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(
6408
6435
  en,
6409
6436
  {
6410
6437
  title: n,
@@ -6420,7 +6447,7 @@ const Hl = ({
6420
6447
  label: i,
6421
6448
  ctaMessage: s,
6422
6449
  onClose: c,
6423
- sendInvites: u,
6450
+ sendInvites: l,
6424
6451
  reportError: f
6425
6452
  }
6426
6453
  )
@@ -6474,8 +6501,8 @@ const Vl = ({ members: t }) => {
6474
6501
  isOngoingEvent: o,
6475
6502
  pill: c,
6476
6503
  readingTime: f,
6477
- publishedDate: u,
6478
- startDate: l
6504
+ publishedDate: l,
6505
+ startDate: u
6479
6506
  } = e;
6480
6507
  if (t === "question") {
6481
6508
  const d = i && Dn(i);
@@ -6497,8 +6524,8 @@ const Vl = ({ members: t }) => {
6497
6524
  ] })
6498
6525
  ] });
6499
6526
  }
6500
- if (l && !s || o)
6501
- 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) });
6502
6529
  if (c)
6503
6530
  return /* @__PURE__ */ a.jsx(
6504
6531
  Bt,
@@ -6509,11 +6536,11 @@ const Vl = ({ members: t }) => {
6509
6536
  children: c
6510
6537
  }
6511
6538
  );
6512
- if (f || u) {
6513
- const d = u && Dn(u);
6539
+ if (f || l) {
6540
+ const d = l && Dn(l);
6514
6541
  return /* @__PURE__ */ a.jsxs("ul", { className: "details", children: [
6515
6542
  f && /* @__PURE__ */ a.jsx("li", { "data-testid": "reading-time", children: n.formatMessage({ id: "card_time_read" }, { time: f }) }),
6516
- 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(
6517
6544
  { id: "card_time_ago" },
6518
6545
  {
6519
6546
  time: d ? n.formatMessage(
@@ -6591,9 +6618,9 @@ const Vl = ({ members: t }) => {
6591
6618
  ae(() => {
6592
6619
  t.registered && o((_) => ({ ..._, registered: !0 }));
6593
6620
  }, [t.registered]);
6594
- 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;
6595
6622
  let p = "";
6596
- 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)
6597
6624
  return n ? /* @__PURE__ */ a.jsx(
6598
6625
  "a",
6599
6626
  {
@@ -6618,7 +6645,7 @@ const Vl = ({ members: t }) => {
6618
6645
  }
6619
6646
  ) : void 0;
6620
6647
  const g = ["microcourse", "event"];
6621
- if (e && e.onClick && g.includes(m) && l !== "premium") {
6648
+ if (e && e.onClick && g.includes(m) && u !== "premium") {
6622
6649
  const _ = s.loading || s.registered, v = async (b) => {
6623
6650
  if (b.preventDefault(), b.stopPropagation(), !(_ || !e || !e.onClick)) {
6624
6651
  o((j) => ({ ...j, loading: !0 }));
@@ -6662,13 +6689,13 @@ const Go = {
6662
6689
  gtmContext: i = "Carousel",
6663
6690
  className: s = ""
6664
6691
  }) => {
6665
- 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({
6666
6693
  data: null,
6667
6694
  isLoading: !0
6668
- }), { data: d, isLoading: m } = u, p = na(() => {
6695
+ }), { data: d, isLoading: m } = l, p = na(() => {
6669
6696
  n(e, f).then((D) => {
6670
- l(() => ({ data: D, isLoading: !1 }));
6671
- }).catch(() => l((D) => ({ ...D, isLoading: !1 })));
6697
+ u(() => ({ data: D, isLoading: !1 }));
6698
+ }).catch(() => u((D) => ({ ...D, isLoading: !1 })));
6672
6699
  }, [t]);
6673
6700
  if (ae(() => {
6674
6701
  p();
@@ -6823,16 +6850,16 @@ const ec = ({
6823
6850
  className: s,
6824
6851
  gtmContext: o
6825
6852
  }) => {
6826
- const c = K(), [f, u] = te({
6853
+ const c = K(), [f, l] = te({
6827
6854
  cardsPerPage: 4,
6828
6855
  isLoading: !0
6829
- }), { cardsPerPage: l, isLoading: d } = f, [m, p] = te({
6856
+ }), { cardsPerPage: u, isLoading: d } = f, [m, p] = te({
6830
6857
  currentPage: 0,
6831
6858
  loadedPages: [0]
6832
- }), { currentPage: g, loadedPages: y } = m, _ = e.length, v = Math.ceil(_ / l), b = pe(null), j = yt(!0, !0, b == null ? void 0 : b.current);
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);
6833
6860
  ae(() => {
6834
6861
  let M = 1;
6835
- 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) => ({
6836
6863
  ...O,
6837
6864
  cardsPerPage: M,
6838
6865
  isLoading: !1
@@ -6867,7 +6894,7 @@ const ec = ({
6867
6894
  }, R = {
6868
6895
  "--width": `${j || 0}px`,
6869
6896
  "--total-cards": _,
6870
- "--cards-per-page": l,
6897
+ "--cards-per-page": u,
6871
6898
  "--page": g
6872
6899
  };
6873
6900
  if (d)
@@ -6895,7 +6922,7 @@ const ec = ({
6895
6922
  "data-testid": "carousel-list",
6896
6923
  children: e.map((M, O) => {
6897
6924
  let C = W(M, O);
6898
- return C && Jo(O, l, g, y) ? /* @__PURE__ */ a.jsx(
6925
+ return C && Jo(O, u, g, y) ? /* @__PURE__ */ a.jsx(
6899
6926
  Ia,
6900
6927
  {
6901
6928
  id: C,
@@ -6971,8 +6998,8 @@ const ec = ({
6971
6998
  className: r = "",
6972
6999
  ...i
6973
7000
  }) => !t || !t.length ? null : t.map(
6974
- ({ title: s, viewAllUrl: o, cards: c, cardsTypes: f }, u) => {
6975
- 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;
6976
7003
  return e ? /* @__PURE__ */ a.jsxs(gt, { children: [
6977
7004
  /* @__PURE__ */ a.jsx(
6978
7005
  ba,
@@ -6982,7 +7009,7 @@ const ec = ({
6982
7009
  }
6983
7010
  ),
6984
7011
  d ? null : /* @__PURE__ */ a.jsx(Oe, {})
6985
- ] }, `placeholder-${l}`) : /* @__PURE__ */ a.jsxs(gt, { children: [
7012
+ ] }, `placeholder-${u}`) : /* @__PURE__ */ a.jsxs(gt, { children: [
6986
7013
  /* @__PURE__ */ a.jsx(
6987
7014
  ec,
6988
7015
  {
@@ -6993,7 +7020,7 @@ const ec = ({
6993
7020
  }
6994
7021
  ),
6995
7022
  d ? null : /* @__PURE__ */ a.jsx(Oe, {})
6996
- ] }, `carousel-${l}`);
7023
+ ] }, `carousel-${u}`);
6997
7024
  }
6998
7025
  );
6999
7026
  const xn = "joinCommunityButton", La = ({
@@ -7003,28 +7030,28 @@ const xn = "joinCommunityButton", La = ({
7003
7030
  }, leave: () => {
7004
7031
  } }
7005
7032
  }) => {
7006
- 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");
7007
7034
  ae(() => {
7008
- u === "joining" ? l("joined") : u === "leaving" && l("notJoined");
7035
+ l === "joining" ? u("joined") : l === "leaving" && u("notJoined");
7009
7036
  }, [c]);
7010
7037
  const d = {}, m = {};
7011
- return c && u !== "leaving" && (d["data-hover-text"] = i.formatMessage({ id: `${xn}_leave` }), d["aria-label"] = i.formatMessage({ id: `${xn}_member_aria` }), m["aria-hidden"] = "true"), /* @__PURE__ */ a.jsx(
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(
7012
7039
  ie,
7013
7040
  {
7014
7041
  variant: c ? "secondary" : "primary",
7015
7042
  size: "medium",
7016
7043
  styling: { fullWidth: !0 },
7017
- icon: c && u !== "leaving" ? { icon: "tick", position: "left" } : !1,
7044
+ icon: c && l !== "leaving" ? { icon: "tick", position: "left" } : !1,
7018
7045
  onClick: async (p) => {
7019
- 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));
7020
7047
  },
7021
- className: S("join-community-button", u, {
7022
- active: u === "joining"
7048
+ className: S("join-community-button", l, {
7049
+ active: l === "joining"
7023
7050
  }),
7024
7051
  disabled: !o,
7025
7052
  ...d,
7026
7053
  children: /* @__PURE__ */ a.jsx("span", { className: "text", ...m, children: i.formatMessage({
7027
- id: `${xn}${["joining", "leaving"].includes(u) ? `_${u}` : c ? "_member" : e ? "_short" : ""}`
7054
+ id: `${xn}${["joining", "leaving"].includes(l) ? `_${l}` : c ? "_member" : e ? "_short" : ""}`
7028
7055
  }) })
7029
7056
  }
7030
7057
  );
@@ -7036,14 +7063,14 @@ const wn = "communityDetails_", Kl = ({
7036
7063
  members: { number: r = 0, data: i = [] } = { number: 0, data: [] },
7037
7064
  functions: { invite: s, ...o }
7038
7065
  }) => {
7039
- 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;
7040
7067
  return /* @__PURE__ */ a.jsxs("div", { className: S("community-details", t), children: [
7041
7068
  /* @__PURE__ */ a.jsx(Oe, {}),
7042
7069
  /* @__PURE__ */ a.jsxs("div", { className: "member-details", children: [
7043
7070
  /* @__PURE__ */ a.jsxs("div", { className: "top", children: [
7044
7071
  /* @__PURE__ */ a.jsxs("h4", { children: [
7045
7072
  c.formatMessage({ id: `${wn}members` }),
7046
- /* @__PURE__ */ a.jsx("span", { className: "count", children: u })
7073
+ /* @__PURE__ */ a.jsx("span", { className: "count", children: l })
7047
7074
  ] }),
7048
7075
  !d && /* @__PURE__ */ a.jsx("p", { className: "text-small", children: /* @__PURE__ */ a.jsx("a", { href: `/communities/${n}/members`, children: c.formatMessage({ id: `${wn}viewAll` }) }) })
7049
7076
  ] }),
@@ -7052,12 +7079,12 @@ const wn = "communityDetails_", Kl = ({
7052
7079
  {
7053
7080
  contributors: {
7054
7081
  total: r,
7055
- data: l
7082
+ data: u
7056
7083
  },
7057
7084
  styling: {
7058
7085
  size: "medium",
7059
7086
  showGap: !0,
7060
- showPlaceholders: u === 0
7087
+ showPlaceholders: l === 0
7061
7088
  },
7062
7089
  cutoff: f
7063
7090
  }
@@ -7114,11 +7141,11 @@ const Ql = ({
7114
7141
  text: typeof e != "boolean" && e.text || s.formatMessage({ id: "filters_all" })
7115
7142
  },
7116
7143
  ...t
7117
- ] : t, [c, f] = te(e ? ["all"] : []), u = (l, d) => {
7144
+ ] : t, [c, f] = te(e ? ["all"] : []), l = (u, d) => {
7118
7145
  let m = [];
7119
- c.includes(l) ? m = c.filter((p) => p !== l) : l === "all" ? m = ["all"] : n ? m = [...c.filter((p) => p !== "all"), l] : m = [l], f((p) => (r && typeof r == "function" && r({ current: m, previous: p }), m)), d && typeof d == "function" && d();
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();
7120
7147
  };
7121
- 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 = () => {
7122
7149
  } }) => {
7123
7150
  let g = {};
7124
7151
  return m && (g = {
@@ -7127,14 +7154,14 @@ const Ql = ({
7127
7154
  }), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
7128
7155
  "button",
7129
7156
  {
7130
- className: S(l, { selected: c.includes(l) }),
7157
+ className: S(u, { selected: c.includes(u) }),
7131
7158
  onClick: (y) => {
7132
- y.preventDefault(), y.stopPropagation(), u(l, p);
7159
+ y.preventDefault(), y.stopPropagation(), l(u, p);
7133
7160
  },
7134
7161
  ...g,
7135
7162
  children: d
7136
7163
  }
7137
- ) }, l);
7164
+ ) }, u);
7138
7165
  }) });
7139
7166
  }, tc = (t, e) => {
7140
7167
  const n = String(t);
@@ -7162,22 +7189,22 @@ const jn = {
7162
7189
  label: c,
7163
7190
  className: f = ""
7164
7191
  }) => {
7165
- const u = K(), [l, d] = te(t);
7192
+ const l = K(), [u, d] = te(t);
7166
7193
  if (ae(() => {
7167
- t !== l && d(t);
7194
+ t !== u && d(t);
7168
7195
  }, [t]), !r || !Object.values(r).some(
7169
7196
  (y) => y && y.post_name
7170
7197
  ))
7171
7198
  return null;
7172
- const p = Object.keys(r), g = l !== t;
7199
+ const p = Object.keys(r), g = u !== t;
7173
7200
  return /* @__PURE__ */ a.jsxs("div", { className: S("language-switcher text-small", o, f), children: [
7174
7201
  /* @__PURE__ */ a.jsxs("nav", { children: [
7175
- 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` }) }),
7176
7203
  /* @__PURE__ */ a.jsx("ul", { children: p.map((y) => {
7177
7204
  if (!jn[y])
7178
7205
  return null;
7179
7206
  let _ = { className: y };
7180
- return l === y ? _["aria-label"] = u.formatMessage(
7207
+ return u === y ? _["aria-label"] = l.formatMessage(
7181
7208
  { id: `${Pt}selected` },
7182
7209
  { language: jn[y] }
7183
7210
  ) : _ = {
@@ -7188,7 +7215,7 @@ const jn = {
7188
7215
  }
7189
7216
  }, /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(tt, { ..._, fallbackElement: "span", children: jn[y] }) }, y);
7190
7217
  }) }),
7191
- o !== "short" && !g && /* @__PURE__ */ a.jsx("p", { children: u.formatMessage({
7218
+ o !== "short" && !g && /* @__PURE__ */ a.jsx("p", { children: l.formatMessage({
7192
7219
  id: `${Pt}translation_${e ? "original" : n ? "human" : "machine"}`
7193
7220
  }) })
7194
7221
  ] }),
@@ -7196,7 +7223,7 @@ const jn = {
7196
7223
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
7197
7224
  // @ts-ignore
7198
7225
  // `values` are throwing a type error: https://github.com/formatjs/formatjs/issues/3633
7199
- children: u.formatMessage(
7226
+ children: l.formatMessage(
7200
7227
  { id: `${Pt}disclaimer` },
7201
7228
  {
7202
7229
  email: ut.support,
@@ -7224,9 +7251,9 @@ const kn = _i({ locale: "en", messages: Vn }), tn = ({
7224
7251
  error: kn.formatMessage({ id: "loadMore_error" })
7225
7252
  },
7226
7253
  className: f = "",
7227
- gtmContext: u = "LoadMore"
7254
+ gtmContext: l = "LoadMore"
7228
7255
  }) => {
7229
- const [l, d] = te(""), m = async (p) => {
7256
+ const [u, d] = te(""), m = async (p) => {
7230
7257
  if (!n)
7231
7258
  try {
7232
7259
  await e(p);
@@ -7234,7 +7261,7 @@ const kn = _i({ locale: "en", messages: Vn }), tn = ({
7234
7261
  g instanceof Error ? d(g.message) : d("Unknown error");
7235
7262
  }
7236
7263
  };
7237
- 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(
7238
7265
  ie,
7239
7266
  {
7240
7267
  variant: r,
@@ -7242,14 +7269,14 @@ const kn = _i({ locale: "en", messages: Vn }), tn = ({
7242
7269
  styling: s,
7243
7270
  icon: o,
7244
7271
  onClick: m,
7245
- "data-gtm-event-context": u,
7272
+ "data-gtm-event-context": l,
7246
7273
  "data-gtm-event-type": "load-more-click",
7247
7274
  disabled: n,
7248
7275
  className: "gtm-trackable",
7249
7276
  "data-testid": "load-more-button",
7250
7277
  children: c.button
7251
7278
  }
7252
- ) : c.endOfFeed && (!l || l != null && l.includes("Cannot read items")) ? /* @__PURE__ */ a.jsx("p", { children: c.endOfFeed }) : l && /* @__PURE__ */ a.jsx("p", { className: "error", children: c.error }) });
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 }) });
7253
7280
  };
7254
7281
  const Ba = ({
7255
7282
  variant: t = "default",
@@ -7274,8 +7301,8 @@ const nc = ({
7274
7301
  }) => {
7275
7302
  const i = K(), s = pe(
7276
7303
  null
7277
- ), [o, c] = te(!1), f = (u) => {
7278
- 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);
7279
7306
  };
7280
7307
  return ae(() => (document.addEventListener("click", f, !0), () => {
7281
7308
  document.removeEventListener("click", f, !0);
@@ -7296,11 +7323,11 @@ const nc = ({
7296
7323
  screenreaderText: i.formatMessage({ id: "moreMenu" })
7297
7324
  }
7298
7325
  ),
7299
- /* @__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) => {
7300
7327
  const y = {
7301
7328
  ...p,
7302
7329
  onClick: (_) => {
7303
- c(!1), typeof l == "function" && l(_);
7330
+ c(!1), typeof u == "function" && u(_);
7304
7331
  },
7305
7332
  onFocus: () => {
7306
7333
  Mt && (clearTimeout(Mt), Mt = !1);
@@ -7311,7 +7338,7 @@ const nc = ({
7311
7338
  }, 100);
7312
7339
  }
7313
7340
  };
7314
- 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(
7315
7342
  ie,
7316
7343
  {
7317
7344
  variant: "tertiary",
@@ -7437,7 +7464,7 @@ const oc = "shareLinks_", Xl = ({
7437
7464
  const c = K(), f = sc({ title: t, link: e, referrer: n });
7438
7465
  return /* @__PURE__ */ a.jsxs("aside", { className: S("share-links", i, s, o), children: [
7439
7466
  /* @__PURE__ */ a.jsx("p", { className: "text-small", children: c.formatMessage({ id: "shareLinks_label" }) }),
7440
- /* @__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 }) => {
7441
7468
  if (typeof m == "function" && !m())
7442
7469
  return null;
7443
7470
  const g = {};
@@ -7446,78 +7473,78 @@ const oc = "shareLinks_", Xl = ({
7446
7473
  {
7447
7474
  size: i,
7448
7475
  variant: "tertiary",
7449
- icon: { icon: l || u },
7476
+ icon: { icon: u || l },
7450
7477
  href: d,
7451
7478
  target: "_blank",
7452
7479
  rel: "noopener noreferrer",
7453
7480
  className: "gtm-trackable",
7454
7481
  "data-gtm-event-context": `${r}-SocialButtons`,
7455
- "data-gtm-event-type": `${u}-click`,
7482
+ "data-gtm-event-type": `${l}-click`,
7456
7483
  "data-testid": "link",
7457
- screenreaderText: c.formatMessage({ id: `${oc}link_${u}` }),
7484
+ screenreaderText: c.formatMessage({ id: `${oc}link_${l}` }),
7458
7485
  ...g
7459
7486
  }
7460
- ) }, u);
7487
+ ) }, l);
7461
7488
  }) })
7462
7489
  ] });
7463
7490
  };
7464
7491
  const eu = ({ tabs: t, className: e = "", preventLocationChange: n }) => {
7465
- var u;
7466
- const r = (l, d, m) => (l || (l = `panel-${window.btoa(d)}-${m}`), l);
7467
- let i = t.findIndex((l) => l.current === !0);
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);
7468
7495
  if (i < 0 && (i = 0), window.location.hash) {
7469
- const l = window.location.hash.replace("#", "");
7470
- if (t.find((m) => m.id === l)) {
7496
+ const u = window.location.hash.replace("#", "");
7497
+ if (t.find((m) => m.id === u)) {
7471
7498
  for (let m = 0; m < t.length; m++)
7472
- if (r(t[m].id, t[m].text, m) === l) {
7499
+ if (r(t[m].id, t[m].text, m) === u) {
7473
7500
  i = m;
7474
7501
  break;
7475
7502
  }
7476
7503
  }
7477
7504
  }
7478
7505
  const [s, o] = te(
7479
- (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)
7480
7507
  );
7481
7508
  ae(() => {
7482
7509
  if (t[i].hasCarousel) {
7483
- const l = new CustomEvent("hiddenSectionVisible", {
7510
+ const u = new CustomEvent("hiddenSectionVisible", {
7484
7511
  detail: { id: s }
7485
7512
  });
7486
- window.dispatchEvent(l);
7513
+ window.dispatchEvent(u);
7487
7514
  }
7488
7515
  }, [s]);
7489
7516
  const c = [], f = [];
7490
- return t.forEach(({ id: l, text: d, content: m, href: p, hasCarousel: g }, y) => {
7491
- l = r(l, d, y);
7492
- const _ = s === l, v = {};
7493
- p || (v["aria-controls"] = l, v.onClick = (b) => {
7494
- b.preventDefault(), b.stopPropagation(), o(l), !n && (window.location.hash = `#${l}`);
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}`);
7495
7522
  }, f.push(
7496
7523
  /* @__PURE__ */ a.jsx(
7497
7524
  "section",
7498
7525
  {
7499
- id: l,
7526
+ id: u,
7500
7527
  hidden: !_,
7501
7528
  role: "tabpanel",
7502
- "aria-labelledby": `tab-${l}`,
7529
+ "aria-labelledby": `tab-${u}`,
7503
7530
  "aria-live": _ ? "assertive" : "off",
7504
7531
  children: typeof m == "string" ? /* @__PURE__ */ a.jsx("p", { children: m }) : m
7505
7532
  },
7506
- `section-${l}`
7533
+ `section-${u}`
7507
7534
  )
7508
7535
  )), c.push(
7509
7536
  /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
7510
7537
  "a",
7511
7538
  {
7512
- href: p || `#${l}`,
7513
- id: `tab-${l}`,
7539
+ href: p || `#${u}`,
7540
+ id: `tab-${u}`,
7514
7541
  className: S({ selected: _ }),
7515
7542
  role: "tab",
7516
7543
  "aria-selected": _,
7517
7544
  ...v,
7518
7545
  children: d
7519
7546
  }
7520
- ) }, `tab-${l}`)
7547
+ ) }, `tab-${u}`)
7521
7548
  );
7522
7549
  }), /* @__PURE__ */ a.jsxs("div", { className: S("tabs-wrapper", e), children: [
7523
7550
  /* @__PURE__ */ a.jsx("ul", { className: "tabs", role: "tablist", children: c }),
@@ -7588,26 +7615,26 @@ const Sn = "cookieBanner_", Cn = [
7588
7615
  const t = K(), [e, n, r] = aa(Cn), [i, s] = te(
7589
7616
  !e["apol-cookie-banner"]
7590
7617
  ), o = () => {
7591
- Cn.forEach((l) => {
7592
- n(l, !0, {
7618
+ Cn.forEach((u) => {
7619
+ n(u, !0, {
7593
7620
  path: "/",
7594
7621
  expires: $n,
7595
- domain: l === "apolitical-performance-cookie-consent" ? ".apolitical.co" : void 0
7622
+ domain: u === "apolitical-performance-cookie-consent" ? ".apolitical.co" : void 0
7596
7623
  });
7597
7624
  }), s(!1), window.location.reload();
7598
7625
  }, c = () => {
7599
7626
  n("apol-cookie-banner", !0, {
7600
7627
  path: "/",
7601
7628
  expires: $n
7602
- }), Cn.forEach((l) => {
7603
- if (l === "apol-cookie-banner") {
7604
- n(l, !0, {
7629
+ }), Cn.forEach((u) => {
7630
+ if (u === "apol-cookie-banner") {
7631
+ n(u, !0, {
7605
7632
  path: "/",
7606
7633
  expires: $n
7607
7634
  });
7608
7635
  return;
7609
7636
  }
7610
- r(l);
7637
+ r(u);
7611
7638
  }), s(!1);
7612
7639
  };
7613
7640
  if (!i)
@@ -7616,21 +7643,21 @@ const Sn = "cookieBanner_", Cn = [
7616
7643
  { id: "settings", href: "/pages/cookie-policy", gtmType: "policy-page" },
7617
7644
  { id: "reject", onClick: c, gtmType: "reject-all" },
7618
7645
  { id: "accept", onClick: o, gtmType: "accepted-all" }
7619
- ], u = [];
7620
- return f.forEach((l) => {
7621
- u.push({
7622
- variant: l.href ? "tertiary" : "primary",
7623
- href: l.href,
7624
- 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,
7625
7652
  className: "gtm-trackable",
7626
7653
  "data-gtm-event-context": "cookie-banner",
7627
- "data-gtm-event-type": `cookie-${l.gtmType}-click`,
7628
- 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}` })
7629
7656
  });
7630
7657
  }), /* @__PURE__ */ a.jsxs("aside", { id: "cookie-banner", className: "text-medium", children: [
7631
7658
  /* @__PURE__ */ a.jsx("h6", { children: t.formatMessage({ id: `${Sn}title` }) }),
7632
7659
  /* @__PURE__ */ a.jsx("p", { children: t.formatMessage({ id: `${Sn}text` }) }),
7633
- /* @__PURE__ */ a.jsx(_t, { buttons: u })
7660
+ /* @__PURE__ */ a.jsx(_t, { buttons: l })
7634
7661
  ] });
7635
7662
  }, Me = {
7636
7663
  platform: {
@@ -8001,7 +8028,7 @@ const Qe = "footer_", Yt = "SiteFooter", Hr = ({ group: t }) => {
8001
8028
  const o = K(), c = ia(Kt, t);
8002
8029
  if (!c || c.onlyShow && (c.onlyShow === "logged-in" && !e || c.onlyShow === "logged-out" && e))
8003
8030
  return null;
8004
- 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.");
8005
8032
  let d = `header_${t.replaceAll(".", "_")}`;
8006
8033
  c.hasVariantText && (d += `_logged${e ? "In" : "Out"}`);
8007
8034
  let m = !1;
@@ -8014,12 +8041,12 @@ const Qe = "footer_", Yt = "SiteFooter", Hr = ({ group: t }) => {
8014
8041
  m = {
8015
8042
  href: c.href,
8016
8043
  role: "menuitem"
8017
- }, u && (m = {
8044
+ }, l && (m = {
8018
8045
  ...m,
8019
8046
  className: "gtm-trackable",
8020
8047
  "data-gtm-event-type": b,
8021
8048
  "data-gtm-event-context": "HeaderButtons"
8022
- }), l && (m = {
8049
+ }), u && (m = {
8023
8050
  ...m,
8024
8051
  variant: "secondary",
8025
8052
  size: { mobile: "small", 881: "large" },
@@ -8064,7 +8091,7 @@ const Qe = "footer_", Yt = "SiteFooter", Hr = ({ group: t }) => {
8064
8091
  ..._,
8065
8092
  children: [
8066
8093
  m ? Y.createElement(
8067
- l ? ie : "a",
8094
+ u ? ie : "a",
8068
8095
  m,
8069
8096
  o.formatMessage({ id: d })
8070
8097
  ) : o.formatMessage({ id: d }),
@@ -8076,7 +8103,7 @@ const Qe = "footer_", Yt = "SiteFooter", Hr = ({ group: t }) => {
8076
8103
  isDesktopVersion: n,
8077
8104
  menus: r,
8078
8105
  callback: i,
8079
- doTrack: f ? u : null
8106
+ doTrack: f ? l : null
8080
8107
  };
8081
8108
  return c[b].order ? /* @__PURE__ */ a.jsxs(
8082
8109
  "li",
@@ -8122,38 +8149,38 @@ const dc = { height: 67, height_desktop: 83 }, Ua = ({ showNavigation: t = !0 })
8122
8149
  navigation: { desktop: !1, default: !1 },
8123
8150
  account: { desktop: !1, default: !1 }
8124
8151
  }
8125
- }), { headerIsVisible: f, menus: u, focusElements: l } = o;
8152
+ }), { headerIsVisible: f, menus: l, focusElements: u } = o;
8126
8153
  Di({
8127
8154
  scrollPosition: dc[`height${s.navigation ? "_desktop" : ""}`],
8128
8155
  callbacks: {
8129
8156
  scrollUp: () => {
8130
- !s && u.navigation || fe.shouldChangeHeaderIsVisible(!0, u, c);
8157
+ !s && l.navigation || fe.shouldChangeHeaderIsVisible(!0, l, c);
8131
8158
  },
8132
8159
  scrollDown: () => {
8133
- !s && u.navigation || fe.shouldChangeHeaderIsVisible(!1, u, c);
8160
+ !s && l.navigation || fe.shouldChangeHeaderIsVisible(!1, l, c);
8134
8161
  }
8135
8162
  }
8136
8163
  });
8137
8164
  const d = (p, g) => {
8138
- fe.handleMenus({ id: p, value: g, menus: u, dispatch: c });
8165
+ fe.handleMenus({ id: p, value: g, menus: l, dispatch: c });
8139
8166
  }, m = pe(null);
8140
8167
  return vt(() => {
8141
- u.navigation && fe.autoFocus({
8168
+ l.navigation && fe.autoFocus({
8142
8169
  menu: "navigation",
8143
8170
  navigationRef: m,
8144
8171
  isDesktopVersion: s.navigation,
8145
- focusElements: l,
8172
+ focusElements: u,
8146
8173
  dispatch: c
8147
8174
  });
8148
- }, [u.navigation]), vt(() => {
8149
- u.account && fe.autoFocus({
8175
+ }, [l.navigation]), vt(() => {
8176
+ l.account && fe.autoFocus({
8150
8177
  menu: "account",
8151
8178
  navigationRef: m,
8152
8179
  isDesktopVersion: s.navigation,
8153
- focusElements: l,
8180
+ focusElements: u,
8154
8181
  dispatch: c
8155
8182
  });
8156
- }, [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: [
8157
8184
  /* @__PURE__ */ a.jsxs(
8158
8185
  "nav",
8159
8186
  {
@@ -8179,15 +8206,15 @@ const dc = { height: 67, height_desktop: 83 }, Ua = ({ showNavigation: t = !0 })
8179
8206
  {
8180
8207
  className: "menu-button gtm-trackable",
8181
8208
  onClick: (p) => {
8182
- p.preventDefault(), p.stopPropagation(), d("navigation", !u.navigation);
8209
+ p.preventDefault(), p.stopPropagation(), d("navigation", !l.navigation);
8183
8210
  },
8184
8211
  "data-gtm-event-type": "open-tab-menu-click",
8185
8212
  "data-gtm-event-context": "HeaderLeft-Chevron",
8186
8213
  "aria-haspopup": "true",
8187
- "aria-expanded": u.navigation,
8214
+ "aria-expanded": l.navigation,
8188
8215
  "aria-controls": "navigation",
8189
8216
  children: /* @__PURE__ */ a.jsx(be, { children: e.formatMessage({
8190
- id: `header_menu_${u.navigation ? "hide" : "show"}`
8217
+ id: `header_menu_${l.navigation ? "hide" : "show"}`
8191
8218
  }) })
8192
8219
  }
8193
8220
  ),
@@ -8196,16 +8223,16 @@ const dc = { height: 67, height_desktop: 83 }, Ua = ({ showNavigation: t = !0 })
8196
8223
  {
8197
8224
  ref: m,
8198
8225
  id: "navigation",
8199
- hidden: s.navigation || u.account ? !1 : !u.navigation,
8226
+ hidden: s.navigation || l.account ? !1 : !l.navigation,
8200
8227
  role: "menu",
8201
- "data-showing": !s.navigation && u.account ? "account" : "default",
8228
+ "data-showing": !s.navigation && l.account ? "account" : "default",
8202
8229
  children: Kt.order.map((p) => /* @__PURE__ */ a.jsx(
8203
8230
  Gt,
8204
8231
  {
8205
8232
  id: p,
8206
8233
  isLoggedIn: i,
8207
8234
  isDesktopVersion: s.navigation,
8208
- menus: { navigation: u.navigation, account: u.account },
8235
+ menus: { navigation: l.navigation, account: l.account },
8209
8236
  callback: d
8210
8237
  },
8211
8238
  p
@@ -8217,16 +8244,16 @@ const dc = { height: 67, height_desktop: 83 }, Ua = ({ showNavigation: t = !0 })
8217
8244
  {
8218
8245
  className: "search toggle-search-button",
8219
8246
  onClick: (p) => {
8220
- p.preventDefault(), p.stopPropagation(), d("search", !u.search);
8247
+ p.preventDefault(), p.stopPropagation(), d("search", !l.search);
8221
8248
  },
8222
8249
  "aria-haspopup": "true",
8223
- "aria-expanded": u.search,
8250
+ "aria-expanded": l.search,
8224
8251
  "aria-controls": "search-form",
8225
8252
  children: /* @__PURE__ */ a.jsx(
8226
8253
  be,
8227
8254
  {
8228
8255
  children: e.formatMessage({
8229
- id: `header_search_${u.search ? "hide" : "show"}`
8256
+ id: `header_search_${l.search ? "hide" : "show"}`
8230
8257
  })
8231
8258
  }
8232
8259
  )
@@ -8237,7 +8264,7 @@ const dc = { height: 67, height_desktop: 83 }, Ua = ({ showNavigation: t = !0 })
8237
8264
  {
8238
8265
  id: "global-search",
8239
8266
  handleToggle: {
8240
- searchIsOpen: u.search,
8267
+ searchIsOpen: l.search,
8241
8268
  isDesktopVersion: s.search
8242
8269
  },
8243
8270
  gtmContext: "search-bar-header",
@@ -8251,16 +8278,16 @@ const dc = { height: 67, height_desktop: 83 }, Ua = ({ showNavigation: t = !0 })
8251
8278
  onClick: (p) => fe.events.onClick(p, {
8252
8279
  id: "account",
8253
8280
  callback: d,
8254
- isOpen: u.account
8281
+ isOpen: l.account
8255
8282
  }),
8256
8283
  onMouseEnter: () => fe.events.onMouseEnter({ id: "account", callback: d }),
8257
8284
  onMouseLeave: () => fe.events.onBlur({ id: "account", callback: d }),
8258
8285
  "aria-haspopup": "true",
8259
- "aria-expanded": u.account,
8286
+ "aria-expanded": l.account,
8260
8287
  "aria-controls": "navigation",
8261
8288
  children: [
8262
8289
  /* @__PURE__ */ a.jsx(be, { children: e.formatMessage({
8263
- id: `header_account_${u.account ? "hide" : "show"}`
8290
+ id: `header_account_${l.account ? "hide" : "show"}`
8264
8291
  }) }),
8265
8292
  /* @__PURE__ */ a.jsx(
8266
8293
  He,
@@ -8281,7 +8308,7 @@ const dc = { height: 67, height_desktop: 83 }, Ua = ({ showNavigation: t = !0 })
8281
8308
  "div",
8282
8309
  {
8283
8310
  className: S("overlay", {
8284
- open: u.navigation || u.account || !s.search && u.search
8311
+ open: l.navigation || l.account || !s.search && l.search
8285
8312
  })
8286
8313
  }
8287
8314
  )
@@ -8309,7 +8336,7 @@ const fc = () => {
8309
8336
  className: o = "",
8310
8337
  locale: c = "en"
8311
8338
  }) => {
8312
- 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();
8313
8340
  ae(() => {
8314
8341
  window.scrollTo(0, 0);
8315
8342
  }, [p]);
@@ -8318,22 +8345,22 @@ const fc = () => {
8318
8345
  }), _ = At(n, {
8319
8346
  locale: c
8320
8347
  }), v = {};
8321
- return l !== "default" && (v[l] = !0), d !== "default" && (v[d] = !0), m !== "default" && (v[m] = !0), /* @__PURE__ */ a.jsx(Si, { onError: r, fallback: /* @__PURE__ */ a.jsx(fc, {}), children: /* @__PURE__ */ a.jsx(vi, { fallback: null, children: /* @__PURE__ */ a.jsxs(
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(
8322
8349
  "div",
8323
8350
  {
8324
8351
  id: "wrapper",
8325
- className: S(o, v, { "has-footer": u }),
8352
+ className: S(o, v, { "has-footer": l }),
8326
8353
  children: [
8327
8354
  /* @__PURE__ */ a.jsx(Ua, { showNavigation: f }),
8328
8355
  /* @__PURE__ */ a.jsxs("section", { id: "content-wrapper", children: [
8329
8356
  y && /* @__PURE__ */ a.jsx("div", { className: "additional-content prepended", children: y }),
8330
- Y.createElement(l === "bold" ? Da : "div", {
8357
+ Y.createElement(u === "bold" ? Da : "div", {
8331
8358
  id: "content",
8332
8359
  children: g
8333
8360
  })
8334
8361
  ] }),
8335
8362
  _ && /* @__PURE__ */ a.jsx("div", { className: "additional-content appended", children: _ }),
8336
- u && /* @__PURE__ */ a.jsx(qa, {}),
8363
+ l && /* @__PURE__ */ a.jsx(qa, {}),
8337
8364
  /* @__PURE__ */ a.jsx(uc, {})
8338
8365
  ]
8339
8366
  }
@@ -8382,29 +8409,29 @@ const ru = ({
8382
8409
  if (!t || t.length < 1)
8383
8410
  return null;
8384
8411
  const f = [];
8385
- return t.forEach((u) => {
8386
- if (!u)
8412
+ return t.forEach((l) => {
8413
+ if (!l)
8387
8414
  return;
8388
- const l = pc.getTagDetails(u);
8389
- l && f.push(l);
8415
+ const u = pc.getTagDetails(l);
8416
+ u && f.push(u);
8390
8417
  }), f.length < 1 ? null : /* @__PURE__ */ a.jsx(
8391
8418
  "ul",
8392
8419
  {
8393
8420
  className: S("tags text-small", e, i, {
8394
8421
  "one-line": n
8395
8422
  }),
8396
- children: f.map((u) => {
8397
- const l = c.formatMessage({ id: u.text });
8398
- return /* @__PURE__ */ a.jsx("li", { children: u.href && r ? /* @__PURE__ */ a.jsx(
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(
8399
8426
  "a",
8400
8427
  {
8401
- href: u.href,
8428
+ href: l.href,
8402
8429
  className: "gtm-trackable",
8403
8430
  "data-gtm-event-type": s,
8404
8431
  "data-gtm-event-context": o,
8405
- children: l
8432
+ children: u
8406
8433
  }
8407
- ) : l }, u.id);
8434
+ ) : u }, l.id);
8408
8435
  })
8409
8436
  }
8410
8437
  );
@@ -8424,10 +8451,10 @@ const au = ({
8424
8451
  c.formatMessage({ id: "membersList" }),
8425
8452
  /* @__PURE__ */ a.jsx("span", { className: "count", children: e })
8426
8453
  ] }),
8427
- /* @__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: [
8428
8455
  /* @__PURE__ */ a.jsx(Jn, { member: f, gtmContext: i, gtmType: s }),
8429
8456
  f.isAdmin && /* @__PURE__ */ a.jsx(Bt, { children: c.formatMessage({ id: "membersList_admin" }) })
8430
- ] }, u)) }),
8457
+ ] }, l)) }),
8431
8458
  n && /* @__PURE__ */ a.jsx(
8432
8459
  tn,
8433
8460
  {
@@ -8451,12 +8478,12 @@ const iu = ({
8451
8478
  className: c = ""
8452
8479
  }) => {
8453
8480
  const f = K();
8454
- let u = i ? n : r;
8455
- u > 99 ? u = 100 : u < 1 && (u = 0);
8456
- 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;
8457
8484
  return Y.createElement(t, {
8458
8485
  className: S("course-progression", c, {
8459
- "highlight-percentage": l,
8486
+ "highlight-percentage": u,
8460
8487
  "has-circle-graph": s === "circle"
8461
8488
  }),
8462
8489
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
@@ -8464,10 +8491,10 @@ const iu = ({
8464
8491
  { id: "courseProgression_done" },
8465
8492
  {
8466
8493
  percent: (d) => /* @__PURE__ */ a.jsx("strong", { children: d }),
8467
- number: u
8494
+ number: l
8468
8495
  }
8469
8496
  ) }),
8470
- u < 100 && i && /* @__PURE__ */ a.jsx(
8497
+ l < 100 && i && /* @__PURE__ */ a.jsx(
8471
8498
  Gn,
8472
8499
  {
8473
8500
  time: e,
@@ -8477,7 +8504,7 @@ const iu = ({
8477
8504
  /* @__PURE__ */ a.jsx(
8478
8505
  ga,
8479
8506
  {
8480
- progress: u,
8507
+ progress: l,
8481
8508
  styling: {
8482
8509
  layout: s || "bar",
8483
8510
  size: s && s === "circle" ? "small" : "default"
@@ -8526,11 +8553,11 @@ const su = ({
8526
8553
  sectionTime: o,
8527
8554
  slug: c,
8528
8555
  timeLeft: f,
8529
- title: u
8556
+ title: l
8530
8557
  },
8531
- quizScores: l
8558
+ quizScores: u
8532
8559
  }) => {
8533
- const d = K(), m = "courseStructure_", p = u.toLowerCase().includes("course conclusion");
8560
+ const d = K(), m = "courseStructure_", p = l.toLowerCase().includes("course conclusion");
8534
8561
  return /* @__PURE__ */ a.jsxs(
8535
8562
  Kn,
8536
8563
  {
@@ -8550,7 +8577,7 @@ const su = ({
8550
8577
  }
8551
8578
  ) })
8552
8579
  ] }),
8553
- /* @__PURE__ */ a.jsx("h3", { children: u })
8580
+ /* @__PURE__ */ a.jsx("h3", { children: l })
8554
8581
  ] }),
8555
8582
  shouldAnimate: !0,
8556
8583
  children: [
@@ -8607,7 +8634,7 @@ const su = ({
8607
8634
  icon: v,
8608
8635
  optional: T,
8609
8636
  type: W,
8610
- 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]}%` })
8611
8638
  }
8612
8639
  )
8613
8640
  ] })
@@ -8679,10 +8706,10 @@ const we = "discussion_form_", nr = ({
8679
8706
  create: { projectNames: ["questions-answers"] }
8680
8707
  }
8681
8708
  },
8682
- gtmContext: u = "DiscussionForm"
8709
+ gtmContext: l = "DiscussionForm"
8683
8710
  }) => {
8684
8711
  var O, C, E;
8685
- const l = K(), d = Ce(De), [m, p] = te(
8712
+ const u = K(), d = Ce(De), [m, p] = te(
8686
8713
  n.isEditing && n.isEditing.text || ""
8687
8714
  ), [g, y] = te(c.error || !1), [_, v] = te(!1), b = pe(null);
8688
8715
  if (r || (r = b), n.isLoading)
@@ -8698,12 +8725,12 @@ const we = "discussion_form_", nr = ({
8698
8725
  p($);
8699
8726
  let L;
8700
8727
  !d || !d.id ? L = Se(
8701
- l.formatMessage,
8728
+ u.formatMessage,
8702
8729
  `${we}error_loggedOut`,
8703
8730
  t.type,
8704
8731
  "action"
8705
8732
  ) : e ? $.length >= s && (L = `${we}error_tooLong`) : L = Se(
8706
- l.formatMessage,
8733
+ u.formatMessage,
8707
8734
  `${we}error_noPermission`,
8708
8735
  t.type,
8709
8736
  "action"
@@ -8757,12 +8784,12 @@ const we = "discussion_form_", nr = ({
8757
8784
  const I = U;
8758
8785
  let Z = `${we}error`;
8759
8786
  I != null && I.message.includes("entry already exists") && (Z = Se(
8760
- l.formatMessage,
8787
+ u.formatMessage,
8761
8788
  `${we}error_alreadyExists`,
8762
8789
  t.type,
8763
8790
  "action"
8764
8791
  )), I != null && I.message.includes("429") ? Z = Se(
8765
- l.formatMessage,
8792
+ u.formatMessage,
8766
8793
  `${we}error_tooMany`,
8767
8794
  t.type,
8768
8795
  "action"
@@ -8778,10 +8805,10 @@ const we = "discussion_form_", nr = ({
8778
8805
  size: { mobile: "small", 600: "medium" },
8779
8806
  onClick: f.handleCancel,
8780
8807
  className: "gtm-trackable",
8781
- "data-gtm-event-context": u,
8808
+ "data-gtm-event-context": l,
8782
8809
  "data-gtm-event-type": `cancel-${t.type}-click`,
8783
8810
  disabled: !c.cancel && (!d || !d.id || !m),
8784
- children: l.formatMessage({ id: `${we}cancel` })
8811
+ children: u.formatMessage({ id: `${we}cancel` })
8785
8812
  }), M.push({
8786
8813
  variant: "primary",
8787
8814
  size: { mobile: "small", 600: "medium" },
@@ -8795,11 +8822,11 @@ const we = "discussion_form_", nr = ({
8795
8822
  w(x);
8796
8823
  },
8797
8824
  className: "gtm-trackable",
8798
- "data-gtm-event-context": u,
8825
+ "data-gtm-event-context": l,
8799
8826
  "data-gtm-event-type": `${n.isEditing ? "save" : "submit"}-${t.type}-click`,
8800
8827
  "data-testid": "save-button",
8801
8828
  disabled: !d || !d.id || !e || R || W || n.isEditing && m === n.isEditing.text,
8802
- children: l.formatMessage({
8829
+ children: u.formatMessage({
8803
8830
  id: `${we}${W ? n.isEditing ? "saving" : "posting" : n.isEditing ? "save" : "post"}`
8804
8831
  })
8805
8832
  }), /* @__PURE__ */ a.jsxs(
@@ -8811,16 +8838,16 @@ const we = "discussion_form_", nr = ({
8811
8838
  }),
8812
8839
  "data-testid": `discussion-${t.type}-form`,
8813
8840
  children: [
8814
- (n == null ? void 0 : n.showTitle) && !n.isEditing && ["question"].includes(t.type) && /* @__PURE__ */ a.jsx("h2", { children: Se(l.formatMessage, `${we}title`, t.type, "action") }),
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") }),
8815
8842
  /* @__PURE__ */ a.jsx(
8816
8843
  Jn,
8817
8844
  {
8818
8845
  member: d || "community",
8819
- gtmContext: u,
8846
+ gtmContext: l,
8820
8847
  gtmType: "profile-click"
8821
8848
  }
8822
8849
  ),
8823
- /* @__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") }),
8824
8851
  /* @__PURE__ */ a.jsx(
8825
8852
  Ci,
8826
8853
  {
@@ -8828,7 +8855,7 @@ const we = "discussion_form_", nr = ({
8828
8855
  id: `${T}-input`,
8829
8856
  name: t.type,
8830
8857
  placeholder: i || Se(
8831
- l.formatMessage,
8858
+ u.formatMessage,
8832
8859
  `${we}placeholder`,
8833
8860
  t.type,
8834
8861
  "action"
@@ -8842,14 +8869,14 @@ const we = "discussion_form_", nr = ({
8842
8869
  autoFocus: !!n.isEditing
8843
8870
  }
8844
8871
  ),
8845
- /* @__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", {
8846
8873
  a: (x) => /* @__PURE__ */ a.jsx(
8847
8874
  "a",
8848
8875
  {
8849
8876
  href: "https://about.apolitical.co/q-and-a-community-guidelines",
8850
8877
  target: "_blank",
8851
8878
  className: "gtm-trackable",
8852
- "data-gtm-event-context": u,
8879
+ "data-gtm-event-context": l,
8853
8880
  "data-gtm-event-type": "community-guidelines-link",
8854
8881
  rel: "noreferrer",
8855
8882
  children: x
@@ -8857,11 +8884,11 @@ const we = "discussion_form_", nr = ({
8857
8884
  )
8858
8885
  }) }),
8859
8886
  /* @__PURE__ */ a.jsx(_t, { buttons: M }),
8860
- _ === "submitted" && n.showSuccessMessage && /* @__PURE__ */ a.jsx(qt, { className: "success", "data-testid": "success", children: Se(l.formatMessage, `${we}success`, t.type, "action") }),
8861
- g && /* @__PURE__ */ a.jsx(qt, { id: "error-message", className: "error", "data-testid": "error", children: c.error ? c.error : typeof g == "string" ? g.includes(" ") ? g : l.formatMessage(
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(
8862
8889
  { id: g },
8863
8890
  {
8864
- action: l.formatMessage({
8891
+ action: u.formatMessage({
8865
8892
  id: `discussion_action_${t.type}`
8866
8893
  }),
8867
8894
  maxLength: s
@@ -8885,7 +8912,7 @@ const we = "discussion_form_", nr = ({
8885
8912
  }
8886
8913
  }
8887
8914
  );
8888
- const { content: o, functions: c, meta: f, ...u } = t;
8915
+ const { content: o, functions: c, meta: f, ...l } = t;
8889
8916
  return /* @__PURE__ */ a.jsx(
8890
8917
  nr,
8891
8918
  {
@@ -8893,7 +8920,7 @@ const we = "discussion_form_", nr = ({
8893
8920
  functions: { ...c, create: (c == null ? void 0 : c.create) || (() => {
8894
8921
  }) },
8895
8922
  meta: { ...f, isEditing: (f == null ? void 0 : f.isEditing) || !1, showSuccessMessage: !1 },
8896
- ...u
8923
+ ...l
8897
8924
  }
8898
8925
  );
8899
8926
  }, vc = {
@@ -8927,11 +8954,11 @@ const Pn = () => {
8927
8954
  }, deleteLike: f = () => {
8928
8955
  } } = {}
8929
8956
  }) => {
8930
- const u = K();
8957
+ const l = K();
8931
8958
  ae(() => {
8932
8959
  p(i);
8933
8960
  }, [i]);
8934
- 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(
8935
8962
  () => _c(n, Mn),
8936
8963
  [n]
8937
8964
  ), j = (w) => {
@@ -8943,7 +8970,7 @@ const Pn = () => {
8943
8970
  }, T = async () => {
8944
8971
  if (Pn(), g || !o)
8945
8972
  return !1;
8946
- let w = m ? l - 1 : l + 1;
8973
+ let w = m ? u - 1 : u + 1;
8947
8974
  w < 0 && (w = 0), y(!0), d(w), p(!m);
8948
8975
  try {
8949
8976
  if (s && s.slugs) {
@@ -8983,12 +9010,12 @@ const Pn = () => {
8983
9010
  size: "medium",
8984
9011
  icon: { icon: m ? "heart" : "heart_empty", animate: "bounce" },
8985
9012
  className: S({ "do-animation": m && !i }),
8986
- screenreaderText: o ? u.formatMessage(
9013
+ screenreaderText: o ? l.formatMessage(
8987
9014
  {
8988
9015
  id: `discussion_likes_${m ? "unlike" : "like"}`
8989
9016
  },
8990
9017
  {
8991
- action: u.formatMessage({
9018
+ action: l.formatMessage({
8992
9019
  id: `discussion_action_${s.type}`
8993
9020
  })
8994
9021
  }
@@ -9004,11 +9031,11 @@ const Pn = () => {
9004
9031
  /* @__PURE__ */ a.jsx(
9005
9032
  "span",
9006
9033
  {
9007
- className: S("number-of-likes", { "no-likes": l === 0 }),
9034
+ className: S("number-of-likes", { "no-likes": u === 0 }),
9008
9035
  "data-testid": "number-of-likes",
9009
- children: u.formatMessage(
9036
+ children: l.formatMessage(
9010
9037
  { id: `discussion_likes${r ? "_short" : ""}` },
9011
- { number: l }
9038
+ { number: u }
9012
9039
  )
9013
9040
  }
9014
9041
  ),
@@ -9023,7 +9050,7 @@ const Pn = () => {
9023
9050
  children: w.name
9024
9051
  }
9025
9052
  ) }, w.id || window.btoa(w.name))),
9026
- e > Mn && /* @__PURE__ */ a.jsx("li", { children: u.formatMessage(
9053
+ e > Mn && /* @__PURE__ */ a.jsx("li", { children: l.formatMessage(
9027
9054
  { id: "discussion_likes_more" },
9028
9055
  { number: e - Mn }
9029
9056
  ) })
@@ -9053,7 +9080,7 @@ const Pe = "discussion_", wc = 280, rn = ({
9053
9080
  updateContent: () => {
9054
9081
  }
9055
9082
  },
9056
- likes: { createLike: u, deleteLike: l } = { createLike: () => {
9083
+ likes: { createLike: l, deleteLike: u } = { createLike: () => {
9057
9084
  }, deleteLike: () => {
9058
9085
  } },
9059
9086
  comments: { openComments: d } = { openComments: () => {
@@ -9260,8 +9287,8 @@ const Pe = "discussion_", wc = 280, rn = ({
9260
9287
  canLike: E,
9261
9288
  peopleWhoLiked: e.peopleWhoLiked,
9262
9289
  functions: {
9263
- createLike: u,
9264
- deleteLike: l
9290
+ createLike: l,
9291
+ deleteLike: u
9265
9292
  }
9266
9293
  }
9267
9294
  ),
@@ -9759,14 +9786,14 @@ function Oc({
9759
9786
  const { mutate: o } = je({
9760
9787
  mutationFn: t,
9761
9788
  onMutate: (c) => e((f) => {
9762
- const u = Kr({ activity: $c(c), user: s });
9763
- return Xr(u, f);
9789
+ const l = Kr({ activity: $c(c), user: s });
9790
+ return Xr(l, f);
9764
9791
  }),
9765
9792
  onError: n,
9766
- onSuccess: (c, f, u) => {
9767
- const l = Kr({ activity: c, user: s });
9768
- r.setQueryData(i, Xr(l, u, !0)), setTimeout(() => {
9769
- Va(l.id);
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);
9770
9797
  }, 0);
9771
9798
  }
9772
9799
  });
@@ -9800,14 +9827,14 @@ function Dc({
9800
9827
  },
9801
9828
  queryKey: o
9802
9829
  }) {
9803
- const c = Wn(), f = Qn(), u = { queryClient: c, queryKey: o }, l = {
9830
+ const c = Wn(), f = Qn(), l = { queryClient: c, queryKey: o }, u = {
9804
9831
  mutationHandlers: {
9805
- error: ar(u),
9806
- mutate: ir(u)
9832
+ error: ar(l),
9833
+ mutate: ir(l)
9807
9834
  },
9808
9835
  user: f,
9809
- ...u
9810
- }, d = Oc({ ...l, mutationFn: t }), m = Ac({ ...l, mutationFn: e }), p = Ic({ ...l, mutationFn: n }), g = Bc({ ...l, mutationFn: i }), y = qc({ ...l, mutationFn: s }), { activities: _, ...v } = Lc({ queryKey: o, queryFn: r });
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 });
9811
9838
  return {
9812
9839
  activities: _,
9813
9840
  mutations: {
@@ -9838,8 +9865,8 @@ function Ic({
9838
9865
  }),
9839
9866
  onError: n,
9840
9867
  onSuccess: (o, { activityId: c }, f) => {
9841
- const u = Jt(c, f);
9842
- 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);
9843
9870
  }
9844
9871
  });
9845
9872
  return s;
@@ -9937,8 +9964,8 @@ const cu = ({
9937
9964
  const o = K(), {
9938
9965
  activities: c,
9939
9966
  error: f,
9940
- fetchNextPage: u,
9941
- hasNextPage: l,
9967
+ fetchNextPage: l,
9968
+ hasNextPage: u,
9942
9969
  isLoading: d,
9943
9970
  mutations: { create: m, edit: p, remove: g, like: y, unlike: _ },
9944
9971
  user: v
@@ -10038,8 +10065,8 @@ const cu = ({
10038
10065
  !d && /* @__PURE__ */ a.jsx(
10039
10066
  tn,
10040
10067
  {
10041
- hasNextPage: l,
10042
- loadNextPage: () => u(),
10068
+ hasNextPage: u,
10069
+ loadNextPage: () => l(),
10043
10070
  icon: { icon: "arrow-down", position: "right" },
10044
10071
  messages: {
10045
10072
  button: o.formatMessage({ id: "loadMore_button" }),
@@ -10610,20 +10637,20 @@ function Zc({
10610
10637
  const { mutate: o } = je({
10611
10638
  mutationFn: t,
10612
10639
  onMutate: (c) => e((f) => {
10613
- const u = Gr({ reply: Nc(c), user: s });
10614
- return ea(u, f, {
10640
+ const l = Gr({ reply: Nc(c), user: s });
10641
+ return ea(l, f, {
10615
10642
  replace: !1,
10616
10643
  append: (c == null ? void 0 : c.replyId) !== void 0
10617
10644
  });
10618
10645
  }),
10619
10646
  onError: n,
10620
- onSuccess: (c, f, u) => {
10621
- const l = Gr({ reply: c, user: s });
10647
+ onSuccess: (c, f, l) => {
10648
+ const u = Gr({ reply: c, user: s });
10622
10649
  r.setQueryData(
10623
10650
  i,
10624
- 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 })
10625
10652
  ), setTimeout(() => {
10626
- Va(l.id);
10653
+ Va(u.id);
10627
10654
  }, 0);
10628
10655
  }
10629
10656
  });
@@ -10657,14 +10684,14 @@ function Ga({
10657
10684
  },
10658
10685
  queryKey: o
10659
10686
  }) {
10660
- const c = Wn(), f = Qn(), u = { queryClient: c, queryKey: o }, l = {
10687
+ const c = Wn(), f = Qn(), l = { queryClient: c, queryKey: o }, u = {
10661
10688
  mutationHandlers: {
10662
- error: ar(u),
10663
- mutate: ir(u)
10689
+ error: ar(l),
10690
+ mutate: ir(l)
10664
10691
  },
10665
10692
  user: f,
10666
- ...u
10667
- }, d = Zc({ ...l, mutationFn: t }), m = Wc({ ...l, mutationFn: e }), p = Hc({ ...l, mutationFn: n }), g = Yc({ ...l, mutationFn: i }), y = Kc({ ...l, mutationFn: s }), { replies: _, ...v } = Vc({ queryKey: o, queryFn: r });
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 });
10668
10695
  return {
10669
10696
  replies: _,
10670
10697
  mutations: {
@@ -10695,8 +10722,8 @@ function Hc({
10695
10722
  }),
10696
10723
  onError: n,
10697
10724
  onSuccess: (o, { replyId: c }, f) => {
10698
- const u = Xt(c, f);
10699
- 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);
10700
10727
  }
10701
10728
  });
10702
10729
  return s;
@@ -10712,7 +10739,7 @@ function Vc({ queryFn: t, queryKey: e }) {
10712
10739
  queryKey: e,
10713
10740
  queryFn: t,
10714
10741
  initialPageParam: { next: "" },
10715
- getNextPageParam: (u) => (u == null ? void 0 : u.next) || null
10742
+ getNextPageParam: (l) => (l == null ? void 0 : l.next) || null
10716
10743
  }), c = el(n), f = `${c.length || 0}${s ? "+" : ""}`;
10717
10744
  return {
10718
10745
  replies: c,
@@ -10808,8 +10835,8 @@ const tl = ({
10808
10835
  replies: o,
10809
10836
  fetchNextPage: c,
10810
10837
  hasNextPage: f,
10811
- isLoading: u,
10812
- 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 },
10813
10840
  user: y
10814
10841
  } = Ga({
10815
10842
  queryKey: [t, e, n, r, "replies"],
@@ -10822,7 +10849,7 @@ const tl = ({
10822
10849
  return /* @__PURE__ */ a.jsx(
10823
10850
  kc,
10824
10851
  {
10825
- loadMore: { isLoading: u, hasNextPage: f, loadNextPage: () => c() },
10852
+ loadMore: { isLoading: l, hasNextPage: f, loadNextPage: () => c() },
10826
10853
  form: {
10827
10854
  content: {
10828
10855
  type: "reply",
@@ -10834,7 +10861,7 @@ const tl = ({
10834
10861
  },
10835
10862
  functions: {
10836
10863
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
10837
- create: (_, { body: v }) => l({ activityId: n, replyId: r, content: v })
10864
+ create: (_, { body: v }) => u({ activityId: n, replyId: r, content: v })
10838
10865
  },
10839
10866
  meta: { isEditing: !1, showSuccessMessage: !1 }
10840
10867
  },
@@ -10917,8 +10944,8 @@ const tl = ({
10917
10944
  }) => {
10918
10945
  const c = K(), {
10919
10946
  replies: f,
10920
- repliesCount: u,
10921
- fetchNextPage: l,
10947
+ repliesCount: l,
10948
+ fetchNextPage: u,
10922
10949
  hasNextPage: d,
10923
10950
  isLoading: m,
10924
10951
  mutations: { create: p, edit: g, like: y, remove: _, unlike: v },
@@ -10928,7 +10955,7 @@ const tl = ({
10928
10955
  queryFns: i
10929
10956
  });
10930
10957
  return Ii(), Ya(), /* @__PURE__ */ a.jsxs("section", { children: [
10931
- /* @__PURE__ */ a.jsx(jc, { type: "comment", responses: u }),
10958
+ /* @__PURE__ */ a.jsx(jc, { type: "comment", responses: l }),
10932
10959
  /* @__PURE__ */ a.jsx(
10933
10960
  za,
10934
10961
  {
@@ -11028,7 +11055,7 @@ const tl = ({
11028
11055
  tn,
11029
11056
  {
11030
11057
  hasNextPage: d,
11031
- loadNextPage: () => l(),
11058
+ loadNextPage: () => u(),
11032
11059
  icon: { icon: "arrow-down", position: "right" },
11033
11060
  messages: {
11034
11061
  button: c.formatMessage({ id: "loadMore_button" }),
@@ -11085,12 +11112,12 @@ function il({
11085
11112
  },
11086
11113
  user: o,
11087
11114
  ...c
11088
- }, 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 });
11089
11116
  return {
11090
11117
  activity: m,
11091
11118
  mutations: {
11092
- edit: u,
11093
- like: l,
11119
+ edit: l,
11120
+ like: u,
11094
11121
  unlike: d
11095
11122
  },
11096
11123
  user: o,
@@ -11144,7 +11171,7 @@ const uu = ({
11144
11171
  }
11145
11172
  }) => {
11146
11173
  var M, O, C, E, x, $, L, U, I, Z;
11147
- const u = K(), l = Ce(De), {
11174
+ const l = K(), u = Ce(De), {
11148
11175
  activity: d,
11149
11176
  error: m,
11150
11177
  isLoading: p,
@@ -11160,7 +11187,7 @@ const uu = ({
11160
11187
  nt,
11161
11188
  {
11162
11189
  variant: "error",
11163
- text: u.formatMessage({ id: "activitySection_notFoundError" })
11190
+ text: l.formatMessage({ id: "activitySection_notFoundError" })
11164
11191
  }
11165
11192
  );
11166
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) => {
@@ -11169,7 +11196,7 @@ const uu = ({
11169
11196
  id: (k = J == null ? void 0 : J.user) == null ? void 0 : k.id,
11170
11197
  name: (z = (N = J == null ? void 0 : J.user) == null ? void 0 : N.data) == null ? void 0 : z.name
11171
11198
  };
11172
- }) : !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);
11173
11200
  return /* @__PURE__ */ a.jsxs("section", { className: "activity-section", children: [
11174
11201
  /* @__PURE__ */ a.jsx(
11175
11202
  rn,
@@ -11430,6 +11457,7 @@ export {
11430
11457
  Ts as UserProvider,
11431
11458
  be as VisuallyHidden,
11432
11459
  Vo as addAriaProps,
11460
+ ua as basicReducer,
11433
11461
  Li as camelCaseToDashCase,
11434
11462
  Yn as checkIntlPathExists,
11435
11463
  Ui as generateCssIcon,