@apolitical/component-library 1.18.1 → 1.18.3

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 +895 -853
  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
4
  import { useIntl as A, IntlProvider as Ha, createIntl as Ua, FormattedMessage as je } 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 j = /* @__PURE__ */ tr(nr), ar = ({ element: e = "span", showOnFocus: t = !0, children: n, ...r }) => F.createElement(e, { ...r, className: j("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 w = !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 || w || 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,27 +380,27 @@ 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
  }
402
402
  var va = Array.isArray;
403
- function jt(u) {
403
+ function wt(u) {
404
404
  return va(u);
405
405
  }
406
406
  function xa(u) {
@@ -423,14 +423,14 @@ 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, wa = {
427
427
  key: !0,
428
428
  ref: !0,
429
429
  __self: !0,
430
430
  __source: !0
431
- }, ln, dn, wt;
432
- wt = {};
433
- function wa(u) {
431
+ }, ln, dn, jt;
432
+ jt = {};
433
+ function ja(u) {
434
434
  if (Ve.call(u, "ref")) {
435
435
  var x = Object.getOwnPropertyDescriptor(u, "ref").get;
436
436
  if (x && x.isReactWarning)
@@ -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
+ jt[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), jt[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), ja(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) && !wa.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,14 +580,14 @@ 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) {
587
587
  {
588
588
  if (typeof u != "object")
589
589
  return;
590
- if (jt(u))
590
+ if (wt(u))
591
591
  for (var T = 0; T < u.length; T++) {
592
592
  var P = u[T];
593
593
  Et(P) && pn(P, 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" : wt(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 (wt(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 w = 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 ? w(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 ? w(s.current) : l.current;
738
738
  if (k)
739
- return $(L, t), j(s.current);
739
+ return S(I, t), w(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,14 +1245,14 @@ 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
- className: w(e, c, g, {
1255
+ className: j(e, c, g, {
1256
1256
  "no-text": !f,
1257
1257
  disabled: m,
1258
1258
  button: s
@@ -1262,18 +1262,18 @@ 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));
1272
- return F.createElement(r, { className: w("button-wrapper", t), ...n, children: s });
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
+ return F.createElement(r, { className: j("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
- return /* @__PURE__ */ a.jsx("hr", { className: w(e, { "has-max-width": t }), style: n });
1276
+ return /* @__PURE__ */ a.jsx("hr", { className: j(e, { "has-max-width": t }), style: n });
1277
1277
  }, gt = ({
1278
1278
  href: e,
1279
1279
  children: t,
@@ -1290,7 +1290,7 @@ const Te = ({ className: e = "", maxWidth: t = !1 }) => {
1290
1290
  "a",
1291
1291
  {
1292
1292
  href: e,
1293
- className: w("gtm-trackable", r),
1293
+ className: j("gtm-trackable", r),
1294
1294
  ...m,
1295
1295
  children: t
1296
1296
  }
@@ -1407,10 +1407,10 @@ const Te = ({ className: e = "", maxWidth: t = !1 }) => {
1407
1407
  }) => {
1408
1408
  const { range: r, sizes: s } = e ? xn[e] : xn.fallback;
1409
1409
  return { range: t && t.length > 0 ? t : r, sizes: n || s };
1410
- }, jr = ({ format: e, height: t, query: n, width: r }) => {
1410
+ }, wr = ({ format: e, height: t, query: n, width: r }) => {
1411
1411
  let s = `w=${r}&h=${t}`;
1412
1412
  return s = e ? `${s}&fm=${e}` : s, s = n ? `${s}&${n}` : s, s;
1413
- }, St = ({ format: e, range: t, url: n, query: r }) => t.map(({ height: s, width: i }) => `${n}?${jr({
1413
+ }, St = ({ format: e, range: t, url: n, query: r }) => t.map(({ height: s, width: i }) => `${n}?${wr({
1414
1414
  format: e,
1415
1415
  height: s,
1416
1416
  query: r,
@@ -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
  }
@@ -1465,8 +1465,8 @@ const Wn = ({ image: e, className: t, testId: n }) => {
1465
1465
  ] });
1466
1466
  };
1467
1467
  let Ie = !1;
1468
- const wr = ({ isOpen: e = !1, isLoading: t = !1, children: n }) => {
1469
- const r = A(), s = ne(null), [i, o] = D("hidden");
1468
+ const jr = ({ isOpen: e = !1, isLoading: t = !1, children: n }) => {
1469
+ const r = A(), s = ae(null), [i, o] = R("hidden");
1470
1470
  G(() => {
1471
1471
  const m = s.current;
1472
1472
  if (m)
@@ -1483,9 +1483,9 @@ const wr = ({ isOpen: e = !1, isLoading: t = !1, children: n }) => {
1483
1483
  e ? o("opening") : (o("closing"), m = "hidden"), Ie = setTimeout(() => {
1484
1484
  o(m);
1485
1485
  }, 300);
1486
- }, [e]), /* @__PURE__ */ a.jsx("aside", { ref: s, className: w("tooltip text-medium", i, { loading: t }), hidden: i === "hidden", children: t ? /* @__PURE__ */ a.jsx("p", { children: r.formatMessage({ id: "tooltip_loading" }) }) : typeof n == "string" ? /* @__PURE__ */ a.jsx("p", { children: n }) : n });
1486
+ }, [e]), /* @__PURE__ */ a.jsx("aside", { ref: s, className: j("tooltip text-medium", i, { loading: t }), hidden: i === "hidden", children: t ? /* @__PURE__ */ a.jsx("p", { children: r.formatMessage({ id: "tooltip_loading" }) }) : typeof n == "string" ? /* @__PURE__ */ a.jsx("p", { children: n }) : n });
1487
1487
  };
1488
- const _t = ({ children: e, className: t = "", ...n }) => /* @__PURE__ */ a.jsx("section", { className: w("full-width-section", t), ...n, children: e });
1488
+ const _t = ({ children: e, className: t = "", ...n }) => /* @__PURE__ */ a.jsx("section", { className: j("full-width-section", t), ...n, children: e });
1489
1489
  const $i = ({ text: e, buttons: t, className: n = "" }) => {
1490
1490
  const r = [];
1491
1491
  return t.forEach((s) => {
@@ -1499,7 +1499,7 @@ const $i = ({ text: e, buttons: t, className: n = "" }) => {
1499
1499
  target: "_blank",
1500
1500
  children: s.text
1501
1501
  });
1502
- }), /* @__PURE__ */ a.jsx(_t, { className: w("download-section", n), children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1502
+ }), /* @__PURE__ */ a.jsx(_t, { className: j("download-section", n), children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1503
1503
  F.createElement(typeof e == "string" ? "h2" : e.element, { className: "text" }, typeof e == "string" ? e : e.text),
1504
1504
  /* @__PURE__ */ a.jsx(ht, { buttons: r })
1505
1505
  ] }) });
@@ -1512,12 +1512,12 @@ const Ei = ({ title: e = !1, logos: t = [], className: n = "" }) => {
1512
1512
  element: typeof e == "object" ? e.element : "h2",
1513
1513
  text: typeof e == "string" ? e : typeof e == "object" ? e.text : ""
1514
1514
  };
1515
- return /* @__PURE__ */ a.jsxs("div", { className: w("logos", n), children: [
1515
+ return /* @__PURE__ */ a.jsxs("div", { className: j("logos", n), children: [
1516
1516
  e && F.createElement(s.element, { className: "title" }, s.text),
1517
1517
  /* @__PURE__ */ a.jsx(
1518
1518
  "ul",
1519
1519
  {
1520
- className: w({ "two-col": r === 2 || r === 4, "three-col": r === 5 || r <= 10 && r % 3 === 0 }),
1520
+ className: j({ "two-col": r === 2 || r === 4, "three-col": r === 5 || r <= 10 && r % 3 === 0 }),
1521
1521
  children: t.map(
1522
1522
  ({ logo: i, nameOfBusiness: o, link: c = !1, description: m = !1 }, l) => {
1523
1523
  if (!i || !i.url)
@@ -1607,7 +1607,7 @@ const Tr = [
1607
1607
  }), /* @__PURE__ */ a.jsx(
1608
1608
  _t,
1609
1609
  {
1610
- className: w("banner-section", r, s, e, {
1610
+ className: j("banner-section", r, s, e, {
1611
1611
  "has-image": n,
1612
1612
  "has-extra-spacing": s === "normal" && f.eyebrow && f.title
1613
1613
  }),
@@ -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" },
@@ -1647,10 +1647,10 @@ const Si = ({
1647
1647
  title: n,
1648
1648
  text: r,
1649
1649
  gtmContext: s
1650
- }) => !n && !r ? null : /* @__PURE__ */ a.jsxs("aside", { className: w("marketing-block", e), children: [
1650
+ }) => !n && !r ? null : /* @__PURE__ */ a.jsxs("aside", { className: j("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
+ }, we = Gt({ isLoading: !0 });
1704
1704
  function Jt() {
1705
- return ge(ke);
1705
+ return _e(we);
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(we.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);
@@ -1721,12 +1721,12 @@ const Pr = ({ children: e, user: t }) => /* @__PURE__ */ a.jsx(ke.Provider, { va
1721
1721
  }, Ni = "200,000+";
1722
1722
  const Vn = ({ label: e = !1, className: t = "", children: n }) => {
1723
1723
  const r = A();
1724
- return /* @__PURE__ */ a.jsxs("details", { className: w("collapsible-section", t), children: [
1724
+ return /* @__PURE__ */ a.jsxs("details", { className: j("collapsible-section", t), children: [
1725
1725
  /* @__PURE__ */ a.jsx("summary", { children: e || r.formatMessage({ id: "collapsibleSection_summary" }) }),
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 = "",
@@ -1737,7 +1737,7 @@ const we = ({
1737
1737
  return /* @__PURE__ */ a.jsx(
1738
1738
  "div",
1739
1739
  {
1740
- className: w("highlighted-text-box", e, n, {
1740
+ className: j("highlighted-text-box", e, n, {
1741
1741
  "has-icon": t
1742
1742
  }),
1743
1743
  style: i,
@@ -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
- className: w("empty-state-box", e, r),
1771
+ className: j("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",
@@ -1786,7 +1786,7 @@ const bt = ({
1786
1786
  const Wt = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx("p", { ...t, children: e }), Yn = { q: Wt, blockquote: Wt };
1787
1787
  for (let e = 1; e <= 6; e++)
1788
1788
  Yn[`h${e}`] = { component: Wt, props: { className: "title" } };
1789
- const Ar = ({ type: e = "default", className: t = "", heading: n = !1, children: r }) => /* @__PURE__ */ a.jsxs("div", { className: w("helper-text-box text-small", e, t), children: [
1789
+ const Ar = ({ type: e = "default", className: t = "", heading: n = !1, children: r }) => /* @__PURE__ */ a.jsxs("div", { className: j("helper-text-box text-small", e, t), children: [
1790
1790
  n && /* @__PURE__ */ a.jsx("p", { className: "title", children: n }),
1791
1791
  typeof r == "string" ? /* @__PURE__ */ a.jsx(
1792
1792
  pt,
@@ -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,18 +1824,18 @@ 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: [
1828
- /* @__PURE__ */ a.jsxs("div", { ref: o, className: w("content", l), children: [
1827
+ return /* @__PURE__ */ a.jsxs(Te, { variant: "subtle", className: j("hide-show-text-box", e), children: [
1828
+ /* @__PURE__ */ a.jsxs("div", { ref: o, className: j("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 },
1837
1837
  styling: { muted: !0 },
1838
- className: w({ "rotate-180": p }),
1838
+ className: j({ "rotate-180": p }),
1839
1839
  onClick: () => {
1840
1840
  f(p ? "ready-to-close" : "opening");
1841
1841
  },
@@ -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,9 +1914,9 @@ 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
- const jn = ({ className: e = "", options: t = {}, children: n }) => {
1919
+ const wn = ({ className: e = "", options: t = {}, children: n }) => {
1920
1920
  n = n.replace(/^<br\/?>/, "");
1921
1921
  const r = {
1922
1922
  wrapper: F.Fragment,
@@ -1926,17 +1926,17 @@ 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
  }
1938
1938
  };
1939
- return /* @__PURE__ */ a.jsx("div", { className: w("markdown-text", e), children: /* @__PURE__ */ a.jsx(pt, { options: { ...r, ...t }, children: n }) });
1939
+ return /* @__PURE__ */ a.jsx("div", { className: j("markdown-text", e), children: /* @__PURE__ */ a.jsx(pt, { options: { ...r, ...t }, children: n }) });
1940
1940
  };
1941
1941
  const qr = ({
1942
1942
  maxWidth: e = !1,
@@ -1946,8 +1946,8 @@ const qr = ({
1946
1946
  className: s = ""
1947
1947
  }) => {
1948
1948
  const i = e ? { "--max-width": `${e / 16}rem` } : {};
1949
- return /* @__PURE__ */ a.jsxs("section", { className: w("page-heading", s), children: [
1950
- /* @__PURE__ */ a.jsxs("div", { className: w("content", { "has-max-width": e }), style: i, children: [
1949
+ return /* @__PURE__ */ a.jsxs("section", { className: j("page-heading", s), children: [
1950
+ /* @__PURE__ */ a.jsxs("div", { className: j("content", { "has-max-width": e }), style: i, children: [
1951
1951
  t && t.text && F.createElement(t.element || "h1", { className: "title" }, t.text),
1952
1952
  n && n.text && F.createElement(
1953
1953
  n.element || "h2",
@@ -1964,11 +1964,11 @@ const st = ({
1964
1964
  className: n = "",
1965
1965
  children: r,
1966
1966
  ...s
1967
- }) => /* @__PURE__ */ a.jsx("span", { className: w("pill", e, t, n), ...s, children: r });
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);
1967
+ }) => /* @__PURE__ */ a.jsx("span", { className: j("pill", e, t, n), ...s, children: r });
1968
+ const Vt = ({ element: e = "p", children: t = null, className: n = "", ...r }) => F.createElement(e, { ...r, className: j("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: j(`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,9 +1983,9 @@ 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
- className: w("loading-block", n, { "has-icon": s && t[s].icon }),
1988
+ className: j("loading-block", n, { "has-icon": s && t[s].icon }),
1989
1989
  variant: "subtle",
1990
1990
  style: o,
1991
1991
  children: [
@@ -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: j("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: j("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) => {
@@ -2025,16 +2025,16 @@ const Yt = {
2025
2025
  if (r <= t * (s + 1))
2026
2026
  return Ge[s];
2027
2027
  };
2028
- const wn = 256, ze = ({
2028
+ const jn = 256, ze = ({
2029
2029
  className: e = "",
2030
2030
  src: t = "",
2031
2031
  name: n,
2032
2032
  alt: r,
2033
- width: s = wn,
2034
- height: i = wn,
2033
+ width: s = jn,
2034
+ height: i = jn,
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)
@@ -2049,7 +2049,7 @@ const wn = 256, ze = ({
2049
2049
  return t && t !== "" && !c && (t.includes("http") || t.includes("//")) && (f = !0), /* @__PURE__ */ a.jsx(
2050
2050
  "figure",
2051
2051
  {
2052
- className: w("profile-picture", e, { error: c }),
2052
+ className: j("profile-picture", e, { error: c }),
2053
2053
  ...o,
2054
2054
  children: f ? /* @__PURE__ */ a.jsx(
2055
2055
  "img",
@@ -2101,7 +2101,7 @@ const Xt = ({
2101
2101
  c.name || (c.name = o.formatMessage({ id: `member_${typeof t == "string" ? t : "community"}` }));
2102
2102
  const { name: m, url: l, image: f } = c, d = Vr(c), p = n && n.createdAt ? zt(n.createdAt) : !1, h = n && n.createdAt ? Un(n.createdAt) : "";
2103
2103
  return F.createElement(e, {
2104
- className: w("member text-medium", i),
2104
+ className: j("member text-medium", i),
2105
2105
  children: /* @__PURE__ */ a.jsxs(
2106
2106
  gt,
2107
2107
  {
@@ -2145,37 +2145,37 @@ const Tn = {
2145
2145
  const f = A();
2146
2146
  return !n || n.length === 0 ? null : F.createElement(e, {
2147
2147
  ...l,
2148
- className: w("contributors", m, s, { "has-gap": i }),
2148
+ className: j("contributors", m, s, { "has-gap": i }),
2149
2149
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
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: j({ "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";
2177
2177
  }
2178
- return h ? /* @__PURE__ */ a.jsx("li", { className: w("contributor", g), children: h }, p) : null;
2178
+ return h ? /* @__PURE__ */ a.jsx("li", { className: j("contributor", g), children: h }, p) : null;
2179
2179
  }) }),
2180
2180
  r && /* @__PURE__ */ a.jsx("span", { className: "label", children: typeof r == "string" ? r : n.length === 1 ? typeof n[0] == "string" ? f.formatMessage({ id: `member_${n[0]}` }) : Ne(n[0].name || "", 20) : null })
2181
2181
  ] })
@@ -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(we), 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,38 +2406,38 @@ 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 = {
2418
- href: j,
2415
+ } = it[g], v = zn(`card_label_${g}`) ? o.formatMessage({ id: `card_label_${g}` }) : !1, w = d.slug ? `${y}${d.slug}` : !1, S = { ...Qr, ...b };
2416
+ let M = { className: "card" };
2417
+ w && (M = {
2418
+ href: w,
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
  {
2428
- className: w("card-wrapper text-medium", k, i, {
2429
- "has-link": j,
2430
- "no-link": !j,
2428
+ className: j("card-wrapper text-medium", k, i, {
2429
+ "has-link": w,
2430
+ "no-link": !w,
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
- j ? "a" : "div",
2438
- C,
2437
+ w ? "a" : "div",
2438
+ M,
2439
2439
  /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2440
- (d.customLabel || v) && /* @__PURE__ */ a.jsx("small", { className: w("card-label text-small", k), children: d.customLabel || v }),
2440
+ (d.customLabel || v) && /* @__PURE__ */ a.jsx("small", { className: j("card-label text-small", k), children: d.customLabel || v }),
2441
2441
  d.startDate && !d.isOngoingEvent && /* @__PURE__ */ a.jsx(
2442
2442
  st,
2443
2443
  {
@@ -2470,23 +2470,23 @@ 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
- /* @__PURE__ */ a.jsx(Gr, { data: d, cta: r, link: j || "", gtmContext: s })
2483
+ /* @__PURE__ */ a.jsx(Gr, { data: d, cta: r, link: w || "", gtmContext: s })
2484
2484
  ] })
2485
2485
  )
2486
2486
  }
2487
2487
  );
2488
2488
  };
2489
- const Jr = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__ */ a.jsx("ul", { className: w("card-block", n), children: e.map((s, i) => {
2489
+ const Jr = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__ */ a.jsx("ul", { className: j("card-block", n), children: e.map((s, i) => {
2490
2490
  const o = s.slug ? `${s.slug}-${t[i]}` : `${t[i]}-${i}`;
2491
2491
  return /* @__PURE__ */ a.jsx(
2492
2492
  ea,
@@ -2506,7 +2506,7 @@ const Jr = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__
2506
2506
  return null;
2507
2507
  const { text: r, element: s = "h2", variant: i = "default", size: o = "medium", link: c } = t;
2508
2508
  return F.createElement(s, {
2509
- className: w("title", i, o, {
2509
+ className: j("title", i, o, {
2510
2510
  "highlighted-title": i === "highlighted"
2511
2511
  }),
2512
2512
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
@@ -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 w = ($ = "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;
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`,
2582
+ const C = $.touches[0].clientX, E = Ke - C;
2583
+ E > 5 ? w("next") : E < -5 && w("previous"), Ke = null;
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
@@ -2591,7 +2591,7 @@ const ts = ({
2591
2591
  "section",
2592
2592
  {
2593
2593
  ref: _,
2594
- className: w("carousel-wrapper", i),
2594
+ className: j("carousel-wrapper", i),
2595
2595
  "data-testid": "carousel",
2596
2596
  children: [
2597
2597
  /* @__PURE__ */ a.jsx(es, { id: e, title: s }),
@@ -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(), w("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
- className: w("page-indicator", {
2649
- selected: M === g
2648
+ className: j("page-indicator", {
2649
+ selected: C === g
2650
2650
  }),
2651
2651
  onClick: (E) => {
2652
- E.preventDefault(), E.stopPropagation(), j(M);
2652
+ E.preventDefault(), E.stopPropagation(), w(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(), w("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(we), 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",
@@ -2724,7 +2724,7 @@ const Pt = "joinCommunityButton", ta = ({ isMember: e = !1, isShort: t = !1, fun
2724
2724
  onClick: async (h) => {
2725
2725
  o && (h.currentTarget.blur(), c ? (f("leaving"), typeof r == "function" && await r()) : (f("joining"), typeof n == "function" && await n()), m(!c));
2726
2726
  },
2727
- className: w("join-community-button", l, { active: l === "joining" }),
2727
+ className: j("join-community-button", l, { active: l === "joining" }),
2728
2728
  disabled: !o,
2729
2729
  ...d,
2730
2730
  children: /* @__PURE__ */ a.jsx("span", { className: "text", ...p, children: s.formatMessage({ id: `${Pt}${["joining", "leaving"].includes(l) ? `_${l}` : c ? "_member" : t ? "_short" : ""}` }) })
@@ -2739,8 +2739,8 @@ const At = "communityDetails_", Di = ({
2739
2739
  functions: { invite: i, ...o }
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
- return /* @__PURE__ */ a.jsxs("div", { className: w("community-details", e), children: [
2743
- /* @__PURE__ */ a.jsx(Te, {}),
2742
+ return /* @__PURE__ */ a.jsxs("div", { className: j("community-details", e), children: [
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" }) }),
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" }) }),
2788
+ /* @__PURE__ */ a.jsx(ie, { element: "p", children: r.formatMessage({ id: "breadcrumbs_label" }) }),
2789
+ /* @__PURE__ */ a.jsx("ul", { className: j("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(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,19 +2800,19 @@ 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
  };
2807
- return /* @__PURE__ */ a.jsx("ul", { className: w("filters", s), children: o.map(({ id: f, text: d, disabled: p = !1, callback: h = () => {
2807
+ return /* @__PURE__ */ a.jsx("ul", { className: j("filters", s), children: o.map(({ id: f, text: d, disabled: p = !1, callback: h = () => {
2808
2808
  } }) => {
2809
2809
  let g = {};
2810
2810
  return p && (g = { disabled: !0, "aria-label": i.formatMessage({ id: "filters_disabled" }, { name: d }) }), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
2811
2811
  "button",
2812
2812
  {
2813
- className: w(f, { selected: c.includes(f) }),
2814
- onClick: (b) => {
2815
- b.preventDefault(), b.stopPropagation(), l(f, h);
2813
+ className: j(f, { selected: c.includes(f) }),
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
- return /* @__PURE__ */ a.jsxs("div", { className: w("language-switcher text-small", o, m), children: [
2849
+ return /* @__PURE__ */ a.jsxs("div", { className: j("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,15 +2890,15 @@ 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) {
2897
2897
  f instanceof Error ? c(f.message) : c("Unknown error");
2898
2898
  }
2899
2899
  };
2900
- return /* @__PURE__ */ a.jsx("footer", { className: w("load-more", s), children: !o && e ? /* @__PURE__ */ a.jsx(
2901
- B,
2900
+ return /* @__PURE__ */ a.jsx("footer", { className: j("load-more", s), children: !o && e ? /* @__PURE__ */ a.jsx(
2901
+ H,
2902
2902
  {
2903
2903
  variant: "secondary",
2904
2904
  icon: n,
@@ -2911,20 +2911,20 @@ 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: j("logo", e, t, n), ...r, children: /* @__PURE__ */ a.jsx(ie, { children: /* @__PURE__ */ a.jsx(je, { 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), () => {
2921
2921
  document.removeEventListener("click", m, !0);
2922
2922
  })), F.createElement(e, {
2923
2923
  ref: i,
2924
- className: w("more-menu text-medium", r),
2924
+ className: j("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,12 +2983,12 @@ 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(we), 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",
2990
2990
  {
2991
- className: w(s, { active: rs(i, e) }),
2991
+ className: j(s, { active: rs(i, e) }),
2992
2992
  children: /* @__PURE__ */ a.jsx(
2993
2993
  "a",
2994
2994
  {
@@ -3075,14 +3075,14 @@ const cs = "shareLinks_", Oi = ({
3075
3075
  className: o = ""
3076
3076
  }) => {
3077
3077
  const c = A(), m = os({ title: e, link: t, referrer: n });
3078
- return /* @__PURE__ */ a.jsxs("aside", { className: w("share-links", s, i, o), children: [
3078
+ return /* @__PURE__ */ a.jsxs("aside", { className: j("share-links", s, i, o), children: [
3079
3079
  /* @__PURE__ */ a.jsx("p", { className: "text-small", children: c.formatMessage({ id: "shareLinks_label" }) }),
3080
3080
  /* @__PURE__ */ a.jsx("ul", { children: m.map(({ key: l, icon: f, url: d, shouldRender: p = !0, onClick: h }) => {
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(
@@ -3142,15 +3142,15 @@ const Bi = ({ tabs: e, className: t = "" }) => {
3142
3142
  {
3143
3143
  href: p || `#${l}`,
3144
3144
  id: `tab-${l}`,
3145
- className: w({ selected: g }),
3145
+ className: j({ 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}`)
3152
3152
  );
3153
- }), /* @__PURE__ */ a.jsxs("div", { className: w("tabs-wrapper", t), children: [
3153
+ }), /* @__PURE__ */ a.jsxs("div", { className: j("tabs-wrapper", t), children: [
3154
3154
  /* @__PURE__ */ a.jsx("ul", { className: "tabs", role: "tablist", children: o }),
3155
3155
  /* @__PURE__ */ a.jsx("div", { className: "tab-content", children: c })
3156
3156
  ] });
@@ -3166,14 +3166,14 @@ const ls = {
3166
3166
  }) => {
3167
3167
  const s = Ue(!0);
3168
3168
  let i = r;
3169
- return F.Children.count(r) === 1 && (i = F.Children.toArray(r)[0], i.props && (i = i.props.children)), /* @__PURE__ */ a.jsx("section", { className: w("columns", `layout-${e}`, n), children: F.Children.map(i, (o, c) => t !== !1 && c === t && s && s < ls[e] ? null : o) });
3169
+ return F.Children.count(r) === 1 && (i = F.Children.toArray(r)[0], i.props && (i = i.props.children)), /* @__PURE__ */ a.jsx("section", { className: j("columns", `layout-${e}`, n), children: F.Children.map(i, (o, c) => t !== !1 && c === t && s && s < ls[e] ? null : o) });
3170
3170
  }, Zi = ({ activeLink: e, ...t }) => /* @__PURE__ */ a.jsx(_t, { children: /* @__PURE__ */ a.jsx(ds, { layout: "1-3", children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
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: [
3316
+ return "text" in ke[e] && (n = ke[e].text), /* @__PURE__ */ a.jsxs(qe, { children: [
3317
3317
  /* @__PURE__ */ a.jsx("p", { className: "pre-title", children: /* @__PURE__ */ a.jsx(je, { 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
  {
@@ -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
  {
@@ -3385,10 +3385,10 @@ const Me = "footer_", ot = "SiteFooter", En = ({ group: e }) => {
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
@@ -3512,15 +3512,15 @@ const et = "passwordRules_", ra = "isMoreThanEightCharacters", sa = "includesNum
3512
3512
  [ia]: "lowercaseUppercase"
3513
3513
  }, fs = ({ matchingRules: e = { isMoreThanEightCharacters: !1, includesNumberAndSymbol: !1, includesLowerAndUppercase: !1 }, className: t = "" }) => {
3514
3514
  const n = A();
3515
- return /* @__PURE__ */ a.jsxs("aside", { className: w("password-rules", t), children: [
3515
+ return /* @__PURE__ */ a.jsxs("aside", { className: j("password-rules", t), children: [
3516
3516
  /* @__PURE__ */ a.jsx("small", { children: n.formatMessage({ id: `${et}intro` }) }),
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: [
3517
+ /* @__PURE__ */ a.jsx("ul", { children: [ra, sa, ia].map((r) => /* @__PURE__ */ a.jsxs("li", { className: j({ matches: e[r] }), 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,40 +3537,40 @@ 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 {
3565
3565
  l((_) => ({ ..._, disabled: !1 }));
3566
3566
  }
3567
3567
  };
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;
3572
- return /* @__PURE__ */ a.jsx("li", { className: w({ selected: p && _ <= p }), children: /* @__PURE__ */ a.jsx(
3573
- B,
3568
+ return /* @__PURE__ */ a.jsxs("div", { className: j("rating", i), children: [
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
+ return /* @__PURE__ */ a.jsx("li", { className: j({ selected: p && _ <= p }), children: /* @__PURE__ */ a.jsx(
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]);
@@ -3607,11 +3607,11 @@ const ps = ({
3607
3607
  "form",
3608
3608
  {
3609
3609
  onSubmit: f,
3610
- className: w("search-form gtm-trackable", t),
3610
+ className: j("search-form gtm-trackable", t),
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) => {
3658
- j.preventDefault();
3657
+ const [f, d] = R([]), [p, h] = R(!0), [g, y] = R(l), { formatMessage: k } = A(), b = async (w) => {
3658
+ w.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
- }, _ = (j) => {
3671
- j.preventDefault(), b(
3670
+ }, _ = (w) => {
3671
+ w.preventDefault(), y(
3672
3672
  "NOT_SUBMITTED"
3673
3673
  /* NOT_SUBMITTED */
3674
3674
  ), h(!0), d([]);
3675
- }, v = (j) => {
3676
- j.preventDefault(), o(), b(
3675
+ }, v = (w) => {
3676
+ w.preventDefault(), o(), y(
3677
3677
  "CLOSED"
3678
3678
  /* CLOSED */
3679
3679
  );
@@ -3683,17 +3683,17 @@ 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,
3696
- className: w("invite-form gtm-trackable"),
3695
+ onSubmit: b,
3696
+ className: j("invite-form gtm-trackable"),
3697
3697
  children: [
3698
3698
  /* @__PURE__ */ a.jsxs("fieldset", { className: "content", children: [
3699
3699
  /* @__PURE__ */ a.jsx("h2", { className: "title", style: { color: r }, children: e }),
@@ -3705,35 +3705,35 @@ const hs = ({
3705
3705
  inputClassName: "email-input input",
3706
3706
  placeholder: k({ id: "inviteForm_email_placeholder" }),
3707
3707
  emails: f,
3708
- onChange: (j) => {
3709
- d(j), h(!j.length);
3708
+ onChange: (w) => {
3709
+ d(w), h(!w.length);
3710
3710
  },
3711
3711
  autoFocus: !1,
3712
- getLabel: (j, $, C) => /* @__PURE__ */ a.jsxs("div", { className: "email text-medium", children: [
3713
- /* @__PURE__ */ a.jsx("div", { "data-tag-item": !0, children: j }),
3712
+ getLabel: (w, S, M) => /* @__PURE__ */ a.jsxs("div", { className: "email text-medium", children: [
3713
+ /* @__PURE__ */ a.jsx("div", { "data-tag-item": !0, children: w }),
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
  }
@@ -3927,8 +3927,8 @@ const hs = ({
3927
3927
  if (c.href) {
3928
3928
  let _ = c.gtmType || `${e}-click`;
3929
3929
  if (_.includes(".")) {
3930
- const v = _.split("."), j = v[v.length - 2];
3931
- _ = `${j === "topics" ? `${j}-` : ""}${v[v.length - 1]}`;
3930
+ const v = _.split("."), w = v[v.length - 2];
3931
+ _ = `${w === "topics" ? `${w}-` : ""}${v[v.length - 1]}`;
3932
3932
  }
3933
3933
  p = {
3934
3934
  href: c.href,
@@ -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: (w) => z.events.onClick(w, { 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
- onKeyPress: (j) => {
3961
- j.key === "Enter" && U.events.onClick(j, { id: _, callback: s, isOpen: r[_] });
3960
+ onKeyPress: (w) => {
3961
+ w.key === "Enter" && z.events.onClick(w, { 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: j({ [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 = {
@@ -3982,16 +3982,16 @@ const hs = ({
3982
3982
  callback: s,
3983
3983
  doTrack: m ? l : null
3984
3984
  };
3985
- return c[_].order ? /* @__PURE__ */ a.jsxs("li", { className: w({ [c[_].className]: c[_].className }), children: [
3985
+ return c[_].order ? /* @__PURE__ */ a.jsxs("li", { className: j({ [c[_].className]: c[_].className }), children: [
3986
3986
  o.formatMessage({ id: `${d}_${_}` }),
3987
- /* @__PURE__ */ a.jsx("ul", { children: c[_].order.map((j) => /* @__PURE__ */ a.jsx(lt, { id: `${e}.${_}.${j}`, ...v }, j)) })
3987
+ /* @__PURE__ */ a.jsx("ul", { children: c[_].order.map((w) => /* @__PURE__ */ a.jsx(lt, { id: `${e}.${_}.${w}`, ...v }, w)) })
3988
3988
  ] }, _) : /* @__PURE__ */ a.jsx(lt, { id: `${e}.${_}`, ...v }, _);
3989
3989
  }) })
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(we), 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,
@@ -4036,14 +4036,14 @@ const gs = { height: 67, height_desktop: 83 }, oa = ({ showNavigation: e = !0 })
4036
4036
  "nav",
4037
4037
  {
4038
4038
  id: "header",
4039
- className: w({
4039
+ className: j({
4040
4040
  "logged-in": s,
4041
4041
  "logged-out": !s,
4042
4042
  visible: m
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(
@@ -4158,7 +4158,7 @@ const gs = { height: 67, height_desktop: 83 }, oa = ({ showNavigation: e = !0 })
4158
4158
  /* @__PURE__ */ a.jsx(
4159
4159
  "div",
4160
4160
  {
4161
- className: w("overlay", {
4161
+ className: j("overlay", {
4162
4162
  open: l.navigation || l.account || !i.search && l.search
4163
4163
  })
4164
4164
  }
@@ -4168,7 +4168,7 @@ const gs = { height: 67, height_desktop: 83 }, oa = ({ showNavigation: e = !0 })
4168
4168
  const ca = ({ element: e = "section", children: t, className: n, ...r }) => F.createElement(
4169
4169
  e,
4170
4170
  {
4171
- className: w("modal", n),
4171
+ className: j("modal", n),
4172
4172
  children: typeof t == "string" ? /* @__PURE__ */ a.jsx("p", { children: t }) : t,
4173
4173
  ...r
4174
4174
  }
@@ -4188,30 +4188,30 @@ 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
- return /* @__PURE__ */ a.jsx("div", { className: w("overlay", { open: h }), children: /* @__PURE__ */ a.jsx(
4198
+ return /* @__PURE__ */ a.jsx("div", { className: j("overlay", { open: h }), children: /* @__PURE__ */ a.jsx(
4199
4199
  ca,
4200
4200
  {
4201
4201
  id: e,
4202
- className: w("overlay-modal", f, { "has-max-width": r }),
4202
+ className: j("overlay-modal", f, { "has-max-width": r }),
4203
4203
  hidden: !h,
4204
4204
  style: k,
4205
4205
  children: t && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
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 })
@@ -4254,7 +4254,7 @@ const zi = ({
4254
4254
  showDivider: !1,
4255
4255
  showIcon: o,
4256
4256
  functions: { onClose: c },
4257
- className: w("invite-modal", e, { success: !!n }),
4257
+ className: j("invite-modal", e, { success: !!n }),
4258
4258
  children: /* @__PURE__ */ a.jsx(
4259
4259
  hs,
4260
4260
  {
@@ -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: j(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
@@ -4368,7 +4368,7 @@ const Wi = ({
4368
4368
  return;
4369
4369
  const f = vs.getTagDetails(l);
4370
4370
  f && m.push(f);
4371
- }), m.length < 1 ? null : /* @__PURE__ */ a.jsx("ul", { className: w("tags text-small", t, s, { "one-line": n }), children: m.map((l) => {
4371
+ }), m.length < 1 ? null : /* @__PURE__ */ a.jsx("ul", { className: j("tags text-small", t, s, { "one-line": n }), children: m.map((l) => {
4372
4372
  const f = c.formatMessage({ id: l.text });
4373
4373
  return /* @__PURE__ */ a.jsx("li", { children: l.href && r ? /* @__PURE__ */ a.jsx(
4374
4374
  "a",
@@ -4392,7 +4392,7 @@ const Vi = ({
4392
4392
  className: o = ""
4393
4393
  }) => {
4394
4394
  const c = A();
4395
- return e.length === 0 ? null : /* @__PURE__ */ a.jsxs("div", { className: w("members-list", o), children: [
4395
+ return e.length === 0 ? null : /* @__PURE__ */ a.jsxs("div", { className: j("members-list", o), children: [
4396
4396
  /* @__PURE__ */ a.jsxs("h1", { children: [
4397
4397
  c.formatMessage({ id: "membersList" }),
4398
4398
  /* @__PURE__ */ a.jsx("span", { className: "count", children: t })
@@ -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(we), [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 w = 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,36 +4543,36 @@ 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
+ w(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",
4568
4568
  {
4569
4569
  id: v,
4570
- className: w("discussion-card discussion-form", {
4570
+ className: j("discussion-card discussion-form", {
4571
4571
  "no-styling": n.isInWrapper && n.isEditing
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,12 +4656,12 @@ 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
  });
4663
4663
  return /* @__PURE__ */ a.jsx(vt.Provider, { value: { ...t, updateConversation: n }, children: e });
4664
- }, js = ({
4664
+ }, ws = ({
4665
4665
  question: e,
4666
4666
  answer: t,
4667
4667
  reply: n
@@ -4669,7 +4669,7 @@ const le = "discussion_form_", en = ({
4669
4669
  ...e && { questionSlug: e },
4670
4670
  ...t && { answerSlug: t },
4671
4671
  ...n && { replySlug: n }
4672
- }), ws = (e, t = 10) => !e || e.length === 0 ? [] : e.slice(0, t);
4672
+ }), js = (e, t = 10) => !e || e.length === 0 ? [] : e.slice(0, t);
4673
4673
  let Ze = !1;
4674
4674
  const Bt = () => {
4675
4675
  Ze !== !1 && (clearTimeout(Ze), Ze = !1);
@@ -4689,53 +4689,53 @@ 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(() => js(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;
4697
- Ze = setTimeout(j, 350);
4698
- }, j = async () => {
4697
+ Ze = setTimeout(w, 350);
4698
+ }, w = 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 = ws(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(
4715
4715
  e,
4716
4716
  {
4717
- className: w("likes-wrapper text-medium action-button", { "show-spinner": g, "is-liked": p, disabled: !o }),
4717
+ className: j("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",
4737
4737
  icon: { icon: p ? "heart" : "heart_empty", animate: "bounce" },
4738
- className: w({ "do-animation": p && !s }),
4738
+ className: j({ "do-animation": p && !s }),
4739
4739
  screenreaderText: o ? l.formatMessage({
4740
4740
  id: `discussion_likes_${p ? "unlike" : "like"}`
4741
4741
  }, { action: l.formatMessage({ id: `discussion_action_${i.type}` }) }) : !1,
@@ -4747,18 +4747,18 @@ const Bt = () => {
4747
4747
  "data-gtm-event-type": `like-${i.type}-click`
4748
4748
  }
4749
4749
  ),
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
- 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(
4750
+ /* @__PURE__ */ a.jsx("span", { className: j("number-of-likes", { "no-likes": f === 0 }), "data-testid": "number-of-likes", children: l.formatMessage({ id: `discussion_likes${r ? "_short" : ""}` }, { number: f }) }),
4751
+ n && /* @__PURE__ */ a.jsx(jr, { isOpen: k, isLoading: n.length === 0, children: n.length && /* @__PURE__ */ a.jsxs("ul", { children: [
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(we), v = _e(vt), [w, 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
- $({
4808
- ...j,
4807
+ S({
4808
+ ...w,
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(w.body, $s) : w.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
- if (!er(W, j.body)) {
4817
+ if (!er(W, w.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,53 +4853,53 @@ 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({ ...w, 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
- className: w("discussion-post", h),
4877
+ className: j("discussion-post", h),
4878
4878
  "data-testid": `discussion-${t.type}-thread`,
4879
4879
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
4880
4880
  /* @__PURE__ */ a.jsxs(
4881
4881
  "div",
4882
4882
  {
4883
- id: q || t.slug,
4884
- className: w("discussion-card", t.type, {
4885
- editing: j.isEditing,
4886
- "has-link": p.post && !j.isEditing
4883
+ id: N || t.slug,
4884
+ className: j("discussion-card", t.type, {
4885
+ editing: w.isEditing,
4886
+ "has-link": p.post && !w.isEditing
4887
4887
  }),
4888
4888
  onClick: (W) => {
4889
- !p.post || j.isEditing || (W.preventDefault(), W.stopPropagation(), window.location.href = p.post);
4889
+ !p.post || w.isEditing || (W.preventDefault(), W.stopPropagation(), window.location.href = p.post);
4890
4890
  },
4891
4891
  children: [
4892
- !j.isEditing && /* @__PURE__ */ a.jsx(
4892
+ !w.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: w.didEdit },
4897
+ className: typeof C != "string" && C.id === s ? "highlighted" : "",
4898
4898
  gtmContext: g,
4899
4899
  gtmType: "profile-click"
4900
4900
  }
4901
4901
  ),
4902
- j.isEditing ? /* @__PURE__ */ a.jsx(
4902
+ w.isEditing ? /* @__PURE__ */ a.jsx(
4903
4903
  en,
4904
4904
  {
4905
4905
  content: { type: t.type, slugs: t.slugs },
@@ -4907,14 +4907,14 @@ const ve = "discussion_", $s = 280, kt = ({
4907
4907
  meta: {
4908
4908
  isLoading: r,
4909
4909
  isInWrapper: !0,
4910
- isEditing: { text: j.body }
4910
+ isEditing: { text: w.body }
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({ ...w, isEditing: !1 });
4928
4928
  }
4929
4929
  },
4930
4930
  gtmContext: `${g}Form`
@@ -4936,10 +4936,10 @@ 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(wn, { options: { overrides: { a: Zr } }, children: Q })
4940
4940
  }
4941
4941
  ) : /* @__PURE__ */ a.jsx(
4942
- jn,
4942
+ wn,
4943
4943
  {
4944
4944
  options: {
4945
4945
  wrapper: t.type === "question" ? "h1" : F.Fragment,
@@ -4947,20 +4947,20 @@ 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
- !j.isEditing && /* @__PURE__ */ a.jsxs(
4953
+ !w.isEditing && /* @__PURE__ */ a.jsxs(
4954
4954
  "ul",
4955
4955
  {
4956
- className: w("actions text-medium", t.type),
4956
+ className: j("actions text-medium", t.type),
4957
4957
  "data-testid": `${t.type}-actions`,
4958
4958
  children: [
4959
4959
  /* @__PURE__ */ a.jsx(
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,39 +5029,39 @@ 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}`,
@@ -5071,7 +5071,7 @@ const ve = "discussion_", $s = 280, kt = ({
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",
@@ -5149,7 +5149,7 @@ const Es = ({ count: e = "", showRepliesButton: t = !0, children: n }) => {
5149
5149
  "ul",
5150
5150
  {
5151
5151
  ref: s,
5152
- className: w("thread", o),
5152
+ className: j("thread", o),
5153
5153
  hidden: !i.showThread,
5154
5154
  children: f
5155
5155
  }
@@ -5230,12 +5230,30 @@ function Mn({ activity: e, user: t }) {
5230
5230
  };
5231
5231
  }
5232
5232
  function dt({ activity: e, reaction: t }) {
5233
- const { latest_reactions: n, own_reactions: r, reaction_counts: s } = e;
5234
- n && t && (n.like = [...n.like || [], t]), r && t && (r.like = [...r.like || [], t]), s && (s.like = s.like + 1 || 1);
5233
+ var n, r, s;
5234
+ t ? (e.latest_reactions = {
5235
+ ...e.latest_reactions || {},
5236
+ like: [...((r = e.latest_reactions) == null ? void 0 : r.like) || [], t]
5237
+ }, e.own_reactions = {
5238
+ ...e.own_reactions || {},
5239
+ like: [...((s = e.own_reactions) == null ? void 0 : s.like) || [], t]
5240
+ }) : e.reaction_counts = {
5241
+ ...e.reaction_counts || {},
5242
+ like: (n = e.reaction_counts) != null && n.like ? e.reaction_counts.like + 1 : 1
5243
+ };
5235
5244
  }
5236
5245
  function fa({ activity: e, user: t }) {
5237
- const { latest_reactions: n, own_reactions: r, reaction_counts: s } = e;
5238
- s && (s.like = s.like - 1 || 0), n && (t != null && t.id) && (n.like = n.like.filter(({ user_id: i }) => i !== t.id)), r && (t != null && t.id) && (r.like = r.like.filter(({ user_id: i }) => i !== t.id));
5246
+ var n, r, s;
5247
+ e.reaction_counts = {
5248
+ ...e.reaction_counts || {},
5249
+ like: (n = e.reaction_counts) != null && n.like ? e.reaction_counts.like - 1 : 0
5250
+ }, t != null && t.id && (e.latest_reactions = {
5251
+ ...e.latest_reactions || {},
5252
+ like: (((r = e.latest_reactions) == null ? void 0 : r.like) || []).filter(({ user_id: i }) => i !== t.id)
5253
+ }, e.own_reactions = {
5254
+ ...e.own_reactions || {},
5255
+ like: (((s = e.own_reactions) == null ? void 0 : s.like) || []).filter(({ user_id: i }) => i !== t.id)
5256
+ });
5239
5257
  }
5240
5258
  function As({ activityId: e, replyId: t, content: n }) {
5241
5259
  return {
@@ -5258,12 +5276,30 @@ function Nn({ reply: e, user: t }) {
5258
5276
  };
5259
5277
  }
5260
5278
  function Pn({ reply: e, reaction: t }) {
5261
- const { latest_children: n, own_children: r, children_counts: s } = e;
5262
- n && t && (n.like = [...n.like || [], t]), r && t && (r.like = [...r.like || [], t]), s && (s.like = s.like + 1 || 1);
5279
+ var n, r, s;
5280
+ t ? (e.latest_children = {
5281
+ ...e.latest_children || {},
5282
+ like: [...((r = e.latest_children) == null ? void 0 : r.like) || [], t]
5283
+ }, e.own_children = {
5284
+ ...e.own_children || {},
5285
+ like: [...((s = e.own_children) == null ? void 0 : s.like) || [], t]
5286
+ }) : e.children_counts = {
5287
+ ...e.children_counts || {},
5288
+ like: (n = e.children_counts) != null && n.like ? e.children_counts.like + 1 : 1
5289
+ };
5263
5290
  }
5264
5291
  function Fs({ reply: e, user: t }) {
5265
- const { latest_children: n, own_children: r, children_counts: s } = e;
5266
- s && (s.like = s.like - 1 || 0), n && (t != null && t.id) && (n.like = n.like.filter(({ user_id: i }) => i !== t.id)), r && (t != null && t.id) && (r.like = r.like.filter(({ user_id: i }) => i !== t.id));
5292
+ var n, r, s;
5293
+ e.children_counts = {
5294
+ ...e.children_counts || {},
5295
+ like: (n = e.children_counts) != null && n.like ? e.children_counts.like - 1 : 0
5296
+ }, t != null && t.id && (e.latest_children = {
5297
+ ...e.latest_children || {},
5298
+ like: (((r = e.latest_children) == null ? void 0 : r.like) || []).filter(({ user_id: i }) => i !== t.id)
5299
+ }, e.own_children = {
5300
+ ...e.own_children || {},
5301
+ like: (((s = e.own_children) == null ? void 0 : s.like) || []).filter(({ user_id: i }) => i !== t.id)
5302
+ });
5267
5303
  }
5268
5304
  const Ae = Object.freeze({
5269
5305
  id: "some-user-id-1",
@@ -5274,7 +5310,7 @@ const Ae = Object.freeze({
5274
5310
  thumbnail: "https://some-user-thumbnail.com/avatar1.png"
5275
5311
  },
5276
5312
  isLoading: !1
5277
- }), $e = Object.freeze({
5313
+ }), Ee = Object.freeze({
5278
5314
  id: "some-user-id-2",
5279
5315
  name: "some user name 2",
5280
5316
  organization: "some user organization 2",
@@ -5294,7 +5330,7 @@ const Ae = Object.freeze({
5294
5330
  time: "2023-11-24T17:52:36.162000",
5295
5331
  verb: "post"
5296
5332
  }), Ds = Object.freeze({
5297
- actor: `SU:${$e.id}`,
5333
+ actor: `SU:${Ee.id}`,
5298
5334
  content: "some content 2",
5299
5335
  duration: "5.53ms",
5300
5336
  feed_id: "some-feed-id-2",
@@ -5303,7 +5339,7 @@ const Ae = Object.freeze({
5303
5339
  object: "comment",
5304
5340
  time: "2023-11-24T17:54:36.162000",
5305
5341
  verb: "post"
5306
- }), Ls = Object.freeze({
5342
+ }), Rs = Object.freeze({
5307
5343
  actor: `SU:${Ae.id}`,
5308
5344
  content: "some content 3",
5309
5345
  duration: "5.53ms",
@@ -5313,8 +5349,8 @@ const Ae = Object.freeze({
5313
5349
  object: "comment",
5314
5350
  time: "2023-11-24T17:56:36.162000",
5315
5351
  verb: "post"
5316
- }), Rs = Object.freeze({
5317
- actor: `SU:${$e.id}`,
5352
+ }), Ls = Object.freeze({
5353
+ actor: `SU:${Ee.id}`,
5318
5354
  content: "some content 4",
5319
5355
  duration: "5.53ms",
5320
5356
  feed_id: "some-feed-id-4",
@@ -5332,13 +5368,13 @@ Object.freeze({
5332
5368
  data: {},
5333
5369
  parent: "",
5334
5370
  updated_at: "2023-11-24T17:58:36.162000",
5335
- user_id: $e.id,
5371
+ user_id: Ee.id,
5336
5372
  children_counts: {},
5337
5373
  latest_children: {},
5338
5374
  latest_children_extra: {},
5339
5375
  own_children: {},
5340
5376
  user: {
5341
- id: $e.id,
5377
+ id: Ee.id,
5342
5378
  data: {},
5343
5379
  created_at: "2023-11-24T17:58:36.162000",
5344
5380
  updated_at: "2023-11-24T17:58:36.162000"
@@ -5348,9 +5384,9 @@ Object.freeze({
5348
5384
  created_at: "2023-12-03T21:53:45.999851Z",
5349
5385
  updated_at: "2023-12-03T21:53:45.999851Z",
5350
5386
  id: "some-reply-id-1",
5351
- user_id: $e.id,
5387
+ user_id: Ee.id,
5352
5388
  user: {
5353
- id: $e.id,
5389
+ id: Ee.id,
5354
5390
  data: {},
5355
5391
  created_at: "2023-08-31T07:11:38.677184Z",
5356
5392
  updated_at: "2023-08-31T07:11:38.677184Z"
@@ -5388,15 +5424,15 @@ Object.freeze({
5388
5424
  created_at: "2023-12-03T21:53:45.999851Z",
5389
5425
  updated_at: "2023-12-03T21:53:45.999851Z",
5390
5426
  id: "some-reply-id-3",
5391
- user_id: $e.id,
5427
+ user_id: Ee.id,
5392
5428
  user: {
5393
- id: $e.id,
5429
+ id: Ee.id,
5394
5430
  data: {},
5395
5431
  created_at: "2023-08-31T07:11:38.677184Z",
5396
5432
  updated_at: "2023-08-31T07:11:38.677184Z"
5397
5433
  },
5398
5434
  kind: "reply",
5399
- activity_id: Ls.id,
5435
+ activity_id: Rs.id,
5400
5436
  data: {
5401
5437
  content: "Some content 3..."
5402
5438
  },
@@ -5416,7 +5452,7 @@ Object.freeze({
5416
5452
  updated_at: "2023-08-31T07:11:38.677184Z"
5417
5453
  },
5418
5454
  kind: "reply",
5419
- activity_id: Rs.id,
5455
+ activity_id: Ls.id,
5420
5456
  data: {
5421
5457
  content: "Some content 4..."
5422
5458
  },
@@ -5483,7 +5519,7 @@ function Bs({
5483
5519
  },
5484
5520
  user: m,
5485
5521
  ...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 });
5522
+ }, 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
5523
  return {
5488
5524
  activities: k,
5489
5525
  mutations: {
@@ -5491,10 +5527,10 @@ function Bs({
5491
5527
  edit: p,
5492
5528
  remove: g,
5493
5529
  like: h,
5494
- unlike: b
5530
+ unlike: y
5495
5531
  },
5496
5532
  user: m,
5497
- ...y
5533
+ ...b
5498
5534
  };
5499
5535
  }
5500
5536
  function Zs({
@@ -5527,7 +5563,7 @@ function qs({ queryFn: e, queryKey: t }) {
5527
5563
  isLoading: s,
5528
5564
  hasNextPage: i,
5529
5565
  fetchNextPage: o
5530
- } = Rn({
5566
+ } = Ln({
5531
5567
  queryKey: t,
5532
5568
  queryFn: e,
5533
5569
  initialPageParam: { next: null },
@@ -5624,10 +5660,10 @@ const Gi = ({
5624
5660
  create: p,
5625
5661
  edit: h,
5626
5662
  remove: g,
5627
- like: b,
5663
+ like: y,
5628
5664
  unlike: k
5629
5665
  },
5630
- user: y
5666
+ user: b
5631
5667
  } = Bs({
5632
5668
  queryKey: [e, t, "activities"],
5633
5669
  queryFns: r
@@ -5648,19 +5684,19 @@ const Gi = ({
5648
5684
  }
5649
5685
  ),
5650
5686
  c == null ? void 0 : c.map((_) => {
5651
- var q, H, Y, Q, z, te, re;
5687
+ var N, U, Y, ne, Q, J, re;
5652
5688
  const {
5653
5689
  id: v,
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;
5690
+ own_reactions: w,
5691
+ latest_reactions: S,
5692
+ reaction_counts: M
5693
+ } = _, D = (((N = S == null ? void 0 : S.like) == null ? void 0 : N.length) || 0) > 0, I = (((U = w == null ? void 0 : w.like) == null ? void 0 : U.length) || 0) > 0, $ = I ? w == null ? void 0 : w.like[0].id : "", C = D ? (Y = S == null ? void 0 : S.like) == null ? void 0 : Y.map((X) => {
5694
+ var se, de, ce;
5659
5695
  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
5696
+ id: (se = X == null ? void 0 : X.user) == null ? void 0 : se.id,
5697
+ name: (ce = (de = X == null ? void 0 : X.user) == null ? void 0 : de.data) == null ? void 0 : ce.name
5662
5698
  };
5663
- }) : !1, E = _ == null ? void 0 : _.actor, N = (E == null ? void 0 : E.id) === (y == null ? void 0 : y.id);
5699
+ }) : !1, E = _ == null ? void 0 : _.actor, Z = (E == null ? void 0 : E.id) === (b == null ? void 0 : b.id);
5664
5700
  return /* @__PURE__ */ a.jsxs(qe, { children: [
5665
5701
  /* @__PURE__ */ a.jsx(
5666
5702
  kt,
@@ -5668,7 +5704,7 @@ const Gi = ({
5668
5704
  content: {
5669
5705
  type: "post",
5670
5706
  body: _ == null ? void 0 : _.content,
5671
- canLike: xt(n, N),
5707
+ canLike: xt(n, Z),
5672
5708
  createdAt: (_ == null ? void 0 : _.time) || "",
5673
5709
  slugs: {
5674
5710
  question: `${e}/${t}`,
@@ -5677,17 +5713,17 @@ const Gi = ({
5677
5713
  slug: v,
5678
5714
  author: {
5679
5715
  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,
5716
+ name: (ne = E == null ? void 0 : E.data) == null ? void 0 : ne.name,
5717
+ organization: (Q = E == null ? void 0 : E.data) == null ? void 0 : Q.organization,
5718
+ jobTitle: (J = E == null ? void 0 : E.data) == null ? void 0 : J.jobTitle,
5683
5719
  image: {
5684
5720
  thumbnail: ((re = E == null ? void 0 : E.data) == null ? void 0 : re.thumbnail) || void 0
5685
5721
  }
5686
5722
  },
5687
- userLiked: L,
5688
- likes: (C == null ? void 0 : C.like) || 0,
5689
- comments: (C == null ? void 0 : C.reply) || 0,
5690
- peopleWhoLiked: M
5723
+ userLiked: I,
5724
+ likes: (M == null ? void 0 : M.like) || 0,
5725
+ comments: (M == null ? void 0 : M.reply) || 0,
5726
+ peopleWhoLiked: C
5691
5727
  },
5692
5728
  links: {
5693
5729
  post: `${e}/${t}/${v}`,
@@ -5698,11 +5734,11 @@ const Gi = ({
5698
5734
  createContent: () => null,
5699
5735
  deleteContent: () => g({ activityId: v }),
5700
5736
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
5701
- updateContent: (J, { body: ie }) => h({ activityId: v, content: ie })
5737
+ updateContent: (X, { body: se }) => h({ activityId: v, content: se })
5702
5738
  },
5703
5739
  likes: {
5704
- createLike: () => b({ activityId: v }),
5705
- deleteLike: () => k({ activityId: v, reactionId: S })
5740
+ createLike: () => y({ activityId: v }),
5741
+ deleteLike: () => k({ activityId: v, reactionId: $ })
5706
5742
  },
5707
5743
  comments: {
5708
5744
  openComments: () => null
@@ -5711,7 +5747,7 @@ const Gi = ({
5711
5747
  isTruncated: !0
5712
5748
  }
5713
5749
  ),
5714
- /* @__PURE__ */ a.jsx(Te, {})
5750
+ /* @__PURE__ */ a.jsx($e, {})
5715
5751
  ] }, v);
5716
5752
  }),
5717
5753
  !d && /* @__PURE__ */ a.jsx(
@@ -6335,7 +6371,7 @@ function ha({
6335
6371
  },
6336
6372
  user: m,
6337
6373
  ...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 });
6374
+ }, 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
6375
  return {
6340
6376
  replies: k,
6341
6377
  mutations: {
@@ -6343,10 +6379,10 @@ function ha({
6343
6379
  edit: p,
6344
6380
  remove: g,
6345
6381
  like: h,
6346
- unlike: b
6382
+ unlike: y
6347
6383
  },
6348
6384
  user: m,
6349
- ...y
6385
+ ...b
6350
6386
  };
6351
6387
  }
6352
6388
  function Gs({
@@ -6379,7 +6415,7 @@ function Ks({ queryFn: e, queryKey: t }) {
6379
6415
  isLoading: s,
6380
6416
  hasNextPage: i,
6381
6417
  fetchNextPage: o
6382
- } = Rn({
6418
+ } = Ln({
6383
6419
  queryKey: t,
6384
6420
  queryFn: e,
6385
6421
  initialPageParam: { next: "" },
@@ -6485,10 +6521,10 @@ const ri = ({
6485
6521
  create: p,
6486
6522
  edit: h,
6487
6523
  like: g,
6488
- remove: b,
6524
+ remove: y,
6489
6525
  unlike: k
6490
6526
  },
6491
- user: y
6527
+ user: b
6492
6528
  } = ha({
6493
6529
  queryKey: [e, t, n, r, "replies"],
6494
6530
  queryFns: {
@@ -6496,7 +6532,7 @@ const ri = ({
6496
6532
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6497
6533
  list: (v) => i.list({ ...v, reactionId: r })
6498
6534
  }
6499
- }), _ = ge(vt);
6535
+ }), _ = _e(vt);
6500
6536
  return /* @__PURE__ */ a.jsx(
6501
6537
  Es,
6502
6538
  {
@@ -6504,26 +6540,29 @@ const ri = ({
6504
6540
  showRepliesButton: !1,
6505
6541
  children: /* @__PURE__ */ a.jsxs("section", { children: [
6506
6542
  c == null ? void 0 : c.map((v) => {
6507
- var Q, z, te, re, J, ie, de, ce, W, ue;
6543
+ var Q, J, re, X, se, de, ce, W, ue, pe;
6508
6544
  const {
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;
6545
+ id: w,
6546
+ own_children: S,
6547
+ latest_children: M,
6548
+ children_counts: D
6549
+ } = 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) => {
6550
+ var K;
6551
+ return ((K = q == null ? void 0 : q.user) == null ? void 0 : K.id) === (b == null ? void 0 : b.id);
6552
+ }), C = $ ? $ == null ? void 0 : $.id : "", E = !!$, Z = I ? (re = M == null ? void 0 : M.like) == null ? void 0 : re.map((q) => {
6553
+ var K, he, me;
6515
6554
  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
6555
+ id: (K = q == null ? void 0 : q.user) == null ? void 0 : K.id,
6556
+ name: (me = (he = q == null ? void 0 : q.user) == null ? void 0 : he.data) == null ? void 0 : me.name
6518
6557
  };
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) || "";
6558
+ }) : !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
6559
  return /* @__PURE__ */ a.jsx(
6521
6560
  kt,
6522
6561
  {
6523
6562
  content: {
6524
6563
  type: "reply",
6525
- body: Y,
6526
- canLike: H,
6564
+ body: ne,
6565
+ canLike: Y,
6527
6566
  createdAt: v == null ? void 0 : v.created_at,
6528
6567
  slugs: {
6529
6568
  question: `${e}/${t}`,
@@ -6535,32 +6574,32 @@ const ri = ({
6535
6574
  slug: "",
6536
6575
  author: {
6537
6576
  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,
6577
+ name: (ce = N.data) == null ? void 0 : ce.name,
6578
+ organization: (W = N.data) == null ? void 0 : W.organization,
6579
+ jobTitle: (ue = N.data) == null ? void 0 : ue.jobTitle,
6541
6580
  image: {
6542
- thumbnail: ((ue = N.data) == null ? void 0 : ue.thumbnail) || void 0
6581
+ thumbnail: ((pe = N.data) == null ? void 0 : pe.thumbnail) || void 0
6543
6582
  }
6544
6583
  },
6545
- userLiked: S,
6546
- likes: (Z == null ? void 0 : Z.like) || 0,
6547
- peopleWhoLiked: E
6584
+ userLiked: E,
6585
+ likes: (D == null ? void 0 : D.like) || 0,
6586
+ peopleWhoLiked: Z
6548
6587
  },
6549
6588
  functions: {
6550
6589
  content: {
6551
6590
  createContent: () => null,
6552
- deleteContent: () => b({ replyId: j }),
6591
+ deleteContent: () => y({ replyId: w }),
6553
6592
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6554
- updateContent: (K, { body: se }) => h({ replyId: j, content: se })
6593
+ updateContent: (q, { body: K }) => h({ replyId: w, content: K })
6555
6594
  },
6556
6595
  likes: {
6557
- createLike: () => g({ replyId: j }),
6558
- deleteLike: () => k({ replyId: j, reactionId: M })
6596
+ createLike: () => g({ replyId: w }),
6597
+ deleteLike: () => k({ replyId: w, reactionId: C })
6559
6598
  },
6560
6599
  comments: {}
6561
6600
  }
6562
6601
  },
6563
- j
6602
+ w
6564
6603
  );
6565
6604
  }),
6566
6605
  !d && /* @__PURE__ */ a.jsx(
@@ -6589,7 +6628,7 @@ const ri = ({
6589
6628
  },
6590
6629
  functions: {
6591
6630
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6592
- create: (v, { body: j }) => p({ activityId: n, replyId: r, content: j })
6631
+ create: (v, { body: w }) => p({ activityId: n, replyId: r, content: w })
6593
6632
  }
6594
6633
  }
6595
6634
  )
@@ -6616,9 +6655,9 @@ const ri = ({
6616
6655
  mutations: {
6617
6656
  create: h,
6618
6657
  edit: g,
6619
- like: b,
6658
+ like: y,
6620
6659
  remove: k,
6621
- unlike: y
6660
+ unlike: b
6622
6661
  },
6623
6662
  user: _
6624
6663
  } = ha({
@@ -6636,7 +6675,7 @@ const ri = ({
6636
6675
  da,
6637
6676
  {
6638
6677
  contentType: "reply",
6639
- createPost: (v, { body: j }) => h({ activityId: n, content: j }),
6678
+ createPost: (v, { body: w }) => h({ activityId: n, content: w }),
6640
6679
  membershipRequiredToPost: {
6641
6680
  isMember: r,
6642
6681
  required: !0,
@@ -6647,56 +6686,59 @@ const ri = ({
6647
6686
  }
6648
6687
  ),
6649
6688
  m == null ? void 0 : m.map((v) => {
6650
- var Q, z, te, re, J, ie, de, ce, W, ue;
6689
+ var Q, J, re, X, se, de, ce, W, ue, pe;
6651
6690
  const {
6652
- 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;
6691
+ id: w,
6692
+ own_children: S,
6693
+ latest_children: M,
6694
+ children_counts: D
6695
+ } = 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) => {
6696
+ var K;
6697
+ return ((K = q == null ? void 0 : q.user) == null ? void 0 : K.id) === (_ == null ? void 0 : _.id);
6698
+ }), C = $ ? $ == null ? void 0 : $.id : "", E = !!$, Z = I ? (re = M == null ? void 0 : M.like) == null ? void 0 : re.map((q) => {
6699
+ var K, he, me;
6658
6700
  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
6701
+ id: (K = q == null ? void 0 : q.user) == null ? void 0 : K.id,
6702
+ name: (me = (he = q == null ? void 0 : q.user) == null ? void 0 : he.data) == null ? void 0 : me.name
6661
6703
  };
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) || "";
6704
+ }) : !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
6705
  return /* @__PURE__ */ a.jsx(ks, { children: /* @__PURE__ */ a.jsx(
6664
6706
  kt,
6665
6707
  {
6666
6708
  content: {
6667
6709
  type: "reply",
6668
- body: Y,
6669
- canLike: H,
6710
+ body: ne,
6711
+ canLike: Y,
6670
6712
  createdAt: v == null ? void 0 : v.created_at,
6671
6713
  slugs: {
6672
6714
  question: `${e}/${t}`,
6673
6715
  answer: n,
6674
- reply: j
6716
+ reply: w
6675
6717
  },
6676
- slug: j,
6718
+ slug: w,
6677
6719
  author: {
6678
6720
  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,
6721
+ name: (ce = N.data) == null ? void 0 : ce.name,
6722
+ organization: (W = N.data) == null ? void 0 : W.organization,
6723
+ jobTitle: (ue = N.data) == null ? void 0 : ue.jobTitle,
6682
6724
  image: {
6683
- thumbnail: ((ue = N.data) == null ? void 0 : ue.thumbnail) || void 0
6725
+ thumbnail: ((pe = N.data) == null ? void 0 : pe.thumbnail) || void 0
6684
6726
  }
6685
6727
  },
6686
- userLiked: S,
6687
- likes: (Z == null ? void 0 : Z.like) || 0,
6688
- peopleWhoLiked: E
6728
+ userLiked: E,
6729
+ likes: (D == null ? void 0 : D.like) || 0,
6730
+ peopleWhoLiked: Z
6689
6731
  },
6690
6732
  functions: {
6691
6733
  content: {
6692
6734
  createContent: () => null,
6693
- deleteContent: () => k({ replyId: j }),
6735
+ deleteContent: () => k({ replyId: w }),
6694
6736
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6695
- updateContent: (K, { body: se }) => g({ replyId: j, content: se })
6737
+ updateContent: (q, { body: K }) => g({ replyId: w, content: K })
6696
6738
  },
6697
6739
  likes: {
6698
- createLike: () => b({ replyId: j }),
6699
- deleteLike: () => y({ replyId: j, reactionId: M })
6740
+ createLike: () => y({ replyId: w }),
6741
+ deleteLike: () => b({ replyId: w, reactionId: C })
6700
6742
  },
6701
6743
  comments: {}
6702
6744
  },
@@ -6706,7 +6748,7 @@ const ri = ({
6706
6748
  basePath: e,
6707
6749
  parentId: t,
6708
6750
  activityId: n,
6709
- replyId: j,
6751
+ replyId: w,
6710
6752
  isMember: r,
6711
6753
  functions: {
6712
6754
  ...s
@@ -6714,8 +6756,8 @@ const ri = ({
6714
6756
  }
6715
6757
  )
6716
6758
  },
6717
- j
6718
- ) }, j);
6759
+ w
6760
+ ) }, w);
6719
6761
  }),
6720
6762
  !p && /* @__PURE__ */ a.jsx(
6721
6763
  yt,
@@ -6836,14 +6878,14 @@ const Qi = ({
6836
6878
  leave: m
6837
6879
  }
6838
6880
  }) => {
6839
- var L, S, M, E, N, q, H, Y, Q;
6840
- const l = A(), f = ge(ke), {
6881
+ var $, C, E, Z, N, U, Y, ne, Q;
6882
+ const l = A(), f = _e(we), {
6841
6883
  activity: d,
6842
6884
  error: p,
6843
6885
  isLoading: h,
6844
6886
  mutations: {
6845
6887
  edit: g,
6846
- like: b,
6888
+ like: y,
6847
6889
  unlike: k
6848
6890
  }
6849
6891
  } = ci({
@@ -6851,7 +6893,7 @@ const Qi = ({
6851
6893
  queryKey: [e, t, n]
6852
6894
  });
6853
6895
  if (h)
6854
- return /* @__PURE__ */ a.jsx(_e, { style: { height: "400px" } });
6896
+ return /* @__PURE__ */ a.jsx(be, { style: { height: "400px" } });
6855
6897
  if (p || !d)
6856
6898
  return /* @__PURE__ */ a.jsx(
6857
6899
  bt,
@@ -6860,13 +6902,13 @@ const Qi = ({
6860
6902
  text: l.formatMessage({ id: "activitySection_notFoundError" })
6861
6903
  }
6862
6904
  );
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;
6905
+ const { own_reactions: b, latest_reactions: _ } = d, v = ((($ = _ == null ? void 0 : _.like) == null ? void 0 : $.length) || 0) > 0, w = (((C = b == null ? void 0 : b.like) == null ? void 0 : C.length) || 0) > 0, S = w ? b == null ? void 0 : b.like[0].id : "", M = v ? (E = _ == null ? void 0 : _.like) == null ? void 0 : E.map((J) => {
6906
+ var re, X, se;
6865
6907
  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
6908
+ id: (re = J == null ? void 0 : J.user) == null ? void 0 : re.id,
6909
+ name: (se = (X = J == null ? void 0 : J.user) == null ? void 0 : X.data) == null ? void 0 : se.name
6868
6910
  };
6869
- }) : !1, C = d == null ? void 0 : d.actor, Z = (C == null ? void 0 : C.id) === (f == null ? void 0 : f.id);
6911
+ }) : !1, D = d == null ? void 0 : d.actor, I = (D == null ? void 0 : D.id) === (f == null ? void 0 : f.id);
6870
6912
  return /* @__PURE__ */ a.jsx(
6871
6913
  kt,
6872
6914
  {
@@ -6874,7 +6916,7 @@ const Qi = ({
6874
6916
  content: {
6875
6917
  type: "post",
6876
6918
  body: d == null ? void 0 : d.content,
6877
- canLike: xt(r, Z),
6919
+ canLike: xt(r, I),
6878
6920
  createdAt: (d == null ? void 0 : d.time) || "",
6879
6921
  slugs: {
6880
6922
  question: `${e}/${t}`,
@@ -6882,31 +6924,31 @@ const Qi = ({
6882
6924
  },
6883
6925
  slug: n,
6884
6926
  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,
6927
+ id: D.id,
6928
+ name: (Z = D.data) == null ? void 0 : Z.name,
6929
+ organization: (N = D.data) == null ? void 0 : N.organization,
6930
+ jobTitle: (U = D.data) == null ? void 0 : U.jobTitle,
6889
6931
  image: {
6890
- thumbnail: ((H = C.data) == null ? void 0 : H.thumbnail) || void 0
6932
+ thumbnail: ((Y = D.data) == null ? void 0 : Y.thumbnail) || void 0
6891
6933
  }
6892
6934
  },
6893
- userLiked: j,
6894
- likes: ((Y = d == null ? void 0 : d.reaction_counts) == null ? void 0 : Y.like) || 0,
6935
+ userLiked: w,
6936
+ likes: ((ne = d == null ? void 0 : d.reaction_counts) == null ? void 0 : ne.like) || 0,
6895
6937
  comments: ((Q = d == null ? void 0 : d.reaction_counts) == null ? void 0 : Q.reply) || 0,
6896
- peopleWhoLiked: $
6938
+ peopleWhoLiked: M
6897
6939
  },
6898
- originalAuthorId: C == null ? void 0 : C.id,
6940
+ originalAuthorId: D == null ? void 0 : D.id,
6899
6941
  forceHide: { comments: !0 },
6900
6942
  functions: {
6901
6943
  content: {
6902
6944
  createContent: () => null,
6903
6945
  deleteContent: s,
6904
6946
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6905
- updateContent: (z, { body: te }) => g({ content: te })
6947
+ updateContent: (J, { body: re }) => g({ content: re })
6906
6948
  },
6907
6949
  likes: {
6908
- createLike: () => b({ activityId: n }),
6909
- deleteLike: () => k({ activityId: n })
6950
+ createLike: () => y({ activityId: n }),
6951
+ deleteLike: () => k({ activityId: n, reactionId: S })
6910
6952
  },
6911
6953
  comments: {
6912
6954
  openComments: () => {
@@ -7000,7 +7042,7 @@ const nt = "notFoundError_", Xi = () => {
7000
7042
  })
7001
7043
  }
7002
7044
  ),
7003
- /* @__PURE__ */ a.jsx(B, { href: "/solution-articles/", children: e.formatMessage({ id: `${nt}cta` }) })
7045
+ /* @__PURE__ */ a.jsx(H, { href: "/solution-articles/", children: e.formatMessage({ id: `${nt}cta` }) })
7004
7046
  ] })
7005
7047
  },
7006
7048
  reportError: () => {
@@ -7019,8 +7061,8 @@ export {
7019
7061
  Qi as ActivitySection,
7020
7062
  da as AddPost,
7021
7063
  Ci as BannerSection,
7022
- Li as Breadcrumbs,
7023
- B as Button,
7064
+ Ri as Breadcrumbs,
7065
+ H as Button,
7024
7066
  ht as ButtonWrapper,
7025
7067
  Er as CacheProvider,
7026
7068
  ea as Card,
@@ -7037,12 +7079,12 @@ export {
7037
7079
  Ts as DiscussionLikes,
7038
7080
  kt as DiscussionPost,
7039
7081
  Es as DiscussionThread,
7040
- Te as Divider,
7082
+ $e as Divider,
7041
7083
  $i as DownloadSection,
7042
7084
  Be as EMAILS,
7043
7085
  qi as EmailHelperTextBox,
7044
7086
  bt as EmptyStateBox,
7045
- Ri as Filters,
7087
+ Li as Filters,
7046
7088
  Mr as FlagsProvider,
7047
7089
  aa as Footer,
7048
7090
  _t as FullWidthSection,
@@ -7051,7 +7093,7 @@ export {
7051
7093
  Ar as HelperTextBox,
7052
7094
  Bn as HiddenFromScreenReaders,
7053
7095
  Pi as HideShowTextBox,
7054
- we as HighlightedTextBox,
7096
+ Te as HighlightedTextBox,
7055
7097
  Nr as IntlProvider,
7056
7098
  hs as InviteForm,
7057
7099
  zi as InviteModal,
@@ -7060,11 +7102,11 @@ export {
7060
7102
  gt as Link,
7061
7103
  yt as LoadMore,
7062
7104
  Ai as LoadingBlock,
7063
- _e as LoadingPlaceholder,
7105
+ be as LoadingPlaceholder,
7064
7106
  Kn as LoadingState,
7065
7107
  na as Logo,
7066
7108
  Ei as LogoSection,
7067
- jn as MarkdownText,
7109
+ wn as MarkdownText,
7068
7110
  Si as MarketingBox,
7069
7111
  Xt as Member,
7070
7112
  Vi as MembersList,
@@ -7090,11 +7132,11 @@ export {
7090
7132
  Vt as StatusBanner,
7091
7133
  Bi as Tabs,
7092
7134
  Wi as Tags,
7093
- wr as Tooltip,
7135
+ jr as Tooltip,
7094
7136
  Zi as TopLevelPage,
7095
- ke as UserContext,
7137
+ we as UserContext,
7096
7138
  Pr as UserProvider,
7097
- ae as VisuallyHidden,
7139
+ ie as VisuallyHidden,
7098
7140
  _s as addAriaProps,
7099
7141
  Jn as getMember,
7100
7142
  ct as headerData,