@apolitical/component-library 1.18.0-4247.61 → 1.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.js +12 -12
  2. package/index.mjs +771 -756
  3. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
- import A, { memo as Fe, useState as D, useEffect as G, useRef as te, useMemo as ft, createContext as Gt, useContext as ge, Children as Ht, useCallback as Ln, Fragment as qe, useReducer as Oa, Suspense as Ba } from "react";
1
+ import F, { memo as Fe, useState as D, useEffect as G, useRef as ne, useMemo as ft, createContext as Gt, useContext as ge, Children as Ht, useCallback as Ln, Fragment as qe, useReducer as Oa, Suspense as Ba } from "react";
2
2
  import Za from "lodash.clonedeep";
3
3
  import qa from "lodash.set";
4
- import { useIntl as P, IntlProvider as Ha, createIntl as Ua, FormattedMessage as je } from "react-intl";
4
+ import { useIntl as A, IntlProvider as Ha, createIntl as Ua, FormattedMessage as je } from "react-intl";
5
5
  import Ne from "truncate";
6
6
  import { QueryClient as za, QueryClientProvider as Wa, useMutation as fe, useQueryClient as Kt, useInfiniteQuery as Rn, useQuery as Va } from "@tanstack/react-query";
7
7
  import { ReactQueryDevtools as Ya } from "@tanstack/react-query-devtools";
@@ -53,7 +53,7 @@ var On = { exports: {} };
53
53
  })();
54
54
  })(On);
55
55
  var nr = On.exports;
56
- const w = /* @__PURE__ */ tr(nr), ar = ({ element: e = "span", showOnFocus: t = !0, children: n, ...r }) => 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);
56
+ const w = /* @__PURE__ */ tr(nr), ar = ({ element: e = "span", showOnFocus: t = !0, children: n, ...r }) => F.createElement(e, { ...r, className: w("hidden", { "show-on-focus": t }), children: n }), ae = Fe(ar), rr = ({ element: e = "span", children: t = null, ...n }) => F.createElement(e, { ...n, "aria-hidden": !0 }, t), Bn = Fe(rr);
57
57
  var Ut = { exports: {} }, Le = {};
58
58
  /**
59
59
  * @license React
@@ -69,7 +69,7 @@ function sr() {
69
69
  if (bn)
70
70
  return Le;
71
71
  bn = 1;
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 };
72
+ var e = F, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
73
73
  function o(c, m, l) {
74
74
  var f, d = {}, p = null, h = null;
75
75
  l !== void 0 && (p = "" + l), m.key !== void 0 && (p = "" + m.key), m.ref !== void 0 && (h = m.ref);
@@ -95,51 +95,51 @@ var Re = {};
95
95
  var yn;
96
96
  function ir() {
97
97
  return yn || (yn = 1, process.env.NODE_ENV !== "production" && function() {
98
- var e = 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"), g = Symbol.iterator, y = "@@iterator";
98
+ var e = F, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), c = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), g = Symbol.iterator, b = "@@iterator";
99
99
  function k(u) {
100
100
  if (u === null || typeof u != "object")
101
101
  return null;
102
- var x = g && u[g] || u[y];
102
+ var x = g && u[g] || u[b];
103
103
  return typeof x == "function" ? x : null;
104
104
  }
105
- var v = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
105
+ var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
106
106
  function _(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), P = 1; P < x; P++)
109
+ T[P - 1] = arguments[P];
110
+ v("error", u, T);
111
111
  }
112
112
  }
113
- function b(u, x, $) {
113
+ function v(u, x, T) {
114
114
  {
115
- var N = v.ReactDebugCurrentFrame, B = N.getStackAddendum();
116
- B !== "" && (x += "%s", $ = $.concat([B]));
117
- var Y = $.map(function(R) {
118
- return String(R);
115
+ var P = y.ReactDebugCurrentFrame, O = P.getStackAddendum();
116
+ O !== "" && (x += "%s", T = T.concat([O]));
117
+ var V = T.map(function(I) {
118
+ return String(I);
119
119
  });
120
- Y.unshift("Warning: " + x), Function.prototype.apply.call(console[u], console, Y);
120
+ V.unshift("Warning: " + x), Function.prototype.apply.call(console[u], console, V);
121
121
  }
122
122
  }
123
- var j = !1, S = !1, C = !1, I = !1, F = !1, M;
124
- M = Symbol.for("react.module.reference");
125
- function T(u) {
126
- return !!(typeof u == "string" || typeof u == "function" || u === r || u === i || F || u === s || u === l || u === f || I || u === h || j || S || C || typeof u == "object" && u !== null && (u.$$typeof === p || u.$$typeof === d || u.$$typeof === o || u.$$typeof === c || u.$$typeof === m || // This needs to include all possible module reference object
123
+ var j = !1, $ = !1, C = !1, Z = !1, L = !1, S;
124
+ S = Symbol.for("react.module.reference");
125
+ function M(u) {
126
+ return !!(typeof u == "string" || typeof u == "function" || u === r || u === i || L || u === s || u === l || u === f || Z || u === h || j || $ || C || typeof u == "object" && u !== null && (u.$$typeof === p || u.$$typeof === d || u.$$typeof === o || u.$$typeof === c || u.$$typeof === m || // This needs to include all possible module reference object
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 === M || u.getModuleId !== void 0));
130
+ u.$$typeof === S || u.getModuleId !== void 0));
131
131
  }
132
- function E(u, x, $) {
133
- var N = u.displayName;
134
- if (N)
135
- return N;
136
- var B = x.displayName || x.name || "";
137
- return B !== "" ? $ + "(" + B + ")" : $;
132
+ function E(u, x, T) {
133
+ var P = u.displayName;
134
+ if (P)
135
+ return P;
136
+ var O = x.displayName || x.name || "";
137
+ return O !== "" ? T + "(" + O + ")" : T;
138
138
  }
139
- function O(u) {
139
+ function N(u) {
140
140
  return u.displayName || "Context";
141
141
  }
142
- function H(u) {
142
+ function q(u) {
143
143
  if (u == null)
144
144
  return null;
145
145
  if (typeof u.tag == "number" && _("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof u == "function")
@@ -164,19 +164,19 @@ function ir() {
164
164
  switch (u.$$typeof) {
165
165
  case c:
166
166
  var x = u;
167
- return O(x) + ".Consumer";
167
+ return N(x) + ".Consumer";
168
168
  case o:
169
- var $ = u;
170
- return O($._context) + ".Provider";
169
+ var T = u;
170
+ return N(T._context) + ".Provider";
171
171
  case m:
172
172
  return E(u, u.render, "ForwardRef");
173
173
  case d:
174
- var N = u.displayName || null;
175
- return N !== null ? N : H(u.type) || "Memo";
174
+ var P = u.displayName || null;
175
+ return P !== null ? P : q(u.type) || "Memo";
176
176
  case p: {
177
- var B = u, Y = B._payload, R = B._init;
177
+ var O = u, V = O._payload, I = O._init;
178
178
  try {
179
- return H(R(Y));
179
+ return q(I(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, W = 0, Q, V, ee, re, se, ne, oe;
188
- function le() {
187
+ var H = Object.assign, Y = 0, Q, z, te, re, J, ie, de;
188
+ function ce() {
189
189
  }
190
- le.__reactDisabledLog = !0;
191
- function Z() {
190
+ ce.__reactDisabledLog = !0;
191
+ function W() {
192
192
  {
193
- if (W === 0) {
194
- Q = console.log, V = console.info, ee = console.warn, re = console.error, se = console.group, ne = console.groupCollapsed, oe = console.groupEnd;
193
+ if (Y === 0) {
194
+ Q = console.log, z = console.info, te = console.warn, re = console.error, J = console.group, ie = console.groupCollapsed, de = console.groupEnd;
195
195
  var u = {
196
196
  configurable: !0,
197
197
  enumerable: !0,
198
- value: le,
198
+ value: ce,
199
199
  writable: !0
200
200
  };
201
201
  Object.defineProperties(console, {
@@ -208,56 +208,56 @@ function ir() {
208
208
  groupEnd: u
209
209
  });
210
210
  }
211
- W++;
211
+ Y++;
212
212
  }
213
213
  }
214
214
  function ue() {
215
215
  {
216
- if (W--, W === 0) {
216
+ if (Y--, Y === 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, {
223
+ log: H({}, u, {
224
224
  value: Q
225
225
  }),
226
- info: U({}, u, {
227
- value: V
226
+ info: H({}, u, {
227
+ value: z
228
228
  }),
229
- warn: U({}, u, {
230
- value: ee
229
+ warn: H({}, u, {
230
+ value: te
231
231
  }),
232
- error: U({}, u, {
232
+ error: H({}, u, {
233
233
  value: re
234
234
  }),
235
- group: U({}, u, {
236
- value: se
235
+ group: H({}, u, {
236
+ value: J
237
237
  }),
238
- groupCollapsed: U({}, u, {
239
- value: ne
238
+ groupCollapsed: H({}, u, {
239
+ value: ie
240
240
  }),
241
- groupEnd: U({}, u, {
242
- value: oe
241
+ groupEnd: H({}, u, {
242
+ value: de
243
243
  })
244
244
  });
245
245
  }
246
- W < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
246
+ Y < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
247
247
  }
248
248
  }
249
- var K = v.ReactCurrentDispatcher, ie;
250
- function me(u, x, $) {
249
+ var K = y.ReactCurrentDispatcher, se;
250
+ function me(u, x, T) {
251
251
  {
252
- if (ie === void 0)
252
+ if (se === void 0)
253
253
  try {
254
254
  throw Error();
255
- } catch (B) {
256
- var N = B.stack.trim().match(/\n( *(at )?)/);
257
- ie = N && N[1] || "";
255
+ } catch (O) {
256
+ var P = O.stack.trim().match(/\n( *(at )?)/);
257
+ se = P && P[1] || "";
258
258
  }
259
259
  return `
260
- ` + ie + u;
260
+ ` + se + u;
261
261
  }
262
262
  }
263
263
  var pe = !1, Ee;
@@ -269,81 +269,81 @@ function ir() {
269
269
  if (!u || pe)
270
270
  return "";
271
271
  {
272
- var $ = Ee.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
- var N;
276
+ var P;
277
277
  pe = !0;
278
- var B = Error.prepareStackTrace;
278
+ var O = Error.prepareStackTrace;
279
279
  Error.prepareStackTrace = void 0;
280
- var Y;
281
- Y = K.current, K.current = null, Z();
280
+ var V;
281
+ V = K.current, K.current = null, W();
282
282
  try {
283
283
  if (x) {
284
- var R = function() {
284
+ var I = function() {
285
285
  throw Error();
286
286
  };
287
- if (Object.defineProperty(R.prototype, "props", {
287
+ if (Object.defineProperty(I.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(R, []);
293
+ Reflect.construct(I, []);
294
294
  } catch (ye) {
295
- N = ye;
295
+ P = ye;
296
296
  }
297
- Reflect.construct(u, [], R);
297
+ Reflect.construct(u, [], I);
298
298
  } else {
299
299
  try {
300
- R.call();
300
+ I.call();
301
301
  } catch (ye) {
302
- N = ye;
302
+ P = ye;
303
303
  }
304
- u.call(R.prototype);
304
+ u.call(I.prototype);
305
305
  }
306
306
  } else {
307
307
  try {
308
308
  throw Error();
309
309
  } catch (ye) {
310
- N = ye;
310
+ P = ye;
311
311
  }
312
312
  u();
313
313
  }
314
314
  } catch (ye) {
315
- if (ye && N && typeof ye.stack == "string") {
316
- for (var L = ye.stack.split(`
317
- `), ce = N.stack.split(`
318
- `), J = L.length - 1, X = ce.length - 1; J >= 1 && X >= 0 && L[J] !== ce[X]; )
319
- X--;
320
- for (; J >= 1 && X >= 0; J--, X--)
321
- if (L[J] !== ce[X]) {
322
- if (J !== 1 || X !== 1)
315
+ if (ye && P && typeof ye.stack == "string") {
316
+ for (var R = ye.stack.split(`
317
+ `), oe = P.stack.split(`
318
+ `), X = R.length - 1, ee = oe.length - 1; X >= 1 && ee >= 0 && R[X] !== oe[ee]; )
319
+ ee--;
320
+ for (; X >= 1 && ee >= 0; X--, ee--)
321
+ if (R[X] !== oe[ee]) {
322
+ if (X !== 1 || ee !== 1)
323
323
  do
324
- if (J--, X--, X < 0 || L[J] !== ce[X]) {
324
+ if (X--, ee--, ee < 0 || R[X] !== oe[ee]) {
325
325
  var he = `
326
- ` + L[J].replace(" at new ", " at ");
326
+ ` + R[X].replace(" at new ", " at ");
327
327
  return u.displayName && he.includes("<anonymous>") && (he = he.replace("<anonymous>", u.displayName)), typeof u == "function" && Ee.set(u, he), he;
328
328
  }
329
- while (J >= 1 && X >= 0);
329
+ while (X >= 1 && ee >= 0);
330
330
  break;
331
331
  }
332
332
  }
333
333
  } finally {
334
- pe = !1, K.current = Y, ue(), Error.prepareStackTrace = B;
334
+ pe = !1, K.current = V, ue(), Error.prepareStackTrace = O;
335
335
  }
336
336
  var Se = u ? u.displayName || u.name : "", _n = Se ? me(Se) : "";
337
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")
@@ -361,41 +361,41 @@ function ir() {
361
361
  case m:
362
362
  return _a(u.render);
363
363
  case d:
364
- return ze(u.type, x, $);
364
+ return ze(u.type, x, T);
365
365
  case p: {
366
- var N = u, B = N._payload, Y = N._init;
366
+ var P = u, O = P._payload, V = P._init;
367
367
  try {
368
- return ze(Y(B), 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 = v.ReactDebugCurrentFrame;
375
+ var We = Object.prototype.hasOwnProperty, rn = {}, sn = y.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, B) {
383
+ function ya(u, x, T, P, O) {
384
384
  {
385
- var Y = Function.call.bind(We);
386
- for (var R in u)
387
- if (Y(u, R)) {
388
- var L = void 0;
385
+ var V = Function.call.bind(We);
386
+ for (var I in u)
387
+ if (V(u, I)) {
388
+ var R = void 0;
389
389
  try {
390
- if (typeof u[R] != "function") {
391
- var ce = Error((N || "React class") + ": " + $ + " type `" + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof u[R] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
392
- throw ce.name = "Invariant Violation", ce;
390
+ if (typeof u[I] != "function") {
391
+ var oe = Error((P || "React class") + ": " + T + " type `" + I + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof u[I] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
392
+ throw oe.name = "Invariant Violation", oe;
393
393
  }
394
- L = u[R](x, R, N, $, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
395
- } catch (J) {
396
- L = J;
394
+ R = u[I](x, I, P, T, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
395
+ } catch (X) {
396
+ R = X;
397
397
  }
398
- L && !(L instanceof Error) && (Ve(B), _("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", N || "React class", $, R, typeof L), Ve(null)), L instanceof Error && !(L.message in rn) && (rn[L.message] = !0, Ve(B), _("Failed %s type: %s", $, L.message), Ve(null));
398
+ R && !(R instanceof Error) && (Ve(O), _("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", P || "React class", T, I, typeof R), Ve(null)), R instanceof Error && !(R.message in rn) && (rn[R.message] = !0, Ve(O), _("Failed %s type: %s", T, R.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 _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", xa(u)), on(u);
425
425
  }
426
- var De = v.ReactCurrentOwner, ja = {
426
+ var De = y.ReactCurrentOwner, ja = {
427
427
  key: !0,
428
428
  ref: !0,
429
429
  __self: !0,
@@ -448,84 +448,84 @@ function ir() {
448
448
  }
449
449
  function $a(u, x) {
450
450
  if (typeof u.ref == "string" && De.current && x && De.current.stateNode !== x) {
451
- var $ = H(De.current.type);
452
- wt[$] || (_('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', H(De.current.type), u.ref), wt[$] = !0);
451
+ var T = q(De.current.type);
452
+ wt[T] || (_('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', q(De.current.type), u.ref), wt[T] = !0);
453
453
  }
454
454
  }
455
455
  function Ea(u, x) {
456
456
  {
457
- var $ = function() {
457
+ var T = function() {
458
458
  ln || (ln = !0, _("%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, _("%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, B, Y, R) {
478
- var L = {
477
+ var Sa = function(u, x, T, P, O, V, I) {
478
+ var R = {
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: R,
484
+ ref: T,
485
+ props: I,
486
486
  // Record the component responsible for creating this element.
487
- _owner: Y
487
+ _owner: V
488
488
  };
489
- return L._store = {}, Object.defineProperty(L._store, "validated", {
489
+ return R._store = {}, Object.defineProperty(R._store, "validated", {
490
490
  configurable: !1,
491
491
  enumerable: !1,
492
492
  writable: !0,
493
493
  value: !1
494
- }), Object.defineProperty(L, "_self", {
494
+ }), Object.defineProperty(R, "_self", {
495
495
  configurable: !1,
496
496
  enumerable: !1,
497
497
  writable: !1,
498
- value: N
499
- }), Object.defineProperty(L, "_source", {
498
+ value: P
499
+ }), Object.defineProperty(R, "_source", {
500
500
  configurable: !1,
501
501
  enumerable: !1,
502
502
  writable: !1,
503
- value: B
504
- }), Object.freeze && (Object.freeze(L.props), Object.freeze(L)), L;
503
+ value: O
504
+ }), Object.freeze && (Object.freeze(R.props), Object.freeze(R)), R;
505
505
  };
506
- function Ma(u, x, $, N, B) {
506
+ function Ma(u, x, T, P, O) {
507
507
  {
508
- var Y, R = {}, L = null, ce = null;
509
- $ !== void 0 && (cn($), L = "" + $), Ta(x) && (cn(x.key), L = "" + x.key), wa(x) && (ce = x.ref, $a(x, B));
510
- for (Y in x)
511
- We.call(x, Y) && !ja.hasOwnProperty(Y) && (R[Y] = x[Y]);
508
+ var V, I = {}, R = null, oe = null;
509
+ T !== void 0 && (cn(T), R = "" + T), Ta(x) && (cn(x.key), R = "" + x.key), wa(x) && (oe = x.ref, $a(x, O));
510
+ for (V in x)
511
+ We.call(x, V) && !ja.hasOwnProperty(V) && (I[V] = x[V]);
512
512
  if (u && u.defaultProps) {
513
- var J = u.defaultProps;
514
- for (Y in J)
515
- R[Y] === void 0 && (R[Y] = J[Y]);
513
+ var X = u.defaultProps;
514
+ for (V in X)
515
+ I[V] === void 0 && (I[V] = X[V]);
516
516
  }
517
- if (L || ce) {
518
- var X = typeof u == "function" ? u.displayName || u.name || "Unknown" : u;
519
- L && Ea(R, X), ce && Ca(R, X);
517
+ if (R || oe) {
518
+ var ee = typeof u == "function" ? u.displayName || u.name || "Unknown" : u;
519
+ R && Ea(I, ee), oe && Ca(I, ee);
520
520
  }
521
- return Sa(u, L, ce, B, N, De.current, R);
521
+ return Sa(u, R, oe, O, P, De.current, I);
522
522
  }
523
523
  }
524
- var Tt = v.ReactCurrentOwner, un = v.ReactDebugCurrentFrame;
524
+ var Tt = y.ReactCurrentOwner, un = y.ReactDebugCurrentFrame;
525
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 = H(Tt.current.type);
540
+ var u = q(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;
582
- var N = "";
583
- u && u._owner && u._owner !== Tt.current && (N = " It was passed a child from " + H(u._owner.type) + "."), Ce(u), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', $, N), Ce(null);
581
+ fn[T] = !0;
582
+ var P = "";
583
+ u && u._owner && u._owner !== Tt.current && (P = " It was passed a child from " + q(u._owner.type) + "."), Ce(u), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', T, P), Ce(null);
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[$];
593
- Et(N) && pn(N, x);
591
+ for (var T = 0; T < u.length; T++) {
592
+ var P = u[T];
593
+ Et(P) && pn(P, x);
594
594
  }
595
595
  else if (Et(u))
596
596
  u._store && (u._store.validated = !0);
597
597
  else if (u) {
598
- var B = k(u);
599
- if (typeof B == "function" && B !== u.entries)
600
- for (var Y = B.call(u), R; !(R = Y.next()).done; )
601
- Et(R.value) && pn(R.value, x);
598
+ var O = k(u);
599
+ if (typeof O == "function" && O !== u.entries)
600
+ for (var V = O.call(u), I; !(I = V.next()).done; )
601
+ Et(I.value) && pn(I.value, x);
602
602
  }
603
603
  }
604
604
  }
@@ -607,56 +607,56 @@ 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 = H(x);
621
- ya($, u.props, "prop", N, u);
619
+ if (T) {
620
+ var P = q(x);
621
+ ya(T, u.props, "prop", P, u);
622
622
  } else if (x.PropTypes !== void 0 && !$t) {
623
623
  $t = !0;
624
- var B = H(x);
625
- _("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", B || "Unknown");
624
+ var O = q(x);
625
+ _("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 && _("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[$];
634
- if (N !== "children" && N !== "key") {
635
- Ce(u), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", N), Ce(null);
632
+ for (var x = Object.keys(u.props), T = 0; T < x.length; T++) {
633
+ var P = x[T];
634
+ if (P !== "children" && P !== "key") {
635
+ Ce(u), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", P), Ce(null);
636
636
  break;
637
637
  }
638
638
  }
639
639
  u.ref !== null && (Ce(u), _("Invalid attribute `ref` supplied to `React.Fragment`."), Ce(null));
640
640
  }
641
641
  }
642
- function gn(u, x, $, N, B, Y) {
642
+ function gn(u, x, T, P, O, V) {
643
643
  {
644
- var R = T(u);
645
- if (!R) {
646
- var L = "";
647
- (u === void 0 || typeof u == "object" && u !== null && Object.keys(u).length === 0) && (L += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
648
- var ce = Na(B);
649
- ce ? L += ce : L += mn();
650
- var J;
651
- u === null ? J = "null" : jt(u) ? J = "array" : u !== void 0 && u.$$typeof === t ? (J = "<" + (H(u.type) || "Unknown") + " />", L = " Did you accidentally export a JSX literal instead of a component?") : J = typeof u, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", J, L);
644
+ var I = M(u);
645
+ if (!I) {
646
+ var R = "";
647
+ (u === void 0 || typeof u == "object" && u !== null && Object.keys(u).length === 0) && (R += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
648
+ var oe = Na(O);
649
+ oe ? R += oe : R += mn();
650
+ var X;
651
+ u === null ? X = "null" : jt(u) ? X = "array" : u !== void 0 && u.$$typeof === t ? (X = "<" + (q(u.type) || "Unknown") + " />", R = " Did you accidentally export a JSX literal instead of a component?") : X = typeof u, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", X, R);
652
652
  }
653
- var X = Ma(u, x, $, B, Y);
654
- if (X == null)
655
- return X;
656
- if (R) {
653
+ var ee = Ma(u, x, T, O, V);
654
+ if (ee == null)
655
+ return ee;
656
+ if (I) {
657
657
  var he = x.children;
658
658
  if (he !== void 0)
659
- if (N)
659
+ if (P)
660
660
  if (jt(he)) {
661
661
  for (var Se = 0; Se < he.length; Se++)
662
662
  hn(he[Se], u);
@@ -666,14 +666,14 @@ Check the top-level render call using <` + $ + ">.");
666
666
  else
667
667
  hn(he, u);
668
668
  }
669
- return u === r ? Fa(X) : Aa(X), X;
669
+ return u === r ? Fa(ee) : Aa(ee), ee;
670
670
  }
671
671
  }
672
- function Da(u, x, $) {
673
- return gn(u, x, $, !0);
672
+ function Da(u, x, T) {
673
+ return gn(u, x, T, !0);
674
674
  }
675
- function La(u, x, $) {
676
- return gn(u, x, $, !1);
675
+ function La(u, x, T) {
676
+ return gn(u, x, T, !1);
677
677
  }
678
678
  var Ra = La, Ia = Da;
679
679
  Re.Fragment = r, Re.jsx = Ra, Re.jsxs = Ia;
@@ -690,66 +690,66 @@ const or = () => {
690
690
  window.removeEventListener("popstate", n);
691
691
  }), []), e;
692
692
  }, Pe = (e, t) => {
693
- const n = te(!1);
693
+ const n = ne(!1);
694
694
  G(() => {
695
695
  n.current ? e() : n.current = !0;
696
696
  }, t);
697
697
  };
698
698
  function cr(e, t, n) {
699
- var r = this, s = 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
701
  var p = typeof window < "u", h = !t && t !== 0 && p;
702
702
  if (typeof e != "function")
703
703
  throw new TypeError("Expected a function");
704
704
  t = +t || 0;
705
- var g = !!(n = n || {}).leading, y = !("trailing" in n) || !!n.trailing, k = "maxWait" in n, v = "debounceOnServer" in n && !!n.debounceOnServer, _ = k ? Math.max(+n.maxWait || 0, t) : null;
705
+ var g = !!(n = n || {}).leading, b = !("trailing" in n) || !!n.trailing, k = "maxWait" in n, y = "debounceOnServer" in n && !!n.debounceOnServer, _ = k ? Math.max(+n.maxWait || 0, t) : null;
706
706
  G(function() {
707
707
  return d.current = !0, function() {
708
708
  d.current = !1;
709
709
  };
710
710
  }, []);
711
- var b = ft(function() {
712
- var j = function(T) {
713
- var E = c.current, O = m.current;
714
- return c.current = m.current = null, i.current = T, l.current = f.current.apply(O, E);
715
- }, S = function(T, E) {
716
- h && cancelAnimationFrame(o.current), o.current = h ? requestAnimationFrame(T) : setTimeout(T, E);
717
- }, C = function(T) {
711
+ var v = ft(function() {
712
+ var j = function(M) {
713
+ var E = c.current, N = m.current;
714
+ return c.current = m.current = null, i.current = M, l.current = f.current.apply(N, E);
715
+ }, $ = function(M, E) {
716
+ h && cancelAnimationFrame(o.current), o.current = h ? requestAnimationFrame(M) : setTimeout(M, E);
717
+ }, C = function(M) {
718
718
  if (!d.current)
719
719
  return !1;
720
- var E = T - s.current;
721
- return !s.current || E >= t || E < 0 || k && T - i.current >= _;
722
- }, I = function(T) {
723
- return o.current = null, y && c.current ? j(T) : (c.current = m.current = null, l.current);
724
- }, F = function T() {
720
+ var E = M - s.current;
721
+ return !s.current || E >= t || E < 0 || k && M - i.current >= _;
722
+ }, Z = function(M) {
723
+ return o.current = null, b && c.current ? j(M) : (c.current = m.current = null, l.current);
724
+ }, L = function M() {
725
725
  var E = Date.now();
726
726
  if (C(E))
727
- return I(E);
727
+ return Z(E);
728
728
  if (d.current) {
729
- var O = t - (E - s.current), H = k ? Math.min(O, _ - (E - i.current)) : O;
730
- S(T, H);
729
+ var N = t - (E - s.current), q = k ? Math.min(N, _ - (E - i.current)) : N;
730
+ $(M, q);
731
731
  }
732
- }, M = function() {
733
- if (p || v) {
734
- var T = Date.now(), E = C(T);
735
- if (c.current = [].slice.call(arguments), m.current = r, s.current = T, E) {
732
+ }, S = function() {
733
+ if (p || y) {
734
+ var M = Date.now(), E = C(M);
735
+ if (c.current = [].slice.call(arguments), m.current = r, s.current = M, E) {
736
736
  if (!o.current && d.current)
737
- return i.current = s.current, S(F, t), g ? j(s.current) : l.current;
737
+ return i.current = s.current, $(L, t), g ? j(s.current) : l.current;
738
738
  if (k)
739
- return S(F, t), j(s.current);
739
+ return $(L, t), j(s.current);
740
740
  }
741
- return o.current || S(F, t), l.current;
741
+ return o.current || $(L, t), l.current;
742
742
  }
743
743
  };
744
- return M.cancel = function() {
744
+ return S.cancel = function() {
745
745
  o.current && (h ? cancelAnimationFrame(o.current) : clearTimeout(o.current)), i.current = 0, c.current = s.current = m.current = o.current = null;
746
- }, M.isPending = function() {
746
+ }, S.isPending = function() {
747
747
  return !!o.current;
748
- }, M.flush = function() {
749
- return o.current ? I(Date.now()) : l.current;
750
- }, M;
751
- }, [g, k, t, _, y, h, p, v]);
752
- return b;
748
+ }, S.flush = function() {
749
+ return o.current ? Z(Date.now()) : l.current;
750
+ }, S;
751
+ }, [g, k, t, _, b, h, p, y]);
752
+ return v;
753
753
  }
754
754
  function Zn(e, t, n) {
755
755
  var r = n === void 0 ? {} : n, s = r.leading, i = r.trailing;
@@ -759,7 +759,7 @@ let Ct;
759
759
  const He = (e = !0, t = !1, n = "window") => {
760
760
  if (!e)
761
761
  return;
762
- const [r, s] = A.useState(0) || [!1, () => {
762
+ const [r, s] = F.useState(0) || [!1, () => {
763
763
  }];
764
764
  G(() => (c(), window.addEventListener("resize", m), () => {
765
765
  clearTimeout(Ct), m.flush(), window.removeEventListener("resize", m);
@@ -790,8 +790,8 @@ const He = (e = !0, t = !1, n = "window") => {
790
790
  }) => {
791
791
  if (!window)
792
792
  return;
793
- const [s, i] = A.useState({ current: 0, past: 0 }) || [!1, () => {
794
- }], [o, c] = A.useState({ scrollDown: !1, scrollUp: !1 }) || [!1, () => {
793
+ const [s, i] = F.useState({ current: 0, past: 0 }) || [!1, () => {
794
+ }], [o, c] = F.useState({ scrollDown: !1, scrollUp: !1 }) || [!1, () => {
795
795
  }];
796
796
  G(() => (m(), window.addEventListener("scroll", l), () => {
797
797
  l.flush(), window.removeEventListener("scroll", l);
@@ -809,7 +809,7 @@ const He = (e = !0, t = !1, n = "window") => {
809
809
  return s;
810
810
  }, dr = (e = [], t = !0) => {
811
811
  e = Array.isArray(e) ? e : [e];
812
- const n = te(!1);
812
+ const n = ne(!1);
813
813
  Pe(() => {
814
814
  if (window && window.location && window.location.hash) {
815
815
  if (n.current)
@@ -1227,9 +1227,9 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1227
1227
  return t.forEach(({ type: r, value: s }) => {
1228
1228
  qa(n, r, s);
1229
1229
  }), n;
1230
- }, xr = (e) => new Promise((t) => setTimeout(t, e)), at = (e, t) => A.Children.map(e, (n) => A.cloneElement(n, {
1230
+ }, xr = (e) => new Promise((t) => setTimeout(t, e)), at = (e, t) => F.Children.map(e, (n) => F.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 },
@@ -1245,12 +1245,12 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1245
1245
  }) => {
1246
1246
  const h = He(typeof t == "object");
1247
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);
1248
+ const k = Object.assign({}, t), y = qn(Object.keys(k));
1249
+ t = Hn(h, y, k);
1250
1250
  }
1251
1251
  const g = [];
1252
1252
  typeof t == "string" && g.push(t), r && (g.push("icon"), typeof r == "object" ? (g.push(r.icon), r.position ? g.push(r.position) : g.push("left"), r.hover && g.push(`hover_${r.hover}`), r.animate && (g.push("animate"), typeof r.animate == "string" && g.push(r.animate))) : (g.push(r), !r.includes("right") && !r.includes("left") && g.push("left"))), n.muted && g.push("muted"), n.fullWidth && g.push("full-width");
1253
- const y = {
1253
+ const b = {
1254
1254
  ...d,
1255
1255
  className: w(e, c, g, {
1256
1256
  "no-text": !f,
@@ -1262,14 +1262,14 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1262
1262
  },
1263
1263
  disabled: typeof m == "object" && "isClickable" in m ? !m.isClickable : m
1264
1264
  };
1265
- return s && (i = "a", y.href = s), A.createElement(
1265
+ return s && (i = "a", b.href = s), F.createElement(
1266
1266
  i,
1267
- y,
1267
+ b,
1268
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: w("button-wrapper", t), ...n, children: s });
1271
+ const r = e.length > 1 ? "ul" : "p", s = e.map((i, o) => r === "p" ? /* @__PURE__ */ a.jsx(B, { ...i }, o) : /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(B, { ...i }) }, o));
1272
+ return F.createElement(r, { className: w("button-wrapper", t), ...n, children: s });
1273
1273
  };
