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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.js +7 -7
  2. package/index.mjs +225 -225
  3. package/package.json +1 -1
package/index.mjs CHANGED
@@ -99,25 +99,25 @@ function ir() {
99
99
  function k(u) {
100
100
  if (u === null || typeof u != "object")
101
101
  return null;
102
- var x = _ && u[_] || u[y];
103
- return typeof x == "function" ? x : null;
102
+ var v = _ && u[_] || u[y];
103
+ return typeof v == "function" ? v : null;
104
104
  }
105
- var v = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
105
+ var x = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
106
106
  function g(u) {
107
107
  {
108
- for (var x = arguments.length, T = new Array(x > 1 ? x - 1 : 0), N = 1; N < x; N++)
108
+ for (var v = arguments.length, T = new Array(v > 1 ? v - 1 : 0), N = 1; N < v; N++)
109
109
  T[N - 1] = arguments[N];
110
110
  b("error", u, T);
111
111
  }
112
112
  }
113
- function b(u, x, T) {
113
+ function b(u, v, T) {
114
114
  {
115
- var N = v.ReactDebugCurrentFrame, O = N.getStackAddendum();
116
- O !== "" && (x += "%s", T = T.concat([O]));
115
+ var N = x.ReactDebugCurrentFrame, O = N.getStackAddendum();
116
+ O !== "" && (v += "%s", T = T.concat([O]));
117
117
  var V = T.map(function(L) {
118
118
  return String(L);
119
119
  });
120
- V.unshift("Warning: " + x), Function.prototype.apply.call(console[u], console, V);
120
+ V.unshift("Warning: " + v), Function.prototype.apply.call(console[u], console, V);
121
121
  }
122
122
  }
123
123
  var j = !1, C = !1, S = !1, Y = !1, F = !1, $;
@@ -129,11 +129,11 @@ function ir() {
129
129
  // with.
130
130
  u.$$typeof === $ || u.getModuleId !== void 0));
131
131
  }
