@apolitical/component-library 3.5.10 → 3.5.11

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
@@ -74,7 +74,7 @@ var da = { exports: {} };
74
74
  })();
75
75
  })(da);
76
76
  var Fs = da.exports;
77
- const S = /* @__PURE__ */ la(Fs), Os = ({
77
+ const E = /* @__PURE__ */ la(Fs), Os = ({
78
78
  element: t = "span",
79
79
  showOnFocus: e = !0,
80
80
  children: n,
@@ -82,7 +82,7 @@ const S = /* @__PURE__ */ la(Fs), Os = ({
82
82
  ...s
83
83
  }) => Y.createElement(t, {
84
84
  ...s,
85
- className: S("hidden", r, { "show-on-focus": e }),
85
+ className: E("hidden", r, { "show-on-focus": e }),
86
86
  children: n
87
87
  }), be = Ae(Os), As = ({
88
88
  element: t = "span",
@@ -131,23 +131,23 @@ var wr;
131
131
  function Is() {
132
132
  return wr || (wr = 1, process.env.NODE_ENV !== "production" && function() {
133
133
  var t = Y, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), g = Symbol.iterator, v = "@@iterator";
134
- function b(h) {
134
+ function _(h) {
135
135
  if (h === null || typeof h != "object")
136
136
  return null;
137
137
  var M = g && h[g] || h[v];
138
138
  return typeof M == "function" ? M : null;
139
139
  }
140
- var _ = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
140
+ var y = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
141
141
  function x(h) {
142
142
  {
143
143
  for (var M = arguments.length, I = new Array(M > 1 ? M - 1 : 0), ne = 1; ne < M; ne++)
144
144
  I[ne - 1] = arguments[ne];
145
- E("error", h, I);
145
+ S("error", h, I);
146
146
  }
147
147
  }
148
- function E(h, M, I) {
148
+ function S(h, M, I) {
149
149
  {
150
- var ne = _.ReactDebugCurrentFrame, le = ne.getStackAddendum();
150
+ var ne = y.ReactDebugCurrentFrame, le = ne.getStackAddendum();
151
151
  le !== "" && (M += "%s", I = I.concat([le]));
152
152
  var me = I.map(function(ce) {
153
153
  return String(ce);
@@ -155,10 +155,10 @@ function Is() {
155
155
  me.unshift("Warning: " + M), Function.prototype.apply.call(console[h], console, me);
156
156
  }
157
157
  }
158
- var w = !1, y = !1, F = !1, R = !1, Q = !1, B;
158
+ var w = !1, b = !1, F = !1, R = !1, Q = !1, B;
159
159
  B = Symbol.for("react.module.reference");
160
160
  function $(h) {
161
- return !!(typeof h == "string" || typeof h == "function" || h === r || h === i || Q || h === s || h === l || h === u || R || h === p || w || y || F || typeof h == "object" && h !== null && (h.$$typeof === m || h.$$typeof === f || h.$$typeof === o || h.$$typeof === c || h.$$typeof === d || // This needs to include all possible module reference object
161
+ return !!(typeof h == "string" || typeof h == "function" || h === r || h === i || Q || h === s || h === l || h === u || R || h === p || w || b || F || typeof h == "object" && h !== null && (h.$$typeof === m || h.$$typeof === f || h.$$typeof === o || h.$$typeof === c || h.$$typeof === d || // This needs to include all possible module reference object
162
162
  // types supported by any Flight configuration anywhere since
163
163
  // we don't know which Flight build this will end up being used
164
164
  // with.
@@ -281,7 +281,7 @@ function Is() {
281
281
  A < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
282
282
  }
283
283
  }
284
- var G = _.ReactCurrentDispatcher, V;
284
+ var G = y.ReactCurrentDispatcher, V;
285
285
  function ee(h, M, I) {
286
286
  {
287
287
  if (V === void 0)
@@ -407,7 +407,7 @@ function Is() {
407
407
  }
408
408
  return "";
409
409
  }
410
- var Ue = Object.prototype.hasOwnProperty, cr = {}, lr = _.ReactDebugCurrentFrame;
410
+ var Ue = Object.prototype.hasOwnProperty, cr = {}, lr = y.ReactDebugCurrentFrame;
411
411
  function Et(h) {
412
412
  if (h) {
413
413
  var M = h._owner, I = Ce(h.type, h._source, M ? M.type : null);
@@ -458,7 +458,7 @@ function Is() {
458
458
  if (as(h))
459
459
  return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", rs(h)), ur(h);
460
460
  }
461
- var st = _.ReactCurrentOwner, ss = {
461
+ var st = y.ReactCurrentOwner, ss = {
462
462
  key: !0,
463
463
  ref: !0,
464
464
  __self: !0,
@@ -556,7 +556,7 @@ function Is() {
556
556
  return ds(h, ie, xe, le, ne, st.current, ce);
557
557
  }
558
558
  }
559
- var dn = _.ReactCurrentOwner, pr = _.ReactDebugCurrentFrame;
559
+ var dn = y.ReactCurrentOwner, pr = y.ReactDebugCurrentFrame;
560
560
  function Ke(h) {
561
561
  if (h) {
562
562
  var M = h._owner, I = Ce(h.type, h._source, M ? M.type : null);
@@ -630,7 +630,7 @@ Check the top-level render call using <` + I + ">.");
630
630
  else if (mn(h))
631
631
  h._store && (h._store.validated = !0);
632
632
  else if (h) {
633
- var le = b(h);
633
+ var le = _(h);
634
634
  if (typeof le == "function" && le !== h.entries)
635
635
  for (var me = le.call(h), ce; !(ce = me.next()).done; )
636
636
  mn(ce.value) && vr(ce.value, M);
@@ -737,23 +737,23 @@ function Bs(t, e, n) {
737
737
  if (typeof t != "function")
738
738
  throw new TypeError("Expected a function");
739
739
  e = +e || 0;
740
- var g = !!(n = n || {}).leading, v = !("trailing" in n) || !!n.trailing, b = "maxWait" in n, _ = "debounceOnServer" in n && !!n.debounceOnServer, x = b ? Math.max(+n.maxWait || 0, e) : null;
740
+ var g = !!(n = n || {}).leading, v = !("trailing" in n) || !!n.trailing, _ = "maxWait" in n, y = "debounceOnServer" in n && !!n.debounceOnServer, x = _ ? Math.max(+n.maxWait || 0, e) : null;
741
741
  ae(function() {
742
742
  return f.current = !0, function() {
743
743
  f.current = !1;
744
744
  };
745
745
  }, []);
746
- var E = wt(function() {
746
+ var S = wt(function() {
747
747
  var w = function($) {
748
748
  var C = c.current, k = d.current;
749
749
  return c.current = d.current = null, i.current = $, l.current = u.current.apply(k, C);
750
- }, y = function($, C) {
750
+ }, b = function($, C) {
751
751
  p && cancelAnimationFrame(o.current), o.current = p ? requestAnimationFrame($) : setTimeout($, C);
752
752
  }, F = function($) {
753
753
  if (!f.current)
754
754
  return !1;
755
755
  var C = $ - s.current;
756
- return !s.current || C >= e || C < 0 || b && $ - i.current >= x;
756
+ return !s.current || C >= e || C < 0 || _ && $ - i.current >= x;
757
757
  }, R = function($) {
758
758
  return o.current = null, v && c.current ? w($) : (c.current = d.current = null, l.current);
759
759
  }, Q = function $() {
@@ -761,19 +761,19 @@ function Bs(t, e, n) {
761
761
  if (F(C))
762
762
  return R(C);
763
763
  if (f.current) {
764
- var k = e - (C - s.current), j = b ? Math.min(k, x - (C - i.current)) : k;
765
- y($, j);
764
+ var k = e - (C - s.current), j = _ ? Math.min(k, x - (C - i.current)) : k;
765
+ b($, j);
766
766
  }
767
767
  }, B = function() {
768
- if (m || _) {
768
+ if (m || y) {
769
769
  var $ = Date.now(), C = F($);
770
770
  if (c.current = [].slice.call(arguments), d.current = r, s.current = $, C) {
771
771
  if (!o.current && f.current)
772
- return i.current = s.current, y(Q, e), g ? w(s.current) : l.current;
773
- if (b)
774
- return y(Q, e), w(s.current);
772
+ return i.current = s.current, b(Q, e), g ? w(s.current) : l.current;
773
+ if (_)
774
+ return b(Q, e), w(s.current);
775
775
  }
776
- return o.current || y(Q, e), l.current;
776
+ return o.current || b(Q, e), l.current;
777
777
  }
778
778
  };
779
779
  return B.cancel = function() {
@@ -783,8 +783,8 @@ function Bs(t, e, n) {
783
783
  }, B.flush = function() {
784
784
  return o.current ? R(Date.now()) : l.current;
785
785
  }, B;
786
- }, [g, b, e, x, v, p, m, _]);
787
- return E;
786
+ }, [g, _, e, x, v, p, m, y]);
787
+ return S;
788
788
  }
789
789
  function fa(t, e, n) {
790
790
  var r = n === void 0 ? {} : n, s = r.leading, i = r.trailing;
@@ -983,10 +983,13 @@ const ze = {
983
983
  card_member_type_member: "Member",
984
984
  card_member_count: "{count} members",
985
985
  card_cta_people: "View profile",
986
+ card_cta_communityPage: "Join now",
986
987
  card_cta_event: "Register now",
987
988
  card_cta_microcourse: "Enrol now",
989
+ card_cta_communityPage_loading: "Joining...",
988
990
  card_cta_event_loading: "Registering...",
989
991
  card_cta_microcourse_loading: "Enrolling...",
992
+ card_cta_communityPage_done: "Joined",
990
993
  card_cta_event_done: "Registered",
991
994
  card_cta_microcourse_done: "Enrolled",
992
995
  carousel_pagination_previous: "Previous",
@@ -1451,20 +1454,20 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1451
1454
  }) => {
1452
1455
  const p = jt(typeof e == "object");
1453
1456
  if (typeof e == "object" && typeof p == "number") {
1454
- const b = Object.assign({}, e), _ = pa(Object.keys(b));
1455
- e = ha(p, _, b);
1457
+ const _ = Object.assign({}, e), y = pa(Object.keys(_));
1458
+ e = ha(p, y, _);
1456
1459
  }
1457
1460
  const g = [];
1458
1461
  typeof e == "string" && g.push(e), r && (g.push("icon"), typeof r == "object" ? (g.push(r.icon), r.position ? g.push(r.position) : g.push("left"), r.hover && g.push(`hover_${r.hover}`), r.animate && (g.push("animate"), typeof r.animate == "string" && g.push(r.animate))) : (g.push(r), !r.includes("right") && !r.includes("left") && g.push("left"))), n.muted && g.push("muted"), n.fullWidth && g.push("full-width");
1459
1462
  const v = {
1460
1463
  ...f,
1461
- className: S(t, c, g, {
1464
+ className: E(t, c, g, {
1462
1465
  "no-text": !u,
1463
1466
  disabled: d,
1464
1467
  button: s
1465
1468
  }),
1466
- onClick: (b) => {
1467
- (!s || s[0] === "#") && o && (b.preventDefault(), b.stopPropagation()), o && o(b);
1469
+ onClick: (_) => {
1470
+ (!s || s[0] === "#") && o && (_.preventDefault(), _.stopPropagation()), o && o(_);
1468
1471
  },
1469
1472
  disabled: typeof d == "object" && "isClickable" in d ? !d.isClickable : d
1470
1473
  };
@@ -1476,14 +1479,14 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1476
1479
  }, kt = ({ buttons: t, className: e = "", ...n }) => {
1477
1480
  const r = t.length > 1 ? "ul" : "p", s = t.map((i, o) => r === "p" ? /* @__PURE__ */ a.jsx(se, { ...i }, o) : /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(se, { ...i }) }, o));
1478
1481
  return Y.createElement(r, {
1479
- className: S("button-wrapper", e),
1482
+ className: E("button-wrapper", e),
1480
1483
  ...n,
1481
1484
  children: s
1482
1485
  });
1483
1486
  };
1484
1487
  const Oe = ({ className: t = "", maxWidth: e = !1 }) => {
1485
1488
  const n = e ? { "--max-width": `${e / 16}rem` } : {};
1486
- return /* @__PURE__ */ a.jsx("hr", { className: S(t, { "has-max-width": e }), style: n });
1489
+ return /* @__PURE__ */ a.jsx("hr", { className: E(t, { "has-max-width": e }), style: n });
1487
1490
  }, kr = {
1488
1491
  card: {
1489
1492
  range: [
@@ -1614,7 +1617,7 @@ const Tt = ({ image: t, className: e, testId: n }) => {
1614
1617
  loading: l,
1615
1618
  decoding: u,
1616
1619
  fetchPriority: f
1617
- } = t, { range: m, sizes: p } = ri(t), g = hn({ format: "avif", query: o, range: m, url: c }), v = hn({ format: "webp", query: o, range: m, url: c }), b = hn({ format: "", query: o, range: m, url: c });
1620
+ } = t, { range: m, sizes: p } = ri(t), g = hn({ format: "avif", query: o, range: m, url: c }), v = hn({ format: "webp", query: o, range: m, url: c }), _ = hn({ format: "", query: o, range: m, url: c });
1618
1621
  return /* @__PURE__ */ a.jsxs("picture", { className: e, children: [
1619
1622
  i !== "image/gif" && /* @__PURE__ */ a.jsx(
1620
1623
  "source",
@@ -1629,7 +1632,7 @@ const Tt = ({ image: t, className: e, testId: n }) => {
1629
1632
  /* @__PURE__ */ a.jsx(
1630
1633
  "img",
1631
1634
  {
1632
- srcSet: b,
1635
+ srcSet: _,
1633
1636
  sizes: p,
1634
1637
  src: c,
1635
1638
  alt: r,
@@ -1662,7 +1665,7 @@ const Nl = ({ image: t, className: e, testId: n }) => /* @__PURE__ */ a.jsx(
1662
1665
  }) => {
1663
1666
  if (t) {
1664
1667
  const d = { ...c };
1665
- return s && (d.onClick = s), i && (d["data-gtm-event-context"] = i), o && (d["data-gtm-event-type"] = o), /* @__PURE__ */ a.jsx("a", { href: t, className: S("gtm-trackable", r), ...d, children: e });
1668
+ return s && (d.onClick = s), i && (d["data-gtm-event-context"] = i), o && (d["data-gtm-event-type"] = o), /* @__PURE__ */ a.jsx("a", { href: t, className: E("gtm-trackable", r), ...d, children: e });
1666
1669
  }
1667
1670
  return n ? Y.createElement(n, { children: e, className: r, ...c }) : /* @__PURE__ */ a.jsx(a.Fragment, { children: e });
1668
1671
  };
@@ -1680,7 +1683,7 @@ const Pl = ({ currentStep: t = 1, steps: e = 1 }) => /* @__PURE__ */ a.jsxs(a.Fr
1680
1683
  /* @__PURE__ */ a.jsx(
1681
1684
  "div",
1682
1685
  {
1683
- className: S("dot", {
1686
+ className: E("dot", {
1684
1687
  active: s === t,
1685
1688
  completed: s < t
1686
1689
  }),
@@ -1690,7 +1693,7 @@ const Pl = ({ currentStep: t = 1, steps: e = 1 }) => /* @__PURE__ */ a.jsxs(a.Fr
1690
1693
  /* @__PURE__ */ a.jsx(
1691
1694
  "div",
1692
1695
  {
1693
- className: S("line", {
1696
+ className: E("line", {
1694
1697
  active: s < t
1695
1698
  })
1696
1699
  }
@@ -1779,7 +1782,7 @@ const Jn = ({
1779
1782
  "details",
1780
1783
  {
1781
1784
  ref: i,
1782
- className: S("collapsible-section", e, {
1785
+ className: E("collapsible-section", e, {
1783
1786
  "should-animate": r
1784
1787
  }),
1785
1788
  children: [
@@ -1816,7 +1819,7 @@ const Cr = {
1816
1819
  return !n && !o ? null : /* @__PURE__ */ a.jsx(
1817
1820
  "small",
1818
1821
  {
1819
- className: S(
1822
+ className: E(
1820
1823
  "content-type-label text-small",
1821
1824
  t in Cr ? Cr[t] : t,
1822
1825
  r,
@@ -1842,7 +1845,7 @@ const Fe = ({
1842
1845
  return /* @__PURE__ */ a.jsx(
1843
1846
  "div",
1844
1847
  {
1845
- className: S("highlighted-text-box", t, r, {
1848
+ className: E("highlighted-text-box", t, r, {
1846
1849
  "has-icon": e,
1847
1850
  "show-highlight": o,
1848
1851
  [c]: c !== "default"
@@ -1875,7 +1878,7 @@ const He = ({
1875
1878
  Fe,
1876
1879
  {
1877
1880
  variant: "subtle",
1878
- className: S("empty-state-box", t, r),
1881
+ className: E("empty-state-box", t, r),
1879
1882
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1880
1883
  e && typeof e == "string" ? /* @__PURE__ */ a.jsx(Le, { options: { forceBlock: !0 }, children: e }) : e,
1881
1884
  s && typeof n == "object" && (l || /* @__PURE__ */ a.jsx(
@@ -1898,7 +1901,7 @@ const ci = ({
1898
1901
  className: e = "",
1899
1902
  heading: n = !1,
1900
1903
  children: r
1901
- }) => /* @__PURE__ */ a.jsxs("div", { className: S("helper-text-box text-small", t, e), children: [
1904
+ }) => /* @__PURE__ */ a.jsxs("div", { className: E("helper-text-box text-small", t, e), children: [
1902
1905
  n && /* @__PURE__ */ a.jsx("p", { className: "title", children: n }),
1903
1906
  typeof r == "string" ? /* @__PURE__ */ a.jsx(
1904
1907
  Le,
@@ -1948,9 +1951,9 @@ const Rl = ({
1948
1951
  Fe,
1949
1952
  {
1950
1953
  variant: "subtle",
1951
- className: S("hide-show-text-box", t),
1954
+ className: E("hide-show-text-box", t),
1952
1955
  children: [
1953
- /* @__PURE__ */ a.jsxs("div", { ref: o, className: S("content", l), children: [
1956
+ /* @__PURE__ */ a.jsxs("div", { ref: o, className: E("content", l), children: [
1954
1957
  /* @__PURE__ */ a.jsx(Le, { options: { forceBlock: !0 }, children: l === "closed" ? c : r }),
1955
1958
  l !== "closed" && s
1956
1959
  ] }),
@@ -1960,7 +1963,7 @@ const Rl = ({
1960
1963
  variant: "tertiary",
1961
1964
  icon: { icon: "navigation_arrow", position: "left", animate: !0 },
1962
1965
  styling: { muted: !0 },
1963
- className: S({ "rotate-180": m }),
1966
+ className: E({ "rotate-180": m }),
1964
1967
  onClick: () => {
1965
1968
  u(m ? "ready-to-close" : "opening");
1966
1969
  },
@@ -1981,7 +1984,7 @@ const Fl = ({
1981
1984
  }) => {
1982
1985
  const { hasBorder: o = !1, zebraStriping: c = !1 } = s;
1983
1986
  return Y.createElement(t, {
1984
- className: S("icon-bulleted-list text-medium", n, i, {
1987
+ className: E("icon-bulleted-list text-medium", n, i, {
1985
1988
  "has-border": o,
1986
1989
  "has-zebra-stripes": c,
1987
1990
  [e]: t !== "dl"
@@ -2139,7 +2142,7 @@ const vi = {
2139
2142
  return /* @__PURE__ */ a.jsx(
2140
2143
  "div",
2141
2144
  {
2142
- className: S("markdown-text", t, {
2145
+ className: E("markdown-text", t, {
2143
2146
  "highlight-titles": i
2144
2147
  }),
2145
2148
  children: /* @__PURE__ */ a.jsx(Le, { options: { ...o, ...e }, children: n })
@@ -2154,8 +2157,8 @@ const bi = ({
2154
2157
  className: s = ""
2155
2158
  }) => {
2156
2159
  const i = t ? { "--max-width": `${t / 16}rem` } : {};
2157
- return /* @__PURE__ */ a.jsxs("section", { className: S("page-heading", s), children: [
2158
- /* @__PURE__ */ a.jsxs("div", { className: S("content", { "has-max-width": t }), style: i, children: [
2160
+ return /* @__PURE__ */ a.jsxs("section", { className: E("page-heading", s), children: [
2161
+ /* @__PURE__ */ a.jsxs("div", { className: E("content", { "has-max-width": t }), style: i, children: [
2159
2162
  e && e.text && Y.createElement(e.element || "h1", { className: "title" }, e.text),
2160
2163
  n && n.text && Y.createElement(
2161
2164
  n.element || "h2",
@@ -2180,7 +2183,7 @@ const ht = ({
2180
2183
  return /* @__PURE__ */ a.jsx(
2181
2184
  "span",
2182
2185
  {
2183
- className: S("pill", t, e, n, {
2186
+ className: E("pill", t, e, n, {
2184
2187
  "has-icon": r
2185
2188
  }),
2186
2189
  style: o,
@@ -2198,7 +2201,7 @@ const Wt = ({
2198
2201
  t,
2199
2202
  {
2200
2203
  ...r,
2201
- className: S("status-banner text-small", n),
2204
+ className: E("status-banner text-small", n),
2202
2205
  "aria-live": "assertive"
2203
2206
  },
2204
2207
  e
@@ -2232,7 +2235,7 @@ const Al = ({
2232
2235
  Fe,
2233
2236
  {
2234
2237
  variant: "subtle",
2235
- className: S("table-of-contents", n),
2238
+ className: E("table-of-contents", n),
2236
2239
  children: [
2237
2240
  /* @__PURE__ */ a.jsx("h2", { children: r.formatMessage({ id: "tableOfContents" }) }),
2238
2241
  /* @__PURE__ */ a.jsx("nav", { children: /* @__PURE__ */ a.jsx("ul", { children: s.map(({ id: o, text: c }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx("a", { href: `#${o}`, children: c }) }, o)) }) })
@@ -2274,7 +2277,7 @@ const Xn = ({
2274
2277
  { early: l, late: f }
2275
2278
  );
2276
2279
  }
2277
- return n && (l = `${n} ${l}`, d = `${n} ${d}`), r && (l = `${l} ${r}`, d = `${d} ${r}`), /* @__PURE__ */ a.jsx("span", { className: S("time-to-complete", s), "aria-label": l, children: d });
2280
+ return n && (l = `${n} ${l}`, d = `${n} ${d}`), r && (l = `${l} ${r}`, d = `${d} ${r}`), /* @__PURE__ */ a.jsx("span", { className: E("time-to-complete", s), "aria-label": l, children: d });
2278
2281
  };
2279
2282
  let ct = !1;
2280
2283
  const _i = ({ isOpen: t = !1, isLoading: e = !1, children: n }) => {
@@ -2299,7 +2302,7 @@ const _i = ({ isOpen: t = !1, isLoading: e = !1, children: n }) => {
2299
2302
  "aside",
2300
2303
  {
2301
2304
  ref: s,
2302
- className: S("tooltip text-medium", i, { loading: e }),
2305
+ className: E("tooltip text-medium", i, { loading: e }),
2303
2306
  hidden: i === "hidden",
2304
2307
  children: e ? /* @__PURE__ */ a.jsx("p", { children: r.formatMessage({ id: "tooltip_loading" }) }) : typeof n == "string" ? /* @__PURE__ */ a.jsx("p", { children: n }) : n
2305
2308
  }
@@ -2318,7 +2321,7 @@ const Dl = ({ className: t = "", image: e, ...n }) => e ? (typeof e == "string"
2318
2321
  Tt,
2319
2322
  {
2320
2323
  ...n,
2321
- className: S("banner", t),
2324
+ className: E("banner", t),
2322
2325
  image: { ...e, aspect: "banner" }
2323
2326
  }
2324
2327
  )) : null;
@@ -2332,7 +2335,7 @@ const Ve = ({
2332
2335
  return /* @__PURE__ */ a.jsx(
2333
2336
  "section",
2334
2337
  {
2335
- className: S("full-width-section", e, {
2338
+ className: E("full-width-section", e, {
2336
2339
  [s]: s !== "default"
2337
2340
  }),
2338
2341
  ...r,
@@ -2353,7 +2356,7 @@ const Il = ({ text: t, buttons: e, className: n = "" }) => {
2353
2356
  target: "_blank",
2354
2357
  children: s.text
2355
2358
  });
2356
- }), /* @__PURE__ */ a.jsx(Ve, { className: S("download-section", n), children: /* @__PURE__ */ a.jsxs("div", { className: "content-default", children: [
2359
+ }), /* @__PURE__ */ a.jsx(Ve, { className: E("download-section", n), children: /* @__PURE__ */ a.jsxs("div", { className: "content-default", children: [
2357
2360
  Y.createElement(
2358
2361
  typeof t == "string" ? "h2" : t.element,
2359
2362
  { className: "text" },
@@ -2367,7 +2370,7 @@ function ba({ href: t, setShowModal: e }) {
2367
2370
  }
2368
2371
  const xi = ({ icon: t, description: e, ctaMessage: n, href: r, showEditButton: s, setShowModal: i }) => {
2369
2372
  const { formatMessage: o } = H();
2370
- return /* @__PURE__ */ a.jsxs("div", { className: S("edit-section-placeholder", { "has-icon": !!t }), style: Hs(t), children: [
2373
+ return /* @__PURE__ */ a.jsxs("div", { className: E("edit-section-placeholder", { "has-icon": !!t }), style: Hs(t), children: [
2371
2374
  /* @__PURE__ */ a.jsx("p", { children: e || o({ id: "edit_section_placeholder_description" }) }),
2372
2375
  s && /* @__PURE__ */ a.jsx(se, { href: r, variant: "secondary", size: "small", onClick: () => ba({ href: r, setShowModal: i }), children: n || o({ id: "edit_section_placeholder_cta" }) })
2373
2376
  ] });
@@ -2382,7 +2385,7 @@ const xi = ({ icon: t, description: e, ctaMessage: n, href: r, showEditButton: s
2382
2385
  showDivider: c = !0
2383
2386
  }) => {
2384
2387
  const [d, l] = Y.useState(!1), u = typeof r == "string" || !!n, f = () => l(!1);
2385
- return /* @__PURE__ */ a.jsxs("section", { className: S("edit-section", e), children: [
2388
+ return /* @__PURE__ */ a.jsxs("section", { className: E("edit-section", e), children: [
2386
2389
  n && /* @__PURE__ */ a.jsx(
2387
2390
  an,
2388
2391
  {
@@ -2391,7 +2394,7 @@ const xi = ({ icon: t, description: e, ctaMessage: n, href: r, showEditButton: s
2391
2394
  showDivider: !1,
2392
2395
  showIcon: !1,
2393
2396
  functions: { onClose: f },
2394
- className: S("edit-section-modal"),
2397
+ className: E("edit-section-modal"),
2395
2398
  children: /* @__PURE__ */ a.jsx(rn, { ...n, fields: n.fields, meta: {
2396
2399
  ...n == null ? void 0 : n.meta,
2397
2400
  shouldShowCancelButton: !0,
@@ -2432,20 +2435,20 @@ const Bl = ({
2432
2435
  return /* @__PURE__ */ a.jsxs(
2433
2436
  "div",
2434
2437
  {
2435
- className: S("logos", r, `align-${c}`, {
2438
+ className: E("logos", r, `align-${c}`, {
2436
2439
  [d]: d !== "block",
2437
2440
  "wrap-logos": o
2438
2441
  }),
2439
2442
  children: [
2440
2443
  t && Y.createElement(
2441
2444
  i.element,
2442
- { className: S("title", i.className) },
2445
+ { className: E("title", i.className) },
2443
2446
  i.text
2444
2447
  ),
2445
2448
  /* @__PURE__ */ a.jsx(
2446
2449
  "ul",
2447
2450
  {
2448
- className: S({
2451
+ className: E({
2449
2452
  "two-col": s === 2 || s === 4,
2450
2453
  "three-col": s === 5 || s <= 10 && s % 3 === 0
2451
2454
  }),
@@ -2530,7 +2533,7 @@ const wi = [
2530
2533
  }), /* @__PURE__ */ a.jsx(
2531
2534
  Ve,
2532
2535
  {
2533
- className: S("banner-section", r, s, t, {
2536
+ className: E("banner-section", r, s, t, {
2534
2537
  "has-image": n,
2535
2538
  "has-extra-spacing": s === "normal" && u.eyebrow && u.title
2536
2539
  }),
@@ -2570,7 +2573,7 @@ const Ul = ({
2570
2573
  return t && (s["--image"] = `url(${t})`), /* @__PURE__ */ a.jsx(
2571
2574
  Ve,
2572
2575
  {
2573
- className: S("custom-content-banner", e, r, {
2576
+ className: E("custom-content-banner", e, r, {
2574
2577
  "has-image": t
2575
2578
  }),
2576
2579
  style: s,
@@ -2585,11 +2588,11 @@ const ki = ({
2585
2588
  image: r
2586
2589
  }) => {
2587
2590
  const s = typeof n == "string" ? /* @__PURE__ */ a.jsx(xt, { children: n }) : n;
2588
- return /* @__PURE__ */ a.jsxs(Ve, { className: S("highlight-section", e), children: [
2591
+ return /* @__PURE__ */ a.jsxs(Ve, { className: E("highlight-section", e), children: [
2589
2592
  r && /* @__PURE__ */ a.jsx(
2590
2593
  "div",
2591
2594
  {
2592
- className: S("highlight-container highlight-image", {
2595
+ className: E("highlight-container highlight-image", {
2593
2596
  [`highlight-image-${t}`]: t === "right"
2594
2597
  }),
2595
2598
  children: /* @__PURE__ */ a.jsx(Tt, { image: r })
@@ -2598,13 +2601,13 @@ const ki = ({
2598
2601
  /* @__PURE__ */ a.jsx(
2599
2602
  "div",
2600
2603
  {
2601
- className: S("highlight-container highlight-content-wrapper", {
2604
+ className: E("highlight-container highlight-content-wrapper", {
2602
2605
  "no-image": !r
2603
2606
  }),
2604
2607
  children: /* @__PURE__ */ a.jsx(
2605
2608
  "div",
2606
2609
  {
2607
- className: S("highlight-content", {
2610
+ className: E("highlight-content", {
2608
2611
  "highlight-content-right": t === "left"
2609
2612
  }),
2610
2613
  children: r ? s : /* @__PURE__ */ a.jsx("div", { className: "content-default", children: s })
@@ -2620,7 +2623,7 @@ const zl = ({
2620
2623
  title: n,
2621
2624
  text: r,
2622
2625
  gtmContext: s
2623
- }) => !n && !r ? null : /* @__PURE__ */ a.jsxs("aside", { className: S("marketing-block", t), children: [
2626
+ }) => !n && !r ? null : /* @__PURE__ */ a.jsxs("aside", { className: E("marketing-block", t), children: [
2624
2627
  n && /* @__PURE__ */ a.jsx("p", { className: "title", children: n }),
2625
2628
  r && /* @__PURE__ */ a.jsx("p", { children: r }),
2626
2629
  e && /* @__PURE__ */ a.jsx(
@@ -2725,7 +2728,7 @@ const Pi = ({
2725
2728
  return /* @__PURE__ */ a.jsx(
2726
2729
  "span",
2727
2730
  {
2728
- className: S(`progress-bar section-${l}`, o, r, {
2731
+ className: E(`progress-bar section-${l}`, o, r, {
2729
2732
  [c]: c !== "default",
2730
2733
  [d !== "default" ? d : ""]: d !== "default"
2731
2734
  }),
@@ -2754,7 +2757,7 @@ const vn = "loadingBlock_", Mi = ({ progress: t = 0, steps: e = !1, className: n
2754
2757
  return /* @__PURE__ */ a.jsxs(
2755
2758
  Fe,
2756
2759
  {
2757
- className: S("loading-block", n, {
2760
+ className: E("loading-block", n, {
2758
2761
  "has-icon": s && e[s].icon
2759
2762
  }),
2760
2763
  variant: "subtle",
@@ -2770,7 +2773,7 @@ const Se = ({ element: t = "div", className: e = "", ...n }) => /* @__PURE__ */
2770
2773
  Gn,
2771
2774
  {
2772
2775
  element: t,
2773
- className: S("loading-placeholder", e),
2776
+ className: E("loading-placeholder", e),
2774
2777
  ...n
2775
2778
  }
2776
2779
  );
@@ -2823,7 +2826,7 @@ const zn = {
2823
2826
  "course-navigation": ["button", "button"],
2824
2827
  "course-lesson-page": ["breadcrumb", "course-navigation", "text-page"],
2825
2828
  "course-lesson-quiz": ["text-page", "quiz-box"]
2826
- }, xa = (t, e) => t in zn ? /* @__PURE__ */ a.jsx("div", { className: t, children: zn[t].map((n, r) => xa(n, r)) }, e) : /* @__PURE__ */ a.jsx(Se, { className: t }, e), wa = ({ layout: t = "overview-page", ...e }) => /* @__PURE__ */ a.jsx("div", { className: S("loading-state", t), ...e, children: zn[t].map((n, r) => xa(n, r)) }), ja = (t) => {
2829
+ }, xa = (t, e) => t in zn ? /* @__PURE__ */ a.jsx("div", { className: t, children: zn[t].map((n, r) => xa(n, r)) }, e) : /* @__PURE__ */ a.jsx(Se, { className: t }, e), wa = ({ layout: t = "overview-page", ...e }) => /* @__PURE__ */ a.jsx("div", { className: E("loading-state", t), ...e, children: zn[t].map((n, r) => xa(n, r)) }), ja = (t) => {
2827
2830
  const e = t && t.toUpperCase().trim().split(" ");
2828
2831
  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) : "";
2829
2832
  }, Ct = ["#5AB6A3", "#A2D7AF", "#806056", "#3962B3"], Ri = (t) => {
@@ -2859,7 +2862,7 @@ const Nr = 256, Ye = ({
2859
2862
  return e && e !== "" && !c && (e.includes("http") || e.includes("//")) && (u = !0), /* @__PURE__ */ a.jsx(
2860
2863
  "figure",
2861
2864
  {
2862
- className: S("profile-picture", t, { error: c }),
2865
+ className: E("profile-picture", t, { error: c }),
2863
2866
  ...o,
2864
2867
  children: u ? /* @__PURE__ */ a.jsx(
2865
2868
  "img",
@@ -2913,7 +2916,7 @@ const tr = ({
2913
2916
  }));
2914
2917
  const { name: d, url: l, image: u } = c, f = Fi(c), m = n && n.createdAt ? Un(n.createdAt) : !1, p = n && n.createdAt ? ga(n.createdAt) : "";
2915
2918
  return Y.createElement(t, {
2916
- className: S("member text-medium", i),
2919
+ className: E("member text-medium", i),
2917
2920
  children: /* @__PURE__ */ a.jsxs(
2918
2921
  at,
2919
2922
  {
@@ -2961,37 +2964,37 @@ const Pr = {
2961
2964
  const f = H();
2962
2965
  return !n || n.length === 0 ? null : Y.createElement(t, {
2963
2966
  ...u,
2964
- className: S("contributors", l, s, { "has-gap": i }),
2967
+ className: E("contributors", l, s, { "has-gap": i }),
2965
2968
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2966
2969
  /* @__PURE__ */ a.jsx("ul", { children: n.map((m, p) => {
2967
2970
  let g, v = "";
2968
2971
  if (p < c) {
2969
- const { name: b = "", image: _ = "" } = ka(m);
2972
+ const { name: _ = "", image: y = "" } = ka(m);
2970
2973
  if (o)
2971
2974
  return /* @__PURE__ */ a.jsx(Se, { element: "li", className: "contributor" }, p);
2972
2975
  g = /* @__PURE__ */ a.jsx(
2973
2976
  Ye,
2974
2977
  {
2975
- name: b,
2976
- src: _,
2978
+ name: _,
2979
+ src: y,
2977
2980
  width: Pr[s || "medium"],
2978
2981
  height: Pr[s || "medium"]
2979
2982
  }
2980
2983
  );
2981
2984
  } else if (p === c) {
2982
- const b = (e || n.length) - c;
2985
+ const _ = (e || n.length) - c;
2983
2986
  g = /* @__PURE__ */ a.jsxs(
2984
2987
  "small",
2985
2988
  {
2986
- className: S({ "large-number": b > 99 }),
2989
+ className: E({ "large-number": _ > 99 }),
2987
2990
  children: [
2988
2991
  "+",
2989
- ei(b, 0)
2992
+ ei(_, 0)
2990
2993
  ]
2991
2994
  }
2992
2995
  ), v = "number-left";
2993
2996
  }
2994
- return g ? /* @__PURE__ */ a.jsx("li", { className: S("contributor", v), children: g }, p) : null;
2997
+ return g ? /* @__PURE__ */ a.jsx("li", { className: E("contributor", v), children: g }, p) : null;
2995
2998
  }) }),
2996
2999
  r && /* @__PURE__ */ a.jsx("span", { className: "label", children: typeof r == "string" ? r : n.length === 1 ? typeof n[0] == "string" ? f.formatMessage({ id: `member_${n[0]}` }) : et(n[0].name || "", 20) : d || null })
2997
3000
  ] })
@@ -3020,7 +3023,7 @@ const $t = "emailHelperTextBox_", Oi = ({
3020
3023
  "data-gtm-event-context": "VerifyEmailBox",
3021
3024
  "data-gtm-event-type": "SendEmailClick",
3022
3025
  className: "gtm-trackable",
3023
- onClick: (b) => l(b),
3026
+ onClick: (_) => l(_),
3024
3027
  href: "#",
3025
3028
  "data-testid": "send-verify-email-click"
3026
3029
  },
@@ -3050,7 +3053,7 @@ const $t = "emailHelperTextBox_", Oi = ({
3050
3053
  );
3051
3054
  ae(
3052
3055
  () => {
3053
- let p = $t, g = "default", v = {}, b = {};
3056
+ let p = $t, g = "default", v = {}, _ = {};
3054
3057
  switch (t) {
3055
3058
  case "gov":
3056
3059
  p += "autoApproved", g = "success";
@@ -3063,7 +3066,7 @@ const $t = "emailHelperTextBox_", Oi = ({
3063
3066
  };
3064
3067
  break;
3065
3068
  case "pending":
3066
- p += "pendingApproval", g = "error", b = {
3069
+ p += "pendingApproval", g = "error", _ = {
3067
3070
  href: "mailto:concierge@apolitical.co",
3068
3071
  className: "gtm-trackable",
3069
3072
  "data-gtm-event-context": "EmailExistsBox",
@@ -3076,7 +3079,7 @@ const $t = "emailHelperTextBox_", Oi = ({
3076
3079
  "data-gtm-event-context": "VerifyEmailBox",
3077
3080
  "data-gtm-event-type": "SendEmailClick",
3078
3081
  className: "gtm-trackable",
3079
- onClick: (_) => l(_),
3082
+ onClick: (y) => l(y),
3080
3083
  "data-testid": "send-verify-email-click"
3081
3084
  };
3082
3085
  break;
@@ -3085,7 +3088,7 @@ const $t = "emailHelperTextBox_", Oi = ({
3085
3088
  href: "/user-onboarding/login",
3086
3089
  "data-gtm-event-context": "EmailExistsBox",
3087
3090
  "data-gtm-event-type": "login-click"
3088
- }, b = {
3091
+ }, _ = {
3089
3092
  href: "mailto:concierge@apolitical.co",
3090
3093
  className: "gtm-trackable",
3091
3094
  "data-gtm-event-context": "EmailExistsBox",
@@ -3100,7 +3103,7 @@ const $t = "emailHelperTextBox_", Oi = ({
3100
3103
  };
3101
3104
  break;
3102
3105
  }
3103
- o({ ...i, path: p, type: g, link: v, mail: b });
3106
+ o({ ...i, path: p, type: g, link: v, mail: _ });
3104
3107
  },
3105
3108
  /* eslint-disable react-hooks/exhaustive-deps */
3106
3109
  [t]
@@ -3156,7 +3159,7 @@ const $t = "emailHelperTextBox_", Oi = ({
3156
3159
  type: c,
3157
3160
  id: n,
3158
3161
  name: i,
3159
- className: S(t, e, {
3162
+ className: E(t, e, {
3160
3163
  "has-scrollbar": c === "textarea" && f.current && f.current.clientHeight < f.current.scrollHeight
3161
3164
  }),
3162
3165
  value: d,
@@ -3198,10 +3201,10 @@ const Qe = {
3198
3201
  predictions: [],
3199
3202
  activePredictionIndex: -1,
3200
3203
  isPredictionSelected: !!n
3201
- }), { formatMessage: b } = H();
3202
- r || (r = b({ id: "inputAutocomplete_placeholder" })), ae(() => {
3204
+ }), { formatMessage: _ } = H();
3205
+ r || (r = _({ id: "inputAutocomplete_placeholder" })), ae(() => {
3203
3206
  const w = setTimeout(() => {
3204
- g || f((y) => ({ ...y, debouncedInput: d }));
3207
+ g || f((b) => ({ ...b, debouncedInput: d }));
3205
3208
  }, Ai);
3206
3209
  return () => {
3207
3210
  clearTimeout(w);
@@ -3209,13 +3212,13 @@ const Qe = {
3209
3212
  }, [d, g]), ae(() => {
3210
3213
  u && !g ? (async () => {
3211
3214
  try {
3212
- const y = await c(u) || [];
3215
+ const b = await c(u) || [];
3213
3216
  v((F) => ({
3214
3217
  ...F,
3215
- predictions: y
3218
+ predictions: b
3216
3219
  }));
3217
- } catch (y) {
3218
- console.error("Error fetching predictions:", y), v((F) => ({ ...F, predictions: [] }));
3220
+ } catch (b) {
3221
+ console.error("Error fetching predictions:", b), v((F) => ({ ...F, predictions: [] }));
3219
3222
  }
3220
3223
  })() : v((w) => ({ ...w, predictions: [] }));
3221
3224
  }, [u, g]), ae(() => {
@@ -3224,38 +3227,38 @@ const Qe = {
3224
3227
  displayInput: m[p].description
3225
3228
  }));
3226
3229
  }, [p, m]);
3227
- const _ = (w) => {
3228
- [Qe.DOWN, Qe.UP, Qe.ENTER].includes(w.key) && (w.preventDefault(), w.key === Qe.DOWN && p < m.length - 1 ? v((y) => ({
3229
- ...y,
3230
+ const y = (w) => {
3231
+ [Qe.DOWN, Qe.UP, Qe.ENTER].includes(w.key) && (w.preventDefault(), w.key === Qe.DOWN && p < m.length - 1 ? v((b) => ({
3232
+ ...b,
3230
3233
  activePredictionIndex: p + 1
3231
- })) : w.key === Qe.UP && p > 0 ? v((y) => ({
3232
- ...y,
3234
+ })) : w.key === Qe.UP && p > 0 ? v((b) => ({
3235
+ ...b,
3233
3236
  activePredictionIndex: p - 1
3234
- })) : w.key === Qe.ENTER && p > -1 && (o(m[p].description), f((y) => ({
3235
- ...y,
3237
+ })) : w.key === Qe.ENTER && p > -1 && (o(m[p].description), f((b) => ({
3238
+ ...b,
3236
3239
  input: m[p].description
3237
- })), v((y) => ({
3238
- ...y,
3240
+ })), v((b) => ({
3241
+ ...b,
3239
3242
  predictions: [],
3240
3243
  isPredictionSelected: !0
3241
3244
  }))));
3242
3245
  }, x = (w) => {
3243
- o(w.target.value), f((y) => ({
3244
- ...y,
3246
+ o(w.target.value), f((b) => ({
3247
+ ...b,
3245
3248
  input: w.target.value,
3246
3249
  displayInput: w.target.value
3247
- })), v((y) => ({
3248
- ...y,
3250
+ })), v((b) => ({
3251
+ ...b,
3249
3252
  activePredictionIndex: -1,
3250
3253
  isPredictionSelected: !1
3251
3254
  }));
3252
- }, E = (w) => {
3253
- o(w.description), f((y) => ({
3254
- ...y,
3255
+ }, S = (w) => {
3256
+ o(w.description), f((b) => ({
3257
+ ...b,
3255
3258
  input: w.description,
3256
3259
  displayInput: w.description
3257
- })), v((y) => ({
3258
- ...y,
3260
+ })), v((b) => ({
3261
+ ...b,
3259
3262
  isPredictionSelected: !0,
3260
3263
  predictions: []
3261
3264
  }));
@@ -3267,27 +3270,27 @@ const Qe = {
3267
3270
  type: "text",
3268
3271
  value: l,
3269
3272
  onChange: x,
3270
- onKeyDown: _,
3273
+ onKeyDown: y,
3271
3274
  placeholder: r,
3272
3275
  name: e,
3273
3276
  id: t,
3274
3277
  ...i
3275
3278
  }
3276
3279
  ),
3277
- /* @__PURE__ */ a.jsx("ul", { className: "predictions-list", children: m.map((w, y) => /* @__PURE__ */ a.jsx(
3280
+ /* @__PURE__ */ a.jsx("ul", { className: "predictions-list", children: m.map((w, b) => /* @__PURE__ */ a.jsx(
3278
3281
  "li",
3279
3282
  {
3280
- onClick: () => E(w),
3283
+ onClick: () => S(w),
3281
3284
  onMouseEnter: () => v((F) => ({
3282
3285
  ...F,
3283
- activePredictionIndex: y
3286
+ activePredictionIndex: b
3284
3287
  })),
3285
- className: S("predictions-list-item", {
3286
- active: y === p
3288
+ className: E("predictions-list-item", {
3289
+ active: b === p
3287
3290
  }),
3288
3291
  children: w.description
3289
3292
  },
3290
- y
3293
+ b
3291
3294
  )) })
3292
3295
  ] });
3293
3296
  };
@@ -3308,7 +3311,7 @@ const Ea = ({
3308
3311
  }) => {
3309
3312
  const m = H(), { onChange: p, ...g } = r, v = () => {
3310
3313
  e || p(u ? null : d);
3311
- }, b = /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3314
+ }, _ = /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3312
3315
  /* @__PURE__ */ a.jsx(
3313
3316
  "input",
3314
3317
  {
@@ -3318,8 +3321,8 @@ const Ea = ({
3318
3321
  type: l,
3319
3322
  value: d,
3320
3323
  checked: u,
3321
- onKeyDown: (_) => {
3322
- (_.key === "Enter" || _.code === "Space") && (_.preventDefault(), _.stopPropagation(), v());
3324
+ onKeyDown: (y) => {
3325
+ (y.key === "Enter" || y.code === "Space") && (y.preventDefault(), y.stopPropagation(), v());
3323
3326
  },
3324
3327
  readOnly: !0,
3325
3328
  disabled: e
@@ -3333,15 +3336,15 @@ const Ea = ({
3333
3336
  return Y.createElement(
3334
3337
  n,
3335
3338
  {
3336
- onClick: (_) => {
3337
- const x = _.target;
3338
- x.nodeName.toLowerCase() === "a" || x.parentNode && x.parentNode.nodeName.toLowerCase() === "a" || (_.preventDefault(), _.stopPropagation(), v());
3339
+ onClick: (y) => {
3340
+ const x = y.target;
3341
+ x.nodeName.toLowerCase() === "a" || x.parentNode && x.parentNode.nodeName.toLowerCase() === "a" || (y.preventDefault(), y.stopPropagation(), v());
3339
3342
  },
3340
- className: S("checkbox-wrapper", t),
3343
+ className: E("checkbox-wrapper", t),
3341
3344
  ...f,
3342
3345
  ...g
3343
3346
  },
3344
- b
3347
+ _
3345
3348
  );
3346
3349
  };
3347
3350
  const Ii = Ae(function({
@@ -3350,7 +3353,7 @@ const Ii = Ae(function({
3350
3353
  return /* @__PURE__ */ a.jsx(
3351
3354
  Gn,
3352
3355
  {
3353
- className: S("rotating-chevron", `direction-${e}`)
3356
+ className: E("rotating-chevron", `direction-${e}`)
3354
3357
  }
3355
3358
  );
3356
3359
  });
@@ -3368,25 +3371,25 @@ const Li = ({
3368
3371
  multiSelectOptions: d,
3369
3372
  id: l
3370
3373
  }) => {
3371
- const u = H(), [f, m] = X(!1), p = r || n, g = Array.isArray(p) ? [...p] : p ? [p] : [], [v, b] = X(g);
3372
- let _;
3373
- Array.isArray(v) && v.length === 1 && typeof v[0] == "string" ? _ = e && v ? e.find((R) => R.id === v[0]) : e ? e[0] : { id: "", label: "" } : Array.isArray(v) && v.length === 1 && typeof v[0] != "string" ? _ = v[0] : _ = { id: "", label: "" }, ae(() => {
3374
- b(g);
3374
+ const u = H(), [f, m] = X(!1), p = r || n, g = Array.isArray(p) ? [...p] : p ? [p] : [], [v, _] = X(g);
3375
+ let y;
3376
+ Array.isArray(v) && v.length === 1 && typeof v[0] == "string" ? y = e && v ? e.find((R) => R.id === v[0]) : e ? e[0] : { id: "", label: "" } : Array.isArray(v) && v.length === 1 && typeof v[0] != "string" ? y = v[0] : y = { id: "", label: "" }, ae(() => {
3377
+ _(g);
3375
3378
  }, [r, n]);
3376
- const { onChange: x, onMultiSelectSubmit: E, ...w } = s, y = (R) => {
3379
+ const { onChange: x, onMultiSelectSubmit: S, ...w } = s, b = (R) => {
3377
3380
  if (c) {
3378
3381
  let Q = [];
3379
- v != null && v.includes(R.id) ? Q = v.filter((B) => B !== R.id) : Q = [...v, R.id], b([...Q]), x && x([...Q]);
3382
+ v != null && v.includes(R.id) ? Q = v.filter((B) => B !== R.id) : Q = [...v, R.id], _([...Q]), x && x([...Q]);
3380
3383
  } else
3381
- b([R]), x && x(R.id), m(!1);
3384
+ _([R]), x && x(R.id), m(!1);
3382
3385
  }, F = (R) => {
3383
3386
  if (R === "all") {
3384
3387
  const Q = (e == null ? void 0 : e.map((B) => B.id)) || [];
3385
- b(Q), x && x(Q);
3388
+ _(Q), x && x(Q);
3386
3389
  } else
3387
- b([]), x && x([]);
3390
+ _([]), x && x([]);
3388
3391
  };
3389
- return /* @__PURE__ */ a.jsxs("div", { className: S("dropdown-wrapper", t), children: [
3392
+ return /* @__PURE__ */ a.jsxs("div", { className: E("dropdown-wrapper", t), children: [
3390
3393
  /* @__PURE__ */ a.jsxs(
3391
3394
  "button",
3392
3395
  {
@@ -3400,7 +3403,7 @@ const Li = ({
3400
3403
  "data-testid": "dropdown-selector",
3401
3404
  ...w,
3402
3405
  children: [
3403
- c ? `${o} · ${v.length}` : _.label,
3406
+ c ? `${o} · ${v.length}` : y.label,
3404
3407
  /* @__PURE__ */ a.jsx(Ii, { direction: f ? "up" : "down" })
3405
3408
  ]
3406
3409
  }
@@ -3408,11 +3411,11 @@ const Li = ({
3408
3411
  /* @__PURE__ */ a.jsx(
3409
3412
  "select",
3410
3413
  {
3411
- defaultValue: _.id,
3414
+ defaultValue: y.id,
3412
3415
  onChange: (R) => {
3413
3416
  R.preventDefault(), R.stopPropagation();
3414
3417
  const Q = e && e.find((B) => B.id === R.target.value);
3415
- y(Q);
3418
+ b(Q);
3416
3419
  },
3417
3420
  hidden: !f,
3418
3421
  ...w,
@@ -3453,25 +3456,25 @@ const Li = ({
3453
3456
  ] })
3454
3457
  ] }),
3455
3458
  /* @__PURE__ */ a.jsx("ul", { children: e == null ? void 0 : e.map((R) => {
3456
- const Q = R.id === _.id || (v == null ? void 0 : v.includes(R)) || (v == null ? void 0 : v.includes(R.id));
3459
+ const Q = R.id === y.id || (v == null ? void 0 : v.includes(R)) || (v == null ? void 0 : v.includes(R.id));
3457
3460
  return /* @__PURE__ */ a.jsx("li", { "data-testid": "dropdown-options", children: /* @__PURE__ */ a.jsxs(
3458
3461
  "button",
3459
3462
  {
3460
- className: S("gtm-trackable", {
3463
+ className: E("gtm-trackable", {
3461
3464
  selected: Q,
3462
3465
  "selected-single": Q && !c
3463
3466
  }),
3464
3467
  "data-gtm-event-type": `${R}-click`,
3465
3468
  "data-gtm-event-context": i,
3466
3469
  onClick: (B) => {
3467
- B.preventDefault(), B.stopPropagation(), y(R);
3470
+ B.preventDefault(), B.stopPropagation(), b(R);
3468
3471
  },
3469
3472
  role: "menuitem",
3470
3473
  "aria-current": Q,
3471
3474
  "data-testid": Q ? "current-selection" : "",
3472
3475
  children: [
3473
3476
  c && /* @__PURE__ */ a.jsx("span", { className: "pretty-checkbox", "data-testid": "pretty-checkbox" }),
3474
- /* @__PURE__ */ a.jsx("span", { className: S({ "menu-option-label": c }), children: R.label })
3477
+ /* @__PURE__ */ a.jsx("span", { className: E({ "menu-option-label": c }), children: R.label })
3475
3478
  ]
3476
3479
  }
3477
3480
  ) }, R.id);
@@ -3482,7 +3485,7 @@ const Li = ({
3482
3485
  {
3483
3486
  variant: "secondary",
3484
3487
  onClick: () => {
3485
- E && E(v), document.dispatchEvent(
3488
+ S && S(v), document.dispatchEvent(
3486
3489
  new CustomEvent("dropdownMultiSelectSubmit", {
3487
3490
  detail: {
3488
3491
  id: l || "dropdown-multi-select",
@@ -3519,45 +3522,45 @@ const Bi = ({
3519
3522
  "ul",
3520
3523
  {
3521
3524
  ...f,
3522
- className: S("options-wrapper", t),
3525
+ className: E("options-wrapper", t),
3523
3526
  "data-testid": `ul-${r}`,
3524
3527
  children: c == null ? void 0 : c.map(
3525
3528
  ({
3526
3529
  id: v,
3527
- label: b = !1,
3528
- value: _ = v,
3530
+ label: _ = !1,
3531
+ value: y = v,
3529
3532
  disabled: x = !1
3530
3533
  }) => {
3531
- const E = `${r}_${v}`, w = () => {
3534
+ const S = `${r}_${v}`, w = () => {
3532
3535
  if (x)
3533
3536
  return;
3534
- let y;
3537
+ let b;
3535
3538
  if (i) {
3536
- const F = p == null ? void 0 : p.indexOf(_);
3537
- Array.isArray(p) && F >= 0 ? (y = p, y.splice(F, 1)) : (!p || p.length === 0 ? y = [] : y = p, y.push(_));
3539
+ const F = p == null ? void 0 : p.indexOf(y);
3540
+ Array.isArray(p) && F >= 0 ? (b = p, b.splice(F, 1)) : (!p || p.length === 0 ? b = [] : b = p, b.push(y));
3538
3541
  } else
3539
- y = g === _ ? void 0 : _;
3540
- e.onChange(y);
3542
+ b = g === y ? void 0 : y;
3543
+ e.onChange(b);
3541
3544
  };
3542
3545
  return /* @__PURE__ */ a.jsx(
3543
3546
  Ea,
3544
3547
  {
3545
3548
  element: "li",
3546
- id: E,
3549
+ id: S,
3547
3550
  type: l === "checkboxes" ? "checkbox" : "radio",
3548
- shownValue: _,
3549
- value: i ? p == null ? void 0 : p.includes(_) : g === _,
3551
+ shownValue: y,
3552
+ value: i ? p == null ? void 0 : p.includes(y) : g === y,
3550
3553
  functions: {
3551
3554
  ...e,
3552
3555
  onChange: w
3553
3556
  },
3554
3557
  intlPath: n,
3555
- label: b || m.formatMessage({
3558
+ label: _ || m.formatMessage({
3556
3559
  id: n ? `${n}_${v}` : v
3557
3560
  }),
3558
3561
  disabled: x
3559
3562
  },
3560
- E
3563
+ S
3561
3564
  );
3562
3565
  }
3563
3566
  )
@@ -3579,7 +3582,7 @@ const qi = ({
3579
3582
  "button",
3580
3583
  {
3581
3584
  type: "button",
3582
- className: S("show-password gtm-trackable", {
3585
+ className: E("show-password gtm-trackable", {
3583
3586
  "password-visible": c
3584
3587
  }),
3585
3588
  "data-gtm-event-context": n,
@@ -3621,7 +3624,7 @@ const Je = {
3621
3624
  }) => {
3622
3625
  const f = H(), m = d && d.some(({ condition: w }) => w === "required"), p = (l == null ? void 0 : l.toString().length) || 0, g = c && Je[c] && Je[c].component ? Je[c].component : gt, v = {};
3623
3626
  c && ["checkboxes"].includes(c) ? v.element = "span" : v.htmlFor = t;
3624
- let b = {
3627
+ let _ = {
3625
3628
  ...u,
3626
3629
  id: t,
3627
3630
  name: t,
@@ -3632,10 +3635,10 @@ const Je = {
3632
3635
  functions: pt(s),
3633
3636
  value: l
3634
3637
  };
3635
- i > 0 && (b["data-character-limit"] = i, b.functions && (b.functions.onChange = (w) => {
3638
+ i > 0 && (_["data-character-limit"] = i, _.functions && (_.functions.onChange = (w) => {
3636
3639
  ((w == null ? void 0 : w.toString().length) || 0) > i && (w = w == null ? void 0 : w.toString().slice(0, i)), s.onChange(w);
3637
- })), c && Je[c] && Je[c].props && (b = { ...b, ...Je[c].props }), c && ["checkboxes"].includes(c) && (b.intlPath = `${e}_${t}`), r && (b["aria-invalid"] = !0, b["aria-describedby"] = `error-${t}`);
3638
- const _ = u.label || f.formatMessage({ id: e ? `${e}_${t}` : t }), x = ({ ...w }) => r ? Y.createElement(
3640
+ })), c && Je[c] && Je[c].props && (_ = { ..._, ...Je[c].props }), c && ["checkboxes"].includes(c) && (_.intlPath = `${e}_${t}`), r && (_["aria-invalid"] = !0, _["aria-describedby"] = `error-${t}`);
3641
+ const y = u.label || f.formatMessage({ id: e ? `${e}_${t}` : t }), x = ({ ...w }) => r ? Y.createElement(
3639
3642
  w.as || "dd",
3640
3643
  {
3641
3644
  id: `error-${t}`,
@@ -3651,21 +3654,21 @@ const Je = {
3651
3654
  /* @__PURE__ */ a.jsx(
3652
3655
  g,
3653
3656
  {
3654
- ...b,
3655
- label: _,
3656
- className: S("field-wrapper", n)
3657
+ ..._,
3658
+ label: y,
3659
+ className: E("field-wrapper", n)
3657
3660
  }
3658
3661
  ),
3659
3662
  /* @__PURE__ */ a.jsx(x, { as: "p" })
3660
3663
  ] });
3661
- const E = (w) => Y.createElement(w.element || "label", {
3664
+ const S = (w) => Y.createElement(w.element || "label", {
3662
3665
  ...w,
3663
3666
  className: "checkboxes-label text-small",
3664
3667
  "data-testid": `label-${t}`
3665
3668
  });
3666
- return /* @__PURE__ */ a.jsxs("dl", { className: S("field-wrapper text-medium", n), children: [
3667
- /* @__PURE__ */ a.jsx("dt", { children: /* @__PURE__ */ a.jsxs(E, { ...v, children: [
3668
- _,
3669
+ return /* @__PURE__ */ a.jsxs("dl", { className: E("field-wrapper text-medium", n), children: [
3670
+ /* @__PURE__ */ a.jsx("dt", { children: /* @__PURE__ */ a.jsxs(S, { ...v, children: [
3671
+ y,
3669
3672
  m && o && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3670
3673
  " ",
3671
3674
  /* @__PURE__ */ a.jsxs("small", { children: [
@@ -3676,11 +3679,11 @@ const Je = {
3676
3679
  ] })
3677
3680
  ] }) }),
3678
3681
  /* @__PURE__ */ a.jsxs("dd", { children: [
3679
- /* @__PURE__ */ a.jsx(g, { ...b }),
3682
+ /* @__PURE__ */ a.jsx(g, { ..._ }),
3680
3683
  i > 0 ? /* @__PURE__ */ a.jsxs(
3681
3684
  "small",
3682
3685
  {
3683
- className: S("character-limit", {
3686
+ className: E("character-limit", {
3684
3687
  "near-limit": p >= 0.99 * i,
3685
3688
  "approaching-limit": p >= 0.9 * i && p < 0.99 * i
3686
3689
  }),
@@ -3737,36 +3740,36 @@ const Je = {
3737
3740
  if (m.validation)
3738
3741
  for (let p = 0; p < m.validation.length; p++) {
3739
3742
  const { condition: g = "required", error: v = !1 } = m.validation[p];
3740
- let b = !1;
3743
+ let _ = !1;
3741
3744
  if (typeof g == "function") {
3742
- const _ = g(i);
3743
- _ && (b = v || _);
3745
+ const y = g(i);
3746
+ y && (_ = v || y);
3744
3747
  } else {
3745
- const _ = i[m.id];
3748
+ const y = i[m.id];
3746
3749
  switch (g) {
3747
3750
  case "required":
3748
- (!_ || typeof _ == "string" && _.trim().length === 0) && (b = v || (u == null ? void 0 : u.formatMessage({ id: "form_error_required" })));
3751
+ (!y || typeof y == "string" && y.trim().length === 0) && (_ = v || (u == null ? void 0 : u.formatMessage({ id: "form_error_required" })));
3749
3752
  break;
3750
3753
  case "no-numbers": {
3751
- _ && !/^([^0-9]*)$/.test(_) && (b = v || (u == null ? void 0 : u.formatMessage({ id: "form_error_numbers" })));
3754
+ y && !/^([^0-9]*)$/.test(y) && (_ = v || (u == null ? void 0 : u.formatMessage({ id: "form_error_numbers" })));
3752
3755
  break;
3753
3756
  }
3754
3757
  case "valid-email": {
3755
- _ && !/^(([^<>()[\]\\.,;:\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(_) && (b = v || (u == null ? void 0 : u.formatMessage({ id: "form_error_email" })));
3758
+ y && !/^(([^<>()[\]\\.,;:\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(y) && (_ = v || (u == null ? void 0 : u.formatMessage({ id: "form_error_email" })));
3756
3759
  break;
3757
3760
  }
3758
3761
  case "valid-url": {
3759
- _ && !/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$/.test(_) && (b = v || (u == null ? void 0 : u.formatMessage({ id: "form_error_url" })));
3762
+ y && !/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$/.test(y) && (_ = v || (u == null ? void 0 : u.formatMessage({ id: "form_error_url" })));
3760
3763
  break;
3761
3764
  }
3762
3765
  default:
3763
3766
  console.warn("WARNING! No field validation condition has been set");
3764
3767
  }
3765
3768
  }
3766
- if (b) {
3769
+ if (_) {
3767
3770
  c({
3768
3771
  type: "addError",
3769
- payload: { key: m.id, value: b }
3772
+ payload: { key: m.id, value: _ }
3770
3773
  }), f.push(m.id);
3771
3774
  break;
3772
3775
  }
@@ -3832,11 +3835,11 @@ const rn = ({
3832
3835
  },
3833
3836
  ...p
3834
3837
  }) => {
3835
- const { customOnSubmit: g, hideButton: v, ...b } = i, _ = 40, {
3838
+ const { customOnSubmit: g, hideButton: v, ..._ } = i, y = 40, {
3836
3839
  shouldShowCancelButton: x = !1,
3837
- shouldReset: E = !0,
3840
+ shouldReset: S = !0,
3838
3841
  showRequiredLabels: w = !0,
3839
- showSuccessMessage: y = !1
3842
+ showSuccessMessage: b = !1
3840
3843
  } = c || {}, F = H(), R = {};
3841
3844
  t.length && t.forEach((z) => {
3842
3845
  const K = z.id || z.name;
@@ -3849,7 +3852,7 @@ const rn = ({
3849
3852
  values: R
3850
3853
  }), { errors: $, isSubmitting: C, formSubmitted: k, values: j } = Q;
3851
3854
  ae(() => {
3852
- E && k && (bn = setTimeout(() => {
3855
+ S && k && (bn = setTimeout(() => {
3853
3856
  B({
3854
3857
  type: "updateValue",
3855
3858
  payload: { key: "formSubmitted", value: !1 }
@@ -3880,7 +3883,7 @@ const rn = ({
3880
3883
  i.text || (i.text = F.formatMessage({ id: "form_submit" }));
3881
3884
  const Z = [
3882
3885
  {
3883
- ...b,
3886
+ ..._,
3884
3887
  icon: k ? { icon: "tick", position: "left" } : !1,
3885
3888
  className: "gtm-trackable",
3886
3889
  onClick: (z) => {
@@ -3893,7 +3896,7 @@ const rn = ({
3893
3896
  q && (K = q.getBoundingClientRect().top + window.scrollY);
3894
3897
  }
3895
3898
  const T = document.getElementById("header");
3896
- if (T && (K = K - T.offsetHeight - _), K < 0 && (K = 0), window.scrollTo({ top: K, behavior: "smooth" }), B({ type: "toggleSubmitting" }), i.disabled) {
3899
+ if (T && (K = K - T.offsetHeight - y), K < 0 && (K = 0), window.scrollTo({ top: K, behavior: "smooth" }), B({ type: "toggleSubmitting" }), i.disabled) {
3897
3900
  typeof i.disabled == "object" && i.disabled.isClickable && B({
3898
3901
  type: "submitForm",
3899
3902
  payload: {
@@ -3911,7 +3914,7 @@ const rn = ({
3911
3914
  dispatch: B,
3912
3915
  onSuccess: async (q) => {
3913
3916
  try {
3914
- await l(q), B({ type: E ? "formSubmittedAndReset" : "formSubmitted" });
3917
+ await l(q), B({ type: S ? "formSubmittedAndReset" : "formSubmitted" });
3915
3918
  } catch (L) {
3916
3919
  f(L), B({
3917
3920
  type: "updateValue",
@@ -3951,7 +3954,7 @@ const rn = ({
3951
3954
  {
3952
3955
  ...p,
3953
3956
  id: n,
3954
- className: S("form", e),
3957
+ className: E("form", e),
3955
3958
  ref: A,
3956
3959
  children: [
3957
3960
  $ != null && $.general ? /* @__PURE__ */ a.jsx(
@@ -3961,7 +3964,7 @@ const rn = ({
3961
3964
  text: F.formatMessage({ id: "form_error_generalError" })
3962
3965
  }
3963
3966
  ) : null,
3964
- (!E || !C && !k || g) && t.map((z, K) => {
3967
+ (!S || !C && !k || g) && t.map((z, K) => {
3965
3968
  const {
3966
3969
  id: T = z.name || K,
3967
3970
  component: P,
@@ -3992,7 +3995,7 @@ const rn = ({
3992
3995
  v ? null : (C || k) && g ? g : /* @__PURE__ */ a.jsx(
3993
3996
  kt,
3994
3997
  {
3995
- className: S("cta", {
3998
+ className: E("cta", {
3996
3999
  center: C || k,
3997
4000
  submitted: k
3998
4001
  }),
@@ -4002,7 +4005,7 @@ const rn = ({
4002
4005
  ]
4003
4006
  }
4004
4007
  ),
4005
- y && k && /* @__PURE__ */ a.jsx(Wt, { className: "success", children: typeof y == "string" ? y : F.formatMessage({ id: "form_success" }) })
4008
+ b && k && /* @__PURE__ */ a.jsx(Wt, { className: "success", children: typeof b == "string" ? b : F.formatMessage({ id: "form_success" }) })
4006
4009
  ] });
4007
4010
  };
4008
4011
  const Nt = "passwordRules_", Sa = "isMoreThanEightCharacters", Ca = "includesNumberAndSymbol", $a = "includesLowerAndUppercase", zi = {
@@ -4018,13 +4021,13 @@ const Nt = "passwordRules_", Sa = "isMoreThanEightCharacters", Ca = "includesNum
4018
4021
  className: e = ""
4019
4022
  }) => {
4020
4023
  const n = H();
4021
- return /* @__PURE__ */ a.jsxs("aside", { className: S("password-rules", e), children: [
4024
+ return /* @__PURE__ */ a.jsxs("aside", { className: E("password-rules", e), children: [
4022
4025
  /* @__PURE__ */ a.jsx("small", { children: n.formatMessage({ id: `${Nt}intro` }) }),
4023
4026
  /* @__PURE__ */ a.jsx("ul", { children: [Sa, Ca, $a].map(
4024
4027
  (r) => /* @__PURE__ */ a.jsxs(
4025
4028
  "li",
4026
4029
  {
4027
- className: S({ matches: t[r] }),
4030
+ className: E({ matches: t[r] }),
4028
4031
  children: [
4029
4032
  /* @__PURE__ */ a.jsxs(be, { children: [
4030
4033
  n.formatMessage({ id: `${Nt}rule_label` }),
@@ -4062,15 +4065,15 @@ const Vl = ({
4062
4065
  disabled: !0
4063
4066
  }), u = async () => {
4064
4067
  try {
4065
- const _ = await n();
4068
+ const y = await n();
4066
4069
  l((x) => ({
4067
4070
  ...x,
4068
4071
  setUp: !0,
4069
- id: _ && _.id,
4072
+ id: y && y.id,
4070
4073
  disabled: !1
4071
4074
  }));
4072
- } catch (_) {
4073
- l((x) => ({ ...x, setUp: !0, disabled: !0 })), s(_);
4075
+ } catch (y) {
4076
+ l((x) => ({ ...x, setUp: !0, disabled: !0 })), s(y);
4074
4077
  }
4075
4078
  };
4076
4079
  if (ae(() => {
@@ -4083,24 +4086,24 @@ const Vl = ({
4083
4086
  high: c.formatMessage({ id: `${g}high` }),
4084
4087
  success: c.formatMessage({ id: `${g}success` }),
4085
4088
  ...t
4086
- }, b = async (_) => {
4089
+ }, _ = async (y) => {
4087
4090
  if (!(!f || p))
4088
4091
  try {
4089
- l((x) => ({ ...x, rating: _, disabled: !0 })), await r({ id: f, value: _ });
4092
+ l((x) => ({ ...x, rating: y, disabled: !0 })), await r({ id: f, value: y });
4090
4093
  } catch (x) {
4091
- l((E) => ({ ...E, rating: null })), s(x);
4094
+ l((S) => ({ ...S, rating: null })), s(x);
4092
4095
  } finally {
4093
4096
  l((x) => ({ ...x, disabled: !1 }));
4094
4097
  }
4095
4098
  };
4096
- return /* @__PURE__ */ a.jsxs("div", { className: S("rating", i), children: [
4099
+ return /* @__PURE__ */ a.jsxs("div", { className: E("rating", i), children: [
4097
4100
  /* @__PURE__ */ a.jsx("span", { className: "label", children: v[m ? "success" : "text"] }),
4098
- /* @__PURE__ */ a.jsx("ol", { children: Array.from(new Array(e).keys()).map((_) => {
4099
- const x = _ + 1;
4101
+ /* @__PURE__ */ a.jsx("ol", { children: Array.from(new Array(e).keys()).map((y) => {
4102
+ const x = y + 1;
4100
4103
  return /* @__PURE__ */ a.jsx(
4101
4104
  "li",
4102
4105
  {
4103
- className: S({ selected: m && x <= m }),
4106
+ className: E({ selected: m && x <= m }),
4104
4107
  children: /* @__PURE__ */ a.jsx(
4105
4108
  se,
4106
4109
  {
@@ -4115,8 +4118,8 @@ const Vl = ({
4115
4118
  { id: `${g}stars` },
4116
4119
  { number: x, total: e }
4117
4120
  )}${x === 1 || x === e ? ` - ${v[x === 1 ? "low" : "high"]}` : ""}`,
4118
- onClick: (E) => {
4119
- E.preventDefault(), E.stopPropagation(), b(x);
4121
+ onClick: (S) => {
4122
+ S.preventDefault(), S.stopPropagation(), _(x);
4120
4123
  },
4121
4124
  disabled: p
4122
4125
  }
@@ -4149,7 +4152,7 @@ const Yl = ({
4149
4152
  return /* @__PURE__ */ a.jsxs(
4150
4153
  "div",
4151
4154
  {
4152
- className: S("toggle", o),
4155
+ className: E("toggle", o),
4153
4156
  onClick: (u) => {
4154
4157
  u.preventDefault(), u.stopPropagation(), l(c === n[0].value ? n[1].value : n[0].value);
4155
4158
  },
@@ -4158,7 +4161,7 @@ const Yl = ({
4158
4161
  /* @__PURE__ */ a.jsx(
4159
4162
  "ul",
4160
4163
  {
4161
- className: S("toggle-options", {
4164
+ className: E("toggle-options", {
4162
4165
  disabled: i,
4163
4166
  on: c === n[1].value
4164
4167
  }),
@@ -4208,7 +4211,7 @@ function Kl({ className: t = "", userId: e, userName: n, src: r, setUserImage: s
4208
4211
  }
4209
4212
  c(!1);
4210
4213
  };
4211
- return /* @__PURE__ */ a.jsxs("div", { className: S("profile-image-change-figure", t), children: [
4214
+ return /* @__PURE__ */ a.jsxs("div", { className: E("profile-image-change-figure", t), children: [
4212
4215
  /* @__PURE__ */ a.jsx(Ye, { className: "profile-image-change-picture", name: n, src: r, "data-testid": "profile-picture" }),
4213
4216
  d && /* @__PURE__ */ a.jsx("p", { className: "error text-small", children: /* @__PURE__ */ a.jsx(ye, { id: "profile_image_change_error" }) }),
4214
4217
  /* @__PURE__ */ a.jsx(
@@ -4298,46 +4301,46 @@ const Yi = ({
4298
4301
  initialFormStatus: l = "NOT_SUBMITTED"
4299
4302
  /* NOT_SUBMITTED */
4300
4303
  }) => {
4301
- const [u, f] = X([]), [m, p] = X(!0), [g, v] = X(l), { formatMessage: b } = H(), _ = async (w) => {
4304
+ const [u, f] = X([]), [m, p] = X(!0), [g, v] = X(l), { formatMessage: _ } = H(), y = async (w) => {
4302
4305
  w.preventDefault();
4303
4306
  try {
4304
4307
  await d(u), f([]), v(
4305
4308
  "SUCCESS"
4306
4309
  /* SUCCESS */
4307
4310
  );
4308
- } catch (y) {
4311
+ } catch (b) {
4309
4312
  v(
4310
4313
  "ERROR"
4311
4314
  /* ERROR */
4312
- ), c(y);
4315
+ ), c(b);
4313
4316
  }
4314
4317
  }, x = (w) => {
4315
4318
  w.preventDefault(), v(
4316
4319
  "NOT_SUBMITTED"
4317
4320
  /* NOT_SUBMITTED */
4318
4321
  ), p(!0), f([]);
4319
- }, E = (w) => {
4322
+ }, S = (w) => {
4320
4323
  w.preventDefault(), o(), v(
4321
4324
  "CLOSED"
4322
4325
  /* CLOSED */
4323
4326
  );
4324
4327
  };
4325
4328
  return g === "CLOSED" ? null : g === "ERROR" || g === "SUCCESS" ? /* @__PURE__ */ a.jsxs("div", { className: "invite-form-wrapper", children: [
4326
- /* @__PURE__ */ a.jsx("div", { className: "content centred", children: g === "SUCCESS" ? /* @__PURE__ */ a.jsx("h2", { className: "success-title", children: b({ id: "inviteForm_success" }) }) : /* @__PURE__ */ a.jsxs("h2", { className: "error-title", children: [
4329
+ /* @__PURE__ */ a.jsx("div", { className: "content centred", children: g === "SUCCESS" ? /* @__PURE__ */ a.jsx("h2", { className: "success-title", children: _({ id: "inviteForm_success" }) }) : /* @__PURE__ */ a.jsxs("h2", { className: "error-title", children: [
4327
4330
  " ",
4328
- b({ id: "inviteForm_error" })
4331
+ _({ id: "inviteForm_error" })
4329
4332
  ] }) }),
4330
4333
  /* @__PURE__ */ a.jsx(Oe, {}),
4331
4334
  /* @__PURE__ */ a.jsx("div", { className: "footer", children: g === "SUCCESS" ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
4332
- /* @__PURE__ */ a.jsx(se, { variant: "secondary", onClick: x, children: b({ id: "inviteForm_ctaSendMoreInvites" }) }),
4333
- /* @__PURE__ */ a.jsx(se, { onClick: E, children: b({ id: "inviteForm_ctaDone" }) })
4334
- ] }) : /* @__PURE__ */ a.jsx(se, { onClick: x, children: b({ id: "inviteForm_ctaTryAgain" }) }) })
4335
+ /* @__PURE__ */ a.jsx(se, { variant: "secondary", onClick: x, children: _({ id: "inviteForm_ctaSendMoreInvites" }) }),
4336
+ /* @__PURE__ */ a.jsx(se, { onClick: S, children: _({ id: "inviteForm_ctaDone" }) })
4337
+ ] }) : /* @__PURE__ */ a.jsx(se, { onClick: x, children: _({ id: "inviteForm_ctaTryAgain" }) }) })
4335
4338
  ] }) : /* @__PURE__ */ a.jsx("div", { className: "invite-form-wrapper", children: /* @__PURE__ */ a.jsxs(
4336
4339
  "form",
4337
4340
  {
4338
4341
  style: { backgroundColor: i },
4339
- onSubmit: _,
4340
- className: S("invite-form gtm-trackable"),
4342
+ onSubmit: y,
4343
+ className: E("invite-form gtm-trackable"),
4341
4344
  children: [
4342
4345
  /* @__PURE__ */ a.jsxs("fieldset", { className: "content", children: [
4343
4346
  /* @__PURE__ */ a.jsx("h2", { className: "title", style: { color: r }, children: t }),
@@ -4347,13 +4350,13 @@ const Yi = ({
4347
4350
  {
4348
4351
  id: "email-input",
4349
4352
  inputClassName: "email-input input",
4350
- placeholder: b({ id: "inviteForm_email_placeholder" }),
4353
+ placeholder: _({ id: "inviteForm_email_placeholder" }),
4351
4354
  emails: u,
4352
4355
  onChange: (w) => {
4353
4356
  f(w), p(!w.length);
4354
4357
  },
4355
4358
  autoFocus: !1,
4356
- getLabel: (w, y, F) => /* @__PURE__ */ a.jsxs("div", { className: "email text-medium", children: [
4359
+ getLabel: (w, b, F) => /* @__PURE__ */ a.jsxs("div", { className: "email text-medium", children: [
4357
4360
  /* @__PURE__ */ a.jsx("div", { "data-tag-item": !0, children: w }),
4358
4361
  /* @__PURE__ */ a.jsx(
4359
4362
  se,
@@ -4362,13 +4365,13 @@ const Yi = ({
4362
4365
  size: "small",
4363
4366
  icon: { icon: "close" },
4364
4367
  onClick: () => {
4365
- F(y), p(!u.length);
4368
+ F(b), p(!u.length);
4366
4369
  },
4367
4370
  className: "remove-email-button",
4368
- screenreaderText: b({ id: "overlay_close" })
4371
+ screenreaderText: _({ id: "overlay_close" })
4369
4372
  }
4370
4373
  )
4371
- ] }, y)
4374
+ ] }, b)
4372
4375
  }
4373
4376
  )
4374
4377
  ] }),
@@ -4465,7 +4468,7 @@ const Ki = ({
4465
4468
  "form",
4466
4469
  {
4467
4470
  onSubmit: u,
4468
- className: S("search-form gtm-trackable", e),
4471
+ className: E("search-form gtm-trackable", e),
4469
4472
  "data-gtm-event-context": s,
4470
4473
  "data-gtm-event-type": i,
4471
4474
  children: /* @__PURE__ */ a.jsx(
@@ -4753,7 +4756,7 @@ const Ki = ({
4753
4756
  const Xi = ({ className: t = "" }) => /* @__PURE__ */ a.jsxs(
4754
4757
  "div",
4755
4758
  {
4756
- className: S("success-message", t),
4759
+ className: E("success-message", t),
4757
4760
  "data-testid": "success-message",
4758
4761
  children: [
4759
4762
  /* @__PURE__ */ a.jsx("p", { className: "success-title", children: /* @__PURE__ */ a.jsx(ye, { id: "signup_success_title" }) }),
@@ -4811,12 +4814,12 @@ const eo = {
4811
4814
  url: f,
4812
4815
  logInButton: m,
4813
4816
  successMessage: p
4814
- }, [v, b] = Yn(ma, eo), {
4815
- validFields: _,
4817
+ }, [v, _] = Yn(ma, eo), {
4818
+ validFields: y,
4816
4819
  emailDetails: x,
4817
- shouldManuallyApprove: E,
4820
+ shouldManuallyApprove: S,
4818
4821
  shouldDisableButton: w,
4819
- showSuccessMessage: y,
4822
+ showSuccessMessage: b,
4820
4823
  showError: F
4821
4824
  } = v, [R, Q] = oa([
4822
4825
  "signup-this-session",
@@ -4831,15 +4834,15 @@ const eo = {
4831
4834
  hiddenValidation: Y.createRef()
4832
4835
  };
4833
4836
  ae(() => {
4834
- E === !0 && B.jobTitle.current && B.jobTitle.current.focus();
4835
- }, [E]), ae(() => {
4836
- R["signup-this-session"] && b([{ type: "showSuccessMessage", value: !0 }]);
4837
+ S === !0 && B.jobTitle.current && B.jobTitle.current.focus();
4838
+ }, [S]), ae(() => {
4839
+ R["signup-this-session"] && _([{ type: "showSuccessMessage", value: !0 }]);
4837
4840
  }, [R]), ae(() => {
4838
- y && R["functional-cookie-consent"] && Q("signup-this-session", "true", {
4841
+ b && R["functional-cookie-consent"] && Q("signup-this-session", "true", {
4839
4842
  path: "/",
4840
4843
  maxAge: 3600
4841
4844
  });
4842
- }, [y]);
4845
+ }, [b]);
4843
4846
  const $ = wt(() => Ji({
4844
4847
  placeholders: n,
4845
4848
  labels: e,
@@ -4847,14 +4850,14 @@ const eo = {
4847
4850
  functions: r,
4848
4851
  refs: B,
4849
4852
  state: v,
4850
- dispatch: b,
4853
+ dispatch: _,
4851
4854
  dataToSubmit: o,
4852
4855
  intl: d
4853
- }), [o, r, d, B, g, v]), C = w ? !0 : E ? !Object.values(_).every((k) => k === !0) : !_.name || !_.email || ["exists", "pending", "verify"].includes(x.boxType);
4854
- return g.successMessage && y ? /* @__PURE__ */ a.jsx(Xi, { className: t }) : /* @__PURE__ */ a.jsxs(
4856
+ }), [o, r, d, B, g, v]), C = w ? !0 : S ? !Object.values(y).every((k) => k === !0) : !y.name || !y.email || ["exists", "pending", "verify"].includes(x.boxType);
4857
+ return g.successMessage && b ? /* @__PURE__ */ a.jsx(Xi, { className: t }) : /* @__PURE__ */ a.jsxs(
4855
4858
  "fieldset",
4856
4859
  {
4857
- className: S("signup-form-fieldset", t),
4860
+ className: E("signup-form-fieldset", t),
4858
4861
  "data-testid": "signup-form",
4859
4862
  children: [
4860
4863
  g.title && /* @__PURE__ */ a.jsx("p", { className: "signup-title", children: /* @__PURE__ */ a.jsx(ye, { id: "signup_title" }) }),
@@ -4907,12 +4910,12 @@ const eo = {
4907
4910
  dataToSubmit: o,
4908
4911
  createAccount: r.createAccount,
4909
4912
  onSuccess: r.onSuccess,
4910
- dispatch: b,
4913
+ dispatch: _,
4911
4914
  state: v
4912
4915
  });
4913
4916
  },
4914
4917
  onCatch: (k) => {
4915
- r.handleError(k), b([
4918
+ r.handleError(k), _([
4916
4919
  { type: "showSuccessMessage", value: !1 },
4917
4920
  { type: "showError", value: !0 }
4918
4921
  ]);
@@ -4939,28 +4942,28 @@ function to() {
4939
4942
  if (Rr)
4940
4943
  return ue;
4941
4944
  Rr = 1;
4942
- var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, s = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, d = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, m = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, g = t ? Symbol.for("react.lazy") : 60116, v = t ? Symbol.for("react.block") : 60121, b = t ? Symbol.for("react.fundamental") : 60117, _ = t ? Symbol.for("react.responder") : 60118, x = t ? Symbol.for("react.scope") : 60119;
4943
- function E(y) {
4944
- if (typeof y == "object" && y !== null) {
4945
- var F = y.$$typeof;
4945
+ var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, s = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, d = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, m = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, g = t ? Symbol.for("react.lazy") : 60116, v = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, y = t ? Symbol.for("react.responder") : 60118, x = t ? Symbol.for("react.scope") : 60119;
4946
+ function S(b) {
4947
+ if (typeof b == "object" && b !== null) {
4948
+ var F = b.$$typeof;
4946
4949
  switch (F) {
4947
4950
  case e:
4948
- switch (y = y.type, y) {
4951
+ switch (b = b.type, b) {
4949
4952
  case d:
4950
4953
  case l:
4951
4954
  case r:
4952
4955
  case i:
4953
4956
  case s:
4954
4957
  case f:
4955
- return y;
4958
+ return b;
4956
4959
  default:
4957
- switch (y = y && y.$$typeof, y) {
4960
+ switch (b = b && b.$$typeof, b) {
4958
4961
  case c:
4959
4962
  case u:
4960
4963
  case g:
4961
4964
  case p:
4962
4965
  case o:
4963
- return y;
4966
+ return b;
4964
4967
  default:
4965
4968
  return F;
4966
4969
  }
@@ -4970,36 +4973,36 @@ function to() {
4970
4973
  }
4971
4974
  }
4972
4975
  }
4973
- function w(y) {
4974
- return E(y) === l;
4976
+ function w(b) {
4977
+ return S(b) === l;
4975
4978
  }
4976
- return ue.AsyncMode = d, 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 = i, ue.StrictMode = s, ue.Suspense = f, ue.isAsyncMode = function(y) {
4977
- return w(y) || E(y) === d;
4978
- }, ue.isConcurrentMode = w, ue.isContextConsumer = function(y) {
4979
- return E(y) === c;
4980
- }, ue.isContextProvider = function(y) {
4981
- return E(y) === o;
4982
- }, ue.isElement = function(y) {
4983
- return typeof y == "object" && y !== null && y.$$typeof === e;
4984
- }, ue.isForwardRef = function(y) {
4985
- return E(y) === u;
4986
- }, ue.isFragment = function(y) {
4987
- return E(y) === r;
4988
- }, ue.isLazy = function(y) {
4989
- return E(y) === g;
4990
- }, ue.isMemo = function(y) {
4991
- return E(y) === p;
4992
- }, ue.isPortal = function(y) {
4993
- return E(y) === n;
4994
- }, ue.isProfiler = function(y) {
4995
- return E(y) === i;
4996
- }, ue.isStrictMode = function(y) {
4997
- return E(y) === s;
4998
- }, ue.isSuspense = function(y) {
4999
- return E(y) === f;
5000
- }, ue.isValidElementType = function(y) {
5001
- return typeof y == "string" || typeof y == "function" || y === r || y === l || y === i || y === s || y === f || y === m || typeof y == "object" && y !== null && (y.$$typeof === g || y.$$typeof === p || y.$$typeof === o || y.$$typeof === c || y.$$typeof === u || y.$$typeof === b || y.$$typeof === _ || y.$$typeof === x || y.$$typeof === v);
5002
- }, ue.typeOf = E, ue;
4979
+ return ue.AsyncMode = d, 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 = i, ue.StrictMode = s, ue.Suspense = f, ue.isAsyncMode = function(b) {
4980
+ return w(b) || S(b) === d;
4981
+ }, ue.isConcurrentMode = w, ue.isContextConsumer = function(b) {
4982
+ return S(b) === c;
4983
+ }, ue.isContextProvider = function(b) {
4984
+ return S(b) === o;
4985
+ }, ue.isElement = function(b) {
4986
+ return typeof b == "object" && b !== null && b.$$typeof === e;
4987
+ }, ue.isForwardRef = function(b) {
4988
+ return S(b) === u;
4989
+ }, ue.isFragment = function(b) {
4990
+ return S(b) === r;
4991
+ }, ue.isLazy = function(b) {
4992
+ return S(b) === g;
4993
+ }, ue.isMemo = function(b) {
4994
+ return S(b) === p;
4995
+ }, ue.isPortal = function(b) {
4996
+ return S(b) === n;
4997
+ }, ue.isProfiler = function(b) {
4998
+ return S(b) === i;
4999
+ }, ue.isStrictMode = function(b) {
5000
+ return S(b) === s;
5001
+ }, ue.isSuspense = function(b) {
5002
+ return S(b) === f;
5003
+ }, ue.isValidElementType = function(b) {
5004
+ return typeof b == "string" || typeof b == "function" || b === r || b === l || b === i || b === s || b === f || b === m || typeof b == "object" && b !== null && (b.$$typeof === g || b.$$typeof === p || b.$$typeof === o || b.$$typeof === c || b.$$typeof === u || b.$$typeof === _ || b.$$typeof === y || b.$$typeof === x || b.$$typeof === v);
5005
+ }, ue.typeOf = S, ue;
5003
5006
  }
5004
5007
  var de = {};
5005
5008
  /** @license React v16.13.1
@@ -5013,10 +5016,10 @@ var de = {};
5013
5016
  var Fr;
5014
5017
  function no() {
5015
5018
  return Fr || (Fr = 1, process.env.NODE_ENV !== "production" && function() {
5016
- var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, s = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, d = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, m = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, g = t ? Symbol.for("react.lazy") : 60116, v = t ? Symbol.for("react.block") : 60121, b = t ? Symbol.for("react.fundamental") : 60117, _ = t ? Symbol.for("react.responder") : 60118, x = t ? Symbol.for("react.scope") : 60119;
5017
- function E(D) {
5019
+ var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, s = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, d = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, m = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, g = t ? Symbol.for("react.lazy") : 60116, v = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, y = t ? Symbol.for("react.responder") : 60118, x = t ? Symbol.for("react.scope") : 60119;
5020
+ function S(D) {
5018
5021
  return typeof D == "string" || typeof D == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
5019
- D === r || D === l || D === i || D === s || D === f || D === m || typeof D == "object" && D !== null && (D.$$typeof === g || D.$$typeof === p || D.$$typeof === o || D.$$typeof === c || D.$$typeof === u || D.$$typeof === b || D.$$typeof === _ || D.$$typeof === x || D.$$typeof === v);
5022
+ D === r || D === l || D === i || D === s || D === f || D === m || typeof D == "object" && D !== null && (D.$$typeof === g || D.$$typeof === p || D.$$typeof === o || D.$$typeof === c || D.$$typeof === u || D.$$typeof === _ || D.$$typeof === y || D.$$typeof === x || D.$$typeof === v);
5020
5023
  }
5021
5024
  function w(D) {
5022
5025
  if (typeof D == "object" && D !== null) {
@@ -5050,7 +5053,7 @@ function no() {
5050
5053
  }
5051
5054
  }
5052
5055
  }
5053
- var y = d, F = l, R = c, Q = o, B = e, $ = u, C = r, k = g, j = p, N = n, A = i, W = s, Z = f, z = !1;
5056
+ var b = d, F = l, R = c, Q = o, B = e, $ = u, C = r, k = g, j = p, N = n, A = i, W = s, Z = f, z = !1;
5054
5057
  function K(D) {
5055
5058
  return z || (z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), T(D) || w(D) === d;
5056
5059
  }
@@ -5090,7 +5093,7 @@ function no() {
5090
5093
  function oe(D) {
5091
5094
  return w(D) === f;
5092
5095
  }
5093
- de.AsyncMode = y, de.ConcurrentMode = F, de.ContextConsumer = R, de.ContextProvider = Q, de.Element = B, de.ForwardRef = $, de.Fragment = C, de.Lazy = k, de.Memo = j, de.Portal = N, de.Profiler = A, de.StrictMode = W, de.Suspense = Z, de.isAsyncMode = K, de.isConcurrentMode = T, de.isContextConsumer = P, de.isContextProvider = q, de.isElement = L, de.isForwardRef = U, de.isFragment = te, de.isLazy = G, de.isMemo = V, de.isPortal = ee, de.isProfiler = re, de.isStrictMode = O, de.isSuspense = oe, de.isValidElementType = E, de.typeOf = w;
5096
+ de.AsyncMode = b, de.ConcurrentMode = F, de.ContextConsumer = R, de.ContextProvider = Q, de.Element = B, de.ForwardRef = $, de.Fragment = C, de.Lazy = k, de.Memo = j, de.Portal = N, de.Profiler = A, de.StrictMode = W, de.Suspense = Z, de.isAsyncMode = K, de.isConcurrentMode = T, de.isContextConsumer = P, de.isContextProvider = q, de.isElement = L, de.isForwardRef = U, de.isFragment = te, de.isLazy = G, de.isMemo = V, de.isPortal = ee, de.isProfiler = re, de.isStrictMode = O, de.isSuspense = oe, de.isValidElementType = S, de.typeOf = w;
5094
5097
  }()), de;
5095
5098
  }
5096
5099
  var Or;
@@ -5237,18 +5240,18 @@ function so() {
5237
5240
  return P;
5238
5241
  }
5239
5242
  var m = "<<anonymous>>", p = {
5240
- array: _("array"),
5241
- bigint: _("bigint"),
5242
- bool: _("boolean"),
5243
- func: _("function"),
5244
- number: _("number"),
5245
- object: _("object"),
5246
- string: _("string"),
5247
- symbol: _("symbol"),
5243
+ array: y("array"),
5244
+ bigint: y("bigint"),
5245
+ bool: y("boolean"),
5246
+ func: y("function"),
5247
+ number: y("number"),
5248
+ object: y("object"),
5249
+ string: y("string"),
5250
+ symbol: y("symbol"),
5248
5251
  any: x(),
5249
- arrayOf: E,
5252
+ arrayOf: S,
5250
5253
  element: w(),
5251
- elementType: y(),
5254
+ elementType: b(),
5252
5255
  instanceOf: F,
5253
5256
  node: $(),
5254
5257
  objectOf: Q,
@@ -5264,7 +5267,7 @@ function so() {
5264
5267
  this.message = T, this.data = P && typeof P == "object" ? P : {}, this.stack = "";
5265
5268
  }
5266
5269
  v.prototype = Error.prototype;
5267
- function b(T) {
5270
+ function _(T) {
5268
5271
  if (process.env.NODE_ENV !== "production")
5269
5272
  var P = {}, q = 0;
5270
5273
  function L(te, G, V, ee, re, O, oe) {
@@ -5287,7 +5290,7 @@ function so() {
5287
5290
  var U = L.bind(null, !1);
5288
5291
  return U.isRequired = L.bind(null, !0), U;
5289
5292
  }
5290
- function _(T) {
5293
+ function y(T) {
5291
5294
  function P(q, L, U, te, G, V) {
5292
5295
  var ee = q[L], re = W(ee);
5293
5296
  if (re !== T) {
@@ -5299,12 +5302,12 @@ function so() {
5299
5302
  }
5300
5303
  return null;
5301
5304
  }
5302
- return b(P);
5305
+ return _(P);
5303
5306
  }
5304
5307
  function x() {
5305
- return b(o);
5308
+ return _(o);
5306
5309
  }
5307
- function E(T) {
5310
+ function S(T) {
5308
5311
  function P(q, L, U, te, G) {
5309
5312
  if (typeof T != "function")
5310
5313
  return new v("Property `" + G + "` of component `" + U + "` has invalid PropType notation inside arrayOf.");
@@ -5320,7 +5323,7 @@ function so() {
5320
5323
  }
5321
5324
  return null;
5322
5325
  }
5323
- return b(P);
5326
+ return _(P);
5324
5327
  }
5325
5328
  function w() {
5326
5329
  function T(P, q, L, U, te) {
@@ -5331,9 +5334,9 @@ function so() {
5331
5334
  }
5332
5335
  return null;
5333
5336
  }
5334
- return b(T);
5337
+ return _(T);
5335
5338
  }
5336
- function y() {
5339
+ function b() {
5337
5340
  function T(P, q, L, U, te) {
5338
5341
  var G = P[q];
5339
5342
  if (!t.isValidElementType(G)) {
@@ -5342,7 +5345,7 @@ function so() {
5342
5345
  }
5343
5346
  return null;
5344
5347
  }
5345
- return b(T);
5348
+ return _(T);
5346
5349
  }
5347
5350
  function F(T) {
5348
5351
  function P(q, L, U, te, G) {
@@ -5352,7 +5355,7 @@ function so() {
5352
5355
  }
5353
5356
  return null;
5354
5357
  }
5355
- return b(P);
5358
+ return _(P);
5356
5359
  }
5357
5360
  function R(T) {
5358
5361
  if (!Array.isArray(T))
@@ -5369,7 +5372,7 @@ function so() {
5369
5372
  });
5370
5373
  return new v("Invalid " + te + " `" + G + "` of value `" + String(V) + "` " + ("supplied to `" + U + "`, expected one of " + re + "."));
5371
5374
  }
5372
- return b(P);
5375
+ return _(P);
5373
5376
  }
5374
5377
  function Q(T) {
5375
5378
  function P(q, L, U, te, G) {
@@ -5386,7 +5389,7 @@ function so() {
5386
5389
  }
5387
5390
  return null;
5388
5391
  }
5389
- return b(P);
5392
+ return _(P);
5390
5393
  }
5391
5394
  function B(T) {
5392
5395
  if (!Array.isArray(T))
@@ -5408,13 +5411,13 @@ function so() {
5408
5411
  var ve = re.length > 0 ? ", expected one of type [" + re.join(", ") + "]" : "";
5409
5412
  return new v("Invalid " + V + " `" + ee + "` supplied to " + ("`" + G + "`" + ve + "."));
5410
5413
  }
5411
- return b(L);
5414
+ return _(L);
5412
5415
  }
5413
5416
  function $() {
5414
5417
  function T(P, q, L, U, te) {
5415
5418
  return N(P[q]) ? null : new v("Invalid " + U + " `" + te + "` supplied to " + ("`" + L + "`, expected a ReactNode."));
5416
5419
  }
5417
- return b(T);
5420
+ return _(T);
5418
5421
  }
5419
5422
  function C(T, P, q, L, U) {
5420
5423
  return new v(
@@ -5436,7 +5439,7 @@ function so() {
5436
5439
  }
5437
5440
  return null;
5438
5441
  }
5439
- return b(P);
5442
+ return _(P);
5440
5443
  }
5441
5444
  function j(T) {
5442
5445
  function P(q, L, U, te, G) {
@@ -5459,7 +5462,7 @@ Valid keys: ` + JSON.stringify(Object.keys(T), null, " ")
5459
5462
  }
5460
5463
  return null;
5461
5464
  }
5462
- return b(P);
5465
+ return _(P);
5463
5466
  }
5464
5467
  function N(T) {
5465
5468
  switch (typeof T) {
@@ -6035,7 +6038,7 @@ var Zr = {
6035
6038
  }, v = function(k) {
6036
6039
  var j = u("setReturnFocus", k);
6037
6040
  return j || (j === !1 ? !1 : k);
6038
- }, b = function(k) {
6041
+ }, _ = function(k) {
6039
6042
  var j = k.target, N = k.event, A = k.isBackward, W = A === void 0 ? !1 : A;
6040
6043
  j = j || Mt(N), m();
6041
6044
  var Z = null;
@@ -6067,7 +6070,7 @@ var Zr = {
6067
6070
  } else
6068
6071
  Z = u("fallbackFocus");
6069
6072
  return Z;
6070
- }, _ = function(k) {
6073
+ }, y = function(k) {
6071
6074
  var j = Mt(k);
6072
6075
  if (!(l(j, k) >= 0)) {
6073
6076
  if (lt(i.clickOutsideDeactivates, k)) {
@@ -6108,7 +6111,7 @@ var Zr = {
6108
6111
  }) || (W = !1);
6109
6112
  else
6110
6113
  W = !1;
6111
- W && (A = b({
6114
+ W && (A = _({
6112
6115
  // move FROM the MRU node, not event-related node (which will be the node that is
6113
6116
  // outside the trap causing the focus escape we're trying to fix)
6114
6117
  target: o.mostRecentlyFocusedNode,
@@ -6116,10 +6119,10 @@ var Zr = {
6116
6119
  })), g(A || o.mostRecentlyFocusedNode || f());
6117
6120
  }
6118
6121
  o.recentNavEvent = void 0;
6119
- }, E = function(k) {
6122
+ }, S = function(k) {
6120
6123
  var j = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
6121
6124
  o.recentNavEvent = k;
6122
- var N = b({
6125
+ var N = _({
6123
6126
  event: k,
6124
6127
  isBackward: j
6125
6128
  });
@@ -6129,21 +6132,21 @@ var Zr = {
6129
6132
  k.preventDefault(), c.deactivate();
6130
6133
  return;
6131
6134
  }
6132
- (i.isKeyForward(k) || i.isKeyBackward(k)) && E(k, i.isKeyBackward(k));
6133
- }, y = function(k) {
6135
+ (i.isKeyForward(k) || i.isKeyBackward(k)) && S(k, i.isKeyBackward(k));
6136
+ }, b = function(k) {
6134
6137
  var j = Mt(k);
6135
6138
  l(j, k) >= 0 || lt(i.clickOutsideDeactivates, k) || lt(i.allowOutsideClick, k) || (k.preventDefault(), k.stopImmediatePropagation());
6136
6139
  }, F = function() {
6137
6140
  if (o.active)
6138
6141
  return Zr.activateTrap(s, c), o.delayInitialFocusTimer = i.delayInitialFocus ? Hr(function() {
6139
6142
  g(f());
6140
- }) : g(f()), r.addEventListener("focusin", x, !0), r.addEventListener("mousedown", _, {
6143
+ }) : g(f()), r.addEventListener("focusin", x, !0), r.addEventListener("mousedown", y, {
6141
6144
  capture: !0,
6142
6145
  passive: !1
6143
- }), r.addEventListener("touchstart", _, {
6146
+ }), r.addEventListener("touchstart", y, {
6144
6147
  capture: !0,
6145
6148
  passive: !1
6146
- }), r.addEventListener("click", y, {
6149
+ }), r.addEventListener("click", b, {
6147
6150
  capture: !0,
6148
6151
  passive: !1
6149
6152
  }), r.addEventListener("keydown", w, {
@@ -6152,7 +6155,7 @@ var Zr = {
6152
6155
  }), c;
6153
6156
  }, R = function() {
6154
6157
  if (o.active)
6155
- return r.removeEventListener("focusin", x, !0), r.removeEventListener("mousedown", _, !0), r.removeEventListener("touchstart", _, !0), r.removeEventListener("click", y, !0), r.removeEventListener("keydown", w, !0), c;
6158
+ return r.removeEventListener("focusin", x, !0), r.removeEventListener("mousedown", y, !0), r.removeEventListener("touchstart", y, !0), r.removeEventListener("click", b, !0), r.removeEventListener("keydown", w, !0), c;
6156
6159
  }, Q = function(k) {
6157
6160
  var j = k.some(function(N) {
6158
6161
  var A = Array.from(N.removedNodes);
@@ -6564,7 +6567,7 @@ rr.defaultProps = {
6564
6567
  var Qo = rr;
6565
6568
  const Jo = /* @__PURE__ */ la(Qo);
6566
6569
  const qa = ({ element: t = "section", children: e, className: n, ...r }) => Y.createElement(t, {
6567
- className: S("modal", n),
6570
+ className: E("modal", n),
6568
6571
  children: typeof e == "string" ? /* @__PURE__ */ a.jsx("p", { children: e }) : e,
6569
6572
  ...r
6570
6573
  });
@@ -6584,27 +6587,27 @@ const an = ({
6584
6587
  gtmContext: f = "Modal"
6585
6588
  }) => {
6586
6589
  const m = H(), [p, g] = X(e), v = (x) => {
6587
- x.key === "Escape" && b(!1);
6590
+ x.key === "Escape" && _(!1);
6588
6591
  };
6589
6592
  ae(() => (window.addEventListener("keyup", v), () => {
6590
6593
  window.removeEventListener("keyup", v);
6591
6594
  }));
6592
- const b = (x) => {
6595
+ const _ = (x) => {
6593
6596
  g(x), x ? (s(), document.body.classList.add("has-overlay")) : (i(), document.body.classList.remove("has-overlay"));
6594
6597
  };
6595
6598
  ae(() => {
6596
- b(e);
6599
+ _(e);
6597
6600
  }, [e]);
6598
- const _ = r ? { "--max-width": `${r / 16}rem` } : {};
6599
- return /* @__PURE__ */ a.jsx("div", { className: S("overlay", { open: p }), role: "dialog", children: /* @__PURE__ */ a.jsx(
6601
+ const y = r ? { "--max-width": `${r / 16}rem` } : {};
6602
+ return /* @__PURE__ */ a.jsx("div", { className: E("overlay", { open: p }), role: "dialog", children: /* @__PURE__ */ a.jsx(
6600
6603
  qa,
6601
6604
  {
6602
6605
  id: t,
6603
- className: S("overlay-modal", u, {
6606
+ className: E("overlay-modal", u, {
6604
6607
  "has-max-width": r
6605
6608
  }),
6606
6609
  hidden: !p,
6607
- style: _,
6610
+ style: y,
6608
6611
  children: e && /* @__PURE__ */ a.jsx(Jo, { children: /* @__PURE__ */ a.jsxs("div", { className: "overlay-content", children: [
6609
6612
  /* @__PURE__ */ a.jsxs("div", { className: "top", children: [
6610
6613
  c && /* @__PURE__ */ a.jsx("h2", { className: "modal-title", children: c }),
@@ -6614,7 +6617,7 @@ const an = ({
6614
6617
  variant: "tertiary",
6615
6618
  size: "medium",
6616
6619
  icon: { icon: "close" },
6617
- onClick: () => b(!1),
6620
+ onClick: () => _(!1),
6618
6621
  className: "gtm-trackable",
6619
6622
  "data-gtm-event-type": "close-modal-click",
6620
6623
  "data-gtm-event-context": f,
@@ -6659,7 +6662,7 @@ const Jl = ({
6659
6662
  showDivider: !1,
6660
6663
  showIcon: o,
6661
6664
  functions: { onClose: c },
6662
- className: S("invite-modal", t, { success: !!n }),
6665
+ className: E("invite-modal", t, { success: !!n }),
6663
6666
  children: /* @__PURE__ */ a.jsx(
6664
6667
  Yi,
6665
6668
  {
@@ -6835,13 +6838,13 @@ const Xl = ({ members: t }) => {
6835
6838
  gtmEvent: "learning-hub"
6836
6839
  }
6837
6840
  }, tc = ({ data: t, cta: e, link: n, gtmContext: r }) => {
6838
- var v;
6841
+ var v, _;
6839
6842
  const s = H(), [i, o] = X({
6840
6843
  loading: !1,
6841
6844
  registered: t.registered || !1
6842
6845
  });
6843
6846
  ae(() => {
6844
- t.registered && o((b) => ({ ...b, registered: !0 }));
6847
+ t.registered && o((y) => ({ ...y, registered: !0 }));
6845
6848
  }, [t.registered]);
6846
6849
  const { customLinkText: c, startDate: d, dateHasPassed: l, pill: u, slug: f } = t, m = t.contentType;
6847
6850
  let p = "";
@@ -6869,35 +6872,43 @@ const Xl = ({ members: t }) => {
6869
6872
  children: c || s.formatMessage({ id: "card_cta_people" })
6870
6873
  }
6871
6874
  ) : null;
6872
- const g = ["microcourse", "event"];
6875
+ const g = ["communityPage", "microcourse", "event"];
6873
6876
  if (e && e.onClick && g.includes(m) && u !== "premium") {
6874
- const b = i.loading || i.registered, _ = async (x) => {
6875
- if (x.preventDefault(), x.stopPropagation(), !(b || !e || !e.onClick)) {
6876
- o((E) => ({ ...E, loading: !0 }));
6877
+ const y = i.loading || i.registered || ((_ = t == null ? void 0 : t.members) == null ? void 0 : _.isMember), x = async (S) => {
6878
+ if (S.preventDefault(), S.stopPropagation(), !(y || !e || !e.onClick)) {
6879
+ o((w) => ({ ...w, loading: !0 }));
6877
6880
  try {
6878
- const E = await e.onClick(t);
6879
- o(E === "success" ? () => ({ registered: !0, loading: !1 }) : (w) => ({ ...w, loading: !1 }));
6881
+ const w = await e.onClick(t);
6882
+ o(w === "success" ? () => ({ registered: !0, loading: !1 }) : (b) => ({ ...b, loading: !1 }));
6880
6883
  } catch {
6881
- o((w) => ({ ...w, loading: !1 }));
6884
+ o((b) => ({ ...b, loading: !1 }));
6882
6885
  }
6883
6886
  }
6884
6887
  };
6885
- return /* @__PURE__ */ a.jsx("p", { className: "cta-wrapper", children: /* @__PURE__ */ a.jsx(
6886
- se,
6888
+ return /* @__PURE__ */ a.jsx(
6889
+ "p",
6887
6890
  {
6888
- onClick: _,
6889
- className: "gtm-trackable",
6890
- size: "small",
6891
- styling: { fullWidth: !0 },
6892
- disabled: b,
6893
- "data-gtm-event-context": `${r}Page-${m}: ${f}`,
6894
- "data-gtm-event-type": `${r}-${m}-register-click`,
6895
- "data-testid": "in-card-button",
6896
- children: c || s.formatMessage({
6897
- id: `card_cta_${m}${b ? `_${i.loading ? "loading" : "done"}` : ""}`
6898
- })
6891
+ className: E("cta-wrapper", {
6892
+ "has-member-section": t == null ? void 0 : t.members
6893
+ }),
6894
+ children: /* @__PURE__ */ a.jsx(
6895
+ se,
6896
+ {
6897
+ onClick: x,
6898
+ className: "gtm-trackable",
6899
+ size: "small",
6900
+ styling: { fullWidth: !0 },
6901
+ disabled: y,
6902
+ "data-gtm-event-context": `${r}Page-${m}: ${f}`,
6903
+ "data-gtm-event-type": `${r}-${m}-register-click`,
6904
+ "data-testid": "in-card-button",
6905
+ children: c || s.formatMessage({
6906
+ id: `card_cta_${m}${y ? `_${i.loading ? "loading" : "done"}` : ""}`
6907
+ })
6908
+ }
6909
+ )
6899
6910
  }
6900
- ) });
6911
+ );
6901
6912
  }
6902
6913
  return null;
6903
6914
  };
@@ -6943,25 +6954,25 @@ const nc = {
6943
6954
  if (!v || !Kt[v])
6944
6955
  return /* @__PURE__ */ a.jsx(Se, { element: "li", className: "card-wrapper" });
6945
6956
  const {
6946
- basePath: b = "",
6947
- className: _,
6957
+ basePath: _ = "",
6958
+ className: y,
6948
6959
  length: x,
6949
- gtmEvent: E
6960
+ gtmEvent: S
6950
6961
  } = Kt[v];
6951
- let w = m.slug ? `${b}${m.slug}` : !1;
6962
+ let w = m.slug ? `${_}${m.slug}` : !1;
6952
6963
  m.slug && (m.slug.slice(0, 4) === "http" || m.slug.slice(0, 2) === "//" || m.slug.slice(0, 6) === "mailto" || m.slug.slice(0, 3) === "tel") && (w = m.slug);
6953
- const y = { ...nc, ...x };
6964
+ const b = { ...nc, ...x };
6954
6965
  let F = { className: "card" };
6955
6966
  return w && (F = {
6956
6967
  href: w,
6957
6968
  className: "card gtm-trackable",
6958
6969
  "data-gtm-event-context": `${s}-CarouselCard`,
6959
- "data-gtm-event-type": `${E}-click`,
6970
+ "data-gtm-event-type": `${S}-click`,
6960
6971
  "data-testid": "link"
6961
6972
  }, m.openInNewTab && (F.target = "_blank")), /* @__PURE__ */ a.jsx(
6962
6973
  "li",
6963
6974
  {
6964
- className: S("card-wrapper text-medium", _, i, {
6975
+ className: E("card-wrapper text-medium", y, i, {
6965
6976
  "has-link": w,
6966
6977
  "no-link": !w,
6967
6978
  "has-image": m.banner
@@ -6992,7 +7003,7 @@ const nc = {
6992
7003
  m.banner ? /* @__PURE__ */ a.jsxs("p", { className: "img", children: [
6993
7004
  m.registered && /* @__PURE__ */ a.jsx(ht, { size: "small", variant: "registered", children: c.formatMessage({ id: "card_registered" }) }),
6994
7005
  /* @__PURE__ */ a.jsx(Tt, { image: m.banner })
6995
- ] }) : _ === "people" ? /* @__PURE__ */ a.jsx(
7006
+ ] }) : y === "people" ? /* @__PURE__ */ a.jsx(
6996
7007
  Ye,
6997
7008
  {
6998
7009
  name: m.title || "",
@@ -7006,7 +7017,7 @@ const nc = {
7006
7017
  contributors: { data: m.contributors },
7007
7018
  styling: {
7008
7019
  size: "small",
7009
- showGap: _ !== "question",
7020
+ showGap: y !== "question",
7010
7021
  showText: !0
7011
7022
  },
7012
7023
  multipleText: ["event", "solutionArticle"].includes(v) ? c.formatMessage({ id: `card_contributors_${v}` }) : void 0,
@@ -7016,14 +7027,14 @@ const nc = {
7016
7027
  m.partner && /* @__PURE__ */ a.jsx("p", { className: "partners", "data-testid": "partners", children: m.partner.length > 1 ? c.formatMessage(
7017
7028
  { id: "card_partner" },
7018
7029
  { partner: m.partner[0], number: m.partner.length - 1 }
7019
- ) : et(m.partner[0], y.partner) }),
7030
+ ) : et(m.partner[0], b.partner) }),
7020
7031
  /* Text */
7021
7032
  ["title", "text", "secondaryText"].map(($) => {
7022
7033
  const C = m[$];
7023
7034
  if (!C)
7024
7035
  return null;
7025
7036
  const k = Ws($);
7026
- return /* @__PURE__ */ a.jsx("p", { className: k, "data-testid": k, children: et(C, y[$]) }, $);
7037
+ return /* @__PURE__ */ a.jsx("p", { className: k, "data-testid": k, children: et(C, b[$]) }, $);
7027
7038
  }),
7028
7039
  (m == null ? void 0 : m.members) && /* @__PURE__ */ a.jsxs("span", { className: "member-information", children: [
7029
7040
  ((R = m == null ? void 0 : m.members) == null ? void 0 : R.isMember) && /* @__PURE__ */ a.jsx(
@@ -7043,14 +7054,14 @@ const nc = {
7043
7054
  { count: m == null ? void 0 : m.members.count }
7044
7055
  ) })
7045
7056
  ] }),
7046
- /* @__PURE__ */ a.jsx(ec, { type: _ || "", data: m }),
7057
+ /* @__PURE__ */ a.jsx(ec, { type: y || "", data: m }),
7047
7058
  /* @__PURE__ */ a.jsx(tc, { data: m, cta: r, link: w || "", gtmContext: s })
7048
7059
  ] })
7049
7060
  )
7050
7061
  }
7051
7062
  );
7052
7063
  };
7053
- const rc = ({ cards: t, cardTypes: e, className: n = "", ...r }) => /* @__PURE__ */ a.jsx("ul", { className: S("card-block", n), children: t.map((s, i) => {
7064
+ const rc = ({ cards: t, cardTypes: e, className: n = "", ...r }) => /* @__PURE__ */ a.jsx("ul", { className: E("card-block", n), children: t.map((s, i) => {
7054
7065
  const o = s.slug ? `${s.slug}-${e[i]}` : `${e[i]}-${i}`;
7055
7066
  return /* @__PURE__ */ a.jsx(
7056
7067
  Ua,
@@ -7070,7 +7081,7 @@ const rc = ({ cards: t, cardTypes: e, className: n = "", ...r }) => /* @__PURE__
7070
7081
  return null;
7071
7082
  const { text: r, element: s = "h2", variant: i = "default", size: o = "medium", link: c } = e;
7072
7083
  return Y.createElement(s, {
7073
- className: S("title", i, o, {
7084
+ className: E("title", i, o, {
7074
7085
  "highlighted-title": i === "highlighted"
7075
7086
  }),
7076
7087
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
@@ -7110,16 +7121,16 @@ const ic = ({
7110
7121
  }), { cardsPerPage: f, isLoading: m } = l, [p, g] = X({
7111
7122
  currentPage: 0,
7112
7123
  loadedPages: [0]
7113
- }), { currentPage: v, loadedPages: b } = p, _ = e.length, x = Math.ceil(_ / f), E = pe(null), w = jt(!0, !0, E == null ? void 0 : E.current);
7124
+ }), { currentPage: v, loadedPages: _ } = p, y = e.length, x = Math.ceil(y / f), S = pe(null), w = jt(!0, !0, S == null ? void 0 : S.current);
7114
7125
  ae(() => {
7115
7126
  let $ = 1;
7116
- w && (w >= En.fourCards ? $ = 4 : w >= En.threeCards ? $ = 3 : w >= En.twoCards && ($ = 2), $ > _ && ($ = _)), u((C) => ({
7127
+ w && (w >= En.fourCards ? $ = 4 : w >= En.threeCards ? $ = 3 : w >= En.twoCards && ($ = 2), $ > y && ($ = y)), u((C) => ({
7117
7128
  ...C,
7118
7129
  cardsPerPage: $,
7119
7130
  isLoading: !1
7120
7131
  }));
7121
- }, [w, _]);
7122
- const y = ($ = "next") => {
7132
+ }, [w, y]);
7133
+ const b = ($ = "next") => {
7123
7134
  let C = v;
7124
7135
  if (typeof $ == "string")
7125
7136
  if ($ === "next")
@@ -7136,7 +7147,7 @@ const ic = ({
7136
7147
  g((k) => ({
7137
7148
  ...k,
7138
7149
  currentPage: C,
7139
- loadedPages: [.../* @__PURE__ */ new Set([...b, C])]
7150
+ loadedPages: [.../* @__PURE__ */ new Set([..._, C])]
7140
7151
  }));
7141
7152
  }, F = ($) => {
7142
7153
  Ft = $.touches[0].clientX;
@@ -7144,10 +7155,10 @@ const ic = ({
7144
7155
  if (Ft === null)
7145
7156
  return;
7146
7157
  const C = $.touches[0].clientX, k = Ft - C;
7147
- k > 5 ? y("next") : k < -5 && y("previous"), Ft = null;
7158
+ k > 5 ? b("next") : k < -5 && b("previous"), Ft = null;
7148
7159
  }, Q = {
7149
7160
  "--width": `${w || 0}px`,
7150
- "--total-cards": _,
7161
+ "--total-cards": y,
7151
7162
  "--cards-per-page": f,
7152
7163
  "--page": v
7153
7164
  };
@@ -7161,8 +7172,8 @@ const ic = ({
7161
7172
  return /* @__PURE__ */ a.jsxs(
7162
7173
  "section",
7163
7174
  {
7164
- ref: E,
7165
- className: S("carousel-wrapper", i),
7175
+ ref: S,
7176
+ className: E("carousel-wrapper", i),
7166
7177
  "data-testid": "carousel",
7167
7178
  children: [
7168
7179
  /* @__PURE__ */ a.jsx(sc, { id: t, title: s }),
@@ -7176,7 +7187,7 @@ const ic = ({
7176
7187
  "data-testid": "carousel-list",
7177
7188
  children: e.map(($, C) => {
7178
7189
  let k = B($, C);
7179
- return k && ac(C, f, v, b) ? /* @__PURE__ */ a.jsx(
7190
+ return k && ac(C, f, v, _) ? /* @__PURE__ */ a.jsx(
7180
7191
  Ua,
7181
7192
  {
7182
7193
  id: k,
@@ -7206,7 +7217,7 @@ const ic = ({
7206
7217
  size: "large",
7207
7218
  icon: { icon: "chevron_left" },
7208
7219
  onClick: ($) => {
7209
- $.preventDefault(), $.stopPropagation(), y("previous");
7220
+ $.preventDefault(), $.stopPropagation(), b("previous");
7210
7221
  },
7211
7222
  screenreaderText: d.formatMessage({
7212
7223
  id: "carousel_pagination_previous"
@@ -7217,11 +7228,11 @@ const ic = ({
7217
7228
  [...Array(x)].map(($, C) => /* @__PURE__ */ a.jsx("li", { "data-testid": "carousel-controls-button", children: /* @__PURE__ */ a.jsx(
7218
7229
  "button",
7219
7230
  {
7220
- className: S("page-indicator", {
7231
+ className: E("page-indicator", {
7221
7232
  selected: C === v
7222
7233
  }),
7223
7234
  onClick: (k) => {
7224
- k.preventDefault(), k.stopPropagation(), y(C);
7235
+ k.preventDefault(), k.stopPropagation(), b(C);
7225
7236
  },
7226
7237
  children: /* @__PURE__ */ a.jsx(be, { showOnFocus: !1, children: d.formatMessage(
7227
7238
  { id: "carousel_pagination_page" },
@@ -7236,7 +7247,7 @@ const ic = ({
7236
7247
  size: "large",
7237
7248
  icon: { icon: "chevron_right" },
7238
7249
  onClick: ($) => {
7239
- $.preventDefault(), $.stopPropagation(), y("next");
7250
+ $.preventDefault(), $.stopPropagation(), b("next");
7240
7251
  },
7241
7252
  screenreaderText: d.formatMessage({ id: "carousel_pagination_next" }),
7242
7253
  disabled: v >= x - 1
@@ -7300,7 +7311,7 @@ const Sn = "joinCommunityButton", Wa = ({
7300
7311
  onClick: async (p) => {
7301
7312
  o && (p.currentTarget.blur(), c ? (u("leaving"), typeof r == "function" && await r()) : (u("joining"), typeof n == "function" && await n()), d(!c));
7302
7313
  },
7303
- className: S("join-community-button", l, {
7314
+ className: E("join-community-button", l, {
7304
7315
  active: l === "joining"
7305
7316
  }),
7306
7317
  disabled: !o,
@@ -7319,7 +7330,7 @@ const Cn = "communityDetails_", tu = ({
7319
7330
  functions: { invite: i, ...o }
7320
7331
  }) => {
7321
7332
  const c = H(), d = 5, l = r || s.length, u = s.length ? s : Array(d).fill({}), f = `/communities/${n}/members` === window.location.pathname;
7322
- return /* @__PURE__ */ a.jsxs("div", { className: S("community-details", t), children: [
7333
+ return /* @__PURE__ */ a.jsxs("div", { className: E("community-details", t), children: [
7323
7334
  /* @__PURE__ */ a.jsx(Oe, {}),
7324
7335
  /* @__PURE__ */ a.jsxs("div", { className: "member-details", children: [
7325
7336
  /* @__PURE__ */ a.jsxs("div", { className: "top", children: [
@@ -7368,7 +7379,7 @@ const nu = ({ breadcrumbs: t, cutoff: e = 20, className: n = "" }) => {
7368
7379
  children: r.formatMessage({ id: "breadcrumbs_label" })
7369
7380
  }
7370
7381
  ),
7371
- /* @__PURE__ */ a.jsx("ul", { className: S("breadcrumbs text-small", n), children: t.map(
7382
+ /* @__PURE__ */ a.jsx("ul", { className: E("breadcrumbs text-small", n), children: t.map(
7372
7383
  ({ text: s, href: i, current: o = !1 }, c) => /* @__PURE__ */ a.jsxs("li", { children: [
7373
7384
  o && /* @__PURE__ */ a.jsx(
7374
7385
  be,
@@ -7400,7 +7411,7 @@ const ru = ({
7400
7411
  let m = [];
7401
7412
  c.includes(u) ? m = c.filter((p) => p !== u) : u === "all" ? m = ["all"] : n ? m = [...c.filter((p) => p !== "all"), u] : m = [u], d((p) => (r && typeof r == "function" && r({ current: m, previous: p }), m)), f && typeof f == "function" && f();
7402
7413
  };
7403
- return /* @__PURE__ */ a.jsx("ul", { className: S("filters", s), children: o.map(({ id: u, text: f, disabled: m = !1, callback: p = () => {
7414
+ return /* @__PURE__ */ a.jsx("ul", { className: E("filters", s), children: o.map(({ id: u, text: f, disabled: m = !1, callback: p = () => {
7404
7415
  } }) => {
7405
7416
  let g = {};
7406
7417
  return m && (g = {
@@ -7409,7 +7420,7 @@ const ru = ({
7409
7420
  }), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
7410
7421
  "button",
7411
7422
  {
7412
- className: S(u, { selected: c.includes(u) }),
7423
+ className: E(u, { selected: c.includes(u) }),
7413
7424
  onClick: (v) => {
7414
7425
  v.preventDefault(), v.stopPropagation(), l(u, p);
7415
7426
  },
@@ -7446,38 +7457,38 @@ const Ot = "languageSwitcher_", au = ({
7446
7457
  if (ae(() => {
7447
7458
  t !== f && m(t);
7448
7459
  }, [t]), !r || !Object.values(r).some(
7449
- (b) => b && b.post_name
7460
+ (_) => _ && _.post_name
7450
7461
  ))
7451
7462
  return null;
7452
7463
  const g = Object.keys(r), v = f !== t;
7453
- return /* @__PURE__ */ a.jsxs("div", { className: S("language-switcher text-small", o, d), children: [
7464
+ return /* @__PURE__ */ a.jsxs("div", { className: E("language-switcher text-small", o, d), children: [
7454
7465
  /* @__PURE__ */ a.jsxs("nav", { children: [
7455
7466
  o !== "short" && /* @__PURE__ */ a.jsx("p", { children: c || l.formatMessage({ id: `${Ot}label` }) }),
7456
- /* @__PURE__ */ a.jsx("ul", { children: g.map((b) => {
7457
- var E;
7458
- if (!gn[b])
7467
+ /* @__PURE__ */ a.jsx("ul", { children: g.map((_) => {
7468
+ var S;
7469
+ if (!gn[_])
7459
7470
  return null;
7460
- const _ = (E = r[b]) == null ? void 0 : E.post_name;
7461
- let x = { className: b };
7462
- if (f === b)
7471
+ const y = (S = r[_]) == null ? void 0 : S.post_name;
7472
+ let x = { className: _ };
7473
+ if (f === _)
7463
7474
  x["aria-label"] = l.formatMessage(
7464
7475
  { id: `${Ot}selected` },
7465
- { language: gn[b] }
7476
+ { language: gn[_] }
7466
7477
  );
7467
7478
  else {
7468
- const w = oc(b, _, i);
7479
+ const w = oc(_, y, i);
7469
7480
  x = {
7470
7481
  ...x,
7471
7482
  href: typeof w == "string" ? w : w.url,
7472
- onClick: (y) => {
7473
- m(b), u(b), typeof s < "u" && (y.preventDefault(), y.stopPropagation(), s(
7474
- b,
7483
+ onClick: (b) => {
7484
+ m(_), u(_), typeof s < "u" && (b.preventDefault(), b.stopPropagation(), s(
7485
+ _,
7475
7486
  typeof w == "string" ? w : w.urlForRouter
7476
7487
  ));
7477
7488
  }
7478
7489
  };
7479
7490
  }
7480
- return /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(at, { ...x, fallbackElement: "span", children: gn[b] }) }, b);
7491
+ return /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(at, { ...x, fallbackElement: "span", children: gn[_] }) }, _);
7481
7492
  }) }),
7482
7493
  o !== "short" && !v && /* @__PURE__ */ a.jsx("p", { children: l.formatMessage({
7483
7494
  id: `${Ot}translation_${e ? "original" : n ? "human" : "machine"}`
@@ -7491,9 +7502,9 @@ const Ot = "languageSwitcher_", au = ({
7491
7502
  { id: `${Ot}disclaimer` },
7492
7503
  {
7493
7504
  email: ft.support,
7494
- link: (b) => {
7495
- const _ = `mailto:${b}`;
7496
- return /* @__PURE__ */ a.jsx("a", { href: _, children: b });
7505
+ link: (_) => {
7506
+ const y = `mailto:${_}`;
7507
+ return /* @__PURE__ */ a.jsx("a", { href: y, children: _ });
7497
7508
  }
7498
7509
  }
7499
7510
  )
@@ -7525,7 +7536,7 @@ const $n = ks({ locale: "en", messages: rt }), sn = ({
7525
7536
  g instanceof Error ? f(g.message) : f("Unknown error");
7526
7537
  }
7527
7538
  };
7528
- return !u && !t && !c.endOfFeed ? null : /* @__PURE__ */ a.jsx("footer", { className: S("load-more", d), children: !u && t ? /* @__PURE__ */ a.jsx(
7539
+ return !u && !t && !c.endOfFeed ? null : /* @__PURE__ */ a.jsx("footer", { className: E("load-more", d), children: !u && t ? /* @__PURE__ */ a.jsx(
7529
7540
  se,
7530
7541
  {
7531
7542
  variant: r,
@@ -7551,7 +7562,7 @@ const za = ({
7551
7562
  "a",
7552
7563
  {
7553
7564
  href: "/home/",
7554
- className: S("logo", t, e, n),
7565
+ className: E("logo", t, e, n),
7555
7566
  ...r,
7556
7567
  children: /* @__PURE__ */ a.jsx(be, { children: /* @__PURE__ */ a.jsx(ye, { id: "apolitical" }) })
7557
7568
  }
@@ -7572,7 +7583,7 @@ const cc = ({
7572
7583
  document.removeEventListener("click", d, !0);
7573
7584
  })), Y.createElement(t, {
7574
7585
  ref: i,
7575
- className: S("more-menu text-medium", r),
7586
+ className: E("more-menu text-medium", r),
7576
7587
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
7577
7588
  /* @__PURE__ */ a.jsx(
7578
7589
  se,
@@ -7590,8 +7601,8 @@ const cc = ({
7590
7601
  /* @__PURE__ */ a.jsx("ul", { id: e, hidden: !o, children: n.map(({ href: l, onClick: u, text: f, icon: m, ...p }, g) => {
7591
7602
  const v = {
7592
7603
  ...p,
7593
- onClick: (b) => {
7594
- c(!1), typeof u == "function" && u(b);
7604
+ onClick: (_) => {
7605
+ c(!1), typeof u == "function" && u(_);
7595
7606
  },
7596
7607
  onFocus: () => {
7597
7608
  At && (clearTimeout(At), At = !1);
@@ -7643,7 +7654,7 @@ const uc = [
7643
7654
  uc.map(({ key: s, href: i }) => /* @__PURE__ */ a.jsx(
7644
7655
  "li",
7645
7656
  {
7646
- className: S(s, { active: lc(i, t) }),
7657
+ className: E(s, { active: lc(i, t) }),
7647
7658
  children: /* @__PURE__ */ a.jsx(
7648
7659
  "a",
7649
7660
  {
@@ -7730,7 +7741,7 @@ const mc = "shareLinks_", su = ({
7730
7741
  className: o = ""
7731
7742
  }) => {
7732
7743
  const c = H(), d = fc({ title: t, link: e, referrer: n });
7733
- return /* @__PURE__ */ a.jsxs("aside", { className: S("share-links", s, i, o), children: [
7744
+ return /* @__PURE__ */ a.jsxs("aside", { className: E("share-links", s, i, o), children: [
7734
7745
  /* @__PURE__ */ a.jsx("p", { className: "text-small", children: c.formatMessage({ id: "shareLinks_label" }) }),
7735
7746
  /* @__PURE__ */ a.jsx("ul", { children: d.map(({ key: l, icon: u, url: f, shouldRender: m = !0, onClick: p }) => {
7736
7747
  if (typeof m == "function" && !m())
@@ -7784,18 +7795,18 @@ const iu = ({ tabs: t, className: e = "", preventLocationChange: n }) => {
7784
7795
  const c = [], d = [];
7785
7796
  return t.forEach(({ id: u, text: f, content: m, href: p, hasCarousel: g }, v) => {
7786
7797
  u = r(u, f, v);
7787
- const b = i === u, _ = {};
7788
- p || (_["aria-controls"] = u, _.onClick = (x) => {
7798
+ const _ = i === u, y = {};
7799
+ p || (y["aria-controls"] = u, y.onClick = (x) => {
7789
7800
  x.preventDefault(), x.stopPropagation(), o(u), !n && (window.location.hash = `#${u}`);
7790
7801
  }, d.push(
7791
7802
  /* @__PURE__ */ a.jsx(
7792
7803
  "section",
7793
7804
  {
7794
7805
  id: u,
7795
- hidden: !b,
7806
+ hidden: !_,
7796
7807
  role: "tabpanel",
7797
7808
  "aria-labelledby": `tab-${u}`,
7798
- "aria-live": b ? "assertive" : "off",
7809
+ "aria-live": _ ? "assertive" : "off",
7799
7810
  children: typeof m == "string" ? /* @__PURE__ */ a.jsx("p", { children: m }) : m
7800
7811
  },
7801
7812
  `section-${u}`
@@ -7806,15 +7817,15 @@ const iu = ({ tabs: t, className: e = "", preventLocationChange: n }) => {
7806
7817
  {
7807
7818
  href: p || `#${u}`,
7808
7819
  id: `tab-${u}`,
7809
- className: S({ selected: b }),
7820
+ className: E({ selected: _ }),
7810
7821
  role: "tab",
7811
- "aria-selected": b,
7812
- ..._,
7822
+ "aria-selected": _,
7823
+ ...y,
7813
7824
  children: f
7814
7825
  }
7815
7826
  ) }, `tab-${u}`)
7816
7827
  );
7817
- }), /* @__PURE__ */ a.jsxs("div", { className: S("tabs-wrapper", e), children: [
7828
+ }), /* @__PURE__ */ a.jsxs("div", { className: E("tabs-wrapper", e), children: [
7818
7829
  /* @__PURE__ */ a.jsx("ul", { className: "tabs", role: "tablist", children: c }),
7819
7830
  /* @__PURE__ */ a.jsx("div", { className: "tab-content", children: d })
7820
7831
  ] });
@@ -7835,7 +7846,7 @@ const pc = {
7835
7846
  return Y.Children.count(s) === 1 && (o = Y.Children.toArray(s)[0], o.props && (o = o.props.children)), /* @__PURE__ */ a.jsx(
7836
7847
  "section",
7837
7848
  {
7838
- className: S("columns", `layout-${t}`, r, {
7849
+ className: E("columns", `layout-${t}`, r, {
7839
7850
  "has-containers": n
7840
7851
  }),
7841
7852
  children: Y.Children.map(o, (c, d) => e !== !1 && d === e && i && i < pc[t] ? null : c)
@@ -8318,8 +8329,8 @@ const Xe = "footer_", Gt = "SiteFooter", Kr = ({ group: t }) => {
8318
8329
  if (c.href) {
8319
8330
  let x = c.gtmType || `${t}-click`;
8320
8331
  if (x.includes(".")) {
8321
- const E = x.split("."), w = E[E.length - 2];
8322
- x = `${w === "topics" ? `${w}-` : ""}${E[E.length - 1]}`;
8332
+ const S = x.split("."), w = S[S.length - 2];
8333
+ x = `${w === "topics" ? `${w}-` : ""}${S[S.length - 1]}`;
8323
8334
  }
8324
8335
  m = {
8325
8336
  href: c.href,
@@ -8337,17 +8348,17 @@ const Xe = "footer_", Gt = "SiteFooter", Kr = ({ group: t }) => {
8337
8348
  });
8338
8349
  }
8339
8350
  const p = c.order && c.order[0] && c[c.order[0]], g = p && c[c.order[0]].order, v = m && window.location.pathname === c.href;
8340
- let b = {}, _ = {};
8351
+ let _ = {}, y = {};
8341
8352
  if (p) {
8342
- const x = c.menuId || t, E = {
8353
+ const x = c.menuId || t, S = {
8343
8354
  onClick: (w) => fe.events.onClick(w, { id: x, callback: s, isOpen: r[x] }),
8344
8355
  onFocus: () => fe.events.onFocus({ id: x }),
8345
8356
  onBlur: () => fe.events.onBlur({ id: x, callback: s }),
8346
8357
  onMouseLeave: () => fe.events.onBlur({ id: x, callback: s }),
8347
8358
  onMouseEnter: () => fe.events.onMouseEnter({ id: x, callback: s })
8348
8359
  };
8349
- n && (g && (b = {
8350
- ...E,
8360
+ n && (g && (_ = {
8361
+ ...S,
8351
8362
  onKeyPress: (w) => {
8352
8363
  w.key === "Enter" && fe.events.onClick(w, { id: x, callback: s, isOpen: r[x] });
8353
8364
  },
@@ -8356,32 +8367,32 @@ const Xe = "footer_", Gt = "SiteFooter", Kr = ({ group: t }) => {
8356
8367
  "aria-haspopup": !0,
8357
8368
  "aria-expanded": r[x],
8358
8369
  "aria-controls": x
8359
- }), _ = { hidden: x in r ? !r[x] : !0 }), g || (_ = {
8360
- ..._,
8361
- ...E
8370
+ }), y = { hidden: x in r ? !r[x] : !0 }), g || (y = {
8371
+ ...y,
8372
+ ...S
8362
8373
  });
8363
8374
  }
8364
8375
  return /* @__PURE__ */ a.jsxs(
8365
8376
  "li",
8366
8377
  {
8367
- className: S({
8378
+ className: E({
8368
8379
  [c.className]: c.className,
8369
8380
  "has-submenu": p,
8370
8381
  parent: g,
8371
8382
  active: v
8372
8383
  }),
8373
8384
  role: "none",
8374
- ...b,
8385
+ ..._,
8375
8386
  children: [
8376
8387
  m ? Y.createElement(
8377
8388
  u ? se : "a",
8378
8389
  m,
8379
8390
  o.formatMessage({ id: f })
8380
8391
  ) : o.formatMessage({ id: f }),
8381
- c.order && /* @__PURE__ */ a.jsx("ul", { ..._, children: c.order.map((x) => {
8392
+ c.order && /* @__PURE__ */ a.jsx("ul", { ...y, children: c.order.map((x) => {
8382
8393
  if (!c[x])
8383
8394
  return null;
8384
- const E = {
8395
+ const S = {
8385
8396
  isLoggedIn: e,
8386
8397
  isDesktopVersion: n,
8387
8398
  menus: r,
@@ -8391,7 +8402,7 @@ const Xe = "footer_", Gt = "SiteFooter", Kr = ({ group: t }) => {
8391
8402
  return c[x].order ? /* @__PURE__ */ a.jsxs(
8392
8403
  "li",
8393
8404
  {
8394
- className: S({
8405
+ className: E({
8395
8406
  [c[x].className]: c[x].className
8396
8407
  }),
8397
8408
  children: [
@@ -8400,7 +8411,7 @@ const Xe = "footer_", Gt = "SiteFooter", Kr = ({ group: t }) => {
8400
8411
  Jt,
8401
8412
  {
8402
8413
  id: `${t}.${x}.${w}`,
8403
- ...E
8414
+ ...S
8404
8415
  },
8405
8416
  w
8406
8417
  )) })
@@ -8411,7 +8422,7 @@ const Xe = "footer_", Gt = "SiteFooter", Kr = ({ group: t }) => {
8411
8422
  Jt,
8412
8423
  {
8413
8424
  id: `${t}.${x}`,
8414
- ...E
8425
+ ...S
8415
8426
  },
8416
8427
  x
8417
8428
  );
@@ -8468,7 +8479,7 @@ const vc = { height: 67, height_desktop: 83 }, Ha = ({ showNavigation: t = !0 })
8468
8479
  "nav",
8469
8480
  {
8470
8481
  id: "header",
8471
- className: S({
8482
+ className: E({
8472
8483
  "logged-in": s,
8473
8484
  "logged-out": !s,
8474
8485
  visible: d
@@ -8590,7 +8601,7 @@ const vc = { height: 67, height_desktop: 83 }, Ha = ({ showNavigation: t = !0 })
8590
8601
  /* @__PURE__ */ a.jsx(
8591
8602
  "div",
8592
8603
  {
8593
- className: S("overlay", {
8604
+ className: E("overlay", {
8594
8605
  open: l.navigation || l.account || !i.search && l.search
8595
8606
  })
8596
8607
  }
@@ -8628,35 +8639,35 @@ const bc = () => {
8628
8639
  ae(() => {
8629
8640
  window.scrollTo(0, 0);
8630
8641
  }, [g]);
8631
- const v = Bt(t, { locale: c }), b = Bt(e, {
8642
+ const v = Bt(t, { locale: c }), _ = Bt(e, {
8632
8643
  locale: c
8633
- }), _ = Bt(n, {
8644
+ }), y = Bt(n, {
8634
8645
  locale: c
8635
8646
  }), x = {};
8636
8647
  return u !== "default" && (x[u] = !0), f !== "default" && (x[f] = !0), m !== "default" && (x[m] = !0), /* @__PURE__ */ a.jsx(Ps, { onError: r, fallback: /* @__PURE__ */ a.jsx(bc, {}), children: /* @__PURE__ */ a.jsx(xs, { fallback: null, children: /* @__PURE__ */ a.jsxs(
8637
8648
  "div",
8638
8649
  {
8639
8650
  id: "wrapper",
8640
- className: S(o, x, { "has-footer": l }),
8651
+ className: E(o, x, { "has-footer": l }),
8641
8652
  children: [
8642
8653
  /* @__PURE__ */ a.jsx(Ha, { showNavigation: d }),
8643
8654
  /* @__PURE__ */ a.jsxs("section", { id: "content-wrapper", children: [
8644
- b && /* @__PURE__ */ a.jsx(
8655
+ _ && /* @__PURE__ */ a.jsx(
8645
8656
  "div",
8646
8657
  {
8647
- className: S("additional-content prepended", {
8658
+ className: E("additional-content prepended", {
8648
8659
  "large-modal": p === "large"
8649
8660
  }),
8650
- children: b
8661
+ children: _
8651
8662
  }
8652
8663
  ),
8653
8664
  Y.createElement(u === "bold" ? qa : "div", {
8654
8665
  id: "content",
8655
8666
  children: v,
8656
- className: S({ "large-modal": p === "large" })
8667
+ className: E({ "large-modal": p === "large" })
8657
8668
  })
8658
8669
  ] }),
8659
- _ && /* @__PURE__ */ a.jsx("div", { className: "additional-content appended", children: _ }),
8670
+ y && /* @__PURE__ */ a.jsx("div", { className: "additional-content appended", children: y }),
8660
8671
  l && /* @__PURE__ */ a.jsx(Za, {}),
8661
8672
  /* @__PURE__ */ a.jsx(gc, {})
8662
8673
  ]
@@ -8714,7 +8725,7 @@ const lu = ({
8714
8725
  }), d.length < 1 ? null : /* @__PURE__ */ a.jsx(
8715
8726
  "ul",
8716
8727
  {
8717
- className: S("tags text-small", e, s, {
8728
+ className: E("tags text-small", e, s, {
8718
8729
  "one-line": n
8719
8730
  }),
8720
8731
  children: d.map((l) => {
@@ -8743,7 +8754,7 @@ const uu = ({
8743
8754
  className: o = ""
8744
8755
  }) => {
8745
8756
  const c = H();
8746
- return t.length === 0 ? null : /* @__PURE__ */ a.jsxs("div", { className: S("members-list", o), children: [
8757
+ return t.length === 0 ? null : /* @__PURE__ */ a.jsxs("div", { className: E("members-list", o), children: [
8747
8758
  /* @__PURE__ */ a.jsxs("h1", { children: [
8748
8759
  c.formatMessage({ id: "membersList" }),
8749
8760
  /* @__PURE__ */ a.jsx("span", { className: "count", children: e })
@@ -8779,7 +8790,7 @@ const du = ({
8779
8790
  l > 99 ? l = 100 : l < 1 && (l = 0);
8780
8791
  const { highlightPercentage: u = !1 } = o;
8781
8792
  return Y.createElement(t, {
8782
- className: S("course-progression", c, {
8793
+ className: E("course-progression", c, {
8783
8794
  "highlight-percentage": u,
8784
8795
  "has-circle-graph": i === "circle"
8785
8796
  }),
@@ -8818,7 +8829,7 @@ const xc = ({
8818
8829
  title: r,
8819
8830
  className: s = ""
8820
8831
  }) => Y.createElement(t, {
8821
- className: S("lesson-name", s),
8832
+ className: E("lesson-name", s),
8822
8833
  "data-number": `${e}.${n}`,
8823
8834
  children: r
8824
8835
  });
@@ -8831,8 +8842,8 @@ const wc = ({
8831
8842
  children: i
8832
8843
  }) => {
8833
8844
  const o = H(), c = Qn(`lessonType_${s}`) ? o.formatMessage({ id: `lessonType_${s}` }) : Zs(s || "");
8834
- return /* @__PURE__ */ a.jsxs("small", { className: S("content-type", { [t]: t !== "default" }), children: [
8835
- /* @__PURE__ */ a.jsx("span", { className: S("type", n), children: c }),
8845
+ return /* @__PURE__ */ a.jsxs("small", { className: E("content-type", { [t]: t !== "default" }), children: [
8846
+ /* @__PURE__ */ a.jsx("span", { className: E("type", n), children: c }),
8836
8847
  " ",
8837
8848
  e > 0 && !r && /* @__PURE__ */ a.jsx(Xn, { time: e }),
8838
8849
  " ",
@@ -8883,32 +8894,32 @@ const fu = ({
8883
8894
  ({
8884
8895
  completed: g,
8885
8896
  completionTime: v,
8886
- contentType: b,
8887
- icon: _,
8897
+ contentType: _,
8898
+ icon: y,
8888
8899
  image: x,
8889
- isIntroduction: E,
8900
+ isIntroduction: S,
8890
8901
  optional: w,
8891
- slug: y,
8902
+ slug: b,
8892
8903
  subsectionId: F,
8893
8904
  title: R,
8894
8905
  type: Q
8895
8906
  }) => {
8896
- const B = s && e || E, $ = {};
8907
+ const B = s && e || S, $ = {};
8897
8908
  return x && ($.style = { "--image": `url(${x})` }), /* @__PURE__ */ a.jsx(
8898
8909
  "li",
8899
8910
  {
8900
- className: S({
8901
- article: b === St.ARTICLE,
8902
- discussion: b === St.DISCUSSION,
8903
- quiz: b === St.QUIZ,
8904
- completed: g && b === St.ARTICLE,
8911
+ className: E({
8912
+ article: _ === St.ARTICLE,
8913
+ discussion: _ === St.DISCUSSION,
8914
+ quiz: _ === St.QUIZ,
8915
+ completed: g && _ === St.ARTICLE,
8905
8916
  locked: !B
8906
8917
  }),
8907
8918
  ...$,
8908
8919
  children: /* @__PURE__ */ a.jsx(
8909
8920
  at,
8910
8921
  {
8911
- href: B ? `/microcourses/en/${c}/${y}` : void 0,
8922
+ href: B ? `/microcourses/en/${c}/${b}` : void 0,
8912
8923
  fallbackElement: "span",
8913
8924
  className: "inner",
8914
8925
  gtmContext: `MicrocourseOutline${zs(R)}`,
@@ -8928,17 +8939,17 @@ const fu = ({
8928
8939
  wc,
8929
8940
  {
8930
8941
  completionTime: v,
8931
- icon: _,
8942
+ icon: y,
8932
8943
  optional: w,
8933
8944
  type: Q,
8934
- children: u && u[y] && /* @__PURE__ */ a.jsx("span", { className: "quiz-score", children: `${u[y]}%` })
8945
+ children: u && u[b] && /* @__PURE__ */ a.jsx("span", { className: "quiz-score", children: `${u[b]}%` })
8935
8946
  }
8936
8947
  )
8937
8948
  ] })
8938
8949
  }
8939
8950
  )
8940
8951
  },
8941
- y
8952
+ b
8942
8953
  );
8943
8954
  }
8944
8955
  ) })
@@ -8962,7 +8973,7 @@ const mu = ({
8962
8973
  hover: "check-inside-circle_no-overlap_inverted"
8963
8974
  },
8964
8975
  onClick: e,
8965
- className: S("mark-complete-button center gtm-trackable", {
8976
+ className: E("mark-complete-button center gtm-trackable", {
8966
8977
  completed: t
8967
8978
  }),
8968
8979
  "data-gtm-event-type": "mark-as-complete",
@@ -9008,7 +9019,7 @@ const we = "discussion_form_", ar = ({
9008
9019
  var $, C, k;
9009
9020
  const u = H(), f = Ee(De), [m, p] = X(
9010
9021
  n.isEditing && n.isEditing.text || ""
9011
- ), [g, v] = X(c.error || !1), [b, _] = X(!1), x = pe(null);
9022
+ ), [g, v] = X(c.error || !1), [_, y] = X(!1), x = pe(null);
9012
9023
  if (r || (r = x), n.isLoading)
9013
9024
  return /* @__PURE__ */ a.jsx(
9014
9025
  Se,
@@ -9017,7 +9028,7 @@ const we = "discussion_form_", ar = ({
9017
9028
  "data-testid": "loading-placeholder"
9018
9029
  }
9019
9030
  );
9020
- const E = (j) => {
9031
+ const S = (j) => {
9021
9032
  const N = j.target.value;
9022
9033
  p(N);
9023
9034
  let A;
@@ -9038,11 +9049,11 @@ const we = "discussion_form_", ar = ({
9038
9049
  const j = (($ = t.slugs) == null ? void 0 : $.reply) || ((C = t.slugs) == null ? void 0 : C.answer) || ((k = t.slugs) == null ? void 0 : k.question) || "";
9039
9050
  j && (w = `${w}-${j.slice(-15)}`);
9040
9051
  }
9041
- const y = async (j) => {
9052
+ const b = async (j) => {
9042
9053
  var A;
9043
9054
  if (j.preventDefault(), j.stopPropagation(), !f || !f.id || !e || R)
9044
9055
  return;
9045
- Dt && clearTimeout(Dt), _("submitting");
9056
+ Dt && clearTimeout(Dt), y("submitting");
9046
9057
  const N = window.location.pathname;
9047
9058
  try {
9048
9059
  let W;
@@ -9073,7 +9084,7 @@ const we = "discussion_form_", ar = ({
9073
9084
  break;
9074
9085
  }
9075
9086
  await Ks(1e3), d.callback && await d.callback(W), Dt = setTimeout(() => {
9076
- p(""), _("submitted");
9087
+ p(""), y("submitted");
9077
9088
  const Z = new Event("discussionFormSubmitted");
9078
9089
  document.dispatchEvent(Z), F();
9079
9090
  }, 500);
@@ -9094,9 +9105,9 @@ const we = "discussion_form_", ar = ({
9094
9105
  }
9095
9106
  }, F = () => {
9096
9107
  Dt = setTimeout(() => {
9097
- v(!1), _(!1);
9108
+ v(!1), y(!1);
9098
9109
  }, 5e3);
9099
- }, R = !m || !ni(m), Q = b === "submitting", B = [];
9110
+ }, R = !m || !ni(m), Q = _ === "submitting", B = [];
9100
9111
  return (n.isEditing && !Q || c.cancel) && B.push({
9101
9112
  variant: "secondary",
9102
9113
  size: { mobile: "small", 600: "medium" },
@@ -9111,12 +9122,12 @@ const we = "discussion_form_", ar = ({
9111
9122
  size: { mobile: "small", 600: "medium" },
9112
9123
  onClick: (j) => {
9113
9124
  if (n.isEditing) {
9114
- _("submitting"), d.handleSaveEdit && d.handleSaveEdit(
9125
+ y("submitting"), d.handleSaveEdit && d.handleSaveEdit(
9115
9126
  x.current && "value" in x.current ? x.current.value : ""
9116
9127
  );
9117
9128
  return;
9118
9129
  }
9119
- y(j);
9130
+ b(j);
9120
9131
  },
9121
9132
  className: "gtm-trackable",
9122
9133
  "data-gtm-event-context": l,
@@ -9130,7 +9141,7 @@ const we = "discussion_form_", ar = ({
9130
9141
  "form",
9131
9142
  {
9132
9143
  id: w,
9133
- className: S("discussion-card discussion-form", {
9144
+ className: E("discussion-card discussion-form", {
9134
9145
  "no-styling": n.isInWrapper && n.isEditing
9135
9146
  }),
9136
9147
  "data-testid": `discussion-${t.type}-form`,
@@ -9157,8 +9168,8 @@ const we = "discussion_form_", ar = ({
9157
9168
  t.type,
9158
9169
  "action"
9159
9170
  ),
9160
- onChange: E,
9161
- value: b === "submitting" && !g ? "" : m,
9171
+ onChange: S,
9172
+ value: _ === "submitting" && !g ? "" : m,
9162
9173
  maxLength: i,
9163
9174
  "aria-invalid": !!g,
9164
9175
  "aria-errormessage": "error-message",
@@ -9181,7 +9192,7 @@ const we = "discussion_form_", ar = ({
9181
9192
  )
9182
9193
  }) }),
9183
9194
  /* @__PURE__ */ a.jsx(kt, { buttons: B }),
9184
- b === "submitted" && n.showSuccessMessage && /* @__PURE__ */ a.jsx(Wt, { className: "success", "data-testid": "success", children: $e(u.formatMessage, `${we}success`, t.type, "action") }),
9195
+ _ === "submitted" && n.showSuccessMessage && /* @__PURE__ */ a.jsx(Wt, { className: "success", "data-testid": "success", children: $e(u.formatMessage, `${we}success`, t.type, "action") }),
9185
9196
  g && /* @__PURE__ */ a.jsx(Wt, { id: "error-message", className: "error", "data-testid": "error", children: c.error ? c.error : typeof g == "string" ? g.includes(" ") ? g : u.formatMessage(
9186
9197
  { id: g },
9187
9198
  {
@@ -9255,11 +9266,11 @@ const An = () => {
9255
9266
  ae(() => {
9256
9267
  p(s);
9257
9268
  }, [s]);
9258
- const [u, f] = X(e), [m, p] = X(s), [g, v] = X(!1), [b, _] = X(!1), x = wt(
9269
+ const [u, f] = X(e), [m, p] = X(s), [g, v] = X(!1), [_, y] = X(!1), x = wt(
9259
9270
  () => Ec(n, Dn),
9260
9271
  [n]
9261
- ), E = (y) => {
9262
- if (y.preventDefault(), y.stopPropagation(), _(!1), bt)
9272
+ ), S = (b) => {
9273
+ if (b.preventDefault(), b.stopPropagation(), y(!1), bt)
9263
9274
  return An(), !1;
9264
9275
  if (An(), g || !o)
9265
9276
  return !1;
@@ -9267,8 +9278,8 @@ const An = () => {
9267
9278
  }, w = async () => {
9268
9279
  if (An(), g || !o)
9269
9280
  return !1;
9270
- let y = m ? u - 1 : u + 1;
9271
- y < 0 && (y = 0), v(!0), f(y), p(!m);
9281
+ let b = m ? u - 1 : u + 1;
9282
+ b < 0 && (b = 0), v(!0), f(b), p(!m);
9272
9283
  try {
9273
9284
  if (i && i.slugs) {
9274
9285
  const F = Tc(i.slugs);
@@ -9284,23 +9295,23 @@ const An = () => {
9284
9295
  }
9285
9296
  };
9286
9297
  return Y.createElement(t, {
9287
- className: S("likes-wrapper text-medium action-button", {
9298
+ className: E("likes-wrapper text-medium action-button", {
9288
9299
  "show-spinner": g,
9289
9300
  "is-liked": m,
9290
9301
  disabled: !o
9291
9302
  }),
9292
- onClick: E,
9303
+ onClick: S,
9293
9304
  onMouseEnter: () => {
9294
- _(!0);
9305
+ y(!0);
9295
9306
  },
9296
9307
  onMouseLeave: () => {
9297
- _(!1);
9308
+ y(!1);
9298
9309
  },
9299
9310
  onFocus: () => {
9300
- _(!0);
9311
+ y(!0);
9301
9312
  },
9302
9313
  onBlur: () => {
9303
- _(!1);
9314
+ y(!1);
9304
9315
  },
9305
9316
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
9306
9317
  /* @__PURE__ */ a.jsx(
@@ -9309,7 +9320,7 @@ const An = () => {
9309
9320
  variant: "tertiary",
9310
9321
  size: "medium",
9311
9322
  icon: { icon: m ? "heart" : "heart_empty", animate: "bounce" },
9312
- className: S({ "do-animation": m && !s }),
9323
+ className: E({ "do-animation": m && !s }),
9313
9324
  screenreaderText: o ? l.formatMessage(
9314
9325
  {
9315
9326
  id: `discussion_likes_${m ? "unlike" : "like"}`
@@ -9320,7 +9331,7 @@ const An = () => {
9320
9331
  })
9321
9332
  }
9322
9333
  ) : !1,
9323
- onClick: E,
9334
+ onClick: S,
9324
9335
  disabled: !o,
9325
9336
  "aria-hidden": !o,
9326
9337
  "data-testid": "like-button",
@@ -9331,7 +9342,7 @@ const An = () => {
9331
9342
  /* @__PURE__ */ a.jsx(
9332
9343
  "span",
9333
9344
  {
9334
- className: S("number-of-likes", { "no-likes": u === 0 }),
9345
+ className: E("number-of-likes", { "no-likes": u === 0 }),
9335
9346
  "data-testid": "number-of-likes",
9336
9347
  children: l.formatMessage(
9337
9348
  { id: `discussion_likes${r ? "_short" : ""}` },
@@ -9339,17 +9350,17 @@ const An = () => {
9339
9350
  )
9340
9351
  }
9341
9352
  ),
9342
- n && /* @__PURE__ */ a.jsx(_i, { isOpen: b, isLoading: n.length === 0, children: n.length && /* @__PURE__ */ a.jsxs("ul", { children: [
9343
- x.map((y) => typeof y == "string" || !y.name ? null : /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
9353
+ n && /* @__PURE__ */ a.jsx(_i, { isOpen: _, isLoading: n.length === 0, children: n.length && /* @__PURE__ */ a.jsxs("ul", { children: [
9354
+ x.map((b) => typeof b == "string" || !b.name ? null : /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
9344
9355
  at,
9345
9356
  {
9346
- href: y.id ? `/profiles/${y.id}` : void 0,
9357
+ href: b.id ? `/profiles/${b.id}` : void 0,
9347
9358
  gtmContext: "Likes",
9348
9359
  gtmType: "liked-name-click",
9349
9360
  onClick: (F) => F == null ? void 0 : F.stopPropagation(),
9350
- children: y.name
9361
+ children: b.name
9351
9362
  }
9352
- ) }, y.id || window.btoa(y.name))),
9363
+ ) }, b.id || window.btoa(b.name))),
9353
9364
  e > Dn && /* @__PURE__ */ a.jsx("li", { children: l.formatMessage(
9354
9365
  { id: "discussion_likes_more" },
9355
9366
  { number: e - Dn }
@@ -9391,9 +9402,9 @@ const Me = "discussion_", Cc = 280, cn = ({
9391
9402
  className: p,
9392
9403
  gtmContext: g = "DiscussionAnswer",
9393
9404
  children: v,
9394
- isTruncated: b = !1
9405
+ isTruncated: _ = !1
9395
9406
  }) => {
9396
- const _ = H(), x = Ee(De), E = Ee(sr), { author: w, canLike: y, createdAt: F, id: R, likes: Q = 0, userLiked: B, comments: $ = 0 } = e, C = x && x.id && typeof w != "string" && w.id && w.id === x.id || !1, k = typeof y == "boolean" ? y : n ? !C : !1, j = C && (!e.createdAt || Ys(e.createdAt, 10, "seconds")), N = pe(null), [A, W] = X({
9407
+ const y = H(), x = Ee(De), S = Ee(sr), { author: w, canLike: b, createdAt: F, id: R, likes: Q = 0, userLiked: B, comments: $ = 0 } = e, C = x && x.id && typeof w != "string" && w.id && w.id === x.id || !1, k = typeof b == "boolean" ? b : n ? !C : !1, j = C && (!e.createdAt || Ys(e.createdAt, 10, "seconds")), N = pe(null), [A, W] = X({
9397
9408
  body: e && e.body || "",
9398
9409
  isEditing: !1,
9399
9410
  didEdit: e && e.isEdited || !1
@@ -9426,7 +9437,7 @@ const Me = "discussion_", Cc = 280, cn = ({
9426
9437
  };
9427
9438
  if (r || !e || e.type === "answer" && (!e.slugs || !e.slugs.question))
9428
9439
  return /* @__PURE__ */ a.jsx(Se, { className: "discussion-card discussion-post" });
9429
- const te = b ? et(A.body, Cc) : A.body, G = async (O) => {
9440
+ const te = _ ? et(A.body, Cc) : A.body, G = async (O) => {
9430
9441
  O || (O = ""), q("");
9431
9442
  try {
9432
9443
  if (!Rs(O, A.body)) {
@@ -9438,7 +9449,7 @@ const Me = "discussion_", Cc = 280, cn = ({
9438
9449
  q(`${Me}form_error`);
9439
9450
  }
9440
9451
  }, V = () => {
9441
- E && E.updateConversation && E.updateConversation({ showForm: !0 }), setTimeout(() => {
9452
+ S && S.updateConversation && S.updateConversation({ showForm: !0 }), setTimeout(() => {
9442
9453
  var Ne, Ce, Ue;
9443
9454
  const oe = `reply-form-${(e.type === "answer" ? e.slug : ((Ne = e.slugs) == null ? void 0 : Ne.reply) || ((Ce = e.slugs) == null ? void 0 : Ce.answer) || ((Ue = e.slugs) == null ? void 0 : Ue.question) || "").toLowerCase().slice(-15)}`, D = document.getElementById(oe), ve = document.getElementById(`${oe}-input`);
9444
9455
  ve && ve.focus(), D && D.scrollIntoView({ behavior: "smooth" });
@@ -9452,14 +9463,14 @@ const Me = "discussion_", Cc = 280, cn = ({
9452
9463
  }
9453
9464
  }, re = [
9454
9465
  {
9455
- text: _.formatMessage({ id: `${Me}moreMenu_report` }),
9466
+ text: y.formatMessage({ id: `${Me}moreMenu_report` }),
9456
9467
  onClick: (O) => {
9457
9468
  O.stopPropagation();
9458
9469
  },
9459
9470
  href: `mailto:community@apolitical.co?subject=${encodeURI(
9460
- _.formatMessage({ id: `${Me}report_subject` })
9471
+ y.formatMessage({ id: `${Me}report_subject` })
9461
9472
  )}&body=${encodeURI(
9462
- _.formatMessage(
9473
+ y.formatMessage(
9463
9474
  { id: `${Me}report_body` },
9464
9475
  {
9465
9476
  contentType: e.type || "",
@@ -9473,7 +9484,7 @@ const Me = "discussion_", Cc = 280, cn = ({
9473
9484
  ];
9474
9485
  return n && C && re.push(
9475
9486
  {
9476
- text: _.formatMessage({ id: `${Me}moreMenu_edit` }),
9487
+ text: y.formatMessage({ id: `${Me}moreMenu_edit` }),
9477
9488
  onClick: () => W({ ...A, isEditing: !0 }),
9478
9489
  icon: "pencil-paper",
9479
9490
  className: "gtm-trackable",
@@ -9481,7 +9492,7 @@ const Me = "discussion_", Cc = 280, cn = ({
9481
9492
  "data-gtm-event-type": `edit-${e.type}-click`
9482
9493
  },
9483
9494
  {
9484
- text: _.formatMessage({ id: `${Me}moreMenu_delete` }),
9495
+ text: y.formatMessage({ id: `${Me}moreMenu_delete` }),
9485
9496
  onClick: (O) => {
9486
9497
  O.preventDefault(), O.stopPropagation(), z(!0);
9487
9498
  },
@@ -9492,7 +9503,7 @@ const Me = "discussion_", Cc = 280, cn = ({
9492
9503
  ...Xo(`delete-${e.slug}-modal`, Z)
9493
9504
  }
9494
9505
  ), Y.createElement(t, {
9495
- className: S("discussion-post", p, {
9506
+ className: E("discussion-post", p, {
9496
9507
  [K]: !p || !p.includes("highlighted-text-box")
9497
9508
  }),
9498
9509
  ref: N,
@@ -9502,7 +9513,7 @@ const Me = "discussion_", Cc = 280, cn = ({
9502
9513
  "div",
9503
9514
  {
9504
9515
  id: R || e.slug,
9505
- className: S("discussion-card", e.type, {
9516
+ className: E("discussion-card", e.type, {
9506
9517
  editing: A.isEditing,
9507
9518
  "has-link": m.post && !A.isEditing
9508
9519
  }),
@@ -9532,10 +9543,10 @@ const Me = "discussion_", Cc = 280, cn = ({
9532
9543
  },
9533
9544
  maxLength: e.type === "question" ? 250 : 5e4,
9534
9545
  forceShow: {
9535
- error: P !== "" && P !== "delete-error" ? _.formatMessage(
9546
+ error: P !== "" && P !== "delete-error" ? y.formatMessage(
9536
9547
  { id: P },
9537
9548
  {
9538
- action: _.formatMessage({
9549
+ action: y.formatMessage({
9539
9550
  id: `discussion_action_${e.type}`
9540
9551
  })
9541
9552
  }
@@ -9574,7 +9585,7 @@ const Me = "discussion_", Cc = 280, cn = ({
9574
9585
  !A.isEditing && !(i != null && i.actionBar) && /* @__PURE__ */ a.jsxs(
9575
9586
  "ul",
9576
9587
  {
9577
- className: S("actions text-medium", e.type),
9588
+ className: E("actions text-medium", e.type),
9578
9589
  "data-testid": `${e.type}-actions`,
9579
9590
  children: [
9580
9591
  !i.likes && /* @__PURE__ */ a.jsx(
@@ -9613,13 +9624,13 @@ const Me = "discussion_", Cc = 280, cn = ({
9613
9624
  className: "gtm-trackable",
9614
9625
  "data-gtm-event-context": g,
9615
9626
  "data-gtm-event-type": `answer-${e.type}-click`,
9616
- screenreaderText: _.formatMessage(
9627
+ screenreaderText: y.formatMessage(
9617
9628
  { id: `${Me}comments_screenReader` },
9618
9629
  { count: $ }
9619
9630
  )
9620
9631
  }
9621
9632
  ),
9622
- /* @__PURE__ */ a.jsx("span", { children: _.formatMessage(
9633
+ /* @__PURE__ */ a.jsx("span", { children: y.formatMessage(
9623
9634
  { id: `${Me}comments` },
9624
9635
  { count: $ }
9625
9636
  ) })
@@ -9633,7 +9644,7 @@ const Me = "discussion_", Cc = 280, cn = ({
9633
9644
  size: "medium",
9634
9645
  styling: { muted: !0 },
9635
9646
  onClick: V,
9636
- children: _.formatMessage({ id: `${Me}reply` })
9647
+ children: y.formatMessage({ id: `${Me}reply` })
9637
9648
  }
9638
9649
  ) }),
9639
9650
  /* @__PURE__ */ a.jsx(
@@ -9659,30 +9670,30 @@ const Me = "discussion_", Cc = 280, cn = ({
9659
9670
  functions: { onOpen: () => {
9660
9671
  }, onClose: () => z(!1) },
9661
9672
  forceShow: {
9662
- error: P === "delete-error" ? _.formatMessage(
9673
+ error: P === "delete-error" ? y.formatMessage(
9663
9674
  { id: "discussion_delete_error" },
9664
9675
  {
9665
- action: _.formatMessage({
9676
+ action: y.formatMessage({
9666
9677
  id: `discussion_action_${e.type}`
9667
9678
  })
9668
9679
  }
9669
9680
  ) : !1
9670
9681
  },
9671
- title: _.formatMessage(
9682
+ title: y.formatMessage(
9672
9683
  { id: "discussion_delete_title" },
9673
- { action: _.formatMessage({ id: `discussion_action_${e.type}` }) }
9684
+ { action: y.formatMessage({ id: `discussion_action_${e.type}` }) }
9674
9685
  ),
9675
9686
  buttons: [
9676
9687
  {
9677
9688
  variant: "secondary",
9678
9689
  onClick: () => z(!1),
9679
- children: _.formatMessage({ id: "discussion_delete_cancel" })
9690
+ children: y.formatMessage({ id: "discussion_delete_cancel" })
9680
9691
  },
9681
9692
  {
9682
9693
  variant: "primary",
9683
9694
  className: "destructive",
9684
9695
  onClick: ee,
9685
- children: _.formatMessage({ id: "discussion_delete_delete" })
9696
+ children: y.formatMessage({ id: "discussion_delete_delete" })
9686
9697
  }
9687
9698
  ],
9688
9699
  gtmContext: `${e.type.charAt(0).toUpperCase()}${e.type.slice(1)}:${e.slug}`,
@@ -9692,7 +9703,7 @@ const Me = "discussion_", Cc = 280, cn = ({
9692
9703
  id: "discussion_delete_text",
9693
9704
  values: {
9694
9705
  p: (O) => /* @__PURE__ */ a.jsx("p", { children: O }),
9695
- action: _.formatMessage({
9706
+ action: y.formatMessage({
9696
9707
  id: `discussion_action_${e.type}`
9697
9708
  })
9698
9709
  }
@@ -10135,9 +10146,9 @@ function Wc({
10135
10146
  },
10136
10147
  user: d,
10137
10148
  ...l
10138
- }, f = qc({ ...u, mutationFn: t }), m = Uc({ ...u, mutationFn: e }), p = zc({ ...u, mutationFn: n }), g = Hc({ ...u, mutationFn: s }), v = Vc({ ...u, mutationFn: i }), { activities: b, ..._ } = Zc({ queryKey: o, queryFn: r });
10149
+ }, f = qc({ ...u, mutationFn: t }), m = Uc({ ...u, mutationFn: e }), p = zc({ ...u, mutationFn: n }), g = Hc({ ...u, mutationFn: s }), v = Vc({ ...u, mutationFn: i }), { activities: _, ...y } = Zc({ queryKey: o, queryFn: r });
10139
10150
  return {
10140
- activities: b,
10151
+ activities: _,
10141
10152
  mutations: {
10142
10153
  create: f,
10143
10154
  edit: m,
@@ -10146,7 +10157,7 @@ function Wc({
10146
10157
  unlike: v
10147
10158
  },
10148
10159
  user: d,
10149
- ..._
10160
+ ...y
10150
10161
  };
10151
10162
  }
10152
10163
  function zc({
@@ -10268,8 +10279,8 @@ const pu = ({
10268
10279
  fetchNextPage: l,
10269
10280
  hasNextPage: u,
10270
10281
  isLoading: f,
10271
- mutations: { create: m, edit: p, remove: g, like: v, unlike: b },
10272
- user: _
10282
+ mutations: { create: m, edit: p, remove: g, like: v, unlike: _ },
10283
+ user: y
10273
10284
  } = Wc({
10274
10285
  queryKey: [t, e, "activities"],
10275
10286
  queryFns: r
@@ -10295,34 +10306,34 @@ const pu = ({
10295
10306
  }
10296
10307
  }
10297
10308
  ),
10298
- c == null ? void 0 : c.map((E, w) => {
10309
+ c == null ? void 0 : c.map((S, w) => {
10299
10310
  var A, W, Z, z, K, T, P, q;
10300
10311
  const {
10301
- id: y,
10312
+ id: b,
10302
10313
  own_reactions: F,
10303
10314
  latest_reactions: R,
10304
10315
  reaction_counts: Q
10305
- } = E, B = (((A = R == null ? void 0 : R.like) == null ? void 0 : A.length) || 0) > 0, $ = (((W = F == null ? void 0 : F.like) == null ? void 0 : W.length) || 0) > 0, C = $ ? F == null ? void 0 : F.like[0].id : "", k = B ? (Z = R == null ? void 0 : R.like) == null ? void 0 : Z.map((L) => {
10316
+ } = S, B = (((A = R == null ? void 0 : R.like) == null ? void 0 : A.length) || 0) > 0, $ = (((W = F == null ? void 0 : F.like) == null ? void 0 : W.length) || 0) > 0, C = $ ? F == null ? void 0 : F.like[0].id : "", k = B ? (Z = R == null ? void 0 : R.like) == null ? void 0 : Z.map((L) => {
10306
10317
  var U, te, G;
10307
10318
  return {
10308
10319
  id: (U = L == null ? void 0 : L.user) == null ? void 0 : U.id,
10309
10320
  name: (G = (te = L == null ? void 0 : L.user) == null ? void 0 : te.data) == null ? void 0 : G.name
10310
10321
  };
10311
- }) : !1, j = E == null ? void 0 : E.actor, N = (j == null ? void 0 : j.id) === (_ == null ? void 0 : _.id);
10322
+ }) : !1, j = S == null ? void 0 : S.actor, N = (j == null ? void 0 : j.id) === (y == null ? void 0 : y.id);
10312
10323
  return /* @__PURE__ */ a.jsxs(yt, { children: [
10313
10324
  /* @__PURE__ */ a.jsx(
10314
10325
  cn,
10315
10326
  {
10316
10327
  content: {
10317
10328
  type: "post",
10318
- body: E == null ? void 0 : E.content,
10329
+ body: S == null ? void 0 : S.content,
10319
10330
  canLike: on(n, N),
10320
- createdAt: (E == null ? void 0 : E.time) || "",
10331
+ createdAt: (S == null ? void 0 : S.time) || "",
10321
10332
  slugs: {
10322
10333
  question: `${t}/${e}`,
10323
- answer: y
10334
+ answer: b
10324
10335
  },
10325
- slug: y,
10336
+ slug: b,
10326
10337
  author: {
10327
10338
  id: j == null ? void 0 : j.id,
10328
10339
  name: (z = j == null ? void 0 : j.data) == null ? void 0 : z.name,
@@ -10339,19 +10350,19 @@ const pu = ({
10339
10350
  peopleWhoLiked: k
10340
10351
  },
10341
10352
  links: {
10342
- post: `${t}/${e}/${y}`,
10343
- comments: `${t}/${e}/${y}`
10353
+ post: `${t}/${e}/${b}`,
10354
+ comments: `${t}/${e}/${b}`
10344
10355
  },
10345
10356
  functions: {
10346
10357
  content: {
10347
10358
  createContent: () => null,
10348
- deleteContent: () => g({ activityId: y }),
10359
+ deleteContent: () => g({ activityId: b }),
10349
10360
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
10350
- updateContent: (L, { body: U }) => p({ activityId: y, content: U })
10361
+ updateContent: (L, { body: U }) => p({ activityId: b, content: U })
10351
10362
  },
10352
10363
  likes: {
10353
- createLike: () => v({ activityId: y }),
10354
- deleteLike: () => b({ activityId: y, reactionId: C })
10364
+ createLike: () => v({ activityId: b }),
10365
+ deleteLike: () => _({ activityId: b, reactionId: C })
10355
10366
  },
10356
10367
  comments: {
10357
10368
  openComments: () => null
@@ -10361,7 +10372,7 @@ const pu = ({
10361
10372
  }
10362
10373
  ),
10363
10374
  x > w + 1 && /* @__PURE__ */ a.jsx(Oe, {})
10364
- ] }, y);
10375
+ ] }, b);
10365
10376
  }),
10366
10377
  !f && /* @__PURE__ */ a.jsx(
10367
10378
  sn,
@@ -10992,9 +11003,9 @@ function es({
10992
11003
  },
10993
11004
  user: d,
10994
11005
  ...l
10995
- }, f = Gc({ ...u, mutationFn: t }), m = Qc({ ...u, mutationFn: e }), p = Jc({ ...u, mutationFn: n }), g = el({ ...u, mutationFn: s }), v = tl({ ...u, mutationFn: i }), { replies: b, ..._ } = Xc({ queryKey: o, queryFn: r });
11006
+ }, f = Gc({ ...u, mutationFn: t }), m = Qc({ ...u, mutationFn: e }), p = Jc({ ...u, mutationFn: n }), g = el({ ...u, mutationFn: s }), v = tl({ ...u, mutationFn: i }), { replies: _, ...y } = Xc({ queryKey: o, queryFn: r });
10996
11007
  return {
10997
- replies: b,
11008
+ replies: _,
10998
11009
  mutations: {
10999
11010
  create: f,
11000
11011
  edit: m,
@@ -11003,7 +11014,7 @@ function es({
11003
11014
  unlike: v
11004
11015
  },
11005
11016
  user: d,
11006
- ..._
11017
+ ...y
11007
11018
  };
11008
11019
  }
11009
11020
  function Jc({
@@ -11144,7 +11155,7 @@ const ol = ({
11144
11155
  queryFns: {
11145
11156
  ...i,
11146
11157
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
11147
- list: (b) => i.list({ ...b, reactionId: r })
11158
+ list: (_) => i.list({ ..._, reactionId: r })
11148
11159
  }
11149
11160
  });
11150
11161
  return /* @__PURE__ */ a.jsx(
@@ -11162,45 +11173,45 @@ const ol = ({
11162
11173
  },
11163
11174
  functions: {
11164
11175
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
11165
- create: (b, { body: _ }) => u({ activityId: n, replyId: r, content: _ })
11176
+ create: (_, { body: y }) => u({ activityId: n, replyId: r, content: y })
11166
11177
  },
11167
11178
  meta: { isEditing: !1, showSuccessMessage: !1 }
11168
11179
  },
11169
- children: o && o.length > 0 ? o == null ? void 0 : o.map((b) => {
11180
+ children: o && o.length > 0 ? o == null ? void 0 : o.map((_) => {
11170
11181
  var A, W, Z, z, K, T, P, q, L, U, te, G;
11171
11182
  const {
11172
- id: _,
11183
+ id: y,
11173
11184
  own_children: x,
11174
- latest_children: E,
11185
+ latest_children: S,
11175
11186
  children_counts: w
11176
- } = b, F = (((A = x == null ? void 0 : x.like) == null ? void 0 : A.length) || 0) > 0 ? (W = x == null ? void 0 : x.like) == null ? void 0 : W.find((V) => {
11187
+ } = _, F = (((A = x == null ? void 0 : x.like) == null ? void 0 : A.length) || 0) > 0 ? (W = x == null ? void 0 : x.like) == null ? void 0 : W.find((V) => {
11177
11188
  var ee;
11178
11189
  return ((ee = V == null ? void 0 : V.user) == null ? void 0 : ee.id) === (v == null ? void 0 : v.id);
11179
- }) : !1, R = F ? F == null ? void 0 : F.id : "", Q = !!F, $ = (((Z = E == null ? void 0 : E.like) == null ? void 0 : Z.length) || 0) > 0 ? (z = E == null ? void 0 : E.like) == null ? void 0 : z.map((V) => {
11190
+ }) : !1, R = F ? F == null ? void 0 : F.id : "", Q = !!F, $ = (((Z = S == null ? void 0 : S.like) == null ? void 0 : Z.length) || 0) > 0 ? (z = S == null ? void 0 : S.like) == null ? void 0 : z.map((V) => {
11180
11191
  var ee, re, O;
11181
11192
  return {
11182
11193
  id: (ee = V == null ? void 0 : V.user) == null ? void 0 : ee.id,
11183
11194
  name: (O = (re = V == null ? void 0 : V.user) == null ? void 0 : re.data) == null ? void 0 : O.name
11184
11195
  };
11185
- }) : !1, C = b == null ? void 0 : b.user, k = (C == null ? void 0 : C.id) === (v == null ? void 0 : v.id), j = on(s, k), N = typeof b.data.content == "string" ? (K = b == null ? void 0 : b.data) == null ? void 0 : K.content : (
11196
+ }) : !1, C = _ == null ? void 0 : _.user, k = (C == null ? void 0 : C.id) === (v == null ? void 0 : v.id), j = on(s, k), N = typeof _.data.content == "string" ? (K = _ == null ? void 0 : _.data) == null ? void 0 : K.content : (
11186
11197
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
11187
- ((P = (T = b == null ? void 0 : b.data) == null ? void 0 : T.content) == null ? void 0 : P.text) || ""
11198
+ ((P = (T = _ == null ? void 0 : _.data) == null ? void 0 : T.content) == null ? void 0 : P.text) || ""
11188
11199
  );
11189
11200
  return /* @__PURE__ */ a.jsx(
11190
11201
  cn,
11191
11202
  {
11192
11203
  content: {
11193
- id: _,
11204
+ id: y,
11194
11205
  type: "reply",
11195
11206
  body: N,
11196
11207
  canLike: j,
11197
- createdAt: b == null ? void 0 : b.created_at,
11208
+ createdAt: _ == null ? void 0 : _.created_at,
11198
11209
  slugs: {
11199
11210
  question: `${t}/${e}`,
11200
11211
  answer: n,
11201
11212
  // Stop-gap solution to avoid having to change the DiscussionPost component
11202
11213
  // The `reply` is currently used to define the form ID which handles the focus
11203
- reply: b == null ? void 0 : b.parent
11214
+ reply: _ == null ? void 0 : _.parent
11204
11215
  },
11205
11216
  slug: "",
11206
11217
  author: {
@@ -11220,18 +11231,18 @@ const ol = ({
11220
11231
  functions: {
11221
11232
  content: {
11222
11233
  createContent: () => null,
11223
- deleteContent: () => p({ replyId: _ }),
11234
+ deleteContent: () => p({ replyId: y }),
11224
11235
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
11225
- updateContent: (V, { body: ee }) => f({ replyId: _, content: ee })
11236
+ updateContent: (V, { body: ee }) => f({ replyId: y, content: ee })
11226
11237
  },
11227
11238
  likes: {
11228
- createLike: () => m({ replyId: _ }),
11229
- deleteLike: () => g({ replyId: _, reactionId: R })
11239
+ createLike: () => m({ replyId: y }),
11240
+ deleteLike: () => g({ replyId: y, reactionId: R })
11230
11241
  },
11231
11242
  comments: {}
11232
11243
  }
11233
11244
  },
11234
- _
11245
+ y
11235
11246
  );
11236
11247
  }) : null
11237
11248
  }
@@ -11249,7 +11260,7 @@ const ol = ({
11249
11260
  fetchNextPage: u,
11250
11261
  hasNextPage: f,
11251
11262
  isLoading: m,
11252
- mutations: { create: p, edit: g, like: v, remove: b, unlike: _ },
11263
+ mutations: { create: p, edit: g, like: v, remove: _, unlike: y },
11253
11264
  user: x
11254
11265
  } = es({
11255
11266
  queryKey: [t, e, n, "replies"],
@@ -11264,7 +11275,7 @@ const ol = ({
11264
11275
  content: { type: "reply", slugs: {} },
11265
11276
  functions: {
11266
11277
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
11267
- create: (E, { body: w }) => p({ activityId: n, content: w })
11278
+ create: (S, { body: w }) => p({ activityId: n, content: w })
11268
11279
  },
11269
11280
  meta: { isEditing: !1, showSuccessMessage: !1 },
11270
11281
  placeholder: c.formatMessage({ id: "discussion_responses_placeholder" })
@@ -11278,9 +11289,9 @@ const ol = ({
11278
11289
  }
11279
11290
  }
11280
11291
  ),
11281
- d == null ? void 0 : d.map((E) => {
11292
+ d == null ? void 0 : d.map((S) => {
11282
11293
  var z, K, T, P, q, L, U, te, G, V, ee, re;
11283
- const { id: w, own_children: y, latest_children: F, children_counts: R } = E, B = (((z = y == null ? void 0 : y.like) == null ? void 0 : z.length) || 0) > 0 ? (K = y == null ? void 0 : y.like) == null ? void 0 : K.find((O) => {
11294
+ const { id: w, own_children: b, latest_children: F, children_counts: R } = S, B = (((z = b == null ? void 0 : b.like) == null ? void 0 : z.length) || 0) > 0 ? (K = b == null ? void 0 : b.like) == null ? void 0 : K.find((O) => {
11284
11295
  var oe;
11285
11296
  return ((oe = O == null ? void 0 : O.user) == null ? void 0 : oe.id) === (x == null ? void 0 : x.id);
11286
11297
  }) : !1, $ = B ? B == null ? void 0 : B.id : "", C = !!B, j = (((T = F == null ? void 0 : F.like) == null ? void 0 : T.length) || 0) > 0 ? (P = F == null ? void 0 : F.like) == null ? void 0 : P.map((O) => {
@@ -11289,9 +11300,9 @@ const ol = ({
11289
11300
  id: (oe = O == null ? void 0 : O.user) == null ? void 0 : oe.id,
11290
11301
  name: (ve = (D = O == null ? void 0 : O.user) == null ? void 0 : D.data) == null ? void 0 : ve.name
11291
11302
  };
11292
- }) : !1, N = E == null ? void 0 : E.user, A = (N == null ? void 0 : N.id) === (x == null ? void 0 : x.id), W = on(r, A), Z = typeof E.data.content == "string" ? (q = E == null ? void 0 : E.data) == null ? void 0 : q.content : (
11303
+ }) : !1, N = S == null ? void 0 : S.user, A = (N == null ? void 0 : N.id) === (x == null ? void 0 : x.id), W = on(r, A), Z = typeof S.data.content == "string" ? (q = S == null ? void 0 : S.data) == null ? void 0 : q.content : (
11293
11304
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
11294
- ((U = (L = E == null ? void 0 : E.data) == null ? void 0 : L.content) == null ? void 0 : U.text) || ""
11305
+ ((U = (L = S == null ? void 0 : S.data) == null ? void 0 : L.content) == null ? void 0 : U.text) || ""
11295
11306
  );
11296
11307
  return /* @__PURE__ */ a.jsx(kc, { children: /* @__PURE__ */ a.jsx(
11297
11308
  cn,
@@ -11301,7 +11312,7 @@ const ol = ({
11301
11312
  type: "reply",
11302
11313
  body: Z,
11303
11314
  canLike: W,
11304
- createdAt: E == null ? void 0 : E.created_at,
11315
+ createdAt: S == null ? void 0 : S.created_at,
11305
11316
  slugs: {
11306
11317
  question: `${t}/${e}`,
11307
11318
  answer: n,
@@ -11325,13 +11336,13 @@ const ol = ({
11325
11336
  functions: {
11326
11337
  content: {
11327
11338
  createContent: () => null,
11328
- deleteContent: () => b({ replyId: w }),
11339
+ deleteContent: () => _({ replyId: w }),
11329
11340
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
11330
11341
  updateContent: (O, { body: oe }) => g({ replyId: w, content: oe })
11331
11342
  },
11332
11343
  likes: {
11333
11344
  createLike: () => v({ replyId: w }),
11334
- deleteLike: () => _({ replyId: w, reactionId: $ })
11345
+ deleteLike: () => y({ replyId: w, reactionId: $ })
11335
11346
  },
11336
11347
  comments: {}
11337
11348
  },
@@ -11476,7 +11487,7 @@ const gu = ({
11476
11487
  activity: f,
11477
11488
  error: m,
11478
11489
  isLoading: p,
11479
- mutations: { edit: g, like: v, unlike: b }
11490
+ mutations: { edit: g, like: v, unlike: _ }
11480
11491
  } = dl({
11481
11492
  queryFns: i,
11482
11493
  queryKey: [t, e, n]
@@ -11491,7 +11502,7 @@ const gu = ({
11491
11502
  text: l.formatMessage({ id: "activitySection_notFoundError" })
11492
11503
  }
11493
11504
  );
11494
- const { own_reactions: _, latest_reactions: x } = f, E = (((B = x == null ? void 0 : x.like) == null ? void 0 : B.length) || 0) > 0, w = ((($ = _ == null ? void 0 : _.like) == null ? void 0 : $.length) || 0) > 0, y = w ? _ == null ? void 0 : _.like[0].id : "", F = E ? (C = x == null ? void 0 : x.like) == null ? void 0 : C.map((K) => {
11505
+ const { own_reactions: y, latest_reactions: x } = f, S = (((B = x == null ? void 0 : x.like) == null ? void 0 : B.length) || 0) > 0, w = ((($ = y == null ? void 0 : y.like) == null ? void 0 : $.length) || 0) > 0, b = w ? y == null ? void 0 : y.like[0].id : "", F = S ? (C = x == null ? void 0 : x.like) == null ? void 0 : C.map((K) => {
11495
11506
  var T, P, q;
11496
11507
  return {
11497
11508
  id: (T = K == null ? void 0 : K.user) == null ? void 0 : T.id,
@@ -11540,7 +11551,7 @@ const gu = ({
11540
11551
  },
11541
11552
  likes: {
11542
11553
  createLike: () => v({ activityId: n }),
11543
- deleteLike: () => b({ activityId: n, reactionId: y })
11554
+ deleteLike: () => _({ activityId: n, reactionId: b })
11544
11555
  },
11545
11556
  comments: {
11546
11557
  openComments: () => {