@apolitical/component-library 1.18.0-4247.39 → 1.18.0-4247.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.mjs CHANGED
@@ -1,9 +1,9 @@
1
- import A, { memo as Ae, useState as F, useEffect as V, useRef as te, useMemo as ft, createContext as Gt, useContext as fe, Children as Ht, useCallback as Dn, Fragment as Ze, useReducer as Oa, Suspense as Ba } from "react";
1
+ import A, { memo as Fe, useState as R, useEffect as G, useRef as ne, useMemo as ft, createContext as Gt, useContext as ge, Children as Ht, useCallback as Dn, 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 P, IntlProvider as Ha, createIntl as Ua, FormattedMessage as je } from "react-intl";
5
- import Me from "truncate";
6
- import { QueryClient as za, QueryClientProvider as Wa, useMutation as ue, useQueryClient as Kt, useInfiniteQuery as Ln, useQuery as Va } from "@tanstack/react-query";
5
+ import Ne from "truncate";
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 nt 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 j = /* @__PURE__ */ tr(nr), ar = ({ element: e = "span", showOnFocus: t = !0, children: n, ...r }) => A.createElement(e, { ...r, className: j("hidden", { "show-on-focus": t }), children: n }), se = Ae(ar), rr = ({ element: e = "span", children: t = null, ...n }) => A.createElement(e, { ...n, "aria-hidden": !0 }, t), Bn = Ae(rr);
57
- var Ut = { exports: {} }, Re = {};
56
+ const w = /* @__PURE__ */ tr(nr), ar = ({ element: e = "span", showOnFocus: t = !0, children: n, ...r }) => A.createElement(e, { ...r, className: w("hidden", { "show-on-focus": t }), children: n }), ae = Fe(ar), rr = ({ element: e = "span", children: t = null, ...n }) => A.createElement(e, { ...n, "aria-hidden": !0 }, t), Bn = Fe(rr);
57
+ var Ut = { exports: {} }, De = {};
58
58
  /**
59
59
  * @license React
60
60
  * react-jsx-runtime.production.min.js
@@ -67,22 +67,22 @@ var Ut = { exports: {} }, Re = {};
67
67
  var bn;
68
68
  function sr() {
69
69
  if (bn)
70
- return Re;
70
+ return De;
71
71
  bn = 1;
72
72
  var e = A, 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) {
74
- var f, d = {}, h = null, p = null;
75
- l !== void 0 && (h = "" + l), m.key !== void 0 && (h = "" + m.key), m.ref !== void 0 && (p = m.ref);
74
+ var f, d = {}, p = null, h = null;
75
+ l !== void 0 && (p = "" + l), m.key !== void 0 && (p = "" + m.key), m.ref !== void 0 && (h = m.ref);
76
76
  for (f in m)
77
77
  r.call(m, f) && !i.hasOwnProperty(f) && (d[f] = m[f]);
78
78
  if (c && c.defaultProps)
79
79
  for (f in m = c.defaultProps, m)
80
80
  d[f] === void 0 && (d[f] = m[f]);
81
- return { $$typeof: t, type: c, key: h, ref: p, props: d, _owner: s.current };
81
+ return { $$typeof: t, type: c, key: p, ref: h, props: d, _owner: s.current };
82
82
  }
83
- return Re.Fragment = n, Re.jsx = o, Re.jsxs = o, Re;
83
+ return De.Fragment = n, De.jsx = o, De.jsxs = o, De;
84
84
  }
85
- var De = {};
85
+ var Le = {};
86
86
  /**
87
87
  * @license React
88
88
  * react-jsx-runtime.development.js
@@ -95,51 +95,51 @@ var De = {};
95
95
  var yn;
96
96
  function ir() {
97
97
  return yn || (yn = 1, process.env.NODE_ENV !== "production" && function() {
98
- var e = A, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), 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"), h = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), _ = Symbol.iterator, v = "@@iterator";
99
- function y(u) {
98
+ var e = A, 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"), _ = Symbol.iterator, y = "@@iterator";
99
+ function k(u) {
100
100
  if (u === null || typeof u != "object")
101
101
  return null;
102
- var x = _ && u[_] || u[v];
102
+ var x = _ && u[_] || u[y];
103
103
  return typeof x == "function" ? x : null;
104
104
  }
105
- var k = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
105
+ var v = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
106
106
  function g(u) {
107
107
  {
108
- for (var x = arguments.length, $ = new Array(x > 1 ? x - 1 : 0), N = 1; N < x; N++)
109
- $[N - 1] = arguments[N];
110
- b("error", u, $);
108
+ for (var x = arguments.length, T = new Array(x > 1 ? x - 1 : 0), N = 1; N < x; N++)
109
+ T[N - 1] = arguments[N];
110
+ b("error", u, T);
111
111
  }
112
112
  }
113
- function b(u, x, $) {
113
+ function b(u, x, T) {
114
114
  {
115
- var N = k.ReactDebugCurrentFrame, Z = N.getStackAddendum();
116
- Z !== "" && (x += "%s", $ = $.concat([Z]));
117
- var z = $.map(function(I) {
118
- return String(I);
115
+ var N = v.ReactDebugCurrentFrame, O = N.getStackAddendum();
116
+ O !== "" && (x += "%s", T = T.concat([O]));
117
+ var V = T.map(function(L) {
118
+ return String(L);
119
119
  });
120
- z.unshift("Warning: " + x), Function.prototype.apply.call(console[u], console, z);
120
+ V.unshift("Warning: " + x), Function.prototype.apply.call(console[u], console, V);
121
121
  }
122
122
  }
123
- var w = !1, C = !1, M = !1, L = !1, R = !1, T;
124
- T = Symbol.for("react.module.reference");
125
- function S(u) {
126
- return !!(typeof u == "string" || typeof u == "function" || u === r || u === i || R || u === s || u === l || u === f || L || u === p || w || C || M || typeof u == "object" && u !== null && (u.$$typeof === h || u.$$typeof === d || u.$$typeof === o || u.$$typeof === c || u.$$typeof === m || // This needs to include all possible module reference object
123
+ var j = !1, C = !1, S = !1, Y = !1, F = !1, $;
124
+ $ = Symbol.for("react.module.reference");
125
+ function M(u) {
126
+ return !!(typeof u == "string" || typeof u == "function" || u === r || u === i || F || u === s || u === l || u === f || Y || u === h || j || C || S || 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 === T || u.getModuleId !== void 0));
130
+ u.$$typeof === $ || u.getModuleId !== void 0));
131
131
  }
132
- function E(u, x, $) {
132
+ function E(u, x, T) {
133
133
  var N = u.displayName;
134
134
  if (N)
135
135
  return N;
136
- var Z = x.displayName || x.name || "";
137
- return Z !== "" ? $ + "(" + Z + ")" : $;
136
+ var O = x.displayName || x.name || "";
137
+ return O !== "" ? T + "(" + O + ")" : T;
138
138
  }
139
- function W(u) {
139
+ function I(u) {
140
140
  return u.displayName || "Context";
141
141
  }
142
- function O(u) {
142
+ function Z(u) {
143
143
  if (u == null)
144
144
  return null;
145
145
  if (typeof u.tag == "number" && g("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 W(x) + ".Consumer";
167
+ return I(x) + ".Consumer";
168
168
  case o:
169
- var $ = u;
170
- return W($._context) + ".Provider";
169
+ var T = u;
170
+ return I(T._context) + ".Provider";
171
171
  case m:
172
172
  return E(u, u.render, "ForwardRef");
173
173
  case d:
174
174
  var N = u.displayName || null;
175
- return N !== null ? N : O(u.type) || "Memo";
176
- case h: {
177
- var Z = u, z = Z._payload, I = Z._init;
175
+ return N !== null ? N : Z(u.type) || "Memo";
176
+ case p: {
177
+ var O = u, V = O._payload, L = O._init;
178
178
  try {
179
- return O(I(z));
179
+ return Z(L(V));
180
180
  } catch {
181
181
  return null;
182
182
  }
@@ -184,18 +184,18 @@ function ir() {
184
184
  }
185
185
  return null;
186
186
  }
187
- var U = Object.assign, Y = 0, K, re, Q, ne, G, ae, oe;
188
- function B() {
187
+ var q = Object.assign, z = 0, J, H, te, re, K, ie, de;
188
+ function ce() {
189
189
  }
190
- B.__reactDisabledLog = !0;
191
- function le() {
190
+ ce.__reactDisabledLog = !0;
191
+ function W() {
192
192
  {
193
- if (Y === 0) {
194
- K = console.log, re = console.info, Q = console.warn, ne = console.error, G = console.group, ae = console.groupCollapsed, oe = console.groupEnd;
193
+ if (z === 0) {
194
+ J = console.log, H = console.info, te = console.warn, re = console.error, K = console.group, ie = console.groupCollapsed, de = console.groupEnd;
195
195
  var u = {
196
196
  configurable: !0,
197
197
  enumerable: !0,
198
- value: B,
198
+ value: ce,
199
199
  writable: !0
200
200
  };
201
201
  Object.defineProperties(console, {
@@ -208,100 +208,100 @@ function ir() {
208
208
  groupEnd: u
209
209
  });
210
210
  }
211
- Y++;
211
+ z++;
212
212
  }
213
213
  }
214
- function he() {
214
+ function ue() {
215
215
  {
216
- if (Y--, Y === 0) {
216
+ if (z--, z === 0) {
217
217
  var u = {
218
218
  configurable: !0,
219
219
  enumerable: !0,
220
220
  writable: !0
221
221
  };
222
222
  Object.defineProperties(console, {
223
- log: U({}, u, {
224
- value: K
223
+ log: q({}, u, {
224
+ value: J
225
225
  }),
226
- info: U({}, u, {
227
- value: re
226
+ info: q({}, u, {
227
+ value: H
228
228
  }),
229
- warn: U({}, u, {
230
- value: Q
229
+ warn: q({}, u, {
230
+ value: te
231
231
  }),
232
- error: U({}, u, {
233
- value: ne
232
+ error: q({}, u, {
233
+ value: re
234
234
  }),
235
- group: U({}, u, {
236
- value: G
235
+ group: q({}, u, {
236
+ value: K
237
237
  }),
238
- groupCollapsed: U({}, u, {
239
- value: ae
238
+ groupCollapsed: q({}, u, {
239
+ value: ie
240
240
  }),
241
- groupEnd: U({}, u, {
242
- value: oe
241
+ groupEnd: q({}, u, {
242
+ value: de
243
243
  })
244
244
  });
245
245
  }
246
- Y < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
246
+ z < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
247
247
  }
248
248
  }
249
- var J = k.ReactCurrentDispatcher, de;
250
- function ge(u, x, $) {
249
+ var Q = v.ReactCurrentDispatcher, se;
250
+ function me(u, x, T) {
251
251
  {
252
- if (de === void 0)
252
+ if (se === void 0)
253
253
  try {
254
254
  throw Error();
255
- } catch (Z) {
256
- var N = Z.stack.trim().match(/\n( *(at )?)/);
257
- de = N && N[1] || "";
255
+ } catch (O) {
256
+ var N = O.stack.trim().match(/\n( *(at )?)/);
257
+ se = N && N[1] || "";
258
258
  }
259
259
  return `
260
- ` + de + u;
260
+ ` + se + u;
261
261
  }
262
262
  }
263
- var be = !1, Ue;
263
+ var pe = !1, Ee;
264
264
  {
265
265
  var ga = typeof WeakMap == "function" ? WeakMap : Map;
266
- Ue = new ga();
266
+ Ee = new ga();
267
267
  }
268
268
  function an(u, x) {
269
- if (!u || be)
269
+ if (!u || pe)
270
270
  return "";
271
271
  {
272
- var $ = Ue.get(u);
273
- if ($ !== void 0)
274
- return $;
272
+ var T = Ee.get(u);
273
+ if (T !== void 0)
274
+ return T;
275
275
  }
276
276
  var N;
277
- be = !0;
278
- var Z = Error.prepareStackTrace;
277
+ pe = !0;
278
+ var O = Error.prepareStackTrace;
279
279
  Error.prepareStackTrace = void 0;
280
- var z;
281
- z = J.current, J.current = null, le();
280
+ var V;
281
+ V = Q.current, Q.current = null, W();
282
282
  try {
283
283
  if (x) {
284
- var I = function() {
284
+ var L = function() {
285
285
  throw Error();
286
286
  };
287
- if (Object.defineProperty(I.prototype, "props", {
287
+ if (Object.defineProperty(L.prototype, "props", {
288
288
  set: function() {
289
289
  throw Error();
290
290
  }
291
291
  }), typeof Reflect == "object" && Reflect.construct) {
292
292
  try {
293
- Reflect.construct(I, []);
293
+ Reflect.construct(L, []);
294
294
  } catch (ye) {
295
295
  N = ye;
296
296
  }
297
- Reflect.construct(u, [], I);
297
+ Reflect.construct(u, [], L);
298
298
  } else {
299
299
  try {
300
- I.call();
300
+ L.call();
301
301
  } catch (ye) {
302
302
  N = ye;
303
303
  }
304
- u.call(I.prototype);
304
+ u.call(L.prototype);
305
305
  }
306
306
  } else {
307
307
  try {
@@ -314,88 +314,88 @@ function ir() {
314
314
  } catch (ye) {
315
315
  if (ye && N && typeof ye.stack == "string") {
316
316
  for (var D = ye.stack.split(`
317
- `), ie = N.stack.split(`
318
- `), X = D.length - 1, ee = ie.length - 1; X >= 1 && ee >= 0 && D[X] !== ie[ee]; )
317
+ `), oe = N.stack.split(`
318
+ `), X = D.length - 1, ee = oe.length - 1; X >= 1 && ee >= 0 && D[X] !== oe[ee]; )
319
319
  ee--;
320
320
  for (; X >= 1 && ee >= 0; X--, ee--)
321
- if (D[X] !== ie[ee]) {
321
+ if (D[X] !== oe[ee]) {
322
322
  if (X !== 1 || ee !== 1)
323
323
  do
324
- if (X--, ee--, ee < 0 || D[X] !== ie[ee]) {
325
- var me = `
324
+ if (X--, ee--, ee < 0 || D[X] !== oe[ee]) {
325
+ var he = `
326
326
  ` + D[X].replace(" at new ", " at ");
327
- return u.displayName && me.includes("<anonymous>") && (me = me.replace("<anonymous>", u.displayName)), typeof u == "function" && Ue.set(u, me), me;
327
+ return u.displayName && he.includes("<anonymous>") && (he = he.replace("<anonymous>", u.displayName)), typeof u == "function" && Ee.set(u, he), he;
328
328
  }
329
329
  while (X >= 1 && ee >= 0);
330
330
  break;
331
331
  }
332
332
  }
333
333
  } finally {
334
- be = !1, J.current = z, he(), Error.prepareStackTrace = Z;
334
+ pe = !1, Q.current = V, ue(), Error.prepareStackTrace = O;
335
335
  }
336
- var Ce = u ? u.displayName || u.name : "", _n = Ce ? ge(Ce) : "";
337
- return typeof u == "function" && Ue.set(u, _n), _n;
336
+ var Se = u ? u.displayName || u.name : "", _n = Se ? me(Se) : "";
337
+ return typeof u == "function" && Ee.set(u, _n), _n;
338
338
  }
339
- function _a(u, x, $) {
339
+ function _a(u, x, T) {
340
340
  return an(u, !1);
341
341
  }
342
342
  function ba(u) {
343
343
  var x = u.prototype;
344
344
  return !!(x && x.isReactComponent);
345
345
  }
346
- function ze(u, x, $) {
346
+ function ze(u, x, T) {
347
347
  if (u == null)
348
348
  return "";
349
349
  if (typeof u == "function")
350
350
  return an(u, ba(u));
351
351
  if (typeof u == "string")
352
- return ge(u);
352
+ return me(u);
353
353
  switch (u) {
354
354
  case l:
355
- return ge("Suspense");
355
+ return me("Suspense");
356
356
  case f:
357
- return ge("SuspenseList");
357
+ return me("SuspenseList");
358
358
  }
359
359
  if (typeof u == "object")
360
360
  switch (u.$$typeof) {
361
361
  case m:
362
362
  return _a(u.render);
363
363
  case d:
364
- return ze(u.type, x, $);
365
- case h: {
366
- var N = u, Z = N._payload, z = N._init;
364
+ return ze(u.type, x, T);
365
+ case p: {
366
+ var N = u, O = N._payload, V = N._init;
367
367
  try {
368
- return ze(z(Z), x, $);
368
+ return ze(V(O), x, T);
369
369
  } catch {
370
370
  }
371
371
  }
372
372
  }
373
373
  return "";
374
374
  }
375
- var We = Object.prototype.hasOwnProperty, rn = {}, sn = k.ReactDebugCurrentFrame;
375
+ var We = Object.prototype.hasOwnProperty, rn = {}, sn = v.ReactDebugCurrentFrame;
376
376
  function Ve(u) {
377
377
  if (u) {
378
- var x = u._owner, $ = ze(u.type, u._source, x ? x.type : null);
379
- sn.setExtraStackFrame($);
378
+ var x = u._owner, T = ze(u.type, u._source, x ? x.type : null);
379
+ sn.setExtraStackFrame(T);
380
380
  } else
381
381
  sn.setExtraStackFrame(null);
382
382
  }
383
- function ya(u, x, $, N, Z) {
383
+ function ya(u, x, T, N, O) {
384
384
  {
385
- var z = Function.call.bind(We);
386
- for (var I in u)
387
- if (z(u, I)) {
385
+ var V = Function.call.bind(We);
386
+ for (var L in u)
387
+ if (V(u, L)) {
388
388
  var D = void 0;
389
389
  try {
390
- if (typeof u[I] != "function") {
391
- var ie = Error((N || "React class") + ": " + $ + " 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`.");
392
- throw ie.name = "Invariant Violation", ie;
390
+ if (typeof u[L] != "function") {
391
+ var oe = Error((N || "React class") + ": " + T + " type `" + L + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof u[L] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
392
+ throw oe.name = "Invariant Violation", oe;
393
393
  }
394
- D = u[I](x, I, N, $, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
394
+ D = u[L](x, L, N, T, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
395
395
  } catch (X) {
396
396
  D = X;
397
397
  }
398
- D && !(D instanceof Error) && (Ve(Z), g("%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).", N || "React class", $, I, typeof D), Ve(null)), D instanceof Error && !(D.message in rn) && (rn[D.message] = !0, Ve(Z), g("Failed %s type: %s", $, D.message), Ve(null));
398
+ D && !(D instanceof Error) && (Ve(O), g("%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).", N || "React class", T, L, typeof D), Ve(null)), D instanceof Error && !(D.message in rn) && (rn[D.message] = !0, Ve(O), g("Failed %s type: %s", T, D.message), Ve(null));
399
399
  }
400
400
  }
401
401
  }
@@ -405,8 +405,8 @@ function ir() {
405
405
  }
406
406
  function xa(u) {
407
407
  {
408
- var x = typeof Symbol == "function" && Symbol.toStringTag, $ = x && u[Symbol.toStringTag] || u.constructor.name || "Object";
409
- return $;
408
+ var x = typeof Symbol == "function" && Symbol.toStringTag, T = x && u[Symbol.toStringTag] || u.constructor.name || "Object";
409
+ return T;
410
410
  }
411
411
  }
412
412
  function ka(u) {
@@ -423,7 +423,7 @@ function ir() {
423
423
  if (ka(u))
424
424
  return g("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 Fe = k.ReactCurrentOwner, ja = {
426
+ var Re = v.ReactCurrentOwner, ja = {
427
427
  key: !0,
428
428
  ref: !0,
429
429
  __self: !0,
@@ -447,44 +447,44 @@ function ir() {
447
447
  return u.key !== void 0;
448
448
  }
449
449
  function $a(u, x) {
450
- if (typeof u.ref == "string" && Fe.current && x && Fe.current.stateNode !== x) {
451
- var $ = O(Fe.current.type);
452
- wt[$] || (g('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', O(Fe.current.type), u.ref), wt[$] = !0);
450
+ if (typeof u.ref == "string" && Re.current && x && Re.current.stateNode !== x) {
451
+ var T = Z(Re.current.type);
452
+ wt[T] || (g('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', Z(Re.current.type), u.ref), wt[T] = !0);
453
453
  }
454
454
  }
455
455
  function Ea(u, x) {
456
456
  {
457
- var $ = function() {
457
+ var T = function() {
458
458
  ln || (ln = !0, g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", x));
459
459
  };
460
- $.isReactWarning = !0, Object.defineProperty(u, "key", {
461
- get: $,
460
+ T.isReactWarning = !0, Object.defineProperty(u, "key", {
461
+ get: T,
462
462
  configurable: !0
463
463
  });
464
464
  }
465
465
  }
466
466
  function Ca(u, x) {
467
467
  {
468
- var $ = function() {
468
+ var T = function() {
469
469
  dn || (dn = !0, g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", x));
470
470
  };
471
- $.isReactWarning = !0, Object.defineProperty(u, "ref", {
472
- get: $,
471
+ T.isReactWarning = !0, Object.defineProperty(u, "ref", {
472
+ get: T,
473
473
  configurable: !0
474
474
  });
475
475
  }
476
476
  }
477
- var Sa = function(u, x, $, N, Z, z, I) {
477
+ var Sa = function(u, x, T, N, O, V, L) {
478
478
  var D = {
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
- ref: $,
485
- props: I,
484
+ ref: T,
485
+ props: L,
486
486
  // Record the component responsible for creating this element.
487
- _owner: z
487
+ _owner: V
488
488
  };
489
489
  return D._store = {}, Object.defineProperty(D._store, "validated", {
490
490
  configurable: !1,
@@ -500,32 +500,32 @@ function ir() {
500
500
  configurable: !1,
501
501
  enumerable: !1,
502
502
  writable: !1,
503
- value: Z
503
+ value: O
504
504
  }), Object.freeze && (Object.freeze(D.props), Object.freeze(D)), D;
505
505
  };
506
- function Ma(u, x, $, N, Z) {
506
+ function Ma(u, x, T, N, O) {
507
507
  {
508
- var z, I = {}, D = null, ie = null;
509
- $ !== void 0 && (cn($), D = "" + $), Ta(x) && (cn(x.key), D = "" + x.key), wa(x) && (ie = x.ref, $a(x, Z));
510
- for (z in x)
511
- We.call(x, z) && !ja.hasOwnProperty(z) && (I[z] = x[z]);
508
+ var V, L = {}, D = null, oe = null;
509
+ T !== void 0 && (cn(T), D = "" + T), Ta(x) && (cn(x.key), D = "" + x.key), wa(x) && (oe = x.ref, $a(x, O));
510
+ for (V in x)
511
+ We.call(x, V) && !ja.hasOwnProperty(V) && (L[V] = x[V]);
512
512
  if (u && u.defaultProps) {
513
513
  var X = u.defaultProps;
514
- for (z in X)
515
- I[z] === void 0 && (I[z] = X[z]);
514
+ for (V in X)
515
+ L[V] === void 0 && (L[V] = X[V]);
516
516
  }
517
- if (D || ie) {
517
+ if (D || oe) {
518
518
  var ee = typeof u == "function" ? u.displayName || u.name || "Unknown" : u;
519
- D && Ea(I, ee), ie && Ca(I, ee);
519
+ D && Ea(L, ee), oe && Ca(L, ee);
520
520
  }
521
- return Sa(u, D, ie, Z, N, Fe.current, I);
521
+ return Sa(u, D, oe, O, N, Re.current, L);
522
522
  }
523
523
  }
524
- var Tt = k.ReactCurrentOwner, un = k.ReactDebugCurrentFrame;
525
- function Ee(u) {
524
+ var Tt = v.ReactCurrentOwner, un = v.ReactDebugCurrentFrame;
525
+ function Ce(u) {
526
526
  if (u) {
527
- var x = u._owner, $ = ze(u.type, u._source, x ? x.type : null);
528
- un.setExtraStackFrame($);
527
+ var x = u._owner, T = ze(u.type, u._source, x ? x.type : null);
528
+ un.setExtraStackFrame(T);
529
529
  } else
530
530
  un.setExtraStackFrame(null);
531
531
  }
@@ -537,7 +537,7 @@ function ir() {
537
537
  function mn() {
538
538
  {
539
539
  if (Tt.current) {
540
- var u = O(Tt.current.type);
540
+ var u = Z(Tt.current.type);
541
541
  if (u)
542
542
  return `
543
543
 
@@ -549,10 +549,10 @@ Check the render method of \`` + u + "`.";
549
549
  function Na(u) {
550
550
  {
551
551
  if (u !== void 0) {
552
- var x = u.fileName.replace(/^.*[\\\/]/, ""), $ = u.lineNumber;
552
+ var x = u.fileName.replace(/^.*[\\\/]/, ""), T = u.lineNumber;
553
553
  return `
554
554
 
555
- Check your code at ` + x + ":" + $ + ".";
555
+ Check your code at ` + x + ":" + T + ".";
556
556
  }
557
557
  return "";
558
558
  }
@@ -562,10 +562,10 @@ Check your code at ` + x + ":" + $ + ".";
562
562
  {
563
563
  var x = mn();
564
564
  if (!x) {
565
- var $ = typeof u == "string" ? u : u.displayName || u.name;
566
- $ && (x = `
565
+ var T = typeof u == "string" ? u : u.displayName || u.name;
566
+ T && (x = `
567
567
 
568
- Check the top-level render call using <` + $ + ">.");
568
+ Check the top-level render call using <` + T + ">.");
569
569
  }
570
570
  return x;
571
571
  }
@@ -575,12 +575,12 @@ Check the top-level render call using <` + $ + ">.");
575
575
  if (!u._store || u._store.validated || u.key != null)
576
576
  return;
577
577
  u._store.validated = !0;
578
- var $ = Pa(x);
579
- if (fn[$])
578
+ var T = Pa(x);
579
+ if (fn[T])
580
580
  return;
581
- fn[$] = !0;
581
+ fn[T] = !0;
582
582
  var N = "";
583
- u && u._owner && u._owner !== Tt.current && (N = " It was passed a child from " + O(u._owner.type) + "."), Ee(u), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', $, N), Ee(null);
583
+ u && u._owner && u._owner !== Tt.current && (N = " It was passed a child from " + Z(u._owner.type) + "."), Ce(u), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', T, N), Ce(null);
584
584
  }
585
585
  }
586
586
  function hn(u, x) {
@@ -588,17 +588,17 @@ Check the top-level render call using <` + $ + ">.");
588
588
  if (typeof u != "object")
589
589
  return;
590
590
  if (jt(u))
591
- for (var $ = 0; $ < u.length; $++) {
592
- var N = u[$];
591
+ for (var T = 0; T < u.length; T++) {
592
+ var N = u[T];
593
593
  Et(N) && pn(N, x);
594
594
  }
595
595
  else if (Et(u))
596
596
  u._store && (u._store.validated = !0);
597
597
  else if (u) {
598
- var Z = y(u);
599
- if (typeof Z == "function" && Z !== u.entries)
600
- for (var z = Z.call(u), I; !(I = z.next()).done; )
601
- Et(I.value) && pn(I.value, x);
598
+ var O = k(u);
599
+ if (typeof O == "function" && O !== u.entries)
600
+ for (var V = O.call(u), L; !(L = V.next()).done; )
601
+ Et(L.value) && pn(L.value, x);
602
602
  }
603
603
  }
604
604
  }
@@ -607,148 +607,148 @@ Check the top-level render call using <` + $ + ">.");
607
607
  var x = u.type;
608
608
  if (x == null || typeof x == "string")
609
609
  return;
610
- var $;
610
+ var T;
611
611
  if (typeof x == "function")
612
- $ = x.propTypes;
612
+ T = x.propTypes;
613
613
  else if (typeof x == "object" && (x.$$typeof === m || // Note: Memo only checks outer props here.
614
614
  // Inner props are checked in the reconciler.
615
615
  x.$$typeof === d))
616
- $ = x.propTypes;
616
+ T = x.propTypes;
617
617
  else
618
618
  return;
619
- if ($) {
620
- var N = O(x);
621
- ya($, u.props, "prop", N, u);
619
+ if (T) {
620
+ var N = Z(x);
621
+ ya(T, u.props, "prop", N, u);
622
622
  } else if (x.PropTypes !== void 0 && !$t) {
623
623
  $t = !0;
624
- var Z = O(x);
625
- g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Z || "Unknown");
624
+ var O = Z(x);
625
+ g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", O || "Unknown");
626
626
  }
627
627
  typeof x.getDefaultProps == "function" && !x.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
628
628
  }
629
629
  }
630
630
  function Fa(u) {
631
631
  {
632
- for (var x = Object.keys(u.props), $ = 0; $ < x.length; $++) {
633
- var N = x[$];
632
+ for (var x = Object.keys(u.props), T = 0; T < x.length; T++) {
633
+ var N = x[T];
634
634
  if (N !== "children" && N !== "key") {
635
- Ee(u), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", N), Ee(null);
635
+ Ce(u), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", N), Ce(null);
636
636
  break;
637
637
  }
638
638
  }
639
- u.ref !== null && (Ee(u), g("Invalid attribute `ref` supplied to `React.Fragment`."), Ee(null));
639
+ u.ref !== null && (Ce(u), g("Invalid attribute `ref` supplied to `React.Fragment`."), Ce(null));
640
640
  }
641
641
  }
642
- function gn(u, x, $, N, Z, z) {
642
+ function gn(u, x, T, N, O, V) {
643
643
  {
644
- var I = S(u);
645
- if (!I) {
644
+ var L = M(u);
645
+ if (!L) {
646
646
  var D = "";
647
647
  (u === void 0 || typeof u == "object" && u !== null && Object.keys(u).length === 0) && (D += " 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 ie = Na(Z);
649
- ie ? D += ie : D += mn();
648
+ var oe = Na(O);
649
+ oe ? D += oe : D += mn();
650
650
  var X;
651
- u === null ? X = "null" : jt(u) ? X = "array" : u !== void 0 && u.$$typeof === t ? (X = "<" + (O(u.type) || "Unknown") + " />", D = " Did you accidentally export a JSX literal instead of a component?") : X = typeof u, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", X, D);
651
+ u === null ? X = "null" : jt(u) ? X = "array" : u !== void 0 && u.$$typeof === t ? (X = "<" + (Z(u.type) || "Unknown") + " />", D = " Did you accidentally export a JSX literal instead of a component?") : X = typeof u, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", X, D);
652
652
  }
653
- var ee = Ma(u, x, $, Z, z);
653
+ var ee = Ma(u, x, T, O, V);
654
654
  if (ee == null)
655
655
  return ee;
656
- if (I) {
657
- var me = x.children;
658
- if (me !== void 0)
656
+ if (L) {
657
+ var he = x.children;
658
+ if (he !== void 0)
659
659
  if (N)
660
- if (jt(me)) {
661
- for (var Ce = 0; Ce < me.length; Ce++)
662
- hn(me[Ce], u);
663
- Object.freeze && Object.freeze(me);
660
+ if (jt(he)) {
661
+ for (var Se = 0; Se < he.length; Se++)
662
+ hn(he[Se], u);
663
+ Object.freeze && Object.freeze(he);
664
664
  } else
665
665
  g("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(me, u);
667
+ hn(he, u);
668
668
  }
669
669
  return u === r ? Fa(ee) : Aa(ee), ee;
670
670
  }
671
671
  }
672
- function Ra(u, x, $) {
673
- return gn(u, x, $, !0);
672
+ function Ra(u, x, T) {
673
+ return gn(u, x, T, !0);
674
674
  }
675
- function Da(u, x, $) {
676
- return gn(u, x, $, !1);
675
+ function Da(u, x, T) {
676
+ return gn(u, x, T, !1);
677
677
  }
678
678
  var La = Da, Ia = Ra;
679
- De.Fragment = r, De.jsx = La, De.jsxs = Ia;
680
- }()), De;
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] = F(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
  };
689
- return V(() => (window.addEventListener("popstate", n), () => {
689
+ return G(() => (window.addEventListener("popstate", n), () => {
690
690
  window.removeEventListener("popstate", n);
691
691
  }), []), e;
692
- }, Ne = (e, t) => {
693
- const n = te(!1);
694
- V(() => {
692
+ }, Pe = (e, t) => {
693
+ const n = ne(!1);
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 = te(null), i = te(0), o = te(null), c = te([]), m = te(), l = te(), f = te(e), d = te(!0);
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);
700
700
  f.current = e;
701
- var h = typeof window < "u", p = !t && t !== 0 && h;
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 _ = !!(n = n || {}).leading, v = !("trailing" in n) || !!n.trailing, y = "maxWait" in n, k = "debounceOnServer" in n && !!n.debounceOnServer, g = y ? Math.max(+n.maxWait || 0, t) : null;
706
- V(function() {
705
+ var _ = !!(n = n || {}).leading, y = !("trailing" in n) || !!n.trailing, k = "maxWait" in n, v = "debounceOnServer" in n && !!n.debounceOnServer, g = k ? Math.max(+n.maxWait || 0, t) : null;
706
+ G(function() {
707
707
  return d.current = !0, function() {
708
708
  d.current = !1;
709
709
  };
710
710
  }, []);
711
711
  var b = ft(function() {
712
- var w = function(S) {
713
- var E = c.current, W = m.current;
714
- return c.current = m.current = null, i.current = S, l.current = f.current.apply(W, E);
715
- }, C = function(S, E) {
716
- p && cancelAnimationFrame(o.current), o.current = p ? requestAnimationFrame(S) : setTimeout(S, E);
717
- }, M = function(S) {
712
+ var j = function(M) {
713
+ var E = c.current, I = m.current;
714
+ return c.current = m.current = null, i.current = M, l.current = f.current.apply(I, E);
715
+ }, C = function(M, E) {
716
+ h && cancelAnimationFrame(o.current), o.current = h ? requestAnimationFrame(M) : setTimeout(M, E);
717
+ }, S = function(M) {
718
718
  if (!d.current)
719
719
  return !1;
720
- var E = S - s.current;
721
- return !s.current || E >= t || E < 0 || y && S - i.current >= g;
722
- }, L = function(S) {
723
- return o.current = null, v && c.current ? w(S) : (c.current = m.current = null, l.current);
724
- }, R = function S() {
720
+ var E = M - s.current;
721
+ return !s.current || E >= t || E < 0 || k && M - i.current >= g;
722
+ }, Y = function(M) {
723
+ return o.current = null, y && c.current ? j(M) : (c.current = m.current = null, l.current);
724
+ }, F = function M() {
725
725
  var E = Date.now();
726
- if (M(E))
727
- return L(E);
726
+ if (S(E))
727
+ return Y(E);
728
728
  if (d.current) {
729
- var W = t - (E - s.current), O = y ? Math.min(W, g - (E - i.current)) : W;
730
- C(S, O);
729
+ var I = t - (E - s.current), Z = k ? Math.min(I, g - (E - i.current)) : I;
730
+ C(M, Z);
731
731
  }
732
- }, T = function() {
733
- if (h || k) {
734
- var S = Date.now(), E = M(S);
735
- if (c.current = [].slice.call(arguments), m.current = r, s.current = S, E) {
732
+ }, $ = function() {
733
+ if (p || v) {
734
+ var M = Date.now(), E = S(M);
735
+ if (c.current = [].slice.call(arguments), m.current = r, s.current = M, E) {
736
736
  if (!o.current && d.current)
737
- return i.current = s.current, C(R, t), _ ? w(s.current) : l.current;
738
- if (y)
739
- return C(R, t), w(s.current);
737
+ return i.current = s.current, C(F, t), _ ? j(s.current) : l.current;
738
+ if (k)
739
+ return C(F, t), j(s.current);
740
740
  }
741
- return o.current || C(R, t), l.current;
741
+ return o.current || C(F, t), l.current;
742
742
  }
743
743
  };
744
- return T.cancel = function() {
745
- o.current && (p ? cancelAnimationFrame(o.current) : clearTimeout(o.current)), i.current = 0, c.current = s.current = m.current = o.current = null;
746
- }, T.isPending = function() {
744
+ return $.cancel = function() {
745
+ o.current && (h ? cancelAnimationFrame(o.current) : clearTimeout(o.current)), i.current = 0, c.current = s.current = m.current = o.current = null;
746
+ }, $.isPending = function() {
747
747
  return !!o.current;
748
- }, T.flush = function() {
749
- return o.current ? L(Date.now()) : l.current;
750
- }, T;
751
- }, [_, y, t, g, v, p, h, k]);
748
+ }, $.flush = function() {
749
+ return o.current ? Y(Date.now()) : l.current;
750
+ }, $;
751
+ }, [_, k, t, g, y, h, p, v]);
752
752
  return b;
753
753
  }
754
754
  function Zn(e, t, n) {
@@ -756,12 +756,12 @@ function Zn(e, t, n) {
756
756
  return cr(e, t, { maxWait: t, leading: s === void 0 || s, trailing: i === void 0 || i });
757
757
  }
758
758
  let Ct;
759
- const qe = (e = !0, t = !1, n = "window") => {
759
+ const He = (e = !0, t = !1, n = "window") => {
760
760
  if (!e)
761
761
  return;
762
762
  const [r, s] = A.useState(0) || [!1, () => {
763
763
  }];
764
- V(() => (c(), window.addEventListener("resize", m), () => {
764
+ G(() => (c(), window.addEventListener("resize", m), () => {
765
765
  clearTimeout(Ct), m.flush(), window.removeEventListener("resize", m);
766
766
  }), n === "window" ? [] : [n]);
767
767
  const o = () => {
@@ -793,24 +793,24 @@ const qe = (e = !0, t = !1, n = "window") => {
793
793
  const [s, i] = A.useState({ current: 0, past: 0 }) || [!1, () => {
794
794
  }], [o, c] = A.useState({ scrollDown: !1, scrollUp: !1 }) || [!1, () => {
795
795
  }];
796
- V(() => (m(), window.addEventListener("scroll", l), () => {
796
+ G(() => (m(), window.addEventListener("scroll", l), () => {
797
797
  l.flush(), window.removeEventListener("scroll", l);
798
798
  }), []);
799
799
  const m = () => {
800
- const f = window.scrollY, d = s.current, h = f - d, p = h > 0 ? "down" : "up";
801
- if (i({ current: f, past: d }), p === "down") {
802
- f >= e + t.down && !o.scrollDown && (!o.scrollUp || h > t.up) && (n(), c({ scrollUp: !1, scrollDown: !0 }));
800
+ const f = window.scrollY, d = s.current, p = f - d, h = p > 0 ? "down" : "up";
801
+ if (i({ current: f, past: d }), h === "down") {
802
+ f >= e + t.down && !o.scrollDown && (!o.scrollUp || p > t.up) && (n(), c({ scrollUp: !1, scrollDown: !0 }));
803
803
  return;
804
804
  }
805
- Math.abs(h) >= t.up && !o.scrollUp && (r(), c({ scrollUp: !0, scrollDown: !1 }));
805
+ Math.abs(p) >= t.up && !o.scrollUp && (r(), c({ scrollUp: !0, scrollDown: !1 }));
806
806
  }, l = Zn(() => {
807
807
  m();
808
808
  }, 250);
809
809
  return s;
810
810
  }, dr = (e = [], t = !0) => {
811
811
  e = Array.isArray(e) ? e : [e];
812
- const n = te(!1);
813
- Ne(() => {
812
+ const n = ne(!1);
813
+ Pe(() => {
814
814
  if (window && window.location && window.location.hash) {
815
815
  if (n.current)
816
816
  return;
@@ -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, _e = (e, t, n, r, s = {}) => {
1202
+ }, Symbol.toStringTag, { value: "Module" })), zn = (e) => e in Qt, be = (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)), at = (e, t) => A.Children.map(e, (n) => A.cloneElement(n, {
1231
1231
  ...t
1232
- })), q = ({
1232
+ })), B = ({
1233
1233
  variant: e = "primary",
1234
1234
  size: t = "medium",
1235
1235
  styling: n = { muted: !1, fullWidth: !1 },
@@ -1243,37 +1243,37 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1243
1243
  children: f = !1,
1244
1244
  ...d
1245
1245
  }) => {
1246
- const p = qe(typeof t == "object");
1247
- if (typeof t == "object" && typeof p == "number") {
1248
- const y = Object.assign({}, t), k = qn(Object.keys(y));
1249
- t = Hn(p, k, y);
1246
+ const h = He(typeof t == "object");
1247
+ if (typeof t == "object" && typeof h == "number") {
1248
+ const k = Object.assign({}, t), v = qn(Object.keys(k));
1249
+ t = Hn(h, v, k);
1250
1250
  }
1251
1251
  const _ = [];
1252
1252
  typeof t == "string" && _.push(t), r && (_.push("icon"), typeof r == "object" ? (_.push(r.icon), r.position ? _.push(r.position) : _.push("left"), r.hover && _.push(`hover_${r.hover}`), r.animate && (_.push("animate"), typeof r.animate == "string" && _.push(r.animate))) : (_.push(r), !r.includes("right") && !r.includes("left") && _.push("left"))), n.muted && _.push("muted"), n.fullWidth && _.push("full-width");
1253
- const v = {
1253
+ const y = {
1254
1254
  ...d,
1255
- className: j(e, c, _, {
1255
+ className: w(e, c, _, {
1256
1256
  "no-text": !f,
1257
1257
  disabled: m,
1258
1258
  button: s
1259
1259
  }),
1260
- onClick: (y) => {
1261
- (!s || s[0] === "#") && o && (y.preventDefault(), y.stopPropagation()), o && o(y);
1260
+ onClick: (k) => {
1261
+ (!s || s[0] === "#") && o && (k.preventDefault(), k.stopPropagation()), o && o(k);
1262
1262
  },
1263
1263
  disabled: typeof m == "object" && "isClickable" in m ? !m.isClickable : m
1264
1264
  };
1265
- return s && (i = "a", v.href = s), A.createElement(
1265
+ return s && (i = "a", y.href = s), A.createElement(
1266
1266
  i,
1267
- v,
1268
- f || (l ? /* @__PURE__ */ a.jsx(se, { showOnFocus: !1, children: l }) : null)
1267
+ y,
1268
+ f || (l ? /* @__PURE__ */ a.jsx(ae, { 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(q, { ...i }, o) : /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(q, { ...i }) }, o));
1272
- return A.createElement(r, { className: j("button-wrapper", t), ...n, children: s });
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 A.createElement(r, { className: w("button-wrapper", t), ...n, children: s });
1273
1273
  };
