@apolitical/component-library 1.13.3-beta.3 → 1.13.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.mjs CHANGED
@@ -1,10 +1,10 @@
1
- import N, { memo as Ne, useState as P, useEffect as z, useRef as ee, useMemo as qe, Children as jt, createContext as At, useContext as ye, Fragment as Et, 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
4
  import { useIntl as F, IntlProvider as ir, createIntl as lr, FormattedMessage as we } from "react-intl";
5
5
  import Ke from "truncate";
6
6
  import et 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";
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";
@@ -26,24 +26,24 @@ var dn = { exports: {} };
26
26
  (function() {
27
27
  var t = {}.hasOwnProperty;
28
28
  function n() {
29
- for (var s = [], o = 0; o < arguments.length; o++) {
30
- var l = arguments[o];
31
- if (l) {
32
- var m = typeof l;
33
- if (m === "string" || m === "number")
34
- s.push(l);
35
- else if (Array.isArray(l)) {
36
- if (l.length) {
37
- var a = n.apply(null, l);
38
- a && s.push(a);
29
+ for (var s = [], a = 0; a < arguments.length; a++) {
30
+ var i = arguments[a];
31
+ if (i) {
32
+ var d = typeof i;
33
+ if (d === "string" || d === "number")
34
+ s.push(i);
35
+ else if (Array.isArray(i)) {
36
+ if (i.length) {
37
+ var o = n.apply(null, i);
38
+ o && s.push(o);
39
39
  }
40
- } else if (m === "object") {
41
- if (l.toString !== Object.prototype.toString && !l.toString.toString().includes("[native code]")) {
42
- s.push(l.toString());
40
+ } else if (d === "object") {
41
+ if (i.toString !== Object.prototype.toString && !i.toString.toString().includes("[native code]")) {
42
+ s.push(i.toString());
43
43
  continue;
44
44
  }
45
- for (var i in l)
46
- t.call(l, i) && l[i] && s.push(i);
45
+ for (var l in i)
46
+ t.call(i, l) && i[l] && s.push(l);
47
47
  }
48
48
  }
49
49
  }
@@ -52,8 +52,8 @@ var dn = { exports: {} };
52
52
  e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
53
53
  })();
54
54
  })(dn);
55
- var br = dn.exports;
56
- const j = /* @__PURE__ */ xr(br), vr = ({ element: e = "span", showOnFocus: t = !0, children: n, ...s }) => N.createElement(e, { ...s, className: j("hidden", { "show-on-focus": t }), children: n }), re = Ne(vr), wr = ({ element: e = "span", children: t = null, ...n }) => N.createElement(e, { ...n, "aria-hidden": !0 }, t), mn = Ne(wr);
55
+ var vr = dn.exports;
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
57
  var St = { exports: {} }, Pe = {};
58
58
  /**
59
59
  * @license React
@@ -69,18 +69,18 @@ function kr() {
69
69
  if (qt)
70
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 };
73
- function m(a, i, c) {
74
- var u, f = {}, p = null, h = null;
75
- c !== void 0 && (p = "" + c), i.key !== void 0 && (p = "" + i.key), i.ref !== void 0 && (h = i.ref);
76
- for (u in i)
77
- s.call(i, u) && !l.hasOwnProperty(u) && (f[u] = i[u]);
78
- if (a && a.defaultProps)
79
- for (u in i = a.defaultProps, i)
80
- f[u] === void 0 && (f[u] = i[u]);
81
- return { $$typeof: t, type: a, key: p, ref: h, props: f, _owner: o.current };
72
+ var e = A, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
73
+ function d(o, l, m) {
74
+ var c, f = {}, p = null, h = null;
75
+ m !== void 0 && (p = "" + m), l.key !== void 0 && (p = "" + l.key), l.ref !== void 0 && (h = l.ref);
76
+ for (c in l)
77
+ s.call(l, c) && !i.hasOwnProperty(c) && (f[c] = l[c]);
78
+ if (o && o.defaultProps)
79
+ for (c in l = o.defaultProps, l)
80
+ f[c] === void 0 && (f[c] = l[c]);
81
+ return { $$typeof: t, type: o, key: p, ref: h, props: f, _owner: a.current };
82
82
  }
83
- return Pe.Fragment = n, Pe.jsx = m, Pe.jsxs = m, Pe;
83
+ return Pe.Fragment = n, Pe.jsx = d, Pe.jsxs = d, Pe;
84
84
  }
85
85
  var Fe = {};
86
86
  /**
@@ -95,86 +95,86 @@ var Fe = {};
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"), m = 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
- function g(d) {
100
- if (d === null || typeof d != "object")
98
+ var e = A, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), o = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), c = 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
+ function g(u) {
100
+ if (u === null || typeof u != "object")
101
101
  return null;
102
- var x = _ && d[_] || d[k];
102
+ var x = _ && u[_] || u[k];
103
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 v(d) {
106
+ function b(u) {
107
107
  {
108
108
  for (var x = arguments.length, y = new Array(x > 1 ? x - 1 : 0), $ = 1; $ < x; $++)
109
109
  y[$ - 1] = arguments[$];
110
- S("error", d, y);
110
+ S("error", u, y);
111
111
  }
112
112
  }
113
- function S(d, x, y) {
113
+ function S(u, x, y) {
114
114
  {
115
115
  var $ = E.ReactDebugCurrentFrame, O = $.getStackAddendum();
116
116
  O !== "" && (x += "%s", y = y.concat([O]));
117
117
  var H = y.map(function(D) {
118
118
  return String(D);
119
119
  });
120
- H.unshift("Warning: " + x), Function.prototype.apply.call(console[d], console, H);
120
+ H.unshift("Warning: " + x), Function.prototype.apply.call(console[u], console, H);
121
121
  }
122
122
  }
123
- var T = !1, M = !1, Q = !1, V = !1, b = !1, A;
124
- A = Symbol.for("react.module.reference");
125
- function q(d) {
126
- return !!(typeof d == "string" || typeof d == "function" || d === s || d === l || b || d === o || d === c || d === u || V || d === h || T || M || Q || typeof d == "object" && d !== null && (d.$$typeof === p || d.$$typeof === f || d.$$typeof === m || d.$$typeof === a || d.$$typeof === i || // This needs to include all possible module reference object
123
+ var T = !1, M = !1, Q = !1, V = !1, v = !1, N;
124
+ N = Symbol.for("react.module.reference");
125
+ function q(u) {
126
+ return !!(typeof u == "string" || typeof u == "function" || u === s || u === i || v || u === a || u === m || u === c || V || u === h || T || M || Q || typeof u == "object" && u !== null && (u.$$typeof === p || u.$$typeof === f || u.$$typeof === d || u.$$typeof === o || u.$$typeof === l || // 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
- d.$$typeof === A || d.getModuleId !== void 0));
130
+ u.$$typeof === N || u.getModuleId !== void 0));
131
131
  }
132
- function w(d, x, y) {
133
- var $ = d.displayName;
132
+ function w(u, x, y) {
133
+ var $ = u.displayName;
134
134
  if ($)
135
135
  return $;
136
136
  var O = x.displayName || x.name || "";
137
137
  return O !== "" ? y + "(" + O + ")" : y;
138
138
  }
139
- function G(d) {
140
- return d.displayName || "Context";
139
+ function G(u) {
140
+ return u.displayName || "Context";
141
141
  }
142
- function L(d) {
143
- if (d == null)
142
+ function L(u) {
143
+ if (u == null)
144
144
  return null;
145
- if (typeof d.tag == "number" && v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof d == "function")
146
- return d.displayName || d.name || null;
147
- if (typeof d == "string")
148
- return d;
149
- switch (d) {
145
+ if (typeof u.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof u == "function")
146
+ return u.displayName || u.name || null;
147
+ if (typeof u == "string")
148
+ return u;
149
+ switch (u) {
150
150
  case s:
151
151
  return "Fragment";
152
152
  case n:
153
153
  return "Portal";
154
- case l:
154
+ case i:
155
155
  return "Profiler";
156
- case o:
156
+ case a:
157
157
  return "StrictMode";
158
- case c:
158
+ case m:
159
159
  return "Suspense";
160
- case u:
160
+ case c:
161
161
  return "SuspenseList";
162
162
  }
163
- if (typeof d == "object")
164
- switch (d.$$typeof) {
165
- case a:
166
- var x = d;
163
+ if (typeof u == "object")
164
+ switch (u.$$typeof) {
165
+ case o:
166
+ var x = u;
167
167
  return G(x) + ".Consumer";
168
- case m:
169
- var y = d;
168
+ case d:
169
+ var y = u;
170
170
  return G(y._context) + ".Provider";
171
- case i:
172
- return w(d, d.render, "ForwardRef");
171
+ case l:
172
+ return w(u, u.render, "ForwardRef");
173
173
  case f:
174
- var $ = d.displayName || null;
175
- return $ !== null ? $ : L(d.type) || "Memo";
174
+ var $ = u.displayName || null;
175
+ return $ !== null ? $ : L(u.type) || "Memo";
176
176
  case p: {
177
- var O = d, H = O._payload, D = O._init;
177
+ var O = u, H = O._payload, D = O._init;
178
178
  try {
179
179
  return L(D(H));
180
180
  } catch {
@@ -192,20 +192,20 @@ function yr() {
192
192
  {
193
193
  if (U === 0) {
194
194
  Y = console.log, K = console.info, ie = console.warn, le = console.error, ce = console.group, ue = console.groupCollapsed, oe = console.groupEnd;
195
- var d = {
195
+ var u = {
196
196
  configurable: !0,
197
197
  enumerable: !0,
198
198
  value: R,
199
199
  writable: !0
200
200
  };
201
201
  Object.defineProperties(console, {
202
- info: d,
203
- log: d,
204
- warn: d,
205
- error: d,
206
- group: d,
207
- groupCollapsed: d,
208
- groupEnd: d
202
+ info: u,
203
+ log: u,
204
+ warn: u,
205
+ error: u,
206
+ group: u,
207
+ groupCollapsed: u,
208
+ groupEnd: u
209
209
  });
210
210
  }
211
211
  U++;
@@ -214,40 +214,40 @@ function yr() {
214
214
  function X() {
215
215
  {
216
216
  if (U--, U === 0) {
217
- var d = {
217
+ var u = {
218
218
  configurable: !0,
219
219
  enumerable: !0,
220
220
  writable: !0
221
221
  };
222
222
  Object.defineProperties(console, {
223
- log: B({}, d, {
223
+ log: B({}, u, {
224
224
  value: Y
225
225
  }),
226
- info: B({}, d, {
226
+ info: B({}, u, {
227
227
  value: K
228
228
  }),
229
- warn: B({}, d, {
229
+ warn: B({}, u, {
230
230
  value: ie
231
231
  }),
232
- error: B({}, d, {
232
+ error: B({}, u, {
233
233
  value: le
234
234
  }),
235
- group: B({}, d, {
235
+ group: B({}, u, {
236
236
  value: ce
237
237
  }),
238
- groupCollapsed: B({}, d, {
238
+ groupCollapsed: B({}, u, {
239
239
  value: ue
240
240
  }),
241
- groupEnd: B({}, d, {
241
+ groupEnd: B({}, u, {
242
242
  value: oe
243
243
  })
244
244
  });
245
245
  }
246
- U < 0 && v("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
249
  var ne = E.ReactCurrentDispatcher, me;
250
- function pe(d, x, y) {
250
+ function pe(u, x, y) {
251
251
  {
252
252
  if (me === void 0)
253
253
  try {
@@ -257,7 +257,7 @@ function yr() {
257
257
  me = $ && $[1] || "";
258
258
  }
259
259
  return `
260
- ` + me + d;
260
+ ` + me + u;
261
261
  }
262
262
  }
263
263
  var ge = !1, Se;
@@ -265,11 +265,11 @@ function yr() {
265
265
  var Pn = typeof WeakMap == "function" ? WeakMap : Map;
266
266
  Se = new Pn();
267
267
  }
268
- function Lt(d, x) {
269
- if (!d || ge)
268
+ function Lt(u, x) {
269
+ if (!u || ge)
270
270
  return "";
271
271
  {
272
- var y = Se.get(d);
272
+ var y = Se.get(u);
273
273
  if (y !== void 0)
274
274
  return y;
275
275
  }
@@ -294,14 +294,14 @@ function yr() {
294
294
  } catch (_e) {
295
295
  $ = _e;
296
296
  }
297
- Reflect.construct(d, [], D);
297
+ Reflect.construct(u, [], D);
298
298
  } else {
299
299
  try {
300
300
  D.call();
301
301
  } catch (_e) {
302
302
  $ = _e;
303
303
  }
304
- d.call(D.prototype);
304
+ u.call(D.prototype);
305
305
  }
306
306
  } else {
307
307
  try {
@@ -309,7 +309,7 @@ function yr() {
309
309
  } catch (_e) {
310
310
  $ = _e;
311
311
  }
312
- d();
312
+ u();
313
313
  }
314
314
  } catch (_e) {
315
315
  if (_e && $ && typeof _e.stack == "string") {
@@ -324,7 +324,7 @@ function yr() {
324
324
  if (J--, Z--, Z < 0 || C[J] !== se[Z]) {
325
325
  var de = `
326
326
  ` + C[J].replace(" at new ", " at ");
327
- return d.displayName && de.includes("<anonymous>") && (de = de.replace("<anonymous>", d.displayName)), typeof d == "function" && Se.set(d, de), de;
327
+ return u.displayName && de.includes("<anonymous>") && (de = de.replace("<anonymous>", u.displayName)), typeof u == "function" && Se.set(u, de), de;
328
328
  }
329
329
  while (J >= 1 && Z >= 0);
330
330
  break;
@@ -333,37 +333,37 @@ function yr() {
333
333
  } finally {
334
334
  ge = !1, ne.current = H, X(), Error.prepareStackTrace = O;
335
335
  }
336
- var Te = d ? d.displayName || d.name : "", Zt = Te ? pe(Te) : "";
337
- return typeof d == "function" && Se.set(d, Zt), Zt;
336
+ var Te = u ? u.displayName || u.name : "", Zt = Te ? pe(Te) : "";
337
+ return typeof u == "function" && Se.set(u, Zt), Zt;
338
338
  }
339
- function Fn(d, x, y) {
340
- return Lt(d, !1);
339
+ function Fn(u, x, y) {
340
+ return Lt(u, !1);
341
341
  }
342
- function Rn(d) {
343
- var x = d.prototype;
342
+ function Rn(u) {
343
+ var x = u.prototype;
344
344
  return !!(x && x.isReactComponent);
345
345
  }
346
- function Be(d, x, y) {
347
- if (d == null)
346
+ function Be(u, x, y) {
347
+ if (u == null)
348
348
  return "";
349
- if (typeof d == "function")
350
- return Lt(d, Rn(d));
351
- if (typeof d == "string")
352
- return pe(d);
353
- switch (d) {
354
- case c:
349
+ if (typeof u == "function")
350
+ return Lt(u, Rn(u));
351
+ if (typeof u == "string")
352
+ return pe(u);
353
+ switch (u) {
354
+ case m:
355
355
  return pe("Suspense");
356
- case u:
356
+ case c:
357
357
  return pe("SuspenseList");
358
358
  }
359
- if (typeof d == "object")
360
- switch (d.$$typeof) {
361
- case i:
362
- return Fn(d.render);
359
+ if (typeof u == "object")
360
+ switch (u.$$typeof) {
361
+ case l:
362
+ return Fn(u.render);
363
363
  case f:
364
- return Be(d.type, x, y);
364
+ return Be(u.type, x, y);
365
365
  case p: {
366
- var $ = d, O = $._payload, H = $._init;
366
+ var $ = u, O = $._payload, H = $._init;
367
367
  try {
368
368
  return Be(H(O), x, y);
369
369
  } catch {
@@ -373,55 +373,55 @@ function yr() {
373
373
  return "";
374
374
  }
375
375
  var Ie = Object.prototype.hasOwnProperty, Bt = {}, It = E.ReactDebugCurrentFrame;
376
- function He(d) {
377
- if (d) {
378
- var x = d._owner, y = Be(d.type, d._source, x ? x.type : null);
376
+ function He(u) {
377
+ if (u) {
378
+ var x = u._owner, y = Be(u.type, u._source, x ? x.type : null);
379
379
  It.setExtraStackFrame(y);
380
380
  } else
381
381
  It.setExtraStackFrame(null);
382
382
  }
383
- function On(d, x, y, $, O) {
383
+ function On(u, x, y, $, O) {
384
384
  {
385
385
  var H = Function.call.bind(Ie);
386
- for (var D in d)
387
- if (H(d, D)) {
386
+ for (var D in u)
387
+ if (H(u, D)) {
388
388
  var C = void 0;
389
389
  try {
390
- if (typeof d[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 d[D] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
390
+ if (typeof u[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 u[D] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
392
392
  throw se.name = "Invariant Violation", se;
393
393
  }
394
- C = d[D](x, D, $, y, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
394
+ C = u[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), v("%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), v("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 ot(d) {
404
- return Ln(d);
403
+ function ot(u) {
404
+ return Ln(u);
405
405
  }
406
- function Bn(d) {
406
+ function Bn(u) {
407
407
  {
408
- var x = typeof Symbol == "function" && Symbol.toStringTag, y = x && d[Symbol.toStringTag] || d.constructor.name || "Object";
408
+ var x = typeof Symbol == "function" && Symbol.toStringTag, y = x && u[Symbol.toStringTag] || u.constructor.name || "Object";
409
409
  return y;
410
410
  }
411
411
  }
412
- function In(d) {
412
+ function In(u) {
413
413
  try {
414
- return Ht(d), !1;
414
+ return Ht(u), !1;
415
415
  } catch {
416
416
  return !0;
417
417
  }
418
418
  }
419
- function Ht(d) {
420
- return "" + d;
419
+ function Ht(u) {
420
+ return "" + u;
421
421
  }
422
- function Qt(d) {
423
- if (In(d))
424
- return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Bn(d)), Ht(d);
422
+ function Qt(u) {
423
+ if (In(u))
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(u)), Ht(u);
425
425
  }
426
426
  var De = E.ReactCurrentOwner, Hn = {
427
427
  key: !0,
@@ -430,56 +430,56 @@ function yr() {
430
430
  __source: !0
431
431
  }, Ut, Wt, at;
432
432
  at = {};
433
- function Qn(d) {
434
- if (Ie.call(d, "ref")) {
435
- var x = Object.getOwnPropertyDescriptor(d, "ref").get;
433
+ function Qn(u) {
434
+ if (Ie.call(u, "ref")) {
435
+ var x = Object.getOwnPropertyDescriptor(u, "ref").get;
436
436
  if (x && x.isReactWarning)
437
437
  return !1;
438
438
  }
439
- return d.ref !== void 0;
439
+ return u.ref !== void 0;
440
440
  }
441
- function Un(d) {
442
- if (Ie.call(d, "key")) {
443
- var x = Object.getOwnPropertyDescriptor(d, "key").get;
441
+ function Un(u) {
442
+ if (Ie.call(u, "key")) {
443
+ var x = Object.getOwnPropertyDescriptor(u, "key").get;
444
444
  if (x && x.isReactWarning)
445
445
  return !1;
446
446
  }
447
- return d.key !== void 0;
447
+ return u.key !== void 0;
448
448
  }
449
- function Wn(d, x) {
450
- if (typeof d.ref == "string" && De.current && x && De.current.stateNode !== x) {
449
+ function Wn(u, x) {
450
+ if (typeof u.ref == "string" && De.current && x && De.current.stateNode !== x) {
451
451
  var y = L(De.current.type);
452
- at[y] || (v('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), d.ref), at[y] = !0);
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), u.ref), at[y] = !0);
453
453
  }
454
454
  }
455
- function zn(d, x) {
455
+ function zn(u, x) {
456
456
  {
457
457
  var y = function() {
458
- Ut || (Ut = !0, v("%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));
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
- y.isReactWarning = !0, Object.defineProperty(d, "key", {
460
+ y.isReactWarning = !0, Object.defineProperty(u, "key", {
461
461
  get: y,
462
462
  configurable: !0
463
463
  });
464
464
  }
465
465
  }
466
- function Vn(d, x) {
466
+ function Vn(u, x) {
467
467
  {
468
468
  var y = function() {
469
- Wt || (Wt = !0, v("%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));
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
- y.isReactWarning = !0, Object.defineProperty(d, "ref", {
471
+ y.isReactWarning = !0, Object.defineProperty(u, "ref", {
472
472
  get: y,
473
473
  configurable: !0
474
474
  });
475
475
  }
476
476
  }
477
- var Yn = function(d, x, y, $, O, H, D) {
477
+ var Yn = function(u, 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
- type: d,
482
+ type: u,
483
483
  key: x,
484
484
  ref: y,
485
485
  props: D,
@@ -503,53 +503,53 @@ function yr() {
503
503
  value: O
504
504
  }), Object.freeze && (Object.freeze(C.props), Object.freeze(C)), C;
505
505
  };
506
- function Gn(d, x, y, $, O) {
506
+ function Gn(u, x, y, $, O) {
507
507
  {
508
508
  var H, D = {}, C = null, se = null;
509
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
510
  for (H in x)
511
511
  Ie.call(x, H) && !Hn.hasOwnProperty(H) && (D[H] = x[H]);
512
- if (d && d.defaultProps) {
513
- var J = d.defaultProps;
512
+ if (u && u.defaultProps) {
513
+ var J = u.defaultProps;
514
514
  for (H in J)
515
515
  D[H] === void 0 && (D[H] = J[H]);
516
516
  }
517
517
  if (C || se) {
518
- var Z = typeof d == "function" ? d.displayName || d.name || "Unknown" : d;
518
+ var Z = typeof u == "function" ? u.displayName || u.name || "Unknown" : u;
519
519
  C && zn(D, Z), se && Vn(D, Z);
520
520
  }
521
- return Yn(d, C, se, O, $, De.current, D);
521
+ return Yn(u, C, se, O, $, De.current, D);
522
522
  }
523
523
  }
524
524
  var it = E.ReactCurrentOwner, zt = E.ReactDebugCurrentFrame;
525
- function $e(d) {
526
- if (d) {
527
- var x = d._owner, y = Be(d.type, d._source, x ? x.type : null);
525
+ function $e(u) {
526
+ if (u) {
527
+ var x = u._owner, y = Be(u.type, u._source, x ? x.type : null);
528
528
  zt.setExtraStackFrame(y);
529
529
  } else
530
530
  zt.setExtraStackFrame(null);
531
531
  }
532
532
  var lt;
533
533
  lt = !1;
534
- function ct(d) {
535
- return typeof d == "object" && d !== null && d.$$typeof === t;
534
+ function ct(u) {
535
+ return typeof u == "object" && u !== null && u.$$typeof === t;
536
536
  }
537
537
  function Vt() {
538
538
  {
539
539
  if (it.current) {
540
- var d = L(it.current.type);
541
- if (d)
540
+ var u = L(it.current.type);
541
+ if (u)
542
542
  return `
543
543
 
544
- Check the render method of \`` + d + "`.";
544
+ Check the render method of \`` + u + "`.";
545
545
  }
546
546
  return "";
547
547
  }
548
548
  }
549
- function Jn(d) {
549
+ function Jn(u) {
550
550
  {
551
- if (d !== void 0) {
552
- var x = d.fileName.replace(/^.*[\\\/]/, ""), y = d.lineNumber;
551
+ if (u !== void 0) {
552
+ var x = u.fileName.replace(/^.*[\\\/]/, ""), y = u.lineNumber;
553
553
  return `
554
554
 
555
555
  Check your code at ` + x + ":" + y + ".";
@@ -558,11 +558,11 @@ Check your code at ` + x + ":" + y + ".";
558
558
  }
559
559
  }
560
560
  var Yt = {};
561
- function Xn(d) {
561
+ function Xn(u) {
562
562
  {
563
563
  var x = Vt();
564
564
  if (!x) {
565
- var y = typeof d == "string" ? d : d.displayName || d.name;
565
+ var y = typeof u == "string" ? u : u.displayName || u.name;
566
566
  y && (x = `
567
567
 
568
568
  Check the top-level render call using <` + y + ">.");
@@ -570,47 +570,47 @@ Check the top-level render call using <` + y + ">.");
570
570
  return x;
571
571
  }
572
572
  }
573
- function Gt(d, x) {
573
+ function Gt(u, x) {
574
574
  {
575
- if (!d._store || d._store.validated || d.key != null)
575
+ if (!u._store || u._store.validated || u.key != null)
576
576
  return;
577
- d._store.validated = !0;
577
+ u._store.validated = !0;
578
578
  var y = Xn(x);
579
579
  if (Yt[y])
580
580
  return;
581
581
  Yt[y] = !0;
582
582
  var $ = "";
583
- d && d._owner && d._owner !== it.current && ($ = " It was passed a child from " + L(d._owner.type) + "."), $e(d), v('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);
583
+ u && u._owner && u._owner !== it.current && ($ = " It was passed a child from " + L(u._owner.type) + "."), $e(u), 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 Jt(d, x) {
586
+ function Jt(u, x) {
587
587
  {
588
- if (typeof d != "object")
588
+ if (typeof u != "object")
589
589
  return;
590
- if (ot(d))
591
- for (var y = 0; y < d.length; y++) {
592
- var $ = d[y];
590
+ if (ot(u))
591
+ for (var y = 0; y < u.length; y++) {
592
+ var $ = u[y];
593
593
  ct($) && Gt($, x);
594
594
  }
595
- else if (ct(d))
596
- d._store && (d._store.validated = !0);
597
- else if (d) {
598
- var O = g(d);
599
- if (typeof O == "function" && O !== d.entries)
600
- for (var H = O.call(d), D; !(D = H.next()).done; )
595
+ else if (ct(u))
596
+ u._store && (u._store.validated = !0);
597
+ else if (u) {
598
+ var O = g(u);
599
+ if (typeof O == "function" && O !== u.entries)
600
+ for (var H = O.call(u), D; !(D = H.next()).done; )
601
601
  ct(D.value) && Gt(D.value, x);
602
602
  }
603
603
  }
604
604
  }
605
- function Zn(d) {
605
+ function Zn(u) {
606
606
  {
607
- var x = d.type;
607
+ var x = u.type;
608
608
  if (x == null || typeof x == "string")
609
609
  return;
610
610
  var y;
611
611
  if (typeof x == "function")
612
612
  y = x.propTypes;
613
- else if (typeof x == "object" && (x.$$typeof === i || // Note: Memo only checks outer props here.
613
+ else if (typeof x == "object" && (x.$$typeof === l || // Note: Memo only checks outer props here.
614
614
  // Inner props are checked in the reconciler.
615
615
  x.$$typeof === f))
616
616
  y = x.propTypes;
@@ -618,39 +618,39 @@ Check the top-level render call using <` + y + ">.");
618
618
  return;
619
619
  if (y) {
620
620
  var $ = L(x);
621
- On(y, d.props, "prop", $, d);
621
+ On(y, u.props, "prop", $, u);
622
622
  } else if (x.PropTypes !== void 0 && !lt) {
623
623
  lt = !0;
624
624
  var O = L(x);
625
- v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", O || "Unknown");
625
+ b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", O || "Unknown");
626
626
  }
627
- typeof x.getDefaultProps == "function" && !x.getDefaultProps.isReactClassApproved && v("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
- function qn(d) {
630
+ function qn(u) {
631
631
  {
632
- for (var x = Object.keys(d.props), y = 0; y < x.length; y++) {
632
+ for (var x = Object.keys(u.props), y = 0; y < x.length; y++) {
633
633
  var $ = x[y];
634
634
  if ($ !== "children" && $ !== "key") {
635
- $e(d), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", $), $e(null);
635
+ $e(u), 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
- d.ref !== null && ($e(d), v("Invalid attribute `ref` supplied to `React.Fragment`."), $e(null));
639
+ u.ref !== null && ($e(u), b("Invalid attribute `ref` supplied to `React.Fragment`."), $e(null));
640
640
  }
641
641
  }
642
- function Xt(d, x, y, $, O, H) {
642
+ function Xt(u, x, y, $, O, H) {
643
643
  {
644
- var D = q(d);
644
+ var D = q(u);
645
645
  if (!D) {
646
646
  var C = "";
647
- (d === void 0 || typeof d == "object" && d !== null && Object.keys(d).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.");
647
+ (u === void 0 || typeof u == "object" && u !== null && Object.keys(u).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
648
  var se = Jn(O);
649
649
  se ? C += se : C += Vt();
650
650
  var J;
651
- d === null ? J = "null" : ot(d) ? J = "array" : d !== void 0 && d.$$typeof === t ? (J = "<" + (L(d.type) || "Unknown") + " />", C = " Did you accidentally export a JSX literal instead of a component?") : J = typeof d, v("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
+ u === null ? J = "null" : ot(u) ? J = "array" : u !== void 0 && u.$$typeof === t ? (J = "<" + (L(u.type) || "Unknown") + " />", C = " Did you accidentally export a JSX literal instead of a component?") : J = typeof u, 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 Z = Gn(d, x, y, O, H);
653
+ var Z = Gn(u, x, y, O, H);
654
654
  if (Z == null)
655
655
  return Z;
656
656
  if (D) {
@@ -659,21 +659,21 @@ Check the top-level render call using <` + y + ">.");
659
659
  if ($)
660
660
  if (ot(de)) {
661
661
  for (var Te = 0; Te < de.length; Te++)
662
- Jt(de[Te], d);
662
+ Jt(de[Te], u);
663
663
  Object.freeze && Object.freeze(de);
664
664
  } else
665
- v("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
- Jt(de, d);
667
+ Jt(de, u);
668
668
  }
669
- return d === s ? qn(Z) : Zn(Z), Z;
669
+ return u === s ? qn(Z) : Zn(Z), Z;
670
670
  }
671
671
  }
672
- function Kn(d, x, y) {
673
- return Xt(d, x, y, !0);
672
+ function Kn(u, x, y) {
673
+ return Xt(u, x, y, !0);
674
674
  }
675
- function er(d, x, y) {
676
- return Xt(d, x, y, !1);
675
+ function er(u, x, y) {
676
+ return Xt(u, x, y, !1);
677
677
  }
678
678
  var tr = er, nr = Kn;
679
679
  Fe.Fragment = s, Fe.jsx = tr, Fe.jsxs = nr;
@@ -696,9 +696,9 @@ const jr = () => {
696
696
  }, t);
697
697
  };
698
698
  function Er(e, t, n) {
699
- var s = this, o = ee(null), l = ee(0), m = ee(null), a = ee([]), i = ee(), c = ee(), u = ee(e), f = ee(!0);
699
+ var s = this, a = ee(null), i = ee(0), d = ee(null), o = ee([]), l = ee(), m = ee(), c = ee(e), f = ee(!0);
700
700
  z(function() {
701
- u.current = e;
701
+ c.current = e;
702
702
  }, [e]);
703
703
  var p = !t && t !== 0 && typeof window < "u";
704
704
  if (typeof e != "function")
@@ -711,66 +711,66 @@ function Er(e, t, n) {
711
711
  };
712
712
  }, []);
713
713
  var E = qe(function() {
714
- var v = function(b) {
715
- var A = a.current, q = i.current;
716
- return a.current = i.current = null, l.current = b, c.current = u.current.apply(q, A);
717
- }, S = function(b, A) {
718
- p && cancelAnimationFrame(m.current), m.current = p ? requestAnimationFrame(b) : setTimeout(b, A);
719
- }, T = function(b) {
714
+ var b = function(v) {
715
+ var N = o.current, q = l.current;
716
+ return o.current = l.current = null, i.current = v, m.current = c.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 A = b - o.current;
723
- return !o.current || A >= t || A < 0 || k && b - l.current >= g;
724
- }, M = function(b) {
725
- return m.current = null, _ && a.current ? v(b) : (a.current = i.current = null, c.current);
726
- }, Q = function b() {
727
- var A = Date.now();
728
- if (T(A))
729
- return M(A);
722
+ var N = v - a.current;
723
+ return !a.current || N >= t || N < 0 || k && v - i.current >= g;
724
+ }, M = function(v) {
725
+ return d.current = null, _ && o.current ? b(v) : (o.current = l.current = null, m.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 - (A - o.current), w = k ? Math.min(q, g - (A - l.current)) : q;
732
- S(b, w);
731
+ var q = t - (N - a.current), w = k ? Math.min(q, g - (N - i.current)) : q;
732
+ S(v, w);
733
733
  }
734
734
  }, V = function() {
735
- var b = Date.now(), A = T(b);
736
- if (a.current = [].slice.call(arguments), i.current = s, o.current = b, A) {
737
- if (!m.current && f.current)
738
- return l.current = o.current, S(Q, t), h ? v(o.current) : c.current;
735
+ var v = Date.now(), N = T(v);
736
+ if (o.current = [].slice.call(arguments), l.current = s, a.current = v, N) {
737
+ if (!d.current && f.current)
738
+ return i.current = a.current, S(Q, t), h ? b(a.current) : m.current;
739
739
  if (k)
740
- return S(Q, t), v(o.current);
740
+ return S(Q, t), b(a.current);
741
741
  }
742
- return m.current || S(Q, t), c.current;
742
+ return d.current || S(Q, t), m.current;
743
743
  };
744
744
  return V.cancel = function() {
745
- m.current && (p ? cancelAnimationFrame(m.current) : clearTimeout(m.current)), l.current = 0, a.current = o.current = i.current = m.current = null;
745
+ d.current && (p ? cancelAnimationFrame(d.current) : clearTimeout(d.current)), i.current = 0, o.current = a.current = l.current = d.current = null;
746
746
  }, V.isPending = function() {
747
- return !!m.current;
747
+ return !!d.current;
748
748
  }, V.flush = function() {
749
- return m.current ? M(Date.now()) : c.current;
749
+ return d.current ? M(Date.now()) : m.current;
750
750
  }, V;
751
751
  }, [h, k, t, g, _, p]);
752
752
  return E;
753
753
  }
754
754
  function fn(e, t, n) {
755
- var s = n === void 0 ? {} : n, o = s.leading, l = s.trailing;
756
- return Er(e, t, { maxWait: t, leading: o === void 0 || o, trailing: l === void 0 || l });
755
+ var s = n === void 0 ? {} : n, a = s.leading, i = s.trailing;
756
+ return Er(e, t, { maxWait: t, leading: a === void 0 || a, trailing: i === void 0 || i });
757
757
  }
758
758
  let ut;
759
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
- z(() => (l(), window.addEventListener("resize", m), () => {
765
- clearTimeout(ut), m.flush(), window.removeEventListener("resize", m);
764
+ z(() => (i(), window.addEventListener("resize", d), () => {
765
+ clearTimeout(ut), d.flush(), window.removeEventListener("resize", d);
766
766
  }), []);
767
- const o = () => window.innerWidth, l = () => {
768
- s(o());
769
- }, m = fn(
767
+ const a = () => window.innerWidth, i = () => {
768
+ s(a());
769
+ }, d = fn(
770
770
  () => {
771
- o() !== n && (t && (clearTimeout(ut), document.body.classList.add("is-resizing"), ut = setTimeout(() => {
771
+ a() !== n && (t && (clearTimeout(ut), document.body.classList.add("is-resizing"), ut = setTimeout(() => {
772
772
  document.body.classList.remove("is-resizing");
773
- }, 550)), l());
773
+ }, 550)), i());
774
774
  },
775
775
  500,
776
776
  { leading: !0 }
@@ -787,23 +787,23 @@ const tt = (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
- }], [m, a] = N.useState({ scrollDown: !1, scrollUp: !1 }) || [!1, () => {
790
+ const [a, i] = A.useState({ current: 0, past: 0 }) || [!1, () => {
791
+ }], [d, o] = A.useState({ scrollDown: !1, scrollUp: !1 }) || [!1, () => {
792
792
  }];
793
- z(() => (i(), window.addEventListener("scroll", c), () => {
794
- c.flush(), window.removeEventListener("scroll", c);
793
+ z(() => (l(), window.addEventListener("scroll", m), () => {
794
+ m.flush(), window.removeEventListener("scroll", m);
795
795
  }), []);
796
- const i = () => {
797
- const u = window.scrollY, f = o.current, p = u - f, h = p > 0 ? "down" : "up";
798
- if (l({ current: u, past: f }), h === "down") {
799
- u >= e + t.down && !m.scrollDown && (!m.scrollUp || p > t.up) && (n(), a({ scrollUp: !1, scrollDown: !0 }));
796
+ const l = () => {
797
+ const c = window.scrollY, f = a.current, p = c - f, h = p > 0 ? "down" : "up";
798
+ if (i({ current: c, past: f }), h === "down") {
799
+ c >= e + t.down && !d.scrollDown && (!d.scrollUp || p > t.up) && (n(), o({ scrollUp: !1, scrollDown: !0 }));
800
800
  return;
801
801
  }
802
- Math.abs(p) >= t.up && !m.scrollUp && (s(), a({ scrollUp: !0, scrollDown: !1 }));
803
- }, c = fn(() => {
804
- i();
802
+ Math.abs(p) >= t.up && !d.scrollUp && (s(), o({ scrollUp: !0, scrollDown: !1 }));
803
+ }, m = fn(() => {
804
+ l();
805
805
  }, 250);
806
- return o;
806
+ return a;
807
807
  }, oo = (e = [], t = !0) => {
808
808
  e = Array.isArray(e) ? e : [e];
809
809
  const n = ee(!1);
@@ -818,8 +818,8 @@ const tt = (e = !0, t = !1) => {
818
818
  }, $r = (e, t) => {
819
819
  Array.isArray(t) || (t = [t]);
820
820
  const n = or(e);
821
- return t.forEach(({ type: s, value: o }) => {
822
- ar(n, s, o);
821
+ return t.forEach(({ type: s, value: a }) => {
822
+ ar(n, s, a);
823
823
  }), n;
824
824
  }, pn = (e) => {
825
825
  const t = [];
@@ -829,11 +829,11 @@ const tt = (e = !0, t = !1) => {
829
829
  }), t.sort((n, s) => n - s);
830
830
  }, hn = (e, t, n) => {
831
831
  let s = n.mobile;
832
- for (const o in t) {
833
- const l = parseInt(String(t[o]));
834
- if (e >= l)
835
- s = n[l];
836
- else if (e < l)
832
+ for (const a in t) {
833
+ const i = parseInt(String(t[a]));
834
+ if (e >= i)
835
+ s = n[i];
836
+ else if (e < i)
837
837
  break;
838
838
  }
839
839
  return s;
@@ -843,19 +843,19 @@ const tt = (e = !0, t = !1) => {
843
843
  month: "short",
844
844
  year: "numeric"
845
845
  }), Mr = (e) => {
846
- let l;
846
+ let i;
847
847
  try {
848
- l = (/* @__PURE__ */ new Date()).getTime() - new Date(e).getTime();
848
+ i = (/* @__PURE__ */ new Date()).getTime() - new Date(e).getTime();
849
849
  } catch {
850
850
  return "";
851
851
  }
852
- const m = l / 36e5, a = Math.floor(l / 864e5);
853
- if (a < 1)
854
- return m < 1 ? { path: "now" } : { path: "hours", number: Math.floor(m) };
855
- if (a < 7)
856
- return { path: "days", number: a };
857
- const i = Math.floor(a / 7);
858
- return i <= 52 ? { path: "weeks", number: i } : { path: "years", number: Math.floor(a / 365) };
852
+ const d = i / 36e5, o = Math.floor(i / 864e5);
853
+ if (o < 1)
854
+ return d < 1 ? { path: "now" } : { path: "hours", number: Math.floor(d) };
855
+ if (o < 7)
856
+ return { path: "days", number: o };
857
+ const l = Math.floor(o / 7);
858
+ return l <= 52 ? { path: "weeks", number: l } : { path: "years", number: Math.floor(o / 365) };
859
859
  }, Cr = (e) => new Promise((t) => setTimeout(t, e)), Dt = {
860
860
  apolitical: "Apolitical",
861
861
  breadcrumbs_label: "Go back to:",
@@ -1139,13 +1139,13 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1139
1139
  sharedLinks_copy_text: "Copy link",
1140
1140
  tags_community: "From the community",
1141
1141
  tooltip_loading: "Loading..."
1142
- }, Ar = {
1142
+ }, Nr = {
1143
1143
  languageSwitcher_label: "Me gustaría leer este artículo en...",
1144
1144
  languageSwitcher_translation_original: "idioma original",
1145
1145
  languageSwitcher_translation_human: "traducido por un humano",
1146
1146
  languageSwitcher_translation_machine: "traducido por máquina",
1147
1147
  languageSwitcher_disclaimer: "Este contenido fue traducido automáticamente y ocasionalmente tendrá errores de género u otras traducciones directas. Estamos intentando resolver este problema, pero mientras tanto, si notas algún error grave, escríbenos a <link>{email}</link>"
1148
- }, Nr = {
1148
+ }, Ar = {
1149
1149
  collapsibleSection_summary: "En savoir plus",
1150
1150
  languageSwitcher_label: "Je voudrais lire cet article dans...",
1151
1151
  languageSwitcher_translation_original: "langue originale",
@@ -1161,40 +1161,40 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1161
1161
  }, Pr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1162
1162
  __proto__: null,
1163
1163
  en: Dt,
1164
- es: Ar,
1165
- fr: Nr,
1164
+ es: Nr,
1165
+ fr: Ar,
1166
1166
  pt: Dr
1167
- }, Symbol.toStringTag, { value: "Module" })), he = (e, t, n, s, o = {}) => {
1168
- let l = "";
1169
- return `${t}_${n}` in Dt ? l = e({ id: `${t}_${n}` }, o) : l = e({ id: t }, { [s]: n, ...o }), l;
1167
+ }, Symbol.toStringTag, { value: "Module" })), he = (e, t, n, s, a = {}) => {
1168
+ let i = "";
1169
+ return `${t}_${n}` in Dt ? i = e({ id: `${t}_${n}` }, a) : i = e({ id: t }, { [s]: n, ...a }), i;
1170
1170
  }, Fr = (e, t, n) => {
1171
1171
  if (!e || e === 0)
1172
1172
  return "0";
1173
1173
  t || (t = 0), n || (n = ["k", "m", "b", "t"]);
1174
1174
  let s = e.toString();
1175
1175
  t = Math.pow(10, t);
1176
- for (let o = n.length - 1; o >= 0; o--) {
1177
- const l = Math.pow(10, (o + 1) * 3);
1178
- if (l <= e) {
1179
- e = Math.round(e * t / l) / t, e === 1e3 && o < n.length - 1 && (e = 1, o++), s = `${e}${n[o]}`;
1176
+ for (let a = n.length - 1; a >= 0; a--) {
1177
+ const i = Math.pow(10, (a + 1) * 3);
1178
+ if (i <= e) {
1179
+ e = Math.round(e * t / i) / t, e === 1e3 && a < n.length - 1 && (e = 1, a++), s = `${e}${n[a]}`;
1180
1180
  break;
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",
1188
1188
  size: t = "medium",
1189
1189
  styling: n = { muted: !1, fullWidth: !1 },
1190
1190
  icon: s = !1,
1191
- href: o = !1,
1192
- element: l = "button",
1193
- onClick: m = !1,
1194
- className: a = "",
1195
- disabled: i = !1,
1196
- screenreaderText: c = !1,
1197
- children: u = !1,
1191
+ href: a = !1,
1192
+ element: i = "button",
1193
+ onClick: d = !1,
1194
+ className: o = "",
1195
+ disabled: l = !1,
1196
+ screenreaderText: m = !1,
1197
+ children: c = !1,
1198
1198
  ...f
1199
1199
  }) => {
1200
1200
  const h = tt(typeof t == "object");
@@ -1206,51 +1206,51 @@ Thank you for helping to protect the Apolitical community from abusive content.`
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
1207
  const k = {
1208
1208
  ...f,
1209
- className: j(e, a, _, {
1210
- "no-text": !u,
1211
- disabled: i,
1212
- button: o
1209
+ className: j(e, o, _, {
1210
+ "no-text": !c,
1211
+ disabled: l,
1212
+ button: a
1213
1213
  }),
1214
1214
  onClick: (g) => {
1215
- (!o || o[0] === "#") && m && (g.preventDefault(), g.stopPropagation()), m && m(g);
1215
+ (!a || a[0] === "#") && d && (g.preventDefault(), g.stopPropagation()), d && d(g);
1216
1216
  },
1217
- disabled: typeof i == "object" && "isClickable" in i ? !i.isClickable : i
1217
+ disabled: typeof l == "object" && "isClickable" in l ? !l.isClickable : l
1218
1218
  };
1219
- return o && (l = "a", k.href = o), N.createElement(
1220
- l,
1219
+ return a && (i = "a", k.href = a), A.createElement(
1220
+ i,
1221
1221
  k,
1222
- u || (c ? /* @__PURE__ */ r.jsx(re, { showOnFocus: !1, children: c }) : null)
1222
+ c || (m ? /* @__PURE__ */ r.jsx(re, { showOnFocus: !1, children: m }) : null)
1223
1223
  );
1224
1224
  }, nt = ({ buttons: e, className: t = "", ...n }) => {
1225
- const s = e.length > 1 ? "ul" : "p", o = e.map((l, m) => s === "p" ? /* @__PURE__ */ r.jsx(W, { ...l }, m) : /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(W, { ...l }) }, m));
1226
- return N.createElement(s, { className: j("button-wrapper", t), ...n, children: o });
1225
+ const s = e.length > 1 ? "ul" : "p", a = e.map((i, d) => s === "p" ? /* @__PURE__ */ r.jsx(W, { ...i }, d) : /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(W, { ...i }) }, d));
1226
+ return A.createElement(s, { className: j("button-wrapper", t), ...n, children: a });
1227
1227
  };
1228
- const Ae = ({ maxWidth: e = !1 }) => {
1229
- const t = e ? { "--max-width": `${e / 16}rem` } : {};
1230
- return /* @__PURE__ */ r.jsx("hr", { className: j({ "has-max-width": e }), style: t });
1228
+ const Ne = ({ className: e = "", maxWidth: t = !1 }) => {
1229
+ const n = t ? { "--max-width": `${t / 16}rem` } : {};
1230
+ return /* @__PURE__ */ r.jsx("hr", { className: j(e, { "has-max-width": t }), style: n });
1231
1231
  }, rt = ({
1232
1232
  href: e,
1233
1233
  children: t,
1234
1234
  fallbackElement: n,
1235
1235
  className: s = "",
1236
- onClick: o,
1237
- gtmContext: l,
1238
- gtmType: m,
1239
- ...a
1236
+ onClick: a,
1237
+ gtmContext: i,
1238
+ gtmType: d,
1239
+ ...o
1240
1240
  }) => {
1241
1241
  if (e) {
1242
- const i = { ...a };
1243
- return o && (i.onClick = o), l && (i["data-gtm-event-context"] = l), m && (i["data-gtm-event-type"] = m), /* @__PURE__ */ r.jsx(
1242
+ const l = { ...o };
1243
+ return a && (l.onClick = a), i && (l["data-gtm-event-context"] = i), d && (l["data-gtm-event-type"] = d), /* @__PURE__ */ r.jsx(
1244
1244
  "a",
1245
1245
  {
1246
1246
  href: e,
1247
1247
  className: j("gtm-trackable", s),
1248
- ...i,
1248
+ ...l,
1249
1249
  children: t
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, ...o }) : t;
1254
1254
  }, en = {
1255
1255
  card: {
1256
1256
  range: [
@@ -1359,31 +1359,31 @@ const Ae = ({ maxWidth: e = !1 }) => {
1359
1359
  range: t,
1360
1360
  sizes: n
1361
1361
  }) => {
1362
- const { range: s, sizes: o } = e ? en[e] : en.fallback;
1363
- return { range: t && t.length > 0 ? t : s, sizes: n || o };
1362
+ const { range: s, sizes: a } = e ? en[e] : en.fallback;
1363
+ return { range: t && t.length > 0 ? t : s, sizes: n || a };
1364
1364
  }, Lr = ({ format: e, height: t, query: n, width: s }) => {
1365
- let o = `w=${s}&h=${t}`;
1366
- return o = e ? `${o}&fm=${e}` : o, o = n ? `${o}&${n}` : o, o;
1367
- }, dt = ({ format: e, range: t, url: n, query: s }) => t.map(({ height: o, width: l }) => `${n}?${Lr({
1365
+ let a = `w=${s}&h=${t}`;
1366
+ return a = e ? `${a}&fm=${e}` : a, a = n ? `${a}&${n}` : a, a;
1367
+ }, dt = ({ format: e, range: t, url: n, query: s }) => t.map(({ height: a, width: i }) => `${n}?${Lr({
1368
1368
  format: e,
1369
- height: o,
1369
+ height: a,
1370
1370
  query: s,
1371
- width: l
1372
- })} ${l}w`).join(", ");
1371
+ width: i
1372
+ })} ${i}w`).join(", ");
1373
1373
  const Br = ({ image: e, className: t, testId: n }) => {
1374
1374
  const {
1375
1375
  description: s,
1376
- height: o,
1377
- type: l,
1378
- query: m,
1379
- url: a,
1380
- width: i,
1381
- loading: c,
1382
- decoding: u,
1376
+ height: a,
1377
+ type: i,
1378
+ query: d,
1379
+ url: o,
1380
+ width: l,
1381
+ loading: m,
1382
+ decoding: c,
1383
1383
  fetchPriority: f
1384
- } = e, { range: p, sizes: h } = Or(e), _ = dt({ format: "avif", query: m, range: p, url: a }), k = dt({ format: "webp", query: m, range: p, url: a }), g = dt({ format: "", query: m, range: p, url: a });
1384
+ } = e, { range: p, sizes: h } = Or(e), _ = dt({ format: "avif", query: d, range: p, url: o }), k = dt({ format: "webp", query: d, range: p, url: o }), g = dt({ format: "", query: d, range: p, url: o });
1385
1385
  return /* @__PURE__ */ r.jsxs("picture", { className: t, children: [
1386
- l !== "image/gif" && /* @__PURE__ */ r.jsx(
1386
+ i !== "image/gif" && /* @__PURE__ */ r.jsx(
1387
1387
  "source",
1388
1388
  {
1389
1389
  type: "image/avif",
@@ -1406,13 +1406,13 @@ const Br = ({ image: e, className: t, testId: n }) => {
1406
1406
  {
1407
1407
  srcSet: g,
1408
1408
  sizes: h,
1409
- src: a,
1409
+ src: o,
1410
1410
  alt: s,
1411
- loading: c || "lazy",
1412
- decoding: u || "async",
1411
+ loading: m || "lazy",
1412
+ decoding: c || "async",
1413
1413
  fetchpriority: f || "auto",
1414
- width: i,
1415
- height: o,
1414
+ width: l,
1415
+ height: a,
1416
1416
  "data-testid": n || "image"
1417
1417
  }
1418
1418
  )
@@ -1420,41 +1420,41 @@ const Br = ({ image: e, className: t, testId: n }) => {
1420
1420
  };
1421
1421
  let Re = !1;
1422
1422
  const Ir = ({ isOpen: e = !1, isLoading: t = !1, children: n }) => {
1423
- const s = F(), o = ee(null), [l, m] = P("hidden");
1423
+ const s = F(), a = ee(null), [i, d] = P("hidden");
1424
1424
  z(() => {
1425
- const i = o.current;
1426
- if (i)
1427
- return i.addEventListener("transitionend", a), () => {
1428
- i.removeEventListener("transitionend", a);
1425
+ const l = a.current;
1426
+ if (l)
1427
+ return l.addEventListener("transitionend", o), () => {
1428
+ l.removeEventListener("transitionend", o);
1429
1429
  };
1430
1430
  }, []);
1431
- const a = ({ propertyName: i }) => {
1432
- i === "opacity" && (Re !== !1 && clearTimeout(Re), m((c) => c === "opening" ? "open" : c === "closing" ? "closed" : c === "closed" ? "hidden" : c));
1431
+ const o = ({ propertyName: l }) => {
1432
+ l === "opacity" && (Re !== !1 && clearTimeout(Re), d((m) => m === "opening" ? "open" : m === "closing" ? "closed" : m === "closed" ? "hidden" : m));
1433
1433
  };
1434
1434
  return Ce(() => {
1435
1435
  Re !== !1 && clearTimeout(Re);
1436
- let i = "open";
1437
- e ? m("opening") : (m("closing"), i = "hidden"), Re = setTimeout(() => {
1438
- m(i);
1436
+ let l = "open";
1437
+ e ? d("opening") : (d("closing"), l = "hidden"), Re = setTimeout(() => {
1438
+ d(l);
1439
1439
  }, 300);
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 });
1440
+ }, [e]), /* @__PURE__ */ r.jsx("aside", { ref: a, className: j("tooltip text-medium", i, { loading: t }), hidden: i === "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
1443
  const ao = ({ text: e, buttons: t, className: n = "" }) => {
1444
1444
  const s = [];
1445
- return t.forEach((o) => {
1445
+ return t.forEach((a) => {
1446
1446
  s.push({
1447
- href: o.link,
1447
+ href: a.link,
1448
1448
  variant: "secondary",
1449
1449
  size: { mobile: "medium", 1024: "large" },
1450
1450
  className: "gtm-trackable",
1451
1451
  "data-gtm-event-type": "download-click",
1452
- "data-gtm-event-context": o.eventContext || "Download",
1452
+ "data-gtm-event-context": a.eventContext || "Download",
1453
1453
  target: "_blank",
1454
- children: o.text
1454
+ children: a.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),
1457
+ A.createElement(typeof e == "string" ? "h2" : e.element, { className: "text" }, typeof e == "string" ? e : e.text),
1458
1458
  /* @__PURE__ */ r.jsx(nt, { buttons: s })
1459
1459
  ] }) });
1460
1460
  };
@@ -1462,41 +1462,41 @@ const io = ({ title: e = !1, logos: t = [], className: n = "" }) => {
1462
1462
  const s = t.length;
1463
1463
  if (s === 0)
1464
1464
  return null;
1465
- const o = {
1465
+ const a = {
1466
1466
  element: typeof e == "object" ? e.element : "h2",
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(a.element, { className: "title" }, a.text),
1471
1471
  /* @__PURE__ */ r.jsx(
1472
1472
  "ul",
1473
1473
  {
1474
1474
  className: j({ "two-col": s === 2 || s === 4, "three-col": s === 5 || s <= 10 && s % 3 === 0 }),
1475
1475
  children: t.map(
1476
- ({ logo: l, nameOfBusiness: m, link: a = !1, description: i = !1 }, c) => {
1477
- if (!l || !l.url)
1476
+ ({ logo: i, nameOfBusiness: d, link: o = !1, description: l = !1 }, m) => {
1477
+ if (!i || !i.url)
1478
1478
  return null;
1479
- const u = /* @__PURE__ */ r.jsx(
1479
+ const c = /* @__PURE__ */ r.jsx(
1480
1480
  "img",
1481
1481
  {
1482
- src: l.url,
1483
- width: l.width || "auto",
1484
- height: l.height || "auto",
1485
- alt: m
1482
+ src: i.url,
1483
+ width: i.width || "auto",
1484
+ height: i.height || "auto",
1485
+ alt: d
1486
1486
  }
1487
1487
  );
1488
1488
  return /* @__PURE__ */ r.jsxs("li", { children: [
1489
- /* @__PURE__ */ r.jsx("p", { className: "img-wrapper", children: a ? /* @__PURE__ */ r.jsx(
1489
+ /* @__PURE__ */ r.jsx("p", { className: "img-wrapper", children: o ? /* @__PURE__ */ r.jsx(
1490
1490
  "a",
1491
1491
  {
1492
- href: a,
1492
+ href: o,
1493
1493
  target: "_blank",
1494
1494
  rel: "nofollow noreferrer noopener",
1495
- children: u
1495
+ children: c
1496
1496
  }
1497
- ) : u }),
1498
- i && /* @__PURE__ */ r.jsx("small", { children: i })
1499
- ] }, window.btoa(`${l.url}_${c}`));
1497
+ ) : c }),
1498
+ l && /* @__PURE__ */ r.jsx("small", { children: l })
1499
+ ] }, window.btoa(`${i.url}_${m}`));
1500
1500
  }
1501
1501
  )
1502
1502
  }
@@ -1517,67 +1517,87 @@ const Hr = [
1517
1517
  "h6",
1518
1518
  "blockquote",
1519
1519
  "q"
1520
- ], Qr = ({ content: e, image: t, variant: n = "default", spacing: s = "normal", cta: o, children: l }) => {
1521
- const m = ["eyebrow", "title", "text"], a = { eyebrow: "small", title: "h1", text: "p" }, i = {};
1522
- return m.forEach((c) => {
1523
- if (!e[c]) {
1524
- i[c] = !1;
1520
+ ], Qr = ({
1521
+ className: e = "",
1522
+ content: t,
1523
+ image: n,
1524
+ variant: s = "default",
1525
+ spacing: a = "normal",
1526
+ cta: i,
1527
+ children: d
1528
+ }) => {
1529
+ const o = ["eyebrow", "title", "text"], l = { eyebrow: "small", title: "h1", text: "p" }, m = {};
1530
+ return o.forEach((c) => {
1531
+ if (!t[c]) {
1532
+ m[c] = !1;
1525
1533
  return;
1526
1534
  }
1527
- if (typeof e[c] == "object") {
1528
- i[c] = e[c];
1529
- const { text: u, element: f } = e[c];
1530
- if (f && Hr.includes(f.toLowerCase()))
1535
+ if (typeof t[c] == "object") {
1536
+ m[c] = t[c];
1537
+ const { text: f, element: p } = t[c];
1538
+ if (p && Hr.includes(p.toLowerCase()))
1531
1539
  return;
1532
- i[c] = {
1533
- text: u,
1534
- element: a[c]
1540
+ m[c] = {
1541
+ text: f,
1542
+ element: l[c]
1535
1543
  };
1536
1544
  return;
1537
1545
  }
1538
- i[c] = { text: e[c], element: a[c] };
1539
- }), o && o.link && o.link[0] === "#" && (o.props || (o.props = {}), o.props.onClick = (c) => {
1546
+ m[c] = {
1547
+ text: t[c],
1548
+ element: l[c]
1549
+ };
1550
+ }), i && i.link && i.link[0] === "#" && (i.props || (i.props = {}), i.props.onClick = (c) => {
1540
1551
  c.preventDefault(), c.stopPropagation();
1541
- const u = document.getElementById(o.link.substring(1));
1542
- u && u.scrollIntoView({ behavior: "smooth" });
1543
- }), /* @__PURE__ */ r.jsx(_n, { className: j("banner-section", n, s, { "has-image": t, "has-extra-spacing": s === "normal" && i.eyebrow && i.title }), children: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1544
- /* @__PURE__ */ r.jsxs("div", { className: "content-wrapper", children: [
1545
- m.map((c) => {
1546
- if (i[c] && typeof i[c] == "object") {
1547
- const { text: u, element: f = "" } = i[c];
1548
- return N.createElement(
1549
- f.toLowerCase(),
1550
- { key: c, className: c },
1551
- u
1552
- );
1553
- }
1554
- return null;
1552
+ const f = document.getElementById(i.link.substring(1));
1553
+ f && f.scrollIntoView({ behavior: "smooth" });
1554
+ }), /* @__PURE__ */ r.jsx(
1555
+ _n,
1556
+ {
1557
+ className: j("banner-section", s, a, e, {
1558
+ "has-image": n,
1559
+ "has-extra-spacing": a === "normal" && m.eyebrow && m.title
1555
1560
  }),
1556
- l,
1557
- o && o.text && o.link && /* @__PURE__ */ r.jsx(
1558
- W,
1559
- {
1560
- variant: t || n === "light" ? "primary" : "secondary",
1561
- size: { mobile: "medium", 768: "large" },
1562
- href: o.link,
1563
- ...o.props,
1564
- children: o.text
1565
- }
1566
- )
1567
- ] }),
1568
- t && /* @__PURE__ */ r.jsx(Br, { image: { ...t, aspect: "banner" } })
1569
- ] }) });
1570
- }, lo = Ne(Qr);
1561
+ children: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1562
+ /* @__PURE__ */ r.jsxs("div", { className: "content-wrapper", children: [
1563
+ o.map((c) => {
1564
+ if (m[c] && typeof m[c] == "object") {
1565
+ const { text: f, element: p = "" } = m[c];
1566
+ return A.createElement(
1567
+ p.toLowerCase(),
1568
+ { key: c, className: c },
1569
+ f
1570
+ );
1571
+ }
1572
+ return null;
1573
+ }),
1574
+ d,
1575
+ i && i.text && i.link && /* @__PURE__ */ r.jsx(
1576
+ W,
1577
+ {
1578
+ variant: n || s === "light" ? "primary" : "secondary",
1579
+ size: { mobile: "medium", 768: "large" },
1580
+ href: i.link,
1581
+ ...i.props,
1582
+ children: i.text
1583
+ }
1584
+ )
1585
+ ] }),
1586
+ n && /* @__PURE__ */ r.jsx(Br, { image: { ...n, aspect: "banner" } })
1587
+ ] })
1588
+ }
1589
+ );
1590
+ }, lo = Ae(Qr);
1571
1591
  const co = ({
1572
1592
  variant: e = "primary",
1573
1593
  button: t = null,
1574
1594
  title: n,
1575
1595
  text: s,
1576
- gtmContext: o
1596
+ gtmContext: a
1577
1597
  }) => !n && !s ? null : /* @__PURE__ */ r.jsxs("aside", { className: j("marketing-block", e), children: [
1578
1598
  n && /* @__PURE__ */ r.jsx("p", { className: "title", children: n }),
1579
1599
  s && /* @__PURE__ */ r.jsx("p", { children: s }),
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 })
1600
+ t && /* @__PURE__ */ r.jsx(W, { variant: "secondary", size: "medium", href: t.link, className: "gtm-trackable", "data-gtm-event-context": a, "data-gtm-event-type": "learn-more-click", children: t.text })
1581
1601
  ] }), $t = "https://storage.googleapis.com/apolitical-assets/", Oe = {
1582
1602
  general: "hello@apolitical.co",
1583
1603
  support: "concierge@apolitical.co",
@@ -1595,46 +1615,46 @@ const xn = ({ label: e = !1, className: t = "", children: n }) => {
1595
1615
  };
1596
1616
  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
1617
  const st = ({ variant: e = "empty", text: t = !1, button: n = !1, className: s = "" }) => {
1598
- let o = n && !!Object.keys(n).length;
1599
- const l = typeof n == "object" && "breakpoints" in n, m = tt(l);
1600
- if (l && typeof n == "object" && typeof m == "number") {
1618
+ let a = n && !!Object.keys(n).length;
1619
+ const i = typeof n == "object" && "breakpoints" in n, d = tt(i);
1620
+ if (i && typeof n == "object" && typeof d == "number") {
1601
1621
  const f = Object.assign({}, n.breakpoints), p = pn(Object.keys(f));
1602
- o = hn(m, p, f);
1622
+ a = hn(d, p, f);
1603
1623
  }
1604
- const { breakpoints: a, text: i = "", component: c, ...u } = n;
1624
+ const { breakpoints: o, text: l = "", component: m, ...c } = n;
1605
1625
  return /* @__PURE__ */ r.jsx(ke, { variant: "subtle", className: j("empty-state-box", e, s), children: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1606
1626
  t && /* @__PURE__ */ r.jsx(et, { options: { forceBlock: !0 }, children: t }),
1607
- o && typeof n == "object" && (c || /* @__PURE__ */ r.jsx(
1627
+ a && typeof n == "object" && (m || /* @__PURE__ */ r.jsx(
1608
1628
  W,
1609
1629
  {
1610
- ...u,
1630
+ ...c,
1611
1631
  variant: n.variant ? n.variant : "secondary",
1612
- children: i
1632
+ children: l
1613
1633
  }
1614
1634
  ))
1615
1635
  ] }) });
1616
1636
  };
1617
- const Tt = ({ children: e, ...t }) => /* @__PURE__ */ r.jsx("p", { ...t, children: e }), bn = { q: Tt, blockquote: Tt };
1637
+ const Tt = ({ children: e, ...t }) => /* @__PURE__ */ r.jsx("p", { ...t, children: e }), vn = { q: Tt, blockquote: Tt };
1618
1638
  for (let e = 1; e <= 6; e++)
1619
- bn[`h${e}`] = { component: Tt, props: { className: "title" } };
1639
+ vn[`h${e}`] = { component: Tt, props: { className: "title" } };
1620
1640
  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
1641
  n && /* @__PURE__ */ r.jsx("p", { className: "title", children: n }),
1622
1642
  typeof s == "string" ? /* @__PURE__ */ r.jsx(
1623
1643
  et,
1624
1644
  {
1625
1645
  options: {
1626
- wrapper: N.Fragment,
1646
+ wrapper: A.Fragment,
1627
1647
  forceBlock: !0,
1628
- overrides: bn
1648
+ overrides: vn
1629
1649
  },
1630
1650
  children: s
1631
1651
  }
1632
1652
  ) : /* @__PURE__ */ r.jsx("p", { children: s })
1633
1653
  ] });
1634
- const mo = ({ className: e = "", show: t = !1, hide: n = !1, text: s, children: o }) => {
1635
- const l = F(), m = ee(null), [a, i] = P(""), [c, u] = P("closed");
1654
+ const mo = ({ className: e = "", show: t = !1, hide: n = !1, text: s, children: a }) => {
1655
+ const i = F(), d = ee(null), [o, l] = P(""), [m, c] = P("closed");
1636
1656
  z(() => {
1637
- const h = m.current;
1657
+ const h = d.current;
1638
1658
  if (h)
1639
1659
  return h.addEventListener("transitionend", f), () => {
1640
1660
  h.removeEventListener("transitionend", f);
@@ -1644,21 +1664,21 @@ const mo = ({ className: e = "", show: t = !1, hide: n = !1, text: s, children:
1644
1664
  return;
1645
1665
  const h = s.split(`
1646
1666
  `);
1647
- i(h.length < 3 ? `${s.substring(0, 400)}...` : h.slice(0, 3).join(`
1667
+ l(h.length < 3 ? `${s.substring(0, 400)}...` : h.slice(0, 3).join(`
1648
1668
  `));
1649
1669
  }, [s]), z(() => {
1650
- c === "ready-to-close" && u("closing");
1651
- }, [c]);
1670
+ m === "ready-to-close" && c("closing");
1671
+ }, [m]);
1652
1672
  const f = ({ propertyName: h }) => {
1653
- h === "max-height" && u((_) => _ === "opening" ? "open" : _ === "closing" ? "closed" : _);
1673
+ h === "max-height" && c((_) => _ === "opening" ? "open" : _ === "closing" ? "closed" : _);
1654
1674
  };
