@apolitical/component-library 1.18.1 → 1.18.2

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.
Files changed (3) hide show
  1. package/index.js +10 -10
  2. package/index.mjs +731 -725
  3. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1,9 +1,9 @@
1
- import F, { memo as Fe, useState as D, useEffect as G, useRef as ne, useMemo as ft, createContext as Gt, useContext as ge, Children as Ht, useCallback as Ln, Fragment as qe, useReducer as Oa, Suspense as Ba } from "react";
1
+ import F, { memo as Fe, useState as R, useEffect as G, useRef as ae, useMemo as ft, createContext as Gt, useContext as _e, Children as Ht, useCallback as Rn, Fragment as qe, useReducer as Oa, Suspense as Ba } from "react";
2
2
  import Za from "lodash.clonedeep";
3
3
  import qa from "lodash.set";
4
- import { useIntl as A, IntlProvider as Ha, createIntl as Ua, FormattedMessage as je } from "react-intl";
4
+ import { useIntl as A, IntlProvider as Ha, createIntl as Ua, FormattedMessage as we } from "react-intl";
5
5
  import Ne from "truncate";
6
- import { QueryClient as za, QueryClientProvider as Wa, useMutation as fe, useQueryClient as Kt, useInfiniteQuery as Rn, useQuery as Va } from "@tanstack/react-query";
6
+ import { QueryClient as za, QueryClientProvider as Wa, useMutation as fe, useQueryClient as Kt, useInfiniteQuery as Ln, useQuery as Va } from "@tanstack/react-query";
7
7
  import { ReactQueryDevtools as Ya } from "@tanstack/react-query-devtools";
8
8
  import at from "posthog-js";
9
9
  import { CookiesProvider as Ga, useCookies as Ka } from "react-cookie";
@@ -53,8 +53,8 @@ var On = { exports: {} };
53
53
  })();
54
54
  })(On);
55
55
  var nr = On.exports;
56
- const w = /* @__PURE__ */ tr(nr), ar = ({ element: e = "span", showOnFocus: t = !0, children: n, ...r }) => F.createElement(e, { ...r, className: w("hidden", { "show-on-focus": t }), children: n }), ae = Fe(ar), rr = ({ element: e = "span", children: t = null, ...n }) => F.createElement(e, { ...n, "aria-hidden": !0 }, t), Bn = Fe(rr);
57
- var Ut = { exports: {} }, Le = {};
56
+ const w = /* @__PURE__ */ tr(nr), ar = ({ element: e = "span", showOnFocus: t = !0, children: n, ...r }) => F.createElement(e, { ...r, className: w("hidden", { "show-on-focus": t }), children: n }), ie = Fe(ar), rr = ({ element: e = "span", children: t = null, ...n }) => F.createElement(e, { ...n, "aria-hidden": !0 }, t), Bn = Fe(rr);
57
+ var Ut = { exports: {} }, Re = {};
58
58
  /**
59
59
  * @license React
60
60
  * react-jsx-runtime.production.min.js
@@ -67,7 +67,7 @@ var Ut = { exports: {} }, Le = {};
67
67
  var bn;
68
68
  function sr() {
69
69
  if (bn)
70
- return Le;
70
+ return Re;
71
71
  bn = 1;
72
72
  var e = F, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
73
73
  function o(c, m, l) {
@@ -80,9 +80,9 @@ function sr() {
80
80
  d[f] === void 0 && (d[f] = m[f]);
81
81
  return { $$typeof: t, type: c, key: p, ref: h, props: d, _owner: s.current };
82
82
  }
83
- return Le.Fragment = n, Le.jsx = o, Le.jsxs = o, Le;
83
+ return Re.Fragment = n, Re.jsx = o, Re.jsxs = o, Re;
84
84
  }
85
- var Re = {};
85
+ var Le = {};
86
86
  /**
87
87
  * @license React
88
88
  * react-jsx-runtime.development.js
@@ -95,14 +95,14 @@ var Re = {};
95
95
  var yn;
96
96
  function ir() {
97
97
  return yn || (yn = 1, process.env.NODE_ENV !== "production" && function() {
98
- var e = F, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), c = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), g = Symbol.iterator, b = "@@iterator";
98
+ var e = F, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), c = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), g = Symbol.iterator, y = "@@iterator";
99
99
  function k(u) {
100
100
  if (u === null || typeof u != "object")
101
101
  return null;
102
- var x = g && u[g] || u[b];
102
+ var x = g && u[g] || u[y];
103
103
  return typeof x == "function" ? x : null;
104
104
  }
105
- var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
105
+ var b = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
106
106
  function _(u) {
107
107
  {
108
108
  for (var x = arguments.length, T = new Array(x > 1 ? x - 1 : 0), P = 1; P < x; P++)
@@ -112,34 +112,34 @@ function ir() {
112
112
  }
113
113
  function v(u, x, T) {
114
114
  {
115
- var P = y.ReactDebugCurrentFrame, O = P.getStackAddendum();
116
- O !== "" && (x += "%s", T = T.concat([O]));
117
- var V = T.map(function(I) {
118
- return String(I);
115
+ var P = b.ReactDebugCurrentFrame, B = P.getStackAddendum();
116
+ B !== "" && (x += "%s", T = T.concat([B]));
117
+ var V = T.map(function(O) {
118
+ return String(O);
119
119
  });
120
120
  V.unshift("Warning: " + x), Function.prototype.apply.call(console[u], console, V);
121
121
  }
122
122
  }
123
- var j = !1, $ = !1, C = !1, Z = !1, L = !1, S;
124
- S = Symbol.for("react.module.reference");
125
- function M(u) {
126
- return !!(typeof u == "string" || typeof u == "function" || u === r || u === i || L || u === s || u === l || u === f || Z || u === h || j || $ || C || typeof u == "object" && u !== null && (u.$$typeof === p || u.$$typeof === d || u.$$typeof === o || u.$$typeof === c || u.$$typeof === m || // This needs to include all possible module reference object
123
+ var j = !1, S = !1, M = !1, D = !1, I = !1, $;
124
+ $ = Symbol.for("react.module.reference");
125
+ function C(u) {
126
+ return !!(typeof u == "string" || typeof u == "function" || u === r || u === i || I || u === s || u === l || u === f || D || u === h || j || S || M || typeof u == "object" && u !== null && (u.$$typeof === p || u.$$typeof === d || u.$$typeof === o || u.$$typeof === c || u.$$typeof === m || // 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
- u.$$typeof === S || u.getModuleId !== void 0));
130
+ u.$$typeof === $ || u.getModuleId !== void 0));
131
131
  }
132
132
  function E(u, x, T) {
133
133
  var P = u.displayName;
134
134
  if (P)
135
135
  return P;
136
- var O = x.displayName || x.name || "";
137
- return O !== "" ? T + "(" + O + ")" : T;
136
+ var B = x.displayName || x.name || "";
137
+ return B !== "" ? T + "(" + B + ")" : T;
138
138
  }
139
- function N(u) {
139
+ function Z(u) {
140
140
  return u.displayName || "Context";
141
141
  }
142
- function q(u) {
142
+ function N(u) {
143
143
  if (u == null)
144
144
  return null;
145
145
  if (typeof u.tag == "number" && _("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof u == "function")
@@ -164,19 +164,19 @@ function ir() {
164
164
  switch (u.$$typeof) {
165
165
  case c:
166
166
  var x = u;
167
- return N(x) + ".Consumer";
167
+ return Z(x) + ".Consumer";
168
168
  case o:
169
169
  var T = u;
170
- return N(T._context) + ".Provider";
170
+ return Z(T._context) + ".Provider";
171
171
  case m:
172
172
  return E(u, u.render, "ForwardRef");
173
173
  case d:
174
174
  var P = u.displayName || null;
175
- return P !== null ? P : q(u.type) || "Memo";
175
+ return P !== null ? P : N(u.type) || "Memo";
176
176
  case p: {
177
- var O = u, V = O._payload, I = O._init;
177
+ var B = u, V = B._payload, O = B._init;
178
178
  try {
179
- return q(I(V));
179
+ return N(O(V));
180
180
  } catch {
181
181
  return null;
182
182
  }
@@ -184,14 +184,14 @@ function ir() {
184
184
  }
185
185
  return null;
186
186
  }
187
- var H = Object.assign, Y = 0, Q, z, te, re, J, ie, de;
187
+ var U = Object.assign, Y = 0, ne, Q, J, re, X, se, de;
188
188
  function ce() {
189
189
  }
190
190
  ce.__reactDisabledLog = !0;
191
191
  function W() {
192
192
  {
193
193
  if (Y === 0) {
194
- Q = console.log, z = console.info, te = console.warn, re = console.error, J = console.group, ie = console.groupCollapsed, de = console.groupEnd;
194
+ ne = console.log, Q = console.info, J = console.warn, re = console.error, X = console.group, se = console.groupCollapsed, de = console.groupEnd;
195
195
  var u = {
196
196
  configurable: !0,
197
197
  enumerable: !0,
@@ -220,25 +220,25 @@ function ir() {
220
220
  writable: !0
221
221
  };
222
222
  Object.defineProperties(console, {
223
- log: H({}, u, {
224
- value: Q
223
+ log: U({}, u, {
224
+ value: ne
225
225
  }),
226
- info: H({}, u, {
227
- value: z
226
+ info: U({}, u, {
227
+ value: Q
228
228
  }),
229
- warn: H({}, u, {
230
- value: te
229
+ warn: U({}, u, {
230
+ value: J
231
231
  }),
232
- error: H({}, u, {
232
+ error: U({}, u, {
233
233
  value: re
234
234
  }),
235
- group: H({}, u, {
236
- value: J
235
+ group: U({}, u, {
236
+ value: X
237
237
  }),
238
- groupCollapsed: H({}, u, {
239
- value: ie
238
+ groupCollapsed: U({}, u, {
239
+ value: se
240
240
  }),
241
- groupEnd: H({}, u, {
241
+ groupEnd: U({}, u, {
242
242
  value: de
243
243
  })
244
244
  });
@@ -246,95 +246,95 @@ function ir() {
246
246
  Y < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
247
247
  }
248
248
  }
249
- var K = y.ReactCurrentDispatcher, se;
250
- function me(u, x, T) {
249
+ var pe = b.ReactCurrentDispatcher, q;
250
+ function K(u, x, T) {
251
251
  {
252
- if (se === void 0)
252
+ if (q === void 0)
253
253
  try {
254
254
  throw Error();
255
- } catch (O) {
256
- var P = O.stack.trim().match(/\n( *(at )?)/);
257
- se = P && P[1] || "";
255
+ } catch (B) {
256
+ var P = B.stack.trim().match(/\n( *(at )?)/);
257
+ q = P && P[1] || "";
258
258
  }
259
259
  return `
260
- ` + se + u;
260
+ ` + q + u;
261
261
  }
262
262
  }
263
- var pe = !1, Ee;
263
+ var he = !1, me;
264
264
  {
265
265
  var ga = typeof WeakMap == "function" ? WeakMap : Map;
266
- Ee = new ga();
266
+ me = new ga();
267
267
  }
268
268
  function an(u, x) {
269
- if (!u || pe)
269
+ if (!u || he)
270
270
  return "";
271
271
  {
272
- var T = Ee.get(u);
272
+ var T = me.get(u);
273
273
  if (T !== void 0)
274
274
  return T;
275
275
  }
276
276
  var P;
277
- pe = !0;
278
- var O = Error.prepareStackTrace;
277
+ he = !0;
278
+ var B = Error.prepareStackTrace;
279
279
  Error.prepareStackTrace = void 0;
280
280
  var V;
281
- V = K.current, K.current = null, W();
281
+ V = pe.current, pe.current = null, W();
282
282
  try {
283
283
  if (x) {
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, []);
294
- } catch (ye) {
295
- P = ye;
293
+ Reflect.construct(O, []);
294
+ } catch (ve) {
295
+ P = ve;
296
296
  }
297
- Reflect.construct(u, [], I);
297
+ Reflect.construct(u, [], O);
298
298
  } else {
299
299
  try {
300
- I.call();
301
- } catch (ye) {
302
- P = ye;
300
+ O.call();
301
+ } catch (ve) {
302
+ P = ve;
303
303
  }
304
- u.call(I.prototype);
304
+ u.call(O.prototype);
305
305
  }
306
306
  } else {
307
307
  try {
308
308
  throw Error();
309
- } catch (ye) {
310
- P = ye;
309
+ } catch (ve) {
310
+ P = ve;
311
311
  }
312
312
  u();
313
313
  }
314
- } catch (ye) {
315
- if (ye && P && typeof ye.stack == "string") {
316
- for (var R = ye.stack.split(`
314
+ } catch (ve) {
315
+ if (ve && P && typeof ve.stack == "string") {
316
+ for (var L = ve.stack.split(`
317
317
  `), oe = P.stack.split(`
318
- `), X = R.length - 1, ee = oe.length - 1; X >= 1 && ee >= 0 && R[X] !== oe[ee]; )
319
- ee--;
320
- for (; X >= 1 && ee >= 0; X--, ee--)
321
- if (R[X] !== oe[ee]) {
322
- if (X !== 1 || ee !== 1)
318
+ `), ee = L.length - 1, te = oe.length - 1; ee >= 1 && te >= 0 && L[ee] !== oe[te]; )
319
+ te--;
320
+ for (; ee >= 1 && te >= 0; ee--, te--)
321
+ if (L[ee] !== oe[te]) {
322
+ if (ee !== 1 || te !== 1)
323
323
  do
324
- if (X--, ee--, ee < 0 || R[X] !== oe[ee]) {
325
- var he = `
326
- ` + R[X].replace(" at new ", " at ");
327
- return u.displayName && he.includes("<anonymous>") && (he = he.replace("<anonymous>", u.displayName)), typeof u == "function" && Ee.set(u, he), he;
324
+ if (ee--, te--, te < 0 || L[ee] !== oe[te]) {
325
+ var ge = `
326
+ ` + L[ee].replace(" at new ", " at ");
327
+ return u.displayName && ge.includes("<anonymous>") && (ge = ge.replace("<anonymous>", u.displayName)), typeof u == "function" && me.set(u, ge), ge;
328
328
  }
329
- while (X >= 1 && ee >= 0);
329
+ while (ee >= 1 && te >= 0);
330
330
  break;
331
331
  }
332
332
  }
333
333
  } finally {
334
- pe = !1, K.current = V, ue(), Error.prepareStackTrace = O;
334
+ he = !1, pe.current = V, ue(), Error.prepareStackTrace = B;
335
335
  }
336
- var Se = u ? u.displayName || u.name : "", _n = Se ? me(Se) : "";
337
- return typeof u == "function" && Ee.set(u, _n), _n;
336
+ var Se = u ? u.displayName || u.name : "", _n = Se ? K(Se) : "";
337
+ return typeof u == "function" && me.set(u, _n), _n;
338
338
  }
339
339
  function _a(u, x, T) {
340
340
  return an(u, !1);
@@ -349,12 +349,12 @@ function ir() {
349
349
  if (typeof u == "function")
350
350
  return an(u, ba(u));
351
351
  if (typeof u == "string")
352
- return me(u);
352
+ return K(u);
353
353
  switch (u) {
354
354
  case l:
355
- return me("Suspense");
355
+ return K("Suspense");
356
356
  case f:
357
- return me("SuspenseList");
357
+ return K("SuspenseList");
358
358
  }
359
359
  if (typeof u == "object")
360
360
  switch (u.$$typeof) {
@@ -363,16 +363,16 @@ function ir() {
363
363
  case d:
364
364
  return We(u.type, x, T);
365
365
  case p: {
366
- var P = u, O = P._payload, V = P._init;
366
+ var P = u, B = P._payload, V = P._init;
367
367
  try {
368
- return We(V(O), x, T);
368
+ return We(V(B), x, T);
369
369
  } catch {
370
370
  }
371
371
  }
372
372
  }
373
373
  return "";
374
374
  }
375
- var Ve = Object.prototype.hasOwnProperty, rn = {}, sn = y.ReactDebugCurrentFrame;
375
+ var Ve = Object.prototype.hasOwnProperty, rn = {}, sn = b.ReactDebugCurrentFrame;
376
376
  function Ye(u) {
377
377
  if (u) {
378
378
  var x = u._owner, T = We(u.type, u._source, x ? x.type : null);
@@ -380,22 +380,22 @@ function ir() {
380
380
  } else
381
381
  sn.setExtraStackFrame(null);
382
382
  }
383
- function ya(u, x, T, P, O) {
383
+ function ya(u, x, T, P, B) {
384
384
  {
385
385
  var V = Function.call.bind(Ve);
386
- for (var I in u)
387
- if (V(u, I)) {
388
- var R = void 0;
386
+ for (var O in u)
387
+ if (V(u, O)) {
388
+ var L = void 0;
389
389
  try {
390
- if (typeof u[I] != "function") {
391
- var oe = Error((P || "React class") + ": " + T + " type `" + I + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof u[I] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
390
+ if (typeof u[O] != "function") {
391
+ var oe = Error((P || "React class") + ": " + T + " type `" + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof u[O] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
392
392
  throw oe.name = "Invariant Violation", oe;
393
393
  }
394
- R = u[I](x, I, P, T, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
395
- } catch (X) {
396
- R = X;
394
+ L = u[O](x, O, P, T, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
395
+ } catch (ee) {
396
+ L = ee;
397
397
  }
398
- R && !(R instanceof Error) && (Ye(O), _("%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).", P || "React class", T, I, typeof R), Ye(null)), R instanceof Error && !(R.message in rn) && (rn[R.message] = !0, Ye(O), _("Failed %s type: %s", T, R.message), Ye(null));
398
+ L && !(L instanceof Error) && (Ye(B), _("%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).", P || "React class", T, O, typeof L), Ye(null)), L instanceof Error && !(L.message in rn) && (rn[L.message] = !0, Ye(B), _("Failed %s type: %s", T, L.message), Ye(null));
399
399
  }
400
400
  }
401
401
  }
@@ -423,7 +423,7 @@ function ir() {
423
423
  if (ka(u))
424
424
  return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", xa(u)), on(u);
425
425
  }
426
- var De = y.ReactCurrentOwner, ja = {
426
+ var De = b.ReactCurrentOwner, ja = {
427
427
  key: !0,
428
428
  ref: !0,
429
429
  __self: !0,
@@ -448,8 +448,8 @@ function ir() {
448
448
  }
449
449
  function $a(u, x) {
450
450
  if (typeof u.ref == "string" && De.current && x && De.current.stateNode !== x) {
451
- var T = q(De.current.type);
452
- wt[T] || (_('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', q(De.current.type), u.ref), wt[T] = !0);
451
+ var T = N(De.current.type);
452
+ wt[T] || (_('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', N(De.current.type), u.ref), wt[T] = !0);
453
453
  }
454
454
  }
455
455
  function Ea(u, x) {
@@ -474,54 +474,54 @@ function ir() {
474
474
  });
475
475
  }
476
476
  }
477
- var Sa = function(u, x, T, P, O, V, I) {
478
- var R = {
477
+ var Sa = function(u, x, T, P, B, V, O) {
478
+ var L = {
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: u,
483
483
  key: x,
484
484
  ref: T,
485
- props: I,
485
+ props: O,
486
486
  // Record the component responsible for creating this element.
487
487
  _owner: V
488
488
  };
489
- return R._store = {}, Object.defineProperty(R._store, "validated", {
489
+ return L._store = {}, Object.defineProperty(L._store, "validated", {
490
490
  configurable: !1,
491
491
  enumerable: !1,
492
492
  writable: !0,
493
493
  value: !1
494
- }), Object.defineProperty(R, "_self", {
494
+ }), Object.defineProperty(L, "_self", {
495
495
  configurable: !1,
496
496
  enumerable: !1,
497
497
  writable: !1,
498
498
  value: P
499
- }), Object.defineProperty(R, "_source", {
499
+ }), Object.defineProperty(L, "_source", {
500
500
  configurable: !1,
501
501
  enumerable: !1,
502
502
  writable: !1,
503
- value: O
504
- }), Object.freeze && (Object.freeze(R.props), Object.freeze(R)), R;
503
+ value: B
504
+ }), Object.freeze && (Object.freeze(L.props), Object.freeze(L)), L;
505
505
  };
506
- function Ma(u, x, T, P, O) {
506
+ function Ma(u, x, T, P, B) {
507
507
  {
508
- var V, I = {}, R = null, oe = null;
509
- T !== void 0 && (cn(T), R = "" + T), Ta(x) && (cn(x.key), R = "" + x.key), wa(x) && (oe = x.ref, $a(x, O));
508
+ var V, O = {}, L = null, oe = null;
509
+ T !== void 0 && (cn(T), L = "" + T), Ta(x) && (cn(x.key), L = "" + x.key), wa(x) && (oe = x.ref, $a(x, B));
510
510
  for (V in x)
511
- Ve.call(x, V) && !ja.hasOwnProperty(V) && (I[V] = x[V]);
511
+ Ve.call(x, V) && !ja.hasOwnProperty(V) && (O[V] = x[V]);
512
512
  if (u && u.defaultProps) {
513
- var X = u.defaultProps;
514
- for (V in X)
515
- I[V] === void 0 && (I[V] = X[V]);
513
+ var ee = u.defaultProps;
514
+ for (V in ee)
515
+ O[V] === void 0 && (O[V] = ee[V]);
516
516
  }
517
- if (R || oe) {
518
- var ee = typeof u == "function" ? u.displayName || u.name || "Unknown" : u;
519
- R && Ea(I, ee), oe && Ca(I, ee);
517
+ if (L || oe) {
518
+ var te = typeof u == "function" ? u.displayName || u.name || "Unknown" : u;
519
+ L && Ea(O, te), oe && Ca(O, te);
520
520
  }
521
- return Sa(u, R, oe, O, P, De.current, I);
521
+ return Sa(u, L, oe, B, P, De.current, O);
522
522
  }
523
523
  }
524
- var Tt = y.ReactCurrentOwner, un = y.ReactDebugCurrentFrame;
524
+ var Tt = b.ReactCurrentOwner, un = b.ReactDebugCurrentFrame;
525
525
  function Ce(u) {
526
526
  if (u) {
527
527
  var x = u._owner, T = We(u.type, u._source, x ? x.type : null);
@@ -537,7 +537,7 @@ function ir() {
537
537
  function mn() {
538
538
  {
539
539
  if (Tt.current) {
540
- var u = q(Tt.current.type);
540
+ var u = N(Tt.current.type);
541
541
  if (u)
542
542
  return `
543
543
 
@@ -580,7 +580,7 @@ Check the top-level render call using <` + T + ">.");
580
580
  return;
581
581
  fn[T] = !0;
582
582
  var P = "";
583
- u && u._owner && u._owner !== Tt.current && (P = " It was passed a child from " + q(u._owner.type) + "."), Ce(u), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', T, P), Ce(null);
583
+ u && u._owner && u._owner !== Tt.current && (P = " It was passed a child from " + N(u._owner.type) + "."), Ce(u), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', T, P), Ce(null);
584
584
  }
585
585
  }
586
586
  function hn(u, x) {
@@ -595,10 +595,10 @@ Check the top-level render call using <` + T + ">.");
595
595
  else if (Et(u))
596
596
  u._store && (u._store.validated = !0);
597
597
  else if (u) {
598
- var O = k(u);
599
- if (typeof O == "function" && O !== u.entries)
600
- for (var V = O.call(u), I; !(I = V.next()).done; )
601
- Et(I.value) && pn(I.value, x);
598
+ var B = k(u);
599
+ if (typeof B == "function" && B !== u.entries)
600
+ for (var V = B.call(u), O; !(O = V.next()).done; )
601
+ Et(O.value) && pn(O.value, x);
602
602
  }
603
603
  }
604
604
  }
@@ -617,12 +617,12 @@ Check the top-level render call using <` + T + ">.");
617
617
  else
618
618
  return;
619
619
  if (T) {
620
- var P = q(x);
620
+ var P = N(x);
621
621
  ya(T, u.props, "prop", P, u);
622
622
  } else if (x.PropTypes !== void 0 && !$t) {
623
623
  $t = !0;
624
- var O = q(x);
625
- _("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", O || "Unknown");
624
+ var B = N(x);
625
+ _("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", B || "Unknown");
626
626
  }
627
627
  typeof x.getDefaultProps == "function" && !x.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
628
628
  }
@@ -639,50 +639,50 @@ Check the top-level render call using <` + T + ">.");
639
639
  u.ref !== null && (Ce(u), _("Invalid attribute `ref` supplied to `React.Fragment`."), Ce(null));
640
640
  }
641
641
  }
642
- function gn(u, x, T, P, O, V) {
642
+ function gn(u, x, T, P, B, V) {
643
643
  {
644
- var I = M(u);
645
- if (!I) {
646
- var R = "";
647
- (u === void 0 || typeof u == "object" && u !== null && Object.keys(u).length === 0) && (R += " 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
- var oe = Na(O);
649
- oe ? R += oe : R += mn();
650
- var X;
651
- u === null ? X = "null" : jt(u) ? X = "array" : u !== void 0 && u.$$typeof === t ? (X = "<" + (q(u.type) || "Unknown") + " />", R = " Did you accidentally export a JSX literal instead of a component?") : X = typeof u, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", X, R);
644
+ var O = C(u);
645
+ if (!O) {
646
+ var L = "";
647
+ (u === void 0 || typeof u == "object" && u !== null && Object.keys(u).length === 0) && (L += " 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
+ var oe = Na(B);
649
+ oe ? L += oe : L += mn();
650
+ var ee;
651
+ u === null ? ee = "null" : jt(u) ? ee = "array" : u !== void 0 && u.$$typeof === t ? (ee = "<" + (N(u.type) || "Unknown") + " />", L = " Did you accidentally export a JSX literal instead of a component?") : ee = typeof u, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ee, L);
652
652
  }
653
- var ee = Ma(u, x, T, O, V);
654
- if (ee == null)
655
- return ee;
656
- if (I) {
657
- var he = x.children;
658
- if (he !== void 0)
653
+ var te = Ma(u, x, T, B, V);
654
+ if (te == null)
655
+ return te;
656
+ if (O) {
657
+ var ge = x.children;
658
+ if (ge !== void 0)
659
659
  if (P)
660
- if (jt(he)) {
661
- for (var Se = 0; Se < he.length; Se++)
662
- hn(he[Se], u);
663
- Object.freeze && Object.freeze(he);
660
+ if (jt(ge)) {
661
+ for (var Se = 0; Se < ge.length; Se++)
662
+ hn(ge[Se], u);
663
+ Object.freeze && Object.freeze(ge);
664
664
  } else
665
665
  _("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
666
666
  else
667
- hn(he, u);
667
+ hn(ge, u);
668
668
  }
669
- return u === r ? Fa(ee) : Aa(ee), ee;
669
+ return u === r ? Fa(te) : Aa(te), te;
670
670
  }
671
671
  }
672
672
  function Da(u, x, T) {
673
673
  return gn(u, x, T, !0);
674
674
  }
675
- function La(u, x, T) {
675
+ function Ra(u, x, T) {
676
676
  return gn(u, x, T, !1);
677
677
  }
678
- var Ra = La, Ia = Da;
679
- Re.Fragment = r, Re.jsx = Ra, Re.jsxs = Ia;
680
- }()), Re;
678
+ var La = Ra, Ia = Da;
679
+ Le.Fragment = r, Le.jsx = La, Le.jsxs = Ia;
680
+ }()), Le;
681
681
  }
682
682
  process.env.NODE_ENV === "production" ? Ut.exports = sr() : Ut.exports = ir();
683
683
  var a = Ut.exports;
684
684
  const or = () => {
685
- const [e, t] = D(window.location.pathname), n = () => {
685
+ const [e, t] = R(window.location.pathname), n = () => {
686
686
  const r = window.location.pathname;
687
687
  t(r);
688
688
  };
@@ -690,65 +690,65 @@ const or = () => {
690
690
  window.removeEventListener("popstate", n);
691
691
  }), []), e;
692
692
  }, Pe = (e, t) => {
693
- const n = ne(!1);
693
+ const n = ae(!1);
694
694
  G(() => {
695
695
  n.current ? e() : n.current = !0;
696
696
  }, t);
697
697
  };
698
698
  function cr(e, t, n) {
699
- var r = this, s = ne(null), i = ne(0), o = ne(null), c = ne([]), m = ne(), l = ne(), f = ne(e), d = ne(!0);
699
+ var r = this, s = ae(null), i = ae(0), o = ae(null), c = ae([]), m = ae(), l = ae(), f = ae(e), d = ae(!0);
700
700
  f.current = e;
701
701
  var p = typeof window < "u", h = !t && t !== 0 && p;
702
702
  if (typeof e != "function")
703
703
  throw new TypeError("Expected a function");
704
704
  t = +t || 0;
705
- var g = !!(n = n || {}).leading, b = !("trailing" in n) || !!n.trailing, k = "maxWait" in n, y = "debounceOnServer" in n && !!n.debounceOnServer, _ = k ? Math.max(+n.maxWait || 0, t) : null;
705
+ var g = !!(n = n || {}).leading, y = !("trailing" in n) || !!n.trailing, k = "maxWait" in n, b = "debounceOnServer" in n && !!n.debounceOnServer, _ = k ? Math.max(+n.maxWait || 0, t) : null;
706
706
  G(function() {
707
707
  return d.current = !0, function() {
708
708
  d.current = !1;
709
709
  };
710
710
  }, []);
711
711
  var v = ft(function() {
712
- var j = function(M) {
713
- var E = c.current, N = m.current;
714
- return c.current = m.current = null, i.current = M, l.current = f.current.apply(N, E);
715
- }, $ = function(M, E) {
716
- h && cancelAnimationFrame(o.current), o.current = h ? requestAnimationFrame(M) : setTimeout(M, E);
717
- }, C = function(M) {
712
+ var j = function(C) {
713
+ var E = c.current, Z = m.current;
714
+ return c.current = m.current = null, i.current = C, l.current = f.current.apply(Z, E);
715
+ }, S = function(C, E) {
716
+ h && cancelAnimationFrame(o.current), o.current = h ? requestAnimationFrame(C) : setTimeout(C, E);
717
+ }, M = function(C) {
718
718
  if (!d.current)
719
719
  return !1;
720
- var E = M - s.current;
721
- return !s.current || E >= t || E < 0 || k && M - i.current >= _;
722
- }, Z = function(M) {
723
- return o.current = null, b && c.current ? j(M) : (c.current = m.current = null, l.current);
724
- }, L = function M() {
720
+ var E = C - s.current;
721
+ return !s.current || E >= t || E < 0 || k && C - i.current >= _;
722
+ }, D = function(C) {
723
+ return o.current = null, y && c.current ? j(C) : (c.current = m.current = null, l.current);
724
+ }, I = function C() {
725
725
  var E = Date.now();
726
- if (C(E))
727
- return Z(E);
726
+ if (M(E))
727
+ return D(E);
728
728
  if (d.current) {
729
- var N = t - (E - s.current), q = k ? Math.min(N, _ - (E - i.current)) : N;
730
- $(M, q);
729
+ var Z = t - (E - s.current), N = k ? Math.min(Z, _ - (E - i.current)) : Z;
730
+ S(C, N);
731
731
  }
732
- }, S = function() {
733
- if (p || y) {
734
- var M = Date.now(), E = C(M);
735
- if (c.current = [].slice.call(arguments), m.current = r, s.current = M, E) {
732
+ }, $ = function() {
733
+ if (p || b) {
734
+ var C = Date.now(), E = M(C);
735
+ if (c.current = [].slice.call(arguments), m.current = r, s.current = C, E) {
736
736
  if (!o.current && d.current)
737
- return i.current = s.current, $(L, t), g ? j(s.current) : l.current;
737
+ return i.current = s.current, S(I, t), g ? j(s.current) : l.current;
738
738
  if (k)
739
- return $(L, t), j(s.current);
739
+ return S(I, t), j(s.current);
740
740
  }
741
- return o.current || $(L, t), l.current;
741
+ return o.current || S(I, t), l.current;
742
742
  }
743
743
  };
744
- return S.cancel = function() {
744
+ return $.cancel = function() {
745
745
  o.current && (h ? cancelAnimationFrame(o.current) : clearTimeout(o.current)), i.current = 0, c.current = s.current = m.current = o.current = null;
746
- }, S.isPending = function() {
746
+ }, $.isPending = function() {
747
747
  return !!o.current;
748
- }, S.flush = function() {
749
- return o.current ? Z(Date.now()) : l.current;
750
- }, S;
751
- }, [g, k, t, _, b, h, p, y]);
748
+ }, $.flush = function() {
749
+ return o.current ? D(Date.now()) : l.current;
750
+ }, $;
751
+ }, [g, k, t, _, y, h, p, b]);
752
752
  return v;
753
753
  }
754
754
  function Zn(e, t, n) {
@@ -809,7 +809,7 @@ const Ue = (e = !0, t = !1, n = "window") => {
809
809
  return s;
810
810
  }, dr = (e = [], t = !0) => {
811
811
  e = Array.isArray(e) ? e : [e];
812
- const n = ne(!1);
812
+ const n = ae(!1);
813
813
  Pe(() => {
814
814
  if (window && window.location && window.location.hash) {
815
815
  if (n.current)
@@ -1199,7 +1199,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1199
1199
  es: fr,
1200
1200
  fr: pr,
1201
1201
  pt: hr
1202
- }, Symbol.toStringTag, { value: "Module" })), zn = (e) => e in Qt, be = (e, t, n, r, s = {}) => {
1202
+ }, Symbol.toStringTag, { value: "Module" })), zn = (e) => e in Qt, ye = (e, t, n, r, s = {}) => {
1203
1203
  let i = "";
1204
1204
  return zn(`${t}_${n}`) ? i = e({ id: `${t}_${n}` }, s) : i = e({ id: t }, { [r]: n, ...s }), i;
1205
1205
  }, _r = (e, t, n) => {
@@ -1229,7 +1229,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1229
1229
  }), n;
1230
1230
  }, xr = (e) => new Promise((t) => setTimeout(t, e)), rt = (e, t) => F.Children.map(e, (n) => F.cloneElement(n, {
1231
1231
  ...t
1232
- })), B = ({
1232
+ })), H = ({
1233
1233
  variant: e = "primary",
1234
1234
  size: t = "medium",
1235
1235
  styling: n = { muted: !1, fullWidth: !1 },
@@ -1245,12 +1245,12 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1245
1245
  }) => {
1246
1246
  const h = Ue(typeof t == "object");
1247
1247
  if (typeof t == "object" && typeof h == "number") {
1248
- const k = Object.assign({}, t), y = qn(Object.keys(k));
1249
- t = Hn(h, y, k);
1248
+ const k = Object.assign({}, t), b = qn(Object.keys(k));
1249
+ t = Hn(h, b, k);
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 = {
1253
+ const y = {
1254
1254
  ...d,
1255
1255
  className: w(e, c, g, {
1256
1256
  "no-text": !f,
@@ -1262,16 +1262,16 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1262
1262
  },
1263
1263
  disabled: typeof m == "object" && "isClickable" in m ? !m.isClickable : m
1264
1264
  };
1265
- return s && (i = "a", b.href = s), F.createElement(
1265
+ return s && (i = "a", y.href = s), F.createElement(
1266
1266
  i,
1267
- b,
1268
- f || (l ? /* @__PURE__ */ a.jsx(ae, { showOnFocus: !1, children: l }) : null)
1267
+ y,
1268
+ f || (l ? /* @__PURE__ */ a.jsx(ie, { showOnFocus: !1, children: l }) : null)
1269
1269
  );
