@apolitical/component-library 1.13.0 → 1.13.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.mjs CHANGED
@@ -1,10 +1,10 @@
1
- import N, { memo as Ne, useState as D, useEffect as z, useRef as Z, useMemo as qe, Children as yt, createContext as Mt, useContext as ye, Fragment as Zt, useCallback as Ee, useReducer as rr, Suspense as sr } from "react";
1
+ import A, { memo as Ae, useState as P, useEffect as z, useRef as ee, useMemo as qe, Children as jt, createContext as Nt, useContext as ye, Fragment as Et, useCallback as Ee, useReducer as rr, Suspense as sr } from "react";
2
2
  import or from "lodash.clonedeep";
3
3
  import ar from "lodash.set";
4
- import { useIntl as P, IntlProvider as ir, createIntl as lr, FormattedMessage as we } from "react-intl";
5
- import Ct from "truncate";
6
- import Ke from "markdown-to-jsx";
7
- import { QueryClient as cr, QueryClientProvider as ur, useQueryClient as Nt, useQuery as cn, useMutation as fe } from "@tanstack/react-query";
4
+ import { useIntl as F, IntlProvider as ir, createIntl as lr, FormattedMessage as we } from "react-intl";
5
+ import Ke from "truncate";
6
+ import et from "markdown-to-jsx";
7
+ import { QueryClient as cr, QueryClientProvider as ur, useQueryClient as At, useQuery as cn, useMutation as fe } from "@tanstack/react-query";
8
8
  import { ReactQueryDevtools as dr } from "@tanstack/react-query-devtools";
9
9
  import Ge from "posthog-js";
10
10
  import { useCookies as mr, CookiesProvider as fr } from "react-cookie";
@@ -53,8 +53,8 @@ var dn = { exports: {} };
53
53
  })();
54
54
  })(dn);
55
55
  var vr = dn.exports;
56
- const j = /* @__PURE__ */ xr(vr), br = ({ element: e = "span", showOnFocus: t = !0, children: n, ...s }) => N.createElement(e, { ...s, className: j("hidden", { "show-on-focus": t }), children: n }), ne = Ne(br), wr = ({ element: e = "span", children: t = null, ...n }) => N.createElement(e, { ...n, "aria-hidden": !0 }, t), mn = Ne(wr);
57
- var jt = { exports: {} }, De = {};
56
+ const j = /* @__PURE__ */ xr(vr), br = ({ element: e = "span", showOnFocus: t = !0, children: n, ...s }) => A.createElement(e, { ...s, className: j("hidden", { "show-on-focus": t }), children: n }), re = Ae(br), wr = ({ element: e = "span", children: t = null, ...n }) => A.createElement(e, { ...n, "aria-hidden": !0 }, t), mn = Ae(wr);
57
+ var St = { exports: {} }, Pe = {};
58
58
  /**
59
59
  * @license React
60
60
  * react-jsx-runtime.production.min.js
@@ -67,9 +67,9 @@ var jt = { exports: {} }, De = {};
67
67
  var qt;
68
68
  function kr() {
69
69
  if (qt)
70
- return De;
70
+ return Pe;
71
71
  qt = 1;
72
- var e = N, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
72
+ var e = A, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
73
73
  function d(a, i, c) {
74
74
  var u, f = {}, p = null, h = null;
75
75
  c !== void 0 && (p = "" + c), i.key !== void 0 && (p = "" + i.key), i.ref !== void 0 && (h = i.ref);
@@ -80,9 +80,9 @@ function kr() {
80
80
  f[u] === void 0 && (f[u] = i[u]);
81
81
  return { $$typeof: t, type: a, key: p, ref: h, props: f, _owner: o.current };
82
82
  }
83
- return De.Fragment = n, De.jsx = d, De.jsxs = d, De;
83
+ return Pe.Fragment = n, Pe.jsx = d, Pe.jsxs = d, Pe;
84
84
  }
85
- var Pe = {};
85
+ var Fe = {};
86
86
  /**
87
87
  * @license React
88
88
  * react-jsx-runtime.development.js
@@ -95,54 +95,54 @@ var Pe = {};
95
95
  var Kt;
96
96
  function yr() {
97
97
  return Kt || (Kt = 1, process.env.NODE_ENV !== "production" && function() {
98
- var e = N, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), a = Symbol.for("react.context"), i = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), _ = Symbol.iterator, v = "@@iterator";
98
+ var e = A, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), a = Symbol.for("react.context"), i = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), _ = Symbol.iterator, k = "@@iterator";
99
99
  function g(m) {
100
100
  if (m === null || typeof m != "object")
101
101
  return null;
102
- var b = _ && m[_] || m[v];
103
- return typeof b == "function" ? b : null;
102
+ var x = _ && m[_] || m[k];
103
+ return typeof x == "function" ? x : null;
104
104
  }
105
105
  var E = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
106
- function x(m) {
106
+ function b(m) {
107
107
  {
108
- for (var b = arguments.length, y = new Array(b > 1 ? b - 1 : 0), S = 1; S < b; S++)
109
- y[S - 1] = arguments[S];
110
- $("error", m, y);
108
+ for (var x = arguments.length, y = new Array(x > 1 ? x - 1 : 0), $ = 1; $ < x; $++)
109
+ y[$ - 1] = arguments[$];
110
+ S("error", m, y);
111
111
  }
112
112
  }
113
- function $(m, b, y) {
113
+ function S(m, x, y) {
114
114
  {
115
- var S = E.ReactDebugCurrentFrame, O = S.getStackAddendum();
116
- O !== "" && (b += "%s", y = y.concat([O]));
117
- var H = y.map(function(A) {
118
- return String(A);
115
+ var $ = E.ReactDebugCurrentFrame, O = $.getStackAddendum();
116
+ O !== "" && (x += "%s", y = y.concat([O]));
117
+ var H = y.map(function(D) {
118
+ return String(D);
119
119
  });
120
- H.unshift("Warning: " + b), Function.prototype.apply.call(console[m], console, H);
120
+ H.unshift("Warning: " + x), Function.prototype.apply.call(console[m], console, H);
121
121
  }
122
122
  }
123
- var T = !1, M = !1, Q = !1, V = !1, w = !1, F;
124
- F = Symbol.for("react.module.reference");
123
+ var T = !1, M = !1, Q = !1, V = !1, v = !1, N;
124
+ N = Symbol.for("react.module.reference");
125
125
  function q(m) {
126
- return !!(typeof m == "string" || typeof m == "function" || m === s || m === l || w || m === o || m === c || m === u || V || m === h || T || M || Q || typeof m == "object" && m !== null && (m.$$typeof === p || m.$$typeof === f || m.$$typeof === d || m.$$typeof === a || m.$$typeof === i || // This needs to include all possible module reference object
126
+ return !!(typeof m == "string" || typeof m == "function" || m === s || m === l || v || m === o || m === c || m === u || V || m === h || T || M || Q || typeof m == "object" && m !== null && (m.$$typeof === p || m.$$typeof === f || m.$$typeof === d || m.$$typeof === a || m.$$typeof === i || // 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
- m.$$typeof === F || m.getModuleId !== void 0));
130
+ m.$$typeof === N || m.getModuleId !== void 0));
131
131
  }
132
- function k(m, b, y) {
133
- var S = m.displayName;
134
- if (S)
135
- return S;
136
- var O = b.displayName || b.name || "";
132
+ function w(m, x, y) {
133
+ var $ = m.displayName;
134
+ if ($)
135
+ return $;
136
+ var O = x.displayName || x.name || "";
137
137
  return O !== "" ? y + "(" + O + ")" : y;
138
138
  }
139
- function Y(m) {
139
+ function G(m) {
140
140
  return m.displayName || "Context";
141
141
  }
142
- function B(m) {
142
+ function L(m) {
143
143
  if (m == null)
144
144
  return null;
145
- if (typeof m.tag == "number" && x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof m == "function")
145
+ if (typeof m.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof m == "function")
146
146
  return m.displayName || m.name || null;
147
147
  if (typeof m == "string")
148
148
  return m;
@@ -163,20 +163,20 @@ function yr() {
163
163
  if (typeof m == "object")
164
164
  switch (m.$$typeof) {
165
165
  case a:
166
- var b = m;
167
- return Y(b) + ".Consumer";
166
+ var x = m;
167
+ return G(x) + ".Consumer";
168
168
  case d:
169
169
  var y = m;
170
- return Y(y._context) + ".Provider";
170
+ return G(y._context) + ".Provider";
171
171
  case i:
172
- return k(m, m.render, "ForwardRef");
172
+ return w(m, m.render, "ForwardRef");
173
173
  case f:
174
- var S = m.displayName || null;
175
- return S !== null ? S : B(m.type) || "Memo";
174
+ var $ = m.displayName || null;
175
+ return $ !== null ? $ : L(m.type) || "Memo";
176
176
  case p: {
177
- var O = m, H = O._payload, A = O._init;
177
+ var O = m, H = O._payload, D = O._init;
178
178
  try {
179
- return B(A(H));
179
+ return L(D(H));
180
180
  } catch {
181
181
  return null;
182
182
  }
@@ -184,18 +184,18 @@ function yr() {
184
184
  }
185
185
  return null;
186
186
  }
187
- var L = Object.assign, U = 0, G, K, ie, le, se, R, ee;
188
- function oe() {
187
+ var B = Object.assign, U = 0, Y, K, ie, le, ce, ue, oe;
188
+ function R() {
189
189
  }
190
- oe.__reactDisabledLog = !0;
191
- function ce() {
190
+ R.__reactDisabledLog = !0;
191
+ function te() {
192
192
  {
193
193
  if (U === 0) {
194
- G = console.log, K = console.info, ie = console.warn, le = console.error, se = console.group, R = console.groupCollapsed, ee = console.groupEnd;
194
+ Y = console.log, K = console.info, ie = console.warn, le = console.error, ce = console.group, ue = console.groupCollapsed, oe = console.groupEnd;
195
195
  var m = {
196
196
  configurable: !0,
197
197
  enumerable: !0,
198
- value: oe,
198
+ value: R,
199
199
  writable: !0
200
200
  };
201
201
  Object.defineProperties(console, {
@@ -211,7 +211,7 @@ function yr() {
211
211
  U++;
212
212
  }
213
213
  }
214
- function te() {
214
+ function X() {
215
215
  {
216
216
  if (U--, U === 0) {
217
217
  var m = {
@@ -220,41 +220,41 @@ function yr() {
220
220
  writable: !0
221
221
  };
222
222
  Object.defineProperties(console, {
223
- log: L({}, m, {
224
- value: G
223
+ log: B({}, m, {
224
+ value: Y
225
225
  }),
226
- info: L({}, m, {
226
+ info: B({}, m, {
227
227
  value: K
228
228
  }),
229
- warn: L({}, m, {
229
+ warn: B({}, m, {
230
230
  value: ie
231
231
  }),
232
- error: L({}, m, {
232
+ error: B({}, m, {
233
233
  value: le
234
234
  }),
235
- group: L({}, m, {
236
- value: se
235
+ group: B({}, m, {
236
+ value: ce
237
237
  }),
238
- groupCollapsed: L({}, m, {
239
- value: R
238
+ groupCollapsed: B({}, m, {
239
+ value: ue
240
240
  }),
241
- groupEnd: L({}, m, {
242
- value: ee
241
+ groupEnd: B({}, m, {
242
+ value: oe
243
243
  })
244
244
  });
245
245
  }
246
- U < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
246
+ U < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
247
247
  }
248
248
  }
249
- var ue = E.ReactCurrentDispatcher, me;
250
- function pe(m, b, y) {
249
+ var ne = E.ReactCurrentDispatcher, me;
250
+ function pe(m, x, y) {
251
251
  {
252
252
  if (me === void 0)
253
253
  try {
254
254
  throw Error();
255
255
  } catch (O) {
256
- var S = O.stack.trim().match(/\n( *(at )?)/);
257
- me = S && S[1] || "";
256
+ var $ = O.stack.trim().match(/\n( *(at )?)/);
257
+ me = $ && $[1] || "";
258
258
  }
259
259
  return `
260
260
  ` + me + m;
@@ -265,7 +265,7 @@ function yr() {
265
265
  var Pn = typeof WeakMap == "function" ? WeakMap : Map;
266
266
  Se = new Pn();
267
267
  }
268
- function Ot(m, b) {
268
+ function Lt(m, x) {
269
269
  if (!m || ge)
270
270
  return "";
271
271
  {
@@ -273,81 +273,81 @@ function yr() {
273
273
  if (y !== void 0)
274
274
  return y;
275
275
  }
276
- var S;
276
+ var $;
277
277
  ge = !0;
278
278
  var O = Error.prepareStackTrace;
279
279
  Error.prepareStackTrace = void 0;
280
280
  var H;
281
- H = ue.current, ue.current = null, ce();
281
+ H = ne.current, ne.current = null, te();
282
282
  try {
283
- if (b) {
284
- var A = function() {
283
+ if (x) {
284
+ var D = function() {
285
285
  throw Error();
286
286
  };
287
- if (Object.defineProperty(A.prototype, "props", {
287
+ if (Object.defineProperty(D.prototype, "props", {
288
288
  set: function() {
289
289
  throw Error();
290
290
  }
291
291
  }), typeof Reflect == "object" && Reflect.construct) {
292
292
  try {
293
- Reflect.construct(A, []);
293
+ Reflect.construct(D, []);
294
294
  } catch (_e) {
295
- S = _e;
295
+ $ = _e;
296
296
  }
297
- Reflect.construct(m, [], A);
297
+ Reflect.construct(m, [], D);
298
298
  } else {
299
299
  try {
300
- A.call();
300
+ D.call();
301
301
  } catch (_e) {
302
- S = _e;
302
+ $ = _e;
303
303
  }
304
- m.call(A.prototype);
304
+ m.call(D.prototype);
305
305
  }
306
306
  } else {
307
307
  try {
308
308
  throw Error();
309
309
  } catch (_e) {
310
- S = _e;
310
+ $ = _e;
311
311
  }
312
312
  m();
313
313
  }
314
314
  } catch (_e) {
315
- if (_e && S && typeof _e.stack == "string") {
315
+ if (_e && $ && typeof _e.stack == "string") {
316
316
  for (var C = _e.stack.split(`
317
- `), re = S.stack.split(`
318
- `), J = C.length - 1, X = re.length - 1; J >= 1 && X >= 0 && C[J] !== re[X]; )
319
- X--;
320
- for (; J >= 1 && X >= 0; J--, X--)
321
- if (C[J] !== re[X]) {
322
- if (J !== 1 || X !== 1)
317
+ `), se = $.stack.split(`
318
+ `), J = C.length - 1, Z = se.length - 1; J >= 1 && Z >= 0 && C[J] !== se[Z]; )
319
+ Z--;
320
+ for (; J >= 1 && Z >= 0; J--, Z--)
321
+ if (C[J] !== se[Z]) {
322
+ if (J !== 1 || Z !== 1)
323
323
  do
324
- if (J--, X--, X < 0 || C[J] !== re[X]) {
324
+ if (J--, Z--, Z < 0 || C[J] !== se[Z]) {
325
325
  var de = `
326
326
  ` + C[J].replace(" at new ", " at ");
327
327
  return m.displayName && de.includes("<anonymous>") && (de = de.replace("<anonymous>", m.displayName)), typeof m == "function" && Se.set(m, de), de;
328
328
  }
329
- while (J >= 1 && X >= 0);
329
+ while (J >= 1 && Z >= 0);
330
330
  break;
331
331
  }
332
332
  }
333
333
  } finally {
334
- ge = !1, ue.current = H, te(), Error.prepareStackTrace = O;
334
+ ge = !1, ne.current = H, X(), Error.prepareStackTrace = O;
335
335
  }
336
- var Te = m ? m.displayName || m.name : "", Xt = Te ? pe(Te) : "";
337
- return typeof m == "function" && Se.set(m, Xt), Xt;
336
+ var Te = m ? m.displayName || m.name : "", Zt = Te ? pe(Te) : "";
337
+ return typeof m == "function" && Se.set(m, Zt), Zt;
338
338
  }
339
- function Fn(m, b, y) {
340
- return Ot(m, !1);
339
+ function Fn(m, x, y) {
340
+ return Lt(m, !1);
341
341
  }
342
342
  function Rn(m) {
343
- var b = m.prototype;
344
- return !!(b && b.isReactComponent);
343
+ var x = m.prototype;
344
+ return !!(x && x.isReactComponent);
345
345
  }
346
- function Be(m, b, y) {
346
+ function Be(m, x, y) {
347
347
  if (m == null)
348
348
  return "";
349
349
  if (typeof m == "function")
350
- return Ot(m, Rn(m));
350
+ return Lt(m, Rn(m));
351
351
  if (typeof m == "string")
352
352
  return pe(m);
353
353
  switch (m) {
@@ -361,101 +361,101 @@ function yr() {
361
361
  case i:
362
362
  return Fn(m.render);
363
363
  case f:
364
- return Be(m.type, b, y);
364
+ return Be(m.type, x, y);
365
365
  case p: {
366
- var S = m, O = S._payload, H = S._init;
366
+ var $ = m, O = $._payload, H = $._init;
367
367
  try {
368
- return Be(H(O), b, y);
368
+ return Be(H(O), x, y);
369
369
  } catch {
370
370
  }
371
371
  }
372
372
  }
373
373
  return "";
374
374
  }
375
- var Ie = Object.prototype.hasOwnProperty, Lt = {}, Bt = E.ReactDebugCurrentFrame;
375
+ var Ie = Object.prototype.hasOwnProperty, Bt = {}, It = E.ReactDebugCurrentFrame;
376
376
  function He(m) {
377
377
  if (m) {
378
- var b = m._owner, y = Be(m.type, m._source, b ? b.type : null);
379
- Bt.setExtraStackFrame(y);
378
+ var x = m._owner, y = Be(m.type, m._source, x ? x.type : null);
379
+ It.setExtraStackFrame(y);
380
380
  } else
381
- Bt.setExtraStackFrame(null);
381
+ It.setExtraStackFrame(null);
382
382
  }
383
- function On(m, b, y, S, O) {
383
+ function On(m, x, y, $, O) {
384
384
  {
385
385
  var H = Function.call.bind(Ie);
386
- for (var A in m)
387
- if (H(m, A)) {
386
+ for (var D in m)
387
+ if (H(m, D)) {
388
388
  var C = void 0;
389
389
  try {
390
- if (typeof m[A] != "function") {
391
- var re = Error((S || "React class") + ": " + y + " type `" + A + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof m[A] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
392
- throw re.name = "Invariant Violation", re;
390
+ if (typeof m[D] != "function") {
391
+ var se = Error(($ || "React class") + ": " + y + " type `" + D + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof m[D] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
392
+ throw se.name = "Invariant Violation", se;
393
393
  }
394
- C = m[A](b, A, S, y, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
394
+ C = m[D](x, D, $, y, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
395
395
  } catch (J) {
396
396
  C = J;
397
397
  }
398
- C && !(C instanceof Error) && (He(O), x("%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).", S || "React class", y, A, typeof C), He(null)), C instanceof Error && !(C.message in Lt) && (Lt[C.message] = !0, He(O), x("Failed %s type: %s", y, C.message), He(null));
398
+ C && !(C instanceof Error) && (He(O), 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).", $ || "React class", y, D, typeof C), He(null)), C instanceof Error && !(C.message in Bt) && (Bt[C.message] = !0, He(O), b("Failed %s type: %s", y, C.message), He(null));
399
399
  }
400
400
  }
401
401
  }
402
402
  var Ln = Array.isArray;
403
- function st(m) {
403
+ function ot(m) {
404
404
  return Ln(m);
405
405
  }
406
406
  function Bn(m) {
407
407
  {
408
- var b = typeof Symbol == "function" && Symbol.toStringTag, y = b && m[Symbol.toStringTag] || m.constructor.name || "Object";
408
+ var x = typeof Symbol == "function" && Symbol.toStringTag, y = x && m[Symbol.toStringTag] || m.constructor.name || "Object";
409
409
  return y;
410
410
  }
411
411
  }
412
412
  function In(m) {
413
413
  try {
414
- return It(m), !1;
414
+ return Ht(m), !1;
415
415
  } catch {
416
416
  return !0;
417
417
  }
418
418
  }
419
- function It(m) {
419
+ function Ht(m) {
420
420
  return "" + m;
421
421
  }
422
- function Ht(m) {
422
+ function Qt(m) {
423
423
  if (In(m))
424
- return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Bn(m)), It(m);
424
+ return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Bn(m)), Ht(m);
425
425
  }
426
- var Ae = E.ReactCurrentOwner, Hn = {
426
+ var De = E.ReactCurrentOwner, Hn = {
427
427
  key: !0,
428
428
  ref: !0,
429
429
  __self: !0,
430
430
  __source: !0
431
- }, Qt, Ut, ot;
432
- ot = {};
431
+ }, Ut, Wt, at;
432
+ at = {};
433
433
  function Qn(m) {
434
434
  if (Ie.call(m, "ref")) {
435
- var b = Object.getOwnPropertyDescriptor(m, "ref").get;
436
- if (b && b.isReactWarning)
435
+ var x = Object.getOwnPropertyDescriptor(m, "ref").get;
436
+ if (x && x.isReactWarning)
437
437
  return !1;
438
438
  }
439
439
  return m.ref !== void 0;
440
440
  }
441
441
  function Un(m) {
442
442
  if (Ie.call(m, "key")) {
443
- var b = Object.getOwnPropertyDescriptor(m, "key").get;
444
- if (b && b.isReactWarning)
443
+ var x = Object.getOwnPropertyDescriptor(m, "key").get;
444
+ if (x && x.isReactWarning)
445
445
  return !1;
446
446
  }
447
447
  return m.key !== void 0;
448
448
  }
449
- function Wn(m, b) {
450
- if (typeof m.ref == "string" && Ae.current && b && Ae.current.stateNode !== b) {
451
- var y = B(Ae.current.type);
452
- ot[y] || (x('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', B(Ae.current.type), m.ref), ot[y] = !0);
449
+ function Wn(m, x) {
450
+ if (typeof m.ref == "string" && De.current && x && De.current.stateNode !== x) {
451
+ var y = L(De.current.type);
452
+ at[y] || (b('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', L(De.current.type), m.ref), at[y] = !0);
453
453
  }
454
454
  }
455
- function zn(m, b) {
455
+ function zn(m, x) {
456
456
  {
457
457
  var y = function() {
458
- Qt || (Qt = !0, x("%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)", b));
458
+ Ut || (Ut = !0, b("%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
460
  y.isReactWarning = !0, Object.defineProperty(m, "key", {
461
461
  get: y,
@@ -463,10 +463,10 @@ function yr() {
463
463
  });
464
464
  }
465
465
  }
466
- function Vn(m, b) {
466
+ function Vn(m, x) {
467
467
  {
468
468
  var y = function() {
469
- Ut || (Ut = !0, x("%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)", b));
469
+ Wt || (Wt = !0, b("%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
471
  y.isReactWarning = !0, Object.defineProperty(m, "ref", {
472
472
  get: y,
@@ -474,15 +474,15 @@ function yr() {
474
474
  });
475
475
  }
476
476
  }
477
- var Yn = function(m, b, y, S, O, H, A) {
477
+ var Yn = function(m, x, y, $, O, H, D) {
478
478
  var C = {
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: m,
483
- key: b,
483
+ key: x,
484
484
  ref: y,
485
- props: A,
485
+ props: D,
486
486
  // Record the component responsible for creating this element.
487
487
  _owner: H
488
488
  };
@@ -495,7 +495,7 @@ function yr() {
495
495
  configurable: !1,
496
496
  enumerable: !1,
497
497
  writable: !1,
498
- value: S
498
+ value: $
499
499
  }), Object.defineProperty(C, "_source", {
500
500
  configurable: !1,
501
501
  enumerable: !1,
@@ -503,41 +503,41 @@ function yr() {
503
503
  value: O
504
504
  }), Object.freeze && (Object.freeze(C.props), Object.freeze(C)), C;
505
505
  };
506
- function Gn(m, b, y, S, O) {
506
+ function Gn(m, x, y, $, O) {
507
507
  {
508
- var H, A = {}, C = null, re = null;
509
- y !== void 0 && (Ht(y), C = "" + y), Un(b) && (Ht(b.key), C = "" + b.key), Qn(b) && (re = b.ref, Wn(b, O));
510
- for (H in b)
511
- Ie.call(b, H) && !Hn.hasOwnProperty(H) && (A[H] = b[H]);
508
+ var H, D = {}, C = null, se = null;
509
+ y !== void 0 && (Qt(y), C = "" + y), Un(x) && (Qt(x.key), C = "" + x.key), Qn(x) && (se = x.ref, Wn(x, O));
510
+ for (H in x)
511
+ Ie.call(x, H) && !Hn.hasOwnProperty(H) && (D[H] = x[H]);
512
512
  if (m && m.defaultProps) {
513
513
  var J = m.defaultProps;
514
514
  for (H in J)
515
- A[H] === void 0 && (A[H] = J[H]);
515
+ D[H] === void 0 && (D[H] = J[H]);
516
516
  }
517
- if (C || re) {
518
- var X = typeof m == "function" ? m.displayName || m.name || "Unknown" : m;
519
- C && zn(A, X), re && Vn(A, X);
517
+ if (C || se) {
518
+ var Z = typeof m == "function" ? m.displayName || m.name || "Unknown" : m;
519
+ C && zn(D, Z), se && Vn(D, Z);
520
520
  }
521
- return Yn(m, C, re, O, S, Ae.current, A);
521
+ return Yn(m, C, se, O, $, De.current, D);
522
522
  }
523
523
  }
524
- var at = E.ReactCurrentOwner, Wt = E.ReactDebugCurrentFrame;
524
+ var it = E.ReactCurrentOwner, zt = E.ReactDebugCurrentFrame;
525
525
  function $e(m) {
526
526
  if (m) {
527
- var b = m._owner, y = Be(m.type, m._source, b ? b.type : null);
528
- Wt.setExtraStackFrame(y);
527
+ var x = m._owner, y = Be(m.type, m._source, x ? x.type : null);
528
+ zt.setExtraStackFrame(y);
529
529
  } else
530
- Wt.setExtraStackFrame(null);
530
+ zt.setExtraStackFrame(null);
531
531
  }
532
- var it;
533
- it = !1;
534
- function lt(m) {
532
+ var lt;
533
+ lt = !1;
534
+ function ct(m) {
535
535
  return typeof m == "object" && m !== null && m.$$typeof === t;
536
536
  }
537
- function zt() {
537
+ function Vt() {
538
538
  {
539
- if (at.current) {
540
- var m = B(at.current.type);
539
+ if (it.current) {
540
+ var m = L(it.current.type);
541
541
  if (m)
542
542
  return `
543
543
 
@@ -549,140 +549,140 @@ Check the render method of \`` + m + "`.";
549
549
  function Jn(m) {
550
550
  {
551
551
  if (m !== void 0) {
552
- var b = m.fileName.replace(/^.*[\\\/]/, ""), y = m.lineNumber;
552
+ var x = m.fileName.replace(/^.*[\\\/]/, ""), y = m.lineNumber;
553
553
  return `
554
554
 
555
- Check your code at ` + b + ":" + y + ".";
555
+ Check your code at ` + x + ":" + y + ".";
556
556
  }
557
557
  return "";
558
558
  }
559
559
  }
560
- var Vt = {};
560
+ var Yt = {};
561
561
  function Xn(m) {
562
562
  {
563
- var b = zt();
564
- if (!b) {
563
+ var x = Vt();
564
+ if (!x) {
565
565
  var y = typeof m == "string" ? m : m.displayName || m.name;
566
- y && (b = `
566
+ y && (x = `
567
567
 
568
568
  Check the top-level render call using <` + y + ">.");
569
569
  }
570
- return b;
570
+ return x;
571
571
  }
572
572
  }
573
- function Yt(m, b) {
573
+ function Gt(m, x) {
574
574
  {
575
575
  if (!m._store || m._store.validated || m.key != null)
576
576
  return;
577
577
  m._store.validated = !0;
578
- var y = Xn(b);
579
- if (Vt[y])
578
+ var y = Xn(x);
579
+ if (Yt[y])
580
580
  return;
581
- Vt[y] = !0;
582
- var S = "";
583
- m && m._owner && m._owner !== at.current && (S = " It was passed a child from " + B(m._owner.type) + "."), $e(m), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', y, S), $e(null);
581
+ Yt[y] = !0;
582
+ var $ = "";
583
+ m && m._owner && m._owner !== it.current && ($ = " It was passed a child from " + L(m._owner.type) + "."), $e(m), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', y, $), $e(null);
584
584
  }
585
585
  }
586
- function Gt(m, b) {
586
+ function Jt(m, x) {
587
587
  {
588
588
  if (typeof m != "object")
589
589
  return;
590
- if (st(m))
590
+ if (ot(m))
591
591
  for (var y = 0; y < m.length; y++) {
592
- var S = m[y];
593
- lt(S) && Yt(S, b);
592
+ var $ = m[y];
593
+ ct($) && Gt($, x);
594
594
  }
595
- else if (lt(m))
595
+ else if (ct(m))
596
596
  m._store && (m._store.validated = !0);
597
597
  else if (m) {
598
598
  var O = g(m);
599
599
  if (typeof O == "function" && O !== m.entries)
600
- for (var H = O.call(m), A; !(A = H.next()).done; )
601
- lt(A.value) && Yt(A.value, b);
600
+ for (var H = O.call(m), D; !(D = H.next()).done; )
601
+ ct(D.value) && Gt(D.value, x);
602
602
  }
603
603
  }
604
604
  }
605
605
  function Zn(m) {
606
606
  {
607
- var b = m.type;
608
- if (b == null || typeof b == "string")
607
+ var x = m.type;
608
+ if (x == null || typeof x == "string")
609
609
  return;
610
610
  var y;
611
- if (typeof b == "function")
612
- y = b.propTypes;
613
- else if (typeof b == "object" && (b.$$typeof === i || // Note: Memo only checks outer props here.
611
+ if (typeof x == "function")
612
+ y = x.propTypes;
613
+ else if (typeof x == "object" && (x.$$typeof === i || // Note: Memo only checks outer props here.
614
614
  // Inner props are checked in the reconciler.
615
- b.$$typeof === f))
616
- y = b.propTypes;
615
+ x.$$typeof === f))
616
+ y = x.propTypes;
617
617
  else
618
618
  return;
619
619
  if (y) {
620
- var S = B(b);
621
- On(y, m.props, "prop", S, m);
622
- } else if (b.PropTypes !== void 0 && !it) {
623
- it = !0;
624
- var O = B(b);
625
- x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", O || "Unknown");
620
+ var $ = L(x);
621
+ On(y, m.props, "prop", $, m);
622
+ } else if (x.PropTypes !== void 0 && !lt) {
623
+ lt = !0;
624
+ var O = L(x);
625
+ b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", O || "Unknown");
626
626
  }
627
- typeof b.getDefaultProps == "function" && !b.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
627
+ typeof x.getDefaultProps == "function" && !x.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
628
628
  }
629
629
  }
630
630
  function qn(m) {
631
631
  {
632
- for (var b = Object.keys(m.props), y = 0; y < b.length; y++) {
633
- var S = b[y];
634
- if (S !== "children" && S !== "key") {
635
- $e(m), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", S), $e(null);
632
+ for (var x = Object.keys(m.props), y = 0; y < x.length; y++) {
633
+ var $ = x[y];
634
+ if ($ !== "children" && $ !== "key") {
635
+ $e(m), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", $), $e(null);
636
636
  break;
637
637
  }
638
638
  }
639
- m.ref !== null && ($e(m), x("Invalid attribute `ref` supplied to `React.Fragment`."), $e(null));
639
+ m.ref !== null && ($e(m), b("Invalid attribute `ref` supplied to `React.Fragment`."), $e(null));
640
640
  }
641
641
  }
642
- function Jt(m, b, y, S, O, H) {
642
+ function Xt(m, x, y, $, O, H) {
643
643
  {
644
- var A = q(m);
645
- if (!A) {
644
+ var D = q(m);
645
+ if (!D) {
646
646
  var C = "";
647
647
  (m === void 0 || typeof m == "object" && m !== null && Object.keys(m).length === 0) && (C += " 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 re = Jn(O);
649
- re ? C += re : C += zt();
648
+ var se = Jn(O);
649
+ se ? C += se : C += Vt();
650
650
  var J;
651
- m === null ? J = "null" : st(m) ? J = "array" : m !== void 0 && m.$$typeof === t ? (J = "<" + (B(m.type) || "Unknown") + " />", C = " Did you accidentally export a JSX literal instead of a component?") : J = typeof m, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", J, C);
651
+ m === null ? J = "null" : ot(m) ? J = "array" : m !== void 0 && m.$$typeof === t ? (J = "<" + (L(m.type) || "Unknown") + " />", C = " Did you accidentally export a JSX literal instead of a component?") : J = typeof m, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", J, C);
652
652
  }
653
- var X = Gn(m, b, y, O, H);
654
- if (X == null)
655
- return X;
656
- if (A) {
657
- var de = b.children;
653
+ var Z = Gn(m, x, y, O, H);
654
+ if (Z == null)
655
+ return Z;
656
+ if (D) {
657
+ var de = x.children;
658
658
  if (de !== void 0)
659
- if (S)
660
- if (st(de)) {
659
+ if ($)
660
+ if (ot(de)) {
661
661
  for (var Te = 0; Te < de.length; Te++)
662
- Gt(de[Te], m);
662
+ Jt(de[Te], m);
663
663
  Object.freeze && Object.freeze(de);
664
664
  } else
665
- x("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
+ b("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
- Gt(de, m);
667
+ Jt(de, m);
668
668
  }
669
- return m === s ? qn(X) : Zn(X), X;
669
+ return m === s ? qn(Z) : Zn(Z), Z;
670
670
  }
671
671
  }
672
- function Kn(m, b, y) {
673
- return Jt(m, b, y, !0);
672
+ function Kn(m, x, y) {
673
+ return Xt(m, x, y, !0);
674
674
  }
675
- function er(m, b, y) {
676
- return Jt(m, b, y, !1);
675
+ function er(m, x, y) {
676
+ return Xt(m, x, y, !1);
677
677
  }
678
678
  var tr = er, nr = Kn;
679
- Pe.Fragment = s, Pe.jsx = tr, Pe.jsxs = nr;
680
- }()), Pe;
679
+ Fe.Fragment = s, Fe.jsx = tr, Fe.jsxs = nr;
680
+ }()), Fe;
681
681
  }
682
- process.env.NODE_ENV === "production" ? jt.exports = kr() : jt.exports = yr();
683
- var r = jt.exports;
682
+ process.env.NODE_ENV === "production" ? St.exports = kr() : St.exports = yr();
683
+ var r = St.exports;
684
684
  const jr = () => {
685
- const [e, t] = D(window.location.pathname), n = () => {
685
+ const [e, t] = P(window.location.pathname), n = () => {
686
686
  const s = window.location.pathname;
687
687
  t(s);
688
688
  };
@@ -690,13 +690,13 @@ const jr = () => {
690
690
  window.removeEventListener("popstate", n);
691
691
  }), []), e;
692
692
  }, Ce = (e, t) => {
693
- const n = Z(!1);
693
+ const n = ee(!1);
694
694
  z(() => {
695
695
  n.current ? e() : n.current = !0;
696
696
  }, t);
697
697
  };
698
698
  function Er(e, t, n) {
699
- var s = this, o = Z(null), l = Z(0), d = Z(null), a = Z([]), i = Z(), c = Z(), u = Z(e), f = Z(!0);
699
+ var s = this, o = ee(null), l = ee(0), d = ee(null), a = ee([]), i = ee(), c = ee(), u = ee(e), f = ee(!0);
700
700
  z(function() {
701
701
  u.current = e;
702
702
  }, [e]);
@@ -704,42 +704,42 @@ function Er(e, t, n) {
704
704
  if (typeof e != "function")
705
705
  throw new TypeError("Expected a function");
706
706
  t = +t || 0;
707
- var h = !!(n = n || {}).leading, _ = !("trailing" in n) || !!n.trailing, v = "maxWait" in n, g = v ? Math.max(+n.maxWait || 0, t) : null;
707
+ var h = !!(n = n || {}).leading, _ = !("trailing" in n) || !!n.trailing, k = "maxWait" in n, g = k ? Math.max(+n.maxWait || 0, t) : null;
708
708
  z(function() {
709
709
  return f.current = !0, function() {
710
710
  f.current = !1;
711
711
  };
712
712
  }, []);
713
713
  var E = qe(function() {
714
- var x = function(w) {
715
- var F = a.current, q = i.current;
716
- return a.current = i.current = null, l.current = w, c.current = u.current.apply(q, F);
717
- }, $ = function(w, F) {
718
- p && cancelAnimationFrame(d.current), d.current = p ? requestAnimationFrame(w) : setTimeout(w, F);
719
- }, T = function(w) {
714
+ var b = function(v) {
715
+ var N = a.current, q = i.current;
716
+ return a.current = i.current = null, l.current = v, c.current = u.current.apply(q, N);
717
+ }, S = function(v, N) {
718
+ p && cancelAnimationFrame(d.current), d.current = p ? requestAnimationFrame(v) : setTimeout(v, N);
719
+ }, T = function(v) {
720
720
  if (!f.current)
721
721
  return !1;
722
- var F = w - o.current;
723
- return !o.current || F >= t || F < 0 || v && w - l.current >= g;
724
- }, M = function(w) {
725
- return d.current = null, _ && a.current ? x(w) : (a.current = i.current = null, c.current);
726
- }, Q = function w() {
727
- var F = Date.now();
728
- if (T(F))
729
- return M(F);
722
+ var N = v - o.current;
723
+ return !o.current || N >= t || N < 0 || k && v - l.current >= g;
724
+ }, M = function(v) {
725
+ return d.current = null, _ && a.current ? b(v) : (a.current = i.current = null, c.current);
726
+ }, Q = function v() {
727
+ var N = Date.now();
728
+ if (T(N))
729
+ return M(N);
730
730
  if (f.current) {
731
- var q = t - (F - o.current), k = v ? Math.min(q, g - (F - l.current)) : q;
732
- $(w, k);
731
+ var q = t - (N - o.current), w = k ? Math.min(q, g - (N - l.current)) : q;
732
+ S(v, w);
733
733
  }
734
734
  }, V = function() {
735
- var w = Date.now(), F = T(w);
736
- if (a.current = [].slice.call(arguments), i.current = s, o.current = w, F) {
735
+ var v = Date.now(), N = T(v);
736
+ if (a.current = [].slice.call(arguments), i.current = s, o.current = v, N) {
737
737
  if (!d.current && f.current)
738
- return l.current = o.current, $(Q, t), h ? x(o.current) : c.current;
739
- if (v)
740
- return $(Q, t), x(o.current);
738
+ return l.current = o.current, S(Q, t), h ? b(o.current) : c.current;
739
+ if (k)
740
+ return S(Q, t), b(o.current);
741
741
  }
742
- return d.current || $(Q, t), c.current;
742
+ return d.current || S(Q, t), c.current;
743
743
  };
744
744
  return V.cancel = function() {
745
745
  d.current && (p ? cancelAnimationFrame(d.current) : clearTimeout(d.current)), l.current = 0, a.current = o.current = i.current = d.current = null;
@@ -748,27 +748,27 @@ function Er(e, t, n) {
748
748
  }, V.flush = function() {
749
749
  return d.current ? M(Date.now()) : c.current;
750
750
  }, V;
751
- }, [h, v, t, g, _, p]);
751
+ }, [h, k, t, g, _, p]);
752
752
  return E;
753
753
  }
754
754
  function fn(e, t, n) {
755
755
  var s = n === void 0 ? {} : n, o = s.leading, l = s.trailing;
756
756
  return Er(e, t, { maxWait: t, leading: o === void 0 || o, trailing: l === void 0 || l });
757
757
  }
758
- let ct;
759
- const et = (e = !0, t = !1) => {
758
+ let ut;
759
+ const tt = (e = !0, t = !1) => {
760
760
  if (!e)
761
761
  return;
762
- const [n, s] = N.useState(0) || [!1, () => {
762
+ const [n, s] = A.useState(0) || [!1, () => {
763
763
  }];
764
764
  z(() => (l(), window.addEventListener("resize", d), () => {
765
- clearTimeout(ct), d.flush(), window.removeEventListener("resize", d);
765
+ clearTimeout(ut), d.flush(), window.removeEventListener("resize", d);
766
766
  }), []);
767
767
  const o = () => window.innerWidth, l = () => {
768
768
  s(o());
769
769
  }, d = fn(
770
770
  () => {
771
- o() !== n && (t && (clearTimeout(ct), document.body.classList.add("is-resizing"), ct = setTimeout(() => {
771
+ o() !== n && (t && (clearTimeout(ut), document.body.classList.add("is-resizing"), ut = setTimeout(() => {
772
772
  document.body.classList.remove("is-resizing");
773
773
  }, 550)), l());
774
774
  },
@@ -787,8 +787,8 @@ const et = (e = !0, t = !1) => {
787
787
  }) => {
788
788
  if (!window)
789
789
  return;
790
- const [o, l] = N.useState({ current: 0, past: 0 }) || [!1, () => {
791
- }], [d, a] = N.useState({ scrollDown: !1, scrollUp: !1 }) || [!1, () => {
790
+ const [o, l] = A.useState({ current: 0, past: 0 }) || [!1, () => {
791
+ }], [d, a] = A.useState({ scrollDown: !1, scrollUp: !1 }) || [!1, () => {
792
792
  }];
793
793
  z(() => (i(), window.addEventListener("scroll", c), () => {
794
794
  c.flush(), window.removeEventListener("scroll", c);
@@ -804,9 +804,9 @@ const et = (e = !0, t = !1) => {
804
804
  i();
805
805
  }, 250);
806
806
  return o;
807
- }, so = (e = [], t = !0) => {
807
+ }, oo = (e = [], t = !0) => {
808
808
  e = Array.isArray(e) ? e : [e];
809
- const n = Z(!1);
809
+ const n = ee(!1);
810
810
  Ce(() => {
811
811
  if (window && window.location && window.location.hash) {
812
812
  if (n.current)
@@ -856,7 +856,7 @@ const et = (e = !0, t = !1) => {
856
856
  return { path: "days", number: a };
857
857
  const i = Math.floor(a / 7);
858
858
  return i <= 52 ? { path: "weeks", number: i } : { path: "years", number: Math.floor(a / 365) };
859
- }, Cr = (e) => new Promise((t) => setTimeout(t, e)), At = {
859
+ }, Cr = (e) => new Promise((t) => setTimeout(t, e)), Dt = {
860
860
  apolitical: "Apolitical",
861
861
  breadcrumbs_label: "Go back to:",
862
862
  breadcrumbs_currentPage: "Current page:",
@@ -1160,13 +1160,13 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1160
1160
  languageSwitcher_disclaimer: "Este conteúdo foi traduzido automaticamente e, ocasionalmente, poderão ocorrer erros de linguagem de gênero ou outras traduções diretas. Estamos tentando resolver isso, porém se perceber algo errado por favor nos avise em <link>{email}</link>"
1161
1161
  }, Pr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1162
1162
  __proto__: null,
1163
- en: At,
1163
+ en: Dt,
1164
1164
  es: Nr,
1165
1165
  fr: Ar,
1166
1166
  pt: Dr
1167
1167
  }, Symbol.toStringTag, { value: "Module" })), he = (e, t, n, s, o = {}) => {
1168
1168
  let l = "";
1169
- return `${t}_${n}` in At ? l = e({ id: `${t}_${n}` }, o) : l = e({ id: t }, { [s]: n, ...o }), l;
1169
+ return `${t}_${n}` in Dt ? l = e({ id: `${t}_${n}` }, o) : l = e({ id: t }, { [s]: n, ...o }), l;
1170
1170
  }, Fr = (e, t, n) => {
1171
1171
  if (!e || e === 0)
1172
1172
  return "0";
@@ -1181,7 +1181,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1181
1181
  }
1182
1182
  }
1183
1183
  return s;
1184
- }, gn = (e, t) => N.Children.map(e, (n) => N.cloneElement(n, {
1184
+ }, gn = (e, t) => A.Children.map(e, (n) => A.cloneElement(n, {
1185
1185
  ...t
1186
1186
  })), Rr = (e) => e.replace(/\s+/g, "").length > 0, W = ({
1187
1187
  variant: e = "primary",
@@ -1197,14 +1197,14 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1197
1197
  children: u = !1,
1198
1198
  ...f
1199
1199
  }) => {
1200
- const h = et(typeof t == "object");
1200
+ const h = tt(typeof t == "object");
1201
1201
  if (typeof t == "object" && typeof h == "number") {
1202
1202
  const g = Object.assign({}, t), E = pn(Object.keys(g));
1203
1203
  t = hn(h, E, g);
1204
1204
  }
1205
1205
  const _ = [];
1206
1206
  typeof t == "string" && _.push(t), s && (_.push("icon"), typeof s == "object" ? (_.push(s.icon), s.position ? _.push(s.position) : _.push("left"), s.hover && _.push(`hover_${s.hover}`), s.animate && (_.push("animate"), typeof s.animate == "string" && _.push(s.animate))) : (_.push(s), !s.includes("right") && !s.includes("left") && _.push("left"))), n.muted && _.push("muted"), n.fullWidth && _.push("full-width");
1207
- const v = {
1207
+ const k = {
1208
1208
  ...f,
1209
1209
  className: j(e, a, _, {
1210
1210
  "no-text": !u,
@@ -1216,19 +1216,19 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1216
1216
  },
1217
1217
  disabled: typeof i == "object" && "isClickable" in i ? !i.isClickable : i
1218
1218
  };
1219
- return o && (l = "a", v.href = o), N.createElement(
1219
+ return o && (l = "a", k.href = o), A.createElement(
1220
1220
  l,
1221
- v,
1222
- u || (c ? /* @__PURE__ */ r.jsx(ne, { showOnFocus: !1, children: c }) : null)
1221
+ k,
1222
+ u || (c ? /* @__PURE__ */ r.jsx(re, { showOnFocus: !1, children: c }) : null)
1223
1223
  );
