@apolitical/component-library 1.15.1-4187.4 → 1.15.1-beta.0

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
@@ -27,23 +27,23 @@ var Nn = { exports: {} };
27
27
  var t = {}.hasOwnProperty;
28
28
  function n() {
29
29
  for (var r = [], i = 0; i < arguments.length; i++) {
30
- var d = arguments[i];
31
- if (d) {
32
- var u = typeof d;
30
+ var l = arguments[i];
31
+ if (l) {
32
+ var u = typeof l;
33
33
  if (u === "string" || u === "number")
34
- r.push(d);
35
- else if (Array.isArray(d)) {
36
- if (d.length) {
37
- var a = n.apply(null, d);
34
+ r.push(l);
35
+ else if (Array.isArray(l)) {
36
+ if (l.length) {
37
+ var a = n.apply(null, l);
38
38
  a && r.push(a);
39
39
  }
40
40
  } else if (u === "object") {
41
- if (d.toString !== Object.prototype.toString && !d.toString.toString().includes("[native code]")) {
42
- r.push(d.toString());
41
+ if (l.toString !== Object.prototype.toString && !l.toString.toString().includes("[native code]")) {
42
+ r.push(l.toString());
43
43
  continue;
44
44
  }
45
- for (var l in d)
46
- t.call(d, l) && d[l] && r.push(l);
45
+ for (var d in l)
46
+ t.call(l, d) && l[d] && r.push(d);
47
47
  }
48
48
  }
49
49
  }
@@ -69,15 +69,15 @@ function Rs() {
69
69
  if (pn)
70
70
  return Ye;
71
71
  pn = 1;
72
- var e = C, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, d = { key: !0, ref: !0, __self: !0, __source: !0 };
73
- function u(a, l, o) {
72
+ var e = C, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
73
+ function u(a, d, o) {
74
74
  var m, c = {}, h = null, p = null;
75
- o !== void 0 && (h = "" + o), l.key !== void 0 && (h = "" + l.key), l.ref !== void 0 && (p = l.ref);
76
- for (m in l)
77
- r.call(l, m) && !d.hasOwnProperty(m) && (c[m] = l[m]);
75
+ o !== void 0 && (h = "" + o), d.key !== void 0 && (h = "" + d.key), d.ref !== void 0 && (p = d.ref);
76
+ for (m in d)
77
+ r.call(d, m) && !l.hasOwnProperty(m) && (c[m] = d[m]);
78
78
  if (a && a.defaultProps)
79
- for (m in l = a.defaultProps, l)
80
- c[m] === void 0 && (c[m] = l[m]);
79
+ for (m in d = a.defaultProps, d)
80
+ c[m] === void 0 && (c[m] = d[m]);
81
81
  return { $$typeof: t, type: a, key: h, ref: p, props: c, _owner: i.current };
82
82
  }
83
83
  return Ye.Fragment = n, Ye.jsx = u, Ye.jsxs = u, Ye;
@@ -95,7 +95,7 @@ var Ge = {};
95
95
  var gn;
96
96
  function Fs() {
97
97
  return gn || (gn = 1, process.env.NODE_ENV !== "production" && function() {
98
- var e = C, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), d = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), a = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), o = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), c = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), g = Symbol.iterator, b = "@@iterator";
98
+ var e = C, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), a = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), o = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), c = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), g = Symbol.iterator, b = "@@iterator";
99
99
  function v(f) {
100
100
  if (f === null || typeof f != "object")
101
101
  return null;
@@ -123,7 +123,7 @@ function Fs() {
123
123
  var T = !1, N = !1, R = !1, J = !1, O = !1, H;
124
124
  H = Symbol.for("react.module.reference");
125
125
  function F(f) {
126
- return !!(typeof f == "string" || typeof f == "function" || f === r || f === d || O || f === i || f === o || f === m || J || f === p || T || N || R || typeof f == "object" && f !== null && (f.$$typeof === h || f.$$typeof === c || f.$$typeof === u || f.$$typeof === a || f.$$typeof === l || // This needs to include all possible module reference object
126
+ return !!(typeof f == "string" || typeof f == "function" || f === r || f === l || O || f === i || f === o || f === m || J || f === p || T || N || R || typeof f == "object" && f !== null && (f.$$typeof === h || f.$$typeof === c || f.$$typeof === u || f.$$typeof === a || f.$$typeof === d || // This needs to include all possible module reference object
127
127
  // types supported by any Flight configuration anywhere since
128
128
  // we don't know which Flight build this will end up being used
129
129
  // with.
@@ -151,7 +151,7 @@ function Fs() {
151
151
  return "Fragment";
152
152
  case n:
153
153
  return "Portal";
154
- case d:
154
+ case l:
155
155
  return "Profiler";
156
156
  case i:
157
157
  return "StrictMode";
@@ -168,7 +168,7 @@ function Fs() {
168
168
  case u:
169
169
  var $ = f;
170
170
  return Y($._context) + ".Provider";
171
- case l:
171
+ case d:
172
172
  return x(f, f.render, "ForwardRef");
173
173
  case c:
174
174
  var M = f.displayName || null;
@@ -358,7 +358,7 @@ function Fs() {
358
358
  }
359
359
  if (typeof f == "object")
360
360
  switch (f.$$typeof) {
361
- case l:
361
+ case d:
362
362
  return le(f.render);
363
363
  case c:
364
364
  return me(f.type, y, $);
@@ -610,7 +610,7 @@ Check the top-level render call using <` + $ + ">.");
610
610
  var $;
611
611
  if (typeof y == "function")
612
612
  $ = y.propTypes;
613
- else if (typeof y == "object" && (y.$$typeof === l || // Note: Memo only checks outer props here.
613
+ else if (typeof y == "object" && (y.$$typeof === d || // Note: Memo only checks outer props here.
614
614
  // Inner props are checked in the reconciler.
615
615
  y.$$typeof === c))
616
616
  $ = y.propTypes;
@@ -696,7 +696,7 @@ const Ls = () => {
696
696
  }, t);
697
697
  };
698
698
  function Is(e, t, n) {
699
- var r = this, i = de(null), d = de(0), u = de(null), a = de([]), l = de(), o = de(), m = de(e), c = de(!0);
699
+ var r = this, i = de(null), l = de(0), u = de(null), a = de([]), d = de(), o = de(), m = de(e), c = de(!0);
700
700
  m.current = e;
701
701
  var h = typeof window < "u", p = !t && t !== 0 && h;
702
702
  if (typeof e != "function")
@@ -710,31 +710,31 @@ function Is(e, t, n) {
710
710
  }, []);
711
711
  var _ = xt(function() {
712
712
  var T = function(F) {
713
- var x = a.current, Y = l.current;
714
- return a.current = l.current = null, d.current = F, o.current = m.current.apply(Y, x);
713
+ var x = a.current, Y = d.current;
714
+ return a.current = d.current = null, l.current = F, o.current = m.current.apply(Y, x);
715
715
  }, N = function(F, x) {
716
716
  p && cancelAnimationFrame(u.current), u.current = p ? requestAnimationFrame(F) : setTimeout(F, x);
717
717
  }, R = function(F) {
718
718
  if (!c.current)
719
719
  return !1;
720
720
  var x = F - i.current;
721
- return !i.current || x >= t || x < 0 || v && F - d.current >= j;
721
+ return !i.current || x >= t || x < 0 || v && F - l.current >= j;
722
722
  }, J = function(F) {
723
- return u.current = null, b && a.current ? T(F) : (a.current = l.current = null, o.current);
723
+ return u.current = null, b && a.current ? T(F) : (a.current = d.current = null, o.current);
724
724
  }, O = function F() {
725
725
  var x = Date.now();
726
726
  if (R(x))
727
727
  return J(x);
728
728
  if (c.current) {
729
- var Y = t - (x - i.current), k = v ? Math.min(Y, j - (x - d.current)) : Y;
729
+ var Y = t - (x - i.current), k = v ? Math.min(Y, j - (x - l.current)) : Y;
730
730
  N(F, k);
731
731
  }
732
732
  }, H = function() {
733
733
  if (h || E) {
734
734
  var F = Date.now(), x = R(F);
735
- if (a.current = [].slice.call(arguments), l.current = r, i.current = F, x) {
735
+ if (a.current = [].slice.call(arguments), d.current = r, i.current = F, x) {
736
736
  if (!u.current && c.current)
737
- return d.current = i.current, N(O, t), g ? T(i.current) : o.current;
737
+ return l.current = i.current, N(O, t), g ? T(i.current) : o.current;
738
738
  if (v)
739
739
  return N(O, t), T(i.current);
740
740
  }
@@ -742,7 +742,7 @@ function Is(e, t, n) {
742
742
  }
743
743
  };
744
744
  return H.cancel = function() {
745
- u.current && (p ? cancelAnimationFrame(u.current) : clearTimeout(u.current)), d.current = 0, a.current = i.current = l.current = u.current = null;
745
+ u.current && (p ? cancelAnimationFrame(u.current) : clearTimeout(u.current)), l.current = 0, a.current = i.current = d.current = u.current = null;
746
746
  }, H.isPending = function() {
747
747
  return !!u.current;
748
748
  }, H.flush = function() {
@@ -752,8 +752,8 @@ function Is(e, t, n) {
752
752
  return _;
753
753
  }
754
754
  function Cn(e, t, n) {
755
- var r = n === void 0 ? {} : n, i = r.leading, d = r.trailing;
756
- return Is(e, t, { maxWait: t, leading: i === void 0 || i, trailing: d === void 0 || d });
755
+ var r = n === void 0 ? {} : n, i = r.leading, l = r.trailing;
756
+ return Is(e, t, { maxWait: t, leading: i === void 0 || i, trailing: l === void 0 || l });
757
757
  }
758
758
  let Dt;
759
759
  const vt = (e = !0, t = !1, n = "window") => {
@@ -761,15 +761,15 @@ const vt = (e = !0, t = !1, n = "window") => {
761
761
  return;
762
762
  const [r, i] = C.useState(0) || [!1, () => {
763
763
  }];
764
- G(() => (a(), window.addEventListener("resize", l), () => {
765
- clearTimeout(Dt), l.flush(), window.removeEventListener("resize", l);
764
+ G(() => (a(), window.addEventListener("resize", d), () => {
765
+ clearTimeout(Dt), d.flush(), window.removeEventListener("resize", d);
766
766
  }), n === "window" ? [] : [n]);
767
767
  const u = () => {
768
768
  if (n)
769
769
  return n === "window" ? window.innerWidth : n.offsetWidth;
770
770
  }, a = () => {
771
771
  i(u());
772
- }, l = Cn(
772
+ }, d = Cn(
773
773
  () => {
774
774
  u() !== r && (t && (clearTimeout(Dt), document.body.classList.add("is-resizing"), Dt = setTimeout(() => {
775
775
  document.body.classList.remove("is-resizing");
@@ -790,21 +790,21 @@ const vt = (e = !0, t = !1, n = "window") => {
790
790
  }) => {
791
791
  if (!window)
792
792
  return;
793
- const [i, d] = C.useState({ current: 0, past: 0 }) || [!1, () => {
793
+ const [i, l] = C.useState({ current: 0, past: 0 }) || [!1, () => {
794
794
  }], [u, a] = C.useState({ scrollDown: !1, scrollUp: !1 }) || [!1, () => {
795
795
  }];
796
- G(() => (l(), window.addEventListener("scroll", o), () => {
796
+ G(() => (d(), window.addEventListener("scroll", o), () => {
797
797
  o.flush(), window.removeEventListener("scroll", o);
798
798
  }), []);
799
- const l = () => {
799
+ const d = () => {
800
800
  const m = window.scrollY, c = i.current, h = m - c, p = h > 0 ? "down" : "up";
801
- if (d({ current: m, past: c }), p === "down") {
801
+ if (l({ current: m, past: c }), p === "down") {
802
802
  m >= e + t.down && !u.scrollDown && (!u.scrollUp || h > t.up) && (n(), a({ scrollUp: !1, scrollDown: !0 }));
803
803
  return;
804
804
  }
805
805
  Math.abs(h) >= t.up && !u.scrollUp && (r(), a({ scrollUp: !0, scrollDown: !1 }));
806
806
  }, o = Cn(() => {
807
- l();
807
+ d();
808
808
  }, 250);
809
809
  return i;
810
810
  }, Bs = (e = [], t = !0) => {
@@ -827,10 +827,10 @@ const vt = (e = !0, t = !1, n = "window") => {
827
827
  }, Pn = (e, t, n) => {
828
828
  let r = n.mobile;
829
829
  for (const i in t) {
830
- const d = parseInt(String(t[i]));
831
- if (e >= d)
832
- r = n[d];
833
- else if (e < d)
830
+ const l = parseInt(String(t[i]));
831
+ if (e >= l)
832
+ r = n[l];
833
+ else if (e < l)
834
834
  break;
835
835
  }
836
836
  return r;
@@ -840,16 +840,16 @@ const vt = (e = !0, t = !1, n = "window") => {
840
840
  month: "short",
841
841
  year: "numeric"
842
842
  }), Gt = (e) => {
843
- let d;
843
+ let l;
844
844
  const u = _n(), a = _n(new Date(e));
845
845
  try {
846
- d = u.getTime() - a.getTime();
846
+ l = u.getTime() - a.getTime();
847
847
  } catch {
848
848
  return "";
849
849
  }
850
- const l = d / 36e5, o = Math.floor(d / 864e5);
850
+ const d = l / 36e5, o = Math.floor(l / 864e5);
851
851
  if (o < 1)
852
- return l < 1 ? { path: "now" } : { path: "hours", number: Math.floor(l) };
852
+ return d < 1 ? { path: "now" } : { path: "hours", number: Math.floor(d) };
853
853
  if (o < 7)
854
854
  return { path: "days", number: o };
855
855
  const m = Math.floor(o / 7);
@@ -1200,8 +1200,8 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1200
1200
  fr: Ws,
1201
1201
  pt: zs
1202
1202
  }, Symbol.toStringTag, { value: "Module" })), Fn = (e) => e in qt, Te = (e, t, n, r, i = {}) => {
1203
- let d = "";
1204
- return Fn(`${t}_${n}`) ? d = e({ id: `${t}_${n}` }, i) : d = e({ id: t }, { [r]: n, ...i }), d;
1203
+ let l = "";
1204
+ return Fn(`${t}_${n}`) ? l = e({ id: `${t}_${n}` }, i) : l = e({ id: t }, { [r]: n, ...i }), l;
1205
1205
  }, Ys = (e, t, n) => {
1206
1206
  if (!e || e === 0)
1207
1207
  return "0";
@@ -1209,9 +1209,9 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1209
1209
  let r = e.toString();
1210
1210
  t = Math.pow(10, t);
1211
1211
  for (let i = n.length - 1; i >= 0; i--) {
1212
- const d = Math.pow(10, (i + 1) * 3);
1213
- if (d <= e) {
1214
- e = Math.round(e * t / d) / t, e === 1e3 && i < n.length - 1 && (e = 1, i++), r = `${e}${n[i]}`;
1212
+ const l = Math.pow(10, (i + 1) * 3);
1213
+ if (l <= e) {
1214
+ e = Math.round(e * t / l) / t, e === 1e3 && i < n.length - 1 && (e = 1, i++), r = `${e}${n[i]}`;
1215
1215
  break;
1216
1216
  }
1217
1217
  }
@@ -1235,10 +1235,10 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1235
1235
  styling: n = { muted: !1, fullWidth: !1 },
1236
1236
  icon: r = !1,
1237
1237
  href: i = !1,
1238
- element: d = "button",
1238
+ element: l = "button",
1239
1239
  onClick: u = !1,
1240
1240
  className: a = "",
1241
- disabled: l = !1,
1241
+ disabled: d = !1,
1242
1242
  screenreaderText: o = !1,
1243
1243
  children: m = !1,
1244
1244
  ...c
@@ -1254,21 +1254,21 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1254
1254
  ...c,
1255
1255
  className: S(e, a, g, {
1256
1256
  "no-text": !m,
1257
- disabled: l,
1257
+ disabled: d,
1258
1258
  button: i
1259
1259
  }),
1260
1260
  onClick: (v) => {
1261
1261
  (!i || i[0] === "#") && u && (v.preventDefault(), v.stopPropagation()), u && u(v);
1262
1262
  },
1263
- disabled: typeof l == "object" && "isClickable" in l ? !l.isClickable : l
1263
+ disabled: typeof d == "object" && "isClickable" in d ? !d.isClickable : d
1264
1264
  };
1265
- return i && (d = "a", b.href = i), C.createElement(
1266
- d,
1265
+ return i && (l = "a", b.href = i), C.createElement(
1266
+ l,
1267
1267
  b,
1268
1268
  m || (o ? /* @__PURE__ */ s.jsx(_e, { showOnFocus: !1, children: o }) : null)
1269
1269
  );
1270
1270
  }, kt = ({ buttons: e, className: t = "", ...n }) => {
1271
- const r = e.length > 1 ? "ul" : "p", i = e.map((d, u) => r === "p" ? /* @__PURE__ */ s.jsx(W, { ...d }, u) : /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(W, { ...d }) }, u));
1271
+ const r = e.length > 1 ? "ul" : "p", i = e.map((l, u) => r === "p" ? /* @__PURE__ */ s.jsx(W, { ...l }, u) : /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(W, { ...l }) }, u));
1272
1272
  return C.createElement(r, { className: S("button-wrapper", t), ...n, children: i });
1273
1273
  };
1274
1274
  const Ue = ({ className: e = "", maxWidth: t = !1 }) => {
@@ -1280,18 +1280,18 @@ const Ue = ({ className: e = "", maxWidth: t = !1 }) => {
1280
1280
  fallbackElement: n,
1281
1281
  className: r = "",
1282
1282
  onClick: i,
1283
- gtmContext: d,
1283
+ gtmContext: l,
1284
1284
  gtmType: u,
1285
1285
  ...a
1286
1286
  }) => {
1287
1287
  if (e) {
1288
- const l = { ...a };
1289
- return i && (l.onClick = i), d && (l["data-gtm-event-context"] = d), u && (l["data-gtm-event-type"] = u), /* @__PURE__ */ s.jsx(
1288
+ const d = { ...a };
1289
+ return i && (d.onClick = i), l && (d["data-gtm-event-context"] = l), u && (d["data-gtm-event-type"] = u), /* @__PURE__ */ s.jsx(
1290
1290
  "a",
1291
1291
  {
1292
1292
  href: e,
1293
1293
  className: S("gtm-trackable", r),
1294
- ...l,
1294
+ ...d,
1295
1295
  children: t
1296
1296
  }
1297
1297
  );
@@ -1410,26 +1410,26 @@ const Ue = ({ className: e = "", maxWidth: t = !1 }) => {
1410
1410
  }, qs = ({ format: e, height: t, query: n, width: r }) => {
1411
1411
  let i = `w=${r}&h=${t}`;
1412
1412
  return i = e ? `${i}&fm=${e}` : i, i = n ? `${i}&${n}` : i, i;
1413
- }, Ct = ({ format: e, range: t, url: n, query: r }) => t.map(({ height: i, width: d }) => `${n}?${qs({
1413
+ }, Ct = ({ format: e, range: t, url: n, query: r }) => t.map(({ height: i, width: l }) => `${n}?${qs({
1414
1414
  format: e,
1415
1415
  height: i,
1416
1416
  query: r,
1417
- width: d
1418
- })} ${d}w`).join(", ");
1417
+ width: l
1418
+ })} ${l}w`).join(", ");
1419
1419
  const Ln = ({ image: e, className: t, testId: n }) => {
1420
1420
  const {
1421
1421
  description: r,
1422
1422
  height: i,
1423
- type: d,
1423
+ type: l,
1424
1424
  query: u,
1425
1425
  url: a,
1426
- width: l,
1426
+ width: d,
1427
1427
  loading: o,
1428
1428
  decoding: m,
1429
1429
  fetchPriority: c
1430
1430
  } = e, { range: h, sizes: p } = Ks(e), g = Ct({ format: "avif", query: u, range: h, url: a }), b = Ct({ format: "webp", query: u, range: h, url: a }), v = Ct({ format: "", query: u, range: h, url: a });
1431
1431
  return /* @__PURE__ */ s.jsxs("picture", { className: t, children: [
1432
- d !== "image/gif" && /* @__PURE__ */ s.jsx(
1432
+ l !== "image/gif" && /* @__PURE__ */ s.jsx(
1433
1433
  "source",
1434
1434
  {
1435
1435
  type: "image/avif",
@@ -1457,7 +1457,7 @@ const Ln = ({ image: e, className: t, testId: n }) => {
1457
1457
  loading: o || "lazy",
1458
1458
  decoding: m || "async",
1459
1459
  fetchpriority: c || "auto",
1460
- width: l,
1460
+ width: d,
1461
1461
  height: i,
1462
1462
  "data-testid": n || "image"
1463
1463
  }
@@ -1466,24 +1466,24 @@ const Ln = ({ image: e, className: t, testId: n }) => {
1466
1466
  };
1467
1467
  let Je = !1;
1468
1468
  const er = ({ isOpen: e = !1, isLoading: t = !1, children: n }) => {
1469
- const r = D(), i = de(null), [d, u] = P("hidden");
1469
+ const r = D(), i = de(null), [l, u] = P("hidden");
1470
1470
  G(() => {
1471
- const l = i.current;
1472
- if (l)
1473
- return l.addEventListener("transitionend", a), () => {
1474
- l.removeEventListener("transitionend", a);
1471
+ const d = i.current;
1472
+ if (d)
1473
+ return d.addEventListener("transitionend", a), () => {
1474
+ d.removeEventListener("transitionend", a);
1475
1475
  };
1476
1476
  }, []);
1477
- const a = ({ propertyName: l }) => {
1478
- l === "opacity" && (Je !== !1 && clearTimeout(Je), u((o) => o === "opening" ? "open" : o === "closing" ? "closed" : o === "closed" ? "hidden" : o));
1477
+ const a = ({ propertyName: d }) => {
1478
+ d === "opacity" && (Je !== !1 && clearTimeout(Je), u((o) => o === "opening" ? "open" : o === "closing" ? "closed" : o === "closed" ? "hidden" : o));
1479
1479
  };
1480
1480
  return He(() => {
1481
1481
  Je !== !1 && clearTimeout(Je);
1482
- let l = "open";
1483
- e ? u("opening") : (u("closing"), l = "hidden"), Je = setTimeout(() => {
1484
- u(l);
1482
+ let d = "open";
1483
+ e ? u("opening") : (u("closing"), d = "hidden"), Je = setTimeout(() => {
1484
+ u(d);
1485
1485
  }, 300);
1486
- }, [e]), /* @__PURE__ */ s.jsx("aside", { ref: i, className: S("tooltip text-medium", d, { loading: t }), hidden: d === "hidden", children: t ? /* @__PURE__ */ s.jsx("p", { children: r.formatMessage({ id: "tooltip_loading" }) }) : typeof n == "string" ? /* @__PURE__ */ s.jsx("p", { children: n }) : n });
1486
+ }, [e]), /* @__PURE__ */ s.jsx("aside", { ref: i, className: S("tooltip text-medium", l, { loading: t }), hidden: l === "hidden", children: t ? /* @__PURE__ */ s.jsx("p", { children: r.formatMessage({ id: "tooltip_loading" }) }) : typeof n == "string" ? /* @__PURE__ */ s.jsx("p", { children: n }) : n });
1487
1487
  };
1488
1488
  const en = ({ children: e, className: t = "", ...n }) => /* @__PURE__ */ s.jsx("section", { className: S("full-width-section", t), ...n, children: e });
1489
1489
  const Ba = ({ text: e, buttons: t, className: n = "" }) => {
@@ -1519,15 +1519,15 @@ const Qa = ({ title: e = !1, logos: t = [], className: n = "" }) => {
1519
1519
  {
1520
1520
  className: S({ "two-col": r === 2 || r === 4, "three-col": r === 5 || r <= 10 && r % 3 === 0 }),
1521
1521
  children: t.map(
1522
- ({ logo: d, nameOfBusiness: u, link: a = !1, description: l = !1 }, o) => {
1523
- if (!d || !d.url)
1522
+ ({ logo: l, nameOfBusiness: u, link: a = !1, description: d = !1 }, o) => {
1523
+ if (!l || !l.url)
1524
1524
  return null;
1525
1525
  const m = /* @__PURE__ */ s.jsx(
1526
1526
  "img",
1527
1527
  {
1528
- src: d.url,
1529
- width: d.width || "auto",
1530
- height: d.height || "auto",
1528
+ src: l.url,
1529
+ width: l.width || "auto",
1530
+ height: l.height || "auto",
1531
1531
  alt: u
1532
1532
  }
1533
1533
  );
@@ -1541,8 +1541,8 @@ const Qa = ({ title: e = !1, logos: t = [], className: n = "" }) => {
1541
1541
  children: m
1542
1542
  }
1543
1543
  ) : m }),
1544
- l && /* @__PURE__ */ s.jsx("small", { children: l })
1545
- ] }, window.btoa(`${d.url}_${o}`));
1544
+ d && /* @__PURE__ */ s.jsx("small", { children: d })
1545
+ ] }, window.btoa(`${l.url}_${o}`));
1546
1546
  }
1547
1547
  )
1548
1548
  }
@@ -1569,7 +1569,7 @@ const tr = [
1569
1569
  image: n,
1570
1570
  variant: r = "default",
1571
1571
  spacing: i = "normal",
1572
- hideElements: d = {
1572
+ hideElements: l = {
1573
1573
  eyebrow: !1,
1574
1574
  title: !1,
1575
1575
  text: !1
@@ -1577,13 +1577,13 @@ const tr = [
1577
1577
  cta: u,
1578
1578
  children: a
1579
1579
  }) => {
1580
- const l = ["eyebrow", "title", "text"], o = { eyebrow: "small", title: "h1", text: "p" }, m = {};
1581
- return l.forEach((c) => {
1580
+ const d = ["eyebrow", "title", "text"], o = { eyebrow: "small", title: "h1", text: "p" }, m = {};
1581
+ return d.forEach((c) => {
1582
1582
  if (!t[c]) {
1583
1583
  m[c] = !1;
1584
1584
  return;
1585
1585
  }
1586
- if (!d[c]) {
1586
+ if (!l[c]) {
1587
1587
  if (typeof t[c] == "object") {
1588
1588
  m[c] = t[c];
1589
1589
  const { text: h, element: p } = t[c];
@@ -1613,7 +1613,7 @@ const tr = [
1613
1613
  }),
1614
1614
  children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1615
1615
  /* @__PURE__ */ s.jsxs("div", { className: "content-wrapper", children: [
1616
- l.map((c) => {
1616
+ d.map((c) => {
1617
1617
  if (m[c] && typeof m[c] == "object") {
1618
1618
  const { text: h, element: p = "" } = m[c];
1619
1619
  return C.createElement(
@@ -1674,14 +1674,14 @@ const yt = ({
1674
1674
  className: r = ""
1675
1675
  }) => {
1676
1676
  let i = n && !!Object.keys(n).length;
1677
- const d = typeof n == "object" && "breakpoints" in n, u = vt(d);
1678
- if (d && typeof n == "object" && typeof u == "number") {
1677
+ const l = typeof n == "object" && "breakpoints" in n, u = vt(l);
1678
+ if (l && typeof n == "object" && typeof u == "number") {
1679
1679
  const c = Object.assign({}, n.breakpoints), h = An(Object.keys(c));
1680
1680
  i = Pn(u, h, c);
1681
1681
  }
1682
1682
  const {
1683
1683
  breakpoints: a,
1684
- text: l = "",
1684
+ text: d = "",
1685
1685
  component: o,
1686
1686
  ...m
1687
1687
  } = n;
@@ -1697,7 +1697,7 @@ const yt = ({
1697
1697
  {
1698
1698
  ...m,
1699
1699
  variant: n.variant ? n.variant : "secondary",
1700
- children: l
1700
+ children: d
1701
1701
  }
1702
1702
  ))
1703
1703
  ] })
@@ -1722,7 +1722,7 @@ const sr = ({ type: e = "default", className: t = "", heading: n = !1, children:
1722
1722
  ) : /* @__PURE__ */ s.jsx("p", { children: r })
1723
1723
  ] });
1724
1724
  const za = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children: i }) => {
1725
- const d = D(), u = de(null), [a, l] = P(""), [o, m] = P("closed");
1725
+ const l = D(), u = de(null), [a, d] = P(""), [o, m] = P("closed");
1726
1726
  G(() => {
1727
1727
  const p = u.current;
1728
1728
  if (p)
@@ -1734,7 +1734,7 @@ const za = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
1734
1734
  return;
1735
1735
  const p = r.split(`
1736
1736
  `);
1737
- l(p.length < 3 ? `${r.substring(0, 400)}...` : p.slice(0, 3).join(`
1737
+ d(p.length < 3 ? `${r.substring(0, 400)}...` : p.slice(0, 3).join(`
1738
1738
  `));
1739
1739
  }, [r]), G(() => {
1740
1740
  o === "ready-to-close" && m("closing");
@@ -1760,7 +1760,7 @@ const za = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
1760
1760
  onClick: () => {
1761
1761
  m(h ? "ready-to-close" : "opening");
1762
1762
  },
1763
- children: h ? n || d.formatMessage({ id: "hideShowTextBox_hide" }) : t || d.formatMessage({ id: "hideShowTextBox_show" })
1763
+ children: h ? n || l.formatMessage({ id: "hideShowTextBox_hide" }) : t || l.formatMessage({ id: "hideShowTextBox_show" })
1764
1764
  }
1765
1765
  ) })
1766
1766
  ] });
@@ -1770,11 +1770,11 @@ const za = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
1770
1770
  return null;
1771
1771
  let n = t.formatMessage({ id: "markdown_collapsibleSection_summary" });
1772
1772
  const r = [];
1773
- for (const d of zt.toArray(e))
1774
- if (!(!d || typeof d == "string" || typeof d == "number"))
1775
- if (C.isValidElement(d) && d.type === "summary") {
1776
- if (d.props && d.props.children) {
1777
- for (const u of zt.toArray(d.props.children))
1773
+ for (const l of zt.toArray(e))
1774
+ if (!(!l || typeof l == "string" || typeof l == "number"))
1775
+ if (C.isValidElement(l) && l.type === "summary") {
1776
+ if (l.props && l.props.children) {
1777
+ for (const u of zt.toArray(l.props.children))
1778
1778
  if (!(!u || typeof u == "string" || typeof u == "number") && C.isValidElement(u)) {
1779
1779
  const a = u.type;
1780
1780
  if (or.includes(a)) {
@@ -1785,14 +1785,14 @@ const za = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
1785
1785
  }
1786
1786
  }
1787
1787
  } else
1788
- r.push(d);
1788
+ r.push(l);
1789
1789
  const i = n ? n.toString() : "";
1790
1790
  return /* @__PURE__ */ s.jsx(
1791
1791
  In,
1792
1792
  {
1793
1793
  label: i,
1794
1794
  className: ["Sources", "Resources"].includes(i) ? "discrete-links" : "",
1795
- children: r.map((d) => d)
1795
+ children: r.map((l) => l)
1796
1796
  }
1797
1797
  );
1798
1798
  }, cr = ({ children: e, ...t }) => {
@@ -1825,11 +1825,11 @@ const za = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
1825
1825
  let n = { ...t };
1826
1826
  t.href && (t.href.includes("http:") || t.href.includes("https:")) && !t.target && (n.target = "_blank");
1827
1827
  let r = e, i = !1;
1828
- for (const d of zt.toArray(e))
1829
- if (!(!d || typeof d == "string" || typeof d == "number") && C.isValidElement(d)) {
1830
- const u = d.type;
1831
- if (["button", "center", "span", "strong"].includes(u) && d.props && d.props.children && d.props.children[0])
1832
- for ((u === "button" || bn(d.props.children[0]) === "button") && (i = !0), r = d.props.children[0]; r && typeof r != "string" && !(typeof r == "boolean" || typeof r == "number" || !C.isValidElement(r)); )
1828
+ for (const l of zt.toArray(e))
1829
+ if (!(!l || typeof l == "string" || typeof l == "number") && C.isValidElement(l)) {
1830
+ const u = l.type;
1831
+ if (["button", "center", "span", "strong"].includes(u) && l.props && l.props.children && l.props.children[0])
1832
+ for ((u === "button" || bn(l.props.children[0]) === "button") && (i = !0), r = l.props.children[0]; r && typeof r != "string" && !(typeof r == "boolean" || typeof r == "number" || !C.isValidElement(r)); )
1833
1833
  if (r.props && r.props.children && r.props.children[0])
1834
1834
  r = r.props.children[0], r && bn(r) === "button" && (i = !0);
1835
1835
  else
@@ -1866,9 +1866,9 @@ const mr = ({
1866
1866
  children: r,
1867
1867
  className: i = ""
1868
1868
  }) => {
1869
- const d = e ? { "--max-width": `${e / 16}rem` } : {};
1869
+ const l = e ? { "--max-width": `${e / 16}rem` } : {};
1870
1870
  return /* @__PURE__ */ s.jsxs("section", { className: S("page-heading", i), children: [
1871
- /* @__PURE__ */ s.jsxs("div", { className: S("content", { "has-max-width": e }), style: d, children: [
1871
+ /* @__PURE__ */ s.jsxs("div", { className: S("content", { "has-max-width": e }), style: l, children: [
1872
1872
  t && t.text && C.createElement(t.element || "h1", { className: "title" }, t.text),
1873
1873
  n && n.text && C.createElement(
1874
1874
  n.element || "h2",
@@ -1888,8 +1888,8 @@ const ft = ({
1888
1888
  }) => /* @__PURE__ */ s.jsx("span", { className: S("pill", e, t, n), ...i, children: r });
1889
1889
  const Xt = ({ element: e = "p", children: t = null, className: n = "", ...r }) => C.createElement(e, { ...r, className: S("status-banner text-small", n), "aria-live": "assertive" }, t);
1890
1890
  const fr = ({ progress: e = 0, text: t = !1, className: n = "" }) => {
1891
- const r = D(), i = e > 75 ? 100 : e > 50 ? 75 : e > 25 ? 50 : e > 5 ? 25 : 0, d = { "--progress": `${e}%` };
1892
- return /* @__PURE__ */ s.jsx("span", { className: S(`progress-bar section-${i}`, n), style: d, children: /* @__PURE__ */ s.jsx(_e, { children: t ? `${e} ${t}` : r.formatMessage({ id: "progressBar" }, { number: e }) }) });
1891
+ const r = D(), i = e > 75 ? 100 : e > 50 ? 75 : e > 25 ? 50 : e > 5 ? 25 : 0, l = { "--progress": `${e}%` };
1892
+ return /* @__PURE__ */ s.jsx("span", { className: S(`progress-bar section-${i}`, n), style: l, children: /* @__PURE__ */ s.jsx(_e, { children: t ? `${e} ${t}` : r.formatMessage({ id: "progressBar" }, { number: e }) }) });
1893
1893
  }, hr = We(fr);
1894
1894
  const At = "loadingBlock_", pr = ({ progress: e = 0, steps: t = !1, className: n = "" }) => {
1895
1895
  const r = D();
@@ -1899,9 +1899,9 @@ const At = "loadingBlock_", pr = ({ progress: e = 0, steps: t = !1, className: n
1899
1899
  100: { text: r.formatMessage({ id: `${At}complete` }) }
1900
1900
  });
1901
1901
  let i = null;
1902
- const d = Object.keys(t);
1903
- for (let a = 0; a < d.length && !(e < parseInt(d[a])); a++)
1904
- i = d[a];
1902
+ const l = Object.keys(t);
1903
+ for (let a = 0; a < l.length && !(e < parseInt(l[a])); a++)
1904
+ i = l[a];
1905
1905
  const u = i && t[i].icon ? { "--icon": `url(${mt}icons/${t[i].icon}.svg)` } : {};
1906
1906
  return /* @__PURE__ */ s.jsxs(
1907
1907
  Re,
@@ -1952,10 +1952,10 @@ const vn = 256, qe = ({
1952
1952
  name: n,
1953
1953
  alt: r,
1954
1954
  width: i = vn,
1955
- height: d = vn,
1955
+ height: l = vn,
1956
1956
  ...u
1957
1957
  }) => {
1958
- const [a, l] = P(!1), o = de(null);
1958
+ const [a, d] = P(!1), o = de(null);
1959
1959
  G(() => {
1960
1960
  const c = o.current;
1961
1961
  if (!c)
@@ -1963,7 +1963,7 @@ const vn = 256, qe = ({
1963
1963
  const h = c.getContext("2d");
1964
1964
  if (!h)
1965
1965
  return;
1966
- const p = i, g = d;
1966
+ const p = i, g = l;
1967
1967
  typeof window < "u" && window.devicePixelRatio && (c.width = p * window.devicePixelRatio, c.height = g * window.devicePixelRatio, h.scale(window.devicePixelRatio, window.devicePixelRatio)), h.fillStyle = gr(n), h.fillRect(0, 0, p, g), h.font = `${p / 3}px Arial`, h.textAlign = "center", h.fillStyle = "white", h.fillText(Qn(n), p / 2, g / 1.6);
1968
1968
  }, [n]);
1969
1969
  let m = !1;
@@ -1978,10 +1978,10 @@ const vn = 256, qe = ({
1978
1978
  src: t,
1979
1979
  alt: r || n,
1980
1980
  onError: () => {
1981
- l(!0);
1981
+ d(!0);
1982
1982
  },
1983
1983
  width: i,
1984
- height: d
1984
+ height: l
1985
1985
  }
1986
1986
  ) : /* @__PURE__ */ s.jsx("canvas", { ref: o })
1987
1987
  }
@@ -2003,12 +2003,12 @@ const vn = 256, qe = ({
2003
2003
  country: n = "",
2004
2004
  maximumCharacters: r = 80
2005
2005
  }) => {
2006
- const i = e !== "", d = t !== "", u = n !== "";
2007
- if (!i && !d && !u)
2006
+ const i = e !== "", l = t !== "", u = n !== "";
2007
+ if (!i && !l && !u)
2008
2008
  return "";
2009
- const a = `${e}${i && d ? ` — ${t}` : t}`;
2010
- let l = `${a}${(i || d) && u ? `, ${n}` : n}`;
2011
- return l.length > r && (l = a), l.length > r && (l = Qe(l, r)), l;
2009
+ const a = `${e}${i && l ? ` — ${t}` : t}`;
2010
+ let d = `${a}${(i || l) && u ? `, ${n}` : n}`;
2011
+ return d.length > r && (d = a), d.length > r && (d = Qe(d, r)), d;
2012
2012
  };
2013
2013
  const tn = ({
2014
2014
  element: e = "div",
@@ -2016,13 +2016,13 @@ const tn = ({
2016
2016
  additionalContent: n = !1,
2017
2017
  gtmContext: r = "member",
2018
2018
  gtmType: i = "member-click",
2019
- className: d = ""
2019
+ className: l = ""
2020
2020
  }) => {
2021
2021
  const u = D(), a = Hn(t);
2022
2022
  a.name || (a.name = u.formatMessage({ id: `member_${typeof t == "string" ? t : "community"}` }));
2023
- const { name: l, url: o, image: m } = a, c = _r(a), h = n && n.createdAt ? Gt(n.createdAt) : !1, p = n && n.createdAt ? Rn(n.createdAt) : "";
2023
+ const { name: d, url: o, image: m } = a, c = _r(a), h = n && n.createdAt ? Gt(n.createdAt) : !1, p = n && n.createdAt ? Rn(n.createdAt) : "";
2024
2024
  return C.createElement(e, {
2025
- className: S("member text-medium", d),
2025
+ className: S("member text-medium", l),
2026
2026
  children: /* @__PURE__ */ s.jsxs(
2027
2027
  jt,
2028
2028
  {
@@ -2033,9 +2033,9 @@ const tn = ({
2033
2033
  g == null || g.stopPropagation();
2034
2034
  },
2035
2035
  children: [
2036
- /* @__PURE__ */ s.jsx(qe, { name: l, src: m }),
2036
+ /* @__PURE__ */ s.jsx(qe, { name: d, src: m }),
2037
2037
  /* @__PURE__ */ s.jsxs("p", { className: "details", children: [
2038
- /* @__PURE__ */ s.jsx("strong", { children: l }),
2038
+ /* @__PURE__ */ s.jsx("strong", { children: d }),
2039
2039
  n && /* @__PURE__ */ s.jsxs("span", { className: "additional-content", children: [
2040
2040
  n.createdAt && h && /* @__PURE__ */ s.jsx("span", { className: "date", title: p, "aria-label": p, children: u.formatMessage({ id: `dates_${h.path}` }, { number: h.number }) }),
2041
2041
  n.didEdit && /* @__PURE__ */ s.jsx("em", { children: u.formatMessage({ id: "discussion_edited" }) })
@@ -2053,20 +2053,20 @@ const kn = {
2053
2053
  }, Un = ({
2054
2054
  element: e = "div",
2055
2055
  contributors: { total: t, data: n } = { total: void 0, data: [] },
2056
- styling: { showText: r, size: i, showGap: d, showPlaceholders: u } = {
2056
+ styling: { showText: r, size: i, showGap: l, showPlaceholders: u } = {
2057
2057
  showText: !0,
2058
2058
  size: "medium",
2059
2059
  showGap: !0,
2060
2060
  showPlaceholders: !1
2061
2061
  },
2062
2062
  cutoff: a = 2,
2063
- className: l = "",
2063
+ className: d = "",
2064
2064
  ...o
2065
2065
  }) => {
2066
2066
  const m = D();
2067
2067
  return !n || n.length === 0 ? null : C.createElement(e, {
2068
2068
  ...o,
2069
- className: S("contributors", l, i, { "has-gap": d }),
2069
+ className: S("contributors", d, i, { "has-gap": l }),
2070
2070
  children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
2071
2071
  /* @__PURE__ */ s.jsx("ul", { children: n.map((c, h) => {
2072
2072
  let p, g = "";
@@ -2120,10 +2120,10 @@ const kn = {
2120
2120
  };
2121
2121
  var br = Kt({ client: dt });
2122
2122
  function wr(e) {
2123
- var t = e.children, n = e.client, r = e.apiKey, i = e.options, d = xt(function() {
2123
+ var t = e.children, n = e.client, r = e.apiKey, i = e.options, l = xt(function() {
2124
2124
  return n && r && console.warn("[PostHog.js] You have provided both a client and an apiKey to PostHogProvider. The apiKey will be ignored in favour of the client."), n && i && console.warn("[PostHog.js] You have provided both a client and options to PostHogProvider. The options will be ignored in favour of the client."), n || (r && (dt.__loaded && console.warn("[PostHog.js] was already loaded elsewhere. This may cause issues."), dt.init(r, i)), dt);
2125
2125
  }, [n, r]);
2126
- return C.createElement(br.Provider, { value: { client: d } }, t);
2126
+ return C.createElement(br.Provider, { value: { client: l } }, t);
2127
2127
  }
2128
2128
  const vr = ({ children: e, user: t }) => t.isLoading ? null : process.env.REACT_APP_PUBLIC_POSTHOG_KEY ? /* @__PURE__ */ s.jsx(
2129
2129
  wr,
@@ -2151,15 +2151,15 @@ const vr = ({ children: e, user: t }) => t.isLoading ? null : process.env.REACT_
2151
2151
  }, $e = Kt(null), jr = ({ children: e, user: t }) => /* @__PURE__ */ s.jsx($e.Provider, { value: t, children: e }), Ga = ({ bootstrap: e, children: t, intl: n }) => {
2152
2152
  const [r, i] = P({ isLoading: !0 });
2153
2153
  return G(() => {
2154
- e().then((d) => {
2155
- i({ ...d, isLoading: !1 }), Gs(5e3);
2154
+ e().then((l) => {
2155
+ i({ ...l, isLoading: !1 }), Gs(5e3);
2156
2156
  }).catch(() => i({ isLoading: !1 }));
2157
2157
  }, []), /* @__PURE__ */ s.jsx(kr, { locale: n == null ? void 0 : n.locale, messages: n == null ? void 0 : n.messages, children: /* @__PURE__ */ s.jsx(Es, { children: /* @__PURE__ */ s.jsx(jr, { user: r, children: /* @__PURE__ */ s.jsx(xr, { children: /* @__PURE__ */ s.jsx(vr, { user: r, children: t }) }) }) }) });
2158
2158
  };
2159
2159
  const Pt = "joinCommunityButton", Wn = ({ isMember: e = !1, isShort: t = !1, functions: { join: n, leave: r } = { join: () => {
2160
2160
  }, leave: () => {
2161
2161
  } } }) => {
2162
- const i = D(), d = je($e), u = d && typeof d.id == "string", [a, l] = P(e), [o, m] = P(e ? "joined" : "notJoined");
2162
+ const i = D(), l = je($e), u = l && typeof l.id == "string", [a, d] = P(e), [o, m] = P(e ? "joined" : "notJoined");
2163
2163
  G(() => {
2164
2164
  o === "joining" ? m("joined") : o === "leaving" && m("notJoined");
2165
2165
  }, [a]);
@@ -2172,7 +2172,7 @@ const Pt = "joinCommunityButton", Wn = ({ isMember: e = !1, isShort: t = !1, fun
2172
2172
  styling: { fullWidth: !0 },
2173
2173
  icon: a && o !== "leaving" ? { icon: "tick", position: "left" } : !1,
2174
2174
  onClick: async (p) => {
2175
- u && (p.currentTarget.blur(), a ? (m("leaving"), typeof r == "function" && await r()) : (m("joining"), typeof n == "function" && await n()), l(!a));
2175
+ u && (p.currentTarget.blur(), a ? (m("leaving"), typeof r == "function" && await r()) : (m("joining"), typeof n == "function" && await n()), d(!a));
2176
2176
  },
2177
2177
  className: S("join-community-button", o, { active: o === "joining" }),
2178
2178
  disabled: !u,
@@ -2186,9 +2186,9 @@ const Rt = "communityDetails_", Ja = ({
2186
2186
  isMember: t = !1,
2187
2187
  slug: n,
2188
2188
  members: { number: r = 0, data: i = [] } = { number: 0, data: [] },
2189
- functions: { invite: d, ...u }
2189
+ functions: { invite: l, ...u }
2190
2190
  }) => {
2191
- const a = D(), l = 5, o = r || i.length, m = i.length ? i : Array(l).fill({});
2191
+ const a = D(), d = 5, o = r || i.length, m = i.length ? i : Array(d).fill({});
2192
2192
  return /* @__PURE__ */ s.jsxs("div", { className: S("community-details", e), children: [
2193
2193
  /* @__PURE__ */ s.jsx(Ue, {}),
2194
2194
  /* @__PURE__ */ s.jsxs("div", { className: "member-details", children: [
@@ -2211,7 +2211,7 @@ const Rt = "communityDetails_", Ja = ({
2211
2211
  showGap: !0,
2212
2212
  showPlaceholders: o === 0
2213
2213
  },
2214
- cutoff: l
2214
+ cutoff: d
2215
2215
  }
2216
2216
  )
2217
2217
  ] }),
@@ -2220,7 +2220,7 @@ const Rt = "communityDetails_", Ja = ({
2220
2220
  W,
2221
2221
  {
2222
2222
  variant: "primary",
2223
- onClick: d,
2223
+ onClick: l,
2224
2224
  icon: { icon: "plus" },
2225
2225
  styling: { fullWidth: !0 },
2226
2226
  children: a.formatMessage({ id: `${Rt}invite` })
@@ -2236,9 +2236,9 @@ const Xa = ({
2236
2236
  const r = D();
2237
2237
  return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
2238
2238
  /* @__PURE__ */ s.jsx(_e, { element: "p", children: r.formatMessage({ id: "breadcrumbs_label" }) }),
2239
- /* @__PURE__ */ s.jsx("ul", { className: S("breadcrumbs text-small", n), children: e.map(({ text: i, href: d, current: u = !1 }, a) => /* @__PURE__ */ s.jsxs("li", { children: [
2239
+ /* @__PURE__ */ s.jsx("ul", { className: S("breadcrumbs text-small", n), children: e.map(({ text: i, href: l, current: u = !1 }, a) => /* @__PURE__ */ s.jsxs("li", { children: [
2240
2240
  u && /* @__PURE__ */ s.jsx(_e, { element: "span", children: r.formatMessage({ id: "breadcrumbs_currentPage" }) }),
2241
- /* @__PURE__ */ s.jsx(jt, { href: u ? void 0 : d, children: Qe(i, t) })
2241
+ /* @__PURE__ */ s.jsx(jt, { href: u ? void 0 : l, children: Qe(i, t) })
2242
2242
  ] }, `${window.btoa(i)}_${a}`)) })
2243
2243
  ] });
2244
2244
  };
@@ -2250,14 +2250,14 @@ const Za = ({
2250
2250
  },
2251
2251
  className: i = ""
2252
2252
  }) => {
2253
- const d = D(), u = t ? [{ id: "all", text: typeof t != "boolean" && t.text || d.formatMessage({ id: "filters_all" }) }, ...e] : e, [a, l] = P(t ? ["all"] : []), o = (m, c) => {
2253
+ const l = D(), u = t ? [{ id: "all", text: typeof t != "boolean" && t.text || l.formatMessage({ id: "filters_all" }) }, ...e] : e, [a, d] = P(t ? ["all"] : []), o = (m, c) => {
2254
2254
  let h = [];
2255
- a.includes(m) ? h = a.filter((p) => p !== m) : m === "all" ? h = ["all"] : n ? h = [...a.filter((p) => p !== "all"), m] : h = [m], l((p) => (r && typeof r == "function" && r({ current: h, previous: p }), h)), c && typeof c == "function" && c();
2255
+ a.includes(m) ? h = a.filter((p) => p !== m) : m === "all" ? h = ["all"] : n ? h = [...a.filter((p) => p !== "all"), m] : h = [m], d((p) => (r && typeof r == "function" && r({ current: h, previous: p }), h)), c && typeof c == "function" && c();
2256
2256
  };
2257
2257
  return /* @__PURE__ */ s.jsx("ul", { className: S("filters", i), children: u.map(({ id: m, text: c, disabled: h = !1, callback: p = () => {
2258
2258
  } }) => {
2259
2259
  let g = {};
2260
- return h && (g = { disabled: !0, "aria-label": d.formatMessage({ id: "filters_disabled" }, { name: c }) }), /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(
2260
+ return h && (g = { disabled: !0, "aria-label": l.formatMessage({ id: "filters_disabled" }, { name: c }) }), /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(
2261
2261
  "button",
2262
2262
  {
2263
2263
  className: S(m, { selected: a.includes(m) }),
@@ -2274,8 +2274,8 @@ const Za = ({
2274
2274
  if (!t || !t.length)
2275
2275
  return `/${n}`;
2276
2276
  let r = "";
2277
- return t.forEach(({ url: i, position: d }) => {
2278
- d === "before-lang" ? r += `/${i}` : (r.includes(`/${n}/`) || (r += `/${n}`), r += `/${i}`);
2277
+ return t.forEach(({ url: i, position: l }) => {
2278
+ l === "before-lang" ? r += `/${i}` : (r.includes(`/${n}/`) || (r += `/${n}`), r += `/${i}`);
2279
2279
  }), r.includes(`/${n}/`) || (r += `/${n}`), r;
2280
2280
  };
2281
2281
  const Ft = { en: "English", es: "Español", fr: "Français", pt: "Português" }, rt = "languageSwitcher_", Ka = ({
@@ -2285,10 +2285,10 @@ const Ft = { en: "English", es: "Español", fr: "Français", pt: "Português" },
2285
2285
  translations: r,
2286
2286
  onChange: i = () => {
2287
2287
  },
2288
- urlParts: d,
2288
+ urlParts: l,
2289
2289
  variant: u = "default",
2290
2290
  label: a,
2291
- className: l = ""
2291
+ className: d = ""
2292
2292
  }) => {
2293
2293
  const o = D(), [m, c] = P(e);
2294
2294
  if (G(() => {
@@ -2296,7 +2296,7 @@ const Ft = { en: "English", es: "Español", fr: "Français", pt: "Português" },
2296
2296
  }, [e]), !r || !Object.values(r).some((b) => b && b.post_name))
2297
2297
  return null;
2298
2298
  const p = Object.keys(r), g = m !== e;
2299
- return /* @__PURE__ */ s.jsxs("div", { className: S("language-switcher text-small", u, l), children: [
2299
+ return /* @__PURE__ */ s.jsxs("div", { className: S("language-switcher text-small", u, d), children: [
2300
2300
  /* @__PURE__ */ s.jsxs("nav", { children: [
2301
2301
  u !== "short" && /* @__PURE__ */ s.jsx("p", { children: a || o.formatMessage({ id: `${rt}label` }) }),
2302
2302
  /* @__PURE__ */ s.jsx("ul", { children: p.map((b) => {
@@ -2305,7 +2305,7 @@ const Ft = { en: "English", es: "Español", fr: "Français", pt: "Português" },
2305
2305
  let v = { className: b };
2306
2306
  return m === b ? v["aria-label"] = o.formatMessage({ id: `${rt}selected` }, { language: Ft[b] }) : v = {
2307
2307
  ...v,
2308
- href: yr(b, d),
2308
+ href: yr(b, l),
2309
2309
  onClick: (E) => {
2310
2310
  E.preventDefault(), E.stopPropagation(), c(b), i(b);
2311
2311
  }
@@ -2328,51 +2328,57 @@ const Ft = { en: "English", es: "Español", fr: "Français", pt: "Português" },
2328
2328
  ] });
2329
2329
  };
2330
2330
  const Lt = vs({ locale: "en", messages: qt }), Er = ({
2331
- hasNextPage: e,
2332
- loadNextPage: t,
2333
- icon: n = !1,
2334
- messages: r = {
2331
+ page: e = 1,
2332
+ length: t = 0,
2333
+ limit: n = 10,
2334
+ loadNextPage: r = () => {
2335
+ },
2336
+ icon: i = !1,
2337
+ messages: l = {
2335
2338
  button: Lt.formatMessage({ id: "loadMore_button" }),
2336
2339
  endOfFeed: Lt.formatMessage({ id: "loadMore_endOfFeed" }),
2337
2340
  error: Lt.formatMessage({ id: "loadMore_error" })
2338
2341
  },
2339
- className: i = "",
2340
- gtmContext: d = "LoadMore"
2342
+ className: u = "",
2343
+ gtmContext: a = "LoadMore"
2341
2344
  }) => {
2342
- const [u, a] = P(!1), [l, o] = P(e), m = async (c) => {
2345
+ const [d, o] = P(!1), [m, c] = P(!1);
2346
+ if (t <= 0 || t < n * e)
2347
+ return null;
2348
+ const h = async (p) => {
2343
2349
  try {
2344
- await t(c);
2345
- } catch (h) {
2346
- h instanceof Error && h.message && h.message.includes("Cannot read items") ? o(!1) : a(!0);
2350
+ await r(p);
2351
+ } catch (g) {
2352
+ g instanceof Error && g.message && g.message.includes("Cannot read items") ? c(!0) : o(!0);
2347
2353
  }
2348
2354
  };
2349
- return /* @__PURE__ */ s.jsxs("footer", { className: S("load-more", i), children: [
2350
- u && /* @__PURE__ */ s.jsx("p", { className: "error", children: r.error }),
2351
- l ? /* @__PURE__ */ s.jsx(
2355
+ return /* @__PURE__ */ s.jsxs("footer", { className: S("load-more", u), children: [
2356
+ d && /* @__PURE__ */ s.jsx("p", { className: "error", children: l.error }),
2357
+ m ? /* @__PURE__ */ s.jsx("p", { children: l.endOfFeed }) : /* @__PURE__ */ s.jsx(
2352
2358
  W,
2353
2359
  {
2354
2360
  variant: "secondary",
2355
- icon: n,
2356
- onClick: m,
2357
- "data-gtm-event-context": d,
2361
+ icon: i,
2362
+ onClick: h,
2363
+ "data-gtm-event-context": a,
2358
2364
  "data-gtm-event-type": "load-more-click",
2359
2365
  className: "gtm-trackable",
2360
2366
  "data-testid": "load-more-button",
2361
- children: r.button
2367
+ children: l.button
2362
2368
  }
2363
- ) : /* @__PURE__ */ s.jsx("p", { children: r.endOfFeed })
2369
+ )
2364
2370
  ] });
2365
2371
  };
2366
2372
  const zn = ({ variant: e = "default", version: t = "default", className: n = "", ...r }) => /* @__PURE__ */ s.jsx("p", { className: "logo-wrapper", children: /* @__PURE__ */ s.jsx("a", { href: "/home/", className: S("logo", e, t, n), ...r, children: /* @__PURE__ */ s.jsx(_e, { children: /* @__PURE__ */ s.jsx(Pe, { id: "apolitical" }) }) }) });
2367
2373
  let at = !1;
2368
2374
  const Sr = ({ element: e = "div", id: t = "more-menu", options: n, className: r = "" }) => {
2369
- const i = D(), d = de(null), [u, a] = P(!1), l = (o) => {
2370
- d.current && o.target instanceof HTMLElement && !d.current.contains(o.target) && a(!1);
2375
+ const i = D(), l = de(null), [u, a] = P(!1), d = (o) => {
2376
+ l.current && o.target instanceof HTMLElement && !l.current.contains(o.target) && a(!1);
2371
2377
  };
2372
- return G(() => (document.addEventListener("click", l, !0), () => {
2373
- document.removeEventListener("click", l, !0);
2378
+ return G(() => (document.addEventListener("click", d, !0), () => {
2379
+ document.removeEventListener("click", d, !0);
2374
2380
  })), C.createElement(e, {
2375
- ref: d,
2381
+ ref: l,
2376
2382
  className: S("more-menu text-medium", r),
2377
2383
  children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
2378
2384
  /* @__PURE__ */ s.jsx(
@@ -2441,14 +2447,14 @@ const Tr = [
2441
2447
  ], Mr = ({ activeLink: e }) => {
2442
2448
  const t = D(), n = je($e), r = n && typeof n.id == "string";
2443
2449
  return /* @__PURE__ */ s.jsxs("ul", { id: "navigation-menu", className: "text-medium", children: [
2444
- Tr.map(({ key: i, href: d }) => /* @__PURE__ */ s.jsx(
2450
+ Tr.map(({ key: i, href: l }) => /* @__PURE__ */ s.jsx(
2445
2451
  "li",
2446
2452
  {
2447
- className: S(i, { active: $r(d, e) }),
2453
+ className: S(i, { active: $r(l, e) }),
2448
2454
  children: /* @__PURE__ */ s.jsx(
2449
2455
  "a",
2450
2456
  {
2451
- href: d,
2457
+ href: l,
2452
2458
  "data-gtm-event-type": `${i}-click`,
2453
2459
  "data-gtm-event-context": "NavigationMenu",
2454
2460
  className: "gtm-trackable",
@@ -2527,13 +2533,13 @@ const Dr = "shareLinks_", qa = ({
2527
2533
  referrer: n,
2528
2534
  gtmContext: r = "ShareLinks",
2529
2535
  size: i = "large",
2530
- variant: d = "default",
2536
+ variant: l = "default",
2531
2537
  className: u = ""
2532
2538
  }) => {
2533
- const a = D(), l = Nr({ title: e, link: t, referrer: n });
2534
- return /* @__PURE__ */ s.jsxs("aside", { className: S("share-links", i, d, u), children: [
2539
+ const a = D(), d = Nr({ title: e, link: t, referrer: n });
2540
+ return /* @__PURE__ */ s.jsxs("aside", { className: S("share-links", i, l, u), children: [
2535
2541
  /* @__PURE__ */ s.jsx("p", { className: "text-small", children: a.formatMessage({ id: "shareLinks_label" }) }),
2536
- /* @__PURE__ */ s.jsx("ul", { children: l.map(({ key: o, icon: m, url: c, shouldRender: h = !0, onClick: p }) => {
2542
+ /* @__PURE__ */ s.jsx("ul", { children: d.map(({ key: o, icon: m, url: c, shouldRender: h = !0, onClick: p }) => {
2537
2543
  if (typeof h == "function" && !h())
2538
2544
  return null;
2539
2545
  const g = {};
@@ -2558,7 +2564,7 @@ const Dr = "shareLinks_", qa = ({
2558
2564
  ] });
2559
2565
  };
2560
2566
  const eo = ({ tabs: e, className: t = "" }) => {
2561
- var l;
2567
+ var d;
2562
2568
  const n = (o, m, c) => (o || (o = `panel-${window.btoa(m)}-${c}`), o);
2563
2569
  let r = e.findIndex((o) => o.current === !0);
2564
2570
  if (r < 0 && (r = 0), window.location.hash) {
@@ -2571,14 +2577,14 @@ const eo = ({ tabs: e, className: t = "" }) => {
2571
2577
  }
2572
2578
  }
2573
2579
  }
2574
- const [i, d] = P(
2575
- (l = e[r]) != null && l.id ? e[r].id : n(e[r].id, e[r].text, r)
2580
+ const [i, l] = P(
2581
+ (d = e[r]) != null && d.id ? e[r].id : n(e[r].id, e[r].text, r)
2576
2582
  ), u = [], a = [];
2577
2583
  return e.forEach(({ id: o, text: m, content: c, href: h }, p) => {
2578
2584
  o = n(o, m, p);
2579
2585
  const g = i === o, b = {};
2580
2586
  h || (b["aria-controls"] = o, b.onClick = (v) => {
2581
- v.preventDefault(), v.stopPropagation(), d(o), window.location.hash = `#${o}`;
2587
+ v.preventDefault(), v.stopPropagation(), l(o), window.location.hash = `#${o}`;
2582
2588
  }, a.push(
2583
2589
  /* @__PURE__ */ s.jsx(
2584
2590
  "section",
@@ -2621,21 +2627,21 @@ const Cr = {
2621
2627
  children: r
2622
2628
  }) => {
2623
2629
  const i = vt(!0);
2624
- let d = r;
2625
- return C.Children.count(r) === 1 && (d = C.Children.toArray(r)[0], d.props && (d = d.props.children)), /* @__PURE__ */ s.jsx("section", { className: S("columns", `layout-${e}`, n), children: C.Children.map(d, (u, a) => t !== !1 && a === t && i && i < Cr[e] ? null : u) });
2630
+ let l = r;
2631
+ return C.Children.count(r) === 1 && (l = C.Children.toArray(r)[0], l.props && (l = l.props.children)), /* @__PURE__ */ s.jsx("section", { className: S("columns", `layout-${e}`, n), children: C.Children.map(l, (u, a) => t !== !1 && a === t && i && i < Cr[e] ? null : u) });
2626
2632
  }, to = ({ activeLink: e, ...t }) => /* @__PURE__ */ s.jsx(Ar, { layout: "1-3", children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
2627
2633
  /* @__PURE__ */ s.jsx(Mr, { activeLink: e }),
2628
2634
  /* @__PURE__ */ s.jsx(mr, { ...t })
2629
2635
  ] }) });
2630
2636
  const It = "cookieBanner_", Ot = ["apol-cookie-banner", "apolitical-performance-cookie-consent", "functional-cookie-consent"], Bt = new Date(Date.now() + 12 * 30 * 24 * 60 * 60 * 1e3), Pr = () => {
2631
- const e = D(), [t, n, r] = Ss(Ot), [i, d] = P(!t["apol-cookie-banner"]), u = () => {
2637
+ const e = D(), [t, n, r] = Ss(Ot), [i, l] = P(!t["apol-cookie-banner"]), u = () => {
2632
2638
  Ot.forEach((m) => {
2633
2639
  n(m, !0, {
2634
2640
  path: "/",
2635
2641
  expires: Bt,
2636
2642
  domain: m === "apolitical-performance-cookie-consent" ? ".apolitical.co" : void 0
2637
2643
  });
2638
- }), d(!1), window.location.reload();
2644
+ }), l(!1), window.location.reload();
2639
2645
  }, a = () => {
2640
2646
  n("apol-cookie-banner", !0, {
2641
2647
  path: "/",
@@ -2649,16 +2655,16 @@ const It = "cookieBanner_", Ot = ["apol-cookie-banner", "apolitical-performance-
2649
2655
  return;
2650
2656
  }
2651
2657
  r(m);
2652
- }), d(!1);
2658
+ }), l(!1);
2653
2659
  };
2654
2660
  if (!i)
2655
2661
  return null;
2656
- const l = [
2662
+ const d = [
2657
2663
  { id: "settings", href: "/pages/cookie-policy", gtmType: "policy-page" },
2658
2664
  { id: "reject", onClick: a, gtmType: "reject-all" },
2659
2665
  { id: "accept", onClick: u, gtmType: "accepted-all" }
2660
2666
  ], o = [];
2661
- return l.forEach((m) => {
2667
+ return d.forEach((m) => {
2662
2668
  o.push({
2663
2669
  variant: m.href ? "tertiary" : "primary",
2664
2670
  href: m.href,
@@ -2775,14 +2781,14 @@ const Be = "footer_", ht = "SiteFooter", jn = ({ group: e }) => {
2775
2781
  Array.isArray(t) && t.length > 0 && /* @__PURE__ */ s.jsx("ul", { className: "text-medium", children: t.map((r) => {
2776
2782
  if (["order", "child", "text"].includes(r))
2777
2783
  return null;
2778
- const { href: i, gtmType: d } = Ce[e][r], u = {};
2784
+ const { href: i, gtmType: l } = Ce[e][r], u = {};
2779
2785
  return ["legal"].includes(e) && (u.target = "_blank", u.rel = "noopener"), /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(
2780
2786
  "a",
2781
2787
  {
2782
2788
  href: i,
2783
2789
  className: "gtm-trackable",
2784
2790
  "data-gtm-event-context": ht,
2785
- "data-gtm-event-type": d,
2791
+ "data-gtm-event-type": l,
2786
2792
  ...u,
2787
2793
  children: /* @__PURE__ */ s.jsx(Pe, { id: `${Be}${e}_${r}` })
2788
2794
  }
@@ -2842,7 +2848,7 @@ const Be = "footer_", ht = "SiteFooter", jn = ({ group: e }) => {
2842
2848
  ] })
2843
2849
  ] }) });
2844
2850
  const ot = "emailHelperTextBox_", no = ({ type: e, email: t, redirectPath: n, resendVerificationCode: r }) => {
2845
- const i = D(), [d, u] = P({ path: `${ot}default`, type: "default", link: {}, mail: {}, error: "" }), [a, l] = P(!1), o = Me(
2851
+ const i = D(), [l, u] = P({ path: `${ot}default`, type: "default", link: {}, mail: {}, error: "" }), [a, d] = P(!1), o = Me(
2846
2852
  (p) => {
2847
2853
  p.preventDefault(), p.stopPropagation();
2848
2854
  const g = (b) => {
@@ -2870,12 +2876,12 @@ const ot = "emailHelperTextBox_", no = ({ type: e, email: t, redirectPath: n, re
2870
2876
  g(i.formatMessage({ id: `${ot}error_noFunction` }));
2871
2877
  return;
2872
2878
  }
2873
- l(!0), r(t).then(() => {
2879
+ d(!0), r(t).then(() => {
2874
2880
  localStorage.setItem("email", t), window.location.href = n || "/signup/verify-email";
2875
2881
  }).catch((b) => {
2876
2882
  g(b.message);
2877
2883
  }).finally(() => {
2878
- l(!1);
2884
+ d(!1);
2879
2885
  });
2880
2886
  },
2881
2887
  /* eslint-disable react-hooks/exhaustive-deps */
@@ -2933,15 +2939,15 @@ const ot = "emailHelperTextBox_", no = ({ type: e, email: t, redirectPath: n, re
2933
2939
  };
2934
2940
  break;
2935
2941
  }
2936
- u({ ...d, path: p, type: g, link: b, mail: v });
2942
+ u({ ...l, path: p, type: g, link: b, mail: v });
2937
2943
  },
2938
2944
  /* eslint-disable react-hooks/exhaustive-deps */
2939
2945
  [e]
2940
2946
  );
2941
2947
  const m = {};
2942
2948
  return ["link", "mail"].forEach((p) => {
2943
- m[p] = Object.keys(d[p]).length ? (g) => /* @__PURE__ */ s.jsx("a", { ...d[p], children: g }) : (g) => g;
2944
- }), /* @__PURE__ */ s.jsx(sr, { type: d.type, heading: a ? !1 : i.formatMessage({ id: `${d.path}_title` }), children: a ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
2949
+ m[p] = Object.keys(l[p]).length ? (g) => /* @__PURE__ */ s.jsx("a", { ...l[p], children: g }) : (g) => g;
2950
+ }), /* @__PURE__ */ s.jsx(sr, { type: l.type, heading: a ? !1 : i.formatMessage({ id: `${l.path}_title` }), children: a ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
2945
2951
  /* @__PURE__ */ s.jsx(Se, { element: "span" }),
2946
2952
  /* @__PURE__ */ s.jsx(Se, { element: "span" })
2947
2953
  ] }) : (
@@ -2949,7 +2955,7 @@ const ot = "emailHelperTextBox_", no = ({ type: e, email: t, redirectPath: n, re
2949
2955
  // @ts-ignore
2950
2956
  // `values` are throwing a type error: https://github.com/formatjs/formatjs/issues/3633
2951
2957
  i.formatMessage(
2952
- { id: `${d.path}_text` },
2958
+ { id: `${l.path}_text` },
2953
2959
  {
2954
2960
  ...m,
2955
2961
  strong: (p) => /* @__PURE__ */ s.jsx("strong", { children: p }),
@@ -2958,7 +2964,7 @@ const ot = "emailHelperTextBox_", no = ({ type: e, email: t, redirectPath: n, re
2958
2964
  /* @__PURE__ */ s.jsx("br", {}),
2959
2965
  /* @__PURE__ */ s.jsx("br", {})
2960
2966
  ] }),
2961
- error: d.error
2967
+ error: l.error
2962
2968
  }
2963
2969
  )
2964
2970
  ) });
@@ -2991,10 +2997,10 @@ const ro = ({
2991
2997
  functions: { createRating: n = () => null, updateRating: r = () => {
2992
2998
  }, reportError: i = () => {
2993
2999
  } },
2994
- className: d = "",
3000
+ className: l = "",
2995
3001
  hasLoaded: u = !1
2996
3002
  }) => {
2997
- const a = D(), [l, o] = P({ setUp: !1, id: null, rating: null, disabled: !0 }), m = async () => {
3003
+ const a = D(), [d, o] = P({ setUp: !1, id: null, rating: null, disabled: !0 }), m = async () => {
2998
3004
  try {
2999
3005
  const E = await n();
3000
3006
  o((j) => ({ ...j, setUp: !0, id: E && E.id, disabled: !1 }));
@@ -3003,10 +3009,10 @@ const ro = ({
3003
3009
  }
3004
3010
  };
3005
3011
  if (G(() => {
3006
- u && !l.setUp && m();
3012
+ u && !d.setUp && m();
3007
3013
  }, [u]), !u)
3008
3014
  return /* @__PURE__ */ s.jsx(Se, { className: "rating-placeholder" });
3009
- const { id: c, rating: h, disabled: p } = l, g = "ratings_", b = {
3015
+ const { id: c, rating: h, disabled: p } = d, g = "ratings_", b = {
3010
3016
  text: a.formatMessage({ id: `${g}text` }),
3011
3017
  low: a.formatMessage({ id: `${g}low` }),
3012
3018
  high: a.formatMessage({ id: `${g}high` }),
@@ -3022,7 +3028,7 @@ const ro = ({
3022
3028
  o((j) => ({ ...j, disabled: !1 }));
3023
3029
  }
3024
3030
  };
3025
- return /* @__PURE__ */ s.jsxs("div", { className: S("rating", d), children: [
3031
+ return /* @__PURE__ */ s.jsxs("div", { className: S("rating", l), children: [
3026
3032
  /* @__PURE__ */ s.jsx("span", { className: "label", children: b[h ? "success" : "text"] }),
3027
3033
  /* @__PURE__ */ s.jsx("ol", { children: Array.from(new Array(t).keys()).map((E) => {
3028
3034
  const j = E + 1;
@@ -3051,9 +3057,9 @@ const Lr = ({
3051
3057
  handleToggle: n = !1,
3052
3058
  defaultValue: r = "",
3053
3059
  gtmContext: i = "search-bar",
3054
- gtmEvent: d = "form-submission"
3060
+ gtmEvent: l = "form-submission"
3055
3061
  }) => {
3056
- const { searchIsOpen: u = !0, isDesktopVersion: a = !1 } = n || {}, l = D(), o = de(null);
3062
+ const { searchIsOpen: u = !0, isDesktopVersion: a = !1 } = n || {}, d = D(), o = de(null);
3057
3063
  He(() => {
3058
3064
  !n || a || !u || o.current && o.current.focus();
3059
3065
  }, [u]);
@@ -3066,9 +3072,9 @@ const Lr = ({
3066
3072
  onSubmit: m,
3067
3073
  className: S("search-form gtm-trackable", t),
3068
3074
  "data-gtm-event-context": i,
3069
- "data-gtm-event-type": d,
3075
+ "data-gtm-event-type": l,
3070
3076
  children: /* @__PURE__ */ s.jsx("fieldset", { id: `${e}-form`, hidden: n ? !u : !1, role: "search", children: /* @__PURE__ */ s.jsxs("p", { children: [
3071
- /* @__PURE__ */ s.jsx(_e, { element: "label", htmlFor: e, children: l.formatMessage({ id: "search_label" }) }),
3077
+ /* @__PURE__ */ s.jsx(_e, { element: "label", htmlFor: e, children: d.formatMessage({ id: "search_label" }) }),
3072
3078
  /* @__PURE__ */ s.jsx(
3073
3079
  "input",
3074
3080
  {
@@ -3077,7 +3083,7 @@ const Lr = ({
3077
3083
  id: e,
3078
3084
  name: e,
3079
3085
  defaultValue: r,
3080
- placeholder: l.formatMessage({ id: "search_placeholder" }),
3086
+ placeholder: d.formatMessage({ id: "search_placeholder" }),
3081
3087
  onKeyDown: (c) => {
3082
3088
  c.key === "Enter" && m(c);
3083
3089
  }
@@ -3090,10 +3096,10 @@ const Lr = ({
3090
3096
  onClick: (c) => {
3091
3097
  c.preventDefault(), c.stopPropagation(), o.current && o.current.value && (o.current.value = "");
3092
3098
  },
3093
- children: /* @__PURE__ */ s.jsx(_e, { children: l.formatMessage({ id: "search_clear" }) })
3099
+ children: /* @__PURE__ */ s.jsx(_e, { children: d.formatMessage({ id: "search_clear" }) })
3094
3100
  }
3095
3101
  ),
3096
- /* @__PURE__ */ s.jsx("button", { className: "search", onClick: m, children: /* @__PURE__ */ s.jsx(_e, { children: l.formatMessage({ id: "search_cta" }) }) })
3102
+ /* @__PURE__ */ s.jsx("button", { className: "search", onClick: m, children: /* @__PURE__ */ s.jsx(_e, { children: d.formatMessage({ id: "search_cta" }) }) })
3097
3103
  ] }) })
3098
3104
  }
3099
3105
  );
@@ -3104,17 +3110,17 @@ const Ir = ({
3104
3110
  ctaMessage: n,
3105
3111
  titleColor: r,
3106
3112
  labelColor: i,
3107
- backgroundColor: d,
3113
+ backgroundColor: l,
3108
3114
  onClose: u,
3109
3115
  reportError: a,
3110
- sendInvites: l,
3116
+ sendInvites: d,
3111
3117
  initialFormStatus: o = "NOT_SUBMITTED"
3112
3118
  /* NOT_SUBMITTED */
3113
3119
  }) => {
3114
3120
  const [m, c] = P([]), [h, p] = P(!0), [g, b] = P(o), { formatMessage: v } = D(), E = async (T) => {
3115
3121
  T.preventDefault();
3116
3122
  try {
3117
- await l(m), c([]), b(
3123
+ await d(m), c([]), b(
3118
3124
  "SUCCESS"
3119
3125
  /* SUCCESS */
3120
3126
  );
@@ -3148,7 +3154,7 @@ const Ir = ({
3148
3154
  ] }) : /* @__PURE__ */ s.jsx("div", { className: "invite-form-wrapper", children: /* @__PURE__ */ s.jsxs(
3149
3155
  "form",
3150
3156
  {
3151
- style: { backgroundColor: d },
3157
+ style: { backgroundColor: l },
3152
3158
  onSubmit: E,
3153
3159
  className: S("invite-form gtm-trackable"),
3154
3160
  children: [
@@ -3197,13 +3203,13 @@ const Ir = ({
3197
3203
  const n = {
3198
3204
  navigation: { loggedIn: 769, loggedOut: 881 },
3199
3205
  search: { loggedIn: 961, loggedOut: 1121 }
3200
- }, r = (d) => {
3206
+ }, r = (l) => {
3201
3207
  const u = `logged${e ? "In" : "Out"}`;
3202
- return t >= n[d][u];
3208
+ return t >= n[l][u];
3203
3209
  };
3204
3210
  let i = {};
3205
- return ["navigation", "search"].forEach((d) => {
3206
- i[d] = r(d);
3211
+ return ["navigation", "search"].forEach((l) => {
3212
+ i[l] = r(l);
3207
3213
  }), i;
3208
3214
  },
3209
3215
  shouldChangeHeaderIsVisible: (e, t, n) => {
@@ -3216,10 +3222,10 @@ const Ir = ({
3216
3222
  if (!t && U.handlerCalled[e] && i - U.handlerCalled[e] < 500)
3217
3223
  return;
3218
3224
  U.handlerCalled[e] = i;
3219
- let d = [{ type: `menus.${e}`, value: t }];
3225
+ let l = [{ type: `menus.${e}`, value: t }];
3220
3226
  t === !0 && Object.keys(n).forEach((u) => {
3221
- u === e || n[u] === !1 || d.push({ type: `menus.${u}`, value: !1 });
3222
- }), r(d);
3227
+ u === e || n[u] === !1 || l.push({ type: `menus.${u}`, value: !1 });
3228
+ }), r(l);
3223
3229
  },
3224
3230
  // Find the first child inside a ref that matches the `key` (and optional `value`) we're looking for,
3225
3231
  // so we can automatically focus on the first link inside a menu for accessibility.
@@ -3245,21 +3251,21 @@ const Ir = ({
3245
3251
  autoFocus: ({ menu: e, navigationRef: t, isDesktopVersion: n, focusElements: r, dispatch: i }) => {
3246
3252
  if (!t.current || !t.current.children)
3247
3253
  return;
3248
- const d = n ? "desktop" : "default";
3249
- if (r[e][d]) {
3250
- r[e][d].focus();
3254
+ const l = n ? "desktop" : "default";
3255
+ if (r[e][l]) {
3256
+ r[e][l].focus();
3251
3257
  return;
3252
3258
  }
3253
3259
  let u, a;
3254
3260
  switch (e) {
3255
3261
  case "navigation":
3256
3262
  if (n) {
3257
- const l = U.findFirstChild(
3263
+ const d = U.findFirstChild(
3258
3264
  t.current.children,
3259
3265
  "attributes.aria-controls",
3260
3266
  "navigation"
3261
3267
  );
3262
- u = U.findFirstChild(l.children, "href");
3268
+ u = U.findFirstChild(d.children, "href");
3263
3269
  } else
3264
3270
  u = U.findFirstChild(t.current.children, "href");
3265
3271
  u || (u = t.current);
@@ -3272,7 +3278,7 @@ const Ir = ({
3272
3278
  default:
3273
3279
  return;
3274
3280
  }
3275
- u && (i([{ type: `focusElements.${e}.${d}`, value: u }]), u.focus());
3281
+ u && (i([{ type: `focusElements.${e}.${l}`, value: u }]), u.focus());
3276
3282
  },
3277
3283
  events: {
3278
3284
  onClick: (e, { id: t, callback: n, isOpen: r }) => {
@@ -3373,12 +3379,12 @@ const Ir = ({
3373
3379
  menus: r = {},
3374
3380
  callback: i = () => {
3375
3381
  },
3376
- doTrack: d = null
3382
+ doTrack: l = null
3377
3383
  }) => {
3378
3384
  const u = D(), a = Mn(pt, e);
3379
3385
  if (!a || a.onlyShow && (a.onlyShow === "logged-in" && !t || a.onlyShow === "logged-out" && t))
3380
3386
  return null;
3381
- const l = "doTrack" in a, o = d === null ? l ? a.doTrack : !0 : d, m = e.includes("buttons.");
3387
+ const d = "doTrack" in a, o = l === null ? d ? a.doTrack : !0 : l, m = e.includes("buttons.");
3382
3388
  let c = `header_${e.replaceAll(".", "_")}`;
3383
3389
  a.hasVariantText && (c += `_logged${t ? "In" : "Out"}`);
3384
3390
  let h = !1;
@@ -3438,7 +3444,7 @@ const Ir = ({
3438
3444
  isDesktopVersion: n,
3439
3445
  menus: r,
3440
3446
  callback: i,
3441
- doTrack: l ? o : null
3447
+ doTrack: d ? o : null
3442
3448
  };
3443
3449
  return a[j].order ? /* @__PURE__ */ s.jsxs("li", { className: S({ [a[j].className]: a[j].className }), children: [
3444
3450
  u.formatMessage({ id: `${c}_${j}` }),
@@ -3448,7 +3454,7 @@ const Ir = ({
3448
3454
  ] }, e);
3449
3455
  };
3450
3456
  const Or = { height: 67, height_desktop: 83 }, Xn = ({ showNavigation: e = !0 }) => {
3451
- const t = D(), n = je($e), r = vt(!0, !0), i = n && typeof n.id == "string", d = xt(
3457
+ const t = D(), n = je($e), r = vt(!0, !0), i = n && typeof n.id == "string", l = xt(
3452
3458
  () => U.getIsDesktopVersion(i, r),
3453
3459
  [i, r]
3454
3460
  ), [u, a] = gs(Xs, {
@@ -3458,15 +3464,15 @@ const Or = { height: 67, height_desktop: 83 }, Xn = ({ showNavigation: e = !0 })
3458
3464
  navigation: { desktop: !1, default: !1 },
3459
3465
  account: { desktop: !1, default: !1 }
3460
3466
  }
3461
- }), { headerIsVisible: l, menus: o, focusElements: m } = u;
3467
+ }), { headerIsVisible: d, menus: o, focusElements: m } = u;
3462
3468
  Os({
3463
- scrollPosition: Or[`height${d.navigation ? "_desktop" : ""}`],
3469
+ scrollPosition: Or[`height${l.navigation ? "_desktop" : ""}`],
3464
3470
  callbacks: {
3465
3471
  scrollUp: () => {
3466
- !d && o.navigation || U.shouldChangeHeaderIsVisible(!0, o, a);
3472
+ !l && o.navigation || U.shouldChangeHeaderIsVisible(!0, o, a);
3467
3473
  },
3468
3474
  scrollDown: () => {
3469
- !d && o.navigation || U.shouldChangeHeaderIsVisible(!1, o, a);
3475
+ !l && o.navigation || U.shouldChangeHeaderIsVisible(!1, o, a);
3470
3476
  }
3471
3477
  }
3472
3478
  });
@@ -3477,7 +3483,7 @@ const Or = { height: 67, height_desktop: 83 }, Xn = ({ showNavigation: e = !0 })
3477
3483
  o.navigation && U.autoFocus({
3478
3484
  menu: "navigation",
3479
3485
  navigationRef: h,
3480
- isDesktopVersion: d.navigation,
3486
+ isDesktopVersion: l.navigation,
3481
3487
  focusElements: m,
3482
3488
  dispatch: a
3483
3489
  });
@@ -3485,7 +3491,7 @@ const Or = { height: 67, height_desktop: 83 }, Xn = ({ showNavigation: e = !0 })
3485
3491
  o.account && U.autoFocus({
3486
3492
  menu: "account",
3487
3493
  navigationRef: h,
3488
- isDesktopVersion: d.navigation,
3494
+ isDesktopVersion: l.navigation,
3489
3495
  focusElements: m,
3490
3496
  dispatch: a
3491
3497
  });
@@ -3497,7 +3503,7 @@ const Or = { height: 67, height_desktop: 83 }, Xn = ({ showNavigation: e = !0 })
3497
3503
  className: S({
3498
3504
  "logged-in": i,
3499
3505
  "logged-out": !i,
3500
- visible: l
3506
+ visible: d
3501
3507
  }),
3502
3508
  children: [
3503
3509
  /* @__PURE__ */ s.jsx(
@@ -3510,7 +3516,7 @@ const Or = { height: 67, height_desktop: 83 }, Xn = ({ showNavigation: e = !0 })
3510
3516
  ),
3511
3517
  /* @__PURE__ */ s.jsx(zn, {}),
3512
3518
  e && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
3513
- !d.navigation && /* @__PURE__ */ s.jsx(
3519
+ !l.navigation && /* @__PURE__ */ s.jsx(
3514
3520
  "button",
3515
3521
  {
3516
3522
  className: "menu-button gtm-trackable",
@@ -3532,15 +3538,15 @@ const Or = { height: 67, height_desktop: 83 }, Xn = ({ showNavigation: e = !0 })
3532
3538
  {
3533
3539
  ref: h,
3534
3540
  id: "navigation",
3535
- hidden: d.navigation || o.account ? !1 : !o.navigation,
3541
+ hidden: l.navigation || o.account ? !1 : !o.navigation,
3536
3542
  role: "menu",
3537
- "data-showing": !d.navigation && o.account ? "account" : "default",
3543
+ "data-showing": !l.navigation && o.account ? "account" : "default",
3538
3544
  children: pt.order.map((p) => /* @__PURE__ */ s.jsx(
3539
3545
  gt,
3540
3546
  {
3541
3547
  id: p,
3542
3548
  isLoggedIn: i,
3543
- isDesktopVersion: d.navigation,
3549
+ isDesktopVersion: l.navigation,
3544
3550
  menus: { navigation: o.navigation, account: o.account },
3545
3551
  callback: c
3546
3552
  },
@@ -3548,7 +3554,7 @@ const Or = { height: 67, height_desktop: 83 }, Xn = ({ showNavigation: e = !0 })
3548
3554
  ))
3549
3555
  }
3550
3556
  ),
3551
- !d.search && /* @__PURE__ */ s.jsx(
3557
+ !l.search && /* @__PURE__ */ s.jsx(
3552
3558
  "button",
3553
3559
  {
3554
3560
  className: "search toggle-search-button",
@@ -3574,7 +3580,7 @@ const Or = { height: 67, height_desktop: 83 }, Xn = ({ showNavigation: e = !0 })
3574
3580
  id: "global-search",
3575
3581
  handleToggle: {
3576
3582
  searchIsOpen: o.search,
3577
- isDesktopVersion: d.search
3583
+ isDesktopVersion: l.search
3578
3584
  },
3579
3585
  gtmContext: "search-bar-header",
3580
3586
  gtmEvent: "form-submission"
@@ -3617,7 +3623,7 @@ const Or = { height: 67, height_desktop: 83 }, Xn = ({ showNavigation: e = !0 })
3617
3623
  "div",
3618
3624
  {
3619
3625
  className: S("overlay", {
3620
- open: o.navigation || o.account || !d.search && o.search
3626
+ open: o.navigation || o.account || !l.search && o.search
3621
3627
  })
3622
3628
  }
3623
3629
  )
@@ -3637,17 +3643,17 @@ const Kn = ({
3637
3643
  showDivider: n = !0,
3638
3644
  maxWidth: r,
3639
3645
  functions: { onOpen: i = () => {
3640
- }, onClose: d = () => {
3646
+ }, onClose: l = () => {
3641
3647
  } } = {},
3642
3648
  forceShow: { error: u = !1 } = {},
3643
3649
  title: a,
3644
- children: l,
3650
+ children: d,
3645
3651
  buttons: o,
3646
3652
  className: m = "",
3647
3653
  gtmContext: c = "Modal"
3648
3654
  }) => {
3649
3655
  const h = D(), [p, g] = P(t), b = (E) => {
3650
- g(E), E ? (i(), document.body.classList.add("has-overlay")) : (d(), document.body.classList.remove("has-overlay"));
3656
+ g(E), E ? (i(), document.body.classList.add("has-overlay")) : (l(), document.body.classList.remove("has-overlay"));
3651
3657
  };
3652
3658
  G(() => {
3653
3659
  b(t);
@@ -3678,7 +3684,7 @@ const Kn = ({
3678
3684
  )
3679
3685
  ] }),
3680
3686
  n && /* @__PURE__ */ s.jsx(Ue, {}),
3681
- l,
3687
+ d,
3682
3688
  o && /* @__PURE__ */ s.jsxs("div", { className: "bottom", children: [
3683
3689
  /* @__PURE__ */ s.jsx(Ue, {}),
3684
3690
  /* @__PURE__ */ s.jsx(kt, { buttons: o })
@@ -3698,10 +3704,10 @@ const ao = ({
3698
3704
  title: n,
3699
3705
  formTitle: r = "Know someone who might like to join this workshop?",
3700
3706
  formLabel: i = "Invite your colleagues by typing or pasting their emails below.",
3701
- ctaMessage: d = "Send",
3707
+ ctaMessage: l = "Send",
3702
3708
  showIcon: u,
3703
3709
  onClose: a,
3704
- reportError: l = () => {
3710
+ reportError: d = () => {
3705
3711
  },
3706
3712
  sendInvites: o
3707
3713
  }) => /* @__PURE__ */ s.jsx(
@@ -3718,10 +3724,10 @@ const ao = ({
3718
3724
  {
3719
3725
  title: r,
3720
3726
  label: i,
3721
- ctaMessage: d,
3727
+ ctaMessage: l,
3722
3728
  onClose: a,
3723
3729
  sendInvites: o,
3724
- reportError: l
3730
+ reportError: d
3725
3731
  }
3726
3732
  )
3727
3733
  }
@@ -3744,11 +3750,11 @@ const Qr = () => {
3744
3750
  additionalContent: { prepended: t, appended: n } = {},
3745
3751
  reportError: r,
3746
3752
  forceShow: i = {},
3747
- styling: d = {},
3753
+ styling: l = {},
3748
3754
  className: u = "",
3749
3755
  locale: a = "en"
3750
3756
  }) => {
3751
- const { navigation: l = !0, footer: o = !0 } = i, { background: m = "default", variant: c = "default", circle: h = "default" } = d, p = Ls();
3757
+ const { navigation: d = !0, footer: o = !0 } = i, { background: m = "default", variant: c = "default", circle: h = "default" } = l, p = Ls();
3752
3758
  G(() => {
3753
3759
  window.scrollTo(0, 0);
3754
3760
  }, [p]);
@@ -3763,7 +3769,7 @@ const Qr = () => {
3763
3769
  id: "wrapper",
3764
3770
  className: S(u, E, { "has-footer": o }),
3765
3771
  children: [
3766
- /* @__PURE__ */ s.jsx(Xn, { showNavigation: l }),
3772
+ /* @__PURE__ */ s.jsx(Xn, { showNavigation: d }),
3767
3773
  /* @__PURE__ */ s.jsxs("section", { id: "content-wrapper", children: [
3768
3774
  b && /* @__PURE__ */ s.jsx("div", { className: "additional-content prepended", children: b }),
3769
3775
  C.createElement(m === "bold" ? Zn : "div", {
@@ -3814,26 +3820,26 @@ const oo = ({
3814
3820
  forceOneLine: n = !1,
3815
3821
  canHaveLinks: r = !0,
3816
3822
  className: i = "",
3817
- gtmType: d = "tag-click",
3823
+ gtmType: l = "tag-click",
3818
3824
  gtmContext: u = "tags"
3819
3825
  }) => {
3820
3826
  const a = D();
3821
3827
  if (!e || e.length < 1)
3822
3828
  return null;
3823
- const l = [];
3829
+ const d = [];
3824
3830
  return e.forEach((o) => {
3825
3831
  if (!o)
3826
3832
  return;
3827
3833
  const m = Ur.getTagDetails(o);
3828
- m && l.push(m);
3829
- }), l.length < 1 ? null : /* @__PURE__ */ s.jsx("ul", { className: S("tags text-small", t, i, { "one-line": n }), children: l.map((o) => {
3834
+ m && d.push(m);
3835
+ }), d.length < 1 ? null : /* @__PURE__ */ s.jsx("ul", { className: S("tags text-small", t, i, { "one-line": n }), children: d.map((o) => {
3830
3836
  const m = a.formatMessage({ id: o.text });
3831
3837
  return /* @__PURE__ */ s.jsx("li", { children: o.href && r ? /* @__PURE__ */ s.jsx(
3832
3838
  "a",
3833
3839
  {
3834
3840
  href: o.href,
3835
3841
  className: "gtm-trackable",
3836
- "data-gtm-event-type": d,
3842
+ "data-gtm-event-type": l,
3837
3843
  "data-gtm-event-context": u,
3838
3844
  children: m
3839
3845
  }
@@ -3841,34 +3847,31 @@ const oo = ({
3841
3847
  }) });
3842
3848
  };
3843
3849
  const io = ({
3844
- members: { data: e = [], total: t = e.length },
3845
- hasNextPage: n = !1,
3846
- loadNextPage: r = () => {
3847
- },
3848
- gtmContext: i = "member",
3849
- gtmType: d = "member-click",
3850
- className: u = ""
3850
+ members: { total: e, data: t = [] },
3851
+ pagination: n,
3852
+ gtmContext: r = "member",
3853
+ gtmType: i = "member-click",
3854
+ className: l = ""
3851
3855
  }) => {
3852
- const a = D();
3853
- return e.length === 0 ? null : /* @__PURE__ */ s.jsxs("div", { className: S("members-list", u), children: [
3856
+ const u = D();
3857
+ return t.length === 0 ? null : (e || (e = t.length), /* @__PURE__ */ s.jsxs("div", { className: S("members-list", l), children: [
3854
3858
  /* @__PURE__ */ s.jsxs("h1", { children: [
3855
- a.formatMessage({ id: "membersList" }),
3856
- /* @__PURE__ */ s.jsx("span", { className: "count", children: t })
3859
+ u.formatMessage({ id: "membersList" }),
3860
+ /* @__PURE__ */ s.jsx("span", { className: "count", children: e })
3857
3861
  ] }),
3858
- /* @__PURE__ */ s.jsx("ul", { children: e.map((l, o) => /* @__PURE__ */ s.jsxs("li", { children: [
3859
- /* @__PURE__ */ s.jsx(tn, { member: l, gtmContext: i, gtmType: d }),
3860
- l.isAdmin && /* @__PURE__ */ s.jsx(ft, { children: a.formatMessage({ id: "membersList_admin" }) })
3861
- ] }, o)) }),
3862
+ /* @__PURE__ */ s.jsx("ul", { children: t.map((a, d) => /* @__PURE__ */ s.jsxs("li", { children: [
3863
+ /* @__PURE__ */ s.jsx(tn, { member: a, gtmContext: r, gtmType: i }),
3864
+ a.isAdmin && /* @__PURE__ */ s.jsx(ft, { children: u.formatMessage({ id: "membersList_admin" }) })
3865
+ ] }, d)) }),
3862
3866
  n && /* @__PURE__ */ s.jsx(
3863
3867
  Er,
3864
3868
  {
3865
- hasNextPage: n,
3866
- loadNextPage: r,
3869
+ ...n,
3867
3870
  icon: { icon: "arrow-down", position: "right" },
3868
- gtmContext: i
3871
+ gtmContext: r
3869
3872
  }
3870
3873
  )
3871
- ] });
3874
+ ] }));
3872
3875
  };
3873
3876
  let ct = null;
3874
3877
  const ve = "discussion_form_", qn = ({
@@ -3882,7 +3885,7 @@ const ve = "discussion_form_", qn = ({
3882
3885
  },
3883
3886
  inputRef: r,
3884
3887
  maxLength: i = 5e4,
3885
- minRows: d = 4,
3888
+ minRows: l = 4,
3886
3889
  forceShow: u = {
3887
3890
  cancel: !1,
3888
3891
  error: !1
@@ -3900,7 +3903,7 @@ const ve = "discussion_form_", qn = ({
3900
3903
  create: { projectNames: ["questions-answers"] }
3901
3904
  }
3902
3905
  },
3903
- gtmContext: l = "DiscussionForm"
3906
+ gtmContext: d = "DiscussionForm"
3904
3907
  }) => {
3905
3908
  var H, F;
3906
3909
  const o = D(), m = je($e), [c, h] = P(
@@ -3997,7 +4000,7 @@ const ve = "discussion_form_", qn = ({
3997
4000
  size: { mobile: "small", 600: "medium" },
3998
4001
  onClick: a.handleCancel,
3999
4002
  className: "gtm-trackable",
4000
- "data-gtm-event-context": l,
4003
+ "data-gtm-event-context": d,
4001
4004
  "data-gtm-event-type": `cancel-${e.type}-click`,
4002
4005
  disabled: !u.cancel && (!m || !m.id || !c),
4003
4006
  children: o.formatMessage({ id: `${ve}cancel` })
@@ -4014,7 +4017,7 @@ const ve = "discussion_form_", qn = ({
4014
4017
  T(x);
4015
4018
  },
4016
4019
  className: "gtm-trackable",
4017
- "data-gtm-event-context": l,
4020
+ "data-gtm-event-context": d,
4018
4021
  "data-gtm-event-type": `${n.isEditing ? "save" : "submit"}-${e.type}-click`,
4019
4022
  "data-testid": "save-button",
4020
4023
  disabled: !m || !m.id || !t || R || J || n.isEditing && c === n.isEditing.text,
@@ -4035,7 +4038,7 @@ const ve = "discussion_form_", qn = ({
4035
4038
  tn,
4036
4039
  {
4037
4040
  member: m || "community",
4038
- gtmContext: l,
4041
+ gtmContext: d,
4039
4042
  gtmType: "profile-click"
4040
4043
  }
4041
4044
  ),
@@ -4057,7 +4060,7 @@ const ve = "discussion_form_", qn = ({
4057
4060
  maxLength: i,
4058
4061
  "aria-invalid": !!p,
4059
4062
  "aria-errormessage": "error-message",
4060
- minRows: d,
4063
+ minRows: l,
4061
4064
  autoFocus: !!n.isEditing
4062
4065
  }
4063
4066
  ),
@@ -4068,7 +4071,7 @@ const ve = "discussion_form_", qn = ({
4068
4071
  href: "https://about.apolitical.co/q-and-a-community-guidelines",
4069
4072
  target: "_blank",
4070
4073
  className: "gtm-trackable",
4071
- "data-gtm-event-context": l,
4074
+ "data-gtm-event-context": d,
4072
4075
  "data-gtm-event-type": "community-guidelines-link",
4073
4076
  rel: "noreferrer",
4074
4077
  children: x
@@ -4092,14 +4095,14 @@ const ve = "discussion_form_", qn = ({
4092
4095
  }, nn = ({
4093
4096
  contentType: e,
4094
4097
  createPost: t,
4095
- membershipRequiredToPost: { isMember: n, required: r, join: i, leave: d, notMemberStateText: u }
4098
+ membershipRequiredToPost: { isMember: n, required: r, join: i, leave: l, notMemberStateText: u }
4096
4099
  }) => r && !n ? /* @__PURE__ */ s.jsx(
4097
4100
  yt,
4098
4101
  {
4099
4102
  text: u,
4100
4103
  button: {
4101
4104
  breakpoints: { mobile: !0, 901: !1 },
4102
- component: /* @__PURE__ */ s.jsx(Wn, { isShort: !0, functions: { join: i, leave: d } })
4105
+ component: /* @__PURE__ */ s.jsx(Wn, { isShort: !0, functions: { join: i, leave: l } })
4103
4106
  }
4104
4107
  }
4105
4108
  ) : /* @__PURE__ */ s.jsx(
@@ -4137,10 +4140,10 @@ const Ht = () => {
4137
4140
  peopleWhoLiked: n = !1,
4138
4141
  isShort: r = !0,
4139
4142
  userLiked: i = !1,
4140
- content: d = { type: "reply", slugs: {} },
4143
+ content: l = { type: "reply", slugs: {} },
4141
4144
  canLike: u = !0,
4142
4145
  functions: { createLike: a = () => {
4143
- }, deleteLike: l = () => {
4146
+ }, deleteLike: d = () => {
4144
4147
  } } = {}
4145
4148
  }) => {
4146
4149
  const o = D();
@@ -4159,9 +4162,9 @@ const Ht = () => {
4159
4162
  let N = h ? m - 1 : m + 1;
4160
4163
  N < 0 && (N = 0), b(!0), c(N), p(!h);
4161
4164
  try {
4162
- if (d && d.slugs) {
4163
- const R = Vr(d.slugs);
4164
- h ? await l(R) : await a(R, { contentPath: window.location.pathname });
4165
+ if (l && l.slugs) {
4166
+ const R = Vr(l.slugs);
4167
+ h ? await d(R) : await a(R, { contentPath: window.location.pathname });
4165
4168
  }
4166
4169
  } catch {
4167
4170
  c(t), p(i);
@@ -4196,13 +4199,13 @@ const Ht = () => {
4196
4199
  className: S({ "do-animation": h && !i }),
4197
4200
  screenreaderText: u ? o.formatMessage({
4198
4201
  id: `discussion_likes_${h ? "unlike" : "like"}`
4199
- }, { action: o.formatMessage({ id: `discussion_action_${d.type}` }) }) : !1,
4202
+ }, { action: o.formatMessage({ id: `discussion_action_${l.type}` }) }) : !1,
4200
4203
  onClick: _,
4201
4204
  disabled: !u,
4202
4205
  "aria-hidden": !u,
4203
4206
  "data-testid": "like-button",
4204
4207
  "data-gtm-event-context": "Likes",
4205
- "data-gtm-event-type": `like-${d.type}-click`
4208
+ "data-gtm-event-type": `like-${l.type}-click`
4206
4209
  }
4207
4210
  ),
4208
4211
  /* @__PURE__ */ s.jsx("span", { className: S("number-of-likes", { "no-likes": m === 0 }), "data-testid": "number-of-likes", children: o.formatMessage({ id: `discussion_likes${r ? "_short" : ""}` }, { number: m }) }),
@@ -4233,7 +4236,7 @@ const De = "discussion_", Jr = 280, St = ({
4233
4236
  isLoading: r = !1,
4234
4237
  originalAuthorId: i,
4235
4238
  functions: {
4236
- content: { createContent: d, deleteContent: u, updateContent: a } = {
4239
+ content: { createContent: l, deleteContent: u, updateContent: a } = {
4237
4240
  createContent: () => {
4238
4241
  },
4239
4242
  deleteContent: () => {
@@ -4241,7 +4244,7 @@ const De = "discussion_", Jr = 280, St = ({
4241
4244
  updateContent: () => {
4242
4245
  }
4243
4246
  },
4244
- likes: { createLike: l, deleteLike: o } = { createLike: () => {
4247
+ likes: { createLike: d, deleteLike: o } = { createLike: () => {
4245
4248
  }, deleteLike: () => {
4246
4249
  } },
4247
4250
  comments: { openComments: m } = { openComments: () => {
@@ -4375,7 +4378,7 @@ const De = "discussion_", Jr = 280, St = ({
4375
4378
  ) : !1
4376
4379
  },
4377
4380
  functions: {
4378
- create: d,
4381
+ create: l,
4379
4382
  handleSaveEdit: ae,
4380
4383
  handleCancel: () => {
4381
4384
  O(""), T({ ..._, isEditing: !1 });
@@ -4421,7 +4424,7 @@ const De = "discussion_", Jr = 280, St = ({
4421
4424
  canLike: re,
4422
4425
  peopleWhoLiked: t.peopleWhoLiked,
4423
4426
  functions: {
4424
- createLike: l,
4427
+ createLike: d,
4425
4428
  deleteLike: o
4426
4429
  }
4427
4430
  }
@@ -4544,18 +4547,18 @@ const Wt = "discussion_responses_", co = ({ type: e = "answer", responses: t = 0
4544
4547
  ] });
4545
4548
  };
4546
4549
  const Xr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4547
- const r = D(), i = de(null), d = je(Et), [u, a] = P(
4550
+ const r = D(), i = de(null), l = je(Et), [u, a] = P(
4548
4551
  "closed"
4549
4552
  /* Closed */
4550
4553
  );
4551
4554
  G(() => {
4552
4555
  const c = i.current;
4553
4556
  if (c)
4554
- return c.addEventListener("transitionend", l), () => {
4555
- c.removeEventListener("transitionend", l);
4557
+ return c.addEventListener("transitionend", d), () => {
4558
+ c.removeEventListener("transitionend", d);
4556
4559
  };
4557
4560
  }, []), He(() => {
4558
- u === "closed" && !d.showThread || a(
4561
+ u === "closed" && !l.showThread || a(
4559
4562
  [
4560
4563
  "opening",
4561
4564
  "open"
@@ -4563,13 +4566,13 @@ const Xr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4563
4566
  ].includes(u) ? "ready-to-close" : "opening"
4564
4567
  /* Opening */
4565
4568
  );
4566
- }, [d.showThread]), G(() => {
4569
+ }, [l.showThread]), G(() => {
4567
4570
  u === "ready-to-close" && a(
4568
4571
  "closing"
4569
4572
  /* Closing */
4570
4573
  );
4571
4574
  }, [u]);
4572
- const l = ({ propertyName: c }) => {
4575
+ const d = ({ propertyName: c }) => {
4573
4576
  c === "max-height" && a((h) => h === "opening" ? "open" : h === "closing" ? "closed" : h);
4574
4577
  }, o = [
4575
4578
  "opening",
@@ -4588,7 +4591,7 @@ const Xr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4588
4591
  icon: { icon: `arrow_corner-down_${o ? "left" : "right"}` },
4589
4592
  onClick: () => {
4590
4593
  var c;
4591
- (c = d.updateConversation) == null || c.call(d, (h) => ({
4594
+ (c = l.updateConversation) == null || c.call(l, (h) => ({
4592
4595
  showThread: !h.showThread,
4593
4596
  showForm: !1
4594
4597
  }));
@@ -4604,7 +4607,7 @@ const Xr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4604
4607
  {
4605
4608
  ref: i,
4606
4609
  className: S("thread", u),
4607
- hidden: !d.showThread,
4610
+ hidden: !l.showThread,
4608
4611
  children: m
4609
4612
  }
4610
4613
  )
@@ -4638,11 +4641,11 @@ const Xr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4638
4641
  }) => ({ mutationFn: r, onMutate: async ({ content: a }) => {
4639
4642
  if (!n)
4640
4643
  return;
4641
- const l = Zr({ user: n, content: a, verb: "post" });
4644
+ const d = Zr({ user: n, content: a, verb: "post" });
4642
4645
  await e.cancelQueries({ queryKey: t });
4643
4646
  const o = e.getQueryData(t);
4644
- return e.setQueryData(t, (m) => [...m, l]), { previousActivities: o };
4645
- }, onError: (a, l, o) => {
4647
+ return e.setQueryData(t, (m) => [...m, d]), { previousActivities: o };
4648
+ }, onError: (a, d, o) => {
4646
4649
  e.setQueryData(t, o.previousActivities);
4647
4650
  }, onSettled: () => {
4648
4651
  e.invalidateQueries({ queryKey: t });
@@ -4659,11 +4662,11 @@ const Xr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4659
4662
  if (a.length === 0)
4660
4663
  return;
4661
4664
  await e.cancelQueries({ queryKey: t });
4662
- const l = e.getQueryData(t), o = l == null ? void 0 : l.map((m) => ((m == null ? void 0 : m.id) === (u == null ? void 0 : u.activityId) && (m.content = a), m));
4665
+ const d = e.getQueryData(t), o = d == null ? void 0 : d.map((m) => ((m == null ? void 0 : m.id) === (u == null ? void 0 : u.activityId) && (m.content = a), m));
4663
4666
  return e.setQueryData(t, () => o && [...o]), { previousActivities: o };
4664
4667
  },
4665
- onError: (u, a, l) => {
4666
- e.setQueryData(t, l.previousActivities);
4668
+ onError: (u, a, d) => {
4669
+ e.setQueryData(t, d.previousActivities);
4667
4670
  },
4668
4671
  onSettled: () => {
4669
4672
  e.invalidateQueries({ queryKey: t });
@@ -4674,15 +4677,15 @@ const Xr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4674
4677
  mutationFn: n
4675
4678
  }) => ({ mutationFn: n, onMutate: async ({ activityId: u }) => {
4676
4679
  await e.cancelQueries({ queryKey: t });
4677
- const a = e.getQueryData(t), l = a == null ? void 0 : a.filter(
4680
+ const a = e.getQueryData(t), d = a == null ? void 0 : a.filter(
4678
4681
  (o) => (o == null ? void 0 : o.id) !== u
4679
4682
  );
4680
- return e.setQueryData(t, () => l && [...l]), { previousActivities: l };
4681
- }, onError: (u, a, l) => {
4682
- e.setQueryData(t, l.previousActivities);
4683
- }, onSettled: (u, a, l) => {
4683
+ return e.setQueryData(t, () => d && [...d]), { previousActivities: d };
4684
+ }, onError: (u, a, d) => {
4685
+ e.setQueryData(t, d.previousActivities);
4686
+ }, onSettled: (u, a, d) => {
4684
4687
  e.invalidateQueries({
4685
- queryKey: [...t, l.activityId]
4688
+ queryKey: [...t, d.activityId]
4686
4689
  });
4687
4690
  } }), ta = ({
4688
4691
  queryClient: e,
@@ -4690,20 +4693,20 @@ const Xr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4690
4693
  mutationFn: n
4691
4694
  }) => ({ mutationFn: n, onMutate: async ({ activityId: a }) => {
4692
4695
  await e.cancelQueries({ queryKey: t });
4693
- const l = e.getQueryData(t), o = l == null ? void 0 : l.map((m) => {
4696
+ const d = e.getQueryData(t), o = d == null ? void 0 : d.map((m) => {
4694
4697
  var c;
4695
4698
  return (m == null ? void 0 : m.id) === a && ((c = m.reaction_counts) != null && c.like ? m.reaction_counts.like += 1 : m.reaction_counts.like = 1), m;
4696
4699
  });
4697
4700
  return e.setQueryData(t, () => o && [...o]), { previousActivities: o };
4698
- }, onError: (a, l, o) => {
4701
+ }, onError: (a, d, o) => {
4699
4702
  e.setQueryData(t, o.previousActivities);
4700
4703
  }, onSuccess: (a) => {
4701
- const l = e.getQueryData(t), o = l == null ? void 0 : l.map((m) => {
4704
+ const d = e.getQueryData(t), o = d == null ? void 0 : d.map((m) => {
4702
4705
  var c, h;
4703
4706
  return (m == null ? void 0 : m.id) === (a == null ? void 0 : a.activity_id) && ((c = m.own_reactions) != null && c.like ? m.own_reactions.like.push(a) : m.own_reactions.like = [a], (h = m.latest_reactions) != null && h.like ? m.latest_reactions.like.push(a) : m.own_reactions.like = [a]), m;
4704
4707
  });
4705
- return e.setQueryData(t, () => o && [...o]), { previousActivities: l };
4706
- }, onSettled: (a, l, o) => {
4708
+ return e.setQueryData(t, () => o && [...o]), { previousActivities: d };
4709
+ }, onSettled: (a, d, o) => {
4707
4710
  e.invalidateQueries({
4708
4711
  queryKey: [...t, o.activityId]
4709
4712
  });
@@ -4712,16 +4715,16 @@ const Xr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4712
4715
  queryKey: t,
4713
4716
  user: n,
4714
4717
  mutationFn: r
4715
- }) => ({ mutationFn: r, onMutate: async ({ activityId: l }) => {
4718
+ }) => ({ mutationFn: r, onMutate: async ({ activityId: d }) => {
4716
4719
  await e.cancelQueries({ queryKey: t });
4717
4720
  const o = e.getQueryData(t), m = o == null ? void 0 : o.map((c) => {
4718
4721
  var h;
4719
- return (c == null ? void 0 : c.id) === l && (h = c.reaction_counts) != null && h.like && (c.reaction_counts.like -= 1), c;
4722
+ return (c == null ? void 0 : c.id) === d && (h = c.reaction_counts) != null && h.like && (c.reaction_counts.like -= 1), c;
4720
4723
  });
4721
4724
  return e.setQueryData(t, () => m && [...m]), { previousActivities: m };
4722
- }, onError: (l, o, m) => {
4725
+ }, onError: (d, o, m) => {
4723
4726
  e.setQueryData(t, m.previousActivities);
4724
- }, onSuccess: (l, { activityId: o }) => {
4727
+ }, onSuccess: (d, { activityId: o }) => {
4725
4728
  const m = e.getQueryData(t), c = m == null ? void 0 : m.map((h) => {
4726
4729
  var p, g, b, v, E;
4727
4730
  if (h.id === o) {
@@ -4737,7 +4740,7 @@ const Xr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4737
4740
  return h;
4738
4741
  });
4739
4742
  return e.setQueryData(t, () => c && [...c]), { previousActivities: m };
4740
- }, onSettled: (l, o, m) => {
4743
+ }, onSettled: (d, o, m) => {
4741
4744
  e.invalidateQueries({
4742
4745
  queryKey: [...t, m.activityId]
4743
4746
  });
@@ -4745,7 +4748,7 @@ const Xr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4745
4748
  basePath: e,
4746
4749
  parentId: t,
4747
4750
  isMember: n,
4748
- functions: { list: r, create: i, edit: d, remove: u, like: a, unlike: l, join: o, leave: m }
4751
+ functions: { list: r, create: i, edit: l, remove: u, like: a, unlike: d, join: o, leave: m }
4749
4752
  }) => {
4750
4753
  const c = D(), h = wt(), p = je($e), {
4751
4754
  data: g,
@@ -4763,7 +4766,7 @@ const Xr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4763
4766
  }), { mutate: _ } = ie(j), T = qr({
4764
4767
  queryClient: h,
4765
4768
  queryKey: [e, t],
4766
- mutationFn: async (w) => await d(w)
4769
+ mutationFn: async (w) => await l(w)
4767
4770
  }), {
4768
4771
  mutate: N
4769
4772
  } = ie(T), R = ea({
@@ -4789,7 +4792,7 @@ const Xr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4789
4792
  )), Z = (ae = (re = (se = V == null ? void 0 : V.own_reactions) == null ? void 0 : se.like) == null ? void 0 : re.find(
4790
4793
  (q) => q.user_id === (p == null ? void 0 : p.id)
4791
4794
  )) == null ? void 0 : ae.id;
4792
- await l({ reactionId: Z || "", activityId: w });
4795
+ await d({ reactionId: Z || "", activityId: w });
4793
4796
  }
4794
4797
  }), {
4795
4798
  mutate: x
@@ -4884,17 +4887,17 @@ const Xr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4884
4887
  mutationFn: n
4885
4888
  }) => ({ mutationFn: n, onMutate: async () => {
4886
4889
  await e.cancelQueries({ queryKey: t });
4887
- }, onError: (a, l, o) => {
4890
+ }, onError: (a, d, o) => {
4888
4891
  e.setQueryData(t, o.previousActivity);
4889
4892
  }, onSuccess: (a) => {
4890
4893
  var o;
4891
- const l = e.getQueryData(t);
4892
- if (l)
4893
- return (o = l == null ? void 0 : l.latest_reactions) != null && o.reply ? (l.latest_reactions.reply.unshift(a), l && (l.reaction_counts = {
4894
- reply: l.latest_reactions.reply.length
4895
- })) : (l.latest_reactions = { reply: [a] }, l.reaction_counts = { reply: 1 }), e.setQueryData(t, () => ({
4896
- ...l
4897
- })), { previousActivity: l };
4894
+ const d = e.getQueryData(t);
4895
+ if (d)
4896
+ return (o = d == null ? void 0 : d.latest_reactions) != null && o.reply ? (d.latest_reactions.reply.unshift(a), d && (d.reaction_counts = {
4897
+ reply: d.latest_reactions.reply.length
4898
+ })) : (d.latest_reactions = { reply: [a] }, d.reaction_counts = { reply: 1 }), e.setQueryData(t, () => ({
4899
+ ...d
4900
+ })), { previousActivity: d };
4898
4901
  }, onSettled: () => {
4899
4902
  e.invalidateQueries({ queryKey: t });
4900
4903
  } }), ra = ({
@@ -4904,7 +4907,7 @@ const Xr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4904
4907
  }) => ({
4905
4908
  mutationFn: n,
4906
4909
  onMutate: async ({
4907
- replyInfo: d,
4910
+ replyInfo: l,
4908
4911
  content: { body: u }
4909
4912
  }) => {
4910
4913
  var o, m, c;
@@ -4914,33 +4917,33 @@ const Xr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4914
4917
  const a = e.getQueryData(t);
4915
4918
  if (!a || !((o = a == null ? void 0 : a.latest_reactions) != null && o.reply))
4916
4919
  return;
4917
- const l = (c = (m = a == null ? void 0 : a.latest_reactions) == null ? void 0 : m.reply) == null ? void 0 : c.map((h) => (h.id === d.replySlug && (h.data.content = u), h));
4920
+ const d = (c = (m = a == null ? void 0 : a.latest_reactions) == null ? void 0 : m.reply) == null ? void 0 : c.map((h) => (h.id === l.replySlug && (h.data.content = u), h));
4918
4921
  return e.setQueryData(t, () => ({
4919
4922
  ...a,
4920
- latest_reactions: { reply: l }
4923
+ latest_reactions: { reply: d }
4921
4924
  })), { previousActivity: a };
4922
4925
  },
4923
- onError: (d, u, a) => {
4926
+ onError: (l, u, a) => {
4924
4927
  e.setQueryData(t, a.previousActivity);
4925
4928
  }
4926
4929
  }), aa = ({
4927
4930
  queryClient: e,
4928
4931
  queryKey: t,
4929
4932
  mutationFn: n
4930
- }) => ({ mutationFn: n, onMutate: async ({ replyId: d }) => {
4931
- var l, o, m;
4933
+ }) => ({ mutationFn: n, onMutate: async ({ replyId: l }) => {
4934
+ var d, o, m;
4932
4935
  await e.cancelQueries({ queryKey: t });
4933
4936
  const u = e.getQueryData(t);
4934
- if (!u || !((l = u == null ? void 0 : u.latest_reactions) != null && l.reply))
4937
+ if (!u || !((d = u == null ? void 0 : u.latest_reactions) != null && d.reply))
4935
4938
  return;
4936
4939
  const a = (m = (o = u == null ? void 0 : u.latest_reactions) == null ? void 0 : o.reply) == null ? void 0 : m.filter(
4937
- (c) => c.id !== d
4940
+ (c) => c.id !== l
4938
4941
  );
4939
4942
  return e.setQueryData(t, () => ({
4940
4943
  ...u,
4941
4944
  latest_reactions: { reply: a }
4942
4945
  })), { previousActivity: u };
4943
- }, onError: (d, u, a) => {
4946
+ }, onError: (l, u, a) => {
4944
4947
  e.setQueryData(t, a.previousActivity);
4945
4948
  } }), oa = ({
4946
4949
  queryClient: e,
@@ -4949,25 +4952,25 @@ const Xr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4949
4952
  }) => ({ mutationFn: n, onMutate: async ({ replyId: u }) => {
4950
4953
  var o, m;
4951
4954
  await e.cancelQueries({ queryKey: t });
4952
- const a = e.getQueryData(t), l = (m = (o = a == null ? void 0 : a.latest_reactions) == null ? void 0 : o.reply) == null ? void 0 : m.map((c) => {
4955
+ const a = e.getQueryData(t), d = (m = (o = a == null ? void 0 : a.latest_reactions) == null ? void 0 : o.reply) == null ? void 0 : m.map((c) => {
4953
4956
  var h;
4954
4957
  return c.id === u && ((h = c.children_counts) != null && h.like ? c.children_counts.like += 1 : c.children_counts = { like: 1 }), c;
4955
4958
  });
4956
4959
  return e.setQueryData(t, () => ({
4957
4960
  ...a,
4958
- latest_reactions: { reply: l }
4961
+ latest_reactions: { reply: d }
4959
4962
  })), { previousActivity: a };
4960
- }, onError: (u, a, l) => {
4961
- e.setQueryData(t, l.previousActivity);
4963
+ }, onError: (u, a, d) => {
4964
+ e.setQueryData(t, d.previousActivity);
4962
4965
  }, onSuccess: (u) => {
4963
4966
  var o;
4964
- const a = e.getQueryData(t), l = (o = a == null ? void 0 : a.latest_reactions.reply) == null ? void 0 : o.map((m) => {
4967
+ const a = e.getQueryData(t), d = (o = a == null ? void 0 : a.latest_reactions.reply) == null ? void 0 : o.map((m) => {
4965
4968
  var c, h;
4966
4969
  return m.id === u.id && ((c = m.own_children) != null && c.like ? m.own_children.like.push(u) : m.own_children = { like: [u] }, (h = m.latest_children) != null && h.like ? m.latest_children.like.push(u) : m.latest_children = { like: [u] }), m;
4967
4970
  });
4968
4971
  return e.setQueryData(t, () => ({
4969
4972
  ...a,
4970
- latest_reactions: { reply: l }
4973
+ latest_reactions: { reply: d }
4971
4974
  })), { previousActivity: a };
4972
4975
  } }), ia = ({
4973
4976
  queryClient: e,
@@ -4977,24 +4980,24 @@ const Xr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4977
4980
  }) => ({ mutationFn: r, onMutate: async ({ replyId: a }) => {
4978
4981
  var m;
4979
4982
  await e.cancelQueries({ queryKey: t });
4980
- const l = e.getQueryData(t);
4981
- if (!l)
4983
+ const d = e.getQueryData(t);
4984
+ if (!d)
4982
4985
  return;
4983
- const o = (m = l.latest_reactions.reply) == null ? void 0 : m.map((c) => (c.id === a && c.children_counts.like && (c.children_counts.like -= 1), c));
4986
+ const o = (m = d.latest_reactions.reply) == null ? void 0 : m.map((c) => (c.id === a && c.children_counts.like && (c.children_counts.like -= 1), c));
4984
4987
  return e.setQueryData(t, () => ({
4985
- ...l,
4988
+ ...d,
4986
4989
  latest_reactions: { reply: o }
4987
- })), { previousActivity: l };
4988
- }, onError: (a, l, o) => {
4990
+ })), { previousActivity: d };
4991
+ }, onError: (a, d, o) => {
4989
4992
  e.setQueryData(t, o.previousActivity);
4990
- }, onSuccess: (a, { replyId: l }) => {
4993
+ }, onSuccess: (a, { replyId: d }) => {
4991
4994
  var c;
4992
4995
  const o = e.getQueryData(t);
4993
4996
  if (!o)
4994
4997
  return;
4995
4998
  const m = (c = o.latest_reactions.reply) == null ? void 0 : c.map((h) => {
4996
4999
  var p, g, b;
4997
- if (h.id === l) {
5000
+ if (h.id === d) {
4998
5001
  let v = (p = h.latest_children.reply) == null ? void 0 : p.filter(
4999
5002
  (E) => E.user_id !== (n == null ? void 0 : n.id)
5000
5003
  );
@@ -5019,13 +5022,13 @@ const Xr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5019
5022
  },
5020
5023
  onSuccess: (a) => {
5021
5024
  var m;
5022
- const l = e.getQueryData(t), o = (m = l == null ? void 0 : l.latest_reactions.reply) == null ? void 0 : m.map((c) => (c.id === a.parent && (c.latest_children.reply && c.children_counts.reply ? (c.latest_children.reply.push(a), c.children_counts.reply += 1) : (c.latest_children.reply = [a], c.children_counts.reply = 1)), c));
5025
+ const d = e.getQueryData(t), o = (m = d == null ? void 0 : d.latest_reactions.reply) == null ? void 0 : m.map((c) => (c.id === a.parent && (c.latest_children.reply && c.children_counts.reply ? (c.latest_children.reply.push(a), c.children_counts.reply += 1) : (c.latest_children.reply = [a], c.children_counts.reply = 1)), c));
5023
5026
  return e.setQueryData(t, () => ({
5024
- ...l,
5027
+ ...d,
5025
5028
  latest_reactions: { reply: o }
5026
- })), { previousActivity: l };
5029
+ })), { previousActivity: d };
5027
5030
  },
5028
- onError: (a, l, o) => {
5031
+ onError: (a, d, o) => {
5029
5032
  e.setQueryData(t, o.previousActivity);
5030
5033
  },
5031
5034
  onSettled: () => {
@@ -5035,10 +5038,10 @@ const Xr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5035
5038
  queryClient: e,
5036
5039
  queryKey: t,
5037
5040
  mutationFn: n
5038
- }) => ({ mutationFn: n, onError: (d, u, a) => {
5041
+ }) => ({ mutationFn: n, onError: (l, u, a) => {
5039
5042
  e.setQueryData(t, a.previousActivity);
5040
5043
  }, onMutate: async ({
5041
- replyInfo: d,
5044
+ replyInfo: l,
5042
5045
  content: { body: u }
5043
5046
  }) => {
5044
5047
  var o, m, c;
@@ -5048,22 +5051,22 @@ const Xr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5048
5051
  const a = e.getQueryData(t);
5049
5052
  if (!a || !((o = a == null ? void 0 : a.latest_reactions) != null && o.reply))
5050
5053
  return;
5051
- const l = (c = (m = a == null ? void 0 : a.latest_reactions) == null ? void 0 : m.reply) == null ? void 0 : c.map((h) => {
5054
+ const d = (c = (m = a == null ? void 0 : a.latest_reactions) == null ? void 0 : m.reply) == null ? void 0 : c.map((h) => {
5052
5055
  var p;
5053
- return h.id === d.replyParentId && ((p = h.latest_children.reply) == null || p.map((g) => (g.id === d.replySlug && (g.data.content = u), g))), h;
5056
+ return h.id === l.replyParentId && ((p = h.latest_children.reply) == null || p.map((g) => (g.id === l.replySlug && (g.data.content = u), g))), h;
5054
5057
  });
5055
5058
  return e.setQueryData(t, () => ({
5056
5059
  ...a,
5057
- latest_reactions: { reply: l }
5060
+ latest_reactions: { reply: d }
5058
5061
  })), { previousActivity: a };
5059
5062
  } }), da = ({
5060
5063
  queryClient: e,
5061
5064
  queryKey: t,
5062
5065
  mutationFn: n
5063
- }) => ({ mutationFn: n, onError: (d, u, a) => {
5066
+ }) => ({ mutationFn: n, onError: (l, u, a) => {
5064
5067
  e.setQueryData(t, a.previousActivity);
5065
5068
  }, onMutate: async ({
5066
- replyId: d,
5069
+ replyId: l,
5067
5070
  replyParentId: u
5068
5071
  }) => {
5069
5072
  var o, m, c;
@@ -5071,15 +5074,15 @@ const Xr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5071
5074
  const a = e.getQueryData(t);
5072
5075
  if (!a || !((o = a == null ? void 0 : a.latest_reactions) != null && o.reply))
5073
5076
  return;
5074
- const l = (c = (m = a == null ? void 0 : a.latest_reactions) == null ? void 0 : m.reply) == null ? void 0 : c.map((h) => {
5077
+ const d = (c = (m = a == null ? void 0 : a.latest_reactions) == null ? void 0 : m.reply) == null ? void 0 : c.map((h) => {
5075
5078
  var p, g;
5076
5079
  return h.id === u && (h.latest_children.reply = (p = h.latest_children.reply) == null ? void 0 : p.filter(
5077
- (b) => b.id !== d
5080
+ (b) => b.id !== l
5078
5081
  ), (g = h.children_counts) != null && g.reply && (h.children_counts.reply -= 1)), h;
5079
5082
  });
5080
5083
  return e.setQueryData(t, () => ({
5081
5084
  ...a,
5082
- latest_reactions: { reply: l }
5085
+ latest_reactions: { reply: d }
5083
5086
  })), { previousActivity: a };
5084
5087
  } }), ua = ({
5085
5088
  queryClient: e,
@@ -5091,7 +5094,7 @@ const Xr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5091
5094
  }) => {
5092
5095
  var m;
5093
5096
  await e.cancelQueries({ queryKey: t });
5094
- const l = e.getQueryData(t), o = (m = l == null ? void 0 : l.latest_reactions.reply) == null ? void 0 : m.map((c) => {
5097
+ const d = e.getQueryData(t), o = (m = d == null ? void 0 : d.latest_reactions.reply) == null ? void 0 : m.map((c) => {
5095
5098
  var h;
5096
5099
  return c.id === a && ((h = c.latest_children.reply) == null || h.map((p) => {
5097
5100
  var g;
@@ -5099,21 +5102,21 @@ const Xr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5099
5102
  })), c;
5100
5103
  });
5101
5104
  return e.setQueryData(t, () => ({
5102
- ...l,
5105
+ ...d,
5103
5106
  latest_reactions: { reply: o }
5104
- })), { previousActivity: l };
5105
- }, onError: (u, a, l) => {
5106
- e.setQueryData(t, l.previousActivity);
5107
+ })), { previousActivity: d };
5108
+ }, onError: (u, a, d) => {
5109
+ e.setQueryData(t, d.previousActivity);
5107
5110
  }, onSuccess: (u, a) => {
5108
5111
  var m;
5109
- const l = e.getQueryData(t), o = (m = l == null ? void 0 : l.latest_reactions.reply) == null ? void 0 : m.map((c) => {
5112
+ const d = e.getQueryData(t), o = (m = d == null ? void 0 : d.latest_reactions.reply) == null ? void 0 : m.map((c) => {
5110
5113
  var h;
5111
5114
  return c.id === a.replyParentId && ((h = c.latest_children.reply) == null || h.map((p) => (p.id === a.replyId && (p.latest_children = p.latest_children || {}, p.own_children = p.own_children || {}, p.latest_children.like = p.latest_children.like || [], p.own_children.like = p.own_children.like || [], p.latest_children.like.push(u), p.own_children.like.push(u)), p))), c;
5112
5115
  });
5113
5116
  return e.setQueryData(t, () => ({
5114
- ...l,
5117
+ ...d,
5115
5118
  latest_reactions: { reply: o }
5116
- })), { previousActivity: l };
5119
+ })), { previousActivity: d };
5117
5120
  } }), ma = ({
5118
5121
  queryClient: e,
5119
5122
  queryKey: t,
@@ -5121,13 +5124,13 @@ const Xr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5121
5124
  user: r
5122
5125
  }) => ({ mutationFn: n, onMutate: async ({
5123
5126
  replyId: a,
5124
- replyParentId: l
5127
+ replyParentId: d
5125
5128
  }) => {
5126
5129
  var c;
5127
5130
  await e.cancelQueries({ queryKey: t });
5128
5131
  const o = e.getQueryData(t), m = (c = o == null ? void 0 : o.latest_reactions.reply) == null ? void 0 : c.map((h) => {
5129
5132
  var p;
5130
- return h.id === l && ((p = h.latest_children.reply) == null || p.map((g) => {
5133
+ return h.id === d && ((p = h.latest_children.reply) == null || p.map((g) => {
5131
5134
  var b;
5132
5135
  return g.id === a && ((b = g.children_counts) != null && b.like ? g.children_counts.like -= 1 : g.children_counts = { like: 0 }), g;
5133
5136
  })), h;
@@ -5136,15 +5139,15 @@ const Xr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5136
5139
  ...o,
5137
5140
  latest_reactions: { reply: m }
5138
5141
  })), { previousActivity: o };
5139
- }, onError: (a, l, o) => {
5142
+ }, onError: (a, d, o) => {
5140
5143
  e.setQueryData(t, o.previousActivity);
5141
- }, onSuccess: (a, l) => {
5144
+ }, onSuccess: (a, d) => {
5142
5145
  var c;
5143
5146
  const o = e.getQueryData(t), m = (c = o == null ? void 0 : o.latest_reactions.reply) == null ? void 0 : c.map((h) => {
5144
5147
  var p;
5145
- return h.id === l.replyParentId && ((p = h.latest_children.reply) == null || p.map((g) => {
5148
+ return h.id === d.replyParentId && ((p = h.latest_children.reply) == null || p.map((g) => {
5146
5149
  var b, v;
5147
- return g.id === l.replyId && ((b = g.own_children) != null && b.like && (g.own_children.like = g.own_children.like.filter(
5150
+ return g.id === d.replyId && ((b = g.own_children) != null && b.like && (g.own_children.like = g.own_children.like.filter(
5148
5151
  (E) => E.user_id !== (r == null ? void 0 : r.id)
5149
5152
  )), (v = g.latest_children) != null && v.like && (g.latest_children.like = g.latest_children.like.filter(
5150
5153
  (E) => E.user_id !== (r == null ? void 0 : r.id)
@@ -5161,8 +5164,8 @@ const Xr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5161
5164
  replyParentId: n,
5162
5165
  activityId: r,
5163
5166
  replyCount: i,
5164
- replies: d,
5165
- functions: { create: u, edit: a, remove: l, join: o, leave: m, like: c, unlike: h }
5167
+ replies: l,
5168
+ functions: { create: u, edit: a, remove: d, join: o, leave: m, like: c, unlike: h }
5166
5169
  }) => {
5167
5170
  const p = D(), g = wt(), b = je($e), v = je(Et), E = ca({
5168
5171
  queryClient: g,
@@ -5177,7 +5180,7 @@ const Xr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5177
5180
  } = ie(_), N = da({
5178
5181
  queryClient: g,
5179
5182
  queryKey: [e, t, r],
5180
- mutationFn: async ({ replyId: k }) => l({ replyId: k })
5183
+ mutationFn: async ({ replyId: k }) => d({ replyId: k })
5181
5184
  }), {
5182
5185
  mutate: R
5183
5186
  } = ie(N), J = ua({
@@ -5220,7 +5223,7 @@ const Xr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5220
5223
  }
5221
5224
  }
5222
5225
  ),
5223
- (d == null ? void 0 : d.length) === 0 || (d == null ? void 0 : d.map((k) => {
5226
+ (l == null ? void 0 : l.length) === 0 || (l == null ? void 0 : l.map((k) => {
5224
5227
  var w, V, Z, se, re, ae, q, fe, ue, L, oe, he, ce, xe, pe, be, ge;
5225
5228
  return /* @__PURE__ */ s.jsx(
5226
5229
  St,
@@ -5292,12 +5295,12 @@ const Xr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5292
5295
  activityId: n,
5293
5296
  repliesList: r,
5294
5297
  isMember: i,
5295
- functions: { create: d, edit: u, remove: a, like: l, unlike: o, join: m, leave: c }
5298
+ functions: { create: l, edit: u, remove: a, like: d, unlike: o, join: m, leave: c }
5296
5299
  }) => {
5297
5300
  const h = D(), p = wt(), g = je($e), b = sa({
5298
5301
  queryClient: p,
5299
5302
  queryKey: [e, t, n],
5300
- mutationFn: async (x) => d({ activityId: n, content: x.body })
5303
+ mutationFn: async (x) => l({ activityId: n, content: x.body })
5301
5304
  }), { mutate: v } = ie(b), E = ra({
5302
5305
  queryClient: p,
5303
5306
  queryKey: [e, t, n],
@@ -5313,7 +5316,7 @@ const Xr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5313
5316
  } = ie(_), N = oa({
5314
5317
  queryClient: p,
5315
5318
  queryKey: [e, t, n],
5316
- mutationFn: l
5319
+ mutationFn: d
5317
5320
  }), {
5318
5321
  mutate: R
5319
5322
  } = ie(N), J = ia({
@@ -5411,10 +5414,10 @@ const Xr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5411
5414
  replies: (le = x == null ? void 0 : x.latest_children) == null ? void 0 : le.reply,
5412
5415
  isMember: i,
5413
5416
  functions: {
5414
- create: d,
5417
+ create: l,
5415
5418
  edit: u,
5416
5419
  remove: a,
5417
- like: l,
5420
+ like: d,
5418
5421
  unlike: o,
5419
5422
  join: m,
5420
5423
  leave: c
@@ -5439,13 +5442,13 @@ const Xr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5439
5442
  if (a.length === 0)
5440
5443
  return;
5441
5444
  await e.cancelQueries({ queryKey: t });
5442
- const l = e.getQueryData(t);
5443
- return l && l.id === (u == null ? void 0 : u.activityId) && (l.content = a), e.setQueryData(t, () => ({
5444
- ...l
5445
- })), { previousActivity: l };
5445
+ const d = e.getQueryData(t);
5446
+ return d && d.id === (u == null ? void 0 : u.activityId) && (d.content = a), e.setQueryData(t, () => ({
5447
+ ...d
5448
+ })), { previousActivity: d };
5446
5449
  },
5447
- onError: (u, a, l) => {
5448
- e.setQueryData(t, l.previousActivity);
5450
+ onError: (u, a, d) => {
5451
+ e.setQueryData(t, d.previousActivity);
5449
5452
  },
5450
5453
  onSettled: () => {
5451
5454
  e.invalidateQueries({ queryKey: t });
@@ -5462,19 +5465,19 @@ const Xr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5462
5465
  queryKey: t,
5463
5466
  mutationFn: n
5464
5467
  }) => ({ mutationFn: n, onMutate: async () => {
5465
- var l;
5468
+ var d;
5466
5469
  await e.cancelQueries({ queryKey: t });
5467
5470
  const a = e.getQueryData(t);
5468
- return (l = a == null ? void 0 : a.reaction_counts) != null && l.like ? a.reaction_counts.like += 1 : a && (a.reaction_counts = { like: 1 }), e.setQueryData(t, () => ({
5471
+ return (d = a == null ? void 0 : a.reaction_counts) != null && d.like ? a.reaction_counts.like += 1 : a && (a.reaction_counts = { like: 1 }), e.setQueryData(t, () => ({
5469
5472
  ...a
5470
5473
  })), { previousActivity: a };
5471
- }, onError: (a, l, o) => {
5474
+ }, onError: (a, d, o) => {
5472
5475
  e.setQueryData(t, o.previousActivity);
5473
5476
  }, onSuccess: (a) => {
5474
- const l = e.getQueryData(t);
5475
- return l != null && l.own_reactions.like ? l.own_reactions.like.push(a) : l && (l.own_reactions = { like: [a] }), l != null && l.latest_reactions.like ? l.latest_reactions.like.push(a) : l && (l.own_reactions = { like: [a] }), e.setQueryData(t, () => ({
5476
- ...l
5477
- })), { previousActivity: l };
5477
+ const d = e.getQueryData(t);
5478
+ return d != null && d.own_reactions.like ? d.own_reactions.like.push(a) : d && (d.own_reactions = { like: [a] }), d != null && d.latest_reactions.like ? d.latest_reactions.like.push(a) : d && (d.own_reactions = { like: [a] }), e.setQueryData(t, () => ({
5479
+ ...d
5480
+ })), { previousActivity: d };
5478
5481
  }, onSettled: () => {
5479
5482
  e.invalidateQueries({ queryKey: t });
5480
5483
  } }), xa = ({
@@ -5517,10 +5520,10 @@ const uo = ({
5517
5520
  isMember: r,
5518
5521
  functions: {
5519
5522
  get: i,
5520
- editActivity: d,
5523
+ editActivity: l,
5521
5524
  removeActivity: u,
5522
5525
  likeActivity: a,
5523
- unlikeActivity: l,
5526
+ unlikeActivity: d,
5524
5527
  createReply: o,
5525
5528
  editReply: m,
5526
5529
  removeReply: c,
@@ -5541,7 +5544,7 @@ const uo = ({
5541
5544
  }), R = pa({
5542
5545
  queryClient: j,
5543
5546
  queryKey: [e, t, n],
5544
- mutationFn: async (te) => await d(te)
5547
+ mutationFn: async (te) => await l(te)
5545
5548
  }), {
5546
5549
  mutate: J
5547
5550
  } = ie(R), O = ga({
@@ -5564,7 +5567,7 @@ const uo = ({
5564
5567
  const te = (tt = (Le = (Ee = _ == null ? void 0 : _.own_reactions) == null ? void 0 : Ee.like) == null ? void 0 : Le.find(
5565
5568
  (nt) => nt.user_id === (E == null ? void 0 : E.id)
5566
5569
  )) == null ? void 0 : tt.id;
5567
- await l({ activityId: n, reactionId: te });
5570
+ await d({ activityId: n, reactionId: te });
5568
5571
  },
5569
5572
  activity: _
5570
5573
  }), {
@@ -5677,10 +5680,10 @@ const uo = ({
5677
5680
  const n = D(), {
5678
5681
  answers: r,
5679
5682
  createdAt: i,
5680
- dateHasPassed: d,
5683
+ dateHasPassed: l,
5681
5684
  isOngoingEvent: u,
5682
5685
  pill: a,
5683
- readingTime: l,
5686
+ readingTime: d,
5684
5687
  publishedDate: o,
5685
5688
  startDate: m
5686
5689
  } = t;
@@ -5704,7 +5707,7 @@ const uo = ({
5704
5707
  ] })
5705
5708
  ] });
5706
5709
  }
5707
- if (m && !d || u)
5710
+ if (m && !l || u)
5708
5711
  return /* @__PURE__ */ s.jsx("p", { className: "details", children: u ? n.formatMessage({ id: "card_bootcamp" }) : Rn(m) });
5709
5712
  if (a)
5710
5713
  return /* @__PURE__ */ s.jsx(
@@ -5716,10 +5719,10 @@ const uo = ({
5716
5719
  children: a
5717
5720
  }
5718
5721
  );
5719
- if (l || o) {
5722
+ if (d || o) {
5720
5723
  const c = o && Gt(o);
5721
5724
  return /* @__PURE__ */ s.jsxs("ul", { className: "details", children: [
5722
- l && /* @__PURE__ */ s.jsx("li", { "data-testid": "reading-time", children: n.formatMessage({ id: "card_time_read" }, { time: l }) }),
5725
+ d && /* @__PURE__ */ s.jsx("li", { "data-testid": "reading-time", children: n.formatMessage({ id: "card_time_read" }, { time: d }) }),
5723
5726
  o && /* @__PURE__ */ s.jsx("li", { "data-testid": "published-date", children: n.formatMessage(
5724
5727
  { id: "card_time_ago" },
5725
5728
  {
@@ -5791,16 +5794,16 @@ const uo = ({
5791
5794
  }
5792
5795
  }, wa = ({ data: e, cta: t, link: n, gtmContext: r }) => {
5793
5796
  var g;
5794
- const i = D(), [d, u] = P({
5797
+ const i = D(), [l, u] = P({
5795
5798
  loading: !1,
5796
5799
  registered: e.registered || !1
5797
5800
  });
5798
5801
  G(() => {
5799
5802
  e.registered && u((b) => ({ ...b, registered: !0 }));
5800
5803
  }, [e.registered]);
5801
- const { startDate: a, dateHasPassed: l, pill: o, slug: m } = e, c = e.contentType;
5804
+ const { startDate: a, dateHasPassed: d, pill: o, slug: m } = e, c = e.contentType;
5802
5805
  let h = "";
5803
- if ((g = _t[c]) != null && g.gtmEvent && (h = _t[c].gtmEvent), a && l)
5806
+ if ((g = _t[c]) != null && g.gtmEvent && (h = _t[c].gtmEvent), a && d)
5804
5807
  return /* @__PURE__ */ s.jsx(
5805
5808
  "a",
5806
5809
  {
@@ -5826,7 +5829,7 @@ const uo = ({
5826
5829
  );
5827
5830
  const p = ["microcourse", "event"];
5828
5831
  if (t && t.onClick && p.includes(c) && o !== "premium") {
5829
- const b = d.loading || d.registered, v = async (E) => {
5832
+ const b = l.loading || l.registered, v = async (E) => {
5830
5833
  if (E.preventDefault(), E.stopPropagation(), !(b || !t || !t.onClick)) {
5831
5834
  u((j) => ({ ...j, loading: !0 }));
5832
5835
  try {
@@ -5849,7 +5852,7 @@ const uo = ({
5849
5852
  "data-gtm-event-type": `${r}-${c}-register-click`,
5850
5853
  "data-testid": "in-card-button",
5851
5854
  children: i.formatMessage({
5852
- id: `card_cta_${c}${b ? `_${d.loading ? "loading" : "done"}` : ""}`
5855
+ id: `card_cta_${c}${b ? `_${l.loading ? "loading" : "done"}` : ""}`
5853
5856
  })
5854
5857
  }
5855
5858
  );
@@ -5876,13 +5879,13 @@ const ka = {
5876
5879
  buildCardData: n,
5877
5880
  cta: r,
5878
5881
  gtmContext: i = "Carousel",
5879
- className: d = ""
5882
+ className: l = ""
5880
5883
  }) => {
5881
- const u = D(), a = je($e), l = a && typeof a.id == "string", [o, m] = P({
5884
+ const u = D(), a = je($e), d = a && typeof a.id == "string", [o, m] = P({
5882
5885
  data: null,
5883
5886
  isLoading: !0
5884
5887
  }), { data: c, isLoading: h } = o, p = Me(() => {
5885
- n(t, l).then((O) => {
5888
+ n(t, d).then((O) => {
5886
5889
  m(() => ({ data: O, isLoading: !1 }));
5887
5890
  }).catch(() => m((O) => ({ ...O, isLoading: !1 })));
5888
5891
  }, [e]);
@@ -5918,7 +5921,7 @@ const ka = {
5918
5921
  return /* @__PURE__ */ s.jsx(
5919
5922
  "li",
5920
5923
  {
5921
- className: S("card-wrapper text-medium", v, d, {
5924
+ className: S("card-wrapper text-medium", v, l, {
5922
5925
  "has-link": T,
5923
5926
  "no-link": !T,
5924
5927
  "has-custom-icon": c.customIcon,
@@ -5979,13 +5982,13 @@ const ka = {
5979
5982
  }
5980
5983
  );
5981
5984
  };
5982
- const ya = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__ */ s.jsx("ul", { className: S("card-block", n), children: e.map((i, d) => {
5983
- const u = i.slug ? `${i.slug}-${t[d]}` : `${t[d]}-${d}`;
5985
+ const ya = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__ */ s.jsx("ul", { className: S("card-block", n), children: e.map((i, l) => {
5986
+ const u = i.slug ? `${i.slug}-${t[l]}` : `${t[l]}-${l}`;
5984
5987
  return /* @__PURE__ */ s.jsx(
5985
5988
  ja,
5986
5989
  {
5987
5990
  id: u,
5988
- card: { ...i, contentType: t[d] },
5991
+ card: { ...i, contentType: t[l] },
5989
5992
  ...r
5990
5993
  },
5991
5994
  u