@apolitical/component-library 1.13.3 → 1.13.4-4288-referrals.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.mjs CHANGED
@@ -29,15 +29,15 @@ var dn = { exports: {} };
29
29
  for (var s = [], a = 0; a < arguments.length; a++) {
30
30
  var i = arguments[a];
31
31
  if (i) {
32
- var d = typeof i;
33
- if (d === "string" || d === "number")
32
+ var m = typeof i;
33
+ if (m === "string" || m === "number")
34
34
  s.push(i);
35
35
  else if (Array.isArray(i)) {
36
36
  if (i.length) {
37
37
  var o = n.apply(null, i);
38
38
  o && s.push(o);
39
39
  }
40
- } else if (d === "object") {
40
+ } else if (m === "object") {
41
41
  if (i.toString !== Object.prototype.toString && !i.toString.toString().includes("[native code]")) {
42
42
  s.push(i.toString());
43
43
  continue;
@@ -70,9 +70,9 @@ function kr() {
70
70
  return Pe;
71
71
  qt = 1;
72
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) {
73
+ function m(o, l, u) {
74
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);
75
+ u !== void 0 && (p = "" + u), l.key !== void 0 && (p = "" + l.key), l.ref !== void 0 && (h = l.ref);
76
76
  for (c in l)
77
77
  s.call(l, c) && !i.hasOwnProperty(c) && (f[c] = l[c]);
78
78
  if (o && o.defaultProps)
@@ -80,7 +80,7 @@ function kr() {
80
80
  f[c] === void 0 && (f[c] = l[c]);
81
81
  return { $$typeof: t, type: o, key: p, ref: h, props: f, _owner: a.current };
82
82
  }
83
- return Pe.Fragment = n, Pe.jsx = d, Pe.jsxs = d, Pe;
83
+ return Pe.Fragment = n, Pe.jsx = m, Pe.jsxs = m, Pe;
84
84
  }
85
85
  var Fe = {};
86
86
  /**
@@ -95,58 +95,58 @@ 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 = 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")
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"), m = Symbol.for("react.provider"), o = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), u = 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(d) {
100
+ if (d === null || typeof d != "object")
101
101
  return null;
102
- var x = _ && u[_] || u[k];
102
+ var x = _ && d[_] || d[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 b(u) {
106
+ function b(d) {
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", u, y);
110
+ S("error", d, y);
111
111
  }
112
112
  }
113
- function S(u, x, y) {
113
+ function S(d, 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[u], console, H);
120
+ H.unshift("Warning: " + x), Function.prototype.apply.call(console[d], console, H);
121
121
  }
122
122
  }
123
123
  var T = !1, M = !1, Q = !1, V = !1, v = !1, N;
124
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
125
+ function q(d) {
126
+ return !!(typeof d == "string" || typeof d == "function" || d === s || d === i || v || d === a || d === u || d === c || V || d === h || T || M || Q || typeof d == "object" && d !== null && (d.$$typeof === p || d.$$typeof === f || d.$$typeof === m || d.$$typeof === o || d.$$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
- u.$$typeof === N || u.getModuleId !== void 0));
130
+ d.$$typeof === N || d.getModuleId !== void 0));
131
131
  }
132
- function w(u, x, y) {
133
- var $ = u.displayName;
132
+ function w(d, x, y) {
133
+ var $ = d.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(u) {
140
- return u.displayName || "Context";
139
+ function G(d) {
140
+ return d.displayName || "Context";
141
141
  }
142
- function L(u) {
143
- if (u == null)
142
+ function L(d) {
143
+ if (d == null)
144
144
  return null;
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) {
145
+ if (typeof d.tag == "number" && b("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) {
150
150
  case s:
151
151
  return "Fragment";
152
152
  case n:
@@ -155,26 +155,26 @@ function yr() {
155
155
  return "Profiler";
156
156
  case a:
157
157
  return "StrictMode";
158
- case m:
158
+ case u:
159
159
  return "Suspense";
160
160
  case c:
161
161
  return "SuspenseList";
162
162
  }
163
- if (typeof u == "object")
164
- switch (u.$$typeof) {
163
+ if (typeof d == "object")
164
+ switch (d.$$typeof) {
165
165
  case o:
166
- var x = u;
166
+ var x = d;
167
167
  return G(x) + ".Consumer";
168
- case d:
169
- var y = u;
168
+ case m:
169
+ var y = d;
170
170
  return G(y._context) + ".Provider";
171
171
  case l:
172
- return w(u, u.render, "ForwardRef");
172
+ return w(d, d.render, "ForwardRef");
173
173
  case f:
174
- var $ = u.displayName || null;
175
- return $ !== null ? $ : L(u.type) || "Memo";
174
+ var $ = d.displayName || null;
175
+ return $ !== null ? $ : L(d.type) || "Memo";
176
176
  case p: {
177
- var O = u, H = O._payload, D = O._init;
177
+ var O = d, 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 u = {
195
+ var d = {
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: u,
203
- log: u,
204
- warn: u,
205
- error: u,
206
- group: u,
207
- groupCollapsed: u,
208
- groupEnd: u
202
+ info: d,
203
+ log: d,
204
+ warn: d,
205
+ error: d,
206
+ group: d,
207
+ groupCollapsed: d,
208
+ groupEnd: d
209
209
  });
210
210
  }
211
211
  U++;
@@ -214,31 +214,31 @@ function yr() {
214
214
  function X() {
215
215
  {
216
216
  if (U--, U === 0) {
217
- var u = {
217
+ var d = {
218
218
  configurable: !0,
219
219
  enumerable: !0,
220
220
  writable: !0
221
221
  };
222
222
  Object.defineProperties(console, {
223
- log: B({}, u, {
223
+ log: B({}, d, {
224
224
  value: Y
225
225
  }),
226
- info: B({}, u, {
226
+ info: B({}, d, {
227
227
  value: K
228
228
  }),
229
- warn: B({}, u, {
229
+ warn: B({}, d, {
230
230
  value: ie
231
231
  }),
232
- error: B({}, u, {
232
+ error: B({}, d, {
233
233
  value: le
234
234
  }),
235
- group: B({}, u, {
235
+ group: B({}, d, {
236
236
  value: ce
237
237
  }),
238
- groupCollapsed: B({}, u, {
238
+ groupCollapsed: B({}, d, {
239
239
  value: ue
240
240
  }),
241
- groupEnd: B({}, u, {
241
+ groupEnd: B({}, d, {
242
242
  value: oe
243
243
  })
244
244
  });
@@ -247,7 +247,7 @@ function yr() {
247
247
  }
248
248
  }
249
249
  var ne = E.ReactCurrentDispatcher, me;
250
- function pe(u, x, y) {
250
+ function pe(d, 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 + u;
260
+ ` + me + d;
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(u, x) {
269
- if (!u || ge)
268
+ function Lt(d, x) {
269
+ if (!d || ge)
270
270
  return "";
271
271
  {
272
- var y = Se.get(u);
272
+ var y = Se.get(d);
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(u, [], D);
297
+ Reflect.construct(d, [], D);
298
298
  } else {
299
299
  try {
300
300
  D.call();
301
301
  } catch (_e) {
302
302
  $ = _e;
303
303
  }
304
- u.call(D.prototype);
304
+ d.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
- u();
312
+ d();
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 u.displayName && de.includes("<anonymous>") && (de = de.replace("<anonymous>", u.displayName)), typeof u == "function" && Se.set(u, de), de;
327
+ return d.displayName && de.includes("<anonymous>") && (de = de.replace("<anonymous>", d.displayName)), typeof d == "function" && Se.set(d, 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 = u ? u.displayName || u.name : "", Zt = Te ? pe(Te) : "";
337
- return typeof u == "function" && Se.set(u, Zt), Zt;
336
+ var Te = d ? d.displayName || d.name : "", Zt = Te ? pe(Te) : "";
337
+ return typeof d == "function" && Se.set(d, Zt), Zt;
338
338
  }
339
- function Fn(u, x, y) {
340
- return Lt(u, !1);
339
+ function Fn(d, x, y) {
340
+ return Lt(d, !1);
341
341
  }
342
- function Rn(u) {
343
- var x = u.prototype;
342
+ function Rn(d) {
343
+ var x = d.prototype;
344
344
  return !!(x && x.isReactComponent);
345
345
  }
346
- function Be(u, x, y) {
347
- if (u == null)
346
+ function Be(d, x, y) {
347
+ if (d == null)
348
348
  return "";
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:
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 u:
355
355
  return pe("Suspense");
356
356
  case c:
357
357
  return pe("SuspenseList");
358
358
  }
359
- if (typeof u == "object")
360
- switch (u.$$typeof) {
359
+ if (typeof d == "object")
360
+ switch (d.$$typeof) {
361
361
  case l:
362
- return Fn(u.render);
362
+ return Fn(d.render);
363
363
  case f:
364
- return Be(u.type, x, y);
364
+ return Be(d.type, x, y);
365
365
  case p: {
366
- var $ = u, O = $._payload, H = $._init;
366
+ var $ = d, O = $._payload, H = $._init;
367
367
  try {
368
368
  return Be(H(O), x, y);
369
369
  } catch {
@@ -373,25 +373,25 @@ function yr() {
373
373
  return "";
374
374
  }
375
375
  var Ie = Object.prototype.hasOwnProperty, Bt = {}, It = E.ReactDebugCurrentFrame;
376
- function He(u) {
377
- if (u) {
378
- var x = u._owner, y = Be(u.type, u._source, x ? x.type : null);
376
+ function He(d) {
377
+ if (d) {
378
+ var x = d._owner, y = Be(d.type, d._source, x ? x.type : null);
379
379
  It.setExtraStackFrame(y);
380
380
  } else
381
381
  It.setExtraStackFrame(null);
382
382
  }
383
- function On(u, x, y, $, O) {
383
+ function On(d, x, y, $, O) {
384
384
  {
385
385
  var H = Function.call.bind(Ie);
386
- for (var D in u)
387
- if (H(u, D)) {
386
+ for (var D in d)
387
+ if (H(d, D)) {
388
388
  var C = void 0;
389
389
  try {
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`.");
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`.");
392
392
  throw se.name = "Invariant Violation", se;
393
393
  }
394
- C = u[D](x, D, $, y, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
394
+ C = d[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
  }
@@ -400,28 +400,28 @@ function yr() {
400
400
  }
401
401
  }
402
402
  var Ln = Array.isArray;
403
- function ot(u) {
404
- return Ln(u);
403
+ function ot(d) {
404
+ return Ln(d);
405
405
  }
406
- function Bn(u) {
406
+ function Bn(d) {
407
407
  {
408
- var x = typeof Symbol == "function" && Symbol.toStringTag, y = x && u[Symbol.toStringTag] || u.constructor.name || "Object";
408
+ var x = typeof Symbol == "function" && Symbol.toStringTag, y = x && d[Symbol.toStringTag] || d.constructor.name || "Object";
409
409
  return y;
410
410
  }
411
411
  }
412
- function In(u) {
412
+ function In(d) {
413
413
  try {
414
- return Ht(u), !1;
414
+ return Ht(d), !1;
415
415
  } catch {
416
416
  return !0;
417
417
  }
418
418
  }
419
- function Ht(u) {
420
- return "" + u;
419
+ function Ht(d) {
420
+ return "" + d;
421
421
  }
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);
422
+ function Qt(d) {
423
+ if (In(d))
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(d)), Ht(d);
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(u) {
434
- if (Ie.call(u, "ref")) {
435
- var x = Object.getOwnPropertyDescriptor(u, "ref").get;
433
+ function Qn(d) {
434
+ if (Ie.call(d, "ref")) {
435
+ var x = Object.getOwnPropertyDescriptor(d, "ref").get;
436
436
  if (x && x.isReactWarning)
437
437
  return !1;
438
438
  }
439
- return u.ref !== void 0;
439
+ return d.ref !== void 0;
440
440
  }
441
- function Un(u) {
442
- if (Ie.call(u, "key")) {
443
- var x = Object.getOwnPropertyDescriptor(u, "key").get;
441
+ function Un(d) {
442
+ if (Ie.call(d, "key")) {
443
+ var x = Object.getOwnPropertyDescriptor(d, "key").get;
444
444
  if (x && x.isReactWarning)
445
445
  return !1;
446
446
  }
447
- return u.key !== void 0;
447
+ return d.key !== void 0;
448
448
  }
449
- function Wn(u, x) {
450
- if (typeof u.ref == "string" && De.current && x && De.current.stateNode !== x) {
449
+ function Wn(d, x) {
450
+ if (typeof d.ref == "string" && De.current && x && De.current.stateNode !== x) {
451
451
  var y = L(De.current.type);
452
- at[y] || (b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', L(De.current.type), u.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), d.ref), at[y] = !0);
453
453
  }
454
454
  }
455
- function zn(u, x) {
455
+ function zn(d, x) {
456
456
  {
457
457
  var y = function() {
458
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(u, "key", {
460
+ y.isReactWarning = !0, Object.defineProperty(d, "key", {
461
461
  get: y,
462
462
  configurable: !0
463
463
  });
464
464
  }
465
465
  }
466
- function Vn(u, x) {
466
+ function Vn(d, x) {
467
467
  {
468
468
  var y = function() {
469
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(u, "ref", {
471
+ y.isReactWarning = !0, Object.defineProperty(d, "ref", {
472
472
  get: y,
473
473
  configurable: !0
474
474
  });
475
475
  }
476
476
  }
477
- var Yn = function(u, x, y, $, O, H, D) {
477
+ var Yn = function(d, 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: u,
482
+ type: d,
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(u, x, y, $, O) {
506
+ function Gn(d, 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 (u && u.defaultProps) {
513
- var J = u.defaultProps;
512
+ if (d && d.defaultProps) {
513
+ var J = d.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 u == "function" ? u.displayName || u.name || "Unknown" : u;
518
+ var Z = typeof d == "function" ? d.displayName || d.name || "Unknown" : d;
519
519
  C && zn(D, Z), se && Vn(D, Z);
520
520
  }
521
- return Yn(u, C, se, O, $, De.current, D);
521
+ return Yn(d, C, se, O, $, De.current, D);
522
522
  }
523
523
  }
524
524
  var it = E.ReactCurrentOwner, zt = E.ReactDebugCurrentFrame;
525
- function $e(u) {
526
- if (u) {
527
- var x = u._owner, y = Be(u.type, u._source, x ? x.type : null);
525
+ function $e(d) {
526
+ if (d) {
527
+ var x = d._owner, y = Be(d.type, d._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(u) {
535
- return typeof u == "object" && u !== null && u.$$typeof === t;
534
+ function ct(d) {
535
+ return typeof d == "object" && d !== null && d.$$typeof === t;
536
536
  }
537
537
  function Vt() {
538
538
  {
539
539
  if (it.current) {
540
- var u = L(it.current.type);
541
- if (u)
540
+ var d = L(it.current.type);
541
+ if (d)
542
542
  return `
543
543
 
544
- Check the render method of \`` + u + "`.";
544
+ Check the render method of \`` + d + "`.";
545
545
  }
546
546
  return "";
547
547
  }
548
548
  }
549
- function Jn(u) {
549
+ function Jn(d) {
550
550
  {
551
- if (u !== void 0) {
552
- var x = u.fileName.replace(/^.*[\\\/]/, ""), y = u.lineNumber;
551
+ if (d !== void 0) {
552
+ var x = d.fileName.replace(/^.*[\\\/]/, ""), y = d.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(u) {
561
+ function Xn(d) {
562
562
  {
563
563
  var x = Vt();
564
564
  if (!x) {
565
- var y = typeof u == "string" ? u : u.displayName || u.name;
565
+ var y = typeof d == "string" ? d : d.displayName || d.name;
566
566
  y && (x = `
567
567
 
568
568
  Check the top-level render call using <` + y + ">.");
@@ -570,41 +570,41 @@ Check the top-level render call using <` + y + ">.");
570
570
  return x;
571
571
  }
572
572
  }
573
- function Gt(u, x) {
573
+ function Gt(d, x) {
574
574
  {
575
- if (!u._store || u._store.validated || u.key != null)
575
+ if (!d._store || d._store.validated || d.key != null)
576
576
  return;
577
- u._store.validated = !0;
577
+ d._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
- 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);
583
+ d && d._owner && d._owner !== it.current && ($ = " It was passed a child from " + L(d._owner.type) + "."), $e(d), 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(u, x) {
586
+ function Jt(d, x) {
587
587
  {
588
- if (typeof u != "object")
588
+ if (typeof d != "object")
589
589
  return;
590
- if (ot(u))
591
- for (var y = 0; y < u.length; y++) {
592
- var $ = u[y];
590
+ if (ot(d))
591
+ for (var y = 0; y < d.length; y++) {
592
+ var $ = d[y];
593
593
  ct($) && Gt($, x);
594
594
  }
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; )
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; )
601
601
  ct(D.value) && Gt(D.value, x);
602
602
  }
603
603
  }
604
604
  }
605
- function Zn(u) {
605
+ function Zn(d) {
606
606
  {
607
- var x = u.type;
607
+ var x = d.type;
608
608
  if (x == null || typeof x == "string")
609
609
  return;
610
610
  var y;
@@ -618,7 +618,7 @@ Check the top-level render call using <` + y + ">.");
618
618
  return;
619
619
  if (y) {
620
620
  var $ = L(x);
621
- On(y, u.props, "prop", $, u);
621
+ On(y, d.props, "prop", $, d);
622
622
  } else if (x.PropTypes !== void 0 && !lt) {
623
623
  lt = !0;
624
624
  var O = L(x);
@@ -627,30 +627,30 @@ Check the top-level render call using <` + y + ">.");
627
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(u) {
630
+ function qn(d) {
631
631
  {
632
- for (var x = Object.keys(u.props), y = 0; y < x.length; y++) {
632
+ for (var x = Object.keys(d.props), y = 0; y < x.length; y++) {
633
633
  var $ = x[y];
634
634
  if ($ !== "children" && $ !== "key") {
635
- $e(u), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", $), $e(null);
635
+ $e(d), 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
- u.ref !== null && ($e(u), b("Invalid attribute `ref` supplied to `React.Fragment`."), $e(null));
639
+ d.ref !== null && ($e(d), b("Invalid attribute `ref` supplied to `React.Fragment`."), $e(null));
640
640
  }
641
641
  }
642
- function Xt(u, x, y, $, O, H) {
642
+ function Xt(d, x, y, $, O, H) {
643
643
  {
644
- var D = q(u);
644
+ var D = q(d);
645
645
  if (!D) {
646
646
  var C = "";
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.");
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.");
648
648
  var se = Jn(O);
649
649
  se ? C += se : C += Vt();
650
650
  var J;
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);
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, 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(u, x, y, O, H);
653
+ var Z = Gn(d, 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], u);
662
+ Jt(de[Te], d);
663
663
  Object.freeze && Object.freeze(de);
664
664
  } else
665
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, u);
667
+ Jt(de, d);
668
668
  }
669
- return u === s ? qn(Z) : Zn(Z), Z;
669
+ return d === s ? qn(Z) : Zn(Z), Z;
670
670
  }
671
671
  }
672
- function Kn(u, x, y) {
673
- return Xt(u, x, y, !0);
672
+ function Kn(d, x, y) {
673
+ return Xt(d, x, y, !0);
674
674
  }
675
- function er(u, x, y) {
676
- return Xt(u, x, y, !1);
675
+ function er(d, x, y) {
676
+ return Xt(d, x, y, !1);
677
677
  }
678
678
  var tr = er, nr = Kn;
679
679
  Fe.Fragment = s, Fe.jsx = tr, Fe.jsxs = nr;
@@ -696,7 +696,7 @@ const jr = () => {
696
696
  }, t);
697
697
  };
698
698
  function Er(e, t, n) {
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);
699
+ var s = this, a = ee(null), i = ee(0), m = ee(null), o = ee([]), l = ee(), u = ee(), c = ee(e), f = ee(!0);
700
700
  z(function() {
701
701
  c.current = e;
702
702
  }, [e]);
@@ -713,16 +713,16 @@ function Er(e, t, n) {
713
713
  var E = qe(function() {
714
714
  var b = function(v) {
715
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);
716
+ return o.current = l.current = null, i.current = v, u.current = c.current.apply(q, N);
717
717
  }, S = function(v, N) {
718
- p && cancelAnimationFrame(d.current), d.current = p ? requestAnimationFrame(v) : setTimeout(v, N);
718
+ p && cancelAnimationFrame(m.current), m.current = p ? requestAnimationFrame(v) : setTimeout(v, N);
719
719
  }, T = function(v) {
720
720
  if (!f.current)
721
721
  return !1;
722
722
  var N = v - a.current;
723
723
  return !a.current || N >= t || N < 0 || k && v - i.current >= g;
724
724
  }, M = function(v) {
725
- return d.current = null, _ && o.current ? b(v) : (o.current = l.current = null, m.current);
725
+ return m.current = null, _ && o.current ? b(v) : (o.current = l.current = null, u.current);
726
726
  }, Q = function v() {
727
727
  var N = Date.now();
728
728
  if (T(N))
@@ -734,19 +734,19 @@ function Er(e, t, n) {
734
734
  }, V = function() {
735
735
  var v = Date.now(), N = T(v);
736
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;
737
+ if (!m.current && f.current)
738
+ return i.current = a.current, S(Q, t), h ? b(a.current) : u.current;
739
739
  if (k)
740
740
  return S(Q, t), b(a.current);
741
741
  }
742
- return d.current || S(Q, t), m.current;
742
+ return m.current || S(Q, t), u.current;
743
743
  };
744
744
  return V.cancel = function() {
745
- d.current && (p ? cancelAnimationFrame(d.current) : clearTimeout(d.current)), i.current = 0, o.current = a.current = l.current = d.current = null;
745
+ m.current && (p ? cancelAnimationFrame(m.current) : clearTimeout(m.current)), i.current = 0, o.current = a.current = l.current = m.current = null;
746
746
  }, V.isPending = function() {
747
- return !!d.current;
747
+ return !!m.current;
748
748
  }, V.flush = function() {
749
- return d.current ? M(Date.now()) : m.current;
749
+ return m.current ? M(Date.now()) : u.current;
750
750
  }, V;
751
751
  }, [h, k, t, g, _, p]);
752
752
  return E;
@@ -761,12 +761,12 @@ const tt = (e = !0, t = !1) => {
761
761
  return;
762
762
  const [n, s] = A.useState(0) || [!1, () => {
763
763
  }];
764
- z(() => (i(), window.addEventListener("resize", d), () => {
765
- clearTimeout(ut), d.flush(), window.removeEventListener("resize", d);
764
+ z(() => (i(), window.addEventListener("resize", m), () => {
765
+ clearTimeout(ut), m.flush(), window.removeEventListener("resize", m);
766
766
  }), []);
767
767
  const a = () => window.innerWidth, i = () => {
768
768
  s(a());
769
- }, d = fn(
769
+ }, m = fn(
770
770
  () => {
771
771
  a() !== n && (t && (clearTimeout(ut), document.body.classList.add("is-resizing"), ut = setTimeout(() => {
772
772
  document.body.classList.remove("is-resizing");
@@ -788,19 +788,19 @@ const tt = (e = !0, t = !1) => {
788
788
  if (!window)
789
789
  return;
790
790
  const [a, i] = A.useState({ current: 0, past: 0 }) || [!1, () => {
791
- }], [d, o] = A.useState({ scrollDown: !1, scrollUp: !1 }) || [!1, () => {
791
+ }], [m, o] = A.useState({ scrollDown: !1, scrollUp: !1 }) || [!1, () => {
792
792
  }];
793
- z(() => (l(), window.addEventListener("scroll", m), () => {
794
- m.flush(), window.removeEventListener("scroll", m);
793
+ z(() => (l(), window.addEventListener("scroll", u), () => {
794
+ u.flush(), window.removeEventListener("scroll", u);
795
795
  }), []);
796
796
  const l = () => {
797
797
  const c = window.scrollY, f = a.current, p = c - f, h = p > 0 ? "down" : "up";
798
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 }));
799
+ c >= e + t.down && !m.scrollDown && (!m.scrollUp || p > t.up) && (n(), o({ scrollUp: !1, scrollDown: !0 }));
800
800
  return;
801
801
  }
802
- Math.abs(p) >= t.up && !d.scrollUp && (s(), o({ scrollUp: !0, scrollDown: !1 }));
803
- }, m = fn(() => {
802
+ Math.abs(p) >= t.up && !m.scrollUp && (s(), o({ scrollUp: !0, scrollDown: !1 }));
803
+ }, u = fn(() => {
804
804
  l();
805
805
  }, 250);
806
806
  return a;
@@ -849,9 +849,9 @@ const tt = (e = !0, t = !1) => {
849
849
  } catch {
850
850
  return "";
851
851
  }
852
- const d = i / 36e5, o = Math.floor(i / 864e5);
852
+ const m = i / 36e5, o = Math.floor(i / 864e5);
853
853
  if (o < 1)
854
- return d < 1 ? { path: "now" } : { path: "hours", number: Math.floor(d) };
854
+ return m < 1 ? { path: "now" } : { path: "hours", number: Math.floor(m) };
855
855
  if (o < 7)
856
856
  return { path: "days", number: o };
857
857
  const l = Math.floor(o / 7);
@@ -1190,10 +1190,10 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1190
1190
  icon: s = !1,
1191
1191
  href: a = !1,
1192
1192
  element: i = "button",
1193
- onClick: d = !1,
1193
+ onClick: m = !1,
1194
1194
  className: o = "",
1195
1195
  disabled: l = !1,
1196
- screenreaderText: m = !1,
1196
+ screenreaderText: u = !1,
1197
1197
  children: c = !1,
1198
1198
  ...f
1199
1199
  }) => {
@@ -1212,17 +1212,17 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1212
1212
  button: a
1213
1213
  }),
1214
1214
  onClick: (g) => {
1215
- (!a || a[0] === "#") && d && (g.preventDefault(), g.stopPropagation()), d && d(g);
1215
+ (!a || a[0] === "#") && m && (g.preventDefault(), g.stopPropagation()), m && m(g);
1216
1216
  },
1217
1217
  disabled: typeof l == "object" && "isClickable" in l ? !l.isClickable : l
1218
1218
  };
1219
1219
  return a && (i = "a", k.href = a), A.createElement(
1220
1220
  i,
1221
1221
  k,
1222
- c || (m ? /* @__PURE__ */ r.jsx(re, { showOnFocus: !1, children: m }) : null)
1222
+ c || (u ? /* @__PURE__ */ r.jsx(re, { showOnFocus: !1, children: u }) : null)
1223
1223
  );
1224
1224
  }, nt = ({ buttons: e, className: t = "", ...n }) => {
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));
1225
+ const s = e.length > 1 ? "ul" : "p", a = e.map((i, m) => s === "p" ? /* @__PURE__ */ r.jsx(W, { ...i }, m) : /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(W, { ...i }) }, m));
1226
1226
  return A.createElement(s, { className: j("button-wrapper", t), ...n, children: a });
