@apolitical/component-library 1.14.13 → 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,17 +2120,18 @@ 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,
2130
2130
  {
2131
2131
  apiKey: atob(process.env.REACT_APP_PUBLIC_POSTHOG_KEY),
2132
2132
  options: {
2133
- api_host: "https://eu.posthog.com",
2133
+ api_host: "/ph",
2134
+ ui_host: "eu.posthog.com",
2134
2135
  autocapture: !1,
2135
2136
  secure_cookie: !0,
2136
2137
  bootstrap: {
@@ -2150,20 +2151,20 @@ const wr = ({ children: e, user: t }) => t.isLoading ? null : process.env.REACT_
2150
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 }) => {
2151
2152
  const [r, i] = L({ isLoading: !0 });
2152
2153
  return Y(() => {
2153
- e().then((c) => {
2154
- i({ ...c, isLoading: !1 }), Ys(5e3);
2154
+ e().then((l) => {
2155
+ i({ ...l, isLoading: !1 }), Ys(5e3);
2155
2156
  }).catch(() => i({ isLoading: !1 }));
2156
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 }) }) }) }) });
2157
2158
  };
2158
2159
  const Pt = "joinCommunityButton", Wn = ({ isMember: e = !1, isShort: t = !1, functions: { join: n, leave: r } = { join: () => {
2159
2160
  }, leave: () => {
2160
2161
  } } }) => {
2161
- 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");
2162
2163
  Y(() => {
2163
2164
  o === "joining" ? m("joined") : o === "leaving" && m("notJoined");
2164
2165
  }, [a]);
2165
- const u = {}, h = {};
2166
- 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(
2167
2168
  U,
2168
2169
  {
2169
2170
  variant: a ? "secondary" : "primary",
@@ -2171,11 +2172,11 @@ const Pt = "joinCommunityButton", Wn = ({ isMember: e = !1, isShort: t = !1, fun
2171
2172
  styling: { fullWidth: !0 },
2172
2173
  icon: a && o !== "leaving" ? { icon: "tick", position: "left" } : !1,
2173
2174
  onClick: async (p) => {
2174
- 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));
2175
2176
  },
2176
- className: $("join-community-button", o, { active: o === "joining" }),
2177
- disabled: !d,
2178
- ...u,
2177
+ className: S("join-community-button", o, { active: o === "joining" }),
2178
+ disabled: !u,
2179
+ ...c,
2179
2180
  children: /* @__PURE__ */ s.jsx("span", { className: "text", ...h, children: i.formatMessage({ id: `${Pt}${["joining", "leaving"].includes(o) ? `_${o}` : a ? "_member" : t ? "_short" : ""}` }) })
2180
2181
  }
2181
2182
  );
@@ -2185,10 +2186,10 @@ const Rt = "communityDetails_", Ja = ({
2185
2186
  isMember: t = !1,
2186
2187
  slug: n,
2187
2188
  members: { number: r = 0, data: i = [] } = { number: 0, data: [] },
2188
- functions: { invite: c, ...d }
2189
+ functions: { invite: l, ...u }
2189
2190
  }) => {
2190
- const a = D(), l = 5, o = r || i.length, m = i.length ? i : Array(l).fill({});
2191
- 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: [
2192
2193
  /* @__PURE__ */ s.jsx(Ue, {}),
2193
2194
  /* @__PURE__ */ s.jsxs("div", { className: "member-details", children: [
2194
2195
  /* @__PURE__ */ s.jsxs("div", { className: "top", children: [
@@ -2210,16 +2211,16 @@ const Rt = "communityDetails_", Ja = ({
2210
2211
  showGap: !0,
2211
2212
  showPlaceholders: o === 0
2212
2213
  },
2213
- cutoff: l
2214
+ cutoff: d
2214
2215
  }
2215
2216
  )
2216
2217
  ] }),
2217
- /* @__PURE__ */ s.jsx(Wn, { isMember: t, functions: { ...d } }),
2218
+ /* @__PURE__ */ s.jsx(Wn, { isMember: t, functions: { ...u } }),
2218
2219
  t && /* @__PURE__ */ s.jsx(
2219
2220
  U,
2220
2221
  {
2221
2222
  variant: "primary",
2222
- onClick: c,
2223
+ onClick: l,
2223
2224
  icon: { icon: "plus" },
2224
2225
  styling: { fullWidth: !0 },
2225
2226
  children: a.formatMessage({ id: `${Rt}invite` })
@@ -2235,9 +2236,9 @@ const Xa = ({
2235
2236
  const r = D();
2236
2237
  return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
2237
2238
  /* @__PURE__ */ s.jsx(_e, { element: "p", children: r.formatMessage({ id: "breadcrumbs_label" }) }),
2238
- /* @__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: [
2239
- d && /* @__PURE__ */ s.jsx(_e, { element: "span", children: r.formatMessage({ id: "breadcrumbs_currentPage" }) }),
2240
- /* @__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) })
2241
2242
  ] }, `${window.btoa(i)}_${a}`)) })
2242
2243
  ] });
2243
2244
  };
@@ -2249,22 +2250,22 @@ const Za = ({
2249
2250
  },
2250
2251
  className: i = ""
2251
2252
  }) => {
2252
- 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) => {
2253
2254
  let h = [];
2254
- 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();
2255
2256
  };
2256
- 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 = () => {
2257
2258
  } }) => {
2258
2259
  let g = {};
2259
- 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(
2260
2261
  "button",
2261
2262
  {
2262
- className: $(m, { selected: a.includes(m) }),
2263
- onClick: (b) => {
2264
- 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);
2265
2266
  },
2266
2267
  ...g,
2267
- children: u
2268
+ children: c
2268
2269
  }
2269
2270
  ) }, m);
2270
2271
  }) });
@@ -2273,8 +2274,8 @@ const Za = ({
2273
2274
  if (!t || !t.length)
2274
2275
  return `/${n}`;
2275
2276
  let r = "";
2276
- return t.forEach(({ url: i, position: c }) => {
2277
- 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}`);
2278
2279
  }), r.includes(`/${n}/`) || (r += `/${n}`), r;
2279
2280
  };
2280
2281
  const Ft = { en: "English", es: "Español", fr: "Français", pt: "Português" }, rt = "languageSwitcher_", Ka = ({
@@ -2284,43 +2285,43 @@ const Ft = { en: "English", es: "Español", fr: "Français", pt: "Português" },
2284
2285
  translations: r,
2285
2286
  onChange: i = () => {
2286
2287
  },
2287
- urlParts: c,
2288
- variant: d = "default",
2288
+ urlParts: l,
2289
+ variant: u = "default",
2289
2290
  label: a,
2290
- className: l = ""
2291
+ className: d = ""
2291
2292
  }) => {
2292
- const o = D(), [m, u] = L(e);
2293
+ const o = D(), [m, c] = L(e);
2293
2294
  if (Y(() => {
2294
- e !== m && u(e);
2295
- }, [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))
2296
2297
  return null;
2297
2298
  const p = Object.keys(r), g = m !== e;
2298
- 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: [
2299
2300
  /* @__PURE__ */ s.jsxs("nav", { children: [
2300
- d !== "short" && /* @__PURE__ */ s.jsx("p", { children: a || o.formatMessage({ id: `${rt}label` }) }),
2301
- /* @__PURE__ */ s.jsx("ul", { children: p.map((b) => {
2302
- 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])
2303
2304
  return null;
2304
- let v = { className: b };
2305
- 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 = {
2306
2307
  ...v,
2307
- href: jr(b, c),
2308
+ href: jr(x, l),
2308
2309
  onClick: (E) => {
2309
- E.preventDefault(), E.stopPropagation(), u(b), i(b);
2310
+ E.preventDefault(), E.stopPropagation(), c(x), i(x);
2310
2311
  }
2311
- }, /* @__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);
2312
2313
  }) }),
2313
- 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"}` }) })
2314
2315
  ] }),
2315
- d !== "short" && !g && !t && !n && /* @__PURE__ */ s.jsx("small", {
2316
+ u !== "short" && !g && !t && !n && /* @__PURE__ */ s.jsx("small", {
2316
2317
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2317
2318
  // @ts-ignore
2318
2319
  // `values` are throwing a type error: https://github.com/formatjs/formatjs/issues/3633
2319
2320
  children: o.formatMessage({ id: `${rt}disclaimer` }, {
2320
2321
  email: Ze.support,
2321
- link: (b) => {
2322
- const v = `mailto:${b}`;
2323
- 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 });
2324
2325
  }
2325
2326
  })
2326
2327
  })
@@ -2333,27 +2334,27 @@ const Lt = vs({ locale: "en", messages: qt }), yr = ({
2333
2334
  loadNextPage: r = () => {
2334
2335
  },
2335
2336
  icon: i = !1,
2336
- messages: c = {
2337
+ messages: l = {
2337
2338
  button: Lt.formatMessage({ id: "loadMore_button" }),
2338
2339
  endOfFeed: Lt.formatMessage({ id: "loadMore_endOfFeed" }),
2339
2340
  error: Lt.formatMessage({ id: "loadMore_error" })
2340
2341
  },
2341
- className: d = "",
2342
+ className: u = "",
2342
2343
  gtmContext: a = "LoadMore"
2343
2344
  }) => {
2344
- const [l, o] = L(!1), [m, u] = L(!1);
2345
+ const [d, o] = L(!1), [m, c] = L(!1);
2345
2346
  if (t <= 0 || t < n * e)
2346
2347
  return null;
2347
2348
  const h = async (p) => {
2348
2349
  try {
2349
2350
  await r(p);
2350
2351
  } catch (g) {
2351
- 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);
2352
2353
  }
2353
2354
  };
2354
- return /* @__PURE__ */ s.jsxs("footer", { className: $("load-more", d), children: [
2355
- l && /* @__PURE__ */ s.jsx("p", { className: "error", children: c.error }),
2356
- 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(
2357
2358
  U,
2358
2359
  {
2359
2360
  variant: "secondary",
@@ -2363,22 +2364,22 @@ const Lt = vs({ locale: "en", messages: qt }), yr = ({
2363
2364
  "data-gtm-event-type": "load-more-click",
2364
2365
  className: "gtm-trackable",
2365
2366
  "data-testid": "load-more-button",
2366
- children: c.button
2367
+ children: l.button
2367
2368
  }
2368
2369
  )
2369
2370
  ] });
2370
2371
  };
2371
- 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" }) }) }) });
2372
2373
  let at = !1;
2373
2374
  const Er = ({ element: e = "div", id: t = "more-menu", options: n, className: r = "" }) => {
2374
- const i = D(), c = de(null), [d, a] = L(!1), l = (o) => {
2375
- 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);
2376
2377
  };
2377
- return Y(() => (document.addEventListener("click", l, !0), () => {
2378
- document.removeEventListener("click", l, !0);
2378
+ return Y(() => (document.addEventListener("click", d, !0), () => {
2379
+ document.removeEventListener("click", d, !0);
2379
2380
  })), A.createElement(e, {
2380
- ref: c,
2381
- className: $("more-menu text-medium", r),
2381
+ ref: l,
2382
+ className: S("more-menu text-medium", r),
2382
2383
  children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
2383
2384
  /* @__PURE__ */ s.jsx(
2384
2385
  U,
@@ -2386,15 +2387,15 @@ const Er = ({ element: e = "div", id: t = "more-menu", options: n, className: r
2386
2387
  variant: "tertiary",
2387
2388
  size: "medium",
2388
2389
  icon: { icon: "ellipsis" },
2389
- onClick: () => a(!d),
2390
+ onClick: () => a(!u),
2390
2391
  "aria-haspopup": "true",
2391
- "aria-expanded": d,
2392
+ "aria-expanded": u,
2392
2393
  "aria-controls": t,
2393
2394
  screenreaderText: i.formatMessage({ id: "moreMenu" })
2394
2395
  }
2395
2396
  ),
2396
- /* @__PURE__ */ s.jsx("ul", { id: t, hidden: !d, children: n.map(({ href: o, onClick: m, text: u, icon: h, ...p }, g) => {
2397
- 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 = {
2398
2399
  ...p,
2399
2400
  onClick: (v) => {
2400
2401
  a(!1), typeof m == "function" && m(v);
@@ -2408,16 +2409,16 @@ const Er = ({ element: e = "div", id: t = "more-menu", options: n, className: r
2408
2409
  }, 100);
2409
2410
  }
2410
2411
  };
2411
- 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(
2412
2413
  U,
2413
2414
  {
2414
2415
  variant: "tertiary",
2415
2416
  size: "medium",
2416
2417
  icon: h ? { icon: h, position: "left" } : !1,
2417
- ...b,
2418
- children: u
2418
+ ...x,
2419
+ children: c
2419
2420
  }
2420
- ) }, `${window.btoa(u)}_${g}`);
2421
+ ) }, `${window.btoa(c)}_${g}`);
2421
2422
  }) })
2422
2423
  ] })
2423
2424
  });
@@ -2446,14 +2447,14 @@ const $r = [
2446
2447
  ], Tr = ({ activeLink: e }) => {
2447
2448
  const t = D(), n = je($e), r = n && typeof n.id == "string";
2448
2449
  return /* @__PURE__ */ s.jsxs("ul", { id: "navigation-menu", className: "text-medium", children: [
2449
- $r.map(({ key: i, href: c }) => /* @__PURE__ */ s.jsx(
2450
+ $r.map(({ key: i, href: l }) => /* @__PURE__ */ s.jsx(
2450
2451
  "li",
2451
2452
  {
2452
- className: $(i, { active: Sr(c, e) }),
2453
+ className: S(i, { active: Sr(l, e) }),
2453
2454
  children: /* @__PURE__ */ s.jsx(
2454
2455
  "a",
2455
2456
  {
2456
- href: c,
2457
+ href: l,
2457
2458
  "data-gtm-event-type": `${i}-click`,
2458
2459
  "data-gtm-event-context": "NavigationMenu",
2459
2460
  className: "gtm-trackable",
@@ -2532,23 +2533,23 @@ const Nr = "shareLinks_", qa = ({
2532
2533
  referrer: n,
2533
2534
  gtmContext: r = "ShareLinks",
2534
2535
  size: i = "large",
2535
- variant: c = "default",
2536
- className: d = ""
2536
+ variant: l = "default",
2537
+ className: u = ""
2537
2538
  }) => {
2538
- const a = D(), l = Mr({ title: e, link: t, referrer: n });
2539
- 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: [
2540
2541
  /* @__PURE__ */ s.jsx("p", { className: "text-small", children: a.formatMessage({ id: "shareLinks_label" }) }),
2541
- /* @__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 }) => {
2542
2543
  if (typeof h == "function" && !h())
2543
2544
  return null;
2544
2545
  const g = {};
2545
- 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(
2546
2547
  U,
2547
2548
  {
2548
2549
  size: i,
2549
2550
  variant: "tertiary",
2550
2551
  icon: { icon: m || o },
2551
- href: u,
2552
+ href: c,
2552
2553
  target: "_blank",
2553
2554
  rel: "noopener noreferrer",
2554
2555
  className: "gtm-trackable",
@@ -2562,6 +2563,60 @@ const Nr = "shareLinks_", qa = ({
2562
2563
  }) })
2563
2564
  ] });
2564
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
+ };
2565
2620
  const Dr = {
2566
2621
  "2-1": 901,
2567
2622
  "1-3": 769
@@ -2572,26 +2627,26 @@ const Dr = {
2572
2627
  children: r
2573
2628
  }) => {
2574
2629
  const i = vt(!0);
2575
- let c = r;
2576
- 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) });
2577
- }, 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: [
2578
2633
  /* @__PURE__ */ s.jsx(Tr, { activeLink: e }),
2579
2634
  /* @__PURE__ */ s.jsx(ur, { ...t })
2580
2635
  ] }) });
2581
- 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 = () => {
2582
- const e = D(), [t, n, r] = Ss(It), [i, c] = L(!t["apol-cookie-banner"]), d = () => {
2583
- 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) => {
2584
2639
  n(m, !0, {
2585
2640
  path: "/",
2586
2641
  expires: Bt,
2587
2642
  domain: m === "apolitical-performance-cookie-consent" ? ".apolitical.co" : void 0
2588
2643
  });
2589
- }), c(!1), window.location.reload();
2644
+ }), l(!1), window.location.reload();
2590
2645
  }, a = () => {
2591
2646
  n("apol-cookie-banner", !0, {
2592
2647
  path: "/",
2593
2648
  expires: Bt
2594
- }), It.forEach((m) => {
2649
+ }), Ot.forEach((m) => {
2595
2650
  if (m === "apol-cookie-banner") {
2596
2651
  n(m, !0, {
2597
2652
  path: "/",
@@ -2600,16 +2655,16 @@ const Ot = "cookieBanner_", It = ["apol-cookie-banner", "apolitical-performance-
2600
2655
  return;
2601
2656
  }
2602
2657
  r(m);
2603
- }), c(!1);
2658
+ }), l(!1);
2604
2659
  };
2605
2660
  if (!i)
2606
2661
  return null;
2607
- const l = [
2662
+ const d = [
2608
2663
  { id: "settings", href: "/pages/cookie-policy", gtmType: "policy-page" },
2609
2664
  { id: "reject", onClick: a, gtmType: "reject-all" },
2610
- { id: "accept", onClick: d, gtmType: "accepted-all" }
2665
+ { id: "accept", onClick: u, gtmType: "accepted-all" }
2611
2666
  ], o = [];
2612
- return l.forEach((m) => {
2667
+ return d.forEach((m) => {
2613
2668
  o.push({
2614
2669
  variant: m.href ? "tertiary" : "primary",
2615
2670
  href: m.href,
@@ -2617,11 +2672,11 @@ const Ot = "cookieBanner_", It = ["apol-cookie-banner", "apolitical-performance-
2617
2672
  className: "gtm-trackable",
2618
2673
  "data-gtm-event-context": "cookie-banner",
2619
2674
  "data-gtm-event-type": `cookie-${m.gtmType}-click`,
2620
- children: e.formatMessage({ id: `${Ot}buttons_${m.id}` })
2675
+ children: e.formatMessage({ id: `${It}buttons_${m.id}` })
2621
2676
  });
2622
2677
  }), /* @__PURE__ */ s.jsxs("aside", { id: "cookie-banner", className: "text-medium", children: [
2623
- /* @__PURE__ */ s.jsx("h6", { children: e.formatMessage({ id: `${Ot}title` }) }),
2624
- /* @__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` }) }),
2625
2680
  /* @__PURE__ */ s.jsx(kt, { buttons: o })
2626
2681
  ] });
2627
2682
  }, Ce = {
@@ -2726,15 +2781,15 @@ const Be = "footer_", ht = "SiteFooter", jn = ({ group: e }) => {
2726
2781
  Array.isArray(t) && t.length > 0 && /* @__PURE__ */ s.jsx("ul", { className: "text-medium", children: t.map((r) => {
2727
2782
  if (["order", "child", "text"].includes(r))
2728
2783
  return null;
2729
- const { href: i, gtmType: c } = Ce[e][r], d = {};
2730
- 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(
2731
2786
  "a",
2732
2787
  {
2733
2788
  href: i,
2734
2789
  className: "gtm-trackable",
2735
2790
  "data-gtm-event-context": ht,
2736
- "data-gtm-event-type": c,
2737
- ...d,
2791
+ "data-gtm-event-type": l,
2792
+ ...u,
2738
2793
  children: /* @__PURE__ */ s.jsx(Pe, { id: `${Be}${e}_${r}` })
2739
2794
  }
2740
2795
  ) }, `${e}_${r}`);
@@ -2792,12 +2847,12 @@ const Be = "footer_", ht = "SiteFooter", jn = ({ group: e }) => {
2792
2847
  /* @__PURE__ */ s.jsx("small", { children: /* @__PURE__ */ s.jsx(Pe, { id: `${Be}copyright`, values: { currentYear: (/* @__PURE__ */ new Date()).getFullYear() } }) })
2793
2848
  ] })
2794
2849
  ] }) });
2795
- const ot = "emailHelperTextBox_", to = ({ type: e, email: t, redirectPath: n, resendVerificationCode: r }) => {
2796
- 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(
2797
2852
  (p) => {
2798
2853
  p.preventDefault(), p.stopPropagation();
2799
- const g = (b) => {
2800
- d({
2854
+ const g = (x) => {
2855
+ u({
2801
2856
  path: `${ot}error_verificationFailedToSend`,
2802
2857
  type: "error",
2803
2858
  link: {
@@ -2814,19 +2869,19 @@ const ot = "emailHelperTextBox_", to = ({ type: e, email: t, redirectPath: n, re
2814
2869
  "data-gtm-event-context": "ErrorVerifyingBox",
2815
2870
  "data-gtm-event-type": "email-concierge-click"
2816
2871
  },
2817
- error: b
2872
+ error: x
2818
2873
  });
2819
2874
  };
2820
2875
  if (typeof r != "function") {
2821
2876
  g(i.formatMessage({ id: `${ot}error_noFunction` }));
2822
2877
  return;
2823
2878
  }
2824
- l(!0), r(t).then(() => {
2879
+ d(!0), r(t).then(() => {
2825
2880
  localStorage.setItem("email", t), window.location.href = n || "/signup/verify-email";
2826
- }).catch((b) => {
2827
- g(b.message);
2881
+ }).catch((x) => {
2882
+ g(x.message);
2828
2883
  }).finally(() => {
2829
- l(!1);
2884
+ d(!1);
2830
2885
  });
2831
2886
  },
2832
2887
  /* eslint-disable react-hooks/exhaustive-deps */
@@ -2834,13 +2889,13 @@ const ot = "emailHelperTextBox_", to = ({ type: e, email: t, redirectPath: n, re
2834
2889
  );
2835
2890
  Y(
2836
2891
  () => {
2837
- let p = ot, g = "default", b = {}, v = {};
2892
+ let p = ot, g = "default", x = {}, v = {};
2838
2893
  switch (e) {
2839
2894
  case "gov":
2840
2895
  p += "autoApproved", g = "success";
2841
2896
  break;
2842
2897
  case "nonGov":
2843
- p += "unrecognisedEmail", g = "error", b = {
2898
+ p += "unrecognisedEmail", g = "error", x = {
2844
2899
  href: "https://about.apolitical.co/who-can-join-the-community",
2845
2900
  "data-gtm-event-context": "NonGovEmailHelperTextBox",
2846
2901
  "data-gtm-event-type": "LearnMoreClick"
@@ -2855,7 +2910,7 @@ const ot = "emailHelperTextBox_", to = ({ type: e, email: t, redirectPath: n, re
2855
2910
  };
2856
2911
  break;
2857
2912
  case "verify":
2858
- p += "emailUnverified", g = "error", b = {
2913
+ p += "emailUnverified", g = "error", x = {
2859
2914
  href: "#",
2860
2915
  "data-gtm-event-context": "VerifyEmailBox",
2861
2916
  "data-gtm-event-type": "SendEmailClick",
@@ -2865,7 +2920,7 @@ const ot = "emailHelperTextBox_", to = ({ type: e, email: t, redirectPath: n, re
2865
2920
  };
2866
2921
  break;
2867
2922
  case "exists":
2868
- p += "emailAlreadyExists", g = "error", b = {
2923
+ p += "emailAlreadyExists", g = "error", x = {
2869
2924
  href: "/user-onboarding/login",
2870
2925
  "data-gtm-event-context": "EmailExistsBox",
2871
2926
  "data-gtm-event-type": "login-click"
@@ -2877,22 +2932,22 @@ const ot = "emailHelperTextBox_", to = ({ type: e, email: t, redirectPath: n, re
2877
2932
  };
2878
2933
  break;
2879
2934
  default:
2880
- p += "default", b = {
2935
+ p += "default", x = {
2881
2936
  href: "https://about.apolitical.co/who-can-join-the-community",
2882
2937
  "data-gtm-event-context": "DefaultEmailHelperTextBox",
2883
2938
  "data-gtm-event-type": "LearnMoreClick"
2884
2939
  };
2885
2940
  break;
2886
2941
  }
2887
- d({ ...c, path: p, type: g, link: b, mail: v });
2942
+ u({ ...l, path: p, type: g, link: x, mail: v });
2888
2943
  },
2889
2944
  /* eslint-disable react-hooks/exhaustive-deps */
2890
2945
  [e]
2891
2946
  );
2892
2947
  const m = {};
2893
2948
  return ["link", "mail"].forEach((p) => {
2894
- m[p] = Object.keys(c[p]).length ? (g) => /* @__PURE__ */ s.jsx("a", { ...c[p], children: g }) : (g) => g;
2895
- }), /* @__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: [
2896
2951
  /* @__PURE__ */ s.jsx(Se, { element: "span" }),
2897
2952
  /* @__PURE__ */ s.jsx(Se, { element: "span" })
2898
2953
  ] }) : (
@@ -2900,7 +2955,7 @@ const ot = "emailHelperTextBox_", to = ({ type: e, email: t, redirectPath: n, re
2900
2955
  // @ts-ignore
2901
2956
  // `values` are throwing a type error: https://github.com/formatjs/formatjs/issues/3633
2902
2957
  i.formatMessage(
2903
- { id: `${c.path}_text` },
2958
+ { id: `${l.path}_text` },
2904
2959
  {
2905
2960
  ...m,
2906
2961
  strong: (p) => /* @__PURE__ */ s.jsx("strong", { children: p }),
@@ -2909,7 +2964,7 @@ const ot = "emailHelperTextBox_", to = ({ type: e, email: t, redirectPath: n, re
2909
2964
  /* @__PURE__ */ s.jsx("br", {}),
2910
2965
  /* @__PURE__ */ s.jsx("br", {})
2911
2966
  ] }),
2912
- error: c.error
2967
+ error: l.error
2913
2968
  }
2914
2969
  )
2915
2970
  ) });
@@ -2920,9 +2975,9 @@ const it = "passwordRules_", Yn = "isMoreThanEightCharacters", Gn = "includesNum
2920
2975
  [Jn]: "lowercaseUppercase"
2921
2976
  }, Rr = ({ matchingRules: e = { isMoreThanEightCharacters: !1, includesNumberAndSymbol: !1, includesLowerAndUppercase: !1 }, className: t = "" }) => {
2922
2977
  const n = D();
2923
- return /* @__PURE__ */ s.jsxs("aside", { className: $("password-rules", t), children: [
2978
+ return /* @__PURE__ */ s.jsxs("aside", { className: S("password-rules", t), children: [
2924
2979
  /* @__PURE__ */ s.jsx("small", { children: n.formatMessage({ id: `${it}intro` }) }),
2925
- /* @__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: [
2926
2981
  /* @__PURE__ */ s.jsxs(_e, { children: [
2927
2982
  n.formatMessage({ id: `${it}rule_label` }),
2928
2983
  " "
@@ -2935,17 +2990,17 @@ const it = "passwordRules_", Yn = "isMoreThanEightCharacters", Gn = "includesNum
2935
2990
  ] })
2936
2991
  ] }, `rule-${r}`)) })
2937
2992
  ] });
2938
- }, no = We(Rr);
2939
- const so = ({
2993
+ }, so = We(Rr);
2994
+ const ro = ({
2940
2995
  text: e = {},
2941
2996
  topRating: t = 5,
2942
2997
  functions: { createRating: n = () => null, updateRating: r = () => {
2943
2998
  }, reportError: i = () => {
2944
2999
  } },
2945
- className: c = "",
2946
- hasLoaded: d = !1
3000
+ className: l = "",
3001
+ hasLoaded: u = !1
2947
3002
  }) => {
2948
- 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 () => {
2949
3004
  try {
2950
3005
  const E = await n();
2951
3006
  o((k) => ({ ...k, setUp: !0, id: E && E.id, disabled: !1 }));
@@ -2954,30 +3009,30 @@ const so = ({
2954
3009
  }
2955
3010
  };
2956
3011
  if (Y(() => {
2957
- d && !l.setUp && m();
2958
- }, [d]), !d)
3012
+ u && !d.setUp && m();
3013
+ }, [u]), !u)
2959
3014
  return /* @__PURE__ */ s.jsx(Se, { className: "rating-placeholder" });
2960
- const { id: u, rating: h, disabled: p } = l, g = "ratings_", b = {
3015
+ const { id: c, rating: h, disabled: p } = d, g = "ratings_", x = {
2961
3016
  text: a.formatMessage({ id: `${g}text` }),
2962
3017
  low: a.formatMessage({ id: `${g}low` }),
2963
3018
  high: a.formatMessage({ id: `${g}high` }),
2964
3019
  success: a.formatMessage({ id: `${g}success` }),
2965
3020
  ...e
2966
3021
  }, v = async (E) => {
2967
- if (!(!u || p))
3022
+ if (!(!c || p))
2968
3023
  try {
2969
- 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 });
2970
3025
  } catch (k) {
2971
3026
  o((_) => ({ ..._, rating: null })), i(k);
2972
3027
  } finally {
2973
3028
  o((k) => ({ ...k, disabled: !1 }));
2974
3029
  }
2975
3030
  };
2976
- return /* @__PURE__ */ s.jsxs("div", { className: $("rating", c), children: [
2977
- /* @__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"] }),
2978
3033
  /* @__PURE__ */ s.jsx("ol", { children: Array.from(new Array(t).keys()).map((E) => {
2979
3034
  const k = E + 1;
2980
- 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(
2981
3036
  U,
2982
3037
  {
2983
3038
  variant: "tertiary",
@@ -2986,7 +3041,7 @@ const so = ({
2986
3041
  screenreaderText: `${a.formatMessage(
2987
3042
  { id: `${g}stars` },
2988
3043
  { number: k, total: t }
2989
- )}${k === 1 || k === t ? ` - ${b[k === 1 ? "low" : "high"]}` : ""}`,
3044
+ )}${k === 1 || k === t ? ` - ${x[k === 1 ? "low" : "high"]}` : ""}`,
2990
3045
  onClick: (_) => {
2991
3046
  _.preventDefault(), _.stopPropagation(), v(k);
2992
3047
  },
@@ -3002,24 +3057,24 @@ const Fr = ({
3002
3057
  handleToggle: n = !1,
3003
3058
  defaultValue: r = "",
3004
3059
  gtmContext: i = "search-bar",
3005
- gtmEvent: c = "form-submission"
3060
+ gtmEvent: l = "form-submission"
3006
3061
  }) => {
3007
- 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);
3008
3063
  He(() => {
3009
- !n || a || !d || o.current && o.current.focus();
3010
- }, [d]);
3011
- const m = (u) => {
3012
- 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)}`);
3013
3068
  };
3014
3069
  return /* @__PURE__ */ s.jsx(
3015
3070
  "form",
3016
3071
  {
3017
3072
  onSubmit: m,
3018
- className: $("search-form gtm-trackable", t),
3073
+ className: S("search-form gtm-trackable", t),
3019
3074
  "data-gtm-event-context": i,
3020
- "data-gtm-event-type": c,
3021
- children: /* @__PURE__ */ s.jsx("fieldset", { id: `${e}-form`, hidden: n ? !d : !1, role: "search", children: /* @__PURE__ */ s.jsxs("p", { children: [
3022
- /* @__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" }) }),
3023
3078
  /* @__PURE__ */ s.jsx(
3024
3079
  "input",
3025
3080
  {
@@ -3028,9 +3083,9 @@ const Fr = ({
3028
3083
  id: e,
3029
3084
  name: e,
3030
3085
  defaultValue: r,
3031
- placeholder: l.formatMessage({ id: "search_placeholder" }),
3032
- onKeyDown: (u) => {
3033
- u.key === "Enter" && m(u);
3086
+ placeholder: d.formatMessage({ id: "search_placeholder" }),
3087
+ onKeyDown: (c) => {
3088
+ c.key === "Enter" && m(c);
3034
3089
  }
3035
3090
  }
3036
3091
  ),
@@ -3038,13 +3093,13 @@ const Fr = ({
3038
3093
  "button",
3039
3094
  {
3040
3095
  className: "clear",
3041
- onClick: (u) => {
3042
- 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 = "");
3043
3098
  },
3044
- children: /* @__PURE__ */ s.jsx(_e, { children: l.formatMessage({ id: "search_clear" }) })
3099
+ children: /* @__PURE__ */ s.jsx(_e, { children: d.formatMessage({ id: "search_clear" }) })
3045
3100
  }
3046
3101
  ),
3047
- /* @__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" }) }) })
3048
3103
  ] }) })
3049
3104
  }
3050
3105
  );
@@ -3055,33 +3110,33 @@ const Lr = ({
3055
3110
  ctaMessage: n,
3056
3111
  titleColor: r,
3057
3112
  labelColor: i,
3058
- backgroundColor: c,
3059
- onClose: d,
3113
+ backgroundColor: l,
3114
+ onClose: u,
3060
3115
  reportError: a,
3061
- sendInvites: l,
3116
+ sendInvites: d,
3062
3117
  initialFormStatus: o = "NOT_SUBMITTED"
3063
3118
  /* NOT_SUBMITTED */
3064
3119
  }) => {
3065
- 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) => {
3066
3121
  T.preventDefault();
3067
3122
  try {
3068
- await l(m), u([]), b(
3123
+ await d(m), c([]), x(
3069
3124
  "SUCCESS"
3070
3125
  /* SUCCESS */
3071
3126
  );
3072
3127
  } catch (C) {
3073
- b(
3128
+ x(
3074
3129
  "ERROR"
3075
3130
  /* ERROR */
3076
3131
  ), a(C);
3077
3132
  }
3078
3133
  }, k = (T) => {
3079
- T.preventDefault(), b(
3134
+ T.preventDefault(), x(
3080
3135
  "NOT_SUBMITTED"
3081
3136
  /* NOT_SUBMITTED */
3082
- ), p(!0), u([]);
3137
+ ), p(!0), c([]);
3083
3138
  }, _ = (T) => {
3084
- T.preventDefault(), d(), b(
3139
+ T.preventDefault(), u(), x(
3085
3140
  "CLOSED"
3086
3141
  /* CLOSED */
3087
3142
  );
@@ -3099,9 +3154,9 @@ const Lr = ({
3099
3154
  ] }) : /* @__PURE__ */ s.jsx("div", { className: "invite-form-wrapper", children: /* @__PURE__ */ s.jsxs(
3100
3155
  "form",
3101
3156
  {
3102
- style: { backgroundColor: c },
3157
+ style: { backgroundColor: l },
3103
3158
  onSubmit: E,
3104
- className: $("invite-form gtm-trackable"),
3159
+ className: S("invite-form gtm-trackable"),
3105
3160
  children: [
3106
3161
  /* @__PURE__ */ s.jsxs("fieldset", { className: "content", children: [
3107
3162
  /* @__PURE__ */ s.jsx("h2", { className: "title", style: { color: r }, children: e }),
@@ -3114,7 +3169,7 @@ const Lr = ({
3114
3169
  placeholder: v({ id: "inviteForm_email_placeholder" }),
3115
3170
  emails: m,
3116
3171
  onChange: (T) => {
3117
- u(T), p(!T.length);
3172
+ c(T), p(!T.length);
3118
3173
  },
3119
3174
  autoFocus: !1,
3120
3175
  getLabel: (T, C, R) => /* @__PURE__ */ s.jsxs("div", { className: "email text-medium", children: [
@@ -3148,13 +3203,13 @@ const Lr = ({
3148
3203
  const n = {
3149
3204
  navigation: { loggedIn: 769, loggedOut: 881 },
3150
3205
  search: { loggedIn: 961, loggedOut: 1121 }
3151
- }, r = (c) => {
3152
- const d = `logged${e ? "In" : "Out"}`;
3153
- return t >= n[c][d];
3206
+ }, r = (l) => {
3207
+ const u = `logged${e ? "In" : "Out"}`;
3208
+ return t >= n[l][u];
3154
3209
  };
3155
3210
  let i = {};
3156
- return ["navigation", "search"].forEach((c) => {
3157
- i[c] = r(c);
3211
+ return ["navigation", "search"].forEach((l) => {
3212
+ i[l] = r(l);
3158
3213
  }), i;
3159
3214
  },
3160
3215
  shouldChangeHeaderIsVisible: (e, t, n) => {
@@ -3167,10 +3222,10 @@ const Lr = ({
3167
3222
  if (!t && H.handlerCalled[e] && i - H.handlerCalled[e] < 500)
3168
3223
  return;
3169
3224
  H.handlerCalled[e] = i;
3170
- let c = [{ type: `menus.${e}`, value: t }];
3171
- t === !0 && Object.keys(n).forEach((d) => {
3172
- d === e || n[d] === !1 || c.push({ type: `menus.${d}`, value: !1 });
3173
- }), 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);
3174
3229
  },
3175
3230
  // Find the first child inside a ref that matches the `key` (and optional `value`) we're looking for,
3176
3231
  // so we can automatically focus on the first link inside a menu for accessibility.
@@ -3196,34 +3251,34 @@ const Lr = ({
3196
3251
  autoFocus: ({ menu: e, navigationRef: t, isDesktopVersion: n, focusElements: r, dispatch: i }) => {
3197
3252
  if (!t.current || !t.current.children)
3198
3253
  return;
3199
- const c = n ? "desktop" : "default";
3200
- if (r[e][c]) {
3201
- r[e][c].focus();
3254
+ const l = n ? "desktop" : "default";
3255
+ if (r[e][l]) {
3256
+ r[e][l].focus();
3202
3257
  return;
3203
3258
  }
3204
- let d, a;
3259
+ let u, a;
3205
3260
  switch (e) {
3206
3261
  case "navigation":
3207
3262
  if (n) {
3208
- const l = H.findFirstChild(
3263
+ const d = H.findFirstChild(
3209
3264
  t.current.children,
3210
3265
  "attributes.aria-controls",
3211
3266
  "navigation"
3212
3267
  );
3213
- d = H.findFirstChild(l.children, "href");
3268
+ u = H.findFirstChild(d.children, "href");
3214
3269
  } else
3215
- d = H.findFirstChild(t.current.children, "href");
3216
- d || (d = t.current);
3270
+ u = H.findFirstChild(t.current.children, "href");
3271
+ u || (u = t.current);
3217
3272
  break;
3218
3273
  case "account":
3219
3274
  if (a = H.findFirstChild(t.current.children, "className", "account"), !a || !a.children)
3220
3275
  return;
3221
- d = H.findFirstChild(a.children, "href");
3276
+ u = H.findFirstChild(a.children, "href");
3222
3277
  break;
3223
3278
  default:
3224
3279
  return;
3225
3280
  }
3226
- d && (i([{ type: `focusElements.${e}.${c}`, value: d }]), d.focus());
3281
+ u && (i([{ type: `focusElements.${e}.${l}`, value: u }]), u.focus());
3227
3282
  },
3228
3283
  events: {
3229
3284
  onClick: (e, { id: t, callback: n, isOpen: r }) => {
@@ -3324,14 +3379,14 @@ const Lr = ({
3324
3379
  menus: r = {},
3325
3380
  callback: i = () => {
3326
3381
  },
3327
- doTrack: c = null
3382
+ doTrack: l = null
3328
3383
  }) => {
3329
- const d = D(), a = Mn(pt, e);
3384
+ const u = D(), a = Mn(pt, e);
3330
3385
  if (!a || a.onlyShow && (a.onlyShow === "logged-in" && !t || a.onlyShow === "logged-out" && t))
3331
3386
  return null;
3332
- const l = "doTrack" in a, o = c === null ? l ? a.doTrack : !0 : c, m = e.includes("buttons.");
3333
- let u = `header_${e.replaceAll(".", "_")}`;
3334
- 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"}`);
3335
3390
  let h = !1;
3336
3391
  if (a.href) {
3337
3392
  let k = a.gtmType || `${e}-click`;
@@ -3354,7 +3409,7 @@ const Lr = ({
3354
3409
  ...a.props || {}
3355
3410
  });
3356
3411
  }
3357
- 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;
3358
3413
  let v = {}, E = {};
3359
3414
  if (p) {
3360
3415
  const k = a.menuId || e, _ = {
@@ -3379,8 +3434,8 @@ const Lr = ({
3379
3434
  ..._
3380
3435
  });
3381
3436
  }
3382
- return /* @__PURE__ */ s.jsxs("li", { className: $({ [a.className]: a.className, "has-submenu": p, parent: g, active: b }), role: "none", ...v, children: [
3383
- 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 }),
3384
3439
  a.order && /* @__PURE__ */ s.jsx("ul", { ...E, children: a.order.map((k) => {
3385
3440
  if (!a[k])
3386
3441
  return null;
@@ -3389,46 +3444,46 @@ const Lr = ({
3389
3444
  isDesktopVersion: n,
3390
3445
  menus: r,
3391
3446
  callback: i,
3392
- doTrack: l ? o : null
3447
+ doTrack: d ? o : null
3393
3448
  };
3394
- return a[k].order ? /* @__PURE__ */ s.jsxs("li", { className: $({ [a[k].className]: a[k].className }), children: [
3395
- 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}` }),
3396
3451
  /* @__PURE__ */ s.jsx("ul", { children: a[k].order.map((T) => /* @__PURE__ */ s.jsx(gt, { id: `${e}.${k}.${T}`, ..._ }, T)) })
3397
3452
  ] }, k) : /* @__PURE__ */ s.jsx(gt, { id: `${e}.${k}`, ..._ }, k);
3398
3453
  }) })
3399
3454
  ] }, e);
3400
3455
  };
3401
- const Or = { height: 67, height_desktop: 83 }, Xn = ({ showNavigation: e = !0 }) => {
3402
- 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(
3403
3458
  () => H.getIsDesktopVersion(i, r),
3404
3459
  [i, r]
3405
- ), [d, a] = gs(Js, {
3460
+ ), [u, a] = gs(Js, {
3406
3461
  headerIsVisible: !0,
3407
3462
  menus: { navigation: !1, search: !1, account: !1 },
3408
3463
  focusElements: {
3409
3464
  navigation: { desktop: !1, default: !1 },
3410
3465
  account: { desktop: !1, default: !1 }
3411
3466
  }
3412
- }), { headerIsVisible: l, menus: o, focusElements: m } = d;
3413
- Is({
3414
- scrollPosition: Or[`height${c.navigation ? "_desktop" : ""}`],
3467
+ }), { headerIsVisible: d, menus: o, focusElements: m } = u;
3468
+ Os({
3469
+ scrollPosition: Ir[`height${l.navigation ? "_desktop" : ""}`],
3415
3470
  callbacks: {
3416
3471
  scrollUp: () => {
3417
- !c && o.navigation || H.shouldChangeHeaderIsVisible(!0, o, a);
3472
+ !l && o.navigation || H.shouldChangeHeaderIsVisible(!0, o, a);
3418
3473
  },
3419
3474
  scrollDown: () => {
3420
- !c && o.navigation || H.shouldChangeHeaderIsVisible(!1, o, a);
3475
+ !l && o.navigation || H.shouldChangeHeaderIsVisible(!1, o, a);
3421
3476
  }
3422
3477
  }
3423
3478
  });
3424
- const u = (p, g) => {
3479
+ const c = (p, g) => {
3425
3480
  H.handleMenus({ id: p, value: g, menus: o, dispatch: a });
3426
3481
  }, h = de(null);
3427
3482
  return He(() => {
3428
3483
  o.navigation && H.autoFocus({
3429
3484
  menu: "navigation",
3430
3485
  navigationRef: h,
3431
- isDesktopVersion: c.navigation,
3486
+ isDesktopVersion: l.navigation,
3432
3487
  focusElements: m,
3433
3488
  dispatch: a
3434
3489
  });
@@ -3436,7 +3491,7 @@ const Or = { height: 67, height_desktop: 83 }, Xn = ({ showNavigation: e = !0 })
3436
3491
  o.account && H.autoFocus({
3437
3492
  menu: "account",
3438
3493
  navigationRef: h,
3439
- isDesktopVersion: c.navigation,
3494
+ isDesktopVersion: l.navigation,
3440
3495
  focusElements: m,
3441
3496
  dispatch: a
3442
3497
  });
@@ -3445,10 +3500,10 @@ const Or = { height: 67, height_desktop: 83 }, Xn = ({ showNavigation: e = !0 })
3445
3500
  "nav",
3446
3501
  {
3447
3502
  id: "header",
3448
- className: $({
3503
+ className: S({
3449
3504
  "logged-in": i,
3450
3505
  "logged-out": !i,
3451
- visible: l
3506
+ visible: d
3452
3507
  }),
3453
3508
  children: [
3454
3509
  /* @__PURE__ */ s.jsx(
@@ -3461,12 +3516,12 @@ const Or = { height: 67, height_desktop: 83 }, Xn = ({ showNavigation: e = !0 })
3461
3516
  ),
3462
3517
  /* @__PURE__ */ s.jsx(zn, {}),
3463
3518
  e && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
3464
- !c.navigation && /* @__PURE__ */ s.jsx(
3519
+ !l.navigation && /* @__PURE__ */ s.jsx(
3465
3520
  "button",
3466
3521
  {
3467
3522
  className: "menu-button gtm-trackable",
3468
3523
  onClick: (p) => {
3469
- p.preventDefault(), p.stopPropagation(), u("navigation", !o.navigation);
3524
+ p.preventDefault(), p.stopPropagation(), c("navigation", !o.navigation);
3470
3525
  },
3471
3526
  "data-gtm-event-type": "open-tab-menu-click",
3472
3527
  "data-gtm-event-context": "HeaderLeft-Chevron",
@@ -3483,28 +3538,28 @@ const Or = { height: 67, height_desktop: 83 }, Xn = ({ showNavigation: e = !0 })
3483
3538
  {
3484
3539
  ref: h,
3485
3540
  id: "navigation",
3486
- hidden: c.navigation || o.account ? !1 : !o.navigation,
3541
+ hidden: l.navigation || o.account ? !1 : !o.navigation,
3487
3542
  role: "menu",
3488
- "data-showing": !c.navigation && o.account ? "account" : "default",
3543
+ "data-showing": !l.navigation && o.account ? "account" : "default",
3489
3544
  children: pt.order.map((p) => /* @__PURE__ */ s.jsx(
3490
3545
  gt,
3491
3546
  {
3492
3547
  id: p,
3493
3548
  isLoggedIn: i,
3494
- isDesktopVersion: c.navigation,
3549
+ isDesktopVersion: l.navigation,
3495
3550
  menus: { navigation: o.navigation, account: o.account },
3496
- callback: u
3551
+ callback: c
3497
3552
  },
3498
3553
  p
3499
3554
  ))
3500
3555
  }
3501
3556
  ),
3502
- !c.search && /* @__PURE__ */ s.jsx(
3557
+ !l.search && /* @__PURE__ */ s.jsx(
3503
3558
  "button",
3504
3559
  {
3505
3560
  className: "search toggle-search-button",
3506
3561
  onClick: (p) => {
3507
- p.preventDefault(), p.stopPropagation(), u("search", !o.search);
3562
+ p.preventDefault(), p.stopPropagation(), c("search", !o.search);
3508
3563
  },
3509
3564
  "aria-haspopup": "true",
3510
3565
  "aria-expanded": o.search,
@@ -3525,7 +3580,7 @@ const Or = { height: 67, height_desktop: 83 }, Xn = ({ showNavigation: e = !0 })
3525
3580
  id: "global-search",
3526
3581
  handleToggle: {
3527
3582
  searchIsOpen: o.search,
3528
- isDesktopVersion: c.search
3583
+ isDesktopVersion: l.search
3529
3584
  },
3530
3585
  gtmContext: "search-bar-header",
3531
3586
  gtmEvent: "form-submission"
@@ -3537,11 +3592,11 @@ const Or = { height: 67, height_desktop: 83 }, Xn = ({ showNavigation: e = !0 })
3537
3592
  className: "account-button",
3538
3593
  onClick: (p) => H.events.onClick(p, {
3539
3594
  id: "account",
3540
- callback: u,
3595
+ callback: c,
3541
3596
  isOpen: o.account
3542
3597
  }),
3543
- onMouseEnter: () => H.events.onMouseEnter({ id: "account", callback: u }),
3544
- 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 }),
3545
3600
  "aria-haspopup": "true",
3546
3601
  "aria-expanded": o.account,
3547
3602
  "aria-controls": "navigation",
@@ -3567,8 +3622,8 @@ const Or = { height: 67, height_desktop: 83 }, Xn = ({ showNavigation: e = !0 })
3567
3622
  /* @__PURE__ */ s.jsx(
3568
3623
  "div",
3569
3624
  {
3570
- className: $("overlay", {
3571
- open: o.navigation || o.account || !c.search && o.search
3625
+ className: S("overlay", {
3626
+ open: o.navigation || o.account || !l.search && o.search
3572
3627
  })
3573
3628
  }
3574
3629
  )
@@ -3577,7 +3632,7 @@ const Or = { height: 67, height_desktop: 83 }, Xn = ({ showNavigation: e = !0 })
3577
3632
  const Zn = ({ element: e = "section", children: t, className: n, ...r }) => A.createElement(
3578
3633
  e,
3579
3634
  {
3580
- className: $("modal", n),
3635
+ className: S("modal", n),
3581
3636
  children: typeof t == "string" ? /* @__PURE__ */ s.jsx("p", { children: t }) : t,
3582
3637
  ...r
3583
3638
  }
@@ -3588,27 +3643,27 @@ const Kn = ({
3588
3643
  showDivider: n = !0,
3589
3644
  maxWidth: r,
3590
3645
  functions: { onOpen: i = () => {
3591
- }, onClose: c = () => {
3646
+ }, onClose: l = () => {
3592
3647
  } } = {},
3593
- forceShow: { error: d = !1 } = {},
3648
+ forceShow: { error: u = !1 } = {},
3594
3649
  title: a,
3595
- children: l,
3650
+ children: d,
3596
3651
  buttons: o,
3597
3652
  className: m = "",
3598
- gtmContext: u = "Modal"
3653
+ gtmContext: c = "Modal"
3599
3654
  }) => {
3600
- const h = D(), [p, g] = L(t), b = (E) => {
3601
- 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"));
3602
3657
  };
3603
3658
  Y(() => {
3604
- b(t);
3659
+ x(t);
3605
3660
  }, [t]);
3606
3661
  const v = r ? { "--max-width": `${r / 16}rem` } : {};
3607
- 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(
3608
3663
  Zn,
3609
3664
  {
3610
3665
  id: e,
3611
- className: $("overlay-modal", m, { "has-max-width": r }),
3666
+ className: S("overlay-modal", m, { "has-max-width": r }),
3612
3667
  hidden: !p,
3613
3668
  style: v,
3614
3669
  children: t && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
@@ -3620,39 +3675,39 @@ const Kn = ({
3620
3675
  variant: "tertiary",
3621
3676
  size: "medium",
3622
3677
  icon: { icon: "close" },
3623
- onClick: () => b(!1),
3678
+ onClick: () => x(!1),
3624
3679
  className: "gtm-trackable",
3625
3680
  "data-gtm-event-type": "close-modal-click",
3626
- "data-gtm-event-context": u,
3681
+ "data-gtm-event-context": c,
3627
3682
  screenreaderText: h.formatMessage({ id: "overlay_close" })
3628
3683
  }
3629
3684
  )
3630
3685
  ] }),
3631
3686
  n && /* @__PURE__ */ s.jsx(Ue, {}),
3632
- l,
3687
+ d,
3633
3688
  o && /* @__PURE__ */ s.jsxs("div", { className: "bottom", children: [
3634
3689
  /* @__PURE__ */ s.jsx(Ue, {}),
3635
3690
  /* @__PURE__ */ s.jsx(kt, { buttons: o })
3636
3691
  ] }),
3637
- d && /* @__PURE__ */ s.jsx(Xt, { className: "error", children: d })
3692
+ u && /* @__PURE__ */ s.jsx(Xt, { className: "error", children: u })
3638
3693
  ] })
3639
3694
  }
3640
3695
  ) });
3641
- }, Ir = (e, t) => ({
3696
+ }, Or = (e, t) => ({
3642
3697
  "aria-haspopup": !0,
3643
3698
  "aria-expanded": t,
3644
3699
  "aria-controls": e
3645
3700
  });
3646
- const ro = ({
3701
+ const ao = ({
3647
3702
  className: e,
3648
3703
  showModal: t = !0,
3649
3704
  title: n,
3650
3705
  formTitle: r = "Know someone who might like to join this workshop?",
3651
3706
  formLabel: i = "Invite your colleagues by typing or pasting their emails below.",
3652
- ctaMessage: c = "Send",
3653
- showIcon: d,
3707
+ ctaMessage: l = "Send",
3708
+ showIcon: u,
3654
3709
  onClose: a,
3655
- reportError: l = () => {
3710
+ reportError: d = () => {
3656
3711
  },
3657
3712
  sendInvites: o
3658
3713
  }) => /* @__PURE__ */ s.jsx(
@@ -3661,18 +3716,18 @@ const ro = ({
3661
3716
  title: n,
3662
3717
  isOpen: t,
3663
3718
  showDivider: !1,
3664
- showIcon: d,
3719
+ showIcon: u,
3665
3720
  functions: { onClose: a },
3666
- className: $("invite-modal", e, { success: !!n }),
3721
+ className: S("invite-modal", e, { success: !!n }),
3667
3722
  children: /* @__PURE__ */ s.jsx(
3668
3723
  Lr,
3669
3724
  {
3670
3725
  title: r,
3671
3726
  label: i,
3672
- ctaMessage: c,
3727
+ ctaMessage: l,
3673
3728
  onClose: a,
3674
3729
  sendInvites: o,
3675
- reportError: l
3730
+ reportError: d
3676
3731
  }
3677
3732
  )
3678
3733
  }
@@ -3695,28 +3750,28 @@ const Br = () => {
3695
3750
  additionalContent: { prepended: t, appended: n } = {},
3696
3751
  reportError: r,
3697
3752
  forceShow: i = {},
3698
- styling: c = {},
3699
- className: d = "",
3753
+ styling: l = {},
3754
+ className: u = "",
3700
3755
  locale: a = "en"
3701
3756
  }) => {
3702
- 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();
3703
3758
  Y(() => {
3704
3759
  window.scrollTo(0, 0);
3705
3760
  }, [p]);
3706
- const g = ut(e, { locale: a }), b = ut(t, {
3761
+ const g = ut(e, { locale: a }), x = ut(t, {
3707
3762
  locale: a
3708
3763
  }), v = ut(n, {
3709
3764
  locale: a
3710
3765
  }), E = {};
3711
- 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(
3712
3767
  "div",
3713
3768
  {
3714
3769
  id: "wrapper",
3715
- className: $(d, E, { "has-footer": o }),
3770
+ className: S(u, E, { "has-footer": o }),
3716
3771
  children: [
3717
- /* @__PURE__ */ s.jsx(Xn, { showNavigation: l }),
3772
+ /* @__PURE__ */ s.jsx(Xn, { showNavigation: d }),
3718
3773
  /* @__PURE__ */ s.jsxs("section", { id: "content-wrapper", children: [
3719
- b && /* @__PURE__ */ s.jsx("div", { className: "additional-content prepended", children: b }),
3774
+ x && /* @__PURE__ */ s.jsx("div", { className: "additional-content prepended", children: x }),
3720
3775
  A.createElement(m === "bold" ? Zn : "div", {
3721
3776
  id: "content",
3722
3777
  children: g
@@ -3759,55 +3814,55 @@ const Br = () => {
3759
3814
  return Qt[e] ? (e = Qt[e], { id: e, text: `${yn.default}${e}` }) : null;
3760
3815
  }
3761
3816
  };
3762
- const ao = ({
3817
+ const oo = ({
3763
3818
  tags: e = [],
3764
3819
  color: t = "default",
3765
3820
  forceOneLine: n = !1,
3766
3821
  canHaveLinks: r = !0,
3767
3822
  className: i = "",
3768
- gtmType: c = "tag-click",
3769
- gtmContext: d = "tags"
3823
+ gtmType: l = "tag-click",
3824
+ gtmContext: u = "tags"
3770
3825
  }) => {
3771
3826
  const a = D();
3772
3827
  if (!e || e.length < 1)
3773
3828
  return null;
3774
- const l = [];
3829
+ const d = [];
3775
3830
  return e.forEach((o) => {
3776
3831
  if (!o)
3777
3832
  return;
3778
3833
  const m = Hr.getTagDetails(o);
3779
- m && l.push(m);
3780
- }), 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) => {
3781
3836
  const m = a.formatMessage({ id: o.text });
3782
3837
  return /* @__PURE__ */ s.jsx("li", { children: o.href && r ? /* @__PURE__ */ s.jsx(
3783
3838
  "a",
3784
3839
  {
3785
3840
  href: o.href,
3786
3841
  className: "gtm-trackable",
3787
- "data-gtm-event-type": c,
3788
- "data-gtm-event-context": d,
3842
+ "data-gtm-event-type": l,
3843
+ "data-gtm-event-context": u,
3789
3844
  children: m
3790
3845
  }
3791
3846
  ) : m }, o.id);
3792
3847
  }) });
3793
3848
  };
3794
- const oo = ({
3849
+ const io = ({
3795
3850
  members: { total: e, data: t = [] },
3796
3851
  pagination: n,
3797
3852
  gtmContext: r = "member",
3798
3853
  gtmType: i = "member-click",
3799
- className: c = ""
3854
+ className: l = ""
3800
3855
  }) => {
3801
- const d = D();
3802
- 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: [
3803
3858
  /* @__PURE__ */ s.jsxs("h1", { children: [
3804
- d.formatMessage({ id: "membersList" }),
3859
+ u.formatMessage({ id: "membersList" }),
3805
3860
  /* @__PURE__ */ s.jsx("span", { className: "count", children: e })
3806
3861
  ] }),
3807
- /* @__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: [
3808
3863
  /* @__PURE__ */ s.jsx(tn, { member: a, gtmContext: r, gtmType: i }),
3809
- a.isAdmin && /* @__PURE__ */ s.jsx(ft, { children: d.formatMessage({ id: "membersList_admin" }) })
3810
- ] }, l)) }),
3864
+ a.isAdmin && /* @__PURE__ */ s.jsx(ft, { children: u.formatMessage({ id: "membersList_admin" }) })
3865
+ ] }, d)) }),
3811
3866
  n && /* @__PURE__ */ s.jsx(
3812
3867
  yr,
3813
3868
  {
@@ -3830,8 +3885,8 @@ const ve = "discussion_form_", qn = ({
3830
3885
  },
3831
3886
  inputRef: r,
3832
3887
  maxLength: i = 5e4,
3833
- minRows: c = 4,
3834
- forceShow: d = {
3888
+ minRows: l = 4,
3889
+ forceShow: u = {
3835
3890
  cancel: !1,
3836
3891
  error: !1
3837
3892
  },
@@ -3848,12 +3903,12 @@ const ve = "discussion_form_", qn = ({
3848
3903
  create: { projectNames: ["questions-answers"] }
3849
3904
  }
3850
3905
  },
3851
- gtmContext: l = "DiscussionForm"
3906
+ gtmContext: d = "DiscussionForm"
3852
3907
  }) => {
3853
3908
  var P, G;
3854
- const o = D(), m = je($e), [u, h] = L(
3909
+ const o = D(), m = je($e), [c, h] = L(
3855
3910
  n.isEditing && n.isEditing.text || ""
3856
- ), [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);
3857
3912
  if (r || (r = E), n.isLoading)
3858
3913
  return /* @__PURE__ */ s.jsx(
3859
3914
  Se,
@@ -3862,8 +3917,8 @@ const ve = "discussion_form_", qn = ({
3862
3917
  "data-testid": "loading-placeholder"
3863
3918
  }
3864
3919
  );
3865
- const k = (x) => {
3866
- const K = x.target.value;
3920
+ const k = (b) => {
3921
+ const K = b.target.value;
3867
3922
  h(K);
3868
3923
  let j;
3869
3924
  !m || !m.id ? j = Te(
@@ -3880,12 +3935,12 @@ const ve = "discussion_form_", qn = ({
3880
3935
  };
3881
3936
  let _ = `${e.type}-form`;
3882
3937
  if (e.type === "response" || e.type === "reply") {
3883
- const x = e.type === "response" ? ((P = e.slugs) == null ? void 0 : P.question) || "" : ((G = e.slugs) == null ? void 0 : G.answer) || "";
3884
- 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)}`);
3885
3940
  }
3886
- const T = async (x) => {
3941
+ const T = async (b) => {
3887
3942
  var j;
3888
- if (x.preventDefault(), x.stopPropagation(), !m || !m.id || !t || R)
3943
+ if (b.preventDefault(), b.stopPropagation(), !m || !m.id || !t || R)
3889
3944
  return;
3890
3945
  ct && clearTimeout(ct), v("submitting");
3891
3946
  const K = window.location.pathname;
@@ -3893,11 +3948,11 @@ const ve = "discussion_form_", qn = ({
3893
3948
  let w;
3894
3949
  switch (e.type) {
3895
3950
  case "post":
3896
- w = await a.create({ content: u });
3951
+ w = await a.create({ content: c });
3897
3952
  break;
3898
3953
  case "question":
3899
3954
  w = await a.create({
3900
- title: u,
3955
+ title: c,
3901
3956
  authorId: m && m.id,
3902
3957
  ...(j = a.props) == null ? void 0 : j.create
3903
3958
  });
@@ -3905,13 +3960,13 @@ const ve = "discussion_form_", qn = ({
3905
3960
  case "response":
3906
3961
  w = await a.create(
3907
3962
  { question: e.slugs.question },
3908
- { body: u, authorId: m && m.id, contentPath: K }
3963
+ { body: c, authorId: m && m.id, contentPath: K }
3909
3964
  );
3910
3965
  break;
3911
3966
  case "reply":
3912
3967
  w = await a.create(
3913
3968
  { question: e.slugs.question, answer: e.slugs.answer },
3914
- { body: u, authorId: m && m.id, contentPath: K }
3969
+ { body: c, authorId: m && m.id, contentPath: K }
3915
3970
  );
3916
3971
  break;
3917
3972
  default:
@@ -3939,33 +3994,33 @@ const ve = "discussion_form_", qn = ({
3939
3994
  ct = setTimeout(() => {
3940
3995
  g(!1), v(!1);
3941
3996
  }, 5e3);
3942
- }, R = !u || !Gs(u), V = b === "submitting", N = [];
3943
- 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({
3944
3999
  variant: "secondary",
3945
4000
  size: { mobile: "small", 600: "medium" },
3946
4001
  onClick: a.handleCancel,
3947
4002
  className: "gtm-trackable",
3948
- "data-gtm-event-context": l,
4003
+ "data-gtm-event-context": d,
3949
4004
  "data-gtm-event-type": `cancel-${e.type}-click`,
3950
- disabled: !d.cancel && (!m || !m.id || !u),
4005
+ disabled: !u.cancel && (!m || !m.id || !c),
3951
4006
  children: o.formatMessage({ id: `${ve}cancel` })
3952
4007
  }), N.push({
3953
4008
  variant: "primary",
3954
4009
  size: { mobile: "small", 600: "medium" },
3955
- onClick: (x) => {
4010
+ onClick: (b) => {
3956
4011
  if (n.isEditing) {
3957
4012
  v("submitting"), a.handleSaveEdit && a.handleSaveEdit(
3958
4013
  E.current && "value" in E.current ? E.current.value : ""
3959
4014
  );
3960
4015
  return;
3961
4016
  }
3962
- T(x);
4017
+ T(b);
3963
4018
  },
3964
4019
  className: "gtm-trackable",
3965
- "data-gtm-event-context": l,
4020
+ "data-gtm-event-context": d,
3966
4021
  "data-gtm-event-type": `${n.isEditing ? "save" : "submit"}-${e.type}-click`,
3967
4022
  "data-testid": "save-button",
3968
- 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,
3969
4024
  children: o.formatMessage({
3970
4025
  id: `${ve}${V ? n.isEditing ? "saving" : "posting" : n.isEditing ? "save" : "post"}`
3971
4026
  })
@@ -3973,7 +4028,7 @@ const ve = "discussion_form_", qn = ({
3973
4028
  "form",
3974
4029
  {
3975
4030
  id: _,
3976
- className: $("discussion-card discussion-form", {
4031
+ className: S("discussion-card discussion-form", {
3977
4032
  "no-styling": n.isInWrapper && n.isEditing
3978
4033
  }),
3979
4034
  "data-testid": `discussion-${e.type}-form`,
@@ -3983,7 +4038,7 @@ const ve = "discussion_form_", qn = ({
3983
4038
  tn,
3984
4039
  {
3985
4040
  member: m || "community",
3986
- gtmContext: l,
4041
+ gtmContext: d,
3987
4042
  gtmType: "profile-click"
3988
4043
  }
3989
4044
  ),
@@ -4001,31 +4056,31 @@ const ve = "discussion_form_", qn = ({
4001
4056
  "action"
4002
4057
  ),
4003
4058
  onChange: k,
4004
- value: u,
4059
+ value: c,
4005
4060
  maxLength: i,
4006
4061
  "aria-invalid": !!p,
4007
4062
  "aria-errormessage": "error-message",
4008
- minRows: c,
4063
+ minRows: l,
4009
4064
  autoFocus: !!n.isEditing
4010
4065
  }
4011
4066
  ),
4012
4067
  /* @__PURE__ */ s.jsx("small", { children: Te(o.formatMessage, `${ve}explainer`, e.type, "action", {
4013
- a: (x) => /* @__PURE__ */ s.jsx(
4068
+ a: (b) => /* @__PURE__ */ s.jsx(
4014
4069
  "a",
4015
4070
  {
4016
4071
  href: "https://about.apolitical.co/q-and-a-community-guidelines",
4017
4072
  target: "_blank",
4018
4073
  className: "gtm-trackable",
4019
- "data-gtm-event-context": l,
4074
+ "data-gtm-event-context": d,
4020
4075
  "data-gtm-event-type": "community-guidelines-link",
4021
4076
  rel: "noreferrer",
4022
- children: x
4077
+ children: b
4023
4078
  }
4024
4079
  )
4025
4080
  }) }),
4026
4081
  /* @__PURE__ */ s.jsx(kt, { buttons: N }),
4027
- b === "submitted" && /* @__PURE__ */ s.jsx(Xt, { className: "success", "data-testid": "success", children: Te(o.formatMessage, `${ve}success`, e.type, "action") }),
4028
- 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(
4029
4084
  { id: p },
4030
4085
  {
4031
4086
  action: o.formatMessage({
@@ -4040,14 +4095,14 @@ const ve = "discussion_form_", qn = ({
4040
4095
  }, nn = ({
4041
4096
  contentType: e,
4042
4097
  createPost: t,
4043
- membershipRequiredToPost: { isMember: n, required: r, join: i, leave: c, notMemberStateText: d }
4098
+ membershipRequiredToPost: { isMember: n, required: r, join: i, leave: l, notMemberStateText: u }
4044
4099
  }) => r && !n ? /* @__PURE__ */ s.jsx(
4045
4100
  yt,
4046
4101
  {
4047
- text: d,
4102
+ text: u,
4048
4103
  button: {
4049
4104
  breakpoints: { mobile: !0, 901: !1 },
4050
- 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 } })
4051
4106
  }
4052
4107
  }
4053
4108
  ) : /* @__PURE__ */ s.jsx(
@@ -4085,42 +4140,42 @@ const Ht = () => {
4085
4140
  peopleWhoLiked: n = !1,
4086
4141
  isShort: r = !0,
4087
4142
  userLiked: i = !1,
4088
- content: c = { type: "reply", slugs: {} },
4089
- canLike: d = !0,
4143
+ content: l = { type: "reply", slugs: {} },
4144
+ canLike: u = !0,
4090
4145
  functions: { createLike: a = () => {
4091
- }, deleteLike: l = () => {
4146
+ }, deleteLike: d = () => {
4092
4147
  } } = {}
4093
4148
  }) => {
4094
4149
  const o = D();
4095
4150
  Y(() => {
4096
4151
  p(i);
4097
4152
  }, [i]);
4098
- 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) => {
4099
4154
  if (C.preventDefault(), C.stopPropagation(), E(!1), Ke)
4100
4155
  return Ht(), !1;
4101
- if (Ht(), g || !d)
4156
+ if (Ht(), g || !u)
4102
4157
  return !1;
4103
4158
  Ke = setTimeout(T, 350);
4104
4159
  }, T = async () => {
4105
- if (Ht(), g || !d)
4160
+ if (Ht(), g || !u)
4106
4161
  return !1;
4107
4162
  let C = h ? m - 1 : m + 1;
4108
- C < 0 && (C = 0), b(!0), u(C), p(!h);
4163
+ C < 0 && (C = 0), x(!0), c(C), p(!h);
4109
4164
  try {
4110
- if (c && c.slugs) {
4111
- const R = zr(c.slugs);
4112
- 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 });
4113
4168
  }
4114
4169
  } catch {
4115
- u(t), p(i);
4170
+ c(t), p(i);
4116
4171
  } finally {
4117
- b(!1);
4172
+ x(!1);
4118
4173
  }
4119
4174
  };
4120
4175
  return A.createElement(
4121
4176
  e,
4122
4177
  {
4123
- 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 }),
4124
4179
  onClick: _,
4125
4180
  onMouseEnter: () => {
4126
4181
  E(!0);
@@ -4141,19 +4196,19 @@ const Ht = () => {
4141
4196
  variant: "tertiary",
4142
4197
  size: "medium",
4143
4198
  icon: { icon: h ? "heart" : "heart_empty", animate: "bounce" },
4144
- className: $({ "do-animation": h && !i }),
4145
- screenreaderText: d ? o.formatMessage({
4199
+ className: S({ "do-animation": h && !i }),
4200
+ screenreaderText: u ? o.formatMessage({
4146
4201
  id: `discussion_likes_${h ? "unlike" : "like"}`
4147
- }, { action: o.formatMessage({ id: `discussion_action_${c.type}` }) }) : !1,
4202
+ }, { action: o.formatMessage({ id: `discussion_action_${l.type}` }) }) : !1,
4148
4203
  onClick: _,
4149
- disabled: !d,
4150
- "aria-hidden": !d,
4204
+ disabled: !u,
4205
+ "aria-hidden": !u,
4151
4206
  "data-testid": "like-button",
4152
4207
  "data-gtm-event-context": "Likes",
4153
- "data-gtm-event-type": `like-${c.type}-click`
4208
+ "data-gtm-event-type": `like-${l.type}-click`
4154
4209
  }
4155
4210
  ),
4156
- /* @__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 }) }),
4157
4212
  n && /* @__PURE__ */ s.jsx(qs, { isOpen: v, isLoading: n.length === 0, children: n.length && /* @__PURE__ */ s.jsxs("ul", { children: [
4158
4213
  k.map((C) => typeof C == "string" || !C.name ? null : /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(
4159
4214
  jt,
@@ -4181,7 +4236,7 @@ const De = "discussion_", Gr = 280, St = ({
4181
4236
  isLoading: r = !1,
4182
4237
  originalAuthorId: i,
4183
4238
  functions: {
4184
- content: { createContent: c, deleteContent: d, updateContent: a } = {
4239
+ content: { createContent: l, deleteContent: u, updateContent: a } = {
4185
4240
  createContent: () => {
4186
4241
  },
4187
4242
  deleteContent: () => {
@@ -4189,17 +4244,17 @@ const De = "discussion_", Gr = 280, St = ({
4189
4244
  updateContent: () => {
4190
4245
  }
4191
4246
  },
4192
- likes: { createLike: l, deleteLike: o } = { createLike: () => {
4247
+ likes: { createLike: d, deleteLike: o } = { createLike: () => {
4193
4248
  }, deleteLike: () => {
4194
4249
  } },
4195
4250
  comments: { openComments: m } = { openComments: () => {
4196
4251
  } }
4197
4252
  },
4198
- links: u = {},
4253
+ links: c = {},
4199
4254
  className: h,
4200
4255
  gtmContext: p = "DiscussionAnswer",
4201
4256
  children: g,
4202
- isTruncated: b = !1
4257
+ isTruncated: x = !1
4203
4258
  }) => {
4204
4259
  const v = D(), E = je($e), k = je(Et), [_, T] = L({
4205
4260
  body: t && t.body || "",
@@ -4214,14 +4269,14 @@ const De = "discussion_", Gr = 280, St = ({
4214
4269
  });
4215
4270
  }, [t.isEdited]), r || !t || t.type === "answer" && (!t.slugs || !t.slugs.question))
4216
4271
  return /* @__PURE__ */ s.jsx(Se, { className: "discussion-card discussion-post" });
4217
- 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) => {
4218
- 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("");
4219
4274
  try {
4220
- if (!Ns(O, _.body)) {
4221
- const oe = t.type === "question" ? { title: O } : { body: O };
4275
+ if (!Ns(I, _.body)) {
4276
+ const oe = t.type === "question" ? { title: I } : { body: I };
4222
4277
  await a(En(t.slugs), oe);
4223
4278
  }
4224
- T({ body: O, isEditing: !1, didEdit: !0 });
4279
+ T({ body: I, isEditing: !1, didEdit: !0 });
4225
4280
  } catch {
4226
4281
  N(`${De}form_error`);
4227
4282
  }
@@ -4233,7 +4288,7 @@ const De = "discussion_", Gr = 280, St = ({
4233
4288
  }, fe = () => {
4234
4289
  R(!1);
4235
4290
  try {
4236
- d(En(t.slugs));
4291
+ u(En(t.slugs));
4237
4292
  } catch {
4238
4293
  N("delete-error");
4239
4294
  }
@@ -4266,36 +4321,36 @@ const De = "discussion_", Gr = 280, St = ({
4266
4321
  },
4267
4322
  {
4268
4323
  text: v.formatMessage({ id: `${De}moreMenu_delete` }),
4269
- onClick: (O) => {
4270
- O.preventDefault(), O.stopPropagation(), R(!0);
4324
+ onClick: (I) => {
4325
+ I.preventDefault(), I.stopPropagation(), R(!0);
4271
4326
  },
4272
4327
  icon: "trash",
4273
4328
  className: "gtm-trackable",
4274
4329
  "data-gtm-event-context": p,
4275
4330
  "data-gtm-event-type": `delete-${t.type}-click`,
4276
- ...Ir(`delete-${t.slug}-modal`, C)
4331
+ ...Or(`delete-${t.slug}-modal`, C)
4277
4332
  }
4278
4333
  ), A.createElement(e, {
4279
- className: $("discussion-post", h),
4334
+ className: S("discussion-post", h),
4280
4335
  "data-testid": `discussion-${t.type}-thread`,
4281
4336
  children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
4282
4337
  /* @__PURE__ */ s.jsxs(
4283
4338
  "div",
4284
4339
  {
4285
4340
  id: K || t.slug,
4286
- className: $("discussion-card", t.type, {
4341
+ className: S("discussion-card", t.type, {
4287
4342
  editing: _.isEditing,
4288
- "has-link": u.post && !_.isEditing
4343
+ "has-link": c.post && !_.isEditing
4289
4344
  }),
4290
- onClick: (O) => {
4291
- !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);
4292
4347
  },
4293
4348
  children: [
4294
4349
  !_.isEditing && /* @__PURE__ */ s.jsx(
4295
4350
  tn,
4296
4351
  {
4297
4352
  member: P,
4298
- additionalContent: { createdAt: x, didEdit: _.didEdit },
4353
+ additionalContent: { createdAt: b, didEdit: _.didEdit },
4299
4354
  className: typeof P != "string" && P.id === i ? "highlighted" : "",
4300
4355
  gtmContext: p,
4301
4356
  gtmType: "profile-click"
@@ -4323,7 +4378,7 @@ const De = "discussion_", Gr = 280, St = ({
4323
4378
  ) : !1
4324
4379
  },
4325
4380
  functions: {
4326
- create: c,
4381
+ create: l,
4327
4382
  handleSaveEdit: ae,
4328
4383
  handleCancel: () => {
4329
4384
  N(""), T({ ..._, isEditing: !1 });
@@ -4331,10 +4386,10 @@ const De = "discussion_", Gr = 280, St = ({
4331
4386
  },
4332
4387
  gtmContext: `${p}Form`
4333
4388
  }
4334
- ) : u.post ? /* @__PURE__ */ s.jsx(
4389
+ ) : c.post ? /* @__PURE__ */ s.jsx(
4335
4390
  "a",
4336
4391
  {
4337
- href: u.post,
4392
+ href: c.post,
4338
4393
  className: "gtm-trackable",
4339
4394
  "data-gtm-event-context": p,
4340
4395
  "data-gtm-event-type": "title-click",
@@ -4355,7 +4410,7 @@ const De = "discussion_", Gr = 280, St = ({
4355
4410
  !_.isEditing && /* @__PURE__ */ s.jsxs(
4356
4411
  "ul",
4357
4412
  {
4358
- className: $("actions text-medium", t.type),
4413
+ className: S("actions text-medium", t.type),
4359
4414
  "data-testid": `${t.type}-actions`,
4360
4415
  children: [
4361
4416
  /* @__PURE__ */ s.jsx(
@@ -4369,17 +4424,17 @@ const De = "discussion_", Gr = 280, St = ({
4369
4424
  canLike: re,
4370
4425
  peopleWhoLiked: t.peopleWhoLiked,
4371
4426
  functions: {
4372
- createLike: l,
4427
+ createLike: d,
4373
4428
  deleteLike: o
4374
4429
  }
4375
4430
  }
4376
4431
  ),
4377
- (["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(
4378
4433
  "li",
4379
4434
  {
4380
4435
  className: "action-button",
4381
- onClick: (O) => {
4382
- 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();
4383
4438
  },
4384
4439
  children: [
4385
4440
  /* @__PURE__ */ s.jsx(
@@ -4389,8 +4444,8 @@ const De = "discussion_", Gr = 280, St = ({
4389
4444
  size: "medium",
4390
4445
  styling: { muted: !0 },
4391
4446
  icon: { icon: "speech-bubble_square_thick" },
4392
- href: u.comments ? u.comments : !1,
4393
- onClick: u.comments || typeof m != "function" ? !1 : m,
4447
+ href: c.comments ? c.comments : !1,
4448
+ onClick: c.comments || typeof m != "function" ? !1 : m,
4394
4449
  className: "gtm-trackable",
4395
4450
  "data-gtm-event-context": p,
4396
4451
  "data-gtm-event-type": `answer-${t.type}-click`,
@@ -4472,7 +4527,7 @@ const De = "discussion_", Gr = 280, St = ({
4472
4527
  {
4473
4528
  id: "discussion_delete_text",
4474
4529
  values: {
4475
- p: (O) => /* @__PURE__ */ s.jsx("p", { children: O }),
4530
+ p: (I) => /* @__PURE__ */ s.jsx("p", { children: I }),
4476
4531
  action: v.formatMessage({
4477
4532
  id: `discussion_action_${t.type}`
4478
4533
  })
@@ -4484,7 +4539,7 @@ const De = "discussion_", Gr = 280, St = ({
4484
4539
  ] })
4485
4540
  });
4486
4541
  };
4487
- const Wt = "discussion_responses_", io = ({ type: e = "answer", responses: t = 0 }) => {
4542
+ const Wt = "discussion_responses_", co = ({ type: e = "answer", responses: t = 0 }) => {
4488
4543
  const n = D();
4489
4544
  return /* @__PURE__ */ s.jsxs("div", { className: "responses-heading", children: [
4490
4545
  /* @__PURE__ */ s.jsx("h3", { children: n.formatMessage({ id: `${Wt}title` }, { action: n.formatMessage({ id: `${Wt}${e}` }), count: t }) }),
@@ -4492,38 +4547,38 @@ const Wt = "discussion_responses_", io = ({ type: e = "answer", responses: t = 0
4492
4547
  ] });
4493
4548
  };
4494
4549
  const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4495
- 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(
4496
4551
  "closed"
4497
4552
  /* Closed */
4498
4553
  );
4499
4554
  Y(() => {
4500
- const u = i.current;
4501
- if (u)
4502
- return u.addEventListener("transitionend", l), () => {
4503
- u.removeEventListener("transitionend", l);
4555
+ const c = i.current;
4556
+ if (c)
4557
+ return c.addEventListener("transitionend", d), () => {
4558
+ c.removeEventListener("transitionend", d);
4504
4559
  };
4505
4560
  }, []), He(() => {
4506
- d === "closed" && !c.showThread || a(
4561
+ u === "closed" && !l.showThread || a(
4507
4562
  [
4508
4563
  "opening",
4509
4564
  "open"
4510
4565
  /* Open */
4511
- ].includes(d) ? "ready-to-close" : "opening"
4566
+ ].includes(u) ? "ready-to-close" : "opening"
4512
4567
  /* Opening */
4513
4568
  );
4514
- }, [c.showThread]), Y(() => {
4515
- d === "ready-to-close" && a(
4569
+ }, [l.showThread]), Y(() => {
4570
+ u === "ready-to-close" && a(
4516
4571
  "closing"
4517
4572
  /* Closing */
4518
4573
  );
4519
- }, [d]);
4520
- const l = ({ propertyName: u }) => {
4521
- 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);
4522
4577
  }, o = [
4523
4578
  "opening",
4524
4579
  "open"
4525
4580
  /* Open */
4526
- ].includes(d), m = ut(n, {
4581
+ ].includes(u), m = ut(n, {
4527
4582
  element: "li"
4528
4583
  });
4529
4584
  return /* @__PURE__ */ s.jsxs("div", { className: "thread-wrapper", children: [
@@ -4535,8 +4590,8 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4535
4590
  styling: { muted: !0 },
4536
4591
  icon: { icon: `arrow_corner-down_${o ? "left" : "right"}` },
4537
4592
  onClick: () => {
4538
- var u;
4539
- (u = c.updateConversation) == null || u.call(c, (h) => ({
4593
+ var c;
4594
+ (c = l.updateConversation) == null || c.call(l, (h) => ({
4540
4595
  showThread: !h.showThread,
4541
4596
  showForm: !1
4542
4597
  }));
@@ -4551,8 +4606,8 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4551
4606
  "ul",
4552
4607
  {
4553
4608
  ref: i,
4554
- className: $("thread", d),
4555
- hidden: !c.showThread,
4609
+ className: S("thread", u),
4610
+ hidden: !l.showThread,
4556
4611
  children: m
4557
4612
  }
4558
4613
  )
@@ -4586,11 +4641,11 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4586
4641
  }) => ({ mutationFn: r, onMutate: async ({ content: a }) => {
4587
4642
  if (!n)
4588
4643
  return;
4589
- const l = Xr({ user: n, content: a, verb: "post" });
4644
+ const d = Xr({ user: n, content: a, verb: "post" });
4590
4645
  await e.cancelQueries({ queryKey: t });
4591
4646
  const o = e.getQueryData(t);
4592
- return e.setQueryData(t, (m) => [...m, l]), { previousActivities: o };
4593
- }, onError: (a, l, o) => {
4647
+ return e.setQueryData(t, (m) => [...m, d]), { previousActivities: o };
4648
+ }, onError: (a, d, o) => {
4594
4649
  e.setQueryData(t, o.previousActivities);
4595
4650
  }, onSettled: () => {
4596
4651
  e.invalidateQueries({ queryKey: t });
@@ -4601,17 +4656,17 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4601
4656
  }) => ({
4602
4657
  mutationFn: n,
4603
4658
  onMutate: async ({
4604
- activityInfo: d,
4659
+ activityInfo: u,
4605
4660
  content: { body: a }
4606
4661
  }) => {
4607
4662
  if (a.length === 0)
4608
4663
  return;
4609
4664
  await e.cancelQueries({ queryKey: t });
4610
- 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));
4611
4666
  return e.setQueryData(t, () => o && [...o]), { previousActivities: o };
4612
4667
  },
4613
- onError: (d, a, l) => {
4614
- e.setQueryData(t, l.previousActivities);
4668
+ onError: (u, a, d) => {
4669
+ e.setQueryData(t, d.previousActivities);
4615
4670
  },
4616
4671
  onSettled: () => {
4617
4672
  e.invalidateQueries({ queryKey: t });
@@ -4620,17 +4675,17 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4620
4675
  queryClient: e,
4621
4676
  queryKey: t,
4622
4677
  mutationFn: n
4623
- }) => ({ mutationFn: n, onMutate: async ({ activityId: d }) => {
4678
+ }) => ({ mutationFn: n, onMutate: async ({ activityId: u }) => {
4624
4679
  await e.cancelQueries({ queryKey: t });
4625
- const a = e.getQueryData(t), l = a == null ? void 0 : a.filter(
4626
- (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
4627
4682
  );
4628
- return e.setQueryData(t, () => l && [...l]), { previousActivities: l };
4629
- }, onError: (d, a, l) => {
4630
- e.setQueryData(t, l.previousActivities);
4631
- }, 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) => {
4632
4687
  e.invalidateQueries({
4633
- queryKey: [...t, l.activityId]
4688
+ queryKey: [...t, d.activityId]
4634
4689
  });
4635
4690
  } }), ea = ({
4636
4691
  queryClient: e,
@@ -4638,20 +4693,20 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4638
4693
  mutationFn: n
4639
4694
  }) => ({ mutationFn: n, onMutate: async ({ activityId: a }) => {
4640
4695
  await e.cancelQueries({ queryKey: t });
4641
- const l = e.getQueryData(t), o = l == null ? void 0 : l.map((m) => {
4642
- var u;
4643
- 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;
4644
4699
  });
4645
4700
  return e.setQueryData(t, () => o && [...o]), { previousActivities: o };
4646
- }, onError: (a, l, o) => {
4701
+ }, onError: (a, d, o) => {
4647
4702
  e.setQueryData(t, o.previousActivities);
4648
4703
  }, onSuccess: (a) => {
4649
- const l = e.getQueryData(t), o = l == null ? void 0 : l.map((m) => {
4650
- var u, h;
4651
- 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;
4652
4707
  });
4653
- return e.setQueryData(t, () => o && [...o]), { previousActivities: l };
4654
- }, onSettled: (a, l, o) => {
4708
+ return e.setQueryData(t, () => o && [...o]), { previousActivities: d };
4709
+ }, onSettled: (a, d, o) => {
4655
4710
  e.invalidateQueries({
4656
4711
  queryKey: [...t, o.activityId]
4657
4712
  });
@@ -4660,22 +4715,22 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4660
4715
  queryKey: t,
4661
4716
  user: n,
4662
4717
  mutationFn: r
4663
- }) => ({ mutationFn: r, onMutate: async ({ activityId: l }) => {
4718
+ }) => ({ mutationFn: r, onMutate: async ({ activityId: d }) => {
4664
4719
  await e.cancelQueries({ queryKey: t });
4665
- 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) => {
4666
4721
  var h;
4667
- 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;
4668
4723
  });
4669
4724
  return e.setQueryData(t, () => m && [...m]), { previousActivities: m };
4670
- }, onError: (l, o, m) => {
4725
+ }, onError: (d, o, m) => {
4671
4726
  e.setQueryData(t, m.previousActivities);
4672
- }, onSuccess: (l, { activityId: o }) => {
4673
- const m = e.getQueryData(t), u = m == null ? void 0 : m.map((h) => {
4674
- 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;
4675
4730
  if (h.id === o) {
4676
- 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(
4677
4732
  (_) => _.user_id === (n == null ? void 0 : n.id)
4678
- )) == null ? void 0 : b.id;
4733
+ )) == null ? void 0 : x.id;
4679
4734
  return h.own_reactions.like = (v = h.own_reactions.like) == null ? void 0 : v.filter(
4680
4735
  (_) => _.id !== k
4681
4736
  ), h.latest_reactions.like = (E = h.latest_reactions.like) == null ? void 0 : E.filter(
@@ -4684,20 +4739,20 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4684
4739
  } else
4685
4740
  return h;
4686
4741
  });
4687
- return e.setQueryData(t, () => u && [...u]), { previousActivities: m };
4688
- }, onSettled: (l, o, m) => {
4742
+ return e.setQueryData(t, () => c && [...c]), { previousActivities: m };
4743
+ }, onSettled: (d, o, m) => {
4689
4744
  e.invalidateQueries({
4690
4745
  queryKey: [...t, m.activityId]
4691
4746
  });
4692
- } }), co = ({
4747
+ } }), lo = ({
4693
4748
  basePath: e,
4694
4749
  parentId: t,
4695
4750
  isMember: n,
4696
- 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 }
4697
4752
  }) => {
4698
- const u = D(), h = wt(), p = je($e), {
4753
+ const c = D(), h = wt(), p = je($e), {
4699
4754
  data: g,
4700
- error: b,
4755
+ error: x,
4701
4756
  isLoading: v,
4702
4757
  isFetching: E
4703
4758
  } = Tn({
@@ -4711,13 +4766,13 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4711
4766
  }), { mutate: _ } = ie(k), T = Kr({
4712
4767
  queryClient: h,
4713
4768
  queryKey: [e, t],
4714
- mutationFn: async (w) => await c(w)
4769
+ mutationFn: async (w) => await l(w)
4715
4770
  }), {
4716
4771
  mutate: C
4717
4772
  } = ie(T), R = qr({
4718
4773
  queryClient: h,
4719
4774
  queryKey: [e, t],
4720
- mutationFn: async ({ activityId: w }) => await d({ activityId: w })
4775
+ mutationFn: async ({ activityId: w }) => await u({ activityId: w })
4721
4776
  }), {
4722
4777
  mutate: V
4723
4778
  } = ie(R), N = ea({
@@ -4737,18 +4792,18 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4737
4792
  )), X = (ae = (re = (se = z == null ? void 0 : z.own_reactions) == null ? void 0 : se.like) == null ? void 0 : re.find(
4738
4793
  (q) => q.user_id === (p == null ? void 0 : p.id)
4739
4794
  )) == null ? void 0 : ae.id;
4740
- await l({ reactionId: X || "", activityId: w });
4795
+ await d({ reactionId: X || "", activityId: w });
4741
4796
  }
4742
4797
  }), {
4743
- mutate: x
4798
+ mutate: b
4744
4799
  } = ie(G), K = Me(
4745
4800
  ({ activityId: w }) => P({ activityId: w }),
4746
4801
  [P]
4747
4802
  ), j = Me(
4748
- ({ activityId: w }) => x({ activityId: w }),
4749
- [x]
4803
+ ({ activityId: w }) => b({ activityId: w }),
4804
+ [b]
4750
4805
  );
4751
- 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: [
4752
4807
  /* @__PURE__ */ s.jsx(
4753
4808
  nn,
4754
4809
  {
@@ -4759,12 +4814,12 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4759
4814
  required: !0,
4760
4815
  join: o,
4761
4816
  leave: m,
4762
- notMemberStateText: u.formatMessage({ id: "community_joinToPost" })
4817
+ notMemberStateText: c.formatMessage({ id: "community_joinToPost" })
4763
4818
  }
4764
4819
  }
4765
4820
  ),
4766
4821
  !E && Array.isArray(g) && (g == null ? void 0 : g.map((w) => {
4767
- 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;
4768
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);
4769
4824
  return /* @__PURE__ */ s.jsxs(Vt, { children: [
4770
4825
  /* @__PURE__ */ s.jsx(
@@ -4781,7 +4836,7 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4781
4836
  id: (re = w == null ? void 0 : w.actor) == null ? void 0 : re.id,
4782
4837
  name: `${(q = (ae = w == null ? void 0 : w.actor) == null ? void 0 : ae.data) == null ? void 0 : q.name}`,
4783
4838
  organization: (ue = (fe = w == null ? void 0 : w.actor) == null ? void 0 : fe.data) == null ? void 0 : ue.organization,
4784
- 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,
4785
4840
  image: {
4786
4841
  thumbnail: ((ce = (he = w == null ? void 0 : w.actor) == null ? void 0 : he.data) == null ? void 0 : ce.thumbnail) || void 0
4787
4842
  }
@@ -4832,17 +4887,17 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4832
4887
  mutationFn: n
4833
4888
  }) => ({ mutationFn: n, onMutate: async () => {
4834
4889
  await e.cancelQueries({ queryKey: t });
4835
- }, onError: (a, l, o) => {
4890
+ }, onError: (a, d, o) => {
4836
4891
  e.setQueryData(t, o.previousActivity);
4837
4892
  }, onSuccess: (a) => {
4838
4893
  var o;
4839
- const l = e.getQueryData(t);
4840
- if (l)
4841
- return (o = l == null ? void 0 : l.latest_reactions) != null && o.reply ? (l.latest_reactions.reply.unshift(a), l && (l.reaction_counts = {
4842
- reply: l.latest_reactions.reply.length
4843
- })) : (l.latest_reactions = { reply: [a] }, l.reaction_counts = { reply: 1 }), e.setQueryData(t, () => ({
4844
- ...l
4845
- })), { 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 };
4846
4901
  }, onSettled: () => {
4847
4902
  e.invalidateQueries({ queryKey: t });
4848
4903
  } }), sa = ({
@@ -4852,70 +4907,70 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4852
4907
  }) => ({
4853
4908
  mutationFn: n,
4854
4909
  onMutate: async ({
4855
- replyInfo: c,
4856
- content: { body: d }
4910
+ replyInfo: l,
4911
+ content: { body: u }
4857
4912
  }) => {
4858
- var o, m, u;
4859
- if (d.length === 0)
4913
+ var o, m, c;
4914
+ if (u.length === 0)
4860
4915
  return;
4861
4916
  await e.cancelQueries({ queryKey: t });
4862
4917
  const a = e.getQueryData(t);
4863
4918
  if (!a || !((o = a == null ? void 0 : a.latest_reactions) != null && o.reply))
4864
4919
  return;
4865
- 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));
4866
4921
  return e.setQueryData(t, () => ({
4867
4922
  ...a,
4868
- latest_reactions: { reply: l }
4923
+ latest_reactions: { reply: d }
4869
4924
  })), { previousActivity: a };
4870
4925
  },
4871
- onError: (c, d, a) => {
4926
+ onError: (l, u, a) => {
4872
4927
  e.setQueryData(t, a.previousActivity);
4873
4928
  }
4874
4929
  }), ra = ({
4875
4930
  queryClient: e,
4876
4931
  queryKey: t,
4877
4932
  mutationFn: n
4878
- }) => ({ mutationFn: n, onMutate: async ({ replyId: c }) => {
4879
- var l, o, m;
4933
+ }) => ({ mutationFn: n, onMutate: async ({ replyId: l }) => {
4934
+ var d, o, m;
4880
4935
  await e.cancelQueries({ queryKey: t });
4881
- const d = e.getQueryData(t);
4882
- 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))
4883
4938
  return;
4884
- const a = (m = (o = d == null ? void 0 : d.latest_reactions) == null ? void 0 : o.reply) == null ? void 0 : m.filter(
4885
- (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
4886
4941
  );
4887
4942
  return e.setQueryData(t, () => ({
4888
- ...d,
4943
+ ...u,
4889
4944
  latest_reactions: { reply: a }
4890
- })), { previousActivity: d };
4891
- }, onError: (c, d, a) => {
4945
+ })), { previousActivity: u };
4946
+ }, onError: (l, u, a) => {
4892
4947
  e.setQueryData(t, a.previousActivity);
4893
4948
  } }), aa = ({
4894
4949
  queryClient: e,
4895
4950
  queryKey: t,
4896
4951
  mutationFn: n
4897
- }) => ({ mutationFn: n, onMutate: async ({ replyId: d }) => {
4952
+ }) => ({ mutationFn: n, onMutate: async ({ replyId: u }) => {
4898
4953
  var o, m;
4899
4954
  await e.cancelQueries({ queryKey: t });
4900
- 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) => {
4901
4956
  var h;
4902
- 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;
4903
4958
  });
4904
4959
  return e.setQueryData(t, () => ({
4905
4960
  ...a,
4906
- latest_reactions: { reply: l }
4961
+ latest_reactions: { reply: d }
4907
4962
  })), { previousActivity: a };
4908
- }, onError: (d, a, l) => {
4909
- e.setQueryData(t, l.previousActivity);
4910
- }, onSuccess: (d) => {
4963
+ }, onError: (u, a, d) => {
4964
+ e.setQueryData(t, d.previousActivity);
4965
+ }, onSuccess: (u) => {
4911
4966
  var o;
4912
- const a = e.getQueryData(t), l = (o = a == null ? void 0 : a.latest_reactions.reply) == null ? void 0 : o.map((m) => {
4913
- var u, h;
4914
- 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;
4915
4970
  });
4916
4971
  return e.setQueryData(t, () => ({
4917
4972
  ...a,
4918
- latest_reactions: { reply: l }
4973
+ latest_reactions: { reply: d }
4919
4974
  })), { previousActivity: a };
4920
4975
  } }), oa = ({
4921
4976
  queryClient: e,
@@ -4925,28 +4980,28 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4925
4980
  }) => ({ mutationFn: r, onMutate: async ({ replyId: a }) => {
4926
4981
  var m;
4927
4982
  await e.cancelQueries({ queryKey: t });
4928
- const l = e.getQueryData(t);
4929
- if (!l)
4983
+ const d = e.getQueryData(t);
4984
+ if (!d)
4930
4985
  return;
4931
- 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));
4932
4987
  return e.setQueryData(t, () => ({
4933
- ...l,
4988
+ ...d,
4934
4989
  latest_reactions: { reply: o }
4935
- })), { previousActivity: l };
4936
- }, onError: (a, l, o) => {
4990
+ })), { previousActivity: d };
4991
+ }, onError: (a, d, o) => {
4937
4992
  e.setQueryData(t, o.previousActivity);
4938
- }, onSuccess: (a, { replyId: l }) => {
4939
- var u;
4993
+ }, onSuccess: (a, { replyId: d }) => {
4994
+ var c;
4940
4995
  const o = e.getQueryData(t);
4941
4996
  if (!o)
4942
4997
  return;
4943
- const m = (u = o.latest_reactions.reply) == null ? void 0 : u.map((h) => {
4944
- var p, g, b;
4945
- 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) {
4946
5001
  let v = (p = h.latest_children.reply) == null ? void 0 : p.filter(
4947
5002
  (E) => E.user_id !== (n == null ? void 0 : n.id)
4948
5003
  );
4949
- 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(
4950
5005
  (E) => E.user_id !== (n == null ? void 0 : n.id)
4951
5006
  ), v;
4952
5007
  }
@@ -4967,13 +5022,13 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4967
5022
  },
4968
5023
  onSuccess: (a) => {
4969
5024
  var m;
4970
- 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));
4971
5026
  return e.setQueryData(t, () => ({
4972
- ...l,
5027
+ ...d,
4973
5028
  latest_reactions: { reply: o }
4974
- })), { previousActivity: l };
5029
+ })), { previousActivity: d };
4975
5030
  },
4976
- onError: (a, l, o) => {
5031
+ onError: (a, d, o) => {
4977
5032
  e.setQueryData(t, o.previousActivity);
4978
5033
  },
4979
5034
  onSettled: () => {
@@ -4983,85 +5038,85 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
4983
5038
  queryClient: e,
4984
5039
  queryKey: t,
4985
5040
  mutationFn: n
4986
- }) => ({ mutationFn: n, onError: (c, d, a) => {
5041
+ }) => ({ mutationFn: n, onError: (l, u, a) => {
4987
5042
  e.setQueryData(t, a.previousActivity);
4988
5043
  }, onMutate: async ({
4989
- replyInfo: c,
4990
- content: { body: d }
5044
+ replyInfo: l,
5045
+ content: { body: u }
4991
5046
  }) => {
4992
- var o, m, u;
4993
- if (d.length === 0)
5047
+ var o, m, c;
5048
+ if (u.length === 0)
4994
5049
  return;
4995
5050
  await e.cancelQueries({ queryKey: t });
4996
5051
  const a = e.getQueryData(t);
4997
5052
  if (!a || !((o = a == null ? void 0 : a.latest_reactions) != null && o.reply))
4998
5053
  return;
4999
- 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) => {
5000
5055
  var p;
5001
- 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;
5002
5057
  });
5003
5058
  return e.setQueryData(t, () => ({
5004
5059
  ...a,
5005
- latest_reactions: { reply: l }
5060
+ latest_reactions: { reply: d }
5006
5061
  })), { previousActivity: a };
5007
5062
  } }), la = ({
5008
5063
  queryClient: e,
5009
5064
  queryKey: t,
5010
5065
  mutationFn: n
5011
- }) => ({ mutationFn: n, onError: (c, d, a) => {
5066
+ }) => ({ mutationFn: n, onError: (l, u, a) => {
5012
5067
  e.setQueryData(t, a.previousActivity);
5013
5068
  }, onMutate: async ({
5014
- replyId: c,
5015
- replyParentId: d
5069
+ replyId: l,
5070
+ replyParentId: u
5016
5071
  }) => {
5017
- var o, m, u;
5072
+ var o, m, c;
5018
5073
  await e.cancelQueries({ queryKey: t });
5019
5074
  const a = e.getQueryData(t);
5020
5075
  if (!a || !((o = a == null ? void 0 : a.latest_reactions) != null && o.reply))
5021
5076
  return;
5022
- 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) => {
5023
5078
  var p, g;
5024
- return h.id === d && (h.latest_children.reply = (p = h.latest_children.reply) == null ? void 0 : p.filter(
5025
- (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
5026
5081
  ), (g = h.children_counts) != null && g.reply && (h.children_counts.reply -= 1)), h;
5027
5082
  });
5028
5083
  return e.setQueryData(t, () => ({
5029
5084
  ...a,
5030
- latest_reactions: { reply: l }
5085
+ latest_reactions: { reply: d }
5031
5086
  })), { previousActivity: a };
5032
5087
  } }), da = ({
5033
5088
  queryClient: e,
5034
5089
  queryKey: t,
5035
5090
  mutationFn: n
5036
5091
  }) => ({ mutationFn: n, onMutate: async ({
5037
- replyId: d,
5092
+ replyId: u,
5038
5093
  replyParentId: a
5039
5094
  }) => {
5040
5095
  var m;
5041
5096
  await e.cancelQueries({ queryKey: t });
5042
- 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) => {
5043
5098
  var h;
5044
- 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) => {
5045
5100
  var g;
5046
- return p.id === d && ((g = p.children_counts) != null && g.like ? p.children_counts.like += 1 : p.children_counts = { like: 1 }), p;
5047
- })), 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;
5048
5103
  });
5049
5104
  return e.setQueryData(t, () => ({
5050
- ...l,
5105
+ ...d,
5051
5106
  latest_reactions: { reply: o }
5052
- })), { previousActivity: l };
5053
- }, onError: (d, a, l) => {
5054
- e.setQueryData(t, l.previousActivity);
5055
- }, onSuccess: (d, a) => {
5107
+ })), { previousActivity: d };
5108
+ }, onError: (u, a, d) => {
5109
+ e.setQueryData(t, d.previousActivity);
5110
+ }, onSuccess: (u, a) => {
5056
5111
  var m;
5057
- 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) => {
5058
5113
  var h;
5059
- 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;
5060
5115
  });
5061
5116
  return e.setQueryData(t, () => ({
5062
- ...l,
5117
+ ...d,
5063
5118
  latest_reactions: { reply: o }
5064
- })), { previousActivity: l };
5119
+ })), { previousActivity: d };
5065
5120
  } }), ua = ({
5066
5121
  queryClient: e,
5067
5122
  queryKey: t,
@@ -5069,30 +5124,30 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5069
5124
  user: r
5070
5125
  }) => ({ mutationFn: n, onMutate: async ({
5071
5126
  replyId: a,
5072
- replyParentId: l
5127
+ replyParentId: d
5073
5128
  }) => {
5074
- var u;
5129
+ var c;
5075
5130
  await e.cancelQueries({ queryKey: t });
5076
- 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) => {
5077
5132
  var p;
5078
- return h.id === l && ((p = h.latest_children.reply) == null || p.map((g) => {
5079
- var b;
5080
- 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;
5081
5136
  })), h;
5082
5137
  });
5083
5138
  return e.setQueryData(t, () => ({
5084
5139
  ...o,
5085
5140
  latest_reactions: { reply: m }
5086
5141
  })), { previousActivity: o };
5087
- }, onError: (a, l, o) => {
5142
+ }, onError: (a, d, o) => {
5088
5143
  e.setQueryData(t, o.previousActivity);
5089
- }, onSuccess: (a, l) => {
5090
- var u;
5091
- 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) => {
5092
5147
  var p;
5093
- return h.id === l.replyParentId && ((p = h.latest_children.reply) == null || p.map((g) => {
5094
- var b, v;
5095
- 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(
5096
5151
  (E) => E.user_id !== (r == null ? void 0 : r.id)
5097
5152
  )), (v = g.latest_children) != null && v.like && (g.latest_children.like = g.latest_children.like.filter(
5098
5153
  (E) => E.user_id !== (r == null ? void 0 : r.id)
@@ -5109,13 +5164,13 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5109
5164
  replyParentId: n,
5110
5165
  activityId: r,
5111
5166
  replyCount: i,
5112
- replies: c,
5113
- 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 }
5114
5169
  }) => {
5115
- 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({
5116
5171
  queryClient: g,
5117
5172
  queryKey: [e, t, r],
5118
- mutationFn: async (j) => d({ replyId: n, content: j.body })
5173
+ mutationFn: async (j) => u({ replyId: n, content: j.body })
5119
5174
  }), { mutate: k } = ie(E), _ = ca({
5120
5175
  queryClient: g,
5121
5176
  queryKey: [e, t, r],
@@ -5125,23 +5180,23 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5125
5180
  } = ie(_), C = la({
5126
5181
  queryClient: g,
5127
5182
  queryKey: [e, t, r],
5128
- mutationFn: async ({ replyId: j }) => l({ replyId: j })
5183
+ mutationFn: async ({ replyId: j }) => d({ replyId: j })
5129
5184
  }), {
5130
5185
  mutate: R
5131
5186
  } = ie(C), V = da({
5132
5187
  queryClient: g,
5133
5188
  queryKey: [e, t, r],
5134
- mutationFn: u
5189
+ mutationFn: c
5135
5190
  }), {
5136
5191
  mutate: N
5137
5192
  } = ie(V), P = ua({
5138
5193
  queryClient: g,
5139
5194
  queryKey: [e, t, r],
5140
- user: b,
5195
+ user: x,
5141
5196
  mutationFn: h
5142
5197
  }), {
5143
5198
  mutate: G
5144
- } = ie(P), x = Me(
5199
+ } = ie(P), b = Me(
5145
5200
  ({ replyId: j, replyParentId: w }) => N({ replyId: j, replyParentId: w }),
5146
5201
  [N]
5147
5202
  ), K = Me(
@@ -5168,8 +5223,8 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5168
5223
  }
5169
5224
  }
5170
5225
  ),
5171
- (c == null ? void 0 : c.length) === 0 || (c == null ? void 0 : c.map((j) => {
5172
- 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;
5173
5228
  return /* @__PURE__ */ s.jsx(
5174
5229
  St,
5175
5230
  {
@@ -5188,7 +5243,7 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5188
5243
  id: (se = j == null ? void 0 : j.user) == null ? void 0 : se.id,
5189
5244
  name: (ae = (re = j == null ? void 0 : j.user) == null ? void 0 : re.data) == null ? void 0 : ae.name,
5190
5245
  organization: (fe = (q = j == null ? void 0 : j.user) == null ? void 0 : q.data) == null ? void 0 : fe.organization,
5191
- 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,
5192
5247
  image: {
5193
5248
  thumbnail: ((he = (oe = j == null ? void 0 : j.user) == null ? void 0 : oe.data) == null ? void 0 : he.thumbnail) || void 0
5194
5249
  }
@@ -5213,7 +5268,7 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5213
5268
  updateContent: (B, J) => T({ replyInfo: B, content: J })
5214
5269
  },
5215
5270
  likes: {
5216
- createLike: () => x({
5271
+ createLike: () => b({
5217
5272
  replyId: j == null ? void 0 : j.id,
5218
5273
  replyParentId: j == null ? void 0 : j.parent
5219
5274
  }),
@@ -5240,28 +5295,28 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5240
5295
  activityId: n,
5241
5296
  repliesList: r,
5242
5297
  isMember: i,
5243
- 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 }
5244
5299
  }) => {
5245
- const h = D(), p = wt(), g = je($e), b = na({
5300
+ const h = D(), p = wt(), g = je($e), x = na({
5246
5301
  queryClient: p,
5247
5302
  queryKey: [e, t, n],
5248
- mutationFn: async (x) => c({ activityId: n, content: x.body })
5249
- }), { mutate: v } = ie(b), E = sa({
5303
+ mutationFn: async (b) => l({ activityId: n, content: b.body })
5304
+ }), { mutate: v } = ie(x), E = sa({
5250
5305
  queryClient: p,
5251
5306
  queryKey: [e, t, n],
5252
- mutationFn: async (x) => d(x)
5307
+ mutationFn: async (b) => u(b)
5253
5308
  }), {
5254
5309
  mutate: k
5255
5310
  } = ie(E), _ = ra({
5256
5311
  queryClient: p,
5257
5312
  queryKey: [e, t, n],
5258
- mutationFn: async ({ replyId: x }) => a({ replyId: x })
5313
+ mutationFn: async ({ replyId: b }) => a({ replyId: b })
5259
5314
  }), {
5260
5315
  mutate: T
5261
5316
  } = ie(_), C = aa({
5262
5317
  queryClient: p,
5263
5318
  queryKey: [e, t, n],
5264
- mutationFn: l
5319
+ mutationFn: d
5265
5320
  }), {
5266
5321
  mutate: R
5267
5322
  } = ie(C), V = oa({
@@ -5272,10 +5327,10 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5272
5327
  }), {
5273
5328
  mutate: N
5274
5329
  } = ie(V), P = Me(
5275
- ({ replyId: x }) => R({ replyId: x }),
5330
+ ({ replyId: b }) => R({ replyId: b }),
5276
5331
  [R]
5277
5332
  ), G = Me(
5278
- ({ replyId: x }) => N({ replyId: x }),
5333
+ ({ replyId: b }) => N({ replyId: b }),
5279
5334
  [N]
5280
5335
  );
5281
5336
  return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
@@ -5283,45 +5338,45 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5283
5338
  nn,
5284
5339
  {
5285
5340
  contentType: "reply",
5286
- createPost: (x, K) => v(K),
5341
+ createPost: (b, K) => v(K),
5287
5342
  membershipRequiredToPost: {
5288
5343
  isMember: i,
5289
5344
  required: !0,
5290
5345
  join: m,
5291
- leave: u,
5346
+ leave: c,
5292
5347
  notMemberStateText: h.formatMessage({ id: "community_joinToPost" })
5293
5348
  }
5294
5349
  }
5295
5350
  ),
5296
- (r == null ? void 0 : r.length) === 0 || (r == null ? void 0 : r.map((x) => {
5297
- var w, z, X, se, re, ae, q, fe, ue, O, oe, he, ce, xe, pe, be, ge, B, J, le;
5298
- 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);
5299
5354
  return /* @__PURE__ */ s.jsx(Wr, { children: /* @__PURE__ */ s.jsx(
5300
5355
  St,
5301
5356
  {
5302
5357
  content: {
5303
5358
  type: "reply",
5304
- 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) || "",
5305
5360
  canLike: j,
5306
- createdAt: x == null ? void 0 : x.created_at,
5361
+ createdAt: b == null ? void 0 : b.created_at,
5307
5362
  slugs: {
5308
5363
  question: `${e}/${t}/${n}`,
5309
5364
  parentId: t,
5310
- reply: x == null ? void 0 : x.id
5365
+ reply: b == null ? void 0 : b.id
5311
5366
  },
5312
- slug: `${e}/${t}/${n}#${x == null ? void 0 : x.id}`,
5367
+ slug: `${e}/${t}/${n}#${b == null ? void 0 : b.id}`,
5313
5368
  author: {
5314
- id: (re = x == null ? void 0 : x.user) == null ? void 0 : re.id,
5315
- name: (q = (ae = x == null ? void 0 : x.user) == null ? void 0 : ae.data) == null ? void 0 : q.name,
5316
- organization: (ue = (fe = x == null ? void 0 : x.user) == null ? void 0 : fe.data) == null ? void 0 : ue.organization,
5317
- 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,
5318
5373
  image: {
5319
- 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
5320
5375
  }
5321
5376
  },
5322
- 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,
5323
- likes: ((be = x == null ? void 0 : x.children_counts) == null ? void 0 : be.like) || 0,
5324
- 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) => {
5325
5380
  var me, ke;
5326
5381
  return {
5327
5382
  id: ee == null ? void 0 : ee.user_id,
@@ -5339,10 +5394,10 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5339
5394
  updateContent: (ee, me) => k({ replyInfo: ee, content: me })
5340
5395
  },
5341
5396
  likes: {
5342
- createLike: () => P({ replyId: x == null ? void 0 : x.id }),
5397
+ createLike: () => P({ replyId: b == null ? void 0 : b.id }),
5343
5398
  deleteLike: () => {
5344
5399
  var me, ke, Ae;
5345
- 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);
5346
5401
  return G({ replyId: ee || "" });
5347
5402
  }
5348
5403
  },
@@ -5353,25 +5408,25 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5353
5408
  {
5354
5409
  basePath: e,
5355
5410
  parentId: t,
5356
- replyParentId: x == null ? void 0 : x.id,
5411
+ replyParentId: b == null ? void 0 : b.id,
5357
5412
  activityId: n,
5358
- replyCount: ((J = x == null ? void 0 : x.children_counts) == null ? void 0 : J.reply) || 0,
5359
- 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,
5360
5415
  isMember: i,
5361
5416
  functions: {
5362
- create: c,
5363
- edit: d,
5417
+ create: l,
5418
+ edit: u,
5364
5419
  remove: a,
5365
- like: l,
5420
+ like: d,
5366
5421
  unlike: o,
5367
5422
  join: m,
5368
- leave: u
5423
+ leave: c
5369
5424
  }
5370
5425
  }
5371
5426
  )
5372
5427
  },
5373
- x == null ? void 0 : x.id
5374
- ) }, x == null ? void 0 : x.id);
5428
+ b == null ? void 0 : b.id
5429
+ ) }, b == null ? void 0 : b.id);
5375
5430
  }))
5376
5431
  ] });
5377
5432
  }, ha = ({
@@ -5381,19 +5436,19 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5381
5436
  }) => ({
5382
5437
  mutationFn: n,
5383
5438
  onMutate: async ({
5384
- activityInfo: d,
5439
+ activityInfo: u,
5385
5440
  content: { body: a }
5386
5441
  }) => {
5387
5442
  if (a.length === 0)
5388
5443
  return;
5389
5444
  await e.cancelQueries({ queryKey: t });
5390
- const l = e.getQueryData(t);
5391
- return l && l.id === (d == null ? void 0 : d.activityId) && (l.content = a), e.setQueryData(t, () => ({
5392
- ...l
5393
- })), { 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 };
5394
5449
  },
5395
- onError: (d, a, l) => {
5396
- e.setQueryData(t, l.previousActivity);
5450
+ onError: (u, a, d) => {
5451
+ e.setQueryData(t, d.previousActivity);
5397
5452
  },
5398
5453
  onSettled: () => {
5399
5454
  e.invalidateQueries({ queryKey: t });
@@ -5410,19 +5465,19 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5410
5465
  queryKey: t,
5411
5466
  mutationFn: n
5412
5467
  }) => ({ mutationFn: n, onMutate: async () => {
5413
- var l;
5468
+ var d;
5414
5469
  await e.cancelQueries({ queryKey: t });
5415
5470
  const a = e.getQueryData(t);
5416
- 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, () => ({
5417
5472
  ...a
5418
5473
  })), { previousActivity: a };
5419
- }, onError: (a, l, o) => {
5474
+ }, onError: (a, d, o) => {
5420
5475
  e.setQueryData(t, o.previousActivity);
5421
5476
  }, onSuccess: (a) => {
5422
- const l = e.getQueryData(t);
5423
- 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, () => ({
5424
- ...l
5425
- })), { 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 };
5426
5481
  }, onSettled: () => {
5427
5482
  e.invalidateQueries({ queryKey: t });
5428
5483
  } }), _a = ({
@@ -5438,13 +5493,13 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5438
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, () => ({
5439
5494
  ...o
5440
5495
  })), { previousActivity: o };
5441
- }, onError: (o, m, u) => {
5442
- e.setQueryData(t, u.previousActivity);
5496
+ }, onError: (o, m, c) => {
5497
+ e.setQueryData(t, c.previousActivity);
5443
5498
  }, onSuccess: () => {
5444
- var u, h, p;
5499
+ var c, h, p;
5445
5500
  if (!r)
5446
5501
  return;
5447
- 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(
5448
5503
  (g) => g.user_id === (n == null ? void 0 : n.id)
5449
5504
  )) == null ? void 0 : p.id, m = e.getQueryData(t);
5450
5505
  if (m != null && m.own_reactions.like && (m.own_reactions.like = m.own_reactions.like.filter(
@@ -5458,27 +5513,27 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
5458
5513
  }, onSettled: () => {
5459
5514
  e.invalidateQueries({ queryKey: t });
5460
5515
  } });
5461
- const lo = ({
5516
+ const uo = ({
5462
5517
  basePath: e,
5463
5518
  parentId: t,
5464
5519
  activityId: n,
5465
5520
  isMember: r,
5466
5521
  functions: {
5467
5522
  get: i,
5468
- editActivity: c,
5469
- removeActivity: d,
5523
+ editActivity: l,
5524
+ removeActivity: u,
5470
5525
  likeActivity: a,
5471
- unlikeActivity: l,
5526
+ unlikeActivity: d,
5472
5527
  createReply: o,
5473
5528
  editReply: m,
5474
- removeReply: u,
5529
+ removeReply: c,
5475
5530
  likeReply: h,
5476
5531
  unlikeReply: p,
5477
5532
  join: g,
5478
- leave: b
5533
+ leave: x
5479
5534
  }
5480
5535
  }) => {
5481
- 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;
5482
5537
  const v = D(), E = je($e), k = wt(), {
5483
5538
  data: _,
5484
5539
  isLoading: T,
@@ -5489,20 +5544,20 @@ const lo = ({
5489
5544
  }), R = ha({
5490
5545
  queryClient: k,
5491
5546
  queryKey: [e, t, n],
5492
- mutationFn: async (te) => await c(te)
5547
+ mutationFn: async (te) => await l(te)
5493
5548
  }), {
5494
5549
  mutate: V
5495
5550
  } = ie(R), N = pa({
5496
5551
  queryClient: k,
5497
5552
  queryKey: [e, t, n],
5498
- mutationFn: async ({ activityId: te }) => d({ activityId: te }),
5553
+ mutationFn: async ({ activityId: te }) => u({ activityId: te }),
5499
5554
  redirectUrl: `${e}/${t}`
5500
5555
  }), { mutate: P } = ie(N), G = ga({
5501
5556
  queryClient: k,
5502
5557
  queryKey: [e, t, n],
5503
5558
  mutationFn: a
5504
5559
  }), {
5505
- mutate: x
5560
+ mutate: b
5506
5561
  } = ie(G), K = _a({
5507
5562
  queryClient: k,
5508
5563
  queryKey: [e, t, n],
@@ -5512,14 +5567,14 @@ const lo = ({
5512
5567
  const te = (tt = (Le = (Ee = _ == null ? void 0 : _.own_reactions) == null ? void 0 : Ee.like) == null ? void 0 : Le.find(
5513
5568
  (nt) => nt.user_id === (E == null ? void 0 : E.id)
5514
5569
  )) == null ? void 0 : tt.id;
5515
- await l({ activityId: n, reactionId: te });
5570
+ await d({ activityId: n, reactionId: te });
5516
5571
  },
5517
5572
  activity: _
5518
5573
  }), {
5519
5574
  mutate: j
5520
5575
  } = ie(K), w = Me(
5521
- ({ activityId: te }) => x({ activityId: te }),
5522
- [x]
5576
+ ({ activityId: te }) => b({ activityId: te }),
5577
+ [b]
5523
5578
  ), z = Me(
5524
5579
  async ({ activityId: te }) => j({ activityId: te }),
5525
5580
  [j]
@@ -5553,7 +5608,7 @@ const lo = ({
5553
5608
  author: {
5554
5609
  id: (ae = _ == null ? void 0 : _.actor) == null ? void 0 : ae.id,
5555
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),
5556
- 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),
5557
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),
5558
5613
  image: {
5559
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
@@ -5603,11 +5658,11 @@ const lo = ({
5603
5658
  functions: {
5604
5659
  create: o,
5605
5660
  edit: m,
5606
- remove: u,
5661
+ remove: c,
5607
5662
  like: h,
5608
5663
  unlike: p,
5609
5664
  join: g,
5610
- leave: b
5665
+ leave: x
5611
5666
  }
5612
5667
  }
5613
5668
  )
@@ -5615,7 +5670,7 @@ const lo = ({
5615
5670
  },
5616
5671
  n
5617
5672
  );
5618
- }, 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 } }) => ({
5619
5674
  id: e,
5620
5675
  name: n,
5621
5676
  jobTitle: t,
@@ -5625,15 +5680,15 @@ const lo = ({
5625
5680
  const n = D(), {
5626
5681
  answers: r,
5627
5682
  createdAt: i,
5628
- dateHasPassed: c,
5629
- isOngoingEvent: d,
5683
+ dateHasPassed: l,
5684
+ isOngoingEvent: u,
5630
5685
  pill: a,
5631
- readingTime: l,
5686
+ readingTime: d,
5632
5687
  publishedDate: o,
5633
5688
  startDate: m
5634
5689
  } = t;
5635
5690
  if (e === "question") {
5636
- const u = i && Gt(i);
5691
+ const c = i && Gt(i);
5637
5692
  return /* @__PURE__ */ s.jsxs("p", { className: "details answers", "data-testid": "question-answers", children: [
5638
5693
  n.formatMessage({ id: "card_answers" }, { number: r }),
5639
5694
  i && /* @__PURE__ */ s.jsxs("span", { "data-testid": "question-created-at", children: [
@@ -5643,17 +5698,17 @@ const lo = ({
5643
5698
  n.formatMessage(
5644
5699
  { id: "card_time_ago" },
5645
5700
  {
5646
- time: u ? n.formatMessage(
5647
- { id: `dates_${u.path}` },
5648
- { number: u.number }
5701
+ time: c ? n.formatMessage(
5702
+ { id: `dates_${c.path}` },
5703
+ { number: c.number }
5649
5704
  ) : 0
5650
5705
  }
5651
5706
  )
5652
5707
  ] })
5653
5708
  ] });
5654
5709
  }
5655
- if (m && !c || d)
5656
- 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) });
5657
5712
  if (a)
5658
5713
  return /* @__PURE__ */ s.jsx(
5659
5714
  ft,
@@ -5664,16 +5719,16 @@ const lo = ({
5664
5719
  children: a
5665
5720
  }
5666
5721
  );
5667
- if (l || o) {
5668
- const u = o && Gt(o);
5722
+ if (d || o) {
5723
+ const c = o && Gt(o);
5669
5724
  return /* @__PURE__ */ s.jsxs("ul", { className: "details", children: [
5670
- 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 }) }),
5671
5726
  o && /* @__PURE__ */ s.jsx("li", { "data-testid": "published-date", children: n.formatMessage(
5672
5727
  { id: "card_time_ago" },
5673
5728
  {
5674
- time: u ? n.formatMessage(
5675
- { id: `dates_${u.path}` },
5676
- { number: u.number }
5729
+ time: c ? n.formatMessage(
5730
+ { id: `dates_${c.path}` },
5731
+ { number: c.number }
5677
5732
  ) : 0
5678
5733
  }
5679
5734
  ) })
@@ -5739,16 +5794,16 @@ const lo = ({
5739
5794
  }
5740
5795
  }, ba = ({ data: e, cta: t, link: n, gtmContext: r }) => {
5741
5796
  var g;
5742
- const i = D(), [c, d] = L({
5797
+ const i = D(), [l, u] = L({
5743
5798
  loading: !1,
5744
5799
  registered: e.registered || !1
5745
5800
  });
5746
5801
  Y(() => {
5747
- e.registered && d((b) => ({ ...b, registered: !0 }));
5802
+ e.registered && u((x) => ({ ...x, registered: !0 }));
5748
5803
  }, [e.registered]);
5749
- 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;
5750
5805
  let h = "";
5751
- 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)
5752
5807
  return /* @__PURE__ */ s.jsx(
5753
5808
  "a",
5754
5809
  {
@@ -5759,7 +5814,7 @@ const lo = ({
5759
5814
  children: i.formatMessage({ id: "card_watch" })
5760
5815
  }
5761
5816
  );
5762
- if (u === "people")
5817
+ if (c === "people")
5763
5818
  return /* @__PURE__ */ s.jsx(
5764
5819
  U,
5765
5820
  {
@@ -5773,15 +5828,15 @@ const lo = ({
5773
5828
  }
5774
5829
  );
5775
5830
  const p = ["microcourse", "event"];
5776
- if (t && t.onClick && p.includes(u) && o !== "premium") {
5777
- const b = c.loading || c.registered, v = async (E) => {
5778
- if (E.preventDefault(), E.stopPropagation(), !(b || !t || !t.onClick)) {
5779
- 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 }));
5780
5835
  try {
5781
5836
  const k = await t.onClick(e);
5782
- d(k === "success" ? () => ({ registered: !0, loading: !1 }) : (_) => ({ ..._, loading: !1 }));
5837
+ u(k === "success" ? () => ({ registered: !0, loading: !1 }) : (_) => ({ ..._, loading: !1 }));
5783
5838
  } catch {
5784
- d((_) => ({ ..._, loading: !1 }));
5839
+ u((_) => ({ ..._, loading: !1 }));
5785
5840
  }
5786
5841
  }
5787
5842
  };
@@ -5792,12 +5847,12 @@ const lo = ({
5792
5847
  className: "gtm-trackable",
5793
5848
  size: "small",
5794
5849
  styling: { fullWidth: !0 },
5795
- disabled: b,
5796
- "data-gtm-event-context": `${r}Page-${u}: ${m}`,
5797
- "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`,
5798
5853
  "data-testid": "in-card-button",
5799
5854
  children: i.formatMessage({
5800
- id: `card_cta_${u}${b ? `_${c.loading ? "loading" : "done"}` : ""}`
5855
+ id: `card_cta_${c}${x ? `_${l.loading ? "loading" : "done"}` : ""}`
5801
5856
  })
5802
5857
  }
5803
5858
  );
@@ -5824,19 +5879,19 @@ const va = {
5824
5879
  buildCardData: n,
5825
5880
  cta: r,
5826
5881
  gtmContext: i = "Carousel",
5827
- className: c = ""
5882
+ className: l = ""
5828
5883
  }) => {
5829
- 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({
5830
5885
  data: null,
5831
5886
  isLoading: !0
5832
- }), { data: u, isLoading: h } = o, p = Me(() => {
5833
- n(t, l).then((N) => {
5887
+ }), { data: c, isLoading: h } = o, p = Me(() => {
5888
+ n(t, d).then((N) => {
5834
5889
  m(() => ({ data: N, isLoading: !1 }));
5835
5890
  }).catch(() => m((N) => ({ ...N, isLoading: !1 })));
5836
5891
  }, [e]);
5837
5892
  if (Y(() => {
5838
5893
  p();
5839
- }, []), h || !u)
5894
+ }, []), h || !c)
5840
5895
  return /* @__PURE__ */ s.jsx(
5841
5896
  Se,
5842
5897
  {
@@ -5845,15 +5900,15 @@ const va = {
5845
5900
  "data-testid": "card-placeholder"
5846
5901
  }
5847
5902
  );
5848
- const { contentType: g } = u;
5903
+ const { contentType: g } = c;
5849
5904
  if (!g || !_t[g])
5850
5905
  return /* @__PURE__ */ s.jsx(Se, { element: "li", className: "card-wrapper" });
5851
5906
  const {
5852
- basePath: b = "",
5907
+ basePath: x = "",
5853
5908
  className: v,
5854
5909
  length: E,
5855
5910
  gtmEvent: k
5856
- } = _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 };
5857
5912
  let R = { className: "card" };
5858
5913
  T && (R = {
5859
5914
  href: T,
@@ -5861,16 +5916,16 @@ const va = {
5861
5916
  "data-gtm-event-context": `${i}-CarouselCard`,
5862
5917
  "data-gtm-event-type": `${k}-click`,
5863
5918
  "data-testid": "link"
5864
- }, u.openInNewTab && (R.target = "_blank"));
5865
- 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) } : {};
5866
5921
  return /* @__PURE__ */ s.jsx(
5867
5922
  "li",
5868
5923
  {
5869
- className: $("card-wrapper text-medium", v, c, {
5924
+ className: S("card-wrapper text-medium", v, l, {
5870
5925
  "has-link": T,
5871
5926
  "no-link": !T,
5872
- "has-custom-icon": u.customIcon,
5873
- "has-image": u.banner
5927
+ "has-custom-icon": c.customIcon,
5928
+ "has-image": c.banner
5874
5929
  }),
5875
5930
  style: V,
5876
5931
  "data-testid": `${g}-card`,
@@ -5878,31 +5933,31 @@ const va = {
5878
5933
  T ? "a" : "div",
5879
5934
  R,
5880
5935
  /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
5881
- (u.customLabel || _) && /* @__PURE__ */ s.jsx("small", { className: $("card-label text-small", v), children: u.customLabel || _ }),
5882
- 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(
5883
5938
  ft,
5884
5939
  {
5885
5940
  size: "small",
5886
- variant: u.dateHasPassed ? "default" : "information",
5941
+ variant: c.dateHasPassed ? "default" : "information",
5887
5942
  "data-testid": "date",
5888
- children: u.dateHasPassed ? d.formatMessage({ id: "card_ended" }) : Qs(u.startDate)
5943
+ children: c.dateHasPassed ? u.formatMessage({ id: "card_ended" }) : Qs(c.startDate)
5889
5944
  }
5890
5945
  ),
5891
- u.banner ? /* @__PURE__ */ s.jsxs("p", { className: "img", children: [
5892
- u.registered && /* @__PURE__ */ s.jsx(ft, { size: "small", variant: "registered", children: d.formatMessage({ id: "card_registered" }) }),
5893
- /* @__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 })
5894
5949
  ] }) : v === "people" ? /* @__PURE__ */ s.jsx(
5895
5950
  qe,
5896
5951
  {
5897
- name: u.title || "",
5898
- src: u.profile,
5952
+ name: c.title || "",
5953
+ src: c.profile,
5899
5954
  "data-testid": "people-profile-picture"
5900
5955
  }
5901
5956
  ) : null,
5902
- u.contributors && /* @__PURE__ */ s.jsx(
5957
+ c.contributors && /* @__PURE__ */ s.jsx(
5903
5958
  Un,
5904
5959
  {
5905
- contributors: { data: u.contributors },
5960
+ contributors: { data: c.contributors },
5906
5961
  styling: {
5907
5962
  size: "small",
5908
5963
  showGap: v !== "question",
@@ -5911,32 +5966,32 @@ const va = {
5911
5966
  "data-testid": "contributors"
5912
5967
  }
5913
5968
  ),
5914
- 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) }),
5915
5970
  /* Text */
5916
5971
  ["title", "text", "secondaryText"].map((N) => {
5917
- const P = u[N];
5972
+ const P = c[N];
5918
5973
  if (!P)
5919
5974
  return null;
5920
5975
  const G = Bs(N);
5921
5976
  return /* @__PURE__ */ s.jsx("p", { className: G, "data-testid": G, children: Qe(P, C[N]) }, N);
5922
5977
  }),
5923
- /* @__PURE__ */ s.jsx(xa, { type: v || "", data: u }),
5924
- /* @__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 })
5925
5980
  ] })
5926
5981
  )
5927
5982
  }
5928
5983
  );
5929
5984
  };
5930
- const ja = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__ */ s.jsx("ul", { className: $("card-block", n), children: e.map((i, c) => {
5931
- 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}`;
5932
5987
  return /* @__PURE__ */ s.jsx(
5933
5988
  ka,
5934
5989
  {
5935
- id: d,
5936
- card: { ...i, contentType: t[c] },
5990
+ id: u,
5991
+ card: { ...i, contentType: t[l] },
5937
5992
  ...r
5938
5993
  },
5939
- d
5994
+ u
5940
5995
  );
5941
5996
  }) });
5942
5997
  const $n = [
@@ -5983,7 +6038,7 @@ const $n = [
5983
6038
  contributors: ["community"]
5984
6039
  }
5985
6040
  ];
5986
- const lt = "notFoundError_", mo = () => {
6041
+ const lt = "notFoundError_", fo = () => {
5987
6042
  const e = D(), t = [];
5988
6043
  return $n.forEach((n, r) => {
5989
6044
  n.title = e.formatMessage({ id: `${lt}post_${r + 1}` }), t.push("solutionArticle");
@@ -6018,15 +6073,15 @@ const lt = "notFoundError_", mo = () => {
6018
6073
  };
6019
6074
  export {
6020
6075
  mt as ASSETS_BUCKET,
6021
- co as ActivitiesFeed,
6022
- lo as ActivitySection,
6076
+ lo as ActivitiesFeed,
6077
+ uo as ActivitySection,
6023
6078
  nn as AddPost,
6024
6079
  Ha as BannerSection,
6025
6080
  Xa as Breadcrumbs,
6026
6081
  U as Button,
6027
6082
  kt as ButtonWrapper,
6028
6083
  _r as CacheProvider,
6029
- On as CollapsibleSection,
6084
+ In as CollapsibleSection,
6030
6085
  Cr as Columns,
6031
6086
  Ja as CommunityDetails,
6032
6087
  Un as Contributors,
@@ -6040,7 +6095,7 @@ export {
6040
6095
  Ue as Divider,
6041
6096
  Ba as DownloadSection,
6042
6097
  Ze as EMAILS,
6043
- to as EmailHelperTextBox,
6098
+ no as EmailHelperTextBox,
6044
6099
  yt as EmptyStateBox,
6045
6100
  Za as Filters,
6046
6101
  wr as FlagsProvider,
@@ -6054,7 +6109,7 @@ export {
6054
6109
  Re as HighlightedTextBox,
6055
6110
  vr as IntlProvider,
6056
6111
  Lr as InviteForm,
6057
- ro as InviteModal,
6112
+ ao as InviteModal,
6058
6113
  Wn as JoinButton,
6059
6114
  Ka as LanguageSwitcher,
6060
6115
  jt as Link,
@@ -6067,41 +6122,42 @@ export {
6067
6122
  wn as MarkdownText,
6068
6123
  Ua as MarketingBox,
6069
6124
  tn as Member,
6070
- oo as MembersList,
6125
+ io as MembersList,
6071
6126
  Zn as Modal,
6072
6127
  Er as MoreMenu,
6073
6128
  Wa as NUMBER_OF_USERS,
6074
6129
  Tr as NavigationMenu,
6075
- mo as NotFoundError,
6130
+ fo as NotFoundError,
6076
6131
  Kn as Overlay,
6077
6132
  ur as PageHeading,
6078
6133
  Qr as PageLayout,
6079
- no as PasswordRules,
6134
+ so as PasswordRules,
6080
6135
  ft as Pill,
6081
6136
  qe as ProfilePicture,
6082
6137
  fr as ProgressBar,
6083
- so as Rating,
6138
+ ro as Rating,
6084
6139
  fa as RepliesFeed,
6085
- io as ResponsesHeading,
6140
+ co as ResponsesHeading,
6086
6141
  Ln as ResponsiveImage,
6087
6142
  Fr as SearchForm,
6088
6143
  qa as ShareLinks,
6089
6144
  dr as Span,
6090
6145
  Xt as StatusBanner,
6091
- ao as Tags,
6146
+ eo as Tabs,
6147
+ oo as Tags,
6092
6148
  qs as Tooltip,
6093
- eo as TopLevelPage,
6149
+ to as TopLevelPage,
6094
6150
  $e as UserContext,
6095
6151
  kr as UserProvider,
6096
6152
  _e as VisuallyHidden,
6097
- Ir as addAriaProps,
6153
+ Or as addAriaProps,
6098
6154
  Hn as getMember,
6099
6155
  pt as headerData,
6100
- uo as mapGetStreamData,
6156
+ mo as mapGetStreamData,
6101
6157
  Ys as pageReady,
6102
6158
  Ls as useCurrentPath,
6103
6159
  He as useEffectAfterMount,
6104
6160
  vt as useElementWidth,
6105
- Is as useScrollListener,
6106
- Ia as useScrollToHash
6161
+ Os as useScrollListener,
6162
+ Oa as useScrollToHash
6107
6163
  };