1274
1274
  const Te = ({ className: e = "", maxWidth: t = !1 }) => {
1275
1275
  const n = t ? { "--max-width": `${t / 16}rem` } : {};
1276
- return /* @__PURE__ */ a.jsx("hr", { className: j(e, { "has-max-width": t }), style: n });
1276
+ return /* @__PURE__ */ a.jsx("hr", { className: w(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: j("gtm-trackable", r),
1293
+ className: w("gtm-trackable", r),
1294
1294
  ...m,
1295
1295
  children: t
1296
1296
  }
@@ -1427,14 +1427,14 @@ const Wn = ({ image: e, className: t, testId: n }) => {
1427
1427
  loading: l,
1428
1428
  decoding: f,
1429
1429
  fetchPriority: d
1430
- } = e, { range: h, sizes: p } = kr(e), _ = St({ format: "avif", query: o, range: h, url: c }), v = St({ format: "webp", query: o, range: h, url: c }), y = St({ format: "", query: o, range: h, url: c });
1430
+ } = e, { range: p, sizes: h } = kr(e), _ = 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",
1434
1434
  {
1435
1435
  type: "image/avif",
1436
1436
  srcSet: _,
1437
- sizes: p,
1437
+ sizes: h,
1438
1438
  "data-testid": "source"
1439
1439
  }
1440
1440
  ),
@@ -1442,16 +1442,16 @@ const Wn = ({ image: e, className: t, testId: n }) => {
1442
1442
  "source",
1443
1443
  {
1444
1444
  type: "image/webp",
1445
- srcSet: v,
1446
- sizes: p,
1445
+ srcSet: y,
1446
+ sizes: h,
1447
1447
  "data-testid": "source"
1448
1448
  }
1449
1449
  ),
1450
1450
  /* @__PURE__ */ a.jsx(
1451
1451
  "img",
1452
1452
  {
1453
- srcSet: y,
1454
- sizes: p,
1453
+ srcSet: k,
1454
+ sizes: h,
1455
1455
  src: c,
1456
1456
  alt: r,
1457
1457
  loading: l || "lazy",
@@ -1464,10 +1464,10 @@ const Wn = ({ image: e, className: t, testId: n }) => {
1464
1464
  )
1465
1465
  ] });
1466
1466
  };