1655
1675
  if (!s)
1656
1676
  return null;
1657
- const p = ["opening", "open"].includes(c);
1677
+ const p = ["opening", "open"].includes(m);
1658
1678
  return /* @__PURE__ */ r.jsxs(ke, { variant: "subtle", className: j("hide-show-text-box", e), children: [
1659
- /* @__PURE__ */ r.jsxs("div", { ref: m, className: j("content", c), children: [
1660
- /* @__PURE__ */ r.jsx(et, { options: { forceBlock: !0 }, children: c === "closed" ? a : s }),
1661
- c !== "closed" && o
1679
+ /* @__PURE__ */ r.jsxs("div", { ref: d, className: j("content", m), children: [
1680
+ /* @__PURE__ */ r.jsx(et, { options: { forceBlock: !0 }, children: m === "closed" ? o : s }),
1681
+ m !== "closed" && a
1662
1682
  ] }),
1663
1683
  /* @__PURE__ */ r.jsx("p", { className: "cta", children: /* @__PURE__ */ r.jsx(
1664
1684
  W,
@@ -1668,41 +1688,41 @@ const mo = ({ className: e = "", show: t = !1, hide: n = !1, text: s, children:
1668
1688
  styling: { muted: !0 },
1669
1689
  className: j({ "rotate-180": p }),
1670
1690
  onClick: () => {
1671
- u(p ? "ready-to-close" : "opening");
1691
+ c(p ? "ready-to-close" : "opening");
1672
1692
  },
1673
- children: p ? n || l.formatMessage({ id: "hideShowTextBox_hide" }) : t || l.formatMessage({ id: "hideShowTextBox_show" })
1693
+ children: p ? n || i.formatMessage({ id: "hideShowTextBox_hide" }) : t || i.formatMessage({ id: "hideShowTextBox_show" })
1674
1694
  }
1675
1695
  ) })
1676
1696
  ] });
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 }) => {
1697
+ }, 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
1698
  const t = F();
1679
1699
  if (!e)
1680
1700
  return null;
1681
1701
  let n = t.formatMessage({ id: "markdown_collapsibleSection_summary" });
1682
1702
  const s = [];
1683
- for (const l of jt.toArray(e))
1684
- if (!(!l || typeof l == "string" || typeof l == "number"))
1685
- if (N.isValidElement(l) && l.type === "summary") {
1686
- if (l.props && l.props.children) {
1687
- for (const m of jt.toArray(l.props.children))
1688
- if (!(!m || typeof m == "string" || typeof m == "number") && N.isValidElement(m)) {
1689
- const a = m.type;
1690
- if (Vr.includes(a)) {
1691
- for (n = m.props.children; typeof n != "string" && (Array.isArray(n) && n[0].props && n[0].props.children && n[0].props.children[0]); )
1703
+ for (const i of jt.toArray(e))
1704
+ if (!(!i || typeof i == "string" || typeof i == "number"))
1705
+ if (A.isValidElement(i) && i.type === "summary") {
1706
+ if (i.props && i.props.children) {
1707
+ for (const d of jt.toArray(i.props.children))
1708
+ if (!(!d || typeof d == "string" || typeof d == "number") && A.isValidElement(d)) {
1709
+ const o = d.type;
1710
+ if (Vr.includes(o)) {
1711
+ for (n = d.props.children; typeof n != "string" && (Array.isArray(n) && n[0].props && n[0].props.children && n[0].props.children[0]); )
1692
1712
  n = n[0].props.children[0];
1693
1713
  break;
1694
1714
  }
1695
1715
  }
1696
1716
  }
1697
1717
  } else
1698
- s.push(l);
1699
- const o = n ? n.toString() : "";
1718
+ s.push(i);
1719
+ const a = n ? n.toString() : "";
1700
1720
  return /* @__PURE__ */ r.jsx(
1701
1721
  xn,
1702
1722
  {
1703
- label: o,
1704
- className: ["Sources", "Resources"].includes(o) ? "discrete-links" : "",
1705
- children: s.map((l) => l)
1723
+ label: a,
1724
+ className: ["Sources", "Resources"].includes(a) ? "discrete-links" : "",
1725
+ children: s.map((i) => i)
1706
1726
  }
1707
1727
  );
1708
1728
  }, Gr = ({ children: e, ...t }) => {
@@ -1722,8 +1742,8 @@ const mo = ({ className: e = "", show: t = !1, hide: n = !1, text: s, children:
1722
1742
  }, Jr = (e) => {
1723
1743
  const t = F(), n = Date.now().toString();
1724
1744
  let s = "default";
1725
- const o = e.src;
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: [
1745
+ const a = e.src;
1746
+ return a.includes("youtube") || a.includes("vimeo") ? s = "video" : a.includes("riddle") || a.includes("sli.do") ? s = "poll" : a.includes("padlet") && (s = "padlet"), /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1727
1747
  /* @__PURE__ */ r.jsx(re, { children: /* @__PURE__ */ r.jsx("a", { href: `#content-after-iframe-${n}`, children: t.formatMessage({ id: `markdown_skip${s === "default" ? "" : `_${s}`}` }) }) }),
1728
1748
  /* @__PURE__ */ r.jsx("iframe", { ...e, title: t.formatMessage({ id: `markdown_iframe${s === "default" ? "" : `_${s}`}` }) }),
1729
1749
  /* @__PURE__ */ r.jsx("span", { id: `content-after-iframe-${n}`, tabIndex: -1 })
@@ -1734,23 +1754,23 @@ const mo = ({ className: e = "", show: t = !1, hide: n = !1, text: s, children:
1734
1754
  }, Xr = ({ children: e, ...t }) => {
1735
1755
  let n = { ...t };
1736
1756
  t.href && (t.href.includes("http:") || t.href.includes("https:")) && !t.target && (n.target = "_blank");
1737
- let s = e, o = !1;
1738
- for (const l of jt.toArray(e))
1739
- if (!(!l || typeof l == "string" || typeof l == "number") && N.isValidElement(l)) {
1740
- const m = l.type;
1741
- if (["button", "center", "span", "strong"].includes(m) && l.props && l.props.children && l.props.children[0])
1742
- for ((m === "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)); )
1757
+ let s = e, a = !1;
1758
+ for (const i of jt.toArray(e))
1759
+ if (!(!i || typeof i == "string" || typeof i == "number") && A.isValidElement(i)) {
1760
+ const d = i.type;
1761
+ if (["button", "center", "span", "strong"].includes(d) && i.props && i.props.children && i.props.children[0])
1762
+ for ((d === "button" || tn(i.props.children[0]) === "button") && (a = !0), s = i.props.children[0]; s && typeof s != "string" && !(typeof s == "boolean" || typeof s == "number" || !A.isValidElement(s)); )
1743
1763
  if (s.props && s.props.children && s.props.children[0])
1744
- s = s.props.children[0], s && tn(s) === "button" && (o = !0);
1764
+ s = s.props.children[0], s && tn(s) === "button" && (a = !0);
1745
1765
  else
1746
1766
  break;
1747
1767
  }
1748
- return o ? (n = { ...n, className: "button primary medium" }, /* @__PURE__ */ r.jsx("p", { className: "center", children: /* @__PURE__ */ r.jsx(W, { variant: "primary", size: "medium", ...n, children: s }) })) : /* @__PURE__ */ r.jsx("a", { ...n, children: s });
1768
+ return a ? (n = { ...n, className: "button primary medium" }, /* @__PURE__ */ r.jsx("p", { className: "center", children: /* @__PURE__ */ r.jsx(W, { variant: "primary", size: "medium", ...n, children: s }) })) : /* @__PURE__ */ r.jsx("a", { ...n, children: s });
1749
1769
  }, Zr = ({ children: e }) => /* @__PURE__ */ r.jsx("span", { children: e });
1750
1770
  const nn = ({ className: e = "", options: t = {}, children: n }) => {
1751
1771
  n = n.replace(/^<br\/?>/, "");
1752
1772
  const s = {
1753
- wrapper: N.Fragment,
1773
+ wrapper: A.Fragment,
1754
1774
  forceBlock: !0,
1755
1775
  overrides: {
1756
1776
  a: Xr,
@@ -1770,11 +1790,11 @@ const nn = ({ className: e = "", options: t = {}, children: n }) => {
1770
1790
  return /* @__PURE__ */ r.jsx("div", { className: j("markdown-text", e), children: /* @__PURE__ */ r.jsx(et, { options: { ...s, ...t }, children: n }) });
1771
1791
  };
1772
1792
  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 Mt = ({ element: e = "p", children: t = null, className: n = "", ...s }) => N.createElement(e, { ...s, className: j("status-banner text-small", n), "aria-live": "assertive" }, t);
1793
+ 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
1794
  const Kr = ({ progress: e = 0, text: t = !1, className: n = "" }) => {
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 = Ne(Kr);
1795
+ const s = F(), a = e > 75 ? 100 : e > 50 ? 75 : e > 25 ? 50 : e > 5 ? 25 : 0, i = { "--progress": `${e}%` };
1796
+ return /* @__PURE__ */ r.jsx("span", { className: j(`progress-bar section-${a}`, n), style: i, children: /* @__PURE__ */ r.jsx(re, { children: t ? `${e} ${t}` : s.formatMessage({ id: "progressBar" }, { number: e }) }) });
1797
+ }, es = Ae(Kr);
1778
1798
  const mt = "loadingBlock_", ts = ({ progress: e = 0, steps: t = !1, className: n = "" }) => {
1779
1799
  const s = F();
1780
1800
  t || (t = {
@@ -1782,32 +1802,32 @@ const mt = "loadingBlock_", ts = ({ progress: e = 0, steps: t = !1, className: n
1782
1802
  75: { text: s.formatMessage({ id: `${mt}almostDone` }) },
1783
1803
  100: { text: s.formatMessage({ id: `${mt}complete` }) }
1784
1804
  });
1785
- let o = null;
1786
- const l = Object.keys(t);
1787
- for (let a = 0; a < l.length && !(e < parseInt(l[a])); a++)
1788
- o = l[a];
1789
- const m = o && t[o].icon ? { "--icon": `url(${$t}icons/${t[o].icon}.svg)` } : {};
1805
+ let a = null;
1806
+ const i = Object.keys(t);
1807
+ for (let o = 0; o < i.length && !(e < parseInt(i[o])); o++)
1808
+ a = i[o];
1809
+ const d = a && t[a].icon ? { "--icon": `url(${$t}icons/${t[a].icon}.svg)` } : {};
1790
1810
  return /* @__PURE__ */ r.jsxs(
1791
1811
  ke,
1792
1812
  {
1793
- className: j("loading-block", n, { "has-icon": o && t[o].icon }),
1813
+ className: j("loading-block", n, { "has-icon": a && t[a].icon }),
1794
1814
  variant: "subtle",
1795
- style: m,
1815
+ style: d,
1796
1816
  children: [
1797
- o && /* @__PURE__ */ r.jsx("span", { className: "step", children: t[o].text }),
1817
+ a && /* @__PURE__ */ r.jsx("span", { className: "step", children: t[a].text }),
1798
1818
  /* @__PURE__ */ r.jsx(es, { progress: e })
1799
1819
  ]
1800
1820
  }
1801
1821
  );
1802
- }, fo = Ne(ts);
1803
- const ve = ({ element: e = "div", className: t = "", ...n }) => /* @__PURE__ */ r.jsx(mn, { element: e, className: j("loading-placeholder", t), ...n });
1822
+ }, fo = Ae(ts);
1823
+ const be = ({ element: e = "div", className: t = "", ...n }) => /* @__PURE__ */ r.jsx(mn, { element: e, className: j("loading-placeholder", t), ...n });
1804
1824
  const Ct = {
1805
1825
  header: ["logo", "link", "link", "search"],
1806
1826
  sidebar: ["text", "text", "text", "text", "text"],
1807
1827
  "cards-section": ["subtitle", "cards"],
1808
1828
  cards: ["card", "card", "card", "card"],
1809
1829
  "overview-page": ["header", "sidebar", "title", "text", "cards-section", "cards-section", "footer"]
1810
- }, vn = (e, t) => e in Ct ? /* @__PURE__ */ r.jsx("div", { className: e, children: Ct[e].map((n, s) => vn(n, s)) }, t) : /* @__PURE__ */ r.jsx(ve, { className: e }, t), ns = ({ layout: e = "overview-page" }) => /* @__PURE__ */ r.jsx("div", { className: j("loading-state", e), children: Ct[e].map((t, n) => vn(t, n)) }), wn = (e) => {
1830
+ }, 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
1831
  const t = e && e.toUpperCase().split(" ");
1812
1832
  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
1833
  }, Qe = ["#5AB6A3", "#A2D7AF", "#806056", "#3962B3"], rs = (e) => {
@@ -1815,35 +1835,35 @@ const Ct = {
1815
1835
  if (n === "")
1816
1836
  return Qe[0];
1817
1837
  const s = n.charCodeAt(0) - 96;
1818
- for (let o = 0; o < Qe.length; o++)
1819
- if (s <= t * (o + 1))
1820
- return Qe[o];
1838
+ for (let a = 0; a < Qe.length; a++)
1839
+ if (s <= t * (a + 1))
1840
+ return Qe[a];
1821
1841
  };
1822
- const rn = 256, Pt = ({ className: e = "", src: t = "", name: n, alt: s, width: o = rn, height: l = rn, ...m }) => {
1823
- const [a, i] = P(!1), c = ee(null);
1842
+ const rn = 256, Pt = ({ className: e = "", src: t = "", name: n, alt: s, width: a = rn, height: i = rn, ...d }) => {
1843
+ const [o, l] = P(!1), m = ee(null);
1824
1844
  z(() => {
1825
- const f = c.current;
1845
+ const f = m.current;
1826
1846
  if (!f)
1827
1847
  return;
1828
1848
  const p = f.getContext("2d");
1829
1849
  if (!p)
1830
1850
  return;
1831
- const h = o, _ = l;
1851
+ const h = a, _ = i;
1832
1852
  typeof window < "u" && window.devicePixelRatio && (f.width = h * window.devicePixelRatio, f.height = _ * window.devicePixelRatio, p.scale(window.devicePixelRatio, window.devicePixelRatio)), p.fillStyle = rs(n), p.fillRect(0, 0, h, _), p.font = `${h / 3}px Arial`, p.textAlign = "center", p.fillStyle = "white", p.fillText(wn(n), h / 2, _ / 1.6);
1833
1853
  }, [n]);
1834
- let u = !1;
1835
- return t && t !== "" && !a && (t.includes("http") || t.includes("//")) && (u = !0), /* @__PURE__ */ r.jsx("figure", { className: j("profile-picture", e, { error: a }), ...m, children: u ? /* @__PURE__ */ r.jsx(
1854
+ let c = !1;
1855
+ return t && t !== "" && !o && (t.includes("http") || t.includes("//")) && (c = !0), /* @__PURE__ */ r.jsx("figure", { className: j("profile-picture", e, { error: o }), ...d, children: c ? /* @__PURE__ */ r.jsx(
1836
1856
  "img",
1837
1857
  {
1838
1858
  src: t,
1839
1859
  alt: s || n,
1840
1860
  onError: () => {
1841
- i(!0);
1861
+ l(!0);
1842
1862
  },
1843
- width: o,
1844
- height: l
1863
+ width: a,
1864
+ height: i
1845
1865
  }
1846
- ) : /* @__PURE__ */ r.jsx("canvas", { ref: c }) });
1866
+ ) : /* @__PURE__ */ r.jsx("canvas", { ref: m }) });
1847
1867
  }, kn = (e) => e === "apolitical" ? {
1848
1868
  image: `${$t}logos/member_apolitical.svg`
1849
1869
  } : e === "community" || typeof e == "object" && !e.name ? {
@@ -1861,42 +1881,42 @@ const rn = 256, Pt = ({ className: e = "", src: t = "", name: n, alt: s, width:
1861
1881
  country: n = "",
1862
1882
  maximumCharacters: s = 80
1863
1883
  }) => {
1864
- const o = e !== "", l = t !== "", m = n !== "";
1865
- if (!o && !l && !m)
1884
+ const a = e !== "", i = t !== "", d = n !== "";
1885
+ if (!a && !i && !d)
1866
1886
  return "";
1867
- const a = `${e}${o && l ? ` — ${t}` : t}`;
1868
- let i = `${a}${(o || l) && m ? `, ${n}` : n}`;
1869
- return i.length > s && (i = a), i.length > s && (i = Ke(i, s)), i;
1887
+ const o = `${e}${a && i ? ` — ${t}` : t}`;
1888
+ let l = `${o}${(a || i) && d ? `, ${n}` : n}`;
1889
+ return l.length > s && (l = o), l.length > s && (l = Ke(l, s)), l;
1870
1890
  };
1871
1891
  const Ft = ({
1872
1892
  element: e = "div",
1873
1893
  member: t = "community",
1874
1894
  additionalContent: n = !1,
1875
1895
  gtmContext: s = "member",
1876
- gtmType: o = "member-click",
1877
- className: l = ""
1896
+ gtmType: a = "member-click",
1897
+ className: i = ""
1878
1898
  }) => {
1879
- const m = F(), a = kn(t);
1880
- a.name || (a.name = m.formatMessage({ id: `member_${typeof t == "string" ? t : "community"}` }));
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, {
1883
- className: j("member text-medium", l),
1899
+ const d = F(), o = kn(t);
1900
+ o.name || (o.name = d.formatMessage({ id: `member_${typeof t == "string" ? t : "community"}` }));
1901
+ const { name: l, url: m, image: c } = o, f = ss(o), p = n && n.createdAt ? Mr(n.createdAt) : !1, h = n && n.createdAt ? Tr(n.createdAt) : "";
1902
+ return A.createElement(e, {
1903
+ className: j("member text-medium", i),
1884
1904
  children: /* @__PURE__ */ r.jsxs(
1885
1905
  rt,
1886
1906
  {
1887
- href: c,
1888
- gtmType: o,
1907
+ href: m,
1908
+ gtmType: a,
1889
1909
  gtmContext: s,
1890
1910
  onClick: (_) => {
1891
1911
  _ == null || _.stopPropagation();
1892
1912
  },
1893
1913
  children: [
1894
- /* @__PURE__ */ r.jsx(Pt, { name: i, src: u }),
1914
+ /* @__PURE__ */ r.jsx(Pt, { name: l, src: c }),
1895
1915
  /* @__PURE__ */ r.jsxs("p", { className: "details", children: [
1896
- /* @__PURE__ */ r.jsx("strong", { children: i }),
1916
+ /* @__PURE__ */ r.jsx("strong", { children: l }),
1897
1917
  n && /* @__PURE__ */ r.jsxs("span", { className: "additional-content", children: [
1898
- n.createdAt && p && /* @__PURE__ */ r.jsx("span", { className: "date", title: h, "aria-label": h, children: m.formatMessage({ id: `dates_${p.path}` }, { number: p.number }) }),
1899
- n.didEdit && /* @__PURE__ */ r.jsx("em", { children: m.formatMessage({ id: "discussion_edited" }) })
1918
+ n.createdAt && p && /* @__PURE__ */ r.jsx("span", { className: "date", title: h, "aria-label": h, children: d.formatMessage({ id: `dates_${p.path}` }, { number: p.number }) }),
1919
+ n.didEdit && /* @__PURE__ */ r.jsx("em", { children: d.formatMessage({ id: "discussion_edited" }) })
1900
1920
  ] }),
1901
1921
  f && /* @__PURE__ */ r.jsx("small", { children: f })
1902
1922
  ] })
@@ -1908,20 +1928,20 @@ const Ft = ({
1908
1928
  const sn = {
1909
1929
  small: 24,
1910
1930
  medium: 48
1911
- }, os = ({ element: e = "div", contributors: { total: t, data: n } = { total: void 0, data: [] }, styling: { showText: s, size: o, showGap: l, showPlaceholders: m } = { showText: !0, size: "medium", showGap: !0, showPlaceholders: !1 }, cutoff: a = 2, className: i = "" }) => {
1912
- const c = F();
1913
- return !n || n.length === 0 ? null : N.createElement(
1931
+ }, os = ({ element: e = "div", contributors: { total: t, data: n } = { total: void 0, data: [] }, styling: { showText: s, size: a, showGap: i, showPlaceholders: d } = { showText: !0, size: "medium", showGap: !0, showPlaceholders: !1 }, cutoff: o = 2, className: l = "" }) => {
1932
+ const m = F();
1933
+ return !n || n.length === 0 ? null : A.createElement(
1914
1934
  e,
1915
- { className: j("contributors", i, o, { "has-gap": l }), children: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1916
- /* @__PURE__ */ r.jsx("ul", { children: n.map((u, f) => {
1935
+ { className: j("contributors", l, a, { "has-gap": i }), children: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1936
+ /* @__PURE__ */ r.jsx("ul", { children: n.map((c, f) => {
1917
1937
  let p, h = "";
1918
- if (f < a) {
1919
- const { name: _ = "", image: k = "" } = kn(u);
1920
- if (m)
1921
- return /* @__PURE__ */ r.jsx(ve, { element: "li", className: "contributor" }, f);
1922
- p = /* @__PURE__ */ r.jsx(Pt, { name: _, src: k, width: sn[o || "medium"], height: sn[o || "medium"] });
1923
- } else if (f === a) {
1924
- const _ = (t || n.length) - a;
1938
+ if (f < o) {
1939
+ const { name: _ = "", image: k = "" } = kn(c);
1940
+ if (d)
1941
+ return /* @__PURE__ */ r.jsx(be, { element: "li", className: "contributor" }, f);
1942
+ p = /* @__PURE__ */ r.jsx(Pt, { name: _, src: k, width: sn[a || "medium"], height: sn[a || "medium"] });
1943
+ } else if (f === o) {
1944
+ const _ = (t || n.length) - o;
1925
1945
  p = /* @__PURE__ */ r.jsxs("small", { className: j({ "large-number": _ > 99 }), children: [
1926
1946
  "+",
1927
1947
  Fr(_, 0)
@@ -1929,7 +1949,7 @@ const sn = {
1929
1949
  }
1930
1950
  return p ? /* @__PURE__ */ r.jsx("li", { className: j("contributor", h), children: p }, f) : null;
1931
1951
  }) }),
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 })
1952
+ s && /* @__PURE__ */ r.jsx("span", { className: "label", children: typeof s == "string" ? s : n.length === 1 ? typeof n[0] == "string" ? m.formatMessage({ id: `member_${n[0]}` }) : Ke(n[0].name || "", 20) : null })
1933
1953
  ] }) }
1934
1954
  );
1935
1955
  }, as = ({ showDevTools: e = !0, children: t }) => {
@@ -1949,12 +1969,12 @@ const sn = {
1949
1969
  e && /* @__PURE__ */ r.jsx(dr, { initialIsOpen: !1 })
1950
1970
  ] });
1951
1971
  };
1952
- var is = At({ client: Ge });
1972
+ var is = Nt({ client: Ge });
1953
1973
  function ls(e) {
1954
- var t = e.children, n = e.client, s = e.apiKey, o = e.options, l = qe(function() {
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);
1974
+ var t = e.children, n = e.client, s = e.apiKey, a = e.options, i = qe(function() {
1975
+ 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 && a && 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, a)), Ge);
1956
1976
  }, [n, s]);
1957
- return N.createElement(is.Provider, { value: { client: l } }, t);
1977
+ return A.createElement(is.Provider, { value: { client: i } }, t);
1958
1978
  }
1959
1979
  const cs = ({ children: e, user: t }) => t.isLoading ? /* @__PURE__ */ r.jsx(r.Fragment, {}) : process.env.REACT_APP_PUBLIC_POSTHOG_KEY ? /* @__PURE__ */ r.jsx(
1960
1980
  ls,
@@ -1973,87 +1993,58 @@ const cs = ({ children: e, user: t }) => t.isLoading ? /* @__PURE__ */ r.jsx(r.F
1973
1993
  children: e
1974
1994
  }
1975
1995
  ) : e, us = ({ children: e, locale: t, messages: n }) => {
1976
- const s = t || "en", o = {
1996
+ const s = t || "en", a = {
1977
1997
  ...Pr[s],
1978
1998
  ...n || {}
1979
1999
  };
1980
- return /* @__PURE__ */ r.jsx(ir, { locale: s, messages: o, children: e });
1981
- }, je = At(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 });
2000
+ return /* @__PURE__ */ r.jsx(ir, { locale: s, messages: a, children: e });
2001
+ }, je = Nt(null), ds = ({ children: e, user: t }) => /* @__PURE__ */ r.jsx(je.Provider, { value: t, children: e }), po = ({ bootstrap: e, children: t, intl: n }) => {
2002
+ const [s, a] = P({ isLoading: !0 });
1983
2003
  return z(() => {
1984
- e().then((l) => o({ ...l, isLoading: !1 })).catch(() => o({ isLoading: !1 }));
2004
+ e().then((i) => a({ ...i, isLoading: !1 })).catch(() => a({ isLoading: !1 }));
1985
2005
  }, []), /* @__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
2006
  };
1987
2007
  const ft = "joinCommunityButton", yn = ({ isMember: e = !1, isShort: t = !1, functions: { join: n, leave: s } = { join: () => {
1988
2008
  }, leave: () => {
1989
2009
  } } }) => {
1990
- const o = F(), l = ye(je), m = l && typeof l.id == "string", [a, i] = P(e), [c, u] = P(e ? "joined" : "notJoined");
2010
+ const a = F(), i = ye(je), d = i && typeof i.id == "string", [o, l] = P(e), [m, c] = P(e ? "joined" : "notJoined");
1991
2011
  z(() => {
1992
- c === "joining" ? u("joined") : c === "leaving" && u("notJoined");
1993
- }, [a]);
2012
+ m === "joining" ? c("joined") : m === "leaving" && c("notJoined");
2013
+ }, [o]);
1994
2014
  const f = {}, p = {};
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(
2015
+ return o && m !== "leaving" && (f["data-hover-text"] = a.formatMessage({ id: `${ft}_leave` }), f["aria-label"] = a.formatMessage({ id: `${ft}_member_aria` }), p["aria-hidden"] = "true"), /* @__PURE__ */ r.jsx(
1996
2016
  W,
1997
2017
  {
1998
- variant: a ? "secondary" : "primary",
2018
+ variant: o ? "secondary" : "primary",
1999
2019
  size: "medium",
2000
2020
  styling: { fullWidth: !0 },
2001
- icon: a && c !== "leaving" ? { icon: "tick", position: "left" } : !1,
2021
+ icon: o && m !== "leaving" ? { icon: "tick", position: "left" } : !1,
2002
2022
  onClick: async (h) => {
2003
- m && (h.currentTarget.blur(), a ? (u("leaving"), typeof s == "function" && await s()) : (u("joining"), typeof n == "function" && await n()), i(!a));
2023
+ d && (h.currentTarget.blur(), o ? (c("leaving"), typeof s == "function" && await s()) : (c("joining"), typeof n == "function" && await n()), l(!o));
2004
2024
  },
2005
- className: j("join-community-button", c, { active: c === "joining" }),
2006
- disabled: !m,
2025
+ className: j("join-community-button", m, { active: m === "joining" }),
2026
+ disabled: !d,
2007
2027
  ...f,
2008
- children: /* @__PURE__ */ r.jsx("span", { className: "text", ...p, children: o.formatMessage({ id: `${ft}${["joining", "leaving"].includes(c) ? `_${c}` : a ? "_member" : t ? "_short" : ""}` }) })
2028
+ children: /* @__PURE__ */ r.jsx("span", { className: "text", ...p, children: a.formatMessage({ id: `${ft}${["joining", "leaving"].includes(m) ? `_${m}` : o ? "_member" : t ? "_short" : ""}` }) })
2009
2029
  }
2010
2030
  );
2011
2031
  };
2012
- const pt = "communityDetails_", ho = ({
2013
- className: e = "",
2014
- isMember: t = !1,
2015
- slug: n,
2016
- members: { number: s = 0, data: o = [] } = { number: 0, data: [] },
2017
- functions: { invite: l, ...m }
2018
- }) => {
2019
- const a = F(), i = 5, c = s || o.length, u = o.length ? o : Array(i).fill({});
2020
- return /* @__PURE__ */ r.jsxs("div", { className: j("community-details", e), children: [
2021
- /* @__PURE__ */ r.jsx(Ae, {}),
2032
+ const pt = "communityDetails_", ho = ({ isMember: e = !1, slug: t, members: { number: n, data: s } = { number: void 0, data: [] }, className: a = "", ...i }) => {
2033
+ const d = F(), o = n || (s == null ? void 0 : s.length) || 0;
2034
+ return /* @__PURE__ */ r.jsxs("div", { className: j("community-details", a), children: [
2035
+ /* @__PURE__ */ r.jsx(Ne, {}),
2022
2036
  /* @__PURE__ */ r.jsxs("div", { className: "member-details", children: [
2023
2037
  /* @__PURE__ */ r.jsxs("div", { className: "top", children: [
2024
2038
  /* @__PURE__ */ r.jsxs("h3", { children: [
2025
- a.formatMessage({ id: `${pt}members` }),
2026
- /* @__PURE__ */ r.jsx("span", { className: "count", children: c })
2039
+ d.formatMessage({ id: `${pt}members` }),
2040
+ /* @__PURE__ */ r.jsx("span", { className: "count", children: o })
2027
2041
  ] }),
2028
- /* @__PURE__ */ r.jsx("p", { className: "text-small", children: /* @__PURE__ */ r.jsx("a", { href: `/communities/${n}/members`, children: a.formatMessage({ id: `${pt}viewAll` }) }) })
2042
+ /* @__PURE__ */ r.jsx("p", { className: "text-small", children: /* @__PURE__ */ r.jsx("a", { href: `/communities/${t}/members`, children: d.formatMessage({ id: `${pt}viewAll` }) }) })
2029
2043
  ] }),
2030
- /* @__PURE__ */ r.jsx(
2031
- os,
2032
- {
2033
- contributors: {
2034
- total: s,
2035
- data: u
2036
- },
2037
- styling: {
2038
- size: "medium",
2039
- showGap: !0,
2040
- showPlaceholders: c === 0
2041
- },
2042
- cutoff: i
2043
- }
2044
- )
2044
+ /* @__PURE__ */ r.jsx(os, { contributors: { total: n, data: s != null && s.length ? s : [{}, {}, {}, {}, {}] }, styling: { size: "medium", showGap: !0, showPlaceholders: o === 0 }, cutoff: 5 })
2045
2045
  ] }),
2046
- /* @__PURE__ */ r.jsx(yn, { isMember: t, functions: { ...m } }),
2047
- t && /* @__PURE__ */ r.jsx(
2048
- W,
2049
- {
2050
- variant: "primary",
2051
- onClick: l,
2052
- icon: { icon: "plus" },
2053
- styling: { fullWidth: !0 },
2054
- children: a.formatMessage({ id: `${pt}invite` })
2055
- }
2056
- )
2046
+ /* @__PURE__ */ r.jsx(yn, { isMember: e, ...i }),
2047
+ e && /* @__PURE__ */ r.jsx(W, { variant: "primary", icon: { icon: "plus" }, styling: { fullWidth: !0 }, children: d.formatMessage({ id: `${pt}invite` }) })
2057
2048
  ] });
2058
2049
  };
2059
2050
  const go = ({
@@ -2064,10 +2055,10 @@ const go = ({
2064
2055
  const s = F();
2065
2056
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
2066
2057
  /* @__PURE__ */ r.jsx(re, { element: "p", children: s.formatMessage({ id: "breadcrumbs_label" }) }),
2067
- /* @__PURE__ */ r.jsx("ul", { className: j("breadcrumbs text-small", n), children: e.map(({ text: o, href: l, current: m = !1 }, a) => /* @__PURE__ */ r.jsxs("li", { children: [
2068
- m && /* @__PURE__ */ r.jsx(re, { element: "span", children: s.formatMessage({ id: "breadcrumbs_currentPage" }) }),
2069
- /* @__PURE__ */ r.jsx(rt, { href: m ? void 0 : l, children: Ke(o, t) })
2070
- ] }, `${window.btoa(o)}_${a}`)) })
2058
+ /* @__PURE__ */ r.jsx("ul", { className: j("breadcrumbs text-small", n), children: e.map(({ text: a, href: i, current: d = !1 }, o) => /* @__PURE__ */ r.jsxs("li", { children: [
2059
+ d && /* @__PURE__ */ r.jsx(re, { element: "span", children: s.formatMessage({ id: "breadcrumbs_currentPage" }) }),
2060
+ /* @__PURE__ */ r.jsx(rt, { href: d ? void 0 : i, children: Ke(a, t) })
2061
+ ] }, `${window.btoa(a)}_${o}`)) })
2071
2062
  ] });
2072
2063
  };
2073
2064
  const _o = ({
@@ -2076,34 +2067,34 @@ const _o = ({
2076
2067
  allowMultiple: n = !0,
2077
2068
  onChange: s = () => {
2078
2069
  },
2079
- className: o = ""
2070
+ className: a = ""
2080
2071
  }) => {
2081
- const l = F(), m = t ? [{ id: "all", text: typeof t != "boolean" && t.text || l.formatMessage({ id: "filters_all" }) }, ...e] : e, [a, i] = P(t ? ["all"] : []), c = (u, f) => {
2072
+ const i = F(), d = t ? [{ id: "all", text: typeof t != "boolean" && t.text || i.formatMessage({ id: "filters_all" }) }, ...e] : e, [o, l] = P(t ? ["all"] : []), m = (c, f) => {
2082
2073
  let p = [];
2083
- 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();
2074
+ o.includes(c) ? p = o.filter((h) => h !== c) : c === "all" ? p = ["all"] : n ? p = [...o.filter((h) => h !== "all"), c] : p = [c], l((h) => (s && typeof s == "function" && s({ current: p, previous: h }), p)), f && typeof f == "function" && f();
2084
2075
  };
2085
- return /* @__PURE__ */ r.jsx("ul", { className: j("filters", o), children: m.map(({ id: u, text: f, disabled: p = !1, callback: h = () => {
2076
+ return /* @__PURE__ */ r.jsx("ul", { className: j("filters", a), children: d.map(({ id: c, text: f, disabled: p = !1, callback: h = () => {
2086
2077
  } }) => {
2087
2078
  let _ = {};
2088
- return p && (_ = { disabled: !0, "aria-label": l.formatMessage({ id: "filters_disabled" }, { name: f }) }), /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(
2079
+ return p && (_ = { disabled: !0, "aria-label": i.formatMessage({ id: "filters_disabled" }, { name: f }) }), /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(
2089
2080
  "button",
2090
2081
  {
2091
- className: j(u, { selected: a.includes(u) }),
2082
+ className: j(c, { selected: o.includes(c) }),
2092
2083
  onClick: (k) => {
2093
- k.preventDefault(), k.stopPropagation(), c(u, h);
2084
+ k.preventDefault(), k.stopPropagation(), m(c, h);
2094
2085
  },
2095
2086
  ..._,
2096
2087
  children: f
2097
2088
  }
2098
- ) }, u);
2089
+ ) }, c);
2099
2090
  }) });
2100
2091
  }, ms = (e, t) => {
2101
2092
  const n = String(e);
2102
2093
  if (!t || !t.length)
2103
2094
  return `/${n}`;
2104
2095
  let s = "";
2105
- return t.forEach(({ url: o, position: l }) => {
2106
- l === "before-lang" ? s += `/${o}` : (s.includes(`/${n}/`) || (s += `/${n}`), s += `/${o}`);
2096
+ return t.forEach(({ url: a, position: i }) => {
2097
+ i === "before-lang" ? s += `/${a}` : (s.includes(`/${n}/`) || (s += `/${n}`), s += `/${a}`);
2107
2098
  }), s.includes(`/${n}/`) || (s += `/${n}`), s;
2108
2099
  };
2109
2100
  const ht = { en: "English", es: "Español", fr: "Français", pt: "Português" }, Ue = "languageSwitcher_", xo = ({
@@ -2111,41 +2102,41 @@ const ht = { en: "English", es: "Español", fr: "Français", pt: "Português" },
2111
2102
  isOriginalLanguage: t = !1,
2112
2103
  isHumanTranslation: n = !1,
2113
2104
  translations: s,
2114
- onChange: o = () => {
2105
+ onChange: a = () => {
2115
2106
  },
2116
- urlParts: l,
2117
- variant: m = "default",
2118
- label: a,
2119
- className: i = ""
2107
+ urlParts: i,
2108
+ variant: d = "default",
2109
+ label: o,
2110
+ className: l = ""
2120
2111
  }) => {
2121
- const c = F(), [u, f] = P(e);
2112
+ const m = F(), [c, f] = P(e);
2122
2113
  if (z(() => {
2123
- e !== u && f(e);
2114
+ e !== c && f(e);
2124
2115
  }, [e]), !s || !Object.values(s).some((k) => k && k.post_name))
2125
2116
  return null;
2126
- const h = Object.keys(s), _ = u !== e;
2127
- return /* @__PURE__ */ r.jsxs("div", { className: j("language-switcher text-small", m, i), children: [
2117
+ const h = Object.keys(s), _ = c !== e;
2118
+ return /* @__PURE__ */ r.jsxs("div", { className: j("language-switcher text-small", d, l), children: [
2128
2119
  /* @__PURE__ */ r.jsxs("nav", { children: [
2129
- m !== "short" && /* @__PURE__ */ r.jsx("p", { children: a || c.formatMessage({ id: `${Ue}label` }) }),
2120
+ d !== "short" && /* @__PURE__ */ r.jsx("p", { children: o || m.formatMessage({ id: `${Ue}label` }) }),
2130
2121
  /* @__PURE__ */ r.jsx("ul", { children: h.map((k) => {
2131
2122
  if (!ht[k])
2132
2123
  return null;
2133
2124
  let g = { className: k };
2134
- return u === k ? g["aria-label"] = c.formatMessage({ id: `${Ue}selected` }, { language: ht[k] }) : g = {
2125
+ return c === k ? g["aria-label"] = m.formatMessage({ id: `${Ue}selected` }, { language: ht[k] }) : g = {
2135
2126
  ...g,
2136
- href: ms(k, l),
2127
+ href: ms(k, i),
2137
2128
  onClick: (E) => {
2138
- E.preventDefault(), E.stopPropagation(), f(k), o(k);
2129
+ E.preventDefault(), E.stopPropagation(), f(k), a(k);
2139
2130
  }
2140
2131
  }, /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(rt, { ...g, fallbackElement: "span", children: ht[k] }) }, k);
2141
2132
  }) }),
2142
- m !== "short" && !_ && /* @__PURE__ */ r.jsx("p", { children: c.formatMessage({ id: `${Ue}translation_${t ? "original" : n ? "human" : "machine"}` }) })
2133
+ d !== "short" && !_ && /* @__PURE__ */ r.jsx("p", { children: m.formatMessage({ id: `${Ue}translation_${t ? "original" : n ? "human" : "machine"}` }) })
2143
2134
  ] }),
2144
- m !== "short" && !_ && !t && !n && /* @__PURE__ */ r.jsx("small", {
2135
+ d !== "short" && !_ && !t && !n && /* @__PURE__ */ r.jsx("small", {
2145
2136
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2146
2137
  // @ts-ignore
2147
2138
  // `values` are throwing a type error: https://github.com/formatjs/formatjs/issues/3633
2148
- children: c.formatMessage({ id: `${Ue}disclaimer` }, {
2139
+ children: m.formatMessage({ id: `${Ue}disclaimer` }, {
2149
2140
  email: Oe.support,
2150
2141
  link: (k) => {
2151
2142
  const g = `mailto:${k}`;
@@ -2161,51 +2152,51 @@ const gt = lr({ locale: "en", messages: Dt }), fs = ({
2161
2152
  limit: n = 10,
2162
2153
  loadNextPage: s = () => {
2163
2154
  },
2164
- icon: o = !1,
2165
- messages: l = {
2155
+ icon: a = !1,
2156
+ messages: i = {
2166
2157
  button: gt.formatMessage({ id: "loadMore_button" }),
2167
2158
  endOfFeed: gt.formatMessage({ id: "loadMore_endOfFeed" }),
2168
2159
  error: gt.formatMessage({ id: "loadMore_error" })
2169
2160
  },
2170
- className: m = "",
2171
- gtmContext: a = "LoadMore"
2161
+ className: d = "",
2162
+ gtmContext: o = "LoadMore"
2172
2163
  }) => {
2173
- const [i, c] = P(!1), [u, f] = P(!1);
2164
+ const [l, m] = P(!1), [c, f] = P(!1);
2174
2165
  if (t <= 0 || t < n * e)
2175
2166
  return null;
2176
2167
  const p = async (h) => {
2177
2168
  try {
2178
2169
  await s(h);
2179
2170
  } catch (_) {
2180
- _ instanceof Error && _.message && _.message.includes("Cannot read items") ? f(!0) : c(!0);
2171
+ _ instanceof Error && _.message && _.message.includes("Cannot read items") ? f(!0) : m(!0);
2181
2172
  }
2182
2173
  };
2183
- return /* @__PURE__ */ r.jsxs("footer", { className: j("load-more", m), children: [
2184
- i && /* @__PURE__ */ r.jsx("p", { className: "error", children: l.error }),
2185
- u ? /* @__PURE__ */ r.jsx("p", { children: l.endOfFeed }) : /* @__PURE__ */ r.jsx(
2174
+ return /* @__PURE__ */ r.jsxs("footer", { className: j("load-more", d), children: [
2175
+ l && /* @__PURE__ */ r.jsx("p", { className: "error", children: i.error }),
2176
+ c ? /* @__PURE__ */ r.jsx("p", { children: i.endOfFeed }) : /* @__PURE__ */ r.jsx(
2186
2177
  W,
2187
2178
  {
2188
2179
  variant: "secondary",
2189
- icon: o,
2180
+ icon: a,
2190
2181
  onClick: p,
2191
- "data-gtm-event-context": a,
2182
+ "data-gtm-event-context": o,
2192
2183
  "data-gtm-event-type": "load-more-click",
2193
2184
  className: "gtm-trackable",
2194
2185
  "data-testid": "load-more-button",
2195
- children: l.button
2186
+ children: i.button
2196
2187
  }
2197
2188
  )
2198
2189
  ] });
2199
2190
  };
2200
2191
  let We = !1;
2201
2192
  const ps = ({ element: e = "div", id: t = "more-menu", options: n, className: s = "" }) => {
2202
- const o = F(), l = ee(null), [m, a] = P(!1), i = (c) => {
2203
- l.current && c.target instanceof HTMLElement && !l.current.contains(c.target) && a(!1);
2193
+ const a = F(), i = ee(null), [d, o] = P(!1), l = (m) => {
2194
+ i.current && m.target instanceof HTMLElement && !i.current.contains(m.target) && o(!1);
2204
2195
  };
2205
- return z(() => (document.addEventListener("click", i, !0), () => {
2206
- document.removeEventListener("click", i, !0);
2207
- })), N.createElement(e, {
2208
- ref: l,
2196
+ return z(() => (document.addEventListener("click", l, !0), () => {
2197
+ document.removeEventListener("click", l, !0);
2198
+ })), A.createElement(e, {
2199
+ ref: i,
2209
2200
  className: j("more-menu text-medium", s),
2210
2201
  children: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
2211
2202
  /* @__PURE__ */ r.jsx(
@@ -2214,29 +2205,29 @@ const ps = ({ element: e = "div", id: t = "more-menu", options: n, className: s
2214
2205
  variant: "tertiary",
2215
2206
  size: "medium",
2216
2207
  icon: { icon: "ellipsis" },
2217
- onClick: () => a(!m),
2208
+ onClick: () => o(!d),
2218
2209
  "aria-haspopup": "true",
2219
- "aria-expanded": m,
2210
+ "aria-expanded": d,
2220
2211
  "aria-controls": t,
2221
- screenreaderText: o.formatMessage({ id: "moreMenu" })
2212
+ screenreaderText: a.formatMessage({ id: "moreMenu" })
2222
2213
  }
2223
2214
  ),
2224
- /* @__PURE__ */ r.jsx("ul", { id: t, hidden: !m, children: n.map(({ href: c, onClick: u, text: f, icon: p, ...h }, _) => {
2215
+ /* @__PURE__ */ r.jsx("ul", { id: t, hidden: !d, children: n.map(({ href: m, onClick: c, text: f, icon: p, ...h }, _) => {
2225
2216
  const k = {
2226
2217
  ...h,
2227
2218
  onClick: (g) => {
2228
- a(!1), typeof u == "function" && u(g);
2219
+ o(!1), typeof c == "function" && c(g);
2229
2220
  },
2230
2221
  onFocus: () => {
2231
2222
  We && (clearTimeout(We), We = !1);
2232
2223
  },
2233
2224
  onBlur: () => {
2234
2225
  We = setTimeout(() => {
2235
- a(!1);
2226
+ o(!1);
2236
2227
  }, 100);
2237
2228
  }
2238
2229
  };
2239
- return c && (k.href = c), /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(
2230
+ return m && (k.href = m), /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(
2240
2231
  W,
2241
2232
  {
2242
2233
  variant: "tertiary",
@@ -2253,58 +2244,58 @@ const ps = ({ element: e = "div", id: t = "more-menu", options: n, className: s
2253
2244
  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" }) }) }) });
2254
2245
  const hs = {
2255
2246
  "2-1": 901
2256
- }, bo = ({ layout: e = "2-1", hideOnMobile: t = !1, className: n = "", children: s }) => {
2257
- const o = tt(!0);
2258
- let l = s;
2259
- 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, (m, a) => t !== !1 && a === t && o && o < hs[e] ? null : m) });
2247
+ }, vo = ({ layout: e = "2-1", hideOnMobile: t = !1, className: n = "", children: s }) => {
2248
+ const a = tt(!0);
2249
+ let i = s;
2250
+ return A.Children.count(s) === 1 && (i = A.Children.toArray(s)[0], i.props && (i = i.props.children)), /* @__PURE__ */ r.jsx("section", { className: j("columns", `layout-${e}`, n), children: A.Children.map(i, (d, o) => t !== !1 && o === t && a && a < hs[e] ? null : d) });
2260
2251
  };
2261
- const _t = "cookieBanner_", xt = ["apol-cookie-banner", "apolitical-performance-cookie-consent", "functional-cookie-consent"], bt = new Date(Date.now() + 12 * 30 * 24 * 60 * 60 * 1e3), gs = () => {
2262
- const e = F(), [t, n, s] = mr(xt), [o, l] = P(!t["apol-cookie-banner"]), m = () => {
2263
- xt.forEach((u) => {
2264
- n(u, !0, {
2252
+ 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 = () => {
2253
+ const e = F(), [t, n, s] = mr(xt), [a, i] = P(!t["apol-cookie-banner"]), d = () => {
2254
+ xt.forEach((c) => {
2255
+ n(c, !0, {
2265
2256
  path: "/",
2266
- expires: bt,
2267
- domain: u === "apolitical-performance-cookie-consent" ? ".apolitical.co" : void 0
2257
+ expires: vt,
2258
+ domain: c === "apolitical-performance-cookie-consent" ? ".apolitical.co" : void 0
2268
2259
  });
2269
- }), l(!1), window.location.reload();
2270
- }, a = () => {
2260
+ }), i(!1), window.location.reload();
2261
+ }, o = () => {
2271
2262
  n("apol-cookie-banner", !0, {
2272
2263
  path: "/",
2273
- expires: bt
2274
- }), xt.forEach((u) => {
2275
- if (u === "apol-cookie-banner") {
2276
- n(u, !0, {
2264
+ expires: vt
2265
+ }), xt.forEach((c) => {
2266
+ if (c === "apol-cookie-banner") {
2267
+ n(c, !0, {
2277
2268
  path: "/",
2278
- expires: bt
2269
+ expires: vt
2279
2270
  });
2280
2271
  return;
2281
2272
  }
2282
- s(u);
2283
- }), l(!1);
2273
+ s(c);
2274
+ }), i(!1);
2284
2275
  };
2285
- if (!o)
2276
+ if (!a)
2286
2277
  return null;
2287
- const i = [
2278
+ const l = [
2288
2279
  { id: "settings", href: "/pages/cookie-policy", gtmType: "policy-page" },
2289
- { id: "reject", onClick: a, gtmType: "reject-all" },
2290
- { id: "accept", onClick: m, gtmType: "accepted-all" }
2291
- ], c = [];
2292
- return i.forEach((u) => {
2293
- c.push({
2294
- variant: u.href ? "tertiary" : "primary",
2295
- href: u.href,
2296
- onClick: u.onClick,
2280
+ { id: "reject", onClick: o, gtmType: "reject-all" },
2281
+ { id: "accept", onClick: d, gtmType: "accepted-all" }
2282
+ ], m = [];
2283
+ return l.forEach((c) => {
2284
+ m.push({
2285
+ variant: c.href ? "tertiary" : "primary",
2286
+ href: c.href,
2287
+ onClick: c.onClick,
2297
2288
  className: "gtm-trackable",
2298
2289
  "data-gtm-event-context": "cookie-banner",
2299
- "data-gtm-event-type": `cookie-${u.gtmType}-click`,
2300
- children: e.formatMessage({ id: `${_t}buttons_${u.id}` })
2290
+ "data-gtm-event-type": `cookie-${c.gtmType}-click`,
2291
+ children: e.formatMessage({ id: `${_t}buttons_${c.id}` })
2301
2292
  });
2302
2293
  }), /* @__PURE__ */ r.jsxs("aside", { id: "cookie-banner", className: "text-medium", children: [
2303
2294
  /* @__PURE__ */ r.jsx("h6", { children: e.formatMessage({ id: `${_t}title` }) }),
2304
2295
  /* @__PURE__ */ r.jsx("p", { children: e.formatMessage({ id: `${_t}text` }) }),
2305
- /* @__PURE__ */ r.jsx(nt, { buttons: c })
2296
+ /* @__PURE__ */ r.jsx(nt, { buttons: m })
2306
2297
  ] });
2307
- }, be = {
2298
+ }, ve = {
2308
2299
  platform: {
2309
2300
  order: ["events", "courses", "qanda", "articles"],
2310
2301
  // An array guarantees the right order
@@ -2399,22 +2390,22 @@ const _t = "cookieBanner_", xt = ["apol-cookie-banner", "apolitical-performance-
2399
2390
  }
2400
2391
  };
2401
2392
  const Me = "footer_", Je = "SiteFooter", on = ({ group: e }) => {
2402
- const t = be[e].order || [];
2393
+ const t = ve[e].order || [];
2403
2394
  let n = !1;
2404
- return "text" in be[e] && (n = be[e].text), /* @__PURE__ */ r.jsxs(Et, { children: [
2395
+ return "text" in ve[e] && (n = ve[e].text), /* @__PURE__ */ r.jsxs(Et, { children: [
2405
2396
  /* @__PURE__ */ r.jsx("p", { className: "pre-title", children: /* @__PURE__ */ r.jsx(we, { id: `${Me}${e}` }) }),
2406
2397
  Array.isArray(t) && t.length > 0 && /* @__PURE__ */ r.jsx("ul", { className: "text-medium", children: t.map((s) => {
2407
2398
  if (["order", "child", "text"].includes(s))
2408
2399
  return null;
2409
- const { href: o, gtmType: l } = be[e][s], m = {};
2410
- return ["legal"].includes(e) && (m.target = "_blank", m.rel = "noopener"), /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(
2400
+ const { href: a, gtmType: i } = ve[e][s], d = {};
2401
+ return ["legal"].includes(e) && (d.target = "_blank", d.rel = "noopener"), /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(
2411
2402
  "a",
2412
2403
  {
2413
- href: o,
2404
+ href: a,
2414
2405
  className: "gtm-trackable",
2415
2406
  "data-gtm-event-context": Je,
2416
- "data-gtm-event-type": l,
2417
- ...m,
2407
+ "data-gtm-event-type": i,
2408
+ ...d,
2418
2409
  children: /* @__PURE__ */ r.jsx(we, { id: `${Me}${e}_${s}` })
2419
2410
  }
2420
2411
  ) }, `${e}_${s}`);
@@ -2450,12 +2441,12 @@ const Me = "footer_", Je = "SiteFooter", on = ({ group: e }) => {
2450
2441
  ),
2451
2442
  /* @__PURE__ */ r.jsx("footer", { children: ["platform", "community", "company", "contact"].map((e) => /* @__PURE__ */ r.jsxs("div", { className: "group", children: [
2452
2443
  /* @__PURE__ */ r.jsx(on, { group: e }),
2453
- Object.keys(be[e]).includes("child") && /* @__PURE__ */ r.jsx(on, { group: be[e].child })
2444
+ Object.keys(ve[e]).includes("child") && /* @__PURE__ */ r.jsx(on, { group: ve[e].child })
2454
2445
  ] }, e)) }),
2455
2446
  /* @__PURE__ */ r.jsx("hr", {}),
2456
2447
  /* @__PURE__ */ r.jsxs("div", { className: "sub-footer", children: [
2457
- /* @__PURE__ */ r.jsx("ul", { children: Array.isArray(be.social.order) && be.social.order.map((e) => {
2458
- const t = be.social[e];
2448
+ /* @__PURE__ */ r.jsx("ul", { children: Array.isArray(ve.social.order) && ve.social.order.map((e) => {
2449
+ const t = ve.social[e];
2459
2450
  return /* @__PURE__ */ r.jsx("li", { className: e, children: /* @__PURE__ */ r.jsx(
2460
2451
  "a",
2461
2452
  {
@@ -2472,19 +2463,19 @@ const Me = "footer_", Je = "SiteFooter", on = ({ group: e }) => {
2472
2463
  /* @__PURE__ */ r.jsx("small", { children: /* @__PURE__ */ r.jsx(we, { id: `${Me}copyright`, values: { currentYear: (/* @__PURE__ */ new Date()).getFullYear() } }) })
2473
2464
  ] })
2474
2465
  ] }) });
2475
- const ze = "emailHelperTextBox_", vo = ({ type: e, email: t, redirectPath: n, resendVerificationCode: s }) => {
2476
- const o = F(), [l, m] = P({ path: `${ze}default`, type: "default", link: {}, mail: {}, error: "" }), [a, i] = P(!1), c = Ee(
2466
+ const ze = "emailHelperTextBox_", bo = ({ type: e, email: t, redirectPath: n, resendVerificationCode: s }) => {
2467
+ const a = F(), [i, d] = P({ path: `${ze}default`, type: "default", link: {}, mail: {}, error: "" }), [o, l] = P(!1), m = Ee(
2477
2468
  (h) => {
2478
2469
  h.preventDefault(), h.stopPropagation();
2479
2470
  const _ = (k) => {
2480
- m({
2471
+ d({
2481
2472
  path: `${ze}error_verificationFailedToSend`,
2482
2473
  type: "error",
2483
2474
  link: {
2484
2475
  "data-gtm-event-context": "VerifyEmailBox",
2485
2476
  "data-gtm-event-type": "SendEmailClick",
2486
2477
  className: "gtm-trackable",
2487
- onClick: (g) => c(g),
2478
+ onClick: (g) => m(g),
2488
2479
  href: "#",
2489
2480
  "data-testid": "send-verify-email-click"
2490
2481
  },
@@ -2498,15 +2489,15 @@ const ze = "emailHelperTextBox_", vo = ({ type: e, email: t, redirectPath: n, re
2498
2489
  });
2499
2490
  };
2500
2491
  if (typeof s != "function") {
2501
- _(o.formatMessage({ id: `${ze}error_noFunction` }));
2492
+ _(a.formatMessage({ id: `${ze}error_noFunction` }));
2502
2493
  return;
2503
2494
  }
2504
- i(!0), s(t).then(() => {
2495
+ l(!0), s(t).then(() => {
2505
2496
  localStorage.setItem("email", t), window.location.href = n || "/signup/verify-email";
2506
2497
  }).catch((k) => {
2507
2498
  _(k.message);
2508
2499
  }).finally(() => {
2509
- i(!1);
2500
+ l(!1);
2510
2501
  });
2511
2502
  },
2512
2503
  /* eslint-disable react-hooks/exhaustive-deps */
@@ -2540,7 +2531,7 @@ const ze = "emailHelperTextBox_", vo = ({ type: e, email: t, redirectPath: n, re
2540
2531
  "data-gtm-event-context": "VerifyEmailBox",
2541
2532
  "data-gtm-event-type": "SendEmailClick",
2542
2533
  className: "gtm-trackable",
2543
- onClick: (E) => c(E),
2534
+ onClick: (E) => m(E),
2544
2535
  "data-testid": "send-verify-email-click"
2545
2536
  };
2546
2537
  break;
@@ -2564,32 +2555,32 @@ const ze = "emailHelperTextBox_", vo = ({ type: e, email: t, redirectPath: n, re
2564
2555
  };
2565
2556
  break;
2566
2557
  }
2567
- m({ ...l, path: h, type: _, link: k, mail: g });
2558
+ d({ ...i, path: h, type: _, link: k, mail: g });
2568
2559
  },
2569
2560
  /* eslint-disable react-hooks/exhaustive-deps */
2570
2561
  [e]
2571
2562
  );
2572
- const u = {};
2563
+ const c = {};
2573
2564
  return ["link", "mail"].forEach((h) => {
2574
- u[h] = Object.keys(l[h]).length ? (_) => /* @__PURE__ */ r.jsx("a", { ...l[h], children: _ }) : (_) => _;
2575
- }), /* @__PURE__ */ r.jsx(Ur, { type: l.type, heading: a ? !1 : o.formatMessage({ id: `${l.path}_title` }), children: a ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
2576
- /* @__PURE__ */ r.jsx(ve, { element: "span" }),
2577
- /* @__PURE__ */ r.jsx(ve, { element: "span" })
2565
+ c[h] = Object.keys(i[h]).length ? (_) => /* @__PURE__ */ r.jsx("a", { ...i[h], children: _ }) : (_) => _;
2566
+ }), /* @__PURE__ */ r.jsx(Ur, { type: i.type, heading: o ? !1 : a.formatMessage({ id: `${i.path}_title` }), children: o ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
2567
+ /* @__PURE__ */ r.jsx(be, { element: "span" }),
2568
+ /* @__PURE__ */ r.jsx(be, { element: "span" })
2578
2569
  ] }) : (
2579
2570
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2580
2571
  // @ts-ignore
2581
2572
  // `values` are throwing a type error: https://github.com/formatjs/formatjs/issues/3633
2582
- o.formatMessage(
2583
- { id: `${l.path}_text` },
2573
+ a.formatMessage(
2574
+ { id: `${i.path}_text` },
2584
2575
  {
2585
- ...u,
2576
+ ...c,
2586
2577
  strong: (h) => /* @__PURE__ */ r.jsx("strong", { children: h }),
2587
2578
  em: (h) => /* @__PURE__ */ r.jsx("em", { children: h }),
2588
2579
  br: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
2589
2580
  /* @__PURE__ */ r.jsx("br", {}),
2590
2581
  /* @__PURE__ */ r.jsx("br", {})
2591
2582
  ] }),
2592
- error: l.error
2583
+ error: i.error
2593
2584
  }
2594
2585
  )
2595
2586
  ) });
@@ -2615,102 +2606,102 @@ const Ve = "passwordRules_", Sn = "isMoreThanEightCharacters", $n = "includesNum
2615
2606
  ] })
2616
2607
  ] }, `rule-${s}`)) })
2617
2608
  ] });
2618
- }, wo = Ne(xs);
2609
+ }, wo = Ae(xs);
2619
2610
  const ko = ({
2620
2611
  text: e = {},
2621
2612
  topRating: t = 5,
2622
2613
  functions: { createRating: n = () => null, updateRating: s = () => {
2623
- }, reportError: o = () => {
2614
+ }, reportError: a = () => {
2624
2615
  } },
2625
- className: l = "",
2626
- hasLoaded: m = !1
2616
+ className: i = "",
2617
+ hasLoaded: d = !1
2627
2618
  }) => {
2628
- const a = F(), [i, c] = P({ setUp: !1, id: null, rating: null, disabled: !0 }), u = async () => {
2619
+ const o = F(), [l, m] = P({ setUp: !1, id: null, rating: null, disabled: !0 }), c = async () => {
2629
2620
  try {
2630
2621
  const E = await n();
2631
- c((v) => ({ ...v, setUp: !0, id: E && E.id, disabled: !1 }));
2622
+ m((b) => ({ ...b, setUp: !0, id: E && E.id, disabled: !1 }));
2632
2623
  } catch (E) {
2633
- c((v) => ({ ...v, setUp: !0, disabled: !0 })), o(E);
2624
+ m((b) => ({ ...b, setUp: !0, disabled: !0 })), a(E);
2634
2625
  }
2635
2626
  };
2636
2627
  if (z(() => {
2637
- m && !i.setUp && u();
2638
- }, [m]), !m)
2639
- return /* @__PURE__ */ r.jsx(ve, { className: "rating-placeholder" });
2640
- const { id: f, rating: p, disabled: h } = i, _ = "ratings_", k = {
2641
- text: a.formatMessage({ id: `${_}text` }),
2642
- low: a.formatMessage({ id: `${_}low` }),
2643
- high: a.formatMessage({ id: `${_}high` }),
2644
- success: a.formatMessage({ id: `${_}success` }),
2628
+ d && !l.setUp && c();
2629
+ }, [d]), !d)
2630
+ return /* @__PURE__ */ r.jsx(be, { className: "rating-placeholder" });
2631
+ const { id: f, rating: p, disabled: h } = l, _ = "ratings_", k = {
2632
+ text: o.formatMessage({ id: `${_}text` }),
2633
+ low: o.formatMessage({ id: `${_}low` }),
2634
+ high: o.formatMessage({ id: `${_}high` }),
2635
+ success: o.formatMessage({ id: `${_}success` }),
2645
2636
  ...e
2646
2637
  }, g = async (E) => {
2647
2638
  if (!(!f || h))
2648
2639
  try {
2649
- c((v) => ({ ...v, rating: E, disabled: !0 })), await s({ id: f, value: E });
2650
- } catch (v) {
2651
- c((S) => ({ ...S, rating: null })), o(v);
2640
+ m((b) => ({ ...b, rating: E, disabled: !0 })), await s({ id: f, value: E });
2641
+ } catch (b) {
2642
+ m((S) => ({ ...S, rating: null })), a(b);
2652
2643
  } finally {
2653
- c((v) => ({ ...v, disabled: !1 }));
2644
+ m((b) => ({ ...b, disabled: !1 }));
2654
2645
  }
2655
2646
  };
2656
- return /* @__PURE__ */ r.jsxs("div", { className: j("rating", l), children: [
2647
+ return /* @__PURE__ */ r.jsxs("div", { className: j("rating", i), children: [
2657
2648
  /* @__PURE__ */ r.jsx("span", { className: "label", children: k[p ? "success" : "text"] }),
2658
2649
  /* @__PURE__ */ r.jsx("ol", { children: Array.from(new Array(t).keys()).map((E) => {
2659
- const v = E + 1;
2660
- return /* @__PURE__ */ r.jsx("li", { className: j({ selected: p && v <= p }), children: /* @__PURE__ */ r.jsx(
2650
+ const b = E + 1;
2651
+ return /* @__PURE__ */ r.jsx("li", { className: j({ selected: p && b <= p }), children: /* @__PURE__ */ r.jsx(
2661
2652
  W,
2662
2653
  {
2663
2654
  variant: "tertiary",
2664
2655
  size: "small",
2665
- icon: { icon: `star${!p || v > p ? "_empty" : ""}`, position: "left", hover: "star" },
2666
- screenreaderText: `${a.formatMessage(
2656
+ icon: { icon: `star${!p || b > p ? "_empty" : ""}`, position: "left", hover: "star" },
2657
+ screenreaderText: `${o.formatMessage(
2667
2658
  { id: `${_}stars` },
2668
- { number: v, total: t }
2669
- )}${v === 1 || v === t ? ` - ${k[v === 1 ? "low" : "high"]}` : ""}`,
2659
+ { number: b, total: t }
2660
+ )}${b === 1 || b === t ? ` - ${k[b === 1 ? "low" : "high"]}` : ""}`,
2670
2661
  onClick: (S) => {
2671
- S.preventDefault(), S.stopPropagation(), g(v);
2662
+ S.preventDefault(), S.stopPropagation(), g(b);
2672
2663
  },
2673
2664
  disabled: h
2674
2665
  }
2675
- ) }, `rating-${v}`);
2666
+ ) }, `rating-${b}`);
2676
2667
  }) })
2677
2668
  ] });
2678
2669
  };
2679
- const bs = ({
2670
+ const vs = ({
2680
2671
  id: e = "search",
2681
2672
  className: t = "",
2682
2673
  handleToggle: n = !1,
2683
2674
  defaultValue: s = "",
2684
- gtmContext: o = "search-bar",
2685
- gtmEvent: l = "form-submission"
2675
+ gtmContext: a = "search-bar",
2676
+ gtmEvent: i = "form-submission"
2686
2677
  }) => {
2687
- const { searchIsOpen: m = !0, isDesktopVersion: a = !1 } = n || {}, i = F(), c = ee(null);
2678
+ const { searchIsOpen: d = !0, isDesktopVersion: o = !1 } = n || {}, l = F(), m = ee(null);
2688
2679
  Ce(() => {
2689
- !n || a || !m || c.current && c.current.focus();
2690
- }, [m]);
2691
- const u = (f) => {
2692
- f.preventDefault(), f.stopPropagation(), !(!c.current || !c.current.value || c.current.value.length < 1) && (window.location.href = `/search?search=${encodeURIComponent(c.current.value)}`);
2680
+ !n || o || !d || m.current && m.current.focus();
2681
+ }, [d]);
2682
+ const c = (f) => {
2683
+ f.preventDefault(), f.stopPropagation(), !(!m.current || !m.current.value || m.current.value.length < 1) && (window.location.href = `/search?search=${encodeURIComponent(m.current.value)}`);
2693
2684
  };
2694
2685
  return /* @__PURE__ */ r.jsx(
2695
2686
  "form",
2696
2687
  {
2697
- onSubmit: u,
2688
+ onSubmit: c,
2698
2689
  className: j("search-form gtm-trackable", t),
2699
- "data-gtm-event-context": o,
2700
- "data-gtm-event-type": l,
2701
- children: /* @__PURE__ */ r.jsx("fieldset", { id: `${e}-form`, hidden: n ? !m : !1, role: "search", children: /* @__PURE__ */ r.jsxs("p", { children: [
2702
- /* @__PURE__ */ r.jsx(re, { element: "label", htmlFor: e, children: i.formatMessage({ id: "search_label" }) }),
2690
+ "data-gtm-event-context": a,
2691
+ "data-gtm-event-type": i,
2692
+ children: /* @__PURE__ */ r.jsx("fieldset", { id: `${e}-form`, hidden: n ? !d : !1, role: "search", children: /* @__PURE__ */ r.jsxs("p", { children: [
2693
+ /* @__PURE__ */ r.jsx(re, { element: "label", htmlFor: e, children: l.formatMessage({ id: "search_label" }) }),
2703
2694
  /* @__PURE__ */ r.jsx(
2704
2695
  "input",
2705
2696
  {
2706
- ref: c,
2697
+ ref: m,
2707
2698
  type: "search",
2708
2699
  id: e,
2709
2700
  name: e,
2710
2701
  defaultValue: s,
2711
- placeholder: i.formatMessage({ id: "search_placeholder" }),
2702
+ placeholder: l.formatMessage({ id: "search_placeholder" }),
2712
2703
  onKeyDown: (f) => {
2713
- f.key === "Enter" && u(f);
2704
+ f.key === "Enter" && c(f);
2714
2705
  }
2715
2706
  }
2716
2707
  ),
@@ -2719,33 +2710,33 @@ const bs = ({
2719
2710
  {
2720
2711
  className: "clear",
2721
2712
  onClick: (f) => {
2722
- f.preventDefault(), f.stopPropagation(), c.current && c.current.value && (c.current.value = "");
2713
+ f.preventDefault(), f.stopPropagation(), m.current && m.current.value && (m.current.value = "");
2723
2714
  },
2724
- children: /* @__PURE__ */ r.jsx(re, { children: i.formatMessage({ id: "search_clear" }) })
2715
+ children: /* @__PURE__ */ r.jsx(re, { children: l.formatMessage({ id: "search_clear" }) })
2725
2716
  }
2726
2717
  ),
2727
- /* @__PURE__ */ r.jsx("button", { className: "search", onClick: u, children: /* @__PURE__ */ r.jsx(re, { children: i.formatMessage({ id: "search_cta" }) }) })
2718
+ /* @__PURE__ */ r.jsx("button", { className: "search", onClick: c, children: /* @__PURE__ */ r.jsx(re, { children: l.formatMessage({ id: "search_cta" }) }) })
2728
2719
  ] }) })
2729
2720
  }
2730
2721
  );
2731
2722
  };
2732
- const vs = ({
2723
+ const bs = ({
2733
2724
  title: e,
2734
2725
  label: t,
2735
2726
  ctaMessage: n,
2736
2727
  titleColor: s,
2737
- labelColor: o,
2738
- backgroundColor: l,
2739
- onClose: m,
2740
- reportError: a,
2741
- sendInvites: i,
2742
- initialFormStatus: c = "NOT_SUBMITTED"
2728
+ labelColor: a,
2729
+ backgroundColor: i,
2730
+ onClose: d,
2731
+ reportError: o,
2732
+ sendInvites: l,
2733
+ initialFormStatus: m = "NOT_SUBMITTED"
2743
2734
  /* NOT_SUBMITTED */
2744
2735
  }) => {
2745
- const [u, f] = P([]), [p, h] = P(!0), [_, k] = P(c), { formatMessage: g } = F(), E = async (T) => {
2736
+ const [c, f] = P([]), [p, h] = P(!0), [_, k] = P(m), { formatMessage: g } = F(), E = async (T) => {
2746
2737
  T.preventDefault();
2747
2738
  try {
2748
- await i(u), f([]), k(
2739
+ await l(c), f([]), k(
2749
2740
  "SUCCESS"
2750
2741
  /* SUCCESS */
2751
2742
  );
@@ -2753,46 +2744,46 @@ const vs = ({
2753
2744
  k(
2754
2745
  "ERROR"
2755
2746
  /* ERROR */
2756
- ), a(M);
2747
+ ), o(M);
2757
2748
  }
2758
- }, v = (T) => {
2749
+ }, b = (T) => {
2759
2750
  T.preventDefault(), k(
2760
2751
  "NOT_SUBMITTED"
2761
2752
  /* NOT_SUBMITTED */
2762
2753
  ), h(!0), f([]);
2763
2754
  }, S = (T) => {
2764
- T.preventDefault(), m(), k(
2755
+ T.preventDefault(), d(), k(
2765
2756
  "CLOSED"
2766
2757
  /* CLOSED */
2767
2758
  );
2768
2759
  };
2769
- return _ === "CLOSED" ? null : _ === "ERROR" || _ === "SUCCESS" ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
2760
+ return _ === "CLOSED" ? null : _ === "ERROR" || _ === "SUCCESS" ? /* @__PURE__ */ r.jsxs("div", { className: "invite-form-wrapper", children: [
2770
2761
  /* @__PURE__ */ r.jsx("div", { className: "content centred", children: _ === "SUCCESS" ? /* @__PURE__ */ r.jsx("h2", { className: "success-title", children: g({ id: "inviteForm_success" }) }) : /* @__PURE__ */ r.jsxs("h2", { className: "error-title", children: [
2771
2762
  " ",
2772
2763
  g({ id: "inviteForm_error" })
2773
2764
  ] }) }),
2774
- /* @__PURE__ */ r.jsx(Ae, {}),
2765
+ /* @__PURE__ */ r.jsx(Ne, {}),
2775
2766
  /* @__PURE__ */ r.jsx("div", { className: "footer", children: _ === "SUCCESS" ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
2776
- /* @__PURE__ */ r.jsx(W, { variant: "secondary", onClick: v, children: g({ id: "inviteForm_ctaSendMoreInvites" }) }),
2767
+ /* @__PURE__ */ r.jsx(W, { variant: "secondary", onClick: b, children: g({ id: "inviteForm_ctaSendMoreInvites" }) }),
2777
2768
  /* @__PURE__ */ r.jsx(W, { onClick: S, children: g({ id: "inviteForm_ctaDone" }) })
2778
- ] }) : /* @__PURE__ */ r.jsx(W, { onClick: v, children: g({ id: "inviteForm_ctaTryAgain" }) }) })
2779
- ] }) : /* @__PURE__ */ r.jsxs(
2769
+ ] }) : /* @__PURE__ */ r.jsx(W, { onClick: b, children: g({ id: "inviteForm_ctaTryAgain" }) }) })
2770
+ ] }) : /* @__PURE__ */ r.jsx("div", { className: "invite-form-wrapper", children: /* @__PURE__ */ r.jsxs(
2780
2771
  "form",
2781
2772
  {
2782
- style: { backgroundColor: l },
2773
+ style: { backgroundColor: i },
2783
2774
  onSubmit: E,
2784
2775
  className: j("invite-form gtm-trackable"),
2785
2776
  children: [
2786
2777
  /* @__PURE__ */ r.jsxs("fieldset", { className: "content", children: [
2787
2778
  /* @__PURE__ */ r.jsx("h2", { className: "title", style: { color: s }, children: e }),
2788
- /* @__PURE__ */ r.jsx("label", { htmlFor: "email-input", className: "label", style: { color: o }, children: t }),
2779
+ /* @__PURE__ */ r.jsx("label", { htmlFor: "email-input", className: "label", style: { color: a }, children: t }),
2789
2780
  /* @__PURE__ */ r.jsx(
2790
2781
  pr,
2791
2782
  {
2792
2783
  id: "email-input",
2793
2784
  inputClassName: "email-input input",
2794
2785
  placeholder: g({ id: "inviteForm_email_placeholder" }),
2795
- emails: u,
2786
+ emails: c,
2796
2787
  onChange: (T) => {
2797
2788
  f(T), h(!T.length);
2798
2789
  },
@@ -2806,7 +2797,7 @@ const vs = ({
2806
2797
  size: "small",
2807
2798
  icon: { icon: "close" },
2808
2799
  onClick: () => {
2809
- Q(M), h(!u.length);
2800
+ Q(M), h(!c.length);
2810
2801
  },
2811
2802
  className: "remove-email-button",
2812
2803
  screenreaderText: g({ id: "overlay_close" })
@@ -2816,11 +2807,11 @@ const vs = ({
2816
2807
  }
2817
2808
  )
2818
2809
  ] }),
2819
- /* @__PURE__ */ r.jsx(Ae, {}),
2810
+ /* @__PURE__ */ r.jsx(Ne, {}),
2820
2811
  /* @__PURE__ */ r.jsx("fieldset", { className: "footer", children: /* @__PURE__ */ r.jsx(W, { className: "sendEmailsButton", disabled: p, children: n }) })
2821
2812
  ]
2822
2813
  }
2823
- );
2814
+ ) });
2824
2815
  }, I = {
2825
2816
  timeouts: {},
2826
2817
  handlerCalled: {},
@@ -2828,29 +2819,29 @@ const vs = ({
2828
2819
  const n = {
2829
2820
  navigation: { loggedIn: 769, loggedOut: 881 },
2830
2821
  search: { loggedIn: 961, loggedOut: 1121 }
2831
- }, s = (l) => {
2832
- const m = `logged${e ? "In" : "Out"}`;
2833
- return t >= n[l][m];
2822
+ }, s = (i) => {
2823
+ const d = `logged${e ? "In" : "Out"}`;
2824
+ return t >= n[i][d];
2834
2825
  };
2835
- let o = {};
2836
- return ["navigation", "search"].forEach((l) => {
2837
- o[l] = s(l);
2838
- }), o;
2826
+ let a = {};
2827
+ return ["navigation", "search"].forEach((i) => {
2828
+ a[i] = s(i);
2829
+ }), a;
2839
2830
  },
2840
2831
  shouldChangeHeaderIsVisible: (e, t, n) => {
2841
- Object.values(t).filter((o) => o === !0).length || n([{ type: "headerIsVisible", value: e }]);
2832
+ Object.values(t).filter((a) => a === !0).length || n([{ type: "headerIsVisible", value: e }]);
2842
2833
  },
2843
2834
  handleMenus: ({ id: e, value: t, menus: n, dispatch: s }) => {
2844
2835
  if (n[e] === t || e === "account" && t === !1 && n.navigation === !0)
2845
2836
  return;
2846
- const o = Date.now();
2847
- if (!t && I.handlerCalled[e] && o - I.handlerCalled[e] < 500)
2837
+ const a = Date.now();
2838
+ if (!t && I.handlerCalled[e] && a - I.handlerCalled[e] < 500)
2848
2839
  return;
2849
- I.handlerCalled[e] = o;
2850
- let l = [{ type: `menus.${e}`, value: t }];
2851
- t === !0 && Object.keys(n).forEach((m) => {
2852
- m === e || n[m] === !1 || l.push({ type: `menus.${m}`, value: !1 });
2853
- }), s(l);
2840
+ I.handlerCalled[e] = a;
2841
+ let i = [{ type: `menus.${e}`, value: t }];
2842
+ t === !0 && Object.keys(n).forEach((d) => {
2843
+ d === e || n[d] === !1 || i.push({ type: `menus.${d}`, value: !1 });
2844
+ }), s(i);
2854
2845
  },
2855
2846
  // Find the first child inside a ref that matches the `key` (and optional `value`) we're looking for,
2856
2847
  // so we can automatically focus on the first link inside a menu for accessibility.
@@ -2867,43 +2858,43 @@ const vs = ({
2867
2858
  return e[s];
2868
2859
  if (!t.includes("."))
2869
2860
  continue;
2870
- const o = un(e[s], t);
2871
- if (!(typeof o > "u") && (!n || o[t] && o[t].includes(n) || o.value && o.value.includes(n) || o.toString().includes(n)))
2861
+ const a = un(e[s], t);
2862
+ if (!(typeof a > "u") && (!n || a[t] && a[t].includes(n) || a.value && a.value.includes(n) || a.toString().includes(n)))
2872
2863
  return e[s];
2873
2864
  }
2874
2865
  return e[0].children ? I.findFirstChild(e[0].children, t, n) : !1;
2875
2866
  },
2876
- autoFocus: ({ menu: e, navigationRef: t, isDesktopVersion: n, focusElements: s, dispatch: o }) => {
2867
+ autoFocus: ({ menu: e, navigationRef: t, isDesktopVersion: n, focusElements: s, dispatch: a }) => {
2877
2868
  if (!t.current || !t.current.children)
2878
2869
  return;
2879
- const l = n ? "desktop" : "default";
2880
- if (s[e][l]) {
2881
- s[e][l].focus();
2870
+ const i = n ? "desktop" : "default";
2871
+ if (s[e][i]) {
2872
+ s[e][i].focus();
2882
2873
  return;
2883
2874
  }
2884
- let m, a;
2875
+ let d, o;
2885
2876
  switch (e) {
2886
2877
  case "navigation":
2887
2878
  if (n) {
2888
- const i = I.findFirstChild(
2879
+ const l = I.findFirstChild(
2889
2880
  t.current.children,
2890
2881
  "attributes.aria-controls",
2891
2882
  "navigation"
2892
2883
  );
2893
- m = I.findFirstChild(i.children, "href");
2884
+ d = I.findFirstChild(l.children, "href");
2894
2885
  } else
2895
- m = I.findFirstChild(t.current.children, "href");
2896
- m || (m = t.current);
2886
+ d = I.findFirstChild(t.current.children, "href");
2887
+ d || (d = t.current);
2897
2888
  break;
2898
2889
  case "account":
2899
- if (a = I.findFirstChild(t.current.children, "className", "account"), !a || !a.children)
2890
+ if (o = I.findFirstChild(t.current.children, "className", "account"), !o || !o.children)
2900
2891
  return;
2901
- m = I.findFirstChild(a.children, "href");
2892
+ d = I.findFirstChild(o.children, "href");
2902
2893
  break;
2903
2894
  default:
2904
2895
  return;
2905
2896
  }
2906
- m && (o([{ type: `focusElements.${e}.${l}`, value: m }]), m.focus());
2897
+ d && (a([{ type: `focusElements.${e}.${i}`, value: d }]), d.focus());
2907
2898
  },
2908
2899
  events: {
2909
2900
  onClick: (e, { id: t, callback: n, isOpen: s }) => {
@@ -3002,141 +2993,141 @@ const vs = ({
3002
2993
  isLoggedIn: t = !1,
3003
2994
  isDesktopVersion: n = !1,
3004
2995
  menus: s = {},
3005
- callback: o = () => {
2996
+ callback: a = () => {
3006
2997
  },
3007
- doTrack: l = null
2998
+ doTrack: i = null
3008
2999
  }) => {
3009
- const m = F(), a = un(Xe, e);
3010
- if (!a || a.onlyShow && (a.onlyShow === "logged-in" && !t || a.onlyShow === "logged-out" && t))
3000
+ const d = F(), o = un(Xe, e);
3001
+ if (!o || o.onlyShow && (o.onlyShow === "logged-in" && !t || o.onlyShow === "logged-out" && t))
3011
3002
  return null;
3012
- const i = "doTrack" in a, c = l === null ? i ? a.doTrack : !0 : l, u = e.includes("buttons.");
3003
+ const l = "doTrack" in o, m = i === null ? l ? o.doTrack : !0 : i, c = e.includes("buttons.");
3013
3004
  let f = `header_${e.replaceAll(".", "_")}`;
3014
- a.hasVariantText && (f += `_logged${t ? "In" : "Out"}`);
3005
+ o.hasVariantText && (f += `_logged${t ? "In" : "Out"}`);
3015
3006
  let p = !1;
3016
- if (a.href) {
3017
- let v = a.gtmType || `${e}-click`;
3018
- if (v.includes(".")) {
3019
- const S = v.split("."), T = S[S.length - 2];
3020
- v = `${T === "topics" ? `${T}-` : ""}${S[S.length - 1]}`;
3007
+ if (o.href) {
3008
+ let b = o.gtmType || `${e}-click`;
3009
+ if (b.includes(".")) {
3010
+ const S = b.split("."), T = S[S.length - 2];
3011
+ b = `${T === "topics" ? `${T}-` : ""}${S[S.length - 1]}`;
3021
3012
  }
3022
3013
  p = {
3023
- href: a.href,
3014
+ href: o.href,
3024
3015
  role: "menuitem"
3025
- }, c && (p = {
3016
+ }, m && (p = {
3026
3017
  ...p,
3027
3018
  className: "gtm-trackable",
3028
- "data-gtm-event-type": v,
3019
+ "data-gtm-event-type": b,
3029
3020
  "data-gtm-event-context": "HeaderButtons"
3030
- }), u && (p = {
3021
+ }), c && (p = {
3031
3022
  ...p,
3032
3023
  variant: "secondary",
3033
3024
  size: { mobile: "small", 881: "large" },
3034
- ...a.props || {}
3025
+ ...o.props || {}
3035
3026
  });
3036
3027
  }
3037
- const h = a.order && a.order[0] && a[a.order[0]], _ = h && a[a.order[0]].order, k = p && window.location.pathname === a.href;
3028
+ const h = o.order && o.order[0] && o[o.order[0]], _ = h && o[o.order[0]].order, k = p && window.location.pathname === o.href;
3038
3029
  let g = {}, E = {};
3039
3030
  if (h) {
3040
- const v = a.menuId || e, S = {
3041
- onClick: (T) => I.events.onClick(T, { id: v, callback: o, isOpen: s[v] }),
3042
- onFocus: () => I.events.onFocus({ id: v }),
3043
- onBlur: () => I.events.onBlur({ id: v, callback: o }),
3044
- onMouseLeave: () => I.events.onBlur({ id: v, callback: o }),
3045
- onMouseEnter: () => I.events.onMouseEnter({ id: v, callback: o })
3031
+ const b = o.menuId || e, S = {
3032
+ onClick: (T) => I.events.onClick(T, { id: b, callback: a, isOpen: s[b] }),
3033
+ onFocus: () => I.events.onFocus({ id: b }),
3034
+ onBlur: () => I.events.onBlur({ id: b, callback: a }),
3035
+ onMouseLeave: () => I.events.onBlur({ id: b, callback: a }),
3036
+ onMouseEnter: () => I.events.onMouseEnter({ id: b, callback: a })
3046
3037
  };
3047
3038
  n && (_ && (g = {
3048
3039
  ...S,
3049
3040
  onKeyPress: (T) => {
3050
- T.key === "Enter" && I.events.onClick(T, { id: v, callback: o, isOpen: s[v] });
3041
+ T.key === "Enter" && I.events.onClick(T, { id: b, callback: a, isOpen: s[b] });
3051
3042
  },
3052
3043
  tabIndex: "0",
3053
3044
  // Add a `tabIndex` so keyboard users can focus on the `li`
3054
3045
  "aria-haspopup": !0,
3055
- "aria-expanded": s[v],
3056
- "aria-controls": v
3057
- }), E = { hidden: v in s ? !s[v] : !0 }), _ || (E = {
3046
+ "aria-expanded": s[b],
3047
+ "aria-controls": b
3048
+ }), E = { hidden: b in s ? !s[b] : !0 }), _ || (E = {
3058
3049
  ...E,
3059
3050
  ...S
3060
3051
  });
3061
3052
  }
3062
- return /* @__PURE__ */ r.jsxs("li", { className: j({ [a.className]: a.className, "has-submenu": h, parent: _, active: k }), role: "none", ...g, children: [
3063
- p ? N.createElement(u ? W : "a", p, m.formatMessage({ id: f })) : m.formatMessage({ id: f }),
3064
- a.order && /* @__PURE__ */ r.jsx("ul", { ...E, children: a.order.map((v) => {
3065
- if (!a[v])
3053
+ return /* @__PURE__ */ r.jsxs("li", { className: j({ [o.className]: o.className, "has-submenu": h, parent: _, active: k }), role: "none", ...g, children: [
3054
+ p ? A.createElement(c ? W : "a", p, d.formatMessage({ id: f })) : d.formatMessage({ id: f }),
3055
+ o.order && /* @__PURE__ */ r.jsx("ul", { ...E, children: o.order.map((b) => {
3056
+ if (!o[b])
3066
3057
  return null;
3067
3058
  const S = {
3068
3059
  isLoggedIn: t,
3069
3060
  isDesktopVersion: n,
3070
3061
  menus: s,
3071
- callback: o,
3072
- doTrack: i ? c : null
3062
+ callback: a,
3063
+ doTrack: l ? m : null
3073
3064
  };
3074
- return a[v].order ? /* @__PURE__ */ r.jsxs("li", { className: j({ [a[v].className]: a[v].className }), children: [
3075
- m.formatMessage({ id: `${f}_${v}` }),
3076
- /* @__PURE__ */ r.jsx("ul", { children: a[v].order.map((T) => /* @__PURE__ */ r.jsx(Ze, { id: `${e}.${v}.${T}`, ...S }, T)) })
3077
- ] }, v) : /* @__PURE__ */ r.jsx(Ze, { id: `${e}.${v}`, ...S }, v);
3065
+ return o[b].order ? /* @__PURE__ */ r.jsxs("li", { className: j({ [o[b].className]: o[b].className }), children: [
3066
+ d.formatMessage({ id: `${f}_${b}` }),
3067
+ /* @__PURE__ */ r.jsx("ul", { children: o[b].order.map((T) => /* @__PURE__ */ r.jsx(Ze, { id: `${e}.${b}.${T}`, ...S }, T)) })
3068
+ ] }, b) : /* @__PURE__ */ r.jsx(Ze, { id: `${e}.${b}`, ...S }, b);
3078
3069
  }) })
3079
3070
  ] }, e);
3080
3071
  };
3081
3072
  const ws = { height: 67, height_desktop: 83 }, Mn = () => {
3082
- const e = F(), t = ye(je), n = tt(!0, !0), s = t && typeof t.id == "string", o = qe(
3073
+ const e = F(), t = ye(je), n = tt(!0, !0), s = t && typeof t.id == "string", a = qe(
3083
3074
  () => I.getIsDesktopVersion(s, n),
3084
3075
  [s, n]
3085
- ), [l, m] = rr($r, {
3076
+ ), [i, d] = rr($r, {
3086
3077
  headerIsVisible: !0,
3087
3078
  menus: { navigation: !1, search: !1, account: !1 },
3088
3079
  focusElements: {
3089
3080
  navigation: { desktop: !1, default: !1 },
3090
3081
  account: { desktop: !1, default: !1 }
3091
3082
  }
3092
- }), { headerIsVisible: a, menus: i, focusElements: c } = l;
3083
+ }), { headerIsVisible: o, menus: l, focusElements: m } = i;
3093
3084
  Sr({
3094
- scrollPosition: ws[`height${o.navigation ? "_desktop" : ""}`],
3085
+ scrollPosition: ws[`height${a.navigation ? "_desktop" : ""}`],
3095
3086
  callbacks: {
3096
3087
  scrollUp: () => {
3097
- !o && i.navigation || I.shouldChangeHeaderIsVisible(!0, i, m);
3088
+ !a && l.navigation || I.shouldChangeHeaderIsVisible(!0, l, d);
3098
3089
  },
3099
3090
  scrollDown: () => {
3100
- !o && i.navigation || I.shouldChangeHeaderIsVisible(!1, i, m);
3091
+ !a && l.navigation || I.shouldChangeHeaderIsVisible(!1, l, d);
3101
3092
  }
3102
3093
  }
3103
3094
  });
3104
- const u = (p, h) => {
3105
- I.handleMenus({ id: p, value: h, menus: i, dispatch: m });
3095
+ const c = (p, h) => {
3096
+ I.handleMenus({ id: p, value: h, menus: l, dispatch: d });
3106
3097
  }, f = ee(null);
3107
3098
  return Ce(() => {
3108
- i.navigation && I.autoFocus({
3099
+ l.navigation && I.autoFocus({
3109
3100
  menu: "navigation",
3110
3101
  navigationRef: f,
3111
- isDesktopVersion: o.navigation,
3112
- focusElements: c,
3113
- dispatch: m
3102
+ isDesktopVersion: a.navigation,
3103
+ focusElements: m,
3104
+ dispatch: d
3114
3105
  });
3115
- }, [i.navigation]), Ce(() => {
3116
- i.account && I.autoFocus({
3106
+ }, [l.navigation]), Ce(() => {
3107
+ l.account && I.autoFocus({
3117
3108
  menu: "account",
3118
3109
  navigationRef: f,
3119
- isDesktopVersion: o.navigation,
3120
- focusElements: c,
3121
- dispatch: m
3110
+ isDesktopVersion: a.navigation,
3111
+ focusElements: m,
3112
+ dispatch: d
3122
3113
  });
3123
- }, [i.account]), t && t.isLoading ? null : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
3124
- /* @__PURE__ */ r.jsxs("nav", { id: "header", className: j({ "logged-in": s, "logged-out": !s, visible: a }), children: [
3114
+ }, [l.account]), t && t.isLoading ? null : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
3115
+ /* @__PURE__ */ r.jsxs("nav", { id: "header", className: j({ "logged-in": s, "logged-out": !s, visible: o }), children: [
3125
3116
  /* @__PURE__ */ r.jsx(re, { element: "a", href: "#content-of-page", children: e.formatMessage({ id: "header_skip" }) }),
3126
3117
  /* @__PURE__ */ r.jsx(jn, {}),
3127
- !o.navigation && /* @__PURE__ */ r.jsx(
3118
+ !a.navigation && /* @__PURE__ */ r.jsx(
3128
3119
  "button",
3129
3120
  {
3130
3121
  className: "menu-button gtm-trackable",
3131
3122
  onClick: (p) => {
3132
- p.preventDefault(), p.stopPropagation(), u("navigation", !i.navigation);
3123
+ p.preventDefault(), p.stopPropagation(), c("navigation", !l.navigation);
3133
3124
  },
3134
3125
  "data-gtm-event-type": "open-tab-menu-click",
3135
3126
  "data-gtm-event-context": "HeaderLeft-Chevron",
3136
3127
  "aria-haspopup": "true",
3137
- "aria-expanded": i.navigation,
3128
+ "aria-expanded": l.navigation,
3138
3129
  "aria-controls": "navigation",
3139
- children: /* @__PURE__ */ r.jsx(re, { children: e.formatMessage({ id: `header_menu_${i.navigation ? "hide" : "show"}` }) })
3130
+ children: /* @__PURE__ */ r.jsx(re, { children: e.formatMessage({ id: `header_menu_${l.navigation ? "hide" : "show"}` }) })
3140
3131
  }
3141
3132
  ),
3142
3133
  /* @__PURE__ */ r.jsx(
@@ -3144,40 +3135,40 @@ const ws = { height: 67, height_desktop: 83 }, Mn = () => {
3144
3135
  {
3145
3136
  ref: f,
3146
3137
  id: "navigation",
3147
- hidden: o.navigation || i.account ? !1 : !i.navigation,
3138
+ hidden: a.navigation || l.account ? !1 : !l.navigation,
3148
3139
  role: "menu",
3149
- "data-showing": !o.navigation && i.account ? "account" : "default",
3140
+ "data-showing": !a.navigation && l.account ? "account" : "default",
3150
3141
  children: Xe.order.map((p) => /* @__PURE__ */ r.jsx(
3151
3142
  Ze,
3152
3143
  {
3153
3144
  id: p,
3154
3145
  isLoggedIn: s,
3155
- isDesktopVersion: o.navigation,
3156
- menus: { navigation: i.navigation, account: i.account },
3157
- callback: u
3146
+ isDesktopVersion: a.navigation,
3147
+ menus: { navigation: l.navigation, account: l.account },
3148
+ callback: c
3158
3149
  },
3159
3150
  p
3160
3151
  ))
3161
3152
  }
3162
3153
  ),
3163
- !o.search && /* @__PURE__ */ r.jsx(
3154
+ !a.search && /* @__PURE__ */ r.jsx(
3164
3155
  "button",
3165
3156
  {
3166
3157
  className: "search toggle-search-button",
3167
3158
  onClick: (p) => {
3168
- p.preventDefault(), p.stopPropagation(), u("search", !i.search);
3159
+ p.preventDefault(), p.stopPropagation(), c("search", !l.search);
3169
3160
  },
3170
3161
  "aria-haspopup": "true",
3171
- "aria-expanded": i.search,
3162
+ "aria-expanded": l.search,
3172
3163
  "aria-controls": "search-form",
3173
- children: /* @__PURE__ */ r.jsx(re, { children: e.formatMessage({ id: `header_search_${i.search ? "hide" : "show"}` }) })
3164
+ children: /* @__PURE__ */ r.jsx(re, { children: e.formatMessage({ id: `header_search_${l.search ? "hide" : "show"}` }) })
3174
3165
  }
3175
3166
  ),
3176
3167
  /* @__PURE__ */ r.jsx(
3177
- bs,
3168
+ vs,
3178
3169
  {
3179
3170
  id: "global-search",
3180
- handleToggle: { searchIsOpen: i.search, isDesktopVersion: o.search },
3171
+ handleToggle: { searchIsOpen: l.search, isDesktopVersion: a.search },
3181
3172
  gtmContext: "search-bar-header",
3182
3173
  gtmEvent: "form-submission"
3183
3174
  }
@@ -3186,14 +3177,14 @@ const ws = { height: 67, height_desktop: 83 }, Mn = () => {
3186
3177
  "button",
3187
3178
  {
3188
3179
  className: "account-button",
3189
- onClick: (p) => I.events.onClick(p, { id: "account", callback: u, isOpen: i.account }),
3190
- onMouseEnter: () => I.events.onMouseEnter({ id: "account", callback: u }),
3191
- onMouseLeave: () => I.events.onBlur({ id: "account", callback: u }),
3180
+ onClick: (p) => I.events.onClick(p, { id: "account", callback: c, isOpen: l.account }),
3181
+ onMouseEnter: () => I.events.onMouseEnter({ id: "account", callback: c }),
3182
+ onMouseLeave: () => I.events.onBlur({ id: "account", callback: c }),
3192
3183
  "aria-haspopup": "true",
3193
- "aria-expanded": i.account,
3184
+ "aria-expanded": l.account,
3194
3185
  "aria-controls": "navigation",
3195
3186
  children: [
3196
- /* @__PURE__ */ r.jsx(re, { children: e.formatMessage({ id: `header_account_${i.account ? "hide" : "show"}` }) }),
3187
+ /* @__PURE__ */ r.jsx(re, { children: e.formatMessage({ id: `header_account_${l.account ? "hide" : "show"}` }) }),
3197
3188
  /* @__PURE__ */ r.jsx(Pt, { name: t && t.name || "", src: t && t.image && t.image.thumbnail || "" })
3198
3189
  ]
3199
3190
  }
@@ -3203,7 +3194,7 @@ const ws = { height: 67, height_desktop: 83 }, Mn = () => {
3203
3194
  /* @__PURE__ */ r.jsx(
3204
3195
  "div",
3205
3196
  {
3206
- className: j("overlay", { open: i.navigation || i.account || !o.search && i.search })
3197
+ className: j("overlay", { open: l.navigation || l.account || !a.search && l.search })
3207
3198
  }
3208
3199
  )
3209
3200
  ] });
@@ -3212,25 +3203,25 @@ const ks = () => {
3212
3203
  const e = F();
3213
3204
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
3214
3205
  /* @__PURE__ */ r.jsx(Mn, {}),
3215
- /* @__PURE__ */ r.jsx("div", { id: "content", children: /* @__PURE__ */ r.jsx(st, { variant: "error", text: e.formatMessage({ id: "pageLayout_error" }) }) }),
3206
+ /* @__PURE__ */ r.jsx("div", { className: "content", children: /* @__PURE__ */ r.jsx(st, { variant: "error", text: e.formatMessage({ id: "pageLayout_error" }) }) }),
3216
3207
  /* @__PURE__ */ r.jsx(En, {})
3217
3208
  ] });
3218
- }, yo = ({ children: e, reportError: t, showFooter: n = !0, background: s = "default", className: o = "", locale: l = "en" }) => {
3219
- const m = jr();
3209
+ }, yo = ({ children: e, reportError: t, showFooter: n = !0, background: s = "default", className: a = "", locale: i = "en" }) => {
3210
+ const d = jr();
3220
3211
  z(() => {
3221
3212
  window.scrollTo(0, 0);
3222
- }, [m]);
3223
- const a = gn(e, { locale: l });
3224
- return /* @__PURE__ */ r.jsx(hr, { onError: t, fallback: /* @__PURE__ */ r.jsx(ks, {}), children: /* @__PURE__ */ r.jsx(sr, { fallback: /* @__PURE__ */ r.jsx(ns, { layout: "overview-page" }), children: /* @__PURE__ */ r.jsx("div", { id: "wrapper", className: j(o, { [s]: s !== "default" }), children: /* @__PURE__ */ r.jsxs(fr, { children: [
3213
+ }, [d]);
3214
+ const o = gn(e, { locale: i });
3215
+ return /* @__PURE__ */ r.jsx(hr, { onError: t, fallback: /* @__PURE__ */ r.jsx(ks, {}), children: /* @__PURE__ */ r.jsx(sr, { fallback: /* @__PURE__ */ r.jsx(ns, { layout: "overview-page" }), children: /* @__PURE__ */ r.jsx("div", { id: "wrapper", className: j(a, { [s]: s !== "default" }), children: /* @__PURE__ */ r.jsxs(fr, { children: [
3225
3216
  /* @__PURE__ */ r.jsx(Mn, {}),
3226
- /* @__PURE__ */ r.jsx("div", { id: "content", children: a }),
3217
+ /* @__PURE__ */ r.jsx("div", { className: "content", children: o }),
3227
3218
  n && /* @__PURE__ */ r.jsx(En, {}),
3228
3219
  /* @__PURE__ */ r.jsx(gs, {})
3229
3220
  ] }) }) }) });
3230
3221
  }, an = {
3231
3222
  default: "tags_",
3232
3223
  headerTopics: "header_topics_topics_"
3233
- }, vt = {
3224
+ }, bt = {
3234
3225
  topic: {
3235
3226
  Climate: "climate",
3236
3227
  CitiesAndLocalGovernment: "cities-and-local-government",
@@ -3249,13 +3240,13 @@ const ks = () => {
3249
3240
  }, ys = {
3250
3241
  getTagDetails: (e) => {
3251
3242
  if (e.includes("topic_")) {
3252
- if (e = vt.topic[e.replace("topic_", "")], e) {
3243
+ if (e = bt.topic[e.replace("topic_", "")], e) {
3253
3244
  const t = Xe.topics.topics[e].href;
3254
3245
  return t ? { id: e, href: t, text: `${an.headerTopics}${e}` } : null;
3255
3246
  }
3256
3247
  return null;
3257
3248
  }
3258
- return vt[e] ? (e = vt[e], { id: e, text: `${an.default}${e}` }) : null;
3249
+ return bt[e] ? (e = bt[e], { id: e, text: `${an.default}${e}` }) : null;
3259
3250
  }
3260
3251
  };
3261
3252
  const jo = ({
@@ -3263,50 +3254,50 @@ const jo = ({
3263
3254
  color: t = "default",
3264
3255
  forceOneLine: n = !1,
3265
3256
  canHaveLinks: s = !0,
3266
- className: o = "",
3267
- gtmType: l = "tag-click",
3268
- gtmContext: m = "tags"
3257
+ className: a = "",
3258
+ gtmType: i = "tag-click",
3259
+ gtmContext: d = "tags"
3269
3260
  }) => {
3270
- const a = F();
3261
+ const o = F();
3271
3262
  if (!e || e.length < 1)
3272
3263
  return null;
3273
- const i = [];
3274
- return e.forEach((c) => {
3275
- if (!c)
3264
+ const l = [];
3265
+ return e.forEach((m) => {
3266
+ if (!m)
3276
3267
  return;
3277
- const u = ys.getTagDetails(c);
3278
- u && i.push(u);
3279
- }), i.length < 1 ? null : /* @__PURE__ */ r.jsx("ul", { className: j("tags text-small", t, o, { "one-line": n }), children: i.map((c) => {
3280
- const u = a.formatMessage({ id: c.text });
3281
- return /* @__PURE__ */ r.jsx("li", { children: c.href && s ? /* @__PURE__ */ r.jsx(
3268
+ const c = ys.getTagDetails(m);
3269
+ c && l.push(c);
3270
+ }), l.length < 1 ? null : /* @__PURE__ */ r.jsx("ul", { className: j("tags text-small", t, a, { "one-line": n }), children: l.map((m) => {
3271
+ const c = o.formatMessage({ id: m.text });
3272
+ return /* @__PURE__ */ r.jsx("li", { children: m.href && s ? /* @__PURE__ */ r.jsx(
3282
3273
  "a",
3283
3274
  {
3284
- href: c.href,
3275
+ href: m.href,
3285
3276
  className: "gtm-trackable",
3286
- "data-gtm-event-type": l,
3287
- "data-gtm-event-context": m,
3288
- children: u
3277
+ "data-gtm-event-type": i,
3278
+ "data-gtm-event-context": d,
3279
+ children: c
3289
3280
  }
3290
- ) : u }, c.id);
3281
+ ) : c }, m.id);
3291
3282
  }) });
3292
3283
  };
3293
3284
  const Eo = ({
3294
3285
  members: { total: e, data: t = [] },
3295
3286
  pagination: n,
3296
3287
  gtmContext: s = "member",
3297
- gtmType: o = "member-click",
3298
- className: l = ""
3288
+ gtmType: a = "member-click",
3289
+ className: i = ""
3299
3290
  }) => {
3300
- const m = F();
3301
- return t.length === 0 ? null : (e || (e = t.length), /* @__PURE__ */ r.jsxs("div", { className: j("members-list", l), children: [
3291
+ const d = F();
3292
+ return t.length === 0 ? null : (e || (e = t.length), /* @__PURE__ */ r.jsxs("div", { className: j("members-list", i), children: [
3302
3293
  /* @__PURE__ */ r.jsxs("h1", { children: [
3303
- m.formatMessage({ id: "membersList" }),
3294
+ d.formatMessage({ id: "membersList" }),
3304
3295
  /* @__PURE__ */ r.jsx("span", { className: "count", children: e })
3305
3296
  ] }),
3306
- /* @__PURE__ */ r.jsx("ul", { children: t.map((a, i) => /* @__PURE__ */ r.jsxs("li", { children: [
3307
- /* @__PURE__ */ r.jsx(Ft, { member: a, gtmContext: s, gtmType: o }),
3308
- a.isAdmin && /* @__PURE__ */ r.jsx(qr, { children: m.formatMessage({ id: "membersList_admin" }) })
3309
- ] }, i)) }),
3297
+ /* @__PURE__ */ r.jsx("ul", { children: t.map((o, l) => /* @__PURE__ */ r.jsxs("li", { children: [
3298
+ /* @__PURE__ */ r.jsx(Ft, { member: o, gtmContext: s, gtmType: a }),
3299
+ o.isAdmin && /* @__PURE__ */ r.jsx(qr, { children: d.formatMessage({ id: "membersList_admin" }) })
3300
+ ] }, l)) }),
3310
3301
  n && /* @__PURE__ */ r.jsx(
3311
3302
  fs,
3312
3303
  {
@@ -3328,13 +3319,13 @@ const ae = "discussion_form_", Cn = ({
3328
3319
  showTitle: !1
3329
3320
  },
3330
3321
  inputRef: s,
3331
- maxLength: o = 5e4,
3332
- minRows: l = 4,
3333
- forceShow: m = {
3322
+ maxLength: a = 5e4,
3323
+ minRows: i = 4,
3324
+ forceShow: d = {
3334
3325
  cancel: !1,
3335
3326
  error: !1
3336
3327
  },
3337
- functions: a = {
3328
+ functions: o = {
3338
3329
  create: () => {
3339
3330
  },
3340
3331
  handleSaveEdit: () => {
@@ -3347,31 +3338,31 @@ const ae = "discussion_form_", Cn = ({
3347
3338
  create: { projectNames: ["questions-answers"] }
3348
3339
  }
3349
3340
  },
3350
- gtmContext: i = "DiscussionForm"
3341
+ gtmContext: l = "DiscussionForm"
3351
3342
  }) => {
3352
- var A, q;
3353
- const c = F(), u = ye(je), [f, p] = P(
3343
+ var N, q;
3344
+ const m = F(), c = ye(je), [f, p] = P(
3354
3345
  n.isEditing && n.isEditing.text || ""
3355
- ), [h, _] = P(m.error || !1), [k, g] = P(!1), E = ee(null);
3346
+ ), [h, _] = P(d.error || !1), [k, g] = P(!1), E = ee(null);
3356
3347
  if (s || (s = E), n.isLoading)
3357
3348
  return /* @__PURE__ */ r.jsx(
3358
- ve,
3349
+ be,
3359
3350
  {
3360
3351
  className: "discussion-card discussion-form",
3361
3352
  "data-testid": "loading-placeholder"
3362
3353
  }
3363
3354
  );
3364
- const v = (w) => {
3355
+ const b = (w) => {
3365
3356
  const G = w.target.value;
3366
3357
  p(G);
3367
3358
  let L;
3368
- !u || !u.id ? L = he(
3369
- c.formatMessage,
3359
+ !c || !c.id ? L = he(
3360
+ m.formatMessage,
3370
3361
  `${ae}error_loggedOut`,
3371
3362
  e.type,
3372
3363
  "action"
3373
- ) : t ? G.length >= o && (L = `${ae}error_tooLong`) : L = he(
3374
- c.formatMessage,
3364
+ ) : t ? G.length >= a && (L = `${ae}error_tooLong`) : L = he(
3365
+ m.formatMessage,
3375
3366
  `${ae}error_noPermission`,
3376
3367
  e.type,
3377
3368
  "action"
@@ -3379,12 +3370,12 @@ const ae = "discussion_form_", Cn = ({
3379
3370
  };
3380
3371
  let S = `${e.type}-form`;
3381
3372
  if (e.type === "response" || e.type === "reply") {
3382
- const w = e.type === "response" ? ((A = e.slugs) == null ? void 0 : A.question) || "" : ((q = e.slugs) == null ? void 0 : q.answer) || "";
3373
+ const w = e.type === "response" ? ((N = e.slugs) == null ? void 0 : N.question) || "" : ((q = e.slugs) == null ? void 0 : q.answer) || "";
3383
3374
  w && (S = `${S}-${w.slice(-15)}`);
3384
3375
  }
3385
3376
  const T = async (w) => {
3386
3377
  var L;
3387
- if (w.preventDefault(), w.stopPropagation(), !u || !u.id || !t || Q)
3378
+ if (w.preventDefault(), w.stopPropagation(), !c || !c.id || !t || Q)
3388
3379
  return;
3389
3380
  Ye && clearTimeout(Ye), g("submitting");
3390
3381
  const G = window.location.pathname;
@@ -3392,43 +3383,43 @@ const ae = "discussion_form_", Cn = ({
3392
3383
  let B;
3393
3384
  switch (e.type) {
3394
3385
  case "post":
3395
- B = await a.create({ content: f });
3386
+ B = await o.create({ content: f });
3396
3387
  break;
3397
3388
  case "question":
3398
- B = await a.create({
3389
+ B = await o.create({
3399
3390
  title: f,
3400
- authorId: u && u.id,
3401
- ...(L = a.props) == null ? void 0 : L.create
3391
+ authorId: c && c.id,
3392
+ ...(L = o.props) == null ? void 0 : L.create
3402
3393
  });
3403
3394
  break;
3404
3395
  case "response":
3405
- B = await a.create(
3396
+ B = await o.create(
3406
3397
  { question: e.slugs.question },
3407
- { body: f, authorId: u && u.id, contentPath: G }
3398
+ { body: f, authorId: c && c.id, contentPath: G }
3408
3399
  );
3409
3400
  break;
3410
3401
  case "reply":
3411
- B = await a.create(
3402
+ B = await o.create(
3412
3403
  { question: e.slugs.question, answer: e.slugs.answer },
3413
- { body: f, authorId: u && u.id, contentPath: G }
3404
+ { body: f, authorId: c && c.id, contentPath: G }
3414
3405
  );
3415
3406
  break;
3416
3407
  default:
3417
3408
  break;
3418
3409
  }
3419
- await Cr(1e3), a.callback && await a.callback(B), Ye = setTimeout(() => {
3410
+ await Cr(1e3), o.callback && await o.callback(B), Ye = setTimeout(() => {
3420
3411
  p(""), g("submitted"), M();
3421
3412
  }, 500);
3422
3413
  } catch (B) {
3423
3414
  const U = B;
3424
3415
  let Y = `${ae}error`;
3425
3416
  U.message.includes("entry already exists") && (Y = he(
3426
- c.formatMessage,
3417
+ m.formatMessage,
3427
3418
  `${ae}error_alreadyExists`,
3428
3419
  e.type,
3429
3420
  "action"
3430
3421
  )), U.message.includes("429") ? Y = he(
3431
- c.formatMessage,
3422
+ m.formatMessage,
3432
3423
  `${ae}error_tooMany`,
3433
3424
  e.type,
3434
3425
  "action"
@@ -3438,22 +3429,22 @@ const ae = "discussion_form_", Cn = ({
3438
3429
  Ye = setTimeout(() => {
3439
3430
  _(!1), g(!1);
3440
3431
  }, 5e3);
3441
- }, Q = !f || !Rr(f), V = k === "submitting", b = [];
3442
- return (n.isEditing && !V || m.cancel) && b.push({
3432
+ }, Q = !f || !Rr(f), V = k === "submitting", v = [];
3433
+ return (n.isEditing && !V || d.cancel) && v.push({
3443
3434
  variant: "secondary",
3444
3435
  size: { mobile: "small", 600: "medium" },
3445
- onClick: a.handleCancel,
3436
+ onClick: o.handleCancel,
3446
3437
  className: "gtm-trackable",
3447
- "data-gtm-event-context": i,
3438
+ "data-gtm-event-context": l,
3448
3439
  "data-gtm-event-type": `cancel-${e.type}-click`,
3449
- disabled: !m.cancel && (!u || !u.id || !f),
3450
- children: c.formatMessage({ id: `${ae}cancel` })
3451
- }), b.push({
3440
+ disabled: !d.cancel && (!c || !c.id || !f),
3441
+ children: m.formatMessage({ id: `${ae}cancel` })
3442
+ }), v.push({
3452
3443
  variant: "primary",
3453
3444
  size: { mobile: "small", 600: "medium" },
3454
3445
  onClick: (w) => {
3455
3446
  if (n.isEditing) {
3456
- g("submitting"), a.handleSaveEdit && a.handleSaveEdit(
3447
+ g("submitting"), o.handleSaveEdit && o.handleSaveEdit(
3457
3448
  E.current && "value" in E.current ? E.current.value : ""
3458
3449
  );
3459
3450
  return;
@@ -3461,11 +3452,11 @@ const ae = "discussion_form_", Cn = ({
3461
3452
  T(w);
3462
3453
  },
3463
3454
  className: "gtm-trackable",
3464
- "data-gtm-event-context": i,
3455
+ "data-gtm-event-context": l,
3465
3456
  "data-gtm-event-type": `${n.isEditing ? "save" : "submit"}-${e.type}-click`,
3466
3457
  "data-testid": "save-button",
3467
- disabled: !u || !u.id || !t || Q || V || n.isEditing && f === n.isEditing.text,
3468
- children: c.formatMessage({
3458
+ disabled: !c || !c.id || !t || Q || V || n.isEditing && f === n.isEditing.text,
3459
+ children: m.formatMessage({
3469
3460
  id: `${ae}${V ? n.isEditing ? "saving" : "posting" : n.isEditing ? "save" : "post"}`
3470
3461
  })
3471
3462
  }), /* @__PURE__ */ r.jsxs(
@@ -3477,16 +3468,16 @@ const ae = "discussion_form_", Cn = ({
3477
3468
  }),
3478
3469
  "data-testid": `discussion-${e.type}-form`,
3479
3470
  children: [
3480
- (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") }),
3471
+ (n == null ? void 0 : n.showTitle) && !n.isEditing && ["question"].includes(e.type) && /* @__PURE__ */ r.jsx("h2", { children: he(m.formatMessage, `${ae}title`, e.type, "action") }),
3481
3472
  /* @__PURE__ */ r.jsx(
3482
3473
  Ft,
3483
3474
  {
3484
- member: u || "community",
3485
- gtmContext: i,
3475
+ member: c || "community",
3476
+ gtmContext: l,
3486
3477
  gtmType: "profile-click"
3487
3478
  }
3488
3479
  ),
3489
- /* @__PURE__ */ r.jsx(re, { element: "label", showOnFocus: !1, htmlFor: `${S}-input`, children: he(c.formatMessage, `${ae}label`, e.type, "action") }),
3480
+ /* @__PURE__ */ r.jsx(re, { element: "label", showOnFocus: !1, htmlFor: `${S}-input`, children: he(m.formatMessage, `${ae}label`, e.type, "action") }),
3490
3481
  /* @__PURE__ */ r.jsx(
3491
3482
  gr,
3492
3483
  {
@@ -3494,58 +3485,58 @@ const ae = "discussion_form_", Cn = ({
3494
3485
  id: `${S}-input`,
3495
3486
  name: e.type,
3496
3487
  placeholder: he(
3497
- c.formatMessage,
3488
+ m.formatMessage,
3498
3489
  `${ae}placeholder`,
3499
3490
  e.type,
3500
3491
  "action"
3501
3492
  ),
3502
- onChange: v,
3493
+ onChange: b,
3503
3494
  value: f,
3504
- maxLength: o,
3495
+ maxLength: a,
3505
3496
  "aria-invalid": !!h,
3506
3497
  "aria-errormessage": "error-message",
3507
- minRows: l,
3498
+ minRows: i,
3508
3499
  autoFocus: !!n.isEditing
3509
3500
  }
3510
3501
  ),
3511
- /* @__PURE__ */ r.jsx("small", { children: he(c.formatMessage, `${ae}explainer`, e.type, "action", {
3502
+ /* @__PURE__ */ r.jsx("small", { children: he(m.formatMessage, `${ae}explainer`, e.type, "action", {
3512
3503
  a: (w) => /* @__PURE__ */ r.jsx(
3513
3504
  "a",
3514
3505
  {
3515
3506
  href: "https://about.apolitical.co/q-and-a-community-guidelines",
3516
3507
  target: "_blank",
3517
3508
  className: "gtm-trackable",
3518
- "data-gtm-event-context": i,
3509
+ "data-gtm-event-context": l,
3519
3510
  "data-gtm-event-type": "community-guidelines-link",
3520
3511
  rel: "noreferrer",
3521
3512
  children: w
3522
3513
  }
3523
3514
  )
3524
3515
  }) }),
3525
- /* @__PURE__ */ r.jsx(nt, { buttons: b }),
3526
- k === "submitted" && /* @__PURE__ */ r.jsx(Mt, { className: "success", "data-testid": "success", children: he(c.formatMessage, `${ae}success`, e.type, "action") }),
3527
- h && /* @__PURE__ */ r.jsx(Mt, { id: "error-message", className: "error", "data-testid": "error", children: m.error ? m.error : typeof h == "string" ? h.includes(" ") ? h : c.formatMessage(
3516
+ /* @__PURE__ */ r.jsx(nt, { buttons: v }),
3517
+ k === "submitted" && /* @__PURE__ */ r.jsx(Mt, { className: "success", "data-testid": "success", children: he(m.formatMessage, `${ae}success`, e.type, "action") }),
3518
+ h && /* @__PURE__ */ r.jsx(Mt, { id: "error-message", className: "error", "data-testid": "error", children: d.error ? d.error : typeof h == "string" ? h.includes(" ") ? h : m.formatMessage(
3528
3519
  { id: h },
3529
3520
  {
3530
- action: c.formatMessage({
3521
+ action: m.formatMessage({
3531
3522
  id: `discussion_action_${e.type}`
3532
3523
  }),
3533
- maxLength: o
3524
+ maxLength: a
3534
3525
  }
3535
3526
  ) : h })
3536
3527
  ]
3537
3528
  }
3538
3529
  );
3539
- }, An = ({
3530
+ }, Nn = ({
3540
3531
  contentType: e,
3541
3532
  createPost: t,
3542
- membershipRequiredToPost: { isMember: n, required: s, join: o, leave: l, notMemberStateText: m }
3533
+ membershipRequiredToPost: { isMember: n, required: s, join: a, leave: i, notMemberStateText: d }
3543
3534
  }) => s && !n ? /* @__PURE__ */ r.jsx(
3544
3535
  st,
3545
3536
  {
3546
- text: m,
3537
+ text: d,
3547
3538
  button: {
3548
- component: /* @__PURE__ */ r.jsx(yn, { functions: { join: o, leave: l } })
3539
+ component: /* @__PURE__ */ r.jsx(yn, { functions: { join: a, leave: i } })
3549
3540
  }
3550
3541
  }
3551
3542
  ) : /* @__PURE__ */ r.jsx(
@@ -3559,12 +3550,12 @@ const ae = "discussion_form_", Cn = ({
3559
3550
  ), js = {
3560
3551
  showThread: !1,
3561
3552
  showForm: !1
3562
- }, Nn = At(js), So = ({ children: e }) => {
3553
+ }, An = Nt(js), So = ({ children: e }) => {
3563
3554
  const [t, n] = P({
3564
3555
  showThread: !1,
3565
3556
  showForm: !1
3566
3557
  });
3567
- return /* @__PURE__ */ r.jsx(Nn.Provider, { value: { ...t, updateConversation: n }, children: e });
3558
+ return /* @__PURE__ */ r.jsx(An.Provider, { value: { ...t, updateConversation: n }, children: e });
3568
3559
  }, Es = ({
3569
3560
  question: e,
3570
3561
  answer: t,
@@ -3582,43 +3573,43 @@ const wt = () => {
3582
3573
  likes: t = 0,
3583
3574
  peopleWhoLiked: n = !1,
3584
3575
  isShort: s = !0,
3585
- userLiked: o = !1,
3586
- content: l = { type: "reply", slugs: {} },
3587
- canLike: m = !0,
3588
- functions: { createLike: a = () => {
3589
- }, deleteLike: i = () => {
3576
+ userLiked: a = !1,
3577
+ content: i = { type: "reply", slugs: {} },
3578
+ canLike: d = !0,
3579
+ functions: { createLike: o = () => {
3580
+ }, deleteLike: l = () => {
3590
3581
  } } = {}
3591
3582
  }) => {
3592
- const c = F();
3583
+ const m = F();
3593
3584
  z(() => {
3594
- h(o);
3595
- }, [o]);
3596
- const [u, f] = P(t), [p, h] = P(o), [_, k] = P(!1), [g, E] = P(!1), v = qe(() => Ss(n, kt), [n]), S = (M) => {
3585
+ h(a);
3586
+ }, [a]);
3587
+ const [c, f] = P(t), [p, h] = P(a), [_, k] = P(!1), [g, E] = P(!1), b = qe(() => Ss(n, kt), [n]), S = (M) => {
3597
3588
  if (M.preventDefault(), M.stopPropagation(), E(!1), Le)
3598
3589
  return wt(), !1;
3599
- if (wt(), _ || !m)
3590
+ if (wt(), _ || !d)
3600
3591
  return !1;
3601
3592
  Le = setTimeout(T, 350);
3602
3593
  }, T = async () => {
3603
- if (wt(), _ || !m)
3594
+ if (wt(), _ || !d)
3604
3595
  return !1;
3605
- let M = p ? u - 1 : u + 1;
3596
+ let M = p ? c - 1 : c + 1;
3606
3597
  M < 0 && (M = 0), k(!0), f(M), h(!p);
3607
3598
  try {
3608
- if (l && l.slugs) {
3609
- const Q = Es(l.slugs);
3610
- p ? await i(Q) : await a(Q, { contentPath: window.location.pathname });
3599
+ if (i && i.slugs) {
3600
+ const Q = Es(i.slugs);
3601
+ p ? await l(Q) : await o(Q, { contentPath: window.location.pathname });
3611
3602
  }
3612
3603
  } catch {
3613
- f(t), h(o);
3604
+ f(t), h(a);
3614
3605
  } finally {
3615
3606
  k(!1);
3616
3607
  }
3617
3608
  };
3618
- return N.createElement(
3609
+ return A.createElement(
3619
3610
  e,
3620
3611
  {
3621
- className: j("likes-wrapper text-medium action-button", { "show-spinner": _, "is-liked": p, disabled: !m }),
3612
+ className: j("likes-wrapper text-medium action-button", { "show-spinner": _, "is-liked": p, disabled: !d }),
3622
3613
  onClick: S,
3623
3614
  onMouseEnter: () => {
3624
3615
  E(!0);
@@ -3639,28 +3630,28 @@ const wt = () => {
3639
3630
  variant: "tertiary",
3640
3631
  size: "medium",
3641
3632
  icon: { icon: p ? "heart" : "heart_empty", animate: "bounce" },
3642
- className: j({ "do-animation": p && !o }),
3643
- screenreaderText: m ? c.formatMessage({
3633
+ className: j({ "do-animation": p && !a }),
3634
+ screenreaderText: d ? m.formatMessage({
3644
3635
  id: `discussion_likes_${p ? "unlike" : "like"}`
3645
- }, { action: c.formatMessage({ id: `discussion_action_${l.type}` }) }) : !1,
3636
+ }, { action: m.formatMessage({ id: `discussion_action_${i.type}` }) }) : !1,
3646
3637
  onClick: S,
3647
- disabled: !m,
3648
- "aria-hidden": !m,
3638
+ disabled: !d,
3639
+ "aria-hidden": !d,
3649
3640
  "data-testid": "like-button",
3650
3641
  "data-gtm-event-context": "Likes",
3651
- "data-gtm-event-type": `like-${l.type}-click`
3642
+ "data-gtm-event-type": `like-${i.type}-click`
3652
3643
  }
3653
3644
  ),
3654
- /* @__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 }) }),
3645
+ /* @__PURE__ */ r.jsx("span", { className: j("number-of-likes", { "no-likes": c === 0 }), "data-testid": "number-of-likes", children: m.formatMessage({ id: `discussion_likes${s ? "_short" : ""}` }, { number: c }) }),
3655
3646
  n && /* @__PURE__ */ r.jsx(Ir, { isOpen: g, isLoading: n.length === 0, children: n.length && /* @__PURE__ */ r.jsxs("ul", { children: [
3656
- v.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))),
3657
- n.length > kt && /* @__PURE__ */ r.jsx("li", { children: c.formatMessage({ id: "discussion_likes_more" }, { number: n.length - kt }) })
3647
+ 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))),
3648
+ n.length > kt && /* @__PURE__ */ r.jsx("li", { children: m.formatMessage({ id: "discussion_likes_more" }, { number: n.length - kt }) })
3658
3649
  ] }) })
3659
3650
  ] })
3660
3651
  }
3661
3652
  );
3662
3653
  };
3663
- const Ts = ({ element: e = "section", children: t, className: n, ...s }) => N.createElement(
3654
+ const Ts = ({ element: e = "section", children: t, className: n, ...s }) => A.createElement(
3664
3655
  e,
3665
3656
  {
3666
3657
  className: j("modal", n),
@@ -3673,18 +3664,18 @@ const Dn = ({
3673
3664
  isOpen: t = !1,
3674
3665
  showDivider: n = !0,
3675
3666
  maxWidth: s,
3676
- functions: { onOpen: o = () => {
3677
- }, onClose: l = () => {
3667
+ functions: { onOpen: a = () => {
3668
+ }, onClose: i = () => {
3678
3669
  } } = {},
3679
- forceShow: { error: m = !1 } = {},
3680
- title: a,
3681
- children: i,
3682
- buttons: c,
3683
- className: u = "",
3670
+ forceShow: { error: d = !1 } = {},
3671
+ title: o,
3672
+ children: l,
3673
+ buttons: m,
3674
+ className: c = "",
3684
3675
  gtmContext: f = "Modal"
3685
3676
  }) => {
3686
3677
  const p = F(), [h, _] = P(t), k = (E) => {
3687
- _(E), E ? (o(), document.body.classList.add("has-overlay")) : (l(), document.body.classList.remove("has-overlay"));
3678
+ _(E), E ? (a(), document.body.classList.add("has-overlay")) : (i(), document.body.classList.remove("has-overlay"));
3688
3679
  };
3689
3680
  z(() => {
3690
3681
  k(t);
@@ -3694,12 +3685,12 @@ const Dn = ({
3694
3685
  Ts,
3695
3686
  {
3696
3687
  id: e,
3697
- className: j("overlay-modal", u, { "has-max-width": s }),
3688
+ className: j("overlay-modal", c, { "has-max-width": s }),
3698
3689
  hidden: !h,
3699
3690
  style: g,
3700
3691
  children: t && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
3701
3692
  /* @__PURE__ */ r.jsxs("div", { className: "top", children: [
3702
- a && /* @__PURE__ */ r.jsx("h2", { className: "modal-title", children: a }),
3693
+ o && /* @__PURE__ */ r.jsx("h2", { className: "modal-title", children: o }),
3703
3694
  /* @__PURE__ */ r.jsx(
3704
3695
  W,
3705
3696
  {
@@ -3714,13 +3705,13 @@ const Dn = ({
3714
3705
  }
3715
3706
  )
3716
3707
  ] }),
3717
- n && /* @__PURE__ */ r.jsx(Ae, {}),
3718
- i,
3719
- c && /* @__PURE__ */ r.jsxs("div", { className: "bottom", children: [
3720
- /* @__PURE__ */ r.jsx(Ae, {}),
3721
- /* @__PURE__ */ r.jsx(nt, { buttons: c })
3708
+ n && /* @__PURE__ */ r.jsx(Ne, {}),
3709
+ l,
3710
+ m && /* @__PURE__ */ r.jsxs("div", { className: "bottom", children: [
3711
+ /* @__PURE__ */ r.jsx(Ne, {}),
3712
+ /* @__PURE__ */ r.jsx(nt, { buttons: m })
3722
3713
  ] }),
3723
- m && /* @__PURE__ */ r.jsx(Mt, { className: "error", children: m })
3714
+ d && /* @__PURE__ */ r.jsx(Mt, { className: "error", children: d })
3724
3715
  ] })
3725
3716
  }
3726
3717
  ) });
@@ -3734,31 +3725,30 @@ const $o = ({
3734
3725
  showModal: t = !0,
3735
3726
  title: n,
3736
3727
  formTitle: s = "Know someone who might like to join this workshop?",
3737
- formLabel: o = "Invite your colleagues by typing or pasting their emails below.",
3738
- ctaMessage: l = "Send",
3739
- showIcon: m,
3740
- onClose: a,
3741
- reportError: i = () => {
3728
+ formLabel: a = "Send an invitation to your colleagues below",
3729
+ ctaMessage: i = "Send invites",
3730
+ showIcon: d,
3731
+ onClose: o,
3732
+ reportError: l = () => {
3742
3733
  },
3743
- sendInvites: c
3734
+ sendInvites: m
3744
3735
  }) => /* @__PURE__ */ r.jsx(
3745
3736
  Dn,
3746
3737
  {
3747
3738
  title: n,
3748
3739
  isOpen: t,
3749
3740
  showDivider: !1,
3750
- showIcon: m,
3751
- functions: { onClose: a },
3741
+ showIcon: d,
3752
3742
  className: j("invite-modal", e, { success: !!n }),
3753
3743
  children: /* @__PURE__ */ r.jsx(
3754
- vs,
3744
+ bs,
3755
3745
  {
3756
3746
  title: s,
3757
- label: o,
3758
- ctaMessage: l,
3759
- onClose: a,
3760
- sendInvites: c,
3761
- reportError: i
3747
+ label: a,
3748
+ ctaMessage: i,
3749
+ onClose: o,
3750
+ sendInvites: m,
3751
+ reportError: l
3762
3752
  }
3763
3753
  )
3764
3754
  }
@@ -3771,9 +3761,9 @@ const xe = "discussion_", Cs = 280, Ot = ({
3771
3761
  content: t,
3772
3762
  userHasPermissions: n = !0,
3773
3763
  isLoading: s = !1,
3774
- originalAuthorId: o,
3764
+ originalAuthorId: a,
3775
3765
  functions: {
3776
- content: { createContent: l, deleteContent: m, updateContent: a } = {
3766
+ content: { createContent: i, deleteContent: d, updateContent: o } = {
3777
3767
  createContent: () => {
3778
3768
  },
3779
3769
  deleteContent: () => {
@@ -3781,10 +3771,10 @@ const xe = "discussion_", Cs = 280, Ot = ({
3781
3771
  updateContent: () => {
3782
3772
  }
3783
3773
  },
3784
- likes: { createLike: i, deleteLike: c } = { createLike: () => {
3774
+ likes: { createLike: l, deleteLike: m } = { createLike: () => {
3785
3775
  }, deleteLike: () => {
3786
3776
  } },
3787
- comments: { openComments: u } = { openComments: () => {
3777
+ comments: { openComments: c } = { openComments: () => {
3788
3778
  } }
3789
3779
  },
3790
3780
  links: f = {},
@@ -3793,11 +3783,11 @@ const xe = "discussion_", Cs = 280, Ot = ({
3793
3783
  children: _,
3794
3784
  isTruncated: k = !1
3795
3785
  }) => {
3796
- const g = F(), E = ye(je), v = ye(Nn), [S, T] = P({
3786
+ const g = F(), E = ye(je), b = ye(An), [S, T] = P({
3797
3787
  body: t && t.body || "",
3798
3788
  isEditing: !1,
3799
3789
  didEdit: t && t.isEdited || !1
3800
- }), [M, Q] = P(!1), [V, b] = P("");
3790
+ }), [M, Q] = P(!1), [V, v] = P("");
3801
3791
  if (z(() => {
3802
3792
  T({
3803
3793
  ...S,
@@ -3805,28 +3795,28 @@ const xe = "discussion_", Cs = 280, Ot = ({
3805
3795
  didEdit: t && t.isEdited || !1
3806
3796
  });
3807
3797
  }, [t.isEdited]), s || !t || t.type === "answer" && (!t.slugs || !t.slugs.question))
3808
- return /* @__PURE__ */ r.jsx(ve, { className: "discussion-card discussion-post" });
3809
- const { author: A, 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 A != "string" && A.id && A.id === E.id || !1, ie = typeof q == "boolean" ? q : n ? !K : !1, le = async (R) => {
3810
- R || (R = ""), b("");
3798
+ return /* @__PURE__ */ r.jsx(be, { className: "discussion-card discussion-post" });
3799
+ 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) => {
3800
+ R || (R = ""), v("");
3811
3801
  try {
3812
3802
  if (!_r(R, S.body)) {
3813
3803
  const te = t.type === "question" ? { title: R } : { body: R };
3814
- await a(ln(t.slugs), te);
3804
+ await o(ln(t.slugs), te);
3815
3805
  }
3816
3806
  T({ body: R, isEditing: !1, didEdit: !0 });
3817
3807
  } catch {
3818
- b(`${xe}form_error`);
3808
+ v(`${xe}form_error`);
3819
3809
  }
3820
3810
  }, ce = () => {
3821
- v && v.updateConversation && v.updateConversation({ showThread: !0, showForm: !0 }), setTimeout(() => {
3811
+ b && b.updateConversation && b.updateConversation({ showThread: !0, showForm: !0 }), setTimeout(() => {
3822
3812
  const te = `reply-form-${(t.type === "answer" ? t.slug : t.slugs.answer || "").toLowerCase().slice(-15)}`, X = document.getElementById(te), ne = document.getElementById(`${te}-input`);
3823
3813
  ne && ne.focus(), X && X.scrollIntoView({ behavior: "smooth" });
3824
3814
  }, 0);
3825
3815
  }, ue = () => {
3826
3816
  try {
3827
- m(ln(t.slugs));
3817
+ d(ln(t.slugs));
3828
3818
  } catch {
3829
- b("delete-error");
3819
+ v("delete-error");
3830
3820
  }
3831
3821
  }, oe = [
3832
3822
  {
@@ -3866,7 +3856,7 @@ const xe = "discussion_", Cs = 280, Ot = ({
3866
3856
  "data-gtm-event-type": `delete-${t.type}-click`,
3867
3857
  ...Ms(`delete-${t.slug}-modal`, M)
3868
3858
  }
3869
- ), N.createElement(e, {
3859
+ ), A.createElement(e, {
3870
3860
  className: j("discussion-post", p),
3871
3861
  "data-testid": `discussion-${t.type}-thread`,
3872
3862
  children: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
@@ -3885,9 +3875,9 @@ const xe = "discussion_", Cs = 280, Ot = ({
3885
3875
  !S.isEditing && /* @__PURE__ */ r.jsx(
3886
3876
  Ft,
3887
3877
  {
3888
- member: A,
3878
+ member: N,
3889
3879
  additionalContent: { createdAt: w, didEdit: S.didEdit },
3890
- className: typeof A != "string" && A.id === o ? "highlighted" : "",
3880
+ className: typeof N != "string" && N.id === a ? "highlighted" : "",
3891
3881
  gtmContext: h,
3892
3882
  gtmType: "profile-click"
3893
3883
  }
@@ -3914,10 +3904,10 @@ const xe = "discussion_", Cs = 280, Ot = ({
3914
3904
  ) : !1
3915
3905
  },
3916
3906
  functions: {
3917
- create: l,
3907
+ create: i,
3918
3908
  handleSaveEdit: le,
3919
3909
  handleCancel: () => {
3920
- b(""), T({ ...S, isEditing: !1 });
3910
+ v(""), T({ ...S, isEditing: !1 });
3921
3911
  }
3922
3912
  },
3923
3913
  gtmContext: `${h}Form`
@@ -3935,7 +3925,7 @@ const xe = "discussion_", Cs = 280, Ot = ({
3935
3925
  nn,
3936
3926
  {
3937
3927
  options: {
3938
- wrapper: t.type === "question" ? "h1" : N.Fragment,
3928
+ wrapper: t.type === "question" ? "h1" : A.Fragment,
3939
3929
  forceWrapper: t.type === "question",
3940
3930
  forceInline: t.type === "question",
3941
3931
  forceBlock: t.type !== "question"
@@ -3959,17 +3949,17 @@ const xe = "discussion_", Cs = 280, Ot = ({
3959
3949
  content: { type: t.type, slugs: t.slugs },
3960
3950
  canLike: ie,
3961
3951
  functions: {
3962
- createLike: i,
3963
- deleteLike: c
3952
+ createLike: l,
3953
+ deleteLike: m
3964
3954
  }
3965
3955
  }
3966
3956
  ),
3967
- (["question", "post"].includes(t.type) || f.comments || typeof u == "function") && /* @__PURE__ */ r.jsxs(
3957
+ (["question", "post"].includes(t.type) || f.comments || typeof c == "function") && /* @__PURE__ */ r.jsxs(
3968
3958
  "li",
3969
3959
  {
3970
3960
  className: "action-button",
3971
3961
  onClick: (R) => {
3972
- R.preventDefault(), R.stopPropagation(), f.comments && (window.location.href = f.comments), typeof u == "function" && u();
3962
+ R.preventDefault(), R.stopPropagation(), f.comments && (window.location.href = f.comments), typeof c == "function" && c();
3973
3963
  },
3974
3964
  children: [
3975
3965
  /* @__PURE__ */ r.jsx(
@@ -3980,7 +3970,7 @@ const xe = "discussion_", Cs = 280, Ot = ({
3980
3970
  styling: { muted: !0 },
3981
3971
  icon: { icon: "speech-bubble_square_thick" },
3982
3972
  href: f.comments ? f.comments : !1,
3983
- onClick: f.comments || typeof u != "function" ? !1 : u,
3973
+ onClick: f.comments || typeof c != "function" ? !1 : c,
3984
3974
  className: "gtm-trackable",
3985
3975
  "data-gtm-event-context": h,
3986
3976
  "data-gtm-event-type": `answer-${t.type}-click`,
@@ -4082,21 +4072,21 @@ const yt = "discussion_responses_", To = ({ type: e = "answer", responses: t = 0
4082
4072
  ] });
4083
4073
  };
4084
4074
  const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4085
- const s = F(), o = ee(null), [l, m] = P(e), [a, i] = P("closed");
4075
+ const s = F(), a = ee(null), [i, d] = P(e), [o, l] = P("closed");
4086
4076
  z(() => {
4087
- const p = o.current;
4077
+ const p = a.current;
4088
4078
  if (p)
4089
- return p.addEventListener("transitionend", c), () => {
4090
- p.removeEventListener("transitionend", c);
4079
+ return p.addEventListener("transitionend", m), () => {
4080
+ p.removeEventListener("transitionend", m);
4091
4081
  };
4092
4082
  }, []), Ce(() => {
4093
- a === "closed" && !l || i(["opening", "open"].includes(a) ? "ready-to-close" : "opening");
4094
- }, [l]), z(() => {
4095
- a === "ready-to-close" && i("closing");
4096
- }, [a]);
4097
- const c = ({ propertyName: p }) => {
4098
- p === "max-height" && i((h) => h === "opening" ? "open" : h === "closing" ? "closed" : h);
4099
- }, u = ["opening", "open"].includes(a), f = gn(n, { element: "li" });
4083
+ o === "closed" && !i || l(["opening", "open"].includes(o) ? "ready-to-close" : "opening");
4084
+ }, [i]), z(() => {
4085
+ o === "ready-to-close" && l("closing");
4086
+ }, [o]);
4087
+ const m = ({ propertyName: p }) => {
4088
+ p === "max-height" && l((h) => h === "opening" ? "open" : h === "closing" ? "closed" : h);
4089
+ }, c = ["opening", "open"].includes(o), f = gn(n, { element: "li" });
4100
4090
  return /* @__PURE__ */ r.jsxs("div", { className: "thread-wrapper", children: [
4101
4091
  /* @__PURE__ */ r.jsx(
4102
4092
  W,
@@ -4104,16 +4094,16 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4104
4094
  variant: "secondary",
4105
4095
  size: "small",
4106
4096
  styling: { muted: !0 },
4107
- icon: { icon: `arrow_corner-down_${u ? "left" : "right"}` },
4097
+ icon: { icon: `arrow_corner-down_${c ? "left" : "right"}` },
4108
4098
  onClick: () => {
4109
- m(!l);
4099
+ d(!i);
4110
4100
  },
4111
- children: s.formatMessage({ id: `discussion_thread_${u ? "hide" : "show"}` }, { count: t })
4101
+ children: s.formatMessage({ id: `discussion_thread_${c ? "hide" : "show"}` }, { count: t })
4112
4102
  }
4113
4103
  ),
4114
- /* @__PURE__ */ r.jsx("ul", { ref: o, className: j("thread", a), hidden: !l, children: f })
4104
+ /* @__PURE__ */ r.jsx("ul", { ref: a, className: j("thread", o), hidden: !i, children: f })
4115
4105
  ] });
4116
- }, As = ({
4106
+ }, Ns = ({
4117
4107
  user: e,
4118
4108
  content: t,
4119
4109
  verb: n = "post"
@@ -4134,20 +4124,20 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4134
4124
  like: 0
4135
4125
  },
4136
4126
  verb: n
4137
- }), Ns = ({
4127
+ }), As = ({
4138
4128
  queryClient: e,
4139
4129
  queryKey: t,
4140
4130
  user: n,
4141
4131
  mutationFn: s
4142
- }) => ({ mutationFn: s, onMutate: async ({ content: a }) => {
4132
+ }) => ({ mutationFn: s, onMutate: async ({ content: o }) => {
4143
4133
  if (!n)
4144
4134
  return;
4145
- const i = As({ user: n, content: a, verb: "post" });
4135
+ const l = Ns({ user: n, content: o, verb: "post" });
4146
4136
  await e.cancelQueries({ queryKey: t });
4147
- const c = e.getQueryData(t);
4148
- return e.setQueryData(t, (u) => [...u, i]), { previousActivities: c };
4149
- }, onError: (a, i, c) => {
4150
- e.setQueryData(t, c.previousActivities);
4137
+ const m = e.getQueryData(t);
4138
+ return e.setQueryData(t, (c) => [...c, l]), { previousActivities: m };
4139
+ }, onError: (o, l, m) => {
4140
+ e.setQueryData(t, m.previousActivities);
4151
4141
  }, onSettled: () => {
4152
4142
  e.invalidateQueries({ queryKey: t });
4153
4143
  } }), Ds = ({
@@ -4157,17 +4147,17 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4157
4147
  }) => ({
4158
4148
  mutationFn: n,
4159
4149
  onMutate: async ({
4160
- activityInfo: m,
4161
- content: { body: a }
4150
+ activityInfo: d,
4151
+ content: { body: o }
4162
4152
  }) => {
4163
- if (a.length === 0)
4153
+ if (o.length === 0)
4164
4154
  return;
4165
4155
  await e.cancelQueries({ queryKey: t });
4166
- const i = e.getQueryData(t), c = i == null ? void 0 : i.map((u) => ((u == null ? void 0 : u.id) === (m == null ? void 0 : m.activityId) && (u.content = a), u));
4167
- return e.setQueryData(t, () => c && [...c]), { previousActivities: c };
4156
+ const l = e.getQueryData(t), m = l == null ? void 0 : l.map((c) => ((c == null ? void 0 : c.id) === (d == null ? void 0 : d.activityId) && (c.content = o), c));
4157
+ return e.setQueryData(t, () => m && [...m]), { previousActivities: m };
4168
4158
  },
4169
- onError: (m, a, i) => {
4170
- e.setQueryData(t, i.previousActivities);
4159
+ onError: (d, o, l) => {
4160
+ e.setQueryData(t, l.previousActivities);
4171
4161
  },
4172
4162
  onSettled: () => {
4173
4163
  e.invalidateQueries({ queryKey: t });
@@ -4176,61 +4166,61 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4176
4166
  queryClient: e,
4177
4167
  queryKey: t,
4178
4168
  mutationFn: n
4179
- }) => ({ mutationFn: n, onMutate: async ({ activityId: a }) => {
4169
+ }) => ({ mutationFn: n, onMutate: async ({ activityId: o }) => {
4180
4170
  await e.cancelQueries({ queryKey: t });
4181
- const i = e.getQueryData(t), c = i == null ? void 0 : i.map((u) => {
4171
+ const l = e.getQueryData(t), m = l == null ? void 0 : l.map((c) => {
4182
4172
  var f;
4183
- return (u == null ? void 0 : u.id) === a && ((f = u.reaction_counts) != null && f.like ? u.reaction_counts.like += 1 : u.reaction_counts.like = 1), u;
4173
+ return (c == null ? void 0 : c.id) === o && ((f = c.reaction_counts) != null && f.like ? c.reaction_counts.like += 1 : c.reaction_counts.like = 1), c;
4184
4174
  });
4185
- return e.setQueryData(t, () => c && [...c]), { previousActivities: c };
4186
- }, onError: (a, i, c) => {
4187
- e.setQueryData(t, c.previousActivities);
4188
- }, onSuccess: (a) => {
4189
- const i = e.getQueryData(t), c = i == null ? void 0 : i.map((u) => ((u == null ? void 0 : u.id) === (a == null ? void 0 : a.activity_id) && (u.latest_reactions.like ? u.latest_reactions.like.push(a) : u.latest_reactions.like = [a]), u));
4190
- return e.setQueryData(t, () => c && [...c]), { previousActivities: i };
4191
- }, onSettled: (a, i, c) => {
4175
+ return e.setQueryData(t, () => m && [...m]), { previousActivities: m };
4176
+ }, onError: (o, l, m) => {
4177
+ e.setQueryData(t, m.previousActivities);
4178
+ }, onSuccess: (o) => {
4179
+ const l = e.getQueryData(t), m = l == null ? void 0 : l.map((c) => ((c == null ? void 0 : c.id) === (o == null ? void 0 : o.activity_id) && (c.latest_reactions.like ? c.latest_reactions.like.push(o) : c.latest_reactions.like = [o]), c));
4180
+ return e.setQueryData(t, () => m && [...m]), { previousActivities: l };
4181
+ }, onSettled: (o, l, m) => {
4192
4182
  e.invalidateQueries({
4193
- queryKey: [...t, c.activityId]
4183
+ queryKey: [...t, m.activityId]
4194
4184
  });
4195
4185
  } }), Fs = ({
4196
4186
  queryClient: e,
4197
4187
  queryKey: t,
4198
4188
  user: n,
4199
4189
  mutationFn: s
4200
- }) => ({ mutationFn: s, onMutate: async ({ activityId: i }) => {
4190
+ }) => ({ mutationFn: s, onMutate: async ({ activityId: l }) => {
4201
4191
  await e.cancelQueries({ queryKey: t });
4202
- const c = e.getQueryData(t), u = c == null ? void 0 : c.map((f) => {
4192
+ const m = e.getQueryData(t), c = m == null ? void 0 : m.map((f) => {
4203
4193
  var p;
4204
- return (f == null ? void 0 : f.id) === i && (p = f.reaction_counts) != null && p.like && (f.reaction_counts.like -= 1), f;
4194
+ return (f == null ? void 0 : f.id) === l && (p = f.reaction_counts) != null && p.like && (f.reaction_counts.like -= 1), f;
4205
4195
  });
4206
- return e.setQueryData(t, () => u && [...u]), { previousActivities: u };
4207
- }, onError: (i, c, u) => {
4208
- e.setQueryData(t, u.previousActivities);
4209
- }, onSuccess: (i, { activityId: c }) => {
4210
- const u = e.getQueryData(t), f = u == null ? void 0 : u.map((p) => {
4196
+ return e.setQueryData(t, () => c && [...c]), { previousActivities: c };
4197
+ }, onError: (l, m, c) => {
4198
+ e.setQueryData(t, c.previousActivities);
4199
+ }, onSuccess: (l, { activityId: m }) => {
4200
+ const c = e.getQueryData(t), f = c == null ? void 0 : c.map((p) => {
4211
4201
  var h, _, k, g;
4212
- if (p.id === c) {
4202
+ if (p.id === m) {
4213
4203
  const E = (k = (_ = (h = p.latest_reactions) == null ? void 0 : h.like) == null ? void 0 : _.find(
4214
- (v) => v.user_id === (n == null ? void 0 : n.id)
4204
+ (b) => b.user_id === (n == null ? void 0 : n.id)
4215
4205
  )) == null ? void 0 : k.id;
4216
4206
  return p.latest_reactions.like = (g = p.latest_reactions.like) == null ? void 0 : g.filter(
4217
- (v) => v.id !== E
4207
+ (b) => b.id !== E
4218
4208
  ), p;
4219
4209
  } else
4220
4210
  return p;
4221
4211
  });
4222
- return e.setQueryData(t, () => f && [...f]), { previousActivities: u };
4223
- }, onSettled: (i, c, u) => {
4212
+ return e.setQueryData(t, () => f && [...f]), { previousActivities: c };
4213
+ }, onSettled: (l, m, c) => {
4224
4214
  e.invalidateQueries({
4225
- queryKey: [...t, u.activityId]
4215
+ queryKey: [...t, c.activityId]
4226
4216
  });
4227
4217
  } }), Co = ({
4228
4218
  basePath: e,
4229
4219
  parentId: t,
4230
4220
  isMember: n,
4231
- functions: { list: s, create: o, edit: l, like: m, unlike: a, join: i, leave: c }
4221
+ functions: { list: s, create: a, edit: i, like: d, unlike: o, join: l, leave: m }
4232
4222
  }) => {
4233
- const u = F(), f = Nt(), p = ye(je), {
4223
+ const c = F(), f = At(), p = ye(je), {
4234
4224
  data: h,
4235
4225
  error: _,
4236
4226
  isLoading: k,
@@ -4238,21 +4228,21 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4238
4228
  } = cn({
4239
4229
  queryKey: [e, t],
4240
4230
  queryFn: s
4241
- }), E = Ns({
4231
+ }), E = As({
4242
4232
  queryClient: f,
4243
4233
  queryKey: [e, t],
4244
4234
  user: p,
4245
- mutationFn: o
4246
- }), { mutate: v } = fe(E), S = Ds({
4235
+ mutationFn: a
4236
+ }), { mutate: b } = fe(E), S = Ds({
4247
4237
  queryClient: f,
4248
4238
  queryKey: [e, t],
4249
- mutationFn: async (w) => await l(w)
4239
+ mutationFn: async (w) => await i(w)
4250
4240
  }), {
4251
4241
  mutate: T
4252
4242
  } = fe(S), M = Ps({
4253
4243
  queryClient: f,
4254
4244
  queryKey: [e, t],
4255
- mutationFn: m
4245
+ mutationFn: d
4256
4246
  }), {
4257
4247
  mutate: Q
4258
4248
  } = fe(M), V = Fs({
@@ -4266,29 +4256,29 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4266
4256
  )), L = (Y = (U = (B = G == null ? void 0 : G.latest_reactions) == null ? void 0 : B.like) == null ? void 0 : U.find(
4267
4257
  (K) => K.user_id === (p == null ? void 0 : p.id)
4268
4258
  )) == null ? void 0 : Y.id;
4269
- await a({ reactionId: L || "", activityId: w });
4259
+ await o({ reactionId: L || "", activityId: w });
4270
4260
  }
4271
4261
  }), {
4272
- mutate: b
4273
- } = fe(V), A = Ee(
4262
+ mutate: v
4263
+ } = fe(V), N = Ee(
4274
4264
  ({ activityId: w }) => Q({ activityId: w }),
4275
4265
  [Q]
4276
4266
  ), q = Ee(
4277
- ({ activityId: w }) => b({ activityId: w }),
4278
- [b]
4267
+ ({ activityId: w }) => v({ activityId: w }),
4268
+ [v]
4279
4269
  );
4280
- return _ ? /* @__PURE__ */ r.jsx(st, { variant: "error", text: _.message }) : k ? /* @__PURE__ */ r.jsx(ve, { style: { height: "400px" } }) : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
4270
+ return _ ? /* @__PURE__ */ r.jsx(st, { variant: "error", text: _.message }) : k ? /* @__PURE__ */ r.jsx(be, { style: { height: "400px" } }) : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
4281
4271
  /* @__PURE__ */ r.jsx(
4282
- An,
4272
+ Nn,
4283
4273
  {
4284
4274
  contentType: "post",
4285
- createPost: v,
4275
+ createPost: b,
4286
4276
  membershipRequiredToPost: {
4287
4277
  isMember: n,
4288
4278
  required: !0,
4289
- join: i,
4290
- leave: c,
4291
- notMemberStateText: u.formatMessage({ id: "community_joinToPost" })
4279
+ join: l,
4280
+ leave: m,
4281
+ notMemberStateText: c.formatMessage({ id: "community_joinToPost" })
4292
4282
  }
4293
4283
  }
4294
4284
  ),
@@ -4331,7 +4321,7 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4331
4321
  },
4332
4322
  likes: {
4333
4323
  createLike: () => {
4334
- A({ activityId: w == null ? void 0 : w.id });
4324
+ N({ activityId: w == null ? void 0 : w.id });
4335
4325
  },
4336
4326
  deleteLike: () => {
4337
4327
  q({ activityId: w == null ? void 0 : w.id });
@@ -4344,7 +4334,7 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4344
4334
  isTruncated: !0
4345
4335
  }
4346
4336
  ),
4347
- /* @__PURE__ */ r.jsx(Ae, {})
4337
+ /* @__PURE__ */ r.jsx(Ne, {})
4348
4338
  ] }, w == null ? void 0 : w.id);
4349
4339
  }))
4350
4340
  ] });
@@ -4354,17 +4344,17 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4354
4344
  mutationFn: n
4355
4345
  }) => ({ mutationFn: n, onMutate: async () => {
4356
4346
  await e.cancelQueries({ queryKey: t });
4357
- }, onError: (a, i, c) => {
4358
- e.setQueryData(t, c.previousActivity);
4359
- }, onSuccess: (a) => {
4360
- var c;
4361
- const i = e.getQueryData(t);
4362
- if (i)
4363
- return (c = i == null ? void 0 : i.latest_reactions) != null && c.reply ? (i.latest_reactions.reply.unshift(a), i && (i.reaction_counts = {
4364
- reply: i.latest_reactions.reply.length
4365
- })) : (i.latest_reactions = { reply: [a] }, i.reaction_counts = { reply: 1 }), e.setQueryData(t, () => ({
4366
- ...i
4367
- })), { previousActivity: i };
4347
+ }, onError: (o, l, m) => {
4348
+ e.setQueryData(t, m.previousActivity);
4349
+ }, onSuccess: (o) => {
4350
+ var m;
4351
+ const l = e.getQueryData(t);
4352
+ if (l)
4353
+ return (m = l == null ? void 0 : l.latest_reactions) != null && m.reply ? (l.latest_reactions.reply.unshift(o), l && (l.reaction_counts = {
4354
+ reply: l.latest_reactions.reply.length
4355
+ })) : (l.latest_reactions = { reply: [o] }, l.reaction_counts = { reply: 1 }), e.setQueryData(t, () => ({
4356
+ ...l
4357
+ })), { previousActivity: l };
4368
4358
  }, onSettled: () => {
4369
4359
  e.invalidateQueries({ queryKey: t });
4370
4360
  } }), Os = ({
@@ -4374,166 +4364,166 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4374
4364
  }) => ({
4375
4365
  mutationFn: n,
4376
4366
  onMutate: async ({
4377
- replyInfo: l,
4378
- content: { body: m }
4367
+ replyInfo: i,
4368
+ content: { body: d }
4379
4369
  }) => {
4380
- var c, u, f;
4381
- if (m.length === 0)
4370
+ var m, c, f;
4371
+ if (d.length === 0)
4382
4372
  return;
4383
4373
  await e.cancelQueries({ queryKey: t });
4384
- const a = e.getQueryData(t);
4385
- if (!a || !((c = a == null ? void 0 : a.latest_reactions) != null && c.reply))
4374
+ const o = e.getQueryData(t);
4375
+ if (!o || !((m = o == null ? void 0 : o.latest_reactions) != null && m.reply))
4386
4376
  return;
4387
- const i = (f = (u = a == null ? void 0 : a.latest_reactions) == null ? void 0 : u.reply) == null ? void 0 : f.map((p) => (p.id === l.replySlug && (p.data.content = m), p));
4377
+ const l = (f = (c = o == null ? void 0 : o.latest_reactions) == null ? void 0 : c.reply) == null ? void 0 : f.map((p) => (p.id === i.replySlug && (p.data.content = d), p));
4388
4378
  return e.setQueryData(t, () => ({
4389
- ...a,
4390
- latest_reactions: { reply: i }
4391
- })), { previousActivity: a };
4379
+ ...o,
4380
+ latest_reactions: { reply: l }
4381
+ })), { previousActivity: o };
4392
4382
  },
4393
- onError: (l, m, a) => {
4394
- e.setQueryData(t, a.previousActivity);
4383
+ onError: (i, d, o) => {
4384
+ e.setQueryData(t, o.previousActivity);
4395
4385
  }
4396
4386
  }), Ls = ({
4397
4387
  queryClient: e,
4398
4388
  queryKey: t,
4399
4389
  mutationFn: n
4400
- }) => ({ mutationFn: n, onMutate: async ({ replyId: m }) => {
4401
- var c, u;
4390
+ }) => ({ mutationFn: n, onMutate: async ({ replyId: d }) => {
4391
+ var m, c;
4402
4392
  await e.cancelQueries({ queryKey: t });
4403
- const a = e.getQueryData(t), i = (u = (c = a == null ? void 0 : a.latest_reactions) == null ? void 0 : c.reply) == null ? void 0 : u.map((f) => {
4393
+ const o = e.getQueryData(t), l = (c = (m = o == null ? void 0 : o.latest_reactions) == null ? void 0 : m.reply) == null ? void 0 : c.map((f) => {
4404
4394
  var p;
4405
- return f.id === m && ((p = f.children_counts) != null && p.like ? f.children_counts.like += 1 : f.children_counts = { like: 1 }), f;
4395
+ return f.id === d && ((p = f.children_counts) != null && p.like ? f.children_counts.like += 1 : f.children_counts = { like: 1 }), f;
4406
4396
  });
4407
4397
  return e.setQueryData(t, () => ({
4408
- ...a,
4409
- latest_reactions: { reply: i }
4410
- })), { previousActivity: a };
4411
- }, onError: (m, a, i) => {
4412
- e.setQueryData(t, i.previousActivity);
4413
- }, onSuccess: (m) => {
4414
- var c;
4415
- const a = e.getQueryData(t), i = (c = a == null ? void 0 : a.latest_reactions.reply) == null ? void 0 : c.map((u) => (u.id === m.id && (u.latest_children.like ? u.latest_children.like.push(m) : u.latest_children.like = [m]), u));
4398
+ ...o,
4399
+ latest_reactions: { reply: l }
4400
+ })), { previousActivity: o };
4401
+ }, onError: (d, o, l) => {
4402
+ e.setQueryData(t, l.previousActivity);
4403
+ }, onSuccess: (d) => {
4404
+ var m;
4405
+ const o = e.getQueryData(t), l = (m = o == null ? void 0 : o.latest_reactions.reply) == null ? void 0 : m.map((c) => (c.id === d.id && (c.latest_children.like ? c.latest_children.like.push(d) : c.latest_children.like = [d]), c));
4416
4406
  return e.setQueryData(t, () => ({
4417
- ...a,
4418
- latest_reactions: { reply: i }
4419
- })), { previousActivity: a };
4407
+ ...o,
4408
+ latest_reactions: { reply: l }
4409
+ })), { previousActivity: o };
4420
4410
  } }), Bs = ({
4421
4411
  queryClient: e,
4422
4412
  queryKey: t,
4423
4413
  user: n,
4424
4414
  mutationFn: s
4425
- }) => ({ mutationFn: s, onMutate: async ({ replyId: a }) => {
4426
- var u;
4415
+ }) => ({ mutationFn: s, onMutate: async ({ replyId: o }) => {
4416
+ var c;
4427
4417
  await e.cancelQueries({ queryKey: t });
4428
- const i = e.getQueryData(t);
4429
- if (!i)
4418
+ const l = e.getQueryData(t);
4419
+ if (!l)
4430
4420
  return;
4431
- const c = (u = i.latest_reactions.reply) == null ? void 0 : u.map((f) => (f.id === a && f.children_counts.like && (f.children_counts.like -= 1), f));
4421
+ const m = (c = l.latest_reactions.reply) == null ? void 0 : c.map((f) => (f.id === o && f.children_counts.like && (f.children_counts.like -= 1), f));
4432
4422
  return e.setQueryData(t, () => ({
4433
- ...i,
4434
- latest_reactions: { reply: c }
4435
- })), { previousActivity: i };
4436
- }, onError: (a, i, c) => {
4437
- e.setQueryData(t, c.previousActivity);
4438
- }, onSuccess: (a, { replyId: i }) => {
4423
+ ...l,
4424
+ latest_reactions: { reply: m }
4425
+ })), { previousActivity: l };
4426
+ }, onError: (o, l, m) => {
4427
+ e.setQueryData(t, m.previousActivity);
4428
+ }, onSuccess: (o, { replyId: l }) => {
4439
4429
  var f;
4440
- const c = e.getQueryData(t);
4441
- if (!c)
4430
+ const m = e.getQueryData(t);
4431
+ if (!m)
4442
4432
  return;
4443
- const u = (f = c.latest_reactions.reply) == null ? void 0 : f.map((p) => {
4433
+ const c = (f = m.latest_reactions.reply) == null ? void 0 : f.map((p) => {
4444
4434
  var h;
4445
- return p.id === i ? (h = p.latest_children.reply) == null ? void 0 : h.filter(
4435
+ return p.id === l ? (h = p.latest_children.reply) == null ? void 0 : h.filter(
4446
4436
  (k) => k.user_id !== (n == null ? void 0 : n.id)
4447
4437
  ) : p;
4448
4438
  });
4449
4439
  return e.setQueryData(t, () => ({
4450
- ...c,
4451
- latest_reactions: { reply: u }
4452
- })), { previousActivity: c };
4440
+ ...m,
4441
+ latest_reactions: { reply: c }
4442
+ })), { previousActivity: m };
4453
4443
  } }), Is = ({
4454
4444
  basePath: e,
4455
4445
  parentId: t,
4456
4446
  activityId: n,
4457
4447
  repliesList: s,
4458
- isMember: o,
4459
- functions: { createReply: l, editReply: m, like: a, unlike: i, join: c, leave: u }
4448
+ isMember: a,
4449
+ functions: { createReply: i, editReply: d, like: o, unlike: l, join: m, leave: c }
4460
4450
  }) => {
4461
- const f = F(), p = Nt(), h = ye(je), _ = Rs({
4451
+ const f = F(), p = At(), h = ye(je), _ = Rs({
4462
4452
  queryClient: p,
4463
4453
  queryKey: [e, t, n],
4464
- mutationFn: l
4454
+ mutationFn: i
4465
4455
  }), { mutate: k } = fe(_), g = Os({
4466
4456
  queryClient: p,
4467
4457
  queryKey: [e, t, n],
4468
- mutationFn: async (b) => m(b)
4458
+ mutationFn: async (v) => d(v)
4469
4459
  }), {
4470
4460
  mutate: E
4471
- } = fe(g), v = Ls({
4461
+ } = fe(g), b = Ls({
4472
4462
  queryClient: p,
4473
4463
  queryKey: [e, t, n],
4474
- mutationFn: a
4464
+ mutationFn: o
4475
4465
  }), {
4476
4466
  mutate: S
4477
- } = fe(v), T = Bs({
4467
+ } = fe(b), T = Bs({
4478
4468
  queryClient: p,
4479
4469
  queryKey: [e, t, n],
4480
4470
  user: h,
4481
- mutationFn: i
4471
+ mutationFn: l
4482
4472
  }), {
4483
4473
  mutate: M
4484
4474
  } = fe(T), Q = Ee(
4485
- ({ replyId: b }) => S({ replyId: b }),
4475
+ ({ replyId: v }) => S({ replyId: v }),
4486
4476
  [S]
4487
4477
  ), V = Ee(
4488
- ({ replyId: b }) => M({ replyId: b }),
4478
+ ({ replyId: v }) => M({ replyId: v }),
4489
4479
  [M]
4490
4480
  );
4491
4481
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
4492
4482
  /* @__PURE__ */ r.jsx(
4493
- An,
4483
+ Nn,
4494
4484
  {
4495
4485
  contentType: "post",
4496
4486
  createPost: k,
4497
4487
  membershipRequiredToPost: {
4498
- isMember: o,
4488
+ isMember: a,
4499
4489
  required: !0,
4500
- join: c,
4501
- leave: u,
4490
+ join: m,
4491
+ leave: c,
4502
4492
  notMemberStateText: f.formatMessage({ id: "community_joinToPost" })
4503
4493
  }
4504
4494
  }
4505
4495
  ),
4506
- (s == null ? void 0 : s.length) === 0 || (s == null ? void 0 : s.map((b) => {
4496
+ (s == null ? void 0 : s.length) === 0 || (s == null ? void 0 : s.map((v) => {
4507
4497
  var G, L, B, U, Y, K, ie, le, ce, ue, oe, R, te, X, ne, me, pe;
4508
- const A = ((G = b == null ? void 0 : b.latest_children) == null ? void 0 : G.like) && ((L = b == null ? void 0 : b.latest_children) == null ? void 0 : L.like.filter(
4498
+ 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(
4509
4499
  (ge) => ge.user_id === (h == null ? void 0 : h.id)
4510
- )), q = ((B = b == null ? void 0 : b.user) == null ? void 0 : B.id) === (h == null ? void 0 : h.id), w = Rt(o, q);
4500
+ )), q = ((B = v == null ? void 0 : v.user) == null ? void 0 : B.id) === (h == null ? void 0 : h.id), w = Rt(a, q);
4511
4501
  return /* @__PURE__ */ r.jsx(
4512
4502
  Ot,
4513
4503
  {
4514
4504
  content: {
4515
4505
  type: "post",
4516
- body: typeof b.data.content == "string" ? (U = b == null ? void 0 : b.data) == null ? void 0 : U.content : ((K = (Y = b == null ? void 0 : b.data) == null ? void 0 : Y.content) == null ? void 0 : K.text) || "",
4506
+ 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) || "",
4517
4507
  canLike: w,
4518
- createdAt: b == null ? void 0 : b.created_at,
4508
+ createdAt: v == null ? void 0 : v.created_at,
4519
4509
  slugs: {
4520
4510
  question: `${e}/${t}/${n}`,
4521
4511
  parentId: t,
4522
- reply: b == null ? void 0 : b.id
4512
+ reply: v == null ? void 0 : v.id
4523
4513
  },
4524
- slug: `${e}/${t}/${n}#${b == null ? void 0 : b.id}`,
4514
+ slug: `${e}/${t}/${n}#${v == null ? void 0 : v.id}`,
4525
4515
  author: {
4526
- id: (ie = b == null ? void 0 : b.user) == null ? void 0 : ie.id,
4527
- name: (ce = (le = b == null ? void 0 : b.user) == null ? void 0 : le.data) == null ? void 0 : ce.name,
4528
- organization: (oe = (ue = b == null ? void 0 : b.user) == null ? void 0 : ue.data) == null ? void 0 : oe.organization,
4529
- jobTitle: (te = (R = b == null ? void 0 : b.user) == null ? void 0 : R.data) == null ? void 0 : te.jobTitle,
4516
+ id: (ie = v == null ? void 0 : v.user) == null ? void 0 : ie.id,
4517
+ name: (ce = (le = v == null ? void 0 : v.user) == null ? void 0 : le.data) == null ? void 0 : ce.name,
4518
+ organization: (oe = (ue = v == null ? void 0 : v.user) == null ? void 0 : ue.data) == null ? void 0 : oe.organization,
4519
+ jobTitle: (te = (R = v == null ? void 0 : v.user) == null ? void 0 : R.data) == null ? void 0 : te.jobTitle,
4530
4520
  image: {
4531
- thumbnail: ((ne = (X = b == null ? void 0 : b.user) == null ? void 0 : X.data) == null ? void 0 : ne.thumbnail) || void 0
4521
+ thumbnail: ((ne = (X = v == null ? void 0 : v.user) == null ? void 0 : X.data) == null ? void 0 : ne.thumbnail) || void 0
4532
4522
  }
4533
4523
  },
4534
- userLiked: !!(A != null && A.length),
4535
- likes: ((me = b == null ? void 0 : b.children_counts) == null ? void 0 : me.like) || 0,
4536
- comments: ((pe = b == null ? void 0 : b.children_counts) == null ? void 0 : pe.reply) || 0
4524
+ userLiked: !!(N != null && N.length),
4525
+ likes: ((me = v == null ? void 0 : v.children_counts) == null ? void 0 : me.like) || 0,
4526
+ comments: ((pe = v == null ? void 0 : v.children_counts) == null ? void 0 : pe.reply) || 0
4537
4527
  },
4538
4528
  functions: {
4539
4529
  content: {
@@ -4542,8 +4532,8 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4542
4532
  updateContent: (ge, Se) => E({ replyInfo: ge, content: Se })
4543
4533
  },
4544
4534
  likes: {
4545
- createLike: () => Q({ replyId: b == null ? void 0 : b.id }),
4546
- deleteLike: () => V({ replyId: b == null ? void 0 : b.id })
4535
+ createLike: () => Q({ replyId: v == null ? void 0 : v.id }),
4536
+ deleteLike: () => V({ replyId: v == null ? void 0 : v.id })
4547
4537
  },
4548
4538
  comments: {
4549
4539
  openComments: () => {
@@ -4551,7 +4541,7 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4551
4541
  }
4552
4542
  }
4553
4543
  },
4554
- b == null ? void 0 : b.id
4544
+ v == null ? void 0 : v.id
4555
4545
  );
4556
4546
  }))
4557
4547
  ] });
@@ -4562,19 +4552,19 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4562
4552
  }) => ({
4563
4553
  mutationFn: n,
4564
4554
  onMutate: async ({
4565
- activityInfo: m,
4566
- content: { body: a }
4555
+ activityInfo: d,
4556
+ content: { body: o }
4567
4557
  }) => {
4568
- if (a.length === 0)
4558
+ if (o.length === 0)
4569
4559
  return;
4570
4560
  await e.cancelQueries({ queryKey: t });
4571
- const i = e.getQueryData(t);
4572
- return i && i.id === (m == null ? void 0 : m.activityId) && (i.content = a), e.setQueryData(t, () => ({
4573
- ...i
4574
- })), { previousActivity: i };
4561
+ const l = e.getQueryData(t);
4562
+ return l && l.id === (d == null ? void 0 : d.activityId) && (l.content = o), e.setQueryData(t, () => ({
4563
+ ...l
4564
+ })), { previousActivity: l };
4575
4565
  },
4576
- onError: (m, a, i) => {
4577
- e.setQueryData(t, i.previousActivity);
4566
+ onError: (d, o, l) => {
4567
+ e.setQueryData(t, l.previousActivity);
4578
4568
  },
4579
4569
  onSettled: () => {
4580
4570
  e.invalidateQueries({ queryKey: t });
@@ -4584,19 +4574,19 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4584
4574
  queryKey: t,
4585
4575
  mutationFn: n
4586
4576
  }) => ({ mutationFn: n, onMutate: async () => {
4587
- var i;
4577
+ var l;
4588
4578
  await e.cancelQueries({ queryKey: t });
4589
- const a = e.getQueryData(t);
4590
- return (i = a == null ? void 0 : a.reaction_counts) != null && i.like ? a.reaction_counts.like += 1 : a && (a.reaction_counts = { like: 1 }), e.setQueryData(t, () => ({
4591
- ...a
4592
- })), { previousActivity: a };
4593
- }, onError: (a, i, c) => {
4594
- e.setQueryData(t, c.previousActivity);
4595
- }, onSuccess: (a) => {
4596
- const i = e.getQueryData(t);
4597
- return i != null && i.latest_reactions.like ? i.latest_reactions.like.push(a) : i && (i.latest_reactions = { like: [a] }), e.setQueryData(t, () => ({
4598
- ...i
4599
- })), { previousActivity: i };
4579
+ const o = e.getQueryData(t);
4580
+ return (l = o == null ? void 0 : o.reaction_counts) != null && l.like ? o.reaction_counts.like += 1 : o && (o.reaction_counts = { like: 1 }), e.setQueryData(t, () => ({
4581
+ ...o
4582
+ })), { previousActivity: o };
4583
+ }, onError: (o, l, m) => {
4584
+ e.setQueryData(t, m.previousActivity);
4585
+ }, onSuccess: (o) => {
4586
+ const l = e.getQueryData(t);
4587
+ return l != null && l.latest_reactions.like ? l.latest_reactions.like.push(o) : l && (l.latest_reactions = { like: [o] }), e.setQueryData(t, () => ({
4588
+ ...l
4589
+ })), { previousActivity: l };
4600
4590
  }, onSettled: () => {
4601
4591
  e.invalidateQueries({ queryKey: t });
4602
4592
  } }), Us = ({
@@ -4604,71 +4594,72 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4604
4594
  queryKey: t,
4605
4595
  user: n,
4606
4596
  activity: s,
4607
- mutationFn: o
4608
- }) => ({ mutationFn: o, onMutate: async () => {
4609
- var u;
4597
+ mutationFn: a
4598
+ }) => ({ mutationFn: a, onMutate: async () => {
4599
+ var c;
4610
4600
  await e.cancelQueries({ queryKey: t });
4611
- const c = e.getQueryData(t);
4612
- return (u = c == null ? void 0 : c.reaction_counts) != null && u.like && c.reaction_counts.like > 0 && (c.reaction_counts.like -= 1), e.setQueryData(t, () => ({
4613
- ...c
4614
- })), { previousActivity: c };
4615
- }, onError: (c, u, f) => {
4601
+ const m = e.getQueryData(t);
4602
+ return (c = m == null ? void 0 : m.reaction_counts) != null && c.like && m.reaction_counts.like > 0 && (m.reaction_counts.like -= 1), e.setQueryData(t, () => ({
4603
+ ...m
4604
+ })), { previousActivity: m };
4605
+ }, onError: (m, c, f) => {
4616
4606
  e.setQueryData(t, f.previousActivity);
4617
4607
  }, onSuccess: () => {
4618
4608
  var f, p, h;
4619
4609
  if (!s)
4620
4610
  return;
4621
- const c = (h = (p = (f = s.latest_reactions) == null ? void 0 : f.like) == null ? void 0 : p.find(
4611
+ const m = (h = (p = (f = s.latest_reactions) == null ? void 0 : f.like) == null ? void 0 : p.find(
4622
4612
  (_) => _.user_id === (n == null ? void 0 : n.id)
4623
- )) == null ? void 0 : h.id, u = e.getQueryData(t);
4624
- if (u != null && u.latest_reactions.like)
4625
- return u.latest_reactions.like = u.latest_reactions.like.filter(
4626
- (_) => _.id !== c
4613
+ )) == null ? void 0 : h.id, c = e.getQueryData(t);
4614
+ if (c != null && c.latest_reactions.like)
4615
+ return c.latest_reactions.like = c.latest_reactions.like.filter(
4616
+ (_) => _.id !== m
4627
4617
  ), e.setQueryData(t, () => ({
4628
- ...u
4629
- })), { previousActivity: u };
4618
+ ...c
4619
+ })), { previousActivity: c };
4630
4620
  }, onSettled: () => {
4631
4621
  e.invalidateQueries({ queryKey: t });
4632
- } }), Ao = ({
4622
+ } });
4623
+ const No = ({
4633
4624
  basePath: e,
4634
4625
  parentId: t,
4635
4626
  activityId: n,
4636
4627
  isMember: s,
4637
4628
  functions: {
4638
- get: o,
4639
- editActivity: l,
4640
- likeActivity: m,
4641
- unlikeActivity: a,
4642
- createReply: i,
4643
- editReply: c,
4644
- likeReply: u,
4629
+ get: a,
4630
+ editActivity: i,
4631
+ likeActivity: d,
4632
+ unlikeActivity: o,
4633
+ createReply: l,
4634
+ editReply: m,
4635
+ likeReply: c,
4645
4636
  unlikeReply: f,
4646
4637
  join: p,
4647
4638
  leave: h
4648
4639
  }
4649
4640
  }) => {
4650
4641
  var B, U, Y, K, ie, le, ce, ue, oe, R, te;
4651
- const _ = ye(je), k = Nt(), {
4642
+ const _ = ye(je), k = At(), {
4652
4643
  data: g,
4653
4644
  error: E,
4654
- isLoading: v,
4645
+ isLoading: b,
4655
4646
  isFetching: S
4656
4647
  } = cn({
4657
4648
  queryKey: [e, t, n],
4658
- queryFn: o
4649
+ queryFn: a
4659
4650
  }), T = Hs({
4660
4651
  queryClient: k,
4661
4652
  queryKey: [e, t, n],
4662
- mutationFn: async (X) => await l(X)
4653
+ mutationFn: async (X) => await i(X)
4663
4654
  }), {
4664
4655
  mutate: M
4665
4656
  } = fe(T), Q = Qs({
4666
4657
  queryClient: k,
4667
4658
  queryKey: [e, t, n],
4668
- mutationFn: m
4659
+ mutationFn: d
4669
4660
  }), {
4670
4661
  mutate: V
4671
- } = fe(Q), b = Us({
4662
+ } = fe(Q), v = Us({
4672
4663
  queryClient: k,
4673
4664
  queryKey: [e, t, n],
4674
4665
  user: _,
@@ -4677,26 +4668,27 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4677
4668
  const X = (pe = (me = (ne = g == null ? void 0 : g.latest_reactions) == null ? void 0 : ne.like) == null ? void 0 : me.find(
4678
4669
  (ge) => ge.user_id === (_ == null ? void 0 : _.id)
4679
4670
  )) == null ? void 0 : pe.id;
4680
- await a({ activityId: n, reactionId: X });
4671
+ await o({ activityId: n, reactionId: X });
4681
4672
  },
4682
4673
  activity: g
4683
4674
  }), {
4684
- mutate: A
4685
- } = fe(b), q = Ee(
4675
+ mutate: N
4676
+ } = fe(v), q = Ee(
4686
4677
  ({ activityId: X }) => V({ activityId: X }),
4687
4678
  [V]
4688
4679
  ), w = Ee(
4689
- async ({ activityId: X }) => A({ activityId: X }),
4690
- [A]
4680
+ async ({ activityId: X }) => N({ activityId: X }),
4681
+ [N]
4691
4682
  );
4692
4683
  if (E)
4693
4684
  return /* @__PURE__ */ r.jsx(st, { variant: "error", text: E.message });
4694
- if (v || S)
4695
- return /* @__PURE__ */ r.jsx(ve, { style: { height: "400px" } });
4685
+ if (b || S)
4686
+ return /* @__PURE__ */ r.jsx(be, { style: { height: "400px" } });
4696
4687
  const G = ((B = g == null ? void 0 : g.actor) == null ? void 0 : B.id) === (_ == null ? void 0 : _.id), L = Rt(s, G);
4697
4688
  return /* @__PURE__ */ r.jsx(
4698
4689
  Ot,
4699
4690
  {
4691
+ className: "activity-section",
4700
4692
  content: {
4701
4693
  type: "post",
4702
4694
  body: g == null ? void 0 : g.content,
@@ -4752,10 +4744,10 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4752
4744
  repliesList: (te = g == null ? void 0 : g.latest_reactions) == null ? void 0 : te.reply,
4753
4745
  isMember: s,
4754
4746
  functions: {
4755
- createReply: i,
4756
- like: u,
4747
+ createReply: l,
4748
+ like: c,
4757
4749
  unlike: f,
4758
- editReply: c,
4750
+ editReply: m,
4759
4751
  join: p,
4760
4752
  leave: h
4761
4753
  }
@@ -4765,38 +4757,38 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4765
4757
  },
4766
4758
  n
4767
4759
  );
4768
- }, No = ({ id: e, data: { jobTitle: t, name: n, organization: s, thumbnail: o } }) => ({
4760
+ }, Ao = ({ id: e, data: { jobTitle: t, name: n, organization: s, thumbnail: a } }) => ({
4769
4761
  id: e,
4770
4762
  name: n,
4771
4763
  jobTitle: t,
4772
4764
  organization: s,
4773
- image: { thumbnail: o }
4765
+ image: { thumbnail: a }
4774
4766
  });
4775
4767
  export {
4776
4768
  $t as ASSETS_BUCKET,
4777
4769
  Co as ActivitiesFeed,
4778
- Ao as ActivitySection,
4779
- An as AddPost,
4770
+ No as ActivitySection,
4771
+ Nn as AddPost,
4780
4772
  lo as BannerSection,
4781
4773
  go as Breadcrumbs,
4782
4774
  W as Button,
4783
4775
  nt as ButtonWrapper,
4784
4776
  as as CacheProvider,
4785
4777
  xn as CollapsibleSection,
4786
- bo as Columns,
4778
+ vo as Columns,
4787
4779
  ho as CommunityDetails,
4788
4780
  os as Contributors,
4789
- Nn as ConversationContext,
4781
+ An as ConversationContext,
4790
4782
  gs as CookieBanner,
4791
4783
  So as DiscussionConversation,
4792
4784
  Cn as DiscussionForm,
4793
4785
  $s as DiscussionLikes,
4794
4786
  Ot as DiscussionPost,
4795
4787
  Mo as DiscussionThread,
4796
- Ae as Divider,
4788
+ Ne as Divider,
4797
4789
  ao as DownloadSection,
4798
4790
  Oe as EMAILS,
4799
- vo as EmailHelperTextBox,
4791
+ bo as EmailHelperTextBox,
4800
4792
  st as EmptyStateBox,
4801
4793
  _o as Filters,
4802
4794
  cs as FlagsProvider,
@@ -4809,14 +4801,14 @@ export {
4809
4801
  mo as HideShowTextBox,
4810
4802
  ke as HighlightedTextBox,
4811
4803
  us as IntlProvider,
4812
- vs as InviteForm,
4804
+ bs as InviteForm,
4813
4805
  $o as InviteModal,
4814
4806
  yn as JoinButton,
4815
4807
  xo as LanguageSwitcher,
4816
4808
  rt as Link,
4817
4809
  fs as LoadMore,
4818
4810
  fo as LoadingBlock,
4819
- ve as LoadingPlaceholder,
4811
+ be as LoadingPlaceholder,
4820
4812
  ns as LoadingState,
4821
4813
  jn as Logo,
4822
4814
  io as LogoSection,
@@ -4837,7 +4829,7 @@ export {
4837
4829
  Is as RepliesFeed,
4838
4830
  To as ResponsesHeading,
4839
4831
  Br as ResponsiveImage,
4840
- bs as SearchForm,
4832
+ vs as SearchForm,
4841
4833
  Zr as Span,
4842
4834
  Mt as StatusBanner,
4843
4835
  jo as Tags,
@@ -4848,7 +4840,7 @@ export {
4848
4840
  Ms as addAriaProps,
4849
4841
  kn as getMember,
4850
4842
  Xe as headerData,
4851
- No as mapGetStreamData,
4843
+ Ao as mapGetStreamData,
4852
4844
  jr as useCurrentPath,
4853
4845
  Ce as useEffectAfterMount,
4854
4846
  tt as useScreenWidth,