1270
1270
  }, ht = ({ buttons: e, className: t = "", ...n }) => {
1271
- const r = e.length > 1 ? "ul" : "p", s = e.map((i, o) => r === "p" ? /* @__PURE__ */ a.jsx(B, { ...i }, o) : /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(B, { ...i }) }, o));
1271
+ const r = e.length > 1 ? "ul" : "p", s = e.map((i, o) => r === "p" ? /* @__PURE__ */ a.jsx(H, { ...i }, o) : /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(H, { ...i }) }, o));
1272
1272
  return F.createElement(r, { className: w("button-wrapper", t), ...n, children: s });
1273
1273
  };
1274
- const Te = ({ className: e = "", maxWidth: t = !1 }) => {
1274
+ const $e = ({ className: e = "", maxWidth: t = !1 }) => {
1275
1275
  const n = t ? { "--max-width": `${t / 16}rem` } : {};
1276
1276
  return /* @__PURE__ */ a.jsx("hr", { className: w(e, { "has-max-width": t }), style: n });
1277
1277
  }, gt = ({
@@ -1427,7 +1427,7 @@ const Wn = ({ image: e, className: t, testId: n }) => {
1427
1427
  loading: l,
1428
1428
  decoding: f,
1429
1429
  fetchPriority: d
1430
- } = e, { range: p, sizes: h } = kr(e), g = St({ format: "avif", query: o, range: p, url: c }), b = St({ format: "webp", query: o, range: p, url: c }), k = St({ format: "", query: o, range: p, url: c });
1430
+ } = e, { range: p, sizes: h } = kr(e), g = St({ format: "avif", query: o, range: p, url: c }), y = St({ format: "webp", query: o, range: p, url: c }), k = St({ format: "", query: o, range: p, url: c });
1431
1431
  return /* @__PURE__ */ a.jsxs("picture", { className: t, children: [
1432
1432
  i !== "image/gif" && /* @__PURE__ */ a.jsx(
1433
1433
  "source",
@@ -1442,7 +1442,7 @@ const Wn = ({ image: e, className: t, testId: n }) => {
1442
1442
  "source",
1443
1443
  {
1444
1444
  type: "image/webp",
1445
- srcSet: b,
1445
+ srcSet: y,
1446
1446
  sizes: h,
1447
1447
  "data-testid": "source"
1448
1448
  }
@@ -1466,7 +1466,7 @@ const Wn = ({ image: e, className: t, testId: n }) => {
1466
1466
  };
1467
1467
  let Ie = !1;
1468
1468
  const wr = ({ isOpen: e = !1, isLoading: t = !1, children: n }) => {
1469
- const r = A(), s = ne(null), [i, o] = D("hidden");
1469
+ const r = A(), s = ae(null), [i, o] = R("hidden");
1470
1470
  G(() => {
1471
1471
  const m = s.current;
1472
1472
  if (m)
@@ -1626,7 +1626,7 @@ const Tr = [
1626
1626
  }),
1627
1627
  c,
1628
1628
  o && o.text && o.link && /* @__PURE__ */ a.jsx(
1629
- B,
1629
+ H,
1630
1630
  {
1631
1631
  variant: n || r === "light" ? "primary" : "secondary",
1632
1632
  size: { mobile: "medium", 768: "large" },
@@ -1650,7 +1650,7 @@ const Si = ({
1650
1650
  }) => !n && !r ? null : /* @__PURE__ */ a.jsxs("aside", { className: w("marketing-block", e), children: [
1651
1651
  n && /* @__PURE__ */ a.jsx("p", { className: "title", children: n }),
1652
1652
  r && /* @__PURE__ */ a.jsx("p", { children: r }),
1653
- t && /* @__PURE__ */ a.jsx(B, { variant: "secondary", size: "medium", href: t.link, className: "gtm-trackable", "data-gtm-event-context": s, "data-gtm-event-type": "learn-more-click", children: t.text })
1653
+ t && /* @__PURE__ */ a.jsx(H, { variant: "secondary", size: "medium", href: t.link, className: "gtm-trackable", "data-gtm-event-context": s, "data-gtm-event-type": "learn-more-click", children: t.text })
1654
1654
  ] }), Er = ({ showDevTools: e = !0, children: t }) => {
1655
1655
  const n = new za({
1656
1656
  // default options we would like on all queries can be overridden individually
@@ -1700,12 +1700,12 @@ const Mr = ({ children: e, user: t }) => t.isLoading ? null : process.env.REACT_
1700
1700
  ...n || {}
1701
1701
  };
1702
1702
  return /* @__PURE__ */ a.jsx(Ha, { locale: r, messages: s, children: e });
1703
- }, ke = Gt({ isLoading: !0 });
1703
+ }, je = Gt({ isLoading: !0 });
1704
1704
  function Jt() {
1705
- return ge(ke);
1705
+ return _e(je);
1706
1706
  }
1707
- const Pr = ({ children: e, user: t }) => /* @__PURE__ */ a.jsx(ke.Provider, { value: t, children: e }), Mi = ({ bootstrap: e, children: t, intl: n }) => {
1708
- const [r, s] = D({ isLoading: !0 });
1707
+ const Pr = ({ children: e, user: t }) => /* @__PURE__ */ a.jsx(je.Provider, { value: t, children: e }), Mi = ({ bootstrap: e, children: t, intl: n }) => {
1708
+ const [r, s] = R({ isLoading: !0 });
1709
1709
  return G(() => {
1710
1710
  e().then((i) => {
1711
1711
  s({ ...i, isLoading: !1 }), br(5e3);
@@ -1726,7 +1726,7 @@ const Vn = ({ label: e = !1, className: t = "", children: n }) => {
1726
1726
  /* @__PURE__ */ a.jsx("div", { className: "content", children: n })
1727
1727
  ] });
1728
1728
  };
1729
- const we = ({
1729
+ const Te = ({
1730
1730
  variant: e = "primary",
1731
1731
  icon: t,
1732
1732
  className: n = "",
@@ -1765,14 +1765,14 @@ const bt = ({
1765
1765
  ...f
1766
1766
  } = n;
1767
1767
  return /* @__PURE__ */ a.jsx(
1768
- we,
1768
+ Te,
1769
1769
  {
1770
1770
  variant: "subtle",
1771
1771
  className: w("empty-state-box", e, r),
1772
1772
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1773
1773
  t && /* @__PURE__ */ a.jsx(pt, { options: { forceBlock: !0 }, children: t }),
1774
1774
  s && typeof n == "object" && (l || /* @__PURE__ */ a.jsx(
1775
- B,
1775
+ H,
1776
1776
  {
1777
1777
  ...f,
1778
1778
  variant: n.variant ? n.variant : "secondary",
@@ -1801,7 +1801,7 @@ const Ar = ({ type: e = "default", className: t = "", heading: n = !1, children:
1801
1801
  ) : /* @__PURE__ */ a.jsx("p", { children: r })
1802
1802
  ] });
1803
1803
  const Pi = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children: s }) => {
1804
- const i = A(), o = ne(null), [c, m] = D(""), [l, f] = D("closed");
1804
+ const i = A(), o = ae(null), [c, m] = R(""), [l, f] = R("closed");
1805
1805
  G(() => {
1806
1806
  const h = o.current;
1807
1807
  if (h)
@@ -1824,13 +1824,13 @@ const Pi = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
1824
1824
  if (!r)
1825
1825
  return null;
1826
1826
  const p = ["opening", "open"].includes(l);
1827
- return /* @__PURE__ */ a.jsxs(we, { variant: "subtle", className: w("hide-show-text-box", e), children: [
1827
+ return /* @__PURE__ */ a.jsxs(Te, { variant: "subtle", className: w("hide-show-text-box", e), children: [
1828
1828
  /* @__PURE__ */ a.jsxs("div", { ref: o, className: w("content", l), children: [
1829
1829
  /* @__PURE__ */ a.jsx(pt, { options: { forceBlock: !0 }, children: l === "closed" ? c : r }),
1830
1830
  l !== "closed" && s
1831
1831
  ] }),
1832
1832
  /* @__PURE__ */ a.jsx("p", { className: "cta", children: /* @__PURE__ */ a.jsx(
1833
- B,
1833
+ H,
1834
1834
  {
1835
1835
  variant: "tertiary",
1836
1836
  icon: { icon: "navigation_arrow", position: "left", animate: !0 },
@@ -1843,7 +1843,7 @@ const Pi = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
1843
1843
  }
1844
1844
  ) })
1845
1845
  ] });
1846
- }, Fr = () => F.Fragment, Dr = ({ children: e }) => /* @__PURE__ */ a.jsx(we, { variant: "secondary", children: e }), Lr = ["span", "strong", "h1", "h2", "h3", "h4", "h5", "h6", "p"], Rr = ({ children: e }) => {
1846
+ }, Fr = () => F.Fragment, Dr = ({ children: e }) => /* @__PURE__ */ a.jsx(Te, { variant: "secondary", children: e }), Rr = ["span", "strong", "h1", "h2", "h3", "h4", "h5", "h6", "p"], Lr = ({ children: e }) => {
1847
1847
  const t = A();
1848
1848
  if (!e)
1849
1849
  return null;
@@ -1856,7 +1856,7 @@ const Pi = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
1856
1856
  for (const o of Ht.toArray(i.props.children))
1857
1857
  if (!(!o || typeof o == "string" || typeof o == "number") && F.isValidElement(o)) {
1858
1858
  const c = o.type;
1859
- if (Lr.includes(c)) {
1859
+ if (Rr.includes(c)) {
1860
1860
  for (n = o.props.children; typeof n != "string" && (Array.isArray(n) && n[0].props && n[0].props.children && n[0].props.children[0]); )
1861
1861
  n = n[0].props.children[0];
1862
1862
  break;
@@ -1878,12 +1878,12 @@ const Pi = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
1878
1878
  if (t.class)
1879
1879
  switch (t.class) {
1880
1880
  case "casestudy":
1881
- return /* @__PURE__ */ a.jsx(we, { variant: "secondary", children: e });
1881
+ return /* @__PURE__ */ a.jsx(Te, { variant: "secondary", children: e });
1882
1882
  case "general-textbox":
1883
1883
  case "highlight-box":
1884
- return /* @__PURE__ */ a.jsx(we, { variant: "primary", children: e });
1884
+ return /* @__PURE__ */ a.jsx(Te, { variant: "primary", children: e });
1885
1885
  case "pink-textbox":
1886
- return /* @__PURE__ */ a.jsx(we, { variant: "tertiary", children: e });
1886
+ return /* @__PURE__ */ a.jsx(Te, { variant: "tertiary", children: e });
1887
1887
  default:
1888
1888
  return /* @__PURE__ */ a.jsx("div", { ...t, children: e });
1889
1889
  }
@@ -1893,7 +1893,7 @@ const Pi = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
1893
1893
  let r = "default";
1894
1894
  const s = e.src;
1895
1895
  return s.includes("youtube") || s.includes("vimeo") ? r = "video" : s.includes("riddle") || s.includes("sli.do") ? r = "poll" : s.includes("padlet") && (r = "padlet"), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1896
- /* @__PURE__ */ a.jsx(ae, { children: /* @__PURE__ */ a.jsx("a", { href: `#content-after-iframe-${n}`, children: t.formatMessage({ id: `markdown_skip${r === "default" ? "" : `_${r}`}` }) }) }),
1896
+ /* @__PURE__ */ a.jsx(ie, { children: /* @__PURE__ */ a.jsx("a", { href: `#content-after-iframe-${n}`, children: t.formatMessage({ id: `markdown_skip${r === "default" ? "" : `_${r}`}` }) }) }),
1897
1897
  /* @__PURE__ */ a.jsx("iframe", { ...e, title: t.formatMessage({ id: `markdown_iframe${r === "default" ? "" : `_${r}`}` }) }),
1898
1898
  /* @__PURE__ */ a.jsx("span", { id: `content-after-iframe-${n}`, tabIndex: -1 })
1899
1899
  ] });
@@ -1914,7 +1914,7 @@ const Pi = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
1914
1914
  else
1915
1915
  break;
1916
1916
  }
1917
- return s ? (n = { ...n, className: "button primary medium" }, /* @__PURE__ */ a.jsx("p", { className: "center", children: /* @__PURE__ */ a.jsx(B, { variant: "primary", size: "medium", ...n, children: r }) })) : /* @__PURE__ */ a.jsx("a", { ...n, children: r });
1917
+ return s ? (n = { ...n, className: "button primary medium" }, /* @__PURE__ */ a.jsx("p", { className: "center", children: /* @__PURE__ */ a.jsx(H, { variant: "primary", size: "medium", ...n, children: r }) })) : /* @__PURE__ */ a.jsx("a", { ...n, children: r });
1918
1918
  }, Zr = ({ children: e }) => /* @__PURE__ */ a.jsx("span", { children: e });
1919
1919
  const jn = ({ className: e = "", options: t = {}, children: n }) => {
1920
1920
  n = n.replace(/^<br\/?>/, "");
@@ -1926,12 +1926,12 @@ const jn = ({ className: e = "", options: t = {}, children: n }) => {
1926
1926
  // Override psuedo-code
1927
1927
  // We give the content team psuedo-code short cuts to use in Contentful
1928
1928
  CollapsibleSection: Vn,
1929
- TextBox: we,
1929
+ TextBox: Te,
1930
1930
  CaseStudy: Dr,
1931
1931
  // Override embedded HTML
1932
1932
  // Our content team previously used real HTML, which we need to tear out and replace with React components
1933
1933
  style: Fr,
1934
- details: Rr,
1934
+ details: Lr,
1935
1935
  div: Ir,
1936
1936
  iframe: Or
1937
1937
  }
@@ -1968,7 +1968,7 @@ const st = ({
1968
1968
  const Vt = ({ element: e = "p", children: t = null, className: n = "", ...r }) => F.createElement(e, { ...r, className: w("status-banner text-small", n), "aria-live": "assertive" }, t);
1969
1969
  const Hr = ({ progress: e = 0, text: t = !1, className: n = "" }) => {
1970
1970
  const r = A(), s = e > 75 ? 100 : e > 50 ? 75 : e > 25 ? 50 : e > 5 ? 25 : 0, i = { "--progress": `${e}%` };
1971
- return /* @__PURE__ */ a.jsx("span", { className: w(`progress-bar section-${s}`, n), style: i, children: /* @__PURE__ */ a.jsx(ae, { children: t ? `${e} ${t}` : r.formatMessage({ id: "progressBar" }, { number: e }) }) });
1971
+ return /* @__PURE__ */ a.jsx("span", { className: w(`progress-bar section-${s}`, n), style: i, children: /* @__PURE__ */ a.jsx(ie, { children: t ? `${e} ${t}` : r.formatMessage({ id: "progressBar" }, { number: e }) }) });
1972
1972
  }, Ur = Fe(Hr);
1973
1973
  const Mt = "loadingBlock_", zr = ({ progress: e = 0, steps: t = !1, className: n = "" }) => {
1974
1974
  const r = A();
@@ -1983,7 +1983,7 @@ const Mt = "loadingBlock_", zr = ({ progress: e = 0, steps: t = !1, className: n
1983
1983
  s = i[c];
1984
1984
  const o = s && t[s].icon ? { "--icon": `url(${He}icons/${t[s].icon}.svg)` } : {};
1985
1985
  return /* @__PURE__ */ a.jsxs(
1986
- we,
1986
+ Te,
1987
1987
  {
1988
1988
  className: w("loading-block", n, { "has-icon": s && t[s].icon }),
1989
1989
  variant: "subtle",
@@ -1995,7 +1995,7 @@ const Mt = "loadingBlock_", zr = ({ progress: e = 0, steps: t = !1, className: n
1995
1995
  }
1996
1996
  );
1997
1997
  }, Ai = Fe(zr);
1998
- const _e = ({ element: e = "div", className: t = "", ...n }) => /* @__PURE__ */ a.jsx(Bn, { element: e, className: w("loading-placeholder", t), ...n });
1998
+ const be = ({ element: e = "div", className: t = "", ...n }) => /* @__PURE__ */ a.jsx(Bn, { element: e, className: w("loading-placeholder", t), ...n });
1999
1999
  const Yt = {
2000
2000
  header: ["logo", "link", "link", "search"],
2001
2001
  sidebar: ["text", "text", "text", "text", "text"],
@@ -2013,7 +2013,7 @@ const Yt = {
2013
2013
  "cards-section",
2014
2014
  "footer"
2015
2015
  ]
2016
- }, Gn = (e, t) => e in Yt ? /* @__PURE__ */ a.jsx("div", { className: e, children: Yt[e].map((n, r) => Gn(n, r)) }, t) : /* @__PURE__ */ a.jsx(_e, { className: e }, t), Kn = ({ layout: e = "overview-page", ...t }) => /* @__PURE__ */ a.jsx("div", { className: w("loading-state", e), ...t, children: Yt[e].map((n, r) => Gn(n, r)) }), Qn = (e) => {
2016
+ }, Gn = (e, t) => e in Yt ? /* @__PURE__ */ a.jsx("div", { className: e, children: Yt[e].map((n, r) => Gn(n, r)) }, t) : /* @__PURE__ */ a.jsx(be, { className: e }, t), Kn = ({ layout: e = "overview-page", ...t }) => /* @__PURE__ */ a.jsx("div", { className: w("loading-state", e), ...t, children: Yt[e].map((n, r) => Gn(n, r)) }), Qn = (e) => {
2017
2017
  const t = e && e.toUpperCase().split(" ");
2018
2018
  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) : "";
2019
2019
  }, Ge = ["#5AB6A3", "#A2D7AF", "#806056", "#3962B3"], Wr = (e) => {
@@ -2034,7 +2034,7 @@ const wn = 256, ze = ({
2034
2034
  height: i = wn,
2035
2035
  ...o
2036
2036
  }) => {
2037
- const [c, m] = D(!1), l = ne(null);
2037
+ const [c, m] = R(!1), l = ae(null);
2038
2038
  G(() => {
2039
2039
  const d = l.current;
2040
2040
  if (!d)
@@ -2150,27 +2150,27 @@ const Tn = {
2150
2150
  /* @__PURE__ */ a.jsx("ul", { children: n.map((d, p) => {
2151
2151
  let h, g = "";
2152
2152
  if (p < c) {
2153
- const { name: b = "", image: k = "" } = Jn(d);
2153
+ const { name: y = "", image: k = "" } = Jn(d);
2154
2154
  if (o)
2155
- return /* @__PURE__ */ a.jsx(_e, { element: "li", className: "contributor" }, p);
2155
+ return /* @__PURE__ */ a.jsx(be, { element: "li", className: "contributor" }, p);
2156
2156
  h = /* @__PURE__ */ a.jsx(
2157
2157
  ze,
2158
2158
  {
2159
- name: b,
2159
+ name: y,
2160
2160
  src: k,
2161
2161
  width: Tn[s || "medium"],
2162
2162
  height: Tn[s || "medium"]
2163
2163
  }
2164
2164
  );
2165
2165
  } else if (p === c) {
2166
- const b = (t || n.length) - c;
2166
+ const y = (t || n.length) - c;
2167
2167
  h = /* @__PURE__ */ a.jsxs(
2168
2168
  "small",
2169
2169
  {
2170
- className: w({ "large-number": b > 99 }),
2170
+ className: w({ "large-number": y > 99 }),
2171
2171
  children: [
2172
2172
  "+",
2173
- _r(b, 0)
2173
+ _r(y, 0)
2174
2174
  ]
2175
2175
  }
2176
2176
  ), g = "number-left";
@@ -2298,12 +2298,12 @@ const Tn = {
2298
2298
  }
2299
2299
  }, Gr = ({ data: e, cta: t, link: n, gtmContext: r }) => {
2300
2300
  var g;
2301
- const s = A(), [i, o] = D({
2301
+ const s = A(), [i, o] = R({
2302
2302
  loading: !1,
2303
2303
  registered: e.registered || !1
2304
2304
  });
2305
2305
  G(() => {
2306
- e.registered && o((b) => ({ ...b, registered: !0 }));
2306
+ e.registered && o((y) => ({ ...y, registered: !0 }));
2307
2307
  }, [e.registered]);
2308
2308
  const { startDate: c, dateHasPassed: m, pill: l, slug: f } = e, d = e.contentType;
2309
2309
  let p = "";
@@ -2320,7 +2320,7 @@ const Tn = {
2320
2320
  );
2321
2321
  if (d === "people")
2322
2322
  return /* @__PURE__ */ a.jsx(
2323
- B,
2323
+ H,
2324
2324
  {
2325
2325
  variant: "tertiary",
2326
2326
  size: "small",
@@ -2333,8 +2333,8 @@ const Tn = {
2333
2333
  );
2334
2334
  const h = ["microcourse", "event"];
2335
2335
  if (t && t.onClick && h.includes(d) && l !== "premium") {
2336
- const b = i.loading || i.registered, k = async (y) => {
2337
- if (y.preventDefault(), y.stopPropagation(), !(b || !t || !t.onClick)) {
2336
+ const y = i.loading || i.registered, k = async (b) => {
2337
+ if (b.preventDefault(), b.stopPropagation(), !(y || !t || !t.onClick)) {
2338
2338
  o((_) => ({ ..._, loading: !0 }));
2339
2339
  try {
2340
2340
  const _ = await t.onClick(e);
@@ -2345,18 +2345,18 @@ const Tn = {
2345
2345
  }
2346
2346
  };
2347
2347
  return /* @__PURE__ */ a.jsx(
2348
- B,
2348
+ H,
2349
2349
  {
2350
2350
  onClick: k,
2351
2351
  className: "gtm-trackable",
2352
2352
  size: "small",
2353
2353
  styling: { fullWidth: !0 },
2354
- disabled: b,
2354
+ disabled: y,
2355
2355
  "data-gtm-event-context": `${r}Page-${d}: ${f}`,
2356
2356
  "data-gtm-event-type": `${r}-${d}-register-click`,
2357
2357
  "data-testid": "in-card-button",
2358
2358
  children: s.formatMessage({
2359
- id: `card_cta_${d}${b ? `_${i.loading ? "loading" : "done"}` : ""}`
2359
+ id: `card_cta_${d}${y ? `_${i.loading ? "loading" : "done"}` : ""}`
2360
2360
  })
2361
2361
  }
2362
2362
  );
@@ -2385,19 +2385,19 @@ const Qr = {
2385
2385
  gtmContext: s = "Carousel",
2386
2386
  className: i = ""
2387
2387
  }) => {
2388
- const o = A(), c = ge(ke), m = c && typeof c.id == "string", [l, f] = D({
2388
+ const o = A(), c = _e(je), m = c && typeof c.id == "string", [l, f] = R({
2389
2389
  data: null,
2390
2390
  isLoading: !0
2391
- }), { data: d, isLoading: p } = l, h = Ln(() => {
2392
- n(t, m).then((L) => {
2393
- f(() => ({ data: L, isLoading: !1 }));
2394
- }).catch(() => f((L) => ({ ...L, isLoading: !1 })));
2391
+ }), { data: d, isLoading: p } = l, h = Rn(() => {
2392
+ n(t, m).then((I) => {
2393
+ f(() => ({ data: I, isLoading: !1 }));
2394
+ }).catch(() => f((I) => ({ ...I, isLoading: !1 })));
2395
2395
  }, [e]);
2396
2396
  if (G(() => {
2397
2397
  h();
2398
2398
  }, []), p || !d)
2399
2399
  return /* @__PURE__ */ a.jsx(
2400
- _e,
2400
+ be,
2401
2401
  {
2402
2402
  element: "li",
2403
2403
  className: "card-wrapper",
@@ -2406,22 +2406,22 @@ const Qr = {
2406
2406
  );
2407
2407
  const { contentType: g } = d;
2408
2408
  if (!g || !it[g])
2409
- return /* @__PURE__ */ a.jsx(_e, { element: "li", className: "card-wrapper" });
2409
+ return /* @__PURE__ */ a.jsx(be, { element: "li", className: "card-wrapper" });
2410
2410
  const {
2411
- basePath: b = "",
2411
+ basePath: y = "",
2412
2412
  className: k,
2413
- length: y,
2413
+ length: b,
2414
2414
  gtmEvent: _
2415
- } = it[g], v = zn(`card_label_${g}`) ? o.formatMessage({ id: `card_label_${g}` }) : !1, j = d.slug ? `${b}${d.slug}` : !1, $ = { ...Qr, ...y };
2416
- let C = { className: "card" };
2417
- j && (C = {
2415
+ } = it[g], v = zn(`card_label_${g}`) ? o.formatMessage({ id: `card_label_${g}` }) : !1, j = d.slug ? `${y}${d.slug}` : !1, S = { ...Qr, ...b };
2416
+ let M = { className: "card" };
2417
+ j && (M = {
2418
2418
  href: j,
2419
2419
  className: "card gtm-trackable",
2420
2420
  "data-gtm-event-context": `${s}-CarouselCard`,
2421
2421
  "data-gtm-event-type": `${_}-click`,
2422
2422
  "data-testid": "link"
2423
- }, d.openInNewTab && (C.target = "_blank"));
2424
- const Z = d.customIcon ? { "--custom-icon": Kr(d.customIcon) } : {};
2423
+ }, d.openInNewTab && (M.target = "_blank"));
2424
+ const D = d.customIcon ? { "--custom-icon": Kr(d.customIcon) } : {};
2425
2425
  return /* @__PURE__ */ a.jsx(
2426
2426
  "li",
2427
2427
  {
@@ -2431,11 +2431,11 @@ const Qr = {
2431
2431
  "has-custom-icon": d.customIcon,
2432
2432
  "has-image": d.banner
2433
2433
  }),
2434
- style: Z,
2434
+ style: D,
2435
2435
  "data-testid": `${g}-card`,
2436
2436
  children: F.createElement(
2437
2437
  j ? "a" : "div",
2438
- C,
2438
+ M,
2439
2439
  /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2440
2440
  (d.customLabel || v) && /* @__PURE__ */ a.jsx("small", { className: w("card-label text-small", k), children: d.customLabel || v }),
2441
2441
  d.startDate && !d.isOngoingEvent && /* @__PURE__ */ a.jsx(
@@ -2470,14 +2470,14 @@ const Qr = {
2470
2470
  "data-testid": "contributors"
2471
2471
  }
2472
2472
  ),
2473
- d.partner && /* @__PURE__ */ a.jsx("p", { className: "partners", "data-testid": "partners", children: Ne(d.partner.title, $.partner) }),
2473
+ d.partner && /* @__PURE__ */ a.jsx("p", { className: "partners", "data-testid": "partners", children: Ne(d.partner.title, S.partner) }),
2474
2474
  /* Text */
2475
- ["title", "text", "secondaryText"].map((L) => {
2476
- const S = d[L];
2477
- if (!S)
2475
+ ["title", "text", "secondaryText"].map((I) => {
2476
+ const $ = d[I];
2477
+ if (!$)
2478
2478
  return null;
2479
- const M = ur(L);
2480
- return /* @__PURE__ */ a.jsx("p", { className: M, "data-testid": M, children: Ne(S, $[L]) }, L);
2479
+ const C = ur(I);
2480
+ return /* @__PURE__ */ a.jsx("p", { className: C, "data-testid": C, children: Ne($, S[I]) }, I);
2481
2481
  }),
2482
2482
  /* @__PURE__ */ a.jsx(Yr, { type: k || "", data: d }),
2483
2483
  /* @__PURE__ */ a.jsx(Gr, { data: d, cta: r, link: j || "", gtmContext: s })
@@ -2539,50 +2539,50 @@ const ts = ({
2539
2539
  className: i,
2540
2540
  gtmContext: o
2541
2541
  }) => {
2542
- var L;
2543
- const c = A(), [m, l] = D({
2542
+ var I;
2543
+ const c = A(), [m, l] = R({
2544
2544
  cardsPerPage: 4,
2545
2545
  isLoading: !0
2546
- }), { cardsPerPage: f, isLoading: d } = m, [p, h] = D({
2546
+ }), { cardsPerPage: f, isLoading: d } = m, [p, h] = R({
2547
2547
  currentPage: 0,
2548
2548
  loadedPages: [0]
2549
- }), { currentPage: g, loadedPages: b } = p, k = t.length, y = Math.ceil(k / f), _ = ne(null), v = Ue(!0, !0, _ == null ? void 0 : _.current);
2549
+ }), { currentPage: g, loadedPages: y } = p, k = t.length, b = Math.ceil(k / f), _ = ae(null), v = Ue(!0, !0, _ == null ? void 0 : _.current);
2550
2550
  G(() => {
2551
- let S = 1;
2552
- v && (v >= Nt.fourCards ? S = 4 : v >= Nt.threeCards ? S = 3 : v >= Nt.twoCards && (S = 2), S > k && (S = k)), l((M) => ({
2553
- ...M,
2554
- cardsPerPage: S,
2551
+ let $ = 1;
2552
+ v && (v >= Nt.fourCards ? $ = 4 : v >= Nt.threeCards ? $ = 3 : v >= Nt.twoCards && ($ = 2), $ > k && ($ = k)), l((C) => ({
2553
+ ...C,
2554
+ cardsPerPage: $,
2555
2555
  isLoading: !1
2556
2556
  }));
2557
2557
  }, [v, k]);
2558
- const j = (S = "next") => {
2559
- let M = g;
2560
- if (typeof S == "string")
2561
- if (S === "next")
2562
- if (g < y - 1)
2563
- M = g + 1;
2558
+ const j = ($ = "next") => {
2559
+ let C = g;
2560
+ if (typeof $ == "string")
2561
+ if ($ === "next")
2562
+ if (g < b - 1)
2563
+ C = g + 1;
2564
2564
  else
2565
2565
  return;
2566
2566
  else if (g > 0)
2567
- M = g - 1;
2567
+ C = g - 1;
2568
2568
  else
2569
2569
  return;
2570
2570
  else
2571
- M = S;
2571
+ C = $;
2572
2572
  h((E) => ({
2573
2573
  ...E,
2574
- currentPage: M,
2575
- loadedPages: [.../* @__PURE__ */ new Set([...b, M])]
2574
+ currentPage: C,
2575
+ loadedPages: [.../* @__PURE__ */ new Set([...y, C])]
2576
2576
  }));
2577
- }, $ = (S) => {
2578
- Ke = S.touches[0].clientX;
2579
- }, C = (S) => {
2577
+ }, S = ($) => {
2578
+ Ke = $.touches[0].clientX;
2579
+ }, M = ($) => {
2580
2580
  if (Ke === null)
2581
2581
  return;
2582
- const M = S.touches[0].clientX, E = Ke - M;
2582
+ const C = $.touches[0].clientX, E = Ke - C;
2583
2583
  E > 5 ? j("next") : E < -5 && j("previous"), Ke = null;
2584
- }, Z = {
2585
- "--width": `${((L = _ == null ? void 0 : _.current) == null ? void 0 : L.offsetWidth) || 0}px`,
2584
+ }, D = {
2585
+ "--width": `${((I = _ == null ? void 0 : _.current) == null ? void 0 : I.offsetWidth) || 0}px`,
2586
2586
  "--total-cards": k,
2587
2587
  "--cards-per-page": f,
2588
2588
  "--page": g
@@ -2599,23 +2599,23 @@ const ts = ({
2599
2599
  "ul",
2600
2600
  {
2601
2601
  className: "carousel",
2602
- onTouchStart: $,
2603
- onTouchMove: C,
2604
- style: Z,
2602
+ onTouchStart: S,
2603
+ onTouchMove: M,
2604
+ style: D,
2605
2605
  "data-testid": "carousel-list",
2606
- children: t.map((S, M) => {
2607
- let E = S && S.sys && S.sys.id ? `${e}-card-${S.sys.id}` : null;
2608
- return E && Xr(M, f, g, b) ? /* @__PURE__ */ a.jsx(
2606
+ children: t.map(($, C) => {
2607
+ let E = $ && $.sys && $.sys.id ? `${e}-card-${$.sys.id}` : null;
2608
+ return E && Xr(C, f, g, y) ? /* @__PURE__ */ a.jsx(
2609
2609
  ea,
2610
2610
  {
2611
2611
  id: E,
2612
- card: { ...S, contentType: n[M] },
2612
+ card: { ...$, contentType: n[C] },
2613
2613
  buildCardData: r,
2614
2614
  gtmContext: o
2615
2615
  },
2616
2616
  E
2617
- ) : (E = E || `${e}-card-${M}`, /* @__PURE__ */ a.jsx(
2618
- _e,
2617
+ ) : (E = E || `${e}-card-${C}`, /* @__PURE__ */ a.jsx(
2618
+ be,
2619
2619
  {
2620
2620
  element: "li",
2621
2621
  className: "card-wrapper",
@@ -2626,15 +2626,15 @@ const ts = ({
2626
2626
  })
2627
2627
  }
2628
2628
  ),
2629
- y <= 1 ? null : /* @__PURE__ */ a.jsxs("ul", { className: "controls", "data-testid": "carousel-controls", children: [
2629
+ b <= 1 ? null : /* @__PURE__ */ a.jsxs("ul", { className: "controls", "data-testid": "carousel-controls", children: [
2630
2630
  /* @__PURE__ */ a.jsx("li", { className: "arrow previous", children: /* @__PURE__ */ a.jsx(
2631
- B,
2631
+ H,
2632
2632
  {
2633
2633
  variant: "secondary",
2634
2634
  size: "large",
2635
2635
  icon: { icon: "chevron_left" },
2636
- onClick: (S) => {
2637
- S.preventDefault(), S.stopPropagation(), j("previous");
2636
+ onClick: ($) => {
2637
+ $.preventDefault(), $.stopPropagation(), j("previous");
2638
2638
  },
2639
2639
  screenreaderText: c.formatMessage({
2640
2640
  id: "carousel_pagination_previous"
@@ -2642,32 +2642,32 @@ const ts = ({
2642
2642
  disabled: g <= 0
2643
2643
  }
2644
2644
  ) }),
2645
- [...Array(y)].map((S, M) => /* @__PURE__ */ a.jsx("li", { "data-testid": "carousel-controls-button", children: /* @__PURE__ */ a.jsx(
2645
+ [...Array(b)].map(($, C) => /* @__PURE__ */ a.jsx("li", { "data-testid": "carousel-controls-button", children: /* @__PURE__ */ a.jsx(
2646
2646
  "button",
2647
2647
  {
2648
2648
  className: w("page-indicator", {
2649
- selected: M === g
2649
+ selected: C === g
2650
2650
  }),
2651
2651
  onClick: (E) => {
2652
- E.preventDefault(), E.stopPropagation(), j(M);
2652
+ E.preventDefault(), E.stopPropagation(), j(C);
2653
2653
  },
2654
- children: /* @__PURE__ */ a.jsx(ae, { showOnFocus: !1, children: c.formatMessage(
2654
+ children: /* @__PURE__ */ a.jsx(ie, { showOnFocus: !1, children: c.formatMessage(
2655
2655
  { id: "carousel_pagination_page" },
2656
- { number: M + 1, total: y }
2656
+ { number: C + 1, total: b }
2657
2657
  ) })
2658
2658
  }
2659
- ) }, `page-indicator-${M}`)),
2659
+ ) }, `page-indicator-${C}`)),
2660
2660
  /* @__PURE__ */ a.jsx("li", { className: "arrow next", children: /* @__PURE__ */ a.jsx(
2661
- B,
2661
+ H,
2662
2662
  {
2663
2663
  variant: "secondary",
2664
2664
  size: "large",
2665
2665
  icon: { icon: "chevron_right" },
2666
- onClick: (S) => {
2667
- S.preventDefault(), S.stopPropagation(), j("next");
2666
+ onClick: ($) => {
2667
+ $.preventDefault(), $.stopPropagation(), j("next");
2668
2668
  },
2669
2669
  screenreaderText: c.formatMessage({ id: "carousel_pagination_next" }),
2670
- disabled: g >= y - 1
2670
+ disabled: g >= b - 1
2671
2671
  }
2672
2672
  ) })
2673
2673
  ] })
@@ -2691,7 +2691,7 @@ const ts = ({
2691
2691
  "data-testid": "carousel-placeholder"
2692
2692
  }
2693
2693
  ),
2694
- d ? null : /* @__PURE__ */ a.jsx(Te, {})
2694
+ d ? null : /* @__PURE__ */ a.jsx($e, {})
2695
2695
  ] }, `placeholder-${f}`) : /* @__PURE__ */ a.jsxs(qe, { children: [
2696
2696
  /* @__PURE__ */ a.jsx(
2697
2697
  ts,
@@ -2702,20 +2702,20 @@ const ts = ({
2702
2702
  ...s
2703
2703
  }
2704
2704
  ),
2705
- d ? null : /* @__PURE__ */ a.jsx(Te, {})
2705
+ d ? null : /* @__PURE__ */ a.jsx($e, {})
2706
2706
  ] }, `carousel-${f}`);
2707
2707
  }
2708
2708
  );
2709
2709
  const Pt = "joinCommunityButton", ta = ({ isMember: e = !1, isShort: t = !1, functions: { join: n, leave: r } = { join: () => {
2710
2710
  }, leave: () => {
2711
2711
  } } }) => {
2712
- const s = A(), i = ge(ke), o = i && typeof i.id == "string", [c, m] = D(e), [l, f] = D(e ? "joined" : "notJoined");
2712
+ const s = A(), i = _e(je), o = i && typeof i.id == "string", [c, m] = R(e), [l, f] = R(e ? "joined" : "notJoined");
2713
2713
  G(() => {
2714
2714
  l === "joining" ? f("joined") : l === "leaving" && f("notJoined");
2715
2715
  }, [c]);
2716
2716
  const d = {}, p = {};
2717
2717
  return c && l !== "leaving" && (d["data-hover-text"] = s.formatMessage({ id: `${Pt}_leave` }), d["aria-label"] = s.formatMessage({ id: `${Pt}_member_aria` }), p["aria-hidden"] = "true"), /* @__PURE__ */ a.jsx(
2718
- B,
2718
+ H,
2719
2719
  {
2720
2720
  variant: c ? "secondary" : "primary",
2721
2721
  size: "medium",
@@ -2740,7 +2740,7 @@ const At = "communityDetails_", Di = ({
2740
2740
  }) => {
2741
2741
  const c = A(), m = 5, l = r || s.length, f = s.length ? s : Array(m).fill({}), d = `/communities/${n}/members` === window.location.pathname;
2742
2742
  return /* @__PURE__ */ a.jsxs("div", { className: w("community-details", e), children: [
2743
- /* @__PURE__ */ a.jsx(Te, {}),
2743
+ /* @__PURE__ */ a.jsx($e, {}),
2744
2744
  /* @__PURE__ */ a.jsxs("div", { className: "member-details", children: [
2745
2745
  /* @__PURE__ */ a.jsxs("div", { className: "top", children: [
2746
2746
  /* @__PURE__ */ a.jsxs("h3", { children: [
@@ -2767,7 +2767,7 @@ const At = "communityDetails_", Di = ({
2767
2767
  ] }),
2768
2768
  /* @__PURE__ */ a.jsx(ta, { isMember: t, functions: { ...o } }),
2769
2769
  t && /* @__PURE__ */ a.jsx(
2770
- B,
2770
+ H,
2771
2771
  {
2772
2772
  variant: "primary",
2773
2773
  onClick: i,
@@ -2778,21 +2778,21 @@ const At = "communityDetails_", Di = ({
2778
2778
  )
2779
2779
  ] });
2780
2780
  };
2781
- const Li = ({
2781
+ const Ri = ({
2782
2782
  breadcrumbs: e,
2783
2783
  cutoff: t = 20,
2784
2784
  className: n = ""
2785
2785
  }) => {
2786
2786
  const r = A();
2787
2787
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2788
- /* @__PURE__ */ a.jsx(ae, { element: "p", children: r.formatMessage({ id: "breadcrumbs_label" }) }),
2788
+ /* @__PURE__ */ a.jsx(ie, { element: "p", children: r.formatMessage({ id: "breadcrumbs_label" }) }),
2789
2789
  /* @__PURE__ */ a.jsx("ul", { className: w("breadcrumbs text-small", n), children: e.map(({ text: s, href: i, current: o = !1 }, c) => /* @__PURE__ */ a.jsxs("li", { children: [
2790
- o && /* @__PURE__ */ a.jsx(ae, { element: "span", children: r.formatMessage({ id: "breadcrumbs_currentPage" }) }),
2790
+ o && /* @__PURE__ */ a.jsx(ie, { element: "span", children: r.formatMessage({ id: "breadcrumbs_currentPage" }) }),
2791
2791
  /* @__PURE__ */ a.jsx(gt, { href: o ? void 0 : i, children: Ne(s, t) })
2792
2792
  ] }, `${window.btoa(s)}_${c}`)) })
2793
2793
  ] });
2794
2794
  };
2795
- const Ri = ({
2795
+ const Li = ({
2796
2796
  options: e,
2797
2797
  allOption: t = !1,
2798
2798
  allowMultiple: n = !0,
@@ -2800,7 +2800,7 @@ const Ri = ({
2800
2800
  },
2801
2801
  className: s = ""
2802
2802
  }) => {
2803
- const i = A(), o = t ? [{ id: "all", text: typeof t != "boolean" && t.text || i.formatMessage({ id: "filters_all" }) }, ...e] : e, [c, m] = D(t ? ["all"] : []), l = (f, d) => {
2803
+ const i = A(), o = t ? [{ id: "all", text: typeof t != "boolean" && t.text || i.formatMessage({ id: "filters_all" }) }, ...e] : e, [c, m] = R(t ? ["all"] : []), l = (f, d) => {
2804
2804
  let p = [];
2805
2805
  c.includes(f) ? p = c.filter((h) => h !== f) : f === "all" ? p = ["all"] : n ? p = [...c.filter((h) => h !== "all"), f] : p = [f], m((h) => (r && typeof r == "function" && r({ current: p, previous: h }), p)), d && typeof d == "function" && d();
2806
2806
  };
@@ -2811,8 +2811,8 @@ const Ri = ({
2811
2811
  "button",
2812
2812
  {
2813
2813
  className: w(f, { selected: c.includes(f) }),
2814
- onClick: (b) => {
2815
- b.preventDefault(), b.stopPropagation(), l(f, h);
2814
+ onClick: (y) => {
2815
+ y.preventDefault(), y.stopPropagation(), l(f, h);
2816
2816
  },
2817
2817
  ...g,
2818
2818
  children: d
@@ -2840,26 +2840,26 @@ const Ft = { en: "English", es: "Español", fr: "Français", pt: "Português" },
2840
2840
  label: c,
2841
2841
  className: m = ""
2842
2842
  }) => {
2843
- const l = A(), [f, d] = D(e);
2843
+ const l = A(), [f, d] = R(e);
2844
2844
  if (G(() => {
2845
2845
  e !== f && d(e);
2846
- }, [e]), !r || !Object.values(r).some((b) => b && b.post_name))
2846
+ }, [e]), !r || !Object.values(r).some((y) => y && y.post_name))
2847
2847
  return null;
2848
2848
  const h = Object.keys(r), g = f !== e;
2849
2849
  return /* @__PURE__ */ a.jsxs("div", { className: w("language-switcher text-small", o, m), children: [
2850
2850
  /* @__PURE__ */ a.jsxs("nav", { children: [
2851
2851
  o !== "short" && /* @__PURE__ */ a.jsx("p", { children: c || l.formatMessage({ id: `${Qe}label` }) }),
2852
- /* @__PURE__ */ a.jsx("ul", { children: h.map((b) => {
2853
- if (!Ft[b])
2852
+ /* @__PURE__ */ a.jsx("ul", { children: h.map((y) => {
2853
+ if (!Ft[y])
2854
2854
  return null;
2855
- let k = { className: b };
2856
- return f === b ? k["aria-label"] = l.formatMessage({ id: `${Qe}selected` }, { language: Ft[b] }) : k = {
2855
+ let k = { className: y };
2856
+ return f === y ? k["aria-label"] = l.formatMessage({ id: `${Qe}selected` }, { language: Ft[y] }) : k = {
2857
2857
  ...k,
2858
- href: ns(b, i),
2859
- onClick: (y) => {
2860
- y.preventDefault(), y.stopPropagation(), d(b), s(b);
2858
+ href: ns(y, i),
2859
+ onClick: (b) => {
2860
+ b.preventDefault(), b.stopPropagation(), d(y), s(y);
2861
2861
  }
2862
- }, /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(gt, { ...k, fallbackElement: "span", children: Ft[b] }) }, b);
2862
+ }, /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(gt, { ...k, fallbackElement: "span", children: Ft[y] }) }, y);
2863
2863
  }) }),
2864
2864
  o !== "short" && !g && /* @__PURE__ */ a.jsx("p", { children: l.formatMessage({ id: `${Qe}translation_${t ? "original" : n ? "human" : "machine"}` }) })
2865
2865
  ] }),
@@ -2869,9 +2869,9 @@ const Ft = { en: "English", es: "Español", fr: "Français", pt: "Português" },
2869
2869
  // `values` are throwing a type error: https://github.com/formatjs/formatjs/issues/3633
2870
2870
  children: l.formatMessage({ id: `${Qe}disclaimer` }, {
2871
2871
  email: Be.support,
2872
- link: (b) => {
2873
- const k = `mailto:${b}`;
2874
- return /* @__PURE__ */ a.jsx("a", { href: k, children: b });
2872
+ link: (y) => {
2873
+ const k = `mailto:${y}`;
2874
+ return /* @__PURE__ */ a.jsx("a", { href: k, children: y });
2875
2875
  }
2876
2876
  })
2877
2877
  })
@@ -2890,7 +2890,7 @@ const Dt = Ua({ locale: "en", messages: Qt }), yt = ({
2890
2890
  className: s = "",
2891
2891
  gtmContext: i = "LoadMore"
2892
2892
  }) => {
2893
- const [o, c] = D(""), m = async (l) => {
2893
+ const [o, c] = R(""), m = async (l) => {
2894
2894
  try {
2895
2895
  await t(l);
2896
2896
  } catch (f) {
@@ -2898,7 +2898,7 @@ const Dt = Ua({ locale: "en", messages: Qt }), yt = ({
2898
2898
  }
2899
2899
  };
2900
2900
  return /* @__PURE__ */ a.jsx("footer", { className: w("load-more", s), children: !o && e ? /* @__PURE__ */ a.jsx(
2901
- B,
2901
+ H,
2902
2902
  {
2903
2903
  variant: "secondary",
2904
2904
  icon: n,
@@ -2911,10 +2911,10 @@ const Dt = Ua({ locale: "en", messages: Qt }), yt = ({
2911
2911
  }
2912
2912
  ) : r.endOfFeed && (!o || o != null && o.includes("Cannot read items")) ? /* @__PURE__ */ a.jsx("p", { children: r.endOfFeed }) : o && /* @__PURE__ */ a.jsx("p", { className: "error", children: r.error }) });
2913
2913
  };
2914
- const na = ({ variant: e = "default", version: t = "default", className: n = "", ...r }) => /* @__PURE__ */ a.jsx("p", { className: "logo-wrapper", children: /* @__PURE__ */ a.jsx("a", { href: "/home/", className: w("logo", e, t, n), ...r, children: /* @__PURE__ */ a.jsx(ae, { children: /* @__PURE__ */ a.jsx(je, { id: "apolitical" }) }) }) });
2914
+ const na = ({ variant: e = "default", version: t = "default", className: n = "", ...r }) => /* @__PURE__ */ a.jsx("p", { className: "logo-wrapper", children: /* @__PURE__ */ a.jsx("a", { href: "/home/", className: w("logo", e, t, n), ...r, children: /* @__PURE__ */ a.jsx(ie, { children: /* @__PURE__ */ a.jsx(we, { id: "apolitical" }) }) }) });
2915
2915
  let Je = !1;
2916
2916
  const as = ({ element: e = "div", id: t = "more-menu", options: n, className: r = "" }) => {
2917
- const s = A(), i = ne(null), [o, c] = D(!1), m = (l) => {
2917
+ const s = A(), i = ae(null), [o, c] = R(!1), m = (l) => {
2918
2918
  i.current && l.target instanceof HTMLElement && !i.current.contains(l.target) && c(!1);
2919
2919
  };
2920
2920
  return G(() => (document.addEventListener("click", m, !0), () => {
@@ -2924,7 +2924,7 @@ const as = ({ element: e = "div", id: t = "more-menu", options: n, className: r
2924
2924
  className: w("more-menu text-medium", r),
2925
2925
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2926
2926
  /* @__PURE__ */ a.jsx(
2927
- B,
2927
+ H,
2928
2928
  {
2929
2929
  variant: "tertiary",
2930
2930
  size: "medium",
@@ -2937,7 +2937,7 @@ const as = ({ element: e = "div", id: t = "more-menu", options: n, className: r
2937
2937
  }
2938
2938
  ),
2939
2939
  /* @__PURE__ */ a.jsx("ul", { id: t, hidden: !o, children: n.map(({ href: l, onClick: f, text: d, icon: p, ...h }, g) => {
2940
- const b = {
2940
+ const y = {
2941
2941
  ...h,
2942
2942
  onClick: (k) => {
2943
2943
  c(!1), typeof f == "function" && f(k);
@@ -2951,13 +2951,13 @@ const as = ({ element: e = "div", id: t = "more-menu", options: n, className: r
2951
2951
  }, 100);
2952
2952
  }
2953
2953
  };
2954
- return l && (b.href = l), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
2955
- B,
2954
+ return l && (y.href = l), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
2955
+ H,
2956
2956
  {
2957
2957
  variant: "tertiary",
2958
2958
  size: "medium",
2959
2959
  icon: p ? { icon: p, position: "left" } : !1,
2960
- ...b,
2960
+ ...y,
2961
2961
  children: d
2962
2962
  }
2963
2963
  ) }, `${window.btoa(d)}_${g}`);
@@ -2983,7 +2983,7 @@ const ss = [
2983
2983
  href: "/solution-articles/"
2984
2984
  }
2985
2985
  ], is = ({ activeLink: e }) => {
2986
- const t = A(), n = ge(ke), r = n && typeof n.id == "string";
2986
+ const t = A(), n = _e(je), r = n && typeof n.id == "string";
2987
2987
  return /* @__PURE__ */ a.jsxs("ul", { id: "navigation-menu", className: "text-medium", children: [
2988
2988
  ss.map(({ key: s, href: i }) => /* @__PURE__ */ a.jsx(
2989
2989
  "li",
@@ -3081,8 +3081,8 @@ const cs = "shareLinks_", Oi = ({
3081
3081
  if (typeof p == "function" && !p())
3082
3082
  return null;
3083
3083
  const g = {};
3084
- return h && (g.onClick = (b) => h(b, d)), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
3085
- B,
3084
+ return h && (g.onClick = (y) => h(y, d)), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
3085
+ H,
3086
3086
  {
3087
3087
  size: s,
3088
3088
  variant: "tertiary",
@@ -3115,13 +3115,13 @@ const Bi = ({ tabs: e, className: t = "" }) => {
3115
3115
  }
3116
3116
  }
3117
3117
  }
3118
- const [s, i] = D(
3118
+ const [s, i] = R(
3119
3119
  (m = e[r]) != null && m.id ? e[r].id : n(e[r].id, e[r].text, r)
3120
3120
  ), o = [], c = [];
3121
3121
  return e.forEach(({ id: l, text: f, content: d, href: p }, h) => {
3122
3122
  l = n(l, f, h);
3123
- const g = s === l, b = {};
3124
- p || (b["aria-controls"] = l, b.onClick = (k) => {
3123
+ const g = s === l, y = {};
3124
+ p || (y["aria-controls"] = l, y.onClick = (k) => {
3125
3125
  k.preventDefault(), k.stopPropagation(), i(l), window.location.hash = `#${l}`;
3126
3126
  }, c.push(
3127
3127
  /* @__PURE__ */ a.jsx(
@@ -3145,7 +3145,7 @@ const Bi = ({ tabs: e, className: t = "" }) => {
3145
3145
  className: w({ selected: g }),
3146
3146
  role: "tab",
3147
3147
  "aria-selected": g,
3148
- ...b,
3148
+ ...y,
3149
3149
  children: f
3150
3150
  }
3151
3151
  ) }, `tab-${l}`)
@@ -3171,9 +3171,9 @@ const ls = {
3171
3171
  /* @__PURE__ */ a.jsx(is, { activeLink: e }),
3172
3172
  /* @__PURE__ */ a.jsx(qr, { ...t })
3173
3173
  ] }) }) });
3174
- const Lt = "cookieBanner_", Rt = ["apol-cookie-banner", "apolitical-performance-cookie-consent", "functional-cookie-consent"], It = new Date(Date.now() + 12 * 30 * 24 * 60 * 60 * 1e3), us = () => {
3175
- const e = A(), [t, n, r] = Ka(Rt), [s, i] = D(!t["apol-cookie-banner"]), o = () => {
3176
- Rt.forEach((f) => {
3174
+ const Rt = "cookieBanner_", Lt = ["apol-cookie-banner", "apolitical-performance-cookie-consent", "functional-cookie-consent"], It = new Date(Date.now() + 12 * 30 * 24 * 60 * 60 * 1e3), us = () => {
3175
+ const e = A(), [t, n, r] = Ka(Lt), [s, i] = R(!t["apol-cookie-banner"]), o = () => {
3176
+ Lt.forEach((f) => {
3177
3177
  n(f, !0, {
3178
3178
  path: "/",
3179
3179
  expires: It,
@@ -3184,7 +3184,7 @@ const Lt = "cookieBanner_", Rt = ["apol-cookie-banner", "apolitical-performance-
3184
3184
  n("apol-cookie-banner", !0, {
3185
3185
  path: "/",
3186
3186
  expires: It
3187
- }), Rt.forEach((f) => {
3187
+ }), Lt.forEach((f) => {
3188
3188
  if (f === "apol-cookie-banner") {
3189
3189
  n(f, !0, {
3190
3190
  path: "/",
@@ -3210,14 +3210,14 @@ const Lt = "cookieBanner_", Rt = ["apol-cookie-banner", "apolitical-performance-
3210
3210
  className: "gtm-trackable",
3211
3211
  "data-gtm-event-context": "cookie-banner",
3212
3212
  "data-gtm-event-type": `cookie-${f.gtmType}-click`,
3213
- children: e.formatMessage({ id: `${Lt}buttons_${f.id}` })
3213
+ children: e.formatMessage({ id: `${Rt}buttons_${f.id}` })
3214
3214
  });
3215
3215
  }), /* @__PURE__ */ a.jsxs("aside", { id: "cookie-banner", className: "text-medium", children: [
3216
- /* @__PURE__ */ a.jsx("h6", { children: e.formatMessage({ id: `${Lt}title` }) }),
3217
- /* @__PURE__ */ a.jsx("p", { children: e.formatMessage({ id: `${Lt}text` }) }),
3216
+ /* @__PURE__ */ a.jsx("h6", { children: e.formatMessage({ id: `${Rt}title` }) }),
3217
+ /* @__PURE__ */ a.jsx("p", { children: e.formatMessage({ id: `${Rt}text` }) }),
3218
3218
  /* @__PURE__ */ a.jsx(ht, { buttons: l })
3219
3219
  ] });
3220
- }, xe = {
3220
+ }, ke = {
3221
3221
  platform: {
3222
3222
  order: ["events", "courses", "articles"],
3223
3223
  // An array guarantees the right order
@@ -3311,14 +3311,14 @@ const Lt = "cookieBanner_", Rt = ["apol-cookie-banner", "apolitical-performance-
3311
3311
  }
3312
3312
  };
3313
3313
  const Me = "footer_", ot = "SiteFooter", En = ({ group: e }) => {
3314
- const t = xe[e].order || [];
3314
+ const t = ke[e].order || [];
3315
3315
  let n = !1;
3316
- return "text" in xe[e] && (n = xe[e].text), /* @__PURE__ */ a.jsxs(qe, { children: [
3317
- /* @__PURE__ */ a.jsx("p", { className: "pre-title", children: /* @__PURE__ */ a.jsx(je, { id: `${Me}${e}` }) }),
3316
+ return "text" in ke[e] && (n = ke[e].text), /* @__PURE__ */ a.jsxs(qe, { children: [
3317
+ /* @__PURE__ */ a.jsx("p", { className: "pre-title", children: /* @__PURE__ */ a.jsx(we, { id: `${Me}${e}` }) }),
3318
3318
  Array.isArray(t) && t.length > 0 && /* @__PURE__ */ a.jsx("ul", { className: "text-medium", children: t.map((r) => {
3319
3319
  if (["order", "child", "text"].includes(r))
3320
3320
  return null;
3321
- const { href: s, gtmType: i } = xe[e][r], o = {};
3321
+ const { href: s, gtmType: i } = ke[e][r], o = {};
3322
3322
  return ["legal"].includes(e) && (o.target = "_blank", o.rel = "noopener"), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
3323
3323
  "a",
3324
3324
  {
@@ -3327,14 +3327,14 @@ const Me = "footer_", ot = "SiteFooter", En = ({ group: e }) => {
3327
3327
  "data-gtm-event-context": ot,
3328
3328
  "data-gtm-event-type": i,
3329
3329
  ...o,
3330
- children: /* @__PURE__ */ a.jsx(je, { id: `${Me}${e}_${r}` })
3330
+ children: /* @__PURE__ */ a.jsx(we, { id: `${Me}${e}_${r}` })
3331
3331
  }
3332
3332
  ) }, `${e}_${r}`);
3333
3333
  }) }),
3334
3334
  typeof n != "boolean" && "order" in n && Array.isArray(n.order) && /* @__PURE__ */ a.jsx("dl", { className: "text-medium", children: n.order.map((r) => /* @__PURE__ */ a.jsxs(qe, { children: [
3335
- /* @__PURE__ */ a.jsx("dt", { children: /* @__PURE__ */ a.jsx(je, { id: `${Me}${e}_${r}` }) }),
3335
+ /* @__PURE__ */ a.jsx("dt", { children: /* @__PURE__ */ a.jsx(we, { id: `${Me}${e}_${r}` }) }),
3336
3336
  /* @__PURE__ */ a.jsxs("dd", { children: [
3337
- typeof n != "boolean" && n[r].address && /* @__PURE__ */ a.jsx("address", { children: /* @__PURE__ */ a.jsx(je, { id: `${Me}${e}_${r}_address`, values: { br: /* @__PURE__ */ a.jsx("br", {}) } }) }),
3337
+ typeof n != "boolean" && n[r].address && /* @__PURE__ */ a.jsx("address", { children: /* @__PURE__ */ a.jsx(we, { id: `${Me}${e}_${r}_address`, values: { br: /* @__PURE__ */ a.jsx("br", {}) } }) }),
3338
3338
  typeof n != "boolean" && n[r].email && /* @__PURE__ */ a.jsx(
3339
3339
  "a",
3340
3340
  {
@@ -3362,12 +3362,12 @@ const Me = "footer_", ot = "SiteFooter", En = ({ group: e }) => {
3362
3362
  ),
3363
3363
  /* @__PURE__ */ a.jsx("footer", { children: ["platform", "community", "company", "contact"].map((e) => /* @__PURE__ */ a.jsxs("div", { className: "group", children: [
3364
3364
  /* @__PURE__ */ a.jsx(En, { group: e }),
3365
- Object.keys(xe[e]).includes("child") && /* @__PURE__ */ a.jsx(En, { group: xe[e].child })
3365
+ Object.keys(ke[e]).includes("child") && /* @__PURE__ */ a.jsx(En, { group: ke[e].child })
3366
3366
  ] }, e)) }),
3367
3367
  /* @__PURE__ */ a.jsx("hr", {}),
3368
3368
  /* @__PURE__ */ a.jsxs("div", { className: "sub-footer", children: [
3369
- /* @__PURE__ */ a.jsx("ul", { children: Array.isArray(xe.social.order) && xe.social.order.map((e) => {
3370
- const t = xe.social[e];
3369
+ /* @__PURE__ */ a.jsx("ul", { children: Array.isArray(ke.social.order) && ke.social.order.map((e) => {
3370
+ const t = ke.social[e];
3371
3371
  return /* @__PURE__ */ a.jsx("li", { className: e, children: /* @__PURE__ */ a.jsx(
3372
3372
  "a",
3373
3373
  {
@@ -3377,18 +3377,18 @@ const Me = "footer_", ot = "SiteFooter", En = ({ group: e }) => {
3377
3377
  className: "gtm-trackable",
3378
3378
  "data-gtm-event-context": ot,
3379
3379
  "data-gtm-event-type": "social-click",
3380
- children: /* @__PURE__ */ a.jsx("span", { className: "hidden", children: /* @__PURE__ */ a.jsx(je, { id: `${Me}social_${e}` }) })
3380
+ children: /* @__PURE__ */ a.jsx("span", { className: "hidden", children: /* @__PURE__ */ a.jsx(we, { id: `${Me}social_${e}` }) })
3381
3381
  }
3382
3382
  ) }, e);
3383
3383
  }) }),
3384
- /* @__PURE__ */ a.jsx("small", { children: /* @__PURE__ */ a.jsx(je, { id: `${Me}copyright`, values: { currentYear: (/* @__PURE__ */ new Date()).getFullYear() } }) })
3384
+ /* @__PURE__ */ a.jsx("small", { children: /* @__PURE__ */ a.jsx(we, { id: `${Me}copyright`, values: { currentYear: (/* @__PURE__ */ new Date()).getFullYear() } }) })
3385
3385
  ] })
3386
3386
  ] }) });
3387
3387
  const Xe = "emailHelperTextBox_", qi = ({ type: e, email: t, redirectPath: n, resendVerificationCode: r }) => {
3388
- const s = A(), [i, o] = D({ path: `${Xe}default`, type: "default", link: {}, mail: {}, error: "" }), [c, m] = D(!1), l = Ln(
3388
+ const s = A(), [i, o] = R({ path: `${Xe}default`, type: "default", link: {}, mail: {}, error: "" }), [c, m] = R(!1), l = Rn(
3389
3389
  (h) => {
3390
3390
  h.preventDefault(), h.stopPropagation();
3391
- const g = (b) => {
3391
+ const g = (y) => {
3392
3392
  o({
3393
3393
  path: `${Xe}error_verificationFailedToSend`,
3394
3394
  type: "error",
@@ -3406,7 +3406,7 @@ const Xe = "emailHelperTextBox_", qi = ({ type: e, email: t, redirectPath: n, re
3406
3406
  "data-gtm-event-context": "ErrorVerifyingBox",
3407
3407
  "data-gtm-event-type": "email-concierge-click"
3408
3408
  },
3409
- error: b
3409
+ error: y
3410
3410
  });
3411
3411
  };
3412
3412
  if (typeof r != "function") {
@@ -3415,8 +3415,8 @@ const Xe = "emailHelperTextBox_", qi = ({ type: e, email: t, redirectPath: n, re
3415
3415
  }
3416
3416
  m(!0), r(t).then(() => {
3417
3417
  localStorage.setItem("email", t), window.location.href = n || "/signup/verify-email";
3418
- }).catch((b) => {
3419
- g(b.message);
3418
+ }).catch((y) => {
3419
+ g(y.message);
3420
3420
  }).finally(() => {
3421
3421
  m(!1);
3422
3422
  });
@@ -3426,13 +3426,13 @@ const Xe = "emailHelperTextBox_", qi = ({ type: e, email: t, redirectPath: n, re
3426
3426
  );
3427
3427
  G(
3428
3428
  () => {
3429
- let h = Xe, g = "default", b = {}, k = {};
3429
+ let h = Xe, g = "default", y = {}, k = {};
3430
3430
  switch (e) {
3431
3431
  case "gov":
3432
3432
  h += "autoApproved", g = "success";
3433
3433
  break;
3434
3434
  case "nonGov":
3435
- h += "unrecognisedEmail", g = "error", b = {
3435
+ h += "unrecognisedEmail", g = "error", y = {
3436
3436
  href: "https://about.apolitical.co/who-can-join-the-community",
3437
3437
  "data-gtm-event-context": "NonGovEmailHelperTextBox",
3438
3438
  "data-gtm-event-type": "LearnMoreClick"
@@ -3447,17 +3447,17 @@ const Xe = "emailHelperTextBox_", qi = ({ type: e, email: t, redirectPath: n, re
3447
3447
  };
3448
3448
  break;
3449
3449
  case "verify":
3450
- h += "emailUnverified", g = "error", b = {
3450
+ h += "emailUnverified", g = "error", y = {
3451
3451
  href: "#",
3452
3452
  "data-gtm-event-context": "VerifyEmailBox",
3453
3453
  "data-gtm-event-type": "SendEmailClick",
3454
3454
  className: "gtm-trackable",
3455
- onClick: (y) => l(y),
3455
+ onClick: (b) => l(b),
3456
3456
  "data-testid": "send-verify-email-click"
3457
3457
  };
3458
3458
  break;
3459
3459
  case "exists":
3460
- h += "emailAlreadyExists", g = "error", b = {
3460
+ h += "emailAlreadyExists", g = "error", y = {
3461
3461
  href: "/user-onboarding/login",
3462
3462
  "data-gtm-event-context": "EmailExistsBox",
3463
3463
  "data-gtm-event-type": "login-click"
@@ -3469,14 +3469,14 @@ const Xe = "emailHelperTextBox_", qi = ({ type: e, email: t, redirectPath: n, re
3469
3469
  };
3470
3470
  break;
3471
3471
  default:
3472
- h += "default", b = {
3472
+ h += "default", y = {
3473
3473
  href: "https://about.apolitical.co/who-can-join-the-community",
3474
3474
  "data-gtm-event-context": "DefaultEmailHelperTextBox",
3475
3475
  "data-gtm-event-type": "LearnMoreClick"
3476
3476
  };
3477
3477
  break;
3478
3478
  }
3479
- o({ ...i, path: h, type: g, link: b, mail: k });
3479
+ o({ ...i, path: h, type: g, link: y, mail: k });
3480
3480
  },
3481
3481
  /* eslint-disable react-hooks/exhaustive-deps */
3482
3482
  [e]
@@ -3485,8 +3485,8 @@ const Xe = "emailHelperTextBox_", qi = ({ type: e, email: t, redirectPath: n, re
3485
3485
  return ["link", "mail"].forEach((h) => {
3486
3486
  f[h] = Object.keys(i[h]).length ? (g) => /* @__PURE__ */ a.jsx("a", { ...i[h], children: g }) : (g) => g;
3487
3487
  }), /* @__PURE__ */ a.jsx(Ar, { type: i.type, heading: c ? !1 : s.formatMessage({ id: `${i.path}_title` }), children: c ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3488
- /* @__PURE__ */ a.jsx(_e, { element: "span" }),
3489
- /* @__PURE__ */ a.jsx(_e, { element: "span" })
3488
+ /* @__PURE__ */ a.jsx(be, { element: "span" }),
3489
+ /* @__PURE__ */ a.jsx(be, { element: "span" })
3490
3490
  ] }) : (
3491
3491
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
3492
3492
  // @ts-ignore
@@ -3515,12 +3515,12 @@ const et = "passwordRules_", ra = "isMoreThanEightCharacters", sa = "includesNum
3515
3515
  return /* @__PURE__ */ a.jsxs("aside", { className: w("password-rules", t), children: [
3516
3516
  /* @__PURE__ */ a.jsx("small", { children: n.formatMessage({ id: `${et}intro` }) }),
3517
3517
  /* @__PURE__ */ a.jsx("ul", { children: [ra, sa, ia].map((r) => /* @__PURE__ */ a.jsxs("li", { className: w({ matches: e[r] }), children: [
3518
- /* @__PURE__ */ a.jsxs(ae, { children: [
3518
+ /* @__PURE__ */ a.jsxs(ie, { children: [
3519
3519
  n.formatMessage({ id: `${et}rule_label` }),
3520
3520
  " "
3521
3521
  ] }),
3522
3522
  /* @__PURE__ */ a.jsx("span", { children: n.formatMessage({ id: `${et}rule_${ms[r]}` }) }),
3523
- !e[r] && /* @__PURE__ */ a.jsxs(ae, { element: "strong", children: [
3523
+ !e[r] && /* @__PURE__ */ a.jsxs(ie, { element: "strong", children: [
3524
3524
  " ",
3525
3525
  " ",
3526
3526
  n.formatMessage({ id: `${et}notMet` })
@@ -3537,28 +3537,28 @@ const Ui = ({
3537
3537
  className: i = "",
3538
3538
  hasLoaded: o = !1
3539
3539
  }) => {
3540
- const c = A(), [m, l] = D({ setUp: !1, id: null, rating: null, disabled: !0 }), f = async () => {
3540
+ const c = A(), [m, l] = R({ setUp: !1, id: null, rating: null, disabled: !0 }), f = async () => {
3541
3541
  try {
3542
- const y = await n();
3543
- l((_) => ({ ..._, setUp: !0, id: y && y.id, disabled: !1 }));
3544
- } catch (y) {
3545
- l((_) => ({ ..._, setUp: !0, disabled: !0 })), s(y);
3542
+ const b = await n();
3543
+ l((_) => ({ ..._, setUp: !0, id: b && b.id, disabled: !1 }));
3544
+ } catch (b) {
3545
+ l((_) => ({ ..._, setUp: !0, disabled: !0 })), s(b);
3546
3546
  }
3547
3547
  };
3548
3548
  if (G(() => {
3549
3549
  o && !m.setUp && f();
3550
3550
  }, [o]), !o)
3551
- return /* @__PURE__ */ a.jsx(_e, { className: "rating-placeholder" });
3552
- const { id: d, rating: p, disabled: h } = m, g = "ratings_", b = {
3551
+ return /* @__PURE__ */ a.jsx(be, { className: "rating-placeholder" });
3552
+ const { id: d, rating: p, disabled: h } = m, g = "ratings_", y = {
3553
3553
  text: c.formatMessage({ id: `${g}text` }),
3554
3554
  low: c.formatMessage({ id: `${g}low` }),
3555
3555
  high: c.formatMessage({ id: `${g}high` }),
3556
3556
  success: c.formatMessage({ id: `${g}success` }),
3557
3557
  ...e
3558
- }, k = async (y) => {
3558
+ }, k = async (b) => {
3559
3559
  if (!(!d || h))
3560
3560
  try {
3561
- l((_) => ({ ..._, rating: y, disabled: !0 })), await r({ id: d, value: y });
3561
+ l((_) => ({ ..._, rating: b, disabled: !0 })), await r({ id: d, value: b });
3562
3562
  } catch (_) {
3563
3563
  l((v) => ({ ...v, rating: null })), s(_);
3564
3564
  } finally {
@@ -3566,11 +3566,11 @@ const Ui = ({
3566
3566
  }
3567
3567
  };
3568
3568
  return /* @__PURE__ */ a.jsxs("div", { className: w("rating", i), children: [
3569
- /* @__PURE__ */ a.jsx("span", { className: "label", children: b[p ? "success" : "text"] }),
3570
- /* @__PURE__ */ a.jsx("ol", { children: Array.from(new Array(t).keys()).map((y) => {
3571
- const _ = y + 1;
3569
+ /* @__PURE__ */ a.jsx("span", { className: "label", children: y[p ? "success" : "text"] }),
3570
+ /* @__PURE__ */ a.jsx("ol", { children: Array.from(new Array(t).keys()).map((b) => {
3571
+ const _ = b + 1;
3572
3572
  return /* @__PURE__ */ a.jsx("li", { className: w({ selected: p && _ <= p }), children: /* @__PURE__ */ a.jsx(
3573
- B,
3573
+ H,
3574
3574
  {
3575
3575
  variant: "tertiary",
3576
3576
  size: "small",
@@ -3578,7 +3578,7 @@ const Ui = ({
3578
3578
  screenreaderText: `${c.formatMessage(
3579
3579
  { id: `${g}stars` },
3580
3580
  { number: _, total: t }
3581
- )}${_ === 1 || _ === t ? ` - ${b[_ === 1 ? "low" : "high"]}` : ""}`,
3581
+ )}${_ === 1 || _ === t ? ` - ${y[_ === 1 ? "low" : "high"]}` : ""}`,
3582
3582
  onClick: (v) => {
3583
3583
  v.preventDefault(), v.stopPropagation(), k(_);
3584
3584
  },
@@ -3596,7 +3596,7 @@ const ps = ({
3596
3596
  gtmContext: s = "search-bar",
3597
3597
  gtmEvent: i = "form-submission"
3598
3598
  }) => {
3599
- const { searchIsOpen: o = !0, isDesktopVersion: c = !1 } = n || {}, m = A(), l = ne(null);
3599
+ const { searchIsOpen: o = !0, isDesktopVersion: c = !1 } = n || {}, m = A(), l = ae(null);
3600
3600
  Pe(() => {
3601
3601
  !n || c || !o || l.current && l.current.focus();
3602
3602
  }, [o]);
@@ -3611,7 +3611,7 @@ const ps = ({
3611
3611
  "data-gtm-event-context": s,
3612
3612
  "data-gtm-event-type": i,
3613
3613
  children: /* @__PURE__ */ a.jsx("fieldset", { id: `${e}-form`, hidden: n ? !o : !1, role: "search", children: /* @__PURE__ */ a.jsxs("p", { children: [
3614
- /* @__PURE__ */ a.jsx(ae, { element: "label", htmlFor: e, children: m.formatMessage({ id: "search_label" }) }),
3614
+ /* @__PURE__ */ a.jsx(ie, { element: "label", htmlFor: e, children: m.formatMessage({ id: "search_label" }) }),
3615
3615
  /* @__PURE__ */ a.jsx(
3616
3616
  "input",
3617
3617
  {
@@ -3633,10 +3633,10 @@ const ps = ({
3633
3633
  onClick: (d) => {
3634
3634
  d.preventDefault(), d.stopPropagation(), l.current && l.current.value && (l.current.value = "");
3635
3635
  },
3636
- children: /* @__PURE__ */ a.jsx(ae, { children: m.formatMessage({ id: "search_clear" }) })
3636
+ children: /* @__PURE__ */ a.jsx(ie, { children: m.formatMessage({ id: "search_clear" }) })
3637
3637
  }
3638
3638
  ),
3639
- /* @__PURE__ */ a.jsx("button", { className: "search", onClick: f, children: /* @__PURE__ */ a.jsx(ae, { children: m.formatMessage({ id: "search_cta" }) }) })
3639
+ /* @__PURE__ */ a.jsx("button", { className: "search", onClick: f, children: /* @__PURE__ */ a.jsx(ie, { children: m.formatMessage({ id: "search_cta" }) }) })
3640
3640
  ] }) })
3641
3641
  }
3642
3642
  );
@@ -3654,26 +3654,26 @@ const hs = ({
3654
3654
  initialFormStatus: l = "NOT_SUBMITTED"
3655
3655
  /* NOT_SUBMITTED */
3656
3656
  }) => {
3657
- const [f, d] = D([]), [p, h] = D(!0), [g, b] = D(l), { formatMessage: k } = A(), y = async (j) => {
3657
+ const [f, d] = R([]), [p, h] = R(!0), [g, y] = R(l), { formatMessage: k } = A(), b = async (j) => {
3658
3658
  j.preventDefault();
3659
3659
  try {
3660
- await m(f), d([]), b(
3660
+ await m(f), d([]), y(
3661
3661
  "SUCCESS"
3662
3662
  /* SUCCESS */
3663
3663
  );
3664
- } catch ($) {
3665
- b(
3664
+ } catch (S) {
3665
+ y(
3666
3666
  "ERROR"
3667
3667
  /* ERROR */
3668
- ), c($);
3668
+ ), c(S);
3669
3669
  }
3670
3670
  }, _ = (j) => {
3671
- j.preventDefault(), b(
3671
+ j.preventDefault(), y(
3672
3672
  "NOT_SUBMITTED"
3673
3673
  /* NOT_SUBMITTED */
3674
3674
  ), h(!0), d([]);
3675
3675
  }, v = (j) => {
3676
- j.preventDefault(), o(), b(
3676
+ j.preventDefault(), o(), y(
3677
3677
  "CLOSED"
3678
3678
  /* CLOSED */
3679
3679
  );
@@ -3683,16 +3683,16 @@ const hs = ({
3683
3683
  " ",
3684
3684
  k({ id: "inviteForm_error" })
3685
3685
  ] }) }),
3686
- /* @__PURE__ */ a.jsx(Te, {}),
3686
+ /* @__PURE__ */ a.jsx($e, {}),
3687
3687
  /* @__PURE__ */ a.jsx("div", { className: "footer", children: g === "SUCCESS" ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3688
- /* @__PURE__ */ a.jsx(B, { variant: "secondary", onClick: _, children: k({ id: "inviteForm_ctaSendMoreInvites" }) }),
3689
- /* @__PURE__ */ a.jsx(B, { onClick: v, children: k({ id: "inviteForm_ctaDone" }) })
3690
- ] }) : /* @__PURE__ */ a.jsx(B, { onClick: _, children: k({ id: "inviteForm_ctaTryAgain" }) }) })
3688
+ /* @__PURE__ */ a.jsx(H, { variant: "secondary", onClick: _, children: k({ id: "inviteForm_ctaSendMoreInvites" }) }),
3689
+ /* @__PURE__ */ a.jsx(H, { onClick: v, children: k({ id: "inviteForm_ctaDone" }) })
3690
+ ] }) : /* @__PURE__ */ a.jsx(H, { onClick: _, children: k({ id: "inviteForm_ctaTryAgain" }) }) })
3691
3691
  ] }) : /* @__PURE__ */ a.jsx("div", { className: "invite-form-wrapper", children: /* @__PURE__ */ a.jsxs(
3692
3692
  "form",
3693
3693
  {
3694
3694
  style: { backgroundColor: i },
3695
- onSubmit: y,
3695
+ onSubmit: b,
3696
3696
  className: w("invite-form gtm-trackable"),
3697
3697
  children: [
3698
3698
  /* @__PURE__ */ a.jsxs("fieldset", { className: "content", children: [
@@ -3709,31 +3709,31 @@ const hs = ({
3709
3709
  d(j), h(!j.length);
3710
3710
  },
3711
3711
  autoFocus: !1,
3712
- getLabel: (j, $, C) => /* @__PURE__ */ a.jsxs("div", { className: "email text-medium", children: [
3712
+ getLabel: (j, S, M) => /* @__PURE__ */ a.jsxs("div", { className: "email text-medium", children: [
3713
3713
  /* @__PURE__ */ a.jsx("div", { "data-tag-item": !0, children: j }),
3714
3714
  /* @__PURE__ */ a.jsx(
3715
- B,
3715
+ H,
3716
3716
  {
3717
3717
  variant: "tertiary",
3718
3718
  size: "small",
3719
3719
  icon: { icon: "close" },
3720
3720
  onClick: () => {
3721
- C($), h(!f.length);
3721
+ M(S), h(!f.length);
3722
3722
  },
3723
3723
  className: "remove-email-button",
3724
3724
  screenreaderText: k({ id: "overlay_close" })
3725
3725
  }
3726
3726
  )
3727
- ] }, $)
3727
+ ] }, S)
3728
3728
  }
3729
3729
  )
3730
3730
  ] }),
3731
- /* @__PURE__ */ a.jsx(Te, {}),
3732
- /* @__PURE__ */ a.jsx("fieldset", { className: "footer", children: /* @__PURE__ */ a.jsx(B, { className: "sendEmailsButton", disabled: p, children: n }) })
3731
+ /* @__PURE__ */ a.jsx($e, {}),
3732
+ /* @__PURE__ */ a.jsx("fieldset", { className: "footer", children: /* @__PURE__ */ a.jsx(H, { className: "sendEmailsButton", disabled: p, children: n }) })
3733
3733
  ]
3734
3734
  }
3735
3735
  ) });
3736
- }, U = {
3736
+ }, z = {
3737
3737
  timeouts: {},
3738
3738
  handlerCalled: {},
3739
3739
  getIsDesktopVersion: (e, t) => {
@@ -3756,9 +3756,9 @@ const hs = ({
3756
3756
  if (n[e] === t || e === "account" && t === !1 && n.navigation === !0)
3757
3757
  return;
3758
3758
  const s = Date.now();
3759
- if (!t && U.handlerCalled[e] && s - U.handlerCalled[e] < 500)
3759
+ if (!t && z.handlerCalled[e] && s - z.handlerCalled[e] < 500)
3760
3760
  return;
3761
- U.handlerCalled[e] = s;
3761
+ z.handlerCalled[e] = s;
3762
3762
  let i = [{ type: `menus.${e}`, value: t }];
3763
3763
  t === !0 && Object.keys(n).forEach((o) => {
3764
3764
  o === e || n[o] === !1 || i.push({ type: `menus.${o}`, value: !1 });
@@ -3783,7 +3783,7 @@ const hs = ({
3783
3783
  if (!(typeof s > "u") && (!n || s[t] && s[t].includes(n) || s.value && s.value.includes(n) || s.toString().includes(n)))
3784
3784
  return e[r];
3785
3785
  }
3786
- return e[0].children ? U.findFirstChild(e[0].children, t, n) : !1;
3786
+ return e[0].children ? z.findFirstChild(e[0].children, t, n) : !1;
3787
3787
  },
3788
3788
  autoFocus: ({ menu: e, navigationRef: t, isDesktopVersion: n, focusElements: r, dispatch: s }) => {
3789
3789
  if (!t.current || !t.current.children)
@@ -3797,20 +3797,20 @@ const hs = ({
3797
3797
  switch (e) {
3798
3798
  case "navigation":
3799
3799
  if (n) {
3800
- const m = U.findFirstChild(
3800
+ const m = z.findFirstChild(
3801
3801
  t.current.children,
3802
3802
  "attributes.aria-controls",
3803
3803
  "navigation"
3804
3804
  );
3805
- o = U.findFirstChild(m.children, "href");
3805
+ o = z.findFirstChild(m.children, "href");
3806
3806
  } else
3807
- o = U.findFirstChild(t.current.children, "href");
3807
+ o = z.findFirstChild(t.current.children, "href");
3808
3808
  o || (o = t.current);
3809
3809
  break;
3810
3810
  case "account":
3811
- if (c = U.findFirstChild(t.current.children, "className", "account"), !c || !c.children)
3811
+ if (c = z.findFirstChild(t.current.children, "className", "account"), !c || !c.children)
3812
3812
  return;
3813
- o = U.findFirstChild(c.children, "href");
3813
+ o = z.findFirstChild(c.children, "href");
3814
3814
  break;
3815
3815
  default:
3816
3816
  return;
@@ -3819,16 +3819,16 @@ const hs = ({
3819
3819
  },
3820
3820
  events: {
3821
3821
  onClick: (e, { id: t, callback: n, isOpen: r }) => {
3822
- e.target && e.target.attributes && e.target.attributes.href || (e.preventDefault(), e.stopPropagation(), clearTimeout(U.timeouts[t]), n(t, !r));
3822
+ e.target && e.target.attributes && e.target.attributes.href || (e.preventDefault(), e.stopPropagation(), clearTimeout(z.timeouts[t]), n(t, !r));
3823
3823
  },
3824
3824
  onFocus: ({ id: e }) => {
3825
- clearTimeout(U.timeouts[e]);
3825
+ clearTimeout(z.timeouts[e]);
3826
3826
  },
3827
3827
  onMouseEnter: ({ id: e, callback: t }) => {
3828
- clearTimeout(U.timeouts[e]), t(e, !0);
3828
+ clearTimeout(z.timeouts[e]), t(e, !0);
3829
3829
  },
3830
3830
  onBlur: ({ id: e, callback: t }) => {
3831
- U.timeouts[e] = setTimeout(() => {
3831
+ z.timeouts[e] = setTimeout(() => {
3832
3832
  t(e, !1);
3833
3833
  }, 250);
3834
3834
  }
@@ -3945,34 +3945,34 @@ const hs = ({
3945
3945
  ...c.props || {}
3946
3946
  });
3947
3947
  }
3948
- const h = c.order && c.order[0] && c[c.order[0]], g = h && c[c.order[0]].order, b = p && window.location.pathname === c.href;
3949
- let k = {}, y = {};
3948
+ const h = c.order && c.order[0] && c[c.order[0]], g = h && c[c.order[0]].order, y = p && window.location.pathname === c.href;
3949
+ let k = {}, b = {};
3950
3950
  if (h) {
3951
3951
  const _ = c.menuId || e, v = {
3952
- onClick: (j) => U.events.onClick(j, { id: _, callback: s, isOpen: r[_] }),
3953
- onFocus: () => U.events.onFocus({ id: _ }),
3954
- onBlur: () => U.events.onBlur({ id: _, callback: s }),
3955
- onMouseLeave: () => U.events.onBlur({ id: _, callback: s }),
3956
- onMouseEnter: () => U.events.onMouseEnter({ id: _, callback: s })
3952
+ onClick: (j) => z.events.onClick(j, { id: _, callback: s, isOpen: r[_] }),
3953
+ onFocus: () => z.events.onFocus({ id: _ }),
3954
+ onBlur: () => z.events.onBlur({ id: _, callback: s }),
3955
+ onMouseLeave: () => z.events.onBlur({ id: _, callback: s }),
3956
+ onMouseEnter: () => z.events.onMouseEnter({ id: _, callback: s })
3957
3957
  };
3958
3958
  n && (g && (k = {
3959
3959
  ...v,
3960
3960
  onKeyPress: (j) => {
3961
- j.key === "Enter" && U.events.onClick(j, { id: _, callback: s, isOpen: r[_] });
3961
+ j.key === "Enter" && z.events.onClick(j, { id: _, callback: s, isOpen: r[_] });
3962
3962
  },
3963
3963
  tabIndex: "0",
3964
3964
  // Add a `tabIndex` so keyboard users can focus on the `li`
3965
3965
  "aria-haspopup": !0,
3966
3966
  "aria-expanded": r[_],
3967
3967
  "aria-controls": _
3968
- }), y = { hidden: _ in r ? !r[_] : !0 }), g || (y = {
3969
- ...y,
3968
+ }), b = { hidden: _ in r ? !r[_] : !0 }), g || (b = {
3969
+ ...b,
3970
3970
  ...v
3971
3971
  });
3972
3972
  }
3973
- return /* @__PURE__ */ a.jsxs("li", { className: w({ [c.className]: c.className, "has-submenu": h, parent: g, active: b }), role: "none", ...k, children: [
3974
- p ? F.createElement(f ? B : "a", p, o.formatMessage({ id: d })) : o.formatMessage({ id: d }),
3975
- c.order && /* @__PURE__ */ a.jsx("ul", { ...y, children: c.order.map((_) => {
3973
+ return /* @__PURE__ */ a.jsxs("li", { className: w({ [c.className]: c.className, "has-submenu": h, parent: g, active: y }), role: "none", ...k, children: [
3974
+ p ? F.createElement(f ? H : "a", p, o.formatMessage({ id: d })) : o.formatMessage({ id: d }),
3975
+ c.order && /* @__PURE__ */ a.jsx("ul", { ...b, children: c.order.map((_) => {
3976
3976
  if (!c[_])
3977
3977
  return null;
3978
3978
  const v = {
@@ -3990,8 +3990,8 @@ const hs = ({
3990
3990
  ] }, e);
3991
3991
  };
3992
3992
  const gs = { height: 67, height_desktop: 83 }, oa = ({ showNavigation: e = !0 }) => {
3993
- const t = A(), n = ge(ke), r = Ue(!0, !0), s = n && typeof n.id == "string", i = ft(
3994
- () => U.getIsDesktopVersion(s, r),
3993
+ const t = A(), n = _e(je), r = Ue(!0, !0), s = n && typeof n.id == "string", i = ft(
3994
+ () => z.getIsDesktopVersion(s, r),
3995
3995
  [s, r]
3996
3996
  ), [o, c] = Oa(vr, {
3997
3997
  headerIsVisible: !0,
@@ -4005,18 +4005,18 @@ const gs = { height: 67, height_desktop: 83 }, oa = ({ showNavigation: e = !0 })
4005
4005
  scrollPosition: gs[`height${i.navigation ? "_desktop" : ""}`],
4006
4006
  callbacks: {
4007
4007
  scrollUp: () => {
4008
- !i && l.navigation || U.shouldChangeHeaderIsVisible(!0, l, c);
4008
+ !i && l.navigation || z.shouldChangeHeaderIsVisible(!0, l, c);
4009
4009
  },
4010
4010
  scrollDown: () => {
4011
- !i && l.navigation || U.shouldChangeHeaderIsVisible(!1, l, c);
4011
+ !i && l.navigation || z.shouldChangeHeaderIsVisible(!1, l, c);
4012
4012
  }
4013
4013
  }
4014
4014
  });
4015
4015
  const d = (h, g) => {
4016
- U.handleMenus({ id: h, value: g, menus: l, dispatch: c });
4017
- }, p = ne(null);
4016
+ z.handleMenus({ id: h, value: g, menus: l, dispatch: c });
4017
+ }, p = ae(null);
4018
4018
  return Pe(() => {
4019
- l.navigation && U.autoFocus({
4019
+ l.navigation && z.autoFocus({
4020
4020
  menu: "navigation",
4021
4021
  navigationRef: p,
4022
4022
  isDesktopVersion: i.navigation,
@@ -4024,7 +4024,7 @@ const gs = { height: 67, height_desktop: 83 }, oa = ({ showNavigation: e = !0 })
4024
4024
  dispatch: c
4025
4025
  });
4026
4026
  }, [l.navigation]), Pe(() => {
4027
- l.account && U.autoFocus({
4027
+ l.account && z.autoFocus({
4028
4028
  menu: "account",
4029
4029
  navigationRef: p,
4030
4030
  isDesktopVersion: i.navigation,
@@ -4043,7 +4043,7 @@ const gs = { height: 67, height_desktop: 83 }, oa = ({ showNavigation: e = !0 })
4043
4043
  }),
4044
4044
  children: [
4045
4045
  /* @__PURE__ */ a.jsx(
4046
- ae,
4046
+ ie,
4047
4047
  {
4048
4048
  element: "a",
4049
4049
  href: "#content-of-page",
@@ -4064,7 +4064,7 @@ const gs = { height: 67, height_desktop: 83 }, oa = ({ showNavigation: e = !0 })
4064
4064
  "aria-haspopup": "true",
4065
4065
  "aria-expanded": l.navigation,
4066
4066
  "aria-controls": "navigation",
4067
- children: /* @__PURE__ */ a.jsx(ae, { children: t.formatMessage({
4067
+ children: /* @__PURE__ */ a.jsx(ie, { children: t.formatMessage({
4068
4068
  id: `header_menu_${l.navigation ? "hide" : "show"}`
4069
4069
  }) })
4070
4070
  }
@@ -4101,7 +4101,7 @@ const gs = { height: 67, height_desktop: 83 }, oa = ({ showNavigation: e = !0 })
4101
4101
  "aria-expanded": l.search,
4102
4102
  "aria-controls": "search-form",
4103
4103
  children: /* @__PURE__ */ a.jsx(
4104
- ae,
4104
+ ie,
4105
4105
  {
4106
4106
  children: t.formatMessage({
4107
4107
  id: `header_search_${l.search ? "hide" : "show"}`
@@ -4126,18 +4126,18 @@ const gs = { height: 67, height_desktop: 83 }, oa = ({ showNavigation: e = !0 })
4126
4126
  "button",
4127
4127
  {
4128
4128
  className: "account-button",
4129
- onClick: (h) => U.events.onClick(h, {
4129
+ onClick: (h) => z.events.onClick(h, {
4130
4130
  id: "account",
4131
4131
  callback: d,
4132
4132
  isOpen: l.account
4133
4133
  }),
4134
- onMouseEnter: () => U.events.onMouseEnter({ id: "account", callback: d }),
4135
- onMouseLeave: () => U.events.onBlur({ id: "account", callback: d }),
4134
+ onMouseEnter: () => z.events.onMouseEnter({ id: "account", callback: d }),
4135
+ onMouseLeave: () => z.events.onBlur({ id: "account", callback: d }),
4136
4136
  "aria-haspopup": "true",
4137
4137
  "aria-expanded": l.account,
4138
4138
  "aria-controls": "navigation",
4139
4139
  children: [
4140
- /* @__PURE__ */ a.jsx(ae, { children: t.formatMessage({
4140
+ /* @__PURE__ */ a.jsx(ie, { children: t.formatMessage({
4141
4141
  id: `header_account_${l.account ? "hide" : "show"}`
4142
4142
  }) }),
4143
4143
  /* @__PURE__ */ a.jsx(
@@ -4188,11 +4188,11 @@ const la = ({
4188
4188
  className: f = "",
4189
4189
  gtmContext: d = "Modal"
4190
4190
  }) => {
4191
- const p = A(), [h, g] = D(t), b = (y) => {
4192
- g(y), y ? (s(), document.body.classList.add("has-overlay")) : (i(), document.body.classList.remove("has-overlay"));
4191
+ const p = A(), [h, g] = R(t), y = (b) => {
4192
+ g(b), b ? (s(), document.body.classList.add("has-overlay")) : (i(), document.body.classList.remove("has-overlay"));
4193
4193
  };
4194
4194
  G(() => {
4195
- b(t);
4195
+ y(t);
4196
4196
  }, [t]);
4197
4197
  const k = r ? { "--max-width": `${r / 16}rem` } : {};
4198
4198
  return /* @__PURE__ */ a.jsx("div", { className: w("overlay", { open: h }), children: /* @__PURE__ */ a.jsx(
@@ -4206,12 +4206,12 @@ const la = ({
4206
4206
  /* @__PURE__ */ a.jsxs("div", { className: "top", children: [
4207
4207
  c && /* @__PURE__ */ a.jsx("h2", { className: "modal-title", children: c }),
4208
4208
  /* @__PURE__ */ a.jsx(
4209
- B,
4209
+ H,
4210
4210
  {
4211
4211
  variant: "tertiary",
4212
4212
  size: "medium",
4213
4213
  icon: { icon: "close" },
4214
- onClick: () => b(!1),
4214
+ onClick: () => y(!1),
4215
4215
  className: "gtm-trackable",
4216
4216
  "data-gtm-event-type": "close-modal-click",
4217
4217
  "data-gtm-event-context": d,
@@ -4219,10 +4219,10 @@ const la = ({
4219
4219
  }
4220
4220
  )
4221
4221
  ] }),
4222
- n && /* @__PURE__ */ a.jsx(Te, {}),
4222
+ n && /* @__PURE__ */ a.jsx($e, {}),
4223
4223
  m,
4224
4224
  l && /* @__PURE__ */ a.jsxs("div", { className: "bottom", children: [
4225
- /* @__PURE__ */ a.jsx(Te, {}),
4225
+ /* @__PURE__ */ a.jsx($e, {}),
4226
4226
  /* @__PURE__ */ a.jsx(ht, { buttons: l })
4227
4227
  ] }),
4228
4228
  o && /* @__PURE__ */ a.jsx(Vt, { className: "error", children: o })
@@ -4294,20 +4294,20 @@ const bs = () => {
4294
4294
  G(() => {
4295
4295
  window.scrollTo(0, 0);
4296
4296
  }, [h]);
4297
- const g = rt(e, { locale: c }), b = rt(t, {
4297
+ const g = rt(e, { locale: c }), y = rt(t, {
4298
4298
  locale: c
4299
4299
  }), k = rt(n, {
4300
4300
  locale: c
4301
- }), y = {};
4302
- return f !== "default" && (y[f] = !0), d !== "default" && (y[d] = !0), p !== "default" && (y[p] = !0), /* @__PURE__ */ a.jsx(Ja, { onError: r, fallback: /* @__PURE__ */ a.jsx(bs, {}), children: /* @__PURE__ */ a.jsx(Ba, { fallback: null, children: /* @__PURE__ */ a.jsxs(
4301
+ }), b = {};
4302
+ return f !== "default" && (b[f] = !0), d !== "default" && (b[d] = !0), p !== "default" && (b[p] = !0), /* @__PURE__ */ a.jsx(Ja, { onError: r, fallback: /* @__PURE__ */ a.jsx(bs, {}), children: /* @__PURE__ */ a.jsx(Ba, { fallback: null, children: /* @__PURE__ */ a.jsxs(
4303
4303
  "div",
4304
4304
  {
4305
4305
  id: "wrapper",
4306
- className: w(o, y, { "has-footer": l }),
4306
+ className: w(o, b, { "has-footer": l }),
4307
4307
  children: [
4308
4308
  /* @__PURE__ */ a.jsx(oa, { showNavigation: m }),
4309
4309
  /* @__PURE__ */ a.jsxs("section", { id: "content-wrapper", children: [
4310
- b && /* @__PURE__ */ a.jsx("div", { className: "additional-content prepended", children: b }),
4310
+ y && /* @__PURE__ */ a.jsx("div", { className: "additional-content prepended", children: y }),
4311
4311
  F.createElement(f === "bold" ? ca : "div", {
4312
4312
  id: "content",
4313
4313
  children: g
@@ -4444,45 +4444,45 @@ const le = "discussion_form_", en = ({
4444
4444
  },
4445
4445
  gtmContext: m = "DiscussionForm"
4446
4446
  }) => {
4447
- var S, M, E;
4448
- const l = A(), f = ge(ke), [d, p] = D(
4447
+ var $, C, E;
4448
+ const l = A(), f = _e(je), [d, p] = R(
4449
4449
  n.isEditing && n.isEditing.text || ""
4450
- ), [h, g] = D(o.error || !1), [b, k] = D(!1), y = ne(null);
4451
- if (r || (r = y), n.isLoading)
4450
+ ), [h, g] = R(o.error || !1), [y, k] = R(!1), b = ae(null);
4451
+ if (r || (r = b), n.isLoading)
4452
4452
  return /* @__PURE__ */ a.jsx(
4453
- _e,
4453
+ be,
4454
4454
  {
4455
4455
  className: "discussion-card discussion-form",
4456
4456
  "data-testid": "loading-placeholder"
4457
4457
  }
4458
4458
  );
4459
- const _ = (N) => {
4460
- const q = N.target.value;
4461
- p(q);
4462
- let H;
4463
- !f || !f.id ? H = be(
4459
+ const _ = (Z) => {
4460
+ const N = Z.target.value;
4461
+ p(N);
4462
+ let U;
4463
+ !f || !f.id ? U = ye(
4464
4464
  l.formatMessage,
4465
4465
  `${le}error_loggedOut`,
4466
4466
  e.type,
4467
4467
  "action"
4468
- ) : t ? q.length >= s && (H = `${le}error_tooLong`) : H = be(
4468
+ ) : t ? N.length >= s && (U = `${le}error_tooLong`) : U = ye(
4469
4469
  l.formatMessage,
4470
4470
  `${le}error_noPermission`,
4471
4471
  e.type,
4472
4472
  "action"
4473
- ), H ? g(H) : h && g(!1);
4473
+ ), U ? g(U) : h && g(!1);
4474
4474
  };
4475
4475
  let v = `${e.type}-form`;
4476
4476
  if (e.type === "response" || e.type === "reply") {
4477
- const N = ((S = e.slugs) == null ? void 0 : S.reply) || ((M = e.slugs) == null ? void 0 : M.answer) || ((E = e.slugs) == null ? void 0 : E.question) || "";
4478
- N && (v = `${v}-${N.slice(-15)}`);
4477
+ const Z = (($ = e.slugs) == null ? void 0 : $.reply) || ((C = e.slugs) == null ? void 0 : C.answer) || ((E = e.slugs) == null ? void 0 : E.question) || "";
4478
+ Z && (v = `${v}-${Z.slice(-15)}`);
4479
4479
  }
4480
- const j = async (N) => {
4481
- var H;
4482
- if (N.preventDefault(), N.stopPropagation(), !f || !f.id || !t || C)
4480
+ const j = async (Z) => {
4481
+ var U;
4482
+ if (Z.preventDefault(), Z.stopPropagation(), !f || !f.id || !t || M)
4483
4483
  return;
4484
4484
  tt && clearTimeout(tt), k("submitting");
4485
- const q = window.location.pathname;
4485
+ const N = window.location.pathname;
4486
4486
  try {
4487
4487
  let Y;
4488
4488
  switch (e.type) {
@@ -4493,48 +4493,48 @@ const le = "discussion_form_", en = ({
4493
4493
  Y = await c.create({
4494
4494
  title: d,
4495
4495
  authorId: f && f.id,
4496
- ...(H = c.props) == null ? void 0 : H.create
4496
+ ...(U = c.props) == null ? void 0 : U.create
4497
4497
  });
4498
4498
  break;
4499
4499
  case "response":
4500
4500
  Y = await c.create(
4501
4501
  { question: e.slugs.question },
4502
- { body: d, authorId: f && f.id, contentPath: q }
4502
+ { body: d, authorId: f && f.id, contentPath: N }
4503
4503
  );
4504
4504
  break;
4505
4505
  case "reply":
4506
4506
  Y = await c.create(
4507
4507
  { question: e.slugs.question, answer: e.slugs.answer },
4508
- { body: d, authorId: f && f.id, contentPath: q }
4508
+ { body: d, authorId: f && f.id, contentPath: N }
4509
4509
  );
4510
4510
  break;
4511
4511
  default:
4512
4512
  break;
4513
4513
  }
4514
4514
  await xr(1e3), c.callback && await c.callback(Y), tt = setTimeout(() => {
4515
- p(""), k("submitted"), $();
4515
+ p(""), k("submitted"), S();
4516
4516
  }, 500);
4517
4517
  } catch (Y) {
4518
- const Q = Y;
4519
- let z = `${le}error`;
4520
- Q.message.includes("entry already exists") && (z = be(
4518
+ const ne = Y;
4519
+ let Q = `${le}error`;
4520
+ ne.message.includes("entry already exists") && (Q = ye(
4521
4521
  l.formatMessage,
4522
4522
  `${le}error_alreadyExists`,
4523
4523
  e.type,
4524
4524
  "action"
4525
- )), Q.message.includes("429") ? z = be(
4525
+ )), ne.message.includes("429") ? Q = ye(
4526
4526
  l.formatMessage,
4527
4527
  `${le}error_tooMany`,
4528
4528
  e.type,
4529
4529
  "action"
4530
- ) : Q.message.includes("400") && (z = `${le}error`), g(z), $();
4530
+ ) : ne.message.includes("400") && (Q = `${le}error`), g(Q), S();
4531
4531
  }
4532
- }, $ = () => {
4532
+ }, S = () => {
4533
4533
  tt = setTimeout(() => {
4534
4534
  g(!1), k(!1);
4535
4535
  }, 5e3);
4536
- }, C = !d || !yr(d), Z = b === "submitting", L = [];
4537
- return (n.isEditing && !Z || o.cancel) && L.push({
4536
+ }, M = !d || !yr(d), D = y === "submitting", I = [];
4537
+ return (n.isEditing && !D || o.cancel) && I.push({
4538
4538
  variant: "secondary",
4539
4539
  size: { mobile: "small", 600: "medium" },
4540
4540
  onClick: c.handleCancel,
@@ -4543,25 +4543,25 @@ const le = "discussion_form_", en = ({
4543
4543
  "data-gtm-event-type": `cancel-${e.type}-click`,
4544
4544
  disabled: !o.cancel && (!f || !f.id || !d),
4545
4545
  children: l.formatMessage({ id: `${le}cancel` })
4546
- }), L.push({
4546
+ }), I.push({
4547
4547
  variant: "primary",
4548
4548
  size: { mobile: "small", 600: "medium" },
4549
- onClick: (N) => {
4549
+ onClick: (Z) => {
4550
4550
  if (n.isEditing) {
4551
4551
  k("submitting"), c.handleSaveEdit && c.handleSaveEdit(
4552
- y.current && "value" in y.current ? y.current.value : ""
4552
+ b.current && "value" in b.current ? b.current.value : ""
4553
4553
  );
4554
4554
  return;
4555
4555
  }
4556
- j(N);
4556
+ j(Z);
4557
4557
  },
4558
4558
  className: "gtm-trackable",
4559
4559
  "data-gtm-event-context": m,
4560
4560
  "data-gtm-event-type": `${n.isEditing ? "save" : "submit"}-${e.type}-click`,
4561
4561
  "data-testid": "save-button",
4562
- disabled: !f || !f.id || !t || C || Z || n.isEditing && d === n.isEditing.text,
4562
+ disabled: !f || !f.id || !t || M || D || n.isEditing && d === n.isEditing.text,
4563
4563
  children: l.formatMessage({
4564
- id: `${le}${Z ? n.isEditing ? "saving" : "posting" : n.isEditing ? "save" : "post"}`
4564
+ id: `${le}${D ? n.isEditing ? "saving" : "posting" : n.isEditing ? "save" : "post"}`
4565
4565
  })
4566
4566
  }), /* @__PURE__ */ a.jsxs(
4567
4567
  "form",
@@ -4572,7 +4572,7 @@ const le = "discussion_form_", en = ({
4572
4572
  }),
4573
4573
  "data-testid": `discussion-${e.type}-form`,
4574
4574
  children: [
4575
- (n == null ? void 0 : n.showTitle) && !n.isEditing && ["question"].includes(e.type) && /* @__PURE__ */ a.jsx("h2", { children: be(l.formatMessage, `${le}title`, e.type, "action") }),
4575
+ (n == null ? void 0 : n.showTitle) && !n.isEditing && ["question"].includes(e.type) && /* @__PURE__ */ a.jsx("h2", { children: ye(l.formatMessage, `${le}title`, e.type, "action") }),
4576
4576
  /* @__PURE__ */ a.jsx(
4577
4577
  Xt,
4578
4578
  {
@@ -4581,14 +4581,14 @@ const le = "discussion_form_", en = ({
4581
4581
  gtmType: "profile-click"
4582
4582
  }
4583
4583
  ),
4584
- /* @__PURE__ */ a.jsx(ae, { element: "label", showOnFocus: !1, htmlFor: `${v}-input`, children: be(l.formatMessage, `${le}label`, e.type, "action") }),
4584
+ /* @__PURE__ */ a.jsx(ie, { element: "label", showOnFocus: !1, htmlFor: `${v}-input`, children: ye(l.formatMessage, `${le}label`, e.type, "action") }),
4585
4585
  /* @__PURE__ */ a.jsx(
4586
4586
  Xa,
4587
4587
  {
4588
4588
  ref: r,
4589
4589
  id: `${v}-input`,
4590
4590
  name: e.type,
4591
- placeholder: be(
4591
+ placeholder: ye(
4592
4592
  l.formatMessage,
4593
4593
  `${le}placeholder`,
4594
4594
  e.type,
@@ -4603,8 +4603,8 @@ const le = "discussion_form_", en = ({
4603
4603
  autoFocus: !!n.isEditing
4604
4604
  }
4605
4605
  ),
4606
- /* @__PURE__ */ a.jsx("small", { children: be(l.formatMessage, `${le}explainer`, e.type, "action", {
4607
- a: (N) => /* @__PURE__ */ a.jsx(
4606
+ /* @__PURE__ */ a.jsx("small", { children: ye(l.formatMessage, `${le}explainer`, e.type, "action", {
4607
+ a: (Z) => /* @__PURE__ */ a.jsx(
4608
4608
  "a",
4609
4609
  {
4610
4610
  href: "https://about.apolitical.co/q-and-a-community-guidelines",
@@ -4613,12 +4613,12 @@ const le = "discussion_form_", en = ({
4613
4613
  "data-gtm-event-context": m,
4614
4614
  "data-gtm-event-type": "community-guidelines-link",
4615
4615
  rel: "noreferrer",
4616
- children: N
4616
+ children: Z
4617
4617
  }
4618
4618
  )
4619
4619
  }) }),
4620
- /* @__PURE__ */ a.jsx(ht, { buttons: L }),
4621
- b === "submitted" && /* @__PURE__ */ a.jsx(Vt, { className: "success", "data-testid": "success", children: be(l.formatMessage, `${le}success`, e.type, "action") }),
4620
+ /* @__PURE__ */ a.jsx(ht, { buttons: I }),
4621
+ y === "submitted" && /* @__PURE__ */ a.jsx(Vt, { className: "success", "data-testid": "success", children: ye(l.formatMessage, `${le}success`, e.type, "action") }),
4622
4622
  h && /* @__PURE__ */ a.jsx(Vt, { id: "error-message", className: "error", "data-testid": "error", children: o.error ? o.error : typeof h == "string" ? h.includes(" ") ? h : l.formatMessage(
4623
4623
  { id: h },
4624
4624
  {
@@ -4656,7 +4656,7 @@ const le = "discussion_form_", en = ({
4656
4656
  showThread: !0,
4657
4657
  showForm: !1
4658
4658
  }, vt = Gt(xs), ks = ({ children: e }) => {
4659
- const [t, n] = D({
4659
+ const [t, n] = R({
4660
4660
  showThread: !0,
4661
4661
  showForm: !1
4662
4662
  });
@@ -4689,8 +4689,8 @@ const Bt = () => {
4689
4689
  G(() => {
4690
4690
  h(s);
4691
4691
  }, [s]);
4692
- const [f, d] = D(t), [p, h] = D(s), [g, b] = D(!1), [k, y] = D(!1), _ = ft(() => ws(n, Zt), [n]), v = ($) => {
4693
- if ($.preventDefault(), $.stopPropagation(), y(!1), Ze)
4692
+ const [f, d] = R(t), [p, h] = R(s), [g, y] = R(!1), [k, b] = R(!1), _ = ft(() => ws(n, Zt), [n]), v = (S) => {
4693
+ if (S.preventDefault(), S.stopPropagation(), b(!1), Ze)
4694
4694
  return Bt(), !1;
4695
4695
  if (Bt(), g || !o)
4696
4696
  return !1;
@@ -4698,17 +4698,17 @@ const Bt = () => {
4698
4698
  }, j = async () => {
4699
4699
  if (Bt(), g || !o)
4700
4700
  return !1;
4701
- let $ = p ? f - 1 : f + 1;
4702
- $ < 0 && ($ = 0), b(!0), d($), h(!p);
4701
+ let S = p ? f - 1 : f + 1;
4702
+ S < 0 && (S = 0), y(!0), d(S), h(!p);
4703
4703
  try {
4704
4704
  if (i && i.slugs) {
4705
- const C = js(i.slugs);
4706
- p ? await m(C) : await c(C, { contentPath: window.location.pathname });
4705
+ const M = js(i.slugs);
4706
+ p ? await m(M) : await c(M, { contentPath: window.location.pathname });
4707
4707
  }
4708
4708
  } catch {
4709
4709
  d(t), h(s);
4710
4710
  } finally {
4711
- b(!1);
4711
+ y(!1);
4712
4712
  }
4713
4713
  };
4714
4714
  return F.createElement(
@@ -4717,20 +4717,20 @@ const Bt = () => {
4717
4717
  className: w("likes-wrapper text-medium action-button", { "show-spinner": g, "is-liked": p, disabled: !o }),
4718
4718
  onClick: v,
4719
4719
  onMouseEnter: () => {
4720
- y(!0);
4720
+ b(!0);
4721
4721
  },
4722
4722
  onMouseLeave: () => {
4723
- y(!1);
4723
+ b(!1);
4724
4724
  },
4725
4725
  onFocus: () => {
4726
- y(!0);
4726
+ b(!0);
4727
4727
  },
4728
4728
  onBlur: () => {
4729
- y(!1);
4729
+ b(!1);
4730
4730
  },
4731
4731
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
4732
4732
  /* @__PURE__ */ a.jsx(
4733
- B,
4733
+ H,
4734
4734
  {
4735
4735
  variant: "tertiary",
4736
4736
  size: "medium",
@@ -4749,16 +4749,16 @@ const Bt = () => {
4749
4749
  ),
4750
4750
  /* @__PURE__ */ a.jsx("span", { className: w("number-of-likes", { "no-likes": f === 0 }), "data-testid": "number-of-likes", children: l.formatMessage({ id: `discussion_likes${r ? "_short" : ""}` }, { number: f }) }),
4751
4751
  n && /* @__PURE__ */ a.jsx(wr, { isOpen: k, isLoading: n.length === 0, children: n.length && /* @__PURE__ */ a.jsxs("ul", { children: [
4752
- _.map(($) => typeof $ == "string" || !$.name ? null : /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
4752
+ _.map((S) => typeof S == "string" || !S.name ? null : /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
4753
4753
  gt,
4754
4754
  {
4755
- href: $.id ? `/profiles/${$.id}` : void 0,
4755
+ href: S.id ? `/profiles/${S.id}` : void 0,
4756
4756
  gtmContext: "Likes",
4757
4757
  gtmType: "liked-name-click",
4758
- onClick: (C) => C == null ? void 0 : C.stopPropagation(),
4759
- children: $.name
4758
+ onClick: (M) => M == null ? void 0 : M.stopPropagation(),
4759
+ children: S.name
4760
4760
  }
4761
- ) }, $.id || window.btoa($.name))),
4761
+ ) }, S.id || window.btoa(S.name))),
4762
4762
  n.length > Zt && /* @__PURE__ */ a.jsx("li", { children: l.formatMessage({ id: "discussion_likes_more" }, { number: n.length - Zt }) })
4763
4763
  ] }) })
4764
4764
  ] })
@@ -4768,7 +4768,7 @@ const Bt = () => {
4768
4768
  const t = {};
4769
4769
  return Object.keys(e).forEach((n) => n.includes("Id") ? t[n] = e[n] : t[`${n}Slug`] = e[n]), t;
4770
4770
  }, xt = (e, t) => e && !t;
4771
- const ve = "discussion_", $s = 280, kt = ({
4771
+ const xe = "discussion_", $s = 280, kt = ({
4772
4772
  element: e = "div",
4773
4773
  content: t,
4774
4774
  userHasPermissions: n = !0,
@@ -4795,54 +4795,54 @@ const ve = "discussion_", $s = 280, kt = ({
4795
4795
  links: p = {},
4796
4796
  className: h,
4797
4797
  gtmContext: g = "DiscussionAnswer",
4798
- children: b,
4798
+ children: y,
4799
4799
  isTruncated: k = !1
4800
4800
  }) => {
4801
- const y = A(), _ = ge(ke), v = ge(vt), [j, $] = D({
4801
+ const b = A(), _ = _e(je), v = _e(vt), [j, S] = R({
4802
4802
  body: t && t.body || "",
4803
4803
  isEditing: !1,
4804
4804
  didEdit: t && t.isEdited || !1
4805
- }), [C, Z] = D(!1), [L, S] = D("");
4805
+ }), [M, D] = R(!1), [I, $] = R("");
4806
4806
  if (G(() => {
4807
- $({
4807
+ S({
4808
4808
  ...j,
4809
4809
  body: t && t.body || "",
4810
4810
  didEdit: t && t.isEdited || !1
4811
4811
  });
4812
4812
  }, [t.isEdited]), r || !t || t.type === "answer" && (!t.slugs || !t.slugs.question))
4813
- return /* @__PURE__ */ a.jsx(_e, { className: "discussion-card discussion-post" });
4814
- const { author: M, canLike: E, createdAt: N, id: q, likes: H = 0, userLiked: Y, comments: Q = 0 } = t, z = k ? Ne(j.body, $s) : j.body, te = _ && _.id && typeof M != "string" && M.id && M.id === _.id || !1, re = typeof E == "boolean" ? E : n ? !te : !1, J = async (W) => {
4815
- W || (W = ""), S("");
4813
+ return /* @__PURE__ */ a.jsx(be, { className: "discussion-card discussion-post" });
4814
+ const { author: C, canLike: E, createdAt: Z, id: N, likes: U = 0, userLiked: Y, comments: ne = 0 } = t, Q = k ? Ne(j.body, $s) : j.body, J = _ && _.id && typeof C != "string" && C.id && C.id === _.id || !1, re = typeof E == "boolean" ? E : n ? !J : !1, X = async (W) => {
4815
+ W || (W = ""), $("");
4816
4816
  try {
4817
4817
  if (!er(W, j.body)) {
4818
4818
  const ue = t.type === "question" ? { title: W } : { body: W };
4819
4819
  await m(Sn(t.slugs), ue);
4820
4820
  }
4821
- $({ body: W, isEditing: !1, didEdit: !0 });
4821
+ S({ body: W, isEditing: !1, didEdit: !0 });
4822
4822
  } catch {
4823
- S(`${ve}form_error`);
4823
+ $(`${xe}form_error`);
4824
4824
  }
4825
- }, ie = () => {
4825
+ }, se = () => {
4826
4826
  v && v.updateConversation && v.updateConversation({ showThread: !0, showForm: !0 }), setTimeout(() => {
4827
- var me, pe, Ee;
4828
- const ue = `reply-form-${(t.type === "answer" ? t.slug : ((me = t.slugs) == null ? void 0 : me.reply) || ((pe = t.slugs) == null ? void 0 : pe.answer) || ((Ee = t.slugs) == null ? void 0 : Ee.question) || "").toLowerCase().slice(-15)}`, K = document.getElementById(ue), se = document.getElementById(`${ue}-input`);
4829
- se && se.focus(), K && K.scrollIntoView({ behavior: "smooth" });
4827
+ var K, he, me;
4828
+ const ue = `reply-form-${(t.type === "answer" ? t.slug : ((K = t.slugs) == null ? void 0 : K.reply) || ((he = t.slugs) == null ? void 0 : he.answer) || ((me = t.slugs) == null ? void 0 : me.question) || "").toLowerCase().slice(-15)}`, pe = document.getElementById(ue), q = document.getElementById(`${ue}-input`);
4829
+ q && q.focus(), pe && pe.scrollIntoView({ behavior: "smooth" });
4830
4830
  }, 0);
4831
4831
  }, de = () => {
4832
- Z(!1);
4832
+ D(!1);
4833
4833
  try {
4834
4834
  c(Sn(t.slugs));
4835
4835
  } catch {
4836
- S("delete-error");
4836
+ $("delete-error");
4837
4837
  }
4838
4838
  }, ce = [
4839
4839
  {
4840
- text: y.formatMessage({ id: `${ve}moreMenu_report` }),
4840
+ text: b.formatMessage({ id: `${xe}moreMenu_report` }),
4841
4841
  href: `mailto:community@apolitical.co?subject=${encodeURI(
4842
- y.formatMessage({ id: `${ve}report_subject` })
4842
+ b.formatMessage({ id: `${xe}report_subject` })
4843
4843
  )}&body=${encodeURI(
4844
- y.formatMessage(
4845
- { id: `${ve}report_body` },
4844
+ b.formatMessage(
4845
+ { id: `${xe}report_body` },
4846
4846
  {
4847
4847
  contentType: t.type || "",
4848
4848
  contentSlug: t.slug || "",
@@ -4853,25 +4853,25 @@ const ve = "discussion_", $s = 280, kt = ({
4853
4853
  icon: "flag"
4854
4854
  }
4855
4855
  ];
4856
- return n && te && ce.push(
4856
+ return n && J && ce.push(
4857
4857
  {
4858
- text: y.formatMessage({ id: `${ve}moreMenu_edit` }),
4859
- onClick: () => $({ ...j, isEditing: !0 }),
4858
+ text: b.formatMessage({ id: `${xe}moreMenu_edit` }),
4859
+ onClick: () => S({ ...j, isEditing: !0 }),
4860
4860
  icon: "pencil-paper",
4861
4861
  className: "gtm-trackable",
4862
4862
  "data-gtm-event-context": g,
4863
4863
  "data-gtm-event-type": `edit-${t.type}-click`
4864
4864
  },
4865
4865
  {
4866
- text: y.formatMessage({ id: `${ve}moreMenu_delete` }),
4866
+ text: b.formatMessage({ id: `${xe}moreMenu_delete` }),
4867
4867
  onClick: (W) => {
4868
- W.preventDefault(), W.stopPropagation(), Z(!0);
4868
+ W.preventDefault(), W.stopPropagation(), D(!0);
4869
4869
  },
4870
4870
  icon: "trash",
4871
4871
  className: "gtm-trackable",
4872
4872
  "data-gtm-event-context": g,
4873
4873
  "data-gtm-event-type": `delete-${t.type}-click`,
4874
- ..._s(`delete-${t.slug}-modal`, C)
4874
+ ..._s(`delete-${t.slug}-modal`, M)
4875
4875
  }
4876
4876
  ), F.createElement(e, {
4877
4877
  className: w("discussion-post", h),
@@ -4880,7 +4880,7 @@ const ve = "discussion_", $s = 280, kt = ({
4880
4880
  /* @__PURE__ */ a.jsxs(
4881
4881
  "div",
4882
4882
  {
4883
- id: q || t.slug,
4883
+ id: N || t.slug,
4884
4884
  className: w("discussion-card", t.type, {
4885
4885
  editing: j.isEditing,
4886
4886
  "has-link": p.post && !j.isEditing
@@ -4892,9 +4892,9 @@ const ve = "discussion_", $s = 280, kt = ({
4892
4892
  !j.isEditing && /* @__PURE__ */ a.jsx(
4893
4893
  Xt,
4894
4894
  {
4895
- member: M,
4896
- additionalContent: { createdAt: N, didEdit: j.didEdit },
4897
- className: typeof M != "string" && M.id === s ? "highlighted" : "",
4895
+ member: C,
4896
+ additionalContent: { createdAt: Z, didEdit: j.didEdit },
4897
+ className: typeof C != "string" && C.id === s ? "highlighted" : "",
4898
4898
  gtmContext: g,
4899
4899
  gtmType: "profile-click"
4900
4900
  }
@@ -4911,10 +4911,10 @@ const ve = "discussion_", $s = 280, kt = ({
4911
4911
  },
4912
4912
  maxLength: t.type === "question" ? 250 : 5e4,
4913
4913
  forceShow: {
4914
- error: L !== "" && L !== "delete-error" ? y.formatMessage(
4915
- { id: L },
4914
+ error: I !== "" && I !== "delete-error" ? b.formatMessage(
4915
+ { id: I },
4916
4916
  {
4917
- action: y.formatMessage({
4917
+ action: b.formatMessage({
4918
4918
  id: `discussion_action_${t.type}`
4919
4919
  })
4920
4920
  }
@@ -4922,9 +4922,9 @@ const ve = "discussion_", $s = 280, kt = ({
4922
4922
  },
4923
4923
  functions: {
4924
4924
  create: o,
4925
- handleSaveEdit: J,
4925
+ handleSaveEdit: X,
4926
4926
  handleCancel: () => {
4927
- S(""), $({ ...j, isEditing: !1 });
4927
+ $(""), S({ ...j, isEditing: !1 });
4928
4928
  }
4929
4929
  },
4930
4930
  gtmContext: `${g}Form`
@@ -4936,7 +4936,7 @@ const ve = "discussion_", $s = 280, kt = ({
4936
4936
  className: "gtm-trackable",
4937
4937
  "data-gtm-event-context": g,
4938
4938
  "data-gtm-event-type": "title-click",
4939
- children: /* @__PURE__ */ a.jsx(jn, { options: { overrides: { a: Zr } }, children: z })
4939
+ children: /* @__PURE__ */ a.jsx(jn, { options: { overrides: { a: Zr } }, children: Q })
4940
4940
  }
4941
4941
  ) : /* @__PURE__ */ a.jsx(
4942
4942
  jn,
@@ -4947,7 +4947,7 @@ const ve = "discussion_", $s = 280, kt = ({
4947
4947
  forceInline: t.type === "question",
4948
4948
  forceBlock: t.type !== "question"
4949
4949
  },
4950
- children: z
4950
+ children: Q
4951
4951
  }
4952
4952
  ),
4953
4953
  !j.isEditing && /* @__PURE__ */ a.jsxs(
@@ -4960,7 +4960,7 @@ const ve = "discussion_", $s = 280, kt = ({
4960
4960
  Ts,
4961
4961
  {
4962
4962
  element: "li",
4963
- likes: H,
4963
+ likes: U,
4964
4964
  isShort: !1,
4965
4965
  userLiked: Y,
4966
4966
  content: { type: t.type, slugs: t.slugs },
@@ -4981,7 +4981,7 @@ const ve = "discussion_", $s = 280, kt = ({
4981
4981
  },
4982
4982
  children: [
4983
4983
  /* @__PURE__ */ a.jsx(
4984
- B,
4984
+ H,
4985
4985
  {
4986
4986
  variant: "tertiary",
4987
4987
  size: "medium",
@@ -4992,27 +4992,27 @@ const ve = "discussion_", $s = 280, kt = ({
4992
4992
  className: "gtm-trackable",
4993
4993
  "data-gtm-event-context": g,
4994
4994
  "data-gtm-event-type": `answer-${t.type}-click`,
4995
- screenreaderText: y.formatMessage(
4996
- { id: `${ve}comments_screenReader` },
4997
- { count: Q }
4995
+ screenreaderText: b.formatMessage(
4996
+ { id: `${xe}comments_screenReader` },
4997
+ { count: ne }
4998
4998
  )
4999
4999
  }
5000
5000
  ),
5001
- /* @__PURE__ */ a.jsx("span", { children: y.formatMessage(
5002
- { id: `${ve}comments` },
5003
- { count: Q }
5001
+ /* @__PURE__ */ a.jsx("span", { children: b.formatMessage(
5002
+ { id: `${xe}comments` },
5003
+ { count: ne }
5004
5004
  ) })
5005
5005
  ]
5006
5006
  }
5007
5007
  ),
5008
5008
  (t.type === "answer" || t.type === "reply") && /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
5009
- B,
5009
+ H,
5010
5010
  {
5011
5011
  variant: "tertiary",
5012
5012
  size: "medium",
5013
5013
  styling: { muted: !0 },
5014
- onClick: ie,
5015
- children: y.formatMessage({ id: `${ve}reply` })
5014
+ onClick: se,
5015
+ children: b.formatMessage({ id: `${xe}reply` })
5016
5016
  }
5017
5017
  ) }),
5018
5018
  /* @__PURE__ */ a.jsx(
@@ -5029,49 +5029,49 @@ const ve = "discussion_", $s = 280, kt = ({
5029
5029
  ]
5030
5030
  }
5031
5031
  ),
5032
- b,
5032
+ y,
5033
5033
  /* @__PURE__ */ a.jsx(
5034
5034
  la,
5035
5035
  {
5036
5036
  id: `delete-${t.slug}-modal`,
5037
- isOpen: C,
5037
+ isOpen: M,
5038
5038
  functions: { onOpen: () => {
5039
- }, onClose: () => Z(!1) },
5039
+ }, onClose: () => D(!1) },
5040
5040
  forceShow: {
5041
- error: L === "delete-error" ? y.formatMessage(
5041
+ error: I === "delete-error" ? b.formatMessage(
5042
5042
  { id: "discussion_delete_error" },
5043
5043
  {
5044
- action: y.formatMessage({
5044
+ action: b.formatMessage({
5045
5045
  id: `discussion_action_${t.type}`
5046
5046
  })
5047
5047
  }
5048
5048
  ) : !1
5049
5049
  },
5050
- title: y.formatMessage(
5050
+ title: b.formatMessage(
5051
5051
  { id: "discussion_delete_title" },
5052
- { action: y.formatMessage({ id: `discussion_action_${t.type}` }) }
5052
+ { action: b.formatMessage({ id: `discussion_action_${t.type}` }) }
5053
5053
  ),
5054
5054
  buttons: [
5055
5055
  {
5056
5056
  variant: "secondary",
5057
- onClick: () => Z(!1),
5058
- children: y.formatMessage({ id: "discussion_delete_cancel" })
5057
+ onClick: () => D(!1),
5058
+ children: b.formatMessage({ id: "discussion_delete_cancel" })
5059
5059
  },
5060
5060
  {
5061
5061
  variant: "primary",
5062
5062
  className: "destructive",
5063
5063
  onClick: de,
5064
- children: y.formatMessage({ id: "discussion_delete_delete" })
5064
+ children: b.formatMessage({ id: "discussion_delete_delete" })
5065
5065
  }
5066
5066
  ],
5067
5067
  gtmContext: `${t.type.charAt(0).toUpperCase()}${t.type.slice(1)}:${t.slug}`,
5068
5068
  children: /* @__PURE__ */ a.jsx(
5069
- je,
5069
+ we,
5070
5070
  {
5071
5071
  id: "discussion_delete_text",
5072
5072
  values: {
5073
5073
  p: (W) => /* @__PURE__ */ a.jsx("p", { children: W }),
5074
- action: y.formatMessage({
5074
+ action: b.formatMessage({
5075
5075
  id: `discussion_action_${t.type}`
5076
5076
  })
5077
5077
  }
@@ -5086,11 +5086,11 @@ const qt = "discussion_responses_", Yi = ({ type: e = "answer", responses: t = 0
5086
5086
  const n = A();
5087
5087
  return /* @__PURE__ */ a.jsxs("div", { className: "responses-heading", children: [
5088
5088
  /* @__PURE__ */ a.jsx("h3", { children: n.formatMessage({ id: `${qt}title` }, { action: n.formatMessage({ id: `${qt}${e}` }), count: t }) }),
5089
- t === 0 && /* @__PURE__ */ a.jsx("p", { children: be(n.formatMessage, `${qt}empty`, e, e) })
5089
+ t === 0 && /* @__PURE__ */ a.jsx("p", { children: ye(n.formatMessage, `${qt}empty`, e, e) })
5090
5090
  ] });
5091
5091
  };
5092
5092
  const Es = ({ count: e = "", showRepliesButton: t = !0, children: n }) => {
5093
- const r = A(), s = ne(null), i = ge(vt), [o, c] = D(
5093
+ const r = A(), s = ae(null), i = _e(vt), [o, c] = R(
5094
5094
  "open"
5095
5095
  /* Open */
5096
5096
  );
@@ -5126,7 +5126,7 @@ const Es = ({ count: e = "", showRepliesButton: t = !0, children: n }) => {
5126
5126
  });
5127
5127
  return /* @__PURE__ */ a.jsxs("div", { className: "thread-wrapper", children: [
5128
5128
  t && /* @__PURE__ */ a.jsx(
5129
- B,
5129
+ H,
5130
5130
  {
5131
5131
  variant: "secondary",
5132
5132
  size: "small",
@@ -5274,7 +5274,7 @@ const Ae = Object.freeze({
5274
5274
  thumbnail: "https://some-user-thumbnail.com/avatar1.png"
5275
5275
  },
5276
5276
  isLoading: !1
5277
- }), $e = Object.freeze({
5277
+ }), Ee = Object.freeze({
5278
5278
  id: "some-user-id-2",
5279
5279
  name: "some user name 2",
5280
5280
  organization: "some user organization 2",
@@ -5294,7 +5294,7 @@ const Ae = Object.freeze({
5294
5294
  time: "2023-11-24T17:52:36.162000",
5295
5295
  verb: "post"
5296
5296
  }), Ds = Object.freeze({
5297
- actor: `SU:${$e.id}`,
5297
+ actor: `SU:${Ee.id}`,
5298
5298
  content: "some content 2",
5299
5299
  duration: "5.53ms",
5300
5300
  feed_id: "some-feed-id-2",
@@ -5303,7 +5303,7 @@ const Ae = Object.freeze({
5303
5303
  object: "comment",
5304
5304
  time: "2023-11-24T17:54:36.162000",
5305
5305
  verb: "post"
5306
- }), Ls = Object.freeze({
5306
+ }), Rs = Object.freeze({
5307
5307
  actor: `SU:${Ae.id}`,
5308
5308
  content: "some content 3",
5309
5309
  duration: "5.53ms",
@@ -5313,8 +5313,8 @@ const Ae = Object.freeze({
5313
5313
  object: "comment",
5314
5314
  time: "2023-11-24T17:56:36.162000",
5315
5315
  verb: "post"
5316
- }), Rs = Object.freeze({
5317
- actor: `SU:${$e.id}`,
5316
+ }), Ls = Object.freeze({
5317
+ actor: `SU:${Ee.id}`,
5318
5318
  content: "some content 4",
5319
5319
  duration: "5.53ms",
5320
5320
  feed_id: "some-feed-id-4",
@@ -5332,13 +5332,13 @@ Object.freeze({
5332
5332
  data: {},
5333
5333
  parent: "",
5334
5334
  updated_at: "2023-11-24T17:58:36.162000",
5335
- user_id: $e.id,
5335
+ user_id: Ee.id,
5336
5336
  children_counts: {},
5337
5337
  latest_children: {},
5338
5338
  latest_children_extra: {},
5339
5339
  own_children: {},
5340
5340
  user: {
5341
- id: $e.id,
5341
+ id: Ee.id,
5342
5342
  data: {},
5343
5343
  created_at: "2023-11-24T17:58:36.162000",
5344
5344
  updated_at: "2023-11-24T17:58:36.162000"
@@ -5348,9 +5348,9 @@ Object.freeze({
5348
5348
  created_at: "2023-12-03T21:53:45.999851Z",
5349
5349
  updated_at: "2023-12-03T21:53:45.999851Z",
5350
5350
  id: "some-reply-id-1",
5351
- user_id: $e.id,
5351
+ user_id: Ee.id,
5352
5352
  user: {
5353
- id: $e.id,
5353
+ id: Ee.id,
5354
5354
  data: {},
5355
5355
  created_at: "2023-08-31T07:11:38.677184Z",
5356
5356
  updated_at: "2023-08-31T07:11:38.677184Z"
@@ -5388,15 +5388,15 @@ Object.freeze({
5388
5388
  created_at: "2023-12-03T21:53:45.999851Z",
5389
5389
  updated_at: "2023-12-03T21:53:45.999851Z",
5390
5390
  id: "some-reply-id-3",
5391
- user_id: $e.id,
5391
+ user_id: Ee.id,
5392
5392
  user: {
5393
- id: $e.id,
5393
+ id: Ee.id,
5394
5394
  data: {},
5395
5395
  created_at: "2023-08-31T07:11:38.677184Z",
5396
5396
  updated_at: "2023-08-31T07:11:38.677184Z"
5397
5397
  },
5398
5398
  kind: "reply",
5399
- activity_id: Ls.id,
5399
+ activity_id: Rs.id,
5400
5400
  data: {
5401
5401
  content: "Some content 3..."
5402
5402
  },
@@ -5416,7 +5416,7 @@ Object.freeze({
5416
5416
  updated_at: "2023-08-31T07:11:38.677184Z"
5417
5417
  },
5418
5418
  kind: "reply",
5419
- activity_id: Rs.id,
5419
+ activity_id: Ls.id,
5420
5420
  data: {
5421
5421
  content: "Some content 4..."
5422
5422
  },
@@ -5483,7 +5483,7 @@ function Bs({
5483
5483
  },
5484
5484
  user: m,
5485
5485
  ...l
5486
- }, d = Is({ ...f, mutationFn: e }), p = Os({ ...f, mutationFn: t }), h = Zs({ ...f, mutationFn: n }), g = Hs({ ...f, mutationFn: s }), b = Us({ ...f, mutationFn: i }), { activities: k, ...y } = qs({ queryKey: o, queryFn: r });
5486
+ }, d = Is({ ...f, mutationFn: e }), p = Os({ ...f, mutationFn: t }), h = Zs({ ...f, mutationFn: n }), g = Hs({ ...f, mutationFn: s }), y = Us({ ...f, mutationFn: i }), { activities: k, ...b } = qs({ queryKey: o, queryFn: r });
5487
5487
  return {
5488
5488
  activities: k,
5489
5489
  mutations: {
@@ -5491,10 +5491,10 @@ function Bs({
5491
5491
  edit: p,
5492
5492
  remove: g,
5493
5493
  like: h,
5494
- unlike: b
5494
+ unlike: y
5495
5495
  },
5496
5496
  user: m,
5497
- ...y
5497
+ ...b
5498
5498
  };
5499
5499
  }
5500
5500
  function Zs({
@@ -5527,7 +5527,7 @@ function qs({ queryFn: e, queryKey: t }) {
5527
5527
  isLoading: s,
5528
5528
  hasNextPage: i,
5529
5529
  fetchNextPage: o
5530
- } = Rn({
5530
+ } = Ln({
5531
5531
  queryKey: t,
5532
5532
  queryFn: e,
5533
5533
  initialPageParam: { next: null },
@@ -5624,10 +5624,10 @@ const Gi = ({
5624
5624
  create: p,
5625
5625
  edit: h,
5626
5626
  remove: g,
5627
- like: b,
5627
+ like: y,
5628
5628
  unlike: k
5629
5629
  },
5630
- user: y
5630
+ user: b
5631
5631
  } = Bs({
5632
5632
  queryKey: [e, t, "activities"],
5633
5633
  queryFns: r
@@ -5648,19 +5648,19 @@ const Gi = ({
5648
5648
  }
5649
5649
  ),
5650
5650
  c == null ? void 0 : c.map((_) => {
5651
- var q, H, Y, Q, z, te, re;
5651
+ var N, U, Y, ne, Q, J, re;
5652
5652
  const {
5653
5653
  id: v,
5654
5654
  own_reactions: j,
5655
- latest_reactions: $,
5656
- reaction_counts: C
5657
- } = _, Z = (((q = $ == null ? void 0 : $.like) == null ? void 0 : q.length) || 0) > 0, L = (((H = j == null ? void 0 : j.like) == null ? void 0 : H.length) || 0) > 0, S = L ? j == null ? void 0 : j.like[0].id : null, M = Z ? (Y = $ == null ? void 0 : $.like) == null ? void 0 : Y.map((J) => {
5658
- var ie, de, ce;
5655
+ latest_reactions: S,
5656
+ reaction_counts: M
5657
+ } = _, D = (((N = S == null ? void 0 : S.like) == null ? void 0 : N.length) || 0) > 0, I = (((U = j == null ? void 0 : j.like) == null ? void 0 : U.length) || 0) > 0, $ = I ? j == null ? void 0 : j.like[0].id : "", C = D ? (Y = S == null ? void 0 : S.like) == null ? void 0 : Y.map((X) => {
5658
+ var se, de, ce;
5659
5659
  return {
5660
- id: (ie = J == null ? void 0 : J.user) == null ? void 0 : ie.id,
5661
- name: (ce = (de = J == null ? void 0 : J.user) == null ? void 0 : de.data) == null ? void 0 : ce.name
5660
+ id: (se = X == null ? void 0 : X.user) == null ? void 0 : se.id,
5661
+ name: (ce = (de = X == null ? void 0 : X.user) == null ? void 0 : de.data) == null ? void 0 : ce.name
5662
5662
  };
5663
- }) : !1, E = _ == null ? void 0 : _.actor, N = (E == null ? void 0 : E.id) === (y == null ? void 0 : y.id);
5663
+ }) : !1, E = _ == null ? void 0 : _.actor, Z = (E == null ? void 0 : E.id) === (b == null ? void 0 : b.id);
5664
5664
  return /* @__PURE__ */ a.jsxs(qe, { children: [
5665
5665
  /* @__PURE__ */ a.jsx(
5666
5666
  kt,
@@ -5668,7 +5668,7 @@ const Gi = ({
5668
5668
  content: {
5669
5669
  type: "post",
5670
5670
  body: _ == null ? void 0 : _.content,
5671
- canLike: xt(n, N),
5671
+ canLike: xt(n, Z),
5672
5672
  createdAt: (_ == null ? void 0 : _.time) || "",
5673
5673
  slugs: {
5674
5674
  question: `${e}/${t}`,
@@ -5677,17 +5677,17 @@ const Gi = ({
5677
5677
  slug: v,
5678
5678
  author: {
5679
5679
  id: E == null ? void 0 : E.id,
5680
- name: (Q = E == null ? void 0 : E.data) == null ? void 0 : Q.name,
5681
- organization: (z = E == null ? void 0 : E.data) == null ? void 0 : z.organization,
5682
- jobTitle: (te = E == null ? void 0 : E.data) == null ? void 0 : te.jobTitle,
5680
+ name: (ne = E == null ? void 0 : E.data) == null ? void 0 : ne.name,
5681
+ organization: (Q = E == null ? void 0 : E.data) == null ? void 0 : Q.organization,
5682
+ jobTitle: (J = E == null ? void 0 : E.data) == null ? void 0 : J.jobTitle,
5683
5683
  image: {
5684
5684
  thumbnail: ((re = E == null ? void 0 : E.data) == null ? void 0 : re.thumbnail) || void 0
5685
5685
  }
5686
5686
  },
5687
- userLiked: L,
5688
- likes: (C == null ? void 0 : C.like) || 0,
5689
- comments: (C == null ? void 0 : C.reply) || 0,
5690
- peopleWhoLiked: M
5687
+ userLiked: I,
5688
+ likes: (M == null ? void 0 : M.like) || 0,
5689
+ comments: (M == null ? void 0 : M.reply) || 0,
5690
+ peopleWhoLiked: C
5691
5691
  },
5692
5692
  links: {
5693
5693
  post: `${e}/${t}/${v}`,
@@ -5698,11 +5698,11 @@ const Gi = ({
5698
5698
  createContent: () => null,
5699
5699
  deleteContent: () => g({ activityId: v }),
5700
5700
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
5701
- updateContent: (J, { body: ie }) => h({ activityId: v, content: ie })
5701
+ updateContent: (X, { body: se }) => h({ activityId: v, content: se })
5702
5702
  },
5703
5703
  likes: {
5704
- createLike: () => b({ activityId: v }),
5705
- deleteLike: () => k({ activityId: v, reactionId: S })
5704
+ createLike: () => y({ activityId: v }),
5705
+ deleteLike: () => k({ activityId: v, reactionId: $ })
5706
5706
  },
5707
5707
  comments: {
5708
5708
  openComments: () => null
@@ -5711,7 +5711,7 @@ const Gi = ({
5711
5711
  isTruncated: !0
5712
5712
  }
5713
5713
  ),
5714
- /* @__PURE__ */ a.jsx(Te, {})
5714
+ /* @__PURE__ */ a.jsx($e, {})
5715
5715
  ] }, v);
5716
5716
  }),
5717
5717
  !d && /* @__PURE__ */ a.jsx(
@@ -6335,7 +6335,7 @@ function ha({
6335
6335
  },
6336
6336
  user: m,
6337
6337
  ...l
6338
- }, d = Vs({ ...f, mutationFn: e }), p = Ys({ ...f, mutationFn: t }), h = Gs({ ...f, mutationFn: n }), g = Qs({ ...f, mutationFn: s }), b = Js({ ...f, mutationFn: i }), { replies: k, ...y } = Ks({ queryKey: o, queryFn: r });
6338
+ }, d = Vs({ ...f, mutationFn: e }), p = Ys({ ...f, mutationFn: t }), h = Gs({ ...f, mutationFn: n }), g = Qs({ ...f, mutationFn: s }), y = Js({ ...f, mutationFn: i }), { replies: k, ...b } = Ks({ queryKey: o, queryFn: r });
6339
6339
  return {
6340
6340
  replies: k,
6341
6341
  mutations: {
@@ -6343,10 +6343,10 @@ function ha({
6343
6343
  edit: p,
6344
6344
  remove: g,
6345
6345
  like: h,
6346
- unlike: b
6346
+ unlike: y
6347
6347
  },
6348
6348
  user: m,
6349
- ...y
6349
+ ...b
6350
6350
  };
6351
6351
  }
6352
6352
  function Gs({
@@ -6379,7 +6379,7 @@ function Ks({ queryFn: e, queryKey: t }) {
6379
6379
  isLoading: s,
6380
6380
  hasNextPage: i,
6381
6381
  fetchNextPage: o
6382
- } = Rn({
6382
+ } = Ln({
6383
6383
  queryKey: t,
6384
6384
  queryFn: e,
6385
6385
  initialPageParam: { next: "" },
@@ -6485,10 +6485,10 @@ const ri = ({
6485
6485
  create: p,
6486
6486
  edit: h,
6487
6487
  like: g,
6488
- remove: b,
6488
+ remove: y,
6489
6489
  unlike: k
6490
6490
  },
6491
- user: y
6491
+ user: b
6492
6492
  } = ha({
6493
6493
  queryKey: [e, t, n, r, "replies"],
6494
6494
  queryFns: {
@@ -6496,7 +6496,7 @@ const ri = ({
6496
6496
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6497
6497
  list: (v) => i.list({ ...v, reactionId: r })
6498
6498
  }
6499
- }), _ = ge(vt);
6499
+ }), _ = _e(vt);
6500
6500
  return /* @__PURE__ */ a.jsx(
6501
6501
  Es,
6502
6502
  {
@@ -6504,26 +6504,29 @@ const ri = ({
6504
6504
  showRepliesButton: !1,
6505
6505
  children: /* @__PURE__ */ a.jsxs("section", { children: [
6506
6506
  c == null ? void 0 : c.map((v) => {
6507
- var Q, z, te, re, J, ie, de, ce, W, ue;
6507
+ var Q, J, re, X, se, de, ce, W, ue, pe;
6508
6508
  const {
6509
6509
  id: j,
6510
- own_children: $,
6511
- latest_children: C,
6512
- children_counts: Z
6513
- } = v, L = (((Q = C == null ? void 0 : C.like) == null ? void 0 : Q.length) || 0) > 0, S = (((z = $ == null ? void 0 : $.like) == null ? void 0 : z.length) || 0) > 0, M = S ? $ == null ? void 0 : $.like[0].id : null, E = L ? (te = C == null ? void 0 : C.like) == null ? void 0 : te.map((K) => {
6514
- var se, me, pe;
6510
+ own_children: S,
6511
+ latest_children: M,
6512
+ children_counts: D
6513
+ } = v, I = (((Q = M == null ? void 0 : M.like) == null ? void 0 : Q.length) || 0) > 0, $ = (J = S == null ? void 0 : S.like) == null ? void 0 : J.find((q) => {
6514
+ var K;
6515
+ return ((K = q == null ? void 0 : q.user) == null ? void 0 : K.id) === (b == null ? void 0 : b.id);
6516
+ }), C = $ ? $ == null ? void 0 : $.id : "", E = !!$, Z = I ? (re = M == null ? void 0 : M.like) == null ? void 0 : re.map((q) => {
6517
+ var K, he, me;
6515
6518
  return {
6516
- id: (se = K == null ? void 0 : K.user) == null ? void 0 : se.id,
6517
- name: (pe = (me = K == null ? void 0 : K.user) == null ? void 0 : me.data) == null ? void 0 : pe.name
6519
+ id: (K = q == null ? void 0 : q.user) == null ? void 0 : K.id,
6520
+ name: (me = (he = q == null ? void 0 : q.user) == null ? void 0 : he.data) == null ? void 0 : me.name
6518
6521
  };
6519
- }) : !1, N = v == null ? void 0 : v.user, q = (N == null ? void 0 : N.id) === (y == null ? void 0 : y.id), H = xt(s, q), Y = typeof v.data.content == "string" ? (re = v == null ? void 0 : v.data) == null ? void 0 : re.content : ((ie = (J = v == null ? void 0 : v.data) == null ? void 0 : J.content) == null ? void 0 : ie.text) || "";
6522
+ }) : !1, N = v == null ? void 0 : v.user, U = (N == null ? void 0 : N.id) === (b == null ? void 0 : b.id), Y = xt(s, U), ne = typeof v.data.content == "string" ? (X = v == null ? void 0 : v.data) == null ? void 0 : X.content : ((de = (se = v == null ? void 0 : v.data) == null ? void 0 : se.content) == null ? void 0 : de.text) || "";
6520
6523
  return /* @__PURE__ */ a.jsx(
6521
6524
  kt,
6522
6525
  {
6523
6526
  content: {
6524
6527
  type: "reply",
6525
- body: Y,
6526
- canLike: H,
6528
+ body: ne,
6529
+ canLike: Y,
6527
6530
  createdAt: v == null ? void 0 : v.created_at,
6528
6531
  slugs: {
6529
6532
  question: `${e}/${t}`,
@@ -6535,27 +6538,27 @@ const ri = ({
6535
6538
  slug: "",
6536
6539
  author: {
6537
6540
  id: N == null ? void 0 : N.id,
6538
- name: (de = N.data) == null ? void 0 : de.name,
6539
- organization: (ce = N.data) == null ? void 0 : ce.organization,
6540
- jobTitle: (W = N.data) == null ? void 0 : W.jobTitle,
6541
+ name: (ce = N.data) == null ? void 0 : ce.name,
6542
+ organization: (W = N.data) == null ? void 0 : W.organization,
6543
+ jobTitle: (ue = N.data) == null ? void 0 : ue.jobTitle,
6541
6544
  image: {
6542
- thumbnail: ((ue = N.data) == null ? void 0 : ue.thumbnail) || void 0
6545
+ thumbnail: ((pe = N.data) == null ? void 0 : pe.thumbnail) || void 0
6543
6546
  }
6544
6547
  },
6545
- userLiked: S,
6546
- likes: (Z == null ? void 0 : Z.like) || 0,
6547
- peopleWhoLiked: E
6548
+ userLiked: E,
6549
+ likes: (D == null ? void 0 : D.like) || 0,
6550
+ peopleWhoLiked: Z
6548
6551
  },
6549
6552
  functions: {
6550
6553
  content: {
6551
6554
  createContent: () => null,
6552
- deleteContent: () => b({ replyId: j }),
6555
+ deleteContent: () => y({ replyId: j }),
6553
6556
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6554
- updateContent: (K, { body: se }) => h({ replyId: j, content: se })
6557
+ updateContent: (q, { body: K }) => h({ replyId: j, content: K })
6555
6558
  },
6556
6559
  likes: {
6557
6560
  createLike: () => g({ replyId: j }),
6558
- deleteLike: () => k({ replyId: j, reactionId: M })
6561
+ deleteLike: () => k({ replyId: j, reactionId: C })
6559
6562
  },
6560
6563
  comments: {}
6561
6564
  }
@@ -6616,9 +6619,9 @@ const ri = ({
6616
6619
  mutations: {
6617
6620
  create: h,
6618
6621
  edit: g,
6619
- like: b,
6622
+ like: y,
6620
6623
  remove: k,
6621
- unlike: y
6624
+ unlike: b
6622
6625
  },
6623
6626
  user: _
6624
6627
  } = ha({
@@ -6647,26 +6650,29 @@ const ri = ({
6647
6650
  }
6648
6651
  ),
6649
6652
  m == null ? void 0 : m.map((v) => {
6650
- var Q, z, te, re, J, ie, de, ce, W, ue;
6653
+ var Q, J, re, X, se, de, ce, W, ue, pe;
6651
6654
  const {
6652
6655
  id: j,
6653
- own_children: $,
6654
- latest_children: C,
6655
- children_counts: Z
6656
- } = v, L = (((Q = C == null ? void 0 : C.like) == null ? void 0 : Q.length) || 0) > 0, S = (((z = $ == null ? void 0 : $.like) == null ? void 0 : z.length) || 0) > 0, M = S ? $ == null ? void 0 : $.like[0].id : null, E = L ? (te = C == null ? void 0 : C.like) == null ? void 0 : te.map((K) => {
6657
- var se, me, pe;
6656
+ own_children: S,
6657
+ latest_children: M,
6658
+ children_counts: D
6659
+ } = v, I = (((Q = M == null ? void 0 : M.like) == null ? void 0 : Q.length) || 0) > 0, $ = (J = S == null ? void 0 : S.like) == null ? void 0 : J.find((q) => {
6660
+ var K;
6661
+ return ((K = q == null ? void 0 : q.user) == null ? void 0 : K.id) === (_ == null ? void 0 : _.id);
6662
+ }), C = $ ? $ == null ? void 0 : $.id : "", E = !!$, Z = I ? (re = M == null ? void 0 : M.like) == null ? void 0 : re.map((q) => {
6663
+ var K, he, me;
6658
6664
  return {
6659
- id: (se = K == null ? void 0 : K.user) == null ? void 0 : se.id,
6660
- name: (pe = (me = K == null ? void 0 : K.user) == null ? void 0 : me.data) == null ? void 0 : pe.name
6665
+ id: (K = q == null ? void 0 : q.user) == null ? void 0 : K.id,
6666
+ name: (me = (he = q == null ? void 0 : q.user) == null ? void 0 : he.data) == null ? void 0 : me.name
6661
6667
  };
6662
- }) : !1, N = v == null ? void 0 : v.user, q = (N == null ? void 0 : N.id) === (_ == null ? void 0 : _.id), H = xt(r, q), Y = typeof v.data.content == "string" ? (re = v == null ? void 0 : v.data) == null ? void 0 : re.content : ((ie = (J = v == null ? void 0 : v.data) == null ? void 0 : J.content) == null ? void 0 : ie.text) || "";
6668
+ }) : !1, N = v == null ? void 0 : v.user, U = (N == null ? void 0 : N.id) === (_ == null ? void 0 : _.id), Y = xt(r, U), ne = typeof v.data.content == "string" ? (X = v == null ? void 0 : v.data) == null ? void 0 : X.content : ((de = (se = v == null ? void 0 : v.data) == null ? void 0 : se.content) == null ? void 0 : de.text) || "";
6663
6669
  return /* @__PURE__ */ a.jsx(ks, { children: /* @__PURE__ */ a.jsx(
6664
6670
  kt,
6665
6671
  {
6666
6672
  content: {
6667
6673
  type: "reply",
6668
- body: Y,
6669
- canLike: H,
6674
+ body: ne,
6675
+ canLike: Y,
6670
6676
  createdAt: v == null ? void 0 : v.created_at,
6671
6677
  slugs: {
6672
6678
  question: `${e}/${t}`,
@@ -6676,27 +6682,27 @@ const ri = ({
6676
6682
  slug: j,
6677
6683
  author: {
6678
6684
  id: N == null ? void 0 : N.id,
6679
- name: (de = N.data) == null ? void 0 : de.name,
6680
- organization: (ce = N.data) == null ? void 0 : ce.organization,
6681
- jobTitle: (W = N.data) == null ? void 0 : W.jobTitle,
6685
+ name: (ce = N.data) == null ? void 0 : ce.name,
6686
+ organization: (W = N.data) == null ? void 0 : W.organization,
6687
+ jobTitle: (ue = N.data) == null ? void 0 : ue.jobTitle,
6682
6688
  image: {
6683
- thumbnail: ((ue = N.data) == null ? void 0 : ue.thumbnail) || void 0
6689
+ thumbnail: ((pe = N.data) == null ? void 0 : pe.thumbnail) || void 0
6684
6690
  }
6685
6691
  },
6686
- userLiked: S,
6687
- likes: (Z == null ? void 0 : Z.like) || 0,
6688
- peopleWhoLiked: E
6692
+ userLiked: E,
6693
+ likes: (D == null ? void 0 : D.like) || 0,
6694
+ peopleWhoLiked: Z
6689
6695
  },
6690
6696
  functions: {
6691
6697
  content: {
6692
6698
  createContent: () => null,
6693
6699
  deleteContent: () => k({ replyId: j }),
6694
6700
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6695
- updateContent: (K, { body: se }) => g({ replyId: j, content: se })
6701
+ updateContent: (q, { body: K }) => g({ replyId: j, content: K })
6696
6702
  },
6697
6703
  likes: {
6698
- createLike: () => b({ replyId: j }),
6699
- deleteLike: () => y({ replyId: j, reactionId: M })
6704
+ createLike: () => y({ replyId: j }),
6705
+ deleteLike: () => b({ replyId: j, reactionId: C })
6700
6706
  },
6701
6707
  comments: {}
6702
6708
  },
@@ -6836,14 +6842,14 @@ const Qi = ({
6836
6842
  leave: m
6837
6843
  }
6838
6844
  }) => {
6839
- var L, S, M, E, N, q, H, Y, Q;
6840
- const l = A(), f = ge(ke), {
6845
+ var $, C, E, Z, N, U, Y, ne, Q;
6846
+ const l = A(), f = _e(je), {
6841
6847
  activity: d,
6842
6848
  error: p,
6843
6849
  isLoading: h,
6844
6850
  mutations: {
6845
6851
  edit: g,
6846
- like: b,
6852
+ like: y,
6847
6853
  unlike: k
6848
6854
  }
6849
6855
  } = ci({
@@ -6851,7 +6857,7 @@ const Qi = ({
6851
6857
  queryKey: [e, t, n]
6852
6858
  });
6853
6859
  if (h)
6854
- return /* @__PURE__ */ a.jsx(_e, { style: { height: "400px" } });
6860
+ return /* @__PURE__ */ a.jsx(be, { style: { height: "400px" } });
6855
6861
  if (p || !d)
6856
6862
  return /* @__PURE__ */ a.jsx(
6857
6863
  bt,
@@ -6860,13 +6866,13 @@ const Qi = ({
6860
6866
  text: l.formatMessage({ id: "activitySection_notFoundError" })
6861
6867
  }
6862
6868
  );
6863
- const { own_reactions: y, latest_reactions: _ } = d, v = (((L = _ == null ? void 0 : _.like) == null ? void 0 : L.length) || 0) > 0, j = (((S = y == null ? void 0 : y.like) == null ? void 0 : S.length) || 0) > 0, $ = v ? (M = _ == null ? void 0 : _.like) == null ? void 0 : M.map((z) => {
6864
- var te, re, J;
6869
+ const { own_reactions: b, latest_reactions: _ } = d, v = ((($ = _ == null ? void 0 : _.like) == null ? void 0 : $.length) || 0) > 0, j = (((C = b == null ? void 0 : b.like) == null ? void 0 : C.length) || 0) > 0, S = j ? b == null ? void 0 : b.like[0].id : "", M = v ? (E = _ == null ? void 0 : _.like) == null ? void 0 : E.map((J) => {
6870
+ var re, X, se;
6865
6871
  return {
6866
- id: (te = z == null ? void 0 : z.user) == null ? void 0 : te.id,
6867
- name: (J = (re = z == null ? void 0 : z.user) == null ? void 0 : re.data) == null ? void 0 : J.name
6872
+ id: (re = J == null ? void 0 : J.user) == null ? void 0 : re.id,
6873
+ name: (se = (X = J == null ? void 0 : J.user) == null ? void 0 : X.data) == null ? void 0 : se.name
6868
6874
  };
6869
- }) : !1, C = d == null ? void 0 : d.actor, Z = (C == null ? void 0 : C.id) === (f == null ? void 0 : f.id);
6875
+ }) : !1, D = d == null ? void 0 : d.actor, I = (D == null ? void 0 : D.id) === (f == null ? void 0 : f.id);
6870
6876
  return /* @__PURE__ */ a.jsx(
6871
6877
  kt,
6872
6878
  {
@@ -6874,7 +6880,7 @@ const Qi = ({
6874
6880
  content: {
6875
6881
  type: "post",
6876
6882
  body: d == null ? void 0 : d.content,
6877
- canLike: xt(r, Z),
6883
+ canLike: xt(r, I),
6878
6884
  createdAt: (d == null ? void 0 : d.time) || "",
6879
6885
  slugs: {
6880
6886
  question: `${e}/${t}`,
@@ -6882,31 +6888,31 @@ const Qi = ({
6882
6888
  },
6883
6889
  slug: n,
6884
6890
  author: {
6885
- id: C.id,
6886
- name: (E = C.data) == null ? void 0 : E.name,
6887
- organization: (N = C.data) == null ? void 0 : N.organization,
6888
- jobTitle: (q = C.data) == null ? void 0 : q.jobTitle,
6891
+ id: D.id,
6892
+ name: (Z = D.data) == null ? void 0 : Z.name,
6893
+ organization: (N = D.data) == null ? void 0 : N.organization,
6894
+ jobTitle: (U = D.data) == null ? void 0 : U.jobTitle,
6889
6895
  image: {
6890
- thumbnail: ((H = C.data) == null ? void 0 : H.thumbnail) || void 0
6896
+ thumbnail: ((Y = D.data) == null ? void 0 : Y.thumbnail) || void 0
6891
6897
  }
6892
6898
  },
6893
6899
  userLiked: j,
6894
- likes: ((Y = d == null ? void 0 : d.reaction_counts) == null ? void 0 : Y.like) || 0,
6900
+ likes: ((ne = d == null ? void 0 : d.reaction_counts) == null ? void 0 : ne.like) || 0,
6895
6901
  comments: ((Q = d == null ? void 0 : d.reaction_counts) == null ? void 0 : Q.reply) || 0,
6896
- peopleWhoLiked: $
6902
+ peopleWhoLiked: M
6897
6903
  },
6898
- originalAuthorId: C == null ? void 0 : C.id,
6904
+ originalAuthorId: D == null ? void 0 : D.id,
6899
6905
  forceHide: { comments: !0 },
6900
6906
  functions: {
6901
6907
  content: {
6902
6908
  createContent: () => null,
6903
6909
  deleteContent: s,
6904
6910
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6905
- updateContent: (z, { body: te }) => g({ content: te })
6911
+ updateContent: (J, { body: re }) => g({ content: re })
6906
6912
  },
6907
6913
  likes: {
6908
- createLike: () => b({ activityId: n }),
6909
- deleteLike: () => k({ activityId: n })
6914
+ createLike: () => y({ activityId: n }),
6915
+ deleteLike: () => k({ activityId: n, reactionId: S })
6910
6916
  },
6911
6917
  comments: {
6912
6918
  openComments: () => {
@@ -7000,7 +7006,7 @@ const nt = "notFoundError_", Xi = () => {
7000
7006
  })
7001
7007
  }
7002
7008
  ),
7003
- /* @__PURE__ */ a.jsx(B, { href: "/solution-articles/", children: e.formatMessage({ id: `${nt}cta` }) })
7009
+ /* @__PURE__ */ a.jsx(H, { href: "/solution-articles/", children: e.formatMessage({ id: `${nt}cta` }) })
7004
7010
  ] })
7005
7011
  },
7006
7012
  reportError: () => {
@@ -7019,8 +7025,8 @@ export {
7019
7025
  Qi as ActivitySection,
7020
7026
  da as AddPost,
7021
7027
  Ci as BannerSection,
7022
- Li as Breadcrumbs,
7023
- B as Button,
7028
+ Ri as Breadcrumbs,
7029
+ H as Button,
7024
7030
  ht as ButtonWrapper,
7025
7031
  Er as CacheProvider,
7026
7032
  ea as Card,
@@ -7037,12 +7043,12 @@ export {
7037
7043
  Ts as DiscussionLikes,
7038
7044
  kt as DiscussionPost,
7039
7045
  Es as DiscussionThread,
7040
- Te as Divider,
7046
+ $e as Divider,
7041
7047
  $i as DownloadSection,
7042
7048
  Be as EMAILS,
7043
7049
  qi as EmailHelperTextBox,
7044
7050
  bt as EmptyStateBox,
7045
- Ri as Filters,
7051
+ Li as Filters,
7046
7052
  Mr as FlagsProvider,
7047
7053
  aa as Footer,
7048
7054
  _t as FullWidthSection,
@@ -7051,7 +7057,7 @@ export {
7051
7057
  Ar as HelperTextBox,
7052
7058
  Bn as HiddenFromScreenReaders,
7053
7059
  Pi as HideShowTextBox,
7054
- we as HighlightedTextBox,
7060
+ Te as HighlightedTextBox,
7055
7061
  Nr as IntlProvider,
7056
7062
  hs as InviteForm,
7057
7063
  zi as InviteModal,
@@ -7060,7 +7066,7 @@ export {
7060
7066
  gt as Link,
7061
7067
  yt as LoadMore,
7062
7068
  Ai as LoadingBlock,
7063
- _e as LoadingPlaceholder,
7069
+ be as LoadingPlaceholder,
7064
7070
  Kn as LoadingState,
7065
7071
  na as Logo,
7066
7072
  Ei as LogoSection,
@@ -7092,9 +7098,9 @@ export {
7092
7098
  Wi as Tags,
7093
7099
  wr as Tooltip,
7094
7100
  Zi as TopLevelPage,
7095
- ke as UserContext,
7101
+ je as UserContext,
7096
7102
  Pr as UserProvider,
7097
- ae as VisuallyHidden,
7103
+ ie as VisuallyHidden,
7098
7104
  _s as addAriaProps,
7099
7105
  Jn as getMember,
7100
7106
  ct as headerData,