@apolitical/component-library 1.14.14 → 1.14.15

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 c = arguments[i];
31
- if (c) {
32
- var d = typeof c;
33
- if (d === "string" || d === "number")
34
- r.push(c);
35
- else if (Array.isArray(c)) {
36
- if (c.length) {
37
- var a = n.apply(null, c);
30
+ var l = arguments[i];
31
+ if (l) {
32
+ var u = typeof l;
33
+ if (u === "string" || u === "number")
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
- } else if (d === "object") {
41
- if (c.toString !== Object.prototype.toString && !c.toString.toString().includes("[native code]")) {
42
- r.push(c.toString());
40
+ } else if (u === "object") {
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 c)
46
- t.call(c, l) && c[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
  }
@@ -53,7 +53,7 @@ var Nn = { exports: {} };
53
53
  })();
54
54
  })(Nn);
55
55
  var Cs = Nn.exports;
56
- const $ = /* @__PURE__ */ Ds(Cs), As = ({ element: e = "span", showOnFocus: t = !0, children: n, ...r }) => A.createElement(e, { ...r, className: $("hidden", { "show-on-focus": t }), children: n }), _e = We(As), Ps = ({ element: e = "span", children: t = null, ...n }) => A.createElement(e, { ...n, "aria-hidden": !0 }, t), Dn = We(Ps);
56
+ const S = /* @__PURE__ */ Ds(Cs), As = ({ element: e = "span", showOnFocus: t = !0, children: n, ...r }) => A.createElement(e, { ...r, className: S("hidden", { "show-on-focus": t }), children: n }), _e = We(As), Ps = ({ element: e = "span", children: t = null, ...n }) => A.createElement(e, { ...n, "aria-hidden": !0 }, t), Dn = We(Ps);
57
57
  var Yt = { exports: {} }, Ye = {};
58
58
  /**
59
59
  * @license React
@@ -69,18 +69,18 @@ function Rs() {
69
69
  if (pn)
70
70
  return Ye;
71
71
  pn = 1;
72
- var e = A, 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, c = { key: !0, ref: !0, __self: !0, __source: !0 };
73
- function d(a, l, o) {
74
- var m, u = {}, 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) && !c.hasOwnProperty(m) && (u[m] = l[m]);
72
+ var e = A, 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
+ var m, c = {}, h = null, p = null;
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
- u[m] === void 0 && (u[m] = l[m]);
81
- return { $$typeof: t, type: a, key: h, ref: p, props: u, _owner: i.current };
79
+ for (m in d = a.defaultProps, d)
80
+ c[m] === void 0 && (c[m] = d[m]);
81
+ return { $$typeof: t, type: a, key: h, ref: p, props: c, _owner: i.current };
82
82
  }
83
- return Ye.Fragment = n, Ye.jsx = d, Ye.jsxs = d, Ye;
83
+ return Ye.Fragment = n, Ye.jsx = u, Ye.jsxs = u, Ye;
84
84
  }
85
85
  var Ge = {};
86
86
  /**
@@ -95,27 +95,27 @@ 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 = A, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), d = 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"), u = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), g = Symbol.iterator, b = "@@iterator";
98
+ var e = A, 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, x = "@@iterator";
99
99
  function v(f) {
100
100
  if (f === null || typeof f != "object")
101
101
  return null;
102
- var y = g && f[g] || f[b];
102
+ var y = g && f[g] || f[x];
103
103
  return typeof y == "function" ? y : null;
104
104
  }
105
105
  var E = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
106
106
  function k(f) {
107
107
  {
108
- for (var y = arguments.length, S = new Array(y > 1 ? y - 1 : 0), M = 1; M < y; M++)
109
- S[M - 1] = arguments[M];
110
- _("error", f, S);
108
+ for (var y = arguments.length, $ = new Array(y > 1 ? y - 1 : 0), M = 1; M < y; M++)
109
+ $[M - 1] = arguments[M];
110
+ _("error", f, $);
111
111
  }
112
112
  }
113
- function _(f, y, S) {
113
+ function _(f, y, $) {
114
114
  {
115
115
  var M = E.ReactDebugCurrentFrame, Q = M.getStackAddendum();
116
- Q !== "" && (y += "%s", S = S.concat([Q]));
117
- var W = S.map(function(I) {
118
- return String(I);
116
+ Q !== "" && (y += "%s", $ = $.concat([Q]));
117
+ var W = $.map(function(O) {
118
+ return String(O);
119
119
  });
120
120
  W.unshift("Warning: " + y), Function.prototype.apply.call(console[f], console, W);
121
121
  }
@@ -123,18 +123,18 @@ function Fs() {
123
123
  var T = !1, C = !1, R = !1, V = !1, N = !1, P;
124
124
  P = Symbol.for("react.module.reference");
125
125
  function G(f) {
126
- return !!(typeof f == "string" || typeof f == "function" || f === r || f === c || N || f === i || f === o || f === m || V || f === p || T || C || R || typeof f == "object" && f !== null && (f.$$typeof === h || f.$$typeof === u || f.$$typeof === d || 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 || N || f === i || f === o || f === m || V || f === p || T || C || 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.
130
130
  f.$$typeof === P || f.getModuleId !== void 0));
131
131
  }
132
- function x(f, y, S) {
132
+ function b(f, y, $) {
133
133
  var M = f.displayName;
134
134
  if (M)
135
135
  return M;
136
136
  var Q = y.displayName || y.name || "";
137
- return Q !== "" ? S + "(" + Q + ")" : S;
137
+ return Q !== "" ? $ + "(" + Q + ")" : $;
138
138
  }
139
139
  function K(f) {
140
140
  return f.displayName || "Context";
@@ -151,7 +151,7 @@ function Fs() {
151
151
  return "Fragment";
152
152
  case n:
153
153
  return "Portal";
154
- case c:
154
+ case l:
155
155
  return "Profiler";
156
156
  case i:
157
157
  return "StrictMode";
@@ -165,18 +165,18 @@ function Fs() {
165
165
  case a:
166
166
  var y = f;
167
167
  return K(y) + ".Consumer";
168
- case d:
169
- var S = f;
170
- return K(S._context) + ".Provider";
171
- case l:
172
- return x(f, f.render, "ForwardRef");
173
168
  case u:
169
+ var $ = f;
170
+ return K($._context) + ".Provider";
171
+ case d:
172
+ return b(f, f.render, "ForwardRef");
173
+ case c:
174
174
  var M = f.displayName || null;
175
175
  return M !== null ? M : j(f.type) || "Memo";
176
176
  case h: {
177
- var Q = f, W = Q._payload, I = Q._init;
177
+ var Q = f, W = Q._payload, O = Q._init;
178
178
  try {
179
- return j(I(W));
179
+ return j(O(W));
180
180
  } catch {
181
181
  return null;
182
182
  }
@@ -185,9 +185,9 @@ function Fs() {
185
185
  return null;
186
186
  }
187
187
  var w = Object.assign, z = 0, X, se, re, ae, q, fe, ue;
188
- function O() {
188
+ function I() {
189
189
  }
190
- O.__reactDisabledLog = !0;
190
+ I.__reactDisabledLog = !0;
191
191
  function oe() {
192
192
  {
193
193
  if (z === 0) {
@@ -195,7 +195,7 @@ function Fs() {
195
195
  var f = {
196
196
  configurable: !0,
197
197
  enumerable: !0,
198
- value: O,
198
+ value: I,
199
199
  writable: !0
200
200
  };
201
201
  Object.defineProperties(console, {
@@ -247,7 +247,7 @@ function Fs() {
247
247
  }
248
248
  }
249
249
  var ce = E.ReactCurrentDispatcher, xe;
250
- function pe(f, y, S) {
250
+ function pe(f, y, $) {
251
251
  {
252
252
  if (xe === void 0)
253
253
  try {
@@ -269,9 +269,9 @@ function Fs() {
269
269
  if (!f || be)
270
270
  return "";
271
271
  {
272
- var S = ge.get(f);
273
- if (S !== void 0)
274
- return S;
272
+ var $ = ge.get(f);
273
+ if ($ !== void 0)
274
+ return $;
275
275
  }
276
276
  var M;
277
277
  be = !0;
@@ -281,27 +281,27 @@ function Fs() {
281
281
  W = ce.current, ce.current = null, oe();
282
282
  try {
283
283
  if (y) {
284
- var I = function() {
284
+ var O = function() {
285
285
  throw Error();
286
286
  };
287
- if (Object.defineProperty(I.prototype, "props", {
287
+ if (Object.defineProperty(O.prototype, "props", {
288
288
  set: function() {
289
289
  throw Error();
290
290
  }
291
291
  }), typeof Reflect == "object" && Reflect.construct) {
292
292
  try {
293
- Reflect.construct(I, []);
293
+ Reflect.construct(O, []);
294
294
  } catch (Ne) {
295
295
  M = Ne;
296
296
  }
297
- Reflect.construct(f, [], I);
297
+ Reflect.construct(f, [], O);
298
298
  } else {
299
299
  try {
300
- I.call();
300
+ O.call();
301
301
  } catch (Ne) {
302
302
  M = Ne;
303
303
  }
304
- f.call(I.prototype);
304
+ f.call(O.prototype);
305
305
  }
306
306
  } else {
307
307
  try {
@@ -333,17 +333,17 @@ function Fs() {
333
333
  } finally {
334
334
  be = !1, ce.current = W, he(), Error.prepareStackTrace = Q;
335
335
  }
336
- var Ie = f ? f.displayName || f.name : "", hn = Ie ? pe(Ie) : "";
336
+ var Oe = f ? f.displayName || f.name : "", hn = Oe ? pe(Oe) : "";
337
337
  return typeof f == "function" && ge.set(f, hn), hn;
338
338
  }
339
- function le(f, y, S) {
339
+ function le(f, y, $) {
340
340
  return J(f, !1);
341
341
  }
342
342
  function ee(f) {
343
343
  var y = f.prototype;
344
344
  return !!(y && y.isReactComponent);
345
345
  }
346
- function me(f, y, S) {
346
+ function me(f, y, $) {
347
347
  if (f == null)
348
348
  return "";
349
349
  if (typeof f == "function")
@@ -358,14 +358,14 @@ 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
- case u:
364
- return me(f.type, y, S);
363
+ case c:
364
+ return me(f.type, y, $);
365
365
  case h: {
366
366
  var M = f, Q = M._payload, W = M._init;
367
367
  try {
368
- return me(W(Q), y, S);
368
+ return me(W(Q), y, $);
369
369
  } catch {
370
370
  }
371
371
  }
@@ -375,27 +375,27 @@ function Fs() {
375
375
  var ke = Object.prototype.hasOwnProperty, Ae = {}, ze = E.ReactDebugCurrentFrame;
376
376
  function Fe(f) {
377
377
  if (f) {
378
- var y = f._owner, S = me(f.type, f._source, y ? y.type : null);
379
- ze.setExtraStackFrame(S);
378
+ var y = f._owner, $ = me(f.type, f._source, y ? y.type : null);
379
+ ze.setExtraStackFrame($);
380
380
  } else
381
381
  ze.setExtraStackFrame(null);
382
382
  }
383
- function et(f, y, S, M, Q) {
383
+ function et(f, y, $, M, Q) {
384
384
  {
385
385
  var W = Function.call.bind(ke);
386
- for (var I in f)
387
- if (W(f, I)) {
386
+ for (var O in f)
387
+ if (W(f, O)) {
388
388
  var F = void 0;
389
389
  try {
390
- if (typeof f[I] != "function") {
391
- var we = Error((M || "React class") + ": " + S + " type `" + I + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof f[I] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
390
+ if (typeof f[O] != "function") {
391
+ var we = Error((M || "React class") + ": " + $ + " type `" + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof f[O] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
392
392
  throw we.name = "Invariant Violation", we;
393
393
  }
394
- F = f[I](y, I, M, S, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
394
+ F = f[O](y, O, M, $, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
395
395
  } catch (Z) {
396
396
  F = Z;
397
397
  }
398
- F && !(F instanceof Error) && (Fe(Q), k("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", M || "React class", S, I, typeof F), Fe(null)), F instanceof Error && !(F.message in Ae) && (Ae[F.message] = !0, Fe(Q), k("Failed %s type: %s", S, F.message), Fe(null));
398
+ F && !(F instanceof Error) && (Fe(Q), k("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", M || "React class", $, O, typeof F), Fe(null)), F instanceof Error && !(F.message in Ae) && (Ae[F.message] = !0, Fe(Q), k("Failed %s type: %s", $, F.message), Fe(null));
399
399
  }
400
400
  }
401
401
  }
@@ -405,8 +405,8 @@ function Fs() {
405
405
  }
406
406
  function Le(f) {
407
407
  {
408
- var y = typeof Symbol == "function" && Symbol.toStringTag, S = y && f[Symbol.toStringTag] || f.constructor.name || "Object";
409
- return S;
408
+ var y = typeof Symbol == "function" && Symbol.toStringTag, $ = y && f[Symbol.toStringTag] || f.constructor.name || "Object";
409
+ return $;
410
410
  }
411
411
  }
412
412
  function tt(f) {
@@ -448,41 +448,41 @@ function Fs() {
448
448
  }
449
449
  function ss(f, y) {
450
450
  if (typeof f.ref == "string" && Ve.current && y && Ve.current.stateNode !== y) {
451
- var S = j(Ve.current.type);
452
- $t[S] || (k('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', j(Ve.current.type), f.ref), $t[S] = !0);
451
+ var $ = j(Ve.current.type);
452
+ $t[$] || (k('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', j(Ve.current.type), f.ref), $t[$] = !0);
453
453
  }
454
454
  }
455
455
  function rs(f, y) {
456
456
  {
457
- var S = function() {
457
+ var $ = function() {
458
458
  an || (an = !0, k("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", y));
459
459
  };
460
- S.isReactWarning = !0, Object.defineProperty(f, "key", {
461
- get: S,
460
+ $.isReactWarning = !0, Object.defineProperty(f, "key", {
461
+ get: $,
462
462
  configurable: !0
463
463
  });
464
464
  }
465
465
  }
466
466
  function as(f, y) {
467
467
  {
468
- var S = function() {
468
+ var $ = function() {
469
469
  on || (on = !0, k("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", y));
470
470
  };
471
- S.isReactWarning = !0, Object.defineProperty(f, "ref", {
472
- get: S,
471
+ $.isReactWarning = !0, Object.defineProperty(f, "ref", {
472
+ get: $,
473
473
  configurable: !0
474
474
  });
475
475
  }
476
476
  }
477
- var os = function(f, y, S, M, Q, W, I) {
477
+ var os = function(f, y, $, M, Q, W, O) {
478
478
  var F = {
479
479
  // This tag allows us to uniquely identify this as a React Element
480
480
  $$typeof: t,
481
481
  // Built-in properties that belong on the element
482
482
  type: f,
483
483
  key: y,
484
- ref: S,
485
- props: I,
484
+ ref: $,
485
+ props: O,
486
486
  // Record the component responsible for creating this element.
487
487
  _owner: W
488
488
  };
@@ -503,29 +503,29 @@ function Fs() {
503
503
  value: Q
504
504
  }), Object.freeze && (Object.freeze(F.props), Object.freeze(F)), F;
505
505
  };
506
- function is(f, y, S, M, Q) {
506
+ function is(f, y, $, M, Q) {
507
507
  {
508
- var W, I = {}, F = null, we = null;
509
- S !== void 0 && (rn(S), F = "" + S), ns(y) && (rn(y.key), F = "" + y.key), ts(y) && (we = y.ref, ss(y, Q));
508
+ var W, O = {}, F = null, we = null;
509
+ $ !== void 0 && (rn($), F = "" + $), ns(y) && (rn(y.key), F = "" + y.key), ts(y) && (we = y.ref, ss(y, Q));
510
510
  for (W in y)
511
- ke.call(y, W) && !es.hasOwnProperty(W) && (I[W] = y[W]);
511
+ ke.call(y, W) && !es.hasOwnProperty(W) && (O[W] = y[W]);
512
512
  if (f && f.defaultProps) {
513
513
  var Z = f.defaultProps;
514
514
  for (W in Z)
515
- I[W] === void 0 && (I[W] = Z[W]);
515
+ O[W] === void 0 && (O[W] = Z[W]);
516
516
  }
517
517
  if (F || we) {
518
518
  var ne = typeof f == "function" ? f.displayName || f.name || "Unknown" : f;
519
- F && rs(I, ne), we && as(I, ne);
519
+ F && rs(O, ne), we && as(O, ne);
520
520
  }
521
- return os(f, F, we, Q, M, Ve.current, I);
521
+ return os(f, F, we, Q, M, Ve.current, O);
522
522
  }
523
523
  }
524
524
  var Tt = E.ReactCurrentOwner, cn = E.ReactDebugCurrentFrame;
525
- function Oe(f) {
525
+ function Ie(f) {
526
526
  if (f) {
527
- var y = f._owner, S = me(f.type, f._source, y ? y.type : null);
528
- cn.setExtraStackFrame(S);
527
+ var y = f._owner, $ = me(f.type, f._source, y ? y.type : null);
528
+ cn.setExtraStackFrame($);
529
529
  } else
530
530
  cn.setExtraStackFrame(null);
531
531
  }
@@ -549,10 +549,10 @@ Check the render method of \`` + f + "`.";
549
549
  function cs(f) {
550
550
  {
551
551
  if (f !== void 0) {
552
- var y = f.fileName.replace(/^.*[\\\/]/, ""), S = f.lineNumber;
552
+ var y = f.fileName.replace(/^.*[\\\/]/, ""), $ = f.lineNumber;
553
553
  return `
554
554
 
555
- Check your code at ` + y + ":" + S + ".";
555
+ Check your code at ` + y + ":" + $ + ".";
556
556
  }
557
557
  return "";
558
558
  }
@@ -562,10 +562,10 @@ Check your code at ` + y + ":" + S + ".";
562
562
  {
563
563
  var y = ln();
564
564
  if (!y) {
565
- var S = typeof f == "string" ? f : f.displayName || f.name;
566
- S && (y = `
565
+ var $ = typeof f == "string" ? f : f.displayName || f.name;
566
+ $ && (y = `
567
567
 
568
- Check the top-level render call using <` + S + ">.");
568
+ Check the top-level render call using <` + $ + ">.");
569
569
  }
570
570
  return y;
571
571
  }
@@ -575,12 +575,12 @@ Check the top-level render call using <` + S + ">.");
575
575
  if (!f._store || f._store.validated || f.key != null)
576
576
  return;
577
577
  f._store.validated = !0;
578
- var S = ls(y);
579
- if (dn[S])
578
+ var $ = ls(y);
579
+ if (dn[$])
580
580
  return;
581
- dn[S] = !0;
581
+ dn[$] = !0;
582
582
  var M = "";
583
- f && f._owner && f._owner !== Tt.current && (M = " It was passed a child from " + j(f._owner.type) + "."), Oe(f), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', S, M), Oe(null);
583
+ f && f._owner && f._owner !== Tt.current && (M = " It was passed a child from " + j(f._owner.type) + "."), Ie(f), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', $, M), Ie(null);
584
584
  }
585
585
  }
586
586
  function mn(f, y) {
@@ -588,8 +588,8 @@ Check the top-level render call using <` + S + ">.");
588
588
  if (typeof f != "object")
589
589
  return;
590
590
  if (Ee(f))
591
- for (var S = 0; S < f.length; S++) {
592
- var M = f[S];
591
+ for (var $ = 0; $ < f.length; $++) {
592
+ var M = f[$];
593
593
  Nt(M) && un(M, y);
594
594
  }
595
595
  else if (Nt(f))
@@ -597,8 +597,8 @@ Check the top-level render call using <` + S + ">.");
597
597
  else if (f) {
598
598
  var Q = v(f);
599
599
  if (typeof Q == "function" && Q !== f.entries)
600
- for (var W = Q.call(f), I; !(I = W.next()).done; )
601
- Nt(I.value) && un(I.value, y);
600
+ for (var W = Q.call(f), O; !(O = W.next()).done; )
601
+ Nt(O.value) && un(O.value, y);
602
602
  }
603
603
  }
604
604
  }
@@ -607,18 +607,18 @@ Check the top-level render call using <` + S + ">.");
607
607
  var y = f.type;
608
608
  if (y == null || typeof y == "string")
609
609
  return;
610
- var S;
610
+ var $;
611
611
  if (typeof y == "function")
612
- S = y.propTypes;
613
- else if (typeof y == "object" && (y.$$typeof === l || // Note: Memo only checks outer props here.
612
+ $ = y.propTypes;
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
- y.$$typeof === u))
616
- S = y.propTypes;
615
+ y.$$typeof === c))
616
+ $ = y.propTypes;
617
617
  else
618
618
  return;
619
- if (S) {
619
+ if ($) {
620
620
  var M = j(y);
621
- et(S, f.props, "prop", M, f);
621
+ et($, f.props, "prop", M, f);
622
622
  } else if (y.PropTypes !== void 0 && !Mt) {
623
623
  Mt = !0;
624
624
  var Q = j(y);
@@ -629,20 +629,20 @@ Check the top-level render call using <` + S + ">.");
629
629
  }
630
630
  function us(f) {
631
631
  {
632
- for (var y = Object.keys(f.props), S = 0; S < y.length; S++) {
633
- var M = y[S];
632
+ for (var y = Object.keys(f.props), $ = 0; $ < y.length; $++) {
633
+ var M = y[$];
634
634
  if (M !== "children" && M !== "key") {
635
- Oe(f), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", M), Oe(null);
635
+ Ie(f), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", M), Ie(null);
636
636
  break;
637
637
  }
638
638
  }
639
- f.ref !== null && (Oe(f), k("Invalid attribute `ref` supplied to `React.Fragment`."), Oe(null));
639
+ f.ref !== null && (Ie(f), k("Invalid attribute `ref` supplied to `React.Fragment`."), Ie(null));
640
640
  }
641
641
  }
642
- function fn(f, y, S, M, Q, W) {
642
+ function fn(f, y, $, M, Q, W) {
643
643
  {
644
- var I = G(f);
645
- if (!I) {
644
+ var O = G(f);
645
+ if (!O) {
646
646
  var F = "";
647
647
  (f === void 0 || typeof f == "object" && f !== null && Object.keys(f).length === 0) && (F += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
648
648
  var we = cs(Q);
@@ -650,16 +650,16 @@ Check the top-level render call using <` + S + ">.");
650
650
  var Z;
651
651
  f === null ? Z = "null" : Ee(f) ? Z = "array" : f !== void 0 && f.$$typeof === t ? (Z = "<" + (j(f.type) || "Unknown") + " />", F = " Did you accidentally export a JSX literal instead of a component?") : Z = typeof f, k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Z, F);
652
652
  }
653
- var ne = is(f, y, S, Q, W);
653
+ var ne = is(f, y, $, Q, W);
654
654
  if (ne == null)
655
655
  return ne;
656
- if (I) {
656
+ if (O) {
657
657
  var ye = y.children;
658
658
  if (ye !== void 0)
659
659
  if (M)
660
660
  if (Ee(ye)) {
661
- for (var Ie = 0; Ie < ye.length; Ie++)
662
- mn(ye[Ie], f);
661
+ for (var Oe = 0; Oe < ye.length; Oe++)
662
+ mn(ye[Oe], f);
663
663
  Object.freeze && Object.freeze(ye);
664
664
  } else
665
665
  k("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
@@ -669,11 +669,11 @@ Check the top-level render call using <` + S + ">.");
669
669
  return f === r ? us(ne) : ds(ne), ne;
670
670
  }
671
671
  }
672
- function ms(f, y, S) {
673
- return fn(f, y, S, !0);
672
+ function ms(f, y, $) {
673
+ return fn(f, y, $, !0);
674
674
  }
675
- function fs(f, y, S) {
676
- return fn(f, y, S, !1);
675
+ function fs(f, y, $) {
676
+ return fn(f, y, $, !1);
677
677
  }
678
678
  var hs = fs, ps = ms;
679
679
  Ge.Fragment = r, Ge.jsx = hs, Ge.jsxs = ps;
@@ -695,8 +695,8 @@ const Ls = () => {
695
695
  n.current ? e() : n.current = !0;
696
696
  }, t);
697
697
  };
698
- function Os(e, t, n) {
699
- var r = this, i = de(null), c = de(0), d = de(null), a = de([]), l = de(), o = de(), m = de(e), u = de(!0);
698
+ function Is(e, t, n) {
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
  Y(function() {
701
701
  m.current = e;
702
702
  }, [e]);
@@ -704,56 +704,56 @@ function Os(e, t, n) {
704
704
  if (typeof e != "function")
705
705
  throw new TypeError("Expected a function");
706
706
  t = +t || 0;
707
- var p = !!(n = n || {}).leading, g = !("trailing" in n) || !!n.trailing, b = "maxWait" in n, v = b ? Math.max(+n.maxWait || 0, t) : null;
707
+ var p = !!(n = n || {}).leading, g = !("trailing" in n) || !!n.trailing, x = "maxWait" in n, v = x ? Math.max(+n.maxWait || 0, t) : null;
708
708
  Y(function() {
709
- return u.current = !0, function() {
710
- u.current = !1;
709
+ return c.current = !0, function() {
710
+ c.current = !1;
711
711
  };
712
712
  }, []);
713
713
  var E = xt(function() {
714
714
  var k = function(N) {
715
- var P = a.current, G = l.current;
716
- return a.current = l.current = null, c.current = N, o.current = m.current.apply(G, P);
715
+ var P = a.current, G = d.current;
716
+ return a.current = d.current = null, l.current = N, o.current = m.current.apply(G, P);
717
717
  }, _ = function(N, P) {
718
- h && cancelAnimationFrame(d.current), d.current = h ? requestAnimationFrame(N) : setTimeout(N, P);
718
+ h && cancelAnimationFrame(u.current), u.current = h ? requestAnimationFrame(N) : setTimeout(N, P);
719
719
  }, T = function(N) {
720
- if (!u.current)
720
+ if (!c.current)
721
721
  return !1;
722
722
  var P = N - i.current;
723
- return !i.current || P >= t || P < 0 || b && N - c.current >= v;
723
+ return !i.current || P >= t || P < 0 || x && N - l.current >= v;
724
724
  }, C = function(N) {
725
- return d.current = null, g && a.current ? k(N) : (a.current = l.current = null, o.current);
725
+ return u.current = null, g && a.current ? k(N) : (a.current = d.current = null, o.current);
726
726
  }, R = function N() {
727
727
  var P = Date.now();
728
728
  if (T(P))
729
729
  return C(P);
730
- if (u.current) {
731
- var G = t - (P - i.current), x = b ? Math.min(G, v - (P - c.current)) : G;
732
- _(N, x);
730
+ if (c.current) {
731
+ var G = t - (P - i.current), b = x ? Math.min(G, v - (P - l.current)) : G;
732
+ _(N, b);
733
733
  }
734
734
  }, V = function() {
735
735
  var N = Date.now(), P = T(N);
736
- if (a.current = [].slice.call(arguments), l.current = r, i.current = N, P) {
737
- if (!d.current && u.current)
738
- return c.current = i.current, _(R, t), p ? k(i.current) : o.current;
739
- if (b)
736
+ if (a.current = [].slice.call(arguments), d.current = r, i.current = N, P) {
737
+ if (!u.current && c.current)
738
+ return l.current = i.current, _(R, t), p ? k(i.current) : o.current;
739
+ if (x)
740
740
  return _(R, t), k(i.current);
741
741
  }
742
- return d.current || _(R, t), o.current;
742
+ return u.current || _(R, t), o.current;
743
743
  };
744
744
  return V.cancel = function() {
745
- d.current && (h ? cancelAnimationFrame(d.current) : clearTimeout(d.current)), c.current = 0, a.current = i.current = l.current = d.current = null;
745
+ u.current && (h ? cancelAnimationFrame(u.current) : clearTimeout(u.current)), l.current = 0, a.current = i.current = d.current = u.current = null;
746
746
  }, V.isPending = function() {
747
- return !!d.current;
747
+ return !!u.current;
748
748
  }, V.flush = function() {
749
- return d.current ? C(Date.now()) : o.current;
749
+ return u.current ? C(Date.now()) : o.current;
750
750
  }, V;
751
- }, [p, b, t, v, g, h]);
751
+ }, [p, x, t, v, g, h]);
752
752
  return E;
753
753
  }
754
754
  function Cn(e, t, n) {
755
- var r = n === void 0 ? {} : n, i = r.leading, c = r.trailing;
756
- return Os(e, t, { maxWait: t, leading: i === void 0 || i, trailing: c === void 0 || c });
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,17 +761,17 @@ const vt = (e = !0, t = !1, n = "window") => {
761
761
  return;
762
762
  const [r, i] = A.useState(0) || [!1, () => {
763
763
  }];
764
- Y(() => (a(), window.addEventListener("resize", l), () => {
765
- clearTimeout(Dt), l.flush(), window.removeEventListener("resize", l);
764
+ Y(() => (a(), window.addEventListener("resize", d), () => {
765
+ clearTimeout(Dt), d.flush(), window.removeEventListener("resize", d);
766
766
  }), n === "window" ? [] : [n]);
767
- const d = () => {
767
+ const u = () => {
768
768
  if (n)
769
769
  return n === "window" ? window.innerWidth : n.offsetWidth;
770
770
  }, a = () => {
771
- i(d());
772
- }, l = Cn(
771
+ i(u());
772
+ }, d = Cn(
773
773
  () => {
774
- d() !== r && (t && (clearTimeout(Dt), document.body.classList.add("is-resizing"), Dt = setTimeout(() => {
774
+ u() !== r && (t && (clearTimeout(Dt), document.body.classList.add("is-resizing"), Dt = setTimeout(() => {
775
775
  document.body.classList.remove("is-resizing");
776
776
  }, 550)), a());
777
777
  },
@@ -779,7 +779,7 @@ const vt = (e = !0, t = !1, n = "window") => {
779
779
  { leading: !0 }
780
780
  );
781
781
  return r;
782
- }, Is = ({
782
+ }, Os = ({
783
783
  scrollPosition: e = 0,
784
784
  // The position on the page to scroll past
785
785
  offset: t = { down: 0, up: 10 },
@@ -790,24 +790,24 @@ const vt = (e = !0, t = !1, n = "window") => {
790
790
  }) => {
791
791
  if (!window)
792
792
  return;
793
- const [i, c] = A.useState({ current: 0, past: 0 }) || [!1, () => {
794
- }], [d, a] = A.useState({ scrollDown: !1, scrollUp: !1 }) || [!1, () => {
793
+ const [i, l] = A.useState({ current: 0, past: 0 }) || [!1, () => {
794
+ }], [u, a] = A.useState({ scrollDown: !1, scrollUp: !1 }) || [!1, () => {
795
795
  }];
796
- Y(() => (l(), window.addEventListener("scroll", o), () => {
796
+ Y(() => (d(), window.addEventListener("scroll", o), () => {
797
797
  o.flush(), window.removeEventListener("scroll", o);
798
798
  }), []);
799
- const l = () => {
800
- const m = window.scrollY, u = i.current, h = m - u, p = h > 0 ? "down" : "up";
801
- if (c({ current: m, past: u }), p === "down") {
802
- m >= e + t.down && !d.scrollDown && (!d.scrollUp || h > t.up) && (n(), a({ scrollUp: !1, scrollDown: !0 }));
799
+ const d = () => {
800
+ const m = window.scrollY, c = i.current, h = m - c, p = h > 0 ? "down" : "up";
801
+ if (l({ current: m, past: c }), p === "down") {
802
+ m >= e + t.down && !u.scrollDown && (!u.scrollUp || h > t.up) && (n(), a({ scrollUp: !1, scrollDown: !0 }));
803
803
  return;
804
804
  }
805
- Math.abs(h) >= t.up && !d.scrollUp && (r(), a({ scrollUp: !0, scrollDown: !1 }));
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
- }, Ia = (e = [], t = !0) => {
810
+ }, Oa = (e = [], t = !0) => {
811
811
  e = Array.isArray(e) ? e : [e];
812
812
  const n = de(!1);
813
813
  He(() => {
@@ -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 c = parseInt(String(t[i]));
831
- if (e >= c)
832
- r = n[c];
833
- else if (e < c)
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 c;
844
- const d = _n(), a = _n(new Date(e));
843
+ let l;
844
+ const u = _n(), a = _n(new Date(e));
845
845
  try {
846
- c = d.getTime() - a.getTime();
846
+ l = u.getTime() - a.getTime();
847
847
  } catch {
848
848
  return "";
849
849
  }
850
- const l = c / 36e5, o = Math.floor(c / 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: Us,
1201
1201
  pt: Ws
1202
1202
  }, Symbol.toStringTag, { value: "Module" })), Fn = (e) => e in qt, Te = (e, t, n, r, i = {}) => {
1203
- let c = "";
1204
- return Fn(`${t}_${n}`) ? c = e({ id: `${t}_${n}` }, i) : c = e({ id: t }, { [r]: n, ...i }), c;
1203
+ let l = "";
1204
+ return Fn(`${t}_${n}`) ? l = e({ id: `${t}_${n}` }, i) : l = e({ id: t }, { [r]: n, ...i }), l;
1205
1205
  }, Vs = (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 c = Math.pow(10, (i + 1) * 3);
1213
- if (c <= e) {
1214
- e = Math.round(e * t / c) / 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,13 +1235,13 @@ 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: c = "button",
1239
- onClick: d = !1,
1238
+ element: l = "button",
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
- ...u
1244
+ ...c
1245
1245
  }) => {
1246
1246
  const p = vt(typeof t == "object");
1247
1247
  if (typeof t == "object" && typeof p == "number") {
@@ -1250,48 +1250,48 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1250
1250
  }
1251
1251
  const g = [];
1252
1252
  typeof t == "string" && g.push(t), r && (g.push("icon"), typeof r == "object" ? (g.push(r.icon), r.position ? g.push(r.position) : g.push("left"), r.hover && g.push(`hover_${r.hover}`), r.animate && (g.push("animate"), typeof r.animate == "string" && g.push(r.animate))) : (g.push(r), !r.includes("right") && !r.includes("left") && g.push("left"))), n.muted && g.push("muted"), n.fullWidth && g.push("full-width");
1253
- const b = {
1254
- ...u,
1255
- className: $(e, a, g, {
1253
+ const x = {
1254
+ ...c,
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
- (!i || i[0] === "#") && d && (v.preventDefault(), v.stopPropagation()), d && d(v);
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 && (c = "a", b.href = i), A.createElement(
1266
- c,
1267
- b,
1265
+ return i && (l = "a", x.href = i), A.createElement(
1266
+ l,
1267
+ x,
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((c, d) => r === "p" ? /* @__PURE__ */ s.jsx(U, { ...c }, d) : /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(U, { ...c }) }, d));
1272
- return A.createElement(r, { className: $("button-wrapper", t), ...n, children: i });
1271
+ const r = e.length > 1 ? "ul" : "p", i = e.map((l, u) => r === "p" ? /* @__PURE__ */ s.jsx(U, { ...l }, u) : /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(U, { ...l }) }, u));
1272
+ return A.createElement(r, { className: S("button-wrapper", t), ...n, children: i });
1273
1273
  };