1227
1227
  };
1228
1228
  const Ne = ({ className: e = "", maxWidth: t = !1 }) => {
@@ -1235,12 +1235,12 @@ const Ne = ({ className: e = "", maxWidth: t = !1 }) => {
1235
1235
  className: s = "",
1236
1236
  onClick: a,
1237
1237
  gtmContext: i,
1238
- gtmType: d,
1238
+ gtmType: m,
1239
1239
  ...o
1240
1240
  }) => {
1241
1241
  if (e) {
1242
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(
1243
+ return a && (l.onClick = a), i && (l["data-gtm-event-context"] = i), m && (l["data-gtm-event-type"] = m), /* @__PURE__ */ r.jsx(
1244
1244
  "a",
1245
1245
  {
1246
1246
  href: e,
@@ -1375,13 +1375,13 @@ const Br = ({ image: e, className: t, testId: n }) => {
1375
1375
  description: s,
1376
1376
  height: a,
1377
1377
  type: i,
1378
- query: d,
1378
+ query: m,
1379
1379
  url: o,
1380
1380
  width: l,
1381
- loading: m,
1381
+ loading: u,
1382
1382
  decoding: c,
1383
1383
  fetchPriority: f
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 });
1384
+ } = e, { range: p, sizes: h } = Or(e), _ = dt({ format: "avif", query: m, range: p, url: o }), k = dt({ format: "webp", query: m, range: p, url: o }), g = dt({ format: "", query: m, range: p, url: o });
1385
1385
  return /* @__PURE__ */ r.jsxs("picture", { className: t, children: [
1386
1386
  i !== "image/gif" && /* @__PURE__ */ r.jsx(
1387
1387
  "source",
@@ -1408,7 +1408,7 @@ const Br = ({ image: e, className: t, testId: n }) => {
1408
1408
  sizes: h,
1409
1409
  src: o,
1410
1410
  alt: s,
1411
- loading: m || "lazy",
1411
+ loading: u || "lazy",
1412
1412
  decoding: c || "async",
1413
1413
  fetchpriority: f || "auto",
1414
1414
  width: l,
@@ -1420,7 +1420,7 @@ 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(), a = ee(null), [i, d] = P("hidden");
1423
+ const s = F(), a = ee(null), [i, m] = P("hidden");
1424
1424
  z(() => {
1425
1425
  const l = a.current;
1426
1426
  if (l)
@@ -1429,13 +1429,13 @@ const Ir = ({ isOpen: e = !1, isLoading: t = !1, children: n }) => {
1429
1429
  };
1430
1430
  }, []);
1431
1431
  const o = ({ propertyName: l }) => {
1432
- l === "opacity" && (Re !== !1 && clearTimeout(Re), d((m) => m === "opening" ? "open" : m === "closing" ? "closed" : m === "closed" ? "hidden" : m));
1432
+ l === "opacity" && (Re !== !1 && clearTimeout(Re), m((u) => u === "opening" ? "open" : u === "closing" ? "closed" : u === "closed" ? "hidden" : u));
1433
1433
  };
1434
1434
  return Ce(() => {
1435
1435
  Re !== !1 && clearTimeout(Re);
1436
1436
  let l = "open";
1437
- e ? d("opening") : (d("closing"), l = "hidden"), Re = setTimeout(() => {
1438
- d(l);
1437
+ e ? m("opening") : (m("closing"), l = "hidden"), Re = setTimeout(() => {
1438
+ m(l);
1439
1439
  }, 300);
1440
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
  };
@@ -1473,7 +1473,7 @@ const io = ({ title: e = !1, logos: t = [], className: n = "" }) => {
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: i, nameOfBusiness: d, link: o = !1, description: l = !1 }, m) => {
1476
+ ({ logo: i, nameOfBusiness: m, link: o = !1, description: l = !1 }, u) => {
1477
1477
  if (!i || !i.url)
1478
1478
  return null;
1479
1479
  const c = /* @__PURE__ */ r.jsx(
@@ -1482,7 +1482,7 @@ const io = ({ title: e = !1, logos: t = [], className: n = "" }) => {
1482
1482
  src: i.url,
1483
1483
  width: i.width || "auto",
1484
1484
  height: i.height || "auto",
1485
- alt: d
1485
+ alt: m
1486
1486
  }
1487
1487
  );
1488
1488
  return /* @__PURE__ */ r.jsxs("li", { children: [
@@ -1496,7 +1496,7 @@ const io = ({ title: e = !1, logos: t = [], className: n = "" }) => {
1496
1496
  }
1497
1497
  ) : c }),
1498
1498
  l && /* @__PURE__ */ r.jsx("small", { children: l })
1499
- ] }, window.btoa(`${i.url}_${m}`));
1499
+ ] }, window.btoa(`${i.url}_${u}`));
1500
1500
  }
1501
1501
  )
1502
1502
  }
@@ -1524,26 +1524,26 @@ const Hr = [
1524
1524
  variant: s = "default",
1525
1525
  spacing: a = "normal",
1526
1526
  cta: i,
1527
- children: d
1527
+ children: m
1528
1528
  }) => {
1529
- const o = ["eyebrow", "title", "text"], l = { eyebrow: "small", title: "h1", text: "p" }, m = {};
1529
+ const o = ["eyebrow", "title", "text"], l = { eyebrow: "small", title: "h1", text: "p" }, u = {};
1530
1530
  return o.forEach((c) => {
1531
1531
  if (!t[c]) {
1532
- m[c] = !1;
1532
+ u[c] = !1;
1533
1533
  return;
1534
1534
  }
1535
1535
  if (typeof t[c] == "object") {
1536
- m[c] = t[c];
1536
+ u[c] = t[c];
1537
1537
  const { text: f, element: p } = t[c];
1538
1538
  if (p && Hr.includes(p.toLowerCase()))
1539
1539
  return;
1540
- m[c] = {
1540
+ u[c] = {
1541
1541
  text: f,
1542
1542
  element: l[c]
1543
1543
  };
1544
1544
  return;
1545
1545
  }
1546
- m[c] = {
1546
+ u[c] = {
1547
1547
  text: t[c],
1548
1548
  element: l[c]
1549
1549
  };
@@ -1556,13 +1556,13 @@ const Hr = [
1556
1556
  {
1557
1557
  className: j("banner-section", s, a, e, {
1558
1558
  "has-image": n,
1559
- "has-extra-spacing": a === "normal" && m.eyebrow && m.title
1559
+ "has-extra-spacing": a === "normal" && u.eyebrow && u.title
1560
1560
  }),
1561
1561
  children: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1562
1562
  /* @__PURE__ */ r.jsxs("div", { className: "content-wrapper", children: [
1563
1563
  o.map((c) => {
1564
- if (m[c] && typeof m[c] == "object") {
1565
- const { text: f, element: p = "" } = m[c];
1564
+ if (u[c] && typeof u[c] == "object") {
1565
+ const { text: f, element: p = "" } = u[c];
1566
1566
  return A.createElement(
1567
1567
  p.toLowerCase(),
1568
1568
  { key: c, className: c },
@@ -1571,7 +1571,7 @@ const Hr = [
1571
1571
  }
1572
1572
  return null;
1573
1573
  }),
1574
- d,
1574
+ m,
1575
1575
  i && i.text && i.link && /* @__PURE__ */ r.jsx(
1576
1576
  W,
1577
1577
  {
@@ -1616,15 +1616,15 @@ const xn = ({ label: e = !1, className: t = "", children: n }) => {
1616
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 });
1617
1617
  const st = ({ variant: e = "empty", text: t = !1, button: n = !1, className: s = "" }) => {
1618
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") {
1619
+ const i = typeof n == "object" && "breakpoints" in n, m = tt(i);
1620
+ if (i && typeof n == "object" && typeof m == "number") {
1621
1621
  const f = Object.assign({}, n.breakpoints), p = pn(Object.keys(f));
1622
- a = hn(d, p, f);
1622
+ a = hn(m, p, f);
1623
1623
  }
1624
- const { breakpoints: o, text: l = "", component: m, ...c } = n;
1624
+ const { breakpoints: o, text: l = "", component: u, ...c } = n;
1625
1625
  return /* @__PURE__ */ r.jsx(ke, { variant: "subtle", className: j("empty-state-box", e, s), children: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1626
1626
  t && /* @__PURE__ */ r.jsx(et, { options: { forceBlock: !0 }, children: t }),
1627
- a && typeof n == "object" && (m || /* @__PURE__ */ r.jsx(
1627
+ a && typeof n == "object" && (u || /* @__PURE__ */ r.jsx(
1628
1628
  W,
1629
1629
  {
1630
1630
  ...c,
@@ -1652,9 +1652,9 @@ const Ur = ({ type: e = "default", className: t = "", heading: n = !1, children:
1652
1652
  ) : /* @__PURE__ */ r.jsx("p", { children: s })
1653
1653
  ] });
1654
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");
1655
+ const i = F(), m = ee(null), [o, l] = P(""), [u, c] = P("closed");
1656
1656
  z(() => {
1657
- const h = d.current;
1657
+ const h = m.current;
1658
1658
  if (h)
1659
1659
  return h.addEventListener("transitionend", f), () => {
1660
1660
  h.removeEventListener("transitionend", f);
@@ -1667,18 +1667,18 @@ const mo = ({ className: e = "", show: t = !1, hide: n = !1, text: s, children:
1667
1667
  l(h.length < 3 ? `${s.substring(0, 400)}...` : h.slice(0, 3).join(`
1668
1668
  `));
1669
1669
  }, [s]), z(() => {
1670
- m === "ready-to-close" && c("closing");
1671
- }, [m]);
1670
+ u === "ready-to-close" && c("closing");
1671
+ }, [u]);
1672
1672
  const f = ({ propertyName: h }) => {
1673
1673
  h === "max-height" && c((_) => _ === "opening" ? "open" : _ === "closing" ? "closed" : _);
1674
1674
  };
1675
1675
  if (!s)
1676
1676
  return null;
1677
- const p = ["opening", "open"].includes(m);
1677
+ const p = ["opening", "open"].includes(u);
1678
1678
  return /* @__PURE__ */ r.jsxs(ke, { variant: "subtle", className: j("hide-show-text-box", e), children: [
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
1679
+ /* @__PURE__ */ r.jsxs("div", { ref: m, className: j("content", u), children: [
1680
+ /* @__PURE__ */ r.jsx(et, { options: { forceBlock: !0 }, children: u === "closed" ? o : s }),
1681
+ u !== "closed" && a
1682
1682
  ] }),
1683
1683
  /* @__PURE__ */ r.jsx("p", { className: "cta", children: /* @__PURE__ */ r.jsx(
1684
1684
  W,
@@ -1704,11 +1704,11 @@ const mo = ({ className: e = "", show: t = !1, hide: n = !1, text: s, children:
1704
1704
  if (!(!i || typeof i == "string" || typeof i == "number"))
1705
1705
  if (A.isValidElement(i) && i.type === "summary") {
1706
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;
1707
+ for (const m of jt.toArray(i.props.children))
1708
+ if (!(!m || typeof m == "string" || typeof m == "number") && A.isValidElement(m)) {
1709
+ const o = m.type;
1710
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]); )
1711
+ for (n = m.props.children; typeof n != "string" && (Array.isArray(n) && n[0].props && n[0].props.children && n[0].props.children[0]); )
1712
1712
  n = n[0].props.children[0];
1713
1713
  break;
1714
1714
  }
@@ -1757,9 +1757,9 @@ const mo = ({ className: e = "", show: t = !1, hide: n = !1, text: s, children:
1757
1757
  let s = e, a = !1;
1758
1758
  for (const i of jt.toArray(e))
1759
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)); )
1760
+ const m = i.type;
1761
+ if (["button", "center", "span", "strong"].includes(m) && i.props && i.props.children && i.props.children[0])
1762
+ for ((m === "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)); )
1763
1763
  if (s.props && s.props.children && s.props.children[0])
1764
1764
  s = s.props.children[0], s && tn(s) === "button" && (a = !0);
1765
1765
  else
@@ -1806,13 +1806,13 @@ const mt = "loadingBlock_", ts = ({ progress: e = 0, steps: t = !1, className: n
1806
1806
  const i = Object.keys(t);
1807
1807
  for (let o = 0; o < i.length && !(e < parseInt(i[o])); o++)
1808
1808
  a = i[o];
1809
- const d = a && t[a].icon ? { "--icon": `url(${$t}icons/${t[a].icon}.svg)` } : {};
1809
+ const m = a && t[a].icon ? { "--icon": `url(${$t}icons/${t[a].icon}.svg)` } : {};
1810
1810
  return /* @__PURE__ */ r.jsxs(
1811
1811
  ke,
1812
1812
  {
1813
1813
  className: j("loading-block", n, { "has-icon": a && t[a].icon }),
1814
1814
  variant: "subtle",
1815
- style: d,
1815
+ style: m,
1816
1816
  children: [
1817
1817
  a && /* @__PURE__ */ r.jsx("span", { className: "step", children: t[a].text }),
1818
1818
  /* @__PURE__ */ r.jsx(es, { progress: e })
@@ -1839,10 +1839,10 @@ const Ct = {
1839
1839
  if (s <= t * (a + 1))
1840
1840
  return Qe[a];
1841
1841
  };
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);
1842
+ const rn = 256, Pt = ({ className: e = "", src: t = "", name: n, alt: s, width: a = rn, height: i = rn, ...m }) => {
1843
+ const [o, l] = P(!1), u = ee(null);
1844
1844
  z(() => {
1845
- const f = m.current;
1845
+ const f = u.current;
1846
1846
  if (!f)
1847
1847
  return;
1848
1848
  const p = f.getContext("2d");
@@ -1852,7 +1852,7 @@ const rn = 256, Pt = ({ className: e = "", src: t = "", name: n, alt: s, width:
1852
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);
1853
1853
  }, [n]);
1854
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(
1855
+ return t && t !== "" && !o && (t.includes("http") || t.includes("//")) && (c = !0), /* @__PURE__ */ r.jsx("figure", { className: j("profile-picture", e, { error: o }), ...m, children: c ? /* @__PURE__ */ r.jsx(
1856
1856
  "img",
1857
1857
  {
1858
1858
  src: t,
@@ -1863,7 +1863,7 @@ const rn = 256, Pt = ({ className: e = "", src: t = "", name: n, alt: s, width:
1863
1863
  width: a,
1864
1864
  height: i
1865
1865
  }
1866
- ) : /* @__PURE__ */ r.jsx("canvas", { ref: m }) });
1866
+ ) : /* @__PURE__ */ r.jsx("canvas", { ref: u }) });
1867
1867
  }, kn = (e) => e === "apolitical" ? {
1868
1868
  image: `${$t}logos/member_apolitical.svg`
1869
1869
  } : e === "community" || typeof e == "object" && !e.name ? {
@@ -1881,11 +1881,11 @@ const rn = 256, Pt = ({ className: e = "", src: t = "", name: n, alt: s, width:
1881
1881
  country: n = "",
1882
1882
  maximumCharacters: s = 80
1883
1883
  }) => {
1884
- const a = e !== "", i = t !== "", d = n !== "";
1885
- if (!a && !i && !d)
1884
+ const a = e !== "", i = t !== "", m = n !== "";
1885
+ if (!a && !i && !m)
1886
1886
  return "";
1887
1887
  const o = `${e}${a && i ? ` — ${t}` : t}`;
1888
- let l = `${o}${(a || i) && d ? `, ${n}` : n}`;
1888
+ let l = `${o}${(a || i) && m ? `, ${n}` : n}`;
1889
1889
  return l.length > s && (l = o), l.length > s && (l = Ke(l, s)), l;
1890
1890
  };
1891
1891
  const Ft = ({
@@ -1896,15 +1896,15 @@ const Ft = ({
1896
1896
  gtmType: a = "member-click",
1897
1897
  className: i = ""
1898
1898
  }) => {
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) : "";
1899
+ const m = F(), o = kn(t);
1900
+ o.name || (o.name = m.formatMessage({ id: `member_${typeof t == "string" ? t : "community"}` }));
1901
+ const { name: l, url: u, image: c } = o, f = ss(o), p = n && n.createdAt ? Mr(n.createdAt) : !1, h = n && n.createdAt ? Tr(n.createdAt) : "";
1902
1902
  return A.createElement(e, {
1903
1903
  className: j("member text-medium", i),
1904
1904
  children: /* @__PURE__ */ r.jsxs(
1905
1905
  rt,
1906
1906
  {
1907
- href: m,
1907
+ href: u,
1908
1908
  gtmType: a,
1909
1909
  gtmContext: s,
1910
1910
  onClick: (_) => {
@@ -1915,8 +1915,8 @@ const Ft = ({
1915
1915
  /* @__PURE__ */ r.jsxs("p", { className: "details", children: [
1916
1916
  /* @__PURE__ */ r.jsx("strong", { children: l }),
1917
1917
  n && /* @__PURE__ */ r.jsxs("span", { className: "additional-content", children: [
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" }) })
1918
+ n.createdAt && p && /* @__PURE__ */ r.jsx("span", { className: "date", title: h, "aria-label": h, children: m.formatMessage({ id: `dates_${p.path}` }, { number: p.number }) }),
1919
+ n.didEdit && /* @__PURE__ */ r.jsx("em", { children: m.formatMessage({ id: "discussion_edited" }) })
1920
1920
  ] }),
1921
1921
  f && /* @__PURE__ */ r.jsx("small", { children: f })
1922
1922
  ] })
@@ -1928,8 +1928,8 @@ const Ft = ({
1928
1928
  const sn = {
1929
1929
  small: 24,
1930
1930
  medium: 48
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();
1931
+ }, os = ({ element: e = "div", contributors: { total: t, data: n } = { total: void 0, data: [] }, styling: { showText: s, size: a, showGap: i, showPlaceholders: m } = { showText: !0, size: "medium", showGap: !0, showPlaceholders: !1 }, cutoff: o = 2, className: l = "" }) => {
1932
+ const u = F();
1933
1933
  return !n || n.length === 0 ? null : A.createElement(
1934
1934
  e,
1935
1935
  { className: j("contributors", l, a, { "has-gap": i }), children: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
@@ -1937,7 +1937,7 @@ const sn = {
1937
1937
  let p, h = "";
1938
1938
  if (f < o) {
1939
1939
  const { name: _ = "", image: k = "" } = kn(c);
1940
- if (d)
1940
+ if (m)
1941
1941
  return /* @__PURE__ */ r.jsx(be, { element: "li", className: "contributor" }, f);
1942
1942
  p = /* @__PURE__ */ r.jsx(Pt, { name: _, src: k, width: sn[a || "medium"], height: sn[a || "medium"] });
1943
1943
  } else if (f === o) {
@@ -1949,7 +1949,7 @@ const sn = {
1949
1949
  }
1950
1950
  return p ? /* @__PURE__ */ r.jsx("li", { className: j("contributor", h), children: p }, f) : null;
1951
1951
  }) }),
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 })
1952
+ s && /* @__PURE__ */ r.jsx("span", { className: "label", children: typeof s == "string" ? s : n.length === 1 ? typeof n[0] == "string" ? u.formatMessage({ id: `member_${n[0]}` }) : Ke(n[0].name || "", 20) : null })
1953
1953
  ] }) }
1954
1954
  );
1955
1955
  }, as = ({ showDevTools: e = !0, children: t }) => {
@@ -2007,44 +2007,73 @@ const cs = ({ children: e, user: t }) => t.isLoading ? /* @__PURE__ */ r.jsx(r.F
2007
2007
  const ft = "joinCommunityButton", yn = ({ isMember: e = !1, isShort: t = !1, functions: { join: n, leave: s } = { join: () => {
2008
2008
  }, leave: () => {
2009
2009
  } } }) => {
2010
- const a = F(), i = ye(je), d = i && typeof i.id == "string", [o, l] = P(e), [m, c] = P(e ? "joined" : "notJoined");
2010
+ const a = F(), i = ye(je), m = i && typeof i.id == "string", [o, l] = P(e), [u, c] = P(e ? "joined" : "notJoined");
2011
2011
  z(() => {
2012
- m === "joining" ? c("joined") : m === "leaving" && c("notJoined");
2012
+ u === "joining" ? c("joined") : u === "leaving" && c("notJoined");
2013
2013
  }, [o]);
2014
2014
  const f = {}, p = {};
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(
2015
+ return o && u !== "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(
2016
2016
  W,
2017
2017
  {
2018
2018
  variant: o ? "secondary" : "primary",
2019
2019
  size: "medium",
2020
2020
  styling: { fullWidth: !0 },
2021
- icon: o && m !== "leaving" ? { icon: "tick", position: "left" } : !1,
2021
+ icon: o && u !== "leaving" ? { icon: "tick", position: "left" } : !1,
2022
2022
  onClick: async (h) => {
2023
- d && (h.currentTarget.blur(), o ? (c("leaving"), typeof s == "function" && await s()) : (c("joining"), typeof n == "function" && await n()), l(!o));
2023
+ m && (h.currentTarget.blur(), o ? (c("leaving"), typeof s == "function" && await s()) : (c("joining"), typeof n == "function" && await n()), l(!o));
2024
2024
  },
2025
- className: j("join-community-button", m, { active: m === "joining" }),
2026
- disabled: !d,
2025
+ className: j("join-community-button", u, { active: u === "joining" }),
2026
+ disabled: !m,
2027
2027
  ...f,
2028
- children: /* @__PURE__ */ r.jsx("span", { className: "text", ...p, children: a.formatMessage({ id: `${ft}${["joining", "leaving"].includes(m) ? `_${m}` : o ? "_member" : t ? "_short" : ""}` }) })
2028
+ children: /* @__PURE__ */ r.jsx("span", { className: "text", ...p, children: a.formatMessage({ id: `${ft}${["joining", "leaving"].includes(u) ? `_${u}` : o ? "_member" : t ? "_short" : ""}` }) })
2029
2029
  }
2030
2030
  );
2031
2031
  };
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: [
2032
+ const pt = "communityDetails_", ho = ({
2033
+ className: e = "",
2034
+ isMember: t = !1,
2035
+ slug: n,
2036
+ members: { number: s = 0, data: a = [] } = { number: 0, data: [] },
2037
+ functions: { invite: i, ...m }
2038
+ }) => {
2039
+ const o = F(), l = 5, u = s || a.length, c = a.length ? a : Array(l).fill({});
2040
+ return /* @__PURE__ */ r.jsxs("div", { className: j("community-details", e), children: [
2035
2041
  /* @__PURE__ */ r.jsx(Ne, {}),
2036
2042
  /* @__PURE__ */ r.jsxs("div", { className: "member-details", children: [
2037
2043
  /* @__PURE__ */ r.jsxs("div", { className: "top", children: [
2038
2044
  /* @__PURE__ */ r.jsxs("h3", { children: [
2039
- d.formatMessage({ id: `${pt}members` }),
2040
- /* @__PURE__ */ r.jsx("span", { className: "count", children: o })
2045
+ o.formatMessage({ id: `${pt}members` }),
2046
+ /* @__PURE__ */ r.jsx("span", { className: "count", children: u })
2041
2047
  ] }),
2042
- /* @__PURE__ */ r.jsx("p", { className: "text-small", children: /* @__PURE__ */ r.jsx("a", { href: `/communities/${t}/members`, children: d.formatMessage({ id: `${pt}viewAll` }) }) })
2048
+ /* @__PURE__ */ r.jsx("p", { className: "text-small", children: /* @__PURE__ */ r.jsx("a", { href: `/communities/${n}/members`, children: o.formatMessage({ id: `${pt}viewAll` }) }) })
2043
2049
  ] }),
2044
- /* @__PURE__ */ r.jsx(os, { contributors: { total: n, data: s != null && s.length ? s : [{}, {}, {}, {}, {}] }, styling: { size: "medium", showGap: !0, showPlaceholders: o === 0 }, cutoff: 5 })
2050
+ /* @__PURE__ */ r.jsx(
2051
+ os,
2052
+ {
2053
+ contributors: {
2054
+ total: s,
2055
+ data: c
2056
+ },
2057
+ styling: {
2058
+ size: "medium",
2059
+ showGap: !0,
2060
+ showPlaceholders: u === 0
2061
+ },
2062
+ cutoff: l
2063
+ }
2064
+ )
2045
2065
  ] }),
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` }) })
2066
+ /* @__PURE__ */ r.jsx(yn, { isMember: t, functions: { ...m } }),
2067
+ t && /* @__PURE__ */ r.jsx(
2068
+ W,
2069
+ {
2070
+ variant: "primary",
2071
+ onClick: i,
2072
+ icon: { icon: "plus" },
2073
+ styling: { fullWidth: !0 },
2074
+ children: o.formatMessage({ id: `${pt}invite` })
2075
+ }
2076
+ )
2048
2077
  ] });
2049
2078
  };
2050
2079
  const go = ({
@@ -2055,9 +2084,9 @@ const go = ({
2055
2084
  const s = F();
2056
2085
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
2057
2086
  /* @__PURE__ */ r.jsx(re, { element: "p", children: s.formatMessage({ id: "breadcrumbs_label" }) }),
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) })
2087
+ /* @__PURE__ */ r.jsx("ul", { className: j("breadcrumbs text-small", n), children: e.map(({ text: a, href: i, current: m = !1 }, o) => /* @__PURE__ */ r.jsxs("li", { children: [
2088
+ m && /* @__PURE__ */ r.jsx(re, { element: "span", children: s.formatMessage({ id: "breadcrumbs_currentPage" }) }),
2089
+ /* @__PURE__ */ r.jsx(rt, { href: m ? void 0 : i, children: Ke(a, t) })
2061
2090
  ] }, `${window.btoa(a)}_${o}`)) })
2062
2091
  ] });
2063
2092
  };
@@ -2069,11 +2098,11 @@ const _o = ({
2069
2098
  },
2070
2099
  className: a = ""
2071
2100
  }) => {
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) => {
2101
+ const i = F(), m = t ? [{ id: "all", text: typeof t != "boolean" && t.text || i.formatMessage({ id: "filters_all" }) }, ...e] : e, [o, l] = P(t ? ["all"] : []), u = (c, f) => {
2073
2102
  let p = [];
2074
2103
  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();
2075
2104
  };
2076
- return /* @__PURE__ */ r.jsx("ul", { className: j("filters", a), children: d.map(({ id: c, text: f, disabled: p = !1, callback: h = () => {
2105
+ return /* @__PURE__ */ r.jsx("ul", { className: j("filters", a), children: m.map(({ id: c, text: f, disabled: p = !1, callback: h = () => {
2077
2106
  } }) => {
2078
2107
  let _ = {};
2079
2108
  return p && (_ = { disabled: !0, "aria-label": i.formatMessage({ id: "filters_disabled" }, { name: f }) }), /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(
@@ -2081,7 +2110,7 @@ const _o = ({
2081
2110
  {
2082
2111
  className: j(c, { selected: o.includes(c) }),
2083
2112
  onClick: (k) => {
2084
- k.preventDefault(), k.stopPropagation(), m(c, h);
2113
+ k.preventDefault(), k.stopPropagation(), u(c, h);
2085
2114
  },
2086
2115
  ..._,
2087
2116
  children: f
@@ -2105,24 +2134,24 @@ const ht = { en: "English", es: "Español", fr: "Français", pt: "Português" },
2105
2134
  onChange: a = () => {
2106
2135
  },
2107
2136
  urlParts: i,
2108
- variant: d = "default",
2137
+ variant: m = "default",
2109
2138
  label: o,
2110
2139
  className: l = ""
2111
2140
  }) => {
2112
- const m = F(), [c, f] = P(e);
2141
+ const u = F(), [c, f] = P(e);
2113
2142
  if (z(() => {
2114
2143
  e !== c && f(e);
2115
2144
  }, [e]), !s || !Object.values(s).some((k) => k && k.post_name))
2116
2145
  return null;
2117
2146
  const h = Object.keys(s), _ = c !== e;
2118
- return /* @__PURE__ */ r.jsxs("div", { className: j("language-switcher text-small", d, l), children: [
2147
+ return /* @__PURE__ */ r.jsxs("div", { className: j("language-switcher text-small", m, l), children: [
2119
2148
  /* @__PURE__ */ r.jsxs("nav", { children: [
2120
- d !== "short" && /* @__PURE__ */ r.jsx("p", { children: o || m.formatMessage({ id: `${Ue}label` }) }),
2149
+ m !== "short" && /* @__PURE__ */ r.jsx("p", { children: o || u.formatMessage({ id: `${Ue}label` }) }),
2121
2150
  /* @__PURE__ */ r.jsx("ul", { children: h.map((k) => {
2122
2151
  if (!ht[k])
2123
2152
  return null;
2124
2153
  let g = { className: k };
2125
- return c === k ? g["aria-label"] = m.formatMessage({ id: `${Ue}selected` }, { language: ht[k] }) : g = {
2154
+ return c === k ? g["aria-label"] = u.formatMessage({ id: `${Ue}selected` }, { language: ht[k] }) : g = {
2126
2155
  ...g,
2127
2156
  href: ms(k, i),
2128
2157
  onClick: (E) => {
@@ -2130,13 +2159,13 @@ const ht = { en: "English", es: "Español", fr: "Français", pt: "Português" },
2130
2159
  }
2131
2160
  }, /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(rt, { ...g, fallbackElement: "span", children: ht[k] }) }, k);
2132
2161
  }) }),
2133
- d !== "short" && !_ && /* @__PURE__ */ r.jsx("p", { children: m.formatMessage({ id: `${Ue}translation_${t ? "original" : n ? "human" : "machine"}` }) })
2162
+ m !== "short" && !_ && /* @__PURE__ */ r.jsx("p", { children: u.formatMessage({ id: `${Ue}translation_${t ? "original" : n ? "human" : "machine"}` }) })
2134
2163
  ] }),
2135
- d !== "short" && !_ && !t && !n && /* @__PURE__ */ r.jsx("small", {
2164
+ m !== "short" && !_ && !t && !n && /* @__PURE__ */ r.jsx("small", {
2136
2165
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2137
2166
  // @ts-ignore
2138
2167
  // `values` are throwing a type error: https://github.com/formatjs/formatjs/issues/3633
2139
- children: m.formatMessage({ id: `${Ue}disclaimer` }, {
2168
+ children: u.formatMessage({ id: `${Ue}disclaimer` }, {
2140
2169
  email: Oe.support,
2141
2170
  link: (k) => {
2142
2171
  const g = `mailto:${k}`;
@@ -2158,20 +2187,20 @@ const gt = lr({ locale: "en", messages: Dt }), fs = ({
2158
2187
  endOfFeed: gt.formatMessage({ id: "loadMore_endOfFeed" }),
2159
2188
  error: gt.formatMessage({ id: "loadMore_error" })
2160
2189
  },
2161
- className: d = "",
2190
+ className: m = "",
2162
2191
  gtmContext: o = "LoadMore"
2163
2192
  }) => {
2164
- const [l, m] = P(!1), [c, f] = P(!1);
2193
+ const [l, u] = P(!1), [c, f] = P(!1);
2165
2194
  if (t <= 0 || t < n * e)
2166
2195
  return null;
2167
2196
  const p = async (h) => {
2168
2197
  try {
2169
2198
  await s(h);
2170
2199
  } catch (_) {
2171
- _ instanceof Error && _.message && _.message.includes("Cannot read items") ? f(!0) : m(!0);
2200
+ _ instanceof Error && _.message && _.message.includes("Cannot read items") ? f(!0) : u(!0);
2172
2201
  }
2173
2202
  };
2174
- return /* @__PURE__ */ r.jsxs("footer", { className: j("load-more", d), children: [
2203
+ return /* @__PURE__ */ r.jsxs("footer", { className: j("load-more", m), children: [
2175
2204
  l && /* @__PURE__ */ r.jsx("p", { className: "error", children: i.error }),
2176
2205
  c ? /* @__PURE__ */ r.jsx("p", { children: i.endOfFeed }) : /* @__PURE__ */ r.jsx(
2177
2206
  W,
@@ -2190,8 +2219,8 @@ const gt = lr({ locale: "en", messages: Dt }), fs = ({
2190
2219
  };
2191
2220
  let We = !1;
2192
2221
  const ps = ({ element: e = "div", id: t = "more-menu", options: n, className: s = "" }) => {
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);
2222
+ const a = F(), i = ee(null), [m, o] = P(!1), l = (u) => {
2223
+ i.current && u.target instanceof HTMLElement && !i.current.contains(u.target) && o(!1);
2195
2224
  };
2196
2225
  return z(() => (document.addEventListener("click", l, !0), () => {
2197
2226
  document.removeEventListener("click", l, !0);
@@ -2205,14 +2234,14 @@ const ps = ({ element: e = "div", id: t = "more-menu", options: n, className: s
2205
2234
  variant: "tertiary",
2206
2235
  size: "medium",
2207
2236
  icon: { icon: "ellipsis" },
2208
- onClick: () => o(!d),
2237
+ onClick: () => o(!m),
2209
2238
  "aria-haspopup": "true",
2210
- "aria-expanded": d,
2239
+ "aria-expanded": m,
2211
2240
  "aria-controls": t,
2212
2241
  screenreaderText: a.formatMessage({ id: "moreMenu" })
2213
2242
  }
2214
2243
  ),
2215
- /* @__PURE__ */ r.jsx("ul", { id: t, hidden: !d, children: n.map(({ href: m, onClick: c, text: f, icon: p, ...h }, _) => {
2244
+ /* @__PURE__ */ r.jsx("ul", { id: t, hidden: !m, children: n.map(({ href: u, onClick: c, text: f, icon: p, ...h }, _) => {
2216
2245
  const k = {
2217
2246
  ...h,
2218
2247
  onClick: (g) => {
@@ -2227,7 +2256,7 @@ const ps = ({ element: e = "div", id: t = "more-menu", options: n, className: s
2227
2256
  }, 100);
2228
2257
  }
2229
2258
  };
2230
- return m && (k.href = m), /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(
2259
+ return u && (k.href = u), /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(
2231
2260
  W,
2232
2261
  {
2233
2262
  variant: "tertiary",
@@ -2247,10 +2276,10 @@ const hs = {
2247
2276
  }, vo = ({ layout: e = "2-1", hideOnMobile: t = !1, className: n = "", children: s }) => {
2248
2277
  const a = tt(!0);
2249
2278
  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) });
2279
+ 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, (m, o) => t !== !1 && o === t && a && a < hs[e] ? null : m) });
2251
2280
  };
2252
2281
  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 = () => {
2282
+ const e = F(), [t, n, s] = mr(xt), [a, i] = P(!t["apol-cookie-banner"]), m = () => {
2254
2283
  xt.forEach((c) => {
2255
2284
  n(c, !0, {
2256
2285
  path: "/",
@@ -2278,10 +2307,10 @@ const _t = "cookieBanner_", xt = ["apol-cookie-banner", "apolitical-performance-
2278
2307
  const l = [
2279
2308
  { id: "settings", href: "/pages/cookie-policy", gtmType: "policy-page" },
2280
2309
  { id: "reject", onClick: o, gtmType: "reject-all" },
2281
- { id: "accept", onClick: d, gtmType: "accepted-all" }
2282
- ], m = [];
2310
+ { id: "accept", onClick: m, gtmType: "accepted-all" }
2311
+ ], u = [];
2283
2312
  return l.forEach((c) => {
2284
- m.push({
2313
+ u.push({
2285
2314
  variant: c.href ? "tertiary" : "primary",
2286
2315
  href: c.href,
2287
2316
  onClick: c.onClick,
@@ -2293,7 +2322,7 @@ const _t = "cookieBanner_", xt = ["apol-cookie-banner", "apolitical-performance-
2293
2322
  }), /* @__PURE__ */ r.jsxs("aside", { id: "cookie-banner", className: "text-medium", children: [
2294
2323
  /* @__PURE__ */ r.jsx("h6", { children: e.formatMessage({ id: `${_t}title` }) }),
2295
2324
  /* @__PURE__ */ r.jsx("p", { children: e.formatMessage({ id: `${_t}text` }) }),
2296
- /* @__PURE__ */ r.jsx(nt, { buttons: m })
2325
+ /* @__PURE__ */ r.jsx(nt, { buttons: u })
2297
2326
  ] });
2298
2327
  }, ve = {
2299
2328
  platform: {
@@ -2397,15 +2426,15 @@ const Me = "footer_", Je = "SiteFooter", on = ({ group: e }) => {
2397
2426
  Array.isArray(t) && t.length > 0 && /* @__PURE__ */ r.jsx("ul", { className: "text-medium", children: t.map((s) => {
2398
2427
  if (["order", "child", "text"].includes(s))
2399
2428
  return null;
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(
2429
+ const { href: a, gtmType: i } = ve[e][s], m = {};
2430
+ return ["legal"].includes(e) && (m.target = "_blank", m.rel = "noopener"), /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(
2402
2431
  "a",
2403
2432
  {
2404
2433
  href: a,
2405
2434
  className: "gtm-trackable",
2406
2435
  "data-gtm-event-context": Je,
2407
2436
  "data-gtm-event-type": i,
2408
- ...d,
2437
+ ...m,
2409
2438
  children: /* @__PURE__ */ r.jsx(we, { id: `${Me}${e}_${s}` })
2410
2439
  }
2411
2440
  ) }, `${e}_${s}`);
@@ -2464,18 +2493,18 @@ const Me = "footer_", Je = "SiteFooter", on = ({ group: e }) => {
2464
2493
  ] })
2465
2494
  ] }) });
2466
2495
  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(
2496
+ const a = F(), [i, m] = P({ path: `${ze}default`, type: "default", link: {}, mail: {}, error: "" }), [o, l] = P(!1), u = Ee(
2468
2497
  (h) => {
2469
2498
  h.preventDefault(), h.stopPropagation();
2470
2499
  const _ = (k) => {
2471
- d({
2500
+ m({
2472
2501
  path: `${ze}error_verificationFailedToSend`,
2473
2502
  type: "error",
2474
2503
  link: {
2475
2504
  "data-gtm-event-context": "VerifyEmailBox",
2476
2505
  "data-gtm-event-type": "SendEmailClick",
2477
2506
  className: "gtm-trackable",
2478
- onClick: (g) => m(g),
2507
+ onClick: (g) => u(g),
2479
2508
  href: "#",
2480
2509
  "data-testid": "send-verify-email-click"
2481
2510
  },
@@ -2531,7 +2560,7 @@ const ze = "emailHelperTextBox_", bo = ({ type: e, email: t, redirectPath: n, re
2531
2560
  "data-gtm-event-context": "VerifyEmailBox",
2532
2561
  "data-gtm-event-type": "SendEmailClick",
2533
2562
  className: "gtm-trackable",
2534
- onClick: (E) => m(E),
2563
+ onClick: (E) => u(E),
2535
2564
  "data-testid": "send-verify-email-click"
2536
2565
  };
2537
2566
  break;
@@ -2555,7 +2584,7 @@ const ze = "emailHelperTextBox_", bo = ({ type: e, email: t, redirectPath: n, re
2555
2584
  };
2556
2585
  break;
2557
2586
  }
2558
- d({ ...i, path: h, type: _, link: k, mail: g });
2587
+ m({ ...i, path: h, type: _, link: k, mail: g });
2559
2588
  },
2560
2589
  /* eslint-disable react-hooks/exhaustive-deps */
2561
2590
  [e]
@@ -2614,19 +2643,19 @@ const ko = ({
2614
2643
  }, reportError: a = () => {
2615
2644
  } },
2616
2645
  className: i = "",
2617
- hasLoaded: d = !1
2646
+ hasLoaded: m = !1
2618
2647
  }) => {
2619
- const o = F(), [l, m] = P({ setUp: !1, id: null, rating: null, disabled: !0 }), c = async () => {
2648
+ const o = F(), [l, u] = P({ setUp: !1, id: null, rating: null, disabled: !0 }), c = async () => {
2620
2649
  try {
2621
2650
  const E = await n();
2622
- m((b) => ({ ...b, setUp: !0, id: E && E.id, disabled: !1 }));
2651
+ u((b) => ({ ...b, setUp: !0, id: E && E.id, disabled: !1 }));
2623
2652
  } catch (E) {
2624
- m((b) => ({ ...b, setUp: !0, disabled: !0 })), a(E);
2653
+ u((b) => ({ ...b, setUp: !0, disabled: !0 })), a(E);
2625
2654
  }
2626
2655
  };
2627
2656
  if (z(() => {
2628
- d && !l.setUp && c();
2629
- }, [d]), !d)
2657
+ m && !l.setUp && c();
2658
+ }, [m]), !m)
2630
2659
  return /* @__PURE__ */ r.jsx(be, { className: "rating-placeholder" });
2631
2660
  const { id: f, rating: p, disabled: h } = l, _ = "ratings_", k = {
2632
2661
  text: o.formatMessage({ id: `${_}text` }),
@@ -2637,11 +2666,11 @@ const ko = ({
2637
2666
  }, g = async (E) => {
2638
2667
  if (!(!f || h))
2639
2668
  try {
2640
- m((b) => ({ ...b, rating: E, disabled: !0 })), await s({ id: f, value: E });
2669
+ u((b) => ({ ...b, rating: E, disabled: !0 })), await s({ id: f, value: E });
2641
2670
  } catch (b) {
2642
- m((S) => ({ ...S, rating: null })), a(b);
2671
+ u((S) => ({ ...S, rating: null })), a(b);
2643
2672
  } finally {
2644
- m((b) => ({ ...b, disabled: !1 }));
2673
+ u((b) => ({ ...b, disabled: !1 }));
2645
2674
  }
2646
2675
  };
2647
2676
  return /* @__PURE__ */ r.jsxs("div", { className: j("rating", i), children: [
@@ -2675,12 +2704,12 @@ const vs = ({
2675
2704
  gtmContext: a = "search-bar",
2676
2705
  gtmEvent: i = "form-submission"
2677
2706
  }) => {
2678
- const { searchIsOpen: d = !0, isDesktopVersion: o = !1 } = n || {}, l = F(), m = ee(null);
2707
+ const { searchIsOpen: m = !0, isDesktopVersion: o = !1 } = n || {}, l = F(), u = ee(null);
2679
2708
  Ce(() => {
2680
- !n || o || !d || m.current && m.current.focus();
2681
- }, [d]);
2709
+ !n || o || !m || u.current && u.current.focus();
2710
+ }, [m]);
2682
2711
  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)}`);
2712
+ f.preventDefault(), f.stopPropagation(), !(!u.current || !u.current.value || u.current.value.length < 1) && (window.location.href = `/search?search=${encodeURIComponent(u.current.value)}`);
2684
2713
  };
2685
2714
  return /* @__PURE__ */ r.jsx(
2686
2715
  "form",
@@ -2689,12 +2718,12 @@ const vs = ({
2689
2718
  className: j("search-form gtm-trackable", t),
2690
2719
  "data-gtm-event-context": a,
2691
2720
  "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: [
2721
+ children: /* @__PURE__ */ r.jsx("fieldset", { id: `${e}-form`, hidden: n ? !m : !1, role: "search", children: /* @__PURE__ */ r.jsxs("p", { children: [
2693
2722
  /* @__PURE__ */ r.jsx(re, { element: "label", htmlFor: e, children: l.formatMessage({ id: "search_label" }) }),
2694
2723
  /* @__PURE__ */ r.jsx(
2695
2724
  "input",
2696
2725
  {
2697
- ref: m,
2726
+ ref: u,
2698
2727
  type: "search",
2699
2728
  id: e,
2700
2729
  name: e,
@@ -2710,7 +2739,7 @@ const vs = ({
2710
2739
  {
2711
2740
  className: "clear",
2712
2741
  onClick: (f) => {
2713
- f.preventDefault(), f.stopPropagation(), m.current && m.current.value && (m.current.value = "");
2742
+ f.preventDefault(), f.stopPropagation(), u.current && u.current.value && (u.current.value = "");
2714
2743
  },
2715
2744
  children: /* @__PURE__ */ r.jsx(re, { children: l.formatMessage({ id: "search_clear" }) })
2716
2745
  }
@@ -2727,13 +2756,13 @@ const bs = ({
2727
2756
  titleColor: s,
2728
2757
  labelColor: a,
2729
2758
  backgroundColor: i,
2730
- onClose: d,
2759
+ onClose: m,
2731
2760
  reportError: o,
2732
2761
  sendInvites: l,
2733
- initialFormStatus: m = "NOT_SUBMITTED"
2762
+ initialFormStatus: u = "NOT_SUBMITTED"
2734
2763
  /* NOT_SUBMITTED */
2735
2764
  }) => {
2736
- const [c, f] = P([]), [p, h] = P(!0), [_, k] = P(m), { formatMessage: g } = F(), E = async (T) => {
2765
+ const [c, f] = P([]), [p, h] = P(!0), [_, k] = P(u), { formatMessage: g } = F(), E = async (T) => {
2737
2766
  T.preventDefault();
2738
2767
  try {
2739
2768
  await l(c), f([]), k(
@@ -2752,7 +2781,7 @@ const bs = ({
2752
2781
  /* NOT_SUBMITTED */
2753
2782
  ), h(!0), f([]);
2754
2783
  }, S = (T) => {
2755
- T.preventDefault(), d(), k(
2784
+ T.preventDefault(), m(), k(
2756
2785
  "CLOSED"
2757
2786
  /* CLOSED */
2758
2787
  );
@@ -2820,8 +2849,8 @@ const bs = ({
2820
2849
  navigation: { loggedIn: 769, loggedOut: 881 },
2821
2850
  search: { loggedIn: 961, loggedOut: 1121 }
2822
2851
  }, s = (i) => {
2823
- const d = `logged${e ? "In" : "Out"}`;
2824
- return t >= n[i][d];
2852
+ const m = `logged${e ? "In" : "Out"}`;
2853
+ return t >= n[i][m];
2825
2854
  };
2826
2855
  let a = {};
2827
2856
  return ["navigation", "search"].forEach((i) => {
@@ -2839,8 +2868,8 @@ const bs = ({
2839
2868
  return;
2840
2869
  I.handlerCalled[e] = a;
2841
2870
  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 });
2871
+ t === !0 && Object.keys(n).forEach((m) => {
2872
+ m === e || n[m] === !1 || i.push({ type: `menus.${m}`, value: !1 });
2844
2873
  }), s(i);
2845
2874
  },
2846
2875
  // Find the first child inside a ref that matches the `key` (and optional `value`) we're looking for,
@@ -2872,7 +2901,7 @@ const bs = ({
2872
2901
  s[e][i].focus();
2873
2902
  return;
2874
2903
  }
2875
- let d, o;
2904
+ let m, o;
2876
2905
  switch (e) {
2877
2906
  case "navigation":
2878
2907
  if (n) {
@@ -2881,20 +2910,20 @@ const bs = ({
2881
2910
  "attributes.aria-controls",
2882
2911
  "navigation"
2883
2912
  );
2884
- d = I.findFirstChild(l.children, "href");
2913
+ m = I.findFirstChild(l.children, "href");
2885
2914
  } else
2886
- d = I.findFirstChild(t.current.children, "href");
2887
- d || (d = t.current);
2915
+ m = I.findFirstChild(t.current.children, "href");
2916
+ m || (m = t.current);
2888
2917
  break;
2889
2918
  case "account":
2890
2919
  if (o = I.findFirstChild(t.current.children, "className", "account"), !o || !o.children)
2891
2920
  return;
2892
- d = I.findFirstChild(o.children, "href");
2921
+ m = I.findFirstChild(o.children, "href");
2893
2922
  break;
2894
2923
  default:
2895
2924
  return;
2896
2925
  }
2897
- d && (a([{ type: `focusElements.${e}.${i}`, value: d }]), d.focus());
2926
+ m && (a([{ type: `focusElements.${e}.${i}`, value: m }]), m.focus());
2898
2927
  },
2899
2928
  events: {
2900
2929
  onClick: (e, { id: t, callback: n, isOpen: s }) => {
@@ -2997,10 +3026,10 @@ const bs = ({
2997
3026
  },
2998
3027
  doTrack: i = null
2999
3028
  }) => {
3000
- const d = F(), o = un(Xe, e);
3029
+ const m = F(), o = un(Xe, e);
3001
3030
  if (!o || o.onlyShow && (o.onlyShow === "logged-in" && !t || o.onlyShow === "logged-out" && t))
3002
3031
  return null;
3003
- const l = "doTrack" in o, m = i === null ? l ? o.doTrack : !0 : i, c = e.includes("buttons.");
3032
+ const l = "doTrack" in o, u = i === null ? l ? o.doTrack : !0 : i, c = e.includes("buttons.");
3004
3033
  let f = `header_${e.replaceAll(".", "_")}`;
3005
3034
  o.hasVariantText && (f += `_logged${t ? "In" : "Out"}`);
3006
3035
  let p = !1;
@@ -3013,7 +3042,7 @@ const bs = ({
3013
3042
  p = {
3014
3043
  href: o.href,
3015
3044
  role: "menuitem"
3016
- }, m && (p = {
3045
+ }, u && (p = {
3017
3046
  ...p,
3018
3047
  className: "gtm-trackable",
3019
3048
  "data-gtm-event-type": b,
@@ -3051,7 +3080,7 @@ const bs = ({
3051
3080
  });
3052
3081
  }
3053
3082
  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 }),
3083
+ p ? A.createElement(c ? W : "a", p, m.formatMessage({ id: f })) : m.formatMessage({ id: f }),
3055
3084
  o.order && /* @__PURE__ */ r.jsx("ul", { ...E, children: o.order.map((b) => {
3056
3085
  if (!o[b])
3057
3086
  return null;
@@ -3060,10 +3089,10 @@ const bs = ({
3060
3089
  isDesktopVersion: n,
3061
3090
  menus: s,
3062
3091
  callback: a,
3063
- doTrack: l ? m : null
3092
+ doTrack: l ? u : null
3064
3093
  };
3065
3094
  return o[b].order ? /* @__PURE__ */ r.jsxs("li", { className: j({ [o[b].className]: o[b].className }), children: [
3066
- d.formatMessage({ id: `${f}_${b}` }),
3095
+ m.formatMessage({ id: `${f}_${b}` }),
3067
3096
  /* @__PURE__ */ r.jsx("ul", { children: o[b].order.map((T) => /* @__PURE__ */ r.jsx(Ze, { id: `${e}.${b}.${T}`, ...S }, T)) })
3068
3097
  ] }, b) : /* @__PURE__ */ r.jsx(Ze, { id: `${e}.${b}`, ...S }, b);
3069
3098
  }) })
@@ -3073,43 +3102,43 @@ const ws = { height: 67, height_desktop: 83 }, Mn = () => {
3073
3102
  const e = F(), t = ye(je), n = tt(!0, !0), s = t && typeof t.id == "string", a = qe(
3074
3103
  () => I.getIsDesktopVersion(s, n),
3075
3104
  [s, n]
3076
- ), [i, d] = rr($r, {
3105
+ ), [i, m] = rr($r, {
3077
3106
  headerIsVisible: !0,
3078
3107
  menus: { navigation: !1, search: !1, account: !1 },
3079
3108
  focusElements: {
3080
3109
  navigation: { desktop: !1, default: !1 },
3081
3110
  account: { desktop: !1, default: !1 }
3082
3111
  }
3083
- }), { headerIsVisible: o, menus: l, focusElements: m } = i;
3112
+ }), { headerIsVisible: o, menus: l, focusElements: u } = i;
3084
3113
  Sr({
3085
3114
  scrollPosition: ws[`height${a.navigation ? "_desktop" : ""}`],
3086
3115
  callbacks: {
3087
3116
  scrollUp: () => {
3088
- !a && l.navigation || I.shouldChangeHeaderIsVisible(!0, l, d);
3117
+ !a && l.navigation || I.shouldChangeHeaderIsVisible(!0, l, m);
3089
3118
  },
3090
3119
  scrollDown: () => {
3091
- !a && l.navigation || I.shouldChangeHeaderIsVisible(!1, l, d);
3120
+ !a && l.navigation || I.shouldChangeHeaderIsVisible(!1, l, m);
3092
3121
  }
3093
3122
  }
3094
3123
  });
3095
3124
  const c = (p, h) => {
3096
- I.handleMenus({ id: p, value: h, menus: l, dispatch: d });
3125
+ I.handleMenus({ id: p, value: h, menus: l, dispatch: m });
3097
3126
  }, f = ee(null);
3098
3127
  return Ce(() => {
3099
3128
  l.navigation && I.autoFocus({
3100
3129
  menu: "navigation",
3101
3130
  navigationRef: f,
3102
3131
  isDesktopVersion: a.navigation,
3103
- focusElements: m,
3104
- dispatch: d
3132
+ focusElements: u,
3133
+ dispatch: m
3105
3134
  });
3106
3135
  }, [l.navigation]), Ce(() => {
3107
3136
  l.account && I.autoFocus({
3108
3137
  menu: "account",
3109
3138
  navigationRef: f,
3110
3139
  isDesktopVersion: a.navigation,
3111
- focusElements: m,
3112
- dispatch: d
3140
+ focusElements: u,
3141
+ dispatch: m
3113
3142
  });
3114
3143
  }, [l.account]), t && t.isLoading ? null : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
3115
3144
  /* @__PURE__ */ r.jsxs("nav", { id: "header", className: j({ "logged-in": s, "logged-out": !s, visible: o }), children: [
@@ -3203,18 +3232,18 @@ const ks = () => {
3203
3232
  const e = F();
3204
3233
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
3205
3234
  /* @__PURE__ */ r.jsx(Mn, {}),
3206
- /* @__PURE__ */ r.jsx("div", { className: "content", children: /* @__PURE__ */ r.jsx(st, { variant: "error", text: e.formatMessage({ id: "pageLayout_error" }) }) }),
3235
+ /* @__PURE__ */ r.jsx("div", { id: "content", children: /* @__PURE__ */ r.jsx(st, { variant: "error", text: e.formatMessage({ id: "pageLayout_error" }) }) }),
3207
3236
  /* @__PURE__ */ r.jsx(En, {})
3208
3237
  ] });
3209
3238
  }, yo = ({ children: e, reportError: t, showFooter: n = !0, background: s = "default", className: a = "", locale: i = "en" }) => {
3210
- const d = jr();
3239
+ const m = jr();
3211
3240
  z(() => {
3212
3241
  window.scrollTo(0, 0);
3213
- }, [d]);
3242
+ }, [m]);
3214
3243
  const o = gn(e, { locale: i });
3215
3244
  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: [
3216
3245
  /* @__PURE__ */ r.jsx(Mn, {}),
3217
- /* @__PURE__ */ r.jsx("div", { className: "content", children: o }),
3246
+ /* @__PURE__ */ r.jsx("div", { id: "content", children: o }),
3218
3247
  n && /* @__PURE__ */ r.jsx(En, {}),
3219
3248
  /* @__PURE__ */ r.jsx(gs, {})
3220
3249
  ] }) }) }) });
@@ -3256,29 +3285,29 @@ const jo = ({
3256
3285
  canHaveLinks: s = !0,
3257
3286
  className: a = "",
3258
3287
  gtmType: i = "tag-click",
3259
- gtmContext: d = "tags"
3288
+ gtmContext: m = "tags"
3260
3289
  }) => {
3261
3290
  const o = F();
3262
3291
  if (!e || e.length < 1)
3263
3292
  return null;
3264
3293
  const l = [];
3265
- return e.forEach((m) => {
3266
- if (!m)
3294
+ return e.forEach((u) => {
3295
+ if (!u)
3267
3296
  return;
3268
- const c = ys.getTagDetails(m);
3297
+ const c = ys.getTagDetails(u);
3269
3298
  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(
3299
+ }), l.length < 1 ? null : /* @__PURE__ */ r.jsx("ul", { className: j("tags text-small", t, a, { "one-line": n }), children: l.map((u) => {
3300
+ const c = o.formatMessage({ id: u.text });
3301
+ return /* @__PURE__ */ r.jsx("li", { children: u.href && s ? /* @__PURE__ */ r.jsx(
3273
3302
  "a",
3274
3303
  {
3275
- href: m.href,
3304
+ href: u.href,
3276
3305
  className: "gtm-trackable",
3277
3306
  "data-gtm-event-type": i,
3278
- "data-gtm-event-context": d,
3307
+ "data-gtm-event-context": m,
3279
3308
  children: c
3280
3309
  }
3281
- ) : c }, m.id);
3310
+ ) : c }, u.id);
3282
3311
  }) });
3283
3312
  };
3284
3313
  const Eo = ({
@@ -3288,15 +3317,15 @@ const Eo = ({
3288
3317
  gtmType: a = "member-click",
3289
3318
  className: i = ""
3290
3319
  }) => {
3291
- const d = F();
3320
+ const m = F();
3292
3321
  return t.length === 0 ? null : (e || (e = t.length), /* @__PURE__ */ r.jsxs("div", { className: j("members-list", i), children: [
3293
3322
  /* @__PURE__ */ r.jsxs("h1", { children: [
3294
- d.formatMessage({ id: "membersList" }),
3323
+ m.formatMessage({ id: "membersList" }),
3295
3324
  /* @__PURE__ */ r.jsx("span", { className: "count", children: e })
3296
3325
  ] }),
3297
3326
  /* @__PURE__ */ r.jsx("ul", { children: t.map((o, l) => /* @__PURE__ */ r.jsxs("li", { children: [
3298
3327
  /* @__PURE__ */ r.jsx(Ft, { member: o, gtmContext: s, gtmType: a }),
3299
- o.isAdmin && /* @__PURE__ */ r.jsx(qr, { children: d.formatMessage({ id: "membersList_admin" }) })
3328
+ o.isAdmin && /* @__PURE__ */ r.jsx(qr, { children: m.formatMessage({ id: "membersList_admin" }) })
3300
3329
  ] }, l)) }),
3301
3330
  n && /* @__PURE__ */ r.jsx(
3302
3331
  fs,
@@ -3321,7 +3350,7 @@ const ae = "discussion_form_", Cn = ({
3321
3350
  inputRef: s,
3322
3351
  maxLength: a = 5e4,
3323
3352
  minRows: i = 4,
3324
- forceShow: d = {
3353
+ forceShow: m = {
3325
3354
  cancel: !1,
3326
3355
  error: !1
3327
3356
  },
@@ -3341,9 +3370,9 @@ const ae = "discussion_form_", Cn = ({
3341
3370
  gtmContext: l = "DiscussionForm"
3342
3371
  }) => {
3343
3372
  var N, q;
3344
- const m = F(), c = ye(je), [f, p] = P(
3373
+ const u = F(), c = ye(je), [f, p] = P(
3345
3374
  n.isEditing && n.isEditing.text || ""
3346
- ), [h, _] = P(d.error || !1), [k, g] = P(!1), E = ee(null);
3375
+ ), [h, _] = P(m.error || !1), [k, g] = P(!1), E = ee(null);
3347
3376
  if (s || (s = E), n.isLoading)
3348
3377
  return /* @__PURE__ */ r.jsx(
3349
3378
  be,
@@ -3357,12 +3386,12 @@ const ae = "discussion_form_", Cn = ({
3357
3386
  p(G);
3358
3387
  let L;
3359
3388
  !c || !c.id ? L = he(
3360
- m.formatMessage,
3389
+ u.formatMessage,
3361
3390
  `${ae}error_loggedOut`,
3362
3391
  e.type,
3363
3392
  "action"
3364
3393
  ) : t ? G.length >= a && (L = `${ae}error_tooLong`) : L = he(
3365
- m.formatMessage,
3394
+ u.formatMessage,
3366
3395
  `${ae}error_noPermission`,
3367
3396
  e.type,
3368
3397
  "action"
@@ -3414,12 +3443,12 @@ const ae = "discussion_form_", Cn = ({
3414
3443
  const U = B;
3415
3444
  let Y = `${ae}error`;
3416
3445
  U.message.includes("entry already exists") && (Y = he(
3417
- m.formatMessage,
3446
+ u.formatMessage,
3418
3447
  `${ae}error_alreadyExists`,
3419
3448
  e.type,
3420
3449
  "action"
3421
3450
  )), U.message.includes("429") ? Y = he(
3422
- m.formatMessage,
3451
+ u.formatMessage,
3423
3452
  `${ae}error_tooMany`,
3424
3453
  e.type,
3425
3454
  "action"
@@ -3430,15 +3459,15 @@ const ae = "discussion_form_", Cn = ({
3430
3459
  _(!1), g(!1);
3431
3460
  }, 5e3);
3432
3461
  }, Q = !f || !Rr(f), V = k === "submitting", v = [];
3433
- return (n.isEditing && !V || d.cancel) && v.push({
3462
+ return (n.isEditing && !V || m.cancel) && v.push({
3434
3463
  variant: "secondary",
3435
3464
  size: { mobile: "small", 600: "medium" },
3436
3465
  onClick: o.handleCancel,
3437
3466
  className: "gtm-trackable",
3438
3467
  "data-gtm-event-context": l,
3439
3468
  "data-gtm-event-type": `cancel-${e.type}-click`,
3440
- disabled: !d.cancel && (!c || !c.id || !f),
3441
- children: m.formatMessage({ id: `${ae}cancel` })
3469
+ disabled: !m.cancel && (!c || !c.id || !f),
3470
+ children: u.formatMessage({ id: `${ae}cancel` })
3442
3471
  }), v.push({
3443
3472
  variant: "primary",
3444
3473
  size: { mobile: "small", 600: "medium" },
@@ -3456,7 +3485,7 @@ const ae = "discussion_form_", Cn = ({
3456
3485
  "data-gtm-event-type": `${n.isEditing ? "save" : "submit"}-${e.type}-click`,
3457
3486
  "data-testid": "save-button",
3458
3487
  disabled: !c || !c.id || !t || Q || V || n.isEditing && f === n.isEditing.text,
3459
- children: m.formatMessage({
3488
+ children: u.formatMessage({
3460
3489
  id: `${ae}${V ? n.isEditing ? "saving" : "posting" : n.isEditing ? "save" : "post"}`
3461
3490
  })
3462
3491
  }), /* @__PURE__ */ r.jsxs(
@@ -3468,7 +3497,7 @@ const ae = "discussion_form_", Cn = ({
3468
3497
  }),
3469
3498
  "data-testid": `discussion-${e.type}-form`,
3470
3499
  children: [
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") }),
3500
+ (n == null ? void 0 : n.showTitle) && !n.isEditing && ["question"].includes(e.type) && /* @__PURE__ */ r.jsx("h2", { children: he(u.formatMessage, `${ae}title`, e.type, "action") }),
3472
3501
  /* @__PURE__ */ r.jsx(
3473
3502
  Ft,
3474
3503
  {
@@ -3477,7 +3506,7 @@ const ae = "discussion_form_", Cn = ({
3477
3506
  gtmType: "profile-click"
3478
3507
  }
3479
3508
  ),
3480
- /* @__PURE__ */ r.jsx(re, { element: "label", showOnFocus: !1, htmlFor: `${S}-input`, children: he(m.formatMessage, `${ae}label`, e.type, "action") }),
3509
+ /* @__PURE__ */ r.jsx(re, { element: "label", showOnFocus: !1, htmlFor: `${S}-input`, children: he(u.formatMessage, `${ae}label`, e.type, "action") }),
3481
3510
  /* @__PURE__ */ r.jsx(
3482
3511
  gr,
3483
3512
  {
@@ -3485,7 +3514,7 @@ const ae = "discussion_form_", Cn = ({
3485
3514
  id: `${S}-input`,
3486
3515
  name: e.type,
3487
3516
  placeholder: he(
3488
- m.formatMessage,
3517
+ u.formatMessage,
3489
3518
  `${ae}placeholder`,
3490
3519
  e.type,
3491
3520
  "action"
@@ -3499,7 +3528,7 @@ const ae = "discussion_form_", Cn = ({
3499
3528
  autoFocus: !!n.isEditing
3500
3529
  }
3501
3530
  ),
3502
- /* @__PURE__ */ r.jsx("small", { children: he(m.formatMessage, `${ae}explainer`, e.type, "action", {
3531
+ /* @__PURE__ */ r.jsx("small", { children: he(u.formatMessage, `${ae}explainer`, e.type, "action", {
3503
3532
  a: (w) => /* @__PURE__ */ r.jsx(
3504
3533
  "a",
3505
3534
  {
@@ -3514,11 +3543,11 @@ const ae = "discussion_form_", Cn = ({
3514
3543
  )
3515
3544
  }) }),
3516
3545
  /* @__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(
3546
+ k === "submitted" && /* @__PURE__ */ r.jsx(Mt, { className: "success", "data-testid": "success", children: he(u.formatMessage, `${ae}success`, e.type, "action") }),
3547
+ h && /* @__PURE__ */ r.jsx(Mt, { id: "error-message", className: "error", "data-testid": "error", children: m.error ? m.error : typeof h == "string" ? h.includes(" ") ? h : u.formatMessage(
3519
3548
  { id: h },
3520
3549
  {
3521
- action: m.formatMessage({
3550
+ action: u.formatMessage({
3522
3551
  id: `discussion_action_${e.type}`
3523
3552
  }),
3524
3553
  maxLength: a
@@ -3530,11 +3559,11 @@ const ae = "discussion_form_", Cn = ({
3530
3559
  }, Nn = ({
3531
3560
  contentType: e,
3532
3561
  createPost: t,
3533
- membershipRequiredToPost: { isMember: n, required: s, join: a, leave: i, notMemberStateText: d }
3562
+ membershipRequiredToPost: { isMember: n, required: s, join: a, leave: i, notMemberStateText: m }
3534
3563
  }) => s && !n ? /* @__PURE__ */ r.jsx(
3535
3564
  st,
3536
3565
  {
3537
- text: d,
3566
+ text: m,
3538
3567
  button: {
3539
3568
  component: /* @__PURE__ */ r.jsx(yn, { functions: { join: a, leave: i } })
3540
3569
  }
@@ -3575,23 +3604,23 @@ const wt = () => {
3575
3604
  isShort: s = !0,
3576
3605
  userLiked: a = !1,
3577
3606
  content: i = { type: "reply", slugs: {} },
3578
- canLike: d = !0,
3607
+ canLike: m = !0,
3579
3608
  functions: { createLike: o = () => {
3580
3609
  }, deleteLike: l = () => {
3581
3610
  } } = {}
3582
3611
  }) => {
3583
- const m = F();
3612
+ const u = F();
3584
3613
  z(() => {
3585
3614
  h(a);
3586
3615
  }, [a]);
3587
3616
  const [c, f] = P(t), [p, h] = P(a), [_, k] = P(!1), [g, E] = P(!1), b = qe(() => Ss(n, kt), [n]), S = (M) => {
3588
3617
  if (M.preventDefault(), M.stopPropagation(), E(!1), Le)
3589
3618
  return wt(), !1;
3590
- if (wt(), _ || !d)
3619
+ if (wt(), _ || !m)
3591
3620
  return !1;
3592
3621
  Le = setTimeout(T, 350);
3593
3622
  }, T = async () => {
3594
- if (wt(), _ || !d)
3623
+ if (wt(), _ || !m)
3595
3624
  return !1;
3596
3625
  let M = p ? c - 1 : c + 1;
3597
3626
  M < 0 && (M = 0), k(!0), f(M), h(!p);
@@ -3609,7 +3638,7 @@ const wt = () => {
3609
3638
  return A.createElement(
3610
3639
  e,
3611
3640
  {
3612
- className: j("likes-wrapper text-medium action-button", { "show-spinner": _, "is-liked": p, disabled: !d }),
3641
+ className: j("likes-wrapper text-medium action-button", { "show-spinner": _, "is-liked": p, disabled: !m }),
3613
3642
  onClick: S,
3614
3643
  onMouseEnter: () => {
3615
3644
  E(!0);
@@ -3631,21 +3660,21 @@ const wt = () => {
3631
3660
  size: "medium",
3632
3661
  icon: { icon: p ? "heart" : "heart_empty", animate: "bounce" },
3633
3662
  className: j({ "do-animation": p && !a }),
3634
- screenreaderText: d ? m.formatMessage({
3663
+ screenreaderText: m ? u.formatMessage({
3635
3664
  id: `discussion_likes_${p ? "unlike" : "like"}`
3636
- }, { action: m.formatMessage({ id: `discussion_action_${i.type}` }) }) : !1,
3665
+ }, { action: u.formatMessage({ id: `discussion_action_${i.type}` }) }) : !1,
3637
3666
  onClick: S,
3638
- disabled: !d,
3639
- "aria-hidden": !d,
3667
+ disabled: !m,
3668
+ "aria-hidden": !m,
3640
3669
  "data-testid": "like-button",
3641
3670
  "data-gtm-event-context": "Likes",
3642
3671
  "data-gtm-event-type": `like-${i.type}-click`
3643
3672
  }
3644
3673
  ),
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 }) }),
3674
+ /* @__PURE__ */ r.jsx("span", { className: j("number-of-likes", { "no-likes": c === 0 }), "data-testid": "number-of-likes", children: u.formatMessage({ id: `discussion_likes${s ? "_short" : ""}` }, { number: c }) }),
3646
3675
  n && /* @__PURE__ */ r.jsx(Ir, { isOpen: g, isLoading: n.length === 0, children: n.length && /* @__PURE__ */ r.jsxs("ul", { children: [
3647
3676
  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 }) })
3677
+ n.length > kt && /* @__PURE__ */ r.jsx("li", { children: u.formatMessage({ id: "discussion_likes_more" }, { number: n.length - kt }) })
3649
3678
  ] }) })
3650
3679
  ] })
3651
3680
  }
@@ -3667,10 +3696,10 @@ const Dn = ({
3667
3696
  functions: { onOpen: a = () => {
3668
3697
  }, onClose: i = () => {
3669
3698
  } } = {},
3670
- forceShow: { error: d = !1 } = {},
3699
+ forceShow: { error: m = !1 } = {},
3671
3700
  title: o,
3672
3701
  children: l,
3673
- buttons: m,
3702
+ buttons: u,
3674
3703
  className: c = "",
3675
3704
  gtmContext: f = "Modal"
3676
3705
  }) => {
@@ -3707,11 +3736,11 @@ const Dn = ({
3707
3736
  ] }),
3708
3737
  n && /* @__PURE__ */ r.jsx(Ne, {}),
3709
3738
  l,
3710
- m && /* @__PURE__ */ r.jsxs("div", { className: "bottom", children: [
3739
+ u && /* @__PURE__ */ r.jsxs("div", { className: "bottom", children: [
3711
3740
  /* @__PURE__ */ r.jsx(Ne, {}),
3712
- /* @__PURE__ */ r.jsx(nt, { buttons: m })
3741
+ /* @__PURE__ */ r.jsx(nt, { buttons: u })
3713
3742
  ] }),
3714
- d && /* @__PURE__ */ r.jsx(Mt, { className: "error", children: d })
3743
+ m && /* @__PURE__ */ r.jsx(Mt, { className: "error", children: m })
3715
3744
  ] })
3716
3745
  }
3717
3746
  ) });
@@ -3725,20 +3754,21 @@ const $o = ({
3725
3754
  showModal: t = !0,
3726
3755
  title: n,
3727
3756
  formTitle: s = "Know someone who might like to join this workshop?",
3728
- formLabel: a = "Send an invitation to your colleagues below",
3729
- ctaMessage: i = "Send invites",
3730
- showIcon: d,
3757
+ formLabel: a = "Invite your colleagues by typing or pasting their emails below.",
3758
+ ctaMessage: i = "Send",
3759
+ showIcon: m,
3731
3760
  onClose: o,
3732
3761
  reportError: l = () => {
3733
3762
  },
3734
- sendInvites: m
3763
+ sendInvites: u
3735
3764
  }) => /* @__PURE__ */ r.jsx(
3736
3765
  Dn,
3737
3766
  {
3738
3767
  title: n,
3739
3768
  isOpen: t,
3740
3769
  showDivider: !1,
3741
- showIcon: d,
3770
+ showIcon: m,
3771
+ functions: { onClose: o },
3742
3772
  className: j("invite-modal", e, { success: !!n }),
3743
3773
  children: /* @__PURE__ */ r.jsx(
3744
3774
  bs,
@@ -3747,7 +3777,7 @@ const $o = ({
3747
3777
  label: a,
3748
3778
  ctaMessage: i,
3749
3779
  onClose: o,
3750
- sendInvites: m,
3780
+ sendInvites: u,
3751
3781
  reportError: l
3752
3782
  }
3753
3783
  )
@@ -3763,7 +3793,7 @@ const xe = "discussion_", Cs = 280, Ot = ({
3763
3793
  isLoading: s = !1,
3764
3794
  originalAuthorId: a,
3765
3795
  functions: {
3766
- content: { createContent: i, deleteContent: d, updateContent: o } = {
3796
+ content: { createContent: i, deleteContent: m, updateContent: o } = {
3767
3797
  createContent: () => {
3768
3798
  },
3769
3799
  deleteContent: () => {
@@ -3771,7 +3801,7 @@ const xe = "discussion_", Cs = 280, Ot = ({
3771
3801
  updateContent: () => {
3772
3802
  }
3773
3803
  },
3774
- likes: { createLike: l, deleteLike: m } = { createLike: () => {
3804
+ likes: { createLike: l, deleteLike: u } = { createLike: () => {
3775
3805
  }, deleteLike: () => {
3776
3806
  } },
3777
3807
  comments: { openComments: c } = { openComments: () => {
@@ -3814,7 +3844,7 @@ const xe = "discussion_", Cs = 280, Ot = ({
3814
3844
  }, 0);
3815
3845
  }, ue = () => {
3816
3846
  try {
3817
- d(ln(t.slugs));
3847
+ m(ln(t.slugs));
3818
3848
  } catch {
3819
3849
  v("delete-error");
3820
3850
  }
@@ -3950,7 +3980,7 @@ const xe = "discussion_", Cs = 280, Ot = ({
3950
3980
  canLike: ie,
3951
3981
  functions: {
3952
3982
  createLike: l,
3953
- deleteLike: m
3983
+ deleteLike: u
3954
3984
  }
3955
3985
  }
3956
3986
  ),
@@ -4072,19 +4102,19 @@ const yt = "discussion_responses_", To = ({ type: e = "answer", responses: t = 0
4072
4102
  ] });
4073
4103
  };
4074
4104
  const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4075
- const s = F(), a = ee(null), [i, d] = P(e), [o, l] = P("closed");
4105
+ const s = F(), a = ee(null), [i, m] = P(e), [o, l] = P("closed");
4076
4106
  z(() => {
4077
4107
  const p = a.current;
4078
4108
  if (p)
4079
- return p.addEventListener("transitionend", m), () => {
4080
- p.removeEventListener("transitionend", m);
4109
+ return p.addEventListener("transitionend", u), () => {
4110
+ p.removeEventListener("transitionend", u);
4081
4111
  };
4082
4112
  }, []), Ce(() => {
4083
4113
  o === "closed" && !i || l(["opening", "open"].includes(o) ? "ready-to-close" : "opening");
4084
4114
  }, [i]), z(() => {
4085
4115
  o === "ready-to-close" && l("closing");
4086
4116
  }, [o]);
4087
- const m = ({ propertyName: p }) => {
4117
+ const u = ({ propertyName: p }) => {
4088
4118
  p === "max-height" && l((h) => h === "opening" ? "open" : h === "closing" ? "closed" : h);
4089
4119
  }, c = ["opening", "open"].includes(o), f = gn(n, { element: "li" });
4090
4120
  return /* @__PURE__ */ r.jsxs("div", { className: "thread-wrapper", children: [
@@ -4096,7 +4126,7 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4096
4126
  styling: { muted: !0 },
4097
4127
  icon: { icon: `arrow_corner-down_${c ? "left" : "right"}` },
4098
4128
  onClick: () => {
4099
- d(!i);
4129
+ m(!i);
4100
4130
  },
4101
4131
  children: s.formatMessage({ id: `discussion_thread_${c ? "hide" : "show"}` }, { count: t })
4102
4132
  }
@@ -4134,10 +4164,10 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4134
4164
  return;
4135
4165
  const l = Ns({ user: n, content: o, verb: "post" });
4136
4166
  await e.cancelQueries({ queryKey: t });
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);
4167
+ const u = e.getQueryData(t);
4168
+ return e.setQueryData(t, (c) => [...c, l]), { previousActivities: u };
4169
+ }, onError: (o, l, u) => {
4170
+ e.setQueryData(t, u.previousActivities);
4141
4171
  }, onSettled: () => {
4142
4172
  e.invalidateQueries({ queryKey: t });
4143
4173
  } }), Ds = ({
@@ -4147,16 +4177,16 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4147
4177
  }) => ({
4148
4178
  mutationFn: n,
4149
4179
  onMutate: async ({
4150
- activityInfo: d,
4180
+ activityInfo: m,
4151
4181
  content: { body: o }
4152
4182
  }) => {
4153
4183
  if (o.length === 0)
4154
4184
  return;
4155
4185
  await e.cancelQueries({ queryKey: t });
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 };
4186
+ const l = e.getQueryData(t), u = l == null ? void 0 : l.map((c) => ((c == null ? void 0 : c.id) === (m == null ? void 0 : m.activityId) && (c.content = o), c));
4187
+ return e.setQueryData(t, () => u && [...u]), { previousActivities: u };
4158
4188
  },
4159
- onError: (d, o, l) => {
4189
+ onError: (m, o, l) => {
4160
4190
  e.setQueryData(t, l.previousActivities);
4161
4191
  },
4162
4192
  onSettled: () => {
@@ -4168,19 +4198,19 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4168
4198
  mutationFn: n
4169
4199
  }) => ({ mutationFn: n, onMutate: async ({ activityId: o }) => {
4170
4200
  await e.cancelQueries({ queryKey: t });
4171
- const l = e.getQueryData(t), m = l == null ? void 0 : l.map((c) => {
4201
+ const l = e.getQueryData(t), u = l == null ? void 0 : l.map((c) => {
4172
4202
  var f;
4173
4203
  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;
4174
4204
  });
4175
- return e.setQueryData(t, () => m && [...m]), { previousActivities: m };
4176
- }, onError: (o, l, m) => {
4177
- e.setQueryData(t, m.previousActivities);
4205
+ return e.setQueryData(t, () => u && [...u]), { previousActivities: u };
4206
+ }, onError: (o, l, u) => {
4207
+ e.setQueryData(t, u.previousActivities);
4178
4208
  }, 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) => {
4209
+ const l = e.getQueryData(t), u = 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));
4210
+ return e.setQueryData(t, () => u && [...u]), { previousActivities: l };
4211
+ }, onSettled: (o, l, u) => {
4182
4212
  e.invalidateQueries({
4183
- queryKey: [...t, m.activityId]
4213
+ queryKey: [...t, u.activityId]
4184
4214
  });
4185
4215
  } }), Fs = ({
4186
4216
  queryClient: e,
@@ -4189,17 +4219,17 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4189
4219
  mutationFn: s
4190
4220
  }) => ({ mutationFn: s, onMutate: async ({ activityId: l }) => {
4191
4221
  await e.cancelQueries({ queryKey: t });
4192
- const m = e.getQueryData(t), c = m == null ? void 0 : m.map((f) => {
4222
+ const u = e.getQueryData(t), c = u == null ? void 0 : u.map((f) => {
4193
4223
  var p;
4194
4224
  return (f == null ? void 0 : f.id) === l && (p = f.reaction_counts) != null && p.like && (f.reaction_counts.like -= 1), f;
4195
4225
  });
4196
4226
  return e.setQueryData(t, () => c && [...c]), { previousActivities: c };
4197
- }, onError: (l, m, c) => {
4227
+ }, onError: (l, u, c) => {
4198
4228
  e.setQueryData(t, c.previousActivities);
4199
- }, onSuccess: (l, { activityId: m }) => {
4229
+ }, onSuccess: (l, { activityId: u }) => {
4200
4230
  const c = e.getQueryData(t), f = c == null ? void 0 : c.map((p) => {
4201
4231
  var h, _, k, g;
4202
- if (p.id === m) {
4232
+ if (p.id === u) {
4203
4233
  const E = (k = (_ = (h = p.latest_reactions) == null ? void 0 : h.like) == null ? void 0 : _.find(
4204
4234
  (b) => b.user_id === (n == null ? void 0 : n.id)
4205
4235
  )) == null ? void 0 : k.id;
@@ -4210,7 +4240,7 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4210
4240
  return p;
4211
4241
  });
4212
4242
  return e.setQueryData(t, () => f && [...f]), { previousActivities: c };
4213
- }, onSettled: (l, m, c) => {
4243
+ }, onSettled: (l, u, c) => {
4214
4244
  e.invalidateQueries({
4215
4245
  queryKey: [...t, c.activityId]
4216
4246
  });
@@ -4218,7 +4248,7 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4218
4248
  basePath: e,
4219
4249
  parentId: t,
4220
4250
  isMember: n,
4221
- functions: { list: s, create: a, edit: i, like: d, unlike: o, join: l, leave: m }
4251
+ functions: { list: s, create: a, edit: i, like: m, unlike: o, join: l, leave: u }
4222
4252
  }) => {
4223
4253
  const c = F(), f = At(), p = ye(je), {
4224
4254
  data: h,
@@ -4242,7 +4272,7 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4242
4272
  } = fe(S), M = Ps({
4243
4273
  queryClient: f,
4244
4274
  queryKey: [e, t],
4245
- mutationFn: d
4275
+ mutationFn: m
4246
4276
  }), {
4247
4277
  mutate: Q
4248
4278
  } = fe(M), V = Fs({
@@ -4277,7 +4307,7 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4277
4307
  isMember: n,
4278
4308
  required: !0,
4279
4309
  join: l,
4280
- leave: m,
4310
+ leave: u,
4281
4311
  notMemberStateText: c.formatMessage({ id: "community_joinToPost" })
4282
4312
  }
4283
4313
  }
@@ -4344,13 +4374,13 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4344
4374
  mutationFn: n
4345
4375
  }) => ({ mutationFn: n, onMutate: async () => {
4346
4376
  await e.cancelQueries({ queryKey: t });
4347
- }, onError: (o, l, m) => {
4348
- e.setQueryData(t, m.previousActivity);
4377
+ }, onError: (o, l, u) => {
4378
+ e.setQueryData(t, u.previousActivity);
4349
4379
  }, onSuccess: (o) => {
4350
- var m;
4380
+ var u;
4351
4381
  const l = e.getQueryData(t);
4352
4382
  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 = {
4383
+ return (u = l == null ? void 0 : l.latest_reactions) != null && u.reply ? (l.latest_reactions.reply.unshift(o), l && (l.reaction_counts = {
4354
4384
  reply: l.latest_reactions.reply.length
4355
4385
  })) : (l.latest_reactions = { reply: [o] }, l.reaction_counts = { reply: 1 }), e.setQueryData(t, () => ({
4356
4386
  ...l
@@ -4365,44 +4395,44 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4365
4395
  mutationFn: n,
4366
4396
  onMutate: async ({
4367
4397
  replyInfo: i,
4368
- content: { body: d }
4398
+ content: { body: m }
4369
4399
  }) => {
4370
- var m, c, f;
4371
- if (d.length === 0)
4400
+ var u, c, f;
4401
+ if (m.length === 0)
4372
4402
  return;
4373
4403
  await e.cancelQueries({ queryKey: t });
4374
4404
  const o = e.getQueryData(t);
4375
- if (!o || !((m = o == null ? void 0 : o.latest_reactions) != null && m.reply))
4405
+ if (!o || !((u = o == null ? void 0 : o.latest_reactions) != null && u.reply))
4376
4406
  return;
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));
4407
+ 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 = m), p));
4378
4408
  return e.setQueryData(t, () => ({
4379
4409
  ...o,
4380
4410
  latest_reactions: { reply: l }
4381
4411
  })), { previousActivity: o };
4382
4412
  },
4383
- onError: (i, d, o) => {
4413
+ onError: (i, m, o) => {
4384
4414
  e.setQueryData(t, o.previousActivity);
4385
4415
  }
4386
4416
  }), Ls = ({
4387
4417
  queryClient: e,
4388
4418
  queryKey: t,
4389
4419
  mutationFn: n
4390
- }) => ({ mutationFn: n, onMutate: async ({ replyId: d }) => {
4391
- var m, c;
4420
+ }) => ({ mutationFn: n, onMutate: async ({ replyId: m }) => {
4421
+ var u, c;
4392
4422
  await e.cancelQueries({ queryKey: t });
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) => {
4423
+ const o = e.getQueryData(t), l = (c = (u = o == null ? void 0 : o.latest_reactions) == null ? void 0 : u.reply) == null ? void 0 : c.map((f) => {
4394
4424
  var p;
4395
- return f.id === d && ((p = f.children_counts) != null && p.like ? f.children_counts.like += 1 : f.children_counts = { like: 1 }), f;
4425
+ return f.id === m && ((p = f.children_counts) != null && p.like ? f.children_counts.like += 1 : f.children_counts = { like: 1 }), f;
4396
4426
  });
4397
4427
  return e.setQueryData(t, () => ({
4398
4428
  ...o,
4399
4429
  latest_reactions: { reply: l }
4400
4430
  })), { previousActivity: o };
4401
- }, onError: (d, o, l) => {
4431
+ }, onError: (m, o, l) => {
4402
4432
  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));
4433
+ }, onSuccess: (m) => {
4434
+ var u;
4435
+ const o = e.getQueryData(t), l = (u = o == null ? void 0 : o.latest_reactions.reply) == null ? void 0 : u.map((c) => (c.id === m.id && (c.latest_children.like ? c.latest_children.like.push(m) : c.latest_children.like = [m]), c));
4406
4436
  return e.setQueryData(t, () => ({
4407
4437
  ...o,
4408
4438
  latest_reactions: { reply: l }
@@ -4418,35 +4448,35 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4418
4448
  const l = e.getQueryData(t);
4419
4449
  if (!l)
4420
4450
  return;
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));
4451
+ const u = (c = l.latest_reactions.reply) == null ? void 0 : c.map((f) => (f.id === o && f.children_counts.like && (f.children_counts.like -= 1), f));
4422
4452
  return e.setQueryData(t, () => ({
4423
4453
  ...l,
4424
- latest_reactions: { reply: m }
4454
+ latest_reactions: { reply: u }
4425
4455
  })), { previousActivity: l };
4426
- }, onError: (o, l, m) => {
4427
- e.setQueryData(t, m.previousActivity);
4456
+ }, onError: (o, l, u) => {
4457
+ e.setQueryData(t, u.previousActivity);
4428
4458
  }, onSuccess: (o, { replyId: l }) => {
4429
4459
  var f;
4430
- const m = e.getQueryData(t);
4431
- if (!m)
4460
+ const u = e.getQueryData(t);
4461
+ if (!u)
4432
4462
  return;
4433
- const c = (f = m.latest_reactions.reply) == null ? void 0 : f.map((p) => {
4463
+ const c = (f = u.latest_reactions.reply) == null ? void 0 : f.map((p) => {
4434
4464
  var h;
4435
4465
  return p.id === l ? (h = p.latest_children.reply) == null ? void 0 : h.filter(
4436
4466
  (k) => k.user_id !== (n == null ? void 0 : n.id)
4437
4467
  ) : p;
4438
4468
  });
4439
4469
  return e.setQueryData(t, () => ({
4440
- ...m,
4470
+ ...u,
4441
4471
  latest_reactions: { reply: c }
4442
- })), { previousActivity: m };
4472
+ })), { previousActivity: u };
4443
4473
  } }), Is = ({
4444
4474
  basePath: e,
4445
4475
  parentId: t,
4446
4476
  activityId: n,
4447
4477
  repliesList: s,
4448
4478
  isMember: a,
4449
- functions: { createReply: i, editReply: d, like: o, unlike: l, join: m, leave: c }
4479
+ functions: { createReply: i, editReply: m, like: o, unlike: l, join: u, leave: c }
4450
4480
  }) => {
4451
4481
  const f = F(), p = At(), h = ye(je), _ = Rs({
4452
4482
  queryClient: p,
@@ -4455,7 +4485,7 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4455
4485
  }), { mutate: k } = fe(_), g = Os({
4456
4486
  queryClient: p,
4457
4487
  queryKey: [e, t, n],
4458
- mutationFn: async (v) => d(v)
4488
+ mutationFn: async (v) => m(v)
4459
4489
  }), {
4460
4490
  mutate: E
4461
4491
  } = fe(g), b = Ls({
@@ -4487,7 +4517,7 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4487
4517
  membershipRequiredToPost: {
4488
4518
  isMember: a,
4489
4519
  required: !0,
4490
- join: m,
4520
+ join: u,
4491
4521
  leave: c,
4492
4522
  notMemberStateText: f.formatMessage({ id: "community_joinToPost" })
4493
4523
  }
@@ -4552,18 +4582,18 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4552
4582
  }) => ({
4553
4583
  mutationFn: n,
4554
4584
  onMutate: async ({
4555
- activityInfo: d,
4585
+ activityInfo: m,
4556
4586
  content: { body: o }
4557
4587
  }) => {
4558
4588
  if (o.length === 0)
4559
4589
  return;
4560
4590
  await e.cancelQueries({ queryKey: t });
4561
4591
  const l = e.getQueryData(t);
4562
- return l && l.id === (d == null ? void 0 : d.activityId) && (l.content = o), e.setQueryData(t, () => ({
4592
+ return l && l.id === (m == null ? void 0 : m.activityId) && (l.content = o), e.setQueryData(t, () => ({
4563
4593
  ...l
4564
4594
  })), { previousActivity: l };
4565
4595
  },
4566
- onError: (d, o, l) => {
4596
+ onError: (m, o, l) => {
4567
4597
  e.setQueryData(t, l.previousActivity);
4568
4598
  },
4569
4599
  onSettled: () => {
@@ -4580,8 +4610,8 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4580
4610
  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
4611
  ...o
4582
4612
  })), { previousActivity: o };
4583
- }, onError: (o, l, m) => {
4584
- e.setQueryData(t, m.previousActivity);
4613
+ }, onError: (o, l, u) => {
4614
+ e.setQueryData(t, u.previousActivity);
4585
4615
  }, onSuccess: (o) => {
4586
4616
  const l = e.getQueryData(t);
4587
4617
  return l != null && l.latest_reactions.like ? l.latest_reactions.like.push(o) : l && (l.latest_reactions = { like: [o] }), e.setQueryData(t, () => ({
@@ -4598,22 +4628,22 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
4598
4628
  }) => ({ mutationFn: a, onMutate: async () => {
4599
4629
  var c;
4600
4630
  await e.cancelQueries({ queryKey: t });
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) => {
4631
+ const u = e.getQueryData(t);
4632
+ return (c = u == null ? void 0 : u.reaction_counts) != null && c.like && u.reaction_counts.like > 0 && (u.reaction_counts.like -= 1), e.setQueryData(t, () => ({
4633
+ ...u
4634
+ })), { previousActivity: u };
4635
+ }, onError: (u, c, f) => {
4606
4636
  e.setQueryData(t, f.previousActivity);
4607
4637
  }, onSuccess: () => {
4608
4638
  var f, p, h;
4609
4639
  if (!s)
4610
4640
  return;
4611
- const m = (h = (p = (f = s.latest_reactions) == null ? void 0 : f.like) == null ? void 0 : p.find(
4641
+ const u = (h = (p = (f = s.latest_reactions) == null ? void 0 : f.like) == null ? void 0 : p.find(
4612
4642
  (_) => _.user_id === (n == null ? void 0 : n.id)
4613
4643
  )) == null ? void 0 : h.id, c = e.getQueryData(t);
4614
4644
  if (c != null && c.latest_reactions.like)
4615
4645
  return c.latest_reactions.like = c.latest_reactions.like.filter(
4616
- (_) => _.id !== m
4646
+ (_) => _.id !== u
4617
4647
  ), e.setQueryData(t, () => ({
4618
4648
  ...c
4619
4649
  })), { previousActivity: c };
@@ -4628,10 +4658,10 @@ const No = ({
4628
4658
  functions: {
4629
4659
  get: a,
4630
4660
  editActivity: i,
4631
- likeActivity: d,
4661
+ likeActivity: m,
4632
4662
  unlikeActivity: o,
4633
4663
  createReply: l,
4634
- editReply: m,
4664
+ editReply: u,
4635
4665
  likeReply: c,
4636
4666
  unlikeReply: f,
4637
4667
  join: p,
@@ -4656,7 +4686,7 @@ const No = ({
4656
4686
  } = fe(T), Q = Qs({
4657
4687
  queryClient: k,
4658
4688
  queryKey: [e, t, n],
4659
- mutationFn: d
4689
+ mutationFn: m
4660
4690
  }), {
4661
4691
  mutate: V
4662
4692
  } = fe(Q), v = Us({
@@ -4747,7 +4777,7 @@ const No = ({
4747
4777
  createReply: l,
4748
4778
  like: c,
4749
4779
  unlike: f,
4750
- editReply: m,
4780
+ editReply: u,
4751
4781
  join: p,
4752
4782
  leave: h
4753
4783
  }