1467
- let Le = !1;
1467
+ let Ie = !1;
1468
1468
  const wr = ({ isOpen: e = !1, isLoading: t = !1, children: n }) => {
1469
- const r = P(), s = te(null), [i, o] = F("hidden");
1470
- V(() => {
1469
+ const r = P(), s = ne(null), [i, o] = R("hidden");
1470
+ G(() => {
1471
1471
  const m = s.current;
1472
1472
  if (m)
1473
1473
  return m.addEventListener("transitionend", c), () => {
@@ -1475,17 +1475,17 @@ const wr = ({ isOpen: e = !1, isLoading: t = !1, children: n }) => {
1475
1475
  };
1476
1476
  }, []);
1477
1477
  const c = ({ propertyName: m }) => {
1478
- m === "opacity" && (Le !== !1 && clearTimeout(Le), o((l) => l === "opening" ? "open" : l === "closing" ? "closed" : l === "closed" ? "hidden" : l));
1478
+ m === "opacity" && (Ie !== !1 && clearTimeout(Ie), o((l) => l === "opening" ? "open" : l === "closing" ? "closed" : l === "closed" ? "hidden" : l));
1479
1479
  };
1480
- return Ne(() => {
1481
- Le !== !1 && clearTimeout(Le);
1480
+ return Pe(() => {
1481
+ Ie !== !1 && clearTimeout(Ie);
1482
1482
  let m = "open";
1483
- e ? o("opening") : (o("closing"), m = "hidden"), Le = setTimeout(() => {
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: 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 });
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 });
1487
1487
  };
1488
- const _t = ({ children: e, className: t = "", ...n }) => /* @__PURE__ */ a.jsx("section", { className: j("full-width-section", t), ...n, children: e });
1488
+ const _t = ({ children: e, className: t = "", ...n }) => /* @__PURE__ */ a.jsx("section", { className: w("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: j("download-section", n), children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1502
+ }), /* @__PURE__ */ a.jsx(_t, { className: w("download-section", n), children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1503
1503
  A.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: j("logos", n), children: [
1515
+ return /* @__PURE__ */ a.jsxs("div", { className: w("logos", n), children: [
1516
1516
  e && A.createElement(s.element, { className: "title" }, s.text),
1517
1517
  /* @__PURE__ */ a.jsx(
1518
1518
  "ul",
1519
1519
  {
1520
- className: j({ "two-col": r === 2 || r === 4, "three-col": r === 5 || r <= 10 && r % 3 === 0 }),
1520
+ className: w({ "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)
@@ -1586,11 +1586,11 @@ const Tr = [
1586
1586
  if (!i[d]) {
1587
1587
  if (typeof t[d] == "object") {
1588
1588
  f[d] = t[d];
1589
- const { text: h, element: p } = t[d];
1590
- if (p && Tr.includes(p.toLowerCase()))
1589
+ const { text: p, element: h } = t[d];
1590
+ if (h && Tr.includes(h.toLowerCase()))
1591
1591
  return;
1592
1592
  f[d] = {
1593
- text: h,
1593
+ text: p,
1594
1594
  element: l[d]
1595
1595
  };
1596
1596
  return;
@@ -1602,12 +1602,12 @@ const Tr = [
1602
1602
  }
1603
1603
  }), o && o.link && o.link[0] === "#" && (o.props || (o.props = {}), o.props.onClick = (d) => {
1604
1604
  d.preventDefault(), d.stopPropagation();
1605
- const h = document.getElementById(o.link.substring(1));
1606
- h && h.scrollIntoView({ behavior: "smooth" });
1605
+ const p = document.getElementById(o.link.substring(1));
1606
+ p && p.scrollIntoView({ behavior: "smooth" });
1607
1607
  }), /* @__PURE__ */ a.jsx(
1608
1608
  _t,
1609
1609
  {
1610
- className: j("banner-section", r, s, e, {
1610
+ className: w("banner-section", r, s, e, {
1611
1611
  "has-image": n,
1612
1612
  "has-extra-spacing": s === "normal" && f.eyebrow && f.title
1613
1613
  }),
@@ -1615,18 +1615,18 @@ const Tr = [
1615
1615
  /* @__PURE__ */ a.jsxs("div", { className: "content-wrapper", children: [
1616
1616
  m.map((d) => {
1617
1617
  if (f[d] && typeof f[d] == "object") {
1618
- const { text: h, element: p = "" } = f[d];
1618
+ const { text: p, element: h = "" } = f[d];
1619
1619
  return A.createElement(
1620
- p.toLowerCase(),
1620
+ h.toLowerCase(),
1621
1621
  { key: d, className: d },
1622
- h
1622
+ p
1623
1623
  );
1624
1624
  }
1625
1625
  return null;
1626
1626
  }),
1627
1627
  c,
1628
1628
  o && o.text && o.link && /* @__PURE__ */ a.jsx(
1629
- q,
1629
+ B,
1630
1630
  {
1631
1631
  variant: n || r === "light" ? "primary" : "secondary",
1632
1632
  size: { mobile: "medium", 768: "large" },
@@ -1640,17 +1640,17 @@ const Tr = [
1640
1640
  ] })
1641
1641
  }
1642
1642
  );
1643
- }, Ci = Ae($r);
1643
+ }, Ci = Fe($r);
1644
1644
  const Si = ({
1645
1645
  variant: e = "primary",
1646
1646
  button: t = null,
1647
1647
  title: n,
1648
1648
  text: r,
1649
1649
  gtmContext: s
1650
- }) => !n && !r ? null : /* @__PURE__ */ a.jsxs("aside", { className: j("marketing-block", e), children: [
1650
+ }) => !n && !r ? null : /* @__PURE__ */ a.jsxs("aside", { className: w("marketing-block", e), children: [
1651
1651
  n && /* @__PURE__ */ a.jsx("p", { className: "title", children: n }),
1652
1652
  r && /* @__PURE__ */ a.jsx("p", { children: r }),
1653
- t && /* @__PURE__ */ a.jsx(q, { 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(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 })
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,16 +1700,16 @@ const Mr = ({ children: e, user: t }) => t.isLoading ? null : process.env.REACT_
1700
1700
  return /* @__PURE__ */ a.jsx(Ha, { locale: r, messages: s, children: e });
1701
1701
  }, ke = Gt({ isLoading: !0 });
1702
1702
  function Jt() {
1703
- return fe(ke);
1703
+ return ge(ke);
1704
1704
  }
1705
1705
  const Pr = ({ children: e, user: t }) => /* @__PURE__ */ a.jsx(ke.Provider, { value: t, children: e }), Mi = ({ bootstrap: e, children: t, intl: n }) => {
1706
- const [r, s] = F({ isLoading: !0 });
1707
- return V(() => {
1706
+ const [r, s] = R({ isLoading: !0 });
1707
+ return G(() => {
1708
1708
  e().then((i) => {
1709
1709
  s({ ...i, isLoading: !1 }), br(5e3);
1710
1710
  }).catch(() => s({ isLoading: !1 }));
1711
1711
  }, []), /* @__PURE__ */ a.jsx(Nr, { locale: n == null ? void 0 : n.locale, messages: n == null ? void 0 : n.messages, children: /* @__PURE__ */ a.jsx(Ga, { children: /* @__PURE__ */ a.jsx(Pr, { user: r, children: /* @__PURE__ */ a.jsx(Er, { children: /* @__PURE__ */ a.jsx(Mr, { user: r, children: t }) }) }) }) });
1712
- }, rt = "https://storage.googleapis.com/apolitical-assets/", Oe = {
1712
+ }, rt = "https://storage.googleapis.com/apolitical-assets/", Be = {
1713
1713
  general: "hello@apolitical.co",
1714
1714
  support: "concierge@apolitical.co",
1715
1715
  "data-protection": {
@@ -1719,12 +1719,12 @@ const Pr = ({ children: e, user: t }) => /* @__PURE__ */ a.jsx(ke.Provider, { va
1719
1719
  }, Ni = "200,000+";
1720
1720
  const Vn = ({ label: e = !1, className: t = "", children: n }) => {
1721
1721
  const r = P();
1722
- return /* @__PURE__ */ a.jsxs("details", { className: j("collapsible-section", t), children: [
1722
+ return /* @__PURE__ */ a.jsxs("details", { className: w("collapsible-section", t), children: [
1723
1723
  /* @__PURE__ */ a.jsx("summary", { children: e || r.formatMessage({ id: "collapsibleSection_summary" }) }),
1724
1724
  /* @__PURE__ */ a.jsx("div", { className: "content", children: n })
1725
1725
  ] });
1726
1726
  };
1727
- const we = ({ variant: e = "primary", className: t = "", children: n, ...r }) => /* @__PURE__ */ a.jsx("div", { className: j("highlighted-text-box", e, t), ...r, children: n });
1727
+ const we = ({ variant: e = "primary", className: t = "", children: n, ...r }) => /* @__PURE__ */ a.jsx("div", { className: w("highlighted-text-box", e, t), ...r, children: n });
1728
1728
  const bt = ({
1729
1729
  variant: e = "empty",
1730
1730
  text: t = !1,
@@ -1732,10 +1732,10 @@ const bt = ({
1732
1732
  className: r = ""
1733
1733
  }) => {
1734
1734
  let s = n && !!Object.keys(n).length;
1735
- const i = typeof n == "object" && "breakpoints" in n, o = qe(i);
1735
+ const i = typeof n == "object" && "breakpoints" in n, o = He(i);
1736
1736
  if (i && typeof n == "object" && typeof o == "number") {
1737
- const d = Object.assign({}, n.breakpoints), h = qn(Object.keys(d));
1738
- s = Hn(o, h, d);
1737
+ const d = Object.assign({}, n.breakpoints), p = qn(Object.keys(d));
1738
+ s = Hn(o, p, d);
1739
1739
  }
1740
1740
  const {
1741
1741
  breakpoints: c,
@@ -1747,11 +1747,11 @@ const bt = ({
1747
1747
  we,
1748
1748
  {
1749
1749
  variant: "subtle",
1750
- className: j("empty-state-box", e, r),
1750
+ className: w("empty-state-box", e, r),
1751
1751
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1752
1752
  t && /* @__PURE__ */ a.jsx(pt, { options: { forceBlock: !0 }, children: t }),
1753
1753
  s && typeof n == "object" && (l || /* @__PURE__ */ a.jsx(
1754
- q,
1754
+ B,
1755
1755
  {
1756
1756
  ...f,
1757
1757
  variant: n.variant ? n.variant : "secondary",
@@ -1765,7 +1765,7 @@ const bt = ({
1765
1765
  const Wt = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx("p", { ...t, children: e }), Yn = { q: Wt, blockquote: Wt };
1766
1766
  for (let e = 1; e <= 6; e++)
1767
1767
  Yn[`h${e}`] = { component: Wt, props: { className: "title" } };
1768
- 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: [
1768
+ 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: [
1769
1769
  n && /* @__PURE__ */ a.jsx("p", { className: "title", children: n }),
1770
1770
  typeof r == "string" ? /* @__PURE__ */ a.jsx(
1771
1771
  pt,
@@ -1780,45 +1780,45 @@ const Ar = ({ type: e = "default", className: t = "", heading: n = !1, children:
1780
1780
  ) : /* @__PURE__ */ a.jsx("p", { children: r })
1781
1781
  ] });
1782
1782
  const Pi = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children: s }) => {
1783
- const i = P(), o = te(null), [c, m] = F(""), [l, f] = F("closed");
1784
- V(() => {
1785
- const p = o.current;
1786
- if (p)
1787
- return p.addEventListener("transitionend", d), () => {
1788
- p.removeEventListener("transitionend", d);
1783
+ const i = P(), o = ne(null), [c, m] = R(""), [l, f] = R("closed");
1784
+ G(() => {
1785
+ const h = o.current;
1786
+ if (h)
1787
+ return h.addEventListener("transitionend", d), () => {
1788
+ h.removeEventListener("transitionend", d);
1789
1789
  };
1790
- }, []), V(() => {
1790
+ }, []), G(() => {
1791
1791
  if (!r || typeof r != "string")
1792
1792
  return;
1793
- const p = r.split(`
1793
+ const h = r.split(`
1794
1794
  `);
1795
- m(p.length < 3 ? `${r.substring(0, 400)}...` : p.slice(0, 3).join(`
1795
+ m(h.length < 3 ? `${r.substring(0, 400)}...` : h.slice(0, 3).join(`
1796
1796
  `));
1797
- }, [r]), V(() => {
1797
+ }, [r]), G(() => {
1798
1798
  l === "ready-to-close" && f("closing");
1799
1799
  }, [l]);
1800
- const d = ({ propertyName: p }) => {
1801
- p === "max-height" && f((_) => _ === "opening" ? "open" : _ === "closing" ? "closed" : _);
1800
+ const d = ({ propertyName: h }) => {
1801
+ h === "max-height" && f((_) => _ === "opening" ? "open" : _ === "closing" ? "closed" : _);
1802
1802
  };
1803
1803
  if (!r)
1804
1804
  return null;
1805
- const h = ["opening", "open"].includes(l);
1806
- return /* @__PURE__ */ a.jsxs(we, { variant: "subtle", className: j("hide-show-text-box", e), children: [
1807
- /* @__PURE__ */ a.jsxs("div", { ref: o, className: j("content", l), children: [
1805
+ const p = ["opening", "open"].includes(l);
1806
+ return /* @__PURE__ */ a.jsxs(we, { variant: "subtle", className: w("hide-show-text-box", e), children: [
1807
+ /* @__PURE__ */ a.jsxs("div", { ref: o, className: w("content", l), children: [
1808
1808
  /* @__PURE__ */ a.jsx(pt, { options: { forceBlock: !0 }, children: l === "closed" ? c : r }),
1809
1809
  l !== "closed" && s
1810
1810
  ] }),
1811
1811
  /* @__PURE__ */ a.jsx("p", { className: "cta", children: /* @__PURE__ */ a.jsx(
1812
- q,
1812
+ B,
1813
1813
  {
1814
1814
  variant: "tertiary",
1815
1815
  icon: { icon: "navigation_arrow", position: "left", animate: !0 },
1816
1816
  styling: { muted: !0 },
1817
- className: j({ "rotate-180": h }),
1817
+ className: w({ "rotate-180": p }),
1818
1818
  onClick: () => {
1819
- f(h ? "ready-to-close" : "opening");
1819
+ f(p ? "ready-to-close" : "opening");
1820
1820
  },
1821
- children: h ? n || i.formatMessage({ id: "hideShowTextBox_hide" }) : t || i.formatMessage({ id: "hideShowTextBox_show" })
1821
+ children: p ? n || i.formatMessage({ id: "hideShowTextBox_hide" }) : t || i.formatMessage({ id: "hideShowTextBox_show" })
1822
1822
  }
1823
1823
  ) })
1824
1824
  ] });
@@ -1872,7 +1872,7 @@ const Pi = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
1872
1872
  let r = "default";
1873
1873
  const s = e.src;
1874
1874
  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: [
1875
- /* @__PURE__ */ a.jsx(se, { children: /* @__PURE__ */ a.jsx("a", { href: `#content-after-iframe-${n}`, children: t.formatMessage({ id: `markdown_skip${r === "default" ? "" : `_${r}`}` }) }) }),
1875
+ /* @__PURE__ */ a.jsx(ae, { children: /* @__PURE__ */ a.jsx("a", { href: `#content-after-iframe-${n}`, children: t.formatMessage({ id: `markdown_skip${r === "default" ? "" : `_${r}`}` }) }) }),
1876
1876
  /* @__PURE__ */ a.jsx("iframe", { ...e, title: t.formatMessage({ id: `markdown_iframe${r === "default" ? "" : `_${r}`}` }) }),
1877
1877
  /* @__PURE__ */ a.jsx("span", { id: `content-after-iframe-${n}`, tabIndex: -1 })
1878
1878
  ] });
@@ -1893,7 +1893,7 @@ const Pi = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
1893
1893
  else
1894
1894
  break;
1895
1895
  }
1896
- return s ? (n = { ...n, className: "button primary medium" }, /* @__PURE__ */ a.jsx("p", { className: "center", children: /* @__PURE__ */ a.jsx(q, { variant: "primary", size: "medium", ...n, children: r }) })) : /* @__PURE__ */ a.jsx("a", { ...n, children: r });
1896
+ 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 });
1897
1897
  }, Zr = ({ children: e }) => /* @__PURE__ */ a.jsx("span", { children: e });
1898
1898
  const jn = ({ className: e = "", options: t = {}, children: n }) => {
1899
1899
  n = n.replace(/^<br\/?>/, "");
@@ -1915,7 +1915,7 @@ const jn = ({ className: e = "", options: t = {}, children: n }) => {
1915
1915
  iframe: Or
1916
1916
  }
1917
1917
  };
1918
- return /* @__PURE__ */ a.jsx("div", { className: j("markdown-text", e), children: /* @__PURE__ */ a.jsx(pt, { options: { ...r, ...t }, children: n }) });
1918
+ return /* @__PURE__ */ a.jsx("div", { className: w("markdown-text", e), children: /* @__PURE__ */ a.jsx(pt, { options: { ...r, ...t }, children: n }) });
1919
1919
  };
1920
1920
  const qr = ({
1921
1921
  maxWidth: e = !1,
@@ -1925,8 +1925,8 @@ const qr = ({
1925
1925
  className: s = ""
1926
1926
  }) => {
1927
1927
  const i = e ? { "--max-width": `${e / 16}rem` } : {};
1928
- return /* @__PURE__ */ a.jsxs("section", { className: j("page-heading", s), children: [
1929
- /* @__PURE__ */ a.jsxs("div", { className: j("content", { "has-max-width": e }), style: i, children: [
1928
+ return /* @__PURE__ */ a.jsxs("section", { className: w("page-heading", s), children: [
1929
+ /* @__PURE__ */ a.jsxs("div", { className: w("content", { "has-max-width": e }), style: i, children: [
1930
1930
  t && t.text && A.createElement(t.element || "h1", { className: "title" }, t.text),
1931
1931
  n && n.text && A.createElement(
1932
1932
  n.element || "h2",
@@ -1943,12 +1943,12 @@ const st = ({
1943
1943
  className: n = "",
1944
1944
  children: r,
1945
1945
  ...s
1946
- }) => /* @__PURE__ */ a.jsx("span", { className: j("pill", e, t, n), ...s, children: r });
1947
- const Vt = ({ element: e = "p", children: t = null, className: n = "", ...r }) => A.createElement(e, { ...r, className: j("status-banner text-small", n), "aria-live": "assertive" }, t);
1946
+ }) => /* @__PURE__ */ a.jsx("span", { className: w("pill", e, t, n), ...s, children: r });
1947
+ const Vt = ({ element: e = "p", children: t = null, className: n = "", ...r }) => A.createElement(e, { ...r, className: w("status-banner text-small", n), "aria-live": "assertive" }, t);
1948
1948
  const Hr = ({ progress: e = 0, text: t = !1, className: n = "" }) => {
1949
1949
  const r = P(), s = e > 75 ? 100 : e > 50 ? 75 : e > 25 ? 50 : e > 5 ? 25 : 0, i = { "--progress": `${e}%` };
1950
- return /* @__PURE__ */ a.jsx("span", { className: j(`progress-bar section-${s}`, n), style: i, children: /* @__PURE__ */ a.jsx(se, { children: t ? `${e} ${t}` : r.formatMessage({ id: "progressBar" }, { number: e }) }) });
1951
- }, Ur = Ae(Hr);
1950
+ 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 }) }) });
1951
+ }, Ur = Fe(Hr);
1952
1952
  const Mt = "loadingBlock_", zr = ({ progress: e = 0, steps: t = !1, className: n = "" }) => {
1953
1953
  const r = P();
1954
1954
  t || (t = {
@@ -1964,7 +1964,7 @@ const Mt = "loadingBlock_", zr = ({ progress: e = 0, steps: t = !1, className: n
1964
1964
  return /* @__PURE__ */ a.jsxs(
1965
1965
  we,
1966
1966
  {
1967
- className: j("loading-block", n, { "has-icon": s && t[s].icon }),
1967
+ className: w("loading-block", n, { "has-icon": s && t[s].icon }),
1968
1968
  variant: "subtle",
1969
1969
  style: o,
1970
1970
  children: [
@@ -1973,8 +1973,8 @@ const Mt = "loadingBlock_", zr = ({ progress: e = 0, steps: t = !1, className: n
1973
1973
  ]
1974
1974
  }
1975
1975
  );
1976
- }, Ai = Ae(zr);
1977
- const pe = ({ element: e = "div", className: t = "", ...n }) => /* @__PURE__ */ a.jsx(Bn, { element: e, className: j("loading-placeholder", t), ...n });
1976
+ }, Ai = Fe(zr);
1977
+ const _e = ({ element: e = "div", className: t = "", ...n }) => /* @__PURE__ */ a.jsx(Bn, { element: e, className: w("loading-placeholder", t), ...n });
1978
1978
  const Yt = {
1979
1979
  header: ["logo", "link", "link", "search"],
1980
1980
  sidebar: ["text", "text", "text", "text", "text"],
@@ -1992,7 +1992,7 @@ const Yt = {
1992
1992
  "cards-section",
1993
1993
  "footer"
1994
1994
  ]
1995
- }, 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(pe, { 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) => {
1995
+ }, 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) => {
1996
1996
  const t = e && e.toUpperCase().split(" ");
1997
1997
  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) : "";
1998
1998
  }, Ye = ["#5AB6A3", "#A2D7AF", "#806056", "#3962B3"], Wr = (e) => {
@@ -2004,7 +2004,7 @@ const Yt = {
2004
2004
  if (r <= t * (s + 1))
2005
2005
  return Ye[s];
2006
2006
  };
2007
- const wn = 256, He = ({
2007
+ const wn = 256, Ue = ({
2008
2008
  className: e = "",
2009
2009
  src: t = "",
2010
2010
  name: n,
@@ -2013,22 +2013,22 @@ const wn = 256, He = ({
2013
2013
  height: i = wn,
2014
2014
  ...o
2015
2015
  }) => {
2016
- const [c, m] = F(!1), l = te(null);
2017
- V(() => {
2016
+ const [c, m] = R(!1), l = ne(null);
2017
+ G(() => {
2018
2018
  const d = l.current;
2019
2019
  if (!d)
2020
2020
  return;
2021
- const h = d.getContext("2d");
2022
- if (!h)
2021
+ const p = d.getContext("2d");
2022
+ if (!p)
2023
2023
  return;
2024
- const p = s, _ = i;
2025
- typeof window < "u" && window.devicePixelRatio && (d.width = p * window.devicePixelRatio, d.height = _ * window.devicePixelRatio, h.scale(window.devicePixelRatio, window.devicePixelRatio)), h.fillStyle = Wr(n), h.fillRect(0, 0, p, _), h.font = `${p / 3}px Arial`, h.textAlign = "center", h.fillStyle = "white", h.fillText(Qn(n), p / 2, _ / 1.6);
2024
+ const h = s, _ = i;
2025
+ typeof window < "u" && window.devicePixelRatio && (d.width = h * window.devicePixelRatio, d.height = _ * window.devicePixelRatio, p.scale(window.devicePixelRatio, window.devicePixelRatio)), p.fillStyle = Wr(n), p.fillRect(0, 0, h, _), p.font = `${h / 3}px Arial`, p.textAlign = "center", p.fillStyle = "white", p.fillText(Qn(n), h / 2, _ / 1.6);
2026
2026
  }, [n]);
2027
2027
  let f = !1;
2028
2028
  return t && t !== "" && !c && (t.includes("http") || t.includes("//")) && (f = !0), /* @__PURE__ */ a.jsx(
2029
2029
  "figure",
2030
2030
  {
2031
- className: j("profile-picture", e, { error: c }),
2031
+ className: w("profile-picture", e, { error: c }),
2032
2032
  ...o,
2033
2033
  children: f ? /* @__PURE__ */ a.jsx(
2034
2034
  "img",
@@ -2066,7 +2066,7 @@ const wn = 256, He = ({
2066
2066
  return "";
2067
2067
  const c = `${e}${s && i ? ` — ${t}` : t}`;
2068
2068
  let m = `${c}${(s || i) && o ? `, ${n}` : n}`;
2069
- return m.length > r && (m = c), m.length > r && (m = Me(m, r)), m;
2069
+ return m.length > r && (m = c), m.length > r && (m = Ne(m, r)), m;
2070
2070
  };
2071
2071
  const Xt = ({
2072
2072
  element: e = "div",
@@ -2078,9 +2078,9 @@ const Xt = ({
2078
2078
  }) => {
2079
2079
  const o = P(), c = Jn(t);
2080
2080
  c.name || (c.name = o.formatMessage({ id: `member_${typeof t == "string" ? t : "community"}` }));
2081
- const { name: m, url: l, image: f } = c, d = Vr(c), h = n && n.createdAt ? zt(n.createdAt) : !1, p = n && n.createdAt ? Un(n.createdAt) : "";
2081
+ 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) : "";
2082
2082
  return A.createElement(e, {
2083
- className: j("member text-medium", i),
2083
+ className: w("member text-medium", i),
2084
2084
  children: /* @__PURE__ */ a.jsxs(
2085
2085
  gt,
2086
2086
  {
@@ -2091,11 +2091,11 @@ const Xt = ({
2091
2091
  _ == null || _.stopPropagation();
2092
2092
  },
2093
2093
  children: [
2094
- /* @__PURE__ */ a.jsx(He, { name: m, src: f }),
2094
+ /* @__PURE__ */ a.jsx(Ue, { name: m, src: f }),
2095
2095
  /* @__PURE__ */ a.jsxs("p", { className: "details", children: [
2096
2096
  /* @__PURE__ */ a.jsx("strong", { children: m }),
2097
2097
  n && /* @__PURE__ */ a.jsxs("span", { className: "additional-content", children: [
2098
- n.createdAt && h && /* @__PURE__ */ a.jsx("span", { className: "date", title: p, "aria-label": p, children: o.formatMessage({ id: `dates_${h.path}` }, { number: h.number }) }),
2098
+ n.createdAt && p && /* @__PURE__ */ a.jsx("span", { className: "date", title: h, "aria-label": h, children: o.formatMessage({ id: `dates_${p.path}` }, { number: p.number }) }),
2099
2099
  n.didEdit && /* @__PURE__ */ a.jsx("em", { children: o.formatMessage({ id: "discussion_edited" }) })
2100
2100
  ] }),
2101
2101
  d && /* @__PURE__ */ a.jsx("small", { children: d })
@@ -2124,39 +2124,39 @@ const Tn = {
2124
2124
  const f = P();
2125
2125
  return !n || n.length === 0 ? null : A.createElement(e, {
2126
2126
  ...l,
2127
- className: j("contributors", m, s, { "has-gap": i }),
2127
+ className: w("contributors", m, s, { "has-gap": i }),
2128
2128
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2129
- /* @__PURE__ */ a.jsx("ul", { children: n.map((d, h) => {
2130
- let p, _ = "";
2131
- if (h < c) {
2132
- const { name: v = "", image: y = "" } = Jn(d);
2129
+ /* @__PURE__ */ a.jsx("ul", { children: n.map((d, p) => {
2130
+ let h, _ = "";
2131
+ if (p < c) {
2132
+ const { name: y = "", image: k = "" } = Jn(d);
2133
2133
  if (o)
2134
- return /* @__PURE__ */ a.jsx(pe, { element: "li", className: "contributor" }, h);
2135
- p = /* @__PURE__ */ a.jsx(
2136
- He,
2134
+ return /* @__PURE__ */ a.jsx(_e, { element: "li", className: "contributor" }, p);
2135
+ h = /* @__PURE__ */ a.jsx(
2136
+ Ue,
2137
2137
  {
2138
- name: v,
2139
- src: y,
2138
+ name: y,
2139
+ src: k,
2140
2140
  width: Tn[s || "medium"],
2141
2141
  height: Tn[s || "medium"]
2142
2142
  }
2143
2143
  );
2144
- } else if (h === c) {
2145
- const v = (t || n.length) - c;
2146
- p = /* @__PURE__ */ a.jsxs(
2144
+ } else if (p === c) {
2145
+ const y = (t || n.length) - c;
2146
+ h = /* @__PURE__ */ a.jsxs(
2147
2147
  "small",
2148
2148
  {
2149
- className: j({ "large-number": v > 99 }),
2149
+ className: w({ "large-number": y > 99 }),
2150
2150
  children: [
2151
2151
  "+",
2152
- _r(v, 0)
2152
+ _r(y, 0)
2153
2153
  ]
2154
2154
  }
2155
2155
  ), _ = "number-left";
2156
2156
  }
2157
- return p ? /* @__PURE__ */ a.jsx("li", { className: j("contributor", _), children: p }, h) : null;
2157
+ return h ? /* @__PURE__ */ a.jsx("li", { className: w("contributor", _), children: h }, p) : null;
2158
2158
  }) }),
2159
- 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]}` }) : Me(n[0].name || "", 20) : null })
2159
+ 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 })
2160
2160
  ] })
2161
2161
  });
2162
2162
  }, Yr = ({ type: e, data: t }) => {
@@ -2277,43 +2277,43 @@ const Tn = {
2277
2277
  }
2278
2278
  }, Gr = ({ data: e, cta: t, link: n, gtmContext: r }) => {
2279
2279
  var _;
2280
- const s = P(), [i, o] = F({
2280
+ const s = P(), [i, o] = R({
2281
2281
  loading: !1,
2282
2282
  registered: e.registered || !1
2283
2283
  });
2284
- V(() => {
2285
- e.registered && o((v) => ({ ...v, registered: !0 }));
2284
+ G(() => {
2285
+ e.registered && o((y) => ({ ...y, registered: !0 }));
2286
2286
  }, [e.registered]);
2287
2287
  const { startDate: c, dateHasPassed: m, pill: l, slug: f } = e, d = e.contentType;
2288
- let h = "";
2289
- if ((_ = it[d]) != null && _.gtmEvent && (h = it[d].gtmEvent), c && m)
2288
+ let p = "";
2289
+ if ((_ = it[d]) != null && _.gtmEvent && (p = it[d].gtmEvent), c && m)
2290
2290
  return /* @__PURE__ */ a.jsx(
2291
2291
  "a",
2292
2292
  {
2293
2293
  href: n,
2294
2294
  className: "details additional-link gtm-trackable",
2295
2295
  "data-gtm-event-context": `${r}-CarouselCard`,
2296
- "data-gtm-event-type": `${h}-click`,
2296
+ "data-gtm-event-type": `${p}-click`,
2297
2297
  children: s.formatMessage({ id: "card_watch" })
2298
2298
  }
2299
2299
  );
2300
2300
  if (d === "people")
2301
2301
  return /* @__PURE__ */ a.jsx(
2302
- q,
2302
+ B,
2303
2303
  {
2304
2304
  variant: "tertiary",
2305
2305
  size: "small",
2306
2306
  href: n,
2307
2307
  className: "gtm-trackable",
2308
2308
  "data-gtm-event-context": `${r}-Card-Button`,
2309
- "data-gtm-event-type": `${h}-click`,
2309
+ "data-gtm-event-type": `${p}-click`,
2310
2310
  children: s.formatMessage({ id: "card_cta_people" })
2311
2311
  }
2312
2312
  );
2313
- const p = ["microcourse", "event"];
2314
- if (t && t.onClick && p.includes(d) && l !== "premium") {
2315
- const v = i.loading || i.registered, y = async (k) => {
2316
- if (k.preventDefault(), k.stopPropagation(), !(v || !t || !t.onClick)) {
2313
+ const h = ["microcourse", "event"];
2314
+ if (t && t.onClick && h.includes(d) && l !== "premium") {
2315
+ const y = i.loading || i.registered, k = async (v) => {
2316
+ if (v.preventDefault(), v.stopPropagation(), !(y || !t || !t.onClick)) {
2317
2317
  o((g) => ({ ...g, loading: !0 }));
2318
2318
  try {
2319
2319
  const g = await t.onClick(e);
@@ -2324,18 +2324,18 @@ const Tn = {
2324
2324
  }
2325
2325
  };
2326
2326
  return /* @__PURE__ */ a.jsx(
2327
- q,
2327
+ B,
2328
2328
  {
2329
- onClick: y,
2329
+ onClick: k,
2330
2330
  className: "gtm-trackable",
2331
2331
  size: "small",
2332
2332
  styling: { fullWidth: !0 },
2333
- disabled: v,
2333
+ disabled: y,
2334
2334
  "data-gtm-event-context": `${r}Page-${d}: ${f}`,
2335
2335
  "data-gtm-event-type": `${r}-${d}-register-click`,
2336
2336
  "data-testid": "in-card-button",
2337
2337
  children: s.formatMessage({
2338
- id: `card_cta_${d}${v ? `_${i.loading ? "loading" : "done"}` : ""}`
2338
+ id: `card_cta_${d}${y ? `_${i.loading ? "loading" : "done"}` : ""}`
2339
2339
  })
2340
2340
  }
2341
2341
  );
@@ -2364,19 +2364,19 @@ const Qr = {
2364
2364
  gtmContext: s = "Carousel",
2365
2365
  className: i = ""
2366
2366
  }) => {
2367
- const o = P(), c = fe(ke), m = c && typeof c.id == "string", [l, f] = F({
2367
+ const o = P(), c = ge(ke), m = c && typeof c.id == "string", [l, f] = R({
2368
2368
  data: null,
2369
2369
  isLoading: !0
2370
- }), { data: d, isLoading: h } = l, p = Dn(() => {
2371
- n(t, m).then((R) => {
2372
- f(() => ({ data: R, isLoading: !1 }));
2373
- }).catch(() => f((R) => ({ ...R, isLoading: !1 })));
2370
+ }), { data: d, isLoading: p } = l, h = Dn(() => {
2371
+ n(t, m).then((F) => {
2372
+ f(() => ({ data: F, isLoading: !1 }));
2373
+ }).catch(() => f((F) => ({ ...F, isLoading: !1 })));
2374
2374
  }, [e]);
2375
- if (V(() => {
2376
- p();
2377
- }, []), h || !d)
2375
+ if (G(() => {
2376
+ h();
2377
+ }, []), p || !d)
2378
2378
  return /* @__PURE__ */ a.jsx(
2379
- pe,
2379
+ _e,
2380
2380
  {
2381
2381
  element: "li",
2382
2382
  className: "card-wrapper",
@@ -2385,38 +2385,38 @@ const Qr = {
2385
2385
  );
2386
2386
  const { contentType: _ } = d;
2387
2387
  if (!_ || !it[_])
2388
- return /* @__PURE__ */ a.jsx(pe, { element: "li", className: "card-wrapper" });
2388
+ return /* @__PURE__ */ a.jsx(_e, { element: "li", className: "card-wrapper" });
2389
2389
  const {
2390
- basePath: v = "",
2391
- className: y,
2392
- length: k,
2390
+ basePath: y = "",
2391
+ className: k,
2392
+ length: v,
2393
2393
  gtmEvent: g
2394
- } = it[_], b = zn(`card_label_${_}`) ? o.formatMessage({ id: `card_label_${_}` }) : !1, w = d.slug ? `${v}${d.slug}` : !1, C = { ...Qr, ...k };
2395
- let M = { className: "card" };
2396
- w && (M = {
2397
- href: w,
2394
+ } = it[_], b = zn(`card_label_${_}`) ? o.formatMessage({ id: `card_label_${_}` }) : !1, j = d.slug ? `${y}${d.slug}` : !1, C = { ...Qr, ...v };
2395
+ let S = { className: "card" };
2396
+ j && (S = {
2397
+ href: j,
2398
2398
  className: "card gtm-trackable",
2399
2399
  "data-gtm-event-context": `${s}-CarouselCard`,
2400
2400
  "data-gtm-event-type": `${g}-click`,
2401
2401
  "data-testid": "link"
2402
- }, d.openInNewTab && (M.target = "_blank"));
2403
- const L = d.customIcon ? { "--custom-icon": Kr(d.customIcon) } : {};
2402
+ }, d.openInNewTab && (S.target = "_blank"));
2403
+ const Y = d.customIcon ? { "--custom-icon": Kr(d.customIcon) } : {};
2404
2404
  return /* @__PURE__ */ a.jsx(
2405
2405
  "li",
2406
2406
  {
2407
- className: j("card-wrapper text-medium", y, i, {
2408
- "has-link": w,
2409
- "no-link": !w,
2407
+ className: w("card-wrapper text-medium", k, i, {
2408
+ "has-link": j,
2409
+ "no-link": !j,
2410
2410
  "has-custom-icon": d.customIcon,
2411
2411
  "has-image": d.banner
2412
2412
  }),
2413
- style: L,
2413
+ style: Y,
2414
2414
  "data-testid": `${_}-card`,
2415
2415
  children: A.createElement(
2416
- w ? "a" : "div",
2417
- M,
2416
+ j ? "a" : "div",
2417
+ S,
2418
2418
  /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2419
- (d.customLabel || b) && /* @__PURE__ */ a.jsx("small", { className: j("card-label text-small", y), children: d.customLabel || b }),
2419
+ (d.customLabel || b) && /* @__PURE__ */ a.jsx("small", { className: w("card-label text-small", k), children: d.customLabel || b }),
2420
2420
  d.startDate && !d.isOngoingEvent && /* @__PURE__ */ a.jsx(
2421
2421
  st,
2422
2422
  {
@@ -2429,8 +2429,8 @@ const Qr = {
2429
2429
  d.banner ? /* @__PURE__ */ a.jsxs("p", { className: "img", children: [
2430
2430
  d.registered && /* @__PURE__ */ a.jsx(st, { size: "small", variant: "registered", children: o.formatMessage({ id: "card_registered" }) }),
2431
2431
  /* @__PURE__ */ a.jsx(Wn, { image: d.banner })
2432
- ] }) : y === "people" ? /* @__PURE__ */ a.jsx(
2433
- He,
2432
+ ] }) : k === "people" ? /* @__PURE__ */ a.jsx(
2433
+ Ue,
2434
2434
  {
2435
2435
  name: d.title || "",
2436
2436
  src: d.profile,
@@ -2443,29 +2443,29 @@ const Qr = {
2443
2443
  contributors: { data: d.contributors },
2444
2444
  styling: {
2445
2445
  size: "small",
2446
- showGap: y !== "question",
2446
+ showGap: k !== "question",
2447
2447
  showText: !0
2448
2448
  },
2449
2449
  "data-testid": "contributors"
2450
2450
  }
2451
2451
  ),
2452
- d.partner && /* @__PURE__ */ a.jsx("p", { className: "partners", "data-testid": "partners", children: Me(d.partner.title, C.partner) }),
2452
+ d.partner && /* @__PURE__ */ a.jsx("p", { className: "partners", "data-testid": "partners", children: Ne(d.partner.title, C.partner) }),
2453
2453
  /* Text */
2454
- ["title", "text", "secondaryText"].map((R) => {
2455
- const T = d[R];
2456
- if (!T)
2454
+ ["title", "text", "secondaryText"].map((F) => {
2455
+ const $ = d[F];
2456
+ if (!$)
2457
2457
  return null;
2458
- const S = ur(R);
2459
- return /* @__PURE__ */ a.jsx("p", { className: S, "data-testid": S, children: Me(T, C[R]) }, R);
2458
+ const M = ur(F);
2459
+ return /* @__PURE__ */ a.jsx("p", { className: M, "data-testid": M, children: Ne($, C[F]) }, F);
2460
2460
  }),
2461
- /* @__PURE__ */ a.jsx(Yr, { type: y || "", data: d }),
2462
- /* @__PURE__ */ a.jsx(Gr, { data: d, cta: r, link: w || "", gtmContext: s })
2461
+ /* @__PURE__ */ a.jsx(Yr, { type: k || "", data: d }),
2462
+ /* @__PURE__ */ a.jsx(Gr, { data: d, cta: r, link: j || "", gtmContext: s })
2463
2463
  ] })
2464
2464
  )
2465
2465
  }
2466
2466
  );
2467
2467
  };
2468
- const Jr = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__ */ a.jsx("ul", { className: j("card-block", n), children: e.map((s, i) => {
2468
+ const Jr = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__ */ a.jsx("ul", { className: w("card-block", n), children: e.map((s, i) => {
2469
2469
  const o = s.slug ? `${s.slug}-${t[i]}` : `${t[i]}-${i}`;
2470
2470
  return /* @__PURE__ */ a.jsx(
2471
2471
  ea,
@@ -2485,7 +2485,7 @@ const Jr = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__
2485
2485
  return null;
2486
2486
  const { text: r, element: s = "h2", variant: i = "default", size: o = "medium", link: c } = t;
2487
2487
  return A.createElement(s, {
2488
- className: j("title", i, o, {
2488
+ className: w("title", i, o, {
2489
2489
  "highlighted-title": i === "highlighted"
2490
2490
  }),
2491
2491
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
@@ -2518,51 +2518,51 @@ const ts = ({
2518
2518
  className: i,
2519
2519
  gtmContext: o
2520
2520
  }) => {
2521
- var R;
2522
- const c = P(), [m, l] = F({
2521
+ var F;
2522
+ const c = P(), [m, l] = R({
2523
2523
  cardsPerPage: 4,
2524
2524
  isLoading: !0
2525
- }), { cardsPerPage: f, isLoading: d } = m, [h, p] = F({
2525
+ }), { cardsPerPage: f, isLoading: d } = m, [p, h] = R({
2526
2526
  currentPage: 0,
2527
2527
  loadedPages: [0]
2528
- }), { currentPage: _, loadedPages: v } = h, y = t.length, k = Math.ceil(y / f), g = te(null), b = qe(!0, !0, g == null ? void 0 : g.current);
2529
- V(() => {
2530
- let T = 1;
2531
- b && (b >= Nt.fourCards ? T = 4 : b >= Nt.threeCards ? T = 3 : b >= Nt.twoCards && (T = 2), T > y && (T = y)), l((S) => ({
2532
- ...S,
2533
- cardsPerPage: T,
2528
+ }), { currentPage: _, loadedPages: y } = p, k = t.length, v = Math.ceil(k / f), g = ne(null), b = He(!0, !0, g == null ? void 0 : g.current);
2529
+ G(() => {
2530
+ let $ = 1;
2531
+ b && (b >= Nt.fourCards ? $ = 4 : b >= Nt.threeCards ? $ = 3 : b >= Nt.twoCards && ($ = 2), $ > k && ($ = k)), l((M) => ({
2532
+ ...M,
2533
+ cardsPerPage: $,
2534
2534
  isLoading: !1
2535
2535
  }));
2536
- }, [b, y]);
2537
- const w = (T = "next") => {
2538
- let S = _;
2539
- if (typeof T == "string")
2540
- if (T === "next")
2541
- if (_ < k - 1)
2542
- S = _ + 1;
2536
+ }, [b, k]);
2537
+ const j = ($ = "next") => {
2538
+ let M = _;
2539
+ if (typeof $ == "string")
2540
+ if ($ === "next")
2541
+ if (_ < v - 1)
2542
+ M = _ + 1;
2543
2543
  else
2544
2544
  return;
2545
2545
  else if (_ > 0)
2546
- S = _ - 1;
2546
+ M = _ - 1;
2547
2547
  else
2548
2548
  return;
2549
2549
  else
2550
- S = T;
2551
- p((E) => ({
2550
+ M = $;
2551
+ h((E) => ({
2552
2552
  ...E,
2553
- currentPage: S,
2554
- loadedPages: [.../* @__PURE__ */ new Set([...v, S])]
2553
+ currentPage: M,
2554
+ loadedPages: [.../* @__PURE__ */ new Set([...y, M])]
2555
2555
  }));
2556
- }, C = (T) => {
2557
- Ge = T.touches[0].clientX;
2558
- }, M = (T) => {
2556
+ }, C = ($) => {
2557
+ Ge = $.touches[0].clientX;
2558
+ }, S = ($) => {
2559
2559
  if (Ge === null)
2560
2560
  return;
2561
- const S = T.touches[0].clientX, E = Ge - S;
2562
- E > 5 ? w("next") : E < -5 && w("previous"), Ge = null;
2563
- }, L = {
2564
- "--width": `${((R = g == null ? void 0 : g.current) == null ? void 0 : R.offsetWidth) || 0}px`,
2565
- "--total-cards": y,
2561
+ const M = $.touches[0].clientX, E = Ge - M;
2562
+ E > 5 ? j("next") : E < -5 && j("previous"), Ge = null;
2563
+ }, Y = {
2564
+ "--width": `${((F = g == null ? void 0 : g.current) == null ? void 0 : F.offsetWidth) || 0}px`,
2565
+ "--total-cards": k,
2566
2566
  "--cards-per-page": f,
2567
2567
  "--page": _
2568
2568
  };
@@ -2570,7 +2570,7 @@ const ts = ({
2570
2570
  "section",
2571
2571
  {
2572
2572
  ref: g,
2573
- className: j("carousel-wrapper", i),
2573
+ className: w("carousel-wrapper", i),
2574
2574
  "data-testid": "carousel",
2575
2575
  children: [
2576
2576
  /* @__PURE__ */ a.jsx(es, { id: e, title: s }),
@@ -2579,22 +2579,22 @@ const ts = ({
2579
2579
  {
2580
2580
  className: "carousel",
2581
2581
  onTouchStart: C,
2582
- onTouchMove: M,
2583
- style: L,
2582
+ onTouchMove: S,
2583
+ style: Y,
2584
2584
  "data-testid": "carousel-list",
2585
- children: t.map((T, S) => {
2586
- let E = T && T.sys && T.sys.id ? `${e}-card-${T.sys.id}` : null;
2587
- return E && Xr(S, f, _, v) ? /* @__PURE__ */ a.jsx(
2585
+ children: t.map(($, M) => {
2586
+ let E = $ && $.sys && $.sys.id ? `${e}-card-${$.sys.id}` : null;
2587
+ return E && Xr(M, f, _, y) ? /* @__PURE__ */ a.jsx(
2588
2588
  ea,
2589
2589
  {
2590
2590
  id: E,
2591
- card: { ...T, contentType: n[S] },
2591
+ card: { ...$, contentType: n[M] },
2592
2592
  buildCardData: r,
2593
2593
  gtmContext: o
2594
2594
  },
2595
2595
  E
2596
- ) : (E = E || `${e}-card-${S}`, /* @__PURE__ */ a.jsx(
2597
- pe,
2596
+ ) : (E = E || `${e}-card-${M}`, /* @__PURE__ */ a.jsx(
2597
+ _e,
2598
2598
  {
2599
2599
  element: "li",
2600
2600
  className: "card-wrapper",
@@ -2605,15 +2605,15 @@ const ts = ({
2605
2605
  })
2606
2606
  }
2607
2607
  ),
2608
- k <= 1 ? null : /* @__PURE__ */ a.jsxs("ul", { className: "controls", "data-testid": "carousel-controls", children: [
2608
+ v <= 1 ? null : /* @__PURE__ */ a.jsxs("ul", { className: "controls", "data-testid": "carousel-controls", children: [
2609
2609
  /* @__PURE__ */ a.jsx("li", { className: "arrow previous", children: /* @__PURE__ */ a.jsx(
2610
- q,
2610
+ B,
2611
2611
  {
2612
2612
  variant: "secondary",
2613
2613
  size: "large",
2614
2614
  icon: { icon: "chevron_left" },
2615
- onClick: (T) => {
2616
- T.preventDefault(), T.stopPropagation(), w("previous");
2615
+ onClick: ($) => {
2616
+ $.preventDefault(), $.stopPropagation(), j("previous");
2617
2617
  },
2618
2618
  screenreaderText: c.formatMessage({
2619
2619
  id: "carousel_pagination_previous"
@@ -2621,32 +2621,32 @@ const ts = ({
2621
2621
  disabled: _ <= 0
2622
2622
  }
2623
2623
  ) }),
2624
- [...Array(k)].map((T, S) => /* @__PURE__ */ a.jsx("li", { "data-testid": "carousel-controls-button", children: /* @__PURE__ */ a.jsx(
2624
+ [...Array(v)].map(($, M) => /* @__PURE__ */ a.jsx("li", { "data-testid": "carousel-controls-button", children: /* @__PURE__ */ a.jsx(
2625
2625
  "button",
2626
2626
  {
2627
- className: j("page-indicator", {
2628
- selected: S === _
2627
+ className: w("page-indicator", {
2628
+ selected: M === _
2629
2629
  }),
2630
2630
  onClick: (E) => {
2631
- E.preventDefault(), E.stopPropagation(), w(S);
2631
+ E.preventDefault(), E.stopPropagation(), j(M);
2632
2632
  },
2633
- children: /* @__PURE__ */ a.jsx(se, { showOnFocus: !1, children: c.formatMessage(
2633
+ children: /* @__PURE__ */ a.jsx(ae, { showOnFocus: !1, children: c.formatMessage(
2634
2634
  { id: "carousel_pagination_page" },
2635
- { number: S + 1, total: k }
2635
+ { number: M + 1, total: v }
2636
2636
  ) })
2637
2637
  }
2638
- ) }, `page-indicator-${S}`)),
2638
+ ) }, `page-indicator-${M}`)),
2639
2639
  /* @__PURE__ */ a.jsx("li", { className: "arrow next", children: /* @__PURE__ */ a.jsx(
2640
- q,
2640
+ B,
2641
2641
  {
2642
2642
  variant: "secondary",
2643
2643
  size: "large",
2644
2644
  icon: { icon: "chevron_right" },
2645
- onClick: (T) => {
2646
- T.preventDefault(), T.stopPropagation(), w("next");
2645
+ onClick: ($) => {
2646
+ $.preventDefault(), $.stopPropagation(), j("next");
2647
2647
  },
2648
2648
  screenreaderText: c.formatMessage({ id: "carousel_pagination_next" }),
2649
- disabled: _ >= k - 1
2649
+ disabled: _ >= v - 1
2650
2650
  }
2651
2651
  ) })
2652
2652
  ] })
@@ -2662,7 +2662,7 @@ const ts = ({
2662
2662
  }) => !e || !e.length ? null : e.map(
2663
2663
  ({ title: i, viewAllUrl: o, cards: c, cardsTypes: m }, l) => {
2664
2664
  const f = i ? window.btoa(i) : `carousel-${l}`, d = l === e.length - 1;
2665
- return t ? /* @__PURE__ */ a.jsxs(Ze, { children: [
2665
+ return t ? /* @__PURE__ */ a.jsxs(qe, { children: [
2666
2666
  /* @__PURE__ */ a.jsx(
2667
2667
  Kn,
2668
2668
  {
@@ -2671,7 +2671,7 @@ const ts = ({
2671
2671
  }
2672
2672
  ),
2673
2673
  d ? null : /* @__PURE__ */ a.jsx(Te, {})
2674
- ] }, `placeholder-${f}`) : /* @__PURE__ */ a.jsxs(Ze, { children: [
2674
+ ] }, `placeholder-${f}`) : /* @__PURE__ */ a.jsxs(qe, { children: [
2675
2675
  /* @__PURE__ */ a.jsx(
2676
2676
  ts,
2677
2677
  {
@@ -2688,25 +2688,25 @@ const ts = ({
2688
2688
  const Pt = "joinCommunityButton", ta = ({ isMember: e = !1, isShort: t = !1, functions: { join: n, leave: r } = { join: () => {
2689
2689
  }, leave: () => {
2690
2690
  } } }) => {
2691
- const s = P(), i = fe(ke), o = i && typeof i.id == "string", [c, m] = F(e), [l, f] = F(e ? "joined" : "notJoined");
2692
- V(() => {
2691
+ const s = P(), i = ge(ke), o = i && typeof i.id == "string", [c, m] = R(e), [l, f] = R(e ? "joined" : "notJoined");
2692
+ G(() => {
2693
2693
  l === "joining" ? f("joined") : l === "leaving" && f("notJoined");
2694
2694
  }, [c]);
2695
- const d = {}, h = {};
2696
- return c && l !== "leaving" && (d["data-hover-text"] = s.formatMessage({ id: `${Pt}_leave` }), d["aria-label"] = s.formatMessage({ id: `${Pt}_member_aria` }), h["aria-hidden"] = "true"), /* @__PURE__ */ a.jsx(
2697
- q,
2695
+ const d = {}, p = {};
2696
+ 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(
2697
+ B,
2698
2698
  {
2699
2699
  variant: c ? "secondary" : "primary",
2700
2700
  size: "medium",
2701
2701
  styling: { fullWidth: !0 },
2702
2702
  icon: c && l !== "leaving" ? { icon: "tick", position: "left" } : !1,
2703
- onClick: async (p) => {
2704
- o && (p.currentTarget.blur(), c ? (f("leaving"), typeof r == "function" && await r()) : (f("joining"), typeof n == "function" && await n()), m(!c));
2703
+ onClick: async (h) => {
2704
+ o && (h.currentTarget.blur(), c ? (f("leaving"), typeof r == "function" && await r()) : (f("joining"), typeof n == "function" && await n()), m(!c));
2705
2705
  },
2706
- className: j("join-community-button", l, { active: l === "joining" }),
2706
+ className: w("join-community-button", l, { active: l === "joining" }),
2707
2707
  disabled: !o,
2708
2708
  ...d,
2709
- children: /* @__PURE__ */ a.jsx("span", { className: "text", ...h, children: s.formatMessage({ id: `${Pt}${["joining", "leaving"].includes(l) ? `_${l}` : c ? "_member" : t ? "_short" : ""}` }) })
2709
+ children: /* @__PURE__ */ a.jsx("span", { className: "text", ...p, children: s.formatMessage({ id: `${Pt}${["joining", "leaving"].includes(l) ? `_${l}` : c ? "_member" : t ? "_short" : ""}` }) })
2710
2710
  }
2711
2711
  );
2712
2712
  };
@@ -2718,7 +2718,7 @@ const At = "communityDetails_", Ri = ({
2718
2718
  functions: { invite: i, ...o }
2719
2719
  }) => {
2720
2720
  const c = P(), m = 5, l = r || s.length, f = s.length ? s : Array(m).fill({}), d = `/communities/${n}/members` === window.location.pathname;
2721
- return /* @__PURE__ */ a.jsxs("div", { className: j("community-details", e), children: [
2721
+ return /* @__PURE__ */ a.jsxs("div", { className: w("community-details", e), children: [
2722
2722
  /* @__PURE__ */ a.jsx(Te, {}),
2723
2723
  /* @__PURE__ */ a.jsxs("div", { className: "member-details", children: [
2724
2724
  /* @__PURE__ */ a.jsxs("div", { className: "top", children: [
@@ -2746,7 +2746,7 @@ const At = "communityDetails_", Ri = ({
2746
2746
  ] }),
2747
2747
  /* @__PURE__ */ a.jsx(ta, { isMember: t, functions: { ...o } }),
2748
2748
  t && /* @__PURE__ */ a.jsx(
2749
- q,
2749
+ B,
2750
2750
  {
2751
2751
  variant: "primary",
2752
2752
  onClick: i,
@@ -2764,10 +2764,10 @@ const Di = ({
2764
2764
  }) => {
2765
2765
  const r = P();
2766
2766
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2767
- /* @__PURE__ */ a.jsx(se, { element: "p", children: r.formatMessage({ id: "breadcrumbs_label" }) }),
2768
- /* @__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: [
2769
- o && /* @__PURE__ */ a.jsx(se, { element: "span", children: r.formatMessage({ id: "breadcrumbs_currentPage" }) }),
2770
- /* @__PURE__ */ a.jsx(gt, { href: o ? void 0 : i, children: Me(s, t) })
2767
+ /* @__PURE__ */ a.jsx(ae, { element: "p", children: r.formatMessage({ id: "breadcrumbs_label" }) }),
2768
+ /* @__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: [
2769
+ o && /* @__PURE__ */ a.jsx(ae, { element: "span", children: r.formatMessage({ id: "breadcrumbs_currentPage" }) }),
2770
+ /* @__PURE__ */ a.jsx(gt, { href: o ? void 0 : i, children: Ne(s, t) })
2771
2771
  ] }, `${window.btoa(s)}_${c}`)) })
2772
2772
  ] });
2773
2773
  };
@@ -2779,19 +2779,19 @@ const Li = ({
2779
2779
  },
2780
2780
  className: s = ""
2781
2781
  }) => {
2782
- const i = P(), o = t ? [{ id: "all", text: typeof t != "boolean" && t.text || i.formatMessage({ id: "filters_all" }) }, ...e] : e, [c, m] = F(t ? ["all"] : []), l = (f, d) => {
2783
- let h = [];
2784
- c.includes(f) ? h = c.filter((p) => p !== f) : f === "all" ? h = ["all"] : n ? h = [...c.filter((p) => p !== "all"), f] : h = [f], m((p) => (r && typeof r == "function" && r({ current: h, previous: p }), h)), d && typeof d == "function" && d();
2782
+ const i = P(), 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) => {
2783
+ let p = [];
2784
+ 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();
2785
2785
  };
2786
- return /* @__PURE__ */ a.jsx("ul", { className: j("filters", s), children: o.map(({ id: f, text: d, disabled: h = !1, callback: p = () => {
2786
+ return /* @__PURE__ */ a.jsx("ul", { className: w("filters", s), children: o.map(({ id: f, text: d, disabled: p = !1, callback: h = () => {
2787
2787
  } }) => {
2788
2788
  let _ = {};
2789
- return h && (_ = { disabled: !0, "aria-label": i.formatMessage({ id: "filters_disabled" }, { name: d }) }), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
2789
+ return p && (_ = { disabled: !0, "aria-label": i.formatMessage({ id: "filters_disabled" }, { name: d }) }), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
2790
2790
  "button",
2791
2791
  {
2792
- className: j(f, { selected: c.includes(f) }),
2793
- onClick: (v) => {
2794
- v.preventDefault(), v.stopPropagation(), l(f, p);
2792
+ className: w(f, { selected: c.includes(f) }),
2793
+ onClick: (y) => {
2794
+ y.preventDefault(), y.stopPropagation(), l(f, h);
2795
2795
  },
2796
2796
  ..._,
2797
2797
  children: d
@@ -2819,26 +2819,26 @@ const Ft = { en: "English", es: "Español", fr: "Français", pt: "Português" },
2819
2819
  label: c,
2820
2820
  className: m = ""
2821
2821
  }) => {
2822
- const l = P(), [f, d] = F(e);
2823
- if (V(() => {
2822
+ const l = P(), [f, d] = R(e);
2823
+ if (G(() => {
2824
2824
  e !== f && d(e);
2825
- }, [e]), !r || !Object.values(r).some((v) => v && v.post_name))
2825
+ }, [e]), !r || !Object.values(r).some((y) => y && y.post_name))
2826
2826
  return null;
2827
- const p = Object.keys(r), _ = f !== e;
2828
- return /* @__PURE__ */ a.jsxs("div", { className: j("language-switcher text-small", o, m), children: [
2827
+ const h = Object.keys(r), _ = f !== e;
2828
+ return /* @__PURE__ */ a.jsxs("div", { className: w("language-switcher text-small", o, m), children: [
2829
2829
  /* @__PURE__ */ a.jsxs("nav", { children: [
2830
2830
  o !== "short" && /* @__PURE__ */ a.jsx("p", { children: c || l.formatMessage({ id: `${Ke}label` }) }),
2831
- /* @__PURE__ */ a.jsx("ul", { children: p.map((v) => {
2832
- if (!Ft[v])
2831
+ /* @__PURE__ */ a.jsx("ul", { children: h.map((y) => {
2832
+ if (!Ft[y])
2833
2833
  return null;
2834
- let y = { className: v };
2835
- return f === v ? y["aria-label"] = l.formatMessage({ id: `${Ke}selected` }, { language: Ft[v] }) : y = {
2836
- ...y,
2837
- href: ns(v, i),
2838
- onClick: (k) => {
2839
- k.preventDefault(), k.stopPropagation(), d(v), s(v);
2834
+ let k = { className: y };
2835
+ return f === y ? k["aria-label"] = l.formatMessage({ id: `${Ke}selected` }, { language: Ft[y] }) : k = {
2836
+ ...k,
2837
+ href: ns(y, i),
2838
+ onClick: (v) => {
2839
+ v.preventDefault(), v.stopPropagation(), d(y), s(y);
2840
2840
  }
2841
- }, /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(gt, { ...y, fallbackElement: "span", children: Ft[v] }) }, v);
2841
+ }, /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(gt, { ...k, fallbackElement: "span", children: Ft[y] }) }, y);
2842
2842
  }) }),
2843
2843
  o !== "short" && !_ && /* @__PURE__ */ a.jsx("p", { children: l.formatMessage({ id: `${Ke}translation_${t ? "original" : n ? "human" : "machine"}` }) })
2844
2844
  ] }),
@@ -2847,10 +2847,10 @@ const Ft = { en: "English", es: "Español", fr: "Français", pt: "Português" },
2847
2847
  // @ts-ignore
2848
2848
  // `values` are throwing a type error: https://github.com/formatjs/formatjs/issues/3633
2849
2849
  children: l.formatMessage({ id: `${Ke}disclaimer` }, {
2850
- email: Oe.support,
2851
- link: (v) => {
2852
- const y = `mailto:${v}`;
2853
- return /* @__PURE__ */ a.jsx("a", { href: y, children: v });
2850
+ email: Be.support,
2851
+ link: (y) => {
2852
+ const k = `mailto:${y}`;
2853
+ return /* @__PURE__ */ a.jsx("a", { href: k, children: y });
2854
2854
  }
2855
2855
  })
2856
2856
  })
@@ -2869,15 +2869,15 @@ const Rt = Ua({ locale: "en", messages: Qt }), yt = ({
2869
2869
  className: s = "",
2870
2870
  gtmContext: i = "LoadMore"
2871
2871
  }) => {
2872
- const [o, c] = F(""), m = async (l) => {
2872
+ const [o, c] = R(""), m = async (l) => {
2873
2873
  try {
2874
2874
  await t(l);
2875
2875
  } catch (f) {
2876
2876
  f instanceof Error ? c(f.message) : c("Unknown error");
2877
2877
  }
2878
2878
  };
2879
- return /* @__PURE__ */ a.jsx("footer", { className: j("load-more", s), children: !o && e ? /* @__PURE__ */ a.jsx(
2880
- q,
2879
+ return /* @__PURE__ */ a.jsx("footer", { className: w("load-more", s), children: !o && e ? /* @__PURE__ */ a.jsx(
2880
+ B,
2881
2881
  {
2882
2882
  variant: "secondary",
2883
2883
  icon: n,
@@ -2888,22 +2888,22 @@ const Rt = Ua({ locale: "en", messages: Qt }), yt = ({
2888
2888
  "data-testid": "load-more-button",
2889
2889
  children: r.button
2890
2890
  }
2891
- ) : !o || o != null && o.includes("Cannot read items") ? /* @__PURE__ */ a.jsx("p", { children: r.endOfFeed }) : /* @__PURE__ */ a.jsx("p", { className: "error", children: r.error }) });
2891
+ ) : 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 }) });
2892
2892
  };
2893
- 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(se, { children: /* @__PURE__ */ a.jsx(je, { id: "apolitical" }) }) }) });
2893
+ 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" }) }) }) });
2894
2894
  let Qe = !1;
2895
2895
  const as = ({ element: e = "div", id: t = "more-menu", options: n, className: r = "" }) => {
2896
- const s = P(), i = te(null), [o, c] = F(!1), m = (l) => {
2896
+ const s = P(), i = ne(null), [o, c] = R(!1), m = (l) => {
2897
2897
  i.current && l.target instanceof HTMLElement && !i.current.contains(l.target) && c(!1);
2898
2898
  };
2899
- return V(() => (document.addEventListener("click", m, !0), () => {
2899
+ return G(() => (document.addEventListener("click", m, !0), () => {
2900
2900
  document.removeEventListener("click", m, !0);
2901
2901
  })), A.createElement(e, {
2902
2902
  ref: i,
2903
- className: j("more-menu text-medium", r),
2903
+ className: w("more-menu text-medium", r),
2904
2904
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2905
2905
  /* @__PURE__ */ a.jsx(
2906
- q,
2906
+ B,
2907
2907
  {
2908
2908
  variant: "tertiary",
2909
2909
  size: "medium",
@@ -2915,11 +2915,11 @@ const as = ({ element: e = "div", id: t = "more-menu", options: n, className: r
2915
2915
  screenreaderText: s.formatMessage({ id: "moreMenu" })
2916
2916
  }
2917
2917
  ),
2918
- /* @__PURE__ */ a.jsx("ul", { id: t, hidden: !o, children: n.map(({ href: l, onClick: f, text: d, icon: h, ...p }, _) => {
2919
- const v = {
2920
- ...p,
2921
- onClick: (y) => {
2922
- c(!1), typeof f == "function" && f(y);
2918
+ /* @__PURE__ */ a.jsx("ul", { id: t, hidden: !o, children: n.map(({ href: l, onClick: f, text: d, icon: p, ...h }, _) => {
2919
+ const y = {
2920
+ ...h,
2921
+ onClick: (k) => {
2922
+ c(!1), typeof f == "function" && f(k);
2923
2923
  },
2924
2924
  onFocus: () => {
2925
2925
  Qe && (clearTimeout(Qe), Qe = !1);
@@ -2930,13 +2930,13 @@ const as = ({ element: e = "div", id: t = "more-menu", options: n, className: r
2930
2930
  }, 100);
2931
2931
  }
2932
2932
  };
2933
- return l && (v.href = l), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
2934
- q,
2933
+ return l && (y.href = l), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
2934
+ B,
2935
2935
  {
2936
2936
  variant: "tertiary",
2937
2937
  size: "medium",
2938
- icon: h ? { icon: h, position: "left" } : !1,
2939
- ...v,
2938
+ icon: p ? { icon: p, position: "left" } : !1,
2939
+ ...y,
2940
2940
  children: d
2941
2941
  }
2942
2942
  ) }, `${window.btoa(d)}_${_}`);
@@ -2962,12 +2962,12 @@ const ss = [
2962
2962
  href: "/solution-articles/"
2963
2963
  }
2964
2964
  ], is = ({ activeLink: e }) => {
2965
- const t = P(), n = fe(ke), r = n && typeof n.id == "string";
2965
+ const t = P(), n = ge(ke), r = n && typeof n.id == "string";
2966
2966
  return /* @__PURE__ */ a.jsxs("ul", { id: "navigation-menu", className: "text-medium", children: [
2967
2967
  ss.map(({ key: s, href: i }) => /* @__PURE__ */ a.jsx(
2968
2968
  "li",
2969
2969
  {
2970
- className: j(s, { active: rs(i, e) }),
2970
+ className: w(s, { active: rs(i, e) }),
2971
2971
  children: /* @__PURE__ */ a.jsx(
2972
2972
  "a",
2973
2973
  {
@@ -2990,7 +2990,7 @@ const ss = [
2990
2990
  className: "gtm-trackable",
2991
2991
  children: [
2992
2992
  /* @__PURE__ */ a.jsx(
2993
- He,
2993
+ Ue,
2994
2994
  {
2995
2995
  name: (n == null ? void 0 : n.name) || "",
2996
2996
  src: n != null && n.image ? n.image.thumbnail : ""
@@ -3001,7 +3001,7 @@ const ss = [
3001
3001
  }
3002
3002
  ) })
3003
3003
  ] });
3004
- }, Ie = (e, t, n) => `${e}?share=${t}${n ? `&uuid=${n}` : ""}`, os = ({
3004
+ }, Oe = (e, t, n) => `${e}?share=${t}${n ? `&uuid=${n}` : ""}`, os = ({
3005
3005
  title: e,
3006
3006
  link: t,
3007
3007
  referrer: n
@@ -3010,21 +3010,21 @@ const ss = [
3010
3010
  key: "linkedin",
3011
3011
  icon: "social_linkedin",
3012
3012
  url: `https://www.linkedin.com/shareArticle?mini=true&url=${encodeURIComponent(
3013
- `${Ie(t, "linkedin", n)}&src=linkedin`
3013
+ `${Oe(t, "linkedin", n)}&src=linkedin`
3014
3014
  )}&title=${encodeURIComponent(e)}&source=Apolitical`
3015
3015
  },
3016
3016
  {
3017
3017
  key: "twitter",
3018
3018
  icon: "social_twitter",
3019
3019
  url: `https://twitter.com/share?ref_src=twsrc%5Etfw&url=${encodeURIComponent(
3020
- `${Ie(t, "twitter", n)}&src=twitter`
3020
+ `${Oe(t, "twitter", n)}&src=twitter`
3021
3021
  )}&text=${encodeURIComponent(e)}&via=${encodeURIComponent("apoliticalco")}`
3022
3022
  },
3023
3023
  {
3024
3024
  key: "facebook",
3025
3025
  icon: "social_facebook",
3026
3026
  url: `https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(
3027
- `${Ie(t, "facebook", n)}`
3027
+ `${Oe(t, "facebook", n)}`
3028
3028
  )}&t=${e}`
3029
3029
  },
3030
3030
  {
@@ -3033,13 +3033,13 @@ const ss = [
3033
3033
  url: `mailto:?subject=${encodeURIComponent(e)}&body=${encodeURIComponent(
3034
3034
  `${e}
3035
3035
 
3036
- ${Ie(t, "mailto", n)}&src=email`
3036
+ ${Oe(t, "mailto", n)}&src=email`
3037
3037
  )}`
3038
3038
  },
3039
3039
  {
3040
3040
  key: "clipboard-copy",
3041
3041
  icon: "share_copy-link",
3042
- url: Ie(t, "copy", n),
3042
+ url: Oe(t, "copy", n),
3043
3043
  shouldRender: () => navigator && navigator.clipboard && navigator.clipboard.writeText,
3044
3044
  onClick: (r, s) => (r.preventDefault(), r.stopPropagation(), navigator.clipboard.writeText(s))
3045
3045
  }
@@ -3054,14 +3054,14 @@ const cs = "shareLinks_", Oi = ({
3054
3054
  className: o = ""
3055
3055
  }) => {
3056
3056
  const c = P(), m = os({ title: e, link: t, referrer: n });
3057
- return /* @__PURE__ */ a.jsxs("aside", { className: j("share-links", s, i, o), children: [
3057
+ return /* @__PURE__ */ a.jsxs("aside", { className: w("share-links", s, i, o), children: [
3058
3058
  /* @__PURE__ */ a.jsx("p", { className: "text-small", children: c.formatMessage({ id: "shareLinks_label" }) }),
3059
- /* @__PURE__ */ a.jsx("ul", { children: m.map(({ key: l, icon: f, url: d, shouldRender: h = !0, onClick: p }) => {
3060
- if (typeof h == "function" && !h())
3059
+ /* @__PURE__ */ a.jsx("ul", { children: m.map(({ key: l, icon: f, url: d, shouldRender: p = !0, onClick: h }) => {
3060
+ if (typeof p == "function" && !p())
3061
3061
  return null;
3062
3062
  const _ = {};
3063
- return p && (_.onClick = (v) => p(v, d)), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
3064
- q,
3063
+ return h && (_.onClick = (y) => h(y, d)), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
3064
+ B,
3065
3065
  {
3066
3066
  size: s,
3067
3067
  variant: "tertiary",
@@ -3094,14 +3094,14 @@ const Bi = ({ tabs: e, className: t = "" }) => {
3094
3094
  }
3095
3095
  }
3096
3096
  }
3097
- const [s, i] = F(
3097
+ const [s, i] = R(
3098
3098
  (m = e[r]) != null && m.id ? e[r].id : n(e[r].id, e[r].text, r)
3099
3099
  ), o = [], c = [];
3100
- return e.forEach(({ id: l, text: f, content: d, href: h }, p) => {
3101
- l = n(l, f, p);
3102
- const _ = s === l, v = {};
3103
- h || (v["aria-controls"] = l, v.onClick = (y) => {
3104
- y.preventDefault(), y.stopPropagation(), i(l), window.location.hash = `#${l}`;
3100
+ return e.forEach(({ id: l, text: f, content: d, href: p }, h) => {
3101
+ l = n(l, f, h);
3102
+ const _ = s === l, y = {};
3103
+ p || (y["aria-controls"] = l, y.onClick = (k) => {
3104
+ k.preventDefault(), k.stopPropagation(), i(l), window.location.hash = `#${l}`;
3105
3105
  }, c.push(
3106
3106
  /* @__PURE__ */ a.jsx(
3107
3107
  "section",
@@ -3119,17 +3119,17 @@ const Bi = ({ tabs: e, className: t = "" }) => {
3119
3119
  /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
3120
3120
  "a",
3121
3121
  {
3122
- href: h || `#${l}`,
3122
+ href: p || `#${l}`,
3123
3123
  id: `tab-${l}`,
3124
- className: j({ selected: _ }),
3124
+ className: w({ selected: _ }),
3125
3125
  role: "tab",
3126
3126
  "aria-selected": _,
3127
- ...v,
3127
+ ...y,
3128
3128
  children: f
3129
3129
  }
3130
3130
  ) }, `tab-${l}`)
3131
3131
  );
3132
- }), /* @__PURE__ */ a.jsxs("div", { className: j("tabs-wrapper", t), children: [
3132
+ }), /* @__PURE__ */ a.jsxs("div", { className: w("tabs-wrapper", t), children: [
3133
3133
  /* @__PURE__ */ a.jsx("ul", { className: "tabs", role: "tablist", children: o }),
3134
3134
  /* @__PURE__ */ a.jsx("div", { className: "tab-content", children: c })
3135
3135
  ] });
@@ -3143,15 +3143,15 @@ const ls = {
3143
3143
  className: n = "",
3144
3144
  children: r
3145
3145
  }) => {
3146
- const s = qe(!0);
3146
+ const s = He(!0);
3147
3147
  let i = r;
3148
- return A.Children.count(r) === 1 && (i = A.Children.toArray(r)[0], i.props && (i = i.props.children)), /* @__PURE__ */ a.jsx("section", { className: j("columns", `layout-${e}`, n), children: A.Children.map(i, (o, c) => t !== !1 && c === t && s && s < ls[e] ? null : o) });
3148
+ return A.Children.count(r) === 1 && (i = A.Children.toArray(r)[0], i.props && (i = i.props.children)), /* @__PURE__ */ a.jsx("section", { className: w("columns", `layout-${e}`, n), children: A.Children.map(i, (o, c) => t !== !1 && c === t && s && s < ls[e] ? null : o) });
3149
3149
  }, Zi = ({ activeLink: e, ...t }) => /* @__PURE__ */ a.jsx(_t, { children: /* @__PURE__ */ a.jsx(ds, { layout: "1-3", children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3150
3150
  /* @__PURE__ */ a.jsx(is, { activeLink: e }),
3151
3151
  /* @__PURE__ */ a.jsx(qr, { ...t })
3152
3152
  ] }) }) });
3153
3153
  const Dt = "cookieBanner_", Lt = ["apol-cookie-banner", "apolitical-performance-cookie-consent", "functional-cookie-consent"], It = new Date(Date.now() + 12 * 30 * 24 * 60 * 60 * 1e3), us = () => {
3154
- const e = P(), [t, n, r] = Ka(Lt), [s, i] = F(!t["apol-cookie-banner"]), o = () => {
3154
+ const e = P(), [t, n, r] = Ka(Lt), [s, i] = R(!t["apol-cookie-banner"]), o = () => {
3155
3155
  Lt.forEach((f) => {
3156
3156
  n(f, !0, {
3157
3157
  path: "/",
@@ -3260,11 +3260,11 @@ const Dt = "cookieBanner_", Lt = ["apol-cookie-banner", "apolitical-performance-
3260
3260
  text: {
3261
3261
  order: ["dataProtection", "euDataProtection"],
3262
3262
  dataProtection: {
3263
- email: Oe["data-protection"].default,
3263
+ email: Be["data-protection"].default,
3264
3264
  gtmType: "email-dpo-link"
3265
3265
  },
3266
3266
  euDataProtection: {
3267
- email: Oe["data-protection"].eu,
3267
+ email: Be["data-protection"].eu,
3268
3268
  gtmType: "email-eu-dpo-link"
3269
3269
  }
3270
3270
  }
@@ -3276,10 +3276,10 @@ const Dt = "cookieBanner_", Lt = ["apol-cookie-banner", "apolitical-performance-
3276
3276
  registered: { address: !0 },
3277
3277
  berlin: { address: !0 },
3278
3278
  support: {
3279
- email: Oe.support,
3279
+ email: Be.support,
3280
3280
  gtmType: "concierge-email-click"
3281
3281
  },
3282
- business: { email: Oe.general, gtmType: "hello-email-click" }
3282
+ business: { email: Be.general, gtmType: "hello-email-click" }
3283
3283
  }
3284
3284
  },
3285
3285
  social: {
@@ -3289,11 +3289,11 @@ const Dt = "cookieBanner_", Lt = ["apol-cookie-banner", "apolitical-performance-
3289
3289
  facebook: { href: "https://www.facebook.com/apoliticalco" }
3290
3290
  }
3291
3291
  };
3292
- const Se = "footer_", ot = "SiteFooter", En = ({ group: e }) => {
3292
+ const Me = "footer_", ot = "SiteFooter", En = ({ group: e }) => {
3293
3293
  const t = xe[e].order || [];
3294
3294
  let n = !1;
3295
- return "text" in xe[e] && (n = xe[e].text), /* @__PURE__ */ a.jsxs(Ze, { children: [
3296
- /* @__PURE__ */ a.jsx("p", { className: "pre-title", children: /* @__PURE__ */ a.jsx(je, { id: `${Se}${e}` }) }),
3295
+ return "text" in xe[e] && (n = xe[e].text), /* @__PURE__ */ a.jsxs(qe, { children: [
3296
+ /* @__PURE__ */ a.jsx("p", { className: "pre-title", children: /* @__PURE__ */ a.jsx(je, { id: `${Me}${e}` }) }),
3297
3297
  Array.isArray(t) && t.length > 0 && /* @__PURE__ */ a.jsx("ul", { className: "text-medium", children: t.map((r) => {
3298
3298
  if (["order", "child", "text"].includes(r))
3299
3299
  return null;
@@ -3306,14 +3306,14 @@ const Se = "footer_", ot = "SiteFooter", En = ({ group: e }) => {
3306
3306
  "data-gtm-event-context": ot,
3307
3307
  "data-gtm-event-type": i,
3308
3308
  ...o,
3309
- children: /* @__PURE__ */ a.jsx(je, { id: `${Se}${e}_${r}` })
3309
+ children: /* @__PURE__ */ a.jsx(je, { id: `${Me}${e}_${r}` })
3310
3310
  }
3311
3311
  ) }, `${e}_${r}`);
3312
3312
  }) }),
3313
- typeof n != "boolean" && "order" in n && Array.isArray(n.order) && /* @__PURE__ */ a.jsx("dl", { className: "text-medium", children: n.order.map((r) => /* @__PURE__ */ a.jsxs(Ze, { children: [
3314
- /* @__PURE__ */ a.jsx("dt", { children: /* @__PURE__ */ a.jsx(je, { id: `${Se}${e}_${r}` }) }),
3313
+ typeof n != "boolean" && "order" in n && Array.isArray(n.order) && /* @__PURE__ */ a.jsx("dl", { className: "text-medium", children: n.order.map((r) => /* @__PURE__ */ a.jsxs(qe, { children: [
3314
+ /* @__PURE__ */ a.jsx("dt", { children: /* @__PURE__ */ a.jsx(je, { id: `${Me}${e}_${r}` }) }),
3315
3315
  /* @__PURE__ */ a.jsxs("dd", { children: [
3316
- typeof n != "boolean" && n[r].address && /* @__PURE__ */ a.jsx("address", { children: /* @__PURE__ */ a.jsx(je, { id: `${Se}${e}_${r}_address`, values: { br: /* @__PURE__ */ a.jsx("br", {}) } }) }),
3316
+ typeof n != "boolean" && n[r].address && /* @__PURE__ */ a.jsx("address", { children: /* @__PURE__ */ a.jsx(je, { id: `${Me}${e}_${r}_address`, values: { br: /* @__PURE__ */ a.jsx("br", {}) } }) }),
3317
3317
  typeof n != "boolean" && n[r].email && /* @__PURE__ */ a.jsx(
3318
3318
  "a",
3319
3319
  {
@@ -3356,18 +3356,18 @@ const Se = "footer_", ot = "SiteFooter", En = ({ group: e }) => {
3356
3356
  className: "gtm-trackable",
3357
3357
  "data-gtm-event-context": ot,
3358
3358
  "data-gtm-event-type": "social-click",
3359
- children: /* @__PURE__ */ a.jsx("span", { className: "hidden", children: /* @__PURE__ */ a.jsx(je, { id: `${Se}social_${e}` }) })
3359
+ children: /* @__PURE__ */ a.jsx("span", { className: "hidden", children: /* @__PURE__ */ a.jsx(je, { id: `${Me}social_${e}` }) })
3360
3360
  }
3361
3361
  ) }, e);
3362
3362
  }) }),
3363
- /* @__PURE__ */ a.jsx("small", { children: /* @__PURE__ */ a.jsx(je, { id: `${Se}copyright`, values: { currentYear: (/* @__PURE__ */ new Date()).getFullYear() } }) })
3363
+ /* @__PURE__ */ a.jsx("small", { children: /* @__PURE__ */ a.jsx(je, { id: `${Me}copyright`, values: { currentYear: (/* @__PURE__ */ new Date()).getFullYear() } }) })
3364
3364
  ] })
3365
3365
  ] }) });
3366
3366
  const Je = "emailHelperTextBox_", qi = ({ type: e, email: t, redirectPath: n, resendVerificationCode: r }) => {
3367
- const s = P(), [i, o] = F({ path: `${Je}default`, type: "default", link: {}, mail: {}, error: "" }), [c, m] = F(!1), l = Dn(
3368
- (p) => {
3369
- p.preventDefault(), p.stopPropagation();
3370
- const _ = (v) => {
3367
+ const s = P(), [i, o] = R({ path: `${Je}default`, type: "default", link: {}, mail: {}, error: "" }), [c, m] = R(!1), l = Dn(
3368
+ (h) => {
3369
+ h.preventDefault(), h.stopPropagation();
3370
+ const _ = (y) => {
3371
3371
  o({
3372
3372
  path: `${Je}error_verificationFailedToSend`,
3373
3373
  type: "error",
@@ -3375,7 +3375,7 @@ const Je = "emailHelperTextBox_", qi = ({ type: e, email: t, redirectPath: n, re
3375
3375
  "data-gtm-event-context": "VerifyEmailBox",
3376
3376
  "data-gtm-event-type": "SendEmailClick",
3377
3377
  className: "gtm-trackable",
3378
- onClick: (y) => l(y),
3378
+ onClick: (k) => l(k),
3379
3379
  href: "#",
3380
3380
  "data-testid": "send-verify-email-click"
3381
3381
  },
@@ -3385,7 +3385,7 @@ const Je = "emailHelperTextBox_", qi = ({ type: e, email: t, redirectPath: n, re
3385
3385
  "data-gtm-event-context": "ErrorVerifyingBox",
3386
3386
  "data-gtm-event-type": "email-concierge-click"
3387
3387
  },
3388
- error: v
3388
+ error: y
3389
3389
  });
3390
3390
  };
3391
3391
  if (typeof r != "function") {
@@ -3394,8 +3394,8 @@ const Je = "emailHelperTextBox_", qi = ({ type: e, email: t, redirectPath: n, re
3394
3394
  }
3395
3395
  m(!0), r(t).then(() => {
3396
3396
  localStorage.setItem("email", t), window.location.href = n || "/signup/verify-email";
3397
- }).catch((v) => {
3398
- _(v.message);
3397
+ }).catch((y) => {
3398
+ _(y.message);
3399
3399
  }).finally(() => {
3400
3400
  m(!1);
3401
3401
  });
@@ -3403,22 +3403,22 @@ const Je = "emailHelperTextBox_", qi = ({ type: e, email: t, redirectPath: n, re
3403
3403
  /* eslint-disable react-hooks/exhaustive-deps */
3404
3404
  [t, n, r]
3405
3405
  );
3406
- V(
3406
+ G(
3407
3407
  () => {
3408
- let p = Je, _ = "default", v = {}, y = {};
3408
+ let h = Je, _ = "default", y = {}, k = {};
3409
3409
  switch (e) {
3410
3410
  case "gov":
3411
- p += "autoApproved", _ = "success";
3411
+ h += "autoApproved", _ = "success";
3412
3412
  break;
3413
3413
  case "nonGov":
3414
- p += "unrecognisedEmail", _ = "error", v = {
3414
+ h += "unrecognisedEmail", _ = "error", y = {
3415
3415
  href: "https://about.apolitical.co/who-can-join-the-community",
3416
3416
  "data-gtm-event-context": "NonGovEmailHelperTextBox",
3417
3417
  "data-gtm-event-type": "LearnMoreClick"
3418
3418
  };
3419
3419
  break;
3420
3420
  case "pending":
3421
- p += "pendingApproval", _ = "error", y = {
3421
+ h += "pendingApproval", _ = "error", k = {
3422
3422
  href: "mailto:concierge@apolitical.co",
3423
3423
  className: "gtm-trackable",
3424
3424
  "data-gtm-event-context": "EmailExistsBox",
@@ -3426,21 +3426,21 @@ const Je = "emailHelperTextBox_", qi = ({ type: e, email: t, redirectPath: n, re
3426
3426
  };
3427
3427
  break;
3428
3428
  case "verify":
3429
- p += "emailUnverified", _ = "error", v = {
3429
+ h += "emailUnverified", _ = "error", y = {
3430
3430
  href: "#",
3431
3431
  "data-gtm-event-context": "VerifyEmailBox",
3432
3432
  "data-gtm-event-type": "SendEmailClick",
3433
3433
  className: "gtm-trackable",
3434
- onClick: (k) => l(k),
3434
+ onClick: (v) => l(v),
3435
3435
  "data-testid": "send-verify-email-click"
3436
3436
  };
3437
3437
  break;
3438
3438
  case "exists":
3439
- p += "emailAlreadyExists", _ = "error", v = {
3439
+ h += "emailAlreadyExists", _ = "error", y = {
3440
3440
  href: "/user-onboarding/login",
3441
3441
  "data-gtm-event-context": "EmailExistsBox",
3442
3442
  "data-gtm-event-type": "login-click"
3443
- }, y = {
3443
+ }, k = {
3444
3444
  href: "mailto:concierge@apolitical.co",
3445
3445
  className: "gtm-trackable",
3446
3446
  "data-gtm-event-context": "EmailExistsBox",
@@ -3448,24 +3448,24 @@ const Je = "emailHelperTextBox_", qi = ({ type: e, email: t, redirectPath: n, re
3448
3448
  };
3449
3449
  break;
3450
3450
  default:
3451
- p += "default", v = {
3451
+ h += "default", y = {
3452
3452
  href: "https://about.apolitical.co/who-can-join-the-community",
3453
3453
  "data-gtm-event-context": "DefaultEmailHelperTextBox",
3454
3454
  "data-gtm-event-type": "LearnMoreClick"
3455
3455
  };
3456
3456
  break;
3457
3457
  }
3458
- o({ ...i, path: p, type: _, link: v, mail: y });
3458
+ o({ ...i, path: h, type: _, link: y, mail: k });
3459
3459
  },
3460
3460
  /* eslint-disable react-hooks/exhaustive-deps */
3461
3461
  [e]
3462
3462
  );
3463
3463
  const f = {};
3464
- return ["link", "mail"].forEach((p) => {
3465
- f[p] = Object.keys(i[p]).length ? (_) => /* @__PURE__ */ a.jsx("a", { ...i[p], children: _ }) : (_) => _;
3464
+ return ["link", "mail"].forEach((h) => {
3465
+ f[h] = Object.keys(i[h]).length ? (_) => /* @__PURE__ */ a.jsx("a", { ...i[h], children: _ }) : (_) => _;
3466
3466
  }), /* @__PURE__ */ a.jsx(Ar, { type: i.type, heading: c ? !1 : s.formatMessage({ id: `${i.path}_title` }), children: c ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3467
- /* @__PURE__ */ a.jsx(pe, { element: "span" }),
3468
- /* @__PURE__ */ a.jsx(pe, { element: "span" })
3467
+ /* @__PURE__ */ a.jsx(_e, { element: "span" }),
3468
+ /* @__PURE__ */ a.jsx(_e, { element: "span" })
3469
3469
  ] }) : (
3470
3470
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
3471
3471
  // @ts-ignore
@@ -3474,8 +3474,8 @@ const Je = "emailHelperTextBox_", qi = ({ type: e, email: t, redirectPath: n, re
3474
3474
  { id: `${i.path}_text` },
3475
3475
  {
3476
3476
  ...f,
3477
- strong: (p) => /* @__PURE__ */ a.jsx("strong", { children: p }),
3478
- em: (p) => /* @__PURE__ */ a.jsx("em", { children: p }),
3477
+ strong: (h) => /* @__PURE__ */ a.jsx("strong", { children: h }),
3478
+ em: (h) => /* @__PURE__ */ a.jsx("em", { children: h }),
3479
3479
  br: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3480
3480
  /* @__PURE__ */ a.jsx("br", {}),
3481
3481
  /* @__PURE__ */ a.jsx("br", {})
@@ -3491,22 +3491,22 @@ const Xe = "passwordRules_", ra = "isMoreThanEightCharacters", sa = "includesNum
3491
3491
  [ia]: "lowercaseUppercase"
3492
3492
  }, fs = ({ matchingRules: e = { isMoreThanEightCharacters: !1, includesNumberAndSymbol: !1, includesLowerAndUppercase: !1 }, className: t = "" }) => {
3493
3493
  const n = P();
3494
- return /* @__PURE__ */ a.jsxs("aside", { className: j("password-rules", t), children: [
3494
+ return /* @__PURE__ */ a.jsxs("aside", { className: w("password-rules", t), children: [
3495
3495
  /* @__PURE__ */ a.jsx("small", { children: n.formatMessage({ id: `${Xe}intro` }) }),
3496
- /* @__PURE__ */ a.jsx("ul", { children: [ra, sa, ia].map((r) => /* @__PURE__ */ a.jsxs("li", { className: j({ matches: e[r] }), children: [
3497
- /* @__PURE__ */ a.jsxs(se, { children: [
3496
+ /* @__PURE__ */ a.jsx("ul", { children: [ra, sa, ia].map((r) => /* @__PURE__ */ a.jsxs("li", { className: w({ matches: e[r] }), children: [
3497
+ /* @__PURE__ */ a.jsxs(ae, { children: [
3498
3498
  n.formatMessage({ id: `${Xe}rule_label` }),
3499
3499
  " "
3500
3500
  ] }),
3501
3501
  /* @__PURE__ */ a.jsx("span", { children: n.formatMessage({ id: `${Xe}rule_${ms[r]}` }) }),
3502
- !e[r] && /* @__PURE__ */ a.jsxs(se, { element: "strong", children: [
3502
+ !e[r] && /* @__PURE__ */ a.jsxs(ae, { element: "strong", children: [
3503
3503
  " ",
3504
3504
  " ",
3505
3505
  n.formatMessage({ id: `${Xe}notMet` })
3506
3506
  ] })
3507
3507
  ] }, `rule-${r}`)) })
3508
3508
  ] });
3509
- }, Hi = Ae(fs);
3509
+ }, Hi = Fe(fs);
3510
3510
  const Ui = ({
3511
3511
  text: e = {},
3512
3512
  topRating: t = 5,
@@ -3516,52 +3516,52 @@ const Ui = ({
3516
3516
  className: i = "",
3517
3517
  hasLoaded: o = !1
3518
3518
  }) => {
3519
- const c = P(), [m, l] = F({ setUp: !1, id: null, rating: null, disabled: !0 }), f = async () => {
3519
+ const c = P(), [m, l] = R({ setUp: !1, id: null, rating: null, disabled: !0 }), f = async () => {
3520
3520
  try {
3521
- const k = await n();
3522
- l((g) => ({ ...g, setUp: !0, id: k && k.id, disabled: !1 }));
3523
- } catch (k) {
3524
- l((g) => ({ ...g, setUp: !0, disabled: !0 })), s(k);
3521
+ const v = await n();
3522
+ l((g) => ({ ...g, setUp: !0, id: v && v.id, disabled: !1 }));
3523
+ } catch (v) {
3524
+ l((g) => ({ ...g, setUp: !0, disabled: !0 })), s(v);
3525
3525
  }
3526
3526
  };
3527
- if (V(() => {
3527
+ if (G(() => {
3528
3528
  o && !m.setUp && f();
3529
3529
  }, [o]), !o)
3530
- return /* @__PURE__ */ a.jsx(pe, { className: "rating-placeholder" });
3531
- const { id: d, rating: h, disabled: p } = m, _ = "ratings_", v = {
3530
+ return /* @__PURE__ */ a.jsx(_e, { className: "rating-placeholder" });
3531
+ const { id: d, rating: p, disabled: h } = m, _ = "ratings_", y = {
3532
3532
  text: c.formatMessage({ id: `${_}text` }),
3533
3533
  low: c.formatMessage({ id: `${_}low` }),
3534
3534
  high: c.formatMessage({ id: `${_}high` }),
3535
3535
  success: c.formatMessage({ id: `${_}success` }),
3536
3536
  ...e
3537
- }, y = async (k) => {
3538
- if (!(!d || p))
3537
+ }, k = async (v) => {
3538
+ if (!(!d || h))
3539
3539
  try {
3540
- l((g) => ({ ...g, rating: k, disabled: !0 })), await r({ id: d, value: k });
3540
+ l((g) => ({ ...g, rating: v, disabled: !0 })), await r({ id: d, value: v });
3541
3541
  } catch (g) {
3542
3542
  l((b) => ({ ...b, rating: null })), s(g);
3543
3543
  } finally {
3544
3544
  l((g) => ({ ...g, disabled: !1 }));
3545
3545
  }
3546
3546
  };
3547
- return /* @__PURE__ */ a.jsxs("div", { className: j("rating", i), children: [
3548
- /* @__PURE__ */ a.jsx("span", { className: "label", children: v[h ? "success" : "text"] }),
3549
- /* @__PURE__ */ a.jsx("ol", { children: Array.from(new Array(t).keys()).map((k) => {
3550
- const g = k + 1;
3551
- return /* @__PURE__ */ a.jsx("li", { className: j({ selected: h && g <= h }), children: /* @__PURE__ */ a.jsx(
3552
- q,
3547
+ return /* @__PURE__ */ a.jsxs("div", { className: w("rating", i), children: [
3548
+ /* @__PURE__ */ a.jsx("span", { className: "label", children: y[p ? "success" : "text"] }),
3549
+ /* @__PURE__ */ a.jsx("ol", { children: Array.from(new Array(t).keys()).map((v) => {
3550
+ const g = v + 1;
3551
+ return /* @__PURE__ */ a.jsx("li", { className: w({ selected: p && g <= p }), children: /* @__PURE__ */ a.jsx(
3552
+ B,
3553
3553
  {
3554
3554
  variant: "tertiary",
3555
3555
  size: "small",
3556
- icon: { icon: `star${!h || g > h ? "_empty" : ""}`, position: "left", hover: "star" },
3556
+ icon: { icon: `star${!p || g > p ? "_empty" : ""}`, position: "left", hover: "star" },
3557
3557
  screenreaderText: `${c.formatMessage(
3558
3558
  { id: `${_}stars` },
3559
3559
  { number: g, total: t }
3560
- )}${g === 1 || g === t ? ` - ${v[g === 1 ? "low" : "high"]}` : ""}`,
3560
+ )}${g === 1 || g === t ? ` - ${y[g === 1 ? "low" : "high"]}` : ""}`,
3561
3561
  onClick: (b) => {
3562
- b.preventDefault(), b.stopPropagation(), y(g);
3562
+ b.preventDefault(), b.stopPropagation(), k(g);
3563
3563
  },
3564
- disabled: p
3564
+ disabled: h
3565
3565
  }
3566
3566
  ) }, `rating-${g}`);
3567
3567
  }) })
@@ -3575,8 +3575,8 @@ const ps = ({
3575
3575
  gtmContext: s = "search-bar",
3576
3576
  gtmEvent: i = "form-submission"
3577
3577
  }) => {
3578
- const { searchIsOpen: o = !0, isDesktopVersion: c = !1 } = n || {}, m = P(), l = te(null);
3579
- Ne(() => {
3578
+ const { searchIsOpen: o = !0, isDesktopVersion: c = !1 } = n || {}, m = P(), l = ne(null);
3579
+ Pe(() => {
3580
3580
  !n || c || !o || l.current && l.current.focus();
3581
3581
  }, [o]);
3582
3582
  const f = (d) => {
@@ -3586,11 +3586,11 @@ const ps = ({
3586
3586
  "form",
3587
3587
  {
3588
3588
  onSubmit: f,
3589
- className: j("search-form gtm-trackable", t),
3589
+ className: w("search-form gtm-trackable", t),
3590
3590
  "data-gtm-event-context": s,
3591
3591
  "data-gtm-event-type": i,
3592
3592
  children: /* @__PURE__ */ a.jsx("fieldset", { id: `${e}-form`, hidden: n ? !o : !1, role: "search", children: /* @__PURE__ */ a.jsxs("p", { children: [
3593
- /* @__PURE__ */ a.jsx(se, { element: "label", htmlFor: e, children: m.formatMessage({ id: "search_label" }) }),
3593
+ /* @__PURE__ */ a.jsx(ae, { element: "label", htmlFor: e, children: m.formatMessage({ id: "search_label" }) }),
3594
3594
  /* @__PURE__ */ a.jsx(
3595
3595
  "input",
3596
3596
  {
@@ -3612,10 +3612,10 @@ const ps = ({
3612
3612
  onClick: (d) => {
3613
3613
  d.preventDefault(), d.stopPropagation(), l.current && l.current.value && (l.current.value = "");
3614
3614
  },
3615
- children: /* @__PURE__ */ a.jsx(se, { children: m.formatMessage({ id: "search_clear" }) })
3615
+ children: /* @__PURE__ */ a.jsx(ae, { children: m.formatMessage({ id: "search_clear" }) })
3616
3616
  }
3617
3617
  ),
3618
- /* @__PURE__ */ a.jsx("button", { className: "search", onClick: f, children: /* @__PURE__ */ a.jsx(se, { children: m.formatMessage({ id: "search_cta" }) }) })
3618
+ /* @__PURE__ */ a.jsx("button", { className: "search", onClick: f, children: /* @__PURE__ */ a.jsx(ae, { children: m.formatMessage({ id: "search_cta" }) }) })
3619
3619
  ] }) })
3620
3620
  }
3621
3621
  );
@@ -3633,46 +3633,46 @@ const hs = ({
3633
3633
  initialFormStatus: l = "NOT_SUBMITTED"
3634
3634
  /* NOT_SUBMITTED */
3635
3635
  }) => {
3636
- const [f, d] = F([]), [h, p] = F(!0), [_, v] = F(l), { formatMessage: y } = P(), k = async (w) => {
3637
- w.preventDefault();
3636
+ const [f, d] = R([]), [p, h] = R(!0), [_, y] = R(l), { formatMessage: k } = P(), v = async (j) => {
3637
+ j.preventDefault();
3638
3638
  try {
3639
- await m(f), d([]), v(
3639
+ await m(f), d([]), y(
3640
3640
  "SUCCESS"
3641
3641
  /* SUCCESS */
3642
3642
  );
3643
3643
  } catch (C) {
3644
- v(
3644
+ y(
3645
3645
  "ERROR"
3646
3646
  /* ERROR */
3647
3647
  ), c(C);
3648
3648
  }
3649
- }, g = (w) => {
3650
- w.preventDefault(), v(
3649
+ }, g = (j) => {
3650
+ j.preventDefault(), y(
3651
3651
  "NOT_SUBMITTED"
3652
3652
  /* NOT_SUBMITTED */
3653
- ), p(!0), d([]);
3654
- }, b = (w) => {
3655
- w.preventDefault(), o(), v(
3653
+ ), h(!0), d([]);
3654
+ }, b = (j) => {
3655
+ j.preventDefault(), o(), y(
3656
3656
  "CLOSED"
3657
3657
  /* CLOSED */
3658
3658
  );
3659
3659
  };
3660
3660
  return _ === "CLOSED" ? null : _ === "ERROR" || _ === "SUCCESS" ? /* @__PURE__ */ a.jsxs("div", { className: "invite-form-wrapper", children: [
3661
- /* @__PURE__ */ a.jsx("div", { className: "content centred", children: _ === "SUCCESS" ? /* @__PURE__ */ a.jsx("h2", { className: "success-title", children: y({ id: "inviteForm_success" }) }) : /* @__PURE__ */ a.jsxs("h2", { className: "error-title", children: [
3661
+ /* @__PURE__ */ a.jsx("div", { className: "content centred", children: _ === "SUCCESS" ? /* @__PURE__ */ a.jsx("h2", { className: "success-title", children: k({ id: "inviteForm_success" }) }) : /* @__PURE__ */ a.jsxs("h2", { className: "error-title", children: [
3662
3662
  " ",
3663
- y({ id: "inviteForm_error" })
3663
+ k({ id: "inviteForm_error" })
3664
3664
  ] }) }),
3665
3665
  /* @__PURE__ */ a.jsx(Te, {}),
3666
3666
  /* @__PURE__ */ a.jsx("div", { className: "footer", children: _ === "SUCCESS" ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3667
- /* @__PURE__ */ a.jsx(q, { variant: "secondary", onClick: g, children: y({ id: "inviteForm_ctaSendMoreInvites" }) }),
3668
- /* @__PURE__ */ a.jsx(q, { onClick: b, children: y({ id: "inviteForm_ctaDone" }) })
3669
- ] }) : /* @__PURE__ */ a.jsx(q, { onClick: g, children: y({ id: "inviteForm_ctaTryAgain" }) }) })
3667
+ /* @__PURE__ */ a.jsx(B, { variant: "secondary", onClick: g, children: k({ id: "inviteForm_ctaSendMoreInvites" }) }),
3668
+ /* @__PURE__ */ a.jsx(B, { onClick: b, children: k({ id: "inviteForm_ctaDone" }) })
3669
+ ] }) : /* @__PURE__ */ a.jsx(B, { onClick: g, children: k({ id: "inviteForm_ctaTryAgain" }) }) })
3670
3670
  ] }) : /* @__PURE__ */ a.jsx("div", { className: "invite-form-wrapper", children: /* @__PURE__ */ a.jsxs(
3671
3671
  "form",
3672
3672
  {
3673
3673
  style: { backgroundColor: i },
3674
- onSubmit: k,
3675
- className: j("invite-form gtm-trackable"),
3674
+ onSubmit: v,
3675
+ className: w("invite-form gtm-trackable"),
3676
3676
  children: [
3677
3677
  /* @__PURE__ */ a.jsxs("fieldset", { className: "content", children: [
3678
3678
  /* @__PURE__ */ a.jsx("h2", { className: "title", style: { color: r }, children: e }),
@@ -3682,25 +3682,25 @@ const hs = ({
3682
3682
  {
3683
3683
  id: "email-input",
3684
3684
  inputClassName: "email-input input",
3685
- placeholder: y({ id: "inviteForm_email_placeholder" }),
3685
+ placeholder: k({ id: "inviteForm_email_placeholder" }),
3686
3686
  emails: f,
3687
- onChange: (w) => {
3688
- d(w), p(!w.length);
3687
+ onChange: (j) => {
3688
+ d(j), h(!j.length);
3689
3689
  },
3690
3690
  autoFocus: !1,
3691
- getLabel: (w, C, M) => /* @__PURE__ */ a.jsxs("div", { className: "email text-medium", children: [
3692
- /* @__PURE__ */ a.jsx("div", { "data-tag-item": !0, children: w }),
3691
+ getLabel: (j, C, S) => /* @__PURE__ */ a.jsxs("div", { className: "email text-medium", children: [
3692
+ /* @__PURE__ */ a.jsx("div", { "data-tag-item": !0, children: j }),
3693
3693
  /* @__PURE__ */ a.jsx(
3694
- q,
3694
+ B,
3695
3695
  {
3696
3696
  variant: "tertiary",
3697
3697
  size: "small",
3698
3698
  icon: { icon: "close" },
3699
3699
  onClick: () => {
3700
- M(C), p(!f.length);
3700
+ S(C), h(!f.length);
3701
3701
  },
3702
3702
  className: "remove-email-button",
3703
- screenreaderText: y({ id: "overlay_close" })
3703
+ screenreaderText: k({ id: "overlay_close" })
3704
3704
  }
3705
3705
  )
3706
3706
  ] }, C)
@@ -3708,11 +3708,11 @@ const hs = ({
3708
3708
  )
3709
3709
  ] }),
3710
3710
  /* @__PURE__ */ a.jsx(Te, {}),
3711
- /* @__PURE__ */ a.jsx("fieldset", { className: "footer", children: /* @__PURE__ */ a.jsx(q, { className: "sendEmailsButton", disabled: h, children: n }) })
3711
+ /* @__PURE__ */ a.jsx("fieldset", { className: "footer", children: /* @__PURE__ */ a.jsx(B, { className: "sendEmailsButton", disabled: p, children: n }) })
3712
3712
  ]
3713
3713
  }
3714
3714
  ) });
3715
- }, H = {
3715
+ }, U = {
3716
3716
  timeouts: {},
3717
3717
  handlerCalled: {},
3718
3718
  getIsDesktopVersion: (e, t) => {
@@ -3735,9 +3735,9 @@ const hs = ({
3735
3735
  if (n[e] === t || e === "account" && t === !1 && n.navigation === !0)
3736
3736
  return;
3737
3737
  const s = Date.now();
3738
- if (!t && H.handlerCalled[e] && s - H.handlerCalled[e] < 500)
3738
+ if (!t && U.handlerCalled[e] && s - U.handlerCalled[e] < 500)
3739
3739
  return;
3740
- H.handlerCalled[e] = s;
3740
+ U.handlerCalled[e] = s;
3741
3741
  let i = [{ type: `menus.${e}`, value: t }];
3742
3742
  t === !0 && Object.keys(n).forEach((o) => {
3743
3743
  o === e || n[o] === !1 || i.push({ type: `menus.${o}`, value: !1 });
@@ -3762,7 +3762,7 @@ const hs = ({
3762
3762
  if (!(typeof s > "u") && (!n || s[t] && s[t].includes(n) || s.value && s.value.includes(n) || s.toString().includes(n)))
3763
3763
  return e[r];
3764
3764
  }
3765
- return e[0].children ? H.findFirstChild(e[0].children, t, n) : !1;
3765
+ return e[0].children ? U.findFirstChild(e[0].children, t, n) : !1;
3766
3766
  },
3767
3767
  autoFocus: ({ menu: e, navigationRef: t, isDesktopVersion: n, focusElements: r, dispatch: s }) => {
3768
3768
  if (!t.current || !t.current.children)
@@ -3776,20 +3776,20 @@ const hs = ({
3776
3776
  switch (e) {
3777
3777
  case "navigation":
3778
3778
  if (n) {
3779
- const m = H.findFirstChild(
3779
+ const m = U.findFirstChild(
3780
3780
  t.current.children,
3781
3781
  "attributes.aria-controls",
3782
3782
  "navigation"
3783
3783
  );
3784
- o = H.findFirstChild(m.children, "href");
3784
+ o = U.findFirstChild(m.children, "href");
3785
3785
  } else
3786
- o = H.findFirstChild(t.current.children, "href");
3786
+ o = U.findFirstChild(t.current.children, "href");
3787
3787
  o || (o = t.current);
3788
3788
  break;
3789
3789
  case "account":
3790
- if (c = H.findFirstChild(t.current.children, "className", "account"), !c || !c.children)
3790
+ if (c = U.findFirstChild(t.current.children, "className", "account"), !c || !c.children)
3791
3791
  return;
3792
- o = H.findFirstChild(c.children, "href");
3792
+ o = U.findFirstChild(c.children, "href");
3793
3793
  break;
3794
3794
  default:
3795
3795
  return;
@@ -3798,16 +3798,16 @@ const hs = ({
3798
3798
  },
3799
3799
  events: {
3800
3800
  onClick: (e, { id: t, callback: n, isOpen: r }) => {
3801
- e.target && e.target.attributes && e.target.attributes.href || (e.preventDefault(), e.stopPropagation(), clearTimeout(H.timeouts[t]), n(t, !r));
3801
+ e.target && e.target.attributes && e.target.attributes.href || (e.preventDefault(), e.stopPropagation(), clearTimeout(U.timeouts[t]), n(t, !r));
3802
3802
  },
3803
3803
  onFocus: ({ id: e }) => {
3804
- clearTimeout(H.timeouts[e]);
3804
+ clearTimeout(U.timeouts[e]);
3805
3805
  },
3806
3806
  onMouseEnter: ({ id: e, callback: t }) => {
3807
- clearTimeout(H.timeouts[e]), t(e, !0);
3807
+ clearTimeout(U.timeouts[e]), t(e, !0);
3808
3808
  },
3809
3809
  onBlur: ({ id: e, callback: t }) => {
3810
- H.timeouts[e] = setTimeout(() => {
3810
+ U.timeouts[e] = setTimeout(() => {
3811
3811
  t(e, !1);
3812
3812
  }, 250);
3813
3813
  }
@@ -3902,56 +3902,56 @@ const hs = ({
3902
3902
  const m = "doTrack" in c, l = i === null ? m ? c.doTrack : !0 : i, f = e.includes("buttons.");
3903
3903
  let d = `header_${e.replaceAll(".", "_")}`;
3904
3904
  c.hasVariantText && (d += `_logged${t ? "In" : "Out"}`);
3905
- let h = !1;
3905
+ let p = !1;
3906
3906
  if (c.href) {
3907
3907
  let g = c.gtmType || `${e}-click`;
3908
3908
  if (g.includes(".")) {
3909
- const b = g.split("."), w = b[b.length - 2];
3910
- g = `${w === "topics" ? `${w}-` : ""}${b[b.length - 1]}`;
3909
+ const b = g.split("."), j = b[b.length - 2];
3910
+ g = `${j === "topics" ? `${j}-` : ""}${b[b.length - 1]}`;
3911
3911
  }
3912
- h = {
3912
+ p = {
3913
3913
  href: c.href,
3914
3914
  role: "menuitem"
3915
- }, l && (h = {
3916
- ...h,
3915
+ }, l && (p = {
3916
+ ...p,
3917
3917
  className: "gtm-trackable",
3918
3918
  "data-gtm-event-type": g,
3919
3919
  "data-gtm-event-context": "HeaderButtons"
3920
- }), f && (h = {
3921
- ...h,
3920
+ }), f && (p = {
3921
+ ...p,
3922
3922
  variant: "secondary",
3923
3923
  size: { mobile: "small", 881: "large" },
3924
3924
  ...c.props || {}
3925
3925
  });
3926
3926
  }
3927
- const p = c.order && c.order[0] && c[c.order[0]], _ = p && c[c.order[0]].order, v = h && window.location.pathname === c.href;
3928
- let y = {}, k = {};
3929
- if (p) {
3927
+ const h = c.order && c.order[0] && c[c.order[0]], _ = h && c[c.order[0]].order, y = p && window.location.pathname === c.href;
3928
+ let k = {}, v = {};
3929
+ if (h) {
3930
3930
  const g = c.menuId || e, b = {
3931
- onClick: (w) => H.events.onClick(w, { id: g, callback: s, isOpen: r[g] }),
3932
- onFocus: () => H.events.onFocus({ id: g }),
3933
- onBlur: () => H.events.onBlur({ id: g, callback: s }),
3934
- onMouseLeave: () => H.events.onBlur({ id: g, callback: s }),
3935
- onMouseEnter: () => H.events.onMouseEnter({ id: g, callback: s })
3931
+ onClick: (j) => U.events.onClick(j, { id: g, callback: s, isOpen: r[g] }),
3932
+ onFocus: () => U.events.onFocus({ id: g }),
3933
+ onBlur: () => U.events.onBlur({ id: g, callback: s }),
3934
+ onMouseLeave: () => U.events.onBlur({ id: g, callback: s }),
3935
+ onMouseEnter: () => U.events.onMouseEnter({ id: g, callback: s })
3936
3936
  };
3937
- n && (_ && (y = {
3937
+ n && (_ && (k = {
3938
3938
  ...b,
3939
- onKeyPress: (w) => {
3940
- w.key === "Enter" && H.events.onClick(w, { id: g, callback: s, isOpen: r[g] });
3939
+ onKeyPress: (j) => {
3940
+ j.key === "Enter" && U.events.onClick(j, { id: g, callback: s, isOpen: r[g] });
3941
3941
  },
3942
3942
  tabIndex: "0",
3943
3943
  // Add a `tabIndex` so keyboard users can focus on the `li`
3944
3944
  "aria-haspopup": !0,
3945
3945
  "aria-expanded": r[g],
3946
3946
  "aria-controls": g
3947
- }), k = { hidden: g in r ? !r[g] : !0 }), _ || (k = {
3948
- ...k,
3947
+ }), v = { hidden: g in r ? !r[g] : !0 }), _ || (v = {
3948
+ ...v,
3949
3949
  ...b
3950
3950
  });
3951
3951
  }
3952
- return /* @__PURE__ */ a.jsxs("li", { className: j({ [c.className]: c.className, "has-submenu": p, parent: _, active: v }), role: "none", ...y, children: [
3953
- h ? A.createElement(f ? q : "a", h, o.formatMessage({ id: d })) : o.formatMessage({ id: d }),
3954
- c.order && /* @__PURE__ */ a.jsx("ul", { ...k, children: c.order.map((g) => {
3952
+ return /* @__PURE__ */ a.jsxs("li", { className: w({ [c.className]: c.className, "has-submenu": h, parent: _, active: y }), role: "none", ...k, children: [
3953
+ p ? A.createElement(f ? B : "a", p, o.formatMessage({ id: d })) : o.formatMessage({ id: d }),
3954
+ c.order && /* @__PURE__ */ a.jsx("ul", { ...v, children: c.order.map((g) => {
3955
3955
  if (!c[g])
3956
3956
  return null;
3957
3957
  const b = {
@@ -3961,16 +3961,16 @@ const hs = ({
3961
3961
  callback: s,
3962
3962
  doTrack: m ? l : null
3963
3963
  };
3964
- return c[g].order ? /* @__PURE__ */ a.jsxs("li", { className: j({ [c[g].className]: c[g].className }), children: [
3964
+ return c[g].order ? /* @__PURE__ */ a.jsxs("li", { className: w({ [c[g].className]: c[g].className }), children: [
3965
3965
  o.formatMessage({ id: `${d}_${g}` }),
3966
- /* @__PURE__ */ a.jsx("ul", { children: c[g].order.map((w) => /* @__PURE__ */ a.jsx(lt, { id: `${e}.${g}.${w}`, ...b }, w)) })
3966
+ /* @__PURE__ */ a.jsx("ul", { children: c[g].order.map((j) => /* @__PURE__ */ a.jsx(lt, { id: `${e}.${g}.${j}`, ...b }, j)) })
3967
3967
  ] }, g) : /* @__PURE__ */ a.jsx(lt, { id: `${e}.${g}`, ...b }, g);
3968
3968
  }) })
3969
3969
  ] }, e);
3970
3970
  };
3971
3971
  const gs = { height: 67, height_desktop: 83 }, oa = ({ showNavigation: e = !0 }) => {
3972
- const t = P(), n = fe(ke), r = qe(!0, !0), s = n && typeof n.id == "string", i = ft(
3973
- () => H.getIsDesktopVersion(s, r),
3972
+ const t = P(), n = ge(ke), r = He(!0, !0), s = n && typeof n.id == "string", i = ft(
3973
+ () => U.getIsDesktopVersion(s, r),
3974
3974
  [s, r]
3975
3975
  ), [o, c] = Oa(vr, {
3976
3976
  headerIsVisible: !0,
@@ -3984,28 +3984,28 @@ const gs = { height: 67, height_desktop: 83 }, oa = ({ showNavigation: e = !0 })
3984
3984
  scrollPosition: gs[`height${i.navigation ? "_desktop" : ""}`],
3985
3985
  callbacks: {
3986
3986
  scrollUp: () => {
3987
- !i && l.navigation || H.shouldChangeHeaderIsVisible(!0, l, c);
3987
+ !i && l.navigation || U.shouldChangeHeaderIsVisible(!0, l, c);
3988
3988
  },
3989
3989
  scrollDown: () => {
3990
- !i && l.navigation || H.shouldChangeHeaderIsVisible(!1, l, c);
3990
+ !i && l.navigation || U.shouldChangeHeaderIsVisible(!1, l, c);
3991
3991
  }
3992
3992
  }
3993
3993
  });
3994
- const d = (p, _) => {
3995
- H.handleMenus({ id: p, value: _, menus: l, dispatch: c });
3996
- }, h = te(null);
3997
- return Ne(() => {
3998
- l.navigation && H.autoFocus({
3994
+ const d = (h, _) => {
3995
+ U.handleMenus({ id: h, value: _, menus: l, dispatch: c });
3996
+ }, p = ne(null);
3997
+ return Pe(() => {
3998
+ l.navigation && U.autoFocus({
3999
3999
  menu: "navigation",
4000
- navigationRef: h,
4000
+ navigationRef: p,
4001
4001
  isDesktopVersion: i.navigation,
4002
4002
  focusElements: f,
4003
4003
  dispatch: c
4004
4004
  });
4005
- }, [l.navigation]), Ne(() => {
4006
- l.account && H.autoFocus({
4005
+ }, [l.navigation]), Pe(() => {
4006
+ l.account && U.autoFocus({
4007
4007
  menu: "account",
4008
- navigationRef: h,
4008
+ navigationRef: p,
4009
4009
  isDesktopVersion: i.navigation,
4010
4010
  focusElements: f,
4011
4011
  dispatch: c
@@ -4015,14 +4015,14 @@ const gs = { height: 67, height_desktop: 83 }, oa = ({ showNavigation: e = !0 })
4015
4015
  "nav",
4016
4016
  {
4017
4017
  id: "header",
4018
- className: j({
4018
+ className: w({
4019
4019
  "logged-in": s,
4020
4020
  "logged-out": !s,
4021
4021
  visible: m
4022
4022
  }),
4023
4023
  children: [
4024
4024
  /* @__PURE__ */ a.jsx(
4025
- se,
4025
+ ae,
4026
4026
  {
4027
4027
  element: "a",
4028
4028
  href: "#content-of-page",
@@ -4035,15 +4035,15 @@ const gs = { height: 67, height_desktop: 83 }, oa = ({ showNavigation: e = !0 })
4035
4035
  "button",
4036
4036
  {
4037
4037
  className: "menu-button gtm-trackable",
4038
- onClick: (p) => {
4039
- p.preventDefault(), p.stopPropagation(), d("navigation", !l.navigation);
4038
+ onClick: (h) => {
4039
+ h.preventDefault(), h.stopPropagation(), d("navigation", !l.navigation);
4040
4040
  },
4041
4041
  "data-gtm-event-type": "open-tab-menu-click",
4042
4042
  "data-gtm-event-context": "HeaderLeft-Chevron",
4043
4043
  "aria-haspopup": "true",
4044
4044
  "aria-expanded": l.navigation,
4045
4045
  "aria-controls": "navigation",
4046
- children: /* @__PURE__ */ a.jsx(se, { children: t.formatMessage({
4046
+ children: /* @__PURE__ */ a.jsx(ae, { children: t.formatMessage({
4047
4047
  id: `header_menu_${l.navigation ? "hide" : "show"}`
4048
4048
  }) })
4049
4049
  }
@@ -4051,21 +4051,21 @@ const gs = { height: 67, height_desktop: 83 }, oa = ({ showNavigation: e = !0 })
4051
4051
  /* @__PURE__ */ a.jsx(
4052
4052
  "ul",
4053
4053
  {
4054
- ref: h,
4054
+ ref: p,
4055
4055
  id: "navigation",
4056
4056
  hidden: i.navigation || l.account ? !1 : !l.navigation,
4057
4057
  role: "menu",
4058
4058
  "data-showing": !i.navigation && l.account ? "account" : "default",
4059
- children: ct.order.map((p) => /* @__PURE__ */ a.jsx(
4059
+ children: ct.order.map((h) => /* @__PURE__ */ a.jsx(
4060
4060
  lt,
4061
4061
  {
4062
- id: p,
4062
+ id: h,
4063
4063
  isLoggedIn: s,
4064
4064
  isDesktopVersion: i.navigation,
4065
4065
  menus: { navigation: l.navigation, account: l.account },
4066
4066
  callback: d
4067
4067
  },
4068
- p
4068
+ h
4069
4069
  ))
4070
4070
  }
4071
4071
  ),
@@ -4073,14 +4073,14 @@ const gs = { height: 67, height_desktop: 83 }, oa = ({ showNavigation: e = !0 })
4073
4073
  "button",
4074
4074
  {
4075
4075
  className: "search toggle-search-button",
4076
- onClick: (p) => {
4077
- p.preventDefault(), p.stopPropagation(), d("search", !l.search);
4076
+ onClick: (h) => {
4077
+ h.preventDefault(), h.stopPropagation(), d("search", !l.search);
4078
4078
  },
4079
4079
  "aria-haspopup": "true",
4080
4080
  "aria-expanded": l.search,
4081
4081
  "aria-controls": "search-form",
4082
4082
  children: /* @__PURE__ */ a.jsx(
4083
- se,
4083
+ ae,
4084
4084
  {
4085
4085
  children: t.formatMessage({
4086
4086
  id: `header_search_${l.search ? "hide" : "show"}`
@@ -4105,22 +4105,22 @@ const gs = { height: 67, height_desktop: 83 }, oa = ({ showNavigation: e = !0 })
4105
4105
  "button",
4106
4106
  {
4107
4107
  className: "account-button",
4108
- onClick: (p) => H.events.onClick(p, {
4108
+ onClick: (h) => U.events.onClick(h, {
4109
4109
  id: "account",
4110
4110
  callback: d,
4111
4111
  isOpen: l.account
4112
4112
  }),
4113
- onMouseEnter: () => H.events.onMouseEnter({ id: "account", callback: d }),
4114
- onMouseLeave: () => H.events.onBlur({ id: "account", callback: d }),
4113
+ onMouseEnter: () => U.events.onMouseEnter({ id: "account", callback: d }),
4114
+ onMouseLeave: () => U.events.onBlur({ id: "account", callback: d }),
4115
4115
  "aria-haspopup": "true",
4116
4116
  "aria-expanded": l.account,
4117
4117
  "aria-controls": "navigation",
4118
4118
  children: [
4119
- /* @__PURE__ */ a.jsx(se, { children: t.formatMessage({
4119
+ /* @__PURE__ */ a.jsx(ae, { children: t.formatMessage({
4120
4120
  id: `header_account_${l.account ? "hide" : "show"}`
4121
4121
  }) }),
4122
4122
  /* @__PURE__ */ a.jsx(
4123
- He,
4123
+ Ue,
4124
4124
  {
4125
4125
  name: n && n.name || "",
4126
4126
  src: n && n.image && n.image.thumbnail || ""
@@ -4128,7 +4128,7 @@ const gs = { height: 67, height_desktop: 83 }, oa = ({ showNavigation: e = !0 })
4128
4128
  )
4129
4129
  ]
4130
4130
  }
4131
- ) : /* @__PURE__ */ a.jsx("ul", { className: "sign-in-buttons", children: ct.buttons.order.map((p) => /* @__PURE__ */ a.jsx(lt, { id: `buttons.${p}` }, p)) })
4131
+ ) : /* @__PURE__ */ a.jsx("ul", { className: "sign-in-buttons", children: ct.buttons.order.map((h) => /* @__PURE__ */ a.jsx(lt, { id: `buttons.${h}` }, h)) })
4132
4132
  ] })
4133
4133
  ]
4134
4134
  }
@@ -4137,7 +4137,7 @@ const gs = { height: 67, height_desktop: 83 }, oa = ({ showNavigation: e = !0 })
4137
4137
  /* @__PURE__ */ a.jsx(
4138
4138
  "div",
4139
4139
  {
4140
- className: j("overlay", {
4140
+ className: w("overlay", {
4141
4141
  open: l.navigation || l.account || !i.search && l.search
4142
4142
  })
4143
4143
  }
@@ -4147,7 +4147,7 @@ const gs = { height: 67, height_desktop: 83 }, oa = ({ showNavigation: e = !0 })
4147
4147
  const ca = ({ element: e = "section", children: t, className: n, ...r }) => A.createElement(
4148
4148
  e,
4149
4149
  {
4150
- className: j("modal", n),
4150
+ className: w("modal", n),
4151
4151
  children: typeof t == "string" ? /* @__PURE__ */ a.jsx("p", { children: t }) : t,
4152
4152
  ...r
4153
4153
  }
@@ -4167,34 +4167,34 @@ const la = ({
4167
4167
  className: f = "",
4168
4168
  gtmContext: d = "Modal"
4169
4169
  }) => {
4170
- const h = P(), [p, _] = F(t), v = (k) => {
4171
- _(k), k ? (s(), document.body.classList.add("has-overlay")) : (i(), document.body.classList.remove("has-overlay"));
4170
+ const p = P(), [h, _] = R(t), y = (v) => {
4171
+ _(v), v ? (s(), document.body.classList.add("has-overlay")) : (i(), document.body.classList.remove("has-overlay"));
4172
4172
  };
4173
- V(() => {
4174
- v(t);
4173
+ G(() => {
4174
+ y(t);
4175
4175
  }, [t]);
4176
- const y = r ? { "--max-width": `${r / 16}rem` } : {};
4177
- return /* @__PURE__ */ a.jsx("div", { className: j("overlay", { open: p }), children: /* @__PURE__ */ a.jsx(
4176
+ const k = r ? { "--max-width": `${r / 16}rem` } : {};
4177
+ return /* @__PURE__ */ a.jsx("div", { className: w("overlay", { open: h }), children: /* @__PURE__ */ a.jsx(
4178
4178
  ca,
4179
4179
  {
4180
4180
  id: e,
4181
- className: j("overlay-modal", f, { "has-max-width": r }),
4182
- hidden: !p,
4183
- style: y,
4181
+ className: w("overlay-modal", f, { "has-max-width": r }),
4182
+ hidden: !h,
4183
+ style: k,
4184
4184
  children: t && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
4185
4185
  /* @__PURE__ */ a.jsxs("div", { className: "top", children: [
4186
4186
  c && /* @__PURE__ */ a.jsx("h2", { className: "modal-title", children: c }),
4187
4187
  /* @__PURE__ */ a.jsx(
4188
- q,
4188
+ B,
4189
4189
  {
4190
4190
  variant: "tertiary",
4191
4191
  size: "medium",
4192
4192
  icon: { icon: "close" },
4193
- onClick: () => v(!1),
4193
+ onClick: () => y(!1),
4194
4194
  className: "gtm-trackable",
4195
4195
  "data-gtm-event-type": "close-modal-click",
4196
4196
  "data-gtm-event-context": d,
4197
- screenreaderText: h.formatMessage({ id: "overlay_close" })
4197
+ screenreaderText: p.formatMessage({ id: "overlay_close" })
4198
4198
  }
4199
4199
  )
4200
4200
  ] }),
@@ -4233,7 +4233,7 @@ const zi = ({
4233
4233
  showDivider: !1,
4234
4234
  showIcon: o,
4235
4235
  functions: { onClose: c },
4236
- className: j("invite-modal", e, { success: !!n }),
4236
+ className: w("invite-modal", e, { success: !!n }),
4237
4237
  children: /* @__PURE__ */ a.jsx(
4238
4238
  hs,
4239
4239
  {
@@ -4269,30 +4269,30 @@ const bs = () => {
4269
4269
  className: o = "",
4270
4270
  locale: c = "en"
4271
4271
  }) => {
4272
- const { navigation: m = !0, footer: l = !0 } = s, { background: f = "default", variant: d = "default", circle: h = "default" } = i, p = or();
4273
- V(() => {
4272
+ const { navigation: m = !0, footer: l = !0 } = s, { background: f = "default", variant: d = "default", circle: p = "default" } = i, h = or();
4273
+ G(() => {
4274
4274
  window.scrollTo(0, 0);
4275
- }, [p]);
4276
- const _ = at(e, { locale: c }), v = at(t, {
4275
+ }, [h]);
4276
+ const _ = at(e, { locale: c }), y = at(t, {
4277
4277
  locale: c
4278
- }), y = at(n, {
4278
+ }), k = at(n, {
4279
4279
  locale: c
4280
- }), k = {};
4281
- return f !== "default" && (k[f] = !0), d !== "default" && (k[d] = !0), h !== "default" && (k[h] = !0), /* @__PURE__ */ a.jsx(Ja, { onError: r, fallback: /* @__PURE__ */ a.jsx(bs, {}), children: /* @__PURE__ */ a.jsx(Ba, { fallback: null, children: /* @__PURE__ */ a.jsxs(
4280
+ }), v = {};
4281
+ return f !== "default" && (v[f] = !0), d !== "default" && (v[d] = !0), p !== "default" && (v[p] = !0), /* @__PURE__ */ a.jsx(Ja, { onError: r, fallback: /* @__PURE__ */ a.jsx(bs, {}), children: /* @__PURE__ */ a.jsx(Ba, { fallback: null, children: /* @__PURE__ */ a.jsxs(
4282
4282
  "div",
4283
4283
  {
4284
4284
  id: "wrapper",
4285
- className: j(o, k, { "has-footer": l }),
4285
+ className: w(o, v, { "has-footer": l }),
4286
4286
  children: [
4287
4287
  /* @__PURE__ */ a.jsx(oa, { showNavigation: m }),
4288
4288
  /* @__PURE__ */ a.jsxs("section", { id: "content-wrapper", children: [
4289
- v && /* @__PURE__ */ a.jsx("div", { className: "additional-content prepended", children: v }),
4289
+ y && /* @__PURE__ */ a.jsx("div", { className: "additional-content prepended", children: y }),
4290
4290
  A.createElement(f === "bold" ? ca : "div", {
4291
4291
  id: "content",
4292
4292
  children: _
4293
4293
  })
4294
4294
  ] }),
4295
- y && /* @__PURE__ */ a.jsx("div", { className: "additional-content appended", children: y }),
4295
+ k && /* @__PURE__ */ a.jsx("div", { className: "additional-content appended", children: k }),
4296
4296
  l && /* @__PURE__ */ a.jsx(aa, {}),
4297
4297
  /* @__PURE__ */ a.jsx(us, {})
4298
4298
  ]
@@ -4347,7 +4347,7 @@ const Wi = ({
4347
4347
  return;
4348
4348
  const f = vs.getTagDetails(l);
4349
4349
  f && m.push(f);
4350
- }), m.length < 1 ? null : /* @__PURE__ */ a.jsx("ul", { className: j("tags text-small", t, s, { "one-line": n }), children: m.map((l) => {
4350
+ }), m.length < 1 ? null : /* @__PURE__ */ a.jsx("ul", { className: w("tags text-small", t, s, { "one-line": n }), children: m.map((l) => {
4351
4351
  const f = c.formatMessage({ id: l.text });
4352
4352
  return /* @__PURE__ */ a.jsx("li", { children: l.href && r ? /* @__PURE__ */ a.jsx(
4353
4353
  "a",
@@ -4371,7 +4371,7 @@ const Vi = ({
4371
4371
  className: o = ""
4372
4372
  }) => {
4373
4373
  const c = P();
4374
- return e.length === 0 ? null : /* @__PURE__ */ a.jsxs("div", { className: j("members-list", o), children: [
4374
+ return e.length === 0 ? null : /* @__PURE__ */ a.jsxs("div", { className: w("members-list", o), children: [
4375
4375
  /* @__PURE__ */ a.jsxs("h1", { children: [
4376
4376
  c.formatMessage({ id: "membersList" }),
4377
4377
  /* @__PURE__ */ a.jsx("span", { className: "count", children: t })
@@ -4392,7 +4392,7 @@ const Vi = ({
4392
4392
  ] });
4393
4393
  };
4394
4394
  let et = null;
4395
- const ce = "discussion_form_", da = ({
4395
+ const le = "discussion_form_", en = ({
4396
4396
  content: e = { type: "response", slugs: {} },
4397
4397
  userHasPermissions: t = !0,
4398
4398
  meta: n = {
@@ -4423,97 +4423,97 @@ const ce = "discussion_form_", da = ({
4423
4423
  },
4424
4424
  gtmContext: m = "DiscussionForm"
4425
4425
  }) => {
4426
- var T, S;
4427
- const l = P(), f = fe(ke), [d, h] = F(
4426
+ var $, M, E;
4427
+ const l = P(), f = ge(ke), [d, p] = R(
4428
4428
  n.isEditing && n.isEditing.text || ""
4429
- ), [p, _] = F(o.error || !1), [v, y] = F(!1), k = te(null);
4430
- if (r || (r = k), n.isLoading)
4429
+ ), [h, _] = R(o.error || !1), [y, k] = R(!1), v = ne(null);
4430
+ if (r || (r = v), n.isLoading)
4431
4431
  return /* @__PURE__ */ a.jsx(
4432
- pe,
4432
+ _e,
4433
4433
  {
4434
4434
  className: "discussion-card discussion-form",
4435
4435
  "data-testid": "loading-placeholder"
4436
4436
  }
4437
4437
  );
4438
- const g = (E) => {
4439
- const W = E.target.value;
4440
- h(W);
4441
- let O;
4442
- !f || !f.id ? O = _e(
4438
+ const g = (I) => {
4439
+ const Z = I.target.value;
4440
+ p(Z);
4441
+ let q;
4442
+ !f || !f.id ? q = be(
4443
4443
  l.formatMessage,
4444
- `${ce}error_loggedOut`,
4444
+ `${le}error_loggedOut`,
4445
4445
  e.type,
4446
4446
  "action"
4447
- ) : t ? W.length >= s && (O = `${ce}error_tooLong`) : O = _e(
4447
+ ) : t ? Z.length >= s && (q = `${le}error_tooLong`) : q = be(
4448
4448
  l.formatMessage,
4449
- `${ce}error_noPermission`,
4449
+ `${le}error_noPermission`,
4450
4450
  e.type,
4451
4451
  "action"
4452
- ), O ? _(O) : p && _(!1);
4452
+ ), q ? _(q) : h && _(!1);
4453
4453
  };
4454
4454
  let b = `${e.type}-form`;
4455
4455
  if (e.type === "response" || e.type === "reply") {
4456
- const E = e.type === "response" ? ((T = e.slugs) == null ? void 0 : T.question) || "" : ((S = e.slugs) == null ? void 0 : S.answer) || "";
4457
- E && (b = `${b}-${E.slice(-15)}`);
4456
+ const I = (($ = e.slugs) == null ? void 0 : $.reply) || ((M = e.slugs) == null ? void 0 : M.answer) || ((E = e.slugs) == null ? void 0 : E.question) || "";
4457
+ I && (b = `${b}-${I.slice(-15)}`);
4458
4458
  }
4459
- const w = async (E) => {
4460
- var O;
4461
- if (E.preventDefault(), E.stopPropagation(), !f || !f.id || !t || M)
4459
+ const j = async (I) => {
4460
+ var q;
4461
+ if (I.preventDefault(), I.stopPropagation(), !f || !f.id || !t || S)
4462
4462
  return;
4463
- et && clearTimeout(et), y("submitting");
4464
- const W = window.location.pathname;
4463
+ et && clearTimeout(et), k("submitting");
4464
+ const Z = window.location.pathname;
4465
4465
  try {
4466
- let U;
4466
+ let z;
4467
4467
  switch (e.type) {
4468
4468
  case "post":
4469
- U = await c.create({ content: d });
4469
+ z = await c.create({ content: d });
4470
4470
  break;
4471
4471
  case "question":
4472
- U = await c.create({
4472
+ z = await c.create({
4473
4473
  title: d,
4474
4474
  authorId: f && f.id,
4475
- ...(O = c.props) == null ? void 0 : O.create
4475
+ ...(q = c.props) == null ? void 0 : q.create
4476
4476
  });
4477
4477
  break;
4478
4478
  case "response":
4479
- U = await c.create(
4479
+ z = await c.create(
4480
4480
  { question: e.slugs.question },
4481
- { body: d, authorId: f && f.id, contentPath: W }
4481
+ { body: d, authorId: f && f.id, contentPath: Z }
4482
4482
  );
4483
4483
  break;
4484
4484
  case "reply":
4485
- U = await c.create(
4485
+ z = await c.create(
4486
4486
  { question: e.slugs.question, answer: e.slugs.answer },
4487
- { body: d, authorId: f && f.id, contentPath: W }
4487
+ { body: d, authorId: f && f.id, contentPath: Z }
4488
4488
  );
4489
4489
  break;
4490
4490
  default:
4491
4491
  break;
4492
4492
  }
4493
- await xr(1e3), c.callback && await c.callback(U), et = setTimeout(() => {
4494
- h(""), y("submitted"), C();
4493
+ await xr(1e3), c.callback && await c.callback(z), et = setTimeout(() => {
4494
+ p(""), k("submitted"), C();
4495
4495
  }, 500);
4496
- } catch (U) {
4497
- const Y = U;
4498
- let K = `${ce}error`;
4499
- Y.message.includes("entry already exists") && (K = _e(
4496
+ } catch (z) {
4497
+ const J = z;
4498
+ let H = `${le}error`;
4499
+ J.message.includes("entry already exists") && (H = be(
4500
4500
  l.formatMessage,
4501
- `${ce}error_alreadyExists`,
4501
+ `${le}error_alreadyExists`,
4502
4502
  e.type,
4503
4503
  "action"
4504
- )), Y.message.includes("429") ? K = _e(
4504
+ )), J.message.includes("429") ? H = be(
4505
4505
  l.formatMessage,
4506
- `${ce}error_tooMany`,
4506
+ `${le}error_tooMany`,
4507
4507
  e.type,
4508
4508
  "action"
4509
- ) : Y.message.includes("400") && (K = `${ce}error`), _(K), C();
4509
+ ) : J.message.includes("400") && (H = `${le}error`), _(H), C();
4510
4510
  }
4511
4511
  }, C = () => {
4512
4512
  et = setTimeout(() => {
4513
- _(!1), y(!1);
4513
+ _(!1), k(!1);
4514
4514
  }, 5e3);
4515
- }, M = !d || !yr(d), L = v === "submitting", R = [];
4516
- return (n.isEditing && !L || o.cancel) && R.push({
4515
+ }, S = !d || !yr(d), Y = y === "submitting", F = [];
4516
+ return (n.isEditing && !Y || o.cancel) && F.push({
4517
4517
  variant: "secondary",
4518
4518
  size: { mobile: "small", 600: "medium" },
4519
4519
  onClick: c.handleCancel,
@@ -4521,37 +4521,37 @@ const ce = "discussion_form_", da = ({
4521
4521
  "data-gtm-event-context": m,
4522
4522
  "data-gtm-event-type": `cancel-${e.type}-click`,
4523
4523
  disabled: !o.cancel && (!f || !f.id || !d),
4524
- children: l.formatMessage({ id: `${ce}cancel` })
4525
- }), R.push({
4524
+ children: l.formatMessage({ id: `${le}cancel` })
4525
+ }), F.push({
4526
4526
  variant: "primary",
4527
4527
  size: { mobile: "small", 600: "medium" },
4528
- onClick: (E) => {
4528
+ onClick: (I) => {
4529
4529
  if (n.isEditing) {
4530
- y("submitting"), c.handleSaveEdit && c.handleSaveEdit(
4531
- k.current && "value" in k.current ? k.current.value : ""
4530
+ k("submitting"), c.handleSaveEdit && c.handleSaveEdit(
4531
+ v.current && "value" in v.current ? v.current.value : ""
4532
4532
  );
4533
4533
  return;
4534
4534
  }
4535
- w(E);
4535
+ j(I);
4536
4536
  },
4537
4537
  className: "gtm-trackable",
4538
4538
  "data-gtm-event-context": m,
4539
4539
  "data-gtm-event-type": `${n.isEditing ? "save" : "submit"}-${e.type}-click`,
4540
4540
  "data-testid": "save-button",
4541
- disabled: !f || !f.id || !t || M || L || n.isEditing && d === n.isEditing.text,
4541
+ disabled: !f || !f.id || !t || S || Y || n.isEditing && d === n.isEditing.text,
4542
4542
  children: l.formatMessage({
4543
- id: `${ce}${L ? n.isEditing ? "saving" : "posting" : n.isEditing ? "save" : "post"}`
4543
+ id: `${le}${Y ? n.isEditing ? "saving" : "posting" : n.isEditing ? "save" : "post"}`
4544
4544
  })
4545
4545
  }), /* @__PURE__ */ a.jsxs(
4546
4546
  "form",
4547
4547
  {
4548
4548
  id: b,
4549
- className: j("discussion-card discussion-form", {
4549
+ className: w("discussion-card discussion-form", {
4550
4550
  "no-styling": n.isInWrapper && n.isEditing
4551
4551
  }),
4552
4552
  "data-testid": `discussion-${e.type}-form`,
4553
4553
  children: [
4554
- (n == null ? void 0 : n.showTitle) && !n.isEditing && ["question"].includes(e.type) && /* @__PURE__ */ a.jsx("h2", { children: _e(l.formatMessage, `${ce}title`, e.type, "action") }),
4554
+ (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") }),
4555
4555
  /* @__PURE__ */ a.jsx(
4556
4556
  Xt,
4557
4557
  {
@@ -4560,30 +4560,30 @@ const ce = "discussion_form_", da = ({
4560
4560
  gtmType: "profile-click"
4561
4561
  }
4562
4562
  ),
4563
- /* @__PURE__ */ a.jsx(se, { element: "label", showOnFocus: !1, htmlFor: `${b}-input`, children: _e(l.formatMessage, `${ce}label`, e.type, "action") }),
4563
+ /* @__PURE__ */ a.jsx(ae, { element: "label", showOnFocus: !1, htmlFor: `${b}-input`, children: be(l.formatMessage, `${le}label`, e.type, "action") }),
4564
4564
  /* @__PURE__ */ a.jsx(
4565
4565
  Xa,
4566
4566
  {
4567
4567
  ref: r,
4568
4568
  id: `${b}-input`,
4569
4569
  name: e.type,
4570
- placeholder: _e(
4570
+ placeholder: be(
4571
4571
  l.formatMessage,
4572
- `${ce}placeholder`,
4572
+ `${le}placeholder`,
4573
4573
  e.type,
4574
4574
  "action"
4575
4575
  ),
4576
4576
  onChange: g,
4577
4577
  value: d,
4578
4578
  maxLength: s,
4579
- "aria-invalid": !!p,
4579
+ "aria-invalid": !!h,
4580
4580
  "aria-errormessage": "error-message",
4581
4581
  minRows: i,
4582
4582
  autoFocus: !!n.isEditing
4583
4583
  }
4584
4584
  ),
4585
- /* @__PURE__ */ a.jsx("small", { children: _e(l.formatMessage, `${ce}explainer`, e.type, "action", {
4586
- a: (E) => /* @__PURE__ */ a.jsx(
4585
+ /* @__PURE__ */ a.jsx("small", { children: be(l.formatMessage, `${le}explainer`, e.type, "action", {
4586
+ a: (I) => /* @__PURE__ */ a.jsx(
4587
4587
  "a",
4588
4588
  {
4589
4589
  href: "https://about.apolitical.co/q-and-a-community-guidelines",
@@ -4592,25 +4592,25 @@ const ce = "discussion_form_", da = ({
4592
4592
  "data-gtm-event-context": m,
4593
4593
  "data-gtm-event-type": "community-guidelines-link",
4594
4594
  rel: "noreferrer",
4595
- children: E
4595
+ children: I
4596
4596
  }
4597
4597
  )
4598
4598
  }) }),
4599
- /* @__PURE__ */ a.jsx(ht, { buttons: R }),
4600
- v === "submitted" && /* @__PURE__ */ a.jsx(Vt, { className: "success", "data-testid": "success", children: _e(l.formatMessage, `${ce}success`, e.type, "action") }),
4601
- p && /* @__PURE__ */ a.jsx(Vt, { id: "error-message", className: "error", "data-testid": "error", children: o.error ? o.error : typeof p == "string" ? p.includes(" ") ? p : l.formatMessage(
4602
- { id: p },
4599
+ /* @__PURE__ */ a.jsx(ht, { buttons: F }),
4600
+ y === "submitted" && /* @__PURE__ */ a.jsx(Vt, { className: "success", "data-testid": "success", children: be(l.formatMessage, `${le}success`, e.type, "action") }),
4601
+ 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(
4602
+ { id: h },
4603
4603
  {
4604
4604
  action: l.formatMessage({
4605
4605
  id: `discussion_action_${e.type}`
4606
4606
  }),
4607
4607
  maxLength: s
4608
4608
  }
4609
- ) : p })
4609
+ ) : h })
4610
4610
  ]
4611
4611
  }
4612
4612
  );
4613
- }, en = ({
4613
+ }, da = ({
4614
4614
  contentType: e,
4615
4615
  createPost: t,
4616
4616
  membershipRequiredToPost: { isMember: n, required: r, join: s, leave: i, notMemberStateText: o }
@@ -4624,7 +4624,7 @@ const ce = "discussion_form_", da = ({
4624
4624
  }
4625
4625
  }
4626
4626
  ) : /* @__PURE__ */ a.jsx(
4627
- da,
4627
+ en,
4628
4628
  {
4629
4629
  content: { type: e, slugs: {} },
4630
4630
  functions: {
@@ -4632,11 +4632,11 @@ const ce = "discussion_form_", da = ({
4632
4632
  }
4633
4633
  }
4634
4634
  ), xs = {
4635
- showThread: !1,
4635
+ showThread: !0,
4636
4636
  showForm: !1
4637
4637
  }, vt = Gt(xs), ks = ({ children: e }) => {
4638
- const [t, n] = F({
4639
- showThread: !1,
4638
+ const [t, n] = R({
4639
+ showThread: !0,
4640
4640
  showForm: !1
4641
4641
  });
4642
4642
  return /* @__PURE__ */ a.jsx(vt.Provider, { value: { ...t, updateConversation: n }, children: e });
@@ -4649,9 +4649,9 @@ const ce = "discussion_form_", da = ({
4649
4649
  ...t && { answerSlug: t },
4650
4650
  ...n && { replySlug: n }
4651
4651
  }), ws = (e, t = 10) => !e || e.length === 0 ? [] : e.slice(0, t);
4652
- let Be = !1;
4652
+ let Ze = !1;
4653
4653
  const Bt = () => {
4654
- Be !== !1 && (clearTimeout(Be), Be = !1);
4654
+ Ze !== !1 && (clearTimeout(Ze), Ze = !1);
4655
4655
  }, Zt = 5, Ts = ({
4656
4656
  element: e = "div",
4657
4657
  likes: t = 0,
@@ -4665,58 +4665,58 @@ const Bt = () => {
4665
4665
  } } = {}
4666
4666
  }) => {
4667
4667
  const l = P();
4668
- V(() => {
4669
- p(s);
4668
+ G(() => {
4669
+ h(s);
4670
4670
  }, [s]);
4671
- const [f, d] = F(t), [h, p] = F(s), [_, v] = F(!1), [y, k] = F(!1), g = ft(() => ws(n, Zt), [n]), b = (C) => {
4672
- if (C.preventDefault(), C.stopPropagation(), k(!1), Be)
4671
+ const [f, d] = R(t), [p, h] = R(s), [_, y] = R(!1), [k, v] = R(!1), g = ft(() => ws(n, Zt), [n]), b = (C) => {
4672
+ if (C.preventDefault(), C.stopPropagation(), v(!1), Ze)
4673
4673
  return Bt(), !1;
4674
4674
  if (Bt(), _ || !o)
4675
4675
  return !1;
4676
- Be = setTimeout(w, 350);
4677
- }, w = async () => {
4676
+ Ze = setTimeout(j, 350);
4677
+ }, j = async () => {
4678
4678
  if (Bt(), _ || !o)
4679
4679
  return !1;
4680
- let C = h ? f - 1 : f + 1;
4681
- C < 0 && (C = 0), v(!0), d(C), p(!h);
4680
+ let C = p ? f - 1 : f + 1;
4681
+ C < 0 && (C = 0), y(!0), d(C), h(!p);
4682
4682
  try {
4683
4683
  if (i && i.slugs) {
4684
- const M = js(i.slugs);
4685
- h ? await m(M) : await c(M, { contentPath: window.location.pathname });
4684
+ const S = js(i.slugs);
4685
+ p ? await m(S) : await c(S, { contentPath: window.location.pathname });
4686
4686
  }
4687
4687
  } catch {
4688
- d(t), p(s);
4688
+ d(t), h(s);
4689
4689
  } finally {
4690
- v(!1);
4690
+ y(!1);
4691
4691
  }
4692
4692
  };
4693
4693
  return A.createElement(
4694
4694
  e,
4695
4695
  {
4696
- className: j("likes-wrapper text-medium action-button", { "show-spinner": _, "is-liked": h, disabled: !o }),
4696
+ className: w("likes-wrapper text-medium action-button", { "show-spinner": _, "is-liked": p, disabled: !o }),
4697
4697
  onClick: b,
4698
4698
  onMouseEnter: () => {
4699
- k(!0);
4699
+ v(!0);
4700
4700
  },
4701
4701
  onMouseLeave: () => {
4702
- k(!1);
4702
+ v(!1);
4703
4703
  },
4704
4704
  onFocus: () => {
4705
- k(!0);
4705
+ v(!0);
4706
4706
  },
4707
4707
  onBlur: () => {
4708
- k(!1);
4708
+ v(!1);
4709
4709
  },
4710
4710
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
4711
4711
  /* @__PURE__ */ a.jsx(
4712
- q,
4712
+ B,
4713
4713
  {
4714
4714
  variant: "tertiary",
4715
4715
  size: "medium",
4716
- icon: { icon: h ? "heart" : "heart_empty", animate: "bounce" },
4717
- className: j({ "do-animation": h && !s }),
4716
+ icon: { icon: p ? "heart" : "heart_empty", animate: "bounce" },
4717
+ className: w({ "do-animation": p && !s }),
4718
4718
  screenreaderText: o ? l.formatMessage({
4719
- id: `discussion_likes_${h ? "unlike" : "like"}`
4719
+ id: `discussion_likes_${p ? "unlike" : "like"}`
4720
4720
  }, { action: l.formatMessage({ id: `discussion_action_${i.type}` }) }) : !1,
4721
4721
  onClick: b,
4722
4722
  disabled: !o,
@@ -4726,15 +4726,15 @@ const Bt = () => {
4726
4726
  "data-gtm-event-type": `like-${i.type}-click`
4727
4727
  }
4728
4728
  ),
4729
- /* @__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 }) }),
4730
- n && /* @__PURE__ */ a.jsx(wr, { isOpen: y, isLoading: n.length === 0, children: n.length && /* @__PURE__ */ a.jsxs("ul", { children: [
4729
+ /* @__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 }) }),
4730
+ n && /* @__PURE__ */ a.jsx(wr, { isOpen: k, isLoading: n.length === 0, children: n.length && /* @__PURE__ */ a.jsxs("ul", { children: [
4731
4731
  g.map((C) => typeof C == "string" || !C.name ? null : /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
4732
4732
  gt,
4733
4733
  {
4734
4734
  href: C.id ? `/profiles/${C.id}` : void 0,
4735
4735
  gtmContext: "Likes",
4736
4736
  gtmType: "liked-name-click",
4737
- onClick: (M) => M == null ? void 0 : M.stopPropagation(),
4737
+ onClick: (S) => S == null ? void 0 : S.stopPropagation(),
4738
4738
  children: C.name
4739
4739
  }
4740
4740
  ) }, C.id || window.btoa(C.name))),
@@ -4753,8 +4753,11 @@ const ve = "discussion_", $s = 280, kt = ({
4753
4753
  userHasPermissions: n = !0,
4754
4754
  isLoading: r = !1,
4755
4755
  originalAuthorId: s,
4756
+ forceHide: i = {
4757
+ comments: !1
4758
+ },
4756
4759
  functions: {
4757
- content: { createContent: i, deleteContent: o, updateContent: c } = {
4760
+ content: { createContent: o, deleteContent: c, updateContent: m } = {
4758
4761
  createContent: () => {
4759
4762
  },
4760
4763
  deleteContent: () => {
@@ -4762,61 +4765,62 @@ const ve = "discussion_", $s = 280, kt = ({
4762
4765
  updateContent: () => {
4763
4766
  }
4764
4767
  },
4765
- likes: { createLike: m, deleteLike: l } = { createLike: () => {
4768
+ likes: { createLike: l, deleteLike: f } = { createLike: () => {
4766
4769
  }, deleteLike: () => {
4767
4770
  } },
4768
- comments: { openComments: f } = { openComments: () => {
4771
+ comments: { openComments: d } = { openComments: () => {
4769
4772
  } }
4770
4773
  },
4771
- links: d = {},
4774
+ links: p = {},
4772
4775
  className: h,
4773
- gtmContext: p = "DiscussionAnswer",
4774
- children: _,
4775
- isTruncated: v = !1
4776
+ gtmContext: _ = "DiscussionAnswer",
4777
+ children: y,
4778
+ isTruncated: k = !1
4776
4779
  }) => {
4777
- const y = P(), k = fe(ke), g = fe(vt), [b, w] = F({
4780
+ const v = P(), g = ge(ke), b = ge(vt), [j, C] = R({
4778
4781
  body: t && t.body || "",
4779
4782
  isEditing: !1,
4780
4783
  didEdit: t && t.isEdited || !1
4781
- }), [C, M] = F(!1), [L, R] = F("");
4782
- if (V(() => {
4783
- w({
4784
- ...b,
4784
+ }), [S, Y] = R(!1), [F, $] = R("");
4785
+ if (G(() => {
4786
+ C({
4787
+ ...j,
4785
4788
  body: t && t.body || "",
4786
4789
  didEdit: t && t.isEdited || !1
4787
4790
  });
4788
4791
  }, [t.isEdited]), r || !t || t.type === "answer" && (!t.slugs || !t.slugs.question))
4789
- return /* @__PURE__ */ a.jsx(pe, { className: "discussion-card discussion-post" });
4790
- const { author: T, canLike: S, createdAt: E, id: W, likes: O = 0, userLiked: U, comments: Y = 0 } = t, K = v ? Me(b.body, $s) : b.body, re = k && k.id && typeof T != "string" && T.id && T.id === k.id || !1, Q = typeof S == "boolean" ? S : n ? !re : !1, ne = async (B) => {
4791
- B || (B = ""), R("");
4792
+ return /* @__PURE__ */ a.jsx(_e, { className: "discussion-card discussion-post" });
4793
+ const { author: M, canLike: E, createdAt: I, id: Z, likes: q = 0, userLiked: z, comments: J = 0 } = t, H = k ? Ne(j.body, $s) : j.body, te = g && g.id && typeof M != "string" && M.id && M.id === g.id || !1, re = typeof E == "boolean" ? E : n ? !te : !1, K = async (W) => {
4794
+ W || (W = ""), $("");
4792
4795
  try {
4793
- if (!er(B, b.body)) {
4794
- const le = t.type === "question" ? { title: B } : { body: B };
4795
- await c(Sn(t.slugs), le);
4796
+ if (!er(W, j.body)) {
4797
+ const ue = t.type === "question" ? { title: W } : { body: W };
4798
+ await m(Sn(t.slugs), ue);
4796
4799
  }
4797
- w({ body: B, isEditing: !1, didEdit: !0 });
4800
+ C({ body: W, isEditing: !1, didEdit: !0 });
4798
4801
  } catch {
4799
- R(`${ve}form_error`);
4802
+ $(`${ve}form_error`);
4800
4803
  }
4801
- }, G = () => {
4802
- g && g.updateConversation && g.updateConversation({ showThread: !0, showForm: !0 }), setTimeout(() => {
4803
- const le = `reply-form-${(t.type === "answer" ? t.slug : t.slugs.answer || "").toLowerCase().slice(-15)}`, he = document.getElementById(le), J = document.getElementById(`${le}-input`);
4804
- J && J.focus(), he && he.scrollIntoView({ behavior: "smooth" });
4804
+ }, ie = () => {
4805
+ b && b.updateConversation && b.updateConversation({ showThread: !0, showForm: !0 }), setTimeout(() => {
4806
+ var me, pe, Ee;
4807
+ 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)}`, Q = document.getElementById(ue), se = document.getElementById(`${ue}-input`);
4808
+ se && se.focus(), Q && Q.scrollIntoView({ behavior: "smooth" });
4805
4809
  }, 0);
4806
- }, ae = () => {
4807
- M(!1);
4810
+ }, de = () => {
4811
+ Y(!1);
4808
4812
  try {
4809
- o(Sn(t.slugs));
4813
+ c(Sn(t.slugs));
4810
4814
  } catch {
4811
- R("delete-error");
4815
+ $("delete-error");
4812
4816
  }
4813
- }, oe = [
4817
+ }, ce = [
4814
4818
  {
4815
- text: y.formatMessage({ id: `${ve}moreMenu_report` }),
4819
+ text: v.formatMessage({ id: `${ve}moreMenu_report` }),
4816
4820
  href: `mailto:community@apolitical.co?subject=${encodeURI(
4817
- y.formatMessage({ id: `${ve}report_subject` })
4821
+ v.formatMessage({ id: `${ve}report_subject` })
4818
4822
  )}&body=${encodeURI(
4819
- y.formatMessage(
4823
+ v.formatMessage(
4820
4824
  { id: `${ve}report_body` },
4821
4825
  {
4822
4826
  contentType: t.type || "",
@@ -4828,90 +4832,90 @@ const ve = "discussion_", $s = 280, kt = ({
4828
4832
  icon: "flag"
4829
4833
  }
4830
4834
  ];
4831
- return n && re && oe.push(
4835
+ return n && te && ce.push(
4832
4836
  {
4833
- text: y.formatMessage({ id: `${ve}moreMenu_edit` }),
4834
- onClick: () => w({ ...b, isEditing: !0 }),
4837
+ text: v.formatMessage({ id: `${ve}moreMenu_edit` }),
4838
+ onClick: () => C({ ...j, isEditing: !0 }),
4835
4839
  icon: "pencil-paper",
4836
4840
  className: "gtm-trackable",
4837
- "data-gtm-event-context": p,
4841
+ "data-gtm-event-context": _,
4838
4842
  "data-gtm-event-type": `edit-${t.type}-click`
4839
4843
  },
4840
4844
  {
4841
- text: y.formatMessage({ id: `${ve}moreMenu_delete` }),
4842
- onClick: (B) => {
4843
- B.preventDefault(), B.stopPropagation(), M(!0);
4845
+ text: v.formatMessage({ id: `${ve}moreMenu_delete` }),
4846
+ onClick: (W) => {
4847
+ W.preventDefault(), W.stopPropagation(), Y(!0);
4844
4848
  },
4845
4849
  icon: "trash",
4846
4850
  className: "gtm-trackable",
4847
- "data-gtm-event-context": p,
4851
+ "data-gtm-event-context": _,
4848
4852
  "data-gtm-event-type": `delete-${t.type}-click`,
4849
- ..._s(`delete-${t.slug}-modal`, C)
4853
+ ..._s(`delete-${t.slug}-modal`, S)
4850
4854
  }
4851
4855
  ), A.createElement(e, {
4852
- className: j("discussion-post", h),
4856
+ className: w("discussion-post", h),
4853
4857
  "data-testid": `discussion-${t.type}-thread`,
4854
4858
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
4855
4859
  /* @__PURE__ */ a.jsxs(
4856
4860
  "div",
4857
4861
  {
4858
- id: W || t.slug,
4859
- className: j("discussion-card", t.type, {
4860
- editing: b.isEditing,
4861
- "has-link": d.post && !b.isEditing
4862
+ id: Z || t.slug,
4863
+ className: w("discussion-card", t.type, {
4864
+ editing: j.isEditing,
4865
+ "has-link": p.post && !j.isEditing
4862
4866
  }),
4863
- onClick: (B) => {
4864
- !d.post || b.isEditing || (B.preventDefault(), B.stopPropagation(), window.location.href = d.post);
4867
+ onClick: (W) => {
4868
+ !p.post || j.isEditing || (W.preventDefault(), W.stopPropagation(), window.location.href = p.post);
4865
4869
  },
4866
4870
  children: [
4867
- !b.isEditing && /* @__PURE__ */ a.jsx(
4871
+ !j.isEditing && /* @__PURE__ */ a.jsx(
4868
4872
  Xt,
4869
4873
  {
4870
- member: T,
4871
- additionalContent: { createdAt: E, didEdit: b.didEdit },
4872
- className: typeof T != "string" && T.id === s ? "highlighted" : "",
4873
- gtmContext: p,
4874
+ member: M,
4875
+ additionalContent: { createdAt: I, didEdit: j.didEdit },
4876
+ className: typeof M != "string" && M.id === s ? "highlighted" : "",
4877
+ gtmContext: _,
4874
4878
  gtmType: "profile-click"
4875
4879
  }
4876
4880
  ),
4877
- b.isEditing ? /* @__PURE__ */ a.jsx(
4878
- da,
4881
+ j.isEditing ? /* @__PURE__ */ a.jsx(
4882
+ en,
4879
4883
  {
4880
4884
  content: { type: t.type, slugs: t.slugs },
4881
4885
  userHasPermissions: n,
4882
4886
  meta: {
4883
4887
  isLoading: r,
4884
4888
  isInWrapper: !0,
4885
- isEditing: { text: b.body }
4889
+ isEditing: { text: j.body }
4886
4890
  },
4887
4891
  maxLength: t.type === "question" ? 250 : 5e4,
4888
4892
  forceShow: {
4889
- error: L !== "" && L !== "delete-error" ? y.formatMessage(
4890
- { id: L },
4893
+ error: F !== "" && F !== "delete-error" ? v.formatMessage(
4894
+ { id: F },
4891
4895
  {
4892
- action: y.formatMessage({
4896
+ action: v.formatMessage({
4893
4897
  id: `discussion_action_${t.type}`
4894
4898
  })
4895
4899
  }
4896
4900
  ) : !1
4897
4901
  },
4898
4902
  functions: {
4899
- create: i,
4900
- handleSaveEdit: ne,
4903
+ create: o,
4904
+ handleSaveEdit: K,
4901
4905
  handleCancel: () => {
4902
- R(""), w({ ...b, isEditing: !1 });
4906
+ $(""), C({ ...j, isEditing: !1 });
4903
4907
  }
4904
4908
  },
4905
- gtmContext: `${p}Form`
4909
+ gtmContext: `${_}Form`
4906
4910
  }
4907
- ) : d.post ? /* @__PURE__ */ a.jsx(
4911
+ ) : p.post ? /* @__PURE__ */ a.jsx(
4908
4912
  "a",
4909
4913
  {
4910
- href: d.post,
4914
+ href: p.post,
4911
4915
  className: "gtm-trackable",
4912
- "data-gtm-event-context": p,
4916
+ "data-gtm-event-context": _,
4913
4917
  "data-gtm-event-type": "title-click",
4914
- children: /* @__PURE__ */ a.jsx(jn, { options: { overrides: { a: Zr } }, children: K })
4918
+ children: /* @__PURE__ */ a.jsx(jn, { options: { overrides: { a: Zr } }, children: H })
4915
4919
  }
4916
4920
  ) : /* @__PURE__ */ a.jsx(
4917
4921
  jn,
@@ -4922,72 +4926,72 @@ const ve = "discussion_", $s = 280, kt = ({
4922
4926
  forceInline: t.type === "question",
4923
4927
  forceBlock: t.type !== "question"
4924
4928
  },
4925
- children: K
4929
+ children: H
4926
4930
  }
4927
4931
  ),
4928
- !b.isEditing && /* @__PURE__ */ a.jsxs(
4932
+ !j.isEditing && /* @__PURE__ */ a.jsxs(
4929
4933
  "ul",
4930
4934
  {
4931
- className: j("actions text-medium", t.type),
4935
+ className: w("actions text-medium", t.type),
4932
4936
  "data-testid": `${t.type}-actions`,
4933
4937
  children: [
4934
4938
  /* @__PURE__ */ a.jsx(
4935
4939
  Ts,
4936
4940
  {
4937
4941
  element: "li",
4938
- likes: O,
4942
+ likes: q,
4939
4943
  isShort: !1,
4940
- userLiked: U,
4944
+ userLiked: z,
4941
4945
  content: { type: t.type, slugs: t.slugs },
4942
- canLike: Q,
4946
+ canLike: re,
4943
4947
  peopleWhoLiked: t.peopleWhoLiked,
4944
4948
  functions: {
4945
- createLike: m,
4946
- deleteLike: l
4949
+ createLike: l,
4950
+ deleteLike: f
4947
4951
  }
4948
4952
  }
4949
4953
  ),
4950
- (["question", "post"].includes(t.type) || d.comments || typeof f == "function") && /* @__PURE__ */ a.jsxs(
4954
+ !i.comments && (["question", "post"].includes(t.type) || p.comments || typeof d == "function") && /* @__PURE__ */ a.jsxs(
4951
4955
  "li",
4952
4956
  {
4953
4957
  className: "action-button",
4954
- onClick: (B) => {
4955
- B.preventDefault(), B.stopPropagation(), d.comments && (window.location.href = d.comments), typeof f == "function" && f();
4958
+ onClick: (W) => {
4959
+ W.preventDefault(), W.stopPropagation(), p.comments && (window.location.href = p.comments), typeof d == "function" && d();
4956
4960
  },
4957
4961
  children: [
4958
4962
  /* @__PURE__ */ a.jsx(
4959
- q,
4963
+ B,
4960
4964
  {
4961
4965
  variant: "tertiary",
4962
4966
  size: "medium",
4963
4967
  styling: { muted: !0 },
4964
4968
  icon: { icon: "speech-bubble_square_thick" },
4965
- href: d.comments ? d.comments : !1,
4966
- onClick: d.comments || typeof f != "function" ? !1 : f,
4969
+ href: p.comments ? p.comments : !1,
4970
+ onClick: p.comments || typeof d != "function" ? !1 : d,
4967
4971
  className: "gtm-trackable",
4968
- "data-gtm-event-context": p,
4972
+ "data-gtm-event-context": _,
4969
4973
  "data-gtm-event-type": `answer-${t.type}-click`,
4970
- screenreaderText: y.formatMessage(
4974
+ screenreaderText: v.formatMessage(
4971
4975
  { id: `${ve}comments_screenReader` },
4972
- { count: Y }
4976
+ { count: J }
4973
4977
  )
4974
4978
  }
4975
4979
  ),
4976
- /* @__PURE__ */ a.jsx("span", { children: y.formatMessage(
4980
+ /* @__PURE__ */ a.jsx("span", { children: v.formatMessage(
4977
4981
  { id: `${ve}comments` },
4978
- { count: Y }
4982
+ { count: J }
4979
4983
  ) })
4980
4984
  ]
4981
4985
  }
4982
4986
  ),
4983
4987
  (t.type === "answer" || t.type === "reply") && /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
4984
- q,
4988
+ B,
4985
4989
  {
4986
4990
  variant: "tertiary",
4987
4991
  size: "medium",
4988
4992
  styling: { muted: !0 },
4989
- onClick: G,
4990
- children: y.formatMessage({ id: `${ve}reply` })
4993
+ onClick: ie,
4994
+ children: v.formatMessage({ id: `${ve}reply` })
4991
4995
  }
4992
4996
  ) }),
4993
4997
  /* @__PURE__ */ a.jsx(
@@ -4995,7 +4999,7 @@ const ve = "discussion_", $s = 280, kt = ({
4995
4999
  {
4996
5000
  element: "li",
4997
5001
  id: `more-${t.slug}`,
4998
- options: oe
5002
+ options: ce
4999
5003
  }
5000
5004
  )
5001
5005
  ]
@@ -5004,39 +5008,39 @@ const ve = "discussion_", $s = 280, kt = ({
5004
5008
  ]
5005
5009
  }
5006
5010
  ),
5007
- _,
5011
+ y,
5008
5012
  /* @__PURE__ */ a.jsx(
5009
5013
  la,
5010
5014
  {
5011
5015
  id: `delete-${t.slug}-modal`,
5012
- isOpen: C,
5016
+ isOpen: S,
5013
5017
  functions: { onOpen: () => {
5014
- }, onClose: () => M(!1) },
5018
+ }, onClose: () => Y(!1) },
5015
5019
  forceShow: {
5016
- error: L === "delete-error" ? y.formatMessage(
5020
+ error: F === "delete-error" ? v.formatMessage(
5017
5021
  { id: "discussion_delete_error" },
5018
5022
  {
5019
- action: y.formatMessage({
5023
+ action: v.formatMessage({
5020
5024
  id: `discussion_action_${t.type}`
5021
5025
  })
5022
5026
  }
5023
5027
  ) : !1
5024
5028
  },
5025
- title: y.formatMessage(
5029
+ title: v.formatMessage(
5026
5030
  { id: "discussion_delete_title" },
5027
- { action: y.formatMessage({ id: `discussion_action_${t.type}` }) }
5031
+ { action: v.formatMessage({ id: `discussion_action_${t.type}` }) }
5028
5032
  ),
5029
5033
  buttons: [
5030
5034
  {
5031
5035
  variant: "secondary",
5032
- onClick: () => M(!1),
5033
- children: y.formatMessage({ id: "discussion_delete_cancel" })
5036
+ onClick: () => Y(!1),
5037
+ children: v.formatMessage({ id: "discussion_delete_cancel" })
5034
5038
  },
5035
5039
  {
5036
5040
  variant: "primary",
5037
5041
  className: "destructive",
5038
- onClick: ae,
5039
- children: y.formatMessage({ id: "discussion_delete_delete" })
5042
+ onClick: de,
5043
+ children: v.formatMessage({ id: "discussion_delete_delete" })
5040
5044
  }
5041
5045
  ],
5042
5046
  gtmContext: `${t.type.charAt(0).toUpperCase()}${t.type.slice(1)}:${t.slug}`,
@@ -5045,8 +5049,8 @@ const ve = "discussion_", $s = 280, kt = ({
5045
5049
  {
5046
5050
  id: "discussion_delete_text",
5047
5051
  values: {
5048
- p: (B) => /* @__PURE__ */ a.jsx("p", { children: B }),
5049
- action: y.formatMessage({
5052
+ p: (W) => /* @__PURE__ */ a.jsx("p", { children: W }),
5053
+ action: v.formatMessage({
5050
5054
  id: `discussion_action_${t.type}`
5051
5055
  })
5052
5056
  }
@@ -5061,21 +5065,21 @@ const qt = "discussion_responses_", Yi = ({ type: e = "answer", responses: t = 0
5061
5065
  const n = P();
5062
5066
  return /* @__PURE__ */ a.jsxs("div", { className: "responses-heading", children: [
5063
5067
  /* @__PURE__ */ a.jsx("h3", { children: n.formatMessage({ id: `${qt}title` }, { action: n.formatMessage({ id: `${qt}${e}` }), count: t }) }),
5064
- t === 0 && /* @__PURE__ */ a.jsx("p", { children: _e(n.formatMessage, `${qt}empty`, e, e) })
5068
+ t === 0 && /* @__PURE__ */ a.jsx("p", { children: be(n.formatMessage, `${qt}empty`, e, e) })
5065
5069
  ] });
5066
5070
  };
5067
5071
  const Es = ({ count: e = "", showRepliesButton: t = !0, children: n }) => {
5068
- const r = P(), s = te(null), i = fe(vt), [o, c] = F(
5072
+ const r = P(), s = ne(null), i = ge(vt), [o, c] = R(
5069
5073
  "closed"
5070
5074
  /* Closed */
5071
5075
  );
5072
- V(() => {
5076
+ G(() => {
5073
5077
  const d = s.current;
5074
5078
  if (d)
5075
5079
  return d.addEventListener("transitionend", m), () => {
5076
5080
  d.removeEventListener("transitionend", m);
5077
5081
  };
5078
- }, []), Ne(() => {
5082
+ }, []), Pe(() => {
5079
5083
  o === "closed" && !i.showThread || c(
5080
5084
  [
5081
5085
  "opening",
@@ -5084,14 +5088,14 @@ const Es = ({ count: e = "", showRepliesButton: t = !0, children: n }) => {
5084
5088
  ].includes(o) ? "ready-to-close" : "opening"
5085
5089
  /* Opening */
5086
5090
  );
5087
- }, [i.showThread]), V(() => {
5091
+ }, [i.showThread]), G(() => {
5088
5092
  o === "ready-to-close" && c(
5089
5093
  "closing"
5090
5094
  /* Closing */
5091
5095
  );
5092
5096
  }, [o]);
5093
5097
  const m = ({ propertyName: d }) => {
5094
- d === "max-height" && c((h) => h === "opening" ? "open" : h === "closing" ? "closed" : h);
5098
+ d === "max-height" && c((p) => p === "opening" ? "open" : p === "closing" ? "closed" : p);
5095
5099
  }, l = [
5096
5100
  "opening",
5097
5101
  "open"
@@ -5101,7 +5105,7 @@ const Es = ({ count: e = "", showRepliesButton: t = !0, children: n }) => {
5101
5105
  });
5102
5106
  return /* @__PURE__ */ a.jsxs("div", { className: "thread-wrapper", children: [
5103
5107
  t && /* @__PURE__ */ a.jsx(
5104
- q,
5108
+ B,
5105
5109
  {
5106
5110
  variant: "secondary",
5107
5111
  size: "small",
@@ -5109,8 +5113,8 @@ const Es = ({ count: e = "", showRepliesButton: t = !0, children: n }) => {
5109
5113
  icon: { icon: `arrow_corner-down_${l ? "left" : "right"}` },
5110
5114
  onClick: () => {
5111
5115
  var d;
5112
- (d = i.updateConversation) == null || d.call(i, (h) => ({
5113
- showThread: !h.showThread,
5116
+ (d = i.updateConversation) == null || d.call(i, (p) => ({
5117
+ showThread: !p.showThread,
5114
5118
  showForm: !1
5115
5119
  }));
5116
5120
  },
@@ -5124,7 +5128,7 @@ const Es = ({ count: e = "", showRepliesButton: t = !0, children: n }) => {
5124
5128
  "ul",
5125
5129
  {
5126
5130
  ref: s,
5127
- className: j("thread", o),
5131
+ className: w("thread", o),
5128
5132
  hidden: !i.showThread,
5129
5133
  children: f
5130
5134
  }
@@ -5240,7 +5244,7 @@ function Fs({ reply: e, user: t }) {
5240
5244
  const { latest_children: n, own_children: r, children_counts: s } = e;
5241
5245
  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));
5242
5246
  }
5243
- const Pe = Object.freeze({
5247
+ const Ae = Object.freeze({
5244
5248
  id: "some-user-id-1",
5245
5249
  name: "some user name 1",
5246
5250
  organization: "some user organization 1",
@@ -5259,7 +5263,7 @@ const Pe = Object.freeze({
5259
5263
  },
5260
5264
  isLoading: !1
5261
5265
  }), pa = Object.freeze({
5262
- actor: `SU:${Pe.id}`,
5266
+ actor: `SU:${Ae.id}`,
5263
5267
  content: "some content 1",
5264
5268
  duration: "5.53ms",
5265
5269
  feed_id: "some-feed-id-1",
@@ -5279,7 +5283,7 @@ const Pe = Object.freeze({
5279
5283
  time: "2023-11-24T17:54:36.162000",
5280
5284
  verb: "post"
5281
5285
  }), Ds = Object.freeze({
5282
- actor: `SU:${Pe.id}`,
5286
+ actor: `SU:${Ae.id}`,
5283
5287
  content: "some content 3",
5284
5288
  duration: "5.53ms",
5285
5289
  feed_id: "some-feed-id-3",
@@ -5343,9 +5347,9 @@ Object.freeze({
5343
5347
  created_at: "2023-12-03T21:53:45.999851Z",
5344
5348
  updated_at: "2023-12-03T21:53:45.999851Z",
5345
5349
  id: "some-reply-id-2",
5346
- user_id: Pe.id,
5350
+ user_id: Ae.id,
5347
5351
  user: {
5348
- id: Pe.id,
5352
+ id: Ae.id,
5349
5353
  data: {},
5350
5354
  created_at: "2023-08-31T07:11:38.677184Z",
5351
5355
  updated_at: "2023-08-31T07:11:38.677184Z"
@@ -5383,9 +5387,9 @@ Object.freeze({
5383
5387
  created_at: "2023-12-03T21:53:45.999851Z",
5384
5388
  updated_at: "2023-12-03T21:53:45.999851Z",
5385
5389
  id: "some-reply-id-3",
5386
- user_id: Pe.id,
5390
+ user_id: Ae.id,
5387
5391
  user: {
5388
- id: Pe.id,
5392
+ id: Ae.id,
5389
5393
  data: {},
5390
5394
  created_at: "2023-08-31T07:11:38.677184Z",
5391
5395
  updated_at: "2023-08-31T07:11:38.677184Z"
@@ -5409,7 +5413,7 @@ function Is({
5409
5413
  queryKey: s,
5410
5414
  user: i
5411
5415
  }) {
5412
- const { mutate: o } = ue({
5416
+ const { mutate: o } = fe({
5413
5417
  mutationFn: e,
5414
5418
  onMutate: (c) => t((m) => {
5415
5419
  const l = Mn({ activity: Ps(c), user: i });
@@ -5430,7 +5434,7 @@ function Os({
5430
5434
  error: n
5431
5435
  }
5432
5436
  }) {
5433
- const { mutate: r } = ue({
5437
+ const { mutate: r } = fe({
5434
5438
  mutationFn: e,
5435
5439
  onMutate: ({ activityId: s, body: i }) => t((o) => {
5436
5440
  const c = ut(s, o);
@@ -5458,18 +5462,18 @@ function Bs({
5458
5462
  },
5459
5463
  user: m,
5460
5464
  ...l
5461
- }, d = Is({ ...f, mutationFn: e }), h = Os({ ...f, mutationFn: t }), p = Zs({ ...f, mutationFn: n }), _ = Hs({ ...f, mutationFn: s }), v = Us({ ...f, mutationFn: i }), { activities: y, ...k } = qs({ queryKey: o, queryFn: r });
5465
+ }, d = Is({ ...f, mutationFn: e }), p = Os({ ...f, mutationFn: t }), h = Zs({ ...f, mutationFn: n }), _ = Hs({ ...f, mutationFn: s }), y = Us({ ...f, mutationFn: i }), { activities: k, ...v } = qs({ queryKey: o, queryFn: r });
5462
5466
  return {
5463
- activities: y,
5467
+ activities: k,
5464
5468
  mutations: {
5465
5469
  create: d,
5466
- edit: h,
5470
+ edit: p,
5467
5471
  remove: _,
5468
- like: p,
5469
- unlike: v
5472
+ like: h,
5473
+ unlike: y
5470
5474
  },
5471
5475
  user: m,
5472
- ...k
5476
+ ...v
5473
5477
  };
5474
5478
  }
5475
5479
  function Zs({
@@ -5481,7 +5485,7 @@ function Zs({
5481
5485
  queryClient: r,
5482
5486
  queryKey: s
5483
5487
  }) {
5484
- const { mutate: i } = ue({
5488
+ const { mutate: i } = fe({
5485
5489
  mutationFn: e,
5486
5490
  onMutate: ({ activityId: o }) => t((c) => {
5487
5491
  const m = ut(o, c);
@@ -5523,7 +5527,7 @@ function Hs({
5523
5527
  error: n
5524
5528
  }
5525
5529
  }) {
5526
- const { mutate: r } = ue({
5530
+ const { mutate: r } = fe({
5527
5531
  mutationFn: e,
5528
5532
  onMutate: ({ activityId: s }) => t((i) => zs(s, i)),
5529
5533
  onError: n
@@ -5538,7 +5542,7 @@ function Us({
5538
5542
  },
5539
5543
  user: r
5540
5544
  }) {
5541
- const { mutate: s } = ue({
5545
+ const { mutate: s } = fe({
5542
5546
  mutationFn: e,
5543
5547
  onMutate: ({ activityId: i }) => t((o) => {
5544
5548
  const c = ut(i, o);
@@ -5592,23 +5596,23 @@ const Gi = ({
5592
5596
  hasNextPage: f,
5593
5597
  isLoading: d,
5594
5598
  mutations: {
5595
- create: h,
5596
- edit: p,
5599
+ create: p,
5600
+ edit: h,
5597
5601
  remove: _,
5598
- like: v,
5599
- unlike: y
5602
+ like: y,
5603
+ unlike: k
5600
5604
  },
5601
- user: k
5605
+ user: v
5602
5606
  } = Bs({
5603
5607
  queryKey: [e, t, "activities"],
5604
5608
  queryFns: i
5605
5609
  });
5606
5610
  return m ? /* @__PURE__ */ a.jsx(bt, { variant: "error", text: m.message }) : /* @__PURE__ */ a.jsxs("section", { children: [
5607
5611
  /* @__PURE__ */ a.jsx(
5608
- en,
5612
+ da,
5609
5613
  {
5610
5614
  contentType: "post",
5611
- createPost: h,
5615
+ createPost: p,
5612
5616
  membershipRequiredToPost: {
5613
5617
  isMember: n,
5614
5618
  required: !0,
@@ -5619,38 +5623,41 @@ const Gi = ({
5619
5623
  }
5620
5624
  ),
5621
5625
  c == null ? void 0 : c.map((g) => {
5622
- var E, W, O, U, Y, K, re, Q, ne;
5623
- const { own_reactions: b, latest_reactions: w } = g, C = (((E = w == null ? void 0 : w.like) == null ? void 0 : E.length) || 0) > 0, M = (((W = b == null ? void 0 : b.like) == null ? void 0 : W.length) || 0) > 0, L = M ? b == null ? void 0 : b.like[0].id : null, R = C ? (O = w == null ? void 0 : w.like) == null ? void 0 : O.map((G) => {
5624
- var ae, oe, B;
5626
+ var E, I, Z, q, z, J, H, te, re;
5627
+ const { own_reactions: b, latest_reactions: j } = g, C = (((E = j == null ? void 0 : j.like) == null ? void 0 : E.length) || 0) > 0, S = (((I = b == null ? void 0 : b.like) == null ? void 0 : I.length) || 0) > 0, Y = S ? b == null ? void 0 : b.like[0].id : null, F = C ? (Z = j == null ? void 0 : j.like) == null ? void 0 : Z.map((K) => {
5628
+ var ie, de, ce;
5625
5629
  return {
5626
- id: (ae = G == null ? void 0 : G.user) == null ? void 0 : ae.id,
5627
- name: (B = (oe = G == null ? void 0 : G.user) == null ? void 0 : oe.data) == null ? void 0 : B.name
5630
+ id: (ie = K == null ? void 0 : K.user) == null ? void 0 : ie.id,
5631
+ name: (ce = (de = K == null ? void 0 : K.user) == null ? void 0 : de.data) == null ? void 0 : ce.name
5628
5632
  };
5629
- }) : !1, T = g == null ? void 0 : g.actor, S = (T == null ? void 0 : T.id) === (k == null ? void 0 : k.id);
5630
- return /* @__PURE__ */ a.jsxs(Ze, { children: [
5633
+ }) : !1, $ = g == null ? void 0 : g.actor, M = ($ == null ? void 0 : $.id) === (v == null ? void 0 : v.id);
5634
+ return /* @__PURE__ */ a.jsxs(qe, { children: [
5631
5635
  /* @__PURE__ */ a.jsx(
5632
5636
  kt,
5633
5637
  {
5634
5638
  content: {
5635
5639
  type: "post",
5636
5640
  body: g == null ? void 0 : g.content,
5637
- canLike: xt(n, S),
5641
+ canLike: xt(n, M),
5638
5642
  createdAt: (g == null ? void 0 : g.time) || "",
5639
- slugs: { parentId: t, activityId: g == null ? void 0 : g.id },
5643
+ slugs: {
5644
+ question: `${e}/${t}`,
5645
+ answer: g == null ? void 0 : g.id
5646
+ },
5640
5647
  slug: g == null ? void 0 : g.id,
5641
5648
  author: {
5642
- id: T == null ? void 0 : T.id,
5643
- name: (U = T == null ? void 0 : T.data) == null ? void 0 : U.name,
5644
- organization: (Y = T == null ? void 0 : T.data) == null ? void 0 : Y.organization,
5645
- jobTitle: (K = T == null ? void 0 : T.data) == null ? void 0 : K.jobTitle,
5649
+ id: $ == null ? void 0 : $.id,
5650
+ name: (q = $ == null ? void 0 : $.data) == null ? void 0 : q.name,
5651
+ organization: (z = $ == null ? void 0 : $.data) == null ? void 0 : z.organization,
5652
+ jobTitle: (J = $ == null ? void 0 : $.data) == null ? void 0 : J.jobTitle,
5646
5653
  image: {
5647
- thumbnail: ((re = T == null ? void 0 : T.data) == null ? void 0 : re.thumbnail) || void 0
5654
+ thumbnail: ((H = $ == null ? void 0 : $.data) == null ? void 0 : H.thumbnail) || void 0
5648
5655
  }
5649
5656
  },
5650
- userLiked: M,
5651
- likes: ((Q = g == null ? void 0 : g.reaction_counts) == null ? void 0 : Q.like) || 0,
5652
- comments: ((ne = g == null ? void 0 : g.reaction_counts) == null ? void 0 : ne.reply) || 0,
5653
- peopleWhoLiked: R
5657
+ userLiked: S,
5658
+ likes: ((te = g == null ? void 0 : g.reaction_counts) == null ? void 0 : te.like) || 0,
5659
+ comments: ((re = g == null ? void 0 : g.reaction_counts) == null ? void 0 : re.reply) || 0,
5660
+ peopleWhoLiked: F
5654
5661
  },
5655
5662
  links: {
5656
5663
  post: `${e}/${t}/${g == null ? void 0 : g.id}`,
@@ -5660,13 +5667,13 @@ const Gi = ({
5660
5667
  content: {
5661
5668
  createContent: () => null,
5662
5669
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
5663
- deleteContent: (G) => _(G),
5670
+ deleteContent: (K) => _(K),
5664
5671
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
5665
- updateContent: (G, ae) => p({ ...G, ...ae })
5672
+ updateContent: (K, ie) => h({ ...K, ...ie })
5666
5673
  },
5667
5674
  likes: {
5668
- createLike: () => v({ activityId: g == null ? void 0 : g.id }),
5669
- deleteLike: () => y({ activityId: g == null ? void 0 : g.id, reactionId: L })
5675
+ createLike: () => y({ activityId: g == null ? void 0 : g.id }),
5676
+ deleteLike: () => k({ activityId: g == null ? void 0 : g.id, reactionId: Y })
5670
5677
  },
5671
5678
  comments: {
5672
5679
  openComments: () => null
@@ -6250,7 +6257,7 @@ function Vs({
6250
6257
  queryKey: s,
6251
6258
  user: i
6252
6259
  }) {
6253
- const { mutate: o } = ue({
6260
+ const { mutate: o } = fe({
6254
6261
  mutationFn: e,
6255
6262
  onMutate: (c) => t((m) => {
6256
6263
  const l = Nn({ reply: As(c), user: i });
@@ -6271,7 +6278,7 @@ function Ys({
6271
6278
  error: n
6272
6279
  }
6273
6280
  }) {
6274
- const { mutate: r } = ue({
6281
+ const { mutate: r } = fe({
6275
6282
  mutationFn: e,
6276
6283
  onMutate: ({ replyId: s, content: i }) => t((o) => {
6277
6284
  const c = mt(s, o);
@@ -6299,18 +6306,18 @@ function ha({
6299
6306
  },
6300
6307
  user: m,
6301
6308
  ...l
6302
- }, d = Vs({ ...f, mutationFn: e }), h = Ys({ ...f, mutationFn: t }), p = Gs({ ...f, mutationFn: n }), _ = Qs({ ...f, mutationFn: s }), v = Js({ ...f, mutationFn: i }), { replies: y, ...k } = Ks({ queryKey: o, queryFn: r });
6309
+ }, d = Vs({ ...f, mutationFn: e }), p = Ys({ ...f, mutationFn: t }), h = Gs({ ...f, mutationFn: n }), _ = Qs({ ...f, mutationFn: s }), y = Js({ ...f, mutationFn: i }), { replies: k, ...v } = Ks({ queryKey: o, queryFn: r });
6303
6310
  return {
6304
- replies: y,
6311
+ replies: k,
6305
6312
  mutations: {
6306
6313
  create: d,
6307
- edit: h,
6314
+ edit: p,
6308
6315
  remove: _,
6309
- like: p,
6310
- unlike: v
6316
+ like: h,
6317
+ unlike: y
6311
6318
  },
6312
6319
  user: m,
6313
- ...k
6320
+ ...v
6314
6321
  };
6315
6322
  }
6316
6323
  function Gs({
@@ -6322,7 +6329,7 @@ function Gs({
6322
6329
  queryClient: r,
6323
6330
  queryKey: s
6324
6331
  }) {
6325
- const { mutate: i } = ue({
6332
+ const { mutate: i } = fe({
6326
6333
  mutationFn: e,
6327
6334
  onMutate: ({ replyId: o }) => t((c) => {
6328
6335
  const m = mt(o, c);
@@ -6365,7 +6372,7 @@ function Qs({
6365
6372
  error: n
6366
6373
  }
6367
6374
  }) {
6368
- const { mutate: r } = ue({
6375
+ const { mutate: r } = fe({
6369
6376
  mutationFn: e,
6370
6377
  onMutate: ({ replyId: s }) => t((i) => ni(s, i)),
6371
6378
  onError: n
@@ -6380,7 +6387,7 @@ function Js({
6380
6387
  },
6381
6388
  user: r
6382
6389
  }) {
6383
- const { mutate: s } = ue({
6390
+ const { mutate: s } = fe({
6384
6391
  mutationFn: e,
6385
6392
  onMutate: ({ replyId: i }) => t((o) => {
6386
6393
  const c = mt(i, o);
@@ -6446,13 +6453,13 @@ const ri = ({
6446
6453
  hasNextPage: f,
6447
6454
  isLoading: d,
6448
6455
  mutations: {
6449
- create: h,
6450
- edit: p,
6456
+ create: p,
6457
+ edit: h,
6451
6458
  like: _,
6452
- remove: v,
6453
- unlike: y
6459
+ remove: y,
6460
+ unlike: k
6454
6461
  },
6455
- user: k
6462
+ user: v
6456
6463
  } = ha({
6457
6464
  queryKey: [e, t, n, r, "replies"],
6458
6465
  queryFns: {
@@ -6460,65 +6467,66 @@ const ri = ({
6460
6467
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6461
6468
  list: (b) => i.list({ ...b, reactionId: r })
6462
6469
  }
6463
- }), g = fe(vt);
6470
+ }), g = ge(vt);
6464
6471
  return /* @__PURE__ */ a.jsx(
6465
6472
  Es,
6466
6473
  {
6467
6474
  count: m,
6468
- showRepliesButton: c.length > 0 || g.showForm,
6475
+ showRepliesButton: !1,
6469
6476
  children: /* @__PURE__ */ a.jsxs("section", { children: [
6470
6477
  c == null ? void 0 : c.map((b) => {
6471
- var Y, K, re, Q, ne, G, ae, oe, B, le, he;
6472
- const { own_children: w, latest_children: C } = b, M = b == null ? void 0 : b.id, L = (((Y = C == null ? void 0 : C.like) == null ? void 0 : Y.length) || 0) > 0, R = (((K = w == null ? void 0 : w.like) == null ? void 0 : K.length) || 0) > 0, T = R ? w == null ? void 0 : w.like[0].id : null, S = L ? (re = C == null ? void 0 : C.like) == null ? void 0 : re.map((J) => {
6473
- var de, ge, be;
6478
+ var z, J, H, te, re, K, ie, de, ce, W, ue;
6479
+ const { own_children: j, latest_children: C } = b, S = b == null ? void 0 : b.id, Y = (((z = C == null ? void 0 : C.like) == null ? void 0 : z.length) || 0) > 0, F = (((J = j == null ? void 0 : j.like) == null ? void 0 : J.length) || 0) > 0, $ = F ? j == null ? void 0 : j.like[0].id : null, M = Y ? (H = C == null ? void 0 : C.like) == null ? void 0 : H.map((Q) => {
6480
+ var se, me, pe;
6474
6481
  return {
6475
- id: (de = J == null ? void 0 : J.user) == null ? void 0 : de.id,
6476
- name: (be = (ge = J == null ? void 0 : J.user) == null ? void 0 : ge.data) == null ? void 0 : be.name
6482
+ id: (se = Q == null ? void 0 : Q.user) == null ? void 0 : se.id,
6483
+ name: (pe = (me = Q == null ? void 0 : Q.user) == null ? void 0 : me.data) == null ? void 0 : pe.name
6477
6484
  };
6478
- }) : !1, E = b == null ? void 0 : b.user, W = (E == null ? void 0 : E.id) === (k == null ? void 0 : k.id), O = xt(s, W), U = typeof b.data.content == "string" ? (Q = b == null ? void 0 : b.data) == null ? void 0 : Q.content : ((G = (ne = b == null ? void 0 : b.data) == null ? void 0 : ne.content) == null ? void 0 : G.text) || "";
6485
+ }) : !1, E = b == null ? void 0 : b.user, I = (E == null ? void 0 : E.id) === (v == null ? void 0 : v.id), Z = xt(s, I), q = typeof b.data.content == "string" ? (te = b == null ? void 0 : b.data) == null ? void 0 : te.content : ((K = (re = b == null ? void 0 : b.data) == null ? void 0 : re.content) == null ? void 0 : K.text) || "";
6479
6486
  return /* @__PURE__ */ a.jsx(
6480
6487
  kt,
6481
6488
  {
6482
6489
  content: {
6483
6490
  type: "reply",
6484
- body: U,
6485
- canLike: O,
6491
+ body: q,
6492
+ canLike: Z,
6486
6493
  createdAt: b == null ? void 0 : b.created_at,
6487
6494
  slugs: {
6488
- parentId: t,
6489
- activityId: n,
6490
- replyParentId: b == null ? void 0 : b.parent,
6491
- reply: b == null ? void 0 : b.id
6495
+ question: `${e}/${t}`,
6496
+ answer: n,
6497
+ // Stop-gap solution to avoid having to change the DiscussionPost component
6498
+ // The `reply` is currently used to define the form ID which handles the focus
6499
+ reply: b == null ? void 0 : b.parent
6492
6500
  },
6493
6501
  slug: "",
6494
6502
  author: {
6495
6503
  id: E == null ? void 0 : E.id,
6496
- name: (ae = E.data) == null ? void 0 : ae.name,
6497
- organization: (oe = E.data) == null ? void 0 : oe.organization,
6498
- jobTitle: (B = E.data) == null ? void 0 : B.jobTitle,
6504
+ name: (ie = E.data) == null ? void 0 : ie.name,
6505
+ organization: (de = E.data) == null ? void 0 : de.organization,
6506
+ jobTitle: (ce = E.data) == null ? void 0 : ce.jobTitle,
6499
6507
  image: {
6500
- thumbnail: ((le = E.data) == null ? void 0 : le.thumbnail) || void 0
6508
+ thumbnail: ((W = E.data) == null ? void 0 : W.thumbnail) || void 0
6501
6509
  }
6502
6510
  },
6503
- userLiked: R,
6504
- likes: ((he = b == null ? void 0 : b.children_counts) == null ? void 0 : he.like) || 0,
6505
- peopleWhoLiked: S
6511
+ userLiked: F,
6512
+ likes: ((ue = b == null ? void 0 : b.children_counts) == null ? void 0 : ue.like) || 0,
6513
+ peopleWhoLiked: M
6506
6514
  },
6507
6515
  functions: {
6508
6516
  content: {
6509
6517
  createContent: () => null,
6510
- deleteContent: () => v({ replyId: M }),
6518
+ deleteContent: () => y({ replyId: S }),
6511
6519
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6512
- updateContent: (J, { body: de }) => p({ replyId: M, content: de })
6520
+ updateContent: (Q, { body: se }) => h({ replyId: S, content: se })
6513
6521
  },
6514
6522
  likes: {
6515
- createLike: () => _({ replyId: M }),
6516
- deleteLike: () => y({ replyId: M, reactionId: T })
6523
+ createLike: () => _({ replyId: S }),
6524
+ deleteLike: () => k({ replyId: S, reactionId: $ })
6517
6525
  },
6518
6526
  comments: {}
6519
6527
  }
6520
6528
  },
6521
- b == null ? void 0 : b.id
6529
+ S
6522
6530
  );
6523
6531
  }),
6524
6532
  !d && /* @__PURE__ */ a.jsx(
@@ -6527,18 +6535,27 @@ const ri = ({
6527
6535
  hasNextPage: f,
6528
6536
  loadNextPage: () => l(),
6529
6537
  gtmContext: "LoadMore",
6530
- icon: { icon: "arrow-down", position: "right" }
6538
+ icon: { icon: "arrow-down", position: "right" },
6539
+ messages: {
6540
+ button: o.formatMessage({ id: "loadMore_button" }),
6541
+ error: o.formatMessage({ id: "loadMore_error" })
6542
+ }
6531
6543
  }
6532
6544
  ),
6533
6545
  g.showForm && /* @__PURE__ */ a.jsx(
6534
6546
  en,
6535
6547
  {
6536
- contentType: "reply",
6537
- createPost: (b, { body: w }) => h({ activityId: n, replyId: r, content: w }),
6538
- membershipRequiredToPost: {
6539
- isMember: !0,
6540
- required: !0,
6541
- notMemberStateText: o.formatMessage({ id: "community_joinToPost" })
6548
+ content: {
6549
+ type: "reply",
6550
+ slugs: {
6551
+ question: `${e}/${t}`,
6552
+ answer: n,
6553
+ reply: r
6554
+ }
6555
+ },
6556
+ functions: {
6557
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
6558
+ create: (b, { body: j }) => p({ activityId: n, replyId: r, content: j })
6542
6559
  }
6543
6560
  }
6544
6561
  )
@@ -6561,13 +6578,13 @@ const ri = ({
6561
6578
  repliesCount: l,
6562
6579
  fetchNextPage: f,
6563
6580
  hasNextPage: d,
6564
- isLoading: h,
6581
+ isLoading: p,
6565
6582
  mutations: {
6566
- create: p,
6583
+ create: h,
6567
6584
  edit: _,
6568
- like: v,
6569
- remove: y,
6570
- unlike: k
6585
+ like: y,
6586
+ remove: k,
6587
+ unlike: v
6571
6588
  },
6572
6589
  user: g
6573
6590
  } = ha({
@@ -6582,10 +6599,10 @@ const ri = ({
6582
6599
  ")"
6583
6600
  ] }),
6584
6601
  /* @__PURE__ */ a.jsx(
6585
- en,
6602
+ da,
6586
6603
  {
6587
6604
  contentType: "reply",
6588
- createPost: (b, { body: w }) => p({ activityId: n, content: w }),
6605
+ createPost: (b, { body: j }) => h({ activityId: n, content: j }),
6589
6606
  membershipRequiredToPost: {
6590
6607
  isMember: r,
6591
6608
  required: !0,
@@ -6596,51 +6613,51 @@ const ri = ({
6596
6613
  }
6597
6614
  ),
6598
6615
  m == null ? void 0 : m.map((b) => {
6599
- var Y, K, re, Q, ne, G, ae, oe, B, le, he;
6600
- const { own_children: w, latest_children: C } = b, M = b == null ? void 0 : b.id, L = (((Y = C == null ? void 0 : C.like) == null ? void 0 : Y.length) || 0) > 0, R = (((K = w == null ? void 0 : w.like) == null ? void 0 : K.length) || 0) > 0, T = R ? w == null ? void 0 : w.like[0].id : null, S = L ? (re = C == null ? void 0 : C.like) == null ? void 0 : re.map((J) => {
6601
- var de, ge, be;
6616
+ var z, J, H, te, re, K, ie, de, ce, W, ue;
6617
+ const { own_children: j, latest_children: C } = b, S = b == null ? void 0 : b.id, Y = (((z = C == null ? void 0 : C.like) == null ? void 0 : z.length) || 0) > 0, F = (((J = j == null ? void 0 : j.like) == null ? void 0 : J.length) || 0) > 0, $ = F ? j == null ? void 0 : j.like[0].id : null, M = Y ? (H = C == null ? void 0 : C.like) == null ? void 0 : H.map((Q) => {
6618
+ var se, me, pe;
6602
6619
  return {
6603
- id: (de = J == null ? void 0 : J.user) == null ? void 0 : de.id,
6604
- name: (be = (ge = J == null ? void 0 : J.user) == null ? void 0 : ge.data) == null ? void 0 : be.name
6620
+ id: (se = Q == null ? void 0 : Q.user) == null ? void 0 : se.id,
6621
+ name: (pe = (me = Q == null ? void 0 : Q.user) == null ? void 0 : me.data) == null ? void 0 : pe.name
6605
6622
  };
6606
- }) : !1, E = b == null ? void 0 : b.user, W = (E == null ? void 0 : E.id) === (g == null ? void 0 : g.id), O = xt(r, W), U = typeof b.data.content == "string" ? (Q = b == null ? void 0 : b.data) == null ? void 0 : Q.content : ((G = (ne = b == null ? void 0 : b.data) == null ? void 0 : ne.content) == null ? void 0 : G.text) || "";
6623
+ }) : !1, E = b == null ? void 0 : b.user, I = (E == null ? void 0 : E.id) === (g == null ? void 0 : g.id), Z = xt(r, I), q = typeof b.data.content == "string" ? (te = b == null ? void 0 : b.data) == null ? void 0 : te.content : ((K = (re = b == null ? void 0 : b.data) == null ? void 0 : re.content) == null ? void 0 : K.text) || "";
6607
6624
  return /* @__PURE__ */ a.jsx(ks, { children: /* @__PURE__ */ a.jsx(
6608
6625
  kt,
6609
6626
  {
6610
6627
  content: {
6611
6628
  type: "reply",
6612
- body: U,
6613
- canLike: O,
6629
+ body: q,
6630
+ canLike: Z,
6614
6631
  createdAt: b == null ? void 0 : b.created_at,
6615
6632
  slugs: {
6616
- question: `${e}/${t}/${n}`,
6617
- parentId: t,
6618
- reply: M
6633
+ question: `${e}/${t}`,
6634
+ answer: n,
6635
+ reply: S
6619
6636
  },
6620
- slug: M,
6637
+ slug: S,
6621
6638
  author: {
6622
6639
  id: E == null ? void 0 : E.id,
6623
- name: (ae = E.data) == null ? void 0 : ae.name,
6624
- organization: (oe = E.data) == null ? void 0 : oe.organization,
6625
- jobTitle: (B = E.data) == null ? void 0 : B.jobTitle,
6640
+ name: (ie = E.data) == null ? void 0 : ie.name,
6641
+ organization: (de = E.data) == null ? void 0 : de.organization,
6642
+ jobTitle: (ce = E.data) == null ? void 0 : ce.jobTitle,
6626
6643
  image: {
6627
- thumbnail: ((le = E.data) == null ? void 0 : le.thumbnail) || void 0
6644
+ thumbnail: ((W = E.data) == null ? void 0 : W.thumbnail) || void 0
6628
6645
  }
6629
6646
  },
6630
- userLiked: R,
6631
- likes: ((he = b == null ? void 0 : b.children_counts) == null ? void 0 : he.like) || 0,
6632
- peopleWhoLiked: S
6647
+ userLiked: F,
6648
+ likes: ((ue = b == null ? void 0 : b.children_counts) == null ? void 0 : ue.like) || 0,
6649
+ peopleWhoLiked: M
6633
6650
  },
6634
6651
  functions: {
6635
6652
  content: {
6636
6653
  createContent: () => null,
6637
- deleteContent: () => y({ replyId: M }),
6654
+ deleteContent: () => k({ replyId: S }),
6638
6655
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6639
- updateContent: (J, { body: de }) => _({ replyId: M, content: de })
6656
+ updateContent: (Q, { body: se }) => _({ replyId: S, content: se })
6640
6657
  },
6641
6658
  likes: {
6642
- createLike: () => v({ replyId: M }),
6643
- deleteLike: () => k({ replyId: M, reactionId: T })
6659
+ createLike: () => y({ replyId: S }),
6660
+ deleteLike: () => v({ replyId: S, reactionId: $ })
6644
6661
  },
6645
6662
  comments: {}
6646
6663
  },
@@ -6650,7 +6667,7 @@ const ri = ({
6650
6667
  basePath: e,
6651
6668
  parentId: t,
6652
6669
  activityId: n,
6653
- replyId: M,
6670
+ replyId: S,
6654
6671
  isMember: r,
6655
6672
  functions: {
6656
6673
  ...s
@@ -6658,10 +6675,10 @@ const ri = ({
6658
6675
  }
6659
6676
  )
6660
6677
  },
6661
- M
6662
- ) }, M);
6678
+ S
6679
+ ) }, S);
6663
6680
  }),
6664
- !h && /* @__PURE__ */ a.jsx(
6681
+ !p && /* @__PURE__ */ a.jsx(
6665
6682
  yt,
6666
6683
  {
6667
6684
  hasNextPage: d,
@@ -6679,7 +6696,7 @@ function ii({
6679
6696
  error: n
6680
6697
  }
6681
6698
  }) {
6682
- const { mutate: r } = ue({
6699
+ const { mutate: r } = fe({
6683
6700
  mutationFn: e,
6684
6701
  onMutate: ({ body: s }) => t((i) => (i && (i.content = s), i)),
6685
6702
  onError: n
@@ -6719,16 +6736,16 @@ function ci({
6719
6736
  },
6720
6737
  user: o,
6721
6738
  ...c
6722
- }, l = ii({ ...m, mutationFn: t }), f = li({ ...m, mutationFn: n }), d = di({ ...m, mutationFn: r }), { activity: h, ...p } = oi({ queryKey: s, queryFn: e });
6739
+ }, l = ii({ ...m, mutationFn: t }), f = li({ ...m, mutationFn: n }), d = di({ ...m, mutationFn: r }), { activity: p, ...h } = oi({ queryKey: s, queryFn: e });
6723
6740
  return {
6724
- activity: h,
6741
+ activity: p,
6725
6742
  mutations: {
6726
6743
  edit: l,
6727
6744
  like: f,
6728
6745
  unlike: d
6729
6746
  },
6730
6747
  user: o,
6731
- ...p
6748
+ ...h
6732
6749
  };
6733
6750
  }
6734
6751
  function li({
@@ -6740,7 +6757,7 @@ function li({
6740
6757
  queryClient: r,
6741
6758
  queryKey: s
6742
6759
  }) {
6743
- const { mutate: i } = ue({
6760
+ const { mutate: i } = fe({
6744
6761
  mutationFn: e,
6745
6762
  onMutate: (o) => t((c) => (c && dt({ activity: c }), c)),
6746
6763
  onError: n,
@@ -6758,7 +6775,7 @@ function di({
6758
6775
  },
6759
6776
  user: r
6760
6777
  }) {
6761
- const { mutate: s } = ue({
6778
+ const { mutate: s } = fe({
6762
6779
  mutationFn: e,
6763
6780
  onMutate: (i) => t((o) => (o && fa({ activity: o, user: r }), o)),
6764
6781
  onError: n
@@ -6780,14 +6797,13 @@ const Qi = ({
6780
6797
  leave: m
6781
6798
  }
6782
6799
  }) => {
6783
- var T, S, E, W, O, U, Y, K, re;
6784
- const l = P(), f = fe(ke), {
6800
+ var F, $, M, E, I, Z, q, z, J;
6801
+ const l = P(), f = ge(ke), {
6785
6802
  activity: d,
6786
- error: h,
6787
- isLoading: p,
6788
- isFetching: _,
6803
+ error: p,
6804
+ isLoading: h,
6789
6805
  mutations: {
6790
- edit: v,
6806
+ edit: _,
6791
6807
  like: y,
6792
6808
  unlike: k
6793
6809
  }
@@ -6795,9 +6811,9 @@ const Qi = ({
6795
6811
  queryFns: i,
6796
6812
  queryKey: [e, t, n]
6797
6813
  });
6798
- if (p || _)
6799
- return /* @__PURE__ */ a.jsx(pe, { style: { height: "400px" } });
6800
- if (h || !d)
6814
+ if (h)
6815
+ return /* @__PURE__ */ a.jsx(_e, { style: { height: "400px" } });
6816
+ if (p || !d)
6801
6817
  return /* @__PURE__ */ a.jsx(
6802
6818
  bt,
6803
6819
  {
@@ -6805,13 +6821,14 @@ const Qi = ({
6805
6821
  text: l.formatMessage({ id: "activitySection_notFoundError" })
6806
6822
  }
6807
6823
  );
6808
- const { own_reactions: g, latest_reactions: b } = d, w = (((T = b == null ? void 0 : b.like) == null ? void 0 : T.length) || 0) > 0, C = (((S = g == null ? void 0 : g.like) == null ? void 0 : S.length) || 0) > 0, M = w ? (E = b == null ? void 0 : b.like) == null ? void 0 : E.map((Q) => {
6809
- var ne, G, ae;
6824
+ console.log(d);
6825
+ const { own_reactions: v, latest_reactions: g } = d, b = (((F = g == null ? void 0 : g.like) == null ? void 0 : F.length) || 0) > 0, j = ((($ = v == null ? void 0 : v.like) == null ? void 0 : $.length) || 0) > 0, C = b ? (M = g == null ? void 0 : g.like) == null ? void 0 : M.map((H) => {
6826
+ var te, re, K;
6810
6827
  return {
6811
- id: (ne = Q == null ? void 0 : Q.user) == null ? void 0 : ne.id,
6812
- name: (ae = (G = Q == null ? void 0 : Q.user) == null ? void 0 : G.data) == null ? void 0 : ae.name
6828
+ id: (te = H == null ? void 0 : H.user) == null ? void 0 : te.id,
6829
+ name: (K = (re = H == null ? void 0 : H.user) == null ? void 0 : re.data) == null ? void 0 : K.name
6813
6830
  };
6814
- }) : !1, L = d == null ? void 0 : d.actor, R = (L == null ? void 0 : L.id) === (f == null ? void 0 : f.id);
6831
+ }) : !1, S = d == null ? void 0 : d.actor, Y = (S == null ? void 0 : S.id) === (f == null ? void 0 : f.id);
6815
6832
  return /* @__PURE__ */ a.jsx(
6816
6833
  kt,
6817
6834
  {
@@ -6819,35 +6836,35 @@ const Qi = ({
6819
6836
  content: {
6820
6837
  type: "post",
6821
6838
  body: d == null ? void 0 : d.content,
6822
- canLike: xt(r, R),
6839
+ canLike: xt(r, Y),
6823
6840
  createdAt: (d == null ? void 0 : d.time) || "",
6824
6841
  slugs: {
6825
- question: `${t}/${n}`,
6826
- parentId: t,
6827
- activityId: d == null ? void 0 : d.id
6842
+ question: `${e}/${t}`,
6843
+ answer: d == null ? void 0 : d.id
6828
6844
  },
6829
6845
  slug: n,
6830
6846
  author: {
6831
- id: L.id,
6832
- name: (W = L.data) == null ? void 0 : W.name,
6833
- organization: (O = L.data) == null ? void 0 : O.organization,
6834
- jobTitle: (U = L.data) == null ? void 0 : U.jobTitle,
6847
+ id: S.id,
6848
+ name: (E = S.data) == null ? void 0 : E.name,
6849
+ organization: (I = S.data) == null ? void 0 : I.organization,
6850
+ jobTitle: (Z = S.data) == null ? void 0 : Z.jobTitle,
6835
6851
  image: {
6836
- thumbnail: ((Y = L.data) == null ? void 0 : Y.thumbnail) || void 0
6852
+ thumbnail: ((q = S.data) == null ? void 0 : q.thumbnail) || void 0
6837
6853
  }
6838
6854
  },
6839
- userLiked: C,
6840
- likes: ((K = d == null ? void 0 : d.reaction_counts) == null ? void 0 : K.like) || 0,
6841
- comments: ((re = d == null ? void 0 : d.reaction_counts) == null ? void 0 : re.reply) || 0,
6842
- peopleWhoLiked: M
6855
+ userLiked: j,
6856
+ likes: ((z = d == null ? void 0 : d.reaction_counts) == null ? void 0 : z.like) || 0,
6857
+ comments: ((J = d == null ? void 0 : d.reaction_counts) == null ? void 0 : J.reply) || 0,
6858
+ peopleWhoLiked: C
6843
6859
  },
6844
- originalAuthorId: L == null ? void 0 : L.id,
6860
+ originalAuthorId: S == null ? void 0 : S.id,
6861
+ forceHide: { comments: !0 },
6845
6862
  functions: {
6846
6863
  content: {
6847
6864
  createContent: () => console.log("create"),
6848
6865
  deleteContent: s,
6849
6866
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6850
- updateContent: (Q, ne) => v({ ...Q, ...ne })
6867
+ updateContent: (H, te) => _({ ...H, ...te })
6851
6868
  },
6852
6869
  likes: {
6853
6870
  createLike: () => y({ activityId: n }),
@@ -6945,7 +6962,7 @@ const tt = "notFoundError_", Xi = () => {
6945
6962
  })
6946
6963
  }
6947
6964
  ),
6948
- /* @__PURE__ */ a.jsx(q, { href: "/solution-articles/", children: e.formatMessage({ id: `${tt}cta` }) })
6965
+ /* @__PURE__ */ a.jsx(B, { href: "/solution-articles/", children: e.formatMessage({ id: `${tt}cta` }) })
6949
6966
  ] })
6950
6967
  },
6951
6968
  reportError: () => {
@@ -6962,10 +6979,10 @@ export {
6962
6979
  rt as ASSETS_BUCKET,
6963
6980
  Gi as ActivitiesFeed,
6964
6981
  Qi as ActivitySection,
6965
- en as AddPost,
6982
+ da as AddPost,
6966
6983
  Ci as BannerSection,
6967
6984
  Di as Breadcrumbs,
6968
- q as Button,
6985
+ B as Button,
6969
6986
  ht as ButtonWrapper,
6970
6987
  Er as CacheProvider,
6971
6988
  ea as Card,
@@ -6978,13 +6995,13 @@ export {
6978
6995
  vt as ConversationContext,
6979
6996
  us as CookieBanner,
6980
6997
  ks as DiscussionConversation,
6981
- da as DiscussionForm,
6998
+ en as DiscussionForm,
6982
6999
  Ts as DiscussionLikes,
6983
7000
  kt as DiscussionPost,
6984
7001
  Es as DiscussionThread,
6985
7002
  Te as Divider,
6986
7003
  $i as DownloadSection,
6987
- Oe as EMAILS,
7004
+ Be as EMAILS,
6988
7005
  qi as EmailHelperTextBox,
6989
7006
  bt as EmptyStateBox,
6990
7007
  Li as Filters,
@@ -7005,7 +7022,7 @@ export {
7005
7022
  gt as Link,
7006
7023
  yt as LoadMore,
7007
7024
  Ai as LoadingBlock,
7008
- pe as LoadingPlaceholder,
7025
+ _e as LoadingPlaceholder,
7009
7026
  Kn as LoadingState,
7010
7027
  na as Logo,
7011
7028
  Ei as LogoSection,
@@ -7023,7 +7040,7 @@ export {
7023
7040
  ys as PageLayout,
7024
7041
  Hi as PasswordRules,
7025
7042
  st as Pill,
7026
- He as ProfilePicture,
7043
+ Ue as ProfilePicture,
7027
7044
  Ur as ProgressBar,
7028
7045
  Ui as Rating,
7029
7046
  si as RepliesFeed,
@@ -7039,7 +7056,7 @@ export {
7039
7056
  Zi as TopLevelPage,
7040
7057
  ke as UserContext,
7041
7058
  Pr as UserProvider,
7042
- se as VisuallyHidden,
7059
+ ae as VisuallyHidden,
7043
7060
  _s as addAriaProps,
7044
7061
  Jn as getMember,
7045
7062
  ct as headerData,
@@ -7047,8 +7064,8 @@ export {
7047
7064
  br as pageReady,
7048
7065
  Ki as repliesFeedMock,
7049
7066
  or as useCurrentPath,
7050
- Ne as useEffectAfterMount,
7051
- qe as useElementWidth,
7067
+ Pe as useEffectAfterMount,
7068
+ He as useElementWidth,
7052
7069
  lr as useScrollListener,
7053
7070
  dr as useScrollToHash,
7054
7071
  Jt as useUser