@apolitical/component-library 1.18.0-4247.57 → 1.18.0-4247.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import A, { memo as Fe, useState as R, useEffect as G, useRef as ne, useMemo as ft, createContext as Gt, useContext as ge, Children as Ht, useCallback as Dn, Fragment as qe, useReducer as Oa, Suspense as Ba } from "react";
1
+ import A, { memo as Fe, useState as R, useEffect as G, useRef as te, useMemo as ft, createContext as Gt, useContext as ge, Children as Ht, useCallback as Dn, Fragment as qe, useReducer as Oa, Suspense as Ba } from "react";
2
2
  import Za from "lodash.clonedeep";
3
3
  import qa from "lodash.set";
4
4
  import { useIntl as P, IntlProvider as Ha, createIntl as Ua, FormattedMessage as je } from "react-intl";
@@ -95,54 +95,54 @@ var Le = {};
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"), _ = Symbol.iterator, y = "@@iterator";
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";
99
99
  function k(u) {
100
100
  if (u === null || typeof u != "object")
101
101
  return null;
102
- var v = _ && u[_] || u[y];
103
- return typeof v == "function" ? v : null;
102
+ var x = g && u[g] || u[y];
103
+ return typeof x == "function" ? x : null;
104
104
  }
105
- var x = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
106
- function g(u) {
105
+ var v = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
106
+ function _(u) {
107
107
  {
108
- for (var v = arguments.length, T = new Array(v > 1 ? v - 1 : 0), N = 1; N < v; N++)
109
- T[N - 1] = arguments[N];
110
- b("error", u, T);
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, $);
111
111
  }
112
112
  }