132
- function E(u, x, T) {
132
+ function E(u, v, T) {
133
133
  var N = u.displayName;
134
134
  if (N)
135
135
  return N;
136
- var O = x.displayName || x.name || "";
136
+ var O = v.displayName || v.name || "";
137
137
  return O !== "" ? T + "(" + O + ")" : T;
138
138
  }
139
139
  function I(u) {
@@ -163,8 +163,8 @@ function ir() {
163
163
  if (typeof u == "object")
164
164
  switch (u.$$typeof) {
165
165
  case c:
166
- var x = u;
167
- return I(x) + ".Consumer";
166
+ var v = u;
167
+ return I(v) + ".Consumer";
168
168
  case o:
169
169
  var T = u;
170
170
  return I(T._context) + ".Provider";
@@ -184,14 +184,14 @@ function ir() {
184
184
  }
185
185
  return null;
186
186
  }
187
- var q = Object.assign, z = 0, J, H, te, re, K, ie, de;
187
+ var q = Object.assign, z = 0, Q, H, te, re, J, ie, de;
188
188
  function ce() {
189
189
  }
190
190
  ce.__reactDisabledLog = !0;
191
191
  function W() {
192
192
  {
193
193
  if (z === 0) {
194
- J = console.log, H = console.info, te = console.warn, re = console.error, K = console.group, ie = console.groupCollapsed, de = console.groupEnd;
194
+ Q = console.log, H = console.info, te = console.warn, re = console.error, J = console.group, ie = console.groupCollapsed, de = console.groupEnd;
195
195
  var u = {
196
196
  configurable: !0,
197
197
  enumerable: !0,
@@ -221,7 +221,7 @@ function ir() {
221
221
  };
222
222
  Object.defineProperties(console, {
223
223
  log: q({}, u, {
224
- value: J
224
+ value: Q
225
225
  }),
226
226
  info: q({}, u, {
227
227
  value: H
@@ -233,7 +233,7 @@ function ir() {
233
233
  value: re
234
234
  }),
235
235
  group: q({}, u, {
236
- value: K
236
+ value: J
237
237
  }),
238
238
  groupCollapsed: q({}, u, {
239
239
  value: ie
@@ -246,8 +246,8 @@ function ir() {
246
246
  z < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
247
247
  }
248
248
  }
249
- var Q = v.ReactCurrentDispatcher, se;
250
- function me(u, x, T) {
249
+ var K = x.ReactCurrentDispatcher, se;
250
+ function me(u, v, T) {
251
251
  {
252
252
  if (se === void 0)
253
253
  try {
@@ -265,7 +265,7 @@ function ir() {
265
265
  var ga = typeof WeakMap == "function" ? WeakMap : Map;
266
266
  Ee = new ga();
267
267
  }
268
- function an(u, x) {
268
+ function an(u, v) {
269
269
  if (!u || pe)
270
270
  return "";
271
271
  {
@@ -278,9 +278,9 @@ function ir() {
278
278
  var O = Error.prepareStackTrace;
279
279
  Error.prepareStackTrace = void 0;
280
280
  var V;
281
- V = Q.current, Q.current = null, W();
281
+ V = K.current, K.current = null, W();
282
282
  try {
283
- if (x) {
283
+ if (v) {
284
284
  var L = function() {
285
285
  throw Error();
286
286
  };
@@ -331,19 +331,19 @@ function ir() {
331
331
  }
332
332
  }
333
333
  } finally {
334
- pe = !1, Q.current = V, ue(), Error.prepareStackTrace = O;
334
+ pe = !1, K.current = V, ue(), Error.prepareStackTrace = O;
335
335
  }
336
336
  var Se = u ? u.displayName || u.name : "", _n = Se ? me(Se) : "";
337
337
  return typeof u == "function" && Ee.set(u, _n), _n;
338
338
  }
339
- function _a(u, x, T) {
339
+ function _a(u, v, T) {
340
340
  return an(u, !1);
341
341
  }
342
342
  function ba(u) {
343
- var x = u.prototype;
344
- return !!(x && x.isReactComponent);
343
+ var v = u.prototype;
344
+ return !!(v && v.isReactComponent);
345
345
  }
346
- function ze(u, x, T) {
346
+ function ze(u, v, T) {
347
347
  if (u == null)
348
348
  return "";
349
349
  if (typeof u == "function")
@@ -361,26 +361,26 @@ function ir() {
361
361
  case m:
362
362
  return _a(u.render);
363
363
  case d:
364
- return ze(u.type, x, T);
364
+ return ze(u.type, v, T);
365
365
  case p: {
366
366
  var N = u, O = N._payload, V = N._init;
367
367
  try {
368
- return ze(V(O), x, T);
368
+ return ze(V(O), v, T);
369
369
  } catch {
370
370
  }
371
371
  }
372
372
  }
373
373
  return "";
374
374
  }
375
- var We = Object.prototype.hasOwnProperty, rn = {}, sn = v.ReactDebugCurrentFrame;
375
+ var We = Object.prototype.hasOwnProperty, rn = {}, sn = x.ReactDebugCurrentFrame;
376
376
  function Ve(u) {
377
377
  if (u) {
378
- var x = u._owner, T = ze(u.type, u._source, x ? x.type : null);
378
+ var v = u._owner, T = ze(u.type, u._source, v ? v.type : null);
379
379
  sn.setExtraStackFrame(T);
380
380
  } else
381
381
  sn.setExtraStackFrame(null);
382
382
  }
383
- function ya(u, x, T, N, O) {
383
+ function ya(u, v, T, N, O) {
384
384
  {
385
385
  var V = Function.call.bind(We);
386
386
  for (var L in u)
@@ -391,7 +391,7 @@ function ir() {
391
391
  var oe = Error((N || "React class") + ": " + T + " type `" + L + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof u[L] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
392
392
  throw oe.name = "Invariant Violation", oe;
393
393
  }
394
- D = u[L](x, L, N, T, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
394
+ D = u[L](v, L, N, T, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
395
395
  } catch (X) {
396
396
  D = X;
397
397
  }
@@ -399,13 +399,13 @@ function ir() {
399
399
  }
400
400
  }
401
401
  }
402
- var va = Array.isArray;
402
+ var xa = Array.isArray;
403
403
  function jt(u) {
404
- return va(u);
404
+ return xa(u);
405
405
  }
406
- function xa(u) {
406
+ function va(u) {
407
407
  {
408
- var x = typeof Symbol == "function" && Symbol.toStringTag, T = x && u[Symbol.toStringTag] || u.constructor.name || "Object";
408
+ var v = typeof Symbol == "function" && Symbol.toStringTag, T = v && u[Symbol.toStringTag] || u.constructor.name || "Object";
409
409
  return T;
410
410
  }
411
411
  }
@@ -421,9 +421,9 @@ function ir() {
421
421
  }
422
422
  function cn(u) {
423
423
  if (ka(u))
424
- return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", xa(u)), on(u);
424
+ return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", va(u)), on(u);
425
425
  }
426
- var Re = v.ReactCurrentOwner, ja = {
426
+ var Re = x.ReactCurrentOwner, ja = {
427
427
  key: !0,
428
428
  ref: !0,
429
429
  __self: !0,
@@ -432,30 +432,30 @@ function ir() {
432
432
  wt = {};
433
433
  function wa(u) {
434
434
  if (We.call(u, "ref")) {
435
- var x = Object.getOwnPropertyDescriptor(u, "ref").get;
436
- if (x && x.isReactWarning)
435
+ var v = Object.getOwnPropertyDescriptor(u, "ref").get;
436
+ if (v && v.isReactWarning)
437
437
  return !1;
438
438
  }
439
439
  return u.ref !== void 0;
440
440
  }
441
441
  function Ta(u) {
442
442
  if (We.call(u, "key")) {
443
- var x = Object.getOwnPropertyDescriptor(u, "key").get;
444
- if (x && x.isReactWarning)
443
+ var v = Object.getOwnPropertyDescriptor(u, "key").get;
444
+ if (v && v.isReactWarning)
445
445
  return !1;
446
446
  }
447
447
  return u.key !== void 0;
448
448
  }
449
- function $a(u, x) {
450
- if (typeof u.ref == "string" && Re.current && x && Re.current.stateNode !== x) {
449
+ function $a(u, v) {
450
+ if (typeof u.ref == "string" && Re.current && v && Re.current.stateNode !== v) {
451
451
  var T = Z(Re.current.type);
452
452
  wt[T] || (g('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', Z(Re.current.type), u.ref), wt[T] = !0);
453
453
  }
454
454
  }
455
- function Ea(u, x) {
455
+ function Ea(u, v) {
456
456
  {
457
457
  var T = function() {
458
- ln || (ln = !0, g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", x));
458
+ ln || (ln = !0, g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", v));
459
459
  };
460
460
  T.isReactWarning = !0, Object.defineProperty(u, "key", {
461
461
  get: T,
@@ -463,10 +463,10 @@ function ir() {
463
463
  });
464
464
  }
465
465
  }
466
- function Ca(u, x) {
466
+ function Ca(u, v) {
467
467
  {
468
468
  var T = function() {
469
- dn || (dn = !0, g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", x));
469
+ dn || (dn = !0, g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", v));
470
470
  };
471
471
  T.isReactWarning = !0, Object.defineProperty(u, "ref", {
472
472
  get: T,
@@ -474,13 +474,13 @@ function ir() {
474
474
  });
475
475
  }
476
476
  }
477
- var Sa = function(u, x, T, N, O, V, L) {
477
+ var Sa = function(u, v, T, N, O, V, L) {
478
478
  var D = {
479
479
  // This tag allows us to uniquely identify this as a React Element
480
480
  $$typeof: t,
481
481
  // Built-in properties that belong on the element
482
482
  type: u,
483
- key: x,
483
+ key: v,
484
484
  ref: T,
485
485
  props: L,
486
486
  // Record the component responsible for creating this element.
@@ -503,12 +503,12 @@ function ir() {
503
503
  value: O
504
504
  }), Object.freeze && (Object.freeze(D.props), Object.freeze(D)), D;
505
505
  };
506
- function Ma(u, x, T, N, O) {
506
+ function Ma(u, v, T, N, O) {
507
507
  {
508
508
  var V, L = {}, D = null, oe = null;
509
- T !== void 0 && (cn(T), D = "" + T), Ta(x) && (cn(x.key), D = "" + x.key), wa(x) && (oe = x.ref, $a(x, O));
510
- for (V in x)
511
- We.call(x, V) && !ja.hasOwnProperty(V) && (L[V] = x[V]);
509
+ T !== void 0 && (cn(T), D = "" + T), Ta(v) && (cn(v.key), D = "" + v.key), wa(v) && (oe = v.ref, $a(v, O));
510
+ for (V in v)
511
+ We.call(v, V) && !ja.hasOwnProperty(V) && (L[V] = v[V]);
512
512
  if (u && u.defaultProps) {
513
513
  var X = u.defaultProps;
514
514
  for (V in X)
@@ -521,10 +521,10 @@ function ir() {
521
521
  return Sa(u, D, oe, O, N, Re.current, L);
522
522
  }
523
523
  }
524
- var Tt = v.ReactCurrentOwner, un = v.ReactDebugCurrentFrame;
524
+ var Tt = x.ReactCurrentOwner, un = x.ReactDebugCurrentFrame;
525
525
  function Ce(u) {
526
526
  if (u) {
527
- var x = u._owner, T = ze(u.type, u._source, x ? x.type : null);
527
+ var v = u._owner, T = ze(u.type, u._source, v ? v.type : null);
528
528
  un.setExtraStackFrame(T);
529
529
  } else
530
530
  un.setExtraStackFrame(null);
@@ -549,10 +549,10 @@ Check the render method of \`` + u + "`.";
549
549
  function Na(u) {
550
550
  {
551
551
  if (u !== void 0) {
552
- var x = u.fileName.replace(/^.*[\\\/]/, ""), T = u.lineNumber;
552
+ var v = u.fileName.replace(/^.*[\\\/]/, ""), T = u.lineNumber;
553
553
  return `
554
554
 
555
- Check your code at ` + x + ":" + T + ".";
555
+ Check your code at ` + v + ":" + T + ".";
556
556
  }
557
557
  return "";
558
558
  }
@@ -560,22 +560,22 @@ Check your code at ` + x + ":" + T + ".";
560
560
  var fn = {};
561
561
  function Pa(u) {
562
562
  {
563
- var x = mn();
564
- if (!x) {
563
+ var v = mn();
564
+ if (!v) {
565
565
  var T = typeof u == "string" ? u : u.displayName || u.name;
566
- T && (x = `
566
+ T && (v = `
567
567
 
568
568
  Check the top-level render call using <` + T + ">.");
569
569
  }
570
- return x;
570
+ return v;
571
571
  }
572
572
  }
573
- function pn(u, x) {
573
+ function pn(u, v) {
574
574
  {
575
575
  if (!u._store || u._store.validated || u.key != null)
576
576
  return;
577
577
  u._store.validated = !0;
578
- var T = Pa(x);
578
+ var T = Pa(v);
579
579
  if (fn[T])
580
580
  return;
581
581
  fn[T] = !0;
@@ -583,14 +583,14 @@ Check the top-level render call using <` + T + ">.");
583
583
  u && u._owner && u._owner !== Tt.current && (N = " It was passed a child from " + Z(u._owner.type) + "."), Ce(u), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', T, N), Ce(null);
584
584
  }
585
585
  }
586
- function hn(u, x) {
586
+ function hn(u, v) {
587
587
  {
588
588
  if (typeof u != "object")
589
589
  return;
590
590
  if (jt(u))
591
591
  for (var T = 0; T < u.length; T++) {
592
592
  var N = u[T];
593
- Et(N) && pn(N, x);
593
+ Et(N) && pn(N, v);
594
594
  }
595
595
  else if (Et(u))
596
596
  u._store && (u._store.validated = !0);
@@ -598,39 +598,39 @@ Check the top-level render call using <` + T + ">.");
598
598
  var O = k(u);
599
599
  if (typeof O == "function" && O !== u.entries)
600
600
  for (var V = O.call(u), L; !(L = V.next()).done; )
601
- Et(L.value) && pn(L.value, x);
601
+ Et(L.value) && pn(L.value, v);
602
602
  }
603
603
  }
604
604
  }
605
605
  function Aa(u) {
606
606
  {
607
- var x = u.type;
608
- if (x == null || typeof x == "string")
607
+ var v = u.type;
608
+ if (v == null || typeof v == "string")
609
609
  return;
610
610
  var T;
611
- if (typeof x == "function")
612
- T = x.propTypes;
613
- else if (typeof x == "object" && (x.$$typeof === m || // Note: Memo only checks outer props here.
611
+ if (typeof v == "function")
612
+ T = v.propTypes;
613
+ else if (typeof v == "object" && (v.$$typeof === m || // Note: Memo only checks outer props here.
614
614
  // Inner props are checked in the reconciler.
615
- x.$$typeof === d))
616
- T = x.propTypes;
615
+ v.$$typeof === d))
616
+ T = v.propTypes;
617
617
  else
618
618
  return;
619
619
  if (T) {
620
- var N = Z(x);
620
+ var N = Z(v);
621
621
  ya(T, u.props, "prop", N, u);
622
- } else if (x.PropTypes !== void 0 && !$t) {
622
+ } else if (v.PropTypes !== void 0 && !$t) {
623
623
  $t = !0;
624
- var O = Z(x);
624
+ var O = Z(v);
625
625
  g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", O || "Unknown");
626
626
  }
627
- typeof x.getDefaultProps == "function" && !x.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
627
+ typeof v.getDefaultProps == "function" && !v.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
628
628
  }
629
629
  }
630
630
  function Fa(u) {
631
631
  {
632
- for (var x = Object.keys(u.props), T = 0; T < x.length; T++) {
633
- var N = x[T];
632
+ for (var v = Object.keys(u.props), T = 0; T < v.length; T++) {
633
+ var N = v[T];
634
634
  if (N !== "children" && N !== "key") {
635
635
  Ce(u), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", N), Ce(null);
636
636
  break;
@@ -639,7 +639,7 @@ Check the top-level render call using <` + T + ">.");
639
639
  u.ref !== null && (Ce(u), g("Invalid attribute `ref` supplied to `React.Fragment`."), Ce(null));
640
640
  }
641
641
  }
642
- function gn(u, x, T, N, O, V) {
642
+ function gn(u, v, T, N, O, V) {
643
643
  {
644
644
  var L = M(u);
645
645
  if (!L) {
@@ -650,11 +650,11 @@ Check the top-level render call using <` + T + ">.");
650
650
  var X;
651
651
  u === null ? X = "null" : jt(u) ? X = "array" : u !== void 0 && u.$$typeof === t ? (X = "<" + (Z(u.type) || "Unknown") + " />", D = " Did you accidentally export a JSX literal instead of a component?") : X = typeof u, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", X, D);
652
652
  }
653
- var ee = Ma(u, x, T, O, V);
653
+ var ee = Ma(u, v, T, O, V);
654
654
  if (ee == null)
655
655
  return ee;
656
656
  if (L) {
657
- var he = x.children;
657
+ var he = v.children;
658
658
  if (he !== void 0)
659
659
  if (N)
660
660
  if (jt(he)) {
@@ -669,11 +669,11 @@ Check the top-level render call using <` + T + ">.");
669
669
  return u === r ? Fa(ee) : Aa(ee), ee;
670
670
  }
671
671
  }
672
- function Ra(u, x, T) {
673
- return gn(u, x, T, !0);
672
+ function Ra(u, v, T) {
673
+ return gn(u, v, T, !0);
674
674
  }
675
- function Da(u, x, T) {
676
- return gn(u, x, T, !1);
675
+ function Da(u, v, T) {
676
+ return gn(u, v, T, !1);
677
677
  }
678
678
  var La = Da, Ia = Ra;
679
679
  Le.Fragment = r, Le.jsx = La, Le.jsxs = Ia;
@@ -702,7 +702,7 @@ function cr(e, t, n) {
702
702
  if (typeof e != "function")
703
703
  throw new TypeError("Expected a function");
704
704
  t = +t || 0;
705
- var _ = !!(n = n || {}).leading, y = !("trailing" in n) || !!n.trailing, k = "maxWait" in n, v = "debounceOnServer" in n && !!n.debounceOnServer, g = k ? Math.max(+n.maxWait || 0, t) : null;
705
+ var _ = !!(n = n || {}).leading, y = !("trailing" in n) || !!n.trailing, k = "maxWait" in n, x = "debounceOnServer" in n && !!n.debounceOnServer, g = k ? Math.max(+n.maxWait || 0, t) : null;
706
706
  G(function() {
707
707
  return d.current = !0, function() {
708
708
  d.current = !1;
@@ -730,7 +730,7 @@ function cr(e, t, n) {
730
730
  C(M, Z);
731
731
  }
732
732
  }, $ = function() {
733
- if (p || v) {
733
+ if (p || x) {
734
734
  var M = Date.now(), E = S(M);
735
735
  if (c.current = [].slice.call(arguments), m.current = r, s.current = M, E) {
736
736
  if (!o.current && d.current)
@@ -748,7 +748,7 @@ function cr(e, t, n) {
748
748
  }, $.flush = function() {
749
749
  return o.current ? Y(Date.now()) : l.current;
750
750
  }, $;
751
- }, [_, k, t, g, y, h, p, v]);
751
+ }, [_, k, t, g, y, h, p, x]);
752
752
  return b;
753
753
  }
754
754
  function Zn(e, t, n) {
@@ -841,7 +841,7 @@ const He = (e = !0, t = !1, n = "window") => {
841
841
  year: "numeric"
842
842
  }), zt = (e) => {
843
843
  let i;
844
- const o = vn(), c = vn(new Date(e));
844
+ const o = xn(), c = xn(new Date(e));
845
845
  try {
846
846
  i = o.getTime() - c.getTime();
847
847
  } catch {
@@ -854,7 +854,7 @@ const He = (e = !0, t = !1, n = "window") => {
854
854
  return { path: "days", number: l };
855
855
  const f = Math.floor(l / 7);
856
856
  return f <= 52 ? { path: "weeks", number: f } : { path: "years", number: Math.floor(l / 365) };
857
- }, vn = (e) => {
857
+ }, xn = (e) => {
858
858
  const n = (e || /* @__PURE__ */ new Date()).toUTCString();
859
859
  return new Date(n);
860
860
  }, Qt = {
@@ -1221,13 +1221,13 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1221
1221
  const t = document.querySelector(".splash-screen");
1222
1222
  t && t.remove(), window.prerenderReady = !0;
1223
1223
  }, e);
1224
- }, yr = (e) => e.replace(/\s+/g, "").length > 0, vr = (e, t) => {
1224
+ }, yr = (e) => e.replace(/\s+/g, "").length > 0, xr = (e, t) => {
1225
1225
  Array.isArray(t) || (t = [t]);
1226
1226
  const n = Za(e);
1227
1227
  return t.forEach(({ type: r, value: s }) => {
1228
1228
  qa(n, r, s);
1229
1229
  }), n;
1230
- }, xr = (e) => new Promise((t) => setTimeout(t, e)), at = (e, t) => A.Children.map(e, (n) => A.cloneElement(n, {
1230
+ }, vr = (e) => new Promise((t) => setTimeout(t, e)), at = (e, t) => A.Children.map(e, (n) => A.cloneElement(n, {
1231
1231
  ...t
1232
1232
  })), B = ({
1233
1233
  variant: e = "primary",
@@ -1245,8 +1245,8 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1245
1245
  }) => {
1246
1246
  const h = He(typeof t == "object");
1247
1247
  if (typeof t == "object" && typeof h == "number") {
1248
- const k = Object.assign({}, t), v = qn(Object.keys(k));
1249
- t = Hn(h, v, k);
1248
+ const k = Object.assign({}, t), x = qn(Object.keys(k));
1249
+ t = Hn(h, x, k);
1250
1250
  }
1251
1251
  const _ = [];
1252
1252
  typeof t == "string" && _.push(t), r && (_.push("icon"), typeof r == "object" ? (_.push(r.icon), r.position ? _.push(r.position) : _.push("left"), r.hover && _.push(`hover_${r.hover}`), r.animate && (_.push("animate"), typeof r.animate == "string" && _.push(r.animate))) : (_.push(r), !r.includes("right") && !r.includes("left") && _.push("left"))), n.muted && _.push("muted"), n.fullWidth && _.push("full-width");
@@ -1297,7 +1297,7 @@ const Te = ({ className: e = "", maxWidth: t = !1 }) => {
1297
1297
  );
1298
1298
  }
1299
1299
  return n ? A.createElement(n, { children: t, className: r, ...c }) : t;
1300
- }, xn = {
1300
+ }, vn = {
1301
1301
  card: {
1302
1302
  range: [
1303
1303
  {
@@ -1405,7 +1405,7 @@ const Te = ({ className: e = "", maxWidth: t = !1 }) => {
1405
1405
  range: t,
1406
1406
  sizes: n
1407
1407
  }) => {
1408
- const { range: r, sizes: s } = e ? xn[e] : xn.fallback;
1408
+ const { range: r, sizes: s } = e ? vn[e] : vn.fallback;
1409
1409
  return { range: t && t.length > 0 ? t : r, sizes: n || s };
1410
1410
  }, jr = ({ format: e, height: t, query: n, width: r }) => {
1411
1411
  let s = `w=${r}&h=${t}`;
@@ -2312,8 +2312,8 @@ const Tn = {
2312
2312
  );
2313
2313
  const h = ["microcourse", "event"];
2314
2314
  if (t && t.onClick && h.includes(d) && l !== "premium") {
2315
- const y = i.loading || i.registered, k = async (v) => {
2316
- if (v.preventDefault(), v.stopPropagation(), !(y || !t || !t.onClick)) {
2315
+ const y = i.loading || i.registered, k = async (x) => {
2316
+ if (x.preventDefault(), x.stopPropagation(), !(y || !t || !t.onClick)) {
2317
2317
  o((g) => ({ ...g, loading: !0 }));
2318
2318
  try {
2319
2319
  const g = await t.onClick(e);
@@ -2389,9 +2389,9 @@ const Qr = {
2389
2389
  const {
2390
2390
  basePath: y = "",
2391
2391
  className: k,
2392
- length: v,
2392
+ length: x,
2393
2393
  gtmEvent: g
2394
- } = it[_], b = zn(`card_label_${_}`) ? o.formatMessage({ id: `card_label_${_}` }) : !1, j = d.slug ? `${y}${d.slug}` : !1, C = { ...Qr, ...v };
2394
+ } = it[_], b = zn(`card_label_${_}`) ? o.formatMessage({ id: `card_label_${_}` }) : !1, j = d.slug ? `${y}${d.slug}` : !1, C = { ...Qr, ...x };
2395
2395
  let S = { className: "card" };
2396
2396
  j && (S = {
2397
2397
  href: j,
@@ -2525,7 +2525,7 @@ const ts = ({
2525
2525
  }), { cardsPerPage: f, isLoading: d } = m, [p, h] = R({
2526
2526
  currentPage: 0,
2527
2527
  loadedPages: [0]
2528
- }), { currentPage: _, loadedPages: y } = p, k = t.length, v = Math.ceil(k / f), g = ne(null), b = He(!0, !0, g == null ? void 0 : g.current);
2528
+ }), { currentPage: _, loadedPages: y } = p, k = t.length, x = Math.ceil(k / f), g = ne(null), b = He(!0, !0, g == null ? void 0 : g.current);
2529
2529
  G(() => {
2530
2530
  let $ = 1;
2531
2531
  b && (b >= Nt.fourCards ? $ = 4 : b >= Nt.threeCards ? $ = 3 : b >= Nt.twoCards && ($ = 2), $ > k && ($ = k)), l((M) => ({
@@ -2538,7 +2538,7 @@ const ts = ({
2538
2538
  let M = _;
2539
2539
  if (typeof $ == "string")
2540
2540
  if ($ === "next")
2541
- if (_ < v - 1)
2541
+ if (_ < x - 1)
2542
2542
  M = _ + 1;
2543
2543
  else
2544
2544
  return;
@@ -2605,7 +2605,7 @@ const ts = ({
2605
2605
  })
2606
2606
  }
2607
2607
  ),
2608
- v <= 1 ? null : /* @__PURE__ */ a.jsxs("ul", { className: "controls", "data-testid": "carousel-controls", children: [
2608
+ x <= 1 ? null : /* @__PURE__ */ a.jsxs("ul", { className: "controls", "data-testid": "carousel-controls", children: [
2609
2609
  /* @__PURE__ */ a.jsx("li", { className: "arrow previous", children: /* @__PURE__ */ a.jsx(
2610
2610
  B,
2611
2611
  {
@@ -2621,7 +2621,7 @@ const ts = ({
2621
2621
  disabled: _ <= 0
2622
2622
  }
2623
2623
  ) }),
2624
- [...Array(v)].map(($, M) => /* @__PURE__ */ a.jsx("li", { "data-testid": "carousel-controls-button", children: /* @__PURE__ */ a.jsx(
2624
+ [...Array(x)].map(($, M) => /* @__PURE__ */ a.jsx("li", { "data-testid": "carousel-controls-button", children: /* @__PURE__ */ a.jsx(
2625
2625
  "button",
2626
2626
  {
2627
2627
  className: w("page-indicator", {
@@ -2632,7 +2632,7 @@ const ts = ({
2632
2632
  },
2633
2633
  children: /* @__PURE__ */ a.jsx(ae, { showOnFocus: !1, children: c.formatMessage(
2634
2634
  { id: "carousel_pagination_page" },
2635
- { number: M + 1, total: v }
2635
+ { number: M + 1, total: x }
2636
2636
  ) })
2637
2637
  }
2638
2638
  ) }, `page-indicator-${M}`)),
@@ -2646,7 +2646,7 @@ const ts = ({
2646
2646
  $.preventDefault(), $.stopPropagation(), j("next");
2647
2647
  },
2648
2648
  screenreaderText: c.formatMessage({ id: "carousel_pagination_next" }),
2649
- disabled: _ >= v - 1
2649
+ disabled: _ >= x - 1
2650
2650
  }
2651
2651
  ) })
2652
2652
  ] })
@@ -2835,8 +2835,8 @@ const Ft = { en: "English", es: "Español", fr: "Français", pt: "Português" },
2835
2835
  return f === y ? k["aria-label"] = l.formatMessage({ id: `${Ke}selected` }, { language: Ft[y] }) : k = {
2836
2836
  ...k,
2837
2837
  href: ns(y, i),
2838
- onClick: (v) => {
2839
- v.preventDefault(), v.stopPropagation(), d(y), s(y);
2838
+ onClick: (x) => {
2839
+ x.preventDefault(), x.stopPropagation(), d(y), s(y);
2840
2840
  }
2841
2841
  }, /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(gt, { ...k, fallbackElement: "span", children: Ft[y] }) }, y);
2842
2842
  }) }),
@@ -3196,7 +3196,7 @@ const Dt = "cookieBanner_", Lt = ["apol-cookie-banner", "apolitical-performance-
3196
3196
  /* @__PURE__ */ a.jsx("p", { children: e.formatMessage({ id: `${Dt}text` }) }),
3197
3197
  /* @__PURE__ */ a.jsx(ht, { buttons: l })
3198
3198
  ] });
3199
- }, xe = {
3199
+ }, ve = {
3200
3200
  platform: {
3201
3201
  order: ["events", "courses", "articles"],
3202
3202
  // An array guarantees the right order
@@ -3290,14 +3290,14 @@ const Dt = "cookieBanner_", Lt = ["apol-cookie-banner", "apolitical-performance-
3290
3290
  }
3291
3291
  };
3292
3292
  const Me = "footer_", ot = "SiteFooter", En = ({ group: e }) => {
3293
- const t = xe[e].order || [];
3293
+ const t = ve[e].order || [];
3294
3294
  let n = !1;
3295
- return "text" in xe[e] && (n = xe[e].text), /* @__PURE__ */ a.jsxs(qe, { children: [
3295
+ return "text" in ve[e] && (n = ve[e].text), /* @__PURE__ */ a.jsxs(qe, { children: [
3296
3296
  /* @__PURE__ */ a.jsx("p", { className: "pre-title", children: /* @__PURE__ */ a.jsx(je, { id: `${Me}${e}` }) }),
3297
3297
  Array.isArray(t) && t.length > 0 && /* @__PURE__ */ a.jsx("ul", { className: "text-medium", children: t.map((r) => {
3298
3298
  if (["order", "child", "text"].includes(r))
3299
3299
  return null;
3300
- const { href: s, gtmType: i } = xe[e][r], o = {};
3300
+ const { href: s, gtmType: i } = ve[e][r], o = {};
3301
3301
  return ["legal"].includes(e) && (o.target = "_blank", o.rel = "noopener"), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
3302
3302
  "a",
3303
3303
  {
@@ -3341,12 +3341,12 @@ const Me = "footer_", ot = "SiteFooter", En = ({ group: e }) => {
3341
3341
  ),
3342
3342
  /* @__PURE__ */ a.jsx("footer", { children: ["platform", "community", "company", "contact"].map((e) => /* @__PURE__ */ a.jsxs("div", { className: "group", children: [
3343
3343
  /* @__PURE__ */ a.jsx(En, { group: e }),
3344
- Object.keys(xe[e]).includes("child") && /* @__PURE__ */ a.jsx(En, { group: xe[e].child })
3344
+ Object.keys(ve[e]).includes("child") && /* @__PURE__ */ a.jsx(En, { group: ve[e].child })
3345
3345
  ] }, e)) }),
3346
3346
  /* @__PURE__ */ a.jsx("hr", {}),
3347
3347
  /* @__PURE__ */ a.jsxs("div", { className: "sub-footer", children: [
3348
- /* @__PURE__ */ a.jsx("ul", { children: Array.isArray(xe.social.order) && xe.social.order.map((e) => {
3349
- const t = xe.social[e];
3348
+ /* @__PURE__ */ a.jsx("ul", { children: Array.isArray(ve.social.order) && ve.social.order.map((e) => {
3349
+ const t = ve.social[e];
3350
3350
  return /* @__PURE__ */ a.jsx("li", { className: e, children: /* @__PURE__ */ a.jsx(
3351
3351
  "a",
3352
3352
  {
@@ -3431,7 +3431,7 @@ const Je = "emailHelperTextBox_", qi = ({ type: e, email: t, redirectPath: n, re
3431
3431
  "data-gtm-event-context": "VerifyEmailBox",
3432
3432
  "data-gtm-event-type": "SendEmailClick",
3433
3433
  className: "gtm-trackable",
3434
- onClick: (v) => l(v),
3434
+ onClick: (x) => l(x),
3435
3435
  "data-testid": "send-verify-email-click"
3436
3436
  };
3437
3437
  break;
@@ -3518,10 +3518,10 @@ const Ui = ({
3518
3518
  }) => {
3519
3519
  const c = P(), [m, l] = R({ setUp: !1, id: null, rating: null, disabled: !0 }), f = async () => {
3520
3520
  try {
3521
- const v = await n();
3522
- l((g) => ({ ...g, setUp: !0, id: v && v.id, disabled: !1 }));
3523
- } catch (v) {
3524
- l((g) => ({ ...g, setUp: !0, disabled: !0 })), s(v);
3521
+ const x = await n();
3522
+ l((g) => ({ ...g, setUp: !0, id: x && x.id, disabled: !1 }));
3523
+ } catch (x) {
3524
+ l((g) => ({ ...g, setUp: !0, disabled: !0 })), s(x);
3525
3525
  }
3526
3526
  };
3527
3527
  if (G(() => {
@@ -3534,10 +3534,10 @@ const Ui = ({
3534
3534
  high: c.formatMessage({ id: `${_}high` }),
3535
3535
  success: c.formatMessage({ id: `${_}success` }),
3536
3536
  ...e
3537
- }, k = async (v) => {
3537
+ }, k = async (x) => {
3538
3538
  if (!(!d || h))
3539
3539
  try {
3540
- l((g) => ({ ...g, rating: v, disabled: !0 })), await r({ id: d, value: v });
3540
+ l((g) => ({ ...g, rating: x, disabled: !0 })), await r({ id: d, value: x });
3541
3541
  } catch (g) {
3542
3542
  l((b) => ({ ...b, rating: null })), s(g);
3543
3543
  } finally {
@@ -3546,8 +3546,8 @@ const Ui = ({
3546
3546
  };
3547
3547
  return /* @__PURE__ */ a.jsxs("div", { className: w("rating", i), children: [
3548
3548
  /* @__PURE__ */ a.jsx("span", { className: "label", children: y[p ? "success" : "text"] }),
3549
- /* @__PURE__ */ a.jsx("ol", { children: Array.from(new Array(t).keys()).map((v) => {
3550
- const g = v + 1;
3549
+ /* @__PURE__ */ a.jsx("ol", { children: Array.from(new Array(t).keys()).map((x) => {
3550
+ const g = x + 1;
3551
3551
  return /* @__PURE__ */ a.jsx("li", { className: w({ selected: p && g <= p }), children: /* @__PURE__ */ a.jsx(
3552
3552
  B,
3553
3553
  {
@@ -3633,7 +3633,7 @@ const hs = ({
3633
3633
  initialFormStatus: l = "NOT_SUBMITTED"
3634
3634
  /* NOT_SUBMITTED */
3635
3635
  }) => {
3636
- const [f, d] = R([]), [p, h] = R(!0), [_, y] = R(l), { formatMessage: k } = P(), v = async (j) => {
3636
+ const [f, d] = R([]), [p, h] = R(!0), [_, y] = R(l), { formatMessage: k } = P(), x = async (j) => {
3637
3637
  j.preventDefault();
3638
3638
  try {
3639
3639
  await m(f), d([]), y(
@@ -3671,7 +3671,7 @@ const hs = ({
3671
3671
  "form",
3672
3672
  {
3673
3673
  style: { backgroundColor: i },
3674
- onSubmit: v,
3674
+ onSubmit: x,
3675
3675
  className: w("invite-form gtm-trackable"),
3676
3676
  children: [
3677
3677
  /* @__PURE__ */ a.jsxs("fieldset", { className: "content", children: [
@@ -3925,7 +3925,7 @@ const hs = ({
3925
3925
  });
3926
3926
  }
3927
3927
  const h = c.order && c.order[0] && c[c.order[0]], _ = h && c[c.order[0]].order, y = p && window.location.pathname === c.href;
3928
- let k = {}, v = {};
3928
+ let k = {}, x = {};
3929
3929
  if (h) {
3930
3930
  const g = c.menuId || e, b = {
3931
3931
  onClick: (j) => U.events.onClick(j, { id: g, callback: s, isOpen: r[g] }),
@@ -3944,14 +3944,14 @@ const hs = ({
3944
3944
  "aria-haspopup": !0,
3945
3945
  "aria-expanded": r[g],
3946
3946
  "aria-controls": g
3947
- }), v = { hidden: g in r ? !r[g] : !0 }), _ || (v = {
3948
- ...v,
3947
+ }), x = { hidden: g in r ? !r[g] : !0 }), _ || (x = {
3948
+ ...x,
3949
3949
  ...b
3950
3950
  });
3951
3951
  }
3952
3952
  return /* @__PURE__ */ a.jsxs("li", { className: w({ [c.className]: c.className, "has-submenu": h, parent: _, active: y }), role: "none", ...k, children: [
3953
3953
  p ? A.createElement(f ? B : "a", p, o.formatMessage({ id: d })) : o.formatMessage({ id: d }),
3954
- c.order && /* @__PURE__ */ a.jsx("ul", { ...v, children: c.order.map((g) => {
3954
+ c.order && /* @__PURE__ */ a.jsx("ul", { ...x, children: c.order.map((g) => {
3955
3955
  if (!c[g])
3956
3956
  return null;
3957
3957
  const b = {
@@ -3972,7 +3972,7 @@ const gs = { height: 67, height_desktop: 83 }, oa = ({ showNavigation: e = !0 })
3972
3972
  const t = P(), n = ge(ke), r = He(!0, !0), s = n && typeof n.id == "string", i = ft(
3973
3973
  () => U.getIsDesktopVersion(s, r),
3974
3974
  [s, r]
3975
- ), [o, c] = Oa(vr, {
3975
+ ), [o, c] = Oa(xr, {
3976
3976
  headerIsVisible: !0,
3977
3977
  menus: { navigation: !1, search: !1, account: !1 },
3978
3978
  focusElements: {
@@ -4167,8 +4167,8 @@ const la = ({
4167
4167
  className: f = "",
4168
4168
  gtmContext: d = "Modal"
4169
4169
  }) => {
4170
- const p = P(), [h, _] = R(t), y = (v) => {
4171
- _(v), v ? (s(), document.body.classList.add("has-overlay")) : (i(), document.body.classList.remove("has-overlay"));
4170
+ const p = P(), [h, _] = R(t), y = (x) => {
4171
+ _(x), x ? (s(), document.body.classList.add("has-overlay")) : (i(), document.body.classList.remove("has-overlay"));
4172
4172
  };
4173
4173
  G(() => {
4174
4174
  y(t);
@@ -4277,12 +4277,12 @@ const bs = () => {
4277
4277
  locale: c
4278
4278
  }), k = at(n, {
4279
4279
  locale: c
4280
- }), v = {};
4281
- return f !== "default" && (v[f] = !0), d !== "default" && (v[d] = !0), p !== "default" && (v[p] = !0), /* @__PURE__ */ a.jsx(Ja, { onError: r, fallback: /* @__PURE__ */ a.jsx(bs, {}), children: /* @__PURE__ */ a.jsx(Ba, { fallback: null, children: /* @__PURE__ */ a.jsxs(
4280
+ }), x = {};
4281
+ return f !== "default" && (x[f] = !0), d !== "default" && (x[d] = !0), p !== "default" && (x[p] = !0), /* @__PURE__ */ a.jsx(Ja, { onError: r, fallback: /* @__PURE__ */ a.jsx(bs, {}), children: /* @__PURE__ */ a.jsx(Ba, { fallback: null, children: /* @__PURE__ */ a.jsxs(
4282
4282
  "div",
4283
4283
  {
4284
4284
  id: "wrapper",
4285
- className: w(o, v, { "has-footer": l }),
4285
+ className: w(o, x, { "has-footer": l }),
4286
4286
  children: [
4287
4287
  /* @__PURE__ */ a.jsx(oa, { showNavigation: m }),
4288
4288
  /* @__PURE__ */ a.jsxs("section", { id: "content-wrapper", children: [
@@ -4317,7 +4317,7 @@ const bs = () => {
4317
4317
  WorkAndTheEconomy: "work-and-the-economy"
4318
4318
  },
4319
4319
  "from the community": "community"
4320
- }, vs = {
4320
+ }, xs = {
4321
4321
  getTagDetails: (e) => {
4322
4322
  if (e.includes("topic_")) {
4323
4323
  if (e = Ot.topic[e.replace("topic_", "")], e) {
@@ -4345,7 +4345,7 @@ const Wi = ({
4345
4345
  return e.forEach((l) => {
4346
4346
  if (!l)
4347
4347
  return;
4348
- const f = vs.getTagDetails(l);
4348
+ const f = xs.getTagDetails(l);
4349
4349
  f && m.push(f);
4350
4350
  }), m.length < 1 ? null : /* @__PURE__ */ a.jsx("ul", { className: w("tags text-small", t, s, { "one-line": n }), children: m.map((l) => {
4351
4351
  const f = c.formatMessage({ id: l.text });
@@ -4426,8 +4426,8 @@ const le = "discussion_form_", en = ({
4426
4426
  var $, M, E;
4427
4427
  const l = P(), f = ge(ke), [d, p] = R(
4428
4428
  n.isEditing && n.isEditing.text || ""
4429
- ), [h, _] = R(o.error || !1), [y, k] = R(!1), v = ne(null);
4430
- if (r || (r = v), n.isLoading)
4429
+ ), [h, _] = R(o.error || !1), [y, k] = R(!1), x = ne(null);
4430
+ if (r || (r = x), n.isLoading)
4431
4431
  return /* @__PURE__ */ a.jsx(
4432
4432
  _e,
4433
4433
  {
@@ -4490,23 +4490,23 @@ const le = "discussion_form_", en = ({
4490
4490
  default:
4491
4491
  break;
4492
4492
  }
4493
- await xr(1e3), c.callback && await c.callback(z), et = setTimeout(() => {
4493
+ await vr(1e3), c.callback && await c.callback(z), et = setTimeout(() => {
4494
4494
  p(""), k("submitted"), C();
4495
4495
  }, 500);
4496
4496
  } catch (z) {
4497
- const J = z;
4497
+ const Q = z;
4498
4498
  let H = `${le}error`;
4499
- J.message.includes("entry already exists") && (H = be(
4499
+ Q.message.includes("entry already exists") && (H = be(
4500
4500
  l.formatMessage,
4501
4501
  `${le}error_alreadyExists`,
4502
4502
  e.type,
4503
4503
  "action"
4504
- )), J.message.includes("429") ? H = be(
4504
+ )), Q.message.includes("429") ? H = be(
4505
4505
  l.formatMessage,
4506
4506
  `${le}error_tooMany`,
4507
4507
  e.type,
4508
4508
  "action"
4509
- ) : J.message.includes("400") && (H = `${le}error`), _(H), C();
4509
+ ) : Q.message.includes("400") && (H = `${le}error`), _(H), C();
4510
4510
  }
4511
4511
  }, C = () => {
4512
4512
  et = setTimeout(() => {
@@ -4528,7 +4528,7 @@ const le = "discussion_form_", en = ({
4528
4528
  onClick: (I) => {
4529
4529
  if (n.isEditing) {
4530
4530
  k("submitting"), c.handleSaveEdit && c.handleSaveEdit(
4531
- v.current && "value" in v.current ? v.current.value : ""
4531
+ x.current && "value" in x.current ? x.current.value : ""
4532
4532
  );
4533
4533
  return;
4534
4534
  }
@@ -4631,15 +4631,15 @@ const le = "discussion_form_", en = ({
4631
4631
  create: t
4632
4632
  }
4633
4633
  }
4634
- ), xs = {
4634
+ ), vs = {
4635
4635
  showThread: !0,
4636
4636
  showForm: !1
4637
- }, vt = Gt(xs), ks = ({ children: e }) => {
4637
+ }, xt = Gt(vs), ks = ({ children: e }) => {
4638
4638
  const [t, n] = R({
4639
4639
  showThread: !0,
4640
4640
  showForm: !1
4641
4641
  });
4642
- return /* @__PURE__ */ a.jsx(vt.Provider, { value: { ...t, updateConversation: n }, children: e });
4642
+ return /* @__PURE__ */ a.jsx(xt.Provider, { value: { ...t, updateConversation: n }, children: e });
4643
4643
  }, js = ({
4644
4644
  question: e,
4645
4645
  answer: t,
@@ -4668,8 +4668,8 @@ const Bt = () => {
4668
4668
  G(() => {
4669
4669
  h(s);
4670
4670
  }, [s]);
4671
- const [f, d] = R(t), [p, h] = R(s), [_, y] = R(!1), [k, v] = R(!1), g = ft(() => ws(n, Zt), [n]), b = (C) => {
4672
- if (C.preventDefault(), C.stopPropagation(), v(!1), Ze)
4671
+ const [f, d] = R(t), [p, h] = R(s), [_, y] = R(!1), [k, x] = R(!1), g = ft(() => ws(n, Zt), [n]), b = (C) => {
4672
+ if (C.preventDefault(), C.stopPropagation(), x(!1), Ze)
4673
4673
  return Bt(), !1;
4674
4674
  if (Bt(), _ || !o)
4675
4675
  return !1;
@@ -4696,16 +4696,16 @@ const Bt = () => {
4696
4696
  className: w("likes-wrapper text-medium action-button", { "show-spinner": _, "is-liked": p, disabled: !o }),
4697
4697
  onClick: b,
4698
4698
  onMouseEnter: () => {
4699
- v(!0);
4699
+ x(!0);
4700
4700
  },
4701
4701
  onMouseLeave: () => {
4702
- v(!1);
4702
+ x(!1);
4703
4703
  },
4704
4704
  onFocus: () => {
4705
- v(!0);
4705
+ x(!0);
4706
4706
  },
4707
4707
  onBlur: () => {
4708
- v(!1);
4708
+ x(!1);
4709
4709
  },
4710
4710
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
4711
4711
  /* @__PURE__ */ a.jsx(
@@ -4746,8 +4746,8 @@ const Bt = () => {
4746
4746
  }, Sn = (e) => {
4747
4747
  const t = {};
4748
4748
  return Object.keys(e).forEach((n) => n.includes("Id") ? t[n] = e[n] : t[`${n}Slug`] = e[n]), t;
4749
- }, xt = (e, t) => e && !t;
4750
- const ve = "discussion_", $s = 280, kt = ({
4749
+ }, vt = (e, t) => e && !t;
4750
+ const xe = "discussion_", $s = 280, kt = ({
4751
4751
  element: e = "div",
4752
4752
  content: t,
4753
4753
  userHasPermissions: n = !0,
@@ -4777,7 +4777,7 @@ const ve = "discussion_", $s = 280, kt = ({
4777
4777
  children: y,
4778
4778
  isTruncated: k = !1
4779
4779
  }) => {
4780
- const v = P(), g = ge(ke), b = ge(vt), [j, C] = R({
4780
+ const x = P(), g = ge(ke), b = ge(xt), [j, C] = R({
4781
4781
  body: t && t.body || "",
4782
4782
  isEditing: !1,
4783
4783
  didEdit: t && t.isEdited || !1
@@ -4790,7 +4790,7 @@ const ve = "discussion_", $s = 280, kt = ({
4790
4790
  });
4791
4791
  }, [t.isEdited]), r || !t || t.type === "answer" && (!t.slugs || !t.slugs.question))
4792
4792
  return /* @__PURE__ */ a.jsx(_e, { className: "discussion-card discussion-post" });
4793
- const { author: M, canLike: E, createdAt: I, id: Z, likes: q = 0, userLiked: z, comments: J = 0 } = t, H = k ? Ne(j.body, $s) : j.body, te = g && g.id && typeof M != "string" && M.id && M.id === g.id || !1, re = typeof E == "boolean" ? E : n ? !te : !1, K = async (W) => {
4793
+ const { author: M, canLike: E, createdAt: I, id: Z, likes: q = 0, userLiked: z, comments: Q = 0 } = t, H = k ? Ne(j.body, $s) : j.body, te = g && g.id && typeof M != "string" && M.id && M.id === g.id || !1, re = typeof E == "boolean" ? E : n ? !te : !1, J = async (W) => {
4794
4794
  W || (W = ""), $("");
4795
4795
  try {
4796
4796
  if (!er(W, j.body)) {
@@ -4799,13 +4799,13 @@ const ve = "discussion_", $s = 280, kt = ({
4799
4799
  }
4800
4800
  C({ body: W, isEditing: !1, didEdit: !0 });
4801
4801
  } catch {
4802
- $(`${ve}form_error`);
4802
+ $(`${xe}form_error`);
4803
4803
  }
4804
4804
  }, ie = () => {
4805
4805
  b && b.updateConversation && b.updateConversation({ showThread: !0, showForm: !0 }), setTimeout(() => {
4806
4806
  var me, pe, Ee;
4807
- const ue = `reply-form-${(t.type === "answer" ? t.slug : ((me = t.slugs) == null ? void 0 : me.reply) || ((pe = t.slugs) == null ? void 0 : pe.answer) || ((Ee = t.slugs) == null ? void 0 : Ee.question) || "").toLowerCase().slice(-15)}`, Q = document.getElementById(ue), se = document.getElementById(`${ue}-input`);
4808
- se && se.focus(), Q && Q.scrollIntoView({ behavior: "smooth" });
4807
+ const ue = `reply-form-${(t.type === "answer" ? t.slug : ((me = t.slugs) == null ? void 0 : me.reply) || ((pe = t.slugs) == null ? void 0 : pe.answer) || ((Ee = t.slugs) == null ? void 0 : Ee.question) || "").toLowerCase().slice(-15)}`, K = document.getElementById(ue), se = document.getElementById(`${ue}-input`);
4808
+ se && se.focus(), K && K.scrollIntoView({ behavior: "smooth" });
4809
4809
  }, 0);
4810
4810
  }, de = () => {
4811
4811
  Y(!1);
@@ -4816,12 +4816,12 @@ const ve = "discussion_", $s = 280, kt = ({
4816
4816
  }
4817
4817
  }, ce = [
4818
4818
  {
4819
- text: v.formatMessage({ id: `${ve}moreMenu_report` }),
4819
+ text: x.formatMessage({ id: `${xe}moreMenu_report` }),
4820
4820
  href: `mailto:community@apolitical.co?subject=${encodeURI(
4821
- v.formatMessage({ id: `${ve}report_subject` })
4821
+ x.formatMessage({ id: `${xe}report_subject` })
4822
4822
  )}&body=${encodeURI(
4823
- v.formatMessage(
4824
- { id: `${ve}report_body` },
4823
+ x.formatMessage(
4824
+ { id: `${xe}report_body` },
4825
4825
  {
4826
4826
  contentType: t.type || "",
4827
4827
  contentSlug: t.slug || "",
@@ -4834,7 +4834,7 @@ const ve = "discussion_", $s = 280, kt = ({
4834
4834
  ];
4835
4835
  return n && te && ce.push(
4836
4836
  {
4837
- text: v.formatMessage({ id: `${ve}moreMenu_edit` }),
4837
+ text: x.formatMessage({ id: `${xe}moreMenu_edit` }),
4838
4838
  onClick: () => C({ ...j, isEditing: !0 }),
4839
4839
  icon: "pencil-paper",
4840
4840
  className: "gtm-trackable",
@@ -4842,7 +4842,7 @@ const ve = "discussion_", $s = 280, kt = ({
4842
4842
  "data-gtm-event-type": `edit-${t.type}-click`
4843
4843
  },
4844
4844
  {
4845
- text: v.formatMessage({ id: `${ve}moreMenu_delete` }),
4845
+ text: x.formatMessage({ id: `${xe}moreMenu_delete` }),
4846
4846
  onClick: (W) => {
4847
4847
  W.preventDefault(), W.stopPropagation(), Y(!0);
4848
4848
  },
@@ -4890,10 +4890,10 @@ const ve = "discussion_", $s = 280, kt = ({
4890
4890
  },
4891
4891
  maxLength: t.type === "question" ? 250 : 5e4,
4892
4892
  forceShow: {
4893
- error: F !== "" && F !== "delete-error" ? v.formatMessage(
4893
+ error: F !== "" && F !== "delete-error" ? x.formatMessage(
4894
4894
  { id: F },
4895
4895
  {
4896
- action: v.formatMessage({
4896
+ action: x.formatMessage({
4897
4897
  id: `discussion_action_${t.type}`
4898
4898
  })
4899
4899
  }
@@ -4901,7 +4901,7 @@ const ve = "discussion_", $s = 280, kt = ({
4901
4901
  },
4902
4902
  functions: {
4903
4903
  create: o,
4904
- handleSaveEdit: K,
4904
+ handleSaveEdit: J,
4905
4905
  handleCancel: () => {
4906
4906
  $(""), C({ ...j, isEditing: !1 });
4907
4907
  }
@@ -4971,15 +4971,15 @@ const ve = "discussion_", $s = 280, kt = ({
4971
4971
  className: "gtm-trackable",
4972
4972
  "data-gtm-event-context": _,
4973
4973
  "data-gtm-event-type": `answer-${t.type}-click`,
4974
- screenreaderText: v.formatMessage(
4975
- { id: `${ve}comments_screenReader` },
4976
- { count: J }
4974
+ screenreaderText: x.formatMessage(
4975
+ { id: `${xe}comments_screenReader` },
4976
+ { count: Q }
4977
4977
  )
4978
4978
  }
4979
4979
  ),
4980
- /* @__PURE__ */ a.jsx("span", { children: v.formatMessage(
4981
- { id: `${ve}comments` },
4982
- { count: J }
4980
+ /* @__PURE__ */ a.jsx("span", { children: x.formatMessage(
4981
+ { id: `${xe}comments` },
4982
+ { count: Q }
4983
4983
  ) })
4984
4984
  ]
4985
4985
  }
@@ -4991,7 +4991,7 @@ const ve = "discussion_", $s = 280, kt = ({
4991
4991
  size: "medium",
4992
4992
  styling: { muted: !0 },
4993
4993
  onClick: ie,
4994
- children: v.formatMessage({ id: `${ve}reply` })
4994
+ children: x.formatMessage({ id: `${xe}reply` })
4995
4995
  }
4996
4996
  ) }),
4997
4997
  /* @__PURE__ */ a.jsx(
@@ -5017,30 +5017,30 @@ const ve = "discussion_", $s = 280, kt = ({
5017
5017
  functions: { onOpen: () => {
5018
5018
  }, onClose: () => Y(!1) },
5019
5019
  forceShow: {
5020
- error: F === "delete-error" ? v.formatMessage(
5020
+ error: F === "delete-error" ? x.formatMessage(
5021
5021
  { id: "discussion_delete_error" },
5022
5022
  {
5023
- action: v.formatMessage({
5023
+ action: x.formatMessage({
5024
5024
  id: `discussion_action_${t.type}`
5025
5025
  })
5026
5026
  }
5027
5027
  ) : !1
5028
5028
  },
5029
- title: v.formatMessage(
5029
+ title: x.formatMessage(
5030
5030
  { id: "discussion_delete_title" },
5031
- { action: v.formatMessage({ id: `discussion_action_${t.type}` }) }
5031
+ { action: x.formatMessage({ id: `discussion_action_${t.type}` }) }
5032
5032
  ),
5033
5033
  buttons: [
5034
5034
  {
5035
5035
  variant: "secondary",
5036
5036
  onClick: () => Y(!1),
5037
- children: v.formatMessage({ id: "discussion_delete_cancel" })
5037
+ children: x.formatMessage({ id: "discussion_delete_cancel" })
5038
5038
  },
5039
5039
  {
5040
5040
  variant: "primary",
5041
5041
  className: "destructive",
5042
5042
  onClick: de,
5043
- children: v.formatMessage({ id: "discussion_delete_delete" })
5043
+ children: x.formatMessage({ id: "discussion_delete_delete" })
5044
5044
  }
5045
5045
  ],
5046
5046
  gtmContext: `${t.type.charAt(0).toUpperCase()}${t.type.slice(1)}:${t.slug}`,
@@ -5050,7 +5050,7 @@ const ve = "discussion_", $s = 280, kt = ({
5050
5050
  id: "discussion_delete_text",
5051
5051
  values: {
5052
5052
  p: (W) => /* @__PURE__ */ a.jsx("p", { children: W }),
5053
- action: v.formatMessage({
5053
+ action: x.formatMessage({
5054
5054
  id: `discussion_action_${t.type}`
5055
5055
  })
5056
5056
  }
@@ -5069,7 +5069,7 @@ const qt = "discussion_responses_", Yi = ({ type: e = "answer", responses: t = 0
5069
5069
  ] });
5070
5070
  };
5071
5071
  const Es = ({ count: e = "", showRepliesButton: t = !0, children: n }) => {
5072
- const r = P(), s = ne(null), i = ge(vt), [o, c] = R(
5072
+ const r = P(), s = ne(null), i = ge(xt), [o, c] = R(
5073
5073
  "closed"
5074
5074
  /* Closed */
5075
5075
  );
@@ -5462,7 +5462,7 @@ function Bs({
5462
5462
  },
5463
5463
  user: m,
5464
5464
  ...l
5465
- }, d = Is({ ...f, mutationFn: e }), p = Os({ ...f, mutationFn: t }), h = Zs({ ...f, mutationFn: n }), _ = Hs({ ...f, mutationFn: s }), y = Us({ ...f, mutationFn: i }), { activities: k, ...v } = qs({ queryKey: o, queryFn: r });
5465
+ }, d = Is({ ...f, mutationFn: e }), p = Os({ ...f, mutationFn: t }), h = Zs({ ...f, mutationFn: n }), _ = Hs({ ...f, mutationFn: s }), y = Us({ ...f, mutationFn: i }), { activities: k, ...x } = qs({ queryKey: o, queryFn: r });
5466
5466
  return {
5467
5467
  activities: k,
5468
5468
  mutations: {
@@ -5473,7 +5473,7 @@ function Bs({
5473
5473
  unlike: y
5474
5474
  },
5475
5475
  user: m,
5476
- ...v
5476
+ ...x
5477
5477
  };
5478
5478
  }
5479
5479
  function Zs({
@@ -5602,7 +5602,7 @@ const Gi = ({
5602
5602
  like: y,
5603
5603
  unlike: k
5604
5604
  },
5605
- user: v
5605
+ user: x
5606
5606
  } = Bs({
5607
5607
  queryKey: [e, t, "activities"],
5608
5608
  queryFns: i
@@ -5623,14 +5623,14 @@ const Gi = ({
5623
5623
  }
5624
5624
  ),
5625
5625
  c == null ? void 0 : c.map((g) => {
5626
- var E, I, Z, q, z, J, H, te, re;
5627
- const { own_reactions: b, latest_reactions: j } = g, C = (((E = j == null ? void 0 : j.like) == null ? void 0 : E.length) || 0) > 0, S = (((I = b == null ? void 0 : b.like) == null ? void 0 : I.length) || 0) > 0, Y = S ? b == null ? void 0 : b.like[0].id : null, F = C ? (Z = j == null ? void 0 : j.like) == null ? void 0 : Z.map((K) => {
5626
+ var E, I, Z, q, z, Q, H, te, re;
5627
+ const { own_reactions: b, latest_reactions: j } = g, C = (((E = j == null ? void 0 : j.like) == null ? void 0 : E.length) || 0) > 0, S = (((I = b == null ? void 0 : b.like) == null ? void 0 : I.length) || 0) > 0, Y = S ? b == null ? void 0 : b.like[0].id : null, F = C ? (Z = j == null ? void 0 : j.like) == null ? void 0 : Z.map((J) => {
5628
5628
  var ie, de, ce;
5629
5629
  return {
5630
- id: (ie = K == null ? void 0 : K.user) == null ? void 0 : ie.id,
5631
- name: (ce = (de = K == null ? void 0 : K.user) == null ? void 0 : de.data) == null ? void 0 : ce.name
5630
+ id: (ie = J == null ? void 0 : J.user) == null ? void 0 : ie.id,
5631
+ name: (ce = (de = J == null ? void 0 : J.user) == null ? void 0 : de.data) == null ? void 0 : ce.name
5632
5632
  };
5633
- }) : !1, $ = g == null ? void 0 : g.actor, M = ($ == null ? void 0 : $.id) === (v == null ? void 0 : v.id);
5633
+ }) : !1, $ = g == null ? void 0 : g.actor, M = ($ == null ? void 0 : $.id) === (x == null ? void 0 : x.id);
5634
5634
  return /* @__PURE__ */ a.jsxs(qe, { children: [
5635
5635
  /* @__PURE__ */ a.jsx(
5636
5636
  kt,
@@ -5638,7 +5638,7 @@ const Gi = ({
5638
5638
  content: {
5639
5639
  type: "post",
5640
5640
  body: g == null ? void 0 : g.content,
5641
- canLike: xt(n, M),
5641
+ canLike: vt(n, M),
5642
5642
  createdAt: (g == null ? void 0 : g.time) || "",
5643
5643
  slugs: {
5644
5644
  question: `${e}/${t}`,
@@ -5649,7 +5649,7 @@ const Gi = ({
5649
5649
  id: $ == null ? void 0 : $.id,
5650
5650
  name: (q = $ == null ? void 0 : $.data) == null ? void 0 : q.name,
5651
5651
  organization: (z = $ == null ? void 0 : $.data) == null ? void 0 : z.organization,
5652
- jobTitle: (J = $ == null ? void 0 : $.data) == null ? void 0 : J.jobTitle,
5652
+ jobTitle: (Q = $ == null ? void 0 : $.data) == null ? void 0 : Q.jobTitle,
5653
5653
  image: {
5654
5654
  thumbnail: ((H = $ == null ? void 0 : $.data) == null ? void 0 : H.thumbnail) || void 0
5655
5655
  }
@@ -5667,9 +5667,9 @@ const Gi = ({
5667
5667
  content: {
5668
5668
  createContent: () => null,
5669
5669
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
5670
- deleteContent: (K) => _(K),
5670
+ deleteContent: () => _({ activityId: g == null ? void 0 : g.id }),
5671
5671
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
5672
- updateContent: (K, ie) => h({ ...K, ...ie })
5672
+ updateContent: (J, ie) => h({ activityId: g == null ? void 0 : g.id, ...ie })
5673
5673
  },
5674
5674
  likes: {
5675
5675
  createLike: () => y({ activityId: g == null ? void 0 : g.id }),
@@ -6306,7 +6306,7 @@ function ha({
6306
6306
  },
6307
6307
  user: m,
6308
6308
  ...l
6309
- }, d = Vs({ ...f, mutationFn: e }), p = Ys({ ...f, mutationFn: t }), h = Gs({ ...f, mutationFn: n }), _ = Qs({ ...f, mutationFn: s }), y = Js({ ...f, mutationFn: i }), { replies: k, ...v } = Ks({ queryKey: o, queryFn: r });
6309
+ }, d = Vs({ ...f, mutationFn: e }), p = Ys({ ...f, mutationFn: t }), h = Gs({ ...f, mutationFn: n }), _ = Qs({ ...f, mutationFn: s }), y = Js({ ...f, mutationFn: i }), { replies: k, ...x } = Ks({ queryKey: o, queryFn: r });
6310
6310
  return {
6311
6311
  replies: k,
6312
6312
  mutations: {
@@ -6317,7 +6317,7 @@ function ha({
6317
6317
  unlike: y
6318
6318
  },
6319
6319
  user: m,
6320
- ...v
6320
+ ...x
6321
6321
  };
6322
6322
  }
6323
6323
  function Gs({
@@ -6459,7 +6459,7 @@ const ri = ({
6459
6459
  remove: y,
6460
6460
  unlike: k
6461
6461
  },
6462
- user: v
6462
+ user: x
6463
6463
  } = ha({
6464
6464
  queryKey: [e, t, n, r, "replies"],
6465
6465
  queryFns: {
@@ -6467,7 +6467,7 @@ const ri = ({
6467
6467
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6468
6468
  list: (b) => i.list({ ...b, reactionId: r })
6469
6469
  }
6470
- }), g = ge(vt);
6470
+ }), g = ge(xt);
6471
6471
  return /* @__PURE__ */ a.jsx(
6472
6472
  Es,
6473
6473
  {
@@ -6475,14 +6475,14 @@ const ri = ({
6475
6475
  showRepliesButton: !1,
6476
6476
  children: /* @__PURE__ */ a.jsxs("section", { children: [
6477
6477
  c == null ? void 0 : c.map((b) => {
6478
- var z, J, H, te, re, K, ie, de, ce, W, ue;
6479
- const { own_children: j, latest_children: C } = b, S = b == null ? void 0 : b.id, Y = (((z = C == null ? void 0 : C.like) == null ? void 0 : z.length) || 0) > 0, F = (((J = j == null ? void 0 : j.like) == null ? void 0 : J.length) || 0) > 0, $ = F ? j == null ? void 0 : j.like[0].id : null, M = Y ? (H = C == null ? void 0 : C.like) == null ? void 0 : H.map((Q) => {
6478
+ var z, Q, H, te, re, J, ie, de, ce, W, ue;
6479
+ const { own_children: j, latest_children: C } = b, S = b == null ? void 0 : b.id, Y = (((z = C == null ? void 0 : C.like) == null ? void 0 : z.length) || 0) > 0, F = (((Q = j == null ? void 0 : j.like) == null ? void 0 : Q.length) || 0) > 0, $ = F ? j == null ? void 0 : j.like[0].id : null, M = Y ? (H = C == null ? void 0 : C.like) == null ? void 0 : H.map((K) => {
6480
6480
  var se, me, pe;
6481
6481
  return {
6482
- id: (se = Q == null ? void 0 : Q.user) == null ? void 0 : se.id,
6483
- name: (pe = (me = Q == null ? void 0 : Q.user) == null ? void 0 : me.data) == null ? void 0 : pe.name
6482
+ id: (se = K == null ? void 0 : K.user) == null ? void 0 : se.id,
6483
+ name: (pe = (me = K == null ? void 0 : K.user) == null ? void 0 : me.data) == null ? void 0 : pe.name
6484
6484
  };
6485
- }) : !1, E = b == null ? void 0 : b.user, I = (E == null ? void 0 : E.id) === (v == null ? void 0 : v.id), Z = xt(s, I), q = typeof b.data.content == "string" ? (te = b == null ? void 0 : b.data) == null ? void 0 : te.content : ((K = (re = b == null ? void 0 : b.data) == null ? void 0 : re.content) == null ? void 0 : K.text) || "";
6485
+ }) : !1, E = b == null ? void 0 : b.user, I = (E == null ? void 0 : E.id) === (x == null ? void 0 : x.id), Z = vt(s, I), q = typeof b.data.content == "string" ? (te = b == null ? void 0 : b.data) == null ? void 0 : te.content : ((J = (re = b == null ? void 0 : b.data) == null ? void 0 : re.content) == null ? void 0 : J.text) || "";
6486
6486
  return /* @__PURE__ */ a.jsx(
6487
6487
  kt,
6488
6488
  {
@@ -6517,7 +6517,7 @@ const ri = ({
6517
6517
  createContent: () => null,
6518
6518
  deleteContent: () => y({ replyId: S }),
6519
6519
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6520
- updateContent: (Q, { body: se }) => h({ replyId: S, content: se })
6520
+ updateContent: (K, { body: se }) => h({ replyId: S, content: se })
6521
6521
  },
6522
6522
  likes: {
6523
6523
  createLike: () => _({ replyId: S }),
@@ -6584,7 +6584,7 @@ const ri = ({
6584
6584
  edit: _,
6585
6585
  like: y,
6586
6586
  remove: k,
6587
- unlike: v
6587
+ unlike: x
6588
6588
  },
6589
6589
  user: g
6590
6590
  } = ha({
@@ -6613,14 +6613,14 @@ const ri = ({
6613
6613
  }
6614
6614
  ),
6615
6615
  m == null ? void 0 : m.map((b) => {
6616
- var z, J, H, te, re, K, ie, de, ce, W, ue;
6617
- const { own_children: j, latest_children: C } = b, S = b == null ? void 0 : b.id, Y = (((z = C == null ? void 0 : C.like) == null ? void 0 : z.length) || 0) > 0, F = (((J = j == null ? void 0 : j.like) == null ? void 0 : J.length) || 0) > 0, $ = F ? j == null ? void 0 : j.like[0].id : null, M = Y ? (H = C == null ? void 0 : C.like) == null ? void 0 : H.map((Q) => {
6616
+ var z, Q, H, te, re, J, ie, de, ce, W, ue;
6617
+ const { own_children: j, latest_children: C } = b, S = b == null ? void 0 : b.id, Y = (((z = C == null ? void 0 : C.like) == null ? void 0 : z.length) || 0) > 0, F = (((Q = j == null ? void 0 : j.like) == null ? void 0 : Q.length) || 0) > 0, $ = F ? j == null ? void 0 : j.like[0].id : null, M = Y ? (H = C == null ? void 0 : C.like) == null ? void 0 : H.map((K) => {
6618
6618
  var se, me, pe;
6619
6619
  return {
6620
- id: (se = Q == null ? void 0 : Q.user) == null ? void 0 : se.id,
6621
- name: (pe = (me = Q == null ? void 0 : Q.user) == null ? void 0 : me.data) == null ? void 0 : pe.name
6620
+ id: (se = K == null ? void 0 : K.user) == null ? void 0 : se.id,
6621
+ name: (pe = (me = K == null ? void 0 : K.user) == null ? void 0 : me.data) == null ? void 0 : pe.name
6622
6622
  };
6623
- }) : !1, E = b == null ? void 0 : b.user, I = (E == null ? void 0 : E.id) === (g == null ? void 0 : g.id), Z = xt(r, I), q = typeof b.data.content == "string" ? (te = b == null ? void 0 : b.data) == null ? void 0 : te.content : ((K = (re = b == null ? void 0 : b.data) == null ? void 0 : re.content) == null ? void 0 : K.text) || "";
6623
+ }) : !1, E = b == null ? void 0 : b.user, I = (E == null ? void 0 : E.id) === (g == null ? void 0 : g.id), Z = vt(r, I), q = typeof b.data.content == "string" ? (te = b == null ? void 0 : b.data) == null ? void 0 : te.content : ((J = (re = b == null ? void 0 : b.data) == null ? void 0 : re.content) == null ? void 0 : J.text) || "";
6624
6624
  return /* @__PURE__ */ a.jsx(ks, { children: /* @__PURE__ */ a.jsx(
6625
6625
  kt,
6626
6626
  {
@@ -6653,11 +6653,11 @@ const ri = ({
6653
6653
  createContent: () => null,
6654
6654
  deleteContent: () => k({ replyId: S }),
6655
6655
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6656
- updateContent: (Q, { body: se }) => _({ replyId: S, content: se })
6656
+ updateContent: (K, { body: se }) => _({ replyId: S, content: se })
6657
6657
  },
6658
6658
  likes: {
6659
6659
  createLike: () => y({ replyId: S }),
6660
- deleteLike: () => v({ replyId: S, reactionId: $ })
6660
+ deleteLike: () => x({ replyId: S, reactionId: $ })
6661
6661
  },
6662
6662
  comments: {}
6663
6663
  },
@@ -6797,7 +6797,7 @@ const Qi = ({
6797
6797
  leave: m
6798
6798
  }
6799
6799
  }) => {
6800
- var F, $, M, E, I, Z, q, z, J;
6800
+ var F, $, M, E, I, Z, q, z, Q;
6801
6801
  const l = P(), f = ge(ke), {
6802
6802
  activity: d,
6803
6803
  error: p,
@@ -6822,11 +6822,11 @@ const Qi = ({
6822
6822
  }
6823
6823
  );
6824
6824
  console.log(d);
6825
- const { own_reactions: v, latest_reactions: g } = d, b = (((F = g == null ? void 0 : g.like) == null ? void 0 : F.length) || 0) > 0, j = ((($ = v == null ? void 0 : v.like) == null ? void 0 : $.length) || 0) > 0, C = b ? (M = g == null ? void 0 : g.like) == null ? void 0 : M.map((H) => {
6826
- var te, re, K;
6825
+ const { own_reactions: x, latest_reactions: g } = d, b = (((F = g == null ? void 0 : g.like) == null ? void 0 : F.length) || 0) > 0, j = ((($ = x == null ? void 0 : x.like) == null ? void 0 : $.length) || 0) > 0, C = b ? (M = g == null ? void 0 : g.like) == null ? void 0 : M.map((H) => {
6826
+ var te, re, J;
6827
6827
  return {
6828
6828
  id: (te = H == null ? void 0 : H.user) == null ? void 0 : te.id,
6829
- name: (K = (re = H == null ? void 0 : H.user) == null ? void 0 : re.data) == null ? void 0 : K.name
6829
+ name: (J = (re = H == null ? void 0 : H.user) == null ? void 0 : re.data) == null ? void 0 : J.name
6830
6830
  };
6831
6831
  }) : !1, S = d == null ? void 0 : d.actor, Y = (S == null ? void 0 : S.id) === (f == null ? void 0 : f.id);
6832
6832
  return /* @__PURE__ */ a.jsx(
@@ -6836,7 +6836,7 @@ const Qi = ({
6836
6836
  content: {
6837
6837
  type: "post",
6838
6838
  body: d == null ? void 0 : d.content,
6839
- canLike: xt(r, Y),
6839
+ canLike: vt(r, Y),
6840
6840
  createdAt: (d == null ? void 0 : d.time) || "",
6841
6841
  slugs: {
6842
6842
  question: `${e}/${t}`,
@@ -6854,7 +6854,7 @@ const Qi = ({
6854
6854
  },
6855
6855
  userLiked: j,
6856
6856
  likes: ((z = d == null ? void 0 : d.reaction_counts) == null ? void 0 : z.like) || 0,
6857
- comments: ((J = d == null ? void 0 : d.reaction_counts) == null ? void 0 : J.reply) || 0,
6857
+ comments: ((Q = d == null ? void 0 : d.reaction_counts) == null ? void 0 : Q.reply) || 0,
6858
6858
  peopleWhoLiked: C
6859
6859
  },
6860
6860
  originalAuthorId: S == null ? void 0 : S.id,
@@ -6992,7 +6992,7 @@ export {
6992
6992
  ds as Columns,
6993
6993
  Ri as CommunityDetails,
6994
6994
  Xn as Contributors,
6995
- vt as ConversationContext,
6995
+ xt as ConversationContext,
6996
6996
  us as CookieBanner,
6997
6997
  ks as DiscussionConversation,
6998
6998
  en as DiscussionForm,