1224
- }, tt = ({ buttons: e, className: t = "", ...n }) => {
1224
+ }, nt = ({ buttons: e, className: t = "", ...n }) => {
1225
1225
  const s = e.length > 1 ? "ul" : "p", o = e.map((l, d) => s === "p" ? /* @__PURE__ */ r.jsx(W, { ...l }, d) : /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(W, { ...l }) }, d));
1226
- return N.createElement(s, { className: j("button-wrapper", t), ...n, children: o });
1226
+ return A.createElement(s, { className: j("button-wrapper", t), ...n, children: o });
1227
1227
  };
1228
- const Le = ({ maxWidth: e = !1 }) => {
1228
+ const Ne = ({ maxWidth: e = !1 }) => {
1229
1229
  const t = e ? { "--max-width": `${e / 16}rem` } : {};
1230
1230
  return /* @__PURE__ */ r.jsx("hr", { className: j({ "has-max-width": e }), style: t });
1231
- }, nt = ({
1231
+ }, rt = ({
1232
1232
  href: e,
1233
1233
  children: t,
1234
1234
  fallbackElement: n,
@@ -1250,7 +1250,7 @@ const Le = ({ maxWidth: e = !1 }) => {
1250
1250
  }
1251
1251
  );
1252
1252
  }
1253
- return n ? N.createElement(n, { children: t, className: s, ...a }) : t;
1253
+ return n ? A.createElement(n, { children: t, className: s, ...a }) : t;
1254
1254
  }, en = {
1255
1255
  card: {
1256
1256
  range: [
@@ -1364,7 +1364,7 @@ const Le = ({ maxWidth: e = !1 }) => {
1364
1364
  }, Lr = ({ format: e, height: t, query: n, width: s }) => {
1365
1365
  let o = `w=${s}&h=${t}`;
1366
1366
  return o = e ? `${o}&fm=${e}` : o, o = n ? `${o}&${n}` : o, o;
1367
- }, ut = ({ format: e, range: t, url: n, query: s }) => t.map(({ height: o, width: l }) => `${n}?${Lr({
1367
+ }, dt = ({ format: e, range: t, url: n, query: s }) => t.map(({ height: o, width: l }) => `${n}?${Lr({
1368
1368
  format: e,
1369
1369
  height: o,
1370
1370
  query: s,
@@ -1381,7 +1381,7 @@ const Br = ({ image: e, className: t, testId: n }) => {
1381
1381
  loading: c,
1382
1382
  decoding: u,
1383
1383
  fetchPriority: f
1384
- } = e, { range: p, sizes: h } = Or(e), _ = ut({ format: "avif", query: d, range: p, url: a }), v = ut({ format: "webp", query: d, range: p, url: a }), g = ut({ format: "", query: d, range: p, url: a });
1384
+ } = e, { range: p, sizes: h } = Or(e), _ = dt({ format: "avif", query: d, range: p, url: a }), k = dt({ format: "webp", query: d, range: p, url: a }), g = dt({ format: "", query: d, range: p, url: a });
1385
1385
  return /* @__PURE__ */ r.jsxs("picture", { className: t, children: [
1386
1386
  l !== "image/gif" && /* @__PURE__ */ r.jsx(
1387
1387
  "source",
@@ -1396,7 +1396,7 @@ const Br = ({ image: e, className: t, testId: n }) => {
1396
1396
  "source",
1397
1397
  {
1398
1398
  type: "image/webp",
1399
- srcSet: v,
1399
+ srcSet: k,
1400
1400
  sizes: h,
1401
1401
  "data-testid": "source"
1402
1402
  }
@@ -1418,9 +1418,9 @@ const Br = ({ image: e, className: t, testId: n }) => {
1418
1418
  )
1419
1419
  ] });
1420
1420
  };
1421
- let Fe = !1;
1421
+ let Re = !1;
1422
1422
  const Ir = ({ isOpen: e = !1, isLoading: t = !1, children: n }) => {
1423
- const s = P(), o = Z(null), [l, d] = D("hidden");
1423
+ const s = F(), o = ee(null), [l, d] = P("hidden");
1424
1424
  z(() => {
1425
1425
  const i = o.current;
1426
1426
  if (i)
@@ -1429,18 +1429,18 @@ const Ir = ({ isOpen: e = !1, isLoading: t = !1, children: n }) => {
1429
1429
  };
1430
1430
  }, []);
1431
1431
  const a = ({ propertyName: i }) => {
1432
- i === "opacity" && (Fe !== !1 && clearTimeout(Fe), d((c) => c === "opening" ? "open" : c === "closing" ? "closed" : c === "closed" ? "hidden" : c));
1432
+ i === "opacity" && (Re !== !1 && clearTimeout(Re), d((c) => c === "opening" ? "open" : c === "closing" ? "closed" : c === "closed" ? "hidden" : c));
1433
1433
  };
1434
1434
  return Ce(() => {
1435
- Fe !== !1 && clearTimeout(Fe);
1435
+ Re !== !1 && clearTimeout(Re);
1436
1436
  let i = "open";
1437
- e ? d("opening") : (d("closing"), i = "hidden"), Fe = setTimeout(() => {
1437
+ e ? d("opening") : (d("closing"), i = "hidden"), Re = setTimeout(() => {
1438
1438
  d(i);
1439
1439
  }, 300);
1440
1440
  }, [e]), /* @__PURE__ */ r.jsx("aside", { ref: o, className: j("tooltip text-medium", l, { loading: t }), hidden: l === "hidden", children: t ? /* @__PURE__ */ r.jsx("p", { children: s.formatMessage({ id: "tooltip_loading" }) }) : typeof n == "string" ? /* @__PURE__ */ r.jsx("p", { children: n }) : n });
1441
1441
  };
1442
1442
  const _n = ({ children: e, className: t = "", ...n }) => /* @__PURE__ */ r.jsx("section", { className: j("full-width-section", t), ...n, children: e });
1443
- const oo = ({ text: e, buttons: t, className: n = "" }) => {
1443
+ const ao = ({ text: e, buttons: t, className: n = "" }) => {
1444
1444
  const s = [];
1445
1445
  return t.forEach((o) => {
1446
1446
  s.push({
@@ -1454,11 +1454,11 @@ const oo = ({ text: e, buttons: t, className: n = "" }) => {
1454
1454
  children: o.text
1455
1455
  });
1456
1456
  }), /* @__PURE__ */ r.jsx(_n, { className: j("download-section", n), children: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1457
- N.createElement(typeof e == "string" ? "h2" : e.element, { className: "text" }, typeof e == "string" ? e : e.text),
1458
- /* @__PURE__ */ r.jsx(tt, { buttons: s })
1457
+ A.createElement(typeof e == "string" ? "h2" : e.element, { className: "text" }, typeof e == "string" ? e : e.text),
1458
+ /* @__PURE__ */ r.jsx(nt, { buttons: s })
1459
1459
  ] }) });
1460
1460
  };
1461
- const ao = ({ title: e = !1, logos: t = [], className: n = "" }) => {
1461
+ const io = ({ title: e = !1, logos: t = [], className: n = "" }) => {
1462
1462
  const s = t.length;
1463
1463
  if (s === 0)
1464
1464
  return null;
@@ -1467,7 +1467,7 @@ const ao = ({ title: e = !1, logos: t = [], className: n = "" }) => {
1467
1467
  text: typeof e == "string" ? e : typeof e == "object" ? e.text : ""
1468
1468
  };
1469
1469
  return /* @__PURE__ */ r.jsxs("div", { className: j("logos", n), children: [
1470
- e && N.createElement(o.element, { className: "title" }, o.text),
1470
+ e && A.createElement(o.element, { className: "title" }, o.text),
1471
1471
  /* @__PURE__ */ r.jsx(
1472
1472
  "ul",
1473
1473
  {
@@ -1545,7 +1545,7 @@ const Hr = [
1545
1545
  d.map((c) => {
1546
1546
  if (i[c] && typeof i[c] == "object") {
1547
1547
  const { text: u, element: f = "" } = i[c];
1548
- return N.createElement(
1548
+ return A.createElement(
1549
1549
  f.toLowerCase(),
1550
1550
  { key: c, className: c },
1551
1551
  u
@@ -1567,8 +1567,8 @@ const Hr = [
1567
1567
  ] }),
1568
1568
  t && /* @__PURE__ */ r.jsx(Br, { image: { ...t, aspect: "banner" } })
1569
1569
  ] }) });
1570
- }, io = Ne(Qr);
1571
- const lo = ({
1570
+ }, lo = Ae(Qr);
1571
+ const co = ({
1572
1572
  variant: e = "primary",
1573
1573
  button: t = null,
1574
1574
  title: n,
@@ -1578,32 +1578,32 @@ const lo = ({
1578
1578
  n && /* @__PURE__ */ r.jsx("p", { className: "title", children: n }),
1579
1579
  s && /* @__PURE__ */ r.jsx("p", { children: s }),
1580
1580
  t && /* @__PURE__ */ r.jsx(W, { variant: "secondary", size: "medium", href: t.link, className: "gtm-trackable", "data-gtm-event-context": o, "data-gtm-event-type": "learn-more-click", children: t.text })
1581
- ] }), Et = "https://storage.googleapis.com/apolitical-assets/", Re = {
1581
+ ] }), $t = "https://storage.googleapis.com/apolitical-assets/", Oe = {
1582
1582
  general: "hello@apolitical.co",
1583
1583
  support: "concierge@apolitical.co",
1584
1584
  "data-protection": {
1585
1585
  default: "dpo@apolitical.co",
1586
1586
  eu: "dpo.agl@apolitical.foundation"
1587
1587
  }
1588
- }, co = "200,000+";
1588
+ }, uo = "200,000+";
1589
1589
  const xn = ({ label: e = !1, className: t = "", children: n }) => {
1590
- const s = P();
1590
+ const s = F();
1591
1591
  return /* @__PURE__ */ r.jsxs("details", { className: j("collapsible-section", t), children: [
1592
1592
  /* @__PURE__ */ r.jsx("summary", { children: e || s.formatMessage({ id: "collapsibleSection_summary" }) }),
1593
1593
  /* @__PURE__ */ r.jsx("div", { className: "content", children: n })
1594
1594
  ] });
1595
1595
  };
1596
1596
  const ke = ({ variant: e = "primary", className: t = "", children: n, ...s }) => /* @__PURE__ */ r.jsx("div", { className: j("highlighted-text-box", e, t), ...s, children: n });
1597
- const rt = ({ variant: e = "empty", text: t = !1, button: n = !1, className: s = "" }) => {
1597
+ const st = ({ variant: e = "empty", text: t = !1, button: n = !1, className: s = "" }) => {
1598
1598
  let o = n && !!Object.keys(n).length;
1599
- const l = typeof n == "object" && "breakpoints" in n, d = et(l);
1599
+ const l = typeof n == "object" && "breakpoints" in n, d = tt(l);
1600
1600
  if (l && typeof n == "object" && typeof d == "number") {
1601
1601
  const f = Object.assign({}, n.breakpoints), p = pn(Object.keys(f));
1602
1602
  o = hn(d, p, f);
1603
1603
  }
1604
1604
  const { breakpoints: a, text: i = "", component: c, ...u } = n;
1605
1605
  return /* @__PURE__ */ r.jsx(ke, { variant: "subtle", className: j("empty-state-box", e, s), children: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1606
- t && /* @__PURE__ */ r.jsx(Ke, { options: { forceBlock: !0 }, children: t }),
1606
+ t && /* @__PURE__ */ r.jsx(et, { options: { forceBlock: !0 }, children: t }),
1607
1607
  o && typeof n == "object" && (c || /* @__PURE__ */ r.jsx(
1608
1608
  W,
1609
1609
  {
@@ -1614,16 +1614,16 @@ const rt = ({ variant: e = "empty", text: t = !1, button: n = !1, className: s =
1614
1614
  ))
1615
1615
  ] }) });
1616
1616
  };
1617
- const St = ({ children: e, ...t }) => /* @__PURE__ */ r.jsx("p", { ...t, children: e }), vn = { q: St, blockquote: St };
1617
+ const Tt = ({ children: e, ...t }) => /* @__PURE__ */ r.jsx("p", { ...t, children: e }), vn = { q: Tt, blockquote: Tt };
1618
1618
  for (let e = 1; e <= 6; e++)
1619
- vn[`h${e}`] = { component: St, props: { className: "title" } };
1619
+ vn[`h${e}`] = { component: Tt, props: { className: "title" } };
1620
1620
  const Ur = ({ type: e = "default", className: t = "", heading: n = !1, children: s }) => /* @__PURE__ */ r.jsxs("div", { className: j("helper-text-box text-small", e, t), children: [
1621
1621
  n && /* @__PURE__ */ r.jsx("p", { className: "title", children: n }),
1622
1622
  typeof s == "string" ? /* @__PURE__ */ r.jsx(
1623
- Ke,
1623
+ et,
1624
1624
  {
1625
1625
  options: {
1626
- wrapper: N.Fragment,
1626
+ wrapper: A.Fragment,
1627
1627
  forceBlock: !0,
1628
1628
  overrides: vn
1629
1629
  },
@@ -1631,8 +1631,8 @@ const Ur = ({ type: e = "default", className: t = "", heading: n = !1, children:
1631
1631
  }
1632
1632
  ) : /* @__PURE__ */ r.jsx("p", { children: s })
1633
1633
  ] });
1634
- const uo = ({ className: e = "", show: t = !1, hide: n = !1, text: s, children: o }) => {
1635
- const l = P(), d = Z(null), [a, i] = D(""), [c, u] = D("closed");
1634
+ const mo = ({ className: e = "", show: t = !1, hide: n = !1, text: s, children: o }) => {
1635
+ const l = F(), d = ee(null), [a, i] = P(""), [c, u] = P("closed");
1636
1636
  z(() => {
1637
1637
  const h = d.current;
1638
1638
  if (h)
@@ -1657,7 +1657,7 @@ const uo = ({ className: e = "", show: t = !1, hide: n = !1, text: s, children:
1657
1657
  const p = ["opening", "open"].includes(c);
1658
1658
  return /* @__PURE__ */ r.jsxs(ke, { variant: "subtle", className: j("hide-show-text-box", e), children: [
1659
1659
  /* @__PURE__ */ r.jsxs("div", { ref: d, className: j("content", c), children: [
1660
- /* @__PURE__ */ r.jsx(Ke, { options: { forceBlock: !0 }, children: c === "closed" ? a : s }),
1660
+ /* @__PURE__ */ r.jsx(et, { options: { forceBlock: !0 }, children: c === "closed" ? a : s }),
1661
1661
  c !== "closed" && o
1662
1662
  ] }),
1663
1663
  /* @__PURE__ */ r.jsx("p", { className: "cta", children: /* @__PURE__ */ r.jsx(
@@ -1674,18 +1674,18 @@ const uo = ({ className: e = "", show: t = !1, hide: n = !1, text: s, children:
1674
1674
  }
1675
1675
  ) })
1676
1676
  ] });
1677
- }, Wr = () => N.Fragment, zr = ({ children: e }) => /* @__PURE__ */ r.jsx(ke, { variant: "secondary", children: e }), Vr = ["span", "strong", "h1", "h2", "h3", "h4", "h5", "h6", "p"], Yr = ({ children: e }) => {
1678
- const t = P();
1677
+ }, Wr = () => A.Fragment, zr = ({ children: e }) => /* @__PURE__ */ r.jsx(ke, { variant: "secondary", children: e }), Vr = ["span", "strong", "h1", "h2", "h3", "h4", "h5", "h6", "p"], Yr = ({ children: e }) => {
1678
+ const t = F();
1679
1679
  if (!e)
1680
1680
  return null;
1681
1681
  let n = t.formatMessage({ id: "markdown_collapsibleSection_summary" });
1682
1682
  const s = [];
1683
- for (const l of yt.toArray(e))
1683
+ for (const l of jt.toArray(e))
1684
1684
  if (!(!l || typeof l == "string" || typeof l == "number"))
1685
- if (N.isValidElement(l) && l.type === "summary") {
1685
+ if (A.isValidElement(l) && l.type === "summary") {
1686
1686
  if (l.props && l.props.children) {
1687
- for (const d of yt.toArray(l.props.children))
1688
- if (!(!d || typeof d == "string" || typeof d == "number") && N.isValidElement(d)) {
1687
+ for (const d of jt.toArray(l.props.children))
1688
+ if (!(!d || typeof d == "string" || typeof d == "number") && A.isValidElement(d)) {
1689
1689
  const a = d.type;
1690
1690
  if (Vr.includes(a)) {
1691
1691
  for (n = d.props.children; typeof n != "string" && (Array.isArray(n) && n[0].props && n[0].props.children && n[0].props.children[0]); )
@@ -1720,11 +1720,11 @@ const uo = ({ className: e = "", show: t = !1, hide: n = !1, text: s, children:
1720
1720
  }
1721
1721
  return /* @__PURE__ */ r.jsx("div", { ...t, children: e });
1722
1722
  }, Jr = (e) => {
1723
- const t = P(), n = Date.now().toString();
1723
+ const t = F(), n = Date.now().toString();
1724
1724
  let s = "default";
1725
1725
  const o = e.src;
1726
1726
  return o.includes("youtube") || o.includes("vimeo") ? s = "video" : o.includes("riddle") || o.includes("sli.do") ? s = "poll" : o.includes("padlet") && (s = "padlet"), /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1727
- /* @__PURE__ */ r.jsx(ne, { children: /* @__PURE__ */ r.jsx("a", { href: `#content-after-iframe-${n}`, children: t.formatMessage({ id: `markdown_skip${s === "default" ? "" : `_${s}`}` }) }) }),
1727
+ /* @__PURE__ */ r.jsx(re, { children: /* @__PURE__ */ r.jsx("a", { href: `#content-after-iframe-${n}`, children: t.formatMessage({ id: `markdown_skip${s === "default" ? "" : `_${s}`}` }) }) }),
1728
1728
  /* @__PURE__ */ r.jsx("iframe", { ...e, title: t.formatMessage({ id: `markdown_iframe${s === "default" ? "" : `_${s}`}` }) }),
1729
1729
  /* @__PURE__ */ r.jsx("span", { id: `content-after-iframe-${n}`, tabIndex: -1 })
1730
1730
  ] });
@@ -1735,11 +1735,11 @@ const uo = ({ className: e = "", show: t = !1, hide: n = !1, text: s, children:
1735
1735
  let n = { ...t };
1736
1736
  t.href && (t.href.includes("http:") || t.href.includes("https:")) && !t.target && (n.target = "_blank");
1737
1737
  let s = e, o = !1;
1738
- for (const l of yt.toArray(e))
1739
- if (!(!l || typeof l == "string" || typeof l == "number") && N.isValidElement(l)) {
1738
+ for (const l of jt.toArray(e))
1739
+ if (!(!l || typeof l == "string" || typeof l == "number") && A.isValidElement(l)) {
1740
1740
  const d = l.type;
1741
1741
  if (["button", "center", "span", "strong"].includes(d) && l.props && l.props.children && l.props.children[0])
1742
- for ((d === "button" || tn(l.props.children[0]) === "button") && (o = !0), s = l.props.children[0]; s && typeof s != "string" && !(typeof s == "boolean" || typeof s == "number" || !N.isValidElement(s)); )
1742
+ for ((d === "button" || tn(l.props.children[0]) === "button") && (o = !0), s = l.props.children[0]; s && typeof s != "string" && !(typeof s == "boolean" || typeof s == "number" || !A.isValidElement(s)); )
1743
1743
  if (s.props && s.props.children && s.props.children[0])
1744
1744
  s = s.props.children[0], s && tn(s) === "button" && (o = !0);
1745
1745
  else
@@ -1750,7 +1750,7 @@ const uo = ({ className: e = "", show: t = !1, hide: n = !1, text: s, children:
1750
1750
  const nn = ({ className: e = "", options: t = {}, children: n }) => {
1751
1751
  n = n.replace(/^<br\/?>/, "");
1752
1752
  const s = {
1753
- wrapper: N.Fragment,
1753
+ wrapper: A.Fragment,
1754
1754
  forceBlock: !0,
1755
1755
  overrides: {
1756
1756
  a: Xr,
@@ -1767,26 +1767,26 @@ const nn = ({ className: e = "", options: t = {}, children: n }) => {
1767
1767
  iframe: Jr
1768
1768
  }
1769
1769
  };
1770
- return /* @__PURE__ */ r.jsx("div", { className: j("markdown-text", e), children: /* @__PURE__ */ r.jsx(Ke, { options: { ...s, ...t }, children: n }) });
1770
+ return /* @__PURE__ */ r.jsx("div", { className: j("markdown-text", e), children: /* @__PURE__ */ r.jsx(et, { options: { ...s, ...t }, children: n }) });
1771
1771
  };
1772
1772
  const qr = ({ size: e = "medium", variant: t = "default", className: n = "", children: s }) => /* @__PURE__ */ r.jsx("span", { className: j("pill", e, t, n), children: s });
1773
- const $t = ({ element: e = "p", children: t = null, className: n = "", ...s }) => N.createElement(e, { ...s, className: j("status-banner text-small", n), "aria-live": "assertive" }, t);
1773
+ const Mt = ({ element: e = "p", children: t = null, className: n = "", ...s }) => A.createElement(e, { ...s, className: j("status-banner text-small", n), "aria-live": "assertive" }, t);
1774
1774
  const Kr = ({ progress: e = 0, text: t = !1, className: n = "" }) => {
1775
- const s = P(), o = e > 75 ? 100 : e > 50 ? 75 : e > 25 ? 50 : e > 5 ? 25 : 0, l = { "--progress": `${e}%` };
1776
- return /* @__PURE__ */ r.jsx("span", { className: j(`progress-bar section-${o}`, n), style: l, children: /* @__PURE__ */ r.jsx(ne, { children: t ? `${e} ${t}` : s.formatMessage({ id: "progressBar" }, { number: e }) }) });
1777
- }, es = Ne(Kr);
1778
- const dt = "loadingBlock_", ts = ({ progress: e = 0, steps: t = !1, className: n = "" }) => {
1779
- const s = P();
1775
+ const s = F(), o = e > 75 ? 100 : e > 50 ? 75 : e > 25 ? 50 : e > 5 ? 25 : 0, l = { "--progress": `${e}%` };
1776
+ return /* @__PURE__ */ r.jsx("span", { className: j(`progress-bar section-${o}`, n), style: l, children: /* @__PURE__ */ r.jsx(re, { children: t ? `${e} ${t}` : s.formatMessage({ id: "progressBar" }, { number: e }) }) });
1777
+ }, es = Ae(Kr);
1778
+ const mt = "loadingBlock_", ts = ({ progress: e = 0, steps: t = !1, className: n = "" }) => {
1779
+ const s = F();
1780
1780
  t || (t = {
1781
- 0: { text: s.formatMessage({ id: `${dt}loading` }) },
1782
- 75: { text: s.formatMessage({ id: `${dt}almostDone` }) },
1783
- 100: { text: s.formatMessage({ id: `${dt}complete` }) }
1781
+ 0: { text: s.formatMessage({ id: `${mt}loading` }) },
1782
+ 75: { text: s.formatMessage({ id: `${mt}almostDone` }) },
1783
+ 100: { text: s.formatMessage({ id: `${mt}complete` }) }
1784
1784
  });
1785
1785
  let o = null;
1786
1786
  const l = Object.keys(t);
1787
1787
  for (let a = 0; a < l.length && !(e < parseInt(l[a])); a++)
1788
1788
  o = l[a];
1789
- const d = o && t[o].icon ? { "--icon": `url(${Et}icons/${t[o].icon}.svg)` } : {};
1789
+ const d = o && t[o].icon ? { "--icon": `url(${$t}icons/${t[o].icon}.svg)` } : {};
1790
1790
  return /* @__PURE__ */ r.jsxs(
1791
1791
  ke,
1792
1792
  {
@@ -1799,15 +1799,15 @@ const dt = "loadingBlock_", ts = ({ progress: e = 0, steps: t = !1, className: n
1799
1799
  ]
1800
1800
  }
1801
1801
  );
1802
- }, mo = Ne(ts);
1802
+ }, fo = Ae(ts);
1803
1803
  const be = ({ element: e = "div", className: t = "", ...n }) => /* @__PURE__ */ r.jsx(mn, { element: e, className: j("loading-placeholder", t), ...n });
1804
- const Tt = {
1804
+ const Ct = {
1805
1805
  header: ["logo", "link", "link", "search"],
1806
1806
  sidebar: ["text", "text", "text", "text", "text"],
1807
1807
  "cards-section": ["subtitle", "cards"],
1808
1808
  cards: ["card", "card", "card", "card"],
1809
1809
  "overview-page": ["header", "sidebar", "title", "text", "cards-section", "cards-section", "footer"]
1810
- }, bn = (e, t) => e in Tt ? /* @__PURE__ */ r.jsx("div", { className: e, children: Tt[e].map((n, s) => bn(n, s)) }, t) : /* @__PURE__ */ r.jsx(be, { className: e }, t), ns = ({ layout: e = "overview-page" }) => /* @__PURE__ */ r.jsx("div", { className: j("loading-state", e), children: Tt[e].map((t, n) => bn(t, n)) }), wn = (e) => {
1810
+ }, bn = (e, t) => e in Ct ? /* @__PURE__ */ r.jsx("div", { className: e, children: Ct[e].map((n, s) => bn(n, s)) }, t) : /* @__PURE__ */ r.jsx(be, { className: e }, t), ns = ({ layout: e = "overview-page" }) => /* @__PURE__ */ r.jsx("div", { className: j("loading-state", e), children: Ct[e].map((t, n) => bn(t, n)) }), wn = (e) => {
1811
1811
  const t = e && e.toUpperCase().split(" ");
1812
1812
  return Array.isArray(t) && t.length > 1 && t[0] !== "" ? t[1] === "" ? t[0][0] : t[0][0] + t[t.length - 1][0] : e ? e.substr(0, 1) : "";
1813
1813
  }, Qe = ["#5AB6A3", "#A2D7AF", "#806056", "#3962B3"], rs = (e) => {
@@ -1819,8 +1819,8 @@ const Tt = {
1819
1819
  if (s <= t * (o + 1))
1820
1820
  return Qe[o];
1821
1821
  };
1822
- const rn = 256, Dt = ({ className: e = "", src: t = "", name: n, alt: s, width: o = rn, height: l = rn, ...d }) => {
1823
- const [a, i] = D(!1), c = Z(null);
1822
+ const rn = 256, Pt = ({ className: e = "", src: t = "", name: n, alt: s, width: o = rn, height: l = rn, ...d }) => {
1823
+ const [a, i] = P(!1), c = ee(null);
1824
1824
  z(() => {
1825
1825
  const f = c.current;
1826
1826
  if (!f)
@@ -1845,9 +1845,9 @@ const rn = 256, Dt = ({ className: e = "", src: t = "", name: n, alt: s, width:
1845
1845
  }
1846
1846
  ) : /* @__PURE__ */ r.jsx("canvas", { ref: c }) });
1847
1847
  }, kn = (e) => e === "apolitical" ? {
1848
- image: `${Et}logos/member_apolitical.svg`
1848
+ image: `${$t}logos/member_apolitical.svg`
1849
1849
  } : e === "community" || typeof e == "object" && !e.name ? {
1850
- image: `${Et}logos/member_community.svg`
1850
+ image: `${$t}logos/member_community.svg`
1851
1851
  } : {
1852
1852
  name: e.name,
1853
1853
  role: e.jobTitle || "",
@@ -1866,9 +1866,9 @@ const rn = 256, Dt = ({ className: e = "", src: t = "", name: n, alt: s, width:
1866
1866
  return "";
1867
1867
  const a = `${e}${o && l ? ` — ${t}` : t}`;
1868
1868
  let i = `${a}${(o || l) && d ? `, ${n}` : n}`;
1869
- return i.length > s && (i = a), i.length > s && (i = Ct(i, s)), i;
1869
+ return i.length > s && (i = a), i.length > s && (i = Ke(i, s)), i;
1870
1870
  };
1871
- const Pt = ({
1871
+ const Ft = ({
1872
1872
  element: e = "div",
1873
1873
  member: t = "community",
1874
1874
  additionalContent: n = !1,
@@ -1876,13 +1876,13 @@ const Pt = ({
1876
1876
  gtmType: o = "member-click",
1877
1877
  className: l = ""
1878
1878
  }) => {
1879
- const d = P(), a = kn(t);
1879
+ const d = F(), a = kn(t);
1880
1880
  a.name || (a.name = d.formatMessage({ id: `member_${typeof t == "string" ? t : "community"}` }));
1881
1881
  const { name: i, url: c, image: u } = a, f = ss(a), p = n && n.createdAt ? Mr(n.createdAt) : !1, h = n && n.createdAt ? Tr(n.createdAt) : "";
1882
- return N.createElement(e, {
1882
+ return A.createElement(e, {
1883
1883
  className: j("member text-medium", l),
1884
1884
  children: /* @__PURE__ */ r.jsxs(
1885
- nt,
1885
+ rt,
1886
1886
  {
1887
1887
  href: c,
1888
1888
  gtmType: o,
@@ -1891,7 +1891,7 @@ const Pt = ({
1891
1891
  _ == null || _.stopPropagation();
1892
1892
  },
1893
1893
  children: [
1894
- /* @__PURE__ */ r.jsx(Dt, { name: i, src: u }),
1894
+ /* @__PURE__ */ r.jsx(Pt, { name: i, src: u }),
1895
1895
  /* @__PURE__ */ r.jsxs("p", { className: "details", children: [
1896
1896
  /* @__PURE__ */ r.jsx("strong", { children: i }),
1897
1897
  n && /* @__PURE__ */ r.jsxs("span", { className: "additional-content", children: [
@@ -1909,17 +1909,17 @@ const sn = {
1909
1909
  small: 24,
1910
1910
  medium: 48
1911
1911
  }, os = ({ element: e = "div", contributors: { total: t, data: n } = { total: void 0, data: [] }, styling: { showText: s, size: o, showGap: l, showPlaceholders: d } = { showText: !0, size: "medium", showGap: !0, showPlaceholders: !1 }, cutoff: a = 2, className: i = "" }) => {
1912
- const c = P();
1913
- return !n || n.length === 0 ? null : N.createElement(
1912
+ const c = F();
1913
+ return !n || n.length === 0 ? null : A.createElement(
1914
1914
  e,
1915
1915
  { className: j("contributors", i, o, { "has-gap": l }), children: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1916
1916
  /* @__PURE__ */ r.jsx("ul", { children: n.map((u, f) => {
1917
1917
  let p, h = "";
1918
1918
  if (f < a) {
1919
- const { name: _ = "", image: v = "" } = kn(u);
1919
+ const { name: _ = "", image: k = "" } = kn(u);
1920
1920
  if (d)
1921
1921
  return /* @__PURE__ */ r.jsx(be, { element: "li", className: "contributor" }, f);
1922
- p = /* @__PURE__ */ r.jsx(Dt, { name: _, src: v, width: sn[o || "medium"], height: sn[o || "medium"] });
1922
+ p = /* @__PURE__ */ r.jsx(Pt, { name: _, src: k, width: sn[o || "medium"], height: sn[o || "medium"] });
1923
1923
  } else if (f === a) {
1924
1924
  const _ = (t || n.length) - a;
1925
1925
  p = /* @__PURE__ */ r.jsxs("small", { className: j({ "large-number": _ > 99 }), children: [
@@ -1929,7 +1929,7 @@ const sn = {
1929
1929
  }
1930
1930
  return p ? /* @__PURE__ */ r.jsx("li", { className: j("contributor", h), children: p }, f) : null;
1931
1931
  }) }),
1932
- s && /* @__PURE__ */ r.jsx("span", { className: "label", children: typeof s == "string" ? s : n.length === 1 ? typeof n[0] == "string" ? c.formatMessage({ id: `member_${n[0]}` }) : Ct(n[0].name || "", 20) : null })
1932
+ s && /* @__PURE__ */ r.jsx("span", { className: "label", children: typeof s == "string" ? s : n.length === 1 ? typeof n[0] == "string" ? c.formatMessage({ id: `member_${n[0]}` }) : Ke(n[0].name || "", 20) : null })
1933
1933
  ] }) }
1934
1934
  );
1935
1935
  }, as = ({ showDevTools: e = !0, children: t }) => {
@@ -1949,12 +1949,12 @@ const sn = {
1949
1949
  e && /* @__PURE__ */ r.jsx(dr, { initialIsOpen: !1 })
1950
1950
  ] });
1951
1951
  };
1952
- var is = Mt({ client: Ge });
1952
+ var is = Nt({ client: Ge });
1953
1953
  function ls(e) {
1954
1954
  var t = e.children, n = e.client, s = e.apiKey, o = e.options, l = qe(function() {
1955
1955
  return n && s && console.warn("[PostHog.js] You have provided both a client and an apiKey to PostHogProvider. The apiKey will be ignored in favour of the client."), n && o && console.warn("[PostHog.js] You have provided both a client and options to PostHogProvider. The options will be ignored in favour of the client."), n || (s && (Ge.__loaded && console.warn("[PostHog.js] was already loaded elsewhere. This may cause issues."), Ge.init(s, o)), Ge);
1956
1956
  }, [n, s]);
1957
- return N.createElement(is.Provider, { value: { client: l } }, t);
1957
+ return A.createElement(is.Provider, { value: { client: l } }, t);
1958
1958
  }
1959
1959
  const cs = ({ children: e, user: t }) => t.isLoading ? /* @__PURE__ */ r.jsx(r.Fragment, {}) : process.env.REACT_APP_PUBLIC_POSTHOG_KEY ? /* @__PURE__ */ r.jsx(
1960
1960
  ls,
@@ -1978,21 +1978,21 @@ const cs = ({ children: e, user: t }) => t.isLoading ? /* @__PURE__ */ r.jsx(r.F
1978
1978
  ...n || {}
1979
1979
  };
1980
1980
  return /* @__PURE__ */ r.jsx(ir, { locale: s, messages: o, children: e });
1981
- }, je = Mt(null), ds = ({ children: e, user: t }) => /* @__PURE__ */ r.jsx(je.Provider, { value: t, children: e }), fo = ({ bootstrap: e, children: t, intl: n }) => {
1982
- const [s, o] = D({ isLoading: !0 });
1981
+ }, je = Nt(null), ds = ({ children: e, user: t }) => /* @__PURE__ */ r.jsx(je.Provider, { value: t, children: e }), po = ({ bootstrap: e, children: t, intl: n }) => {
1982
+ const [s, o] = P({ isLoading: !0 });
1983
1983
  return z(() => {
1984
1984
  e().then((l) => o({ ...l, isLoading: !1 })).catch(() => o({ isLoading: !1 }));
1985
1985
  }, []), /* @__PURE__ */ r.jsx(us, { locale: n == null ? void 0 : n.locale, messages: n == null ? void 0 : n.messages, children: /* @__PURE__ */ r.jsx(ds, { user: s, children: /* @__PURE__ */ r.jsx(as, { children: /* @__PURE__ */ r.jsx(cs, { user: s, children: t }) }) }) });
1986
1986
  };
1987
- const mt = "joinCommunityButton", yn = ({ isMember: e = !1, isShort: t = !1, functions: { join: n, leave: s } = { join: () => {
1987
+ const ft = "joinCommunityButton", yn = ({ isMember: e = !1, isShort: t = !1, functions: { join: n, leave: s } = { join: () => {
1988
1988
  }, leave: () => {
1989
1989
  } } }) => {
1990
- const o = P(), l = ye(je), d = l && typeof l.id == "string", [a, i] = D(e), [c, u] = D(e ? "joined" : "notJoined");
1990
+ const o = F(), l = ye(je), d = l && typeof l.id == "string", [a, i] = P(e), [c, u] = P(e ? "joined" : "notJoined");
1991
1991
  z(() => {
1992
1992
  c === "joining" ? u("joined") : c === "leaving" && u("notJoined");
1993
1993
  }, [a]);
1994
1994
  const f = {}, p = {};
1995
- return a && c !== "leaving" && (f["data-hover-text"] = o.formatMessage({ id: `${mt}_leave` }), f["aria-label"] = o.formatMessage({ id: `${mt}_member_aria` }), p["aria-hidden"] = "true"), /* @__PURE__ */ r.jsx(
1995
+ return a && c !== "leaving" && (f["data-hover-text"] = o.formatMessage({ id: `${ft}_leave` }), f["aria-label"] = o.formatMessage({ id: `${ft}_member_aria` }), p["aria-hidden"] = "true"), /* @__PURE__ */ r.jsx(
1996
1996
  W,
1997
1997
  {
1998
1998
  variant: a ? "secondary" : "primary",
@@ -2005,43 +2005,43 @@ const mt = "joinCommunityButton", yn = ({ isMember: e = !1, isShort: t = !1, fun
2005
2005
  className: j("join-community-button", c, { active: c === "joining" }),
2006
2006
  disabled: !d,
2007
2007
  ...f,
2008
- children: /* @__PURE__ */ r.jsx("span", { className: "text", ...p, children: o.formatMessage({ id: `${mt}${["joining", "leaving"].includes(c) ? `_${c}` : a ? "_member" : t ? "_short" : ""}` }) })
2008
+ children: /* @__PURE__ */ r.jsx("span", { className: "text", ...p, children: o.formatMessage({ id: `${ft}${["joining", "leaving"].includes(c) ? `_${c}` : a ? "_member" : t ? "_short" : ""}` }) })
2009
2009
  }
2010
2010
  );
2011
2011
  };
2012
- const ft = "communityDetails_", po = ({ isMember: e = !1, slug: t, members: { number: n, data: s } = { number: void 0, data: [] }, className: o = "", ...l }) => {
2013
- const d = P(), a = n || (s == null ? void 0 : s.length) || 0;
2012
+ const pt = "communityDetails_", ho = ({ isMember: e = !1, slug: t, members: { number: n, data: s } = { number: void 0, data: [] }, className: o = "", ...l }) => {
2013
+ const d = F(), a = n || (s == null ? void 0 : s.length) || 0;
2014
2014
  return /* @__PURE__ */ r.jsxs("div", { className: j("community-details", o), children: [
2015
- /* @__PURE__ */ r.jsx(Le, {}),
2015
+ /* @__PURE__ */ r.jsx(Ne, {}),
2016
2016
  /* @__PURE__ */ r.jsxs("div", { className: "member-details", children: [
2017
2017
  /* @__PURE__ */ r.jsxs("div", { className: "top", children: [
2018
2018
  /* @__PURE__ */ r.jsxs("h3", { children: [
2019
- d.formatMessage({ id: `${ft}members` }),
2019
+ d.formatMessage({ id: `${pt}members` }),
2020
2020
  /* @__PURE__ */ r.jsx("span", { className: "count", children: a })
2021
2021
  ] }),
2022
- /* @__PURE__ */ r.jsx("p", { className: "text-small", children: /* @__PURE__ */ r.jsx("a", { href: `/communities/${t}/members`, children: d.formatMessage({ id: `${ft}viewAll` }) }) })
2022
+ /* @__PURE__ */ r.jsx("p", { className: "text-small", children: /* @__PURE__ */ r.jsx("a", { href: `/communities/${t}/members`, children: d.formatMessage({ id: `${pt}viewAll` }) }) })
2023
2023
  ] }),
2024
2024
  /* @__PURE__ */ r.jsx(os, { contributors: { total: n, data: s != null && s.length ? s : [{}, {}, {}, {}, {}] }, styling: { size: "medium", showGap: !0, showPlaceholders: a === 0 }, cutoff: 5 })
2025
2025
  ] }),
2026
2026
  /* @__PURE__ */ r.jsx(yn, { isMember: e, ...l }),
2027
- e && /* @__PURE__ */ r.jsx(W, { variant: "primary", icon: { icon: "plus" }, styling: { fullWidth: !0 }, children: d.formatMessage({ id: `${ft}invite` }) })
2027
+ e && /* @__PURE__ */ r.jsx(W, { variant: "primary", icon: { icon: "plus" }, styling: { fullWidth: !0 }, children: d.formatMessage({ id: `${pt}invite` }) })
2028
2028
  ] });
2029
2029
  };
2030
- const ho = ({
2030
+ const go = ({
2031
2031
  breadcrumbs: e,
2032
2032
  cutoff: t = 20,
2033
2033
  className: n = ""
2034
2034
  }) => {
2035
- const s = P();
2035
+ const s = F();
2036
2036
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
2037
- /* @__PURE__ */ r.jsx(ne, { element: "p", children: s.formatMessage({ id: "breadcrumbs_label" }) }),
2037
+ /* @__PURE__ */ r.jsx(re, { element: "p", children: s.formatMessage({ id: "breadcrumbs_label" }) }),
2038
2038
  /* @__PURE__ */ r.jsx("ul", { className: j("breadcrumbs text-small", n), children: e.map(({ text: o, href: l, current: d = !1 }, a) => /* @__PURE__ */ r.jsxs("li", { children: [
2039
- d && /* @__PURE__ */ r.jsx(ne, { element: "span", children: s.formatMessage({ id: "breadcrumbs_currentPage" }) }),
2040
- /* @__PURE__ */ r.jsx(nt, { href: d ? void 0 : l, children: Ct(o, t) })
2039
+ d && /* @__PURE__ */ r.jsx(re, { element: "span", children: s.formatMessage({ id: "breadcrumbs_currentPage" }) }),
2040
+ /* @__PURE__ */ r.jsx(rt, { href: d ? void 0 : l, children: Ke(o, t) })
2041
2041
  ] }, `${window.btoa(o)}_${a}`)) })
2042
2042
  ] });
2043
2043
  };
2044
- const go = ({
2044
+ const _o = ({
2045
2045
  options: e,
2046
2046
  allOption: t = !1,
2047
2047
  allowMultiple: n = !0,
@@ -2049,7 +2049,7 @@ const go = ({
2049
2049
  },
2050
2050
  className: o = ""
2051
2051
  }) => {
2052
- const l = P(), d = t ? [{ id: "all", text: typeof t != "boolean" && t.text || l.formatMessage({ id: "filters_all" }) }, ...e] : e, [a, i] = D(t ? ["all"] : []), c = (u, f) => {
2052
+ const l = F(), d = t ? [{ id: "all", text: typeof t != "boolean" && t.text || l.formatMessage({ id: "filters_all" }) }, ...e] : e, [a, i] = P(t ? ["all"] : []), c = (u, f) => {
2053
2053
  let p = [];
2054
2054
  a.includes(u) ? p = a.filter((h) => h !== u) : u === "all" ? p = ["all"] : n ? p = [...a.filter((h) => h !== "all"), u] : p = [u], i((h) => (s && typeof s == "function" && s({ current: p, previous: h }), p)), f && typeof f == "function" && f();
2055
2055
  };
@@ -2060,8 +2060,8 @@ const go = ({
2060
2060
  "button",
2061
2061
  {
2062
2062
  className: j(u, { selected: a.includes(u) }),
2063
- onClick: (v) => {
2064
- v.preventDefault(), v.stopPropagation(), c(u, h);
2063
+ onClick: (k) => {
2064
+ k.preventDefault(), k.stopPropagation(), c(u, h);
2065
2065
  },
2066
2066
  ..._,
2067
2067
  children: f
@@ -2077,7 +2077,7 @@ const go = ({
2077
2077
  l === "before-lang" ? s += `/${o}` : (s.includes(`/${n}/`) || (s += `/${n}`), s += `/${o}`);
2078
2078
  }), s.includes(`/${n}/`) || (s += `/${n}`), s;
2079
2079
  };
2080
- const pt = { en: "English", es: "Español", fr: "Français", pt: "Português" }, Ue = "languageSwitcher_", _o = ({
2080
+ const ht = { en: "English", es: "Español", fr: "Français", pt: "Português" }, Ue = "languageSwitcher_", xo = ({
2081
2081
  currentLanguage: e,
2082
2082
  isOriginalLanguage: t = !1,
2083
2083
  isHumanTranslation: n = !1,
@@ -2089,26 +2089,26 @@ const pt = { en: "English", es: "Español", fr: "Français", pt: "Português" },
2089
2089
  label: a,
2090
2090
  className: i = ""
2091
2091
  }) => {
2092
- const c = P(), [u, f] = D(e);
2092
+ const c = F(), [u, f] = P(e);
2093
2093
  if (z(() => {
2094
2094
  e !== u && f(e);
2095
- }, [e]), !s || !Object.values(s).some((v) => v && v.post_name))
2095
+ }, [e]), !s || !Object.values(s).some((k) => k && k.post_name))
2096
2096
  return null;
2097
2097
  const h = Object.keys(s), _ = u !== e;
2098
2098
  return /* @__PURE__ */ r.jsxs("div", { className: j("language-switcher text-small", d, i), children: [
2099
2099
  /* @__PURE__ */ r.jsxs("nav", { children: [
2100
2100
  d !== "short" && /* @__PURE__ */ r.jsx("p", { children: a || c.formatMessage({ id: `${Ue}label` }) }),
2101
- /* @__PURE__ */ r.jsx("ul", { children: h.map((v) => {
2102
- if (!pt[v])
2101
+ /* @__PURE__ */ r.jsx("ul", { children: h.map((k) => {
2102
+ if (!ht[k])
2103
2103
  return null;
2104
- let g = { className: v };
2105
- return u === v ? g["aria-label"] = c.formatMessage({ id: `${Ue}selected` }, { language: pt[v] }) : g = {
2104
+ let g = { className: k };
2105
+ return u === k ? g["aria-label"] = c.formatMessage({ id: `${Ue}selected` }, { language: ht[k] }) : g = {
2106
2106
  ...g,
2107
- href: ms(v, l),
2107
+ href: ms(k, l),
2108
2108
  onClick: (E) => {
2109
- E.preventDefault(), E.stopPropagation(), f(v), o(v);
2109
+ E.preventDefault(), E.stopPropagation(), f(k), o(k);
2110
2110
  }
2111
- }, /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(nt, { ...g, fallbackElement: "span", children: pt[v] }) }, v);
2111
+ }, /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(rt, { ...g, fallbackElement: "span", children: ht[k] }) }, k);
2112
2112
  }) }),
2113
2113
  d !== "short" && !_ && /* @__PURE__ */ r.jsx("p", { children: c.formatMessage({ id: `${Ue}translation_${t ? "original" : n ? "human" : "machine"}` }) })
2114
2114
  ] }),
@@ -2117,16 +2117,16 @@ const pt = { en: "English", es: "Español", fr: "Français", pt: "Português" },
2117
2117
  // @ts-ignore
2118
2118
  // `values` are throwing a type error: https://github.com/formatjs/formatjs/issues/3633
2119
2119
  children: c.formatMessage({ id: `${Ue}disclaimer` }, {
2120
- email: Re.support,
2121
- link: (v) => {
2122
- const g = `mailto:${v}`;
2123
- return /* @__PURE__ */ r.jsx("a", { href: g, children: v });
2120
+ email: Oe.support,
2121
+ link: (k) => {
2122
+ const g = `mailto:${k}`;
2123
+ return /* @__PURE__ */ r.jsx("a", { href: g, children: k });
2124
2124
  }
2125
2125
  })
2126
2126
  })
2127
2127
  ] });
2128
2128
  };
2129
- const ht = lr({ locale: "en", messages: At }), fs = ({
2129
+ const gt = lr({ locale: "en", messages: Dt }), fs = ({
2130
2130
  page: e = 1,
2131
2131
  length: t = 0,
2132
2132
  limit: n = 10,
@@ -2134,14 +2134,14 @@ const ht = lr({ locale: "en", messages: At }), fs = ({
2134
2134
  },
2135
2135
  icon: o = !1,
2136
2136
  messages: l = {
2137
- button: ht.formatMessage({ id: "loadMore_button" }),
2138
- endOfFeed: ht.formatMessage({ id: "loadMore_endOfFeed" }),
2139
- error: ht.formatMessage({ id: "loadMore_error" })
2137
+ button: gt.formatMessage({ id: "loadMore_button" }),
2138
+ endOfFeed: gt.formatMessage({ id: "loadMore_endOfFeed" }),
2139
+ error: gt.formatMessage({ id: "loadMore_error" })
2140
2140
  },
2141
2141
  className: d = "",
2142
2142
  gtmContext: a = "LoadMore"
2143
2143
  }) => {
2144
- const [i, c] = D(!1), [u, f] = D(!1);
2144
+ const [i, c] = P(!1), [u, f] = P(!1);
2145
2145
  if (t <= 0 || t < n * e)
2146
2146
  return null;
2147
2147
  const p = async (h) => {
@@ -2170,12 +2170,12 @@ const ht = lr({ locale: "en", messages: At }), fs = ({
2170
2170
  };
2171
2171
  let We = !1;
2172
2172
  const ps = ({ element: e = "div", id: t = "more-menu", options: n, className: s = "" }) => {
2173
- const o = P(), l = Z(null), [d, a] = D(!1), i = (c) => {
2173
+ const o = F(), l = ee(null), [d, a] = P(!1), i = (c) => {
2174
2174
  l.current && c.target instanceof HTMLElement && !l.current.contains(c.target) && a(!1);
2175
2175
  };
2176
2176
  return z(() => (document.addEventListener("click", i, !0), () => {
2177
2177
  document.removeEventListener("click", i, !0);
2178
- })), N.createElement(e, {
2178
+ })), A.createElement(e, {
2179
2179
  ref: l,
2180
2180
  className: j("more-menu text-medium", s),
2181
2181
  children: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
@@ -2193,7 +2193,7 @@ const ps = ({ element: e = "div", id: t = "more-menu", options: n, className: s
2193
2193
  }
2194
2194
  ),
2195
2195
  /* @__PURE__ */ r.jsx("ul", { id: t, hidden: !d, children: n.map(({ href: c, onClick: u, text: f, icon: p, ...h }, _) => {
2196
- const v = {
2196
+ const k = {
2197
2197
  ...h,
2198
2198
  onClick: (g) => {
2199
2199
  a(!1), typeof u == "function" && u(g);
@@ -2207,13 +2207,13 @@ const ps = ({ element: e = "div", id: t = "more-menu", options: n, className: s
2207
2207
  }, 100);
2208
2208
  }
2209
2209
  };
2210
- return c && (v.href = c), /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(
2210
+ return c && (k.href = c), /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(
2211
2211
  W,
2212
2212
  {
2213
2213
  variant: "tertiary",
2214
2214
  size: "medium",
2215
2215
  icon: p ? { icon: p, position: "left" } : !1,
2216
- ...v,
2216
+ ...k,
2217
2217
  children: f
2218
2218
  }
2219
2219
  ) }, `${window.btoa(f)}_${_}`);
@@ -2221,32 +2221,32 @@ const ps = ({ element: e = "div", id: t = "more-menu", options: n, className: s
2221
2221
  ] })
2222
2222
  });
2223
2223
  };
2224
- const jn = ({ variant: e = "default", version: t = "default", className: n = "", ...s }) => /* @__PURE__ */ r.jsx("p", { className: "logo-wrapper", children: /* @__PURE__ */ r.jsx("a", { href: "/home/", className: j("logo", e, t, n), ...s, children: /* @__PURE__ */ r.jsx(ne, { children: /* @__PURE__ */ r.jsx(we, { id: "apolitical" }) }) }) });
2224
+ const jn = ({ variant: e = "default", version: t = "default", className: n = "", ...s }) => /* @__PURE__ */ r.jsx("p", { className: "logo-wrapper", children: /* @__PURE__ */ r.jsx("a", { href: "/home/", className: j("logo", e, t, n), ...s, children: /* @__PURE__ */ r.jsx(re, { children: /* @__PURE__ */ r.jsx(we, { id: "apolitical" }) }) }) });
2225
2225
  const hs = {
2226
2226
  "2-1": 901
2227
- }, xo = ({ layout: e = "2-1", hideOnMobile: t = !1, className: n = "", children: s }) => {
2228
- const o = et(!0);
2227
+ }, vo = ({ layout: e = "2-1", hideOnMobile: t = !1, className: n = "", children: s }) => {
2228
+ const o = tt(!0);
2229
2229
  let l = s;
2230
- return N.Children.count(s) === 1 && (l = N.Children.toArray(s)[0], l.props && (l = l.props.children)), /* @__PURE__ */ r.jsx("section", { className: j("columns", `layout-${e}`, n), children: N.Children.map(l, (d, a) => t !== !1 && a === t && o && o < hs[e] ? null : d) });
2230
+ return A.Children.count(s) === 1 && (l = A.Children.toArray(s)[0], l.props && (l = l.props.children)), /* @__PURE__ */ r.jsx("section", { className: j("columns", `layout-${e}`, n), children: A.Children.map(l, (d, a) => t !== !1 && a === t && o && o < hs[e] ? null : d) });
2231
2231
  };
2232
- const gt = "cookieBanner_", _t = ["apol-cookie-banner", "apolitical-performance-cookie-consent", "functional-cookie-consent"], xt = new Date(Date.now() + 12 * 30 * 24 * 60 * 60 * 1e3), gs = () => {
2233
- const e = P(), [t, n, s] = mr(_t), [o, l] = D(!t["apol-cookie-banner"]), d = () => {
2234
- _t.forEach((u) => {
2232
+ const _t = "cookieBanner_", xt = ["apol-cookie-banner", "apolitical-performance-cookie-consent", "functional-cookie-consent"], vt = new Date(Date.now() + 12 * 30 * 24 * 60 * 60 * 1e3), gs = () => {
2233
+ const e = F(), [t, n, s] = mr(xt), [o, l] = P(!t["apol-cookie-banner"]), d = () => {
2234
+ xt.forEach((u) => {
2235
2235
  n(u, !0, {
2236
2236
  path: "/",
2237
- expires: xt,
2237
+ expires: vt,
2238
2238
  domain: u === "apolitical-performance-cookie-consent" ? ".apolitical.co" : void 0
2239
2239
  });
2240
2240
  }), l(!1), window.location.reload();
2241
2241
  }, a = () => {
2242
2242
  n("apol-cookie-banner", !0, {
2243
2243
  path: "/",
2244
- expires: xt
2245
- }), _t.forEach((u) => {
2244
+ expires: vt
2245
+ }), xt.forEach((u) => {
2246
2246
  if (u === "apol-cookie-banner") {
2247
2247
  n(u, !0, {
2248
2248
  path: "/",
2249
- expires: xt
2249
+ expires: vt
2250
2250
  });
2251
2251
  return;
2252
2252
  }
@@ -2268,12 +2268,12 @@ const gt = "cookieBanner_", _t = ["apol-cookie-banner", "apolitical-performance-
2268
2268
  className: "gtm-trackable",
2269
2269
  "data-gtm-event-context": "cookie-banner",
2270
2270
  "data-gtm-event-type": `cookie-${u.gtmType}-click`,
2271
- children: e.formatMessage({ id: `${gt}buttons_${u.id}` })
2271
+ children: e.formatMessage({ id: `${_t}buttons_${u.id}` })
2272
2272
  });
2273
2273
  }), /* @__PURE__ */ r.jsxs("aside", { id: "cookie-banner", className: "text-medium", children: [
2274
- /* @__PURE__ */ r.jsx("h6", { children: e.formatMessage({ id: `${gt}title` }) }),
2275
- /* @__PURE__ */ r.jsx("p", { children: e.formatMessage({ id: `${gt}text` }) }),
2276
- /* @__PURE__ */ r.jsx(tt, { buttons: c })
2274
+ /* @__PURE__ */ r.jsx("h6", { children: e.formatMessage({ id: `${_t}title` }) }),
2275
+ /* @__PURE__ */ r.jsx("p", { children: e.formatMessage({ id: `${_t}text` }) }),
2276
+ /* @__PURE__ */ r.jsx(nt, { buttons: c })
2277
2277
  ] });
2278
2278
  }, ve = {
2279
2279
  platform: {
@@ -2340,11 +2340,11 @@ const gt = "cookieBanner_", _t = ["apol-cookie-banner", "apolitical-performance-
2340
2340
  text: {
2341
2341
  order: ["dataProtection", "euDataProtection"],
2342
2342
  dataProtection: {
2343
- email: Re["data-protection"].default,
2343
+ email: Oe["data-protection"].default,
2344
2344
  gtmType: "email-dpo-link"
2345
2345
  },
2346
2346
  euDataProtection: {
2347
- email: Re["data-protection"].eu,
2347
+ email: Oe["data-protection"].eu,
2348
2348
  gtmType: "email-eu-dpo-link"
2349
2349
  }
2350
2350
  }
@@ -2356,10 +2356,10 @@ const gt = "cookieBanner_", _t = ["apol-cookie-banner", "apolitical-performance-
2356
2356
  registered: { address: !0 },
2357
2357
  berlin: { address: !0 },
2358
2358
  support: {
2359
- email: Re.support,
2359
+ email: Oe.support,
2360
2360
  gtmType: "concierge-email-click"
2361
2361
  },
2362
- business: { email: Re.general, gtmType: "hello-email-click" }
2362
+ business: { email: Oe.general, gtmType: "hello-email-click" }
2363
2363
  }
2364
2364
  },
2365
2365
  social: {
@@ -2372,7 +2372,7 @@ const gt = "cookieBanner_", _t = ["apol-cookie-banner", "apolitical-performance-
2372
2372
  const Me = "footer_", Je = "SiteFooter", on = ({ group: e }) => {
2373
2373
  const t = ve[e].order || [];
2374
2374
  let n = !1;
2375
- return "text" in ve[e] && (n = ve[e].text), /* @__PURE__ */ r.jsxs(Zt, { children: [
2375
+ return "text" in ve[e] && (n = ve[e].text), /* @__PURE__ */ r.jsxs(Et, { children: [
2376
2376
  /* @__PURE__ */ r.jsx("p", { className: "pre-title", children: /* @__PURE__ */ r.jsx(we, { id: `${Me}${e}` }) }),
2377
2377
  Array.isArray(t) && t.length > 0 && /* @__PURE__ */ r.jsx("ul", { className: "text-medium", children: t.map((s) => {
2378
2378
  if (["order", "child", "text"].includes(s))
@@ -2390,7 +2390,7 @@ const Me = "footer_", Je = "SiteFooter", on = ({ group: e }) => {
2390
2390
  }
2391
2391
  ) }, `${e}_${s}`);
2392
2392
  }) }),
2393
- typeof n != "boolean" && "order" in n && Array.isArray(n.order) && /* @__PURE__ */ r.jsx("dl", { className: "text-medium", children: n.order.map((s) => /* @__PURE__ */ r.jsxs(Zt, { children: [
2393
+ typeof n != "boolean" && "order" in n && Array.isArray(n.order) && /* @__PURE__ */ r.jsx("dl", { className: "text-medium", children: n.order.map((s) => /* @__PURE__ */ r.jsxs(Et, { children: [
2394
2394
  /* @__PURE__ */ r.jsx("dt", { children: /* @__PURE__ */ r.jsx(we, { id: `${Me}${e}_${s}` }) }),
2395
2395
  /* @__PURE__ */ r.jsxs("dd", { children: [
2396
2396
  typeof n != "boolean" && n[s].address && /* @__PURE__ */ r.jsx("address", { children: /* @__PURE__ */ r.jsx(we, { id: `${Me}${e}_${s}_address`, values: { br: /* @__PURE__ */ r.jsx("br", {}) } }) }),
@@ -2443,11 +2443,11 @@ const Me = "footer_", Je = "SiteFooter", on = ({ group: e }) => {
2443
2443
  /* @__PURE__ */ r.jsx("small", { children: /* @__PURE__ */ r.jsx(we, { id: `${Me}copyright`, values: { currentYear: (/* @__PURE__ */ new Date()).getFullYear() } }) })
2444
2444
  ] })
2445
2445
  ] }) });
2446
- const ze = "emailHelperTextBox_", vo = ({ type: e, email: t, redirectPath: n, resendVerificationCode: s }) => {
2447
- const o = P(), [l, d] = D({ path: `${ze}default`, type: "default", link: {}, mail: {}, error: "" }), [a, i] = D(!1), c = Ee(
2446
+ const ze = "emailHelperTextBox_", bo = ({ type: e, email: t, redirectPath: n, resendVerificationCode: s }) => {
2447
+ const o = F(), [l, d] = P({ path: `${ze}default`, type: "default", link: {}, mail: {}, error: "" }), [a, i] = P(!1), c = Ee(
2448
2448
  (h) => {
2449
2449
  h.preventDefault(), h.stopPropagation();
2450
- const _ = (v) => {
2450
+ const _ = (k) => {
2451
2451
  d({
2452
2452
  path: `${ze}error_verificationFailedToSend`,
2453
2453
  type: "error",
@@ -2465,7 +2465,7 @@ const ze = "emailHelperTextBox_", vo = ({ type: e, email: t, redirectPath: n, re
2465
2465
  "data-gtm-event-context": "ErrorVerifyingBox",
2466
2466
  "data-gtm-event-type": "email-concierge-click"
2467
2467
  },
2468
- error: v
2468
+ error: k
2469
2469
  });
2470
2470
  };
2471
2471
  if (typeof s != "function") {
@@ -2474,8 +2474,8 @@ const ze = "emailHelperTextBox_", vo = ({ type: e, email: t, redirectPath: n, re
2474
2474
  }
2475
2475
  i(!0), s(t).then(() => {
2476
2476
  localStorage.setItem("email", t), window.location.href = n || "/signup/verify-email";
2477
- }).catch((v) => {
2478
- _(v.message);
2477
+ }).catch((k) => {
2478
+ _(k.message);
2479
2479
  }).finally(() => {
2480
2480
  i(!1);
2481
2481
  });
@@ -2485,13 +2485,13 @@ const ze = "emailHelperTextBox_", vo = ({ type: e, email: t, redirectPath: n, re
2485
2485
  );
2486
2486
  z(
2487
2487
  () => {
2488
- let h = ze, _ = "default", v = {}, g = {};
2488
+ let h = ze, _ = "default", k = {}, g = {};
2489
2489
  switch (e) {
2490
2490
  case "gov":
2491
2491
  h += "autoApproved", _ = "success";
2492
2492
  break;
2493
2493
  case "nonGov":
2494
- h += "unrecognisedEmail", _ = "error", v = {
2494
+ h += "unrecognisedEmail", _ = "error", k = {
2495
2495
  href: "https://about.apolitical.co/who-can-join-the-community",
2496
2496
  "data-gtm-event-context": "NonGovEmailHelperTextBox",
2497
2497
  "data-gtm-event-type": "LearnMoreClick"
@@ -2506,7 +2506,7 @@ const ze = "emailHelperTextBox_", vo = ({ type: e, email: t, redirectPath: n, re
2506
2506
  };
2507
2507
  break;
2508
2508
  case "verify":
2509
- h += "emailUnverified", _ = "error", v = {
2509
+ h += "emailUnverified", _ = "error", k = {
2510
2510
  href: "#",
2511
2511
  "data-gtm-event-context": "VerifyEmailBox",
2512
2512
  "data-gtm-event-type": "SendEmailClick",
@@ -2516,7 +2516,7 @@ const ze = "emailHelperTextBox_", vo = ({ type: e, email: t, redirectPath: n, re
2516
2516
  };
2517
2517
  break;
2518
2518
  case "exists":
2519
- h += "emailAlreadyExists", _ = "error", v = {
2519
+ h += "emailAlreadyExists", _ = "error", k = {
2520
2520
  href: "/user-onboarding/login",
2521
2521
  "data-gtm-event-context": "EmailExistsBox",
2522
2522
  "data-gtm-event-type": "login-click"
@@ -2528,14 +2528,14 @@ const ze = "emailHelperTextBox_", vo = ({ type: e, email: t, redirectPath: n, re
2528
2528
  };
2529
2529
  break;
2530
2530
  default:
2531
- h += "default", v = {
2531
+ h += "default", k = {
2532
2532
  href: "https://about.apolitical.co/who-can-join-the-community",
2533
2533
  "data-gtm-event-context": "DefaultEmailHelperTextBox",
2534
2534
  "data-gtm-event-type": "LearnMoreClick"
2535
2535
  };
2536
2536
  break;
2537
2537
  }
2538
- d({ ...l, path: h, type: _, link: v, mail: g });
2538
+ d({ ...l, path: h, type: _, link: k, mail: g });
2539
2539
  },
2540
2540
  /* eslint-disable react-hooks/exhaustive-deps */
2541
2541
  [e]
@@ -2570,24 +2570,24 @@ const Ve = "passwordRules_", Sn = "isMoreThanEightCharacters", $n = "includesNum
2570
2570
  [$n]: "numberSymbol",
2571
2571
  [Tn]: "lowercaseUppercase"
2572
2572
  }, xs = ({ matchingRules: e = { isMoreThanEightCharacters: !1, includesNumberAndSymbol: !1, includesLowerAndUppercase: !1 }, className: t = "" }) => {
2573
- const n = P();
2573
+ const n = F();
2574
2574
  return /* @__PURE__ */ r.jsxs("aside", { className: j("password-rules", t), children: [
2575
2575
  /* @__PURE__ */ r.jsx("small", { children: n.formatMessage({ id: `${Ve}intro` }) }),
2576
2576
  /* @__PURE__ */ r.jsx("ul", { children: [Sn, $n, Tn].map((s) => /* @__PURE__ */ r.jsxs("li", { className: j({ matches: e[s] }), children: [
2577
- /* @__PURE__ */ r.jsxs(ne, { children: [
2577
+ /* @__PURE__ */ r.jsxs(re, { children: [
2578
2578
  n.formatMessage({ id: `${Ve}rule_label` }),
2579
2579
  " "
2580
2580
  ] }),
2581
2581
  /* @__PURE__ */ r.jsx("span", { children: n.formatMessage({ id: `${Ve}rule_${_s[s]}` }) }),
2582
- !e[s] && /* @__PURE__ */ r.jsxs(ne, { element: "strong", children: [
2582
+ !e[s] && /* @__PURE__ */ r.jsxs(re, { element: "strong", children: [
2583
2583
  " ",
2584
2584
  " ",
2585
2585
  n.formatMessage({ id: `${Ve}notMet` })
2586
2586
  ] })
2587
2587
  ] }, `rule-${s}`)) })
2588
2588
  ] });
2589
- }, bo = Ne(xs);
2590
- const wo = ({
2589
+ }, wo = Ae(xs);
2590
+ const ko = ({
2591
2591
  text: e = {},
2592
2592
  topRating: t = 5,
2593
2593
  functions: { createRating: n = () => null, updateRating: s = () => {
@@ -2596,19 +2596,19 @@ const wo = ({
2596
2596
  className: l = "",
2597
2597
  hasLoaded: d = !1
2598
2598
  }) => {
2599
- const a = P(), [i, c] = D({ setUp: !1, id: null, rating: null, disabled: !0 }), u = async () => {
2599
+ const a = F(), [i, c] = P({ setUp: !1, id: null, rating: null, disabled: !0 }), u = async () => {
2600
2600
  try {
2601
2601
  const E = await n();
2602
- c((x) => ({ ...x, setUp: !0, id: E && E.id, disabled: !1 }));
2602
+ c((b) => ({ ...b, setUp: !0, id: E && E.id, disabled: !1 }));
2603
2603
  } catch (E) {
2604
- c((x) => ({ ...x, setUp: !0, disabled: !0 })), o(E);
2604
+ c((b) => ({ ...b, setUp: !0, disabled: !0 })), o(E);
2605
2605
  }
2606
2606
  };
2607
2607
  if (z(() => {
2608
2608
  d && !i.setUp && u();
2609
2609
  }, [d]), !d)
2610
2610
  return /* @__PURE__ */ r.jsx(be, { className: "rating-placeholder" });
2611
- const { id: f, rating: p, disabled: h } = i, _ = "ratings_", v = {
2611
+ const { id: f, rating: p, disabled: h } = i, _ = "ratings_", k = {
2612
2612
  text: a.formatMessage({ id: `${_}text` }),
2613
2613
  low: a.formatMessage({ id: `${_}low` }),
2614
2614
  high: a.formatMessage({ id: `${_}high` }),
@@ -2617,33 +2617,33 @@ const wo = ({
2617
2617
  }, g = async (E) => {
2618
2618
  if (!(!f || h))
2619
2619
  try {
2620
- c((x) => ({ ...x, rating: E, disabled: !0 })), await s({ id: f, value: E });
2621
- } catch (x) {
2622
- c(($) => ({ ...$, rating: null })), o(x);
2620
+ c((b) => ({ ...b, rating: E, disabled: !0 })), await s({ id: f, value: E });
2621
+ } catch (b) {
2622
+ c((S) => ({ ...S, rating: null })), o(b);
2623
2623
  } finally {
2624
- c((x) => ({ ...x, disabled: !1 }));
2624
+ c((b) => ({ ...b, disabled: !1 }));
2625
2625
  }
2626
2626
  };
2627
2627
  return /* @__PURE__ */ r.jsxs("div", { className: j("rating", l), children: [
2628
- /* @__PURE__ */ r.jsx("span", { className: "label", children: v[p ? "success" : "text"] }),
2628
+ /* @__PURE__ */ r.jsx("span", { className: "label", children: k[p ? "success" : "text"] }),
2629
2629
  /* @__PURE__ */ r.jsx("ol", { children: Array.from(new Array(t).keys()).map((E) => {
2630
- const x = E + 1;
2631
- return /* @__PURE__ */ r.jsx("li", { className: j({ selected: p && x <= p }), children: /* @__PURE__ */ r.jsx(
2630
+ const b = E + 1;
2631
+ return /* @__PURE__ */ r.jsx("li", { className: j({ selected: p && b <= p }), children: /* @__PURE__ */ r.jsx(
2632
2632
  W,
2633
2633
  {
2634
2634
  variant: "tertiary",
2635
2635
  size: "small",
2636
- icon: { icon: `star${!p || x > p ? "_empty" : ""}`, position: "left", hover: "star" },
2636
+ icon: { icon: `star${!p || b > p ? "_empty" : ""}`, position: "left", hover: "star" },
2637
2637
  screenreaderText: `${a.formatMessage(
2638
2638
  { id: `${_}stars` },
2639
- { number: x, total: t }
2640
- )}${x === 1 || x === t ? ` - ${v[x === 1 ? "low" : "high"]}` : ""}`,
2641
- onClick: ($) => {
2642
- $.preventDefault(), $.stopPropagation(), g(x);
2639
+ { number: b, total: t }
2640
+ )}${b === 1 || b === t ? ` - ${k[b === 1 ? "low" : "high"]}` : ""}`,
2641
+ onClick: (S) => {
2642
+ S.preventDefault(), S.stopPropagation(), g(b);
2643
2643
  },
2644
2644
  disabled: h
2645
2645
  }
2646
- ) }, `rating-${x}`);
2646
+ ) }, `rating-${b}`);
2647
2647
  }) })
2648
2648
  ] });
2649
2649
  };
@@ -2655,7 +2655,7 @@ const vs = ({
2655
2655
  gtmContext: o = "search-bar",
2656
2656
  gtmEvent: l = "form-submission"
2657
2657
  }) => {
2658
- const { searchIsOpen: d = !0, isDesktopVersion: a = !1 } = n || {}, i = P(), c = Z(null);
2658
+ const { searchIsOpen: d = !0, isDesktopVersion: a = !1 } = n || {}, i = F(), c = ee(null);
2659
2659
  Ce(() => {
2660
2660
  !n || a || !d || c.current && c.current.focus();
2661
2661
  }, [d]);
@@ -2670,7 +2670,7 @@ const vs = ({
2670
2670
  "data-gtm-event-context": o,
2671
2671
  "data-gtm-event-type": l,
2672
2672
  children: /* @__PURE__ */ r.jsx("fieldset", { id: `${e}-form`, hidden: n ? !d : !1, role: "search", children: /* @__PURE__ */ r.jsxs("p", { children: [
2673
- /* @__PURE__ */ r.jsx(ne, { element: "label", htmlFor: e, children: i.formatMessage({ id: "search_label" }) }),
2673
+ /* @__PURE__ */ r.jsx(re, { element: "label", htmlFor: e, children: i.formatMessage({ id: "search_label" }) }),
2674
2674
  /* @__PURE__ */ r.jsx(
2675
2675
  "input",
2676
2676
  {
@@ -2692,10 +2692,10 @@ const vs = ({
2692
2692
  onClick: (f) => {
2693
2693
  f.preventDefault(), f.stopPropagation(), c.current && c.current.value && (c.current.value = "");
2694
2694
  },
2695
- children: /* @__PURE__ */ r.jsx(ne, { children: i.formatMessage({ id: "search_clear" }) })
2695
+ children: /* @__PURE__ */ r.jsx(re, { children: i.formatMessage({ id: "search_clear" }) })
2696
2696
  }
2697
2697
  ),
2698
- /* @__PURE__ */ r.jsx("button", { className: "search", onClick: u, children: /* @__PURE__ */ r.jsx(ne, { children: i.formatMessage({ id: "search_cta" }) }) })
2698
+ /* @__PURE__ */ r.jsx("button", { className: "search", onClick: u, children: /* @__PURE__ */ r.jsx(re, { children: i.formatMessage({ id: "search_cta" }) }) })
2699
2699
  ] }) })
2700
2700
  }
2701
2701
  );
@@ -2713,26 +2713,26 @@ const bs = ({
2713
2713
  initialFormStatus: c = "NOT_SUBMITTED"
2714
2714
  /* NOT_SUBMITTED */
2715
2715
  }) => {
2716
- const [u, f] = D([]), [p, h] = D(!0), [_, v] = D(c), { formatMessage: g } = P(), E = async (T) => {
2716
+ const [u, f] = P([]), [p, h] = P(!0), [_, k] = P(c), { formatMessage: g } = F(), E = async (T) => {
2717
2717
  T.preventDefault();
2718
2718
  try {
2719
- await i(u), f([]), v(
2719
+ await i(u), f([]), k(
2720
2720
  "SUCCESS"
2721
2721
  /* SUCCESS */
2722
2722
  );
2723
2723
  } catch (M) {
2724
- v(
2724
+ k(
2725
2725
  "ERROR"
2726
2726
  /* ERROR */
2727
2727
  ), a(M);
2728
2728
  }
2729
- }, x = (T) => {
2730
- T.preventDefault(), v(
2729
+ }, b = (T) => {
2730
+ T.preventDefault(), k(
2731
2731
  "NOT_SUBMITTED"
2732
2732
  /* NOT_SUBMITTED */
2733
2733
  ), h(!0), f([]);
2734
- }, $ = (T) => {
2735
- T.preventDefault(), d(), v(
2734
+ }, S = (T) => {
2735
+ T.preventDefault(), d(), k(
2736
2736
  "CLOSED"
2737
2737
  /* CLOSED */
2738
2738
  );
@@ -2742,11 +2742,11 @@ const bs = ({
2742
2742
  " ",
2743
2743
  g({ id: "inviteForm_error" })
2744
2744
  ] }) }),
2745
- /* @__PURE__ */ r.jsx(Le, {}),
2745
+ /* @__PURE__ */ r.jsx(Ne, {}),
2746
2746
  /* @__PURE__ */ r.jsx("div", { className: "footer", children: _ === "SUCCESS" ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
2747
- /* @__PURE__ */ r.jsx(W, { variant: "secondary", onClick: x, children: g({ id: "inviteForm_ctaSendMoreInvites" }) }),
2748
- /* @__PURE__ */ r.jsx(W, { onClick: $, children: g({ id: "inviteForm_ctaDone" }) })
2749
- ] }) : /* @__PURE__ */ r.jsx(W, { onClick: x, children: g({ id: "inviteForm_ctaTryAgain" }) }) })
2747
+ /* @__PURE__ */ r.jsx(W, { variant: "secondary", onClick: b, children: g({ id: "inviteForm_ctaSendMoreInvites" }) }),
2748
+ /* @__PURE__ */ r.jsx(W, { onClick: S, children: g({ id: "inviteForm_ctaDone" }) })
2749
+ ] }) : /* @__PURE__ */ r.jsx(W, { onClick: b, children: g({ id: "inviteForm_ctaTryAgain" }) }) })
2750
2750
  ] }) : /* @__PURE__ */ r.jsxs(
2751
2751
  "form",
2752
2752
  {
@@ -2787,7 +2787,7 @@ const bs = ({
2787
2787
  }
2788
2788
  )
2789
2789
  ] }),
2790
- /* @__PURE__ */ r.jsx(Le, {}),
2790
+ /* @__PURE__ */ r.jsx(Ne, {}),
2791
2791
  /* @__PURE__ */ r.jsx("fieldset", { className: "footer", children: /* @__PURE__ */ r.jsx(W, { className: "sendEmailsButton", disabled: p, children: n }) })
2792
2792
  ]
2793
2793
  }
@@ -2977,7 +2977,7 @@ const bs = ({
2977
2977
  },
2978
2978
  doTrack: l = null
2979
2979
  }) => {
2980
- const d = P(), a = un(Xe, e);
2980
+ const d = F(), a = un(Xe, e);
2981
2981
  if (!a || a.onlyShow && (a.onlyShow === "logged-in" && !t || a.onlyShow === "logged-out" && t))
2982
2982
  return null;
2983
2983
  const i = "doTrack" in a, c = l === null ? i ? a.doTrack : !0 : l, u = e.includes("buttons.");
@@ -2985,10 +2985,10 @@ const bs = ({
2985
2985
  a.hasVariantText && (f += `_logged${t ? "In" : "Out"}`);
2986
2986
  let p = !1;
2987
2987
  if (a.href) {
2988
- let x = a.gtmType || `${e}-click`;
2989
- if (x.includes(".")) {
2990
- const $ = x.split("."), T = $[$.length - 2];
2991
- x = `${T === "topics" ? `${T}-` : ""}${$[$.length - 1]}`;
2988
+ let b = a.gtmType || `${e}-click`;
2989
+ if (b.includes(".")) {
2990
+ const S = b.split("."), T = S[S.length - 2];
2991
+ b = `${T === "topics" ? `${T}-` : ""}${S[S.length - 1]}`;
2992
2992
  }
2993
2993
  p = {
2994
2994
  href: a.href,
@@ -2996,7 +2996,7 @@ const bs = ({
2996
2996
  }, c && (p = {
2997
2997
  ...p,
2998
2998
  className: "gtm-trackable",
2999
- "data-gtm-event-type": x,
2999
+ "data-gtm-event-type": b,
3000
3000
  "data-gtm-event-context": "HeaderButtons"
3001
3001
  }), u && (p = {
3002
3002
  ...p,
@@ -3005,52 +3005,52 @@ const bs = ({
3005
3005
  ...a.props || {}
3006
3006
  });
3007
3007
  }
3008
- const h = a.order && a.order[0] && a[a.order[0]], _ = h && a[a.order[0]].order, v = p && window.location.pathname === a.href;
3008
+ const h = a.order && a.order[0] && a[a.order[0]], _ = h && a[a.order[0]].order, k = p && window.location.pathname === a.href;
3009
3009
  let g = {}, E = {};
3010
3010
  if (h) {
3011
- const x = a.menuId || e, $ = {
3012
- onClick: (T) => I.events.onClick(T, { id: x, callback: o, isOpen: s[x] }),
3013
- onFocus: () => I.events.onFocus({ id: x }),
3014
- onBlur: () => I.events.onBlur({ id: x, callback: o }),
3015
- onMouseLeave: () => I.events.onBlur({ id: x, callback: o }),
3016
- onMouseEnter: () => I.events.onMouseEnter({ id: x, callback: o })
3011
+ const b = a.menuId || e, S = {
3012
+ onClick: (T) => I.events.onClick(T, { id: b, callback: o, isOpen: s[b] }),
3013
+ onFocus: () => I.events.onFocus({ id: b }),
3014
+ onBlur: () => I.events.onBlur({ id: b, callback: o }),
3015
+ onMouseLeave: () => I.events.onBlur({ id: b, callback: o }),
3016
+ onMouseEnter: () => I.events.onMouseEnter({ id: b, callback: o })
3017
3017
  };
3018
3018
  n && (_ && (g = {
3019
- ...$,
3019
+ ...S,
3020
3020
  onKeyPress: (T) => {
3021
- T.key === "Enter" && I.events.onClick(T, { id: x, callback: o, isOpen: s[x] });
3021
+ T.key === "Enter" && I.events.onClick(T, { id: b, callback: o, isOpen: s[b] });
3022
3022
  },
3023
3023
  tabIndex: "0",
3024
3024
  // Add a `tabIndex` so keyboard users can focus on the `li`
3025
3025
  "aria-haspopup": !0,
3026
- "aria-expanded": s[x],
3027
- "aria-controls": x
3028
- }), E = { hidden: x in s ? !s[x] : !0 }), _ || (E = {
3026
+ "aria-expanded": s[b],
3027
+ "aria-controls": b
3028
+ }), E = { hidden: b in s ? !s[b] : !0 }), _ || (E = {
3029
3029
  ...E,
3030
- ...$
3030
+ ...S
3031
3031
  });
3032
3032
  }
3033
- return /* @__PURE__ */ r.jsxs("li", { className: j({ [a.className]: a.className, "has-submenu": h, parent: _, active: v }), role: "none", ...g, children: [
3034
- p ? N.createElement(u ? W : "a", p, d.formatMessage({ id: f })) : d.formatMessage({ id: f }),
3035
- a.order && /* @__PURE__ */ r.jsx("ul", { ...E, children: a.order.map((x) => {
3036
- if (!a[x])
3033
+ return /* @__PURE__ */ r.jsxs("li", { className: j({ [a.className]: a.className, "has-submenu": h, parent: _, active: k }), role: "none", ...g, children: [
3034
+ p ? A.createElement(u ? W : "a", p, d.formatMessage({ id: f })) : d.formatMessage({ id: f }),
3035
+ a.order && /* @__PURE__ */ r.jsx("ul", { ...E, children: a.order.map((b) => {
3036
+ if (!a[b])
3037
3037
  return null;
3038
- const $ = {
3038
+ const S = {
3039
3039
  isLoggedIn: t,
3040
3040
  isDesktopVersion: n,
3041
3041
  menus: s,
3042
3042
  callback: o,
3043
3043
  doTrack: i ? c : null
3044
3044
  };
3045
- return a[x].order ? /* @__PURE__ */ r.jsxs("li", { className: j({ [a[x].className]: a[x].className }), children: [
3046
- d.formatMessage({ id: `${f}_${x}` }),
3047
- /* @__PURE__ */ r.jsx("ul", { children: a[x].order.map((T) => /* @__PURE__ */ r.jsx(Ze, { id: `${e}.${x}.${T}`, ...$ }, T)) })
3048
- ] }, x) : /* @__PURE__ */ r.jsx(Ze, { id: `${e}.${x}`, ...$ }, x);
3045
+ return a[b].order ? /* @__PURE__ */ r.jsxs("li", { className: j({ [a[b].className]: a[b].className }), children: [
3046
+ d.formatMessage({ id: `${f}_${b}` }),
3047
+ /* @__PURE__ */ r.jsx("ul", { children: a[b].order.map((T) => /* @__PURE__ */ r.jsx(Ze, { id: `${e}.${b}.${T}`, ...S }, T)) })
3048
+ ] }, b) : /* @__PURE__ */ r.jsx(Ze, { id: `${e}.${b}`, ...S }, b);
3049
3049
  }) })
3050
3050
  ] }, e);
3051
3051
  };
3052
3052
  const ws = { height: 67, height_desktop: 83 }, Mn = () => {
3053
- const e = P(), t = ye(je), n = et(!0, !0), s = t && typeof t.id == "string", o = qe(
3053
+ const e = F(), t = ye(je), n = tt(!0, !0), s = t && typeof t.id == "string", o = qe(
3054
3054
  () => I.getIsDesktopVersion(s, n),
3055
3055
  [s, n]
3056
3056
  ), [l, d] = rr($r, {
@@ -3074,7 +3074,7 @@ const ws = { height: 67, height_desktop: 83 }, Mn = () => {
3074
3074
  });
3075
3075
  const u = (p, h) => {
3076
3076
  I.handleMenus({ id: p, value: h, menus: i, dispatch: d });
3077
- }, f = Z(null);
3077
+ }, f = ee(null);
3078
3078
  return Ce(() => {
3079
3079
  i.navigation && I.autoFocus({
3080
3080
  menu: "navigation",
@@ -3093,7 +3093,7 @@ const ws = { height: 67, height_desktop: 83 }, Mn = () => {
3093
3093
  });
3094
3094
  }, [i.account]), t && t.isLoading ? null : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
3095
3095
  /* @__PURE__ */ r.jsxs("nav", { id: "header", className: j({ "logged-in": s, "logged-out": !s, visible: a }), children: [
3096
- /* @__PURE__ */ r.jsx(ne, { element: "a", href: "#content-of-page", children: e.formatMessage({ id: "header_skip" }) }),
3096
+ /* @__PURE__ */ r.jsx(re, { element: "a", href: "#content-of-page", children: e.formatMessage({ id: "header_skip" }) }),
3097
3097
  /* @__PURE__ */ r.jsx(jn, {}),
3098
3098
  !o.navigation && /* @__PURE__ */ r.jsx(
3099
3099
  "button",
@@ -3107,7 +3107,7 @@ const ws = { height: 67, height_desktop: 83 }, Mn = () => {
3107
3107
  "aria-haspopup": "true",
3108
3108
  "aria-expanded": i.navigation,
3109
3109
  "aria-controls": "navigation",
3110
- children: /* @__PURE__ */ r.jsx(ne, { children: e.formatMessage({ id: `header_menu_${i.navigation ? "hide" : "show"}` }) })
3110
+ children: /* @__PURE__ */ r.jsx(re, { children: e.formatMessage({ id: `header_menu_${i.navigation ? "hide" : "show"}` }) })
3111
3111
  }
3112
3112
  ),
3113
3113
  /* @__PURE__ */ r.jsx(
@@ -3141,7 +3141,7 @@ const ws = { height: 67, height_desktop: 83 }, Mn = () => {
3141
3141
  "aria-haspopup": "true",
3142
3142
  "aria-expanded": i.search,
3143
3143
  "aria-controls": "search-form",
3144
- children: /* @__PURE__ */ r.jsx(ne, { children: e.formatMessage({ id: `header_search_${i.search ? "hide" : "show"}` }) })
3144
+ children: /* @__PURE__ */ r.jsx(re, { children: e.formatMessage({ id: `header_search_${i.search ? "hide" : "show"}` }) })
3145
3145
  }
3146
3146
  ),
3147
3147
  /* @__PURE__ */ r.jsx(
@@ -3164,8 +3164,8 @@ const ws = { height: 67, height_desktop: 83 }, Mn = () => {
3164
3164
  "aria-expanded": i.account,
3165
3165
  "aria-controls": "navigation",
3166
3166
  children: [
3167
- /* @__PURE__ */ r.jsx(ne, { children: e.formatMessage({ id: `header_account_${i.account ? "hide" : "show"}` }) }),
3168
- /* @__PURE__ */ r.jsx(Dt, { name: t && t.name || "", src: t && t.image && t.image.thumbnail || "" })
3167
+ /* @__PURE__ */ r.jsx(re, { children: e.formatMessage({ id: `header_account_${i.account ? "hide" : "show"}` }) }),
3168
+ /* @__PURE__ */ r.jsx(Pt, { name: t && t.name || "", src: t && t.image && t.image.thumbnail || "" })
3169
3169
  ]
3170
3170
  }
3171
3171
  ) : /* @__PURE__ */ r.jsx("ul", { className: "sign-in-buttons", children: Xe.buttons.order.map((p) => /* @__PURE__ */ r.jsx(Ze, { id: `buttons.${p}` }, p)) })
@@ -3180,13 +3180,13 @@ const ws = { height: 67, height_desktop: 83 }, Mn = () => {
3180
3180
  ] });
3181
3181
  };
3182
3182
  const ks = () => {
3183
- const e = P();
3183
+ const e = F();
3184
3184
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
3185
3185
  /* @__PURE__ */ r.jsx(Mn, {}),
3186
- /* @__PURE__ */ r.jsx("div", { className: "content", children: /* @__PURE__ */ r.jsx(rt, { variant: "error", text: e.formatMessage({ id: "pageLayout_error" }) }) }),
3186
+ /* @__PURE__ */ r.jsx("div", { className: "content", children: /* @__PURE__ */ r.jsx(st, { variant: "error", text: e.formatMessage({ id: "pageLayout_error" }) }) }),
3187
3187
  /* @__PURE__ */ r.jsx(En, {})
3188
3188
  ] });
3189
- }, ko = ({ children: e, reportError: t, showFooter: n = !0, background: s = "default", className: o = "", locale: l = "en" }) => {
3189
+ }, yo = ({ children: e, reportError: t, showFooter: n = !0, background: s = "default", className: o = "", locale: l = "en" }) => {
3190
3190
  const d = jr();
3191
3191
  z(() => {
3192
3192
  window.scrollTo(0, 0);
@@ -3201,7 +3201,7 @@ const ks = () => {
3201
3201
  }, an = {
3202
3202
  default: "tags_",
3203
3203
  headerTopics: "header_topics_topics_"
3204
- }, vt = {
3204
+ }, bt = {
3205
3205
  topic: {
3206
3206
  Climate: "climate",
3207
3207
  CitiesAndLocalGovernment: "cities-and-local-government",
@@ -3220,16 +3220,16 @@ const ks = () => {
3220
3220
  }, ys = {
3221
3221
  getTagDetails: (e) => {
3222
3222
  if (e.includes("topic_")) {
3223
- if (e = vt.topic[e.replace("topic_", "")], e) {
3223
+ if (e = bt.topic[e.replace("topic_", "")], e) {
3224
3224
  const t = Xe.topics.topics[e].href;
3225
3225
  return t ? { id: e, href: t, text: `${an.headerTopics}${e}` } : null;
3226
3226
  }
3227
3227
  return null;
3228
3228
  }
3229
- return vt[e] ? (e = vt[e], { id: e, text: `${an.default}${e}` }) : null;
3229
+ return bt[e] ? (e = bt[e], { id: e, text: `${an.default}${e}` }) : null;
3230
3230
  }
3231
3231
  };
3232
- const yo = ({
3232
+ const jo = ({
3233
3233
  tags: e = [],
3234
3234
  color: t = "default",
3235
3235
  forceOneLine: n = !1,
@@ -3238,7 +3238,7 @@ const yo = ({
3238
3238
  gtmType: l = "tag-click",
3239
3239
  gtmContext: d = "tags"
3240
3240
  }) => {
3241
- const a = P();
3241
+ const a = F();
3242
3242
  if (!e || e.length < 1)
3243
3243
  return null;
3244
3244
  const i = [];
@@ -3261,21 +3261,21 @@ const yo = ({
3261
3261
  ) : u }, c.id);
3262
3262
  }) });
3263
3263
  };
3264
- const jo = ({
3264
+ const Eo = ({
3265
3265
  members: { total: e, data: t = [] },
3266
3266
  pagination: n,
3267
3267
  gtmContext: s = "member",
3268
3268
  gtmType: o = "member-click",
3269
3269
  className: l = ""
3270
3270
  }) => {
3271
- const d = P();
3271
+ const d = F();
3272
3272
  return t.length === 0 ? null : (e || (e = t.length), /* @__PURE__ */ r.jsxs("div", { className: j("members-list", l), children: [
3273
3273
  /* @__PURE__ */ r.jsxs("h1", { children: [
3274
3274
  d.formatMessage({ id: "membersList" }),
3275
3275
  /* @__PURE__ */ r.jsx("span", { className: "count", children: e })
3276
3276
  ] }),
3277
3277
  /* @__PURE__ */ r.jsx("ul", { children: t.map((a, i) => /* @__PURE__ */ r.jsxs("li", { children: [
3278
- /* @__PURE__ */ r.jsx(Pt, { member: a, gtmContext: s, gtmType: o }),
3278
+ /* @__PURE__ */ r.jsx(Ft, { member: a, gtmContext: s, gtmType: o }),
3279
3279
  a.isAdmin && /* @__PURE__ */ r.jsx(qr, { children: d.formatMessage({ id: "membersList_admin" }) })
3280
3280
  ] }, i)) }),
3281
3281
  n && /* @__PURE__ */ r.jsx(
@@ -3320,10 +3320,10 @@ const ae = "discussion_form_", Cn = ({
3320
3320
  },
3321
3321
  gtmContext: i = "DiscussionForm"
3322
3322
  }) => {
3323
- var F, q;
3324
- const c = P(), u = ye(je), [f, p] = D(
3323
+ var N, q;
3324
+ const c = F(), u = ye(je), [f, p] = P(
3325
3325
  n.isEditing && n.isEditing.text || ""
3326
- ), [h, _] = D(d.error || !1), [v, g] = D(!1), E = Z(null);
3326
+ ), [h, _] = P(d.error || !1), [k, g] = P(!1), E = ee(null);
3327
3327
  if (s || (s = E), n.isLoading)
3328
3328
  return /* @__PURE__ */ r.jsx(
3329
3329
  be,
@@ -3332,85 +3332,85 @@ const ae = "discussion_form_", Cn = ({
3332
3332
  "data-testid": "loading-placeholder"
3333
3333
  }
3334
3334
  );
3335
- const x = (k) => {
3336
- const Y = k.target.value;
3337
- p(Y);
3338
- let B;
3339
- !u || !u.id ? B = he(
3335
+ const b = (w) => {
3336
+ const G = w.target.value;
3337
+ p(G);
3338
+ let L;
3339
+ !u || !u.id ? L = he(
3340
3340
  c.formatMessage,
3341
3341
  `${ae}error_loggedOut`,
3342
3342
  e.type,
3343
3343
  "action"
3344
- ) : t ? Y.length >= o && (B = `${ae}error_tooLong`) : B = he(
3344
+ ) : t ? G.length >= o && (L = `${ae}error_tooLong`) : L = he(
3345
3345
  c.formatMessage,
3346
3346
  `${ae}error_noPermission`,
3347
3347
  e.type,
3348
3348
  "action"
3349
- ), B ? _(B) : h && _(!1);
3349
+ ), L ? _(L) : h && _(!1);
3350
3350
  };
3351
- let $ = `${e.type}-form`;
3351
+ let S = `${e.type}-form`;
3352
3352
  if (e.type === "response" || e.type === "reply") {
3353
- const k = e.type === "response" ? ((F = e.slugs) == null ? void 0 : F.question) || "" : ((q = e.slugs) == null ? void 0 : q.answer) || "";
3354
- k && ($ = `${$}-${k.slice(-15)}`);
3353
+ const w = e.type === "response" ? ((N = e.slugs) == null ? void 0 : N.question) || "" : ((q = e.slugs) == null ? void 0 : q.answer) || "";
3354
+ w && (S = `${S}-${w.slice(-15)}`);
3355
3355
  }
3356
- const T = async (k) => {
3357
- var B;
3358
- if (k.preventDefault(), k.stopPropagation(), !u || !u.id || !t || Q)
3356
+ const T = async (w) => {
3357
+ var L;
3358
+ if (w.preventDefault(), w.stopPropagation(), !u || !u.id || !t || Q)
3359
3359
  return;
3360
3360
  Ye && clearTimeout(Ye), g("submitting");
3361
- const Y = window.location.pathname;
3361
+ const G = window.location.pathname;
3362
3362
  try {
3363
- let L;
3363
+ let B;
3364
3364
  switch (e.type) {
3365
3365
  case "post":
3366
- L = await a.create({ content: f });
3366
+ B = await a.create({ content: f });
3367
3367
  break;
3368
3368
  case "question":
3369
- L = await a.create({
3369
+ B = await a.create({
3370
3370
  title: f,
3371
3371
  authorId: u && u.id,
3372
- ...(B = a.props) == null ? void 0 : B.create
3372
+ ...(L = a.props) == null ? void 0 : L.create
3373
3373
  });
3374
3374
  break;
3375
3375
  case "response":
3376
- L = await a.create(
3376
+ B = await a.create(
3377
3377
  { question: e.slugs.question },
3378
- { body: f, authorId: u && u.id, contentPath: Y }
3378
+ { body: f, authorId: u && u.id, contentPath: G }
3379
3379
  );
3380
3380
  break;
3381
3381
  case "reply":
3382
- L = await a.create(
3382
+ B = await a.create(
3383
3383
  { question: e.slugs.question, answer: e.slugs.answer },
3384
- { body: f, authorId: u && u.id, contentPath: Y }
3384
+ { body: f, authorId: u && u.id, contentPath: G }
3385
3385
  );
3386
3386
  break;
3387
3387
  default:
3388
3388
  break;
3389
3389
  }
3390
- await Cr(1e3), a.callback && await a.callback(L), Ye = setTimeout(() => {
3390
+ await Cr(1e3), a.callback && await a.callback(B), Ye = setTimeout(() => {
3391
3391
  p(""), g("submitted"), M();
3392
3392
  }, 500);
3393
- } catch (L) {
3394
- const U = L;
3395
- let G = `${ae}error`;
3396
- U.message.includes("entry already exists") && (G = he(
3393
+ } catch (B) {
3394
+ const U = B;
3395
+ let Y = `${ae}error`;
3396
+ U.message.includes("entry already exists") && (Y = he(
3397
3397
  c.formatMessage,
3398
3398
  `${ae}error_alreadyExists`,
3399
3399
  e.type,
3400
3400
  "action"
3401
- )), U.message.includes("429") ? G = he(
3401
+ )), U.message.includes("429") ? Y = he(
3402
3402
  c.formatMessage,
3403
3403
  `${ae}error_tooMany`,
3404
3404
  e.type,
3405
3405
  "action"
3406
- ) : U.message.includes("400") && (G = `${ae}error`), _(G), M();
3406
+ ) : U.message.includes("400") && (Y = `${ae}error`), _(Y), M();
3407
3407
  }
3408
3408
  }, M = () => {
3409
3409
  Ye = setTimeout(() => {
3410
3410
  _(!1), g(!1);
3411
3411
  }, 5e3);
3412
- }, Q = !f || !Rr(f), V = v === "submitting", w = [];
3413
- return (n.isEditing && !V || d.cancel) && w.push({
3412
+ }, Q = !f || !Rr(f), V = k === "submitting", v = [];
3413
+ return (n.isEditing && !V || d.cancel) && v.push({
3414
3414
  variant: "secondary",
3415
3415
  size: { mobile: "small", 600: "medium" },
3416
3416
  onClick: a.handleCancel,
@@ -3419,17 +3419,17 @@ const ae = "discussion_form_", Cn = ({
3419
3419
  "data-gtm-event-type": `cancel-${e.type}-click`,
3420
3420
  disabled: !d.cancel && (!u || !u.id || !f),
3421
3421
  children: c.formatMessage({ id: `${ae}cancel` })
3422
- }), w.push({
3422
+ }), v.push({
3423
3423
  variant: "primary",
3424
3424
  size: { mobile: "small", 600: "medium" },
3425
- onClick: (k) => {
3425
+ onClick: (w) => {
3426
3426
  if (n.isEditing) {
3427
3427
  g("submitting"), a.handleSaveEdit && a.handleSaveEdit(
3428
3428
  E.current && "value" in E.current ? E.current.value : ""
3429
3429
  );
3430
3430
  return;
3431
3431
  }
3432
- T(k);
3432
+ T(w);
3433
3433
  },
3434
3434
  className: "gtm-trackable",
3435
3435
  "data-gtm-event-context": i,
@@ -3442,7 +3442,7 @@ const ae = "discussion_form_", Cn = ({
3442
3442
  }), /* @__PURE__ */ r.jsxs(
3443
3443
  "form",
3444
3444
  {
3445
- id: $,
3445
+ id: S,
3446
3446
  className: j("discussion-card discussion-form", {
3447
3447
  "no-styling": n.isInWrapper && n.isEditing
3448
3448
  }),
@@ -3450,19 +3450,19 @@ const ae = "discussion_form_", Cn = ({
3450
3450
  children: [
3451
3451
  (n == null ? void 0 : n.showTitle) && !n.isEditing && ["question"].includes(e.type) && /* @__PURE__ */ r.jsx("h2", { children: he(c.formatMessage, `${ae}title`, e.type, "action") }),
3452
3452
  /* @__PURE__ */ r.jsx(
3453
- Pt,
3453
+ Ft,
3454
3454
  {
3455
3455
  member: u || "community",
3456
3456
  gtmContext: i,
3457
3457
  gtmType: "profile-click"
3458
3458
  }
3459
3459
  ),
3460
- /* @__PURE__ */ r.jsx(ne, { element: "label", showOnFocus: !1, htmlFor: `${$}-input`, children: he(c.formatMessage, `${ae}label`, e.type, "action") }),
3460
+ /* @__PURE__ */ r.jsx(re, { element: "label", showOnFocus: !1, htmlFor: `${S}-input`, children: he(c.formatMessage, `${ae}label`, e.type, "action") }),
3461
3461
  /* @__PURE__ */ r.jsx(
3462
3462
  gr,
3463
3463
  {
3464
3464
  ref: s,
3465
- id: `${$}-input`,
3465
+ id: `${S}-input`,
3466
3466
  name: e.type,
3467
3467
  placeholder: he(
3468
3468
  c.formatMessage,
@@ -3470,7 +3470,7 @@ const ae = "discussion_form_", Cn = ({
3470
3470
  e.type,
3471
3471
  "action"
3472
3472
  ),
3473
- onChange: x,
3473
+ onChange: b,
3474
3474
  value: f,
3475
3475
  maxLength: o,
3476
3476
  "aria-invalid": !!h,
@@ -3480,7 +3480,7 @@ const ae = "discussion_form_", Cn = ({
3480
3480
  }
3481
3481
  ),
3482
3482
  /* @__PURE__ */ r.jsx("small", { children: he(c.formatMessage, `${ae}explainer`, e.type, "action", {
3483
- a: (k) => /* @__PURE__ */ r.jsx(
3483
+ a: (w) => /* @__PURE__ */ r.jsx(
3484
3484
  "a",
3485
3485
  {
3486
3486
  href: "https://about.apolitical.co/q-and-a-community-guidelines",
@@ -3489,13 +3489,13 @@ const ae = "discussion_form_", Cn = ({
3489
3489
  "data-gtm-event-context": i,
3490
3490
  "data-gtm-event-type": "community-guidelines-link",
3491
3491
  rel: "noreferrer",
3492
- children: k
3492
+ children: w
3493
3493
  }
3494
3494
  )
3495
3495
  }) }),
3496
- /* @__PURE__ */ r.jsx(tt, { buttons: w }),
3497
- v === "submitted" && /* @__PURE__ */ r.jsx($t, { className: "success", "data-testid": "success", children: he(c.formatMessage, `${ae}success`, e.type, "action") }),
3498
- h && /* @__PURE__ */ r.jsx($t, { id: "error-message", className: "error", "data-testid": "error", children: d.error ? d.error : typeof h == "string" ? h.includes(" ") ? h : c.formatMessage(
3496
+ /* @__PURE__ */ r.jsx(nt, { buttons: v }),
3497
+ k === "submitted" && /* @__PURE__ */ r.jsx(Mt, { className: "success", "data-testid": "success", children: he(c.formatMessage, `${ae}success`, e.type, "action") }),
3498
+ h && /* @__PURE__ */ r.jsx(Mt, { id: "error-message", className: "error", "data-testid": "error", children: d.error ? d.error : typeof h == "string" ? h.includes(" ") ? h : c.formatMessage(
3499
3499
  { id: h },
3500
3500
  {
3501
3501
  action: c.formatMessage({
@@ -3512,7 +3512,7 @@ const ae = "discussion_form_", Cn = ({
3512
3512
  createPost: t,
3513
3513
  membershipRequiredToPost: { isMember: n, required: s, join: o, leave: l, notMemberStateText: d }
3514
3514
  }) => s && !n ? /* @__PURE__ */ r.jsx(
3515
- rt,
3515
+ st,
3516
3516
  {
3517
3517
  text: d,
3518
3518
  button: {
@@ -3530,8 +3530,8 @@ const ae = "discussion_form_", Cn = ({
3530
3530
  ), js = {
3531
3531
  showThread: !1,
3532
3532
  showForm: !1
3533
- }, An = Mt(js), Eo = ({ children: e }) => {
3534
- const [t, n] = D({
3533
+ }, An = Nt(js), So = ({ children: e }) => {
3534
+ const [t, n] = P({
3535
3535
  showThread: !1,
3536
3536
  showForm: !1
3537
3537
  });
@@ -3545,10 +3545,10 @@ const ae = "discussion_form_", Cn = ({
3545
3545
  ...t && { answerSlug: t },
3546
3546
  ...n && { replySlug: n }
3547
3547
  }), Ss = (e, t = 10) => !e || e.length === 0 ? [] : e.slice(0, t);
3548
- let Oe = !1;
3549
- const bt = () => {
3550
- Oe !== !1 && (clearTimeout(Oe), Oe = !1);
3551
- }, wt = 10, $s = ({
3548
+ let Le = !1;
3549
+ const wt = () => {
3550
+ Le !== !1 && (clearTimeout(Le), Le = !1);
3551
+ }, kt = 10, $s = ({
3552
3552
  element: e = "div",
3553
3553
  likes: t = 0,
3554
3554
  peopleWhoLiked: n = !1,
@@ -3560,21 +3560,21 @@ const bt = () => {
3560
3560
  }, deleteLike: i = () => {
3561
3561
  } } = {}
3562
3562
  }) => {
3563
- const c = P();
3563
+ const c = F();
3564
3564
  z(() => {
3565
3565
  h(o);
3566
3566
  }, [o]);
3567
- const [u, f] = D(t), [p, h] = D(o), [_, v] = D(!1), [g, E] = D(!1), x = qe(() => Ss(n, wt), [n]), $ = (M) => {
3568
- if (M.preventDefault(), M.stopPropagation(), E(!1), Oe)
3569
- return bt(), !1;
3570
- if (bt(), _ || !d)
3567
+ const [u, f] = P(t), [p, h] = P(o), [_, k] = P(!1), [g, E] = P(!1), b = qe(() => Ss(n, kt), [n]), S = (M) => {
3568
+ if (M.preventDefault(), M.stopPropagation(), E(!1), Le)
3569
+ return wt(), !1;
3570
+ if (wt(), _ || !d)
3571
3571
  return !1;
3572
- Oe = setTimeout(T, 350);
3572
+ Le = setTimeout(T, 350);
3573
3573
  }, T = async () => {
3574
- if (bt(), _ || !d)
3574
+ if (wt(), _ || !d)
3575
3575
  return !1;
3576
3576
  let M = p ? u - 1 : u + 1;
3577
- M < 0 && (M = 0), v(!0), f(M), h(!p);
3577
+ M < 0 && (M = 0), k(!0), f(M), h(!p);
3578
3578
  try {
3579
3579
  if (l && l.slugs) {
3580
3580
  const Q = Es(l.slugs);
@@ -3583,14 +3583,14 @@ const bt = () => {
3583
3583
  } catch {
3584
3584
  f(t), h(o);
3585
3585
  } finally {
3586
- v(!1);
3586
+ k(!1);
3587
3587
  }
3588
3588
  };
3589
- return N.createElement(
3589
+ return A.createElement(
3590
3590
  e,
3591
3591
  {
3592
3592
  className: j("likes-wrapper text-medium action-button", { "show-spinner": _, "is-liked": p, disabled: !d }),
3593
- onClick: $,
3593
+ onClick: S,
3594
3594
  onMouseEnter: () => {
3595
3595
  E(!0);
3596
3596
  },
@@ -3614,7 +3614,7 @@ const bt = () => {
3614
3614
  screenreaderText: d ? c.formatMessage({
3615
3615
  id: `discussion_likes_${p ? "unlike" : "like"}`
3616
3616
  }, { action: c.formatMessage({ id: `discussion_action_${l.type}` }) }) : !1,
3617
- onClick: $,
3617
+ onClick: S,
3618
3618
  disabled: !d,
3619
3619
  "aria-hidden": !d,
3620
3620
  "data-testid": "like-button",
@@ -3624,14 +3624,14 @@ const bt = () => {
3624
3624
  ),
3625
3625
  /* @__PURE__ */ r.jsx("span", { className: j("number-of-likes", { "no-likes": u === 0 }), "data-testid": "number-of-likes", children: c.formatMessage({ id: `discussion_likes${s ? "_short" : ""}` }, { number: u }) }),
3626
3626
  n && /* @__PURE__ */ r.jsx(Ir, { isOpen: g, isLoading: n.length === 0, children: n.length && /* @__PURE__ */ r.jsxs("ul", { children: [
3627
- x.map((M) => typeof M == "string" || !M.name ? null : /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(nt, { href: M.id ? `/profiles/${M.id}` : void 0, gtmContext: "Likes", gtmType: "liked-name-click", children: M.name }) }, M.id || window.btoa(M.name))),
3628
- n.length > wt && /* @__PURE__ */ r.jsx("li", { children: c.formatMessage({ id: "discussion_likes_more" }, { number: n.length - wt }) })
3627
+ b.map((M) => typeof M == "string" || !M.name ? null : /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(rt, { href: M.id ? `/profiles/${M.id}` : void 0, gtmContext: "Likes", gtmType: "liked-name-click", children: M.name }) }, M.id || window.btoa(M.name))),
3628
+ n.length > kt && /* @__PURE__ */ r.jsx("li", { children: c.formatMessage({ id: "discussion_likes_more" }, { number: n.length - kt }) })
3629
3629
  ] }) })
3630
3630
  ] })
3631
3631
  }
3632
3632
  );
3633
3633
  };
3634
- const Ts = ({ element: e = "section", children: t, className: n, ...s }) => N.createElement(
3634
+ const Ts = ({ element: e = "section", children: t, className: n, ...s }) => A.createElement(
3635
3635
  e,
3636
3636
  {
3637
3637
  className: j("modal", n),
@@ -3654,11 +3654,11 @@ const Dn = ({
3654
3654
  className: u = "",
3655
3655
  gtmContext: f = "Modal"
3656
3656
  }) => {
3657
- const p = P(), [h, _] = D(t), v = (E) => {
3657
+ const p = F(), [h, _] = P(t), k = (E) => {
3658
3658
  _(E), E ? (o(), document.body.classList.add("has-overlay")) : (l(), document.body.classList.remove("has-overlay"));
3659
3659
  };
3660
3660
  z(() => {
3661
- v(t);
3661
+ k(t);
3662
3662
  }, [t]);
3663
3663
  const g = s ? { "--max-width": `${s / 16}rem` } : {};
3664
3664
  return /* @__PURE__ */ r.jsx("div", { className: j("overlay", { open: h }), children: /* @__PURE__ */ r.jsx(
@@ -3677,7 +3677,7 @@ const Dn = ({
3677
3677
  variant: "tertiary",
3678
3678
  size: "medium",
3679
3679
  icon: { icon: "close" },
3680
- onClick: () => v(!1),
3680
+ onClick: () => k(!1),
3681
3681
  className: "gtm-trackable",
3682
3682
  "data-gtm-event-type": "close-modal-click",
3683
3683
  "data-gtm-event-context": f,
@@ -3685,13 +3685,13 @@ const Dn = ({
3685
3685
  }
3686
3686
  )
3687
3687
  ] }),
3688
- n && /* @__PURE__ */ r.jsx(Le, {}),
3688
+ n && /* @__PURE__ */ r.jsx(Ne, {}),
3689
3689
  i,
3690
3690
  c && /* @__PURE__ */ r.jsxs("div", { className: "bottom", children: [
3691
- /* @__PURE__ */ r.jsx(Le, {}),
3692
- /* @__PURE__ */ r.jsx(tt, { buttons: c })
3691
+ /* @__PURE__ */ r.jsx(Ne, {}),
3692
+ /* @__PURE__ */ r.jsx(nt, { buttons: c })
3693
3693
  ] }),
3694
- d && /* @__PURE__ */ r.jsx($t, { className: "error", children: d })
3694
+ d && /* @__PURE__ */ r.jsx(Mt, { className: "error", children: d })
3695
3695
  ] })
3696
3696
  }
3697
3697
  ) });
@@ -3700,7 +3700,7 @@ const Dn = ({
3700
3700
  "aria-expanded": t,
3701
3701
  "aria-controls": e
3702
3702
  });
3703
- const So = ({
3703
+ const $o = ({
3704
3704
  className: e,
3705
3705
  showModal: t = !0,
3706
3706
  title: n,
@@ -3735,18 +3735,22 @@ const So = ({
3735
3735
  ), ln = (e) => {
3736
3736
  const t = {};
3737
3737
  return Object.keys(e).forEach((n) => n.includes("Id") ? t[n] = e[n] : t[`${n}Slug`] = e[n]), t;
3738
- }, Ft = (e, t) => e && !t;
3739
- const xe = "discussion_", Rt = ({
3738
+ }, Rt = (e, t) => e && !t;
3739
+ const xe = "discussion_", Cs = 280, Ot = ({
3740
3740
  element: e = "div",
3741
3741
  content: t,
3742
3742
  userHasPermissions: n = !0,
3743
3743
  isLoading: s = !1,
3744
3744
  originalAuthorId: o,
3745
3745
  functions: {
3746
- content: { createContent: l, deleteContent: d, updateContent: a } = { createContent: () => {
3747
- }, deleteContent: () => {
3748
- }, updateContent: () => {
3749
- } },
3746
+ content: { createContent: l, deleteContent: d, updateContent: a } = {
3747
+ createContent: () => {
3748
+ },
3749
+ deleteContent: () => {
3750
+ },
3751
+ updateContent: () => {
3752
+ }
3753
+ },
3750
3754
  likes: { createLike: i, deleteLike: c } = { createLike: () => {
3751
3755
  }, deleteLike: () => {
3752
3756
  } },
@@ -3756,170 +3760,234 @@ const xe = "discussion_", Rt = ({
3756
3760
  links: f = {},
3757
3761
  className: p,
3758
3762
  gtmContext: h = "DiscussionAnswer",
3759
- children: _
3763
+ children: _,
3764
+ isTruncated: k = !1
3760
3765
  }) => {
3761
- const v = P(), g = ye(je), E = ye(An), [x, $] = D({
3766
+ const g = F(), E = ye(je), b = ye(An), [S, T] = P({
3762
3767
  body: t && t.body || "",
3763
3768
  isEditing: !1,
3764
3769
  didEdit: t && t.isEdited || !1
3765
- }), [T, M] = D(!1), [Q, V] = D("");
3770
+ }), [M, Q] = P(!1), [V, v] = P("");
3766
3771
  if (z(() => {
3767
- $({
3768
- ...x,
3772
+ T({
3773
+ ...S,
3769
3774
  body: t && t.body || "",
3770
3775
  didEdit: t && t.isEdited || !1
3771
3776
  });
3772
3777
  }, [t.isEdited]), s || !t || t.type === "answer" && (!t.slugs || !t.slugs.question))
3773
3778
  return /* @__PURE__ */ r.jsx(be, { className: "discussion-card discussion-post" });
3774
- const { author: w, canLike: F, createdAt: q, id: k, likes: Y = 0, userLiked: B, comments: L = 0 } = t, U = g && g.id && typeof w != "string" && w.id && w.id === g.id || !1, G = typeof F == "boolean" ? F : n ? !U : !1, K = async (R) => {
3775
- R || (R = ""), V("");
3779
+ const { author: N, canLike: q, createdAt: w, id: G, likes: L = 0, userLiked: B, comments: U = 0 } = t, Y = k ? Ke(S.body, Cs) : S.body, K = E && E.id && typeof N != "string" && N.id && N.id === E.id || !1, ie = typeof q == "boolean" ? q : n ? !K : !1, le = async (R) => {
3780
+ R || (R = ""), v("");
3776
3781
  try {
3777
- if (!_r(R, x.body)) {
3778
- const ee = t.type === "question" ? { title: R } : { body: R };
3779
- await a(ln(t.slugs), ee);
3782
+ if (!_r(R, S.body)) {
3783
+ const te = t.type === "question" ? { title: R } : { body: R };
3784
+ await a(ln(t.slugs), te);
3780
3785
  }
3781
- $({ body: R, isEditing: !1, didEdit: !0 });
3786
+ T({ body: R, isEditing: !1, didEdit: !0 });
3782
3787
  } catch {
3783
- V(`${xe}form_error`);
3788
+ v(`${xe}form_error`);
3784
3789
  }
3785
- }, ie = () => {
3786
- E && E.updateConversation && E.updateConversation({ showThread: !0, showForm: !0 }), setTimeout(() => {
3787
- const ee = `reply-form-${(t.type === "answer" ? t.slug : t.slugs.answer || "").toLowerCase().slice(-15)}`, oe = document.getElementById(ee), ce = document.getElementById(`${ee}-input`);
3788
- ce && ce.focus(), oe && oe.scrollIntoView({ behavior: "smooth" });
3790
+ }, ce = () => {
3791
+ b && b.updateConversation && b.updateConversation({ showThread: !0, showForm: !0 }), setTimeout(() => {
3792
+ const te = `reply-form-${(t.type === "answer" ? t.slug : t.slugs.answer || "").toLowerCase().slice(-15)}`, X = document.getElementById(te), ne = document.getElementById(`${te}-input`);
3793
+ ne && ne.focus(), X && X.scrollIntoView({ behavior: "smooth" });
3789
3794
  }, 0);
3790
- }, le = () => {
3795
+ }, ue = () => {
3791
3796
  try {
3792
3797
  d(ln(t.slugs));
3793
3798
  } catch {
3794
- V("delete-error");
3799
+ v("delete-error");
3795
3800
  }
3796
- }, se = [{
3797
- text: v.formatMessage({ id: `${xe}moreMenu_report` }),
3798
- href: `mailto:community@apolitical.co?subject=${encodeURI(v.formatMessage({ id: `${xe}report_subject` }))}&body=${encodeURI(
3799
- v.formatMessage(
3800
- { id: `${xe}report_body` },
3801
- {
3802
- contentType: t.type || "",
3803
- contentSlug: t.slug || "",
3804
- contentUrl: `${window.origin}${typeof process < "u" && process.env.PUBLIC_URL || ""}/${t.slugs.question || ""}`
3805
- }
3806
- )
3807
- )}`,
3808
- icon: "flag"
3809
- }];
3810
- return n && U && se.push(
3801
+ }, oe = [
3811
3802
  {
3812
- text: v.formatMessage({ id: `${xe}moreMenu_edit` }),
3813
- onClick: () => $({ ...x, isEditing: !0 }),
3803
+ text: g.formatMessage({ id: `${xe}moreMenu_report` }),
3804
+ href: `mailto:community@apolitical.co?subject=${encodeURI(
3805
+ g.formatMessage({ id: `${xe}report_subject` })
3806
+ )}&body=${encodeURI(
3807
+ g.formatMessage(
3808
+ { id: `${xe}report_body` },
3809
+ {
3810
+ contentType: t.type || "",
3811
+ contentSlug: t.slug || "",
3812
+ contentUrl: `${window.origin}${typeof process < "u" && process.env.PUBLIC_URL || ""}/${t.slugs.question || ""}`
3813
+ }
3814
+ )
3815
+ )}`,
3816
+ icon: "flag"
3817
+ }
3818
+ ];
3819
+ return n && K && oe.push(
3820
+ {
3821
+ text: g.formatMessage({ id: `${xe}moreMenu_edit` }),
3822
+ onClick: () => T({ ...S, isEditing: !0 }),
3814
3823
  icon: "pencil-paper",
3815
3824
  className: "gtm-trackable",
3816
3825
  "data-gtm-event-context": h,
3817
3826
  "data-gtm-event-type": `edit-${t.type}-click`
3818
3827
  },
3819
3828
  {
3820
- text: v.formatMessage({ id: `${xe}moreMenu_delete` }),
3829
+ text: g.formatMessage({ id: `${xe}moreMenu_delete` }),
3821
3830
  onClick: (R) => {
3822
- R.preventDefault(), R.stopPropagation(), M(!0);
3831
+ R.preventDefault(), R.stopPropagation(), Q(!0);
3823
3832
  },
3824
3833
  icon: "trash",
3825
3834
  className: "gtm-trackable",
3826
3835
  "data-gtm-event-context": h,
3827
3836
  "data-gtm-event-type": `delete-${t.type}-click`,
3828
- ...Ms(`delete-${t.slug}-modal`, T)
3837
+ ...Ms(`delete-${t.slug}-modal`, M)
3829
3838
  }
3830
- ), N.createElement(e, {
3839
+ ), A.createElement(e, {
3831
3840
  className: j("discussion-post", p),
3832
3841
  "data-testid": `discussion-${t.type}-thread`,
3833
3842
  children: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
3834
3843
  /* @__PURE__ */ r.jsxs(
3835
3844
  "div",
3836
3845
  {
3837
- id: k || t.slug,
3838
- className: j("discussion-card", t.type, { editing: x.isEditing, "has-link": f.post && !x.isEditing }),
3846
+ id: G || t.slug,
3847
+ className: j("discussion-card", t.type, {
3848
+ editing: S.isEditing,
3849
+ "has-link": f.post && !S.isEditing
3850
+ }),
3839
3851
  onClick: (R) => {
3840
- !f.post || x.isEditing || (R.preventDefault(), R.stopPropagation(), window.location.href = f.post);
3852
+ !f.post || S.isEditing || (R.preventDefault(), R.stopPropagation(), window.location.href = f.post);
3841
3853
  },
3842
3854
  children: [
3843
- !x.isEditing && /* @__PURE__ */ r.jsx(
3844
- Pt,
3855
+ !S.isEditing && /* @__PURE__ */ r.jsx(
3856
+ Ft,
3845
3857
  {
3846
- member: w,
3847
- additionalContent: { createdAt: q, didEdit: x.didEdit },
3848
- className: typeof w != "string" && w.id === o ? "highlighted" : "",
3858
+ member: N,
3859
+ additionalContent: { createdAt: w, didEdit: S.didEdit },
3860
+ className: typeof N != "string" && N.id === o ? "highlighted" : "",
3849
3861
  gtmContext: h,
3850
3862
  gtmType: "profile-click"
3851
3863
  }
3852
3864
  ),
3853
- x.isEditing ? /* @__PURE__ */ r.jsx(
3865
+ S.isEditing ? /* @__PURE__ */ r.jsx(
3854
3866
  Cn,
3855
3867
  {
3856
3868
  content: { type: t.type, slugs: t.slugs },
3857
3869
  userHasPermissions: n,
3858
- meta: { isLoading: s, isInWrapper: !0, isEditing: { text: x.body } },
3870
+ meta: {
3871
+ isLoading: s,
3872
+ isInWrapper: !0,
3873
+ isEditing: { text: S.body }
3874
+ },
3859
3875
  maxLength: t.type === "question" ? 250 : 5e4,
3860
- forceShow: { error: Q !== "" && Q !== "delete-error" ? v.formatMessage({ id: Q }, {
3861
- action: v.formatMessage({
3862
- id: `discussion_action_${t.type}`
3863
- })
3864
- }) : !1 },
3876
+ forceShow: {
3877
+ error: V !== "" && V !== "delete-error" ? g.formatMessage(
3878
+ { id: V },
3879
+ {
3880
+ action: g.formatMessage({
3881
+ id: `discussion_action_${t.type}`
3882
+ })
3883
+ }
3884
+ ) : !1
3885
+ },
3865
3886
  functions: {
3866
3887
  create: l,
3867
- handleSaveEdit: K,
3888
+ handleSaveEdit: le,
3868
3889
  handleCancel: () => {
3869
- V(""), $({ ...x, isEditing: !1 });
3890
+ v(""), T({ ...S, isEditing: !1 });
3870
3891
  }
3871
3892
  },
3872
3893
  gtmContext: `${h}Form`
3873
3894
  }
3874
- ) : f.post ? /* @__PURE__ */ r.jsx("a", { href: f.post, className: "gtm-trackable", "data-gtm-event-context": h, "data-gtm-event-type": "title-click", children: /* @__PURE__ */ r.jsx(nn, { options: { overrides: { a: Zr } }, children: x.body }) }) : /* @__PURE__ */ r.jsx(nn, { options: { wrapper: t.type === "question" ? "h1" : N.Fragment, forceWrapper: t.type === "question", forceInline: t.type === "question", forceBlock: t.type !== "question" }, children: x.body }),
3875
- !x.isEditing && /* @__PURE__ */ r.jsxs("ul", { className: j("actions text-medium", t.type), "data-testid": `${t.type}-actions`, children: [
3876
- /* @__PURE__ */ r.jsx(
3877
- $s,
3878
- {
3879
- element: "li",
3880
- likes: Y,
3881
- isShort: !1,
3882
- userLiked: B,
3883
- content: { type: t.type, slugs: t.slugs },
3884
- canLike: G,
3885
- functions: {
3886
- createLike: i,
3887
- deleteLike: c
3888
- }
3889
- }
3890
- ),
3891
- (["question", "post"].includes(t.type) || f.comments || typeof u == "function") && /* @__PURE__ */ r.jsxs("li", { className: "action-button", onClick: (R) => {
3892
- R.preventDefault(), R.stopPropagation(), f.comments && (window.location.href = f.comments), typeof u == "function" && u();
3893
- }, children: [
3894
- /* @__PURE__ */ r.jsx(
3895
- W,
3896
- {
3897
- variant: "tertiary",
3898
- size: "medium",
3899
- styling: { muted: !0 },
3900
- icon: { icon: "speech-bubble_square_thick" },
3901
- href: f.comments ? f.comments : !1,
3902
- onClick: f.comments || typeof u != "function" ? !1 : u,
3903
- className: "gtm-trackable",
3904
- "data-gtm-event-context": h,
3905
- "data-gtm-event-type": `answer-${t.type}-click`,
3906
- screenreaderText: v.formatMessage({ id: `${xe}comments_screenReader` }, { count: L })
3907
- }
3908
- ),
3909
- /* @__PURE__ */ r.jsx("span", { children: v.formatMessage({ id: `${xe}comments` }, { count: L }) })
3910
- ] }),
3911
- (t.type === "answer" || t.type === "reply") && /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(
3912
- W,
3913
- {
3914
- variant: "tertiary",
3915
- size: "medium",
3916
- styling: { muted: !0 },
3917
- onClick: ie,
3918
- children: v.formatMessage({ id: `${xe}reply` })
3919
- }
3920
- ) }),
3921
- /* @__PURE__ */ r.jsx(ps, { element: "li", id: `more-${t.slug}`, options: se })
3922
- ] })
3895
+ ) : f.post ? /* @__PURE__ */ r.jsx(
3896
+ "a",
3897
+ {
3898
+ href: f.post,
3899
+ className: "gtm-trackable",
3900
+ "data-gtm-event-context": h,
3901
+ "data-gtm-event-type": "title-click",
3902
+ children: /* @__PURE__ */ r.jsx(nn, { options: { overrides: { a: Zr } }, children: Y })
3903
+ }
3904
+ ) : /* @__PURE__ */ r.jsx(
3905
+ nn,
3906
+ {
3907
+ options: {
3908
+ wrapper: t.type === "question" ? "h1" : A.Fragment,
3909
+ forceWrapper: t.type === "question",
3910
+ forceInline: t.type === "question",
3911
+ forceBlock: t.type !== "question"
3912
+ },
3913
+ children: Y
3914
+ }
3915
+ ),
3916
+ !S.isEditing && /* @__PURE__ */ r.jsxs(
3917
+ "ul",
3918
+ {
3919
+ className: j("actions text-medium", t.type),
3920
+ "data-testid": `${t.type}-actions`,
3921
+ children: [
3922
+ /* @__PURE__ */ r.jsx(
3923
+ $s,
3924
+ {
3925
+ element: "li",
3926
+ likes: L,
3927
+ isShort: !1,
3928
+ userLiked: B,
3929
+ content: { type: t.type, slugs: t.slugs },
3930
+ canLike: ie,
3931
+ functions: {
3932
+ createLike: i,
3933
+ deleteLike: c
3934
+ }
3935
+ }
3936
+ ),
3937
+ (["question", "post"].includes(t.type) || f.comments || typeof u == "function") && /* @__PURE__ */ r.jsxs(
3938
+ "li",
3939
+ {
3940
+ className: "action-button",
3941
+ onClick: (R) => {
3942
+ R.preventDefault(), R.stopPropagation(), f.comments && (window.location.href = f.comments), typeof u == "function" && u();
3943
+ },
3944
+ children: [
3945
+ /* @__PURE__ */ r.jsx(
3946
+ W,
3947
+ {
3948
+ variant: "tertiary",
3949
+ size: "medium",
3950
+ styling: { muted: !0 },
3951
+ icon: { icon: "speech-bubble_square_thick" },
3952
+ href: f.comments ? f.comments : !1,
3953
+ onClick: f.comments || typeof u != "function" ? !1 : u,
3954
+ className: "gtm-trackable",
3955
+ "data-gtm-event-context": h,
3956
+ "data-gtm-event-type": `answer-${t.type}-click`,
3957
+ screenreaderText: g.formatMessage(
3958
+ { id: `${xe}comments_screenReader` },
3959
+ { count: U }
3960
+ )
3961
+ }
3962
+ ),
3963
+ /* @__PURE__ */ r.jsx("span", { children: g.formatMessage(
3964
+ { id: `${xe}comments` },
3965
+ { count: U }
3966
+ ) })
3967
+ ]
3968
+ }
3969
+ ),
3970
+ (t.type === "answer" || t.type === "reply") && /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(
3971
+ W,
3972
+ {
3973
+ variant: "tertiary",
3974
+ size: "medium",
3975
+ styling: { muted: !0 },
3976
+ onClick: ce,
3977
+ children: g.formatMessage({ id: `${xe}reply` })
3978
+ }
3979
+ ) }),
3980
+ /* @__PURE__ */ r.jsx(
3981
+ ps,
3982
+ {
3983
+ element: "li",
3984
+ id: `more-${t.slug}`,
3985
+ options: oe
3986
+ }
3987
+ )
3988
+ ]
3989
+ }
3990
+ )
3923
3991
  ]
3924
3992
  }
3925
3993
  ),
@@ -3928,21 +3996,35 @@ const xe = "discussion_", Rt = ({
3928
3996
  Dn,
3929
3997
  {
3930
3998
  id: `delete-${t.slug}-modal`,
3931
- isOpen: T,
3999
+ isOpen: M,
3932
4000
  functions: { onOpen: () => {
3933
- }, onClose: () => M(!1) },
3934
- forceShow: { error: Q === "delete-error" ? v.formatMessage({ id: "discussion_delete_error" }, {
3935
- action: v.formatMessage({
3936
- id: `discussion_action_${t.type}`
3937
- })
3938
- }) : !1 },
3939
- title: v.formatMessage(
4001
+ }, onClose: () => Q(!1) },
4002
+ forceShow: {
4003
+ error: V === "delete-error" ? g.formatMessage(
4004
+ { id: "discussion_delete_error" },
4005
+ {
4006
+ action: g.formatMessage({
4007
+ id: `discussion_action_${t.type}`
4008
+ })
4009
+ }
4010
+ ) : !1
4011
+ },
4012
+ title: g.formatMessage(
3940
4013
  { id: "discussion_delete_title" },
3941
- { action: v.formatMessage({ id: `discussion_action_${t.type}` }) }
4014
+ { action: g.formatMessage({ id: `discussion_action_${t.type}` }) }
3942
4015
  ),
3943
4016
  buttons: [
3944
- { variant: "secondary", onClick: () => M(!1), children: v.formatMessage({ id: "discussion_delete_cancel" }) },
3945
- { variant: "primary", className: "destructive", onClick: le, children: v.formatMessage({ id: "discussion_delete_delete" }) }
4017
+ {
4018
+ variant: "secondary",
4019
+ onClick: () => Q(!1),
4020
+ children: g.formatMessage({ id: "discussion_delete_cancel" })
4021
+ },
4022
+ {
4023
+ variant: "primary",
4024
+ className: "destructive",
4025
+ onClick: ue,
4026
+ children: g.formatMessage({ id: "discussion_delete_delete" })
4027
+ }
3946
4028
  ],
3947
4029
  gtmContext: `${t.type.charAt(0).toUpperCase()}${t.type.slice(1)}:${t.slug}`,
3948
4030
  children: /* @__PURE__ */ r.jsx(
@@ -3951,7 +4033,7 @@ const xe = "discussion_", Rt = ({
3951
4033
  id: "discussion_delete_text",
3952
4034
  values: {
3953
4035
  p: (R) => /* @__PURE__ */ r.jsx("p", { children: R }),
3954
- action: v.formatMessage({
4036
+ action: g.formatMessage({
3955
4037
  id: `discussion_action_${t.type}`
3956
4038
  })
3957
4039
  }
@@ -3962,15 +4044,15 @@ const xe = "discussion_", Rt = ({
3962
4044
  ] })
3963
4045
  });
3964
4046
  };
3965
- const kt = "discussion_responses_", $o = ({ type: e = "answer", responses: t = 0 }) => {
3966
- const n = P();
4047
+ const yt = "discussion_responses_", To = ({ type: e = "answer", responses: t = 0 }) => {
4048
+ const n = F();
3967
4049
  return /* @__PURE__ */ r.jsxs("div", { className: "responses-heading", children: [
3968
- /* @__PURE__ */ r.jsx("h3", { children: n.formatMessage({ id: `${kt}title` }, { action: n.formatMessage({ id: `${kt}${e}` }), count: t }) }),
3969
- t === 0 && /* @__PURE__ */ r.jsx("p", { children: he(n.formatMessage, `${kt}empty`, e, e) })
4050
+ /* @__PURE__ */ r.jsx("h3", { children: n.formatMessage({ id: `${yt}title` }, { action: n.formatMessage({ id: `${yt}${e}` }), count: t }) }),
4051
+ t === 0 && /* @__PURE__ */ r.jsx("p", { children: he(n.formatMessage, `${yt}empty`, e, e) })
3970
4052
  ] });
3971
4053
  };
3972
- const To = ({ isOpen: e = !1, count: t = 0, children: n }) => {
3973
- const s = P(), o = Z(null), [l, d] = D(e), [a, i] = D("closed");
4054
+ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4055
+ const s = F(), o = ee(null), [l, d] = P(e), [a, i] = P("closed");
3974
4056
  z(() => {
3975
4057
  const p = o.current;
3976
4058
  if (p)
@@ -4001,7 +4083,7 @@ const To = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4001
4083
  ),
4002
4084
  /* @__PURE__ */ r.jsx("ul", { ref: o, className: j("thread", a), hidden: !l, children: f })
4003
4085
  ] });
4004
- }, Cs = ({
4086
+ }, Ns = ({
4005
4087
  user: e,
4006
4088
  content: t,
4007
4089
  verb: n = "post"
@@ -4022,7 +4104,7 @@ const To = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4022
4104
  like: 0
4023
4105
  },
4024
4106
  verb: n
4025
- }), Ns = ({
4107
+ }), As = ({
4026
4108
  queryClient: e,
4027
4109
  queryKey: t,
4028
4110
  user: n,
@@ -4030,7 +4112,7 @@ const To = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4030
4112
  }) => ({ mutationFn: s, onMutate: async ({ content: a }) => {
4031
4113
  if (!n)
4032
4114
  return;
4033
- const i = Cs({ user: n, content: a, verb: "post" });
4115
+ const i = Ns({ user: n, content: a, verb: "post" });
4034
4116
  await e.cancelQueries({ queryKey: t });
4035
4117
  const c = e.getQueryData(t);
4036
4118
  return e.setQueryData(t, (u) => [...u, i]), { previousActivities: c };
@@ -4038,7 +4120,7 @@ const To = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4038
4120
  e.setQueryData(t, c.previousActivities);
4039
4121
  }, onSettled: () => {
4040
4122
  e.invalidateQueries({ queryKey: t });
4041
- } }), As = ({
4123
+ } }), Ds = ({
4042
4124
  queryClient: e,
4043
4125
  queryKey: t,
4044
4126
  mutationFn: n
@@ -4060,7 +4142,7 @@ const To = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4060
4142
  onSettled: () => {
4061
4143
  e.invalidateQueries({ queryKey: t });
4062
4144
  }
4063
- }), Ds = ({
4145
+ }), Ps = ({
4064
4146
  queryClient: e,
4065
4147
  queryKey: t,
4066
4148
  mutationFn: n
@@ -4080,7 +4162,7 @@ const To = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4080
4162
  e.invalidateQueries({
4081
4163
  queryKey: [...t, c.activityId]
4082
4164
  });
4083
- } }), Ps = ({
4165
+ } }), Fs = ({
4084
4166
  queryClient: e,
4085
4167
  queryKey: t,
4086
4168
  user: n,
@@ -4096,13 +4178,13 @@ const To = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4096
4178
  e.setQueryData(t, u.previousActivities);
4097
4179
  }, onSuccess: (i, { activityId: c }) => {
4098
4180
  const u = e.getQueryData(t), f = u == null ? void 0 : u.map((p) => {
4099
- var h, _, v, g;
4181
+ var h, _, k, g;
4100
4182
  if (p.id === c) {
4101
- const E = (v = (_ = (h = p.latest_reactions) == null ? void 0 : h.like) == null ? void 0 : _.find(
4102
- (x) => x.user_id === (n == null ? void 0 : n.id)
4103
- )) == null ? void 0 : v.id;
4183
+ const E = (k = (_ = (h = p.latest_reactions) == null ? void 0 : h.like) == null ? void 0 : _.find(
4184
+ (b) => b.user_id === (n == null ? void 0 : n.id)
4185
+ )) == null ? void 0 : k.id;
4104
4186
  return p.latest_reactions.like = (g = p.latest_reactions.like) == null ? void 0 : g.filter(
4105
- (x) => x.id !== E
4187
+ (b) => b.id !== E
4106
4188
  ), p;
4107
4189
  } else
4108
4190
  return p;
@@ -4112,65 +4194,65 @@ const To = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4112
4194
  e.invalidateQueries({
4113
4195
  queryKey: [...t, u.activityId]
4114
4196
  });
4115
- } }), Mo = ({
4197
+ } }), Co = ({
4116
4198
  basePath: e,
4117
4199
  parentId: t,
4118
4200
  isMember: n,
4119
4201
  functions: { list: s, create: o, edit: l, like: d, unlike: a, join: i, leave: c }
4120
4202
  }) => {
4121
- const u = P(), f = Nt(), p = ye(je), {
4203
+ const u = F(), f = At(), p = ye(je), {
4122
4204
  data: h,
4123
4205
  error: _,
4124
- isLoading: v,
4206
+ isLoading: k,
4125
4207
  isFetching: g
4126
4208
  } = cn({
4127
4209
  queryKey: [e, t],
4128
4210
  queryFn: s
4129
- }), E = Ns({
4211
+ }), E = As({
4130
4212
  queryClient: f,
4131
4213
  queryKey: [e, t],
4132
4214
  user: p,
4133
4215
  mutationFn: o
4134
- }), { mutate: x } = fe(E), $ = As({
4216
+ }), { mutate: b } = fe(E), S = Ds({
4135
4217
  queryClient: f,
4136
4218
  queryKey: [e, t],
4137
- mutationFn: async (k) => await l(k)
4219
+ mutationFn: async (w) => await l(w)
4138
4220
  }), {
4139
4221
  mutate: T
4140
- } = fe($), M = Ds({
4222
+ } = fe(S), M = Ps({
4141
4223
  queryClient: f,
4142
4224
  queryKey: [e, t],
4143
4225
  mutationFn: d
4144
4226
  }), {
4145
4227
  mutate: Q
4146
- } = fe(M), V = Ps({
4228
+ } = fe(M), V = Fs({
4147
4229
  queryClient: f,
4148
4230
  queryKey: [e, t],
4149
4231
  user: p,
4150
- mutationFn: async ({ activityId: k }) => {
4151
- var L, U, G;
4152
- const Y = h && (h == null ? void 0 : h.find(
4153
- (K) => K.id === k
4154
- )), B = (G = (U = (L = Y == null ? void 0 : Y.latest_reactions) == null ? void 0 : L.like) == null ? void 0 : U.find(
4232
+ mutationFn: async ({ activityId: w }) => {
4233
+ var B, U, Y;
4234
+ const G = h && (h == null ? void 0 : h.find(
4235
+ (K) => K.id === w
4236
+ )), L = (Y = (U = (B = G == null ? void 0 : G.latest_reactions) == null ? void 0 : B.like) == null ? void 0 : U.find(
4155
4237
  (K) => K.user_id === (p == null ? void 0 : p.id)
4156
- )) == null ? void 0 : G.id;
4157
- await a({ reactionId: B || "", activityId: k });
4238
+ )) == null ? void 0 : Y.id;
4239
+ await a({ reactionId: L || "", activityId: w });
4158
4240
  }
4159
4241
  }), {
4160
- mutate: w
4161
- } = fe(V), F = Ee(
4162
- ({ activityId: k }) => Q({ activityId: k }),
4242
+ mutate: v
4243
+ } = fe(V), N = Ee(
4244
+ ({ activityId: w }) => Q({ activityId: w }),
4163
4245
  [Q]
4164
4246
  ), q = Ee(
4165
- ({ activityId: k }) => w({ activityId: k }),
4166
- [w]
4247
+ ({ activityId: w }) => v({ activityId: w }),
4248
+ [v]
4167
4249
  );
4168
- return _ ? /* @__PURE__ */ r.jsx(rt, { variant: "error", text: _.message }) : v ? /* @__PURE__ */ r.jsx(be, { style: { height: "400px" } }) : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
4250
+ return _ ? /* @__PURE__ */ r.jsx(st, { variant: "error", text: _.message }) : k ? /* @__PURE__ */ r.jsx(be, { style: { height: "400px" } }) : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
4169
4251
  /* @__PURE__ */ r.jsx(
4170
4252
  Nn,
4171
4253
  {
4172
4254
  contentType: "post",
4173
- createPost: x,
4255
+ createPost: b,
4174
4256
  membershipRequiredToPost: {
4175
4257
  isMember: n,
4176
4258
  required: !0,
@@ -4180,60 +4262,63 @@ const To = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4180
4262
  }
4181
4263
  }
4182
4264
  ),
4183
- !g && Array.isArray(h) && (h == null ? void 0 : h.map((k) => {
4184
- var L, U, G, K, ie, le, se, R, ee, oe, ce, te;
4185
- const Y = ((L = k == null ? void 0 : k.actor) == null ? void 0 : L.id) === (p == null ? void 0 : p.id), B = Ft(n, Y);
4186
- return /* @__PURE__ */ r.jsx(
4187
- Rt,
4188
- {
4189
- content: {
4190
- type: "post",
4191
- body: k == null ? void 0 : k.content,
4192
- canLike: B,
4193
- createdAt: (k == null ? void 0 : k.time) || "",
4194
- slugs: { parentId: t, activityId: k == null ? void 0 : k.id },
4195
- slug: k == null ? void 0 : k.id,
4196
- author: {
4197
- id: (U = k == null ? void 0 : k.actor) == null ? void 0 : U.id,
4198
- name: `${(K = (G = k == null ? void 0 : k.actor) == null ? void 0 : G.data) == null ? void 0 : K.name}`,
4199
- organization: (le = (ie = k == null ? void 0 : k.actor) == null ? void 0 : ie.data) == null ? void 0 : le.organization,
4200
- jobTitle: (R = (se = k == null ? void 0 : k.actor) == null ? void 0 : se.data) == null ? void 0 : R.jobTitle,
4201
- image: {
4202
- thumbnail: ((oe = (ee = k == null ? void 0 : k.actor) == null ? void 0 : ee.data) == null ? void 0 : oe.thumbnail) || void 0
4203
- }
4204
- },
4205
- userLiked: ((ce = k == null ? void 0 : k.own_reactions) == null ? void 0 : ce.like) && ((te = k == null ? void 0 : k.own_reactions) == null ? void 0 : te.like.length) > 0,
4206
- likes: (k == null ? void 0 : k.reaction_counts.like) || 0,
4207
- comments: (k == null ? void 0 : k.reaction_counts.reply) || 0
4208
- },
4209
- links: {
4210
- post: `${e}/${t}/${k == null ? void 0 : k.id}`,
4211
- comments: `${e}/${t}/${k == null ? void 0 : k.id}`
4212
- },
4213
- functions: {
4265
+ !g && Array.isArray(h) && (h == null ? void 0 : h.map((w) => {
4266
+ var B, U, Y, K, ie, le, ce, ue, oe, R, te, X;
4267
+ const G = ((B = w == null ? void 0 : w.actor) == null ? void 0 : B.id) === (p == null ? void 0 : p.id), L = Rt(n, G);
4268
+ return /* @__PURE__ */ r.jsxs(Et, { children: [
4269
+ /* @__PURE__ */ r.jsx(
4270
+ Ot,
4271
+ {
4214
4272
  content: {
4215
- createContent: () => null,
4216
- deleteContent: () => null,
4217
- updateContent: (ue, me) => T({ activityInfo: ue, content: me })
4273
+ type: "post",
4274
+ body: w == null ? void 0 : w.content,
4275
+ canLike: L,
4276
+ createdAt: (w == null ? void 0 : w.time) || "",
4277
+ slugs: { parentId: t, activityId: w == null ? void 0 : w.id },
4278
+ slug: w == null ? void 0 : w.id,
4279
+ author: {
4280
+ id: (U = w == null ? void 0 : w.actor) == null ? void 0 : U.id,
4281
+ name: `${(K = (Y = w == null ? void 0 : w.actor) == null ? void 0 : Y.data) == null ? void 0 : K.name}`,
4282
+ organization: (le = (ie = w == null ? void 0 : w.actor) == null ? void 0 : ie.data) == null ? void 0 : le.organization,
4283
+ jobTitle: (ue = (ce = w == null ? void 0 : w.actor) == null ? void 0 : ce.data) == null ? void 0 : ue.jobTitle,
4284
+ image: {
4285
+ thumbnail: ((R = (oe = w == null ? void 0 : w.actor) == null ? void 0 : oe.data) == null ? void 0 : R.thumbnail) || void 0
4286
+ }
4287
+ },
4288
+ userLiked: ((te = w == null ? void 0 : w.own_reactions) == null ? void 0 : te.like) && ((X = w == null ? void 0 : w.own_reactions) == null ? void 0 : X.like.length) > 0,
4289
+ likes: (w == null ? void 0 : w.reaction_counts.like) || 0,
4290
+ comments: (w == null ? void 0 : w.reaction_counts.reply) || 0
4218
4291
  },
4219
- likes: {
4220
- createLike: () => {
4221
- F({ activityId: k == null ? void 0 : k.id });
4292
+ links: {
4293
+ post: `${e}/${t}/${w == null ? void 0 : w.id}`,
4294
+ comments: `${e}/${t}/${w == null ? void 0 : w.id}`
4295
+ },
4296
+ functions: {
4297
+ content: {
4298
+ createContent: () => null,
4299
+ deleteContent: () => null,
4300
+ updateContent: (ne, me) => T({ activityInfo: ne, content: me })
4301
+ },
4302
+ likes: {
4303
+ createLike: () => {
4304
+ N({ activityId: w == null ? void 0 : w.id });
4305
+ },
4306
+ deleteLike: () => {
4307
+ q({ activityId: w == null ? void 0 : w.id });
4308
+ }
4222
4309
  },
4223
- deleteLike: () => {
4224
- q({ activityId: k == null ? void 0 : k.id });
4310
+ comments: {
4311
+ openComments: () => null
4225
4312
  }
4226
4313
  },
4227
- comments: {
4228
- openComments: () => null
4229
- }
4314
+ isTruncated: !0
4230
4315
  }
4231
- },
4232
- k == null ? void 0 : k.id
4233
- );
4316
+ ),
4317
+ /* @__PURE__ */ r.jsx(Ne, {})
4318
+ ] }, w == null ? void 0 : w.id);
4234
4319
  }))
4235
4320
  ] });
4236
- }, Fs = ({
4321
+ }, Rs = ({
4237
4322
  queryClient: e,
4238
4323
  queryKey: t,
4239
4324
  mutationFn: n
@@ -4252,7 +4337,7 @@ const To = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4252
4337
  })), { previousActivity: i };
4253
4338
  }, onSettled: () => {
4254
4339
  e.invalidateQueries({ queryKey: t });
4255
- } }), Rs = ({
4340
+ } }), Os = ({
4256
4341
  queryClient: e,
4257
4342
  queryKey: t,
4258
4343
  mutationFn: n
@@ -4278,7 +4363,7 @@ const To = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4278
4363
  onError: (l, d, a) => {
4279
4364
  e.setQueryData(t, a.previousActivity);
4280
4365
  }
4281
- }), Os = ({
4366
+ }), Ls = ({
4282
4367
  queryClient: e,
4283
4368
  queryKey: t,
4284
4369
  mutationFn: n
@@ -4302,7 +4387,7 @@ const To = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4302
4387
  ...a,
4303
4388
  latest_reactions: { reply: i }
4304
4389
  })), { previousActivity: a };
4305
- } }), Ls = ({
4390
+ } }), Bs = ({
4306
4391
  queryClient: e,
4307
4392
  queryKey: t,
4308
4393
  user: n,
@@ -4328,14 +4413,14 @@ const To = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4328
4413
  const u = (f = c.latest_reactions.reply) == null ? void 0 : f.map((p) => {
4329
4414
  var h;
4330
4415
  return p.id === i ? (h = p.latest_children.reply) == null ? void 0 : h.filter(
4331
- (v) => v.user_id !== (n == null ? void 0 : n.id)
4416
+ (k) => k.user_id !== (n == null ? void 0 : n.id)
4332
4417
  ) : p;
4333
4418
  });
4334
4419
  return e.setQueryData(t, () => ({
4335
4420
  ...c,
4336
4421
  latest_reactions: { reply: u }
4337
4422
  })), { previousActivity: c };
4338
- } }), Bs = ({
4423
+ } }), Is = ({
4339
4424
  basePath: e,
4340
4425
  parentId: t,
4341
4426
  activityId: n,
@@ -4343,23 +4428,23 @@ const To = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4343
4428
  isMember: o,
4344
4429
  functions: { createReply: l, editReply: d, like: a, unlike: i, join: c, leave: u }
4345
4430
  }) => {
4346
- const f = P(), p = Nt(), h = ye(je), _ = Fs({
4431
+ const f = F(), p = At(), h = ye(je), _ = Rs({
4347
4432
  queryClient: p,
4348
4433
  queryKey: [e, t, n],
4349
4434
  mutationFn: l
4350
- }), { mutate: v } = fe(_), g = Rs({
4435
+ }), { mutate: k } = fe(_), g = Os({
4351
4436
  queryClient: p,
4352
4437
  queryKey: [e, t, n],
4353
- mutationFn: async (w) => d(w)
4438
+ mutationFn: async (v) => d(v)
4354
4439
  }), {
4355
4440
  mutate: E
4356
- } = fe(g), x = Os({
4441
+ } = fe(g), b = Ls({
4357
4442
  queryClient: p,
4358
4443
  queryKey: [e, t, n],
4359
4444
  mutationFn: a
4360
4445
  }), {
4361
- mutate: $
4362
- } = fe(x), T = Ls({
4446
+ mutate: S
4447
+ } = fe(b), T = Bs({
4363
4448
  queryClient: p,
4364
4449
  queryKey: [e, t, n],
4365
4450
  user: h,
@@ -4367,10 +4452,10 @@ const To = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4367
4452
  }), {
4368
4453
  mutate: M
4369
4454
  } = fe(T), Q = Ee(
4370
- ({ replyId: w }) => $({ replyId: w }),
4371
- [$]
4455
+ ({ replyId: v }) => S({ replyId: v }),
4456
+ [S]
4372
4457
  ), V = Ee(
4373
- ({ replyId: w }) => M({ replyId: w }),
4458
+ ({ replyId: v }) => M({ replyId: v }),
4374
4459
  [M]
4375
4460
  );
4376
4461
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
@@ -4378,7 +4463,7 @@ const To = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4378
4463
  Nn,
4379
4464
  {
4380
4465
  contentType: "post",
4381
- createPost: v,
4466
+ createPost: k,
4382
4467
  membershipRequiredToPost: {
4383
4468
  isMember: o,
4384
4469
  required: !0,
@@ -4388,37 +4473,37 @@ const To = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4388
4473
  }
4389
4474
  }
4390
4475
  ),
4391
- (s == null ? void 0 : s.length) === 0 || (s == null ? void 0 : s.map((w) => {
4392
- var Y, B, L, U, G, K, ie, le, se, R, ee, oe, ce, te, ue, me, pe;
4393
- const F = ((Y = w == null ? void 0 : w.latest_children) == null ? void 0 : Y.like) && ((B = w == null ? void 0 : w.latest_children) == null ? void 0 : B.like.filter(
4476
+ (s == null ? void 0 : s.length) === 0 || (s == null ? void 0 : s.map((v) => {
4477
+ var G, L, B, U, Y, K, ie, le, ce, ue, oe, R, te, X, ne, me, pe;
4478
+ const N = ((G = v == null ? void 0 : v.latest_children) == null ? void 0 : G.like) && ((L = v == null ? void 0 : v.latest_children) == null ? void 0 : L.like.filter(
4394
4479
  (ge) => ge.user_id === (h == null ? void 0 : h.id)
4395
- )), q = ((L = w == null ? void 0 : w.user) == null ? void 0 : L.id) === (h == null ? void 0 : h.id), k = Ft(o, q);
4480
+ )), q = ((B = v == null ? void 0 : v.user) == null ? void 0 : B.id) === (h == null ? void 0 : h.id), w = Rt(o, q);
4396
4481
  return /* @__PURE__ */ r.jsx(
4397
- Rt,
4482
+ Ot,
4398
4483
  {
4399
4484
  content: {
4400
4485
  type: "post",
4401
- body: typeof w.data.content == "string" ? (U = w == null ? void 0 : w.data) == null ? void 0 : U.content : ((K = (G = w == null ? void 0 : w.data) == null ? void 0 : G.content) == null ? void 0 : K.text) || "",
4402
- canLike: k,
4403
- createdAt: w == null ? void 0 : w.created_at,
4486
+ body: typeof v.data.content == "string" ? (U = v == null ? void 0 : v.data) == null ? void 0 : U.content : ((K = (Y = v == null ? void 0 : v.data) == null ? void 0 : Y.content) == null ? void 0 : K.text) || "",
4487
+ canLike: w,
4488
+ createdAt: v == null ? void 0 : v.created_at,
4404
4489
  slugs: {
4405
4490
  question: `${e}/${t}/${n}`,
4406
4491
  parentId: t,
4407
- reply: w == null ? void 0 : w.id
4492
+ reply: v == null ? void 0 : v.id
4408
4493
  },
4409
- slug: `${e}/${t}/${n}#${w == null ? void 0 : w.id}`,
4494
+ slug: `${e}/${t}/${n}#${v == null ? void 0 : v.id}`,
4410
4495
  author: {
4411
- id: (ie = w == null ? void 0 : w.user) == null ? void 0 : ie.id,
4412
- name: (se = (le = w == null ? void 0 : w.user) == null ? void 0 : le.data) == null ? void 0 : se.name,
4413
- organization: (ee = (R = w == null ? void 0 : w.user) == null ? void 0 : R.data) == null ? void 0 : ee.organization,
4414
- jobTitle: (ce = (oe = w == null ? void 0 : w.user) == null ? void 0 : oe.data) == null ? void 0 : ce.jobTitle,
4496
+ id: (ie = v == null ? void 0 : v.user) == null ? void 0 : ie.id,
4497
+ name: (ce = (le = v == null ? void 0 : v.user) == null ? void 0 : le.data) == null ? void 0 : ce.name,
4498
+ organization: (oe = (ue = v == null ? void 0 : v.user) == null ? void 0 : ue.data) == null ? void 0 : oe.organization,
4499
+ jobTitle: (te = (R = v == null ? void 0 : v.user) == null ? void 0 : R.data) == null ? void 0 : te.jobTitle,
4415
4500
  image: {
4416
- thumbnail: ((ue = (te = w == null ? void 0 : w.user) == null ? void 0 : te.data) == null ? void 0 : ue.thumbnail) || void 0
4501
+ thumbnail: ((ne = (X = v == null ? void 0 : v.user) == null ? void 0 : X.data) == null ? void 0 : ne.thumbnail) || void 0
4417
4502
  }
4418
4503
  },
4419
- userLiked: !!(F != null && F.length),
4420
- likes: ((me = w == null ? void 0 : w.children_counts) == null ? void 0 : me.like) || 0,
4421
- comments: ((pe = w == null ? void 0 : w.children_counts) == null ? void 0 : pe.reply) || 0
4504
+ userLiked: !!(N != null && N.length),
4505
+ likes: ((me = v == null ? void 0 : v.children_counts) == null ? void 0 : me.like) || 0,
4506
+ comments: ((pe = v == null ? void 0 : v.children_counts) == null ? void 0 : pe.reply) || 0
4422
4507
  },
4423
4508
  functions: {
4424
4509
  content: {
@@ -4427,8 +4512,8 @@ const To = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4427
4512
  updateContent: (ge, Se) => E({ replyInfo: ge, content: Se })
4428
4513
  },
4429
4514
  likes: {
4430
- createLike: () => Q({ replyId: w == null ? void 0 : w.id }),
4431
- deleteLike: () => V({ replyId: w == null ? void 0 : w.id })
4515
+ createLike: () => Q({ replyId: v == null ? void 0 : v.id }),
4516
+ deleteLike: () => V({ replyId: v == null ? void 0 : v.id })
4432
4517
  },
4433
4518
  comments: {
4434
4519
  openComments: () => {
@@ -4436,11 +4521,11 @@ const To = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4436
4521
  }
4437
4522
  }
4438
4523
  },
4439
- w == null ? void 0 : w.id
4524
+ v == null ? void 0 : v.id
4440
4525
  );
4441
4526
  }))
4442
4527
  ] });
4443
- }, Is = ({
4528
+ }, Hs = ({
4444
4529
  queryClient: e,
4445
4530
  queryKey: t,
4446
4531
  mutationFn: n
@@ -4464,7 +4549,7 @@ const To = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4464
4549
  onSettled: () => {
4465
4550
  e.invalidateQueries({ queryKey: t });
4466
4551
  }
4467
- }), Hs = ({
4552
+ }), Qs = ({
4468
4553
  queryClient: e,
4469
4554
  queryKey: t,
4470
4555
  mutationFn: n
@@ -4484,7 +4569,7 @@ const To = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4484
4569
  })), { previousActivity: i };
4485
4570
  }, onSettled: () => {
4486
4571
  e.invalidateQueries({ queryKey: t });
4487
- } }), Qs = ({
4572
+ } }), Us = ({
4488
4573
  queryClient: e,
4489
4574
  queryKey: t,
4490
4575
  user: n,
@@ -4514,7 +4599,7 @@ const To = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4514
4599
  })), { previousActivity: u };
4515
4600
  }, onSettled: () => {
4516
4601
  e.invalidateQueries({ queryKey: t });
4517
- } }), Co = ({
4602
+ } }), No = ({
4518
4603
  basePath: e,
4519
4604
  parentId: t,
4520
4605
  activityId: n,
@@ -4532,60 +4617,60 @@ const To = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4532
4617
  leave: h
4533
4618
  }
4534
4619
  }) => {
4535
- var L, U, G, K, ie, le, se, R, ee, oe, ce;
4536
- const _ = ye(je), v = Nt(), {
4620
+ var B, U, Y, K, ie, le, ce, ue, oe, R, te;
4621
+ const _ = ye(je), k = At(), {
4537
4622
  data: g,
4538
4623
  error: E,
4539
- isLoading: x,
4540
- isFetching: $
4624
+ isLoading: b,
4625
+ isFetching: S
4541
4626
  } = cn({
4542
4627
  queryKey: [e, t, n],
4543
4628
  queryFn: o
4544
- }), T = Is({
4545
- queryClient: v,
4629
+ }), T = Hs({
4630
+ queryClient: k,
4546
4631
  queryKey: [e, t, n],
4547
- mutationFn: async (te) => await l(te)
4632
+ mutationFn: async (X) => await l(X)
4548
4633
  }), {
4549
4634
  mutate: M
4550
- } = fe(T), Q = Hs({
4551
- queryClient: v,
4635
+ } = fe(T), Q = Qs({
4636
+ queryClient: k,
4552
4637
  queryKey: [e, t, n],
4553
4638
  mutationFn: d
4554
4639
  }), {
4555
4640
  mutate: V
4556
- } = fe(Q), w = Qs({
4557
- queryClient: v,
4641
+ } = fe(Q), v = Us({
4642
+ queryClient: k,
4558
4643
  queryKey: [e, t, n],
4559
4644
  user: _,
4560
4645
  mutationFn: async () => {
4561
- var ue, me, pe;
4562
- const te = (pe = (me = (ue = g == null ? void 0 : g.latest_reactions) == null ? void 0 : ue.like) == null ? void 0 : me.find(
4646
+ var ne, me, pe;
4647
+ const X = (pe = (me = (ne = g == null ? void 0 : g.latest_reactions) == null ? void 0 : ne.like) == null ? void 0 : me.find(
4563
4648
  (ge) => ge.user_id === (_ == null ? void 0 : _.id)
4564
4649
  )) == null ? void 0 : pe.id;
4565
- await a({ activityId: n, reactionId: te });
4650
+ await a({ activityId: n, reactionId: X });
4566
4651
  },
4567
4652
  activity: g
4568
4653
  }), {
4569
- mutate: F
4570
- } = fe(w), q = Ee(
4571
- ({ activityId: te }) => V({ activityId: te }),
4654
+ mutate: N
4655
+ } = fe(v), q = Ee(
4656
+ ({ activityId: X }) => V({ activityId: X }),
4572
4657
  [V]
4573
- ), k = Ee(
4574
- async ({ activityId: te }) => F({ activityId: te }),
4575
- [F]
4658
+ ), w = Ee(
4659
+ async ({ activityId: X }) => N({ activityId: X }),
4660
+ [N]
4576
4661
  );
4577
4662
  if (E)
4578
- return /* @__PURE__ */ r.jsx(rt, { variant: "error", text: E.message });
4579
- if (x || $)
4663
+ return /* @__PURE__ */ r.jsx(st, { variant: "error", text: E.message });
4664
+ if (b || S)
4580
4665
  return /* @__PURE__ */ r.jsx(be, { style: { height: "400px" } });
4581
- const Y = ((L = g == null ? void 0 : g.actor) == null ? void 0 : L.id) === (_ == null ? void 0 : _.id), B = Ft(s, Y);
4666
+ const G = ((B = g == null ? void 0 : g.actor) == null ? void 0 : B.id) === (_ == null ? void 0 : _.id), L = Rt(s, G);
4582
4667
  return /* @__PURE__ */ r.jsx(
4583
- Rt,
4668
+ Ot,
4584
4669
  {
4585
4670
  content: {
4586
4671
  type: "post",
4587
4672
  body: g == null ? void 0 : g.content,
4588
- canLike: B,
4673
+ canLike: L,
4589
4674
  createdAt: (g == null ? void 0 : g.time) || "",
4590
4675
  slugs: {
4591
4676
  question: `${t}/${n}`,
@@ -4595,27 +4680,27 @@ const To = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4595
4680
  slug: n,
4596
4681
  author: {
4597
4682
  id: (U = g == null ? void 0 : g.actor) == null ? void 0 : U.id,
4598
- name: (G = g == null ? void 0 : g.actor) == null ? void 0 : G.data.name,
4683
+ name: (Y = g == null ? void 0 : g.actor) == null ? void 0 : Y.data.name,
4599
4684
  organization: (K = g == null ? void 0 : g.actor) == null ? void 0 : K.data.organization,
4600
4685
  jobTitle: (ie = g == null ? void 0 : g.actor) == null ? void 0 : ie.data.jobTitle,
4601
4686
  image: {
4602
4687
  thumbnail: ((le = g == null ? void 0 : g.actor) == null ? void 0 : le.data.thumbnail) || void 0
4603
4688
  }
4604
4689
  },
4605
- userLiked: ((se = g == null ? void 0 : g.own_reactions) == null ? void 0 : se.like) && ((R = g == null ? void 0 : g.own_reactions) == null ? void 0 : R.like.length) > 0,
4690
+ userLiked: ((ce = g == null ? void 0 : g.own_reactions) == null ? void 0 : ce.like) && ((ue = g == null ? void 0 : g.own_reactions) == null ? void 0 : ue.like.length) > 0,
4606
4691
  likes: g && (g == null ? void 0 : g.reaction_counts.like),
4607
4692
  comments: g && (g == null ? void 0 : g.reaction_counts.reply)
4608
4693
  },
4609
- originalAuthorId: (ee = g == null ? void 0 : g.actor) == null ? void 0 : ee.id,
4694
+ originalAuthorId: (oe = g == null ? void 0 : g.actor) == null ? void 0 : oe.id,
4610
4695
  functions: {
4611
4696
  content: {
4612
4697
  createContent: () => console.log("create"),
4613
4698
  deleteContent: () => console.log("delete"),
4614
- updateContent: (te, ue) => M({ activityInfo: te, content: ue })
4699
+ updateContent: (X, ne) => M({ activityInfo: X, content: ne })
4615
4700
  },
4616
4701
  likes: {
4617
4702
  createLike: () => q({ activityId: n }),
4618
- deleteLike: () => k({ activityId: n })
4703
+ deleteLike: () => w({ activityId: n })
4619
4704
  },
4620
4705
  comments: {
4621
4706
  openComments: () => {
@@ -4625,16 +4710,16 @@ const To = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4625
4710
  children: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
4626
4711
  /* @__PURE__ */ r.jsxs("h3", { children: [
4627
4712
  "Comments (",
4628
- ((oe = g == null ? void 0 : g.reaction_counts) == null ? void 0 : oe.reply) || 0,
4713
+ ((R = g == null ? void 0 : g.reaction_counts) == null ? void 0 : R.reply) || 0,
4629
4714
  ")"
4630
4715
  ] }),
4631
4716
  /* @__PURE__ */ r.jsx(
4632
- Bs,
4717
+ Is,
4633
4718
  {
4634
4719
  basePath: e,
4635
4720
  parentId: t,
4636
4721
  activityId: n,
4637
- repliesList: (ce = g == null ? void 0 : g.latest_reactions) == null ? void 0 : ce.reply,
4722
+ repliesList: (te = g == null ? void 0 : g.latest_reactions) == null ? void 0 : te.reply,
4638
4723
  isMember: s,
4639
4724
  functions: {
4640
4725
  createReply: i,
@@ -4650,7 +4735,7 @@ const To = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4650
4735
  },
4651
4736
  n
4652
4737
  );
4653
- }, No = ({ id: e, data: { jobTitle: t, name: n, organization: s, thumbnail: o } }) => ({
4738
+ }, Ao = ({ id: e, data: { jobTitle: t, name: n, organization: s, thumbnail: o } }) => ({
4654
4739
  id: e,
4655
4740
  name: n,
4656
4741
  jobTitle: t,
@@ -4658,85 +4743,85 @@ const To = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4658
4743
  image: { thumbnail: o }
4659
4744
  });
4660
4745
  export {
4661
- Et as ASSETS_BUCKET,
4662
- Mo as ActivitiesFeed,
4663
- Co as ActivitySection,
4746
+ $t as ASSETS_BUCKET,
4747
+ Co as ActivitiesFeed,
4748
+ No as ActivitySection,
4664
4749
  Nn as AddPost,
4665
- io as BannerSection,
4666
- ho as Breadcrumbs,
4750
+ lo as BannerSection,
4751
+ go as Breadcrumbs,
4667
4752
  W as Button,
4668
- tt as ButtonWrapper,
4753
+ nt as ButtonWrapper,
4669
4754
  as as CacheProvider,
4670
4755
  xn as CollapsibleSection,
4671
- xo as Columns,
4672
- po as CommunityDetails,
4756
+ vo as Columns,
4757
+ ho as CommunityDetails,
4673
4758
  os as Contributors,
4674
4759
  An as ConversationContext,
4675
4760
  gs as CookieBanner,
4676
- Eo as DiscussionConversation,
4761
+ So as DiscussionConversation,
4677
4762
  Cn as DiscussionForm,
4678
4763
  $s as DiscussionLikes,
4679
- Rt as DiscussionPost,
4680
- To as DiscussionThread,
4681
- Le as Divider,
4682
- oo as DownloadSection,
4683
- Re as EMAILS,
4684
- vo as EmailHelperTextBox,
4685
- rt as EmptyStateBox,
4686
- go as Filters,
4764
+ Ot as DiscussionPost,
4765
+ Mo as DiscussionThread,
4766
+ Ne as Divider,
4767
+ ao as DownloadSection,
4768
+ Oe as EMAILS,
4769
+ bo as EmailHelperTextBox,
4770
+ st as EmptyStateBox,
4771
+ _o as Filters,
4687
4772
  cs as FlagsProvider,
4688
4773
  En as Footer,
4689
4774
  _n as FullWidthSection,
4690
- fo as GlobalProviders,
4775
+ po as GlobalProviders,
4691
4776
  Mn as Header,
4692
4777
  Ur as HelperTextBox,
4693
4778
  mn as HiddenFromScreenReaders,
4694
- uo as HideShowTextBox,
4779
+ mo as HideShowTextBox,
4695
4780
  ke as HighlightedTextBox,
4696
4781
  us as IntlProvider,
4697
4782
  bs as InviteForm,
4698
- So as InviteModal,
4783
+ $o as InviteModal,
4699
4784
  yn as JoinButton,
4700
- _o as LanguageSwitcher,
4701
- nt as Link,
4785
+ xo as LanguageSwitcher,
4786
+ rt as Link,
4702
4787
  fs as LoadMore,
4703
- mo as LoadingBlock,
4788
+ fo as LoadingBlock,
4704
4789
  be as LoadingPlaceholder,
4705
4790
  ns as LoadingState,
4706
4791
  jn as Logo,
4707
- ao as LogoSection,
4792
+ io as LogoSection,
4708
4793
  nn as MarkdownText,
4709
- lo as MarketingBox,
4710
- Pt as Member,
4711
- jo as MembersList,
4794
+ co as MarketingBox,
4795
+ Ft as Member,
4796
+ Eo as MembersList,
4712
4797
  Ts as Modal,
4713
4798
  ps as MoreMenu,
4714
- co as NUMBER_OF_USERS,
4799
+ uo as NUMBER_OF_USERS,
4715
4800
  Dn as Overlay,
4716
- ko as PageLayout,
4717
- bo as PasswordRules,
4801
+ yo as PageLayout,
4802
+ wo as PasswordRules,
4718
4803
  qr as Pill,
4719
- Dt as ProfilePicture,
4804
+ Pt as ProfilePicture,
4720
4805
  es as ProgressBar,
4721
- wo as Rating,
4722
- Bs as RepliesFeed,
4723
- $o as ResponsesHeading,
4806
+ ko as Rating,
4807
+ Is as RepliesFeed,
4808
+ To as ResponsesHeading,
4724
4809
  Br as ResponsiveImage,
4725
4810
  vs as SearchForm,
4726
4811
  Zr as Span,
4727
- $t as StatusBanner,
4728
- yo as Tags,
4812
+ Mt as StatusBanner,
4813
+ jo as Tags,
4729
4814
  Ir as Tooltip,
4730
4815
  je as UserContext,
4731
4816
  ds as UserProvider,
4732
- ne as VisuallyHidden,
4817
+ re as VisuallyHidden,
4733
4818
  Ms as addAriaProps,
4734
4819
  kn as getMember,
4735
4820
  Xe as headerData,
4736
- No as mapGetStreamData,
4821
+ Ao as mapGetStreamData,
4737
4822
  jr as useCurrentPath,
4738
4823
  Ce as useEffectAfterMount,
4739
- et as useScreenWidth,
4824
+ tt as useScreenWidth,
4740
4825
  Sr as useScrollListener,
4741
- so as useScrollToHash
4826
+ oo as useScrollToHash
4742
4827
  };