113
- function b(u, v, T) {
113
+ function b(u, x, $) {
114
114
  {
115
- var N = x.ReactDebugCurrentFrame, O = N.getStackAddendum();
116
- O !== "" && (v += "%s", T = T.concat([O]));
117
- var V = T.map(function(L) {
115
+ var N = v.ReactDebugCurrentFrame, B = N.getStackAddendum();
116
+ B !== "" && (x += "%s", $ = $.concat([B]));
117
+ var Y = $.map(function(L) {
118
118
  return String(L);
119
119
  });
120
- V.unshift("Warning: " + v), Function.prototype.apply.call(console[u], console, V);
120
+ Y.unshift("Warning: " + x), Function.prototype.apply.call(console[u], console, Y);
121
121
  }
122
122
  }
123
- var j = !1, C = !1, S = !1, Y = !1, F = !1, $;
124
- $ = Symbol.for("react.module.reference");
125
- function M(u) {
126
- return !!(typeof u == "string" || typeof u == "function" || u === r || u === i || F || u === s || u === l || u === f || Y || u === h || j || C || S || typeof u == "object" && u !== null && (u.$$typeof === p || u.$$typeof === d || u.$$typeof === o || u.$$typeof === c || u.$$typeof === m || // This needs to include all possible module reference object
123
+ var j = !1, C = !1, S = !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 || C || S || typeof u == "object" && u !== null && (u.$$typeof === p || u.$$typeof === d || u.$$typeof === o || u.$$typeof === c || u.$$typeof === m || // This needs to include all possible module reference object
127
127
  // types supported by any Flight configuration anywhere since
128
128
  // we don't know which Flight build this will end up being used
129
129
  // with.
130
- u.$$typeof === $ || u.getModuleId !== void 0));
130
+ u.$$typeof === M || u.getModuleId !== void 0));
131
131
  }
132
- function E(u, v, T) {
132
+ function E(u, x, $) {
133
133
  var N = u.displayName;
134
134
  if (N)
135
135
  return N;
136
- var O = v.displayName || v.name || "";
137
- return O !== "" ? T + "(" + O + ")" : T;
136
+ var B = x.displayName || x.name || "";
137
+ return B !== "" ? $ + "(" + B + ")" : $;
138
138
  }
139
- function I(u) {
139
+ function O(u) {
140
140
  return u.displayName || "Context";
141
141
  }
142
- function Z(u) {
142
+ function H(u) {
143
143
  if (u == null)
144
144
  return null;
145
- if (typeof u.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof u == "function")
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")
146
146
  return u.displayName || u.name || null;
147
147
  if (typeof u == "string")
148
148
  return u;
@@ -163,20 +163,20 @@ function ir() {
163
163
  if (typeof u == "object")
164
164
  switch (u.$$typeof) {
165
165
  case c:
166
- var v = u;
167
- return I(v) + ".Consumer";
166
+ var x = u;
167
+ return O(x) + ".Consumer";
168
168
  case o:
169
- var T = u;
170
- return I(T._context) + ".Provider";
169
+ var $ = u;
170
+ return O($._context) + ".Provider";
171
171
  case m:
172
172
  return E(u, u.render, "ForwardRef");
173
173
  case d:
174
174
  var N = u.displayName || null;
175
- return N !== null ? N : Z(u.type) || "Memo";
175
+ return N !== null ? N : H(u.type) || "Memo";
176
176
  case p: {
177
- var O = u, V = O._payload, L = O._init;
177
+ var B = u, Y = B._payload, L = B._init;
178
178
  try {
179
- return Z(L(V));
179
+ return H(L(Y));
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 q = Object.assign, z = 0, Q, H, te, re, J, ie, de;
188
- function ce() {
187
+ var U = Object.assign, W = 0, Q, V, ee, re, se, ne, oe;
188
+ function le() {
189
189
  }
190
- ce.__reactDisabledLog = !0;
191
- function W() {
190
+ le.__reactDisabledLog = !0;
191
+ function Z() {
192
192
  {
193
- if (z === 0) {
194
- Q = console.log, H = console.info, te = console.warn, re = console.error, J = console.group, ie = console.groupCollapsed, de = console.groupEnd;
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;
195
195
  var u = {
196
196
  configurable: !0,
197
197
  enumerable: !0,
198
- value: ce,
198
+ value: le,
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
- z++;
211
+ W++;
212
212
  }
213
213
  }
214
214
  function ue() {
215
215
  {
216
- if (z--, z === 0) {
216
+ if (W--, W === 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: q({}, u, {
223
+ log: U({}, u, {
224
224
  value: Q
225
225
  }),
226
- info: q({}, u, {
227
- value: H
226
+ info: U({}, u, {
227
+ value: V
228
228
  }),
229
- warn: q({}, u, {
230
- value: te
229
+ warn: U({}, u, {
230
+ value: ee
231
231
  }),
232
- error: q({}, u, {
232
+ error: U({}, u, {
233
233
  value: re
234
234
  }),
235
- group: q({}, u, {
236
- value: J
235
+ group: U({}, u, {
236
+ value: se
237
237
  }),
238
- groupCollapsed: q({}, u, {
239
- value: ie
238
+ groupCollapsed: U({}, u, {
239
+ value: ne
240
240
  }),
241
- groupEnd: q({}, u, {
242
- value: de
241
+ groupEnd: U({}, u, {
242
+ value: oe
243
243
  })
244
244
  });
245
245
  }
246
- z < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
246
+ W < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
247
247
  }
248
248
  }
249
- var K = x.ReactCurrentDispatcher, se;
250
- function me(u, v, T) {
249
+ var K = v.ReactCurrentDispatcher, ie;
250
+ function me(u, x, $) {
251
251
  {
252
- if (se === void 0)
252
+ if (ie === void 0)
253
253
  try {
254
254
  throw Error();
255
- } catch (O) {
256
- var N = O.stack.trim().match(/\n( *(at )?)/);
257
- se = N && N[1] || "";
255
+ } catch (B) {
256
+ var N = B.stack.trim().match(/\n( *(at )?)/);
257
+ ie = N && N[1] || "";
258
258
  }
259
259
  return `
260
- ` + se + u;
260
+ ` + ie + u;
261
261
  }
262
262
  }
263
263
  var pe = !1, Ee;
@@ -265,22 +265,22 @@ function ir() {
265
265
  var ga = typeof WeakMap == "function" ? WeakMap : Map;
266
266
  Ee = new ga();
267
267
  }
268
- function an(u, v) {
268
+ function an(u, x) {
269
269
  if (!u || pe)
270
270
  return "";
271
271
  {
272
- var T = Ee.get(u);
273
- if (T !== void 0)
274
- return T;
272
+ var $ = Ee.get(u);
273
+ if ($ !== void 0)
274
+ return $;
275
275
  }
276
276
  var N;
277
277
  pe = !0;
278
- var O = Error.prepareStackTrace;
278
+ var B = Error.prepareStackTrace;
279
279
  Error.prepareStackTrace = void 0;
280
- var V;
281
- V = K.current, K.current = null, W();
280
+ var Y;
281
+ Y = K.current, K.current = null, Z();
282
282
  try {
283
- if (v) {
283
+ if (x) {
284
284
  var L = function() {
285
285
  throw Error();
286
286
  };
@@ -314,36 +314,36 @@ function ir() {
314
314
  } catch (ye) {
315
315
  if (ye && N && typeof ye.stack == "string") {
316
316
  for (var D = ye.stack.split(`
317
- `), oe = N.stack.split(`
318
- `), X = D.length - 1, ee = oe.length - 1; X >= 1 && ee >= 0 && D[X] !== oe[ee]; )
319
- ee--;
320
- for (; X >= 1 && ee >= 0; X--, ee--)
321
- if (D[X] !== oe[ee]) {
322
- if (X !== 1 || ee !== 1)
317
+ `), ce = N.stack.split(`
318
+ `), J = D.length - 1, X = ce.length - 1; J >= 1 && X >= 0 && D[J] !== ce[X]; )
319
+ X--;
320
+ for (; J >= 1 && X >= 0; J--, X--)
321
+ if (D[J] !== ce[X]) {
322
+ if (J !== 1 || X !== 1)
323
323
  do
324
- if (X--, ee--, ee < 0 || D[X] !== oe[ee]) {
324
+ if (J--, X--, X < 0 || D[J] !== ce[X]) {
325
325
  var he = `
326
- ` + D[X].replace(" at new ", " at ");
326
+ ` + D[J].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 (X >= 1 && ee >= 0);
329
+ while (J >= 1 && X >= 0);
330
330
  break;
331
331
  }
332
332
  }
333
333
  } finally {
334
- pe = !1, K.current = V, ue(), Error.prepareStackTrace = O;
334
+ pe = !1, K.current = Y, ue(), Error.prepareStackTrace = B;
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, v, T) {
339
+ function _a(u, x, $) {
340
340
  return an(u, !1);
341
341
  }
342
342
  function ba(u) {
343
- var v = u.prototype;
344
- return !!(v && v.isReactComponent);
343
+ var x = u.prototype;
344
+ return !!(x && x.isReactComponent);
345
345
  }
346
- function ze(u, v, T) {
346
+ function ze(u, x, $) {
347
347
  if (u == null)
348
348
  return "";
349
349
  if (typeof u == "function")
@@ -361,52 +361,52 @@ function ir() {
361
361
  case m:
362
362
  return _a(u.render);
363
363
  case d:
364
- return ze(u.type, v, T);
364
+ return ze(u.type, x, $);
365
365
  case p: {
366
- var N = u, O = N._payload, V = N._init;
366
+ var N = u, B = N._payload, Y = N._init;
367
367
  try {
368
- return ze(V(O), v, T);
368
+ return ze(Y(B), x, $);
369
369
  } catch {
370
370
  }
371
371
  }
372
372
  }
373
373
  return "";
374
374
  }
375
- var We = Object.prototype.hasOwnProperty, rn = {}, sn = x.ReactDebugCurrentFrame;
375
+ var We = Object.prototype.hasOwnProperty, rn = {}, sn = v.ReactDebugCurrentFrame;
376
376
  function Ve(u) {
377
377
  if (u) {
378
- var v = u._owner, T = ze(u.type, u._source, v ? v.type : null);
379
- sn.setExtraStackFrame(T);
378
+ var x = u._owner, $ = ze(u.type, u._source, x ? x.type : null);
379
+ sn.setExtraStackFrame($);
380
380
  } else
381
381
  sn.setExtraStackFrame(null);
382
382
  }
383
- function ya(u, v, T, N, O) {
383
+ function ya(u, x, $, N, B) {
384
384
  {
385
- var V = Function.call.bind(We);
385
+ var Y = Function.call.bind(We);
386
386
  for (var L in u)
387
- if (V(u, L)) {
387
+ if (Y(u, L)) {
388
388
  var D = void 0;
389
389
  try {
390
390
  if (typeof u[L] != "function") {
391
- var oe = Error((N || "React class") + ": " + T + " type `" + L + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof u[L] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
392
- throw oe.name = "Invariant Violation", oe;
391
+ var ce = Error((N || "React class") + ": " + $ + " type `" + L + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof u[L] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
392
+ throw ce.name = "Invariant Violation", ce;
393
393
  }
394
- D = u[L](v, L, N, T, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
395
- } catch (X) {
396
- D = X;
394
+ D = u[L](x, L, N, $, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
395
+ } catch (J) {
396
+ D = J;
397
397
  }
398
- D && !(D instanceof Error) && (Ve(O), g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", N || "React class", T, L, typeof D), Ve(null)), D instanceof Error && !(D.message in rn) && (rn[D.message] = !0, Ve(O), g("Failed %s type: %s", T, D.message), Ve(null));
398
+ D && !(D 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", $, L, typeof D), Ve(null)), D instanceof Error && !(D.message in rn) && (rn[D.message] = !0, Ve(B), _("Failed %s type: %s", $, D.message), Ve(null));
399
399
  }
400
400
  }
401
401
  }
402
- var xa = Array.isArray;
402
+ var va = Array.isArray;
403
403
  function jt(u) {
404
- return xa(u);
404
+ return va(u);
405
405
  }
406
- function va(u) {
406
+ function xa(u) {
407
407
  {
408
- var v = typeof Symbol == "function" && Symbol.toStringTag, T = v && u[Symbol.toStringTag] || u.constructor.name || "Object";
409
- return T;
408
+ var x = typeof Symbol == "function" && Symbol.toStringTag, $ = x && u[Symbol.toStringTag] || u.constructor.name || "Object";
409
+ return $;
410
410
  }
411
411
  }
412
412
  function ka(u) {
@@ -421,9 +421,9 @@ function ir() {
421
421
  }
422
422
  function cn(u) {
423
423
  if (ka(u))
424
- return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", va(u)), on(u);
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 Re = x.ReactCurrentOwner, ja = {
426
+ var Re = v.ReactCurrentOwner, ja = {
427
427
  key: !0,
428
428
  ref: !0,
429
429
  __self: !0,
@@ -432,59 +432,59 @@ function ir() {
432
432
  wt = {};
433
433
  function wa(u) {
434
434
  if (We.call(u, "ref")) {
435
- var v = Object.getOwnPropertyDescriptor(u, "ref").get;
436
- if (v && v.isReactWarning)
435
+ var x = Object.getOwnPropertyDescriptor(u, "ref").get;
436
+ if (x && x.isReactWarning)
437
437
  return !1;
438
438
  }
439
439
  return u.ref !== void 0;
440
440
  }
441
441
  function Ta(u) {
442
442
  if (We.call(u, "key")) {
443
- var v = Object.getOwnPropertyDescriptor(u, "key").get;
444
- if (v && v.isReactWarning)
443
+ var x = Object.getOwnPropertyDescriptor(u, "key").get;
444
+ if (x && x.isReactWarning)
445
445
  return !1;
446
446
  }
447
447
  return u.key !== void 0;
448
448
  }
449
- function $a(u, v) {
450
- if (typeof u.ref == "string" && Re.current && v && Re.current.stateNode !== v) {
451
- var T = Z(Re.current.type);
452
- wt[T] || (g('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', Z(Re.current.type), u.ref), wt[T] = !0);
449
+ function $a(u, x) {
450
+ if (typeof u.ref == "string" && Re.current && x && Re.current.stateNode !== x) {
451
+ var $ = H(Re.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(Re.current.type), u.ref), wt[$] = !0);
453
453
  }
454
454
  }
455
- function Ea(u, v) {
455
+ function Ea(u, x) {
456
456
  {
457
- var T = function() {
458
- ln || (ln = !0, g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", v));
457
+ var $ = function() {
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
- T.isReactWarning = !0, Object.defineProperty(u, "key", {
461
- get: T,
460
+ $.isReactWarning = !0, Object.defineProperty(u, "key", {
461
+ get: $,
462
462
  configurable: !0
463
463
  });
464
464
  }
465
465
  }
466
- function Ca(u, v) {
466
+ function Ca(u, x) {
467
467
  {
468
- var T = function() {
469
- dn || (dn = !0, g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", v));
468
+ var $ = function() {
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
- T.isReactWarning = !0, Object.defineProperty(u, "ref", {
472
- get: T,
471
+ $.isReactWarning = !0, Object.defineProperty(u, "ref", {
472
+ get: $,
473
473
  configurable: !0
474
474
  });
475
475
  }
476
476
  }
477
- var Sa = function(u, v, T, N, O, V, L) {
477
+ var Sa = function(u, x, $, N, B, Y, L) {
478
478
  var D = {
479
479
  // This tag allows us to uniquely identify this as a React Element
480
480
  $$typeof: t,
481
481
  // Built-in properties that belong on the element
482
482
  type: u,
483
- key: v,
484
- ref: T,
483
+ key: x,
484
+ ref: $,
485
485
  props: L,
486
486
  // Record the component responsible for creating this element.
487
- _owner: V
487
+ _owner: Y
488
488
  };
489
489
  return D._store = {}, Object.defineProperty(D._store, "validated", {
490
490
  configurable: !1,
@@ -500,32 +500,32 @@ function ir() {
500
500
  configurable: !1,
501
501
  enumerable: !1,
502
502
  writable: !1,
503
- value: O
503
+ value: B
504
504
  }), Object.freeze && (Object.freeze(D.props), Object.freeze(D)), D;
505
505
  };
506
- function Ma(u, v, T, N, O) {
506
+ function Ma(u, x, $, N, B) {
507
507
  {
508
- var V, L = {}, D = null, oe = null;
509
- T !== void 0 && (cn(T), D = "" + T), Ta(v) && (cn(v.key), D = "" + v.key), wa(v) && (oe = v.ref, $a(v, O));
510
- for (V in v)
511
- We.call(v, V) && !ja.hasOwnProperty(V) && (L[V] = v[V]);
508
+ var Y, L = {}, D = null, ce = null;
509
+ $ !== void 0 && (cn($), D = "" + $), Ta(x) && (cn(x.key), D = "" + x.key), wa(x) && (ce = x.ref, $a(x, B));
510
+ for (Y in x)
511
+ We.call(x, Y) && !ja.hasOwnProperty(Y) && (L[Y] = x[Y]);
512
512
  if (u && u.defaultProps) {
513
- var X = u.defaultProps;
514
- for (V in X)
515
- L[V] === void 0 && (L[V] = X[V]);
513
+ var J = u.defaultProps;
514
+ for (Y in J)
515
+ L[Y] === void 0 && (L[Y] = J[Y]);
516
516
  }
517
- if (D || oe) {
518
- var ee = typeof u == "function" ? u.displayName || u.name || "Unknown" : u;
519
- D && Ea(L, ee), oe && Ca(L, ee);
517
+ if (D || ce) {
518
+ var X = typeof u == "function" ? u.displayName || u.name || "Unknown" : u;
519
+ D && Ea(L, X), ce && Ca(L, X);
520
520
  }
521
- return Sa(u, D, oe, O, N, Re.current, L);
521
+ return Sa(u, D, ce, B, N, Re.current, L);
522
522
  }
523
523
  }
524
- var Tt = x.ReactCurrentOwner, un = x.ReactDebugCurrentFrame;
524
+ var Tt = v.ReactCurrentOwner, un = v.ReactDebugCurrentFrame;
525
525
  function Ce(u) {
526
526
  if (u) {
527
- var v = u._owner, T = ze(u.type, u._source, v ? v.type : null);
528
- un.setExtraStackFrame(T);
527
+ var x = u._owner, $ = ze(u.type, u._source, x ? x.type : null);
528
+ un.setExtraStackFrame($);
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 = Z(Tt.current.type);
540
+ var u = H(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 v = u.fileName.replace(/^.*[\\\/]/, ""), T = u.lineNumber;
552
+ var x = u.fileName.replace(/^.*[\\\/]/, ""), $ = u.lineNumber;
553
553
  return `
554
554
 
555
- Check your code at ` + v + ":" + T + ".";
555
+ Check your code at ` + x + ":" + $ + ".";
556
556
  }
557
557
  return "";
558
558
  }
@@ -560,101 +560,101 @@ Check your code at ` + v + ":" + T + ".";
560
560
  var fn = {};
561
561
  function Pa(u) {
562
562
  {
563
- var v = mn();
564
- if (!v) {
565
- var T = typeof u == "string" ? u : u.displayName || u.name;
566
- T && (v = `
563
+ var x = mn();
564
+ if (!x) {
565
+ var $ = typeof u == "string" ? u : u.displayName || u.name;
566
+ $ && (x = `
567
567
 
568
- Check the top-level render call using <` + T + ">.");
568
+ Check the top-level render call using <` + $ + ">.");
569
569
  }
570
- return v;
570
+ return x;
571
571
  }
572
572
  }
573
- function pn(u, v) {
573
+ function pn(u, x) {
574
574
  {
575
575
  if (!u._store || u._store.validated || u.key != null)
576
576
  return;
577
577
  u._store.validated = !0;
578
- var T = Pa(v);
579
- if (fn[T])
578
+ var $ = Pa(x);
579
+ if (fn[$])
580
580
  return;
581
- fn[T] = !0;
581
+ fn[$] = !0;
582
582
  var N = "";
583
- u && u._owner && u._owner !== Tt.current && (N = " It was passed a child from " + Z(u._owner.type) + "."), Ce(u), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', T, N), Ce(null);
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);
584
584
  }
585
585
  }
586
- function hn(u, v) {
586
+ function hn(u, x) {
587
587
  {
588
588
  if (typeof u != "object")
589
589
  return;
590
590
  if (jt(u))
591
- for (var T = 0; T < u.length; T++) {
592
- var N = u[T];
593
- Et(N) && pn(N, v);
591
+ for (var $ = 0; $ < u.length; $++) {
592
+ var N = u[$];
593
+ Et(N) && pn(N, x);
594
594
  }
595
595
  else if (Et(u))
596
596
  u._store && (u._store.validated = !0);
597
597
  else if (u) {
598
- var O = k(u);
599
- if (typeof O == "function" && O !== u.entries)
600
- for (var V = O.call(u), L; !(L = V.next()).done; )
601
- Et(L.value) && pn(L.value, v);
598
+ var B = k(u);
599
+ if (typeof B == "function" && B !== u.entries)
600
+ for (var Y = B.call(u), L; !(L = Y.next()).done; )
601
+ Et(L.value) && pn(L.value, x);
602
602
  }
603
603
  }
604
604
  }
605
605
  function Aa(u) {
606
606
  {
607
- var v = u.type;
608
- if (v == null || typeof v == "string")
607
+ var x = u.type;
608
+ if (x == null || typeof x == "string")
609
609
  return;
610
- var T;
611
- if (typeof v == "function")
612
- T = v.propTypes;
613
- else if (typeof v == "object" && (v.$$typeof === m || // Note: Memo only checks outer props here.
610
+ var $;
611
+ if (typeof x == "function")
612
+ $ = x.propTypes;
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
- v.$$typeof === d))
616
- T = v.propTypes;
615
+ x.$$typeof === d))
616
+ $ = x.propTypes;
617
617
  else
618
618
  return;
619
- if (T) {
620
- var N = Z(v);
621
- ya(T, u.props, "prop", N, u);
622
- } else if (v.PropTypes !== void 0 && !$t) {
619
+ if ($) {
620
+ var N = H(x);
621
+ ya($, u.props, "prop", N, u);
622
+ } else if (x.PropTypes !== void 0 && !$t) {
623
623
  $t = !0;
624
- var O = Z(v);
625
- g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", O || "Unknown");
624
+ var B = H(x);
625
+ _("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", B || "Unknown");
626
626
  }
627
- typeof v.getDefaultProps == "function" && !v.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
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 v = Object.keys(u.props), T = 0; T < v.length; T++) {
633
- var N = v[T];
632
+ for (var x = Object.keys(u.props), $ = 0; $ < x.length; $++) {
633
+ var N = x[$];
634
634
  if (N !== "children" && N !== "key") {
635
- Ce(u), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", N), Ce(null);
635
+ Ce(u), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", N), Ce(null);
636
636
  break;
637
637
  }
638
638
  }
639
- u.ref !== null && (Ce(u), g("Invalid attribute `ref` supplied to `React.Fragment`."), Ce(null));
639
+ u.ref !== null && (Ce(u), _("Invalid attribute `ref` supplied to `React.Fragment`."), Ce(null));
640
640
  }
641
641
  }
642
- function gn(u, v, T, N, O, V) {
642
+ function gn(u, x, $, N, B, Y) {
643
643
  {
644
- var L = M(u);
644
+ var L = T(u);
645
645
  if (!L) {
646
646
  var D = "";
647
647
  (u === void 0 || typeof u == "object" && u !== null && Object.keys(u).length === 0) && (D += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
648
- var oe = Na(O);
649
- oe ? D += oe : D += mn();
650
- var X;
651
- u === null ? X = "null" : jt(u) ? X = "array" : u !== void 0 && u.$$typeof === t ? (X = "<" + (Z(u.type) || "Unknown") + " />", D = " Did you accidentally export a JSX literal instead of a component?") : X = typeof u, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", X, D);
648
+ var ce = Na(B);
649
+ ce ? D += ce : D += mn();
650
+ var J;
651
+ u === null ? J = "null" : jt(u) ? J = "array" : u !== void 0 && u.$$typeof === t ? (J = "<" + (H(u.type) || "Unknown") + " />", D = " 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, D);
652
652
  }
653
- var ee = Ma(u, v, T, O, V);
654
- if (ee == null)
655
- return ee;
653
+ var X = Ma(u, x, $, B, Y);
654
+ if (X == null)
655
+ return X;
656
656
  if (L) {
657
- var he = v.children;
657
+ var he = x.children;
658
658
  if (he !== void 0)
659
659
  if (N)
660
660
  if (jt(he)) {
@@ -662,18 +662,18 @@ Check the top-level render call using <` + T + ">.");
662
662
  hn(he[Se], u);
663
663
  Object.freeze && Object.freeze(he);
664
664
  } else
665
- g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
665
+ _("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
666
666
  else
667
667
  hn(he, u);
668
668
  }
669
- return u === r ? Fa(ee) : Aa(ee), ee;
669
+ return u === r ? Fa(X) : Aa(X), X;
670
670
  }
671
671
  }
672
- function Ra(u, v, T) {
673
- return gn(u, v, T, !0);
672
+ function Ra(u, x, $) {
673
+ return gn(u, x, $, !0);
674
674
  }
675
- function Da(u, v, T) {
676
- return gn(u, v, T, !1);
675
+ function Da(u, x, $) {
676
+ return gn(u, x, $, !1);
677
677
  }
678
678
  var La = Da, Ia = Ra;
679
679
  Le.Fragment = r, Le.jsx = La, Le.jsxs = Ia;
@@ -690,65 +690,65 @@ const or = () => {
690
690
  window.removeEventListener("popstate", n);
691
691
  }), []), e;
692
692
  }, Pe = (e, t) => {
693
- const n = ne(!1);
693
+ const n = te(!1);
694
694
  G(() => {
695
695
  n.current ? e() : n.current = !0;
696
696
  }, t);
697
697
  };
698
698
  function cr(e, t, n) {
699
- var r = this, s = ne(null), i = ne(0), o = ne(null), c = ne([]), m = ne(), l = ne(), f = ne(e), d = ne(!0);
699
+ var r = this, s = te(null), i = te(0), o = te(null), c = te([]), m = te(), l = te(), f = te(e), d = te(!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 _ = !!(n = n || {}).leading, y = !("trailing" in n) || !!n.trailing, k = "maxWait" in n, x = "debounceOnServer" in n && !!n.debounceOnServer, g = k ? Math.max(+n.maxWait || 0, t) : null;
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;
706
706
  G(function() {
707
707
  return d.current = !0, function() {
708
708
  d.current = !1;
709
709
  };
710
710
  }, []);
711
711
  var b = ft(function() {
712
- var j = function(M) {
713
- var E = c.current, I = m.current;
714
- return c.current = m.current = null, i.current = M, l.current = f.current.apply(I, E);
715
- }, C = function(M, E) {
716
- h && cancelAnimationFrame(o.current), o.current = h ? requestAnimationFrame(M) : setTimeout(M, E);
717
- }, S = function(M) {
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
+ }, C = function(T, E) {
716
+ h && cancelAnimationFrame(o.current), o.current = h ? requestAnimationFrame(T) : setTimeout(T, E);
717
+ }, S = function(T) {
718
718
  if (!d.current)
719
719
  return !1;
720
- var E = M - s.current;
721
- return !s.current || E >= t || E < 0 || k && M - i.current >= g;
722
- }, Y = function(M) {
723
- return o.current = null, y && c.current ? j(M) : (c.current = m.current = null, l.current);
724
- }, F = function M() {
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() {
725
725
  var E = Date.now();
726
726
  if (S(E))
727
- return Y(E);
727
+ return I(E);
728
728
  if (d.current) {
729
- var I = t - (E - s.current), Z = k ? Math.min(I, g - (E - i.current)) : I;
730
- C(M, Z);
729
+ var O = t - (E - s.current), H = k ? Math.min(O, _ - (E - i.current)) : O;
730
+ C(T, H);
731
731
  }
732
- }, $ = function() {
733
- if (p || x) {
734
- var M = Date.now(), E = S(M);
735
- if (c.current = [].slice.call(arguments), m.current = r, s.current = M, E) {
732
+ }, M = function() {
733
+ if (p || v) {
734
+ var T = Date.now(), E = S(T);
735
+ if (c.current = [].slice.call(arguments), m.current = r, s.current = T, E) {
736
736
  if (!o.current && d.current)
737
- return i.current = s.current, C(F, t), _ ? j(s.current) : l.current;
737
+ return i.current = s.current, C(F, t), g ? j(s.current) : l.current;
738
738
  if (k)
739
739
  return C(F, t), j(s.current);
740
740
  }
741
741
  return o.current || C(F, t), l.current;
742
742
  }
743
743
  };
744
- return $.cancel = function() {
744
+ return M.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
- }, $.isPending = function() {
746
+ }, M.isPending = function() {
747
747
  return !!o.current;
748
- }, $.flush = function() {
749
- return o.current ? Y(Date.now()) : l.current;
750
- }, $;
751
- }, [_, k, t, g, y, h, p, x]);
748
+ }, M.flush = function() {
749
+ return o.current ? I(Date.now()) : l.current;
750
+ }, M;
751
+ }, [g, k, t, _, y, h, p, v]);
752
752
  return b;
753
753
  }
754
754
  function Zn(e, t, n) {
@@ -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 = ne(!1);
812
+ const n = te(!1);
813
813
  Pe(() => {
814
814
  if (window && window.location && window.location.hash) {
815
815
  if (n.current)
@@ -841,7 +841,7 @@ const He = (e = !0, t = !1, n = "window") => {
841
841
  year: "numeric"
842
842
  }), zt = (e) => {
843
843
  let i;
844
- const o = xn(), c = xn(new Date(e));
844
+ const o = vn(), c = vn(new Date(e));
845
845
  try {
846
846
  i = o.getTime() - c.getTime();
847
847
  } catch {
@@ -854,7 +854,7 @@ const He = (e = !0, t = !1, n = "window") => {
854
854
  return { path: "days", number: l };
855
855
  const f = Math.floor(l / 7);
856
856
  return f <= 52 ? { path: "weeks", number: f } : { path: "years", number: Math.floor(l / 365) };
857
- }, xn = (e) => {
857
+ }, vn = (e) => {
858
858
  const n = (e || /* @__PURE__ */ new Date()).toUTCString();
859
859
  return new Date(n);
860
860
  }, Qt = {
@@ -1221,15 +1221,15 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1221
1221
  const t = document.querySelector(".splash-screen");
1222
1222
  t && t.remove(), window.prerenderReady = !0;
1223
1223
  }, e);
1224
- }, yr = (e) => e.replace(/\s+/g, "").length > 0, xr = (e, t) => {
1224
+ }, yr = (e) => e.replace(/\s+/g, "").length > 0, vr = (e, t) => {
1225
1225
  Array.isArray(t) || (t = [t]);
1226
1226
  const n = Za(e);
1227
1227
  return t.forEach(({ type: r, value: s }) => {
1228
1228
  qa(n, r, s);
1229
1229
  }), n;
1230
- }, vr = (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) => A.Children.map(e, (n) => A.cloneElement(n, {
1231
1231
  ...t
1232
- })), B = ({
1232
+ })), q = ({
1233
1233
  variant: e = "primary",
1234
1234
  size: t = "medium",
1235
1235
  styling: n = { muted: !1, fullWidth: !1 },
@@ -1245,14 +1245,14 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1245
1245
  }) => {
1246
1246
  const h = He(typeof t == "object");
1247
1247
  if (typeof t == "object" && typeof h == "number") {
1248
- const k = Object.assign({}, t), x = qn(Object.keys(k));
1249
- t = Hn(h, x, k);
1248
+ const k = Object.assign({}, t), v = qn(Object.keys(k));
1249
+ t = Hn(h, v, k);
1250
1250
  }
1251
- const _ = [];
1252
- typeof t == "string" && _.push(t), r && (_.push("icon"), typeof r == "object" ? (_.push(r.icon), r.position ? _.push(r.position) : _.push("left"), r.hover && _.push(`hover_${r.hover}`), r.animate && (_.push("animate"), typeof r.animate == "string" && _.push(r.animate))) : (_.push(r), !r.includes("right") && !r.includes("left") && _.push("left"))), n.muted && _.push("muted"), n.fullWidth && _.push("full-width");
1251
+ const g = [];
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
1253
  const y = {
1254
1254
  ...d,
1255
- className: w(e, c, _, {
1255
+ className: w(e, c, g, {
1256
1256
  "no-text": !f,
1257
1257
  disabled: m,
1258
1258
  button: s
@@ -1268,7 +1268,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
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(B, { ...i }, o) : /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(B, { ...i }) }, o));
1271
+ const r = e.length > 1 ? "ul" : "p", s = e.map((i, o) => r === "p" ? /* @__PURE__ */ a.jsx(q, { ...i }, o) : /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(q, { ...i }) }, o));
1272
1272
  return A.createElement(r, { className: w("button-wrapper", t), ...n, children: s });
1273
1273
  };
1274
1274
  const Te = ({ className: e = "", maxWidth: t = !1 }) => {
@@ -1297,7 +1297,7 @@ const Te = ({ className: e = "", maxWidth: t = !1 }) => {
1297
1297
  );
1298
1298
  }
1299
1299
  return n ? A.createElement(n, { children: t, className: r, ...c }) : t;
1300
- }, vn = {
1300
+ }, xn = {
1301
1301
  card: {
1302
1302
  range: [
1303
1303
  {
@@ -1405,7 +1405,7 @@ const Te = ({ className: e = "", maxWidth: t = !1 }) => {
1405
1405
  range: t,
1406
1406
  sizes: n
1407
1407
  }) => {
1408
- const { range: r, sizes: s } = e ? vn[e] : vn.fallback;
1408
+ const { range: r, sizes: s } = e ? xn[e] : xn.fallback;
1409
1409
  return { range: t && t.length > 0 ? t : r, sizes: n || s };
1410
1410
  }, jr = ({ format: e, height: t, query: n, width: r }) => {
1411
1411
  let s = `w=${r}&h=${t}`;
@@ -1427,13 +1427,13 @@ 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), _ = 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 }), y = St({ format: "webp", query: o, range: p, url: c }), k = St({ format: "", query: o, range: p, url: c });
1431
1431
  return /* @__PURE__ */ a.jsxs("picture", { className: t, children: [
1432
1432
  i !== "image/gif" && /* @__PURE__ */ a.jsx(
1433
1433
  "source",
1434
1434
  {
1435
1435
  type: "image/avif",
1436
- srcSet: _,
1436
+ srcSet: g,
1437
1437
  sizes: h,
1438
1438
  "data-testid": "source"
1439
1439
  }
@@ -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 = ne(null), [i, o] = R("hidden");
1469
+ const r = P(), s = te(null), [i, o] = R("hidden");
1470
1470
  G(() => {
1471
1471
  const m = s.current;
1472
1472
  if (m)
@@ -1626,7 +1626,7 @@ const Tr = [
1626
1626
  }),
1627
1627
  c,
1628
1628
  o && o.text && o.link && /* @__PURE__ */ a.jsx(
1629
- B,
1629
+ q,
1630
1630
  {
1631
1631
  variant: n || r === "light" ? "primary" : "secondary",
1632
1632
  size: { mobile: "medium", 768: "large" },
@@ -1650,7 +1650,7 @@ const Si = ({
1650
1650
  }) => !n && !r ? null : /* @__PURE__ */ a.jsxs("aside", { className: w("marketing-block", e), children: [
1651
1651
  n && /* @__PURE__ */ a.jsx("p", { className: "title", children: n }),
1652
1652
  r && /* @__PURE__ */ a.jsx("p", { children: r }),
1653
- t && /* @__PURE__ */ a.jsx(B, { variant: "secondary", size: "medium", href: t.link, className: "gtm-trackable", "data-gtm-event-context": s, "data-gtm-event-type": "learn-more-click", children: t.text })
1653
+ t && /* @__PURE__ */ a.jsx(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 })
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
@@ -1681,9 +1681,11 @@ const Mr = ({ children: e, user: t }) => t.isLoading ? null : process.env.REACT_
1681
1681
  apiKey: atob(process.env.REACT_APP_PUBLIC_POSTHOG_KEY),
1682
1682
  options: {
1683
1683
  api_host: "/ph",
1684
- ui_host: "eu.posthog.com",
1685
1684
  autocapture: !1,
1685
+ disable_session_recording: !0,
1686
+ persistence_name: "flags",
1686
1687
  secure_cookie: !0,
1688
+ ui_host: "eu.posthog.com",
1687
1689
  bootstrap: {
1688
1690
  // The distinct ID is the user's ID if they are logged in, or a random ID otherwise
1689
1691
  distinctID: t.id || "00000000-0000-0000-0000-000000000000",
@@ -1751,7 +1753,7 @@ const bt = ({
1751
1753
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1752
1754
  t && /* @__PURE__ */ a.jsx(pt, { options: { forceBlock: !0 }, children: t }),
1753
1755
  s && typeof n == "object" && (l || /* @__PURE__ */ a.jsx(
1754
- B,
1756
+ q,
1755
1757
  {
1756
1758
  ...f,
1757
1759
  variant: n.variant ? n.variant : "secondary",
@@ -1780,7 +1782,7 @@ const Ar = ({ type: e = "default", className: t = "", heading: n = !1, children:
1780
1782
  ) : /* @__PURE__ */ a.jsx("p", { children: r })
1781
1783
  ] });
1782
1784
  const Pi = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children: s }) => {
1783
- const i = P(), o = ne(null), [c, m] = R(""), [l, f] = R("closed");
1785
+ const i = P(), o = te(null), [c, m] = R(""), [l, f] = R("closed");
1784
1786
  G(() => {
1785
1787
  const h = o.current;
1786
1788
  if (h)
@@ -1798,7 +1800,7 @@ const Pi = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
1798
1800
  l === "ready-to-close" && f("closing");
1799
1801
  }, [l]);
1800
1802
  const d = ({ propertyName: h }) => {
1801
- h === "max-height" && f((_) => _ === "opening" ? "open" : _ === "closing" ? "closed" : _);
1803
+ h === "max-height" && f((g) => g === "opening" ? "open" : g === "closing" ? "closed" : g);
1802
1804
  };
1803
1805
  if (!r)
1804
1806
  return null;
@@ -1809,7 +1811,7 @@ const Pi = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
1809
1811
  l !== "closed" && s
1810
1812
  ] }),
1811
1813
  /* @__PURE__ */ a.jsx("p", { className: "cta", children: /* @__PURE__ */ a.jsx(
1812
- B,
1814
+ q,
1813
1815
  {
1814
1816
  variant: "tertiary",
1815
1817
  icon: { icon: "navigation_arrow", position: "left", animate: !0 },
@@ -1893,7 +1895,7 @@ const Pi = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
1893
1895
  else
1894
1896
  break;
1895
1897
  }
1896
- return s ? (n = { ...n, className: "button primary medium" }, /* @__PURE__ */ a.jsx("p", { className: "center", children: /* @__PURE__ */ a.jsx(B, { variant: "primary", size: "medium", ...n, children: r }) })) : /* @__PURE__ */ a.jsx("a", { ...n, children: r });
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 });
1897
1899
  }, Zr = ({ children: e }) => /* @__PURE__ */ a.jsx("span", { children: e });
1898
1900
  const jn = ({ className: e = "", options: t = {}, children: n }) => {
1899
1901
  n = n.replace(/^<br\/?>/, "");
@@ -2013,7 +2015,7 @@ const wn = 256, Ue = ({
2013
2015
  height: i = wn,
2014
2016
  ...o
2015
2017
  }) => {
2016
- const [c, m] = R(!1), l = ne(null);
2018
+ const [c, m] = R(!1), l = te(null);
2017
2019
  G(() => {
2018
2020
  const d = l.current;
2019
2021
  if (!d)
@@ -2021,8 +2023,8 @@ const wn = 256, Ue = ({
2021
2023
  const p = d.getContext("2d");
2022
2024
  if (!p)
2023
2025
  return;
2024
- const h = s, _ = i;
2025
- typeof window < "u" && window.devicePixelRatio && (d.width = h * window.devicePixelRatio, d.height = _ * window.devicePixelRatio, p.scale(window.devicePixelRatio, window.devicePixelRatio)), p.fillStyle = Wr(n), p.fillRect(0, 0, h, _), p.font = `${h / 3}px Arial`, p.textAlign = "center", p.fillStyle = "white", p.fillText(Qn(n), h / 2, _ / 1.6);
2026
+ const h = s, g = i;
2027
+ typeof window < "u" && window.devicePixelRatio && (d.width = h * window.devicePixelRatio, d.height = g * window.devicePixelRatio, p.scale(window.devicePixelRatio, window.devicePixelRatio)), p.fillStyle = Wr(n), p.fillRect(0, 0, h, g), p.font = `${h / 3}px Arial`, p.textAlign = "center", p.fillStyle = "white", p.fillText(Qn(n), h / 2, g / 1.6);
2026
2028
  }, [n]);
2027
2029
  let f = !1;
2028
2030
  return t && t !== "" && !c && (t.includes("http") || t.includes("//")) && (f = !0), /* @__PURE__ */ a.jsx(
@@ -2087,8 +2089,8 @@ const Xt = ({
2087
2089
  href: l,
2088
2090
  gtmType: s,
2089
2091
  gtmContext: r,
2090
- onClick: (_) => {
2091
- _ == null || _.stopPropagation();
2092
+ onClick: (g) => {
2093
+ g == null || g.stopPropagation();
2092
2094
  },
2093
2095
  children: [
2094
2096
  /* @__PURE__ */ a.jsx(Ue, { name: m, src: f }),
@@ -2127,7 +2129,7 @@ const Tn = {
2127
2129
  className: w("contributors", m, s, { "has-gap": i }),
2128
2130
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2129
2131
  /* @__PURE__ */ a.jsx("ul", { children: n.map((d, p) => {
2130
- let h, _ = "";
2132
+ let h, g = "";
2131
2133
  if (p < c) {
2132
2134
  const { name: y = "", image: k = "" } = Jn(d);
2133
2135
  if (o)
@@ -2152,9 +2154,9 @@ const Tn = {
2152
2154
  _r(y, 0)
2153
2155
  ]
2154
2156
  }
2155
- ), _ = "number-left";
2157
+ ), g = "number-left";
2156
2158
  }
2157
- return h ? /* @__PURE__ */ a.jsx("li", { className: w("contributor", _), children: h }, p) : null;
2159
+ return h ? /* @__PURE__ */ a.jsx("li", { className: w("contributor", g), children: h }, p) : null;
2158
2160
  }) }),
2159
2161
  r && /* @__PURE__ */ a.jsx("span", { className: "label", children: typeof r == "string" ? r : n.length === 1 ? typeof n[0] == "string" ? f.formatMessage({ id: `member_${n[0]}` }) : Ne(n[0].name || "", 20) : null })
2160
2162
  ] })
@@ -2276,7 +2278,7 @@ const Tn = {
2276
2278
  gtmEvent: "learning-hub"
2277
2279
  }
2278
2280
  }, Gr = ({ data: e, cta: t, link: n, gtmContext: r }) => {
2279
- var _;
2281
+ var g;
2280
2282
  const s = P(), [i, o] = R({
2281
2283
  loading: !1,
2282
2284
  registered: e.registered || !1
@@ -2286,7 +2288,7 @@ const Tn = {
2286
2288
  }, [e.registered]);
2287
2289
  const { startDate: c, dateHasPassed: m, pill: l, slug: f } = e, d = e.contentType;
2288
2290
  let p = "";
2289
- if ((_ = it[d]) != null && _.gtmEvent && (p = it[d].gtmEvent), c && m)
2291
+ if ((g = it[d]) != null && g.gtmEvent && (p = it[d].gtmEvent), c && m)
2290
2292
  return /* @__PURE__ */ a.jsx(
2291
2293
  "a",
2292
2294
  {
@@ -2299,7 +2301,7 @@ const Tn = {
2299
2301
  );
2300
2302
  if (d === "people")
2301
2303
  return /* @__PURE__ */ a.jsx(
2302
- B,
2304
+ q,
2303
2305
  {
2304
2306
  variant: "tertiary",
2305
2307
  size: "small",
@@ -2312,19 +2314,19 @@ const Tn = {
2312
2314
  );
2313
2315
  const h = ["microcourse", "event"];
2314
2316
  if (t && t.onClick && h.includes(d) && l !== "premium") {
2315
- const y = i.loading || i.registered, k = async (x) => {
2316
- if (x.preventDefault(), x.stopPropagation(), !(y || !t || !t.onClick)) {
2317
- o((g) => ({ ...g, loading: !0 }));
2317
+ const y = i.loading || i.registered, k = async (v) => {
2318
+ if (v.preventDefault(), v.stopPropagation(), !(y || !t || !t.onClick)) {
2319
+ o((_) => ({ ..._, loading: !0 }));
2318
2320
  try {
2319
- const g = await t.onClick(e);
2320
- o(g === "success" ? () => ({ registered: !0, loading: !1 }) : (b) => ({ ...b, loading: !1 }));
2321
+ const _ = await t.onClick(e);
2322
+ o(_ === "success" ? () => ({ registered: !0, loading: !1 }) : (b) => ({ ...b, loading: !1 }));
2321
2323
  } catch {
2322
2324
  o((b) => ({ ...b, loading: !1 }));
2323
2325
  }
2324
2326
  }
2325
2327
  };
2326
2328
  return /* @__PURE__ */ a.jsx(
2327
- B,
2329
+ q,
2328
2330
  {
2329
2331
  onClick: k,
2330
2332
  className: "gtm-trackable",
@@ -2383,24 +2385,24 @@ const Qr = {
2383
2385
  "data-testid": "card-placeholder"
2384
2386
  }
2385
2387
  );
2386
- const { contentType: _ } = d;
2387
- if (!_ || !it[_])
2388
+ const { contentType: g } = d;
2389
+ if (!g || !it[g])
2388
2390
  return /* @__PURE__ */ a.jsx(_e, { element: "li", className: "card-wrapper" });
2389
2391
  const {
2390
2392
  basePath: y = "",
2391
2393
  className: k,
2392
- length: x,
2393
- gtmEvent: g
2394
- } = it[_], b = zn(`card_label_${_}`) ? o.formatMessage({ id: `card_label_${_}` }) : !1, j = d.slug ? `${y}${d.slug}` : !1, C = { ...Qr, ...x };
2394
+ length: v,
2395
+ gtmEvent: _
2396
+ } = it[g], b = zn(`card_label_${g}`) ? o.formatMessage({ id: `card_label_${g}` }) : !1, j = d.slug ? `${y}${d.slug}` : !1, C = { ...Qr, ...v };
2395
2397
  let S = { className: "card" };
2396
2398
  j && (S = {
2397
2399
  href: j,
2398
2400
  className: "card gtm-trackable",
2399
2401
  "data-gtm-event-context": `${s}-CarouselCard`,
2400
- "data-gtm-event-type": `${g}-click`,
2402
+ "data-gtm-event-type": `${_}-click`,
2401
2403
  "data-testid": "link"
2402
2404
  }, d.openInNewTab && (S.target = "_blank"));
2403
- const Y = d.customIcon ? { "--custom-icon": Kr(d.customIcon) } : {};
2405
+ const I = d.customIcon ? { "--custom-icon": Kr(d.customIcon) } : {};
2404
2406
  return /* @__PURE__ */ a.jsx(
2405
2407
  "li",
2406
2408
  {
@@ -2410,8 +2412,8 @@ const Qr = {
2410
2412
  "has-custom-icon": d.customIcon,
2411
2413
  "has-image": d.banner
2412
2414
  }),
2413
- style: Y,
2414
- "data-testid": `${_}-card`,
2415
+ style: I,
2416
+ "data-testid": `${g}-card`,
2415
2417
  children: A.createElement(
2416
2418
  j ? "a" : "div",
2417
2419
  S,
@@ -2452,11 +2454,11 @@ const Qr = {
2452
2454
  d.partner && /* @__PURE__ */ a.jsx("p", { className: "partners", "data-testid": "partners", children: Ne(d.partner.title, C.partner) }),
2453
2455
  /* Text */
2454
2456
  ["title", "text", "secondaryText"].map((F) => {
2455
- const $ = d[F];
2456
- if (!$)
2457
+ const M = d[F];
2458
+ if (!M)
2457
2459
  return null;
2458
- const M = ur(F);
2459
- return /* @__PURE__ */ a.jsx("p", { className: M, "data-testid": M, children: Ne($, C[F]) }, F);
2460
+ const T = ur(F);
2461
+ return /* @__PURE__ */ a.jsx("p", { className: T, "data-testid": T, children: Ne(M, C[F]) }, F);
2460
2462
  }),
2461
2463
  /* @__PURE__ */ a.jsx(Yr, { type: k || "", data: d }),
2462
2464
  /* @__PURE__ */ a.jsx(Gr, { data: d, cta: r, link: j || "", gtmContext: s })
@@ -2525,51 +2527,51 @@ const ts = ({
2525
2527
  }), { cardsPerPage: f, isLoading: d } = m, [p, h] = R({
2526
2528
  currentPage: 0,
2527
2529
  loadedPages: [0]
2528
- }), { currentPage: _, loadedPages: y } = p, k = t.length, x = Math.ceil(k / f), g = ne(null), b = He(!0, !0, g == null ? void 0 : g.current);
2530
+ }), { currentPage: g, loadedPages: y } = p, k = t.length, v = Math.ceil(k / f), _ = te(null), b = He(!0, !0, _ == null ? void 0 : _.current);
2529
2531
  G(() => {
2530
- let $ = 1;
2531
- b && (b >= Nt.fourCards ? $ = 4 : b >= Nt.threeCards ? $ = 3 : b >= Nt.twoCards && ($ = 2), $ > k && ($ = k)), l((M) => ({
2532
- ...M,
2533
- cardsPerPage: $,
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,
2534
2536
  isLoading: !1
2535
2537
  }));
2536
2538
  }, [b, k]);
2537
- const j = ($ = "next") => {
2538
- let M = _;
2539
- if (typeof $ == "string")
2540
- if ($ === "next")
2541
- if (_ < x - 1)
2542
- M = _ + 1;
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;
2543
2545
  else
2544
2546
  return;
2545
- else if (_ > 0)
2546
- M = _ - 1;
2547
+ else if (g > 0)
2548
+ T = g - 1;
2547
2549
  else
2548
2550
  return;
2549
2551
  else
2550
- M = $;
2552
+ T = M;
2551
2553
  h((E) => ({
2552
2554
  ...E,
2553
- currentPage: M,
2554
- loadedPages: [.../* @__PURE__ */ new Set([...y, M])]
2555
+ currentPage: T,
2556
+ loadedPages: [.../* @__PURE__ */ new Set([...y, T])]
2555
2557
  }));
2556
- }, C = ($) => {
2557
- Ge = $.touches[0].clientX;
2558
- }, S = ($) => {
2558
+ }, C = (M) => {
2559
+ Ge = M.touches[0].clientX;
2560
+ }, S = (M) => {
2559
2561
  if (Ge === null)
2560
2562
  return;
2561
- const M = $.touches[0].clientX, E = Ge - M;
2563
+ const T = M.touches[0].clientX, E = Ge - T;
2562
2564
  E > 5 ? j("next") : E < -5 && j("previous"), Ge = null;
2563
- }, Y = {
2564
- "--width": `${((F = g == null ? void 0 : g.current) == null ? void 0 : F.offsetWidth) || 0}px`,
2565
+ }, I = {
2566
+ "--width": `${((F = _ == null ? void 0 : _.current) == null ? void 0 : F.offsetWidth) || 0}px`,
2565
2567
  "--total-cards": k,
2566
2568
  "--cards-per-page": f,
2567
- "--page": _
2569
+ "--page": g
2568
2570
  };
2569
2571
  return d ? /* @__PURE__ */ a.jsx(Kn, { layout: `carousel${s ? "-with-title" : ""}` }) : /* @__PURE__ */ a.jsxs(
2570
2572
  "section",
2571
2573
  {
2572
- ref: g,
2574
+ ref: _,
2573
2575
  className: w("carousel-wrapper", i),
2574
2576
  "data-testid": "carousel",
2575
2577
  children: [
@@ -2580,20 +2582,20 @@ const ts = ({
2580
2582
  className: "carousel",
2581
2583
  onTouchStart: C,
2582
2584
  onTouchMove: S,
2583
- style: Y,
2585
+ style: I,
2584
2586
  "data-testid": "carousel-list",
2585
- children: t.map(($, M) => {
2586
- let E = $ && $.sys && $.sys.id ? `${e}-card-${$.sys.id}` : null;
2587
- return E && Xr(M, f, _, y) ? /* @__PURE__ */ a.jsx(
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(
2588
2590
  ea,
2589
2591
  {
2590
2592
  id: E,
2591
- card: { ...$, contentType: n[M] },
2593
+ card: { ...M, contentType: n[T] },
2592
2594
  buildCardData: r,
2593
2595
  gtmContext: o
2594
2596
  },
2595
2597
  E
2596
- ) : (E = E || `${e}-card-${M}`, /* @__PURE__ */ a.jsx(
2598
+ ) : (E = E || `${e}-card-${T}`, /* @__PURE__ */ a.jsx(
2597
2599
  _e,
2598
2600
  {
2599
2601
  element: "li",
@@ -2605,48 +2607,48 @@ const ts = ({
2605
2607
  })
2606
2608
  }
2607
2609
  ),
2608
- x <= 1 ? null : /* @__PURE__ */ a.jsxs("ul", { className: "controls", "data-testid": "carousel-controls", children: [
2610
+ v <= 1 ? null : /* @__PURE__ */ a.jsxs("ul", { className: "controls", "data-testid": "carousel-controls", children: [
2609
2611
  /* @__PURE__ */ a.jsx("li", { className: "arrow previous", children: /* @__PURE__ */ a.jsx(
2610
- B,
2612
+ q,
2611
2613
  {
2612
2614
  variant: "secondary",
2613
2615
  size: "large",
2614
2616
  icon: { icon: "chevron_left" },
2615
- onClick: ($) => {
2616
- $.preventDefault(), $.stopPropagation(), j("previous");
2617
+ onClick: (M) => {
2618
+ M.preventDefault(), M.stopPropagation(), j("previous");
2617
2619
  },
2618
2620
  screenreaderText: c.formatMessage({
2619
2621
  id: "carousel_pagination_previous"
2620
2622
  }),
2621
- disabled: _ <= 0
2623
+ disabled: g <= 0
2622
2624
  }
2623
2625
  ) }),
2624
- [...Array(x)].map(($, M) => /* @__PURE__ */ a.jsx("li", { "data-testid": "carousel-controls-button", children: /* @__PURE__ */ a.jsx(
2626
+ [...Array(v)].map((M, T) => /* @__PURE__ */ a.jsx("li", { "data-testid": "carousel-controls-button", children: /* @__PURE__ */ a.jsx(
2625
2627
  "button",
2626
2628
  {
2627
2629
  className: w("page-indicator", {
2628
- selected: M === _
2630
+ selected: T === g
2629
2631
  }),
2630
2632
  onClick: (E) => {
2631
- E.preventDefault(), E.stopPropagation(), j(M);
2633
+ E.preventDefault(), E.stopPropagation(), j(T);
2632
2634
  },
2633
2635
  children: /* @__PURE__ */ a.jsx(ae, { showOnFocus: !1, children: c.formatMessage(
2634
2636
  { id: "carousel_pagination_page" },
2635
- { number: M + 1, total: x }
2637
+ { number: T + 1, total: v }
2636
2638
  ) })
2637
2639
  }
2638
- ) }, `page-indicator-${M}`)),
2640
+ ) }, `page-indicator-${T}`)),
2639
2641
  /* @__PURE__ */ a.jsx("li", { className: "arrow next", children: /* @__PURE__ */ a.jsx(
2640
- B,
2642
+ q,
2641
2643
  {
2642
2644
  variant: "secondary",
2643
2645
  size: "large",
2644
2646
  icon: { icon: "chevron_right" },
2645
- onClick: ($) => {
2646
- $.preventDefault(), $.stopPropagation(), j("next");
2647
+ onClick: (M) => {
2648
+ M.preventDefault(), M.stopPropagation(), j("next");
2647
2649
  },
2648
2650
  screenreaderText: c.formatMessage({ id: "carousel_pagination_next" }),
2649
- disabled: _ >= x - 1
2651
+ disabled: g >= v - 1
2650
2652
  }
2651
2653
  ) })
2652
2654
  ] })
@@ -2694,7 +2696,7 @@ const Pt = "joinCommunityButton", ta = ({ isMember: e = !1, isShort: t = !1, fun
2694
2696
  }, [c]);
2695
2697
  const d = {}, p = {};
2696
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(
2697
- B,
2699
+ q,
2698
2700
  {
2699
2701
  variant: c ? "secondary" : "primary",
2700
2702
  size: "medium",
@@ -2746,7 +2748,7 @@ const At = "communityDetails_", Ri = ({
2746
2748
  ] }),
2747
2749
  /* @__PURE__ */ a.jsx(ta, { isMember: t, functions: { ...o } }),
2748
2750
  t && /* @__PURE__ */ a.jsx(
2749
- B,
2751
+ q,
2750
2752
  {
2751
2753
  variant: "primary",
2752
2754
  onClick: i,
@@ -2785,15 +2787,15 @@ const Li = ({
2785
2787
  };
2786
2788
  return /* @__PURE__ */ a.jsx("ul", { className: w("filters", s), children: o.map(({ id: f, text: d, disabled: p = !1, callback: h = () => {
2787
2789
  } }) => {
2788
- let _ = {};
2789
- return p && (_ = { disabled: !0, "aria-label": i.formatMessage({ id: "filters_disabled" }, { name: d }) }), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
2790
+ let g = {};
2791
+ return p && (g = { disabled: !0, "aria-label": i.formatMessage({ id: "filters_disabled" }, { name: d }) }), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
2790
2792
  "button",
2791
2793
  {
2792
2794
  className: w(f, { selected: c.includes(f) }),
2793
2795
  onClick: (y) => {
2794
2796
  y.preventDefault(), y.stopPropagation(), l(f, h);
2795
2797
  },
2796
- ..._,
2798
+ ...g,
2797
2799
  children: d
2798
2800
  }
2799
2801
  ) }, f);
@@ -2824,7 +2826,7 @@ const Ft = { en: "English", es: "Español", fr: "Français", pt: "Português" },
2824
2826
  e !== f && d(e);
2825
2827
  }, [e]), !r || !Object.values(r).some((y) => y && y.post_name))
2826
2828
  return null;
2827
- const h = Object.keys(r), _ = f !== e;
2829
+ const h = Object.keys(r), g = f !== e;
2828
2830
  return /* @__PURE__ */ a.jsxs("div", { className: w("language-switcher text-small", o, m), children: [
2829
2831
  /* @__PURE__ */ a.jsxs("nav", { children: [
2830
2832
  o !== "short" && /* @__PURE__ */ a.jsx("p", { children: c || l.formatMessage({ id: `${Ke}label` }) }),
@@ -2835,14 +2837,14 @@ const Ft = { en: "English", es: "Español", fr: "Français", pt: "Português" },
2835
2837
  return f === y ? k["aria-label"] = l.formatMessage({ id: `${Ke}selected` }, { language: Ft[y] }) : k = {
2836
2838
  ...k,
2837
2839
  href: ns(y, i),
2838
- onClick: (x) => {
2839
- x.preventDefault(), x.stopPropagation(), d(y), s(y);
2840
+ onClick: (v) => {
2841
+ v.preventDefault(), v.stopPropagation(), d(y), s(y);
2840
2842
  }
2841
2843
  }, /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(gt, { ...k, fallbackElement: "span", children: Ft[y] }) }, y);
2842
2844
  }) }),
2843
- o !== "short" && !_ && /* @__PURE__ */ a.jsx("p", { children: l.formatMessage({ id: `${Ke}translation_${t ? "original" : n ? "human" : "machine"}` }) })
2845
+ o !== "short" && !g && /* @__PURE__ */ a.jsx("p", { children: l.formatMessage({ id: `${Ke}translation_${t ? "original" : n ? "human" : "machine"}` }) })
2844
2846
  ] }),
2845
- o !== "short" && !_ && !t && !n && /* @__PURE__ */ a.jsx("small", {
2847
+ o !== "short" && !g && !t && !n && /* @__PURE__ */ a.jsx("small", {
2846
2848
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2847
2849
  // @ts-ignore
2848
2850
  // `values` are throwing a type error: https://github.com/formatjs/formatjs/issues/3633
@@ -2877,7 +2879,7 @@ const Rt = Ua({ locale: "en", messages: Qt }), yt = ({
2877
2879
  }
2878
2880
  };
2879
2881
  return /* @__PURE__ */ a.jsx("footer", { className: w("load-more", s), children: !o && e ? /* @__PURE__ */ a.jsx(
2880
- B,
2882
+ q,
2881
2883
  {
2882
2884
  variant: "secondary",
2883
2885
  icon: n,
@@ -2893,7 +2895,7 @@ const Rt = Ua({ locale: "en", messages: Qt }), yt = ({
2893
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" }) }) }) });
2894
2896
  let Qe = !1;
2895
2897
  const as = ({ element: e = "div", id: t = "more-menu", options: n, className: r = "" }) => {
2896
- const s = P(), i = ne(null), [o, c] = R(!1), m = (l) => {
2898
+ const s = P(), i = te(null), [o, c] = R(!1), m = (l) => {
2897
2899
  i.current && l.target instanceof HTMLElement && !i.current.contains(l.target) && c(!1);
2898
2900
  };
2899
2901
  return G(() => (document.addEventListener("click", m, !0), () => {
@@ -2903,7 +2905,7 @@ const as = ({ element: e = "div", id: t = "more-menu", options: n, className: r
2903
2905
  className: w("more-menu text-medium", r),
2904
2906
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2905
2907
  /* @__PURE__ */ a.jsx(
2906
- B,
2908
+ q,
2907
2909
  {
2908
2910
  variant: "tertiary",
2909
2911
  size: "medium",
@@ -2915,7 +2917,7 @@ const as = ({ element: e = "div", id: t = "more-menu", options: n, className: r
2915
2917
  screenreaderText: s.formatMessage({ id: "moreMenu" })
2916
2918
  }
2917
2919
  ),
2918
- /* @__PURE__ */ a.jsx("ul", { id: t, hidden: !o, children: n.map(({ href: l, onClick: f, text: d, icon: p, ...h }, _) => {
2920
+ /* @__PURE__ */ a.jsx("ul", { id: t, hidden: !o, children: n.map(({ href: l, onClick: f, text: d, icon: p, ...h }, g) => {
2919
2921
  const y = {
2920
2922
  ...h,
2921
2923
  onClick: (k) => {
@@ -2931,7 +2933,7 @@ const as = ({ element: e = "div", id: t = "more-menu", options: n, className: r
2931
2933
  }
2932
2934
  };
2933
2935
  return l && (y.href = l), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
2934
- B,
2936
+ q,
2935
2937
  {
2936
2938
  variant: "tertiary",
2937
2939
  size: "medium",
@@ -2939,7 +2941,7 @@ const as = ({ element: e = "div", id: t = "more-menu", options: n, className: r
2939
2941
  ...y,
2940
2942
  children: d
2941
2943
  }
2942
- ) }, `${window.btoa(d)}_${_}`);
2944
+ ) }, `${window.btoa(d)}_${g}`);
2943
2945
  }) })
2944
2946
  ] })
2945
2947
  });
@@ -3059,9 +3061,9 @@ const cs = "shareLinks_", Oi = ({
3059
3061
  /* @__PURE__ */ a.jsx("ul", { children: m.map(({ key: l, icon: f, url: d, shouldRender: p = !0, onClick: h }) => {
3060
3062
  if (typeof p == "function" && !p())
3061
3063
  return null;
3062
- const _ = {};
3063
- return h && (_.onClick = (y) => h(y, d)), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
3064
- B,
3064
+ const g = {};
3065
+ return h && (g.onClick = (y) => h(y, d)), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
3066
+ q,
3065
3067
  {
3066
3068
  size: s,
3067
3069
  variant: "tertiary",
@@ -3074,7 +3076,7 @@ const cs = "shareLinks_", Oi = ({
3074
3076
  "data-gtm-event-type": `${l}-click`,
3075
3077
  "data-testid": "link",
3076
3078
  screenreaderText: c.formatMessage({ id: `${cs}link_${l}` }),
3077
- ..._
3079
+ ...g
3078
3080
  }
3079
3081
  ) }, l);
3080
3082
  }) })
@@ -3099,7 +3101,7 @@ const Bi = ({ tabs: e, className: t = "" }) => {
3099
3101
  ), o = [], c = [];
3100
3102
  return e.forEach(({ id: l, text: f, content: d, href: p }, h) => {
3101
3103
  l = n(l, f, h);
3102
- const _ = s === l, y = {};
3104
+ const g = s === l, y = {};
3103
3105
  p || (y["aria-controls"] = l, y.onClick = (k) => {
3104
3106
  k.preventDefault(), k.stopPropagation(), i(l), window.location.hash = `#${l}`;
3105
3107
  }, c.push(
@@ -3107,10 +3109,10 @@ const Bi = ({ tabs: e, className: t = "" }) => {
3107
3109
  "section",
3108
3110
  {
3109
3111
  id: l,
3110
- hidden: !_,
3112
+ hidden: !g,
3111
3113
  role: "tabpanel",
3112
3114
  "aria-labelledby": `tab-${l}`,
3113
- "aria-live": _ ? "assertive" : "off",
3115
+ "aria-live": g ? "assertive" : "off",
3114
3116
  children: typeof d == "string" ? /* @__PURE__ */ a.jsx("p", { children: d }) : d
3115
3117
  },
3116
3118
  `section-${l}`
@@ -3121,9 +3123,9 @@ const Bi = ({ tabs: e, className: t = "" }) => {
3121
3123
  {
3122
3124
  href: p || `#${l}`,
3123
3125
  id: `tab-${l}`,
3124
- className: w({ selected: _ }),
3126
+ className: w({ selected: g }),
3125
3127
  role: "tab",
3126
- "aria-selected": _,
3128
+ "aria-selected": g,
3127
3129
  ...y,
3128
3130
  children: f
3129
3131
  }
@@ -3196,7 +3198,7 @@ const Dt = "cookieBanner_", Lt = ["apol-cookie-banner", "apolitical-performance-
3196
3198
  /* @__PURE__ */ a.jsx("p", { children: e.formatMessage({ id: `${Dt}text` }) }),
3197
3199
  /* @__PURE__ */ a.jsx(ht, { buttons: l })
3198
3200
  ] });
3199
- }, ve = {
3201
+ }, xe = {
3200
3202
  platform: {
3201
3203
  order: ["events", "courses", "articles"],
3202
3204
  // An array guarantees the right order
@@ -3290,14 +3292,14 @@ const Dt = "cookieBanner_", Lt = ["apol-cookie-banner", "apolitical-performance-
3290
3292
  }
3291
3293
  };
3292
3294
  const Me = "footer_", ot = "SiteFooter", En = ({ group: e }) => {
3293
- const t = ve[e].order || [];
3295
+ const t = xe[e].order || [];
3294
3296
  let n = !1;
3295
- return "text" in ve[e] && (n = ve[e].text), /* @__PURE__ */ a.jsxs(qe, { children: [
3297
+ return "text" in xe[e] && (n = xe[e].text), /* @__PURE__ */ a.jsxs(qe, { children: [
3296
3298
  /* @__PURE__ */ a.jsx("p", { className: "pre-title", children: /* @__PURE__ */ a.jsx(je, { id: `${Me}${e}` }) }),
3297
3299
  Array.isArray(t) && t.length > 0 && /* @__PURE__ */ a.jsx("ul", { className: "text-medium", children: t.map((r) => {
3298
3300
  if (["order", "child", "text"].includes(r))
3299
3301
  return null;
3300
- const { href: s, gtmType: i } = ve[e][r], o = {};
3302
+ const { href: s, gtmType: i } = xe[e][r], o = {};
3301
3303
  return ["legal"].includes(e) && (o.target = "_blank", o.rel = "noopener"), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
3302
3304
  "a",
3303
3305
  {
@@ -3341,12 +3343,12 @@ const Me = "footer_", ot = "SiteFooter", En = ({ group: e }) => {
3341
3343
  ),
3342
3344
  /* @__PURE__ */ a.jsx("footer", { children: ["platform", "community", "company", "contact"].map((e) => /* @__PURE__ */ a.jsxs("div", { className: "group", children: [
3343
3345
  /* @__PURE__ */ a.jsx(En, { group: e }),
3344
- Object.keys(ve[e]).includes("child") && /* @__PURE__ */ a.jsx(En, { group: ve[e].child })
3346
+ Object.keys(xe[e]).includes("child") && /* @__PURE__ */ a.jsx(En, { group: xe[e].child })
3345
3347
  ] }, e)) }),
3346
3348
  /* @__PURE__ */ a.jsx("hr", {}),
3347
3349
  /* @__PURE__ */ a.jsxs("div", { className: "sub-footer", children: [
3348
- /* @__PURE__ */ a.jsx("ul", { children: Array.isArray(ve.social.order) && ve.social.order.map((e) => {
3349
- const t = ve.social[e];
3350
+ /* @__PURE__ */ a.jsx("ul", { children: Array.isArray(xe.social.order) && xe.social.order.map((e) => {
3351
+ const t = xe.social[e];
3350
3352
  return /* @__PURE__ */ a.jsx("li", { className: e, children: /* @__PURE__ */ a.jsx(
3351
3353
  "a",
3352
3354
  {
@@ -3367,7 +3369,7 @@ const Je = "emailHelperTextBox_", qi = ({ type: e, email: t, redirectPath: n, re
3367
3369
  const s = P(), [i, o] = R({ path: `${Je}default`, type: "default", link: {}, mail: {}, error: "" }), [c, m] = R(!1), l = Dn(
3368
3370
  (h) => {
3369
3371
  h.preventDefault(), h.stopPropagation();
3370
- const _ = (y) => {
3372
+ const g = (y) => {
3371
3373
  o({
3372
3374
  path: `${Je}error_verificationFailedToSend`,
3373
3375
  type: "error",
@@ -3389,13 +3391,13 @@ const Je = "emailHelperTextBox_", qi = ({ type: e, email: t, redirectPath: n, re
3389
3391
  });
3390
3392
  };
3391
3393
  if (typeof r != "function") {
3392
- _(s.formatMessage({ id: `${Je}error_noFunction` }));
3394
+ g(s.formatMessage({ id: `${Je}error_noFunction` }));
3393
3395
  return;
3394
3396
  }
3395
3397
  m(!0), r(t).then(() => {
3396
3398
  localStorage.setItem("email", t), window.location.href = n || "/signup/verify-email";
3397
3399
  }).catch((y) => {
3398
- _(y.message);
3400
+ g(y.message);
3399
3401
  }).finally(() => {
3400
3402
  m(!1);
3401
3403
  });
@@ -3405,20 +3407,20 @@ const Je = "emailHelperTextBox_", qi = ({ type: e, email: t, redirectPath: n, re
3405
3407
  );
3406
3408
  G(
3407
3409
  () => {
3408
- let h = Je, _ = "default", y = {}, k = {};
3410
+ let h = Je, g = "default", y = {}, k = {};
3409
3411
  switch (e) {
3410
3412
  case "gov":
3411
- h += "autoApproved", _ = "success";
3413
+ h += "autoApproved", g = "success";
3412
3414
  break;
3413
3415
  case "nonGov":
3414
- h += "unrecognisedEmail", _ = "error", y = {
3416
+ h += "unrecognisedEmail", g = "error", y = {
3415
3417
  href: "https://about.apolitical.co/who-can-join-the-community",
3416
3418
  "data-gtm-event-context": "NonGovEmailHelperTextBox",
3417
3419
  "data-gtm-event-type": "LearnMoreClick"
3418
3420
  };
3419
3421
  break;
3420
3422
  case "pending":
3421
- h += "pendingApproval", _ = "error", k = {
3423
+ h += "pendingApproval", g = "error", k = {
3422
3424
  href: "mailto:concierge@apolitical.co",
3423
3425
  className: "gtm-trackable",
3424
3426
  "data-gtm-event-context": "EmailExistsBox",
@@ -3426,17 +3428,17 @@ const Je = "emailHelperTextBox_", qi = ({ type: e, email: t, redirectPath: n, re
3426
3428
  };
3427
3429
  break;
3428
3430
  case "verify":
3429
- h += "emailUnverified", _ = "error", y = {
3431
+ h += "emailUnverified", g = "error", y = {
3430
3432
  href: "#",
3431
3433
  "data-gtm-event-context": "VerifyEmailBox",
3432
3434
  "data-gtm-event-type": "SendEmailClick",
3433
3435
  className: "gtm-trackable",
3434
- onClick: (x) => l(x),
3436
+ onClick: (v) => l(v),
3435
3437
  "data-testid": "send-verify-email-click"
3436
3438
  };
3437
3439
  break;
3438
3440
  case "exists":
3439
- h += "emailAlreadyExists", _ = "error", y = {
3441
+ h += "emailAlreadyExists", g = "error", y = {
3440
3442
  href: "/user-onboarding/login",
3441
3443
  "data-gtm-event-context": "EmailExistsBox",
3442
3444
  "data-gtm-event-type": "login-click"
@@ -3455,14 +3457,14 @@ const Je = "emailHelperTextBox_", qi = ({ type: e, email: t, redirectPath: n, re
3455
3457
  };
3456
3458
  break;
3457
3459
  }
3458
- o({ ...i, path: h, type: _, link: y, mail: k });
3460
+ o({ ...i, path: h, type: g, link: y, mail: k });
3459
3461
  },
3460
3462
  /* eslint-disable react-hooks/exhaustive-deps */
3461
3463
  [e]
3462
3464
  );
3463
3465
  const f = {};
3464
3466
  return ["link", "mail"].forEach((h) => {
3465
- f[h] = Object.keys(i[h]).length ? (_) => /* @__PURE__ */ a.jsx("a", { ...i[h], children: _ }) : (_) => _;
3467
+ f[h] = Object.keys(i[h]).length ? (g) => /* @__PURE__ */ a.jsx("a", { ...i[h], children: g }) : (g) => g;
3466
3468
  }), /* @__PURE__ */ a.jsx(Ar, { type: i.type, heading: c ? !1 : s.formatMessage({ id: `${i.path}_title` }), children: c ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3467
3469
  /* @__PURE__ */ a.jsx(_e, { element: "span" }),
3468
3470
  /* @__PURE__ */ a.jsx(_e, { element: "span" })
@@ -3518,52 +3520,52 @@ const Ui = ({
3518
3520
  }) => {
3519
3521
  const c = P(), [m, l] = R({ setUp: !1, id: null, rating: null, disabled: !0 }), f = async () => {
3520
3522
  try {
3521
- const x = await n();
3522
- l((g) => ({ ...g, setUp: !0, id: x && x.id, disabled: !1 }));
3523
- } catch (x) {
3524
- l((g) => ({ ...g, setUp: !0, disabled: !0 })), s(x);
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);
3525
3527
  }
3526
3528
  };
3527
3529
  if (G(() => {
3528
3530
  o && !m.setUp && f();
3529
3531
  }, [o]), !o)
3530
3532
  return /* @__PURE__ */ a.jsx(_e, { className: "rating-placeholder" });
3531
- const { id: d, rating: p, disabled: h } = m, _ = "ratings_", y = {
3532
- text: c.formatMessage({ id: `${_}text` }),
3533
- low: c.formatMessage({ id: `${_}low` }),
3534
- high: c.formatMessage({ id: `${_}high` }),
3535
- success: c.formatMessage({ id: `${_}success` }),
3533
+ const { id: d, rating: p, disabled: h } = m, g = "ratings_", y = {
3534
+ text: c.formatMessage({ id: `${g}text` }),
3535
+ low: c.formatMessage({ id: `${g}low` }),
3536
+ high: c.formatMessage({ id: `${g}high` }),
3537
+ success: c.formatMessage({ id: `${g}success` }),
3536
3538
  ...e
3537
- }, k = async (x) => {
3539
+ }, k = async (v) => {
3538
3540
  if (!(!d || h))
3539
3541
  try {
3540
- l((g) => ({ ...g, rating: x, disabled: !0 })), await r({ id: d, value: x });
3541
- } catch (g) {
3542
- l((b) => ({ ...b, rating: null })), s(g);
3542
+ l((_) => ({ ..._, rating: v, disabled: !0 })), await r({ id: d, value: v });
3543
+ } catch (_) {
3544
+ l((b) => ({ ...b, rating: null })), s(_);
3543
3545
  } finally {
3544
- l((g) => ({ ...g, disabled: !1 }));
3546
+ l((_) => ({ ..._, disabled: !1 }));
3545
3547
  }
3546
3548
  };
3547
3549
  return /* @__PURE__ */ a.jsxs("div", { className: w("rating", i), children: [
3548
3550
  /* @__PURE__ */ a.jsx("span", { className: "label", children: y[p ? "success" : "text"] }),
3549
- /* @__PURE__ */ a.jsx("ol", { children: Array.from(new Array(t).keys()).map((x) => {
3550
- const g = x + 1;
3551
- return /* @__PURE__ */ a.jsx("li", { className: w({ selected: p && g <= p }), children: /* @__PURE__ */ a.jsx(
3552
- B,
3551
+ /* @__PURE__ */ a.jsx("ol", { children: Array.from(new Array(t).keys()).map((v) => {
3552
+ const _ = v + 1;
3553
+ return /* @__PURE__ */ a.jsx("li", { className: w({ selected: p && _ <= p }), children: /* @__PURE__ */ a.jsx(
3554
+ q,
3553
3555
  {
3554
3556
  variant: "tertiary",
3555
3557
  size: "small",
3556
- icon: { icon: `star${!p || g > p ? "_empty" : ""}`, position: "left", hover: "star" },
3558
+ icon: { icon: `star${!p || _ > p ? "_empty" : ""}`, position: "left", hover: "star" },
3557
3559
  screenreaderText: `${c.formatMessage(
3558
- { id: `${_}stars` },
3559
- { number: g, total: t }
3560
- )}${g === 1 || g === t ? ` - ${y[g === 1 ? "low" : "high"]}` : ""}`,
3560
+ { id: `${g}stars` },
3561
+ { number: _, total: t }
3562
+ )}${_ === 1 || _ === t ? ` - ${y[_ === 1 ? "low" : "high"]}` : ""}`,
3561
3563
  onClick: (b) => {
3562
- b.preventDefault(), b.stopPropagation(), k(g);
3564
+ b.preventDefault(), b.stopPropagation(), k(_);
3563
3565
  },
3564
3566
  disabled: h
3565
3567
  }
3566
- ) }, `rating-${g}`);
3568
+ ) }, `rating-${_}`);
3567
3569
  }) })
3568
3570
  ] });
3569
3571
  };
@@ -3575,7 +3577,7 @@ const ps = ({
3575
3577
  gtmContext: s = "search-bar",
3576
3578
  gtmEvent: i = "form-submission"
3577
3579
  }) => {
3578
- const { searchIsOpen: o = !0, isDesktopVersion: c = !1 } = n || {}, m = P(), l = ne(null);
3580
+ const { searchIsOpen: o = !0, isDesktopVersion: c = !1 } = n || {}, m = P(), l = te(null);
3579
3581
  Pe(() => {
3580
3582
  !n || c || !o || l.current && l.current.focus();
3581
3583
  }, [o]);
@@ -3633,7 +3635,7 @@ const hs = ({
3633
3635
  initialFormStatus: l = "NOT_SUBMITTED"
3634
3636
  /* NOT_SUBMITTED */
3635
3637
  }) => {
3636
- const [f, d] = R([]), [p, h] = R(!0), [_, y] = R(l), { formatMessage: k } = P(), x = async (j) => {
3638
+ const [f, d] = R([]), [p, h] = R(!0), [g, y] = R(l), { formatMessage: k } = P(), v = async (j) => {
3637
3639
  j.preventDefault();
3638
3640
  try {
3639
3641
  await m(f), d([]), y(
@@ -3646,7 +3648,7 @@ const hs = ({
3646
3648
  /* ERROR */
3647
3649
  ), c(C);
3648
3650
  }
3649
- }, g = (j) => {
3651
+ }, _ = (j) => {
3650
3652
  j.preventDefault(), y(
3651
3653
  "NOT_SUBMITTED"
3652
3654
  /* NOT_SUBMITTED */
@@ -3657,21 +3659,21 @@ const hs = ({
3657
3659
  /* CLOSED */
3658
3660
  );
3659
3661
  };
3660
- return _ === "CLOSED" ? null : _ === "ERROR" || _ === "SUCCESS" ? /* @__PURE__ */ a.jsxs("div", { className: "invite-form-wrapper", children: [
3661
- /* @__PURE__ */ a.jsx("div", { className: "content centred", children: _ === "SUCCESS" ? /* @__PURE__ */ a.jsx("h2", { className: "success-title", children: k({ id: "inviteForm_success" }) }) : /* @__PURE__ */ a.jsxs("h2", { className: "error-title", children: [
3662
+ return g === "CLOSED" ? null : g === "ERROR" || g === "SUCCESS" ? /* @__PURE__ */ a.jsxs("div", { className: "invite-form-wrapper", children: [
3663
+ /* @__PURE__ */ a.jsx("div", { className: "content centred", children: g === "SUCCESS" ? /* @__PURE__ */ a.jsx("h2", { className: "success-title", children: k({ id: "inviteForm_success" }) }) : /* @__PURE__ */ a.jsxs("h2", { className: "error-title", children: [
3662
3664
  " ",
3663
3665
  k({ id: "inviteForm_error" })
3664
3666
  ] }) }),
3665
3667
  /* @__PURE__ */ a.jsx(Te, {}),
3666
- /* @__PURE__ */ a.jsx("div", { className: "footer", children: _ === "SUCCESS" ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3667
- /* @__PURE__ */ a.jsx(B, { variant: "secondary", onClick: g, children: k({ id: "inviteForm_ctaSendMoreInvites" }) }),
3668
- /* @__PURE__ */ a.jsx(B, { onClick: b, children: k({ id: "inviteForm_ctaDone" }) })
3669
- ] }) : /* @__PURE__ */ a.jsx(B, { onClick: g, children: k({ id: "inviteForm_ctaTryAgain" }) }) })
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" }) }) })
3670
3672
  ] }) : /* @__PURE__ */ a.jsx("div", { className: "invite-form-wrapper", children: /* @__PURE__ */ a.jsxs(
3671
3673
  "form",
3672
3674
  {
3673
3675
  style: { backgroundColor: i },
3674
- onSubmit: x,
3676
+ onSubmit: v,
3675
3677
  className: w("invite-form gtm-trackable"),
3676
3678
  children: [
3677
3679
  /* @__PURE__ */ a.jsxs("fieldset", { className: "content", children: [
@@ -3691,7 +3693,7 @@ const hs = ({
3691
3693
  getLabel: (j, C, S) => /* @__PURE__ */ a.jsxs("div", { className: "email text-medium", children: [
3692
3694
  /* @__PURE__ */ a.jsx("div", { "data-tag-item": !0, children: j }),
3693
3695
  /* @__PURE__ */ a.jsx(
3694
- B,
3696
+ q,
3695
3697
  {
3696
3698
  variant: "tertiary",
3697
3699
  size: "small",
@@ -3708,11 +3710,11 @@ const hs = ({
3708
3710
  )
3709
3711
  ] }),
3710
3712
  /* @__PURE__ */ a.jsx(Te, {}),
3711
- /* @__PURE__ */ a.jsx("fieldset", { className: "footer", children: /* @__PURE__ */ a.jsx(B, { className: "sendEmailsButton", disabled: p, children: n }) })
3713
+ /* @__PURE__ */ a.jsx("fieldset", { className: "footer", children: /* @__PURE__ */ a.jsx(q, { className: "sendEmailsButton", disabled: p, children: n }) })
3712
3714
  ]
3713
3715
  }
3714
3716
  ) });
3715
- }, U = {
3717
+ }, z = {
3716
3718
  timeouts: {},
3717
3719
  handlerCalled: {},
3718
3720
  getIsDesktopVersion: (e, t) => {
@@ -3735,9 +3737,9 @@ const hs = ({
3735
3737
  if (n[e] === t || e === "account" && t === !1 && n.navigation === !0)
3736
3738
  return;
3737
3739
  const s = Date.now();
3738
- if (!t && U.handlerCalled[e] && s - U.handlerCalled[e] < 500)
3740
+ if (!t && z.handlerCalled[e] && s - z.handlerCalled[e] < 500)
3739
3741
  return;
3740
- U.handlerCalled[e] = s;
3742
+ z.handlerCalled[e] = s;
3741
3743
  let i = [{ type: `menus.${e}`, value: t }];
3742
3744
  t === !0 && Object.keys(n).forEach((o) => {
3743
3745
  o === e || n[o] === !1 || i.push({ type: `menus.${o}`, value: !1 });
@@ -3762,7 +3764,7 @@ const hs = ({
3762
3764
  if (!(typeof s > "u") && (!n || s[t] && s[t].includes(n) || s.value && s.value.includes(n) || s.toString().includes(n)))
3763
3765
  return e[r];
3764
3766
  }
3765
- return e[0].children ? U.findFirstChild(e[0].children, t, n) : !1;
3767
+ return e[0].children ? z.findFirstChild(e[0].children, t, n) : !1;
3766
3768
  },
3767
3769
  autoFocus: ({ menu: e, navigationRef: t, isDesktopVersion: n, focusElements: r, dispatch: s }) => {
3768
3770
  if (!t.current || !t.current.children)
@@ -3776,20 +3778,20 @@ const hs = ({
3776
3778
  switch (e) {
3777
3779
  case "navigation":
3778
3780
  if (n) {
3779
- const m = U.findFirstChild(
3781
+ const m = z.findFirstChild(
3780
3782
  t.current.children,
3781
3783
  "attributes.aria-controls",
3782
3784
  "navigation"
3783
3785
  );
3784
- o = U.findFirstChild(m.children, "href");
3786
+ o = z.findFirstChild(m.children, "href");
3785
3787
  } else
3786
- o = U.findFirstChild(t.current.children, "href");
3788
+ o = z.findFirstChild(t.current.children, "href");
3787
3789
  o || (o = t.current);
3788
3790
  break;
3789
3791
  case "account":
3790
- if (c = U.findFirstChild(t.current.children, "className", "account"), !c || !c.children)
3792
+ if (c = z.findFirstChild(t.current.children, "className", "account"), !c || !c.children)
3791
3793
  return;
3792
- o = U.findFirstChild(c.children, "href");
3794
+ o = z.findFirstChild(c.children, "href");
3793
3795
  break;
3794
3796
  default:
3795
3797
  return;
@@ -3798,16 +3800,16 @@ const hs = ({
3798
3800
  },
3799
3801
  events: {
3800
3802
  onClick: (e, { id: t, callback: n, isOpen: r }) => {
3801
- e.target && e.target.attributes && e.target.attributes.href || (e.preventDefault(), e.stopPropagation(), clearTimeout(U.timeouts[t]), n(t, !r));
3803
+ e.target && e.target.attributes && e.target.attributes.href || (e.preventDefault(), e.stopPropagation(), clearTimeout(z.timeouts[t]), n(t, !r));
3802
3804
  },
3803
3805
  onFocus: ({ id: e }) => {
3804
- clearTimeout(U.timeouts[e]);
3806
+ clearTimeout(z.timeouts[e]);
3805
3807
  },
3806
3808
  onMouseEnter: ({ id: e, callback: t }) => {
3807
- clearTimeout(U.timeouts[e]), t(e, !0);
3809
+ clearTimeout(z.timeouts[e]), t(e, !0);
3808
3810
  },
3809
3811
  onBlur: ({ id: e, callback: t }) => {
3810
- U.timeouts[e] = setTimeout(() => {
3812
+ z.timeouts[e] = setTimeout(() => {
3811
3813
  t(e, !1);
3812
3814
  }, 250);
3813
3815
  }
@@ -3904,10 +3906,10 @@ const hs = ({
3904
3906
  c.hasVariantText && (d += `_logged${t ? "In" : "Out"}`);
3905
3907
  let p = !1;
3906
3908
  if (c.href) {
3907
- let g = c.gtmType || `${e}-click`;
3908
- if (g.includes(".")) {
3909
- const b = g.split("."), j = b[b.length - 2];
3910
- g = `${j === "topics" ? `${j}-` : ""}${b[b.length - 1]}`;
3909
+ let _ = c.gtmType || `${e}-click`;
3910
+ if (_.includes(".")) {
3911
+ const b = _.split("."), j = b[b.length - 2];
3912
+ _ = `${j === "topics" ? `${j}-` : ""}${b[b.length - 1]}`;
3911
3913
  }
3912
3914
  p = {
3913
3915
  href: c.href,
@@ -3915,7 +3917,7 @@ const hs = ({
3915
3917
  }, l && (p = {
3916
3918
  ...p,
3917
3919
  className: "gtm-trackable",
3918
- "data-gtm-event-type": g,
3920
+ "data-gtm-event-type": _,
3919
3921
  "data-gtm-event-context": "HeaderButtons"
3920
3922
  }), f && (p = {
3921
3923
  ...p,
@@ -3924,35 +3926,35 @@ const hs = ({
3924
3926
  ...c.props || {}
3925
3927
  });
3926
3928
  }
3927
- const h = c.order && c.order[0] && c[c.order[0]], _ = h && c[c.order[0]].order, y = p && window.location.pathname === c.href;
3928
- let k = {}, x = {};
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
3931
  if (h) {
3930
- const g = c.menuId || e, b = {
3931
- onClick: (j) => U.events.onClick(j, { id: g, callback: s, isOpen: r[g] }),
3932
- onFocus: () => U.events.onFocus({ id: g }),
3933
- onBlur: () => U.events.onBlur({ id: g, callback: s }),
3934
- onMouseLeave: () => U.events.onBlur({ id: g, callback: s }),
3935
- onMouseEnter: () => U.events.onMouseEnter({ id: g, callback: s })
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 })
3936
3938
  };
3937
- n && (_ && (k = {
3939
+ n && (g && (k = {
3938
3940
  ...b,
3939
3941
  onKeyPress: (j) => {
3940
- j.key === "Enter" && U.events.onClick(j, { id: g, callback: s, isOpen: r[g] });
3942
+ j.key === "Enter" && z.events.onClick(j, { id: _, callback: s, isOpen: r[_] });
3941
3943
  },
3942
3944
  tabIndex: "0",
3943
3945
  // Add a `tabIndex` so keyboard users can focus on the `li`
3944
3946
  "aria-haspopup": !0,
3945
- "aria-expanded": r[g],
3946
- "aria-controls": g
3947
- }), x = { hidden: g in r ? !r[g] : !0 }), _ || (x = {
3948
- ...x,
3947
+ "aria-expanded": r[_],
3948
+ "aria-controls": _
3949
+ }), v = { hidden: _ in r ? !r[_] : !0 }), g || (v = {
3950
+ ...v,
3949
3951
  ...b
3950
3952
  });
3951
3953
  }
3952
- return /* @__PURE__ */ a.jsxs("li", { className: w({ [c.className]: c.className, "has-submenu": h, parent: _, active: y }), role: "none", ...k, children: [
3953
- p ? A.createElement(f ? B : "a", p, o.formatMessage({ id: d })) : o.formatMessage({ id: d }),
3954
- c.order && /* @__PURE__ */ a.jsx("ul", { ...x, children: c.order.map((g) => {
3955
- if (!c[g])
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((_) => {
3957
+ if (!c[_])
3956
3958
  return null;
3957
3959
  const b = {
3958
3960
  isLoggedIn: t,
@@ -3961,18 +3963,18 @@ const hs = ({
3961
3963
  callback: s,
3962
3964
  doTrack: m ? l : null
3963
3965
  };
3964
- return c[g].order ? /* @__PURE__ */ a.jsxs("li", { className: w({ [c[g].className]: c[g].className }), children: [
3965
- o.formatMessage({ id: `${d}_${g}` }),
3966
- /* @__PURE__ */ a.jsx("ul", { children: c[g].order.map((j) => /* @__PURE__ */ a.jsx(lt, { id: `${e}.${g}.${j}`, ...b }, j)) })
3967
- ] }, g) : /* @__PURE__ */ a.jsx(lt, { id: `${e}.${g}`, ...b }, g);
3966
+ return c[_].order ? /* @__PURE__ */ a.jsxs("li", { className: w({ [c[_].className]: c[_].className }), children: [
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
3970
  }) })
3969
3971
  ] }, e);
3970
3972
  };
3971
3973
  const gs = { height: 67, height_desktop: 83 }, oa = ({ showNavigation: e = !0 }) => {
3972
3974
  const t = P(), n = ge(ke), r = He(!0, !0), s = n && typeof n.id == "string", i = ft(
3973
- () => U.getIsDesktopVersion(s, r),
3975
+ () => z.getIsDesktopVersion(s, r),
3974
3976
  [s, r]
3975
- ), [o, c] = Oa(xr, {
3977
+ ), [o, c] = Oa(vr, {
3976
3978
  headerIsVisible: !0,
3977
3979
  menus: { navigation: !1, search: !1, account: !1 },
3978
3980
  focusElements: {
@@ -3984,18 +3986,18 @@ const gs = { height: 67, height_desktop: 83 }, oa = ({ showNavigation: e = !0 })
3984
3986
  scrollPosition: gs[`height${i.navigation ? "_desktop" : ""}`],
3985
3987
  callbacks: {
3986
3988
  scrollUp: () => {
3987
- !i && l.navigation || U.shouldChangeHeaderIsVisible(!0, l, c);
3989
+ !i && l.navigation || z.shouldChangeHeaderIsVisible(!0, l, c);
3988
3990
  },
3989
3991
  scrollDown: () => {
3990
- !i && l.navigation || U.shouldChangeHeaderIsVisible(!1, l, c);
3992
+ !i && l.navigation || z.shouldChangeHeaderIsVisible(!1, l, c);
3991
3993
  }
3992
3994
  }
3993
3995
  });
3994
- const d = (h, _) => {
3995
- U.handleMenus({ id: h, value: _, menus: l, dispatch: c });
3996
- }, p = ne(null);
3996
+ const d = (h, g) => {
3997
+ z.handleMenus({ id: h, value: g, menus: l, dispatch: c });
3998
+ }, p = te(null);
3997
3999
  return Pe(() => {
3998
- l.navigation && U.autoFocus({
4000
+ l.navigation && z.autoFocus({
3999
4001
  menu: "navigation",
4000
4002
  navigationRef: p,
4001
4003
  isDesktopVersion: i.navigation,
@@ -4003,7 +4005,7 @@ const gs = { height: 67, height_desktop: 83 }, oa = ({ showNavigation: e = !0 })
4003
4005
  dispatch: c
4004
4006
  });
4005
4007
  }, [l.navigation]), Pe(() => {
4006
- l.account && U.autoFocus({
4008
+ l.account && z.autoFocus({
4007
4009
  menu: "account",
4008
4010
  navigationRef: p,
4009
4011
  isDesktopVersion: i.navigation,
@@ -4105,13 +4107,13 @@ const gs = { height: 67, height_desktop: 83 }, oa = ({ showNavigation: e = !0 })
4105
4107
  "button",
4106
4108
  {
4107
4109
  className: "account-button",
4108
- onClick: (h) => U.events.onClick(h, {
4110
+ onClick: (h) => z.events.onClick(h, {
4109
4111
  id: "account",
4110
4112
  callback: d,
4111
4113
  isOpen: l.account
4112
4114
  }),
4113
- onMouseEnter: () => U.events.onMouseEnter({ id: "account", callback: d }),
4114
- onMouseLeave: () => U.events.onBlur({ id: "account", callback: d }),
4115
+ onMouseEnter: () => z.events.onMouseEnter({ id: "account", callback: d }),
4116
+ onMouseLeave: () => z.events.onBlur({ id: "account", callback: d }),
4115
4117
  "aria-haspopup": "true",
4116
4118
  "aria-expanded": l.account,
4117
4119
  "aria-controls": "navigation",
@@ -4167,8 +4169,8 @@ const la = ({
4167
4169
  className: f = "",
4168
4170
  gtmContext: d = "Modal"
4169
4171
  }) => {
4170
- const p = P(), [h, _] = R(t), y = (x) => {
4171
- _(x), x ? (s(), document.body.classList.add("has-overlay")) : (i(), document.body.classList.remove("has-overlay"));
4172
+ const p = P(), [h, g] = R(t), y = (v) => {
4173
+ g(v), v ? (s(), document.body.classList.add("has-overlay")) : (i(), document.body.classList.remove("has-overlay"));
4172
4174
  };
4173
4175
  G(() => {
4174
4176
  y(t);
@@ -4185,7 +4187,7 @@ const la = ({
4185
4187
  /* @__PURE__ */ a.jsxs("div", { className: "top", children: [
4186
4188
  c && /* @__PURE__ */ a.jsx("h2", { className: "modal-title", children: c }),
4187
4189
  /* @__PURE__ */ a.jsx(
4188
- B,
4190
+ q,
4189
4191
  {
4190
4192
  variant: "tertiary",
4191
4193
  size: "medium",
@@ -4273,23 +4275,23 @@ const bs = () => {
4273
4275
  G(() => {
4274
4276
  window.scrollTo(0, 0);
4275
4277
  }, [h]);
4276
- const _ = at(e, { locale: c }), y = at(t, {
4278
+ const g = at(e, { locale: c }), y = at(t, {
4277
4279
  locale: c
4278
4280
  }), k = at(n, {
4279
4281
  locale: c
4280
- }), x = {};
4281
- return f !== "default" && (x[f] = !0), d !== "default" && (x[d] = !0), p !== "default" && (x[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
+ }), 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
4284
  "div",
4283
4285
  {
4284
4286
  id: "wrapper",
4285
- className: w(o, x, { "has-footer": l }),
4287
+ className: w(o, v, { "has-footer": l }),
4286
4288
  children: [
4287
4289
  /* @__PURE__ */ a.jsx(oa, { showNavigation: m }),
4288
4290
  /* @__PURE__ */ a.jsxs("section", { id: "content-wrapper", children: [
4289
4291
  y && /* @__PURE__ */ a.jsx("div", { className: "additional-content prepended", children: y }),
4290
4292
  A.createElement(f === "bold" ? ca : "div", {
4291
4293
  id: "content",
4292
- children: _
4294
+ children: g
4293
4295
  })
4294
4296
  ] }),
4295
4297
  k && /* @__PURE__ */ a.jsx("div", { className: "additional-content appended", children: k }),
@@ -4317,7 +4319,7 @@ const bs = () => {
4317
4319
  WorkAndTheEconomy: "work-and-the-economy"
4318
4320
  },
4319
4321
  "from the community": "community"
4320
- }, xs = {
4322
+ }, vs = {
4321
4323
  getTagDetails: (e) => {
4322
4324
  if (e.includes("topic_")) {
4323
4325
  if (e = Ot.topic[e.replace("topic_", "")], e) {
@@ -4345,7 +4347,7 @@ const Wi = ({
4345
4347
  return e.forEach((l) => {
4346
4348
  if (!l)
4347
4349
  return;
4348
- const f = xs.getTagDetails(l);
4350
+ const f = vs.getTagDetails(l);
4349
4351
  f && m.push(f);
4350
4352
  }), m.length < 1 ? null : /* @__PURE__ */ a.jsx("ul", { className: w("tags text-small", t, s, { "one-line": n }), children: m.map((l) => {
4351
4353
  const f = c.formatMessage({ id: l.text });
@@ -4392,7 +4394,7 @@ const Vi = ({
4392
4394
  ] });
4393
4395
  };
4394
4396
  let et = null;
4395
- const le = "discussion_form_", en = ({
4397
+ const de = "discussion_form_", en = ({
4396
4398
  content: e = { type: "response", slugs: {} },
4397
4399
  userHasPermissions: t = !0,
4398
4400
  meta: n = {
@@ -4423,11 +4425,11 @@ const le = "discussion_form_", en = ({
4423
4425
  },
4424
4426
  gtmContext: m = "DiscussionForm"
4425
4427
  }) => {
4426
- var $, M, E;
4428
+ var M, T, E;
4427
4429
  const l = P(), f = ge(ke), [d, p] = R(
4428
4430
  n.isEditing && n.isEditing.text || ""
4429
- ), [h, _] = R(o.error || !1), [y, k] = R(!1), x = ne(null);
4430
- if (r || (r = x), n.isLoading)
4431
+ ), [h, g] = R(o.error || !1), [y, k] = R(!1), v = te(null);
4432
+ if (r || (r = v), n.isLoading)
4431
4433
  return /* @__PURE__ */ a.jsx(
4432
4434
  _e,
4433
4435
  {
@@ -4435,85 +4437,85 @@ const le = "discussion_form_", en = ({
4435
4437
  "data-testid": "loading-placeholder"
4436
4438
  }
4437
4439
  );
4438
- const g = (I) => {
4439
- const Z = I.target.value;
4440
- p(Z);
4441
- let q;
4442
- !f || !f.id ? q = be(
4440
+ const _ = (O) => {
4441
+ const H = O.target.value;
4442
+ p(H);
4443
+ let U;
4444
+ !f || !f.id ? U = be(
4443
4445
  l.formatMessage,
4444
- `${le}error_loggedOut`,
4446
+ `${de}error_loggedOut`,
4445
4447
  e.type,
4446
4448
  "action"
4447
- ) : t ? Z.length >= s && (q = `${le}error_tooLong`) : q = be(
4449
+ ) : t ? H.length >= s && (U = `${de}error_tooLong`) : U = be(
4448
4450
  l.formatMessage,
4449
- `${le}error_noPermission`,
4451
+ `${de}error_noPermission`,
4450
4452
  e.type,
4451
4453
  "action"
4452
- ), q ? _(q) : h && _(!1);
4454
+ ), U ? g(U) : h && g(!1);
4453
4455
  };
4454
4456
  let b = `${e.type}-form`;
4455
4457
  if (e.type === "response" || e.type === "reply") {
4456
- const I = (($ = e.slugs) == null ? void 0 : $.reply) || ((M = e.slugs) == null ? void 0 : M.answer) || ((E = e.slugs) == null ? void 0 : E.question) || "";
4457
- I && (b = `${b}-${I.slice(-15)}`);
4458
+ 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
4460
  }
4459
- const j = async (I) => {
4460
- var q;
4461
- if (I.preventDefault(), I.stopPropagation(), !f || !f.id || !t || S)
4461
+ const j = async (O) => {
4462
+ var U;
4463
+ if (O.preventDefault(), O.stopPropagation(), !f || !f.id || !t || S)
4462
4464
  return;
4463
4465
  et && clearTimeout(et), k("submitting");
4464
- const Z = window.location.pathname;
4466
+ const H = window.location.pathname;
4465
4467
  try {
4466
- let z;
4468
+ let W;
4467
4469
  switch (e.type) {
4468
4470
  case "post":
4469
- z = await c.create({ content: d });
4471
+ W = await c.create({ content: d });
4470
4472
  break;
4471
4473
  case "question":
4472
- z = await c.create({
4474
+ W = await c.create({
4473
4475
  title: d,
4474
4476
  authorId: f && f.id,
4475
- ...(q = c.props) == null ? void 0 : q.create
4477
+ ...(U = c.props) == null ? void 0 : U.create
4476
4478
  });
4477
4479
  break;
4478
4480
  case "response":
4479
- z = await c.create(
4481
+ W = await c.create(
4480
4482
  { question: e.slugs.question },
4481
- { body: d, authorId: f && f.id, contentPath: Z }
4483
+ { body: d, authorId: f && f.id, contentPath: H }
4482
4484
  );
4483
4485
  break;
4484
4486
  case "reply":
4485
- z = await c.create(
4487
+ W = await c.create(
4486
4488
  { question: e.slugs.question, answer: e.slugs.answer },
4487
- { body: d, authorId: f && f.id, contentPath: Z }
4489
+ { body: d, authorId: f && f.id, contentPath: H }
4488
4490
  );
4489
4491
  break;
4490
4492
  default:
4491
4493
  break;
4492
4494
  }
4493
- await vr(1e3), c.callback && await c.callback(z), et = setTimeout(() => {
4495
+ await xr(1e3), c.callback && await c.callback(W), et = setTimeout(() => {
4494
4496
  p(""), k("submitted"), C();
4495
4497
  }, 500);
4496
- } catch (z) {
4497
- const Q = z;
4498
- let H = `${le}error`;
4499
- Q.message.includes("entry already exists") && (H = be(
4498
+ } catch (W) {
4499
+ const Q = W;
4500
+ let V = `${de}error`;
4501
+ Q.message.includes("entry already exists") && (V = be(
4500
4502
  l.formatMessage,
4501
- `${le}error_alreadyExists`,
4503
+ `${de}error_alreadyExists`,
4502
4504
  e.type,
4503
4505
  "action"
4504
- )), Q.message.includes("429") ? H = be(
4506
+ )), Q.message.includes("429") ? V = be(
4505
4507
  l.formatMessage,
4506
- `${le}error_tooMany`,
4508
+ `${de}error_tooMany`,
4507
4509
  e.type,
4508
4510
  "action"
4509
- ) : Q.message.includes("400") && (H = `${le}error`), _(H), C();
4511
+ ) : Q.message.includes("400") && (V = `${de}error`), g(V), C();
4510
4512
  }
4511
4513
  }, C = () => {
4512
4514
  et = setTimeout(() => {
4513
- _(!1), k(!1);
4515
+ g(!1), k(!1);
4514
4516
  }, 5e3);
4515
- }, S = !d || !yr(d), Y = y === "submitting", F = [];
4516
- return (n.isEditing && !Y || o.cancel) && F.push({
4517
+ }, S = !d || !yr(d), I = y === "submitting", F = [];
4518
+ return (n.isEditing && !I || o.cancel) && F.push({
4517
4519
  variant: "secondary",
4518
4520
  size: { mobile: "small", 600: "medium" },
4519
4521
  onClick: c.handleCancel,
@@ -4521,26 +4523,26 @@ const le = "discussion_form_", en = ({
4521
4523
  "data-gtm-event-context": m,
4522
4524
  "data-gtm-event-type": `cancel-${e.type}-click`,
4523
4525
  disabled: !o.cancel && (!f || !f.id || !d),
4524
- children: l.formatMessage({ id: `${le}cancel` })
4526
+ children: l.formatMessage({ id: `${de}cancel` })
4525
4527
  }), F.push({
4526
4528
  variant: "primary",
4527
4529
  size: { mobile: "small", 600: "medium" },
4528
- onClick: (I) => {
4530
+ onClick: (O) => {
4529
4531
  if (n.isEditing) {
4530
4532
  k("submitting"), c.handleSaveEdit && c.handleSaveEdit(
4531
- x.current && "value" in x.current ? x.current.value : ""
4533
+ v.current && "value" in v.current ? v.current.value : ""
4532
4534
  );
4533
4535
  return;
4534
4536
  }
4535
- j(I);
4537
+ j(O);
4536
4538
  },
4537
4539
  className: "gtm-trackable",
4538
4540
  "data-gtm-event-context": m,
4539
4541
  "data-gtm-event-type": `${n.isEditing ? "save" : "submit"}-${e.type}-click`,
4540
4542
  "data-testid": "save-button",
4541
- disabled: !f || !f.id || !t || S || Y || n.isEditing && d === n.isEditing.text,
4543
+ disabled: !f || !f.id || !t || S || I || n.isEditing && d === n.isEditing.text,
4542
4544
  children: l.formatMessage({
4543
- id: `${le}${Y ? n.isEditing ? "saving" : "posting" : n.isEditing ? "save" : "post"}`
4545
+ id: `${de}${I ? n.isEditing ? "saving" : "posting" : n.isEditing ? "save" : "post"}`
4544
4546
  })
4545
4547
  }), /* @__PURE__ */ a.jsxs(
4546
4548
  "form",
@@ -4551,7 +4553,7 @@ const le = "discussion_form_", en = ({
4551
4553
  }),
4552
4554
  "data-testid": `discussion-${e.type}-form`,
4553
4555
  children: [
4554
- (n == null ? void 0 : n.showTitle) && !n.isEditing && ["question"].includes(e.type) && /* @__PURE__ */ a.jsx("h2", { children: be(l.formatMessage, `${le}title`, e.type, "action") }),
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") }),
4555
4557
  /* @__PURE__ */ a.jsx(
4556
4558
  Xt,
4557
4559
  {
@@ -4560,7 +4562,7 @@ const le = "discussion_form_", en = ({
4560
4562
  gtmType: "profile-click"
4561
4563
  }
4562
4564
  ),
4563
- /* @__PURE__ */ a.jsx(ae, { element: "label", showOnFocus: !1, htmlFor: `${b}-input`, children: be(l.formatMessage, `${le}label`, e.type, "action") }),
4565
+ /* @__PURE__ */ a.jsx(ae, { element: "label", showOnFocus: !1, htmlFor: `${b}-input`, children: be(l.formatMessage, `${de}label`, e.type, "action") }),
4564
4566
  /* @__PURE__ */ a.jsx(
4565
4567
  Xa,
4566
4568
  {
@@ -4569,11 +4571,11 @@ const le = "discussion_form_", en = ({
4569
4571
  name: e.type,
4570
4572
  placeholder: be(
4571
4573
  l.formatMessage,
4572
- `${le}placeholder`,
4574
+ `${de}placeholder`,
4573
4575
  e.type,
4574
4576
  "action"
4575
4577
  ),
4576
- onChange: g,
4578
+ onChange: _,
4577
4579
  value: d,
4578
4580
  maxLength: s,
4579
4581
  "aria-invalid": !!h,
@@ -4582,8 +4584,8 @@ const le = "discussion_form_", en = ({
4582
4584
  autoFocus: !!n.isEditing
4583
4585
  }
4584
4586
  ),
4585
- /* @__PURE__ */ a.jsx("small", { children: be(l.formatMessage, `${le}explainer`, e.type, "action", {
4586
- a: (I) => /* @__PURE__ */ a.jsx(
4587
+ /* @__PURE__ */ a.jsx("small", { children: be(l.formatMessage, `${de}explainer`, e.type, "action", {
4588
+ a: (O) => /* @__PURE__ */ a.jsx(
4587
4589
  "a",
4588
4590
  {
4589
4591
  href: "https://about.apolitical.co/q-and-a-community-guidelines",
@@ -4592,12 +4594,12 @@ const le = "discussion_form_", en = ({
4592
4594
  "data-gtm-event-context": m,
4593
4595
  "data-gtm-event-type": "community-guidelines-link",
4594
4596
  rel: "noreferrer",
4595
- children: I
4597
+ children: O
4596
4598
  }
4597
4599
  )
4598
4600
  }) }),
4599
4601
  /* @__PURE__ */ a.jsx(ht, { buttons: F }),
4600
- y === "submitted" && /* @__PURE__ */ a.jsx(Vt, { className: "success", "data-testid": "success", children: be(l.formatMessage, `${le}success`, e.type, "action") }),
4602
+ y === "submitted" && /* @__PURE__ */ a.jsx(Vt, { className: "success", "data-testid": "success", children: be(l.formatMessage, `${de}success`, e.type, "action") }),
4601
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(
4602
4604
  { id: h },
4603
4605
  {
@@ -4631,15 +4633,15 @@ const le = "discussion_form_", en = ({
4631
4633
  create: t
4632
4634
  }
4633
4635
  }
4634
- ), vs = {
4636
+ ), xs = {
4635
4637
  showThread: !0,
4636
4638
  showForm: !1
4637
- }, xt = Gt(vs), ks = ({ children: e }) => {
4639
+ }, vt = Gt(xs), ks = ({ children: e }) => {
4638
4640
  const [t, n] = R({
4639
4641
  showThread: !0,
4640
4642
  showForm: !1
4641
4643
  });
4642
- return /* @__PURE__ */ a.jsx(xt.Provider, { value: { ...t, updateConversation: n }, children: e });
4644
+ return /* @__PURE__ */ a.jsx(vt.Provider, { value: { ...t, updateConversation: n }, children: e });
4643
4645
  }, js = ({
4644
4646
  question: e,
4645
4647
  answer: t,
@@ -4668,14 +4670,14 @@ const Bt = () => {
4668
4670
  G(() => {
4669
4671
  h(s);
4670
4672
  }, [s]);
4671
- const [f, d] = R(t), [p, h] = R(s), [_, y] = R(!1), [k, x] = R(!1), g = ft(() => ws(n, Zt), [n]), b = (C) => {
4672
- if (C.preventDefault(), C.stopPropagation(), x(!1), Ze)
4673
+ const [f, d] = R(t), [p, h] = R(s), [g, y] = R(!1), [k, v] = R(!1), _ = ft(() => ws(n, Zt), [n]), b = (C) => {
4674
+ if (C.preventDefault(), C.stopPropagation(), v(!1), Ze)
4673
4675
  return Bt(), !1;
4674
- if (Bt(), _ || !o)
4676
+ if (Bt(), g || !o)
4675
4677
  return !1;
4676
4678
  Ze = setTimeout(j, 350);
4677
4679
  }, j = async () => {
4678
- if (Bt(), _ || !o)
4680
+ if (Bt(), g || !o)
4679
4681
  return !1;
4680
4682
  let C = p ? f - 1 : f + 1;
4681
4683
  C < 0 && (C = 0), y(!0), d(C), h(!p);
@@ -4693,23 +4695,23 @@ const Bt = () => {
4693
4695
  return A.createElement(
4694
4696
  e,
4695
4697
  {
4696
- className: w("likes-wrapper text-medium action-button", { "show-spinner": _, "is-liked": p, disabled: !o }),
4698
+ className: w("likes-wrapper text-medium action-button", { "show-spinner": g, "is-liked": p, disabled: !o }),
4697
4699
  onClick: b,
4698
4700
  onMouseEnter: () => {
4699
- x(!0);
4701
+ v(!0);
4700
4702
  },
4701
4703
  onMouseLeave: () => {
4702
- x(!1);
4704
+ v(!1);
4703
4705
  },
4704
4706
  onFocus: () => {
4705
- x(!0);
4707
+ v(!0);
4706
4708
  },
4707
4709
  onBlur: () => {
4708
- x(!1);
4710
+ v(!1);
4709
4711
  },
4710
4712
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
4711
4713
  /* @__PURE__ */ a.jsx(
4712
- B,
4714
+ q,
4713
4715
  {
4714
4716
  variant: "tertiary",
4715
4717
  size: "medium",
@@ -4728,7 +4730,7 @@ const Bt = () => {
4728
4730
  ),
4729
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 }) }),
4730
4732
  n && /* @__PURE__ */ a.jsx(wr, { isOpen: k, isLoading: n.length === 0, children: n.length && /* @__PURE__ */ a.jsxs("ul", { children: [
4731
- g.map((C) => typeof C == "string" || !C.name ? null : /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
4733
+ _.map((C) => typeof C == "string" || !C.name ? null : /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
4732
4734
  gt,
4733
4735
  {
4734
4736
  href: C.id ? `/profiles/${C.id}` : void 0,
@@ -4746,8 +4748,8 @@ const Bt = () => {
4746
4748
  }, Sn = (e) => {
4747
4749
  const t = {};
4748
4750
  return Object.keys(e).forEach((n) => n.includes("Id") ? t[n] = e[n] : t[`${n}Slug`] = e[n]), t;
4749
- }, vt = (e, t) => e && !t;
4750
- const xe = "discussion_", $s = 280, kt = ({
4751
+ }, xt = (e, t) => e && !t;
4752
+ const ve = "discussion_", $s = 280, kt = ({
4751
4753
  element: e = "div",
4752
4754
  content: t,
4753
4755
  userHasPermissions: n = !0,
@@ -4773,15 +4775,15 @@ const xe = "discussion_", $s = 280, kt = ({
4773
4775
  },
4774
4776
  links: p = {},
4775
4777
  className: h,
4776
- gtmContext: _ = "DiscussionAnswer",
4778
+ gtmContext: g = "DiscussionAnswer",
4777
4779
  children: y,
4778
4780
  isTruncated: k = !1
4779
4781
  }) => {
4780
- const x = P(), g = ge(ke), b = ge(xt), [j, C] = R({
4782
+ const v = P(), _ = ge(ke), b = ge(vt), [j, C] = R({
4781
4783
  body: t && t.body || "",
4782
4784
  isEditing: !1,
4783
4785
  didEdit: t && t.isEdited || !1
4784
- }), [S, Y] = R(!1), [F, $] = R("");
4786
+ }), [S, I] = R(!1), [F, M] = R("");
4785
4787
  if (G(() => {
4786
4788
  C({
4787
4789
  ...j,
@@ -4790,38 +4792,38 @@ const xe = "discussion_", $s = 280, kt = ({
4790
4792
  });
4791
4793
  }, [t.isEdited]), r || !t || t.type === "answer" && (!t.slugs || !t.slugs.question))
4792
4794
  return /* @__PURE__ */ a.jsx(_e, { className: "discussion-card discussion-post" });
4793
- const { author: M, canLike: E, createdAt: I, id: Z, likes: q = 0, userLiked: z, comments: Q = 0 } = t, H = k ? Ne(j.body, $s) : j.body, te = g && g.id && typeof M != "string" && M.id && M.id === g.id || !1, re = typeof E == "boolean" ? E : n ? !te : !1, J = async (W) => {
4794
- W || (W = ""), $("");
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
4797
  try {
4796
- if (!er(W, j.body)) {
4797
- const ue = t.type === "question" ? { title: W } : { body: W };
4798
+ if (!er(Z, j.body)) {
4799
+ const ue = t.type === "question" ? { title: Z } : { body: Z };
4798
4800
  await m(Sn(t.slugs), ue);
4799
4801
  }
4800
- C({ body: W, isEditing: !1, didEdit: !0 });
4802
+ C({ body: Z, isEditing: !1, didEdit: !0 });
4801
4803
  } catch {
4802
- $(`${xe}form_error`);
4804
+ M(`${ve}form_error`);
4803
4805
  }
4804
- }, ie = () => {
4806
+ }, ne = () => {
4805
4807
  b && b.updateConversation && b.updateConversation({ showThread: !0, showForm: !0 }), setTimeout(() => {
4806
4808
  var me, pe, Ee;
4807
- const ue = `reply-form-${(t.type === "answer" ? t.slug : ((me = t.slugs) == null ? void 0 : me.reply) || ((pe = t.slugs) == null ? void 0 : pe.answer) || ((Ee = t.slugs) == null ? void 0 : Ee.question) || "").toLowerCase().slice(-15)}`, K = document.getElementById(ue), se = document.getElementById(`${ue}-input`);
4808
- se && se.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), ie = document.getElementById(`${ue}-input`);
4810
+ ie && ie.focus(), K && K.scrollIntoView({ behavior: "smooth" });
4809
4811
  }, 0);
4810
- }, de = () => {
4811
- Y(!1);
4812
+ }, oe = () => {
4813
+ I(!1);
4812
4814
  try {
4813
4815
  c(Sn(t.slugs));
4814
4816
  } catch {
4815
- $("delete-error");
4817
+ M("delete-error");
4816
4818
  }
4817
- }, ce = [
4819
+ }, le = [
4818
4820
  {
4819
- text: x.formatMessage({ id: `${xe}moreMenu_report` }),
4821
+ text: v.formatMessage({ id: `${ve}moreMenu_report` }),
4820
4822
  href: `mailto:community@apolitical.co?subject=${encodeURI(
4821
- x.formatMessage({ id: `${xe}report_subject` })
4823
+ v.formatMessage({ id: `${ve}report_subject` })
4822
4824
  )}&body=${encodeURI(
4823
- x.formatMessage(
4824
- { id: `${xe}report_body` },
4825
+ v.formatMessage(
4826
+ { id: `${ve}report_body` },
4825
4827
  {
4826
4828
  contentType: t.type || "",
4827
4829
  contentSlug: t.slug || "",
@@ -4832,23 +4834,23 @@ const xe = "discussion_", $s = 280, kt = ({
4832
4834
  icon: "flag"
4833
4835
  }
4834
4836
  ];
4835
- return n && te && ce.push(
4837
+ return n && ee && le.push(
4836
4838
  {
4837
- text: x.formatMessage({ id: `${xe}moreMenu_edit` }),
4839
+ text: v.formatMessage({ id: `${ve}moreMenu_edit` }),
4838
4840
  onClick: () => C({ ...j, isEditing: !0 }),
4839
4841
  icon: "pencil-paper",
4840
4842
  className: "gtm-trackable",
4841
- "data-gtm-event-context": _,
4843
+ "data-gtm-event-context": g,
4842
4844
  "data-gtm-event-type": `edit-${t.type}-click`
4843
4845
  },
4844
4846
  {
4845
- text: x.formatMessage({ id: `${xe}moreMenu_delete` }),
4846
- onClick: (W) => {
4847
- W.preventDefault(), W.stopPropagation(), Y(!0);
4847
+ text: v.formatMessage({ id: `${ve}moreMenu_delete` }),
4848
+ onClick: (Z) => {
4849
+ Z.preventDefault(), Z.stopPropagation(), I(!0);
4848
4850
  },
4849
4851
  icon: "trash",
4850
4852
  className: "gtm-trackable",
4851
- "data-gtm-event-context": _,
4853
+ "data-gtm-event-context": g,
4852
4854
  "data-gtm-event-type": `delete-${t.type}-click`,
4853
4855
  ..._s(`delete-${t.slug}-modal`, S)
4854
4856
  }
@@ -4859,22 +4861,22 @@ const xe = "discussion_", $s = 280, kt = ({
4859
4861
  /* @__PURE__ */ a.jsxs(
4860
4862
  "div",
4861
4863
  {
4862
- id: Z || t.slug,
4864
+ id: H || t.slug,
4863
4865
  className: w("discussion-card", t.type, {
4864
4866
  editing: j.isEditing,
4865
4867
  "has-link": p.post && !j.isEditing
4866
4868
  }),
4867
- onClick: (W) => {
4868
- !p.post || j.isEditing || (W.preventDefault(), W.stopPropagation(), window.location.href = p.post);
4869
+ onClick: (Z) => {
4870
+ !p.post || j.isEditing || (Z.preventDefault(), Z.stopPropagation(), window.location.href = p.post);
4869
4871
  },
4870
4872
  children: [
4871
4873
  !j.isEditing && /* @__PURE__ */ a.jsx(
4872
4874
  Xt,
4873
4875
  {
4874
- member: M,
4875
- additionalContent: { createdAt: I, didEdit: j.didEdit },
4876
- className: typeof M != "string" && M.id === s ? "highlighted" : "",
4877
- gtmContext: _,
4876
+ member: T,
4877
+ additionalContent: { createdAt: O, didEdit: j.didEdit },
4878
+ className: typeof T != "string" && T.id === s ? "highlighted" : "",
4879
+ gtmContext: g,
4878
4880
  gtmType: "profile-click"
4879
4881
  }
4880
4882
  ),
@@ -4890,10 +4892,10 @@ const xe = "discussion_", $s = 280, kt = ({
4890
4892
  },
4891
4893
  maxLength: t.type === "question" ? 250 : 5e4,
4892
4894
  forceShow: {
4893
- error: F !== "" && F !== "delete-error" ? x.formatMessage(
4895
+ error: F !== "" && F !== "delete-error" ? v.formatMessage(
4894
4896
  { id: F },
4895
4897
  {
4896
- action: x.formatMessage({
4898
+ action: v.formatMessage({
4897
4899
  id: `discussion_action_${t.type}`
4898
4900
  })
4899
4901
  }
@@ -4901,21 +4903,21 @@ const xe = "discussion_", $s = 280, kt = ({
4901
4903
  },
4902
4904
  functions: {
4903
4905
  create: o,
4904
- handleSaveEdit: J,
4906
+ handleSaveEdit: se,
4905
4907
  handleCancel: () => {
4906
- $(""), C({ ...j, isEditing: !1 });
4908
+ M(""), C({ ...j, isEditing: !1 });
4907
4909
  }
4908
4910
  },
4909
- gtmContext: `${_}Form`
4911
+ gtmContext: `${g}Form`
4910
4912
  }
4911
4913
  ) : p.post ? /* @__PURE__ */ a.jsx(
4912
4914
  "a",
4913
4915
  {
4914
4916
  href: p.post,
4915
4917
  className: "gtm-trackable",
4916
- "data-gtm-event-context": _,
4918
+ "data-gtm-event-context": g,
4917
4919
  "data-gtm-event-type": "title-click",
4918
- children: /* @__PURE__ */ a.jsx(jn, { options: { overrides: { a: Zr } }, children: H })
4920
+ children: /* @__PURE__ */ a.jsx(jn, { options: { overrides: { a: Zr } }, children: V })
4919
4921
  }
4920
4922
  ) : /* @__PURE__ */ a.jsx(
4921
4923
  jn,
@@ -4926,7 +4928,7 @@ const xe = "discussion_", $s = 280, kt = ({
4926
4928
  forceInline: t.type === "question",
4927
4929
  forceBlock: t.type !== "question"
4928
4930
  },
4929
- children: H
4931
+ children: V
4930
4932
  }
4931
4933
  ),
4932
4934
  !j.isEditing && /* @__PURE__ */ a.jsxs(
@@ -4939,9 +4941,9 @@ const xe = "discussion_", $s = 280, kt = ({
4939
4941
  Ts,
4940
4942
  {
4941
4943
  element: "li",
4942
- likes: q,
4944
+ likes: U,
4943
4945
  isShort: !1,
4944
- userLiked: z,
4946
+ userLiked: W,
4945
4947
  content: { type: t.type, slugs: t.slugs },
4946
4948
  canLike: re,
4947
4949
  peopleWhoLiked: t.peopleWhoLiked,
@@ -4955,12 +4957,12 @@ const xe = "discussion_", $s = 280, kt = ({
4955
4957
  "li",
4956
4958
  {
4957
4959
  className: "action-button",
4958
- onClick: (W) => {
4959
- W.preventDefault(), W.stopPropagation(), p.comments && (window.location.href = p.comments), typeof d == "function" && d();
4960
+ onClick: (Z) => {
4961
+ Z.preventDefault(), Z.stopPropagation(), p.comments && (window.location.href = p.comments), typeof d == "function" && d();
4960
4962
  },
4961
4963
  children: [
4962
4964
  /* @__PURE__ */ a.jsx(
4963
- B,
4965
+ q,
4964
4966
  {
4965
4967
  variant: "tertiary",
4966
4968
  size: "medium",
@@ -4969,29 +4971,29 @@ const xe = "discussion_", $s = 280, kt = ({
4969
4971
  href: p.comments ? p.comments : !1,
4970
4972
  onClick: p.comments || typeof d != "function" ? !1 : d,
4971
4973
  className: "gtm-trackable",
4972
- "data-gtm-event-context": _,
4974
+ "data-gtm-event-context": g,
4973
4975
  "data-gtm-event-type": `answer-${t.type}-click`,
4974
- screenreaderText: x.formatMessage(
4975
- { id: `${xe}comments_screenReader` },
4976
+ screenreaderText: v.formatMessage(
4977
+ { id: `${ve}comments_screenReader` },
4976
4978
  { count: Q }
4977
4979
  )
4978
4980
  }
4979
4981
  ),
4980
- /* @__PURE__ */ a.jsx("span", { children: x.formatMessage(
4981
- { id: `${xe}comments` },
4982
+ /* @__PURE__ */ a.jsx("span", { children: v.formatMessage(
4983
+ { id: `${ve}comments` },
4982
4984
  { count: Q }
4983
4985
  ) })
4984
4986
  ]
4985
4987
  }
4986
4988
  ),
4987
4989
  (t.type === "answer" || t.type === "reply") && /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
4988
- B,
4990
+ q,
4989
4991
  {
4990
4992
  variant: "tertiary",
4991
4993
  size: "medium",
4992
4994
  styling: { muted: !0 },
4993
- onClick: ie,
4994
- children: x.formatMessage({ id: `${xe}reply` })
4995
+ onClick: ne,
4996
+ children: v.formatMessage({ id: `${ve}reply` })
4995
4997
  }
4996
4998
  ) }),
4997
4999
  /* @__PURE__ */ a.jsx(
@@ -4999,7 +5001,7 @@ const xe = "discussion_", $s = 280, kt = ({
4999
5001
  {
5000
5002
  element: "li",
5001
5003
  id: `more-${t.slug}`,
5002
- options: ce
5004
+ options: le
5003
5005
  }
5004
5006
  )
5005
5007
  ]
@@ -5015,32 +5017,32 @@ const xe = "discussion_", $s = 280, kt = ({
5015
5017
  id: `delete-${t.slug}-modal`,
5016
5018
  isOpen: S,
5017
5019
  functions: { onOpen: () => {
5018
- }, onClose: () => Y(!1) },
5020
+ }, onClose: () => I(!1) },
5019
5021
  forceShow: {
5020
- error: F === "delete-error" ? x.formatMessage(
5022
+ error: F === "delete-error" ? v.formatMessage(
5021
5023
  { id: "discussion_delete_error" },
5022
5024
  {
5023
- action: x.formatMessage({
5025
+ action: v.formatMessage({
5024
5026
  id: `discussion_action_${t.type}`
5025
5027
  })
5026
5028
  }
5027
5029
  ) : !1
5028
5030
  },
5029
- title: x.formatMessage(
5031
+ title: v.formatMessage(
5030
5032
  { id: "discussion_delete_title" },
5031
- { action: x.formatMessage({ id: `discussion_action_${t.type}` }) }
5033
+ { action: v.formatMessage({ id: `discussion_action_${t.type}` }) }
5032
5034
  ),
5033
5035
  buttons: [
5034
5036
  {
5035
5037
  variant: "secondary",
5036
- onClick: () => Y(!1),
5037
- children: x.formatMessage({ id: "discussion_delete_cancel" })
5038
+ onClick: () => I(!1),
5039
+ children: v.formatMessage({ id: "discussion_delete_cancel" })
5038
5040
  },
5039
5041
  {
5040
5042
  variant: "primary",
5041
5043
  className: "destructive",
5042
- onClick: de,
5043
- children: x.formatMessage({ id: "discussion_delete_delete" })
5044
+ onClick: oe,
5045
+ children: v.formatMessage({ id: "discussion_delete_delete" })
5044
5046
  }
5045
5047
  ],
5046
5048
  gtmContext: `${t.type.charAt(0).toUpperCase()}${t.type.slice(1)}:${t.slug}`,
@@ -5049,8 +5051,8 @@ const xe = "discussion_", $s = 280, kt = ({
5049
5051
  {
5050
5052
  id: "discussion_delete_text",
5051
5053
  values: {
5052
- p: (W) => /* @__PURE__ */ a.jsx("p", { children: W }),
5053
- action: x.formatMessage({
5054
+ p: (Z) => /* @__PURE__ */ a.jsx("p", { children: Z }),
5055
+ action: v.formatMessage({
5054
5056
  id: `discussion_action_${t.type}`
5055
5057
  })
5056
5058
  }
@@ -5069,7 +5071,7 @@ const qt = "discussion_responses_", Yi = ({ type: e = "answer", responses: t = 0
5069
5071
  ] });
5070
5072
  };
5071
5073
  const Es = ({ count: e = "", showRepliesButton: t = !0, children: n }) => {
5072
- const r = P(), s = ne(null), i = ge(xt), [o, c] = R(
5074
+ const r = P(), s = te(null), i = ge(vt), [o, c] = R(
5073
5075
  "closed"
5074
5076
  /* Closed */
5075
5077
  );
@@ -5105,7 +5107,7 @@ const Es = ({ count: e = "", showRepliesButton: t = !0, children: n }) => {
5105
5107
  });
5106
5108
  return /* @__PURE__ */ a.jsxs("div", { className: "thread-wrapper", children: [
5107
5109
  t && /* @__PURE__ */ a.jsx(
5108
- B,
5110
+ q,
5109
5111
  {
5110
5112
  variant: "secondary",
5111
5113
  size: "small",
@@ -5436,7 +5438,7 @@ function Os({
5436
5438
  }) {
5437
5439
  const { mutate: r } = fe({
5438
5440
  mutationFn: e,
5439
- onMutate: ({ activityId: s, body: i }) => t((o) => {
5441
+ onMutate: ({ activityId: s, content: i }) => t((o) => {
5440
5442
  const c = ut(s, o);
5441
5443
  return c && (c.content = i), o;
5442
5444
  }),
@@ -5462,18 +5464,18 @@ function Bs({
5462
5464
  },
5463
5465
  user: m,
5464
5466
  ...l
5465
- }, d = Is({ ...f, mutationFn: e }), p = Os({ ...f, mutationFn: t }), h = Zs({ ...f, mutationFn: n }), _ = Hs({ ...f, mutationFn: s }), y = Us({ ...f, mutationFn: i }), { activities: k, ...x } = 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 }), y = Us({ ...f, mutationFn: i }), { activities: k, ...v } = qs({ queryKey: o, queryFn: r });
5466
5468
  return {
5467
5469
  activities: k,
5468
5470
  mutations: {
5469
5471
  create: d,
5470
5472
  edit: p,
5471
- remove: _,
5473
+ remove: g,
5472
5474
  like: h,
5473
5475
  unlike: y
5474
5476
  },
5475
5477
  user: m,
5476
- ...x
5478
+ ...v
5477
5479
  };
5478
5480
  }
5479
5481
  function Zs({
@@ -5587,7 +5589,11 @@ const Gi = ({
5587
5589
  basePath: e,
5588
5590
  parentId: t,
5589
5591
  isMember: n,
5590
- functions: { join: r, leave: s, ...i }
5592
+ functions: {
5593
+ activities: r,
5594
+ join: s,
5595
+ leave: i
5596
+ }
5591
5597
  }) => {
5592
5598
  const o = P(), {
5593
5599
  activities: c,
@@ -5598,14 +5604,14 @@ const Gi = ({
5598
5604
  mutations: {
5599
5605
  create: p,
5600
5606
  edit: h,
5601
- remove: _,
5607
+ remove: g,
5602
5608
  like: y,
5603
5609
  unlike: k
5604
5610
  },
5605
- user: x
5611
+ user: v
5606
5612
  } = Bs({
5607
5613
  queryKey: [e, t, "activities"],
5608
- queryFns: i
5614
+ queryFns: r
5609
5615
  });
5610
5616
  return m ? /* @__PURE__ */ a.jsx(bt, { variant: "error", text: m.message }) : /* @__PURE__ */ a.jsxs("section", { children: [
5611
5617
  /* @__PURE__ */ a.jsx(
@@ -5616,64 +5622,63 @@ const Gi = ({
5616
5622
  membershipRequiredToPost: {
5617
5623
  isMember: n,
5618
5624
  required: !0,
5619
- join: r,
5620
- leave: s,
5625
+ join: s,
5626
+ leave: i,
5621
5627
  notMemberStateText: o.formatMessage({ id: "community_joinToPost" })
5622
5628
  }
5623
5629
  }
5624
5630
  ),
5625
- c == null ? void 0 : c.map((g) => {
5626
- var E, I, Z, q, z, Q, H, te, re;
5627
- const { own_reactions: b, latest_reactions: j } = g, C = (((E = j == null ? void 0 : j.like) == null ? void 0 : E.length) || 0) > 0, S = (((I = b == null ? void 0 : b.like) == null ? void 0 : I.length) || 0) > 0, Y = S ? b == null ? void 0 : b.like[0].id : null, F = C ? (Z = j == null ? void 0 : j.like) == null ? void 0 : Z.map((J) => {
5628
- var ie, de, ce;
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 } = _, C = (((O = j == null ? void 0 : j.like) == null ? void 0 : O.length) || 0) > 0, S = (((H = b == null ? void 0 : b.like) == null ? void 0 : H.length) || 0) > 0, I = _ == null ? void 0 : _.id, F = S ? b == null ? void 0 : b.like[0].id : null, M = C ? (U = j == null ? void 0 : j.like) == null ? void 0 : U.map((ne) => {
5634
+ var oe, le, Z;
5629
5635
  return {
5630
- id: (ie = J == null ? void 0 : J.user) == null ? void 0 : ie.id,
5631
- name: (ce = (de = J == null ? void 0 : J.user) == null ? void 0 : de.data) == null ? void 0 : ce.name
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
5632
5638
  };
5633
- }) : !1, $ = g == null ? void 0 : g.actor, M = ($ == null ? void 0 : $.id) === (x == null ? void 0 : x.id);
5639
+ }) : !1, T = _ == null ? void 0 : _.actor, E = (T == null ? void 0 : T.id) === (v == null ? void 0 : v.id);
5634
5640
  return /* @__PURE__ */ a.jsxs(qe, { children: [
5635
5641
  /* @__PURE__ */ a.jsx(
5636
5642
  kt,
5637
5643
  {
5638
5644
  content: {
5639
5645
  type: "post",
5640
- body: g == null ? void 0 : g.content,
5641
- canLike: vt(n, M),
5642
- createdAt: (g == null ? void 0 : g.time) || "",
5646
+ body: _ == null ? void 0 : _.content,
5647
+ canLike: xt(n, E),
5648
+ createdAt: (_ == null ? void 0 : _.time) || "",
5643
5649
  slugs: {
5644
5650
  question: `${e}/${t}`,
5645
- answer: g == null ? void 0 : g.id
5651
+ answer: I
5646
5652
  },
5647
- slug: g == null ? void 0 : g.id,
5653
+ slug: I,
5648
5654
  author: {
5649
- id: $ == null ? void 0 : $.id,
5650
- name: (q = $ == null ? void 0 : $.data) == null ? void 0 : q.name,
5651
- organization: (z = $ == null ? void 0 : $.data) == null ? void 0 : z.organization,
5652
- jobTitle: (Q = $ == null ? void 0 : $.data) == null ? void 0 : Q.jobTitle,
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,
5653
5659
  image: {
5654
- thumbnail: ((H = $ == null ? void 0 : $.data) == null ? void 0 : H.thumbnail) || void 0
5660
+ thumbnail: ((ee = T == null ? void 0 : T.data) == null ? void 0 : ee.thumbnail) || void 0
5655
5661
  }
5656
5662
  },
5657
5663
  userLiked: S,
5658
- likes: ((te = g == null ? void 0 : g.reaction_counts) == null ? void 0 : te.like) || 0,
5659
- comments: ((re = g == null ? void 0 : g.reaction_counts) == null ? void 0 : re.reply) || 0,
5660
- peopleWhoLiked: F
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,
5666
+ peopleWhoLiked: M
5661
5667
  },
5662
5668
  links: {
5663
- post: `${e}/${t}/${g == null ? void 0 : g.id}`,
5664
- comments: `${e}/${t}/${g == null ? void 0 : g.id}`
5669
+ post: `${e}/${t}/${I}`,
5670
+ comments: `${e}/${t}/${I}`
5665
5671
  },
5666
5672
  functions: {
5667
5673
  content: {
5668
5674
  createContent: () => null,
5675
+ deleteContent: () => g({ activityId: I }),
5669
5676
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
5670
- deleteContent: () => _({ activityId: g == null ? void 0 : g.id }),
5671
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
5672
- updateContent: (J, ie) => h({ activityId: g == null ? void 0 : g.id, ...ie })
5677
+ updateContent: (ne, { body: oe }) => h({ activityId: I, content: oe })
5673
5678
  },
5674
5679
  likes: {
5675
- createLike: () => y({ activityId: g == null ? void 0 : g.id }),
5676
- deleteLike: () => k({ activityId: g == null ? void 0 : g.id, reactionId: Y })
5680
+ createLike: () => y({ activityId: I }),
5681
+ deleteLike: () => k({ activityId: I, reactionId: F })
5677
5682
  },
5678
5683
  comments: {
5679
5684
  openComments: () => null
@@ -5683,7 +5688,7 @@ const Gi = ({
5683
5688
  }
5684
5689
  ),
5685
5690
  /* @__PURE__ */ a.jsx(Te, {})
5686
- ] }, g == null ? void 0 : g.id);
5691
+ ] }, I);
5687
5692
  }),
5688
5693
  !d && /* @__PURE__ */ a.jsx(
5689
5694
  yt,
@@ -6306,18 +6311,18 @@ function ha({
6306
6311
  },
6307
6312
  user: m,
6308
6313
  ...l
6309
- }, d = Vs({ ...f, mutationFn: e }), p = Ys({ ...f, mutationFn: t }), h = Gs({ ...f, mutationFn: n }), _ = Qs({ ...f, mutationFn: s }), y = Js({ ...f, mutationFn: i }), { replies: k, ...x } = Ks({ queryKey: o, queryFn: r });
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 });
6310
6315
  return {
6311
6316
  replies: k,
6312
6317
  mutations: {
6313
6318
  create: d,
6314
6319
  edit: p,
6315
- remove: _,
6320
+ remove: g,
6316
6321
  like: h,
6317
6322
  unlike: y
6318
6323
  },
6319
6324
  user: m,
6320
- ...x
6325
+ ...v
6321
6326
  };
6322
6327
  }
6323
6328
  function Gs({
@@ -6455,11 +6460,11 @@ const ri = ({
6455
6460
  mutations: {
6456
6461
  create: p,
6457
6462
  edit: h,
6458
- like: _,
6463
+ like: g,
6459
6464
  remove: y,
6460
6465
  unlike: k
6461
6466
  },
6462
- user: x
6467
+ user: v
6463
6468
  } = ha({
6464
6469
  queryKey: [e, t, n, r, "replies"],
6465
6470
  queryFns: {
@@ -6467,7 +6472,7 @@ const ri = ({
6467
6472
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6468
6473
  list: (b) => i.list({ ...b, reactionId: r })
6469
6474
  }
6470
- }), g = ge(xt);
6475
+ }), _ = ge(vt);
6471
6476
  return /* @__PURE__ */ a.jsx(
6472
6477
  Es,
6473
6478
  {
@@ -6475,21 +6480,21 @@ const ri = ({
6475
6480
  showRepliesButton: !1,
6476
6481
  children: /* @__PURE__ */ a.jsxs("section", { children: [
6477
6482
  c == null ? void 0 : c.map((b) => {
6478
- var z, Q, H, te, re, J, ie, de, ce, W, ue;
6479
- const { own_children: j, latest_children: C } = b, S = b == null ? void 0 : b.id, Y = (((z = C == null ? void 0 : C.like) == null ? void 0 : z.length) || 0) > 0, F = (((Q = j == null ? void 0 : j.like) == null ? void 0 : Q.length) || 0) > 0, $ = F ? j == null ? void 0 : j.like[0].id : null, M = Y ? (H = C == null ? void 0 : C.like) == null ? void 0 : H.map((K) => {
6480
- var se, me, pe;
6483
+ var W, Q, V, ee, re, se, ne, oe, le, Z, ue;
6484
+ const { own_children: j, latest_children: C } = b, S = b == null ? void 0 : b.id, I = (((W = C == null ? void 0 : C.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 = C == null ? void 0 : C.like) == null ? void 0 : V.map((K) => {
6485
+ var ie, me, pe;
6481
6486
  return {
6482
- id: (se = K == null ? void 0 : K.user) == null ? void 0 : se.id,
6487
+ id: (ie = K == null ? void 0 : K.user) == null ? void 0 : ie.id,
6483
6488
  name: (pe = (me = K == null ? void 0 : K.user) == null ? void 0 : me.data) == null ? void 0 : pe.name
6484
6489
  };
6485
- }) : !1, E = b == null ? void 0 : b.user, I = (E == null ? void 0 : E.id) === (x == null ? void 0 : x.id), Z = vt(s, I), q = typeof b.data.content == "string" ? (te = b == null ? void 0 : b.data) == null ? void 0 : te.content : ((J = (re = b == null ? void 0 : b.data) == null ? void 0 : re.content) == null ? void 0 : J.text) || "";
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) || "";
6486
6491
  return /* @__PURE__ */ a.jsx(
6487
6492
  kt,
6488
6493
  {
6489
6494
  content: {
6490
6495
  type: "reply",
6491
- body: q,
6492
- canLike: Z,
6496
+ body: U,
6497
+ canLike: H,
6493
6498
  createdAt: b == null ? void 0 : b.created_at,
6494
6499
  slugs: {
6495
6500
  question: `${e}/${t}`,
@@ -6501,27 +6506,27 @@ const ri = ({
6501
6506
  slug: "",
6502
6507
  author: {
6503
6508
  id: E == null ? void 0 : E.id,
6504
- name: (ie = E.data) == null ? void 0 : ie.name,
6505
- organization: (de = E.data) == null ? void 0 : de.organization,
6506
- jobTitle: (ce = E.data) == null ? void 0 : ce.jobTitle,
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,
6507
6512
  image: {
6508
- thumbnail: ((W = E.data) == null ? void 0 : W.thumbnail) || void 0
6513
+ thumbnail: ((Z = E.data) == null ? void 0 : Z.thumbnail) || void 0
6509
6514
  }
6510
6515
  },
6511
6516
  userLiked: F,
6512
6517
  likes: ((ue = b == null ? void 0 : b.children_counts) == null ? void 0 : ue.like) || 0,
6513
- peopleWhoLiked: M
6518
+ peopleWhoLiked: T
6514
6519
  },
6515
6520
  functions: {
6516
6521
  content: {
6517
6522
  createContent: () => null,
6518
6523
  deleteContent: () => y({ replyId: S }),
6519
6524
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6520
- updateContent: (K, { body: se }) => h({ replyId: S, content: se })
6525
+ updateContent: (K, { body: ie }) => h({ replyId: S, content: ie })
6521
6526
  },
6522
6527
  likes: {
6523
- createLike: () => _({ replyId: S }),
6524
- deleteLike: () => k({ replyId: S, reactionId: $ })
6528
+ createLike: () => g({ replyId: S }),
6529
+ deleteLike: () => k({ replyId: S, reactionId: M })
6525
6530
  },
6526
6531
  comments: {}
6527
6532
  }
@@ -6542,7 +6547,7 @@ const ri = ({
6542
6547
  }
6543
6548
  }
6544
6549
  ),
6545
- g.showForm && /* @__PURE__ */ a.jsx(
6550
+ _.showForm && /* @__PURE__ */ a.jsx(
6546
6551
  en,
6547
6552
  {
6548
6553
  content: {
@@ -6581,12 +6586,12 @@ const ri = ({
6581
6586
  isLoading: p,
6582
6587
  mutations: {
6583
6588
  create: h,
6584
- edit: _,
6589
+ edit: g,
6585
6590
  like: y,
6586
6591
  remove: k,
6587
- unlike: x
6592
+ unlike: v
6588
6593
  },
6589
- user: g
6594
+ user: _
6590
6595
  } = ha({
6591
6596
  queryKey: [e, t, n, "replies"],
6592
6597
  queryFns: s
@@ -6613,21 +6618,21 @@ const ri = ({
6613
6618
  }
6614
6619
  ),
6615
6620
  m == null ? void 0 : m.map((b) => {
6616
- var z, Q, H, te, re, J, ie, de, ce, W, ue;
6617
- const { own_children: j, latest_children: C } = b, S = b == null ? void 0 : b.id, Y = (((z = C == null ? void 0 : C.like) == null ? void 0 : z.length) || 0) > 0, F = (((Q = j == null ? void 0 : j.like) == null ? void 0 : Q.length) || 0) > 0, $ = F ? j == null ? void 0 : j.like[0].id : null, M = Y ? (H = C == null ? void 0 : C.like) == null ? void 0 : H.map((K) => {
6618
- var se, me, pe;
6621
+ var W, Q, V, ee, re, se, ne, oe, le, Z, ue;
6622
+ const { own_children: j, latest_children: C } = b, S = b == null ? void 0 : b.id, I = (((W = C == null ? void 0 : C.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 = C == null ? void 0 : C.like) == null ? void 0 : V.map((K) => {
6623
+ var ie, me, pe;
6619
6624
  return {
6620
- id: (se = K == null ? void 0 : K.user) == null ? void 0 : se.id,
6625
+ id: (ie = K == null ? void 0 : K.user) == null ? void 0 : ie.id,
6621
6626
  name: (pe = (me = K == null ? void 0 : K.user) == null ? void 0 : me.data) == null ? void 0 : pe.name
6622
6627
  };
6623
- }) : !1, E = b == null ? void 0 : b.user, I = (E == null ? void 0 : E.id) === (g == null ? void 0 : g.id), Z = vt(r, I), q = typeof b.data.content == "string" ? (te = b == null ? void 0 : b.data) == null ? void 0 : te.content : ((J = (re = b == null ? void 0 : b.data) == null ? void 0 : re.content) == null ? void 0 : J.text) || "";
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) || "";
6624
6629
  return /* @__PURE__ */ a.jsx(ks, { children: /* @__PURE__ */ a.jsx(
6625
6630
  kt,
6626
6631
  {
6627
6632
  content: {
6628
6633
  type: "reply",
6629
- body: q,
6630
- canLike: Z,
6634
+ body: U,
6635
+ canLike: H,
6631
6636
  createdAt: b == null ? void 0 : b.created_at,
6632
6637
  slugs: {
6633
6638
  question: `${e}/${t}`,
@@ -6637,27 +6642,27 @@ const ri = ({
6637
6642
  slug: S,
6638
6643
  author: {
6639
6644
  id: E == null ? void 0 : E.id,
6640
- name: (ie = E.data) == null ? void 0 : ie.name,
6641
- organization: (de = E.data) == null ? void 0 : de.organization,
6642
- jobTitle: (ce = E.data) == null ? void 0 : ce.jobTitle,
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,
6643
6648
  image: {
6644
- thumbnail: ((W = E.data) == null ? void 0 : W.thumbnail) || void 0
6649
+ thumbnail: ((Z = E.data) == null ? void 0 : Z.thumbnail) || void 0
6645
6650
  }
6646
6651
  },
6647
6652
  userLiked: F,
6648
6653
  likes: ((ue = b == null ? void 0 : b.children_counts) == null ? void 0 : ue.like) || 0,
6649
- peopleWhoLiked: M
6654
+ peopleWhoLiked: T
6650
6655
  },
6651
6656
  functions: {
6652
6657
  content: {
6653
6658
  createContent: () => null,
6654
6659
  deleteContent: () => k({ replyId: S }),
6655
6660
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6656
- updateContent: (K, { body: se }) => _({ replyId: S, content: se })
6661
+ updateContent: (K, { body: ie }) => g({ replyId: S, content: ie })
6657
6662
  },
6658
6663
  likes: {
6659
6664
  createLike: () => y({ replyId: S }),
6660
- deleteLike: () => x({ replyId: S, reactionId: $ })
6665
+ deleteLike: () => v({ replyId: S, reactionId: M })
6661
6666
  },
6662
6667
  comments: {}
6663
6668
  },
@@ -6698,7 +6703,7 @@ function ii({
6698
6703
  }) {
6699
6704
  const { mutate: r } = fe({
6700
6705
  mutationFn: e,
6701
- onMutate: ({ body: s }) => t((i) => (i && (i.content = s), i)),
6706
+ onMutate: ({ content: s }) => t((i) => (i && (i.content = s), i)),
6702
6707
  onError: n
6703
6708
  });
6704
6709
  return r;
@@ -6797,13 +6802,13 @@ const Qi = ({
6797
6802
  leave: m
6798
6803
  }
6799
6804
  }) => {
6800
- var F, $, M, E, I, Z, q, z, Q;
6805
+ var F, M, T, E, O, H, U, W, Q;
6801
6806
  const l = P(), f = ge(ke), {
6802
6807
  activity: d,
6803
6808
  error: p,
6804
6809
  isLoading: h,
6805
6810
  mutations: {
6806
- edit: _,
6811
+ edit: g,
6807
6812
  like: y,
6808
6813
  unlike: k
6809
6814
  }
@@ -6821,14 +6826,13 @@ const Qi = ({
6821
6826
  text: l.formatMessage({ id: "activitySection_notFoundError" })
6822
6827
  }
6823
6828
  );
6824
- console.log(d);
6825
- const { own_reactions: x, latest_reactions: g } = d, b = (((F = g == null ? void 0 : g.like) == null ? void 0 : F.length) || 0) > 0, j = ((($ = x == null ? void 0 : x.like) == null ? void 0 : $.length) || 0) > 0, C = b ? (M = g == null ? void 0 : g.like) == null ? void 0 : M.map((H) => {
6826
- var te, re, J;
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, C = b ? (T = _ == null ? void 0 : _.like) == null ? void 0 : T.map((V) => {
6830
+ var ee, re, se;
6827
6831
  return {
6828
- id: (te = H == null ? void 0 : H.user) == null ? void 0 : te.id,
6829
- name: (J = (re = H == null ? void 0 : H.user) == null ? void 0 : re.data) == null ? void 0 : J.name
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
6830
6834
  };
6831
- }) : !1, S = d == null ? void 0 : d.actor, Y = (S == null ? void 0 : S.id) === (f == null ? void 0 : f.id);
6835
+ }) : !1, S = d == null ? void 0 : d.actor, I = (S == null ? void 0 : S.id) === (f == null ? void 0 : f.id);
6832
6836
  return /* @__PURE__ */ a.jsx(
6833
6837
  kt,
6834
6838
  {
@@ -6836,7 +6840,7 @@ const Qi = ({
6836
6840
  content: {
6837
6841
  type: "post",
6838
6842
  body: d == null ? void 0 : d.content,
6839
- canLike: vt(r, Y),
6843
+ canLike: xt(r, I),
6840
6844
  createdAt: (d == null ? void 0 : d.time) || "",
6841
6845
  slugs: {
6842
6846
  question: `${e}/${t}`,
@@ -6846,14 +6850,14 @@ const Qi = ({
6846
6850
  author: {
6847
6851
  id: S.id,
6848
6852
  name: (E = S.data) == null ? void 0 : E.name,
6849
- organization: (I = S.data) == null ? void 0 : I.organization,
6850
- jobTitle: (Z = S.data) == null ? void 0 : Z.jobTitle,
6853
+ organization: (O = S.data) == null ? void 0 : O.organization,
6854
+ jobTitle: (H = S.data) == null ? void 0 : H.jobTitle,
6851
6855
  image: {
6852
- thumbnail: ((q = S.data) == null ? void 0 : q.thumbnail) || void 0
6856
+ thumbnail: ((U = S.data) == null ? void 0 : U.thumbnail) || void 0
6853
6857
  }
6854
6858
  },
6855
6859
  userLiked: j,
6856
- likes: ((z = d == null ? void 0 : d.reaction_counts) == null ? void 0 : z.like) || 0,
6860
+ likes: ((W = d == null ? void 0 : d.reaction_counts) == null ? void 0 : W.like) || 0,
6857
6861
  comments: ((Q = d == null ? void 0 : d.reaction_counts) == null ? void 0 : Q.reply) || 0,
6858
6862
  peopleWhoLiked: C
6859
6863
  },
@@ -6861,10 +6865,10 @@ const Qi = ({
6861
6865
  forceHide: { comments: !0 },
6862
6866
  functions: {
6863
6867
  content: {
6864
- createContent: () => console.log("create"),
6868
+ createContent: () => null,
6865
6869
  deleteContent: s,
6866
6870
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6867
- updateContent: (H, te) => _({ ...H, ...te })
6871
+ updateContent: (V, { body: ee }) => g({ content: ee })
6868
6872
  },
6869
6873
  likes: {
6870
6874
  createLike: () => y({ activityId: n }),
@@ -6962,7 +6966,7 @@ const tt = "notFoundError_", Xi = () => {
6962
6966
  })
6963
6967
  }
6964
6968
  ),
6965
- /* @__PURE__ */ a.jsx(B, { href: "/solution-articles/", children: e.formatMessage({ id: `${tt}cta` }) })
6969
+ /* @__PURE__ */ a.jsx(q, { href: "/solution-articles/", children: e.formatMessage({ id: `${tt}cta` }) })
6966
6970
  ] })
6967
6971
  },
6968
6972
  reportError: () => {
@@ -6982,7 +6986,7 @@ export {
6982
6986
  da as AddPost,
6983
6987
  Ci as BannerSection,
6984
6988
  Di as Breadcrumbs,
6985
- B as Button,
6989
+ q as Button,
6986
6990
  ht as ButtonWrapper,
6987
6991
  Er as CacheProvider,
6988
6992
  ea as Card,
@@ -6992,7 +6996,7 @@ export {
6992
6996
  ds as Columns,
6993
6997
  Ri as CommunityDetails,
6994
6998
  Xn as Contributors,
6995
- xt as ConversationContext,
6999
+ vt as ConversationContext,
6996
7000
  us as CookieBanner,
6997
7001
  ks as DiscussionConversation,
6998
7002
  en as DiscussionForm,