1274
1274
  const Ue = ({ className: e = "", maxWidth: t = !1 }) => {
1275
1275
  const n = t ? { "--max-width": `${t / 16}rem` } : {};
1276
- return /* @__PURE__ */ s.jsx("hr", { className: $(e, { "has-max-width": t }), style: n });
1276
+ return /* @__PURE__ */ s.jsx("hr", { className: S(e, { "has-max-width": t }), style: n });
1277
1277
  }, jt = ({
1278
1278
  href: e,
1279
1279
  children: t,
1280
1280
  fallbackElement: n,
1281
1281
  className: r = "",
1282
1282
  onClick: i,
1283
- gtmContext: c,
1284
- gtmType: d,
1283
+ gtmContext: l,
1284
+ gtmType: u,
1285
1285
  ...a
1286
1286
  }) => {
1287
1287
  if (e) {
1288
- const l = { ...a };
1289
- return i && (l.onClick = i), c && (l["data-gtm-event-context"] = c), d && (l["data-gtm-event-type"] = d), /* @__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
- className: $("gtm-trackable", r),
1294
- ...l,
1293
+ className: S("gtm-trackable", r),
1294
+ ...d,
1295
1295
  children: t
1296
1296
  }
1297
1297
  );
@@ -1410,26 +1410,26 @@ const Ue = ({ className: e = "", maxWidth: t = !1 }) => {
1410
1410
  }, Ks = ({ 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: c }) => `${n}?${Ks({
1413
+ }, Ct = ({ format: e, range: t, url: n, query: r }) => t.map(({ height: i, width: l }) => `${n}?${Ks({
1414
1414
  format: e,
1415
1415
  height: i,
1416
1416
  query: r,
1417
- width: c
1418
- })} ${c}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: c,
1424
- query: d,
1423
+ type: l,
1424
+ query: u,
1425
1425
  url: a,
1426
- width: l,
1426
+ width: d,
1427
1427
  loading: o,
1428
1428
  decoding: m,
1429
- fetchPriority: u
1430
- } = e, { range: h, sizes: p } = Zs(e), g = Ct({ format: "avif", query: d, range: h, url: a }), b = Ct({ format: "webp", query: d, range: h, url: a }), v = Ct({ format: "", query: d, range: h, url: a });
1429
+ fetchPriority: c
1430
+ } = e, { range: h, sizes: p } = Zs(e), g = Ct({ format: "avif", query: u, range: h, url: a }), x = 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
- c !== "image/gif" && /* @__PURE__ */ s.jsx(
1432
+ l !== "image/gif" && /* @__PURE__ */ s.jsx(
1433
1433
  "source",
1434
1434
  {
1435
1435
  type: "image/avif",
@@ -1442,7 +1442,7 @@ const Ln = ({ image: e, className: t, testId: n }) => {
1442
1442
  "source",
1443
1443
  {
1444
1444
  type: "image/webp",
1445
- srcSet: b,
1445
+ srcSet: x,
1446
1446
  sizes: p,
1447
1447
  "data-testid": "source"
1448
1448
  }
@@ -1456,8 +1456,8 @@ const Ln = ({ image: e, className: t, testId: n }) => {
1456
1456
  alt: r,
1457
1457
  loading: o || "lazy",
1458
1458
  decoding: m || "async",
1459
- fetchpriority: u || "auto",
1460
- width: l,
1459
+ fetchpriority: c || "auto",
1460
+ width: d,
1461
1461
  height: i,
1462
1462
  "data-testid": n || "image"
1463
1463
  }
@@ -1466,26 +1466,26 @@ const Ln = ({ image: e, className: t, testId: n }) => {
1466
1466
  };
1467
1467
  let Je = !1;
1468
1468
  const qs = ({ isOpen: e = !1, isLoading: t = !1, children: n }) => {
1469
- const r = D(), i = de(null), [c, d] = L("hidden");
1469
+ const r = D(), i = de(null), [l, u] = L("hidden");
1470
1470
  Y(() => {
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), d((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 ? d("opening") : (d("closing"), l = "hidden"), Je = setTimeout(() => {
1484
- d(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: $("tooltip text-medium", c, { loading: t }), hidden: c === "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
- const en = ({ children: e, className: t = "", ...n }) => /* @__PURE__ */ s.jsx("section", { className: $("full-width-section", t), ...n, children: e });
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 = "" }) => {
1490
1490
  const r = [];
1491
1491
  return t.forEach((i) => {
@@ -1499,7 +1499,7 @@ const Ba = ({ text: e, buttons: t, className: n = "" }) => {
1499
1499
  target: "_blank",
1500
1500
  children: i.text
1501
1501
  });
1502
- }), /* @__PURE__ */ s.jsx(en, { className: $("download-section", n), children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1502
+ }), /* @__PURE__ */ s.jsx(en, { className: S("download-section", n), children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1503
1503
  A.createElement(typeof e == "string" ? "h2" : e.element, { className: "text" }, typeof e == "string" ? e : e.text),
1504
1504
  /* @__PURE__ */ s.jsx(kt, { buttons: r })
1505
1505
  ] }) });
@@ -1512,23 +1512,23 @@ const Qa = ({ title: e = !1, logos: t = [], className: n = "" }) => {
1512
1512
  element: typeof e == "object" ? e.element : "h2",
1513
1513
  text: typeof e == "string" ? e : typeof e == "object" ? e.text : ""
1514
1514
  };
1515
- return /* @__PURE__ */ s.jsxs("div", { className: $("logos", n), children: [
1515
+ return /* @__PURE__ */ s.jsxs("div", { className: S("logos", n), children: [
1516
1516
  e && A.createElement(i.element, { className: "title" }, i.text),
1517
1517
  /* @__PURE__ */ s.jsx(
1518
1518
  "ul",
1519
1519
  {
1520
- className: $({ "two-col": r === 2 || r === 4, "three-col": r === 5 || r <= 10 && r % 3 === 0 }),
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: c, nameOfBusiness: d, link: a = !1, description: l = !1 }, o) => {
1523
- if (!c || !c.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: c.url,
1529
- width: c.width || "auto",
1530
- height: c.height || "auto",
1531
- alt: d
1528
+ src: l.url,
1529
+ width: l.width || "auto",
1530
+ height: l.height || "auto",
1531
+ alt: u
1532
1532
  }
1533
1533
  );
1534
1534
  return /* @__PURE__ */ s.jsxs("li", { children: [
@@ -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(`${c.url}_${o}`));
1544
+ d && /* @__PURE__ */ s.jsx("small", { children: d })
1545
+ ] }, window.btoa(`${l.url}_${o}`));
1546
1546
  }
1547
1547
  )
1548
1548
  }
@@ -1569,70 +1569,70 @@ const er = [
1569
1569
  image: n,
1570
1570
  variant: r = "default",
1571
1571
  spacing: i = "normal",
1572
- hideElements: c = {
1572
+ hideElements: l = {
1573
1573
  eyebrow: !1,
1574
1574
  title: !1,
1575
1575
  text: !1
1576
1576
  },
1577
- cta: d,
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((u) => {
1582
- if (!t[u]) {
1583
- m[u] = !1;
1580
+ const d = ["eyebrow", "title", "text"], o = { eyebrow: "small", title: "h1", text: "p" }, m = {};
1581
+ return d.forEach((c) => {
1582
+ if (!t[c]) {
1583
+ m[c] = !1;
1584
1584
  return;
1585
1585
  }
1586
- if (!c[u]) {
1587
- if (typeof t[u] == "object") {
1588
- m[u] = t[u];
1589
- const { text: h, element: p } = t[u];
1586
+ if (!l[c]) {
1587
+ if (typeof t[c] == "object") {
1588
+ m[c] = t[c];
1589
+ const { text: h, element: p } = t[c];
1590
1590
  if (p && er.includes(p.toLowerCase()))
1591
1591
  return;
1592
- m[u] = {
1592
+ m[c] = {
1593
1593
  text: h,
1594
- element: o[u]
1594
+ element: o[c]
1595
1595
  };
1596
1596
  return;
1597
1597
  }
1598
- m[u] = {
1599
- text: t[u],
1600
- element: o[u]
1598
+ m[c] = {
1599
+ text: t[c],
1600
+ element: o[c]
1601
1601
  };
1602
1602
  }
1603
- }), d && d.link && d.link[0] === "#" && (d.props || (d.props = {}), d.props.onClick = (u) => {
1604
- u.preventDefault(), u.stopPropagation();
1605
- const h = document.getElementById(d.link.substring(1));
1603
+ }), u && u.link && u.link[0] === "#" && (u.props || (u.props = {}), u.props.onClick = (c) => {
1604
+ c.preventDefault(), c.stopPropagation();
1605
+ const h = document.getElementById(u.link.substring(1));
1606
1606
  h && h.scrollIntoView({ behavior: "smooth" });
1607
1607
  }), /* @__PURE__ */ s.jsx(
1608
1608
  en,
1609
1609
  {
1610
- className: $("banner-section", r, i, e, {
1610
+ className: S("banner-section", r, i, e, {
1611
1611
  "has-image": n,
1612
1612
  "has-extra-spacing": i === "normal" && m.eyebrow && m.title
1613
1613
  }),
1614
1614
  children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1615
1615
  /* @__PURE__ */ s.jsxs("div", { className: "content-wrapper", children: [
1616
- l.map((u) => {
1617
- if (m[u] && typeof m[u] == "object") {
1618
- const { text: h, element: p = "" } = m[u];
1616
+ d.map((c) => {
1617
+ if (m[c] && typeof m[c] == "object") {
1618
+ const { text: h, element: p = "" } = m[c];
1619
1619
  return A.createElement(
1620
1620
  p.toLowerCase(),
1621
- { key: u, className: u },
1621
+ { key: c, className: c },
1622
1622
  h
1623
1623
  );
1624
1624
  }
1625
1625
  return null;
1626
1626
  }),
1627
1627
  a,
1628
- d && d.text && d.link && /* @__PURE__ */ s.jsx(
1628
+ u && u.text && u.link && /* @__PURE__ */ s.jsx(
1629
1629
  U,
1630
1630
  {
1631
1631
  variant: n || r === "light" ? "primary" : "secondary",
1632
1632
  size: { mobile: "medium", 768: "large" },
1633
- href: d.link,
1634
- ...d.props,
1635
- children: d.text
1633
+ href: u.link,
1634
+ ...u.props,
1635
+ children: u.text
1636
1636
  }
1637
1637
  )
1638
1638
  ] }),
@@ -1647,7 +1647,7 @@ const Ua = ({
1647
1647
  title: n,
1648
1648
  text: r,
1649
1649
  gtmContext: i
1650
- }) => !n && !r ? null : /* @__PURE__ */ s.jsxs("aside", { className: $("marketing-block", e), children: [
1650
+ }) => !n && !r ? null : /* @__PURE__ */ s.jsxs("aside", { className: S("marketing-block", e), children: [
1651
1651
  n && /* @__PURE__ */ s.jsx("p", { className: "title", children: n }),
1652
1652
  r && /* @__PURE__ */ s.jsx("p", { children: r }),
1653
1653
  t && /* @__PURE__ */ s.jsx(U, { variant: "secondary", size: "medium", href: t.link, className: "gtm-trackable", "data-gtm-event-context": i, "data-gtm-event-type": "learn-more-click", children: t.text })
@@ -1659,14 +1659,14 @@ const Ua = ({
1659
1659
  eu: "dpo.agl@apolitical.foundation"
1660
1660
  }
1661
1661
  }, Wa = "200,000+";
1662
- const On = ({ label: e = !1, className: t = "", children: n }) => {
1662
+ const In = ({ label: e = !1, className: t = "", children: n }) => {
1663
1663
  const r = D();
1664
- return /* @__PURE__ */ s.jsxs("details", { className: $("collapsible-section", t), children: [
1664
+ return /* @__PURE__ */ s.jsxs("details", { className: S("collapsible-section", t), children: [
1665
1665
  /* @__PURE__ */ s.jsx("summary", { children: e || r.formatMessage({ id: "collapsibleSection_summary" }) }),
1666
1666
  /* @__PURE__ */ s.jsx("div", { className: "content", children: n })
1667
1667
  ] });
1668
1668
  };
1669
- const Re = ({ variant: e = "primary", className: t = "", children: n, ...r }) => /* @__PURE__ */ s.jsx("div", { className: $("highlighted-text-box", e, t), ...r, children: n });
1669
+ const Re = ({ variant: e = "primary", className: t = "", children: n, ...r }) => /* @__PURE__ */ s.jsx("div", { className: S("highlighted-text-box", e, t), ...r, children: n });
1670
1670
  const yt = ({
1671
1671
  variant: e = "empty",
1672
1672
  text: t = !1,
@@ -1674,14 +1674,14 @@ const yt = ({
1674
1674
  className: r = ""
1675
1675
  }) => {
1676
1676
  let i = n && !!Object.keys(n).length;
1677
- const c = typeof n == "object" && "breakpoints" in n, d = vt(c);
1678
- if (c && typeof n == "object" && typeof d == "number") {
1679
- const u = Object.assign({}, n.breakpoints), h = An(Object.keys(u));
1680
- i = Pn(d, h, u);
1677
+ const l = typeof n == "object" && "breakpoints" in n, u = vt(l);
1678
+ if (l && typeof n == "object" && typeof u == "number") {
1679
+ const c = Object.assign({}, n.breakpoints), h = An(Object.keys(c));
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;
@@ -1689,7 +1689,7 @@ const yt = ({
1689
1689
  Re,
1690
1690
  {
1691
1691
  variant: "subtle",
1692
- className: $("empty-state-box", e, r),
1692
+ className: S("empty-state-box", e, r),
1693
1693
  children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1694
1694
  t && /* @__PURE__ */ s.jsx(bt, { options: { forceBlock: !0 }, children: t }),
1695
1695
  i && typeof n == "object" && (o || /* @__PURE__ */ s.jsx(
@@ -1697,17 +1697,17 @@ 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
  ] })
1704
1704
  }
1705
1705
  );
1706
1706
  };
1707
- const Jt = ({ children: e, ...t }) => /* @__PURE__ */ s.jsx("p", { ...t, children: e }), In = { q: Jt, blockquote: Jt };
1707
+ const Jt = ({ children: e, ...t }) => /* @__PURE__ */ s.jsx("p", { ...t, children: e }), On = { q: Jt, blockquote: Jt };
1708
1708
  for (let e = 1; e <= 6; e++)
1709
- In[`h${e}`] = { component: Jt, props: { className: "title" } };
1710
- const nr = ({ type: e = "default", className: t = "", heading: n = !1, children: r }) => /* @__PURE__ */ s.jsxs("div", { className: $("helper-text-box text-small", e, t), children: [
1709
+ On[`h${e}`] = { component: Jt, props: { className: "title" } };
1710
+ const nr = ({ type: e = "default", className: t = "", heading: n = !1, children: r }) => /* @__PURE__ */ s.jsxs("div", { className: S("helper-text-box text-small", e, t), children: [
1711
1711
  n && /* @__PURE__ */ s.jsx("p", { className: "title", children: n }),
1712
1712
  typeof r == "string" ? /* @__PURE__ */ s.jsx(
1713
1713
  bt,
@@ -1715,38 +1715,38 @@ const nr = ({ type: e = "default", className: t = "", heading: n = !1, children:
1715
1715
  options: {
1716
1716
  wrapper: A.Fragment,
1717
1717
  forceBlock: !0,
1718
- overrides: In
1718
+ overrides: On
1719
1719
  },
1720
1720
  children: r
1721
1721
  }
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 c = D(), d = de(null), [a, l] = L(""), [o, m] = L("closed");
1725
+ const l = D(), u = de(null), [a, d] = L(""), [o, m] = L("closed");
1726
1726
  Y(() => {
1727
- const p = d.current;
1727
+ const p = u.current;
1728
1728
  if (p)
1729
- return p.addEventListener("transitionend", u), () => {
1730
- p.removeEventListener("transitionend", u);
1729
+ return p.addEventListener("transitionend", c), () => {
1730
+ p.removeEventListener("transitionend", c);
1731
1731
  };
1732
1732
  }, []), Y(() => {
1733
1733
  if (!r || typeof r != "string")
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]), Y(() => {
1740
1740
  o === "ready-to-close" && m("closing");
1741
1741
  }, [o]);
1742
- const u = ({ propertyName: p }) => {
1742
+ const c = ({ propertyName: p }) => {
1743
1743
  p === "max-height" && m((g) => g === "opening" ? "open" : g === "closing" ? "closed" : g);
1744
1744
  };
1745
1745
  if (!r)
1746
1746
  return null;
1747
1747
  const h = ["opening", "open"].includes(o);
1748
- return /* @__PURE__ */ s.jsxs(Re, { variant: "subtle", className: $("hide-show-text-box", e), children: [
1749
- /* @__PURE__ */ s.jsxs("div", { ref: d, className: $("content", o), children: [
1748
+ return /* @__PURE__ */ s.jsxs(Re, { variant: "subtle", className: S("hide-show-text-box", e), children: [
1749
+ /* @__PURE__ */ s.jsxs("div", { ref: u, className: S("content", o), children: [
1750
1750
  /* @__PURE__ */ s.jsx(bt, { options: { forceBlock: !0 }, children: o === "closed" ? a : r }),
1751
1751
  o !== "closed" && i
1752
1752
  ] }),
@@ -1756,11 +1756,11 @@ const za = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
1756
1756
  variant: "tertiary",
1757
1757
  icon: { icon: "navigation_arrow", position: "left", animate: !0 },
1758
1758
  styling: { muted: !0 },
1759
- className: $({ "rotate-180": h }),
1759
+ className: S({ "rotate-180": h }),
1760
1760
  onClick: () => {
1761
1761
  m(h ? "ready-to-close" : "opening");
1762
1762
  },
1763
- children: h ? n || c.formatMessage({ id: "hideShowTextBox_hide" }) : t || c.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,29 +1770,29 @@ 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 c of zt.toArray(e))
1774
- if (!(!c || typeof c == "string" || typeof c == "number"))
1775
- if (A.isValidElement(c) && c.type === "summary") {
1776
- if (c.props && c.props.children) {
1777
- for (const d of zt.toArray(c.props.children))
1778
- if (!(!d || typeof d == "string" || typeof d == "number") && A.isValidElement(d)) {
1779
- const a = d.type;
1773
+ for (const l of zt.toArray(e))
1774
+ if (!(!l || typeof l == "string" || typeof l == "number"))
1775
+ if (A.isValidElement(l) && l.type === "summary") {
1776
+ if (l.props && l.props.children) {
1777
+ for (const u of zt.toArray(l.props.children))
1778
+ if (!(!u || typeof u == "string" || typeof u == "number") && A.isValidElement(u)) {
1779
+ const a = u.type;
1780
1780
  if (ar.includes(a)) {
1781
- for (n = d.props.children; typeof n != "string" && (Array.isArray(n) && n[0].props && n[0].props.children && n[0].props.children[0]); )
1781
+ for (n = u.props.children; typeof n != "string" && (Array.isArray(n) && n[0].props && n[0].props.children && n[0].props.children[0]); )
1782
1782
  n = n[0].props.children[0];
1783
1783
  break;
1784
1784
  }
1785
1785
  }
1786
1786
  }
1787
1787
  } else
1788
- r.push(c);
1788
+ r.push(l);
1789
1789
  const i = n ? n.toString() : "";
1790
1790
  return /* @__PURE__ */ s.jsx(
1791
- On,
1791
+ In,
1792
1792
  {
1793
1793
  label: i,
1794
1794
  className: ["Sources", "Resources"].includes(i) ? "discrete-links" : "",
1795
- children: r.map((c) => c)
1795
+ children: r.map((l) => l)
1796
1796
  }
1797
1797
  );
1798
1798
  }, ir = ({ 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 c of zt.toArray(e))
1829
- if (!(!c || typeof c == "string" || typeof c == "number") && A.isValidElement(c)) {
1830
- const d = c.type;
1831
- if (["button", "center", "span", "strong"].includes(d) && c.props && c.props.children && c.props.children[0])
1832
- for ((d === "button" || bn(c.props.children[0]) === "button") && (i = !0), r = c.props.children[0]; r && typeof r != "string" && !(typeof r == "boolean" || typeof r == "number" || !A.isValidElement(r)); )
1828
+ for (const l of zt.toArray(e))
1829
+ if (!(!l || typeof l == "string" || typeof l == "number") && A.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" || !A.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
@@ -1846,7 +1846,7 @@ const wn = ({ className: e = "", options: t = {}, children: n }) => {
1846
1846
  a: lr,
1847
1847
  // Override psuedo-code
1848
1848
  // We give the content team psuedo-code short cuts to use in Contentful
1849
- CollapsibleSection: On,
1849
+ CollapsibleSection: In,
1850
1850
  TextBox: Re,
1851
1851
  CaseStudy: rr,
1852
1852
  // Override embedded HTML
@@ -1857,7 +1857,7 @@ const wn = ({ className: e = "", options: t = {}, children: n }) => {
1857
1857
  iframe: cr
1858
1858
  }
1859
1859
  };
1860
- return /* @__PURE__ */ s.jsx("div", { className: $("markdown-text", e), children: /* @__PURE__ */ s.jsx(bt, { options: { ...r, ...t }, children: n }) });
1860
+ return /* @__PURE__ */ s.jsx("div", { className: S("markdown-text", e), children: /* @__PURE__ */ s.jsx(bt, { options: { ...r, ...t }, children: n }) });
1861
1861
  };
1862
1862
  const ur = ({
1863
1863
  maxWidth: e = !1,
@@ -1866,9 +1866,9 @@ const ur = ({
1866
1866
  children: r,
1867
1867
  className: i = ""
1868
1868
  }) => {
1869
- const c = e ? { "--max-width": `${e / 16}rem` } : {};
1870
- return /* @__PURE__ */ s.jsxs("section", { className: $("page-heading", i), children: [
1871
- /* @__PURE__ */ s.jsxs("div", { className: $("content", { "has-max-width": e }), style: c, children: [
1869
+ const l = e ? { "--max-width": `${e / 16}rem` } : {};
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: l, children: [
1872
1872
  t && t.text && A.createElement(t.element || "h1", { className: "title" }, t.text),
1873
1873
  n && n.text && A.createElement(
1874
1874
  n.element || "h2",
@@ -1885,11 +1885,11 @@ const ft = ({
1885
1885
  className: n = "",
1886
1886
  children: r,
1887
1887
  ...i
1888
- }) => /* @__PURE__ */ s.jsx("span", { className: $("pill", e, t, n), ...i, children: r });
1889
- const Xt = ({ element: e = "p", children: t = null, className: n = "", ...r }) => A.createElement(e, { ...r, className: $("status-banner text-small", n), "aria-live": "assertive" }, t);
1888
+ }) => /* @__PURE__ */ s.jsx("span", { className: S("pill", e, t, n), ...i, children: r });
1889
+ const Xt = ({ element: e = "p", children: t = null, className: n = "", ...r }) => A.createElement(e, { ...r, className: S("status-banner text-small", n), "aria-live": "assertive" }, t);
1890
1890
  const mr = ({ 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, c = { "--progress": `${e}%` };
1892
- return /* @__PURE__ */ s.jsx("span", { className: $(`progress-bar section-${i}`, n), style: c, 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
  }, fr = We(mr);
1894
1894
  const At = "loadingBlock_", hr = ({ progress: e = 0, steps: t = !1, className: n = "" }) => {
1895
1895
  const r = D();
@@ -1899,16 +1899,16 @@ const At = "loadingBlock_", hr = ({ 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 c = Object.keys(t);
1903
- for (let a = 0; a < c.length && !(e < parseInt(c[a])); a++)
1904
- i = c[a];
1905
- const d = i && t[i].icon ? { "--icon": `url(${mt}icons/${t[i].icon}.svg)` } : {};
1902
+ const l = Object.keys(t);
1903
+ for (let a = 0; a < l.length && !(e < parseInt(l[a])); a++)
1904
+ i = l[a];
1905
+ const u = i && t[i].icon ? { "--icon": `url(${mt}icons/${t[i].icon}.svg)` } : {};
1906
1906
  return /* @__PURE__ */ s.jsxs(
1907
1907
  Re,
1908
1908
  {
1909
- className: $("loading-block", n, { "has-icon": i && t[i].icon }),
1909
+ className: S("loading-block", n, { "has-icon": i && t[i].icon }),
1910
1910
  variant: "subtle",
1911
- style: d,
1911
+ style: u,
1912
1912
  children: [
1913
1913
  i && /* @__PURE__ */ s.jsx("span", { className: "step", children: t[i].text }),
1914
1914
  /* @__PURE__ */ s.jsx(fr, { progress: e })
@@ -1916,7 +1916,7 @@ const At = "loadingBlock_", hr = ({ progress: e = 0, steps: t = !1, className: n
1916
1916
  }
1917
1917
  );
1918
1918
  }, Va = We(hr);
1919
- const Se = ({ element: e = "div", className: t = "", ...n }) => /* @__PURE__ */ s.jsx(Dn, { element: e, className: $("loading-placeholder", t), ...n });
1919
+ const Se = ({ element: e = "div", className: t = "", ...n }) => /* @__PURE__ */ s.jsx(Dn, { element: e, className: S("loading-placeholder", t), ...n });
1920
1920
  const Zt = {
1921
1921
  header: ["logo", "link", "link", "search"],
1922
1922
  sidebar: ["text", "text", "text", "text", "text"],
@@ -1934,7 +1934,7 @@ const Zt = {
1934
1934
  "cards-section",
1935
1935
  "footer"
1936
1936
  ]
1937
- }, Bn = (e, t) => e in Zt ? /* @__PURE__ */ s.jsx("div", { className: e, children: Zt[e].map((n, r) => Bn(n, r)) }, t) : /* @__PURE__ */ s.jsx(Se, { className: e }, t), Ya = ({ layout: e = "overview-page", ...t }) => /* @__PURE__ */ s.jsx("div", { className: $("loading-state", e), ...t, children: Zt[e].map((n, r) => Bn(n, r)) }), Qn = (e) => {
1937
+ }, Bn = (e, t) => e in Zt ? /* @__PURE__ */ s.jsx("div", { className: e, children: Zt[e].map((n, r) => Bn(n, r)) }, t) : /* @__PURE__ */ s.jsx(Se, { className: e }, t), Ya = ({ layout: e = "overview-page", ...t }) => /* @__PURE__ */ s.jsx("div", { className: S("loading-state", e), ...t, children: Zt[e].map((n, r) => Bn(n, r)) }), Qn = (e) => {
1938
1938
  const t = e && e.toUpperCase().split(" ");
1939
1939
  return Array.isArray(t) && t.length > 1 && t[0] !== "" ? t[1] === "" ? t[0][0] : t[0][0] + t[t.length - 1][0] : e ? e.substr(0, 1) : "";
1940
1940
  }, st = ["#5AB6A3", "#A2D7AF", "#806056", "#3962B3"], pr = (e) => {
@@ -1952,36 +1952,36 @@ const vn = 256, qe = ({
1952
1952
  name: n,
1953
1953
  alt: r,
1954
1954
  width: i = vn,
1955
- height: c = vn,
1956
- ...d
1955
+ height: l = vn,
1956
+ ...u
1957
1957
  }) => {
1958
- const [a, l] = L(!1), o = de(null);
1958
+ const [a, d] = L(!1), o = de(null);
1959
1959
  Y(() => {
1960
- const u = o.current;
1961
- if (!u)
1960
+ const c = o.current;
1961
+ if (!c)
1962
1962
  return;
1963
- const h = u.getContext("2d");
1963
+ const h = c.getContext("2d");
1964
1964
  if (!h)
1965
1965
  return;
1966
- const p = i, g = c;
1967
- typeof window < "u" && window.devicePixelRatio && (u.width = p * window.devicePixelRatio, u.height = g * window.devicePixelRatio, h.scale(window.devicePixelRatio, window.devicePixelRatio)), h.fillStyle = pr(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);
1966
+ const p = i, g = l;
1967
+ typeof window < "u" && window.devicePixelRatio && (c.width = p * window.devicePixelRatio, c.height = g * window.devicePixelRatio, h.scale(window.devicePixelRatio, window.devicePixelRatio)), h.fillStyle = pr(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;
1970
1970
  return t && t !== "" && !a && (t.includes("http") || t.includes("//")) && (m = !0), /* @__PURE__ */ s.jsx(
1971
1971
  "figure",
1972
1972
  {
1973
- className: $("profile-picture", e, { error: a }),
1974
- ...d,
1973
+ className: S("profile-picture", e, { error: a }),
1974
+ ...u,
1975
1975
  children: m ? /* @__PURE__ */ s.jsx(
1976
1976
  "img",
1977
1977
  {
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: c
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 !== "", c = t !== "", d = n !== "";
2007
- if (!i && !c && !d)
2006
+ const i = e !== "", l = t !== "", u = n !== "";
2007
+ if (!i && !l && !u)
2008
2008
  return "";
2009
- const a = `${e}${i && c ? ` — ${t}` : t}`;
2010
- let l = `${a}${(i || c) && d ? `, ${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: c = ""
2019
+ className: l = ""
2020
2020
  }) => {
2021
- const d = D(), a = Hn(t);
2022
- a.name || (a.name = d.formatMessage({ id: `member_${typeof t == "string" ? t : "community"}` }));
2023
- const { name: l, url: o, image: m } = a, u = gr(a), h = n && n.createdAt ? Gt(n.createdAt) : !1, p = n && n.createdAt ? Rn(n.createdAt) : "";
2021
+ const u = D(), a = Hn(t);
2022
+ a.name || (a.name = u.formatMessage({ id: `member_${typeof t == "string" ? t : "community"}` }));
2023
+ const { name: d, url: o, image: m } = a, c = gr(a), h = n && n.createdAt ? Gt(n.createdAt) : !1, p = n && n.createdAt ? Rn(n.createdAt) : "";
2024
2024
  return A.createElement(e, {
2025
- className: $("member text-medium", c),
2025
+ className: S("member text-medium", l),
2026
2026
  children: /* @__PURE__ */ s.jsxs(
2027
2027
  jt,
2028
2028
  {
@@ -2033,14 +2033,14 @@ 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
- n.createdAt && h && /* @__PURE__ */ s.jsx("span", { className: "date", title: p, "aria-label": p, children: d.formatMessage({ id: `dates_${h.path}` }, { number: h.number }) }),
2041
- n.didEdit && /* @__PURE__ */ s.jsx("em", { children: d.formatMessage({ id: "discussion_edited" }) })
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
+ n.didEdit && /* @__PURE__ */ s.jsx("em", { children: u.formatMessage({ id: "discussion_edited" }) })
2042
2042
  ] }),
2043
- u && /* @__PURE__ */ s.jsx("small", { children: u })
2043
+ c && /* @__PURE__ */ s.jsx("small", { children: c })
2044
2044
  ] })
2045
2045
  ]
2046
2046
  }
@@ -2053,50 +2053,50 @@ 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: c, showPlaceholders: d } = {
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 : A.createElement(e, {
2068
2068
  ...o,
2069
- className: $("contributors", l, i, { "has-gap": c }),
2069
+ className: S("contributors", d, i, { "has-gap": l }),
2070
2070
  children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
2071
- /* @__PURE__ */ s.jsx("ul", { children: n.map((u, h) => {
2071
+ /* @__PURE__ */ s.jsx("ul", { children: n.map((c, h) => {
2072
2072
  let p, g = "";
2073
2073
  if (h < a) {
2074
- const { name: b = "", image: v = "" } = Hn(u);
2075
- if (d)
2074
+ const { name: x = "", image: v = "" } = Hn(c);
2075
+ if (u)
2076
2076
  return /* @__PURE__ */ s.jsx(Se, { element: "li", className: "contributor" }, h);
2077
2077
  p = /* @__PURE__ */ s.jsx(
2078
2078
  qe,
2079
2079
  {
2080
- name: b,
2080
+ name: x,
2081
2081
  src: v,
2082
2082
  width: kn[i || "medium"],
2083
2083
  height: kn[i || "medium"]
2084
2084
  }
2085
2085
  );
2086
2086
  } else if (h === a) {
2087
- const b = (t || n.length) - a;
2087
+ const x = (t || n.length) - a;
2088
2088
  p = /* @__PURE__ */ s.jsxs(
2089
2089
  "small",
2090
2090
  {
2091
- className: $({ "large-number": b > 99 }),
2091
+ className: S({ "large-number": x > 99 }),
2092
2092
  children: [
2093
2093
  "+",
2094
- Vs(b, 0)
2094
+ Vs(x, 0)
2095
2095
  ]
2096
2096
  }
2097
2097
  ), g = "number-left";
2098
2098
  }
2099
- return p ? /* @__PURE__ */ s.jsx("li", { className: $("contributor", g), children: p }, h) : null;
2099
+ return p ? /* @__PURE__ */ s.jsx("li", { className: S("contributor", g), children: p }, h) : null;
2100
2100
  }) }),
2101
2101
  r && /* @__PURE__ */ s.jsx("span", { className: "label", children: typeof r == "string" ? r : n.length === 1 ? typeof n[0] == "string" ? m.formatMessage({ id: `member_${n[0]}` }) : Qe(n[0].name || "", 20) : null })
2102
2102
  ] })
@@ -2120,10 +2120,10 @@ const kn = {
2120
2120
  };
2121
2121
  var xr = Kt({ client: dt });
2122
2122
  function br(e) {
2123
- var t = e.children, n = e.client, r = e.apiKey, i = e.options, c = 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 A.createElement(xr.Provider, { value: { client: c } }, t);
2126
+ return A.createElement(xr.Provider, { value: { client: l } }, t);
2127
2127
  }
2128
2128
  const wr = ({ children: e, user: t }) => t.isLoading ? null : process.env.REACT_APP_PUBLIC_POSTHOG_KEY ? /* @__PURE__ */ s.jsx(
2129
2129
  br,
@@ -2151,20 +2151,20 @@ const wr = ({ children: e, user: t }) => t.isLoading ? null : process.env.REACT_
2151
2151
  }, $e = Kt(null), kr = ({ 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] = L({ isLoading: !0 });
2153
2153
  return Y(() => {
2154
- e().then((c) => {
2155
- i({ ...c, isLoading: !1 }), Ys(5e3);
2154
+ e().then((l) => {
2155
+ i({ ...l, isLoading: !1 }), Ys(5e3);
2156
2156
  }).catch(() => i({ isLoading: !1 }));
2157
2157
  }, []), /* @__PURE__ */ s.jsx(vr, { locale: n == null ? void 0 : n.locale, messages: n == null ? void 0 : n.messages, children: /* @__PURE__ */ s.jsx(Es, { children: /* @__PURE__ */ s.jsx(kr, { user: r, children: /* @__PURE__ */ s.jsx(_r, { children: /* @__PURE__ */ s.jsx(wr, { 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(), c = je($e), d = c && typeof c.id == "string", [a, l] = L(e), [o, m] = L(e ? "joined" : "notJoined");
2162
+ const i = D(), l = je($e), u = l && typeof l.id == "string", [a, d] = L(e), [o, m] = L(e ? "joined" : "notJoined");
2163
2163
  Y(() => {
2164
2164
  o === "joining" ? m("joined") : o === "leaving" && m("notJoined");
2165
2165
  }, [a]);
2166
- const u = {}, h = {};
2167
- return a && o !== "leaving" && (u["data-hover-text"] = i.formatMessage({ id: `${Pt}_leave` }), u["aria-label"] = i.formatMessage({ id: `${Pt}_member_aria` }), h["aria-hidden"] = "true"), /* @__PURE__ */ s.jsx(
2166
+ const c = {}, h = {};
2167
+ return a && o !== "leaving" && (c["data-hover-text"] = i.formatMessage({ id: `${Pt}_leave` }), c["aria-label"] = i.formatMessage({ id: `${Pt}_member_aria` }), h["aria-hidden"] = "true"), /* @__PURE__ */ s.jsx(
2168
2168
  U,
2169
2169
  {
2170
2170
  variant: a ? "secondary" : "primary",
@@ -2172,11 +2172,11 @@ 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
- d && (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
- className: $("join-community-button", o, { active: o === "joining" }),
2178
- disabled: !d,
2179
- ...u,
2177
+ className: S("join-community-button", o, { active: o === "joining" }),
2178
+ disabled: !u,
2179
+ ...c,
2180
2180
  children: /* @__PURE__ */ s.jsx("span", { className: "text", ...h, children: i.formatMessage({ id: `${Pt}${["joining", "leaving"].includes(o) ? `_${o}` : a ? "_member" : t ? "_short" : ""}` }) })
2181
2181
  }
2182
2182
  );
@@ -2186,10 +2186,10 @@ 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: c, ...d }
2189
+ functions: { invite: l, ...u }
2190
2190
  }) => {
2191
- const a = D(), l = 5, o = r || i.length, m = i.length ? i : Array(l).fill({});
2192
- return /* @__PURE__ */ s.jsxs("div", { className: $("community-details", e), children: [
2191
+ const a = D(), d = 5, o = r || i.length, m = i.length ? i : Array(d).fill({});
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: [
2195
2195
  /* @__PURE__ */ s.jsxs("div", { className: "top", children: [
@@ -2211,16 +2211,16 @@ 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
  ] }),
2218
- /* @__PURE__ */ s.jsx(Wn, { isMember: t, functions: { ...d } }),
2218
+ /* @__PURE__ */ s.jsx(Wn, { isMember: t, functions: { ...u } }),
2219
2219
  t && /* @__PURE__ */ s.jsx(
2220
2220
  U,
2221
2221
  {
2222
2222
  variant: "primary",
2223
- onClick: c,
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: $("breadcrumbs text-small", n), children: e.map(({ text: i, href: c, current: d = !1 }, a) => /* @__PURE__ */ s.jsxs("li", { children: [
2240
- d && /* @__PURE__ */ s.jsx(_e, { element: "span", children: r.formatMessage({ id: "breadcrumbs_currentPage" }) }),
2241
- /* @__PURE__ */ s.jsx(jt, { href: d ? void 0 : c, children: Qe(i, t) })
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
+ u && /* @__PURE__ */ s.jsx(_e, { element: "span", children: r.formatMessage({ id: "breadcrumbs_currentPage" }) }),
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,22 +2250,22 @@ const Za = ({
2250
2250
  },
2251
2251
  className: i = ""
2252
2252
  }) => {
2253
- const c = D(), d = t ? [{ id: "all", text: typeof t != "boolean" && t.text || c.formatMessage({ id: "filters_all" }) }, ...e] : e, [a, l] = L(t ? ["all"] : []), o = (m, u) => {
2253
+ const l = D(), u = t ? [{ id: "all", text: typeof t != "boolean" && t.text || l.formatMessage({ id: "filters_all" }) }, ...e] : e, [a, d] = L(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)), u && typeof u == "function" && u();
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
- return /* @__PURE__ */ s.jsx("ul", { className: $("filters", i), children: d.map(({ id: m, text: u, disabled: h = !1, callback: p = () => {
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": c.formatMessage({ id: "filters_disabled" }, { name: u }) }), /* @__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
- className: $(m, { selected: a.includes(m) }),
2264
- onClick: (b) => {
2265
- b.preventDefault(), b.stopPropagation(), o(m, p);
2263
+ className: S(m, { selected: a.includes(m) }),
2264
+ onClick: (x) => {
2265
+ x.preventDefault(), x.stopPropagation(), o(m, p);
2266
2266
  },
2267
2267
  ...g,
2268
- children: u
2268
+ children: c
2269
2269
  }
2270
2270
  ) }, m);
2271
2271
  }) });
@@ -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: c }) => {
2278
- c === "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,43 +2285,43 @@ 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: c,
2289
- variant: d = "default",
2288
+ urlParts: l,
2289
+ variant: u = "default",
2290
2290
  label: a,
2291
- className: l = ""
2291
+ className: d = ""
2292
2292
  }) => {
2293
- const o = D(), [m, u] = L(e);
2293
+ const o = D(), [m, c] = L(e);
2294
2294
  if (Y(() => {
2295
- e !== m && u(e);
2296
- }, [e]), !r || !Object.values(r).some((b) => b && b.post_name))
2295
+ e !== m && c(e);
2296
+ }, [e]), !r || !Object.values(r).some((x) => x && x.post_name))
2297
2297
  return null;
2298
2298
  const p = Object.keys(r), g = m !== e;
2299
- return /* @__PURE__ */ s.jsxs("div", { className: $("language-switcher text-small", d, 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
- d !== "short" && /* @__PURE__ */ s.jsx("p", { children: a || o.formatMessage({ id: `${rt}label` }) }),
2302
- /* @__PURE__ */ s.jsx("ul", { children: p.map((b) => {
2303
- if (!Ft[b])
2301
+ u !== "short" && /* @__PURE__ */ s.jsx("p", { children: a || o.formatMessage({ id: `${rt}label` }) }),
2302
+ /* @__PURE__ */ s.jsx("ul", { children: p.map((x) => {
2303
+ if (!Ft[x])
2304
2304
  return null;
2305
- let v = { className: b };
2306
- return m === b ? v["aria-label"] = o.formatMessage({ id: `${rt}selected` }, { language: Ft[b] }) : v = {
2305
+ let v = { className: x };
2306
+ return m === x ? v["aria-label"] = o.formatMessage({ id: `${rt}selected` }, { language: Ft[x] }) : v = {
2307
2307
  ...v,
2308
- href: jr(b, c),
2308
+ href: jr(x, l),
2309
2309
  onClick: (E) => {
2310
- E.preventDefault(), E.stopPropagation(), u(b), i(b);
2310
+ E.preventDefault(), E.stopPropagation(), c(x), i(x);
2311
2311
  }
2312
- }, /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(jt, { ...v, fallbackElement: "span", children: Ft[b] }) }, b);
2312
+ }, /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(jt, { ...v, fallbackElement: "span", children: Ft[x] }) }, x);
2313
2313
  }) }),
2314
- d !== "short" && !g && /* @__PURE__ */ s.jsx("p", { children: o.formatMessage({ id: `${rt}translation_${t ? "original" : n ? "human" : "machine"}` }) })
2314
+ u !== "short" && !g && /* @__PURE__ */ s.jsx("p", { children: o.formatMessage({ id: `${rt}translation_${t ? "original" : n ? "human" : "machine"}` }) })
2315
2315
  ] }),
2316
- d !== "short" && !g && !t && !n && /* @__PURE__ */ s.jsx("small", {
2316
+ u !== "short" && !g && !t && !n && /* @__PURE__ */ s.jsx("small", {
2317
2317
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2318
2318
  // @ts-ignore
2319
2319
  // `values` are throwing a type error: https://github.com/formatjs/formatjs/issues/3633
2320
2320
  children: o.formatMessage({ id: `${rt}disclaimer` }, {
2321
2321
  email: Ze.support,
2322
- link: (b) => {
2323
- const v = `mailto:${b}`;
2324
- return /* @__PURE__ */ s.jsx("a", { href: v, children: b });
2322
+ link: (x) => {
2323
+ const v = `mailto:${x}`;
2324
+ return /* @__PURE__ */ s.jsx("a", { href: v, children: x });
2325
2325
  }
2326
2326
  })
2327
2327
  })
@@ -2334,27 +2334,27 @@ const Lt = vs({ locale: "en", messages: qt }), yr = ({
2334
2334
  loadNextPage: r = () => {
2335
2335
  },
2336
2336
  icon: i = !1,
2337
- messages: c = {
2337
+ messages: l = {
2338
2338
  button: Lt.formatMessage({ id: "loadMore_button" }),
2339
2339
  endOfFeed: Lt.formatMessage({ id: "loadMore_endOfFeed" }),
2340
2340
  error: Lt.formatMessage({ id: "loadMore_error" })
2341
2341
  },
2342
- className: d = "",
2342
+ className: u = "",
2343
2343
  gtmContext: a = "LoadMore"
2344
2344
  }) => {
2345
- const [l, o] = L(!1), [m, u] = L(!1);
2345
+ const [d, o] = L(!1), [m, c] = L(!1);
2346
2346
  if (t <= 0 || t < n * e)
2347
2347
  return null;
2348
2348
  const h = async (p) => {
2349
2349
  try {
2350
2350
  await r(p);
2351
2351
  } catch (g) {
2352
- g instanceof Error && g.message && g.message.includes("Cannot read items") ? u(!0) : o(!0);
2352
+ g instanceof Error && g.message && g.message.includes("Cannot read items") ? c(!0) : o(!0);
2353
2353
  }
2354
2354
  };
2355
- return /* @__PURE__ */ s.jsxs("footer", { className: $("load-more", d), children: [
2356
- l && /* @__PURE__ */ s.jsx("p", { className: "error", children: c.error }),
2357
- m ? /* @__PURE__ */ s.jsx("p", { children: c.endOfFeed }) : /* @__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(
2358
2358
  U,
2359
2359
  {
2360
2360
  variant: "secondary",
@@ -2364,22 +2364,22 @@ const Lt = vs({ locale: "en", messages: qt }), yr = ({
2364
2364
  "data-gtm-event-type": "load-more-click",
2365
2365
  className: "gtm-trackable",
2366
2366
  "data-testid": "load-more-button",
2367
- children: c.button
2367
+ children: l.button
2368
2368
  }
2369
2369
  )
2370
2370
  ] });
2371
2371
  };
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: $("logo", e, t, n), ...r, children: /* @__PURE__ */ s.jsx(_e, { children: /* @__PURE__ */ s.jsx(Pe, { id: "apolitical" }) }) }) });
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" }) }) }) });
2373
2373
  let at = !1;
2374
2374
  const Er = ({ element: e = "div", id: t = "more-menu", options: n, className: r = "" }) => {
2375
- const i = D(), c = de(null), [d, a] = L(!1), l = (o) => {
2376
- c.current && o.target instanceof HTMLElement && !c.current.contains(o.target) && a(!1);
2375
+ const i = D(), l = de(null), [u, a] = L(!1), d = (o) => {
2376
+ l.current && o.target instanceof HTMLElement && !l.current.contains(o.target) && a(!1);
2377
2377
  };
2378
- return Y(() => (document.addEventListener("click", l, !0), () => {
2379
- document.removeEventListener("click", l, !0);
2378
+ return Y(() => (document.addEventListener("click", d, !0), () => {
2379
+ document.removeEventListener("click", d, !0);
2380
2380
  })), A.createElement(e, {
2381
- ref: c,
2382
- className: $("more-menu text-medium", r),
2381
+ ref: l,
2382
+ className: S("more-menu text-medium", r),
2383
2383
  children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
2384
2384
  /* @__PURE__ */ s.jsx(
2385
2385
  U,
@@ -2387,15 +2387,15 @@ const Er = ({ element: e = "div", id: t = "more-menu", options: n, className: r
2387
2387
  variant: "tertiary",
2388
2388
  size: "medium",
2389
2389
  icon: { icon: "ellipsis" },
2390
- onClick: () => a(!d),
2390
+ onClick: () => a(!u),
2391
2391
  "aria-haspopup": "true",
2392
- "aria-expanded": d,
2392
+ "aria-expanded": u,
2393
2393
  "aria-controls": t,
2394
2394
  screenreaderText: i.formatMessage({ id: "moreMenu" })
2395
2395
  }
2396
2396
  ),
2397
- /* @__PURE__ */ s.jsx("ul", { id: t, hidden: !d, children: n.map(({ href: o, onClick: m, text: u, icon: h, ...p }, g) => {
2398
- const b = {
2397
+ /* @__PURE__ */ s.jsx("ul", { id: t, hidden: !u, children: n.map(({ href: o, onClick: m, text: c, icon: h, ...p }, g) => {
2398
+ const x = {
2399
2399
  ...p,
2400
2400
  onClick: (v) => {
2401
2401
  a(!1), typeof m == "function" && m(v);
@@ -2409,16 +2409,16 @@ const Er = ({ element: e = "div", id: t = "more-menu", options: n, className: r
2409
2409
  }, 100);
2410
2410
  }
2411
2411
  };
2412
- return o && (b.href = o), /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(
2412
+ return o && (x.href = o), /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(
2413
2413
  U,
2414
2414
  {
2415
2415
  variant: "tertiary",
2416
2416
  size: "medium",
2417
2417
  icon: h ? { icon: h, position: "left" } : !1,
2418
- ...b,
2419
- children: u
2418
+ ...x,
2419
+ children: c
2420
2420
  }
2421
- ) }, `${window.btoa(u)}_${g}`);
2421
+ ) }, `${window.btoa(c)}_${g}`);
2422
2422
  }) })
2423
2423
  ] })
2424
2424
  });
@@ -2447,14 +2447,14 @@ const $r = [
2447
2447
  ], Tr = ({ activeLink: e }) => {
2448
2448
  const t = D(), n = je($e), r = n && typeof n.id == "string";
2449
2449
  return /* @__PURE__ */ s.jsxs("ul", { id: "navigation-menu", className: "text-medium", children: [
2450
- $r.map(({ key: i, href: c }) => /* @__PURE__ */ s.jsx(
2450
+ $r.map(({ key: i, href: l }) => /* @__PURE__ */ s.jsx(
2451
2451
  "li",
2452
2452
  {
2453
- className: $(i, { active: Sr(c, e) }),
2453
+ className: S(i, { active: Sr(l, e) }),
2454
2454
  children: /* @__PURE__ */ s.jsx(
2455
2455
  "a",
2456
2456
  {
2457
- href: c,
2457
+ href: l,
2458
2458
  "data-gtm-event-type": `${i}-click`,
2459
2459
  "data-gtm-event-context": "NavigationMenu",
2460
2460
  className: "gtm-trackable",
@@ -2533,23 +2533,23 @@ const Nr = "shareLinks_", qa = ({
2533
2533
  referrer: n,
2534
2534
  gtmContext: r = "ShareLinks",
2535
2535
  size: i = "large",
2536
- variant: c = "default",
2537
- className: d = ""
2536
+ variant: l = "default",
2537
+ className: u = ""
2538
2538
  }) => {
2539
- const a = D(), l = Mr({ title: e, link: t, referrer: n });
2540
- return /* @__PURE__ */ s.jsxs("aside", { className: $("share-links", i, c, d), children: [
2539
+ const a = D(), d = Mr({ title: e, link: t, referrer: n });
2540
+ return /* @__PURE__ */ s.jsxs("aside", { className: S("share-links", i, l, u), children: [
2541
2541
  /* @__PURE__ */ s.jsx("p", { className: "text-small", children: a.formatMessage({ id: "shareLinks_label" }) }),
2542
- /* @__PURE__ */ s.jsx("ul", { children: l.map(({ key: o, icon: m, url: u, shouldRender: h = !0, onClick: p }) => {
2542
+ /* @__PURE__ */ s.jsx("ul", { children: d.map(({ key: o, icon: m, url: c, shouldRender: h = !0, onClick: p }) => {
2543
2543
  if (typeof h == "function" && !h())
2544
2544
  return null;
2545
2545
  const g = {};
2546
- return p && (g.onClick = (b) => p(b, u)), /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(
2546
+ return p && (g.onClick = (x) => p(x, c)), /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(
2547
2547
  U,
2548
2548
  {
2549
2549
  size: i,
2550
2550
  variant: "tertiary",
2551
2551
  icon: { icon: m || o },
2552
- href: u,
2552
+ href: c,
2553
2553
  target: "_blank",
2554
2554
  rel: "noopener noreferrer",
2555
2555
  className: "gtm-trackable",
@@ -2563,6 +2563,60 @@ const Nr = "shareLinks_", qa = ({
2563
2563
  }) })
2564
2564
  ] });
2565
2565
  };
2566
+ const eo = ({ tabs: e, className: t = "" }) => {
2567
+ var d;
2568
+ const n = (o, m, c) => (o || (o = `panel-${window.btoa(m)}-${c}`), o);
2569
+ let r = e.findIndex((o) => o.current === !0);
2570
+ if (r < 0 && (r = 0), window.location.hash) {
2571
+ const o = window.location.hash.replace("#", "");
2572
+ if (e.find((c) => c.id === o)) {
2573
+ for (let c = 0; c < e.length; c++)
2574
+ if (n(e[c].id, e[c].text, c) === o) {
2575
+ r = c;
2576
+ break;
2577
+ }
2578
+ }
2579
+ }
2580
+ const [i, l] = L(
2581
+ (d = e[r]) != null && d.id ? e[r].id : n(e[r].id, e[r].text, r)
2582
+ ), u = [], a = [];
2583
+ return e.forEach(({ id: o, text: m, content: c, href: h }, p) => {
2584
+ o = n(o, m, p);
2585
+ const g = i === o, x = {};
2586
+ h || (x["aria-controls"] = o, x.onClick = (v) => {
2587
+ v.preventDefault(), v.stopPropagation(), l(o), window.location.hash = `#${o}`;
2588
+ }, a.push(
2589
+ /* @__PURE__ */ s.jsx(
2590
+ "section",
2591
+ {
2592
+ id: o,
2593
+ hidden: !g,
2594
+ role: "tabpanel",
2595
+ "aria-labelledby": `tab-${o}`,
2596
+ "aria-live": g ? "assertive" : "off",
2597
+ children: typeof c == "string" ? /* @__PURE__ */ s.jsx("p", { children: c }) : c
2598
+ },
2599
+ `section-${o}`
2600
+ )
2601
+ )), u.push(
2602
+ /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(
2603
+ "a",
2604
+ {
2605
+ href: h || `#${o}`,
2606
+ id: `tab-${o}`,
2607
+ className: S({ selected: g }),
2608
+ role: "tab",
2609
+ "aria-selected": g,
2610
+ ...x,
2611
+ children: m
2612
+ }
2613
+ ) }, `tab-${o}`)
2614
+ );
2615
+ }), /* @__PURE__ */ s.jsxs("div", { className: S("tabs-wrapper", t), children: [
2616
+ /* @__PURE__ */ s.jsx("ul", { className: "tabs", role: "tablist", children: u }),
2617
+ /* @__PURE__ */ s.jsx("div", { className: "tab-content", children: a })
2618
+ ] });
2619
+ };
2566
2620
  const Dr = {
2567
2621
  "2-1": 901,
2568
2622
  "1-3": 769
@@ -2573,26 +2627,26 @@ const Dr = {
2573
2627
  children: r
2574
2628
  }) => {
2575
2629
  const i = vt(!0);
2576
- let c = r;
2577
- return A.Children.count(r) === 1 && (c = A.Children.toArray(r)[0], c.props && (c = c.props.children)), /* @__PURE__ */ s.jsx("section", { className: $("columns", `layout-${e}`, n), children: A.Children.map(c, (d, a) => t !== !1 && a === t && i && i < Dr[e] ? null : d) });
2578
- }, eo = ({ activeLink: e, ...t }) => /* @__PURE__ */ s.jsx(Cr, { layout: "1-3", children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
2630
+ let l = r;
2631
+ return A.Children.count(r) === 1 && (l = A.Children.toArray(r)[0], l.props && (l = l.props.children)), /* @__PURE__ */ s.jsx("section", { className: S("columns", `layout-${e}`, n), children: A.Children.map(l, (u, a) => t !== !1 && a === t && i && i < Dr[e] ? null : u) });
2632
+ }, to = ({ activeLink: e, ...t }) => /* @__PURE__ */ s.jsx(Cr, { layout: "1-3", children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
2579
2633
  /* @__PURE__ */ s.jsx(Tr, { activeLink: e }),
2580
2634
  /* @__PURE__ */ s.jsx(ur, { ...t })
2581
2635
  ] }) });
2582
- const Ot = "cookieBanner_", It = ["apol-cookie-banner", "apolitical-performance-cookie-consent", "functional-cookie-consent"], Bt = new Date(Date.now() + 12 * 30 * 24 * 60 * 60 * 1e3), Ar = () => {
2583
- const e = D(), [t, n, r] = Ss(It), [i, c] = L(!t["apol-cookie-banner"]), d = () => {
2584
- It.forEach((m) => {
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), Ar = () => {
2637
+ const e = D(), [t, n, r] = Ss(Ot), [i, l] = L(!t["apol-cookie-banner"]), u = () => {
2638
+ Ot.forEach((m) => {
2585
2639
  n(m, !0, {
2586
2640
  path: "/",
2587
2641
  expires: Bt,
2588
2642
  domain: m === "apolitical-performance-cookie-consent" ? ".apolitical.co" : void 0
2589
2643
  });
2590
- }), c(!1), window.location.reload();
2644
+ }), l(!1), window.location.reload();
2591
2645
  }, a = () => {
2592
2646
  n("apol-cookie-banner", !0, {
2593
2647
  path: "/",
2594
2648
  expires: Bt
2595
- }), It.forEach((m) => {
2649
+ }), Ot.forEach((m) => {
2596
2650
  if (m === "apol-cookie-banner") {
2597
2651
  n(m, !0, {
2598
2652
  path: "/",
@@ -2601,16 +2655,16 @@ const Ot = "cookieBanner_", It = ["apol-cookie-banner", "apolitical-performance-
2601
2655
  return;
2602
2656
  }
2603
2657
  r(m);
2604
- }), c(!1);
2658
+ }), l(!1);
2605
2659
  };
2606
2660
  if (!i)
2607
2661
  return null;
2608
- const l = [
2662
+ const d = [
2609
2663
  { id: "settings", href: "/pages/cookie-policy", gtmType: "policy-page" },
2610
2664
  { id: "reject", onClick: a, gtmType: "reject-all" },
2611
- { id: "accept", onClick: d, gtmType: "accepted-all" }
2665
+ { id: "accept", onClick: u, gtmType: "accepted-all" }
2612
2666
  ], o = [];
2613
- return l.forEach((m) => {
2667
+ return d.forEach((m) => {
2614
2668
  o.push({
2615
2669
  variant: m.href ? "tertiary" : "primary",
2616
2670
  href: m.href,
@@ -2618,11 +2672,11 @@ const Ot = "cookieBanner_", It = ["apol-cookie-banner", "apolitical-performance-
2618
2672
  className: "gtm-trackable",
2619
2673
  "data-gtm-event-context": "cookie-banner",
2620
2674
  "data-gtm-event-type": `cookie-${m.gtmType}-click`,
2621
- children: e.formatMessage({ id: `${Ot}buttons_${m.id}` })
2675
+ children: e.formatMessage({ id: `${It}buttons_${m.id}` })
2622
2676
  });
2623
2677
  }), /* @__PURE__ */ s.jsxs("aside", { id: "cookie-banner", className: "text-medium", children: [
2624
- /* @__PURE__ */ s.jsx("h6", { children: e.formatMessage({ id: `${Ot}title` }) }),
2625
- /* @__PURE__ */ s.jsx("p", { children: e.formatMessage({ id: `${Ot}text` }) }),
2678
+ /* @__PURE__ */ s.jsx("h6", { children: e.formatMessage({ id: `${It}title` }) }),
2679
+ /* @__PURE__ */ s.jsx("p", { children: e.formatMessage({ id: `${It}text` }) }),
2626
2680
  /* @__PURE__ */ s.jsx(kt, { buttons: o })
2627
2681
  ] });
2628
2682
  }, Ce = {
@@ -2727,15 +2781,15 @@ const Be = "footer_", ht = "SiteFooter", jn = ({ group: e }) => {
2727
2781
  Array.isArray(t) && t.length > 0 && /* @__PURE__ */ s.jsx("ul", { className: "text-medium", children: t.map((r) => {
2728
2782
  if (["order", "child", "text"].includes(r))
2729
2783
  return null;
2730
- const { href: i, gtmType: c } = Ce[e][r], d = {};
2731
- return ["legal"].includes(e) && (d.target = "_blank", d.rel = "noopener"), /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(
2784
+ const { href: i, gtmType: l } = Ce[e][r], u = {};
2785
+ return ["legal"].includes(e) && (u.target = "_blank", u.rel = "noopener"), /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(
2732
2786
  "a",
2733
2787
  {
2734
2788
  href: i,
2735
2789
  className: "gtm-trackable",
2736
2790
  "data-gtm-event-context": ht,
2737
- "data-gtm-event-type": c,
2738
- ...d,
2791
+ "data-gtm-event-type": l,
2792
+ ...u,
2739
2793
  children: /* @__PURE__ */ s.jsx(Pe, { id: `${Be}${e}_${r}` })
2740
2794
  }
2741
2795
  ) }, `${e}_${r}`);
@@ -2793,12 +2847,12 @@ const Be = "footer_", ht = "SiteFooter", jn = ({ group: e }) => {
2793
2847
  /* @__PURE__ */ s.jsx("small", { children: /* @__PURE__ */ s.jsx(Pe, { id: `${Be}copyright`, values: { currentYear: (/* @__PURE__ */ new Date()).getFullYear() } }) })
2794
2848
  ] })
2795
2849
  ] }) });
2796
- const ot = "emailHelperTextBox_", to = ({ type: e, email: t, redirectPath: n, resendVerificationCode: r }) => {
2797
- const i = D(), [c, d] = L({ path: `${ot}default`, type: "default", link: {}, mail: {}, error: "" }), [a, l] = L(!1), o = Me(
2850
+ const ot = "emailHelperTextBox_", no = ({ type: e, email: t, redirectPath: n, resendVerificationCode: r }) => {
2851
+ const i = D(), [l, u] = L({ path: `${ot}default`, type: "default", link: {}, mail: {}, error: "" }), [a, d] = L(!1), o = Me(
2798
2852
  (p) => {
2799
2853
  p.preventDefault(), p.stopPropagation();
2800
- const g = (b) => {
2801
- d({
2854
+ const g = (x) => {
2855
+ u({
2802
2856
  path: `${ot}error_verificationFailedToSend`,
2803
2857
  type: "error",
2804
2858
  link: {
@@ -2815,19 +2869,19 @@ const ot = "emailHelperTextBox_", to = ({ type: e, email: t, redirectPath: n, re
2815
2869
  "data-gtm-event-context": "ErrorVerifyingBox",
2816
2870
  "data-gtm-event-type": "email-concierge-click"
2817
2871
  },
2818
- error: b
2872
+ error: x
2819
2873
  });
2820
2874
  };
2821
2875
  if (typeof r != "function") {
2822
2876
  g(i.formatMessage({ id: `${ot}error_noFunction` }));
2823
2877
  return;
2824
2878
  }
2825
- l(!0), r(t).then(() => {
2879
+ d(!0), r(t).then(() => {
2826
2880
  localStorage.setItem("email", t), window.location.href = n || "/signup/verify-email";
2827
- }).catch((b) => {
2828
- g(b.message);
2881
+ }).catch((x) => {
2882
+ g(x.message);
2829
2883
  }).finally(() => {
2830
- l(!1);
2884
+ d(!1);
2831
2885
  });
2832
2886
  },
2833
2887
  /* eslint-disable react-hooks/exhaustive-deps */
@@ -2835,13 +2889,13 @@ const ot = "emailHelperTextBox_", to = ({ type: e, email: t, redirectPath: n, re
2835
2889
  );
2836
2890
  Y(
2837
2891
  () => {
2838
- let p = ot, g = "default", b = {}, v = {};
2892
+ let p = ot, g = "default", x = {}, v = {};
2839
2893
  switch (e) {
2840
2894
  case "gov":
2841
2895
  p += "autoApproved", g = "success";
2842
2896
  break;
2843
2897
  case "nonGov":
2844
- p += "unrecognisedEmail", g = "error", b = {
2898
+ p += "unrecognisedEmail", g = "error", x = {
2845
2899
  href: "https://about.apolitical.co/who-can-join-the-community",
2846
2900
  "data-gtm-event-context": "NonGovEmailHelperTextBox",
2847
2901
  "data-gtm-event-type": "LearnMoreClick"
@@ -2856,7 +2910,7 @@ const ot = "emailHelperTextBox_", to = ({ type: e, email: t, redirectPath: n, re
2856
2910
  };
2857
2911
  break;
2858
2912
  case "verify":
2859
- p += "emailUnverified", g = "error", b = {
2913
+ p += "emailUnverified", g = "error", x = {
2860
2914
  href: "#",
2861
2915
  "data-gtm-event-context": "VerifyEmailBox",
2862
2916
  "data-gtm-event-type": "SendEmailClick",
@@ -2866,7 +2920,7 @@ const ot = "emailHelperTextBox_", to = ({ type: e, email: t, redirectPath: n, re
2866
2920
  };
2867
2921
  break;
2868
2922
  case "exists":
2869
- p += "emailAlreadyExists", g = "error", b = {
2923
+ p += "emailAlreadyExists", g = "error", x = {
2870
2924
  href: "/user-onboarding/login",
2871
2925
  "data-gtm-event-context": "EmailExistsBox",
2872
2926
  "data-gtm-event-type": "login-click"
@@ -2878,22 +2932,22 @@ const ot = "emailHelperTextBox_", to = ({ type: e, email: t, redirectPath: n, re
2878
2932
  };
2879
2933
  break;
2880
2934
  default:
2881
- p += "default", b = {
2935
+ p += "default", x = {
2882
2936
  href: "https://about.apolitical.co/who-can-join-the-community",
2883
2937
  "data-gtm-event-context": "DefaultEmailHelperTextBox",
2884
2938
  "data-gtm-event-type": "LearnMoreClick"
2885
2939
  };
2886
2940
  break;
2887
2941
  }
2888
- d({ ...c, path: p, type: g, link: b, mail: v });
2942
+ u({ ...l, path: p, type: g, link: x, mail: v });
2889
2943
  },
2890
2944
  /* eslint-disable react-hooks/exhaustive-deps */
2891
2945
  [e]
2892
2946
  );
2893
2947
  const m = {};
2894
2948
  return ["link", "mail"].forEach((p) => {
2895
- m[p] = Object.keys(c[p]).length ? (g) => /* @__PURE__ */ s.jsx("a", { ...c[p], children: g }) : (g) => g;
2896
- }), /* @__PURE__ */ s.jsx(nr, { type: c.type, heading: a ? !1 : i.formatMessage({ id: `${c.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(nr, { type: l.type, heading: a ? !1 : i.formatMessage({ id: `${l.path}_title` }), children: a ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
2897
2951
  /* @__PURE__ */ s.jsx(Se, { element: "span" }),
2898
2952
  /* @__PURE__ */ s.jsx(Se, { element: "span" })
2899
2953
  ] }) : (
@@ -2901,7 +2955,7 @@ const ot = "emailHelperTextBox_", to = ({ type: e, email: t, redirectPath: n, re
2901
2955
  // @ts-ignore
2902
2956
  // `values` are throwing a type error: https://github.com/formatjs/formatjs/issues/3633
2903
2957
  i.formatMessage(
2904
- { id: `${c.path}_text` },
2958
+ { id: `${l.path}_text` },
2905
2959
  {
2906
2960
  ...m,
2907
2961
  strong: (p) => /* @__PURE__ */ s.jsx("strong", { children: p }),
@@ -2910,7 +2964,7 @@ const ot = "emailHelperTextBox_", to = ({ type: e, email: t, redirectPath: n, re
2910
2964
  /* @__PURE__ */ s.jsx("br", {}),
2911
2965
  /* @__PURE__ */ s.jsx("br", {})
2912
2966
  ] }),
2913
- error: c.error
2967
+ error: l.error
2914
2968
  }
2915
2969
  )
2916
2970
  ) });
@@ -2921,9 +2975,9 @@ const it = "passwordRules_", Yn = "isMoreThanEightCharacters", Gn = "includesNum
2921
2975
  [Jn]: "lowercaseUppercase"
2922
2976
  }, Rr = ({ matchingRules: e = { isMoreThanEightCharacters: !1, includesNumberAndSymbol: !1, includesLowerAndUppercase: !1 }, className: t = "" }) => {
2923
2977
  const n = D();
2924
- return /* @__PURE__ */ s.jsxs("aside", { className: $("password-rules", t), children: [
2978
+ return /* @__PURE__ */ s.jsxs("aside", { className: S("password-rules", t), children: [
2925
2979
  /* @__PURE__ */ s.jsx("small", { children: n.formatMessage({ id: `${it}intro` }) }),
2926
- /* @__PURE__ */ s.jsx("ul", { children: [Yn, Gn, Jn].map((r) => /* @__PURE__ */ s.jsxs("li", { className: $({ matches: e[r] }), children: [
2980
+ /* @__PURE__ */ s.jsx("ul", { children: [Yn, Gn, Jn].map((r) => /* @__PURE__ */ s.jsxs("li", { className: S({ matches: e[r] }), children: [
2927
2981
  /* @__PURE__ */ s.jsxs(_e, { children: [
2928
2982
  n.formatMessage({ id: `${it}rule_label` }),
2929
2983
  " "
@@ -2936,17 +2990,17 @@ const it = "passwordRules_", Yn = "isMoreThanEightCharacters", Gn = "includesNum
2936
2990
  ] })
2937
2991
  ] }, `rule-${r}`)) })
2938
2992
  ] });
2939
- }, no = We(Rr);
2940
- const so = ({
2993
+ }, so = We(Rr);
2994
+ const ro = ({
2941
2995
  text: e = {},
2942
2996
  topRating: t = 5,
2943
2997
  functions: { createRating: n = () => null, updateRating: r = () => {
2944
2998
  }, reportError: i = () => {
2945
2999
  } },
2946
- className: c = "",
2947
- hasLoaded: d = !1
3000
+ className: l = "",
3001
+ hasLoaded: u = !1
2948
3002
  }) => {
2949
- const a = D(), [l, o] = L({ setUp: !1, id: null, rating: null, disabled: !0 }), m = async () => {
3003
+ const a = D(), [d, o] = L({ setUp: !1, id: null, rating: null, disabled: !0 }), m = async () => {
2950
3004
  try {
2951
3005
  const E = await n();
2952
3006
  o((k) => ({ ...k, setUp: !0, id: E && E.id, disabled: !1 }));
@@ -2955,30 +3009,30 @@ const so = ({
2955
3009
  }
2956
3010
  };
2957
3011
  if (Y(() => {
2958
- d && !l.setUp && m();
2959
- }, [d]), !d)
3012
+ u && !d.setUp && m();
3013
+ }, [u]), !u)
2960
3014
  return /* @__PURE__ */ s.jsx(Se, { className: "rating-placeholder" });
2961
- const { id: u, rating: h, disabled: p } = l, g = "ratings_", b = {
3015
+ const { id: c, rating: h, disabled: p } = d, g = "ratings_", x = {
2962
3016
  text: a.formatMessage({ id: `${g}text` }),
2963
3017
  low: a.formatMessage({ id: `${g}low` }),
2964
3018
  high: a.formatMessage({ id: `${g}high` }),
2965
3019
  success: a.formatMessage({ id: `${g}success` }),
2966
3020
  ...e
2967
3021
  }, v = async (E) => {
2968
- if (!(!u || p))
3022
+ if (!(!c || p))
2969
3023
  try {
2970
- o((k) => ({ ...k, rating: E, disabled: !0 })), await r({ id: u, value: E });
3024
+ o((k) => ({ ...k, rating: E, disabled: !0 })), await r({ id: c, value: E });
2971
3025
  } catch (k) {
2972
3026
  o((_) => ({ ..._, rating: null })), i(k);
2973
3027
  } finally {
2974
3028
  o((k) => ({ ...k, disabled: !1 }));
2975
3029
  }
2976
3030
  };
2977
- return /* @__PURE__ */ s.jsxs("div", { className: $("rating", c), children: [
2978
- /* @__PURE__ */ s.jsx("span", { className: "label", children: b[h ? "success" : "text"] }),
3031
+ return /* @__PURE__ */ s.jsxs("div", { className: S("rating", l), children: [
3032
+ /* @__PURE__ */ s.jsx("span", { className: "label", children: x[h ? "success" : "text"] }),
2979
3033
  /* @__PURE__ */ s.jsx("ol", { children: Array.from(new Array(t).keys()).map((E) => {
2980
3034
  const k = E + 1;
2981
- return /* @__PURE__ */ s.jsx("li", { className: $({ selected: h && k <= h }), children: /* @__PURE__ */ s.jsx(
3035
+ return /* @__PURE__ */ s.jsx("li", { className: S({ selected: h && k <= h }), children: /* @__PURE__ */ s.jsx(
2982
3036
  U,
2983
3037
  {
2984
3038
  variant: "tertiary",
@@ -2987,7 +3041,7 @@ const so = ({
2987
3041
  screenreaderText: `${a.formatMessage(
2988
3042
  { id: `${g}stars` },
2989
3043
  { number: k, total: t }
2990
- )}${k === 1 || k === t ? ` - ${b[k === 1 ? "low" : "high"]}` : ""}`,
3044
+ )}${k === 1 || k === t ? ` - ${x[k === 1 ? "low" : "high"]}` : ""}`,
2991
3045
  onClick: (_) => {
2992
3046
  _.preventDefault(), _.stopPropagation(), v(k);
2993
3047
  },
@@ -3003,24 +3057,24 @@ const Fr = ({
3003
3057
  handleToggle: n = !1,
3004
3058
  defaultValue: r = "",
3005
3059
  gtmContext: i = "search-bar",
3006
- gtmEvent: c = "form-submission"
3060
+ gtmEvent: l = "form-submission"
3007
3061
  }) => {
3008
- const { searchIsOpen: d = !0, isDesktopVersion: a = !1 } = n || {}, l = D(), o = de(null);
3062
+ const { searchIsOpen: u = !0, isDesktopVersion: a = !1 } = n || {}, d = D(), o = de(null);
3009
3063
  He(() => {
3010
- !n || a || !d || o.current && o.current.focus();
3011
- }, [d]);
3012
- const m = (u) => {
3013
- u.preventDefault(), u.stopPropagation(), !(!o.current || !o.current.value || o.current.value.length < 1) && (window.location.href = `/search?search=${encodeURIComponent(o.current.value)}`);
3064
+ !n || a || !u || o.current && o.current.focus();
3065
+ }, [u]);
3066
+ const m = (c) => {
3067
+ c.preventDefault(), c.stopPropagation(), !(!o.current || !o.current.value || o.current.value.length < 1) && (window.location.href = `/search?search=${encodeURIComponent(o.current.value)}`);
3014
3068
  };
3015
3069
  return /* @__PURE__ */ s.jsx(
3016
3070
  "form",
3017
3071
  {
3018
3072
  onSubmit: m,
3019
- className: $("search-form gtm-trackable", t),
3073
+ className: S("search-form gtm-trackable", t),
3020
3074
  "data-gtm-event-context": i,
3021
- "data-gtm-event-type": c,
3022
- children: /* @__PURE__ */ s.jsx("fieldset", { id: `${e}-form`, hidden: n ? !d : !1, role: "search", children: /* @__PURE__ */ s.jsxs("p", { children: [
3023
- /* @__PURE__ */ s.jsx(_e, { element: "label", htmlFor: e, children: l.formatMessage({ id: "search_label" }) }),
3075
+ "data-gtm-event-type": l,
3076
+ children: /* @__PURE__ */ s.jsx("fieldset", { id: `${e}-form`, hidden: n ? !u : !1, role: "search", children: /* @__PURE__ */ s.jsxs("p", { children: [
3077
+ /* @__PURE__ */ s.jsx(_e, { element: "label", htmlFor: e, children: d.formatMessage({ id: "search_label" }) }),
3024
3078
  /* @__PURE__ */ s.jsx(
3025
3079
  "input",
3026
3080
  {
@@ -3029,9 +3083,9 @@ const Fr = ({
3029
3083
  id: e,
3030
3084
  name: e,
3031
3085
  defaultValue: r,
3032
- placeholder: l.formatMessage({ id: "search_placeholder" }),
3033
- onKeyDown: (u) => {
3034
- u.key === "Enter" && m(u);
3086
+ placeholder: d.formatMessage({ id: "search_placeholder" }),
3087
+ onKeyDown: (c) => {
3088
+ c.key === "Enter" && m(c);
3035
3089
  }
3036
3090
  }
3037
3091
  ),
@@ -3039,13 +3093,13 @@ const Fr = ({
3039
3093
  "button",
3040
3094
  {
3041
3095
  className: "clear",
3042
- onClick: (u) => {
3043
- u.preventDefault(), u.stopPropagation(), o.current && o.current.value && (o.current.value = "");
3096
+ onClick: (c) => {
3097
+ c.preventDefault(), c.stopPropagation(), o.current && o.current.value && (o.current.value = "");
3044
3098
  },
3045
- children: /* @__PURE__ */ s.jsx(_e, { children: l.formatMessage({ id: "search_clear" }) })
3099
+ children: /* @__PURE__ */ s.jsx(_e, { children: d.formatMessage({ id: "search_clear" }) })
3046
3100
  }
3047
3101
  ),
3048
- /* @__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" }) }) })
3049
3103
  ] }) })
3050
3104
  }
3051
3105
  );
@@ -3056,33 +3110,33 @@ const Lr = ({
3056
3110
  ctaMessage: n,
3057
3111
  titleColor: r,
3058
3112
  labelColor: i,
3059
- backgroundColor: c,
3060
- onClose: d,
3113
+ backgroundColor: l,
3114
+ onClose: u,
3061
3115
  reportError: a,
3062
- sendInvites: l,
3116
+ sendInvites: d,
3063
3117
  initialFormStatus: o = "NOT_SUBMITTED"
3064
3118
  /* NOT_SUBMITTED */
3065
3119
  }) => {
3066
- const [m, u] = L([]), [h, p] = L(!0), [g, b] = L(o), { formatMessage: v } = D(), E = async (T) => {
3120
+ const [m, c] = L([]), [h, p] = L(!0), [g, x] = L(o), { formatMessage: v } = D(), E = async (T) => {
3067
3121
  T.preventDefault();
3068
3122
  try {
3069
- await l(m), u([]), b(
3123
+ await d(m), c([]), x(
3070
3124
  "SUCCESS"
3071
3125
  /* SUCCESS */
3072
3126
  );
3073
3127
  } catch (C) {
3074
- b(
3128
+ x(
3075
3129
  "ERROR"
3076
3130
  /* ERROR */
3077
3131
  ), a(C);
3078
3132
  }
3079
3133
  }, k = (T) => {
3080
- T.preventDefault(), b(
3134
+ T.preventDefault(), x(
3081
3135
  "NOT_SUBMITTED"
3082
3136
  /* NOT_SUBMITTED */
3083
- ), p(!0), u([]);
3137
+ ), p(!0), c([]);
3084
3138
  }, _ = (T) => {
3085
- T.preventDefault(), d(), b(
3139
+ T.preventDefault(), u(), x(
3086
3140
  "CLOSED"
3087
3141
  /* CLOSED */
3088
3142
  );
@@ -3100,9 +3154,9 @@ const Lr = ({
3100
3154
  ] }) : /* @__PURE__ */ s.jsx("div", { className: "invite-form-wrapper", children: /* @__PURE__ */ s.jsxs(
3101
3155
  "form",
3102
3156
  {
3103
- style: { backgroundColor: c },
3157
+ style: { backgroundColor: l },
3104
3158
  onSubmit: E,
3105
- className: $("invite-form gtm-trackable"),
3159
+ className: S("invite-form gtm-trackable"),
3106
3160
  children: [
3107
3161
  /* @__PURE__ */ s.jsxs("fieldset", { className: "content", children: [
3108
3162
  /* @__PURE__ */ s.jsx("h2", { className: "title", style: { color: r }, children: e }),
@@ -3115,7 +3169,7 @@ const Lr = ({
3115
3169
  placeholder: v({ id: "inviteForm_email_placeholder" }),
3116
3170
  emails: m,
3117
3171
  onChange: (T) => {
3118
- u(T), p(!T.length);
3172
+ c(T), p(!T.length);
3119
3173
  },
3120
3174
  autoFocus: !1,
3121
3175
  getLabel: (T, C, R) => /* @__PURE__ */ s.jsxs("div", { className: "email text-medium", children: [
@@ -3149,13 +3203,13 @@ const Lr = ({
3149
3203
  const n = {
3150
3204
  navigation: { loggedIn: 769, loggedOut: 881 },
3151
3205
  search: { loggedIn: 961, loggedOut: 1121 }
3152
- }, r = (c) => {
3153
- const d = `logged${e ? "In" : "Out"}`;
3154
- return t >= n[c][d];
3206
+ }, r = (l) => {
3207
+ const u = `logged${e ? "In" : "Out"}`;
3208
+ return t >= n[l][u];
3155
3209
  };
3156
3210
  let i = {};
3157
- return ["navigation", "search"].forEach((c) => {
3158
- i[c] = r(c);
3211
+ return ["navigation", "search"].forEach((l) => {
3212
+ i[l] = r(l);
3159
3213
  }), i;
3160
3214
  },
3161
3215
  shouldChangeHeaderIsVisible: (e, t, n) => {
@@ -3168,10 +3222,10 @@ const Lr = ({
3168
3222
  if (!t && H.handlerCalled[e] && i - H.handlerCalled[e] < 500)
3169
3223
  return;
3170
3224
  H.handlerCalled[e] = i;
3171
- let c = [{ type: `menus.${e}`, value: t }];
3172
- t === !0 && Object.keys(n).forEach((d) => {
3173
- d === e || n[d] === !1 || c.push({ type: `menus.${d}`, value: !1 });
3174
- }), r(c);
3225
+ let l = [{ type: `menus.${e}`, value: t }];
3226
+ t === !0 && Object.keys(n).forEach((u) => {
3227
+ u === e || n[u] === !1 || l.push({ type: `menus.${u}`, value: !1 });
3228
+ }), r(l);
3175
3229
  },
3176
3230
  // Find the first child inside a ref that matches the `key` (and optional `value`) we're looking for,
3177
3231
  // so we can automatically focus on the first link inside a menu for accessibility.
@@ -3197,34 +3251,34 @@ const Lr = ({
3197
3251
  autoFocus: ({ menu: e, navigationRef: t, isDesktopVersion: n, focusElements: r, dispatch: i }) => {
3198
3252
  if (!t.current || !t.current.children)
3199
3253
  return;
3200
- const c = n ? "desktop" : "default";
3201
- if (r[e][c]) {
3202
- r[e][c].focus();
3254
+ const l = n ? "desktop" : "default";
3255
+ if (r[e][l]) {
3256
+ r[e][l].focus();
3203
3257
  return;
3204
3258
  }
3205
- let d, a;
3259
+ let u, a;
3206
3260
  switch (e) {
3207
3261
  case "navigation":
3208
3262
  if (n) {
3209
- const l = H.findFirstChild(
3263
+ const d = H.findFirstChild(
3210
3264
  t.current.children,
3211
3265
  "attributes.aria-controls",
3212
3266
  "navigation"
3213
3267
  );
3214
- d = H.findFirstChild(l.children, "href");
3268
+ u = H.findFirstChild(d.children, "href");
3215
3269
  } else
3216
- d = H.findFirstChild(t.current.children, "href");
3217
- d || (d = t.current);
3270
+ u = H.findFirstChild(t.current.children, "href");
3271
+ u || (u = t.current);
3218
3272
  break;
3219
3273
  case "account":
3220
3274
  if (a = H.findFirstChild(t.current.children, "className", "account"), !a || !a.children)
3221
3275
  return;
3222
- d = H.findFirstChild(a.children, "href");
3276
+ u = H.findFirstChild(a.children, "href");
3223
3277
  break;
3224
3278
  default:
3225
3279
  return;
3226
3280
  }
3227
- d && (i([{ type: `focusElements.${e}.${c}`, value: d }]), d.focus());
3281
+ u && (i([{ type: `focusElements.${e}.${l}`, value: u }]), u.focus());
3228
3282
  },
3229
3283
  events: {
3230
3284
  onClick: (e, { id: t, callback: n, isOpen: r }) => {
@@ -3325,14 +3379,14 @@ const Lr = ({
3325
3379
  menus: r = {},
3326
3380
  callback: i = () => {
3327
3381
  },
3328
- doTrack: c = null
3382
+ doTrack: l = null
3329
3383
  }) => {
3330
- const d = D(), a = Mn(pt, e);
3384
+ const u = D(), a = Mn(pt, e);
3331
3385
  if (!a || a.onlyShow && (a.onlyShow === "logged-in" && !t || a.onlyShow === "logged-out" && t))
3332
3386
  return null;
3333
- const l = "doTrack" in a, o = c === null ? l ? a.doTrack : !0 : c, m = e.includes("buttons.");
3334
- let u = `header_${e.replaceAll(".", "_")}`;
3335
- a.hasVariantText && (u += `_logged${t ? "In" : "Out"}`);
3387
+ const d = "doTrack" in a, o = l === null ? d ? a.doTrack : !0 : l, m = e.includes("buttons.");
3388
+ let c = `header_${e.replaceAll(".", "_")}`;
3389
+ a.hasVariantText && (c += `_logged${t ? "In" : "Out"}`);
3336
3390
  let h = !1;
3337
3391
  if (a.href) {
3338
3392
  let k = a.gtmType || `${e}-click`;
@@ -3355,7 +3409,7 @@ const Lr = ({
3355
3409
  ...a.props || {}
3356
3410
  });
3357
3411
  }
3358
- const p = a.order && a.order[0] && a[a.order[0]], g = p && a[a.order[0]].order, b = h && window.location.pathname === a.href;
3412
+ const p = a.order && a.order[0] && a[a.order[0]], g = p && a[a.order[0]].order, x = h && window.location.pathname === a.href;
3359
3413
  let v = {}, E = {};
3360
3414
  if (p) {
3361
3415
  const k = a.menuId || e, _ = {
@@ -3380,8 +3434,8 @@ const Lr = ({
3380
3434
  ..._
3381
3435
  });
3382
3436
  }
3383
- return /* @__PURE__ */ s.jsxs("li", { className: $({ [a.className]: a.className, "has-submenu": p, parent: g, active: b }), role: "none", ...v, children: [
3384
- h ? A.createElement(m ? U : "a", h, d.formatMessage({ id: u })) : d.formatMessage({ id: u }),
3437
+ return /* @__PURE__ */ s.jsxs("li", { className: S({ [a.className]: a.className, "has-submenu": p, parent: g, active: x }), role: "none", ...v, children: [
3438
+ h ? A.createElement(m ? U : "a", h, u.formatMessage({ id: c })) : u.formatMessage({ id: c }),
3385
3439
  a.order && /* @__PURE__ */ s.jsx("ul", { ...E, children: a.order.map((k) => {
3386
3440
  if (!a[k])
3387
3441
  return null;
@@ -3390,46 +3444,46 @@ const Lr = ({
3390
3444
  isDesktopVersion: n,
3391
3445
  menus: r,
3392
3446
  callback: i,
3393
- doTrack: l ? o : null
3447
+ doTrack: d ? o : null
3394
3448
  };
3395
- return a[k].order ? /* @__PURE__ */ s.jsxs("li", { className: $({ [a[k].className]: a[k].className }), children: [
3396
- d.formatMessage({ id: `${u}_${k}` }),
3449
+ return a[k].order ? /* @__PURE__ */ s.jsxs("li", { className: S({ [a[k].className]: a[k].className }), children: [
3450
+ u.formatMessage({ id: `${c}_${k}` }),
3397
3451
  /* @__PURE__ */ s.jsx("ul", { children: a[k].order.map((T) => /* @__PURE__ */ s.jsx(gt, { id: `${e}.${k}.${T}`, ..._ }, T)) })
3398
3452
  ] }, k) : /* @__PURE__ */ s.jsx(gt, { id: `${e}.${k}`, ..._ }, k);
3399
3453
  }) })
3400
3454
  ] }, e);
3401
3455
  };
3402
- const Or = { height: 67, height_desktop: 83 }, Xn = ({ showNavigation: e = !0 }) => {
3403
- const t = D(), n = je($e), r = vt(!0, !0), i = n && typeof n.id == "string", c = xt(
3456
+ const Ir = { height: 67, height_desktop: 83 }, Xn = ({ showNavigation: e = !0 }) => {
3457
+ const t = D(), n = je($e), r = vt(!0, !0), i = n && typeof n.id == "string", l = xt(
3404
3458
  () => H.getIsDesktopVersion(i, r),
3405
3459
  [i, r]
3406
- ), [d, a] = gs(Js, {
3460
+ ), [u, a] = gs(Js, {
3407
3461
  headerIsVisible: !0,
3408
3462
  menus: { navigation: !1, search: !1, account: !1 },
3409
3463
  focusElements: {
3410
3464
  navigation: { desktop: !1, default: !1 },
3411
3465
  account: { desktop: !1, default: !1 }
3412
3466
  }
3413
- }), { headerIsVisible: l, menus: o, focusElements: m } = d;
3414
- Is({
3415
- scrollPosition: Or[`height${c.navigation ? "_desktop" : ""}`],
3467
+ }), { headerIsVisible: d, menus: o, focusElements: m } = u;
3468
+ Os({
3469
+ scrollPosition: Ir[`height${l.navigation ? "_desktop" : ""}`],
3416
3470
  callbacks: {
3417
3471
  scrollUp: () => {
3418
- !c && o.navigation || H.shouldChangeHeaderIsVisible(!0, o, a);
3472
+ !l && o.navigation || H.shouldChangeHeaderIsVisible(!0, o, a);
3419
3473
  },
3420
3474
  scrollDown: () => {
3421
- !c && o.navigation || H.shouldChangeHeaderIsVisible(!1, o, a);
3475
+ !l && o.navigation || H.shouldChangeHeaderIsVisible(!1, o, a);
3422
3476
  }
3423
3477
  }
3424
3478
  });
3425
- const u = (p, g) => {
3479
+ const c = (p, g) => {
3426
3480
  H.handleMenus({ id: p, value: g, menus: o, dispatch: a });
3427
3481
  }, h = de(null);
3428
3482
  return He(() => {
3429
3483
  o.navigation && H.autoFocus({
3430
3484
  menu: "navigation",
3431
3485
  navigationRef: h,
3432
- isDesktopVersion: c.navigation,
3486
+ isDesktopVersion: l.navigation,
3433
3487
  focusElements: m,
3434
3488
  dispatch: a
3435
3489
  });
@@ -3437,7 +3491,7 @@ const Or = { height: 67, height_desktop: 83 }, Xn = ({ showNavigation: e = !0 })
3437
3491
  o.account && H.autoFocus({
3438
3492
  menu: "account",
3439
3493
  navigationRef: h,
3440
- isDesktopVersion: c.navigation,
3494
+ isDesktopVersion: l.navigation,
3441
3495
  focusElements: m,
3442
3496
  dispatch: a
3443
3497
  });
@@ -3446,10 +3500,10 @@ const Or = { height: 67, height_desktop: 83 }, Xn = ({ showNavigation: e = !0 })
3446
3500
  "nav",
3447
3501
  {
3448
3502
  id: "header",
3449
- className: $({
3503
+ className: S({
3450
3504
  "logged-in": i,
3451
3505
  "logged-out": !i,
3452
- visible: l
3506
+ visible: d
3453
3507
  }),
3454
3508
  children: [
3455
3509
  /* @__PURE__ */ s.jsx(
@@ -3462,12 +3516,12 @@ const Or = { height: 67, height_desktop: 83 }, Xn = ({ showNavigation: e = !0 })
3462
3516
  ),
3463
3517
  /* @__PURE__ */ s.jsx(zn, {}),
3464
3518
  e && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
3465
- !c.navigation && /* @__PURE__ */ s.jsx(
3519
+ !l.navigation && /* @__PURE__ */ s.jsx(
3466
3520
  "button",
3467
3521
  {
3468
3522
  className: "menu-button gtm-trackable",
3469
3523
  onClick: (p) => {
3470
- p.preventDefault(), p.stopPropagation(), u("navigation", !o.navigation);
3524
+ p.preventDefault(), p.stopPropagation(), c("navigation", !o.navigation);
3471
3525
  },
3472
3526
  "data-gtm-event-type": "open-tab-menu-click",
3473
3527
  "data-gtm-event-context": "HeaderLeft-Chevron",
@@ -3484,28 +3538,28 @@ const Or = { height: 67, height_desktop: 83 }, Xn = ({ showNavigation: e = !0 })
3484
3538
  {
3485
3539
  ref: h,
3486
3540
  id: "navigation",
3487
- hidden: c.navigation || o.account ? !1 : !o.navigation,
3541
+ hidden: l.navigation || o.account ? !1 : !o.navigation,
3488
3542
  role: "menu",
3489
- "data-showing": !c.navigation && o.account ? "account" : "default",
3543
+ "data-showing": !l.navigation && o.account ? "account" : "default",
3490
3544
  children: pt.order.map((p) => /* @__PURE__ */ s.jsx(
3491
3545
  gt,
3492
3546
  {
3493
3547
  id: p,
3494
3548
  isLoggedIn: i,
3495
- isDesktopVersion: c.navigation,
3549
+ isDesktopVersion: l.navigation,
3496
3550
  menus: { navigation: o.navigation, account: o.account },
3497
- callback: u
3551
+ callback: c
3498
3552
  },
3499
3553
  p
3500
3554
  ))
3501
3555
  }
3502
3556
  ),
3503
- !c.search && /* @__PURE__ */ s.jsx(
3557
+ !l.search && /* @__PURE__ */ s.jsx(
3504
3558
  "button",
3505
3559
  {
3506
3560
  className: "search toggle-search-button",
3507
3561
  onClick: (p) => {
3508
- p.preventDefault(), p.stopPropagation(), u("search", !o.search);
3562
+ p.preventDefault(), p.stopPropagation(), c("search", !o.search);
3509
3563
  },
3510
3564
  "aria-haspopup": "true",
3511
3565
  "aria-expanded": o.search,
@@ -3526,7 +3580,7 @@ const Or = { height: 67, height_desktop: 83 }, Xn = ({ showNavigation: e = !0 })
3526
3580
  id: "global-search",
3527
3581
  handleToggle: {
3528
3582
  searchIsOpen: o.search,
3529
- isDesktopVersion: c.search
3583
+ isDesktopVersion: l.search
3530
3584
  },
3531
3585
  gtmContext: "search-bar-header",
3532
3586
  gtmEvent: "form-submission"
@@ -3538,11 +3592,11 @@ const Or = { height: 67, height_desktop: 83 }, Xn = ({ showNavigation: e = !0 })
3538
3592
  className: "account-button",
3539
3593
  onClick: (p) => H.events.onClick(p, {
3540
3594
  id: "account",
3541
- callback: u,
3595
+ callback: c,
3542
3596
  isOpen: o.account
3543
3597
  }),
3544
- onMouseEnter: () => H.events.onMouseEnter({ id: "account", callback: u }),
3545
- onMouseLeave: () => H.events.onBlur({ id: "account", callback: u }),
3598
+ onMouseEnter: () => H.events.onMouseEnter({ id: "account", callback: c }),
3599
+ onMouseLeave: () => H.events.onBlur({ id: "account", callback: c }),
3546
3600
  "aria-haspopup": "true",
3547
3601
  "aria-expanded": o.account,
3548
3602
  "aria-controls": "navigation",
@@ -3568,8 +3622,8 @@ const Or = { height: 67, height_desktop: 83 }, Xn = ({ showNavigation: e = !0 })
3568
3622
  /* @__PURE__ */ s.jsx(
3569
3623
  "div",
3570
3624
  {
3571
- className: $("overlay", {
3572
- open: o.navigation || o.account || !c.search && o.search
3625
+ className: S("overlay", {
3626
+ open: o.navigation || o.account || !l.search && o.search
3573
3627
  })
3574
3628
  }
3575
3629
  )
@@ -3578,7 +3632,7 @@ const Or = { height: 67, height_desktop: 83 }, Xn = ({ showNavigation: e = !0 })
3578
3632
  const Zn = ({ element: e = "section", children: t, className: n, ...r }) => A.createElement(
3579
3633
  e,
3580
3634
  {
3581
- className: $("modal", n),
3635
+ className: S("modal", n),
3582
3636
  children: typeof t == "string" ? /* @__PURE__ */ s.jsx("p", { children: t }) : t,
3583
3637
  ...r
3584
3638
  }
@@ -3589,27 +3643,27 @@ const Kn = ({
3589
3643
  showDivider: n = !0,
3590
3644
  maxWidth: r,
3591
3645
  functions: { onOpen: i = () => {
3592
- }, onClose: c = () => {
3646
+ }, onClose: l = () => {
3593
3647
  } } = {},
3594
- forceShow: { error: d = !1 } = {},
3648
+ forceShow: { error: u = !1 } = {},
3595
3649
  title: a,
3596
- children: l,
3650
+ children: d,
3597
3651
  buttons: o,
3598
3652
  className: m = "",
3599
- gtmContext: u = "Modal"
3653
+ gtmContext: c = "Modal"
3600
3654
  }) => {
3601
- const h = D(), [p, g] = L(t), b = (E) => {
3602
- g(E), E ? (i(), document.body.classList.add("has-overlay")) : (c(), document.body.classList.remove("has-overlay"));
3655
+ const h = D(), [p, g] = L(t), x = (E) => {
3656
+ g(E), E ? (i(), document.body.classList.add("has-overlay")) : (l(), document.body.classList.remove("has-overlay"));
3603
3657
  };
3604
3658
  Y(() => {
3605
- b(t);
3659
+ x(t);
3606
3660
  }, [t]);
3607
3661
  const v = r ? { "--max-width": `${r / 16}rem` } : {};
3608
- return /* @__PURE__ */ s.jsx("div", { className: $("overlay", { open: p }), children: /* @__PURE__ */ s.jsx(
3662
+ return /* @__PURE__ */ s.jsx("div", { className: S("overlay", { open: p }), children: /* @__PURE__ */ s.jsx(
3609
3663
  Zn,
3610
3664
  {
3611
3665
  id: e,
3612
- className: $("overlay-modal", m, { "has-max-width": r }),
3666
+ className: S("overlay-modal", m, { "has-max-width": r }),
3613
3667
  hidden: !p,
3614
3668
  style: v,
3615
3669
  children: t && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
@@ -3621,39 +3675,39 @@ const Kn = ({
3621
3675
  variant: "tertiary",
3622
3676
  size: "medium",
3623
3677
  icon: { icon: "close" },
3624
- onClick: () => b(!1),
3678
+ onClick: () => x(!1),
3625
3679
  className: "gtm-trackable",
3626
3680
  "data-gtm-event-type": "close-modal-click",
3627
- "data-gtm-event-context": u,
3681
+ "data-gtm-event-context": c,
3628
3682
  screenreaderText: h.formatMessage({ id: "overlay_close" })
3629
3683
  }
3630
3684
  )
3631
3685
  ] }),
3632
3686
  n && /* @__PURE__ */ s.jsx(Ue, {}),
3633
- l,
3687
+ d,
3634
3688
  o && /* @__PURE__ */ s.jsxs("div", { className: "bottom", children: [
3635
3689
  /* @__PURE__ */ s.jsx(Ue, {}),
3636
3690
  /* @__PURE__ */ s.jsx(kt, { buttons: o })
3637
3691
  ] }),
3638
- d && /* @__PURE__ */ s.jsx(Xt, { className: "error", children: d })
3692
+ u && /* @__PURE__ */ s.jsx(Xt, { className: "error", children: u })
3639
3693
  ] })
3640
3694
  }
3641
3695
  ) });
3642
- }, Ir = (e, t) => ({
3696
+ }, Or = (e, t) => ({
3643
3697
  "aria-haspopup": !0,
3644
3698
  "aria-expanded": t,
3645
3699
  "aria-controls": e
3646
3700
  });
3647
- const ro = ({
3701
+ const ao = ({
3648
3702
  className: e,
3649
3703
  showModal: t = !0,
3650
3704
  title: n,
3651
3705
  formTitle: r = "Know someone who might like to join this workshop?",
3652
3706
  formLabel: i = "Invite your colleagues by typing or pasting their emails below.",
3653
- ctaMessage: c = "Send",
3654
- showIcon: d,
3707
+ ctaMessage: l = "Send",
3708
+ showIcon: u,
3655
3709
  onClose: a,
3656
- reportError: l = () => {
3710
+ reportError: d = () => {
3657
3711
  },
3658
3712
  sendInvites: o
3659
3713
  }) => /* @__PURE__ */ s.jsx(
@@ -3662,18 +3716,18 @@ const ro = ({
3662
3716
  title: n,
3663
3717
  isOpen: t,
3664
3718
  showDivider: !1,
3665
- showIcon: d,
3719
+ showIcon: u,
3666
3720
  functions: { onClose: a },
3667
- className: $("invite-modal", e, { success: !!n }),
3721
+ className: S("invite-modal", e, { success: !!n }),
3668
3722
  children: /* @__PURE__ */ s.jsx(
3669
3723
  Lr,
3670
3724
  {
3671
3725
  title: r,
3672
3726
  label: i,
3673
- ctaMessage: c,
3727
+ ctaMessage: l,
3674
3728
  onClose: a,
3675
3729
  sendInvites: o,
3676
- reportError: l
3730
+ reportError: d
3677
3731
  }
3678
3732
  )
3679
3733
  }
@@ -3696,28 +3750,28 @@ const Br = () => {
3696
3750
  additionalContent: { prepended: t, appended: n } = {},
3697
3751
  reportError: r,
3698
3752
  forceShow: i = {},
3699
- styling: c = {},
3700
- className: d = "",
3753
+ styling: l = {},
3754
+ className: u = "",
3701
3755
  locale: a = "en"
3702
3756
  }) => {
3703
- const { navigation: l = !0, footer: o = !0 } = i, { background: m = "default", variant: u = "default", circle: h = "default" } = c, p = Ls();
3757
+ const { navigation: d = !0, footer: o = !0 } = i, { background: m = "default", variant: c = "default", circle: h = "default" } = l, p = Ls();
3704
3758
  Y(() => {
3705
3759
  window.scrollTo(0, 0);
3706
3760
  }, [p]);
3707
- const g = ut(e, { locale: a }), b = ut(t, {
3761
+ const g = ut(e, { locale: a }), x = ut(t, {
3708
3762
  locale: a
3709
3763
  }), v = ut(n, {
3710
3764
  locale: a
3711
3765
  }), E = {};
3712
- return m !== "default" && (E[m] = !0), u !== "default" && (E[u] = !0), h !== "default" && (E[h] = !0), /* @__PURE__ */ s.jsx(Ts, { onError: r, fallback: /* @__PURE__ */ s.jsx(Br, {}), children: /* @__PURE__ */ s.jsx(_s, { fallback: null, children: /* @__PURE__ */ s.jsxs(
3766
+ return m !== "default" && (E[m] = !0), c !== "default" && (E[c] = !0), h !== "default" && (E[h] = !0), /* @__PURE__ */ s.jsx(Ts, { onError: r, fallback: /* @__PURE__ */ s.jsx(Br, {}), children: /* @__PURE__ */ s.jsx(_s, { fallback: null, children: /* @__PURE__ */ s.jsxs(
3713
3767
  "div",
3714
3768
  {
3715
3769
  id: "wrapper",
3716
- className: $(d, E, { "has-footer": o }),
3770
+ className: S(u, E, { "has-footer": o }),
3717
3771
  children: [
3718
- /* @__PURE__ */ s.jsx(Xn, { showNavigation: l }),
3772
+ /* @__PURE__ */ s.jsx(Xn, { showNavigation: d }),
3719
3773
  /* @__PURE__ */ s.jsxs("section", { id: "content-wrapper", children: [
3720
- b && /* @__PURE__ */ s.jsx("div", { className: "additional-content prepended", children: b }),
3774
+ x && /* @__PURE__ */ s.jsx("div", { className: "additional-content prepended", children: x }),
3721
3775
  A.createElement(m === "bold" ? Zn : "div", {
3722
3776
  id: "content",
3723
3777
  children: g
@@ -3760,55 +3814,55 @@ const Br = () => {
3760
3814
  return Qt[e] ? (e = Qt[e], { id: e, text: `${yn.default}${e}` }) : null;
3761
3815
  }
3762
3816
  };
3763
- const ao = ({
3817
+ const oo = ({
3764
3818
  tags: e = [],
3765
3819
  color: t = "default",
3766
3820
  forceOneLine: n = !1,
3767
3821
  canHaveLinks: r = !0,
3768
3822
  className: i = "",
3769
- gtmType: c = "tag-click",
3770
- gtmContext: d = "tags"
3823
+ gtmType: l = "tag-click",
3824
+ gtmContext: u = "tags"
3771
3825
  }) => {
3772
3826
  const a = D();
3773
3827
  if (!e || e.length < 1)
3774
3828
  return null;
3775
- const l = [];
3829
+ const d = [];
3776
3830
  return e.forEach((o) => {
3777
3831
  if (!o)
3778
3832
  return;
3779
3833
  const m = Hr.getTagDetails(o);
3780
- m && l.push(m);
3781
- }), l.length < 1 ? null : /* @__PURE__ */ s.jsx("ul", { className: $("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) => {
3782
3836
  const m = a.formatMessage({ id: o.text });
3783
3837
  return /* @__PURE__ */ s.jsx("li", { children: o.href && r ? /* @__PURE__ */ s.jsx(
3784
3838
  "a",
3785
3839
  {
3786
3840
  href: o.href,
3787
3841
  className: "gtm-trackable",
3788
- "data-gtm-event-type": c,
3789
- "data-gtm-event-context": d,
3842
+ "data-gtm-event-type": l,
3843
+ "data-gtm-event-context": u,
3790
3844
  children: m
3791
3845
  }
3792
3846
  ) : m }, o.id);
3793
3847
  }) });
3794
3848
  };
3795
- const oo = ({
3849
+ const io = ({
3796
3850
  members: { total: e, data: t = [] },
3797
3851
  pagination: n,
3798
3852
  gtmContext: r = "member",
3799
3853
  gtmType: i = "member-click",
3800
- className: c = ""
3854
+ className: l = ""
3801
3855
  }) => {
3802
- const d = D();
3803
- return t.length === 0 ? null : (e || (e = t.length), /* @__PURE__ */ s.jsxs("div", { className: $("members-list", c), 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: [
3804
3858
  /* @__PURE__ */ s.jsxs("h1", { children: [
3805
- d.formatMessage({ id: "membersList" }),
3859
+ u.formatMessage({ id: "membersList" }),
3806
3860
  /* @__PURE__ */ s.jsx("span", { className: "count", children: e })
3807
3861
  ] }),
3808
- /* @__PURE__ */ s.jsx("ul", { children: t.map((a, l) => /* @__PURE__ */ s.jsxs("li", { children: [
3862
+ /* @__PURE__ */ s.jsx("ul", { children: t.map((a, d) => /* @__PURE__ */ s.jsxs("li", { children: [
3809
3863
  /* @__PURE__ */ s.jsx(tn, { member: a, gtmContext: r, gtmType: i }),
3810
- a.isAdmin && /* @__PURE__ */ s.jsx(ft, { children: d.formatMessage({ id: "membersList_admin" }) })
3811
- ] }, l)) }),
3864
+ a.isAdmin && /* @__PURE__ */ s.jsx(ft, { children: u.formatMessage({ id: "membersList_admin" }) })
3865
+ ] }, d)) }),
3812
3866
  n && /* @__PURE__ */ s.jsx(
3813
3867
  yr,
3814
3868
  {
@@ -3831,8 +3885,8 @@ const ve = "discussion_form_", qn = ({
3831
3885
  },
3832
3886
  inputRef: r,
3833
3887
  maxLength: i = 5e4,
3834
- minRows: c = 4,
3835
- forceShow: d = {
3888
+ minRows: l = 4,
3889
+ forceShow: u = {
3836
3890
  cancel: !1,
3837
3891
  error: !1
3838
3892
  },
@@ -3849,12 +3903,12 @@ const ve = "discussion_form_", qn = ({
3849
3903
  create: { projectNames: ["questions-answers"] }
3850
3904
  }
3851
3905
  },
3852
- gtmContext: l = "DiscussionForm"
3906
+ gtmContext: d = "DiscussionForm"
3853
3907
  }) => {
3854
3908
  var P, G;
3855
- const o = D(), m = je($e), [u, h] = L(
3909
+ const o = D(), m = je($e), [c, h] = L(
3856
3910
  n.isEditing && n.isEditing.text || ""
3857
- ), [p, g] = L(d.error || !1), [b, v] = L(!1), E = de(null);
3911
+ ), [p, g] = L(u.error || !1), [x, v] = L(!1), E = de(null);
3858
3912
  if (r || (r = E), n.isLoading)
3859
3913
  return /* @__PURE__ */ s.jsx(
3860
3914
  Se,
@@ -3863,8 +3917,8 @@ const ve = "discussion_form_", qn = ({
3863
3917
  "data-testid": "loading-placeholder"
3864
3918
  }
3865
3919
  );
3866
- const k = (x) => {
3867
- const K = x.target.value;
3920
+ const k = (b) => {
3921
+ const K = b.target.value;
3868
3922
  h(K);
3869
3923
  let j;
3870
3924
  !m || !m.id ? j = Te(
@@ -3881,12 +3935,12 @@ const ve = "discussion_form_", qn = ({
3881
3935
  };
3882
3936
  let _ = `${e.type}-form`;
3883
3937
  if (e.type === "response" || e.type === "reply") {
3884
- const x = e.type === "response" ? ((P = e.slugs) == null ? void 0 : P.question) || "" : ((G = e.slugs) == null ? void 0 : G.answer) || "";
3885
- x && (_ = `${_}-${x.slice(-15)}`);
3938
+ const b = e.type === "response" ? ((P = e.slugs) == null ? void 0 : P.question) || "" : ((G = e.slugs) == null ? void 0 : G.answer) || "";
3939
+ b && (_ = `${_}-${b.slice(-15)}`);
3886
3940
  }
3887
- const T = async (x) => {
3941
+ const T = async (b) => {
3888
3942
  var j;
3889
- if (x.preventDefault(), x.stopPropagation(), !m || !m.id || !t || R)
3943
+ if (b.preventDefault(), b.stopPropagation(), !m || !m.id || !t || R)
3890
3944
  return;
3891
3945
  ct && clearTimeout(ct), v("submitting");
3892
3946
  const K = window.location.pathname;
@@ -3894,11 +3948,11 @@ const ve = "discussion_form_", qn = ({
3894
3948
  let w;
3895
3949
  switch (e.type) {
3896
3950
  case "post":
3897
- w = await a.create({ content: u });
3951
+ w = await a.create({ content: c });
3898
3952
  break;
3899
3953
  case "question":
3900
3954
  w = await a.create({
3901
- title: u,
3955
+ title: c,
3902
3956
  authorId: m && m.id,
3903
3957
  ...(j = a.props) == null ? void 0 : j.create
3904
3958
  });
@@ -3906,13 +3960,13 @@ const ve = "discussion_form_", qn = ({
3906
3960
  case "response":
3907
3961
  w = await a.create(
3908
3962
  { question: e.slugs.question },
3909
- { body: u, authorId: m && m.id, contentPath: K }
3963
+ { body: c, authorId: m && m.id, contentPath: K }
3910
3964
  );
3911
3965
  break;
3912
3966
  case "reply":
3913
3967
  w = await a.create(
3914
3968
  { question: e.slugs.question, answer: e.slugs.answer },
3915
- { body: u, authorId: m && m.id, contentPath: K }
3969
+ { body: c, authorId: m && m.id, contentPath: K }
3916
3970
  );
3917
3971
  break;
3918
3972
  default:
@@ -3940,33 +3994,33 @@ const ve = "discussion_form_", qn = ({
3940
3994
  ct = setTimeout(() => {
3941
3995
  g(!1), v(!1);
3942
3996
  }, 5e3);
3943
- }, R = !u || !Gs(u), V = b === "submitting", N = [];
3944
- return (n.isEditing && !V || d.cancel) && N.push({
3997
+ }, R = !c || !Gs(c), V = x === "submitting", N = [];
3998
+ return (n.isEditing && !V || u.cancel) && N.push({
3945
3999
  variant: "secondary",
3946
4000
  size: { mobile: "small", 600: "medium" },
3947
4001
  onClick: a.handleCancel,
3948
4002
  className: "gtm-trackable",
3949
- "data-gtm-event-context": l,
4003
+ "data-gtm-event-context": d,
3950
4004
  "data-gtm-event-type": `cancel-${e.type}-click`,
3951
- disabled: !d.cancel && (!m || !m.id || !u),
4005
+ disabled: !u.cancel && (!m || !m.id || !c),
3952
4006
  children: o.formatMessage({ id: `${ve}cancel` })
3953
4007
  }), N.push({
3954
4008
  variant: "primary",
3955
4009
  size: { mobile: "small", 600: "medium" },
3956
- onClick: (x) => {
4010
+ onClick: (b) => {
3957
4011
  if (n.isEditing) {
3958
4012
  v("submitting"), a.handleSaveEdit && a.handleSaveEdit(
3959
4013
  E.current && "value" in E.current ? E.current.value : ""
3960
4014
  );
3961
4015
  return;
3962
4016
  }
3963
- T(x);
4017
+ T(b);
3964
4018
  },
3965
4019
  className: "gtm-trackable",
3966
- "data-gtm-event-context": l,
4020
+ "data-gtm-event-context": d,
3967
4021
  "data-gtm-event-type": `${n.isEditing ? "save" : "submit"}-${e.type}-click`,
3968
4022
  "data-testid": "save-button",
3969
- disabled: !m || !m.id || !t || R || V || n.isEditing && u === n.isEditing.text,
4023
+ disabled: !m || !m.id || !t || R || V || n.isEditing && c === n.isEditing.text,
3970
4024
  children: o.formatMessage({
3971
4025
  id: `${ve}${V ? n.isEditing ? "saving" : "posting" : n.isEditing ? "save" : "post"}`
3972
4026
  })
@@ -3974,7 +4028,7 @@ const ve = "discussion_form_", qn = ({
3974
4028
  "form",
3975
4029
  {
3976
4030
  id: _,
3977
- className: $("discussion-card discussion-form", {
4031
+ className: S("discussion-card discussion-form", {
3978
4032
  "no-styling": n.isInWrapper && n.isEditing
3979
4033
  }),
3980
4034
  "data-testid": `discussion-${e.type}-form`,
@@ -3984,7 +4038,7 @@ const ve = "discussion_form_", qn = ({
3984
4038
  tn,
3985
4039
  {
3986
4040
  member: m || "community",
3987
- gtmContext: l,
4041
+ gtmContext: d,
3988
4042
  gtmType: "profile-click"
3989
4043
  }
3990
4044
  ),
@@ -4002,31 +4056,31 @@ const ve = "discussion_form_", qn = ({
4002
4056
  "action"
4003
4057
  ),
4004
4058
  onChange: k,
4005
- value: u,
4059
+ value: c,
4006
4060
  maxLength: i,
4007
4061
  "aria-invalid": !!p,
4008
4062
  "aria-errormessage": "error-message",
4009
- minRows: c,
4063
+ minRows: l,
4010
4064
  autoFocus: !!n.isEditing
4011
4065
  }
4012
4066
  ),
4013
4067
  /* @__PURE__ */ s.jsx("small", { children: Te(o.formatMessage, `${ve}explainer`, e.type, "action", {
4014
- a: (x) => /* @__PURE__ */ s.jsx(
4068
+ a: (b) => /* @__PURE__ */ s.jsx(
4015
4069
  "a",
4016
4070
  {
4017
4071
  href: "https://about.apolitical.co/q-and-a-community-guidelines",
4018
4072
  target: "_blank",
4019
4073
  className: "gtm-trackable",
4020
- "data-gtm-event-context": l,
4074
+ "data-gtm-event-context": d,
4021
4075
  "data-gtm-event-type": "community-guidelines-link",
4022
4076
  rel: "noreferrer",
4023
- children: x
4077
+ children: b
4024
4078
  }
4025
4079
  )
4026
4080
  }) }),
4027
4081
  /* @__PURE__ */ s.jsx(kt, { buttons: N }),
4028
- b === "submitted" && /* @__PURE__ */ s.jsx(Xt, { className: "success", "data-testid": "success", children: Te(o.formatMessage, `${ve}success`, e.type, "action") }),
4029
- p && /* @__PURE__ */ s.jsx(Xt, { id: "error-message", className: "error", "data-testid": "error", children: d.error ? d.error : typeof p == "string" ? p.includes(" ") ? p : o.formatMessage(
4082
+ x === "submitted" && /* @__PURE__ */ s.jsx(Xt, { className: "success", "data-testid": "success", children: Te(o.formatMessage, `${ve}success`, e.type, "action") }),
4083
+ p && /* @__PURE__ */ s.jsx(Xt, { id: "error-message", className: "error", "data-testid": "error", children: u.error ? u.error : typeof p == "string" ? p.includes(" ") ? p : o.formatMessage(
4030
4084
  { id: p },
4031
4085
  {
4032
4086
  action: o.formatMessage({
@@ -4041,14 +4095,14 @@ const ve = "discussion_form_", qn = ({
4041
4095
  }, nn = ({
4042
4096
  contentType: e,
4043
4097
  createPost: t,
4044
- membershipRequiredToPost: { isMember: n, required: r, join: i, leave: c, notMemberStateText: d }
4098
+ membershipRequiredToPost: { isMember: n, required: r, join: i, leave: l, notMemberStateText: u }
4045
4099
  }) => r && !n ? /* @__PURE__ */ s.jsx(
4046
4100
  yt,
4047
4101
  {
4048
- text: d,
4102
+ text: u,
4049
4103
  button: {
4050
4104
  breakpoints: { mobile: !0, 901: !1 },
4051
- component: /* @__PURE__ */ s.jsx(Wn, { isShort: !0, functions: { join: i, leave: c } })
4105
+ component: /* @__PURE__ */ s.jsx(Wn, { isShort: !0, functions: { join: i, leave: l } })
4052
4106
  }
4053
4107
  }
4054
4108
  ) : /* @__PURE__ */ s.jsx(
@@ -4086,42 +4140,42 @@ const Ht = () => {
4086
4140
  peopleWhoLiked: n = !1,
4087
4141
  isShort: r = !0,
4088
4142
  userLiked: i = !1,
4089
- content: c = { type: "reply", slugs: {} },
4090
- canLike: d = !0,
4143
+ content: l = { type: "reply", slugs: {} },
4144
+ canLike: u = !0,
4091
4145
  functions: { createLike: a = () => {
4092
- }, deleteLike: l = () => {
4146
+ }, deleteLike: d = () => {
4093
4147
  } } = {}
4094
4148
  }) => {
4095
4149
  const o = D();
4096
4150
  Y(() => {
4097
4151
  p(i);
4098
4152
  }, [i]);
4099
- const [m, u] = L(t), [h, p] = L(i), [g, b] = L(!1), [v, E] = L(!1), k = xt(() => Vr(n, Ut), [n]), _ = (C) => {
4153
+ const [m, c] = L(t), [h, p] = L(i), [g, x] = L(!1), [v, E] = L(!1), k = xt(() => Vr(n, Ut), [n]), _ = (C) => {
4100
4154
  if (C.preventDefault(), C.stopPropagation(), E(!1), Ke)
4101
4155
  return Ht(), !1;
4102
- if (Ht(), g || !d)
4156
+ if (Ht(), g || !u)
4103
4157
  return !1;
4104
4158
  Ke = setTimeout(T, 350);
4105
4159
  }, T = async () => {
4106
- if (Ht(), g || !d)
4160
+ if (Ht(), g || !u)
4107
4161
  return !1;
4108
4162
  let C = h ? m - 1 : m + 1;
4109
- C < 0 && (C = 0), b(!0), u(C), p(!h);
4163
+ C < 0 && (C = 0), x(!0), c(C), p(!h);
4110
4164
  try {
4111
- if (c && c.slugs) {
4112
- const R = zr(c.slugs);
4113
- h ? await l(R) : await a(R, { contentPath: window.location.pathname });
4165
+ if (l && l.slugs) {
4166
+ const R = zr(l.slugs);
4167
+ h ? await d(R) : await a(R, { contentPath: window.location.pathname });
4114
4168
  }
4115
4169
  } catch {
4116
- u(t), p(i);
4170
+ c(t), p(i);
4117
4171
  } finally {
4118
- b(!1);
4172
+ x(!1);
4119
4173
  }
4120
4174
  };
4121
4175
  return A.createElement(
4122
4176
  e,
4123
4177
  {
4124
- className: $("likes-wrapper text-medium action-button", { "show-spinner": g, "is-liked": h, disabled: !d }),
4178
+ className: S("likes-wrapper text-medium action-button", { "show-spinner": g, "is-liked": h, disabled: !u }),
4125
4179
  onClick: _,
4126
4180
  onMouseEnter: () => {
4127
4181
  E(!0);
@@ -4142,19 +4196,19 @@ const Ht = () => {
4142
4196
  variant: "tertiary",
4143
4197
  size: "medium",
4144
4198
  icon: { icon: h ? "heart" : "heart_empty", animate: "bounce" },
4145
- className: $({ "do-animation": h && !i }),
4146
- screenreaderText: d ? o.formatMessage({
4199
+ className: S({ "do-animation": h && !i }),
4200
+ screenreaderText: u ? o.formatMessage({
4147
4201
  id: `discussion_likes_${h ? "unlike" : "like"}`
4148
- }, { action: o.formatMessage({ id: `discussion_action_${c.type}` }) }) : !1,
4202
+ }, { action: o.formatMessage({ id: `discussion_action_${l.type}` }) }) : !1,
4149
4203
  onClick: _,
4150
- disabled: !d,
4151
- "aria-hidden": !d,
4204
+ disabled: !u,
4205
+ "aria-hidden": !u,
4152
4206
  "data-testid": "like-button",
4153
4207
  "data-gtm-event-context": "Likes",
4154
- "data-gtm-event-type": `like-${c.type}-click`
4208
+ "data-gtm-event-type": `like-${l.type}-click`
4155
4209
  }
4156
4210
  ),
4157
- /* @__PURE__ */ s.jsx("span", { className: $("number-of-likes", { "no-likes": m === 0 }), "data-testid": "number-of-likes", children: o.formatMessage({ id: `discussion_likes${r ? "_short" : ""}` }, { number: m }) }),
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 }) }),
4158
4212
  n && /* @__PURE__ */ s.jsx(qs, { isOpen: v, isLoading: n.length === 0, children: n.length && /* @__PURE__ */ s.jsxs("ul", { children: [
4159
4213
  k.map((C) => typeof C == "string" || !C.name ? null : /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(
4160
4214
  jt,
@@ -4182,7 +4236,7 @@ const De = "discussion_", Gr = 280, St = ({
4182
4236
  isLoading: r = !1,
4183
4237
  originalAuthorId: i,
4184
4238
  functions: {
4185
- content: { createContent: c, deleteContent: d, updateContent: a } = {
4239
+ content: { createContent: l, deleteContent: u, updateContent: a } = {
4186
4240
  createContent: () => {
4187
4241
  },
4188
4242
  deleteContent: () => {
@@ -4190,17 +4244,17 @@ const De = "discussion_", Gr = 280, St = ({
4190
4244
  updateContent: () => {
4191
4245
  }
4192
4246
  },
4193
- likes: { createLike: l, deleteLike: o } = { createLike: () => {
4247
+ likes: { createLike: d, deleteLike: o } = { createLike: () => {
4194
4248
  }, deleteLike: () => {
4195
4249
  } },
4196
4250
  comments: { openComments: m } = { openComments: () => {
4197
4251
  } }
4198
4252
  },
4199
- links: u = {},
4253
+ links: c = {},
4200
4254
  className: h,
4201
4255
  gtmContext: p = "DiscussionAnswer",
4202
4256
  children: g,
4203
- isTruncated: b = !1
4257
+ isTruncated: x = !1
4204
4258
  }) => {
4205
4259
  const v = D(), E = je($e), k = je(Et), [_, T] = L({
4206
4260
  body: t && t.body || "",
@@ -4215,14 +4269,14 @@ const De = "discussion_", Gr = 280, St = ({
4215
4269
  });
4216
4270
  }, [t.isEdited]), r || !t || t.type === "answer" && (!t.slugs || !t.slugs.question))
4217
4271
  return /* @__PURE__ */ s.jsx(Se, { className: "discussion-card discussion-post" });
4218
- const { author: P, canLike: G, createdAt: x, id: K, likes: j = 0, userLiked: w, comments: z = 0 } = t, X = b ? Qe(_.body, Gr) : _.body, se = E && E.id && typeof P != "string" && P.id && P.id === E.id || !1, re = typeof G == "boolean" ? G : n ? !se : !1, ae = async (O) => {
4219
- O || (O = ""), N("");
4272
+ const { author: P, canLike: G, createdAt: b, id: K, likes: j = 0, userLiked: w, comments: z = 0 } = t, X = x ? Qe(_.body, Gr) : _.body, se = E && E.id && typeof P != "string" && P.id && P.id === E.id || !1, re = typeof G == "boolean" ? G : n ? !se : !1, ae = async (I) => {
4273
+ I || (I = ""), N("");
4220
4274
  try {
4221
- if (!Ns(O, _.body)) {
4222
- const oe = t.type === "question" ? { title: O } : { body: O };
4275
+ if (!Ns(I, _.body)) {
4276
+ const oe = t.type === "question" ? { title: I } : { body: I };
4223
4277
  await a(En(t.slugs), oe);
4224
4278
  }
4225
- T({ body: O, isEditing: !1, didEdit: !0 });
4279
+ T({ body: I, isEditing: !1, didEdit: !0 });
4226
4280
  } catch {
4227
4281
  N(`${De}form_error`);
4228
4282
  }
@@ -4234,7 +4288,7 @@ const De = "discussion_", Gr = 280, St = ({
4234
4288
  }, fe = () => {
4235
4289
  R(!1);
4236
4290
  try {
4237
- d(En(t.slugs));
4291
+ u(En(t.slugs));
4238
4292
  } catch {
4239
4293
  N("delete-error");
4240
4294
  }
@@ -4267,36 +4321,36 @@ const De = "discussion_", Gr = 280, St = ({
4267
4321
  },
4268
4322
  {
4269
4323
  text: v.formatMessage({ id: `${De}moreMenu_delete` }),
4270
- onClick: (O) => {
4271
- O.preventDefault(), O.stopPropagation(), R(!0);
4324
+ onClick: (I) => {
4325
+ I.preventDefault(), I.stopPropagation(), R(!0);
4272
4326
  },
4273
4327
  icon: "trash",
4274
4328
  className: "gtm-trackable",
4275
4329
  "data-gtm-event-context": p,
4276
4330
  "data-gtm-event-type": `delete-${t.type}-click`,
4277
- ...Ir(`delete-${t.slug}-modal`, C)
4331
+ ...Or(`delete-${t.slug}-modal`, C)
4278
4332
  }
4279
4333
  ), A.createElement(e, {
4280
- className: $("discussion-post", h),
4334
+ className: S("discussion-post", h),
4281
4335
  "data-testid": `discussion-${t.type}-thread`,
4282
4336
  children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
4283
4337
  /* @__PURE__ */ s.jsxs(
4284
4338
  "div",
4285
4339
  {
4286
4340
  id: K || t.slug,
4287
- className: $("discussion-card", t.type, {
4341
+ className: S("discussion-card", t.type, {
4288
4342
  editing: _.isEditing,
4289
- "has-link": u.post && !_.isEditing
4343
+ "has-link": c.post && !_.isEditing
4290
4344
  }),
4291
- onClick: (O) => {
4292
- !u.post || _.isEditing || (O.preventDefault(), O.stopPropagation(), window.location.href = u.post);
4345
+ onClick: (I) => {
4346
+ !c.post || _.isEditing || (I.preventDefault(), I.stopPropagation(), window.location.href = c.post);
4293
4347
  },
4294
4348
  children: [
4295
4349
  !_.isEditing && /* @__PURE__ */ s.jsx(
4296
4350
  tn,
4297
4351
  {
4298
4352
  member: P,
4299
- additionalContent: { createdAt: x, didEdit: _.didEdit },
4353
+ additionalContent: { createdAt: b, didEdit: _.didEdit },
4300
4354
  className: typeof P != "string" && P.id === i ? "highlighted" : "",
4301
4355
  gtmContext: p,
4302
4356
  gtmType: "profile-click"
@@ -4324,7 +4378,7 @@ const De = "discussion_", Gr = 280, St = ({
4324
4378
  ) : !1
4325
4379
  },
4326
4380
  functions: {
4327
- create: c,
4381
+ create: l,
4328
4382
  handleSaveEdit: ae,
4329
4383
  handleCancel: () => {
4330
4384
  N(""), T({ ..._, isEditing: !1 });
@@ -4332,10 +4386,10 @@ const De = "discussion_", Gr = 280, St = ({
4332
4386
  },
4333
4387
  gtmContext: `${p}Form`
4334
4388
  }
4335
- ) : u.post ? /* @__PURE__ */ s.jsx(
4389
+ ) : c.post ? /* @__PURE__ */ s.jsx(
4336
4390
  "a",
4337
4391
  {
4338
- href: u.post,
4392
+ href: c.post,
4339
4393
  className: "gtm-trackable",
4340
4394
  "data-gtm-event-context": p,
4341
4395
  "data-gtm-event-type": "title-click",
@@ -4356,7 +4410,7 @@ const De = "discussion_", Gr = 280, St = ({
4356
4410
  !_.isEditing && /* @__PURE__ */ s.jsxs(
4357
4411
  "ul",
4358
4412
  {
4359
- className: $("actions text-medium", t.type),
4413
+ className: S("actions text-medium", t.type),
4360
4414
  "data-testid": `${t.type}-actions`,
4361
4415
  children: [
4362
4416
  /* @__PURE__ */ s.jsx(
@@ -4370,17 +4424,17 @@ const De = "discussion_", Gr = 280, St = ({
4370
4424
  canLike: re,
4371
4425
  peopleWhoLiked: t.peopleWhoLiked,
4372
4426
  functions: {
4373
- createLike: l,
4427
+ createLike: d,
4374
4428
  deleteLike: o
4375
4429
  }
4376
4430
  }
4377
4431
  ),
4378
- (["question", "post"].includes(t.type) || u.comments || typeof m == "function") && /* @__PURE__ */ s.jsxs(
4432
+ (["question", "post"].includes(t.type) || c.comments || typeof m == "function") && /* @__PURE__ */ s.jsxs(
4379
4433
  "li",
4380
4434
  {
4381
4435
  className: "action-button",
4382
- onClick: (O) => {
4383
- O.preventDefault(), O.stopPropagation(), u.comments && (window.location.href = u.comments), typeof m == "function" && m();
4436
+ onClick: (I) => {
4437
+ I.preventDefault(), I.stopPropagation(), c.comments && (window.location.href = c.comments), typeof m == "function" && m();
4384
4438
  },
4385
4439
  children: [
4386
4440
  /* @__PURE__ */ s.jsx(
@@ -4390,8 +4444,8 @@ const De = "discussion_", Gr = 280, St = ({
4390
4444
  size: "medium",
4391
4445
  styling: { muted: !0 },
4392
4446
  icon: { icon: "speech-bubble_square_thick" },
4393
- href: u.comments ? u.comments : !1,
4394
- onClick: u.comments || typeof m != "function" ? !1 : m,
4447
+ href: c.comments ? c.comments : !1,
4448
+ onClick: c.comments || typeof m != "function" ? !1 : m,
4395
4449
  className: "gtm-trackable",
4396
4450
  "data-gtm-event-context": p,
4397
4451
  "data-gtm-event-type": `answer-${t.type}-click`,
@@ -4473,7 +4527,7 @@ const De = "discussion_", Gr = 280, St = ({
4473
4527
  {
4474
4528
  id: "discussion_delete_text",
4475
4529
  values: {
4476
- p: (O) => /* @__PURE__ */ s.jsx("p", { children: O }),
4530
+ p: (I) => /* @__PURE__ */ s.jsx("p", { children: I }),
4477
4531
  action: v.formatMessage({
4478
4532
  id: `discussion_action_${t.type}`
4479
4533
  })
@@ -4485,7 +4539,7 @@ const De = "discussion_", Gr = 280, St = ({
4485
4539
  ] })
4486
4540
  });
4487
4541
  };
4488
- const Wt = "discussion_responses_", io = ({ type: e = "answer", responses: t = 0 }) => {
4542
+ const Wt = "discussion_responses_", co = ({ type: e = "answer", responses: t = 0 }) => {
4489
4543
  const n = D();
4490
4544
  return /* @__PURE__ */ s.jsxs("div", { className: "responses-heading", children: [
4491
4545
  /* @__PURE__ */ s.jsx("h3", { children: n.formatMessage({ id: `${Wt}title` }, { action: n.formatMessage({ id: `${Wt}${e}` }), count: t }) }),
@@ -4493,38 +4547,38 @@ const Wt = "discussion_responses_", io = ({ type: e = "answer", responses: t = 0
4493
4547
  ] });
4494
4548
  };
4495
4549
  const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4496
- const r = D(), i = de(null), c = je(Et), [d, a] = L(
4550
+ const r = D(), i = de(null), l = je(Et), [u, a] = L(
4497
4551
  "closed"
4498
4552
  /* Closed */
4499
4553
  );
4500
4554
  Y(() => {
4501
- const u = i.current;
4502
- if (u)
4503
- return u.addEventListener("transitionend", l), () => {
4504
- u.removeEventListener("transitionend", l);
4555
+ const c = i.current;
4556
+ if (c)
4557
+ return c.addEventListener("transitionend", d), () => {
4558
+ c.removeEventListener("transitionend", d);
4505
4559
  };
4506
4560
  }, []), He(() => {
4507
- d === "closed" && !c.showThread || a(
4561
+ u === "closed" && !l.showThread || a(
4508
4562
  [
4509
4563
  "opening",
4510
4564
  "open"
4511
4565
  /* Open */
4512
- ].includes(d) ? "ready-to-close" : "opening"
4566
+ ].includes(u) ? "ready-to-close" : "opening"
4513
4567
  /* Opening */
4514
4568
  );
4515
- }, [c.showThread]), Y(() => {
4516
- d === "ready-to-close" && a(
4569
+ }, [l.showThread]), Y(() => {
4570
+ u === "ready-to-close" && a(
4517
4571
  "closing"
4518
4572
  /* Closing */
4519
4573
  );
4520
- }, [d]);
4521
- const l = ({ propertyName: u }) => {
4522
- u === "max-height" && a((h) => h === "opening" ? "open" : h === "closing" ? "closed" : h);
4574
+ }, [u]);
4575
+ const d = ({ propertyName: c }) => {
4576
+ c === "max-height" && a((h) => h === "opening" ? "open" : h === "closing" ? "closed" : h);
4523
4577
  }, o = [
4524
4578
  "opening",
4525
4579
  "open"
4526
4580
  /* Open */
4527
- ].includes(d), m = ut(n, {
4581
+ ].includes(u), m = ut(n, {
4528
4582
  element: "li"
4529
4583
  });
4530
4584
  return /* @__PURE__ */ s.jsxs("div", { className: "thread-wrapper", children: [
@@ -4536,8 +4590,8 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4536
4590
  styling: { muted: !0 },
4537
4591
  icon: { icon: `arrow_corner-down_${o ? "left" : "right"}` },
4538
4592
  onClick: () => {
4539
- var u;
4540
- (u = c.updateConversation) == null || u.call(c, (h) => ({
4593
+ var c;
4594
+ (c = l.updateConversation) == null || c.call(l, (h) => ({
4541
4595
  showThread: !h.showThread,
4542
4596
  showForm: !1
4543
4597
  }));
@@ -4552,8 +4606,8 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4552
4606
  "ul",
4553
4607
  {
4554
4608
  ref: i,
4555
- className: $("thread", d),
4556
- hidden: !c.showThread,
4609
+ className: S("thread", u),
4610
+ hidden: !l.showThread,
4557
4611
  children: m
4558
4612
  }
4559
4613
  )
@@ -4587,11 +4641,11 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4587
4641
  }) => ({ mutationFn: r, onMutate: async ({ content: a }) => {
4588
4642
  if (!n)
4589
4643
  return;
4590
- const l = Xr({ user: n, content: a, verb: "post" });
4644
+ const d = Xr({ user: n, content: a, verb: "post" });
4591
4645
  await e.cancelQueries({ queryKey: t });
4592
4646
  const o = e.getQueryData(t);
4593
- return e.setQueryData(t, (m) => [...m, l]), { previousActivities: o };
4594
- }, onError: (a, l, o) => {
4647
+ return e.setQueryData(t, (m) => [...m, d]), { previousActivities: o };
4648
+ }, onError: (a, d, o) => {
4595
4649
  e.setQueryData(t, o.previousActivities);
4596
4650
  }, onSettled: () => {
4597
4651
  e.invalidateQueries({ queryKey: t });
@@ -4602,17 +4656,17 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4602
4656
  }) => ({
4603
4657
  mutationFn: n,
4604
4658
  onMutate: async ({
4605
- activityInfo: d,
4659
+ activityInfo: u,
4606
4660
  content: { body: a }
4607
4661
  }) => {
4608
4662
  if (a.length === 0)
4609
4663
  return;
4610
4664
  await e.cancelQueries({ queryKey: t });
4611
- const l = e.getQueryData(t), o = l == null ? void 0 : l.map((m) => ((m == null ? void 0 : m.id) === (d == null ? void 0 : d.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));
4612
4666
  return e.setQueryData(t, () => o && [...o]), { previousActivities: o };
4613
4667
  },
4614
- onError: (d, a, l) => {
4615
- e.setQueryData(t, l.previousActivities);
4668
+ onError: (u, a, d) => {
4669
+ e.setQueryData(t, d.previousActivities);
4616
4670
  },
4617
4671
  onSettled: () => {
4618
4672
  e.invalidateQueries({ queryKey: t });
@@ -4621,17 +4675,17 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4621
4675
  queryClient: e,
4622
4676
  queryKey: t,
4623
4677
  mutationFn: n
4624
- }) => ({ mutationFn: n, onMutate: async ({ activityId: d }) => {
4678
+ }) => ({ mutationFn: n, onMutate: async ({ activityId: u }) => {
4625
4679
  await e.cancelQueries({ queryKey: t });
4626
- const a = e.getQueryData(t), l = a == null ? void 0 : a.filter(
4627
- (o) => (o == null ? void 0 : o.id) !== d
4680
+ const a = e.getQueryData(t), d = a == null ? void 0 : a.filter(
4681
+ (o) => (o == null ? void 0 : o.id) !== u
4628
4682
  );
4629
- return e.setQueryData(t, () => l && [...l]), { previousActivities: l };
4630
- }, onError: (d, a, l) => {
4631
- e.setQueryData(t, l.previousActivities);
4632
- }, onSettled: (d, 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) => {
4633
4687
  e.invalidateQueries({
4634
- queryKey: [...t, l.activityId]
4688
+ queryKey: [...t, d.activityId]
4635
4689
  });
4636
4690
  } }), ea = ({
4637
4691
  queryClient: e,
@@ -4639,20 +4693,20 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4639
4693
  mutationFn: n
4640
4694
  }) => ({ mutationFn: n, onMutate: async ({ activityId: a }) => {
4641
4695
  await e.cancelQueries({ queryKey: t });
4642
- const l = e.getQueryData(t), o = l == null ? void 0 : l.map((m) => {
4643
- var u;
4644
- return (m == null ? void 0 : m.id) === a && ((u = m.reaction_counts) != null && u.like ? m.reaction_counts.like += 1 : m.reaction_counts.like = 1), m;
4696
+ const d = e.getQueryData(t), o = d == null ? void 0 : d.map((m) => {
4697
+ var c;
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;
4645
4699
  });
4646
4700
  return e.setQueryData(t, () => o && [...o]), { previousActivities: o };
4647
- }, onError: (a, l, o) => {
4701
+ }, onError: (a, d, o) => {
4648
4702
  e.setQueryData(t, o.previousActivities);
4649
4703
  }, onSuccess: (a) => {
4650
- const l = e.getQueryData(t), o = l == null ? void 0 : l.map((m) => {
4651
- var u, h;
4652
- return (m == null ? void 0 : m.id) === (a == null ? void 0 : a.activity_id) && ((u = m.own_reactions) != null && u.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
+ const d = e.getQueryData(t), o = d == null ? void 0 : d.map((m) => {
4705
+ var c, h;
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;
4653
4707
  });
4654
- return e.setQueryData(t, () => o && [...o]), { previousActivities: l };
4655
- }, onSettled: (a, l, o) => {
4708
+ return e.setQueryData(t, () => o && [...o]), { previousActivities: d };
4709
+ }, onSettled: (a, d, o) => {
4656
4710
  e.invalidateQueries({
4657
4711
  queryKey: [...t, o.activityId]
4658
4712
  });
@@ -4661,22 +4715,22 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4661
4715
  queryKey: t,
4662
4716
  user: n,
4663
4717
  mutationFn: r
4664
- }) => ({ mutationFn: r, onMutate: async ({ activityId: l }) => {
4718
+ }) => ({ mutationFn: r, onMutate: async ({ activityId: d }) => {
4665
4719
  await e.cancelQueries({ queryKey: t });
4666
- const o = e.getQueryData(t), m = o == null ? void 0 : o.map((u) => {
4720
+ const o = e.getQueryData(t), m = o == null ? void 0 : o.map((c) => {
4667
4721
  var h;
4668
- return (u == null ? void 0 : u.id) === l && (h = u.reaction_counts) != null && h.like && (u.reaction_counts.like -= 1), u;
4722
+ return (c == null ? void 0 : c.id) === d && (h = c.reaction_counts) != null && h.like && (c.reaction_counts.like -= 1), c;
4669
4723
  });
4670
4724
  return e.setQueryData(t, () => m && [...m]), { previousActivities: m };
4671
- }, onError: (l, o, m) => {
4725
+ }, onError: (d, o, m) => {
4672
4726
  e.setQueryData(t, m.previousActivities);
4673
- }, onSuccess: (l, { activityId: o }) => {
4674
- const m = e.getQueryData(t), u = m == null ? void 0 : m.map((h) => {
4675
- var p, g, b, v, E;
4727
+ }, onSuccess: (d, { activityId: o }) => {
4728
+ const m = e.getQueryData(t), c = m == null ? void 0 : m.map((h) => {
4729
+ var p, g, x, v, E;
4676
4730
  if (h.id === o) {
4677
- const k = (b = (g = (p = h.own_reactions) == null ? void 0 : p.like) == null ? void 0 : g.find(
4731
+ const k = (x = (g = (p = h.own_reactions) == null ? void 0 : p.like) == null ? void 0 : g.find(
4678
4732
  (_) => _.user_id === (n == null ? void 0 : n.id)
4679
- )) == null ? void 0 : b.id;
4733
+ )) == null ? void 0 : x.id;
4680
4734
  return h.own_reactions.like = (v = h.own_reactions.like) == null ? void 0 : v.filter(
4681
4735
  (_) => _.id !== k
4682
4736
  ), h.latest_reactions.like = (E = h.latest_reactions.like) == null ? void 0 : E.filter(
@@ -4685,20 +4739,20 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4685
4739
  } else
4686
4740
  return h;
4687
4741
  });
4688
- return e.setQueryData(t, () => u && [...u]), { previousActivities: m };
4689
- }, onSettled: (l, o, m) => {
4742
+ return e.setQueryData(t, () => c && [...c]), { previousActivities: m };
4743
+ }, onSettled: (d, o, m) => {
4690
4744
  e.invalidateQueries({
4691
4745
  queryKey: [...t, m.activityId]
4692
4746
  });
4693
- } }), co = ({
4747
+ } }), lo = ({
4694
4748
  basePath: e,
4695
4749
  parentId: t,
4696
4750
  isMember: n,
4697
- functions: { list: r, create: i, edit: c, remove: d, 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 }
4698
4752
  }) => {
4699
- const u = D(), h = wt(), p = je($e), {
4753
+ const c = D(), h = wt(), p = je($e), {
4700
4754
  data: g,
4701
- error: b,
4755
+ error: x,
4702
4756
  isLoading: v,
4703
4757
  isFetching: E
4704
4758
  } = Tn({
@@ -4712,13 +4766,13 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4712
4766
  }), { mutate: _ } = ie(k), T = Kr({
4713
4767
  queryClient: h,
4714
4768
  queryKey: [e, t],
4715
- mutationFn: async (w) => await c(w)
4769
+ mutationFn: async (w) => await l(w)
4716
4770
  }), {
4717
4771
  mutate: C
4718
4772
  } = ie(T), R = qr({
4719
4773
  queryClient: h,
4720
4774
  queryKey: [e, t],
4721
- mutationFn: async ({ activityId: w }) => await d({ activityId: w })
4775
+ mutationFn: async ({ activityId: w }) => await u({ activityId: w })
4722
4776
  }), {
4723
4777
  mutate: V
4724
4778
  } = ie(R), N = ea({
@@ -4738,18 +4792,18 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4738
4792
  )), X = (ae = (re = (se = z == null ? void 0 : z.own_reactions) == null ? void 0 : se.like) == null ? void 0 : re.find(
4739
4793
  (q) => q.user_id === (p == null ? void 0 : p.id)
4740
4794
  )) == null ? void 0 : ae.id;
4741
- await l({ reactionId: X || "", activityId: w });
4795
+ await d({ reactionId: X || "", activityId: w });
4742
4796
  }
4743
4797
  }), {
4744
- mutate: x
4798
+ mutate: b
4745
4799
  } = ie(G), K = Me(
4746
4800
  ({ activityId: w }) => P({ activityId: w }),
4747
4801
  [P]
4748
4802
  ), j = Me(
4749
- ({ activityId: w }) => x({ activityId: w }),
4750
- [x]
4803
+ ({ activityId: w }) => b({ activityId: w }),
4804
+ [b]
4751
4805
  );
4752
- return b ? /* @__PURE__ */ s.jsx(yt, { variant: "error", text: b.message }) : v ? /* @__PURE__ */ s.jsx(Se, { style: { height: "400px" } }) : /* @__PURE__ */ s.jsxs("section", { children: [
4806
+ return x ? /* @__PURE__ */ s.jsx(yt, { variant: "error", text: x.message }) : v ? /* @__PURE__ */ s.jsx(Se, { style: { height: "400px" } }) : /* @__PURE__ */ s.jsxs("section", { children: [
4753
4807
  /* @__PURE__ */ s.jsx(
4754
4808
  nn,
4755
4809
  {
@@ -4760,12 +4814,12 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4760
4814
  required: !0,
4761
4815
  join: o,
4762
4816
  leave: m,
4763
- notMemberStateText: u.formatMessage({ id: "community_joinToPost" })
4817
+ notMemberStateText: c.formatMessage({ id: "community_joinToPost" })
4764
4818
  }
4765
4819
  }
4766
4820
  ),
4767
4821
  !E && Array.isArray(g) && (g == null ? void 0 : g.map((w) => {
4768
- var se, re, ae, q, fe, ue, O, oe, he, ce, xe, pe, be, ge;
4822
+ var se, re, ae, q, fe, ue, I, oe, he, ce, xe, pe, be, ge;
4769
4823
  const z = ((se = w == null ? void 0 : w.actor) == null ? void 0 : se.id) === (p == null ? void 0 : p.id), X = sn(n, z);
4770
4824
  return /* @__PURE__ */ s.jsxs(Vt, { children: [
4771
4825
  /* @__PURE__ */ s.jsx(
@@ -4782,7 +4836,7 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4782
4836
  id: (re = w == null ? void 0 : w.actor) == null ? void 0 : re.id,
4783
4837
  name: `${(q = (ae = w == null ? void 0 : w.actor) == null ? void 0 : ae.data) == null ? void 0 : q.name}`,
4784
4838
  organization: (ue = (fe = w == null ? void 0 : w.actor) == null ? void 0 : fe.data) == null ? void 0 : ue.organization,
4785
- jobTitle: (oe = (O = w == null ? void 0 : w.actor) == null ? void 0 : O.data) == null ? void 0 : oe.jobTitle,
4839
+ jobTitle: (oe = (I = w == null ? void 0 : w.actor) == null ? void 0 : I.data) == null ? void 0 : oe.jobTitle,
4786
4840
  image: {
4787
4841
  thumbnail: ((ce = (he = w == null ? void 0 : w.actor) == null ? void 0 : he.data) == null ? void 0 : ce.thumbnail) || void 0
4788
4842
  }
@@ -4833,17 +4887,17 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4833
4887
  mutationFn: n
4834
4888
  }) => ({ mutationFn: n, onMutate: async () => {
4835
4889
  await e.cancelQueries({ queryKey: t });
4836
- }, onError: (a, l, o) => {
4890
+ }, onError: (a, d, o) => {
4837
4891
  e.setQueryData(t, o.previousActivity);
4838
4892
  }, onSuccess: (a) => {
4839
4893
  var o;
4840
- const l = e.getQueryData(t);
4841
- if (l)
4842
- return (o = l == null ? void 0 : l.latest_reactions) != null && o.reply ? (l.latest_reactions.reply.unshift(a), l && (l.reaction_counts = {
4843
- reply: l.latest_reactions.reply.length
4844
- })) : (l.latest_reactions = { reply: [a] }, l.reaction_counts = { reply: 1 }), e.setQueryData(t, () => ({
4845
- ...l
4846
- })), { 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 };
4847
4901
  }, onSettled: () => {
4848
4902
  e.invalidateQueries({ queryKey: t });
4849
4903
  } }), sa = ({
@@ -4853,70 +4907,70 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4853
4907
  }) => ({
4854
4908
  mutationFn: n,
4855
4909
  onMutate: async ({
4856
- replyInfo: c,
4857
- content: { body: d }
4910
+ replyInfo: l,
4911
+ content: { body: u }
4858
4912
  }) => {
4859
- var o, m, u;
4860
- if (d.length === 0)
4913
+ var o, m, c;
4914
+ if (u.length === 0)
4861
4915
  return;
4862
4916
  await e.cancelQueries({ queryKey: t });
4863
4917
  const a = e.getQueryData(t);
4864
4918
  if (!a || !((o = a == null ? void 0 : a.latest_reactions) != null && o.reply))
4865
4919
  return;
4866
- const l = (u = (m = a == null ? void 0 : a.latest_reactions) == null ? void 0 : m.reply) == null ? void 0 : u.map((h) => (h.id === c.replySlug && (h.data.content = d), 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));
4867
4921
  return e.setQueryData(t, () => ({
4868
4922
  ...a,
4869
- latest_reactions: { reply: l }
4923
+ latest_reactions: { reply: d }
4870
4924
  })), { previousActivity: a };
4871
4925
  },
4872
- onError: (c, d, a) => {
4926
+ onError: (l, u, a) => {
4873
4927
  e.setQueryData(t, a.previousActivity);
4874
4928
  }
4875
4929
  }), ra = ({
4876
4930
  queryClient: e,
4877
4931
  queryKey: t,
4878
4932
  mutationFn: n
4879
- }) => ({ mutationFn: n, onMutate: async ({ replyId: c }) => {
4880
- var l, o, m;
4933
+ }) => ({ mutationFn: n, onMutate: async ({ replyId: l }) => {
4934
+ var d, o, m;
4881
4935
  await e.cancelQueries({ queryKey: t });
4882
- const d = e.getQueryData(t);
4883
- if (!d || !((l = d == null ? void 0 : d.latest_reactions) != null && l.reply))
4936
+ const u = e.getQueryData(t);
4937
+ if (!u || !((d = u == null ? void 0 : u.latest_reactions) != null && d.reply))
4884
4938
  return;
4885
- const a = (m = (o = d == null ? void 0 : d.latest_reactions) == null ? void 0 : o.reply) == null ? void 0 : m.filter(
4886
- (u) => u.id !== c
4939
+ const a = (m = (o = u == null ? void 0 : u.latest_reactions) == null ? void 0 : o.reply) == null ? void 0 : m.filter(
4940
+ (c) => c.id !== l
4887
4941
  );
4888
4942
  return e.setQueryData(t, () => ({
4889
- ...d,
4943
+ ...u,
4890
4944
  latest_reactions: { reply: a }
4891
- })), { previousActivity: d };
4892
- }, onError: (c, d, a) => {
4945
+ })), { previousActivity: u };
4946
+ }, onError: (l, u, a) => {
4893
4947
  e.setQueryData(t, a.previousActivity);
4894
4948
  } }), aa = ({
4895
4949
  queryClient: e,
4896
4950
  queryKey: t,
4897
4951
  mutationFn: n
4898
- }) => ({ mutationFn: n, onMutate: async ({ replyId: d }) => {
4952
+ }) => ({ mutationFn: n, onMutate: async ({ replyId: u }) => {
4899
4953
  var o, m;
4900
4954
  await e.cancelQueries({ queryKey: t });
4901
- 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((u) => {
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) => {
4902
4956
  var h;
4903
- return u.id === d && ((h = u.children_counts) != null && h.like ? u.children_counts.like += 1 : u.children_counts = { like: 1 }), u;
4957
+ return c.id === u && ((h = c.children_counts) != null && h.like ? c.children_counts.like += 1 : c.children_counts = { like: 1 }), c;
4904
4958
  });
4905
4959
  return e.setQueryData(t, () => ({
4906
4960
  ...a,
4907
- latest_reactions: { reply: l }
4961
+ latest_reactions: { reply: d }
4908
4962
  })), { previousActivity: a };
4909
- }, onError: (d, a, l) => {
4910
- e.setQueryData(t, l.previousActivity);
4911
- }, onSuccess: (d) => {
4963
+ }, onError: (u, a, d) => {
4964
+ e.setQueryData(t, d.previousActivity);
4965
+ }, onSuccess: (u) => {
4912
4966
  var o;
4913
- const a = e.getQueryData(t), l = (o = a == null ? void 0 : a.latest_reactions.reply) == null ? void 0 : o.map((m) => {
4914
- var u, h;
4915
- return m.id === d.id && ((u = m.own_children) != null && u.like ? m.own_children.like.push(d) : m.own_children = { like: [d] }, (h = m.latest_children) != null && h.like ? m.latest_children.like.push(d) : m.latest_children = { like: [d] }), m;
4967
+ const a = e.getQueryData(t), d = (o = a == null ? void 0 : a.latest_reactions.reply) == null ? void 0 : o.map((m) => {
4968
+ var c, h;
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;
4916
4970
  });
4917
4971
  return e.setQueryData(t, () => ({
4918
4972
  ...a,
4919
- latest_reactions: { reply: l }
4973
+ latest_reactions: { reply: d }
4920
4974
  })), { previousActivity: a };
4921
4975
  } }), oa = ({
4922
4976
  queryClient: e,
@@ -4926,28 +4980,28 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4926
4980
  }) => ({ mutationFn: r, onMutate: async ({ replyId: a }) => {
4927
4981
  var m;
4928
4982
  await e.cancelQueries({ queryKey: t });
4929
- const l = e.getQueryData(t);
4930
- if (!l)
4983
+ const d = e.getQueryData(t);
4984
+ if (!d)
4931
4985
  return;
4932
- const o = (m = l.latest_reactions.reply) == null ? void 0 : m.map((u) => (u.id === a && u.children_counts.like && (u.children_counts.like -= 1), u));
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));
4933
4987
  return e.setQueryData(t, () => ({
4934
- ...l,
4988
+ ...d,
4935
4989
  latest_reactions: { reply: o }
4936
- })), { previousActivity: l };
4937
- }, onError: (a, l, o) => {
4990
+ })), { previousActivity: d };
4991
+ }, onError: (a, d, o) => {
4938
4992
  e.setQueryData(t, o.previousActivity);
4939
- }, onSuccess: (a, { replyId: l }) => {
4940
- var u;
4993
+ }, onSuccess: (a, { replyId: d }) => {
4994
+ var c;
4941
4995
  const o = e.getQueryData(t);
4942
4996
  if (!o)
4943
4997
  return;
4944
- const m = (u = o.latest_reactions.reply) == null ? void 0 : u.map((h) => {
4945
- var p, g, b;
4946
- if (h.id === l) {
4998
+ const m = (c = o.latest_reactions.reply) == null ? void 0 : c.map((h) => {
4999
+ var p, g, x;
5000
+ if (h.id === d) {
4947
5001
  let v = (p = h.latest_children.reply) == null ? void 0 : p.filter(
4948
5002
  (E) => E.user_id !== (n == null ? void 0 : n.id)
4949
5003
  );
4950
- return v = (b = (g = h == null ? void 0 : h.own_children) == null ? void 0 : g.reply) == null ? void 0 : b.filter(
5004
+ return v = (x = (g = h == null ? void 0 : h.own_children) == null ? void 0 : g.reply) == null ? void 0 : x.filter(
4951
5005
  (E) => E.user_id !== (n == null ? void 0 : n.id)
4952
5006
  ), v;
4953
5007
  }
@@ -4968,13 +5022,13 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4968
5022
  },
4969
5023
  onSuccess: (a) => {
4970
5024
  var m;
4971
- const l = e.getQueryData(t), o = (m = l == null ? void 0 : l.latest_reactions.reply) == null ? void 0 : m.map((u) => (u.id === a.parent && (u.latest_children.reply && u.children_counts.reply ? (u.latest_children.reply.push(a), u.children_counts.reply += 1) : (u.latest_children.reply = [a], u.children_counts.reply = 1)), u));
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));
4972
5026
  return e.setQueryData(t, () => ({
4973
- ...l,
5027
+ ...d,
4974
5028
  latest_reactions: { reply: o }
4975
- })), { previousActivity: l };
5029
+ })), { previousActivity: d };
4976
5030
  },
4977
- onError: (a, l, o) => {
5031
+ onError: (a, d, o) => {
4978
5032
  e.setQueryData(t, o.previousActivity);
4979
5033
  },
4980
5034
  onSettled: () => {
@@ -4984,85 +5038,85 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4984
5038
  queryClient: e,
4985
5039
  queryKey: t,
4986
5040
  mutationFn: n
4987
- }) => ({ mutationFn: n, onError: (c, d, a) => {
5041
+ }) => ({ mutationFn: n, onError: (l, u, a) => {
4988
5042
  e.setQueryData(t, a.previousActivity);
4989
5043
  }, onMutate: async ({
4990
- replyInfo: c,
4991
- content: { body: d }
5044
+ replyInfo: l,
5045
+ content: { body: u }
4992
5046
  }) => {
4993
- var o, m, u;
4994
- if (d.length === 0)
5047
+ var o, m, c;
5048
+ if (u.length === 0)
4995
5049
  return;
4996
5050
  await e.cancelQueries({ queryKey: t });
4997
5051
  const a = e.getQueryData(t);
4998
5052
  if (!a || !((o = a == null ? void 0 : a.latest_reactions) != null && o.reply))
4999
5053
  return;
5000
- const l = (u = (m = a == null ? void 0 : a.latest_reactions) == null ? void 0 : m.reply) == null ? void 0 : u.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) => {
5001
5055
  var p;
5002
- return h.id === c.replyParentId && ((p = h.latest_children.reply) == null || p.map((g) => (g.id === c.replySlug && (g.data.content = d), 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;
5003
5057
  });
5004
5058
  return e.setQueryData(t, () => ({
5005
5059
  ...a,
5006
- latest_reactions: { reply: l }
5060
+ latest_reactions: { reply: d }
5007
5061
  })), { previousActivity: a };
5008
5062
  } }), la = ({
5009
5063
  queryClient: e,
5010
5064
  queryKey: t,
5011
5065
  mutationFn: n
5012
- }) => ({ mutationFn: n, onError: (c, d, a) => {
5066
+ }) => ({ mutationFn: n, onError: (l, u, a) => {
5013
5067
  e.setQueryData(t, a.previousActivity);
5014
5068
  }, onMutate: async ({
5015
- replyId: c,
5016
- replyParentId: d
5069
+ replyId: l,
5070
+ replyParentId: u
5017
5071
  }) => {
5018
- var o, m, u;
5072
+ var o, m, c;
5019
5073
  await e.cancelQueries({ queryKey: t });
5020
5074
  const a = e.getQueryData(t);
5021
5075
  if (!a || !((o = a == null ? void 0 : a.latest_reactions) != null && o.reply))
5022
5076
  return;
5023
- const l = (u = (m = a == null ? void 0 : a.latest_reactions) == null ? void 0 : m.reply) == null ? void 0 : u.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) => {
5024
5078
  var p, g;
5025
- return h.id === d && (h.latest_children.reply = (p = h.latest_children.reply) == null ? void 0 : p.filter(
5026
- (b) => b.id !== c
5079
+ return h.id === u && (h.latest_children.reply = (p = h.latest_children.reply) == null ? void 0 : p.filter(
5080
+ (x) => x.id !== l
5027
5081
  ), (g = h.children_counts) != null && g.reply && (h.children_counts.reply -= 1)), h;
5028
5082
  });
5029
5083
  return e.setQueryData(t, () => ({
5030
5084
  ...a,
5031
- latest_reactions: { reply: l }
5085
+ latest_reactions: { reply: d }
5032
5086
  })), { previousActivity: a };
5033
5087
  } }), da = ({
5034
5088
  queryClient: e,
5035
5089
  queryKey: t,
5036
5090
  mutationFn: n
5037
5091
  }) => ({ mutationFn: n, onMutate: async ({
5038
- replyId: d,
5092
+ replyId: u,
5039
5093
  replyParentId: a
5040
5094
  }) => {
5041
5095
  var m;
5042
5096
  await e.cancelQueries({ queryKey: t });
5043
- const l = e.getQueryData(t), o = (m = l == null ? void 0 : l.latest_reactions.reply) == null ? void 0 : m.map((u) => {
5097
+ const d = e.getQueryData(t), o = (m = d == null ? void 0 : d.latest_reactions.reply) == null ? void 0 : m.map((c) => {
5044
5098
  var h;
5045
- return u.id === a && ((h = u.latest_children.reply) == null || h.map((p) => {
5099
+ return c.id === a && ((h = c.latest_children.reply) == null || h.map((p) => {
5046
5100
  var g;
5047
- return p.id === d && ((g = p.children_counts) != null && g.like ? p.children_counts.like += 1 : p.children_counts = { like: 1 }), p;
5048
- })), u;
5101
+ return p.id === u && ((g = p.children_counts) != null && g.like ? p.children_counts.like += 1 : p.children_counts = { like: 1 }), p;
5102
+ })), c;
5049
5103
  });
5050
5104
  return e.setQueryData(t, () => ({
5051
- ...l,
5105
+ ...d,
5052
5106
  latest_reactions: { reply: o }
5053
- })), { previousActivity: l };
5054
- }, onError: (d, a, l) => {
5055
- e.setQueryData(t, l.previousActivity);
5056
- }, onSuccess: (d, a) => {
5107
+ })), { previousActivity: d };
5108
+ }, onError: (u, a, d) => {
5109
+ e.setQueryData(t, d.previousActivity);
5110
+ }, onSuccess: (u, a) => {
5057
5111
  var m;
5058
- const l = e.getQueryData(t), o = (m = l == null ? void 0 : l.latest_reactions.reply) == null ? void 0 : m.map((u) => {
5112
+ const d = e.getQueryData(t), o = (m = d == null ? void 0 : d.latest_reactions.reply) == null ? void 0 : m.map((c) => {
5059
5113
  var h;
5060
- return u.id === a.replyParentId && ((h = u.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(d), p.own_children.like.push(d)), p))), u;
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;
5061
5115
  });
5062
5116
  return e.setQueryData(t, () => ({
5063
- ...l,
5117
+ ...d,
5064
5118
  latest_reactions: { reply: o }
5065
- })), { previousActivity: l };
5119
+ })), { previousActivity: d };
5066
5120
  } }), ua = ({
5067
5121
  queryClient: e,
5068
5122
  queryKey: t,
@@ -5070,30 +5124,30 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5070
5124
  user: r
5071
5125
  }) => ({ mutationFn: n, onMutate: async ({
5072
5126
  replyId: a,
5073
- replyParentId: l
5127
+ replyParentId: d
5074
5128
  }) => {
5075
- var u;
5129
+ var c;
5076
5130
  await e.cancelQueries({ queryKey: t });
5077
- const o = e.getQueryData(t), m = (u = o == null ? void 0 : o.latest_reactions.reply) == null ? void 0 : u.map((h) => {
5131
+ const o = e.getQueryData(t), m = (c = o == null ? void 0 : o.latest_reactions.reply) == null ? void 0 : c.map((h) => {
5078
5132
  var p;
5079
- return h.id === l && ((p = h.latest_children.reply) == null || p.map((g) => {
5080
- var b;
5081
- return g.id === a && ((b = g.children_counts) != null && b.like ? g.children_counts.like -= 1 : g.children_counts = { like: 0 }), g;
5133
+ return h.id === d && ((p = h.latest_children.reply) == null || p.map((g) => {
5134
+ var x;
5135
+ return g.id === a && ((x = g.children_counts) != null && x.like ? g.children_counts.like -= 1 : g.children_counts = { like: 0 }), g;
5082
5136
  })), h;
5083
5137
  });
5084
5138
  return e.setQueryData(t, () => ({
5085
5139
  ...o,
5086
5140
  latest_reactions: { reply: m }
5087
5141
  })), { previousActivity: o };
5088
- }, onError: (a, l, o) => {
5142
+ }, onError: (a, d, o) => {
5089
5143
  e.setQueryData(t, o.previousActivity);
5090
- }, onSuccess: (a, l) => {
5091
- var u;
5092
- const o = e.getQueryData(t), m = (u = o == null ? void 0 : o.latest_reactions.reply) == null ? void 0 : u.map((h) => {
5144
+ }, onSuccess: (a, d) => {
5145
+ var c;
5146
+ const o = e.getQueryData(t), m = (c = o == null ? void 0 : o.latest_reactions.reply) == null ? void 0 : c.map((h) => {
5093
5147
  var p;
5094
- return h.id === l.replyParentId && ((p = h.latest_children.reply) == null || p.map((g) => {
5095
- var b, v;
5096
- return g.id === l.replyId && ((b = g.own_children) != null && b.like && (g.own_children.like = g.own_children.like.filter(
5148
+ return h.id === d.replyParentId && ((p = h.latest_children.reply) == null || p.map((g) => {
5149
+ var x, v;
5150
+ return g.id === d.replyId && ((x = g.own_children) != null && x.like && (g.own_children.like = g.own_children.like.filter(
5097
5151
  (E) => E.user_id !== (r == null ? void 0 : r.id)
5098
5152
  )), (v = g.latest_children) != null && v.like && (g.latest_children.like = g.latest_children.like.filter(
5099
5153
  (E) => E.user_id !== (r == null ? void 0 : r.id)
@@ -5110,13 +5164,13 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5110
5164
  replyParentId: n,
5111
5165
  activityId: r,
5112
5166
  replyCount: i,
5113
- replies: c,
5114
- functions: { create: d, edit: a, remove: l, join: o, leave: m, like: u, unlike: h }
5167
+ replies: l,
5168
+ functions: { create: u, edit: a, remove: d, join: o, leave: m, like: c, unlike: h }
5115
5169
  }) => {
5116
- const p = D(), g = wt(), b = je($e), v = je(Et), E = ia({
5170
+ const p = D(), g = wt(), x = je($e), v = je(Et), E = ia({
5117
5171
  queryClient: g,
5118
5172
  queryKey: [e, t, r],
5119
- mutationFn: async (j) => d({ replyId: n, content: j.body })
5173
+ mutationFn: async (j) => u({ replyId: n, content: j.body })
5120
5174
  }), { mutate: k } = ie(E), _ = ca({
5121
5175
  queryClient: g,
5122
5176
  queryKey: [e, t, r],
@@ -5126,23 +5180,23 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5126
5180
  } = ie(_), C = la({
5127
5181
  queryClient: g,
5128
5182
  queryKey: [e, t, r],
5129
- mutationFn: async ({ replyId: j }) => l({ replyId: j })
5183
+ mutationFn: async ({ replyId: j }) => d({ replyId: j })
5130
5184
  }), {
5131
5185
  mutate: R
5132
5186
  } = ie(C), V = da({
5133
5187
  queryClient: g,
5134
5188
  queryKey: [e, t, r],
5135
- mutationFn: u
5189
+ mutationFn: c
5136
5190
  }), {
5137
5191
  mutate: N
5138
5192
  } = ie(V), P = ua({
5139
5193
  queryClient: g,
5140
5194
  queryKey: [e, t, r],
5141
- user: b,
5195
+ user: x,
5142
5196
  mutationFn: h
5143
5197
  }), {
5144
5198
  mutate: G
5145
- } = ie(P), x = Me(
5199
+ } = ie(P), b = Me(
5146
5200
  ({ replyId: j, replyParentId: w }) => N({ replyId: j, replyParentId: w }),
5147
5201
  [N]
5148
5202
  ), K = Me(
@@ -5169,8 +5223,8 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5169
5223
  }
5170
5224
  }
5171
5225
  ),
5172
- (c == null ? void 0 : c.length) === 0 || (c == null ? void 0 : c.map((j) => {
5173
- var w, z, X, se, re, ae, q, fe, ue, O, oe, he, ce, xe, pe, be, ge;
5226
+ (l == null ? void 0 : l.length) === 0 || (l == null ? void 0 : l.map((j) => {
5227
+ var w, z, X, se, re, ae, q, fe, ue, I, oe, he, ce, xe, pe, be, ge;
5174
5228
  return /* @__PURE__ */ s.jsx(
5175
5229
  St,
5176
5230
  {
@@ -5189,7 +5243,7 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5189
5243
  id: (se = j == null ? void 0 : j.user) == null ? void 0 : se.id,
5190
5244
  name: (ae = (re = j == null ? void 0 : j.user) == null ? void 0 : re.data) == null ? void 0 : ae.name,
5191
5245
  organization: (fe = (q = j == null ? void 0 : j.user) == null ? void 0 : q.data) == null ? void 0 : fe.organization,
5192
- jobTitle: (O = (ue = j == null ? void 0 : j.user) == null ? void 0 : ue.data) == null ? void 0 : O.jobTitle,
5246
+ jobTitle: (I = (ue = j == null ? void 0 : j.user) == null ? void 0 : ue.data) == null ? void 0 : I.jobTitle,
5193
5247
  image: {
5194
5248
  thumbnail: ((he = (oe = j == null ? void 0 : j.user) == null ? void 0 : oe.data) == null ? void 0 : he.thumbnail) || void 0
5195
5249
  }
@@ -5214,7 +5268,7 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5214
5268
  updateContent: (B, J) => T({ replyInfo: B, content: J })
5215
5269
  },
5216
5270
  likes: {
5217
- createLike: () => x({
5271
+ createLike: () => b({
5218
5272
  replyId: j == null ? void 0 : j.id,
5219
5273
  replyParentId: j == null ? void 0 : j.parent
5220
5274
  }),
@@ -5241,28 +5295,28 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5241
5295
  activityId: n,
5242
5296
  repliesList: r,
5243
5297
  isMember: i,
5244
- functions: { create: c, edit: d, remove: a, like: l, unlike: o, join: m, leave: u }
5298
+ functions: { create: l, edit: u, remove: a, like: d, unlike: o, join: m, leave: c }
5245
5299
  }) => {
5246
- const h = D(), p = wt(), g = je($e), b = na({
5300
+ const h = D(), p = wt(), g = je($e), x = na({
5247
5301
  queryClient: p,
5248
5302
  queryKey: [e, t, n],
5249
- mutationFn: async (x) => c({ activityId: n, content: x.body })
5250
- }), { mutate: v } = ie(b), E = sa({
5303
+ mutationFn: async (b) => l({ activityId: n, content: b.body })
5304
+ }), { mutate: v } = ie(x), E = sa({
5251
5305
  queryClient: p,
5252
5306
  queryKey: [e, t, n],
5253
- mutationFn: async (x) => d(x)
5307
+ mutationFn: async (b) => u(b)
5254
5308
  }), {
5255
5309
  mutate: k
5256
5310
  } = ie(E), _ = ra({
5257
5311
  queryClient: p,
5258
5312
  queryKey: [e, t, n],
5259
- mutationFn: async ({ replyId: x }) => a({ replyId: x })
5313
+ mutationFn: async ({ replyId: b }) => a({ replyId: b })
5260
5314
  }), {
5261
5315
  mutate: T
5262
5316
  } = ie(_), C = aa({
5263
5317
  queryClient: p,
5264
5318
  queryKey: [e, t, n],
5265
- mutationFn: l
5319
+ mutationFn: d
5266
5320
  }), {
5267
5321
  mutate: R
5268
5322
  } = ie(C), V = oa({
@@ -5273,10 +5327,10 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5273
5327
  }), {
5274
5328
  mutate: N
5275
5329
  } = ie(V), P = Me(
5276
- ({ replyId: x }) => R({ replyId: x }),
5330
+ ({ replyId: b }) => R({ replyId: b }),
5277
5331
  [R]
5278
5332
  ), G = Me(
5279
- ({ replyId: x }) => N({ replyId: x }),
5333
+ ({ replyId: b }) => N({ replyId: b }),
5280
5334
  [N]
5281
5335
  );
5282
5336
  return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
@@ -5284,45 +5338,45 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5284
5338
  nn,
5285
5339
  {
5286
5340
  contentType: "reply",
5287
- createPost: (x, K) => v(K),
5341
+ createPost: (b, K) => v(K),
5288
5342
  membershipRequiredToPost: {
5289
5343
  isMember: i,
5290
5344
  required: !0,
5291
5345
  join: m,
5292
- leave: u,
5346
+ leave: c,
5293
5347
  notMemberStateText: h.formatMessage({ id: "community_joinToPost" })
5294
5348
  }
5295
5349
  }
5296
5350
  ),
5297
- (r == null ? void 0 : r.length) === 0 || (r == null ? void 0 : r.map((x) => {
5298
- var w, z, X, se, re, ae, q, fe, ue, O, oe, he, ce, xe, pe, be, ge, B, J, le;
5299
- const K = ((w = x == null ? void 0 : x.user) == null ? void 0 : w.id) === (g == null ? void 0 : g.id), j = sn(i, K);
5351
+ (r == null ? void 0 : r.length) === 0 || (r == null ? void 0 : r.map((b) => {
5352
+ var w, z, X, se, re, ae, q, fe, ue, I, oe, he, ce, xe, pe, be, ge, B, J, le;
5353
+ const K = ((w = b == null ? void 0 : b.user) == null ? void 0 : w.id) === (g == null ? void 0 : g.id), j = sn(i, K);
5300
5354
  return /* @__PURE__ */ s.jsx(Wr, { children: /* @__PURE__ */ s.jsx(
5301
5355
  St,
5302
5356
  {
5303
5357
  content: {
5304
5358
  type: "reply",
5305
- body: typeof x.data.content == "string" ? (z = x == null ? void 0 : x.data) == null ? void 0 : z.content : ((se = (X = x == null ? void 0 : x.data) == null ? void 0 : X.content) == null ? void 0 : se.text) || "",
5359
+ body: typeof b.data.content == "string" ? (z = b == null ? void 0 : b.data) == null ? void 0 : z.content : ((se = (X = b == null ? void 0 : b.data) == null ? void 0 : X.content) == null ? void 0 : se.text) || "",
5306
5360
  canLike: j,
5307
- createdAt: x == null ? void 0 : x.created_at,
5361
+ createdAt: b == null ? void 0 : b.created_at,
5308
5362
  slugs: {
5309
5363
  question: `${e}/${t}/${n}`,
5310
5364
  parentId: t,
5311
- reply: x == null ? void 0 : x.id
5365
+ reply: b == null ? void 0 : b.id
5312
5366
  },
5313
- slug: `${e}/${t}/${n}#${x == null ? void 0 : x.id}`,
5367
+ slug: `${e}/${t}/${n}#${b == null ? void 0 : b.id}`,
5314
5368
  author: {
5315
- id: (re = x == null ? void 0 : x.user) == null ? void 0 : re.id,
5316
- name: (q = (ae = x == null ? void 0 : x.user) == null ? void 0 : ae.data) == null ? void 0 : q.name,
5317
- organization: (ue = (fe = x == null ? void 0 : x.user) == null ? void 0 : fe.data) == null ? void 0 : ue.organization,
5318
- jobTitle: (oe = (O = x == null ? void 0 : x.user) == null ? void 0 : O.data) == null ? void 0 : oe.jobTitle,
5369
+ id: (re = b == null ? void 0 : b.user) == null ? void 0 : re.id,
5370
+ name: (q = (ae = b == null ? void 0 : b.user) == null ? void 0 : ae.data) == null ? void 0 : q.name,
5371
+ organization: (ue = (fe = b == null ? void 0 : b.user) == null ? void 0 : fe.data) == null ? void 0 : ue.organization,
5372
+ jobTitle: (oe = (I = b == null ? void 0 : b.user) == null ? void 0 : I.data) == null ? void 0 : oe.jobTitle,
5319
5373
  image: {
5320
- thumbnail: ((ce = (he = x == null ? void 0 : x.user) == null ? void 0 : he.data) == null ? void 0 : ce.thumbnail) || void 0
5374
+ thumbnail: ((ce = (he = b == null ? void 0 : b.user) == null ? void 0 : he.data) == null ? void 0 : ce.thumbnail) || void 0
5321
5375
  }
5322
5376
  },
5323
- userLiked: ((xe = x == null ? void 0 : x.own_children) == null ? void 0 : xe.like) && ((pe = x == null ? void 0 : x.own_children) == null ? void 0 : pe.like.length) > 0,
5324
- likes: ((be = x == null ? void 0 : x.children_counts) == null ? void 0 : be.like) || 0,
5325
- peopleWhoLiked: ((ge = x == null ? void 0 : x.latest_children) == null ? void 0 : ge.like) && ((B = x == null ? void 0 : x.latest_children) == null ? void 0 : B.like.map((ee) => {
5377
+ userLiked: ((xe = b == null ? void 0 : b.own_children) == null ? void 0 : xe.like) && ((pe = b == null ? void 0 : b.own_children) == null ? void 0 : pe.like.length) > 0,
5378
+ likes: ((be = b == null ? void 0 : b.children_counts) == null ? void 0 : be.like) || 0,
5379
+ peopleWhoLiked: ((ge = b == null ? void 0 : b.latest_children) == null ? void 0 : ge.like) && ((B = b == null ? void 0 : b.latest_children) == null ? void 0 : B.like.map((ee) => {
5326
5380
  var me, ke;
5327
5381
  return {
5328
5382
  id: ee == null ? void 0 : ee.user_id,
@@ -5340,10 +5394,10 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5340
5394
  updateContent: (ee, me) => k({ replyInfo: ee, content: me })
5341
5395
  },
5342
5396
  likes: {
5343
- createLike: () => P({ replyId: x == null ? void 0 : x.id }),
5397
+ createLike: () => P({ replyId: b == null ? void 0 : b.id }),
5344
5398
  deleteLike: () => {
5345
5399
  var me, ke, Ae;
5346
- const ee = ((me = x == null ? void 0 : x.own_children) == null ? void 0 : me.like) && ((Ae = (ke = x == null ? void 0 : x.own_children) == null ? void 0 : ke.like[0]) == null ? void 0 : Ae.id);
5400
+ const ee = ((me = b == null ? void 0 : b.own_children) == null ? void 0 : me.like) && ((Ae = (ke = b == null ? void 0 : b.own_children) == null ? void 0 : ke.like[0]) == null ? void 0 : Ae.id);
5347
5401
  return G({ replyId: ee || "" });
5348
5402
  }
5349
5403
  },
@@ -5354,25 +5408,25 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5354
5408
  {
5355
5409
  basePath: e,
5356
5410
  parentId: t,
5357
- replyParentId: x == null ? void 0 : x.id,
5411
+ replyParentId: b == null ? void 0 : b.id,
5358
5412
  activityId: n,
5359
- replyCount: ((J = x == null ? void 0 : x.children_counts) == null ? void 0 : J.reply) || 0,
5360
- replies: (le = x == null ? void 0 : x.latest_children) == null ? void 0 : le.reply,
5413
+ replyCount: ((J = b == null ? void 0 : b.children_counts) == null ? void 0 : J.reply) || 0,
5414
+ replies: (le = b == null ? void 0 : b.latest_children) == null ? void 0 : le.reply,
5361
5415
  isMember: i,
5362
5416
  functions: {
5363
- create: c,
5364
- edit: d,
5417
+ create: l,
5418
+ edit: u,
5365
5419
  remove: a,
5366
- like: l,
5420
+ like: d,
5367
5421
  unlike: o,
5368
5422
  join: m,
5369
- leave: u
5423
+ leave: c
5370
5424
  }
5371
5425
  }
5372
5426
  )
5373
5427
  },
5374
- x == null ? void 0 : x.id
5375
- ) }, x == null ? void 0 : x.id);
5428
+ b == null ? void 0 : b.id
5429
+ ) }, b == null ? void 0 : b.id);
5376
5430
  }))
5377
5431
  ] });
5378
5432
  }, ha = ({
@@ -5382,19 +5436,19 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5382
5436
  }) => ({
5383
5437
  mutationFn: n,
5384
5438
  onMutate: async ({
5385
- activityInfo: d,
5439
+ activityInfo: u,
5386
5440
  content: { body: a }
5387
5441
  }) => {
5388
5442
  if (a.length === 0)
5389
5443
  return;
5390
5444
  await e.cancelQueries({ queryKey: t });
5391
- const l = e.getQueryData(t);
5392
- return l && l.id === (d == null ? void 0 : d.activityId) && (l.content = a), e.setQueryData(t, () => ({
5393
- ...l
5394
- })), { 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 };
5395
5449
  },
5396
- onError: (d, a, l) => {
5397
- e.setQueryData(t, l.previousActivity);
5450
+ onError: (u, a, d) => {
5451
+ e.setQueryData(t, d.previousActivity);
5398
5452
  },
5399
5453
  onSettled: () => {
5400
5454
  e.invalidateQueries({ queryKey: t });
@@ -5411,19 +5465,19 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5411
5465
  queryKey: t,
5412
5466
  mutationFn: n
5413
5467
  }) => ({ mutationFn: n, onMutate: async () => {
5414
- var l;
5468
+ var d;
5415
5469
  await e.cancelQueries({ queryKey: t });
5416
5470
  const a = e.getQueryData(t);
5417
- 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, () => ({
5418
5472
  ...a
5419
5473
  })), { previousActivity: a };
5420
- }, onError: (a, l, o) => {
5474
+ }, onError: (a, d, o) => {
5421
5475
  e.setQueryData(t, o.previousActivity);
5422
5476
  }, onSuccess: (a) => {
5423
- const l = e.getQueryData(t);
5424
- 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, () => ({
5425
- ...l
5426
- })), { 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 };
5427
5481
  }, onSettled: () => {
5428
5482
  e.invalidateQueries({ queryKey: t });
5429
5483
  } }), _a = ({
@@ -5439,13 +5493,13 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5439
5493
  return (m = o == null ? void 0 : o.reaction_counts) != null && m.like && o.reaction_counts.like > 0 && (o.reaction_counts.like -= 1), e.setQueryData(t, () => ({
5440
5494
  ...o
5441
5495
  })), { previousActivity: o };
5442
- }, onError: (o, m, u) => {
5443
- e.setQueryData(t, u.previousActivity);
5496
+ }, onError: (o, m, c) => {
5497
+ e.setQueryData(t, c.previousActivity);
5444
5498
  }, onSuccess: () => {
5445
- var u, h, p;
5499
+ var c, h, p;
5446
5500
  if (!r)
5447
5501
  return;
5448
- const o = (p = (h = (u = r.own_reactions) == null ? void 0 : u.like) == null ? void 0 : h.find(
5502
+ const o = (p = (h = (c = r.own_reactions) == null ? void 0 : c.like) == null ? void 0 : h.find(
5449
5503
  (g) => g.user_id === (n == null ? void 0 : n.id)
5450
5504
  )) == null ? void 0 : p.id, m = e.getQueryData(t);
5451
5505
  if (m != null && m.own_reactions.like && (m.own_reactions.like = m.own_reactions.like.filter(
@@ -5459,27 +5513,27 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5459
5513
  }, onSettled: () => {
5460
5514
  e.invalidateQueries({ queryKey: t });
5461
5515
  } });
5462
- const lo = ({
5516
+ const uo = ({
5463
5517
  basePath: e,
5464
5518
  parentId: t,
5465
5519
  activityId: n,
5466
5520
  isMember: r,
5467
5521
  functions: {
5468
5522
  get: i,
5469
- editActivity: c,
5470
- removeActivity: d,
5523
+ editActivity: l,
5524
+ removeActivity: u,
5471
5525
  likeActivity: a,
5472
- unlikeActivity: l,
5526
+ unlikeActivity: d,
5473
5527
  createReply: o,
5474
5528
  editReply: m,
5475
- removeReply: u,
5529
+ removeReply: c,
5476
5530
  likeReply: h,
5477
5531
  unlikeReply: p,
5478
5532
  join: g,
5479
- leave: b
5533
+ leave: x
5480
5534
  }
5481
5535
  }) => {
5482
- var re, ae, q, fe, ue, O, oe, he, ce, xe, pe, be, ge, B, J, le, ee, me, ke, Ae, ze, Fe, et;
5536
+ var re, ae, q, fe, ue, I, oe, he, ce, xe, pe, be, ge, B, J, le, ee, me, ke, Ae, ze, Fe, et;
5483
5537
  const v = D(), E = je($e), k = wt(), {
5484
5538
  data: _,
5485
5539
  isLoading: T,
@@ -5490,20 +5544,20 @@ const lo = ({
5490
5544
  }), R = ha({
5491
5545
  queryClient: k,
5492
5546
  queryKey: [e, t, n],
5493
- mutationFn: async (te) => await c(te)
5547
+ mutationFn: async (te) => await l(te)
5494
5548
  }), {
5495
5549
  mutate: V
5496
5550
  } = ie(R), N = pa({
5497
5551
  queryClient: k,
5498
5552
  queryKey: [e, t, n],
5499
- mutationFn: async ({ activityId: te }) => d({ activityId: te }),
5553
+ mutationFn: async ({ activityId: te }) => u({ activityId: te }),
5500
5554
  redirectUrl: `${e}/${t}`
5501
5555
  }), { mutate: P } = ie(N), G = ga({
5502
5556
  queryClient: k,
5503
5557
  queryKey: [e, t, n],
5504
5558
  mutationFn: a
5505
5559
  }), {
5506
- mutate: x
5560
+ mutate: b
5507
5561
  } = ie(G), K = _a({
5508
5562
  queryClient: k,
5509
5563
  queryKey: [e, t, n],
@@ -5513,14 +5567,14 @@ const lo = ({
5513
5567
  const te = (tt = (Le = (Ee = _ == null ? void 0 : _.own_reactions) == null ? void 0 : Ee.like) == null ? void 0 : Le.find(
5514
5568
  (nt) => nt.user_id === (E == null ? void 0 : E.id)
5515
5569
  )) == null ? void 0 : tt.id;
5516
- await l({ activityId: n, reactionId: te });
5570
+ await d({ activityId: n, reactionId: te });
5517
5571
  },
5518
5572
  activity: _
5519
5573
  }), {
5520
5574
  mutate: j
5521
5575
  } = ie(K), w = Me(
5522
- ({ activityId: te }) => x({ activityId: te }),
5523
- [x]
5576
+ ({ activityId: te }) => b({ activityId: te }),
5577
+ [b]
5524
5578
  ), z = Me(
5525
5579
  async ({ activityId: te }) => j({ activityId: te }),
5526
5580
  [j]
@@ -5554,7 +5608,7 @@ const lo = ({
5554
5608
  author: {
5555
5609
  id: (ae = _ == null ? void 0 : _.actor) == null ? void 0 : ae.id,
5556
5610
  name: ((q = _ == null ? void 0 : _.actor) == null ? void 0 : q.data) && ((ue = (fe = _ == null ? void 0 : _.actor) == null ? void 0 : fe.data) == null ? void 0 : ue.name),
5557
- organization: ((O = _ == null ? void 0 : _.actor) == null ? void 0 : O.data) && ((he = (oe = _ == null ? void 0 : _.actor) == null ? void 0 : oe.data) == null ? void 0 : he.organization),
5611
+ organization: ((I = _ == null ? void 0 : _.actor) == null ? void 0 : I.data) && ((he = (oe = _ == null ? void 0 : _.actor) == null ? void 0 : oe.data) == null ? void 0 : he.organization),
5558
5612
  jobTitle: ((ce = _ == null ? void 0 : _.actor) == null ? void 0 : ce.data) && ((pe = (xe = _ == null ? void 0 : _.actor) == null ? void 0 : xe.data) == null ? void 0 : pe.jobTitle),
5559
5613
  image: {
5560
5614
  thumbnail: ((be = _ == null ? void 0 : _.actor) == null ? void 0 : be.data) && ((B = (ge = _ == null ? void 0 : _.actor) == null ? void 0 : ge.data) == null ? void 0 : B.thumbnail) || void 0
@@ -5604,11 +5658,11 @@ const lo = ({
5604
5658
  functions: {
5605
5659
  create: o,
5606
5660
  edit: m,
5607
- remove: u,
5661
+ remove: c,
5608
5662
  like: h,
5609
5663
  unlike: p,
5610
5664
  join: g,
5611
- leave: b
5665
+ leave: x
5612
5666
  }
5613
5667
  }
5614
5668
  )
@@ -5616,7 +5670,7 @@ const lo = ({
5616
5670
  },
5617
5671
  n
5618
5672
  );
5619
- }, uo = ({ id: e, data: { jobTitle: t, name: n, organization: r, thumbnail: i } }) => ({
5673
+ }, mo = ({ id: e, data: { jobTitle: t, name: n, organization: r, thumbnail: i } }) => ({
5620
5674
  id: e,
5621
5675
  name: n,
5622
5676
  jobTitle: t,
@@ -5626,15 +5680,15 @@ const lo = ({
5626
5680
  const n = D(), {
5627
5681
  answers: r,
5628
5682
  createdAt: i,
5629
- dateHasPassed: c,
5630
- isOngoingEvent: d,
5683
+ dateHasPassed: l,
5684
+ isOngoingEvent: u,
5631
5685
  pill: a,
5632
- readingTime: l,
5686
+ readingTime: d,
5633
5687
  publishedDate: o,
5634
5688
  startDate: m
5635
5689
  } = t;
5636
5690
  if (e === "question") {
5637
- const u = i && Gt(i);
5691
+ const c = i && Gt(i);
5638
5692
  return /* @__PURE__ */ s.jsxs("p", { className: "details answers", "data-testid": "question-answers", children: [
5639
5693
  n.formatMessage({ id: "card_answers" }, { number: r }),
5640
5694
  i && /* @__PURE__ */ s.jsxs("span", { "data-testid": "question-created-at", children: [
@@ -5644,17 +5698,17 @@ const lo = ({
5644
5698
  n.formatMessage(
5645
5699
  { id: "card_time_ago" },
5646
5700
  {
5647
- time: u ? n.formatMessage(
5648
- { id: `dates_${u.path}` },
5649
- { number: u.number }
5701
+ time: c ? n.formatMessage(
5702
+ { id: `dates_${c.path}` },
5703
+ { number: c.number }
5650
5704
  ) : 0
5651
5705
  }
5652
5706
  )
5653
5707
  ] })
5654
5708
  ] });
5655
5709
  }
5656
- if (m && !c || d)
5657
- return /* @__PURE__ */ s.jsx("p", { className: "details", children: d ? n.formatMessage({ id: "card_bootcamp" }) : Rn(m) });
5710
+ if (m && !l || u)
5711
+ return /* @__PURE__ */ s.jsx("p", { className: "details", children: u ? n.formatMessage({ id: "card_bootcamp" }) : Rn(m) });
5658
5712
  if (a)
5659
5713
  return /* @__PURE__ */ s.jsx(
5660
5714
  ft,
@@ -5665,16 +5719,16 @@ const lo = ({
5665
5719
  children: a
5666
5720
  }
5667
5721
  );
5668
- if (l || o) {
5669
- const u = o && Gt(o);
5722
+ if (d || o) {
5723
+ const c = o && Gt(o);
5670
5724
  return /* @__PURE__ */ s.jsxs("ul", { className: "details", children: [
5671
- 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 }) }),
5672
5726
  o && /* @__PURE__ */ s.jsx("li", { "data-testid": "published-date", children: n.formatMessage(
5673
5727
  { id: "card_time_ago" },
5674
5728
  {
5675
- time: u ? n.formatMessage(
5676
- { id: `dates_${u.path}` },
5677
- { number: u.number }
5729
+ time: c ? n.formatMessage(
5730
+ { id: `dates_${c.path}` },
5731
+ { number: c.number }
5678
5732
  ) : 0
5679
5733
  }
5680
5734
  ) })
@@ -5740,16 +5794,16 @@ const lo = ({
5740
5794
  }
5741
5795
  }, ba = ({ data: e, cta: t, link: n, gtmContext: r }) => {
5742
5796
  var g;
5743
- const i = D(), [c, d] = L({
5797
+ const i = D(), [l, u] = L({
5744
5798
  loading: !1,
5745
5799
  registered: e.registered || !1
5746
5800
  });
5747
5801
  Y(() => {
5748
- e.registered && d((b) => ({ ...b, registered: !0 }));
5802
+ e.registered && u((x) => ({ ...x, registered: !0 }));
5749
5803
  }, [e.registered]);
5750
- const { startDate: a, dateHasPassed: l, pill: o, slug: m } = e, u = e.contentType;
5804
+ const { startDate: a, dateHasPassed: d, pill: o, slug: m } = e, c = e.contentType;
5751
5805
  let h = "";
5752
- if ((g = _t[u]) != null && g.gtmEvent && (h = _t[u].gtmEvent), a && l)
5806
+ if ((g = _t[c]) != null && g.gtmEvent && (h = _t[c].gtmEvent), a && d)
5753
5807
  return /* @__PURE__ */ s.jsx(
5754
5808
  "a",
5755
5809
  {
@@ -5760,7 +5814,7 @@ const lo = ({
5760
5814
  children: i.formatMessage({ id: "card_watch" })
5761
5815
  }
5762
5816
  );
5763
- if (u === "people")
5817
+ if (c === "people")
5764
5818
  return /* @__PURE__ */ s.jsx(
5765
5819
  U,
5766
5820
  {
@@ -5774,15 +5828,15 @@ const lo = ({
5774
5828
  }
5775
5829
  );
5776
5830
  const p = ["microcourse", "event"];
5777
- if (t && t.onClick && p.includes(u) && o !== "premium") {
5778
- const b = c.loading || c.registered, v = async (E) => {
5779
- if (E.preventDefault(), E.stopPropagation(), !(b || !t || !t.onClick)) {
5780
- d((k) => ({ ...k, loading: !0 }));
5831
+ if (t && t.onClick && p.includes(c) && o !== "premium") {
5832
+ const x = l.loading || l.registered, v = async (E) => {
5833
+ if (E.preventDefault(), E.stopPropagation(), !(x || !t || !t.onClick)) {
5834
+ u((k) => ({ ...k, loading: !0 }));
5781
5835
  try {
5782
5836
  const k = await t.onClick(e);
5783
- d(k === "success" ? () => ({ registered: !0, loading: !1 }) : (_) => ({ ..._, loading: !1 }));
5837
+ u(k === "success" ? () => ({ registered: !0, loading: !1 }) : (_) => ({ ..._, loading: !1 }));
5784
5838
  } catch {
5785
- d((_) => ({ ..._, loading: !1 }));
5839
+ u((_) => ({ ..._, loading: !1 }));
5786
5840
  }
5787
5841
  }
5788
5842
  };
@@ -5793,12 +5847,12 @@ const lo = ({
5793
5847
  className: "gtm-trackable",
5794
5848
  size: "small",
5795
5849
  styling: { fullWidth: !0 },
5796
- disabled: b,
5797
- "data-gtm-event-context": `${r}Page-${u}: ${m}`,
5798
- "data-gtm-event-type": `${r}-${u}-register-click`,
5850
+ disabled: x,
5851
+ "data-gtm-event-context": `${r}Page-${c}: ${m}`,
5852
+ "data-gtm-event-type": `${r}-${c}-register-click`,
5799
5853
  "data-testid": "in-card-button",
5800
5854
  children: i.formatMessage({
5801
- id: `card_cta_${u}${b ? `_${c.loading ? "loading" : "done"}` : ""}`
5855
+ id: `card_cta_${c}${x ? `_${l.loading ? "loading" : "done"}` : ""}`
5802
5856
  })
5803
5857
  }
5804
5858
  );
@@ -5825,19 +5879,19 @@ const va = {
5825
5879
  buildCardData: n,
5826
5880
  cta: r,
5827
5881
  gtmContext: i = "Carousel",
5828
- className: c = ""
5882
+ className: l = ""
5829
5883
  }) => {
5830
- const d = D(), a = je($e), l = a && typeof a.id == "string", [o, m] = L({
5884
+ const u = D(), a = je($e), d = a && typeof a.id == "string", [o, m] = L({
5831
5885
  data: null,
5832
5886
  isLoading: !0
5833
- }), { data: u, isLoading: h } = o, p = Me(() => {
5834
- n(t, l).then((N) => {
5887
+ }), { data: c, isLoading: h } = o, p = Me(() => {
5888
+ n(t, d).then((N) => {
5835
5889
  m(() => ({ data: N, isLoading: !1 }));
5836
5890
  }).catch(() => m((N) => ({ ...N, isLoading: !1 })));
5837
5891
  }, [e]);
5838
5892
  if (Y(() => {
5839
5893
  p();
5840
- }, []), h || !u)
5894
+ }, []), h || !c)
5841
5895
  return /* @__PURE__ */ s.jsx(
5842
5896
  Se,
5843
5897
  {
@@ -5846,15 +5900,15 @@ const va = {
5846
5900
  "data-testid": "card-placeholder"
5847
5901
  }
5848
5902
  );
5849
- const { contentType: g } = u;
5903
+ const { contentType: g } = c;
5850
5904
  if (!g || !_t[g])
5851
5905
  return /* @__PURE__ */ s.jsx(Se, { element: "li", className: "card-wrapper" });
5852
5906
  const {
5853
- basePath: b = "",
5907
+ basePath: x = "",
5854
5908
  className: v,
5855
5909
  length: E,
5856
5910
  gtmEvent: k
5857
- } = _t[g], _ = Fn(`card_label_${g}`) ? d.formatMessage({ id: `card_label_${g}` }) : !1, T = u.slug ? `${b}${u.slug}` : !1, C = { ...va, ...E };
5911
+ } = _t[g], _ = Fn(`card_label_${g}`) ? u.formatMessage({ id: `card_label_${g}` }) : !1, T = c.slug ? `${x}${c.slug}` : !1, C = { ...va, ...E };
5858
5912
  let R = { className: "card" };
5859
5913
  T && (R = {
5860
5914
  href: T,
@@ -5862,16 +5916,16 @@ const va = {
5862
5916
  "data-gtm-event-context": `${i}-CarouselCard`,
5863
5917
  "data-gtm-event-type": `${k}-click`,
5864
5918
  "data-testid": "link"
5865
- }, u.openInNewTab && (R.target = "_blank"));
5866
- const V = u.customIcon ? { "--custom-icon": wa(u.customIcon) } : {};
5919
+ }, c.openInNewTab && (R.target = "_blank"));
5920
+ const V = c.customIcon ? { "--custom-icon": wa(c.customIcon) } : {};
5867
5921
  return /* @__PURE__ */ s.jsx(
5868
5922
  "li",
5869
5923
  {
5870
- className: $("card-wrapper text-medium", v, c, {
5924
+ className: S("card-wrapper text-medium", v, l, {
5871
5925
  "has-link": T,
5872
5926
  "no-link": !T,
5873
- "has-custom-icon": u.customIcon,
5874
- "has-image": u.banner
5927
+ "has-custom-icon": c.customIcon,
5928
+ "has-image": c.banner
5875
5929
  }),
5876
5930
  style: V,
5877
5931
  "data-testid": `${g}-card`,
@@ -5879,31 +5933,31 @@ const va = {
5879
5933
  T ? "a" : "div",
5880
5934
  R,
5881
5935
  /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
5882
- (u.customLabel || _) && /* @__PURE__ */ s.jsx("small", { className: $("card-label text-small", v), children: u.customLabel || _ }),
5883
- u.startDate && !u.isOngoingEvent && /* @__PURE__ */ s.jsx(
5936
+ (c.customLabel || _) && /* @__PURE__ */ s.jsx("small", { className: S("card-label text-small", v), children: c.customLabel || _ }),
5937
+ c.startDate && !c.isOngoingEvent && /* @__PURE__ */ s.jsx(
5884
5938
  ft,
5885
5939
  {
5886
5940
  size: "small",
5887
- variant: u.dateHasPassed ? "default" : "information",
5941
+ variant: c.dateHasPassed ? "default" : "information",
5888
5942
  "data-testid": "date",
5889
- children: u.dateHasPassed ? d.formatMessage({ id: "card_ended" }) : Qs(u.startDate)
5943
+ children: c.dateHasPassed ? u.formatMessage({ id: "card_ended" }) : Qs(c.startDate)
5890
5944
  }
5891
5945
  ),
5892
- u.banner ? /* @__PURE__ */ s.jsxs("p", { className: "img", children: [
5893
- u.registered && /* @__PURE__ */ s.jsx(ft, { size: "small", variant: "registered", children: d.formatMessage({ id: "card_registered" }) }),
5894
- /* @__PURE__ */ s.jsx(Ln, { image: u.banner })
5946
+ c.banner ? /* @__PURE__ */ s.jsxs("p", { className: "img", children: [
5947
+ c.registered && /* @__PURE__ */ s.jsx(ft, { size: "small", variant: "registered", children: u.formatMessage({ id: "card_registered" }) }),
5948
+ /* @__PURE__ */ s.jsx(Ln, { image: c.banner })
5895
5949
  ] }) : v === "people" ? /* @__PURE__ */ s.jsx(
5896
5950
  qe,
5897
5951
  {
5898
- name: u.title || "",
5899
- src: u.profile,
5952
+ name: c.title || "",
5953
+ src: c.profile,
5900
5954
  "data-testid": "people-profile-picture"
5901
5955
  }
5902
5956
  ) : null,
5903
- u.contributors && /* @__PURE__ */ s.jsx(
5957
+ c.contributors && /* @__PURE__ */ s.jsx(
5904
5958
  Un,
5905
5959
  {
5906
- contributors: { data: u.contributors },
5960
+ contributors: { data: c.contributors },
5907
5961
  styling: {
5908
5962
  size: "small",
5909
5963
  showGap: v !== "question",
@@ -5912,32 +5966,32 @@ const va = {
5912
5966
  "data-testid": "contributors"
5913
5967
  }
5914
5968
  ),
5915
- u.partner && /* @__PURE__ */ s.jsx("p", { className: "partners", "data-testid": "partners", children: Qe(u.partner.title, C.partner) }),
5969
+ c.partner && /* @__PURE__ */ s.jsx("p", { className: "partners", "data-testid": "partners", children: Qe(c.partner.title, C.partner) }),
5916
5970
  /* Text */
5917
5971
  ["title", "text", "secondaryText"].map((N) => {
5918
- const P = u[N];
5972
+ const P = c[N];
5919
5973
  if (!P)
5920
5974
  return null;
5921
5975
  const G = Bs(N);
5922
5976
  return /* @__PURE__ */ s.jsx("p", { className: G, "data-testid": G, children: Qe(P, C[N]) }, N);
5923
5977
  }),
5924
- /* @__PURE__ */ s.jsx(xa, { type: v || "", data: u }),
5925
- /* @__PURE__ */ s.jsx(ba, { data: u, cta: r, link: T || "", gtmContext: i })
5978
+ /* @__PURE__ */ s.jsx(xa, { type: v || "", data: c }),
5979
+ /* @__PURE__ */ s.jsx(ba, { data: c, cta: r, link: T || "", gtmContext: i })
5926
5980
  ] })
5927
5981
  )
5928
5982
  }
5929
5983
  );
5930
5984
  };
5931
- const ja = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__ */ s.jsx("ul", { className: $("card-block", n), children: e.map((i, c) => {
5932
- const d = i.slug ? `${i.slug}-${t[c]}` : `${t[c]}-${c}`;
5985
+ const ja = ({ 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}`;
5933
5987
  return /* @__PURE__ */ s.jsx(
5934
5988
  ka,
5935
5989
  {
5936
- id: d,
5937
- card: { ...i, contentType: t[c] },
5990
+ id: u,
5991
+ card: { ...i, contentType: t[l] },
5938
5992
  ...r
5939
5993
  },
5940
- d
5994
+ u
5941
5995
  );
5942
5996
  }) });
5943
5997
  const $n = [
@@ -5984,7 +6038,7 @@ const $n = [
5984
6038
  contributors: ["community"]
5985
6039
  }
5986
6040
  ];
5987
- const lt = "notFoundError_", mo = () => {
6041
+ const lt = "notFoundError_", fo = () => {
5988
6042
  const e = D(), t = [];
5989
6043
  return $n.forEach((n, r) => {
5990
6044
  n.title = e.formatMessage({ id: `${lt}post_${r + 1}` }), t.push("solutionArticle");
@@ -6019,15 +6073,15 @@ const lt = "notFoundError_", mo = () => {
6019
6073
  };
6020
6074
  export {
6021
6075
  mt as ASSETS_BUCKET,
6022
- co as ActivitiesFeed,
6023
- lo as ActivitySection,
6076
+ lo as ActivitiesFeed,
6077
+ uo as ActivitySection,
6024
6078
  nn as AddPost,
6025
6079
  Ha as BannerSection,
6026
6080
  Xa as Breadcrumbs,
6027
6081
  U as Button,
6028
6082
  kt as ButtonWrapper,
6029
6083
  _r as CacheProvider,
6030
- On as CollapsibleSection,
6084
+ In as CollapsibleSection,
6031
6085
  Cr as Columns,
6032
6086
  Ja as CommunityDetails,
6033
6087
  Un as Contributors,
@@ -6041,7 +6095,7 @@ export {
6041
6095
  Ue as Divider,
6042
6096
  Ba as DownloadSection,
6043
6097
  Ze as EMAILS,
6044
- to as EmailHelperTextBox,
6098
+ no as EmailHelperTextBox,
6045
6099
  yt as EmptyStateBox,
6046
6100
  Za as Filters,
6047
6101
  wr as FlagsProvider,
@@ -6055,7 +6109,7 @@ export {
6055
6109
  Re as HighlightedTextBox,
6056
6110
  vr as IntlProvider,
6057
6111
  Lr as InviteForm,
6058
- ro as InviteModal,
6112
+ ao as InviteModal,
6059
6113
  Wn as JoinButton,
6060
6114
  Ka as LanguageSwitcher,
6061
6115
  jt as Link,
@@ -6068,41 +6122,42 @@ export {
6068
6122
  wn as MarkdownText,
6069
6123
  Ua as MarketingBox,
6070
6124
  tn as Member,
6071
- oo as MembersList,
6125
+ io as MembersList,
6072
6126
  Zn as Modal,
6073
6127
  Er as MoreMenu,
6074
6128
  Wa as NUMBER_OF_USERS,
6075
6129
  Tr as NavigationMenu,
6076
- mo as NotFoundError,
6130
+ fo as NotFoundError,
6077
6131
  Kn as Overlay,
6078
6132
  ur as PageHeading,
6079
6133
  Qr as PageLayout,
6080
- no as PasswordRules,
6134
+ so as PasswordRules,
6081
6135
  ft as Pill,
6082
6136
  qe as ProfilePicture,
6083
6137
  fr as ProgressBar,
6084
- so as Rating,
6138
+ ro as Rating,
6085
6139
  fa as RepliesFeed,
6086
- io as ResponsesHeading,
6140
+ co as ResponsesHeading,
6087
6141
  Ln as ResponsiveImage,
6088
6142
  Fr as SearchForm,
6089
6143
  qa as ShareLinks,
6090
6144
  dr as Span,
6091
6145
  Xt as StatusBanner,
6092
- ao as Tags,
6146
+ eo as Tabs,
6147
+ oo as Tags,
6093
6148
  qs as Tooltip,
6094
- eo as TopLevelPage,
6149
+ to as TopLevelPage,
6095
6150
  $e as UserContext,
6096
6151
  kr as UserProvider,
6097
6152
  _e as VisuallyHidden,
6098
- Ir as addAriaProps,
6153
+ Or as addAriaProps,
6099
6154
  Hn as getMember,
6100
6155
  pt as headerData,
6101
- uo as mapGetStreamData,
6156
+ mo as mapGetStreamData,
6102
6157
  Ys as pageReady,
6103
6158
  Ls as useCurrentPath,
6104
6159
  He as useEffectAfterMount,
6105
6160
  vt as useElementWidth,
6106
- Is as useScrollListener,
6107
- Ia as useScrollToHash
6161
+ Os as useScrollListener,
6162
+ Oa as useScrollToHash
6108
6163
  };