1274
1274
  const Te = ({ className: e = "", maxWidth: t = !1 }) => {
1275
1275
  const n = t ? { "--max-width": `${t / 16}rem` } : {};
@@ -1296,7 +1296,7 @@ const Te = ({ className: e = "", maxWidth: t = !1 }) => {
1296
1296
  }
1297
1297
  );
1298
1298
  }
1299
- return n ? A.createElement(n, { children: t, className: r, ...c }) : t;
1299
+ return n ? F.createElement(n, { children: t, className: r, ...c }) : t;
1300
1300
  }, xn = {
1301
1301
  card: {
1302
1302
  range: [
@@ -1427,7 +1427,7 @@ const Wn = ({ image: e, className: t, testId: n }) => {
1427
1427
  loading: l,
1428
1428
  decoding: f,
1429
1429
  fetchPriority: d
1430
- } = e, { range: p, sizes: h } = kr(e), g = St({ format: "avif", query: o, range: p, url: c }), y = St({ format: "webp", query: o, range: p, url: c }), k = St({ format: "", query: o, range: p, url: c });
1430
+ } = e, { range: p, sizes: h } = kr(e), g = St({ format: "avif", query: o, range: p, url: c }), b = St({ format: "webp", query: o, range: p, url: c }), k = St({ format: "", query: o, range: p, url: c });
1431
1431
  return /* @__PURE__ */ a.jsxs("picture", { className: t, children: [
1432
1432
  i !== "image/gif" && /* @__PURE__ */ a.jsx(
1433
1433
  "source",
@@ -1442,7 +1442,7 @@ const Wn = ({ image: e, className: t, testId: n }) => {
1442
1442
  "source",
1443
1443
  {
1444
1444
  type: "image/webp",
1445
- srcSet: y,
1445
+ srcSet: b,
1446
1446
  sizes: h,
1447
1447
  "data-testid": "source"
1448
1448
  }
@@ -1466,7 +1466,7 @@ const Wn = ({ image: e, className: t, testId: n }) => {
1466
1466
  };
1467
1467
  let Ie = !1;
1468
1468
  const wr = ({ isOpen: e = !1, isLoading: t = !1, children: n }) => {
1469
- const r = P(), s = te(null), [i, o] = D("hidden");
1469
+ const r = A(), s = ne(null), [i, o] = D("hidden");
1470
1470
  G(() => {
1471
1471
  const m = s.current;
1472
1472
  if (m)
@@ -1500,7 +1500,7 @@ const $i = ({ text: e, buttons: t, className: n = "" }) => {
1500
1500
  children: s.text
1501
1501
  });
1502
1502
  }), /* @__PURE__ */ a.jsx(_t, { className: w("download-section", n), children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1503
- A.createElement(typeof e == "string" ? "h2" : e.element, { className: "text" }, typeof e == "string" ? e : e.text),
1503
+ F.createElement(typeof e == "string" ? "h2" : e.element, { className: "text" }, typeof e == "string" ? e : e.text),
1504
1504
  /* @__PURE__ */ a.jsx(ht, { buttons: r })
1505
1505
  ] }) });
1506
1506
  };
@@ -1513,7 +1513,7 @@ const Ei = ({ title: e = !1, logos: t = [], className: n = "" }) => {
1513
1513
  text: typeof e == "string" ? e : typeof e == "object" ? e.text : ""
1514
1514
  };
1515
1515
  return /* @__PURE__ */ a.jsxs("div", { className: w("logos", n), children: [
1516
- e && A.createElement(s.element, { className: "title" }, s.text),
1516
+ e && F.createElement(s.element, { className: "title" }, s.text),
1517
1517
  /* @__PURE__ */ a.jsx(
1518
1518
  "ul",
1519
1519
  {
@@ -1616,7 +1616,7 @@ const Tr = [
1616
1616
  m.map((d) => {
1617
1617
  if (f[d] && typeof f[d] == "object") {
1618
1618
  const { text: p, element: h = "" } = f[d];
1619
- return A.createElement(
1619
+ return F.createElement(
1620
1620
  h.toLowerCase(),
1621
1621
  { key: d, className: d },
1622
1622
  p
@@ -1626,7 +1626,7 @@ const Tr = [
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" },
@@ -1650,7 +1650,7 @@ const Si = ({
1650
1650
  }) => !n && !r ? null : /* @__PURE__ */ a.jsxs("aside", { className: w("marketing-block", e), children: [
1651
1651
  n && /* @__PURE__ */ a.jsx("p", { className: "title", children: n }),
1652
1652
  r && /* @__PURE__ */ a.jsx("p", { children: r }),
1653
- t && /* @__PURE__ */ a.jsx(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
@@ -1673,7 +1673,7 @@ function Sr(e) {
1673
1673
  var t = e.children, n = e.client, r = e.apiKey, s = e.options, i = ft(function() {
1674
1674
  return n && r && console.warn("[PostHog.js] You have provided both a client and an apiKey to PostHogProvider. The apiKey will be ignored in favour of the client."), n && s && console.warn("[PostHog.js] You have provided both a client and options to PostHogProvider. The options will be ignored in favour of the client."), n || (r && (nt.__loaded && console.warn("[PostHog.js] was already loaded elsewhere. This may cause issues."), nt.init(r, s)), nt);
1675
1675
  }, [n, r]);
1676
- return A.createElement(Cr.Provider, { value: { client: i } }, t);
1676
+ return F.createElement(Cr.Provider, { value: { client: i } }, t);
1677
1677
  }
1678
1678
  const Mr = ({ children: e, user: t }) => t.isLoading ? null : process.env.REACT_APP_PUBLIC_POSTHOG_KEY ? /* @__PURE__ */ a.jsx(
1679
1679
  Sr,
@@ -1720,7 +1720,7 @@ const Pr = ({ children: e, user: t }) => /* @__PURE__ */ a.jsx(ke.Provider, { va
1720
1720
  }
1721
1721
  }, Ni = "200,000+";
1722
1722
  const Vn = ({ label: e = !1, className: t = "", children: n }) => {
1723
- const r = P();
1723
+ const r = A();
1724
1724
  return /* @__PURE__ */ a.jsxs("details", { className: w("collapsible-section", t), children: [
1725
1725
  /* @__PURE__ */ a.jsx("summary", { children: e || r.formatMessage({ id: "collapsibleSection_summary" }) }),
1726
1726
  /* @__PURE__ */ a.jsx("div", { className: "content", children: n })
@@ -1753,7 +1753,7 @@ const bt = ({
1753
1753
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1754
1754
  t && /* @__PURE__ */ a.jsx(pt, { options: { forceBlock: !0 }, children: t }),
1755
1755
  s && typeof n == "object" && (l || /* @__PURE__ */ a.jsx(
1756
- q,
1756
+ B,
1757
1757
  {
1758
1758
  ...f,
1759
1759
  variant: n.variant ? n.variant : "secondary",
@@ -1773,7 +1773,7 @@ const Ar = ({ type: e = "default", className: t = "", heading: n = !1, children:
1773
1773
  pt,
1774
1774
  {
1775
1775
  options: {
1776
- wrapper: A.Fragment,
1776
+ wrapper: F.Fragment,
1777
1777
  forceBlock: !0,
1778
1778
  overrides: Yn
1779
1779
  },
@@ -1782,7 +1782,7 @@ const Ar = ({ type: e = "default", className: t = "", heading: n = !1, children:
1782
1782
  ) : /* @__PURE__ */ a.jsx("p", { children: r })
1783
1783
  ] });
1784
1784
  const Pi = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children: s }) => {
1785
- const i = P(), o = te(null), [c, m] = D(""), [l, f] = D("closed");
1785
+ const i = A(), o = ne(null), [c, m] = D(""), [l, f] = D("closed");
1786
1786
  G(() => {
1787
1787
  const h = o.current;
1788
1788
  if (h)
@@ -1811,7 +1811,7 @@ const Pi = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
1811
1811
  l !== "closed" && s
1812
1812
  ] }),
1813
1813
  /* @__PURE__ */ a.jsx("p", { className: "cta", children: /* @__PURE__ */ a.jsx(
1814
- q,
1814
+ B,
1815
1815
  {
1816
1816
  variant: "tertiary",
1817
1817
  icon: { icon: "navigation_arrow", position: "left", animate: !0 },
@@ -1824,18 +1824,18 @@ const Pi = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
1824
1824
  }
1825
1825
  ) })
1826
1826
  ] });
1827
- }, Fr = () => A.Fragment, Dr = ({ children: e }) => /* @__PURE__ */ a.jsx(we, { variant: "secondary", children: e }), Lr = ["span", "strong", "h1", "h2", "h3", "h4", "h5", "h6", "p"], Rr = ({ children: e }) => {
1828
- const t = P();
1827
+ }, Fr = () => F.Fragment, Dr = ({ children: e }) => /* @__PURE__ */ a.jsx(we, { variant: "secondary", children: e }), Lr = ["span", "strong", "h1", "h2", "h3", "h4", "h5", "h6", "p"], Rr = ({ children: e }) => {
1828
+ const t = A();
1829
1829
  if (!e)
1830
1830
  return null;
1831
1831
  let n = t.formatMessage({ id: "markdown_collapsibleSection_summary" });
1832
1832
  const r = [];
1833
1833
  for (const i of Ht.toArray(e))
1834
1834
  if (!(!i || typeof i == "string" || typeof i == "number"))
1835
- if (A.isValidElement(i) && i.type === "summary") {
1835
+ if (F.isValidElement(i) && i.type === "summary") {
1836
1836
  if (i.props && i.props.children) {
1837
1837
  for (const o of Ht.toArray(i.props.children))
1838
- if (!(!o || typeof o == "string" || typeof o == "number") && A.isValidElement(o)) {
1838
+ if (!(!o || typeof o == "string" || typeof o == "number") && F.isValidElement(o)) {
1839
1839
  const c = o.type;
1840
1840
  if (Lr.includes(c)) {
1841
1841
  for (n = o.props.children; typeof n != "string" && (Array.isArray(n) && n[0].props && n[0].props.children && n[0].props.children[0]); )
@@ -1870,7 +1870,7 @@ const Pi = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
1870
1870
  }
1871
1871
  return /* @__PURE__ */ a.jsx("div", { ...t, children: e });
1872
1872
  }, Or = (e) => {
1873
- const t = P(), n = Date.now().toString();
1873
+ const t = A(), n = Date.now().toString();
1874
1874
  let r = "default";
1875
1875
  const s = e.src;
1876
1876
  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: [
@@ -1886,21 +1886,21 @@ const Pi = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
1886
1886
  t.href && (t.href.includes("http:") || t.href.includes("https:")) && !t.target && (n.target = "_blank");
1887
1887
  let r = e, s = !1;
1888
1888
  for (const i of Ht.toArray(e))
1889
- if (!(!i || typeof i == "string" || typeof i == "number") && A.isValidElement(i)) {
1889
+ if (!(!i || typeof i == "string" || typeof i == "number") && F.isValidElement(i)) {
1890
1890
  const o = i.type;
1891
1891
  if (["button", "center", "span", "strong"].includes(o) && i.props && i.props.children && i.props.children[0])
1892
- for ((o === "button" || kn(i.props.children[0]) === "button") && (s = !0), r = i.props.children[0]; r && typeof r != "string" && !(typeof r == "boolean" || typeof r == "number" || !A.isValidElement(r)); )
1892
+ for ((o === "button" || kn(i.props.children[0]) === "button") && (s = !0), r = i.props.children[0]; r && typeof r != "string" && !(typeof r == "boolean" || typeof r == "number" || !F.isValidElement(r)); )
1893
1893
  if (r.props && r.props.children && r.props.children[0])
1894
1894
  r = r.props.children[0], r && kn(r) === "button" && (s = !0);
1895
1895
  else
1896
1896
  break;
1897
1897
  }
1898
- 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 });
1898
+ 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 });
1899
1899
  }, Zr = ({ children: e }) => /* @__PURE__ */ a.jsx("span", { children: e });
1900
1900
  const jn = ({ className: e = "", options: t = {}, children: n }) => {
1901
1901
  n = n.replace(/^<br\/?>/, "");
1902
1902
  const r = {
1903
- wrapper: A.Fragment,
1903
+ wrapper: F.Fragment,
1904
1904
  forceBlock: !0,
1905
1905
  overrides: {
1906
1906
  a: Br,
@@ -1929,8 +1929,8 @@ const qr = ({
1929
1929
  const i = e ? { "--max-width": `${e / 16}rem` } : {};
1930
1930
  return /* @__PURE__ */ a.jsxs("section", { className: w("page-heading", s), children: [
1931
1931
  /* @__PURE__ */ a.jsxs("div", { className: w("content", { "has-max-width": e }), style: i, children: [
1932
- t && t.text && A.createElement(t.element || "h1", { className: "title" }, t.text),
1933
- n && n.text && A.createElement(
1932
+ t && t.text && F.createElement(t.element || "h1", { className: "title" }, t.text),
1933
+ n && n.text && F.createElement(
1934
1934
  n.element || "h2",
1935
1935
  { className: "text-medium" },
1936
1936
  n.text
@@ -1946,13 +1946,13 @@ const st = ({
1946
1946
  children: r,
1947
1947
  ...s
1948
1948
  }) => /* @__PURE__ */ a.jsx("span", { className: w("pill", e, t, n), ...s, children: r });
1949
- 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);
1949
+ const Vt = ({ element: e = "p", children: t = null, className: n = "", ...r }) => F.createElement(e, { ...r, className: w("status-banner text-small", n), "aria-live": "assertive" }, t);
1950
1950
  const Hr = ({ progress: e = 0, text: t = !1, className: n = "" }) => {
1951
- const r = P(), s = e > 75 ? 100 : e > 50 ? 75 : e > 25 ? 50 : e > 5 ? 25 : 0, i = { "--progress": `${e}%` };
1951
+ const r = A(), s = e > 75 ? 100 : e > 50 ? 75 : e > 25 ? 50 : e > 5 ? 25 : 0, i = { "--progress": `${e}%` };
1952
1952
  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 }) }) });
1953
1953
  }, Ur = Fe(Hr);
1954
1954
  const Mt = "loadingBlock_", zr = ({ progress: e = 0, steps: t = !1, className: n = "" }) => {
1955
- const r = P();
1955
+ const r = A();
1956
1956
  t || (t = {
1957
1957
  0: { text: r.formatMessage({ id: `${Mt}loading` }) },
1958
1958
  75: { text: r.formatMessage({ id: `${Mt}almostDone` }) },
@@ -2015,7 +2015,7 @@ const wn = 256, Ue = ({
2015
2015
  height: i = wn,
2016
2016
  ...o
2017
2017
  }) => {
2018
- const [c, m] = D(!1), l = te(null);
2018
+ const [c, m] = D(!1), l = ne(null);
2019
2019
  G(() => {
2020
2020
  const d = l.current;
2021
2021
  if (!d)
@@ -2078,10 +2078,10 @@ const Xt = ({
2078
2078
  gtmType: s = "member-click",
2079
2079
  className: i = ""
2080
2080
  }) => {
2081
- const o = P(), c = Jn(t);
2081
+ const o = A(), c = Jn(t);
2082
2082
  c.name || (c.name = o.formatMessage({ id: `member_${typeof t == "string" ? t : "community"}` }));
2083
2083
  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) : "";
2084
- return A.createElement(e, {
2084
+ return F.createElement(e, {
2085
2085
  className: w("member text-medium", i),
2086
2086
  children: /* @__PURE__ */ a.jsxs(
2087
2087
  gt,
@@ -2123,35 +2123,35 @@ const Tn = {
2123
2123
  className: m = "",
2124
2124
  ...l
2125
2125
  }) => {
2126
- const f = P();
2127
- return !n || n.length === 0 ? null : A.createElement(e, {
2126
+ const f = A();
2127
+ return !n || n.length === 0 ? null : F.createElement(e, {
2128
2128
  ...l,
2129
2129
  className: w("contributors", m, s, { "has-gap": i }),
2130
2130
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2131
2131
  /* @__PURE__ */ a.jsx("ul", { children: n.map((d, p) => {
2132
2132
  let h, g = "";
2133
2133
  if (p < c) {
2134
- const { name: y = "", image: k = "" } = Jn(d);
2134
+ const { name: b = "", image: k = "" } = Jn(d);
2135
2135
  if (o)
2136
2136
  return /* @__PURE__ */ a.jsx(_e, { element: "li", className: "contributor" }, p);
2137
2137
  h = /* @__PURE__ */ a.jsx(
2138
2138
  Ue,
2139
2139
  {
2140
- name: y,
2140
+ name: b,
2141
2141
  src: k,
2142
2142
  width: Tn[s || "medium"],
2143
2143
  height: Tn[s || "medium"]
2144
2144
  }
2145
2145
  );
2146
2146
  } else if (p === c) {
2147
- const y = (t || n.length) - c;
2147
+ const b = (t || n.length) - c;
2148
2148
  h = /* @__PURE__ */ a.jsxs(
2149
2149
  "small",
2150
2150
  {
2151
- className: w({ "large-number": y > 99 }),
2151
+ className: w({ "large-number": b > 99 }),
2152
2152
  children: [
2153
2153
  "+",
2154
- _r(y, 0)
2154
+ _r(b, 0)
2155
2155
  ]
2156
2156
  }
2157
2157
  ), g = "number-left";
@@ -2162,7 +2162,7 @@ const Tn = {
2162
2162
  ] })
2163
2163
  });
2164
2164
  }, Yr = ({ type: e, data: t }) => {
2165
- const n = P(), {
2165
+ const n = A(), {
2166
2166
  answers: r,
2167
2167
  createdAt: s,
2168
2168
  dateHasPassed: i,
@@ -2279,12 +2279,12 @@ const Tn = {
2279
2279
  }
2280
2280
  }, Gr = ({ data: e, cta: t, link: n, gtmContext: r }) => {
2281
2281
  var g;
2282
- const s = P(), [i, o] = D({
2282
+ const s = A(), [i, o] = D({
2283
2283
  loading: !1,
2284
2284
  registered: e.registered || !1
2285
2285
  });
2286
2286
  G(() => {
2287
- e.registered && o((y) => ({ ...y, registered: !0 }));
2287
+ e.registered && o((b) => ({ ...b, registered: !0 }));
2288
2288
  }, [e.registered]);
2289
2289
  const { startDate: c, dateHasPassed: m, pill: l, slug: f } = e, d = e.contentType;
2290
2290
  let p = "";
@@ -2301,7 +2301,7 @@ const Tn = {
2301
2301
  );
2302
2302
  if (d === "people")
2303
2303
  return /* @__PURE__ */ a.jsx(
2304
- q,
2304
+ B,
2305
2305
  {
2306
2306
  variant: "tertiary",
2307
2307
  size: "small",
@@ -2314,30 +2314,30 @@ const Tn = {
2314
2314
  );
2315
2315
  const h = ["microcourse", "event"];
2316
2316
  if (t && t.onClick && h.includes(d) && l !== "premium") {
2317
- const y = i.loading || i.registered, k = async (v) => {
2318
- if (v.preventDefault(), v.stopPropagation(), !(y || !t || !t.onClick)) {
2317
+ const b = i.loading || i.registered, k = async (y) => {
2318
+ if (y.preventDefault(), y.stopPropagation(), !(b || !t || !t.onClick)) {
2319
2319
  o((_) => ({ ..._, loading: !0 }));
2320
2320
  try {
2321
2321
  const _ = await t.onClick(e);
2322
- o(_ === "success" ? () => ({ registered: !0, loading: !1 }) : (b) => ({ ...b, loading: !1 }));
2322
+ o(_ === "success" ? () => ({ registered: !0, loading: !1 }) : (v) => ({ ...v, loading: !1 }));
2323
2323
  } catch {
2324
- o((b) => ({ ...b, loading: !1 }));
2324
+ o((v) => ({ ...v, loading: !1 }));
2325
2325
  }
2326
2326
  }
2327
2327
  };
2328
2328
  return /* @__PURE__ */ a.jsx(
2329
- q,
2329
+ B,
2330
2330
  {
2331
2331
  onClick: k,
2332
2332
  className: "gtm-trackable",
2333
2333
  size: "small",
2334
2334
  styling: { fullWidth: !0 },
2335
- disabled: y,
2335
+ disabled: b,
2336
2336
  "data-gtm-event-context": `${r}Page-${d}: ${f}`,
2337
2337
  "data-gtm-event-type": `${r}-${d}-register-click`,
2338
2338
  "data-testid": "in-card-button",
2339
2339
  children: s.formatMessage({
2340
- id: `card_cta_${d}${y ? `_${i.loading ? "loading" : "done"}` : ""}`
2340
+ id: `card_cta_${d}${b ? `_${i.loading ? "loading" : "done"}` : ""}`
2341
2341
  })
2342
2342
  }
2343
2343
  );
@@ -2366,13 +2366,13 @@ const Qr = {
2366
2366
  gtmContext: s = "Carousel",
2367
2367
  className: i = ""
2368
2368
  }) => {
2369
- const o = P(), c = ge(ke), m = c && typeof c.id == "string", [l, f] = D({
2369
+ const o = A(), c = ge(ke), m = c && typeof c.id == "string", [l, f] = D({
2370
2370
  data: null,
2371
2371
  isLoading: !0
2372
2372
  }), { data: d, isLoading: p } = l, h = Ln(() => {
2373
- n(t, m).then((F) => {
2374
- f(() => ({ data: F, isLoading: !1 }));
2375
- }).catch(() => f((F) => ({ ...F, isLoading: !1 })));
2373
+ n(t, m).then((L) => {
2374
+ f(() => ({ data: L, isLoading: !1 }));
2375
+ }).catch(() => f((L) => ({ ...L, isLoading: !1 })));
2376
2376
  }, [e]);
2377
2377
  if (G(() => {
2378
2378
  h();
@@ -2389,11 +2389,11 @@ const Qr = {
2389
2389
  if (!g || !it[g])
2390
2390
  return /* @__PURE__ */ a.jsx(_e, { element: "li", className: "card-wrapper" });
2391
2391
  const {
2392
- basePath: y = "",
2392
+ basePath: b = "",
2393
2393
  className: k,
2394
- length: v,
2394
+ length: y,
2395
2395
  gtmEvent: _
2396
- } = it[g], b = zn(`card_label_${g}`) ? o.formatMessage({ id: `card_label_${g}` }) : !1, j = d.slug ? `${y}${d.slug}` : !1, S = { ...Qr, ...v };
2396
+ } = it[g], v = zn(`card_label_${g}`) ? o.formatMessage({ id: `card_label_${g}` }) : !1, j = d.slug ? `${b}${d.slug}` : !1, $ = { ...Qr, ...y };
2397
2397
  let C = { className: "card" };
2398
2398
  j && (C = {
2399
2399
  href: j,
@@ -2402,7 +2402,7 @@ const Qr = {
2402
2402
  "data-gtm-event-type": `${_}-click`,
2403
2403
  "data-testid": "link"
2404
2404
  }, d.openInNewTab && (C.target = "_blank"));
2405
- const I = d.customIcon ? { "--custom-icon": Kr(d.customIcon) } : {};
2405
+ const Z = d.customIcon ? { "--custom-icon": Kr(d.customIcon) } : {};
2406
2406
  return /* @__PURE__ */ a.jsx(
2407
2407
  "li",
2408
2408
  {
@@ -2412,13 +2412,13 @@ const Qr = {
2412
2412
  "has-custom-icon": d.customIcon,
2413
2413
  "has-image": d.banner
2414
2414
  }),
2415
- style: I,
2415
+ style: Z,
2416
2416
  "data-testid": `${g}-card`,
2417
- children: A.createElement(
2417
+ children: F.createElement(
2418
2418
  j ? "a" : "div",
2419
2419
  C,
2420
2420
  /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2421
- (d.customLabel || b) && /* @__PURE__ */ a.jsx("small", { className: w("card-label text-small", k), children: d.customLabel || b }),
2421
+ (d.customLabel || v) && /* @__PURE__ */ a.jsx("small", { className: w("card-label text-small", k), children: d.customLabel || v }),
2422
2422
  d.startDate && !d.isOngoingEvent && /* @__PURE__ */ a.jsx(
2423
2423
  st,
2424
2424
  {
@@ -2451,14 +2451,14 @@ const Qr = {
2451
2451
  "data-testid": "contributors"
2452
2452
  }
2453
2453
  ),
2454
- d.partner && /* @__PURE__ */ a.jsx("p", { className: "partners", "data-testid": "partners", children: Ne(d.partner.title, S.partner) }),
2454
+ d.partner && /* @__PURE__ */ a.jsx("p", { className: "partners", "data-testid": "partners", children: Ne(d.partner.title, $.partner) }),
2455
2455
  /* Text */
2456
- ["title", "text", "secondaryText"].map((F) => {
2457
- const M = d[F];
2458
- if (!M)
2456
+ ["title", "text", "secondaryText"].map((L) => {
2457
+ const S = d[L];
2458
+ if (!S)
2459
2459
  return null;
2460
- const T = ur(F);
2461
- return /* @__PURE__ */ a.jsx("p", { className: T, "data-testid": T, children: Ne(M, S[F]) }, F);
2460
+ const M = ur(L);
2461
+ return /* @__PURE__ */ a.jsx("p", { className: M, "data-testid": M, children: Ne(S, $[L]) }, L);
2462
2462
  }),
2463
2463
  /* @__PURE__ */ a.jsx(Yr, { type: k || "", data: d }),
2464
2464
  /* @__PURE__ */ a.jsx(Gr, { data: d, cta: r, link: j || "", gtmContext: s })
@@ -2482,11 +2482,11 @@ const Jr = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__
2482
2482
  const s = t * n <= e, i = e < t * (n + 1), o = r.includes(Math.floor(e / t));
2483
2483
  return s && i || o;
2484
2484
  }, es = ({ id: e, title: t }) => {
2485
- const n = P();
2485
+ const n = A();
2486
2486
  if (!t || !t.text)
2487
2487
  return null;
2488
2488
  const { text: r, element: s = "h2", variant: i = "default", size: o = "medium", link: c } = t;
2489
- return A.createElement(s, {
2489
+ return F.createElement(s, {
2490
2490
  className: w("title", i, o, {
2491
2491
  "highlighted-title": i === "highlighted"
2492
2492
  }),
@@ -2520,50 +2520,50 @@ const ts = ({
2520
2520
  className: i,
2521
2521
  gtmContext: o
2522
2522
  }) => {
2523
- var F;
2524
- const c = P(), [m, l] = D({
2523
+ var L;
2524
+ const c = A(), [m, l] = D({
2525
2525
  cardsPerPage: 4,
2526
2526
  isLoading: !0
2527
2527
  }), { cardsPerPage: f, isLoading: d } = m, [p, h] = D({
2528
2528
  currentPage: 0,
2529
2529
  loadedPages: [0]
2530
- }), { currentPage: g, loadedPages: y } = p, k = t.length, v = Math.ceil(k / f), _ = te(null), b = He(!0, !0, _ == null ? void 0 : _.current);
2530
+ }), { currentPage: g, loadedPages: b } = p, k = t.length, y = Math.ceil(k / f), _ = ne(null), v = He(!0, !0, _ == null ? void 0 : _.current);
2531
2531
  G(() => {
2532
- let M = 1;
2533
- b && (b >= Nt.fourCards ? M = 4 : b >= Nt.threeCards ? M = 3 : b >= Nt.twoCards && (M = 2), M > k && (M = k)), l((T) => ({
2534
- ...T,
2535
- cardsPerPage: M,
2532
+ let S = 1;
2533
+ v && (v >= Nt.fourCards ? S = 4 : v >= Nt.threeCards ? S = 3 : v >= Nt.twoCards && (S = 2), S > k && (S = k)), l((M) => ({
2534
+ ...M,
2535
+ cardsPerPage: S,
2536
2536
  isLoading: !1
2537
2537
  }));
2538
- }, [b, k]);
2539
- const j = (M = "next") => {
2540
- let T = g;
2541
- if (typeof M == "string")
2542
- if (M === "next")
2543
- if (g < v - 1)
2544
- T = g + 1;
2538
+ }, [v, k]);
2539
+ const j = (S = "next") => {
2540
+ let M = g;
2541
+ if (typeof S == "string")
2542
+ if (S === "next")
2543
+ if (g < y - 1)
2544
+ M = g + 1;
2545
2545
  else
2546
2546
  return;
2547
2547
  else if (g > 0)
2548
- T = g - 1;
2548
+ M = g - 1;
2549
2549
  else
2550
2550
  return;
2551
2551
  else
2552
- T = M;
2552
+ M = S;
2553
2553
  h((E) => ({
2554
2554
  ...E,
2555
- currentPage: T,
2556
- loadedPages: [.../* @__PURE__ */ new Set([...y, T])]
2555
+ currentPage: M,
2556
+ loadedPages: [.../* @__PURE__ */ new Set([...b, M])]
2557
2557
  }));
2558
- }, S = (M) => {
2559
- Ge = M.touches[0].clientX;
2560
- }, C = (M) => {
2558
+ }, $ = (S) => {
2559
+ Ge = S.touches[0].clientX;
2560
+ }, C = (S) => {
2561
2561
  if (Ge === null)
2562
2562
  return;
2563
- const T = M.touches[0].clientX, E = Ge - T;
2563
+ const M = S.touches[0].clientX, E = Ge - M;
2564
2564
  E > 5 ? j("next") : E < -5 && j("previous"), Ge = null;
2565
- }, I = {
2566
- "--width": `${((F = _ == null ? void 0 : _.current) == null ? void 0 : F.offsetWidth) || 0}px`,
2565
+ }, Z = {
2566
+ "--width": `${((L = _ == null ? void 0 : _.current) == null ? void 0 : L.offsetWidth) || 0}px`,
2567
2567
  "--total-cards": k,
2568
2568
  "--cards-per-page": f,
2569
2569
  "--page": g
@@ -2580,22 +2580,22 @@ const ts = ({
2580
2580
  "ul",
2581
2581
  {
2582
2582
  className: "carousel",
2583
- onTouchStart: S,
2583
+ onTouchStart: $,
2584
2584
  onTouchMove: C,
2585
- style: I,
2585
+ style: Z,
2586
2586
  "data-testid": "carousel-list",
2587
- children: t.map((M, T) => {
2588
- let E = M && M.sys && M.sys.id ? `${e}-card-${M.sys.id}` : null;
2589
- return E && Xr(T, f, g, y) ? /* @__PURE__ */ a.jsx(
2587
+ children: t.map((S, M) => {
2588
+ let E = S && S.sys && S.sys.id ? `${e}-card-${S.sys.id}` : null;
2589
+ return E && Xr(M, f, g, b) ? /* @__PURE__ */ a.jsx(
2590
2590
  ea,
2591
2591
  {
2592
2592
  id: E,
2593
- card: { ...M, contentType: n[T] },
2593
+ card: { ...S, contentType: n[M] },
2594
2594
  buildCardData: r,
2595
2595
  gtmContext: o
2596
2596
  },
2597
2597
  E
2598
- ) : (E = E || `${e}-card-${T}`, /* @__PURE__ */ a.jsx(
2598
+ ) : (E = E || `${e}-card-${M}`, /* @__PURE__ */ a.jsx(
2599
2599
  _e,
2600
2600
  {
2601
2601
  element: "li",
@@ -2607,15 +2607,15 @@ const ts = ({
2607
2607
  })
2608
2608
  }
2609
2609
  ),
2610
- v <= 1 ? null : /* @__PURE__ */ a.jsxs("ul", { className: "controls", "data-testid": "carousel-controls", children: [
2610
+ y <= 1 ? null : /* @__PURE__ */ a.jsxs("ul", { className: "controls", "data-testid": "carousel-controls", children: [
2611
2611
  /* @__PURE__ */ a.jsx("li", { className: "arrow previous", children: /* @__PURE__ */ a.jsx(
2612
- q,
2612
+ B,
2613
2613
  {
2614
2614
  variant: "secondary",
2615
2615
  size: "large",
2616
2616
  icon: { icon: "chevron_left" },
2617
- onClick: (M) => {
2618
- M.preventDefault(), M.stopPropagation(), j("previous");
2617
+ onClick: (S) => {
2618
+ S.preventDefault(), S.stopPropagation(), j("previous");
2619
2619
  },
2620
2620
  screenreaderText: c.formatMessage({
2621
2621
  id: "carousel_pagination_previous"
@@ -2623,32 +2623,32 @@ const ts = ({
2623
2623
  disabled: g <= 0
2624
2624
  }
2625
2625
  ) }),
2626
- [...Array(v)].map((M, T) => /* @__PURE__ */ a.jsx("li", { "data-testid": "carousel-controls-button", children: /* @__PURE__ */ a.jsx(
2626
+ [...Array(y)].map((S, M) => /* @__PURE__ */ a.jsx("li", { "data-testid": "carousel-controls-button", children: /* @__PURE__ */ a.jsx(
2627
2627
  "button",
2628
2628
  {
2629
2629
  className: w("page-indicator", {
2630
- selected: T === g
2630
+ selected: M === g
2631
2631
  }),
2632
2632
  onClick: (E) => {
2633
- E.preventDefault(), E.stopPropagation(), j(T);
2633
+ E.preventDefault(), E.stopPropagation(), j(M);
2634
2634
  },
2635
2635
  children: /* @__PURE__ */ a.jsx(ae, { showOnFocus: !1, children: c.formatMessage(
2636
2636
  { id: "carousel_pagination_page" },
2637
- { number: T + 1, total: v }
2637
+ { number: M + 1, total: y }
2638
2638
  ) })
2639
2639
  }
2640
- ) }, `page-indicator-${T}`)),
2640
+ ) }, `page-indicator-${M}`)),
2641
2641
  /* @__PURE__ */ a.jsx("li", { className: "arrow next", children: /* @__PURE__ */ a.jsx(
2642
- q,
2642
+ B,
2643
2643
  {
2644
2644
  variant: "secondary",
2645
2645
  size: "large",
2646
2646
  icon: { icon: "chevron_right" },
2647
- onClick: (M) => {
2648
- M.preventDefault(), M.stopPropagation(), j("next");
2647
+ onClick: (S) => {
2648
+ S.preventDefault(), S.stopPropagation(), j("next");
2649
2649
  },
2650
2650
  screenreaderText: c.formatMessage({ id: "carousel_pagination_next" }),
2651
- disabled: g >= v - 1
2651
+ disabled: g >= y - 1
2652
2652
  }
2653
2653
  ) })
2654
2654
  ] })
@@ -2690,13 +2690,13 @@ const ts = ({
2690
2690
  const Pt = "joinCommunityButton", ta = ({ isMember: e = !1, isShort: t = !1, functions: { join: n, leave: r } = { join: () => {
2691
2691
  }, leave: () => {
2692
2692
  } } }) => {
2693
- const s = P(), i = ge(ke), o = i && typeof i.id == "string", [c, m] = D(e), [l, f] = D(e ? "joined" : "notJoined");
2693
+ const s = A(), i = ge(ke), o = i && typeof i.id == "string", [c, m] = D(e), [l, f] = D(e ? "joined" : "notJoined");
2694
2694
  G(() => {
2695
2695
  l === "joining" ? f("joined") : l === "leaving" && f("notJoined");
2696
2696
  }, [c]);
2697
2697
  const d = {}, p = {};
2698
2698
  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(
2699
- q,
2699
+ B,
2700
2700
  {
2701
2701
  variant: c ? "secondary" : "primary",
2702
2702
  size: "medium",
@@ -2719,7 +2719,7 @@ const At = "communityDetails_", Di = ({
2719
2719
  members: { number: r = 0, data: s = [] } = { number: 0, data: [] },
2720
2720
  functions: { invite: i, ...o }
2721
2721
  }) => {
2722
- const c = P(), m = 5, l = r || s.length, f = s.length ? s : Array(m).fill({}), d = `/communities/${n}/members` === window.location.pathname;
2722
+ const c = A(), m = 5, l = r || s.length, f = s.length ? s : Array(m).fill({}), d = `/communities/${n}/members` === window.location.pathname;
2723
2723
  return /* @__PURE__ */ a.jsxs("div", { className: w("community-details", e), children: [
2724
2724
  /* @__PURE__ */ a.jsx(Te, {}),
2725
2725
  /* @__PURE__ */ a.jsxs("div", { className: "member-details", children: [
@@ -2748,7 +2748,7 @@ const At = "communityDetails_", Di = ({
2748
2748
  ] }),
2749
2749
  /* @__PURE__ */ a.jsx(ta, { isMember: t, functions: { ...o } }),
2750
2750
  t && /* @__PURE__ */ a.jsx(
2751
- q,
2751
+ B,
2752
2752
  {
2753
2753
  variant: "primary",
2754
2754
  onClick: i,
@@ -2764,7 +2764,7 @@ const Li = ({
2764
2764
  cutoff: t = 20,
2765
2765
  className: n = ""
2766
2766
  }) => {
2767
- const r = P();
2767
+ const r = A();
2768
2768
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2769
2769
  /* @__PURE__ */ a.jsx(ae, { element: "p", children: r.formatMessage({ id: "breadcrumbs_label" }) }),
2770
2770
  /* @__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: [
@@ -2781,7 +2781,7 @@ const Ri = ({
2781
2781
  },
2782
2782
  className: s = ""
2783
2783
  }) => {
2784
- const i = P(), o = t ? [{ id: "all", text: typeof t != "boolean" && t.text || i.formatMessage({ id: "filters_all" }) }, ...e] : e, [c, m] = D(t ? ["all"] : []), l = (f, d) => {
2784
+ const i = A(), o = t ? [{ id: "all", text: typeof t != "boolean" && t.text || i.formatMessage({ id: "filters_all" }) }, ...e] : e, [c, m] = D(t ? ["all"] : []), l = (f, d) => {
2785
2785
  let p = [];
2786
2786
  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();
2787
2787
  };
@@ -2792,8 +2792,8 @@ const Ri = ({
2792
2792
  "button",
2793
2793
  {
2794
2794
  className: w(f, { selected: c.includes(f) }),
2795
- onClick: (y) => {
2796
- y.preventDefault(), y.stopPropagation(), l(f, h);
2795
+ onClick: (b) => {
2796
+ b.preventDefault(), b.stopPropagation(), l(f, h);
2797
2797
  },
2798
2798
  ...g,
2799
2799
  children: d
@@ -2821,26 +2821,26 @@ const Ft = { en: "English", es: "Español", fr: "Français", pt: "Português" },
2821
2821
  label: c,
2822
2822
  className: m = ""
2823
2823
  }) => {
2824
- const l = P(), [f, d] = D(e);
2824
+ const l = A(), [f, d] = D(e);
2825
2825
  if (G(() => {
2826
2826
  e !== f && d(e);
2827
- }, [e]), !r || !Object.values(r).some((y) => y && y.post_name))
2827
+ }, [e]), !r || !Object.values(r).some((b) => b && b.post_name))
2828
2828
  return null;
2829
2829
  const h = Object.keys(r), g = f !== e;
2830
2830
  return /* @__PURE__ */ a.jsxs("div", { className: w("language-switcher text-small", o, m), children: [
2831
2831
  /* @__PURE__ */ a.jsxs("nav", { children: [
2832
2832
  o !== "short" && /* @__PURE__ */ a.jsx("p", { children: c || l.formatMessage({ id: `${Ke}label` }) }),
2833
- /* @__PURE__ */ a.jsx("ul", { children: h.map((y) => {
2834
- if (!Ft[y])
2833
+ /* @__PURE__ */ a.jsx("ul", { children: h.map((b) => {
2834
+ if (!Ft[b])
2835
2835
  return null;
2836
- let k = { className: y };
2837
- return f === y ? k["aria-label"] = l.formatMessage({ id: `${Ke}selected` }, { language: Ft[y] }) : k = {
2836
+ let k = { className: b };
2837
+ return f === b ? k["aria-label"] = l.formatMessage({ id: `${Ke}selected` }, { language: Ft[b] }) : k = {
2838
2838
  ...k,
2839
- href: ns(y, i),
2840
- onClick: (v) => {
2841
- v.preventDefault(), v.stopPropagation(), d(y), s(y);
2839
+ href: ns(b, i),
2840
+ onClick: (y) => {
2841
+ y.preventDefault(), y.stopPropagation(), d(b), s(b);
2842
2842
  }
2843
- }, /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(gt, { ...k, fallbackElement: "span", children: Ft[y] }) }, y);
2843
+ }, /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(gt, { ...k, fallbackElement: "span", children: Ft[b] }) }, b);
2844
2844
  }) }),
2845
2845
  o !== "short" && !g && /* @__PURE__ */ a.jsx("p", { children: l.formatMessage({ id: `${Ke}translation_${t ? "original" : n ? "human" : "machine"}` }) })
2846
2846
  ] }),
@@ -2850,9 +2850,9 @@ const Ft = { en: "English", es: "Español", fr: "Français", pt: "Português" },
2850
2850
  // `values` are throwing a type error: https://github.com/formatjs/formatjs/issues/3633
2851
2851
  children: l.formatMessage({ id: `${Ke}disclaimer` }, {
2852
2852
  email: Be.support,
2853
- link: (y) => {
2854
- const k = `mailto:${y}`;
2855
- return /* @__PURE__ */ a.jsx("a", { href: k, children: y });
2853
+ link: (b) => {
2854
+ const k = `mailto:${b}`;
2855
+ return /* @__PURE__ */ a.jsx("a", { href: k, children: b });
2856
2856
  }
2857
2857
  })
2858
2858
  })
@@ -2879,7 +2879,7 @@ const Dt = Ua({ locale: "en", messages: Qt }), yt = ({
2879
2879
  }
2880
2880
  };
2881
2881
  return /* @__PURE__ */ a.jsx("footer", { className: w("load-more", s), children: !o && e ? /* @__PURE__ */ a.jsx(
2882
- q,
2882
+ B,
2883
2883
  {
2884
2884
  variant: "secondary",
2885
2885
  icon: n,
@@ -2895,17 +2895,17 @@ const Dt = Ua({ locale: "en", messages: Qt }), yt = ({
2895
2895
  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" }) }) }) });
2896
2896
  let Qe = !1;
2897
2897
  const as = ({ element: e = "div", id: t = "more-menu", options: n, className: r = "" }) => {
2898
- const s = P(), i = te(null), [o, c] = D(!1), m = (l) => {
2898
+ const s = A(), i = ne(null), [o, c] = D(!1), m = (l) => {
2899
2899
  i.current && l.target instanceof HTMLElement && !i.current.contains(l.target) && c(!1);
2900
2900
  };
2901
2901
  return G(() => (document.addEventListener("click", m, !0), () => {
2902
2902
  document.removeEventListener("click", m, !0);
2903
- })), A.createElement(e, {
2903
+ })), F.createElement(e, {
2904
2904
  ref: i,
2905
2905
  className: w("more-menu text-medium", r),
2906
2906
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2907
2907
  /* @__PURE__ */ a.jsx(
2908
- q,
2908
+ B,
2909
2909
  {
2910
2910
  variant: "tertiary",
2911
2911
  size: "medium",
@@ -2918,7 +2918,7 @@ const as = ({ element: e = "div", id: t = "more-menu", options: n, className: r
2918
2918
  }
2919
2919
  ),
2920
2920
  /* @__PURE__ */ a.jsx("ul", { id: t, hidden: !o, children: n.map(({ href: l, onClick: f, text: d, icon: p, ...h }, g) => {
2921
- const y = {
2921
+ const b = {
2922
2922
  ...h,
2923
2923
  onClick: (k) => {
2924
2924
  c(!1), typeof f == "function" && f(k);
@@ -2932,13 +2932,13 @@ const as = ({ element: e = "div", id: t = "more-menu", options: n, className: r
2932
2932
  }, 100);
2933
2933
  }
2934
2934
  };
2935
- return l && (y.href = l), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
2936
- q,
2935
+ return l && (b.href = l), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
2936
+ B,
2937
2937
  {
2938
2938
  variant: "tertiary",
2939
2939
  size: "medium",
2940
2940
  icon: p ? { icon: p, position: "left" } : !1,
2941
- ...y,
2941
+ ...b,
2942
2942
  children: d
2943
2943
  }
2944
2944
  ) }, `${window.btoa(d)}_${g}`);
@@ -2964,7 +2964,7 @@ const ss = [
2964
2964
  href: "/solution-articles/"
2965
2965
  }
2966
2966
  ], is = ({ activeLink: e }) => {
2967
- const t = P(), n = ge(ke), r = n && typeof n.id == "string";
2967
+ const t = A(), n = ge(ke), r = n && typeof n.id == "string";
2968
2968
  return /* @__PURE__ */ a.jsxs("ul", { id: "navigation-menu", className: "text-medium", children: [
2969
2969
  ss.map(({ key: s, href: i }) => /* @__PURE__ */ a.jsx(
2970
2970
  "li",
@@ -3055,15 +3055,15 @@ const cs = "shareLinks_", Oi = ({
3055
3055
  variant: i = "default",
3056
3056
  className: o = ""
3057
3057
  }) => {
3058
- const c = P(), m = os({ title: e, link: t, referrer: n });
3058
+ const c = A(), m = os({ title: e, link: t, referrer: n });
3059
3059
  return /* @__PURE__ */ a.jsxs("aside", { className: w("share-links", s, i, o), children: [
3060
3060
  /* @__PURE__ */ a.jsx("p", { className: "text-small", children: c.formatMessage({ id: "shareLinks_label" }) }),
3061
3061
  /* @__PURE__ */ a.jsx("ul", { children: m.map(({ key: l, icon: f, url: d, shouldRender: p = !0, onClick: h }) => {
3062
3062
  if (typeof p == "function" && !p())
3063
3063
  return null;
3064
3064
  const g = {};
3065
- return h && (g.onClick = (y) => h(y, d)), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
3066
- q,
3065
+ return h && (g.onClick = (b) => h(b, d)), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
3066
+ B,
3067
3067
  {
3068
3068
  size: s,
3069
3069
  variant: "tertiary",
@@ -3101,8 +3101,8 @@ const Bi = ({ tabs: e, className: t = "" }) => {
3101
3101
  ), o = [], c = [];
3102
3102
  return e.forEach(({ id: l, text: f, content: d, href: p }, h) => {
3103
3103
  l = n(l, f, h);
3104
- const g = s === l, y = {};
3105
- p || (y["aria-controls"] = l, y.onClick = (k) => {
3104
+ const g = s === l, b = {};
3105
+ p || (b["aria-controls"] = l, b.onClick = (k) => {
3106
3106
  k.preventDefault(), k.stopPropagation(), i(l), window.location.hash = `#${l}`;
3107
3107
  }, c.push(
3108
3108
  /* @__PURE__ */ a.jsx(
@@ -3126,7 +3126,7 @@ const Bi = ({ tabs: e, className: t = "" }) => {
3126
3126
  className: w({ selected: g }),
3127
3127
  role: "tab",
3128
3128
  "aria-selected": g,
3129
- ...y,
3129
+ ...b,
3130
3130
  children: f
3131
3131
  }
3132
3132
  ) }, `tab-${l}`)
@@ -3147,13 +3147,13 @@ const ls = {
3147
3147
  }) => {
3148
3148
  const s = He(!0);
3149
3149
  let i = r;
3150
- 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) });
3150
+ return F.Children.count(r) === 1 && (i = F.Children.toArray(r)[0], i.props && (i = i.props.children)), /* @__PURE__ */ a.jsx("section", { className: w("columns", `layout-${e}`, n), children: F.Children.map(i, (o, c) => t !== !1 && c === t && s && s < ls[e] ? null : o) });
3151
3151
  }, Zi = ({ activeLink: e, ...t }) => /* @__PURE__ */ a.jsx(_t, { children: /* @__PURE__ */ a.jsx(ds, { layout: "1-3", children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3152
3152
  /* @__PURE__ */ a.jsx(is, { activeLink: e }),
3153
3153
  /* @__PURE__ */ a.jsx(qr, { ...t })
3154
3154
  ] }) }) });
3155
3155
  const Lt = "cookieBanner_", Rt = ["apol-cookie-banner", "apolitical-performance-cookie-consent", "functional-cookie-consent"], It = new Date(Date.now() + 12 * 30 * 24 * 60 * 60 * 1e3), us = () => {
3156
- const e = P(), [t, n, r] = Ka(Rt), [s, i] = D(!t["apol-cookie-banner"]), o = () => {
3156
+ const e = A(), [t, n, r] = Ka(Rt), [s, i] = D(!t["apol-cookie-banner"]), o = () => {
3157
3157
  Rt.forEach((f) => {
3158
3158
  n(f, !0, {
3159
3159
  path: "/",
@@ -3366,10 +3366,10 @@ const Me = "footer_", ot = "SiteFooter", En = ({ group: e }) => {
3366
3366
  ] })
3367
3367
  ] }) });
3368
3368
  const Je = "emailHelperTextBox_", qi = ({ type: e, email: t, redirectPath: n, resendVerificationCode: r }) => {
3369
- const s = P(), [i, o] = D({ path: `${Je}default`, type: "default", link: {}, mail: {}, error: "" }), [c, m] = D(!1), l = Ln(
3369
+ const s = A(), [i, o] = D({ path: `${Je}default`, type: "default", link: {}, mail: {}, error: "" }), [c, m] = D(!1), l = Ln(
3370
3370
  (h) => {
3371
3371
  h.preventDefault(), h.stopPropagation();
3372
- const g = (y) => {
3372
+ const g = (b) => {
3373
3373
  o({
3374
3374
  path: `${Je}error_verificationFailedToSend`,
3375
3375
  type: "error",
@@ -3387,7 +3387,7 @@ const Je = "emailHelperTextBox_", qi = ({ type: e, email: t, redirectPath: n, re
3387
3387
  "data-gtm-event-context": "ErrorVerifyingBox",
3388
3388
  "data-gtm-event-type": "email-concierge-click"
3389
3389
  },
3390
- error: y
3390
+ error: b
3391
3391
  });
3392
3392
  };
3393
3393
  if (typeof r != "function") {
@@ -3396,8 +3396,8 @@ const Je = "emailHelperTextBox_", qi = ({ type: e, email: t, redirectPath: n, re
3396
3396
  }
3397
3397
  m(!0), r(t).then(() => {
3398
3398
  localStorage.setItem("email", t), window.location.href = n || "/signup/verify-email";
3399
- }).catch((y) => {
3400
- g(y.message);
3399
+ }).catch((b) => {
3400
+ g(b.message);
3401
3401
  }).finally(() => {
3402
3402
  m(!1);
3403
3403
  });
@@ -3407,13 +3407,13 @@ const Je = "emailHelperTextBox_", qi = ({ type: e, email: t, redirectPath: n, re
3407
3407
  );
3408
3408
  G(
3409
3409
  () => {
3410
- let h = Je, g = "default", y = {}, k = {};
3410
+ let h = Je, g = "default", b = {}, k = {};
3411
3411
  switch (e) {
3412
3412
  case "gov":
3413
3413
  h += "autoApproved", g = "success";
3414
3414
  break;
3415
3415
  case "nonGov":
3416
- h += "unrecognisedEmail", g = "error", y = {
3416
+ h += "unrecognisedEmail", g = "error", b = {
3417
3417
  href: "https://about.apolitical.co/who-can-join-the-community",
3418
3418
  "data-gtm-event-context": "NonGovEmailHelperTextBox",
3419
3419
  "data-gtm-event-type": "LearnMoreClick"
@@ -3428,17 +3428,17 @@ const Je = "emailHelperTextBox_", qi = ({ type: e, email: t, redirectPath: n, re
3428
3428
  };
3429
3429
  break;
3430
3430
  case "verify":
3431
- h += "emailUnverified", g = "error", y = {
3431
+ h += "emailUnverified", g = "error", b = {
3432
3432
  href: "#",
3433
3433
  "data-gtm-event-context": "VerifyEmailBox",
3434
3434
  "data-gtm-event-type": "SendEmailClick",
3435
3435
  className: "gtm-trackable",
3436
- onClick: (v) => l(v),
3436
+ onClick: (y) => l(y),
3437
3437
  "data-testid": "send-verify-email-click"
3438
3438
  };
3439
3439
  break;
3440
3440
  case "exists":
3441
- h += "emailAlreadyExists", g = "error", y = {
3441
+ h += "emailAlreadyExists", g = "error", b = {
3442
3442
  href: "/user-onboarding/login",
3443
3443
  "data-gtm-event-context": "EmailExistsBox",
3444
3444
  "data-gtm-event-type": "login-click"
@@ -3450,14 +3450,14 @@ const Je = "emailHelperTextBox_", qi = ({ type: e, email: t, redirectPath: n, re
3450
3450
  };
3451
3451
  break;
3452
3452
  default:
3453
- h += "default", y = {
3453
+ h += "default", b = {
3454
3454
  href: "https://about.apolitical.co/who-can-join-the-community",
3455
3455
  "data-gtm-event-context": "DefaultEmailHelperTextBox",
3456
3456
  "data-gtm-event-type": "LearnMoreClick"
3457
3457
  };
3458
3458
  break;
3459
3459
  }
3460
- o({ ...i, path: h, type: g, link: y, mail: k });
3460
+ o({ ...i, path: h, type: g, link: b, mail: k });
3461
3461
  },
3462
3462
  /* eslint-disable react-hooks/exhaustive-deps */
3463
3463
  [e]
@@ -3492,7 +3492,7 @@ const Xe = "passwordRules_", ra = "isMoreThanEightCharacters", sa = "includesNum
3492
3492
  [sa]: "numberSymbol",
3493
3493
  [ia]: "lowercaseUppercase"
3494
3494
  }, fs = ({ matchingRules: e = { isMoreThanEightCharacters: !1, includesNumberAndSymbol: !1, includesLowerAndUppercase: !1 }, className: t = "" }) => {
3495
- const n = P();
3495
+ const n = A();
3496
3496
  return /* @__PURE__ */ a.jsxs("aside", { className: w("password-rules", t), children: [
3497
3497
  /* @__PURE__ */ a.jsx("small", { children: n.formatMessage({ id: `${Xe}intro` }) }),
3498
3498
  /* @__PURE__ */ a.jsx("ul", { children: [ra, sa, ia].map((r) => /* @__PURE__ */ a.jsxs("li", { className: w({ matches: e[r] }), children: [
@@ -3518,40 +3518,40 @@ const Ui = ({
3518
3518
  className: i = "",
3519
3519
  hasLoaded: o = !1
3520
3520
  }) => {
3521
- const c = P(), [m, l] = D({ setUp: !1, id: null, rating: null, disabled: !0 }), f = async () => {
3521
+ const c = A(), [m, l] = D({ setUp: !1, id: null, rating: null, disabled: !0 }), f = async () => {
3522
3522
  try {
3523
- const v = await n();
3524
- l((_) => ({ ..._, setUp: !0, id: v && v.id, disabled: !1 }));
3525
- } catch (v) {
3526
- l((_) => ({ ..._, setUp: !0, disabled: !0 })), s(v);
3523
+ const y = await n();
3524
+ l((_) => ({ ..._, setUp: !0, id: y && y.id, disabled: !1 }));
3525
+ } catch (y) {
3526
+ l((_) => ({ ..._, setUp: !0, disabled: !0 })), s(y);
3527
3527
  }
3528
3528
  };
3529
3529
  if (G(() => {
3530
3530
  o && !m.setUp && f();
3531
3531
  }, [o]), !o)
3532
3532
  return /* @__PURE__ */ a.jsx(_e, { className: "rating-placeholder" });
3533
- const { id: d, rating: p, disabled: h } = m, g = "ratings_", y = {
3533
+ const { id: d, rating: p, disabled: h } = m, g = "ratings_", b = {
3534
3534
  text: c.formatMessage({ id: `${g}text` }),
3535
3535
  low: c.formatMessage({ id: `${g}low` }),
3536
3536
  high: c.formatMessage({ id: `${g}high` }),
3537
3537
  success: c.formatMessage({ id: `${g}success` }),
3538
3538
  ...e
3539
- }, k = async (v) => {
3539
+ }, k = async (y) => {
3540
3540
  if (!(!d || h))
3541
3541
  try {
3542
- l((_) => ({ ..._, rating: v, disabled: !0 })), await r({ id: d, value: v });
3542
+ l((_) => ({ ..._, rating: y, disabled: !0 })), await r({ id: d, value: y });
3543
3543
  } catch (_) {
3544
- l((b) => ({ ...b, rating: null })), s(_);
3544
+ l((v) => ({ ...v, rating: null })), s(_);
3545
3545
  } finally {
3546
3546
  l((_) => ({ ..._, disabled: !1 }));
3547
3547
  }
3548
3548
  };
3549
3549
  return /* @__PURE__ */ a.jsxs("div", { className: w("rating", i), children: [
3550
- /* @__PURE__ */ a.jsx("span", { className: "label", children: y[p ? "success" : "text"] }),
3551
- /* @__PURE__ */ a.jsx("ol", { children: Array.from(new Array(t).keys()).map((v) => {
3552
- const _ = v + 1;
3550
+ /* @__PURE__ */ a.jsx("span", { className: "label", children: b[p ? "success" : "text"] }),
3551
+ /* @__PURE__ */ a.jsx("ol", { children: Array.from(new Array(t).keys()).map((y) => {
3552
+ const _ = y + 1;
3553
3553
  return /* @__PURE__ */ a.jsx("li", { className: w({ selected: p && _ <= p }), children: /* @__PURE__ */ a.jsx(
3554
- q,
3554
+ B,
3555
3555
  {
3556
3556
  variant: "tertiary",
3557
3557
  size: "small",
@@ -3559,9 +3559,9 @@ const Ui = ({
3559
3559
  screenreaderText: `${c.formatMessage(
3560
3560
  { id: `${g}stars` },
3561
3561
  { number: _, total: t }
3562
- )}${_ === 1 || _ === t ? ` - ${y[_ === 1 ? "low" : "high"]}` : ""}`,
3563
- onClick: (b) => {
3564
- b.preventDefault(), b.stopPropagation(), k(_);
3562
+ )}${_ === 1 || _ === t ? ` - ${b[_ === 1 ? "low" : "high"]}` : ""}`,
3563
+ onClick: (v) => {
3564
+ v.preventDefault(), v.stopPropagation(), k(_);
3565
3565
  },
3566
3566
  disabled: h
3567
3567
  }
@@ -3577,7 +3577,7 @@ const ps = ({
3577
3577
  gtmContext: s = "search-bar",
3578
3578
  gtmEvent: i = "form-submission"
3579
3579
  }) => {
3580
- const { searchIsOpen: o = !0, isDesktopVersion: c = !1 } = n || {}, m = P(), l = te(null);
3580
+ const { searchIsOpen: o = !0, isDesktopVersion: c = !1 } = n || {}, m = A(), l = ne(null);
3581
3581
  Pe(() => {
3582
3582
  !n || c || !o || l.current && l.current.focus();
3583
3583
  }, [o]);
@@ -3635,26 +3635,26 @@ const hs = ({
3635
3635
  initialFormStatus: l = "NOT_SUBMITTED"
3636
3636
  /* NOT_SUBMITTED */
3637
3637
  }) => {
3638
- const [f, d] = D([]), [p, h] = D(!0), [g, y] = D(l), { formatMessage: k } = P(), v = async (j) => {
3638
+ const [f, d] = D([]), [p, h] = D(!0), [g, b] = D(l), { formatMessage: k } = A(), y = async (j) => {
3639
3639
  j.preventDefault();
3640
3640
  try {
3641
- await m(f), d([]), y(
3641
+ await m(f), d([]), b(
3642
3642
  "SUCCESS"
3643
3643
  /* SUCCESS */
3644
3644
  );
3645
- } catch (S) {
3646
- y(
3645
+ } catch ($) {
3646
+ b(
3647
3647
  "ERROR"
3648
3648
  /* ERROR */
3649
- ), c(S);
3649
+ ), c($);
3650
3650
  }
3651
3651
  }, _ = (j) => {
3652
- j.preventDefault(), y(
3652
+ j.preventDefault(), b(
3653
3653
  "NOT_SUBMITTED"
3654
3654
  /* NOT_SUBMITTED */
3655
3655
  ), h(!0), d([]);
3656
- }, b = (j) => {
3657
- j.preventDefault(), o(), y(
3656
+ }, v = (j) => {
3657
+ j.preventDefault(), o(), b(
3658
3658
  "CLOSED"
3659
3659
  /* CLOSED */
3660
3660
  );
@@ -3666,14 +3666,14 @@ const hs = ({
3666
3666
  ] }) }),
3667
3667
  /* @__PURE__ */ a.jsx(Te, {}),
3668
3668
  /* @__PURE__ */ a.jsx("div", { className: "footer", children: g === "SUCCESS" ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3669
- /* @__PURE__ */ a.jsx(q, { variant: "secondary", onClick: _, children: k({ id: "inviteForm_ctaSendMoreInvites" }) }),
3670
- /* @__PURE__ */ a.jsx(q, { onClick: b, children: k({ id: "inviteForm_ctaDone" }) })
3671
- ] }) : /* @__PURE__ */ a.jsx(q, { onClick: _, children: k({ id: "inviteForm_ctaTryAgain" }) }) })
3669
+ /* @__PURE__ */ a.jsx(B, { variant: "secondary", onClick: _, children: k({ id: "inviteForm_ctaSendMoreInvites" }) }),
3670
+ /* @__PURE__ */ a.jsx(B, { onClick: v, children: k({ id: "inviteForm_ctaDone" }) })
3671
+ ] }) : /* @__PURE__ */ a.jsx(B, { onClick: _, children: k({ id: "inviteForm_ctaTryAgain" }) }) })
3672
3672
  ] }) : /* @__PURE__ */ a.jsx("div", { className: "invite-form-wrapper", children: /* @__PURE__ */ a.jsxs(
3673
3673
  "form",
3674
3674
  {
3675
3675
  style: { backgroundColor: i },
3676
- onSubmit: v,
3676
+ onSubmit: y,
3677
3677
  className: w("invite-form gtm-trackable"),
3678
3678
  children: [
3679
3679
  /* @__PURE__ */ a.jsxs("fieldset", { className: "content", children: [
@@ -3690,31 +3690,31 @@ const hs = ({
3690
3690
  d(j), h(!j.length);
3691
3691
  },
3692
3692
  autoFocus: !1,
3693
- getLabel: (j, S, C) => /* @__PURE__ */ a.jsxs("div", { className: "email text-medium", children: [
3693
+ getLabel: (j, $, C) => /* @__PURE__ */ a.jsxs("div", { className: "email text-medium", children: [
3694
3694
  /* @__PURE__ */ a.jsx("div", { "data-tag-item": !0, children: j }),
3695
3695
  /* @__PURE__ */ a.jsx(
3696
- q,
3696
+ B,
3697
3697
  {
3698
3698
  variant: "tertiary",
3699
3699
  size: "small",
3700
3700
  icon: { icon: "close" },
3701
3701
  onClick: () => {
3702
- C(S), h(!f.length);
3702
+ C($), h(!f.length);
3703
3703
  },
3704
3704
  className: "remove-email-button",
3705
3705
  screenreaderText: k({ id: "overlay_close" })
3706
3706
  }
3707
3707
  )
3708
- ] }, S)
3708
+ ] }, $)
3709
3709
  }
3710
3710
  )
3711
3711
  ] }),
3712
3712
  /* @__PURE__ */ a.jsx(Te, {}),
3713
- /* @__PURE__ */ a.jsx("fieldset", { className: "footer", children: /* @__PURE__ */ a.jsx(q, { className: "sendEmailsButton", disabled: p, children: n }) })
3713
+ /* @__PURE__ */ a.jsx("fieldset", { className: "footer", children: /* @__PURE__ */ a.jsx(B, { className: "sendEmailsButton", disabled: p, children: n }) })
3714
3714
  ]
3715
3715
  }
3716
3716
  ) });
3717
- }, z = {
3717
+ }, U = {
3718
3718
  timeouts: {},
3719
3719
  handlerCalled: {},
3720
3720
  getIsDesktopVersion: (e, t) => {
@@ -3737,9 +3737,9 @@ const hs = ({
3737
3737
  if (n[e] === t || e === "account" && t === !1 && n.navigation === !0)
3738
3738
  return;
3739
3739
  const s = Date.now();
3740
- if (!t && z.handlerCalled[e] && s - z.handlerCalled[e] < 500)
3740
+ if (!t && U.handlerCalled[e] && s - U.handlerCalled[e] < 500)
3741
3741
  return;
3742
- z.handlerCalled[e] = s;
3742
+ U.handlerCalled[e] = s;
3743
3743
  let i = [{ type: `menus.${e}`, value: t }];
3744
3744
  t === !0 && Object.keys(n).forEach((o) => {
3745
3745
  o === e || n[o] === !1 || i.push({ type: `menus.${o}`, value: !1 });
@@ -3764,7 +3764,7 @@ const hs = ({
3764
3764
  if (!(typeof s > "u") && (!n || s[t] && s[t].includes(n) || s.value && s.value.includes(n) || s.toString().includes(n)))
3765
3765
  return e[r];
3766
3766
  }
3767
- return e[0].children ? z.findFirstChild(e[0].children, t, n) : !1;
3767
+ return e[0].children ? U.findFirstChild(e[0].children, t, n) : !1;
3768
3768
  },
3769
3769
  autoFocus: ({ menu: e, navigationRef: t, isDesktopVersion: n, focusElements: r, dispatch: s }) => {
3770
3770
  if (!t.current || !t.current.children)
@@ -3778,20 +3778,20 @@ const hs = ({
3778
3778
  switch (e) {
3779
3779
  case "navigation":
3780
3780
  if (n) {
3781
- const m = z.findFirstChild(
3781
+ const m = U.findFirstChild(
3782
3782
  t.current.children,
3783
3783
  "attributes.aria-controls",
3784
3784
  "navigation"
3785
3785
  );
3786
- o = z.findFirstChild(m.children, "href");
3786
+ o = U.findFirstChild(m.children, "href");
3787
3787
  } else
3788
- o = z.findFirstChild(t.current.children, "href");
3788
+ o = U.findFirstChild(t.current.children, "href");
3789
3789
  o || (o = t.current);
3790
3790
  break;
3791
3791
  case "account":
3792
- if (c = z.findFirstChild(t.current.children, "className", "account"), !c || !c.children)
3792
+ if (c = U.findFirstChild(t.current.children, "className", "account"), !c || !c.children)
3793
3793
  return;
3794
- o = z.findFirstChild(c.children, "href");
3794
+ o = U.findFirstChild(c.children, "href");
3795
3795
  break;
3796
3796
  default:
3797
3797
  return;
@@ -3800,16 +3800,16 @@ const hs = ({
3800
3800
  },
3801
3801
  events: {
3802
3802
  onClick: (e, { id: t, callback: n, isOpen: r }) => {
3803
- e.target && e.target.attributes && e.target.attributes.href || (e.preventDefault(), e.stopPropagation(), clearTimeout(z.timeouts[t]), n(t, !r));
3803
+ e.target && e.target.attributes && e.target.attributes.href || (e.preventDefault(), e.stopPropagation(), clearTimeout(U.timeouts[t]), n(t, !r));
3804
3804
  },
3805
3805
  onFocus: ({ id: e }) => {
3806
- clearTimeout(z.timeouts[e]);
3806
+ clearTimeout(U.timeouts[e]);
3807
3807
  },
3808
3808
  onMouseEnter: ({ id: e, callback: t }) => {
3809
- clearTimeout(z.timeouts[e]), t(e, !0);
3809
+ clearTimeout(U.timeouts[e]), t(e, !0);
3810
3810
  },
3811
3811
  onBlur: ({ id: e, callback: t }) => {
3812
- z.timeouts[e] = setTimeout(() => {
3812
+ U.timeouts[e] = setTimeout(() => {
3813
3813
  t(e, !1);
3814
3814
  }, 250);
3815
3815
  }
@@ -3898,7 +3898,7 @@ const hs = ({
3898
3898
  },
3899
3899
  doTrack: i = null
3900
3900
  }) => {
3901
- const o = P(), c = In(ct, e);
3901
+ const o = A(), c = In(ct, e);
3902
3902
  if (!c || c.onlyShow && (c.onlyShow === "logged-in" && !t || c.onlyShow === "logged-out" && t))
3903
3903
  return null;
3904
3904
  const m = "doTrack" in c, l = i === null ? m ? c.doTrack : !0 : i, f = e.includes("buttons.");
@@ -3908,8 +3908,8 @@ const hs = ({
3908
3908
  if (c.href) {
3909
3909
  let _ = c.gtmType || `${e}-click`;
3910
3910
  if (_.includes(".")) {
3911
- const b = _.split("."), j = b[b.length - 2];
3912
- _ = `${j === "topics" ? `${j}-` : ""}${b[b.length - 1]}`;
3911
+ const v = _.split("."), j = v[v.length - 2];
3912
+ _ = `${j === "topics" ? `${j}-` : ""}${v[v.length - 1]}`;
3913
3913
  }
3914
3914
  p = {
3915
3915
  href: c.href,
@@ -3926,37 +3926,37 @@ const hs = ({
3926
3926
  ...c.props || {}
3927
3927
  });
3928
3928
  }
3929
- const h = c.order && c.order[0] && c[c.order[0]], g = h && c[c.order[0]].order, y = p && window.location.pathname === c.href;
3930
- let k = {}, v = {};
3929
+ const h = c.order && c.order[0] && c[c.order[0]], g = h && c[c.order[0]].order, b = p && window.location.pathname === c.href;
3930
+ let k = {}, y = {};
3931
3931
  if (h) {
3932
- const _ = c.menuId || e, b = {
3933
- onClick: (j) => z.events.onClick(j, { id: _, callback: s, isOpen: r[_] }),
3934
- onFocus: () => z.events.onFocus({ id: _ }),
3935
- onBlur: () => z.events.onBlur({ id: _, callback: s }),
3936
- onMouseLeave: () => z.events.onBlur({ id: _, callback: s }),
3937
- onMouseEnter: () => z.events.onMouseEnter({ id: _, callback: s })
3932
+ const _ = c.menuId || e, v = {
3933
+ onClick: (j) => U.events.onClick(j, { id: _, callback: s, isOpen: r[_] }),
3934
+ onFocus: () => U.events.onFocus({ id: _ }),
3935
+ onBlur: () => U.events.onBlur({ id: _, callback: s }),
3936
+ onMouseLeave: () => U.events.onBlur({ id: _, callback: s }),
3937
+ onMouseEnter: () => U.events.onMouseEnter({ id: _, callback: s })
3938
3938
  };
3939
3939
  n && (g && (k = {
3940
- ...b,
3940
+ ...v,
3941
3941
  onKeyPress: (j) => {
3942
- j.key === "Enter" && z.events.onClick(j, { id: _, callback: s, isOpen: r[_] });
3942
+ j.key === "Enter" && U.events.onClick(j, { id: _, callback: s, isOpen: r[_] });
3943
3943
  },
3944
3944
  tabIndex: "0",
3945
3945
  // Add a `tabIndex` so keyboard users can focus on the `li`
3946
3946
  "aria-haspopup": !0,
3947
3947
  "aria-expanded": r[_],
3948
3948
  "aria-controls": _
3949
- }), v = { hidden: _ in r ? !r[_] : !0 }), g || (v = {
3950
- ...v,
3951
- ...b
3949
+ }), y = { hidden: _ in r ? !r[_] : !0 }), g || (y = {
3950
+ ...y,
3951
+ ...v
3952
3952
  });
3953
3953
  }
3954
- return /* @__PURE__ */ a.jsxs("li", { className: w({ [c.className]: c.className, "has-submenu": h, parent: g, active: y }), role: "none", ...k, children: [
3955
- p ? A.createElement(f ? q : "a", p, o.formatMessage({ id: d })) : o.formatMessage({ id: d }),
3956
- c.order && /* @__PURE__ */ a.jsx("ul", { ...v, children: c.order.map((_) => {
3954
+ return /* @__PURE__ */ a.jsxs("li", { className: w({ [c.className]: c.className, "has-submenu": h, parent: g, active: b }), role: "none", ...k, children: [
3955
+ p ? F.createElement(f ? B : "a", p, o.formatMessage({ id: d })) : o.formatMessage({ id: d }),
3956
+ c.order && /* @__PURE__ */ a.jsx("ul", { ...y, children: c.order.map((_) => {
3957
3957
  if (!c[_])
3958
3958
  return null;
3959
- const b = {
3959
+ const v = {
3960
3960
  isLoggedIn: t,
3961
3961
  isDesktopVersion: n,
3962
3962
  menus: r,
@@ -3965,14 +3965,14 @@ const hs = ({
3965
3965
  };
3966
3966
  return c[_].order ? /* @__PURE__ */ a.jsxs("li", { className: w({ [c[_].className]: c[_].className }), children: [
3967
3967
  o.formatMessage({ id: `${d}_${_}` }),
3968
- /* @__PURE__ */ a.jsx("ul", { children: c[_].order.map((j) => /* @__PURE__ */ a.jsx(lt, { id: `${e}.${_}.${j}`, ...b }, j)) })
3969
- ] }, _) : /* @__PURE__ */ a.jsx(lt, { id: `${e}.${_}`, ...b }, _);
3968
+ /* @__PURE__ */ a.jsx("ul", { children: c[_].order.map((j) => /* @__PURE__ */ a.jsx(lt, { id: `${e}.${_}.${j}`, ...v }, j)) })
3969
+ ] }, _) : /* @__PURE__ */ a.jsx(lt, { id: `${e}.${_}`, ...v }, _);
3970
3970
  }) })
3971
3971
  ] }, e);
3972
3972
  };
3973
3973
  const gs = { height: 67, height_desktop: 83 }, oa = ({ showNavigation: e = !0 }) => {
3974
- const t = P(), n = ge(ke), r = He(!0, !0), s = n && typeof n.id == "string", i = ft(
3975
- () => z.getIsDesktopVersion(s, r),
3974
+ const t = A(), n = ge(ke), r = He(!0, !0), s = n && typeof n.id == "string", i = ft(
3975
+ () => U.getIsDesktopVersion(s, r),
3976
3976
  [s, r]
3977
3977
  ), [o, c] = Oa(vr, {
3978
3978
  headerIsVisible: !0,
@@ -3986,18 +3986,18 @@ const gs = { height: 67, height_desktop: 83 }, oa = ({ showNavigation: e = !0 })
3986
3986
  scrollPosition: gs[`height${i.navigation ? "_desktop" : ""}`],
3987
3987
  callbacks: {
3988
3988
  scrollUp: () => {
3989
- !i && l.navigation || z.shouldChangeHeaderIsVisible(!0, l, c);
3989
+ !i && l.navigation || U.shouldChangeHeaderIsVisible(!0, l, c);
3990
3990
  },
3991
3991
  scrollDown: () => {
3992
- !i && l.navigation || z.shouldChangeHeaderIsVisible(!1, l, c);
3992
+ !i && l.navigation || U.shouldChangeHeaderIsVisible(!1, l, c);
3993
3993
  }
3994
3994
  }
3995
3995
  });
3996
3996
  const d = (h, g) => {
3997
- z.handleMenus({ id: h, value: g, menus: l, dispatch: c });
3998
- }, p = te(null);
3997
+ U.handleMenus({ id: h, value: g, menus: l, dispatch: c });
3998
+ }, p = ne(null);
3999
3999
  return Pe(() => {
4000
- l.navigation && z.autoFocus({
4000
+ l.navigation && U.autoFocus({
4001
4001
  menu: "navigation",
4002
4002
  navigationRef: p,
4003
4003
  isDesktopVersion: i.navigation,
@@ -4005,7 +4005,7 @@ const gs = { height: 67, height_desktop: 83 }, oa = ({ showNavigation: e = !0 })
4005
4005
  dispatch: c
4006
4006
  });
4007
4007
  }, [l.navigation]), Pe(() => {
4008
- l.account && z.autoFocus({
4008
+ l.account && U.autoFocus({
4009
4009
  menu: "account",
4010
4010
  navigationRef: p,
4011
4011
  isDesktopVersion: i.navigation,
@@ -4107,13 +4107,13 @@ const gs = { height: 67, height_desktop: 83 }, oa = ({ showNavigation: e = !0 })
4107
4107
  "button",
4108
4108
  {
4109
4109
  className: "account-button",
4110
- onClick: (h) => z.events.onClick(h, {
4110
+ onClick: (h) => U.events.onClick(h, {
4111
4111
  id: "account",
4112
4112
  callback: d,
4113
4113
  isOpen: l.account
4114
4114
  }),
4115
- onMouseEnter: () => z.events.onMouseEnter({ id: "account", callback: d }),
4116
- onMouseLeave: () => z.events.onBlur({ id: "account", callback: d }),
4115
+ onMouseEnter: () => U.events.onMouseEnter({ id: "account", callback: d }),
4116
+ onMouseLeave: () => U.events.onBlur({ id: "account", callback: d }),
4117
4117
  "aria-haspopup": "true",
4118
4118
  "aria-expanded": l.account,
4119
4119
  "aria-controls": "navigation",
@@ -4146,7 +4146,7 @@ const gs = { height: 67, height_desktop: 83 }, oa = ({ showNavigation: e = !0 })
4146
4146
  )
4147
4147
  ] });
4148
4148
  };
4149
- const ca = ({ element: e = "section", children: t, className: n, ...r }) => A.createElement(
4149
+ const ca = ({ element: e = "section", children: t, className: n, ...r }) => F.createElement(
4150
4150
  e,
4151
4151
  {
4152
4152
  className: w("modal", n),
@@ -4169,11 +4169,11 @@ const la = ({
4169
4169
  className: f = "",
4170
4170
  gtmContext: d = "Modal"
4171
4171
  }) => {
4172
- const p = P(), [h, g] = D(t), y = (v) => {
4173
- g(v), v ? (s(), document.body.classList.add("has-overlay")) : (i(), document.body.classList.remove("has-overlay"));
4172
+ const p = A(), [h, g] = D(t), b = (y) => {
4173
+ g(y), y ? (s(), document.body.classList.add("has-overlay")) : (i(), document.body.classList.remove("has-overlay"));
4174
4174
  };
4175
4175
  G(() => {
4176
- y(t);
4176
+ b(t);
4177
4177
  }, [t]);
4178
4178
  const k = r ? { "--max-width": `${r / 16}rem` } : {};
4179
4179
  return /* @__PURE__ */ a.jsx("div", { className: w("overlay", { open: h }), children: /* @__PURE__ */ a.jsx(
@@ -4187,12 +4187,12 @@ const la = ({
4187
4187
  /* @__PURE__ */ a.jsxs("div", { className: "top", children: [
4188
4188
  c && /* @__PURE__ */ a.jsx("h2", { className: "modal-title", children: c }),
4189
4189
  /* @__PURE__ */ a.jsx(
4190
- q,
4190
+ B,
4191
4191
  {
4192
4192
  variant: "tertiary",
4193
4193
  size: "medium",
4194
4194
  icon: { icon: "close" },
4195
- onClick: () => y(!1),
4195
+ onClick: () => b(!1),
4196
4196
  className: "gtm-trackable",
4197
4197
  "data-gtm-event-type": "close-modal-click",
4198
4198
  "data-gtm-event-context": d,
@@ -4250,7 +4250,7 @@ const zi = ({
4250
4250
  }
4251
4251
  );
4252
4252
  const bs = () => {
4253
- const e = P();
4253
+ const e = A();
4254
4254
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
4255
4255
  /* @__PURE__ */ a.jsx(oa, {}),
4256
4256
  /* @__PURE__ */ a.jsx("div", { id: "content", children: /* @__PURE__ */ a.jsx(
@@ -4275,21 +4275,21 @@ const bs = () => {
4275
4275
  G(() => {
4276
4276
  window.scrollTo(0, 0);
4277
4277
  }, [h]);
4278
- const g = at(e, { locale: c }), y = at(t, {
4278
+ const g = at(e, { locale: c }), b = at(t, {
4279
4279
  locale: c
4280
4280
  }), k = at(n, {
4281
4281
  locale: c
4282
- }), v = {};
4283
- 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
+ }), y = {};
4283
+ return f !== "default" && (y[f] = !0), d !== "default" && (y[d] = !0), p !== "default" && (y[p] = !0), /* @__PURE__ */ a.jsx(Ja, { onError: r, fallback: /* @__PURE__ */ a.jsx(bs, {}), children: /* @__PURE__ */ a.jsx(Ba, { fallback: null, children: /* @__PURE__ */ a.jsxs(
4284
4284
  "div",
4285
4285
  {
4286
4286
  id: "wrapper",
4287
- className: w(o, v, { "has-footer": l }),
4287
+ className: w(o, y, { "has-footer": l }),
4288
4288
  children: [
4289
4289
  /* @__PURE__ */ a.jsx(oa, { showNavigation: m }),
4290
4290
  /* @__PURE__ */ a.jsxs("section", { id: "content-wrapper", children: [
4291
- y && /* @__PURE__ */ a.jsx("div", { className: "additional-content prepended", children: y }),
4292
- A.createElement(f === "bold" ? ca : "div", {
4291
+ b && /* @__PURE__ */ a.jsx("div", { className: "additional-content prepended", children: b }),
4292
+ F.createElement(f === "bold" ? ca : "div", {
4293
4293
  id: "content",
4294
4294
  children: g
4295
4295
  })
@@ -4340,7 +4340,7 @@ const Wi = ({
4340
4340
  gtmType: i = "tag-click",
4341
4341
  gtmContext: o = "tags"
4342
4342
  }) => {
4343
- const c = P();
4343
+ const c = A();
4344
4344
  if (!e || e.length < 1)
4345
4345
  return null;
4346
4346
  const m = [];
@@ -4372,7 +4372,7 @@ const Vi = ({
4372
4372
  gtmType: i = "member-click",
4373
4373
  className: o = ""
4374
4374
  }) => {
4375
- const c = P();
4375
+ const c = A();
4376
4376
  return e.length === 0 ? null : /* @__PURE__ */ a.jsxs("div", { className: w("members-list", o), children: [
4377
4377
  /* @__PURE__ */ a.jsxs("h1", { children: [
4378
4378
  c.formatMessage({ id: "membersList" }),
@@ -4394,7 +4394,7 @@ const Vi = ({
4394
4394
  ] });
4395
4395
  };
4396
4396
  let et = null;
4397
- const de = "discussion_form_", en = ({
4397
+ const le = "discussion_form_", en = ({
4398
4398
  content: e = { type: "response", slugs: {} },
4399
4399
  userHasPermissions: t = !0,
4400
4400
  meta: n = {
@@ -4425,11 +4425,11 @@ const de = "discussion_form_", en = ({
4425
4425
  },
4426
4426
  gtmContext: m = "DiscussionForm"
4427
4427
  }) => {
4428
- var M, T, E;
4429
- const l = P(), f = ge(ke), [d, p] = D(
4428
+ var S, M, E;
4429
+ const l = A(), f = ge(ke), [d, p] = D(
4430
4430
  n.isEditing && n.isEditing.text || ""
4431
- ), [h, g] = D(o.error || !1), [y, k] = D(!1), v = te(null);
4432
- if (r || (r = v), n.isLoading)
4431
+ ), [h, g] = D(o.error || !1), [b, k] = D(!1), y = ne(null);
4432
+ if (r || (r = y), n.isLoading)
4433
4433
  return /* @__PURE__ */ a.jsx(
4434
4434
  _e,
4435
4435
  {
@@ -4437,85 +4437,85 @@ const de = "discussion_form_", en = ({
4437
4437
  "data-testid": "loading-placeholder"
4438
4438
  }
4439
4439
  );
4440
- const _ = (O) => {
4441
- const H = O.target.value;
4442
- p(H);
4443
- let U;
4444
- !f || !f.id ? U = be(
4440
+ const _ = (N) => {
4441
+ const q = N.target.value;
4442
+ p(q);
4443
+ let H;
4444
+ !f || !f.id ? H = be(
4445
4445
  l.formatMessage,
4446
- `${de}error_loggedOut`,
4446
+ `${le}error_loggedOut`,
4447
4447
  e.type,
4448
4448
  "action"
4449
- ) : t ? H.length >= s && (U = `${de}error_tooLong`) : U = be(
4449
+ ) : t ? q.length >= s && (H = `${le}error_tooLong`) : H = be(
4450
4450
  l.formatMessage,
4451
- `${de}error_noPermission`,
4451
+ `${le}error_noPermission`,
4452
4452
  e.type,
4453
4453
  "action"
4454
- ), U ? g(U) : h && g(!1);
4454
+ ), H ? g(H) : h && g(!1);
4455
4455
  };
4456
- let b = `${e.type}-form`;
4456
+ let v = `${e.type}-form`;
4457
4457
  if (e.type === "response" || e.type === "reply") {
4458
- const O = ((M = e.slugs) == null ? void 0 : M.reply) || ((T = e.slugs) == null ? void 0 : T.answer) || ((E = e.slugs) == null ? void 0 : E.question) || "";
4459
- O && (b = `${b}-${O.slice(-15)}`);
4458
+ const N = ((S = e.slugs) == null ? void 0 : S.reply) || ((M = e.slugs) == null ? void 0 : M.answer) || ((E = e.slugs) == null ? void 0 : E.question) || "";
4459
+ N && (v = `${v}-${N.slice(-15)}`);
4460
4460
  }
4461
- const j = async (O) => {
4462
- var U;
4463
- if (O.preventDefault(), O.stopPropagation(), !f || !f.id || !t || C)
4461
+ const j = async (N) => {
4462
+ var H;
4463
+ if (N.preventDefault(), N.stopPropagation(), !f || !f.id || !t || C)
4464
4464
  return;
4465
4465
  et && clearTimeout(et), k("submitting");
4466
- const H = window.location.pathname;
4466
+ const q = window.location.pathname;
4467
4467
  try {
4468
- let W;
4468
+ let Y;
4469
4469
  switch (e.type) {
4470
4470
  case "post":
4471
- W = await c.create({ content: d });
4471
+ Y = await c.create({ content: d });
4472
4472
  break;
4473
4473
  case "question":
4474
- W = await c.create({
4474
+ Y = await c.create({
4475
4475
  title: d,
4476
4476
  authorId: f && f.id,
4477
- ...(U = c.props) == null ? void 0 : U.create
4477
+ ...(H = c.props) == null ? void 0 : H.create
4478
4478
  });
4479
4479
  break;
4480
4480
  case "response":
4481
- W = await c.create(
4481
+ Y = await c.create(
4482
4482
  { question: e.slugs.question },
4483
- { body: d, authorId: f && f.id, contentPath: H }
4483
+ { body: d, authorId: f && f.id, contentPath: q }
4484
4484
  );
4485
4485
  break;
4486
4486
  case "reply":
4487
- W = await c.create(
4487
+ Y = await c.create(
4488
4488
  { question: e.slugs.question, answer: e.slugs.answer },
4489
- { body: d, authorId: f && f.id, contentPath: H }
4489
+ { body: d, authorId: f && f.id, contentPath: q }
4490
4490
  );
4491
4491
  break;
4492
4492
  default:
4493
4493
  break;
4494
4494
  }
4495
- await xr(1e3), c.callback && await c.callback(W), et = setTimeout(() => {
4496
- p(""), k("submitted"), S();
4495
+ await xr(1e3), c.callback && await c.callback(Y), et = setTimeout(() => {
4496
+ p(""), k("submitted"), $();
4497
4497
  }, 500);
4498
- } catch (W) {
4499
- const Q = W;
4500
- let V = `${de}error`;
4501
- Q.message.includes("entry already exists") && (V = be(
4498
+ } catch (Y) {
4499
+ const Q = Y;
4500
+ let z = `${le}error`;
4501
+ Q.message.includes("entry already exists") && (z = be(
4502
4502
  l.formatMessage,
4503
- `${de}error_alreadyExists`,
4503
+ `${le}error_alreadyExists`,
4504
4504
  e.type,
4505
4505
  "action"
4506
- )), Q.message.includes("429") ? V = be(
4506
+ )), Q.message.includes("429") ? z = be(
4507
4507
  l.formatMessage,
4508
- `${de}error_tooMany`,
4508
+ `${le}error_tooMany`,
4509
4509
  e.type,
4510
4510
  "action"
4511
- ) : Q.message.includes("400") && (V = `${de}error`), g(V), S();
4511
+ ) : Q.message.includes("400") && (z = `${le}error`), g(z), $();
4512
4512
  }
4513
- }, S = () => {
4513
+ }, $ = () => {
4514
4514
  et = setTimeout(() => {
4515
4515
  g(!1), k(!1);
4516
4516
  }, 5e3);
4517
- }, C = !d || !yr(d), I = y === "submitting", F = [];
4518
- return (n.isEditing && !I || o.cancel) && F.push({
4517
+ }, C = !d || !yr(d), Z = b === "submitting", L = [];
4518
+ return (n.isEditing && !Z || o.cancel) && L.push({
4519
4519
  variant: "secondary",
4520
4520
  size: { mobile: "small", 600: "medium" },
4521
4521
  onClick: c.handleCancel,
@@ -4523,37 +4523,37 @@ const de = "discussion_form_", en = ({
4523
4523
  "data-gtm-event-context": m,
4524
4524
  "data-gtm-event-type": `cancel-${e.type}-click`,
4525
4525
  disabled: !o.cancel && (!f || !f.id || !d),
4526
- children: l.formatMessage({ id: `${de}cancel` })
4527
- }), F.push({
4526
+ children: l.formatMessage({ id: `${le}cancel` })
4527
+ }), L.push({
4528
4528
  variant: "primary",
4529
4529
  size: { mobile: "small", 600: "medium" },
4530
- onClick: (O) => {
4530
+ onClick: (N) => {
4531
4531
  if (n.isEditing) {
4532
4532
  k("submitting"), c.handleSaveEdit && c.handleSaveEdit(
4533
- v.current && "value" in v.current ? v.current.value : ""
4533
+ y.current && "value" in y.current ? y.current.value : ""
4534
4534
  );
4535
4535
  return;
4536
4536
  }
4537
- j(O);
4537
+ j(N);
4538
4538
  },
4539
4539
  className: "gtm-trackable",
4540
4540
  "data-gtm-event-context": m,
4541
4541
  "data-gtm-event-type": `${n.isEditing ? "save" : "submit"}-${e.type}-click`,
4542
4542
  "data-testid": "save-button",
4543
- disabled: !f || !f.id || !t || C || I || n.isEditing && d === n.isEditing.text,
4543
+ disabled: !f || !f.id || !t || C || Z || n.isEditing && d === n.isEditing.text,
4544
4544
  children: l.formatMessage({
4545
- id: `${de}${I ? n.isEditing ? "saving" : "posting" : n.isEditing ? "save" : "post"}`
4545
+ id: `${le}${Z ? n.isEditing ? "saving" : "posting" : n.isEditing ? "save" : "post"}`
4546
4546
  })
4547
4547
  }), /* @__PURE__ */ a.jsxs(
4548
4548
  "form",
4549
4549
  {
4550
- id: b,
4550
+ id: v,
4551
4551
  className: w("discussion-card discussion-form", {
4552
4552
  "no-styling": n.isInWrapper && n.isEditing
4553
4553
  }),
4554
4554
  "data-testid": `discussion-${e.type}-form`,
4555
4555
  children: [
4556
- (n == null ? void 0 : n.showTitle) && !n.isEditing && ["question"].includes(e.type) && /* @__PURE__ */ a.jsx("h2", { children: be(l.formatMessage, `${de}title`, e.type, "action") }),
4556
+ (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") }),
4557
4557
  /* @__PURE__ */ a.jsx(
4558
4558
  Xt,
4559
4559
  {
@@ -4562,16 +4562,16 @@ const de = "discussion_form_", en = ({
4562
4562
  gtmType: "profile-click"
4563
4563
  }
4564
4564
  ),
4565
- /* @__PURE__ */ a.jsx(ae, { element: "label", showOnFocus: !1, htmlFor: `${b}-input`, children: be(l.formatMessage, `${de}label`, e.type, "action") }),
4565
+ /* @__PURE__ */ a.jsx(ae, { element: "label", showOnFocus: !1, htmlFor: `${v}-input`, children: be(l.formatMessage, `${le}label`, e.type, "action") }),
4566
4566
  /* @__PURE__ */ a.jsx(
4567
4567
  Xa,
4568
4568
  {
4569
4569
  ref: r,
4570
- id: `${b}-input`,
4570
+ id: `${v}-input`,
4571
4571
  name: e.type,
4572
4572
  placeholder: be(
4573
4573
  l.formatMessage,
4574
- `${de}placeholder`,
4574
+ `${le}placeholder`,
4575
4575
  e.type,
4576
4576
  "action"
4577
4577
  ),
@@ -4584,8 +4584,8 @@ const de = "discussion_form_", en = ({
4584
4584
  autoFocus: !!n.isEditing
4585
4585
  }
4586
4586
  ),
4587
- /* @__PURE__ */ a.jsx("small", { children: be(l.formatMessage, `${de}explainer`, e.type, "action", {
4588
- a: (O) => /* @__PURE__ */ a.jsx(
4587
+ /* @__PURE__ */ a.jsx("small", { children: be(l.formatMessage, `${le}explainer`, e.type, "action", {
4588
+ a: (N) => /* @__PURE__ */ a.jsx(
4589
4589
  "a",
4590
4590
  {
4591
4591
  href: "https://about.apolitical.co/q-and-a-community-guidelines",
@@ -4594,12 +4594,12 @@ const de = "discussion_form_", en = ({
4594
4594
  "data-gtm-event-context": m,
4595
4595
  "data-gtm-event-type": "community-guidelines-link",
4596
4596
  rel: "noreferrer",
4597
- children: O
4597
+ children: N
4598
4598
  }
4599
4599
  )
4600
4600
  }) }),
4601
- /* @__PURE__ */ a.jsx(ht, { buttons: F }),
4602
- y === "submitted" && /* @__PURE__ */ a.jsx(Vt, { className: "success", "data-testid": "success", children: be(l.formatMessage, `${de}success`, e.type, "action") }),
4601
+ /* @__PURE__ */ a.jsx(ht, { buttons: L }),
4602
+ b === "submitted" && /* @__PURE__ */ a.jsx(Vt, { className: "success", "data-testid": "success", children: be(l.formatMessage, `${le}success`, e.type, "action") }),
4603
4603
  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(
4604
4604
  { id: h },
4605
4605
  {
@@ -4666,12 +4666,12 @@ const Bt = () => {
4666
4666
  }, deleteLike: m = () => {
4667
4667
  } } = {}
4668
4668
  }) => {
4669
- const l = P();
4669
+ const l = A();
4670
4670
  G(() => {
4671
4671
  h(s);
4672
4672
  }, [s]);
4673
- const [f, d] = D(t), [p, h] = D(s), [g, y] = D(!1), [k, v] = D(!1), _ = ft(() => ws(n, Zt), [n]), b = (S) => {
4674
- if (S.preventDefault(), S.stopPropagation(), v(!1), Ze)
4673
+ const [f, d] = D(t), [p, h] = D(s), [g, b] = D(!1), [k, y] = D(!1), _ = ft(() => ws(n, Zt), [n]), v = ($) => {
4674
+ if ($.preventDefault(), $.stopPropagation(), y(!1), Ze)
4675
4675
  return Bt(), !1;
4676
4676
  if (Bt(), g || !o)
4677
4677
  return !1;
@@ -4679,8 +4679,8 @@ const Bt = () => {
4679
4679
  }, j = async () => {
4680
4680
  if (Bt(), g || !o)
4681
4681
  return !1;
4682
- let S = p ? f - 1 : f + 1;
4683
- S < 0 && (S = 0), y(!0), d(S), h(!p);
4682
+ let $ = p ? f - 1 : f + 1;
4683
+ $ < 0 && ($ = 0), b(!0), d($), h(!p);
4684
4684
  try {
4685
4685
  if (i && i.slugs) {
4686
4686
  const C = js(i.slugs);
@@ -4689,29 +4689,29 @@ const Bt = () => {
4689
4689
  } catch {
4690
4690
  d(t), h(s);
4691
4691
  } finally {
4692
- y(!1);
4692
+ b(!1);
4693
4693
  }
4694
4694
  };
4695
- return A.createElement(
4695
+ return F.createElement(
4696
4696
  e,
4697
4697
  {
4698
4698
  className: w("likes-wrapper text-medium action-button", { "show-spinner": g, "is-liked": p, disabled: !o }),
4699
- onClick: b,
4699
+ onClick: v,
4700
4700
  onMouseEnter: () => {
4701
- v(!0);
4701
+ y(!0);
4702
4702
  },
4703
4703
  onMouseLeave: () => {
4704
- v(!1);
4704
+ y(!1);
4705
4705
  },
4706
4706
  onFocus: () => {
4707
- v(!0);
4707
+ y(!0);
4708
4708
  },
4709
4709
  onBlur: () => {
4710
- v(!1);
4710
+ y(!1);
4711
4711
  },
4712
4712
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
4713
4713
  /* @__PURE__ */ a.jsx(
4714
- q,
4714
+ B,
4715
4715
  {
4716
4716
  variant: "tertiary",
4717
4717
  size: "medium",
@@ -4720,7 +4720,7 @@ const Bt = () => {
4720
4720
  screenreaderText: o ? l.formatMessage({
4721
4721
  id: `discussion_likes_${p ? "unlike" : "like"}`
4722
4722
  }, { action: l.formatMessage({ id: `discussion_action_${i.type}` }) }) : !1,
4723
- onClick: b,
4723
+ onClick: v,
4724
4724
  disabled: !o,
4725
4725
  "aria-hidden": !o,
4726
4726
  "data-testid": "like-button",
@@ -4730,16 +4730,16 @@ const Bt = () => {
4730
4730
  ),
4731
4731
  /* @__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 }) }),
4732
4732
  n && /* @__PURE__ */ a.jsx(wr, { isOpen: k, isLoading: n.length === 0, children: n.length && /* @__PURE__ */ a.jsxs("ul", { children: [
4733
- _.map((S) => typeof S == "string" || !S.name ? null : /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
4733
+ _.map(($) => typeof $ == "string" || !$.name ? null : /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
4734
4734
  gt,
4735
4735
  {
4736
- href: S.id ? `/profiles/${S.id}` : void 0,
4736
+ href: $.id ? `/profiles/${$.id}` : void 0,
4737
4737
  gtmContext: "Likes",
4738
4738
  gtmType: "liked-name-click",
4739
4739
  onClick: (C) => C == null ? void 0 : C.stopPropagation(),
4740
- children: S.name
4740
+ children: $.name
4741
4741
  }
4742
- ) }, S.id || window.btoa(S.name))),
4742
+ ) }, $.id || window.btoa($.name))),
4743
4743
  n.length > Zt && /* @__PURE__ */ a.jsx("li", { children: l.formatMessage({ id: "discussion_likes_more" }, { number: n.length - Zt }) })
4744
4744
  ] }) })
4745
4745
  ] })
@@ -4776,53 +4776,53 @@ const ve = "discussion_", $s = 280, kt = ({
4776
4776
  links: p = {},
4777
4777
  className: h,
4778
4778
  gtmContext: g = "DiscussionAnswer",
4779
- children: y,
4779
+ children: b,
4780
4780
  isTruncated: k = !1
4781
4781
  }) => {
4782
- const v = P(), _ = ge(ke), b = ge(vt), [j, S] = D({
4782
+ const y = A(), _ = ge(ke), v = ge(vt), [j, $] = D({
4783
4783
  body: t && t.body || "",
4784
4784
  isEditing: !1,
4785
4785
  didEdit: t && t.isEdited || !1
4786
- }), [C, I] = D(!1), [F, M] = D("");
4786
+ }), [C, Z] = D(!1), [L, S] = D("");
4787
4787
  if (G(() => {
4788
- S({
4788
+ $({
4789
4789
  ...j,
4790
4790
  body: t && t.body || "",
4791
4791
  didEdit: t && t.isEdited || !1
4792
4792
  });
4793
4793
  }, [t.isEdited]), r || !t || t.type === "answer" && (!t.slugs || !t.slugs.question))
4794
4794
  return /* @__PURE__ */ a.jsx(_e, { className: "discussion-card discussion-post" });
4795
- const { author: T, canLike: E, createdAt: O, id: H, likes: U = 0, userLiked: W, comments: Q = 0 } = t, V = k ? Ne(j.body, $s) : j.body, ee = _ && _.id && typeof T != "string" && T.id && T.id === _.id || !1, re = typeof E == "boolean" ? E : n ? !ee : !1, se = async (Z) => {
4796
- Z || (Z = ""), M("");
4795
+ const { author: M, canLike: E, createdAt: N, id: q, likes: H = 0, userLiked: Y, comments: Q = 0 } = t, z = k ? Ne(j.body, $s) : j.body, te = _ && _.id && typeof M != "string" && M.id && M.id === _.id || !1, re = typeof E == "boolean" ? E : n ? !te : !1, J = async (W) => {
4796
+ W || (W = ""), S("");
4797
4797
  try {
4798
- if (!er(Z, j.body)) {
4799
- const ue = t.type === "question" ? { title: Z } : { body: Z };
4798
+ if (!er(W, j.body)) {
4799
+ const ue = t.type === "question" ? { title: W } : { body: W };
4800
4800
  await m(Sn(t.slugs), ue);
4801
4801
  }
4802
- S({ body: Z, isEditing: !1, didEdit: !0 });
4802
+ $({ body: W, isEditing: !1, didEdit: !0 });
4803
4803
  } catch {
4804
- M(`${ve}form_error`);
4804
+ S(`${ve}form_error`);
4805
4805
  }
4806
- }, ne = () => {
4807
- b && b.updateConversation && b.updateConversation({ showThread: !0, showForm: !0 }), setTimeout(() => {
4806
+ }, ie = () => {
4807
+ v && v.updateConversation && v.updateConversation({ showThread: !0, showForm: !0 }), setTimeout(() => {
4808
4808
  var me, pe, Ee;
4809
- const ue = `reply-form-${(t.type === "answer" ? t.slug : ((me = t.slugs) == null ? void 0 : me.reply) || ((pe = t.slugs) == null ? void 0 : pe.answer) || ((Ee = t.slugs) == null ? void 0 : Ee.question) || "").toLowerCase().slice(-15)}`, K = document.getElementById(ue), ie = document.getElementById(`${ue}-input`);
4810
- ie && ie.focus(), K && K.scrollIntoView({ behavior: "smooth" });
4809
+ const ue = `reply-form-${(t.type === "answer" ? t.slug : ((me = t.slugs) == null ? void 0 : me.reply) || ((pe = t.slugs) == null ? void 0 : pe.answer) || ((Ee = t.slugs) == null ? void 0 : Ee.question) || "").toLowerCase().slice(-15)}`, K = document.getElementById(ue), se = document.getElementById(`${ue}-input`);
4810
+ se && se.focus(), K && K.scrollIntoView({ behavior: "smooth" });
4811
4811
  }, 0);
4812
- }, oe = () => {
4813
- I(!1);
4812
+ }, de = () => {
4813
+ Z(!1);
4814
4814
  try {
4815
4815
  c(Sn(t.slugs));
4816
4816
  } catch {
4817
- M("delete-error");
4817
+ S("delete-error");
4818
4818
  }
4819
- }, le = [
4819
+ }, ce = [
4820
4820
  {
4821
- text: v.formatMessage({ id: `${ve}moreMenu_report` }),
4821
+ text: y.formatMessage({ id: `${ve}moreMenu_report` }),
4822
4822
  href: `mailto:community@apolitical.co?subject=${encodeURI(
4823
- v.formatMessage({ id: `${ve}report_subject` })
4823
+ y.formatMessage({ id: `${ve}report_subject` })
4824
4824
  )}&body=${encodeURI(
4825
- v.formatMessage(
4825
+ y.formatMessage(
4826
4826
  { id: `${ve}report_body` },
4827
4827
  {
4828
4828
  contentType: t.type || "",
@@ -4834,19 +4834,19 @@ const ve = "discussion_", $s = 280, kt = ({
4834
4834
  icon: "flag"
4835
4835
  }
4836
4836
  ];
4837
- return n && ee && le.push(
4837
+ return n && te && ce.push(
4838
4838
  {
4839
- text: v.formatMessage({ id: `${ve}moreMenu_edit` }),
4840
- onClick: () => S({ ...j, isEditing: !0 }),
4839
+ text: y.formatMessage({ id: `${ve}moreMenu_edit` }),
4840
+ onClick: () => $({ ...j, isEditing: !0 }),
4841
4841
  icon: "pencil-paper",
4842
4842
  className: "gtm-trackable",
4843
4843
  "data-gtm-event-context": g,
4844
4844
  "data-gtm-event-type": `edit-${t.type}-click`
4845
4845
  },
4846
4846
  {
4847
- text: v.formatMessage({ id: `${ve}moreMenu_delete` }),
4848
- onClick: (Z) => {
4849
- Z.preventDefault(), Z.stopPropagation(), I(!0);
4847
+ text: y.formatMessage({ id: `${ve}moreMenu_delete` }),
4848
+ onClick: (W) => {
4849
+ W.preventDefault(), W.stopPropagation(), Z(!0);
4850
4850
  },
4851
4851
  icon: "trash",
4852
4852
  className: "gtm-trackable",
@@ -4854,28 +4854,28 @@ const ve = "discussion_", $s = 280, kt = ({
4854
4854
  "data-gtm-event-type": `delete-${t.type}-click`,
4855
4855
  ..._s(`delete-${t.slug}-modal`, C)
4856
4856
  }
4857
- ), A.createElement(e, {
4857
+ ), F.createElement(e, {
4858
4858
  className: w("discussion-post", h),
4859
4859
  "data-testid": `discussion-${t.type}-thread`,
4860
4860
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
4861
4861
  /* @__PURE__ */ a.jsxs(
4862
4862
  "div",
4863
4863
  {
4864
- id: H || t.slug,
4864
+ id: q || t.slug,
4865
4865
  className: w("discussion-card", t.type, {
4866
4866
  editing: j.isEditing,
4867
4867
  "has-link": p.post && !j.isEditing
4868
4868
  }),
4869
- onClick: (Z) => {
4870
- !p.post || j.isEditing || (Z.preventDefault(), Z.stopPropagation(), window.location.href = p.post);
4869
+ onClick: (W) => {
4870
+ !p.post || j.isEditing || (W.preventDefault(), W.stopPropagation(), window.location.href = p.post);
4871
4871
  },
4872
4872
  children: [
4873
4873
  !j.isEditing && /* @__PURE__ */ a.jsx(
4874
4874
  Xt,
4875
4875
  {
4876
- member: T,
4877
- additionalContent: { createdAt: O, didEdit: j.didEdit },
4878
- className: typeof T != "string" && T.id === s ? "highlighted" : "",
4876
+ member: M,
4877
+ additionalContent: { createdAt: N, didEdit: j.didEdit },
4878
+ className: typeof M != "string" && M.id === s ? "highlighted" : "",
4879
4879
  gtmContext: g,
4880
4880
  gtmType: "profile-click"
4881
4881
  }
@@ -4892,10 +4892,10 @@ const ve = "discussion_", $s = 280, kt = ({
4892
4892
  },
4893
4893
  maxLength: t.type === "question" ? 250 : 5e4,
4894
4894
  forceShow: {
4895
- error: F !== "" && F !== "delete-error" ? v.formatMessage(
4896
- { id: F },
4895
+ error: L !== "" && L !== "delete-error" ? y.formatMessage(
4896
+ { id: L },
4897
4897
  {
4898
- action: v.formatMessage({
4898
+ action: y.formatMessage({
4899
4899
  id: `discussion_action_${t.type}`
4900
4900
  })
4901
4901
  }
@@ -4903,9 +4903,9 @@ const ve = "discussion_", $s = 280, kt = ({
4903
4903
  },
4904
4904
  functions: {
4905
4905
  create: o,
4906
- handleSaveEdit: se,
4906
+ handleSaveEdit: J,
4907
4907
  handleCancel: () => {
4908
- M(""), S({ ...j, isEditing: !1 });
4908
+ S(""), $({ ...j, isEditing: !1 });
4909
4909
  }
4910
4910
  },
4911
4911
  gtmContext: `${g}Form`
@@ -4917,18 +4917,18 @@ const ve = "discussion_", $s = 280, kt = ({
4917
4917
  className: "gtm-trackable",
4918
4918
  "data-gtm-event-context": g,
4919
4919
  "data-gtm-event-type": "title-click",
4920
- children: /* @__PURE__ */ a.jsx(jn, { options: { overrides: { a: Zr } }, children: V })
4920
+ children: /* @__PURE__ */ a.jsx(jn, { options: { overrides: { a: Zr } }, children: z })
4921
4921
  }
4922
4922
  ) : /* @__PURE__ */ a.jsx(
4923
4923
  jn,
4924
4924
  {
4925
4925
  options: {
4926
- wrapper: t.type === "question" ? "h1" : A.Fragment,
4926
+ wrapper: t.type === "question" ? "h1" : F.Fragment,
4927
4927
  forceWrapper: t.type === "question",
4928
4928
  forceInline: t.type === "question",
4929
4929
  forceBlock: t.type !== "question"
4930
4930
  },
4931
- children: V
4931
+ children: z
4932
4932
  }
4933
4933
  ),
4934
4934
  !j.isEditing && /* @__PURE__ */ a.jsxs(
@@ -4941,9 +4941,9 @@ const ve = "discussion_", $s = 280, kt = ({
4941
4941
  Ts,
4942
4942
  {
4943
4943
  element: "li",
4944
- likes: U,
4944
+ likes: H,
4945
4945
  isShort: !1,
4946
- userLiked: W,
4946
+ userLiked: Y,
4947
4947
  content: { type: t.type, slugs: t.slugs },
4948
4948
  canLike: re,
4949
4949
  peopleWhoLiked: t.peopleWhoLiked,
@@ -4957,12 +4957,12 @@ const ve = "discussion_", $s = 280, kt = ({
4957
4957
  "li",
4958
4958
  {
4959
4959
  className: "action-button",
4960
- onClick: (Z) => {
4961
- Z.preventDefault(), Z.stopPropagation(), p.comments && (window.location.href = p.comments), typeof d == "function" && d();
4960
+ onClick: (W) => {
4961
+ W.preventDefault(), W.stopPropagation(), p.comments && (window.location.href = p.comments), typeof d == "function" && d();
4962
4962
  },
4963
4963
  children: [
4964
4964
  /* @__PURE__ */ a.jsx(
4965
- q,
4965
+ B,
4966
4966
  {
4967
4967
  variant: "tertiary",
4968
4968
  size: "medium",
@@ -4973,13 +4973,13 @@ const ve = "discussion_", $s = 280, kt = ({
4973
4973
  className: "gtm-trackable",
4974
4974
  "data-gtm-event-context": g,
4975
4975
  "data-gtm-event-type": `answer-${t.type}-click`,
4976
- screenreaderText: v.formatMessage(
4976
+ screenreaderText: y.formatMessage(
4977
4977
  { id: `${ve}comments_screenReader` },
4978
4978
  { count: Q }
4979
4979
  )
4980
4980
  }
4981
4981
  ),
4982
- /* @__PURE__ */ a.jsx("span", { children: v.formatMessage(
4982
+ /* @__PURE__ */ a.jsx("span", { children: y.formatMessage(
4983
4983
  { id: `${ve}comments` },
4984
4984
  { count: Q }
4985
4985
  ) })
@@ -4987,13 +4987,13 @@ const ve = "discussion_", $s = 280, kt = ({
4987
4987
  }
4988
4988
  ),
4989
4989
  (t.type === "answer" || t.type === "reply") && /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
4990
- q,
4990
+ B,
4991
4991
  {
4992
4992
  variant: "tertiary",
4993
4993
  size: "medium",
4994
4994
  styling: { muted: !0 },
4995
- onClick: ne,
4996
- children: v.formatMessage({ id: `${ve}reply` })
4995
+ onClick: ie,
4996
+ children: y.formatMessage({ id: `${ve}reply` })
4997
4997
  }
4998
4998
  ) }),
4999
4999
  /* @__PURE__ */ a.jsx(
@@ -5001,7 +5001,7 @@ const ve = "discussion_", $s = 280, kt = ({
5001
5001
  {
5002
5002
  element: "li",
5003
5003
  id: `more-${t.slug}`,
5004
- options: le
5004
+ options: ce
5005
5005
  }
5006
5006
  )
5007
5007
  ]
@@ -5010,39 +5010,39 @@ const ve = "discussion_", $s = 280, kt = ({
5010
5010
  ]
5011
5011
  }
5012
5012
  ),
5013
- y,
5013
+ b,
5014
5014
  /* @__PURE__ */ a.jsx(
5015
5015
  la,
5016
5016
  {
5017
5017
  id: `delete-${t.slug}-modal`,
5018
5018
  isOpen: C,
5019
5019
  functions: { onOpen: () => {
5020
- }, onClose: () => I(!1) },
5020
+ }, onClose: () => Z(!1) },
5021
5021
  forceShow: {
5022
- error: F === "delete-error" ? v.formatMessage(
5022
+ error: L === "delete-error" ? y.formatMessage(
5023
5023
  { id: "discussion_delete_error" },
5024
5024
  {
5025
- action: v.formatMessage({
5025
+ action: y.formatMessage({
5026
5026
  id: `discussion_action_${t.type}`
5027
5027
  })
5028
5028
  }
5029
5029
  ) : !1
5030
5030
  },
5031
- title: v.formatMessage(
5031
+ title: y.formatMessage(
5032
5032
  { id: "discussion_delete_title" },
5033
- { action: v.formatMessage({ id: `discussion_action_${t.type}` }) }
5033
+ { action: y.formatMessage({ id: `discussion_action_${t.type}` }) }
5034
5034
  ),
5035
5035
  buttons: [
5036
5036
  {
5037
5037
  variant: "secondary",
5038
- onClick: () => I(!1),
5039
- children: v.formatMessage({ id: "discussion_delete_cancel" })
5038
+ onClick: () => Z(!1),
5039
+ children: y.formatMessage({ id: "discussion_delete_cancel" })
5040
5040
  },
5041
5041
  {
5042
5042
  variant: "primary",
5043
5043
  className: "destructive",
5044
- onClick: oe,
5045
- children: v.formatMessage({ id: "discussion_delete_delete" })
5044
+ onClick: de,
5045
+ children: y.formatMessage({ id: "discussion_delete_delete" })
5046
5046
  }
5047
5047
  ],
5048
5048
  gtmContext: `${t.type.charAt(0).toUpperCase()}${t.type.slice(1)}:${t.slug}`,
@@ -5051,8 +5051,8 @@ const ve = "discussion_", $s = 280, kt = ({
5051
5051
  {
5052
5052
  id: "discussion_delete_text",
5053
5053
  values: {
5054
- p: (Z) => /* @__PURE__ */ a.jsx("p", { children: Z }),
5055
- action: v.formatMessage({
5054
+ p: (W) => /* @__PURE__ */ a.jsx("p", { children: W }),
5055
+ action: y.formatMessage({
5056
5056
  id: `discussion_action_${t.type}`
5057
5057
  })
5058
5058
  }
@@ -5064,16 +5064,16 @@ const ve = "discussion_", $s = 280, kt = ({
5064
5064
  });
5065
5065
  };
5066
5066
  const qt = "discussion_responses_", Yi = ({ type: e = "answer", responses: t = 0 }) => {
5067
- const n = P();
5067
+ const n = A();
5068
5068
  return /* @__PURE__ */ a.jsxs("div", { className: "responses-heading", children: [
5069
5069
  /* @__PURE__ */ a.jsx("h3", { children: n.formatMessage({ id: `${qt}title` }, { action: n.formatMessage({ id: `${qt}${e}` }), count: t }) }),
5070
5070
  t === 0 && /* @__PURE__ */ a.jsx("p", { children: be(n.formatMessage, `${qt}empty`, e, e) })
5071
5071
  ] });
5072
5072
  };
5073
5073
  const Es = ({ count: e = "", showRepliesButton: t = !0, children: n }) => {
5074
- const r = P(), s = te(null), i = ge(vt), [o, c] = D(
5075
- "closed"
5076
- /* Closed */
5074
+ const r = A(), s = ne(null), i = ge(vt), [o, c] = D(
5075
+ "open"
5076
+ /* Open */
5077
5077
  );
5078
5078
  G(() => {
5079
5079
  const d = s.current;
@@ -5107,7 +5107,7 @@ const Es = ({ count: e = "", showRepliesButton: t = !0, children: n }) => {
5107
5107
  });
5108
5108
  return /* @__PURE__ */ a.jsxs("div", { className: "thread-wrapper", children: [
5109
5109
  t && /* @__PURE__ */ a.jsx(
5110
- q,
5110
+ B,
5111
5111
  {
5112
5112
  variant: "secondary",
5113
5113
  size: "small",
@@ -5464,7 +5464,7 @@ function Bs({
5464
5464
  },
5465
5465
  user: m,
5466
5466
  ...l
5467
- }, d = Is({ ...f, mutationFn: e }), p = Os({ ...f, mutationFn: t }), h = Zs({ ...f, mutationFn: n }), g = Hs({ ...f, mutationFn: s }), y = Us({ ...f, mutationFn: i }), { activities: k, ...v } = qs({ queryKey: o, queryFn: r });
5467
+ }, d = Is({ ...f, mutationFn: e }), p = Os({ ...f, mutationFn: t }), h = Zs({ ...f, mutationFn: n }), g = Hs({ ...f, mutationFn: s }), b = Us({ ...f, mutationFn: i }), { activities: k, ...y } = qs({ queryKey: o, queryFn: r });
5468
5468
  return {
5469
5469
  activities: k,
5470
5470
  mutations: {
@@ -5472,10 +5472,10 @@ function Bs({
5472
5472
  edit: p,
5473
5473
  remove: g,
5474
5474
  like: h,
5475
- unlike: y
5475
+ unlike: b
5476
5476
  },
5477
5477
  user: m,
5478
- ...v
5478
+ ...y
5479
5479
  };
5480
5480
  }
5481
5481
  function Zs({
@@ -5595,7 +5595,7 @@ const Gi = ({
5595
5595
  leave: i
5596
5596
  }
5597
5597
  }) => {
5598
- const o = P(), {
5598
+ const o = A(), {
5599
5599
  activities: c,
5600
5600
  error: m,
5601
5601
  fetchNextPage: l,
@@ -5605,10 +5605,10 @@ const Gi = ({
5605
5605
  create: p,
5606
5606
  edit: h,
5607
5607
  remove: g,
5608
- like: y,
5608
+ like: b,
5609
5609
  unlike: k
5610
5610
  },
5611
- user: v
5611
+ user: y
5612
5612
  } = Bs({
5613
5613
  queryKey: [e, t, "activities"],
5614
5614
  queryFns: r
@@ -5629,14 +5629,19 @@ const Gi = ({
5629
5629
  }
5630
5630
  ),
5631
5631
  c == null ? void 0 : c.map((_) => {
5632
- var O, H, U, W, Q, V, ee, re, se;
5633
- const { own_reactions: b, latest_reactions: j } = _, S = (((O = j == null ? void 0 : j.like) == null ? void 0 : O.length) || 0) > 0, C = (((H = b == null ? void 0 : b.like) == null ? void 0 : H.length) || 0) > 0, I = _ == null ? void 0 : _.id, F = C ? b == null ? void 0 : b.like[0].id : null, M = S ? (U = j == null ? void 0 : j.like) == null ? void 0 : U.map((ne) => {
5634
- var oe, le, Z;
5632
+ var q, H, Y, Q, z, te, re;
5633
+ const {
5634
+ id: v,
5635
+ own_reactions: j,
5636
+ latest_reactions: $,
5637
+ reaction_counts: C
5638
+ } = _, Z = (((q = $ == null ? void 0 : $.like) == null ? void 0 : q.length) || 0) > 0, L = (((H = j == null ? void 0 : j.like) == null ? void 0 : H.length) || 0) > 0, S = L ? j == null ? void 0 : j.like[0].id : null, M = Z ? (Y = $ == null ? void 0 : $.like) == null ? void 0 : Y.map((J) => {
5639
+ var ie, de, ce;
5635
5640
  return {
5636
- id: (oe = ne == null ? void 0 : ne.user) == null ? void 0 : oe.id,
5637
- name: (Z = (le = ne == null ? void 0 : ne.user) == null ? void 0 : le.data) == null ? void 0 : Z.name
5641
+ id: (ie = J == null ? void 0 : J.user) == null ? void 0 : ie.id,
5642
+ name: (ce = (de = J == null ? void 0 : J.user) == null ? void 0 : de.data) == null ? void 0 : ce.name
5638
5643
  };
5639
- }) : !1, T = _ == null ? void 0 : _.actor, E = (T == null ? void 0 : T.id) === (v == null ? void 0 : v.id);
5644
+ }) : !1, E = _ == null ? void 0 : _.actor, N = (E == null ? void 0 : E.id) === (y == null ? void 0 : y.id);
5640
5645
  return /* @__PURE__ */ a.jsxs(qe, { children: [
5641
5646
  /* @__PURE__ */ a.jsx(
5642
5647
  kt,
@@ -5644,41 +5649,41 @@ const Gi = ({
5644
5649
  content: {
5645
5650
  type: "post",
5646
5651
  body: _ == null ? void 0 : _.content,
5647
- canLike: xt(n, E),
5652
+ canLike: xt(n, N),
5648
5653
  createdAt: (_ == null ? void 0 : _.time) || "",
5649
5654
  slugs: {
5650
5655
  question: `${e}/${t}`,
5651
- answer: I
5656
+ answer: v
5652
5657
  },
5653
- slug: I,
5658
+ slug: v,
5654
5659
  author: {
5655
- id: T == null ? void 0 : T.id,
5656
- name: (W = T == null ? void 0 : T.data) == null ? void 0 : W.name,
5657
- organization: (Q = T == null ? void 0 : T.data) == null ? void 0 : Q.organization,
5658
- jobTitle: (V = T == null ? void 0 : T.data) == null ? void 0 : V.jobTitle,
5660
+ id: E == null ? void 0 : E.id,
5661
+ name: (Q = E == null ? void 0 : E.data) == null ? void 0 : Q.name,
5662
+ organization: (z = E == null ? void 0 : E.data) == null ? void 0 : z.organization,
5663
+ jobTitle: (te = E == null ? void 0 : E.data) == null ? void 0 : te.jobTitle,
5659
5664
  image: {
5660
- thumbnail: ((ee = T == null ? void 0 : T.data) == null ? void 0 : ee.thumbnail) || void 0
5665
+ thumbnail: ((re = E == null ? void 0 : E.data) == null ? void 0 : re.thumbnail) || void 0
5661
5666
  }
5662
5667
  },
5663
- userLiked: C,
5664
- likes: ((re = _ == null ? void 0 : _.reaction_counts) == null ? void 0 : re.like) || 0,
5665
- comments: ((se = _ == null ? void 0 : _.reaction_counts) == null ? void 0 : se.reply) || 0,
5668
+ userLiked: L,
5669
+ likes: (C == null ? void 0 : C.like) || 0,
5670
+ comments: (C == null ? void 0 : C.reply) || 0,
5666
5671
  peopleWhoLiked: M
5667
5672
  },
5668
5673
  links: {
5669
- post: `${e}/${t}/${I}`,
5670
- comments: `${e}/${t}/${I}`
5674
+ post: `${e}/${t}/${v}`,
5675
+ comments: `${e}/${t}/${v}`
5671
5676
  },
5672
5677
  functions: {
5673
5678
  content: {
5674
5679
  createContent: () => null,
5675
- deleteContent: () => g({ activityId: I }),
5680
+ deleteContent: () => g({ activityId: v }),
5676
5681
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
5677
- updateContent: (ne, { body: oe }) => h({ activityId: I, content: oe })
5682
+ updateContent: (J, { body: ie }) => h({ activityId: v, content: ie })
5678
5683
  },
5679
5684
  likes: {
5680
- createLike: () => y({ activityId: I }),
5681
- deleteLike: () => k({ activityId: I, reactionId: F })
5685
+ createLike: () => b({ activityId: v }),
5686
+ deleteLike: () => k({ activityId: v, reactionId: S })
5682
5687
  },
5683
5688
  comments: {
5684
5689
  openComments: () => null
@@ -5688,7 +5693,7 @@ const Gi = ({
5688
5693
  }
5689
5694
  ),
5690
5695
  /* @__PURE__ */ a.jsx(Te, {})
5691
- ] }, I);
5696
+ ] }, v);
5692
5697
  }),
5693
5698
  !d && /* @__PURE__ */ a.jsx(
5694
5699
  yt,
@@ -6311,7 +6316,7 @@ function ha({
6311
6316
  },
6312
6317
  user: m,
6313
6318
  ...l
6314
- }, d = Vs({ ...f, mutationFn: e }), p = Ys({ ...f, mutationFn: t }), h = Gs({ ...f, mutationFn: n }), g = Qs({ ...f, mutationFn: s }), y = Js({ ...f, mutationFn: i }), { replies: k, ...v } = Ks({ queryKey: o, queryFn: r });
6319
+ }, d = Vs({ ...f, mutationFn: e }), p = Ys({ ...f, mutationFn: t }), h = Gs({ ...f, mutationFn: n }), g = Qs({ ...f, mutationFn: s }), b = Js({ ...f, mutationFn: i }), { replies: k, ...y } = Ks({ queryKey: o, queryFn: r });
6315
6320
  return {
6316
6321
  replies: k,
6317
6322
  mutations: {
@@ -6319,10 +6324,10 @@ function ha({
6319
6324
  edit: p,
6320
6325
  remove: g,
6321
6326
  like: h,
6322
- unlike: y
6327
+ unlike: b
6323
6328
  },
6324
6329
  user: m,
6325
- ...v
6330
+ ...y
6326
6331
  };
6327
6332
  }
6328
6333
  function Gs({
@@ -6451,7 +6456,7 @@ const ri = ({
6451
6456
  isMember: s,
6452
6457
  functions: i
6453
6458
  }) => {
6454
- const o = P(), {
6459
+ const o = A(), {
6455
6460
  replies: c,
6456
6461
  repliesCount: m,
6457
6462
  fetchNextPage: l,
@@ -6461,68 +6466,73 @@ const ri = ({
6461
6466
  create: p,
6462
6467
  edit: h,
6463
6468
  like: g,
6464
- remove: y,
6469
+ remove: b,
6465
6470
  unlike: k
6466
6471
  },
6467
- user: v
6472
+ user: y
6468
6473
  } = ha({
6469
6474
  queryKey: [e, t, n, r, "replies"],
6470
6475
  queryFns: {
6471
6476
  ...i,
6472
6477
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6473
- list: (b) => i.list({ ...b, reactionId: r })
6478
+ list: (v) => i.list({ ...v, reactionId: r })
6474
6479
  }
6475
6480
  }), _ = ge(vt);
6476
6481
  return /* @__PURE__ */ a.jsx(
6477
6482
  Es,
6478
6483
  {
6479
6484
  count: m,
6480
- showRepliesButton: c.length > 0 && _.showForm,
6485
+ showRepliesButton: !1,
6481
6486
  children: /* @__PURE__ */ a.jsxs("section", { children: [
6482
- c == null ? void 0 : c.map((b) => {
6483
- var W, Q, V, ee, re, se, ne, oe, le, Z, ue;
6484
- const { id: j, own_children: S, latest_children: C } = b, I = (((W = C == null ? void 0 : C.like) == null ? void 0 : W.length) || 0) > 0, F = (((Q = S == null ? void 0 : S.like) == null ? void 0 : Q.length) || 0) > 0, M = F ? S == null ? void 0 : S.like[0].id : null, T = I ? (V = C == null ? void 0 : C.like) == null ? void 0 : V.map((K) => {
6485
- var ie, me, pe;
6487
+ c == null ? void 0 : c.map((v) => {
6488
+ var Q, z, te, re, J, ie, de, ce, W, ue;
6489
+ const {
6490
+ id: j,
6491
+ own_children: $,
6492
+ latest_children: C,
6493
+ children_counts: Z
6494
+ } = v, L = (((Q = C == null ? void 0 : C.like) == null ? void 0 : Q.length) || 0) > 0, S = (((z = $ == null ? void 0 : $.like) == null ? void 0 : z.length) || 0) > 0, M = S ? $ == null ? void 0 : $.like[0].id : null, E = L ? (te = C == null ? void 0 : C.like) == null ? void 0 : te.map((K) => {
6495
+ var se, me, pe;
6486
6496
  return {
6487
- id: (ie = K == null ? void 0 : K.user) == null ? void 0 : ie.id,
6497
+ id: (se = K == null ? void 0 : K.user) == null ? void 0 : se.id,
6488
6498
  name: (pe = (me = K == null ? void 0 : K.user) == null ? void 0 : me.data) == null ? void 0 : pe.name
6489
6499
  };
6490
- }) : !1, E = b == null ? void 0 : b.user, O = (E == null ? void 0 : E.id) === (v == null ? void 0 : v.id), H = xt(s, O), U = typeof b.data.content == "string" ? (ee = b == null ? void 0 : b.data) == null ? void 0 : ee.content : ((se = (re = b == null ? void 0 : b.data) == null ? void 0 : re.content) == null ? void 0 : se.text) || "";
6500
+ }) : !1, N = v == null ? void 0 : v.user, q = (N == null ? void 0 : N.id) === (y == null ? void 0 : y.id), H = xt(s, q), Y = typeof v.data.content == "string" ? (re = v == null ? void 0 : v.data) == null ? void 0 : re.content : ((ie = (J = v == null ? void 0 : v.data) == null ? void 0 : J.content) == null ? void 0 : ie.text) || "";
6491
6501
  return /* @__PURE__ */ a.jsx(
6492
6502
  kt,
6493
6503
  {
6494
6504
  content: {
6495
6505
  type: "reply",
6496
- body: U,
6506
+ body: Y,
6497
6507
  canLike: H,
6498
- createdAt: b == null ? void 0 : b.created_at,
6508
+ createdAt: v == null ? void 0 : v.created_at,
6499
6509
  slugs: {
6500
6510
  question: `${e}/${t}`,
6501
6511
  answer: n,
6502
6512
  // Stop-gap solution to avoid having to change the DiscussionPost component
6503
6513
  // The `reply` is currently used to define the form ID which handles the focus
6504
- reply: b == null ? void 0 : b.parent
6514
+ reply: v == null ? void 0 : v.parent
6505
6515
  },
6506
6516
  slug: "",
6507
6517
  author: {
6508
- id: E == null ? void 0 : E.id,
6509
- name: (ne = E.data) == null ? void 0 : ne.name,
6510
- organization: (oe = E.data) == null ? void 0 : oe.organization,
6511
- jobTitle: (le = E.data) == null ? void 0 : le.jobTitle,
6518
+ id: N == null ? void 0 : N.id,
6519
+ name: (de = N.data) == null ? void 0 : de.name,
6520
+ organization: (ce = N.data) == null ? void 0 : ce.organization,
6521
+ jobTitle: (W = N.data) == null ? void 0 : W.jobTitle,
6512
6522
  image: {
6513
- thumbnail: ((Z = E.data) == null ? void 0 : Z.thumbnail) || void 0
6523
+ thumbnail: ((ue = N.data) == null ? void 0 : ue.thumbnail) || void 0
6514
6524
  }
6515
6525
  },
6516
- userLiked: F,
6517
- likes: ((ue = b == null ? void 0 : b.children_counts) == null ? void 0 : ue.like) || 0,
6518
- peopleWhoLiked: T
6526
+ userLiked: S,
6527
+ likes: (Z == null ? void 0 : Z.like) || 0,
6528
+ peopleWhoLiked: E
6519
6529
  },
6520
6530
  functions: {
6521
6531
  content: {
6522
6532
  createContent: () => null,
6523
- deleteContent: () => y({ replyId: j }),
6533
+ deleteContent: () => b({ replyId: j }),
6524
6534
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6525
- updateContent: (K, { body: ie }) => h({ replyId: j, content: ie })
6535
+ updateContent: (K, { body: se }) => h({ replyId: j, content: se })
6526
6536
  },
6527
6537
  likes: {
6528
6538
  createLike: () => g({ replyId: j }),
@@ -6560,7 +6570,7 @@ const ri = ({
6560
6570
  },
6561
6571
  functions: {
6562
6572
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6563
- create: (b, { body: j }) => p({ activityId: n, replyId: r, content: j })
6573
+ create: (v, { body: j }) => p({ activityId: n, replyId: r, content: j })
6564
6574
  }
6565
6575
  }
6566
6576
  )
@@ -6578,7 +6588,7 @@ const ri = ({
6578
6588
  leave: o
6579
6589
  }
6580
6590
  }) => {
6581
- const c = P(), {
6591
+ const c = A(), {
6582
6592
  replies: m,
6583
6593
  repliesCount: l,
6584
6594
  fetchNextPage: f,
@@ -6587,9 +6597,9 @@ const ri = ({
6587
6597
  mutations: {
6588
6598
  create: h,
6589
6599
  edit: g,
6590
- like: y,
6600
+ like: b,
6591
6601
  remove: k,
6592
- unlike: v
6602
+ unlike: y
6593
6603
  },
6594
6604
  user: _
6595
6605
  } = ha({
@@ -6607,7 +6617,7 @@ const ri = ({
6607
6617
  da,
6608
6618
  {
6609
6619
  contentType: "reply",
6610
- createPost: (b, { body: j }) => h({ activityId: n, content: j }),
6620
+ createPost: (v, { body: j }) => h({ activityId: n, content: j }),
6611
6621
  membershipRequiredToPost: {
6612
6622
  isMember: r,
6613
6623
  required: !0,
@@ -6617,52 +6627,57 @@ const ri = ({
6617
6627
  }
6618
6628
  }
6619
6629
  ),
6620
- m == null ? void 0 : m.map((b) => {
6621
- var W, Q, V, ee, re, se, ne, oe, le, Z, ue;
6622
- const { own_children: j, latest_children: S } = b, C = b == null ? void 0 : b.id, I = (((W = S == null ? void 0 : S.like) == null ? void 0 : W.length) || 0) > 0, F = (((Q = j == null ? void 0 : j.like) == null ? void 0 : Q.length) || 0) > 0, M = F ? j == null ? void 0 : j.like[0].id : null, T = I ? (V = S == null ? void 0 : S.like) == null ? void 0 : V.map((K) => {
6623
- var ie, me, pe;
6630
+ m == null ? void 0 : m.map((v) => {
6631
+ var Q, z, te, re, J, ie, de, ce, W, ue;
6632
+ const {
6633
+ id: j,
6634
+ own_children: $,
6635
+ latest_children: C,
6636
+ children_counts: Z
6637
+ } = v, L = (((Q = C == null ? void 0 : C.like) == null ? void 0 : Q.length) || 0) > 0, S = (((z = $ == null ? void 0 : $.like) == null ? void 0 : z.length) || 0) > 0, M = S ? $ == null ? void 0 : $.like[0].id : null, E = L ? (te = C == null ? void 0 : C.like) == null ? void 0 : te.map((K) => {
6638
+ var se, me, pe;
6624
6639
  return {
6625
- id: (ie = K == null ? void 0 : K.user) == null ? void 0 : ie.id,
6640
+ id: (se = K == null ? void 0 : K.user) == null ? void 0 : se.id,
6626
6641
  name: (pe = (me = K == null ? void 0 : K.user) == null ? void 0 : me.data) == null ? void 0 : pe.name
6627
6642
  };
6628
- }) : !1, E = b == null ? void 0 : b.user, O = (E == null ? void 0 : E.id) === (_ == null ? void 0 : _.id), H = xt(r, O), U = typeof b.data.content == "string" ? (ee = b == null ? void 0 : b.data) == null ? void 0 : ee.content : ((se = (re = b == null ? void 0 : b.data) == null ? void 0 : re.content) == null ? void 0 : se.text) || "";
6643
+ }) : !1, N = v == null ? void 0 : v.user, q = (N == null ? void 0 : N.id) === (_ == null ? void 0 : _.id), H = xt(r, q), Y = typeof v.data.content == "string" ? (re = v == null ? void 0 : v.data) == null ? void 0 : re.content : ((ie = (J = v == null ? void 0 : v.data) == null ? void 0 : J.content) == null ? void 0 : ie.text) || "";
6629
6644
  return /* @__PURE__ */ a.jsx(ks, { children: /* @__PURE__ */ a.jsx(
6630
6645
  kt,
6631
6646
  {
6632
6647
  content: {
6633
6648
  type: "reply",
6634
- body: U,
6649
+ body: Y,
6635
6650
  canLike: H,
6636
- createdAt: b == null ? void 0 : b.created_at,
6651
+ createdAt: v == null ? void 0 : v.created_at,
6637
6652
  slugs: {
6638
6653
  question: `${e}/${t}`,
6639
6654
  answer: n,
6640
- reply: C
6655
+ reply: j
6641
6656
  },
6642
- slug: C,
6657
+ slug: j,
6643
6658
  author: {
6644
- id: E == null ? void 0 : E.id,
6645
- name: (ne = E.data) == null ? void 0 : ne.name,
6646
- organization: (oe = E.data) == null ? void 0 : oe.organization,
6647
- jobTitle: (le = E.data) == null ? void 0 : le.jobTitle,
6659
+ id: N == null ? void 0 : N.id,
6660
+ name: (de = N.data) == null ? void 0 : de.name,
6661
+ organization: (ce = N.data) == null ? void 0 : ce.organization,
6662
+ jobTitle: (W = N.data) == null ? void 0 : W.jobTitle,
6648
6663
  image: {
6649
- thumbnail: ((Z = E.data) == null ? void 0 : Z.thumbnail) || void 0
6664
+ thumbnail: ((ue = N.data) == null ? void 0 : ue.thumbnail) || void 0
6650
6665
  }
6651
6666
  },
6652
- userLiked: F,
6653
- likes: ((ue = b == null ? void 0 : b.children_counts) == null ? void 0 : ue.like) || 0,
6654
- peopleWhoLiked: T
6667
+ userLiked: S,
6668
+ likes: (Z == null ? void 0 : Z.like) || 0,
6669
+ peopleWhoLiked: E
6655
6670
  },
6656
6671
  functions: {
6657
6672
  content: {
6658
6673
  createContent: () => null,
6659
- deleteContent: () => k({ replyId: C }),
6674
+ deleteContent: () => k({ replyId: j }),
6660
6675
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6661
- updateContent: (K, { body: ie }) => g({ replyId: C, content: ie })
6676
+ updateContent: (K, { body: se }) => g({ replyId: j, content: se })
6662
6677
  },
6663
6678
  likes: {
6664
- createLike: () => y({ replyId: C }),
6665
- deleteLike: () => v({ replyId: C, reactionId: M })
6679
+ createLike: () => b({ replyId: j }),
6680
+ deleteLike: () => y({ replyId: j, reactionId: M })
6666
6681
  },
6667
6682
  comments: {}
6668
6683
  },
@@ -6672,7 +6687,7 @@ const ri = ({
6672
6687
  basePath: e,
6673
6688
  parentId: t,
6674
6689
  activityId: n,
6675
- replyId: C,
6690
+ replyId: j,
6676
6691
  isMember: r,
6677
6692
  functions: {
6678
6693
  ...s
@@ -6680,8 +6695,8 @@ const ri = ({
6680
6695
  }
6681
6696
  )
6682
6697
  },
6683
- C
6684
- ) }, C);
6698
+ j
6699
+ ) }, j);
6685
6700
  }),
6686
6701
  !p && /* @__PURE__ */ a.jsx(
6687
6702
  yt,
@@ -6802,14 +6817,14 @@ const Qi = ({
6802
6817
  leave: m
6803
6818
  }
6804
6819
  }) => {
6805
- var F, M, T, E, O, H, U, W, Q;
6806
- const l = P(), f = ge(ke), {
6820
+ var L, S, M, E, N, q, H, Y, Q;
6821
+ const l = A(), f = ge(ke), {
6807
6822
  activity: d,
6808
6823
  error: p,
6809
6824
  isLoading: h,
6810
6825
  mutations: {
6811
6826
  edit: g,
6812
- like: y,
6827
+ like: b,
6813
6828
  unlike: k
6814
6829
  }
6815
6830
  } = ci({
@@ -6826,13 +6841,13 @@ const Qi = ({
6826
6841
  text: l.formatMessage({ id: "activitySection_notFoundError" })
6827
6842
  }
6828
6843
  );
6829
- const { own_reactions: v, latest_reactions: _ } = d, b = (((F = _ == null ? void 0 : _.like) == null ? void 0 : F.length) || 0) > 0, j = (((M = v == null ? void 0 : v.like) == null ? void 0 : M.length) || 0) > 0, S = b ? (T = _ == null ? void 0 : _.like) == null ? void 0 : T.map((V) => {
6830
- var ee, re, se;
6844
+ const { own_reactions: y, latest_reactions: _ } = d, v = (((L = _ == null ? void 0 : _.like) == null ? void 0 : L.length) || 0) > 0, j = (((S = y == null ? void 0 : y.like) == null ? void 0 : S.length) || 0) > 0, $ = v ? (M = _ == null ? void 0 : _.like) == null ? void 0 : M.map((z) => {
6845
+ var te, re, J;
6831
6846
  return {
6832
- id: (ee = V == null ? void 0 : V.user) == null ? void 0 : ee.id,
6833
- name: (se = (re = V == null ? void 0 : V.user) == null ? void 0 : re.data) == null ? void 0 : se.name
6847
+ id: (te = z == null ? void 0 : z.user) == null ? void 0 : te.id,
6848
+ name: (J = (re = z == null ? void 0 : z.user) == null ? void 0 : re.data) == null ? void 0 : J.name
6834
6849
  };
6835
- }) : !1, C = d == null ? void 0 : d.actor, I = (C == null ? void 0 : C.id) === (f == null ? void 0 : f.id);
6850
+ }) : !1, C = d == null ? void 0 : d.actor, Z = (C == null ? void 0 : C.id) === (f == null ? void 0 : f.id);
6836
6851
  return /* @__PURE__ */ a.jsx(
6837
6852
  kt,
6838
6853
  {
@@ -6840,7 +6855,7 @@ const Qi = ({
6840
6855
  content: {
6841
6856
  type: "post",
6842
6857
  body: d == null ? void 0 : d.content,
6843
- canLike: xt(r, I),
6858
+ canLike: xt(r, Z),
6844
6859
  createdAt: (d == null ? void 0 : d.time) || "",
6845
6860
  slugs: {
6846
6861
  question: `${e}/${t}`,
@@ -6850,16 +6865,16 @@ const Qi = ({
6850
6865
  author: {
6851
6866
  id: C.id,
6852
6867
  name: (E = C.data) == null ? void 0 : E.name,
6853
- organization: (O = C.data) == null ? void 0 : O.organization,
6854
- jobTitle: (H = C.data) == null ? void 0 : H.jobTitle,
6868
+ organization: (N = C.data) == null ? void 0 : N.organization,
6869
+ jobTitle: (q = C.data) == null ? void 0 : q.jobTitle,
6855
6870
  image: {
6856
- thumbnail: ((U = C.data) == null ? void 0 : U.thumbnail) || void 0
6871
+ thumbnail: ((H = C.data) == null ? void 0 : H.thumbnail) || void 0
6857
6872
  }
6858
6873
  },
6859
6874
  userLiked: j,
6860
- likes: ((W = d == null ? void 0 : d.reaction_counts) == null ? void 0 : W.like) || 0,
6875
+ likes: ((Y = d == null ? void 0 : d.reaction_counts) == null ? void 0 : Y.like) || 0,
6861
6876
  comments: ((Q = d == null ? void 0 : d.reaction_counts) == null ? void 0 : Q.reply) || 0,
6862
- peopleWhoLiked: S
6877
+ peopleWhoLiked: $
6863
6878
  },
6864
6879
  originalAuthorId: C == null ? void 0 : C.id,
6865
6880
  forceHide: { comments: !0 },
@@ -6868,10 +6883,10 @@ const Qi = ({
6868
6883
  createContent: () => null,
6869
6884
  deleteContent: s,
6870
6885
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6871
- updateContent: (V, { body: ee }) => g({ content: ee })
6886
+ updateContent: (z, { body: te }) => g({ content: te })
6872
6887
  },
6873
6888
  likes: {
6874
- createLike: () => y({ activityId: n }),
6889
+ createLike: () => b({ activityId: n }),
6875
6890
  deleteLike: () => k({ activityId: n })
6876
6891
  },
6877
6892
  comments: {
@@ -6947,7 +6962,7 @@ const Qi = ({
6947
6962
  }
6948
6963
  ];
6949
6964
  const tt = "notFoundError_", Xi = () => {
6950
- const e = P(), t = [];
6965
+ const e = A(), t = [];
6951
6966
  return Dn.forEach((n, r) => {
6952
6967
  n.title = e.formatMessage({ id: `${tt}post_${r + 1}` }), t.push("solutionArticle");
6953
6968
  }), /* @__PURE__ */ a.jsxs(
@@ -6966,7 +6981,7 @@ const tt = "notFoundError_", Xi = () => {
6966
6981
  })
6967
6982
  }
6968
6983
  ),
6969
- /* @__PURE__ */ a.jsx(q, { href: "/solution-articles/", children: e.formatMessage({ id: `${tt}cta` }) })
6984
+ /* @__PURE__ */ a.jsx(B, { href: "/solution-articles/", children: e.formatMessage({ id: `${tt}cta` }) })
6970
6985
  ] })
6971
6986
  },
6972
6987
  reportError: () => {
@@ -6986,7 +7001,7 @@ export {
6986
7001
  da as AddPost,
6987
7002
  Ci as BannerSection,
6988
7003
  Li as Breadcrumbs,
6989
- q as Button,
7004
+ B as Button,
6990
7005
  ht as ButtonWrapper,
6991
7006
  Er as CacheProvider,
6992
7007
  ea as Card,